diff --git a/web/404.html b/web/404.html new file mode 100644 index 00000000..4c7be09e --- /dev/null +++ b/web/404.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/_next/static/chunks/17-1306f5028c21107b.js b/web/_next/static/chunks/17-1306f5028c21107b.js new file mode 100644 index 00000000..92777360 --- /dev/null +++ b/web/_next/static/chunks/17-1306f5028c21107b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[17],{90413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return m}});let r=n(21024),i=n(68533),o=i._(n(2265)),a=r._(n(54887)),l=r._(n(35793)),u=n(7929),s=n(17727),d=n(47327);n(92637);let c=n(36304),f=r._(n(69950)),p={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function handleLoading(e,t,n,r,i,o){let a=null==e?void 0:e.src;if(!e||e["data-loaded-src"]===a)return;e["data-loaded-src"]=a;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,i=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}})}function getDynamicProps(e){let[t,n]=o.version.split(".",2),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,o.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:i,height:a,width:l,decoding:u,className:s,style:d,fetchPriority:c,placeholder:f,loading:p,unoptimized:g,fill:m,onLoadRef:h,onLoadingCompleteRef:y,setBlurComplete:b,setShowAltText:v,onLoad:_,onError:S,...w}=e;return o.default.createElement("img",{...w,...getDynamicProps(c),loading:p,width:l,height:a,decoding:u,"data-nimg":m?"fill":"1",className:s,style:d,sizes:i,srcSet:r,src:n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(S&&(e.src=e.src),e.complete&&handleLoading(e,f,h,y,b,g))},[n,f,h,y,b,S,g,t]),onLoad:e=>{let t=e.currentTarget;handleLoading(t,f,h,y,b,g)},onError:e=>{v(!0),"empty"!==f&&b(!0),S&&S(e)}})});function ImagePreload(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...getDynamicProps(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):o.default.createElement(l.default,null,o.default.createElement("link",{key:"__nimg-"+n.src+n.srcSet+n.sizes,rel:"preload",href:n.srcSet?void 0:n.src,...r}))}let m=(0,o.forwardRef)((e,t)=>{let n=(0,o.useContext)(c.RouterContext),r=(0,o.useContext)(d.ImageConfigContext),i=(0,o.useMemo)(()=>{let e=p||r||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[r]),{onLoad:a,onLoadingComplete:l}=e,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let h=(0,o.useRef)(l);(0,o.useEffect)(()=>{h.current=l},[l]);let[y,b]=(0,o.useState)(!1),[v,_]=(0,o.useState)(!1),{props:S,meta:w}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:v});return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...S,unoptimized:w.unoptimized,placeholder:w.placeholder,fill:w.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:b,setShowAltText:_,ref:t}),w.priority?o.default.createElement(ImagePreload,{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)},28569:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return o}});let r=n(21024),i=r._(n(2265)),o=i.default.createContext({})},94472:function(e,t){"use strict";function isInAmpMode(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 isInAmpMode}})},7929:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return getImgProps}}),n(92637);let r=n(61511),i=n(17727);function isStaticRequire(e){return void 0!==e.default}function isStaticImageData(e){return void 0!==e.src}function isStaticImport(e){return"object"==typeof e&&(isStaticRequire(e)||isStaticImageData(e))}function getInt(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 getWidths(e,t,n){let{deviceSizes:r,allSizes:i}=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:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}function generateImgAttrs(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=getWidths(t,i,a),d=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,r)=>l({config:t,src:n,quality:o,width:e})+" "+("w"===s?e:r+1)+s).join(", "),src:l({config:t,src:n,quality:o,width:u[d]})}}function getImgProps(e,t){let n,o,a,{src:l,sizes:u,unoptimized:s=!1,priority:d=!1,loading:c,className:f,quality:p,width:g,height:m,fill:h=!1,style:y,onLoad:b,onLoadingComplete:v,placeholder:_="empty",blurDataURL:S,fetchPriority:w,layout:P,objectFit:C,objectPosition:I,lazyBoundary:j,lazyRoot:O,...E}=e,{imgConf:x,showAltText:M,blurComplete:z,defaultLoader:k}=t,A=x||i.imageConfigDefault;if("allSizes"in A)n=A;else{let e=[...A.deviceSizes,...A.imageSizes].sort((e,t)=>e-t),t=A.deviceSizes.sort((e,t)=>e-t);n={...A,allSizes:e,deviceSizes:t}}let R=E.loader||k;delete E.loader,delete E.srcSet;let D="__next_img_default"in R;if(D){if("custom"===n.loader)throw Error('Image with src "'+l+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=R;R=t=>{let{config:n,...r}=t;return e(r)}}if(P){"fill"===P&&(h=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[P];e&&(y={...y,...e});let t={responsive:"100vw",fill:"100vw"}[P];t&&!u&&(u=t)}let L="",U=getInt(g),B=getInt(m);if(isStaticImport(l)){let e=isStaticRequire(l)?l.default:l;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(o=e.blurWidth,a=e.blurHeight,S=S||e.blurDataURL,L=e.src,!h){if(U||B){if(U&&!B){let t=U/e.width;B=Math.round(e.height*t)}else if(!U&&B){let t=B/e.height;U=Math.round(e.width*t)}}else U=e.width,B=e.height}}let N=!d&&("lazy"===c||void 0===c);(!(l="string"==typeof l?l:L)||l.startsWith("data:")||l.startsWith("blob:"))&&(s=!0,N=!1),n.unoptimized&&(s=!0),D&&l.endsWith(".svg")&&!n.dangerouslyAllowSVG&&(s=!0),d&&(w="high");let H=getInt(p),W=Object.assign(h?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:I}:{},M?{}:{color:"transparent"},y),q=z||"empty"===_?null:"blur"===_?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:B,blurWidth:o,blurHeight:a,blurDataURL:S||"",objectFit:W.objectFit})+'")':'url("'+_+'")',F=q?{backgroundSize:W.objectFit||"cover",backgroundPosition:W.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},G=generateImgAttrs({config:n,src:l,unoptimized:s,width:U,quality:H,sizes:u,loader:R}),T={...E,loading:N?"lazy":c,fetchPriority:w,width:U,height:B,decoding:"async",className:f,style:{...W,...F},sizes:G.sizes,srcSet:G.srcSet,src:G.src},V={unoptimized:s,priority:d,placeholder:_,fill:h};return{props:T,meta:V}}},35793: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,{defaultHead:function(){return defaultHead},default:function(){return c}});let r=n(21024),i=n(68533),o=i._(n(2265)),a=r._(n(80110)),l=n(28569),u=n(61852),s=n(94472);function defaultHead(e){void 0===e&&(e=!1);let t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function onlyReactElement(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(92637);let d=["name","httpEquiv","charSet","itemProp"];function unique(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=d.length;e{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,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})})}function Head(e){let{children:t}=e,n=(0,o.useContext)(l.AmpStateContext),r=(0,o.useContext)(u.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:reduceComponents,headManager:r,inAmpMode:(0,s.isInAmpMode)(n)},t)}let c=Head;("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)},61511:function(e,t){"use strict";function getImageBlurSvg(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,l=r?40*r:t,u=i?40*i:n,s=l&&u?"viewBox='0 0 "+l+" "+u+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+s+"%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='"+(s?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return getImageBlurSvg}})},47327:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=n(21024),i=r._(n(2265)),o=n(17727),a=i.default.createContext(o.imageConfigDefault)},17727: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",remotePatterns:[],unoptimized:!1}},80679: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,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return u}});let r=n(21024),i=n(7929),o=n(92637),a=n(90413),l=r._(n(69950)),unstable_getImgProps=e=>{(0,o.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,i.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:"/_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}},u=a.Image},69950:function(e,t){"use strict";function defaultLoader(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),defaultLoader.__next_img_default=!0;let n=defaultLoader},80110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return SideEffect}});let r=n(2265),i=r.useLayoutEffect,o=r.useEffect;function SideEffect(e){let{headManager:t,reduceComponentsToState:n}=e;function emitChange(){if(t&&t.mountedInstances){let i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}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=emitChange),()=>{t&&(t._pendingUpdate=emitChange)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},92637:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=e=>{}},16691:function(e,t,n){e.exports=n(80679)},24033:function(e,t,n){e.exports=n(50094)}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/214-90a997fb4783982d.js b/web/_next/static/chunks/214-90a997fb4783982d.js new file mode 100644 index 00000000..29ebcf24 --- /dev/null +++ b/web/_next/static/chunks/214-90a997fb4783982d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{7214:function(e,t,i){i.d(t,{k:function(){return AnimeListItem}});var l=i(57437),s=i(2265),a=i(54487),n=i(16691),r=i.n(n),o=i(6469),d=i(1022),c=i(37376),u=i(23130),m=i(5790),x=i(54771),v=i(61396),g=i.n(v),h=i(97622),f=i(50795),j=i(67701),b=i(45197),p=i(42475),y=i(45652),N=i.n(y),D=i(35794),w=i.n(D),E=i(59346),z=i(34479),C=i(24285),L=i(10137),k=i(95518),I=i(24033),A=i(23890);let AnimeListItem=e=>{var t,i,n,v,h,f,j,y,D,z,C,L,T,U,R,P,B,F,_;let{media:M,listData:O,libraryData:K}=e,[q,V]=(0,s.useState)(O),[W,Z]=(0,s.useState)(K),[G,X]=(0,A.KO)(k.uN),Y=!!W&&!!e.showLibraryBadge,H=!!(null==q?void 0:q.progress)&&(null==M?void 0:M.episodes)&&(null==q?void 0:q.status)!=="COMPLETED";(0,s.useEffect)(()=>{if(!O||!K){let e=X(M.id);O||V(null==e?void 0:e.listData),K||Z(null==e?void 0:e.libraryData)}},[X]);let J=(0,I.usePathname)();return((0,s.useEffect)(()=>{if("/"!==J){let e=X(M.id);O||V(null==e?void 0:e.listData),K||Z(null==e?void 0:e.libraryData)}},[J,G]),(0,s.useLayoutEffect)(()=>{V(O)},[O]),(0,s.useLayoutEffect)(()=>{Z(K)},[K]),M)?(0,l.jsxs)("div",{className:(0,a.cn)("h-full col-span-1 group/anime-list-item relative flex flex-col place-content-stretch focus-visible:outline-0 flex-none",e.containerClassName),children:[(0,l.jsx)("div",{className:(0,a.cn)("absolute z-20 bg-gray-900 opacity-0 scale-70 border border-[--border]","group-hover/anime-list-item:opacity-100 group-hover/anime-list-item:scale-100","group-focus-visible/anime-list-item:opacity-100 group-focus-visible/anime-list-item:scale-100","focus-visible:opacity-100 focus-visible:scale-100","h-[105%] w-[100%] -top-[5%] rounded-md transition ease-in-out","focus-visible:ring-2 ring-brand-400 focus-visible:outline-0 "),tabIndex:0,children:(0,l.jsxs)("div",{className:"p-2 h-full w-full flex flex-col justify-between",children:[(0,l.jsxs)("div",{className:"space-y-1",children:[(0,l.jsx)("div",{className:"aspect-[4/2] relative rounded-md overflow-hidden mb-2",children:M.bannerImage||(null===(t=M.coverImage)||void 0===t?void 0:t.large)?(0,l.jsx)(r(),{src:M.bannerImage||(null===(i=M.coverImage)||void 0===i?void 0:i.large)||"",alt:"",fill:!0,placeholder:(0,E.t)(700,475),quality:100,sizes:"20rem",className:"object-cover object-center transition"}):(0,l.jsx)("div",{className:"h-full block absolute w-full bg-gradient-to-t from-gray-800 to-transparent"})}),(0,l.jsx)("div",{children:(0,l.jsx)(g(),{href:"/entry?id=".concat(M.id),className:"text-center font-medium text-sm lg:text-lg min-[2000px]:text-lg px-4 line-clamp-2",children:null===(n=M.title)||void 0===n?void 0:n.userPreferred})}),!!(null===(v=M.startDate)||void 0===v?void 0:v.year)&&(0,l.jsx)("div",{children:(0,l.jsxs)("p",{className:"justify-center text-sm text-[--muted] flex w-full gap-1 items-center",children:[w()(M.format||"")," - ",(0,l.jsx)(d.V,{})," ",new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short"}).format(new Date((null===(h=M.startDate)||void 0===h?void 0:h.year)||0,(null===(f=M.startDate)||void 0===f?void 0:f.month)||0))," - ",N()(null!==(B=M.season)&&void 0!==B?B:"")]})}),!!M.nextAiringEpisode&&(0,l.jsxs)("div",{className:"flex gap-1 items-center justify-center",children:[(0,l.jsx)("p",{className:"text-xs min-[2000px]:text-md",children:"Next episode:"}),(0,l.jsx)(o.u,{tooltipClassName:"bg-gray-200 text-gray-800 font-semibold mb-1",trigger:(0,l.jsx)("p",{className:"text-justify font-normal text-xs min-[2000px]:text-md",children:(0,l.jsx)(c.C,{size:"sm",children:null===(j=M.nextAiringEpisode)||void 0===j?void 0:j.episode})}),children:(0,m.Z)((0,u.Z)(new Date,null===(y=M.nextAiringEpisode)||void 0===y?void 0:y.timeUntilAiring),{addSuffix:!0})})]}),(0,l.jsx)(MainActionButton,{media:M,listData:q}),(null==q?void 0:q.status)&&void 0===e.showLibraryBadge&&(0,l.jsx)("p",{className:"text-center",children:(null==q?void 0:q.status)==="CURRENT"?"Watching":N()(null!==(F=null==q?void 0:q.status)&&void 0!==F?F:"")})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[!!W&&(0,l.jsx)(S,{mediaId:M.id,allFilesLocked:W.allFilesLocked}),(0,l.jsx)(p.X,{listData:q,media:M})]})]})}),(0,l.jsxs)("div",{className:"aspect-[6/7] flex-none rounded-md border border-[--border] object-cover object-center relative overflow-hidden",children:[(0,l.jsx)("div",{className:"z-[5] absolute bottom-0 w-full h-[50%] bg-gradient-to-t from-black to-transparent"}),H&&(0,l.jsx)("div",{className:"absolute top-0 w-full h-1 z-[2] bg-gray-700 left-0",children:(0,l.jsx)("div",{className:(0,a.cn)("h-1 absolute z-[2] left-0 bg-gray-200 transition-all",{"bg-brand-400":(null==q?void 0:q.status)==="CURRENT","bg-gray-400":(null==q?void 0:q.status)!=="CURRENT"}),style:{width:"".concat(String(Math.ceil(q.progress/M.episodes*100)),"%")}})}),Y&&(0,l.jsx)("div",{className:"absolute z-[1] left-0 top-0",children:(0,l.jsx)(c.C,{size:"xl",intent:"warning-solid",className:"rounded-md rounded-bl-none rounded-tr-none text-orange-900",children:(0,l.jsx)(b.z,{})})}),"RELEASING"===M.status&&(0,l.jsx)("div",{className:"absolute z-10 right-1 top-2",children:(0,l.jsx)(o.u,{trigger:(0,l.jsx)(c.C,{intent:"primary-solid",size:"lg",children:(0,l.jsx)(x.d,{})}),children:"Airing"})}),"NOT_YET_RELEASED"===M.status&&(0,l.jsx)("div",{className:"absolute z-10 right-1 top-1",children:(0,l.jsx)(o.u,{trigger:(0,l.jsx)(c.C,{intent:"gray-solid",size:"lg",children:(0,l.jsx)(x.d,{})}),children:(null===(D=M.startDate)||void 0===D?void 0:D.year)?new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}).format(new Date(M.startDate.year,(null===(z=M.startDate)||void 0===z?void 0:z.month)||0,(null===(C=M.startDate)||void 0===C?void 0:C.day)||0)):"-"})}),(0,l.jsx)(ProgressBadge,{media:M,listData:q}),(0,l.jsx)(ScoreBadge,{listData:q}),(0,l.jsx)(r(),{src:(null===(L=M.coverImage)||void 0===L?void 0:L.extraLarge)||"",alt:"",fill:!0,placeholder:(0,E.t)(700,475),quality:100,priority:!0,sizes:"20rem",className:"object-cover object-center group-hover/anime-list-item:scale-125 transition"})]}),(0,l.jsxs)("div",{className:"pt-2 space-y-2 flex flex-col justify-between h-full",children:[(0,l.jsx)("div",{children:(0,l.jsx)("p",{className:"text-center font-semibold text-sm lg:text-md min-[2000px]:text-lg line-clamp-3",children:null===(T=M.title)||void 0===T?void 0:T.userPreferred})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{children:(0,l.jsxs)("p",{className:"text-sm text-[--muted] inline-flex gap-1 items-center",children:[(0,l.jsx)(d.V,{}),N()(null!==(_=M.season)&&void 0!==_?_:"")," ",(null===(U=M.startDate)||void 0===U?void 0:U.year)?new Intl.DateTimeFormat("en-US",{year:"numeric"}).format(new Date((null===(R=M.startDate)||void 0===R?void 0:R.year)||0,(null===(P=M.startDate)||void 0===P?void 0:P.month)||0)):"-"]})})})]})]}):null},MainActionButton=e=>{var t,i;let s=null===(t=e.listData)||void 0===t?void 0:t.progress,a=null===(i=e.listData)||void 0===i?void 0:i.status;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"py-1",children:(0,l.jsx)(g(),{href:"/entry?id=".concat(e.media.id).concat(s&&"COMPLETED"!==a?"&playNext=true":""),children:(0,l.jsx)(h.zx,{leftIcon:(0,l.jsx)(f.P,{}),intent:"white",size:"md",className:"w-full text-md",children:s&&("CURRENT"===a||"PAUSED"===a)?"Continue watching":"Watch"})})})})})},S=(0,s.memo)(e=>{let{mediaId:t,allFilesLocked:i}=e,{toggleLock:s,isPending:a}=(0,L.Kg)();return(0,l.jsx)(o.u,{trigger:(0,l.jsx)(h.hU,{icon:i?(0,l.jsx)(z.K,{}):(0,l.jsx)(C.k,{}),intent:i?"success":"warning-subtle",size:"sm",className:"hover:opacity-60",isLoading:a,onClick:()=>s(t)}),children:i?"Unlock all files":"Lock all files"})}),ScoreBadge=e=>{var t;let i=null===(t=e.listData)||void 0===t?void 0:t.score;return e.listData&&i?(0,l.jsx)("div",{className:"absolute z-10 right-1 bottom-1",children:(0,l.jsxs)("div",{className:(0,a.cn)("backdrop-blur-lg inline-flex items-center justify-center gap-1 w-12 h-7 rounded-full font-bold bg-opacity-70 drop-shadow-sm shadow-lg",i?i<5?"bg-red-500":i<7?"bg-orange-500":i<9?"bg-green-500":"bg-brand-500 text-white bg-opacity-80":""),children:[(0,l.jsx)(j.s,{})," ",0===i?"-":i]})}):null},ProgressBadge=e=>{var t;let i=null===(t=e.listData)||void 0===t?void 0:t.progress,s=e.media.episodes;return e.listData&&i?(0,l.jsx)("div",{className:"absolute z-10 left-1 bottom-1",children:(0,l.jsxs)(c.C,{size:"lg",children:[i,"/",null!=s?s:"-"]})}):null}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/235-952226bbbfeb6e72.js b/web/_next/static/chunks/235-952226bbbfeb6e72.js new file mode 100644 index 00000000..14cb1353 --- /dev/null +++ b/web/_next/static/chunks/235-952226bbbfeb6e72.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[235],{2412:function(e){function apply(e,n,r){switch(r.length){case 0:return e.call(n);case 1:return e.call(n,r[0]);case 2:return e.call(n,r[0],r[1]);case 3:return e.call(n,r[0],r[1],r[2])}return e.apply(n,r)}e.exports=apply},81101:function(e,n,r){var l=r(7238),u=r(64936);function baseFlatten(e,n,r,o,s){var c=-1,d=e.length;for(r||(r=u),s||(s=[]);++c0&&r(p)?n>1?baseFlatten(p,n-1,r,o,s):l(s,p):o||(s[s.length]=p)}return s}e.exports=baseFlatten},98829:function(e,n,r){var l=r(33074),u=r(85635);function baseMap(e,n){var r=-1,o=u(e)?Array(e.length):[];return l(e,function(e,l,u){o[++r]=n(e,l,u)}),o}e.exports=baseMap},29651:function(e,n,r){var l=r(9121),u=r(81456),o=r(57322),s=r(98829),c=r(15493),d=r(70287),p=r(21319),b=r(34646),v=r(12068);function baseOrderBy(e,n,r){n=n.length?l(n,function(e){return v(e)?function(n){return u(n,1===e.length?e[0]:e)}:e}):[b];var x=-1;return n=l(n,d(o)),c(s(e,function(e,r,u){return{criteria:l(n,function(n){return n(e)}),index:++x,value:e}}),function(e,n){return p(e,n,r)})}e.exports=baseOrderBy},97485:function(e,n,r){var l=r(34646),u=r(15046),o=r(34017);function baseRest(e,n){return o(u(e,n,l),e+"")}e.exports=baseRest},32811:function(e,n,r){var l=r(63709),u=r(51674),o=r(34646),s=u?function(e,n){return u(e,"toString",{configurable:!0,enumerable:!1,value:l(n),writable:!0})}:o;e.exports=s},15493:function(e){function baseSortBy(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}e.exports=baseSortBy},78829:function(e,n,r){var l=r(71087);function compareAscending(e,n){if(e!==n){var r=void 0!==e,u=null===e,o=e==e,s=l(e),c=void 0!==n,d=null===n,p=n==n,b=l(n);if(!d&&!b&&!s&&e>n||s&&c&&p&&!d&&!b||u&&c&&p||!r&&p||!o)return 1;if(!u&&!s&&!b&&e=d)return p;return p*("desc"==r[u]?-1:1)}}return e.index-n.index}e.exports=compareMultiple},51674:function(e,n,r){var l=r(2603),u=function(){try{var e=l(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=u},64936:function(e,n,r){var l=r(79029),u=r(80514),o=r(12068),s=l?l.isConcatSpreadable:void 0;function isFlattenable(e){return o(e)||u(e)||!!(s&&e&&e[s])}e.exports=isFlattenable},82664:function(e,n,r){var l=r(600),u=r(85635),o=r(61197),s=r(36905);function isIterateeCall(e,n,r){if(!s(r))return!1;var c=typeof n;return("number"==c?!!(u(r)&&o(n,r.length)):"string"==c&&n in r)&&l(r[n],e)}e.exports=isIterateeCall},15046:function(e,n,r){var l=r(2412),u=Math.max;function overRest(e,n,r){return n=u(void 0===n?e.length-1:n,0),function(){for(var o=arguments,s=-1,c=u(o.length-n,0),d=Array(c);++s0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}e.exports=shortOut},63709:function(e){function constant(e){return function(){return e}}e.exports=constant},51864:function(e,n,r){var l=r(81101),u=r(29651),o=r(97485),s=r(82664),c=o(function(e,n){if(null==e)return[];var r=n.length;return r>1&&s(e,n[0],n[1])?n=[]:r>2&&s(n[0],n[1],n[2])&&(n=[n[0]]),u(e,l(n,1),[])});e.exports=c},82817:function(e,n,r){"use strict";r.d(n,{O:function(){return z}});var l,u,o,s=r(2265),c=r(11931),d=r(75606),p=r(60597),b=r(93850),v=r(65410),x=r(32600),g=r(46618),h=r(8076),m=r(61858),T=r(80634),y=r(58227);function focus_sentinel_A({onFocus:e}){let[n,r]=(0,s.useState)(!0),l=(0,T.t)();return n?s.createElement(y._,{as:"button",type:"button",features:y.A.Focusable,onFocus:n=>{n.preventDefault();let u,o=50;function t(){if(o--<=0){u&&cancelAnimationFrame(u);return}if(e()){if(cancelAnimationFrame(u),!l.current)return;r(!1);return}u=requestAnimationFrame(t)}u=requestAnimationFrame(t)}}):null}var E=r(12950),I=r(55195),A=r(54851);let P=s.createContext(null);function a(){return{groups:new Map,get(e,n){var r;let l=this.groups.get(e);l||(l=new Map,this.groups.set(e,l));let u=null!=(r=l.get(n))?r:0;function i(){let e=l.get(n);e>1?l.set(n,e-1):l.delete(n)}return l.set(n,u+1),[Array.from(l.keys()).indexOf(n),i]}}}function stable_collection_C({children:e}){let n=s.useRef(a());return s.createElement(P.Provider,{value:n},e)}function stable_collection_d(e){let n=s.useContext(P);if(!n)throw Error("You must wrap your component in a ");let r=f(),[l,u]=n.current.get(e,r);return s.useEffect(()=>u,[]),l}function f(){var e,n,r;let l=null!=(r=null==(n=null==(e=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:n.current)?r:null;if(!l)return Symbol();let u=[],o=l;for(;o;)u.push(o.index),o=o.return;return"$."+u.join(".")}var _=((l=_||{})[l.Forwards=0]="Forwards",l[l.Backwards=1]="Backwards",l),O=((u=O||{})[u.Less=-1]="Less",u[u.Equal=0]="Equal",u[u.Greater=1]="Greater",u),R=((o=R||{})[o.SetSelectedIndex=0]="SetSelectedIndex",o[o.RegisterTab=1]="RegisterTab",o[o.UnregisterTab=2]="UnregisterTab",o[o.RegisterPanel=3]="RegisterPanel",o[o.UnregisterPanel=4]="UnregisterPanel",o);let S={0(e,n){var r;let l=(0,v.z2)(e.tabs,e=>e.current),u=(0,v.z2)(e.panels,e=>e.current),o=l.filter(e=>{var n;return!(null!=(n=e.current)&&n.hasAttribute("disabled"))}),s={...e,tabs:l,panels:u};if(n.index<0||n.index>l.length-1){let r=(0,p.E)(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,p.E)(Math.sign(n.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return s;let u=(0,p.E)(r,{0:()=>l.indexOf(o[0]),1:()=>l.indexOf(o[o.length-1])});return{...s,selectedIndex:-1===u?e.selectedIndex:u}}let c=l.slice(0,n.index),d=[...l.slice(n.index),...c].find(e=>o.includes(e));if(!d)return s;let b=null!=(r=l.indexOf(d))?r:e.selectedIndex;return -1===b&&(b=e.selectedIndex),{...s,selectedIndex:b}},1(e,n){var r;if(e.tabs.includes(n.tab))return e;let l=e.tabs[e.selectedIndex],u=(0,v.z2)([...e.tabs,n.tab],e=>e.current),o=null!=(r=u.indexOf(l))?r:e.selectedIndex;return -1===o&&(o=e.selectedIndex),{...e,tabs:u,selectedIndex:o}},2:(e,n)=>({...e,tabs:e.tabs.filter(e=>e!==n.tab)}),3:(e,n)=>e.panels.includes(n.panel)?e:{...e,panels:(0,v.z2)([...e.panels,n.panel],e=>e.current)},4:(e,n)=>({...e,panels:e.panels.filter(e=>e!==n.panel)})},w=(0,s.createContext)(null);function M(e){let n=(0,s.useContext)(w);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,M),n}return n}w.displayName="TabsDataContext";let C=(0,s.createContext)(null);function q(e){let n=(0,s.useContext)(C);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,q),n}return n}function fe(e,n){return(0,p.E)(n.type,S,e,n)}C.displayName="TabsActionsContext";let k=s.Fragment;function me(e,n){let{defaultIndex:r=0,vertical:l=!1,manual:u=!1,onChange:o,selectedIndex:d=null,...p}=e,b=l?"vertical":"horizontal",h=u?"manual":"auto",T=null!==d,y=(0,g.T)(n),[I,A]=(0,s.useReducer)(fe,{selectedIndex:null!=d?d:r,tabs:[],panels:[]}),P=(0,s.useMemo)(()=>({selectedIndex:I.selectedIndex}),[I.selectedIndex]),_=(0,m.E)(o||(()=>{})),O=(0,m.E)(I.tabs),R=(0,s.useMemo)(()=>({orientation:b,activation:h,...I}),[b,h,I]),S=(0,E.z)(e=>(A({type:1,tab:e}),()=>A({type:2,tab:e}))),F=(0,E.z)(e=>(A({type:3,panel:e}),()=>A({type:4,panel:e}))),z=(0,E.z)(e=>{D.current!==e&&_.current(e),T||A({type:0,index:e})}),D=(0,m.E)(T?e.selectedIndex:I.selectedIndex),N=(0,s.useMemo)(()=>({registerTab:S,registerPanel:F,change:z}),[]);return(0,x.e)(()=>{A({type:0,index:null!=d?d:r})},[d]),(0,x.e)(()=>{if(void 0===D.current||I.tabs.length<=0)return;let e=(0,v.z2)(I.tabs,e=>e.current);e.some((e,n)=>I.tabs[n]!==e)&&z(e.indexOf(I.tabs[D.current]))}),s.createElement(stable_collection_C,null,s.createElement(C.Provider,{value:N},s.createElement(w.Provider,{value:R},R.tabs.length<=0&&s.createElement(focus_sentinel_A,{onFocus:()=>{var e,n;for(let r of O.current)if((null==(e=r.current)?void 0:e.tabIndex)===0)return null==(n=r.current)||n.focus(),!0;return!1}}),(0,c.sY)({ourProps:{ref:y},theirProps:p,slot:P,defaultTag:k,name:"Tabs"}))))}function xe(e,n){let{orientation:r,selectedIndex:l}=M("Tab.List"),u=(0,g.T)(n);return(0,c.sY)({ourProps:{ref:u,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:l},defaultTag:"div",name:"Tabs.List"})}function ye(e,n){var r,l;let u=(0,d.M)(),{id:o=`headlessui-tabs-tab-${u}`,...m}=e,{orientation:T,activation:y,selectedIndex:P,tabs:_,panels:O}=M("Tab"),R=q("Tab"),S=M("Tab"),w=(0,s.useRef)(null),C=(0,g.T)(w,n);(0,x.e)(()=>R.registerTab(w),[R,w]);let k=stable_collection_d("tabs"),F=_.indexOf(w);-1===F&&(F=k);let z=F===P,D=(0,E.z)(e=>{var n;let r=e();if(r===v.fE.Success&&"auto"===y){let e=null==(n=(0,A.r)(w))?void 0:n.activeElement,r=S.tabs.findIndex(n=>n.current===e);-1!==r&&R.change(r)}return r}),N=(0,E.z)(e=>{let n=_.map(e=>e.current).filter(Boolean);if(e.key===b.R.Space||e.key===b.R.Enter){e.preventDefault(),e.stopPropagation(),R.change(F);return}switch(e.key){case b.R.Home:case b.R.PageUp:return e.preventDefault(),e.stopPropagation(),D(()=>(0,v.jA)(n,v.TO.First));case b.R.End:case b.R.PageDown:return e.preventDefault(),e.stopPropagation(),D(()=>(0,v.jA)(n,v.TO.Last))}if(D(()=>(0,p.E)(T,{vertical:()=>e.key===b.R.ArrowUp?(0,v.jA)(n,v.TO.Previous|v.TO.WrapAround):e.key===b.R.ArrowDown?(0,v.jA)(n,v.TO.Next|v.TO.WrapAround):v.fE.Error,horizontal:()=>e.key===b.R.ArrowLeft?(0,v.jA)(n,v.TO.Previous|v.TO.WrapAround):e.key===b.R.ArrowRight?(0,v.jA)(n,v.TO.Next|v.TO.WrapAround):v.fE.Error}))===v.fE.Success)return e.preventDefault()}),L=(0,s.useRef)(!1),j=(0,E.z)(()=>{var e;L.current||(L.current=!0,null==(e=w.current)||e.focus({preventScroll:!0}),R.change(F),(0,I.Y)(()=>{L.current=!1}))}),B=(0,E.z)(e=>{e.preventDefault()}),U=(0,s.useMemo)(()=>({selected:z}),[z]),Y={ref:C,onKeyDown:N,onMouseDown:B,onClick:j,id:o,role:"tab",type:(0,h.f)(e,w),"aria-controls":null==(l=null==(r=O[F])?void 0:r.current)?void 0:l.id,"aria-selected":z,tabIndex:z?0:-1};return(0,c.sY)({ourProps:Y,theirProps:m,slot:U,defaultTag:"button",name:"Tabs.Tab"})}function Ae(e,n){let{selectedIndex:r}=M("Tab.Panels"),l=(0,g.T)(n),u=(0,s.useMemo)(()=>({selectedIndex:r}),[r]);return(0,c.sY)({ourProps:{ref:l},theirProps:e,slot:u,defaultTag:"div",name:"Tabs.Panels"})}let F=c.AN.RenderStrategy|c.AN.Static;function Se(e,n){var r,l,u,o;let p=(0,d.M)(),{id:b=`headlessui-tabs-panel-${p}`,tabIndex:v=0,...h}=e,{selectedIndex:m,tabs:T,panels:E}=M("Tab.Panel"),I=q("Tab.Panel"),A=(0,s.useRef)(null),P=(0,g.T)(A,n);(0,x.e)(()=>I.registerPanel(A),[I,A]);let _=stable_collection_d("panels"),O=E.indexOf(A);-1===O&&(O=_);let R=O===m,S=(0,s.useMemo)(()=>({selected:R}),[R]),w={ref:P,id:b,role:"tabpanel","aria-labelledby":null==(l=null==(r=T[O])?void 0:r.current)?void 0:l.id,tabIndex:R?v:-1};return R||null!=(u=h.unmount)&&!u||null!=(o=h.static)&&o?(0,c.sY)({ourProps:w,theirProps:h,slot:S,defaultTag:"div",features:F,visible:R,name:"Tabs.Panel"}):s.createElement(y._,{as:"span",...w})}let z=Object.assign((0,c.yV)(ye),{Group:(0,c.yV)(me),List:(0,c.yV)(xe),Panels:(0,c.yV)(Ae),Panel:(0,c.yV)(Se)})}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/244-e2910c8160e82d69.js b/web/_next/static/chunks/244-e2910c8160e82d69.js new file mode 100644 index 00000000..2f0de9c9 --- /dev/null +++ b/web/_next/static/chunks/244-e2910c8160e82d69.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244],{86249:function(t,e,r){var n=r(65491).w_;t.exports.s=function(t){return n({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z"}}]})(t)}},86321:function(t,e,r){var n=r(65491).w_;t.exports.m=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 10H5c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-8C21 10.897 20.103 10 19 10zM5 20v-8h14l.002 8H5zM5 6H19V8H5zM7 2H17V4H7z"}}]})(t)}},12325:function(t,e,r){var n=r(65491).w_;t.exports.T=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 10 12 10zM12 4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 4 12 4zM12 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 16 12 16z"}}]})(t)}},78637:function(t,e,r){var n=r(65491).w_;t.exports.J=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20,5h-8.586L9.707,3.293C9.52,3.105,9.265,3,9,3H4C2.897,3,2,3.897,2,5v14c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2V7 C22,5.897,21.103,5,20,5z M4,19V7h7h1h8l0.002,12H4z"}}]})(t)}},77550:function(t,e,r){var n=r(65491).w_;t.exports.W=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.464,2.114c-0.329-0.174-0.728-0.148-1.033,0.063l-13,9C4.161,11.365,4,11.672,4,12s0.161,0.635,0.431,0.822l13,9 C17.602,21.94,17.8,22,18,22c0.159,0,0.318-0.038,0.464-0.114C18.794,21.713,19,21.372,19,21V3 C19,2.628,18.794,2.287,18.464,2.114z M17,19.091L6.757,12L17,4.909V19.091z"}}]})(t)}},92315:function(t,e,r){var n=r(65491).w_;t.exports.U=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12,2C9.243,2,7,4.243,7,7v3H6c-1.103,0-2,0.897-2,2v8c0,1.103,0.897,2,2,2h12c1.103,0,2-0.897,2-2v-8c0-1.103-0.897-2-2-2 h-1V7C17,4.243,14.757,2,12,2z M18,12l0.002,8H6v-8H18z M9,10V7c0-1.654,1.346-3,3-3s3,1.346,3,3v3H9z"}}]})(t)}},69291:function(t,e,r){var n=r(65491).w_;t.exports.U=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5.536,21.886C5.682,21.962,5.841,22,6,22c0.2,0,0.398-0.06,0.569-0.178l13-9C19.839,12.635,20,12.328,20,12 s-0.161-0.635-0.431-0.822l-13-9C6.264,1.966,5.864,1.941,5.536,2.114C5.206,2.287,5,2.628,5,3v18 C5,21.372,5.206,21.713,5.536,21.886z M7,4.909L17.243,12L7,19.091V4.909z"}}]})(t)}},66834:function(t,e,r){var n=r(65491).w_;t.exports.T=function(t){return n({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFA000",d:"M40,12H22l-4-4H8c-2.2,0-4,1.8-4,4v8h40v-4C44,13.8,42.2,12,40,12z"}},{tag:"path",attr:{fill:"#FFCA28",d:"M40,12H8c-2.2,0-4,1.8-4,4v20c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V16C44,13.8,42.2,12,40,12z"}}]})(t)}},6555:function(t,e,r){var n=r(65491).w_;t.exports.b=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"ellipse",attr:{cx:"12",cy:"5",rx:"9",ry:"3"}},{tag:"path",attr:{d:"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"}},{tag:"path",attr:{d:"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"}}]})(t)}},77097:function(t,e,r){var n=r(65491).w_;t.exports.M=function(t){return n({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z"}}]})(t)}},24034:function(t,e,r){var n=r(65491).w_;t.exports.G=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(t)}},753:function(t,e,r){var n=r(65491).w_;t.exports.F=function(t){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(t)}},20302:function(t,e,r){"use strict";r.d(e,{Z:function(){return isBefore}});var n=r(75725),a=r(92895);function isBefore(t,e){(0,a.Z)(2,arguments);var r=(0,n.Z)(t),i=(0,n.Z)(e);return r.getTime()=u.getDate())?u:(r.setFullYear(u.getFullYear(),u.getMonth(),s),r)}function addYears(t,e){return(0,i.Z)(2,arguments),addMonths(t,12*(0,n.Z)(e))}function subYears(t,e){return(0,i.Z)(2,arguments),addYears(t,-(0,n.Z)(e))}},66169:function(t,e,r){"use strict";function on(t){for(var e=[],r=1;r{let fetchFn=async()=>{let r;let a=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,o=e.state.data?.pages||[],s=e.state.data?.pageParams||[],u=!1,addSignalProperty=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?u=!0:e.signal.addEventListener("abort",()=>{u=!0}),e.signal)})},c=e.options.queryFn||(()=>Promise.reject(Error(`Missing queryFn: '${e.options.queryHash}'`))),fetchPage=async(t,r,a)=>{if(u)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);let i={queryKey:e.queryKey,pageParam:r,direction:a?"backward":"forward",meta:e.options.meta};addSignalProperty(i);let o=await c(i),{maxPages:s}=e.options,f=a?n.Ht:n.VX;return{pages:f(t.pages,o,s),pageParams:f(t.pageParams,r,s)}};if(i&&o.length){let t="backward"===i,e=t?getPreviousPageParam:getNextPageParam,n={pages:o,pageParams:s},u=e(a,n);r=await fetchPage(n,u,t)}else{r=await fetchPage({pages:[],pageParams:[]},s[0]??a.initialPageParam);let e=t??o.length;for(let t=1;te.options.persister?.(fetchFn,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},r):e.fetchFn=fetchFn}}}function getNextPageParam(t,{pages:e,pageParams:r}){let n=e.length-1;return t.getNextPageParam(e[n],e,r[n],r)}function getPreviousPageParam(t,{pages:e,pageParams:r}){return t.getPreviousPageParam?.(e[0],e,r[0],r)}function hasNextPage(t,e){return!!e&&null!=getNextPageParam(t,e)}function hasPreviousPage(t,e){return!!e&&!!t.getPreviousPageParam&&null!=getPreviousPageParam(t,e)}},33923:function(t,e,r){"use strict";r.d(e,{N:function(){return useInfiniteQuery}});var n=r(57501),a=r(18354),i=class extends n.z{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,e){super.setOptions({...t,behavior:(0,a.Gm)()},e)}getOptimisticResult(t){return t.behavior=(0,a.Gm)(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){let{state:r}=t,n=super.createResult(t,e),{isFetching:i,isRefetching:o}=n,s=i&&r.fetchMeta?.fetchMore?.direction==="forward",u=i&&r.fetchMeta?.fetchMore?.direction==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.Qy)(e,r.data),hasPreviousPage:(0,a.ZF)(e,r.data),isFetchingNextPage:s,isFetchingPreviousPage:u,isRefetching:o&&!s&&!u}}},o=r(30793);function useInfiniteQuery(t,e){return(0,o.r)(t,i,e)}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/265-28c06c1a98f170af.js b/web/_next/static/chunks/265-28c06c1a98f170af.js new file mode 100644 index 00000000..4bb473ae --- /dev/null +++ b/web/_next/static/chunks/265-28c06c1a98f170af.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[265],{98265:function(e,t,n){let r;n.d(t,{VY:function(){return es},zt:function(){return $a093c7e1ec25a057$export$2881499e37b75b9a},fC:function(){return $a093c7e1ec25a057$export$be92b6f5f03c0fe9},xz:function(){return ea}});var o=n(13428),i=n(2265),l=n.t(i,2),a=n(85744),s=n(42210),c=n(56989),u=n(9381),d=n(16459);function $addc16e1bbe58fd0$export$3a72a57244d6e765(e,t=null==globalThis?void 0:globalThis.document){let n=(0,d.W)(e);(0,i.useEffect)(()=>{let handleKeyDown=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",handleKeyDown),()=>t.removeEventListener("keydown",handleKeyDown)},[n,t])}let f="dismissableLayer.update",p=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=(0,i.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:h,onDismiss:v,...m}=e,y=(0,i.useContext)(p),[w,b]=(0,i.useState)(null),x=null!==(n=null==w?void 0:w.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,$]=(0,i.useState)({}),E=(0,s.e)(t,e=>b(e)),P=Array.from(y.layers),[C]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),R=P.indexOf(C),D=w?P.indexOf(w):-1,T=y.layersWithOutsidePointerEventsDisabled.size>0,O=D>=R,L=$5cb92bef7577960e$var$usePointerDownOutside(e=>{let t=e.target,n=[...y.branches].some(e=>e.contains(t));!O||n||(null==d||d(e),null==h||h(e),e.defaultPrevented||null==v||v())},x),F=$5cb92bef7577960e$var$useFocusOutside(e=>{let t=e.target,n=[...y.branches].some(e=>e.contains(t));n||(null==g||g(e),null==h||h(e),e.defaultPrevented||null==v||v())},x);return $addc16e1bbe58fd0$export$3a72a57244d6e765(e=>{let t=D===y.layers.size-1;t&&(null==c||c(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},x),(0,i.useEffect)(()=>{if(w)return l&&(0===y.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(w)),y.layers.add(w),$5cb92bef7577960e$var$dispatchUpdate(),()=>{l&&1===y.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[w,x,l,y]),(0,i.useEffect)(()=>()=>{w&&(y.layers.delete(w),y.layersWithOutsidePointerEventsDisabled.delete(w),$5cb92bef7577960e$var$dispatchUpdate())},[w,y]),(0,i.useEffect)(()=>{let handleUpdate=()=>$({});return document.addEventListener(f,handleUpdate),()=>document.removeEventListener(f,handleUpdate)},[]),(0,i.createElement)(u.WV.div,(0,o.Z)({},m,{ref:E,style:{pointerEvents:T?O?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.M)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,a.M)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,a.M)(e.onPointerDownCapture,L.onPointerDownCapture)}))});function $5cb92bef7577960e$var$usePointerDownOutside(e,t=null==globalThis?void 0:globalThis.document){let n=(0,d.W)(e),r=(0,i.useRef)(!1),o=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let handlePointerDown=e=>{if(e.target&&!r.current){let r={originalEvent:e};function handleAndDispatchPointerDownOutsideEvent(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=handleAndDispatchPointerDownOutsideEvent,t.addEventListener("click",o.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else t.removeEventListener("click",o.current);r.current=!1},e=window.setTimeout(()=>{t.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(e),t.removeEventListener("pointerdown",handlePointerDown),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $5cb92bef7577960e$var$useFocusOutside(e,t=null==globalThis?void 0:globalThis.document){let n=(0,d.W)(e),r=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let handleFocus=e=>{e.target&&!r.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",handleFocus),()=>t.removeEventListener("focusin",handleFocus)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $5cb92bef7577960e$var$dispatchUpdate(){let e=new CustomEvent(f);document.dispatchEvent(e)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,u.jH)(o,i):o.dispatchEvent(i)}var h=n(51030);let v=l["useId".toString()]||(()=>void 0),m=0;function $1746a345f3d73bb7$export$f680877a34711e37(e){let[t,n]=i.useState(v());return(0,h.b)(()=>{e||n(e=>null!=e?e:String(m++))},[e]),e||(t?`radix-${t}`:"")}var y=n(49473),w=n(9082),b=n(96025);function getCssDimensions(e){let t=(0,b.Dx)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=(0,b.Re)(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=(0,w.NM)(n)!==i||(0,w.NM)(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function unwrapElement(e){return(0,b.kK)(e)?e:e.contextElement}function getScale(e){let t=unwrapElement(e);if(!(0,b.Re)(t))return(0,w.ze)(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=getCssDimensions(t),l=(i?(0,w.NM)(n.width):n.width)/r,a=(i?(0,w.NM)(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let x=(0,w.ze)(0);function getVisualOffsets(e){let t=(0,b.Jj)(e);return(0,b.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:x}function shouldAddVisualOffsets(e,t,n){return void 0===t&&(t=!1),!!n&&(!t||n===(0,b.Jj)(e))&&t}function getBoundingClientRect(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),i=unwrapElement(e),l=(0,w.ze)(1);t&&(r?(0,b.kK)(r)&&(l=getScale(r)):l=getScale(e));let a=shouldAddVisualOffsets(i,n,r)?getVisualOffsets(i):(0,w.ze)(0),s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i){let e=(0,b.Jj)(i),t=r&&(0,b.kK)(r)?(0,b.Jj)(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=getScale(n),t=n.getBoundingClientRect(),r=(0,b.Dx)(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=o,c+=i,n=(0,b.Jj)(n).frameElement}}return(0,w.JB)({width:u,height:d,x:s,y:c})}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{rect:t,offsetParent:n,strategy:r}=e,o=(0,b.Re)(n),i=(0,b.tF)(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0},a=(0,w.ze)(1),s=(0,w.ze)(0);if((o||!o&&"fixed"!==r)&&(("body"!==(0,b.wk)(n)||(0,b.ao)(i))&&(l=(0,b.Lw)(n)),(0,b.Re)(n))){let e=getBoundingClientRect(n);a=getScale(n),s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-l.scrollLeft*a.x+s.x,y:t.y*a.y-l.scrollTop*a.y+s.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getWindowScrollBarX(e){return getBoundingClientRect((0,b.tF)(e)).left+(0,b.Lw)(e).scrollLeft}function getDocumentRect(e){let t=(0,b.tF)(e),n=(0,b.Lw)(e),r=e.ownerDocument.body,o=(0,w.Fp)(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=(0,w.Fp)(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+getWindowScrollBarX(e),a=-n.scrollTop;return"rtl"===(0,b.Dx)(r).direction&&(l+=(0,w.Fp)(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:a}}function getViewportRect(e,t){let n=(0,b.Jj)(e),r=(0,b.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,b.Pf)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}return{width:i,height:l,x:a,y:s}}function getInnerBoundingClientRect(e,t){let n=getBoundingClientRect(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=(0,b.Re)(e)?getScale(e):(0,w.ze)(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y,s=o*i.x,c=r*i.y;return{width:l,height:a,x:s,y:c}}function getClientRectFromClippingAncestor(e,t,n){let r;if("viewport"===t)r=getViewportRect(e,n);else if("document"===t)r=getDocumentRect((0,b.tF)(e));else if((0,b.kK)(t))r=getInnerBoundingClientRect(t,n);else{let n=getVisualOffsets(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return(0,w.JB)(r)}function hasFixedPositionAncestor(e,t){let n=(0,b.Ow)(e);return!(n===t||!(0,b.kK)(n)||(0,b.Py)(n))&&("fixed"===(0,b.Dx)(n).position||hasFixedPositionAncestor(n,t))}function getClippingElementAncestors(e,t){let n=t.get(e);if(n)return n;let r=(0,b.Kx)(e,[],!1).filter(e=>(0,b.kK)(e)&&"body"!==(0,b.wk)(e)),o=null,i="fixed"===(0,b.Dx)(e).position,l=i?(0,b.Ow)(e):e;for(;(0,b.kK)(l)&&!(0,b.Py)(l);){let t=(0,b.Dx)(l),n=(0,b.hT)(l);n||"fixed"!==t.position||(o=null);let a=i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,b.ao)(l)&&!n&&hasFixedPositionAncestor(e,l);a?r=r.filter(e=>e!==l):o=t,l=(0,b.Ow)(l)}return t.set(e,r),r}function getClippingRect(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i="clippingAncestors"===n?getClippingElementAncestors(t,this._c):[].concat(n),l=[...i,r],a=l[0],s=l.reduce((e,n)=>{let r=getClientRectFromClippingAncestor(t,n,o);return e.top=(0,w.Fp)(r.top,e.top),e.right=(0,w.VV)(r.right,e.right),e.bottom=(0,w.VV)(r.bottom,e.bottom),e.left=(0,w.Fp)(r.left,e.left),e},getClientRectFromClippingAncestor(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function getDimensions(e){return getCssDimensions(e)}function getRectRelativeToOffsetParent(e,t,n){let r=(0,b.Re)(t),o=(0,b.tF)(t),i="fixed"===n,l=getBoundingClientRect(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=(0,w.ze)(0);if(r||!r&&!i){if(("body"!==(0,b.wk)(t)||(0,b.ao)(o))&&(a=(0,b.Lw)(t)),r){let e=getBoundingClientRect(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=getWindowScrollBarX(o))}return{x:l.left+a.scrollLeft-s.x,y:l.top+a.scrollTop-s.y,width:l.width,height:l.height}}function getTrueOffsetParent(e,t){return(0,b.Re)(e)&&"fixed"!==(0,b.Dx)(e).position?t?t(e):e.offsetParent:null}function getOffsetParent(e,t){let n=(0,b.Jj)(e);if(!(0,b.Re)(e))return n;let r=getTrueOffsetParent(e,t);for(;r&&(0,b.Ze)(r)&&"static"===(0,b.Dx)(r).position;)r=getTrueOffsetParent(r,t);return r&&("html"===(0,b.wk)(r)||"body"===(0,b.wk)(r)&&"static"===(0,b.Dx)(r).position&&!(0,b.hT)(r))?n:r||(0,b.gQ)(e)||n}let getElementRects=async function(e){let{reference:t,floating:n,strategy:r}=e,o=this.getOffsetParent||getOffsetParent,i=this.getDimensions;return{reference:getRectRelativeToOffsetParent(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function isRTL(e){return"rtl"===(0,b.Dx)(e).direction}let $={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:b.tF,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:b.kK,isRTL};function observeMove(e,t){let n,r=null,o=(0,b.tF)(e);function cleanup(){clearTimeout(n),r&&r.disconnect(),r=null}function refresh(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),cleanup();let{left:a,top:s,width:c,height:u}=e.getBoundingClientRect();if(i||t(),!c||!u)return;let d=(0,w.GW)(s),f=(0,w.GW)(o.clientWidth-(a+c)),p=(0,w.GW)(o.clientHeight-(s+u)),g=(0,w.GW)(a),h={rootMargin:-d+"px "+-f+"px "+-p+"px "+-g+"px",threshold:(0,w.Fp)(0,(0,w.VV)(1,l))||1},v=!0;function handleObserve(e){let t=e[0].intersectionRatio;if(t!==l){if(!v)return refresh();t?refresh(!1,t):n=setTimeout(()=>{refresh(!1,1e-7)},100)}v=!1}try{r=new IntersectionObserver(handleObserve,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(handleObserve,h)}r.observe(e)}return refresh(!0),cleanup}function autoUpdate(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=unwrapElement(e),d=i||l?[...u?(0,b.Kx)(u):[],...(0,b.Kx)(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=u&&s?observeMove(u,n):null,p=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!c&&g.observe(u),g.observe(t));let h=c?getBoundingClientRect(e):null;function frameLoop(){let t=getBoundingClientRect(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,o=requestAnimationFrame(frameLoop)}return c&&frameLoop(),n(),()=>{d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,c&&cancelAnimationFrame(o)}}let computePosition=(e,t,n)=>{let r=new Map,o={platform:$,...n},i={...o.platform,_c:r};return(0,y.oo)(e,t,{...o,platform:i})};var E=n(54887);let floating_ui_react_dom_arrow=e=>{function isRef(e){return({}).hasOwnProperty.call(e,"current")}return{name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;if(n&&isRef(n)){if(null!=n.current)return(0,y.x7)({element:n.current,padding:r}).fn(t)}else if(n)return(0,y.x7)({element:n,padding:r}).fn(t);return{}}}};var P="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function deepEqual(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(!deepEqual(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)&&!deepEqual(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function getDPR(e){if("undefined"==typeof window)return 1;let t=e.ownerDocument.defaultView||window;return t.devicePixelRatio||1}function roundByDPR(e,t){let n=getDPR(e);return Math.round(t*n)/n}function useLatestRef(e){let t=i.useRef(e);return P(()=>{t.current=e}),t}function useFloating(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,g]=i.useState(r);deepEqual(p,r)||g(r);let[h,v]=i.useState(null),[m,y]=i.useState(null),w=i.useCallback(e=>{e!=C.current&&(C.current=e,v(e))},[v]),b=i.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[y]),x=l||h,$=a||m,C=i.useRef(null),R=i.useRef(null),D=i.useRef(d),T=useLatestRef(c),O=useLatestRef(o),L=i.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};O.current&&(e.platform=O.current),computePosition(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!0};F.current&&!deepEqual(D.current,t)&&(D.current=t,E.flushSync(()=>{f(t)}))})},[p,t,n,O]);P(()=>{!1===u&&D.current.isPositioned&&(D.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let F=i.useRef(!1);P(()=>(F.current=!0,()=>{F.current=!1}),[]),P(()=>{if(x&&(C.current=x),$&&(R.current=$),x&&$){if(T.current)return T.current(x,$,L);L()}},[x,$,L,T]);let k=i.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),A=i.useMemo(()=>({reference:x,floating:$}),[x,$]),S=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=roundByDPR(A.floating,d.x),r=roundByDPR(A.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...getDPR(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,A.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:L,refs:k,elements:A,floatingStyles:S}),[d,L,k,A,S])}let C=(0,i.forwardRef)((e,t)=>{let{children:n,width:r=10,height:l=5,...a}=e;return(0,i.createElement)(u.WV.svg,(0,o.Z)({},a,{ref:t,width:r,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var R=n(94977);let D="Popper",[T,O]=(0,c.b)(D),[L,F]=T(D),k=(0,i.forwardRef)((e,t)=>{let{__scopePopper:n,virtualRef:r,...l}=e,a=F("PopperAnchor",n),c=(0,i.useRef)(null),d=(0,s.e)(t,c);return(0,i.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||c.current)}),r?null:(0,i.createElement)(u.WV.div,(0,o.Z)({},l,{ref:d}))}),A="PopperContent",[S,W]=T(A),_=(0,i.forwardRef)((e,t)=>{var n,r,l,a,c,f,p,g;let{__scopePopper:v,side:m="bottom",sideOffset:w=0,align:b="center",alignOffset:x=0,arrowPadding:$=0,avoidCollisions:E=!0,collisionBoundary:P=[],collisionPadding:C=0,sticky:D="partial",hideWhenDetached:T=!1,updatePositionStrategy:O="optimized",onPlaced:L,...k}=e,W=F(A,v),[_,M]=(0,i.useState)(null),B=(0,s.e)(t,e=>M(e)),[V,H]=(0,i.useState)(null),z=(0,R.t)(V),I=null!==(n=null==z?void 0:z.width)&&void 0!==n?n:0,K=null!==(r=null==z?void 0:z.height)&&void 0!==r?r:0,j="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},N=Array.isArray(P)?P:[P],Z=N.length>0,J={padding:j,boundary:N.filter($cf1ac5d9fe0e8206$var$isNotNull),altBoundary:Z},{refs:U,floatingStyles:q,placement:G,isPositioned:X,middlewareData:Y}=useFloating({strategy:"fixed",placement:m+("center"!==b?"-"+b:""),whileElementsMounted:(...e)=>{let t=autoUpdate(...e,{animationFrame:"always"===O});return t},elements:{reference:W.anchor},middleware:[(0,y.cv)({mainAxis:w+K,alignmentAxis:x}),E&&(0,y.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===D?(0,y.dr)():void 0,...J}),E&&(0,y.RR)({...J}),(0,y.dp)({...J,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)}}),V&&floating_ui_react_dom_arrow({element:V,padding:$}),$cf1ac5d9fe0e8206$var$transformOrigin({arrowWidth:I,arrowHeight:K}),T&&(0,y.Cp)({strategy:"referenceHidden",...J})]}),[Q,ee]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(G),et=(0,d.W)(L);(0,h.b)(()=>{X&&(null==et||et())},[X,et]);let en=null===(l=Y.arrow)||void 0===l?void 0:l.x,er=null===(a=Y.arrow)||void 0===a?void 0:a.y,eo=(null===(c=Y.arrow)||void 0===c?void 0:c.centerOffset)!==0,[ei,el]=(0,i.useState)();return(0,h.b)(()=>{_&&el(window.getComputedStyle(_).zIndex)},[_]),(0,i.createElement)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:X?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ei,"--radix-popper-transform-origin":[null===(f=Y.transformOrigin)||void 0===f?void 0:f.x,null===(p=Y.transformOrigin)||void 0===p?void 0:p.y].join(" ")},dir:e.dir},(0,i.createElement)(S,{scope:v,placedSide:Q,onArrowChange:H,arrowX:en,arrowY:er,shouldHideArrow:eo},(0,i.createElement)(u.WV.div,(0,o.Z)({"data-side":Q,"data-align":ee},k,{ref:B,style:{...k.style,animation:X?void 0:"none",opacity:null!==(g=Y.hide)&&void 0!==g&&g.referenceHidden?0:void 0}}))))}),M={top:"bottom",right:"left",bottom:"top",left:"right"};function $cf1ac5d9fe0e8206$var$isNotNull(e){return null!==e}let $cf1ac5d9fe0e8206$var$transformOrigin=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:s,middlewareData:c}=t,u=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,g]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(a),h={start:"0%",center:"50%",end:"100%"}[g],v=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,m=(null!==(i=null===(l=c.arrow)||void 0===l?void 0:l.y)&&void 0!==i?i:0)+f/2,y="",w="";return"bottom"===p?(y=u?h:`${v}px`,w=`${-f}px`):"top"===p?(y=u?h:`${v}px`,w=`${s.floating.height+f}px`):"right"===p?(y=`${-f}px`,w=u?h:`${m}px`):"left"===p&&(y=`${s.floating.width+f}px`,w=u?h:`${m}px`),{data:{x:y,y:w}}}});function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(e){let[t,n="center"]=e.split("-");return[t,n]}let $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9=e=>{let{__scopePopper:t,children:n}=e,[r,o]=(0,i.useState)(null);return(0,i.createElement)(L,{scope:t,anchor:r,onAnchorChange:o},n)};var B=n(85606),V=n(67256),H=n(73763);let z=(0,i.forwardRef)((e,t)=>(0,i.createElement)(u.WV.span,(0,o.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),[I,K]=(0,c.b)("Tooltip",[O]),j=O(),N="tooltip.open",[Z,J]=I("TooltipProvider"),U="Tooltip",[q,G]=I(U),X="TooltipTrigger",Y=(0,i.forwardRef)((e,t)=>{let{__scopeTooltip:n,...r}=e,l=G(X,n),c=J(X,n),d=j(n),f=(0,i.useRef)(null),p=(0,s.e)(t,f,l.onTriggerChange),g=(0,i.useRef)(!1),h=(0,i.useRef)(!1),v=(0,i.useCallback)(()=>g.current=!1,[]);return(0,i.useEffect)(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,i.createElement)(k,(0,o.Z)({asChild:!0},d),(0,i.createElement)(u.WV.button,(0,o.Z)({"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute},r,{ref:p,onPointerMove:(0,a.M)(e.onPointerMove,e=>{"touch"===e.pointerType||h.current||c.isPointerInTransitRef.current||(l.onTriggerEnter(),h.current=!0)}),onPointerLeave:(0,a.M)(e.onPointerLeave,()=>{l.onTriggerLeave(),h.current=!1}),onPointerDown:(0,a.M)(e.onPointerDown,()=>{g.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,a.M)(e.onFocus,()=>{g.current||l.onOpen()}),onBlur:(0,a.M)(e.onBlur,l.onClose),onClick:(0,a.M)(e.onClick,l.onClose)})))}),[Q,ee]=I("TooltipPortal",{forceMount:void 0}),et="TooltipContent",en=(0,i.forwardRef)((e,t)=>{let n=ee(et,e.__scopeTooltip),{forceMount:r=n.forceMount,side:l="top",...a}=e,s=G(et,e.__scopeTooltip);return(0,i.createElement)(B.z,{present:r||s.open},s.disableHoverableContent?(0,i.createElement)(el,(0,o.Z)({side:l},a,{ref:t})):(0,i.createElement)(er,(0,o.Z)({side:l},a,{ref:t})))}),er=(0,i.forwardRef)((e,t)=>{let n=G(et,e.__scopeTooltip),r=J(et,e.__scopeTooltip),l=(0,i.useRef)(null),a=(0,s.e)(t,l),[c,u]=(0,i.useState)(null),{trigger:d,onClose:f}=n,p=l.current,{onPointerInTransitChange:g}=r,h=(0,i.useCallback)(()=>{u(null),g(!1)},[g]),v=(0,i.useCallback)((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=$a093c7e1ec25a057$var$getExitSideFromRect(r,n.getBoundingClientRect()),i=$a093c7e1ec25a057$var$getPaddedExitPoints(r,o),l=$a093c7e1ec25a057$var$getPointsFromRect(t.getBoundingClientRect()),a=$a093c7e1ec25a057$var$getHull([...i,...l]);u(a),g(!0)},[g]);return(0,i.useEffect)(()=>()=>h(),[h]),(0,i.useEffect)(()=>{if(d&&p){let handleTriggerLeave=e=>v(e,p),handleContentLeave=e=>v(e,d);return d.addEventListener("pointerleave",handleTriggerLeave),p.addEventListener("pointerleave",handleContentLeave),()=>{d.removeEventListener("pointerleave",handleTriggerLeave),p.removeEventListener("pointerleave",handleContentLeave)}}},[d,p,v,h]),(0,i.useEffect)(()=>{if(c){let handleTrackPointerGrace=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==d?void 0:d.contains(t))||(null==p?void 0:p.contains(t)),o=!$a093c7e1ec25a057$var$isPointInPolygon(n,c);r?h():o&&(h(),f())};return document.addEventListener("pointermove",handleTrackPointerGrace),()=>document.removeEventListener("pointermove",handleTrackPointerGrace)}},[d,p,c,f,h]),(0,i.createElement)(el,(0,o.Z)({},e,{ref:a}))}),[eo,ei]=I(U,{isInside:!1}),el=(0,i.forwardRef)((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":l,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,u=G(et,n),d=j(n),{onClose:f}=u;return(0,i.useEffect)(()=>(document.addEventListener(N,f),()=>document.removeEventListener(N,f)),[f]),(0,i.useEffect)(()=>{if(u.trigger){let handleScroll=e=>{let t=e.target;null!=t&&t.contains(u.trigger)&&f()};return window.addEventListener("scroll",handleScroll,{capture:!0}),()=>window.removeEventListener("scroll",handleScroll,{capture:!0})}},[u.trigger,f]),(0,i.createElement)(g,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},(0,i.createElement)(_,(0,o.Z)({"data-state":u.stateAttribute},d,c,{ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,i.createElement)(V.A4,null,r),(0,i.createElement)(eo,{scope:n,isInside:!0},(0,i.createElement)(z,{id:u.contentId,role:"tooltip"},l||r))))});function $a093c7e1ec25a057$var$getExitSideFromRect(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}function $a093c7e1ec25a057$var$getPaddedExitPoints(e,t,n=5){let r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}function $a093c7e1ec25a057$var$getPointsFromRect(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function $a093c7e1ec25a057$var$isPointInPolygon(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=c>r&&n<(s-l)*(r-a)/(c-a)+l;u&&(o=!o)}return o}function $a093c7e1ec25a057$var$getHull(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),$a093c7e1ec25a057$var$getHullPresorted(t)}function $a093c7e1ec25a057$var$getHullPresorted(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}let $a093c7e1ec25a057$export$2881499e37b75b9a=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:l}=e,[a,s]=(0,i.useState)(!0),c=(0,i.useRef)(!1),u=(0,i.useRef)(0);return(0,i.useEffect)(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,i.createElement)(Z,{scope:t,isOpenDelayed:a,delayDuration:n,onOpen:(0,i.useCallback)(()=>{window.clearTimeout(u.current),s(!1)},[]),onClose:(0,i.useCallback)(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s(!0),r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:(0,i.useCallback)(e=>{c.current=e},[]),disableHoverableContent:o},l)},$a093c7e1ec25a057$export$be92b6f5f03c0fe9=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:s}=e,c=J(U,e.__scopeTooltip),u=j(t),[d,f]=(0,i.useState)(null),p=$1746a345f3d73bb7$export$f680877a34711e37(),g=(0,i.useRef)(0),h=null!=a?a:c.disableHoverableContent,v=null!=s?s:c.delayDuration,m=(0,i.useRef)(!1),[y=!1,w]=(0,H.T)({prop:r,defaultProp:o,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(N))):c.onClose(),null==l||l(e)}}),b=(0,i.useMemo)(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),x=(0,i.useCallback)(()=>{window.clearTimeout(g.current),m.current=!1,w(!0)},[w]),$=(0,i.useCallback)(()=>{window.clearTimeout(g.current),w(!1)},[w]),E=(0,i.useCallback)(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{m.current=!0,w(!0)},v)},[v,w]);return(0,i.useEffect)(()=>()=>window.clearTimeout(g.current),[]),(0,i.createElement)($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9,u,(0,i.createElement)(q,{scope:t,contentId:p,open:y,stateAttribute:b,trigger:d,onTriggerChange:f,onTriggerEnter:(0,i.useCallback)(()=>{c.isOpenDelayed?E():x()},[c.isOpenDelayed,E,x]),onTriggerLeave:(0,i.useCallback)(()=>{h?$():window.clearTimeout(g.current)},[$,h]),onOpen:x,onClose:$,disableHoverableContent:h},n))},ea=Y,es=en}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/310-7fd40363424decf0.js b/web/_next/static/chunks/310-7fd40363424decf0.js new file mode 100644 index 00000000..ae1e1bc2 --- /dev/null +++ b/web/_next/static/chunks/310-7fd40363424decf0.js @@ -0,0 +1,22 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[310],{56407:function(e,t,n){var l=n(65491).w_;e.exports.Q=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"}}]})(e)}},86249:function(e,t,n){var l=n(65491).w_;e.exports.s=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z"}}]})(e)}},76352:function(e,t,n){var l=n(65491).w_;e.exports.p=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]})(e)}},99374:function(e,t,n){var l=n(65491).w_;e.exports.C=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"}}]})(e)}},73514:function(e,t,n){var l=n(65491).w_;e.exports.l=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M923 283.6a260.04 260.04 0 0 0-56.9-82.8 264.4 264.4 0 0 0-84-55.5A265.34 265.34 0 0 0 679.7 125c-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5a258.44 258.44 0 0 0-56.9 82.8c-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3.1-35.3-7-69.6-20.9-101.9zM512 814.8S156 586.7 156 385.5C156 283.6 240.3 201 344.3 201c73.1 0 136.5 40.8 167.7 100.4C543.2 241.8 606.6 201 679.7 201c104 0 188.3 82.6 188.3 184.5 0 201.2-356 429.3-356 429.3z"}}]})(e)}},71151:function(e,t,n){var l=n(65491).w_;e.exports.y=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0 0 46.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]})(e)}},1022:function(e,t,n){var l=n(65491).w_;e.exports.V=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M4.998 8H19V20H4.998z"}},{tag:"path",attr:{d:"M2.999,6v2v12c0,1.103,0.897,2,2,2h14c1.103,0,2-0.897,2-2V8V6c0-1.103-0.897-2-2-2h-2V2h-2v2h-6V2h-2v2h-2 C3.896,4,2.999,4.897,2.999,6z M19.001,20H4.999V8h14L19.001,20z"}}]})(e)}},86321:function(e,t,n){var l=n(65491).w_;e.exports.m=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 10H5c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-8C21 10.897 20.103 10 19 10zM5 20v-8h14l.002 8H5zM5 6H19V8H5zM7 2H17V4H7z"}}]})(e)}},32366:function(e,t,n){var l=n(65491).w_;e.exports.K=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 10H14V14H10zM16 10H20V14H16zM4 10H8V14H4z"}}]})(e)}},12325:function(e,t,n){var l=n(65491).w_;e.exports.T=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 10 12 10zM12 4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 4 12 4zM12 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 16 12 16z"}}]})(e)}},8538:function(e,t,n){var l=n(65491).w_;e.exports.y=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16L16 11 13 11 13 4 11 4 11 11 8 11z"}},{tag:"path",attr:{d:"M20,18H4v-7H2v7c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2v-7h-2V18z"}}]})(e)}},33591:function(e,t,n){var l=n(65491).w_;e.exports.U=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19.903,8.586c-0.049-0.106-0.11-0.207-0.196-0.293l-6-6c-0.086-0.086-0.187-0.147-0.293-0.196 c-0.03-0.014-0.062-0.022-0.094-0.033c-0.084-0.028-0.17-0.046-0.259-0.051C13.04,2.011,13.021,2,13,2H6C4.897,2,4,2.897,4,4v16 c0,1.103,0.897,2,2,2h12c1.103,0,2-0.897,2-2V9c0-0.021-0.011-0.04-0.013-0.062c-0.005-0.089-0.022-0.175-0.051-0.259 C19.926,8.647,19.917,8.616,19.903,8.586z M16.586,8H14V5.414L16.586,8z M6,20V4h6v5c0,0.553,0.447,1,1,1h5l0.002,10H6z"}},{tag:"path",attr:{d:"M8 12H16V14H8zM8 16H16V18H8zM8 8H10V10H8z"}}]})(e)}},35073:function(e,t,n){var l=n(65491).w_;e.exports.k=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12,4.595c-1.104-1.006-2.512-1.558-3.996-1.558c-1.578,0-3.072,0.623-4.213,1.758c-2.353,2.363-2.352,6.059,0.002,8.412 l7.332,7.332c0.17,0.299,0.498,0.492,0.875,0.492c0.322,0,0.609-0.163,0.792-0.409l7.415-7.415 c2.354-2.354,2.354-6.049-0.002-8.416c-1.137-1.131-2.631-1.754-4.209-1.754C14.513,3.037,13.104,3.589,12,4.595z M18.791,6.205 c1.563,1.571,1.564,4.025,0.002,5.588L12,18.586l-6.793-6.793C3.645,10.23,3.646,7.776,5.205,6.209 c0.76-0.756,1.754-1.172,2.799-1.172s2.035,0.416,2.789,1.17l0.5,0.5c0.391,0.391,1.023,0.391,1.414,0l0.5-0.5 C14.719,4.698,17.281,4.702,18.791,6.205z"}}]})(e)}},36255:function(e,t,n){var l=n(65491).w_;e.exports.r=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 3L16.293 6.293 9.293 13.293 10.707 14.707 17.707 7.707 21 11 21 3z"}},{tag:"path",attr:{d:"M19,19H5V5h7l-2-2H5C3.897,3,3,3.897,3,5v14c0,1.103,0.897,2,2,2h14c1.103,0,2-0.897,2-2v-5l-2-2V19z"}}]})(e)}},80024:function(e,t,n){var l=n(65491).w_;e.exports.g=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 15L19 12 17 12 17 15 14.78 15 14 15 14 17 14.78 17 17 17 17 20 19 20 19 17 21.063 17 22 17 22 15 21.063 15zM4 7H15V9H4zM4 11H15V13H4zM4 15H12V17H4z"}}]})(e)}},24285:function(e,t,n){var l=n(65491).w_;e.exports.k=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17,8V7c0-2.757-2.243-5-5-5S7,4.243,7,7v3H6c-1.103,0-2,0.897-2,2v8c0,1.103,0.897,2,2,2h12c1.103,0,2-0.897,2-2v-8 c0-1.103-0.897-2-2-2H9V7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H17z M18,12l0.002,8H6v-8H18z"}}]})(e)}},85208:function(e,t,n){var l=n(65491).w_;e.exports.p=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 11L13 11 13 5 11 5 11 11 5 11 5 13 11 13 11 19 13 19 13 13 19 13z"}}]})(e)}},42552:function(e,t,n){var l=n(65491).w_;e.exports.O=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M11.293 17.293L12.707 18.707 19.414 12 12.707 5.293 11.293 6.707 15.586 11 6 11 6 13 15.586 13z"}}]})(e)}},67701:function(e,t,n){var l=n(65491).w_;e.exports.s=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.516,14.323l-1.49,6.452c-0.092,0.399,0.068,0.814,0.406,1.047C5.603,21.94,5.801,22,6,22 c0.193,0,0.387-0.056,0.555-0.168L12,18.202l5.445,3.63c0.348,0.232,0.805,0.223,1.145-0.024c0.338-0.247,0.487-0.68,0.372-1.082 l-1.829-6.4l4.536-4.082c0.297-0.268,0.406-0.686,0.278-1.064c-0.129-0.378-0.47-0.644-0.868-0.676L15.378,8.05l-2.467-5.461 C12.75,2.23,12.393,2,12,2s-0.75,0.23-0.911,0.589L8.622,8.05L2.921,8.503C2.529,8.534,2.192,8.791,2.06,9.16 c-0.134,0.369-0.038,0.782,0.242,1.056L6.516,14.323z M9.369,9.997c0.363-0.029,0.683-0.253,0.832-0.586L12,5.43l1.799,3.981 c0.149,0.333,0.469,0.557,0.832,0.586l3.972,0.315l-3.271,2.944c-0.284,0.256-0.397,0.65-0.293,1.018l1.253,4.385l-3.736-2.491 c-0.336-0.225-0.773-0.225-1.109,0l-3.904,2.603l1.05-4.546c0.078-0.34-0.026-0.697-0.276-0.94l-3.038-2.962L9.369,9.997z"}}]})(e)}},87870:function(e,t,n){var l=n(65491).w_;e.exports.S=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M17.004 20L17.003 8h-1-8-1v12H17.004zM13.003 10h2v8h-2V10zM9.003 10h2v8h-2V10zM9.003 4H15.003V6H9.003z"}},{tag:"path",attr:{d:"M5.003,20c0,1.103,0.897,2,2,2h10c1.103,0,2-0.897,2-2V8h2V6h-3h-1V4c0-1.103-0.897-2-2-2h-6c-1.103,0-2,0.897-2,2v2h-1h-3 v2h2V20z M9.003,4h6v2h-6V4z M8.003,8h8h1l0.001,12H7.003V8H8.003z"}},{tag:"path",attr:{d:"M9.003 10H11.003V18H9.003zM13.003 10H15.003V18H13.003z"}}]})(e)}},19395:function(e,t,n){var l=n(65491).w_;e.exports.$=function(e){return l({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#3F51B5",d:"M43,39V24h-4v15c0,5,4,9,9,9v-4C45.2,44,43,41.8,43,39z"}},{tag:"circle",attr:{fill:"#90A4AE",cx:"24",cy:"24",r:"19"}},{tag:"circle",attr:{fill:"#37474F",cx:"24",cy:"24",r:"2"}},{tag:"g",attr:{fill:"#253278"},child:[{tag:"circle",attr:{cx:"24",cy:"14",r:"5"}},{tag:"circle",attr:{cx:"24",cy:"34",r:"5"}},{tag:"circle",attr:{cx:"34",cy:"24",r:"5"}},{tag:"circle",attr:{cx:"14",cy:"24",r:"5"}}]}]})(e)}},66834:function(e,t,n){var l=n(65491).w_;e.exports.T=function(e){return l({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFA000",d:"M40,12H22l-4-4H8c-2.2,0-4,1.8-4,4v8h40v-4C44,13.8,42.2,12,40,12z"}},{tag:"path",attr:{fill:"#FFCA28",d:"M40,12H8c-2.2,0-4,1.8-4,4v20c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V16C44,13.8,42.2,12,40,12z"}}]})(e)}},62319:function(e,t,n){var l=n(65491).w_;e.exports.B=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}},{tag:"polygon",attr:{points:"10 8 16 12 10 16 10 8"}}]})(e)}},88356:function(e,t,n){var l=n(65491).w_;e.exports.j=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(e)}},24034:function(e,t,n){var l=n(65491).w_;e.exports.G=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}},753:function(e,t,n){var l=n(65491).w_;e.exports.F=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}},24521:function(e,t,n){var l=n(65491).w_;e.exports.n=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9.342 18.782l-1.931-.518.787-2.939a10.988 10.988 0 0 1-3.237-1.872l-2.153 2.154-1.415-1.415 2.154-2.153a10.957 10.957 0 0 1-2.371-5.07l1.968-.359C3.903 10.812 7.579 14 12 14c4.42 0 8.097-3.188 8.856-7.39l1.968.358a10.957 10.957 0 0 1-2.37 5.071l2.153 2.153-1.415 1.415-2.153-2.154a10.988 10.988 0 0 1-3.237 1.872l.787 2.94-1.931.517-.788-2.94a11.072 11.072 0 0 1-3.74 0l-.788 2.94z"}}]}]})(e)}},34479:function(e,t,n){var l=n(65491).w_;e.exports.K=function(e){return l({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67 14.72h.71L10.1 13h2.4l.5-.5v-2.42l1.74-1.72v-.71l-1.71-1.72V3.49l-.5-.49H10.1L8.38 1.29h-.71L6 3H3.53L3 3.5v2.43L1.31 7.65v.71L3 10.08v2.42l.53.5H6l1.67 1.72zM6.16 12H4V9.87l-.12-.35L2.37 8l1.48-1.51.15-.35V4h2.16l.36-.14L8 2.35l1.54 1.51.35.14H12v2.14l.17.35L13.69 8l-1.55 1.52-.14.35V12H9.89l-.38.15L8 13.66l-1.48-1.52-.36-.14zm.57-1.52h.71l3.77-3.77L10.5 6 7.09 9.42 5.71 8.04 5 8.75l1.73 1.73z"}}]})(e)}},20302:function(e,t,n){"use strict";n.d(t,{Z:function(){return isBefore}});var l=n(75725),o=n(92895);function isBefore(e,t){(0,o.Z)(2,arguments);var n=(0,l.Z)(e),r=(0,l.Z)(t);return n.getTime()=u.getDate())?u:(n.setFullYear(u.getFullYear(),u.getMonth(),a),n)}function addYears(e,t){return(0,r.Z)(2,arguments),addMonths(e,12*(0,l.Z)(t))}function subYears(e,t){return(0,r.Z)(2,arguments),addYears(e,-(0,l.Z)(t))}},53010:function(e){"use strict";e.exports=function equal(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(l=n;0!=l--;)if(!equal(e[l],t[l]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!Object.prototype.hasOwnProperty.call(t,o[l]))return!1;for(l=n;0!=l--;){var n,l,o,r=o[l];if(!equal(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}},33216:function(e,t,n){"use strict";n.d(t,{Xn:function(){return createIsolation}});var l=n(57437),o=n(2265),r=n(77665),i=n(23890);let a=new WeakMap;function useHydrateAtoms(e,t){let n=(0,i.oR)(t),l=getHydratedSet(n);for(let[o,r]of e)(!l.has(o)||(null==t?void 0:t.dangerouslyForceHydrate))&&(l.add(o),n.set(o,r))}let getHydratedSet=e=>{let t=a.get(e);return t||(t=new WeakSet,a.set(e,t)),t};function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let a=(0,o.useRef)(t);return a.current||(a.current=(0,r.MT)()),useHydrateAtoms(n,{store:a.current}),(0,l.jsx)(e.Provider,{value:a.current,children:i})},useAtom:(t,n)=>{let l=(0,o.useContext)(e);if(!l)throw Error("Missing Provider from createIsolation");return(0,i.KO)(t,_extends({store:l},n))},useAtomValue:(t,n)=>{let l=(0,o.useContext)(e);if(!l)throw Error("Missing Provider from createIsolation");return(0,i.Dv)(t,_extends({store:l},n))},useSetAtom:(t,n)=>{let l=(0,o.useContext)(e);if(!l)throw Error("Missing Provider from createIsolation");return(0,i.b9)(t,_extends({store:l},n))}}}(0,o.createContext)([e=>e,new Set])},81101:function(e,t,n){var l=n(7238),o=n(64936);function baseFlatten(e,t,n,r,i){var a=-1,u=e.length;for(n||(n=o),i||(i=[]);++a0&&n(s)?t>1?baseFlatten(s,t-1,n,r,i):l(i,s):r||(i[i.length]=s)}return i}e.exports=baseFlatten},64936:function(e,t,n){var l=n(79029),o=n(80514),r=n(12068),i=l?l.isConcatSpreadable:void 0;function isFlattenable(e){return r(e)||o(e)||!!(i&&e&&e[i])}e.exports=isFlattenable},67066:function(e,t,n){var l=n(81101);function flatten(e){return(null==e?0:e.length)?l(e,1):[]}e.exports=flatten},42077:function(e,t,n){var l=n(66425);function isEqual(e,t){return l(e,t)}e.exports=isEqual},66169:function(e,t,n){"use strict";function on(e){for(var t=[],n=1;n({...e,disclosureState:(0,a.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},R=(0,i.createContext)(null);function M(e){let t=(0,i.useContext)(R);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}R.displayName="DisclosureContext";let F=(0,i.createContext)(null);function w(e){let t=(0,i.useContext)(F);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}F.displayName="DisclosureAPIContext";let x=(0,i.createContext)(null);function V(){return(0,i.useContext)(x)}function Y(e,t){return(0,a.E)(t.type,C,e,t)}x.displayName="DisclosurePanelContext";let y=i.Fragment;function ee(e,t){let{defaultOpen:n=!1,...l}=e,o=(0,i.useRef)(null),r=(0,s.T)(t,(0,s.h)(e=>{o.current=e},void 0===e.as||e.as===i.Fragment)),g=(0,i.useRef)(null),d=(0,i.useRef)(null),c=(0,i.useReducer)(Y,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:d,panelRef:g,buttonId:null,panelId:null}),[{disclosureState:f,buttonId:h},b]=c,S=(0,v.z)(e=>{b({type:1});let t=(0,m.r)(o);if(!t||!h)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(h):t.getElementById(h);null==n||n.focus()}),C=(0,i.useMemo)(()=>({close:S}),[S]),x=(0,i.useMemo)(()=>({open:0===f,close:S}),[f,S]);return i.createElement(R.Provider,{value:c},i.createElement(F.Provider,{value:C},i.createElement(p.up,{value:(0,a.E)(f,{0:p.ZM.Open,1:p.ZM.Closed})},(0,u.sY)({ourProps:{ref:r},theirProps:l,slot:x,defaultTag:y,name:"Disclosure"}))))}function ne(e,t){let n=(0,g.M)(),{id:l=`headlessui-disclosure-button-${n}`,...o}=e,[r,a]=M("Disclosure.Button"),p=V(),m=null!==p&&p===r.panelId,h=(0,i.useRef)(null),b=(0,s.T)(h,t,m?null:r.buttonRef);(0,i.useEffect)(()=>{if(!m)return a({type:2,buttonId:l}),()=>{a({type:2,buttonId:null})}},[l,a,m]);let S=(0,v.z)(e=>{var t;if(m){if(1===r.disclosureState)return;switch(e.key){case d.R.Space:case d.R.Enter:e.preventDefault(),e.stopPropagation(),a({type:0}),null==(t=r.buttonRef.current)||t.focus()}}else switch(e.key){case d.R.Space:case d.R.Enter:e.preventDefault(),e.stopPropagation(),a({type:0})}}),C=(0,v.z)(e=>{e.key===d.R.Space&&e.preventDefault()}),R=(0,v.z)(t=>{var n;(0,c.P)(t.currentTarget)||e.disabled||(m?(a({type:0}),null==(n=r.buttonRef.current)||n.focus()):a({type:0}))}),F=(0,i.useMemo)(()=>({open:0===r.disclosureState}),[r]),x=(0,f.f)(e,h),y=m?{ref:b,type:x,onKeyDown:S,onClick:R}:{ref:b,id:l,type:x,"aria-expanded":0===r.disclosureState,"aria-controls":r.linkedPanel?r.panelId:void 0,onKeyDown:S,onKeyUp:C,onClick:R};return(0,u.sY)({ourProps:y,theirProps:o,slot:F,defaultTag:"button",name:"Disclosure.Button"})}let P=u.AN.RenderStrategy|u.AN.Static;function re(e,t){let n=(0,g.M)(),{id:l=`headlessui-disclosure-panel-${n}`,...o}=e,[r,a]=M("Disclosure.Panel"),{close:d}=w("Disclosure.Panel"),c=(0,s.T)(t,r.panelRef,e=>{h(()=>a({type:e?4:5}))});(0,i.useEffect)(()=>(a({type:3,panelId:l}),()=>{a({type:3,panelId:null})}),[l,a]);let f=(0,p.oJ)(),m=null!==f?(f&p.ZM.Open)===p.ZM.Open:0===r.disclosureState,v=(0,i.useMemo)(()=>({open:0===r.disclosureState,close:d}),[r,d]);return i.createElement(x.Provider,{value:r.panelId},(0,u.sY)({ourProps:{ref:c,id:l},theirProps:o,slot:v,defaultTag:"div",features:P,visible:m,name:"Disclosure.Panel"}))}let I=Object.assign((0,u.yV)(ee),{Button:(0,u.yV)(ne),Panel:(0,u.yV)(re)})},3216:function(e,t,n){"use strict";n.d(t,{b7:function(){return useReactTable},ie:function(){return flexRender}});var l=n(2265),o=n(7660);/** + * react-table + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function flexRender(e,t){return e?isReactComponent(e)?l.createElement(e,t):e:null}function isReactComponent(e){return isClassComponent(e)||"function"==typeof e||isExoticComponent(e)}function isClassComponent(e){return"function"==typeof e&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function isExoticComponent(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function useReactTable(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=l.useState(()=>({current:(0,o.W_)(t)})),[r,i]=l.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}},7660:function(e,t,n){"use strict";/** + * table-core + * + * Copyright (c) TanStack + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function functionalUpdate(e,t){return"function"==typeof e?e(t):e}function makeStateUpdater(e,t){return n=>{t.setState(t=>({...t,[e]:functionalUpdate(n,t[e])}))}}function isFunction(e){return e instanceof Function}function isNumberArray(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}function flattenBy(e,t){let n=[],recurse=e=>{e.forEach(e=>{n.push(e);let l=t(e);null!=l&&l.length&&recurse(l)})};return recurse(e),n}function memo(e,t,n){let l,o=[];return()=>{let r,i;n.key&&n.debug&&(r=Date.now());let a=e(),u=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!u)return l;if(o=a,n.key&&n.debug&&(i=Date.now()),l=t(...a),null==n||null==n.onChange||n.onChange(l),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-r)*100)/100,t=Math.round((Date.now()-i)*100)/100,l=t/16,pad=(e,t)=>{for(e=String(e);e.length{let t=e;for(let e of s.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[u.accessorKey]),!g)throw Error();let d={id:`${String(g)}`,accessorFn:i,parent:l,depth:n,columnDef:u,columns:[],getFlatColumns:memo(()=>[!0],()=>{var e;return[d,...null==(e=d.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),getLeafColumns:memo(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=d.columns)&&t.length?e(d.columns.flatMap(e=>e.getLeafColumns())):[d]},{key:"column.getLeafColumns",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}})};for(let t of e._features)null==t.createColumn||t.createColumn(d,e);return d}function createHeader(e,t,n){var l;let o=null!=(l=n.id)?l:t.id,r={id:o,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],recurseHeader=t=>{t.subHeaders&&t.subHeaders.length&&t.subHeaders.map(recurseHeader),e.push(t)};return recurseHeader(r),e},getContext:()=>({table:e,header:r,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(r,e)}),r}function buildHeaderGroups(e,t,n,l){var o,r;let i=0,findMaxDepth=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&findMaxDepth(e.columns,t+1)},0)};findMaxDepth(e);let a=[],createHeaderGroup=(e,t)=>{let o={depth:t,id:[l,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach(e=>{let i;let a=[...r].reverse()[0],u=e.column.depth===o.depth,s=!1;if(u&&e.column.parent?i=e.column.parent:(i=e.column,s=!0),a&&(null==a?void 0:a.column)===i)a.subHeaders.push(e);else{let o=createHeader(n,i,{id:[l,t,i.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${r.filter(e=>e.column===i).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o}),a.push(o),t>0&&createHeaderGroup(r,t-1)},u=t.map((e,t)=>createHeader(n,e,{depth:i,index:t}));createHeaderGroup(u,i-1),a.reverse();let recurseHeadersForSpans=e=>{let t=e.filter(e=>e.column.getIsVisible());return t.map(e=>{let t=0,n=0,l=[0];e.subHeaders&&e.subHeaders.length?(l=[],recurseHeadersForSpans(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,l.push(o)})):t=1;let o=Math.min(...l);return n+=o,e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}})};return recurseHeadersForSpans(null!=(o=null==(r=a[0])?void 0:r.headers)?o:[]),a}n.d(t,{W_:function(){return createTable},sC:function(){return getCoreRowModel},tj:function(){return getSortedRowModel},vL:function(){return getFilteredRowModel}});let l={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},getDefaultColumnSizingInfoState=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),o=null;function passiveEventSupported(){if("boolean"==typeof o)return o;let e=!1;try{let noop=()=>{};window.addEventListener("test",noop,{get passive(){return e=!0,!1}}),window.removeEventListener("test",noop)}catch(t){e=!1}return o=e}function isTouchStartEvent(e){return"touchstart"===e.type}let includesString=(e,t,n)=>{var l;let o=n.toLowerCase();return!!(null==(l=e.getValue(t))||null==(l=l.toString())||null==(l=l.toLowerCase())?void 0:l.includes(o))};includesString.autoRemove=e=>testFalsey(e);let includesStringSensitive=(e,t,n)=>{var l;return!!(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(n))};includesStringSensitive.autoRemove=e=>testFalsey(e);let equalsString=(e,t,n)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==n?void 0:n.toLowerCase())};equalsString.autoRemove=e=>testFalsey(e);let arrIncludes=(e,t,n)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)};arrIncludes.autoRemove=e=>testFalsey(e)||!(null!=e&&e.length);let arrIncludesAll=(e,t,n)=>!n.some(n=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(n))});arrIncludesAll.autoRemove=e=>testFalsey(e)||!(null!=e&&e.length);let arrIncludesSome=(e,t,n)=>n.some(n=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(n)});arrIncludesSome.autoRemove=e=>testFalsey(e)||!(null!=e&&e.length);let equals=(e,t,n)=>e.getValue(t)===n;equals.autoRemove=e=>testFalsey(e);let weakEquals=(e,t,n)=>e.getValue(t)==n;weakEquals.autoRemove=e=>testFalsey(e);let inNumberRange=(e,t,n)=>{let[l,o]=n,r=e.getValue(t);return r>=l&&r<=o};inNumberRange.resolveFilterValue=e=>{let[t,n]=e,l="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,r=null===t||Number.isNaN(l)?-1/0:l,i=null===n||Number.isNaN(o)?1/0:o;if(r>i){let e=r;r=i,i=e}return[r,i]},inNumberRange.autoRemove=e=>testFalsey(e)||testFalsey(e[0])&&testFalsey(e[1]);let r={includesString,includesStringSensitive,equalsString,arrIncludes,arrIncludesAll,arrIncludesSome,equals,weakEquals,inNumberRange};function testFalsey(e){return null==e||""===e}function shouldAutoRemoveFilter(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let i={sum:(e,t,n)=>n.reduce((t,n)=>{let l=n.getValue(e);return t+("number"==typeof l?l:0)},0),min:(e,t,n)=>{let l;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(l>n||void 0===l&&n>=n)&&(l=n)}),l},max:(e,t,n)=>{let l;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(l=n)&&(l=n)}),l},extent:(e,t,n)=>{let l,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===l?n>=n&&(l=o=n):(l>n&&(l=n),o{let n=0,l=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,l+=o)}),n)return l/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!isNumberArray(n))return;if(1===n.length)return n[0];let l=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[l]:(o[l-1]+o[l])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length};function orderColumns(e,t,n){if(!(null!=t&&t.length)||!n)return e;let l=e.filter(e=>!t.includes(e.id));if("remove"===n)return l;let o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...l]}let getDefaultPaginationState=()=>({pageIndex:0,pageSize:10}),getDefaultColumnPinningState=()=>({left:[],right:[]}),getDefaultRowPinningState=()=>({top:[],bottom:[]}),mutateRowIsSelected=(e,t,n,l,o)=>{var r;let i=o.getRow(t);n?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>mutateRowIsSelected(e,t.id,n,l,o))};function selectRowsFn(e,t){let n=e.getState().rowSelection,l=[],o={},recurseRows=function(e,t){return e.map(e=>{var t;let r=isRowSelected(e,n);if(r&&(l.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:recurseRows(e.subRows)}),r)return e}).filter(Boolean)};return{rows:recurseRows(t.rows),flatRows:l,rowsById:o}}function isRowSelected(e,t){var n;return null!=(n=t[e.id])&&n}function isSubRowSelected(e,t,n){var l;if(!(null!=(l=e.subRows)&&l.length))return!1;let o=!0,r=!1;return e.subRows.forEach(e=>{if((!r||o)&&(e.getCanSelect()&&(isRowSelected(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){let n=isSubRowSelected(e,t);"all"===n?r=!0:("some"===n&&(r=!0),o=!1)}}),o?"all":!!r&&"some"}let a=/([0-9]+)/gm;function compareBasic(e,t){return e===t?0:e>t?1:-1}function toString(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function compareAlphanumeric(e,t){let n=e.split(a).filter(Boolean),l=t.split(a).filter(Boolean);for(;n.length&&l.length;){let e=n.shift(),t=l.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return -1}return n.length-l.length}let u={alphanumeric:(e,t,n)=>compareAlphanumeric(toString(e.getValue(n)).toLowerCase(),toString(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>compareAlphanumeric(toString(e.getValue(n)),toString(t.getValue(n))),text:(e,t,n)=>compareBasic(toString(e.getValue(n)).toLowerCase(),toString(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>compareBasic(toString(e.getValue(n)),toString(t.getValue(n))),datetime:(e,t,n)=>{let l=e.getValue(n),o=t.getValue(n);return l>o?1:lcompareBasic(e.getValue(n),t.getValue(n))},s=[{createTable:e=>{e.getHeaderGroups=memo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,l,o)=>{var r,i;let a=null!=(r=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?r:[],u=null!=(i=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=n.filter(e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id))),g=buildHeaderGroups(t,[...a,...s,...u],e);return g},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=memo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,l,o)=>buildHeaderGroups(t,n=n.filter(e=>!(null!=l&&l.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=memo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,l)=>{var o;let r=null!=(o=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return buildHeaderGroups(t,r,e,"left")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightHeaderGroups=memo(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,l)=>{var o;let r=null!=(o=null==l?void 0:l.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return buildHeaderGroups(t,r,e,"right")},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFooterGroups=memo(()=>[e.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFooterGroups=memo(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFooterGroups=memo(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFooterGroups=memo(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getFlatHeaders=memo(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=memo(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=memo(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightFlatHeaders=memo(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=memo(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=memo(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getRightLeafHeaders=memo(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}}),e.getLeafHeaders=memo(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var l,o,r,i,a,u;return[...null!=(l=null==(o=e[0])?void 0:o.headers)?l:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(u=n[0])?void 0:u.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugHeaders}})}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:makeStateUpdater("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,l;return null==(n=null==(l=t.getState().columnVisibility)?void 0:l[e.id])||n},e.getCanHide=()=>{var n,l;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(l=t.options.enableHiding)||l)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=memo(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getVisibleCells=memo(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{let makeVisibleColumnsMethod=(t,n)=>memo(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),{key:t,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}});e.getVisibleFlatColumns=makeVisibleColumnsMethod("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=makeVisibleColumnsMethod("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=makeVisibleColumnsMethod("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=makeVisibleColumnsMethod("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=makeVisibleColumnsMethod("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:makeStateUpdater("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=memo(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>l=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...l];for(;n.length&&t.length;){let e=t.shift(),l=n.findIndex(t=>t.id===e);l>-1&&o.push(n.splice(l,1)[0])}o=[...o,...n]}else o=l;return orderColumns(o,t,n)},{key:!1})}},{getInitialState:e=>({columnPinning:getDefaultColumnPinningState(),rowPinning:getDefaultRowPinningState(),...e}),getDefaultOptions:e=>({onColumnPinningChange:makeStateUpdater("columnPinning",e),onRowPinningChange:makeStateUpdater("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let l=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,r,i,a,u;return"right"===n?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter(e=>!(null!=l&&l.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=l&&l.includes(e))),...l]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=l&&l.includes(e))),...l],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=l&&l.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=l&&l.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=l&&l.includes(e)))}})},e.getCanPin=()=>{let n=e.getLeafColumns();return n.some(e=>{var n,l,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(l=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||l)})},e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:l,right:o}=t.getState().columnPinning,r=n.some(e=>null==l?void 0:l.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var n,l;let o=e.getIsPinned();return o?null!=(n=null==(l=t.getState().columnPinning)||null==(l=l[o])?void 0:l.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.pin=(n,l,o)=>{let r=l?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...i,e.id,...r]);t.setRowPinning(e=>{var t,l,o,r,i,u;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(i=null==e?void 0:e.top)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:l,enablePinning:o}=t.options;return"function"==typeof l?l(e):null==(n=null!=l?l:o)||n},e.getIsPinned=()=>{let n=[e.id],{top:l,bottom:o}=t.getState().rowPinning,r=n.some(e=>null==l?void 0:l.includes(e)),i=n.some(e=>null==o?void 0:o.includes(e));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var n,l;let o=e.getIsPinned();if(!o)return -1;let r=null==(n=t._getPinnedRows(o))?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(l=null==r?void 0:r.indexOf(e.id))?l:-1},e.getCenterVisibleCells=memo(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let l=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!l.includes(e.column.id))},{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getLeftVisibleCells=memo(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}}),e.getRightVisibleCells=memo(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{let n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},{key:!1,debug:()=>{var e;return null!=(e=t.options.debugAll)?e:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,l;return e.setColumnPinning(t?getDefaultColumnPinningState():null!=(n=null==(l=e.initialState)?void 0:l.columnPinning)?n:getDefaultColumnPinningState())},e.getIsSomeColumnsPinned=t=>{var n,l,o;let r=e.getState().columnPinning;return t?!!(null==(n=r[t])?void 0:n.length):!!((null==(l=r.left)?void 0:l.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=memo(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getRightLeafColumns=memo(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.getCenterLeafColumns=memo(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let l=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!l.includes(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugColumns}}),e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,l;return e.setRowPinning(t?getDefaultRowPinningState():null!=(n=null==(l=e.initialState)?void 0:l.rowPinning)?n:getDefaultRowPinningState())},e.getIsSomeRowsPinned=t=>{var n,l,o;let r=e.getState().rowPinning;return t?!!(null==(n=r[t])?void 0:n.length):!!((null==(l=r.top)?void 0:l.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=t=>memo(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,l)=>{var o;let r=null==(o=e.options.keepPinnedRows)||o?(null!=l?l:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=l?l:[]).map(e=>n.find(t=>t.id===e));return r.filter(Boolean).map(e=>({...e,position:t}))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=memo(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let l=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!l.has(e.id))},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:makeStateUpdater("columnFilters",e),onGlobalFilterChange:makeStateUpdater("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let l=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof l||"number"==typeof l}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"==typeof l?r.includesString:"number"==typeof l?r.inNumberRange:"boolean"==typeof l||null!==l&&"object"==typeof l?r.equals:Array.isArray(l)?r.arrIncludes:r.weakEquals},e.getFilterFn=()=>{var n,l;return isFunction(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(l=t.options.filterFns)?void 0:l[e.columnDef.filterFn])?n:r[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,l,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(l=t.options.enableColumnFilters)||l)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,l,o,r;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(l=t.options.enableGlobalFilter)||l)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().columnFilters)?void 0:l.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var l,o;let r=e.getFilterFn(),i=null==t?void 0:t.find(t=>t.id===e.id),a=functionalUpdate(n,i?i.value:void 0);if(shouldAutoRemoveFilter(r,a,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];let u={id:e.id,value:a};return i?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?u:t))?o:[]:null!=t&&t.length?[...t,u]:[u]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>r.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:l}=e.options;return isFunction(l)?l:"auto"===l?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[l])?t:r[l]},e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var l;return null==(l=functionalUpdate(t,e))?void 0:l.filter(e=>{let t=n.find(t=>t.id===e.id);if(t){let n=t.getFilterFn();if(shouldAutoRemoveFilter(n,e.value,t))return!1}return!0})})},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,l;e.setColumnFilters(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel(),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:makeStateUpdater("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),l=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return u.datetime;if("string"==typeof n&&(l=!0,n.split(a).length>1))return u.alphanumeric}return l?u.text:u.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"string"==typeof l?"asc":"desc"},e.getSortingFn=()=>{var n,l;if(!e)throw Error();return isFunction(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(l=t.options.sortingFns)?void 0:l[e.columnDef.sortingFn])?n:u[e.columnDef.sortingFn]},e.toggleSorting=(n,l)=>{let o=e.getNextSortingOrder(),r=null!=n;t.setSorting(i=>{let a;let u=null==i?void 0:i.find(t=>t.id===e.id),s=null==i?void 0:i.findIndex(t=>t.id===e.id),g=[],d=r?n:"desc"===o;if("toggle"!=(a=null!=i&&i.length&&e.getCanMultiSort()&&l?u?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":u?"toggle":"replace")||r||o||(a="remove"),"add"===a){var c;(g=[...i,{id:e.id,desc:d}]).splice(0,g.length-(null!=(c=t.options.maxMultiSortColCount)?c:Number.MAX_SAFE_INTEGER))}else g="toggle"===a?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===a?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return g})},e.getFirstSortDir=()=>{var n,l;let o=null!=(n=null!=(l=e.columnDef.sortDescFirst)?l:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir();return o?"desc":"asc"},e.getNextSortingOrder=n=>{var l,o;let r=e.getFirstSortDir(),i=e.getIsSorted();return i?(i===r||null!=(l=t.options.enableSortingRemoval)&&!l||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var n,l;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(l=t.options.enableSorting)||l)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,l;return null!=(n=null!=(l=e.columnDef.enableMultiSort)?l:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let l=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!l&&(l.desc?"desc":"asc")},e.getSortIndex=()=>{var n,l;return null!=(n=null==(l=t.getState().sorting)?void 0:l.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return l=>{n&&(null==l.persist||l.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(l))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,l;e.setSorting(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:makeStateUpdater("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,l,o,r;return null!=(n=null==(l=null!=(o=null==(r=e.columnDef.enableGrouping)||r)?o:t.options.enableGrouping)||l)?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],l=null==n?void 0:n.getValue(e.id);return"number"==typeof l?i.sum:"[object Date]"===Object.prototype.toString.call(l)?i.extent:void 0},e.getAggregationFn=()=>{var n,l;if(!e)throw Error();return isFunction(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(l=t.options.aggregationFns)?void 0:l[e.columnDef.aggregationFn])?n:i[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,l;e.setGrouping(t?[]:null!=(n=null==(l=e.initialState)?void 0:l.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let l=t.getColumn(n);return null!=l&&l.columnDef.getGroupingValue?(e._groupingValuesCache[n]=l.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,l)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:makeStateUpdater("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var l,o;if(!t){e._queue(()=>{t=!0});return}if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?l:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,l;e.setExpanded(t?{}:null!=(n=null==(l=e.initialState)?void 0:l.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0,n=!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded);return n.forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(l=>{var o;let r=!0===l||!!(null!=l&&l[e.id]),i={};if(!0===l?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=l,n=null!=(o=n)?o:!r,!r&&n)return{...i,[e.id]:!0};if(r&&!n){let{[e.id]:t,...n}=i;return n}return l})},e.getIsExpanded=()=>{var n;let l=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===l||(null==l?void 0:l[e.id]))},e.getCanExpand=()=>{var n,l,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(l=t.options.enableExpanding)||l)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,l=e;for(;n&&l.parentId;)n=(l=t.getRow(l.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...getDefaultPaginationState(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:makeStateUpdater("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var l,o;if(!t){e._queue(()=>{t=!0});return}if(null!=(l=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?l:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>functionalUpdate(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?getDefaultPaginationState():null!=(n=e.initialState.pagination)?n:getDefaultPaginationState())},e.setPageIndex=t=>{e.setPagination(n=>{let l=functionalUpdate(t,n.pageIndex),o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return l=Math.max(0,Math.min(l,o)),{...n,pageIndex:l}})},e.resetPageIndex=t=>{var n,l;e.setPageIndex(t?0:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageIndex)?n:0)},e.resetPageSize=t=>{var n,l;e.setPageSize(t?10:null!=(n=null==(l=e.initialState)||null==(l=l.pagination)?void 0:l.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,functionalUpdate(t,e.pageSize)),l=e.pageSize*e.pageIndex;return{...e,pageIndex:Math.floor(l/n),pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var l;let o=functionalUpdate(t,null!=(l=e.options.pageCount)?l:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=memo(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&te.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:makeStateUpdater("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let l={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(l[e.id]=!0)}):o.forEach(e=>{delete l[e.id]}),l})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let l=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{mutateRowIsSelected(o,t.id,l,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=memo(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?selectRowsFn(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=memo(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?selectRowsFn(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=memo(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?selectRowsFn(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),l=!!(t.length&&Object.keys(n).length);return l&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(l=!1),l},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),l=!!t.length;return l&&t.some(e=>!n[e.id])&&(l=!1),l},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,l)=>{let o=e.getIsSelected();t.setRowSelection(r=>{var i;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return r;let a={...r};return mutateRowIsSelected(a,e.id,n,null==(i=null==l?void 0:l.selectChildren)||i,t),a})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return isRowSelected(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===isSubRowSelected(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===isSubRowSelected(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var l;t&&e.toggleSelected(null==(l=n.target)?void 0:l.checked)}}}},{getDefaultColumnDef:()=>l,getInitialState:e=>({columnSizing:{},columnSizingInfo:getDefaultColumnSizingInfoState(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:makeStateUpdater("columnSizing",e),onColumnSizingInfoChange:makeStateUpdater("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:l.minSize,null!=(o=null!=i?i:e.columnDef.size)?o:l.size),null!=(r=e.columnDef.maxSize)?r:l.maxSize)},e.getStart=n=>{let l=n?"left"===n?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=l.findIndex(t=>t.id===e.id);if(o>0){let e=l[o-1];return e.getStart(n)+e.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...l}=t;return l})},e.getCanResize=()=>{var n,l;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(l=t.options.enableColumnResizing)||l)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,recurse=e=>{if(e.subHeaders.length)e.subHeaders.forEach(recurse);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return recurse(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=()=>{let n=t.getColumn(e.column.id),l=null==n?void 0:n.getCanResize();return o=>{if(!n||!l||(null==o.persist||o.persist(),isTouchStartEvent(o)&&o.touches&&o.touches.length>1))return;let r=e.getSize(),i=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],a=isTouchStartEvent(o)?Math.round(o.touches[0].clientX):o.clientX,u={},updateOffset=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var t,l;let o=n-(null!=(t=null==e?void 0:e.startOffset)?t:0),r=Math.max(o/(null!=(l=null==e?void 0:e.startSize)?l:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*r,0))/100}),{...e,deltaOffset:o,deltaPercentage:r}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},onMove=e=>updateOffset("move",e),onEnd=e=>{updateOffset("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},s={moveHandler:e=>onMove(e.clientX),upHandler:e=>{document.removeEventListener("mousemove",s.moveHandler),document.removeEventListener("mouseup",s.upHandler),onEnd(e.clientX)}},g={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),onMove(e.touches[0].clientX),!1),upHandler:e=>{var t;document.removeEventListener("touchmove",g.moveHandler),document.removeEventListener("touchend",g.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),onEnd(null==(t=e.touches[0])?void 0:t.clientX)}},d=!!passiveEventSupported()&&{passive:!1};isTouchStartEvent(o)?(document.addEventListener("touchmove",g.moveHandler,d),document.addEventListener("touchend",g.upHandler,d)):(document.addEventListener("mousemove",s.moveHandler,d),document.addEventListener("mouseup",s.upHandler,d)),t.setColumnSizingInfo(e=>({...e,startOffset:a,startSize:r,deltaOffset:0,deltaPercentage:0,columnSizingStart:i,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?getDefaultColumnSizingInfoState():null!=(n=e.initialState.columnSizingInfo)?n:getDefaultColumnSizingInfoState())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function createTable(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:s},l=n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(n)),{}),mergeOptions=e=>n.options.mergeOptions?n.options.mergeOptions(l,e):{...l,...e},o={...null!=(t=e.initialState)?t:{}};n._features.forEach(e=>{var t;o=null!=(t=null==e.getInitialState?void 0:e.getInitialState(o))?t:o});let r=[],i=!1,a={_features:s,options:{...l,...e},initialState:o,_queue:e=>{r.push(e),i||(i=!0,Promise.resolve().then(()=>{for(;r.length;)r.shift()();i=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{n.setState(n.initialState)},setOptions:e=>{let t=functionalUpdate(e,n.options);n.options=mergeOptions(t)},getState:()=>n.options.state,setState:e=>{null==n.options.onStateChange||n.options.onStateChange(e)},_getRowId:(e,t,l)=>{var o;return null!=(o=null==n.options.getRowId?void 0:n.options.getRowId(e,t,l))?o:`${l?[l.id,t].join("."):t}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(e,t)=>{let l=(t?n.getCoreRowModel():n.getRowModel()).rowsById[e];if(!l)throw Error();return l},_getDefaultColumnDef:memo(()=>[n.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...n._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},{debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:memo(()=>[n._getColumnDefs()],e=>{let recurseColumns=function(e,t,l){return void 0===l&&(l=0),e.map(e=>{let o=createColumn(n,e,l,t);return o.columns=e.columns?recurseColumns(e.columns,o,l+1):[],o})};return recurseColumns(e)},{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllFlatColumns:memo(()=>[n.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),_getAllFlatColumnsById:memo(()=>[n.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getAllLeafColumns:memo(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),{key:!1,debug:()=>{var e;return null!=(e=n.options.debugAll)?e:n.options.debugColumns}}),getColumn:e=>{let t=n._getAllFlatColumnsById()[e];return t}};Object.assign(n,a);for(let e=0;et.getValue(l),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:memo(()=>[e,n,t,o],(e,t,n,l)=>({table:e,column:t,row:n,cell:l,getValue:l.getValue,renderValue:l.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(l=>{null==l.createCell||l.createCell(o,n,t,e)},{}),o}let createRow=(e,t,n,l,o,r,i)=>{let a={id:t,index:l,original:n,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return a._valuesCache[t]=n.accessorFn(a.original,l),a._valuesCache[t]},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];let n=e.getColumn(t);return null!=n&&n.accessorFn?(n.columnDef.getUniqueValues?a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,l):a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>flattenBy(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:memo(()=>[e.getAllLeafColumns()],t=>t.map(t=>createCell(e,a,t,t.id)),{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}}),_getAllCellsByColumnId:memo(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugRows}})};for(let t=0;tmemo(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},accessRows=function(t,l,o){void 0===l&&(l=0);let r=[];for(let a=0;a{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function filterRows(e,t,n){return n.options.filterFromLeafRows?filterRowModelFromLeafs(e,t,n):filterRowModelFromRoot(e,t,n)}function filterRowModelFromLeafs(e,t,n){var l;let o=[],r={},i=null!=(l=n.options.maxLeafRowFilterDepth)?l:100,recurseFilterRows=function(e,l){void 0===l&&(l=0);let a=[];for(let s=0;smemo(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,l)=>{let o,r;if(!t.rows.length||!(null!=n&&n.length)&&!l){for(let e=0;e{var n;let l=e.getColumn(t.id);if(!l)return;let o=l.getFilterFn();o&&i.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})});let u=n.map(e=>e.id),s=e.getGlobalFilterFn(),g=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());l&&s&&g.length&&(u.push("__global__"),g.forEach(e=>{var t;a.push({id:e.id,filterFn:s,resolvedValue:null!=(t=null==s.resolveFilterValue?void 0:s.resolveFilterValue(l))?t:l})}));for(let e=0;e{n.columnFiltersMeta[t]=e})}if(a.length){for(let e=0;e{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return filterRows(t.rows,e=>{for(let t=0;t{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function getSortedRowModel(){return e=>memo(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(null!=t&&t.length))return n;let l=e.getState().sorting,o=[],r=l.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),i={};r.forEach(t=>{let n=e.getColumn(t.id);n&&(i[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let sortData=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let l=0;l{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=sortData(e.subRows))}),t};return{rows:sortData(n.rows),flatRows:o,rowsById:n.rowsById}},{key:!1,debug:()=>{var t;return null!=(t=e.options.debugAll)?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/322-ae1b582ee7e6158b.js b/web/_next/static/chunks/322-ae1b582ee7e6158b.js new file mode 100644 index 00000000..4837d8e5 --- /dev/null +++ b/web/_next/static/chunks/322-ae1b582ee7e6158b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[322],{13461:function(t,i,r){var s=r(65491).w_;t.exports.n=function(t){return s({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#3F51B5",d:"M43.4,8.3L4,15l-0.3-2c-0.4-2.2,1.1-4.2,3.3-4.6l31.6-5.3c2.2-0.4,4.2,1.1,4.6,3.3L43.4,8.3z"}},{tag:"path",attr:{fill:"#3F51B5",d:"M40,41H8c-2.2,0-4-1.8-4-4V15h40v22C44,39.2,42.2,41,40,41z"}},{tag:"g",attr:{fill:"#9FA8DA"},child:[{tag:"polygon",attr:{points:"18.8,6.4 23.7,11.7 27.7,11 22.7,5.7"}},{tag:"polygon",attr:{points:"10.9,7.7 15.8,13 19.8,12.3 14.8,7.1"}},{tag:"polygon",attr:{points:"26.7,5.1 31.6,10.3 35.5,9.7 30.6,4.4"}},{tag:"polygon",attr:{points:"34.5,3.8 39.5,9 43.4,8.3 38.5,3.1"}}]},{tag:"circle",attr:{fill:"#9FA8DA",cx:"7.5",cy:"11.5",r:"1.5"}},{tag:"g",attr:{fill:"#9FA8DA"},child:[{tag:"polygon",attr:{points:"40,15 36,21 40,21 44,15"}},{tag:"polygon",attr:{points:"32,15 28,21 32,21 36,15"}},{tag:"polygon",attr:{points:"24,15 20,21 24,21 28,15"}},{tag:"polygon",attr:{points:"16,15 12,21 16,21 20,15"}},{tag:"polygon",attr:{points:"8,15 4,21 8,21 12,15"}}]}]})(t)}},66834:function(t,i,r){var s=r(65491).w_;t.exports.T=function(t){return s({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFA000",d:"M40,12H22l-4-4H8c-2.2,0-4,1.8-4,4v8h40v-4C44,13.8,42.2,12,40,12z"}},{tag:"path",attr:{fill:"#FFCA28",d:"M40,12H8c-2.2,0-4,1.8-4,4v20c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V16C44,13.8,42.2,12,40,12z"}}]})(t)}},13986:function(t,i,r){var s=r(65491).w_;t.exports.a=function(t){return s({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#CFD8DC",points:"39.4,23 38.6,19 26,21.6 26,8 22,8 22,20.3 8.1,11.3 5.9,14.7 21.1,24.5 9.4,39.8 12.6,42.2 23.9,27.4 32.3,40.1 35.7,37.9 27.3,25.4"}},{tag:"circle",attr:{fill:"#3F51B5",cx:"24",cy:"24",r:"7"}},{tag:"g",attr:{fill:"#00BCD4"},child:[{tag:"circle",attr:{cx:"24",cy:"8",r:"5"}},{tag:"circle",attr:{cx:"39",cy:"21",r:"5"}},{tag:"circle",attr:{cx:"7",cy:"13",r:"5"}},{tag:"circle",attr:{cx:"11",cy:"41",r:"5"}},{tag:"circle",attr:{cx:"34",cy:"39",r:"5"}}]}]})(t)}},82777:function(t,i,r){var s=r(65491).w_;t.exports.E=function(t){return s({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#4CAF50",d:"M8,12h22c2.2,0,4,1.8,4,4v16c0,2.2-1.8,4-4,4H8c-2.2,0-4-1.8-4-4V16C4,13.8,5.8,12,8,12z"}},{tag:"polygon",attr:{fill:"#388E3C",points:"44,35 34,29 34,19 44,13"}}]})(t)}},93722:function(t,i,r){var s=r(65491).w_;t.exports.p=function(t){return s({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#F57C00",d:"M36.258,28.837c0,0-0.11-0.837-1.257-0.837c-0.216,0-2.392,0-3.719,0c0.798,2.671,1.497,5.135,1.497,5.279\r\n c0,2.387-3.401,3.393-8.917,3.393c-5.515,0-8.651-0.94-8.651-3.326c0-0.167,0.998-2.692,1.791-5.346c-1.591,0-3.863,0-4.063,0\r\n c-0.806,0-0.937,0.749-0.937,0.749L8.159,40.986L8.815,42h30.652l0.376-1.014L36.258,28.837z"}},{tag:"path",attr:{fill:"#E0E0E0",d:"M24.001,6c-1.029,0-1.864,0.179-1.864,0.398c-0.492,1.483-8.122,26.143-8.122,26.774\r\n c0,2.388,4.471,3.827,9.985,3.827s9.986-1.439,9.986-3.827c0-0.549-7.614-25.268-8.122-26.774C25.865,6.179,25.031,6,24.001,6\r\n L24.001,6z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"#FF9800",d:"M33.196,30.447C32.032,32.232,28.341,34,24.046,34c-4.34,0-8.156-1.696-9.281-3.51\r\n c-0.499,1.483-0.892,2.647-0.892,3.28c0,2.386,4.533,4.229,10.128,4.229c5.595,0,10.131-1.844,10.131-4.229\r\n C34.132,33.222,33.713,31.955,33.196,30.447z"}},{tag:"path",attr:{fill:"#FF9800",d:"M31.387,24.314l-2.074-6.794c0,0-1.857,1.479-5.311,1.479c-3.453,0-5.316-1.479-5.316-1.479l-2.081,6.806\r\n c0,0,2.068,2.674,7.397,2.674C29.375,27,31.387,24.314,31.387,24.314z"}},{tag:"path",attr:{fill:"#FF9800",d:"M27.241,10.809l-1.376-4.41c0,0-0.083-0.398-1.864-0.398c-1.844,0-1.864,0.398-1.864,0.398l-1.376,4.407\r\n c0,0,0.885,1.194,3.239,1.194C26.355,12,27.241,10.809,27.241,10.809z"}}]}]})(t)}},59770:function(t,i,r){var s,a,n;void 0!==(a="function"==typeof(s=n=function(){function extend(){for(var t=0,i={};t(0,s.useContext)(u)?s.createElement(s.Fragment,null,t.children):s.createElement(f,t),c=["light","dark"],f=({forcedTheme:t,disableTransitionOnChange:i=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:d=c,defaultTheme:m=r?"system":"light",attribute:y="data-theme",value:g,children:v,nonce:C})=>{let[F,P]=(0,s.useState)(()=>S(l,m)),[w,q]=(0,s.useState)(()=>S(l)),O=g?Object.values(g):d,x=(0,s.useCallback)(t=>{let s=t;if(!s)return;"system"===t&&r&&(s=p());let n=g?g[s]:s,u=i?b():null,c=document.documentElement;if("class"===y?(c.classList.remove(...O),n&&c.classList.add(n)):n?c.setAttribute(y,n):c.removeAttribute(y),o){let t=a.includes(m)?m:null,i=a.includes(s)?s:t;c.style.colorScheme=i}null==u||u()},[]),D=(0,s.useCallback)(t=>{P(t);try{localStorage.setItem(l,t)}catch(t){}},[t]),A=(0,s.useCallback)(i=>{let s=p(i);q(s),"system"===F&&r&&!t&&x("system")},[F,t]);(0,s.useEffect)(()=>{let t=window.matchMedia(n);return t.addListener(A),A(t),()=>t.removeListener(A)},[A]),(0,s.useEffect)(()=>{let e=t=>{t.key===l&&D(t.newValue||m)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[D]),(0,s.useEffect)(()=>{x(null!=t?t:F)},[t,F]);let E=(0,s.useMemo)(()=>({theme:F,setTheme:D,forcedTheme:t,resolvedTheme:"system"===F?w:F,themes:r?[...d,"system"]:d,systemTheme:r?w:void 0}),[F,D,t,w,r,d]);return s.createElement(u.Provider,{value:E},s.createElement(h,{forcedTheme:t,disableTransitionOnChange:i,enableSystem:r,enableColorScheme:o,storageKey:l,themes:d,defaultTheme:m,attribute:y,value:g,children:v,attrs:O,nonce:C}),v)},h=(0,s.memo)(({forcedTheme:t,storageKey:i,attribute:r,enableSystem:o,enableColorScheme:u,defaultTheme:c,value:h,attrs:l,nonce:d})=>{let m="system"===c,y="class"===r?`var d=document.documentElement,c=d.classList;c.remove(${l.map(t=>`'${t}'`).join(",")});`:`var d=document.documentElement,n='${r}',s='setAttribute';`,g=u?a.includes(c)&&c?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${c}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",$=(t,i=!1,s=!0)=>{let n=h?h[t]:t,o=i?t+"|| ''":`'${n}'`,c="";return u&&s&&!i&&a.includes(t)&&(c+=`d.style.colorScheme = '${t}';`),"class"===r?c+=i||n?`c.add(${o})`:"null":n&&(c+=`d[s](n,${o})`),c},v=t?`!function(){${y}${$(t)}}()`:o?`!function(){try{${y}var e=localStorage.getItem('${i}');if('system'===e||(!e&&${m})){var t='${n}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$("dark")}}else{${$("light")}}}else if(e){${h?`var x=${JSON.stringify(h)};`:""}${$(h?"x[e]":"e",!0)}}${m?"":"else{"+$(c,!1,!1)+"}"}${g}}catch(e){}}()`:`!function(){try{${y}var e=localStorage.getItem('${i}');if(e){${h?`var x=${JSON.stringify(h)};`:""}${$(h?"x[e]":"e",!0)}}else{${$(c,!1,!1)};}${g}}catch(t){}}();`;return s.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:v}})},()=>!0),S=(t,i)=>{let r;if(!o){try{r=localStorage.getItem(t)||void 0}catch(t){}return r||i}},b=()=>{let t=document.createElement("style");return t.appendChild(document.createTextNode("*{-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)}},p=t=>(t||(t=window.matchMedia(n)),t.matches?"dark":"light")},72998:function(t){t.exports={style:{fontFamily:"'__Inter_e66fe9', '__Inter_Fallback_e66fe9'",fontStyle:"normal"},className:"__className_e66fe9"}},95637:function(t,i,r){"use strict";var s=r(2265);i.Z=function(t){(0,s.useEffect)(t,[])}},18354:function(t,i,r){"use strict";r.d(i,{Gm:function(){return infiniteQueryBehavior},Qy:function(){return hasNextPage},ZF:function(){return hasPreviousPage}});var s=r(40300);function infiniteQueryBehavior(t){return{onFetch:(i,r)=>{let fetchFn=async()=>{let r;let a=i.options,n=i.fetchOptions?.meta?.fetchMore?.direction,o=i.state.data?.pages||[],u=i.state.data?.pageParams||[],c=!1,addSignalProperty=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(i.signal.aborted?c=!0:i.signal.addEventListener("abort",()=>{c=!0}),i.signal)})},h=i.options.queryFn||(()=>Promise.reject(Error(`Missing queryFn: '${i.options.queryHash}'`))),fetchPage=async(t,r,a)=>{if(c)return Promise.reject();if(null==r&&t.pages.length)return Promise.resolve(t);let n={queryKey:i.queryKey,pageParam:r,direction:a?"backward":"forward",meta:i.options.meta};addSignalProperty(n);let o=await h(n),{maxPages:u}=i.options,l=a?s.Ht:s.VX;return{pages:l(t.pages,o,u),pageParams:l(t.pageParams,r,u)}};if(n&&o.length){let t="backward"===n,i=t?getPreviousPageParam:getNextPageParam,s={pages:o,pageParams:u},c=i(a,s);r=await fetchPage(s,c,t)}else{r=await fetchPage({pages:[],pageParams:[]},u[0]??a.initialPageParam);let i=t??o.length;for(let t=1;ti.options.persister?.(fetchFn,{queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=fetchFn}}}function getNextPageParam(t,{pages:i,pageParams:r}){let s=i.length-1;return t.getNextPageParam(i[s],i,r[s],r)}function getPreviousPageParam(t,{pages:i,pageParams:r}){return t.getPreviousPageParam?.(i[0],i,r[0],r)}function hasNextPage(t,i){return!!i&&null!=getNextPageParam(t,i)}function hasPreviousPage(t,i){return!!i&&!!t.getPreviousPageParam&&null!=getPreviousPageParam(t,i)}},43059:function(t,i,r){"use strict";r.d(i,{S:function(){return v}});var s=r(40300),a=r(17987),n=r(11640),o=r(99024),u=class extends o.F{constructor(t){super(),this.#t=!1,this.#e=t.defaultOptions,this.#i(t.options),this.#r=[],this.#s=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#a=t.state||getDefaultState(this.options),this.state=this.#a,this.scheduleGc()}#a;#n;#s;#o;#u;#r;#e;#t;get meta(){return this.options.meta}#i(t){this.options={...this.#e,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#r.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(t,i){let r=(0,s.oE)(this.state.data,t,this.options);return this.#c({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(t,i){this.#c({type:"setState",state:t,setStateOptions:i})}cancel(t){let i=this.#o;return this.#u?.cancel(t),i?i.then(s.ZT).catch(s.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.#r.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#r.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,s.Kp)(this.state.dataUpdatedAt,t)}onFocus(){let t=this.#r.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){let t=this.#r.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(t){this.#r.includes(t)||(this.#r.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.#r.includes(t)&&(this.#r=this.#r.filter(i=>i!==t),this.#r.length||(this.#u&&(this.#t?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.#r.length}invalidate(){this.state.isInvalidated||this.#c({type:"invalidate"})}fetch(t,i){if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#o)return this.#u?.continueRetry(),this.#o}if(t&&this.#i(t),!this.options.queryFn){let t=this.#r.find(t=>t.options.queryFn);t&&this.#i(t.options)}let r=new AbortController,s={queryKey:this.queryKey,meta:this.meta},addSignalProperty=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#t=!0,r.signal)})};addSignalProperty(s);let a={fetchOptions:i,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.#t=!1,this.options.persister)?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};addSignalProperty(a),this.options.behavior?.onFetch(a,this),this.#n=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:"fetch",meta:a.fetchOptions?.meta});let onError=t=>{(0,n.DV)(t)&&t.silent||this.#c({type:"error",error:t}),(0,n.DV)(t)||(this.#s.config.onError?.(t,this),this.#s.config.onSettled?.(this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#u=(0,n.Mz)({fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:t=>{if(void 0===t){onError(Error(`${this.queryHash} data is undefined`));return}this.setData(t),this.#s.config.onSuccess?.(t,this),this.#s.config.onSettled?.(t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError,onFail:(t,i)=>{this.#c({type:"failed",failureCount:t,error:i})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode}),this.#o=this.#u.promise,this.#o}#c(t){this.state=(i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:(0,n.Kw)(this.options.networkMode)?"fetching":"paused",...!i.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=t.error;if((0,n.DV)(r)&&r.revert&&this.#n)return{...this.#n,fetchStatus:"idle"};return{...i,error:r,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}})(this.state),a.V.batch(()=>{this.#r.forEach(t=>{t.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:t})})}};function getDefaultState(t){let i="function"==typeof t.initialData?t.initialData():t.initialData,r=void 0!==i,s=r?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var c=r(42996),h=class extends c.l{constructor(t={}){super(),this.config=t,this.#h=new Map}#h;build(t,i,r){let a=i.queryKey,n=i.queryHash??(0,s.Rm)(a,i),o=this.get(n);return o||(o=new u({cache:this,queryKey:a,queryHash:n,options:t.defaultQueryOptions(i),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){this.#h.has(t.queryHash)||(this.#h.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let i=this.#h.get(t.queryHash);i&&(t.destroy(),i===t&&this.#h.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){a.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#h.get(t)}getAll(){return[...this.#h.values()]}find(t){let i={exact:!0,...t};return this.getAll().find(t=>(0,s._x)(i,t))}findAll(t={}){let i=this.getAll();return Object.keys(t).length>0?i.filter(i=>(0,s._x)(t,i)):i}notify(t){a.V.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},l=r(77470),d=class extends c.l{constructor(t={}){super(),this.config=t,this.#l=[],this.#d=0}#l;#d;#f;build(t,i,r){let s=new l.m({mutationCache:this,mutationId:++this.#d,options:t.defaultMutationOptions(i),state:r});return this.add(s),s}add(t){this.#l.push(t),this.notify({type:"added",mutation:t})}remove(t){this.#l=this.#l.filter(i=>i!==t),this.notify({type:"removed",mutation:t})}clear(){a.V.batch(()=>{this.#l.forEach(t=>{this.remove(t)})})}getAll(){return this.#l}find(t){let i={exact:!0,...t};return this.#l.find(t=>(0,s.X7)(i,t))}findAll(t={}){return this.#l.filter(i=>(0,s.X7)(t,i))}notify(t){a.V.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){return this.#f=(this.#f??Promise.resolve()).then(()=>{let t=this.#l.filter(t=>t.state.isPaused);return a.V.batch(()=>t.reduce((t,i)=>t.then(()=>i.continue().catch(s.ZT)),Promise.resolve()))}).then(()=>{this.#f=void 0}),this.#f}},m=r(79198),y=r(20436),g=r(18354),v=class{#p;#m;#e;#y;#g;#v;#b;#C;constructor(t={}){this.#p=t.queryCache||new h,this.#m=t.mutationCache||new d,this.#e=t.defaultOptions||{},this.#y=new Map,this.#g=new Map,this.#v=0}mount(){this.#v++,1===this.#v&&(this.#b=m.j.subscribe(()=>{m.j.isFocused()&&(this.resumePausedMutations(),this.#p.onFocus())}),this.#C=y.N.subscribe(()=>{y.N.isOnline()&&(this.resumePausedMutations(),this.#p.onOnline())}))}unmount(){this.#v--,0===this.#v&&(this.#b?.(),this.#b=void 0,this.#C?.(),this.#C=void 0)}isFetching(t){return this.#p.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#m.findAll({...t,status:"pending"}).length}getQueryData(t){return this.#p.find({queryKey:t})?.state.data}ensureQueryData(t){let i=this.getQueryData(t.queryKey);return i?Promise.resolve(i):this.fetchQuery(t)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:t,state:i})=>{let r=i.data;return[t,r]})}setQueryData(t,i,r){let a=this.#p.find({queryKey:t}),n=a?.state.data,o=(0,s.SE)(i,n);if(void 0===o)return;let u=this.defaultQueryOptions({queryKey:t});return this.#p.build(this,u).setData(o,{...r,manual:!0})}setQueriesData(t,i,r){return a.V.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,i,r)]))}getQueryState(t){return this.#p.find({queryKey:t})?.state}removeQueries(t){let i=this.#p;a.V.batch(()=>{i.findAll(t).forEach(t=>{i.remove(t)})})}resetQueries(t,i){let r=this.#p,s={type:"active",...t};return a.V.batch(()=>(r.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(s,i)))}cancelQueries(t={},i={}){let r={revert:!0,...i},n=a.V.batch(()=>this.#p.findAll(t).map(t=>t.cancel(r)));return Promise.all(n).then(s.ZT).catch(s.ZT)}invalidateQueries(t={},i={}){return a.V.batch(()=>{if(this.#p.findAll(t).forEach(t=>{t.invalidate()}),"none"===t.refetchType)return Promise.resolve();let r={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(r,i)})}refetchQueries(t={},i){let r={...i,cancelRefetch:i?.cancelRefetch??!0},n=a.V.batch(()=>this.#p.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let i=t.fetch(void 0,r);return r.throwOnError||(i=i.catch(s.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():i}));return Promise.all(n).then(s.ZT)}fetchQuery(t){let i=this.defaultQueryOptions(t);void 0===i.retry&&(i.retry=!1);let r=this.#p.build(this,i);return r.isStaleByTime(i.staleTime)?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(s.ZT).catch(s.ZT)}fetchInfiniteQuery(t){return t.behavior=(0,g.Gm)(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(s.ZT).catch(s.ZT)}resumePausedMutations(){return this.#m.resumePausedMutations()}getQueryCache(){return this.#p}getMutationCache(){return this.#m}getDefaultOptions(){return this.#e}setDefaultOptions(t){this.#e=t}setQueryDefaults(t,i){this.#y.set((0,s.Ym)(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){let i=[...this.#y.values()],r={};return i.forEach(i=>{(0,s.to)(t,i.queryKey)&&(r={...r,...i.defaultOptions})}),r}setMutationDefaults(t,i){this.#g.set((0,s.Ym)(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){let i=[...this.#g.values()],r={};return i.forEach(i=>{(0,s.to)(t,i.mutationKey)&&(r={...r,...i.defaultOptions})}),r}defaultQueryOptions(t){if(t?._defaulted)return t;let i={...this.#e.queries,...t?.queryKey&&this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=(0,s.Rm)(i.queryKey,i)),void 0===i.refetchOnReconnect&&(i.refetchOnReconnect="always"!==i.networkMode),void 0===i.throwOnError&&(i.throwOnError=!!i.suspense),void 0===i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i}defaultMutationOptions(t){return t?._defaulted?t:{...this.#e.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#p.clear(),this.#m.clear()}}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/345-bb10f8cbbe48b17d.js b/web/_next/static/chunks/345-bb10f8cbbe48b17d.js new file mode 100644 index 00000000..e9f1db50 --- /dev/null +++ b/web/_next/static/chunks/345-bb10f8cbbe48b17d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[345],{3493:function(e,t,a){a.d(t,{k:function(){return v}});var r=a(57437),n=a(67001),l=a(2265),s=a(90466),o=a(392),i=a(94152),d=a(29222),u=a(99326),c=a(72053),f=a(37988),h=a(46076),m=a(52221),g=a(33538),p=a(37122),x=a(28979),b=a(78922);let v=(0,l.memo)(l.forwardRef(function(e,t){let{defaultValue:a,onSelect:v,shouldExist:j,...w}=e,[C,I]=(0,l.useState)(a?o.normalize(a):""),[y]=(0,c.Nr)(C,500),N=(0,p.k)(!1),R=(0,l.useRef)(C),{data:k,isLoading:D,error:S}=(0,i.a)({queryKey:["directory-settings",y],queryFn:async()=>{let e=await d.Z.post(u.$+"/directory-selector",{input:y});return e.data},enabled:y.length>0});(0,l.useEffect)(()=>{"."===C&&I("")},[C]),(0,x.Z)(()=>{y.length>0&&(j&&(null==k?void 0:k.exists)?(v(y),R.current=y):j||(v(y),R.current=y))},[y,k]);let U=(0,l.useCallback)(()=>{!D&&k&&j&&!k.exists&&(0,l.startTransition)(()=>{I(R.current)})},[D,k,j,R.current]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(s.o,{leftIcon:(0,r.jsx)(n.$,{}),...w,value:C,rightIcon:(0,r.jsx)("div",{className:"flex",children:D?null:(null==k?void 0:k.exists)?(0,r.jsx)(f.h,{className:"text-green-500"}):j?(0,r.jsx)(h.c,{className:"text-red-500"}):(0,r.jsx)(m.h,{})}),onChange:e=>{var t;I(o.normalize(null!==(t=e.target.value)&&void 0!==t?t:""))},ref:t,onBlur:U}),(0,r.jsx)(b.v,{className:"text-2xl cursor-pointer absolute z-[1] top-0 right-0",onClick:N.on})]}),!(null==k?void 0:k.exists)&&(null==k?void 0:k.suggestions)&&k.suggestions.length>0&&(0,r.jsxs)("div",{className:"w-full flex flex-none flex-nowrap overflow-x-auto gap-2 items-center bg-gray-800 rounded-md p-1 px-4",children:[(0,r.jsx)("div",{className:"flex-none",children:"Sub-folders:"}),k.suggestions.map(e=>(0,r.jsx)("div",{className:"py-1 text-sm px-3 rounded-md border border-[--border] flex-none cursor-pointer bg-gray-900 hover:bg-gray-800",onClick:()=>I(o.normalize(e.fullPath)),children:e.folderName},e.fullPath))]})]}),(0,r.jsxs)(g.u_,{isOpen:N.active,onClose:N.off,isClosable:!0,title:"Directory selector",bodyClassName:"mt-4 space-y-4",children:[(0,r.jsx)(s.o,{leftIcon:(0,r.jsx)(n.$,{}),value:C,rightIcon:D?null:(null==k?void 0:k.exists)?(0,r.jsx)(f.h,{className:"text-green-500"}):j?(0,r.jsx)(h.c,{className:"text-red-500"}):(0,r.jsx)(m.h,{}),onChange:e=>{var t;I(o.normalize(null!==(t=e.target.value)&&void 0!==t?t:""))},onClick:()=>{j&&N.on()},ref:t}),k&&(null==k?void 0:k.content)&&k.content.length>0&&(0,r.jsxs)("div",{className:"w-full flex flex-col flex-none flex-nowrap overflow-x-auto gap-1 max-h-60",children:[(0,r.jsx)("div",{className:"flex-none",children:"Sub-folders:"}),k.content.map(e=>(0,r.jsx)("div",{className:"w-full py-2 text-sm px-3 rounded-md border border-[--border] flex-none cursor-pointer bg-gray-900 hover:bg-gray-800 truncate",onClick:()=>I(o.normalize(e.fullPath)),children:e.folderName},e.fullPath))]})]})]})}))},68760:function(e,t,a){a.d(t,{cO:function(){return i},Fy:function(){return o},_e:function(){return extractBasicFieldProps}});var r=a(57437),n=a(54487),l=a(96061),s=a(2265);let o=(0,n.xH)({fieldLabel:(0,l.j)(["UI-BasicField__fieldLabel","block text-md sm:text-lg font-semibold self-start"],{variants:{hasError:{true:"text-red-500",false:null}}}),fieldAsterisk:(0,l.j)("UI-BasicField__fieldAsterisk ml-1 text-red-500 text-sm"),fieldDetails:(0,l.j)("UI-BasicField__fieldDetails"),field:(0,l.j)("UI-BasicField__field w-full space-y-1"),fieldHelpText:(0,l.j)("UI-BasicField__fieldHelpText text-sm text-gray-500"),fieldErrorText:(0,l.j)("UI-BasicField__fieldErrorText text-sm text-red-500")});function extractBasicFieldProps(e,t){let{name:a,label:r,labelProps:n,help:l,error:s,isRequired:o,isDisabled:i=!1,isReadOnly:d=!1,fieldDetailsClassName:u,fieldLabelClassName:c,fieldClassName:f,fieldErrorTextClassName:h,fieldHelpTextClassName:m,id:g,...p}=e;return[p,{id:g||t,name:a,label:r,help:l,error:s,isDisabled:i,isRequired:o,isReadOnly:d,fieldErrorTextClassName:h,fieldHelpTextClassName:m,fieldDetailsClassName:u,fieldLabelClassName:c,fieldClassName:f,labelProps:n}]}let i=s.memo(s.forwardRef((e,t)=>{let{children:a,className:l,labelProps:s,id:i,label:d,error:u,help:c,isDisabled:f,isReadOnly:h,isRequired:m,fieldClassName:g,fieldDetailsClassName:p,fieldLabelClassName:x,fieldAsteriskClassName:b,fieldErrorTextClassName:v,fieldHelpTextClassName:j,...w}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:(0,n.cn)(o.field(),l,g),...w,ref:t,children:[!!d&&(0,r.jsxs)("label",{htmlFor:f?void 0:i,className:(0,n.cn)(o.fieldLabel({hasError:!!u}),x),...s,children:[d,m&&(0,r.jsx)("span",{className:(0,n.cn)(o.fieldAsterisk(),b),children:"*"})]}),a,(!!c||!!u)&&(0,r.jsxs)("div",{className:(0,n.cn)(o.fieldDetails(),p),children:[!!c&&(0,r.jsx)("p",{className:(0,n.cn)(o.fieldHelpText(),j),children:c}),!!u&&(0,r.jsx)("p",{className:(0,n.cn)(o.fieldErrorText(),v),children:u})]})]})})}));i.displayName="BasicField"},65871:function(e,t,a){a.d(t,{XZ:function(){return h},cO:function(){return d},Jq:function(){return useCheckboxGroupContext}});var r=a(57437),n=a(54487),l=a(2265),s=a(68760);let o=(0,l.createContext)(null),i=o.Provider,useCheckboxGroupContext=()=>(0,l.useContext)(o),d=l.forwardRef((e,t)=>{let[{value:a,defaultValue:o=[],onChange:d,stackClassName:u,checkboxLabelClassName:c,checkboxControlClassName:f,checkboxContainerClassName:m,checkboxIconClassName:g,options:p,size:x},b]=(0,s._e)(e,(0,l.useId)()),[v,j]=(0,l.useState)(null!=a?a:o);return(0,l.useLayoutEffect)(()=>{a&&j(a)},[a]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i,{value:{group_size:x},children:(0,r.jsx)(s.cO,{...b,ref:t,children:(0,r.jsx)("div",{className:(0,n.cn)("space-y-1",u),children:p.map(e=>(0,r.jsx)(h,{label:e.label,value:e.value,checked:v.includes(e.value),onChange:t=>{j(a=>{let r=[...a];return!0===t?-1===a.indexOf(e.value)&&r.push(e.value):!1===t&&(r=r.filter(t=>t!==e.value)),d&&d(r),r})},error:b.error,noErrorMessage:!0,labelClassName:c,controlClassName:f,containerClassName:m,iconClassName:g,isDisabled:b.isDisabled,isReadOnly:b.isReadOnly,tabIndex:0},e.value))})})})})});d.displayName="CheckboxGroup";var u=a(96061),c=a(66062);let f=(0,n.xH)({container:(0,u.j)("UI-Checkbox__container inline-flex gap-2 items-center"),control:(0,u.j)(["UI-Checkbox__root","appearance-none peer block relative overflow-hidden transition h-5 w-5 shrink-0 text-white rounded-md ring-offset-1 border ring-offset-background","border-gray-300 dark:border-gray-700","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[--ring] disabled:cursor-not-allowed disabled:opacity-50","data-[state=unchecked]:bg-white dark:data-[state=unchecked]:bg-gray-700","data-[state=unchecked]:hover:bg-gray-100 dark:data-[state=unchecked]:hover:bg-gray-600","data-[state=checked]:bg-brand dark:data-[state=checked]:bg-brand data-[state=checked]:border-brand","data-[state=indeterminate]:bg-[--muted] dark:data-[state=indeterminate]:text-gray-800 data-[state=indeterminate]:border-transparent","data-[error=true]:border-red-500 data-[error=true]:dark:border-red-500 data-[error=true]:data-[state=checked]:border-red-500 data-[error=true]:dark:data-[state=checked]:border-red-500"],{variants:{size:{md:"h-5 w-5",lg:"h-6 w-6"}},defaultVariants:{size:"md"}}),label:(0,u.j)(["UI-Checkbox_label","font-normal","data-[disabled=true]:opacity-50"],{variants:{size:{md:"text-md",lg:"text-lg"}},defaultVariants:{size:"md"}}),indicator:(0,u.j)(["UI-Checkbox__indicator","flex h-full w-full items-center justify-center relative"]),icon:(0,u.j)("UI-Checkbox__icon absolute",{variants:{size:{md:"h-4 w-4",lg:"h-5 w-5"}},defaultVariants:{size:"md"}})}),h=l.forwardRef((e,t)=>{var a;let[{className:o,noErrorMessage:i,containerClassName:d,controlClassName:u,iconClassName:h,labelClassName:m,indicatorClassName:g,onChange:p,value:x,size:b="md",...v},{label:j,...w}]=(0,s._e)(e,(0,l.useId)()),C=useCheckboxGroupContext(),I=null!==(a=null==C?void 0:C.group_size)&&void 0!==a?a:b;return(0,r.jsx)(s.cO,{fieldClassName:"space-y-.5",...w,error:i?void 0:w.error,children:(0,r.jsxs)("label",{className:(0,n.cn)(f.container(),d),htmlFor:w.id,children:[(0,r.jsx)(c.fC,{id:w.id,ref:t,className:(0,n.cn)(f.control({size:I}),u,o),disabled:w.isDisabled,required:w.isRequired,"data-error":!!w.error,onCheckedChange:e=>{p&&p(e)},...v,children:(0,r.jsxs)(c.FZ,{className:(0,n.cn)(f.indicator(),g),children:["indeterminate"!==v.checked&&(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",stroke:"currentColor",fill:"currentColor",className:(0,n.cn)(f.icon({size:I}),h),children:(0,r.jsx)("path",{fill:"#fff",d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"})}),"indeterminate"===v.checked&&(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:(0,r.jsx)("line",{x1:"5",x2:"19",y1:"12",y2:"12"})})]})}),(!!j||!!x)&&(0,r.jsx)("label",{className:(0,n.cn)(f.label({size:I}),m),htmlFor:w.id,"data-disabled":w.isDisabled,children:null!=j?j:x})]})})});h.displayName="Checkbox"},52770:function(e,t,a){a.d(t,{Mt:function(){return R},Dw:function(){return D},MG:function(){return U}});var r=a(57437),n=a(10387),l=a(54487),s=a(96061),o=a(2265),i=a(41501),d=a(41092);let u=(0,l.xH)({segment:(0,s.j)(["UI-DateSegment__segment","box-content tabular-nums text-right outline-none rounded-sm","group shadow-none","focus:font-bold focus:text-[--brand] dark:focus:text-[--brand]"],{variants:{isEditable:{false:"text-gray-500",true:"text-gray-800 dark:text-gray-200"}}}),input:(0,s.j)(["UI-DateSegment__input","block w-full text-center italic text-gray-500 group-focus:text-brand-500 dark:group-focus:text-white group-focus:font-semibold"])});function DateField(e){let{locale:t,...a}=e,{countryLocale:s}=(0,l.k9)(),u=(0,d.RM)({...a,locale:null!=t?t:s,createCalendar:n.YR}),c=(0,o.useRef)(null),{fieldProps:f}=(0,i.IZ)(a,u,c);return(0,r.jsx)("div",{...f,ref:c,className:"flex",children:u.segments.map((e,t)=>(0,r.jsx)(DateSegmentComponent,{segment:e,state:u},t))})}function DateSegmentComponent(e){let{segment:t,state:a}=e,n=(0,o.useRef)(null),{segmentProps:s}=(0,i.O7)(t,a,n);return(0,r.jsxs)("div",{...s,ref:n,style:{...s.style},className:(0,l.cn)(u.segment({isEditable:t.isEditable})),suppressHydrationWarning:!0,children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,l.cn)(u.input()),style:{display:t.isPlaceholder?void 0:"none",height:t.isPlaceholder?void 0:0,pointerEvents:"none"},children:t.placeholder}),t.isPlaceholder?null:t.text]})}DateField.displayName="DateField",DateSegmentComponent.displayName="DateSegmentComponent";var c=a(68760),f=a(97622),h=a(45652),m=a.n(h),g=a(27473),p=a(82867),x=a(26565),b=a(94625);let v=(0,l.xH)({cell:(0,s.j)("UI-CalendarCell__cell relative",{variants:{isFocusVisible:{true:"z-10",false:"z-0"}}}),date:(0,s.j)(["UI-CalendarCell__date","w-full h-full rounded-full flex items-center justify-center text-gray-600 dark:text-gray-300 font-medium"],{variants:{isDisabled:{true:"text-gray-400 cursor-default",false:null},isUnavailable:{true:"text-red-300 cursor-default",false:null},isSelectionStart:{true:"bg-brand-600 text-white hover:bg-brand-700",false:null},isSelectionEnd:{true:"bg-brand-600 text-white hover:bg-brand-700",false:null},isSelected:{true:null,false:null},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-[--ring] ring-offset-2",false:null}},compoundVariants:[{isDisabled:!1,isUnavailable:!1,className:"cursor-pointer"},{isSelected:!0,isSelectionStart:!1,isSelectionEnd:!1,className:"hover:bg-brand-400"},{isSelected:!1,isDisabled:!1,isUnavailable:!1,className:"hover:bg-brand-100"}]}),button:(0,s.j)("UI-CalendarCell__button w-10 h-10 outline-none group",{variants:{isRoundedLeft:{true:"rounded-l-full",false:null},isRoundedRight:{true:"rounded-r-full",false:null},isSelected:{true:"bg-brand-100 dark:bg-opacity-10",false:null},isDisabled:{true:"disabled",false:null},isUnavailable:{true:"disabled",false:null}}})});function CalendarCell(e){let{state:t,date:a,currentMonth:s,locale:i}=e,{countryLocale:d}=(0,l.k9)(),u=null!=i?i:d,c=(0,o.useRef)(null),{cellProps:f,buttonProps:h,isSelected:m,isDisabled:p,isUnavailable:j,formattedDate:w}=(0,g.JK)({date:a},t,c),C=!(0,n.xj)(s,a),I=t.highlightedRange?(0,n.KC)(a,t.highlightedRange.start):m,y=t.highlightedRange?(0,n.KC)(a,t.highlightedRange.end):m;(0,n.ji)(a,u);let N=m&&I,R=m&&y,{focusProps:k,isFocusVisible:D}=(0,x.Fx)();return(0,r.jsx)("td",{...f,className:(0,l.cn)(v.cell({isFocusVisible:D})),children:(0,r.jsx)("div",{...(0,b.dG)(h,k),ref:c,hidden:C,className:(0,l.cn)(v.button({isDisabled:p,isSelected:m,isUnavailable:j,isRoundedLeft:N,isRoundedRight:R})),children:(0,r.jsx)("div",{className:(0,l.cn)(v.date({isSelected:m,isSelectionEnd:y,isSelectionStart:I,isUnavailable:j,isDisabled:p,isFocusVisible:D})),children:w})})})}CalendarCell.displayName="CalendarCell";let getShortenedWeekDays=(e,t)=>{let[a,...r]=e;return t.startsWith("fr")?["L","M","M","J","V","S","D"]:[...r,a]},j=(0,l.xH)({table:(0,s.j)("UI-CalendarGrid__table flex-1"),head:(0,s.j)("UI-CalendarGrid__head text-gray-600 text-center")});function CalendarGrid(e){let{locale:t,state:a,offset:s={}}=e,{countryLocale:i}=(0,l.k9)(),d=null!=t?t:i,u=a.visibleRange.start.add(s),c=(0,n.Vf)(u),{gridProps:f,headerProps:h,weekDays:m}=(0,g.QA)({startDate:u,endDate:c},a),p=(0,o.useMemo)(()=>(0,n.Rn)(u,d),[u,d]);return m=(0,o.useMemo)(()=>getShortenedWeekDays(m,d),[d]),(0,r.jsxs)("table",{...f,cellPadding:"0",className:(0,l.cn)(j.table()),children:[(0,r.jsx)("thead",{...h,className:(0,l.cn)(j.head()),children:(0,r.jsx)("tr",{children:m.map((e,t)=>(0,r.jsx)("th",{children:e},t))})}),(0,r.jsx)("tbody",{children:[...Array(p).keys()].map(e=>(0,r.jsx)("tr",{children:a.getDatesInWeek(e,u).map((e,t)=>e?(0,r.jsx)(CalendarCell,{state:a,date:e,currentMonth:u},t):(0,r.jsx)("td",{},t))},e))})]})}CalendarGrid.displayName="CalendarGrid";let w=(0,l.xH)({container:(0,s.j)("UI-Calendar__container inline-block text-gray-800 dark:text-gray-200"),header:(0,s.j)("UI-Calendar__header flex items-center gap-2 pb-4 w-full justify-between"),title:(0,s.j)("UI-Calendar__title flex-none font-bold text-lg ml-2 w-fit")});function Calendar(e){let{locale:t,...a}=e,{countryLocale:s}=(0,l.k9)(),i=null!=t?t:s,d=(0,p.F)({...a,locale:i,createCalendar:n.YR}),u=(0,o.useRef)(null),{calendarProps:c,prevButtonProps:{onPress:h},nextButtonProps:{onPress:x}}=(0,g.GX)(a,d);return(0,r.jsxs)("div",{...c,ref:u,className:(0,l.cn)(w.container()),tabIndex:0,children:[(0,r.jsxs)("div",{className:(0,l.cn)(w.header()),children:[(0,r.jsx)(f.hU,{size:"sm",intent:"primary-subtle",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"h-6 w-6",children:(0,r.jsx)("path",{d:"M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06Z"})}),rounded:!0,onClick:e=>{e.preventDefault(),h&&h(e)}}),(0,r.jsx)("h4",{className:(0,l.cn)(w.title()),children:m()(Intl.DateTimeFormat(i,{month:"long",year:"numeric"}).format(d.visibleRange.start.toDate(d.timeZone)))}),(0,r.jsx)(f.hU,{size:"sm",intent:"primary-subtle",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"h-6 w-6",children:(0,r.jsx)("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})}),rounded:!0,onClick:e=>{e.preventDefault(),x&&x(e)}})]}),(0,r.jsx)(CalendarGrid,{state:d,locale:i,offset:{}})]})}Calendar.displayName="Calendar";var C=a(61416);function CalendarHeader(e){let{state:t,calendarProps:a,prevButtonProps:n,nextButtonProps:s,locale:o}=e,{countryLocale:i}=(0,l.k9)(),d=null!=o?o:i,{onPress:u,...c}=n,{onPress:h,...g}=s;return(0,r.jsxs)("div",{className:"flex items-center py-4 text-center",children:[(0,r.jsx)(C.T,{children:(0,r.jsx)("h2",{children:a["aria-label"]})}),(0,r.jsx)(f.hU,{size:"sm",intent:"primary-subtle",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"h-6 w-6",children:(0,r.jsx)("path",{d:"M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06Z"})}),rounded:!0,...c,onClick:e=>{e.preventDefault(),u&&u(e)}}),(0,r.jsx)("h4",{"aria-hidden":!0,className:"flex-1 align-center font-bold text-md text-center",children:m()(Intl.DateTimeFormat(d,{month:"long",year:"numeric"}).format(t.visibleRange.start.toDate(t.timeZone)))}),(0,r.jsx)("h4",{"aria-hidden":!0,className:"flex-1 align-center font-bold text-md text-center",children:m()(Intl.DateTimeFormat(d,{month:"long",year:"numeric"}).format(t.visibleRange.start.add({months:1}).toDate(t.timeZone)))}),(0,r.jsx)(f.hU,{size:"sm",intent:"primary-subtle",icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"h-6 w-6",children:(0,r.jsx)("path",{d:"M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"})}),rounded:!0,...g,onClick:e=>{e.preventDefault(),h&&h(e)}})]})}function RangeCalendar(e){let{locale:t,...a}=e,{countryLocale:s}=(0,l.k9)(),i=null!=t?t:s,d=(0,p.t)({...a,visibleDuration:{months:2},locale:i,createCalendar:n.YR}),u=(0,o.useRef)(null),{calendarProps:c,prevButtonProps:f,nextButtonProps:h}=(0,g.Zv)(a,d,u);return(0,r.jsxs)("div",{...c,ref:u,className:"inline-block",children:[(0,r.jsx)(CalendarHeader,{state:d,calendarProps:c,prevButtonProps:f,nextButtonProps:h,locale:i}),(0,r.jsx)("div",{className:"flex items-center gap-2 pb-4 w-fit",children:(0,r.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,r.jsx)(CalendarGrid,{state:d,offset:{},locale:i}),(0,r.jsx)(CalendarGrid,{state:d,offset:{months:1},locale:i})]})})]})}CalendarHeader.displayName="CalendarHeader",RangeCalendar.displayName="RangeCalendar";var I=a(24189),y=a(33538);let N=(0,l.xH)({input:(0,s.j)(["UI-DateSegment__input","relative flex flex-wrap items-center gap-2 cursor-text","group-focus-within:border-brand-500 group-focus-within:ring-1 group-focus-within:ring-[--ring]","justify-between"]),iconButton:(0,s.j)(["UI-DateSegment__iconButton","w-5 h-5 group-focus-within:text-brand-700 dark:group-focus-within:text-brand-200"])}),R=o.forwardRef((e,t)=>{var a;let[{size:n,intent:s,leftAddon:u,leftIcon:h,rightIcon:m,rightAddon:g,locale:p,inputClassName:x,iconButtonClassName:b,...v},j]=(0,c._e)(e,(0,o.useId)()),{countryLocale:w}=(0,l.k9)(),C=null!=p?p:w,R=(0,d.N3)(v),k=(0,l.lq)(t,(0,o.useRef)(null)),{groupProps:D,labelProps:S,fieldProps:U,buttonProps:_,dialogProps:F,calendarProps:z}=(0,i.kt)({...v,"aria-label":null!==(a=j.name)&&void 0!==a?a:"no-label"},R,k),{onPress:E,onFocusChange:A,...L}=_;return(0,r.jsxs)(c.cO,{...j,labelProps:S,children:[(0,r.jsxs)("div",{...D,ref:k,className:(0,l.cn)("group",(0,I.db)()),children:[(0,r.jsx)(I.ID,{addon:u,rightIcon:m,leftIcon:h,size:n,side:"left"}),(0,r.jsx)(I.SQ,{icon:h,size:n,side:"left"}),(0,r.jsxs)("div",{className:(0,l.cn)("form-input",I.F4.input({size:n,intent:s,hasError:!!j.error,untouchable:!!j.isDisabled,hasRightAddon:!!g,hasRightIcon:!!m,hasLeftAddon:!!u,hasLeftIcon:!!h}),N.input(),x),children:[(0,r.jsx)("div",{className:"flex",children:(0,r.jsx)(DateField,{label:j.name,...U,locale:C})}),(0,r.jsx)(f.hU,{intent:"gray-basic",size:"xs",...L,icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",className:(0,l.cn)(N.iconButton(),b),children:(0,r.jsx)("path",{d:"M3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7v2H5a2 2 0 0 0-2 2zm16 14H5V8h14z"})}),onClick:e=>E&&E(e)})]}),(0,r.jsx)(I.ID,{addon:g,rightIcon:m,leftIcon:u,size:n,side:"right"}),(0,r.jsx)(I.SQ,{icon:m,size:n,side:"right"})]}),(0,r.jsx)(y.u_,{size:"sm",isOpen:R.isOpen,onClose:R.close,isClosable:!0,...F,children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(Calendar,{...z,locale:C})})})]})});R.displayName="DatePicker";let k=(0,l.xH)({input:(0,s.j)(["UI-DateRangePicker__input","relative flex flex-wrap items-center gap-1 cursor-text","group-focus-within:border-brand-500 group-focus-within:ring-1 group-focus-within:ring-[--ring]","justify-between text-sm sm:text-base"]),iconButton:(0,s.j)(["UI-DateRangePicker__iconButton","w-5 h-5 group-focus-within:text-brand-700"])}),D=o.forwardRef((e,t)=>{var a;let[{size:n,intent:s,leftAddon:u,leftIcon:h,rightIcon:m,rightAddon:g,inputClassName:p,iconButtonClassName:x,locale:b,...v},j]=(0,c._e)(e,(0,o.useId)()),{countryLocale:w}=(0,l.k9)(),C=null!=b?b:w,N=(0,d.OV)(v),R=(0,l.lq)(t,(0,o.useRef)(null)),{groupProps:D,labelProps:S,startFieldProps:U,endFieldProps:_,buttonProps:F,dialogProps:z,calendarProps:E}=(0,i.wE)({...v,"aria-label":null!==(a=j.name)&&void 0!==a?a:"no-label"},N,R),{onPress:A,onFocusChange:L,...V}=F;return(0,r.jsx)(c.cO,{...j,labelProps:S,children:(0,r.jsxs)("div",{...D,ref:R,className:(0,l.cn)("flex group",(0,I.db)()),children:[(0,r.jsx)(I.ID,{addon:u,rightIcon:m,leftIcon:h,size:n,side:"left"}),(0,r.jsx)(I.SQ,{icon:h,size:n,side:"left"}),(0,r.jsxs)("div",{className:(0,l.cn)("form-input",I.F4.input({size:n,intent:s,hasError:!!j.error,untouchable:!!j.isDisabled,hasRightAddon:!!g,hasRightIcon:!!m,hasLeftAddon:!!u,hasLeftIcon:!!h}),k.input(),p),children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)(DateField,{...U,locale:C}),(0,r.jsx)("span",{"aria-hidden":"true",className:"px-1",children:" – "}),(0,r.jsx)(DateField,{..._,locale:C})]}),(0,r.jsx)(f.hU,{intent:"gray-basic",size:"xs",...V,icon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",className:(0,l.cn)(k.iconButton(),x),children:(0,r.jsx)("path",{d:"M3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7v2H5a2 2 0 0 0-2 2zm16 14H5V8h14z"})}),onClick:e=>A&&A(e)})]}),(0,r.jsx)(I.ID,{addon:g,rightIcon:m,leftIcon:u,size:n,side:"right"}),(0,r.jsx)(I.SQ,{icon:m,size:n,side:"right"}),(0,r.jsx)(y.u_,{size:"xl",isOpen:N.isOpen,onClose:N.close,isClosable:!0,...z,children:(0,r.jsx)("div",{className:"flex justify-center",children:(0,r.jsx)(RangeCalendar,{...E,locale:C})})})]})})});D.displayName="DateRangePicker";let S=(0,l.xH)({input:(0,s.j)(["UI-TimeInput__input","relative flex flex-wrap items-center gap-1 cursor-text","group-focus-within:border-brand-500 group-focus-within:ring-1 group-focus-within:ring-[--ring]","!w-fit"])}),U=o.forwardRef((e,t)=>{let[{size:a,intent:n,leftAddon:s,leftIcon:u=(0,r.jsx)("span",{children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"w-4 h-4",children:(0,r.jsx)("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm7-3.25v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5a.75.75 0 0 1 1.5 0Z"})})}),rightIcon:f,rightAddon:h,inputClassName:m,locale:g,...p},x]=(0,c._e)(e,(0,o.useId)()),{countryLocale:b}=(0,l.k9)(),v=(0,d.P$)({...p,locale:null!=g?g:b}),j=(0,l.lq)(t,(0,o.useRef)(null)),{labelProps:w,fieldProps:C}=(0,i.C3)(p,v,j);return(0,r.jsx)(c.cO,{...x,labelProps:w,children:(0,r.jsxs)("div",{className:(0,l.cn)((0,I.db)(),"!w-fit"),children:[(0,r.jsx)(I.ID,{addon:s,rightIcon:f,leftIcon:u,size:a,side:"left"}),(0,r.jsx)(I.SQ,{icon:u,size:a,side:"left"}),(0,r.jsx)("div",{className:(0,l.cn)("form-input",I.F4.input({size:a,intent:n,hasError:!!x.error,untouchable:!!x.isDisabled,hasRightAddon:!!h,hasRightIcon:!!f,hasLeftAddon:!!s,hasLeftIcon:!!u}),S.input(),m),...C,ref:j,children:v.segments.map((e,t)=>(0,r.jsx)(DateSegmentComponent,{segment:e,state:v},t))}),(0,r.jsx)(I.ID,{addon:h,rightIcon:f,leftIcon:s,size:a,side:"right"}),(0,r.jsx)(I.SQ,{icon:f,size:a,side:"right"})]})})});U.displayName="TimeInput"},24189:function(e,t,a){a.d(t,{ID:function(){return InputAddon},F4:function(){return s},SQ:function(){return InputIcon},db:function(){return inputContainerStyle}});var r=a(57437),n=a(54487),l=a(96061);a(2265);let s=(0,n.xH)({input:(0,l.j)(["UI-Input__input","w-full rounded-[--radius]","bg-[--paper] border-[--border] placeholder-gray-400 dark:placeholder-gray-600","disabled:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed","focus:border-brand-500 focus:ring-1 focus:ring-[--ring]","outline-none focus:outline-none","transition duration-150","shadow-sm"],{variants:{size:{sm:"px-2 py-1.5 text-sm",md:"",lg:"px-4 py-3 text-md"},intent:{basic:"hover:border-gray-300 dark:hover:border-gray-600",filled:"bg-gray-100 dark:bg-gray-800 border-transparent focus:bg-white",unstyled:"bg-transparent hover:bg-transparent border-0 shadow-none focus:ring-0 rounded-none p-0 text-base"},hasError:{false:null,true:"border-red-500 hover:border-red-200 dark:border-red-500"},untouchable:{false:null,true:"shadow-none pointer-events-none opacity-50 cursor-not-allowed bg-gray-50 dark:bg-gray-800"},hasLeftAddon:{true:null,false:null},hasRightAddon:{true:null,false:null},hasLeftIcon:{true:null,false:null},hasRightIcon:{true:null,false:null}},compoundVariants:[{hasLeftAddon:!0,className:"border-l-transparent hover:border-l-transparent rounded-l-none"},{hasRightAddon:!0,className:"border-r-transparent hover:border-r-transparent rounded-r-none"},{hasLeftAddon:!1,hasLeftIcon:!0,size:"sm",className:"pl-10"},{hasLeftAddon:!1,hasLeftIcon:!0,size:"md",className:"pl-10"},{hasLeftAddon:!1,hasLeftIcon:!0,size:"lg",className:"pl-12"},{hasRightAddon:!1,hasRightIcon:!0,size:"sm",className:"pr-10"},{hasRightAddon:!1,hasRightIcon:!0,size:"md",className:"pr-10"},{hasRightAddon:!1,hasRightIcon:!0,size:"lg",className:"pr-12"}],defaultVariants:{size:"md",intent:"basic",hasError:!1,untouchable:!1,hasLeftIcon:!1,hasRightIcon:!1,hasLeftAddon:!1,hasRightAddon:!1}})}),inputContainerStyle=()=>(0,n.cn)("UI-Input__inputContainer flex relative"),o=(0,n.xH)({icon:(0,l.j)(["UI-Input__addons--icon pointer-events-none absolute inset-y-0 grid place-content-center text-gray-500 z-[1]","dark:text-gray-300"],{variants:{size:{sm:"w-10 text-md",md:"w-12 text-lg",lg:"w-14 text-2xl"},isLeftIcon:{true:"left-0",false:null},isRightIcon:{true:"right-0",false:null}},defaultVariants:{size:"md",isLeftIcon:!1,isRightIcon:!1}}),addon:(0,l.j)(["UI-Input__addons--addon bg-gray-50 inline-flex items-center flex-none px-3 border border-gray-300 text-gray-800 shadow-sm text-sm sm:text-md","dark:bg-gray-700 dark:border-gray-700 dark:text-gray-300"],{variants:{size:{sm:"text-sm",md:"text-md",lg:"text-lg"},isLeftAddon:{true:"rounded-l-md",false:null},isRightAddon:{true:"rounded-r-md",false:null},hasLeftIcon:{true:null,false:null},hasRightIcon:{true:null,false:null}},compoundVariants:[{size:"sm",hasLeftIcon:!0,isLeftAddon:!0,className:"pl-10"},{size:"sm",hasRightIcon:!0,isRightAddon:!0,className:"pr-10"},{size:"md",hasLeftIcon:!0,isLeftAddon:!0,className:"pl-10"},{size:"md",hasRightIcon:!0,isRightAddon:!0,className:"pr-10"},{size:"lg",hasLeftIcon:!0,isLeftAddon:!0,className:"pl-12"},{size:"lg",hasRightIcon:!0,isRightAddon:!0,className:"pr-12"}],defaultVariants:{size:"md",isLeftAddon:!1,isRightAddon:!1,hasLeftIcon:!1,hasRightIcon:!1}})}),InputIcon=e=>{let{icon:t,size:a="md",side:l,props:s}=e;return t?(0,r.jsx)("span",{className:(0,n.cn)(o.icon({isRightIcon:"right"===l,isLeftIcon:"left"===l,size:a})),...s,children:t}):null},InputAddon=e=>{let{addon:t,leftIcon:a,rightIcon:l,size:s="md",side:i,props:d}=e;return t?(0,r.jsx)("span",{className:(0,n.cn)(o.addon({isRightAddon:"right"===i,isLeftAddon:"left"===i,hasRightIcon:!!l,hasLeftIcon:!!a,size:s})),...d,children:t}):null}},62892:function(e,t,a){a.d(t,{h:function(){return x}});var r=a(57437),n=a(9805),l=a(54487),s=a(96061),o=a(77434),i=a.n(o),d=a(41330),u=a.n(d),c=a(2265),f=a(37376),h=a(68760),m=a(24189),g=a(28979);let p=(0,l.xH)({input:(0,s.j)(["UI-MultiSelect__input","relative flex flex-wrap gap-2 cursor-text p-2","focus-within:ring-1 ring-[--ring] focus-within:border-brand-500 focus-within:hover:border-brand-500"],{variants:{isOpen:{true:"",false:null}}}),menuContainer:(0,s.j)(["UI-MultiSelect__menuContainer","absolute z-10 -bottom-2","left-0 translate-y-full max-h-56 w-full overflow-auto rounded-[--radius] p-1 text-base shadow-lg sm:text-sm","ring-1 ring-black ring-opacity-5 focus:outline-none","bg-[--paper] border border-[--border]"]),menuItem:(0,s.j)(["UI-MultiSelect__menuItem","relative cursor-pointer py-2 pl-3 pr-9 rounded-[--radius]"],{variants:{highlighted:{true:"bg-[--highlight]",false:null}}}),menuItemImage:(0,s.j)(["UI-MultiSelect__menuItemImage","flex-none justify-center w-8 h-8 mr-3 rounded-full overflow-hidden relative bg-slate-200"])}),x=c.forwardRef((e,t)=>{var a;let[{children:s,className:o,size:d="md",intent:x="basic",isLoading:b,leftAddon:v,leftIcon:j,rightIcon:w,rightAddon:C,options:I,defaultValue:y,placeholder:N,value:R,onChange:k,max:D,discrete:S=!1,menuContainerClassName:U,menuItemClassName:_,menuItemImageClassName:F,loadingContent:z=(0,r.jsx)("p",{className:"w-full text-center",children:"..."}),...E},A]=(0,h._e)(e,(0,c.useId)()),L=(0,c.useRef)(null),V=(0,c.useRef)(null),[P,O]=(0,c.useState)(null!==(a=null!=R?R:y)&&void 0!==a?a:[]),[T,G]=(0,c.useState)(""),M=useDisclosure(!1),B=useDisclosure(!1),[H,Z]=(0,c.useState)(0),K=(0,c.useMemo)(()=>{let e=i()(I,e=>!P.includes(e.value));return T.length>0?i()(e,e=>e.label?e.label.toLowerCase().includes(T.toLowerCase()):e.value.toLowerCase().includes(T.toLowerCase())):e},[I,P,T]);(0,g.Z)(()=>{(0,c.startTransition)(()=>{R&&O(R)})},[R]),(0,g.Z)(()=>{k&&k(P)},[P]);let X=(0,c.useCallback)(e=>{(0,c.startTransition)(()=>{O(t=>!D||1!==D&&t.length=D?[...t.slice(0,t.length-1),e]:1===D?[e]:t)})},[D]),q=(0,c.useCallback)(()=>{O(e=>e.slice(0,e.length-1))},[]),Q=(0,c.useCallback)(e=>{O(t=>t.filter(t=>t!==e))},[]);function handleKeyDown(e){"Enter"===e.key&&L.current&&(1===K.length&&K[0]&&T.length>0&&(X(K[0].value),G(""),B.close()),0===T.length&&K[H]&&(X(K[H].value),Z(0))),("Backspace"===e.key||"Delete"===e.key)&&0===T.length&&q()}let W=(0,c.useCallback)(e=>{"ArrowDown"===e.key&&Z(e=>{let t=e+1<=K.length-1?e+1:0;return scrollToHighlighted(t),t}),"ArrowUp"===e.key&&Z(e=>{let t=e-1>=0?e-1:K.length-1;return scrollToHighlighted(t),t})},[K]);(0,c.useEffect)(()=>(window.addEventListener("keyup",W),L.current&&L.current.addEventListener("keydown",handleKeyDown),()=>{L.current&&L.current.removeEventListener("keydown",handleKeyDown),window.removeEventListener("keyup",W)}),[L,B,K,H]);let Y=(0,c.useRef)(null);function getMap(){return Y.current||(Y.current=new Map),Y.current}function scrollToHighlighted(e){var t,a,r;let n=getMap(),l=n.get(e);e===K.length-1?null===(a=V.current)||void 0===a||a.scrollTo({top:null===(t=V.current)||void 0===t?void 0:t.scrollHeight,behavior:"smooth"}):0===e?null===(r=V.current)||void 0===r||r.scrollTo({top:0,behavior:"smooth"}):null==l||l.scrollIntoView({block:"nearest",inline:"end"})}return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(h.cO,{...A,children:(0,r.jsxs)("div",{className:(0,l.cn)((0,m.db)()),children:[(0,r.jsx)(m.ID,{addon:v,rightIcon:w,leftIcon:j,size:d,side:"left"}),(0,r.jsx)(m.SQ,{icon:j,size:d,side:"left"}),(0,r.jsx)("div",{className:(0,l.cn)("form-input",m.F4.input({size:d,intent:x,hasError:!!A.error,untouchable:!!A.isDisabled,hasRightAddon:!!C,hasRightIcon:!!w,hasLeftAddon:!!v,hasLeftIcon:!!j}),p.input({isOpen:M.isOpen})),onClick:()=>{if(!M.isOpen&&!b){var e;null===(e=L.current)||void 0===e||e.focus()}},children:b?(0,r.jsx)("div",{children:z}):(0,r.jsxs)(r.Fragment,{children:[P.map((e,t)=>{var a,n,s;return(0,r.jsx)("span",{children:(0,r.jsx)(f.C,{tag:!0,size:"lg",intent:S?"basic":"gray",isClosable:!A.isDisabled&&!S,onClose:()=>Q(e),className:(0,l.cn)({"px-1":S}),children:(0,r.jsx)("span",{children:null!==(s=null===(a=u()(I,["value",e]))||void 0===a?void 0:a.label)&&void 0!==s?s:null===(n=u()(I,["value",e]))||void 0===n?void 0:n.value})})},t)}),(0,r.jsx)("input",{id:A.id,value:T,onChange:e=>{var t;M.open(),G(null!==(t=e.target.value)&&void 0!==t?t:""),K.length>0&&B.open()},onFocus:()=>{M.open(),B.open()},onClick:()=>{M.open(),B.open()},onBlur:()=>{setTimeout(()=>{M.close(),B.close()},200)},onKeyUp:e=>{"Enter"===e.key&&e.preventDefault()},disabled:A.isDisabled||b,className:(0,l.cn)("p-0 border-none outline-none focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-0 !bg-transparent",{"w-1":!M.isOpen}),ref:L}),(0,r.jsx)(n.u,{show:B.isOpen&&K.length>0,as:c.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("ul",{className:(0,l.cn)(p.menuContainer(),U),ref:V,children:K.map((e,t)=>{var a;let n=e.image?(0,r.jsx)("div",{className:(0,l.cn)(p.menuItemImage(),F),children:e.image}):(0,r.jsx)(r.Fragment,{});return(0,r.jsx)("li",{className:(0,l.cn)(p.menuItem({highlighted:H===t}),_),onClick:()=>{X(e.value),G(""),(0,c.startTransition)(()=>{var e;B.close(),null===(e=L.current)||void 0===e||e.focus(),setTimeout(()=>{M.open()},200)})},onMouseEnter:()=>{Z(t)},ref:e=>{let a=getMap();e?a.set(t,e):a.delete(t)},children:(0,r.jsxs)("div",{className:"flex w-full items-center",children:[n,(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:(0,l.cn)("text-base block truncate"),children:null!==(a=e.label)&&void 0!==a?a:e.value}),e.description&&(0,r.jsx)("div",{className:(0,l.cn)("text-sm opacity-70"),children:e.description})]})]})},e.value)})})})]})}),(0,r.jsx)(m.ID,{addon:C,rightIcon:w,leftIcon:v,size:d,side:"right"}),(0,r.jsx)(m.SQ,{icon:w,size:d,side:"right"})]})})})});function useDisclosure(e,t){let[a,r]=(0,c.useState)(e),open=()=>{if(!a){var e;r(!0),null==t||null===(e=t.onOpen)||void 0===e||e.call(t)}},close=()=>{if(a){var e;r(!1),null==t||null===(e=t.onClose)||void 0===e||e.call(t)}};return{isOpen:a,open,close,toggle:()=>{a?close():open()}}}x.displayName="MultiSelect"},31466:function(e,t,a){a.d(t,{Y:function(){return f}});var r=a(57437),n=a(54487),l=a(62537),s=a(76154),o=a(96061),i=a(2265),d=a(68760),u=a(24189);let c=(0,n.xH)({input:(0,o.j)("UI-NumberInput__input",{variants:{discrete:{true:!1,false:"text-center rounded-none border-l-transparent border-r-transparent hover:border-l-transparent hover:border-r-transparent"}},defaultVariants:{discrete:!1}}),control:(0,o.j)(["UI-NumberInput__control","flex flex-none items-center justify-center w-10 border shadow-sm text-lg font-medium","disabled:shadow-none disabled:pointer-events-none","transition","bg-[--paper] hover:bg-gray-50 dark:hover:bg-gray-800 border-[--border] disabled:!bg-gray-50 disabled:!bg-gray-50 disabled:text-gray-300 disabled:border-gray-200","dark:disabled:!bg-gray-800 dark:disabled:border-gray-800 dark:disabled:text-gray-700"],{variants:{size:{sm:"",md:"",lg:""},position:{left:null,right:null},hasLeftAddon:{true:"border-l-0",false:null},hasRightAddon:{true:"border-r-0",false:null}},compoundVariants:[{hasRightAddon:!1,hasLeftAddon:!1,position:"left",className:"rounded-bl-md rounded-tl-md"},{hasRightAddon:!1,hasLeftAddon:!1,position:"right",className:"rounded-br-md rounded-tr-md"}],defaultVariants:{size:"md",hasLeftAddon:!1,hasRightAddon:!1}})}),f=i.forwardRef((e,t)=>{let[{children:a,className:o,size:f,intent:h,leftAddon:m,leftIcon:g,rightAddon:p,rightIcon:x,defaultValue:b=0,placeholder:v,onChange:j,fullWidth:w,discrete:C,value:I,controlClassName:y,inputClassName:N,min:R=0,max:k,minFractionDigits:D,maxFractionDigits:S=2,precision:U,step:_,allowMouseWheel:F=!0,...z},E]=(0,d._e)(e,(0,i.useId)()),[A,L]=(0,s.eO)(l.u_({id:E.id,name:E.name,disabled:E.isDisabled,readOnly:E.isReadOnly,value:I?String(I):void 0,min:R,max:k,minFractionDigits:D,maxFractionDigits:S,step:_,allowMouseWheel:F,clampValueOnBlur:!0,onChange:e=>{j&&j(e.valueAsNumber)}})),V=l.$j(A,L,s.vs);return(0,i.useEffect)(()=>{I||V.setValue(b)},[]),(0,i.useEffect)(()=>{I&&V.setValue(I)},[I]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.cO,{...V.rootProps,...E,children:(0,r.jsxs)("div",{className:(0,n.cn)((0,u.db)()),children:[(0,r.jsx)(u.ID,{addon:m,rightIcon:x,leftIcon:g,size:f,side:"left"}),(0,r.jsx)(u.SQ,{icon:g,size:f,side:"left"}),!C&&(0,r.jsx)("button",{className:(0,n.cn)(c.control({size:f,position:"left",hasLeftAddon:!!m||!!g}),y),...V.decrementTriggerProps,children:"-"}),(0,r.jsx)("input",{type:"number",name:E.name,className:(0,n.cn)("form-input",u.F4.input({size:f,intent:h,hasError:!!E.error,untouchable:!!E.isDisabled,hasRightAddon:!!p||!C,hasRightIcon:!!x,hasLeftAddon:!!m||!C,hasLeftIcon:!!g}),c.input({discrete:C}),N,o),disabled:E.isDisabled,...V.inputProps,...z,ref:t}),!C&&(0,r.jsx)("button",{className:(0,n.cn)(c.control({size:f,position:"right",hasRightAddon:!!p||!!x}),y),...V.incrementTriggerProps,children:"+"}),(0,r.jsx)(u.ID,{addon:p,rightIcon:x,leftIcon:m,size:f,side:"right"}),(0,r.jsx)(u.SQ,{icon:x,size:f,side:"right"})]})})})});f.displayName="NumberInput"},69802:function(e,t,a){a.d(t,{E:function(){return c}});var r=a(57437),n=a(54487),l=a(51733),s=a(76154),o=a(96061),i=a(2265),d=a(68760);let u=(0,n.xH)({stack:(0,o.j)("UI-RadioGroup__stack w-full space-y-1"),radioControl:(0,o.j)(["UI-RadioGroup__radioControl","inline-flex flex-none justify-center items-center border border-gray-300 rounded-full text-white bg-white cursor-pointer transition duration-10 relative","data-[focus]:outline-none data-[focus]:ring-2 ring-offset-1 ring-[--ring]","data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[disabled=true]:cursor-not-allowed","bg-white border-gray-300 hover:bg-gray-100 hover:text-brand-100","data-[checked=true]:bg-brand-500 data-[checked=true]:dark:bg-brand-500 data-[checked=true]:border-brand-500","dark:bg-gray-700 dark:border-gray-700 dark:hover:bg-gray-700","data-[error=true]:border-red-500","peer-[.is-focused]:ring-2"],{variants:{size:{md:"h-5 w-5 text-xs",lg:"h-6 w-6 text-sm"}},defaultVariants:{size:"md"}}),radioLabel:(0,o.j)(["UI-RadioGroup__radioLabel font-normal flex-none","data-[disabled=true]:opacity-50"],{variants:{size:{md:"text-md",lg:"text-lg"}},defaultVariants:{size:"md"}}),radioHelp:(0,o.j)(["UI-RadioGroup__radioHelp"]),radioContainer:(0,o.j)(["UI-RadioGroup__radioContainer","inline-flex w-full gap-2 items-center relative"]),radioIcon:(0,o.j)(["UI-RadioGroup__radioIcon","data-[disabled=true]:opacity-50 data-[disabled=true]:cursor-not-allowed","data-[checked=true]:text-white data-[checked=false]:text-transparent"])}),c=i.forwardRef((e,t)=>{let[{size:a="md",value:o,defaultValue:c,onChange:f,options:h,stackClassName:m,radioLabelClassName:g,radioControlClassName:p,radioContainerClassName:x,radioHelpClassName:b,radioIconClassName:v,checkedIcon:j},w]=(0,d._e)(e,(0,i.useId)()),[C,I]=(0,s.eO)(l.u_({id:w.id,value:o,name:w.name,disabled:w.isDisabled,readOnly:w.isReadOnly,onChange(e){f&&f(e.value)}})),y=l.$j(C,I,s.vs);return(0,i.useEffect)(()=>{!o&&c&&y.setValue(c)},[]),(0,i.useEffect)(()=>{o&&o.length>0&&y.setValue(o)},[o||"",h]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.cO,{...w,children:(0,r.jsx)("div",{className:(0,n.cn)(u.stack(),m),...y.rootProps,ref:t,children:h.map(e=>{var t;return(0,r.jsxs)("label",{...y.getRadioProps({value:e.value}),className:(0,n.cn)(u.radioContainer(),x),"data-checked":y.value===e.value,tabIndex:-1,children:[(0,r.jsx)("input",{...y.getRadioInputProps({value:e.value})}),(0,r.jsx)("div",{className:(0,n.cn)(u.radioControl({size:a}),p),...y.getRadioControlProps({value:e.value}),"data-error":!!w.error,"data-disabled":!!w.isDisabled,"data-checked":y.value===e.value,children:j||(0,r.jsx)("span",{className:(0,n.cn)(u.radioIcon(),v),"data-disabled":!!w.isDisabled,"data-checked":y.value===e.value,children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",stroke:"currentColor",fill:"currentColor",children:(0,r.jsx)("path",{d:"M8 4a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z"})})})}),(0,r.jsx)("div",{className:(0,n.cn)(u.radioLabel({size:a}),g),...y.getRadioLabelProps({value:e.value}),"data-disabled":!!w.isDisabled,"data-checked":y.value===e.value,children:null!==(t=e.label)&&void 0!==t?t:e.value}),!!e.help&&(0,r.jsx)("div",{className:(0,n.cn)(d.Fy.fieldHelpText(),b),...y.getRadioLabelProps({value:e.value}),"data-checked":y.value===e.value,children:e.help})]},e.value)})})})})});c.displayName="RadioGroup"},30054:function(e,t,a){a.d(t,{P:function(){return i}});var r=a(57437),n=a(54487),l=a(2265),s=a(68760),o=a(24189);let i=l.forwardRef((e,t)=>{let[{children:a,className:i,size:d="md",intent:u="basic",leftIcon:c,leftAddon:f,rightAddon:h,rightIcon:m,options:g=[],placeholder:p,...x},b]=(0,s._e)(e,(0,l.useId)());return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.cO,{...b,children:(0,r.jsxs)("div",{className:(0,n.cn)((0,o.db)()),children:[(0,r.jsx)(o.ID,{addon:f,rightIcon:m,leftIcon:c,size:d,side:"left"}),(0,r.jsx)(o.SQ,{icon:c,size:d,side:"left"}),(0,r.jsxs)("select",{id:b.id,name:b.name,className:(0,n.cn)("form-select",o.F4.input({size:d,intent:u,hasError:!!b.error,untouchable:!!b.isDisabled,hasRightAddon:!!h,hasRightIcon:!!m,hasLeftAddon:!!f,hasLeftIcon:!!c}),i),disabled:b.isDisabled,...x,ref:t,children:[p&&(0,r.jsx)("option",{value:"",children:p}),g.map(e=>{var t;return(0,r.jsx)("option",{value:e.value,children:null!==(t=e.label)&&void 0!==t?t:e.value},e.value)})]}),(0,r.jsx)(o.ID,{addon:h,rightIcon:m,leftIcon:f,size:d,side:"right"}),(0,r.jsx)(o.SQ,{icon:m,size:d,side:"right"})]})})})});i.displayName="Select"},60691:function(e,t,a){a.d(t,{r:function(){return u}});var r=a(57437),n=a(54487),l=a(96061),s=a(2265),o=a(68760),i=a(92376);let d=(0,n.xH)({container:(0,l.j)(["UI-Checkbox__rootLabel inline-flex gap-2 items-center"]),control:(0,l.j)(["peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-colors disabled:cursor-not-allowed disabled:opacity-50","outline-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[--ring] focus-visible:ring-offset-1","data-[state=unchecked]:bg-gray-200 dark:data-[state=unchecked]:bg-gray-700","data-[state=unchecked]:hover:bg-gray-300 dark:data-[state=unchecked]:hover:bg-gray-600","data-[state=checked]:bg-brand","data-[error=true]:border-red-500"]),thumb:(0,l.j)(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-[1.4rem] data-[state=unchecked]:translate-x-1"]),label:(0,l.j)(["UI-Switch__label","relative font-normal","data-disabled:text-gray-300"])}),u=s.forwardRef((e,t)=>{let{className:a,...l}=e,[{value:u,onChange:c,controlClassName:f,labelClassName:h,containerClassName:m,thumbClassName:g,...p},{label:x,...b}]=(0,o._e)(l,(0,s.useId)());return(0,r.jsx)(o.cO,{...b,id:b.id,children:(0,r.jsxs)("div",{className:(0,n.cn)(d.container(),m),children:[(0,r.jsx)(i.fC,{id:b.id,ref:t,className:(0,n.cn)(d.control(),f,a),disabled:b.isDisabled,required:b.isRequired,"data-error":!!b.error,onCheckedChange:e=>{c&&c(e)},...p,children:(0,r.jsx)(i.bU,{className:(0,n.cn)(d.thumb(),g)})}),(!!x||!!u)&&(0,r.jsx)("label",{className:(0,n.cn)(d.label(),h),htmlFor:b.id,children:null!=x?x:u})]})})});u.displayName="Switch"},90466:function(e,t,a){a.d(t,{o:function(){return i}});var r=a(57437),n=a(54487),l=a(2265),s=a(68760),o=a(24189);let i=l.forwardRef((e,t)=>{let[{className:a,size:i="md",intent:d="basic",leftAddon:u,leftIcon:c,rightAddon:f,rightIcon:h,disabled:m,...g},p]=(0,s._e)(e,(0,l.useId)());return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.cO,{...p,children:(0,r.jsxs)("div",{className:(0,n.cn)((0,o.db)()),children:[(0,r.jsx)(o.ID,{addon:u,rightIcon:h,leftIcon:c,size:i,side:"left"}),(0,r.jsx)(o.SQ,{icon:c,size:i,side:"left"}),(0,r.jsx)("input",{id:p.id,name:p.name,className:(0,n.cn)("form-input",o.F4.input({size:i,intent:d,hasError:!!p.error,untouchable:!!p.isDisabled,hasRightAddon:!!f,hasRightIcon:!!h,hasLeftAddon:!!u,hasLeftIcon:!!c}),a),spellCheck:"false",disabled:p.isDisabled||m,...g,ref:t}),(0,r.jsx)(o.ID,{addon:f,rightIcon:h,leftIcon:u,size:i,side:"right"}),(0,r.jsx)(o.SQ,{icon:h,size:i,side:"right"})]})})})});i.displayName="TextInput"},26345:function(e,t,a){a.d(t,{gN:function(){return ep},Fu:function(){return TypesafeForm},SC:function(){return createTypesafeFormSchema}});var r=a(57437),n=a(38110),l=a(54487),s=a(96778),o=a.n(s),i=a(2265),d=a(61865);a(36905),a(33874);var u=a(74578);function getZodDefaults(e){return Object.fromEntries(Object.entries(e.shape).map(e=>{let[t,a]=e;return a instanceof u.uE?[t,a._def.defaultValue()]:[t,void 0]}))}let c=(0,i.createContext)(void 0),useFormSchema=()=>(0,i.useContext)(c),TypesafeForm=e=>{let{mode:t="onTouched",resolver:a,reValidateMode:s,shouldFocusError:u,shouldUnregister:f,shouldUseNativeValidation:h,criteriaMode:m,delayError:g,schema:p,defaultValues:x,onChange:b,onSubmit:v,onError:j,formRef:w,children:C,mRef:I,stackClassName:y,...N}=e,R=(0,i.useMemo)(()=>{if(!(o()(getZodDefaults(p))&&o()(x)))return{...getZodDefaults(p),...x}},[]),k={mode:t,resolver:a,defaultValues:R,reValidateMode:s,shouldFocusError:u,shouldUnregister:f,shouldUseNativeValidation:h,criteriaMode:m,delayError:g};k.resolver=(0,n.F)(p);let D=(0,d.cI)(k),{handleSubmit:S}=D;return i.useImperativeHandle(I,()=>D,[I,D]),(0,i.useEffect)(()=>{let e;return b&&(e=D.watch(b)),()=>null==e?void 0:e.unsubscribe()},[D,b]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(d.RV,{...D,children:(0,r.jsx)(c.Provider,{value:{schema:p,shape:p.shape},children:(0,r.jsx)("form",{ref:w,onSubmit:S(v,j),...N,children:(0,r.jsx)("div",{className:(0,l.cn)("w-full space-y-3",y),children:runIfFn(C,D)})})})})})};TypesafeForm.displayName="TypesafeForm";let isFunction=e=>"function"==typeof e;function runIfFn(e){for(var t=arguments.length,a=Array(t>1?t-1:0),r=1;r{var a;let{children:n,isLoading:s,isDisabled:o,uploadHandler:u,role:c="save",disableOnSuccess:f="create"===c,disableIfInvalid:h=!1,showLoadingOverlayOnSuccess:x=!1,loadingOverlay:b,...v}=e,{formState:j}=(0,d.Gc)(),{locale:w}=(0,l.k9)(),C=(0,i.useMemo)(()=>!!f&&j.isSubmitSuccessful,[j.isSubmitSuccessful]),I=(0,i.useMemo)(()=>!!h&&!j.isValid,[j.isValid]);return(0,r.jsxs)(r.Fragment,{children:[null!==(a=("create"===c||x)&&!!b)&&void 0!==a?a:(0,r.jsx)(g.fz,{show:j.isSubmitSuccessful}),(0,r.jsx)(p.zx,{type:"submit",isLoading:j.isSubmitting||s||(null==u?void 0:u.isLoading),isDisabled:I||o||C,ref:t,...v,children:n||m.c[c][w]})]})});var b=a(90466),v=a(68760),j=a(24189);let w=i.forwardRef((e,t)=>{let[{children:a,className:n,intent:s="basic",...o},d]=(0,v._e)(e,(0,i.useId)());return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(v.cO,{className:(0,l.cn)("w-full gap-1"),...d,children:(0,r.jsx)("textarea",{id:d.id,className:(0,l.cn)("form-textarea",j.F4.input({intent:s,hasError:!!d.error,untouchable:!!d.isDisabled}),n),...o,ref:t})})})});w.displayName="Textarea";var C=a(52770),I=a(30054),y=a(31466),N=a(62892),R=a(70752),k=a(76154),D=a(96061),S=a(41330),U=a.n(S);let _=(0,l.xH)({menuContainer:(0,D.j)(["UI-Combobox__menuContainer","absolute z-10 -bottom-0.5","left-0 translate-y-full max-h-56 w-full overflow-auto rounded-[--radius] p-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm","bg-[--paper] border border-[--border]"]),menuItem:(0,D.j)(["UI-Combobox__menuItem","relative cursor-pointer py-2 pl-3 pr-9 rounded-[--radius] data-[highlighted]:bg-[--highlight] text-base"]),menuNoOptionText:(0,D.j)(["UI-Combobox__menuNoOptionText","text-base text-center py-1 text-gray-500 dark:text-gray-700"])}),F=i.forwardRef((e,t)=>{let[{size:a,intent:n,leftIcon:s,leftAddon:d,rightIcon:u,rightAddon:c,children:f,className:h,options:m,withFiltering:g=!0,placeholder:p,noOptionsMessage:x,allowCustomValue:b=!1,onInputChange:w,valueInputRef:C,defaultValue:I,onChange:y,value:N,returnValueOrLabel:D="value",menuContainerClassName:S,menuItemClassName:F,menuNoOptionTextClassName:z,...E},{...A}]=(0,v._e)(e,(0,i.useId)()),[L,V]=(0,i.useState)(m),[P,O]=(0,i.useState)(void 0),[T,G]=(0,k.eO)(R.u_({id:A.id,allowCustomValue:b,inputBehavior:"autohighlight",openOnClick:!0,loop:!0,blurOnSelect:!0,placeholder:p,onOpen(){(0,i.startTransition)(()=>{V(m)})},onSelect:e=>{(0,i.startTransition)(()=>{"value"===D?(O(e.value),y&&y(e.value)):"label"===D&&(O(e.label),y&&y(e.label))})},onInputChange(e){let{value:t}=e;w&&w(t),(0,i.startTransition)(()=>{if(g){let e=m.filter(e=>e.label?e.label.toLowerCase().includes(t.toLowerCase()):e.value.toLowerCase().includes(t.toLowerCase()));V(e.length>0?e:x?[]:L)}})}})),M=R.$j(T,G,k.vs);(0,i.useEffect)(()=>{var e,t,a,r,n,l,s,o,i,d;"value"===D&&I&&(O(I),M.setInputValue(null!==(a=null===(e=U()(m,["value",I]))||void 0===e?void 0:e.label)&&void 0!==a?a:""),M.setValue(null!==(r=null===(t=U()(m,["value",I]))||void 0===t?void 0:t.value)&&void 0!==r?r:"")),"label"===D&&I&&(O(null!==(o=null===(n=U()(m,["label",I]))||void 0===n?void 0:n.value)&&void 0!==o?o:I),M.setInputValue(null!==(i=null===(l=U()(m,["label",I]))||void 0===l?void 0:l.label)&&void 0!==i?i:I),M.setValue(null!==(d=null===(s=U()(m,["label",I]))||void 0===s?void 0:s.value)&&void 0!==d?d:I))},[I]),(0,i.useEffect)(()=>{N&&O(N)},[N]);let B=(0,i.useMemo)(()=>g?L:m,[m,g,L]);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(v.cO,{...A,ref:t,children:[(0,r.jsx)("input",{type:"text",hidden:!0,value:null!=P?P:"",onChange:()=>{},ref:C}),(0,r.jsx)("div",{...M.rootProps,children:(0,r.jsxs)("div",{...M.controlProps,className:(0,l.cn)((0,j.db)()),children:[(0,r.jsx)(j.ID,{addon:d,rightIcon:u,leftIcon:s,size:a,side:"left"}),(0,r.jsx)(j.SQ,{icon:s,size:a,side:"left",props:M.triggerProps}),(0,r.jsx)("input",{className:(0,l.cn)("appearance-none",j.F4.input({size:a,intent:n,hasError:!!A.error,untouchable:!!A.isDisabled,hasRightAddon:!!c,hasRightIcon:!!u,hasLeftAddon:!!d,hasLeftIcon:!!s})),disabled:A.isDisabled,onBlur:()=>{(0,i.startTransition)(()=>{if(!b){var e,t;(0===m.length&&!M.selectedValue||M.selectedValue&&0===M.selectedValue.length)&&M.setInputValue(""),m.length>0&&(!o()(null===(e=U()(m,["value",M.selectedValue]))||void 0===e?void 0:e.label)||!o()(null===(t=U()(m,["value",M.selectedValue]))||void 0===t?void 0:t.value))&&M.selectedValue&&M.setValue(M.selectedValue)}})},...E,ref:t,...M.inputProps}),(0,r.jsx)(j.ID,{addon:c,rightIcon:u,leftIcon:d,size:a,side:"right"}),(0,r.jsx)(j.SQ,{icon:u,size:a,side:"right",props:M.triggerProps})]})}),(0,r.jsx)("div",{...M.positionerProps,className:"z-10",children:(!!x||B.length>0)&&(0,r.jsxs)("ul",{className:(0,l.cn)(_.menuContainer(),S),...M.contentProps,children:[0===B.length&&!!x&&(0,r.jsx)("div",{className:(0,l.cn)(_.menuNoOptionText(),z),children:x}),B.map((e,t)=>{var a,n;return(0,r.jsx)("li",{className:(0,l.cn)(_.menuItem(),F),...M.getOptionProps({label:null!==(a=e.label)&&void 0!==a?a:e.value,value:e.value,index:t,disabled:A.isDisabled}),children:null!==(n=e.label)&&void 0!==n?n:e.value},"combobox:".concat(e.value,":").concat(t))})]})})]})})});F.displayName="Combobox";var z=a(60691),E=a(65871),A=a(69802),L=a(6771);let V={ad:"EUR",ae:"AED",af:"AFN",ag:"XCD",ai:"XCD",al:"ALL",am:"AMD",ao:"AOA",ar:"ARS",as:"USD",at:"EUR",au:"AUD",aw:"AWG",ax:"EUR",az:"AZN",ba:"BAM",bb:"BBD",bd:"BDT",be:"EUR",bf:"XOF",bg:"BGN",bh:"BHD",bi:"BIF",bj:"XOF",bl:"EUR",bm:"BMD",bn:"BND",bo:"BOB",bq:"USD",br:"BRL",bs:"BSD",bt:"BTN",bv:"NOK",bw:"BWP",by:"BYN",bz:"BZD",ca:"CAD",cc:"AUD",cd:"CDF",cf:"XAF",cg:"CDF",ch:"CHF",ci:"XOF",ck:"NZD",cl:"CLP",cm:"XAF",cn:"CNY",co:"COP",cr:"CRC",cu:"CUC",cv:"CVE",cw:"ANG",cx:"AUD",cy:"EUR",cz:"CZK",de:"EUR",dj:"DJF",dk:"DKK",dm:"DOP",do:"DOP",dz:"DZD",ec:"USD",ee:"EUR",eg:"EGP",eh:"MAD",er:"ERN",es:"EUR",et:"ETB",fi:"EUR",fj:"FJD",fm:"USD",fo:"DKK",fr:"EUR",ga:"XAF",gb:"GBP",gd:"XCD",ge:"GEL",gf:"EUR",gg:"GBP",gh:"GHS",gi:"GIP",gl:"DKK",gm:"GMD",gn:"GNF",gp:"EUR",gq:"XAF",gr:"EUR",gt:"GTQ",gu:"USD",gw:"XOF",gy:"GYD",hk:"HKD",hn:"HNL",hr:"EUR",ht:"HTG",hu:"HUF",id:"IDR",ie:"EUR",il:"ILS",im:"GBP",in:"INR",io:"USD",iq:"IQD",ir:"IRR",is:"ISK",it:"EUR",je:"GBP",jm:"JMD",jo:"JOD",jp:"JPY",ke:"KES",kg:"KGS",kh:"KHR",ki:"AUD",km:"KMF",kn:"XCD",kp:"KPW",kr:"KRW",kw:"KWD",ky:"KYD",kz:"KZT",lb:"LBP",lc:"XCD",li:"CHF",lk:"LKR",lr:"LRD",ls:"LSL",lt:"EUR",lu:"EUR",lv:"EUR",ly:"LYD",ma:"MAD",mc:"EUR",md:"MDL",me:"EUR",mf:"EUR",mg:"MGA",mh:"USD",ml:"XOF",mm:"MMK",mn:"MNT",mo:"MOP",mp:"USD",mq:"EUR",mr:"MRU",ms:"XCD",mt:"EUR",mu:"MUR",mv:"MVR",mw:"MWK",mx:"MXN",my:"MYR",mz:"MZN",na:"NAD",nc:"XPF",ne:"NGN",nf:"AUD",ng:"NGN",ni:"NIO",nl:"EUR",no:"NOK",np:"NPR",nr:"AUD",nu:"NZD",nz:"NZD",om:"OMR",pa:"PAB",pe:"PEN",pf:"XPF",pg:"PGK",ph:"PHP",pk:"PKR",pl:"PLN",pm:"EUR",pn:"NZD",pr:"USD",pt:"EUR",pw:"USD",py:"PYG",qa:"QAR",re:"EUR",ro:"RON",rs:"RSD",ru:"RUB",rw:"RWF",sa:"SAR",sb:"SBD",sc:"SCR",sd:"SDG",se:"SEK",sg:"SGD",sh:"SHP",si:"EUR",sj:"NOK",sk:"EUR",sl:"SLL",sm:"EUR",sn:"XOF",so:"SOS",sr:"SRD",ss:"SSP",st:"STN",sv:"SVC",sx:"ANG",sy:"SYP",sz:"SZL",tc:"USD",td:"XAF",tf:"EUR",tg:"XOF",th:"THB",tj:"TJS",tk:"NZD",tl:"USD",tm:"TMT",tn:"TND",to:"TOP",tt:"TTD",tv:"AUD",tw:"TWD",tz:"TZS",ua:"UAH",ug:"UGX",um:"USD",us:"USD",uy:"UYU",uz:"UZS",va:"EUR",vc:"XCD",ve:"VES",vg:"USD",vi:"USD",vn:"VND",vu:"VUV",wf:"XPF",ws:"USD",ye:"YER",yt:"EUR",za:"ZAR",zm:"ZMW",zw:"ZWL",hm:"AUD",fk:"FKP",gs:"GEL",la:"LAK",mk:"MKD",aq:"USD",ps:"ILS",tr:"TRY"},removeSeparators=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",a=RegExp(escapeRegExp(t),"g");return e.replace(a,"")},sanitizeValue=e=>{let{value:t,groupSeparator:a=",",decimalSeparator:r=".",allowDecimals:n=!0,decimalsLimit:l=2,allowNegativeValue:s=!1,prefix:o="",transformRawValue:i=e=>e}=e,d=i(t);if("-"===d)return d;let u=new RegExp("((^|\\D)-\\d)|(-".concat(escapeRegExp(o),")")),c=u.test(d),[f,h]=RegExp("(\\d+)-?".concat(escapeRegExp(o))).exec(t)||[],m=o?f?d.replace(f,"").concat(null!=h?h:""):d.replace(o,""):d,g=removeSeparators(m,a),p=removeNonNumericCharacters(g,[a,r]),x=c&&s?"-":"";if(r&&p.includes(r)){let[e,t]=p.split(r),a=l&&t?t.slice(0,l):t,s=n?"".concat(r).concat(a):"";return"".concat(x).concat(e).concat(s)}return"".concat(x).concat(p)};function removeNonNumericCharacters(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[",","."],a=escapeRegExp(t.join("")),r=RegExp("[^\\d".concat(a,"]"),"gi");return e.replace(r,"")}let padTrimValue=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(void 0===a||""===e||void 0===e)return e;if(!e.match(/\d/g))return"";let[r,n]=e.split(t);if(0===a&&r)return r;let l=n||"";if(l.length2&&void 0!==arguments[2]&&arguments[2],r=e;return t&&"."!==t&&(r=r.replace(RegExp(escapeRegExp(t),"g"),"."),a&&"-"===t&&(r="-".concat(r.slice(1)))),r},P=/[\\^$.*+?()[\]{}|]/g,O=RegExp(P.source);function escapeRegExp(e){return e&&O.test(e)?e.replace(P,"\\$&"):e||""}var T={en:{decimalSeparator:".",groupSeparator:","},fr:{decimalSeparator:",",groupSeparator:"."}};let G=i.forwardRef((e,t)=>{let[{value:a,defaultValue:n=0,locale:s,currency:o,onChange:d,...u},c]=(0,v._e)(e,(0,i.useId)()),{locale:f,country:h}=(0,l.k9)(),m=null!=s?s:f,g=null!=o?o:V[h],p=(0,i.useMemo)(()=>{var e;return null!==(e=T[m])&&void 0!==e?e:{decimalSeparator:".",groupSeparator:","}},[m]),x=p.decimalSeparator,j=p.groupSeparator,[w,C]=(0,i.useState)(null!=a?a:n),[I,y]=(0,i.useState)(!1),N=(0,L.Z)({amount:w,currency:g,precision:2}).setLocale(m),R=N.toFormat(),[k,D]=(0,i.useState)(formatNumber(N.toUnit().toString(),m,2)),S=(0,i.useCallback)(e=>{let t=sanitizeValue({value:e,groupSeparator:j,decimalSeparator:x,decimalsLimit:2});return parseFloat(padTrimValue("."!==x?replaceDecimalSeparator(t,x,!1):t,".",2))},[x,j]);function handleOnChange(e){let t=0,a="";try{var r;(a=removeNonNumericCharacters(null!==(r=e.target.value)&&void 0!==r?r:"0")).length>0&&(t=S(a))}catch(e){D("0"),C(null!=t?t:0),d&&d(null!=t?t:0)}let n=parseInt((100*t).toFixed(2));C(n),d&&d(n),D(a)}return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(b.o,{value:I?k:R,onChange:handleOnChange,onBlur:()=>{D(e=>formatNumber(N.toUnit().toString(),m,2)),y(!1)},onFocus:()=>{y(!0)},ref:t,...c,...u})})});function formatNumber(e,t,a){let r=parseFloat(null!=e?e:"0");if(isNaN(r))return"0";let n=new Intl.NumberFormat(t,{minimumFractionDigits:a,maximumFractionDigits:a}).format(r);return n}G.displayName="PriceInput";var M=JSON.parse('{"W":{"fr":"Entrez l\'addresse","en":"Enter your address"},"S":{"fr":"Aucune addresse trouv\xe9e","en":"No address found"}}'),B=a(20849),H=a(72053);let useGoogleMapsAutocomplete=e=>{let{apiKey:t,minLengthAutocomplete:a=0,withSessionToken:r=!1,debounce:n=300,autocompletionRequest:l,loaderApiOptions:s={}}=e,[o,d]=(0,i.useState)(void 0),[u,c]=(0,i.useState)(void 0),f=(0,i.useCallback)(()=>{if(!window.google)throw Error("[AddressInput]: Google script not loaded");if(!window.google.maps)throw Error("[AddressInput]: Google maps script not loaded");if(!window.google.maps.places)throw Error("[AddressInput]: Google maps places script not loaded");d(new window.google.maps.places.AutocompleteService),c(new google.maps.places.AutocompleteSessionToken)},[window]);(0,i.useEffect)(()=>{let init=async()=>{try{window.google&&window.google.maps&&window.google.maps.places||await new B.aN({apiKey:t,...{libraries:["places"],...s}}).load(),f()}catch(e){console.log(e)}};t?init():f()},[]);let[h,m]=(0,i.useState)([]),g=(0,H.y1)(e=>{if(!o||e.length{m((e||[]).map(e=>({label:e.description,value:e.place_id})))})},n);return{suggestions:h,fetchSuggestions:g}},requestBuilder=(e,t,a)=>{let{location:r,...n}=e,l={input:t,...n};return a&&(l.sessionToken=a),r&&(l.location=new google.maps.LatLng(r)),l},Z=i.forwardRef((e,t)=>{let{locale:a}=(0,l.k9)(),[{children:n,className:s,autocompletionRequest:d,apiOptions:u,defaultValue:c,allowedCountries:f=null,onChange:h,apiKey:m,placeholder:g=M.W[a],noOptionsMessage:p=M.S[a],...x},b]=(0,v._e)(e,(0,i.useId)()),{suggestions:j,fetchSuggestions:w}=useGoogleMapsAutocomplete({apiKey:m,minLengthAutocomplete:0,withSessionToken:!1,debounce:300,autocompletionRequest:{componentRestrictions:{country:f}}});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(F,{returnValueOrLabel:"label",allowCustomValue:!1,withFiltering:!1,options:o()(j)&&c?[{value:c,label:c}]:j,onInputChange:w,defaultValue:c,onChange:h,placeholder:g,noOptionsMessage:p,...b,...x,ref:t})})});var K=a(53677),X=a(98489);let q=(0,l.xH)({colorInput:(0,D.j)(["UI-ColorInput__root","w-6 h-6 rounded-md -ml-1 border border-[--border]"]),colorPickerContainer:(0,D.j)(["UI-ColorInput__colorPickerContainer","flex w-full justify-center p-2"])}),Q=i.forwardRef((e,t)=>{let{children:a,colorInputClassName:n,colorPickerContainerClassName:s,className:o,value:d,onChange:u,defaultValue:c="#5e28c2",...f}=e,[h,m]=(0,i.useState)(null!=c?c:d);return(0,i.useLayoutEffect)(()=>{d&&m(d)},[d]),(0,r.jsx)(K.h_,{trigger:(0,r.jsx)(b.o,{value:h,onChange:e=>m(e.target.value),leftIcon:(0,r.jsx)("div",{className:(0,l.cn)(q.colorInput(),n),style:{backgroundColor:h}}),ref:t,...f}),menuClassName:"w-full block",dropdownClassName:"right-[inherit] left-0",children:(0,r.jsx)("div",{className:(0,l.cn)(q.colorPickerContainer(),s),children:(0,r.jsx)(X.gW,{color:h,onChange:e=>{u&&u(e),m(e)}})})})});Q.displayName="ColorInput";var W=a(3493);let _Field=()=>(0,r.jsx)(r.Fragment,{});function withControlledInput(e){return(0,i.forwardRef)((t,a)=>{let{control:n,formState:l,...s}=(0,d.Gc)(),{shape:o}=useFormSchema(),u=(0,i.useMemo)(()=>{var e;return!!(null===(e=(0,d.U2)(o,t.name))||void 0===e?void 0:e.nonempty)},[o]);return(0,r.jsx)(d.Qr,{name:t.name,control:n,rules:{required:t.isRequired},render:n=>{var s;let{field:{ref:o,...i}}=n;return(0,r.jsx)(e,{value:i.value,onChange:callAllHandlers(t.onChange,i.onChange),onBlur:callAllHandlers(t.onBlur,i.onBlur),isRequired:u,...t,error:null===(s=getFormError(i.name,l))||void 0===s?void 0:s.message,ref:useMergeRefs(a,o)})}})})}let Y=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{var a;return(0,r.jsx)(b.o,{...e,value:null!==(a=e.value)&&void 0!==a?a:"",ref:t})}))),J=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let{value:a,onChange:n,shouldExist:l,...s}=e,o=(0,d.Gc)(),u=(0,d.bc)({name:s.name}),c=(0,i.useMemo)(()=>{var e;return null!==(e=(0,d.U2)(o.formState.defaultValues,s.name))&&void 0!==e?e:""},[]);return i.useEffect(()=>{u.field.onChange(c)},[]),(0,r.jsx)(W.k,{shouldExist:l,...s,defaultValue:c,onSelect:e=>u.field.onChange(e),ref:t})}))),$=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{var a;return(0,d.Gc)(),(0,r.jsx)(w,{...e,value:null!==(a=e.value)&&void 0!==a?a:"",ref:t})}))),ee=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)(),n=(0,d.bc)({name:e.name}),l=(0,i.useMemo)(()=>{var t;return null!==(t=(0,d.U2)(a.formState.defaultValues,e.name))&&void 0!==t?t:"#000000"},[]);return i.useEffect(()=>{n.field.onChange(l)},[]),(0,r.jsx)(Q,{...e,defaultValue:l,ref:t})}))),et=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let{value:a,...n}=e,l=(0,d.Gc)(),s=(0,d.bc)({name:n.name}),o=(0,i.useMemo)(()=>null!=a?a:(0,d.U2)(l.formState.defaultValues,n.name),[]),u=(0,i.useCallback)(e=>(0,f.u4)(e.toISOString(),"UTC"),[]);return(0,r.jsx)(C.Mt,{granularity:"day",...n,value:a?u(a):void 0,defaultValue:o?u(o):void 0,onChange:e=>{s.field.onChange(null==e?void 0:e.toDate("UTC"))},ref:t})}))),ea=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let{value:a,...n}=e,l=(0,d.Gc)(),s=(0,d.bc)({name:n.name}),o=(0,i.useMemo)(()=>(0,d.U2)(l.formState.defaultValues,n.name),[]),u=(0,i.useCallback)(e=>(0,f.Aj)(e.toISOString()),[]);return(0,r.jsx)(C.Dw,{granularity:"day",...n,value:a?{start:u(a.start),end:u(a.end)}:void 0,onChange:e=>{s.field.onChange({start:null==e?void 0:e.start.toDate((0,f.iT)()),end:null==e?void 0:e.end.toDate((0,f.iT)())})},defaultValue:o?{start:u(o.start?o.start:new Date),end:u(o.end?o.end:(0,h.Z)(new Date,1))}:void 0,ref:t})}))),dateValueToTimeObject=e=>({hour:e.hour,minute:e.minute}),er=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let{value:a,...n}=e,l=(0,d.Gc)(),s=(0,d.bc)({name:n.name}),o=(0,i.useMemo)(()=>(0,d.U2)(l.formState.defaultValues,n.name),[]);return(0,r.jsx)(C.MG,{...n,value:a?new f.qp(a.hour,a.minute):void 0,onChange:e=>s.field.onChange(dateValueToTimeObject(new f.qp(e.hour,e.minute))),defaultValue:o?new f.qp(o.hour,o.minute):void 0,ref:t})}))),en=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)(),n=(0,d.bc)({name:e.name});return i.useEffect(()=>{if(!(0,d.U2)(a.formState.defaultValues,e.name)&&!n.field.value){var t,r;n.field.onChange(null===(r=e.options)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.value)}},[n.field.value]),(0,r.jsx)(I.P,{...e,ref:t})}))),el=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)();return(0,r.jsx)(y.Y,{...e,defaultValue:(0,d.U2)(a.formState.defaultValues,e.name),ref:t})}))),es=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)();return(0,r.jsx)(N.h,{...e,defaultValue:(0,d.U2)(a.formState.defaultValues,e.name),ref:t})}))),eo=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)();return(0,r.jsx)(F,{...e,defaultValue:(0,d.U2)(a.formState.defaultValues,e.name),ref:t})}))),ei=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)();return(0,r.jsx)(z.r,{...e,defaultChecked:(0,d.U2)(a.formState.defaultValues,e.name),ref:t})}))),ed=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)();return(0,r.jsx)(E.XZ,{...e,defaultChecked:(0,d.U2)(a.formState.defaultValues,e.name),ref:t})}))),eu=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{var a;let n=(0,d.Gc)(),l=(0,d.bc)({name:e.name});return i.useEffect(()=>{(0,d.U2)(n.formState.defaultValues,e.name)||l.field.value||l.field.onChange([])},[l.field.value]),(0,r.jsx)(E.cO,{...e,defaultValue:null!==(a=(0,d.U2)(n.formState.defaultValues,e.name))&&void 0!==a?a:[],ref:t})}))),ec=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)(),n=(0,d.bc)({name:e.name});return i.useEffect(()=>{if(!(0,d.U2)(a.formState.defaultValues,e.name)&&!n.field.value){var t,r;n.field.onChange(null===(r=e.options)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.value)}},[n.field.value]),(0,r.jsx)(A.E,{...e,value:n.field.value,ref:t})}))),ef=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)(),n=(0,d.bc)({name:e.name});return i.useEffect(()=>{if(!(0,d.U2)(a.formState.defaultValues,e.name)&&!n.field.value){var t,r;n.field.onChange(null===(r=e.options)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.value)}},[n.field.value]),(0,r.jsx)(A.E,{fieldClassName:"w-full",fieldLabelClassName:"text-md",radioContainerClassName:(0,l.cn)("block w-full p-4 cursor-pointer dark:bg-gray-900 transition border border-[--border] rounded-[--radius]","data-[checked=true]:ring-2 ring-[--ring]"),radioControlClassName:"absolute right-2 top-2 h-5 w-5 text-xs",radioHelpClassName:"text-sm",radioLabelClassName:"font-semibold flex-none flex",stackClassName:"flex flex-col md:flex-row gap-2 space-y-0",...e,value:n.field.value,ref:t})}))),eh=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let a=(0,d.Gc)(),n=(0,d.bc)({name:e.name});return i.useEffect(()=>{if(!(0,d.U2)(a.formState.defaultValues,e.name)&&!n.field.value){var t,r;n.field.onChange(null===(r=e.options)||void 0===r?void 0:null===(t=r[0])||void 0===t?void 0:t.value)}},[n.field.value]),(0,r.jsx)(A.E,{fieldClassName:"!w-fit",fieldLabelClassName:"text-md",radioContainerClassName:(0,l.cn)("block w-fit py-1 px-3 cursor-pointer border border-transparent transition rounded-[--radius]","data-[checked=true]:bg-white dark:data-[checked=true]:bg-gray-700 data-[checked=true]:border-[--border] data-[checked=true]:shadow-sm","text-gray-400 dark:text-gray-500 data-[checked=true]:text-[--text-color] dark:data-[checked=true]:text-[--text-color]"),radioControlClassName:"hidden",radioHelpClassName:"text-base",radioLabelClassName:"font-semibold flex-none",stackClassName:"flex flex-row gap-2 p-1 bg-gray-50 dark:bg-gray-800 rounded-[--radius] w-fit space-y-0 focus-within:ring-2 transition ring-[--ring]",...e,value:n.field.value,ref:t})}))),em=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{var a,n;let s=(0,d.Gc)(),{country:o,locale:i}=(0,l.k9)();return(0,r.jsx)(G,{currency:null!==(a=V[null==o?void 0:o.toUpperCase()])&&void 0!==a?a:void 0,locale:i,...e,defaultValue:null!==(n=(0,d.U2)(s.formState.defaultValues,e.name))&&void 0!==n?n:0,ref:t})}))),eg=i.memo(withControlledInput((0,i.forwardRef)((e,t)=>{let{allowedCountries:a,restrictToCurrentCountry:n=!1,...s}=e,o=(0,d.Gc)(),{country:i}=(0,l.k9)();return(0,r.jsx)(Z,{allowedCountries:n&&i?[i]:a,...s,defaultValue:(0,d.U2)(o.formState.defaultValues,s.name),ref:t})})));_Field.Text=Y,_Field.Textarea=$,_Field.Select=en,_Field.Switch=ei,_Field.Checkbox=ed,_Field.CheckboxGroup=eu,_Field.RadioGroup=ec,_Field.RadioCards=ef,_Field.SegmentedControl=eh,_Field.Price=em,_Field.Address=eg,_Field.Number=el,_Field.MultiSelect=es,_Field.DatePicker=et,_Field.DateRangePicker=ea,_Field.Combobox=eo,_Field.Time=er,_Field.ColorInput=ee,_Field.DirectorySelector=J,_Field.Submit=x;let ep=createPolymorphicComponent(_Field);ep.displayName="Field";let getFormError=(e,t)=>(0,d.U2)(t.errors,e);function assignRef(e,t){if(null!=e){if("function"==typeof e){e(t);return}try{e.current=t}catch(a){throw Error("Cannot assign value '".concat(t,"' to ref '").concat(e,"'"))}}}function mergeRefs(){for(var e=arguments.length,t=Array(e),a=0;a{t.forEach(t=>{assignRef(t,e)})}}function useMergeRefs(){for(var e=arguments.length,t=Array(e),a=0;amergeRefs(...t),t)}function callAllHandlers(){for(var e=arguments.length,t=Array(e),a=0;a(null==t||t(e),null==e?void 0:e.defaultPrevented))}}var ex=a(13821),eb=a.n(ex);let ev={name:u.z.string().min(2).trim(),select:u.z.string().nonempty(),checkboxGroup:u.z.array(u.z.string()),multiSelect:u.z.array(u.z.string()),radioGroup:u.z.string().nonempty(),dropzone:u.z.array(u.z.custom()).refine(e=>e.every(e=>e instanceof File),{message:"Expected a file"}),time:u.z.object({hour:u.z.number().min(0).max(23),minute:u.z.number().min(0).max(59)}),phone:u.z.string().min(10,"Invalid phone number"),price:u.z.number().min(0),switch:u.z.boolean(),checkbox:u.z.boolean(),files:u.z.array(u.z.custom()).refine(e=>e.every(e=>e instanceof File),{message:"Expected a file"}),dateRangePicker:u.z.object({start:u.z.date(),end:u.z.date()}).refine(e=>eb()(e.start)&&eb()(e.end),{message:"Incorrect dates"}),datePicker:u.z.date()},createTypesafeFormSchema=e=>e({z:u.z,presets:ev});a(33538),(0,l.xH)({container:(0,D.j)(["UI-DangerZone__container","p-4 flex flex-col sm:flex-row gap-2 text-center sm:text-left rounded-md border border-[--red]"]),icon:(0,D.j)(["UI-DangerZone__icon","place-self-center sm:place-self-start text-red-500 w-4 mt-2"]),title:(0,D.j)(["UI-DangerZone__title","text-lg text-[--red] font-semibold"]),dialogTitle:(0,D.j)(["UI-DangerZone__dialogTitle","text-lg font-medium leading-6"]),dialogBody:(0,D.j)(["UI-DangerZone__dialogBody","mt-2 text-sm text-[--muted]"]),dialogAction:(0,D.j)(["UI-DangerZone__dialogAction","mt-4 flex gap-2"])})}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/430-e8d734703782ef64.js b/web/_next/static/chunks/430-e8d734703782ef64.js new file mode 100644 index 00000000..f57703ac --- /dev/null +++ b/web/_next/static/chunks/430-e8d734703782ef64.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[430],{751:function(e,t,r){r.d(t,{X:function(){return o}});var n=r(57685);let o=(0,n.sn)(void 0)},37376:function(e,t,r){r.d(t,{C:function(){return d}});var n=r(57437),o=r(54487),i=r(96061),a=r(2265);let l=(0,o.xH)({badge:(0,i.j)(["UI-Badge__badge","inline-flex flex-none text-base w-fit overflow-hidden justify-center items-center gap-2"],{variants:{intent:{gray:"text-gray-800 bg-gray-100 border border-gray-500 border-opacity-40 __UI_DARK__ dark:text-gray-300 dark:bg-opacity-10",primary:"text-brand-500 bg-brand-50 border border-brand-500 border-opacity-40 __UI_DARK__ dark:text-brand-300 dark:bg-opacity-10",success:"text-green-500 bg-green-50 border border-green-500 border-opacity-40 __UI_DARK__ dark:text-green-300 dark:bg-opacity-10",warning:"text-orange-500 bg-orange-50 border border-orange-500 border-opacity-40 __UI_DARK__ dark:text-orange-300 dark:bg-opacity-10",alert:"text-red-500 bg-red-50 border border-red-500 border-opacity-40 __UI_DARK__ dark:text-red-300 dark:bg-opacity-10",blue:"text-blue-500 bg-blue-50 border border-blue-500 border-opacity-40 __UI_DARK__ dark:text-blue-300 dark:bg-opacity-10",white:"text-white bg-gray-800 border border-gray-500 border-opacity-40 __UI_DARK__ dark:text-white dark:bg-opacity-10",basic:"text-gray-900 bg-transparent","primary-solid":"text-white bg-brand-500","success-solid":"text-white bg-green-500","warning-solid":"text-white bg-orange-500","alert-solid":"text-white bg-red-500","blue-solid":"text-white bg-blue-500","gray-solid":"text-white bg-gray-500","white-solid":"text-gray-900 bg-white"},size:{sm:"h-[1.2rem] px-2 text-xs",md:"h-6 px-2 text-xs",lg:"h-7 px-3 text-md",xl:"h-8 px-4 text-lg"},tag:{false:"font-semibold tracking-wide rounded-full",true:"font-semibold rounded-[--radius]"}},defaultVariants:{intent:"gray",size:"md",tag:!1},compoundVariants:[{tag:!0,className:"border-none"}]}),closeButton:(0,i.j)(["UI-Badge__close-button","text-lg -mr-1 cursor-pointer transition ease-in hover:opacity-60"]),icon:(0,i.j)(["UI-Badge__icon","inline-flex self-center flex-shrink-0"])}),d=a.forwardRef((e,t)=>{let{children:r,className:i,size:a,intent:d,tag:s=!1,isClosable:c,onClose:u,leftIcon:m,rightIcon:g,iconSpacing:p="0",badgeClassName:b,closeButtonClassName:f,iconClassName:h,...x}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:(0,o.cn)(l.badge({size:a,intent:d,tag:s}),b,i),...x,ref:t,children:[m&&(0,n.jsx)("span",{className:(0,o.cn)(l.icon(),h),style:{marginRight:p},children:m}),r,g&&(0,n.jsx)("span",{className:(0,o.cn)(l.icon(),h),style:{marginLeft:p},children:g}),c&&(0,n.jsx)("span",{className:(0,o.cn)(l.closeButton(),f),onClick:u,children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",children:(0,n.jsx)("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})})})]})})});d.displayName="Badge"},34813:function(e,t,r){r.d(t,{iz:function(){return d}});var n=r(57437),o=r(2265),i=r(54487),a=r(96061);let l=(0,i.xH)({divider:(0,a.j)(["UI-Divider__divider","w-full border-gray-200 dark:border-gray-700"])}),d=o.forwardRef((e,t)=>{let{children:r,dividerClassName:o,className:a,...d}=e;return(0,n.jsx)("hr",{className:(0,i.cn)(l.divider(),o,a),...d,ref:t})});d.displayName="Divider";let s=(0,i.xH)({root:(0,a.j)(["UI-DividerWithLabel__root","relative"]),dividerContainer:(0,a.j)(["DividerWithLabel__dividerContainer","absolute inset-0 flex items-center"]),divider:(0,a.j)(["DividerWithLabel__divider","w-full border-t border-gray-300 border-[--border]"]),labelContainer:(0,a.j)(["DividerWithLabel__labelContainer","relative flex justify-center"]),label:(0,a.j)(["DividerWithLabel__label","bg-[--background-color] px-2 text-sm text-[--muted]"])}),c=o.forwardRef((e,t)=>{let{children:r,rootClassName:o,dividerClassName:a,dividerContainerClassName:l,labelClassName:d,labelContainerClassName:c,className:u,...m}=e;return(0,n.jsxs)("div",{className:(0,i.cn)(s.root(),o,u),...m,ref:t,children:[(0,n.jsx)("div",{className:(0,i.cn)(s.dividerContainer(),l),"aria-hidden":"true",children:(0,n.jsx)("div",{className:(0,i.cn)(s.divider(),a)})}),(0,n.jsx)("div",{className:(0,i.cn)(s.labelContainer(),c),children:(0,n.jsx)("span",{className:(0,i.cn)(s.label(),d),children:r})})]})});c.displayName="DividerWithLabel"},53677:function(e,t,r){r.d(t,{h_:function(){return v},Xi:function(){return f}});var n=r(57437),o=r(2265),i=r(54487),a=r(96061),l=r(12223),d=r(9805),s=r(34813),c=r(33538);function useDropdownOutOfBounds(){let[e,t]=(0,o.useState)(null),[r,n]=(0,o.useState)({width:0,height:0}),[a,l]=o.useState({top:0,bottom:0,left:0,right:0}),d=(0,o.useCallback)(()=>{let t=Math.min(document.documentElement.clientWidth,window.innerWidth),r=Math.min(document.documentElement.clientHeight,window.innerHeight),o=null==e?void 0:e.getBoundingClientRect();if(o&&(null==e?void 0:e.offsetHeight)&&e.offsetWidth&&(null==e?void 0:e.offsetWidth)>0&&(null==e?void 0:e.offsetHeight)>0){let e={top:0,bottom:0,left:0,right:0};o.top<0&&(e.top=Math.abs(0-o.top)),o.bottom>r&&(e.bottom=Math.abs(r-o.bottom)),o.left<0&&(e.left=Math.abs(0-o.left)),o.right>t&&(e.right=Math.abs(t-o.right)),(e.top>0||e.left>0||e.bottom>0||e.right>0)&&l(e)}n({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[e]);return(0,i.OR)("resize",d),(0,i.LI)(()=>{d()},[e]),[t,a,r]}var u=r(61396),m=r.n(u);let g=(0,i.xH)({menu:(0,a.j)(["UI-DropdownMenu__menu","relative inline-block text-left"]),dropdown:(0,a.j)(["UI-DropdownMenu__dropdown","bg-[--paper] border border-[--border] p-1","absolute z-[100] mt-2 w-56 rounded-[--radius] shadow-md focus:outline-none space-y-1"],{variants:{top:{true:"",right:""},bottom:{true:"",right:""},left:{true:"",right:""},right:{true:"",right:""}},compoundVariants:[{bottom:!1,className:"origin-top-right right-0"},{bottom:!0,className:"origin-bottom-right"},{left:!0,className:"left-0"},{bottom:!0,left:!0,right:!1,className:"origin-bottom-right left-0 bottom-0"},{right:!0,bottom:!0,left:!1,className:"origin-bottom-right right-0 bottom-0"}]}),mobileDropdown:(0,a.j)(["DropdownMenu__mobileDropdown","mt-2 space-y-1"]),mobilePanel:(0,a.j)(["DropdownMenu__mobilePanel","pt-2 pb-2 pl-4 pr-12"])}),p=(0,i.xH)({item:(0,a.j)(["UI-DropdownMenu__item transition","text-gray-800 dark:text-gray-200 hover:text-black dark:hover:text-white","font-medium group flex w-full items-center rounded-[--radius] px-2 py-2 text-sm gap-2"],{variants:{active:{true:"bg-[--highlight]",false:null}},defaultVariants:{active:!1}})}),b=(0,i.xH)({group:(0,a.j)(["UI-DropdownMenu__group group","text-gray-800 dark:text-gray-200"]),title:(0,a.j)(["UI-DropdownMenu_title text-[--muted] text-sm font-medium px-2 py-1"]),content:(0,a.j)(["UI-DropdownMenu_content"])}),_DropdownMenu=e=>{let{children:t,trigger:r,menuClassName:a,dropdownClassName:s,mobileDropdownClassName:u,mobilePanelClassName:m,itemClassName:p,className:b,mobilePlacement:f="bottom",...h}=e,x=(0,i.ac)("(max-width: 768px)"),[w,v,_]=useDropdownOutOfBounds(),[y,j]=useDropdownOutOfBounds(),D=o.useMemo(()=>o.Children.map(t,e=>o.isValidElement(e)&&("DropdownMenuItem"===(0,i.C2)(e)||"DropdownMenuGroup"===(0,i.C2)(e)||"DropdownMenuLink"===(0,i.C2)(e))?o.cloneElement(e,{itemClassName:p}):e),[t]),C=o.cloneElement(r,{ref:w});return(0,n.jsx)(l.v,{as:"div",className:(0,i.cn)(g.menu(),a,b),...h,children:e=>{let{open:t,close:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.v.Button,{as:o.Fragment,children:C}),!x&&(0,n.jsx)(d.u,{as:o.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,n.jsx)(l.v.Items,{ref:y,className:(0,i.cn)(g.dropdown({top:j.top>0,bottom:j.bottom>0,left:j.left>0,right:j.right>0}),s),style:{bottom:j.bottom>0?"".concat(_.height+8,"px"):void 0},children:D})}),x&&(0,n.jsx)(c.u_,{isOpen:t,onClose:r,isClosable:!0,className:"block md:hidden",panelClassName:(0,i.cn)(g.mobilePanel(),m),mobilePlacement:f,children:(0,n.jsx)(l.v.Items,{className:(0,i.cn)(g.mobileDropdown(),u),children:D})})]})}})};_DropdownMenu.displayName="DropdownMenu";let f=o.forwardRef((e,t)=>{let{children:r,itemClassName:a,className:d,...s}=e;return(0,n.jsx)(l.v.Item,{as:o.Fragment,children:e=>{let{active:o}=e;return(0,n.jsx)("button",{className:(0,i.cn)(p.item({active:o}),a,d),ref:t,...s,children:r})}})});f.displayName="DropdownMenuItem";let h=o.forwardRef((e,t)=>{let{children:r,className:a,itemClassName:d,href:s,...c}=e;return(0,n.jsx)(l.v.Item,{as:o.Fragment,children:e=>{let{active:o}=e;return(0,n.jsx)(m(),{href:s,className:(0,i.cn)(p.item({active:o}),d,a),ref:t,...c,children:r})}})});h.displayName="DropdownMenuLink";let x=o.forwardRef((e,t)=>{let{children:r,className:a,groupClassName:l,title:d,titleClassName:s,contentClassName:c,itemClassName:u,...m}=e,g=o.useMemo(()=>o.Children.map(r,e=>o.isValidElement(e)&&("DropdownMenuItem"===(0,i.C2)(e)||"DropdownMenuGroup"===(0,i.C2)(e)||"DropdownMenuLink"===(0,i.C2)(e))?o.cloneElement(e,{itemClassName:u}):e),[r]);return(0,n.jsxs)("div",{className:(0,i.cn)(b.group(),l,a),"aria-label":d,ref:t,...m,children:[d&&(0,n.jsx)("div",{className:(0,i.cn)(b.title(),s),"aria-labelledby":d,children:d}),(0,n.jsx)("div",{className:(0,i.cn)(b.content(),c),children:g})]})});x.displayName="DropdownMenuGroup";let w=o.forwardRef((e,t)=>(0,n.jsx)(s.iz,{...e,ref:t}));w.displayName="DropdownMenuDivider",_DropdownMenu.Item=f,_DropdownMenu.Link=h,_DropdownMenu.Group=x,_DropdownMenu.Divider=w;let v=(0,i.Fm)(_DropdownMenu);v.displayName="DropdownMenu"},11305:function(e,t,r){r.d(t,{fz:function(){return LoadingOverlay},TK:function(){return d},$j:function(){return s}});var n=r(57437),o=r(54487),i=r(96061),a=r(2265);let l=(0,o.xH)({container:(0,i.j)(["UI-LoadingSpinner__container","flex w-full items-center h-24 justify-center"]),icon:(0,i.j)(["UI-LoadingSpinner__icon","inline w-10 h-10 mr-2 animate-spin","text-gray-200 dark:text-gray-600 fill-brand-500"])}),d=a.forwardRef((e,t)=>{let{children:r,className:i,containerClassName:a,iconClassName:d,...c}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:(0,o.cn)(l.container(),a),...c,ref:t,children:(0,n.jsx)(s,{className:d})})})});d.displayName="LoadingSpinner";let s=a.forwardRef((e,t)=>{let{children:r,className:i,...a}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("svg",{"aria-hidden":"true",className:(0,o.cn)(l.icon(),i),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...a,children:[(0,n.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})}),c=(0,o.xH)({overlay:(0,i.j)(["UI-LoadingOverlay__overlay","absolute bg-white dark:bg-[rgba(0,0,0,0.3)] bg-opacity-70 w-full h-full z-10 inset-0 pt-4 flex flex-col items-center justify-center backdrop-blur-sm"])}),LoadingOverlay=e=>{let{children:t,show:r=!0,className:i,hideSpinner:a=!1,...l}=e;return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:(0,o.cn)(c.overlay(),i),...l,children:[!a&&(0,n.jsx)(d,{className:"justify-auto"}),t]})}):null};LoadingOverlay.displayName="LoadingOverlay"},37122:function(e,t,r){r.d(t,{k:function(){return useBoolean},q:function(){return useDisclosure}});var n=r(2265);function useDisclosure(e,t){let[r,o]=(0,n.useState)(e),open=()=>{if(!r){var e;o(!0),null==t||null===(e=t.onOpen)||void 0===e||e.call(t)}},close=()=>{if(r){var e;o(!1),null==t||null===(e=t.onClose)||void 0===e||e.call(t)}};return{isOpen:r,open,close,toggle:()=>{r?close():open()}}}function useBoolean(e,t){let[r,o]=(0,n.useState)(e),open=()=>{if(!r){var e;o(!0),null==t||null===(e=t.onOpen)||void 0===e||e.call(t)}},close=()=>{if(r){var e;o(!1),null==t||null===(e=t.onClose)||void 0===e||e.call(t)}};return{active:r,on:open,off:close,toggle:()=>{r?close():open()}}}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/472-1b2e455655a25727.js b/web/_next/static/chunks/472-1b2e455655a25727.js new file mode 100644 index 00000000..a4dcc5f1 --- /dev/null +++ b/web/_next/static/chunks/472-1b2e455655a25727.js @@ -0,0 +1,25 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[472],{85844:function(t,r){"use strict";function getDeploymentIdQueryOrEmptyString(){return""}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return getDeploymentIdQueryOrEmptyString}})},2335:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var t=/\((.*)\)/.exec(this.toString());return t?t[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(t,r){return r=this.concat.apply([],this),t>1&&r.some(Array.isArray)?r.flat(t-1):r},Array.prototype.flatMap=function(t,r){return this.map(t,r).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(t){if("function"!=typeof t)return this.then(t,t);var r=this.constructor||Promise;return this.then(function(n){return r.resolve(t()).then(function(){return n})},function(n){return r.resolve(t()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(t){return Array.from(t).reduce(function(t,r){return t[r[0]]=r[1],t},{})}),Array.prototype.at||(Array.prototype.at=function(t){var r=Math.trunc(t)||0;if(r<0&&(r+=this.length),!(r<0||r>=this.length))return this[r]})},89872:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"addBasePath",{enumerable:!0,get:function(){return addBasePath}});let o=n(8356),a=n(43997);function addBasePath(t,r){return(0,a.normalizePathTrailingSlash)((0,o.addPathPrefix)(t,""))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},25354:function(t,r){"use strict";function loadScriptsInSequence(t,r){return t&&t.length?t.reduce((t,r)=>{let[n,o]=r;return t.then(()=>new Promise((t,r)=>{let a=document.createElement("script");if(o)for(let t in o)"children"!==t&&a.setAttribute(t,o[t]);n?(a.src=n,a.onload=()=>t(),a.onerror=r):o&&(a.innerHTML=o.children,setTimeout(t)),document.head.appendChild(a)}))},Promise.resolve()).catch(t=>{console.error(t)}).then(()=>{r()}):r()}function appBootstrap(t){loadScriptsInSequence(self.__next_s,()=>{t()})}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"appBootstrap",{enumerable:!0,get:function(){return appBootstrap}}),window.next={version:"14.0.1",appDir:!0},("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15231:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"callServer",{enumerable:!0,get:function(){return callServer}});let o=n(33728);async function callServer(t,r){let n=(0,o.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((o,a)=>{n({actionId:t,actionArgs:r,resolve:o,reject:a})})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},20811:function(t,r,n){"use strict";let o,a;Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hydrate",{enumerable:!0,get:function(){return hydrate}});let u=n(21024),i=n(68533);n(2335);let s=u._(n(34040)),d=i._(n(2265)),p=n(6671),_=n(61852);n(76313);let m=u._(n(2504)),b=n(15231),j=n(74119),C=window.console.error;window.console.error=function(){for(var t=arguments.length,r=Array(t),n=0;n{if((0,j.isNextRouterError)(t.error)){t.preventDefault();return}});let w=document,getCacheKey=()=>{let{pathname:t,search:r}=location;return t+r},D=new TextEncoder,U=!1,B=!1,$=null;function nextServerDataCallback(t){if(0===t[0])o=[];else if(1===t[0]){if(!o)throw Error("Unexpected server data: missing bootstrap script.");a?a.enqueue(D.encode(t[1])):o.push(t[1])}else 2===t[0]&&($=t[1])}function nextServerDataRegisterWriter(t){o&&(o.forEach(r=>{t.enqueue(D.encode(r))}),U&&!B&&(t.close(),B=!0,o=void 0)),a=t}let DOMContentLoaded=function(){a&&!B&&(a.close(),B=!0,o=void 0),U=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",DOMContentLoaded,!1):DOMContentLoaded();let K=self.__next_f=self.__next_f||[];function createResponseCache(){return new Map}K.forEach(nextServerDataCallback),K.push=nextServerDataCallback;let q=createResponseCache();function useInitialServerResponse(t){let r=q.get(t);if(r)return r;let n=new ReadableStream({start(t){nextServerDataRegisterWriter(t)}}),o=(0,p.createFromReadableStream)(n,{callServer:b.callServer});return q.set(t,o),o}function ServerRoot(t){let{cacheKey:r}=t;d.default.useEffect(()=>{q.delete(r)});let n=useInitialServerResponse(r),o=(0,d.use)(n);return o}let ee=d.default.StrictMode;function Root(t){let{children:r}=t;return r}function RSCComponent(t){return d.default.createElement(ServerRoot,{...t,cacheKey:getCacheKey()})}function hydrate(){let t=d.default.createElement(ee,null,d.default.createElement(_.HeadManagerContext.Provider,{value:{appDir:!0}},d.default.createElement(Root,null,d.default.createElement(RSCComponent,null)))),r={onRecoverableError:m.default},n="__next_error__"===document.documentElement.id;n?s.default.createRoot(w,r).render(t):d.default.startTransition(()=>s.default.hydrateRoot(w,t,{...r,formState:$}))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},62019:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});let o=n(25354);(0,o.appBootstrap)(()=>{n(51055);let{hydrate:t}=n(20811);n(33728),n(56954),t()}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},51055:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),n(85844);{let t=n.u;n.u=function(){for(var r=arguments.length,n=Array(r),o=0;o{let t=getAnnouncerNode();return i(t),()=>{let t=document.getElementsByTagName(u)[0];(null==t?void 0:t.isConnected)&&document.body.removeChild(t)}},[]);let[s,d]=(0,o.useState)(""),p=(0,o.useRef)();return(0,o.useEffect)(()=>{let t="";if(document.title)t=document.title;else{let r=document.querySelector("h1");r&&(t=r.innerText||r.textContent||"")}void 0!==p.current&&p.current!==t&&d(t),p.current=t},[r]),n?(0,a.createPortal)(s,n):null}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28343:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{RSC:function(){return n},ACTION:function(){return o},NEXT_ROUTER_STATE_TREE:function(){return a},NEXT_ROUTER_PREFETCH:function(){return u},NEXT_URL:function(){return i},RSC_CONTENT_TYPE_HEADER:function(){return s},RSC_VARY_HEADER:function(){return d},FLIGHT_PARAMETERS:function(){return p},NEXT_RSC_UNION_QUERY:function(){return _}});let n="RSC",o="Next-Action",a="Next-Router-State-Tree",u="Next-Router-Prefetch",i="Next-Url",s="text/x-component",d=n+", "+a+", "+u+", "+i,p=[[n],[a],[u]],_="_rsc";("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},33728:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{getServerActionDispatcher:function(){return getServerActionDispatcher},urlToUrlWithoutFlightMarker:function(){return urlToUrlWithoutFlightMarker},default:function(){return AppRouter}});let o=n(68533),a=o._(n(2265)),u=n(76313),i=n(67205),s=n(49706),d=n(22301),p=n(67407),_=n(32327),m=n(29928),b=n(55311),j=n(52169),C=n(89872),w=n(28325),D=n(5138),U=n(6700),B=n(93085),$=n(28343),K=n(23714),q=n(26746),ee=new Map,et=null;function getServerActionDispatcher(){return et}let er={refresh:()=>{}};function urlToUrlWithoutFlightMarker(t){let r=new URL(t,location.origin);if(r.searchParams.delete($.NEXT_RSC_UNION_QUERY),r.pathname.endsWith(".txt")){let{pathname:t}=r,n=t.endsWith("/index.txt")?10:4;r.pathname=t.slice(0,-n)}return r}function isExternalURL(t){return t.origin!==window.location.origin}function HistoryUpdater(t){let{tree:r,pushRef:n,canonicalUrl:o,sync:u}=t;return(0,a.useInsertionEffect)(()=>{let t={__NA:!0,tree:r};n.pendingPush&&(0,d.createHrefFromUrl)(new URL(window.location.href))!==o?(n.pendingPush=!1,window.history.pushState(t,"",o)):window.history.replaceState(t,"",o),u()},[r,n,o,u]),null}let createEmptyCacheNode=()=>({status:u.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map});function useServerActionDispatcher(t){let r=(0,a.useCallback)(r=>{(0,a.startTransition)(()=>{t({...r,type:s.ACTION_SERVER_ACTION,mutable:{globalMutable:er},cache:createEmptyCacheNode()})})},[t]);et=r}function useChangeByServerResponse(t){return(0,a.useCallback)((r,n,o)=>{(0,a.startTransition)(()=>{t({type:s.ACTION_SERVER_PATCH,flightData:n,previousTree:r,overrideCanonicalUrl:o,cache:createEmptyCacheNode(),mutable:{globalMutable:er}})})},[t])}function useNavigate(t){return(0,a.useCallback)((r,n,o,a)=>{let u=new URL((0,C.addBasePath)(r),location.href);return er.pendingNavigatePath=(0,d.createHrefFromUrl)(u),t({type:s.ACTION_NAVIGATE,url:u,isExternalUrl:isExternalURL(u),locationSearch:location.search,forceOptimisticNavigation:o,shouldScroll:null==a||a,navigateType:n,cache:createEmptyCacheNode(),mutable:{globalMutable:er}})},[t])}function Router(t){let{buildId:r,initialHead:n,initialTree:o,initialCanonicalUrl:d,children:m,assetPrefix:$}=t,et=(0,a.useMemo)(()=>(0,b.createInitialRouterState)({buildId:r,children:m,initialCanonicalUrl:d,initialTree:o,initialParallelRoutes:ee,isServer:!1,location:window.location,initialHead:n}),[r,m,d,o,n]),[{tree:en,cache:eo,prefetchCache:eu,pushRef:el,focusAndScrollRef:ei,canonicalUrl:ec,nextUrl:es},ef,ed]=(0,_.useReducerWithReduxDevtools)(i.reducer,et);(0,a.useEffect)(()=>{ee=null},[]);let{searchParams:ep,pathname:eh}=(0,a.useMemo)(()=>{let t=new URL(ec,window.location.href);return{searchParams:t.searchParams,pathname:(0,q.hasBasePath)(t.pathname)?(0,K.removeBasePath)(t.pathname):t.pathname}},[ec]),e_=useChangeByServerResponse(ef),ey=useNavigate(ef);useServerActionDispatcher(ef);let em=(0,a.useMemo)(()=>{let t={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(t,r)=>{if((0,j.isBot)(window.navigator.userAgent))return;let n=new URL((0,C.addBasePath)(t),location.href);isExternalURL(n)||(0,a.startTransition)(()=>{var t;ef({type:s.ACTION_PREFETCH,url:n,kind:null!=(t=null==r?void 0:r.kind)?t:s.PrefetchKind.FULL})})},replace:(t,r)=>{void 0===r&&(r={}),(0,a.startTransition)(()=>{var n;ey(t,"replace",!!r.forceOptimisticNavigation,null==(n=r.scroll)||n)})},push:(t,r)=>{void 0===r&&(r={}),(0,a.startTransition)(()=>{var n;ey(t,"push",!!r.forceOptimisticNavigation,null==(n=r.scroll)||n)})},refresh:()=>{(0,a.startTransition)(()=>{ef({type:s.ACTION_REFRESH,cache:createEmptyCacheNode(),mutable:{globalMutable:er},origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}};return t},[ef,ey]);if((0,a.useEffect)(()=>{window.next&&(window.next.router=em)},[em]),(0,a.useEffect)(()=>{er.refresh=em.refresh},[em.refresh]),(0,a.useEffect)(()=>{function handlePageShow(t){var r;t.persisted&&(null==(r=window.history.state)?void 0:r.tree)&&ef({type:s.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.tree})}return window.addEventListener("pageshow",handlePageShow),()=>{window.removeEventListener("pageshow",handlePageShow)}},[ef]),el.mpaNavigation){if(er.pendingMpaPath!==ec){let t=window.location;el.pendingPush?t.assign(ec):t.replace(ec),er.pendingMpaPath=ec}(0,a.use)((0,B.createInfinitePromise)())}let eg=(0,a.useCallback)(t=>{let{state:r}=t;if(r){if(!r.__NA){window.location.reload();return}(0,a.startTransition)(()=>{ef({type:s.ACTION_RESTORE,url:new URL(window.location.href),tree:r.tree})})}},[ef]);(0,a.useEffect)(()=>(window.addEventListener("popstate",eg),()=>{window.removeEventListener("popstate",eg)}),[eg]);let eb=(0,a.useMemo)(()=>(0,U.findHeadInCache)(eo,en[1]),[eo,en]),ev=a.default.createElement(D.RedirectBoundary,null,eb,eo.subTreeData,a.default.createElement(w.AppRouterAnnouncer,{tree:en}));return a.default.createElement(a.default.Fragment,null,a.default.createElement(HistoryUpdater,{tree:en,pushRef:el,canonicalUrl:ec,sync:ed}),a.default.createElement(p.PathnameContext.Provider,{value:eh},a.default.createElement(p.SearchParamsContext.Provider,{value:ep},a.default.createElement(u.GlobalLayoutRouterContext.Provider,{value:{buildId:r,changeByServerResponse:e_,tree:en,focusAndScrollRef:ei,nextUrl:es}},a.default.createElement(u.AppRouterContext.Provider,{value:em},a.default.createElement(u.LayoutRouterContext.Provider,{value:{childNodes:eo.parallelRoutes,tree:en,url:ec}},ev))))))}function AppRouter(t){let{globalErrorComponent:r,...n}=t;return a.default.createElement(m.ErrorBoundary,{errorComponent:r},a.default.createElement(Router,n))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73940:function(t,r,n){"use strict";function clientHookInServerComponentError(t){}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),n(21024),n(2265),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},29928:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{ErrorBoundaryHandler:function(){return ErrorBoundaryHandler},GlobalError:function(){return GlobalError},default:function(){return s},ErrorBoundary:function(){return ErrorBoundary}});let o=n(21024),a=o._(n(2265)),u=n(50094),i={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function HandleISRError(t){let{error:r}=t;if("function"==typeof fetch.__nextGetStaticStore){var n;let t=null==(n=fetch.__nextGetStaticStore())?void 0:n.getStore();if((null==t?void 0:t.isRevalidate)||(null==t?void 0:t.isStaticGeneration))throw console.error(r),r}return null}let ErrorBoundaryHandler=class ErrorBoundaryHandler extends a.default.Component{static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return t.pathname!==r.previousPathname&&r.error?{error:null,previousPathname:t.pathname}:{error:r.error,previousPathname:t.pathname}}render(){return this.state.error?a.default.createElement(a.default.Fragment,null,a.default.createElement(HandleISRError,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,a.default.createElement(this.props.errorComponent,{error:this.state.error,reset:this.reset})):this.props.children}constructor(t){super(t),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}};function GlobalError(t){let{error:r}=t,n=null==r?void 0:r.digest;return a.default.createElement("html",{id:"__next_error__"},a.default.createElement("head",null),a.default.createElement("body",null,a.default.createElement(HandleISRError,{error:r}),a.default.createElement("div",{style:i.error},a.default.createElement("div",null,a.default.createElement("h2",{style:i.text},"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."),n?a.default.createElement("p",{style:i.text},"Digest: "+n):null))))}let s=GlobalError;function ErrorBoundary(t){let{errorComponent:r,errorStyles:n,errorScripts:o,children:i}=t,s=(0,u.usePathname)();return r?a.default.createElement(ErrorBoundaryHandler,{pathname:s,errorComponent:r,errorStyles:n,errorScripts:o},i):a.default.createElement(a.default.Fragment,null,i)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},61351:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{DYNAMIC_ERROR_CODE:function(){return n},DynamicServerError:function(){return DynamicServerError}});let n="DYNAMIC_SERVER_USAGE";let DynamicServerError=class DynamicServerError extends Error{constructor(t){super("Dynamic server usage: "+t),this.digest=n}};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},93085:function(t,r){"use strict";let n;function createInfinitePromise(){return n||(n=new Promise(()=>{})),n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInfinitePromise",{enumerable:!0,get:function(){return createInfinitePromise}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},74119:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isNextRouterError",{enumerable:!0,get:function(){return isNextRouterError}});let o=n(99273),a=n(8466);function isNextRouterError(t){return t&&t.digest&&((0,a.isRedirectError)(t)||(0,o.isNotFoundError)(t))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},56954:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return OuterLayoutRouter}});let o=n(21024),a=n(68533),u=a._(n(2265)),i=o._(n(54887)),s=n(76313),d=n(28146),p=n(93085),_=n(29928),m=n(68163),b=n(20280),j=n(5138),C=n(3170),w=n(11263),D=n(83322),U=n(3559);function walkAddRefetch(t,r){if(t){let[n,o]=t,a=2===t.length;if((0,m.matchSegment)(r[0],n)&&r[1].hasOwnProperty(o)){if(a){let t=walkAddRefetch(void 0,r[1][o]);return[r[0],{...r[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[o]:walkAddRefetch(t.slice(2),r[1][o])}]}}return r}function findDOMNode(t){return i.default.findDOMNode(t)}let B=["bottom","height","left","right","top","width","x","y"];function shouldSkipElement(t){if(["sticky","fixed"].includes(getComputedStyle(t).position))return!0;let r=t.getBoundingClientRect();return B.every(t=>0===r[t])}function topOfElementInViewport(t,r){let n=t.getBoundingClientRect();return n.top>=0&&n.top<=r}function getHashFragmentDomNode(t){var r;return"top"===t?document.body:null!=(r=document.getElementById(t))?r:document.getElementsByName(t)[0]}let InnerScrollAndFocusHandler=class InnerScrollAndFocusHandler extends u.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...t){super(...t),this.handlePotentialScroll=()=>{let{focusAndScrollRef:t,segmentPath:r}=this.props;if(t.apply){if(0!==t.segmentPaths.length&&!t.segmentPaths.some(t=>r.every((r,n)=>(0,m.matchSegment)(r,t[n]))))return;let n=null,o=t.hashFragment;if(o&&(n=getHashFragmentDomNode(o)),n||(n=findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||shouldSkipElement(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}t.apply=!1,t.hashFragment=null,t.segmentPaths=[],(0,b.handleSmoothScroll)(()=>{if(o){n.scrollIntoView();return}let t=document.documentElement,r=t.clientHeight;!topOfElementInViewport(n,r)&&(t.scrollTop=0,topOfElementInViewport(n,r)||n.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:t.onlyHashChange}),t.onlyHashChange=!1,n.focus()}}}};function ScrollAndFocusHandler(t){let{segmentPath:r,children:n}=t,o=(0,u.useContext)(s.GlobalLayoutRouterContext);if(!o)throw Error("invariant global layout router not mounted");return u.default.createElement(InnerScrollAndFocusHandler,{segmentPath:r,focusAndScrollRef:o.focusAndScrollRef},n)}function InnerLayoutRouter(t){let{parallelRouterKey:r,url:n,childNodes:o,childProp:a,segmentPath:i,tree:_,cacheKey:m}=t,b=(0,u.useContext)(s.GlobalLayoutRouterContext);if(!b)throw Error("invariant global layout router not mounted");let{buildId:j,changeByServerResponse:C,tree:w}=b,D=o.get(m);if(a&&null!==a.current&&(D?D.status===s.CacheStates.LAZY_INITIALIZED&&(D.status=s.CacheStates.READY,D.subTreeData=a.current):(D={status:s.CacheStates.READY,data:null,subTreeData:a.current,parallelRoutes:new Map},o.set(m,D))),!D||D.status===s.CacheStates.LAZY_INITIALIZED){let t=walkAddRefetch(["",...i],w);D={status:s.CacheStates.DATA_FETCH,data:(0,U.createRecordFromThenable)((0,d.fetchServerResponse)(new URL(n,location.origin),t,b.nextUrl,j)),subTreeData:null,head:D&&D.status===s.CacheStates.LAZY_INITIALIZED?D.head:void 0,parallelRoutes:D&&D.status===s.CacheStates.LAZY_INITIALIZED?D.parallelRoutes:new Map},o.set(m,D)}if(!D)throw Error("Child node should always exist");if(D.subTreeData&&D.data)throw Error("Child node should not have both subTreeData and data");if(D.data){let[t,r]=(0,u.use)(D.data);D.data=null,setTimeout(()=>{(0,u.startTransition)(()=>{C(w,t,r)})}),(0,u.use)((0,p.createInfinitePromise)())}D.subTreeData||(0,u.use)((0,p.createInfinitePromise)());let B=u.default.createElement(s.LayoutRouterContext.Provider,{value:{tree:_[1][r],childNodes:D.parallelRoutes,url:n}},D.subTreeData);return B}function LoadingBoundary(t){let{children:r,loading:n,loadingStyles:o,loadingScripts:a,hasLoading:i}=t;return i?u.default.createElement(u.Suspense,{fallback:u.default.createElement(u.default.Fragment,null,o,a,n)},r):u.default.createElement(u.default.Fragment,null,r)}function OuterLayoutRouter(t){let{parallelRouterKey:r,segmentPath:n,childProp:o,error:a,errorStyles:i,errorScripts:d,templateStyles:p,templateScripts:b,loading:U,loadingStyles:B,loadingScripts:$,hasLoading:K,template:q,notFound:ee,notFoundStyles:et,styles:er}=t,en=(0,u.useContext)(s.LayoutRouterContext);if(!en)throw Error("invariant expected layout router to be mounted");let{childNodes:eo,tree:eu,url:el}=en,ei=eo.get(r);ei||(ei=new Map,eo.set(r,ei));let ec=eu[1][r][0],es=o.segment,ef=(0,w.getSegmentValue)(ec),ed=[ec];return u.default.createElement(u.default.Fragment,null,er,ed.map(t=>{let er=(0,m.matchSegment)(t,es),en=(0,w.getSegmentValue)(t),eo=(0,D.createRouterCacheKey)(t);return u.default.createElement(s.TemplateContext.Provider,{key:(0,D.createRouterCacheKey)(t,!0),value:u.default.createElement(ScrollAndFocusHandler,{segmentPath:n},u.default.createElement(_.ErrorBoundary,{errorComponent:a,errorStyles:i,errorScripts:d},u.default.createElement(LoadingBoundary,{hasLoading:K,loading:U,loadingStyles:B,loadingScripts:$},u.default.createElement(C.NotFoundBoundary,{notFound:ee,notFoundStyles:et},u.default.createElement(j.RedirectBoundary,null,u.default.createElement(InnerLayoutRouter,{parallelRouterKey:r,url:el,tree:eu,childNodes:ei,childProp:er?o:null,segmentPath:n,cacheKey:eo,isActive:ef===en}))))))},p,b,q)}))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},68163:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{matchSegment:function(){return matchSegment},canSegmentBeOverridden:function(){return canSegmentBeOverridden}});let o=n(15682),matchSegment=(t,r)=>"string"==typeof t?"string"==typeof r&&t===r:"string"!=typeof r&&t[0]===r[0]&&t[1]===r[1],canSegmentBeOverridden=(t,r)=>{var n;return!Array.isArray(t)&&!!Array.isArray(r)&&(null==(n=(0,o.getSegmentParam)(t))?void 0:n.param)===r[0]};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},95437:function(t,r,n){"use strict";function maybePostpone(t,r){if(!t.isStaticGeneration||!t.experimental.ppr)return;let o=n(2265);"function"==typeof o.unstable_postpone&&o.unstable_postpone(r)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"maybePostpone",{enumerable:!0,get:function(){return maybePostpone}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},50094:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{ReadonlyURLSearchParams:function(){return ReadonlyURLSearchParams},useSearchParams:function(){return useSearchParams},usePathname:function(){return usePathname},ServerInsertedHTMLContext:function(){return d.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return d.useServerInsertedHTML},useRouter:function(){return useRouter},useParams:function(){return useParams},useSelectedLayoutSegments:function(){return useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return useSelectedLayoutSegment},redirect:function(){return p.redirect},permanentRedirect:function(){return p.permanentRedirect},RedirectType:function(){return p.RedirectType},notFound:function(){return _.notFound}});let o=n(2265),a=n(76313),u=n(67407),i=n(73940),s=n(11263),d=n(33972),p=n(8466),_=n(99273),m=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}let ReadonlyURLSearchParams=class ReadonlyURLSearchParams{[Symbol.iterator](){return this[m][Symbol.iterator]()}append(){throw readonlyURLSearchParamsError()}delete(){throw readonlyURLSearchParamsError()}set(){throw readonlyURLSearchParamsError()}sort(){throw readonlyURLSearchParamsError()}constructor(t){this[m]=t,this.entries=t.entries.bind(t),this.forEach=t.forEach.bind(t),this.get=t.get.bind(t),this.getAll=t.getAll.bind(t),this.has=t.has.bind(t),this.keys=t.keys.bind(t),this.values=t.values.bind(t),this.toString=t.toString.bind(t),this.size=t.size}};function useSearchParams(){(0,i.clientHookInServerComponentError)("useSearchParams");let t=(0,o.useContext)(u.SearchParamsContext),r=(0,o.useMemo)(()=>t?new ReadonlyURLSearchParams(t):null,[t]);return r}function usePathname(){return(0,i.clientHookInServerComponentError)("usePathname"),(0,o.useContext)(u.PathnameContext)}function useRouter(){(0,i.clientHookInServerComponentError)("useRouter");let t=(0,o.useContext)(a.AppRouterContext);if(null===t)throw Error("invariant expected app router to be mounted");return t}function getSelectedParams(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],o=Array.isArray(n),a=o?n[1]:n;if(!a||a.startsWith("__PAGE__"))continue;let u=o&&("c"===n[2]||"oc"===n[2]);u?r[n[0]]=n[1].split("/"):o&&(r[n[0]]=n[1]),r=getSelectedParams(t,r)}return r}function useParams(){(0,i.clientHookInServerComponentError)("useParams");let t=(0,o.useContext)(a.GlobalLayoutRouterContext),r=(0,o.useContext)(u.PathParamsContext);return(0,o.useMemo)(()=>(null==t?void 0:t.tree)?getSelectedParams(t.tree):r,[null==t?void 0:t.tree,r])}function getSelectedLayoutSegmentPath(t,r,n,o){let a;if(void 0===n&&(n=!0),void 0===o&&(o=[]),n)a=t[1][r];else{var u;let r=t[1];a=null!=(u=r.children)?u:Object.values(r)[0]}if(!a)return o;let i=a[0],d=(0,s.getSegmentValue)(i);return!d||d.startsWith("__PAGE__")?o:(o.push(d),getSelectedLayoutSegmentPath(a,r,!1,o))}function useSelectedLayoutSegments(t){void 0===t&&(t="children"),(0,i.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:r}=(0,o.useContext)(a.LayoutRouterContext);return getSelectedLayoutSegmentPath(r,t)}function useSelectedLayoutSegment(t){void 0===t&&(t="children"),(0,i.clientHookInServerComponentError)("useSelectedLayoutSegment");let r=useSelectedLayoutSegments(t);return 0===r.length?null:r[0]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3170:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"NotFoundBoundary",{enumerable:!0,get:function(){return NotFoundBoundary}});let o=n(21024),a=o._(n(2265)),u=n(50094);let NotFoundErrorBoundary=class NotFoundErrorBoundary extends a.default.Component{static getDerivedStateFromError(t){if((null==t?void 0:t.digest)==="NEXT_NOT_FOUND")return{notFoundTriggered:!0};throw t}static getDerivedStateFromProps(t,r){return t.pathname!==r.previousPathname&&r.notFoundTriggered?{notFoundTriggered:!1,previousPathname:t.pathname}:{notFoundTriggered:r.notFoundTriggered,previousPathname:t.pathname}}render(){return this.state.notFoundTriggered?a.default.createElement(a.default.Fragment,null,a.default.createElement("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound):this.props.children}constructor(t){super(t),this.state={notFoundTriggered:!!t.asNotFound,previousPathname:t.pathname}}};function NotFoundBoundary(t){let{notFound:r,notFoundStyles:n,asNotFound:o,children:i}=t,s=(0,u.usePathname)();return r?a.default.createElement(NotFoundErrorBoundary,{pathname:s,notFound:r,notFoundStyles:n,asNotFound:o},i):a.default.createElement(a.default.Fragment,null,i)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},99273:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{notFound:function(){return notFound},isNotFoundError:function(){return isNotFoundError}});let n="NEXT_NOT_FOUND";function notFound(){let t=Error(n);throw t.digest=n,t}function isNotFoundError(t){return(null==t?void 0:t.digest)===n}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},839:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PromiseQueue",{enumerable:!0,get:function(){return PromiseQueue}});let o=n(24677),a=n(6249);var u=a._("_maxConcurrency"),i=a._("_runningCount"),s=a._("_queue"),d=a._("_processNext");let PromiseQueue=class PromiseQueue{enqueue(t){let r,n;let a=new Promise((t,o)=>{r=t,n=o}),task=async()=>{try{o._(this,i)[i]++;let n=await t();r(n)}catch(t){n(t)}finally{o._(this,i)[i]--,o._(this,d)[d]()}};return o._(this,s)[s].push({promiseFn:a,task}),o._(this,d)[d](),a}bump(t){let r=o._(this,s)[s].findIndex(r=>r.promiseFn===t);if(r>-1){let t=o._(this,s)[s].splice(r,1)[0];o._(this,s)[s].unshift(t),o._(this,d)[d](!0)}}constructor(t=5){Object.defineProperty(this,d,{value:processNext}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,i,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),o._(this,u)[u]=t,o._(this,i)[i]=0,o._(this,s)[s]=[]}};function processNext(t){if(void 0===t&&(t=!1),(o._(this,i)[i]0){var r;null==(r=o._(this,s)[s].shift())||r.task()}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},5138:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{RedirectErrorBoundary:function(){return RedirectErrorBoundary},RedirectBoundary:function(){return RedirectBoundary}});let o=n(68533),a=o._(n(2265)),u=n(50094),i=n(8466);function HandleRedirect(t){let{redirect:r,reset:n,redirectType:o}=t,s=(0,u.useRouter)();return(0,a.useEffect)(()=>{a.default.startTransition(()=>{o===i.RedirectType.push?s.push(r,{}):s.replace(r,{}),n()})},[r,o,n,s]),null}let RedirectErrorBoundary=class RedirectErrorBoundary extends a.default.Component{static getDerivedStateFromError(t){if((0,i.isRedirectError)(t)){let r=(0,i.getURLFromRedirectError)(t),n=(0,i.getRedirectTypeFromError)(t);return{redirect:r,redirectType:n}}throw t}render(){let{redirect:t,redirectType:r}=this.state;return null!==t&&null!==r?a.default.createElement(HandleRedirect,{redirect:t,redirectType:r,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(t){super(t),this.state={redirect:null,redirectType:null}}};function RedirectBoundary(t){let{children:r}=t,n=(0,u.useRouter)();return a.default.createElement(RedirectErrorBoundary,{router:n},r)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},8466:function(t,r,n){"use strict";var o,a;Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{RedirectType:function(){return o},getRedirectError:function(){return getRedirectError},redirect:function(){return redirect},permanentRedirect:function(){return permanentRedirect},isRedirectError:function(){return isRedirectError},getURLFromRedirectError:function(){return getURLFromRedirectError},getRedirectTypeFromError:function(){return getRedirectTypeFromError}});let u=n(40228),i="NEXT_REDIRECT";function getRedirectError(t,r,n){void 0===n&&(n=!1);let o=Error(i);o.digest=i+";"+r+";"+t+";"+n;let a=u.requestAsyncStorage.getStore();return a&&(o.mutableCookies=a.mutableCookies),o}function redirect(t,r){throw void 0===r&&(r="replace"),getRedirectError(t,r,!1)}function permanentRedirect(t,r){throw void 0===r&&(r="replace"),getRedirectError(t,r,!0)}function isRedirectError(t){if("string"!=typeof(null==t?void 0:t.digest))return!1;let[r,n,o,a]=t.digest.split(";",4);return r===i&&("replace"===n||"push"===n)&&"string"==typeof o&&("true"===a||"false"===a)}function getURLFromRedirectError(t){return isRedirectError(t)?t.digest.split(";",3)[2]:null}function getRedirectTypeFromError(t){if(!isRedirectError(t))throw Error("Not a redirect error");return t.digest.split(";",2)[1]}(a=o||(o={})).push="push",a.replace="replace",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},7264:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return RenderFromTemplateContext}});let o=n(68533),a=o._(n(2265)),u=n(76313);function RenderFromTemplateContext(){let t=(0,a.useContext)(u.TemplateContext);return a.default.createElement(a.default.Fragment,null,t)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},40228:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"requestAsyncStorage",{enumerable:!0,get:function(){return a}});let o=n(27346),a=(0,o.createAsyncLocalStorage)();("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},42713:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"applyFlightData",{enumerable:!0,get:function(){return applyFlightData}});let o=n(76313),a=n(40782),u=n(71956);function applyFlightData(t,r,n,i){void 0===i&&(i=!1);let[s,d,p]=n.slice(-3);return null!==d&&(3===n.length?(r.status=o.CacheStates.READY,r.subTreeData=d,(0,a.fillLazyItemsTillLeafWithHead)(r,t,s,p,i)):(r.status=o.CacheStates.READY,r.subTreeData=t.subTreeData,r.parallelRoutes=new Map(t.parallelRoutes),(0,u.fillCacheWithNewSubTreeData)(r,t,n,i)),!0)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18934:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return applyRouterStatePatchToTree}});let o=n(68163);function applyPatch(t,r){let[n,a]=t,[u,i]=r;if("__DEFAULT__"===u&&"__DEFAULT__"!==n)return t;if((0,o.matchSegment)(n,u)){let r={};for(let t in a){let n=void 0!==i[t];n?r[t]=applyPatch(a[t],i[t]):r[t]=a[t]}for(let t in i)r[t]||(r[t]=i[t]);let o=[n,r];return t[2]&&(o[2]=t[2]),t[3]&&(o[3]=t[3]),t[4]&&(o[4]=t[4]),o}return r}function applyRouterStatePatchToTree(t,r,n){let a;let[u,i,,,s]=r;if(1===t.length){let t=applyPatch(r,n);return t}let[d,p]=t;if(!(0,o.matchSegment)(d,u))return null;let _=2===t.length;if(_)a=applyPatch(i[p],n);else if(null===(a=applyRouterStatePatchToTree(t.slice(2),i[p],n)))return null;let m=[t[0],{...i,[p]:a}];return s&&(m[4]=!0),m}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92082:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{extractPathFromFlightRouterState:function(){return extractPathFromFlightRouterState},computeChangedPath:function(){return computeChangedPath}});let o=n(84507),a=n(91706),u=n(68163),removeLeadingSlash=t=>"/"===t[0]?t.slice(1):t,segmentToPathname=t=>"string"==typeof t?t:t[1];function normalizeSegments(t){return t.reduce((t,r)=>""===(r=removeLeadingSlash(r))||(0,a.isGroupSegment)(r)?t:t+"/"+r,"")||"/"}function extractPathFromFlightRouterState(t){var r;let n=Array.isArray(t[0])?t[0][1]:t[0];if("__DEFAULT__"===n||o.INTERCEPTION_ROUTE_MARKERS.some(t=>n.startsWith(t)))return;if(n.startsWith("__PAGE__"))return"";let a=[n],u=null!=(r=t[1])?r:{},i=u.children?extractPathFromFlightRouterState(u.children):void 0;if(void 0!==i)a.push(i);else for(let[t,r]of Object.entries(u)){if("children"===t)continue;let n=extractPathFromFlightRouterState(r);void 0!==n&&a.push(n)}return normalizeSegments(a)}function computeChangedPathImpl(t,r){let[n,a]=t,[i,s]=r,d=segmentToPathname(n),p=segmentToPathname(i);if(o.INTERCEPTION_ROUTE_MARKERS.some(t=>d.startsWith(t)||p.startsWith(t)))return"";if(!(0,u.matchSegment)(n,i)){var _;return null!=(_=extractPathFromFlightRouterState(r))?_:""}for(let t in a)if(s[t]){let r=computeChangedPathImpl(a[t],s[t]);if(null!==r)return segmentToPathname(i)+"/"+r}return null}function computeChangedPath(t,r){let n=computeChangedPathImpl(t,r);return null==n||"/"===n?n:normalizeSegments(n.split("/"))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},22301:function(t,r){"use strict";function createHrefFromUrl(t,r){return void 0===r&&(r=!0),t.pathname+t.search+(r?t.hash:"")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createHrefFromUrl",{enumerable:!0,get:function(){return createHrefFromUrl}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},55311:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createInitialRouterState",{enumerable:!0,get:function(){return createInitialRouterState}});let o=n(76313),a=n(22301),u=n(40782),i=n(92082);function createInitialRouterState(t){var r;let{buildId:n,initialTree:s,children:d,initialCanonicalUrl:p,initialParallelRoutes:_,isServer:m,location:b,initialHead:j}=t,C={status:o.CacheStates.READY,data:null,subTreeData:d,parallelRoutes:m?new Map:_};return(null===_||0===_.size)&&(0,u.fillLazyItemsTillLeafWithHead)(C,void 0,s,j),{buildId:n,tree:s,cache:C,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b?(0,a.createHrefFromUrl)(b):p,nextUrl:null!=(r=(0,i.extractPathFromFlightRouterState)(s)||(null==b?void 0:b.pathname))?r:null}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},50180:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createOptimisticTree",{enumerable:!0,get:function(){return createOptimisticTree}});let o=n(68163);function createOptimisticTree(t,r,n){let a;let[u,i,s,d,p]=r||[null,{}],_=t[0],m=1===t.length,b=null!==u&&(0,o.matchSegment)(u,_),j=Object.keys(i).length>1,C=!r||!b||j,w={};if(null!==u&&b&&(w=i),!m&&!j){let r=createOptimisticTree(t.slice(1),w?w.children:null,n||C);a=r}let D=[_,{...w,...a?{children:a}:{}}];return s&&(D[2]=s),!n&&C?D[3]="refetch":b&&d&&(D[3]=d),b&&p&&(D[4]=p),D}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3559:function(t,r){"use strict";function createRecordFromThenable(t){return t.status="pending",t.then(r=>{"pending"===t.status&&(t.status="fulfilled",t.value=r)},r=>{"pending"===t.status&&(t.status="rejected",t.reason=r)}),t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRecordFromThenable",{enumerable:!0,get:function(){return createRecordFromThenable}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},83322:function(t,r){"use strict";function createRouterCacheKey(t,r){return void 0===r&&(r=!1),Array.isArray(t)?(t[0]+"|"+t[1]+"|"+t[2]).toLowerCase():r&&t.startsWith("__PAGE__")?"__PAGE__":t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createRouterCacheKey",{enumerable:!0,get:function(){return createRouterCacheKey}}),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28146:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fetchServerResponse",{enumerable:!0,get:function(){return fetchServerResponse}});let o=n(28343),a=n(33728),u=n(15231),i=n(49706),s=n(76360),d=n(31824),{createFromFetch:p}=n(6671);function doMpaNavigation(t){return[(0,a.urlToUrlWithoutFlightMarker)(t).toString(),void 0]}async function fetchServerResponse(t,r,n,_,m){let b={[o.RSC]:"1",[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(r))};m===i.PrefetchKind.AUTO&&(b[o.NEXT_ROUTER_PREFETCH]="1"),n&&(b[o.NEXT_URL]=n);let j=(0,s.hexHash)([b[o.NEXT_ROUTER_PREFETCH]||"0",b[o.NEXT_ROUTER_STATE_TREE],b[o.NEXT_URL]].join(","));try{let r=new URL(t);r.pathname.endsWith("/")?r.pathname+="index.txt":r.pathname+=".txt",r.searchParams.set(o.NEXT_RSC_UNION_QUERY,j);let n=await fetch(r,{credentials:"same-origin",headers:b}),i=(0,a.urlToUrlWithoutFlightMarker)(n.url),s=n.redirected?i:void 0,m=n.headers.get("content-type")||"",C=!!n.headers.get(d.NEXT_DID_POSTPONE_HEADER),w=m===o.RSC_CONTENT_TYPE_HEADER;if(w||(w=m.startsWith("text/plain")),!w||!n.ok)return t.hash&&(i.hash=t.hash),doMpaNavigation(i.toString());let[D,U]=await p(Promise.resolve(n),{callServer:u.callServer});if(_!==D)return doMpaNavigation(n.url);return[U,s,C]}catch(r){return console.error("Failed to fetch RSC payload for "+t+". Falling back to browser navigation.",r),[t.toString(),void 0]}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},86443:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return fillCacheWithDataProperty}});let o=n(76313),a=n(83322);function fillCacheWithDataProperty(t,r,n,u,i){void 0===i&&(i=!1);let s=n.length<=2,[d,p]=n,_=(0,a.createRouterCacheKey)(p),m=r.parallelRoutes.get(d);if(!m||i&&r.parallelRoutes.size>1)return{bailOptimistic:!0};let b=t.parallelRoutes.get(d);b&&b!==m||(b=new Map(m),t.parallelRoutes.set(d,b));let j=m.get(_),C=b.get(_);if(s){C&&C.data&&C!==j||b.set(_,{status:o.CacheStates.DATA_FETCH,data:u(),subTreeData:null,parallelRoutes:new Map});return}if(!C||!j){C||b.set(_,{status:o.CacheStates.DATA_FETCH,data:u(),subTreeData:null,parallelRoutes:new Map});return}return C===j&&(C={status:C.status,data:C.data,subTreeData:C.subTreeData,parallelRoutes:new Map(C.parallelRoutes)},b.set(_,C)),fillCacheWithDataProperty(C,j,n.slice(2),u)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},71956:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return fillCacheWithNewSubTreeData}});let o=n(76313),a=n(15303),u=n(40782),i=n(83322);function fillCacheWithNewSubTreeData(t,r,n,s){let d=n.length<=5,[p,_]=n,m=(0,i.createRouterCacheKey)(_),b=r.parallelRoutes.get(p);if(!b)return;let j=t.parallelRoutes.get(p);j&&j!==b||(j=new Map(b),t.parallelRoutes.set(p,j));let C=b.get(m),w=j.get(m);if(d){w&&w.data&&w!==C||(w={status:o.CacheStates.READY,data:null,subTreeData:n[3],parallelRoutes:C?new Map(C.parallelRoutes):new Map},C&&(0,a.invalidateCacheByRouterState)(w,C,n[2]),(0,u.fillLazyItemsTillLeafWithHead)(w,C,n[2],n[4],s),j.set(m,w));return}w&&C&&(w===C&&(w={status:w.status,data:w.data,subTreeData:w.subTreeData,parallelRoutes:new Map(w.parallelRoutes)},j.set(m,w)),fillCacheWithNewSubTreeData(w,C,n.slice(2),s))}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},40782:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return fillLazyItemsTillLeafWithHead}});let o=n(76313),a=n(83322);function fillLazyItemsTillLeafWithHead(t,r,n,u,i){let s=0===Object.keys(n[1]).length;if(s){t.head=u;return}for(let s in n[1]){let d=n[1][s],p=d[0],_=(0,a.createRouterCacheKey)(p);if(r){let n=r.parallelRoutes.get(s);if(n){let r=new Map(n),a=r.get(_),p=i&&a?{status:a.status,data:a.data,subTreeData:a.subTreeData,parallelRoutes:new Map(a.parallelRoutes)}:{status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map(null==a?void 0:a.parallelRoutes)};r.set(_,p),fillLazyItemsTillLeafWithHead(p,a,d,u,i),t.parallelRoutes.set(s,r);continue}}let m={status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},b=t.parallelRoutes.get(s);b?b.set(_,m):t.parallelRoutes.set(s,new Map([[_,m]])),fillLazyItemsTillLeafWithHead(m,void 0,d,u,i)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},92800:function(t,r){"use strict";var n,o;function getPrefetchEntryCacheStatus(t){let{kind:r,prefetchTime:n,lastUsedTime:o}=t;return Date.now()<(null!=o?o:n)+3e4?o?"reusable":"fresh":"auto"===r&&Date.now()[...n,...t]);for(let n of s){let o=(0,p.fillCacheWithDataProperty)(t,r,n,u);(null==o?void 0:o.bailOptimistic)||(i=!0)}return i}function navigateReducer(t,r){let{url:n,isExternalUrl:K,navigateType:q,cache:ee,mutable:et,forceOptimisticNavigation:er,shouldScroll:en}=r,{pathname:eo,hash:eu}=n,el=(0,s.createHrefFromUrl)(n),ei="push"===q;(0,B.prunePrefetchCache)(t.prefetchCache);let ec=JSON.stringify(et.previousTree)===JSON.stringify(t.tree);if(ec)return(0,w.handleMutable)(t,et);if(K)return handleExternalUrl(t,et,n.toString(),ei);let es=t.prefetchCache.get((0,s.createHrefFromUrl)(n,!1));if(er&&(null==es?void 0:es.kind)!==C.PrefetchKind.TEMPORARY){let r=eo.split("/");r.push("__PAGE__");let i=(0,_.createOptimisticTree)(r,t.tree,!1),d={...ee};d.status=o.CacheStates.READY,d.subTreeData=t.cache.subTreeData,d.parallelRoutes=new Map(t.cache.parallelRoutes);let m=null,b=r.slice(1).map(t=>["children",t]).flat(),j=(0,p.fillCacheWithDataProperty)(d,t.cache,b,()=>(m||(m=(0,u.createRecordFromThenable)((0,a.fetchServerResponse)(n,i,t.nextUrl,t.buildId))),m),!0);if(!(null==j?void 0:j.bailOptimistic))return et.previousTree=t.tree,et.patchedTree=i,et.pendingPush=ei,et.hashFragment=eu,et.shouldScroll=en,et.scrollableSegments=[],et.cache=d,et.canonicalUrl=el,t.prefetchCache.set((0,s.createHrefFromUrl)(n,!1),{data:m?(0,u.createRecordFromThenable)(Promise.resolve(m)):null,kind:C.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:t.tree,lastUsedTime:Date.now()}),(0,w.handleMutable)(t,et)}if(!es){let r=(0,u.createRecordFromThenable)((0,a.fetchServerResponse)(n,t.tree,t.nextUrl,t.buildId,void 0)),o={data:(0,u.createRecordFromThenable)(Promise.resolve(r)),kind:C.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:t.tree,lastUsedTime:null};t.prefetchCache.set((0,s.createHrefFromUrl)(n,!1),o),es=o}let ef=(0,U.getPrefetchEntryCacheStatus)(es),{treeAtTimeOfPrefetch:ed,data:ep}=es;$.prefetchQueue.bump(ep);let[eh,e_,ey]=(0,i.readRecordValue)(ep);if(es.lastUsedTime||(es.lastUsedTime=Date.now()),"string"==typeof eh)return handleExternalUrl(t,et,eh,ei);let em=t.tree,eg=t.cache,eb=[];for(let r of eh){let i=r.slice(0,-4),s=r.slice(-3)[0],p=["",...i],_=(0,m.applyRouterStatePatchToTree)(p,em,s);if(null===_&&(_=(0,m.applyRouterStatePatchToTree)(p,ed,s)),null!==_){if((0,j.isNavigatingToNewRootLayout)(em,_))return handleExternalUrl(t,et,el,ei);let m=!ey&&(0,D.applyFlightData)(eg,ee,r,"auto"===es.kind&&ef===U.PrefetchCacheEntryStatus.reusable);m||ef!==U.PrefetchCacheEntryStatus.stale||(m=addRefetchToLeafSegments(ee,eg,i,s,()=>(0,u.createRecordFromThenable)((0,a.fetchServerResponse)(n,em,t.nextUrl,t.buildId))));let C=(0,b.shouldHardNavigate)(p,em);for(let t of(C?(ee.status=o.CacheStates.READY,ee.subTreeData=eg.subTreeData,(0,d.invalidateCacheBelowFlightSegmentPath)(ee,eg,i),et.cache=ee):m&&(et.cache=ee),eg=ee,em=_,generateSegmentsFromPatch(s))){let r=[...i,...t];"__DEFAULT__"!==r[r.length-1]&&eb.push(r)}}}return et.previousTree=t.tree,et.patchedTree=em,et.canonicalUrl=e_?(0,s.createHrefFromUrl)(e_):el,et.pendingPush=ei,et.scrollableSegments=eb,et.hashFragment=eu,et.shouldScroll=en,(0,w.handleMutable)(t,et)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},53709:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{prefetchQueue:function(){return _},prefetchReducer:function(){return prefetchReducer}});let o=n(22301),a=n(28146),u=n(49706),i=n(3559),s=n(53627),d=n(28343),p=n(839),_=new p.PromiseQueue(5);function prefetchReducer(t,r){(0,s.prunePrefetchCache)(t.prefetchCache);let{url:n}=r;n.searchParams.delete(d.NEXT_RSC_UNION_QUERY);let p=(0,o.createHrefFromUrl)(n,!1),m=t.prefetchCache.get(p);if(m&&(m.kind===u.PrefetchKind.TEMPORARY&&t.prefetchCache.set(p,{...m,kind:r.kind}),!(m.kind===u.PrefetchKind.AUTO&&r.kind===u.PrefetchKind.FULL)))return t;let b=(0,i.createRecordFromThenable)(_.enqueue(()=>(0,a.fetchServerResponse)(n,t.tree,t.nextUrl,t.buildId,r.kind)));return t.prefetchCache.set(p,{treeAtTimeOfPrefetch:t.tree,data:b,kind:r.kind,prefetchTime:Date.now(),lastUsedTime:null}),t}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},53627:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"prunePrefetchCache",{enumerable:!0,get:function(){return prunePrefetchCache}});let o=n(92800);function prunePrefetchCache(t){for(let[r,n]of t)(0,o.getPrefetchEntryCacheStatus)(n)===o.PrefetchCacheEntryStatus.expired&&t.delete(r)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},62701:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"refreshReducer",{enumerable:!0,get:function(){return refreshReducer}});let o=n(28146),a=n(3559),u=n(90929),i=n(22301),s=n(18934),d=n(82782),p=n(18640),_=n(88543),m=n(76313),b=n(40782);function refreshReducer(t,r){let{cache:n,mutable:j,origin:C}=r,w=t.canonicalUrl,D=t.tree,U=JSON.stringify(j.previousTree)===JSON.stringify(D);if(U)return(0,_.handleMutable)(t,j);n.data||(n.data=(0,a.createRecordFromThenable)((0,o.fetchServerResponse)(new URL(w,C),[D[0],D[1],D[2],"refetch"],t.nextUrl,t.buildId)));let[B,$]=(0,u.readRecordValue)(n.data);if("string"==typeof B)return(0,p.handleExternalUrl)(t,j,B,t.pushRef.pendingPush);for(let r of(n.data=null,B)){if(3!==r.length)return console.log("REFRESH FAILED"),t;let[o]=r,a=(0,s.applyRouterStatePatchToTree)([""],D,o);if(null===a)throw Error("SEGMENT MISMATCH");if((0,d.isNavigatingToNewRootLayout)(D,a))return(0,p.handleExternalUrl)(t,j,w,t.pushRef.pendingPush);let u=$?(0,i.createHrefFromUrl)($):void 0;$&&(j.canonicalUrl=u);let[_,C]=r.slice(-2);null!==_&&(n.status=m.CacheStates.READY,n.subTreeData=_,(0,b.fillLazyItemsTillLeafWithHead)(n,void 0,o,C),j.cache=n,j.prefetchCache=new Map),j.previousTree=D,j.patchedTree=a,j.canonicalUrl=w,D=a}return(0,_.handleMutable)(t,j)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},81705:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"restoreReducer",{enumerable:!0,get:function(){return restoreReducer}});let o=n(22301);function restoreReducer(t,r){let{url:n,tree:a}=r,u=(0,o.createHrefFromUrl)(n);return{buildId:t.buildId,canonicalUrl:u,pushRef:t.pushRef,focusAndScrollRef:t.focusAndScrollRef,cache:t.cache,prefetchCache:t.prefetchCache,tree:a,nextUrl:n.pathname}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},31383:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverActionReducer",{enumerable:!0,get:function(){return serverActionReducer}});let o=n(15231),a=n(28343),u=n(3559),i=n(90929),s=n(89872),d=n(22301),p=n(18640),_=n(18934),m=n(82782),b=n(76313),j=n(88543),C=n(40782),{createFromFetch:w,encodeReply:D}=n(6671);async function fetchServerAction(t,r){let n,{actionId:u,actionArgs:i}=r,d=await D(i),p=await fetch("",{method:"POST",headers:{Accept:a.RSC_CONTENT_TYPE_HEADER,[a.ACTION]:u,[a.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t.tree)),...t.nextUrl?{[a.NEXT_URL]:t.nextUrl}:{}},body:d}),_=p.headers.get("x-action-redirect");try{let t=JSON.parse(p.headers.get("x-action-revalidated")||"[[],0,0]");n={paths:t[0]||[],tag:!!t[1],cookie:t[2]}}catch(t){n={paths:[],tag:!1,cookie:!1}}let m=_?new URL((0,s.addBasePath)(_),new URL(t.canonicalUrl,window.location.href)):void 0;if(p.headers.get("content-type")===a.RSC_CONTENT_TYPE_HEADER){let t=await w(Promise.resolve(p),{callServer:o.callServer});if(_){let[,r]=null!=t?t:[];return{actionFlightData:r,redirectLocation:m,revalidatedParts:n}}let[r,[,a]]=null!=t?t:[];return{actionResult:r,actionFlightData:a,redirectLocation:m,revalidatedParts:n}}return{redirectLocation:m,revalidatedParts:n}}function serverActionReducer(t,r){let{mutable:n,cache:o,resolve:a,reject:s}=r,w=t.canonicalUrl,D=t.tree,U=JSON.stringify(n.previousTree)===JSON.stringify(D);if(U)return(0,j.handleMutable)(t,n);if(n.inFlightServerAction){if("fulfilled"!==n.inFlightServerAction.status&&n.globalMutable.pendingNavigatePath&&n.globalMutable.pendingNavigatePath!==w)return n.inFlightServerAction.then(()=>{n.actionResultResolved||(n.inFlightServerAction=null,n.globalMutable.pendingNavigatePath=void 0,n.globalMutable.refresh(),n.actionResultResolved=!0)},()=>{}),t}else n.inFlightServerAction=(0,u.createRecordFromThenable)(fetchServerAction(t,r));try{let{actionResult:r,actionFlightData:u,redirectLocation:s}=(0,i.readRecordValue)(n.inFlightServerAction);if(s&&(t.pushRef.pendingPush=!0,n.pendingPush=!0),n.previousTree=t.tree,!u){if(n.actionResultResolved||(a(r),n.actionResultResolved=!0),s)return(0,p.handleExternalUrl)(t,n,s.href,t.pushRef.pendingPush);return t}if("string"==typeof u)return(0,p.handleExternalUrl)(t,n,u,t.pushRef.pendingPush);for(let r of(n.inFlightServerAction=null,u)){if(3!==r.length)return console.log("SERVER ACTION APPLY FAILED"),t;let[a]=r,u=(0,_.applyRouterStatePatchToTree)([""],D,a);if(null===u)throw Error("SEGMENT MISMATCH");if((0,m.isNavigatingToNewRootLayout)(D,u))return(0,p.handleExternalUrl)(t,n,w,t.pushRef.pendingPush);let[i,s]=r.slice(-2);null!==i&&(o.status=b.CacheStates.READY,o.subTreeData=i,(0,C.fillLazyItemsTillLeafWithHead)(o,void 0,a,s),n.cache=o,n.prefetchCache=new Map),n.previousTree=D,n.patchedTree=u,n.canonicalUrl=w,D=u}if(s){let t=(0,d.createHrefFromUrl)(s,!1);n.canonicalUrl=t}return n.actionResultResolved||(a(r),n.actionResultResolved=!0),(0,j.handleMutable)(t,n)}catch(r){if("rejected"===r.status)return n.actionResultResolved||(s(r.reason),n.actionResultResolved=!0),t;throw r}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},75330:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"serverPatchReducer",{enumerable:!0,get:function(){return serverPatchReducer}});let o=n(22301),a=n(18934),u=n(82782),i=n(18640),s=n(42713),d=n(88543);function serverPatchReducer(t,r){let{flightData:n,previousTree:p,overrideCanonicalUrl:_,cache:m,mutable:b}=r,j=JSON.stringify(p)===JSON.stringify(t.tree);if(!j)return console.log("TREE MISMATCH"),t;if(b.previousTree)return(0,d.handleMutable)(t,b);if("string"==typeof n)return(0,i.handleExternalUrl)(t,b,n,t.pushRef.pendingPush);let C=t.tree,w=t.cache;for(let r of n){let n=r.slice(0,-4),[d]=r.slice(-3,-2),p=(0,a.applyRouterStatePatchToTree)(["",...n],C,d);if(null===p)throw Error("SEGMENT MISMATCH");if((0,u.isNavigatingToNewRootLayout)(C,p))return(0,i.handleExternalUrl)(t,b,t.canonicalUrl,t.pushRef.pendingPush);let j=_?(0,o.createHrefFromUrl)(_):void 0;j&&(b.canonicalUrl=j),(0,s.applyFlightData)(w,m,r),b.previousTree=C,b.patchedTree=p,b.cache=m,w=m,C=p}return(0,d.handleMutable)(t,b)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},49706:function(t,r){"use strict";var n,o;Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return a},ACTION_NAVIGATE:function(){return u},ACTION_RESTORE:function(){return i},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return d},ACTION_FAST_REFRESH:function(){return p},ACTION_SERVER_ACTION:function(){return _}});let a="refresh",u="navigate",i="restore",s="server-patch",d="prefetch",p="fast-refresh",_="server-action";(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},67205:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"reducer",{enumerable:!0,get:function(){return m}});let o=n(49706),a=n(18640),u=n(75330),i=n(81705),s=n(62701),d=n(53709),p=n(43682),_=n(31383);function clientReducer(t,r){switch(r.type){case o.ACTION_NAVIGATE:return(0,a.navigateReducer)(t,r);case o.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(t,r);case o.ACTION_RESTORE:return(0,i.restoreReducer)(t,r);case o.ACTION_REFRESH:return(0,s.refreshReducer)(t,r);case o.ACTION_FAST_REFRESH:return(0,p.fastRefreshReducer)(t,r);case o.ACTION_PREFETCH:return(0,d.prefetchReducer)(t,r);case o.ACTION_SERVER_ACTION:return(0,_.serverActionReducer)(t,r);default:throw Error("Unknown action")}}let m=clientReducer;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63006:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"shouldHardNavigate",{enumerable:!0,get:function(){return shouldHardNavigate}});let o=n(68163);function shouldHardNavigate(t,r){let[n,a]=r,[u,i]=t;if(!(0,o.matchSegment)(u,n))return!!Array.isArray(u);let s=t.length<=2;return!s&&shouldHardNavigate(t.slice(2),a[i])}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88519:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return createSearchParamsBailoutProxy}});let o=n(32004);function createSearchParamsBailoutProxy(){return new Proxy({},{get(t,r){"string"==typeof r&&(0,o.staticGenerationBailout)("searchParams."+r)}})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18985:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return a}});let o=n(27346),a=(0,o.createAsyncLocalStorage)();("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32004:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"staticGenerationBailout",{enumerable:!0,get:function(){return staticGenerationBailout}});let o=n(61351),a=n(95437),u=n(18985);let StaticGenBailoutError=class StaticGenBailoutError extends Error{constructor(...t){super(...t),this.code="NEXT_STATIC_GEN_BAILOUT"}};function formatErrorMessage(t,r){let{dynamic:n,link:o}=r||{};return"Page"+(n?' with `dynamic = "'+n+'"`':"")+" couldn't be rendered statically because it used `"+t+"`."+(o?" See more info here: "+o:"")}let staticGenerationBailout=(t,r)=>{let n=u.staticGenerationAsyncStorage.getStore();if(!n)return!1;if(n.forceStatic)return!0;if(n.dynamicShouldError){var i;throw new StaticGenBailoutError(formatErrorMessage(t,{...r,dynamic:null!=(i=null==r?void 0:r.dynamic)?i:"error"}))}let s=formatErrorMessage(t,{...r,link:"https://nextjs.org/docs/messages/dynamic-server-error"});if((0,a.maybePostpone)(n,s),n.revalidate=0,(null==r?void 0:r.dynamic)||(n.staticPrefetchBailout=!0),n.isStaticGeneration){let r=new o.DynamicServerError(s);throw n.dynamicUsageDescription=t,n.dynamicUsageStack=r.stack,r}return!1};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},48297:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return StaticGenerationSearchParamsBailoutProvider}});let o=n(21024),a=o._(n(2265)),u=n(88519);function StaticGenerationSearchParamsBailoutProvider(t){let{Component:r,propsForComponent:n,isStaticGeneration:o}=t;if(o){let t=(0,u.createSearchParamsBailoutProxy)();return a.default.createElement(r,{searchParams:t,...n})}return a.default.createElement(r,n)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},32327:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useReducerWithReduxDevtools",{enumerable:!0,get:function(){return a}});let o=n(2265);function normalizeRouterState(t){if(t instanceof Map){let r={};for(let[n,o]of t.entries()){if("function"==typeof o){r[n]="fn()";continue}if("object"==typeof o&&null!==o){if(o.$$typeof){r[n]=o.$$typeof.toString();continue}if(o._bundlerConfig){r[n]="FlightData";continue}}r[n]=normalizeRouterState(o)}return r}if("object"==typeof t&&null!==t){let r={};for(let n in t){let o=t[n];if("function"==typeof o){r[n]="fn()";continue}if("object"==typeof o&&null!==o){if(o.$$typeof){r[n]=o.$$typeof.toString();continue}if(o.hasOwnProperty("_bundlerConfig")){r[n]="FlightData";continue}}r[n]=normalizeRouterState(o)}return r}return Array.isArray(t)?t.map(normalizeRouterState):t}function devToolReducer(t,r){return(n,o)=>{let a=t(n,o);return r.current&&r.current.send(o,normalizeRouterState(a)),a}}function useReducerWithReduxDevtoolsImpl(t,r){let n=(0,o.useRef)(),a=(0,o.useRef)();(0,o.useEffect)(()=>{if(!n.current&&!1!==a.current){if(void 0===a.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){a.current=!1;return}return n.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),n.current&&n.current.init(normalizeRouterState(r)),()=>{n.current=void 0}}},[r]);let[u,i]=(0,o.useReducer)(devToolReducer(t,n),r),s=(0,o.useCallback)(()=>{n.current&&n.current.send({type:"RENDER_SYNC"},normalizeRouterState(u))},[u]);return[u,i,s]}let a=useReducerWithReduxDevtoolsImpl;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},26746:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"hasBasePath",{enumerable:!0,get:function(){return hasBasePath}});let o=n(31446);function hasBasePath(t){return(0,o.pathHasPrefix)(t,"")}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},43997:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return normalizePathTrailingSlash}});let o=n(39006),a=n(39466),normalizePathTrailingSlash=t=>{if(!t.startsWith("/"))return t;let{pathname:r,query:n,hash:u}=(0,a.parsePath)(t);return""+(0,o.removeTrailingSlash)(r)+n+u};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},2504:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return onRecoverableError}});let o=n(11283);function onRecoverableError(t){let r="function"==typeof reportError?reportError:t=>{window.console.error(t)};t.digest!==o.NEXT_DYNAMIC_NO_SSR_CODE&&r(t)}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},23714:function(t,r,n){"use strict";function removeBasePath(t){return t}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeBasePath",{enumerable:!0,get:function(){return removeBasePath}}),n(26746),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},76313:function(t,r,n){"use strict";var o,a;Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{CacheStates:function(){return o},AppRouterContext:function(){return s},LayoutRouterContext:function(){return d},GlobalLayoutRouterContext:function(){return p},TemplateContext:function(){return _}});let u=n(21024),i=u._(n(2265));(a=o||(o={})).LAZY_INITIALIZED="LAZYINITIALIZED",a.DATA_FETCH="DATAFETCH",a.READY="READY";let s=i.default.createContext(null),d=i.default.createContext(null),p=i.default.createContext(null),_=i.default.createContext(null)},76360:function(t,r){"use strict";function djb2Hash(t){let r=5381;for(let n=0;n!r||(0,a.isGroupSegment)(r)||"@"===r[0]||("page"===r||"route"===r)&&n===o.length-1?t:t+"/"+r,""))}function normalizeRscURL(t){return t.replace(/\.rsc($|\?)/,"$1")}function normalizePostponedURL(t){let r=new URL(t),{pathname:n}=r;return n&&n.startsWith("/_next/postponed")?(r.pathname=n.substring(16)||"/",r.toString()):t}},20280:function(t,r){"use strict";function handleSmoothScroll(t,r){if(void 0===r&&(r={}),r.onlyHashChange){t();return}let n=document.documentElement,o=n.style.scrollBehavior;n.style.scrollBehavior="auto",r.dontForceLayout||n.getClientRects(),t(),n.style.scrollBehavior=o}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"handleSmoothScroll",{enumerable:!0,get:function(){return handleSmoothScroll}})},52169:function(t,r){"use strict";function isBot(t){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(t)}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isBot",{enumerable:!0,get:function(){return isBot}})},39466:function(t,r){"use strict";function parsePath(t){let r=t.indexOf("#"),n=t.indexOf("?"),o=n>-1&&(r<0||n-1?{pathname:t.substring(0,o?n:r),query:o?t.substring(n,r>-1?r:void 0):"",hash:r>-1?t.slice(r):""}:{pathname:t,query:"",hash:""}}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"parsePath",{enumerable:!0,get:function(){return parsePath}})},31446:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"pathHasPrefix",{enumerable:!0,get:function(){return pathHasPrefix}});let o=n(39466);function pathHasPrefix(t,r){if("string"!=typeof t)return!1;let{pathname:n}=(0,o.parsePath)(t);return n===r||n.startsWith(r+"/")}},39006:function(t,r){"use strict";function removeTrailingSlash(t){return t.replace(/\/$/,"")||"/"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"removeTrailingSlash",{enumerable:!0,get:function(){return removeTrailingSlash}})},91706:function(t,r){"use strict";function isGroupSegment(t){return"("===t[0]&&t.endsWith(")")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isGroupSegment",{enumerable:!0,get:function(){return isGroupSegment}})},33972:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{ServerInsertedHTMLContext:function(){return u},useServerInsertedHTML:function(){return useServerInsertedHTML}});let o=n(68533),a=o._(n(2265)),u=a.default.createContext(null);function useServerInsertedHTML(t){let r=(0,a.useContext)(u);r&&r(t)}},27346:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");let FakeAsyncLocalStorage=class FakeAsyncLocalStorage{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}};let o=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return o?new o:new FakeAsyncLocalStorage}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},34040:function(t,r,n){"use strict";var o=n(54887);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},54887:function(t,r,n){"use strict";function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(t){console.error(t)}}checkDCE(),t.exports=n(84417)},97950:function(t,r,n){"use strict";/** + * @license React + * react-server-dom-webpack-client.browser.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var o=n(54887),a=n(2265),u={stream:!0};function v(t,r){if(t){var n=t[r[0]];if(t=n[r[2]])n=t.name;else{if(!(t=n["*"]))throw Error('Could not find the module "'+r[0]+'" in the React SSR Manifest. This is probably a bug in the React Server Components bundler.');n=r[2]}return 4===r.length?[t.id,t.chunks,n,1]:[t.id,t.chunks,n]}return r}var i=new Map;function x(t){var r=n(t);return"function"!=typeof r.then||"fulfilled"===r.status?null:(r.then(function(t){r.status="fulfilled",r.value=t},function(t){r.status="rejected",r.reason=t}),r)}function y(){}function z(t){for(var r=t[1],o=[],a=0;ai?(d=i,i=3,a++):(d=0,i=3);continue;case 2:44===(b=o[a++])?i=4:_=_<<4|(96o.length&&(b=-1)}var j=o.byteOffset+a;if(-1>>1,a=t[o];if(0>>1;og(s,n))dg(p,s)?(t[o]=p,t[d]=n,o=d):(t[o]=s,t[i]=n,o=i);else if(dg(p,n))t[o]=p,t[d]=n,o=d;else break}}return r}function g(t,r){var n=t.sortIndex-r.sortIndex;return 0!==n?n:t.id-r.id}if(r.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var n,o=performance;r.unstable_now=function(){return o.now()}}else{var a=Date,u=a.now();r.unstable_now=function(){return a.now()-u}}var i=[],s=[],d=1,p=null,_=3,m=!1,b=!1,j=!1,C="function"==typeof setTimeout?setTimeout:null,w="function"==typeof clearTimeout?clearTimeout:null,D="undefined"!=typeof setImmediate?setImmediate:null;function G(t){for(var r=h(s);null!==r;){if(null===r.callback)k(s);else if(r.startTime<=t)k(s),r.sortIndex=r.expirationTime,f(i,r);else break;r=h(s)}}function H(t){if(j=!1,G(t),!b){if(null!==h(i))b=!0,I();else{var r=h(s);null!==r&&J(H,r.startTime-t)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var U=!1,B=-1,$=5,K=-1;function O(){return!(r.unstable_now()-K<$)}function P(){if(U){var t=r.unstable_now();K=t;var o=!0;try{e:{b=!1,j&&(j=!1,w(B),B=-1),m=!0;var a=_;try{t:{for(G(t),p=h(i);null!==p&&!(p.expirationTime>t&&O());){var u=p.callback;if("function"==typeof u){p.callback=null,_=p.priorityLevel;var d=u(p.expirationTime<=t);if(t=r.unstable_now(),"function"==typeof d){p.callback=d,G(t),o=!0;break t}p===h(i)&&k(i),G(t)}else k(i);p=h(i)}if(null!==p)o=!0;else{var C=h(s);null!==C&&J(H,C.startTime-t),o=!1}}break e}finally{p=null,_=a,m=!1}o=void 0}}finally{o?n():U=!1}}}if("function"==typeof D)n=function(){D(P)};else if("undefined"!=typeof MessageChannel){var q=new MessageChannel,ee=q.port2;q.port1.onmessage=P,n=function(){ee.postMessage(null)}}else n=function(){C(P,0)};function I(){U||(U=!0,n())}function J(t,n){B=C(function(){t(r.unstable_now())},n)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(t){t.callback=null},r.unstable_continueExecution=function(){b||m||(b=!0,I())},r.unstable_forceFrameRate=function(t){0>t||125a?(t.sortIndex=o,f(s,t),null===h(i)&&t===h(s)&&(j?(w(B),B=-1):j=!0,J(H,o-a))):(t.sortIndex=u,f(i,t),b||m||(b=!0,I())),t},r.unstable_shouldYield=O,r.unstable_wrapCallback=function(t){var r=_;return function(){var n=_;_=r;try{return t.apply(this,arguments)}finally{_=n}}}},8261:function(t,r,n){"use strict";t.exports=n(21756)},31824:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{NEXT_QUERY_PARAM_PREFIX:function(){return n},PRERENDER_REVALIDATE_HEADER:function(){return o},PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER:function(){return a},NEXT_DID_POSTPONE_HEADER:function(){return u},NEXT_CACHE_TAGS_HEADER:function(){return i},NEXT_CACHE_SOFT_TAGS_HEADER:function(){return s},NEXT_CACHE_REVALIDATED_TAGS_HEADER:function(){return d},NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER:function(){return p},NEXT_CACHE_TAG_MAX_LENGTH:function(){return _},NEXT_CACHE_SOFT_TAG_MAX_LENGTH:function(){return m},NEXT_CACHE_IMPLICIT_TAG_ID:function(){return b},CACHE_ONE_YEAR:function(){return j},MIDDLEWARE_FILENAME:function(){return C},MIDDLEWARE_LOCATION_REGEXP:function(){return w},INSTRUMENTATION_HOOK_FILENAME:function(){return D},PAGES_DIR_ALIAS:function(){return U},DOT_NEXT_ALIAS:function(){return B},ROOT_DIR_ALIAS:function(){return $},APP_DIR_ALIAS:function(){return K},RSC_MOD_REF_PROXY_ALIAS:function(){return q},RSC_ACTION_VALIDATE_ALIAS:function(){return ee},RSC_ACTION_PROXY_ALIAS:function(){return et},RSC_ACTION_ENCRYPTION_ALIAS:function(){return er},RSC_ACTION_CLIENT_WRAPPER_ALIAS:function(){return en},PUBLIC_DIR_MIDDLEWARE_CONFLICT:function(){return eo},SSG_GET_INITIAL_PROPS_CONFLICT:function(){return eu},SERVER_PROPS_GET_INIT_PROPS_CONFLICT:function(){return el},SERVER_PROPS_SSG_CONFLICT:function(){return ei},STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR:function(){return ec},SERVER_PROPS_EXPORT_ERROR:function(){return es},GSP_NO_RETURNED_VALUE:function(){return ef},GSSP_NO_RETURNED_VALUE:function(){return ed},UNSTABLE_REVALIDATE_RENAME_ERROR:function(){return ep},GSSP_COMPONENT_MEMBER_ERROR:function(){return eh},NON_STANDARD_NODE_ENV:function(){return e_},SSG_FALLBACK_EXPORT_ERROR:function(){return ey},ESLINT_DEFAULT_DIRS:function(){return em},ESLINT_PROMPT_VALUES:function(){return eg},SERVER_RUNTIME:function(){return eb},WEBPACK_LAYERS:function(){return eR},WEBPACK_RESOURCE_QUERIES:function(){return eS}});let n="nxtP",o="x-prerender-revalidate",a="x-prerender-revalidate-if-generated",u="x-nextjs-postponed",i="x-next-cache-tags",s="x-next-cache-soft-tags",d="x-next-revalidated-tags",p="x-next-revalidate-tag-token",_=256,m=1024,b="_N_T_",j=31536e3,C="middleware",w=`(?:src/)?${C}`,D="instrumentation",U="private-next-pages",B="private-dot-next",$="private-next-root-dir",K="private-next-app-dir",q="private-next-rsc-mod-ref-proxy",ee="private-next-rsc-action-validate",et="private-next-rsc-action-proxy",er="private-next-rsc-action-encryption",en="private-next-rsc-action-client-wrapper",eo="You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict",eu="You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps",el="You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.",ei="You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps",ec="can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props",es="pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export",ef="Your `getStaticProps` function did not return an object. Did you forget to add a `return`?",ed="Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?",ep="The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.",eh="can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member",e_='You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env',ey="Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export",em=["app","pages","components","lib","src"],eg=[{title:"Strict",recommended:!0,config:{extends:"next/core-web-vitals"}},{title:"Base",config:{extends:"next"}},{title:"Cancel",config:null}],eb={edge:"edge",experimentalEdge:"experimental-edge",nodejs:"nodejs"},ev={shared:"shared",reactServerComponents:"rsc",serverSideRendering:"ssr",actionBrowser:"action-browser",api:"api",middleware:"middleware",edgeAsset:"edge-asset",appPagesBrowser:"app-pages-browser",appMetadataRoute:"app-metadata-route",appRouteHandler:"app-route-handler"},eR={...ev,GROUP:{server:[ev.reactServerComponents,ev.actionBrowser,ev.appMetadataRoute,ev.appRouteHandler],nonClientServerTarget:[ev.middleware,ev.api],app:[ev.reactServerComponents,ev.actionBrowser,ev.appMetadataRoute,ev.appRouteHandler,ev.serverSideRendering,ev.appPagesBrowser]}},eS={edgeSSREntry:"__next_edge_ssr_entry__",metadata:"__next_metadata__",metadataRoute:"__next_metadata_route__",metadataImageMeta:"__next_metadata_image_meta__"}},15682:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getSegmentParam",{enumerable:!0,get:function(){return getSegmentParam}});let o=n(84507);function getSegmentParam(t){let r=o.INTERCEPTION_ROUTE_MARKERS.find(r=>t.startsWith(r));return(r&&(t=t.slice(r.length)),t.startsWith("[[...")&&t.endsWith("]]"))?{type:"optional-catchall",param:t.slice(5,-2)}:t.startsWith("[...")&&t.endsWith("]")?{type:"catchall",param:t.slice(4,-1)}:t.startsWith("[")&&t.endsWith("]")?{type:"dynamic",param:t.slice(1,-1)}:null}},84507:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(t,r){for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]})}(r,{INTERCEPTION_ROUTE_MARKERS:function(){return a},isInterceptionRouteAppPath:function(){return isInterceptionRouteAppPath},extractInterceptionRouteInformation:function(){return extractInterceptionRouteInformation}});let o=n(13701),a=["(..)(..)","(.)","(..)","(...)"];function isInterceptionRouteAppPath(t){return void 0!==t.split("/").find(t=>a.find(r=>t.startsWith(r)))}function extractInterceptionRouteInformation(t){let r,n,u;for(let o of t.split("/"))if(n=a.find(t=>o.startsWith(t))){[r,u]=t.split(n,2);break}if(!r||!n||!u)throw Error(`Invalid interception route: ${t}. Must be in the format //(..|...|..)(..)/`);switch(r=(0,o.normalizeAppPath)(r),n){case"(.)":u="/"===r?`/${u}`:r+"/"+u;break;case"(..)":if("/"===r)throw Error(`Invalid interception route: ${t}. Cannot use (..) marker at the root level, use (.) instead.`);u=r.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let i=r.split("/");if(i.length<=2)throw Error(`Invalid interception route: ${t}. Cannot use (..)(..) marker at the root level or one level up.`);u=i.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:r,interceptedRoute:u}}},24677:function(t,r,n){"use strict";function _class_private_field_loose_base(t,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw TypeError("attempted to use private field on non-instance");return t}n.r(r),n.d(r,{_:function(){return _class_private_field_loose_base},_class_private_field_loose_base:function(){return _class_private_field_loose_base}})},6249:function(t,r,n){"use strict";n.r(r),n.d(r,{_:function(){return _class_private_field_loose_key},_class_private_field_loose_key:function(){return _class_private_field_loose_key}});var o=0;function _class_private_field_loose_key(t){return"__private_"+o+++"_"+t}},21024:function(t,r,n){"use strict";function _interop_require_default(t){return t&&t.__esModule?t:{default:t}}n.r(r),n.d(r,{_:function(){return _interop_require_default},_interop_require_default:function(){return _interop_require_default}})},68533:function(t,r,n){"use strict";function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(_getRequireWildcardCache=function(t){return t?n:r})(t)}function _interop_require_wildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=_getRequireWildcardCache(r);if(n&&n.has(t))return n.get(t);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var i=a?Object.getOwnPropertyDescriptor(t,u):null;i&&(i.get||i.set)?Object.defineProperty(o,u,i):o[u]=t[u]}return o.default=t,n&&n.set(t,o),o}n.r(r),n.d(r,{_:function(){return _interop_require_wildcard},_interop_require_wildcard:function(){return _interop_require_wildcard}})}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/492-8cf0f4c3a55dfe5f.js b/web/_next/static/chunks/492-8cf0f4c3a55dfe5f.js new file mode 100644 index 00000000..dd330b00 --- /dev/null +++ b/web/_next/static/chunks/492-8cf0f4c3a55dfe5f.js @@ -0,0 +1,190 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[492],{34699:function(e,n){"use strict";n.byteLength=byteLength,n.toByteArray=toByteArray,n.fromByteArray=fromByteArray;for(var l=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,g=d.length;h0)throw Error("Invalid string. Length must be a multiple of 4");var l=e.indexOf("=");-1===l&&(l=n);var c=l===n?0:4-l%4;return[l,c]}function byteLength(e){var n=getLens(e),l=n[0],c=n[1];return(l+c)*3/4-c}function _byteLength(e,n,l){return(n+l)*3/4-l}function toByteArray(e){var n,l,d=getLens(e),h=d[0],g=d[1],y=new f(_byteLength(e,h,g)),b=0,w=g>0?h-4:h;for(l=0;l>16&255,y[b++]=n>>8&255,y[b++]=255&n;return 2===g&&(n=c[e.charCodeAt(l)]<<2|c[e.charCodeAt(l+1)]>>4,y[b++]=255&n),1===g&&(n=c[e.charCodeAt(l)]<<10|c[e.charCodeAt(l+1)]<<4|c[e.charCodeAt(l+2)]>>2,y[b++]=n>>8&255,y[b++]=255&n),y}function tripletToBase64(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function encodeChunk(e,n,l){for(var c=[],f=n;fg?g:h+16383));return 1===f?d.push(l[(n=e[c-1])>>2]+l[n<<4&63]+"=="):2===f&&d.push(l[(n=(e[c-2]<<8)+e[c-1])>>10]+l[n>>4&63]+l[n<<2&63]+"="),d.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},67133:function(e,n,l){"use strict";/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */let c=l(34699),f=l(19087),d="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function typedArraySupport(){try{let e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),42===e.foo()}catch(e){return!1}}function createBuffer(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');let n=new Uint8Array(e);return Object.setPrototypeOf(n,Buffer.prototype),n}function Buffer(e,n,l){if("number"==typeof e){if("string"==typeof n)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,n,l)}function from(e,n,l){if("string"==typeof e)return fromString(e,n);if(ArrayBuffer.isView(e))return fromArrayView(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return fromArrayBuffer(e,n,l);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return Buffer.from(c,n,l);let f=fromObject(e);if(f)return f;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),n,l);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function alloc(e,n,l){return(assertSize(e),e<=0)?createBuffer(e):void 0!==n?"string"==typeof l?createBuffer(e).fill(n,l):createBuffer(e).fill(n):createBuffer(e)}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromString(e,n){if(("string"!=typeof n||""===n)&&(n="utf8"),!Buffer.isEncoding(n))throw TypeError("Unknown encoding: "+n);let l=0|byteLength(e,n),c=createBuffer(l),f=c.write(e,n);return f!==l&&(c=c.slice(0,f)),c}function fromArrayLike(e){let n=e.length<0?0:0|checked(e.length),l=createBuffer(n);for(let c=0;c=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function byteLength(e,n){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let l=e.length,c=arguments.length>2&&!0===arguments[2];if(!c&&0===l)return 0;let f=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return l;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*l;case"hex":return l>>>1;case"base64":return base64ToBytes(e).length;default:if(f)return c?-1:utf8ToBytes(e).length;n=(""+n).toLowerCase(),f=!0}}function slowToString(e,n,l){let c=!1;if((void 0===n||n<0)&&(n=0),n>this.length||((void 0===l||l>this.length)&&(l=this.length),l<=0||(l>>>=0)<=(n>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,n,l);case"utf8":case"utf-8":return utf8Slice(this,n,l);case"ascii":return asciiSlice(this,n,l);case"latin1":case"binary":return latin1Slice(this,n,l);case"base64":return base64Slice(this,n,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,n,l);default:if(c)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),c=!0}}function swap(e,n,l){let c=e[n];e[n]=e[l],e[l]=c}function bidirectionalIndexOf(e,n,l,c,f){var d;if(0===e.length)return -1;if("string"==typeof l?(c=l,l=0):l>2147483647?l=2147483647:l<-2147483648&&(l=-2147483648),(d=l=+l)!=d&&(l=f?0:e.length-1),l<0&&(l=e.length+l),l>=e.length){if(f)return -1;l=e.length-1}else if(l<0){if(!f)return -1;l=0}if("string"==typeof n&&(n=Buffer.from(n,c)),Buffer.isBuffer(n))return 0===n.length?-1:arrayIndexOf(e,n,l,c,f);if("number"==typeof n)return(n&=255,"function"==typeof Uint8Array.prototype.indexOf)?f?Uint8Array.prototype.indexOf.call(e,n,l):Uint8Array.prototype.lastIndexOf.call(e,n,l):arrayIndexOf(e,[n],l,c,f);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,n,l,c,f){let d,h=1,g=e.length,y=n.length;if(void 0!==c&&("ucs2"===(c=String(c).toLowerCase())||"ucs-2"===c||"utf16le"===c||"utf-16le"===c)){if(e.length<2||n.length<2)return -1;h=2,g/=2,y/=2,l/=2}function read(e,n){return 1===h?e[n]:e.readUInt16BE(n*h)}if(f){let c=-1;for(d=l;dg&&(l=g-y),d=l;d>=0;d--){let l=!0;for(let c=0;cd&&(c=d):c=d;let h=n.length;for(c>h/2&&(c=h/2),f=0;f239?4:n>223?3:n>191?2:1;if(f+h<=l){let l,c,g,y;switch(h){case 1:n<128&&(d=n);break;case 2:(192&(l=e[f+1]))==128&&(y=(31&n)<<6|63&l)>127&&(d=y);break;case 3:l=e[f+1],c=e[f+2],(192&l)==128&&(192&c)==128&&(y=(15&n)<<12|(63&l)<<6|63&c)>2047&&(y<55296||y>57343)&&(d=y);break;case 4:l=e[f+1],c=e[f+2],g=e[f+3],(192&l)==128&&(192&c)==128&&(192&g)==128&&(y=(15&n)<<18|(63&l)<<12|(63&c)<<6|63&g)>65535&&y<1114112&&(d=y)}}null===d?(d=65533,h=1):d>65535&&(d-=65536,c.push(d>>>10&1023|55296),d=56320|1023&d),c.push(d),f+=h}return decodeCodePointsArray(c)}function decodeCodePointsArray(e){let n=e.length;if(n<=4096)return String.fromCharCode.apply(String,e);let l="",c=0;for(;cc)&&(l=c);let f="";for(let c=n;cl)throw RangeError("Trying to access beyond buffer length")}function checkInt(e,n,l,c,f,d){if(!Buffer.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(n>f||ne.length)throw RangeError("Index out of range")}function wrtBigUInt64LE(e,n,l,c,f){checkIntBI(n,c,f,e,l,7);let d=Number(n&BigInt(4294967295));e[l++]=d,d>>=8,e[l++]=d,d>>=8,e[l++]=d,d>>=8,e[l++]=d;let h=Number(n>>BigInt(32)&BigInt(4294967295));return e[l++]=h,h>>=8,e[l++]=h,h>>=8,e[l++]=h,h>>=8,e[l++]=h,l}function wrtBigUInt64BE(e,n,l,c,f){checkIntBI(n,c,f,e,l,7);let d=Number(n&BigInt(4294967295));e[l+7]=d,d>>=8,e[l+6]=d,d>>=8,e[l+5]=d,d>>=8,e[l+4]=d;let h=Number(n>>BigInt(32)&BigInt(4294967295));return e[l+3]=h,h>>=8,e[l+2]=h,h>>=8,e[l+1]=h,h>>=8,e[l]=h,l+8}function checkIEEE754(e,n,l,c,f,d){if(l+c>e.length||l<0)throw RangeError("Index out of range")}function writeFloat(e,n,l,c,d){return n=+n,l>>>=0,d||checkIEEE754(e,n,l,4,34028234663852886e22,-34028234663852886e22),f.write(e,n,l,c,23,4),l+4}function writeDouble(e,n,l,c,d){return n=+n,l>>>=0,d||checkIEEE754(e,n,l,8,17976931348623157e292,-17976931348623157e292),f.write(e,n,l,c,52,8),l+8}n.lW=Buffer,n.h2=50,Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,n,l){return from(e,n,l)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,n,l){return alloc(e,n,l)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,n){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(n,Uint8Array)&&(n=Buffer.from(n,n.offset,n.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(n))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let l=e.length,c=n.length;for(let f=0,d=Math.min(l,c);fc.length?(Buffer.isBuffer(n)||(n=Buffer.from(n)),n.copy(c,f)):Uint8Array.prototype.set.call(c,n,f);else if(Buffer.isBuffer(n))n.copy(c,f);else throw TypeError('"list" argument must be an Array of Buffers');f+=n.length}return c},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;nl&&(e+=" ... "),""},d&&(Buffer.prototype[d]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,n,l,c,f){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===l&&(l=e?e.length:0),void 0===c&&(c=0),void 0===f&&(f=this.length),n<0||l>e.length||c<0||f>this.length)throw RangeError("out of range index");if(c>=f&&n>=l)return 0;if(c>=f)return -1;if(n>=l)return 1;if(n>>>=0,l>>>=0,c>>>=0,f>>>=0,this===e)return 0;let d=f-c,h=l-n,g=Math.min(d,h),y=this.slice(c,f),b=e.slice(n,l);for(let e=0;e>>=0,isFinite(l)?(l>>>=0,void 0===c&&(c="utf8")):(c=l,l=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let f=this.length-n;if((void 0===l||l>f)&&(l=f),e.length>0&&(l<0||n<0)||n>this.length)throw RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let d=!1;for(;;)switch(c){case"hex":return hexWrite(this,e,n,l);case"utf8":case"utf-8":return utf8Write(this,e,n,l);case"ascii":case"latin1":case"binary":return asciiWrite(this,e,n,l);case"base64":return base64Write(this,e,n,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,n,l);default:if(d)throw TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),d=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(e,n){let l=this.length;e=~~e,n=void 0===n?l:~~n,e<0?(e+=l)<0&&(e=0):e>l&&(e=l),n<0?(n+=l)<0&&(n=0):n>l&&(n=l),n>>=0,n>>>=0,l||checkOffset(e,n,this.length);let c=this[e],f=1,d=0;for(;++d>>=0,n>>>=0,l||checkOffset(e,n,this.length);let c=this[e+--n],f=1;for(;n>0&&(f*=256);)c+=this[e+--n]*f;return c},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(e,n){return e>>>=0,n||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(e,n){return e>>>=0,n||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(e,n){return e>>>=0,n||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(e,n){return e>>>=0,n||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(e,n){return e>>>=0,n||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod(function(e){validateNumber(e>>>=0,"offset");let n=this[e],l=this[e+7];(void 0===n||void 0===l)&&boundsError(e,this.length-8);let c=n+256*this[++e]+65536*this[++e]+16777216*this[++e],f=this[++e]+256*this[++e]+65536*this[++e]+16777216*l;return BigInt(c)+(BigInt(f)<>>=0,"offset");let n=this[e],l=this[e+7];(void 0===n||void 0===l)&&boundsError(e,this.length-8);let c=16777216*n+65536*this[++e]+256*this[++e]+this[++e],f=16777216*this[++e]+65536*this[++e]+256*this[++e]+l;return(BigInt(c)<>>=0,n>>>=0,l||checkOffset(e,n,this.length);let c=this[e],f=1,d=0;for(;++d=(f*=128)&&(c-=Math.pow(2,8*n)),c},Buffer.prototype.readIntBE=function(e,n,l){e>>>=0,n>>>=0,l||checkOffset(e,n,this.length);let c=n,f=1,d=this[e+--c];for(;c>0&&(f*=256);)d+=this[e+--c]*f;return d>=(f*=128)&&(d-=Math.pow(2,8*n)),d},Buffer.prototype.readInt8=function(e,n){return(e>>>=0,n||checkOffset(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},Buffer.prototype.readInt16LE=function(e,n){e>>>=0,n||checkOffset(e,2,this.length);let l=this[e]|this[e+1]<<8;return 32768&l?4294901760|l:l},Buffer.prototype.readInt16BE=function(e,n){e>>>=0,n||checkOffset(e,2,this.length);let l=this[e+1]|this[e]<<8;return 32768&l?4294901760|l:l},Buffer.prototype.readInt32LE=function(e,n){return e>>>=0,n||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,n){return e>>>=0,n||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod(function(e){validateNumber(e>>>=0,"offset");let n=this[e],l=this[e+7];(void 0===n||void 0===l)&&boundsError(e,this.length-8);let c=this[e+4]+256*this[e+5]+65536*this[e+6]+(l<<24);return(BigInt(c)<>>=0,"offset");let n=this[e],l=this[e+7];(void 0===n||void 0===l)&&boundsError(e,this.length-8);let c=(n<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(c)<>>=0,n||checkOffset(e,4,this.length),f.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,n){return e>>>=0,n||checkOffset(e,4,this.length),f.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,n){return e>>>=0,n||checkOffset(e,8,this.length),f.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,n){return e>>>=0,n||checkOffset(e,8,this.length),f.read(this,e,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(e,n,l,c){if(e=+e,n>>>=0,l>>>=0,!c){let c=Math.pow(2,8*l)-1;checkInt(this,e,n,l,c,0)}let f=1,d=0;for(this[n]=255&e;++d>>=0,l>>>=0,!c){let c=Math.pow(2,8*l)-1;checkInt(this,e,n,l,c,0)}let f=l-1,d=1;for(this[n+f]=255&e;--f>=0&&(d*=256);)this[n+f]=e/d&255;return n+l},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,1,255,0),this[n]=255&e,n+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod(function(e,n=0){return wrtBigUInt64LE(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod(function(e,n=0){return wrtBigUInt64BE(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeIntLE=function(e,n,l,c){if(e=+e,n>>>=0,!c){let c=Math.pow(2,8*l-1);checkInt(this,e,n,l,c-1,-c)}let f=0,d=1,h=0;for(this[n]=255&e;++f>0)-h&255;return n+l},Buffer.prototype.writeIntBE=function(e,n,l,c){if(e=+e,n>>>=0,!c){let c=Math.pow(2,8*l-1);checkInt(this,e,n,l,c-1,-c)}let f=l-1,d=1,h=0;for(this[n+f]=255&e;--f>=0&&(d*=256);)e<0&&0===h&&0!==this[n+f+1]&&(h=1),this[n+f]=(e/d>>0)-h&255;return n+l},Buffer.prototype.writeInt8=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},Buffer.prototype.writeInt16LE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},Buffer.prototype.writeInt16BE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},Buffer.prototype.writeInt32LE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},Buffer.prototype.writeInt32BE=function(e,n,l){return e=+e,n>>>=0,l||checkInt(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod(function(e,n=0){return wrtBigUInt64LE(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeBigInt64BE=defineBigIntMethod(function(e,n=0){return wrtBigUInt64BE(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeFloatLE=function(e,n,l){return writeFloat(this,e,n,!0,l)},Buffer.prototype.writeFloatBE=function(e,n,l){return writeFloat(this,e,n,!1,l)},Buffer.prototype.writeDoubleLE=function(e,n,l){return writeDouble(this,e,n,!0,l)},Buffer.prototype.writeDoubleBE=function(e,n,l){return writeDouble(this,e,n,!1,l)},Buffer.prototype.copy=function(e,n,l,c){if(!Buffer.isBuffer(e))throw TypeError("argument should be a Buffer");if(l||(l=0),c||0===c||(c=this.length),n>=e.length&&(n=e.length),n||(n=0),c>0&&c=this.length)throw RangeError("Index out of range");if(c<0)throw RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),e.length-n>>=0,l=void 0===l?this.length:l>>>0,e||(e=0),"number"==typeof e)for(f=n;f=c+4;l-=3)n=`_${e.slice(l-3,l)}${n}`;return`${e.slice(0,l)}${n}`}function checkBounds(e,n,l){validateNumber(n,"offset"),(void 0===e[n]||void 0===e[n+l])&&boundsError(n,e.length-(l+1))}function checkIntBI(e,n,l,c,f,d){if(e>l||e3?0===n||n===BigInt(0)?`>= 0${f} and < 2${f} ** ${(d+1)*8}${f}`:`>= -(2${f} ** ${(d+1)*8-1}${f}) and < 2 ** ${(d+1)*8-1}${f}`:`>= ${n}${f} and <= ${l}${f}`,new h.ERR_OUT_OF_RANGE("value",c,e)}checkBounds(c,f,d)}function validateNumber(e,n){if("number"!=typeof e)throw new h.ERR_INVALID_ARG_TYPE(n,"number",e)}function boundsError(e,n,l){if(Math.floor(e)!==e)throw validateNumber(e,l),new h.ERR_OUT_OF_RANGE(l||"offset","an integer",e);if(n<0)throw new h.ERR_BUFFER_OUT_OF_BOUNDS;throw new h.ERR_OUT_OF_RANGE(l||"offset",`>= ${l?1:0} and <= ${n}`,e)}E("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(e,n){return`The "${e}" argument must be of type number. Received type ${typeof n}`},TypeError),E("ERR_OUT_OF_RANGE",function(e,n,l){let c=`The value of "${e}" is out of range.`,f=l;return Number.isInteger(l)&&Math.abs(l)>4294967296?f=addNumericalSeparator(String(l)):"bigint"==typeof l&&(f=String(l),(l>BigInt(2)**BigInt(32)||l<-(BigInt(2)**BigInt(32)))&&(f=addNumericalSeparator(f)),f+="n"),c+=` It must be ${n}. Received ${f}`},RangeError);let g=/[^+/0-9A-Za-z-_]/g;function base64clean(e){if((e=(e=e.split("=")[0]).trim().replace(g,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function utf8ToBytes(e,n){let l;n=n||1/0;let c=e.length,f=null,d=[];for(let h=0;h55295&&l<57344){if(!f){if(l>56319||h+1===c){(n-=3)>-1&&d.push(239,191,189);continue}f=l;continue}if(l<56320){(n-=3)>-1&&d.push(239,191,189),f=l;continue}l=(f-55296<<10|l-56320)+65536}else f&&(n-=3)>-1&&d.push(239,191,189);if(f=null,l<128){if((n-=1)<0)break;d.push(l)}else if(l<2048){if((n-=2)<0)break;d.push(l>>6|192,63&l|128)}else if(l<65536){if((n-=3)<0)break;d.push(l>>12|224,l>>6&63|128,63&l|128)}else if(l<1114112){if((n-=4)<0)break;d.push(l>>18|240,l>>12&63|128,l>>6&63|128,63&l|128)}else throw Error("Invalid code point")}return d}function asciiToBytes(e){let n=[];for(let l=0;l>8,f.push(l%256),f.push(c);return f}function base64ToBytes(e){return c.toByteArray(base64clean(e))}function blitBuffer(e,n,l,c){let f;for(f=0;f=n.length)&&!(f>=e.length);++f)n[f+l]=e[f];return f}function isInstance(e,n){return e instanceof n||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===n.name}let y=function(){let e="0123456789abcdef",n=Array(256);for(let l=0;l<16;++l){let c=16*l;for(let f=0;f<16;++f)n[c+f]=e[l]+e[f]}return n}();function defineBigIntMethod(e){return"undefined"==typeof BigInt?BufferBigIntNotDefined:e}function BufferBigIntNotDefined(){throw Error("BigInt not supported")}},19087:function(e,n){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */n.read=function(e,n,l,c,f){var d,h,g=8*f-c-1,y=(1<>1,w=-7,A=l?f-1:0,B=l?-1:1,x=e[n+A];for(A+=B,d=x&(1<<-w)-1,x>>=-w,w+=g;w>0;d=256*d+e[n+A],A+=B,w-=8);for(h=d&(1<<-w)-1,d>>=-w,w+=c;w>0;h=256*h+e[n+A],A+=B,w-=8);if(0===d)d=1-b;else{if(d===y)return h?NaN:(x?-1:1)*(1/0);h+=Math.pow(2,c),d-=b}return(x?-1:1)*h*Math.pow(2,d-c)},n.write=function(e,n,l,c,f,d){var h,g,y,b=8*d-f-1,w=(1<>1,B=23===f?5960464477539062e-23:0,x=c?0:d-1,O=c?1:-1,R=n<0||0===n&&1/n<0?1:0;for(isNaN(n=Math.abs(n))||n===1/0?(g=isNaN(n)?1:0,h=w):(h=Math.floor(Math.log(n)/Math.LN2),n*(y=Math.pow(2,-h))<1&&(h--,y*=2),h+A>=1?n+=B/y:n+=B*Math.pow(2,1-A),n*y>=2&&(h++,y/=2),h+A>=w?(g=0,h=w):h+A>=1?(g=(n*y-1)*Math.pow(2,f),h+=A):(g=n*Math.pow(2,A-1)*Math.pow(2,f),h=0));f>=8;e[l+x]=255&g,x+=O,g/=256,f-=8);for(h=h<0;e[l+x]=255&h,x+=O,h/=256,b-=8);e[l+x-O]|=128*R}},30622:function(e,n,l){"use strict";/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var c=l(2265),f=Symbol.for("react.element"),d=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,g=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function q(e,n,l){var c,d={},b=null,w=null;for(c in void 0!==l&&(b=""+l),void 0!==n.key&&(b=""+n.key),void 0!==n.ref&&(w=n.ref),n)h.call(n,c)&&!y.hasOwnProperty(c)&&(d[c]=n[c]);if(e&&e.defaultProps)for(c in n=e.defaultProps)void 0===d[c]&&(d[c]=n[c]);return{$$typeof:f,type:e,key:b,ref:w,props:d,_owner:g.current}}n.Fragment=d,n.jsx=q,n.jsxs=q},57437:function(e,n,l){"use strict";e.exports=l(30622)},79198:function(e,n,l){"use strict";l.d(n,{j:function(){return d}});var c=l(42996),f=l(40300),d=new class extends c.l{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!f.sk&&window.addEventListener){let listener=()=>e();return window.addEventListener("visibilitychange",listener,!1),()=>{window.removeEventListener("visibilitychange",listener)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let n=this.#e!==e;n&&(this.#e=e,this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}}},77470:function(e,n,l){"use strict";l.d(n,{R:function(){return getDefaultState},m:function(){return h}});var c=l(17987),f=l(99024),d=l(11640),h=class extends f.F{constructor(e){super(),this.mutationId=e.mutationId,this.#n=e.defaultOptions,this.#i=e.mutationCache,this.#o=[],this.state=e.state||getDefaultState(),this.setOptions(e.options),this.scheduleGc()}#o;#n;#i;#s;setOptions(e){this.options={...this.#n,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#o.includes(e)||(this.#o.push(e),this.clearGcTimeout(),this.#i.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#o=this.#o.filter(n=>n!==e),this.scheduleGc(),this.#i.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#o.length||("pending"===this.state.status?this.scheduleGc():this.#i.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){let n="pending"===this.state.status;try{if(!n){this.#a({type:"pending",variables:e}),await this.#i.config.onMutate?.(e,this);let n=await this.options.onMutate?.(e);n!==this.state.context&&this.#a({type:"pending",context:n,variables:e})}let l=await (this.#s=(0,d.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,n)=>{this.#a({type:"failed",failureCount:e,error:n})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#s.promise);return await this.#i.config.onSuccess?.(l,e,this.state.context,this),await this.options.onSuccess?.(l,e,this.state.context),await this.#i.config.onSettled?.(l,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(l,null,e,this.state.context),this.#a({type:"success",data:l}),l}catch(n){try{throw await this.#i.config.onError?.(n,e,this.state.context,this),await this.options.onError?.(n,e,this.state.context),await this.#i.config.onSettled?.(void 0,n,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,n,e,this.state.context),n}finally{this.#a({type:"error",error:n})}}}#a(e){this.state=(n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,d.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),c.V.batch(()=>{this.#o.forEach(n=>{n.onMutationUpdate(e)}),this.#i.notify({mutation:this,type:"updated",action:e})})}};function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},17987:function(e,n,l){"use strict";l.d(n,{V:function(){return f}});var c=l(40300),f=function(){let e=[],n=0,notifyFn=e=>{e()},batchNotifyFn=e=>{e()},schedule=l=>{n?e.push(l):(0,c.A4)(()=>{notifyFn(l)})},flush=()=>{let n=e;e=[],n.length&&(0,c.A4)(()=>{batchNotifyFn(()=>{n.forEach(e=>{notifyFn(e)})})})};return{batch:e=>{let l;n++;try{l=e()}finally{--n||flush()}return l},batchCalls:e=>(...n)=>{schedule(()=>{e(...n)})},schedule,setNotifyFunction:e=>{notifyFn=e},setBatchNotifyFunction:e=>{batchNotifyFn=e}}}()},20436:function(e,n,l){"use strict";l.d(n,{N:function(){return d}});var c=l(42996),f=l(40300),d=new class extends c.l{#u=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!f.sk&&window.addEventListener){let onlineListener=()=>e(!0),offlineListener=()=>e(!1);return window.addEventListener("online",onlineListener,!1),window.addEventListener("offline",offlineListener,!1),()=>{window.removeEventListener("online",onlineListener),window.removeEventListener("offline",offlineListener)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){let n=this.#u!==e;n&&(this.#u=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#u}}},57501:function(e,n,l){"use strict";l.d(n,{z:function(){return y}});var c=l(40300),f=l(17987),d=l(79198),h=l(42996),g=l(11640),y=class extends h.l{constructor(e,n){super(),this.#l=void 0,this.#c=void 0,this.#f=void 0,this.#d=new Set,this.#h=e,this.options=n,this.#p=null,this.bindMethods(),this.setOptions(n)}#h;#l;#c;#f;#g;#y;#p;#m;#b;#v;#w;#E;#A;#d;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#l.addObserver(this),shouldFetchOnMount(this.#l,this.options)&&this.#B(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.#l,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.#l,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#R(),this.#l.removeObserver(this)}setOptions(e,n){let l=this.options,f=this.#l;if(this.options=this.#h.defaultQueryOptions(e),(0,c.VS)(l,this.options)||this.#h.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#l,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=l.queryKey),this.#S();let d=this.hasListeners();d&&shouldFetchOptionally(this.#l,f,this.options,l)&&this.#B(),this.updateResult(n),d&&(this.#l!==f||this.options.enabled!==l.enabled||this.options.staleTime!==l.staleTime)&&this.#T();let h=this.#C();d&&(this.#l!==f||this.options.enabled!==l.enabled||h!==this.#A)&&this.#I(h)}getOptimisticResult(e){let n=this.#h.getQueryCache().build(this.#h,e),l=this.createResult(n,e);return shouldAssignObserverCurrentProperties(this,l)&&(this.#f=l,this.#y=this.options,this.#g=this.#l.state),l}getCurrentResult(){return this.#f}trackResult(e){let n={};return Object.keys(e).forEach(l=>{Object.defineProperty(n,l,{configurable:!1,enumerable:!0,get:()=>(this.#d.add(l),e[l])})}),n}getCurrentQuery(){return this.#l}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let n=this.#h.defaultQueryOptions(e),l=this.#h.getQueryCache().build(this.#h,n);return l.isFetchingOptimistic=!0,l.fetch().then(()=>this.createResult(l,n))}fetch(e){return this.#B({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#f))}#B(e){this.#S();let n=this.#l.fetch(this.options,e);return e?.throwOnError||(n=n.catch(c.ZT)),n}#T(){if(this.#O(),c.sk||this.#f.isStale||!(0,c.PN)(this.options.staleTime))return;let e=(0,c.Kp)(this.#f.dataUpdatedAt,this.options.staleTime);this.#w=setTimeout(()=>{this.#f.isStale||this.updateResult()},e+1)}#C(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#l):this.options.refetchInterval)??!1}#I(e){this.#R(),this.#A=e,!c.sk&&!1!==this.options.enabled&&(0,c.PN)(this.#A)&&0!==this.#A&&(this.#E=setInterval(()=>{(this.options.refetchIntervalInBackground||d.j.isFocused())&&this.#B()},this.#A))}#x(){this.#T(),this.#I(this.#C())}#O(){this.#w&&(clearTimeout(this.#w),this.#w=void 0)}#R(){this.#E&&(clearInterval(this.#E),this.#E=void 0)}createResult(e,n){let l;let f=this.#l,d=this.options,h=this.#f,y=this.#g,b=this.#y,w=e!==f,A=w?e.state:this.#c,{state:B}=e,{error:x,errorUpdatedAt:O,fetchStatus:R,status:S}=B,C=!1;if(n._optimisticResults){let l=this.hasListeners(),c=!l&&shouldFetchOnMount(e,n),h=l&&shouldFetchOptionally(e,f,n,d);(c||h)&&(R=(0,g.Kw)(e.options.networkMode)?"fetching":"paused",B.dataUpdatedAt||(S="pending")),"isRestoring"===n._optimisticResults&&(R="idle")}if(n.select&&void 0!==B.data){if(h&&B.data===y?.data&&n.select===this.#m)l=this.#b;else try{this.#m=n.select,l=n.select(B.data),l=(0,c.oE)(h?.data,l,n),this.#b=l,this.#p=null}catch(e){this.#p=e}}else l=B.data;if(void 0!==n.placeholderData&&void 0===l&&"pending"===S){let e;if(h?.isPlaceholderData&&n.placeholderData===b?.placeholderData)e=h.data;else if(e="function"==typeof n.placeholderData?n.placeholderData(this.#v?.state.data,this.#v):n.placeholderData,n.select&&void 0!==e)try{e=n.select(e),this.#p=null}catch(e){this.#p=e}void 0!==e&&(S="success",l=(0,c.oE)(h?.data,e,n),C=!0)}this.#p&&(x=this.#p,l=this.#b,O=Date.now(),S="error");let k="fetching"===R,P="pending"===S,U="error"===S,L=P&&k,N={status:S,fetchStatus:R,isPending:P,isSuccess:"success"===S,isError:U,isInitialLoading:L,isLoading:L,data:l,dataUpdatedAt:B.dataUpdatedAt,error:x,errorUpdatedAt:O,failureCount:B.fetchFailureCount,failureReason:B.fetchFailureReason,errorUpdateCount:B.errorUpdateCount,isFetched:B.dataUpdateCount>0||B.errorUpdateCount>0,isFetchedAfterMount:B.dataUpdateCount>A.dataUpdateCount||B.errorUpdateCount>A.errorUpdateCount,isFetching:k,isRefetching:k&&!P,isLoadingError:U&&0===B.dataUpdatedAt,isPaused:"paused"===R,isPlaceholderData:C,isRefetchError:U&&0!==B.dataUpdatedAt,isStale:isStale(e,n),refetch:this.refetch};return N}updateResult(e){let n=this.#f,l=this.createResult(this.#l,this.options);if(this.#g=this.#l.state,this.#y=this.options,(0,c.VS)(l,n))return;void 0!==this.#g.data&&(this.#v=this.#l),this.#f=l;let f={};e?.listeners!==!1&&(()=>{if(!n)return!0;let{notifyOnChangeProps:e}=this.options,l="function"==typeof e?e():e;if("all"===l||!l&&!this.#d.size)return!0;let c=new Set(l??this.#d);return this.options.throwOnError&&c.add("error"),Object.keys(this.#f).some(e=>{let l=this.#f[e]!==n[e];return l&&c.has(e)})})()&&(f.listeners=!0),this.#k({...f,...e})}#S(){let e=this.#h.getQueryCache().build(this.#h,this.options);if(e===this.#l)return;let n=this.#l;this.#l=e,this.#c=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#k(e){f.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#f)}),this.#h.getQueryCache().notify({query:this.#l,type:"observerResultsUpdated"})})}};function shouldLoadOnMount(e,n){return!1!==n.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===n.retryOnMount)}function shouldFetchOnMount(e,n){return shouldLoadOnMount(e,n)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,n,n.refetchOnMount)}function shouldFetchOn(e,n,l){if(!1!==n.enabled){let c="function"==typeof l?l(e):l;return"always"===c||!1!==c&&isStale(e,n)}return!1}function shouldFetchOptionally(e,n,l,c){return!1!==l.enabled&&(e!==n||!1===c.enabled)&&(!l.suspense||"error"!==e.state.status)&&isStale(e,l)}function isStale(e,n){return e.isStaleByTime(n.staleTime)}function shouldAssignObserverCurrentProperties(e,n){return!(0,c.VS)(e.getCurrentResult(),n)}},99024:function(e,n,l){"use strict";l.d(n,{F:function(){return f}});var c=l(40300),f=class{#P;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,c.PN)(this.gcTime)&&(this.#P=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(c.sk?1/0:3e5))}clearGcTimeout(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}}},11640:function(e,n,l){"use strict";l.d(n,{DV:function(){return isCancelledError},Kw:function(){return canFetch},Mz:function(){return createRetryer}});var c=l(79198),f=l(20436),d=l(40300);function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")!=="online"||f.N.isOnline()}var h=class{constructor(e){this.revert=e?.revert,this.silent=e?.silent}};function isCancelledError(e){return e instanceof h}function createRetryer(e){let n,l,g,y=!1,b=0,w=!1,A=new Promise((e,n)=>{l=e,g=n}),shouldPause=()=>!c.j.isFocused()||"always"!==e.networkMode&&!f.N.isOnline(),resolve=c=>{w||(w=!0,e.onSuccess?.(c),n?.(),l(c))},reject=l=>{w||(w=!0,e.onError?.(l),n?.(),g(l))},pause=()=>new Promise(l=>{n=e=>{let n=w||!shouldPause();return n&&l(e),n},e.onPause?.()}).then(()=>{n=void 0,w||e.onContinue?.()}),run=()=>{let n;if(!w){try{n=e.fn()}catch(e){n=Promise.reject(e)}Promise.resolve(n).then(resolve).catch(n=>{if(w)return;let l=e.retry??(d.sk?0:3),c=e.retryDelay??defaultRetryDelay,f="function"==typeof c?c(b,n):c,h=!0===l||"number"==typeof l&&b{if(shouldPause())return pause()}).then(()=>{y?reject(n):run()})})}};return canFetch(e.networkMode)?run():pause().then(run),{promise:A,cancel:n=>{w||(reject(new h(n)),e.abort?.())},continue:()=>{let e=n?.();return e?A:Promise.resolve()},cancelRetry:()=>{y=!0},continueRetry:()=>{y=!1}}}},42996:function(e,n,l){"use strict";l.d(n,{l:function(){return c}});var c=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},40300:function(e,n,l){"use strict";l.d(n,{A4:function(){return scheduleMicrotask},Ht:function(){return addToStart},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Rm:function(){return hashQueryKeyByOptions},SE:function(){return functionalUpdate},VS:function(){return shallowEqualObjects},VX:function(){return addToEnd},Wk:function(){return keepPreviousData},X7:function(){return matchMutation},Ym:function(){return hashKey},ZT:function(){return noop},_v:function(){return sleep},_x:function(){return matchQuery},oE:function(){return replaceData},sk:function(){return c},to:function(){return partialMatchKey}});var c="undefined"==typeof window||"Deno"in window;function noop(){}function functionalUpdate(e,n){return"function"==typeof e?e(n):e}function isValidTimeout(e){return"number"==typeof e&&e>=0&&e!==1/0}function timeUntilStale(e,n){return Math.max(e+(n||0)-Date.now(),0)}function matchQuery(e,n){let{type:l="all",exact:c,fetchStatus:f,predicate:d,queryKey:h,stale:g}=e;if(h){if(c){if(n.queryHash!==hashQueryKeyByOptions(h,n.options))return!1}else if(!partialMatchKey(n.queryKey,h))return!1}if("all"!==l){let e=n.isActive();if("active"===l&&!e||"inactive"===l&&e)return!1}return("boolean"!=typeof g||n.isStale()===g)&&(void 0===f||f===n.state.fetchStatus)&&(!d||!!d(n))}function matchMutation(e,n){let{exact:l,status:c,predicate:f,mutationKey:d}=e;if(d){if(!n.options.mutationKey)return!1;if(l){if(hashKey(n.options.mutationKey)!==hashKey(d))return!1}else if(!partialMatchKey(n.options.mutationKey,d))return!1}return(!c||n.state.status===c)&&(!f||!!f(n))}function hashQueryKeyByOptions(e,n){let l=n?.queryKeyHashFn||hashKey;return l(e)}function hashKey(e){return JSON.stringify(e,(e,n)=>isPlainObject(n)?Object.keys(n).sort().reduce((e,l)=>(e[l]=n[l],e),{}):n)}function partialMatchKey(e,n){return e===n||typeof e==typeof n&&!!e&&!!n&&"object"==typeof e&&"object"==typeof n&&!Object.keys(n).some(l=>!partialMatchKey(e[l],n[l]))}function replaceEqualDeep(e,n){if(e===n)return e;let l=isPlainArray(e)&&isPlainArray(n);if(l||isPlainObject(e)&&isPlainObject(n)){let c=l?e.length:Object.keys(e).length,f=l?n:Object.keys(n),d=f.length,h=l?[]:{},g=0;for(let c=0;c{setTimeout(n,e)})}function scheduleMicrotask(e){sleep(0).then(e)}function replaceData(e,n,l){return"function"==typeof l.structuralSharing?l.structuralSharing(e,n):!1!==l.structuralSharing?replaceEqualDeep(e,n):n}function keepPreviousData(e){return e}function addToEnd(e,n,l=0){let c=[...e,n];return l&&c.length>l?c.slice(1):c}function addToStart(e,n,l=0){let c=[n,...e];return l&&c.length>l?c.slice(0,-1):c}},38038:function(e,n,l){"use strict";l.d(n,{NL:function(){return useQueryClient},aH:function(){return QueryClientProvider}});var c=l(2265),f=c.createContext(void 0),useQueryClient=e=>{let n=c.useContext(f);if(e)return e;if(!n)throw Error("No QueryClient set, use QueryClientProvider to set one");return n},QueryClientProvider=({client:e,children:n})=>(c.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.createElement(f.Provider,{value:e},n))},30793:function(e,n,l){"use strict";l.d(n,{r:function(){return useBaseQuery}});var c=l(2265),f=l(17987);function createValue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var d=c.createContext(createValue()),useQueryErrorResetBoundary=()=>c.useContext(d),h=l(38038),g=c.createContext(!1),useIsRestoring=()=>c.useContext(g);g.Provider;var y=l(14805),ensurePreventErrorBoundaryRetry=(e,n)=>{(e.suspense||e.throwOnError)&&!n.isReset()&&(e.retryOnMount=!1)},useClearResetErrorBoundary=e=>{c.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:n,throwOnError:l,query:c})=>e.isError&&!n.isReset()&&!e.isFetching&&(0,y.L)(l,[e.error,c]),ensureStaleTime=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},willFetch=(e,n)=>e.isLoading&&e.isFetching&&!n,shouldSuspend=(e,n,l)=>e?.suspense&&willFetch(n,l),fetchOptimistic=(e,n,l)=>n.fetchOptimistic(e).catch(()=>{l.clearReset()});function useBaseQuery(e,n,l){let d=(0,h.NL)(l),g=useIsRestoring(),y=useQueryErrorResetBoundary(),b=d.defaultQueryOptions(e);b._optimisticResults=g?"isRestoring":"optimistic",ensureStaleTime(b),ensurePreventErrorBoundaryRetry(b,y),useClearResetErrorBoundary(y);let[w]=c.useState(()=>new n(d,b)),A=w.getOptimisticResult(b);if(c.useSyncExternalStore(c.useCallback(e=>{let n=g?()=>void 0:w.subscribe(f.V.batchCalls(e));return w.updateResult(),n},[w,g]),()=>w.getCurrentResult(),()=>w.getCurrentResult()),c.useEffect(()=>{w.setOptions(b,{listeners:!1})},[b,w]),shouldSuspend(b,A,g))throw fetchOptimistic(b,w,y);if(getHasError({result:A,errorResetBoundary:y,throwOnError:b.throwOnError,query:w.getCurrentQuery()}))throw A.error;return b.notifyOnChangeProps?A:w.trackResult(A)}},23588:function(e,n,l){"use strict";l.d(n,{D:function(){return useMutation}});var c=l(2265),f=l(77470),d=l(17987),h=l(42996),g=l(40300),y=class extends h.l{constructor(e,n){super(),this.#f=void 0,this.#h=e,this.setOptions(n),this.bindMethods(),this.#U()}#h;#f;#L;#N;bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let n=this.options;this.options=this.#h.defaultMutationOptions(e),(0,g.VS)(n,this.options)||this.#h.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#L,observer:this}),this.#L?.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#L?.removeObserver(this)}onMutationUpdate(e){this.#U(),this.#k(e)}getCurrentResult(){return this.#f}reset(){this.#L=void 0,this.#U(),this.#k()}mutate(e,n){return this.#N=n,this.#L?.removeObserver(this),this.#L=this.#h.getMutationCache().build(this.#h,this.options),this.#L.addObserver(this),this.#L.execute(e)}#U(){let e=this.#L?.state??(0,f.R)();this.#f={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#k(e){d.V.batch(()=>{this.#N&&this.hasListeners()&&(e?.type==="success"?(this.#N.onSuccess?.(e.data,this.#f.variables,this.#f.context),this.#N.onSettled?.(e.data,null,this.#f.variables,this.#f.context)):e?.type==="error"&&(this.#N.onError?.(e.error,this.#f.variables,this.#f.context),this.#N.onSettled?.(void 0,e.error,this.#f.variables,this.#f.context))),this.listeners.forEach(e=>{e(this.#f)})})}},b=l(38038),w=l(14805);function useMutation(e,n){let l=(0,b.NL)(n),[f]=c.useState(()=>new y(l,e));c.useEffect(()=>{f.setOptions(e)},[f,e]);let h=c.useSyncExternalStore(c.useCallback(e=>f.subscribe(d.V.batchCalls(e)),[f]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),g=c.useCallback((e,n)=>{f.mutate(e,n).catch(noop)},[f]);if(h.error&&(0,w.L)(f.options.throwOnError,[h.error]))throw h.error;return{...h,mutate:g,mutateAsync:h.mutate}}function noop(){}},94152:function(e,n,l){"use strict";l.d(n,{a:function(){return useQuery}});var c=l(57501),f=l(30793);function useQuery(e,n){return(0,f.r)(e,c.z,n)}},14805:function(e,n,l){"use strict";function shouldThrowError(e,n){return"function"==typeof e?e(...n):!!e}l.d(n,{L:function(){return shouldThrowError}})},29222:function(e,n,l){"use strict";let c;function bind(e,n){return function(){return e.apply(n,arguments)}}l.d(n,{Z:function(){return eI}});let{toString:f}=Object.prototype,{getPrototypeOf:d}=Object,h=(H=Object.create(null),e=>{let n=f.call(e);return H[n]||(H[n]=n.slice(8,-1).toLowerCase())}),kindOfTest=e=>(e=e.toLowerCase(),n=>h(n)===e),typeOfTest=e=>n=>typeof n===e,{isArray:g}=Array,y=typeOfTest("undefined");function isBuffer(e){return null!==e&&!y(e)&&null!==e.constructor&&!y(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let b=kindOfTest("ArrayBuffer");function isArrayBufferView(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer)}let w=typeOfTest("string"),A=typeOfTest("function"),B=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==h(e))return!1;let n=d(e);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},x=kindOfTest("Date"),O=kindOfTest("File"),R=kindOfTest("Blob"),S=kindOfTest("FileList"),C=kindOfTest("URLSearchParams");function forEach(e,n,{allOwnKeys:l=!1}={}){let c,f;if(null!=e){if("object"!=typeof e&&(e=[e]),g(e))for(c=0,f=e.length;c0;)if(n===(l=c[f]).toLowerCase())return l;return null}let k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!y(e)&&e!==k;function merge(){let{caseless:e}=isContextDefined(this)&&this||{},n={},assignValue=(l,c)=>{let f=e&&findKey(n,c)||c;isPlainObject(n[f])&&isPlainObject(l)?n[f]=merge(n[f],l):isPlainObject(l)?n[f]=merge({},l):g(l)?n[f]=l.slice():n[f]=l};for(let e=0,n=arguments.length;eQ&&e instanceof Q),U=kindOfTest("HTMLFormElement"),L=(({hasOwnProperty:e})=>(n,l)=>e.call(n,l))(Object.prototype),N=kindOfTest("RegExp"),reduceDescriptors=(e,n)=>{let l=Object.getOwnPropertyDescriptors(e),c={};forEach(l,(l,f)=>{let d;!1!==(d=n(l,f,e))&&(c[f]=d||l)}),Object.defineProperties(e,c)},_="abcdefghijklmnopqrstuvwxyz",F="0123456789",V={DIGIT:F,ALPHA:_,ALPHA_DIGIT:_+_.toUpperCase()+F};function isSpecCompliantForm(e){return!!(e&&A(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}let z=kindOfTest("AsyncFunction");var H,Q,K={isArray:g,isArrayBuffer:b,isBuffer,isFormData:e=>{let n;return e&&("function"==typeof FormData&&e instanceof FormData||A(e.append)&&("formdata"===(n=h(e))||"object"===n&&A(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView,isString:w,isNumber:B,isBoolean:e=>!0===e||!1===e,isObject,isPlainObject,isUndefined:y,isDate:x,isFile:O,isBlob:R,isRegExp:N,isFunction:A,isStream:e=>isObject(e)&&A(e.pipe),isURLSearchParams:C,isTypedArray:P,isFileList:S,forEach,merge,extend:(e,n,l,{allOwnKeys:c}={})=>(forEach(n,(n,c)=>{l&&A(n)?e[c]=bind(n,l):e[c]=n},{allOwnKeys:c}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,n,l,c)=>{e.prototype=Object.create(n.prototype,c),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),l&&Object.assign(e.prototype,l)},toFlatObject:(e,n,l,c)=>{let f,h,g;let y={};if(n=n||{},null==e)return n;do{for(h=(f=Object.getOwnPropertyNames(e)).length;h-- >0;)g=f[h],(!c||c(g,e,n))&&!y[g]&&(n[g]=e[g],y[g]=!0);e=!1!==l&&d(e)}while(e&&(!l||l(e,n))&&e!==Object.prototype);return n},kindOf:h,kindOfTest,endsWith:(e,n,l)=>{e=String(e),(void 0===l||l>e.length)&&(l=e.length),l-=n.length;let c=e.indexOf(n,l);return -1!==c&&c===l},toArray:e=>{if(!e)return null;if(g(e))return e;let n=e.length;if(!B(n))return null;let l=Array(n);for(;n-- >0;)l[n]=e[n];return l},forEachEntry:(e,n)=>{let l;let c=e&&e[Symbol.iterator],f=c.call(e);for(;(l=f.next())&&!l.done;){let c=l.value;n.call(e,c[0],c[1])}},matchAll:(e,n)=>{let l;let c=[];for(;null!==(l=e.exec(n));)c.push(l);return c},isHTMLForm:U,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(n,l)=>{if(A(e)&&-1!==["arguments","caller","callee"].indexOf(l))return!1;let c=e[l];if(A(c)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+l+"'")})}})},toObjectSet:(e,n)=>{let l={};return(e=>{e.forEach(e=>{l[e]=!0})})(g(e)?e:String(e).split(n)),l},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,l){return n.toUpperCase()+l}),noop:()=>{},toFiniteNumber:(e,n)=>Number.isFinite(e=+e)?e:n,findKey,global:k,isContextDefined,ALPHABET:V,generateString:(e=16,n=V.ALPHA_DIGIT)=>{let l="",{length:c}=n;for(;e--;)l+=n[Math.random()*c|0];return l},isSpecCompliantForm,toJSONObject:e=>{let n=Array(10),visit=(e,l)=>{if(isObject(e)){if(n.indexOf(e)>=0)return;if(!("toJSON"in e)){n[l]=e;let c=g(e)?[]:{};return forEach(e,(e,n)=>{let f=visit(e,l+1);y(f)||(c[n]=f)}),n[l]=void 0,c}}return e};return visit(e,0)},isAsyncFn:z,isThenable:e=>e&&(isObject(e)||A(e))&&A(e.then)&&A(e.catch)};function AxiosError(e,n,l,c,f){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),l&&(this.config=l),c&&(this.request=c),f&&(this.response=f)}K.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let Y=AxiosError.prototype,X={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{X[e]={value:e}}),Object.defineProperties(AxiosError,X),Object.defineProperty(Y,"isAxiosError",{value:!0}),AxiosError.from=(e,n,l,c,f,d)=>{let h=Object.create(Y);return K.toFlatObject(e,h,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(h,e.message,n,l,c,f),h.cause=e,h.name=e.name,d&&Object.assign(h,d),h};var et=AxiosError,er=l(67133).lW;function isVisitable(e){return K.isPlainObject(e)||K.isArray(e)}function removeBrackets(e){return K.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,n,l){return e?e.concat(n).map(function(e,n){return e=removeBrackets(e),!l&&n?"["+e+"]":e}).join(l?".":""):n}function isFlatArray(e){return K.isArray(e)&&!e.some(isVisitable)}let en=K.toFlatObject(K,{},null,function(e){return/^is[A-Z]/.test(e)});var helpers_toFormData=function(e,n,l){if(!K.isObject(e))throw TypeError("target must be an object");n=n||new FormData,l=K.toFlatObject(l,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,n){return!K.isUndefined(n[e])});let c=l.metaTokens,f=l.visitor||defaultVisitor,d=l.dots,h=l.indexes,g=l.Blob||"undefined"!=typeof Blob&&Blob,y=g&&K.isSpecCompliantForm(n);if(!K.isFunction(f))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(K.isDate(e))return e.toISOString();if(!y&&K.isBlob(e))throw new et("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(e)||K.isTypedArray(e)?y&&"function"==typeof Blob?new Blob([e]):er.from(e):e}function defaultVisitor(e,l,f){let g=e;if(e&&!f&&"object"==typeof e){if(K.endsWith(l,"{}"))l=c?l:l.slice(0,-2),e=JSON.stringify(e);else if(K.isArray(e)&&isFlatArray(e)||(K.isFileList(e)||K.endsWith(l,"[]"))&&(g=K.toArray(e)))return l=removeBrackets(l),g.forEach(function(e,c){K.isUndefined(e)||null===e||n.append(!0===h?renderKey([l],c,d):null===h?l:l+"[]",convertValue(e))}),!1}return!!isVisitable(e)||(n.append(renderKey(f,l,d),convertValue(e)),!1)}let b=[],w=Object.assign(en,{defaultVisitor,convertValue,isVisitable});function build(e,l){if(!K.isUndefined(e)){if(-1!==b.indexOf(e))throw Error("Circular reference detected in "+l.join("."));b.push(e),K.forEach(e,function(e,c){let d=!(K.isUndefined(e)||null===e)&&f.call(n,e,K.isString(c)?c.trim():c,l,w);!0===d&&build(e,l?l.concat(c):[c])}),b.pop()}}if(!K.isObject(e))throw TypeError("data must be an object");return build(e),n};function encode(e){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return n[e]})}function AxiosURLSearchParams(e,n){this._pairs=[],e&&helpers_toFormData(e,this,n)}let ei=AxiosURLSearchParams.prototype;ei.append=function(e,n){this._pairs.push([e,n])},ei.toString=function(e){let n=e?function(n){return e.call(this,n,encode)}:encode;return this._pairs.map(function(e){return n(e[0])+"="+n(e[1])},"").join("&")};var eo=AxiosURLSearchParams;function buildURL_encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,n,l){let c;if(!n)return e;let f=l&&l.encode||buildURL_encode,d=l&&l.serialize;if(c=d?d(n,l):K.isURLSearchParams(n)?n.toString():new eo(n,l).toString(f)){let n=e.indexOf("#");-1!==n&&(e=e.slice(0,n)),e+=(-1===e.indexOf("?")?"?":"&")+c}return e}let InterceptorManager=class InterceptorManager{constructor(){this.handlers=[]}use(e,n,l){return this.handlers.push({fulfilled:e,rejected:n,synchronous:!!l&&l.synchronous,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){K.forEach(this.handlers,function(n){null!==n&&e(n)})}};var es={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ea="undefined"!=typeof URLSearchParams?URLSearchParams:eo,eu="undefined"!=typeof FormData?FormData:null,el="undefined"!=typeof Blob?Blob:null;let ec=("undefined"==typeof navigator||"ReactNative"!==(c=navigator.product)&&"NativeScript"!==c&&"NS"!==c)&&"undefined"!=typeof window&&"undefined"!=typeof document,ef="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ed={classes:{URLSearchParams:ea,FormData:eu,Blob:el},isStandardBrowserEnv:ec,isStandardBrowserWebWorkerEnv:ef,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm(e,n){return helpers_toFormData(e,new ed.classes.URLSearchParams,Object.assign({visitor:function(e,n,l,c){return ed.isNode&&K.isBuffer(e)?(this.append(n,e.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)}},n))}function parsePropPath(e){return K.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function arrayToObject(e){let n,l;let c={},f=Object.keys(e),d=f.length;for(n=0;n=e.length;if(f=!f&&K.isArray(l)?l.length:f,h)return K.hasOwnProp(l,f)?l[f]=[l[f],n]:l[f]=n,!d;l[f]&&K.isObject(l[f])||(l[f]=[]);let g=buildPath(e,n,l[f],c);return g&&K.isArray(l[f])&&(l[f]=arrayToObject(l[f])),!d}if(K.isFormData(e)&&K.isFunction(e.entries)){let n={};return K.forEachEntry(e,(e,l)=>{buildPath(parsePropPath(e),l,n,0)}),n}return null};function stringifySafely(e,n,l){if(K.isString(e))try{return(n||JSON.parse)(e),K.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(l||JSON.stringify)(e)}let eh={transitional:es,adapter:["xhr","http"],transformRequest:[function(e,n){let l;let c=n.getContentType()||"",f=c.indexOf("application/json")>-1,d=K.isObject(e);d&&K.isHTMLForm(e)&&(e=new FormData(e));let h=K.isFormData(e);if(h)return f&&f?JSON.stringify(helpers_formDataToJSON(e)):e;if(K.isArrayBuffer(e)||K.isBuffer(e)||K.isStream(e)||K.isFile(e)||K.isBlob(e))return e;if(K.isArrayBufferView(e))return e.buffer;if(K.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(d){if(c.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(e,this.formSerializer).toString();if((l=K.isFileList(e))||c.indexOf("multipart/form-data")>-1){let n=this.env&&this.env.FormData;return helpers_toFormData(l?{"files[]":e}:e,n&&new n,this.formSerializer)}}return d||f?(n.setContentType("application/json",!1),stringifySafely(e)):e}],transformResponse:[function(e){let n=this.transitional||eh.transitional,l=n&&n.forcedJSONParsing,c="json"===this.responseType;if(e&&K.isString(e)&&(l&&!this.responseType||c)){let l=n&&n.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!l&&c){if("SyntaxError"===e.name)throw et.from(e,et.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ed.classes.FormData,Blob:ed.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],e=>{eh.headers[e]={}});let ep=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var parseHeaders=e=>{let n,l,c;let f={};return e&&e.split("\n").forEach(function(e){c=e.indexOf(":"),n=e.substring(0,c).trim().toLowerCase(),l=e.substring(c+1).trim(),!n||f[n]&&ep[n]||("set-cookie"===n?f[n]?f[n].push(l):f[n]=[l]:f[n]=f[n]?f[n]+", "+l:l)}),f};let eg=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:K.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){let n;let l=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=c.exec(e);)l[n[1]]=n[2];return l}let isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,n,l,c,f){if(K.isFunction(c))return c.call(this,n,l);if(f&&(n=l),K.isString(n)){if(K.isString(c))return -1!==n.indexOf(c);if(K.isRegExp(c))return c.test(n)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,l)=>n.toUpperCase()+l)}function buildAccessors(e,n){let l=K.toCamelCase(" "+n);["get","set","has"].forEach(c=>{Object.defineProperty(e,c+l,{value:function(e,l,f){return this[c].call(this,n,e,l,f)},configurable:!0})})}let AxiosHeaders=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,n,l){let c=this;function setHeader(e,n,l){let f=normalizeHeader(n);if(!f)throw Error("header name must be a non-empty string");let d=K.findKey(c,f);d&&void 0!==c[d]&&!0!==l&&(void 0!==l||!1===c[d])||(c[d||n]=normalizeValue(e))}let setHeaders=(e,n)=>K.forEach(e,(e,l)=>setHeader(e,l,n));return K.isPlainObject(e)||e instanceof this.constructor?setHeaders(e,n):K.isString(e)&&(e=e.trim())&&!isValidHeaderName(e)?setHeaders(parseHeaders(e),n):null!=e&&setHeader(n,e,l),this}get(e,n){if(e=normalizeHeader(e)){let l=K.findKey(this,e);if(l){let e=this[l];if(!n)return e;if(!0===n)return parseTokens(e);if(K.isFunction(n))return n.call(this,e,l);if(K.isRegExp(n))return n.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=normalizeHeader(e)){let l=K.findKey(this,e);return!!(l&&void 0!==this[l]&&(!n||matchHeaderValue(this,this[l],l,n)))}return!1}delete(e,n){let l=this,c=!1;function deleteHeader(e){if(e=normalizeHeader(e)){let f=K.findKey(l,e);f&&(!n||matchHeaderValue(l,l[f],f,n))&&(delete l[f],c=!0)}}return K.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),c}clear(e){let n=Object.keys(this),l=n.length,c=!1;for(;l--;){let f=n[l];(!e||matchHeaderValue(this,this[f],f,e,!0))&&(delete this[f],c=!0)}return c}normalize(e){let n=this,l={};return K.forEach(this,(c,f)=>{let d=K.findKey(l,f);if(d){n[d]=normalizeValue(c),delete n[f];return}let h=e?formatHeader(f):String(f).trim();h!==f&&delete n[f],n[h]=normalizeValue(c),l[h]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let n=Object.create(null);return K.forEach(this,(l,c)=>{null!=l&&!1!==l&&(n[c]=e&&K.isArray(l)?l.join(", "):l)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){let l=new this(e);return n.forEach(e=>l.set(e)),l}static accessor(e){let n=this[eg]=this[eg]={accessors:{}},l=n.accessors,c=this.prototype;function defineAccessor(e){let n=normalizeHeader(e);l[n]||(buildAccessors(c,e),l[n]=!0)}return K.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}};function transformData(e,n){let l=this||eh,c=n||l,f=AxiosHeaders.from(c.headers),d=c.data;return K.forEach(e,function(e){d=e.call(l,d,f.normalize(),n?n.status:void 0)}),f.normalize(),d}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,n,l){et.call(this,null==e?"canceled":e,et.ERR_CANCELED,n,l),this.name="CanceledError"}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),K.reduceDescriptors(AxiosHeaders.prototype,({value:e},n)=>{let l=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(e){this[l]=e}}}),K.freezeMethods(AxiosHeaders),K.inherits(CanceledError,et,{__CANCEL__:!0});var ey=CanceledError;function settle(e,n,l){let c=l.config.validateStatus;!l.status||!c||c(l.status)?e(l):n(new et("Request failed with status code "+l.status,[et.ERR_BAD_REQUEST,et.ERR_BAD_RESPONSE][Math.floor(l.status/100)-4],l.config,l.request,l))}var em=ed.isStandardBrowserEnv?{write:function(e,n,l,c,f,d){let h=[];h.push(e+"="+encodeURIComponent(n)),K.isNumber(l)&&h.push("expires="+new Date(l).toGMTString()),K.isString(c)&&h.push("path="+c),K.isString(f)&&h.push("domain="+f),!0===d&&h.push("secure"),document.cookie=h.join("; ")},read:function(e){let n=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}function buildFullPath(e,n){return e&&!isAbsoluteURL(n)?combineURLs(e,n):n}var eb=ed.isStandardBrowserEnv?function(){let e;let n=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a");function resolveURL(e){let c=e;return n&&(l.setAttribute("href",c),c=l.href),l.setAttribute("href",c),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:"/"===l.pathname.charAt(0)?l.pathname:"/"+l.pathname}}return e=resolveURL(window.location.href),function(n){let l=K.isString(n)?resolveURL(n):n;return l.protocol===e.protocol&&l.host===e.host}}():function(){return!0};function parseProtocol(e){let n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}var helpers_speedometer=function(e,n){let l;e=e||10;let c=Array(e),f=Array(e),d=0,h=0;return n=void 0!==n?n:1e3,function(g){let y=Date.now(),b=f[h];l||(l=y),c[d]=g,f[d]=y;let w=h,A=0;for(;w!==d;)A+=c[w++],w%=e;if((d=(d+1)%e)===h&&(h=(h+1)%e),y-l{let d=f.loaded,h=f.lengthComputable?f.total:void 0,g=d-l,y=c(g),b=d<=h;l=d;let w={loaded:d,total:h,progress:h?d/h:void 0,bytes:g,rate:y||void 0,estimated:y&&h&&b?(h-d)/y:void 0,event:f};w[n?"download":"upload"]=!0,e(w)}}let ev="undefined"!=typeof XMLHttpRequest;var ew=ev&&function(e){return new Promise(function(n,l){let c,f,d=e.data,h=AxiosHeaders.from(e.headers).normalize(),g=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}K.isFormData(d)&&(ed.isStandardBrowserEnv||ed.isStandardBrowserWebWorkerEnv?h.setContentType(!1):h.getContentType(/^\s*multipart\/form-data/)?K.isString(f=h.getContentType())&&h.setContentType(f.replace(/^\s*(multipart\/form-data);+/,"$1")):h.setContentType("multipart/form-data"));let y=new XMLHttpRequest;if(e.auth){let n=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.set("Authorization","Basic "+btoa(n+":"+l))}let b=buildFullPath(e.baseURL,e.url);function onloadend(){if(!y)return;let c=AxiosHeaders.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),f=g&&"text"!==g&&"json"!==g?y.response:y.responseText,d={data:f,status:y.status,statusText:y.statusText,headers:c,config:e,request:y};settle(function(e){n(e),done()},function(e){l(e),done()},d),y=null}if(y.open(e.method.toUpperCase(),buildURL(b,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=onloadend:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(onloadend)},y.onabort=function(){y&&(l(new et("Request aborted",et.ECONNABORTED,e,y)),y=null)},y.onerror=function(){l(new et("Network Error",et.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let n=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",c=e.transitional||es;e.timeoutErrorMessage&&(n=e.timeoutErrorMessage),l(new et(n,c.clarifyTimeoutError?et.ETIMEDOUT:et.ECONNABORTED,e,y)),y=null},ed.isStandardBrowserEnv){let n=eb(b)&&e.xsrfCookieName&&em.read(e.xsrfCookieName);n&&h.set(e.xsrfHeaderName,n)}void 0===d&&h.setContentType(null),"setRequestHeader"in y&&K.forEach(h.toJSON(),function(e,n){y.setRequestHeader(n,e)}),K.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",progressEventReducer(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",progressEventReducer(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=n=>{y&&(l(!n||n.type?new ey(null,e,y):n),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));let w=parseProtocol(b);if(w&&-1===ed.protocols.indexOf(w)){l(new et("Unsupported protocol "+w+":",et.ERR_BAD_REQUEST,e));return}y.send(d||null)})};let eE={http:null,xhr:ew};K.forEach(eE,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch(e){}Object.defineProperty(e,"adapterName",{value:n})}});let renderReason=e=>`- ${e}`,isResolvedHandle=e=>K.isFunction(e)||null===e||!1===e;var eA={getAdapter:e=>{let n,l;e=K.isArray(e)?e:[e];let{length:c}=e,f={};for(let d=0;d`adapter ${e} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new et("There is no suitable adapter to dispatch the request "+(c?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return l},adapters:eE};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ey(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let n=eA.getAdapter(e.adapter||eh.adapter);return n(e).then(function(n){return throwIfCancellationRequested(e),n.data=transformData.call(e,e.transformResponse,n),n.headers=AxiosHeaders.from(n.headers),n},function(n){return!isCancel(n)&&(throwIfCancellationRequested(e),n&&n.response&&(n.response.data=transformData.call(e,e.transformResponse,n.response),n.response.headers=AxiosHeaders.from(n.response.headers))),Promise.reject(n)})}let headersToObject=e=>e instanceof AxiosHeaders?e.toJSON():e;function mergeConfig(e,n){n=n||{};let l={};function getMergedValue(e,n,l){return K.isPlainObject(e)&&K.isPlainObject(n)?K.merge.call({caseless:l},e,n):K.isPlainObject(n)?K.merge({},n):K.isArray(n)?n.slice():n}function mergeDeepProperties(e,n,l){return K.isUndefined(n)?K.isUndefined(e)?void 0:getMergedValue(void 0,e,l):getMergedValue(e,n,l)}function valueFromConfig2(e,n){if(!K.isUndefined(n))return getMergedValue(void 0,n)}function defaultToConfig2(e,n){return K.isUndefined(n)?K.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,n)}function mergeDirectKeys(l,c,f){return f in n?getMergedValue(l,c):f in e?getMergedValue(void 0,l):void 0}let c={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,n)=>mergeDeepProperties(headersToObject(e),headersToObject(n),!0)};return K.forEach(Object.keys(Object.assign({},e,n)),function(f){let d=c[f]||mergeDeepProperties,h=d(e[f],n[f],f);K.isUndefined(h)&&d!==mergeDirectKeys||(l[f]=h)}),l}let eB="1.6.0",ex={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{ex[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});let eO={};ex.transitional=function(e,n,l){function formatMessage(e,n){return"[Axios v"+eB+"] Transitional option '"+e+"'"+n+(l?". "+l:"")}return(l,c,f)=>{if(!1===e)throw new et(formatMessage(c," has been removed"+(n?" in "+n:"")),et.ERR_DEPRECATED);return n&&!eO[c]&&(eO[c]=!0,console.warn(formatMessage(c," has been deprecated since v"+n+" and will be removed in the near future"))),!e||e(l,c,f)}};var eR={assertOptions:function(e,n,l){if("object"!=typeof e)throw new et("options must be an object",et.ERR_BAD_OPTION_VALUE);let c=Object.keys(e),f=c.length;for(;f-- >0;){let d=c[f],h=n[d];if(h){let n=e[d],l=void 0===n||h(n,d,e);if(!0!==l)throw new et("option "+d+" must be "+l,et.ERR_BAD_OPTION_VALUE);continue}if(!0!==l)throw new et("Unknown option "+d,et.ERR_BAD_OPTION)}},validators:ex};let eS=eR.validators;let Axios=class Axios{constructor(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}request(e,n){let l,c;"string"==typeof e?(n=n||{}).url=e:n=e||{},n=mergeConfig(this.defaults,n);let{transitional:f,paramsSerializer:d,headers:h}=n;void 0!==f&&eR.assertOptions(f,{silentJSONParsing:eS.transitional(eS.boolean),forcedJSONParsing:eS.transitional(eS.boolean),clarifyTimeoutError:eS.transitional(eS.boolean)},!1),null!=d&&(K.isFunction(d)?n.paramsSerializer={serialize:d}:eR.assertOptions(d,{encode:eS.function,serialize:eS.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let g=h&&K.merge(h.common,h[n.method]);h&&K.forEach(["delete","get","head","post","put","patch","common"],e=>{delete h[e]}),n.headers=AxiosHeaders.concat(g,h);let y=[],b=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(n))&&(b=b&&e.synchronous,y.unshift(e.fulfilled,e.rejected))});let w=[];this.interceptors.response.forEach(function(e){w.push(e.fulfilled,e.rejected)});let A=0;if(!b){let e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,y),e.push.apply(e,w),c=e.length,l=Promise.resolve(n);A{if(!l._listeners)return;let n=l._listeners.length;for(;n-- >0;)l._listeners[n](e);l._listeners=null}),this.promise.then=e=>{let n;let c=new Promise(e=>{l.subscribe(e),n=e}).then(e);return c.cancel=function(){l.unsubscribe(n)},c},e(function(e,c,f){l.reason||(l.reason=new ey(e,c,f),n(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let n=this._listeners.indexOf(e);-1!==n&&this._listeners.splice(n,1)}static source(){let e;let n=new CancelToken(function(n){e=n});return{token:n,cancel:e}}};function spread(e){return function(n){return e.apply(null,n)}}function isAxiosError(e){return K.isObject(e)&&!0===e.isAxiosError}let eT={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};function createInstance(e){let n=new Axios(e),l=bind(Axios.prototype.request,n);return K.extend(l,Axios.prototype,n,{allOwnKeys:!0}),K.extend(l,n,null,{allOwnKeys:!0}),l.create=function(n){return createInstance(mergeConfig(e,n))},l}Object.entries(eT).forEach(([e,n])=>{eT[n]=e});let eC=createInstance(eh);eC.Axios=Axios,eC.CanceledError=ey,eC.CancelToken=CancelToken,eC.isCancel=isCancel,eC.VERSION=eB,eC.toFormData=helpers_toFormData,eC.AxiosError=et,eC.Cancel=eC.CanceledError,eC.all=function(e){return Promise.all(e)},eC.spread=spread,eC.isAxiosError=isAxiosError,eC.mergeConfig=mergeConfig,eC.AxiosHeaders=AxiosHeaders,eC.formToJSON=e=>helpers_formDataToJSON(K.isHTMLForm(e)?new FormData(e):e),eC.getAdapter=eA.getAdapter,eC.HttpStatusCode=eT,eC.default=eC;var eI=eC},96061:function(e,n,l){"use strict";l.d(n,{j:function(){return cva}});var c=l(57042);let falsyToString=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,f=c.W,cva=(e,n)=>l=>{var c;if((null==n?void 0:n.variants)==null)return f(e,null==l?void 0:l.class,null==l?void 0:l.className);let{variants:d,defaultVariants:h}=n,g=Object.keys(d).map(e=>{let n=null==l?void 0:l[e],c=null==h?void 0:h[e];if(null===n)return null;let f=falsyToString(n)||falsyToString(c);return d[e][f]}),y=l&&Object.entries(l).reduce((e,n)=>{let[l,c]=n;return void 0===c||(e[l]=c),e},{}),b=null==n?void 0:null===(c=n.compoundVariants)||void 0===c?void 0:c.reduce((e,n)=>{let{class:l,className:c,...f}=n;return Object.entries(f).every(e=>{let[n,l]=e;return Array.isArray(l)?l.includes({...h,...y}[n]):({...h,...y})[n]===l})?[...e,l,c]:e},[]);return f(e,g,b,null==l?void 0:l.class,null==l?void 0:l.className)}},57042:function(e,n,l){"use strict";function r(e){var n,l,c="";if("string"==typeof e||"number"==typeof e)c+=e;else if("object"==typeof e){if(Array.isArray(e))for(n=0;n"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||h,g=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,y=/\/\*[^]*?\*\/| +/g,b=/\n+/g,o=(e,n)=>{let l="",c="",f="";for(let d in e){let h=e[d];"@"==d[0]?"i"==d[1]?l=d+" "+h+";":c+="f"==d[1]?o(h,d):d+"{"+o(h,"k"==d[1]?"":n)+"}":"object"==typeof h?c+=o(h,n?n.replace(/([^,])+/g,e=>d.replace(/(^:.*)|([^,])+/g,n=>/&/.test(n)?n.replace(/&/g,e):e?e+" "+n:n)):d):null!=h&&(d=/^--/.test(d)?d:d.replace(/[A-Z]/g,"-$&").toLowerCase(),f+=o.p?o.p(d,h):d+":"+h+";")}return l+(n&&f?n+"{"+f+"}":f)+c},w={},s=e=>{if("object"==typeof e){let n="";for(let l in e)n+=l+s(e[l]);return n}return e},i=(e,n,l,c,f)=>{var d;let h=s(e),A=w[h]||(w[h]=(e=>{let n=0,l=11;for(;n>>0;return"go"+l})(h));if(!w[A]){let n=h!==e?e:(e=>{let n,l,c=[{}];for(;n=g.exec(e.replace(y,""));)n[4]?c.shift():n[3]?(l=n[3].replace(b," ").trim(),c.unshift(c[0][l]=c[0][l]||{})):c[0][n[1]]=n[2].replace(b," ").trim();return c[0]})(e);w[A]=o(f?{["@keyframes "+A]:n}:n,l?"":"."+A)}let B=l&&w.g?w.g:null;return l&&(w.g=w[A]),d=w[A],B?n.data=n.data.replace(B,d):-1===n.data.indexOf(d)&&(n.data=c?d+n.data:n.data+d),A},p=(e,n,l)=>e.reduce((e,c,f)=>{let d=n[f];if(d&&d.call){let e=d(l),n=e&&e.props&&e.props.className||/^go/.test(e)&&e;d=n?"."+n:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e}return e+c+(null==d?"":d)},"");function u(e){let n=this||{},l=e.call?e(n.p):e;return i(l.unshift?l.raw?p(l,[].slice.call(arguments,1),n.p):l.reduce((e,l)=>Object.assign(e,l&&l.call?l(n.p):l),{}):l,t(n.target),n.g,n.o,n.k)}u.bind({g:1});let A,B,x,O=u.bind({k:1});function m(e,n,l,c){o.p=n,A=e,B=l,x=c}function j(e,n){let l=this||{};return function(){let c=arguments;function a(f,d){let h=Object.assign({},f),g=h.className||a.className;l.p=Object.assign({theme:B&&B()},h),l.o=/ *go\d+/.test(g),h.className=u.apply(l,c)+(g?" "+g:""),n&&(h.ref=d);let y=e;return e[0]&&(y=h.as||e,delete h.as),x&&y[0]&&x(h),A(y,h)}return n?n(a):a}}var W=e=>"function"==typeof e,T=(e,n)=>W(e)?e(n):e,R=(c=0,()=>(++c).toString()),dist_b=()=>{if(void 0===f&&"u">typeof window){let e=matchMedia("(prefers-reduced-motion: reduce)");f=!e||e.matches}return f},S=new Map,$=e=>{if(S.has(e))return;let n=setTimeout(()=>{S.delete(e),dist_u({type:4,toastId:e})},1e3);S.set(e,n)},J=e=>{let n=S.get(e);n&&clearTimeout(n)},v=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,20)};case 1:return n.toast.id&&J(n.toast.id),{...e,toasts:e.toasts.map(e=>e.id===n.toast.id?{...e,...n.toast}:e)};case 2:let{toast:l}=n;return e.toasts.find(e=>e.id===l.id)?v(e,{type:1,toast:l}):v(e,{type:0,toast:l});case 3:let{toastId:c}=n;return c?$(c):e.toasts.forEach(e=>{$(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===c||void 0===c?{...e,visible:!1}:e)};case 4:return void 0===n.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let f=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+f}))}}},C=[],k={toasts:[],pausedAt:void 0},dist_u=e=>{k=v(k,e),C.forEach(e=>{e(k)})},P={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},I=(e={})=>{let[n,l]=(0,d.useState)(k);(0,d.useEffect)(()=>(C.push(l),()=>{let e=C.indexOf(l);e>-1&&C.splice(e,1)}),[n]);let c=n.toasts.map(n=>{var l,c;return{...e,...e[n.type],...n,duration:n.duration||(null==(l=e[n.type])?void 0:l.duration)||(null==e?void 0:e.duration)||P[n.type],style:{...e.style,...null==(c=e[n.type])?void 0:c.style,...n.style}}});return{...n,toasts:c}},G=(e,n="blank",l)=>({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...l,id:(null==l?void 0:l.id)||R()}),dist_h=e=>(n,l)=>{let c=G(n,e,l);return dist_u({type:2,toast:c}),c.id},dist_n=(e,n)=>dist_h("blank")(e,n);dist_n.error=dist_h("error"),dist_n.success=dist_h("success"),dist_n.loading=dist_h("loading"),dist_n.custom=dist_h("custom"),dist_n.dismiss=e=>{dist_u({type:3,toastId:e})},dist_n.remove=e=>dist_u({type:4,toastId:e}),dist_n.promise=(e,n,l)=>{let c=dist_n.loading(n.loading,{...l,...null==l?void 0:l.loading});return e.then(e=>(dist_n.success(T(n.success,e),{id:c,...l,...null==l?void 0:l.success}),e)).catch(e=>{dist_n.error(T(n.error,e),{id:c,...l,...null==l?void 0:l.error})}),e};var Z=(e,n)=>{dist_u({type:1,toast:{id:e,height:n}})},ee=()=>{dist_u({type:5,time:Date.now()})},D=e=>{let{toasts:n,pausedAt:l}=I(e);(0,d.useEffect)(()=>{if(l)return;let e=Date.now(),c=n.map(n=>{if(n.duration===1/0)return;let l=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(l<0){n.visible&&dist_n.dismiss(n.id);return}return setTimeout(()=>dist_n.dismiss(n.id),l)});return()=>{c.forEach(e=>e&&clearTimeout(e))}},[n,l]);let c=(0,d.useCallback)(()=>{l&&dist_u({type:6,time:Date.now()})},[l]),f=(0,d.useCallback)((e,l)=>{let{reverseOrder:c=!1,gutter:f=8,defaultPosition:d}=l||{},h=n.filter(n=>(n.position||d)===(e.position||d)&&n.height),g=h.findIndex(n=>n.id===e.id),y=h.filter((e,n)=>ne.visible).slice(...c?[y+1]:[0,y]).reduce((e,n)=>e+(n.height||0)+f,0)},[n]);return{toasts:n,handlers:{updateHeight:Z,startPause:ee,endPause:c,calculateOffset:f}}},U=O` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,L=O` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,N=O` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,_=j("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${U} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${L} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${N} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,F=O` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,V=j("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${F} 1s linear infinite; +`,z=O` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,H=O` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,Q=j("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${z} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${H} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,K=j("div")` + position: absolute; +`,Y=j("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,X=O` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,et=j("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${X} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,M=({toast:e})=>{let{icon:n,type:l,iconTheme:c}=e;return void 0!==n?"string"==typeof n?d.createElement(et,null,n):n:"blank"===l?null:d.createElement(Y,null,d.createElement(V,{...c}),"loading"!==l&&d.createElement(K,null,"error"===l?d.createElement(_,{...c}):d.createElement(Q,{...c})))},ye=e=>` +0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,ge=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} +`,er=j("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,en=j("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,Ae=(e,n)=>{let l=e.includes("top")?1:-1,[c,f]=dist_b()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[ye(l),ge(l)];return{animation:n?`${O(c)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${O(f)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ei=d.memo(({toast:e,position:n,style:l,children:c})=>{let f=e.height?Ae(e.position||n||"top-center",e.visible):{opacity:0},h=d.createElement(M,{toast:e}),g=d.createElement(en,{...e.ariaProps},T(e.message,e));return d.createElement(er,{className:e.className,style:{...f,...l,...e.style}},"function"==typeof c?c({icon:h,message:g}):d.createElement(d.Fragment,null,h,g))});m(d.createElement);var Ee=({id:e,className:n,style:l,onHeightUpdate:c,children:f})=>{let h=d.useCallback(n=>{if(n){let i=()=>{c(e,n.getBoundingClientRect().height)};i(),new MutationObserver(i).observe(n,{subtree:!0,childList:!0,characterData:!0})}},[e,c]);return d.createElement("div",{ref:h,className:n,style:l},f)},Re=(e,n)=>{let l=e.includes("top"),c=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:dist_b()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(l?1:-1)}px)`,...l?{top:0}:{bottom:0},...c}},eo=u` + z-index: 9999; + > * { + pointer-events: auto; + } +`,Ie=({reverseOrder:e,position:n="top-center",toastOptions:l,gutter:c,children:f,containerStyle:h,containerClassName:g})=>{let{toasts:y,handlers:b}=D(l);return d.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...h},className:g,onMouseEnter:b.startPause,onMouseLeave:b.endPause},y.map(l=>{let h=l.position||n,g=Re(h,b.calculateOffset(l,{reverseOrder:e,gutter:c,defaultPosition:n}));return d.createElement(Ee,{id:l.id,key:l.id,onHeightUpdate:b.updateHeight,className:l.visible?eo:"",style:g},"custom"===l.type?T(l.message,l):f?f(l):d.createElement(ei,{toast:l,position:h}))}))},es=dist_n},23986:function(e,n,l){"use strict";function createClassUtils(e){var n=createClassMap(e),l=e.conflictingClassGroups,c=e.conflictingClassGroupModifiers,f=void 0===c?{}:c;return{getClassGroupId:function(e){var l=e.split("-");return""===l[0]&&1!==l.length&&l.shift(),getGroupRecursive(l,n)||getGroupIdForArbitraryProperty(e)},getConflictingClassGroupIds:function(e,n){var c=l[e]||[];return n&&f[e]?[].concat(c,f[e]):c}}}function getGroupRecursive(e,n){if(0===e.length)return n.classGroupId;var l=e[0],c=n.nextPart.get(l),f=c?getGroupRecursive(e.slice(1),c):void 0;if(f)return f;if(0!==n.validators.length){var d=e.join("-");return n.validators.find(function(e){return(0,e.validator)(d)})?.classGroupId}}l.d(n,{m:function(){return A}});var c=/^\[(.+)\]$/;function getGroupIdForArbitraryProperty(e){if(c.test(e)){var n=c.exec(e)[1],l=n?.substring(0,n.indexOf(":"));if(l)return"arbitrary.."+l}}function createClassMap(e){var n=e.theme,l=e.prefix,c={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(e.classGroups),l).forEach(function(e){var l=e[0];processClassesRecursively(e[1],c,l,n)}),c}function processClassesRecursively(e,n,l,c){e.forEach(function(e){if("string"==typeof e){(""===e?n:getPart(n,e)).classGroupId=l;return}if("function"==typeof e){if(isThemeGetter(e)){processClassesRecursively(e(c),n,l,c);return}n.validators.push({validator:e,classGroupId:l});return}Object.entries(e).forEach(function(e){var f=e[0];processClassesRecursively(e[1],getPart(n,f),l,c)})})}function getPart(e,n){var l=e;return n.split("-").forEach(function(e){l.nextPart.has(e)||l.nextPart.set(e,{nextPart:new Map,validators:[]}),l=l.nextPart.get(e)}),l}function isThemeGetter(e){return e.isThemeGetter}function getPrefixedClassGroupEntries(e,n){return n?e.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?n+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[n+e[0],e[1]]})):e})]}):e}function createLruCache(e){if(e<1)return{get:function(){},set:function(){}};var n=0,l=new Map,c=new Map;function update(f,d){l.set(f,d),++n>e&&(n=0,c=l,l=new Map)}return{get:function(e){var n=l.get(e);return void 0!==n?n:void 0!==(n=c.get(e))?(update(e,n),n):void 0},set:function(e,n){l.has(e)?l.set(e,n):update(e,n)}}}function createSplitModifiers(e){var n=e.separator||":",l=1===n.length,c=n[0],f=n.length;return function(e){for(var d,h=[],g=0,y=0,b=0;by?d-y:void 0}}}function sortModifiers(e){if(e.length<=1)return e;var n=[],l=[];return e.forEach(function(e){"["===e[0]?(n.push.apply(n,l.sort().concat([e])),l=[]):l.push(e)}),n.push.apply(n,l.sort()),n}function createConfigUtils(e){return{cache:createLruCache(e.cacheSize),splitModifiers:createSplitModifiers(e),...createClassUtils(e)}}var f=/\s+/;function mergeClassList(e,n){var l=n.splitModifiers,c=n.getClassGroupId,d=n.getConflictingClassGroupIds,h=new Set;return e.trim().split(f).map(function(e){var n=l(e),f=n.modifiers,d=n.hasImportantModifier,h=n.baseClassName,g=n.maybePostfixModifierPosition,y=c(g?h.substring(0,g):h),b=!!g;if(!y){if(!g||!(y=c(h)))return{isTailwindClass:!1,originalClassName:e};b=!1}var w=sortModifiers(f).join(":");return{isTailwindClass:!0,modifierId:d?w+"!":w,classGroupId:y,originalClassName:e,hasPostfixModifier:b}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var n=e.modifierId,l=e.classGroupId,c=e.hasPostfixModifier,f=n+l;return!h.has(f)&&(h.add(f),d(l,c).forEach(function(e){return h.add(n+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" ")}function twJoin(){for(var e,n,l=0,c="";l0?1:r}function differenceInCalendarMonths(e,n){(0,o.Z)(2,arguments);var t=(0,i.Z)(e),a=(0,i.Z)(n);return 12*(t.getFullYear()-a.getFullYear())+(t.getMonth()-a.getMonth())}function endOfDay(e){(0,o.Z)(1,arguments);var n=(0,i.Z)(e);return n.setHours(23,59,59,999),n}function endOfMonth(e){(0,o.Z)(1,arguments);var n=(0,i.Z)(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function isLastDayOfMonth(e){(0,o.Z)(1,arguments);var n=(0,i.Z)(e);return endOfDay(n).getTime()===endOfMonth(n).getTime()}function differenceInMonths(e,n){(0,o.Z)(2,arguments);var t,a=(0,i.Z)(e),r=(0,i.Z)(n),u=compareAsc(a,r),s=Math.abs(differenceInCalendarMonths(a,r));if(s<1)t=0;else{1===a.getMonth()&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-u*s);var d=compareAsc(a,r)===-u;isLastDayOfMonth((0,i.Z)(e))&&1===s&&1===compareAsc(e,r)&&(d=!1),t=u*(s-Number(d))}return 0===t?0:t}function differenceInMilliseconds(e,n){return(0,o.Z)(2,arguments),(0,i.Z)(e).getTime()-(0,i.Z)(n).getTime()}var u={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function getRoundingMethod(e){return e?u[e]:u.trunc}function differenceInSeconds(e,n,t){(0,o.Z)(2,arguments);var a=differenceInMilliseconds(e,n)/1e3;return getRoundingMethod(null==t?void 0:t.roundingMethod)(a)}var s={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function buildFormatLongFn(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.width?String(n.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var d={date:buildFormatLongFn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:buildFormatLongFn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function buildLocalizeFn(e){return function(n,t){var a;if("formatting"===(null!=t&&t.context?String(t.context):"standalone")&&e.formattingValues){var r=e.defaultFormattingWidth||e.defaultWidth,i=null!=t&&t.width?String(t.width):r;a=e.formattingValues[i]||e.formattingValues[r]}else{var o=e.defaultWidth,u=null!=t&&t.width?String(t.width):e.defaultWidth;a=e.values[u]||e.values[o]}return a[e.argumentCallback?e.argumentCallback(n):n]}}function buildMatchFn(e){return function(n){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=n.match(i);if(!o)return null;var u=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(s)?findIndex(s,function(e){return e.test(u)}):findKey(s,function(e){return e.test(u)});return t=e.valueCallback?e.valueCallback(d):d,{value:t=a.valueCallback?a.valueCallback(t):t,rest:n.slice(u.length)}}}function findKey(e,n){for(var t in e)if(e.hasOwnProperty(t)&&n(e[t]))return t}function findIndex(e,n){for(var t=0;t0?"in "+a:a+" ago":a},formatLong:d,formatRelative:function(e,n,t,a){return l[e]},localize:{ordinalNumber:function(e,n){var t=Number(e),a=t%100;if(a>20||a<10)switch(a%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:buildLocalizeFn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:buildLocalizeFn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:buildLocalizeFn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:buildLocalizeFn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(a={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.match(a.matchPattern);if(!t)return null;var r=t[0],i=e.match(a.parsePattern);if(!i)return null;var o=a.valueCallback?a.valueCallback(i[0]):i[0];return{value:o=n.valueCallback?n.valueCallback(o):o,rest:e.slice(r.length)}}),era:buildMatchFn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:buildMatchFn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function assign_assign(e,n){if(null==e)throw TypeError("assign requires that input parameter not be null or undefined");for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e}function cloneObject(e){return assign_assign({},e)}function getTimezoneOffsetInMilliseconds(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function formatDistance_formatDistance(e,n,t){(0,o.Z)(2,arguments);var a,r,u,s,d,l=getDefaultOptions(),c=null!==(a=null!==(r=null==t?void 0:t.locale)&&void 0!==r?r:l.locale)&&void 0!==a?a:f;if(!c.formatDistance)throw RangeError("locale must contain formatDistance property");var h=compareAsc(e,n);if(isNaN(h))throw RangeError("Invalid time value");var m=assign_assign(cloneObject(t),{addSuffix:!!(null==t?void 0:t.addSuffix),comparison:h});h>0?(u=(0,i.Z)(n),s=(0,i.Z)(e)):(u=(0,i.Z)(e),s=(0,i.Z)(n));var g=differenceInSeconds(s,u),v=Math.round((g-(getTimezoneOffsetInMilliseconds(s)-getTimezoneOffsetInMilliseconds(u))/1e3)/60);if(v<2){if(null!=t&&t.includeSeconds){if(g<5)return c.formatDistance("lessThanXSeconds",5,m);if(g<10)return c.formatDistance("lessThanXSeconds",10,m);if(g<20)return c.formatDistance("lessThanXSeconds",20,m);if(g<40)return c.formatDistance("halfAMinute",0,m);else if(g<60)return c.formatDistance("lessThanXMinutes",1,m);else return c.formatDistance("xMinutes",1,m)}return 0===v?c.formatDistance("lessThanXMinutes",1,m):c.formatDistance("xMinutes",v,m)}if(v<45)return c.formatDistance("xMinutes",v,m);if(v<90)return c.formatDistance("aboutXHours",1,m);if(v<1440){var b=Math.round(v/60);return c.formatDistance("aboutXHours",b,m)}if(v<2520)return c.formatDistance("xDays",1,m);if(v<43200){var M=Math.round(v/1440);return c.formatDistance("xDays",M,m)}if(v<86400)return d=Math.round(v/43200),c.formatDistance("aboutXMonths",d,m);if((d=differenceInMonths(s,u))<12){var y=Math.round(v/43200);return c.formatDistance("xMonths",y,m)}var w=d%12,p=Math.floor(d/12);return w<3?c.formatDistance("aboutXYears",p,m):w<9?c.formatDistance("overXYears",p,m):c.formatDistance("almostXYears",p+1,m)}function formatDistanceToNow(e,n){return(0,o.Z)(1,arguments),formatDistance_formatDistance(e,Date.now(),n)}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/685-8631e79fc20fe503.js b/web/_next/static/chunks/685-8631e79fc20fe503.js new file mode 100644 index 00000000..0e64fa42 --- /dev/null +++ b/web/_next/static/chunks/685-8631e79fc20fe503.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[685],{57685:function(t,r,n){n.d(r,{sn:function(){return e}});var i,o=Symbol.for("immer-nothing"),a=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function die(t,...r){throw Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function isDraft(t){return!!t&&!!t[s]}function isDraftable(t){return!!t&&(isPlainObject(t)||Array.isArray(t)||!!t[a]||!!t.constructor?.[a]||isMap(t)||isSet(t))}var l=Object.prototype.constructor.toString();function isPlainObject(t){if(!t||"object"!=typeof t)return!1;let r=c(t);if(null===r)return!0;let n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===l}function each(t,r){0===getArchtype(t)?Object.entries(t).forEach(([n,i])=>{r(n,i,t)}):t.forEach((n,i)=>r(i,n,t))}function getArchtype(t){let r=t[s];return r?r.type_:Array.isArray(t)?1:isMap(t)?2:isSet(t)?3:0}function has(t,r){return 2===getArchtype(t)?t.has(r):Object.prototype.hasOwnProperty.call(t,r)}function set(t,r,n){let i=getArchtype(t);2===i?t.set(r,n):3===i?t.add(n):t[r]=n}function is(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}function isMap(t){return t instanceof Map}function isSet(t){return t instanceof Set}function latest(t){return t.copy_||t.base_}function shallowCopy(t,r){if(isMap(t))return new Map(t);if(isSet(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!r&&isPlainObject(t)){if(!c(t)){let r=Object.create(null);return Object.assign(r,t)}return{...t}}let n=Object.getOwnPropertyDescriptors(t);delete n[s];let i=Reflect.ownKeys(n);for(let r=0;r1&&(t.set=t.add=t.clear=t.delete=dontMutateFrozenCollections),Object.freeze(t),r&&each(t,(t,r)=>freeze(r,!0),!0)),t}function dontMutateFrozenCollections(){die(2)}function isFrozen(t){return Object.isFrozen(t)}var u={};function getPlugin(t){let r=u[t];return r||die(0,t),r}function createScope(t,r){return{drafts_:[],parent_:t,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope(t,r){r&&(getPlugin("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=r)}function revokeScope(t){leaveScope(t),t.drafts_.forEach(revokeDraft),t.drafts_=null}function leaveScope(t){t===i&&(i=t.parent_)}function revokeDraft(t){let r=t[s];0===r.type_||1===r.type_?r.revoke_():r.revoked_=!0}function processResult(t,r){r.unfinalizedDrafts_=r.drafts_.length;let n=r.drafts_[0],i=void 0!==t&&t!==n;return i?(n[s].modified_&&(revokeScope(r),die(4)),isDraftable(t)&&(t=finalize(r,t),r.parent_||maybeFreeze(r,t)),r.patches_&&getPlugin("Patches").generateReplacementPatches_(n[s].base_,t,r.patches_,r.inversePatches_)):t=finalize(r,n,[]),revokeScope(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),t!==o?t:void 0}function finalize(t,r,n){if(isFrozen(r))return r;let i=r[s];if(!i)return each(r,(o,a)=>finalizeProperty(t,i,r,o,a,n),!0),r;if(i.scope_!==t)return r;if(!i.modified_)return maybeFreeze(t,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let r=i.copy_,o=r,a=!1;3===i.type_&&(o=new Set(r),r.clear(),a=!0),each(o,(o,s)=>finalizeProperty(t,i,r,o,s,n,a)),maybeFreeze(t,r,!1),n&&t.patches_&&getPlugin("Patches").generatePatches_(i,n,t.patches_,t.inversePatches_)}return i.copy_}function finalizeProperty(t,r,n,i,o,a,s){if(isDraft(o)){let s=a&&r&&3!==r.type_&&!has(r.assigned_,i)?a.concat(i):void 0,c=finalize(t,o,s);if(set(n,i,c),!isDraft(c))return;t.canAutoFreeze_=!1}else s&&n.add(o);if(isDraftable(o)&&!isFrozen(o)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;finalize(t,o),r&&r.scope_.parent_||maybeFreeze(t,o)}}function maybeFreeze(t,r,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&freeze(r,n)}function createProxyProxy(t,r){let n=Array.isArray(t),o={type_:n?1:0,scope_:r?r.scope_:i,modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1},a=o,s=f;n&&(a=[o],s=p);let{revoke:c,proxy:l}=Proxy.revocable(a,s);return o.draft_=l,o.revoke_=c,l}var f={get(t,r){if(r===s)return t;let n=latest(t);if(!has(n,r))return readPropFromProto(t,n,r);let i=n[r];return t.finalized_||!isDraftable(i)?i:i===peek(t.base_,r)?(prepareCopy(t),t.copy_[r]=createProxy(i,t)):i},has:(t,r)=>r in latest(t),ownKeys:t=>Reflect.ownKeys(latest(t)),set(t,r,n){let i=getDescriptorFromProto(latest(t),r);if(i?.set)return i.set.call(t.draft_,n),!0;if(!t.modified_){let i=peek(latest(t),r),o=i?.[s];if(o&&o.base_===n)return t.copy_[r]=n,t.assigned_[r]=!1,!0;if(is(n,i)&&(void 0!==n||has(t.base_,r)))return!0;prepareCopy(t),markChanged(t)}return!!(t.copy_[r]===n&&(void 0!==n||r in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[r]))||(t.copy_[r]=n,t.assigned_[r]=!0,!0)},deleteProperty:(t,r)=>(void 0!==peek(t.base_,r)||r in t.base_?(t.assigned_[r]=!1,prepareCopy(t),markChanged(t)):delete t.assigned_[r],t.copy_&&delete t.copy_[r],!0),getOwnPropertyDescriptor(t,r){let n=latest(t),i=Reflect.getOwnPropertyDescriptor(n,r);return i?{writable:!0,configurable:1!==t.type_||"length"!==r,enumerable:i.enumerable,value:n[r]}:i},defineProperty(){die(11)},getPrototypeOf:t=>c(t.base_),setPrototypeOf(){die(12)}},p={};function peek(t,r){let n=t[s],i=n?latest(n):t;return i[r]}function readPropFromProto(t,r,n){let i=getDescriptorFromProto(r,n);return i?"value"in i?i.value:i.get?.call(t.draft_):void 0}function getDescriptorFromProto(t,r){if(!(r in t))return;let n=c(t);for(;n;){let t=Object.getOwnPropertyDescriptor(n,r);if(t)return t;n=c(n)}}function markChanged(t){!t.modified_&&(t.modified_=!0,t.parent_&&markChanged(t.parent_))}function prepareCopy(t){t.copy_||(t.copy_=shallowCopy(t.base_,t.scope_.immer_.useStrictShallowCopy_))}function createProxy(t,r){let n=isMap(t)?getPlugin("MapSet").proxyMap_(t,r):isSet(t)?getPlugin("MapSet").proxySet_(t,r):createProxyProxy(t,r),o=r?r.scope_:i;return o.drafts_.push(n),n}function current(t){return isDraft(t)||die(10,t),currentImpl(t)}function currentImpl(t){let r;if(!isDraftable(t)||isFrozen(t))return t;let n=t[s];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=shallowCopy(t,n.scope_.immer_.useStrictShallowCopy_)}else r=shallowCopy(t,!0);return each(r,(t,n)=>{set(r,t,currentImpl(n))}),n&&(n.finalized_=!1),r}each(f,(t,r)=>{p[t]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),p.deleteProperty=function(t,r){return p.set.call(this,t,r,void 0)},p.set=function(t,r,n){return f.set.call(this,t[0],r,n,t[0])};var _=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{let a;if("function"==typeof t&&"function"!=typeof r){let n=r;r=t;let i=this;return function(t=n,...o){return i.produce(t,t=>r.call(this,t,...o))}}if("function"!=typeof r&&die(6),void 0!==n&&"function"!=typeof n&&die(7),isDraftable(t)){let o=i=createScope(i,this),s=createProxy(t,void 0),c=!0;try{a=r(s),c=!1}finally{c?revokeScope(o):leaveScope(o)}return usePatchesInScope(o,n),processResult(a,o)}if(t&&"object"==typeof t)die(1,t);else{if(void 0===(a=r(t))&&(a=t),a===o&&(a=void 0),this.autoFreeze_&&freeze(a,!0),n){let r=[],i=[];getPlugin("Patches").generateReplacementPatches_(t,a,r,i),n(r,i)}return a}},this.produceWithPatches=(t,r)=>{let n,i;if("function"==typeof t)return(r,...n)=>this.produceWithPatches(r,r=>t(r,...n));let o=this.produce(t,r,(t,r)=>{n=t,i=r});return[o,n,i]},"boolean"==typeof t?.autoFreeze&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof t?.useStrictShallowCopy&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){isDraftable(t)||die(8),isDraft(t)&&(t=current(t));let r=i=createScope(i,this),n=createProxy(t,void 0);return n[s].isManual_=!0,leaveScope(r),n}finishDraft(t,r){let n=t&&t[s];n&&n.isManual_||die(9);let{scope_:i}=n;return usePatchesInScope(i,r),processResult(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){let i=r[n];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}n>-1&&(r=r.slice(n+1));let i=getPlugin("Patches").applyPatches_;return isDraft(t)?i(t,r):this.produce(t,t=>i(t,r))}},y=_.produce;_.produceWithPatches.bind(_),_.setAutoFreeze.bind(_),_.setUseStrictShallowCopy.bind(_),_.applyPatches.bind(_),_.createDraft.bind(_),_.finishDraft.bind(_);var h=n(77665);function e(t){let r=(0,h.cn)(t,(t,n,i)=>n(r,y(t(r),"function"==typeof i?i:()=>i)));return r}n(2265),new WeakMap}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/697-5201969c631263d5.js b/web/_next/static/chunks/697-5201969c631263d5.js new file mode 100644 index 00000000..6547b5fd --- /dev/null +++ b/web/_next/static/chunks/697-5201969c631263d5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[697],{56407:function(e,t,n){var r=n(65491).w_;e.exports.Q=function(e){return r({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z"}}]})(e)}},1022:function(e,t,n){var r=n(65491).w_;e.exports.V=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M4.998 8H19V20H4.998z"}},{tag:"path",attr:{d:"M2.999,6v2v12c0,1.103,0.897,2,2,2h14c1.103,0,2-0.897,2-2V8V6c0-1.103-0.897-2-2-2h-2V2h-2v2h-6V2h-2v2h-2 C3.896,4,2.999,4.897,2.999,6z M19.001,20H4.999V8h14L19.001,20z"}}]})(e)}},80024:function(e,t,n){var r=n(65491).w_;e.exports.g=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 15L19 12 17 12 17 15 14.78 15 14 15 14 17 14.78 17 17 17 17 20 19 20 19 17 21.063 17 22 17 22 15 21.063 15zM4 7H15V9H4zM4 11H15V13H4zM4 15H12V17H4z"}}]})(e)}},24285:function(e,t,n){var r=n(65491).w_;e.exports.k=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M17,8V7c0-2.757-2.243-5-5-5S7,4.243,7,7v3H6c-1.103,0-2,0.897-2,2v8c0,1.103,0.897,2,2,2h12c1.103,0,2-0.897,2-2v-8 c0-1.103-0.897-2-2-2H9V7c0-1.654,1.346-3,3-3s3,1.346,3,3v1H17z M18,12l0.002,8H6v-8H18z"}}]})(e)}},50795:function(e,t,n){var r=n(65491).w_;e.exports.P=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 6L7 18 17 12z"}}]})(e)}},85208:function(e,t,n){var r=n(65491).w_;e.exports.p=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 11L13 11 13 5 11 5 11 11 5 11 5 13 11 13 11 19 13 19 13 13 19 13z"}}]})(e)}},67701:function(e,t,n){var r=n(65491).w_;e.exports.s=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.516,14.323l-1.49,6.452c-0.092,0.399,0.068,0.814,0.406,1.047C5.603,21.94,5.801,22,6,22 c0.193,0,0.387-0.056,0.555-0.168L12,18.202l5.445,3.63c0.348,0.232,0.805,0.223,1.145-0.024c0.338-0.247,0.487-0.68,0.372-1.082 l-1.829-6.4l4.536-4.082c0.297-0.268,0.406-0.686,0.278-1.064c-0.129-0.378-0.47-0.644-0.868-0.676L15.378,8.05l-2.467-5.461 C12.75,2.23,12.393,2,12,2s-0.75,0.23-0.911,0.589L8.622,8.05L2.921,8.503C2.529,8.534,2.192,8.791,2.06,9.16 c-0.134,0.369-0.038,0.782,0.242,1.056L6.516,14.323z M9.369,9.997c0.363-0.029,0.683-0.253,0.832-0.586L12,5.43l1.799,3.981 c0.149,0.333,0.469,0.557,0.832,0.586l3.972,0.315l-3.271,2.944c-0.284,0.256-0.397,0.65-0.293,1.018l1.253,4.385l-3.736-2.491 c-0.336-0.225-0.773-0.225-1.109,0l-3.904,2.603l1.05-4.546c0.078-0.34-0.026-0.697-0.276-0.94l-3.038-2.962L9.369,9.997z"}}]})(e)}},87870:function(e,t,n){var r=n(65491).w_;e.exports.S=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M17.004 20L17.003 8h-1-8-1v12H17.004zM13.003 10h2v8h-2V10zM9.003 10h2v8h-2V10zM9.003 4H15.003V6H9.003z"}},{tag:"path",attr:{d:"M5.003,20c0,1.103,0.897,2,2,2h10c1.103,0,2-0.897,2-2V8h2V6h-3h-1V4c0-1.103-0.897-2-2-2h-6c-1.103,0-2,0.897-2,2v2h-1h-3 v2h2V20z M9.003,4h6v2h-6V4z M8.003,8h8h1l0.001,12H7.003V8H8.003z"}},{tag:"path",attr:{d:"M9.003 10H11.003V18H9.003zM13.003 10H15.003V18H13.003z"}}]})(e)}},88356:function(e,t,n){var r=n(65491).w_;e.exports.j=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(e)}},45197:function(e,t,n){var r=n(65491).w_;e.exports.z=function(e){return r({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M84 480H28a12 12 0 01-12-12V92a12 12 0 0112-12h56a12 12 0 0112 12v376a12 12 0 01-12 12zm156-272v-52a12 12 0 00-12-12H124a12 12 0 00-12 12v52zM112 416v52a12 12 0 0012 12h104a12 12 0 0012-12v-52zm0-176h128v144H112zm228 240h-72a12 12 0 01-12-12V44a12 12 0 0112-12h72a12 12 0 0112 12v424a12 12 0 01-12 12zm29-379.3l30 367.83a12 12 0 0013.45 10.92l72.16-9a12 12 0 0010.47-12.9L465 91.21a12 12 0 00-13.2-10.94l-72.13 7.51A12 12 0 00369 100.7z"}}]})(e)}},54771:function(e,t,n){var r=n(65491).w_;e.exports.d=function(e){return r({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6.116 20.087A9.986 9.986 0 0 1 2 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.986 9.986 0 0 1-4.116 8.087l-1.015-1.739a8 8 0 1 0-9.738 0l-1.015 1.739zm2.034-3.485a6 6 0 1 1 7.7 0l-1.03-1.766a4 4 0 1 0-5.64 0l-1.03 1.766zM11 13h2v9h-2v-9z"}}]}]})(e)}},34479:function(e,t,n){var r=n(65491).w_;e.exports.K=function(e){return r({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M7.67 14.72h.71L10.1 13h2.4l.5-.5v-2.42l1.74-1.72v-.71l-1.71-1.72V3.49l-.5-.49H10.1L8.38 1.29h-.71L6 3H3.53L3 3.5v2.43L1.31 7.65v.71L3 10.08v2.42l.53.5H6l1.67 1.72zM6.16 12H4V9.87l-.12-.35L2.37 8l1.48-1.51.15-.35V4h2.16l.36-.14L8 2.35l1.54 1.51.35.14H12v2.14l.17.35L13.69 8l-1.55 1.52-.14.35V12H9.89l-.38.15L8 13.66l-1.48-1.52-.36-.14zm.57-1.52h.71l3.77-3.77L10.5 6 7.09 9.42 5.71 8.04 5 8.75l1.73 1.73z"}}]})(e)}},654:function(e){function arrayReduce(e,t,n,r){var u=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++u]);++u({...e,disclosureState:(0,l.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},H=(0,o.createContext)(null);function M(e){let t=(0,o.useContext)(H);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}H.displayName="DisclosureContext";let m=(0,o.createContext)(null);function w(e){let t=(0,o.useContext)(m);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}m.displayName="DisclosureAPIContext";let E=(0,o.createContext)(null);function V(){return(0,o.useContext)(E)}function Y(e,t){return(0,l.E)(t.type,y,e,t)}E.displayName="DisclosurePanelContext";let b=o.Fragment;function ee(e,t){let{defaultOpen:n=!1,...r}=e,u=(0,o.useRef)(null),a=(0,i.T)(t,(0,i.h)(e=>{u.current=e},void 0===e.as||e.as===o.Fragment)),s=(0,o.useRef)(null),d=(0,o.useRef)(null),f=(0,o.useReducer)(Y,{disclosureState:n?0:1,linkedPanel:!1,buttonRef:d,panelRef:s,buttonId:null,panelId:null}),[{disclosureState:v,buttonId:g},z]=f,L=(0,x.z)(e=>{z({type:1});let t=(0,h.r)(u);if(!t||!g)return;let n=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(g):t.getElementById(g);null==n||n.focus()}),y=(0,o.useMemo)(()=>({close:L}),[L]),E=(0,o.useMemo)(()=>({open:0===v,close:L}),[v,L]);return o.createElement(H.Provider,{value:f},o.createElement(m.Provider,{value:y},o.createElement(p.up,{value:(0,l.E)(v,{0:p.ZM.Open,1:p.ZM.Closed})},(0,c.sY)({ourProps:{ref:a},theirProps:r,slot:E,defaultTag:b,name:"Disclosure"}))))}function ne(e,t){let n=(0,s.M)(),{id:r=`headlessui-disclosure-button-${n}`,...u}=e,[a,l]=M("Disclosure.Button"),p=V(),h=null!==p&&p===a.panelId,g=(0,o.useRef)(null),z=(0,i.T)(g,t,h?null:a.buttonRef);(0,o.useEffect)(()=>{if(!h)return l({type:2,buttonId:r}),()=>{l({type:2,buttonId:null})}},[r,l,h]);let L=(0,x.z)(e=>{var t;if(h){if(1===a.disclosureState)return;switch(e.key){case d.R.Space:case d.R.Enter:e.preventDefault(),e.stopPropagation(),l({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case d.R.Space:case d.R.Enter:e.preventDefault(),e.stopPropagation(),l({type:0})}}),y=(0,x.z)(e=>{e.key===d.R.Space&&e.preventDefault()}),H=(0,x.z)(t=>{var n;(0,f.P)(t.currentTarget)||e.disabled||(h?(l({type:0}),null==(n=a.buttonRef.current)||n.focus()):l({type:0}))}),m=(0,o.useMemo)(()=>({open:0===a.disclosureState}),[a]),E=(0,v.f)(e,g),b=h?{ref:z,type:E,onKeyDown:L,onClick:H}:{ref:z,id:r,type:E,"aria-expanded":0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:L,onKeyUp:y,onClick:H};return(0,c.sY)({ourProps:b,theirProps:u,slot:m,defaultTag:"button",name:"Disclosure.Button"})}let I=c.AN.RenderStrategy|c.AN.Static;function re(e,t){let n=(0,s.M)(),{id:r=`headlessui-disclosure-panel-${n}`,...u}=e,[a,l]=M("Disclosure.Panel"),{close:d}=w("Disclosure.Panel"),f=(0,i.T)(t,a.panelRef,e=>{g(()=>l({type:e?4:5}))});(0,o.useEffect)(()=>(l({type:3,panelId:r}),()=>{l({type:3,panelId:null})}),[r,l]);let v=(0,p.oJ)(),h=null!==v?(v&p.ZM.Open)===p.ZM.Open:0===a.disclosureState,x=(0,o.useMemo)(()=>({open:0===a.disclosureState,close:d}),[a,d]);return o.createElement(E.Provider,{value:a.panelId},(0,c.sY)({ourProps:{ref:f,id:r},theirProps:u,slot:x,defaultTag:"div",features:I,visible:h,name:"Disclosure.Panel"}))}let P=Object.assign((0,c.yV)(ee),{Button:(0,c.yV)(ne),Panel:(0,c.yV)(re)})}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/700-4c0fff6a5cea1bf4.js b/web/_next/static/chunks/700-4c0fff6a5cea1bf4.js new file mode 100644 index 00000000..92fbb8eb --- /dev/null +++ b/web/_next/static/chunks/700-4c0fff6a5cea1bf4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[700],{67998:function(e,t,r){r.d(t,{DN:function(){return n},SN:function(){return useWebsocketMessageListener},oJ:function(){return o}});var s=r(2265),l=r(77665);let n=(0,s.createContext)(null),o=(0,l.cn)(null);function useWebsocketMessageListener(e){let{type:t,onMessage:r}=e,l=(0,s.useContext)(n);return(0,s.useEffect)(()=>{if(l){let messageHandler=e=>{try{let s=JSON.parse(e.data);s.type&&s.type===t&&r(s.payload)}catch(e){}};return l.addEventListener("message",messageHandler),()=>{l.removeEventListener("message",messageHandler)}}},[l,r]),null}},47900:function(e,t,r){r.d(t,{S:function(){return LargeEpisodeListItem}});var s=r(57437);r(2265);var l=r(54487),n=r(16691),o=r.n(n),i=r(86249),a=r(59346);let LargeEpisodeListItem=e=>{let{children:t,actionIcon:r=null!==e.actionIcon?(0,s.jsx)(i.s,{}):void 0,image:n,onClick:c,topTitle:u,meta:d,title:p,larger:m=!1,...g}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:(0,l.cn)("rounded-md border border-[--border] overflow-hidden aspect-[4/2] w-96 relative flex items-end flex-none group/missed-episode-item cursor-pointer",{"w-[30rem]":m}),onClick:c,...g,children:[(0,s.jsxs)("div",{className:"absolute w-full h-full overflow-hidden z-[1]",children:[n?(0,s.jsx)(o(),{src:n,alt:"",fill:!0,quality:100,placeholder:(0,a.t)(700,475),sizes:"20rem",className:"object-cover object-center transition group-hover/missed-episode-item:scale-110"}):(0,s.jsx)("div",{className:"h-full block absolute w-full bg-gradient-to-t from-gray-800 to-transparent z-[2]"}),(0,s.jsx)("div",{className:"z-[1] absolute bottom-0 w-full h-[80%] bg-gradient-to-t from-[--background-color] to-transparent"})]}),(0,s.jsx)("div",{className:(0,l.cn)("group-hover/missed-episode-item:opacity-100 text-6xl text-gray-200","cursor-pointer opacity-0 transition-opacity bg-gray-900 bg-opacity-50 backdrop-blur-md z-[2] absolute w-full h-full flex items-center justify-center"),children:r&&r}),(0,s.jsxs)("div",{className:"relative z-[3] w-full p-4 space-y-1",children:[u&&(0,s.jsx)("p",{className:"w-[80%] line-clamp-1 text-[--muted] font-semibold",children:u}),(0,s.jsxs)("div",{className:"w-full justify-between flex items-center",children:[(0,s.jsx)("p",{className:"text-xl font-semibold line-clamp-2",children:p}),d&&(0,s.jsx)("p",{className:"text-[--muted]",children:d})]})]})]})})}},7951:function(e,t,r){r.d(t,{i:function(){return Slider}});var s=r(57437),l=r(2265),n=r(64723);function useDraggableScroll(e){let t,r,s,o,i,a,c,{decayRate:u=.95,safeDisplacement:d=10,applyRubberBandEffect:p=!1,activeMouseButton:m="Left",isMounted:g=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=(0,l.useRef)({isMouseDown:!1,isDraggingX:!1,isDraggingY:!1,initialMouseX:0,initialMouseY:0,lastMouseX:0,lastMouseY:0,scrollSpeedX:0,scrollSpeedY:0,lastScrollX:0,lastScrollY:0}),h=!1,y=!1,x=0,b=0,w=1/60*1e3;(0,n.Z)(()=>{g&&(h="scroll"===window.getComputedStyle(e.current).overflowX,y="scroll"===window.getComputedStyle(e.current).overflowY,x=e.current.scrollWidth-e.current.clientWidth,b=e.current.scrollHeight-e.current.clientHeight,t=window.getComputedStyle(e.current).cursor,r=[],s=[],o=[],e.current.childNodes.forEach(e=>{r.push(window.getComputedStyle(e).cursor),s.push("none"===window.getComputedStyle(e).transform?"":window.getComputedStyle(e).transform),o.push("none"===window.getComputedStyle(e).transition?"":window.getComputedStyle(e).transition)}))},[g]);let runScroll=()=>{let t=f.current.scrollSpeedX*w,r=f.current.scrollSpeedY*w,s=e.current.scrollLeft+t,l=e.current.scrollTop+r;e.current.scrollLeft=s,e.current.scrollTop=l,f.current.lastScrollX=s,f.current.lastScrollY=l},rubberBandCallback=t=>{let r=t.clientX-f.current.initialMouseX,s=t.clientY-f.current.initialMouseY,{clientWidth:l,clientHeight:n}=e.current,o=0,i=0;h&&y?(o=.3*l*Math.sign(r)*Math.log10(1+.5*Math.abs(r)/l),i=.3*n*Math.sign(s)*Math.log10(1+.5*Math.abs(s)/n)):h?o=.3*l*Math.sign(r)*Math.log10(1+.5*Math.abs(r)/l):y&&(i=.3*n*Math.sign(s)*Math.log10(1+.5*Math.abs(s)/n)),e.current.childNodes.forEach(e=>{e.style.transform="translate3d(".concat(o,"px, ").concat(i,"px, 0px)"),e.style.transition="transform 0ms"})},recoverChildStyle=()=>{e.current.childNodes.forEach((e,t)=>{e.style.transform=s[t],e.style.transition=o[t]})},callbackMomentum=()=>{a=setInterval(()=>{let t=f.current.scrollSpeedX,r=t*u;f.current.scrollSpeedX=r;let s=e.current.scrollLeft<=0,l=e.current.scrollLeft>=x;runScroll(),(.05>Math.abs(r)||f.current.isMouseDown||s||l)&&(f.current.scrollSpeedX=0,clearInterval(a))},w),c=setInterval(()=>{let t=f.current.scrollSpeedY,r=t*u;f.current.scrollSpeedY=r;let s=e.current.scrollTop<=0,l=e.current.scrollTop>=b;runScroll(),(.05>Math.abs(r)||f.current.isMouseDown||s||l)&&(f.current.scrollSpeedY=0,clearInterval(c))},w),f.current.isDraggingX=!1,f.current.isDraggingY=!1,p&&(e.current.childNodes.forEach(e=>{e.style.transform="translate3d(0px, 0px, 0px)",e.style.transition="transform ".concat(250,"ms")}),i=setTimeout(recoverChildStyle,250))},preventClick=e=>{e.preventDefault(),e.stopImmediatePropagation()},getIsMousePressActive=e=>"Left"===m&&1===e||"Middle"===m&&4===e||"Right"===m&&2===e,onMouseUp=s=>{let l=f.current.isDraggingX||f.current.isDraggingY,n=f.current.initialMouseX-s.clientX,o=f.current.initialMouseY-s.clientY,i=l&&(Math.abs(n)>d||Math.abs(o)>d);i?e.current.childNodes.forEach(e=>{e.addEventListener("click",preventClick)}):e.current.childNodes.forEach(e=>{e.removeEventListener("click",preventClick)}),f.current.isMouseDown=!1,f.current.lastMouseX=0,f.current.lastMouseY=0,e.current.style.cursor=t,e.current.childNodes.forEach((e,t)=>{e.style.cursor=r[t]}),i&&callbackMomentum()},onMouseMove=t=>{if(!f.current.isMouseDown)return;t.preventDefault();let r=f.current.lastMouseX-t.clientX;f.current.lastMouseX=t.clientX,f.current.scrollSpeedX=r/w,f.current.isDraggingX=!0;let s=f.current.lastMouseY-t.clientY;f.current.lastMouseY=t.clientY,f.current.scrollSpeedY=s/w,f.current.isDraggingY=!0,e.current.style.cursor="grabbing",e.current.childNodes.forEach(e=>{e.style.cursor="grabbing"});let l=e.current.scrollLeft<=0&&h,n=e.current.scrollLeft>=x&&h,o=e.current.scrollTop<=0&&y,i=e.current.scrollTop>=b&&y;(l||n||o||i)&&p&&rubberBandCallback(t),runScroll()},handleResize=()=>{x=e.current.scrollWidth-e.current.clientWidth,b=e.current.scrollHeight-e.current.clientHeight};return(0,l.useEffect)(()=>(g&&(window.addEventListener("mouseup",onMouseUp),window.addEventListener("mousemove",onMouseMove),window.addEventListener("resize",handleResize)),()=>{window.removeEventListener("mouseup",onMouseUp),window.removeEventListener("mousemove",onMouseMove),window.removeEventListener("resize",handleResize),clearInterval(a),clearInterval(c),clearTimeout(i)}),[g]),{events:{onMouseDown:e=>{let t=getIsMousePressActive(e.buttons);t&&(f.current.isMouseDown=!0,f.current.lastMouseX=e.clientX,f.current.lastMouseY=e.clientY,f.current.initialMouseX=e.clientX,f.current.initialMouseY=e.clientY)}}}}var o=r(24034),i=r(753),a=r(54487),c=r(28979);let Slider=e=>{let{children:t,onSlideEnd:r,...u}=e,d=(0,l.useRef)(),{events:p}=useDraggableScroll(d,{decayRate:.96,safeDisplacement:20}),[m,g]=(0,l.useState)(!0),[f,h]=(0,l.useState)(!1),[y,x]=(0,l.useState)(!1);function slideLeft(){let e=d.current;e&&e.scrollTo({left:e.scrollLeft-500,behavior:"smooth"})}function slideRight(){let e=d.current;e&&e.scrollTo({left:e.scrollLeft+500,behavior:"smooth"})}return(0,c.Z)(()=>{if(!m&&f){r&&r();let e=setTimeout(()=>{let e=d.current;e&&e.scrollTo({left:e.scrollLeft+500,behavior:"smooth"})},1e3);return()=>clearTimeout(e)}},[m,f]),(0,n.Z)(()=>{d.current.clientWidth{let e=d.current;if(e){let t=0===e.scrollLeft,r=e.scrollLeft+e.clientWidth===e.scrollWidth;g(t),h(r)}},className:"flex max-w-full w-full space-x-3 overflow-x-scroll scrollbar-hide scroll",...p,ref:d,children:t}),(0,s.jsx)("div",{onClick:slideRight,className:(0,a.cn)("flex items-center invisible cursor-pointer hover:text-action absolute right-0 bg-gradient-to-l from-[--background-color] z-40 h-full w-16 hover:opacity-100",{"lg:visible":!f&&y}),children:(0,s.jsx)(i.F,{className:"w-7 h-7 stroke-2 mx-auto"})})]})}},93054:function(e,t,r){r.d(t,{LN:function(){return w},RD:function(){return y},ce:function(){return b},S8:function(){return M},FV:function(){return AppSidebarProvider},AO:function(){return j}});var s=r(57437),l=r(2265),n=r(54487),o=r(96061);let i=(0,n.xH)({root:(0,o.j)(["UI-AppLayout__root","flex w-full min-h-screen group","group-[.with-sidebar]:group-[.sidebar-slim]:md:pl-20","group-[.with-sidebar]:group-[.sidebar-sm]:md:pl-48","group-[.with-sidebar]:group-[.sidebar-md]:md:pl-64","group-[.with-sidebar]:group-[.sidebar-lg]:md:pl-[20rem]","group-[.with-sidebar]:group-[.sidebar-xl]:md:pl-[25rem]"],{variants:{withSidebar:{true:"flex-row with-sidebar",false:"flex-col"},sidebarSize:{slim:"sidebar-slim",sm:"sidebar-sm",md:"sidebar-md",lg:"sidebar-lg",xl:"sidebar-xl"}},defaultVariants:{withSidebar:!1,sidebarSize:"md"}})}),a=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutHeader__root","block w-full"])}),c=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutSidebar__root","hidden md:fixed md:inset-y-0 md:flex md:flex-col grow-0 shrink-0 basis-0 z-[10]","group-[.sidebar-slim]:md:w-20","group-[.sidebar-sm]:md:w-48","group-[.sidebar-md]:md:w-64","group-[.sidebar-lg]:md:w-[20rem]","group-[.sidebar-xl]:md:w-[25rem]"])}),u=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutContent__root"])}),d=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutFooter__root"])}),p=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutStack__root"],{variants:{spacing:{sm:"space-y-2",md:"space-y-4",lg:"space-y-8",xl:"space-y-10"}},defaultVariants:{spacing:"md"}})}),m=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutGrid__root","block"],{variants:{breakBelow:{sm:"sm:grid sm:space-y-0",md:"md:grid md:space-y-0",lg:"lg:grid lg:space-y-0",xl:"xl:grid xl:space-y-0"},spacing:{sm:"space-y-2 gap-2",md:"space-y-4 gap-4",lg:"space-y-8 gap-8",xl:"space-y-10 gap-10"},cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"}},defaultVariants:{breakBelow:"xl",spacing:"md",cols:3}})}),_AppLayout=e=>{let{children:t,rootClassName:r,className:l,ref:o,withSidebar:a,sidebarSize:c,...u}=e;return(0,s.jsx)("div",{className:(0,n.cn)(i.root({withSidebar:a,sidebarSize:c}),r,l),...u,ref:o,children:t})};_AppLayout.displayName="AppLayout";let g=l.forwardRef((e,t)=>{let{children:r,rootClassName:l,className:o,...i}=e;return(0,s.jsx)("header",{className:(0,n.cn)(a.root(),l,o),...i,ref:t,children:r})});g.displayName="AppLayoutHeader";let f=l.forwardRef((e,t)=>{let{children:r,rootClassName:l,className:o,...i}=e;return(0,s.jsx)("aside",{className:(0,n.cn)(c.root(),l,o),...i,ref:t,children:r})});f.displayName="AppLayoutSidebar";let h=l.forwardRef((e,t)=>{let{children:r,rootClassName:l,className:o,...i}=e;return(0,s.jsx)("main",{className:(0,n.cn)(u.root(),l,o),...i,ref:t,children:r})});h.displayName="AppLayoutContent";let y=l.forwardRef((e,t)=>{let{children:r,rootClassName:l,className:o,breakBelow:i,cols:a,spacing:c,...u}=e;return(0,s.jsx)("section",{className:(0,n.cn)(m.root({breakBelow:i,cols:a,spacing:c}),l,o),...u,ref:t,children:r})});y.displayName="AppLayoutGrid";let x=l.forwardRef((e,t)=>{let{children:r,rootClassName:l,className:o,...i}=e;return(0,s.jsx)("footer",{className:(0,n.cn)(d.root(),l,o),...i,ref:t,children:r})});x.displayName="AppLayoutFooter";let b=l.forwardRef((e,t)=>{let{children:r,rootClassName:l,className:o,spacing:i,...a}=e;return(0,s.jsx)("div",{className:(0,n.cn)(p.root({spacing:i}),l,o),...a,ref:t,children:r})});b.displayName="AppLayoutStack",_AppLayout.Header=g,_AppLayout.Sidebar=f,_AppLayout.Content=h,_AppLayout.Footer=x,_AppLayout.Grid=y,_AppLayout.Stack=b;let w=(0,n.Fm)(_AppLayout);w.displayName="AppLayout";var v=r(33538);let N=l.createContext({open:!1,setOpen:()=>{}}),useAppSidebarContext=()=>l.useContext(N),L=(0,n.xH)({sidebar:(0,o.j)(["UI-AppSidebar__sidebar","flex flex-grow flex-col"])}),S=(0,n.xH)({trigger:(0,o.j)(["UI-AppSidebarTrigger__trigger","block md:hidden","items-center justify-center rounded-[--radius] p-2 text-[--muted] hover:bg-[--highlight] hover:text-[--text-color]","focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[--ring]"])}),M=l.forwardRef((e,t)=>{let{children:r,sidebarClassName:l,className:o,...i}=e,a=useAppSidebarContext();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,n.cn)(L.sidebar(),l),...i,ref:t,children:(0,s.jsx)("div",{className:(0,n.cn)(o),children:r})}),(0,s.jsx)(v.dy,{isOpen:a.open,onClose:()=>a.setOpen(!1),placement:"left",isClosable:!0,className:"md:hidden",containerClassName:"w-[85%]",bodyClassName:(0,n.cn)("p-0 md:p-0",o),headerClassName:"absolute p-2 sm:p-2 md:p-2 lg:p-2 right-0",closeButtonIntent:"white-outline",children:r})]})});M.displayName="AppSidebar";let j=l.forwardRef((e,t)=>{let{children:r,triggerClassName:l,className:o,...i}=e,a=useAppSidebarContext();return(0,s.jsxs)("button",{className:(0,n.cn)(S.trigger(),l,o),onClick:()=>a.setOpen(e=>!e),...i,ref:t,children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),a.open?(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,s.jsx)("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}):(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,s.jsx)("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),(0,s.jsx)("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),(0,s.jsx)("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})]})});j.displayName="AppSidebarTrigger";let AppSidebarProvider=e=>{let{children:t,open:r}=e,[n,o]=(0,l.useState)(null!=r&&r);return(0,l.useEffect)(()=>{void 0!==r&&o(r)},[r]),(0,s.jsx)(N.Provider,{value:{open:n,setOpen:o},children:t})}},37684:function(e,t,r){r.d(t,{O:function(){return a}});var s=r(57437),l=r(54487),n=r(96061),o=r(2265);let i=(0,l.xH)({skeleton:(0,n.j)("UI-Skeleton__skeleton",{variants:{type:{box:"h-14 bg-gray-100 dark:bg-gray-800 w-full rounded-[--radius] animate-pulse",text:"h-2 bg-gray-100 dark:bg-gray-800 rounded-[--radius] animate-purple"}},defaultVariants:{}})}),a=o.forwardRef((e,t)=>{let{children:r,className:n,type:o="box",skeletonClassName:a,...c}=e;return"text"===o?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,s.jsx)("div",{className:(0,l.cn)("w-full",i.skeleton({type:o}),a,n),...c,ref:t}),(0,s.jsx)("div",{className:(0,l.cn)("w-full",i.skeleton({type:o}),a,n),...c,ref:t}),(0,s.jsx)("div",{className:(0,l.cn)("w-full",i.skeleton({type:o}),a,n),...c,ref:t}),(0,s.jsx)("div",{className:(0,l.cn)("w-[98%]",i.skeleton({type:o}),a,n),...c,ref:t}),(0,s.jsx)("div",{className:(0,l.cn)("w-[95%]",i.skeleton({type:o}),a,n),...c,ref:t}),(0,s.jsx)("div",{className:(0,l.cn)("w-[90%]",i.skeleton({type:o}),a,n),...c,ref:t})]})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:(0,l.cn)(i.skeleton({type:o}),a,n),...c,ref:t})})});a.displayName="Skeleton"},68260:function(e,t,r){r.d(t,{Jg:function(){return useMediaDetails},Pe:function(){return useManuallyMatchLocalFiles},Tc:function(){return useAnilistCollectionListener},X7:function(){return useMediaEntry},bo:function(){return useFetchMediaEntrySuggestions},du:function(){return useRefreshAnilistCollection},uJ:function(){return useAnilistCollection}});var s=r(51472),l=r(57638),n=r(38038),o=r(5925),i=r(67998);function useAnilistCollectionListener(){let e=(0,n.NL)();(0,i.SN)({type:l.f.REFRESHED_ANILIST_COLLECTION,onMessage:t=>{(async()=>{await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-anilist-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})})()}})}function useMediaEntry(e){let t="string"==typeof e?Number(e):e,{data:r,isLoading:n}=(0,s.tZ)({endpoint:l.E.MEDIA_ENTRY.replace("{id}",String(t)),queryKey:["get-media-entry",t],enabled:!!t});return{mediaEntry:r,mediaEntryLoading:n}}function useAnilistCollection(){var e,t;let{data:r,isLoading:n}=(0,s.tZ)({endpoint:l.E.ANILIST_COLLECTION,queryKey:["get-anilist-collection"]});return{anilistLists:null!==(t=null==r?void 0:null===(e=r.MediaListCollection)||void 0===e?void 0:e.lists)&&void 0!==t?t:[],isLoading:n}}function useRefreshAnilistCollection(){let e=(0,n.NL)(),{mutate:t,isPending:r}=(0,s.$U)({endpoint:l.E.ANILIST_COLLECTION,mutationKey:["refresh-anilist-collection"],onSuccess:async()=>{o.ZP.success("AniList is up-to-date"),await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-anilist-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})}});return{refreshAnilistCollection:t,isPending:r}}function useMediaDetails(e){let t="string"==typeof e?Number(e):e,{data:r,isLoading:n}=(0,s.tZ)({endpoint:l.E.ANILIST_MEDIA_DETAILS.replace("{id}",String(t)),queryKey:["get-anilist-media-details",t],enabled:!!t});return{mediaDetails:r,mediaDetailsLoading:n}}function useFetchMediaEntrySuggestions(){let{mutate:e,data:t,isPending:r,reset:n}=(0,s.$U)({endpoint:l.E.MEDIA_ENTRY_SUGGESTIONS,mutationKey:["media-entry-suggestions"]});return{fetchSuggestions:t=>e({dir:t}),suggestions:null!=t?t:[],isPending:r,resetSuggestions:n}}function useManuallyMatchLocalFiles(){let e=(0,n.NL)(),{mutate:t,isPending:r}=(0,s.$U)({endpoint:l.E.MEDIA_ENTRY_MANUAL_MATCH,mutationKey:["media-entry-manual-match"],onSuccess:async()=>{await e.refetchQueries({queryKey:["get-library-collection"]})}});return{manuallyMatchEntry:(r,s)=>{t(r,{onSuccess:async()=>{r.mediaId&&await e.refetchQueries({queryKey:["get-media-entry",r.mediaId]}),s()}})},isPending:r}}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/702-4328c5586a2351b1.js b/web/_next/static/chunks/702-4328c5586a2351b1.js new file mode 100644 index 00000000..22f9b2ce --- /dev/null +++ b/web/_next/static/chunks/702-4328c5586a2351b1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[702],{79029:function(e,t,n){var r=n(42242).Symbol;e.exports=r},9121:function(e){function arrayMap(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++no?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=o?e:r(e,t,n)}e.exports=castSlice},12937:function(e,t,n){var r=n(54298),o=n(57564),i=n(885),c=n(60665);function createCaseFirst(e){return function(t){var n=o(t=c(t))?i(t):void 0,u=n?n[0]:t.charAt(0),a=n?r(n,1).join(""):t.slice(1);return u[e]()+a}}e.exports=createCaseFirst},66503:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},35078:function(e,t,n){var r=n(79029),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=r?r.toStringTag:void 0;function getRawTag(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[u]=n:delete e[u]),o}e.exports=getRawTag},57564:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function hasUnicode(e){return t.test(e)}e.exports=hasUnicode},76276:function(e){var t=Object.prototype.toString;function objectToString(e){return t.call(e)}e.exports=objectToString},42242:function(e,t,n){var r=n(66503),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},885:function(e,t,n){var r=n(30696),o=n(57564),i=n(28358);function stringToArray(e){return o(e)?i(e):r(e)}e.exports=stringToArray},28358:function(e){var t="\ud800-\udfff",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\ud83c[\udffb-\udfff]",o="[^"+t+"]",i="(?:\ud83c[\udde6-\uddff]){2}",c="[\ud800-\udbff][\udc00-\udfff]",u="(?:"+n+"|"+r+")?",a="[\\ufe0e\\ufe0f]?",l="(?:\\u200d(?:"+[o,i,c].join("|")+")"+a+u+")*",f=RegExp(r+"(?="+r+")|(?:"+[o+n+"?",n,i,c,"["+t+"]"].join("|")+")"+(a+u+l),"g");function unicodeToArray(e){return e.match(f)||[]}e.exports=unicodeToArray},45652:function(e,t,n){var r=n(60665),o=n(21008);function capitalize(e){return o(r(e).toLowerCase())}e.exports=capitalize},12068:function(e){var t=Array.isArray;e.exports=t},12387:function(e){function isObjectLike(e){return null!=e&&"object"==typeof e}e.exports=isObjectLike},71087:function(e,t,n){var r=n(86714),o=n(12387);function isSymbol(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}e.exports=isSymbol},60665:function(e,t,n){var r=n(13511);function toString(e){return null==e?"":r(e)}e.exports=toString},21008:function(e,t,n){var r=n(12937)("toUpperCase");e.exports=r},13428:function(e,t,n){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c}=n,u=i.filter(Boolean),a=await (null==c.isRTL?void 0:c.isRTL(t)),l=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:s}=computeCoordsFromPlacement(l,r,a),d=r,p={},m=0;for(let n=0;n({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:i,rects:c,platform:u,elements:a,middlewareData:l}=t,{element:f,padding:s=0}=(0,r.ku)(e,t)||{};if(null==f)return{};let d=(0,r.yd)(s),p={x:n,y:o},m=(0,r.Wh)(i),g=(0,r.I4)(m),v=await u.getDimensions(f),b="y"===m,h=b?"clientHeight":"clientWidth",$=c.reference[g]+c.reference[m]-p[m]-c.floating[g],x=p[m]-c.reference[m],y=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),w=y?y[h]:0;w&&await (null==u.isElement?void 0:u.isElement(y))||(w=a.floating[h]||c.floating[g]);let A=w/2-v[g]/2-1,S=(0,r.VV)(d[b?"top":"left"],A),O=(0,r.VV)(d[b?"bottom":"right"],A),N=w-v[g]-O,E=w/2-v[g]/2+($/2-x/2),T=(0,r.uZ)(S,E,N),P=!l.arrow&&null!=(0,r.hp)(i)&&E!=T&&c.reference[g]/2-(Ee<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(c=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:c.placement;if(!n)switch(b){case"bestFit":{let e=null==(u=T.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:u[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}};function getSideOffsets(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function isAnySideFullyClipped(e){return r.mA.some(t=>e[t]>=0)}let hide=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:o="referenceHidden",...i}=(0,r.ku)(e,t);switch(o){case"referenceHidden":{let e=await detectOverflow(t,{...i,elementContext:"reference"}),r=getSideOffsets(e,n.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:isAnySideFullyClipped(r)}}}case"escaped":{let e=await detectOverflow(t,{...i,altBoundary:!0}),r=getSideOffsets(e,n.floating);return{data:{escapedOffsets:r,escaped:isAnySideFullyClipped(r)}}}default:return{}}}}};async function convertValueToCoords(e,t){let{placement:n,platform:o,elements:i}=e,c=await (null==o.isRTL?void 0:o.isRTL(i.floating)),u=(0,r.k3)(n),a=(0,r.hp)(n),l="y"===(0,r.Qq)(n),f=["left","top"].includes(u)?-1:1,s=c&&l?-1:1,d=(0,r.ku)(t,e),{mainAxis:p,crossAxis:m,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof g&&(m="end"===a?-1*g:g),l?{x:m*s,y:p*f}:{x:p*f,y:m*s}}let offset=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){let{x:n,y:r}=t,o=await convertValueToCoords(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},shift=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=(0,r.ku)(e,t),f={x:n,y:o},s=await detectOverflow(t,l),d=(0,r.Qq)((0,r.k3)(i)),p=(0,r.Rn)(d),m=f[p],g=f[d];if(c){let e=m+s["y"===p?"top":"left"],t=m-s["y"===p?"bottom":"right"];m=(0,r.uZ)(e,m,t)}if(u){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=g+s[e],o=g-s[t];g=(0,r.uZ)(n,g,o)}let v=a.fn({...t,[p]:m,[d]:g});return{...v,data:{x:v.x-n,y:v.y-o}}}}},limitShift=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:o,placement:i,rects:c,middlewareData:u}=t,{offset:a=0,mainAxis:l=!0,crossAxis:f=!0}=(0,r.ku)(e,t),s={x:n,y:o},d=(0,r.Qq)(i),p=(0,r.Rn)(d),m=s[p],g=s[d],v=(0,r.ku)(a,t),b="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){let e="y"===p?"height":"width",t=c.reference[p]-c.floating[e]+b.mainAxis,n=c.reference[p]+c.reference[e]-b.mainAxis;mn&&(m=n)}if(f){var h,$;let e="y"===p?"width":"height",t=["top","left"].includes((0,r.k3)(i)),n=c.reference[d]-c.floating[e]+(t&&(null==(h=u.offset)?void 0:h[d])||0)+(t?0:b.crossAxis),o=c.reference[d]+c.reference[e]+(t?0:(null==($=u.offset)?void 0:$[d])||0)-(t?b.crossAxis:0);go&&(g=o)}return{[p]:m,[d]:g}}}},size=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,o;let{placement:i,rects:c,platform:u,elements:a}=t,{apply:l=()=>{},...f}=(0,r.ku)(e,t),s=await detectOverflow(t,f),d=(0,r.k3)(i),p=(0,r.hp)(i),m="y"===(0,r.Qq)(i),{width:g,height:v}=c.floating;"top"===d||"bottom"===d?(n=d,o=p===(await (null==u.isRTL?void 0:u.isRTL(a.floating))?"start":"end")?"left":"right"):(o=d,n="end"===p?"top":"bottom");let b=v-s[n],h=g-s[o],$=!t.middlewareData.shift,x=b,y=h;if(m){let e=g-s.left-s.right;y=p||$?(0,r.VV)(h,e):e}else{let e=v-s.top-s.bottom;x=p||$?(0,r.VV)(b,e):e}if($&&!p){let e=(0,r.Fp)(s.left,0),t=(0,r.Fp)(s.right,0),n=(0,r.Fp)(s.top,0),o=(0,r.Fp)(s.bottom,0);m?y=g-2*(0!==e||0!==t?e+t:(0,r.Fp)(s.left,s.right)):x=v-2*(0!==n||0!==o?n+o:(0,r.Fp)(s.top,s.bottom))}await l({...t,availableWidth:y,availableHeight:x});let w=await u.getDimensions(a.floating);return g!==w.width||v!==w.height?{reset:{rects:!0}}:{}}}}},9082:function(e,t,n){"use strict";n.d(t,{Fp:function(){return i},GW:function(){return u},I4:function(){return getAxisLength},JB:function(){return rectToClientRect},KX:function(){return getOppositeAxisPlacements},NM:function(){return c},Qq:function(){return getSideAxis},Rn:function(){return getOppositeAxis},VV:function(){return o},Wh:function(){return getAlignmentAxis},gy:function(){return getExpandedPlacements},hp:function(){return getAlignment},i8:function(){return getAlignmentSides},k3:function(){return getSide},ku:function(){return evaluate},mA:function(){return r},pw:function(){return getOppositePlacement},uZ:function(){return clamp},yd:function(){return getPaddingObject},ze:function(){return createCoords}});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,c=Math.round,u=Math.floor,createCoords=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function clamp(e,t,n){return i(e,o(t,n))}function evaluate(e,t){return"function"==typeof e?e(t):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function getSideAxis(e){return["top","bottom"].includes(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,t,n){void 0===n&&(n=!1);let r=getAlignment(e),o=getAlignmentAxis(e),i=getAxisLength(o),c="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(c=getOppositePlacement(c)),[c,getOppositePlacement(c)]}function getExpandedPlacements(e){let t=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),t,getOppositeAlignmentPlacement(t)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>l[e])}function getSideList(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}function getOppositeAxisPlacements(e,t,n,r){let o=getAlignment(e),i=getSideList(getSide(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(getOppositeAlignmentPlacement)))),i}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return"number"!=typeof e?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}},96025:function(e,t,n){"use strict";function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var t;return(null==e?void 0:null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function getDocumentElement(e){var t;return null==(t=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function isTableElement(e){return["table","td","th"].includes(getNodeName(e))}function isContainingBlock(e){let t=isWebKit(),n=getComputedStyle(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function getContainingBlock(e){let t=getParentNode(e);for(;isHTMLElement(t)&&!isLastTraversableNode(t);){if(isContainingBlock(t))return t;t=getParentNode(t)}return null}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;let t=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(t)?t.host:t}function getNearestOverflowAncestor(e){let t=getParentNode(e);return isLastTraversableNode(t)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(t)&&isOverflowElement(t)?t:getNearestOverflowAncestor(t)}function getOverflowAncestors(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=getNearestOverflowAncestor(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),c=getWindow(o);return i?t.concat(c,c.visualViewport||[],isOverflowElement(o)?o:[],c.frameElement&&n?getOverflowAncestors(c.frameElement):[]):t.concat(o,getOverflowAncestors(o,[],n))}n.d(t,{Dx:function(){return getComputedStyle},Jj:function(){return getWindow},Kx:function(){return getOverflowAncestors},Lw:function(){return getNodeScroll},Ow:function(){return getParentNode},Pf:function(){return isWebKit},Py:function(){return isLastTraversableNode},Re:function(){return isHTMLElement},Ze:function(){return isTableElement},ao:function(){return isOverflowElement},gQ:function(){return getContainingBlock},hT:function(){return isContainingBlock},kK:function(){return isElement},tF:function(){return getDocumentElement},wk:function(){return getNodeName}})},85744:function(e,t,n){"use strict";function $e42e1063c40fb3ef$export$b9ecd428b558ff10(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}n.d(t,{M:function(){return $e42e1063c40fb3ef$export$b9ecd428b558ff10}})},42210:function(e,t,n){"use strict";n.d(t,{F:function(){return $6ed0406888f73fc4$export$43e446d32b3d21af},e:function(){return $6ed0406888f73fc4$export$c7b2cbe3552a0d05}});var r=n(2265);function $6ed0406888f73fc4$var$setRef(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...e){return t=>e.forEach(e=>$6ed0406888f73fc4$var$setRef(e,t))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...e){return(0,r.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...e),e)}},56989:function(e,t,n){"use strict";n.d(t,{b:function(){return $c512c27ab02ef895$export$50c7b4e9d9f19c1}});var r=n(2265);function $c512c27ab02ef895$export$50c7b4e9d9f19c1(e,t=[]){let n=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(t,o){let i=(0,r.createContext)(o),c=n.length;function Provider(t){let{scope:n,children:o,...u}=t,a=(null==n?void 0:n[e][c])||i,l=(0,r.useMemo)(()=>u,Object.values(u));return(0,r.createElement)(a.Provider,{value:l},o)}function useContext(n,u){let a=(null==u?void 0:u[e][c])||i,l=(0,r.useContext)(a);if(l)return l;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}return n=[...n,o],Provider.displayName=t+"Provider",[Provider,useContext]}let createScope=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let o=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return createScope.scopeName=e,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...t)]}function $c512c27ab02ef895$var$composeContextScopes(...e){let t=e[0];if(1===e.length)return t;let createScope1=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e),i=o[`__scope${r}`];return{...t,...i}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return createScope1.scopeName=t.scopeName,createScope1}},85606:function(e,t,n){"use strict";n.d(t,{z:function(){return $921a889cee6df7e8$export$99c2b779aa4e8b8b}});var r=n(2265),o=n(54887),i=n(42210),c=n(51030);function $fe963b355347cc68$export$3e6543de14f8614f(e,t){return(0,r.useReducer)((e,n)=>{let r=t[e][n];return null!=r?r:e},e)}let $921a889cee6df7e8$export$99c2b779aa4e8b8b=e=>{let{present:t,children:n}=e,o=$921a889cee6df7e8$var$usePresence(t),c="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),u=(0,i.e)(o.ref,c.ref),a="function"==typeof n;return a||o.isPresent?(0,r.cloneElement)(c,{ref:u}):null};function $921a889cee6df7e8$var$usePresence(e){let[t,n]=(0,r.useState)(),i=(0,r.useRef)({}),u=(0,r.useRef)(e),a=(0,r.useRef)("none"),l=e?"mounted":"unmounted",[f,s]=$fe963b355347cc68$export$3e6543de14f8614f(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)(()=>{let e=$921a889cee6df7e8$var$getAnimationName(i.current);a.current="mounted"===f?e:"none"},[f]),(0,c.b)(()=>{let t=i.current,n=u.current,r=n!==e;if(r){let r=a.current,o=$921a889cee6df7e8$var$getAnimationName(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),u.current=e}},[e,s]),(0,c.b)(()=>{if(t){let handleAnimationEnd=e=>{let n=$921a889cee6df7e8$var$getAnimationName(i.current),r=n.includes(e.animationName);e.target===t&&r&&(0,o.flushSync)(()=>s("ANIMATION_END"))},handleAnimationStart=e=>{e.target===t&&(a.current=$921a889cee6df7e8$var$getAnimationName(i.current))};return t.addEventListener("animationstart",handleAnimationStart),t.addEventListener("animationcancel",handleAnimationEnd),t.addEventListener("animationend",handleAnimationEnd),()=>{t.removeEventListener("animationstart",handleAnimationStart),t.removeEventListener("animationcancel",handleAnimationEnd),t.removeEventListener("animationend",handleAnimationEnd)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(e=>{e&&(i.current=getComputedStyle(e)),n(e)},[])}}function $921a889cee6df7e8$var$getAnimationName(e){return(null==e?void 0:e.animationName)||"none"}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence"},9381:function(e,t,n){"use strict";n.d(t,{WV:function(){return u},jH:function(){return $8927f6f2acc4f386$export$6d1a0317bde7de7f}});var r=n(13428),o=n(2265),i=n(54887),c=n(67256);let u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,o.forwardRef)((e,n)=>{let{asChild:i,...u}=e,a=i?c.g7:t;return(0,o.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,o.createElement)(a,(0,r.Z)({},u,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(e,t){e&&(0,i.flushSync)(()=>e.dispatchEvent(t))}},67256:function(e,t,n){"use strict";n.d(t,{A4:function(){return $5e63c961fc1ce211$export$d9f1ccf0bdb05d45},g7:function(){return c}});var r=n(13428),o=n(2265),i=n(42210);let c=(0,o.forwardRef)((e,t)=>{let{children:n,...i}=e,c=o.Children.toArray(n),a=c.find($5e63c961fc1ce211$var$isSlottable);if(a){let e=a.props.children,n=c.map(t=>t!==a?t:o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null);return(0,o.createElement)(u,(0,r.Z)({},i,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,n):null)}return(0,o.createElement)(u,(0,r.Z)({},i,{ref:t}),n)});c.displayName="Slot";let u=(0,o.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{...$5e63c961fc1ce211$var$mergeProps(r,n.props),ref:t?(0,i.F)(t,n.ref):n.ref}):o.Children.count(n)>1?o.Children.only(null):null});u.displayName="SlotClone";let $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function $5e63c961fc1ce211$var$isSlottable(e){return(0,o.isValidElement)(e)&&e.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r],c=/^on[A-Z]/.test(r);c?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}},16459:function(e,t,n){"use strict";n.d(t,{W:function(){return $b1b2314f5f9a1d84$export$25bec8c6f54ee79a}});var r=n(2265);function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e){let t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}},73763:function(e,t,n){"use strict";n.d(t,{T:function(){return $71cd76cc60e0454e$export$6f32135080cb4c3}});var r=n(2265),o=n(16459);function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,c]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:t,onChange:n}),u=void 0!==e,a=u?e:i,l=(0,o.W)(n),f=(0,r.useCallback)(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l(n)}else c(t)},[u,e,c,l]);return[a,f]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:e,onChange:t}){let n=(0,r.useState)(e),[i]=n,c=(0,r.useRef)(i),u=(0,o.W)(t);return(0,r.useEffect)(()=>{c.current!==i&&(u(i),c.current=i)},[i,c,u]),n}},51030:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(2265);let o=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},94977:function(e,t,n){"use strict";n.d(t,{t:function(){return $db6c3485150b8e66$export$1ab7ae714698c4b8}});var r=n(2265),o=n(51030);function $db6c3485150b8e66$export$1ab7ae714698c4b8(e){let[t,n]=(0,r.useState)(void 0);return(0,o.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/726-55a870ab74256460.js b/web/_next/static/chunks/726-55a870ab74256460.js new file mode 100644 index 00000000..28ae8028 --- /dev/null +++ b/web/_next/static/chunks/726-55a870ab74256460.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[726],{97726:function(e,t,n){n.d(t,{O4:function(){return atomWithStorage}});var r=n(77665);let o=Symbol(),isPromiseLike=e=>"function"==typeof(null==e?void 0:e.then);function createJSONStorage(e){let t,n;let r={getItem:(r,o)=>{var i,a;let parse=e=>{if(t!==(e=e||"")){try{n=JSON.parse(e)}catch{return o}t=e}return n},u=null!=(a=null==(i=e())?void 0:i.getItem(r))?a:null;return isPromiseLike(u)?u.then(parse):parse(u)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};return"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(r.subscribe=(t,n,r)=>{if(!(e() instanceof window.Storage))return()=>{};let storageEventCallback=o=>{if(o.storageArea===e()&&o.key===t){let e;try{e=JSON.parse(o.newValue||"")}catch{e=r}n(e)}};return window.addEventListener("storage",storageEventCallback),()=>{window.removeEventListener("storage",storageEventCallback)}}),r}let i=createJSONStorage(()=>"undefined"!=typeof window?window.localStorage:void 0);function atomWithStorage(e,t,n=i,a){let u=null==a?void 0:a.unstable_getOnInit,l=(0,r.cn)(u?n.getItem(e,t):t);l.debugPrivate=!0,l.onMount=r=>{let o;return u||r(n.getItem(e,t)),n.subscribe&&(o=n.subscribe(e,r,t)),o};let s=(0,r.cn)(e=>e(l),(r,i,a)=>{let u="function"==typeof a?a(r(l)):a;return u===o?(i(l,t),n.removeItem(e)):u instanceof Promise?u.then(t=>(i(l,t),n.setItem(e,t))):(i(l,u),n.setItem(e,u))});return s}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/766-37d354716b7b2abd.js b/web/_next/static/chunks/766-37d354716b7b2abd.js new file mode 100644 index 00000000..ade69884 --- /dev/null +++ b/web/_next/static/chunks/766-37d354716b7b2abd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[766],{35590:function(e,n,r){var l=r(65491).w_;e.exports.c=function(e){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]})(e)}},57487:function(e,n,r){var l=r(65491).w_;e.exports.l=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707L16.414 12 10.707 6.293 9.293 7.707 13.586 12 9.293 16.293z"}}]})(e)}},86321:function(e,n,r){var l=r(65491).w_;e.exports.m=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 10H5c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h14c1.103 0 2-.897 2-2v-8C21 10.897 20.103 10 19 10zM5 20v-8h14l.002 8H5zM5 6H19V8H5zM7 2H17V4H7z"}}]})(e)}},8538:function(e,n,r){var l=r(65491).w_;e.exports.y=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 16L16 11 13 11 13 4 11 4 11 11 8 11z"}},{tag:"path",attr:{d:"M20,18H4v-7H2v7c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2v-7h-2V18z"}}]})(e)}},16979:function(e,n,r){var l=r(65491).w_;e.exports._=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}},{tag:"polyline",attr:{points:"10 17 15 12 10 7"}},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"}}]})(e)}},88356:function(e,n,r){var l=r(65491).w_;e.exports.j=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(e)}},5472:function(e,n,r){var l=r(65491).w_;e.exports.n=function(e){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"3"}},{tag:"path",attr:{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}}]})(e)}},59179:function(e,n,r){var l=r(65491).w_;e.exports.Q=function(e){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 480H48a32 32 0 01-32-32V112a32 32 0 0132-32h16a32 32 0 0132 32v336a32 32 0 01-32 32zm176-304a32 32 0 00-32-32h-64a32 32 0 00-32 32v28a4 4 0 004 4h120a4 4 0 004-4zM112 448a32 32 0 0032 32h64a32 32 0 0032-32v-30a2 2 0 00-2-2H114a2 2 0 00-2 2z"}},{tag:"rect",attr:{width:"128",height:"144",x:"112",y:"240",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M320 480h-32a32 32 0 01-32-32V64a32 32 0 0132-32h32a32 32 0 0132 32v384a32 32 0 01-32 32zm175.89-34.55l-32.23-340c-1.48-15.65-16.94-27-34.53-25.31l-31.85 3c-17.59 1.67-30.65 15.71-29.17 31.36l32.23 340c1.48 15.65 16.94 27 34.53 25.31l31.85-3c17.59-1.67 30.65-15.71 29.17-31.36z"}}]})(e)}},60060:function(e,n,r){var l=r(65491).w_;e.exports.A=function(e){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M400 148l-21.12-24.57A191.43 191.43 0 00240 64C134 64 48 150 48 256s86 192 192 192a192.09 192.09 0 00181.07-128"}},{tag:"path",attr:{d:"M464 97.42V208a16 16 0 01-16 16H337.42c-14.26 0-21.4-17.23-11.32-27.31L436.69 86.1C446.77 76 464 83.16 464 97.42z"}}]})(e)}},28811:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return dynamic}});let l=r(21024);r(2265);let c=l._(r(57075));function convertModule(e){return{default:(null==e?void 0:e.default)||e}}function dynamic(e,n){let r=c.default,l={loading:e=>{let{error:n,isLoading:r,pastDelay:l}=e;return null}};"function"==typeof e&&(l.loader=e),Object.assign(l,n);let d=l.loader;return r({...l,loader:()=>null!=d?d().then(convertModule):Promise.resolve(convertModule(()=>null))})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),e.exports=n.default)},19167:function(e,n,r){"use strict";function NoSSR(e){let{children:n}=e;return n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"NoSSR",{enumerable:!0,get:function(){return NoSSR}}),r(11283)},57075:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return p}});let l=r(21024),c=l._(r(2265)),d=r(19167);function Loadable(e){let n=Object.assign({loader:null,loading:null,ssr:!0},e);function LoadableComponent(e){let r=n.loading,l=c.default.createElement(r,{isLoading:!0,pastDelay:!0,error:null}),p=n.ssr?c.default.Fragment:d.NoSSR,b=n.lazy;return c.default.createElement(c.default.Suspense,{fallback:l},c.default.createElement(p,null,c.default.createElement(b,e)))}return n.lazy=c.default.lazy(n.loader),LoadableComponent.displayName="LoadableComponent",LoadableComponent}let p=Loadable},27679:function(e,n,r){"use strict";r.d(n,{h:function(){return ei}});var l,c,d,p,b=r(2265),v=r(32600),m=r(61858);function use_computed_i(e,n){let[r,l]=(0,b.useState)(e),c=(0,m.E)(e);return(0,v.e)(()=>l(c.current),[c,l,...n]),r}var R=r(82769),y=r(12950),I=r(75606),h=r(90583),S=r(8076),P=r(46618),E=r(50926),C=r(53891),_=r(85390),k=r(11931),D=r(35863),A=r(60597);function form_e(e={},n=null,r=[]){for(let[l,c]of Object.entries(e))o(r,f(n,l),c);return r}function f(e,n){return e?e+"["+n+"]":n}function o(e,n,r){if(Array.isArray(r))for(let[l,c]of r.entries())o(e,f(n,l.toString()),c);else r instanceof Date?e.push([n,r.toISOString()]):"boolean"==typeof r?e.push([n,r?"1":"0"]):"string"==typeof r?e.push([n,r]):"number"==typeof r?e.push([n,`${r}`]):null==r?e.push([n,""]):form_e(r,n,e)}var z=r(65410),L=r(58227),N=r(25306),B=r(93850);function T(e,n,r){let[l,c]=(0,b.useState)(r),d=void 0!==e,p=(0,b.useRef)(d),v=(0,b.useRef)(!1),m=(0,b.useRef)(!1);return!d||p.current||v.current?d||!p.current||m.current||(m.current=!0,p.current=d,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.")):(v.current=!0,p.current=d,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.")),[d?e:l,(0,y.z)(e=>(d||c(e),null==n?void 0:n(e)))]}var j=r(7566),H=r(13995),U=r(34644),$=r(57728),K=((l=K||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),G=((c=G||{})[c.Single=0]="Single",c[c.Multi=1]="Multi",c),W=((d=W||{})[d.Pointer=0]="Pointer",d[d.Other=1]="Other",d),Q=((p=Q||{})[p.OpenCombobox=0]="OpenCombobox",p[p.CloseCombobox=1]="CloseCombobox",p[p.GoToOption=2]="GoToOption",p[p.RegisterOption=3]="RegisterOption",p[p.UnregisterOption=4]="UnregisterOption",p[p.RegisterLabel=5]="RegisterLabel",p);function ae(e,n=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,l=(0,z.z2)(n(e.options.slice()),e=>e.dataRef.current.domRef.current),c=r?l.indexOf(r):null;return -1===c&&(c=null),{options:l,activeOptionIndex:c}}let X={1(e){var n;return null!=(n=e.dataRef.current)&&n.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var n;if(null!=(n=e.dataRef.current)&&n.disabled||0===e.comboboxState)return e;let r=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:n}=e.dataRef.current,l=e.options.findIndex(e=>n(e.dataRef.current.value));-1!==l&&(r=l)}return{...e,comboboxState:0,activeOptionIndex:r}},2(e,n){var r,l,c,d;if(null!=(r=e.dataRef.current)&&r.disabled||null!=(l=e.dataRef.current)&&l.optionsRef.current&&!(null!=(c=e.dataRef.current)&&c.optionsPropsRef.current.static)&&1===e.comboboxState)return e;let p=ae(e);if(null===p.activeOptionIndex){let e=p.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(p.activeOptionIndex=e)}let b=(0,C.d)(n,{resolveItems:()=>p.options,resolveActiveIndex:()=>p.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...p,activeOptionIndex:b,activationTrigger:null!=(d=n.trigger)?d:1}},3:(e,n)=>{var r,l;let c={id:n.id,dataRef:n.dataRef},d=ae(e,e=>[...e,c]);null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(n.dataRef.current.value)&&(d.activeOptionIndex=d.options.indexOf(c));let p={...e,...d,activationTrigger:1};return null!=(l=e.dataRef.current)&&l.__demoMode&&void 0===e.dataRef.current.value&&(p.activeOptionIndex=0),p},4:(e,n)=>{let r=ae(e,e=>{let r=e.findIndex(e=>e.id===n.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},5:(e,n)=>({...e,labelId:n.id})},et=(0,b.createContext)(null);function Z(e){let n=(0,b.useContext)(et);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Z),n}return n}et.displayName="ComboboxActionsContext";let en=(0,b.createContext)(null);function J(e){let n=(0,b.useContext)(en);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,J),n}return n}function Xe(e,n){return(0,A.E)(n.type,X,e,n)}en.displayName="ComboboxDataContext";let er=b.Fragment;function Je(e,n){let{value:r,defaultValue:l,onChange:c,form:d,name:p,by:m=(e,n)=>e===n,disabled:I=!1,__demoMode:S=!1,nullable:P=!1,multiple:E=!1,..._}=e,[D=E?[]:void 0,z]=T(r,c,l),[B,j]=(0,b.useReducer)(Xe,{dataRef:(0,b.createRef)(),comboboxState:S?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),H=(0,b.useRef)(!1),U=(0,b.useRef)({static:!1,hold:!1}),$=(0,b.useRef)(null),K=(0,b.useRef)(null),G=(0,b.useRef)(null),W=(0,b.useRef)(null),Q=(0,y.z)("string"==typeof m?(e,n)=>(null==e?void 0:e[m])===(null==n?void 0:n[m]):m),X=(0,b.useCallback)(e=>(0,A.E)(ea.mode,{1:()=>D.some(n=>Q(n,e)),0:()=>Q(D,e)}),[D]),ea=(0,b.useMemo)(()=>({...B,optionsPropsRef:U,labelRef:$,inputRef:K,buttonRef:G,optionsRef:W,value:D,defaultValue:l,disabled:I,mode:E?1:0,get activeOptionIndex(){if(H.current&&null===B.activeOptionIndex&&B.options.length>0){let e=B.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return B.activeOptionIndex},compare:Q,isSelected:X,nullable:P,__demoMode:S}),[D,l,I,E,P,S,B]),el=(0,b.useRef)(null!==ea.activeOptionIndex?ea.options[ea.activeOptionIndex]:null);(0,b.useEffect)(()=>{let e=null!==ea.activeOptionIndex?ea.options[ea.activeOptionIndex]:null;el.current!==e&&(el.current=e)}),(0,v.e)(()=>{B.dataRef.current=ea},[ea]),(0,h.O)([ea.buttonRef,ea.inputRef,ea.optionsRef],()=>em.closeCombobox(),0===ea.comboboxState);let eu=(0,b.useMemo)(()=>({open:0===ea.comboboxState,disabled:I,activeIndex:ea.activeOptionIndex,activeOption:null===ea.activeOptionIndex?null:ea.options[ea.activeOptionIndex].dataRef.current.value,value:D}),[ea,I,D]),ei=(0,y.z)(e=>{let n=ea.options.find(n=>n.id===e);n&&ev(n.dataRef.current.value)}),es=(0,y.z)(()=>{if(null!==ea.activeOptionIndex){let{dataRef:e,id:n}=ea.options[ea.activeOptionIndex];ev(e.current.value),em.goToOption(C.T.Specific,n)}}),ec=(0,y.z)(()=>{j({type:0}),H.current=!0}),ed=(0,y.z)(()=>{j({type:1}),H.current=!1}),ep=(0,y.z)((e,n,r)=>(H.current=!1,e===C.T.Specific?j({type:2,focus:C.T.Specific,id:n,trigger:r}):j({type:2,focus:e,trigger:r}))),ef=(0,y.z)((e,n)=>(j({type:3,id:e,dataRef:n}),()=>{var n;(null==(n=el.current)?void 0:n.id)===e&&(H.current=!0),j({type:4,id:e})})),eb=(0,y.z)(e=>(j({type:5,id:e}),()=>j({type:5,id:null}))),ev=(0,y.z)(e=>(0,A.E)(ea.mode,{0:()=>null==z?void 0:z(e),1(){let n=ea.value.slice(),r=n.findIndex(n=>Q(n,e));return -1===r?n.push(e):n.splice(r,1),null==z?void 0:z(n)}})),em=(0,b.useMemo)(()=>({onChange:ev,registerOption:ef,registerLabel:eb,goToOption:ep,closeCombobox:ed,openCombobox:ec,selectActiveOption:es,selectOption:ei}),[]),ex=(0,b.useRef)(null),eg=(0,R.G)();return(0,b.useEffect)(()=>{ex.current&&void 0!==l&&eg.addEventListener(ex.current,"reset",()=>{null==z||z(l)})},[ex,z]),b.createElement(et.Provider,{value:em},b.createElement(en.Provider,{value:ea},b.createElement(N.up,{value:(0,A.E)(ea.comboboxState,{0:N.ZM.Open,1:N.ZM.Closed})},null!=p&&null!=D&&form_e({[p]:D}).map(([e,n],r)=>b.createElement(L._,{features:L.A.Hidden,ref:0===r?e=>{var n;ex.current=null!=(n=null==e?void 0:e.closest("form"))?n:null}:void 0,...(0,k.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:d,name:e,value:n})})),(0,k.sY)({ourProps:null===n?{}:{ref:n},theirProps:_,slot:eu,defaultTag:er,name:"Combobox"}))))}function We(e,n){var r,l,c,d,p;let v=(0,I.M)(),{id:m=`headlessui-combobox-input-${v}`,onChange:h,displayValue:S,type:E="text",..._}=e,D=J("Combobox.Input"),z=Z("Combobox.Input"),L=(0,P.T)(D.inputRef,n),N=(0,$.i)(D.inputRef),H=(0,b.useRef)(!1),U=(0,R.G)(),K=(0,y.z)(()=>{z.onChange(null),D.optionsRef.current&&(D.optionsRef.current.scrollTop=0),z.goToOption(C.T.Nothing)}),G="function"==typeof S&&void 0!==D.value?null!=(p=S(D.value))?p:"":"string"==typeof D.value?D.value:"";(0,j.q)(([e,n],[r,l])=>{if(H.current)return;let c=D.inputRef.current;c&&((0===l&&1===n||e!==r)&&(c.value=e),requestAnimationFrame(()=>{if(H.current||!c||(null==N?void 0:N.activeElement)!==c)return;let{selectionStart:e,selectionEnd:n}=c;0===Math.abs((null!=n?n:0)-(null!=e?e:0))&&0===e&&c.setSelectionRange(c.value.length,c.value.length)}))},[G,D.comboboxState,N]),(0,j.q)(([e],[n])=>{if(0===e&&1===n){if(H.current)return;let e=D.inputRef.current;if(!e)return;let n=e.value,{selectionStart:r,selectionEnd:l,selectionDirection:c}=e;e.value="",e.value=n,null!==c?e.setSelectionRange(r,l,c):e.setSelectionRange(r,l)}},[D.comboboxState]);let W=(0,b.useRef)(!1),Q=(0,y.z)(()=>{W.current=!0}),X=(0,y.z)(()=>{U.nextFrame(()=>{W.current=!1})}),et=(0,y.z)(e=>{switch(H.current=!0,e.key){case B.R.Enter:if(H.current=!1,0!==D.comboboxState||W.current)return;if(e.preventDefault(),e.stopPropagation(),null===D.activeOptionIndex){z.closeCombobox();return}z.selectActiveOption(),0===D.mode&&z.closeCombobox();break;case B.R.ArrowDown:return H.current=!1,e.preventDefault(),e.stopPropagation(),(0,A.E)(D.comboboxState,{0:()=>{z.goToOption(C.T.Next)},1:()=>{z.openCombobox()}});case B.R.ArrowUp:return H.current=!1,e.preventDefault(),e.stopPropagation(),(0,A.E)(D.comboboxState,{0:()=>{z.goToOption(C.T.Previous)},1:()=>{z.openCombobox(),U.nextFrame(()=>{D.value||z.goToOption(C.T.Last)})}});case B.R.Home:if(e.shiftKey)break;return H.current=!1,e.preventDefault(),e.stopPropagation(),z.goToOption(C.T.First);case B.R.PageUp:return H.current=!1,e.preventDefault(),e.stopPropagation(),z.goToOption(C.T.First);case B.R.End:if(e.shiftKey)break;return H.current=!1,e.preventDefault(),e.stopPropagation(),z.goToOption(C.T.Last);case B.R.PageDown:return H.current=!1,e.preventDefault(),e.stopPropagation(),z.goToOption(C.T.Last);case B.R.Escape:return H.current=!1,0!==D.comboboxState?void 0:(e.preventDefault(),D.optionsRef.current&&!D.optionsPropsRef.current.static&&e.stopPropagation(),D.nullable&&0===D.mode&&null===D.value&&K(),z.closeCombobox());case B.R.Tab:if(H.current=!1,0!==D.comboboxState)return;0===D.mode&&z.selectActiveOption(),z.closeCombobox()}}),en=(0,y.z)(e=>{null==h||h(e),D.nullable&&0===D.mode&&""===e.target.value&&K(),z.openCombobox()}),er=(0,y.z)(()=>{H.current=!1}),ea=use_computed_i(()=>{if(D.labelId)return[D.labelId].join(" ")},[D.labelId]),el=(0,b.useMemo)(()=>({open:0===D.comboboxState,disabled:D.disabled}),[D]),eu={ref:L,id:m,role:"combobox",type:E,"aria-controls":null==(r=D.optionsRef.current)?void 0:r.id,"aria-expanded":0===D.comboboxState,"aria-activedescendant":null===D.activeOptionIndex||null==(l=D.options[D.activeOptionIndex])?void 0:l.id,"aria-labelledby":ea,"aria-autocomplete":"list",defaultValue:null!=(d=null!=(c=e.defaultValue)?c:void 0!==D.defaultValue?null==S?void 0:S(D.defaultValue):null)?d:D.defaultValue,disabled:D.disabled,onCompositionStart:Q,onCompositionEnd:X,onKeyDown:et,onChange:en,onBlur:er};return(0,k.sY)({ourProps:eu,theirProps:_,slot:el,defaultTag:"input",name:"Combobox.Input"})}function qe(e,n){var r;let l=J("Combobox.Button"),c=Z("Combobox.Button"),d=(0,P.T)(l.buttonRef,n),p=(0,I.M)(),{id:v=`headlessui-combobox-button-${p}`,...m}=e,h=(0,R.G)(),E=(0,y.z)(e=>{switch(e.key){case B.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===l.comboboxState&&c.openCombobox(),h.nextFrame(()=>{var e;return null==(e=l.inputRef.current)?void 0:e.focus({preventScroll:!0})});case B.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===l.comboboxState&&(c.openCombobox(),h.nextFrame(()=>{l.value||c.goToOption(C.T.Last)})),h.nextFrame(()=>{var e;return null==(e=l.inputRef.current)?void 0:e.focus({preventScroll:!0})});case B.R.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox(),h.nextFrame(()=>{var e;return null==(e=l.inputRef.current)?void 0:e.focus({preventScroll:!0})}));default:return}}),_=(0,y.z)(e=>{if((0,D.P)(e.currentTarget))return e.preventDefault();0===l.comboboxState?c.closeCombobox():(e.preventDefault(),c.openCombobox()),h.nextFrame(()=>{var e;return null==(e=l.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),A=use_computed_i(()=>{if(l.labelId)return[l.labelId,v].join(" ")},[l.labelId,v]),z=(0,b.useMemo)(()=>({open:0===l.comboboxState,disabled:l.disabled,value:l.value}),[l]),L={ref:d,id:v,type:(0,S.f)(e,l.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(r=l.optionsRef.current)?void 0:r.id,"aria-expanded":0===l.comboboxState,"aria-labelledby":A,disabled:l.disabled,onClick:_,onKeyDown:E};return(0,k.sY)({ourProps:L,theirProps:m,slot:z,defaultTag:"button",name:"Combobox.Button"})}function Ye(e,n){let r=(0,I.M)(),{id:l=`headlessui-combobox-label-${r}`,...c}=e,d=J("Combobox.Label"),p=Z("Combobox.Label"),m=(0,P.T)(d.labelRef,n);(0,v.e)(()=>p.registerLabel(l),[l]);let R=(0,y.z)(()=>{var e;return null==(e=d.inputRef.current)?void 0:e.focus({preventScroll:!0})}),h=(0,b.useMemo)(()=>({open:0===d.comboboxState,disabled:d.disabled}),[d]);return(0,k.sY)({ourProps:{ref:m,id:l,onClick:R},theirProps:c,slot:h,defaultTag:"label",name:"Combobox.Label"})}let ea=k.AN.RenderStrategy|k.AN.Static;function eo(e,n){let r=(0,I.M)(),{id:l=`headlessui-combobox-options-${r}`,hold:c=!1,...d}=e,p=J("Combobox.Options"),m=(0,P.T)(p.optionsRef,n),R=(0,N.oJ)(),y=null!==R?(R&N.ZM.Open)===N.ZM.Open:0===p.comboboxState;(0,v.e)(()=>{var n;p.optionsPropsRef.current.static=null!=(n=e.static)&&n},[p.optionsPropsRef,e.static]),(0,v.e)(()=>{p.optionsPropsRef.current.hold=c},[p.optionsPropsRef,c]),(0,E.B)({container:p.optionsRef.current,enabled:0===p.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let h=use_computed_i(()=>{var e,n;return null!=(n=p.labelId)?n:null==(e=p.buttonRef.current)?void 0:e.id},[p.labelId,p.buttonRef.current]),S=(0,b.useMemo)(()=>({open:0===p.comboboxState}),[p]),C={"aria-labelledby":h,role:"listbox","aria-multiselectable":1===p.mode||void 0,id:l,ref:m};return(0,k.sY)({ourProps:C,theirProps:d,slot:S,defaultTag:"ul",features:ea,visible:y,name:"Combobox.Options"})}function to(e,n){var r,l;let c=(0,I.M)(),{id:d=`headlessui-combobox-option-${c}`,disabled:p=!1,value:R,...h}=e,S=J("Combobox.Option"),E=Z("Combobox.Option"),D=null!==S.activeOptionIndex&&S.options[S.activeOptionIndex].id===d,A=S.isSelected(R),z=(0,b.useRef)(null),L=(0,m.E)({disabled:p,value:R,domRef:z,textValue:null==(l=null==(r=z.current)?void 0:r.textContent)?void 0:l.toLowerCase()}),N=(0,P.T)(n,z),B=(0,y.z)(()=>E.selectOption(d));(0,v.e)(()=>E.registerOption(d,L),[L,d]);let j=(0,b.useRef)(!S.__demoMode);(0,v.e)(()=>{if(!S.__demoMode)return;let e=(0,_.k)();return e.requestAnimationFrame(()=>{j.current=!0}),e.dispose},[]),(0,v.e)(()=>{if(0!==S.comboboxState||!D||!j.current||0===S.activationTrigger)return;let e=(0,_.k)();return e.requestAnimationFrame(()=>{var e,n;null==(n=null==(e=z.current)?void 0:e.scrollIntoView)||n.call(e,{block:"nearest"})}),e.dispose},[z,D,S.comboboxState,S.activationTrigger,S.activeOptionIndex]);let $=(0,y.z)(e=>{if(p)return e.preventDefault();B(),0===S.mode&&E.closeCombobox(),(0,U.tq)()||requestAnimationFrame(()=>{var e;return null==(e=S.inputRef.current)?void 0:e.focus()})}),K=(0,y.z)(()=>{if(p)return E.goToOption(C.T.Nothing);E.goToOption(C.T.Specific,d)}),G=(0,H.g)(),W=(0,y.z)(e=>G.update(e)),Q=(0,y.z)(e=>{G.wasMoved(e)&&(p||D||E.goToOption(C.T.Specific,d,0))}),X=(0,y.z)(e=>{G.wasMoved(e)&&(p||D&&(S.optionsPropsRef.current.hold||E.goToOption(C.T.Nothing)))}),et=(0,b.useMemo)(()=>({active:D,selected:A,disabled:p}),[D,A,p]);return(0,k.sY)({ourProps:{id:d,ref:N,role:"option",tabIndex:!0===p?void 0:-1,"aria-disabled":!0===p||void 0,"aria-selected":A,disabled:void 0,onClick:$,onFocus:K,onPointerEnter:W,onMouseEnter:W,onPointerMove:Q,onMouseMove:Q,onPointerLeave:X,onMouseLeave:X},theirProps:h,slot:et,defaultTag:"li",name:"Combobox.Option"})}let el=(0,k.yV)(Je),eu=(0,k.yV)(qe),ei=Object.assign(el,{Input:(0,k.yV)(We),Button:eu,Label:(0,k.yV)(Ye),Options:(0,k.yV)(eo),Option:(0,k.yV)(to)})},18743:function(e,n,r){"use strict";r.d(n,{p:function(){return j}});var l,c,d,p=r(2265),b=r(60597),v=r(11931),m=r(46618),R=r(75606),y=r(93850),I=r(35863),h=r(25306),S=r(8076),P=r(54851),E=r(12950);let C=null!=(d=p.startTransition)?d:function(e){e()};var _=((l=_||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),k=((c=k||{})[c.ToggleDisclosure=0]="ToggleDisclosure",c[c.CloseDisclosure=1]="CloseDisclosure",c[c.SetButtonId=2]="SetButtonId",c[c.SetPanelId=3]="SetPanelId",c[c.LinkPanel=4]="LinkPanel",c[c.UnlinkPanel=5]="UnlinkPanel",c);let D={0:e=>({...e,disclosureState:(0,b.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,n)=>e.buttonId===n.buttonId?e:{...e,buttonId:n.buttonId},3:(e,n)=>e.panelId===n.panelId?e:{...e,panelId:n.panelId}},A=(0,p.createContext)(null);function M(e){let n=(0,p.useContext)(A);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,M),n}return n}A.displayName="DisclosureContext";let z=(0,p.createContext)(null);function w(e){let n=(0,p.useContext)(z);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,w),n}return n}z.displayName="DisclosureAPIContext";let L=(0,p.createContext)(null);function V(){return(0,p.useContext)(L)}function Y(e,n){return(0,b.E)(n.type,D,e,n)}L.displayName="DisclosurePanelContext";let N=p.Fragment;function ee(e,n){let{defaultOpen:r=!1,...l}=e,c=(0,p.useRef)(null),d=(0,m.T)(n,(0,m.h)(e=>{c.current=e},void 0===e.as||e.as===p.Fragment)),R=(0,p.useRef)(null),y=(0,p.useRef)(null),I=(0,p.useReducer)(Y,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:y,panelRef:R,buttonId:null,panelId:null}),[{disclosureState:S,buttonId:C},_]=I,k=(0,E.z)(e=>{_({type:1});let n=(0,P.r)(c);if(!n||!C)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:n.getElementById(C):n.getElementById(C);null==r||r.focus()}),D=(0,p.useMemo)(()=>({close:k}),[k]),L=(0,p.useMemo)(()=>({open:0===S,close:k}),[S,k]);return p.createElement(A.Provider,{value:I},p.createElement(z.Provider,{value:D},p.createElement(h.up,{value:(0,b.E)(S,{0:h.ZM.Open,1:h.ZM.Closed})},(0,v.sY)({ourProps:{ref:d},theirProps:l,slot:L,defaultTag:N,name:"Disclosure"}))))}function ne(e,n){let r=(0,R.M)(),{id:l=`headlessui-disclosure-button-${r}`,...c}=e,[d,b]=M("Disclosure.Button"),h=V(),P=null!==h&&h===d.panelId,C=(0,p.useRef)(null),_=(0,m.T)(C,n,P?null:d.buttonRef);(0,p.useEffect)(()=>{if(!P)return b({type:2,buttonId:l}),()=>{b({type:2,buttonId:null})}},[l,b,P]);let k=(0,E.z)(e=>{var n;if(P){if(1===d.disclosureState)return;switch(e.key){case y.R.Space:case y.R.Enter:e.preventDefault(),e.stopPropagation(),b({type:0}),null==(n=d.buttonRef.current)||n.focus()}}else switch(e.key){case y.R.Space:case y.R.Enter:e.preventDefault(),e.stopPropagation(),b({type:0})}}),D=(0,E.z)(e=>{e.key===y.R.Space&&e.preventDefault()}),A=(0,E.z)(n=>{var r;(0,I.P)(n.currentTarget)||e.disabled||(P?(b({type:0}),null==(r=d.buttonRef.current)||r.focus()):b({type:0}))}),z=(0,p.useMemo)(()=>({open:0===d.disclosureState}),[d]),L=(0,S.f)(e,C),N=P?{ref:_,type:L,onKeyDown:k,onClick:A}:{ref:_,id:l,type:L,"aria-expanded":0===d.disclosureState,"aria-controls":d.linkedPanel?d.panelId:void 0,onKeyDown:k,onKeyUp:D,onClick:A};return(0,v.sY)({ourProps:N,theirProps:c,slot:z,defaultTag:"button",name:"Disclosure.Button"})}let B=v.AN.RenderStrategy|v.AN.Static;function re(e,n){let r=(0,R.M)(),{id:l=`headlessui-disclosure-panel-${r}`,...c}=e,[d,b]=M("Disclosure.Panel"),{close:y}=w("Disclosure.Panel"),I=(0,m.T)(n,d.panelRef,e=>{C(()=>b({type:e?4:5}))});(0,p.useEffect)(()=>(b({type:3,panelId:l}),()=>{b({type:3,panelId:null})}),[l,b]);let S=(0,h.oJ)(),P=null!==S?(S&h.ZM.Open)===h.ZM.Open:0===d.disclosureState,E=(0,p.useMemo)(()=>({open:0===d.disclosureState,close:y}),[d,y]);return p.createElement(L.Provider,{value:d.panelId},(0,v.sY)({ourProps:{ref:I,id:l},theirProps:c,slot:E,defaultTag:"div",features:B,visible:P,name:"Disclosure.Panel"}))}let j=Object.assign((0,v.yV)(ee),{Button:(0,v.yV)(ne),Panel:(0,v.yV)(re)})},12223:function(e,n,r){"use strict";r.d(n,{v:function(){return X}});var l,c,d,p=r(2265),b=r(60597),v=r(11931),m=r(85390),R=r(82769),y=r(32600),I=r(46618),h=r(75606),S=r(93850),P=r(53891),E=r(35863),C=r(65410),_=r(90583),k=r(50926),D=r(25306),A=r(8076),z=r(57728),L=r(12950),N=r(13995);let B=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(e){var n,r;let l=null!=(n=e.innerText)?n:"",c=e.cloneNode(!0);if(!(c instanceof HTMLElement))return l;let d=!1;for(let e of c.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),d=!0;let p=d?null!=(r=c.innerText)?r:"":l;return B.test(p)&&(p=p.replace(B,"")),p}function g(e){let n=e.getAttribute("aria-label");if("string"==typeof n)return n.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let n=document.getElementById(e);if(n){let e=n.getAttribute("aria-label");return"string"==typeof e?e.trim():o(n).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return o(e).trim()}function use_text_value_b(e){let n=(0,p.useRef)(""),r=(0,p.useRef)("");return(0,L.z)(()=>{let l=e.current;if(!l)return"";let c=l.innerText;if(n.current===c)return r.current;let d=g(l).trim().toLowerCase();return n.current=c,r.current=d,d})}var j=((l=j||{})[l.Open=0]="Open",l[l.Closed=1]="Closed",l),H=((c=H||{})[c.Pointer=0]="Pointer",c[c.Other=1]="Other",c),U=((d=U||{})[d.OpenMenu=0]="OpenMenu",d[d.CloseMenu=1]="CloseMenu",d[d.GoToItem=2]="GoToItem",d[d.Search=3]="Search",d[d.ClearSearch=4]="ClearSearch",d[d.RegisterItem=5]="RegisterItem",d[d.UnregisterItem=6]="UnregisterItem",d);function w(e,n=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,l=(0,C.z2)(n(e.items.slice()),e=>e.dataRef.current.domRef.current),c=r?l.indexOf(r):null;return -1===c&&(c=null),{items:l,activeItemIndex:c}}let $={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,n)=>{var r;let l=w(e),c=(0,P.d)(n,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...l,searchQuery:"",activeItemIndex:c,activationTrigger:null!=(r=n.trigger)?r:1}},3:(e,n)=>{let r=""!==e.searchQuery?0:1,l=e.searchQuery+n.value.toLowerCase(),c=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var n;return(null==(n=e.dataRef.current.textValue)?void 0:n.startsWith(l))&&!e.dataRef.current.disabled}),d=c?e.items.indexOf(c):-1;return -1===d||d===e.activeItemIndex?{...e,searchQuery:l}:{...e,searchQuery:l,activeItemIndex:d,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,n)=>{let r=w(e,e=>[...e,{id:n.id,dataRef:n.dataRef}]);return{...e,...r}},6:(e,n)=>{let r=w(e,e=>{let r=e.findIndex(e=>e.id===n.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}}},K=(0,p.createContext)(null);function O(e){let n=(0,p.useContext)(K);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,O),n}return n}function ye(e,n){return(0,b.E)(n.type,$,e,n)}K.displayName="MenuContext";let G=p.Fragment;function Me(e,n){let{__demoMode:r=!1,...l}=e,c=(0,p.useReducer)(ye,{__demoMode:r,menuState:r?0:1,buttonRef:(0,p.createRef)(),itemsRef:(0,p.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:d,itemsRef:m,buttonRef:R},y]=c,h=(0,I.T)(n);(0,_.O)([R,m],(e,n)=>{var r;y({type:1}),(0,C.sP)(n,C.tJ.Loose)||(e.preventDefault(),null==(r=R.current)||r.focus())},0===d);let S=(0,L.z)(()=>{y({type:1})}),P=(0,p.useMemo)(()=>({open:0===d,close:S}),[d,S]);return p.createElement(K.Provider,{value:c},p.createElement(D.up,{value:(0,b.E)(d,{0:D.ZM.Open,1:D.ZM.Closed})},(0,v.sY)({ourProps:{ref:h},theirProps:l,slot:P,defaultTag:G,name:"Menu"})))}function Re(e,n){var r;let l=(0,h.M)(),{id:c=`headlessui-menu-button-${l}`,...d}=e,[b,m]=O("Menu.Button"),y=(0,I.T)(b.buttonRef,n),C=(0,R.G)(),_=(0,L.z)(e=>{switch(e.key){case S.R.Space:case S.R.Enter:case S.R.ArrowDown:e.preventDefault(),e.stopPropagation(),m({type:0}),C.nextFrame(()=>m({type:2,focus:P.T.First}));break;case S.R.ArrowUp:e.preventDefault(),e.stopPropagation(),m({type:0}),C.nextFrame(()=>m({type:2,focus:P.T.Last}))}}),k=(0,L.z)(e=>{e.key===S.R.Space&&e.preventDefault()}),D=(0,L.z)(n=>{if((0,E.P)(n.currentTarget))return n.preventDefault();e.disabled||(0===b.menuState?(m({type:1}),C.nextFrame(()=>{var e;return null==(e=b.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(n.preventDefault(),m({type:0})))}),z=(0,p.useMemo)(()=>({open:0===b.menuState}),[b]),N={ref:y,id:c,type:(0,A.f)(e,b.buttonRef),"aria-haspopup":"menu","aria-controls":null==(r=b.itemsRef.current)?void 0:r.id,"aria-expanded":0===b.menuState,onKeyDown:_,onKeyUp:k,onClick:D};return(0,v.sY)({ourProps:N,theirProps:d,slot:z,defaultTag:"button",name:"Menu.Button"})}let W=v.AN.RenderStrategy|v.AN.Static;function Ee(e,n){var r,l;let c=(0,h.M)(),{id:d=`headlessui-menu-items-${c}`,...b}=e,[y,E]=O("Menu.Items"),_=(0,I.T)(y.itemsRef,n),A=(0,z.i)(y.itemsRef),N=(0,R.G)(),B=(0,D.oJ)(),j=null!==B?(B&D.ZM.Open)===D.ZM.Open:0===y.menuState;(0,p.useEffect)(()=>{let e=y.itemsRef.current;e&&0===y.menuState&&e!==(null==A?void 0:A.activeElement)&&e.focus({preventScroll:!0})},[y.menuState,y.itemsRef,A]),(0,k.B)({container:y.itemsRef.current,enabled:0===y.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let H=(0,L.z)(e=>{var n,r;switch(N.dispose(),e.key){case S.R.Space:if(""!==y.searchQuery)return e.preventDefault(),e.stopPropagation(),E({type:3,value:e.key});case S.R.Enter:if(e.preventDefault(),e.stopPropagation(),E({type:1}),null!==y.activeItemIndex){let{dataRef:e}=y.items[y.activeItemIndex];null==(r=null==(n=e.current)?void 0:n.domRef.current)||r.click()}(0,C.wI)(y.buttonRef.current);break;case S.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),E({type:2,focus:P.T.Next});case S.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),E({type:2,focus:P.T.Previous});case S.R.Home:case S.R.PageUp:return e.preventDefault(),e.stopPropagation(),E({type:2,focus:P.T.First});case S.R.End:case S.R.PageDown:return e.preventDefault(),e.stopPropagation(),E({type:2,focus:P.T.Last});case S.R.Escape:e.preventDefault(),e.stopPropagation(),E({type:1}),(0,m.k)().nextFrame(()=>{var e;return null==(e=y.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case S.R.Tab:e.preventDefault(),e.stopPropagation(),E({type:1}),(0,m.k)().nextFrame(()=>{(0,C.EO)(y.buttonRef.current,e.shiftKey?C.TO.Previous:C.TO.Next)});break;default:1===e.key.length&&(E({type:3,value:e.key}),N.setTimeout(()=>E({type:4}),350))}}),U=(0,L.z)(e=>{e.key===S.R.Space&&e.preventDefault()}),$=(0,p.useMemo)(()=>({open:0===y.menuState}),[y]),K={"aria-activedescendant":null===y.activeItemIndex||null==(r=y.items[y.activeItemIndex])?void 0:r.id,"aria-labelledby":null==(l=y.buttonRef.current)?void 0:l.id,id:d,onKeyDown:H,onKeyUp:U,role:"menu",tabIndex:0,ref:_};return(0,v.sY)({ourProps:K,theirProps:b,slot:$,defaultTag:"div",features:W,visible:j,name:"Menu.Items"})}let Q=p.Fragment;function Pe(e,n){let r=(0,h.M)(),{id:l=`headlessui-menu-item-${r}`,disabled:c=!1,...d}=e,[b,R]=O("Menu.Item"),S=null!==b.activeItemIndex&&b.items[b.activeItemIndex].id===l,E=(0,p.useRef)(null),_=(0,I.T)(n,E);(0,y.e)(()=>{if(b.__demoMode||0!==b.menuState||!S||0===b.activationTrigger)return;let e=(0,m.k)();return e.requestAnimationFrame(()=>{var e,n;null==(n=null==(e=E.current)?void 0:e.scrollIntoView)||n.call(e,{block:"nearest"})}),e.dispose},[b.__demoMode,E,S,b.menuState,b.activationTrigger,b.activeItemIndex]);let k=use_text_value_b(E),D=(0,p.useRef)({disabled:c,domRef:E,get textValue(){return k()}});(0,y.e)(()=>{D.current.disabled=c},[D,c]),(0,y.e)(()=>(R({type:5,id:l,dataRef:D}),()=>R({type:6,id:l})),[D,l]);let A=(0,L.z)(()=>{R({type:1})}),z=(0,L.z)(e=>{if(c)return e.preventDefault();R({type:1}),(0,C.wI)(b.buttonRef.current)}),B=(0,L.z)(()=>{if(c)return R({type:2,focus:P.T.Nothing});R({type:2,focus:P.T.Specific,id:l})}),j=(0,N.g)(),H=(0,L.z)(e=>j.update(e)),U=(0,L.z)(e=>{j.wasMoved(e)&&(c||S||R({type:2,focus:P.T.Specific,id:l,trigger:0}))}),$=(0,L.z)(e=>{j.wasMoved(e)&&(c||S&&R({type:2,focus:P.T.Nothing}))}),K=(0,p.useMemo)(()=>({active:S,disabled:c,close:A}),[S,c,A]);return(0,v.sY)({ourProps:{id:l,ref:_,role:"menuitem",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,disabled:void 0,onClick:z,onFocus:B,onPointerEnter:H,onMouseEnter:H,onPointerMove:U,onMouseMove:U,onPointerLeave:$,onMouseLeave:$},theirProps:d,slot:K,defaultTag:Q,name:"Menu.Item"})}let X=Object.assign((0,v.yV)(Me),{Button:(0,v.yV)(Re),Items:(0,v.yV)(Ee),Item:(0,v.yV)(Pe)})},82817:function(e,n,r){"use strict";r.d(n,{O:function(){return K}});var l,c,d,p=r(2265),b=r(11931),v=r(75606),m=r(60597),R=r(93850),y=r(65410),I=r(32600),h=r(46618),S=r(8076),P=r(61858),E=r(80634),C=r(58227);function focus_sentinel_A({onFocus:e}){let[n,r]=(0,p.useState)(!0),l=(0,E.t)();return n?p.createElement(C._,{as:"button",type:"button",features:C.A.Focusable,onFocus:n=>{n.preventDefault();let c,d=50;function t(){if(d--<=0){c&&cancelAnimationFrame(c);return}if(e()){if(cancelAnimationFrame(c),!l.current)return;r(!1);return}c=requestAnimationFrame(t)}c=requestAnimationFrame(t)}}):null}var _=r(12950),k=r(55195),D=r(54851);let A=p.createContext(null);function a(){return{groups:new Map,get(e,n){var r;let l=this.groups.get(e);l||(l=new Map,this.groups.set(e,l));let c=null!=(r=l.get(n))?r:0;function i(){let e=l.get(n);e>1?l.set(n,e-1):l.delete(n)}return l.set(n,c+1),[Array.from(l.keys()).indexOf(n),i]}}}function stable_collection_C({children:e}){let n=p.useRef(a());return p.createElement(A.Provider,{value:n},e)}function stable_collection_d(e){let n=p.useContext(A);if(!n)throw Error("You must wrap your component in a ");let r=f(),[l,c]=n.current.get(e,r);return p.useEffect(()=>c,[]),l}function f(){var e,n,r;let l=null!=(r=null==(n=null==(e=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)?void 0:e.ReactCurrentOwner)?void 0:n.current)?r:null;if(!l)return Symbol();let c=[],d=l;for(;d;)c.push(d.index),d=d.return;return"$."+c.join(".")}var z=((l=z||{})[l.Forwards=0]="Forwards",l[l.Backwards=1]="Backwards",l),L=((c=L||{})[c.Less=-1]="Less",c[c.Equal=0]="Equal",c[c.Greater=1]="Greater",c),N=((d=N||{})[d.SetSelectedIndex=0]="SetSelectedIndex",d[d.RegisterTab=1]="RegisterTab",d[d.UnregisterTab=2]="UnregisterTab",d[d.RegisterPanel=3]="RegisterPanel",d[d.UnregisterPanel=4]="UnregisterPanel",d);let B={0(e,n){var r;let l=(0,y.z2)(e.tabs,e=>e.current),c=(0,y.z2)(e.panels,e=>e.current),d=l.filter(e=>{var n;return!(null!=(n=e.current)&&n.hasAttribute("disabled"))}),p={...e,tabs:l,panels:c};if(n.index<0||n.index>l.length-1){let r=(0,m.E)(Math.sign(n.index-e.selectedIndex),{[-1]:()=>1,0:()=>(0,m.E)(Math.sign(n.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===d.length)return p;let c=(0,m.E)(r,{0:()=>l.indexOf(d[0]),1:()=>l.indexOf(d[d.length-1])});return{...p,selectedIndex:-1===c?e.selectedIndex:c}}let b=l.slice(0,n.index),v=[...l.slice(n.index),...b].find(e=>d.includes(e));if(!v)return p;let R=null!=(r=l.indexOf(v))?r:e.selectedIndex;return -1===R&&(R=e.selectedIndex),{...p,selectedIndex:R}},1(e,n){var r;if(e.tabs.includes(n.tab))return e;let l=e.tabs[e.selectedIndex],c=(0,y.z2)([...e.tabs,n.tab],e=>e.current),d=null!=(r=c.indexOf(l))?r:e.selectedIndex;return -1===d&&(d=e.selectedIndex),{...e,tabs:c,selectedIndex:d}},2:(e,n)=>({...e,tabs:e.tabs.filter(e=>e!==n.tab)}),3:(e,n)=>e.panels.includes(n.panel)?e:{...e,panels:(0,y.z2)([...e.panels,n.panel],e=>e.current)},4:(e,n)=>({...e,panels:e.panels.filter(e=>e!==n.panel)})},j=(0,p.createContext)(null);function M(e){let n=(0,p.useContext)(j);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,M),n}return n}j.displayName="TabsDataContext";let H=(0,p.createContext)(null);function q(e){let n=(0,p.useContext)(H);if(null===n){let n=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,q),n}return n}function fe(e,n){return(0,m.E)(n.type,B,e,n)}H.displayName="TabsActionsContext";let U=p.Fragment;function me(e,n){let{defaultIndex:r=0,vertical:l=!1,manual:c=!1,onChange:d,selectedIndex:v=null,...m}=e,R=l?"vertical":"horizontal",S=c?"manual":"auto",E=null!==v,C=(0,h.T)(n),[k,D]=(0,p.useReducer)(fe,{selectedIndex:null!=v?v:r,tabs:[],panels:[]}),A=(0,p.useMemo)(()=>({selectedIndex:k.selectedIndex}),[k.selectedIndex]),z=(0,P.E)(d||(()=>{})),L=(0,P.E)(k.tabs),N=(0,p.useMemo)(()=>({orientation:R,activation:S,...k}),[R,S,k]),B=(0,_.z)(e=>(D({type:1,tab:e}),()=>D({type:2,tab:e}))),$=(0,_.z)(e=>(D({type:3,panel:e}),()=>D({type:4,panel:e}))),K=(0,_.z)(e=>{G.current!==e&&z.current(e),E||D({type:0,index:e})}),G=(0,P.E)(E?e.selectedIndex:k.selectedIndex),W=(0,p.useMemo)(()=>({registerTab:B,registerPanel:$,change:K}),[]);return(0,I.e)(()=>{D({type:0,index:null!=v?v:r})},[v]),(0,I.e)(()=>{if(void 0===G.current||k.tabs.length<=0)return;let e=(0,y.z2)(k.tabs,e=>e.current);e.some((e,n)=>k.tabs[n]!==e)&&K(e.indexOf(k.tabs[G.current]))}),p.createElement(stable_collection_C,null,p.createElement(H.Provider,{value:W},p.createElement(j.Provider,{value:N},N.tabs.length<=0&&p.createElement(focus_sentinel_A,{onFocus:()=>{var e,n;for(let r of L.current)if((null==(e=r.current)?void 0:e.tabIndex)===0)return null==(n=r.current)||n.focus(),!0;return!1}}),(0,b.sY)({ourProps:{ref:C},theirProps:m,slot:A,defaultTag:U,name:"Tabs"}))))}function xe(e,n){let{orientation:r,selectedIndex:l}=M("Tab.List"),c=(0,h.T)(n);return(0,b.sY)({ourProps:{ref:c,role:"tablist","aria-orientation":r},theirProps:e,slot:{selectedIndex:l},defaultTag:"div",name:"Tabs.List"})}function ye(e,n){var r,l;let c=(0,v.M)(),{id:d=`headlessui-tabs-tab-${c}`,...P}=e,{orientation:E,activation:C,selectedIndex:A,tabs:z,panels:L}=M("Tab"),N=q("Tab"),B=M("Tab"),j=(0,p.useRef)(null),H=(0,h.T)(j,n);(0,I.e)(()=>N.registerTab(j),[N,j]);let U=stable_collection_d("tabs"),$=z.indexOf(j);-1===$&&($=U);let K=$===A,G=(0,_.z)(e=>{var n;let r=e();if(r===y.fE.Success&&"auto"===C){let e=null==(n=(0,D.r)(j))?void 0:n.activeElement,r=B.tabs.findIndex(n=>n.current===e);-1!==r&&N.change(r)}return r}),W=(0,_.z)(e=>{let n=z.map(e=>e.current).filter(Boolean);if(e.key===R.R.Space||e.key===R.R.Enter){e.preventDefault(),e.stopPropagation(),N.change($);return}switch(e.key){case R.R.Home:case R.R.PageUp:return e.preventDefault(),e.stopPropagation(),G(()=>(0,y.jA)(n,y.TO.First));case R.R.End:case R.R.PageDown:return e.preventDefault(),e.stopPropagation(),G(()=>(0,y.jA)(n,y.TO.Last))}if(G(()=>(0,m.E)(E,{vertical:()=>e.key===R.R.ArrowUp?(0,y.jA)(n,y.TO.Previous|y.TO.WrapAround):e.key===R.R.ArrowDown?(0,y.jA)(n,y.TO.Next|y.TO.WrapAround):y.fE.Error,horizontal:()=>e.key===R.R.ArrowLeft?(0,y.jA)(n,y.TO.Previous|y.TO.WrapAround):e.key===R.R.ArrowRight?(0,y.jA)(n,y.TO.Next|y.TO.WrapAround):y.fE.Error}))===y.fE.Success)return e.preventDefault()}),Q=(0,p.useRef)(!1),X=(0,_.z)(()=>{var e;Q.current||(Q.current=!0,null==(e=j.current)||e.focus({preventScroll:!0}),N.change($),(0,k.Y)(()=>{Q.current=!1}))}),et=(0,_.z)(e=>{e.preventDefault()}),en=(0,p.useMemo)(()=>({selected:K}),[K]),er={ref:H,onKeyDown:W,onMouseDown:et,onClick:X,id:d,role:"tab",type:(0,S.f)(e,j),"aria-controls":null==(l=null==(r=L[$])?void 0:r.current)?void 0:l.id,"aria-selected":K,tabIndex:K?0:-1};return(0,b.sY)({ourProps:er,theirProps:P,slot:en,defaultTag:"button",name:"Tabs.Tab"})}function Ae(e,n){let{selectedIndex:r}=M("Tab.Panels"),l=(0,h.T)(n),c=(0,p.useMemo)(()=>({selectedIndex:r}),[r]);return(0,b.sY)({ourProps:{ref:l},theirProps:e,slot:c,defaultTag:"div",name:"Tabs.Panels"})}let $=b.AN.RenderStrategy|b.AN.Static;function Se(e,n){var r,l,c,d;let m=(0,v.M)(),{id:R=`headlessui-tabs-panel-${m}`,tabIndex:y=0,...S}=e,{selectedIndex:P,tabs:E,panels:_}=M("Tab.Panel"),k=q("Tab.Panel"),D=(0,p.useRef)(null),A=(0,h.T)(D,n);(0,I.e)(()=>k.registerPanel(D),[k,D]);let z=stable_collection_d("panels"),L=_.indexOf(D);-1===L&&(L=z);let N=L===P,B=(0,p.useMemo)(()=>({selected:N}),[N]),j={ref:A,id:R,role:"tabpanel","aria-labelledby":null==(l=null==(r=E[L])?void 0:r.current)?void 0:l.id,tabIndex:N?y:-1};return N||null!=(c=S.unmount)&&!c||null!=(d=S.static)&&d?(0,b.sY)({ourProps:j,theirProps:S,slot:B,defaultTag:"div",features:$,visible:N,name:"Tabs.Panel"}):p.createElement(C._,{as:"span",...j})}let K=Object.assign((0,b.yV)(ye),{Group:(0,b.yV)(me),List:(0,b.yV)(xe),Panels:(0,b.yV)(Ae),Panel:(0,b.yV)(Se)})},8076:function(e,n,r){"use strict";r.d(n,{f:function(){return s}});var l=r(2265),c=r(32600);function i(e){var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}function s(e,n){let[r,d]=(0,l.useState)(()=>i(e));return(0,c.e)(()=>{d(i(e))},[e.type,e.as]),(0,c.e)(()=>{r||n.current&&n.current instanceof HTMLButtonElement&&!n.current.hasAttribute("type")&&d("button")},[r,n]),r}},13995:function(e,n,r){"use strict";r.d(n,{g:function(){return u}});var l=r(2265);function t(e){return[e.screenX,e.screenY]}function u(){let e=(0,l.useRef)([-1,-1]);return{wasMoved(n){let r=t(n);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(n){e.current=t(n)}}}},50926:function(e,n,r){"use strict";r.d(n,{B:function(){return F}});var l=r(2265),c=r(32600),d=r(54851);function F({container:e,accept:n,walk:r,enabled:p=!0}){let b=(0,l.useRef)(n),v=(0,l.useRef)(r);(0,l.useEffect)(()=>{b.current=n,v.current=r},[n,r]),(0,c.e)(()=>{if(!e||!p)return;let n=(0,d.r)(e);if(!n)return;let r=b.current,l=v.current,c=Object.assign(e=>r(e),{acceptNode:r}),m=n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,c,!1);for(;m.nextNode();)l(m.currentNode)},[e,p,b,v])}},53891:function(e,n,r){"use strict";function f(e){throw Error("Unexpected object: "+e)}r.d(n,{T:function(){return c},d:function(){return x}});var l,c=((l=c||{})[l.First=0]="First",l[l.Previous=1]="Previous",l[l.Next=2]="Next",l[l.Last=3]="Last",l[l.Specific=4]="Specific",l[l.Nothing=5]="Nothing",l);function x(e,n){let r=n.resolveItems();if(r.length<=0)return null;let l=n.resolveActiveIndex(),c=null!=l?l:-1,d=(()=>{switch(e.focus){case 0:return r.findIndex(e=>!n.resolveDisabled(e));case 1:{let e=r.slice().reverse().findIndex((e,r,l)=>(-1===c||!(l.length-r-1>=c))&&!n.resolveDisabled(e));return -1===e?e:r.length-1-e}case 2:return r.findIndex((e,r)=>!(r<=c)&&!n.resolveDisabled(e));case 3:{let e=r.slice().reverse().findIndex(e=>!n.resolveDisabled(e));return -1===e?e:r.length-1-e}case 4:return r.findIndex(r=>n.resolveId(r)===e.id);case 5:return null;default:f(e)}})();return -1===d?l:d}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/832-6080f7c29a7a0d2c.js b/web/_next/static/chunks/832-6080f7c29a7a0d2c.js new file mode 100644 index 00000000..5fbf167c --- /dev/null +++ b/web/_next/static/chunks/832-6080f7c29a7a0d2c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[832],{95518:function(e,t,i){i.d(t,{Iw:function(){return useAtomicLibraryCollectionLoader},uN:function(){return u},yh:function(){return c}});var n=i(77665),s=i(97726),l=i(23890),o=i(2265),r=i(51472),a=i(57638);let c=(0,s.O4)("sea-library-collection",void 0,void 0,{unstable_getOnInit:!0}),u=(0,n.cn)(e=>e(c),(e,t,i)=>{var n;let s=null===(n=e(c))||void 0===n?void 0:n.lists;if(s)return s.flatMap(e=>e.entries).find(e=>e.mediaId===i)});function useAtomicLibraryCollectionLoader(){let e=(0,l.b9)(c),{data:t,status:i}=(0,r.tZ)({endpoint:a.E.LIBRARY_COLLECTION,queryKey:["get-library-collection"]});return(0,o.useEffect)(()=>{"success"===i&&e(t)},[t,i]),null}},70226:function(e,t,i){i.d(t,{Oh:function(){return useListenToMissingEpisodes},VK:function(){return useMissingEpisodeCount},wS:function(){return c}});var n=i(57638),s=i(77665),l=i(23890),o=i(51472),r=i(2265),a=i(24033);let c=(0,s.cn)([]),u=(0,s.cn)(e=>e(c).length);function useMissingEpisodeCount(){return(0,l.Dv)(u)}function useListenToMissingEpisodes(){let e=(0,a.usePathname)(),t=(0,l.b9)(c),{data:i}=(0,o.tZ)({endpoint:n.E.MISSING_EPISODES,queryKey:["get-missing-episodes"],enabled:"/schedule"!==e});return(0,r.useEffect)(()=>{t(null!=i?i:[])},[i]),null}},48761:function(e,t,i){i.d(t,{L:function(){return o},x:function(){return useCurrentUser}});var n=i(23890),s=i(751),l=i(77665);let o=(0,l.cn)(e=>{var t;let i=e(s.X);return null==i?void 0:null===(t=i.user)||void 0===t?void 0:t.viewer});function useCurrentUser(){let[e,t]=(0,n.KO)(o);return{user:e,setUser:t}}},42475:function(e,t,i){i.d(t,{X:function(){return AnilistMediaEntryModal}});var n=i(57437),s=i(2265),l=i(46246),o=i(26345),r=i(48761),a=i(23890),c=i(97622),u=i(56407),d=i(85208),m=i(33538),f=i(16691),g=i.n(f),p=i(54487),y=i(80024),h=i(67701),v=i(18743),E=i(87870),b=i(38038),L=i(51472),x=i(57638),N=i(5925);let S=(0,o.SC)(e=>{let{z:t,presets:i}=e;return t.object({status:t.custom().nullish(),score:t.number().min(0).max(1e3).nullish(),progress:t.number().min(0).nullish(),startedAt:i.datePicker.nullish().transform(e=>e?{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()}:null),completedAt:i.datePicker.nullish().transform(e=>e?{day:e.getUTCDate(),month:e.getUTCMonth()+1,year:e.getUTCFullYear()}:null)})}),AnilistMediaEntryModal=e=>{var t,i;let[f,w]=(0,l.Z)(!1),{children:A,media:I,listData:C,...j}=e,T=(0,a.Dv)(r.L),_=(0,b.NL)(),{mutate:D,isPending:k}=(0,L.$U)({endpoint:x.E.ANILIST_LIST_ENTRY,mutationKey:["update-anilist-list-entry"],onSuccess:async()=>{N.ZP.success("Entry updated"),await _.refetchQueries({queryKey:["get-media-entry",null==I?void 0:I.id]}),await _.refetchQueries({queryKey:["get-library-collection"]}),await _.refetchQueries({queryKey:["get-anilist-collection"]})}}),{mutate:K,isPending:F}=(0,L.$U)({endpoint:x.E.ANILIST_LIST_ENTRY,mutationKey:["delete-anilist-list-entry"],method:"delete",onSuccess:async()=>{N.ZP.success("Entry removed"),w(!1),await _.refetchQueries({queryKey:["get-media-entry",null==I?void 0:I.id]}),await _.refetchQueries({queryKey:["get-library-collection"]}),await _.refetchQueries({queryKey:["get-anilist-collection"]})}});return T?(0,n.jsxs)(n.Fragment,{children:[!!C&&(0,n.jsx)(c.hU,{intent:"gray-subtle",icon:(0,n.jsx)(u.Q,{}),rounded:!0,size:"sm",onClick:w}),!C&&(0,n.jsx)(c.hU,{intent:"primary-subtle",icon:(0,n.jsx)(d.p,{}),rounded:!0,size:"sm",onClick:()=>D({mediaId:(null==I?void 0:I.id)||0,status:"PLANNING",score:0,progress:0,startedAt:null,completedAt:null})}),(0,n.jsxs)(m.u_,{isOpen:f,onClose:w,title:null!==(i=null==I?void 0:null===(t=I.title)||void 0===t?void 0:t.userPreferred)&&void 0!==i?i:void 0,isClosable:!0,size:"xl",titleClassName:"text-xl",children:[(null==I?void 0:I.bannerImage)&&(0,n.jsxs)("div",{className:"h-24 w-full flex-none object-cover object-center overflow-hidden absolute left-0 top-0 z-[-1]",children:[(0,n.jsx)(g(),{src:null==I?void 0:I.bannerImage,alt:"banner",fill:!0,quality:80,priority:!0,sizes:"20rem",className:"object-cover object-center opacity-30"}),(0,n.jsx)("div",{className:"z-[5] absolute bottom-0 w-full h-[80%] bg-gradient-to-t from-gray-900 to-transparent"})]}),!!C&&(0,n.jsxs)(o.Fu,{schema:S,onSubmit:e=>{console.log(e.startedAt),D({mediaId:(null==I?void 0:I.id)||0,status:e.status,score:e.score?10*e.score:0,progress:e.progress,startedAt:e.startedAt,completedAt:e.completedAt})},className:(0,p.cn)({"mt-16":!!(null==I?void 0:I.bannerImage)}),onError:console.log,defaultValues:{status:null==C?void 0:C.status,score:null==C?void 0:C.score,progress:null==C?void 0:C.progress,startedAt:(null==C?void 0:C.startedAt)?new Date(null==C?void 0:C.startedAt):void 0,completedAt:(null==C?void 0:C.completedAt)?new Date(null==C?void 0:C.completedAt):void 0},children:[(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,n.jsx)(o.gN.Select,{label:"Status",name:"status",options:[(null==I?void 0:I.status)!=="NOT_YET_RELEASED"?{value:"CURRENT",label:"Watching"}:void 0,{value:"PLANNING",label:"Planning"},(null==I?void 0:I.status)!=="NOT_YET_RELEASED"?{value:"PAUSED",label:"Paused"}:void 0,(null==I?void 0:I.status)!=="NOT_YET_RELEASED"?{value:"COMPLETED",label:"Completed"}:void 0,(null==I?void 0:I.status)!=="NOT_YET_RELEASED"?{value:"DROPPED",label:"Dropped"}:void 0].filter(Boolean)}),(null==I?void 0:I.status)!=="NOT_YET_RELEASED"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.gN.Number,{label:"Score",name:"score",discrete:!0,min:0,max:10,maxFractionDigits:0,minFractionDigits:0,precision:1,rightIcon:(0,n.jsx)(h.s,{})}),(0,n.jsx)(o.gN.Number,{label:"Progress",name:"progress",discrete:!0,min:0,maxFractionDigits:0,minFractionDigits:0,precision:1,rightIcon:(0,n.jsx)(y.g,{})})]})]}),(null==I?void 0:I.status)!=="NOT_YET_RELEASED"&&(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,n.jsx)(o.gN.DatePicker,{label:"Start date",name:"startedAt"}),(0,n.jsx)(o.gN.DatePicker,{label:"Completion date",name:"completedAt"})]}),(0,n.jsxs)("div",{className:"flex w-full items-center justify-between mt-4",children:[(0,n.jsx)("div",{className:"flex items-center gap-1",children:(0,n.jsxs)(v.p,{children:[(0,n.jsx)(v.p.Button,{as:s.Fragment,children:(0,n.jsx)(c.hU,{intent:"alert-subtle",icon:(0,n.jsx)(E.S,{}),rounded:!0,size:"md"})}),(0,n.jsx)(v.p.Panel,{children:(0,n.jsx)(c.zx,{intent:"alert-basic",rounded:!0,size:"md",isLoading:F,onClick:()=>K({mediaId:null==I?void 0:I.id}),children:"Confirm"})})]})}),(0,n.jsx)(o.gN.Submit,{role:"save",disableIfInvalid:!0,isLoading:k,isDisabled:F})]})]})]})]}):null}},59346:function(e,t,i){i.d(t,{t:function(){return imageShimmer}});let imageShimmerEffect=(e,t)=>'\n\n \n \n \n \n \n \n \n \n \n \n'),toBase64=e=>window.btoa(e),imageShimmer=(e,t)=>"data:image/svg+xml;base64,".concat(toBase64(imageShimmerEffect(e,t)))},6469:function(e,t,i){i.d(t,{u:function(){return c}});var n=i(57437),s=i(2265),l=i(54487),o=i(96061),r=i(98265);let a=(0,l.xH)({tooltip:(0,o.j)(["UI-Tooltip__tooltip","z-50 overflow-hidden rounded-[--radius] px-3 py-1.5 text-sm shadow-md animate-in fade-in-50","bg-gray-800 text-white","data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1"])}),c=s.forwardRef((e,t)=>{let{children:i,tooltipClassName:s,className:o,trigger:c,...u}=e;return(0,n.jsx)(r.zt,{delayDuration:50,children:(0,n.jsxs)(r.fC,{children:[(0,n.jsx)(r.xz,{asChild:!0,children:c}),(0,n.jsx)(r.VY,{className:(0,l.cn)(a.tooltip(),s,o),...u,ref:t,children:i})]})})});c.displayName="Tooltip",r.zt},10137:function(e,t,i){i.d(t,{Jx:function(){return useScanLibrary},Kg:function(){return useMediaEntryBulkAction},Ye:function(){return useRemoveEmptyDirectories},_U:function(){return useUpdateLocalFile},d3:function(){return useLibraryCollection},qn:function(){return useMissingEpisodes},ss:function(){return useLocalFileBulkAction}});var n=i(38038),s=i(51472),l=i(57638),o=i(2265),r=i(5925),a=i(23890),c=i(95518),u=i(70226);function useScanLibrary(){let e=(0,n.NL)(),{mutate:t,isPending:i}=(0,s.$U)({endpoint:l.E.SCAN_LIBRARY,mutationKey:["scan-library"],onSuccess:async()=>{r.ZP.success("Library scanned"),await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})}});return{scanLibrary:t,isScanning:i}}function useLibraryCollection(){var e,t,i,n;let[r,u]=(0,a.KO)(c.yh),{data:d,isLoading:m,refetch:f}=(0,s.tZ)({endpoint:l.E.LIBRARY_COLLECTION,queryKey:["get-library-collection"],placeholderData:r});(0,o.useEffect)(()=>{d&&u(d)},[d]);let g=(0,o.useMemo)(()=>d?[d.lists.find(e=>"current"===e.type),d.lists.find(e=>"paused"===e.type),d.lists.find(e=>"planned"===e.type),d.lists.find(e=>"completed"===e.type),d.lists.find(e=>"dropped"===e.type)].filter(Boolean):[],[d]);return{libraryCollectionList:g,continueWatchingList:null!==(e=null==d?void 0:d.continueWatchingList)&&void 0!==e?e:[],isLoading:m,unmatchedLocalFiles:null!==(t=null==d?void 0:d.unmatchedLocalFiles)&&void 0!==t?t:[],ignoredLocalFiles:null!==(i=null==d?void 0:d.ignoredLocalFiles)&&void 0!==i?i:[],unmatchedGroups:null!==(n=null==d?void 0:d.unmatchedGroups)&&void 0!==n?n:[]}}function useMissingEpisodes(){let e=(0,a.b9)(u.wS),{data:t,isLoading:i,status:n}=(0,s.tZ)({endpoint:l.E.MISSING_EPISODES,queryKey:["get-missing-episodes"]});return(0,o.useEffect)(()=>{"success"===n&&e(null!=t?t:[])},[t]),{missingEpisodes:null!=t?t:[],isLoading:i}}function useMediaEntryBulkAction(e){let t=(0,n.NL)(),{mutate:i,isPending:o}=(0,s.$U)({endpoint:l.E.MEDIA_ENTRY_BULK_ACTION,mutationKey:["media-entry-bulk-action"],method:"patch",onSuccess:async()=>{await t.refetchQueries({queryKey:["get-library-collection"]}),e&&await t.refetchQueries({queryKey:["get-media-entry",e]})}});return{toggleLock:e=>i({mediaId:e,action:"toggle-lock"}),unmatchAll:e=>i({mediaId:e,action:"unmatch"},{onSuccess:()=>{r.ZP.success("Files unmatched")}}),isPending:o}}function useLocalFileBulkAction(){let e=(0,n.NL)(),{mutate:t,isPending:i}=(0,s.$U)({endpoint:l.E.LOCAL_FILES,mutationKey:["local-file-bulk-action"],method:"post",onSuccess:async()=>{await e.refetchQueries({queryKey:["get-library-collection"]})}});return{lockFiles:()=>t({action:"lock"},{onSuccess:()=>{r.ZP.success("Files locked")}}),unlockFiles:()=>t({action:"unlock"},{onSuccess:()=>{r.ZP.success("Files unlocked")}}),isPending:i}}function useRemoveEmptyDirectories(){let{mutate:e,isPending:t}=(0,s.$U)({endpoint:l.E.EMPTY_DIRECTORIES,mutationKey:["remove-empty-directories"],method:"delete",onSuccess:async()=>{r.ZP.success("Empty directories removed")}});return{removeEmptyDirectories:()=>e(),isPending:t}}function getDefaultLocalFileVariables(e){return{path:e.path,metadata:e.metadata,locked:e.locked,ignored:e.ignored,mediaId:e.mediaId}}function useUpdateLocalFile(e){let t=(0,n.NL)(),{mutate:i,isPending:o}=(0,s.$U)({endpoint:l.E.LOCAL_FILE,mutationKey:["patch-local-file"],method:"patch",onSuccess:async()=>{await t.refetchQueries({queryKey:["get-library-collection"]}),e&&await t.refetchQueries({queryKey:["get-media-entry",e]})}});return{updateLocalFile:(e,t,n)=>{i({...getDefaultLocalFileVariables(e),...t},{onSuccess:()=>{n&&n()}})},isPending:o}}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/890-a0affa6da0f35a45.js b/web/_next/static/chunks/890-a0affa6da0f35a45.js new file mode 100644 index 00000000..64fefb21 --- /dev/null +++ b/web/_next/static/chunks/890-a0affa6da0f35a45.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[890],{23890:function(e,t,r){r.d(t,{Dv:function(){return useAtomValue},KO:function(){return useAtom},b9:function(){return useSetAtom},oR:function(){return useStore},zt:function(){return Provider}});var o=r(2265),n=r(77665);let a=(0,o.createContext)(void 0),useStore=e=>{let t=(0,o.useContext)(a);return(null==e?void 0:e.store)||t||(0,n.K7)()},Provider=({children:e,store:t})=>{let r=(0,o.useRef)();return t||r.current||(r.current=(0,n.MT)()),(0,o.createElement)(a.Provider,{value:t||r.current},e)},isPromiseLike=e=>"function"==typeof(null==e?void 0:e.then),l=o.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e});function useAtomValue(e,t){let r=useStore(t),[[n,a,u],i]=(0,o.useReducer)(t=>{let o=r.get(e);return Object.is(t[0],o)&&t[1]===r&&t[2]===e?t:[o,r,e]},void 0,()=>[r.get(e),r,e]),s=n;(a!==r||u!==e)&&(i(),s=r.get(e));let m=null==t?void 0:t.delay;return(0,o.useEffect)(()=>{let t=r.sub(e,()=>{if("number"==typeof m){setTimeout(i,m);return}i()});return i(),t},[r,e,m]),(0,o.useDebugValue)(s),isPromiseLike(s)?l(s):s}function useSetAtom(e,t){let r=useStore(t),n=(0,o.useCallback)((...t)=>{if(!("write"in e))throw Error("not writable atom");return r.set(e,...t)},[r,e]);return n}function useAtom(e,t){return[useAtomValue(e,t),useSetAtom(e,t)]}},77665:function(e,t,r){let o;r.d(t,{K7:function(){return getDefaultStore},MT:function(){return createStore},cn:function(){return atom}});let n=0;function atom(e,t){let r=`atom${++n}`,o={toString:()=>r};return"function"==typeof e?o.read=e:(o.init=e,o.read=function(e){return e(this)},o.write=function(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}),t&&(o.write=t),o}let hasInitialValue=e=>"init"in e,isActuallyWritableAtom=e=>!!e.write,a=new WeakMap,registerCancelPromise=(e,t)=>{a.set(e,t),e.catch(()=>{}).finally(()=>a.delete(e))},cancelPromise=(e,t)=>{let r=a.get(e);r&&(a.delete(e),r(t))},resolvePromise=(e,t)=>{e.status="fulfilled",e.value=t},rejectPromise=(e,t)=>{e.status="rejected",e.reason=t},isPromiseLike=e=>"function"==typeof(null==e?void 0:e.then),isEqualAtomValue=(e,t)=>!!e&&"v"in e&&"v"in t&&Object.is(e.v,t.v),isEqualAtomError=(e,t)=>!!e&&"e"in e&&"e"in t&&Object.is(e.e,t.e),hasPromiseAtomValue=e=>!!e&&"v"in e&&e.v instanceof Promise,isEqualPromiseAtomValue=(e,t)=>"v"in e&&"v"in t&&e.v.orig&&e.v.orig===t.v.orig,returnAtomValue=e=>{if("e"in e)throw e.e;return e.v},createStore=()=>{let e,t;let r=new WeakMap,o=new WeakMap,n=new Map;e=new Set,t=new Set;let getAtomState=e=>r.get(e),setAtomState=(e,t)=>{Object.freeze(t);let o=r.get(e);if(r.set(e,t),n.has(e)||n.set(e,o),hasPromiseAtomValue(o)){let e="v"in t?t.v instanceof Promise?t.v:Promise.resolve(t.v):Promise.reject(t.e);o.v!==e&&cancelPromise(o.v,e)}},updateDependencies=(e,t,r)=>{let o=new Map,n=!1;r.forEach((r,a)=>{r||a!==e||(r=t),r?(o.set(a,r),t.d.get(a)!==r&&(n=!0)):console.warn("[Bug] atom state not found")}),(n||t.d.size!==o.size)&&(t.d=o)},setAtomValue=(e,t,r)=>{let o=getAtomState(e),n={d:(null==o?void 0:o.d)||new Map,v:t};if(r&&updateDependencies(e,n,r),isEqualAtomValue(o,n)&&o.d===n.d)return o;if(hasPromiseAtomValue(o)&&hasPromiseAtomValue(n)&&isEqualPromiseAtomValue(o,n)){if(o.d===n.d)return o;n.v=o.v}return setAtomState(e,n),n},setAtomValueOrPromise=(e,t,r,n)=>{if(isPromiseLike(t)){let a;let updatePromiseDependencies=()=>{let t=getAtomState(e);if(!hasPromiseAtomValue(t)||t.v!==l)return;let n=setAtomValue(e,l,r);o.has(e)&&t.d!==n.d&&mountDependencies(e,n,t.d)},l=new Promise((e,r)=>{let o=!1;t.then(t=>{o||(o=!0,resolvePromise(l,t),e(t),updatePromiseDependencies())},e=>{o||(o=!0,rejectPromise(l,e),r(e),updatePromiseDependencies())}),a=t=>{o||(o=!0,t.then(e=>resolvePromise(l,e),e=>rejectPromise(l,e)),e(t))}});return l.orig=t,l.status="pending",registerCancelPromise(l,e=>{e&&a(e),null==n||n()}),setAtomValue(e,l,r)}return setAtomValue(e,t,r)},setAtomError=(e,t,r)=>{let o=getAtomState(e),n={d:(null==o?void 0:o.d)||new Map,e:t};return(r&&updateDependencies(e,n,r),isEqualAtomError(o,n)&&o.d===n.d)?o:(setAtomState(e,n),n)},readAtomState=(e,t)=>{let r,n;let a=getAtomState(e);if(!t&&a&&(o.has(e)||Array.from(a.d).every(([t,r])=>{if(t===e)return!0;let o=readAtomState(t);return o===r||isEqualAtomValue(o,r)})))return a;let l=new Map,u=!0;try{let t=e.read(t=>{if(t===e){let e=getAtomState(t);if(e)return l.set(t,e),returnAtomValue(e);if(hasInitialValue(t))return l.set(t,void 0),t.init;throw Error("no atom init")}let r=readAtomState(t);return l.set(t,r),returnAtomValue(r)},{get signal(){return r||(r=new AbortController),r.signal},get setSelf(){return isActuallyWritableAtom(e)||console.warn("setSelf function cannot be used with read-only atom"),!n&&isActuallyWritableAtom(e)&&(n=(...t)=>{if(u&&console.warn("setSelf function cannot be called in sync"),!u)return writeAtom(e,...t)}),n}});return setAtomValueOrPromise(e,t,l,()=>null==r?void 0:r.abort())}catch(t){return setAtomError(e,t,l)}finally{u=!1}},addAtom=e=>{let t=o.get(e);return t||(t=mountAtom(e)),t},canUnmountAtom=(e,t)=>!t.l.size&&(!t.t.size||1===t.t.size&&t.t.has(e)),delAtom=e=>{let t=o.get(e);t&&canUnmountAtom(e,t)&&unmountAtom(e)},recomputeDependents=e=>{let t=new Map,r=new WeakMap,getDependents=e=>{var t;let r=new Set(null==(t=o.get(e))?void 0:t.t);return n.forEach((t,o)=>{var n;(null==(n=getAtomState(o))?void 0:n.d.has(e))&&r.add(o)}),r},loop1=e=>{getDependents(e).forEach(o=>{o!==e&&(t.set(o,(t.get(o)||new Set).add(e)),r.set(o,(r.get(o)||0)+1),loop1(o))})};loop1(e);let loop2=e=>{getDependents(e).forEach(o=>{var n;if(o!==e){let e=r.get(o);if(e&&r.set(o,--e),!e){let e=!!(null==(n=t.get(o))?void 0:n.size);if(e){let t=getAtomState(o),r=readAtomState(o,!0);e=!isEqualAtomValue(t,r)}e||t.forEach(e=>e.delete(o))}loop2(o)}})};loop2(e)},writeAtomState=(t,...r)=>{let o=!0,n=t.write(e=>returnAtomValue(readAtomState(e)),(r,...n)=>{let a;if(r===t){if(!hasInitialValue(r))throw Error("atom not writable");let e=getAtomState(r),t=setAtomValueOrPromise(r,n[0]);isEqualAtomValue(e,t)||recomputeDependents(r)}else a=writeAtomState(r,...n);if(!o){let t=flushPending();e.forEach(e=>e({type:"async-write",flushed:t}))}return a},...r);return o=!1,n},writeAtom=(t,...r)=>{let o=writeAtomState(t,...r),n=flushPending();return e.forEach(e=>e({type:"write",flushed:n})),o},mountAtom=(e,r,n)=>{var a;let l=n||[];null==(a=getAtomState(e))||a.d.forEach((t,r)=>{let n=o.get(r);n?n.t.add(e):r!==e&&mountAtom(r,e,l)}),readAtomState(e);let u={t:new Set(r&&[r]),l:new Set};if(o.set(e,u),t.add(e),isActuallyWritableAtom(e)&&e.onMount){let{onMount:t}=e;l.push(()=>{let r=t((...t)=>writeAtom(e,...t));r&&(u.u=r)})}return n||l.forEach(e=>e()),u},unmountAtom=e=>{var r;let n=null==(r=o.get(e))?void 0:r.u;n&&n(),o.delete(e),t.delete(e);let a=getAtomState(e);a?(hasPromiseAtomValue(a)&&cancelPromise(a.v),a.d.forEach((t,r)=>{if(r!==e){let t=o.get(r);t&&(t.t.delete(e),canUnmountAtom(r,t)&&unmountAtom(r))}})):console.warn("[Bug] could not find atom state to unmount",e)},mountDependencies=(e,t,r)=>{let n=new Set(t.d.keys());null==r||r.forEach((t,r)=>{if(n.has(r)){n.delete(r);return}let a=o.get(r);a&&(a.t.delete(e),canUnmountAtom(r,a)&&unmountAtom(r))}),n.forEach(t=>{let r=o.get(t);r?r.t.add(e):o.has(e)&&mountAtom(t,e)})},flushPending=()=>{let e;for(e=new Set;n.size;){let t=Array.from(n);n.clear(),t.forEach(([t,r])=>{let n=getAtomState(t);if(n){let a=o.get(t);a&&n.d!==(null==r?void 0:r.d)&&mountDependencies(t,n,null==r?void 0:r.d),a&&!(!hasPromiseAtomValue(r)&&(isEqualAtomValue(r,n)||isEqualAtomError(r,n)))&&(a.l.forEach(e=>e()),e.add(t))}else console.warn("[Bug] no atom state to flush")})}return e};return{get:e=>returnAtomValue(readAtomState(e)),set:writeAtom,sub:(t,r)=>{let o=addAtom(t),n=flushPending(),a=o.l;return a.add(r),e.forEach(e=>e({type:"sub",flushed:n})),()=>{a.delete(r),delAtom(t),e.forEach(e=>e({type:"unsub"}))}},dev_subscribe_store:(t,r)=>{if(2!==r)throw Error("The current StoreListener revision is 2.");return e.add(t),()=>{e.delete(t)}},dev_get_mounted_atoms:()=>t.values(),dev_get_atom_state:e=>r.get(e),dev_get_mounted:e=>o.get(e),dev_restore_atoms:t=>{for(let[e,r]of t)hasInitialValue(e)&&(setAtomValueOrPromise(e,r),recomputeDependents(e));let r=flushPending();e.forEach(e=>e({type:"restore",flushed:r}))}}};"number"==typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__?++globalThis.__NUMBER_OF_JOTAI_INSTANCES__:globalThis.__NUMBER_OF_JOTAI_INSTANCES__=1;let getDefaultStore=()=>(o||(1!==globalThis.__NUMBER_OF_JOTAI_INSTANCES__&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"),o=createStore()),o)}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/898-867d5c5a74dd998a.js b/web/_next/static/chunks/898-867d5c5a74dd998a.js new file mode 100644 index 00000000..27418e0f --- /dev/null +++ b/web/_next/static/chunks/898-867d5c5a74dd998a.js @@ -0,0 +1,20 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[898],{20849:function(m,$,E){"use strict";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function __awaiter(m,$,E,_){function adopt(m){return m instanceof E?m:new E(function($){$(m)})}return new(E||(E=Promise))(function(E,P){function fulfilled(m){try{step(_.next(m))}catch(m){P(m)}}function rejected(m){try{step(_.throw(m))}catch(m){P(m)}}function step(m){m.done?E(m.value):adopt(m.value).then(fulfilled,rejected)}step((_=_.apply(m,$||[])).next())})}E.d($,{aN:function(){return Loader}});var _,P,fastDeepEqual=function equal(m,$){if(m===$)return!0;if(m&&$&&"object"==typeof m&&"object"==typeof $){if(m.constructor!==$.constructor)return!1;if(Array.isArray(m)){if((E=m.length)!=$.length)return!1;for(_=E;0!=_--;)if(!equal(m[_],$[_]))return!1;return!0}if(m.constructor===RegExp)return m.source===$.source&&m.flags===$.flags;if(m.valueOf!==Object.prototype.valueOf)return m.valueOf()===$.valueOf();if(m.toString!==Object.prototype.toString)return m.toString()===$.toString();if((E=(P=Object.keys(m)).length)!==Object.keys($).length)return!1;for(_=E;0!=_--;)if(!Object.prototype.hasOwnProperty.call($,P[_]))return!1;for(_=E;0!=_--;){var E,_,P,S=P[_];if(!equal(m[S],$[S]))return!1}return!0}return m!=m&&$!=$};let S="__googleMapsScriptId";(_=P||(P={}))[_.INITIALIZED=0]="INITIALIZED",_[_.LOADING=1]="LOADING",_[_.SUCCESS=2]="SUCCESS",_[_.FAILURE=3]="FAILURE";let Loader=class Loader{constructor({apiKey:m,authReferrerPolicy:$,channel:E,client:_,id:P=S,language:T,libraries:k=[],mapIds:R,nonce:A,region:M,retries:V=3,url:N="https://maps.googleapis.com/maps/api/js",version:j}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=m,this.authReferrerPolicy=$,this.channel=E,this.client=_,this.id=P||S,this.language=T,this.libraries=k,this.mapIds=R,this.nonce=A,this.region=M,this.retries=V,this.url=N,this.version=j,Loader.instance){if(!fastDeepEqual(this.options,Loader.instance.options))throw Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Loader.instance.options)}`);return Loader.instance}Loader.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?P.FAILURE:this.done?P.SUCCESS:this.loading?P.LOADING:P.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let m=this.url;return m+="?callback=__googleMapsCallback",this.apiKey&&(m+=`&key=${this.apiKey}`),this.channel&&(m+=`&channel=${this.channel}`),this.client&&(m+=`&client=${this.client}`),this.libraries.length>0&&(m+=`&libraries=${this.libraries.join(",")}`),this.language&&(m+=`&language=${this.language}`),this.region&&(m+=`®ion=${this.region}`),this.version&&(m+=`&v=${this.version}`),this.mapIds&&(m+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(m+=`&auth_referrer_policy=${this.authReferrerPolicy}`),m}deleteScript(){let m=document.getElementById(this.id);m&&m.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((m,$)=>{this.loadCallback(E=>{E?$(E.error):m(window.google)})})}importLibrary(m){return this.execute(),google.maps.importLibrary(m)}loadCallback(m){this.callbacks.push(m),this.execute()}setScript(){var m,$;if(document.getElementById(this.id)){this.callback();return}let E={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(E).forEach(m=>!E[m]&&delete E[m]),(null===($=null===(m=null==window?void 0:window.google)||void 0===m?void 0:m.maps)||void 0===$?void 0:$.importLibrary)||(m=>{let $,E,_,P="The Google Maps JavaScript API",S="google",T="importLibrary",k="__ib__",R=document,A=window;A=A[S]||(A[S]={});let M=A.maps||(A.maps={}),V=new Set,N=new URLSearchParams,u=()=>$||($=new Promise((T,A)=>__awaiter(this,void 0,void 0,function*(){var j;for(_ in yield E=R.createElement("script"),E.id=this.id,N.set("libraries",[...V]+""),m)N.set(_.replace(/[A-Z]/g,m=>"_"+m[0].toLowerCase()),m[_]);N.set("callback",S+".maps."+k),E.src=this.url+"?"+N,M[k]=T,E.onerror=()=>$=A(Error(P+" could not load.")),E.nonce=this.nonce||(null===(j=R.querySelector("script[nonce]"))||void 0===j?void 0:j.nonce)||"",R.head.append(E)})));M[T]?console.warn(P+" only loads once. Ignoring:",m):M[T]=(m,...$)=>V.add(m)&&u().then(()=>M[T](m,...$))})(E);let _=this.libraries.map(m=>this.importLibrary(m));_.length||_.push(this.importLibrary("core")),Promise.all(_).then(()=>this.callback(),m=>{let $=new ErrorEvent("error",{error:m});this.loadErrorCallback($)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(m){if(this.errors.push(m),this.errors.length<=this.retries){let m=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${m} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},m)}else this.onerrorEvent=m,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(m=>{m(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}},37988:function(m,$,E){var _=E(65491).w_;m.exports.h=function(m){return _({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 15.586L6.707 12.293 5.293 13.707 10 18.414 19.707 8.707 18.293 7.293z"}}]})(m)}},78922:function(m,$,E){var _=E(65491).w_;m.exports.v=function(m){return _({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M2.165,19.551C2.351,19.831,2.664,20,3,20h15c0.4,0,0.762-0.238,0.919-0.606l3-7c0.133-0.309,0.101-0.663-0.084-0.944 C21.649,11.169,21.336,11,21,11h-1V7c0-1.103-0.897-2-2-2h-6.1L9.616,3.213C9.44,3.075,9.224,3,9,3H4C2.897,3,2,3.897,2,5v14 h0.007C2.007,19.192,2.056,19.385,2.165,19.551z M17.341,18H4.517l2.143-5h12.824L17.341,18z M18,7v4H6 c-0.4,0-0.762,0.238-0.919,0.606L4,14.129V7h7.556H12H18z"}}]})(m)}},52221:function(m,$,E){var _=E(65491).w_;m.exports.h=function(m){return _({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 9L11 9 11 12 8 12 8 14 11 14 11 17 13 17 13 14 16 14 16 12 13 12z"}},{tag:"path",attr:{d:"M20,5h-8.586L9.707,3.293C9.52,3.105,9.266,3,9,3H4C2.897,3,2,3.897,2,5v14c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2V7 C22,5.897,21.103,5,20,5z M4,19V7h7h1h8l0.002,12H4z"}}]})(m)}},46076:function(m,$,E){var _=E(65491).w_;m.exports.c=function(m){return _({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.192 6.344L11.949 10.586 7.707 6.344 6.293 7.758 10.535 12 6.293 16.242 7.707 17.656 11.949 13.414 16.192 17.656 17.606 16.242 13.364 12 17.606 7.758z"}}]})(m)}},67001:function(m,$,E){var _=E(65491).w_;m.exports.$=function(m){return _({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"}}]})(m)}},92895:function(m,$,E){"use strict";function requiredArgs(m,$){if($.length1?"s":"")+" required, but only "+$.length+" present")}E.d($,{Z:function(){return requiredArgs}})},37274:function(m,$,E){"use strict";function toInteger(m){if(null===m||!0===m||!1===m)return NaN;var $=Number(m);return isNaN($)?$:$<0?Math.ceil($):Math.floor($)}E.d($,{Z:function(){return toInteger}})},11257:function(m,$,E){"use strict";E.d($,{Z:function(){return addDays}});var _=E(37274),P=E(75725),S=E(92895);function addDays(m,$){(0,S.Z)(2,arguments);var E=(0,P.Z)(m),T=(0,_.Z)($);return isNaN(T)?new Date(NaN):(T&&E.setDate(E.getDate()+T),E)}},75725:function(m,$,E){"use strict";function _typeof(m){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(m)}E.d($,{Z:function(){return toDate}});var _=E(92895);function toDate(m){(0,_.Z)(1,arguments);var $=Object.prototype.toString.call(m);return m instanceof Date||"object"===_typeof(m)&&"[object Date]"===$?new Date(m.getTime()):"number"==typeof m||"[object Number]"===$?new Date(m):(("string"==typeof m||"[object String]"===$)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},6771:function(m,$){"use strict";function _typeof(m){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(m){return typeof m}:function(m){return m&&"function"==typeof Symbol&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(m)}function _toArray(m){return _arrayWithHoles(m)||_iterableToArray(m)||_unsupportedIterableToArray(m)||_nonIterableRest()}function _arrayWithHoles(m){if(Array.isArray(m))return m}function _iterableToArray(m){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(m))return Array.from(m)}function _unsupportedIterableToArray(m,$){if(m){if("string"==typeof m)return _arrayLikeToArray(m,$);var E=Object.prototype.toString.call(m).slice(8,-1);if("Object"===E&&m.constructor&&(E=m.constructor.name),"Map"===E||"Set"===E)return Array.from(m);if("Arguments"===E||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return _arrayLikeToArray(m,$)}}function _arrayLikeToArray(m,$){(null==$||$>m.length)&&($=m.length);for(var E=0,_=Array($);E<$;E++)_[E]=m[E];return _}function _nonIterableRest(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function isNumeric(m){return!isNaN(parseInt(m))&&isFinite(m)}function isPercentage(m){return isNumeric(m)&&m<=100&&m>=0}function areValidRatios(m){return m.length>0&&m.every(function(m){return m>=0})&&m.some(function(m){return m>0})}function isFloat(m){return isNumeric(m)&&!Number.isInteger(m)}function countFractionDigits(){var m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,$=m.toString();if($.indexOf("e-")>0)return parseInt($.split("e-")[1]);var E=$.split(".")[1];return E?E.length:0}function isHalf(m){return Math.abs(m)%1==.5}function getJSON(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(E,_){var P=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){4===P.readyState&&(P.status>=200&&P.status<400?E(JSON.parse(P.responseText)):_(Error(P.statusText)))},onerror:function(){_(Error("Network error"))}});P.open("GET",m,!0),setXHRHeaders(P,$.headers),P.send()})}function setXHRHeaders(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var E in $)m.setRequestHeader(E,$[E]);return m}function isUndefined(m){return void 0===m}function flattenObject(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",E={};return Object.entries(m).forEach(function(m){"object"===_typeof(m[1])?Object.entries(flattenObject(m[1])).forEach(function(_){E[m[0]+$+_[0]]=_[1]}):E[m[0]]=m[1]}),E}function isThenable(m){return!!m&&("object"===_typeof(m)||"function"==typeof m)&&"function"==typeof m.then}function Calculator(){var floatMultiply=function(m,$){var getFactor=function(m){return Math.pow(10,countFractionDigits(m))},E=Math.max(getFactor(m),getFactor($));return Math.round(m*E)*Math.round($*E)/(E*E)},m={HALF_ODD:function(m){var $=Math.round(m);return isHalf(m)&&$%2==0?$-1:$},HALF_EVEN:function(m){var $=Math.round(m);return isHalf(m)?$%2==0?$:$-1:$},HALF_UP:function(m){return Math.round(m)},HALF_DOWN:function(m){return isHalf(m)?Math.floor(m):Math.round(m)},HALF_TOWARDS_ZERO:function(m){return isHalf(m)?Math.sign(m)*Math.floor(Math.abs(m)):Math.round(m)},HALF_AWAY_FROM_ZERO:function(m){return isHalf(m)?Math.sign(m)*Math.ceil(Math.abs(m)):Math.round(m)},DOWN:function(m){return Math.floor(m)}};return{add:function(m,$){return m+$},subtract:function(m,$){return m-$},multiply:function(m,$){return isFloat(m)||isFloat($)?floatMultiply(m,$):m*$},divide:function(m,$){return m/$},modulo:function(m,$){return m%$},round:function($){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HALF_EVEN";return m[E]($)}}}var E=Calculator();function Format(m){var $=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(m);return{getMatches:function(){return null!==$?$.slice(1).filter(function(m){return!isUndefined(m)}):[]},getMinimumFractionDigits:function(){var decimalPosition=function(m){return"."===m};return isUndefined(this.getMatches().find(decimalPosition))?0:this.getMatches()[E.add(this.getMatches().findIndex(decimalPosition),1)].split("").length},getCurrencyDisplay:function(){return({USD:"code",dollar:"name",$:"symbol"})[this.getMatches().find(function(m){return"USD"===m||"dollar"===m||"$"===m})]},getStyle:function(){return isUndefined(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!isUndefined(this.getMatches().find(function(m){return","===m}))}}}function CurrencyConverter(m){var mergeTags=function(){var m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",$=arguments.length>1?arguments[1]:void 0;for(var E in $)m=m.replace("{{".concat(E,"}}"),$[E]);return m};return{getExchangeRate:function($,E){return(isThenable(m.endpoint)?m.endpoint:getJSON(mergeTags(m.endpoint,{from:$,to:E}),{headers:m.headers})).then(function(_){return flattenObject(_)[mergeTags(m.propertyPath,{from:$,to:E})]})}}}function assert(m,$){var E=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Error;if(!m)throw new E($)}function assertPercentage(m){assert(isPercentage(m),"You must provide a numeric value between 0 and 100.",RangeError)}function assertValidRatios(m){assert(areValidRatios(m),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}function assertInteger(m){assert(Number.isInteger(m),"You must provide an integer.",TypeError)}var _=Calculator(),P=Object.assign(function Dinero(m){var $=Object.assign({},{amount:Dinero.defaultAmount,currency:Dinero.defaultCurrency,precision:Dinero.defaultPrecision},m),E=$.amount,P=$.currency,S=$.precision;assertInteger(E),assertInteger(S);var T=Dinero.globalLocale,k=Dinero.globalFormat,R=Dinero.globalRoundingMode,A=Dinero.globalFormatRoundingMode,M=Object.assign({},Dinero.globalExchangeRatesApi),create=function(m){var $=Object.assign({},Object.assign({},{amount:E,currency:P,precision:S},m),Object.assign({},{locale:this.locale},m));return Object.assign(Dinero({amount:$.amount,currency:$.currency,precision:$.precision}),{locale:$.locale})},assertSameCurrency=function(m){assert(this.hasSameCurrency(m),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return E},getCurrency:function(){return P},getLocale:function(){return this.locale||T},setLocale:function(m){return create.call(this,{locale:m})},getPrecision:function(){return S},convertPrecision:function(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;assertInteger(m);var E=this.getPrecision(),P=m>E,S=P?_.multiply:_.divide,T=P?[m,E]:[E,m],k=Math.pow(10,_.subtract.apply(_,T));return create.call(this,{amount:_.round(S(this.getAmount(),k),$),precision:m})},add:function(m){assertSameCurrency.call(this,m);var $=Dinero.normalizePrecision([this,m]);return create.call(this,{amount:_.add($[0].getAmount(),$[1].getAmount()),precision:$[0].getPrecision()})},subtract:function(m){assertSameCurrency.call(this,m);var $=Dinero.normalizePrecision([this,m]);return create.call(this,{amount:_.subtract($[0].getAmount(),$[1].getAmount()),precision:$[0].getPrecision()})},multiply:function(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return create.call(this,{amount:_.round(_.multiply(this.getAmount(),m),$)})},divide:function(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return create.call(this,{amount:_.round(_.divide(this.getAmount(),m),$)})},percentage:function(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:R;return assertPercentage(m),this.multiply(_.divide(m,100),$)},allocate:function(m){var $=this;assertValidRatios(m);for(var E=m.reduce(function(m,$){return _.add(m,$)}),P=this.getAmount(),S=m.map(function(m){var S=Math.floor(_.divide(_.multiply($.getAmount(),m),E));return P=_.subtract(P,S),create.call($,{amount:S})}),T=0;P>0;)m[T]>0&&(S[T]=S[T].add(create.call(this,{amount:1})),P=_.subtract(P,1)),T+=1;return S},convert:function(m){var $=this,E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},P=E.endpoint,S=void 0===P?M.endpoint:P,T=E.propertyPath,k=void 0===T?M.propertyPath||"rates.{{to}}":T,A=E.headers,V=void 0===A?M.headers:A,N=E.roundingMode,j=Object.assign({},{endpoint:S,propertyPath:k,headers:V,roundingMode:void 0===N?R:N});return CurrencyConverter(j).getExchangeRate(this.getCurrency(),m).then(function(E){return assert(!isUndefined(E),'No rate was found for the destination currency "'.concat(m,'".'),TypeError),create.call($,{amount:_.round(_.multiply($.getAmount(),parseFloat(E)),j.roundingMode),currency:m})})},equalsTo:function(m){return this.hasSameAmount(m)&&this.hasSameCurrency(m)},lessThan:function(m){assertSameCurrency.call(this,m);var $=Dinero.normalizePrecision([this,m]);return $[0].getAmount()<$[1].getAmount()},lessThanOrEqual:function(m){assertSameCurrency.call(this,m);var $=Dinero.normalizePrecision([this,m]);return $[0].getAmount()<=$[1].getAmount()},greaterThan:function(m){assertSameCurrency.call(this,m);var $=Dinero.normalizePrecision([this,m]);return $[0].getAmount()>$[1].getAmount()},greaterThanOrEqual:function(m){assertSameCurrency.call(this,m);var $=Dinero.normalizePrecision([this,m]);return $[0].getAmount()>=$[1].getAmount()},isZero:function(){return 0===this.getAmount()},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return 0>this.getAmount()},hasSubUnits:function(){return 0!==_.modulo(this.getAmount(),Math.pow(10,S))},hasCents:function(){return 0!==_.modulo(this.getAmount(),Math.pow(10,S))},hasSameCurrency:function(m){return this.getCurrency()===m.getCurrency()},hasSameAmount:function(m){var $=Dinero.normalizePrecision([this,m]);return $[0].getAmount()===$[1].getAmount()},toFormat:function(){var m=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,$=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,E=Format(m);return this.toRoundedUnit(E.getMinimumFractionDigits(),$).toLocaleString(this.getLocale(),{currencyDisplay:E.getCurrencyDisplay(),useGrouping:E.getUseGrouping(),minimumFractionDigits:E.getMinimumFractionDigits(),style:E.getStyle(),currency:this.getCurrency()})},toUnit:function(){return _.divide(this.getAmount(),Math.pow(10,S))},toRoundedUnit:function(m){var $=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,E=Math.pow(10,m);return _.divide(_.round(_.multiply(this.toUnit(),E),$),E)},toObject:function(){return{amount:E,currency:P,precision:S}},toJSON:function(){return this.toObject()}}},{defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},{globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}},{normalizePrecision:function(m){var $=m.reduce(function(m,$){return Math.max(m.getPrecision(),$.getPrecision())});return m.map(function(m){return m.getPrecision()!==$?m.convertPrecision($):m})},minimum:function(m){var $=_toArray(m),E=$[0],_=$.slice(1),P=E;return _.forEach(function(m){P=P.lessThan(m)?P:m}),P},maximum:function(m){var $=_toArray(m),E=$[0],_=$.slice(1),P=E;return _.forEach(function(m){P=P.greaterThan(m)?P:m}),P}});$.Z=P},12666:function(m,$,E){var _=E(2603)(E(42242),"DataView");m.exports=_},45464:function(m,$,E){var _=E(52644),P=E(69334),S=E(31696),T=E(51553),k=E(59789);function Hash(m){var $=-1,E=null==m?0:m.length;for(this.clear();++$-1?k[R?$[A]:A]:void 0}}m.exports=createFind},49507:function(m,$,E){var _=E(46427),P=E(68795),S=E(65225);function equalArrays(m,$,E,T,k,R){var A=1&E,M=m.length,V=$.length;if(M!=V&&!(A&&V>M))return!1;var N=R.get(m),j=R.get($);if(N&&j)return N==$&&j==m;var B=-1,z=!0,W=2&E?new _:void 0;for(R.set(m,$),R.set($,m);++B-1&&m%1==0&&m-1}m.exports=listCacheHas},74441:function(m,$,E){var _=E(99345);function listCacheSet(m,$){var E=this.__data__,P=_(E,m);return P<0?(++this.size,E.push([m,$])):E[P][1]=$,this}m.exports=listCacheSet},3310:function(m,$,E){var _=E(45464),P=E(62096),S=E(35956);function mapCacheClear(){this.size=0,this.__data__={hash:new _,map:new(S||P),string:new _}}m.exports=mapCacheClear},29530:function(m,$,E){var _=E(32367);function mapCacheDelete(m){var $=_(this,m).delete(m);return this.size-=$?1:0,$}m.exports=mapCacheDelete},14465:function(m,$,E){var _=E(32367);function mapCacheGet(m){return _(this,m).get(m)}m.exports=mapCacheGet},70338:function(m,$,E){var _=E(32367);function mapCacheHas(m){return _(this,m).has(m)}m.exports=mapCacheHas},19610:function(m,$,E){var _=E(32367);function mapCacheSet(m,$){var E=_(this,m),P=E.size;return E.set(m,$),this.size+=E.size==P?0:1,this}m.exports=mapCacheSet},39883:function(m){function mapToArray(m){var $=-1,E=Array(m.size);return m.forEach(function(m,_){E[++$]=[_,m]}),E}m.exports=mapToArray},88069:function(m){function matchesStrictComparable(m,$){return function(E){return null!=E&&E[m]===$&&(void 0!==$||m in Object(E))}}m.exports=matchesStrictComparable},64670:function(m,$,E){var _=E(93023);function memoizeCapped(m){var $=_(m,function(m){return 500===E.size&&E.clear(),m}),E=$.cache;return $}m.exports=memoizeCapped},28749:function(m,$,E){var _=E(2603)(Object,"create");m.exports=_},19024:function(m,$,E){var _=E(72184)(Object.keys,Object);m.exports=_},23524:function(m,$,E){m=E.nmd(m);var _=E(66503),P=$&&!$.nodeType&&$,S=P&&m&&!m.nodeType&&m,T=S&&S.exports===P&&_.process,k=function(){try{var m=S&&S.require&&S.require("util").types;if(m)return m;return T&&T.binding&&T.binding("util")}catch(m){}}();m.exports=k},72184:function(m){function overArg(m,$){return function(E){return m($(E))}}m.exports=overArg},566:function(m){function setCacheAdd(m){return this.__data__.set(m,"__lodash_hash_undefined__"),this}m.exports=setCacheAdd},42884:function(m){function setCacheHas(m){return this.__data__.has(m)}m.exports=setCacheHas},97782:function(m){function setToArray(m){var $=-1,E=Array(m.size);return m.forEach(function(m){E[++$]=m}),E}m.exports=setToArray},40464:function(m,$,E){var _=E(62096);function stackClear(){this.__data__=new _,this.size=0}m.exports=stackClear},67473:function(m){function stackDelete(m){var $=this.__data__,E=$.delete(m);return this.size=$.size,E}m.exports=stackDelete},95563:function(m){function stackGet(m){return this.__data__.get(m)}m.exports=stackGet},55518:function(m){function stackHas(m){return this.__data__.has(m)}m.exports=stackHas},5319:function(m,$,E){var _=E(62096),P=E(35956),S=E(19612);function stackSet(m,$){var E=this.__data__;if(E instanceof _){var T=E.__data__;if(!P||T.length<199)return T.push([m,$]),this.size=++E.size,this;E=this.__data__=new S(T)}return E.set(m,$),this.size=E.size,this}m.exports=stackSet},9450:function(m,$,E){var _=E(64670),P=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g,T=_(function(m){var $=[];return 46===m.charCodeAt(0)&&$.push(""),m.replace(P,function(m,E,_,P){$.push(_?P.replace(S,"$1"):E||m)}),$});m.exports=T},97990:function(m,$,E){var _=E(71087),P=1/0;function toKey(m){if("string"==typeof m||_(m))return m;var $=m+"";return"0"==$&&1/m==-P?"-0":$}m.exports=toKey},68825:function(m){var $=Function.prototype.toString;function toSource(m){if(null!=m){try{return $.call(m)}catch(m){}try{return m+""}catch(m){}}return""}m.exports=toSource},20121:function(m){var $=/\s/;function trimmedEndIndex(m){for(var E=m.length;E--&&$.test(m.charAt(E)););return E}m.exports=trimmedEndIndex},600:function(m){function eq(m,$){return m===$||m!=m&&$!=$}m.exports=eq},77434:function(m,$,E){var _=E(14822),P=E(81922),S=E(57322),T=E(12068);function filter(m,$){return(T(m)?_:P)(m,S($,3))}m.exports=filter},41330:function(m,$,E){var _=E(18872)(E(92076));m.exports=_},92076:function(m,$,E){var _=E(71787),P=E(57322),S=E(12919),T=Math.max;function findIndex(m,$,E){var k=null==m?0:m.length;if(!k)return -1;var R=null==E?0:S(E);return R<0&&(R=T(k+R,0)),_(m,P($,3),R)}m.exports=findIndex},98614:function(m,$,E){var _=E(81456);function get(m,$,E){var P=null==m?void 0:_(m,$);return void 0===P?E:P}m.exports=get},92556:function(m,$,E){var _=E(16457),P=E(35355);function hasIn(m,$){return null!=m&&P(m,$,_)}m.exports=hasIn},34646:function(m){function identity(m){return m}m.exports=identity},80514:function(m,$,E){var _=E(62298),P=E(12387),S=Object.prototype,T=S.hasOwnProperty,k=S.propertyIsEnumerable,R=_(function(){return arguments}())?_:function(m){return P(m)&&T.call(m,"callee")&&!k.call(m,"callee")};m.exports=R},85635:function(m,$,E){var _=E(28293),P=E(34594);function isArrayLike(m){return null!=m&&P(m.length)&&!_(m)}m.exports=isArrayLike},5067:function(m,$,E){m=E.nmd(m);var _=E(42242),P=E(7644),S=$&&!$.nodeType&&$,T=S&&m&&!m.nodeType&&m,k=T&&T.exports===S?_.Buffer:void 0,R=k?k.isBuffer:void 0;m.exports=R||P},13821:function(m,$,E){var _=E(80708),P=E(70287),S=E(23524),T=S&&S.isDate,k=T?P(T):_;m.exports=k},96778:function(m,$,E){var _=E(99605),P=E(9e3),S=E(80514),T=E(12068),k=E(85635),R=E(5067),A=E(44097),M=E(8160),V=Object.prototype.hasOwnProperty;function isEmpty(m){if(null==m)return!0;if(k(m)&&(T(m)||"string"==typeof m||"function"==typeof m.splice||R(m)||M(m)||S(m)))return!m.length;var $=P(m);if("[object Map]"==$||"[object Set]"==$)return!m.size;if(A(m))return!_(m).length;for(var E in m)if(V.call(m,E))return!1;return!0}m.exports=isEmpty},28293:function(m,$,E){var _=E(86714),P=E(36905);function isFunction(m){if(!P(m))return!1;var $=_(m);return"[object Function]"==$||"[object GeneratorFunction]"==$||"[object AsyncFunction]"==$||"[object Proxy]"==$}m.exports=isFunction},34594:function(m){function isLength(m){return"number"==typeof m&&m>-1&&m%1==0&&m<=9007199254740991}m.exports=isLength},36905:function(m){function isObject(m){var $=typeof m;return null!=m&&("object"==$||"function"==$)}m.exports=isObject},33874:function(m,$,E){var _=E(86714),P=E(12068),S=E(12387);function isString(m){return"string"==typeof m||!P(m)&&S(m)&&"[object String]"==_(m)}m.exports=isString},8160:function(m,$,E){var _=E(61571),P=E(70287),S=E(23524),T=S&&S.isTypedArray,k=T?P(T):_;m.exports=k},85346:function(m,$,E){var _=E(66515),P=E(99605),S=E(85635);function keys(m){return S(m)?_(m):P(m)}m.exports=keys},93023:function(m,$,E){var _=E(19612);function memoize(m,$){if("function"!=typeof m||null!=$&&"function"!=typeof $)throw TypeError("Expected a function");var memoized=function(){var E=arguments,_=$?$.apply(this,E):E[0],P=memoized.cache;if(P.has(_))return P.get(_);var S=m.apply(this,E);return memoized.cache=P.set(_,S)||P,S};return memoized.cache=new(memoize.Cache||_),memoized}memoize.Cache=_,m.exports=memoize},8919:function(m,$,E){var _=E(51357),P=E(9266),S=E(41846),T=E(97990);function property(m){return S(m)?_(T(m)):P(m)}m.exports=property},12501:function(m){function stubArray(){return[]}m.exports=stubArray},7644:function(m){function stubFalse(){return!1}m.exports=stubFalse},28206:function(m,$,E){var _=E(71573),P=1/0;function toFinite(m){return m?(m=_(m))===P||m===-P?(m<0?-1:1)*17976931348623157e292:m==m?m:0:0===m?m:0}m.exports=toFinite},12919:function(m,$,E){var _=E(28206);function toInteger(m){var $=_(m),E=$%1;return $==$?E?$-E:$:0}m.exports=toInteger},71573:function(m,$,E){var _=E(13225),P=E(36905),S=E(71087),T=0/0,k=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,A=/^0o[0-7]+$/i,M=parseInt;function toNumber(m){if("number"==typeof m)return m;if(S(m))return T;if(P(m)){var $="function"==typeof m.valueOf?m.valueOf():m;m=P($)?$+"":$}if("string"!=typeof m)return 0===m?m:+m;m=_(m);var E=R.test(m);return E||A.test(m)?M(m.slice(2),E?2:8):k.test(m)?T:+m}m.exports=toNumber},29743:function(m){!function(){"use strict";var $={114:function(m){function assertPath(m){if("string"!=typeof m)throw TypeError("Path must be a string. Received "+JSON.stringify(m))}function normalizeStringPosix(m,$){for(var E,_="",P=0,S=-1,T=0,k=0;k<=m.length;++k){if(k2){var R=_.lastIndexOf("/");if(R!==_.length-1){-1===R?(_="",P=0):P=(_=_.slice(0,R)).length-1-_.lastIndexOf("/"),S=k,T=0;continue}}else if(2===_.length||1===_.length){_="",P=0,S=k,T=0;continue}}$&&(_.length>0?_+="/..":_="..",P=2)}else _.length>0?_+="/"+m.slice(S+1,k):_=m.slice(S+1,k),P=k-S-1;S=k,T=0}else 46===E&&-1!==T?++T:T=-1}return _}function _format(m,$){var E=$.dir||$.root,_=$.base||($.name||"")+($.ext||"");return E?E===$.root?E+_:E+m+_:_}var $={resolve:function(){for(var m,$,E="",_=!1,P=arguments.length-1;P>=-1&&!_;P--)P>=0?$=arguments[P]:(void 0===m&&(m=""),$=m),assertPath($),0!==$.length&&(E=$+"/"+E,_=47===$.charCodeAt(0));return(E=normalizeStringPosix(E,!_),_)?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(m){if(assertPath(m),0===m.length)return".";var $=47===m.charCodeAt(0),E=47===m.charCodeAt(m.length-1);return(0!==(m=normalizeStringPosix(m,!$)).length||$||(m="."),m.length>0&&E&&(m+="/"),$)?"/"+m:m},isAbsolute:function(m){return assertPath(m),m.length>0&&47===m.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var m,E=0;E0&&(void 0===m?m=_:m+="/"+_)}return void 0===m?".":$.normalize(m)},relative:function(m,E){if(assertPath(m),assertPath(E),m===E||(m=$.resolve(m))===(E=$.resolve(E)))return"";for(var _=1;_R){if(47===E.charCodeAt(T+M))return E.slice(T+M+1);if(0===M)return E.slice(T+M)}else S>R&&(47===m.charCodeAt(_+M)?A=M:0===M&&(A=0));break}var V=m.charCodeAt(_+M);if(V!==E.charCodeAt(T+M))break;47===V&&(A=M)}var N="";for(M=_+A+1;M<=P;++M)(M===P||47===m.charCodeAt(M))&&(0===N.length?N+="..":N+="/..");return N.length>0?N+E.slice(T+A):(T+=A,47===E.charCodeAt(T)&&++T,E.slice(T))},_makeLong:function(m){return m},dirname:function(m){if(assertPath(m),0===m.length)return".";for(var $=m.charCodeAt(0),E=47===$,_=-1,P=!0,S=m.length-1;S>=1;--S)if(47===($=m.charCodeAt(S))){if(!P){_=S;break}}else P=!1;return -1===_?E?"/":".":E&&1===_?"//":m.slice(0,_)},basename:function(m,$){if(void 0!==$&&"string"!=typeof $)throw TypeError('"ext" argument must be a string');assertPath(m);var E,_=0,P=-1,S=!0;if(void 0!==$&&$.length>0&&$.length<=m.length){if($.length===m.length&&$===m)return"";var T=$.length-1,k=-1;for(E=m.length-1;E>=0;--E){var R=m.charCodeAt(E);if(47===R){if(!S){_=E+1;break}}else -1===k&&(S=!1,k=E+1),T>=0&&(R===$.charCodeAt(T)?-1==--T&&(P=E):(T=-1,P=k))}return _===P?P=k:-1===P&&(P=m.length),m.slice(_,P)}for(E=m.length-1;E>=0;--E)if(47===m.charCodeAt(E)){if(!S){_=E+1;break}}else -1===P&&(S=!1,P=E+1);return -1===P?"":m.slice(_,P)},extname:function(m){assertPath(m);for(var $=-1,E=0,_=-1,P=!0,S=0,T=m.length-1;T>=0;--T){var k=m.charCodeAt(T);if(47===k){if(!P){E=T+1;break}continue}-1===_&&(P=!1,_=T+1),46===k?-1===$?$=T:1!==S&&(S=1):-1!==$&&(S=-1)}return -1===$||-1===_||0===S||1===S&&$===_-1&&$===E+1?"":m.slice($,_)},format:function(m){if(null===m||"object"!=typeof m)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof m);return _format("/",m)},parse:function(m){assertPath(m);var $,E={root:"",dir:"",base:"",ext:"",name:""};if(0===m.length)return E;var _=m.charCodeAt(0),P=47===_;P?(E.root="/",$=1):$=0;for(var S=-1,T=0,k=-1,R=!0,A=m.length-1,M=0;A>=$;--A){if(47===(_=m.charCodeAt(A))){if(!R){T=A+1;break}continue}-1===k&&(R=!1,k=A+1),46===_?-1===S?S=A:1!==M&&(M=1):-1!==S&&(M=-1)}return -1===S||-1===k||0===M||1===M&&S===k-1&&S===T+1?-1!==k&&(0===T&&P?E.base=E.name=m.slice(1,k):E.base=E.name=m.slice(T,k)):(0===T&&P?(E.name=m.slice(1,S),E.base=m.slice(1,k)):(E.name=m.slice(T,S),E.base=m.slice(T,k)),E.ext=m.slice(S,k)),T>0?E.dir=m.slice(0,T-1):P&&(E.dir="/"),E},sep:"/",delimiter:":",win32:null,posix:null};$.posix=$,m.exports=$}},E={};function __nccwpck_require__(m){var _=E[m];if(void 0!==_)return _.exports;var P=E[m]={exports:{}},S=!0;try{$[m](P,P.exports,__nccwpck_require__),S=!1}finally{S&&delete E[m]}return P.exports}__nccwpck_require__.ab="//";var _=__nccwpck_require__(114);m.exports=_}()},22218:function(m,$,E){"use strict";E.d($,{DM:function(){return a},jc:function(){return h},ln:function(){return p},o5:function(){return y}});let _=Symbol(),P=Symbol(),o=(m,$)=>new Proxy(m,$),S=Object.getPrototypeOf,T=new WeakMap,l=m=>m&&(T.has(m)?T.get(m):S(m)===Object.prototype||S(m)===Array.prototype),f=m=>"object"==typeof m&&null!==m,i=m=>{if(Array.isArray(m))return Array.from(m);let $=Object.getOwnPropertyDescriptors(m);return Object.values($).forEach(m=>{m.configurable=!0}),Object.create(S(m),$)},u=m=>m[P]||m,a=(m,$,E,S)=>{if(!l(m))return m;let T=S&&S.get(m);if(!T){let $=u(m);T=Object.values(Object.getOwnPropertyDescriptors($)).some(m=>!m.configurable&&!m.writable)?[$,i($)]:[$],null==S||S.set(m,T)}let[k,R]=T,A=E&&E.get(k);return A&&!!R===A[1].f||((A=((m,$)=>{let E={f:$},S=!1,f=($,_)=>{if(!S){let P=E.a.get(m);if(P||(P={},E.a.set(m,P)),"w"===$)P.w=!0;else{let m=P[$];m||(m=new Set,P[$]=m),m.add(_)}}},T={get:($,_)=>_===P?m:(f("k",_),a(Reflect.get($,_),E.a,E.c,E.t)),has:($,P)=>P===_?(S=!0,E.a.delete(m),!0):(f("h",P),Reflect.has($,P)),getOwnPropertyDescriptor:(m,$)=>(f("o",$),Reflect.getOwnPropertyDescriptor(m,$)),ownKeys:m=>(f("w"),Reflect.ownKeys(m))};return $&&(T.set=T.deleteProperty=()=>!1),[T,E]})(k,!!R))[1].p=o(R||k,A[0]),E&&E.set(k,A)),A[1].a=$,A[1].c=E,A[1].t=S,A[1].p},p=(m,$,E,_)=>{if(Object.is(m,$))return!1;if(!f(m)||!f($))return!0;let P=E.get(u(m));if(!P)return!0;if(_){let E=_.get(m);if(E&&E.n===$)return E.g;_.set(m,{n:$,g:!1})}let S=null;try{for(let E of P.h||[])if(S=Reflect.has(m,E)!==Reflect.has($,E))return S;if(!0===P.w){if(S=((m,$)=>{let E=Reflect.ownKeys(m),_=Reflect.ownKeys($);return E.length!==_.length||E.some((m,$)=>m!==_[$])})(m,$))return S}else for(let E of P.o||[])if(S=!!Reflect.getOwnPropertyDescriptor(m,E)!=!!Reflect.getOwnPropertyDescriptor($,E))return S;for(let T of P.k||[])if(S=p(m[T],$[T],E,_))return S;return null===S&&(S=!0),S}finally{_&&_.set(m,{n:$,g:S})}},y=m=>l(m)&&m[P]||null,h=(m,$=!0)=>{T.set(m,$)}},28979:function(m,$,E){"use strict";E.d($,{Z:function(){return esm_useUpdateEffect}});var _=E(2265);function useFirstMountState(){var m=(0,_.useRef)(!0);return m.current?(m.current=!1,!0):m.current}var esm_useUpdateEffect=function(m,$){var E=useFirstMountState();(0,_.useEffect)(function(){if(!E)return m()},$)}},392:function(m,$,E){var _,P,S,T,k,R,A,M,V,N="2.0.1",j=[].slice,B=[].indexOf||function(m){for(var $=0,E=this.length;$0&&(!(E=V(m[0])).startsWith("./")||_.startsWith("./")||_.startsWith("..")?E.startsWith("//")&&!_.startsWith("//")&&(_=E.startsWith("//./")?"//."+_:"/"+_):_="./"+_),_},addExt:function(m,$){return $?("."!==$[0]&&($="."+$),m+(m.endsWith($)?"":$)):m},trimExt:function(m,E,_){var P;return(null==_&&(_=7),P=$.extname(m),T(P,E,_))?m.slice(0,+(m.length-P.length-1)+1||9e9):m},removeExt:function(m,E){return E&&(E="."===E[0]?E:"."+E,$.extname(m)===E)?$.trimExt(m,[],E.length):m},changeExt:function(m,E,_,P){return null==P&&(P=7),$.trimExt(m,_,P)+(E?"."===E[0]?E:"."+E:"")},defaultExt:function(m,E,_,P){var S;return(null==P&&(P=7),S=$.extname(m),T(S,_,P))?m:$.addExt(m,E)}},T=function(m,$,E){return null==$&&($=[]),m&&m.length<=E&&0>B.call($.map(function(m){return(m&&"."!==m[0]?".":"")+m}),m)},P)if(z.call(P,k)){if(_=P[k],void 0!==$[k])throw Error("path."+k+" already exists.");$[k]=_}},72053:function(m,$,E){"use strict";E.d($,{Nr:function(){return o},y1:function(){return c}});var _=E(2265);function c(m,$,E){var P=this,S=(0,_.useRef)(null),T=(0,_.useRef)(0),k=(0,_.useRef)(null),R=(0,_.useRef)([]),A=(0,_.useRef)(),M=(0,_.useRef)(),V=(0,_.useRef)(m),N=(0,_.useRef)(!0);(0,_.useEffect)(function(){V.current=m},[m]);var j=!$&&0!==$&&"undefined"!=typeof window;if("function"!=typeof m)throw TypeError("Expected a function");$=+$||0;var B=!!(E=E||{}).leading,z=!("trailing"in E)||!!E.trailing,W="maxWait"in E,H=W?Math.max(+E.maxWait||0,$):null;return(0,_.useEffect)(function(){return N.current=!0,function(){N.current=!1}},[]),(0,_.useMemo)(function(){var r=function(m){var $=R.current,E=A.current;return R.current=A.current=null,T.current=m,M.current=V.current.apply(E,$)},n=function(m,$){j&&cancelAnimationFrame(k.current),k.current=j?requestAnimationFrame(m):setTimeout(m,$)},t=function(m){if(!N.current)return!1;var E=m-S.current;return!S.current||E>=$||E<0||W&&m-T.current>=H},u=function(m){return k.current=null,z&&R.current?r(m):(R.current=A.current=null,M.current)},c=function r(){var m=Date.now();if(t(m))return u(m);if(N.current){var E=$-(m-S.current);n(r,W?Math.min(E,H-(m-T.current)):E)}},h=function(){var m=Date.now(),E=t(m);if(R.current=[].slice.call(arguments),A.current=P,S.current=m,E){if(!k.current&&N.current)return T.current=S.current,n(c,$),B?r(S.current):M.current;if(W)return n(c,$),r(S.current)}return k.current||n(c,$),M.current};return h.cancel=function(){k.current&&(j?cancelAnimationFrame(k.current):clearTimeout(k.current)),T.current=0,R.current=S.current=A.current=k.current=null},h.isPending=function(){return!!k.current},h.flush=function(){return k.current?u(Date.now()):M.current},h},[B,W,$,H,z,j])}function i(m,$){return m===$}function a(m){return"function"==typeof m?function(){return m}:m}function o(m,$,E){var P,S,T=E&&E.equalityFn||i,k=(S=(P=(0,_.useState)(a(m)))[1],[P[0],(0,_.useCallback)(function(m){return S(a(m))},[])]),R=k[0],A=k[1],M=c((0,_.useCallback)(function(m){return A(m)},[A]),$,E),V=(0,_.useRef)(m);return T(V.current,m)||(M(m),V.current=m),[R,M]}},12223:function(m,$,E){"use strict";E.d($,{v:function(){return ep}});var _,P,S,T=E(2265),k=E(60597),R=E(11931),A=E(85390),M=E(82769),V=E(32600),N=E(46618),j=E(75606),B=E(93850),z=E(53891),W=E(35863),H=E(65410),G=E(90583),J=E(50926),X=E(25306),ee=E(8076),et=E(57728),ea=E(12950),er=E(13995);let en=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(m){var $,E;let _=null!=($=m.innerText)?$:"",P=m.cloneNode(!0);if(!(P instanceof HTMLElement))return _;let S=!1;for(let m of P.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))m.remove(),S=!0;let T=S?null!=(E=P.innerText)?E:"":_;return en.test(T)&&(T=T.replace(en,"")),T}function g(m){let $=m.getAttribute("aria-label");if("string"==typeof $)return $.trim();let E=m.getAttribute("aria-labelledby");if(E){let m=E.split(" ").map(m=>{let $=document.getElementById(m);if($){let m=$.getAttribute("aria-label");return"string"==typeof m?m.trim():o($).trim()}return null}).filter(Boolean);if(m.length>0)return m.join(", ")}return o(m).trim()}function use_text_value_b(m){let $=(0,T.useRef)(""),E=(0,T.useRef)("");return(0,ea.z)(()=>{let _=m.current;if(!_)return"";let P=_.innerText;if($.current===P)return E.current;let S=g(_).trim().toLowerCase();return $.current=P,E.current=S,S})}var ei=((_=ei||{})[_.Open=0]="Open",_[_.Closed=1]="Closed",_),eo=((P=eo||{})[P.Pointer=0]="Pointer",P[P.Other=1]="Other",P),es=((S=es||{})[S.OpenMenu=0]="OpenMenu",S[S.CloseMenu=1]="CloseMenu",S[S.GoToItem=2]="GoToItem",S[S.Search=3]="Search",S[S.ClearSearch=4]="ClearSearch",S[S.RegisterItem=5]="RegisterItem",S[S.UnregisterItem=6]="UnregisterItem",S);function w(m,$=m=>m){let E=null!==m.activeItemIndex?m.items[m.activeItemIndex]:null,_=(0,H.z2)($(m.items.slice()),m=>m.dataRef.current.domRef.current),P=E?_.indexOf(E):null;return -1===P&&(P=null),{items:_,activeItemIndex:P}}let el={1:m=>1===m.menuState?m:{...m,activeItemIndex:null,menuState:1},0:m=>0===m.menuState?m:{...m,__demoMode:!1,menuState:0},2:(m,$)=>{var E;let _=w(m),P=(0,z.d)($,{resolveItems:()=>_.items,resolveActiveIndex:()=>_.activeItemIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled});return{...m,..._,searchQuery:"",activeItemIndex:P,activationTrigger:null!=(E=$.trigger)?E:1}},3:(m,$)=>{let E=""!==m.searchQuery?0:1,_=m.searchQuery+$.value.toLowerCase(),P=(null!==m.activeItemIndex?m.items.slice(m.activeItemIndex+E).concat(m.items.slice(0,m.activeItemIndex+E)):m.items).find(m=>{var $;return(null==($=m.dataRef.current.textValue)?void 0:$.startsWith(_))&&!m.dataRef.current.disabled}),S=P?m.items.indexOf(P):-1;return -1===S||S===m.activeItemIndex?{...m,searchQuery:_}:{...m,searchQuery:_,activeItemIndex:S,activationTrigger:1}},4:m=>""===m.searchQuery?m:{...m,searchQuery:"",searchActiveItemIndex:null},5:(m,$)=>{let E=w(m,m=>[...m,{id:$.id,dataRef:$.dataRef}]);return{...m,...E}},6:(m,$)=>{let E=w(m,m=>{let E=m.findIndex(m=>m.id===$.id);return -1!==E&&m.splice(E,1),m});return{...m,...E,activationTrigger:1}}},ec=(0,T.createContext)(null);function O(m){let $=(0,T.useContext)(ec);if(null===$){let $=Error(`<${m} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace($,O),$}return $}function ye(m,$){return(0,k.E)($.type,el,m,$)}ec.displayName="MenuContext";let eu=T.Fragment;function Me(m,$){let{__demoMode:E=!1,..._}=m,P=(0,T.useReducer)(ye,{__demoMode:E,menuState:E?0:1,buttonRef:(0,T.createRef)(),itemsRef:(0,T.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:S,itemsRef:A,buttonRef:M},V]=P,j=(0,N.T)($);(0,G.O)([M,A],(m,$)=>{var E;V({type:1}),(0,H.sP)($,H.tJ.Loose)||(m.preventDefault(),null==(E=M.current)||E.focus())},0===S);let B=(0,ea.z)(()=>{V({type:1})}),z=(0,T.useMemo)(()=>({open:0===S,close:B}),[S,B]);return T.createElement(ec.Provider,{value:P},T.createElement(X.up,{value:(0,k.E)(S,{0:X.ZM.Open,1:X.ZM.Closed})},(0,R.sY)({ourProps:{ref:j},theirProps:_,slot:z,defaultTag:eu,name:"Menu"})))}function Re(m,$){var E;let _=(0,j.M)(),{id:P=`headlessui-menu-button-${_}`,...S}=m,[k,A]=O("Menu.Button"),V=(0,N.T)(k.buttonRef,$),H=(0,M.G)(),G=(0,ea.z)(m=>{switch(m.key){case B.R.Space:case B.R.Enter:case B.R.ArrowDown:m.preventDefault(),m.stopPropagation(),A({type:0}),H.nextFrame(()=>A({type:2,focus:z.T.First}));break;case B.R.ArrowUp:m.preventDefault(),m.stopPropagation(),A({type:0}),H.nextFrame(()=>A({type:2,focus:z.T.Last}))}}),J=(0,ea.z)(m=>{m.key===B.R.Space&&m.preventDefault()}),X=(0,ea.z)($=>{if((0,W.P)($.currentTarget))return $.preventDefault();m.disabled||(0===k.menuState?(A({type:1}),H.nextFrame(()=>{var m;return null==(m=k.buttonRef.current)?void 0:m.focus({preventScroll:!0})})):($.preventDefault(),A({type:0})))}),et=(0,T.useMemo)(()=>({open:0===k.menuState}),[k]),er={ref:V,id:P,type:(0,ee.f)(m,k.buttonRef),"aria-haspopup":"menu","aria-controls":null==(E=k.itemsRef.current)?void 0:E.id,"aria-expanded":0===k.menuState,onKeyDown:G,onKeyUp:J,onClick:X};return(0,R.sY)({ourProps:er,theirProps:S,slot:et,defaultTag:"button",name:"Menu.Button"})}let ed=R.AN.RenderStrategy|R.AN.Static;function Ee(m,$){var E,_;let P=(0,j.M)(),{id:S=`headlessui-menu-items-${P}`,...k}=m,[V,W]=O("Menu.Items"),G=(0,N.T)(V.itemsRef,$),ee=(0,et.i)(V.itemsRef),er=(0,M.G)(),en=(0,X.oJ)(),ei=null!==en?(en&X.ZM.Open)===X.ZM.Open:0===V.menuState;(0,T.useEffect)(()=>{let m=V.itemsRef.current;m&&0===V.menuState&&m!==(null==ee?void 0:ee.activeElement)&&m.focus({preventScroll:!0})},[V.menuState,V.itemsRef,ee]),(0,J.B)({container:V.itemsRef.current,enabled:0===V.menuState,accept:m=>"menuitem"===m.getAttribute("role")?NodeFilter.FILTER_REJECT:m.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(m){m.setAttribute("role","none")}});let eo=(0,ea.z)(m=>{var $,E;switch(er.dispose(),m.key){case B.R.Space:if(""!==V.searchQuery)return m.preventDefault(),m.stopPropagation(),W({type:3,value:m.key});case B.R.Enter:if(m.preventDefault(),m.stopPropagation(),W({type:1}),null!==V.activeItemIndex){let{dataRef:m}=V.items[V.activeItemIndex];null==(E=null==($=m.current)?void 0:$.domRef.current)||E.click()}(0,H.wI)(V.buttonRef.current);break;case B.R.ArrowDown:return m.preventDefault(),m.stopPropagation(),W({type:2,focus:z.T.Next});case B.R.ArrowUp:return m.preventDefault(),m.stopPropagation(),W({type:2,focus:z.T.Previous});case B.R.Home:case B.R.PageUp:return m.preventDefault(),m.stopPropagation(),W({type:2,focus:z.T.First});case B.R.End:case B.R.PageDown:return m.preventDefault(),m.stopPropagation(),W({type:2,focus:z.T.Last});case B.R.Escape:m.preventDefault(),m.stopPropagation(),W({type:1}),(0,A.k)().nextFrame(()=>{var m;return null==(m=V.buttonRef.current)?void 0:m.focus({preventScroll:!0})});break;case B.R.Tab:m.preventDefault(),m.stopPropagation(),W({type:1}),(0,A.k)().nextFrame(()=>{(0,H.EO)(V.buttonRef.current,m.shiftKey?H.TO.Previous:H.TO.Next)});break;default:1===m.key.length&&(W({type:3,value:m.key}),er.setTimeout(()=>W({type:4}),350))}}),es=(0,ea.z)(m=>{m.key===B.R.Space&&m.preventDefault()}),el=(0,T.useMemo)(()=>({open:0===V.menuState}),[V]),ec={"aria-activedescendant":null===V.activeItemIndex||null==(E=V.items[V.activeItemIndex])?void 0:E.id,"aria-labelledby":null==(_=V.buttonRef.current)?void 0:_.id,id:S,onKeyDown:eo,onKeyUp:es,role:"menu",tabIndex:0,ref:G};return(0,R.sY)({ourProps:ec,theirProps:k,slot:el,defaultTag:"div",features:ed,visible:ei,name:"Menu.Items"})}let ef=T.Fragment;function Pe(m,$){let E=(0,j.M)(),{id:_=`headlessui-menu-item-${E}`,disabled:P=!1,...S}=m,[k,M]=O("Menu.Item"),B=null!==k.activeItemIndex&&k.items[k.activeItemIndex].id===_,W=(0,T.useRef)(null),G=(0,N.T)($,W);(0,V.e)(()=>{if(k.__demoMode||0!==k.menuState||!B||0===k.activationTrigger)return;let m=(0,A.k)();return m.requestAnimationFrame(()=>{var m,$;null==($=null==(m=W.current)?void 0:m.scrollIntoView)||$.call(m,{block:"nearest"})}),m.dispose},[k.__demoMode,W,B,k.menuState,k.activationTrigger,k.activeItemIndex]);let J=use_text_value_b(W),X=(0,T.useRef)({disabled:P,domRef:W,get textValue(){return J()}});(0,V.e)(()=>{X.current.disabled=P},[X,P]),(0,V.e)(()=>(M({type:5,id:_,dataRef:X}),()=>M({type:6,id:_})),[X,_]);let ee=(0,ea.z)(()=>{M({type:1})}),et=(0,ea.z)(m=>{if(P)return m.preventDefault();M({type:1}),(0,H.wI)(k.buttonRef.current)}),en=(0,ea.z)(()=>{if(P)return M({type:2,focus:z.T.Nothing});M({type:2,focus:z.T.Specific,id:_})}),ei=(0,er.g)(),eo=(0,ea.z)(m=>ei.update(m)),es=(0,ea.z)(m=>{ei.wasMoved(m)&&(P||B||M({type:2,focus:z.T.Specific,id:_,trigger:0}))}),el=(0,ea.z)(m=>{ei.wasMoved(m)&&(P||B&&M({type:2,focus:z.T.Nothing}))}),ec=(0,T.useMemo)(()=>({active:B,disabled:P,close:ee}),[B,P,ee]);return(0,R.sY)({ourProps:{id:_,ref:G,role:"menuitem",tabIndex:!0===P?void 0:-1,"aria-disabled":!0===P||void 0,disabled:void 0,onClick:et,onFocus:en,onPointerEnter:eo,onMouseEnter:eo,onPointerMove:es,onMouseMove:es,onPointerLeave:el,onMouseLeave:el},theirProps:S,slot:ec,defaultTag:ef,name:"Menu.Item"})}let ep=Object.assign((0,R.yV)(Me),{Button:(0,R.yV)(Re),Items:(0,R.yV)(Ee),Item:(0,R.yV)(Pe)})},8076:function(m,$,E){"use strict";E.d($,{f:function(){return s}});var _=E(2265),P=E(32600);function i(m){var $;if(m.type)return m.type;let E=null!=($=m.as)?$:"button";if("string"==typeof E&&"button"===E.toLowerCase())return"button"}function s(m,$){let[E,S]=(0,_.useState)(()=>i(m));return(0,P.e)(()=>{S(i(m))},[m.type,m.as]),(0,P.e)(()=>{E||$.current&&$.current instanceof HTMLButtonElement&&!$.current.hasAttribute("type")&&S("button")},[E,$]),E}},13995:function(m,$,E){"use strict";E.d($,{g:function(){return u}});var _=E(2265);function t(m){return[m.screenX,m.screenY]}function u(){let m=(0,_.useRef)([-1,-1]);return{wasMoved($){let E=t($);return(m.current[0]!==E[0]||m.current[1]!==E[1])&&(m.current=E,!0)},update($){m.current=t($)}}}},50926:function(m,$,E){"use strict";E.d($,{B:function(){return F}});var _=E(2265),P=E(32600),S=E(54851);function F({container:m,accept:$,walk:E,enabled:T=!0}){let k=(0,_.useRef)($),R=(0,_.useRef)(E);(0,_.useEffect)(()=>{k.current=$,R.current=E},[$,E]),(0,P.e)(()=>{if(!m||!T)return;let $=(0,S.r)(m);if(!$)return;let E=k.current,_=R.current,P=Object.assign(m=>E(m),{acceptNode:E}),A=$.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,P,!1);for(;A.nextNode();)_(A.currentNode)},[m,T,k,R])}},53891:function(m,$,E){"use strict";function f(m){throw Error("Unexpected object: "+m)}E.d($,{T:function(){return P},d:function(){return x}});var _,P=((_=P||{})[_.First=0]="First",_[_.Previous=1]="Previous",_[_.Next=2]="Next",_[_.Last=3]="Last",_[_.Specific=4]="Specific",_[_.Nothing=5]="Nothing",_);function x(m,$){let E=$.resolveItems();if(E.length<=0)return null;let _=$.resolveActiveIndex(),P=null!=_?_:-1,S=(()=>{switch(m.focus){case 0:return E.findIndex(m=>!$.resolveDisabled(m));case 1:{let m=E.slice().reverse().findIndex((m,E,_)=>(-1===P||!(_.length-E-1>=P))&&!$.resolveDisabled(m));return -1===m?m:E.length-1-m}case 2:return E.findIndex((m,E)=>!(E<=P)&&!$.resolveDisabled(m));case 3:{let m=E.slice().reverse().findIndex(m=>!$.resolveDisabled(m));return -1===m?m:E.length-1-m}case 4:return E.findIndex(E=>$.resolveId(E)===m.id);case 5:return null;default:f(m)}})();return -1===S?_:S}},38110:function(m,$,E){"use strict";E.d($,{F:function(){return zod_t}});var _=E(61865),t=function(m,$,E){if(m&&"reportValidity"in m){var P=(0,_.U2)(E,$);m.setCustomValidity(P&&P.message||""),m.reportValidity()}},resolvers_i=function(m,$){var i=function(E){var _=$.fields[E];_&&_.ref&&"reportValidity"in _.ref?t(_.ref,E,m):_.refs&&_.refs.forEach(function($){return t($,E,m)})};for(var E in $.fields)i(E)},n=function(m,$){$.shouldUseNativeValidation&&resolvers_i(m,$);var E={};for(var P in m){var S=(0,_.U2)($.fields,P),T=Object.assign(m[P]||{},{ref:S&&S.ref});if(a($.names||Object.keys(m),P)){var k=Object.assign({},o((0,_.U2)(E,P)));(0,_.t8)(k,"root",T),(0,_.t8)(E,P,k)}else(0,_.t8)(E,P,T)}return E},o=function(m){return Array.isArray(m)?m.filter(Boolean):[]},a=function(m,$){return m.some(function(m){return m.startsWith($+".")})},zod_n=function(m,$){for(var E={};m.length;){var P=m[0],S=P.code,T=P.message,k=P.path.join(".");if(!E[k]){if("unionErrors"in P){var R=P.unionErrors[0].errors[0];E[k]={message:R.message,type:R.code}}else E[k]={message:T,type:S}}if("unionErrors"in P&&P.unionErrors.forEach(function($){return $.errors.forEach(function($){return m.push($)})}),$){var A=E[k].types,M=A&&A[P.code];E[k]=(0,_.KN)(k,$,E,S,M?[].concat(M,P.message):P.message)}m.shift()}return E},zod_t=function(m,$,E){return void 0===E&&(E={}),function(_,P,S){try{return Promise.resolve(function(P,T){try{var k=Promise.resolve(m["sync"===E.mode?"parse":"parseAsync"](_,$)).then(function(m){return S.shouldUseNativeValidation&&resolvers_i({},S),{errors:{},values:E.raw?_:m}})}catch(m){return T(m)}return k&&k.then?k.then(void 0,T):k}(0,function(m){if(null!=m.errors)return{values:{},errors:n(zod_n(m.errors,!S.shouldUseNativeValidation&&"all"===S.criteriaMode),S)};throw m}))}catch(m){return Promise.reject(m)}}}},10387:function(m,$,E){"use strict";let _,P;E.d($,{Aj:function(){return $fae977aafc393c5c$export$8e384432362ed0f0},CN:function(){return $fb18d541ea1ad717$export$ad991b66133851cf},IO:function(){return $11d87f3f76e88657$export$b21e0b124e224484},IQ:function(){return $3b62074eb05584b2$export$80ee6245ec4f29ec},KC:function(){return $14e0f24ef4ac5c92$export$ea39ec197993aef0},Lg:function(){return $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3},Mb:function(){return $14e0f24ef4ac5c92$export$5c333a116e949cdd},Mw:function(){return $11d87f3f76e88657$export$b4a036af3fc0b032},N9:function(){return $14e0f24ef4ac5c92$export$91b62ebf2ba703ee},Nm:function(){return $14e0f24ef4ac5c92$export$a5a3b454ada2268e},PA:function(){return $14e0f24ef4ac5c92$export$b2f4953d301981d5},Rn:function(){return $14e0f24ef4ac5c92$export$ccc1b2479e7dd654},Vf:function(){return $14e0f24ef4ac5c92$export$a2258d9c4118825c},WG:function(){return $11d87f3f76e88657$export$93522d1a439f3617},YR:function(){return $64244302c3013299$export$dd0bbc9b26defe37},ZB:function(){return $11d87f3f76e88657$export$d33f79e3ffc3dc83},aw:function(){return $35ea8db9cb2ccb90$export$99faa760c7908e4f},em:function(){return $14e0f24ef4ac5c92$export$f91e89d3d0406102},fW:function(){return $11d87f3f76e88657$export$84c95a83c799e074},iT:function(){return $14e0f24ef4ac5c92$export$aa8b41735afcabd2},ji:function(){return $14e0f24ef4ac5c92$export$2061056d06d7cdf7},jx:function(){return $14e0f24ef4ac5c92$export$5412ac11713b72ad},l7:function(){return $14e0f24ef4ac5c92$export$a75f2bff57811055},qp:function(){return $35ea8db9cb2ccb90$export$680ea196effce5f},u4:function(){return $fae977aafc393c5c$export$5adfdab05168c219},vV:function(){return $14e0f24ef4ac5c92$export$ef8b6d9133084f4e},xj:function(){return $14e0f24ef4ac5c92$export$a18c89cbd24170ff},zJ:function(){return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4},zO:function(){return $14e0f24ef4ac5c92$export$461939dd4422153},zk:function(){return $14e0f24ef4ac5c92$export$629b0a497aa65267}});var S=E(73140);function $2b4dce13dd5a17fa$export$842a2cf37af977e1(m,$){return m-$*Math.floor(m/$)}function $3b62074eb05584b2$export$f297eb839006d339(m,$,E,_){let P=($=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(m,$))-1,S=-2;return E<=2?S=0:$3b62074eb05584b2$export$553d7fa8e3805fc0($)&&(S=-1),1721425+365*P+Math.floor(P/4)-Math.floor(P/100)+Math.floor(P/400)+Math.floor((367*E-362)/12+S+_)}function $3b62074eb05584b2$export$553d7fa8e3805fc0(m){return m%4==0&&(m%100!=0||m%400==0)}function $3b62074eb05584b2$export$c36e0ecb2d4fa69d(m,$){return"BC"===m?1-$:$}function $3b62074eb05584b2$export$4475b7e617eb123c(m){let $="AD";return m<=0&&($="BC",m=1-m),[$,m]}let T={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};let $3b62074eb05584b2$export$80ee6245ec4f29ec=class $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(m){let $=m-1721426,E=Math.floor($/146097),_=$2b4dce13dd5a17fa$export$842a2cf37af977e1($,146097),P=Math.floor(_/36524),S=$2b4dce13dd5a17fa$export$842a2cf37af977e1(_,36524),T=Math.floor(S/1461),k=Math.floor($2b4dce13dd5a17fa$export$842a2cf37af977e1(S,1461)/365),[R,A]=$3b62074eb05584b2$export$4475b7e617eb123c(400*E+100*P+4*T+k+(4!==P&&4!==k?1:0)),M=m-$3b62074eb05584b2$export$f297eb839006d339(R,A,1,1),V=2;m<$3b62074eb05584b2$export$f297eb839006d339(R,A,3,1)?V=0:$3b62074eb05584b2$export$553d7fa8e3805fc0(A)&&(V=1);let N=Math.floor(((M+V)*12+373)/367),j=m-$3b62074eb05584b2$export$f297eb839006d339(R,A,N,1)+1;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(R,A,N,j)}toJulianDay(m){return $3b62074eb05584b2$export$f297eb839006d339(m.era,m.year,m.month,m.day)}getDaysInMonth(m){return T[$3b62074eb05584b2$export$553d7fa8e3805fc0(m.year)?"leapyear":"standard"][m.month-1]}getMonthsInYear(m){return 12}getDaysInYear(m){return $3b62074eb05584b2$export$553d7fa8e3805fc0(m.year)?366:365}getYearsInEra(m){return 9999}getEras(){return["BC","AD"]}isInverseEra(m){return"BC"===m.era}balanceDate(m){m.year<=0&&(m.era="BC"===m.era?"AD":"BC",m.year=1-m.year)}constructor(){this.identifier="gregory"}};let k={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function $14e0f24ef4ac5c92$export$ea39ec197993aef0(m,$){return $=$11d87f3f76e88657$export$b4a036af3fc0b032($,m.calendar),m.era===$.era&&m.year===$.year&&m.month===$.month&&m.day===$.day}function $14e0f24ef4ac5c92$export$a18c89cbd24170ff(m,$){return $=$11d87f3f76e88657$export$b4a036af3fc0b032($,m.calendar),m=$14e0f24ef4ac5c92$export$a5a3b454ada2268e(m),$=$14e0f24ef4ac5c92$export$a5a3b454ada2268e($),m.era===$.era&&m.year===$.year&&m.month===$.month}function $14e0f24ef4ac5c92$export$91b62ebf2ba703ee(m,$){return m.calendar.identifier===$.calendar.identifier&&m.era===$.era&&m.year===$.year&&m.month===$.month&&m.day===$.day}function $14e0f24ef4ac5c92$export$629b0a497aa65267(m,$){return $14e0f24ef4ac5c92$export$ea39ec197993aef0(m,$14e0f24ef4ac5c92$export$d0bdf45af03a6ea3($))}function $14e0f24ef4ac5c92$export$2061056d06d7cdf7(m,$){let E=Math.ceil(m.calendar.toJulianDay(m)+1-$14e0f24ef4ac5c92$var$getWeekStart($))%7;return E<0&&(E+=7),E}function $14e0f24ef4ac5c92$export$461939dd4422153(m){return $11d87f3f76e88657$export$1b96692a1ba042ac(Date.now(),m)}function $14e0f24ef4ac5c92$export$d0bdf45af03a6ea3(m){return $11d87f3f76e88657$export$93522d1a439f3617($14e0f24ef4ac5c92$export$461939dd4422153(m))}function $14e0f24ef4ac5c92$export$68781ddf31c0090f(m,$){return m.calendar.toJulianDay(m)-$.calendar.toJulianDay($)}function $14e0f24ef4ac5c92$var$timeToMs(m){return 36e5*m.hour+6e4*m.minute+1e3*m.second+m.millisecond}let R=null;function $14e0f24ef4ac5c92$export$aa8b41735afcabd2(){return null==R&&(R=new Intl.DateTimeFormat().resolvedOptions().timeZone),R}function $14e0f24ef4ac5c92$export$a5a3b454ada2268e(m){return m.subtract({days:m.day-1})}function $14e0f24ef4ac5c92$export$a2258d9c4118825c(m){return m.add({days:m.calendar.getDaysInMonth(m)-m.day})}function $14e0f24ef4ac5c92$export$f91e89d3d0406102(m){return $14e0f24ef4ac5c92$export$a5a3b454ada2268e(m.subtract({months:m.month-1}))}function $14e0f24ef4ac5c92$export$5412ac11713b72ad(m){return m.calendar.getMinimumMonthInYear?m.calendar.getMinimumMonthInYear(m):1}function $14e0f24ef4ac5c92$export$b2f4953d301981d5(m){return m.calendar.getMinimumDayInMonth?m.calendar.getMinimumDayInMonth(m):1}function $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(m,$){let E=$14e0f24ef4ac5c92$export$2061056d06d7cdf7(m,$);return m.subtract({days:E})}function $14e0f24ef4ac5c92$export$ef8b6d9133084f4e(m,$){return $14e0f24ef4ac5c92$export$42c81a444fbfb5d4(m,$).add({days:6})}let A=new Map;function $14e0f24ef4ac5c92$var$getRegion(m){if(Intl.Locale){let $=A.get(m);return $||($=new Intl.Locale(m).maximize().region,A.set(m,$)),$}let $=m.split("-")[1];return"u"===$?null:$}function $14e0f24ef4ac5c92$var$getWeekStart(m){return k[$14e0f24ef4ac5c92$var$getRegion(m)]||0}function $14e0f24ef4ac5c92$export$ccc1b2479e7dd654(m,$){let E=m.calendar.getDaysInMonth(m);return Math.ceil(($14e0f24ef4ac5c92$export$2061056d06d7cdf7($14e0f24ef4ac5c92$export$a5a3b454ada2268e(m),$)+E)/7)}function $14e0f24ef4ac5c92$export$5c333a116e949cdd(m,$){return m&&$?0>=m.compare($)?m:$:m||$}function $14e0f24ef4ac5c92$export$a75f2bff57811055(m,$){return m&&$?m.compare($)>=0?m:$:m||$}function $11d87f3f76e88657$export$bd4fb2bc8bb06fb(m){return $11d87f3f76e88657$var$epochFromParts($3b62074eb05584b2$export$c36e0ecb2d4fa69d((m=$11d87f3f76e88657$export$b4a036af3fc0b032(m,new $3b62074eb05584b2$export$80ee6245ec4f29ec)).era,m.year),m.month,m.day,m.hour,m.minute,m.second,m.millisecond)}function $11d87f3f76e88657$var$epochFromParts(m,$,E,_,P,S,T){let k=new Date;return k.setUTCHours(_,P,S,T),k.setUTCFullYear(m,$-1,E),k.getTime()}function $11d87f3f76e88657$export$59c99f3515d3493f(m,$){if("UTC"===$)return 0;if(m>0&&$===$14e0f24ef4ac5c92$export$aa8b41735afcabd2())return -6e4*new Date(m).getTimezoneOffset();let{year:E,month:_,day:P,hour:S,minute:T,second:k}=$11d87f3f76e88657$var$getTimeZoneParts(m,$);return $11d87f3f76e88657$var$epochFromParts(E,_,P,S,T,k,0)-1e3*Math.floor(m/1e3)}let M=new Map;function $11d87f3f76e88657$var$getTimeZoneParts(m,$){let E=M.get($);E||(E=new Intl.DateTimeFormat("en-US",{timeZone:$,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),M.set($,E));let _=E.formatToParts(new Date(m)),P={};for(let m of _)"literal"!==m.type&&(P[m.type]=m.value);return{year:"BC"===P.era||"B"===P.era?-P.year+1:+P.year,month:+P.month,day:+P.day,hour:"24"===P.hour?0:+P.hour,minute:+P.minute,second:+P.second}}function $11d87f3f76e88657$var$getValidWallTimes(m,$,E,_){return(E===_?[E]:[E,_]).filter(E=>$11d87f3f76e88657$var$isValidWallTime(m,$,E))}function $11d87f3f76e88657$var$isValidWallTime(m,$,E){let _=$11d87f3f76e88657$var$getTimeZoneParts(E,$);return m.year===_.year&&m.month===_.month&&m.day===_.day&&m.hour===_.hour&&m.minute===_.minute&&m.second===_.second}function $11d87f3f76e88657$export$5107c82f94518f5c(m,$,E="compatible"){let _=$11d87f3f76e88657$export$b21e0b124e224484(m);if("UTC"===$)return $11d87f3f76e88657$export$bd4fb2bc8bb06fb(_);if($===$14e0f24ef4ac5c92$export$aa8b41735afcabd2()&&"compatible"===E){_=$11d87f3f76e88657$export$b4a036af3fc0b032(_,new $3b62074eb05584b2$export$80ee6245ec4f29ec);let m=new Date,$=$3b62074eb05584b2$export$c36e0ecb2d4fa69d(_.era,_.year);return m.setFullYear($,_.month-1,_.day),m.setHours(_.hour,_.minute,_.second,_.millisecond),m.getTime()}let P=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(_),S=$11d87f3f76e88657$export$59c99f3515d3493f(P-864e5,$),T=$11d87f3f76e88657$export$59c99f3515d3493f(P+864e5,$),k=$11d87f3f76e88657$var$getValidWallTimes(_,$,P-S,P-T);if(1===k.length)return k[0];if(k.length>1)switch(E){case"compatible":case"earlier":return k[0];case"later":return k[k.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(E){case"earlier":return Math.min(P-S,P-T);case"compatible":case"later":return Math.max(P-S,P-T);case"reject":throw RangeError("No such absolute time found")}}function $11d87f3f76e88657$export$e67a095c620b86fe(m,$,E="compatible"){return new Date($11d87f3f76e88657$export$5107c82f94518f5c(m,$,E))}function $11d87f3f76e88657$export$1b96692a1ba042ac(m,$){let E=$11d87f3f76e88657$export$59c99f3515d3493f(m,$),_=new Date(m+E);return new $35ea8db9cb2ccb90$export$d3b7288e7994edea(_.getUTCFullYear(),_.getUTCMonth()+1,_.getUTCDate(),$,E,_.getUTCHours(),_.getUTCMinutes(),_.getUTCSeconds(),_.getUTCMilliseconds())}function $11d87f3f76e88657$export$93522d1a439f3617(m){return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(m.calendar,m.era,m.year,m.month,m.day)}function $11d87f3f76e88657$export$b21e0b124e224484(m,$){let E=0,_=0,P=0,S=0;if("timeZone"in m)({hour:E,minute:_,second:P,millisecond:S}=m);else if("hour"in m&&!$)return m;return $&&({hour:E,minute:_,second:P,millisecond:S}=$),new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(m.calendar,m.era,m.year,m.month,m.day,E,_,P,S)}function $11d87f3f76e88657$export$d33f79e3ffc3dc83(m){return new $35ea8db9cb2ccb90$export$680ea196effce5f(m.hour,m.minute,m.second,m.millisecond)}function $11d87f3f76e88657$export$b4a036af3fc0b032(m,$){if(m.calendar.identifier===$.identifier)return m;let E=$.fromJulianDay(m.calendar.toJulianDay(m)),_=m.copy();return _.calendar=$,_.era=E.era,_.year=E.year,_.month=E.month,_.day=E.day,$735220c2d4774dd3$export$c4e2ecac49351ef2(_),_}function $11d87f3f76e88657$export$84c95a83c799e074(m,$,E){return m instanceof $35ea8db9cb2ccb90$export$d3b7288e7994edea?m.timeZone===$?m:$11d87f3f76e88657$export$538b00033cc11c75(m,$):$11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$5107c82f94518f5c(m,$,E),$)}function $11d87f3f76e88657$export$83aac07b4c37b25(m){return new Date($11d87f3f76e88657$export$bd4fb2bc8bb06fb(m)-m.offset)}function $11d87f3f76e88657$export$538b00033cc11c75(m,$){return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$bd4fb2bc8bb06fb(m)-m.offset,$),m.calendar)}function $735220c2d4774dd3$export$e16d8520af44a096(m,$){let E=m.copy(),_="hour"in E?$735220c2d4774dd3$var$addTimeFields(E,$):0;$735220c2d4774dd3$var$addYears(E,$.years||0),E.calendar.balanceYearMonth&&E.calendar.balanceYearMonth(E,m),E.month+=$.months||0,$735220c2d4774dd3$var$balanceYearMonth(E),$735220c2d4774dd3$var$constrainMonthDay(E),E.day+=7*($.weeks||0),E.day+=$.days||0,E.day+=_,$735220c2d4774dd3$var$balanceDay(E),E.calendar.balanceDate&&E.calendar.balanceDate(E),E.year<1&&(E.year=1,E.month=1,E.day=1);let P=E.calendar.getYearsInEra(E);if(E.year>P){var S,T;let m=null===(T=(S=E.calendar).isInverseEra)||void 0===T?void 0:T.call(S,E);E.year=P,E.month=m?1:E.calendar.getMonthsInYear(E),E.day=m?1:E.calendar.getDaysInMonth(E)}E.month<1&&(E.month=1,E.day=1);let k=E.calendar.getMonthsInYear(E);return E.month>k&&(E.month=k,E.day=E.calendar.getDaysInMonth(E)),E.day=Math.max(1,Math.min(E.calendar.getDaysInMonth(E),E.day)),E}function $735220c2d4774dd3$var$addYears(m,$){var E,_;(null===(_=(E=m.calendar).isInverseEra)||void 0===_?void 0:_.call(E,m))&&($=-$),m.year+=$}function $735220c2d4774dd3$var$balanceYearMonth(m){for(;m.month<1;)$735220c2d4774dd3$var$addYears(m,-1),m.month+=m.calendar.getMonthsInYear(m);let $=0;for(;m.month>($=m.calendar.getMonthsInYear(m));)m.month-=$,$735220c2d4774dd3$var$addYears(m,1)}function $735220c2d4774dd3$var$balanceDay(m){for(;m.day<1;)m.month--,$735220c2d4774dd3$var$balanceYearMonth(m),m.day+=m.calendar.getDaysInMonth(m);for(;m.day>m.calendar.getDaysInMonth(m);)m.day-=m.calendar.getDaysInMonth(m),m.month++,$735220c2d4774dd3$var$balanceYearMonth(m)}function $735220c2d4774dd3$var$constrainMonthDay(m){m.month=Math.max(1,Math.min(m.calendar.getMonthsInYear(m),m.month)),m.day=Math.max(1,Math.min(m.calendar.getDaysInMonth(m),m.day))}function $735220c2d4774dd3$export$c4e2ecac49351ef2(m){m.calendar.constrainDate&&m.calendar.constrainDate(m),m.year=Math.max(1,Math.min(m.calendar.getYearsInEra(m),m.year)),$735220c2d4774dd3$var$constrainMonthDay(m)}function $735220c2d4774dd3$export$3e2544e88a25bff8(m){let $={};for(let E in m)"number"==typeof m[E]&&($[E]=-m[E]);return $}function $735220c2d4774dd3$export$adaa4cf7ef1b65be(m,$){let E=m.copy();return null!=$.era&&(E.era=$.era),null!=$.year&&(E.year=$.year),null!=$.month&&(E.month=$.month),null!=$.day&&(E.day=$.day),$735220c2d4774dd3$export$c4e2ecac49351ef2(E),E}function $735220c2d4774dd3$export$e5d5e1c1822b6e56(m,$){let E=m.copy();return null!=$.hour&&(E.hour=$.hour),null!=$.minute&&(E.minute=$.minute),null!=$.second&&(E.second=$.second),null!=$.millisecond&&(E.millisecond=$.millisecond),$735220c2d4774dd3$export$7555de1e070510cb(E),E}function $735220c2d4774dd3$var$balanceTime(m){m.second+=Math.floor(m.millisecond/1e3),m.millisecond=$735220c2d4774dd3$var$nonNegativeMod(m.millisecond,1e3),m.minute+=Math.floor(m.second/60),m.second=$735220c2d4774dd3$var$nonNegativeMod(m.second,60),m.hour+=Math.floor(m.minute/60),m.minute=$735220c2d4774dd3$var$nonNegativeMod(m.minute,60);let $=Math.floor(m.hour/24);return m.hour=$735220c2d4774dd3$var$nonNegativeMod(m.hour,24),$}function $735220c2d4774dd3$export$7555de1e070510cb(m){m.millisecond=Math.max(0,Math.min(m.millisecond,1e3)),m.second=Math.max(0,Math.min(m.second,59)),m.minute=Math.max(0,Math.min(m.minute,59)),m.hour=Math.max(0,Math.min(m.hour,23))}function $735220c2d4774dd3$var$nonNegativeMod(m,$){let E=m%$;return E<0&&(E+=$),E}function $735220c2d4774dd3$var$addTimeFields(m,$){return m.hour+=$.hours||0,m.minute+=$.minutes||0,m.second+=$.seconds||0,m.millisecond+=$.milliseconds||0,$735220c2d4774dd3$var$balanceTime(m)}function $735220c2d4774dd3$export$7ed87b6bc2506470(m,$){let E=m.copy();return $735220c2d4774dd3$var$addTimeFields(E,$),E}function $735220c2d4774dd3$export$fe34d3a381cd7501(m,$){return $735220c2d4774dd3$export$7ed87b6bc2506470(m,$735220c2d4774dd3$export$3e2544e88a25bff8($))}function $735220c2d4774dd3$export$d52ced6badfb9a4c(m,$,E,_){let P=m.copy();switch($){case"era":{let $=m.calendar.getEras(),S=$.indexOf(m.era);if(S<0)throw Error("Invalid era: "+m.era);S=$735220c2d4774dd3$var$cycleValue(S,E,0,$.length-1,null==_?void 0:_.round),P.era=$[S],$735220c2d4774dd3$export$c4e2ecac49351ef2(P);break}case"year":var S,T;(null===(T=(S=P.calendar).isInverseEra)||void 0===T?void 0:T.call(S,P))&&(E=-E),P.year=$735220c2d4774dd3$var$cycleValue(m.year,E,-1/0,9999,null==_?void 0:_.round),P.year===-1/0&&(P.year=1),P.calendar.balanceYearMonth&&P.calendar.balanceYearMonth(P,m);break;case"month":P.month=$735220c2d4774dd3$var$cycleValue(m.month,E,1,m.calendar.getMonthsInYear(m),null==_?void 0:_.round);break;case"day":P.day=$735220c2d4774dd3$var$cycleValue(m.day,E,1,m.calendar.getDaysInMonth(m),null==_?void 0:_.round);break;default:throw Error("Unsupported field "+$)}return m.calendar.balanceDate&&m.calendar.balanceDate(P),$735220c2d4774dd3$export$c4e2ecac49351ef2(P),P}function $735220c2d4774dd3$export$dd02b3e0007dfe28(m,$,E,_){let P=m.copy();switch($){case"hour":{let $=m.hour,S=0,T=23;if((null==_?void 0:_.hourCycle)===12){let m=$>=12;S=m?12:0,T=m?23:11}P.hour=$735220c2d4774dd3$var$cycleValue($,E,S,T,null==_?void 0:_.round);break}case"minute":P.minute=$735220c2d4774dd3$var$cycleValue(m.minute,E,0,59,null==_?void 0:_.round);break;case"second":P.second=$735220c2d4774dd3$var$cycleValue(m.second,E,0,59,null==_?void 0:_.round);break;case"millisecond":P.millisecond=$735220c2d4774dd3$var$cycleValue(m.millisecond,E,0,999,null==_?void 0:_.round);break;default:throw Error("Unsupported field "+$)}return P}function $735220c2d4774dd3$var$cycleValue(m,$,E,_,P=!1){if(P){(m+=Math.sign($))0?Math.ceil(m/P)*P:Math.floor(m/P)*P)>_&&(m=E)}else(m+=$)_&&(m=E+(m-_-1));return m}function $735220c2d4774dd3$export$96b1d28349274637(m,$){let E;return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac((null!=$.years&&0!==$.years||null!=$.months&&0!==$.months||null!=$.weeks&&0!==$.weeks||null!=$.days&&0!==$.days?$11d87f3f76e88657$export$5107c82f94518f5c($735220c2d4774dd3$export$e16d8520af44a096($11d87f3f76e88657$export$b21e0b124e224484(m),{years:$.years,months:$.months,weeks:$.weeks,days:$.days}),m.timeZone):$11d87f3f76e88657$export$bd4fb2bc8bb06fb(m)-m.offset)+(($.milliseconds||0)+1e3*($.seconds||0)+6e4*($.minutes||0)+36e5*($.hours||0)),m.timeZone),m.calendar)}function $735220c2d4774dd3$export$6814caac34ca03c7(m,$){return $735220c2d4774dd3$export$96b1d28349274637(m,$735220c2d4774dd3$export$3e2544e88a25bff8($))}function $735220c2d4774dd3$export$9a297d111fc86b79(m,$,E,_){switch($){case"hour":{let $=0,P=23;if((null==_?void 0:_.hourCycle)===12){let E=m.hour>=12;$=E?12:0,P=E?23:11}let S=$11d87f3f76e88657$export$b21e0b124e224484(m),T=$11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(S,{hour:$}),new $3b62074eb05584b2$export$80ee6245ec4f29ec),k=[$11d87f3f76e88657$export$5107c82f94518f5c(T,m.timeZone,"earlier"),$11d87f3f76e88657$export$5107c82f94518f5c(T,m.timeZone,"later")].filter($=>$11d87f3f76e88657$export$1b96692a1ba042ac($,m.timeZone).day===T.day)[0],R=$11d87f3f76e88657$export$b4a036af3fc0b032($735220c2d4774dd3$export$e5d5e1c1822b6e56(S,{hour:P}),new $3b62074eb05584b2$export$80ee6245ec4f29ec),A=[$11d87f3f76e88657$export$5107c82f94518f5c(R,m.timeZone,"earlier"),$11d87f3f76e88657$export$5107c82f94518f5c(R,m.timeZone,"later")].filter($=>$11d87f3f76e88657$export$1b96692a1ba042ac($,m.timeZone).day===R.day).pop(),M=$11d87f3f76e88657$export$bd4fb2bc8bb06fb(m)-m.offset,V=Math.floor(M/36e5),N=M%36e5;return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac(M=36e5*$735220c2d4774dd3$var$cycleValue(V,E,Math.floor(k/36e5),Math.floor(A/36e5),null==_?void 0:_.round)+N,m.timeZone),m.calendar)}case"minute":case"second":case"millisecond":return $735220c2d4774dd3$export$dd02b3e0007dfe28(m,$,E,_);case"era":case"year":case"month":case"day":return $11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$5107c82f94518f5c($735220c2d4774dd3$export$d52ced6badfb9a4c($11d87f3f76e88657$export$b21e0b124e224484(m),$,E,_),m.timeZone),m.timeZone),m.calendar);default:throw Error("Unsupported field "+$)}}function $735220c2d4774dd3$export$31b5430eb18be4f8(m,$,E){let _=$11d87f3f76e88657$export$b21e0b124e224484(m),P=$735220c2d4774dd3$export$e5d5e1c1822b6e56($735220c2d4774dd3$export$adaa4cf7ef1b65be(_,$),$);return 0===P.compare(_)?m:$11d87f3f76e88657$export$b4a036af3fc0b032($11d87f3f76e88657$export$1b96692a1ba042ac($11d87f3f76e88657$export$5107c82f94518f5c(P,m.timeZone,E),m.timeZone),m.calendar)}let V=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function $fae977aafc393c5c$export$5adfdab05168c219(m,$){var E;let _=m.match(V);if(!_)throw Error("Invalid ISO 8601 date time string: "+m);let P=new $35ea8db9cb2ccb90$export$d3b7288e7994edea($fae977aafc393c5c$var$parseNumber(_[1],1,9999),$fae977aafc393c5c$var$parseNumber(_[2],1,12),1,$,0,_[4]?$fae977aafc393c5c$var$parseNumber(_[4],0,23):0,_[5]?$fae977aafc393c5c$var$parseNumber(_[5],0,59):0,_[6]?$fae977aafc393c5c$var$parseNumber(_[6],0,59):0,_[7]?1e3*$fae977aafc393c5c$var$parseNumber(_[7],0,1/0):0);return P.day=$fae977aafc393c5c$var$parseNumber(_[3],0,P.calendar.getDaysInMonth(P)),_[8]&&(P.offset=36e5*$fae977aafc393c5c$var$parseNumber(_[8],-23,23)+6e4*$fae977aafc393c5c$var$parseNumber(null!==(E=_[9])&&void 0!==E?E:"0",0,59)),$11d87f3f76e88657$export$538b00033cc11c75(P,$)}function $fae977aafc393c5c$export$8e384432362ed0f0(m){return $fae977aafc393c5c$export$5adfdab05168c219(m,$14e0f24ef4ac5c92$export$aa8b41735afcabd2())}function $fae977aafc393c5c$var$parseNumber(m,$,E){let _=Number(m);if(_<$||_>E)throw RangeError(`Value out of range: ${$} <= ${_} <= ${E}`);return _}function $fae977aafc393c5c$export$f59dee82248f5ad4(m){return`${String(m.hour).padStart(2,"0")}:${String(m.minute).padStart(2,"0")}:${String(m.second).padStart(2,"0")}${m.millisecond?String(m.millisecond/1e3).slice(1):""}`}function $fae977aafc393c5c$export$60dfd74aa96791bd(m){let $=$11d87f3f76e88657$export$b4a036af3fc0b032(m,new $3b62074eb05584b2$export$80ee6245ec4f29ec);return`${String($.year).padStart(4,"0")}-${String($.month).padStart(2,"0")}-${String($.day).padStart(2,"0")}`}function $fae977aafc393c5c$export$4223de14708adc63(m){return`${$fae977aafc393c5c$export$60dfd74aa96791bd(m)}T${$fae977aafc393c5c$export$f59dee82248f5ad4(m)}`}function $fae977aafc393c5c$var$offsetToString(m){let $=0>Math.sign(m)?"-":"+",E=Math.floor((m=Math.abs(m))/36e5),_=m%36e5/6e4;return`${$}${String(E).padStart(2,"0")}:${String(_).padStart(2,"0")}`}function $fae977aafc393c5c$export$bf79f1ebf4b18792(m){return`${$fae977aafc393c5c$export$4223de14708adc63(m)}${$fae977aafc393c5c$var$offsetToString(m.offset)}[${m.timeZone}]`}function $35ea8db9cb2ccb90$var$shiftArgs(m){let $,E="object"==typeof m[0]?m.shift():new $3b62074eb05584b2$export$80ee6245ec4f29ec;if("string"==typeof m[0])$=m.shift();else{let m=E.getEras();$=m[m.length-1]}return[E,$,m.shift(),m.shift(),m.shift()]}var N=new WeakMap;let $35ea8db9cb2ccb90$export$99faa760c7908e4f=class $35ea8db9cb2ccb90$export$99faa760c7908e4f{copy(){return this.era?new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar,this.era,this.year,this.month,this.day):new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this.calendar,this.year,this.month,this.day)}add(m){return $735220c2d4774dd3$export$e16d8520af44a096(this,m)}subtract(m){return $735220c2d4774dd3$export$e16d8520af44a096(this,$735220c2d4774dd3$export$3e2544e88a25bff8(m))}set(m){return $735220c2d4774dd3$export$adaa4cf7ef1b65be(this,m)}cycle(m,$,E){return $735220c2d4774dd3$export$d52ced6badfb9a4c(this,m,$,E)}toDate(m){return $11d87f3f76e88657$export$e67a095c620b86fe(this,m)}toString(){return $fae977aafc393c5c$export$60dfd74aa96791bd(this)}compare(m){return $14e0f24ef4ac5c92$export$68781ddf31c0090f(this,m)}constructor(...m){(0,S._)(this,N,{writable:!0,value:void 0});let[$,E,_,P,T]=$35ea8db9cb2ccb90$var$shiftArgs(m);this.calendar=$,this.era=E,this.year=_,this.month=P,this.day=T,$735220c2d4774dd3$export$c4e2ecac49351ef2(this)}};var j=new WeakMap;let $35ea8db9cb2ccb90$export$680ea196effce5f=class $35ea8db9cb2ccb90$export$680ea196effce5f{copy(){return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour,this.minute,this.second,this.millisecond)}add(m){return $735220c2d4774dd3$export$7ed87b6bc2506470(this,m)}subtract(m){return $735220c2d4774dd3$export$fe34d3a381cd7501(this,m)}set(m){return $735220c2d4774dd3$export$e5d5e1c1822b6e56(this,m)}cycle(m,$,E){return $735220c2d4774dd3$export$dd02b3e0007dfe28(this,m,$,E)}toString(){return $fae977aafc393c5c$export$f59dee82248f5ad4(this)}compare(m){return $14e0f24ef4ac5c92$var$timeToMs(this)-$14e0f24ef4ac5c92$var$timeToMs(m)}constructor(m=0,$=0,E=0,_=0){(0,S._)(this,j,{writable:!0,value:void 0}),this.hour=m,this.minute=$,this.second=E,this.millisecond=_,$735220c2d4774dd3$export$7555de1e070510cb(this)}};var B=new WeakMap;let $35ea8db9cb2ccb90$export$ca871e8dbb80966f=class $35ea8db9cb2ccb90$export$ca871e8dbb80966f{copy(){return this.era?new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new $35ea8db9cb2ccb90$export$ca871e8dbb80966f(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(m){return $735220c2d4774dd3$export$e16d8520af44a096(this,m)}subtract(m){return $735220c2d4774dd3$export$e16d8520af44a096(this,$735220c2d4774dd3$export$3e2544e88a25bff8(m))}set(m){return $735220c2d4774dd3$export$adaa4cf7ef1b65be($735220c2d4774dd3$export$e5d5e1c1822b6e56(this,m),m)}cycle(m,$,E){switch(m){case"era":case"year":case"month":case"day":return $735220c2d4774dd3$export$d52ced6badfb9a4c(this,m,$,E);default:return $735220c2d4774dd3$export$dd02b3e0007dfe28(this,m,$,E)}}toDate(m,$){return $11d87f3f76e88657$export$e67a095c620b86fe(this,m,$)}toString(){return $fae977aafc393c5c$export$4223de14708adc63(this)}compare(m){let $=$14e0f24ef4ac5c92$export$68781ddf31c0090f(this,m);if(0===$){var E;return E=$11d87f3f76e88657$export$b21e0b124e224484(m),$14e0f24ef4ac5c92$var$timeToMs(this)-$14e0f24ef4ac5c92$var$timeToMs(E)}return $}constructor(...m){(0,S._)(this,B,{writable:!0,value:void 0});let[$,E,_,P,T]=$35ea8db9cb2ccb90$var$shiftArgs(m);this.calendar=$,this.era=E,this.year=_,this.month=P,this.day=T,this.hour=m.shift()||0,this.minute=m.shift()||0,this.second=m.shift()||0,this.millisecond=m.shift()||0,$735220c2d4774dd3$export$c4e2ecac49351ef2(this)}};var z=new WeakMap;let $35ea8db9cb2ccb90$export$d3b7288e7994edea=class $35ea8db9cb2ccb90$export$d3b7288e7994edea{copy(){return this.era?new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new $35ea8db9cb2ccb90$export$d3b7288e7994edea(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(m){return $735220c2d4774dd3$export$96b1d28349274637(this,m)}subtract(m){return $735220c2d4774dd3$export$6814caac34ca03c7(this,m)}set(m,$){return $735220c2d4774dd3$export$31b5430eb18be4f8(this,m,$)}cycle(m,$,E){return $735220c2d4774dd3$export$9a297d111fc86b79(this,m,$,E)}toDate(){return $11d87f3f76e88657$export$83aac07b4c37b25(this)}toString(){return $fae977aafc393c5c$export$bf79f1ebf4b18792(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(m){return this.toDate().getTime()-$11d87f3f76e88657$export$84c95a83c799e074(m,this.timeZone).toDate().getTime()}constructor(...m){(0,S._)(this,z,{writable:!0,value:void 0});let[$,E,_,P,T]=$35ea8db9cb2ccb90$var$shiftArgs(m),k=m.shift(),R=m.shift();this.calendar=$,this.era=E,this.year=_,this.month=P,this.day=T,this.timeZone=k,this.offset=R,this.hour=m.shift()||0,this.minute=m.shift()||0,this.second=m.shift()||0,this.millisecond=m.shift()||0,$735220c2d4774dd3$export$c4e2ecac49351ef2(this)}};let W=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],H=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],G=[1867,1911,1925,1988,2018],J=["meiji","taisho","showa","heisei","reiwa"];function $62225008020f0a13$var$findEraFromGregorianDate(m){let $=W.findIndex(([$,E,_])=>m.year<$||m.year===$&&m.month=0){let[,E,_]=W[$];m.month=Math.max(E,m.month),m.month===E&&(m.day=Math.max(_,m.day))}}getEras(){return J}getYearsInEra(m){let $=J.indexOf(m.era),E=W[$],_=W[$+1];if(null==_)return 9999-E[0]+1;let P=_[0]-E[0];return(m.month<_[1]||m.month===_[1]&&m.day<_[2])&&P++,P}getDaysInMonth(m){return super.getDaysInMonth($62225008020f0a13$var$toGregorian(m))}getMinimumMonthInYear(m){let $=$62225008020f0a13$var$getMinimums(m);return $?$[1]:1}getMinimumDayInMonth(m){let $=$62225008020f0a13$var$getMinimums(m);return $&&m.month===$[1]?$[2]:1}constructor(...m){super(...m),this.identifier="japanese"}};function $62225008020f0a13$var$getMinimums(m){if(1===m.year)return W[J.indexOf(m.era)]}let $8d73d47422ca7302$export$42d20a78301dee44=class $8d73d47422ca7302$export$42d20a78301dee44 extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(m){let $=super.fromJulianDay(m);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,$3b62074eb05584b2$export$c36e0ecb2d4fa69d($.era,$.year)- -543,$.month,$.day)}toJulianDay(m){return super.toJulianDay($8d73d47422ca7302$var$toGregorian(m))}getEras(){return["BE"]}getDaysInMonth(m){return super.getDaysInMonth($8d73d47422ca7302$var$toGregorian(m))}balanceDate(){}constructor(...m){super(...m),this.identifier="buddhist"}};function $8d73d47422ca7302$var$toGregorian(m){let[$,E]=$3b62074eb05584b2$export$4475b7e617eb123c(m.year+-543);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f($,E,m.month,m.day)}function $5f31bd6f0c8940b2$var$gregorianYear(m){return"minguo"===m.era?m.year+1911:1-m.year+1911}function $5f31bd6f0c8940b2$var$gregorianToTaiwan(m){let $=m-1911;return $>0?["minguo",$]:["before_minguo",1-$]}let $5f31bd6f0c8940b2$export$65e01080afcb0799=class $5f31bd6f0c8940b2$export$65e01080afcb0799 extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(m){let $=super.fromJulianDay(m),[E,_]=$5f31bd6f0c8940b2$var$gregorianToTaiwan($3b62074eb05584b2$export$c36e0ecb2d4fa69d($.era,$.year));return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,E,_,$.month,$.day)}toJulianDay(m){return super.toJulianDay($5f31bd6f0c8940b2$var$toGregorian(m))}getEras(){return["before_minguo","minguo"]}balanceDate(m){let[$,E]=$5f31bd6f0c8940b2$var$gregorianToTaiwan($5f31bd6f0c8940b2$var$gregorianYear(m));m.era=$,m.year=E}isInverseEra(m){return"before_minguo"===m.era}getDaysInMonth(m){return super.getDaysInMonth($5f31bd6f0c8940b2$var$toGregorian(m))}getYearsInEra(m){return"before_minguo"===m.era?9999:8088}constructor(...m){super(...m),this.identifier="roc"}};function $5f31bd6f0c8940b2$var$toGregorian(m){let[$,E]=$3b62074eb05584b2$export$4475b7e617eb123c($5f31bd6f0c8940b2$var$gregorianYear(m));return new $35ea8db9cb2ccb90$export$99faa760c7908e4f($,E,m.month,m.day)}function $f3ed2e4472ae7e25$var$isLeapYear(m){let $=$2b4dce13dd5a17fa$export$842a2cf37af977e1(m>0?m-474:m-473,2820)+474;return 31>$2b4dce13dd5a17fa$export$842a2cf37af977e1(($+38)*31,128)}function $f3ed2e4472ae7e25$var$persianToJulianDay(m,$,E){let _=m>0?m-474:m-473,P=$2b4dce13dd5a17fa$export$842a2cf37af977e1(_,2820)+474;return 1948320+1029983*Math.floor(_/2820)+365*(P-1)+Math.floor((31*P-5)/128)+($<=7?31*($-1):30*($-1)+6)+E}let $f3ed2e4472ae7e25$export$37fccdbfd14c5939=class $f3ed2e4472ae7e25$export$37fccdbfd14c5939{fromJulianDay(m){let $=m-$f3ed2e4472ae7e25$var$persianToJulianDay(475,1,1),E=Math.floor($/1029983),_=$2b4dce13dd5a17fa$export$842a2cf37af977e1($,1029983),P=474+2820*E+(1029982===_?2820:Math.floor((128*_+46878)/46751));P<=0&&P--;let S=m-$f3ed2e4472ae7e25$var$persianToJulianDay(P,1,1)+1,T=S<=186?Math.ceil(S/31):Math.ceil((S-6)/31),k=m-$f3ed2e4472ae7e25$var$persianToJulianDay(P,T,1)+1;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,P,T,k)}toJulianDay(m){return $f3ed2e4472ae7e25$var$persianToJulianDay(m.year,m.month,m.day)}getMonthsInYear(){return 12}getDaysInMonth(m){return m.month<=6?31:m.month<=11?30:$f3ed2e4472ae7e25$var$isLeapYear(m.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}};let $82c358003bdda0a8$export$39f31c639fa15726=class $82c358003bdda0a8$export$39f31c639fa15726 extends $3b62074eb05584b2$export$80ee6245ec4f29ec{fromJulianDay(m){let $,E,_,P=super.fromJulianDay(m),S=P.year-78,T=m-$3b62074eb05584b2$export$f297eb839006d339(P.era,P.year,1,1);if(T<80?(S--,T+=($=$3b62074eb05584b2$export$553d7fa8e3805fc0(P.year-1)?31:30)+155+90+10):($=$3b62074eb05584b2$export$553d7fa8e3805fc0(P.year)?31:30,T-=80),T<$)E=1,_=T+1;else{let m=T-$;m<155?(E=Math.floor(m/31)+2,_=m%31+1):(m-=155,E=Math.floor(m/30)+7,_=m%30+1)}return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,S,E,_)}toJulianDay(m){let $,E;let[_,P]=$3b62074eb05584b2$export$4475b7e617eb123c(m.year+78);return($3b62074eb05584b2$export$553d7fa8e3805fc0(P)?($=31,E=$3b62074eb05584b2$export$f297eb839006d339(_,P,3,21)):($=30,E=$3b62074eb05584b2$export$f297eb839006d339(_,P,3,22)),1===m.month)?E+m.day-1:(E+=$+31*Math.min(m.month-2,5),m.month>=8&&(E+=(m.month-7)*30),E+=m.day-1)}getDaysInMonth(m){return 1===m.month&&$3b62074eb05584b2$export$553d7fa8e3805fc0(m.year+78)||m.month>=2&&m.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...m){super(...m),this.identifier="indian"}};function $f2f3e0e3a817edbd$var$islamicToJulianDay(m,$,E,_){return _+Math.ceil(29.5*(E-1))+($-1)*354+Math.floor((3+11*$)/30)+m-1}function $f2f3e0e3a817edbd$var$julianDayToIslamic(m,$,E){let _=Math.floor((30*(E-$)+10646)/10631),P=Math.min(12,Math.ceil((E-(29+$f2f3e0e3a817edbd$var$islamicToJulianDay($,_,1,1)))/29.5)+1),S=E-$f2f3e0e3a817edbd$var$islamicToJulianDay($,_,P,1)+1;return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(m,_,P,S)}function $f2f3e0e3a817edbd$var$isLeapYear(m){return(14+11*m)%30<11}let $f2f3e0e3a817edbd$export$2066795aadd37bfc=class $f2f3e0e3a817edbd$export$2066795aadd37bfc{fromJulianDay(m){return $f2f3e0e3a817edbd$var$julianDayToIslamic(this,1948440,m)}toJulianDay(m){return $f2f3e0e3a817edbd$var$islamicToJulianDay(1948440,m.year,m.month,m.day)}getDaysInMonth(m){let $=29+m.month%2;return 12===m.month&&$f2f3e0e3a817edbd$var$isLeapYear(m.year)&&$++,$}getMonthsInYear(){return 12}getDaysInYear(m){return $f2f3e0e3a817edbd$var$isLeapYear(m.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}};let $f2f3e0e3a817edbd$export$37f0887f2f9d22f7=class $f2f3e0e3a817edbd$export$37f0887f2f9d22f7 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc{fromJulianDay(m){return $f2f3e0e3a817edbd$var$julianDayToIslamic(this,1948439,m)}toJulianDay(m){return $f2f3e0e3a817edbd$var$islamicToJulianDay(1948439,m.year,m.month,m.day)}constructor(...m){super(...m),this.identifier="islamic-tbla"}};function $f2f3e0e3a817edbd$var$umalquraYearStart(m){return 460322+P[m-1300]}function $f2f3e0e3a817edbd$var$umalquraMonthLength(m,$){return(_[m-1300]&1<<11-($-1))==0?29:30}function $f2f3e0e3a817edbd$var$umalquraMonthStart(m,$){let E=$f2f3e0e3a817edbd$var$umalquraYearStart(m);for(let _=1;_<$;_++)E+=$f2f3e0e3a817edbd$var$umalquraMonthLength(m,_);return E}function $f2f3e0e3a817edbd$var$umalquraYearLength(m){return P[m+1-1300]-P[m-1300]}let $f2f3e0e3a817edbd$export$5baab4758c231076=class $f2f3e0e3a817edbd$export$5baab4758c231076 extends $f2f3e0e3a817edbd$export$2066795aadd37bfc{fromJulianDay(m){let $=m-1948440,E=$f2f3e0e3a817edbd$var$umalquraYearStart(1300),_=$f2f3e0e3a817edbd$var$umalquraYearStart(1600);if($_)return super.fromJulianDay(m);{let m=1299,E=1,_=1;for(;_>0;){_=$-$f2f3e0e3a817edbd$var$umalquraYearStart(++m)+1;let P=$f2f3e0e3a817edbd$var$umalquraYearLength(m);if(_===P){E=12;break}if(_$;)_-=$,$=$f2f3e0e3a817edbd$var$umalquraMonthLength(m,++E);break}}return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,m,E,$-$f2f3e0e3a817edbd$var$umalquraMonthStart(m,E)+1)}}toJulianDay(m){return m.year<1300||m.year>1600?super.toJulianDay(m):1948440+$f2f3e0e3a817edbd$var$umalquraMonthStart(m.year,m.month)+(m.day-1)}getDaysInMonth(m){return m.year<1300||m.year>1600?super.getDaysInMonth(m):$f2f3e0e3a817edbd$var$umalquraMonthLength(m.year,m.month)}getDaysInYear(m){return m.year<1300||m.year>1600?super.getDaysInYear(m):$f2f3e0e3a817edbd$var$umalquraYearLength(m.year)}constructor(){if(super(),this.identifier="islamic-umalqura",_||(_=new Uint16Array(Uint8Array.from(atob("qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI="),m=>m.charCodeAt(0)).buffer)),!P){P=new Uint32Array(301);let m=0;for(let $=1300;$<=1600;$++){P[$-1300]=m;for(let E=1;E<=12;E++)m+=$f2f3e0e3a817edbd$var$umalquraMonthLength($,E)}}}};function $7c5f6fbf42389787$var$isLeapYear(m){return 7>$2b4dce13dd5a17fa$export$842a2cf37af977e1(7*m+1,19)}function $7c5f6fbf42389787$var$hebrewDelay1(m){let $=Math.floor((235*m-234)/19),E=29*$+Math.floor((12084+13753*$)/25920);return 3>$2b4dce13dd5a17fa$export$842a2cf37af977e1(3*(E+1),7)&&(E+=1),E}function $7c5f6fbf42389787$var$hebrewDelay2(m){let $=$7c5f6fbf42389787$var$hebrewDelay1(m-1),E=$7c5f6fbf42389787$var$hebrewDelay1(m);return $7c5f6fbf42389787$var$hebrewDelay1(m+1)-E==356?2:E-$==382?1:0}function $7c5f6fbf42389787$var$startOfYear(m){return $7c5f6fbf42389787$var$hebrewDelay1(m)+$7c5f6fbf42389787$var$hebrewDelay2(m)}function $7c5f6fbf42389787$var$getDaysInYear(m){return $7c5f6fbf42389787$var$startOfYear(m+1)-$7c5f6fbf42389787$var$startOfYear(m)}function $7c5f6fbf42389787$var$getYearType(m){let $=$7c5f6fbf42389787$var$getDaysInYear(m);switch($>380&&($-=30),$){case 353:return 0;case 354:return 1;case 355:return 2}}function $7c5f6fbf42389787$var$getDaysInMonth(m,$){if($>=6&&!$7c5f6fbf42389787$var$isLeapYear(m)&&$++,4===$||7===$||9===$||11===$||13===$)return 29;let E=$7c5f6fbf42389787$var$getYearType(m);return 2===$?2===E?30:29:3===$?0===E?29:30:6===$?$7c5f6fbf42389787$var$isLeapYear(m)?30:0:30}let $7c5f6fbf42389787$export$ca405048b8fb5af=class $7c5f6fbf42389787$export$ca405048b8fb5af{fromJulianDay(m){let $=m-347997,E=Math.floor((19*(25920*$/765433)+234)/235)+1,_=$7c5f6fbf42389787$var$startOfYear(E),P=Math.floor($-_);for(;P<1;)P=Math.floor($-(_=$7c5f6fbf42389787$var$startOfYear(--E)));let S=1,T=0;for(;T6?m.month--:!$7c5f6fbf42389787$var$isLeapYear($.year)&&$7c5f6fbf42389787$var$isLeapYear(m.year)&&$.month>6&&m.month++)}constructor(){this.identifier="hebrew"}};function $b956b2d7a6cf451f$var$ceToJulianDay(m,$,E,_){return m+365*$+Math.floor($/4)+30*(E-1)+_-1}function $b956b2d7a6cf451f$var$julianDayToCE(m,$){let E=Math.floor(4*($-m)/1461),_=1+Math.floor(($-$b956b2d7a6cf451f$var$ceToJulianDay(m,E,1,1))/30),P=$+1-$b956b2d7a6cf451f$var$ceToJulianDay(m,E,_,1);return[E,_,P]}function $b956b2d7a6cf451f$var$getLeapDay(m){return Math.floor(m%4/3)}function $b956b2d7a6cf451f$var$getDaysInMonth(m,$){return $%13!=0?30:$b956b2d7a6cf451f$var$getLeapDay(m)+5}let $b956b2d7a6cf451f$export$26ba6eab5e20cd7d=class $b956b2d7a6cf451f$export$26ba6eab5e20cd7d{fromJulianDay(m){let[$,E,_]=$b956b2d7a6cf451f$var$julianDayToCE(1723856,m),P="AM";return $<=0&&(P="AA",$+=5500),new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,P,$,E,_)}toJulianDay(m){let $=m.year;return"AA"===m.era&&($-=5500),$b956b2d7a6cf451f$var$ceToJulianDay(1723856,$,m.month,m.day)}getDaysInMonth(m){return $b956b2d7a6cf451f$var$getDaysInMonth(m.year,m.month)}getMonthsInYear(){return 13}getDaysInYear(m){return 365+$b956b2d7a6cf451f$var$getLeapDay(m.year)}getYearsInEra(m){return"AA"===m.era?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}};let $b956b2d7a6cf451f$export$d72e0c37005a4914=class $b956b2d7a6cf451f$export$d72e0c37005a4914 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d{fromJulianDay(m){let[$,E,_]=$b956b2d7a6cf451f$var$julianDayToCE(1723856,m);return new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,"AA",$+=5500,E,_)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...m){super(...m),this.identifier="ethioaa"}};let $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1=class $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1 extends $b956b2d7a6cf451f$export$26ba6eab5e20cd7d{fromJulianDay(m){let[$,E,_]=$b956b2d7a6cf451f$var$julianDayToCE(1824665,m),P="CE";return $<=0&&(P="BCE",$=1-$),new $35ea8db9cb2ccb90$export$99faa760c7908e4f(this,P,$,E,_)}toJulianDay(m){let $=m.year;return"BCE"===m.era&&($=1-$),$b956b2d7a6cf451f$var$ceToJulianDay(1824665,$,m.month,m.day)}getDaysInMonth(m){let $=m.year;return"BCE"===m.era&&($=1-$),$b956b2d7a6cf451f$var$getDaysInMonth($,m.month)}isInverseEra(m){return"BCE"===m.era}balanceDate(m){m.year<=0&&(m.era="BCE"===m.era?"CE":"BCE",m.year=1-m.year)}getEras(){return["BCE","CE"]}getYearsInEra(m){return"BCE"===m.era?9999:9715}constructor(...m){super(...m),this.identifier="coptic"}};function $64244302c3013299$export$dd0bbc9b26defe37(m){switch(m){case"buddhist":return new $8d73d47422ca7302$export$42d20a78301dee44;case"ethiopic":return new $b956b2d7a6cf451f$export$26ba6eab5e20cd7d;case"ethioaa":return new $b956b2d7a6cf451f$export$d72e0c37005a4914;case"coptic":return new $b956b2d7a6cf451f$export$fe6243cbe1a4b7c1;case"hebrew":return new $7c5f6fbf42389787$export$ca405048b8fb5af;case"indian":return new $82c358003bdda0a8$export$39f31c639fa15726;case"islamic-civil":return new $f2f3e0e3a817edbd$export$2066795aadd37bfc;case"islamic-tbla":return new $f2f3e0e3a817edbd$export$37f0887f2f9d22f7;case"islamic-umalqura":return new $f2f3e0e3a817edbd$export$5baab4758c231076;case"japanese":return new $62225008020f0a13$export$b746ab2b60cdffbf;case"persian":return new $f3ed2e4472ae7e25$export$37fccdbfd14c5939;case"roc":return new $5f31bd6f0c8940b2$export$65e01080afcb0799;default:return new $3b62074eb05584b2$export$80ee6245ec4f29ec}}let X=new Map;let $fb18d541ea1ad717$export$ad991b66133851cf=class $fb18d541ea1ad717$export$ad991b66133851cf{format(m){return this.formatter.format(m)}formatToParts(m){return this.formatter.formatToParts(m)}formatRange(m,$){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(m,$);if($= start date");return`${this.formatter.format(m)} – ${this.formatter.format($)}`}formatRangeToParts(m,$){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(m,$);if($= start date");let E=this.formatter.formatToParts(m),_=this.formatter.formatToParts($);return[...E.map(m=>({...m,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},..._.map(m=>({...m,source:"endRange"}))]}resolvedOptions(){let m=this.formatter.resolvedOptions();return $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle()&&(this.resolvedHourCycle||(this.resolvedHourCycle=$fb18d541ea1ad717$var$getResolvedHourCycle(m.locale,this.options)),m.hourCycle=this.resolvedHourCycle,m.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),"ethiopic-amete-alem"===m.calendar&&(m.calendar="ethioaa"),m}constructor(m,$={}){this.formatter=$fb18d541ea1ad717$var$getCachedDateFormatter(m,$),this.options=$}};let ee={true:{ja:"h11"},false:{}};function $fb18d541ea1ad717$var$getCachedDateFormatter(m,$={}){if("boolean"==typeof $.hour12&&$fb18d541ea1ad717$var$hasBuggyHour12Behavior()){let E=ee[String(($={...$}).hour12)][m.split("-")[0]],_=$.hour12?"h12":"h23";$.hourCycle=null!=E?E:_,delete $.hour12}let E=m+($?Object.entries($).sort((m,$)=>m[0]<$[0]?-1:1).join():"");if(X.has(E))return X.get(E);let _=new Intl.DateTimeFormat(m,$);return X.set(E,_),_}let et=null;function $fb18d541ea1ad717$var$hasBuggyHour12Behavior(){return null==et&&(et="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),et}let ea=null;function $fb18d541ea1ad717$var$hasBuggyResolvedHourCycle(){return null==ea&&(ea="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),ea}function $fb18d541ea1ad717$var$getResolvedHourCycle(m,$){if(!$.timeStyle&&!$.hour)return;m=m.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let E=$fb18d541ea1ad717$var$getCachedDateFormatter(m+=(m.includes("-u-")?"":"-u")+"-nu-latn",{...$,timeZone:void 0}),_=parseInt(E.formatToParts(new Date(2020,2,3,0)).find(m=>"hour"===m.type).value,10),P=parseInt(E.formatToParts(new Date(2020,2,3,23)).find(m=>"hour"===m.type).value,10);if(0===_&&23===P)return"h23";if(24===_&&23===P)return"h24";if(0===_&&11===P)return"h11";if(12===_&&11===P)return"h12";throw Error("Unexpected hour cycle result")}},40926:function(m,$,E){"use strict";E.d($,{E:function(){return $6db58dc88e78b024$export$2f817fcdc4b89ae0},J:function(){return $5b160d28a433310d$export$c17fa47878dc55b6}});let $5b160d28a433310d$export$c17fa47878dc55b6=class $5b160d28a433310d$export$c17fa47878dc55b6{getStringForLocale(m,$){let E=this.strings[$];E||(E=$5b160d28a433310d$var$getStringsForLocale($,this.strings,this.defaultLocale),this.strings[$]=E);let _=E[m];if(!_)throw Error(`Could not find intl message ${m} in ${$} locale`);return _}constructor(m,$="en-US"){this.strings={...m},this.defaultLocale=$}};function $5b160d28a433310d$var$getStringsForLocale(m,$,E="en-US"){if($[m])return $[m];let _=$5b160d28a433310d$var$getLanguage(m);if($[_])return $[_];for(let m in $)if(m.startsWith(_+"-"))return $[m];return $[E]}function $5b160d28a433310d$var$getLanguage(m){return Intl.Locale?new Intl.Locale(m).language:m.split("-")[0]}let _=new Map,P=new Map;let $6db58dc88e78b024$export$2f817fcdc4b89ae0=class $6db58dc88e78b024$export$2f817fcdc4b89ae0{format(m,$){let E=this.strings.getStringForLocale(m,this.locale);return"function"==typeof E?E($,this):E}plural(m,$,E="cardinal"){let P=$["="+m];if(P)return"function"==typeof P?P():P;let S=this.locale+":"+E,T=_.get(S);return T||(T=new Intl.PluralRules(this.locale,{type:E}),_.set(S,T)),"function"==typeof(P=$[T.select(m)]||$.other)?P():P}number(m){let $=P.get(this.locale);return $||($=new Intl.NumberFormat(this.locale),P.set(this.locale,$)),$.format(m)}select(m,$){let E=m[$]||m.other;return"function"==typeof E?E():E}constructor(m,$){this.locale=m,this.strings=$}}},66062:function(m,$,E){"use strict";E.d($,{FZ:function(){return J},fC:function(){return X}});var _=E(13428),P=E(2265),S=E(42210),T=E(56989),k=E(85744),R=E(73763),A=E(85184),M=E(94977),V=E(85606),N=E(9381);let j="Checkbox",[B,z]=(0,T.b)(j),[W,H]=B(j),G=(0,P.forwardRef)((m,$)=>{let{__scopeCheckbox:E,name:T,checked:A,defaultChecked:M,required:V,disabled:j,value:B="on",onCheckedChange:z,...H}=m,[G,J]=(0,P.useState)(null),X=(0,S.e)($,m=>J(m)),ee=(0,P.useRef)(!1),et=!G||!!G.closest("form"),[ea=!1,er]=(0,R.T)({prop:A,defaultProp:M,onChange:z}),en=(0,P.useRef)(ea);return(0,P.useEffect)(()=>{let m=null==G?void 0:G.form;if(m){let reset=()=>er(en.current);return m.addEventListener("reset",reset),()=>m.removeEventListener("reset",reset)}},[G,er]),(0,P.createElement)(W,{scope:E,state:ea,disabled:j},(0,P.createElement)(N.WV.button,(0,_.Z)({type:"button",role:"checkbox","aria-checked":$e698a72e93240346$var$isIndeterminate(ea)?"mixed":ea,"aria-required":V,"data-state":$e698a72e93240346$var$getState(ea),"data-disabled":j?"":void 0,disabled:j,value:B},H,{ref:X,onKeyDown:(0,k.M)(m.onKeyDown,m=>{"Enter"===m.key&&m.preventDefault()}),onClick:(0,k.M)(m.onClick,m=>{er(m=>!!$e698a72e93240346$var$isIndeterminate(m)||!m),et&&(ee.current=m.isPropagationStopped(),ee.current||m.stopPropagation())})})),et&&(0,P.createElement)($e698a72e93240346$var$BubbleInput,{control:G,bubbles:!ee.current,name:T,value:B,checked:ea,required:V,disabled:j,style:{transform:"translateX(-100%)"}}))}),J=(0,P.forwardRef)((m,$)=>{let{__scopeCheckbox:E,forceMount:S,...T}=m,k=H("CheckboxIndicator",E);return(0,P.createElement)(V.z,{present:S||$e698a72e93240346$var$isIndeterminate(k.state)||!0===k.state},(0,P.createElement)(N.WV.span,(0,_.Z)({"data-state":$e698a72e93240346$var$getState(k.state),"data-disabled":k.disabled?"":void 0},T,{ref:$,style:{pointerEvents:"none",...m.style}})))}),$e698a72e93240346$var$BubbleInput=m=>{let{control:$,checked:E,bubbles:S=!0,...T}=m,k=(0,P.useRef)(null),R=(0,A.D)(E),V=(0,M.t)($);return(0,P.useEffect)(()=>{let m=k.current,$=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor($,"checked"),P=_.set;if(R!==E&&P){let $=new Event("click",{bubbles:S});m.indeterminate=$e698a72e93240346$var$isIndeterminate(E),P.call(m,!$e698a72e93240346$var$isIndeterminate(E)&&E),m.dispatchEvent($)}},[R,E,S]),(0,P.createElement)("input",(0,_.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:!$e698a72e93240346$var$isIndeterminate(E)&&E},T,{tabIndex:-1,ref:k,style:{...m.style,...V,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function $e698a72e93240346$var$isIndeterminate(m){return"indeterminate"===m}function $e698a72e93240346$var$getState(m){return $e698a72e93240346$var$isIndeterminate(m)?"indeterminate":m?"checked":"unchecked"}let X=G},92376:function(m,$,E){"use strict";E.d($,{bU:function(){return X},fC:function(){return J}});var _=E(13428),P=E(2265),S=E(85744),T=E(42210),k=E(56989),R=E(73763),A=E(85184),M=E(94977),V=E(9381);let N="Switch",[j,B]=(0,k.b)(N),[z,W]=j(N),H=(0,P.forwardRef)((m,$)=>{let{__scopeSwitch:E,name:k,checked:A,defaultChecked:M,required:N,disabled:j,value:B="on",onCheckedChange:W,...H}=m,[G,J]=(0,P.useState)(null),X=(0,T.e)($,m=>J(m)),ee=(0,P.useRef)(!1),et=!G||!!G.closest("form"),[ea=!1,er]=(0,R.T)({prop:A,defaultProp:M,onChange:W});return(0,P.createElement)(z,{scope:E,checked:ea,disabled:j},(0,P.createElement)(V.WV.button,(0,_.Z)({type:"button",role:"switch","aria-checked":ea,"aria-required":N,"data-state":$6be4966fd9bbc698$var$getState(ea),"data-disabled":j?"":void 0,disabled:j,value:B},H,{ref:X,onClick:(0,S.M)(m.onClick,m=>{er(m=>!m),et&&(ee.current=m.isPropagationStopped(),ee.current||m.stopPropagation())})})),et&&(0,P.createElement)($6be4966fd9bbc698$var$BubbleInput,{control:G,bubbles:!ee.current,name:k,value:B,checked:ea,required:N,disabled:j,style:{transform:"translateX(-100%)"}}))}),G=(0,P.forwardRef)((m,$)=>{let{__scopeSwitch:E,...S}=m,T=W("SwitchThumb",E);return(0,P.createElement)(V.WV.span,(0,_.Z)({"data-state":$6be4966fd9bbc698$var$getState(T.checked),"data-disabled":T.disabled?"":void 0},S,{ref:$}))}),$6be4966fd9bbc698$var$BubbleInput=m=>{let{control:$,checked:E,bubbles:S=!0,...T}=m,k=(0,P.useRef)(null),R=(0,A.D)(E),V=(0,M.t)($);return(0,P.useEffect)(()=>{let m=k.current,$=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor($,"checked"),P=_.set;if(R!==E&&P){let $=new Event("click",{bubbles:S});P.call(m,E),m.dispatchEvent($)}},[R,E,S]),(0,P.createElement)("input",(0,_.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:E},T,{tabIndex:-1,ref:k,style:{...m.style,...V,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function $6be4966fd9bbc698$var$getState(m){return m?"checked":"unchecked"}let J=H,X=G},85184:function(m,$,E){"use strict";E.d($,{D:function(){return $010c2913dbd2fe3d$export$5cae361ad82dce8b}});var _=E(2265);function $010c2913dbd2fe3d$export$5cae361ad82dce8b(m){let $=(0,_.useRef)({value:m,previous:m});return(0,_.useMemo)(()=>($.current.value!==m&&($.current.previous=$.current.value,$.current.value=m),$.current.previous),[m])}},27473:function(m,$,E){"use strict";E.d($,{GX:function(){return $9942cad8a072a530$export$3ee915f8151bd4f1},JK:function(){return $36a0ac60f04457c5$export$136073280381448e},QA:function(){return $e3031d1f8c9d64eb$export$cb95147730a423f5},Zv:function(){return $46a4342aab3d8076$export$87e0539f600c24e5}});var _=E(19092),P=E(94625),S=E(40626),T=E(2265),k=E(10387),R=E(94482);function $parcel$interopDefault(m){return m&&m.__esModule?m.default:m}var A={};A={"ar-AE":{dateRange:m=>`${m.startDate} إلى ${m.endDate}`,dateSelected:m=>`${m.date} المحدد`,finishRangeSelectionPrompt:`انقر لإنهاء عملية تحديد نطاق التاريخ`,maximumDate:`آخر تاريخ متاح`,minimumDate:`أول تاريخ متاح`,next:`التالي`,previous:`السابق`,selectedDateDescription:m=>`تاريخ محدد: ${m.date}`,selectedRangeDescription:m=>`المدى الزمني المحدد: ${m.dateRange}`,startRangeSelectionPrompt:`انقر لبدء عملية تحديد نطاق التاريخ`,todayDate:m=>`اليوم، ${m.date}`,todayDateSelected:m=>`اليوم، ${m.date} محدد`},"bg-BG":{dateRange:m=>`${m.startDate} до ${m.endDate}`,dateSelected:m=>`Избрано е ${m.date}`,finishRangeSelectionPrompt:`Натиснете, за да довършите избора на времеви интервал`,maximumDate:`Последна налична дата`,minimumDate:`Първа налична дата`,next:`Напред`,previous:`Назад`,selectedDateDescription:m=>`Избрана дата: ${m.date}`,selectedRangeDescription:m=>`Избран диапазон: ${m.dateRange}`,startRangeSelectionPrompt:`Натиснете, за да пристъпите към избора на времеви интервал`,todayDate:m=>`Днес, ${m.date}`,todayDateSelected:m=>`Днес, ${m.date} са избрани`},"cs-CZ":{dateRange:m=>`${m.startDate} až ${m.endDate}`,dateSelected:m=>`Vybr\xe1no ${m.date}`,finishRangeSelectionPrompt:`Kliknut\xedm dokonč\xedte v\xfdběr rozsahu dat`,maximumDate:`Posledn\xed dostupn\xe9 datum`,minimumDate:`Prvn\xed dostupn\xe9 datum`,next:`Dalš\xed`,previous:`Předchoz\xed`,selectedDateDescription:m=>`Vybran\xe9 datum: ${m.date}`,selectedRangeDescription:m=>`Vybran\xe9 obdob\xed: ${m.dateRange}`,startRangeSelectionPrompt:`Kliknut\xedm zah\xe1j\xedte v\xfdběr rozsahu dat`,todayDate:m=>`Dnes, ${m.date}`,todayDateSelected:m=>`Dnes, vybr\xe1no ${m.date}`},"da-DK":{dateRange:m=>`${m.startDate} til ${m.endDate}`,dateSelected:m=>`${m.date} valgt`,finishRangeSelectionPrompt:`Klik for at fuldf\xf8re valg af datoomr\xe5de`,maximumDate:"Sidste ledige dato",minimumDate:`F\xf8rste ledige dato`,next:`N\xe6ste`,previous:"Forrige",selectedDateDescription:m=>`Valgt dato: ${m.date}`,selectedRangeDescription:m=>`Valgt interval: ${m.dateRange}`,startRangeSelectionPrompt:`Klik for at starte valg af datoomr\xe5de`,todayDate:m=>`I dag, ${m.date}`,todayDateSelected:m=>`I dag, ${m.date} valgt`},"de-DE":{dateRange:m=>`${m.startDate} bis ${m.endDate}`,dateSelected:m=>`${m.date} ausgew\xe4hlt`,finishRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beenden",maximumDate:`Letztes verf\xfcgbares Datum`,minimumDate:`Erstes verf\xfcgbares Datum`,next:"Weiter",previous:`Zur\xfcck`,selectedDateDescription:m=>`Ausgew\xe4hltes Datum: ${m.date}`,selectedRangeDescription:m=>`Ausgew\xe4hlter Bereich: ${m.dateRange}`,startRangeSelectionPrompt:"Klicken, um die Auswahl des Datumsbereichs zu beginnen",todayDate:m=>`Heute, ${m.date}`,todayDateSelected:m=>`Heute, ${m.date} ausgew\xe4hlt`},"el-GR":{dateRange:m=>`${m.startDate} έως ${m.endDate}`,dateSelected:m=>`Επιλέχθηκε ${m.date}`,finishRangeSelectionPrompt:`Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών`,maximumDate:`Τελευταία διαθέσιμη ημερομηνία`,minimumDate:`Πρώτη διαθέσιμη ημερομηνία`,next:`Επόμενο`,previous:`Προηγούμενο`,selectedDateDescription:m=>`Επιλεγμένη ημερομηνία: ${m.date}`,selectedRangeDescription:m=>`Επιλεγμένο εύρος: ${m.dateRange}`,startRangeSelectionPrompt:`Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών`,todayDate:m=>`Σήμερα, ${m.date}`,todayDateSelected:m=>`Σήμερα, επιλέχτηκε ${m.date}`},"en-US":{previous:"Previous",next:"Next",selectedDateDescription:m=>`Selected Date: ${m.date}`,selectedRangeDescription:m=>`Selected Range: ${m.dateRange}`,todayDate:m=>`Today, ${m.date}`,todayDateSelected:m=>`Today, ${m.date} selected`,dateSelected:m=>`${m.date} selected`,startRangeSelectionPrompt:"Click to start selecting date range",finishRangeSelectionPrompt:"Click to finish selecting date range",minimumDate:"First available date",maximumDate:"Last available date",dateRange:m=>`${m.startDate} to ${m.endDate}`},"es-ES":{dateRange:m=>`${m.startDate} a ${m.endDate}`,dateSelected:m=>`${m.date} seleccionado`,finishRangeSelectionPrompt:"Haga clic para terminar de seleccionar rango de fechas",maximumDate:`\xdaltima fecha disponible`,minimumDate:"Primera fecha disponible",next:"Siguiente",previous:"Anterior",selectedDateDescription:m=>`Fecha seleccionada: ${m.date}`,selectedRangeDescription:m=>`Intervalo seleccionado: ${m.dateRange}`,startRangeSelectionPrompt:"Haga clic para comenzar a seleccionar un rango de fechas",todayDate:m=>`Hoy, ${m.date}`,todayDateSelected:m=>`Hoy, ${m.date} seleccionado`},"et-EE":{dateRange:m=>`${m.startDate} kuni ${m.endDate}`,dateSelected:m=>`${m.date} valitud`,finishRangeSelectionPrompt:`Kl\xf5psake kuup\xe4evavahemiku valimise l\xf5petamiseks`,maximumDate:`Viimane saadaolev kuup\xe4ev`,minimumDate:`Esimene saadaolev kuup\xe4ev`,next:`J\xe4rgmine`,previous:"Eelmine",selectedDateDescription:m=>`Valitud kuup\xe4ev: ${m.date}`,selectedRangeDescription:m=>`Valitud vahemik: ${m.dateRange}`,startRangeSelectionPrompt:`Kl\xf5psake kuup\xe4evavahemiku valimiseks`,todayDate:m=>`T\xe4na, ${m.date}`,todayDateSelected:m=>`T\xe4na, ${m.date} valitud`},"fi-FI":{dateRange:m=>`${m.startDate} – ${m.endDate}`,dateSelected:m=>`${m.date} valittu`,finishRangeSelectionPrompt:`Lopeta p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.`,maximumDate:`Viimeinen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4`,minimumDate:`Ensimm\xe4inen varattavissa oleva p\xe4iv\xe4m\xe4\xe4r\xe4`,next:"Seuraava",previous:"Edellinen",selectedDateDescription:m=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${m.date}`,selectedRangeDescription:m=>`Valittu aikav\xe4li: ${m.dateRange}`,startRangeSelectionPrompt:`Aloita p\xe4iv\xe4m\xe4\xe4r\xe4alueen valinta napsauttamalla t\xe4t\xe4.`,todayDate:m=>`T\xe4n\xe4\xe4n, ${m.date}`,todayDateSelected:m=>`T\xe4n\xe4\xe4n, ${m.date} valittu`},"fr-FR":{dateRange:m=>`${m.startDate} \xe0 ${m.endDate}`,dateSelected:m=>`${m.date} s\xe9lectionn\xe9`,finishRangeSelectionPrompt:`Cliquer pour finir de s\xe9lectionner la plage de dates`,maximumDate:`Derni\xe8re date disponible`,minimumDate:`Premi\xe8re date disponible`,next:"Suivant",previous:`Pr\xe9c\xe9dent`,selectedDateDescription:m=>`Date s\xe9lectionn\xe9e\xa0: ${m.date}`,selectedRangeDescription:m=>`Plage s\xe9lectionn\xe9e\xa0: ${m.dateRange}`,startRangeSelectionPrompt:`Cliquer pour commencer \xe0 s\xe9lectionner la plage de dates`,todayDate:m=>`Aujourd'hui, ${m.date}`,todayDateSelected:m=>`Aujourd’hui, ${m.date} s\xe9lectionn\xe9`},"he-IL":{dateRange:m=>`${m.startDate} עד ${m.endDate}`,dateSelected:m=>`${m.date} נבחר`,finishRangeSelectionPrompt:`חץ כדי לסיים את בחירת טווח התאריכים`,maximumDate:`תאריך פנוי אחרון`,minimumDate:`תאריך פנוי ראשון`,next:`הבא`,previous:`הקודם`,selectedDateDescription:m=>`תאריך נבחר: ${m.date}`,selectedRangeDescription:m=>`טווח נבחר: ${m.dateRange}`,startRangeSelectionPrompt:`לחץ כדי להתחיל בבחירת טווח התאריכים`,todayDate:m=>`היום, ${m.date}`,todayDateSelected:m=>`היום, ${m.date} נבחר`},"hr-HR":{dateRange:m=>`${m.startDate} do ${m.endDate}`,dateSelected:m=>`${m.date} odabran`,finishRangeSelectionPrompt:`Kliknite da dovršite raspon odabranih datuma`,maximumDate:`Posljednji raspoloživi datum`,minimumDate:`Prvi raspoloživi datum`,next:`Sljedeći`,previous:"Prethodni",selectedDateDescription:m=>`Odabrani datum: ${m.date}`,selectedRangeDescription:m=>`Odabrani raspon: ${m.dateRange}`,startRangeSelectionPrompt:`Kliknite da započnete raspon odabranih datuma`,todayDate:m=>`Danas, ${m.date}`,todayDateSelected:m=>`Danas, odabran ${m.date}`},"hu-HU":{dateRange:m=>`${m.startDate}–${m.endDate}`,dateSelected:m=>`${m.date} kiv\xe1lasztva`,finishRangeSelectionPrompt:`Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek befejez\xe9s\xe9hez`,maximumDate:`Utols\xf3 el\xe9rhető d\xe1tum`,minimumDate:`Az első el\xe9rhető d\xe1tum`,next:`K\xf6vetkező`,previous:`Előző`,selectedDateDescription:m=>`Kijel\xf6lt d\xe1tum: ${m.date}`,selectedRangeDescription:m=>`Kijel\xf6lt tartom\xe1ny: ${m.dateRange}`,startRangeSelectionPrompt:`Kattintson a d\xe1tumtartom\xe1ny kijel\xf6l\xe9s\xe9nek ind\xedt\xe1s\xe1hoz`,todayDate:m=>`Ma, ${m.date}`,todayDateSelected:m=>`Ma, ${m.date} kijel\xf6lve`},"it-IT":{dateRange:m=>`Da ${m.startDate} a ${m.endDate}`,dateSelected:m=>`${m.date} selezionata`,finishRangeSelectionPrompt:`Fai clic per completare la selezione dell’intervallo di date`,maximumDate:"Ultima data disponibile",minimumDate:"Prima data disponibile",next:"Successivo",previous:"Precedente",selectedDateDescription:m=>`Data selezionata: ${m.date}`,selectedRangeDescription:m=>`Intervallo selezionato: ${m.dateRange}`,startRangeSelectionPrompt:`Fai clic per selezionare l’intervallo di date`,todayDate:m=>`Oggi, ${m.date}`,todayDateSelected:m=>`Oggi, ${m.date} selezionata`},"ja-JP":{dateRange:m=>`${m.startDate} から ${m.endDate}`,dateSelected:m=>`${m.date} を選択`,finishRangeSelectionPrompt:`クリックして日付範囲の選択を終了`,maximumDate:`最終利用可能日`,minimumDate:`最初の利用可能日`,next:`次へ`,previous:`前へ`,selectedDateDescription:m=>`選択した日付 : ${m.date}`,selectedRangeDescription:m=>`選択範囲 : ${m.dateRange}`,startRangeSelectionPrompt:`クリックして日付範囲の選択を開始`,todayDate:m=>`本日、${m.date}`,todayDateSelected:m=>`本日、${m.date} を選択`},"ko-KR":{dateRange:m=>`${m.startDate} ~ ${m.endDate}`,dateSelected:m=>`${m.date} 선택됨`,finishRangeSelectionPrompt:`날짜 범위 선택을 완료하려면 클릭하십시오.`,maximumDate:`마지막으로 사용 가능한 일자`,minimumDate:`처음으로 사용 가능한 일자`,next:`다음`,previous:`이전`,selectedDateDescription:m=>`선택 일자: ${m.date}`,selectedRangeDescription:m=>`선택 범위: ${m.dateRange}`,startRangeSelectionPrompt:`날짜 범위 선택을 시작하려면 클릭하십시오.`,todayDate:m=>`오늘, ${m.date}`,todayDateSelected:m=>`오늘, ${m.date} 선택됨`},"lt-LT":{dateRange:m=>`Nuo ${m.startDate} iki ${m.endDate}`,dateSelected:m=>`Pasirinkta ${m.date}`,finishRangeSelectionPrompt:`Spustelėkite, kad baigtumėte pasirinkti datų intervalą`,maximumDate:`Paskutinė galima data`,minimumDate:"Pirmoji galima data",next:"Paskesnis",previous:"Ankstesnis",selectedDateDescription:m=>`Pasirinkta data: ${m.date}`,selectedRangeDescription:m=>`Pasirinktas intervalas: ${m.dateRange}`,startRangeSelectionPrompt:`Spustelėkite, kad pradėtumėte pasirinkti datų intervalą`,todayDate:m=>`Šiandien, ${m.date}`,todayDateSelected:m=>`Šiandien, pasirinkta ${m.date}`},"lv-LV":{dateRange:m=>`No ${m.startDate} līdz ${m.endDate}`,dateSelected:m=>`Atlasīts: ${m.date}`,finishRangeSelectionPrompt:`Noklikšķiniet, lai pabeigtu datumu diapazona atlasi`,maximumDate:`Pēdējais pieejamais datums`,minimumDate:"Pirmais pieejamais datums",next:`Tālāk`,previous:`Atpakaļ`,selectedDateDescription:m=>`Atlasītais datums: ${m.date}`,selectedRangeDescription:m=>`Atlasītais diapazons: ${m.dateRange}`,startRangeSelectionPrompt:`Noklikšķiniet, lai sāktu datumu diapazona atlasi`,todayDate:m=>`Šodien, ${m.date}`,todayDateSelected:m=>`Atlasīta šodiena, ${m.date}`},"nb-NO":{dateRange:m=>`${m.startDate} til ${m.endDate}`,dateSelected:m=>`${m.date} valgt`,finishRangeSelectionPrompt:`Klikk for \xe5 fullf\xf8re valg av datoomr\xe5de`,maximumDate:"Siste tilgjengelige dato",minimumDate:`F\xf8rste tilgjengelige dato`,next:"Neste",previous:"Forrige",selectedDateDescription:m=>`Valgt dato: ${m.date}`,selectedRangeDescription:m=>`Valgt omr\xe5de: ${m.dateRange}`,startRangeSelectionPrompt:`Klikk for \xe5 starte valg av datoomr\xe5de`,todayDate:m=>`I dag, ${m.date}`,todayDateSelected:m=>`I dag, ${m.date} valgt`},"nl-NL":{dateRange:m=>`${m.startDate} tot ${m.endDate}`,dateSelected:m=>`${m.date} geselecteerd`,finishRangeSelectionPrompt:"Klik om de selectie van het datumbereik te voltooien",maximumDate:"Laatste beschikbare datum",minimumDate:"Eerste beschikbare datum",next:"Volgende",previous:"Vorige",selectedDateDescription:m=>`Geselecteerde datum: ${m.date}`,selectedRangeDescription:m=>`Geselecteerd bereik: ${m.dateRange}`,startRangeSelectionPrompt:"Klik om het datumbereik te selecteren",todayDate:m=>`Vandaag, ${m.date}`,todayDateSelected:m=>`Vandaag, ${m.date} geselecteerd`},"pl-PL":{dateRange:m=>`${m.startDate} do ${m.endDate}`,dateSelected:m=>`Wybrano ${m.date}`,finishRangeSelectionPrompt:`Kliknij, aby zakończyć wyb\xf3r zakresu dat`,maximumDate:`Ostatnia dostępna data`,minimumDate:`Pierwsza dostępna data`,next:"Dalej",previous:"Wstecz",selectedDateDescription:m=>`Wybrana data: ${m.date}`,selectedRangeDescription:m=>`Wybrany zakres: ${m.dateRange}`,startRangeSelectionPrompt:`Kliknij, aby rozpocząć wyb\xf3r zakresu dat`,todayDate:m=>`Dzisiaj, ${m.date}`,todayDateSelected:m=>`Dzisiaj wybrano ${m.date}`},"pt-BR":{dateRange:m=>`${m.startDate} a ${m.endDate}`,dateSelected:m=>`${m.date} selecionado`,finishRangeSelectionPrompt:`Clique para concluir a sele\xe7\xe3o do intervalo de datas`,maximumDate:`\xdaltima data dispon\xedvel`,minimumDate:`Primeira data dispon\xedvel`,next:`Pr\xf3ximo`,previous:"Anterior",selectedDateDescription:m=>`Data selecionada: ${m.date}`,selectedRangeDescription:m=>`Intervalo selecionado: ${m.dateRange}`,startRangeSelectionPrompt:`Clique para iniciar a sele\xe7\xe3o do intervalo de datas`,todayDate:m=>`Hoje, ${m.date}`,todayDateSelected:m=>`Hoje, ${m.date} selecionado`},"pt-PT":{dateRange:m=>`${m.startDate} a ${m.endDate}`,dateSelected:m=>`${m.date} selecionado`,finishRangeSelectionPrompt:"Clique para terminar de selecionar o intervalo de datas",maximumDate:`\xdaltima data dispon\xedvel`,minimumDate:`Primeira data dispon\xedvel`,next:`Pr\xf3ximo`,previous:"Anterior",selectedDateDescription:m=>`Data selecionada: ${m.date}`,selectedRangeDescription:m=>`Intervalo selecionado: ${m.dateRange}`,startRangeSelectionPrompt:`Clique para come\xe7ar a selecionar o intervalo de datas`,todayDate:m=>`Hoje, ${m.date}`,todayDateSelected:m=>`Hoje, ${m.date} selecionado`},"ro-RO":{dateRange:m=>`De la ${m.startDate} p\xe2nă la ${m.endDate}`,dateSelected:m=>`${m.date} selectată`,finishRangeSelectionPrompt:`Apăsaţi pentru a finaliza selecţia razei pentru dată`,maximumDate:`Ultima dată disponibilă`,minimumDate:`Prima dată disponibilă`,next:`Următorul`,previous:`\xcenainte`,selectedDateDescription:m=>`Dată selectată: ${m.date}`,selectedRangeDescription:m=>`Interval selectat: ${m.dateRange}`,startRangeSelectionPrompt:`Apăsaţi pentru a \xeencepe selecţia razei pentru dată`,todayDate:m=>`Astăzi, ${m.date}`,todayDateSelected:m=>`Azi, ${m.date} selectată`},"ru-RU":{dateRange:m=>`С ${m.startDate} по ${m.endDate}`,dateSelected:m=>`Выбрано ${m.date}`,finishRangeSelectionPrompt:`Щелкните, чтобы завершить выбор диапазона дат`,maximumDate:`Последняя доступная дата`,minimumDate:`Первая доступная дата`,next:`Далее`,previous:`Назад`,selectedDateDescription:m=>`Выбранная дата: ${m.date}`,selectedRangeDescription:m=>`Выбранный диапазон: ${m.dateRange}`,startRangeSelectionPrompt:`Щелкните, чтобы начать выбор диапазона дат`,todayDate:m=>`Сегодня, ${m.date}`,todayDateSelected:m=>`Сегодня, выбрано ${m.date}`},"sk-SK":{dateRange:m=>`Od ${m.startDate} do ${m.endDate}`,dateSelected:m=>`Vybrat\xfd d\xe1tum ${m.date}`,finishRangeSelectionPrompt:`Kliknut\xedm dokonč\xedte v\xfdber rozsahu d\xe1tumov`,maximumDate:`Posledn\xfd dostupn\xfd d\xe1tum`,minimumDate:`Prv\xfd dostupn\xfd d\xe1tum`,next:`Nasleduj\xface`,previous:`Predch\xe1dzaj\xface`,selectedDateDescription:m=>`Vybrat\xfd d\xe1tum: ${m.date}`,selectedRangeDescription:m=>`Vybrat\xfd rozsah: ${m.dateRange}`,startRangeSelectionPrompt:`Kliknut\xedm spust\xedte v\xfdber rozsahu d\xe1tumov`,todayDate:m=>`Dnes ${m.date}`,todayDateSelected:m=>`Vybrat\xfd dnešn\xfd d\xe1tum ${m.date}`},"sl-SI":{dateRange:m=>`${m.startDate} do ${m.endDate}`,dateSelected:m=>`${m.date} izbrano`,finishRangeSelectionPrompt:`Kliknite za dokončanje izbire datumskega obsega`,maximumDate:`Zadnji razpoložljivi datum`,minimumDate:`Prvi razpoložljivi datum`,next:"Naprej",previous:"Nazaj",selectedDateDescription:m=>`Izbrani datum: ${m.date}`,selectedRangeDescription:m=>`Izbrano območje: ${m.dateRange}`,startRangeSelectionPrompt:`Kliknite za začetek izbire datumskega obsega`,todayDate:m=>`Danes, ${m.date}`,todayDateSelected:m=>`Danes, ${m.date} izbrano`},"sr-SP":{dateRange:m=>`${m.startDate} do ${m.endDate}`,dateSelected:m=>`${m.date} izabran`,finishRangeSelectionPrompt:`Kliknite da dovršite opseg izabranih datuma`,maximumDate:`Zadnji raspoloživi datum`,minimumDate:`Prvi raspoloživi datum`,next:`Sledeći`,previous:"Prethodni",selectedDateDescription:m=>`Izabrani datum: ${m.date}`,selectedRangeDescription:m=>`Izabrani period: ${m.dateRange}`,startRangeSelectionPrompt:`Kliknite da započnete opseg izabranih datuma`,todayDate:m=>`Danas, ${m.date}`,todayDateSelected:m=>`Danas, izabran ${m.date}`},"sv-SE":{dateRange:m=>`${m.startDate} till ${m.endDate}`,dateSelected:m=>`${m.date} har valts`,finishRangeSelectionPrompt:`Klicka f\xf6r att avsluta val av datumintervall`,maximumDate:`Sista tillg\xe4ngliga datum`,minimumDate:`F\xf6rsta tillg\xe4ngliga datum`,next:`N\xe4sta`,previous:`F\xf6reg\xe5ende`,selectedDateDescription:m=>`Valt datum: ${m.date}`,selectedRangeDescription:m=>`Valt intervall: ${m.dateRange}`,startRangeSelectionPrompt:`Klicka f\xf6r att v\xe4lja datumintervall`,todayDate:m=>`Idag, ${m.date}`,todayDateSelected:m=>`Idag, ${m.date} har valts`},"tr-TR":{dateRange:m=>`${m.startDate} - ${m.endDate}`,dateSelected:m=>`${m.date} se\xe7ildi`,finishRangeSelectionPrompt:`Tarih aralığı se\xe7imini tamamlamak i\xe7in tıklayın`,maximumDate:`Son m\xfcsait tarih`,minimumDate:`İlk m\xfcsait tarih`,next:"Sonraki",previous:`\xd6nceki`,selectedDateDescription:m=>`Se\xe7ilen Tarih: ${m.date}`,selectedRangeDescription:m=>`Se\xe7ilen Aralık: ${m.dateRange}`,startRangeSelectionPrompt:`Tarih aralığı se\xe7imini başlatmak i\xe7in tıklayın`,todayDate:m=>`Bug\xfcn, ${m.date}`,todayDateSelected:m=>`Bug\xfcn, ${m.date} se\xe7ildi`},"uk-UA":{dateRange:m=>`${m.startDate} — ${m.endDate}`,dateSelected:m=>`Вибрано ${m.date}`,finishRangeSelectionPrompt:`Натисніть, щоб завершити вибір діапазону дат`,maximumDate:`Остання доступна дата`,minimumDate:`Перша доступна дата`,next:`Наступний`,previous:`Попередній`,selectedDateDescription:m=>`Вибрана дата: ${m.date}`,selectedRangeDescription:m=>`Вибраний діапазон: ${m.dateRange}`,startRangeSelectionPrompt:`Натисніть, щоб почати вибір діапазону дат`,todayDate:m=>`Сьогодні, ${m.date}`,todayDateSelected:m=>`Сьогодні, вибрано ${m.date}`},"zh-CN":{dateRange:m=>`${m.startDate} 至 ${m.endDate}`,dateSelected:m=>`已选择 ${m.date}`,finishRangeSelectionPrompt:`单击以完成选择日期范围`,maximumDate:`最后一个可用日期`,minimumDate:`第一个可用日期`,next:`下一页`,previous:`上一页`,selectedDateDescription:m=>`选定的日期:${m.date}`,selectedRangeDescription:m=>`选定的范围:${m.dateRange}`,startRangeSelectionPrompt:`单击以开始选择日期范围`,todayDate:m=>`今天,即 ${m.date}`,todayDateSelected:m=>`已选择今天,即 ${m.date}`},"zh-TW":{dateRange:m=>`${m.startDate} 至 ${m.endDate}`,dateSelected:m=>`已選取 ${m.date}`,finishRangeSelectionPrompt:`按一下以完成選取日期範圍`,maximumDate:`最後一個可用日期`,minimumDate:`第一個可用日期`,next:`下一頁`,previous:`上一頁`,selectedDateDescription:m=>`選定的日期:${m.date}`,selectedRangeDescription:m=>`選定的範圍:${m.dateRange}`,startRangeSelectionPrompt:`按一下以開始選取日期範圍`,todayDate:m=>`今天,${m.date}`,todayDateSelected:m=>`已選取今天,${m.date}`}};let M=new WeakMap;function $a074e1e2d0f0a665$export$134cbb7fb09a9522(m){return(null==m?void 0:m.calendar.identifier)==="gregory"&&"BC"===m.era?"short":void 0}function $a074e1e2d0f0a665$export$b6df97c887c38e1a(m){let $,E,_=(0,S.qb)($parcel$interopDefault(A));"highlightedRange"in m?{start:$,end:E}=m.highlightedRange||{}:$=E=m.value;let P=(0,S.aQ)({weekday:"long",month:"long",year:"numeric",day:"numeric",era:$a074e1e2d0f0a665$export$134cbb7fb09a9522($)||$a074e1e2d0f0a665$export$134cbb7fb09a9522(E),timeZone:m.timeZone}),R="anchorDate"in m?m.anchorDate:null;return(0,T.useMemo)(()=>{if(!R&&$&&E){if((0,k.KC)($,E)){let E=P.format($.toDate(m.timeZone));return _.format("selectedDateDescription",{date:E})}{let S=$a074e1e2d0f0a665$var$formatRange(P,_,$,E,m.timeZone);return _.format("selectedRangeDescription",{dateRange:S})}}return""},[$,E,R,m.timeZone,_,P])}function $a074e1e2d0f0a665$export$31afe65d91ef6e8(m,$,E,_){let P=(0,S.qb)($parcel$interopDefault(A)),R=$a074e1e2d0f0a665$export$134cbb7fb09a9522(m)||$a074e1e2d0f0a665$export$134cbb7fb09a9522($),M=(0,S.aQ)({month:"long",year:"numeric",era:R,calendar:m.calendar.identifier,timeZone:E}),V=(0,S.aQ)({month:"long",year:"numeric",day:"numeric",era:R,calendar:m.calendar.identifier,timeZone:E});return(0,T.useMemo)(()=>{if((0,k.KC)(m,(0,k.Nm)(m))){if((0,k.KC)($,(0,k.Vf)(m)))return M.format(m.toDate(E));if((0,k.KC)($,(0,k.Vf)($)))return _?$a074e1e2d0f0a665$var$formatRange(M,P,m,$,E):M.formatRange(m.toDate(E),$.toDate(E))}return _?$a074e1e2d0f0a665$var$formatRange(V,P,m,$,E):V.formatRange(m.toDate(E),$.toDate(E))},[m,$,M,V,P,E,_])}function $a074e1e2d0f0a665$var$formatRange(m,$,E,_,P){let S=m.formatRangeToParts(E.toDate(P),_.toDate(P)),T=-1;for(let m=0;mT&&(R+=S[m].value);return $.format("dateRange",{startDate:k,endDate:R})}function $c4acc1de3ab169cf$export$d652b3ea2d672d5b(m,$){let E=(0,S.qb)($parcel$interopDefault(A)),k=(0,P.zL)(m),R=$a074e1e2d0f0a665$export$31afe65d91ef6e8($.visibleRange.start,$.visibleRange.end,$.timeZone,!1),V=$a074e1e2d0f0a665$export$31afe65d91ef6e8($.visibleRange.start,$.visibleRange.end,$.timeZone,!0);(0,P.rf)(()=>{$.isFocused||(0,_.xQ)(V)},[V]);let N=$a074e1e2d0f0a665$export$b6df97c887c38e1a($);(0,P.rf)(()=>{N&&(0,_.xQ)(N,"polite",4e3)},[N]);let j=(0,P.mp)([!!m.errorMessage,m.isInvalid,m.validationState]);M.set($,{ariaLabel:m["aria-label"],ariaLabelledBy:m["aria-labelledby"],errorMessageId:j,selectedDateDescription:N});let[B,z]=(0,T.useState)(!1),W=m.isDisabled||$.isNextVisibleRangeInvalid();W&&B&&(z(!1),$.setFocused(!0));let[H,G]=(0,T.useState)(!1),J=m.isDisabled||$.isPreviousVisibleRangeInvalid();J&&H&&(G(!1),$.setFocused(!0));let X=(0,P.bE)({id:m.id,"aria-label":[m["aria-label"],V].filter(Boolean).join(", "),"aria-labelledby":m["aria-labelledby"]});return{calendarProps:(0,P.dG)(k,X,{role:"application","aria-describedby":m["aria-describedby"]||void 0}),nextButtonProps:{onPress:()=>$.focusNextPage(),"aria-label":E.format("next"),isDisabled:W,onFocusChange:z},prevButtonProps:{onPress:()=>$.focusPreviousPage(),"aria-label":E.format("previous"),isDisabled:J,onFocusChange:G},errorMessageProps:{id:j},title:R}}function $9942cad8a072a530$export$3ee915f8151bd4f1(m,$){return $c4acc1de3ab169cf$export$d652b3ea2d672d5b(m,$)}function $46a4342aab3d8076$export$87e0539f600c24e5(m,$,E){let _=$c4acc1de3ab169cf$export$d652b3ea2d672d5b(m,$),S=(0,T.useRef)(!1),k=(0,T.useRef)("undefined"!=typeof window?window:null);(0,P.zX)(k,"pointerdown",m=>{S.current=0===m.width&&0===m.height});let endDragging=m=>{if(S.current){S.current=!1;return}if($.setDragging(!1),!$.anchorDate)return;let E=m.target,P=document.getElementById(_.calendarProps.id);P&&P.contains(document.activeElement)&&(!P.contains(E)||!E.closest('button, [role="button"]'))&&$.selectFocusedDate()};return(0,P.zX)(k,"pointerup",endDragging),(0,P.zX)(k,"pointercancel",endDragging),_.calendarProps.onBlur=m=>{m.relatedTarget&&E.current.contains(m.relatedTarget)||!$.anchorDate||$.selectFocusedDate()},(0,P.zX)(E,"touchmove",m=>{$.isDragging&&m.preventDefault()},{passive:!1,capture:!0}),_}function $e3031d1f8c9d64eb$export$cb95147730a423f5(m,$){let{startDate:E=$.visibleRange.start,endDate:_=$.visibleRange.end}=m,{direction:R}=(0,S.bU)(),A=$a074e1e2d0f0a665$export$31afe65d91ef6e8(E,_,$.timeZone,!0),{ariaLabel:V,ariaLabelledBy:N}=M.get($),j=(0,P.bE)({"aria-label":[V,A].filter(Boolean).join(", "),"aria-labelledby":N}),B=(0,S.aQ)({weekday:m.weekdayStyle||"narrow",timeZone:$.timeZone}),{locale:z}=(0,S.bU)(),W=(0,T.useMemo)(()=>{let m=(0,k.zJ)((0,k.Lg)($.timeZone),z);return[...Array(7).keys()].map(E=>{let _=m.add({days:E}).toDate($.timeZone);return B.format(_)})},[z,$.timeZone,B]);return{gridProps:(0,P.dG)(j,{role:"grid","aria-readonly":$.isReadOnly||null,"aria-disabled":$.isDisabled||null,"aria-multiselectable":"highlightedRange"in $||void 0,onKeyDown:m=>{switch(m.key){case"Enter":case" ":m.preventDefault(),$.selectFocusedDate();break;case"PageUp":m.preventDefault(),m.stopPropagation(),$.focusPreviousSection(m.shiftKey);break;case"PageDown":m.preventDefault(),m.stopPropagation(),$.focusNextSection(m.shiftKey);break;case"End":m.preventDefault(),m.stopPropagation(),$.focusSectionEnd();break;case"Home":m.preventDefault(),m.stopPropagation(),$.focusSectionStart();break;case"ArrowLeft":m.preventDefault(),m.stopPropagation(),"rtl"===R?$.focusNextDay():$.focusPreviousDay();break;case"ArrowUp":m.preventDefault(),m.stopPropagation(),$.focusPreviousRow();break;case"ArrowRight":m.preventDefault(),m.stopPropagation(),"rtl"===R?$.focusPreviousDay():$.focusNextDay();break;case"ArrowDown":m.preventDefault(),m.stopPropagation(),$.focusNextRow();break;case"Escape":"setAnchorDate"in $&&(m.preventDefault(),$.setAnchorDate(null))}},onFocus:()=>$.setFocused(!0),onBlur:()=>$.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:W}}function $36a0ac60f04457c5$export$136073280381448e(m,$,E){let{date:_,isDisabled:V}=m,{errorMessageId:N,selectedDateDescription:j}=M.get($),B=(0,S.qb)($parcel$interopDefault(A)),z=(0,S.aQ)({weekday:"long",day:"numeric",month:"long",year:"numeric",era:$a074e1e2d0f0a665$export$134cbb7fb09a9522(_),timeZone:$.timeZone}),W=$.isSelected(_),H=$.isCellFocused(_);V=V||$.isCellDisabled(_);let G=$.isCellUnavailable(_),J=!V&&!G,X=$.isValueInvalid&&("highlightedRange"in $?!$.anchorDate&&$.highlightedRange&&_.compare($.highlightedRange.start)>=0&&0>=_.compare($.highlightedRange.end):$.value&&(0,k.KC)($.value,_));X&&(W=!0),_=(0,P.vE)(_,k.N9);let ee=(0,T.useMemo)(()=>_.toDate($.timeZone),[_,$.timeZone]),et=(0,k.zk)(_,$.timeZone),ea=(0,T.useMemo)(()=>{let m="";return"highlightedRange"in $&&$.value&&!$.anchorDate&&((0,k.KC)(_,$.value.start)||(0,k.KC)(_,$.value.end))&&(m=j+", "),m+=z.format(ee),et?m=B.format(W?"todayDateSelected":"todayDate",{date:m}):W&&(m=B.format("dateSelected",{date:m})),$.minValue&&(0,k.KC)(_,$.minValue)?m+=", "+B.format("minimumDate"):$.maxValue&&(0,k.KC)(_,$.maxValue)&&(m+=", "+B.format("maximumDate")),m},[z,ee,B,W,et,_,$,j]),er="";"anchorDate"in $&&H&&!$.isReadOnly&&J&&(er=$.anchorDate?B.format("finishRangeSelectionPrompt"):B.format("startRangeSelectionPrompt"));let en=(0,P.PK)(er),ei=(0,T.useRef)(!1),eo=(0,T.useRef)(!1),es=(0,T.useRef)(null),{pressProps:el,isPressed:ec}=(0,R.r7)({shouldCancelOnPointerExit:"anchorDate"in $&&!!$.anchorDate,preventFocusOnPress:!0,isDisabled:!J||$.isReadOnly,onPressStart(m){if($.isReadOnly){$.setFocusedDate(_);return}if("highlightedRange"in $&&!$.anchorDate&&("mouse"===m.pointerType||"touch"===m.pointerType)){if($.highlightedRange&&!X){if((0,k.KC)(_,$.highlightedRange.start)){$.setAnchorDate($.highlightedRange.end),$.setFocusedDate(_),$.setDragging(!0),eo.current=!0;return}if((0,k.KC)(_,$.highlightedRange.end)){$.setAnchorDate($.highlightedRange.start),$.setFocusedDate(_),$.setDragging(!0),eo.current=!0;return}}let startDragging=()=>{$.setDragging(!0),es.current=null,$.selectDate(_),$.setFocusedDate(_),ei.current=!0};"touch"===m.pointerType?es.current=setTimeout(startDragging,200):startDragging()}},onPressEnd(){eo.current=!1,ei.current=!1,clearTimeout(es.current),es.current=null},onPress(){"anchorDate"in $||$.isReadOnly||($.selectDate(_),$.setFocusedDate(_))},onPressUp(m){if(!$.isReadOnly&&("anchorDate"in $&&es.current&&($.selectDate(_),$.setFocusedDate(_)),"anchorDate"in $)){if(eo.current)$.setAnchorDate(_);else if($.anchorDate&&!ei.current)$.selectDate(_),$.setFocusedDate(_);else if("keyboard"!==m.pointerType||$.anchorDate)"virtual"===m.pointerType&&($.selectDate(_),$.setFocusedDate(_));else{$.selectDate(_);let m=_.add({days:1});$.isInvalid(m)&&(m=_.subtract({days:1})),$.isInvalid(m)||$.setFocusedDate(m)}}}}),eu=null;V||(eu=(0,k.KC)(_,$.focusedDate)?0:-1),(0,T.useEffect)(()=>{H&&E.current&&((0,P.Ao)(E.current),"pointer"!==(0,R.Jz)()&&document.activeElement===E.current&&(0,P.Gt)(E.current,{containingElement:(0,P.rP)(E.current)}))},[H,E]);let ed=(0,S.aQ)({day:"numeric",timeZone:$.timeZone,calendar:_.calendar.identifier}),ef=(0,T.useMemo)(()=>ed.formatToParts(ee).find(m=>"day"===m.type).value,[ed,ee]);return{cellProps:{role:"gridcell","aria-disabled":!J||null,"aria-selected":W||null,"aria-invalid":X||null},buttonProps:(0,P.dG)(el,{onFocus(){V||$.setFocusedDate(_)},tabIndex:eu,role:"button","aria-disabled":!J||null,"aria-label":ea,"aria-invalid":X||null,"aria-describedby":[X?N:null,en["aria-describedby"]].filter(Boolean).join(" ")||void 0,onPointerEnter(m){"highlightDate"in $&&("touch"!==m.pointerType||$.isDragging)&&J&&$.highlightDate(_)},onPointerDown(m){"releasePointerCapture"in m.target&&m.target.releasePointerCapture(m.pointerId)},onContextMenu(m){m.preventDefault()}}),isPressed:ec,isFocused:H,isSelected:W,isDisabled:V,isUnavailable:G,isOutsideVisibleRange:0>_.compare($.visibleRange.start)||_.compare($.visibleRange.end)>0,isInvalid:X,formattedDate:ef}}},41501:function(m,$,E){"use strict";E.d($,{IZ:function(){return $16f0b7bb276bc17e$export$5591b0b878c1a989},kt:function(){return $6057a3d2a53a12fd$export$42df105a73306d51},wE:function(){return $887cac91b7cc8801$export$12fd5f0e9f4bb192},O7:function(){return $32489daedd52963e$export$1315d136e6f7581},C3:function(){return $16f0b7bb276bc17e$export$4c842f6a241dc825}});var _=E(26565),P=E(94625),S=E(2265);function $d191a55c9702f145$export$8467354a121f1b9f(m){let{id:$,label:E,"aria-labelledby":_,"aria-label":S,labelElementType:T="label"}=m;$=(0,P.Me)($);let k=(0,P.Me)(),R={};return E?(_=_?`${k} ${_}`:k,R={id:k,htmlFor:"label"===T?$:void 0}):_||S||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:R,fieldProps:(0,P.bE)({id:$,"aria-label":S,"aria-labelledby":_})}}function $2baaea4c71418dea$export$294aa081a6c6f55d(m){let{description:$,errorMessage:E,isInvalid:_,validationState:S}=m,{labelProps:T,fieldProps:k}=$d191a55c9702f145$export$8467354a121f1b9f(m),R=(0,P.mp)([!!$,!!E,_,S]),A=(0,P.mp)([!!$,!!E,_,S]);return{labelProps:T,fieldProps:k=(0,P.dG)(k,{"aria-describedby":[R,A,m["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:R},errorMessageProps:{id:A}}}var T=E(94482),k=E(40626),R=E(10387);try{new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(m){}try{new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(m){}let A=RegExp("^.*\\(.*\\).*$"),M=["latn","arab","hanidec"];let $6c7bd7858deea686$export$cd11ab140839f11d=class $6c7bd7858deea686$export$cd11ab140839f11d{parse(m){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,m).parse(m)}isValidPartialNumber(m,$,E){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,m).isValidPartialNumber(m,$,E)}getNumberingSystem(m){return $6c7bd7858deea686$var$getNumberParserImpl(this.locale,this.options,m).options.numberingSystem}constructor(m,$={}){this.locale=m,this.options=$}};let V=new Map;function $6c7bd7858deea686$var$getNumberParserImpl(m,$,E){let _=$6c7bd7858deea686$var$getCachedNumberParser(m,$);if(!m.includes("-nu-")&&!_.isValidPartialNumber(E)){for(let P of M)if(P!==_.options.numberingSystem){let _=$6c7bd7858deea686$var$getCachedNumberParser(m+(m.includes("-u-")?"-nu-":"-u-nu-")+P,$);if(_.isValidPartialNumber(E))return _}}return _}function $6c7bd7858deea686$var$getCachedNumberParser(m,$){let E=m+($?Object.entries($).sort((m,$)=>m[0]<$[0]?-1:1).join():""),_=V.get(E);return _||(_=new $6c7bd7858deea686$var$NumberParserImpl(m,$),V.set(E,_)),_}let $6c7bd7858deea686$var$NumberParserImpl=class $6c7bd7858deea686$var$NumberParserImpl{parse(m){let $=this.sanitize(m),E=($=$6c7bd7858deea686$var$replaceAll($,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index))?+$:NaN;if(isNaN(E))return NaN;if("accounting"===this.options.currencySign&&A.test(m)&&(E*=-1),"percent"===this.options.style){var _;E/=100,E=+E.toFixed((null!==(_=this.options.maximumFractionDigits)&&void 0!==_?_:0)+2)}return E}sanitize(m){return m=(m=m.replace(this.symbols.literals,"")).replace("-",this.symbols.minusSign),"arab"===this.options.numberingSystem&&(m=$6c7bd7858deea686$var$replaceAll(m=(m=m.replace(",",this.symbols.decimal)).replace(String.fromCharCode(1548),this.symbols.decimal),".",this.symbols.group)),"fr-FR"===this.options.locale&&(m=$6c7bd7858deea686$var$replaceAll(m,".",String.fromCharCode(8239))),m}isValidPartialNumber(m,$=-1/0,E=1/0){return(m=this.sanitize(m)).startsWith(this.symbols.minusSign)&&$<0?m=m.slice(this.symbols.minusSign.length):this.symbols.plusSign&&m.startsWith(this.symbols.plusSign)&&E>0&&(m=m.slice(this.symbols.plusSign.length)),!m.startsWith(this.symbols.group)&&0===(m=$6c7bd7858deea686$var$replaceAll(m,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,"")).length}constructor(m,$={}){this.formatter=new Intl.NumberFormat(m,$),this.options=this.formatter.resolvedOptions(),this.symbols=$6c7bd7858deea686$var$getSymbols(this.formatter,this.options,$)}};let N=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),j=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $6c7bd7858deea686$var$getSymbols(m,$,E){var _,P,S,T,k;let R=m.formatToParts(-10000.111),A=m.formatToParts(10000.111),M=j.map($=>m.formatToParts($)),V=null!==(k=null===(_=R.find(m=>"minusSign"===m.type))||void 0===_?void 0:_.value)&&void 0!==k?k:"-",B=null===(P=A.find(m=>"plusSign"===m.type))||void 0===P?void 0:P.value;B||(null==E?void 0:E.signDisplay)!=="exceptZero"&&(null==E?void 0:E.signDisplay)!=="always"||(B="+");let z=null===(S=R.find(m=>"decimal"===m.type))||void 0===S?void 0:S.value,W=null===(T=R.find(m=>"group"===m.type))||void 0===T?void 0:T.value,H=R.filter(m=>!N.has(m.type)).map(m=>$6c7bd7858deea686$var$escapeRegex(m.value)),G=M.flatMap(m=>m.filter(m=>!N.has(m.type)).map(m=>$6c7bd7858deea686$var$escapeRegex(m.value))),J=[...new Set([...H,...G])].sort((m,$)=>$.length-m.length),X=0===J.length?RegExp("[\\p{White_Space}]","gu"):RegExp(`${J.join("|")}|[\\p{White_Space}]`,"gu"),ee=[...new Intl.NumberFormat($.locale,{useGrouping:!1}).format(9876543210)].reverse(),et=new Map(ee.map((m,$)=>[m,$]));return{minusSign:V,plusSign:B,decimal:z,group:W,literals:X,numeral:RegExp(`[${ee.join("")}]`,"g"),index:m=>String(et.get(m))}}function $6c7bd7858deea686$var$replaceAll(m,$,E){return m.replaceAll?m.replaceAll($,E):m.split($).join(E)}function $6c7bd7858deea686$var$escapeRegex(m){return m.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var B=E(19092);function $parcel$interopDefault(m){return m&&m.__esModule?m.default:m}var z={};function $d2e8511e6f209edf$export$e908e06f4b8e3402(m){let $=(0,S.useRef)(),{value:E,textValue:_,minValue:T,maxValue:R,isDisabled:A,isReadOnly:M,isRequired:V,onIncrement:N,onIncrementPage:j,onDecrement:W,onDecrementPage:H,onDecrementToMin:G,onIncrementToMax:J}=m,X=(0,k.qb)($parcel$interopDefault(z)),clearAsync=()=>clearTimeout($.current);(0,S.useEffect)(()=>()=>clearAsync(),[]);let ee=(0,S.useRef)(!1),onFocus=()=>{ee.current=!0},onBlur=()=>{ee.current=!1};_=""===_?X.format("Empty"):(_||`${E}`).replace("-","−"),(0,S.useEffect)(()=>{ee.current&&((0,B.gb)("assertive"),(0,B.xQ)(_,"assertive"))},[_]);let et=(0,P.iW)(m=>{clearAsync(),N(),$.current=window.setTimeout(()=>{(isNaN(R)||isNaN(E)||E{clearAsync(),W(),$.current=window.setTimeout(()=>{(isNaN(T)||isNaN(E)||E>T)&&ea(60)},m)}),cancelContextMenu=m=>{m.preventDefault()},{addGlobalListener:er,removeAllGlobalListeners:en}=(0,P.xi)();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(E)?null:E,"aria-valuetext":_,"aria-valuemin":T,"aria-valuemax":R,"aria-disabled":A||null,"aria-readonly":M||null,"aria-required":V||null,onKeyDown:m=>{if(!m.ctrlKey&&!m.metaKey&&!m.shiftKey&&!m.altKey&&!M)switch(m.key){case"PageUp":if(j){m.preventDefault(),j();break}case"ArrowUp":case"Up":N&&(m.preventDefault(),N());break;case"PageDown":if(H){m.preventDefault(),H();break}case"ArrowDown":case"Down":W&&(m.preventDefault(),W());break;case"Home":G&&(m.preventDefault(),G());break;case"End":J&&(m.preventDefault(),J())}},onFocus:onFocus,onBlur:onBlur},incrementButtonProps:{onPressStart:()=>{et(400),er(window,"contextmenu",cancelContextMenu)},onPressEnd:()=>{clearAsync(),en()},onFocus:onFocus,onBlur:onBlur},decrementButtonProps:{onPressStart:()=>{ea(400),er(window,"contextmenu",cancelContextMenu)},onPressEnd:()=>{clearAsync(),en()},onFocus:onFocus,onBlur:onBlur}}}z={"ar-AE":{Empty:`فارغ`},"bg-BG":{Empty:`Изпразни`},"cs-CZ":{Empty:`Pr\xe1zdn\xe9`},"da-DK":{Empty:"Tom"},"de-DE":{Empty:"Leer"},"el-GR":{Empty:`Άδειο`},"en-US":{Empty:"Empty"},"es-ES":{Empty:`Vac\xedo`},"et-EE":{Empty:`T\xfchjenda`},"fi-FI":{Empty:`Tyhj\xe4`},"fr-FR":{Empty:"Vide"},"he-IL":{Empty:`ריק`},"hr-HR":{Empty:"Prazno"},"hu-HU":{Empty:`\xdcres`},"it-IT":{Empty:"Vuoto"},"ja-JP":{Empty:`空`},"ko-KR":{Empty:`비어 있음`},"lt-LT":{Empty:`Tuščias`},"lv-LV":{Empty:`Tukšs`},"nb-NO":{Empty:"Tom"},"nl-NL":{Empty:"Leeg"},"pl-PL":{Empty:"Pusty"},"pt-BR":{Empty:"Vazio"},"pt-PT":{Empty:"Vazio"},"ro-RO":{Empty:"Gol"},"ru-RU":{Empty:`Не заполнено`},"sk-SK":{Empty:`Pr\xe1zdne`},"sl-SI":{Empty:"Prazen"},"sr-SP":{Empty:"Prazno"},"sv-SE":{Empty:"Tomt"},"tr-TR":{Empty:`Boş`},"uk-UA":{Empty:`Пусто`},"zh-CN":{Empty:`空`},"zh-TW":{Empty:`空白`}};var W=E(40926);function import_$parcel$interopDefault(m){return m&&m.__esModule?m.default:m}var H={};function $3dfb0f96be0d6a08$export$4a931266a3838b86(m,$,E){let{direction:R}=(0,k.bU)(),A=(0,S.useMemo)(()=>(0,_.E7)($),[$]),focusLast=()=>{var m;let E=null===(m=window.event)||void 0===m?void 0:m.target,P=(0,_.QL)($.current,{tabbable:!0});if(E&&(P.currentNode=E,E=P.previousNode()),!E){let m;do(m=P.lastChild())&&(E=m);while(m)}for(;null==E?void 0:E.hasAttribute("data-placeholder");){let m=P.previousNode();if(m&&m.hasAttribute("data-placeholder"))E=m;else break}E&&E.focus()},{pressProps:M}=(0,T.r7)({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(m){"mouse"===m.pointerType&&focusLast()},onPress(m){"mouse"!==m.pointerType&&focusLast()}});return(0,P.dG)(M,{onKeyDown:$=>{if($.currentTarget.contains($.target)&&($.altKey&&("ArrowDown"===$.key||"ArrowUp"===$.key)&&"setOpen"in m&&($.preventDefault(),$.stopPropagation(),m.setOpen(!0)),!E))switch($.key){case"ArrowLeft":$.preventDefault(),$.stopPropagation(),"rtl"===R?A.focusNext():A.focusPrevious();break;case"ArrowRight":$.preventDefault(),$.stopPropagation(),"rtl"===R?A.focusPrevious():A.focusNext()}}})}H={"ar-AE":{calendar:`التقويم`,day:`يوم`,dayPeriod:`ص/م`,endDate:`تاريخ الانتهاء`,era:`العصر`,hour:`الساعات`,minute:`الدقائق`,month:`الشهر`,second:`الثواني`,selectedDateDescription:m=>`تاريخ محدد: ${m.date}`,selectedRangeDescription:m=>`المدى الزمني المحدد: ${m.startDate} إلى ${m.endDate}`,selectedTimeDescription:m=>`الوقت المحدد: ${m.time}`,startDate:`تاريخ البدء`,timeZoneName:`التوقيت`,weekday:`اليوم`,year:`السنة`},"bg-BG":{calendar:`Календар`,day:`ден`,dayPeriod:`пр.об./сл.об.`,endDate:`Крайна дата`,era:`ера`,hour:`час`,minute:`минута`,month:`месец`,second:`секунда`,selectedDateDescription:m=>`Избрана дата: ${m.date}`,selectedRangeDescription:m=>`Избран диапазон: ${m.startDate} до ${m.endDate}`,selectedTimeDescription:m=>`Избрано време: ${m.time}`,startDate:`Начална дата`,timeZoneName:`часова зона`,weekday:`ден от седмицата`,year:`година`},"cs-CZ":{calendar:`Kalend\xe1ř`,day:"den",dayPeriod:`č\xe1st dne`,endDate:`Konečn\xe9 datum`,era:`letopočet`,hour:"hodina",minute:"minuta",month:`měs\xedc`,second:"sekunda",selectedDateDescription:m=>`Vybran\xe9 datum: ${m.date}`,selectedRangeDescription:m=>`Vybran\xe9 obdob\xed: ${m.startDate} až ${m.endDate}`,selectedTimeDescription:m=>`Vybran\xfd čas: ${m.time}`,startDate:`Poč\xe1tečn\xed datum`,timeZoneName:`časov\xe9 p\xe1smo`,weekday:`den v t\xfddnu`,year:"rok"},"da-DK":{calendar:"Kalender",day:"dag",dayPeriod:"AM/PM",endDate:"Slutdato",era:`\xe6ra`,hour:"time",minute:"minut",month:`m\xe5ned`,second:"sekund",selectedDateDescription:m=>`Valgt dato: ${m.date}`,selectedRangeDescription:m=>`Valgt interval: ${m.startDate} til ${m.endDate}`,selectedTimeDescription:m=>`Valgt tidspunkt: ${m.time}`,startDate:"Startdato",timeZoneName:"tidszone",weekday:"ugedag",year:`\xe5r`},"de-DE":{calendar:"Kalender",day:"Tag",dayPeriod:`Tagesh\xe4lfte`,endDate:"Enddatum",era:"Epoche",hour:"Stunde",minute:"Minute",month:"Monat",second:"Sekunde",selectedDateDescription:m=>`Ausgew\xe4hltes Datum: ${m.date}`,selectedRangeDescription:m=>`Ausgew\xe4hlter Bereich: ${m.startDate} bis ${m.endDate}`,selectedTimeDescription:m=>`Ausgew\xe4hlte Zeit: ${m.time}`,startDate:"Anfangsdatum",timeZoneName:"Zeitzone",weekday:"Wochentag",year:"Jahr"},"el-GR":{calendar:`Ημερολόγιο`,day:`ημέρα`,dayPeriod:`π.μ./μ.μ.`,endDate:`Ημερομηνία λήξης`,era:`περίοδος`,hour:`ώρα`,minute:`λεπτό`,month:`μήνας`,second:`δευτερόλεπτο`,selectedDateDescription:m=>`Επιλεγμένη ημερομηνία: ${m.date}`,selectedRangeDescription:m=>`Επιλεγμένο εύρος: ${m.startDate} έως ${m.endDate}`,selectedTimeDescription:m=>`Επιλεγμένη ώρα: ${m.time}`,startDate:`Ημερομηνία έναρξης`,timeZoneName:`ζώνη ώρας`,weekday:`καθημερινή`,year:`έτος`},"en-US":{era:"era",year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",dayPeriod:"AM/PM",calendar:"Calendar",startDate:"Start Date",endDate:"End Date",weekday:"day of the week",timeZoneName:"time zone",selectedDateDescription:m=>`Selected Date: ${m.date}`,selectedRangeDescription:m=>`Selected Range: ${m.startDate} to ${m.endDate}`,selectedTimeDescription:m=>`Selected Time: ${m.time}`},"es-ES":{calendar:"Calendario",day:`d\xeda`,dayPeriod:`a.\xa0m./p.\xa0m.`,endDate:"Fecha final",era:"era",hour:"hora",minute:"minuto",month:"mes",second:"segundo",selectedDateDescription:m=>`Fecha seleccionada: ${m.date}`,selectedRangeDescription:m=>`Rango seleccionado: ${m.startDate} a ${m.endDate}`,selectedTimeDescription:m=>`Hora seleccionada: ${m.time}`,startDate:"Fecha de inicio",timeZoneName:"zona horaria",weekday:`d\xeda de la semana`,year:`a\xf1o`},"et-EE":{calendar:"Kalender",day:`p\xe4ev`,dayPeriod:`enne/p\xe4rast l\xf5unat`,endDate:`L\xf5ppkuup\xe4ev`,era:"ajastu",hour:"tund",minute:"minut",month:"kuu",second:"sekund",selectedDateDescription:m=>`Valitud kuup\xe4ev: ${m.date}`,selectedRangeDescription:m=>`Valitud vahemik: ${m.startDate} kuni ${m.endDate}`,selectedTimeDescription:m=>`Valitud aeg: ${m.time}`,startDate:`Alguskuup\xe4ev`,timeZoneName:`ajav\xf6\xf6nd`,weekday:`n\xe4dalap\xe4ev`,year:"aasta"},"fi-FI":{calendar:"Kalenteri",day:`p\xe4iv\xe4`,dayPeriod:"vuorokaudenaika",endDate:`P\xe4\xe4ttymisp\xe4iv\xe4`,era:"aikakausi",hour:"tunti",minute:"minuutti",month:"kuukausi",second:"sekunti",selectedDateDescription:m=>`Valittu p\xe4iv\xe4m\xe4\xe4r\xe4: ${m.date}`,selectedRangeDescription:m=>`Valittu aikav\xe4li: ${m.startDate} – ${m.endDate}`,selectedTimeDescription:m=>`Valittu aika: ${m.time}`,startDate:`Alkamisp\xe4iv\xe4`,timeZoneName:`aikavy\xf6hyke`,weekday:`viikonp\xe4iv\xe4`,year:"vuosi"},"fr-FR":{calendar:"Calendrier",day:"jour",dayPeriod:"cadran",endDate:"Date de fin",era:`\xe8re`,hour:"heure",minute:"minute",month:"mois",second:"seconde",selectedDateDescription:m=>`Date s\xe9lectionn\xe9e\xa0: ${m.date}`,selectedRangeDescription:m=>`Plage s\xe9lectionn\xe9e\xa0: ${m.startDate} au ${m.endDate}`,selectedTimeDescription:m=>`Heure choisie\xa0: ${m.time}`,startDate:`Date de d\xe9but`,timeZoneName:"fuseau horaire",weekday:"jour de la semaine",year:`ann\xe9e`},"he-IL":{calendar:`לוח שנה`,day:`יום`,dayPeriod:`לפנה״צ/אחה״צ`,endDate:`תאריך סיום`,era:`תקופה`,hour:`שעה`,minute:`דקה`,month:`חודש`,second:`שנייה`,selectedDateDescription:m=>`תאריך נבחר: ${m.date}`,selectedRangeDescription:m=>`טווח נבחר: ${m.startDate} עד ${m.endDate}`,selectedTimeDescription:m=>`זמן נבחר: ${m.time}`,startDate:`תאריך התחלה`,timeZoneName:`אזור זמן`,weekday:`יום בשבוע`,year:`שנה`},"hr-HR":{calendar:"Kalendar",day:"dan",dayPeriod:"AM/PM",endDate:`Datum završetka`,era:"era",hour:"sat",minute:"minuta",month:"mjesec",second:"sekunda",selectedDateDescription:m=>`Odabrani datum: ${m.date}`,selectedRangeDescription:m=>`Odabrani raspon: ${m.startDate} do ${m.endDate}`,selectedTimeDescription:m=>`Odabrano vrijeme: ${m.time}`,startDate:`Datum početka`,timeZoneName:"vremenska zona",weekday:"dan u tjednu",year:"godina"},"hu-HU":{calendar:`Napt\xe1r`,day:"nap",dayPeriod:"napszak",endDate:`Befejező d\xe1tum`,era:`\xe9ra`,hour:`\xf3ra`,minute:"perc",month:`h\xf3nap`,second:`m\xe1sodperc`,selectedDateDescription:m=>`Kijel\xf6lt d\xe1tum: ${m.date}`,selectedRangeDescription:m=>`Kijel\xf6lt tartom\xe1ny: ${m.startDate}–${m.endDate}`,selectedTimeDescription:m=>`Kijel\xf6lt idő: ${m.time}`,startDate:`Kezdő d\xe1tum`,timeZoneName:`időz\xf3na`,weekday:`h\xe9t napja`,year:`\xe9v`},"it-IT":{calendar:"Calendario",day:"giorno",dayPeriod:"AM/PM",endDate:"Data finale",era:"era",hour:"ora",minute:"minuto",month:"mese",second:"secondo",selectedDateDescription:m=>`Data selezionata: ${m.date}`,selectedRangeDescription:m=>`Intervallo selezionato: da ${m.startDate} a ${m.endDate}`,selectedTimeDescription:m=>`Ora selezionata: ${m.time}`,startDate:"Data iniziale",timeZoneName:"fuso orario",weekday:"giorno della settimana",year:"anno"},"ja-JP":{calendar:`カレンダー`,day:`日`,dayPeriod:`午前/午後`,endDate:`終了日`,era:`時代`,hour:`時`,minute:`分`,month:`月`,second:`秒`,selectedDateDescription:m=>`選択した日付 : ${m.date}`,selectedRangeDescription:m=>`選択範囲 : ${m.startDate} から ${m.endDate}`,selectedTimeDescription:m=>`選択した時間 : ${m.time}`,startDate:`開始日`,timeZoneName:`タイムゾーン`,weekday:`曜日`,year:`年`},"ko-KR":{calendar:`달력`,day:`일`,dayPeriod:`오전/오후`,endDate:`종료 날짜`,era:`연호`,hour:`시`,minute:`분`,month:`월`,second:`초`,selectedDateDescription:m=>`선택 일자: ${m.date}`,selectedRangeDescription:m=>`선택 범위: ${m.startDate} ~ ${m.endDate}`,selectedTimeDescription:m=>`선택 시간: ${m.time}`,startDate:`시작 날짜`,timeZoneName:`시간대`,weekday:`요일`,year:`년`},"lt-LT":{calendar:"Kalendorius",day:"diena",dayPeriod:`iki pietų / po pietų`,endDate:"Pabaigos data",era:"era",hour:"valanda",minute:`minutė`,month:`mėnuo`,second:`sekundė`,selectedDateDescription:m=>`Pasirinkta data: ${m.date}`,selectedRangeDescription:m=>`Pasirinktas intervalas: nuo ${m.startDate} iki ${m.endDate}`,selectedTimeDescription:m=>`Pasirinktas laikas: ${m.time}`,startDate:`Pradžios data`,timeZoneName:"laiko juosta",weekday:`savaitės diena`,year:"metai"},"lv-LV":{calendar:`Kalendārs`,day:"diena",dayPeriod:`priekšpusdienā/pēcpusdienā`,endDate:"Beigu datums",era:`ēra`,hour:"stundas",minute:`minūtes`,month:`mēnesis`,second:"sekundes",selectedDateDescription:m=>`Atlasītais datums: ${m.date}`,selectedRangeDescription:m=>`Atlasītais diapazons: no ${m.startDate} līdz ${m.endDate}`,selectedTimeDescription:m=>`Atlasītais laiks: ${m.time}`,startDate:`Sākuma datums`,timeZoneName:"laika josla",weekday:`nedēļas diena`,year:"gads"},"nb-NO":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Sluttdato",era:"tidsalder",hour:"time",minute:"minutt",month:`m\xe5ned`,second:"sekund",selectedDateDescription:m=>`Valgt dato: ${m.date}`,selectedRangeDescription:m=>`Valgt omr\xe5de: ${m.startDate} til ${m.endDate}`,selectedTimeDescription:m=>`Valgt tid: ${m.time}`,startDate:"Startdato",timeZoneName:"tidssone",weekday:"ukedag",year:`\xe5r`},"nl-NL":{calendar:"Kalender",day:"dag",dayPeriod:"a.m./p.m.",endDate:"Einddatum",era:"tijdperk",hour:"uur",minute:"minuut",month:"maand",second:"seconde",selectedDateDescription:m=>`Geselecteerde datum: ${m.date}`,selectedRangeDescription:m=>`Geselecteerd bereik: ${m.startDate} tot ${m.endDate}`,selectedTimeDescription:m=>`Geselecteerde tijd: ${m.time}`,startDate:"Startdatum",timeZoneName:"tijdzone",weekday:"dag van de week",year:"jaar"},"pl-PL":{calendar:"Kalendarz",day:`dzień`,dayPeriod:`rano / po południu / wieczorem`,endDate:`Data końcowa`,era:"era",hour:"godzina",minute:"minuta",month:`miesiąc`,second:"sekunda",selectedDateDescription:m=>`Wybrana data: ${m.date}`,selectedRangeDescription:m=>`Wybrany zakres: ${m.startDate} do ${m.endDate}`,selectedTimeDescription:m=>`Wybrany czas: ${m.time}`,startDate:`Data początkowa`,timeZoneName:"strefa czasowa",weekday:`dzień tygodnia`,year:"rok"},"pt-BR":{calendar:`Calend\xe1rio`,day:"dia",dayPeriod:"AM/PM",endDate:"Data final",era:"era",hour:"hora",minute:"minuto",month:`m\xeas`,second:"segundo",selectedDateDescription:m=>`Data selecionada: ${m.date}`,selectedRangeDescription:m=>`Intervalo selecionado: ${m.startDate} a ${m.endDate}`,selectedTimeDescription:m=>`Hora selecionada: ${m.time}`,startDate:"Data inicial",timeZoneName:`fuso hor\xe1rio`,weekday:"dia da semana",year:"ano"},"pt-PT":{calendar:`Calend\xe1rio`,day:"dia",dayPeriod:"am/pm",endDate:`Data de T\xe9rmino`,era:"era",hour:"hora",minute:"minuto",month:`m\xeas`,second:"segundo",selectedDateDescription:m=>`Data selecionada: ${m.date}`,selectedRangeDescription:m=>`Intervalo selecionado: ${m.startDate} a ${m.endDate}`,selectedTimeDescription:m=>`Hora selecionada: ${m.time}`,startDate:`Data de In\xedcio`,timeZoneName:`fuso hor\xe1rio`,weekday:"dia da semana",year:"ano"},"ro-RO":{calendar:"Calendar",day:"zi",dayPeriod:"a.m/p.m.",endDate:`Dată final`,era:`eră`,hour:`oră`,minute:"minut",month:`lună`,second:`secundă`,selectedDateDescription:m=>`Dată selectată: ${m.date}`,selectedRangeDescription:m=>`Interval selectat: de la ${m.startDate} p\xe2nă la ${m.endDate}`,selectedTimeDescription:m=>`Ora selectată: ${m.time}`,startDate:`Dată \xeenceput`,timeZoneName:"fus orar",weekday:`ziua din săptăm\xe2nă`,year:"an"},"ru-RU":{calendar:`Календарь`,day:`день`,dayPeriod:"AM/PM",endDate:`Дата окончания`,era:`эра`,hour:`час`,minute:`минута`,month:`месяц`,second:`секунда`,selectedDateDescription:m=>`Выбранная дата: ${m.date}`,selectedRangeDescription:m=>`Выбранный диапазон: с ${m.startDate} по ${m.endDate}`,selectedTimeDescription:m=>`Выбранное время: ${m.time}`,startDate:`Дата начала`,timeZoneName:`часовой пояс`,weekday:`день недели`,year:`год`},"sk-SK":{calendar:`Kalend\xe1r`,day:`deň`,dayPeriod:"AM/PM",endDate:`D\xe1tum ukončenia`,era:`letopočet`,hour:"hodina",minute:`min\xfata`,month:"mesiac",second:"sekunda",selectedDateDescription:m=>`Vybrat\xfd d\xe1tum: ${m.date}`,selectedRangeDescription:m=>`Vybrat\xfd rozsah: od ${m.startDate} do ${m.endDate}`,selectedTimeDescription:m=>`Vybrat\xfd čas: ${m.time}`,startDate:`D\xe1tum začatia`,timeZoneName:`časov\xe9 p\xe1smo`,weekday:`deň t\xfdždňa`,year:"rok"},"sl-SI":{calendar:"Koledar",day:"dan",dayPeriod:"dop/pop",endDate:"Datum konca",era:"doba",hour:"ura",minute:"minuta",month:"mesec",second:"sekunda",selectedDateDescription:m=>`Izbrani datum: ${m.date}`,selectedRangeDescription:m=>`Izbrano območje: ${m.startDate} do ${m.endDate}`,selectedTimeDescription:m=>`Izbrani čas: ${m.time}`,startDate:`Datum začetka`,timeZoneName:`časovni pas`,weekday:"dan v tednu",year:"leto"},"sr-SP":{calendar:"Kalendar",day:`дан`,dayPeriod:`пре подне/по подне`,endDate:`Datum završetka`,era:`ера`,hour:`сат`,minute:`минут`,month:`месец`,second:`секунд`,selectedDateDescription:m=>`Izabrani datum: ${m.date}`,selectedRangeDescription:m=>`Izabrani opseg: od ${m.startDate} do ${m.endDate}`,selectedTimeDescription:m=>`Izabrano vreme: ${m.time}`,startDate:`Datum početka`,timeZoneName:`временска зона`,weekday:`дан у недељи`,year:`година`},"sv-SE":{calendar:"Kalender",day:"dag",dayPeriod:"fm/em",endDate:"Slutdatum",era:"era",hour:"timme",minute:"minut",month:`m\xe5nad`,second:"sekund",selectedDateDescription:m=>`Valt datum: ${m.date}`,selectedRangeDescription:m=>`Valt intervall: ${m.startDate} till ${m.endDate}`,selectedTimeDescription:m=>`Vald tid: ${m.time}`,startDate:"Startdatum",timeZoneName:"tidszon",weekday:"veckodag",year:`\xe5r`},"tr-TR":{calendar:"Takvim",day:`g\xfcn`,dayPeriod:`\xd6\xd6/\xd6S`,endDate:`Bitiş Tarihi`,era:`\xe7ağ`,hour:"saat",minute:"dakika",month:"ay",second:"saniye",selectedDateDescription:m=>`Se\xe7ilen Tarih: ${m.date}`,selectedRangeDescription:m=>`Se\xe7ilen Aralık: ${m.startDate} - ${m.endDate}`,selectedTimeDescription:m=>`Se\xe7ilen Zaman: ${m.time}`,startDate:`Başlangı\xe7 Tarihi`,timeZoneName:"saat dilimi",weekday:`haftanın g\xfcn\xfc`,year:`yıl`},"uk-UA":{calendar:`Календар`,day:`день`,dayPeriod:`дп/пп`,endDate:`Дата завершення`,era:`ера`,hour:`година`,minute:`хвилина`,month:`місяць`,second:`секунда`,selectedDateDescription:m=>`Вибрана дата: ${m.date}`,selectedRangeDescription:m=>`Вибраний діапазон: ${m.startDate} — ${m.endDate}`,selectedTimeDescription:m=>`Вибраний час: ${m.time}`,startDate:`Дата початку`,timeZoneName:`часовий пояс`,weekday:`день тижня`,year:`рік`},"zh-CN":{calendar:`日历`,day:`日`,dayPeriod:`上午/下午`,endDate:`结束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:m=>`选定的日期:${m.date}`,selectedRangeDescription:m=>`选定的范围:${m.startDate} 至 ${m.endDate}`,selectedTimeDescription:m=>`选定的时间:${m.time}`,startDate:`开始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`},"zh-TW":{calendar:`日曆`,day:`日`,dayPeriod:`上午/下午`,endDate:`結束日期`,era:`纪元`,hour:`小时`,minute:`分钟`,month:`月`,second:`秒`,selectedDateDescription:m=>`選定的日期:${m.date}`,selectedRangeDescription:m=>`選定的範圍:${m.startDate} 至 ${m.endDate}`,selectedTimeDescription:m=>`選定的時間:${m.time}`,startDate:`開始日期`,timeZoneName:`时区`,weekday:`工作日`,year:`年`}};let G=new WeakMap,J="__role_"+Date.now(),X="__focusManager_"+Date.now();function $16f0b7bb276bc17e$export$5591b0b878c1a989(m,$,E){var R;let A;let{labelProps:M,fieldProps:V,descriptionProps:N,errorMessageProps:j}=$2baaea4c71418dea$export$294aa081a6c6f55d({...m,labelElementType:"span"}),{focusWithinProps:B}=(0,T.L_)({...m,onBlurWithin:E=>{$.confirmPlaceholder(),m.onBlur&&m.onBlur(E)},onFocusWithin:m.onFocus,onFocusWithinChange:m.onFocusChange}),z=(0,k.qb)(import_$parcel$interopDefault(H)),W="hour"===$.maxGranularity?"selectedTimeDescription":"selectedDateDescription",ee="hour"===$.maxGranularity?"time":"date",et=$.value?z.format(W,{[ee]:$.formatValue({month:"long"})}):"",ea=(0,P.PK)(et),er="presentation"===m[J]?V["aria-describedby"]:[ea["aria-describedby"],V["aria-describedby"]].filter(Boolean).join(" ")||void 0,en=m[X],ei=(0,S.useMemo)(()=>en||(0,_.E7)(E),[en,E]),eo=$3dfb0f96be0d6a08$export$4a931266a3838b86($,E,"presentation"===m[J]);G.set($,{ariaLabel:m["aria-label"],ariaLabelledBy:[M.id,m["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:er,focusManager:ei});let es=(0,S.useRef)(m.autoFocus);A="presentation"===m[J]?{role:"presentation"}:(0,P.dG)(V,{role:"group","aria-disabled":m.isDisabled||void 0,"aria-describedby":er}),(0,S.useEffect)(()=>{es.current&&ei.focusFirst(),es.current=!1},[ei]),(0,P.y$)(m.inputRef,$.value,$.setValue);let el=(0,P.zL)(m);return{labelProps:{...M,onClick:()=>{ei.focusFirst()}},fieldProps:(0,P.dG)(el,A,eo,B,{onKeyDown($){m.onKeyDown&&m.onKeyDown($)},onKeyUp($){m.onKeyUp&&m.onKeyUp($)}}),inputProps:{type:"hidden",name:m.name,value:(null===(R=$.value)||void 0===R?void 0:R.toString())||""},descriptionProps:N,errorMessageProps:j}}function $16f0b7bb276bc17e$export$4c842f6a241dc825(m,$,E){var _;let P=$16f0b7bb276bc17e$export$5591b0b878c1a989(m,$,E);return P.inputProps.value=(null===(_=$.timeValue)||void 0===_?void 0:_.toString())||"",P}function $6057a3d2a53a12fd$export$42df105a73306d51(m,$,E){let R=(0,P.Me)(),A=(0,P.Me)(),M=(0,P.Me)(),V=(0,k.qb)(import_$parcel$interopDefault(H)),{labelProps:N,fieldProps:j,descriptionProps:B,errorMessageProps:z}=$2baaea4c71418dea$export$294aa081a6c6f55d({...m,labelElementType:"span"}),W=$3dfb0f96be0d6a08$export$4a931266a3838b86($,E),G=j["aria-labelledby"]||j.id,{locale:X}=(0,k.bU)(),ee=$.formatValue(X,{month:"long"}),et=ee?V.format("selectedDateDescription",{date:ee}):"",ea=(0,P.PK)(et),er=[ea["aria-describedby"],j["aria-describedby"]].filter(Boolean).join(" ")||void 0,en=(0,P.zL)(m),ei=(0,S.useMemo)(()=>(0,_.E7)(E),[E]),{focusWithinProps:eo}=(0,T.L_)({...m,isDisabled:$.isOpen,onBlurWithin:m.onBlur,onFocusWithin:m.onFocus,onFocusWithinChange:m.onFocusChange});return{groupProps:(0,P.dG)(en,W,j,ea,eo,{role:"group","aria-disabled":m.isDisabled||null,"aria-labelledby":G,"aria-describedby":er,onKeyDown(E){!$.isOpen&&m.onKeyDown&&m.onKeyDown(E)},onKeyUp(E){!$.isOpen&&m.onKeyUp&&m.onKeyUp(E)}}),labelProps:{...N,onClick:()=>{ei.focusFirst()}},fieldProps:{...j,id:M,[J]:"presentation","aria-describedby":er,value:$.value,onChange:$.setValue,minValue:m.minValue,maxValue:m.maxValue,placeholderValue:m.placeholderValue,hideTimeZone:m.hideTimeZone,hourCycle:m.hourCycle,shouldForceLeadingZeros:m.shouldForceLeadingZeros,granularity:m.granularity,isDisabled:m.isDisabled,isReadOnly:m.isReadOnly,isRequired:m.isRequired,isInvalid:$.isInvalid,autoFocus:m.autoFocus,name:m.name},descriptionProps:B,errorMessageProps:z,buttonProps:{...ea,id:R,"aria-haspopup":"dialog","aria-label":V.format("calendar"),"aria-labelledby":`${R} ${G}`,"aria-describedby":er,"aria-expanded":$.isOpen,onPress:()=>$.setOpen(!0)},dialogProps:{id:A,"aria-labelledby":`${R} ${G}`},calendarProps:{autoFocus:!0,value:$.dateValue,onChange:$.setDateValue,minValue:m.minValue,maxValue:m.maxValue,isDisabled:m.isDisabled,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable,defaultFocusedValue:$.dateValue?void 0:m.placeholderValue,isInvalid:$.isInvalid,errorMessage:m.errorMessage}}}function $3aeceb3a64eb8358$export$d42c60378c8168f8(){let{locale:m}=(0,k.bU)();return(0,S.useMemo)(()=>{try{return new Intl.DisplayNames(m,{type:"dateTimeField"})}catch($){return new $3aeceb3a64eb8358$var$DisplayNamesPolyfill(m)}},[m])}let $3aeceb3a64eb8358$var$DisplayNamesPolyfill=class $3aeceb3a64eb8358$var$DisplayNamesPolyfill{of(m){return this.dictionary.getStringForLocale(m,this.locale)}constructor(m){this.locale=m,this.dictionary=new W.J(import_$parcel$interopDefault(H))}};function $32489daedd52963e$export$1315d136e6f7581(m,$,E){let _=(0,S.useRef)(""),{locale:T}=(0,k.bU)(),A=$3aeceb3a64eb8358$export$d42c60378c8168f8(),{ariaLabel:M,ariaLabelledBy:V,ariaDescribedBy:N,focusManager:j}=G.get($),B=m.isPlaceholder?"":m.text,z=(0,S.useMemo)(()=>$.dateFormatter.resolvedOptions(),[$.dateFormatter]),W=(0,k.aQ)({month:"long",timeZone:z.timeZone}),H=(0,k.aQ)({hour:"numeric",hour12:z.hour12,timeZone:z.timeZone});if("month"!==m.type||m.isPlaceholder)"hour"!==m.type||m.isPlaceholder||(B=H.format($.dateValue));else{let m=W.format($.dateValue);B=m!==B?`${B} – ${m}`:m}let{spinButtonProps:J}=$d2e8511e6f209edf$export$e908e06f4b8e3402({value:m.value,textValue:B,minValue:m.minValue,maxValue:m.maxValue,isDisabled:$.isDisabled,isReadOnly:$.isReadOnly||!m.isEditable,isRequired:$.isRequired,onIncrement:()=>{_.current="",$.increment(m.type)},onDecrement:()=>{_.current="",$.decrement(m.type)},onIncrementPage:()=>{_.current="",$.incrementPage(m.type)},onDecrementPage:()=>{_.current="",$.decrementPage(m.type)},onIncrementToMax:()=>{_.current="",$.setSegment(m.type,m.maxValue)},onDecrementToMin:()=>{_.current="",$.setSegment(m.type,m.minValue)}}),X=(0,S.useMemo)(()=>new $6c7bd7858deea686$export$cd11ab140839f11d(T,{maximumFractionDigits:0}),[T]),backspace=()=>{if(!X.isValidPartialNumber(m.text)||$.isReadOnly||m.isPlaceholder)"dayPeriod"===m.type&&$.clearSegment(m.type);else{let E=m.text.slice(0,-1),P=X.parse(E);0===E.length||0===P?$.clearSegment(m.type):$.setSegment(m.type,P),_.current=E}},{startsWith:ee}=(0,k.L0)({sensitivity:"base"}),et=(0,k.aQ)({hour:"numeric",hour12:!0}),ea=(0,S.useMemo)(()=>{let m=new Date;return m.setHours(0),et.formatToParts(m).find(m=>"dayPeriod"===m.type).value},[et]),er=(0,S.useMemo)(()=>{let m=new Date;return m.setHours(12),et.formatToParts(m).find(m=>"dayPeriod"===m.type).value},[et]),en=(0,k.aQ)({year:"numeric",era:"narrow",timeZone:"UTC"}),ei=(0,S.useMemo)(()=>{if("era"!==m.type)return[];let E=(0,R.Mw)(new R.aw(1,1,1),$.calendar),_=$.calendar.getEras().map(m=>{let $=E.set({year:1,month:1,day:1,era:m}).toDate("UTC");return{era:m,formatted:en.formatToParts($).find(m=>"era"===m.type).value}}),P=$32489daedd52963e$var$commonPrefixLength(_.map(m=>m.formatted));if(P)for(let m of _)m.formatted=m.formatted.slice(P);return _},[en,$.calendar,m.type]),onInput=E=>{if($.isDisabled||$.isReadOnly)return;let P=_.current+E;switch(m.type){case"dayPeriod":if(ee(ea,E))$.setSegment("dayPeriod",0);else if(ee(er,E))$.setSegment("dayPeriod",12);else break;j.focusNext();break;case"era":{let m=ei.find(m=>ee(m.formatted,E));m&&($.setSegment("era",m.era),j.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!X.isValidPartialNumber(P))return;let S=X.parse(P),T=S,k=0===m.minValue;if("hour"===m.type&&$.dateFormatter.resolvedOptions().hour12){switch($.dateFormatter.resolvedOptions().hourCycle){case"h11":S>11&&(T=X.parse(E));break;case"h12":k=!1,S>12&&(T=X.parse(E))}m.value>=12&&S>1&&(S+=12)}else S>m.maxValue&&(T=X.parse(E));if(isNaN(S))return;let R=0!==T||k;R&&$.setSegment(m.type,T),Number(S+"0")>m.maxValue||P.length>=String(m.maxValue).length?(_.current="",R&&j.focusNext()):_.current=P}}},eo=(0,S.useRef)("");(0,P.zX)(E,"beforeinput",_=>{switch(_.preventDefault(),_.inputType){case"deleteContentBackward":case"deleteContentForward":X.isValidPartialNumber(m.text)&&!$.isReadOnly&&backspace();break;case"insertCompositionText":eo.current=E.current.textContent,E.current.textContent=E.current.textContent;break;default:null!=_.data&&onInput(_.data)}}),(0,P.zX)(E,"input",m=>{let{inputType:$,data:_}=m;"insertCompositionText"===$&&(E.current.textContent=eo.current,(ee(ea,_)||ee(er,_))&&onInput(_))}),(0,P.bt)(()=>{let m=E.current;return()=>{document.activeElement!==m||j.focusPrevious()||j.focusNext()}},[E,j]);let es=(0,P.gn)()||"timeZoneName"===m.type?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};m===(0,S.useMemo)(()=>$.segments.find(m=>m.isEditable),[$.segments])||$.isInvalid||(N=void 0);let el=(0,P.Me)(),ec=!$.isDisabled&&!$.isReadOnly&&m.isEditable,eu="literal"===m.type?"":A.of(m.type),ed=(0,P.bE)({"aria-label":`${eu}${M?`, ${M}`:""}${V?", ":""}`,"aria-labelledby":V});return"literal"===m.type?{segmentProps:{"aria-hidden":!0}}:{segmentProps:(0,P.dG)(J,ed,{id:el,...es,"aria-invalid":$.isInvalid?"true":void 0,"aria-describedby":N,"aria-readonly":$.isReadOnly||!m.isEditable?"true":void 0,"data-placeholder":m.isPlaceholder||void 0,contentEditable:ec,suppressContentEditableWarning:ec,spellCheck:ec?"false":void 0,autoCapitalize:ec?"off":void 0,autoCorrect:ec?"off":void 0,[parseInt(S.version,10)>=17?"enterKeyHint":"enterkeyhint"]:ec?"next":void 0,inputMode:$.isDisabled||"dayPeriod"===m.type||"era"===m.type||!ec?void 0:"numeric",tabIndex:$.isDisabled?void 0:0,onKeyDown:m=>{if("a"===m.key&&((0,P.V5)()?m.metaKey:m.ctrlKey)&&m.preventDefault(),!m.ctrlKey&&!m.metaKey&&!m.shiftKey&&!m.altKey)switch(m.key){case"Backspace":case"Delete":m.preventDefault(),m.stopPropagation(),backspace()}},onFocus:()=>{_.current="",(0,P.Gt)(E.current,{containingElement:(0,P.rP)(E.current)}),window.getSelection().collapse(E.current)},style:{caretColor:"transparent"},onPointerDown(m){m.stopPropagation()},onMouseDown(m){m.stopPropagation()}})}}function $32489daedd52963e$var$commonPrefixLength(m){m.sort();let $=m[0],E=m[m.length-1];for(let m=0;m<$.length;m++)if($[m]!==E[m])return m;return 0}function $887cac91b7cc8801$export$12fd5f0e9f4bb192(m,$,E){var R,A;let M=(0,k.qb)(import_$parcel$interopDefault(H)),{labelProps:V,fieldProps:N,descriptionProps:j,errorMessageProps:B}=$2baaea4c71418dea$export$294aa081a6c6f55d({...m,labelElementType:"span"}),z=N["aria-labelledby"]||N.id,{locale:W}=(0,k.bU)(),G=$.formatValue(W,{month:"long"}),ee=G?M.format("selectedRangeDescription",{startDate:G.start,endDate:G.end}):"",et=(0,P.PK)(ee),ea={"aria-label":M.format("startDate"),"aria-labelledby":z},er={"aria-label":M.format("endDate"),"aria-labelledby":z},en=(0,P.Me)(),ei=(0,P.Me)(),eo=$3dfb0f96be0d6a08$export$4a931266a3838b86($,E),es=[et["aria-describedby"],N["aria-describedby"]].filter(Boolean).join(" ")||void 0,el=(0,S.useMemo)(()=>(0,_.E7)(E,{accept:m=>m.id!==en}),[E,en]),ec={[X]:el,[J]:"presentation","aria-describedby":es,minValue:m.minValue,maxValue:m.maxValue,placeholderValue:m.placeholderValue,hideTimeZone:m.hideTimeZone,hourCycle:m.hourCycle,granularity:m.granularity,shouldForceLeadingZeros:m.shouldForceLeadingZeros,isDisabled:m.isDisabled,isReadOnly:m.isReadOnly,isRequired:m.isRequired,isInvalid:$.isInvalid},eu=(0,P.zL)(m),{focusWithinProps:ed}=(0,T.L_)({...m,isDisabled:$.isOpen,onBlurWithin:m.onBlur,onFocusWithin:m.onFocus,onFocusWithinChange:m.onFocusChange});return{groupProps:(0,P.dG)(eu,eo,N,et,ed,{role:"group","aria-disabled":m.isDisabled||null,"aria-describedby":es,onKeyDown(E){!$.isOpen&&m.onKeyDown&&m.onKeyDown(E)},onKeyUp(E){!$.isOpen&&m.onKeyUp&&m.onKeyUp(E)}}),labelProps:{...V,onClick:()=>{el.focusFirst()}},buttonProps:{...et,id:en,"aria-haspopup":"dialog","aria-label":M.format("calendar"),"aria-labelledby":`${en} ${z}`,"aria-describedby":es,"aria-expanded":$.isOpen,onPress:()=>$.setOpen(!0)},dialogProps:{id:ei,"aria-labelledby":`${en} ${z}`},startFieldProps:{...ea,...ec,value:null===(R=$.value)||void 0===R?void 0:R.start,onChange:m=>$.setDateTime("start",m),autoFocus:m.autoFocus,name:m.startName},endFieldProps:{...er,...ec,value:null===(A=$.value)||void 0===A?void 0:A.end,onChange:m=>$.setDateTime("end",m),name:m.endName},descriptionProps:j,errorMessageProps:B,calendarProps:{autoFocus:!0,value:$.dateRange,onChange:$.setDateRange,minValue:m.minValue,maxValue:m.maxValue,isDisabled:m.isDisabled,isReadOnly:m.isReadOnly,isDateUnavailable:m.isDateUnavailable,allowsNonContiguousRanges:m.allowsNonContiguousRanges,defaultFocusedValue:$.dateRange?void 0:m.placeholderValue,isInvalid:$.isInvalid,errorMessage:m.errorMessage}}}},26565:function(m,$,E){"use strict";E.d($,{E7:function(){return $9bf71ea28793e738$export$c5251b9e124bf29},Fx:function(){return $f7dceffc5ad7768b$export$4e328f61c538687f},QL:function(){return $9bf71ea28793e738$export$2d6ec8fc375ceafa}});var _=E(2265),P=E(94625),S=E(94482);function $6a99195332edec8b$export$80f3e147d781571c(m){if("virtual"===(0,S.Jz)()){let $=document.activeElement;(0,P.QB)(()=>{document.activeElement===$&&document.contains(m)&&(0,P.Ao)(m)})}else(0,P.Ao)(m)}function $645f2e67b85a24c9$var$isStyleVisible(m){if(!(m instanceof HTMLElement)&&!(m instanceof SVGElement))return!1;let{display:$,visibility:E}=m.style,_="none"!==$&&"hidden"!==E&&"collapse"!==E;if(_){let{getComputedStyle:$}=m.ownerDocument.defaultView,{display:E,visibility:P}=$(m);_="none"!==E&&"hidden"!==P&&"collapse"!==P}return _}function $645f2e67b85a24c9$var$isAttributeVisible(m,$){return!m.hasAttribute("hidden")&&("DETAILS"!==m.nodeName||!$||"SUMMARY"===$.nodeName||m.hasAttribute("open"))}function $645f2e67b85a24c9$export$e989c0fffaa6b27a(m,$){return"#comment"!==m.nodeName&&$645f2e67b85a24c9$var$isStyleVisible(m)&&$645f2e67b85a24c9$var$isAttributeVisible(m,$)&&(!m.parentElement||$645f2e67b85a24c9$export$e989c0fffaa6b27a(m.parentElement,m))}let T=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],k=T.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";T.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let R=T.join(':not([hidden]):not([tabindex="-1"]),');function $9bf71ea28793e738$var$isElementInScope(m,$){return $.some($=>$.contains(m))}function $9bf71ea28793e738$var$focusElement(m,$=!1){if(null==m||$){if(null!=m)try{m.focus()}catch(m){}}else try{$6a99195332edec8b$export$80f3e147d781571c(m)}catch(m){}}function $9bf71ea28793e738$export$2d6ec8fc375ceafa(m,$,E){let _=(null==$?void 0:$.tabbable)?R:k,P=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode(m){var P;return(null==$?void 0:null===(P=$.from)||void 0===P?void 0:P.contains(m))?NodeFilter.FILTER_REJECT:m.matches(_)&&$645f2e67b85a24c9$export$e989c0fffaa6b27a(m)&&(!E||$9bf71ea28793e738$var$isElementInScope(m,E))&&(!(null==$?void 0:$.accept)||$.accept(m))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==$?void 0:$.from)&&(P.currentNode=$.from),P}function $9bf71ea28793e738$export$c5251b9e124bf29(m,$={}){return{focusNext(E={}){let _=m.current;if(!_)return;let{from:P,tabbable:S=$.tabbable,wrap:T=$.wrap,accept:k=$.accept}=E,R=P||document.activeElement,A=$9bf71ea28793e738$export$2d6ec8fc375ceafa(_,{tabbable:S,accept:k});_.contains(R)&&(A.currentNode=R);let M=A.nextNode();return!M&&T&&(A.currentNode=_,M=A.nextNode()),M&&$9bf71ea28793e738$var$focusElement(M,!0),M},focusPrevious(E=$){let _=m.current;if(!_)return;let{from:P,tabbable:S=$.tabbable,wrap:T=$.wrap,accept:k=$.accept}=E,R=P||document.activeElement,A=$9bf71ea28793e738$export$2d6ec8fc375ceafa(_,{tabbable:S,accept:k});if(_.contains(R))A.currentNode=R;else{let m=$9bf71ea28793e738$var$last(A);return m&&$9bf71ea28793e738$var$focusElement(m,!0),m}let M=A.previousNode();return!M&&T&&(A.currentNode=_,M=$9bf71ea28793e738$var$last(A)),M&&$9bf71ea28793e738$var$focusElement(M,!0),M},focusFirst(E=$){let _=m.current;if(!_)return;let{tabbable:P=$.tabbable,accept:S=$.accept}=E,T=$9bf71ea28793e738$export$2d6ec8fc375ceafa(_,{tabbable:P,accept:S}).nextNode();return T&&$9bf71ea28793e738$var$focusElement(T,!0),T},focusLast(E=$){let _=m.current;if(!_)return;let{tabbable:P=$.tabbable,accept:S=$.accept}=E,T=$9bf71ea28793e738$var$last($9bf71ea28793e738$export$2d6ec8fc375ceafa(_,{tabbable:P,accept:S}));return T&&$9bf71ea28793e738$var$focusElement(T,!0),T}}}function $9bf71ea28793e738$var$last(m){let $,E;do(E=m.lastChild())&&($=E);while(E);return $}let $9bf71ea28793e738$var$Tree=class $9bf71ea28793e738$var$Tree{get size(){return this.fastMap.size}getTreeNode(m){return this.fastMap.get(m)}addTreeNode(m,$,E){let _=this.fastMap.get(null!=$?$:null),P=new $9bf71ea28793e738$var$TreeNode({scopeRef:m});_.addChild(P),P.parent=_,this.fastMap.set(m,P),E&&(P.nodeToRestore=E)}addNode(m){this.fastMap.set(m.scopeRef,m)}removeTreeNode(m){if(null===m)return;let $=this.fastMap.get(m),E=$.parent;for(let m of this.traverse())m!==$&&$.nodeToRestore&&m.nodeToRestore&&$.scopeRef.current&&$9bf71ea28793e738$var$isElementInScope(m.nodeToRestore,$.scopeRef.current)&&(m.nodeToRestore=$.nodeToRestore);let _=$.children;E.removeChild($),_.size>0&&_.forEach(m=>E.addChild(m)),this.fastMap.delete($.scopeRef)}*traverse(m=this.root){if(null!=m.scopeRef&&(yield m),m.children.size>0)for(let $ of m.children)yield*this.traverse($)}clone(){let m=new $9bf71ea28793e738$var$Tree;for(let $ of this.traverse())m.addTreeNode($.scopeRef,$.parent.scopeRef,$.nodeToRestore);return m}constructor(){this.fastMap=new Map,this.root=new $9bf71ea28793e738$var$TreeNode({scopeRef:null}),this.fastMap.set(null,this.root)}};let $9bf71ea28793e738$var$TreeNode=class $9bf71ea28793e738$var$TreeNode{addChild(m){this.children.add(m),m.parent=this}removeChild(m){this.children.delete(m),m.parent=void 0}constructor(m){this.children=new Set,this.contain=!1,this.scopeRef=m.scopeRef}};function $f7dceffc5ad7768b$export$4e328f61c538687f(m={}){let{autoFocus:$=!1,isTextInput:E,within:P}=m,T=(0,_.useRef)({isFocused:!1,isFocusVisible:$||(0,S.E)()}),[k,R]=(0,_.useState)(!1),[A,M]=(0,_.useState)(()=>T.current.isFocused&&T.current.isFocusVisible),V=(0,_.useCallback)(()=>M(T.current.isFocused&&T.current.isFocusVisible),[]),N=(0,_.useCallback)(m=>{T.current.isFocused=m,R(m),V()},[V]);(0,S.mG)(m=>{T.current.isFocusVisible=m,V()},[],{isTextInput:E});let{focusProps:j}=(0,S.KK)({isDisabled:P,onFocusChange:N}),{focusWithinProps:B}=(0,S.L_)({isDisabled:!P,onFocusWithinChange:N});return{isFocused:k,isFocusVisible:A,focusProps:P?B:j}}new $9bf71ea28793e738$var$Tree},40626:function(m,$,E){"use strict";E.d($,{L0:function(){return $bb77f239b46e8c72$export$3274cf84b703fff},aQ:function(){return $896ba0a80a8f4d36$export$85fd5fdf27bacc79},bU:function(){return $18f2051aff69b9bf$export$43bb16f9c6d9e3f7},qb:function(){return $fca6afa0e843324b$export$f12b703ca79dfbb1}});var _=E(2265),P=E(94256),S=E(40926),T=E(10387),k=E(94625);let R=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),A=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $148a7a147e38ea7f$export$702d680b21cbd764(m){if(Intl.Locale){let $=new Intl.Locale(m).maximize().script;return R.has($)}let $=m.split("-")[0];return A.has($)}function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(){let m="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([m])}catch($){m="en-US"}return{locale:m,direction:$148a7a147e38ea7f$export$702d680b21cbd764(m)?"rtl":"ltr"}}let M=$1e5a04cdaf7d1af8$export$f09106e7c6677ec5(),V=new Set;function $1e5a04cdaf7d1af8$var$updateLocale(){for(let m of(M=$1e5a04cdaf7d1af8$export$f09106e7c6677ec5(),V))m(M)}function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a(){let m=(0,P.Av)(),[$,E]=(0,_.useState)(M);return((0,_.useEffect)(()=>(0===V.size&&window.addEventListener("languagechange",$1e5a04cdaf7d1af8$var$updateLocale),V.add(E),()=>{V.delete(E),0===V.size&&window.removeEventListener("languagechange",$1e5a04cdaf7d1af8$var$updateLocale)}),[]),m)?{locale:"en-US",direction:"ltr"}:$}let N=_.createContext(null);function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(){let m=$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();return(0,_.useContext)(N)||m}let j=new WeakMap;function $fca6afa0e843324b$var$getCachedDictionary(m){let $=j.get(m);return $||($=new S.J(m),j.set(m,$)),$}function $fca6afa0e843324b$export$f12b703ca79dfbb1(m){let{locale:$}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),E=(0,_.useMemo)(()=>$fca6afa0e843324b$var$getCachedDictionary(m),[m]);return(0,_.useMemo)(()=>new S.E($,E),[$,E])}function $896ba0a80a8f4d36$export$85fd5fdf27bacc79(m){m=(0,k.vE)(m,$896ba0a80a8f4d36$var$isEqual);let{locale:$}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7();return(0,_.useMemo)(()=>new T.CN($,m),[$,m])}function $896ba0a80a8f4d36$var$isEqual(m,$){if(m===$)return!0;let E=Object.keys(m),_=Object.keys($);if(E.length!==_.length)return!1;for(let _ of E)if($[_]!==m[_])return!1;return!0}let B=new Map;function $325a3faab7a68acd$export$a16aca283550c30d(m){let{locale:$}=$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),E=$+(m?Object.entries(m).sort((m,$)=>m[0]<$[0]?-1:1).join():"");if(B.has(E))return B.get(E);let _=new Intl.Collator($,m);return B.set(E,_),_}function $bb77f239b46e8c72$export$3274cf84b703fff(m){let $=$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",...m}),E=(0,_.useCallback)((m,E)=>0===E.length||(m=m.normalize("NFC"),E=E.normalize("NFC"),0===$.compare(m.slice(0,E.length),E)),[$]),P=(0,_.useCallback)((m,E)=>0===E.length||(m=m.normalize("NFC"),E=E.normalize("NFC"),0===$.compare(m.slice(-E.length),E)),[$]),S=(0,_.useCallback)((m,E)=>{if(0===E.length)return!0;m=m.normalize("NFC");let _=0,P=(E=E.normalize("NFC")).length;for(;_+P<=m.length;_++){let S=m.slice(_,_+P);if(0===$.compare(E,S))return!0}return!1},[$]);return(0,_.useMemo)(()=>({startsWith:E,endsWith:P,contains:S}),[E,P,S])}},94482:function(m,$,E){"use strict";E.d($,{Jz:function(){return $507fabe10e71c6fb$export$630ff653c5ada6a9},E:function(){return $507fabe10e71c6fb$export$b9b3dfddab17db27},KK:function(){return $a1ea59d68270f0dd$export$f8168d8dd8fd66e6},mG:function(){return $507fabe10e71c6fb$export$ec71b4b83ac08ec3},L_:function(){return $9ab94262bd0047c7$export$420e68273165f4ec},r7:function(){return $f6c31cce2adf654f$export$45712eceda6fad21}});var _=E(94625),P=E(2265);function _class_apply_descriptor_get(m,$){return $.get?$.get.call(m):$.value}function _class_extract_field_descriptor(m,$,E){if(!$.has(m))throw TypeError("attempted to "+E+" private field on non-instance");return $.get(m)}function _class_private_field_get(m,$){var E=_class_extract_field_descriptor(m,$,"get");return _class_apply_descriptor_get(m,E)}var S=E(73140);function _class_apply_descriptor_set(m,$,E){if($.set)$.set.call(m,E);else{if(!$.writable)throw TypeError("attempted to set read only private field");$.value=E}}function _class_private_field_set(m,$,E){var _=_class_extract_field_descriptor(m,$,"set");return _class_apply_descriptor_set(m,_,E),E}let T="default",k="",R=new WeakMap;function $14c0b72509d70225$export$16a4697467175487(m){(0,_.gn)()?("default"===T&&(k=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),T="disabled"):(m instanceof HTMLElement||m instanceof SVGElement)&&(R.set(m,m.style.userSelect),m.style.userSelect="none")}function $14c0b72509d70225$export$b0d6fa1ab32e3295(m){if((0,_.gn)())"disabled"===T&&(T="restoring",setTimeout(()=>{(0,_.QB)(()=>{"restoring"===T&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=k||""),k="",T="default")})},300));else if((m instanceof HTMLElement||m instanceof SVGElement)&&m&&R.has(m)){let $=R.get(m);"none"===m.style.userSelect&&(m.style.userSelect=$),""===m.getAttribute("style")&&m.removeAttribute("style"),R.delete(m)}}let A=P.createContext(null);function $f6c31cce2adf654f$var$usePressResponderContext(m){let $=(0,P.useContext)(A);if($){let{register:E,...P}=$;m=(0,_.dG)(P,m),E()}return(0,_.lE)($,m.ref),m}A.displayName="PressResponderContext";var M=new WeakMap;let $f6c31cce2adf654f$var$PressEvent=class $f6c31cce2adf654f$var$PressEvent{continuePropagation(){_class_private_field_set(this,M,!1)}get shouldStopPropagation(){return _class_private_field_get(this,M)}constructor(m,$,E){(0,S._)(this,M,{writable:!0,value:void 0}),_class_private_field_set(this,M,!0),this.type=m,this.pointerType=$,this.target=E.currentTarget,this.shiftKey=E.shiftKey,this.metaKey=E.metaKey,this.ctrlKey=E.ctrlKey,this.altKey=E.altKey}};let V=Symbol("linkClicked");function $f6c31cce2adf654f$export$45712eceda6fad21(m){let{onPress:$,onPressChange:E,onPressStart:S,onPressEnd:T,onPressUp:k,isDisabled:R,isPressed:A,preventFocusOnPress:M,shouldCancelOnPointerExit:N,allowTextSelectionOnPress:j,ref:B,...z}=$f6c31cce2adf654f$var$usePressResponderContext(m),[W,H]=(0,P.useState)(!1),G=(0,P.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:J,removeAllGlobalListeners:X}=(0,_.xi)(),ee=(0,_.iW)((m,$)=>{let _=G.current;if(R||_.didFirePressStart)return;let P=!0;if(_.isTriggeringEvent=!0,S){let E=new $f6c31cce2adf654f$var$PressEvent("pressstart",$,m);S(E),P=E.shouldStopPropagation}return E&&E(!0),_.isTriggeringEvent=!1,_.didFirePressStart=!0,H(!0),P}),et=(0,_.iW)((m,_,P=!0)=>{let S=G.current;if(!S.didFirePressStart)return;S.ignoreClickAfterPress=!0,S.didFirePressStart=!1,S.isTriggeringEvent=!0;let k=!0;if(T){let $=new $f6c31cce2adf654f$var$PressEvent("pressend",_,m);T($),k=$.shouldStopPropagation}if(E&&E(!1),H(!1),$&&P&&!R){let E=new $f6c31cce2adf654f$var$PressEvent("press",_,m);$(E),k&&(k=E.shouldStopPropagation)}return S.isTriggeringEvent=!1,k}),ea=(0,_.iW)((m,$)=>{let E=G.current;if(!R){if(k){E.isTriggeringEvent=!0;let _=new $f6c31cce2adf654f$var$PressEvent("pressup",$,m);return k(_),E.isTriggeringEvent=!1,_.shouldStopPropagation}return!0}}),er=(0,_.iW)(m=>{let $=G.current;$.isPressed&&($.isOverTarget&&et($f6c31cce2adf654f$var$createEvent($.target,m),$.pointerType,!1),$.isPressed=!1,$.isOverTarget=!1,$.activePointerId=null,$.pointerType=null,X(),j||$14c0b72509d70225$export$b0d6fa1ab32e3295($.target))}),en=(0,_.iW)(m=>{N&&er(m)}),ei=(0,P.useMemo)(()=>{let m=G.current,$={onKeyDown($){if($f6c31cce2adf654f$var$isValidKeyboardEvent($.nativeEvent,$.currentTarget)&&$.currentTarget.contains($.target)){$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($.target,$.key)&&$.preventDefault();let E=!0;m.isPressed||$.repeat||(m.target=$.currentTarget,m.isPressed=!0,E=ee($,"keyboard"),J(document,"keyup",onKeyUp,!1)),E&&$.stopPropagation(),$.metaKey&&(0,_.V5)()&&m.metaKeyEvents.set($.key,$.nativeEvent)}else"Meta"===$.key&&(m.metaKeyEvents=new Map)},onKeyUp($){$f6c31cce2adf654f$var$isValidKeyboardEvent($.nativeEvent,$.currentTarget)&&!$.repeat&&$.currentTarget.contains($.target)&&ea($f6c31cce2adf654f$var$createEvent(m.target,$),"keyboard")},onClick($){if((!$||$.currentTarget.contains($.target))&&$&&0===$.button&&!m.isTriggeringEvent&&!_.nG.isOpening){let E=!0;if(R&&$.preventDefault(),!m.ignoreClickAfterPress&&!m.ignoreEmulatedMouseEvents&&!m.isPressed&&("virtual"===m.pointerType||(0,_.Zj)($.nativeEvent))){R||M||(0,_.Ao)($.currentTarget);let m=ee($,"virtual"),P=ea($,"virtual"),S=et($,"virtual");E=m&&P&&S}m.ignoreEmulatedMouseEvents=!1,m.ignoreClickAfterPress=!1,E&&$.stopPropagation()}}},onKeyUp=$=>{var E,P;if(m.isPressed&&$f6c31cce2adf654f$var$isValidKeyboardEvent($,m.target)){$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard($.target,$.key)&&$.preventDefault();let E=$.target,S=et($f6c31cce2adf654f$var$createEvent(m.target,$),"keyboard",m.target.contains(E));X(),S&&$.stopPropagation(),"Enter"!==$.key&&$f6c31cce2adf654f$var$isHTMLAnchorLink(m.target)&&m.target.contains(E)&&!$[V]&&($[V]=!0,(0,_.nG)(m.target,$,!1)),m.isPressed=!1,null===(P=m.metaKeyEvents)||void 0===P||P.delete($.key)}else if("Meta"===$.key&&(null===(E=m.metaKeyEvents)||void 0===E?void 0:E.size)){let $=m.metaKeyEvents;for(let E of(m.metaKeyEvents=null,$.values()))m.target.dispatchEvent(new KeyboardEvent("keyup",E))}};if("undefined"!=typeof PointerEvent){$.onPointerDown=$=>{if(0!==$.button||!$.currentTarget.contains($.target))return;if((0,_.cr)($.nativeEvent)){m.pointerType="virtual";return}$f6c31cce2adf654f$var$shouldPreventDefault($.currentTarget)&&$.preventDefault(),m.pointerType=$.pointerType;let E=!0;m.isPressed||(m.isPressed=!0,m.isOverTarget=!0,m.activePointerId=$.pointerId,m.target=$.currentTarget,R||M||(0,_.Ao)($.currentTarget),j||$14c0b72509d70225$export$16a4697467175487(m.target),E=ee($,m.pointerType),J(document,"pointermove",onPointerMove,!1),J(document,"pointerup",onPointerUp,!1),J(document,"pointercancel",onPointerCancel,!1)),E&&$.stopPropagation()},$.onMouseDown=m=>{m.currentTarget.contains(m.target)&&0===m.button&&($f6c31cce2adf654f$var$shouldPreventDefault(m.currentTarget)&&m.preventDefault(),m.stopPropagation())},$.onPointerUp=$=>{$.currentTarget.contains($.target)&&"virtual"!==m.pointerType&&0===$.button&&$f6c31cce2adf654f$var$isOverTarget($,$.currentTarget)&&ea($,m.pointerType||$.pointerType)};let onPointerMove=$=>{$.pointerId===m.activePointerId&&($f6c31cce2adf654f$var$isOverTarget($,m.target)?m.isOverTarget||(m.isOverTarget=!0,ee($f6c31cce2adf654f$var$createEvent(m.target,$),m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,et($f6c31cce2adf654f$var$createEvent(m.target,$),m.pointerType,!1),en($)))},onPointerUp=$=>{$.pointerId===m.activePointerId&&m.isPressed&&0===$.button&&($f6c31cce2adf654f$var$isOverTarget($,m.target)?et($f6c31cce2adf654f$var$createEvent(m.target,$),m.pointerType):m.isOverTarget&&et($f6c31cce2adf654f$var$createEvent(m.target,$),m.pointerType,!1),m.isPressed=!1,m.isOverTarget=!1,m.activePointerId=null,m.pointerType=null,X(),j||$14c0b72509d70225$export$b0d6fa1ab32e3295(m.target))},onPointerCancel=m=>{er(m)};$.onDragStart=m=>{m.currentTarget.contains(m.target)&&er(m)}}else{$.onMouseDown=$=>{if(0===$.button&&$.currentTarget.contains($.target)){if($f6c31cce2adf654f$var$shouldPreventDefault($.currentTarget)&&$.preventDefault(),m.ignoreEmulatedMouseEvents){$.stopPropagation();return}m.isPressed=!0,m.isOverTarget=!0,m.target=$.currentTarget,m.pointerType=(0,_.Zj)($.nativeEvent)?"virtual":"mouse",R||M||(0,_.Ao)($.currentTarget),ee($,m.pointerType)&&$.stopPropagation(),J(document,"mouseup",onMouseUp,!1)}},$.onMouseEnter=$=>{if(!$.currentTarget.contains($.target))return;let E=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!0,E=ee($,m.pointerType)),E&&$.stopPropagation()},$.onMouseLeave=$=>{if(!$.currentTarget.contains($.target))return;let E=!0;m.isPressed&&!m.ignoreEmulatedMouseEvents&&(m.isOverTarget=!1,E=et($,m.pointerType,!1),en($)),E&&$.stopPropagation()},$.onMouseUp=$=>{$.currentTarget.contains($.target)&&!m.ignoreEmulatedMouseEvents&&0===$.button&&ea($,m.pointerType||"mouse")};let onMouseUp=$=>{if(0===$.button){if(m.isPressed=!1,X(),m.ignoreEmulatedMouseEvents){m.ignoreEmulatedMouseEvents=!1;return}$f6c31cce2adf654f$var$isOverTarget($,m.target)?et($f6c31cce2adf654f$var$createEvent(m.target,$),m.pointerType):m.isOverTarget&&et($f6c31cce2adf654f$var$createEvent(m.target,$),m.pointerType,!1),m.isOverTarget=!1}};$.onTouchStart=$=>{if(!$.currentTarget.contains($.target))return;let E=$f6c31cce2adf654f$var$getTouchFromEvent($.nativeEvent);E&&(m.activePointerId=E.identifier,m.ignoreEmulatedMouseEvents=!0,m.isOverTarget=!0,m.isPressed=!0,m.target=$.currentTarget,m.pointerType="touch",R||M||(0,_.Ao)($.currentTarget),j||$14c0b72509d70225$export$16a4697467175487(m.target),ee($,m.pointerType)&&$.stopPropagation(),J(window,"scroll",onScroll,!0))},$.onTouchMove=$=>{if(!$.currentTarget.contains($.target))return;if(!m.isPressed){$.stopPropagation();return}let E=$f6c31cce2adf654f$var$getTouchById($.nativeEvent,m.activePointerId),_=!0;E&&$f6c31cce2adf654f$var$isOverTarget(E,$.currentTarget)?m.isOverTarget||(m.isOverTarget=!0,_=ee($,m.pointerType)):m.isOverTarget&&(m.isOverTarget=!1,_=et($,m.pointerType,!1),en($)),_&&$.stopPropagation()},$.onTouchEnd=$=>{if(!$.currentTarget.contains($.target))return;if(!m.isPressed){$.stopPropagation();return}let E=$f6c31cce2adf654f$var$getTouchById($.nativeEvent,m.activePointerId),_=!0;E&&$f6c31cce2adf654f$var$isOverTarget(E,$.currentTarget)?(ea($,m.pointerType),_=et($,m.pointerType)):m.isOverTarget&&(_=et($,m.pointerType,!1)),_&&$.stopPropagation(),m.isPressed=!1,m.activePointerId=null,m.isOverTarget=!1,m.ignoreEmulatedMouseEvents=!0,j||$14c0b72509d70225$export$b0d6fa1ab32e3295(m.target),X()},$.onTouchCancel=$=>{$.currentTarget.contains($.target)&&($.stopPropagation(),m.isPressed&&er($))};let onScroll=$=>{m.isPressed&&$.target.contains(m.target)&&er({currentTarget:m.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};$.onDragStart=m=>{m.currentTarget.contains(m.target)&&er(m)}}return $},[J,R,M,X,j,er,en,et,ee,ea]);return(0,P.useEffect)(()=>()=>{j||$14c0b72509d70225$export$b0d6fa1ab32e3295(G.current.target)},[j]),{isPressed:A||W,pressProps:(0,_.dG)(z,ei)}}function $f6c31cce2adf654f$var$isHTMLAnchorLink(m){return"A"===m.tagName&&m.hasAttribute("href")}function $f6c31cce2adf654f$var$isValidKeyboardEvent(m,$){let{key:E,code:_}=m,P=$.getAttribute("role");return("Enter"===E||" "===E||"Spacebar"===E||"Space"===_)&&!($ instanceof HTMLInputElement&&!$f6c31cce2adf654f$var$isValidInputKey($,E)||$ instanceof HTMLTextAreaElement||$.isContentEditable)&&!(("link"===P||!P&&$f6c31cce2adf654f$var$isHTMLAnchorLink($))&&"Enter"!==E)}function $f6c31cce2adf654f$var$getTouchFromEvent(m){let{targetTouches:$}=m;return $.length>0?$[0]:null}function $f6c31cce2adf654f$var$getTouchById(m,$){let E=m.changedTouches;for(let m=0;m$.right)&&!($.left>m.right)&&!(m.top>$.bottom)&&!($.top>m.bottom)}function $f6c31cce2adf654f$var$isOverTarget(m,$){return $f6c31cce2adf654f$var$areRectanglesOverlapping($.getBoundingClientRect(),$f6c31cce2adf654f$var$getPointClientRect(m))}function $f6c31cce2adf654f$var$shouldPreventDefault(m){return!(m instanceof HTMLElement)||!m.hasAttribute("draggable")}function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(m,$){return m instanceof HTMLInputElement?!$f6c31cce2adf654f$var$isValidInputKey(m,$):m instanceof HTMLButtonElement?"submit"!==m.type&&"reset"!==m.type:!$f6c31cce2adf654f$var$isHTMLAnchorLink(m)}let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $f6c31cce2adf654f$var$isValidInputKey(m,$){return"checkbox"===m.type||"radio"===m.type?" "===$:N.has(m.type)}let $8a9cb279dc87e130$export$905e7fc544a71f36=class $8a9cb279dc87e130$export$905e7fc544a71f36{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(m,$){this.nativeEvent=$,this.target=$.target,this.currentTarget=$.currentTarget,this.relatedTarget=$.relatedTarget,this.bubbles=$.bubbles,this.cancelable=$.cancelable,this.defaultPrevented=$.defaultPrevented,this.eventPhase=$.eventPhase,this.isTrusted=$.isTrusted,this.timeStamp=$.timeStamp,this.type=m}};function $8a9cb279dc87e130$export$715c682d09d639cc(m){let $=(0,P.useRef)({isFocused:!1,observer:null});(0,_.bt)(()=>{let m=$.current;return()=>{m.observer&&(m.observer.disconnect(),m.observer=null)}},[]);let E=(0,_.iW)($=>{null==m||m($)});return(0,P.useCallback)(m=>{if(m.target instanceof HTMLButtonElement||m.target instanceof HTMLInputElement||m.target instanceof HTMLTextAreaElement||m.target instanceof HTMLSelectElement){$.current.isFocused=!0;let _=m.target;_.addEventListener("focusout",m=>{$.current.isFocused=!1,_.disabled&&E(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur",m)),$.current.observer&&($.current.observer.disconnect(),$.current.observer=null)},{once:!0}),$.current.observer=new MutationObserver(()=>{if($.current.isFocused&&_.disabled){$.current.observer.disconnect();let m=_===document.activeElement?null:document.activeElement;_.dispatchEvent(new FocusEvent("blur",{relatedTarget:m})),_.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:m}))}}),$.current.observer.observe(_,{attributes:!0,attributeFilter:["disabled"]})}},[E])}function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(m){let{isDisabled:$,onFocus:E,onBlur:_,onFocusChange:S}=m,T=(0,P.useCallback)(m=>{if(m.target===m.currentTarget)return _&&_(m),S&&S(!1),!0},[_,S]),k=$8a9cb279dc87e130$export$715c682d09d639cc(T),R=(0,P.useCallback)(m=>{m.target===m.currentTarget&&document.activeElement===m.target&&(E&&E(m),S&&S(!0),k(m))},[S,E,k]);return{focusProps:{onFocus:!$&&(E||S||_)?R:void 0,onBlur:!$&&(_||S)?T:void 0}}}let j=null,B=new Set,z=!1,W=!1,H=!1,G={Tab:!0,Escape:!0};function $507fabe10e71c6fb$var$triggerChangeHandlers(m,$){for(let E of B)E(m,$)}function $507fabe10e71c6fb$var$isValidKey(m){return!(m.metaKey||!(0,_.V5)()&&m.altKey||m.ctrlKey||"Control"===m.key||"Shift"===m.key||"Meta"===m.key)}function $507fabe10e71c6fb$var$handleKeyboardEvent(m){W=!0,$507fabe10e71c6fb$var$isValidKey(m)&&(j="keyboard",$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard",m))}function $507fabe10e71c6fb$var$handlePointerEvent(m){j="pointer",("mousedown"===m.type||"pointerdown"===m.type)&&(W=!0,$507fabe10e71c6fb$var$triggerChangeHandlers("pointer",m))}function $507fabe10e71c6fb$var$handleClickEvent(m){(0,_.Zj)(m)&&(W=!0,j="virtual")}function $507fabe10e71c6fb$var$handleFocusEvent(m){m.target!==window&&m.target!==document&&(W||H||(j="virtual",$507fabe10e71c6fb$var$triggerChangeHandlers("virtual",m)),W=!1,H=!1)}function $507fabe10e71c6fb$var$handleWindowBlur(){W=!1,H=!0}function $507fabe10e71c6fb$var$setupGlobalFocusEvents(){if("undefined"==typeof window||z)return;let m=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){W=!0,m.apply(this,arguments)},document.addEventListener("keydown",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("keyup",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("click",$507fabe10e71c6fb$var$handleClickEvent,!0),window.addEventListener("focus",$507fabe10e71c6fb$var$handleFocusEvent,!0),window.addEventListener("blur",$507fabe10e71c6fb$var$handleWindowBlur,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointermove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointerup",$507fabe10e71c6fb$var$handlePointerEvent,!0)):(document.addEventListener("mousedown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mousemove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mouseup",$507fabe10e71c6fb$var$handlePointerEvent,!0)),z=!0}function $507fabe10e71c6fb$export$b9b3dfddab17db27(){return"pointer"!==j}function $507fabe10e71c6fb$export$630ff653c5ada6a9(){return j}function $507fabe10e71c6fb$var$isKeyboardFocusEvent(m,$,E){return!(m&&"keyboard"===$&&E instanceof KeyboardEvent&&!G[E.key])}function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(m,$,E){$507fabe10e71c6fb$var$setupGlobalFocusEvents(),(0,P.useEffect)(()=>{let handler=($,_)=>{$507fabe10e71c6fb$var$isKeyboardFocusEvent(null==E?void 0:E.isTextInput,$,_)&&m($507fabe10e71c6fb$export$b9b3dfddab17db27())};return B.add(handler),()=>{B.delete(handler)}},$)}function $9ab94262bd0047c7$export$420e68273165f4ec(m){let{isDisabled:$,onBlurWithin:E,onFocusWithin:_,onFocusWithinChange:S}=m,T=(0,P.useRef)({isFocusWithin:!1}),k=(0,P.useCallback)(m=>{T.current.isFocusWithin&&!m.currentTarget.contains(m.relatedTarget)&&(T.current.isFocusWithin=!1,E&&E(m),S&&S(!1))},[E,S,T]),R=$8a9cb279dc87e130$export$715c682d09d639cc(k),A=(0,P.useCallback)(m=>{T.current.isFocusWithin||document.activeElement!==m.target||(_&&_(m),S&&S(!0),T.current.isFocusWithin=!0,R(m))},[_,S,R]);return $?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:A,onBlur:k}}}"undefined"!=typeof document&&("loading"!==document.readyState?$507fabe10e71c6fb$var$setupGlobalFocusEvents():document.addEventListener("DOMContentLoaded",$507fabe10e71c6fb$var$setupGlobalFocusEvents))},19092:function(m,$,E){"use strict";E.d($,{gb:function(){return $319e236875307eab$export$d10ae4f68404609a},xQ:function(){return $319e236875307eab$export$a9b970dcc4ae71a9}});let _=null;function $319e236875307eab$export$a9b970dcc4ae71a9(m,$="assertive",E=7e3){_||(_=new $319e236875307eab$var$LiveAnnouncer),_.announce(m,$,E)}function $319e236875307eab$export$d10ae4f68404609a(m){_&&_.clear(m)}let $319e236875307eab$var$LiveAnnouncer=class $319e236875307eab$var$LiveAnnouncer{createLog(m){let $=document.createElement("div");return $.setAttribute("role","log"),$.setAttribute("aria-live",m),$.setAttribute("aria-relevant","additions"),$}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(m,$="assertive",E=7e3){if(!this.node)return;let _=document.createElement("div");_.textContent=m,"assertive"===$?this.assertiveLog.appendChild(_):this.politeLog.appendChild(_),""!==m&&setTimeout(()=>{_.remove()},E)}clear(m){this.node&&(m&&"assertive"!==m||(this.assertiveLog.innerHTML=""),m&&"polite"!==m||(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}},94256:function(m,$,E){"use strict";E.d($,{Av:function(){return $b5e257d569688ac6$export$535bd6ca7f90a273},gP:function(){return A}});var _=E(2265);let P={prefix:String(Math.round(1e10*Math.random())),current:0},S=_.createContext(P),T=_.createContext(!1),k=!!("undefined"!=typeof window&&window.document&&window.document.createElement),R=new WeakMap;function $b5e257d569688ac6$var$useCounter(m=!1){let $=(0,_.useContext)(S),E=(0,_.useRef)(null);if(null===E.current&&!m){var P,T;let m=null===(P=_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===P?void 0:null===(T=P.ReactCurrentOwner)||void 0===T?void 0:T.current;if(m){let E=R.get(m);null==E?R.set(m,{id:$.current,state:m.memoizedState}):m.memoizedState!==E.state&&($.current=E.id,R.delete(m))}E.current=++$.current}return E.current}function $b5e257d569688ac6$var$useLegacySSRSafeId(m){let $=(0,_.useContext)(S);$!==P||k||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let E=$b5e257d569688ac6$var$useCounter(!!m),T=`react-aria${$.prefix}`;return m||`${T}-${E}`}function $b5e257d569688ac6$var$useModernSSRSafeId(m){let $=_.useId(),[E]=(0,_.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()),S=E?"react-aria":`react-aria${P.prefix}`;return m||`${S}-${$}`}let A="function"==typeof _.useId?$b5e257d569688ac6$var$useModernSSRSafeId:$b5e257d569688ac6$var$useLegacySSRSafeId;function $b5e257d569688ac6$var$getSnapshot(){return!1}function $b5e257d569688ac6$var$getServerSnapshot(){return!0}function $b5e257d569688ac6$var$subscribe(m){return()=>{}}function $b5e257d569688ac6$export$535bd6ca7f90a273(){return"function"==typeof _.useSyncExternalStore?_.useSyncExternalStore($b5e257d569688ac6$var$subscribe,$b5e257d569688ac6$var$getSnapshot,$b5e257d569688ac6$var$getServerSnapshot):(0,_.useContext)(T)}},94625:function(m,$,E){"use strict";E.d($,{zL:function(){return $65484d02dcb7eb3e$export$457c3d6518dd4c6f},Ao:function(){return $7215afc6de606d6b$export$de79e2c695e052f3},rP:function(){return $62d8ded9296f3872$export$cfa2225e87938781},gn:function(){return $c87311424ea30a05$export$fedb369cb70207f1},V5:function(){return $c87311424ea30a05$export$9ac100e40613ea10},Zj:function(){return $6a7db85432448f7f$export$60278871457622de},cr:function(){return $6a7db85432448f7f$export$29bf1b5f2c56cf63},dG:function(){return $3ef42575df84b30b$export$9d1611c77c2fe928},nG:function(){return $ea8dcbcb9ea1b556$export$95185d699e05d4d7},QB:function(){return $bbed8b41f857bcc0$export$24490316f764c430},Gt:function(){return $2f04cbc44ee30ce0$export$c826860796309d1b},vE:function(){return $5a387cc49350e6db$export$722debc0e56fea39},PK:function(){return $ef06256079686ba0$export$f8aeda7b10753fa1},iW:function(){return $8ae05eaa5c114e9c$export$7f54fc3180508a52},zX:function(){return $e9faafb641e167db$export$90fc3a17d93f704c},y$:function(){return $99facab73266f662$export$5add1d006293d136},xi:function(){return $03deb23ff14920c4$export$4eaf04e54aa8eed6},Me:function(){return $bdb11010cef70236$export$f680877a34711e37},bE:function(){return $313b98861ee5dd6c$export$d6875122194c7b44},bt:function(){return S},mp:function(){return $bdb11010cef70236$export$b4cc09c592e8fdb8},lE:function(){return $e7801be82b4b2a53$export$4debdb1a3f0fa79e},rf:function(){return $4f58c5f72bcf79f7$export$496315a1608d9602}});var _=E(2265),P=E(94256);function r(m){var $,E,_="";if("string"==typeof m||"number"==typeof m)_+=m;else if("object"==typeof m){if(Array.isArray(m))for($=0;${};function $8ae05eaa5c114e9c$export$7f54fc3180508a52(m){let $=(0,_.useRef)(null);return S(()=>{$.current=m},[m]),(0,_.useCallback)((...m)=>{let E=$.current;return E(...m)},[])}function $1dbecbe27a04f9af$export$14d238f342723f25(m){let[$,E]=(0,_.useState)(m),P=(0,_.useRef)(null),T=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{let m=P.current.next();if(m.done){P.current=null;return}$===m.value?T():E(m.value)});S(()=>{P.current&&T()});let k=$8ae05eaa5c114e9c$export$7f54fc3180508a52(m=>{P.current=m($),T()});return[$,k]}let T=new Map;function $bdb11010cef70236$export$f680877a34711e37(m){let[$,E]=(0,_.useState)(m),k=(0,_.useRef)(null),R=(0,P.gP)($),A=(0,_.useCallback)(m=>{k.current=m},[]);return T.set(R,A),S(()=>()=>{T.delete(R)},[R]),(0,_.useEffect)(()=>{let m=k.current;m&&(k.current=null,E(m))}),R}function $bdb11010cef70236$export$cd8c9cb68f842629(m,$){if(m===$)return m;let E=T.get(m);if(E)return E($),$;let _=T.get($);return _?(_(m),m):$}function $bdb11010cef70236$export$b4cc09c592e8fdb8(m=[]){let $=$bdb11010cef70236$export$f680877a34711e37(),[E,P]=$1dbecbe27a04f9af$export$14d238f342723f25($),T=(0,_.useCallback)(()=>{P(function*(){yield $,yield document.getElementById($)?$:void 0})},[$,P]);return S(T,[$,T,...m]),E}function $ff5963eb1fccf552$export$e08e3b67e392101e(...m){return(...$)=>{for(let E of m)"function"==typeof E&&E(...$)}}function $3ef42575df84b30b$export$9d1611c77c2fe928(...m){let $={...m[0]};for(let E=1;E=65&&90>=m.charCodeAt(2)?$[m]=$ff5963eb1fccf552$export$e08e3b67e392101e(E,P):("className"===m||"UNSAFE_className"===m)&&"string"==typeof E&&"string"==typeof P?$[m]=clsx_m(E,P):"id"===m&&E&&P?$.id=$bdb11010cef70236$export$cd8c9cb68f842629(E,P):$[m]=void 0!==P?P:E}}return $}let k=new Set(["id"]),R=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),A=new Set(["href","target","rel","download","ping","referrerPolicy"]),M=/^(data-.*)$/;function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(m,$={}){let{labelable:E,isLink:_,propNames:P}=$,S={};for(let $ in m)Object.prototype.hasOwnProperty.call(m,$)&&(k.has($)||E&&R.has($)||_&&A.has($)||(null==P?void 0:P.has($))||M.test($))&&(S[$]=m[$]);return S}function $7215afc6de606d6b$export$de79e2c695e052f3(m){if($7215afc6de606d6b$var$supportsPreventScroll())m.focus({preventScroll:!0});else{let $=$7215afc6de606d6b$var$getScrollableElements(m);m.focus(),$7215afc6de606d6b$var$restoreScrollPosition($)}}let V=null;function $7215afc6de606d6b$var$supportsPreventScroll(){if(null==V){V=!1;try{document.createElement("div").focus({get preventScroll(){return V=!0,!0}})}catch(m){}}return V}function $7215afc6de606d6b$var$getScrollableElements(m){for(var $=m.parentNode,E=[],_=document.scrollingElement||document.documentElement;$ instanceof HTMLElement&&$!==_;)($.offsetHeight<$.scrollHeight||$.offsetWidth<$.scrollWidth)&&E.push({element:$,scrollTop:$.scrollTop,scrollLeft:$.scrollLeft}),$=$.parentNode;return _ instanceof HTMLElement&&E.push({element:_,scrollTop:_.scrollTop,scrollLeft:_.scrollLeft}),E}function $7215afc6de606d6b$var$restoreScrollPosition(m){for(let{element:$,scrollTop:E,scrollLeft:_}of m)$.scrollTop=E,$.scrollLeft=_}function $c87311424ea30a05$var$testUserAgent(m){var $;return"undefined"!=typeof window&&null!=window.navigator&&((null===($=window.navigator.userAgentData)||void 0===$?void 0:$.brands.some($=>m.test($.brand)))||m.test(window.navigator.userAgent))}function $c87311424ea30a05$var$testPlatform(m){var $;return"undefined"!=typeof window&&null!=window.navigator&&m.test((null===($=window.navigator.userAgentData)||void 0===$?void 0:$.platform)||window.navigator.platform)}function $c87311424ea30a05$export$9ac100e40613ea10(){return $c87311424ea30a05$var$testPlatform(/^Mac/i)}function $c87311424ea30a05$export$186c6964ca17d99(){return $c87311424ea30a05$var$testPlatform(/^iPhone/i)}function $c87311424ea30a05$export$7bef049ce92e4224(){return $c87311424ea30a05$var$testPlatform(/^iPad/i)||$c87311424ea30a05$export$9ac100e40613ea10()&&navigator.maxTouchPoints>1}function $c87311424ea30a05$export$fedb369cb70207f1(){return $c87311424ea30a05$export$186c6964ca17d99()||$c87311424ea30a05$export$7bef049ce92e4224()}function $c87311424ea30a05$export$78551043582a6a98(){return $c87311424ea30a05$var$testUserAgent(/AppleWebKit/i)&&!$c87311424ea30a05$export$6446a186d09e379e()}function $c87311424ea30a05$export$6446a186d09e379e(){return $c87311424ea30a05$var$testUserAgent(/Chrome/i)}function $c87311424ea30a05$export$a11b0059900ceec8(){return $c87311424ea30a05$var$testUserAgent(/Android/i)}function $c87311424ea30a05$export$b7d78993b74f766d(){return $c87311424ea30a05$var$testUserAgent(/Firefox/i)}function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(m,$,E=!0){var _,P;let{metaKey:S,ctrlKey:T,altKey:k,shiftKey:R}=$;$c87311424ea30a05$export$b7d78993b74f766d()&&(null===(_=window.event)||void 0===_?void 0:null===(P=_.type)||void 0===P?void 0:P.startsWith("key"))&&"_blank"===m.target&&($c87311424ea30a05$export$9ac100e40613ea10()?S=!0:T=!0);let A=$c87311424ea30a05$export$78551043582a6a98()&&$c87311424ea30a05$export$9ac100e40613ea10()&&!$c87311424ea30a05$export$7bef049ce92e4224()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:S,ctrlKey:T,altKey:k,shiftKey:R}):new MouseEvent("click",{metaKey:S,ctrlKey:T,altKey:k,shiftKey:R,bubbles:!0,cancelable:!0});$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=E,$7215afc6de606d6b$export$de79e2c695e052f3(m),m.dispatchEvent(A),$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=!1}$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=!1;let N=new Map,j=new Set;function $bbed8b41f857bcc0$var$setupGlobalEvents(){if("undefined"==typeof window)return;let onTransitionEnd=m=>{let $=N.get(m.target);if($&&($.delete(m.propertyName),0===$.size&&(m.target.removeEventListener("transitioncancel",onTransitionEnd),N.delete(m.target)),0===N.size)){for(let m of j)m();j.clear()}};document.body.addEventListener("transitionrun",m=>{let $=N.get(m.target);$||($=new Set,N.set(m.target,$),m.target.addEventListener("transitioncancel",onTransitionEnd)),$.add(m.propertyName)}),document.body.addEventListener("transitionend",onTransitionEnd)}function $bbed8b41f857bcc0$export$24490316f764c430(m){requestAnimationFrame(()=>{0===N.size?m():j.add(m)})}function $03deb23ff14920c4$export$4eaf04e54aa8eed6(){let m=(0,_.useRef)(new Map),$=(0,_.useCallback)(($,E,_,P)=>{let S=(null==P?void 0:P.once)?(...$)=>{m.current.delete(_),_(...$)}:_;m.current.set(_,{type:E,eventTarget:$,fn:S,options:P}),$.addEventListener(E,_,P)},[]),E=(0,_.useCallback)(($,E,_,P)=>{var S;let T=(null===(S=m.current.get(_))||void 0===S?void 0:S.fn)||_;$.removeEventListener(E,T,P),m.current.delete(_)},[]),P=(0,_.useCallback)(()=>{m.current.forEach((m,$)=>{E(m.eventTarget,m.type,$,m.options)})},[E]);return(0,_.useEffect)(()=>P,[P]),{addGlobalListener:$,removeGlobalListener:E,removeAllGlobalListeners:P}}function $313b98861ee5dd6c$export$d6875122194c7b44(m,$){let{id:E,"aria-label":_,"aria-labelledby":P}=m;return E=$bdb11010cef70236$export$f680877a34711e37(E),P&&_?P=[...new Set([E,...P.trim().split(/\s+/)])].join(" "):P&&(P=P.trim().split(/\s+/).join(" ")),_||P||!$||(_=$),{id:E,"aria-label":_,"aria-labelledby":P}}function $4f58c5f72bcf79f7$export$496315a1608d9602(m,$){let E=(0,_.useRef)(!0),P=(0,_.useRef)(null);(0,_.useEffect)(()=>(E.current=!0,()=>{E.current=!1}),[]),(0,_.useEffect)(()=>{E.current?E.current=!1:(!P.current||$.some((m,$)=>!Object.is(m,P[$])))&&m(),P.current=$},$)}function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(m,$){S(()=>{if(m&&m.ref&&$)return m.ref.current=$.current,()=>{m.ref.current=null}})}function $62d8ded9296f3872$export$cfa2225e87938781(m){for($62d8ded9296f3872$export$2bb74740c4e19def(m)&&(m=m.parentElement);m&&!$62d8ded9296f3872$export$2bb74740c4e19def(m);)m=m.parentElement;return m||document.scrollingElement||document.documentElement}function $62d8ded9296f3872$export$2bb74740c4e19def(m){let $=window.getComputedStyle(m);return/(auto|scroll)/.test($.overflow+$.overflowX+$.overflowY)}"undefined"!=typeof document&&("loading"!==document.readyState?$bbed8b41f857bcc0$var$setupGlobalEvents():document.addEventListener("DOMContentLoaded",$bbed8b41f857bcc0$var$setupGlobalEvents)),"undefined"!=typeof document&&window.visualViewport;let B=0,z=new Map;function $ef06256079686ba0$export$f8aeda7b10753fa1(m){let[$,E]=(0,_.useState)(void 0);return S(()=>{if(!m)return;let $=z.get(m);if($)E($.element.id);else{let _=`react-aria-description-${B++}`;E(_);let P=document.createElement("div");P.id=_,P.style.display="none",P.textContent=m,document.body.appendChild(P),$={refCount:0,element:P},z.set(m,$)}return $.refCount++,()=>{0==--$.refCount&&($.element.remove(),z.delete(m))}},[m]),{"aria-describedby":m?$:void 0}}function $e9faafb641e167db$export$90fc3a17d93f704c(m,$,E,P){let S=$8ae05eaa5c114e9c$export$7f54fc3180508a52(E),T=null==E;(0,_.useEffect)(()=>{if(T)return;let E=m.current;return E.addEventListener($,S,P),()=>{E.removeEventListener($,S,P)}},[m,$,P,T,S])}function $2f04cbc44ee30ce0$export$53a0910f038337bd(m,$){let E=$2f04cbc44ee30ce0$var$relativeOffset(m,$,"left"),_=$2f04cbc44ee30ce0$var$relativeOffset(m,$,"top"),P=$.offsetWidth,S=$.offsetHeight,T=m.scrollLeft,k=m.scrollTop,{borderTopWidth:R,borderLeftWidth:A}=getComputedStyle(m),M=m.scrollLeft+parseInt(A,10),V=m.scrollTop+parseInt(R,10),N=M+m.clientWidth,j=V+m.clientHeight;E<=T?T=E-parseInt(A,10):E+P>N&&(T+=E+P-N),_<=V?k=_-parseInt(R,10):_+S>j&&(k+=_+S-j),m.scrollLeft=T,m.scrollTop=k}function $2f04cbc44ee30ce0$var$relativeOffset(m,$,E){let _="left"===E?"offsetLeft":"offsetTop",P=0;for(;$.offsetParent&&(P+=$[_],$.offsetParent!==m);){if($.offsetParent.contains(m)){P-=m[_];break}$=$.offsetParent}return P}function $2f04cbc44ee30ce0$export$c826860796309d1b(m,$){if(document.contains(m)){let T=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(T).overflow){let $=$62d8ded9296f3872$export$cfa2225e87938781(m);for(;m&&$&&m!==T&&$!==T;)$2f04cbc44ee30ce0$export$53a0910f038337bd($,m),$=$62d8ded9296f3872$export$cfa2225e87938781(m=$)}else{var E,_,P,S;let{left:T,top:k}=m.getBoundingClientRect();null==m||null===(E=m.scrollIntoView)||void 0===E||E.call(m,{block:"nearest"});let{left:R,top:A}=m.getBoundingClientRect();(Math.abs(T-R)>1||Math.abs(k-A)>1)&&(null==$||null===(_=$.containingElement)||void 0===_||null===(P=_.scrollIntoView)||void 0===P||P.call(_,{block:"center",inline:"center"}),null===(S=m.scrollIntoView)||void 0===S||S.call(m,{block:"nearest"}))}}}function $6a7db85432448f7f$export$60278871457622de(m){return 0===m.mozInputSource&&!!m.isTrusted||($c87311424ea30a05$export$a11b0059900ceec8()&&m.pointerType?"click"===m.type&&1===m.buttons:0===m.detail&&!m.pointerType)}function $6a7db85432448f7f$export$29bf1b5f2c56cf63(m){return!$c87311424ea30a05$export$a11b0059900ceec8()&&0===m.width&&0===m.height||1===m.width&&1===m.height&&0===m.pressure&&0===m.detail&&"mouse"===m.pointerType}function $5a387cc49350e6db$export$722debc0e56fea39(m,$){let E=(0,_.useRef)(null);return m&&E.current&&$(m,E.current)&&(m=E.current),E.current=m,m}function $99facab73266f662$export$5add1d006293d136(m,$,E){let P=(0,_.useRef)($),S=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{E&&E(P.current)});(0,_.useEffect)(()=>{var $;let E=null==m?void 0:null===($=m.current)||void 0===$?void 0:$.form;return null==E||E.addEventListener("reset",S),()=>{null==E||E.removeEventListener("reset",S)}},[m,S])}},61416:function(m,$,E){"use strict";E.d($,{T:function(){return $5c3e21d68f1c4674$export$439d29a4e110a164}});var _=E(94625),P=E(2265),S=E(94482);let T={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function $5c3e21d68f1c4674$export$a966af930f325cab(m={}){let{style:$,isFocusable:E}=m,[_,k]=(0,P.useState)(!1),{focusWithinProps:R}=(0,S.L_)({isDisabled:!E,onFocusWithinChange:m=>k(m)}),A=(0,P.useMemo)(()=>_?$:$?{...T,...$}:T,[_]);return{visuallyHiddenProps:{...R,style:A}}}function $5c3e21d68f1c4674$export$439d29a4e110a164(m){let{children:$,elementType:E="div",isFocusable:S,style:T,...k}=m,{visuallyHiddenProps:R}=$5c3e21d68f1c4674$export$a966af930f325cab(m);return P.createElement(E,(0,_.dG)(k,R),$)}},82867:function(m,$,E){"use strict";E.d($,{F:function(){return $131cf43a05231e1e$export$6d095e787d2b5e1f},t:function(){return $9a36b6ba2fb1a7c5$export$9a987164d97ecc90}});var _=E(10387),P=E(14114),S=E(2265);function $f62d864046160412$export$eac50920cf2fd59a(m,$,E){return null!=$&&0>m.compare($)||null!=E&&m.compare(E)>0}function $f62d864046160412$export$f4a51ff076cc9a09(m,$,E,_,P){let S={};for(let m in $)S[m]=Math.floor($[m]/2),S[m]>0&&$[m]%2==0&&S[m]--;let T=$f62d864046160412$export$144a00ba6044eb9(m,$,E).subtract(S);return $f62d864046160412$export$5bb865b12696a77d(m,T,$,E,_,P)}function $f62d864046160412$export$144a00ba6044eb9(m,$,E,P,S){let T=m;return $.years?T=(0,_.em)(m):$.months?T=(0,_.Nm)(m):$.weeks&&(T=(0,_.zJ)(m,E)),$f62d864046160412$export$5bb865b12696a77d(m,T,$,E,P,S)}function $f62d864046160412$export$530edbfc915b2b04(m,$,E,_,P){let S={...$};$.days?S.days--:$.weeks?S.weeks--:$.months?S.months--:$.years&&S.years--;let T=$f62d864046160412$export$144a00ba6044eb9(m,$,E).subtract(S);return $f62d864046160412$export$5bb865b12696a77d(m,T,$,E,_,P)}function $f62d864046160412$export$5bb865b12696a77d(m,$,E,P,S,T){return S&&m.compare(S)>=0&&($=(0,_.l7)($,$f62d864046160412$export$144a00ba6044eb9((0,_.WG)(S),E,P))),T&&0>=m.compare(T)&&($=(0,_.Mb)($,$f62d864046160412$export$530edbfc915b2b04((0,_.WG)(T),E,P))),$}function $f62d864046160412$export$4f5203c0d889109e(m,$,E){return $&&(m=(0,_.l7)(m,(0,_.WG)($))),E&&(m=(0,_.Mb)(m,(0,_.WG)(E))),m}function $f62d864046160412$export$a1d3911297b952d7(m,$,E){if(!E)return m;for(;m.compare($)>=0&&E(m);)m=m.subtract({days:1});if(m.compare($)>=0)return m}function $131cf43a05231e1e$export$6d095e787d2b5e1f(m){let $=(0,S.useMemo)(()=>new _.CN(m.locale),[m.locale]),E=(0,S.useMemo)(()=>$.resolvedOptions(),[$]),{locale:T,createCalendar:k,visibleDuration:R={months:1},minValue:A,maxValue:M,selectionAlignment:V,isDateUnavailable:N,pageBehavior:j="visible"}=m,B=(0,S.useMemo)(()=>k(E.calendar),[k,E.calendar]),[z,W]=(0,P.zk)(m.value,m.defaultValue,m.onChange),H=(0,S.useMemo)(()=>z?(0,_.Mw)((0,_.WG)(z),B):null,[z,B]),G=(0,S.useMemo)(()=>z&&"timeZone"in z?z.timeZone:E.timeZone,[z,E.timeZone]),J=(0,S.useMemo)(()=>m.focusedValue?$f62d864046160412$export$4f5203c0d889109e((0,_.Mw)((0,_.WG)(m.focusedValue),B),A,M):void 0,[m.focusedValue,B,A,M]),X=(0,S.useMemo)(()=>$f62d864046160412$export$4f5203c0d889109e(m.defaultFocusedValue?(0,_.Mw)((0,_.WG)(m.defaultFocusedValue),B):H||(0,_.Mw)((0,_.Lg)(G),B),A,M),[m.defaultFocusedValue,H,G,B,A,M]),[ee,et]=(0,P.zk)(J,X,m.onFocusChange),[ea,er]=(0,S.useState)(()=>{switch(V){case"start":return $f62d864046160412$export$144a00ba6044eb9(ee,R,T,A,M);case"end":return $f62d864046160412$export$530edbfc915b2b04(ee,R,T,A,M);default:return $f62d864046160412$export$f4a51ff076cc9a09(ee,R,T,A,M)}}),[en,ei]=(0,S.useState)(m.autoFocus||!1),eo=(0,S.useMemo)(()=>{let m={...R};return m.days?m.days--:m.days=-1,ea.add(m)},[ea,R]),[es,el]=(0,S.useState)(B.identifier);if(B.identifier!==es){let m=(0,_.Mw)(ee,B);er($f62d864046160412$export$f4a51ff076cc9a09(m,R,T,A,M)),et(m),el(B.identifier)}function focusCell(m){et(m=$f62d864046160412$export$4f5203c0d889109e(m,A,M))}function setValue($){!m.isDisabled&&!m.isReadOnly&&($=$f62d864046160412$export$a1d3911297b952d7($=$f62d864046160412$export$4f5203c0d889109e($,A,M),ea,N))&&($=(0,_.Mw)($,(null==z?void 0:z.calendar)||new _.IQ),z&&"hour"in z?W(z.set($)):W($))}$f62d864046160412$export$eac50920cf2fd59a(ee,A,M)?et($f62d864046160412$export$4f5203c0d889109e(ee,A,M)):0>ee.compare(ea)?er($f62d864046160412$export$530edbfc915b2b04(ee,R,T,A,M)):ee.compare(eo)>0&&er($f62d864046160412$export$144a00ba6044eb9(ee,R,T,A,M));let ec=(0,S.useMemo)(()=>!!H&&(!!(N&&N(H))||$f62d864046160412$export$eac50920cf2fd59a(H,A,M)),[H,N,A,M]),eu=m.isInvalid||"invalid"===m.validationState||ec,ed=(0,S.useMemo)(()=>"visible"===j?R:$131cf43a05231e1e$var$unitDuration(R),[j,R]);return{isDisabled:m.isDisabled,isReadOnly:m.isReadOnly,value:H,setValue:setValue,visibleRange:{start:ea,end:eo},minValue:A,maxValue:M,focusedDate:ee,timeZone:G,validationState:eu?"invalid":null,isValueInvalid:eu,setFocusedDate(m){focusCell(m),ei(!0)},focusNextDay(){focusCell(ee.add({days:1}))},focusPreviousDay(){focusCell(ee.subtract({days:1}))},focusNextRow(){R.days?this.focusNextPage():(R.weeks||R.months||R.years)&&focusCell(ee.add({weeks:1}))},focusPreviousRow(){R.days?this.focusPreviousPage():(R.weeks||R.months||R.years)&&focusCell(ee.subtract({weeks:1}))},focusNextPage(){let m=ea.add(ed);et($f62d864046160412$export$4f5203c0d889109e(ee.add(ed),A,M)),er($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(ee,m,ed,T,A,M),ed,T))},focusPreviousPage(){let m=ea.subtract(ed);et($f62d864046160412$export$4f5203c0d889109e(ee.subtract(ed),A,M)),er($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(ee,m,ed,T,A,M),ed,T))},focusSectionStart(){R.days?focusCell(ea):R.weeks?focusCell((0,_.zJ)(ee,T)):(R.months||R.years)&&focusCell((0,_.Nm)(ee))},focusSectionEnd(){R.days?focusCell(eo):R.weeks?focusCell((0,_.vV)(ee,T)):(R.months||R.years)&&focusCell((0,_.Vf)(ee))},focusNextSection(m){if(!m&&!R.days){focusCell(ee.add($131cf43a05231e1e$var$unitDuration(R)));return}R.days?this.focusNextPage():R.weeks?focusCell(ee.add({months:1})):(R.months||R.years)&&focusCell(ee.add({years:1}))},focusPreviousSection(m){if(!m&&!R.days){focusCell(ee.subtract($131cf43a05231e1e$var$unitDuration(R)));return}R.days?this.focusPreviousPage():R.weeks?focusCell(ee.subtract({months:1})):(R.months||R.years)&&focusCell(ee.subtract({years:1}))},selectFocusedDate(){setValue(ee)},selectDate(m){setValue(m)},isFocused:en,setFocused:ei,isInvalid:m=>$f62d864046160412$export$eac50920cf2fd59a(m,A,M),isSelected(m){return null!=H&&(0,_.KC)(m,H)&&!this.isCellDisabled(m)&&!this.isCellUnavailable(m)},isCellFocused:m=>en&&ee&&(0,_.KC)(m,ee),isCellDisabled($){return m.isDisabled||0>$.compare(ea)||$.compare(eo)>0||this.isInvalid($,A,M)},isCellUnavailable:$=>m.isDateUnavailable&&m.isDateUnavailable($),isPreviousVisibleRangeInvalid(){let m=ea.subtract({days:1});return(0,_.KC)(m,ea)||this.isInvalid(m,A,M)},isNextVisibleRangeInvalid(){let m=eo.add({days:1});return(0,_.KC)(m,eo)||this.isInvalid(m,A,M)},getDatesInWeek(m,$=ea){let E=$.add({weeks:m}),P=[];E=(0,_.zJ)(E,T);let S=(0,_.ji)(E,T);for(let m=0;m0&&(H="start")}let G=(0,S.useRef)(null),[J,X]=(0,S.useState)(null),ee=(0,S.useMemo)(()=>(0,_.l7)(M,null==J?void 0:J.start),[M,J]),et=(0,S.useMemo)(()=>(0,_.Mb)(V,null==J?void 0:J.end),[V,J]),ea=$131cf43a05231e1e$export$6d095e787d2b5e1f({...N,value:j&&j.start,createCalendar:k,locale:R,visibleDuration:A,minValue:ee,maxValue:et,selectionAlignment:H}),updateAvailableRange=$=>{$&&m.isDateUnavailable&&!m.allowsNonContiguousRanges?(G.current={start:$9a36b6ba2fb1a7c5$var$nextUnavailableDate($,ea,-1),end:$9a36b6ba2fb1a7c5$var$nextUnavailableDate($,ea,1)},X(G.current)):(G.current=null,X(null))},[er,en]=(0,S.useState)(ea.visibleRange);(0,_.N9)(ea.visibleRange.start,er.start)&&(0,_.N9)(ea.visibleRange.end,er.end)||(updateAvailableRange(z),en(ea.visibleRange));let setAnchorDate=m=>{m?(W(m),updateAvailableRange(m)):(W(null),updateAvailableRange(null))},ei=z?$9a36b6ba2fb1a7c5$var$makeRange(z,ea.focusedDate):j&&$9a36b6ba2fb1a7c5$var$makeRange(j.start,j.end),selectDate=$=>{if(!m.isReadOnly&&($=$f62d864046160412$export$a1d3911297b952d7($=$f62d864046160412$export$4f5203c0d889109e($,ee,et),ea.visibleRange.start,m.isDateUnavailable))){if(z){let m=$9a36b6ba2fb1a7c5$var$makeRange(z,$);B({start:$9a36b6ba2fb1a7c5$var$convertValue(m.start,null==j?void 0:j.start),end:$9a36b6ba2fb1a7c5$var$convertValue(m.end,null==j?void 0:j.end)}),setAnchorDate(null)}else setAnchorDate($)}},[eo,es]=(0,S.useState)(!1),{isDateUnavailable:el}=m,ec=(0,S.useMemo)(()=>!!j&&!z&&(!!(el&&(el(j.start)||el(j.end)))||$f62d864046160412$export$eac50920cf2fd59a(j.start,M,V)||$f62d864046160412$export$eac50920cf2fd59a(j.end,M,V)),[el,j,z,M,V]),eu=m.isInvalid||"invalid"===m.validationState||ec;return{...ea,value:j,setValue:B,anchorDate:z,setAnchorDate:setAnchorDate,highlightedRange:ei,validationState:eu?"invalid":null,isValueInvalid:eu,selectFocusedDate(){selectDate(ea.focusedDate)},selectDate:selectDate,highlightDate(m){z&&ea.setFocusedDate(m)},isSelected:m=>ei&&m.compare(ei.start)>=0&&0>=m.compare(ei.end)&&!ea.isCellDisabled(m)&&!ea.isCellUnavailable(m),isInvalid(m){var $,E;return ea.isInvalid(m)||$f62d864046160412$export$eac50920cf2fd59a(m,null===($=G.current)||void 0===$?void 0:$.start,null===(E=G.current)||void 0===E?void 0:E.end)},isDragging:eo,setDragging:es}}function $9a36b6ba2fb1a7c5$var$makeRange(m,$){return m&&$?(0>$.compare(m)&&([m,$]=[$,m]),{start:(0,_.WG)(m),end:(0,_.WG)($)}):null}function $9a36b6ba2fb1a7c5$var$convertValue(m,$){return(m=(0,_.Mw)(m,(null==$?void 0:$.calendar)||new _.IQ),$&&"hour"in $)?$.set(m):m}function $9a36b6ba2fb1a7c5$var$nextUnavailableDate(m,$,E){let _=m.add({days:E});for(;(E<0?_.compare($.visibleRange.start)>=0:0>=_.compare($.visibleRange.end))&&!$.isCellUnavailable(_);)_=_.add({days:E});return $.isCellUnavailable(_)?_.add({days:-E}):null}},41092:function(m,$,E){"use strict";E.d($,{RM:function(){return $3c0fc76039f1c516$export$60e84778edff6d26},N3:function(){return $ab5bf3f618090389$export$87194bb378cc3ac2},OV:function(){return $93c38a5e28be6249$export$e50a61c1de9f574},P$:function(){return $eff5d8ee529ac4bb$export$fd53cef0cc796101}});var _=E(10387),P=E(2265),S=E(14114);function $fc909762b330b746$export$61c6a8c84e605fb6(m){let[$,E]=(0,S.zk)(m.isOpen,m.defaultOpen||!1,m.onOpenChange),_=(0,P.useCallback)(()=>{E(!0)},[E]),T=(0,P.useCallback)(()=>{E(!1)},[E]),k=(0,P.useCallback)(()=>{E(!$)},[E,$]);return{isOpen:$,setOpen:E,open:_,close:T,toggle:k}}var T=E(40926);function $35a22f14a1f04b11$export$eac50920cf2fd59a(m,$,E){return null!=m&&(null!=$&&0>m.compare($)||null!=E&&m.compare(E)>0)}let k={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},R={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function $35a22f14a1f04b11$export$7e319ea407e63bc0(m,$){var E;m={...$.shouldForceLeadingZeros?R:k,...m};let _=$.granularity||"minute",P=Object.keys(m),S=P.indexOf(null!==(E=$.maxGranularity)&&void 0!==E?E:"year");S<0&&(S=0);let T=P.indexOf(_);if(T<0&&(T=2),S>T)throw Error("maxGranularity must be greater than granularity");let A=P.slice(S,T+1).reduce(($,E)=>($[E]=m[E],$),{});return null!=$.hourCycle&&(A.hour12=12===$.hourCycle),A.timeZone=$.timeZone||"UTC",("hour"===_||"minute"===_||"second"===_)&&$.timeZone&&!$.hideTimeZone&&(A.timeZoneName="short"),$.showEra&&0===S&&(A.era="short"),A}function $35a22f14a1f04b11$export$c5221a78ef73c5e9(m){return m&&"hour"in m?m:new _.qp}function $35a22f14a1f04b11$export$61a490a80c552550(m,$){return null===m?null:m?(0,_.Mw)(m,$):void 0}function $35a22f14a1f04b11$export$66aa2b09de4b1ea5(m,$,E,P){if(m)return $35a22f14a1f04b11$export$61a490a80c552550(m,E);let S=(0,_.Mw)((0,_.zO)(P).set({hour:0,minute:0,second:0,millisecond:0}),E);return"year"===$||"month"===$||"day"===$?(0,_.WG)(S):P?S:(0,_.IO)(S)}function $35a22f14a1f04b11$export$2440da353cedad43(m,$){let E=m&&"timeZone"in m?m.timeZone:void 0,_=m&&"minute"in m?"minute":"day";if(m&&$&&!($ in m))throw Error("Invalid granularity "+$+" for value "+m.toString());let[S,T]=(0,P.useState)([_,E]);return m&&(S[0]!==_||S[1]!==E)&&T([_,E]),$||($=m?_:S[0]),[$,m?E:S[1]]}function $ab5bf3f618090389$export$87194bb378cc3ac2(m){var $,E;let T=$fc909762b330b746$export$61c6a8c84e605fb6(m),[k,R]=(0,S.zk)(m.value,m.defaultValue||null,m.onChange),A=k||m.placeholderValue,[M,V]=$35a22f14a1f04b11$export$2440da353cedad43(A,m.granularity),N=null!=k?k.toDate(null!=V?V:"UTC"):null,j="hour"===M||"minute"===M||"second"===M,B=null===(E=m.shouldCloseOnSelect)||void 0===E||E,[z,W]=(0,P.useState)(null),[H,G]=(0,P.useState)(null);if(k&&(z=k,"hour"in k&&(H=k)),A&&!(M in A))throw Error("Invalid granularity "+M+" for value "+A.toString());let commitValue=(m,$)=>{R("timeZone"in $?$.set((0,_.WG)(m)):(0,_.IO)(m,$)),W(null),G(null)},J=m.isInvalid||"invalid"===m.validationState||$35a22f14a1f04b11$export$eac50920cf2fd59a(k,m.minValue,m.maxValue)||k&&(null===($=m.isDateUnavailable)||void 0===$?void 0:$.call(m,k)),X=m.validationState||(J?"invalid":null);return{value:k,setValue:R,dateValue:z,timeValue:H,setDateValue:$=>{let E="function"==typeof B?B():B;j?H||E?commitValue($,H||$35a22f14a1f04b11$export$c5221a78ef73c5e9(m.placeholderValue)):W($):R($),E&&T.setOpen(!1)},setTimeValue:m=>{z&&m?commitValue(z,m):G(m)},granularity:M,hasTime:j,...T,setOpen($){!$&&!k&&z&&j&&commitValue(z,H||$35a22f14a1f04b11$export$c5221a78ef73c5e9(m.placeholderValue)),T.setOpen($)},validationState:X,isInvalid:J,formatValue($,E){if(!N)return"";let P=$35a22f14a1f04b11$export$7e319ea407e63bc0(E,{granularity:M,timeZone:V,hideTimeZone:m.hideTimeZone,hourCycle:m.hourCycle,showEra:"gregory"===k.calendar.identifier&&"BC"===k.era});return new _.CN($,P).format(N)}}}let A=new T.J({ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"\xf1\xf1"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"\xe9\xe9\xe9\xe9",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},no:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"\xe5\xe5\xe5\xe5",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}},"en");function $3e3ed55ab2966714$export$d3f5c5e0a5023fa0(m,$,E){return"era"===m||"dayPeriod"===m?$:"year"===m||"month"===m||"day"===m?A.getStringForLocale(m,E):"––"}let M={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},V={year:5,month:2,day:7,hour:2,minute:15,second:15},N={dayperiod:"dayPeriod"};function $3c0fc76039f1c516$export$60e84778edff6d26(m){var $,E;let{locale:T,createCalendar:k,hideTimeZone:R,isDisabled:A,isReadOnly:j,isRequired:B}=m,z=m.value||m.defaultValue||m.placeholderValue,[W,H]=$35a22f14a1f04b11$export$2440da353cedad43(z,m.granularity),G=H||"UTC";if(z&&!(W in z))throw Error("Invalid granularity "+W+" for value "+z.toString());let J=(0,P.useMemo)(()=>new _.CN(T),[T]),X=(0,P.useMemo)(()=>k(J.resolvedOptions().calendar),[k,J]),[ee,et]=(0,S.zk)(m.value,m.defaultValue,m.onChange),ea=(0,P.useMemo)(()=>$35a22f14a1f04b11$export$61a490a80c552550(ee,X),[ee,X]),[er,en]=(0,P.useState)(()=>$35a22f14a1f04b11$export$66aa2b09de4b1ea5(m.placeholderValue,W,X,H)),ei=ea||er,eo="gregory"===X.identifier&&"BC"===ei.era,es=(0,P.useMemo)(()=>({granularity:W,maxGranularity:null!==($=m.maxGranularity)&&void 0!==$?$:"year",timeZone:H,hideTimeZone:R,hourCycle:m.hourCycle,showEra:eo,shouldForceLeadingZeros:m.shouldForceLeadingZeros}),[m.maxGranularity,W,m.hourCycle,m.shouldForceLeadingZeros,H,R,eo]),el=(0,P.useMemo)(()=>$35a22f14a1f04b11$export$7e319ea407e63bc0({},es),[es]),ec=(0,P.useMemo)(()=>new _.CN(T,el),[T,el]),eu=(0,P.useMemo)(()=>ec.resolvedOptions(),[ec]),ed=(0,P.useMemo)(()=>ec.formatToParts(new Date).filter(m=>M[m.type]).reduce((m,$)=>(m[$.type]=!0,m),{}),[ec]),[ef,ep]=(0,P.useState)(()=>m.value||m.defaultValue?{...ed}:{}),em=(0,P.useRef)(),eh=(0,P.useRef)(X.identifier);(0,P.useEffect)(()=>{X.identifier!==eh.current&&(eh.current=X.identifier,en($=>Object.keys(ef).length>0?(0,_.Mw)($,X):$35a22f14a1f04b11$export$66aa2b09de4b1ea5(m.placeholderValue,W,X,H)))},[X,W,ef,H,m.placeholderValue]),ee&&Object.keys(ef).length=Object.keys(ed).length?ea:er,setValue=$=>{if(m.isDisabled||m.isReadOnly)return;let E=Object.keys(ef),P=Object.keys(ed);null==$?(et(null),en($35a22f14a1f04b11$export$66aa2b09de4b1ea5(m.placeholderValue,W,X,H)),ep({})):E.length>=P.length||E.length===P.length-1&&ed.dayPeriod&&!ef.dayPeriod&&"dayPeriod"!==em.current?et($=(0,_.Mw)($,(null==z?void 0:z.calendar)||new _.IQ)):en($),em.current=null},eb=(0,P.useMemo)(()=>eg.toDate(G),[eg,G]),ev=(0,P.useMemo)(()=>ec.formatToParts(eb).map(m=>{let $=M[m.type];"era"===m.type&&1===X.getEras().length&&($=!1);let E=M[m.type]&&!ef[m.type],_=M[m.type]?$3e3ed55ab2966714$export$d3f5c5e0a5023fa0(m.type,m.value,T):null;return{type:N[m.type]||m.type,text:E?_:m.value,...$3c0fc76039f1c516$var$getSegmentLimits(eg,m.type,eu),isPlaceholder:E,placeholder:_,isEditable:$}}),[eb,ef,ec,eu,eg,X,T]);ed.era&&ef.year&&!ef.era?(ef.era=!0,ep({...ef})):!ed.era&&ef.era&&(delete ef.era,ep({...ef}));let markValid=m=>{ef[m]=!0,"year"===m&&ed.era&&(ef.era=!0),ep({...ef})},adjustSegment=(m,$)=>{if(ef[m])setValue($3c0fc76039f1c516$var$addSegment(eg,m,$,eu));else{markValid(m);let $=Object.keys(ef),E=Object.keys(ed);($.length>=E.length||$.length===E.length-1&&ed.dayPeriod&&!ef.dayPeriod)&&setValue(eg)}},e$=m.isInvalid||"invalid"===m.validationState||$35a22f14a1f04b11$export$eac50920cf2fd59a(ea,m.minValue,m.maxValue);return{value:ea,dateValue:eb,calendar:X,setValue:setValue,segments:ev,dateFormatter:ec,validationState:m.validationState||(e$?"invalid":null),isInvalid:e$,granularity:W,maxGranularity:null!==(E=m.maxGranularity)&&void 0!==E?E:"year",isDisabled:A,isReadOnly:j,isRequired:B,increment(m){adjustSegment(m,1)},decrement(m){adjustSegment(m,-1)},incrementPage(m){adjustSegment(m,V[m]||1)},decrementPage(m){adjustSegment(m,-(V[m]||1))},setSegment(m,$){markValid(m),setValue($3c0fc76039f1c516$var$setSegment(eg,m,$,eu))},confirmPlaceholder(){if(m.isDisabled||m.isReadOnly)return;let $=Object.keys(ef),E=Object.keys(ed);$.length===E.length-1&&ed.dayPeriod&&!ef.dayPeriod&&(ep(ef={...ed}),setValue(eg.copy()))},clearSegment($){delete ef[$],em.current=$,ep({...ef});let E=$35a22f14a1f04b11$export$66aa2b09de4b1ea5(m.placeholderValue,W,X,H),_=eg;if("dayPeriod"===$&&"hour"in eg&&"hour"in E){let m=eg.hour>=12,$=E.hour>=12;m&&!$?_=eg.set({hour:eg.hour-12}):!m&&$&&(_=eg.set({hour:eg.hour+12}))}else $ in eg&&(_=eg.set({[$]:E[$]}));et(null),setValue(_)},formatValue(m){if(!ea)return"";let $=$35a22f14a1f04b11$export$7e319ea407e63bc0(m,es);return new _.CN(T,$).format(eb)}}}function $3c0fc76039f1c516$var$getSegmentLimits(m,$,E){switch($){case"era":{let $=m.calendar.getEras();return{value:$.indexOf(m.era),minValue:0,maxValue:$.length-1}}case"year":return{value:m.year,minValue:1,maxValue:m.calendar.getYearsInEra(m)};case"month":return{value:m.month,minValue:(0,_.jx)(m),maxValue:m.calendar.getMonthsInYear(m)};case"day":return{value:m.day,minValue:(0,_.PA)(m),maxValue:m.calendar.getDaysInMonth(m)}}if("hour"in m)switch($){case"dayPeriod":return{value:m.hour>=12?12:0,minValue:0,maxValue:12};case"hour":if(E.hour12){let $=m.hour>=12;return{value:m.hour,minValue:$?12:0,maxValue:$?23:11}}return{value:m.hour,minValue:0,maxValue:23};case"minute":return{value:m.minute,minValue:0,maxValue:59};case"second":return{value:m.second,minValue:0,maxValue:59}}return{}}function $3c0fc76039f1c516$var$addSegment(m,$,E,_){switch($){case"era":case"year":case"month":case"day":return m.cycle($,E,{round:"year"===$})}if("hour"in m)switch($){case"dayPeriod":{let $=m.hour;return m.set({hour:$>=12?$-12:$+12})}case"hour":case"minute":case"second":return m.cycle($,E,{round:"hour"!==$,hourCycle:_.hour12?12:24})}}function $3c0fc76039f1c516$var$setSegment(m,$,E,_){switch($){case"day":case"month":case"year":case"era":return m.set({[$]:E})}if("hour"in m)switch($){case"dayPeriod":{let $=m.hour,_=$>=12;if(E>=12===_)return m;return m.set({hour:_?$-12:$+12})}case"hour":if(_.hour12){let $=m.hour>=12;$||12!==E||(E=0),$&&E<12&&(E+=12)}case"minute":case"second":return m.set({[$]:E})}}function $93c38a5e28be6249$export$e50a61c1de9f574(m){var $,E,T;let k=$fc909762b330b746$export$61c6a8c84e605fb6(m),[R,A]=(0,S.zk)(m.value,m.defaultValue||null,m.onChange),[M,V]=(0,P.useState)(()=>R||{start:null,end:null});null==R&&M.start&&M.end&&V(M={start:null,end:null});let N=R||M,setValue=m=>{V(m||{start:null,end:null}),(null==m?void 0:m.start)&&m.end?A(m):A(null)},[j]=$35a22f14a1f04b11$export$2440da353cedad43((null==N?void 0:N.start)||(null==N?void 0:N.end)||m.placeholderValue,m.granularity),B="hour"===j||"minute"===j||"second"===j,z=null===(T=m.shouldCloseOnSelect)||void 0===T||T,[W,H]=(0,P.useState)(null),[G,J]=(0,P.useState)(null);N&&N.start&&N.end&&(W=N,"hour"in N.start&&(G=N));let commitValue=(m,$)=>{setValue({start:"timeZone"in $.start?$.start.set((0,_.WG)(m.start)):(0,_.IO)(m.start,$.start),end:"timeZone"in $.end?$.end.set((0,_.WG)(m.end)):(0,_.IO)(m.end,$.end)}),H(null),J(null)},setDateRange=$=>{let E="function"==typeof z?z():z;B?E||$.start&&$.end&&(null==G?void 0:G.start)&&(null==G?void 0:G.end)?commitValue($,{start:(null==G?void 0:G.start)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(m.placeholderValue),end:(null==G?void 0:G.end)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(m.placeholderValue)}):H($):$.start&&$.end?setValue($):H($),E&&k.setOpen(!1)},setTimeRange=m=>{(null==W?void 0:W.start)&&(null==W?void 0:W.end)&&m.start&&m.end?commitValue(W,m):J(m)},X=m.isInvalid||"invalid"===m.validationState||null!=N&&($35a22f14a1f04b11$export$eac50920cf2fd59a(N.start,m.minValue,m.maxValue)||$35a22f14a1f04b11$export$eac50920cf2fd59a(N.end,m.minValue,m.maxValue)||null!=N.end&&null!=N.start&&0>N.end.compare(N.start)||(null==N?void 0:N.start)&&(null===($=m.isDateUnavailable)||void 0===$?void 0:$.call(m,N.start))||(null==N?void 0:N.end)&&(null===(E=m.isDateUnavailable)||void 0===E?void 0:E.call(m,N.end))),ee=m.validationState||(X?"invalid":null);return{value:N,setValue:setValue,dateRange:W,timeRange:G,granularity:j,hasTime:B,setDate(m,$){setDateRange({...W,[m]:$})},setTime(m,$){setTimeRange({...G,[m]:$})},setDateTime(m,$){setValue({...N,[m]:$})},setDateRange:setDateRange,setTimeRange:setTimeRange,...k,setOpen($){!$&&!((null==N?void 0:N.start)&&(null==N?void 0:N.end))&&(null==W?void 0:W.start)&&(null==W?void 0:W.end)&&B&&commitValue(W,{start:(null==G?void 0:G.start)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(m.placeholderValue),end:(null==G?void 0:G.end)||$35a22f14a1f04b11$export$c5221a78ef73c5e9(m.placeholderValue)}),k.setOpen($)},validationState:ee,isInvalid:X,formatValue($,E){let P;if(!N||!N.start||!N.end)return null;let S="timeZone"in N.start?N.start.timeZone:void 0,T=m.granularity||(N.start&&"minute"in N.start?"minute":"day"),k="timeZone"in N.end?N.end.timeZone:void 0,R=m.granularity||(N.end&&"minute"in N.end?"minute":"day"),A=$35a22f14a1f04b11$export$7e319ea407e63bc0(E,{granularity:T,timeZone:S,hideTimeZone:m.hideTimeZone,hourCycle:m.hourCycle,showEra:"gregory"===N.start.calendar.identifier&&"BC"===N.start.era||"gregory"===N.end.calendar.identifier&&"BC"===N.end.era}),M=N.start.toDate(S||"UTC"),V=N.end.toDate(k||"UTC"),j=new _.CN($,A);if(S===k&&T===R&&0!==N.start.compare(N.end)){try{let m=j.formatRangeToParts(M,V),$=-1;for(let E=0;E$&&(_+=m[P].value);return{start:E,end:_}}catch(m){}P=j}else{let S=$35a22f14a1f04b11$export$7e319ea407e63bc0(E,{granularity:R,timeZone:k,hideTimeZone:m.hideTimeZone,hourCycle:m.hourCycle});P=new _.CN($,S)}return{start:j.format(M),end:P.format(V)}}}}function $eff5d8ee529ac4bb$export$fd53cef0cc796101(m){let{placeholderValue:$=new _.qp,minValue:E,maxValue:T,granularity:k}=m,[R,A]=(0,S.zk)(m.value,m.defaultValue,m.onChange),M=R||$,V=M&&"day"in M?M:void 0,N=m.defaultValue&&"timeZone"in m.defaultValue?m.defaultValue.timeZone:void 0,j=(0,P.useMemo)(()=>{let m=M&&"timeZone"in M?M.timeZone:void 0;return(m||N)&&$?(0,_.fW)($eff5d8ee529ac4bb$var$convertValue($),m||N):$eff5d8ee529ac4bb$var$convertValue($)},[$,M,N]),B=(0,P.useMemo)(()=>$eff5d8ee529ac4bb$var$convertValue(E,V),[E,V]),z=(0,P.useMemo)(()=>$eff5d8ee529ac4bb$var$convertValue(T,V),[T,V]),W=(0,P.useMemo)(()=>R&&"day"in R?(0,_.ZB)(R):R,[R]),H=(0,P.useMemo)(()=>null==R?null:$eff5d8ee529ac4bb$var$convertValue(R),[R]);return{...$3c0fc76039f1c516$export$60e84778edff6d26({...m,value:H,defaultValue:void 0,minValue:B,maxValue:z,onChange:m=>{A(V||N?m:m&&(0,_.ZB)(m))},granularity:k||"minute",maxGranularity:"hour",placeholderValue:j,createCalendar:()=>new _.IQ}),timeValue:W}}function $eff5d8ee529ac4bb$var$convertValue(m,$=(0,_.Lg)((0,_.iT)())){return m?"day"in m?m:(0,_.IO)($,m):null}},14114:function(m,$,E){"use strict";E.d($,{zk:function(){return $458b0a5536c1a7cf$export$40bfa8c7b0832715}});var _=E(2265);function $458b0a5536c1a7cf$export$40bfa8c7b0832715(m,$,E){let[P,S]=(0,_.useState)(m||$),T=(0,_.useRef)(void 0!==m),k=void 0!==m;(0,_.useEffect)(()=>{let m=T.current;m!==k&&console.warn(`WARN: A component changed from ${m?"controlled":"uncontrolled"} to ${k?"controlled":"uncontrolled"}.`),T.current=k},[k]);let R=k?m:P,A=(0,_.useCallback)((m,...$)=>{let onChangeCaller=(m,...$)=>{E&&!Object.is(R,m)&&E(m,...$),k||(R=m)};"function"==typeof m?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),S((E,..._)=>{let P=m(k?R:E,..._);return(onChangeCaller(P,...$),k)?E:P})):(k||S(m),onChangeCaller(m,...$))},[k,R,E]);return[R,A]}},73140:function(m,$,E){"use strict";function _check_private_redeclaration(m,$){if($.has(m))throw TypeError("Cannot initialize the same private elements twice on an object")}function _class_private_field_init(m,$,E){_check_private_redeclaration(m,$),$.set(m,E)}E.d($,{_:function(){return _class_private_field_init}})},77227:function(m,$,E){"use strict";E.d($,{F:function(){return createAnatomy}});var createAnatomy=(m,$=[])=>({parts:(...E)=>{if(isEmpty($))return createAnatomy(m,E);throw Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...E)=>createAnatomy(m,[...$,...E]),rename:m=>createAnatomy(m,$),keys:()=>$,build:()=>[...new Set($)].reduce(($,E)=>Object.assign($,{[E]:{selector:`&[data-scope="${toKebabCase(m)}"][data-part="${toKebabCase(E)}"], & [data-scope="${toKebabCase(m)}"][data-part="${toKebabCase(E)}"]`,attrs:{"data-scope":toKebabCase(m),"data-part":toKebabCase(E)}}}),{})}),toKebabCase=m=>m.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),isEmpty=m=>0===m.length},70752:function(m,$,E){"use strict";E.d($,{$j:function(){return connect},u_:function(){return machine}});var _=E(77227),P=E(71233),S=E(48168),T=E(49473),k=E(9082),R=E(96025);function getCssDimensions(m){let $=(0,R.Dx)(m),E=parseFloat($.width)||0,_=parseFloat($.height)||0,P=(0,R.Re)(m),S=P?m.offsetWidth:E,T=P?m.offsetHeight:_,A=(0,k.NM)(E)!==S||(0,k.NM)(_)!==T;return A&&(E=S,_=T),{width:E,height:_,$:A}}function unwrapElement(m){return(0,R.kK)(m)?m:m.contextElement}function getScale(m){let $=unwrapElement(m);if(!(0,R.Re)($))return(0,k.ze)(1);let E=$.getBoundingClientRect(),{width:_,height:P,$:S}=getCssDimensions($),T=(S?(0,k.NM)(E.width):E.width)/_,A=(S?(0,k.NM)(E.height):E.height)/P;return T&&Number.isFinite(T)||(T=1),A&&Number.isFinite(A)||(A=1),{x:T,y:A}}let A=(0,k.ze)(0);function getVisualOffsets(m){let $=(0,R.Jj)(m);return(0,R.Pf)()&&$.visualViewport?{x:$.visualViewport.offsetLeft,y:$.visualViewport.offsetTop}:A}function shouldAddVisualOffsets(m,$,E){return void 0===$&&($=!1),!!E&&(!$||E===(0,R.Jj)(m))&&$}function getBoundingClientRect(m,$,E,_){void 0===$&&($=!1),void 0===E&&(E=!1);let P=m.getBoundingClientRect(),S=unwrapElement(m),T=(0,k.ze)(1);$&&(_?(0,R.kK)(_)&&(T=getScale(_)):T=getScale(m));let A=shouldAddVisualOffsets(S,E,_)?getVisualOffsets(S):(0,k.ze)(0),M=(P.left+A.x)/T.x,V=(P.top+A.y)/T.y,N=P.width/T.x,j=P.height/T.y;if(S){let m=(0,R.Jj)(S),$=_&&(0,R.kK)(_)?(0,R.Jj)(_):_,E=m.frameElement;for(;E&&_&&$!==m;){let m=getScale(E),$=E.getBoundingClientRect(),_=(0,R.Dx)(E),P=$.left+(E.clientLeft+parseFloat(_.paddingLeft))*m.x,S=$.top+(E.clientTop+parseFloat(_.paddingTop))*m.y;M*=m.x,V*=m.y,N*=m.x,j*=m.y,M+=P,V+=S,E=(0,R.Jj)(E).frameElement}}return(0,k.JB)({width:N,height:j,x:M,y:V})}function convertOffsetParentRelativeRectToViewportRelativeRect(m){let{rect:$,offsetParent:E,strategy:_}=m,P=(0,R.Re)(E),S=(0,R.tF)(E);if(E===S)return $;let T={scrollLeft:0,scrollTop:0},A=(0,k.ze)(1),M=(0,k.ze)(0);if((P||!P&&"fixed"!==_)&&(("body"!==(0,R.wk)(E)||(0,R.ao)(S))&&(T=(0,R.Lw)(E)),(0,R.Re)(E))){let m=getBoundingClientRect(E);A=getScale(E),M.x=m.x+E.clientLeft,M.y=m.y+E.clientTop}return{width:$.width*A.x,height:$.height*A.y,x:$.x*A.x-T.scrollLeft*A.x+M.x,y:$.y*A.y-T.scrollTop*A.y+M.y}}function getClientRects(m){return Array.from(m.getClientRects())}function getWindowScrollBarX(m){return getBoundingClientRect((0,R.tF)(m)).left+(0,R.Lw)(m).scrollLeft}function getDocumentRect(m){let $=(0,R.tF)(m),E=(0,R.Lw)(m),_=m.ownerDocument.body,P=(0,k.Fp)($.scrollWidth,$.clientWidth,_.scrollWidth,_.clientWidth),S=(0,k.Fp)($.scrollHeight,$.clientHeight,_.scrollHeight,_.clientHeight),T=-E.scrollLeft+getWindowScrollBarX(m),A=-E.scrollTop;return"rtl"===(0,R.Dx)(_).direction&&(T+=(0,k.Fp)($.clientWidth,_.clientWidth)-P),{width:P,height:S,x:T,y:A}}function getViewportRect(m,$){let E=(0,R.Jj)(m),_=(0,R.tF)(m),P=E.visualViewport,S=_.clientWidth,T=_.clientHeight,k=0,A=0;if(P){S=P.width,T=P.height;let m=(0,R.Pf)();(!m||m&&"fixed"===$)&&(k=P.offsetLeft,A=P.offsetTop)}return{width:S,height:T,x:k,y:A}}function getInnerBoundingClientRect(m,$){let E=getBoundingClientRect(m,!0,"fixed"===$),_=E.top+m.clientTop,P=E.left+m.clientLeft,S=(0,R.Re)(m)?getScale(m):(0,k.ze)(1),T=m.clientWidth*S.x,A=m.clientHeight*S.y,M=P*S.x,V=_*S.y;return{width:T,height:A,x:M,y:V}}function getClientRectFromClippingAncestor(m,$,E){let _;if("viewport"===$)_=getViewportRect(m,E);else if("document"===$)_=getDocumentRect((0,R.tF)(m));else if((0,R.kK)($))_=getInnerBoundingClientRect($,E);else{let E=getVisualOffsets(m);_={...$,x:$.x-E.x,y:$.y-E.y}}return(0,k.JB)(_)}function hasFixedPositionAncestor(m,$){let E=(0,R.Ow)(m);return!(E===$||!(0,R.kK)(E)||(0,R.Py)(E))&&("fixed"===(0,R.Dx)(E).position||hasFixedPositionAncestor(E,$))}function getClippingElementAncestors(m,$){let E=$.get(m);if(E)return E;let _=(0,R.Kx)(m).filter(m=>(0,R.kK)(m)&&"body"!==(0,R.wk)(m)),P=null,S="fixed"===(0,R.Dx)(m).position,T=S?(0,R.Ow)(m):m;for(;(0,R.kK)(T)&&!(0,R.Py)(T);){let $=(0,R.Dx)(T),E=(0,R.hT)(T);E||"fixed"!==$.position||(P=null);let k=S?!E&&!P:!E&&"static"===$.position&&!!P&&["absolute","fixed"].includes(P.position)||(0,R.ao)(T)&&!E&&hasFixedPositionAncestor(m,T);k?_=_.filter(m=>m!==T):P=$,T=(0,R.Ow)(T)}return $.set(m,_),_}function getClippingRect(m){let{element:$,boundary:E,rootBoundary:_,strategy:P}=m,S="clippingAncestors"===E?getClippingElementAncestors($,this._c):[].concat(E),T=[...S,_],R=T[0],A=T.reduce((m,E)=>{let _=getClientRectFromClippingAncestor($,E,P);return m.top=(0,k.Fp)(_.top,m.top),m.right=(0,k.VV)(_.right,m.right),m.bottom=(0,k.VV)(_.bottom,m.bottom),m.left=(0,k.Fp)(_.left,m.left),m},getClientRectFromClippingAncestor($,R,P));return{width:A.right-A.left,height:A.bottom-A.top,x:A.left,y:A.top}}function getDimensions(m){return getCssDimensions(m)}function getRectRelativeToOffsetParent(m,$,E){let _=(0,R.Re)($),P=(0,R.tF)($),S="fixed"===E,T=getBoundingClientRect(m,!0,S,$),A={scrollLeft:0,scrollTop:0},M=(0,k.ze)(0);if(_||!_&&!S){if(("body"!==(0,R.wk)($)||(0,R.ao)(P))&&(A=(0,R.Lw)($)),_){let m=getBoundingClientRect($,!0,S,$);M.x=m.x+$.clientLeft,M.y=m.y+$.clientTop}else P&&(M.x=getWindowScrollBarX(P))}return{x:T.left+A.scrollLeft-M.x,y:T.top+A.scrollTop-M.y,width:T.width,height:T.height}}function getTrueOffsetParent(m,$){return(0,R.Re)(m)&&"fixed"!==(0,R.Dx)(m).position?$?$(m):m.offsetParent:null}function getOffsetParent(m,$){let E=(0,R.Jj)(m);if(!(0,R.Re)(m))return E;let _=getTrueOffsetParent(m,$);for(;_&&(0,R.Ze)(_)&&"static"===(0,R.Dx)(_).position;)_=getTrueOffsetParent(_,$);return _&&("html"===(0,R.wk)(_)||"body"===(0,R.wk)(_)&&"static"===(0,R.Dx)(_).position&&!(0,R.hT)(_))?E:_||(0,R.gQ)(m)||E}let getElementRects=async function(m){let{reference:$,floating:E,strategy:_}=m,P=this.getOffsetParent||getOffsetParent,S=this.getDimensions;return{reference:getRectRelativeToOffsetParent($,await P(E),_),floating:{x:0,y:0,...await S(E)}}};function isRTL(m){return"rtl"===(0,R.Dx)(m).direction}let M={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:R.tF,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:R.kK,isRTL},computePosition=(m,$,E)=>{let _=new Map,P={platform:M,...E},S={...P.platform,_c:_};return(0,T.oo)(m,$,{...P,platform:S})};var V=E(34320),N=E(24020),callAll=(...m)=>()=>m.forEach(m=>m()),isHTMLElement=m=>"object"==typeof m&&null!==m&&1===m.nodeType,addDomEvent=(m,$,E,_)=>(m.addEventListener($,E,_),()=>m.removeEventListener($,E,_));function resolveOptions(m){let $="boolean"==typeof m;return{ancestorResize:$?m:m.ancestorResize??!0,ancestorScroll:$?m:m.ancestorScroll??!0,referenceResize:$?m:m.referenceResize??!0}}function dist_autoUpdate(m,$,E,_=!1){let{ancestorScroll:P,ancestorResize:S,referenceResize:T}=resolveOptions(_),k=[];function addResizeListeners(){let _=[(0,N.c)($,{scope:"size",onChange:E})];return T&&isHTMLElement(m)&&_.push((0,N.c)(m,{onChange:E})),_.push(callAll(...k.map(m=>addDomEvent(m,"resize",E)))),()=>_.forEach(m=>m())}function addScrollListeners(){return callAll(...k.map(m=>addDomEvent(m,"scroll",E,{passive:!0})))}return(P||S)&&isHTMLElement(m)&&k.push(...(0,R.Kx)(m)),callAll(addResizeListeners(),addScrollListeners())}var toVar=m=>({variable:m,reference:`var(${m})`}),j={arrowSize:toVar("--arrow-size"),arrowSizeHalf:toVar("--arrow-size-half"),arrowBg:toVar("--arrow-background"),transformOrigin:toVar("--transform-origin"),arrowOffset:toVar("--arrow-offset")},getTransformOrigin=m=>({top:"bottom center","top-start":m?`${m.x}px bottom`:"left bottom","top-end":m?`${m.x}px bottom`:"right bottom",bottom:"top center","bottom-start":m?`${m.x}px top`:"top left","bottom-end":m?`${m.x}px top`:"top right",left:"right center","left-start":m?`right ${m.y}px`:"right top","left-end":m?`right ${m.y}px`:"right bottom",right:"left center","right-start":m?`left ${m.y}px`:"left top","right-end":m?`left ${m.y}px`:"left bottom"}),B={name:"transformOrigin",fn({placement:m,elements:$,middlewareData:E}){let{arrow:_}=E,P=getTransformOrigin(_)[m],{floating:S}=$;return S.style.setProperty(j.transformOrigin.variable,P),{data:{transformOrigin:P}}}},shiftArrow=m=>({name:"shiftArrow",fn({placement:$,middlewareData:E}){let{element:_}=m;if(E.arrow){let{x:m,y:P}=E.arrow,S=$.split("-")[0];Object.assign(_.style,{left:null!=m?`${m}px`:"",top:null!=P?`${P}px`:"",[S]:`calc(100% + ${j.arrowOffset.reference})`})}return{}}}),z={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,sameWidth:!1,overflowPadding:8};function getPlacementImpl(m,$,E={}){if(!$||!m)return;let _=Object.assign({},z,E),P=$.querySelector("[data-part=arrow]"),S=[],k="function"==typeof _.boundary?_.boundary():_.boundary;if(_.flip&&S.push((0,T.RR)({boundary:k,padding:_.overflowPadding})),_.gutter||_.offset){let m=P?P.offsetHeight/2:0,$=_.offset?_.offset:{mainAxis:_.gutter};$?.mainAxis!=null&&($.mainAxis+=m),S.push((0,T.cv)($))}function compute(E={}){if(!m||!$)return;let{placement:P,strategy:T,onComplete:k}=_;computePosition(m,$,{placement:P,middleware:S,strategy:T,...E}).then(m=>{let E=Math.round(m.x);$.style.setProperty("--x",`${E}px`);let _=Math.round(m.y);$.style.setProperty("--y",`${_}px`),k?.(m)})}return S.push((0,T.uY)({boundary:k,crossAxis:_.overlap,padding:_.overflowPadding})),P&&S.push((0,T.x7)({element:P,padding:8}),shiftArrow({element:P})),S.push(B),S.push((0,T.dp)({padding:_.overflowPadding,apply({rects:m,availableHeight:E,availableWidth:_}){let P=Math.round(m.reference.width);$.style.setProperty("--reference-width",`${P}px`),$.style.setProperty("--available-width",`${_}px`),$.style.setProperty("--available-height",`${E}px`)}})),compute(),(0,V.PP)(_.listeners?dist_autoUpdate(m,$,compute,_.listeners):void 0,_.onCleanup)}function getPlacement(m,$,E={}){let{defer:_,...P}=E,T=_?S.Wn:m=>m(),k=[];return k.push(T(()=>{let E="function"==typeof m?m():m,_="function"==typeof $?$():$;k.push(getPlacementImpl(E,_,P))})),()=>{k.forEach(m=>m?.())}}var W={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function getPlacementStyles(m={}){let{placement:$="bottom",sameWidth:E,fitViewport:_,strategy:P="absolute"}=m;return{arrow:{position:"absolute",width:j.arrowSize.reference,height:j.arrowSize.reference,[j.arrowSizeHalf.variable]:`calc(${j.arrowSize.reference} / 2)`,[j.arrowOffset.variable]:`calc(${j.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:W[$.split("-")[0]],background:j.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:P,minWidth:E?void 0:"max-content",width:E?"var(--reference-width)":void 0,maxWidth:_?"var(--available-width)":void 0,maxHeight:_?"var(--available-height)":void 0,top:"0px",left:"0px",transform:"translate3d(var(--x), var(--y), 0)"}}}var H=new WeakMap,G=[];function ariaHiddenImpl(m,$={}){let{rootEl:E}=$,_=m.filter(Boolean);if(0===_.length)return;let P=_[0].ownerDocument||document,S=P.defaultView??window,T=new Set(_),k=new Set,R=E??P.body,walk=m=>{for(let $ of m.querySelectorAll("[data-live-announcer], [data-zag-top-layer]"))T.add($);let acceptNode=m=>{if(T.has(m)||k.has(m.parentElement)&&"row"!==m.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let $ of T)if(m.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},$=P.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode}),E=acceptNode(m);if(E===NodeFilter.FILTER_ACCEPT&&hide(m),E!==NodeFilter.FILTER_REJECT){let m=$.nextNode();for(;null!=m;)hide(m),m=$.nextNode()}},hide=m=>{let $=H.get(m)??0;("true"!==m.getAttribute("aria-hidden")||0!==$)&&(0===$&&m.setAttribute("aria-hidden","true"),k.add(m),H.set(m,$+1))};G.length&&G[G.length-1].disconnect(),walk(R);let A=new S.MutationObserver(m=>{for(let $ of m)if("childList"===$.type&&0!==$.addedNodes.length&&![...T,...k].some(m=>m.contains($.target))){for(let m of $.removedNodes)m instanceof S.Element&&(T.delete(m),k.delete(m));for(let m of $.addedNodes)(m instanceof S.HTMLElement||m instanceof S.SVGElement)&&("true"===m.dataset.liveAnnouncer||"true"===m.dataset.zagTopLayer)?T.add(m):m instanceof S.Element&&walk(m)}});A.observe(R,{childList:!0,subtree:!0});let M={observe(){A.observe(R,{childList:!0,subtree:!0})},disconnect(){A.disconnect()}};return G.push(M),()=>{for(let m of(A.disconnect(),k)){let $=H.get(m);1===$?(m.removeAttribute("aria-hidden"),H.delete(m)):H.set(m,$-1)}M===G[G.length-1]?(G.pop(),G.length&&G[G.length-1].observe()):G.splice(G.indexOf(M),1)}}function ariaHidden(m,$={}){let{defer:E}=$,_=E?S.Wn:m=>m(),P=[];return P.push(_(()=>{let E="function"==typeof m?m():m;P.push(ariaHiddenImpl(E,$))})),()=>{P.forEach(m=>m?.())}}var J=E(37423),X=E(61080),dist_isHTMLElement=m=>"object"==typeof m&&null!==m&&1===m.nodeType;function isVisible(m){return!!dist_isHTMLElement(m)&&(m.offsetWidth>0||m.offsetHeight>0||m.getClientRects().length>0)}function isFocusable(m){return!(!m||m.closest("[inert]"))&&m.matches("input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type")&&isVisible(m)}function getWindowFrames(m){let $={each($){for(let E=0;E($.each($=>{try{$.document.addEventListener(m,E,_)}catch(m){console.warn(m)}}),()=>{try{$.removeEventListener(m,E,_)}catch(m){console.warn(m)}}),removeEventListener(m,E,_){$.each($=>{try{$.document.removeEventListener(m,E,_)}catch(m){console.warn(m)}})}};return $}var ee="pointerdown.outside",et="focus.outside";function isComposedPathFocusable(m){let $=m.composedPath()??[m.target];for(let m of $)if((0,S.Re)(m)&&isFocusable(m))return!0;return!1}var isPointerEvent=m=>"clientY"in m;function isEventPointWithin(m,$){if(!isPointerEvent($)||!m)return!1;let E=m.getBoundingClientRect();return 0!==E.width&&0!==E.height&&E.top<=$.clientY&&$.clientY<=E.top+E.height&&E.left<=$.clientX&&$.clientX<=E.left+E.width}function trackInteractOutsideImpl(m,$){let E;let{exclude:_,onFocusOutside:T,onPointerDownOutside:k,onInteractOutside:R}=$;if(!m)return;let A=(0,S.Me)(m),M=(0,S.Jj)(m),N=getWindowFrames(M);function isEventOutside($){let E=(0,S.NI)($);return!(!(0,S.Re)(E)||(0,S.r3)(m,E)||isEventPointWithin(m,$))&&!_?.(E)}function onPointerDown($){function handler(){if(m&&isEventOutside($)){if(k||R){let $=(0,V.PP)(k,R);m.addEventListener(ee,$,{once:!0})}(0,P.LI)(m,ee,{bubbles:!1,cancelable:!0,detail:{originalEvent:$,contextmenu:(0,P.v$)($),focusable:isComposedPathFocusable($)}})}}"touch"===$.pointerType?(N.removeEventListener("click",handler),A.removeEventListener("click",handler),E=handler,A.addEventListener("click",handler,{once:!0}),N.addEventListener("click",handler,{once:!0})):handler()}let j=new Set,B=setTimeout(()=>{j.add(N.addEventListener("pointerdown",onPointerDown,!0)),j.add((0,P.EV)(A,"pointerdown",onPointerDown,!0))},0);function onFocusin($){if(m&&isEventOutside($)){if(T||R){let $=(0,V.PP)(T,R);m.addEventListener(et,$,{once:!0})}(0,P.LI)(m,et,{bubbles:!1,cancelable:!0,detail:{originalEvent:$,contextmenu:!1,focusable:isFocusable((0,S.NI)($))}})}}return j.add((0,P.EV)(A,"focusin",onFocusin,!0)),j.add(N.addEventListener("focusin",onFocusin,!0)),()=>{clearTimeout(B),E&&(N.removeEventListener("click",E),A.removeEventListener("click",E)),j.forEach(m=>m())}}function trackInteractOutside(m,$){let{defer:E}=$,_=E?S.Wn:m=>m(),P=[];return P.push(_(()=>{let E="function"==typeof m?m():m;P.push(trackInteractOutsideImpl(E,$))})),()=>{P.forEach(m=>m?.())}}var ea=E(38938),er="__live-region__";function createLiveRegion(m={}){let{level:$="polite",document:E=document,root:_,delay:P=0}=m,S=E.defaultView??window,T=_??E.body;return{announce:function(m,_){let k=E.getElementById(er);k?.remove(),_=_??P;let R=E.createElement("span");R.id=er,R.dataset.liveAnnouncer="true";let A="assertive"!==$?"status":"alert";R.setAttribute("aria-live",$),R.setAttribute("role",A),(0,ea.q)(R),T.appendChild(R),S.setTimeout(()=>{R.textContent=m},_)},destroy:function(){let m=E.getElementById(er);m?.remove()},toJSON:()=>er}}var en=(0,_.F)("combobox").parts("root","label","input","positioner","control","trigger","content","clearTrigger","option","optionGroup","optionGroupLabel").build(),ei=(0,S.tp)({getRootId:m=>m.ids?.root??`combobox:${m.id}`,getLabelId:m=>m.ids?.label??`combobox:${m.id}:label`,getControlId:m=>m.ids?.control??`combobox:${m.id}:control`,getInputId:m=>m.ids?.input??`combobox:${m.id}:input`,getContentId:m=>m.ids?.content??`combobox:${m.id}:listbox`,getPositionerId:m=>m.ids?.positioner??`combobox:${m.id}:popper`,getTriggerId:m=>m.ids?.trigger??`combobox:${m.id}:toggle-btn`,getClearTriggerId:m=>m.ids?.clearTrigger??`combobox:${m.id}:clear-btn`,getOptionGroupId:(m,$)=>m.ids?.optionGroup?.($)??`combobox:${m.id}:optgroup:${$}`,getOptionGroupLabelId:(m,$)=>m.ids?.optionGroupLabel?.($)??`combobox:${m.id}:optgroup-label:${$}`,getOptionId:(m,$,E)=>m.ids?.option?.($,E)??[`combobox:${m.id}:option:${$}`,E].filter(m=>null!=m).join(":"),getActiveOptionEl:m=>m.focusedId?ei.getById(m,m.focusedId):null,getContentEl:m=>ei.getById(m,ei.getContentId(m)),getInputEl:m=>ei.getById(m,ei.getInputId(m)),getPositionerEl:m=>ei.getById(m,ei.getPositionerId(m)),getControlEl:m=>ei.getById(m,ei.getControlId(m)),getTriggerEl:m=>ei.getById(m,ei.getTriggerId(m)),getClearTriggerEl:m=>ei.getById(m,ei.getClearTriggerId(m)),getElements:m=>(0,S.Kt)(ei.getContentEl(m),"[role=option]:not([aria-disabled=true])"),getFocusedOptionEl:m=>{if(!m.focusedId)return null;let $=`[role=option][id=${CSS.escape(m.focusedId)}]`;return ei.getContentEl(m)?.querySelector($)},getFirstEl:m=>(0,V.Ps)(ei.getElements(m)),getLastEl:m=>(0,V.Z$)(ei.getElements(m)),getPrevEl:(m,$)=>(0,S.Sv)(ei.getElements(m),$,m.loop),getNextEl:(m,$)=>(0,S.Es)(ei.getElements(m),$,m.loop),isInputFocused:m=>ei.getDoc(m).activeElement===ei.getInputEl(m),getOptionData:m=>({value:m?.getAttribute("data-value")??"",label:m?.getAttribute("data-label")??""}),getOptionCount:m=>{let $=ei.getContentEl(m),E=$?.querySelector("[role=option]")?.getAttribute("aria-setsize");return null!=E?parseInt(E):$?.querySelectorAll("[role=option]").length??0},getMatchingOptionEl:(m,$)=>{if(!$)return null;let E=`[role=option][data-value="${CSS.escape($)}"`,_=ei.getContentEl(m);return _?_.querySelector(E):null},focusInput:m=>{let $=ei.getInputEl(m);ei.getDoc(m).activeElement!==$&&$?.focus(),m.selectInputOnFocus&&$?.select()},getClosestSectionLabel(m){if(!m.focusedId)return;let $=ei.getActiveOptionEl(m)?.closest("[data-part=option-group]");return $?.getAttribute("aria-label")},getValueLabel:(m,$)=>{let E=ei.getMatchingOptionEl(m,$);return ei.getOptionData(E).label}});function connect(m,$,E){let _=m.context.translations,T=m.context.disabled,k=m.context.isInteractive,R=m.context.invalid,A=m.context.readOnly,M=m.hasTag("open"),V=m.hasTag("focused"),N=m.hasTag("idle"),j=M&&m.context.navigationData&&m.context.autoComplete,B=(!N||m.context.isHovering)&&!m.context.isInputValueEmpty,z=j?m.context.navigationData?.label:m.context.inputValue,W=getPlacementStyles({...m.context.positioning,placement:m.context.currentPlacement}),H={isFocused:V,isOpen:M,isInputValueEmpty:m.context.isInputValueEmpty,inputValue:m.context.inputValue,focusedOption:m.context.focusedOptionData,selectedValue:m.context.selectionData?.value,setValue(E){$({type:"SET_VALUE",..."string"==typeof E?{value:E,label:ei.getValueLabel(m.context,E)}:E})},setInputValue(m){$({type:"SET_INPUT_VALUE",value:m})},clearValue(){$("CLEAR_VALUE")},focus(){ei.getInputEl(m.context)?.focus()},rootProps:E.element({...en.root.attrs,id:ei.getRootId(m.context),"data-invalid":(0,S.PB)(R),"data-readonly":(0,S.PB)(A)}),labelProps:E.label({...en.label.attrs,htmlFor:ei.getInputId(m.context),id:ei.getLabelId(m.context),"data-readonly":(0,S.PB)(A),"data-disabled":(0,S.PB)(T),"data-invalid":(0,S.PB)(R),"data-focus":(0,S.PB)(V)}),controlProps:E.element({...en.control.attrs,id:ei.getControlId(m.context),"data-state":M?"open":"closed","data-focus":(0,S.PB)(V),"data-disabled":(0,S.PB)(T),"data-invalid":(0,S.PB)(R),onPointerOver(){k&&$("POINTER_OVER")},onPointerLeave(){k&&$("POINTER_LEAVE")}}),positionerProps:E.element({...en.positioner.attrs,id:ei.getPositionerId(m.context),hidden:!M,style:W.floating}),inputProps:E.input({...en.input.attrs,"aria-invalid":(0,S.Qm)(R),"data-invalid":(0,S.PB)(R),name:m.context.name,form:m.context.form,disabled:T,autoFocus:m.context.autoFocus,autoComplete:"off",autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",readOnly:A,placeholder:m.context.placeholder,id:ei.getInputId(m.context),type:"text",role:"combobox",defaultValue:z,"data-value":z,"aria-autocomplete":m.context.autoComplete?"both":"list","aria-controls":M?ei.getContentId(m.context):void 0,"aria-expanded":M,"data-state":M?"open":"closed","aria-activedescendant":m.context.focusedId??void 0,onClick(){k&&$("CLICK_INPUT")},onFocus(){T||$("FOCUS")},onChange(m){$({type:"CHANGE",value:m.currentTarget.value})},onKeyDown(E){if(!k)return;let _=(0,P.iP)(E);if(_.ctrlKey||_.shiftKey||_.isComposing)return;let S=!1,T=(0,P.g0)(E,m.context),R={ArrowDown(m){$(m.altKey?"ALT_ARROW_DOWN":"ARROW_DOWN"),S=!0},ArrowUp(){$(E.altKey?"ALT_ARROW_UP":"ARROW_UP"),S=!0},Home(m){let E=m.ctrlKey||m.metaKey;E||$({type:"HOME",preventDefault:()=>m.preventDefault()})},End(m){let E=m.ctrlKey||m.metaKey;E||$({type:"END",preventDefault:()=>m.preventDefault()})},Enter(){$("ENTER"),S=!0},Escape(){$("ESCAPE"),S=!0},Tab(){$("TAB")}}[T];R?.(E),S&&E.preventDefault()}}),triggerProps:E.button({...en.trigger.attrs,id:ei.getTriggerId(m.context),"aria-haspopup":"listbox",type:"button",tabIndex:-1,"aria-label":_.triggerLabel,"aria-expanded":M,"data-state":M?"open":"closed","aria-controls":M?ei.getContentId(m.context):void 0,disabled:T,"data-readonly":(0,S.PB)(A),"data-disabled":(0,S.PB)(T),onPointerDown(m){let E=(0,P.iP)(m);k&&(0,P.pW)(E)&&"touch"!==E.pointerType&&($("CLICK_BUTTON"),m.preventDefault())},onPointerUp(m){"touch"===m.pointerType&&$("CLICK_BUTTON")}}),contentProps:E.element({...en.content.attrs,id:ei.getContentId(m.context),role:"listbox",hidden:!M,"data-state":M?"open":"closed","aria-labelledby":ei.getLabelId(m.context),onPointerDown(m){m.preventDefault()}}),clearTriggerProps:E.button({...en.clearTrigger.attrs,id:ei.getClearTriggerId(m.context),type:"button",tabIndex:-1,disabled:T,"aria-label":_.clearTriggerLabel,hidden:!B,onPointerDown(m){let E=(0,P.iP)(m);k&&(0,P.pW)(E)&&($("CLEAR_VALUE"),m.preventDefault())}}),getOptionState($){let E=ei.getOptionId(m.context,$.value,$.index);return{isDisabled:!!$.disabled,isHighlighted:m.context.focusedId===E,isChecked:m.context.selectionData?.value===$.value}},getOptionProps(_){let{value:P,label:T,index:k,count:R}=_,A=ei.getOptionId(m.context,P,k),M=H.getOptionState(_);return E.element({...en.option.attrs,id:A,role:"option",tabIndex:-1,"data-highlighted":(0,S.PB)(M.isHighlighted),"data-state":M.isChecked?"checked":"unchecked","aria-selected":M.isHighlighted,"aria-disabled":M.isDisabled,"data-disabled":(0,S.PB)(M.isDisabled),"aria-posinset":R&&null!=k?k+1:void 0,"aria-setsize":R,"data-value":P,"data-label":T,onPointerMove(){M.isDisabled||$({type:"POINTEROVER_OPTION",id:A,value:P,label:T})},onPointerUp(){M.isDisabled||$({type:"CLICK_OPTION",src:"pointerup",id:A,value:P,label:T})},onClick(){M.isDisabled||$({type:"CLICK_OPTION",src:"click",id:A,value:P,label:T})},onAuxClick(m){M.isDisabled||(m.preventDefault(),$({type:"CLICK_OPTION",src:"auxclick",id:A,value:P,label:T}))}})},getOptionGroupProps($){let{id:_}=$;return E.element({...en.optionGroup.attrs,id:ei.getOptionGroupId(m.context,_),"aria-labelledby":ei.getOptionGroupLabelId(m.context,_)})},getOptionGroupLabelProps($){let{htmlFor:_}=$;return E.element({id:ei.getOptionGroupId(m.context,_),role:"group",...en.optionGroupLabel.attrs})}};return H}var{and:eo,not:es}=J.guards;function machine(m){let $=(0,V.oA)(m);return(0,J.C8)({id:"combobox",initial:$.autoFocus?"focused":"idle",context:{loop:!0,openOnClick:!1,ariaHidden:!0,focusedId:null,focusedOptionData:null,navigationData:null,selectionData:null,inputValue:"",liveRegion:null,focusOnClear:!0,selectInputOnFocus:!1,selectOnTab:!0,isHovering:!1,isKeyboardEvent:!1,allowCustomValue:!1,isCustomValue:m=>m.inputValue!==m.previousValue,inputBehavior:"none",selectionBehavior:"set",...$,positioning:{placement:"bottom",flip:!1,sameWidth:!0,...$.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",navigationHint:"use the up and down keys to navigate. Press the enter key to select",countAnnouncement:m=>`${m} ${1===m?"option":"options"} available`,...$.translations}},computed:{isInputValueEmpty:m=>0===m.inputValue.length,isInteractive:m=>!(m.readOnly||m.disabled),autoComplete:m=>"autocomplete"===m.inputBehavior,autoHighlight:m=>"autohighlight"===m.inputBehavior},watch:{inputValue:"invokeOnInputChange",navigationData:"invokeOnHighlight",selectionData:["invokeOnSelect","blurInputIfNeeded"],focusedId:"setSectionLabel"},entry:["setupLiveRegion"],exit:["removeLiveRegion"],activities:["syncInputValue"],on:{SET_VALUE:{actions:["setInputValue","setSelectionData"]},SET_INPUT_VALUE:{actions:"setInputValue"},CLEAR_VALUE:[{guard:"focusOnClear",target:"focused",actions:["clearInputValue","clearSelectedValue"]},{actions:["clearInputValue","clearSelectedValue"]}],POINTER_OVER:{actions:"setIsHovering"},POINTER_LEAVE:{actions:"clearIsHovering"}},states:{idle:{tags:["idle"],entry:["scrollToTop","clearFocusedOption"],on:{CLICK_BUTTON:{target:"interacting",actions:["focusInput","invokeOnOpen"]},CLICK_INPUT:{guard:"openOnClick",target:"interacting",actions:"invokeOnOpen"},FOCUS:"focused"}},focused:{tags:["focused"],entry:["focusInput","scrollToTop","clearFocusedOption"],activities:["trackInteractOutside"],on:{CHANGE:{target:"suggesting",actions:"setInputValue"},BLUR:"idle",ESCAPE:{guard:eo("isCustomValue",es("allowCustomValue")),actions:"revertInputValue"},CLICK_INPUT:{guard:"openOnClick",target:"interacting",actions:["focusInput","invokeOnOpen"]},CLICK_BUTTON:{target:"interacting",actions:["focusInput","invokeOnOpen"]},POINTER_OVER:{actions:"setIsHovering"},ARROW_UP:[{guard:"autoComplete",target:"interacting",actions:"invokeOnOpen"},{target:"interacting",actions:["focusLastOption","invokeOnOpen"]}],ARROW_DOWN:[{guard:"autoComplete",target:"interacting",actions:"invokeOnOpen"},{target:"interacting",actions:["focusFirstOption","invokeOnOpen"]}],ALT_ARROW_DOWN:{target:"interacting",actions:["focusInput","invokeOnOpen"]}}},suggesting:{tags:["open","focused"],activities:["trackInteractOutside","scrollOptionIntoView","computePlacement","trackOptionNodes","hideOtherElements"],entry:["focusInput","invokeOnOpen"],on:{ARROW_DOWN:{target:"interacting",actions:"focusNextOption"},ARROW_UP:{target:"interacting",actions:"focusPrevOption"},ALT_ARROW_UP:"focused",HOME:{target:"interacting",actions:["focusFirstOption","preventDefault"]},END:{target:"interacting",actions:["focusLastOption","preventDefault"]},ENTER:[{guard:eo("hasFocusedOption","autoComplete"),target:"focused",actions:"selectActiveOption"},{guard:"hasFocusedOption",target:"focused",actions:"selectOption"}],CHANGE:[{guard:"autoHighlight",actions:["clearFocusedOption","setInputValue","focusFirstOption"]},{actions:["clearFocusedOption","setInputValue"]}],ESCAPE:{target:"focused",actions:"invokeOnClose"},POINTEROVER_OPTION:[{guard:"autoComplete",target:"interacting",actions:"setActiveOption"},{target:"interacting",actions:["setActiveOption","setNavigationData"]}],BLUR:{target:"idle",actions:"invokeOnClose"},CLICK_BUTTON:{target:"focused",actions:"invokeOnClose"},CLICK_OPTION:{target:"focused",actions:["selectOption","invokeOnClose"]}}},interacting:{tags:["open","focused"],activities:["scrollOptionIntoView","trackInteractOutside","computePlacement","hideOtherElements"],entry:"focusMatchingOption",on:{HOME:{actions:["focusFirstOption","preventDefault"]},END:{actions:["focusLastOption","preventDefault"]},ARROW_DOWN:[{guard:eo("autoComplete","isLastOptionFocused"),actions:["clearFocusedOption","scrollToTop"]},{actions:"focusNextOption"}],ARROW_UP:[{guard:eo("autoComplete","isFirstOptionFocused"),actions:"clearFocusedOption"},{actions:"focusPrevOption"}],ALT_UP:{target:"focused",actions:["selectOption","invokeOnClose"]},CLEAR_FOCUS:{actions:"clearFocusedOption"},TAB:{guard:"selectOnTab",target:"idle",actions:["selectOption","invokeOnClose"]},ENTER:{target:"focused",actions:["selectOption","invokeOnClose"]},CHANGE:[{guard:"autoComplete",target:"suggesting",actions:["commitNavigationData","setInputValue"]},{target:"suggesting",actions:["clearFocusedOption","setInputValue"]}],POINTEROVER_OPTION:[{guard:"autoComplete",actions:"setActiveOption"},{actions:["setActiveOption","setNavigationData"]}],CLICK_OPTION:{target:"focused",actions:["selectOption","invokeOnClose"]},ESCAPE:{target:"focused",actions:"invokeOnClose"},CLICK_BUTTON:{target:"focused",actions:"invokeOnClose"},BLUR:{target:"idle",actions:"invokeOnClose"}}}}},{guards:{openOnClick:m=>!!m.openOnClick,isInputValueEmpty:m=>m.isInputValueEmpty,focusOnClear:m=>!!m.focusOnClear,autoFocus:m=>!!m.autoFocus,autoComplete:m=>m.autoComplete,autoHighlight:m=>m.autoHighlight,isFirstOptionFocused:m=>ei.getFirstEl(m)?.id===m.focusedId,isLastOptionFocused:m=>ei.getLastEl(m)?.id===m.focusedId,isCustomValue:m=>!!m.isCustomValue?.({inputValue:m.inputValue,previousValue:m.selectionData?.value}),allowCustomValue:m=>!!m.allowCustomValue,hasFocusedOption:m=>!!m.focusedId,selectOnTab:m=>!!m.selectOnTab},activities:{syncInputValue:m=>{let $=ei.getInputEl(m);if($)return(0,X.F)($,["data-value"],()=>{$.value=$.dataset.value||""})},trackInteractOutside:(m,$,{send:E})=>trackInteractOutside(ei.getInputEl(m),{exclude($){let E=[ei.getContentEl(m),ei.getTriggerEl(m)];return E.some(m=>(0,S.r3)(m,$))},onFocusOutside:m.onFocusOutside,onPointerDownOutside:m.onPointerDownOutside,onInteractOutside($){m.onInteractOutside?.($),$.defaultPrevented||E({type:"BLUR",src:"interact-outside"})}}),hideOtherElements(m){if(m.ariaHidden)return ariaHidden([ei.getInputEl(m),ei.getContentEl(m),ei.getTriggerEl(m)])},computePlacement:m=>(m.currentPlacement=m.positioning.placement,getPlacement(ei.getControlEl(m),ei.getPositionerEl(m),{...m.positioning,onComplete($){m.currentPlacement=$.placement},onCleanup(){m.currentPlacement=void 0}})),trackOptionNodes(m,$,E){if(!m.autoHighlight)return;let _=E.getAction("focusFirstOption"),exec=()=>_(m,$,E);return exec(),(0,X.P)(ei.getContentEl(m),exec)},scrollOptionIntoView(m,$,{getState:E}){let _=ei.getInputEl(m);return(0,X.F)(_,["aria-activedescendant"],()=>{let $=E().event,_=/(ARROW_UP|ARROW_DOWN|HOME|END|TAB)/.test($.type);if(!_)return;let P=ei.getActiveOptionEl(m);P?.scrollIntoView({block:"nearest"}),m.autoComplete&&ei.focusInput(m)})}},actions:{setupLiveRegion(m){m.liveRegion=createLiveRegion({level:"assertive",document:ei.getDoc(m)})},removeLiveRegion(m){m.liveRegion?.destroy()},setActiveOption(m,$){let{label:E,id:_,value:P}=$;m.focusedId=_,m.focusedOptionData={label:E,value:P}},setNavigationData(m,$){let{label:E,value:_}=$;m.navigationData={label:E,value:_}},clearNavigationData(m){m.navigationData=null},commitNavigationData(m){m.navigationData&&(m.inputValue=m.navigationData.label,m.navigationData=null)},clearFocusedOption(m){m.focusedId=null,m.focusedOptionData=null,m.navigationData=null},selectActiveOption(m){m.focusedOptionData&&(m.selectionData=m.focusedOptionData,m.inputValue=m.focusedOptionData.label)},selectOption(m,$){let E;let _=!!$.value&&!!$.label;m.selectionData=_?{label:$.label,value:$.value}:m.navigationData,m.selectionData&&("set"===m.selectionBehavior&&(E=m.selectionData.label),"clear"===m.selectionBehavior&&(E=""),null!=E&&(m.inputValue=E))},blurInputIfNeeded(m){!m.autoComplete&&m.blurOnSelect&&(0,S.Wn)(()=>{ei.getInputEl(m)?.blur()})},focusInput(m,$){"CHANGE"!==$.type&&ei.focusInput(m)},setInputValue(m,$){let E="SET_VALUE"===$.type?$.label:$.value;m.inputValue=E},clearInputValue(m){m.inputValue=""},revertInputValue(m){m.selectionData&&(m.inputValue=m.selectionData.label)},setSelectionData(m,$){let{label:E,value:_}=$;m.selectionData={label:E,value:_}},clearSelectedValue(m){m.selectionData=null},scrollToTop(m){let $=ei.getContentEl(m);$&&($.scrollTop=0)},invokeOnInputChange(m){m.onInputChange?.({value:m.inputValue})},invokeOnHighlight(m){let{label:$,value:E}=m.navigationData??{},_=ei.getMatchingOptionEl(m,E);m.onHighlight?.({label:$,value:E,relatedTarget:_})},invokeOnSelect(m){let{label:$,value:E}=m.selectionData??{},_=ei.getMatchingOptionEl(m,E);m.onSelect?.({label:$,value:E,relatedTarget:_})},invokeOnOpen(m){m.onOpen?.()},invokeOnClose(m){m.onClose?.()},highlightFirstOption(m){(0,S.Wn)(()=>{setHighlight(m,ei.getFirstEl(m))})},focusFirstOption(m){(0,S.Wn)(()=>{setFocus(m,ei.getFirstEl(m))})},focusLastOption(m){(0,S.Wn)(()=>{setFocus(m,ei.getLastEl(m))})},focusNextOption(m){(0,S.Wn)(()=>{let $=ei.getNextEl(m,m.focusedId??"");setFocus(m,$)})},focusPrevOption(m){(0,S.Wn)(()=>{let $=ei.getPrevEl(m,m.focusedId??"");setFocus(m,$)})},focusMatchingOption(m){(0,S.Wn)(()=>{let $=ei.getMatchingOptionEl(m,m.selectionData?.value);$?.scrollIntoView({block:"nearest"}),setFocus(m,$)})},announceOptionCount(m){(0,S.Wn)(()=>{let $=ei.getOptionCount(m);if(!$)return;let E=m.translations.countAnnouncement($);m.liveRegion?.announce(E)})},setIsHovering(m){m.isHovering=!0},clearIsHovering(m){m.isHovering=!1},preventDefault(m,$){$.preventDefault()},setSectionLabel(m){let $=ei.getClosestSectionLabel(m);$&&(m.sectionLabel=$)}}})}function setHighlight(m,$){if(!$)return;let E=ei.getOptionData($);return m.focusedId=$.id,m.focusedOptionData=E,E}function setFocus(m,$){if(!$||$.id===m.focusedId)return;let E=setHighlight(m,$);m.navigationData=E}},37423:function(m,$,E){"use strict";let _;function set(m,$,E){"object"==typeof E.value&&(E.value=klona(E.value)),E.enumerable&&!E.get&&!E.set&&E.configurable&&E.writable&&"__proto__"!==$?m[$]=E.value:Object.defineProperty(m,$,E)}function klona(m){if("object"!=typeof m)return m;var $,E,_,P=0,S=Object.prototype.toString.call(m);if("[object Object]"===S?_=Object.create(m.__proto__||null):"[object Array]"===S?_=Array(m.length):"[object Set]"===S?(_=new Set,m.forEach(function(m){_.add(klona(m))})):"[object Map]"===S?(_=new Map,m.forEach(function(m,$){_.set(klona($),klona(m))})):"[object Date]"===S?_=new Date(+m):"[object RegExp]"===S?_=new RegExp(m.source,m.flags):"[object DataView]"===S?_=new m.constructor(klona(m.buffer)):"[object ArrayBuffer]"===S?_=m.slice(0):"Array]"===S.slice(-6)&&(_=new m.constructor(m)),_){for(E=Object.getOwnPropertySymbols(m);P$ in m?S(m,$,{enumerable:!0,configurable:!0,writable:!0,value:E}):m[$]=E,__publicField=(m,$,E)=>(__defNormalProp(m,"symbol"!=typeof $?$+"":$,E),E);function clear(m){for(;m.length>0;)m.pop();return m}var runIfFn=(m,...$)=>{let E="function"==typeof m?m(...$):m;return E??void 0},cast=m=>m,noop=()=>{},T=(_=0,()=>(_++,_.toString(36))),isDev=()=>!1,isArray=m=>Array.isArray(m),isObject=m=>!(null==m||"object"!=typeof m||isArray(m)),isNumber=m=>"number"==typeof m&&!Number.isNaN(m),isString=m=>"string"==typeof m,isFunction=m=>"function"==typeof m;function compact(m){if(!isPlainObject(m)||void 0===m)return m;let $=Reflect.ownKeys(m).filter(m=>"string"==typeof m),E={};for(let _ of $){let $=m[_];void 0!==$&&(E[_]=compact($))}return E}var isPlainObject=m=>m&&"object"==typeof m&&m.constructor===Object;function warn(...m){1===m.length?m[0]:m[1],2!==m.length||m[0]}function invariant(...m){1===m.length?m[0]:m[1],2!==m.length||m[0]}function deepMerge(m,...$){for(let E of $){let $=compact(E);for(let _ in $)isObject(E[_])?(m[_]||(m[_]={}),deepMerge(m[_],E[_])):m[_]=E[_]}return m}function toEvent(m){let $=isString(m)?{type:m}:m;return $}function toArray(m){return m?isArray(m)?m.slice():[m]:[]}function isGuardHelper(m){return isObject(m)&&null!=m.predicate}var Truthy=()=>!0;function exec(m,$,E,_){return P=>isString(P)?!!m[P]?.($,E,_):isFunction(P)?P($,E,_):P.predicate(m)($,E,_)}var k={or:function(...m){return{predicate:$=>(E,_,P)=>m.map(exec($,E,_,P)).some(Boolean)}},and:function(...m){return{predicate:$=>(E,_,P)=>m.map(exec($,E,_,P)).every(Boolean)}},not:function(m){return{predicate:$=>(E,_,P)=>!exec($,E,_,P)(m)}},stateIn:function(...m){return($,E,_)=>_.state.matches(...m)}};function choose(m){return{predicate:$=>(E,_,P)=>m.find(m=>{let S=m.guard??Truthy;return exec($,E,_,P)(S)})?.actions}}function determineGuardFn(m,$){return m=m??Truthy,(E,_,P)=>{if(isString(m)){let S=$[m];return isFunction(S)?S(E,_,P):S}return isGuardHelper(m)?m.predicate($)(E,_,P):m?.(E,_,P)}}function determineActionsFn(m,$){return(E,_,P)=>isGuardHelper(m)?m.predicate($)(E,_,P):m}function createProxy(m){let $=m.computed??cast({}),E=m.context??cast({}),_=(0,P.sj)({value:m.initial??"",previousValue:"",event:cast({}),previousEvent:cast({}),context:(0,P.wW)(E,$),done:!1,tags:[],hasTag(m){return this.tags.includes(m)},matches(...m){return m.includes(this.value)},can(m){return cast(this).nextEvents.includes(m)},get nextEvents(){let $=m.states?.[this.value]?.on??{},E=m?.on??{};return Object.keys({...$,...E})},get changed(){if("machine.init"===this.event.value||!this.previousValue)return!1;return this.value!==this.previousValue}});return cast(_)}function determineDelayFn(m,$){return(E,_)=>{if(isNumber(m))return m;if(isFunction(m))return m(E,_);if(isString(m)){let P=Number.parseFloat(m);if(!Number.isNaN(P))return P;if($){let P=$?.[m];return invariant(null==P,`[@zag-js/core > determine-delay] Cannot determine delay for \`${m}\`. It doesn't exist in \`options.delays\``),isFunction(P)?P(E,_):P}}}}function toTarget(m){return isString(m)?{target:m}:m}function determineTransitionFn(m,$){return(E,_,P)=>toArray(m).map(toTarget).find(m=>{let S=determineGuardFn(m.guard,$),T=S(E,_,P);return T??m.target??m.actions})}var R=class _Machine{constructor(m,$){__publicField(this,"status","Not Started"),__publicField(this,"state"),__publicField(this,"initialState"),__publicField(this,"initialContext"),__publicField(this,"id"),__publicField(this,"type","machine"),__publicField(this,"activityEvents",new Map),__publicField(this,"delayedEvents",new Map),__publicField(this,"stateListeners",new Set),__publicField(this,"contextListeners",new Set),__publicField(this,"eventListeners",new Set),__publicField(this,"doneListeners",new Set),__publicField(this,"contextWatchers",new Set),__publicField(this,"removeStateListener",noop),__publicField(this,"removeEventListener",noop),__publicField(this,"removeContextListener",noop),__publicField(this,"parent"),__publicField(this,"children",new Map),__publicField(this,"guardMap"),__publicField(this,"actionMap"),__publicField(this,"delayMap"),__publicField(this,"activityMap"),__publicField(this,"sync"),__publicField(this,"options"),__publicField(this,"config"),__publicField(this,"start",m=>{if(this.state.value="","Running"===this.status)return this;this.status="Running",this.removeStateListener=(0,P.Ld)(this.state,()=>{this.stateListeners.forEach(m=>{m(this.stateSnapshot)})},this.sync),this.removeEventListener=(0,P.VW)(this.state,"event",m=>{this.executeActions(this.config.onEvent,m),this.eventListeners.forEach($=>{$(m)})},this.sync),this.removeContextListener=(0,P.Ld)(this.state.context,()=>{this.log("Context:",this.contextSnapshot),this.contextListeners.forEach(m=>{m(this.contextSnapshot)})},this.sync||this.options.debug),this.setupContextWatchers(),this.executeActivities(toEvent("machine.start"),toArray(this.config.activities),"machine.start"),this.executeActions(this.config.entry,toEvent("machine.start"));let $=toEvent("machine.init"),E=isObject(m)?m.value:m,_=isObject(m)?m.context:void 0;_&&this.setContext(_);let S={target:E??this.config.initial},T=this.getNextStateInfo(S,$);return this.initialState=T,this.performStateChangeEffects(this.state.value,T,$),this}),__publicField(this,"setupContextWatchers",()=>{for(let[m,$]of Object.entries(this.config.watch??{})){let E=this.options.compareFns?.[m],_=(0,P.VW)(this.state.context,m,()=>{this.executeActions($,this.state.event)},this.sync,E);this.contextWatchers.add(_)}}),__publicField(this,"stop",()=>{if("Stopped"!==this.status)return this.performExitEffects(this.state.value,toEvent("machine.stop")),this.executeActions(this.config.exit,toEvent("machine.stop")),this.setState(""),this.setEvent("machine.stop"),this.stopStateListeners(),this.stopChildren(),this.stopActivities(),this.stopDelayedEvents(),this.stopContextWatchers(),this.stopEventListeners(),this.stopContextListeners(),this.status="Stopped",this}),__publicField(this,"stopEventListeners",()=>{this.eventListeners.clear(),this.removeEventListener()}),__publicField(this,"stopContextListeners",()=>{this.contextListeners.clear(),this.removeContextListener()}),__publicField(this,"stopStateListeners",()=>{this.removeStateListener(),this.stateListeners.clear()}),__publicField(this,"stopContextWatchers",()=>{this.contextWatchers.forEach(m=>m()),this.contextWatchers.clear()}),__publicField(this,"stopDelayedEvents",()=>{this.delayedEvents.forEach(m=>{m.forEach(m=>m())}),this.delayedEvents.clear()}),__publicField(this,"stopActivities",m=>{m?(this.activityEvents.get(m)?.forEach(m=>m()),this.activityEvents.get(m)?.clear(),this.activityEvents.delete(m)):(this.activityEvents.forEach(m=>{m.forEach(m=>m()),m.clear()}),this.activityEvents.clear())}),__publicField(this,"sendChild",(m,$)=>{let E=toEvent(m),_=runIfFn($,this.contextSnapshot),P=this.children.get(_);P||invariant(`[@zag-js/core] Cannot send '${E.type}' event to unknown child`),P.send(E)}),__publicField(this,"stopChild",m=>{this.children.has(m)||invariant(`[@zag-js/core > stop-child] Cannot stop unknown child ${m}`),this.children.get(m).stop(),this.children.delete(m)}),__publicField(this,"removeChild",m=>{this.children.delete(m)}),__publicField(this,"stopChildren",()=>{this.children.forEach(m=>m.stop()),this.children.clear()}),__publicField(this,"setParent",m=>{this.parent=m}),__publicField(this,"spawn",(m,$)=>{let E=runIfFn(m);return $&&(E.id=$),E.type="machine.actor",E.setParent(this),this.children.set(E.id,cast(E)),E.onDone(()=>{this.removeChild(E.id)}).start(),cast((0,P.iH)(E))}),__publicField(this,"addActivityCleanup",(m,$)=>{m&&(this.activityEvents.has(m)?this.activityEvents.get(m)?.add($):this.activityEvents.set(m,new Set([$])))}),__publicField(this,"setState",m=>{this.state.previousValue=this.state.value,this.state.value=m;let $=this.getStateNode(m);null==m?clear(this.state.tags):this.state.tags=toArray($?.tags)}),__publicField(this,"transformContext",m=>(this.options?.transformContext?.(m),m)),__publicField(this,"setContext",m=>{m&&deepMerge(this.state.context,this.transformContext(m))}),__publicField(this,"withContext",m=>{let $=this.transformContext(m),E={...this.config.context,...compact($)};return new _Machine({...this.config,context:E},this.options)}),__publicField(this,"setOptions",m=>{let $=compact(m);this.actionMap={...this.actionMap,...$.actions},this.delayMap={...this.delayMap,...$.delays},this.activityMap={...this.activityMap,...$.activities},this.guardMap={...this.guardMap,...$.guards}}),__publicField(this,"getStateNode",m=>{if(m)return this.config.states?.[m]}),__publicField(this,"getNextStateInfo",(m,$)=>{let E=this.determineTransition(m,$),_=!E?.target,P=E?.target??this.state.value,S=this.state.value!==P,T=this.getStateNode(P),k=!_&&!S&&!E?.internal,R={reenter:k,transition:E,stateNode:T,target:P,changed:S};return this.log("NextState:",`[${$.type}]`,this.state.value,"---->",R.target),R}),__publicField(this,"getActionFromDelayedTransition",m=>{let $;let E=toEvent("machine.after"),_=determineDelayFn(m.delay,this.delayMap),P=_(this.contextSnapshot,E);return{entry:()=>{$=globalThis.setTimeout(()=>{let $=this.getNextStateInfo(m,E);this.performStateChangeEffects(this.state.value,$,E)},P)},exit:()=>{globalThis.clearTimeout($)}}}),__publicField(this,"getDelayedEventActions",m=>{let $=this.getStateNode(m),E=toEvent("machine.after");if(!$||!$.after)return;let _=[],P=[];if(isArray($.after)){let m=this.determineTransition($.after,E);if(!m)return;let S=this.getActionFromDelayedTransition(m);_.push(S.entry),P.push(S.exit)}else if(isObject($.after))for(let m in $.after){let S=$.after[m],T={};if(isArray(S)){let m=this.determineTransition(S,E);m&&(T=m)}else T=isString(S)?{target:S,delay:m}:{...S,delay:m};let k=this.getActionFromDelayedTransition(T);_.push(k.entry),P.push(k.exit)}return{entries:_,exits:P}}),__publicField(this,"executeActions",(m,$)=>{let E=determineActionsFn(m,this.guardMap)(this.contextSnapshot,$,this.guardMeta);for(let m of toArray(E)){let E=isString(m)?this.actionMap?.[m]:m;warn(isString(m)&&!E,`[@zag-js/core > execute-actions] No implementation found for action: \`${m}\``),E?.(this.state.context,$,this.meta)}}),__publicField(this,"executeActivities",(m,$,E)=>{for(let _ of $){let $=isString(_)?this.activityMap?.[_]:_;if(!$){warn(`[@zag-js/core > execute-activity] No implementation found for activity: \`${_}\``);continue}let P=$(this.state.context,m,this.meta);P&&this.addActivityCleanup(E??this.state.value,P)}}),__publicField(this,"createEveryActivities",(m,$)=>{if(!m)return;let E=toEvent("machine.every");if(isArray(m)){let _=toArray(m).find(m=>{let $=m.delay,_=determineDelayFn($,this.delayMap),P=_(this.contextSnapshot,E),S=determineGuardFn(m.guard,this.guardMap),T=S(this.contextSnapshot,E,this.guardMeta);return T??null!=P});if(!_)return;let P=determineDelayFn(_.delay,this.delayMap),S=P(this.contextSnapshot,E);$(()=>{let m=globalThis.setInterval(()=>{this.executeActions(_.actions,E)},S);return()=>{globalThis.clearInterval(m)}})}else for(let _ in m){let P=m?.[_],S=determineDelayFn(_,this.delayMap),T=S(this.contextSnapshot,E),activity=()=>{let m=globalThis.setInterval(()=>{this.executeActions(P,E)},T);return()=>{globalThis.clearInterval(m)}};$(activity)}}),__publicField(this,"setEvent",m=>{this.state.previousEvent=this.state.event,this.state.event=(0,P.iH)(toEvent(m))}),__publicField(this,"performExitEffects",(m,$)=>{let E=this.state.value;if(""===E)return;let _=m?this.getStateNode(m):void 0;this.stopActivities(E);let P=determineActionsFn(_?.exit,this.guardMap)(this.contextSnapshot,$,this.guardMeta),S=toArray(P),T=this.delayedEvents.get(E);T&&S.push(...T),this.executeActions(S,$),this.eventListeners.clear()}),__publicField(this,"performEntryEffects",(m,$)=>{let E=this.getStateNode(m),_=toArray(E?.activities);this.createEveryActivities(E?.every,m=>{_.unshift(m)}),_.length>0&&this.executeActivities($,_);let P=determineActionsFn(E?.entry,this.guardMap)(this.contextSnapshot,$,this.guardMeta),S=toArray(P),T=this.getDelayedEventActions(m);E?.after&&T&&(this.delayedEvents.set(m,T?.exits),S.push(...T.entries)),this.executeActions(S,$),E?.type==="final"&&(this.state.done=!0,this.doneListeners.forEach(m=>{m(this.stateSnapshot)}),this.stop())}),__publicField(this,"performTransitionEffects",(m,$)=>{let E=this.determineTransition(m,$);this.executeActions(E?.actions,$)}),__publicField(this,"performStateChangeEffects",(m,$,E)=>{this.setEvent(E);let _=$.changed||$.reenter;_&&this.performExitEffects(m,E),this.performTransitionEffects($.transition,E),this.setState($.target),_&&this.performEntryEffects($.target,E)}),__publicField(this,"determineTransition",(m,$)=>{let E=determineTransitionFn(m,this.guardMap);return E?.(this.contextSnapshot,$,this.guardMeta)}),__publicField(this,"sendParent",m=>{this.parent||invariant("[@zag-js/core > send-parent] Cannot send event to an unknown parent");let $=toEvent(m);this.parent?.send($)}),__publicField(this,"log",(...m)=>{isDev()&&this.options.debug&&console.log(...m)}),__publicField(this,"send",m=>{let $=toEvent(m);this.transition(this.state.value,$)}),__publicField(this,"transition",(m,$)=>{let E=isString(m)?this.getStateNode(m):m?.stateNode,_=toEvent($);if(!E&&!this.config.on){let $="Stopped"===this.status?"[@zag-js/core > transition] Cannot transition a stopped machine":`[@zag-js/core > transition] State does not have a definition for \`state\`: ${m}, \`event\`: ${_.type}`;warn($);return}let P=E?.on?.[_.type]??this.config.on?.[_.type],S=this.getNextStateInfo(P,_);return this.performStateChangeEffects(this.state.value,S,_),S.stateNode}),__publicField(this,"subscribe",m=>(this.stateListeners.add(m),"Running"===this.status&&m(this.stateSnapshot),()=>{this.stateListeners.delete(m)})),__publicField(this,"onDone",m=>(this.doneListeners.add(m),this)),__publicField(this,"onTransition",m=>(this.stateListeners.add(m),"Running"===this.status&&m(this.stateSnapshot),this)),__publicField(this,"onChange",m=>(this.contextListeners.add(m),this)),__publicField(this,"onEvent",m=>(this.eventListeners.add(m),this)),this.config=klona(m),this.options=klona($??{}),this.id=this.config.id??`machine-${T()}`,this.guardMap=this.options?.guards??{},this.actionMap=this.options?.actions??{},this.delayMap=this.options?.delays??{},this.activityMap=this.options?.activities??{},this.sync=this.options?.sync??!1,this.state=createProxy(this.config),this.initialContext=(0,P.CO)(this.state.context),this.transformContext(this.state.context);let E=toEvent("machine.created");this.executeActions(this.config?.created,E)}get stateSnapshot(){return cast((0,P.CO)(this.state))}getState(){return this.stateSnapshot}get contextSnapshot(){return this.stateSnapshot.context}get self(){let m=this;return{id:this.id,send:this.send.bind(this),sendParent:this.sendParent.bind(this),sendChild:this.sendChild.bind(this),stop:this.stop.bind(this),stopChild:this.stopChild.bind(this),spawn:this.spawn.bind(this),get state(){return m.stateSnapshot},get initialContext(){return m.initialContext},get initialState(){return m.initialState?.target??""}}}get meta(){return{state:this.stateSnapshot,guards:this.guardMap,send:this.send.bind(this),self:this.self,initialContext:this.initialContext,initialState:this.initialState?.target??"",getState:()=>this.stateSnapshot,getAction:m=>this.actionMap[m],getGuard:m=>this.guardMap[m]}}get guardMeta(){return{state:this.stateSnapshot}}get[Symbol.toStringTag](){return"Machine"}},createMachine=(m,$)=>new R(m,$)},71233:function(m,$,E){"use strict";E.d($,{EV:function(){return addDomEvent},Em:function(){return getEventPoint},LI:function(){return fireCustomEvent},OP:function(){return getEventStep},d3:function(){return requestPointerLock},g0:function(){return getEventKey},iP:function(){return getNativeEvent},pW:function(){return isLeftClick},v$:function(){return isContextMenuEvent},yK:function(){return isModifiedEvent}});var addDomEvent=(m,$,E,_)=>{let P="function"==typeof m?m():m;return P?.addEventListener($,E,_),()=>{P?.removeEventListener($,E,_)}},isLeftClick=m=>0===m.button,isContextMenuEvent=m=>2===m.button||isCtrlKey(m)&&0===m.button,isModifiedEvent=m=>m.ctrlKey||m.altKey||m.metaKey,isMac=()=>/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),isCtrlKey=m=>isMac()?m.metaKey&&!m.ctrlKey:m.ctrlKey&&!m.metaKey;function fireCustomEvent(m,$,E){if(!m)return;let _=m.ownerDocument.defaultView||window,P=new _.CustomEvent($,E);return m.dispatchEvent(P)}var _={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},P={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function getEventKey(m,$={}){let{dir:E="ltr",orientation:S="horizontal"}=$,{key:T}=m;return T=_[T]??T,"rtl"===E&&"horizontal"===S&&T in P&&(T=P[T]),T}function pointFromTouch(m,$="client"){let E=m.touches[0]||m.changedTouches[0];return{x:E[`${$}X`],y:E[`${$}Y`]}}function pointFromMouse(m,$="client"){return{x:m[`${$}X`],y:m[`${$}Y`]}}var isTouchEvent=m=>"touches"in m&&m.touches.length>0;function getEventPoint(m,$="client"){return isTouchEvent(m)?pointFromTouch(m,$):pointFromMouse(m,$)}var S=new Set(["PageUp","PageDown"]),T=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function getEventStep(m){if(m.ctrlKey||m.metaKey)return .1;{let $=S.has(m.key),E=$||m.shiftKey&&T.has(m.key);return E?10:1}}function getNativeEvent(m){return m.nativeEvent??m}function requestPointerLock(m,$){let E=m.body,_="pointerLockElement"in m||"mozPointerLockElement"in m,isLocked=()=>!!m.pointerLockElement;function onPointerChange(){$?.(isLocked())}function onPointerError(E){isLocked()&&$?.(!1),console.error("PointerLock error occured:",E),m.exitPointerLock()}if(!_)return;try{E.requestPointerLock()}catch{}let P=[addDomEvent(m,"pointerlockchange",onPointerChange,!1),addDomEvent(m,"pointerlockerror",onPointerError,!1)];return()=>{P.forEach(m=>m()),m.exitPointerLock()}}},48168:function(m,$,E){"use strict";E.d($,{Es:function(){return nextById},G6:function(){return isSafari},Jj:function(){return getWindow},Kt:function(){return queryAll},Me:function(){return getDocument2},NI:function(){return getEventTarget},PB:function(){return dataAttr},Qm:function(){return ariaAttr},Re:function(){return isHTMLElement},Sv:function(){return prevById},Wn:function(){return raf},Y3:function(){return nextTick},dw:function(){return _},r3:function(){return contains},tp:function(){return createScope}});var dataAttr=m=>m?"":void 0,ariaAttr=m=>m?"true":void 0;function isHTMLElement(m){return"object"==typeof m&&m?.nodeType===Node.ELEMENT_NODE&&"string"==typeof m?.nodeName}function contains(m,$){return!!(m&&$&&isHTMLElement(m)&&isHTMLElement($))&&(m===$||m.contains($))}var getDocument=m=>m.nodeType===Node.DOCUMENT_NODE?m:m.ownerDocument??document;function createScope(m){let $={getRootNode:m=>m.getRootNode?.()??document,getDoc:m=>getDocument($.getRootNode(m)),getWin:m=>$.getDoc(m).defaultView??window,getActiveElement:m=>$.getDoc(m).activeElement,getById:(m,E)=>$.getRootNode(m).getElementById(E)};return{...$,...m}}var isDocument=m=>m.nodeType===Node.DOCUMENT_NODE;function getDocument2(m){return isDocument(m)?m:m?.ownerDocument??document}function getWindow(m){return m?.ownerDocument.defaultView??window}function itemById(m,$){return m.find(m=>m.id===$)}function indexOfId(m,$){let E=itemById(m,$);return E?m.indexOf(E):-1}function nextById(m,$,E=!0){let _=indexOfId(m,$);return _=E?(_+1)%m.length:Math.min(_+1,m.length-1),m[_]}function prevById(m,$,E=!0){let _=indexOfId(m,$);return -1===_?E?m[m.length-1]:null:(_=E?(_-1+m.length)%m.length:Math.max(0,_-1),m[_])}function getEventTarget(m){return m.composedPath?.()[0]??m.target}var isDom=()=>"undefined"!=typeof document;function getPlatform(){let m=navigator.userAgentData;return m?.platform??navigator.platform}var pt=m=>isDom()&&m.test(getPlatform()),vn=m=>isDom()&&m.test(navigator.vendor),isSafari=()=>isApple()&&vn(/apple/i),isApple=()=>pt(/mac|iphone|ipad|ipod/i);function queryAll(m,$){return Array.from(m?.querySelectorAll($)??[])}function nextTick(m){let $=new Set;function raf2(m){let E=globalThis.requestAnimationFrame(m);$.add(()=>globalThis.cancelAnimationFrame(E))}return raf2(()=>raf2(m)),function(){$.forEach(m=>m())}}function raf(m){let $=globalThis.requestAnimationFrame(m);return()=>{globalThis.cancelAnimationFrame($)}}var _=2147483647},24020:function(m,$,E){"use strict";E.d($,{c:function(){return trackElementRect}});var _,P=new Map,getRectFn=m=>m.getBoundingClientRect();function trackElementRect(m,$){let{scope:E="rect",getRect:S=getRectFn,onChange:T}=$,k=getLoopFn({scope:E,getRect:S}),R=P.get(m);return R?(R.callbacks.push(T),T(S(m))):(P.set(m,{rect:{},callbacks:[T]}),1===P.size&&(_=requestAnimationFrame(k))),function(){let $=P.get(m);if(!$)return;let E=$.callbacks.indexOf(T);E>-1&&$.callbacks.splice(E,1),0===$.callbacks.length&&(P.delete(m),0===P.size&&cancelAnimationFrame(_))}}function getLoopFn(m){let{scope:$,getRect:E}=m,S=getEqualityFn($);return function loop(){let m=[];P.forEach(($,_)=>{let P=E(_);S($.rect,P)||($.rect=P,m.push($))}),m.forEach(m=>{m.callbacks.forEach($=>$(m.rect))}),_=requestAnimationFrame(loop)}}var isEqualSize=(m,$)=>m.width===$.width&&m.height===$.height,isEqualPosition=(m,$)=>m.top===$.top&&m.left===$.left,isEqualRect=(m,$)=>isEqualSize(m,$)&&isEqualPosition(m,$);function getEqualityFn(m){return"size"===m?isEqualSize:"position"===m?isEqualPosition:isEqualRect}},83915:function(m,$,E){"use strict";E.d($,{NS:function(){return trackFormControl},x$:function(){return dispatchInputValueEvent}});var _=E(61080),getWindow=m=>m.ownerDocument.defaultView||window;function getDescriptor(m,$){let{type:E,property:_="value"}=$,P=getWindow(m)[E].prototype;return Object.getOwnPropertyDescriptor(P,_)??{}}function dispatchInputValueEvent(m,$){if(!m)return;let E=getWindow(m);if(!(m instanceof E.HTMLInputElement))return;let{value:_,bubbles:P=!0}=$,S=getDescriptor(m,{type:"HTMLInputElement",property:"value"});S.set?.call(m,_);let T=new E.Event("input",{bubbles:P});m.dispatchEvent(T)}function getClosestForm(m){return isFormElement(m)?m.form:m.closest("form")}function isFormElement(m){return m.matches("textarea, input, select, button")}function trackFormReset(m,$){if(!m)return;let E=getClosestForm(m);return E?.addEventListener("reset",$,{passive:!0}),()=>{E?.removeEventListener("reset",$)}}function trackFieldsetDisabled(m,$){let E=m?.closest("fieldset");if(E)return $(E.disabled),(0,_.F)(E,["disabled"],()=>$(E.disabled))}function trackFormControl(m,$){if(!m)return;let{onFieldsetDisabled:E,onFormReset:_}=$,P=[trackFormReset(m,_),trackFieldsetDisabled(m,m=>{m&&E()})];return()=>{P.forEach(m=>m?.())}}},61080:function(m,$,E){"use strict";function observeAttributes(m,$,E){if(!m)return;let _=m.ownerDocument.defaultView||window,P=new _.MutationObserver(m=>{for(let _ of m)"attributes"===_.type&&_.attributeName&&$.includes(_.attributeName)&&E(_)});return P.observe(m,{attributes:!0,attributeFilter:$}),()=>P.disconnect()}function observeChildren(m,$){if(!m)return;let E=m.ownerDocument.defaultView||window,_=new E.MutationObserver($);return _.observe(m,{childList:!0,subtree:!0}),()=>_.disconnect()}E.d($,{F:function(){return observeAttributes},P:function(){return observeChildren}})},62537:function(m,$,E){"use strict";E.d($,{$j:function(){return connect},u_:function(){return machine}});var _=E(77227),P=E(71233),S=E(48168);function wrap(m,$){return(m%$+$)%$}function roundToDevicePixel(m){if("number"!=typeof window.devicePixelRatio)return Math.round(m);let $=window.devicePixelRatio;return Math.floor(m*$+.5)/$}function clamp(m,$){return Math.min(Math.max(dist_valueOf(m),$.min),$.max)}function countDecimals(m){if(!Number.isFinite(m))return 0;let $=1,E=0;for(;Math.round(m*$)/$!==m;)$*=10,E+=1;return E}var increment=(m,$)=>decimalOperation(dist_valueOf(m),"+",$),decrement=(m,$)=>decimalOperation(dist_valueOf(m),"-",$);function dist_valueOf(m){if("number"==typeof m)return m;let $=parseFloat(m.toString().replace(/[^\w.-]+/g,""));return Number.isNaN($)?0:$}function formatDecimal(m,$){return new Intl.NumberFormat("en-US",{useGrouping:!1,style:"decimal",minimumFractionDigits:$.minFractionDigits,maximumFractionDigits:$.maxFractionDigits}).format(dist_valueOf(m))}function isAtMax(m,$){let E=dist_valueOf(m);return E>=$.max}function isAtMin(m,$){let E=dist_valueOf(m);return E<=$.min}function isWithinRange(m,$){let E=dist_valueOf(m);return E>=$.min&&E<=$.max}function decimalOperation(m,$,E){let _="+"===$?m+E:m-E;if(m%1!=0||E%1!=0){let P=10**Math.max(countDecimals(m),countDecimals(E));m=Math.round(m*P),E=Math.round(E*P),_=("+"===$?m+E:m-E)/P}return _}new Intl.NumberFormat("en-US",{style:"decimal",maximumFractionDigits:20});var T=E(37423),k=E(83915),R=E(61080),A=E(34320),M=(0,_.F)("numberInput").parts("root","label","input","control","incrementTrigger","decrementTrigger","scrubber").build(),V=(0,S.tp)({getRootId:m=>m.ids?.root??`number-input:${m.id}`,getInputId:m=>m.ids?.input??`number-input:${m.id}:input`,getIncrementTriggerId:m=>m.ids?.incrementTrigger??`number-input:${m.id}:inc`,getDecrementTriggerId:m=>m.ids?.decrementTrigger??`number-input:${m.id}:dec`,getScrubberId:m=>m.ids?.scrubber??`number-input:${m.id}:scrubber`,getCursorId:m=>`number-input:${m.id}:cursor`,getLabelId:m=>m.ids?.label??`number-input:${m.id}:label`,getInputEl:m=>V.getById(m,V.getInputId(m)),getIncrementTriggerEl:m=>V.getById(m,V.getIncrementTriggerId(m)),getDecrementTriggerEl:m=>V.getById(m,V.getDecrementTriggerId(m)),getScrubberEl:m=>V.getById(m,V.getScrubberId(m)),getCursorEl:m=>V.getDoc(m).getElementById(V.getCursorId(m)),getPressedTriggerEl:(m,$=m.hint)=>{let E=null;return"increment"===$&&(E=V.getIncrementTriggerEl(m)),"decrement"===$&&(E=V.getDecrementTriggerEl(m)),E},setupVirtualCursor(m){if(!(0,S.G6)())return V.createVirtualCursor(m),()=>{V.getCursorEl(m)?.remove()}},preventTextSelection(m){let $=V.getDoc(m),E=$.documentElement,_=$.body;return _.style.pointerEvents="none",E.style.userSelect="none",E.style.cursor="ew-resize",()=>{_.style.pointerEvents="",E.style.userSelect="",E.style.cursor="",E.style.length||E.removeAttribute("style"),_.style.length||_.removeAttribute("style")}},getMousementValue(m,$){let E=roundToDevicePixel($.movementX),_=roundToDevicePixel($.movementY),P=E>0?"increment":E<0?"decrement":null;m.isRtl&&"increment"===P&&(P="decrement"),m.isRtl&&"decrement"===P&&(P="increment");let S={x:m.scrubberCursorPoint.x+E,y:m.scrubberCursorPoint.y+_},T=V.getWin(m),k=T.innerWidth,R=roundToDevicePixel(7.5);return S.x=wrap(S.x+R,k)-R,{hint:P,point:S}},createVirtualCursor(m){let $=V.getDoc(m),E=$.createElement("div");E.className="scrubber--cursor",E.id=V.getCursorId(m),Object.assign(E.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:S.dw,transform:m.scrubberCursorPoint?`translate3d(${m.scrubberCursorPoint.x}px, ${m.scrubberCursorPoint.y}px, 0px)`:void 0,willChange:"transform"}),E.innerHTML=` + + + + + + `,$.body.appendChild(E)}}),N={isValidNumericEvent:(m,$)=>{if(null==$.key)return!0;let E=(0,P.yK)($),_=1===$.key.length;return!!E||!_||(m.validateCharacter?.($.key)??N.isFloatingPoint($.key))},isFloatingPoint:m=>/^[0-9+\-.]$/.test(m),sanitize:(m,$)=>$.split("").filter(m.validateCharacter??N.isFloatingPoint).join(""),increment:(m,$)=>{let E=increment(m.value,$??m.step);return formatDecimal(clamp(E,m),m)},decrement:(m,$)=>{let E=decrement(m.value,$??m.step);return formatDecimal(clamp(E,m),m)},clamp:m=>formatDecimal(clamp(m.value,m),m),parse:(m,$)=>m.parse?.($)??$,format:(m,$)=>{let E=$.toString();return m.format?.(E)??E},round:m=>formatDecimal(m.value,m)};function connect(m,$,E){let _=m.hasTag("focus"),T=m.context.isOutOfRange||!!m.context.invalid,k=!!m.context.disabled,R=m.context.isValueEmpty,A=k||!m.context.canIncrement,j=k||!m.context.canDecrement,B=m.context.translations;return{isFocused:_,isInvalid:T,isValueEmpty:R,value:m.context.formattedValue,valueAsNumber:m.context.valueAsNumber,setValue(m){$({type:"SET_VALUE",value:m.toString()})},clearValue(){$("CLEAR_VALUE")},increment(){$("INCREMENT")},decrement(){$("DECREMENT")},setToMax(){$({type:"SET_VALUE",value:m.context.max})},setToMin(){$({type:"SET_VALUE",value:m.context.min})},focus(){V.getInputEl(m.context)?.focus()},blur(){V.getInputEl(m.context)?.blur()},rootProps:E.element({id:V.getRootId(m.context),...M.root.attrs,"data-disabled":(0,S.PB)(k),"data-focus":(0,S.PB)(_),"data-invalid":(0,S.PB)(T)}),labelProps:E.label({...M.label.attrs,"data-disabled":(0,S.PB)(k),"data-focus":(0,S.PB)(_),"data-invalid":(0,S.PB)(T),id:V.getLabelId(m.context),htmlFor:V.getInputId(m.context)}),controlProps:E.element({...M.control.attrs,role:"group","aria-disabled":k,"data-focus":(0,S.PB)(_),"data-disabled":(0,S.PB)(k),"data-invalid":(0,S.PB)(T),"aria-invalid":(0,S.Qm)(m.context.invalid)}),inputProps:E.input({...M.input.attrs,name:m.context.name,form:m.context.form,id:V.getInputId(m.context),role:"spinbutton",defaultValue:m.context.formattedValue,pattern:m.context.pattern,inputMode:m.context.inputMode,"aria-invalid":(0,S.Qm)(T),"data-invalid":(0,S.PB)(T),disabled:k,"data-disabled":(0,S.PB)(k),readOnly:!!m.context.readOnly,autoComplete:"off",autoCorrect:"off",spellCheck:"false",type:"text","aria-roledescription":"numberfield","aria-valuemin":m.context.min,"aria-valuemax":m.context.max,"aria-valuenow":isNaN(m.context.valueAsNumber)?void 0:m.context.valueAsNumber,"aria-valuetext":m.context.valueText,onFocus(){$("FOCUS")},onBlur(){$("BLUR")},onChange(m){$({type:"CHANGE",target:m.currentTarget,hint:"set"})},onKeyDown(E){let _=(0,P.iP)(E);if(_.isComposing)return;N.isValidNumericEvent(m.context,E)||E.preventDefault();let S=(0,P.OP)(E)*m.context.step,T={ArrowUp(){$({type:"ARROW_UP",step:S})},ArrowDown(){$({type:"ARROW_DOWN",step:S})},Home(){$("HOME")},End(){$("END")}}[E.key];T&&(T(E),E.preventDefault())}}),decrementTriggerProps:E.button({...M.decrementTrigger.attrs,id:V.getDecrementTriggerId(m.context),disabled:j,"data-disabled":(0,S.PB)(j),"aria-label":B.decrementLabel,type:"button",tabIndex:-1,"aria-controls":V.getInputId(m.context),onPointerDown(m){j||($((0,P.pW)(m)?{type:"PRESS_DOWN",hint:"decrement"}:{type:"FOCUS"}),m.preventDefault())},onPointerUp(){$({type:"PRESS_UP",hint:"decrement"})},onPointerLeave(){j||$({type:"PRESS_UP",hint:"decrement"})}}),incrementTriggerProps:E.button({...M.incrementTrigger.attrs,id:V.getIncrementTriggerId(m.context),disabled:A,"data-disabled":(0,S.PB)(A),"aria-label":B.incrementLabel,type:"button",tabIndex:-1,"aria-controls":V.getInputId(m.context),onPointerDown(m){A||($((0,P.pW)(m)?{type:"PRESS_DOWN",hint:"increment"}:{type:"FOCUS"}),m.preventDefault())},onPointerUp(){$({type:"PRESS_UP",hint:"increment"})},onPointerLeave(){$({type:"PRESS_UP",hint:"increment"})}}),scrubberProps:E.element({...M.scrubber.attrs,"data-disabled":(0,S.PB)(k),id:V.getScrubberId(m.context),role:"presentation",onMouseDown(m){if(k)return;let E=(0,P.iP)(m),_=(0,P.Em)(E);_.x=_.x-roundToDevicePixel(7.5),_.y=_.y-roundToDevicePixel(7.5),$({type:"PRESS_DOWN_SCRUBBER",point:_}),m.preventDefault()},style:{cursor:k?void 0:"ew-resize"}})}}var{not:j,and:B}=T.guards;function machine(m){let $=(0,A.oA)(m);return(0,T.C8)({id:"number-input",initial:"idle",context:{dir:"ltr",focusInputOnChange:!0,clampValueOnBlur:!0,allowOverflow:!1,inputMode:"decimal",pattern:"[0-9]*(.[0-9]+)?",hint:null,value:"",step:1,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scrubberCursorPoint:null,invalid:!1,spinOnPress:!0,...$,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...$.translations}},computed:{isRtl:m=>"rtl"===m.dir,valueAsNumber:m=>dist_valueOf(m.value),isAtMin:m=>isAtMin(m.value,m),isAtMax:m=>isAtMax(m.value,m),isOutOfRange:m=>!isWithinRange(m.value,m),isValueEmpty:m=>""===m.value,canIncrement:m=>m.allowOverflow||!m.isAtMax,canDecrement:m=>m.allowOverflow||!m.isAtMin,valueText:m=>m.translations.valueText?.(m.value),formattedValue:m=>m.format?.(m.value).toString()??m.value},watch:{value:["invokeOnChange","dispatchChangeEvent"],isOutOfRange:["invokeOnInvalid"],scrubberCursorPoint:["setVirtualCursorPosition"]},entry:["syncInputValue"],on:{SET_VALUE:[{guard:"clampOnBlur",actions:["setValue","clampValue","setHintToSet"]},{actions:["setValue","setHintToSet"]}],CLEAR_VALUE:{actions:["clearValue"]},INCREMENT:{actions:["increment"]},DECREMENT:{actions:["decrement"]}},states:{idle:{exit:"invokeOnFocus",on:{PRESS_DOWN:{target:"before:spin",actions:["focusInput","setHint"]},PRESS_DOWN_SCRUBBER:{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},FOCUS:"focused"}},focused:{tags:"focus",entry:"focusInput",activities:"attachWheelListener",on:{PRESS_DOWN:{target:"before:spin",actions:["focusInput","setHint"]},PRESS_DOWN_SCRUBBER:{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},ARROW_UP:{actions:"increment"},ARROW_DOWN:{actions:"decrement"},HOME:{actions:"setToMin"},END:{actions:"setToMax"},CHANGE:{actions:["setValue","setHint"]},BLUR:[{guard:"isInvalidExponential",target:"idle",actions:["clearValue","clearHint","invokeOnBlur"]},{guard:B("clampOnBlur",j("isInRange"),j("isEmptyValue")),target:"idle",actions:["clampValue","clearHint","invokeOnBlur"]},{target:"idle",actions:["roundValue","invokeOnBlur"]}]}},"before:spin":{tags:"focus",activities:"trackButtonDisabled",entry:(0,T.RN)([{guard:"isIncrementHint",actions:"increment"},{guard:"isDecrementHint",actions:"decrement"}]),after:{CHANGE_DELAY:{target:"spinning",guard:B("isInRange","spinOnPress")}},on:{PRESS_UP:{target:"focused",actions:"clearHint"}}},spinning:{tags:"focus",activities:"trackButtonDisabled",every:[{delay:"CHANGE_INTERVAL",guard:B(j("isAtMin"),"isIncrementHint"),actions:"increment"},{delay:"CHANGE_INTERVAL",guard:B(j("isAtMax"),"isDecrementHint"),actions:"decrement"}],on:{PRESS_UP:{target:"focused",actions:"clearHint"}}},scrubbing:{tags:"focus",exit:"clearCursorPoint",activities:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{POINTER_UP_SCRUBBER:"focused",POINTER_MOVE_SCRUBBER:[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}}},{delays:{CHANGE_INTERVAL:50,CHANGE_DELAY:300},guards:{clampOnBlur:m=>!!m.clampValueOnBlur,isAtMin:m=>m.isAtMin,spinOnPress:m=>!!m.spinOnPress,isAtMax:m=>m.isAtMax,isInRange:m=>!m.isOutOfRange,isDecrementHint:(m,$)=>($.hint??m.hint)==="decrement",isEmptyValue:m=>m.isValueEmpty,isIncrementHint:(m,$)=>($.hint??m.hint)==="increment",isInvalidExponential:m=>m.value.toString().startsWith("e")},activities:{setupVirtualCursor:m=>V.setupVirtualCursor(m),preventTextSelection:m=>V.preventTextSelection(m),trackButtonDisabled(m,$,{send:E}){let _=V.getPressedTriggerEl(m,m.hint);return(0,R.F)(_,["disabled"],()=>{E("PRESS_UP")})},attachWheelListener(m,$,{send:E}){let _=V.getInputEl(m);if(_)return(0,P.EV)(_,"wheel",onWheel,{passive:!1});function onWheel($){let P=V.getDoc(m).activeElement===_;if(!m.allowMouseWheel||!P)return;$.preventDefault();let S=-1*Math.sign($.deltaY);1===S?E("INCREMENT"):-1===S&&E("DECREMENT")}},activatePointerLock(m){if(!(0,S.G6)())return(0,P.d3)(V.getDoc(m))},trackMousemove(m,$,{send:E}){let _=V.getDoc(m);function onMousemove($){if(!m.scrubberCursorPoint)return;let _=V.getMousementValue(m,$);_.hint&&E({type:"POINTER_MOVE_SCRUBBER",hint:_.hint,point:_.point})}function onMouseup(){E("POINTER_UP_SCRUBBER")}return(0,A.PP)((0,P.EV)(_,"mousemove",onMousemove,!1),(0,P.EV)(_,"mouseup",onMouseup,!1))}},actions:{focusInput(m){if(!m.focusInputOnChange)return;let $=V.getInputEl(m);(0,S.Wn)(()=>$?.focus())},increment(m,$){m.value=N.increment(m,$.step)},decrement(m,$){m.value=N.decrement(m,$.step)},clampValue(m){m.value=N.clamp(m)},roundValue(m){""!==m.value&&(m.value=N.round(m))},setValue(m,$){let E=$.target?.value??$.value;m.value=N.sanitize(m,N.parse(m,E.toString()))},clearValue(m){m.value=""},setToMax(m){m.value=m.max.toString()},setToMin(m){m.value=m.min.toString()},setHint(m,$){m.hint=$.hint},clearHint(m){m.hint=null},setHintToSet(m){m.hint="set"},invokeOnChange(m){m.onChange?.({value:m.value,valueAsNumber:m.valueAsNumber})},invokeOnFocus(m,$){let E=null;"PRESS_DOWN"===$.type?E=V.getPressedTriggerEl(m,$.hint):"FOCUS"===$.type?E=V.getInputEl(m):"PRESS_DOWN_SCRUBBER"===$.type&&(E=V.getScrubberEl(m)),m.onFocus?.({value:m.value,valueAsNumber:m.valueAsNumber,srcElement:E})},invokeOnBlur(m){m.onBlur?.({value:m.value,valueAsNumber:m.valueAsNumber})},invokeOnInvalid(m){if(!m.isOutOfRange)return;let $=m.valueAsNumber>m.max?"rangeOverflow":"rangeUnderflow";m.onInvalid?.({reason:$,value:m.formattedValue,valueAsNumber:m.valueAsNumber})},syncInputValue(m){let $=V.getInputEl(m);if(!$||$.value==m.value)return;let E=N.parse(m,$.value);m.value=N.sanitize(m,E)},setCursorPoint(m,$){m.scrubberCursorPoint=$.point},clearCursorPoint(m){m.scrubberCursorPoint=null},setVirtualCursorPosition(m){let $=V.getCursorEl(m);if(!$||!m.scrubberCursorPoint)return;let{x:E,y:_}=m.scrubberCursorPoint;$.style.transform=`translate3d(${E}px, ${_}px, 0px)`},dispatchChangeEvent(m){let $=V.getInputEl(m);(0,k.x$)($,{value:m.formattedValue})}}})}},51733:function(m,$,E){"use strict";E.d($,{$j:function(){return connect},u_:function(){return machine}});var _=E(77227),P=E(48168),S=E(38938),T=E(37423),k=E(24020),R=E(83915),A=E(34320),M=(0,_.F)("radio-group").parts("root","label","radio","radioLabel","radioControl","radioInput","indicator").build(),V=(0,P.tp)({getRootId:m=>m.ids?.root??`radio-group:${m.id}`,getLabelId:m=>m.ids?.label??`radio-group:${m.id}:label`,getRadioId:(m,$)=>m.ids?.radio?.($)??`radio-group:${m.id}:radio:${$}`,getRadioInputId:(m,$)=>m.ids?.radioInput?.($)??`radio-group:${m.id}:radio:input:${$}`,getRadioControlId:(m,$)=>m.ids?.radioControl?.($)??`radio-group:${m.id}:radio:control:${$}`,getRadioLabelId:(m,$)=>m.ids?.radioLabel?.($)??`radio-group:${m.id}:radio:label:${$}`,getIndicatorId:m=>m.ids?.indicator??`tabs:${m.id}:indicator`,getRootEl:m=>V.getById(m,V.getRootId(m)),getRadioInputEl:(m,$)=>V.getById(m,V.getRadioInputId(m,$)),getIndicatorEl:m=>V.getById(m,V.getIndicatorId(m)),getFirstEnabledInputEl:m=>V.getRootEl(m)?.querySelector("input:not(:disabled)"),getFirstEnabledAndCheckedInputEl:m=>V.getRootEl(m)?.querySelector("input:not(:disabled):checked"),getInputEls:m=>{let $=CSS.escape(V.getRootId(m)),E=`input[type=radio][data-ownedby='${$}']:not([disabled])`;return(0,P.Kt)(V.getRootEl(m),E)},getActiveRadioEl:m=>{if(m.value)return V.getById(m,V.getRadioId(m,m.value))},getOffsetRect:m=>({left:m?.offsetLeft??0,top:m?.offsetTop??0,width:m?.offsetWidth??0,height:m?.offsetHeight??0}),getRectById:(m,$)=>{let E=V.getById(m,V.getRadioId(m,$));if(E)return V.resolveRect(V.getOffsetRect(E))},resolveRect:m=>({width:`${m.width}px`,height:`${m.height}px`,left:`${m.left}px`,top:`${m.top}px`})});function connect(m,$,E){let _=m.context.disabled;function getRadioState($){let E={isInvalid:$.invalid,isDisabled:$.disabled||_,isChecked:m.context.value===$.value,isFocused:m.context.focusedId===$.value,isHovered:m.context.hoveredId===$.value,isActive:m.context.activeId===$.value};return{...E,isInteractive:!E.isDisabled}}function getRadioDataAttrs($){let E=getRadioState($);return{"data-focus":(0,P.PB)(E.isFocused),"data-disabled":(0,P.PB)(E.isDisabled),"data-state":E.isChecked?"checked":"unchecked","data-hover":(0,P.PB)(E.isHovered),"data-invalid":(0,P.PB)(E.isInvalid),"data-orientation":m.context.orientation}}let focus=()=>{let $=V.getFirstEnabledAndCheckedInputEl(m.context);if($){$.focus();return}let E=V.getFirstEnabledInputEl(m.context);E?.focus()};return{value:m.context.value,setValue(m){$({type:"SET_VALUE",value:m,manual:!0})},clearValue(){$({type:"SET_VALUE",value:null,manual:!0})},focus,blur(){let $=V.getActiveElement(m.context),E=V.getInputEls(m.context),_=E.some(m=>m===$);_&&$?.blur()},getRadioState,rootProps:E.element({...M.root.attrs,role:"radiogroup",id:V.getRootId(m.context),"aria-labelledby":V.getLabelId(m.context),"data-orientation":m.context.orientation,"data-disabled":(0,P.PB)(_),"aria-orientation":m.context.orientation,dir:m.context.dir}),labelProps:E.element({...M.label.attrs,"data-orientation":m.context.orientation,"data-disabled":(0,P.PB)(_),id:V.getLabelId(m.context),onClick:focus}),getRadioProps(_){let P=getRadioState(_);return E.label({...M.radio.attrs,id:V.getRadioId(m.context,_.value),htmlFor:V.getRadioInputId(m.context,_.value),...getRadioDataAttrs(_),onPointerMove(){P.isInteractive&&$({type:"SET_HOVERED",value:_.value,hovered:!0})},onPointerLeave(){P.isInteractive&&$({type:"SET_HOVERED",value:null})},onPointerDown(m){P.isInteractive&&(P.isFocused&&"mouse"===m.pointerType&&m.preventDefault(),$({type:"SET_ACTIVE",value:_.value,active:!0}))},onPointerUp(){P.isInteractive&&$({type:"SET_ACTIVE",value:null})}})},getRadioLabelProps:$=>E.element({...M.radioLabel.attrs,id:V.getRadioLabelId(m.context,$.value),...getRadioDataAttrs($)}),getRadioControlProps($){let _=getRadioState($);return E.element({...M.radioControl.attrs,id:V.getRadioControlId(m.context,$.value),"data-active":(0,P.PB)(_.isActive),"aria-hidden":!0,...getRadioDataAttrs($)})},getRadioInputProps(_){let T=getRadioState(_),k=_.required,R=T.isDisabled&&!_.focusable;return E.input({...M.radioInput.attrs,"data-ownedby":V.getRootId(m.context),id:V.getRadioInputId(m.context,_.value),type:"radio",name:m.context.name||m.context.id,form:m.context.form,value:_.value,onChange(m){!T.isDisabled&&m.target.checked&&$({type:"SET_VALUE",value:_.value})},onBlur(){$({type:"SET_FOCUSED",value:null})},onFocus(){$({type:"SET_FOCUSED",value:_.value,focused:!0})},onKeyDown(m){" "===m.key&&$({type:"SET_ACTIVE",value:_.value,active:!0})},onKeyUp(m){" "===m.key&&$({type:"SET_ACTIVE",value:null})},disabled:R,required:k,defaultChecked:T.isChecked,"data-disabled":(0,P.PB)(T.isDisabled),"aria-required":(0,P.Qm)(k),"aria-invalid":(0,P.Qm)(T.isInvalid),"aria-disabled":(0,P.Qm)(R),"aria-checked":(0,P.Qm)(T.isChecked),style:S.N})},indicatorProps:E.element({id:V.getIndicatorId(m.context),...M.indicator.attrs,"data-disabled":(0,P.PB)(_),"data-orientation":m.context.orientation,style:{"--transition-duration":"150ms","--transition-property":"left, top, width, height",position:"absolute",willChange:"var(--transition-property)",transitionProperty:"var(--transition-property)",transitionDuration:m.context.canIndicatorTransition?"var(--transition-duration)":"0ms",transitionTimingFunction:"var(--transition-timing-function)",...m.context.indicatorRect}})}}function machine(m){let $=(0,A.oA)(m);return(0,T.C8)({id:"radio",initial:"idle",context:{value:null,activeId:null,focusedId:null,hoveredId:null,indicatorRect:{},canIndicatorTransition:!1,...$},entry:["syncIndicatorRect"],exit:["cleanupObserver"],activities:["trackFormControlState"],watch:{value:["setIndicatorTransition","invokeOnChange","syncIndicatorRect","syncInputElements"]},on:{SET_VALUE:{actions:["setValue"]},SET_HOVERED:{actions:"setHovered"},SET_ACTIVE:{actions:"setActive"},SET_FOCUSED:{actions:"setFocused"}},states:{idle:{}}},{activities:{trackFormControlState:(m,$,{send:E,initialContext:_})=>(0,R.NS)(V.getRootEl(m),{onFieldsetDisabled(){m.disabled=!0},onFormReset(){E({type:"SET_VALUE",value:_.value})}})},actions:{setValue(m,$){m.value=$.value},setHovered(m,$){m.hoveredId=$.value},setActive(m,$){m.activeId=$.value},setFocused(m,$){m.focusedId=$.value},invokeOnChange(m,$){m.onChange?.({value:$.value})},syncInputElements(m){let $=V.getInputEls(m);$.forEach($=>{$.checked=$.value===m.value})},setIndicatorTransition(m){m.canIndicatorTransition=(0,A.HD)(m.value)},cleanupObserver(m){m.indicatorCleanup?.()},syncIndicatorRect(m){if(m.indicatorCleanup?.(),!V.getIndicatorEl(m))return;let $=m.value;if(null==$){m.indicatorRect={};return}let E=V.getActiveRadioEl(m);E&&(m.indicatorCleanup=(0,k.c)(E,{getRect:m=>V.getOffsetRect(m),onChange($){m.indicatorRect=V.resolveRect($),(0,P.Y3)(()=>{m.canIndicatorTransition=!1})}}))}}})}},76154:function(m,$,E){"use strict";function createNormalizer(m){return new Proxy({},{get:()=>m})}E.d($,{vs:function(){return T},eO:function(){return useMachine}});var _=E(2265);E(54887);var P=E(14434),S=E(22218),T=createNormalizer(m=>m),k="undefined"!=typeof document?_.useLayoutEffect:_.useEffect,{use:R}=_;function useSnapshot(m,$){let E=$?.sync,T=(0,_.useRef)(),k=(0,_.useRef)(),A=(0,_.useSyncExternalStore)((0,_.useCallback)($=>{let _=(0,P.Ld)(m,$,E);return $(),_},[m,E]),()=>{let $=(0,P.CO)(m,R);try{if(T.current&&k.current&&!(0,S.ln)(T.current,$,k.current,new WeakMap))return T.current}catch(m){}return $},()=>(0,P.CO)(m,R)),M=new WeakMap;(0,_.useEffect)(()=>{T.current=A,k.current=M});let V=(0,_.useMemo)(()=>new WeakMap,[]);return(0,S.DM)(A,M,V)}function useConstant(m){let $=(0,_.useRef)();return $.current||($.current={v:m()}),$.current.v}function useService(m,$){let{actions:E,state:_,context:P}=$??{},S=useConstant(()=>{let $="function"==typeof m?m():m;return P?$.withContext(P):$});return k(()=>(S.start(_),S.state.can("SETUP")&&S.send("SETUP"),()=>{S.stop()}),[]),S.setOptions({actions:E}),S.setContext(P),S}function useMachine(m,$){let E=useService(m,$),_=useSnapshot(E.state);return[_,E.send,E]}},14434:function(m,$,E){"use strict";E.d($,{CO:function(){return snapshot},Ld:function(){return subscribe},VW:function(){return subscribeKey},iH:function(){return ref},sj:function(){return proxy},wW:function(){return proxyWithComputed}});var _=E(22218),P=!1,isObject=m=>"object"==typeof m&&null!==m,S=new WeakMap,T=new WeakSet,[k]=((m=Object.is,$=(m,$)=>new Proxy(m,$),E=m=>isObject(m)&&!T.has(m)&&(Array.isArray(m)||!(Symbol.iterator in m))&&!(m instanceof WeakMap)&&!(m instanceof WeakSet)&&!(m instanceof Error)&&!(m instanceof Number)&&!(m instanceof Date)&&!(m instanceof String)&&!(m instanceof RegExp)&&!(m instanceof ArrayBuffer),k=m=>{switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:throw m}},R=new WeakMap,A=(m,$,E=k)=>{let P=R.get(m);if(P?.[0]===$)return P[1];let A=Array.isArray(m)?[]:Object.create(Object.getPrototypeOf(m));return(0,_.jc)(A,!0),R.set(m,[$,A]),Reflect.ownKeys(m).forEach($=>{let P=Reflect.get(m,$);T.has(P)?((0,_.jc)(P,!1),A[$]=P):P instanceof Promise?Object.defineProperty(A,$,{get:()=>E(P)}):S.has(P)?A[$]=snapshot(P,E):A[$]=P}),Object.freeze(A)},M=new WeakMap,V=[1,1],N=k=>{if(!isObject(k))throw Error("object required");let R=M.get(k);if(R)return R;let N=V[0],j=new Set,notifyUpdate=(m,$=++V[0])=>{N!==$&&(N=$,j.forEach(E=>E(m,$)))},B=V[1],ensureVersion=(m=++V[1])=>(B===m||j.size||(B=m,z.forEach(([$])=>{let E=$[1](m);E>N&&(N=E)})),N),createPropListener=m=>($,E)=>{let _=[...$];_[1]=[m,..._[1]],notifyUpdate(_,E)},z=new Map,addPropListener=(m,$)=>{if(P&&z.has(m))throw Error("prop listener already exists");if(j.size){let E=$[3](createPropListener(m));z.set(m,[$,E])}else z.set(m,[$])},removePropListener=m=>{let $=z.get(m);$&&(z.delete(m),$[1]?.())},addListener=m=>{j.add(m),1===j.size&&z.forEach(([m,$],E)=>{if(P&&$)throw Error("remove already exists");let _=m[3](createPropListener(E));z.set(E,[m,_])});let removeListener=()=>{j.delete(m),0===j.size&&z.forEach(([m,$],E)=>{$&&($(),z.set(E,[m]))})};return removeListener},W=Array.isArray(k)?[]:Object.create(Object.getPrototypeOf(k)),H={deleteProperty(m,$){let E=Reflect.get(m,$);removePropListener($);let _=Reflect.deleteProperty(m,$);return _&¬ifyUpdate(["delete",[$],E]),_},set($,P,k,R){let A=Reflect.has($,P),V=Reflect.get($,P,R);if(A&&(m(V,k)||M.has(k)&&m(V,M.get(k))))return!0;removePropListener(P),isObject(k)&&(k=(0,_.o5)(k)||k);let N=k;if(Object.getOwnPropertyDescriptor($,P)?.set);else if(k instanceof Promise)k.then(m=>{k.status="fulfilled",k.value=m,notifyUpdate(["resolve",[P],m])}).catch(m=>{k.status="rejected",k.reason=m,notifyUpdate(["reject",[P],m])});else{!S.has(k)&&E(k)&&(N=proxy(k));let m=!T.has(N)&&S.get(N);m&&addPropListener(P,m)}return Reflect.set($,P,N,R),notifyUpdate(["set",[P],k,V]),!0}},G=$(W,H);M.set(k,G);let J=[W,ensureVersion,A,addListener];return S.set(G,J),Reflect.ownKeys(k).forEach(m=>{let $=Object.getOwnPropertyDescriptor(k,m);$.get||$.set?Object.defineProperty(W,m,$):G[m]=k[m]}),G})=>[N,S,T,m,$,E,k,R,A,M,V])();function proxy(m={}){return k(m)}function subscribe(m,$,E){let _;let T=S.get(m);P&&!T&&console.warn("Please use proxy object");let k=[],R=T[3],A=!1,M=R(m=>{if(k.push(m),E){$(k.splice(0));return}_||(_=Promise.resolve().then(()=>{_=void 0,A&&$(k.splice(0))}))});return A=!0,()=>{A=!1,M()}}function snapshot(m,$){let E=S.get(m);P&&!E&&console.warn("Please use proxy object");let[_,T,k]=E;return k(_,T(),$)}function ref(m){return T.add(m),m}function proxyWithComputed(m,$){let E=Object.keys($);E.forEach(E=>{if(Object.getOwnPropertyDescriptor(m,E))throw Error("object property already defined");let P=$[E],{get:S,set:T}="function"==typeof P?{get:P}:P,k={};k.get=()=>S(snapshot(_)),T&&(k.set=m=>T(_,m)),Object.defineProperty(m,E,k)});let _=proxy(m);return _}var defaultCompareFn=(m,$)=>Object.is(m,$);function subscribeKey(m,$,E,_,P){let S=Reflect.get(snapshot(m),$),T=P||defaultCompareFn;function onSnapshotChange(){let _=snapshot(m);T(S,_[$])||(E(_[$]),S=Reflect.get(_,$))}return subscribe(m,onSnapshotChange,_)}},34320:function(m,$,E){"use strict";E.d($,{HD:function(){return isString},PP:function(){return callAll},Ps:function(){return first},Z$:function(){return last},oA:function(){return compact}});var first=m=>m[0],last=m=>m[m.length-1],callAll=(...m)=>(...$)=>{m.forEach(function(m){m?.(...$)})},isString=m=>"string"==typeof m;function compact(m){if(!isPlainObject(m)||void 0===m)return m;let $=Reflect.ownKeys(m).filter(m=>"string"==typeof m),E={};for(let _ of $){let $=m[_];void 0!==$&&(E[_]=compact($))}return E}var isPlainObject=m=>m&&"object"==typeof m&&m.constructor===Object},38938:function(m,$,E){"use strict";E.d($,{N:function(){return _},q:function(){return setVisuallyHidden}});var _={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function setVisuallyHidden(m){Object.assign(m.style,_)}},98489:function(m,$,E){"use strict";E.d($,{gW:function(){return Z}});var _=E(2265);function u(){return(u=Object.assign||function(m){for(var $=1;$=0||(P[E]=m[E]);return P}function i(m){var $=(0,_.useRef)(m),E=(0,_.useRef)(function(m){$.current&&$.current(m)});return $.current=m,E.current}var s=function(m,$,E){return void 0===$&&($=0),void 0===E&&(E=1),m>E?E:m<$?$:m},f=function(m){return"touches"in m},v=function(m){return m&&m.ownerDocument.defaultView||self},d=function(m,$,E){var _=m.getBoundingClientRect(),P=f($)?function(m,$){for(var E=0;E0:m.buttons>0)&&S.current?T(d(S.current,m,R.current)):t(!1)},r=function(){return t(!1)};function t(m){var $=A.current,E=v(S.current),_=m?E.addEventListener:E.removeEventListener;_($?"touchmove":"mousemove",e),_($?"touchend":"mouseup",r)}return[function(m){var $=m.nativeEvent,E=S.current;if(E&&(h($),(!A.current||f($))&&E)){if(f($)){A.current=!0;var _=$.changedTouches||[];_.length&&(R.current=_[0].identifier)}E.focus(),T(d(E,$,R.current)),t(!0)}},function(m){var $=m.which||m.keyCode;$<37||$>40||(m.preventDefault(),k({left:39===$?.05:37===$?-.05:0,top:40===$?.05:38===$?-.05:0}))},t]},[k,T]),V=M[0],N=M[1],j=M[2];return(0,_.useEffect)(function(){return j},[j]),_.createElement("div",u({},P,{onTouchStart:V,onMouseDown:V,className:"react-colorful__interactive",ref:S,onKeyDown:N,tabIndex:0,role:"slider"}))}),g=function(m){return m.filter(Boolean).join(" ")},p=function(m){var $=m.color,E=m.left,P=m.top,S=g(["react-colorful__pointer",m.className]);return _.createElement("div",{className:S,style:{top:100*(void 0===P?.5:P)+"%",left:100*E+"%"}},_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:$}}))},b=function(m,$,E){return void 0===$&&($=0),void 0===E&&(E=Math.pow(10,$)),Math.round(E*m)/E},C=function(m){return"#"===m[0]&&(m=m.substring(1)),m.length<6?{r:parseInt(m[0]+m[0],16),g:parseInt(m[1]+m[1],16),b:parseInt(m[2]+m[2],16),a:4===m.length?b(parseInt(m[3]+m[3],16)/255,2):1}:{r:parseInt(m.substring(0,2),16),g:parseInt(m.substring(2,4),16),b:parseInt(m.substring(4,6),16),a:8===m.length?b(parseInt(m.substring(6,8),16)/255,2):1}},y=function(m){var $=m.s,E=m.v,_=m.a,P=(200-$)*E/100;return{h:b(m.h),s:b(P>0&&P<200?$*E/100/(P<=100?P:200-P)*100:0),l:b(P/2),a:b(_,2)}},q=function(m){var $=y(m);return"hsl("+$.h+", "+$.s+"%, "+$.l+"%)"},I=function(m){var $=m.h,E=m.s,_=m.v,P=m.a;$=$/360*6,E/=100,_/=100;var S=Math.floor($),T=_*(1-E),k=_*(1-($-S)*E),R=_*(1-(1-$+S)*E),A=S%6;return{r:b(255*[_,k,T,T,R,_][A]),g:b(255*[R,_,_,k,T,T][A]),b:b(255*[T,T,R,_,_,k][A]),a:b(P,2)}},D=function(m){var $=m.toString(16);return $.length<2?"0"+$:$},K=function(m){var $=m.r,E=m.g,_=m.b,P=m.a,S=P<1?D(b(255*P)):"";return"#"+D($)+D(E)+D(_)+S},L=function(m){var $=m.r,E=m.g,_=m.b,P=m.a,S=Math.max($,E,_),T=S-Math.min($,E,_),k=T?S===$?(E-_)/T:S===E?2+(_-$)/T:4+($-E)/T:0;return{h:b(60*(k<0?k+6:k)),s:b(S?T/S*100:0),v:b(S/255*100),a:P}},S=_.memo(function(m){var $=m.hue,E=m.onChange,S=g(["react-colorful__hue",m.className]);return _.createElement("div",{className:S},_.createElement(P,{onMove:function(m){E({h:360*m.left})},onKey:function(m){E({h:s($+360*m.left,0,360)})},"aria-label":"Hue","aria-valuenow":b($),"aria-valuemax":"360","aria-valuemin":"0"},_.createElement(p,{className:"react-colorful__hue-pointer",left:$/360,color:q({h:$,s:100,v:100,a:1})})))}),T=_.memo(function(m){var $=m.hsva,E=m.onChange,S={backgroundColor:q({h:$.h,s:100,v:100,a:1})};return _.createElement("div",{className:"react-colorful__saturation",style:S},_.createElement(P,{onMove:function(m){E({s:100*m.left,v:100-100*m.top})},onKey:function(m){E({s:s($.s+100*m.left,0,100),v:s($.v-100*m.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b($.s)+"%, Brightness "+b($.v)+"%"},_.createElement(p,{className:"react-colorful__saturation-pointer",top:1-$.v/100,left:$.s/100,color:q($)})))}),F=function(m,$){if(m===$)return!0;for(var E in m)if(m[E]!==$[E])return!1;return!0};function Y(m,$,E){var P=i(E),S=(0,_.useState)(function(){return m.toHsva($)}),T=S[0],k=S[1],R=(0,_.useRef)({color:$,hsva:T});return(0,_.useEffect)(function(){if(!m.equal($,R.current.color)){var E=m.toHsva($);R.current={hsva:E,color:$},k(E)}},[$,m]),(0,_.useEffect)(function(){var $;F(T,R.current.hsva)||m.equal($=m.fromHsva(T),R.current.color)||(R.current={hsva:T,color:$},P($))},[T,m,P]),[T,(0,_.useCallback)(function(m){k(function($){return Object.assign({},$,m)})},[])]}var k,R="undefined"!=typeof window?_.useLayoutEffect:_.useEffect,A=new Map,Q=function(m){R(function(){var $=m.current?m.current.ownerDocument:document;if(void 0!==$&&!A.has($)){var _=$.createElement("style");_.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',A.set($,_);var P=k||E.nc;P&&_.setAttribute("nonce",P),$.head.appendChild(_)}},[])},U=function(m){var $=m.className,E=m.colorModel,P=m.color,k=void 0===P?E.defaultColor:P,R=m.onChange,A=c(m,["className","colorModel","color","onChange"]),M=(0,_.useRef)(null);Q(M);var V=Y(E,k,R),N=V[0],j=V[1],B=g(["react-colorful",$]);return _.createElement("div",u({},A,{ref:M,className:B}),_.createElement(T,{hsva:N,onChange:j}),_.createElement(S,{hue:N.h,onChange:j,className:"react-colorful__last-control"}))},M={defaultColor:"000",toHsva:function(m){return L(C(m))},fromHsva:function(m){return K(I({h:m.h,s:m.s,v:m.v,a:1}))},equal:function(m,$){return m.toLowerCase()===$.toLowerCase()||F(C(m),C($))}},Z=function(m){return _.createElement(U,u({},m,{colorModel:M}))}},61865:function(m,$,E){"use strict";E.d($,{Gc:function(){return useFormContext},KN:function(){return appendErrors},Qr:function(){return Controller},RV:function(){return FormProvider},U2:function(){return get},bc:function(){return useController},cI:function(){return useForm},t8:function(){return set}});var _=E(2265),isCheckBoxInput=m=>"checkbox"===m.type,isDateObject=m=>m instanceof Date,isNullOrUndefined=m=>null==m;let isObjectType=m=>"object"==typeof m;var isObject=m=>!isNullOrUndefined(m)&&!Array.isArray(m)&&isObjectType(m)&&!isDateObject(m),getEventValue=m=>isObject(m)&&m.target?isCheckBoxInput(m.target)?m.target.checked:m.target.value:m,getNodeParentName=m=>m.substring(0,m.search(/\.\d+(\.|$)/))||m,isNameInFieldArray=(m,$)=>m.has(getNodeParentName($)),isPlainObject=m=>{let $=m.constructor&&m.constructor.prototype;return isObject($)&&$.hasOwnProperty("isPrototypeOf")},P="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function cloneObject(m){let $;let E=Array.isArray(m);if(m instanceof Date)$=new Date(m);else if(m instanceof Set)$=new Set(m);else if(!(!(P&&(m instanceof Blob||m instanceof FileList))&&(E||isObject(m))))return m;else if($=E?[]:{},E||isPlainObject(m))for(let E in m)m.hasOwnProperty(E)&&($[E]=cloneObject(m[E]));else $=m;return $}var compact=m=>Array.isArray(m)?m.filter(Boolean):[],isUndefined=m=>void 0===m,get=(m,$,E)=>{if(!$||!isObject(m))return E;let _=compact($.split(/[,[\].]+?/)).reduce((m,$)=>isNullOrUndefined(m)?m:m[$],m);return isUndefined(_)||_===m?isUndefined(m[$])?E:m[$]:_},isBoolean=m=>"boolean"==typeof m;let S={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},T={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},k={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},R=_.createContext(null),useFormContext=()=>_.useContext(R),FormProvider=m=>{let{children:$,...E}=m;return _.createElement(R.Provider,{value:E},$)};var getProxyFormState=(m,$,E,_=!0)=>{let P={defaultValues:$._defaultValues};for(let S in m)Object.defineProperty(P,S,{get:()=>($._proxyFormState[S]!==T.all&&($._proxyFormState[S]=!_||T.all),E&&(E[S]=!0),m[S])});return P},isEmptyObject=m=>isObject(m)&&!Object.keys(m).length,shouldRenderFormState=(m,$,E,_)=>{E(m);let{name:P,...S}=m;return isEmptyObject(S)||Object.keys(S).length>=Object.keys($).length||Object.keys(S).find(m=>$[m]===(!_||T.all))},convertToArrayPayload=m=>Array.isArray(m)?m:[m],shouldSubscribeByName=(m,$,E)=>!m||!$||m===$||convertToArrayPayload(m).some(m=>m&&(E?m===$:m.startsWith($)||$.startsWith(m)));function useSubscribe(m){let $=_.useRef(m);$.current=m,_.useEffect(()=>{let E=!m.disabled&&$.current.subject&&$.current.subject.subscribe({next:$.current.next});return()=>{E&&E.unsubscribe()}},[m.disabled])}function useFormState(m){let $=useFormContext(),{control:E=$.control,disabled:P,name:S,exact:T}=m||{},[k,R]=_.useState(E._formState),A=_.useRef(!0),M=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),V=_.useRef(S);return V.current=S,useSubscribe({disabled:P,next:m=>A.current&&shouldSubscribeByName(V.current,m.name,T)&&shouldRenderFormState(m,M.current,E._updateFormState)&&R({...E._formState,...m}),subject:E._subjects.state}),_.useEffect(()=>(A.current=!0,M.current.isValid&&E._updateValid(!0),()=>{A.current=!1}),[E]),getProxyFormState(k,E,M.current,!1)}var isString=m=>"string"==typeof m,generateWatchOutput=(m,$,E,_,P)=>isString(m)?(_&&$.watch.add(m),get(E,m,P)):Array.isArray(m)?m.map(m=>(_&&$.watch.add(m),get(E,m))):(_&&($.watchAll=!0),E);function useWatch(m){let $=useFormContext(),{control:E=$.control,name:P,defaultValue:S,disabled:T,exact:k}=m||{},R=_.useRef(P);R.current=P,useSubscribe({disabled:T,subject:E._subjects.values,next:m=>{shouldSubscribeByName(R.current,m.name,k)&&M(cloneObject(generateWatchOutput(R.current,E._names,m.values||E._formValues,!1,S)))}});let[A,M]=_.useState(E._getWatch(P,S));return _.useEffect(()=>E._removeUnmounted()),A}var isKey=m=>/^\w*$/.test(m),stringToPath=m=>compact(m.replace(/["|']|\]/g,"").split(/\.|\[/));function set(m,$,E){let _=-1,P=isKey($)?[$]:stringToPath($),S=P.length,T=S-1;for(;++_{let m=T._options.shouldUnregister||k,updateMounted=(m,$)=>{let E=get(T._fields,m);E&&(E._f.mount=$)};if(updateMounted(E,!0),m){let m=cloneObject(get(T._options.defaultValues,E));set(T._defaultValues,E,m),isUndefined(get(T._formValues,E))&&set(T._formValues,E,m)}return()=>{(R?m&&!T._state.action:m)?T.unregister(E):updateMounted(E,!1)}},[E,T,R,k]),_.useEffect(()=>{get(T._fields,E)&&T._updateDisabledField({disabled:P,fields:T._fields,name:E})},[P,E,T]),{field:{name:E,value:A,...isBoolean(P)?{disabled:P}:{},onChange:_.useCallback(m=>V.current.onChange({target:{value:getEventValue(m),name:E},type:S.CHANGE}),[E]),onBlur:_.useCallback(()=>V.current.onBlur({target:{value:get(T._formValues,E),name:E},type:S.BLUR}),[E,T]),ref:m=>{let $=get(T._fields,E);$&&m&&($._f.ref={focus:()=>m.focus(),select:()=>m.select(),setCustomValidity:$=>m.setCustomValidity($),reportValidity:()=>m.reportValidity()})}},formState:M,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(M.errors,E)},isDirty:{enumerable:!0,get:()=>!!get(M.dirtyFields,E)},isTouched:{enumerable:!0,get:()=>!!get(M.touchedFields,E)},error:{enumerable:!0,get:()=>get(M.errors,E)}})}}let Controller=m=>m.render(useController(m));var appendErrors=(m,$,E,_,P)=>$?{...E[m],types:{...E[m]&&E[m].types?E[m].types:{},[_]:P||!0}}:{};let focusFieldBy=(m,$,E)=>{for(let _ of E||Object.keys(m)){let E=get(m,_);if(E){let{_f:m,..._}=E;if(m&&$(m.name)){if(m.ref.focus){m.ref.focus();break}if(m.refs&&m.refs[0].focus){m.refs[0].focus();break}}else isObject(_)&&focusFieldBy(_,$)}}};var getValidationModes=m=>({isOnSubmit:!m||m===T.onSubmit,isOnBlur:m===T.onBlur,isOnChange:m===T.onChange,isOnAll:m===T.all,isOnTouch:m===T.onTouched}),isWatched=(m,$,E)=>!E&&($.watchAll||$.watch.has(m)||[...$.watch].some($=>m.startsWith($)&&/^\.\w+/.test(m.slice($.length)))),updateFieldArrayRootError=(m,$,E)=>{let _=compact(get(m,E));return set(_,"root",$[E]),set(m,E,_),m},isFileInput=m=>"file"===m.type,isFunction=m=>"function"==typeof m,isHTMLElement=m=>{if(!P)return!1;let $=m?m.ownerDocument:0;return m instanceof($&&$.defaultView?$.defaultView.HTMLElement:HTMLElement)},isMessage=m=>isString(m),isRadioInput=m=>"radio"===m.type,isRegex=m=>m instanceof RegExp;let A={value:!1,isValid:!1},M={value:!0,isValid:!0};var getCheckboxValue=m=>{if(Array.isArray(m)){if(m.length>1){let $=m.filter(m=>m&&m.checked&&!m.disabled).map(m=>m.value);return{value:$,isValid:!!$.length}}return m[0].checked&&!m[0].disabled?m[0].attributes&&!isUndefined(m[0].attributes.value)?isUndefined(m[0].value)||""===m[0].value?M:{value:m[0].value,isValid:!0}:M:A}return A};let V={isValid:!1,value:null};var getRadioValue=m=>Array.isArray(m)?m.reduce((m,$)=>$&&$.checked&&!$.disabled?{isValid:!0,value:$.value}:m,V):V;function getValidateError(m,$,E="validate"){if(isMessage(m)||Array.isArray(m)&&m.every(isMessage)||isBoolean(m)&&!m)return{type:E,message:isMessage(m)?m:"",ref:$}}var getValueAndMessage=m=>isObject(m)&&!isRegex(m)?m:{value:m,message:""},validateField=async(m,$,E,_,P)=>{let{ref:S,refs:T,required:R,maxLength:A,minLength:M,min:V,max:N,pattern:j,validate:B,name:z,valueAsNumber:W,mount:H,disabled:G}=m._f,J=get($,z);if(!H||G)return{};let X=T?T[0]:S,setCustomValidity=m=>{_&&X.reportValidity&&(X.setCustomValidity(isBoolean(m)?"":m||""),X.reportValidity())},ee={},et=isRadioInput(S),ea=isCheckBoxInput(S),er=(W||isFileInput(S))&&isUndefined(S.value)&&isUndefined(J)||isHTMLElement(S)&&""===S.value||""===J||Array.isArray(J)&&!J.length,en=appendErrors.bind(null,z,E,ee),getMinMaxMessage=(m,$,E,_=k.maxLength,P=k.minLength)=>{let T=m?$:E;ee[z]={type:m?_:P,message:T,ref:S,...en(m?_:P,T)}};if(P?!Array.isArray(J)||!J.length:R&&(!(et||ea)&&(er||isNullOrUndefined(J))||isBoolean(J)&&!J||ea&&!getCheckboxValue(T).isValid||et&&!getRadioValue(T).isValid)){let{value:m,message:$}=isMessage(R)?{value:!!R,message:R}:getValueAndMessage(R);if(m&&(ee[z]={type:k.required,message:$,ref:X,...en(k.required,$)},!E))return setCustomValidity($),ee}if(!er&&(!isNullOrUndefined(V)||!isNullOrUndefined(N))){let m,$;let _=getValueAndMessage(N),P=getValueAndMessage(V);if(isNullOrUndefined(J)||isNaN(J)){let E=S.valueAsDate||new Date(J),convertTimeToDate=m=>new Date(new Date().toDateString()+" "+m),T="time"==S.type,k="week"==S.type;isString(_.value)&&J&&(m=T?convertTimeToDate(J)>convertTimeToDate(_.value):k?J>_.value:E>new Date(_.value)),isString(P.value)&&J&&($=T?convertTimeToDate(J)_.value),isNullOrUndefined(P.value)||($=E+m.value,P=!isNullOrUndefined($.value)&&J.length<+$.value;if((_||P)&&(getMinMaxMessage(_,m.message,$.message),!E))return setCustomValidity(ee[z].message),ee}if(j&&!er&&isString(J)){let{value:m,message:$}=getValueAndMessage(j);if(isRegex(m)&&!J.match(m)&&(ee[z]={type:k.pattern,message:$,ref:S,...en(k.pattern,$)},!E))return setCustomValidity($),ee}if(B){if(isFunction(B)){let m=await B(J,$),_=getValidateError(m,X);if(_&&(ee[z]={..._,...en(k.validate,_.message)},!E))return setCustomValidity(_.message),ee}else if(isObject(B)){let m={};for(let _ in B){if(!isEmptyObject(m)&&!E)break;let P=getValidateError(await B[_](J,$),X,_);P&&(m={...P,...en(_,P.message)},setCustomValidity(P.message),E&&(ee[z]=m))}if(!isEmptyObject(m)&&(ee[z]={ref:X,...m},!E))return ee}}return setCustomValidity(!0),ee};function baseGet(m,$){let E=$.slice(0,-1).length,_=0;for(;_{for(let E of m)E.next&&E.next($)},subscribe:$=>(m.push($),{unsubscribe:()=>{m=m.filter(m=>m!==$)}}),unsubscribe:()=>{m=[]}}}var isPrimitive=m=>isNullOrUndefined(m)||!isObjectType(m);function deepEqual(m,$){if(isPrimitive(m)||isPrimitive($))return m===$;if(isDateObject(m)&&isDateObject($))return m.getTime()===$.getTime();let E=Object.keys(m),_=Object.keys($);if(E.length!==_.length)return!1;for(let P of E){let E=m[P];if(!_.includes(P))return!1;if("ref"!==P){let m=$[P];if(isDateObject(E)&&isDateObject(m)||isObject(E)&&isObject(m)||Array.isArray(E)&&Array.isArray(m)?!deepEqual(E,m):E!==m)return!1}}return!0}var isMultipleSelect=m=>"select-multiple"===m.type,isRadioOrCheckbox=m=>isRadioInput(m)||isCheckBoxInput(m),live=m=>isHTMLElement(m)&&m.isConnected,objectHasFunction=m=>{for(let $ in m)if(isFunction(m[$]))return!0;return!1};function markFieldsDirty(m,$={}){let E=Array.isArray(m);if(isObject(m)||E)for(let E in m)Array.isArray(m[E])||isObject(m[E])&&!objectHasFunction(m[E])?($[E]=Array.isArray(m[E])?[]:{},markFieldsDirty(m[E],$[E])):isNullOrUndefined(m[E])||($[E]=!0);return $}function getDirtyFieldsFromDefaultValues(m,$,E){let _=Array.isArray(m);if(isObject(m)||_)for(let _ in m)Array.isArray(m[_])||isObject(m[_])&&!objectHasFunction(m[_])?isUndefined($)||isPrimitive(E[_])?E[_]=Array.isArray(m[_])?markFieldsDirty(m[_],[]):{...markFieldsDirty(m[_])}:getDirtyFieldsFromDefaultValues(m[_],isNullOrUndefined($)?{}:$[_],E[_]):E[_]=!deepEqual(m[_],$[_]);return E}var getDirtyFields=(m,$)=>getDirtyFieldsFromDefaultValues(m,$,markFieldsDirty($)),getFieldValueAs=(m,{valueAsNumber:$,valueAsDate:E,setValueAs:_})=>isUndefined(m)?m:$?""===m?NaN:m?+m:m:E&&isString(m)?new Date(m):_?_(m):m;function getFieldValue(m){let $=m.ref;return(m.refs?m.refs.every(m=>m.disabled):$.disabled)?void 0:isFileInput($)?$.files:isRadioInput($)?getRadioValue(m.refs).value:isMultipleSelect($)?[...$.selectedOptions].map(({value:m})=>m):isCheckBoxInput($)?getCheckboxValue(m.refs).value:getFieldValueAs(isUndefined($.value)?m.ref.value:$.value,m)}var getResolverOptions=(m,$,E,_)=>{let P={};for(let E of m){let m=get($,E);m&&set(P,E,m._f)}return{criteriaMode:E,names:[...m],fields:P,shouldUseNativeValidation:_}},getRuleValue=m=>isUndefined(m)?m:isRegex(m)?m.source:isObject(m)?isRegex(m.value)?m.value.source:m.value:m,hasValidation=m=>m.mount&&(m.required||m.min||m.max||m.maxLength||m.minLength||m.pattern||m.validate);function schemaErrorLookup(m,$,E){let _=get(m,E);if(_||isKey(E))return{error:_,name:E};let P=E.split(".");for(;P.length;){let _=P.join("."),S=get($,_),T=get(m,_);if(S&&!Array.isArray(S)&&E!==_)break;if(T&&T.type)return{name:_,error:T};P.pop()}return{name:E}}var skipValidation=(m,$,E,_,P)=>!P.isOnAll&&(!E&&P.isOnTouch?!($||m):(E?_.isOnBlur:P.isOnBlur)?!m:(E?!_.isOnChange:!P.isOnChange)||m),unsetEmptyArray=(m,$)=>!compact(get(m,$)).length&&unset(m,$);let N={mode:T.onSubmit,reValidateMode:T.onChange,shouldFocusError:!0};function createFormControl(m={},$){let E,_={...N,...m},k={submitCount:0,isDirty:!1,isLoading:isFunction(_.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},R={},A=(isObject(_.defaultValues)||isObject(_.values))&&cloneObject(_.defaultValues||_.values)||{},M=_.shouldUnregister?{}:cloneObject(A),V={action:!1,mount:!1,watch:!1},j={mount:new Set,unMount:new Set,array:new Set,watch:new Set},B=0,z={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},W={values:createSubject(),array:createSubject(),state:createSubject()},H=m.resetOptions&&m.resetOptions.keepDirtyValues,G=getValidationModes(_.mode),J=getValidationModes(_.reValidateMode),X=_.criteriaMode===T.all,debounce=m=>$=>{clearTimeout(B),B=setTimeout(m,$)},_updateValid=async m=>{if(z.isValid||m){let m=_.resolver?isEmptyObject((await _executeSchema()).errors):await executeBuiltInValidation(R,!0);m!==k.isValid&&W.state.next({isValid:m})}},_updateIsValidating=m=>z.isValidating&&W.state.next({isValidating:m}),updateErrors=(m,$)=>{set(k.errors,m,$),W.state.next({errors:k.errors})},updateValidAndValue=(m,$,E,_)=>{let P=get(R,m);if(P){let S=get(M,m,isUndefined(E)?get(A,m):E);isUndefined(S)||_&&_.defaultChecked||$?set(M,m,$?S:getFieldValue(P._f)):setFieldValue(m,S),V.mount&&_updateValid()}},updateTouchAndDirty=(m,$,E,_,P)=>{let S=!1,T=!1,R={name:m};if(!E||_){z.isDirty&&(T=k.isDirty,k.isDirty=R.isDirty=_getDirty(),S=T!==R.isDirty);let E=deepEqual(get(A,m),$);T=get(k.dirtyFields,m),E?unset(k.dirtyFields,m):set(k.dirtyFields,m,!0),R.dirtyFields=k.dirtyFields,S=S||z.dirtyFields&&!E!==T}if(E){let $=get(k.touchedFields,m);$||(set(k.touchedFields,m,E),R.touchedFields=k.touchedFields,S=S||z.touchedFields&&$!==E)}return S&&P&&W.state.next(R),S?R:{}},shouldRenderByError=($,_,P,S)=>{let T=get(k.errors,$),R=z.isValid&&isBoolean(_)&&k.isValid!==_;if(m.delayError&&P?(E=debounce(()=>updateErrors($,P)))(m.delayError):(clearTimeout(B),E=null,P?set(k.errors,$,P):unset(k.errors,$)),(P?!deepEqual(T,P):T)||!isEmptyObject(S)||R){let m={...S,...R&&isBoolean(_)?{isValid:_}:{},errors:k.errors,name:$};k={...k,...m},W.state.next(m)}_updateIsValidating(!1)},_executeSchema=async m=>_.resolver(M,_.context,getResolverOptions(m||j.mount,R,_.criteriaMode,_.shouldUseNativeValidation)),executeSchemaAndUpdateState=async m=>{let{errors:$}=await _executeSchema(m);if(m)for(let E of m){let m=get($,E);m?set(k.errors,E,m):unset(k.errors,E)}else k.errors=$;return $},executeBuiltInValidation=async(m,$,E={valid:!0})=>{for(let P in m){let S=m[P];if(S){let{_f:m,...P}=S;if(m){let P=j.array.has(m.name),T=await validateField(S,M,X,_.shouldUseNativeValidation&&!$,P);if(T[m.name]&&(E.valid=!1,$))break;$||(get(T,m.name)?P?updateFieldArrayRootError(k.errors,T,m.name):set(k.errors,m.name,T[m.name]):unset(k.errors,m.name))}P&&await executeBuiltInValidation(P,$,E)}}return E.valid},_getDirty=(m,$)=>(m&&$&&set(M,m,$),!deepEqual(getValues(),A)),_getWatch=(m,$,E)=>generateWatchOutput(m,j,{...V.mount?M:isUndefined($)?A:isString(m)?{[m]:$}:$},E,$),setFieldValue=(m,$,E={})=>{let _=get(R,m),P=$;if(_){let E=_._f;E&&(E.disabled||set(M,m,getFieldValueAs($,E)),P=isHTMLElement(E.ref)&&isNullOrUndefined($)?"":$,isMultipleSelect(E.ref)?[...E.ref.options].forEach(m=>m.selected=P.includes(m.value)):E.refs?isCheckBoxInput(E.ref)?E.refs.length>1?E.refs.forEach(m=>(!m.defaultChecked||!m.disabled)&&(m.checked=Array.isArray(P)?!!P.find($=>$===m.value):P===m.value)):E.refs[0]&&(E.refs[0].checked=!!P):E.refs.forEach(m=>m.checked=m.value===P):isFileInput(E.ref)?E.ref.value="":(E.ref.value=P,E.ref.type||W.values.next({name:m,values:{...M}})))}(E.shouldDirty||E.shouldTouch)&&updateTouchAndDirty(m,P,E.shouldTouch,E.shouldDirty,!0),E.shouldValidate&&trigger(m)},setValues=(m,$,E)=>{for(let _ in $){let P=$[_],S=`${m}.${_}`,T=get(R,S);!j.array.has(m)&&isPrimitive(P)&&(!T||T._f)||isDateObject(P)?setFieldValue(S,P,E):setValues(S,P,E)}},setValue=(m,E,_={})=>{let P=get(R,m),S=j.array.has(m),T=cloneObject(E);set(M,m,T),S?(W.array.next({name:m,values:{...M}}),(z.isDirty||z.dirtyFields)&&_.shouldDirty&&W.state.next({name:m,dirtyFields:getDirtyFields(A,M),isDirty:_getDirty(m,T)})):!P||P._f||isNullOrUndefined(T)?setFieldValue(m,T,_):setValues(m,T,_),isWatched(m,j)&&W.state.next({...k}),W.values.next({name:m,values:{...M}}),V.mount||$()},onChange=async m=>{let $=m.target,P=$.name,T=!0,A=get(R,P);if(A){let V,N;let B=$.type?getFieldValue(A._f):getEventValue(m),H=m.type===S.BLUR||m.type===S.FOCUS_OUT,ee=!hasValidation(A._f)&&!_.resolver&&!get(k.errors,P)&&!A._f.deps||skipValidation(H,get(k.touchedFields,P),k.isSubmitted,J,G),et=isWatched(P,j,H);set(M,P,B),H?(A._f.onBlur&&A._f.onBlur(m),E&&E(0)):A._f.onChange&&A._f.onChange(m);let ea=updateTouchAndDirty(P,B,H,!1),er=!isEmptyObject(ea)||et;if(H||W.values.next({name:P,type:m.type,values:{...M}}),ee)return z.isValid&&_updateValid(),er&&W.state.next({name:P,...et?{}:ea});if(!H&&et&&W.state.next({...k}),_updateIsValidating(!0),_.resolver){let{errors:m}=await _executeSchema([P]),$=schemaErrorLookup(k.errors,R,P),E=schemaErrorLookup(m,R,$.name||P);V=E.error,P=E.name,N=isEmptyObject(m)}else V=(await validateField(A,M,X,_.shouldUseNativeValidation))[P],(T=Number.isNaN(B)||B===get(M,P,B))&&(V?N=!1:z.isValid&&(N=await executeBuiltInValidation(R,!0)));T&&(A._f.deps&&trigger(A._f.deps),shouldRenderByError(P,N,V,ea))}},trigger=async(m,$={})=>{let E,P;let S=convertToArrayPayload(m);if(_updateIsValidating(!0),_.resolver){let $=await executeSchemaAndUpdateState(isUndefined(m)?m:S);E=isEmptyObject($),P=m?!S.some(m=>get($,m)):E}else m?((P=(await Promise.all(S.map(async m=>{let $=get(R,m);return await executeBuiltInValidation($&&$._f?{[m]:$}:$)}))).every(Boolean))||k.isValid)&&_updateValid():P=E=await executeBuiltInValidation(R);return W.state.next({...!isString(m)||z.isValid&&E!==k.isValid?{}:{name:m},..._.resolver||!m?{isValid:E}:{},errors:k.errors,isValidating:!1}),$.shouldFocus&&!P&&focusFieldBy(R,m=>m&&get(k.errors,m),m?S:j.mount),P},getValues=m=>{let $={...A,...V.mount?M:{}};return isUndefined(m)?$:isString(m)?get($,m):m.map(m=>get($,m))},getFieldState=(m,$)=>({invalid:!!get(($||k).errors,m),isDirty:!!get(($||k).dirtyFields,m),isTouched:!!get(($||k).touchedFields,m),error:get(($||k).errors,m)}),setError=(m,$,E)=>{let _=(get(R,m,{_f:{}})._f||{}).ref;set(k.errors,m,{...$,ref:_}),W.state.next({name:m,errors:k.errors,isValid:!1}),E&&E.shouldFocus&&_&&_.focus&&_.focus()},unregister=(m,$={})=>{for(let E of m?convertToArrayPayload(m):j.mount)j.mount.delete(E),j.array.delete(E),$.keepValue||(unset(R,E),unset(M,E)),$.keepError||unset(k.errors,E),$.keepDirty||unset(k.dirtyFields,E),$.keepTouched||unset(k.touchedFields,E),_.shouldUnregister||$.keepDefaultValue||unset(A,E);W.values.next({values:{...M}}),W.state.next({...k,...$.keepDirty?{isDirty:_getDirty()}:{}}),$.keepIsValid||_updateValid()},_updateDisabledField=({disabled:m,name:$,field:E,fields:_})=>{if(isBoolean(m)){let P=m?void 0:get(M,$,getFieldValue(E?E._f:get(_,$)._f));set(M,$,P),updateTouchAndDirty($,P,!1,!1,!0)}},register=(m,$={})=>{let E=get(R,m),P=isBoolean($.disabled);return set(R,m,{...E||{},_f:{...E&&E._f?E._f:{ref:{name:m}},name:m,mount:!0,...$}}),j.mount.add(m),E?_updateDisabledField({field:E,disabled:$.disabled,name:m}):updateValidAndValue(m,!0,$.value),{...P?{disabled:$.disabled}:{},..._.progressive?{required:!!$.required,min:getRuleValue($.min),max:getRuleValue($.max),minLength:getRuleValue($.minLength),maxLength:getRuleValue($.maxLength),pattern:getRuleValue($.pattern)}:{},name:m,onChange,onBlur:onChange,ref:P=>{if(P){register(m,$),E=get(R,m);let _=isUndefined(P.value)&&P.querySelectorAll&&P.querySelectorAll("input,select,textarea")[0]||P,S=isRadioOrCheckbox(_),T=E._f.refs||[];(S?T.find(m=>m===_):_===E._f.ref)||(set(R,m,{_f:{...E._f,...S?{refs:[...T.filter(live),_,...Array.isArray(get(A,m))?[{}]:[]],ref:{type:_.type,name:m}}:{ref:_}}}),updateValidAndValue(m,!1,void 0,_))}else(E=get(R,m,{}))._f&&(E._f.mount=!1),(_.shouldUnregister||$.shouldUnregister)&&!(isNameInFieldArray(j.array,m)&&V.action)&&j.unMount.add(m)}}},_focusError=()=>_.shouldFocusError&&focusFieldBy(R,m=>m&&get(k.errors,m),j.mount),handleSubmit=(m,$)=>async E=>{E&&(E.preventDefault&&E.preventDefault(),E.persist&&E.persist());let P=cloneObject(M);if(W.state.next({isSubmitting:!0}),_.resolver){let{errors:m,values:$}=await _executeSchema();k.errors=m,P=$}else await executeBuiltInValidation(R);unset(k.errors,"root"),isEmptyObject(k.errors)?(W.state.next({errors:{}}),await m(P,E)):($&&await $({...k.errors},E),_focusError(),setTimeout(_focusError)),W.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(k.errors),submitCount:k.submitCount+1,errors:k.errors})},_reset=(E,_={})=>{let S=E?cloneObject(E):A,T=cloneObject(S),N=E&&!isEmptyObject(E)?T:A;if(_.keepDefaultValues||(A=S),!_.keepValues){if(_.keepDirtyValues||H)for(let m of j.mount)get(k.dirtyFields,m)?set(N,m,get(M,m)):setValue(m,get(N,m));else{if(P&&isUndefined(E))for(let m of j.mount){let $=get(R,m);if($&&$._f){let m=Array.isArray($._f.refs)?$._f.refs[0]:$._f.ref;if(isHTMLElement(m)){let $=m.closest("form");if($){$.reset();break}}}}R={}}M=m.shouldUnregister?_.keepDefaultValues?cloneObject(A):{}:cloneObject(N),W.array.next({values:{...N}}),W.values.next({values:{...N}})}j={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},V.mount||$(),V.mount=!z.isValid||!!_.keepIsValid,V.watch=!!m.shouldUnregister,W.state.next({submitCount:_.keepSubmitCount?k.submitCount:0,isDirty:_.keepDirty?k.isDirty:!!(_.keepDefaultValues&&!deepEqual(E,A)),isSubmitted:!!_.keepIsSubmitted&&k.isSubmitted,dirtyFields:_.keepDirtyValues?k.dirtyFields:_.keepDefaultValues&&E?getDirtyFields(A,E):{},touchedFields:_.keepTouched?k.touchedFields:{},errors:_.keepErrors?k.errors:{},isSubmitSuccessful:!!_.keepIsSubmitSuccessful&&k.isSubmitSuccessful,isSubmitting:!1})},reset=(m,$)=>_reset(isFunction(m)?m(M):m,$);return{control:{register,unregister,getFieldState,handleSubmit,setError,_executeSchema,_getWatch,_getDirty,_updateValid,_removeUnmounted:()=>{for(let m of j.unMount){let $=get(R,m);$&&($._f.refs?$._f.refs.every(m=>!live(m)):!live($._f.ref))&&unregister(m)}j.unMount=new Set},_updateFieldArray:(m,$=[],E,_,P=!0,S=!0)=>{if(_&&E){if(V.action=!0,S&&Array.isArray(get(R,m))){let $=E(get(R,m),_.argA,_.argB);P&&set(R,m,$)}if(S&&Array.isArray(get(k.errors,m))){let $=E(get(k.errors,m),_.argA,_.argB);P&&set(k.errors,m,$),unsetEmptyArray(k.errors,m)}if(z.touchedFields&&S&&Array.isArray(get(k.touchedFields,m))){let $=E(get(k.touchedFields,m),_.argA,_.argB);P&&set(k.touchedFields,m,$)}z.dirtyFields&&(k.dirtyFields=getDirtyFields(A,M)),W.state.next({name:m,isDirty:_getDirty(m,$),dirtyFields:k.dirtyFields,errors:k.errors,isValid:k.isValid})}else set(M,m,$)},_updateDisabledField,_getFieldArray:$=>compact(get(V.mount?M:A,$,m.shouldUnregister?get(A,$,[]):[])),_reset,_resetDefaultValues:()=>isFunction(_.defaultValues)&&_.defaultValues().then(m=>{reset(m,_.resetOptions),W.state.next({isLoading:!1})}),_updateFormState:m=>{k={...k,...m}},_subjects:W,_proxyFormState:z,get _fields(){return R},get _formValues(){return M},get _state(){return V},set _state(value){V=value},get _defaultValues(){return A},get _names(){return j},set _names(value){j=value},get _formState(){return k},set _formState(value){k=value},get _options(){return _},set _options(value){_={..._,...value}}},trigger,register,handleSubmit,watch:(m,$)=>isFunction(m)?W.values.subscribe({next:E=>m(_getWatch(void 0,$),E)}):_getWatch(m,$,!0),setValue,getValues,reset,resetField:(m,$={})=>{get(R,m)&&(isUndefined($.defaultValue)?setValue(m,get(A,m)):(setValue(m,$.defaultValue),set(A,m,$.defaultValue)),$.keepTouched||unset(k.touchedFields,m),$.keepDirty||(unset(k.dirtyFields,m),k.isDirty=$.defaultValue?_getDirty(m,get(A,m)):_getDirty()),!$.keepError&&(unset(k.errors,m),z.isValid&&_updateValid()),W.state.next({...k}))},clearErrors:m=>{m&&convertToArrayPayload(m).forEach(m=>unset(k.errors,m)),W.state.next({errors:m?k.errors:{}})},unregister,setError,setFocus:(m,$={})=>{let E=get(R,m),_=E&&E._f;if(_){let m=_.refs?_.refs[0]:_.ref;m.focus&&(m.focus(),$.shouldSelect&&m.select())}},getFieldState}}function useForm(m={}){let $=_.useRef(),E=_.useRef(),[P,S]=_.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(m.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:isFunction(m.defaultValues)?void 0:m.defaultValues});$.current||($.current={...createFormControl(m,()=>S(m=>({...m}))),formState:P});let T=$.current.control;return T._options=m,useSubscribe({subject:T._subjects.state,next:m=>{shouldRenderFormState(m,T._proxyFormState,T._updateFormState,!0)&&S({...T._formState})}}),_.useEffect(()=>{m.values&&!deepEqual(m.values,E.current)?(T._reset(m.values,T._options.resetOptions),E.current=m.values):T._resetDefaultValues()},[m.values,T]),_.useEffect(()=>{T._state.mount||(T._updateValid(),T._state.mount=!0),T._state.watch&&(T._state.watch=!1,T._subjects.state.next({...T._formState})),T._removeUnmounted()}),$.current.formState=getProxyFormState(P,T),$.current}},74578:function(m,$,E){"use strict";let _;E.d($,{uE:function(){return ZodDefault},z:function(){return eF}}),function(m){function assertIs(m){}function assertNever(m){throw Error()}function joinValues(m,$=" | "){return m.map(m=>"string"==typeof m?`'${m}'`:m).join($)}m.assertEqual=m=>m,m.assertIs=assertIs,m.assertNever=assertNever,m.arrayToEnum=m=>{let $={};for(let E of m)$[E]=E;return $},m.getValidEnumValues=$=>{let E=m.objectKeys($).filter(m=>"number"!=typeof $[$[m]]),_={};for(let m of E)_[m]=$[m];return m.objectValues(_)},m.objectValues=$=>m.objectKeys($).map(function(m){return $[m]}),m.objectKeys="function"==typeof Object.keys?m=>Object.keys(m):m=>{let $=[];for(let E in m)Object.prototype.hasOwnProperty.call(m,E)&&$.push(E);return $},m.find=(m,$)=>{for(let E of m)if($(E))return E},m.isInteger="function"==typeof Number.isInteger?m=>Number.isInteger(m):m=>"number"==typeof m&&isFinite(m)&&Math.floor(m)===m,m.joinValues=joinValues,m.jsonStringifyReplacer=(m,$)=>"bigint"==typeof $?$.toString():$}(eO||(eO={})),(eR||(eR={})).mergeShapes=(m,$)=>({...m,...$});let P=eO.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),getParsedType=m=>{let $=typeof m;switch($){case"undefined":return P.undefined;case"string":return P.string;case"number":return isNaN(m)?P.nan:P.number;case"boolean":return P.boolean;case"function":return P.function;case"bigint":return P.bigint;case"symbol":return P.symbol;case"object":if(Array.isArray(m))return P.array;if(null===m)return P.null;if(m.then&&"function"==typeof m.then&&m.catch&&"function"==typeof m.catch)return P.promise;if("undefined"!=typeof Map&&m instanceof Map)return P.map;if("undefined"!=typeof Set&&m instanceof Set)return P.set;if("undefined"!=typeof Date&&m instanceof Date)return P.date;return P.object;default:return P.unknown}},S=eO.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);let ZodError=class ZodError extends Error{constructor(m){super(),this.issues=[],this.addIssue=m=>{this.issues=[...this.issues,m]},this.addIssues=(m=[])=>{this.issues=[...this.issues,...m]};let $=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,$):this.__proto__=$,this.name="ZodError",this.issues=m}get errors(){return this.issues}format(m){let $=m||function(m){return m.message},E={_errors:[]},processError=m=>{for(let _ of m.issues)if("invalid_union"===_.code)_.unionErrors.map(processError);else if("invalid_return_type"===_.code)processError(_.returnTypeError);else if("invalid_arguments"===_.code)processError(_.argumentsError);else if(0===_.path.length)E._errors.push($(_));else{let m=E,P=0;for(;P<_.path.length;){let E=_.path[P],S=P===_.path.length-1;S?(m[E]=m[E]||{_errors:[]},m[E]._errors.push($(_))):m[E]=m[E]||{_errors:[]},m=m[E],P++}}};return processError(this),E}toString(){return this.message}get message(){return JSON.stringify(this.issues,eO.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(m=m=>m.message){let $={},E=[];for(let _ of this.issues)_.path.length>0?($[_.path[0]]=$[_.path[0]]||[],$[_.path[0]].push(m(_))):E.push(m(_));return{formErrors:E,fieldErrors:$}}get formErrors(){return this.flatten()}};ZodError.create=m=>{let $=new ZodError(m);return $};let errorMap=(m,$)=>{let E;switch(m.code){case S.invalid_type:E=m.received===P.undefined?"Required":`Expected ${m.expected}, received ${m.received}`;break;case S.invalid_literal:E=`Invalid literal value, expected ${JSON.stringify(m.expected,eO.jsonStringifyReplacer)}`;break;case S.unrecognized_keys:E=`Unrecognized key(s) in object: ${eO.joinValues(m.keys,", ")}`;break;case S.invalid_union:E="Invalid input";break;case S.invalid_union_discriminator:E=`Invalid discriminator value. Expected ${eO.joinValues(m.options)}`;break;case S.invalid_enum_value:E=`Invalid enum value. Expected ${eO.joinValues(m.options)}, received '${m.received}'`;break;case S.invalid_arguments:E="Invalid function arguments";break;case S.invalid_return_type:E="Invalid function return type";break;case S.invalid_date:E="Invalid date";break;case S.invalid_string:"object"==typeof m.validation?"includes"in m.validation?(E=`Invalid input: must include "${m.validation.includes}"`,"number"==typeof m.validation.position&&(E=`${E} at one or more positions greater than or equal to ${m.validation.position}`)):"startsWith"in m.validation?E=`Invalid input: must start with "${m.validation.startsWith}"`:"endsWith"in m.validation?E=`Invalid input: must end with "${m.validation.endsWith}"`:eO.assertNever(m.validation):E="regex"!==m.validation?`Invalid ${m.validation}`:"Invalid";break;case S.too_small:E="array"===m.type?`Array must contain ${m.exact?"exactly":m.inclusive?"at least":"more than"} ${m.minimum} element(s)`:"string"===m.type?`String must contain ${m.exact?"exactly":m.inclusive?"at least":"over"} ${m.minimum} character(s)`:"number"===m.type?`Number must be ${m.exact?"exactly equal to ":m.inclusive?"greater than or equal to ":"greater than "}${m.minimum}`:"date"===m.type?`Date must be ${m.exact?"exactly equal to ":m.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(m.minimum))}`:"Invalid input";break;case S.too_big:E="array"===m.type?`Array must contain ${m.exact?"exactly":m.inclusive?"at most":"less than"} ${m.maximum} element(s)`:"string"===m.type?`String must contain ${m.exact?"exactly":m.inclusive?"at most":"under"} ${m.maximum} character(s)`:"number"===m.type?`Number must be ${m.exact?"exactly":m.inclusive?"less than or equal to":"less than"} ${m.maximum}`:"bigint"===m.type?`BigInt must be ${m.exact?"exactly":m.inclusive?"less than or equal to":"less than"} ${m.maximum}`:"date"===m.type?`Date must be ${m.exact?"exactly":m.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(m.maximum))}`:"Invalid input";break;case S.custom:E="Invalid input";break;case S.invalid_intersection_types:E="Intersection results could not be merged";break;case S.not_multiple_of:E=`Number must be a multiple of ${m.multipleOf}`;break;case S.not_finite:E="Number must be finite";break;default:E=$.defaultError,eO.assertNever(m)}return{message:E}},T=errorMap;function setErrorMap(m){T=m}function getErrorMap(){return T}let makeIssue=m=>{let{data:$,path:E,errorMaps:_,issueData:P}=m,S=[...E,...P.path||[]],T={...P,path:S},k="",R=_.filter(m=>!!m).slice().reverse();for(let m of R)k=m(T,{data:$,defaultError:k}).message;return{...P,path:S,message:P.message||k}};function addIssueToContext(m,$){let E=makeIssue({issueData:$,data:m.data,path:m.path,errorMaps:[m.common.contextualErrorMap,m.schemaErrorMap,getErrorMap(),errorMap].filter(m=>!!m)});m.common.issues.push(E)}let ParseStatus=class ParseStatus{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(m,$){let E=[];for(let _ of $){if("aborted"===_.status)return k;"dirty"===_.status&&m.dirty(),E.push(_.value)}return{status:m.value,value:E}}static async mergeObjectAsync(m,$){let E=[];for(let m of $)E.push({key:await m.key,value:await m.value});return ParseStatus.mergeObjectSync(m,E)}static mergeObjectSync(m,$){let E={};for(let _ of $){let{key:$,value:P}=_;if("aborted"===$.status||"aborted"===P.status)return k;"dirty"===$.status&&m.dirty(),"dirty"===P.status&&m.dirty(),"__proto__"!==$.value&&(void 0!==P.value||_.alwaysSet)&&(E[$.value]=P.value)}return{status:m.value,value:E}}};let k=Object.freeze({status:"aborted"}),DIRTY=m=>({status:"dirty",value:m}),OK=m=>({status:"valid",value:m}),isAborted=m=>"aborted"===m.status,isDirty=m=>"dirty"===m.status,isValid=m=>"valid"===m.status,isAsync=m=>"undefined"!=typeof Promise&&m instanceof Promise;(ek=eA||(eA={})).errToObj=m=>"string"==typeof m?{message:m}:m||{},ek.toString=m=>"string"==typeof m?m:null==m?void 0:m.message;let ParseInputLazyPath=class ParseInputLazyPath{constructor(m,$,E,_){this._cachedPath=[],this.parent=m,this.data=$,this._path=E,this._key=_}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}};let handleResult=(m,$)=>{if(isValid($))return{success:!0,data:$.value};if(!m.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let $=new ZodError(m.common.issues);return this._error=$,this._error}}};function processCreateParams(m){if(!m)return{};let{errorMap:$,invalid_type_error:E,required_error:_,description:P}=m;if($&&(E||_))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return $?{errorMap:$,description:P}:{errorMap:(m,$)=>"invalid_type"!==m.code?{message:$.defaultError}:void 0===$.data?{message:null!=_?_:$.defaultError}:{message:null!=E?E:$.defaultError},description:P}}let ZodType=class ZodType{constructor(m){this.spa=this.safeParseAsync,this._def=m,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(m){return getParsedType(m.data)}_getOrReturnCtx(m,$){return $||{common:m.parent.common,data:m.data,parsedType:getParsedType(m.data),schemaErrorMap:this._def.errorMap,path:m.path,parent:m.parent}}_processInputParams(m){return{status:new ParseStatus,ctx:{common:m.parent.common,data:m.data,parsedType:getParsedType(m.data),schemaErrorMap:this._def.errorMap,path:m.path,parent:m.parent}}}_parseSync(m){let $=this._parse(m);if(isAsync($))throw Error("Synchronous parse encountered promise.");return $}_parseAsync(m){let $=this._parse(m);return Promise.resolve($)}parse(m,$){let E=this.safeParse(m,$);if(E.success)return E.data;throw E.error}safeParse(m,$){var E;let _={common:{issues:[],async:null!==(E=null==$?void 0:$.async)&&void 0!==E&&E,contextualErrorMap:null==$?void 0:$.errorMap},path:(null==$?void 0:$.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:m,parsedType:getParsedType(m)},P=this._parseSync({data:m,path:_.path,parent:_});return handleResult(_,P)}async parseAsync(m,$){let E=await this.safeParseAsync(m,$);if(E.success)return E.data;throw E.error}async safeParseAsync(m,$){let E={common:{issues:[],contextualErrorMap:null==$?void 0:$.errorMap,async:!0},path:(null==$?void 0:$.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:m,parsedType:getParsedType(m)},_=this._parse({data:m,path:E.path,parent:E}),P=await (isAsync(_)?_:Promise.resolve(_));return handleResult(E,P)}refine(m,$){let getIssueProperties=m=>"string"==typeof $||void 0===$?{message:$}:"function"==typeof $?$(m):$;return this._refinement(($,E)=>{let _=m($),setError=()=>E.addIssue({code:S.custom,...getIssueProperties($)});return"undefined"!=typeof Promise&&_ instanceof Promise?_.then(m=>!!m||(setError(),!1)):!!_||(setError(),!1)})}refinement(m,$){return this._refinement((E,_)=>!!m(E)||(_.addIssue("function"==typeof $?$(E,_):$),!1))}_refinement(m){return new ZodEffects({schema:this,typeName:eM.ZodEffects,effect:{type:"refinement",refinement:m}})}superRefine(m){return this._refinement(m)}optional(){return ZodOptional.create(this,this._def)}nullable(){return ZodNullable.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ZodArray.create(this,this._def)}promise(){return ZodPromise.create(this,this._def)}or(m){return ZodUnion.create([this,m],this._def)}and(m){return ZodIntersection.create(this,m,this._def)}transform(m){return new ZodEffects({...processCreateParams(this._def),schema:this,typeName:eM.ZodEffects,effect:{type:"transform",transform:m}})}default(m){return new ZodDefault({...processCreateParams(this._def),innerType:this,defaultValue:"function"==typeof m?m:()=>m,typeName:eM.ZodDefault})}brand(){return new ZodBranded({typeName:eM.ZodBranded,type:this,...processCreateParams(this._def)})}catch(m){return new ZodCatch({...processCreateParams(this._def),innerType:this,catchValue:"function"==typeof m?m:()=>m,typeName:eM.ZodCatch})}describe(m){let $=this.constructor;return new $({...this._def,description:m})}pipe(m){return ZodPipeline.create(this,m)}readonly(){return ZodReadonly.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};let R=/^c[^\s-]{8,}$/i,A=/^[a-z][a-z0-9]*$/,M=/^[0-9A-HJKMNP-TV-Z]{26}$/,V=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,N=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,j=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,B=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,datetimeRegex=m=>m.precision?m.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${m.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${m.precision}}Z$`):0===m.precision?m.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):m.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function isValidIP(m,$){return!!(("v4"===$||!$)&&j.test(m)||("v6"===$||!$)&&B.test(m))}let ZodString=class ZodString extends ZodType{_parse(m){let $;this._def.coerce&&(m.data=String(m.data));let E=this._getType(m);if(E!==P.string){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.string,received:$.parsedType}),k}let T=new ParseStatus;for(let E of this._def.checks)if("min"===E.kind)m.data.lengthE.value&&(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.too_big,maximum:E.value,type:"string",inclusive:!0,exact:!1,message:E.message}),T.dirty());else if("length"===E.kind){let _=m.data.length>E.value,P=m.data.lengthm.test($),{validation:$,code:S.invalid_string,...eA.errToObj(E)})}_addCheck(m){return new ZodString({...this._def,checks:[...this._def.checks,m]})}email(m){return this._addCheck({kind:"email",...eA.errToObj(m)})}url(m){return this._addCheck({kind:"url",...eA.errToObj(m)})}emoji(m){return this._addCheck({kind:"emoji",...eA.errToObj(m)})}uuid(m){return this._addCheck({kind:"uuid",...eA.errToObj(m)})}cuid(m){return this._addCheck({kind:"cuid",...eA.errToObj(m)})}cuid2(m){return this._addCheck({kind:"cuid2",...eA.errToObj(m)})}ulid(m){return this._addCheck({kind:"ulid",...eA.errToObj(m)})}ip(m){return this._addCheck({kind:"ip",...eA.errToObj(m)})}datetime(m){var $;return"string"==typeof m?this._addCheck({kind:"datetime",precision:null,offset:!1,message:m}):this._addCheck({kind:"datetime",precision:void 0===(null==m?void 0:m.precision)?null:null==m?void 0:m.precision,offset:null!==($=null==m?void 0:m.offset)&&void 0!==$&&$,...eA.errToObj(null==m?void 0:m.message)})}regex(m,$){return this._addCheck({kind:"regex",regex:m,...eA.errToObj($)})}includes(m,$){return this._addCheck({kind:"includes",value:m,position:null==$?void 0:$.position,...eA.errToObj(null==$?void 0:$.message)})}startsWith(m,$){return this._addCheck({kind:"startsWith",value:m,...eA.errToObj($)})}endsWith(m,$){return this._addCheck({kind:"endsWith",value:m,...eA.errToObj($)})}min(m,$){return this._addCheck({kind:"min",value:m,...eA.errToObj($)})}max(m,$){return this._addCheck({kind:"max",value:m,...eA.errToObj($)})}length(m,$){return this._addCheck({kind:"length",value:m,...eA.errToObj($)})}nonempty(m){return this.min(1,eA.errToObj(m))}trim(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ZodString({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(m=>"datetime"===m.kind)}get isEmail(){return!!this._def.checks.find(m=>"email"===m.kind)}get isURL(){return!!this._def.checks.find(m=>"url"===m.kind)}get isEmoji(){return!!this._def.checks.find(m=>"emoji"===m.kind)}get isUUID(){return!!this._def.checks.find(m=>"uuid"===m.kind)}get isCUID(){return!!this._def.checks.find(m=>"cuid"===m.kind)}get isCUID2(){return!!this._def.checks.find(m=>"cuid2"===m.kind)}get isULID(){return!!this._def.checks.find(m=>"ulid"===m.kind)}get isIP(){return!!this._def.checks.find(m=>"ip"===m.kind)}get minLength(){let m=null;for(let $ of this._def.checks)"min"===$.kind&&(null===m||$.value>m)&&(m=$.value);return m}get maxLength(){let m=null;for(let $ of this._def.checks)"max"===$.kind&&(null===m||$.value_?E:_,S=parseInt(m.toFixed(P).replace(".","")),T=parseInt($.toFixed(P).replace(".",""));return S%T/Math.pow(10,P)}ZodString.create=m=>{var $;return new ZodString({checks:[],typeName:eM.ZodString,coerce:null!==($=null==m?void 0:m.coerce)&&void 0!==$&&$,...processCreateParams(m)})};let ZodNumber=class ZodNumber extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(m){let $;this._def.coerce&&(m.data=Number(m.data));let E=this._getType(m);if(E!==P.number){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.number,received:$.parsedType}),k}let _=new ParseStatus;for(let E of this._def.checks)if("int"===E.kind)eO.isInteger(m.data)||(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.invalid_type,expected:"integer",received:"float",message:E.message}),_.dirty());else if("min"===E.kind){let P=E.inclusive?m.dataE.value:m.data>=E.value;P&&(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.too_big,maximum:E.value,type:"number",inclusive:E.inclusive,exact:!1,message:E.message}),_.dirty())}else"multipleOf"===E.kind?0!==floatSafeRemainder(m.data,E.value)&&(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.not_multiple_of,multipleOf:E.value,message:E.message}),_.dirty()):"finite"===E.kind?Number.isFinite(m.data)||(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.not_finite,message:E.message}),_.dirty()):eO.assertNever(E);return{status:_.value,value:m.data}}gte(m,$){return this.setLimit("min",m,!0,eA.toString($))}gt(m,$){return this.setLimit("min",m,!1,eA.toString($))}lte(m,$){return this.setLimit("max",m,!0,eA.toString($))}lt(m,$){return this.setLimit("max",m,!1,eA.toString($))}setLimit(m,$,E,_){return new ZodNumber({...this._def,checks:[...this._def.checks,{kind:m,value:$,inclusive:E,message:eA.toString(_)}]})}_addCheck(m){return new ZodNumber({...this._def,checks:[...this._def.checks,m]})}int(m){return this._addCheck({kind:"int",message:eA.toString(m)})}positive(m){return this._addCheck({kind:"min",value:0,inclusive:!1,message:eA.toString(m)})}negative(m){return this._addCheck({kind:"max",value:0,inclusive:!1,message:eA.toString(m)})}nonpositive(m){return this._addCheck({kind:"max",value:0,inclusive:!0,message:eA.toString(m)})}nonnegative(m){return this._addCheck({kind:"min",value:0,inclusive:!0,message:eA.toString(m)})}multipleOf(m,$){return this._addCheck({kind:"multipleOf",value:m,message:eA.toString($)})}finite(m){return this._addCheck({kind:"finite",message:eA.toString(m)})}safe(m){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:eA.toString(m)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:eA.toString(m)})}get minValue(){let m=null;for(let $ of this._def.checks)"min"===$.kind&&(null===m||$.value>m)&&(m=$.value);return m}get maxValue(){let m=null;for(let $ of this._def.checks)"max"===$.kind&&(null===m||$.value"int"===m.kind||"multipleOf"===m.kind&&eO.isInteger(m.value))}get isFinite(){let m=null,$=null;for(let E of this._def.checks){if("finite"===E.kind||"int"===E.kind||"multipleOf"===E.kind)return!0;"min"===E.kind?(null===$||E.value>$)&&($=E.value):"max"===E.kind&&(null===m||E.valuenew ZodNumber({checks:[],typeName:eM.ZodNumber,coerce:(null==m?void 0:m.coerce)||!1,...processCreateParams(m)});let ZodBigInt=class ZodBigInt extends ZodType{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(m){let $;this._def.coerce&&(m.data=BigInt(m.data));let E=this._getType(m);if(E!==P.bigint){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.bigint,received:$.parsedType}),k}let _=new ParseStatus;for(let E of this._def.checks)if("min"===E.kind){let P=E.inclusive?m.dataE.value:m.data>=E.value;P&&(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.too_big,type:"bigint",maximum:E.value,inclusive:E.inclusive,message:E.message}),_.dirty())}else"multipleOf"===E.kind?m.data%E.value!==BigInt(0)&&(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.not_multiple_of,multipleOf:E.value,message:E.message}),_.dirty()):eO.assertNever(E);return{status:_.value,value:m.data}}gte(m,$){return this.setLimit("min",m,!0,eA.toString($))}gt(m,$){return this.setLimit("min",m,!1,eA.toString($))}lte(m,$){return this.setLimit("max",m,!0,eA.toString($))}lt(m,$){return this.setLimit("max",m,!1,eA.toString($))}setLimit(m,$,E,_){return new ZodBigInt({...this._def,checks:[...this._def.checks,{kind:m,value:$,inclusive:E,message:eA.toString(_)}]})}_addCheck(m){return new ZodBigInt({...this._def,checks:[...this._def.checks,m]})}positive(m){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:eA.toString(m)})}negative(m){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:eA.toString(m)})}nonpositive(m){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:eA.toString(m)})}nonnegative(m){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:eA.toString(m)})}multipleOf(m,$){return this._addCheck({kind:"multipleOf",value:m,message:eA.toString($)})}get minValue(){let m=null;for(let $ of this._def.checks)"min"===$.kind&&(null===m||$.value>m)&&(m=$.value);return m}get maxValue(){let m=null;for(let $ of this._def.checks)"max"===$.kind&&(null===m||$.value{var $;return new ZodBigInt({checks:[],typeName:eM.ZodBigInt,coerce:null!==($=null==m?void 0:m.coerce)&&void 0!==$&&$,...processCreateParams(m)})};let ZodBoolean=class ZodBoolean extends ZodType{_parse(m){this._def.coerce&&(m.data=!!m.data);let $=this._getType(m);if($!==P.boolean){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.boolean,received:$.parsedType}),k}return OK(m.data)}};ZodBoolean.create=m=>new ZodBoolean({typeName:eM.ZodBoolean,coerce:(null==m?void 0:m.coerce)||!1,...processCreateParams(m)});let ZodDate=class ZodDate extends ZodType{_parse(m){let $;this._def.coerce&&(m.data=new Date(m.data));let E=this._getType(m);if(E!==P.date){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.date,received:$.parsedType}),k}if(isNaN(m.data.getTime())){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_date}),k}let _=new ParseStatus;for(let E of this._def.checks)"min"===E.kind?m.data.getTime()E.value&&(addIssueToContext($=this._getOrReturnCtx(m,$),{code:S.too_big,message:E.message,inclusive:!0,exact:!1,maximum:E.value,type:"date"}),_.dirty()):eO.assertNever(E);return{status:_.value,value:new Date(m.data.getTime())}}_addCheck(m){return new ZodDate({...this._def,checks:[...this._def.checks,m]})}min(m,$){return this._addCheck({kind:"min",value:m.getTime(),message:eA.toString($)})}max(m,$){return this._addCheck({kind:"max",value:m.getTime(),message:eA.toString($)})}get minDate(){let m=null;for(let $ of this._def.checks)"min"===$.kind&&(null===m||$.value>m)&&(m=$.value);return null!=m?new Date(m):null}get maxDate(){let m=null;for(let $ of this._def.checks)"max"===$.kind&&(null===m||$.valuenew ZodDate({checks:[],coerce:(null==m?void 0:m.coerce)||!1,typeName:eM.ZodDate,...processCreateParams(m)});let ZodSymbol=class ZodSymbol extends ZodType{_parse(m){let $=this._getType(m);if($!==P.symbol){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.symbol,received:$.parsedType}),k}return OK(m.data)}};ZodSymbol.create=m=>new ZodSymbol({typeName:eM.ZodSymbol,...processCreateParams(m)});let ZodUndefined=class ZodUndefined extends ZodType{_parse(m){let $=this._getType(m);if($!==P.undefined){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.undefined,received:$.parsedType}),k}return OK(m.data)}};ZodUndefined.create=m=>new ZodUndefined({typeName:eM.ZodUndefined,...processCreateParams(m)});let ZodNull=class ZodNull extends ZodType{_parse(m){let $=this._getType(m);if($!==P.null){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.null,received:$.parsedType}),k}return OK(m.data)}};ZodNull.create=m=>new ZodNull({typeName:eM.ZodNull,...processCreateParams(m)});let ZodAny=class ZodAny extends ZodType{constructor(){super(...arguments),this._any=!0}_parse(m){return OK(m.data)}};ZodAny.create=m=>new ZodAny({typeName:eM.ZodAny,...processCreateParams(m)});let ZodUnknown=class ZodUnknown extends ZodType{constructor(){super(...arguments),this._unknown=!0}_parse(m){return OK(m.data)}};ZodUnknown.create=m=>new ZodUnknown({typeName:eM.ZodUnknown,...processCreateParams(m)});let ZodNever=class ZodNever extends ZodType{_parse(m){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.never,received:$.parsedType}),k}};ZodNever.create=m=>new ZodNever({typeName:eM.ZodNever,...processCreateParams(m)});let ZodVoid=class ZodVoid extends ZodType{_parse(m){let $=this._getType(m);if($!==P.undefined){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.void,received:$.parsedType}),k}return OK(m.data)}};ZodVoid.create=m=>new ZodVoid({typeName:eM.ZodVoid,...processCreateParams(m)});let ZodArray=class ZodArray extends ZodType{_parse(m){let{ctx:$,status:E}=this._processInputParams(m),_=this._def;if($.parsedType!==P.array)return addIssueToContext($,{code:S.invalid_type,expected:P.array,received:$.parsedType}),k;if(null!==_.exactLength){let m=$.data.length>_.exactLength.value,P=$.data.length<_.exactLength.value;(m||P)&&(addIssueToContext($,{code:m?S.too_big:S.too_small,minimum:P?_.exactLength.value:void 0,maximum:m?_.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:_.exactLength.message}),E.dirty())}if(null!==_.minLength&&$.data.length<_.minLength.value&&(addIssueToContext($,{code:S.too_small,minimum:_.minLength.value,type:"array",inclusive:!0,exact:!1,message:_.minLength.message}),E.dirty()),null!==_.maxLength&&$.data.length>_.maxLength.value&&(addIssueToContext($,{code:S.too_big,maximum:_.maxLength.value,type:"array",inclusive:!0,exact:!1,message:_.maxLength.message}),E.dirty()),$.common.async)return Promise.all([...$.data].map((m,E)=>_.type._parseAsync(new ParseInputLazyPath($,m,$.path,E)))).then(m=>ParseStatus.mergeArray(E,m));let T=[...$.data].map((m,E)=>_.type._parseSync(new ParseInputLazyPath($,m,$.path,E)));return ParseStatus.mergeArray(E,T)}get element(){return this._def.type}min(m,$){return new ZodArray({...this._def,minLength:{value:m,message:eA.toString($)}})}max(m,$){return new ZodArray({...this._def,maxLength:{value:m,message:eA.toString($)}})}length(m,$){return new ZodArray({...this._def,exactLength:{value:m,message:eA.toString($)}})}nonempty(m){return this.min(1,m)}};function deepPartialify(m){if(m instanceof ZodObject){let $={};for(let E in m.shape){let _=m.shape[E];$[E]=ZodOptional.create(deepPartialify(_))}return new ZodObject({...m._def,shape:()=>$})}return m instanceof ZodArray?new ZodArray({...m._def,type:deepPartialify(m.element)}):m instanceof ZodOptional?ZodOptional.create(deepPartialify(m.unwrap())):m instanceof ZodNullable?ZodNullable.create(deepPartialify(m.unwrap())):m instanceof ZodTuple?ZodTuple.create(m.items.map(m=>deepPartialify(m))):m}ZodArray.create=(m,$)=>new ZodArray({type:m,minLength:null,maxLength:null,exactLength:null,typeName:eM.ZodArray,...processCreateParams($)});let ZodObject=class ZodObject extends ZodType{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let m=this._def.shape(),$=eO.objectKeys(m);return this._cached={shape:m,keys:$}}_parse(m){let $=this._getType(m);if($!==P.object){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.object,received:$.parsedType}),k}let{status:E,ctx:_}=this._processInputParams(m),{shape:T,keys:R}=this._getCached(),A=[];if(!(this._def.catchall instanceof ZodNever&&"strip"===this._def.unknownKeys))for(let m in _.data)R.includes(m)||A.push(m);let M=[];for(let m of R){let $=T[m],E=_.data[m];M.push({key:{status:"valid",value:m},value:$._parse(new ParseInputLazyPath(_,E,_.path,m)),alwaysSet:m in _.data})}if(this._def.catchall instanceof ZodNever){let m=this._def.unknownKeys;if("passthrough"===m)for(let m of A)M.push({key:{status:"valid",value:m},value:{status:"valid",value:_.data[m]}});else if("strict"===m)A.length>0&&(addIssueToContext(_,{code:S.unrecognized_keys,keys:A}),E.dirty());else if("strip"===m);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let m=this._def.catchall;for(let $ of A){let E=_.data[$];M.push({key:{status:"valid",value:$},value:m._parse(new ParseInputLazyPath(_,E,_.path,$)),alwaysSet:$ in _.data})}}return _.common.async?Promise.resolve().then(async()=>{let m=[];for(let $ of M){let E=await $.key;m.push({key:E,value:await $.value,alwaysSet:$.alwaysSet})}return m}).then(m=>ParseStatus.mergeObjectSync(E,m)):ParseStatus.mergeObjectSync(E,M)}get shape(){return this._def.shape()}strict(m){return eA.errToObj,new ZodObject({...this._def,unknownKeys:"strict",...void 0!==m?{errorMap:($,E)=>{var _,P,S,T;let k=null!==(S=null===(P=(_=this._def).errorMap)||void 0===P?void 0:P.call(_,$,E).message)&&void 0!==S?S:E.defaultError;return"unrecognized_keys"===$.code?{message:null!==(T=eA.errToObj(m).message)&&void 0!==T?T:k}:{message:k}}}:{}})}strip(){return new ZodObject({...this._def,unknownKeys:"strip"})}passthrough(){return new ZodObject({...this._def,unknownKeys:"passthrough"})}extend(m){return new ZodObject({...this._def,shape:()=>({...this._def.shape(),...m})})}merge(m){let $=new ZodObject({unknownKeys:m._def.unknownKeys,catchall:m._def.catchall,shape:()=>({...this._def.shape(),...m._def.shape()}),typeName:eM.ZodObject});return $}setKey(m,$){return this.augment({[m]:$})}catchall(m){return new ZodObject({...this._def,catchall:m})}pick(m){let $={};return eO.objectKeys(m).forEach(E=>{m[E]&&this.shape[E]&&($[E]=this.shape[E])}),new ZodObject({...this._def,shape:()=>$})}omit(m){let $={};return eO.objectKeys(this.shape).forEach(E=>{m[E]||($[E]=this.shape[E])}),new ZodObject({...this._def,shape:()=>$})}deepPartial(){return deepPartialify(this)}partial(m){let $={};return eO.objectKeys(this.shape).forEach(E=>{let _=this.shape[E];m&&!m[E]?$[E]=_:$[E]=_.optional()}),new ZodObject({...this._def,shape:()=>$})}required(m){let $={};return eO.objectKeys(this.shape).forEach(E=>{if(m&&!m[E])$[E]=this.shape[E];else{let m=this.shape[E],_=m;for(;_ instanceof ZodOptional;)_=_._def.innerType;$[E]=_}}),new ZodObject({...this._def,shape:()=>$})}keyof(){return createZodEnum(eO.objectKeys(this.shape))}};ZodObject.create=(m,$)=>new ZodObject({shape:()=>m,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eM.ZodObject,...processCreateParams($)}),ZodObject.strictCreate=(m,$)=>new ZodObject({shape:()=>m,unknownKeys:"strict",catchall:ZodNever.create(),typeName:eM.ZodObject,...processCreateParams($)}),ZodObject.lazycreate=(m,$)=>new ZodObject({shape:m,unknownKeys:"strip",catchall:ZodNever.create(),typeName:eM.ZodObject,...processCreateParams($)});let ZodUnion=class ZodUnion extends ZodType{_parse(m){let{ctx:$}=this._processInputParams(m),E=this._def.options;function handleResults(m){for(let $ of m)if("valid"===$.result.status)return $.result;for(let E of m)if("dirty"===E.result.status)return $.common.issues.push(...E.ctx.common.issues),E.result;let E=m.map(m=>new ZodError(m.ctx.common.issues));return addIssueToContext($,{code:S.invalid_union,unionErrors:E}),k}if($.common.async)return Promise.all(E.map(async m=>{let E={...$,common:{...$.common,issues:[]},parent:null};return{result:await m._parseAsync({data:$.data,path:$.path,parent:E}),ctx:E}})).then(handleResults);{let m;let _=[];for(let P of E){let E={...$,common:{...$.common,issues:[]},parent:null},S=P._parseSync({data:$.data,path:$.path,parent:E});if("valid"===S.status)return S;"dirty"!==S.status||m||(m={result:S,ctx:E}),E.common.issues.length&&_.push(E.common.issues)}if(m)return $.common.issues.push(...m.ctx.common.issues),m.result;let P=_.map(m=>new ZodError(m));return addIssueToContext($,{code:S.invalid_union,unionErrors:P}),k}}get options(){return this._def.options}};ZodUnion.create=(m,$)=>new ZodUnion({options:m,typeName:eM.ZodUnion,...processCreateParams($)});let getDiscriminator=m=>{if(m instanceof ZodLazy)return getDiscriminator(m.schema);if(m instanceof ZodEffects)return getDiscriminator(m.innerType());if(m instanceof ZodLiteral)return[m.value];if(m instanceof ZodEnum)return m.options;if(m instanceof ZodNativeEnum)return Object.keys(m.enum);if(m instanceof ZodDefault)return getDiscriminator(m._def.innerType);if(m instanceof ZodUndefined)return[void 0];else if(m instanceof ZodNull)return[null];else return null};let ZodDiscriminatedUnion=class ZodDiscriminatedUnion extends ZodType{_parse(m){let{ctx:$}=this._processInputParams(m);if($.parsedType!==P.object)return addIssueToContext($,{code:S.invalid_type,expected:P.object,received:$.parsedType}),k;let E=this.discriminator,_=$.data[E],T=this.optionsMap.get(_);return T?$.common.async?T._parseAsync({data:$.data,path:$.path,parent:$}):T._parseSync({data:$.data,path:$.path,parent:$}):(addIssueToContext($,{code:S.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[E]}),k)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(m,$,E){let _=new Map;for(let E of $){let $=getDiscriminator(E.shape[m]);if(!$)throw Error(`A discriminator value for key \`${m}\` could not be extracted from all schema options`);for(let P of $){if(_.has(P))throw Error(`Discriminator property ${String(m)} has duplicate value ${String(P)}`);_.set(P,E)}}return new ZodDiscriminatedUnion({typeName:eM.ZodDiscriminatedUnion,discriminator:m,options:$,optionsMap:_,...processCreateParams(E)})}};function mergeValues(m,$){let E=getParsedType(m),_=getParsedType($);if(m===$)return{valid:!0,data:m};if(E===P.object&&_===P.object){let E=eO.objectKeys($),_=eO.objectKeys(m).filter(m=>-1!==E.indexOf(m)),P={...m,...$};for(let E of _){let _=mergeValues(m[E],$[E]);if(!_.valid)return{valid:!1};P[E]=_.data}return{valid:!0,data:P}}if(E===P.array&&_===P.array){if(m.length!==$.length)return{valid:!1};let E=[];for(let _=0;_{if(isAborted(m)||isAborted(_))return k;let P=mergeValues(m.value,_.value);return P.valid?((isDirty(m)||isDirty(_))&&$.dirty(),{status:$.value,value:P.data}):(addIssueToContext(E,{code:S.invalid_intersection_types}),k)};return E.common.async?Promise.all([this._def.left._parseAsync({data:E.data,path:E.path,parent:E}),this._def.right._parseAsync({data:E.data,path:E.path,parent:E})]).then(([m,$])=>handleParsed(m,$)):handleParsed(this._def.left._parseSync({data:E.data,path:E.path,parent:E}),this._def.right._parseSync({data:E.data,path:E.path,parent:E}))}};ZodIntersection.create=(m,$,E)=>new ZodIntersection({left:m,right:$,typeName:eM.ZodIntersection,...processCreateParams(E)});let ZodTuple=class ZodTuple extends ZodType{_parse(m){let{status:$,ctx:E}=this._processInputParams(m);if(E.parsedType!==P.array)return addIssueToContext(E,{code:S.invalid_type,expected:P.array,received:E.parsedType}),k;if(E.data.lengththis._def.items.length&&(addIssueToContext(E,{code:S.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$.dirty());let T=[...E.data].map((m,$)=>{let _=this._def.items[$]||this._def.rest;return _?_._parse(new ParseInputLazyPath(E,m,E.path,$)):null}).filter(m=>!!m);return E.common.async?Promise.all(T).then(m=>ParseStatus.mergeArray($,m)):ParseStatus.mergeArray($,T)}get items(){return this._def.items}rest(m){return new ZodTuple({...this._def,rest:m})}};ZodTuple.create=(m,$)=>{if(!Array.isArray(m))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ZodTuple({items:m,typeName:eM.ZodTuple,rest:null,...processCreateParams($)})};let ZodRecord=class ZodRecord extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(m){let{status:$,ctx:E}=this._processInputParams(m);if(E.parsedType!==P.object)return addIssueToContext(E,{code:S.invalid_type,expected:P.object,received:E.parsedType}),k;let _=[],T=this._def.keyType,R=this._def.valueType;for(let m in E.data)_.push({key:T._parse(new ParseInputLazyPath(E,m,E.path,m)),value:R._parse(new ParseInputLazyPath(E,E.data[m],E.path,m))});return E.common.async?ParseStatus.mergeObjectAsync($,_):ParseStatus.mergeObjectSync($,_)}get element(){return this._def.valueType}static create(m,$,E){return new ZodRecord($ instanceof ZodType?{keyType:m,valueType:$,typeName:eM.ZodRecord,...processCreateParams(E)}:{keyType:ZodString.create(),valueType:m,typeName:eM.ZodRecord,...processCreateParams($)})}};let ZodMap=class ZodMap extends ZodType{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(m){let{status:$,ctx:E}=this._processInputParams(m);if(E.parsedType!==P.map)return addIssueToContext(E,{code:S.invalid_type,expected:P.map,received:E.parsedType}),k;let _=this._def.keyType,T=this._def.valueType,R=[...E.data.entries()].map(([m,$],P)=>({key:_._parse(new ParseInputLazyPath(E,m,E.path,[P,"key"])),value:T._parse(new ParseInputLazyPath(E,$,E.path,[P,"value"]))}));if(E.common.async){let m=new Map;return Promise.resolve().then(async()=>{for(let E of R){let _=await E.key,P=await E.value;if("aborted"===_.status||"aborted"===P.status)return k;("dirty"===_.status||"dirty"===P.status)&&$.dirty(),m.set(_.value,P.value)}return{status:$.value,value:m}})}{let m=new Map;for(let E of R){let _=E.key,P=E.value;if("aborted"===_.status||"aborted"===P.status)return k;("dirty"===_.status||"dirty"===P.status)&&$.dirty(),m.set(_.value,P.value)}return{status:$.value,value:m}}}};ZodMap.create=(m,$,E)=>new ZodMap({valueType:$,keyType:m,typeName:eM.ZodMap,...processCreateParams(E)});let ZodSet=class ZodSet extends ZodType{_parse(m){let{status:$,ctx:E}=this._processInputParams(m);if(E.parsedType!==P.set)return addIssueToContext(E,{code:S.invalid_type,expected:P.set,received:E.parsedType}),k;let _=this._def;null!==_.minSize&&E.data.size<_.minSize.value&&(addIssueToContext(E,{code:S.too_small,minimum:_.minSize.value,type:"set",inclusive:!0,exact:!1,message:_.minSize.message}),$.dirty()),null!==_.maxSize&&E.data.size>_.maxSize.value&&(addIssueToContext(E,{code:S.too_big,maximum:_.maxSize.value,type:"set",inclusive:!0,exact:!1,message:_.maxSize.message}),$.dirty());let T=this._def.valueType;function finalizeSet(m){let E=new Set;for(let _ of m){if("aborted"===_.status)return k;"dirty"===_.status&&$.dirty(),E.add(_.value)}return{status:$.value,value:E}}let R=[...E.data.values()].map((m,$)=>T._parse(new ParseInputLazyPath(E,m,E.path,$)));return E.common.async?Promise.all(R).then(m=>finalizeSet(m)):finalizeSet(R)}min(m,$){return new ZodSet({...this._def,minSize:{value:m,message:eA.toString($)}})}max(m,$){return new ZodSet({...this._def,maxSize:{value:m,message:eA.toString($)}})}size(m,$){return this.min(m,$).max(m,$)}nonempty(m){return this.min(1,m)}};ZodSet.create=(m,$)=>new ZodSet({valueType:m,minSize:null,maxSize:null,typeName:eM.ZodSet,...processCreateParams($)});let ZodFunction=class ZodFunction extends ZodType{constructor(){super(...arguments),this.validate=this.implement}_parse(m){let{ctx:$}=this._processInputParams(m);if($.parsedType!==P.function)return addIssueToContext($,{code:S.invalid_type,expected:P.function,received:$.parsedType}),k;function makeArgsIssue(m,E){return makeIssue({data:m,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,getErrorMap(),errorMap].filter(m=>!!m),issueData:{code:S.invalid_arguments,argumentsError:E}})}function makeReturnsIssue(m,E){return makeIssue({data:m,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,getErrorMap(),errorMap].filter(m=>!!m),issueData:{code:S.invalid_return_type,returnTypeError:E}})}let E={errorMap:$.common.contextualErrorMap},_=$.data;if(this._def.returns instanceof ZodPromise){let m=this;return OK(async function(...$){let P=new ZodError([]),S=await m._def.args.parseAsync($,E).catch(m=>{throw P.addIssue(makeArgsIssue($,m)),P}),T=await Reflect.apply(_,this,S),k=await m._def.returns._def.type.parseAsync(T,E).catch(m=>{throw P.addIssue(makeReturnsIssue(T,m)),P});return k})}{let m=this;return OK(function(...$){let P=m._def.args.safeParse($,E);if(!P.success)throw new ZodError([makeArgsIssue($,P.error)]);let S=Reflect.apply(_,this,P.data),T=m._def.returns.safeParse(S,E);if(!T.success)throw new ZodError([makeReturnsIssue(S,T.error)]);return T.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...m){return new ZodFunction({...this._def,args:ZodTuple.create(m).rest(ZodUnknown.create())})}returns(m){return new ZodFunction({...this._def,returns:m})}implement(m){let $=this.parse(m);return $}strictImplement(m){let $=this.parse(m);return $}static create(m,$,E){return new ZodFunction({args:m||ZodTuple.create([]).rest(ZodUnknown.create()),returns:$||ZodUnknown.create(),typeName:eM.ZodFunction,...processCreateParams(E)})}};let ZodLazy=class ZodLazy extends ZodType{get schema(){return this._def.getter()}_parse(m){let{ctx:$}=this._processInputParams(m),E=this._def.getter();return E._parse({data:$.data,path:$.path,parent:$})}};ZodLazy.create=(m,$)=>new ZodLazy({getter:m,typeName:eM.ZodLazy,...processCreateParams($)});let ZodLiteral=class ZodLiteral extends ZodType{_parse(m){if(m.data!==this._def.value){let $=this._getOrReturnCtx(m);return addIssueToContext($,{received:$.data,code:S.invalid_literal,expected:this._def.value}),k}return{status:"valid",value:m.data}}get value(){return this._def.value}};function createZodEnum(m,$){return new ZodEnum({values:m,typeName:eM.ZodEnum,...processCreateParams($)})}ZodLiteral.create=(m,$)=>new ZodLiteral({value:m,typeName:eM.ZodLiteral,...processCreateParams($)});let ZodEnum=class ZodEnum extends ZodType{_parse(m){if("string"!=typeof m.data){let $=this._getOrReturnCtx(m),E=this._def.values;return addIssueToContext($,{expected:eO.joinValues(E),received:$.parsedType,code:S.invalid_type}),k}if(-1===this._def.values.indexOf(m.data)){let $=this._getOrReturnCtx(m),E=this._def.values;return addIssueToContext($,{received:$.data,code:S.invalid_enum_value,options:E}),k}return OK(m.data)}get options(){return this._def.values}get enum(){let m={};for(let $ of this._def.values)m[$]=$;return m}get Values(){let m={};for(let $ of this._def.values)m[$]=$;return m}get Enum(){let m={};for(let $ of this._def.values)m[$]=$;return m}extract(m){return ZodEnum.create(m)}exclude(m){return ZodEnum.create(this.options.filter($=>!m.includes($)))}};ZodEnum.create=createZodEnum;let ZodNativeEnum=class ZodNativeEnum extends ZodType{_parse(m){let $=eO.getValidEnumValues(this._def.values),E=this._getOrReturnCtx(m);if(E.parsedType!==P.string&&E.parsedType!==P.number){let m=eO.objectValues($);return addIssueToContext(E,{expected:eO.joinValues(m),received:E.parsedType,code:S.invalid_type}),k}if(-1===$.indexOf(m.data)){let m=eO.objectValues($);return addIssueToContext(E,{received:E.data,code:S.invalid_enum_value,options:m}),k}return OK(m.data)}get enum(){return this._def.values}};ZodNativeEnum.create=(m,$)=>new ZodNativeEnum({values:m,typeName:eM.ZodNativeEnum,...processCreateParams($)});let ZodPromise=class ZodPromise extends ZodType{unwrap(){return this._def.type}_parse(m){let{ctx:$}=this._processInputParams(m);if($.parsedType!==P.promise&&!1===$.common.async)return addIssueToContext($,{code:S.invalid_type,expected:P.promise,received:$.parsedType}),k;let E=$.parsedType===P.promise?$.data:Promise.resolve($.data);return OK(E.then(m=>this._def.type.parseAsync(m,{path:$.path,errorMap:$.common.contextualErrorMap})))}};ZodPromise.create=(m,$)=>new ZodPromise({type:m,typeName:eM.ZodPromise,...processCreateParams($)});let ZodEffects=class ZodEffects extends ZodType{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eM.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(m){let{status:$,ctx:E}=this._processInputParams(m),_=this._def.effect||null,P={addIssue:m=>{addIssueToContext(E,m),m.fatal?$.abort():$.dirty()},get path(){return E.path}};if(P.addIssue=P.addIssue.bind(P),"preprocess"===_.type){let m=_.transform(E.data,P);return E.common.issues.length?{status:"dirty",value:E.data}:E.common.async?Promise.resolve(m).then(m=>this._def.schema._parseAsync({data:m,path:E.path,parent:E})):this._def.schema._parseSync({data:m,path:E.path,parent:E})}if("refinement"===_.type){let executeRefinement=m=>{let $=_.refinement(m,P);if(E.common.async)return Promise.resolve($);if($ instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(!1!==E.common.async)return this._def.schema._parseAsync({data:E.data,path:E.path,parent:E}).then(m=>"aborted"===m.status?k:("dirty"===m.status&&$.dirty(),executeRefinement(m.value).then(()=>({status:$.value,value:m.value}))));{let m=this._def.schema._parseSync({data:E.data,path:E.path,parent:E});return"aborted"===m.status?k:("dirty"===m.status&&$.dirty(),executeRefinement(m.value),{status:$.value,value:m.value})}}if("transform"===_.type){if(!1!==E.common.async)return this._def.schema._parseAsync({data:E.data,path:E.path,parent:E}).then(m=>isValid(m)?Promise.resolve(_.transform(m.value,P)).then(m=>({status:$.value,value:m})):m);{let m=this._def.schema._parseSync({data:E.data,path:E.path,parent:E});if(!isValid(m))return m;let S=_.transform(m.value,P);if(S instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:$.value,value:S}}}eO.assertNever(_)}};ZodEffects.create=(m,$,E)=>new ZodEffects({schema:m,typeName:eM.ZodEffects,effect:$,...processCreateParams(E)}),ZodEffects.createWithPreprocess=(m,$,E)=>new ZodEffects({schema:$,effect:{type:"preprocess",transform:m},typeName:eM.ZodEffects,...processCreateParams(E)});let ZodOptional=class ZodOptional extends ZodType{_parse(m){let $=this._getType(m);return $===P.undefined?OK(void 0):this._def.innerType._parse(m)}unwrap(){return this._def.innerType}};ZodOptional.create=(m,$)=>new ZodOptional({innerType:m,typeName:eM.ZodOptional,...processCreateParams($)});let ZodNullable=class ZodNullable extends ZodType{_parse(m){let $=this._getType(m);return $===P.null?OK(null):this._def.innerType._parse(m)}unwrap(){return this._def.innerType}};ZodNullable.create=(m,$)=>new ZodNullable({innerType:m,typeName:eM.ZodNullable,...processCreateParams($)});let ZodDefault=class ZodDefault extends ZodType{_parse(m){let{ctx:$}=this._processInputParams(m),E=$.data;return $.parsedType===P.undefined&&(E=this._def.defaultValue()),this._def.innerType._parse({data:E,path:$.path,parent:$})}removeDefault(){return this._def.innerType}};ZodDefault.create=(m,$)=>new ZodDefault({innerType:m,typeName:eM.ZodDefault,defaultValue:"function"==typeof $.default?$.default:()=>$.default,...processCreateParams($)});let ZodCatch=class ZodCatch extends ZodType{_parse(m){let{ctx:$}=this._processInputParams(m),E={...$,common:{...$.common,issues:[]}},_=this._def.innerType._parse({data:E.data,path:E.path,parent:{...E}});return isAsync(_)?_.then(m=>({status:"valid",value:"valid"===m.status?m.value:this._def.catchValue({get error(){return new ZodError(E.common.issues)},input:E.data})})):{status:"valid",value:"valid"===_.status?_.value:this._def.catchValue({get error(){return new ZodError(E.common.issues)},input:E.data})}}removeCatch(){return this._def.innerType}};ZodCatch.create=(m,$)=>new ZodCatch({innerType:m,typeName:eM.ZodCatch,catchValue:"function"==typeof $.catch?$.catch:()=>$.catch,...processCreateParams($)});let ZodNaN=class ZodNaN extends ZodType{_parse(m){let $=this._getType(m);if($!==P.nan){let $=this._getOrReturnCtx(m);return addIssueToContext($,{code:S.invalid_type,expected:P.nan,received:$.parsedType}),k}return{status:"valid",value:m.data}}};ZodNaN.create=m=>new ZodNaN({typeName:eM.ZodNaN,...processCreateParams(m)});let z=Symbol("zod_brand");let ZodBranded=class ZodBranded extends ZodType{_parse(m){let{ctx:$}=this._processInputParams(m),E=$.data;return this._def.type._parse({data:E,path:$.path,parent:$})}unwrap(){return this._def.type}};let ZodPipeline=class ZodPipeline extends ZodType{_parse(m){let{status:$,ctx:E}=this._processInputParams(m);if(E.common.async){let handleAsync=async()=>{let m=await this._def.in._parseAsync({data:E.data,path:E.path,parent:E});return"aborted"===m.status?k:"dirty"===m.status?($.dirty(),DIRTY(m.value)):this._def.out._parseAsync({data:m.value,path:E.path,parent:E})};return handleAsync()}{let m=this._def.in._parseSync({data:E.data,path:E.path,parent:E});return"aborted"===m.status?k:"dirty"===m.status?($.dirty(),{status:"dirty",value:m.value}):this._def.out._parseSync({data:m.value,path:E.path,parent:E})}}static create(m,$){return new ZodPipeline({in:m,out:$,typeName:eM.ZodPipeline})}};let ZodReadonly=class ZodReadonly extends ZodType{_parse(m){let $=this._def.innerType._parse(m);return isValid($)&&($.value=Object.freeze($.value)),$}};ZodReadonly.create=(m,$)=>new ZodReadonly({innerType:m,typeName:eM.ZodReadonly,...processCreateParams($)});let custom=(m,$={},E)=>m?ZodAny.create().superRefine((_,P)=>{var S,T;if(!m(_)){let m="function"==typeof $?$(_):"string"==typeof $?{message:$}:$,k=null===(T=null!==(S=m.fatal)&&void 0!==S?S:E)||void 0===T||T,R="string"==typeof m?{message:m}:m;P.addIssue({code:"custom",...R,fatal:k})}}):ZodAny.create(),W={object:ZodObject.lazycreate};(eI=eM||(eM={})).ZodString="ZodString",eI.ZodNumber="ZodNumber",eI.ZodNaN="ZodNaN",eI.ZodBigInt="ZodBigInt",eI.ZodBoolean="ZodBoolean",eI.ZodDate="ZodDate",eI.ZodSymbol="ZodSymbol",eI.ZodUndefined="ZodUndefined",eI.ZodNull="ZodNull",eI.ZodAny="ZodAny",eI.ZodUnknown="ZodUnknown",eI.ZodNever="ZodNever",eI.ZodVoid="ZodVoid",eI.ZodArray="ZodArray",eI.ZodObject="ZodObject",eI.ZodUnion="ZodUnion",eI.ZodDiscriminatedUnion="ZodDiscriminatedUnion",eI.ZodIntersection="ZodIntersection",eI.ZodTuple="ZodTuple",eI.ZodRecord="ZodRecord",eI.ZodMap="ZodMap",eI.ZodSet="ZodSet",eI.ZodFunction="ZodFunction",eI.ZodLazy="ZodLazy",eI.ZodLiteral="ZodLiteral",eI.ZodEnum="ZodEnum",eI.ZodEffects="ZodEffects",eI.ZodNativeEnum="ZodNativeEnum",eI.ZodOptional="ZodOptional",eI.ZodNullable="ZodNullable",eI.ZodDefault="ZodDefault",eI.ZodCatch="ZodCatch",eI.ZodPromise="ZodPromise",eI.ZodBranded="ZodBranded",eI.ZodPipeline="ZodPipeline",eI.ZodReadonly="ZodReadonly";let H=ZodString.create,G=ZodNumber.create,J=ZodNaN.create,X=ZodBigInt.create,ee=ZodBoolean.create,et=ZodDate.create,ea=ZodSymbol.create,er=ZodUndefined.create,en=ZodNull.create,ei=ZodAny.create,eo=ZodUnknown.create,es=ZodNever.create,el=ZodVoid.create,ec=ZodArray.create,eu=ZodObject.create,ed=ZodObject.strictCreate,ef=ZodUnion.create,ep=ZodDiscriminatedUnion.create,em=ZodIntersection.create,eh=ZodTuple.create,eg=ZodRecord.create,eb=ZodMap.create,ev=ZodSet.create,e$=ZodFunction.create,ey=ZodLazy.create,ex=ZodLiteral.create,eD=ZodEnum.create,eE=ZodNativeEnum.create,e_=ZodPromise.create,ew=ZodEffects.create,eP=ZodOptional.create,eC=ZodNullable.create,eS=ZodEffects.createWithPreprocess,eT=ZodPipeline.create;var ek,eI,eO,eR,eA,eM,eF=Object.freeze({__proto__:null,defaultErrorMap:errorMap,setErrorMap:setErrorMap,getErrorMap:getErrorMap,makeIssue:makeIssue,EMPTY_PATH:[],addIssueToContext:addIssueToContext,ParseStatus:ParseStatus,INVALID:k,DIRTY:DIRTY,OK:OK,isAborted:isAborted,isDirty:isDirty,isValid:isValid,isAsync:isAsync,get util(){return eO},get objectUtil(){return eR},ZodParsedType:P,getParsedType:getParsedType,ZodType:ZodType,ZodString:ZodString,ZodNumber:ZodNumber,ZodBigInt:ZodBigInt,ZodBoolean:ZodBoolean,ZodDate:ZodDate,ZodSymbol:ZodSymbol,ZodUndefined:ZodUndefined,ZodNull:ZodNull,ZodAny:ZodAny,ZodUnknown:ZodUnknown,ZodNever:ZodNever,ZodVoid:ZodVoid,ZodArray:ZodArray,ZodObject:ZodObject,ZodUnion:ZodUnion,ZodDiscriminatedUnion:ZodDiscriminatedUnion,ZodIntersection:ZodIntersection,ZodTuple:ZodTuple,ZodRecord:ZodRecord,ZodMap:ZodMap,ZodSet:ZodSet,ZodFunction:ZodFunction,ZodLazy:ZodLazy,ZodLiteral:ZodLiteral,ZodEnum:ZodEnum,ZodNativeEnum:ZodNativeEnum,ZodPromise:ZodPromise,ZodEffects:ZodEffects,ZodTransformer:ZodEffects,ZodOptional:ZodOptional,ZodNullable:ZodNullable,ZodDefault:ZodDefault,ZodCatch:ZodCatch,ZodNaN:ZodNaN,BRAND:z,ZodBranded:ZodBranded,ZodPipeline:ZodPipeline,ZodReadonly:ZodReadonly,custom:custom,Schema:ZodType,ZodSchema:ZodType,late:W,get ZodFirstPartyTypeKind(){return eM},coerce:{string:m=>ZodString.create({...m,coerce:!0}),number:m=>ZodNumber.create({...m,coerce:!0}),boolean:m=>ZodBoolean.create({...m,coerce:!0}),bigint:m=>ZodBigInt.create({...m,coerce:!0}),date:m=>ZodDate.create({...m,coerce:!0})},any:ei,array:ec,bigint:X,boolean:ee,date:et,discriminatedUnion:ep,effect:ew,enum:eD,function:e$,instanceof:(m,$={message:`Input not instance of ${m.name}`})=>custom($=>$ instanceof m,$),intersection:em,lazy:ey,literal:ex,map:eb,nan:J,nativeEnum:eE,never:es,null:en,nullable:eC,number:G,object:eu,oboolean:()=>ee().optional(),onumber:()=>G().optional(),optional:eP,ostring:()=>H().optional(),pipeline:eT,preprocess:eS,promise:e_,record:eg,set:ev,strictObject:ed,string:H,symbol:ea,transformer:ew,tuple:eh,undefined:er,union:ef,unknown:eo,void:el,NEVER:k,ZodIssueCode:S,quotelessJson:m=>{let $=JSON.stringify(m,null,2);return $.replace(/"([^"]+)":/g,"$1:")},ZodError:ZodError})}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/912-90f07824ac578d0d.js b/web/_next/static/chunks/912-90f07824ac578d0d.js new file mode 100644 index 00000000..7774e5dd --- /dev/null +++ b/web/_next/static/chunks/912-90f07824ac578d0d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[912],{27408:function(e,r,t){t.d(r,{z:function(){return s}});var a=t(57437),n=t(54487),o=t(96061),i=t(2265);let l=(0,n.xH)({button:(0,o.j)(["UI-Button__button","shadow-sm whitespace-nowrap font-semibold rounded-[--radius]","inline-flex items-center text-white transition ease-in duration-100 text-center text-base justify-center","focus-visible:outline-none focus-visible:ring-2 ring-offset-1 focus-visible:ring-[--ring]"],{variants:{intent:{primary:"bg-brand-500 hover:bg-brand-600 active:bg-brand-700 border border-transparent","primary-outline":"text-brand-500 border border-brand-200 bg-transparent hover:border-brand-500 hover:bg-brand-500 active:bg-brand-600 hover:text-white __UI__Dark__ dark:text-brand-300 dark:hover:border-brand-500 dark:hover:text-white","primary-subtle":"text-brand-600 border border-brand-500 bg-brand-50 border-transparent hover:bg-brand-100 active:bg-brand-50 __UI__Dark__ dark:text-brand-300 dark:bg-opacity-10 dark:hover:bg-opacity-5","primary-link":"shadow-none text-brand-500 border border-transparent bg-transparent hover:underline active:text-brand-700 __UI__Dark__ dark:text-brand-300","primary-basic":"shadow-none text-brand-500 border border-transparent bg-transparent hover:text-brand-600 active:text-brand-700 __UI__Dark__ dark:text-brand-300 dark:active:text-brand-200",warning:"bg-orange-500 hover:bg-orange-600 active:bg-orange-700 border border-transparent","warning-outline":"text-orange-500 border border-orange-200 bg-transparent hover:bg-orange-500 active:bg-orange-600 hover:text-white __UI__Dark__ dark:text-orange-300 dark:hover:border-orange-500 dark:hover:text-white","warning-subtle":"text-orange-600 border border-orange-500 bg-orange-50 border-transparent hover:bg-orange-100 active:bg-orange-50 __UI__Dark__ dark:text-orange-300 dark:bg-opacity-10 dark:hover:bg-opacity-5","warning-link":"shadow-none text-orange-500 border border-transparent bg-transparent hover:underline active:text-orange-700 __UI__Dark__ dark:text-orange-300","warning-basic":"shadow-none text-orange-500 border border-transparent bg-transparent hover:text-orange-600 active:text-orange-700 __UI__Dark__ dark:text-orange-300 dark:active:text-orange-200",success:"bg-green-500 hover:bg-green-600 active:bg-green-700 border border-transparent","success-outline":"text-green-500 border border-green-200 bg-transparent hover:bg-green-500 active:bg-green-600 hover:text-white __UI__Dark__ dark:text-green-300 dark:hover:border-green-500 dark:hover:text-white","success-subtle":"text-green-600 border border-green-500 bg-green-50 border-transparent hover:bg-green-100 active:bg-green-50 __UI__Dark__ dark:text-green-300 dark:bg-opacity-10 dark:hover:bg-opacity-5","success-link":"shadow-none text-green-500 border border-transparent bg-transparent hover:underline active:text-green-700 __UI__Dark__ dark:text-green-300","success-basic":"shadow-none text-green-500 border border-transparent bg-transparent hover:text-green-600 active:text-green-700 __UI__Dark__ dark:text-green-300 dark:active:text-green-200",alert:"bg-red-500 hover:bg-red-600 active:bg-red-700 border border-transparent","alert-outline":"text-red-500 border border-red-200 bg-transparent hover:bg-red-500 active:bg-red-600 hover:text-white __UI__Dark__ dark:text-red-300 dark:hover:border-red-500 dark:hover:text-white","alert-subtle":"text-red-600 border border-red-500 bg-red-50 border-transparent hover:bg-red-100 active:bg-red-50 __UI__Dark__ dark:text-red-300 dark:bg-opacity-10 dark:hover:bg-opacity-5","alert-link":"shadow-none text-red-500 border border-transparent bg-transparent hover:underline active:text-red-700 __UI__Dark__ dark:text-red-300","alert-basic":"shadow-none text-red-500 border border-transparent bg-transparent hover:text-red-600 active:text-red-700 __UI__Dark__ dark:text-red-300 dark:active:text-red-200",gray:"bg-gray-500 hover:bg-gray-600 active:bg-gray-700 border border-transparent","gray-outline":"text-gray-600 border border-gray-200 bg-transparent hover:bg-gray-100 active:bg-gray-200 __UI__DARK__ dark:text-gray-300 dark:border-gray-500 dark:hover:bg-gray-500 dark:active:bg-gray-500 dark:hover:text-gray-100","gray-subtle":"text-gray-600 border border-gray-500 bg-gray-50 border-transparent hover:bg-gray-100 active:bg-gray-50 __UI__Dark__ dark:text-gray-300 dark:bg-opacity-10 dark:hover:bg-opacity-5","gray-link":"shadow-none text-gray-500 border border-transparent bg-transparent hover:underline active:text-gray-700 __UI__Dark__ dark:text-gray-300","gray-basic":"shadow-none text-gray-500 border border-transparent bg-transparent hover:text-gray-600 active:text-gray-700 __UI__Dark__ dark:text-gray-300 dark:active:text-gray-200",white:"text-black bg-white hover:bg-opacity-80 active:bg-bg-gray-200 border border-transparent","white-outline":"text-white border border-gray-200 bg-transparent hover:bg-white hover:text-black active:bg-gray-100 active:text-black","white-subtle":"text-white bg-black bg-opacity-20 hover:bg-opacity-25 active:bg-bg-opacity-30 border border-transparent","white-link":"shadow-none text-white border border-transparent bg-transparent hover:underline active:text-gray-200","white-basic":"shadow-none text-white border border-transparent bg-transparent hover:text-white-200 active:text-white-300"},rounded:{true:"rounded-[999px]",false:null},isUppercase:{true:"uppercase",false:null},isDisabled:{true:"opacity-50 pointer-events-none",false:null},contentWidth:{true:"w-fit",false:null},size:{xs:"text-sm h-6 px-2",sm:"text-sm h-8 px-3",md:"h-10 px-4",lg:"h-12 px-6",xl:"text-xl h-14 px-8"}},defaultVariants:{intent:"primary",size:"md"}})}),s=i.forwardRef((e,r)=>{let{children:t,size:o,className:i,rounded:s=!1,contentWidth:d=!1,intent:c,leftIcon:u,rightIcon:b,iconSpacing:g="0.5rem",isUppercase:h,isLoading:x,isDisabled:m,iconClassName:v,...p}=e,_=(0,a.jsxs)(a.Fragment,{children:[u&&(0,a.jsx)("span",{className:(0,n.cn)("inline-flex self-center flex-shrink-0",v),style:{marginInlineEnd:g},children:u}),t,b&&(0,a.jsx)("span",{className:(0,n.cn)("inline-flex self-center flex-shrink-0",v),style:{marginInlineStart:g},children:b})]});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("button",{type:"button",className:(0,n.cn)(l.button({size:o,intent:c,rounded:s,contentWidth:d,isUppercase:h,isDisabled:m||x}),i),...p,ref:r,children:x?(0,a.jsx)("svg",{width:"20",height:"20",fill:"currentColor",className:"animate-spin",viewBox:"0 0 1792 1792",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M526 1394q0 53-37.5 90.5t-90.5 37.5q-52 0-90-38t-38-90q0-53 37.5-90.5t90.5-37.5 90.5 37.5 37.5 90.5zm498 206q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm-704-704q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm1202 498q0 52-38 90t-90 38q-53 0-90.5-37.5t-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm-964-996q0 66-47 113t-113 47-113-47-47-113 47-113 113-47 113 47 47 113zm1170 498q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm-640-704q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm530 206q0 93-66 158.5t-158 65.5q-93 0-158.5-65.5t-65.5-158.5q0-92 65.5-158t158.5-66q92 0 158 66t66 158z"})}):_})})});s.displayName="Button"},97622:function(e,r,t){t.d(r,{zx:function(){return a.z},PZ:function(){return c},hU:function(){return d}});var a=t(27408),n=t(57437),o=t(54487),i=t(96061),l=t(2265);let s=(0,o.xH)({iconButton:(0,i.j)("UI-IconButton__iconButton p-0",{variants:{size:{xs:"text-xl h-6 w-6",sm:"text-xl h-8 w-8",md:"text-2xl h-10 w-10",lg:"text-3xl h-12 w-12",xl:"text-4xl h-14 w-14"}},defaultVariants:{size:"md"}})}),d=l.forwardRef((e,r)=>{let{children:t,className:i,icon:l,size:d,iconButtonClassName:c,...u}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.z,{className:(0,o.cn)(s.iconButton({size:d}),c,i),...u,ref:r,children:l})})});d.displayName="IconButton";let c=l.forwardRef((e,r)=>{let{children:t,className:a,icon:i,size:l="sm",...s}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(d,{type:"button",intent:"gray-outline",size:l,className:(0,o.cn)("rounded-full text-2xl flex-none",a),icon:(0,n.jsx)("span",{children:(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor",children:(0,n.jsx)("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})})}),...s,ref:r})})});c.displayName="CloseButton"},54487:function(e,r,t){t.d(r,{QN:function(){return d},JP:function(){return UIProvider},cn:function(){return cn},Fm:function(){return createPolymorphicComponent},xH:function(){return defineStyleAnatomy},C2:function(){return getChildDisplayName},lq:function(){return mergeRefs},OR:function(){return useEventListener},LI:function(){return c},ac:function(){return useMediaQuery},k9:function(){return useUILocaleConfig}});var a=t(57437),n=t(2265);let o={locale:"en",countryLocale:"en-US",country:"us"},i=n.createContext(o),useUILocaleConfig=()=>n.useContext(i);useUILocaleConfig.displayName="useUILocaleConfig";let UIProvider=e=>{let{children:r,config:t}=e,n={...o,...t};return(0,a.jsx)(i.Provider,{value:n,children:r})};function defineStyleAnatomy(e){return e}UIProvider.displayName="UIProvider";var l=t(57042),s=t(23986);function cn(){for(var e=arguments.length,r=Array(e),t=0;t{var r;return null==e?void 0:null===(r=e.type)||void 0===r?void 0:r.displayName};function mergeRefs(){for(var e=arguments.length,r=Array(e),t=0;t{r.forEach(e=>{e&&("function"==typeof e?e(a.current):e.current=a.current)})},[r]),a}let d={undo:e=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:cn(null==e?void 0:e.className),children:[(0,a.jsx)("path",{d:"M9 14 4 9l5-5"}),(0,a.jsx)("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]})};function useEventListener(e,r,t,a){let o=(0,n.useRef)(r);c(()=>{o.current=r},[r]),(0,n.useEffect)(()=>{var r;let n=null!==(r=null==t?void 0:t.current)&&void 0!==r?r:window;if(!(n&&n.addEventListener))return;let listener=e=>o.current(e);return n.addEventListener(e,listener,a),()=>{n.removeEventListener(e,listener,a)}},[e,t,a])}let c=n.useLayoutEffect;function attachMediaListener(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch(t){return e.addListener(r),()=>e.removeListener(r)}}function getInitialValue(e,r){return"boolean"==typeof r?r:"matchMedia"in window&&window.matchMedia(e).matches}function useMediaQuery(e,r){let{getInitialValueInEffect:t}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{getInitialValueInEffect:!0},[a,o]=(0,n.useState)(t?r:getInitialValue(e,r)),i=(0,n.useRef)();return(0,n.useEffect)(()=>{if("matchMedia"in window)return i.current=window.matchMedia(e),o(i.current.matches),attachMediaListener(i.current,e=>o(e.matches))},[e]),a}},33538:function(e,r,t){t.d(r,{dy:function(){return g},u_:function(){return u}});var a=t(57437),n=t(9805),o=t(32240),i=t(54487),l=t(96061),s=t(2265),d=t(97622);let c=(0,i.xH)({title:(0,l.j)(["UI-Modal__title","text-lg font-medium leading-6"]),panel:(0,l.j)(["UI-Modal__panel","w-full transform overflow-hidden rounded-none sm:rounded-[--radius] p-6 text-left align-middle shadow-xl transition-all relative","bg-[--paper]"],{variants:{size:{sm:"sm:max-w-md",md:"sm:max-w-lg",lg:"sm:max-w-xl",xl:"sm:max-w-2xl","2xl":"sm:max-w-4xl"}},defaultVariants:{size:"md"}}),body:(0,l.j)("UI-Modal__body mt-2"),backdrop:(0,l.j)(["UI-Modal__backdrop","fixed inset-0 bg-black bg-opacity-25 dark:bg-opacity-70"]),outsideContainer:(0,l.j)(["UI-Modal__outsideContainer","flex min-h-full justify-center p-0 sm:p-4 text-center"],{variants:{mobilePlacement:{initial:"items-center",bottom:"items-end sm:items-center",top:"items-start sm:items-center"}},defaultVariants:{mobilePlacement:"bottom"}}),closeButton:(0,l.j)(["UI-Modal__closeButton","absolute right-2 top-2"])}),u=s.forwardRef((e,r)=>{let{children:t,className:l,isOpen:u,onClose:b,title:g,size:h,panelClassName:x,titleClassName:m,closeButtonClassName:v,outsideContainerClassName:p,bodyClassName:_,backdropClassName:f,isClosable:y,mobilePlacement:w,closeButtonIntent:k="gray-outline",...I}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n.u,{appear:!0,show:u,as:s.Fragment,children:(0,a.jsxs)(o.V,{as:"div",className:(0,i.cn)("relative z-50"),onClose:()=>b?b():()=>{},children:[(0,a.jsx)(n.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:(0,i.cn)(c.backdrop(),f)})}),(0,a.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,a.jsx)("div",{className:(0,i.cn)(c.outsideContainer({mobilePlacement:w}),p),children:(0,a.jsx)(n.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,a.jsxs)(o.V.Panel,{className:(0,i.cn)(c.panel({size:h}),x,l),...I,children:[g&&(0,a.jsx)(o.V.Title,{as:"div",className:(0,i.cn)(c.title(),m),children:g}),y&&(0,a.jsx)(d.PZ,{onClick:b,className:(0,i.cn)(c.closeButton(),v),intent:k}),(0,a.jsx)("div",{className:(0,i.cn)(c.body(),_),children:t})]})})})})]})})})});u.displayName="Modal";let b=(0,i.xH)({panel:(0,l.j)(["UI-Drawer__panel"],{variants:{size:{md:"",lg:"",xl:"","2xl":"",full:""},placement:{top:"",right:"",left:"",bottom:""}},defaultVariants:{size:"md",placement:"right"}}),container:(0,l.j)(["UI-Drawer__container","flex h-full flex-col overflow-y-auto bg-[--paper] shadow-xl"]),backdrop:(0,l.j)(["UI-Drawer__backdrop","fixed inset-0 bg-black bg-opacity-70 transition-opacity"]),body:(0,l.j)(["UI-Drawer__body","relative flex-1 pl-4 pr-4 pb-4 sm:pl-6 sm:pr-6 sm:pb-6"]),header:(0,l.j)(["UI-Drawer__header","flex w-full justify-between items-center p-4 sm:p-6 pb-0 pt-6"]),title:(0,l.j)(["UI-Drawer__title","text-lg font-semibold"]),closeButton:(0,l.j)(["UI-Drawer__closeButton"])}),g=s.forwardRef((e,r)=>{let{children:t,className:l,size:c="md",placement:u="right",isClosable:g=!1,isOpen:h,onClose:x,title:m,closeButtonClassName:v,backdropClassName:p,panelClassName:_,titleClassName:f,headerClassName:y,bodyClassName:w,containerClassName:k,closeButtonIntent:I="gray-outline",...E}=e,N={enter:"transform transition ease-in-out duration-500 sm:duration-500",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-500",leaveFrom:"translate-x-0",leaveTo:"translate-x-full"};return"bottom"==u?N={...N,enterFrom:"translate-y-full",enterTo:"translate-y-0",leaveFrom:"translate-y-0",leaveTo:"translate-y-full"}:"top"==u?N={...N,enterFrom:"-translate-y-full",enterTo:"translate-y-0",leaveFrom:"translate-y-0",leaveTo:"-translate-y-full"}:"left"==u&&(N={...N,enterFrom:"-translate-x-full",enterTo:"translate-x-0",leaveFrom:"translate-x-0",leaveTo:"-translate-x-full"}),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n.u.Root,{show:h,as:s.Fragment,children:(0,a.jsxs)(o.V,{as:"div",className:(0,i.cn)("relative z-50"),onClose:x,...E,ref:r,children:[(0,a.jsx)(n.u.Child,{as:s.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,a.jsx)("div",{className:(0,i.cn)(b.backdrop(),p)})}),(0,a.jsx)("div",{className:"fixed inset-0 overflow-hidden",children:(0,a.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,a.jsx)("div",{className:(0,i.cn)("pointer-events-none fixed flex",{"inset-y-0 max-w-full":"right"==u||"left"==u,"inset-x-0":"top"==u||"bottom"==u,"pl-0":"right"==u,"right-0":"right"==u,"left-0":"left"==u,"top-0":"top"==u,"bottom-0":"bottom"==u}),children:(0,a.jsx)(n.u.Child,{as:s.Fragment,...N,children:(0,a.jsx)(o.V.Panel,{className:(0,i.cn)("pointer-events-auto relative",{"w-screen":"right"==u||"left"==u||"top"==u||"bottom"==u,"max-w-md":"md"==c&&("right"==u||"left"==u),"max-w-2xl":"lg"==c&&("right"==u||"left"==u),"max-w-5xl":"xl"==c&&("right"==u||"left"==u),"max-w-7xl":"2xl"==c&&("right"==u||"left"==u),"max-w-full":"full"==c&&("right"==u||"left"==u),"h-[100vh] max-h-[50vh]":"md"==c&&("bottom"==u||"top"==u),"h-[100vh] max-h-[70vh]":"lg"==c&&("bottom"==u||"top"==u),"h-[100vh] max-h-[80vh]":"xl"==c&&("bottom"==u||"top"==u),"h-[100vh] max-h-[90vh]":"2xl"==c&&("bottom"==u||"top"==u),"h-[100vh] min-h-screen":"full"==c&&("bottom"==u||"top"==u)},_,l),children:(0,a.jsxs)("div",{className:(0,i.cn)(b.container(),k),children:[(0,a.jsxs)("div",{className:(0,i.cn)(b.header(),y),children:[(0,a.jsx)(o.V.Title,{className:(0,i.cn)(b.title(),f),children:m}),g&&(0,a.jsx)(d.PZ,{onClick:()=>x(),className:(0,i.cn)(v),intent:I})]}),(0,a.jsx)("div",{className:(0,i.cn)(b.body(),w),children:t})]})})})})})})]})})})});g.displayName="Drawer"},99326:function(e,r,t){t.d(r,{$:function(){return a}});let a="http://127.0.0.1:43210/api/v1"},57638:function(e,r,t){var a,n,o,i;t.d(r,{E:function(){return a},f:function(){return n}}),(o=a||(a={})).STATUS="/status",o.LOGIN="/auth/login",o.LOGOUT="/auth/logout",o.SETTINGS="/settings",o.START_MEDIA_PLAYER="/media-player/start",o.OPEN_IN_EXPLORER="/open-in-explorer",o.PLAY_VIDEO="/media-player/play",o.ANILIST_LIST_ENTRY="/anilist/list-entry",o.ANILIST_LIST_ENTRY_PROGRESS="/anilist/list-entry/progress",o.ANILIST_COLLECTION="/anilist/collection",o.ANILIST_MEDIA_DETAILS="/anilist/media-details/{id}",o.EMPTY_DIRECTORIES="/library/empty-directories",o.LOCAL_FILES="/library/local-files",o.LIBRARY_COLLECTION="/library/collection",o.MISSING_EPISODES="/library/missing-episodes",o.SCAN_LIBRARY="/library/scan",o.LOCAL_FILE="/library/local-file",o.MEDIA_ENTRY="/library/media-entry/{id}",o.MEDIA_ENTRY_SUGGESTIONS="/library/media-entry/suggestions",o.MEDIA_ENTRY_MANUAL_MATCH="/library/media-entry/manual-match",o.MEDIA_ENTRY_BULK_ACTION="/library/media-entry/bulk-action",o.OPEN_MEDIA_ENTRY_IN_EXPLORER="/library/media-entry/open-in-explorer",o.NYAA_SEARCH="/nyaa/search",o.DOWNLOAD="/download",o.TORRENTS="/torrents",o.TORRENT="/torrent",(i=n||(n={})).SCAN_PROGRESS="scan-progress",i.REFRESHED_ANILIST_COLLECTION="refreshed-anilist-collection",i.MEDIA_PLAYER_TRACKING_STOPPED="media-player-tracking-stopped",i.MEDIA_PLAYER_TRACKING_STARTED="media-player-tracking-started",i.MEDIA_PLAYER_VIDEO_COMPLETED="media-player-video-completed",i.MEDIA_PLAYER_PLAYBACK_STATUS="media-player-playback-status"},51472:function(e,r,t){t.d(r,{$U:function(){return useSeaMutation},E6:function(){return buildSeaQuery},tZ:function(){return useSeaQuery}});var a=t(29222),n=t(99326),o=t(23588),i=t(94152),l=t(5925),s=t(2265);async function buildSeaQuery(e){let{endpoint:r,method:t,data:o,params:i}=e,l=await (0,a.Z)({url:n.$+r,method:t,data:o,params:i}),s=_handleSeaResponse(l.data);return s.data}function useSeaMutation(e){let{endpoint:r,method:t="post",...a}=e;return(0,o.D)({onError:e=>{var r,t;l.ZP.error(_handleSeaError(null===(t=e.response)||void 0===t?void 0:null===(r=t.data)||void 0===r?void 0:r.error))},mutationFn:async e=>buildSeaQuery({endpoint:r,method:t,data:e}),...a})}function useSeaQuery(e){let{endpoint:r,method:t="get",params:a,data:n,...o}=e,d=(0,i.a)({queryFn:async()=>buildSeaQuery({endpoint:r,method:t,params:a,data:a}),...o});return(0,s.useEffect)(()=>{if(d.isError){var e,r,t;l.ZP.error(_handleSeaError(null===(t=d.error)||void 0===t?void 0:null===(r=t.response)||void 0===r?void 0:null===(e=r.data)||void 0===e?void 0:e.error))}},[d.error,d.isError]),d}function _handleSeaError(e){if(!e)return"";try{return JSON.parse(e),"AniList error"}catch(r){return"Error: "+e}}function _handleSeaResponse(e){return"object"==typeof e&&e&&"error"in e&&"string"==typeof e.error?{data:void 0,error:e.error}:"object"==typeof e&&e&&"data"in e?{data:e.data,error:void 0}:{data:void 0,error:"No response from the server"}}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/999-20d7a2d26818c1ce.js b/web/_next/static/chunks/999-20d7a2d26818c1ce.js new file mode 100644 index 00000000..f4a54f7c --- /dev/null +++ b/web/_next/static/chunks/999-20d7a2d26818c1ce.js @@ -0,0 +1,4 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[999],{65491:function(L,A,k){"use strict";k.d(A,{w_:function(){return GenIcon}});var z=k(2265),W={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},V=z.createContext&&z.createContext(W),__assign=function(){return(__assign=Object.assign||function(L){for(var A,k=1,z=arguments.length;kA.indexOf(z)&&(k[z]=L[z]);if(null!=L&&"function"==typeof Object.getOwnPropertySymbols)for(var W=0,z=Object.getOwnPropertySymbols(L);WA.indexOf(z[W])&&Object.prototype.propertyIsEnumerable.call(L,z[W])&&(k[z[W]]=L[z[W]]);return k};function Tree2Element(L){return L&&L.map(function(L,A){return z.createElement(L.tag,__assign({key:A},L.attr),Tree2Element(L.child))})}function GenIcon(L){return function(A){return z.createElement(IconBase,__assign({attr:__assign({},L.attr)},A),Tree2Element(L.child))}}function IconBase(L){var elem=function(A){var k,W=L.attr,V=L.size,B=L.title,q=__rest(L,["attr","size","title"]),K=V||A.size||"1em";return A.className&&(k=A.className),L.className&&(k=(k?k+" ":"")+L.className),z.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},A.attr,W,q,{className:k,style:__assign(__assign({color:L.color||A.color},A.style),L.style),height:K,width:K,xmlns:"http://www.w3.org/2000/svg"}),B&&z.createElement("title",null,B),L.children)};return void 0!==V?z.createElement(V.Consumer,null,function(L){return elem(L)}):elem(W)}},19524:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"addLocale",{enumerable:!0,get:function(){return addLocale}}),k(43997);let addLocale=function(L){for(var A=arguments.length,k=Array(A>1?A-1:0),z=1;z{})}function isModifiedEvent(L){let A=L.currentTarget,k=A.getAttribute("target");return k&&"_self"!==k||L.metaKey||L.ctrlKey||L.shiftKey||L.altKey||L.nativeEvent&&2===L.nativeEvent.which}function linkClicked(L,A,k,z,V,q,K,G,J,ee){let{nodeName:et}=L.currentTarget,en="A"===et.toUpperCase();if(en&&(isModifiedEvent(L)||!J&&!(0,B.isLocalURL)(k)))return;L.preventDefault();let navigate=()=>{let L=null==K||K;"beforePopState"in A?A[V?"replace":"push"](k,z,{shallow:q,locale:G,scroll:L}):A[V?"replace":"push"](z||k,{forceOptimisticNavigation:!ee,scroll:L})};J?W.default.startTransition(navigate):navigate()}function formatStringOrUrl(L){return"string"==typeof L?L:(0,q.formatUrl)(L)}let el=W.default.forwardRef(function(L,A){let k,z;let{href:B,as:q,children:ei,prefetch:el=null,passHref:eu,replace:ea,shallow:es,scroll:ec,locale:ed,onClick:ef,onMouseEnter:ep,onTouchStart:em,legacyBehavior:eh=!1,...eg}=L;k=ei,eh&&("string"==typeof k||"number"==typeof k)&&(k=W.default.createElement("a",null,k));let ev=W.default.useContext(J.RouterContext),ey=W.default.useContext(ee.AppRouterContext),eb=null!=ev?ev:ey,eE=!ev,ew=!1!==el,eP=null===el?eo.PrefetchKind.AUTO:eo.PrefetchKind.FULL,{href:e_,as:eS}=W.default.useMemo(()=>{if(!ev){let L=formatStringOrUrl(B);return{href:L,as:q?formatStringOrUrl(q):L}}let[L,A]=(0,V.resolveHref)(ev,B,!0);return{href:L,as:q?(0,V.resolveHref)(ev,q):A||L}},[ev,B,q]),eO=W.default.useRef(e_),eR=W.default.useRef(eS);eh&&(z=W.default.Children.only(k));let eT=eh?z&&"object"==typeof z&&z.ref:A,[eN,eC,eM]=(0,et.useIntersection)({rootMargin:"200px"}),ex=W.default.useCallback(L=>{(eR.current!==eS||eO.current!==e_)&&(eM(),eR.current=eS,eO.current=e_),eN(L),eT&&("function"==typeof eT?eT(L):"object"==typeof eT&&(eT.current=L))},[eS,eT,e_,eM,eN]);W.default.useEffect(()=>{eb&&eC&&ew&&prefetch(eb,e_,eS,{locale:ed},{kind:eP},eE)},[eS,e_,eC,ed,ew,null==ev?void 0:ev.locale,eb,eE,eP]);let eL={ref:ex,onClick(L){eh||"function"!=typeof ef||ef(L),eh&&z.props&&"function"==typeof z.props.onClick&&z.props.onClick(L),eb&&!L.defaultPrevented&&linkClicked(L,eb,e_,eS,ea,es,ec,ed,eE,ew)},onMouseEnter(L){eh||"function"!=typeof ep||ep(L),eh&&z.props&&"function"==typeof z.props.onMouseEnter&&z.props.onMouseEnter(L),eb&&(ew||!eE)&&prefetch(eb,e_,eS,{locale:ed,priority:!0,bypassPrefetchedCheck:!0},{kind:eP},eE)},onTouchStart(L){eh||"function"!=typeof em||em(L),eh&&z.props&&"function"==typeof z.props.onTouchStart&&z.props.onTouchStart(L),eb&&(ew||!eE)&&prefetch(eb,e_,eS,{locale:ed,priority:!0,bypassPrefetchedCheck:!0},{kind:eP},eE)}};if((0,K.isAbsoluteUrl)(eS))eL.href=eS;else if(!eh||eu||"a"===z.type&&!("href"in z.props)){let L=void 0!==ed?ed:null==ev?void 0:ev.locale,A=(null==ev?void 0:ev.isLocaleDomain)&&(0,en.getDomainLocale)(eS,L,null==ev?void 0:ev.locales,null==ev?void 0:ev.domainLocales);eL.href=A||(0,er.addBasePath)((0,G.addLocale)(eS,L,null==ev?void 0:ev.defaultLocale))}return eh?W.default.cloneElement(z,eL):W.default.createElement("a",{...eg,...eL},k)}),eu=el;("function"==typeof A.default||"object"==typeof A.default&&null!==A.default)&&void 0===A.default.__esModule&&(Object.defineProperty(A.default,"__esModule",{value:!0}),Object.assign(A.default,A),L.exports=A.default)},62389:function(L,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),function(L,A){for(var k in A)Object.defineProperty(L,k,{enumerable:!0,get:A[k]})}(A,{requestIdleCallback:function(){return k},cancelIdleCallback:function(){return z}});let k="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(L){let A=Date.now();return self.setTimeout(function(){L({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-A))}})},1)},z="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(L){return clearTimeout(L)};("function"==typeof A.default||"object"==typeof A.default&&null!==A.default)&&void 0===A.default.__esModule&&(Object.defineProperty(A.default,"__esModule",{value:!0}),Object.assign(A.default,A),L.exports=A.default)},99121:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"resolveHref",{enumerable:!0,get:function(){return resolveHref}});let z=k(55991),W=k(98130),V=k(58137),B=k(36681),q=k(43997),K=k(68664),G=k(29289),J=k(20948);function resolveHref(L,A,k){let ee;let et="string"==typeof A?A:(0,W.formatWithValidation)(A),en=et.match(/^[a-zA-Z]{1,}:\/\//),er=en?et.slice(en[0].length):et,eo=er.split("?",1);if((eo[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+et+"' passed to next/router in page: '"+L.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let A=(0,B.normalizeRepeatedSlashes)(er);et=(en?en[0]:"")+A}if(!(0,K.isLocalURL)(et))return k?[et]:et;try{ee=new URL(et.startsWith("#")?L.asPath:L.pathname,"http://n")}catch(L){ee=new URL("/","http://n")}try{let L=new URL(et,ee);L.pathname=(0,q.normalizePathTrailingSlash)(L.pathname);let A="";if((0,G.isDynamicRoute)(L.pathname)&&L.searchParams&&k){let k=(0,z.searchParamsToUrlQuery)(L.searchParams),{result:B,params:q}=(0,J.interpolateAs)(L.pathname,L.pathname,k);B&&(A=(0,W.formatWithValidation)({pathname:B,hash:L.hash,query:(0,V.omit)(k,q)}))}let B=L.origin===ee.origin?L.href.slice(L.origin.length):L.href;return k?[B,A||B]:B}catch(L){return k?[et]:et}}("function"==typeof A.default||"object"==typeof A.default&&null!==A.default)&&void 0===A.default.__esModule&&(Object.defineProperty(A.default,"__esModule",{value:!0}),Object.assign(A.default,A),L.exports=A.default)},71581:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});let z=k(2265),W=k(62389),V="function"==typeof IntersectionObserver,B=new Map,q=[];function createObserver(L){let A;let k={root:L.root||null,margin:L.rootMargin||""},z=q.find(L=>L.root===k.root&&L.margin===k.margin);if(z&&(A=B.get(z)))return A;let W=new Map,V=new IntersectionObserver(L=>{L.forEach(L=>{let A=W.get(L.target),k=L.isIntersecting||L.intersectionRatio>0;A&&k&&A(k)})},L);return A={id:k,observer:V,elements:W},q.push(k),B.set(k,A),A}function observe(L,A,k){let{id:z,observer:W,elements:V}=createObserver(k);return V.set(L,A),W.observe(L),function(){if(V.delete(L),W.unobserve(L),0===V.size){W.disconnect(),B.delete(z);let L=q.findIndex(L=>L.root===z.root&&L.margin===z.margin);L>-1&&q.splice(L,1)}}}function useIntersection(L){let{rootRef:A,rootMargin:k,disabled:B}=L,q=B||!V,[K,G]=(0,z.useState)(!1),J=(0,z.useRef)(null),ee=(0,z.useCallback)(L=>{J.current=L},[]);(0,z.useEffect)(()=>{if(V){if(q||K)return;let L=J.current;if(L&&L.tagName){let z=observe(L,L=>L&&G(L),{root:null==A?void 0:A.current,rootMargin:k});return z}}else if(!K){let L=(0,W.requestIdleCallback)(()=>G(!0));return()=>(0,W.cancelIdleCallback)(L)}},[q,k,A,K,J.current]);let et=(0,z.useCallback)(()=>{G(!1)},[]);return[ee,K,et]}("function"==typeof A.default||"object"==typeof A.default&&null!==A.default)&&void 0===A.default.__esModule&&(Object.defineProperty(A.default,"__esModule",{value:!0}),Object.assign(A.default,A),L.exports=A.default)},24910:function(L,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"escapeStringRegexp",{enumerable:!0,get:function(){return escapeStringRegexp}});let k=/[|\\{}()[\]^$+*?.-]/,z=/[|\\{}()[\]^$+*?.-]/g;function escapeStringRegexp(L){return k.test(L)?L.replace(z,"\\$&"):L}},36304:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"RouterContext",{enumerable:!0,get:function(){return V}});let z=k(21024),W=z._(k(2265)),V=W.default.createContext(null)},98130:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),function(L,A){for(var k in A)Object.defineProperty(L,k,{enumerable:!0,get:A[k]})}(A,{formatUrl:function(){return formatUrl},urlObjectKeys:function(){return B},formatWithValidation:function(){return formatWithValidation}});let z=k(68533),W=z._(k(55991)),V=/https?|ftp|gopher|file/;function formatUrl(L){let{auth:A,hostname:k}=L,z=L.protocol||"",B=L.pathname||"",q=L.hash||"",K=L.query||"",G=!1;A=A?encodeURIComponent(A).replace(/%3A/i,":")+"@":"",L.host?G=A+L.host:k&&(G=A+(~k.indexOf(":")?"["+k+"]":k),L.port&&(G+=":"+L.port)),K&&"object"==typeof K&&(K=String(W.urlQueryToSearchParams(K)));let J=L.search||K&&"?"+K||"";return z&&!z.endsWith(":")&&(z+=":"),L.slashes||(!z||V.test(z))&&!1!==G?(G="//"+(G||""),B&&"/"!==B[0]&&(B="/"+B)):G||(G=""),q&&"#"!==q[0]&&(q="#"+q),J&&"?"!==J[0]&&(J="?"+J),""+z+G+(B=B.replace(/[?#]/g,encodeURIComponent))+(J=J.replace("#","%23"))+q}let B=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function formatWithValidation(L){return formatUrl(L)}},29289:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),function(L,A){for(var k in A)Object.defineProperty(L,k,{enumerable:!0,get:A[k]})}(A,{getSortedRoutes:function(){return z.getSortedRoutes},isDynamicRoute:function(){return W.isDynamicRoute}});let z=k(39255),W=k(55321)},20948:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"interpolateAs",{enumerable:!0,get:function(){return interpolateAs}});let z=k(21670),W=k(44586);function interpolateAs(L,A,k){let V="",B=(0,W.getRouteRegex)(L),q=B.groups,K=(A!==L?(0,z.getRouteMatcher)(B)(A):"")||k;V=L;let G=Object.keys(q);return G.every(L=>{let A=K[L]||"",{repeat:k,optional:z}=q[L],W="["+(k?"...":"")+L+"]";return z&&(W=(A?"":"/")+"["+W+"]"),k&&!Array.isArray(A)&&(A=[A]),(z||L in K)&&(V=V.replace(W,k?A.map(L=>encodeURIComponent(L)).join("/"):encodeURIComponent(A))||"/")})||(V=""),{params:G,result:V}}},55321:function(L,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"isDynamicRoute",{enumerable:!0,get:function(){return isDynamicRoute}});let k=/\/\[[^/]+?\](?=\/|$)/;function isDynamicRoute(L){return k.test(L)}},68664:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"isLocalURL",{enumerable:!0,get:function(){return isLocalURL}});let z=k(36681),W=k(26746);function isLocalURL(L){if(!(0,z.isAbsoluteUrl)(L))return!0;try{let A=(0,z.getLocationOrigin)(),k=new URL(L,A);return k.origin===A&&(0,W.hasBasePath)(k.pathname)}catch(L){return!1}}},58137:function(L,A){"use strict";function omit(L,A){let k={};return Object.keys(L).forEach(z=>{A.includes(z)||(k[z]=L[z])}),k}Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"omit",{enumerable:!0,get:function(){return omit}})},55991:function(L,A){"use strict";function searchParamsToUrlQuery(L){let A={};return L.forEach((L,k)=>{void 0===A[k]?A[k]=L:Array.isArray(A[k])?A[k].push(L):A[k]=[A[k],L]}),A}function stringifyUrlQueryParam(L){return"string"!=typeof L&&("number"!=typeof L||isNaN(L))&&"boolean"!=typeof L?"":String(L)}function urlQueryToSearchParams(L){let A=new URLSearchParams;return Object.entries(L).forEach(L=>{let[k,z]=L;Array.isArray(z)?z.forEach(L=>A.append(k,stringifyUrlQueryParam(L))):A.set(k,stringifyUrlQueryParam(z))}),A}function assign(L){for(var A=arguments.length,k=Array(A>1?A-1:0),z=1;z{Array.from(A.keys()).forEach(A=>L.delete(A)),A.forEach((A,k)=>L.append(k,A))}),L}Object.defineProperty(A,"__esModule",{value:!0}),function(L,A){for(var k in A)Object.defineProperty(L,k,{enumerable:!0,get:A[k]})}(A,{searchParamsToUrlQuery:function(){return searchParamsToUrlQuery},urlQueryToSearchParams:function(){return urlQueryToSearchParams},assign:function(){return assign}})},21670:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"getRouteMatcher",{enumerable:!0,get:function(){return getRouteMatcher}});let z=k(36681);function getRouteMatcher(L){let{re:A,groups:k}=L;return L=>{let W=A.exec(L);if(!W)return!1;let decode=L=>{try{return decodeURIComponent(L)}catch(L){throw new z.DecodeError("failed to decode param")}},V={};return Object.keys(k).forEach(L=>{let A=k[L],z=W[A.pos];void 0!==z&&(V[L]=~z.indexOf("/")?z.split("/").map(L=>decode(L)):A.repeat?[decode(z)]:decode(z))}),V}}},44586:function(L,A,k){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),function(L,A){for(var k in A)Object.defineProperty(L,k,{enumerable:!0,get:A[k]})}(A,{getRouteRegex:function(){return getRouteRegex},getNamedRouteRegex:function(){return getNamedRouteRegex},getNamedMiddlewareRegex:function(){return getNamedMiddlewareRegex}});let z=k(84507),W=k(24910),V=k(39006);function parseParameter(L){let A=L.startsWith("[")&&L.endsWith("]");A&&(L=L.slice(1,-1));let k=L.startsWith("...");return k&&(L=L.slice(3)),{key:L,repeat:k,optional:A}}function getParametrizedRoute(L){let A=(0,V.removeTrailingSlash)(L).slice(1).split("/"),k={},B=1;return{parameterizedRoute:A.map(L=>{let A=z.INTERCEPTION_ROUTE_MARKERS.find(A=>L.startsWith(A)),V=L.match(/\[((?:\[.*\])|.+)\]/);if(A&&V){let{key:L,optional:z,repeat:q}=parseParameter(V[1]);return k[L]={pos:B++,repeat:q,optional:z},"/"+(0,W.escapeStringRegexp)(A)+"([^/]+?)"}if(!V)return"/"+(0,W.escapeStringRegexp)(L);{let{key:L,repeat:A,optional:z}=parseParameter(V[1]);return k[L]={pos:B++,repeat:A,optional:z},A?z?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:k}}function getRouteRegex(L){let{parameterizedRoute:A,groups:k}=getParametrizedRoute(L);return{re:RegExp("^"+A+"(?:/)?$"),groups:k}}function buildGetSafeRouteKey(){let L=0;return()=>{let A="",k=++L;for(;k>0;)A+=String.fromCharCode(97+(k-1)%26),k=Math.floor((k-1)/26);return A}}function getSafeKeyFromSegment(L){let{getSafeRouteKey:A,segment:k,routeKeys:z,keyPrefix:W}=L,{key:V,optional:B,repeat:q}=parseParameter(k),K=V.replace(/\W/g,"");W&&(K=""+W+K);let G=!1;return(0===K.length||K.length>30)&&(G=!0),isNaN(parseInt(K.slice(0,1)))||(G=!0),G&&(K=A()),W?z[K]=""+W+V:z[K]=""+V,q?B?"(?:/(?<"+K+">.+?))?":"/(?<"+K+">.+?)":"/(?<"+K+">[^/]+?)"}function getNamedParametrizedRoute(L,A){let k=(0,V.removeTrailingSlash)(L).slice(1).split("/"),B=buildGetSafeRouteKey(),q={};return{namedParameterizedRoute:k.map(L=>{let k=z.INTERCEPTION_ROUTE_MARKERS.some(A=>L.startsWith(A)),V=L.match(/\[((?:\[.*\])|.+)\]/);return k&&V?getSafeKeyFromSegment({getSafeRouteKey:B,segment:V[1],routeKeys:q,keyPrefix:A?"nxtI":void 0}):V?getSafeKeyFromSegment({getSafeRouteKey:B,segment:V[1],routeKeys:q,keyPrefix:A?"nxtP":void 0}):"/"+(0,W.escapeStringRegexp)(L)}).join(""),routeKeys:q}}function getNamedRouteRegex(L,A){let k=getNamedParametrizedRoute(L,A);return{...getRouteRegex(L),namedRegex:"^"+k.namedParameterizedRoute+"(?:/)?$",routeKeys:k.routeKeys}}function getNamedMiddlewareRegex(L,A){let{parameterizedRoute:k}=getParametrizedRoute(L),{catchAll:z=!0}=A;if("/"===k)return{namedRegex:"^/"+(z?".*":"")+"$"};let{namedParameterizedRoute:W}=getNamedParametrizedRoute(L,!1);return{namedRegex:"^"+W+(z?"(?:(/.*)?)":"")+"$"}}},39255:function(L,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),Object.defineProperty(A,"getSortedRoutes",{enumerable:!0,get:function(){return getSortedRoutes}});let UrlNode=class UrlNode{insert(L){this._insert(L.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(L){void 0===L&&(L="/");let A=[...this.children.keys()].sort();null!==this.slugName&&A.splice(A.indexOf("[]"),1),null!==this.restSlugName&&A.splice(A.indexOf("[...]"),1),null!==this.optionalRestSlugName&&A.splice(A.indexOf("[[...]]"),1);let k=A.map(A=>this.children.get(A)._smoosh(""+L+A+"/")).reduce((L,A)=>[...L,...A],[]);if(null!==this.slugName&&k.push(...this.children.get("[]")._smoosh(L+"["+this.slugName+"]/")),!this.placeholder){let A="/"===L?"/":L.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+A+'" and "'+A+"[[..."+this.optionalRestSlugName+']]").');k.unshift(A)}return null!==this.restSlugName&&k.push(...this.children.get("[...]")._smoosh(L+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&k.push(...this.children.get("[[...]]")._smoosh(L+"[[..."+this.optionalRestSlugName+"]]/")),k}_insert(L,A,k){if(0===L.length){this.placeholder=!1;return}if(k)throw Error("Catch-all must be the last part of the URL.");let z=L[0];if(z.startsWith("[")&&z.endsWith("]")){let W=z.slice(1,-1),V=!1;if(W.startsWith("[")&&W.endsWith("]")&&(W=W.slice(1,-1),V=!0),W.startsWith("...")&&(W=W.substring(3),k=!0),W.startsWith("[")||W.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+W+"').");if(W.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+W+"').");function handleSlug(L,k){if(null!==L&&L!==k)throw Error("You cannot use different slug names for the same dynamic path ('"+L+"' !== '"+k+"').");A.forEach(L=>{if(L===k)throw Error('You cannot have the same slug name "'+k+'" repeat within a single dynamic path');if(L.replace(/\W/g,"")===z.replace(/\W/g,""))throw Error('You cannot have the slug names "'+L+'" and "'+k+'" differ only by non-word symbols within a single dynamic path')}),A.push(k)}if(k){if(V){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+L[0]+'" ).');handleSlug(this.optionalRestSlugName,W),this.optionalRestSlugName=W,z="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+L[0]+'").');handleSlug(this.restSlugName,W),this.restSlugName=W,z="[...]"}}else{if(V)throw Error('Optional route parameters are not yet supported ("'+L[0]+'").');handleSlug(this.slugName,W),this.slugName=W,z="[]"}}this.children.has(z)||this.children.set(z,new UrlNode),this.children.get(z)._insert(L.slice(1),A,k)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}};function getSortedRoutes(L){let A=new UrlNode;return L.forEach(L=>A.insert(L)),A.smoosh()}},36681:function(L,A){"use strict";Object.defineProperty(A,"__esModule",{value:!0}),function(L,A){for(var k in A)Object.defineProperty(L,k,{enumerable:!0,get:A[k]})}(A,{WEB_VITALS:function(){return k},execOnce:function(){return execOnce},isAbsoluteUrl:function(){return isAbsoluteUrl},getLocationOrigin:function(){return getLocationOrigin},getURL:function(){return getURL},getDisplayName:function(){return getDisplayName},isResSent:function(){return isResSent},normalizeRepeatedSlashes:function(){return normalizeRepeatedSlashes},loadGetInitialProps:function(){return loadGetInitialProps},SP:function(){return W},ST:function(){return V},DecodeError:function(){return DecodeError},NormalizeError:function(){return NormalizeError},PageNotFoundError:function(){return PageNotFoundError},MissingStaticPage:function(){return MissingStaticPage},MiddlewareNotFoundError:function(){return MiddlewareNotFoundError},stringifyError:function(){return stringifyError}});let k=["CLS","FCP","FID","INP","LCP","TTFB"];function execOnce(L){let A,k=!1;return function(){for(var z=arguments.length,W=Array(z),V=0;Vz.test(L);function getLocationOrigin(){let{protocol:L,hostname:A,port:k}=window.location;return L+"//"+A+(k?":"+k:"")}function getURL(){let{href:L}=window.location,A=getLocationOrigin();return L.substring(A.length)}function getDisplayName(L){return"string"==typeof L?L:L.displayName||L.name||"Unknown"}function isResSent(L){return L.finished||L.headersSent}function normalizeRepeatedSlashes(L){let A=L.split("?"),k=A[0];return k.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(A[1]?"?"+A.slice(1).join("?"):"")}async function loadGetInitialProps(L,A){let k=A.res||A.ctx&&A.ctx.res;if(!L.getInitialProps)return A.ctx&&A.Component?{pageProps:await loadGetInitialProps(A.Component,A.ctx)}:{};let z=await L.getInitialProps(A);if(k&&isResSent(k))return z;if(!z){let A='"'+getDisplayName(L)+'.getInitialProps()" should resolve to an object. But found "'+z+'" instead.';throw Error(A)}return z}let W="undefined"!=typeof performance,V=W&&["mark","measure","getEntriesByName"].every(L=>"function"==typeof performance[L]);let DecodeError=class DecodeError extends Error{};let NormalizeError=class NormalizeError extends Error{};let PageNotFoundError=class PageNotFoundError extends Error{constructor(L){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+L}};let MissingStaticPage=class MissingStaticPage extends Error{constructor(L,A){super(),this.message="Failed to load static file for page: "+L+" "+A}};let MiddlewareNotFoundError=class MiddlewareNotFoundError extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}};function stringifyError(L){return JSON.stringify({message:L.message,stack:L.stack})}},61396:function(L,A,k){L.exports=k(68326)},32240:function(L,A,k){"use strict";k.d(A,{V:function(){return eQ}});var z,W,V,B,q,K=k(2265),G=k.t(K,2),J=k(60597),ee=k(11931),et=k(46618),en=k(93850),er=k(35863),eo=k(75606),ei=k(48957),el=k(58227),eu=k(65410),ea=k(12950),es=k(27976),ec=((z=ec||{})[z.Forwards=0]="Forwards",z[z.Backwards=1]="Backwards",z);function use_tab_direction_n(){let L=(0,K.useRef)(0);return(0,es.s)("keydown",A=>{"Tab"===A.key&&(L.current=A.shiftKey?1:0)},!0),L}var ed=k(80634),ef=k(57728),ep=k(61858);function E(L,A,k,z){let W=(0,ep.E)(k);(0,K.useEffect)(()=>{function r(L){W.current(L)}return(L=null!=L?L:window).addEventListener(A,r,z),()=>L.removeEventListener(A,r,z)},[L,A,z])}var em=k(55195),eh=k(7566),eg=k(82769);function t(L){function e(){"loading"!==document.readyState&&(L(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}function c(L){let A=(0,ea.z)(L),k=(0,K.useRef)(!1);(0,K.useEffect)(()=>(k.current=!1,()=>{k.current=!0,(0,em.Y)(()=>{k.current&&A()})}),[A])}function P(L){if(!L)return new Set;if("function"==typeof L)return new Set(L());let A=new Set;for(let k of L.current)k.current instanceof HTMLElement&&A.add(k.current);return A}var ev=((W=ev||{})[W.None=1]="None",W[W.InitialFocus=2]="InitialFocus",W[W.TabLock=4]="TabLock",W[W.FocusLock=8]="FocusLock",W[W.RestoreFocus=16]="RestoreFocus",W[W.All=30]="All",W);function X(L,A){let k=(0,K.useRef)(null),z=(0,et.T)(k,A),{initialFocus:W,containers:V,features:B=30,...q}=L;(0,ei.H)()||(B=1);let G=(0,ef.i)(k);Y({ownerDocument:G},!!(16&B));let en=Z({ownerDocument:G,container:k,initialFocus:W},!!(2&B));$({ownerDocument:G,container:k,containers:V,previousActiveElement:en},!!(8&B));let er=use_tab_direction_n(),eo=(0,ea.z)(L=>{let A=k.current;A&&(0,J.E)(er.current,{[ec.Forwards]:()=>{(0,eu.jA)(A,eu.TO.First,{skipElements:[L.relatedTarget]})},[ec.Backwards]:()=>{(0,eu.jA)(A,eu.TO.Last,{skipElements:[L.relatedTarget]})}})}),es=(0,eg.G)(),ed=(0,K.useRef)(!1);return K.createElement(K.Fragment,null,!!(4&B)&&K.createElement(el._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:eo,features:el.A.Focusable}),(0,ee.sY)({ourProps:{ref:z,onKeyDown(L){"Tab"==L.key&&(ed.current=!0,es.requestAnimationFrame(()=>{ed.current=!1}))},onBlur(L){let A=P(V);k.current instanceof HTMLElement&&A.add(k.current);let z=L.relatedTarget;z instanceof HTMLElement&&"true"!==z.dataset.headlessuiFocusGuard&&(S(A,z)||(ed.current?(0,eu.jA)(k.current,(0,J.E)(er.current,{[ec.Forwards]:()=>eu.TO.Next,[ec.Backwards]:()=>eu.TO.Previous})|eu.TO.WrapAround,{relativeTo:L.target}):L.target instanceof HTMLElement&&(0,eu.C5)(L.target)))}},theirProps:q,defaultTag:"div",name:"FocusTrap"}),!!(4&B)&&K.createElement(el._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:eo,features:el.A.Focusable}))}let ey=Object.assign((0,ee.yV)(X),{features:ev}),eb=[];function Q(L=!0){let A=(0,K.useRef)(eb.slice());return(0,eh.q)(([L],[k])=>{!0===k&&!1===L&&(0,em.Y)(()=>{A.current.splice(0)}),!1===k&&!0===L&&(A.current=eb.slice())},[L,eb,A]),(0,ea.z)(()=>{var L;return null!=(L=A.current.find(L=>null!=L&&L.isConnected))?L:null})}function Y({ownerDocument:L},A){let k=Q(A);(0,eh.q)(()=>{A||(null==L?void 0:L.activeElement)===(null==L?void 0:L.body)&&(0,eu.C5)(k())},[A]),c(()=>{A&&(0,eu.C5)(k())})}function Z({ownerDocument:L,container:A,initialFocus:k},z){let W=(0,K.useRef)(null),V=(0,ed.t)();return(0,eh.q)(()=>{if(!z)return;let B=A.current;B&&(0,em.Y)(()=>{if(!V.current)return;let A=null==L?void 0:L.activeElement;if(null!=k&&k.current){if((null==k?void 0:k.current)===A){W.current=A;return}}else if(B.contains(A)){W.current=A;return}null!=k&&k.current?(0,eu.C5)(k.current):(0,eu.jA)(B,eu.TO.First)===eu.fE.Error&&console.warn("There are no focusable elements inside the "),W.current=null==L?void 0:L.activeElement})},[z]),W}function $({ownerDocument:L,container:A,containers:k,previousActiveElement:z},W){let V=(0,ed.t)();E(null==L?void 0:L.defaultView,"focus",L=>{if(!W||!V.current)return;let B=P(k);A.current instanceof HTMLElement&&B.add(A.current);let q=z.current;if(!q)return;let K=L.target;K&&K instanceof HTMLElement?S(B,K)?(z.current=K,(0,eu.C5)(K)):(L.preventDefault(),L.stopPropagation(),(0,eu.C5)(q)):(0,eu.C5)(z.current)},!0)}function S(L,A){for(let k of L)if(k.contains(A))return!0;return!1}t(()=>{function t(L){L.target instanceof HTMLElement&&L.target!==document.body&&eb[0]!==L.target&&(eb.unshift(L.target),(eb=eb.filter(L=>null!=L&&L.isConnected)).splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});var eE=k(54887),ew=k(32600);let eP=(0,K.createContext)(!1);function portal_force_root_l(){return(0,K.useContext)(eP)}function portal_force_root_P(L){return K.createElement(eP.Provider,{value:L.force},L.children)}var e_=k(52057);function F(L){let A=portal_force_root_l(),k=(0,K.useContext)(eR),z=(0,ef.i)(L),[W,V]=(0,K.useState)(()=>{if(!A&&null!==k||e_.O.isServer)return null;let L=null==z?void 0:z.getElementById("headlessui-portal-root");if(L)return L;if(null===z)return null;let W=z.createElement("div");return W.setAttribute("id","headlessui-portal-root"),z.body.appendChild(W)});return(0,K.useEffect)(()=>{null!==W&&(null!=z&&z.body.contains(W)||null==z||z.body.appendChild(W))},[W,z]),(0,K.useEffect)(()=>{A||null!==k&&V(k.current)},[k,V,A]),W}let eS=K.Fragment;function N(L,A){let k=(0,K.useRef)(null),z=(0,et.T)((0,et.h)(L=>{k.current=L}),A),W=(0,ef.i)(k),V=F(k),[B]=(0,K.useState)(()=>{var L;return e_.O.isServer?null:null!=(L=null==W?void 0:W.createElement("div"))?L:null}),q=(0,K.useContext)(eT),G=(0,ei.H)();return(0,ew.e)(()=>{!V||!B||V.contains(B)||(B.setAttribute("data-headlessui-portal",""),V.appendChild(B))},[V,B]),(0,ew.e)(()=>{if(B&&q)return q.register(B)},[q,B]),c(()=>{var L;V&&B&&(B instanceof Node&&V.contains(B)&&V.removeChild(B),V.childNodes.length<=0&&(null==(L=V.parentElement)||L.removeChild(V)))}),G&&V&&B?(0,eE.createPortal)((0,ee.sY)({ourProps:{ref:z},theirProps:L,defaultTag:eS,name:"Portal"}),B):null}let eO=K.Fragment,eR=(0,K.createContext)(null);function j(L,A){let{target:k,...z}=L,W={ref:(0,et.T)(A)};return K.createElement(eR.Provider,{value:k},(0,ee.sY)({ourProps:W,theirProps:z,defaultTag:eO,name:"Popover.Group"}))}let eT=(0,K.createContext)(null);function portal_ae(){let L=(0,K.useContext)(eT),A=(0,K.useRef)([]),k=(0,ea.z)(k=>(A.current.push(k),L&&L.register(k),()=>z(k))),z=(0,ea.z)(k=>{let z=A.current.indexOf(k);-1!==z&&A.current.splice(z,1),L&&L.unregister(k)}),W=(0,K.useMemo)(()=>({register:k,unregister:z,portals:A}),[k,z,A]);return[A,(0,K.useMemo)(()=>function({children:L}){return K.createElement(eT.Provider,{value:W},L)},[W])]}let eN=Object.assign((0,ee.yV)(N),{Group:(0,ee.yV)(j)}),eC=(0,K.createContext)(null);function description_f(){let L=(0,K.useContext)(eC);if(null===L){let L=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(L,description_f),L}return L}function description_M(){let[L,A]=(0,K.useState)([]);return[L.length>0?L.join(" "):void 0,(0,K.useMemo)(()=>function(L){let k=(0,ea.z)(L=>(A(A=>[...A,L]),()=>A(A=>{let k=A.slice(),z=k.indexOf(L);return -1!==z&&k.splice(z,1),k}))),z=(0,K.useMemo)(()=>({register:k,slot:L.slot,name:L.name,props:L.props}),[k,L.slot,L.name,L.props]);return K.createElement(eC.Provider,{value:z},L.children)},[A])]}function description_h(L,A){let k=(0,eo.M)(),{id:z=`headlessui-description-${k}`,...W}=L,V=description_f(),B=(0,et.T)(A);(0,ew.e)(()=>V.register(z),[z,V.register]);let q={ref:B,...V.props,id:z};return(0,ee.sY)({ourProps:q,theirProps:W,slot:V.slot||{},defaultTag:"p",name:V.name||"Description"})}let eM=Object.assign((0,ee.yV)(description_h),{});var ex=k(25306);let eL=(0,K.createContext)(()=>{});eL.displayName="StackContext";var ej=((V=ej||{})[V.Add=0]="Add",V[V.Remove=1]="Remove",V);function x(){return(0,K.useContext)(eL)}function stack_context_M({children:L,onUpdate:A,type:k,element:z,enabled:W}){let V=x(),B=(0,ea.z)((...L)=>{null==A||A(...L),V(...L)});return(0,ew.e)(()=>{let L=void 0===W||!0===W;return L&&B(0,k,z),()=>{L&&B(1,k,z)}},[B,k,z,W]),K.createElement(eL.Provider,{value:B},L)}var eA=k(90583);function i(L,A){return L===A&&(0!==L||1/L==1/A)||L!=L&&A!=A}let ek="function"==typeof Object.is?Object.is:i,{useState:eF,useEffect:eD,useLayoutEffect:eI,useDebugValue:eU}=G;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let eH=G.useSyncExternalStore;function use_store_S(L){return eH(L.subscribe,L.getSnapshot,L.getSnapshot)}var ez=k(85390);function store_a(L,A){let k=L(),z=new Set;return{getSnapshot:()=>k,subscribe:L=>(z.add(L),()=>z.delete(L)),dispatch(L,...W){let V=A[L].call(k,...W);V&&(k=V,z.forEach(L=>L()))}}}function adjust_scrollbar_padding_c(){let L;return{before({doc:A}){var k;let z=A.documentElement;L=(null!=(k=A.defaultView)?k:window).innerWidth-z.clientWidth},after({doc:A,d:k}){let z=A.documentElement,W=z.clientWidth-z.offsetWidth,V=L-W;k.style(z,"paddingRight",`${V}px`)}}}var eW=k(34644);function T(){let L;return(0,eW.gn)()?{before(){L=window.pageYOffset},after({doc:A,d:k,meta:z}){function i(L){return z.containers.flatMap(L=>L()).some(A=>A.contains(L))}k.microTask(()=>{if("auto"!==window.getComputedStyle(A.documentElement).scrollBehavior){let L=(0,ez.k)();L.style(A.documentElement,"scroll-behavior","auto"),k.add(()=>k.microTask(()=>L.dispose()))}k.style(A.body,"marginTop",`-${L}px`),window.scrollTo(0,0);let z=null;k.addEventListener(A,"click",L=>{if(L.target instanceof HTMLElement)try{let k=L.target.closest("a");if(!k)return;let{hash:W}=new URL(k.href),V=A.querySelector(W);V&&!i(V)&&(z=V)}catch{}},!0),k.addEventListener(A,"touchmove",L=>{L.target instanceof HTMLElement&&!i(L.target)&&L.preventDefault()},{passive:!1}),k.add(()=>{window.scrollTo(0,window.pageYOffset+L),z&&z.isConnected&&(z.scrollIntoView({block:"nearest"}),z=null)})})}}:{}}function l(){return{before({doc:L,d:A}){A.style(L.documentElement,"overflow","hidden")}}}function overflow_store_m(L){let A={};for(let k of L)Object.assign(A,k(A));return A}let eY=store_a(()=>new Map,{PUSH(L,A){var k;let z=null!=(k=this.get(L))?k:{doc:L,count:0,d:(0,ez.k)(),meta:new Set};return z.count++,z.meta.add(A),this.set(L,z),this},POP(L,A){let k=this.get(L);return k&&(k.count--,k.meta.delete(A)),this},SCROLL_PREVENT({doc:L,d:A,meta:k}){let z={doc:L,d:A,meta:overflow_store_m(k)},W=[T(),adjust_scrollbar_padding_c(),l()];W.forEach(({before:L})=>null==L?void 0:L(z)),W.forEach(({after:L})=>null==L?void 0:L(z))},SCROLL_ALLOW({d:L}){L.dispose()},TEARDOWN({doc:L}){this.delete(L)}});function use_document_overflow_p(L,A,k){let z=use_store_S(eY),W=L?z.get(L):void 0,V=!!W&&W.count>0;return(0,ew.e)(()=>{if(!(!L||!A))return eY.dispatch("PUSH",L,k),()=>eY.dispatch("POP",L,k)},[A,L]),V}eY.subscribe(()=>{let L=eY.getSnapshot(),A=new Map;for(let[k]of L)A.set(k,k.documentElement.style.overflow);for(let k of L.values()){let L="hidden"===A.get(k.doc),z=0!==k.count;(z&&!L||!z&&L)&&eY.dispatch(k.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",k),0===k.count&&eY.dispatch("TEARDOWN",k)}});let eV=new Map,e$=new Map;function use_inert_h(L,A=!0){(0,ew.e)(()=>{var k;if(!A)return;let z="function"==typeof L?L():L.current;if(!z)return;function a(){var L;if(!z)return;let A=null!=(L=e$.get(z))?L:1;if(1===A?e$.delete(z):e$.set(z,A-1),1!==A)return;let k=eV.get(z);k&&(null===k["aria-hidden"]?z.removeAttribute("aria-hidden"):z.setAttribute("aria-hidden",k["aria-hidden"]),z.inert=k.inert,eV.delete(z))}let W=null!=(k=e$.get(z))?k:0;return e$.set(z,W+1),0!==W||(eV.set(z,{"aria-hidden":z.getAttribute("aria-hidden"),inert:z.inert}),z.setAttribute("aria-hidden","true"),z.inert=!0),a},[L,A])}function use_root_containers_j({defaultContainers:L=[],portals:A,mainTreeNodeRef:k}={}){var z;let W=(0,K.useRef)(null!=(z=null==k?void 0:k.current)?z:null),V=(0,ef.i)(W),B=(0,ea.z)(()=>{var k;let z=[];for(let A of L)null!==A&&(A instanceof HTMLElement?z.push(A):"current"in A&&A.current instanceof HTMLElement&&z.push(A.current));if(null!=A&&A.current)for(let L of A.current)z.push(L);for(let L of null!=(k=null==V?void 0:V.querySelectorAll("html > *, body > *"))?k:[])L!==document.body&&L!==document.head&&L instanceof HTMLElement&&"headlessui-portal-root"!==L.id&&(L.contains(W.current)||z.some(A=>L.contains(A))||z.push(L));return z});return{resolveContainers:B,contains:(0,ea.z)(L=>B().some(A=>A.contains(L))),mainTreeNodeRef:W,MainTreeNode:(0,K.useMemo)(()=>function(){return null!=k?null:K.createElement(el._,{features:el.A.Hidden,ref:W})},[W,k])}}var eB=((B=eB||{})[B.Open=0]="Open",B[B.Closed=1]="Closed",B),eq=((q=eq||{})[q.SetTitleId=0]="SetTitleId",q);let eK={0:(L,A)=>L.titleId===A.id?L:{...L,titleId:A.id}},eG=(0,K.createContext)(null);function dialog_b(L){let A=(0,K.useContext)(eG);if(null===A){let A=Error(`<${L} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(A,dialog_b),A}return A}function we(L,A,k=()=>[document.body]){use_document_overflow_p(L,A,L=>{var A;return{containers:[...null!=(A=L.containers)?A:[],k]}})}function Be(L,A){return(0,J.E)(A.type,eK,L,A)}eG.displayName="DialogContext";let eZ=ee.AN.RenderStrategy|ee.AN.Static;function Ne(L,A){var k;let z=(0,eo.M)(),{id:W=`headlessui-dialog-${z}`,open:V,onClose:B,initialFocus:q,__demoMode:G=!1,...er}=L,[el,eu]=(0,K.useState)(0),es=(0,ex.oJ)();void 0===V&&null!==es&&(V=(es&ex.ZM.Open)===ex.ZM.Open);let ec=(0,K.useRef)(null),ed=(0,et.T)(ec,A),ep=(0,ef.i)(ec),em=L.hasOwnProperty("open")||null!==es,eh=L.hasOwnProperty("onClose");if(!em&&!eh)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!em)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!eh)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof V)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${V}`);if("function"!=typeof B)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${B}`);let eg=V?0:1,[ev,eb]=(0,K.useReducer)(Be,{titleId:null,descriptionId:null,panelRef:(0,K.createRef)()}),eE=(0,ea.z)(()=>B(!1)),ew=(0,ea.z)(L=>eb({type:0,id:L})),eP=!!(0,ei.H)()&&!G&&0===eg,e_=el>1,eS=null!==(0,K.useContext)(eG),[eO,eR]=portal_ae(),{resolveContainers:eT,mainTreeNodeRef:eC,MainTreeNode:eM}=use_root_containers_j({portals:eO,defaultContainers:[null!=(k=ev.panelRef.current)?k:ec.current]}),eL=e_?"parent":"leaf",ek=null!==es&&(es&ex.ZM.Closing)===ex.ZM.Closing,eF=!eS&&!ek&&eP;use_inert_h((0,K.useCallback)(()=>{var L,A;return null!=(A=Array.from(null!=(L=null==ep?void 0:ep.querySelectorAll("body > *"))?L:[]).find(L=>"headlessui-portal-root"!==L.id&&L.contains(eC.current)&&L instanceof HTMLElement))?A:null},[eC]),eF);let eD=!!e_||eP;use_inert_h((0,K.useCallback)(()=>{var L,A;return null!=(A=Array.from(null!=(L=null==ep?void 0:ep.querySelectorAll("[data-headlessui-portal]"))?L:[]).find(L=>L.contains(eC.current)&&L instanceof HTMLElement))?A:null},[eC]),eD);let eI=!(!eP||e_);(0,eA.O)(eT,eE,eI);let eU=!(e_||0!==eg);E(null==ep?void 0:ep.defaultView,"keydown",L=>{eU&&(L.defaultPrevented||L.key===en.R.Escape&&(L.preventDefault(),L.stopPropagation(),eE()))}),we(ep,!(ek||0!==eg||eS),eT),(0,K.useEffect)(()=>{if(0!==eg||!ec.current)return;let L=new ResizeObserver(L=>{for(let A of L){let L=A.target.getBoundingClientRect();0===L.x&&0===L.y&&0===L.width&&0===L.height&&eE()}});return L.observe(ec.current),()=>L.disconnect()},[eg,ec,eE]);let[eH,ez]=description_M(),eW=(0,K.useMemo)(()=>[{dialogState:eg,close:eE,setTitleId:ew},ev],[eg,ev,eE,ew]),eY=(0,K.useMemo)(()=>({open:0===eg}),[eg]),eV={ref:ed,id:W,role:"dialog","aria-modal":0===eg||void 0,"aria-labelledby":ev.titleId,"aria-describedby":eH};return K.createElement(stack_context_M,{type:"Dialog",enabled:0===eg,element:ec,onUpdate:(0,ea.z)((L,A)=>{"Dialog"===A&&(0,J.E)(L,{[ej.Add]:()=>eu(L=>L+1),[ej.Remove]:()=>eu(L=>L-1)})})},K.createElement(portal_force_root_P,{force:!0},K.createElement(eN,null,K.createElement(eG.Provider,{value:eW},K.createElement(eN.Group,{target:ec},K.createElement(portal_force_root_P,{force:!1},K.createElement(ez,{slot:eY,name:"Dialog.Description"},K.createElement(ey,{initialFocus:q,containers:eT,features:eP?(0,J.E)(eL,{parent:ey.features.RestoreFocus,leaf:ey.features.All&~ey.features.FocusLock}):ey.features.None},K.createElement(eR,null,(0,ee.sY)({ourProps:eV,theirProps:er,slot:eY,defaultTag:"div",features:eZ,visible:0===eg,name:"Dialog"}))))))))),K.createElement(eM,null))}function We(L,A){let k=(0,eo.M)(),{id:z=`headlessui-dialog-overlay-${k}`,...W}=L,[{dialogState:V,close:B}]=dialog_b("Dialog.Overlay"),q=(0,et.T)(A),G=(0,ea.z)(L=>{if(L.target===L.currentTarget){if((0,er.P)(L.currentTarget))return L.preventDefault();L.preventDefault(),L.stopPropagation(),B()}}),J=(0,K.useMemo)(()=>({open:0===V}),[V]);return(0,ee.sY)({ourProps:{ref:q,id:z,"aria-hidden":!0,onClick:G},theirProps:W,slot:J,defaultTag:"div",name:"Dialog.Overlay"})}function $e(L,A){let k=(0,eo.M)(),{id:z=`headlessui-dialog-backdrop-${k}`,...W}=L,[{dialogState:V},B]=dialog_b("Dialog.Backdrop"),q=(0,et.T)(A);(0,K.useEffect)(()=>{if(null===B.panelRef.current)throw Error("A component is being used, but a component is missing.")},[B.panelRef]);let G=(0,K.useMemo)(()=>({open:0===V}),[V]);return K.createElement(portal_force_root_P,{force:!0},K.createElement(eN,null,(0,ee.sY)({ourProps:{ref:q,id:z,"aria-hidden":!0},theirProps:W,slot:G,defaultTag:"div",name:"Dialog.Backdrop"})))}function Xe(L,A){let k=(0,eo.M)(),{id:z=`headlessui-dialog-panel-${k}`,...W}=L,[{dialogState:V},B]=dialog_b("Dialog.Panel"),q=(0,et.T)(A,B.panelRef),G=(0,K.useMemo)(()=>({open:0===V}),[V]),J=(0,ea.z)(L=>{L.stopPropagation()});return(0,ee.sY)({ourProps:{ref:q,id:z,onClick:J},theirProps:W,slot:G,defaultTag:"div",name:"Dialog.Panel"})}function Ke(L,A){let k=(0,eo.M)(),{id:z=`headlessui-dialog-title-${k}`,...W}=L,[{dialogState:V,setTitleId:B}]=dialog_b("Dialog.Title"),q=(0,et.T)(A);(0,K.useEffect)(()=>(B(z),()=>B(null)),[z,B]);let G=(0,K.useMemo)(()=>({open:0===V}),[V]);return(0,ee.sY)({ourProps:{ref:q,id:z},theirProps:W,slot:G,defaultTag:"h2",name:"Dialog.Title"})}let eQ=Object.assign((0,ee.yV)(Ne),{Backdrop:(0,ee.yV)($e),Panel:(0,ee.yV)(Xe),Overlay:(0,ee.yV)(We),Title:(0,ee.yV)(Ke),Description:eM})},93850:function(L,A,k){"use strict";k.d(A,{R:function(){return W}});var z,W=((z=W||{}).Space=" ",z.Enter="Enter",z.Escape="Escape",z.Backspace="Backspace",z.Delete="Delete",z.ArrowLeft="ArrowLeft",z.ArrowUp="ArrowUp",z.ArrowRight="ArrowRight",z.ArrowDown="ArrowDown",z.Home="Home",z.End="End",z.PageUp="PageUp",z.PageDown="PageDown",z.Tab="Tab",z)},9805:function(L,A,k){"use strict";k.d(A,{u:function(){return ep}});var z,W=k(2265),V=k(11931),B=k(25306),q=k(60597),K=k(80634),G=k(32600),J=k(61858),ee=k(48957),et=k(46618);function once_l(L){let A={called:!1};return(...k)=>{if(!A.called)return A.called=!0,L(...k)}}var en=k(85390);function g(L,...A){L&&A.length>0&&L.classList.add(...A)}function v(L,...A){L&&A.length>0&&L.classList.remove(...A)}function b(L,A){let k=(0,en.k)();if(!L)return k.dispose;let{transitionDuration:z,transitionDelay:W}=getComputedStyle(L),[V,B]=[z,W].map(L=>{let[A=0]=L.split(",").filter(Boolean).map(L=>L.includes("ms")?parseFloat(L):1e3*parseFloat(L)).sort((L,A)=>A-L);return A}),q=V+B;if(0!==q){k.group(k=>{k.setTimeout(()=>{A(),k.dispose()},q),k.addEventListener(L,"transitionrun",L=>{L.target===L.currentTarget&&k.dispose()})});let z=k.addEventListener(L,"transitionend",L=>{L.target===L.currentTarget&&(A(),z())})}else A();return k.add(()=>A()),k.dispose}function M(L,A,k,z){let W=k?"enter":"leave",V=(0,en.k)(),B=void 0!==z?once_l(z):()=>{};"enter"===W&&(L.removeAttribute("hidden"),L.style.display="");let K=(0,q.E)(W,{enter:()=>A.enter,leave:()=>A.leave}),G=(0,q.E)(W,{enter:()=>A.enterTo,leave:()=>A.leaveTo}),J=(0,q.E)(W,{enter:()=>A.enterFrom,leave:()=>A.leaveFrom});return v(L,...A.base,...A.enter,...A.enterTo,...A.enterFrom,...A.leave,...A.leaveFrom,...A.leaveTo,...A.entered),g(L,...A.base,...K,...J),V.nextFrame(()=>{v(L,...A.base,...K,...J),g(L,...A.base,...K,...G),b(L,()=>(v(L,...A.base,...K),g(L,...A.base,...A.entered),B()))}),V.dispose}var er=k(82769);function E({immediate:L,container:A,direction:k,classes:z,onStart:W,onStop:V}){let B=(0,K.t)(),q=(0,er.G)(),ee=(0,J.E)(k);(0,G.e)(()=>{L&&(ee.current="enter")},[L]),(0,G.e)(()=>{let L=(0,en.k)();q.add(L.dispose);let k=A.current;if(k&&"idle"!==ee.current&&B.current)return L.dispose(),W.current(ee.current),L.add(M(k,z.current,"enter"===ee.current,()=>{L.dispose(),V.current(ee.current)})),L.dispose},[k])}var eo=k(12950),ei=k(63960);function use_flags_c(L=0){let[A,k]=(0,W.useState)(L),z=(0,K.t)(),V=(0,W.useCallback)(L=>{z.current&&k(A=>A|L)},[A,z]),B=(0,W.useCallback)(L=>!!(A&L),[A]);return{flags:A,addFlag:V,hasFlag:B,removeFlag:(0,W.useCallback)(L=>{z.current&&k(A=>A&~L)},[k,z]),toggleFlag:(0,W.useCallback)(L=>{z.current&&k(A=>A^L)},[k])}}function S(L=""){return L.split(" ").filter(L=>L.trim().length>1)}let el=(0,W.createContext)(null);el.displayName="TransitionContext";var eu=((z=eu||{}).Visible="visible",z.Hidden="hidden",z);function Se(){let L=(0,W.useContext)(el);if(null===L)throw Error("A is used but it is missing a parent or .");return L}function Ne(){let L=(0,W.useContext)(ea);if(null===L)throw Error("A is used but it is missing a parent or .");return L}let ea=(0,W.createContext)(null);function U(L){return"children"in L?U(L.children):L.current.filter(({el:L})=>null!==L.current).filter(({state:L})=>"visible"===L).length>0}function oe(L,A){let k=(0,J.E)(L),z=(0,W.useRef)([]),B=(0,K.t)(),G=(0,er.G)(),ee=(0,eo.z)((L,A=V.l4.Hidden)=>{let W=z.current.findIndex(({el:A})=>A===L);-1!==W&&((0,q.E)(A,{[V.l4.Unmount](){z.current.splice(W,1)},[V.l4.Hidden](){z.current[W].state="hidden"}}),G.microTask(()=>{var L;!U(z)&&B.current&&(null==(L=k.current)||L.call(k))}))}),et=(0,eo.z)(L=>{let A=z.current.find(({el:A})=>A===L);return A?"visible"!==A.state&&(A.state="visible"):z.current.push({el:L,state:"visible"}),()=>ee(L,V.l4.Unmount)}),en=(0,W.useRef)([]),ei=(0,W.useRef)(Promise.resolve()),el=(0,W.useRef)({enter:[],leave:[],idle:[]}),eu=(0,eo.z)((L,k,z)=>{en.current.splice(0),A&&(A.chains.current[k]=A.chains.current[k].filter(([A])=>A!==L)),null==A||A.chains.current[k].push([L,new Promise(L=>{en.current.push(L)})]),null==A||A.chains.current[k].push([L,new Promise(L=>{Promise.all(el.current[k].map(([L,A])=>A)).then(()=>L())})]),"enter"===k?ei.current=ei.current.then(()=>null==A?void 0:A.wait.current).then(()=>z(k)):z(k)}),ea=(0,eo.z)((L,A,k)=>{Promise.all(el.current[A].splice(0).map(([L,A])=>A)).then(()=>{var L;null==(L=en.current.shift())||L()}).then(()=>k(A))});return(0,W.useMemo)(()=>({children:z,register:et,unregister:ee,onStart:eu,onStop:ea,wait:ei,chains:el}),[et,ee,z,eu,ea,el,ei])}function xe(){}ea.displayName="NestingContext";let es=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function se(L){var A;let k={};for(let z of es)k[z]=null!=(A=L[z])?A:xe;return k}function Re(L){let A=(0,W.useRef)(se(L));return(0,W.useEffect)(()=>{A.current=se(L)},[L]),A}let ec=V.AN.RenderStrategy;function De(L,A){var k,z;let{beforeEnter:K,afterEnter:G,beforeLeave:en,afterLeave:er,enter:el,enterFrom:eu,enterTo:es,entered:ed,leave:ef,leaveFrom:ep,leaveTo:em,...eh}=L,eg=(0,W.useRef)(null),ev=(0,et.T)(eg,A),ey=null==(k=eh.unmount)||k?V.l4.Unmount:V.l4.Hidden,{show:eb,appear:eE,initial:ew}=Se(),[eP,e_]=(0,W.useState)(eb?"visible":"hidden"),eS=Ne(),{register:eO,unregister:eR}=eS;(0,W.useEffect)(()=>eO(eg),[eO,eg]),(0,W.useEffect)(()=>{if(ey===V.l4.Hidden&&eg.current){if(eb&&"visible"!==eP){e_("visible");return}return(0,q.E)(eP,{hidden:()=>eR(eg),visible:()=>eO(eg)})}},[eP,eg,eO,eR,eb,ey]);let eT=(0,J.E)({base:S(eh.className),enter:S(el),enterFrom:S(eu),enterTo:S(es),entered:S(ed),leave:S(ef),leaveFrom:S(ep),leaveTo:S(em)}),eN=Re({beforeEnter:K,afterEnter:G,beforeLeave:en,afterLeave:er}),eC=(0,ee.H)();(0,W.useEffect)(()=>{if(eC&&"visible"===eP&&null===eg.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[eg,eP,eC]);let eM=eE&&eb&&ew,ex=eC&&(!ew||eE)?eb?"enter":"leave":"idle",eL=use_flags_c(0),ej=(0,eo.z)(L=>(0,q.E)(L,{enter:()=>{eL.addFlag(B.ZM.Opening),eN.current.beforeEnter()},leave:()=>{eL.addFlag(B.ZM.Closing),eN.current.beforeLeave()},idle:()=>{}})),eA=(0,eo.z)(L=>(0,q.E)(L,{enter:()=>{eL.removeFlag(B.ZM.Opening),eN.current.afterEnter()},leave:()=>{eL.removeFlag(B.ZM.Closing),eN.current.afterLeave()},idle:()=>{}})),ek=oe(()=>{e_("hidden"),eR(eg)},eS);E({immediate:eM,container:eg,classes:eT,direction:ex,onStart:(0,J.E)(L=>{ek.onStart(eg,L,ej)}),onStop:(0,J.E)(L=>{ek.onStop(eg,L,eA),"leave"!==L||U(ek)||(e_("hidden"),eR(eg))})});let eF=eh;return eM?eF={...eF,className:(0,ei.A)(eh.className,...eT.current.enter,...eT.current.enterFrom)}:(eF.className=(0,ei.A)(eh.className,null==(z=eg.current)?void 0:z.className),""===eF.className&&delete eF.className),W.createElement(ea.Provider,{value:ek},W.createElement(B.up,{value:(0,q.E)(eP,{visible:B.ZM.Open,hidden:B.ZM.Closed})|eL.flags},(0,V.sY)({ourProps:{ref:ev},theirProps:eF,defaultTag:"div",features:ec,visible:"visible"===eP,name:"Transition.Child"})))}function He(L,A){let{show:k,appear:z=!1,unmount:q=!0,...K}=L,J=(0,W.useRef)(null),en=(0,et.T)(J,A);(0,ee.H)();let er=(0,B.oJ)();if(void 0===k&&null!==er&&(k=(er&B.ZM.Open)===B.ZM.Open),![!0,!1].includes(k))throw Error("A is used but it is missing a `show={true | false}` prop.");let[ei,eu]=(0,W.useState)(k?"visible":"hidden"),es=oe(()=>{eu("hidden")}),[ed,ep]=(0,W.useState)(!0),em=(0,W.useRef)([k]);(0,G.e)(()=>{!1!==ed&&em.current[em.current.length-1]!==k&&(em.current.push(k),ep(!1))},[em,k]);let eh=(0,W.useMemo)(()=>({show:k,appear:z,initial:ed}),[k,z,ed]);(0,W.useEffect)(()=>{if(k)eu("visible");else if(U(es)){let L=J.current;if(!L)return;let A=L.getBoundingClientRect();0===A.x&&0===A.y&&0===A.width&&0===A.height&&eu("hidden")}else eu("hidden")},[k,es]);let eg={unmount:q},ev=(0,eo.z)(()=>{var A;ed&&ep(!1),null==(A=L.beforeEnter)||A.call(L)}),ey=(0,eo.z)(()=>{var A;ed&&ep(!1),null==(A=L.beforeLeave)||A.call(L)});return W.createElement(ea.Provider,{value:es},W.createElement(el.Provider,{value:eh},(0,V.sY)({ourProps:{...eg,as:W.Fragment,children:W.createElement(ef,{ref:en,...eg,...K,beforeEnter:ev,beforeLeave:ey})},theirProps:{},defaultTag:W.Fragment,features:ec,visible:"visible"===ei,name:"Transition"})))}function Fe(L,A){let k=null!==(0,W.useContext)(el),z=null!==(0,B.oJ)();return W.createElement(W.Fragment,null,!k&&z?W.createElement(ed,{ref:A,...L}):W.createElement(ef,{ref:A,...L}))}let ed=(0,V.yV)(He),ef=(0,V.yV)(De),ep=Object.assign(ed,{Child:(0,V.yV)(Fe),Root:ed})},82769:function(L,A,k){"use strict";k.d(A,{G:function(){return p}});var z=k(2265),W=k(85390);function p(){let[L]=(0,z.useState)(W.k);return(0,z.useEffect)(()=>()=>L.dispose(),[L]),L}},12950:function(L,A,k){"use strict";k.d(A,{z:function(){return o}});var z=k(2265),W=k(61858);let o=function(L){let A=(0,W.E)(L);return z.useCallback((...L)=>A.current(...L),[A])}},75606:function(L,A,k){"use strict";k.d(A,{M:function(){return K}});var z,W=k(2265),V=k(32600),B=k(48957),q=k(52057);let K=null!=(z=W.useId)?z:function(){let L=(0,B.H)(),[A,k]=W.useState(L?()=>q.O.nextId():null);return(0,V.e)(()=>{null===A&&k(q.O.nextId())},[A]),null!=A?""+A:void 0}},80634:function(L,A,k){"use strict";k.d(A,{t:function(){return f}});var z=k(2265),W=k(32600);function f(){let L=(0,z.useRef)(!1);return(0,W.e)(()=>(L.current=!0,()=>{L.current=!1}),[]),L}},32600:function(L,A,k){"use strict";k.d(A,{e:function(){return l}});var z=k(2265),W=k(52057);let l=(L,A)=>{W.O.isServer?(0,z.useEffect)(L,A):(0,z.useLayoutEffect)(L,A)}},61858:function(L,A,k){"use strict";k.d(A,{E:function(){return s}});var z=k(2265),W=k(32600);function s(L){let A=(0,z.useRef)(L);return(0,W.e)(()=>{A.current=L},[L]),A}},90583:function(L,A,k){"use strict";k.d(A,{O:function(){return h}});var z=k(2265),W=k(65410),V=k(61858);function d(L,A,k){let W=(0,V.E)(A);(0,z.useEffect)(()=>{function t(L){W.current(L)}return document.addEventListener(L,t,k),()=>document.removeEventListener(L,t,k)},[L,k])}var B=k(27976);function h(L,A,k=!0){let V=(0,z.useRef)(!1);function c(k,z){if(!V.current||k.defaultPrevented)return;let B=z(k);if(null!==B&&B.getRootNode().contains(B)&&B.isConnected){for(let A of function u(L){return"function"==typeof L?u(L()):Array.isArray(L)||L instanceof Set?L:[L]}(L)){if(null===A)continue;let L=A instanceof HTMLElement?A:A.current;if(null!=L&&L.contains(B)||k.composed&&k.composedPath().includes(L))return}return(0,W.sP)(B,W.tJ.Loose)||-1===B.tabIndex||k.preventDefault(),A(k,B)}}(0,z.useEffect)(()=>{requestAnimationFrame(()=>{V.current=k})},[k]);let q=(0,z.useRef)(null);d("pointerdown",L=>{var A,k;V.current&&(q.current=(null==(k=null==(A=L.composedPath)?void 0:A.call(L))?void 0:k[0])||L.target)},!0),d("mousedown",L=>{var A,k;V.current&&(q.current=(null==(k=null==(A=L.composedPath)?void 0:A.call(L))?void 0:k[0])||L.target)},!0),d("click",L=>{q.current&&(c(L,()=>q.current),q.current=null)},!0),d("touchend",L=>c(L,()=>L.target instanceof HTMLElement?L.target:null),!0),(0,B.s)("blur",L=>c(L,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},57728:function(L,A,k){"use strict";k.d(A,{i:function(){return n}});var z=k(2265),W=k(54851);function n(...L){return(0,z.useMemo)(()=>(0,W.r)(...L),[...L])}},48957:function(L,A,k){"use strict";k.d(A,{H:function(){return l}});var z,W=k(2265),V=k(52057);function s(){let L="undefined"==typeof document;return(0,(z||(z=k.t(W,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!L)}function l(){let L=s(),[A,k]=W.useState(V.O.isHandoffComplete);return A&&!1===V.O.isHandoffComplete&&k(!1),W.useEffect(()=>{!0!==A&&k(!0)},[A]),W.useEffect(()=>V.O.handoff(),[]),!L&&A}},46618:function(L,A,k){"use strict";k.d(A,{T:function(){return y},h:function(){return T}});var z=k(2265),W=k(12950);let V=Symbol();function T(L,A=!0){return Object.assign(L,{[V]:A})}function y(...L){let A=(0,z.useRef)(L);(0,z.useEffect)(()=>{A.current=L},[L]);let k=(0,W.z)(L=>{for(let k of A.current)null!=k&&("function"==typeof k?k(L):k.current=L)});return L.every(L=>null==L||(null==L?void 0:L[V]))?void 0:k}},7566:function(L,A,k){"use strict";k.d(A,{q:function(){return m}});var z=k(2265),W=k(12950);function m(L,A){let k=(0,z.useRef)([]),V=(0,W.z)(L);(0,z.useEffect)(()=>{let L=[...k.current];for(let[z,W]of A.entries())if(k.current[z]!==W){let z=V(A,L);return k.current=A,z}},[V,...A])}},27976:function(L,A,k){"use strict";k.d(A,{s:function(){return s}});var z=k(2265),W=k(61858);function s(L,A,k){let V=(0,W.E)(A);(0,z.useEffect)(()=>{function t(L){V.current(L)}return window.addEventListener(L,t,k),()=>window.removeEventListener(L,t,k)},[L,k])}},58227:function(L,A,k){"use strict";k.d(A,{A:function(){return V},_:function(){return B}});var z,W=k(11931),V=((z=V||{})[z.None=1]="None",z[z.Focusable=2]="Focusable",z[z.Hidden=4]="Hidden",z);function s(L,A){let{features:k=1,...z}=L,V={ref:A,"aria-hidden":(2&k)==2||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&k)==4&&(2&k)!=2&&{display:"none"}}};return(0,W.sY)({ourProps:V,theirProps:z,slot:{},defaultTag:"div",name:"Hidden"})}let B=(0,W.yV)(s)},25306:function(L,A,k){"use strict";k.d(A,{ZM:function(){return B},oJ:function(){return C},up:function(){return c}});var z,W=k(2265);let V=(0,W.createContext)(null);V.displayName="OpenClosedContext";var B=((z=B||{})[z.Open=1]="Open",z[z.Closed=2]="Closed",z[z.Closing=4]="Closing",z[z.Opening=8]="Opening",z);function C(){return(0,W.useContext)(V)}function c({value:L,children:A}){return W.createElement(V.Provider,{value:L},A)}},35863:function(L,A,k){"use strict";function r(L){let A=L.parentElement,k=null;for(;A&&!(A instanceof HTMLFieldSetElement);)A instanceof HTMLLegendElement&&(k=A),A=A.parentElement;let z=(null==A?void 0:A.getAttribute("disabled"))==="";return!(z&&i(k))&&z}function i(L){if(!L)return!1;let A=L.previousElementSibling;for(;null!==A;){if(A instanceof HTMLLegendElement)return!1;A=A.previousElementSibling}return!0}k.d(A,{P:function(){return r}})},63960:function(L,A,k){"use strict";function t(...L){return Array.from(new Set(L.flatMap(L=>"string"==typeof L?L.split(" "):[]))).filter(Boolean).join(" ")}k.d(A,{A:function(){return t}})},85390:function(L,A,k){"use strict";k.d(A,{k:function(){return o}});var z=k(55195);function o(){let L=[],A={addEventListener:(L,k,z,W)=>(L.addEventListener(k,z,W),A.add(()=>L.removeEventListener(k,z,W))),requestAnimationFrame(...L){let k=requestAnimationFrame(...L);return A.add(()=>cancelAnimationFrame(k))},nextFrame:(...L)=>A.requestAnimationFrame(()=>A.requestAnimationFrame(...L)),setTimeout(...L){let k=setTimeout(...L);return A.add(()=>clearTimeout(k))},microTask(...L){let k={current:!0};return(0,z.Y)(()=>{k.current&&L[0]()}),A.add(()=>{k.current=!1})},style(L,A,k){let z=L.style.getPropertyValue(A);return Object.assign(L.style,{[A]:k}),this.add(()=>{Object.assign(L.style,{[A]:z})})},group(L){let A=o();return L(A),this.add(()=>A.dispose())},add:A=>(L.push(A),()=>{let k=L.indexOf(A);if(k>=0)for(let A of L.splice(k,1))A()}),dispose(){for(let A of L.splice(0))A()}};return A}},52057:function(L,A,k){"use strict";k.d(A,{O:function(){return W}});var z=Object.defineProperty,d=(L,A,k)=>A in L?z(L,A,{enumerable:!0,configurable:!0,writable:!0,value:k}):L[A]=k,r=(L,A,k)=>(d(L,"symbol"!=typeof A?A+"":A,k),k);let o=class o{constructor(){r(this,"current",this.detect()),r(this,"handoffState","pending"),r(this,"currentId",0)}set(L){this.current!==L&&(this.handoffState="pending",this.currentId=0,this.current=L)}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}};let W=new o},65410:function(L,A,k){"use strict";k.d(A,{C5:function(){return y},EO:function(){return _},TO:function(){return et},fE:function(){return en},jA:function(){return O},sP:function(){return h},tJ:function(){return eo},wI:function(){return D},z2:function(){return I}});var z,W,V,B,q,K=k(85390),G=k(60597),J=k(54851);let ee=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(L=>`${L}:not([tabindex='-1'])`).join(",");var et=((z=et||{})[z.First=1]="First",z[z.Previous=2]="Previous",z[z.Next=4]="Next",z[z.Last=8]="Last",z[z.WrapAround=16]="WrapAround",z[z.NoScroll=32]="NoScroll",z),en=((W=en||{})[W.Error=0]="Error",W[W.Overflow=1]="Overflow",W[W.Success=2]="Success",W[W.Underflow=3]="Underflow",W),er=((V=er||{})[V.Previous=-1]="Previous",V[V.Next=1]="Next",V);function f(L=document.body){return null==L?[]:Array.from(L.querySelectorAll(ee)).sort((L,A)=>Math.sign((L.tabIndex||Number.MAX_SAFE_INTEGER)-(A.tabIndex||Number.MAX_SAFE_INTEGER)))}var eo=((B=eo||{})[B.Strict=0]="Strict",B[B.Loose=1]="Loose",B);function h(L,A=0){var k;return L!==(null==(k=(0,J.r)(L))?void 0:k.body)&&(0,G.E)(A,{0:()=>L.matches(ee),1(){let A=L;for(;null!==A;){if(A.matches(ee))return!0;A=A.parentElement}return!1}})}function D(L){let A=(0,J.r)(L);(0,K.k)().nextFrame(()=>{A&&!h(A.activeElement,0)&&y(L)})}var ei=((q=ei||{})[q.Keyboard=0]="Keyboard",q[q.Mouse=1]="Mouse",q);function y(L){null==L||L.focus({preventScroll:!0})}function H(L){var A,k;return null!=(k=null==(A=null==L?void 0:L.matches)?void 0:A.call(L,"textarea,input"))&&k}function I(L,A=L=>L){return L.slice().sort((L,k)=>{let z=A(L),W=A(k);if(null===z||null===W)return 0;let V=z.compareDocumentPosition(W);return V&Node.DOCUMENT_POSITION_FOLLOWING?-1:V&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _(L,A){return O(f(),A,{relativeTo:L})}function O(L,A,{sorted:k=!0,relativeTo:z=null,skipElements:W=[]}={}){let V=Array.isArray(L)?L.length>0?L[0].ownerDocument:document:L.ownerDocument,B=Array.isArray(L)?k?I(L):L:f(L);W.length>0&&B.length>1&&(B=B.filter(L=>!W.includes(L))),z=null!=z?z:V.activeElement;let q=(()=>{if(5&A)return 1;if(10&A)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),K=(()=>{if(1&A)return 0;if(2&A)return Math.max(0,B.indexOf(z))-1;if(4&A)return Math.max(0,B.indexOf(z))+1;if(8&A)return B.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),G=32&A?{preventScroll:!0}:{},J=0,ee=B.length,et;do{if(J>=ee||J+ee<=0)return 0;let L=K+J;if(16&A)L=(L+ee)%ee;else{if(L<0)return 3;if(L>=ee)return 1}null==(et=B[L])||et.focus(G),J+=q}while(et!==V.activeElement);return 6&A&&H(et)&&et.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",L=>{L.metaKey||L.altKey||L.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",L=>{1===L.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===L.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},60597:function(L,A,k){"use strict";function u(L,A,...k){if(L in A){let z=A[L];return"function"==typeof z?z(...k):z}let z=Error(`Tried to handle "${L}" but there is no handler defined. Only defined handlers are: ${Object.keys(A).map(L=>`"${L}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(z,u),z}k.d(A,{E:function(){return u}})},55195:function(L,A,k){"use strict";function t(L){"function"==typeof queueMicrotask?queueMicrotask(L):Promise.resolve().then(L).catch(L=>setTimeout(()=>{throw L}))}k.d(A,{Y:function(){return t}})},54851:function(L,A,k){"use strict";k.d(A,{r:function(){return e}});var z=k(52057);function e(L){return z.O.isServer?null:L instanceof Node?L.ownerDocument:null!=L&&L.hasOwnProperty("current")&&L.current instanceof Node?L.current.ownerDocument:document}},34644:function(L,A,k){"use strict";function t(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return/Android/gi.test(window.navigator.userAgent)}function n(){return t()||i()}k.d(A,{gn:function(){return t},tq:function(){return n}})},11931:function(L,A,k){"use strict";k.d(A,{AN:function(){return K},l4:function(){return G},oA:function(){return R},sY:function(){return X},yV:function(){return D}});var z,W,V=k(2265),B=k(63960),q=k(60597),K=((z=K||{})[z.None=0]="None",z[z.RenderStrategy=1]="RenderStrategy",z[z.Static=2]="Static",z),G=((W=G||{})[W.Unmount=0]="Unmount",W[W.Hidden=1]="Hidden",W);function X({ourProps:L,theirProps:A,slot:k,defaultTag:z,features:W,visible:V=!0,name:B}){let K=N(A,L);if(V)return c(K,k,z,B);let G=null!=W?W:0;if(2&G){let{static:L=!1,...A}=K;if(L)return c(A,k,z,B)}if(1&G){let{unmount:L=!0,...A}=K;return(0,q.E)(L?0:1,{0:()=>null,1:()=>c({...A,hidden:!0,style:{display:"none"}},k,z,B)})}return c(K,k,z,B)}function c(L,A={},k,z){let{as:W=k,children:q,refName:K="ref",...G}=g(L,["unmount","static"]),J=void 0!==L.ref?{[K]:L.ref}:{},ee="function"==typeof q?q(A):q;"className"in G&&G.className&&"function"==typeof G.className&&(G.className=G.className(A));let et={};if(A){let L=!1,k=[];for(let[z,W]of Object.entries(A))"boolean"==typeof W&&(L=!0),!0===W&&k.push(z);L&&(et["data-headlessui-state"]=k.join(" "))}if(W===V.Fragment&&Object.keys(R(G)).length>0){if(!(0,V.isValidElement)(ee)||Array.isArray(ee)&&ee.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${z} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(G).map(L=>` - ${L}`).join(` +`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(L=>` - ${L}`).join(` +`)].join(` +`));let L=ee.props,A="function"==typeof(null==L?void 0:L.className)?(...A)=>(0,B.A)(null==L?void 0:L.className(...A),G.className):(0,B.A)(null==L?void 0:L.className,G.className),k=A?{className:A}:{};return(0,V.cloneElement)(ee,Object.assign({},N(ee.props,R(g(G,["ref"]))),et,J,w(ee.ref,J.ref),k))}return(0,V.createElement)(W,Object.assign({},g(G,["ref"]),W!==V.Fragment&&J,W!==V.Fragment&&et),ee)}function w(...L){return{ref:L.every(L=>null==L)?void 0:A=>{for(let k of L)null!=k&&("function"==typeof k?k(A):k.current=A)}}}function N(...L){if(0===L.length)return{};if(1===L.length)return L[0];let A={},k={};for(let z of L)for(let L in z)L.startsWith("on")&&"function"==typeof z[L]?(null!=k[L]||(k[L]=[]),k[L].push(z[L])):A[L]=z[L];if(A.disabled||A["aria-disabled"])return Object.assign(A,Object.fromEntries(Object.keys(k).map(L=>[L,void 0])));for(let L in k)Object.assign(A,{[L](A,...z){for(let W of k[L]){if((A instanceof Event||(null==A?void 0:A.nativeEvent)instanceof Event)&&A.defaultPrevented)return;W(A,...z)}}});return A}function D(L){var A;return Object.assign((0,V.forwardRef)(L),{displayName:null!=(A=L.displayName)?A:L.name})}function R(L){let A=Object.assign({},L);for(let L in A)void 0===A[L]&&delete A[L];return A}function g(L,A=[]){let k=Object.assign({},L);for(let L of A)L in k&&delete k[L];return k}}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/(library)/page-7f60504fbe6b3e11.js b/web/_next/static/chunks/app/(main)/(library)/page-7f60504fbe6b3e11.js new file mode 100644 index 00000000..91254fab --- /dev/null +++ b/web/_next/static/chunks/app/(main)/(library)/page-7f60504fbe6b3e11.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[758],{71672:function(e,n,i){Promise.resolve().then(i.bind(i,55990))},55990:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return Library}});var t=i(57437),a=i(77665),r=i(23890),l=i(16691),s=i.n(l),o=i(2265),c=i(9805),d=i(54487),u=i(45547);let m=(0,a.cn)(null);function LibraryHeader(){let e=(0,r.Dv)(m),[n,i]=(0,o.useState)(null),[a,l]=(0,o.useState)(null),[v,g]=(0,o.useState)(!1);(0,o.useEffect)(()=>{null===n?i(e):i(null);let t=setTimeout(()=>{i(e)},500);return()=>{clearTimeout(t)}},[e]),(0,o.useEffect)(()=>{n&&l(n)},[n]);let{y:x}=(0,u.Z)();return((0,o.useEffect)(()=>{x>100?g(!0):g(!1)},[x>100]),e)?(0,t.jsx)("div",{className:"__header h-[18rem] z-[-1] top-0 w-full md:w-[calc(100%-5rem)] fixed group/library-header",children:(0,t.jsxs)("div",{className:"h-[25rem] z-[0] w-full flex-none object-cover object-center absolute top-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"w-full absolute z-[2] top-0 h-[15rem] bg-gradient-to-b from-[--background-color] to-transparent via"}),(0,t.jsx)(c.u,{show:!!n,enter:"transition-opacity duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(n||a)&&(0,t.jsx)(s(),{src:n||a,alt:"banner image",fill:!0,quality:100,priority:!0,sizes:"100vw",className:(0,d.cn)("object-cover object-center z-[1] opacity-100 transition-all duration-700",{"opacity-20":v})})}),a&&(0,t.jsx)(s(),{src:a,alt:"banner image",fill:!0,quality:100,priority:!0,sizes:"100vw",className:(0,d.cn)("object-cover object-center z-[1] opacity-50 transition-all",{"opacity-10":v})}),(0,t.jsx)("div",{className:"w-full z-[2] absolute bottom-0 h-[40rem] bg-gradient-to-t from-[--background-color] via-opacity-50 via-10% to-transparent"}),(0,t.jsx)("div",{className:"w-[4rem] z-[2] absolute top-0 right-0 h-[40rem] bg-gradient-to-l from-[--background-color] via-opacity-50 via-10% to-transparent"})]})}):null}var v=i(7214),g=i(11305),x=i(45652),p=i.n(x);function getLibraryCollectionTitle(e){return"current"===e?"Currently watching":p()(e)}var h=i(73199),f=i(88356),y=i(97622),j=i(33538),b=i(65871),N=i(77097),C=i(37376);function BetaBadge(e){return(0,t.jsx)(C.C,{intent:"warning",className:"align-middle ml-1.5",...e,children:"Experimental"})}var w=i(34813),k=i(37122),M=i(10137);let P=(0,a.cn)(!1),S=(0,a.cn)(!1);function ScannerModal(){let[e,n]=(0,r.KO)(P),[,i]=(0,r.KO)(S),a=(0,k.k)(!1),l=(0,k.k)(!0),s=(0,k.k)(!0),{scanLibrary:c,isScanning:d}=(0,M.Jx)();function handleScan(){c({enhanced:a.active,skipLockedFiles:l.active,skipIgnoredFiles:s.active})}return(0,o.useEffect)(()=>{i(d)},[d]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(j.u_,{isOpen:e,onClose:()=>n(!1),isClosable:!d,title:(0,t.jsx)("h3",{children:"Scan library"}),titleClassName:"text-center",bodyClassName:"space-y-4",size:"xl",children:[(0,t.jsxs)("div",{className:"space-y-4 mt-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(b.XZ,{label:(0,t.jsxs)("span",{className:"flex items-center",children:["Enable enhanced scanning ",(0,t.jsx)(BetaBadge,{}),(0,t.jsx)(N.M,{className:"ml-2 text-amber-500"})]}),checked:a.active,onChange:a.toggle,controlClassName:"data-[state=checked]:bg-amber-700 dark:data-[state=checked]:bg-amber-700",size:"lg"}),a.active&&(0,t.jsxs)("ul",{className:"list-disc pl-14",children:[(0,t.jsxs)("li",{children:["Your Anilist anime list data is ",(0,t.jsx)("strong",{children:"not needed"})]}),(0,t.jsx)("li",{children:"Scanning will slow down by ~25s"})]})]}),(0,t.jsx)(w.iz,{}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)(b.XZ,{label:"Skip locked files",checked:l.active,onChange:l.toggle}),(0,t.jsx)(b.XZ,{label:"Skip ignored files",checked:s.active,onChange:s.toggle})]})]}),(0,t.jsx)(y.zx,{onClick:handleScan,intent:"primary",leftIcon:(0,t.jsx)(f.j,{}),isLoading:d,className:"w-full",children:"Scan"})]})})}function LibraryCollectionLists(e){let{collectionList:n,isLoading:i}=e,a=(0,r.b9)(P),l=(0,o.useMemo)(()=>n.some(e=>e.entries.length>0),[n]);return i?(0,t.jsx)(g.TK,{}):l||i?(0,t.jsx)("div",{className:"p-4 space-y-8 relative",children:n.map(e=>0===e.entries.length?null:(0,t.jsx)(E,{list:e},e.type))}):(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"text-center space-y-4",children:[(0,t.jsx)("h2",{children:"Empty library"}),(0,t.jsx)(y.zx,{intent:"warning-subtle",leftIcon:(0,t.jsx)(f.j,{}),size:"xl",rounded:!0,onClick:()=>a(!0),children:"Scan your library"})]}),(0,t.jsx)("h3",{children:"Popular this season"}),(0,t.jsx)(h.K,{})]})}let E=(0,o.memo)(e=>{var n;let{list:i}=e;return(0,t.jsxs)(o.Fragment,{children:[(0,t.jsx)("h2",{children:getLibraryCollectionTitle(i.type)}),(0,t.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-7 min-[2000px]:grid-cols-8 gap-4",children:null===(n=i.entries)||void 0===n?void 0:n.map(e=>(0,t.jsx)(D,{entry:e},e.mediaId))})]},i.type)}),D=(0,o.memo)(e=>{let{entry:n}=e;return(0,t.jsx)(v.k,{media:n.media,listData:n.listData,libraryData:n.libraryData})});var I=i(47900),L=i(24033),z=i(7951),_=i(5790),A=i(20302),T=i(83891);function ContinueWatching(e){let{list:n,isLoading:i}=e;if(n.length>0)return(0,t.jsxs)("div",{className:"space-y-8 p-4",children:[(0,t.jsx)("h2",{children:"Continue watching"}),(0,t.jsx)(z.i,{children:n.map((e,n)=>{var i;return(0,t.jsx)(O,{...e},(null===(i=e.basicMedia)||void 0===i?void 0:i.id)||n)})})]})}let O=(0,o.memo)(e=>{var n,i,a,l,s;let c=(0,L.useRouter)(),d=(null===(n=e.episodeMetadata)||void 0===n?void 0:n.airDate)?new Date(e.episodeMetadata.airDate):void 0,u=(0,r.b9)(m),v=(0,o.useMemo)(()=>d?(0,A.Z)(d,(0,T.Z)(new Date,2)):void 0,[]);return(0,o.useEffect)(()=>{u(n=>{if(null===n){var i,t;return(null===(i=e.basicMedia)||void 0===i?void 0:i.bannerImage)||(null===(t=e.episodeMetadata)||void 0===t?void 0:t.image)||null}return n})},[]),(0,t.jsx)(I.S,{image:null===(i=e.episodeMetadata)||void 0===i?void 0:i.image,title:(0,t.jsxs)("span",{children:[e.displayTitle," ",!!(null===(a=e.basicMedia)||void 0===a?void 0:a.episodes)&&(0,t.jsxs)("span",{className:"opacity-40",children:["/"," ",e.basicMedia.episodes]})]}),topTitle:null===(s=e.basicMedia)||void 0===s?void 0:null===(l=s.title)||void 0===l?void 0:l.userPreferred,actionIcon:void 0,meta:d?v?new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"2-digit",year:"2-digit"}).format(d):"".concat((0,_.Z)(d,{addSuffix:!0})):void 0,onClick:()=>{var n;c.push("/entry?id=".concat(null===(n=e.basicMedia)||void 0===n?void 0:n.id,"&playNext=true"))},onMouseEnter:()=>{(0,o.startTransition)(()=>{var n,i;u((null===(n=e.basicMedia)||void 0===n?void 0:n.bannerImage)||(null===(i=e.episodeMetadata)||void 0===i?void 0:i.image)||null)})},larger:!0})});var $=i(6555),F=i(53677),B=i(12325),U=i(78637),R=i(86321),q=i(77550),K=i(69291),Y=i(93054),V=i(66834),Z=i(98602),G=i(31466),X=i(68260),H=i(69802);let W=(0,a.cn)(!1);function UnmatchedFileManager(e){let{unmatchedGroups:n}=e,[i,a]=(0,r.KO)(W),[l,c]=(0,o.useState)(0),u=n.length-1,[m,v]=(0,o.useState)(null==n?void 0:n[0]),[x,p]=(0,o.useState)(0),{openInExplorer:h}=(0,Z.cg)(),{suggestions:b,fetchSuggestions:N,isPending:C,resetSuggestions:k}=(0,X.bo)(),{manuallyMatchEntry:M,isPending:P}=(0,X.Pe)(),[S,E]=(0,o.useState)(0),D=(0,o.useCallback)(()=>{N(m.dir)},[null==m?void 0:m.dir,N]),I=(0,o.useCallback)(e=>{e&&!isNaN(Number(e))&&(p(Number(e)),E(e=>e+1))},[]);(0,o.useEffect)(()=>{v(n[l]),p(0),k()},[l,n]);let L=(0,o.useCallback)(()=>(0,t.jsx)(G.Y,{discrete:!0,value:x,onChange:e=>p(e)}),[null==m?void 0:m.dir,S]);function handleManuallyMatchEntry(){m&&x>0&&M({dir:null==m?void 0:m.dir,mediaId:x},()=>{0===l&&1===n.length&&a(!1),p(0),k(),c(0),v(n[0])})}return((0,o.useEffect)(()=>{m||a(!1)},[m]),m)?(0,t.jsx)(j.dy,{isOpen:i,onClose:()=>a(!1),size:"xl",title:"Resolve unmatched",isClosable:!0,children:(0,t.jsxs)(Y.ce,{children:[(0,t.jsxs)("div",{className:(0,d.cn)("flex w-full justify-between",{hidden:n.length<=1}),children:[(0,t.jsx)(y.zx,{intent:"gray-subtle",leftIcon:(0,t.jsx)(q.W,{}),isDisabled:0===l,onClick:()=>{c(e=>e-1)},className:(0,d.cn)("transition-opacity",{"opacity-0":0===l}),children:"Previous"}),(0,t.jsx)(y.zx,{intent:"gray-subtle",rightIcon:(0,t.jsx)(K.U,{}),isDisabled:l>=u,onClick:()=>{c(e=>e+1)},className:(0,d.cn)("transition-opacity",{"opacity-0":l>=u}),children:"Next"})]}),(0,t.jsxs)("div",{className:"bg-gray-800 p-2 px-4 rounded-md line-clamp-1 flex gap-2 items-center cursor-pointer transition hover:bg-opacity-80",onClick:()=>h(m.dir),children:[(0,t.jsx)(V.T,{className:"text-2xl"}),m.dir]}),(0,t.jsx)("div",{className:"bg-gray-800 p-2 px-4 rounded-md space-y-1 max-h-60 overflow-y-auto",children:m.localFiles.sort((e,n)=>{var i,t,a,r;return Number(null!==(a=null===(i=e.parsedInfo)||void 0===i?void 0:i.episode)&&void 0!==a?a:0)-Number(null!==(r=null===(t=n.parsedInfo)||void 0===t?void 0:t.episode)&&void 0!==r?r:0)}).map(e=>(0,t.jsx)("p",{className:"",children:e.path},e.path))}),(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)("p",{className:"flex-none text-lg mr-2 font-semibold",children:"Anilist ID"}),(0,t.jsx)(L,{}),(0,t.jsx)(y.zx,{intent:"primary-outline",onClick:handleManuallyMatchEntry,isLoading:P,children:"Match"})]}),(0,t.jsx)(w.iz,{}),(0,t.jsx)(y.zx,{leftIcon:(0,t.jsx)(f.j,{}),intent:"success-subtle",onClick:D,children:"Fetch suggestions"}),C&&(0,t.jsx)(g.TK,{}),!C&&b.length>0&&(0,t.jsx)(H.E,{defaultValue:"1",fieldClassName:"w-full",fieldLabelClassName:"text-md",label:"Select Anime",value:String(x),onChange:I,options:b.map(e=>{var n,i,a,r,l,o,c;return{label:(null===(n=e.title)||void 0===n?void 0:n.userPreferred)||(null===(i=e.title)||void 0===i?void 0:i.english)||(null===(a=e.title)||void 0===a?void 0:a.romaji)||"",value:String(e.id)||"",help:(0,t.jsxs)("div",{className:"mt-2 flex w-full gap-4",children:[(null===(r=e.coverImage)||void 0===r?void 0:r.medium)&&(0,t.jsx)("div",{className:"h-28 w-28 flex-none rounded-md object-cover object-center relative overflow-hidden",children:(0,t.jsx)(s(),{src:e.coverImage.medium,alt:"",fill:!0,quality:100,priority:!0,sizes:"10rem",className:"object-cover object-center"})}),(0,t.jsxs)("div",{className:"text-[--muted]",children:[(0,t.jsxs)("p",{children:["Type: ",(0,t.jsx)("span",{className:"text-gray-200 font-semibold",children:e.format})]}),(0,t.jsxs)("p",{children:["Aired: ",(null===(l=e.startDate)||void 0===l?void 0:l.year)?new Intl.DateTimeFormat("en-US",{year:"numeric"}).format(new Date((null===(o=e.startDate)||void 0===o?void 0:o.year)||0,(null===(c=e.startDate)||void 0===c?void 0:c.month)||0)):"-"]}),(0,t.jsxs)("p",{children:["Status: ",e.status]}),(0,t.jsx)(y.zx,{intent:"primary-link",size:"sm",className:"px-0",onClick:()=>window.open("https://anilist.co/anime/".concat(e.id),"_target"),children:"Open on AniList"})]})]})}}),radioContainerClassName:"block w-full p-4 cursor-pointer dark:bg-gray-900 transition border border-[--border] rounded-[--radius] data-[checked=true]:ring-2 ring-[--ring]",radioControlClassName:"absolute right-2 top-2 h-5 w-5 text-xs",radioHelpClassName:"text-sm",radioLabelClassName:"font-semibold flex-none w-[90%] line-clamp-1",stackClassName:"grid grid-cols-2 gap-2 space-y-0"})]})}):null}var J=i(751),Q=i(92315),ee=i(24285),en=i(29506);let ei=(0,a.cn)(!1);function BulkActionModal(){let[e,n]=(0,r.KO)(ei),{lockFiles:i,unlockFiles:a,isPending:l}=(0,M.ss)(),{removeEmptyDirectories:s,isPending:o}=(0,M.Ye)(),c=(0,en.H)({title:"Remove empty directories",description:"This action will remove all empty directories in the library. Are you sure you want to continue?",onConfirm:()=>{s()}});return(0,t.jsxs)(j.u_,{isOpen:e,onClose:()=>n(!1),isClosable:!0,title:"Bulk actions",bodyClassName:"space-y-4",children:[(0,t.jsxs)(Y.ce,{spacing:"sm",children:[(0,t.jsx)(y.zx,{leftIcon:(0,t.jsx)(Q.U,{}),intent:"white-link",className:"w-full",isDisabled:l||o,onClick:i,children:"Lock all files"}),(0,t.jsx)(y.zx,{leftIcon:(0,t.jsx)(ee.k,{}),intent:"white-link",className:"w-full",isDisabled:l||o,onClick:a,children:"Unlock all files"}),(0,t.jsx)(y.zx,{intent:"white-link",className:"w-full",isDisabled:l,isLoading:o,onClick:()=>c.open(),children:"Remove empty directories"})]}),(0,t.jsx)(en.U,{...c})]})}function LibraryToolbar(e){var n,i,a,l,s,o;let{collectionList:c,ignoredLocalFiles:u,unmatchedLocalFiles:m}=e,v=(0,r.b9)(ei),g=(0,r.Dv)(J.X),x=(0,r.b9)(P),p=(0,r.b9)(W),h=c.some(e=>e.entries.length>0),{openInExplorer:j}=(0,Z.cg)();return(0,t.jsxs)("div",{className:"flex w-full justify-between p-4",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[!!(null==g?void 0:null===(i=g.settings)||void 0===i?void 0:null===(n=i.library)||void 0===n?void 0:n.libraryPath)&&h&&(0,t.jsx)(y.zx,{intent:h?"primary-subtle":"primary",leftIcon:(0,t.jsx)(f.j,{}),onClick:()=>x(!0),children:h?"Refresh entries":"Scan your library"}),m.length>0&&(0,t.jsxs)(y.zx,{intent:"alert-outline",leftIcon:(0,t.jsx)($.b,{}),className:"animate-pulse",onClick:()=>p(!0),children:["Resolve unmatched (",m.length,")"]})]}),(0,t.jsx)("div",{className:"flex gap-2",children:(0,t.jsxs)(F.h_,{trigger:(0,t.jsx)(y.hU,{icon:(0,t.jsx)(B.T,{}),intent:"gray-basic"}),children:[(0,t.jsxs)(F.h_.Item,{disabled:!(null==g?void 0:null===(l=g.settings)||void 0===l?void 0:null===(a=l.library)||void 0===a?void 0:a.libraryPath),className:(0,d.cn)({"!text-[--muted]":!(null==g?void 0:null===(o=g.settings)||void 0===o?void 0:null===(s=o.library)||void 0===s?void 0:s.libraryPath)}),onClick:()=>{var e,n,i;j(null!==(i=null==g?void 0:null===(n=g.settings)||void 0===n?void 0:null===(e=n.library)||void 0===e?void 0:e.libraryPath)&&void 0!==i?i:"")},children:[(0,t.jsx)(U.J,{}),(0,t.jsx)("span",{children:"Open folder"})]}),(0,t.jsxs)(F.h_.Item,{onClick:()=>v(!0),disabled:!h,className:(0,d.cn)({"!text-[--muted]":!h}),children:[(0,t.jsx)(R.m,{}),(0,t.jsx)("span",{children:"Bulk actions"})]})]})})]})}var et=i(67998),ea=i(57638);function ScanProgressBar(){let[e]=(0,r.KO)(S),[n,i]=(0,o.useState)(0);return((0,et.SN)({type:ea.f.SCAN_PROGRESS,onMessage:e=>{i(e),100===e&&setTimeout(()=>{i(0)},2e3)}}),e)?(0,t.jsx)("div",{className:"w-full bg-gray-800 fixed top-0 left-0 z-[100]",children:(0,t.jsxs)("div",{className:"bg-brand text-xs font-medium text-blue-100 text-center p-0.5 leading-none transition-all",style:{width:n+"%"},children:[" ",n,"%"]})}):null}function Library(){let{libraryCollectionList:e,isLoading:n,continueWatchingList:i,unmatchedLocalFiles:a,ignoredLocalFiles:r,unmatchedGroups:l}=(0,M.d3)();return(0,t.jsxs)("div",{children:[(0,t.jsx)(ScanProgressBar,{}),(0,t.jsx)(LibraryHeader,{}),(0,t.jsx)(LibraryToolbar,{collectionList:e,unmatchedLocalFiles:a,ignoredLocalFiles:r,isLoading:n}),(0,t.jsx)(ContinueWatching,{list:i,isLoading:n}),(0,t.jsx)(LibraryCollectionLists,{collectionList:e,isLoading:n}),(0,t.jsx)(ScannerModal,{}),(0,t.jsx)(UnmatchedFileManager,{unmatchedGroups:l}),(0,t.jsx)(BulkActionModal,{})]})}},46656:function(e,n,i){"use strict";i.d(n,{U:function(){return AnimeSliderSkeletonItem}});var t=i(57437),a=i(37684);i(2265);let AnimeSliderSkeletonItem=()=>(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(a.O,{className:"min-w-[250px] max-w-[250px] h-[350px] bg-gray-700 rounded-md mt-8"})})},85713:function(e,n,i){"use strict";i.d(n,{aB:function(){return useDiscoverTrendingAnime},bG:function(){return useDiscoverUpcomingAnime},oG:function(){return useDiscoverTrendingMovies},t4:function(){return useDiscoverPopularAnime}});var t=i(33923),a=i(94152),r=i(6025);function useDiscoverTrendingAnime(){return(0,t.N)({queryKey:["discover-trending-anime"],initialPageParam:1,queryFn:async e=>{let{pageParam:n}=e;return(0,r.z)({page:n,perPage:20,sort:["TRENDING_DESC"]})},getNextPageParam:(e,n)=>{var i,t,a,r;let l=null==e?void 0:null===(t=e.Page)||void 0===t?void 0:null===(i=t.pageInfo)||void 0===i?void 0:i.currentPage,s=null==e?void 0:null===(r=e.Page)||void 0===r?void 0:null===(a=r.pageInfo)||void 0===a?void 0:a.hasNextPage;return l&&s&&l<4?n.length+1:void 0}})}function useDiscoverUpcomingAnime(){return(0,a.a)({queryKey:["discover-upcoming-anime"],queryFn:()=>(0,r.z)({page:1,perPage:20,sort:["TRENDING_DESC"],status:["NOT_YET_RELEASED"]})})}function useDiscoverPopularAnime(){return(0,a.a)({queryKey:["discover-popular-anime"],queryFn:()=>(0,r.z)({page:1,perPage:20,sort:["POPULARITY_DESC"]})})}function useDiscoverTrendingMovies(){return(0,a.a)({queryKey:["discover-trending-movies"],queryFn:()=>(0,r.z)({page:1,perPage:20,format:"MOVIE",sort:["TRENDING_DESC"]})})}},73199:function(e,n,i){"use strict";i.d(n,{K:function(){return DiscoverTrending},W:function(){return u}});var t=i(57437),a=i(2265),r=i(7214),l=i(7951),s=i(85713),o=i(77665),c=i(46656),d=i(23890);let u=(0,o.cn)(void 0);function DiscoverTrending(){var e;let{data:n,isLoading:i,fetchNextPage:o}=(0,s.aB)(),m=(0,d.b9)(u),v=(0,a.useMemo)(()=>Math.floor(6*Math.random()),[]);return(0,a.useEffect)(()=>{var e;m(null==n?void 0:null===(e=n.pages)||void 0===e?void 0:e.filter(Boolean).flatMap(e=>{var n;return null===(n=e.Page)||void 0===n?void 0:n.media}).filter(Boolean)[v])},[n]),(0,t.jsx)(l.i,{onSlideEnd:()=>o(),children:i?[...Array(10).keys()].map((e,n)=>(0,t.jsx)(c.U,{},n)):null==n?void 0:null===(e=n.pages)||void 0===e?void 0:e.filter(Boolean).flatMap(e=>{var n;return null===(n=e.Page)||void 0===n?void 0:n.media}).filter(Boolean).map(e=>(0,t.jsx)(r.k,{media:e,showLibraryBadge:!0,containerClassName:"min-w-[250px] max-w-[250px] mt-8"},e.id))})}},29506:function(e,n,i){"use strict";i.d(n,{H:function(){return useConfirmationDialog},U:function(){return ConfirmationDialog}});var t=i(57437);i(2265);var a=i(97622),r=i(33538),l=i(37122);function useConfirmationDialog(e){let n=(0,l.q)(!1);return{...n,...e}}let ConfirmationDialog=e=>{let{isOpen:n,close:i,onConfirm:l,title:s,description:o="Are you sure you want to continue?",actionText:c="Confirm",actionIntent:d="alert-subtle"}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.u_,{title:s,titleClassName:"text-center",isOpen:n,onClose:i,isClosable:!0,children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-center",children:o}),(0,t.jsxs)("div",{className:"flex gap-2 justify-center items-center",children:[(0,t.jsx)(a.zx,{intent:d,onClick:()=>{l(),i()},children:c}),(0,t.jsx)(a.zx,{intent:"white",onClick:i,children:"Cancel"})]})]})})})}},6025:function(e,n,i){"use strict";i.d(n,{z:function(){return searchAnilistMediaList}});var t=i(29222);async function searchAnilistMediaList(e){let{page:n,search:i,perPage:a,sort:r,status:l,genres:s,averageScoreGreater:o,season:c,seasonYear:d,format:u}=e;try{var m;let e=await t.Z.post("https://graphql.anilist.co",{query:"\n query ListMedia(\n $page: Int\n $search: String\n $perPage: Int\n $sort: [MediaSort]\n $status: [MediaStatus]\n $genres: [String]\n $averageScore_greater: Int\n $season: MediaSeason\n $seasonYear: Int\n $format: MediaFormat\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n hasNextPage\n total\n perPage\n currentPage\n lastPage\n }\n media(\n type: ANIME\n search: $search\n sort: $sort\n status_in: $status\n isAdult: false\n format: $format\n genre_in: $genres\n averageScore_greater: $averageScore_greater\n season: $season\n seasonYear: $seasonYear\n format_not: MUSIC\n ) {\n ...basicMedia\n }\n }\n }\n fragment basicMedia on Media {\n id\n idMal\n siteUrl\n status(version: 2)\n season\n type\n format\n bannerImage\n episodes\n synonyms\n isAdult\n countryOfOrigin\n title {\n userPreferred\n romaji\n english\n native\n }\n coverImage {\n extraLarge\n large\n medium\n color\n }\n startDate {\n year\n month\n day\n }\n endDate {\n year\n month\n day\n }\n nextAiringEpisode {\n airingAt\n timeUntilAiring\n episode\n }\n }\n ",variables:{page:n,search:i,perPage:a,sort:r,status:l,genres:s,averageScore_greater:o,season:c,seasonYear:d,format:u}});return null===(m=e.data)||void 0===m?void 0:m.data}catch(e){console.error(e);return}}},98602:function(e,n,i){"use strict";i.d(n,{$g:function(){return useDefaultSettingsPaths},VP:function(){return useOpenDefaultMediaPlayer},cg:function(){return useOpenInExplorer},tB:function(){return useOpenMediaEntryInExplorer}});var t=i(51472),a=i(57638);function useDefaultSettingsPaths(){return{getDefaultVlcPath:e=>{switch(e){case"windows":default:return"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";case"linux":return"/usr/bin/vlc";case"darwin":return"/Applications/VLC.app/Contents/MacOS/VLC"}},getDefaultQBittorrentPath:e=>{switch(e){case"windows":default:return"C:/Program Files/qBittorrent/qbittorrent.exe";case"linux":return"/usr/bin/qbittorrent";case"darwin":return"/Applications/Client.app/Contents/MacOS/qBittorrent"}}}}function useOpenDefaultMediaPlayer(){let{mutate:e}=(0,t.$U)({endpoint:a.E.START_MEDIA_PLAYER,mutationKey:["open-default-media-player"]});return{startDefaultMediaPlayer:()=>e()}}function useOpenMediaEntryInExplorer(){let{mutate:e}=(0,t.$U)({endpoint:a.E.OPEN_MEDIA_ENTRY_IN_EXPLORER,mutationKey:["open-media-entry-in-explorer"]});return{openEntryInExplorer:n=>e({mediaId:n})}}function useOpenInExplorer(){let{mutate:e}=(0,t.$U)({endpoint:a.E.OPEN_IN_EXPLORER,mutationKey:["open-in-explorer"]});return{openInExplorer:n=>e({path:n})}}}},function(e){e.O(0,[492,890,999,685,702,17,898,265,726,669,697,244,912,430,345,832,214,700,971,472,744],function(){return e(e.s=71672)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/anilist/page-728be06c5500b3d9.js b/web/_next/static/chunks/app/(main)/anilist/page-728be06c5500b3d9.js new file mode 100644 index 00000000..1daec443 --- /dev/null +++ b/web/_next/static/chunks/app/(main)/anilist/page-728be06c5500b3d9.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[424],{14398:function(e,t,n){Promise.resolve().then(n.bind(n,48289))},48289:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Home}});var r=n(57437),i=n(2265),a=n(76732),s=n(54487),l=n(77665),o=n(23890),u=n(7214),d=n(11305),c=n(68260),m=n(51864),v=n.n(m),f=n(90466),b=n(88356),h=n(34654);let g=(0,l.cn)(0),x=(0,l.cn)("");function anilist_filterEntriesByTitle(e,t){if(e.length>0&&t.length>0){let n=t.toLowerCase().trim().replace(/\s+/g," ");return e.filter(e=>{var t,r,i,a,s,l,o,u,d,c,m;return(null===(i=e.media)||void 0===i?void 0:null===(r=i.title)||void 0===r?void 0:null===(t=r.english)||void 0===t?void 0:t.toLowerCase().includes(n))||(null===(l=e.media)||void 0===l?void 0:null===(s=l.title)||void 0===s?void 0:null===(a=s.userPreferred)||void 0===a?void 0:a.toLowerCase().includes(n))||(null===(d=e.media)||void 0===d?void 0:null===(u=d.title)||void 0===u?void 0:null===(o=u.romaji)||void 0===o?void 0:o.toLowerCase().includes(n))||(null===(m=e.media)||void 0===m?void 0:null===(c=m.synonyms)||void 0===c?void 0:c.some(e=>null==e?void 0:e.toLowerCase().includes(n)))})}return e}function Home(){let[e,t]=(0,o.KO)(g),[n,l]=(0,i.useTransition)(),{anilistLists:u}=(0,c.uJ)(),m=(0,o.Dv)(x),f=(0,h.N)(m,500),b=(0,i.useMemo)(()=>u.map(e=>{if(!e)return;let t=null==e?void 0:e.entries;return t=v()(t,e=>{var t,n;return null==e?void 0:null===(n=e.media)||void 0===n?void 0:null===(t=n.title)||void 0===t?void 0:t.userPreferred}).reverse(),t=v()(t,e=>null==e?void 0:e.score).reverse(),e.entries=t,e}),[u]),p=(0,i.useCallback)(e=>{let t=structuredClone(null==b?void 0:b.find(t=>(null==t?void 0:t.status)===e));if(t)return t.entries=anilist_filterEntriesByTitle(t.entries,f),t},[b,f]),N=(0,i.useMemo)(()=>p("CURRENT"),[f,p,u]),T=(0,i.useMemo)(()=>p("PLANNING"),[f,p,u]),P=(0,i.useMemo)(()=>p("PAUSED"),[f,p,u]),E=(0,i.useMemo)(()=>p("COMPLETED"),[f,p,u]),C=(0,i.useMemo)(()=>p("DROPPED"),[f,p,u]);return(0,r.jsxs)("main",{className:"px-4 relative",children:[(0,r.jsx)(SearchInput,{}),(0,r.jsxs)(a.nP,{navClassName:"border-none",tabClassName:(0,s.cn)("text-lg rounded-none border-b border-b-2 border-b-transparent data-[selected=true]:text-white data-[selected=true]:border-brand-400","hover:bg-transparent dark:hover:bg-transparent hover:text-white","dark:border-transparent dark:hover:border-b-transparent dark:data-[selected=true]:border-brand-400 dark:data-[selected=true]:text-white","hover:bg-[--highlight]"),selectedIndex:e,onIndexChange:e=>{l(()=>{t(e)})},children:[(0,r.jsxs)(a.nP.Nav,{children:[(0,r.jsx)(a.nP.Tab,{children:"Currently Watching"}),(0,r.jsx)(a.nP.Tab,{children:"Planning"}),(0,r.jsx)(a.nP.Tab,{children:"Paused"}),(0,r.jsx)(a.nP.Tab,{children:"Completed"}),(0,r.jsx)(a.nP.Tab,{children:"Dropped"})]}),(0,r.jsxs)(a.nP.Container,{className:"pt-8 relative",children:[(0,r.jsx)(d.fz,{className:(0,s.cn)("z-50 backdrop-blur-none",{hidden:!n})}),(0,r.jsx)(a.nP.Panel,{children:(0,r.jsx)(y,{list:N})}),(0,r.jsx)(a.nP.Panel,{children:(0,r.jsx)(y,{list:T})}),(0,r.jsx)(a.nP.Panel,{children:(0,r.jsx)(y,{list:P})}),(0,r.jsx)(a.nP.Panel,{children:(0,r.jsx)(y,{list:E})}),(0,r.jsx)(a.nP.Panel,{children:(0,r.jsx)(y,{list:C})})]})]})]})}let y=i.memo(e=>{var t,n;let{list:i}=e;return(0,r.jsx)("div",{className:"px-4 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-7 min-[2000px]:grid-cols-8 gap-4",children:null==i?void 0:null===(n=i.entries)||void 0===n?void 0:null===(t=n.filter(Boolean))||void 0===t?void 0:t.map(e=>{var t;return(0,r.jsx)(u.k,{listData:{progress:e.progress,score:e.score,status:e.status},showLibraryBadge:!0,media:e.media},"".concat(null===(t=e.media)||void 0===t?void 0:t.id))})})}),SearchInput=()=>{let[e,t]=(0,o.KO)(x),[n,a]=(0,i.useState)(e);return(0,r.jsx)("div",{className:"px-4 mb-8",children:(0,r.jsx)(f.o,{leftIcon:(0,r.jsx)(b.j,{}),value:n,onChange:e=>{a(e.target.value),(0,i.startTransition)(()=>{t(e.target.value)})}})})}},67998:function(e,t,n){"use strict";n.d(t,{DN:function(){return a},SN:function(){return useWebsocketMessageListener},oJ:function(){return s}});var r=n(2265),i=n(77665);let a=(0,r.createContext)(null),s=(0,i.cn)(null);function useWebsocketMessageListener(e){let{type:t,onMessage:n}=e,i=(0,r.useContext)(a);return(0,r.useEffect)(()=>{if(i){let messageHandler=e=>{try{let r=JSON.parse(e.data);r.type&&r.type===t&&n(r.payload)}catch(e){}};return i.addEventListener("message",messageHandler),()=>{i.removeEventListener("message",messageHandler)}}},[i,n]),null}},76732:function(e,t,n){"use strict";n.d(t,{ks:function(){return d},nP:function(){return g}});var r=n(57437),i=n(2265),a=n(54487),s=n(96061),l=n(61396),o=n.n(l);let u=(0,a.xH)({nav:(0,s.j)(["UI-NavigationTabs__nav","flex w-full overflow-hidden overflow-x-auto"]),tab:(0,s.j)(["UI-NavigationTabs__tab","group/navtabs inline-flex flex-none shrink-0 basis-auto items-center py-4 px-2 font-normal text-sm transition outline-none px-4 min-w-0 justify-center relative","focus-visible:bg-[--highlight]","text-[--muted]","hover:text-[--text-color] hover:bg-[--highlight] rounded-md","data-[selected=true]:border-[--brand] data-[selected=true]:font-semibold data-[selected=true]:text-white"]),icon:(0,s.j)(["UI-NavigationTabs__icon","-ml-0.5 mr-2 h-5 w-5"])}),d=i.forwardRef((e,t)=>{let{children:n,className:i,navClassName:s,tabClassName:l,iconClassName:d,items:c,...m}=e;return(0,r.jsx)("nav",{ref:t,className:(0,a.cn)(u.nav(),s,i),...m,children:c.map(e=>{var t;return(0,r.jsxs)(o(),{href:null!==(t=e.href)&&void 0!==t?t:"#",className:(0,a.cn)(u.tab(),l),"aria-current":e.isCurrent?"page":void 0,"data-selected":e.isCurrent,children:[e.icon&&(0,r.jsx)(e.icon,{className:(0,a.cn)(u.icon(),d),"aria-hidden":"true","data-selected":e.isCurrent}),(0,r.jsx)("span",{children:e.name}),e.addon]},e.name)})})});d.displayName="NavigationTabs";var c=n(82817);let m=(0,a.xH)({panels:(0,s.j)(["UI-TabPanels__panels"])}),v=(0,a.xH)({nav:(0,s.j)(["UI-TabNav__nav","isolate flex border-b"])}),f=(0,a.xH)({tab:(0,s.j)(["UI-Tab__tab","relative min-w-0 flex-1 overflow-hidden py-4 px-4 text-sm font-medium text-center focus:z-10","flex items-center justify-center gap-2 border-b-2 -mb-px","text-[--muted] data-[selected=true]:text-[--brand] data-[selected=true]:border-brand dark:data-[selected=true]:border-brand-200","border-[--border] hover:border-gray-300 dark:hover:border-gray-600","focus-visible:bg-[--highlight] outline-none","cursor-pointer"])}),_TabPanels=e=>{let{children:t,panelsClassName:n,navClassName:s,tabClassName:l,className:o,selectedIndex:u,onIndexChange:d,ref:v,...f}=e,b=i.Children.map(t,e=>i.isValidElement(e)&&"TabNav"===(0,a.C2)(e)?i.cloneElement(e,{tabClassName:l,navClassName:s}):e);return(0,r.jsx)(c.O.Group,{selectedIndex:u,onChange:d,children:(0,r.jsx)("div",{className:(0,a.cn)(m.panels(),n),...f,ref:v,children:b})})};_TabPanels.displayName="TabPanels";let b=i.forwardRef((e,t)=>{let{children:n,className:s,navClassName:l,tabClassName:o,...u}=e,d=i.Children.map(n,e=>i.isValidElement(e)&&"Tab"===(0,a.C2)(e)?i.cloneElement(e,{tabClassName:o}):e);return(0,r.jsx)(c.O.List,{className:(0,a.cn)(v.nav(),l,s),...u,ref:t,children:d})});b.displayName="TabNav";let h=i.forwardRef((e,t)=>{let{children:n,className:s,tabClassName:l,...o}=e;return(0,r.jsx)(c.O,{as:i.Fragment,children:e=>{let{selected:i}=e;return(0,r.jsx)("div",{className:(0,a.cn)(f.tab(),l,s),...o,ref:t,"data-selected":i,children:n})}})});h.displayName="Tab",_TabPanels.Tab=h,_TabPanels.Nav=b,_TabPanels.Container=i.memo(c.O.Panels),c.O.Panels,_TabPanels.Panel=c.O.Panel,c.O.Panel,_TabPanels.Container.displayName="TabContainer",_TabPanels.Panel.displayName="TabPanel";let g=(0,a.Fm)(_TabPanels)},34654:function(e,t,n){"use strict";n.d(t,{E:function(){return useDebounceWithSet},N:function(){return useDebounce}});var r=n(2265);function useDebounce(e,t){let[n,i]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>i(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function useDebounceWithSet(e,t){let[n,i]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>i(e),t||500);return()=>{clearTimeout(n)}},[e,t]),[n,i]}},68260:function(e,t,n){"use strict";n.d(t,{Jg:function(){return useMediaDetails},Pe:function(){return useManuallyMatchLocalFiles},Tc:function(){return useAnilistCollectionListener},X7:function(){return useMediaEntry},bo:function(){return useFetchMediaEntrySuggestions},du:function(){return useRefreshAnilistCollection},uJ:function(){return useAnilistCollection}});var r=n(51472),i=n(57638),a=n(38038),s=n(5925),l=n(67998);function useAnilistCollectionListener(){let e=(0,a.NL)();(0,l.SN)({type:i.f.REFRESHED_ANILIST_COLLECTION,onMessage:t=>{(async()=>{await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-anilist-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})})()}})}function useMediaEntry(e){let t="string"==typeof e?Number(e):e,{data:n,isLoading:a}=(0,r.tZ)({endpoint:i.E.MEDIA_ENTRY.replace("{id}",String(t)),queryKey:["get-media-entry",t],enabled:!!t});return{mediaEntry:n,mediaEntryLoading:a}}function useAnilistCollection(){var e,t;let{data:n,isLoading:a}=(0,r.tZ)({endpoint:i.E.ANILIST_COLLECTION,queryKey:["get-anilist-collection"]});return{anilistLists:null!==(t=null==n?void 0:null===(e=n.MediaListCollection)||void 0===e?void 0:e.lists)&&void 0!==t?t:[],isLoading:a}}function useRefreshAnilistCollection(){let e=(0,a.NL)(),{mutate:t,isPending:n}=(0,r.$U)({endpoint:i.E.ANILIST_COLLECTION,mutationKey:["refresh-anilist-collection"],onSuccess:async()=>{s.ZP.success("AniList is up-to-date"),await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-anilist-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})}});return{refreshAnilistCollection:t,isPending:n}}function useMediaDetails(e){let t="string"==typeof e?Number(e):e,{data:n,isLoading:a}=(0,r.tZ)({endpoint:i.E.ANILIST_MEDIA_DETAILS.replace("{id}",String(t)),queryKey:["get-anilist-media-details",t],enabled:!!t});return{mediaDetails:n,mediaDetailsLoading:a}}function useFetchMediaEntrySuggestions(){let{mutate:e,data:t,isPending:n,reset:a}=(0,r.$U)({endpoint:i.E.MEDIA_ENTRY_SUGGESTIONS,mutationKey:["media-entry-suggestions"]});return{fetchSuggestions:t=>e({dir:t}),suggestions:null!=t?t:[],isPending:n,resetSuggestions:a}}function useManuallyMatchLocalFiles(){let e=(0,a.NL)(),{mutate:t,isPending:n}=(0,r.$U)({endpoint:i.E.MEDIA_ENTRY_MANUAL_MATCH,mutationKey:["media-entry-manual-match"],onSuccess:async()=>{await e.refetchQueries({queryKey:["get-library-collection"]})}});return{manuallyMatchEntry:(n,r)=>{t(n,{onSuccess:async()=>{n.mediaId&&await e.refetchQueries({queryKey:["get-media-entry",n.mediaId]}),r()}})},isPending:n}}}},function(e){e.O(0,[492,890,999,685,702,17,898,265,726,669,697,235,912,430,345,832,214,971,472,744],function(){return e(e.s=14398)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/discover/page-48662275260624ad.js b/web/_next/static/chunks/app/(main)/discover/page-48662275260624ad.js new file mode 100644 index 00000000..8aa08cec --- /dev/null +++ b/web/_next/static/chunks/app/(main)/discover/page-48662275260624ad.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[304],{24034:function(e,r,t){var n=t(65491).w_;e.exports.G=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}},753:function(e,r,t){var n=t(65491).w_;e.exports.F=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}},43122:function(e,r,t){Promise.resolve().then(t.bind(t,14067))},46656:function(e,r,t){"use strict";t.d(r,{U:function(){return AnimeSliderSkeletonItem}});var n=t(57437),a=t(37684);t(2265);let AnimeSliderSkeletonItem=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(a.O,{className:"min-w-[250px] max-w-[250px] h-[350px] bg-gray-700 rounded-md mt-8"})})},85713:function(e,r,t){"use strict";t.d(r,{aB:function(){return useDiscoverTrendingAnime},bG:function(){return useDiscoverUpcomingAnime},oG:function(){return useDiscoverTrendingMovies},t4:function(){return useDiscoverPopularAnime}});var n=t(33923),a=t(94152),s=t(6025);function useDiscoverTrendingAnime(){return(0,n.N)({queryKey:["discover-trending-anime"],initialPageParam:1,queryFn:async e=>{let{pageParam:r}=e;return(0,s.z)({page:r,perPage:20,sort:["TRENDING_DESC"]})},getNextPageParam:(e,r)=>{var t,n,a,s;let i=null==e?void 0:null===(n=e.Page)||void 0===n?void 0:null===(t=n.pageInfo)||void 0===t?void 0:t.currentPage,o=null==e?void 0:null===(s=e.Page)||void 0===s?void 0:null===(a=s.pageInfo)||void 0===a?void 0:a.hasNextPage;return i&&o&&i<4?r.length+1:void 0}})}function useDiscoverUpcomingAnime(){return(0,a.a)({queryKey:["discover-upcoming-anime"],queryFn:()=>(0,s.z)({page:1,perPage:20,sort:["TRENDING_DESC"],status:["NOT_YET_RELEASED"]})})}function useDiscoverPopularAnime(){return(0,a.a)({queryKey:["discover-popular-anime"],queryFn:()=>(0,s.z)({page:1,perPage:20,sort:["POPULARITY_DESC"]})})}function useDiscoverTrendingMovies(){return(0,a.a)({queryKey:["discover-trending-movies"],queryFn:()=>(0,s.z)({page:1,perPage:20,format:"MOVIE",sort:["TRENDING_DESC"]})})}},73199:function(e,r,t){"use strict";t.d(r,{K:function(){return DiscoverTrending},W:function(){return d}});var n=t(57437),a=t(2265),s=t(7214),i=t(7951),o=t(85713),l=t(77665),c=t(46656),u=t(23890);let d=(0,l.cn)(void 0);function DiscoverTrending(){var e;let{data:r,isLoading:t,fetchNextPage:l}=(0,o.aB)(),g=(0,u.b9)(d),f=(0,a.useMemo)(()=>Math.floor(6*Math.random()),[]);return(0,a.useEffect)(()=>{var e;g(null==r?void 0:null===(e=r.pages)||void 0===e?void 0:e.filter(Boolean).flatMap(e=>{var r;return null===(r=e.Page)||void 0===r?void 0:r.media}).filter(Boolean)[f])},[r]),(0,n.jsx)(i.i,{onSlideEnd:()=>l(),children:t?[...Array(10).keys()].map((e,r)=>(0,n.jsx)(c.U,{},r)):null==r?void 0:null===(e=r.pages)||void 0===e?void 0:e.filter(Boolean).flatMap(e=>{var r;return null===(r=e.Page)||void 0===r?void 0:r.media}).filter(Boolean).map(e=>(0,n.jsx)(s.k,{media:e,showLibraryBadge:!0,containerClassName:"min-w-[250px] max-w-[250px] mt-8"},e.id))})}},14067:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return Page}});var n=t(57437);t(2265);var a=t(73199),s=t(7214),i=t(7951),o=t(85713),l=t(46656);function DiscoverUpcoming(){var e,r;let{data:t,isLoading:a}=(0,o.bG)();return(0,n.jsx)(i.i,{children:a?[...Array(10).keys()].map((e,r)=>(0,n.jsx)(l.U,{},r)):null==t?void 0:null===(r=t.Page)||void 0===r?void 0:null===(e=r.media)||void 0===e?void 0:e.filter(Boolean).map(e=>(0,n.jsx)(s.k,{media:e,showLibraryBadge:!0,containerClassName:"min-w-[250px] max-w-[250px] mt-8"},e.id))})}function DiscoverPopular(){var e,r;let{data:t,isLoading:a}=(0,o.t4)();return(0,n.jsx)(i.i,{children:a?[...Array(10).keys()].map((e,r)=>(0,n.jsx)(l.U,{},r)):null==t?void 0:null===(r=t.Page)||void 0===r?void 0:null===(e=r.media)||void 0===e?void 0:e.filter(Boolean).map(e=>(0,n.jsx)(s.k,{media:e,showLibraryBadge:!0,containerClassName:"min-w-[250px] max-w-[250px] mt-8"},e.id))})}function DiscoverTrendingMovies(){var e,r;let{data:t,isLoading:a}=(0,o.oG)();return(0,n.jsx)(i.i,{children:a?[...Array(10).keys()].map((e,r)=>(0,n.jsx)(l.U,{},r)):null==t?void 0:null===(r=t.Page)||void 0===r?void 0:null===(e=r.media)||void 0===e?void 0:e.filter(Boolean).map(e=>(0,n.jsx)(s.k,{media:e,showLibraryBadge:!0,containerClassName:"min-w-[250px] max-w-[250px] mt-8"},e.id))})}var c=t(16691),u=t.n(c),d=t(37684),g=t(90466),f=t(88356),v=t(23890),m=t(24033);function DiscoverPageHeader(){let e=(0,m.useRouter)(),r=(0,v.Dv)(a.W);return(0,n.jsx)("div",{className:"__header h-[20rem]",children:(0,n.jsxs)("div",{className:"h-[30rem] w-full md:w-[calc(100%-5rem)] flex-none object-cover object-center absolute top-0 overflow-hidden",children:[(0,n.jsx)("div",{className:"w-full absolute z-[2] top-0 h-[15rem] bg-gradient-to-b from-[--background-color] to-transparent via"}),(null==r?void 0:r.bannerImage)&&(0,n.jsx)(u(),{src:r.bannerImage,alt:"banner image",fill:!0,quality:100,priority:!0,sizes:"100vw",className:"object-cover object-center z-[1]"}),!(null==r?void 0:r.bannerImage)&&(0,n.jsx)(d.O,{className:"z-0 h-full absolute w-full"}),(0,n.jsx)("div",{className:"w-full z-[2] absolute bottom-0 h-[20rem] bg-gradient-to-t from-[--background-color] via-[--background-color] via-opacity-50 via-10% to-transparent"}),(0,n.jsx)("div",{className:"absolute bottom-16 right-8 z-[2] cursor-pointer opacity-80 transition-opacity hover:opacity-100",onClick:()=>e.push("/search"),children:(0,n.jsx)(g.o,{leftIcon:(0,n.jsx)(f.j,{}),value:"Search by genres, seasons…",isReadOnly:!0,size:"lg",className:"pointer-events-none w-96",onChange:()=>{}})})]})})}function Page(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(DiscoverPageHeader,{}),(0,n.jsxs)("div",{className:"px-4 pt-8 space-y-10 pb-10",children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h2",{children:"Popular this season"}),(0,n.jsx)(a.K,{})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h2",{children:"Popular shows"}),(0,n.jsx)(DiscoverPopular,{})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h2",{children:"Upcoming"}),(0,n.jsx)(DiscoverUpcoming,{})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("h2",{children:"Trending movies"}),(0,n.jsx)(DiscoverTrendingMovies,{})]})]})]})}},7951:function(e,r,t){"use strict";t.d(r,{i:function(){return Slider}});var n=t(57437),a=t(2265),s=t(64723);function useDraggableScroll(e){let r,t,n,i,o,l,c,{decayRate:u=.95,safeDisplacement:d=10,applyRubberBandEffect:g=!1,activeMouseButton:f="Left",isMounted:v=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},m=(0,a.useRef)({isMouseDown:!1,isDraggingX:!1,isDraggingY:!1,initialMouseX:0,initialMouseY:0,lastMouseX:0,lastMouseY:0,scrollSpeedX:0,scrollSpeedY:0,lastScrollX:0,lastScrollY:0}),h=!1,p=!1,x=0,P=0,y=1/60*1e3;(0,s.Z)(()=>{v&&(h="scroll"===window.getComputedStyle(e.current).overflowX,p="scroll"===window.getComputedStyle(e.current).overflowY,x=e.current.scrollWidth-e.current.clientWidth,P=e.current.scrollHeight-e.current.clientHeight,r=window.getComputedStyle(e.current).cursor,t=[],n=[],i=[],e.current.childNodes.forEach(e=>{t.push(window.getComputedStyle(e).cursor),n.push("none"===window.getComputedStyle(e).transform?"":window.getComputedStyle(e).transform),i.push("none"===window.getComputedStyle(e).transition?"":window.getComputedStyle(e).transition)}))},[v]);let runScroll=()=>{let r=m.current.scrollSpeedX*y,t=m.current.scrollSpeedY*y,n=e.current.scrollLeft+r,a=e.current.scrollTop+t;e.current.scrollLeft=n,e.current.scrollTop=a,m.current.lastScrollX=n,m.current.lastScrollY=a},rubberBandCallback=r=>{let t=r.clientX-m.current.initialMouseX,n=r.clientY-m.current.initialMouseY,{clientWidth:a,clientHeight:s}=e.current,i=0,o=0;h&&p?(i=.3*a*Math.sign(t)*Math.log10(1+.5*Math.abs(t)/a),o=.3*s*Math.sign(n)*Math.log10(1+.5*Math.abs(n)/s)):h?i=.3*a*Math.sign(t)*Math.log10(1+.5*Math.abs(t)/a):p&&(o=.3*s*Math.sign(n)*Math.log10(1+.5*Math.abs(n)/s)),e.current.childNodes.forEach(e=>{e.style.transform="translate3d(".concat(i,"px, ").concat(o,"px, 0px)"),e.style.transition="transform 0ms"})},recoverChildStyle=()=>{e.current.childNodes.forEach((e,r)=>{e.style.transform=n[r],e.style.transition=i[r]})},callbackMomentum=()=>{l=setInterval(()=>{let r=m.current.scrollSpeedX,t=r*u;m.current.scrollSpeedX=t;let n=e.current.scrollLeft<=0,a=e.current.scrollLeft>=x;runScroll(),(.05>Math.abs(t)||m.current.isMouseDown||n||a)&&(m.current.scrollSpeedX=0,clearInterval(l))},y),c=setInterval(()=>{let r=m.current.scrollSpeedY,t=r*u;m.current.scrollSpeedY=t;let n=e.current.scrollTop<=0,a=e.current.scrollTop>=P;runScroll(),(.05>Math.abs(t)||m.current.isMouseDown||n||a)&&(m.current.scrollSpeedY=0,clearInterval(c))},y),m.current.isDraggingX=!1,m.current.isDraggingY=!1,g&&(e.current.childNodes.forEach(e=>{e.style.transform="translate3d(0px, 0px, 0px)",e.style.transition="transform ".concat(250,"ms")}),o=setTimeout(recoverChildStyle,250))},preventClick=e=>{e.preventDefault(),e.stopImmediatePropagation()},getIsMousePressActive=e=>"Left"===f&&1===e||"Middle"===f&&4===e||"Right"===f&&2===e,onMouseUp=n=>{let a=m.current.isDraggingX||m.current.isDraggingY,s=m.current.initialMouseX-n.clientX,i=m.current.initialMouseY-n.clientY,o=a&&(Math.abs(s)>d||Math.abs(i)>d);o?e.current.childNodes.forEach(e=>{e.addEventListener("click",preventClick)}):e.current.childNodes.forEach(e=>{e.removeEventListener("click",preventClick)}),m.current.isMouseDown=!1,m.current.lastMouseX=0,m.current.lastMouseY=0,e.current.style.cursor=r,e.current.childNodes.forEach((e,r)=>{e.style.cursor=t[r]}),o&&callbackMomentum()},onMouseMove=r=>{if(!m.current.isMouseDown)return;r.preventDefault();let t=m.current.lastMouseX-r.clientX;m.current.lastMouseX=r.clientX,m.current.scrollSpeedX=t/y,m.current.isDraggingX=!0;let n=m.current.lastMouseY-r.clientY;m.current.lastMouseY=r.clientY,m.current.scrollSpeedY=n/y,m.current.isDraggingY=!0,e.current.style.cursor="grabbing",e.current.childNodes.forEach(e=>{e.style.cursor="grabbing"});let a=e.current.scrollLeft<=0&&h,s=e.current.scrollLeft>=x&&h,i=e.current.scrollTop<=0&&p,o=e.current.scrollTop>=P&&p;(a||s||i||o)&&g&&rubberBandCallback(r),runScroll()},handleResize=()=>{x=e.current.scrollWidth-e.current.clientWidth,P=e.current.scrollHeight-e.current.clientHeight};return(0,a.useEffect)(()=>(v&&(window.addEventListener("mouseup",onMouseUp),window.addEventListener("mousemove",onMouseMove),window.addEventListener("resize",handleResize)),()=>{window.removeEventListener("mouseup",onMouseUp),window.removeEventListener("mousemove",onMouseMove),window.removeEventListener("resize",handleResize),clearInterval(l),clearInterval(c),clearTimeout(o)}),[v]),{events:{onMouseDown:e=>{let r=getIsMousePressActive(e.buttons);r&&(m.current.isMouseDown=!0,m.current.lastMouseX=e.clientX,m.current.lastMouseY=e.clientY,m.current.initialMouseX=e.clientX,m.current.initialMouseY=e.clientY)}}}}var i=t(24034),o=t(753),l=t(54487),c=t(28979);let Slider=e=>{let{children:r,onSlideEnd:t,...u}=e,d=(0,a.useRef)(),{events:g}=useDraggableScroll(d,{decayRate:.96,safeDisplacement:20}),[f,v]=(0,a.useState)(!0),[m,h]=(0,a.useState)(!1),[p,x]=(0,a.useState)(!1);function slideLeft(){let e=d.current;e&&e.scrollTo({left:e.scrollLeft-500,behavior:"smooth"})}function slideRight(){let e=d.current;e&&e.scrollTo({left:e.scrollLeft+500,behavior:"smooth"})}return(0,c.Z)(()=>{if(!f&&m){t&&t();let e=setTimeout(()=>{let e=d.current;e&&e.scrollTo({left:e.scrollLeft+500,behavior:"smooth"})},1e3);return()=>clearTimeout(e)}},[f,m]),(0,s.Z)(()=>{d.current.clientWidth{let e=d.current;if(e){let r=0===e.scrollLeft,t=e.scrollLeft+e.clientWidth===e.scrollWidth;v(r),h(t)}},className:"flex max-w-full w-full space-x-3 overflow-x-scroll scrollbar-hide scroll",...g,ref:d,children:r}),(0,n.jsx)("div",{onClick:slideRight,className:(0,l.cn)("flex items-center invisible cursor-pointer hover:text-action absolute right-0 bg-gradient-to-l from-[--background-color] z-40 h-full w-16 hover:opacity-100",{"lg:visible":!m&&p}),children:(0,n.jsx)(o.F,{className:"w-7 h-7 stroke-2 mx-auto"})})]})}},37684:function(e,r,t){"use strict";t.d(r,{O:function(){return l}});var n=t(57437),a=t(54487),s=t(96061),i=t(2265);let o=(0,a.xH)({skeleton:(0,s.j)("UI-Skeleton__skeleton",{variants:{type:{box:"h-14 bg-gray-100 dark:bg-gray-800 w-full rounded-[--radius] animate-pulse",text:"h-2 bg-gray-100 dark:bg-gray-800 rounded-[--radius] animate-purple"}},defaultVariants:{}})}),l=i.forwardRef((e,r)=>{let{children:t,className:s,type:i="box",skeletonClassName:l,...c}=e;return"text"===i?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,n.jsx)("div",{className:(0,a.cn)("w-full",o.skeleton({type:i}),l,s),...c,ref:r}),(0,n.jsx)("div",{className:(0,a.cn)("w-full",o.skeleton({type:i}),l,s),...c,ref:r}),(0,n.jsx)("div",{className:(0,a.cn)("w-full",o.skeleton({type:i}),l,s),...c,ref:r}),(0,n.jsx)("div",{className:(0,a.cn)("w-[98%]",o.skeleton({type:i}),l,s),...c,ref:r}),(0,n.jsx)("div",{className:(0,a.cn)("w-[95%]",o.skeleton({type:i}),l,s),...c,ref:r}),(0,n.jsx)("div",{className:(0,a.cn)("w-[90%]",o.skeleton({type:i}),l,s),...c,ref:r})]})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:(0,a.cn)(o.skeleton({type:i}),l,s),...c,ref:r})})});l.displayName="Skeleton"},6025:function(e,r,t){"use strict";t.d(r,{z:function(){return searchAnilistMediaList}});var n=t(29222);async function searchAnilistMediaList(e){let{page:r,search:t,perPage:a,sort:s,status:i,genres:o,averageScoreGreater:l,season:c,seasonYear:u,format:d}=e;try{var g;let e=await n.Z.post("https://graphql.anilist.co",{query:"\n query ListMedia(\n $page: Int\n $search: String\n $perPage: Int\n $sort: [MediaSort]\n $status: [MediaStatus]\n $genres: [String]\n $averageScore_greater: Int\n $season: MediaSeason\n $seasonYear: Int\n $format: MediaFormat\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n hasNextPage\n total\n perPage\n currentPage\n lastPage\n }\n media(\n type: ANIME\n search: $search\n sort: $sort\n status_in: $status\n isAdult: false\n format: $format\n genre_in: $genres\n averageScore_greater: $averageScore_greater\n season: $season\n seasonYear: $seasonYear\n format_not: MUSIC\n ) {\n ...basicMedia\n }\n }\n }\n fragment basicMedia on Media {\n id\n idMal\n siteUrl\n status(version: 2)\n season\n type\n format\n bannerImage\n episodes\n synonyms\n isAdult\n countryOfOrigin\n title {\n userPreferred\n romaji\n english\n native\n }\n coverImage {\n extraLarge\n large\n medium\n color\n }\n startDate {\n year\n month\n day\n }\n endDate {\n year\n month\n day\n }\n nextAiringEpisode {\n airingAt\n timeUntilAiring\n episode\n }\n }\n ",variables:{page:r,search:t,perPage:a,sort:s,status:i,genres:o,averageScore_greater:l,season:c,seasonYear:u,format:d}});return null===(g=e.data)||void 0===g?void 0:g.data}catch(e){console.error(e);return}}},66169:function(e,r,t){"use strict";function on(e){for(var r=[],t=1;t{let fetchFn=async()=>{let t;let a=r.options,s=r.fetchOptions?.meta?.fetchMore?.direction,i=r.state.data?.pages||[],o=r.state.data?.pageParams||[],l=!1,addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r.signal.aborted?l=!0:r.signal.addEventListener("abort",()=>{l=!0}),r.signal)})},c=r.options.queryFn||(()=>Promise.reject(Error(`Missing queryFn: '${r.options.queryHash}'`))),fetchPage=async(e,t,a)=>{if(l)return Promise.reject();if(null==t&&e.pages.length)return Promise.resolve(e);let s={queryKey:r.queryKey,pageParam:t,direction:a?"backward":"forward",meta:r.options.meta};addSignalProperty(s);let i=await c(s),{maxPages:o}=r.options,u=a?n.Ht:n.VX;return{pages:u(e.pages,i,o),pageParams:u(e.pageParams,t,o)}};if(s&&i.length){let e="backward"===s,r=e?getPreviousPageParam:getNextPageParam,n={pages:i,pageParams:o},l=r(a,n);t=await fetchPage(n,l,e)}else{t=await fetchPage({pages:[],pageParams:[]},o[0]??a.initialPageParam);let r=e??i.length;for(let e=1;er.options.persister?.(fetchFn,{queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},t):r.fetchFn=fetchFn}}}function getNextPageParam(e,{pages:r,pageParams:t}){let n=r.length-1;return e.getNextPageParam(r[n],r,t[n],t)}function getPreviousPageParam(e,{pages:r,pageParams:t}){return e.getPreviousPageParam?.(r[0],r,t[0],t)}function hasNextPage(e,r){return!!r&&null!=getNextPageParam(e,r)}function hasPreviousPage(e,r){return!!r&&!!e.getPreviousPageParam&&null!=getPreviousPageParam(e,r)}},33923:function(e,r,t){"use strict";t.d(r,{N:function(){return useInfiniteQuery}});var n=t(57501),a=t(18354),s=class extends n.z{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,r){super.setOptions({...e,behavior:(0,a.Gm)()},r)}getOptimisticResult(e){return e.behavior=(0,a.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){let{state:t}=e,n=super.createResult(e,r),{isFetching:s,isRefetching:i}=n,o=s&&t.fetchMeta?.fetchMore?.direction==="forward",l=s&&t.fetchMeta?.fetchMore?.direction==="backward";return{...n,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,a.Qy)(r,t.data),hasPreviousPage:(0,a.ZF)(r,t.data),isFetchingNextPage:o,isFetchingPreviousPage:l,isRefetching:i&&!o&&!l}}},i=t(30793);function useInfiniteQuery(e,r){return(0,i.r)(e,s,r)}}},function(e){e.O(0,[492,890,999,685,702,17,898,265,726,669,697,912,430,345,832,214,971,472,744],function(){return e(e.s=43122)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/entry/page-3e83c54eaf4afb8e.js b/web/_next/static/chunks/app/(main)/entry/page-3e83c54eaf4afb8e.js new file mode 100644 index 00000000..089adf77 --- /dev/null +++ b/web/_next/static/chunks/app/(main)/entry/page-3e83c54eaf4afb8e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[811],{19185:function(e,t,i){Promise.resolve().then(i.bind(i,21626))},21626:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return Page}});var l=i(57437),n=i(24033),a=i(2265),o=i(68260),s=i(37684),r=i(16691),d=i.n(r);function EntryHeaderBackground(e){var t,i,n,a,o,r,c;let{entry:u}=e;return(0,l.jsx)("div",{className:"__header h-[30rem] ",children:(0,l.jsxs)("div",{className:"h-[35rem] w-full md:w-[calc(100%-5rem)] flex-none object-cover object-center absolute top-0 overflow-hidden",children:[(0,l.jsx)("div",{className:"w-full absolute z-[2] top-0 h-[15rem] bg-gradient-to-b from-[--background-color] to-transparent via"}),(!!(null===(t=u.media)||void 0===t?void 0:t.bannerImage)||!!(null===(n=u.media)||void 0===n?void 0:null===(i=n.coverImage)||void 0===i?void 0:i.extraLarge))&&(0,l.jsx)(d(),{src:(null===(a=u.media)||void 0===a?void 0:a.bannerImage)||(null===(r=u.media)||void 0===r?void 0:null===(o=r.coverImage)||void 0===o?void 0:o.extraLarge)||"",alt:"banner image",fill:!0,quality:100,priority:!0,sizes:"100vw",className:"object-cover object-center z-[1]"}),(null===(c=u.media)||void 0===c?void 0:c.bannerImage)&&(0,l.jsx)(s.O,{className:"z-0 h-full absolute w-full"}),(0,l.jsx)("div",{className:"w-full z-[2] absolute bottom-0 h-[20rem] bg-gradient-to-t from-[--background-color] via-[--background-color] via-opacity-50 via-10% to-transparent"})]})})}var c=i(1022),u=i(42475),m=i(37376),g=i(87826),p=i(61396),v=i.n(p),x=i(45652),h=i.n(x),f=i(35073),j=i(76352),b=i(71151),y=i(73514),w=i(67701);function ScoreProgressBadges(e){let{score:t,progress:i,episodes:n}=e;return(0,l.jsxs)(l.Fragment,{children:[!!t&&(0,l.jsx)(m.C,{leftIcon:(0,l.jsx)(w.s,{}),size:"xl",intent:"primary-solid",className:t?t<5?"bg-red-500":t<7?"bg-orange-500":t<9?"bg-green-500":"bg-brand-500 text-white":"",children:t}),(0,l.jsx)(m.C,{size:"xl",className:"!text-lg font-bold !text-yellow-50",children:"".concat(null!=i?i:0,"/").concat(n||"-")})]})}var N=i(5790),C=i(23130),S=i(34813),I=i(97622),D=i(8538),k=i(88356),E=i(23890),_=i(33538),F=i(77665),M=i(7951),T=i(54487),P=i(59346),z=i(99374);let EpisodeListItem=e=>{var t,i;let{children:n,action:a,image:o,onClick:s,episodeTitle:r,description:c,title:u,fileName:m,isSelected:g,media:p,isWatched:v,unoptimizedImage:x,isInvalid:h,imageClassName:f,imageContainerClassName:j,className:b,...y}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:(0,T.cn)("border border-[--border] p-3 pr-12 rounded-lg relative transition hover:bg-gray-900 group/episode-list-item",{"border-brand-200 bg-gray-800 hover:bg-gray-800":g,"border-red-700":h},b),...y,children:[(0,l.jsxs)("div",{className:(0,T.cn)("flex gap-4 relative",{"cursor-pointer":!!s}),onClick:s,children:[(o||(null===(t=p.coverImage)||void 0===t?void 0:t.medium))&&(0,l.jsx)("div",{className:(0,T.cn)("h-24 w-24 flex-none rounded-md object-cover object-center relative overflow-hidden",j),children:(0,l.jsx)(d(),{src:o||(null===(i=p.coverImage)||void 0===i?void 0:i.medium)||"",alt:"episode image",fill:!0,quality:60,placeholder:(0,P.t)(700,475),sizes:"10rem",className:(0,T.cn)("object-cover object-center transition",{"opacity-30 group-hover/episode-list-item:opacity-100":v},f),"data-src":o})}),o&&x&&(0,l.jsx)("div",{className:"h-24 w-24 flex-none rounded-md object-cover object-center relative overflow-hidden",children:(0,l.jsx)("img",{src:o,alt:"episode image",className:"object-cover object-center absolute w-full h-full","data-src":o})}),(0,l.jsxs)("div",{className:"relative overflow-hidden",children:[h&&(0,l.jsxs)("p",{className:"flex gap-2 text-red-300 items-center",children:[(0,l.jsx)(z.C,{className:"text-lg text-red-500"})," Unidentified"]}),(0,l.jsx)("h4",{className:(0,T.cn)("font-medium transition line-clamp-2",{"opacity-50 group-hover/episode-list-item:opacity-100":v}),children:u}),!!r&&(0,l.jsx)("p",{className:(0,T.cn)("text-sm text-[--muted] line-clamp-2"),children:r}),!!m&&(0,l.jsx)("p",{className:"text-sm text-gray-600 truncate text-ellipsis",children:m}),!!c&&(0,l.jsx)("p",{className:"text-sm text-gray-500 line-clamp-2",children:c}),n&&n]})]}),a&&(0,l.jsx)("div",{className:"absolute right-1 top-1 flex flex-col items-center",children:a})]})})};var L=i(51472),A=i(57638),R=i(34654),U=i(3216),O=i(96061),B=i(90466),V=i(30054),G=i(31466);let K=(0,T.xH)({root:(0,O.j)(["UI-Pagination__root","flex gap-1 text-xs font-medium"]),item:(0,O.j)(["UI-Pagination__item","bg-transparent dark:bg-transparent text-base inline-flex h-8 w-8 items-center justify-center rounded border border-[--border] cursor-pointer","hover:bg-[--highlight] dark:hover:bg-[--highlight] hover:border-[--highlight] select-none","data-[selected=true]:bg-brand-500 data-[selected=true]:border-transparent data-[selected=true]:text-white data-[selected=true]:hover:bg-brand-500 data-[selected=true]:pointer-events-none","data-[disabled=true]:opacity-50 data-[disabled=true]:pointer-events-none data-[disabled=true]:cursor-not-allowed","outline-none ring-[--ring] focus-visible:ring-2"]),ellipsis:(0,O.j)(["UI-Pagination__ellipsis","flex p-2 items-center text-[1.05rem]"])}),_Pagination=e=>{let{children:t,rootClassName:i,itemClassName:n,className:o,ref:s,...r}=e,d=a.useMemo(()=>a.Children.map(t,e=>a.isValidElement(e)&&"PaginationItem"===(0,T.C2)(e)?a.cloneElement(e,{itemClassName:n}):e),[t]);return(0,l.jsx)("ul",{className:(0,T.cn)(K.root(),i,o),role:"list",...r,ref:s,children:d})};_Pagination.displayName="Pagination";let H=a.forwardRef((e,t)=>{let{value:i,className:n,itemClassName:a,ellipsisClassName:o,...s}=e;return(0,l.jsx)("li",{children:(0,l.jsx)("button",{className:(0,T.cn)(K.item(),a,n),...s,ref:t,children:i})})});H.displayName="PaginationItem";let Z=a.forwardRef((e,t)=>{let{isChevrons:i=!1,isDisabled:n=!1,direction:a,className:o,itemClassName:s,ellipsisClassName:r,...d}=e;return(0,l.jsx)("li",{children:(0,l.jsx)("button",{className:(0,T.cn)(K.item(),s,o),"data-disabled":"".concat(n),...d,ref:t,children:"left"===a?(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("polyline",{points:"11 17 6 12 11 7"}),(0,l.jsx)("polyline",{points:"18 17 13 12 18 7"})]}):(0,l.jsx)("polyline",{points:"15 18 9 12 15 6"})}):(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4",children:i?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("polyline",{points:"13 17 18 12 13 7"}),(0,l.jsx)("polyline",{points:"6 17 11 12 6 7"})]}):(0,l.jsx)("polyline",{points:"9 18 15 12 9 6"})})})})});Z.displayName="PaginationTrigger";let W=a.forwardRef((e,t)=>{let{className:i,ellipsisClassName:n,itemClassName:a,...o}=e;return(0,l.jsx)("li",{className:(0,T.cn)(K.ellipsis(),n,i),children:(0,l.jsx)("span",{...o,ref:t,children:"…"})})});W.displayName="PaginationEllipsis",_Pagination.Item=H,_Pagination.Ellipsis=W,_Pagination.Trigger=Z;let q=(0,T.Fm)(_Pagination);q.displayName="Pagination";var Y=i(53677),Q=i(65871),X=i(69802),$=i(10387),J=i(52770),ee=JSON.parse('{"filters":{"fr":"Filtres","en":"Filters"},"no-matching-result":{"fr":"Aucun r\xe9sultat ne correspond aux filtres","en":"No results matching filters"},"remove-filters":{"fr":"Retirer les filtres","en":"Remove all filters"},"page":{"fr":"Page","en":"Page"},"rows-selected":{"fr":"lignes s\xe9lectionn\xe9es","en":"rows selected"},"row-selected":{"fr":"ligne s\xe9lectionn\xe9e","en":"row selected"},"save":{"fr":"Enregistrer","en":"Save"},"cancel":{"fr":"Annuler","en":"Cancel"},"updating":{"fr":"Modification","en":"Updating"},"true":{"fr":"Vrai","en":"True"},"false":{"fr":"Faux","en":"False"}}');let et=(0,T.xH)({root:(0,O.j)(["UI-DataGridFilter__root","flex gap-2 items-center"])});function DataGridFilter(e){var t,i,n;let{locale:o}=(0,T.k9)(),{children:s,rootClassName:r,className:d,column:c,onRemove:u,...m}=e,g=getColumnHelperMeta(c,"filteringMeta"),p=(0,a.useMemo)(()=>c.getFilterValue(),[c.getFilterValue()]),v=(0,a.useMemo)(()=>c.setFilterValue,[c.setFilterValue]),x=g.icon,h=g.valueFormatter||getValueFormatter(c),f=null!==(n=g.options)&&void 0!==n?n:[],j=(0,a.useCallback)(e=>{v(e)},[]);return(0,l.jsxs)("div",{className:(0,T.cn)(et.root(),r,d),...m,children:["select"===g.type&&(!f||0===f.length)&&(0,l.jsx)("div",{className:"text-red-500",children:'/!\\ "Select" filtering option passed without options'}),"select"===g.type&&!!f&&f.length>0&&(0,l.jsx)(V.P,{leftIcon:x||(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:(0,l.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),leftAddon:g.name,options:[...f.map(e=>({value:e.value,label:h(e.value)}))],onChange:e=>j(e.target.value.trim().toLowerCase()),size:"sm",fieldClassName:"w-fit",className:"sm:w-auto pr-8 md:max-w-sm"}),"boolean"===g.type&&(0,l.jsx)(Y.h_,{dropdownClassName:"right-[inherit] left",trigger:(0,l.jsx)(ei,{options:g,value:h(p)}),children:(0,l.jsxs)(Y.h_.Group,{children:[(0,l.jsx)(Y.h_.Item,{onClick:()=>j(!0),children:"boolean"==typeof h(!0)?ee.true[o]:h(!0)}),(0,l.jsx)(Y.h_.Item,{onClick:()=>j(!1),children:"boolean"==typeof h(!1)?ee.false[o]:h(!1)})]})}),"checkbox"===g.type&&!!f.length&&(0,l.jsx)(Y.h_,{dropdownClassName:"right-[inherit] left",trigger:(0,l.jsx)(ei,{options:g,value:Array.isArray(p)?p.map(e=>h(e)):h(p)}),children:(0,l.jsx)(Y.h_.Group,{className:"p-1",children:(null===(t=g.options)||void 0===t?void 0:t.length)&&(0,l.jsx)(Q.cO,{options:g.options,value:p,onChange:j,checkboxContainerClassName:"flex flex-row-reverse w-full justify-between",checkboxLabelClassName:"cursor-pointer"})})}),"radio"===g.type&&!!f.length&&(0,l.jsx)(Y.h_,{dropdownClassName:"right-[inherit] left",trigger:(0,l.jsx)(ei,{options:g,value:Array.isArray(p)?p.map(e=>h(e)):h(p)}),children:(0,l.jsx)(Y.h_.Group,{className:"p-1",children:(null===(i=g.options)||void 0===i?void 0:i.length)&&(0,l.jsx)(X.E,{options:g.options,value:p,onChange:j,radioContainerClassName:"flex flex-row-reverse w-full justify-between",radioLabelClassName:"cursor-pointer"})})}),"date-range"===g.type&&(0,l.jsxs)("div",{className:(0,T.cn)(eh.filterDropdownButton(),"truncate overflow-ellipsis"),children:[g.icon&&(0,l.jsx)("span",{children:g.icon}),(0,l.jsxs)("span",{children:[g.name,":"]}),(0,l.jsx)(J.Dw,{value:p?{start:(0,$.Aj)(p.start.toISOString()),end:(0,$.Aj)(p.end.toISOString())}:void 0,onChange:e=>j({start:null==e?void 0:e.start.toDate((0,$.iT)()),end:null==e?void 0:e.end.toDate((0,$.iT)())}),intent:"unstyled",locale:o,hideTimeZone:!0,granularity:"day"})]}),(0,l.jsx)(I.PZ,{onClick:u,size:"sm"})]})}(0,T.xH)({root:(0,O.j)(["UI-DataGridActiveFilter__root","py-1 px-2 rounded-[--radius] border border-[--border] flex gap-2 items-center"])}),DataGridFilter.displayName="DataGridFilter";let ei=a.forwardRef((e,t)=>{let{children:i,options:n,value:a,...o}=e,s=Array.isArray(a)?a.length>2?[...a.slice(0,2),"..."].join(", "):a.join(", "):String(a);return(0,l.jsxs)("button",{className:(0,T.cn)(eh.filterDropdownButton(),"truncate overflow-ellipsis"),...o,ref:t,children:[n.icon&&(0,l.jsx)("span",{children:n.icon}),(0,l.jsxs)("span",{children:[n.name,":"]}),(0,l.jsx)("span",{className:"font-semibold flex flex-none overflow-hidden whitespace-normal",children:s})]})});ei.displayName="DataGridActiveFilter";var el=i(6469);function withEditing(e){return{editingMeta:{...e}}}function withFiltering(e){return{filteringMeta:{...e}}}let getFilterFn=e=>({select:"equalsString",boolean:"equals",checkbox:"arrIncludesSome",radio:"equalsString","date-range":"dateRangeFilter"})[e];function withValueFormatter(e){return{valueFormatter:e}}function getValueFormatter(e){var t;return(null===(t=e.columnDef.meta)||void 0===t?void 0:t.valueFormatter)||(e=>e)}function createDataGridColumns(e){return e({withFiltering,getFilterFn,withEditing,withValueFormatter})}function getColumnHelperMeta(e,t){var i;return null===(i=e.columnDef.meta)||void 0===i?void 0:i[t]}var en=i(11257),ea=i(69956);function useDataGridFiltering(e){let{table:t,columnFilters:i}=e,[l,n]=(0,a.useMemo)(()=>[t.getAllLeafColumns().filter(e=>e.getCanFilter()&&!!getColumnHelperMeta(e,"filteringMeta")),t.getAllLeafColumns().filter(e=>i.map(e=>e.id).includes(e.id))],[t.getAllLeafColumns(),i]),o=l.filter(e=>!i.map(e=>e.id).includes(e.id)),s=a.useCallback(e=>{let t=getColumnHelperMeta(e,"filteringMeta");if(t){var i,l,n,a,o;if("select"===t.type||"radio"===t.type)return null!==(n=null===(l=t.options)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:i.value)&&void 0!==n?n:"";if("boolean"===t.type)return!0;if("checkbox"===t.type)return null!==(o=null===(a=t.options)||void 0===a?void 0:a.map(e=>e.value))&&void 0!==o?o:[];if("date-range"===t.type)return{start:new Date,end:(0,en.Z)(new Date,7)}}return null},[]);return{getFilterDefaultValue:s,unselectedFilterableColumns:o,filteredColumns:n,filterableColumns:l}}let dateRangeFilter=(e,t,i)=>{let l=e.getValue(t);return l>=i.start&&l<=i.end||(0,ea.Z)(l,i.start)||(0,ea.Z)(l,i.end)};function useDataGridSize(){let[e,t]=(0,a.useState)(null),[i,l]=(0,a.useState)({width:0,height:0}),n=(0,a.useCallback)(()=>{l({width:(null==e?void 0:e.offsetWidth)||0,height:(null==e?void 0:e.offsetHeight)||0})},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]);return(0,T.OR)("resize",n),(0,T.LI)(()=>{n()},[null==e?void 0:e.offsetHeight,null==e?void 0:e.offsetWidth]),[t,i]}function useDataGridResponsiveness(e){let{hideColumns:t=[],table:i}=e,[l,{width:n}]=useDataGridSize();return a.useLayoutEffect(()=>{t.map(e=>{let{below:t,hide:l}=e;i.getAllLeafColumns().map(e=>{l.includes(e.id)&&(0!==n&&nt.getState().pagination.pageIndex,[t.getState().pagination.pageIndex]),u=(0,a.useMemo)(()=>t.getState().pagination.pageSize,[t.getState().pagination.pageSize]),m=(0,a.useMemo)(()=>t.getState().globalFilter,[t.getState().globalFilter]),g=(0,a.useMemo)(()=>t.getState().globalFilter,[t.getState().columnFilters]),p=(0,a.useMemo)(()=>t.getState().sorting,[t.getState().sorting]),v=(0,a.useRef)(s),x=(0,a.useRef)({data:[]}),[h,f]=(0,a.useState)([]),j=(0,a.useMemo)(()=>t.getState().rowSelection,[t.getState().rowSelection]),b=(0,a.useMemo)(()=>t.getRowModel().rows,[t.getRowModel().rows]);(0,a.useEffect)(()=>{r&&!o&&(console.error("[DataGrid] You've enable row selection without providing a primary key. Make sure to define the `rowSelectionPrimaryKey` prop."),d.current=!1)},[]);let y=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{r&&o&&!y.current&&s.length>0&&!s.some(e=>!!e.original[o])&&(console.error("[DataGrid] The key provided by `rowSelectionPrimaryKey` does not match any property in the data."),y.current=!0,d.current=!1)},[s]),(0,a.useLayoutEffect)(()=>{s.length>0&&n&&o&&d.current&&((0,a.startTransition)(()=>{t.resetRowSelection(),f(e=>{let t=v.current.filter(e=>Object.keys(j).map(e=>parseInt(e)).includes(e.index)).filter(t=>!e.find(e=>e.id===t.original[o]));return t.length>0?[...e,...t.map(e=>({id:e.original[o],row:e}))]:e}),v.current=s}),(0,a.startTransition)(()=>{s.map(e=>{h.some(t=>t.id===e.original[o])&&e.getCanSelect()&&!e.getIsSelected()&&(e.toggleSelected(!0),f(t=>[...t.filter(t=>t.id!==e.original[o])]))})}))},[c,u,s,m,g,p]),(0,a.useEffect)(()=>{if(!n&&i&&(null==i?void 0:i.length)>0&&d.current){let t=Object.keys(j).map(e=>parseInt(e));if(t.length>0){var e;l&&l({data:null!==(e=i.filter((e,i)=>t.includes(i)))&&void 0!==e?e:[]})}}},[j,b]),(0,a.useEffect)(()=>{if(n&&i&&(null==i?void 0:i.length)>0&&d.current&&o){let e=new Set(Object.keys(j).map(e=>parseInt(e)));(0,a.startTransition)(()=>{let t={data:[...i.filter((t,i)=>e.has(i)),...h.map(e=>e.row.original)]};isArrayEqual(t.data,x.current.data)||(l&&l(t),x.current=t)})}},[j,x.current]),{selectedRowCount:n?+Object.keys(j).length+h.length:Object.keys(j).length}}let isArrayEqual=function(e,t){return es()(e,t)};var er=i(86679),ed=i(42077),ec=i.n(ed),eu=i(67066),em=i.n(eu);function useDataGridEditing(e){let{data:t,table:i,rows:l,onRowEdit:n,isDataMutating:o,onDataChange:s,enableOptimisticUpdates:r,optimisticUpdatePrimaryKey:d,manualPagination:c,schema:u,onRowValidationError:m}=e,g=(0,er.pm)(),p=i.getAllLeafColumns(),[v,x]=(0,a.useState)([]),[h,f]=(0,a.useState)(void 0),[j,b]=(0,a.useState)(void 0),[y,w]=(0,a.useState)(void 0),[N,C]=(0,a.useState)([]),S=(0,a.useMemo)(()=>p.filter(e=>{var t;return e.getIsVisible()&&!!(null===(t=e.columnDef.meta)||void 0===t?void 0:t.editingMeta)}),[p]);(0,a.useEffect)(()=>{c&&(f(void 0),b(void 0),w(void 0),x([]))},[i.getState().pagination.pageIndex,i.getState().pagination.pageSize]);let I=(0,a.useMemo)(()=>l.length>0?em()(l.map(e=>e.getVisibleCells().filter(e=>{var t;return!!(null===(t=S.find(t=>t.id===e.column.id))||void 0===t?void 0:t.id)}))):[],[l]);(0,a.useLayoutEffect)(()=>{I.length>0&&I.map(e=>{x(t=>[...t,{id:e.id,colId:e.column.id,rowId:e.row.id,isEditing:!1}])})},[I]);let D=(0,a.useCallback)(e=>{x(t=>{let i=t.filter(t=>t.id!==e),l=t.find(t=>t.id===e);if(l&&t.every(e=>!e.isEditing))return[...i,{...l,id:e,isEditing:!0}];if(l&&t.some(e=>e.isEditing)){let n=t.find(e=>e.isEditing);if((null==n?void 0:n.rowId)===(null==l?void 0:l.rowId))return[...i,{...l,id:e,isEditing:!0}]}return t})},[]),k=(0,a.useCallback)(e=>v.some(t=>t.id===e&&t.isEditing),[v]),E=(0,a.useCallback)(e=>!!v.find(t=>t.id===e),[v]),_=(0,a.useCallback)(()=>v.some(e=>e.isEditing),[v]),F=(0,a.useCallback)(()=>v.find(e=>e.isEditing),[v]),M=(0,a.useCallback)(()=>{x(e=>e.map(e=>({...e,isEditing:!1})))},[]),T=a.useRef(!1);(0,a.useEffect)(()=>{void 0!==o&&!o&&T.current&&(M(),T.current=!1)},[o]),(0,a.useEffect)(()=>{void 0===o&&M()},[T.current]);let P=(0,a.useCallback)(e=>{y&&j&&(0,a.startTransition)(()=>{if(ec()(j,y.original))M();else{if(n&&n({originalData:y.original,data:e||j,row:y}),r&&d){let e=structuredClone(t),i=e.findIndex(e=>!!e[d]&&!!j[d]&&e[d]===j[d]);e[i]&&i>-1?(e[i]=j,s(e)):console.error("[DataGrid] Could not perform optimistic update. Make sure `optimisticUpdatePrimaryKey` is a valid property.")}else r&&console.error("[DataGrid] Could not perform optimistic update. Make sure `optimisticUpdatePrimaryKey` is defined.");r?M():T.current=!0}})},[y,j]),z=(0,a.useCallback)(async()=>{if(y&&j){if(C([]),u)try{let e=await u.safeParseAsync(j);if(e.success){let t=structuredClone(j);Object.keys(e.data).map(i=>{t[i]=e.data[i]}),P(t)}else e.error.errors.map(e=>{var t;g.error(null!==(t=e.message)&&void 0!==t?t:"Error"),C(t=>[...t,{rowId:y.id,key:String(e.path[0]),message:e.message}])}),m&&m({data:j,originalData:y.original,row:y,errors:e.error.errors})}catch(e){console.error("[DataGrid] Could not perform validation")}else P()}},[y,j]),L=(0,a.useCallback)((e,t,i,l)=>{f(e),w(t),b(l=>({...(null==y?void 0:y.id)===t.id&&j?j:t.original,[i.column.id]:e}))},[y,j]);return{handleStartEditing:D,getIsCellActivelyEditing:k,getIsCellEditable:E,getIsCurrentlyEditing:_,getFirstCellBeingEdited:F,handleStopEditing:M,handleOnSave:z,handleUpdateValue:L,rowErrors:N}}let eg=(0,T.xH)({root:(0,O.j)(["UI-DataGridCellInputField__root"])});function DataGridCellInputField(e){let{rootClassName:t,cell:i,table:n,row:o,rowErrors:s,onValueUpdated:r,meta:{field:d,zodType:c,valueFormatter:u}}=e,m=null!=u?u:e=>e,g=m(i.getContext().getValue()),p=a.useRef(null),[v,x]=a.useState(g);return a.useLayoutEffect(()=>{var e;r(g,o,i,c),null===(e=p.current)||void 0===e||e.focus()},[]),(0,l.jsx)("div",{className:(0,T.cn)(eg.root(),t),children:d({value:v,onChange:e=>{x(e),r(m(e),o,i,c)},ref:p},{rowErrors:s,table:n,row:o,cell:i})})}DataGridCellInputField.displayName="DataGridCellInputField";var ep=i(9805),ev=i(7660);function useDataGrid(e){var t,i,n,o,s,r;let d={globalFilter:"",sorting:[],pagination:{pageIndex:0,pageSize:5},rowSelection:{},columnFilters:[],columnVisibility:{}},{data:c,rowCount:u,columns:m,initialState:g,state:p,onRowValidationError:v,validationSchema:x,columnOrder:h,onSortingChange:f,onPaginationChange:j,onRowSelectionChange:b,onGlobalFilterChange:y,onColumnFiltersChange:w,onColumnVisibilityChange:N,enableManualSorting:C=!1,enableManualFiltering:S=!1,enableManualPagination:I=!1,enableRowSelection:D=!1,enablePersistentRowSelection:k=!1,enableOptimisticUpdates:E=!1,enableColumnFilters:_=!0,enableSorting:F=!0,enableFilters:M=!0,enableGlobalFilter:T=!0,filterFns:P,...z}=e,[L,A]=(0,a.useState)(null!=c?c:[]),[R,O]=(0,a.useState)(u);(0,a.useEffect)(()=>{c&&A(c)},[c]),(0,a.useEffect)(()=>{u&&O(u)},[u]);let[B,V]=(0,a.useState)(null!==(t=null==g?void 0:g.globalFilter)&&void 0!==t?t:d.globalFilter),[G,K]=(0,a.useState)(null!==(i=null==g?void 0:g.rowSelection)&&void 0!==i?i:d.rowSelection),[H,Z]=(0,a.useState)(null!==(n=null==g?void 0:g.sorting)&&void 0!==n?n:d.sorting),[W,q]=(0,a.useState)(null!==(o=null==g?void 0:g.columnFilters)&&void 0!==o?o:d.columnFilters),[Y,X]=(0,a.useState)(null!==(s=null==g?void 0:g.columnVisibility)&&void 0!==s?s:d.columnVisibility),[$,J]=(0,a.useState)(null!==(r=null==g?void 0:g.pagination)&&void 0!==r?r:d.pagination),ee=(0,a.useMemo)(()=>{var e;return null!==(e=Math.ceil(R/$.pageSize))&&void 0!==e?e:-1},[R,$.pageSize]),et=(0,a.useMemo)(()=>[{id:"_select",size:0,maxSize:0,enableSorting:!1,disableSortBy:!0,disableGlobalFilter:!0,header:e=>{let{table:t}=e;return(0,l.jsx)(Q.XZ,{checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),onChange:()=>t.toggleAllRowsSelected()})},cell:e=>{let{row:t}=e;return(0,l.jsx)("div",{className:"px-1",children:(0,l.jsx)(Q.XZ,{checked:t.getIsSomeSelected()?"indeterminate":t.getIsSelected(),isDisabled:!t.getCanSelect(),onChange:t.getToggleSelectedHandler()},t.id)})}},...m],[m]),ei=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.sorting)&&void 0!==e?e:H},[null==p?void 0:p.sorting,H]),el=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.pagination)&&void 0!==e?e:$},[null==p?void 0:p.pagination,$]),en=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.rowSelection)&&void 0!==e?e:G},[null==p?void 0:p.rowSelection,G]),ea=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.globalFilter)&&void 0!==e?e:B},[null==p?void 0:p.globalFilter,B]),eo=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.columnFilters)&&void 0!==e?e:W},[null==p?void 0:p.columnFilters,W]),es=(0,a.useMemo)(()=>{var e;return null!==(e=null==p?void 0:p.columnVisibility)&&void 0!==e?e:Y},[null==p?void 0:p.columnVisibility,Y]),er=(0,a.useCallback)((e,t)=>i=>{e&&e(i),t&&t(i)},[]),ed=(0,U.b7)({data:L,columns:D?et:m,pageCount:ee,globalFilterFn:(e,t,i)=>{let l=(()=>{let i=e.getValue(t);return"number"==typeof i?String(i):i})();return null==l?void 0:l.trim().toLowerCase().includes(i.trim().toLowerCase())},state:{sorting:ei,pagination:el,rowSelection:en,globalFilter:ea,columnFilters:eo,columnVisibility:es,columnOrder:h},onSortingChange:er(f,Z),onPaginationChange:er(j,J),onRowSelectionChange:er(b,K),onGlobalFilterChange:er(y,V),onColumnFiltersChange:er(w,q),onColumnVisibilityChange:er(N,X),getCoreRowModel:(0,ev.sC)(),getSortedRowModel:C?void 0:(0,ev.tj)(),getFilteredRowModel:S?void 0:(0,ev.vL)(),filterFns:{dateRangeFilter:dateRangeFilter,...P},manualPagination:I,manualSorting:C,manualFiltering:S,enableRowSelection:D,enableSorting:F,enableColumnFilters:_,enableFilters:M,enableGlobalFilter:T}),ec=(0,a.useMemo)(()=>{let e=ed.getState().pagination;return I?ed.getRowModel().rows:ed.getRowModel().rows.slice(e.pageIndex*e.pageSize,(e.pageIndex+1)*e.pageSize)},[ed.getRowModel().rows,ed.getState().pagination]);return(0,a.useLayoutEffect)(()=>{ed.setPageIndex(0)},[ed.getState().globalFilter]),(0,a.useEffect)(()=>{I||O(ed.getRowModel().rows.length)},[ed.getRowModel().rows]),{...z,table:ed,displayedRows:ec,setData:A,data:L,pageCount:ee,rowCount:R,columns:m,sorting:ei,pagination:el,rowSelection:en,globalFilter:ea,columnFilters:eo,columnVisibility:es,enableManualSorting:C,enableManualFiltering:S,enableManualPagination:I,enableRowSelection:D,enablePersistentRowSelection:k,enableOptimisticUpdates:E,enableGlobalFilter:T,validationSchema:x,onRowValidationError:v,handleGlobalFilterChange:null!=y?y:V,handleColumnFiltersChange:null!=w?w:q}}var ex=i(11305);let eh=(0,T.xH)({root:(0,O.j)(["UI-DataGrid__root"]),header:(0,O.j)(["UI-DataGrid__header","block space-y-4 w-full mb-4"]),toolbar:(0,O.j)(["UI-DataGrid__toolbar","flex w-full items-center gap-4 flex-wrap"]),tableWrapper:(0,O.j)(["UI-DataGrid__tableWrapper","flex flex-col"]),tableContainer:(0,O.j)(["UI-DataGrid__tableContainer","align-middle inline-block min-w-full relative"]),table:(0,O.j)(["UI-DataGrid__table","w-full overflow-x-auto relative table-auto md:table-fixed"]),tableHead:(0,O.j)(["UI-DataGrid__tableHead","border-b border-[--border]"]),th:(0,O.j)(["UI-DataGrid__th group/th","px-3 h-12 text-left text-sm font-bold","data-[is-selection-col=true]:px-3 data-[is-selection-col=true]:sm:px-1 data-[is-selection-col=true]:text-center"]),titleChevronContainer:(0,O.j)(["UI-DataGrid__titleChevronContainer","absolute flex items-center inset-y-0 top-1 -right-9 group"]),titleChevron:(0,O.j)(["UI-DataGrid__titleChevron","mr-3 h-4 w-4 text-gray-400 group-hover:text-gray-500 relative bottom-0.5"]),tableBody:(0,O.j)(["UI-DataGrid__tableBody","bg-[--paper] divide-y divide-[--border] w-full relative"]),td:(0,O.j)(["UI-DataGrid__td","px-2 py-2 w-full whitespace-nowrap text-base font-normal text-[--text-color]","data-[is-selection-col=true]:px-2 data-[is-selection-col=true]:sm:px-0 data-[is-selection-col=true]:text-center","data-[action-col=false]:truncate data-[action-col=false]:overflow-ellipsis","data-[row-selected=true]:bg-brand-50 dark:data-[row-selected=true]:bg-gray-700","data-[editing=true]:ring-1 data-[editing=true]:ring-[--ring] ring-inset","data-[editable=true]:hover:bg-[--highlight] md:data-[editable=true]:focus:ring-2 md:data-[editable=true]:focus:ring-[--slate]","focus:outline-none"]),tr:(0,O.j)(["UI-DataGrid__tr","hover:bg-[--highlight] truncate"]),footer:(0,O.j)(["UI-DataGrid__footer","flex flex-col sm:flex-row w-full items-center gap-2 justify-between p-2 mt-2 overflow-x-auto max-w-full"]),footerPageDisplayContainer:(0,O.j)(["UI-DataGrid__footerPageDisplayContainer","flex flex-none items-center gap-1 ml-2 text-sm"]),footerPaginationInputContainer:(0,O.j)(["UI-DataGrid__footerPaginationInputContainer","flex flex-none items-center gap-2"]),filterDropdownButton:(0,O.j)(["UI-DataGrid__filterDropdownButton","flex gap-2 items-center bg-[--paper] border border-[--border] rounded-[--radius] py-1 px-2 cursor-pointer hover:bg-[--highlight]","select-none focus-visible:ring-2 outline-none ring-[--ring]"])});function DataGrid(e){let{locale:t}=(0,T.k9)(),{rootClassName:i,headerClassName:n,toolbarClassName:o,tableWrapperClassName:r,tableContainerClassName:d,tableHeadClassName:c,tableClassName:u,thClassName:m,titleChevronClassName:g,titleChevronContainerClassName:p,tableBodyClassName:v,trClassName:x,tdClassName:h,footerClassName:f,footerPageDisplayContainerClassName:j,footerPaginationInputContainerClassName:b,filterDropdownButtonClassName:y,tableApi:w,globalSearchInputProps:N,hideGlobalSearchInput:C,...S}=e,{table:D,data:k,setData:E,displayedRows:_,globalFilter:F,columnFilters:M,handleGlobalFilterChange:P,handleColumnFiltersChange:z,isLoading:L,isDataMutating:A,hideColumns:R,enablePersistentRowSelection:O,onRowEdit:B,onRowSelect:K,rowSelectionPrimaryKey:H,enableRowSelection:Z,enableOptimisticUpdates:W,optimisticUpdatePrimaryKey:Q,enableManualPagination:X,enableGlobalFilter:$,validationSchema:J,onRowValidationError:et}=null!=w?w:useDataGrid({...S}),ei=L||!W&&A,{tableRef:en}=useDataGridResponsiveness({table:D,hideColumns:R}),{selectedRowCount:ea}=useDataGridRowSelection({table:D,data:k,displayedRows:_,persistent:O,onRowSelect:K,rowSelectionPrimaryKey:H,enabled:Z}),{getFilterDefaultValue:eo,unselectedFilterableColumns:es,filteredColumns:er,filterableColumns:ed}=useDataGridFiltering({table:D,columnFilters:M}),{handleStartEditing:ec,getIsCellActivelyEditing:eu,getIsCellEditable:em,getIsCurrentlyEditing:eg,getFirstCellBeingEdited:ev,handleStopEditing:ef,handleOnSave:ej,handleUpdateValue:eb,rowErrors:ey}=useDataGridEditing({table:D,data:k,rows:_,onRowEdit:B,isDataMutating:A,enableOptimisticUpdates:W,optimisticUpdatePrimaryKey:Q,manualPagination:X,onDataChange:E,schema:J,onRowValidationError:et});return(0,l.jsxs)("div",{className:(0,T.cn)(eh.root(),i),children:[(0,l.jsxs)("div",{className:(0,T.cn)(eh.header(),n),children:[(0,l.jsxs)("div",{className:(0,T.cn)(eh.toolbar(),o),children:[$&&!C&&(0,l.jsx)(DataGridSearchInput,{value:null!=F?F:"",onChange:e=>P(String(e)),...N}),es.length>0&&(0,l.jsx)(Y.h_,{trigger:(0,l.jsxs)("button",{className:(0,T.cn)(eh.filterDropdownButton(),y),children:[(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-4 h-4",children:(0,l.jsx)("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"})}),(0,l.jsxs)("span",{children:[ee.filters[t]," (",es.length,")"]})]}),children:es.map(e=>{var t,i;let n=eo(e),a=null===(t=getColumnHelperMeta(e,"filteringMeta"))||void 0===t?void 0:t.icon,o=null===(i=getColumnHelperMeta(e,"filteringMeta"))||void 0===i?void 0:i.name;return(0,l.jsxs)(Y.h_.Item,{onClick:()=>z(t=>[...t,{id:e.id,value:n}]),children:[a&&(0,l.jsx)("span",{className:"text-lg",children:a}),(0,l.jsx)("span",{children:o})]},e.id)})}),es.length!==ed.length&&(0,l.jsx)(el.u,{trigger:(0,l.jsx)(I.hU,{icon:T.QN.undo(),intent:"gray-outline",size:"sm",onClick:()=>z([])}),children:ee["remove-filters"][t]}),ea>0&&(0,l.jsxs)("div",{className:"text-sm",children:[ea," ",ee["row".concat(ea>1?"s":"","-selected")][t]]})]}),er.length>0&&(0,l.jsx)("div",{className:(0,T.cn)(eh.toolbar(),o),children:er.map(e=>(0,l.jsx)(DataGridFilter,{column:e,onRemove:()=>z(t=>[...t.filter(t=>t.id!==e.id)])},e.id))}),(0,l.jsx)(ep.u,{appear:!0,show:eg(),className:"fixed top-2 left-0 right-0 flex justify-center z-20",enter:"transition-all duration-150",enterFrom:"opacity-0 scale-50",enterTo:"opacity-100 scale-100",leave:"transition-all duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-75",children:(0,l.jsxs)("div",{className:"flex items-center gap-2 rounded-md p-4 bg-[--paper] border border-[--brand] shadow-sm z-20",children:[(0,l.jsx)("span",{className:"font-semibold",children:ee.updating[t]}),(0,l.jsx)(I.zx,{size:"sm",onClick:ej,isDisabled:A,children:ee.save[t]}),(0,l.jsx)(I.zx,{size:"sm",onClick:ef,intent:"gray-outline",isDisabled:A,children:ee.cancel[t]})]})})]}),(0,l.jsx)("div",{className:(0,T.cn)(eh.tableWrapper(),r),ref:en,children:(0,l.jsx)("div",{className:"relative",children:(0,l.jsxs)("div",{className:(0,T.cn)(eh.tableContainer(),d),children:[(0,l.jsxs)("table",{className:(0,T.cn)(eh.table(),u),children:[(0,l.jsx)("thead",{className:(0,T.cn)(eh.tableHead(),c),children:D.getHeaderGroups().map(e=>(0,l.jsx)("tr",{children:e.headers.map((e,t)=>(0,l.jsx)("th",{colSpan:e.colSpan,scope:"col",className:(0,T.cn)(eh.th(),m),"data-is-selection-col":"".concat(0===t&&Z),style:{width:e.getSize()},children:0!==t&&Z||!Z?(0,l.jsx)("div",{className:(0,T.cn)("flex items-center justify-between",{"cursor-pointer":e.column.getCanSort()}),children:e.isPlaceholder?null:(0,l.jsxs)("div",{className:"flex relative items-center",onClick:e.column.getToggleSortingHandler(),children:[(0,U.ie)(e.column.columnDef.header,e.getContext()),(0,l.jsxs)("span",{className:(0,T.cn)(eh.titleChevronContainer(),p),children:["asc"===e.column.getIsSorted()&&(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,T.cn)(eh.titleChevron(),g),children:(0,l.jsx)("polyline",{points:"18 15 12 9 6 15"})}),"desc"===e.column.getIsSorted()&&(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,T.cn)(eh.titleChevron(),g),children:(0,l.jsx)("polyline",{points:"6 9 12 15 18 9"})}),!1===e.column.getIsSorted()&&e.column.getCanSort()&&(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,T.cn)(eh.titleChevron(),"w-4 h-4 opacity-0 transition-opacity group-hover/th:opacity-100",g),children:[(0,l.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,l.jsx)("path",{d:"m7 9 5-5 5 5"})]})]})]})}):(0,U.ie)(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),(0,l.jsx)("tbody",{className:(0,T.cn)(eh.tableBody(),v),children:_.map(e=>(0,l.jsx)("tr",{className:(0,T.cn)(eh.tr(),x),children:e.getVisibleCells().map((e,t)=>{var i,n;let o=em(e.id)&&!eu(e.id)&&(!eg()||(null===(i=ev())||void 0===i?void 0:i.rowId)===e.row.id);return(0,l.jsxs)("td",{className:(0,T.cn)(eh.td(),h),"data-is-selection-col":"".concat(0===t&&Z),"data-action-col":"".concat("_actions"===e.column.id),"data-row-selected":e.getContext().row.getIsSelected(),"data-editing":eu(e.id),"data-editable":o,"data-row-editing":(null===(n=ev())||void 0===n?void 0:n.rowId)===e.row.id,style:{width:e.column.getSize(),maxWidth:e.column.columnDef.maxSize},onDoubleClick:()=>(0,a.startTransition)(()=>{ec(e.id)}),onKeyUp:t=>{"Enter"===t.key&&(0,a.startTransition)(()=>ec(e.id))},tabIndex:o?0:void 0,children:[(!em(e.id)||!eu(e.id))&&(0,U.ie)(e.column.columnDef.cell,{...e.getContext(),renderValue:()=>getValueFormatter(e.column)(e.getContext().getValue())}),eu(e.id)&&(0,l.jsx)(DataGridCellInputField,{cell:e,row:e.row,table:D,rowErrors:ey,meta:getColumnHelperMeta(e.column,"editingMeta"),onValueUpdated:eb})]},e.id)})},e.id))})]}),ei&&_.length>0&&(0,l.jsx)(ex.fz,{className:"backdrop-blur-[1px] bg-opacity-40 pt-0"}),ei&&0===_.length&&[...[,,,,,].keys()].map((e,t)=>(0,l.jsx)(s.O,{className:"rounded-none h-12"},t)),0===_.length&&!ei&&0===er.length&&(0,l.jsx)("p",{className:"flex w-full justify-center py-4",children:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:[(0,l.jsx)("path",{fill:"#D1C4E9",d:"M38 7H10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 12H10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2zm0 12H10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2z"}),(0,l.jsx)("circle",{cx:"38",cy:"38",r:"10",fill:"#F44336"}),(0,l.jsxs)("g",{fill:"#fff",children:[(0,l.jsx)("path",{d:"m43.31 41.181l-2.12 2.122l-8.485-8.484l2.121-2.122z"}),(0,l.jsx)("path",{d:"m34.819 43.31l-2.122-2.12l8.484-8.485l2.122 2.121z"})]})]})}),0===_.length&&!ei&&er.length>0&&(0,l.jsxs)("div",{className:"w-full text-center py-4",children:[(0,l.jsx)("p",{className:"flex w-full justify-center mb-4",children:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",children:[(0,l.jsx)("path",{fill:"#D1C4E9",d:"M38 7H10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 12H10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2zm0 12H10c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h28c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2z"}),(0,l.jsx)("circle",{cx:"38",cy:"38",r:"10",fill:"#F44336"}),(0,l.jsxs)("g",{fill:"#fff",children:[(0,l.jsx)("path",{d:"m43.31 41.181l-2.12 2.122l-8.485-8.484l2.121-2.122z"}),(0,l.jsx)("path",{d:"m34.819 43.31l-2.122-2.12l8.484-8.485l2.122 2.121z"})]})]})}),(0,l.jsx)("p",{children:ee["no-matching-result"][t]})]})]})})}),(0,l.jsxs)("div",{className:(0,T.cn)(eh.footer(),f),children:[(0,l.jsxs)(q,{children:[(0,l.jsx)(q.Trigger,{direction:"left",isChevrons:!0,onClick:()=>D.setPageIndex(0),isDisabled:!D.getCanPreviousPage()||ei}),(0,l.jsx)(q.Trigger,{direction:"left",onClick:()=>D.previousPage(),isDisabled:!D.getCanPreviousPage()||ei}),(0,l.jsx)(q.Trigger,{direction:"right",onClick:()=>D.nextPage(),isDisabled:!D.getCanNextPage()||ei}),(0,l.jsx)(q.Trigger,{direction:"right",isChevrons:!0,onClick:()=>D.setPageIndex(D.getPageCount()-1),isDisabled:!D.getCanNextPage()||ei})]}),(0,l.jsx)("div",{className:(0,T.cn)(eh.footerPageDisplayContainer(),j),children:D.getPageCount()>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:ee.page[t]}),(0,l.jsxs)("strong",{children:[D.getState().pagination.pageIndex+1," / ",D.getPageCount()]})]})}),(0,l.jsxs)("div",{className:(0,T.cn)(eh.footerPaginationInputContainer(),b),children:[k.length>0&&(0,l.jsx)(G.Y,{discrete:!0,value:D.getState().pagination.pageIndex+1,min:1,onChange:e=>{let t=e?e-1:0;(0,a.startTransition)(()=>{e<=D.getPageCount()&&D.setPageIndex(t)})},className:"inline-flex flex-none items-center w-[3rem]",size:"sm"}),(0,l.jsx)(V.P,{value:D.getState().pagination.pageSize,onChange:e=>{D.setPageSize(Number(e.target.value))},options:[Number(D.getState().pagination.pageSize),...[5,10,20,30,40,50].filter(e=>e!==Number(D.getState().pagination.pageSize))].map(e=>({value:e,label:"".concat(e)})),fieldClassName:"w-auto",className:"w-auto pr-8",isDisabled:ei,size:"sm"})]})]})]})}function DataGridSearchInput(e){let{value:t,onChange:i,debounce:n=500,...o}=e,[s,r]=(0,a.useState)(t);return(0,a.useEffect)(()=>{r(t)},[t]),(0,a.useEffect)(()=>{let e=setTimeout(()=>{i(s)},n);return()=>clearTimeout(e)},[s]),(0,l.jsx)(B.o,{size:"md",fieldClassName:"md:max-w-[30rem]",...o,value:s,onChange:e=>r(e.target.value),leftIcon:(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"w-5 h-5 text-[--muted]",children:[(0,l.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,l.jsx)("path",{d:"m21 21-4.3-4.3"})]})})}DataGrid.displayName="DataGrid";var ef=i(66834);let ej=(0,a.memo)(e=>{let{isSelected:t,isInvalid:i,className:n,onClick:a,releaseGroup:o,isBatch:s,title:r,filename:d,children:c,action:u,image:m}=e;return(0,l.jsxs)("div",{className:(0,T.cn)("border border-[--border] p-3 pr-12 rounded-lg relative transition hover:bg-gray-900 group/episode-list-item",{"border-brand-200 bg-gray-800 hover:bg-gray-800":t,"hover:border-gray-500":!t,"border-red-700":i},n),children:[(0,l.jsxs)("div",{className:(0,T.cn)("flex gap-4 relative",{"cursor-pointer":!!a}),onClick:a,children:[(0,l.jsxs)("div",{className:(0,T.cn)("h-24 w-24 flex-none rounded-md object-cover object-center relative overflow-hidden","flex items-center justify-center bg-gray-800","text-xs px-2"),children:[(0,l.jsx)("p",{className:(0,T.cn)("z-[1] font-bold line-clamp-1",{"text-brand-200":"subsplease"===o.toLowerCase()}),children:o}),!!m&&(0,l.jsx)("img",{src:m,alt:"episode image",className:"object-cover object-center absolute w-full h-full blur-xs opacity-20 z-[0] select-none pointer-events-none","data-src":m}),s&&(0,l.jsx)(ef.T,{className:"text-7xl absolute opacity-20"})]}),(0,l.jsxs)("div",{className:"relative overflow-hidden",children:[i&&(0,l.jsxs)("p",{className:"flex gap-2 text-red-300 items-center",children:[(0,l.jsx)(z.C,{className:"text-lg text-red-500"})," Unidentified"]}),(0,l.jsx)("h4",{className:(0,T.cn)("font-medium transition line-clamp-2"),children:s?"Batch":r}),!!d&&(0,l.jsx)("p",{className:(0,T.cn)("text-sm text-gray-400 line-clamp-2 mb-2"),children:d}),(0,l.jsx)("div",{className:"flex items-center gap-2",children:c&&c})]})]}),u&&(0,l.jsx)("div",{className:"absolute right-1 top-1 flex flex-col items-center",children:u})]})});function TorrentResolutionBadge(e){let{resolution:t}=e;return t?(0,l.jsx)(m.C,{intent:(null==t?void 0:t.includes("1080"))?"warning":(null==t?void 0:t.includes("2160"))||(null==t?void 0:t.toLowerCase().includes("4k"))?"success":"gray",children:t}):(0,l.jsx)(m.C,{intent:"gray",children:"Unknown"})}function TorrentSeedersBadge(e){let{seeders:t}=e;return(0,l.jsxs)(m.C,{intent:parseInt(t)>20?parseInt(t)>200?"primary":"success":"gray",children:[(0,l.jsx)("span",{className:"text-sm",children:t})," seeders"]})}var eb=i(36255),ey=i(33591);let ew=(0,a.memo)(e=>{let{previews:t,isLoading:i,selectedTorrents:n,onToggleTorrent:a}=e;return i?(0,l.jsx)(ex.TK,{}):(0,l.jsx)("div",{className:"space-y-2",children:t.filter(Boolean).map(e=>{var t,i,o;return(0,l.jsxs)(ej,{title:(null===(t=e.episode)||void 0===t?void 0:t.displayTitle)||"",releaseGroup:e.releaseGroup,filename:e.torrent.name,isBatch:e.isBatch,image:null===(o=e.episode)||void 0===o?void 0:null===(i=o.episodeMetadata)||void 0===i?void 0:i.image,isSelected:-1!==n.findIndex(t=>t.guid===e.torrent.guid),onClick:()=>a(e.torrent),action:(0,l.jsx)(el.u,{trigger:(0,l.jsx)(I.hU,{icon:(0,l.jsx)(eb.r,{}),intent:"primary-basic",size:"sm",onClick:()=>window.open(e.torrent.guid,"_blank")}),children:"View on NYAA"}),children:[(0,l.jsx)(TorrentResolutionBadge,{resolution:e.resolution}),(0,l.jsx)(TorrentSeedersBadge,{seeders:e.torrent.seeders}),(0,l.jsxs)("p",{className:"text-gray-300 text-sm flex items-center gap-1",children:[(0,l.jsx)(ey.U,{})," ",e.torrent.size]}),(0,l.jsxs)("p",{className:"text-[--muted] text-sm flex items-center gap-1",children:["- ",(0,l.jsx)(c.V,{})," ",(0,N.Z)(new Date(e.torrent.date),{addSuffix:!0})]})]},e.torrent.guid)})})});var eN=i(60691);let eC=(0,a.memo)(e=>{var t;let{torrents:i,selectedTorrents:n,globalFilter:o,setGlobalFilter:s,quickSearch:r,isFetching:d,isLoading:c,onToggleTorrent:u}=e,m=(0,a.useMemo)(()=>createDataGridColumns(()=>[{accessorKey:"name",header:"Name",cell:e=>(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(el.u,{trigger:(0,l.jsx)(I.hU,{icon:(0,l.jsx)(eb.r,{}),intent:"primary-basic",size:"sm",onClick:()=>window.open(e.row.original.guid,"_blank")}),children:"View on NYAA"}),(0,l.jsx)(el.u,{trigger:(0,l.jsx)("div",{className:(0,T.cn)("text-[.95rem] truncate text-ellipsis cursor-pointer max-w-[90%] overflow-hidden",{"text-brand-300 font-semibold":n.some(t=>t.guid===e.row.original.guid)}),onClick:()=>u(e.row.original),children:e.getValue()}),children:e.getValue()})]}),size:80},{accessorKey:"resolution",header:"Resolution",cell:e=>(0,l.jsx)(TorrentResolutionBadge,{resolution:e.getValue()}),size:2},{accessorKey:"seeders",header:"Seeders",cell:e=>(0,l.jsx)(TorrentSeedersBadge,{seeders:e.getValue()}),size:20},{accessorKey:"date",header:"Date",cell:e=>(0,N.Z)(new Date(e.getValue()),{addSuffix:!0}),size:10}]),[i,n]);return(0,l.jsx)(DataGrid,{columns:m,data:null==i?void 0:i.slice(0,20),rowCount:null!==(t=null==i?void 0:i.length)&&void 0!==t?t:0,initialState:{pagination:{pageSize:20,pageIndex:0}},tdClassName:"py-4 data-[row-selected=true]:bg-gray-900",tableBodyClassName:"bg-transparent",footerClassName:"hidden",state:{globalFilter:o},enableManualFiltering:!0,onGlobalFilterChange:s,isLoading:c||d,isDataMutating:d,hideGlobalSearchInput:r})});var eS=i(19395),eI=i(46076),eD=i(3493),ek=i(392),eE=i(751),e_=i(86321),eF=i(5925);let eM=(0,F.cn)(!1);function TorrentConfirmationModal(e){var t,i,o,s,r;let{onToggleTorrent:d,media:c,entry:u}=e,m=(0,n.useRouter)(),g=(0,E.Dv)(eE.X),p=null==g?void 0:null===(i=g.settings)||void 0===i?void 0:null===(t=i.library)||void 0===t?void 0:t.libraryPath,v=(0,a.useMemo)(()=>{var e,t,i;let l=null===(t=u.localFiles)||void 0===t?void 0:null===(e=t.findLast(e=>e))||void 0===e?void 0:e.path,n=p?ek.join(p,sanitizeDirectoryName((null===(i=c.title)||void 0===i?void 0:i.romaji)||"")):"";return l?ek.normalize(ek.dirname(l)):n},[p,u.localFiles,null===(o=c.title)||void 0===o?void 0:o.romaji]),[x,h]=(0,a.useState)(v),[f,j]=(0,E.KO)(eM),b=(0,E.b9)(eP),y=(0,E.Dv)(eT),w=(0,a.useMemo)(()=>{var e,t,i,l;return 1===y.length&&y[0].isBatch&&"MOVIE"!==c.format&&"FINISHED"===c.status&&!!c.episodes&&c.episodes>1&&!!(null===(e=u.downloadInfo)||void 0===e?void 0:e.episodesToDownload)&&(null===(t=u.downloadInfo)||void 0===t?void 0:t.episodesToDownload.length)>0&&(null===(i=u.downloadInfo)||void 0===i?void 0:i.episodesToDownload.length)!==(c.episodes||(null===(l=c.nextAiringEpisode)||void 0===l?void 0:l.episode)-1)},[y,c.format,c.status,c.episodes,null===(s=u.downloadInfo)||void 0===s?void 0:s.episodesToDownload,null===(r=c.nextAiringEpisode)||void 0===r?void 0:r.episode]),{mutate:N,data:C,isPending:S}=(0,L.$U)({endpoint:A.E.DOWNLOAD,method:"post",mutationKey:["download-torrent"],onSuccess:()=>{eF.ZP.success("Download started"),j(!1),b(!1),m.push("/torrent-list")}});function handleLaunchDownload(e){if(!p||!x.toLowerCase().startsWith(p.slice(0,-1).toLowerCase())){eF.ZP.error("Destination folder does not match local library");return}if(e){var t,i,l;N({urls:y.map(e=>e.guid),destination:x,smartSelect:{enabled:!0,missingEpisodeNumbers:(null===(i=u.downloadInfo)||void 0===i?void 0:null===(t=i.episodesToDownload)||void 0===t?void 0:t.map(e=>e.episodeNumber))||[],absoluteOffset:(null===(l=u.downloadInfo)||void 0===l?void 0:l.absoluteOffset)||0},media:c})}else N({urls:y.map(e=>e.guid),destination:x,smartSelect:{enabled:!1,missingEpisodeNumbers:[],absoluteOffset:0},media:c})}return 0===y.length?null:(0,l.jsxs)(_.u_,{isOpen:f,onClose:()=>j(!1),size:"2xl",isClosable:!0,title:"Choose the destination",children:[(0,l.jsx)("div",{className:"pb-4",children:(0,l.jsx)(eD.k,{name:"destination",label:"Destination",leftIcon:(0,l.jsx)(ef.T,{}),defaultValue:x,onSelect:h,shouldExist:!1})}),(0,l.jsxs)("div",{className:"space-y-2",children:[y.map(e=>(0,l.jsx)(el.u,{trigger:(0,l.jsxs)("div",{className:"ml-12 gap-2 p-2 border border-[--border] rounded-md hover:bg-gray-800 relative",children:[(0,l.jsxs)("div",{className:"flex flex-none items-center gap-2 w-[90%] cursor-pointer",onClick:()=>window.open(e.guid,"_blank"),children:[(0,l.jsxs)("span",{className:"text-lg",children:[e.isBatch&&"MOVIE"!==c.format?(0,l.jsx)(ef.T,{className:"text-2xl"}):(0,l.jsx)(eS.$,{})," "]}),(0,l.jsx)("p",{className:"truncate text-ellipsis",children:e.name})]}),(0,l.jsx)(I.hU,{icon:(0,l.jsx)(eI.c,{}),className:"absolute right-2 top-2 rounded-full",size:"xs",intent:"gray-outline",onClick:()=>{d(e)}})]},e.name),children:"Open on NYAA"},"".concat(e.guid))),(0,l.jsxs)("div",{className:"mt-4 flex w-full justify-end gap-2",children:[y.length>0&&w&&(0,l.jsx)(I.zx,{leftIcon:(0,l.jsx)(e_.m,{}),intent:"white-outline",onClick:()=>handleLaunchDownload(!0),isLoading:S,children:"Download missing only"}),y.length>0&&(0,l.jsx)(I.zx,{leftIcon:(0,l.jsx)(D.y,{}),intent:"white",onClick:()=>handleLaunchDownload(!1),isLoading:S,children:w?"Download all":"Download"})]})]})]})}function TorrentConfirmationContinueButton(){let e=(0,E.Dv)(eT),t=(0,E.b9)(eM);return 0===e.length?null:(0,l.jsxs)(I.zx,{intent:"primary",className:"animate-pulse",onClick:()=>t(!0),children:["Continue (",e.length,")"]})}function sanitizeDirectoryName(e){let t=e.replace(/[<>:"/\\|?*\x00-\x1F]/g," "),i=t.trim().replace(/^\.+|\.+$/g,"").replace(/\s+/g," ");return i||"Untitled"}let eT=(0,F.cn)([]);function TorrentSearchContainer(e){var t,i,n,o,s,r,d,c;let{entry:u}=e,m=u.downloadInfo,g=!!(null==m?void 0:null===(t=m.episodesToDownload)||void 0===t?void 0:t.length),[p,v]=(0,E.KO)(ez),[x,h]=(0,a.useState)(g?"":(null===(n=u.media)||void 0===n?void 0:null===(i=n.title)||void 0===i?void 0:i.romaji)||""),[f,j]=(0,E.KO)(eT),[b,y]=(0,a.useState)(g),[w,N]=(0,a.useState)((null==m?void 0:m.canBatch)||!1),[C,S]=(0,a.useState)((null==m?void 0:null===(r=m.episodesToDownload)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:null===(o=s.episode)||void 0===o?void 0:o.episodeNumber)||1),[I,D]=(0,a.useState)(""),[k,_]=(0,R.E)(C,500);(0,a.useLayoutEffect)(()=>{void 0!==p&&(S(p),_(p),(0,a.startTransition)(()=>{v(void 0)}))},[p]),(0,a.useEffect)(()=>{j([])},[]),(0,a.useLayoutEffect)(()=>{if(b)h("");else{var e,t;h((null===(t=u.media)||void 0===t?void 0:null===(e=t.title)||void 0===e?void 0:e.romaji)||"")}},[b]);let{data:F,isLoading:M,isFetching:P}=(0,L.tZ)({endpoint:A.E.NYAA_SEARCH,queryKey:["nyaa-search",u.mediaId,k,x,w,I,b,null==m?void 0:m.absoluteOffset],queryFn:async()=>(0,L.E6)({endpoint:A.E.NYAA_SEARCH,method:"post",data:{query:x,episodeNumber:k,batch:w,media:u.media,absoluteOffset:(null==m?void 0:m.absoluteOffset)||0,resolution:I,quickSearch:b}}),refetchOnWindowFocus:!1,retry:0,retryDelay:1e3,enabled:!(void 0===C&&0===x.length)}),z=(0,a.useMemo)(()=>{var e;return null!==(e=null==F?void 0:F.torrents)&&void 0!==e?e:[]},[null==F?void 0:F.torrents]),U=(0,a.useMemo)(()=>{var e;return null!==(e=null==F?void 0:F.previews)&&void 0!==e?e:[]},[null==F?void 0:F.previews]),O=(0,a.useCallback)(()=>(0,l.jsx)(G.Y,{label:"Episode number",value:C,onChange:e=>{(0,a.startTransition)(()=>{S(e)})},discrete:!0,size:"sm",fieldClassName:(0,T.cn)("flex items-center justify-end gap-3 space-y-0",{"opacity-50 cursor-not-allowed pointer-events-none":w||!b}),fieldLabelClassName:"flex-none self-center font-normal !text-md sm:text-md lg:text-md",inputClassName:"max-w-[6rem]"}),[b,w,m,p]),B=(0,a.useCallback)(e=>{j(t=>{let i=t.findIndex(t=>t.guid===e.guid);return -1!==i?t.filter(t=>t.guid!==e.guid):[...t,e]})},[j]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"pb-4 flex w-full justify-between",children:[(0,l.jsx)(eN.r,{label:"Smart search",help:"Automatically fetch torrents based on parameters",checked:b,onChange:y}),(0,l.jsx)(TorrentConfirmationContinueButton,{})]}),b&&(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsxs)("div",{className:"flex gap-4 justify-between w-full",children:[(0,l.jsx)(eN.r,{label:"Batches",help:(null==m?void 0:m.canBatch)?void 0:"Cannot look for batches for this media",checked:w,onChange:N,fieldClassName:(0,T.cn)({"opacity-50 cursor-not-allowed pointer-events-none":!(null==m?void 0:m.canBatch)})}),(0,l.jsx)(O,{}),(0,l.jsx)(V.P,{label:"Resolution",value:I,onChange:e=>{var t;return D(null!==(t=e.target.value)&&void 0!==t?t:"")},options:[{value:"",label:"Any"},{value:"1080",label:"1080p"},{value:"720",label:"720p"},{value:"480",label:"480p"}],size:"sm",fieldClassName:(0,T.cn)("flex items-center justify-end gap-3 space-y-0",{"opacity-50 cursor-not-allowed pointer-events-none":!b}),fieldLabelClassName:"flex-none self-center font-normal !text-md sm:text-md lg:text-md",className:"w-[6rem]"})]}),(0,l.jsx)(DataGridSearchInput,{value:null!=x?x:"",onChange:e=>h(e),placeholder:b?"Refine the title (".concat(null===(c=u.media)||void 0===c?void 0:null===(d=c.title)||void 0===d?void 0:d.romaji,")"):"Search",fieldClassName:"md:max-w-full w-full"}),(0,l.jsx)("div",{className:"pb-1"}),(0,l.jsx)(ew,{previews:U,isLoading:M,selectedTorrents:f,onToggleTorrent:B})]})}),(0,l.jsx)(eC,{torrents:z,globalFilter:x,setGlobalFilter:h,quickSearch:b,isLoading:M,isFetching:P,selectedTorrents:f,onToggleTorrent:B})]}),(0,l.jsx)(TorrentConfirmationModal,{onToggleTorrent:B,media:u.media,entry:u})]})}let eP=(0,F.cn)(!1),ez=(0,F.cn)(void 0);function TorrentSearchDrawer(e){var t;let{entry:i}=e,[o,s]=(0,E.KO)(eP),r=(0,n.useSearchParams)(),d=(0,n.useRouter)(),c=(0,n.usePathname)(),u=r.get("id"),m=r.get("download");return(0,a.useEffect)(()=>{m&&(s(!0),d.replace(c+"?id=".concat(u)))},[m]),(0,l.jsxs)(_.dy,{isOpen:o,onClose:()=>s(!1),isClosable:!0,size:"xl",title:"Search torrents",children:[(0,l.jsx)(EpisodeList,{episodes:null===(t=i.downloadInfo)||void 0===t?void 0:t.episodesToDownload}),(0,l.jsx)(TorrentSearchContainer,{entry:i})]})}function EpisodeList(e){let{episodes:t}=e;return t&&t.length?(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("h4",{children:"Missing episodes:"}),(0,l.jsxs)("p",{children:["Episode numbers: ",t.map(e=>e.episodeNumber).join(", ")]}),(0,l.jsx)(M.i,{children:t.filter(Boolean).map(e=>{var t,i,n,a,o,s,r;return(0,l.jsx)(EpisodeListItem,{media:null===(t=e.episode)||void 0===t?void 0:t.basicMedia,title:(null===(i=e.episode)||void 0===i?void 0:i.displayTitle)||"",image:null===(a=e.episode)||void 0===a?void 0:null===(n=a.episodeMetadata)||void 0===n?void 0:n.image,episodeTitle:null==e?void 0:null===(o=e.episode)||void 0===o?void 0:o.episodeTitle,description:(null===(s=e.episode)||void 0===s?void 0:s.absoluteEpisodeNumber)!==e.episodeNumber?"(Episode ".concat(null==e?void 0:null===(r=e.episode)||void 0===r?void 0:r.absoluteEpisodeNumber,")"):void 0,imageContainerClassName:"w-20 h-20",className:"flex-none w-80"},e.episode+e.aniDBEpisode)})})]}),(0,l.jsx)(S.iz,{className:"py-2 mt-4"})]}):null}function MetaSection(e){var t,i,n,o,s,r,p,x,w,N,C,I,D,k,_,F,M,T,P,z,L,A,R,U,O,B,V,G,K,H;let{entry:Z,details:W}=e,q=(0,E.Dv)(eE.X),Y=(0,a.useMemo)(()=>{var e,t,i;return null!==(i=null==q?void 0:null===(t=q.settings)||void 0===t?void 0:null===(e=t.anilist)||void 0===e?void 0:e.hideAudienceScore)&&void 0!==i&&i},[null==q?void 0:null===(i=q.settings)||void 0===i?void 0:null===(t=i.anilist)||void 0===t?void 0:t.hideAudienceScore]),Q=((null===(s=Z.media)||void 0===s?void 0:null===(o=s.relations)||void 0===o?void 0:null===(n=o.edges)||void 0===n?void 0:n.map(e=>e))||[]).filter(Boolean).filter(e=>{var t,i,l;return((null===(t=e.node)||void 0===t?void 0:t.format)==="TV"||(null===(i=e.node)||void 0===i?void 0:i.format)==="OVA"||(null===(l=e.node)||void 0===l?void 0:l.format)==="MOVIE")&&("PREQUEL"===e.relationType||"SEQUEL"===e.relationType||"PARENT"===e.relationType||"SIDE_STORY"===e.relationType||"ALTERNATIVE"===e.relationType||"ADAPTATION"===e.relationType)}),X=null==W?void 0:null===(r=W.rankings)||void 0===r?void 0:r.find(e=>(!!(null==e?void 0:e.season)||!!(null==e?void 0:e.year))&&(null==e?void 0:e.type)==="POPULAR"&&e.rank<=10),$=null==W?void 0:null===(p=W.rankings)||void 0===p?void 0:p.find(e=>!!(null==e?void 0:e.allTime)&&(null==e?void 0:e.type)==="RATED"&&e.rank<=100),J=null==W?void 0:null===(x=W.rankings)||void 0===x?void 0:x.find(e=>(!!(null==e?void 0:e.season)||!!(null==e?void 0:e.year))&&(null==e?void 0:e.type)==="RATED"&&e.rank<=5);return(null==W||null===(w=W.rankings)||void 0===w||w.find(e=>!!(null==e?void 0:e.allTime)&&(null==e?void 0:e.type)==="POPULAR"&&e.rank<=100),Z.media)?(0,l.jsxs)("div",{className:"space-y-8 pb-10",children:[(0,l.jsx)("div",{className:"space-y-8 p-8 rounded-xl bg-gray-900 bg-opacity-80 drop-shadow-md relative",children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)("h1",{className:"[text-shadow:_0_1px_10px_rgb(0_0_0_/_20%)]",children:null===(N=Z.media.title)||void 0===N?void 0:N.userPreferred}),(null===(I=Z.media.title)||void 0===I?void 0:null===(C=I.userPreferred)||void 0===C?void 0:C.toLowerCase())!==(null===(k=Z.media.title)||void 0===k?void 0:null===(D=k.english)||void 0===D?void 0:D.toLowerCase())&&(0,l.jsx)("h4",{className:"text-gray-400",children:null===(_=Z.media.title)||void 0===_?void 0:_.english})]}),Z.media.season?(0,l.jsx)("div",{children:(0,l.jsxs)("p",{className:"text-lg text-gray-200 flex w-full gap-1 items-center",children:[(0,l.jsx)(c.V,{})," ",new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short"}).format(new Date((null===(F=Z.media.startDate)||void 0===F?void 0:F.year)||0,(null===(M=Z.media.startDate)||void 0===M?void 0:M.month)||0))," - ",h()(null!==(H=Z.media.season)&&void 0!==H?H:"")]})}):(0,l.jsx)("p",{className:"text-lg text-gray-200 flex w-full gap-1 items-center"}),(0,l.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,l.jsx)(ScoreProgressBadges,{score:null===(T=Z.listData)||void 0===T?void 0:T.score,progress:null===(P=Z.listData)||void 0===P?void 0:P.progress,episodes:Z.media.episodes}),(0,l.jsx)(u.X,{listData:Z.listData,media:Z.media}),(0,l.jsx)("p",{className:"text-lg",children:h()((null===(z=Z.listData)||void 0===z?void 0:z.status)==="CURRENT"?"Watching":null===(L=Z.listData)||void 0===L?void 0:L.status)})]}),(0,l.jsx)("p",{className:"max-h-24 overflow-y-auto",children:null==W?void 0:null===(A=W.description)||void 0===A?void 0:A.replace(/(<([^>]+)>)/ig,"")}),!!(null==W?void 0:null===(R=W.studios)||void 0===R?void 0:R.nodes)&&(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"font-bold",children:"Studio"}),(0,l.jsx)(m.C,{className:"ml-2",size:"lg",intent:"gray",badgeClassName:"rounded-md",children:null==W?void 0:null===(B=W.studios)||void 0===B?void 0:null===(O=B.nodes)||void 0===O?void 0:null===(U=O[0])||void 0===U?void 0:U.name})]}),(0,l.jsxs)("div",{className:"items-center flex flex-wrap gap-2",children:[!!(null==W?void 0:W.meanScore)&&!Y&&(0,l.jsx)(m.C,{className:"",size:"lg",intent:W.meanScore>=70?W.meanScore>=85?"primary":"success":"warning",leftIcon:(0,l.jsx)(f.k,{}),children:W.meanScore/10}),null==W?void 0:null===(V=W.genres)||void 0===V?void 0:V.map(e=>(0,l.jsx)(m.C,{className:"mr-2",size:"lg",children:e},e))]}),(!!$||!!X)&&(0,l.jsxs)("div",{className:"flex flex-wrap gap-2",children:[$&&(0,l.jsxs)(m.C,{className:"",size:"lg",intent:"gray",leftIcon:(0,l.jsx)(j.p,{}),iconClassName:"text-yellow-500",badgeClassName:"rounded-md",children:["#",String($.rank)," Highest Rated ","TV"!==$.format?"".concat($.format):""," of All Time"]}),J&&(0,l.jsxs)(m.C,{className:"",size:"lg",intent:"gray",leftIcon:(0,l.jsx)(b.y,{}),iconClassName:"text-yellow-500",badgeClassName:"rounded-md",children:["#",String(J.rank)," Highest Rated ","TV"!==J.format?"".concat(J.format):""," of ",h()(J.season)," ",J.year]}),X&&(0,l.jsxs)(m.C,{className:"",size:"lg",intent:"gray",leftIcon:(0,l.jsx)(y.l,{}),iconClassName:"text-pink-500",badgeClassName:"rounded-md",children:["#",String(X.rank)," Most Popular ","TV"!==X.format?"".concat(X.format):""," of ",h()(X.season)," ",X.year]})]}),"NOT_YET_RELEASED"!==Z.media.status&&(0,l.jsx)(TorrentSearchButton,{entry:Z}),(0,l.jsx)(S.iz,{className:"dark:border-gray-800"}),(0,l.jsx)(NextAiringEpisode,{media:Z.media}),(0,l.jsx)("div",{className:"w-full flex justify-end",children:(0,l.jsx)(v(),{href:"https://anilist.co/anime/".concat(Z.mediaId),target:"_blank",children:"Open on AniList"})})]})}),(0,l.jsxs)(g.UQ,{containerClassName:"hidden md:block",triggerClassName:"bg-gray-900 bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 hover:bg-gray-800 dark:hover:bg-gray-800 hover:bg-opacity-100 dark:hover:bg-opacity-100",children:[Q.length>0&&(0,l.jsx)(g.UQ.Item,{title:"Relations",defaultOpen:!0,children:(0,l.jsx)("div",{className:"grid grid-cols-4 gap-4 p-4",children:Q.slice(0,4).map(e=>{var t,i,n,a,o,s,r,c;return(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsx)(v(),{href:"/entry?id=".concat(null===(t=e.node)||void 0===t?void 0:t.id),children:(null===(n=e.node)||void 0===n?void 0:null===(i=n.coverImage)||void 0===i?void 0:i.large)&&(0,l.jsxs)("div",{className:"h-64 w-full flex-none rounded-md object-cover object-center relative overflow-hidden group/anime-list-item",children:[(0,l.jsx)(d(),{src:null===(a=e.node)||void 0===a?void 0:a.coverImage.large,alt:"",fill:!0,quality:80,priority:!0,sizes:"10rem",className:"object-cover object-center group-hover/anime-list-item:scale-110 transition"}),(0,l.jsx)("div",{className:"z-[5] absolute bottom-0 w-full h-[60%] bg-gradient-to-t from-black to-transparent"}),(0,l.jsx)(m.C,{className:"absolute left-2 top-2 font-semibold rounded-md text-[.95rem]",intent:"white-solid",children:(null===(o=e.node)||void 0===o?void 0:o.format)==="MOVIE"?h()(e.relationType||"").replace("_"," ")+" (Movie)":h()(e.relationType||"").replace("_"," ")}),(0,l.jsx)("div",{className:"p-2 z-[5] absolute bottom-0 w-full ",children:(0,l.jsx)("p",{className:"font-semibold line-clamp-2 overflow-hidden",children:null===(r=e.node)||void 0===r?void 0:null===(s=r.title)||void 0===s?void 0:s.userPreferred})})]})})},null===(c=e.node)||void 0===c?void 0:c.id)})})}),(0,l.jsx)(g.UQ.Item,{title:"Recommendations",children:(0,l.jsx)("div",{className:"grid grid-cols-4 gap-4 p-4",children:null==W?void 0:null===(K=W.recommendations)||void 0===K?void 0:null===(G=K.edges)||void 0===G?void 0:G.map(e=>{var t;return null==e?void 0:null===(t=e.node)||void 0===t?void 0:t.mediaRecommendation}).filter(Boolean).map(e=>{var t,i;return(0,l.jsx)("div",{className:"col-span-1",children:(0,l.jsx)(v(),{href:"/entry?id=".concat(e.id),children:(null===(t=e.coverImage)||void 0===t?void 0:t.large)&&(0,l.jsxs)("div",{className:"h-64 w-full flex-none rounded-md object-cover object-center relative overflow-hidden group/anime-list-item",children:[(0,l.jsx)(d(),{src:e.coverImage.large,alt:"",fill:!0,quality:80,priority:!0,sizes:"10rem",className:"object-cover object-center group-hover/anime-list-item:scale-110 transition"}),(0,l.jsx)("div",{className:"z-[5] absolute bottom-0 w-full h-[60%] bg-gradient-to-t from-black to-transparent"}),(0,l.jsx)("div",{className:"p-2 z-[5] absolute bottom-0 w-full ",children:(0,l.jsx)("p",{className:"font-semibold line-clamp-2 overflow-hidden",children:null===(i=e.title)||void 0===i?void 0:i.userPreferred})})]})})},e.id)})})})]})]}):null}function TorrentSearchButton(e){var t,i,n,o,s,r,d;let{entry:c}=e,u=(0,E.b9)(eP),m=null===(i=c.downloadInfo)||void 0===i?void 0:null===(t=i.episodesToDownload)||void 0===t?void 0:t.length,g=(0,a.useMemo)(()=>{var e;return(null===(e=c.media)||void 0===e?void 0:e.format)==="MOVIE"},[null===(n=c.media)||void 0===n?void 0:n.format]);return(0,l.jsxs)("div",{children:[(null===(o=c.downloadInfo)||void 0===o?void 0:o.hasInaccurateSchedule)&&(0,l.jsxs)("p",{className:"text-orange-200 text-center mb-3",children:[(0,l.jsx)("span",{className:"block",children:"Could not retrieve accurate scheduling information for this show."}),(0,l.jsx)("span",{className:"block text-[--muted]",children:"Please check the schedule online for more information."})]}),(0,l.jsx)(I.zx,{className:"w-full",intent:(null===(s=c.downloadInfo)||void 0===s?void 0:s.hasInaccurateSchedule)?"warning-subtle":m?"white":"white-subtle",size:"lg",leftIcon:m?(0,l.jsx)(D.y,{}):(0,l.jsx)(k.j,{}),iconClassName:"text-2xl",onClick:()=>u(!0),children:(null===(r=c.downloadInfo)||void 0===r?void 0:r.hasInaccurateSchedule)||!m?(0,l.jsx)(l.Fragment,{children:"Search torrents"}):(0,l.jsxs)(l.Fragment,{children:[!g&&"Download ".concat((null===(d=c.downloadInfo)||void 0===d?void 0:d.batchAll)?"batch /":"next"," ").concat(m>1?"".concat(m," episodes"):"episode"),g&&"Download movie"]})})]})}function NextAiringEpisode(e){var t,i;return(0,l.jsx)(l.Fragment,{children:!!e.media.nextAiringEpisode&&(0,l.jsxs)("div",{className:"flex gap-2 items-center justify-center",children:[(0,l.jsxs)("p",{className:"text-xl min-[2000px]:text-xl",children:["Next episode ",(0,N.Z)((0,C.Z)(new Date,null===(t=e.media.nextAiringEpisode)||void 0===t?void 0:t.timeUntilAiring),{addSuffix:!0}),":"]}),(0,l.jsx)("p",{className:"text-justify font-normal text-xl min-[2000px]:text-xl",children:(0,l.jsx)(m.C,{size:"lg",children:null===(i=e.media.nextAiringEpisode)||void 0===i?void 0:i.episode})})]})})}var eL=i(93054),eA=i(62319),eR=i(29506),eU=i(12325),eO=i(98602),eB=i(10137),eV=i(57685),eG=i(38038);let eK=(0,F.cn)(!1),eH=(0,eV.sn)([]);function BulkDeleteFilesModal(e){let{entry:t}=e,[i,n]=(0,E.KO)(eK);return(0,l.jsx)(_.u_,{isOpen:i,onClose:()=>n(!1),size:"xl",title:(0,l.jsx)("span",{children:"Select files to delete"}),titleClassName:"text-center",isClosable:!0,children:(0,l.jsx)(Content,{entry:t})})}function Content(e){let{entry:t}=e,[i,n]=(0,E.KO)(eK),[o,s]=(0,E.KO)(eH),r=t.media,d=t.localFiles;(0,a.useEffect)(()=>{s(d.map(e=>({file:e,selected:!0})).toSorted((e,t)=>e.file.metadata.episode-t.file.metadata.episode))},[i,d]);let c=(0,eG.NL)(),{mutate:u,isPending:m}=(0,L.$U)({endpoint:A.E.LOCAL_FILES,mutationKey:["delete-local-files"],method:"delete",onSuccess:async()=>{eF.ZP.success("Files removed"),await c.refetchQueries({queryKey:["get-media-entry",null==r?void 0:r.id]}),await c.refetchQueries({queryKey:["get-library-collection"]})}}),g=(0,eR.H)({title:"Delete files",description:"This action cannot be undone.",onConfirm:()=>{u({paths:o.filter(e=>{let{selected:t}=e;return t}).map(e=>{let{file:t}=e;return t.path})})}}),p=o.every(e=>{let{selected:t}=e;return t}),v=o.every(e=>{let{selected:t}=e;return!t});return r?(0,l.jsxs)("div",{className:"space-y-2 mt-2",children:[(0,l.jsxs)("div",{className:"max-h-96 overflow-y-auto px-2 space-y-2",children:[(0,l.jsx)("div",{className:"p-2",children:(0,l.jsx)(Q.XZ,{label:"Select all files",checked:!!p||!v&&"indeterminate",onChange:e=>{"boolean"==typeof e&&s(e=>e.every(e=>{let{selected:t}=e;return t})?e.map(e=>{let{file:t}=e;return{file:t,selected:!1}}):e.map(e=>{let{file:t}=e;return{file:t,selected:!0}}))},fieldClassName:"w-[fit-content]"})}),(0,l.jsx)(S.iz,{}),o.map((e,t)=>{let{file:i,selected:n}=e;return(0,l.jsx)("div",{className:"p-2 border-b border-[--border]",children:(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(Q.XZ,{label:"".concat(ek.basename(i.path)),checked:n,onChange:e=>{"boolean"==typeof e&&s(i=>{i[t].selected=e})},fieldClassName:"w-[fit-content]"})})},"".concat(i.path,"-").concat(t))})]}),(0,l.jsxs)("div",{className:"flex justify-end gap-2 mt-2",children:[(0,l.jsx)(I.zx,{intent:"alert",onClick:()=>g.open(),isLoading:m,children:"Delete"}),(0,l.jsx)(I.zx,{intent:"white",onClick:()=>n(!1),isDisabled:m,children:"Cancel"})]}),(0,l.jsx)(eR.U,{...g})]}):null}var eZ=i(42552);function EpisodeSectionMenu(e){let{entry:t}=e,{startDefaultMediaPlayer:i}=(0,eO.VP)(),{openEntryInExplorer:n}=(0,eO.tB)(),{unmatchAll:a,isPending:o}=(0,eB.Kg)(t.mediaId),s=(0,eR.H)({title:"Unmatch all files",description:"Are you sure you want to unmatch all files?",onConfirm:()=>{a(t.mediaId)}}),r=(0,E.b9)(eK);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(Y.h_,{trigger:(0,l.jsx)(I.hU,{icon:(0,l.jsx)(eU.T,{}),intent:"gray-basic",size:"xl"}),children:[(0,l.jsx)(Y.h_.Item,{onClick:()=>n(t.mediaId),children:"Open folder"}),(0,l.jsx)(Y.h_.Item,{onClick:i,children:"Start video player"}),(0,l.jsx)(Y.h_.Divider,{}),(0,l.jsxs)(Y.h_.Group,{title:"Bulk actions",children:[(0,l.jsxs)(Y.h_.Item,{className:"text-red-500 dark:text-red-200 flex justify-between",onClick:s.open,disabled:o,children:[(0,l.jsx)("span",{children:"Unmatch all files"})," ",(0,l.jsx)(eZ.O,{})]}),(0,l.jsxs)(Y.h_.Item,{className:"text-red-500 dark:text-red-200 flex justify-between",onClick:()=>r(!0),disabled:o,children:[(0,l.jsx)("span",{children:"Delete some files"})," ",(0,l.jsx)(eZ.O,{})]})]})]}),(0,l.jsx)(eR.U,{...s}),(0,l.jsx)(BulkDeleteFilesModal,{entry:t})]})}var eW=i(24285),eq=i(34479);function BulkToggleLockButton(e){var t,i;let{entry:n}=e,a=null===(t=n.libraryData)||void 0===t?void 0:t.allFilesLocked,{toggleLock:o,isPending:s}=(0,eB.Kg)(n.mediaId);return(0,l.jsx)(el.u,{trigger:(0,l.jsx)(I.hU,{icon:(null===(i=n.libraryData)||void 0===i?void 0:i.allFilesLocked)?(0,l.jsx)(eq.K,{}):(0,l.jsx)(eW.k,{}),intent:a?"success-subtle":"warning-subtle",size:"xl",className:"hover:opacity-60",onClick:()=>o(n.mediaId),isLoading:s}),children:a?"Unlock all files":"Lock all files"})}var eY=i(33216),eQ=i(32366),eX=i(26345),e$=i(24521);let eJ=(0,eY.Xn)(),e0=(0,F.cn)(!1),e2=(0,F.cn)(!1),e1=(0,a.memo)(e=>{var t,i,n,a;let{episode:o,media:s,isWatched:r,onPlay:d}=e,{updateLocalFile:c,isPending:u}=(0,eB._U)(s.id);return(0,l.jsxs)(eJ.Provider,{children:[(0,l.jsx)(EpisodeListItem,{media:s,image:null===(t=o.episodeMetadata)||void 0===t?void 0:t.image,onClick:()=>{var e,t;return d({path:null!==(t=null===(e=o.localFile)||void 0===e?void 0:e.path)&&void 0!==t?t:""})},isInvalid:o.isInvalid,title:o.displayTitle,episodeTitle:o.episodeTitle,fileName:null===(i=o.localFile)||void 0===i?void 0:i.name,isWatched:o.progressNumber>0&&r,action:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(I.hU,{icon:(null===(n=o.localFile)||void 0===n?void 0:n.locked)?(0,l.jsx)(eq.K,{}):(0,l.jsx)(eW.k,{}),intent:(null===(a=o.localFile)||void 0===a?void 0:a.locked)?"success-basic":"warning-basic",size:"md",className:"hover:opacity-60",isLoading:u,onClick:()=>{if(o.localFile){var e;c(o.localFile,{locked:!(null===(e=o.localFile)||void 0===e?void 0:e.locked)})}}}),(0,l.jsxs)(Y.h_,{trigger:(0,l.jsx)(I.hU,{icon:(0,l.jsx)(eQ.K,{}),intent:"gray-basic",size:"xs"}),children:[(0,l.jsx)(MetadataModalButton,{}),(0,l.jsx)(Y.h_.Divider,{}),(0,l.jsx)(Y.h_.Item,{className:"!text-red-300 !dark:text-red-200",onClick:()=>{o.localFile&&c(o.localFile,{mediaId:0})},children:"Unmatch"})]}),!!o.episodeMetadata&&("main"===o.type||"special"===o.type)&&(0,l.jsx)(EpisodeItemInfoModalButton,{})]})}),(0,l.jsx)(MetadataModal,{episode:o}),(0,l.jsx)(EpisodeItemInfoModal,{episode:o})]})}),e4=(0,eX.SC)(e=>{let{z:t}=e;return t.object({episode:t.number().min(0),aniDBEpisode:t.string().transform(e=>e.toUpperCase()),type:t.string().min(0)})});function MetadataModal(e){var t,i;let{episode:n}=e,[a,o]=eJ.useAtom(e0),{updateLocalFile:s,isPending:r}=(0,eB._U)(null===(t=n.basicMedia)||void 0===t?void 0:t.id);return(0,l.jsxs)(_.u_,{isOpen:a,onClose:()=>o(!1),isClosable:!0,title:n.displayTitle,titleClassName:"text-center",size:"lg",children:[(0,l.jsx)("p",{className:"w-full line-clamp-2 text-sm text-[--muted] px-4 text-center py-2 flex-none",children:null===(i=n.localFile)||void 0===i?void 0:i.name}),(0,l.jsxs)(eX.Fu,{schema:e4,onSubmit:e=>{if(n.localFile){var t;s(n.localFile,{metadata:{...null===(t=n.localFile)||void 0===t?void 0:t.metadata,type:e.type,episode:e.episode,aniDBEpisode:e.aniDBEpisode}},()=>{o(!1),eF.ZP.success("Metadata saved")})}},onError:console.log,defaultValues:{...n.fileMetadata},children:[(0,l.jsx)(eX.gN.Number,{label:"Episode number",name:"episode",help:"Relative episode number. If movie, episode number = 1",discrete:!0,isRequired:!0}),(0,l.jsx)(eX.gN.Text,{label:"AniDB episode",name:"aniDBEpisode",help:"Specials typically contain the letter S"}),(0,l.jsx)(eX.gN.Select,{label:"Type",name:"type",options:[{label:"Main",value:"main"},{label:"Special",value:"special"},{label:"NC/Other",value:"nc"}]}),(0,l.jsx)("div",{className:"w-full flex justify-end",children:(0,l.jsx)(eX.gN.Submit,{role:"save",intent:"success",isLoading:r})})]})]})}function MetadataModalButton(){let[,e]=eJ.useAtom(e0);return(0,l.jsx)(Y.h_.Item,{onClick:()=>e(!0),children:"Update metadata"})}function EpisodeItemInfoModalButton(){let[,e]=eJ.useAtom(e2);return(0,l.jsx)(I.hU,{icon:(0,l.jsx)(e$.n,{}),intent:"gray-basic",size:"xs",onClick:()=>e(!0)})}function EpisodeItemInfoModal(e){var t,i,n,a,o,s,r,c;let{episode:u}=e,[m,g]=eJ.useAtom(e2);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(_.u_,{isOpen:m,onClose:()=>g(!1),title:u.displayTitle,isClosable:!0,size:"xl",titleClassName:"text-xl",children:[(null===(t=u.episodeMetadata)||void 0===t?void 0:t.image)&&(0,l.jsxs)("div",{className:"h-[8rem] w-full flex-none object-cover object-center overflow-hidden absolute left-0 top-0 z-[-1]",children:[(0,l.jsx)(d(),{src:null===(i=u.episodeMetadata)||void 0===i?void 0:i.image,alt:"banner",fill:!0,quality:80,priority:!0,sizes:"20rem",className:"object-cover object-center opacity-30"}),(0,l.jsx)("div",{className:"z-[5] absolute bottom-0 w-full h-[80%] bg-gradient-to-t from-gray-900 to-transparent"})]}),(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("p",{className:"text-lg line-clamp-2 font-semibold",children:[u.episodeTitle,u.isInvalid&&(0,l.jsx)(z.C,{})]}),(0,l.jsxs)("p",{className:"text-[--muted]",children:[(null===(n=u.episodeMetadata)||void 0===n?void 0:n.airDate)||"Unknown airing date"," - ",(null===(a=u.episodeMetadata)||void 0===a?void 0:a.length)||"N/A"," minutes"]}),(0,l.jsx)("p",{className:"text-[--muted]",children:(null===(o=u.episodeMetadata)||void 0===o?void 0:o.summary)||"No summary"}),!!(null===(s=u.episodeMetadata)||void 0===s?void 0:s.aniDBId)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.iz,{}),(0,l.jsxs)("div",{className:"w-full flex justify-between",children:[(0,l.jsxs)("p",{children:["AniDB Episode: ",null===(r=u.fileMetadata)||void 0===r?void 0:r.aniDBEpisode]}),(0,l.jsx)("a",{href:"https://anidb.net/episode/"+(null===(c=u.episodeMetadata)||void 0===c?void 0:c.aniDBId)+"#layout-footer",target:"_blank",className:"text-brand-200",children:"Open on AniDB"})]})]})]})]})})}var e5=i(20302),e3=i(83891),e8=i(47900);function UndownloadedEpisodeList(e){let{downloadInfo:t,media:i}=e,n=null==t?void 0:t.episodesToDownload,o=(0,E.b9)(eP),s=(0,E.b9)(ez);return(null==n?void 0:n.length)?(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("p",{className:"",children:(null==t?void 0:t.rewatch)?"You have not downloaded the following:":"You have not watched nor downloaded the following:"}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:null==n?void 0:n.sort((e,t)=>e.episodeNumber-t.episodeNumber).map((e,t)=>{var n,r,d,u;if(!e.episode)return null;let m=e.episode;return(0,l.jsx)(EpisodeListItem,{media:i,image:null===(n=m.episodeMetadata)||void 0===n?void 0:n.image,isInvalid:m.isInvalid,title:m.displayTitle,episodeTitle:m.episodeTitle,action:(0,l.jsx)("div",{className:"",children:(0,l.jsx)("a",{onClick:()=>{s(m.episodeNumber),(0,a.startTransition)(()=>{o(!0)})},className:"text-orange-200 absolue top-1 right-1 text-3xl absolute animate-pulse cursor-pointer",children:(0,l.jsx)(D.y,{})})}),children:(0,l.jsx)("div",{className:"mt-1",children:(0,l.jsxs)("p",{className:"flex gap-1 items-center text-sm text-[--muted]",children:[(0,l.jsx)(c.V,{})," ",(null===(r=m.episodeMetadata)||void 0===r?void 0:r.airDate)?"Aired on ".concat(new Date(null===(d=m.episodeMetadata)||void 0===d?void 0:d.airDate).toLocaleDateString()):"Aired"]})})},(null===(u=e.episode.localFile)||void 0===u?void 0:u.path)||t)})})]}):null}function useVideoPlayer(){let{mutate:e}=(0,L.$U)({endpoint:A.E.PLAY_VIDEO}),t=(0,a.useCallback)(t=>{let{path:i}=t;return e({path:i})},[]);return{playVideo:t}}function usePlayNextVideoOnMount(e){let{onPlay:t}=e,i=(0,n.useRouter)(),l=(0,n.usePathname)(),o=(0,n.useSearchParams)(),s=o.get("playNext"),r=o.get("id");return(0,a.useEffect)(()=>{let e=setTimeout(()=>{s&&(i.replace(l+"?id=".concat(r)),t())},500);return()=>clearTimeout(e)},[l,r,s]),null}var e9=i(67998),e6=i(37122);function ProgressTracking(e){var t;let{entry:i}=e,n=(0,eG.NL)(),o=(0,e6.k)(!1),s=(0,e6.k)(!1),r=(0,e6.k)(!1),[d,c]=(0,a.useState)(null),u=(0,a.useMemo)(()=>{if(d){var e;return null===(e=i.episodes)||void 0===e?void 0:e.find(e=>{var t;return(null===(t=e.localFile)||void 0===t?void 0:t.name)===d.filename})}},[d,i.episodes]),g=(0,a.useMemo)(()=>{var e,t,l;return!!u&&(!(null===(e=i.listData)||void 0===e?void 0:e.progress)||!!(null===(t=i.listData)||void 0===t?void 0:t.progress)&&(null===(l=i.listData)||void 0===l?void 0:l.progress){s.on(),o.on(),r.active||(r.off(),c(e))}}),(0,e9.SN)({type:A.f.MEDIA_PLAYER_VIDEO_COMPLETED,onMessage:e=>{s.on(),o.on(),r.on(),c(e)}}),(0,e9.SN)({type:A.f.MEDIA_PLAYER_TRACKING_STOPPED,onMessage:e=>{"Closed"===e?eF.ZP.success("Player closed"):eF.ZP.error(e),r.active||(s.off(),o.off(),c(null))}});let{mutate:p,isPending:v}=(0,L.$U)({endpoint:A.E.ANILIST_LIST_ENTRY_PROGRESS,mutationKey:["update-anilist-list-entry-progress"],onSuccess:async()=>{eF.ZP.success("Progress updated"),c(null),r.off(),o.off(),await n.refetchQueries({queryKey:["get-media-entry",i.mediaId]}),await n.refetchQueries({queryKey:["get-library-collection"]}),await n.refetchQueries({queryKey:["get-anilist-collection"]})}});return(0,l.jsxs)(l.Fragment,{children:[s.active&&(0,l.jsx)(I.zx,{intent:"success",className:(0,T.cn)({"animate-pulse":r.active}),onClick:o.on,children:"Update progress"}),(0,l.jsxs)(_.u_,{isOpen:o.active,onClose:o.off,children:[(0,l.jsx)("div",{className:"bg-[--background-color] border border-[--border] rounded-md p-4 mb-4 text-center",children:d&&r.active&&u?(0,l.jsxs)("p",{className:"text-xl",children:["Current progress: ",(0,l.jsxs)(m.C,{size:"lg",children:[u.progressNumber," ",(0,l.jsxs)("span",{className:"opacity-60",children:["/ ",i.currentEpisodeCount]})]})]}):(0,l.jsx)("p",{children:"Currently watching"})}),(0,l.jsx)("div",{className:"flex gap-2 justify-center items-center",children:!!d&&r.active&&g&&(0,l.jsx)(I.zx,{intent:"primary",isDisabled:!1,onClick:()=>{p({mediaId:i.mediaId,progress:u.progressNumber})},isLoading:v,className:"w-full",children:"Confirm"})})]})]})}function EpisodeSection(e){var t,i;let{entry:n}=e,o=n.media,{playVideo:s}=useVideoPlayer();usePlayNextVideoOnMount({onPlay:()=>{if(n.nextEpisode){var e,t;s({path:null!==(t=null===(e=n.nextEpisode.localFile)||void 0===e?void 0:e.path)&&void 0!==t?t:""})}}});let r=(0,a.useMemo)(()=>{var e,t;return null!==(t=null===(e=n.episodes)||void 0===e?void 0:e.filter(e=>"main"===e.type))&&void 0!==t?t:[]},[n.episodes]),d=(0,a.useMemo)(()=>{var e,t;return null!==(t=null===(e=n.episodes)||void 0===e?void 0:e.filter(e=>"special"===e.type))&&void 0!==t?t:[]},[n.episodes]),c=(0,a.useMemo)(()=>{var e,t;return null!==(t=null===(e=n.episodes)||void 0===e?void 0:e.filter(e=>"nc"===e.type))&&void 0!==t?t:[]},[n.episodes]),u=(0,a.useMemo)(()=>{var e;let t=r.filter(e=>{var t,i;return!n.nextEpisode||e.progressNumber>(null!==(i=null===(t=n.listData)||void 0===t?void 0:t.progress)&&void 0!==i?i:0)});return(null===(e=n.listData)||void 0===e?void 0:e.progress)&&!n.nextEpisode?t.reverse():t},[r,n.nextEpisode,null===(t=n.listData)||void 0===t?void 0:t.progress]);return o?!o||n.listData&&n.libraryData?(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(eL.ce,{spacing:"lg",children:[(0,l.jsxs)("div",{className:"mb-8 flex flex-col md:flex-row items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-8",children:[(0,l.jsx)("h2",{children:"MOVIE"===o.format?"Movie":"Episodes"}),!!n.nextEpisode&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(I.zx,{size:"lg",intent:"white",rightIcon:(0,l.jsx)(eA.B,{}),iconClassName:"text-2xl",onClick:()=>{var e,t,i;return s({path:null!==(i=null===(t=n.nextEpisode)||void 0===t?void 0:null===(e=t.localFile)||void 0===e?void 0:e.path)&&void 0!==i?i:""})},children:"MOVIE"===o.format?"Watch":"Play next episode"})})]}),!!n.libraryData&&(0,l.jsxs)("div",{className:"space-x-4 flex items-center",children:[(0,l.jsx)(ProgressTracking,{entry:n}),(0,l.jsx)(BulkToggleLockButton,{entry:n}),(0,l.jsx)(EpisodeSectionMenu,{entry:n})]})]}),u.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(M.i,{children:u.map(e=>{var t;return(0,l.jsx)(e7,{episode:e,onPlay:s},(null===(t=e.localFile)||void 0===t?void 0:t.path)||"")})}),(0,l.jsx)(S.iz,{})]}),!(null===(i=n.episodes)||void 0===i?void 0:i.length)&&(0,l.jsx)("p",{children:"Not in your library"}),(0,l.jsxs)("div",{className:"space-y-10",children:[(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:r.map(e=>{var t,i;return(0,l.jsx)(e1,{episode:e,media:o,isWatched:!!(null===(t=n.listData)||void 0===t?void 0:t.progress)&&n.listData.progress>=e.progressNumber,onPlay:s},(null===(i=e.localFile)||void 0===i?void 0:i.path)||"")})}),(0,l.jsx)(UndownloadedEpisodeList,{downloadInfo:n.downloadInfo,media:o}),d.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.iz,{}),(0,l.jsx)("h3",{children:"Specials"}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:d.map(e=>{var t;return(0,l.jsx)(e1,{episode:e,media:o,onPlay:s},(null===(t=e.localFile)||void 0===t?void 0:t.path)||"")})})]}),c.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(S.iz,{}),(0,l.jsx)("h3",{children:"Others"}),(0,l.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:c.map(e=>{var t;return(0,l.jsx)(e1,{episode:e,media:o,onPlay:s},(null===(t=e.localFile)||void 0===t?void 0:t.path)||"")})})]})]})]})}):(0,l.jsxs)("div",{className:"space-y-10",children:[(null==o?void 0:o.status)!=="NOT_YET_RELEASED"?(0,l.jsx)("p",{children:"Not in your library"}):(0,l.jsx)("p",{children:"Not yet released"}),(0,l.jsx)("div",{className:"overflow-y-auto pt-4 lg:pt-0 space-y-10",children:(0,l.jsx)(UndownloadedEpisodeList,{downloadInfo:n.downloadInfo,media:o})})]}):null}let e7=(0,a.memo)(e=>{var t,i,n;let{episode:o,onPlay:s}=e,r=(null===(t=o.episodeMetadata)||void 0===t?void 0:t.airDate)?new Date(o.episodeMetadata.airDate):void 0,d=(0,a.useMemo)(()=>r?(0,e5.Z)(r,(0,e3.Z)(new Date,2)):void 0,[]);return(0,l.jsx)(e8.S,{image:null===(i=o.episodeMetadata)||void 0===i?void 0:i.image,title:(0,l.jsxs)("span",{children:[o.displayTitle," ",!!(null===(n=o.basicMedia)||void 0===n?void 0:n.episodes)&&1!=o.basicMedia.episodes&&(0,l.jsxs)("span",{className:"opacity-40",children:["/"," ",o.basicMedia.episodes]})]}),topTitle:o.episodeTitle,actionIcon:void 0,meta:r?d?new Intl.DateTimeFormat("en-US",{day:"2-digit",month:"2-digit",year:"2-digit"}).format(r):"".concat((0,N.Z)(r,{addSuffix:!0})):void 0,onClick:()=>{var e,t;return s({path:null!==(t=null===(e=o.localFile)||void 0===e?void 0:e.path)&&void 0!==t?t:""})}})});function Page(){let e=(0,n.useRouter)(),t=(0,n.useSearchParams)(),i=t.get("id"),{mediaEntry:s,mediaEntryLoading:r}=(0,o.X7)(i),{mediaDetails:d,mediaDetailsLoading:c}=(0,o.Jg)(i);return((0,a.useEffect)(()=>{i&&(r||s)||e.push("/")},[s,r]),r||c)?(0,l.jsx)(LoadingDisplay,{}):s?(0,l.jsxs)("div",{children:[(0,l.jsx)(EntryHeaderBackground,{entry:s}),(0,l.jsxs)("div",{className:"-mt-[8rem] relative z-10 max-w-full px-4 md:px-10 grid grid-cols-1 2xl:grid-cols-2 gap-8 pb-16",children:[(0,l.jsx)("div",{className:"-mt-[18rem] h-[fit-content] 2xl:sticky top-[5rem] backdrop-blur-xl",children:(0,l.jsx)(MetaSection,{entry:s,details:d})}),(0,l.jsx)("div",{className:"relative 2xl:order-first pb-10",children:(0,l.jsx)(EpisodeSection,{entry:s})})]}),(0,l.jsx)(TorrentSearchDrawer,{entry:s})]}):null}function LoadingDisplay(){return(0,l.jsx)("div",{className:"__header h-[30rem]",children:(0,l.jsxs)("div",{className:"h-[30rem] w-full md:w-[calc(100%-5rem)] flex-none object-cover object-center absolute top-0 overflow-hidden",children:[(0,l.jsx)("div",{className:"w-full absolute z-[1] top-0 h-[15rem] bg-gradient-to-b from-[--background-color] to-transparent via"}),(0,l.jsx)(s.O,{className:"h-full absolute w-full"}),(0,l.jsx)("div",{className:"w-full absolute bottom-0 h-[20rem] bg-gradient-to-t from-[--background-color] via-transparent to-transparent"})]})})}},29506:function(e,t,i){"use strict";i.d(t,{H:function(){return useConfirmationDialog},U:function(){return ConfirmationDialog}});var l=i(57437);i(2265);var n=i(97622),a=i(33538),o=i(37122);function useConfirmationDialog(e){let t=(0,o.q)(!1);return{...t,...e}}let ConfirmationDialog=e=>{let{isOpen:t,close:i,onConfirm:o,title:s,description:r="Are you sure you want to continue?",actionText:d="Confirm",actionIntent:c="alert-subtle"}=e;return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(a.u_,{title:s,titleClassName:"text-center",isOpen:t,onClose:i,isClosable:!0,children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsx)("p",{className:"text-center",children:r}),(0,l.jsxs)("div",{className:"flex gap-2 justify-center items-center",children:[(0,l.jsx)(n.zx,{intent:c,onClick:()=>{o(),i()},children:d}),(0,l.jsx)(n.zx,{intent:"white",onClick:i,children:"Cancel"})]})]})})})}},87826:function(e,t,i){"use strict";i.d(t,{UQ:function(){return c}});var l=i(57437),n=i(2265),a=i(18743),o=i(9805),s=i(54487),r=i(96061);let d=(0,s.xH)({container:(0,r.j)(["UI-Accordion__container","space-y-2"]),trigger:(0,r.j)(["UI-Accordion__trigger","bg-gray-50 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-700","flex w-full justify-between rounded-lg px-4 py-3 text-left font-medium transition","focus:outline-none focus-visible:ring-2 focus-visible:ring-[--ring] ring-offset-1"]),panel:(0,r.j)(["UI-Accordion__panel","py-2"]),item:(0,r.j)(["UI-Accordion__item"])}),_Accordion=e=>{let{children:t,triggerClassName:i,containerClassName:a,panelClassName:o,itemClassName:r,className:c,...u}=e,m=n.Children.map(t,e=>n.isValidElement(e)?n.cloneElement(e,{triggerClassName:i,panelClassName:o,itemClassName:r}):e);return(0,l.jsx)("div",{className:(0,s.cn)(d.container(),a,c),children:m})},AccordionItem=e=>{let{children:t,title:i,triggerClassName:n,panelClassName:r,itemClassName:c,className:u,defaultOpen:m,...g}=e;return(0,l.jsx)(a.p,{defaultOpen:m,children:e=>{let{open:m}=e;return(0,l.jsxs)("div",{className:(0,s.cn)(d.item(),c,u),...g,children:[(0,l.jsxs)(a.p.Button,{className:(0,s.cn)(d.trigger(),n),children:[i,(0,l.jsx)("svg",{className:(0,s.cn)("ml-1.5 h-5 w-5 flex-shrink-0 transition duration-300",{"-rotate-180":m}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),(0,l.jsx)(o.u,{show:m,enter:"transition duration-300 ease-out",enterFrom:"transform h-0 opacity-0",enterTo:"transform h-full opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform h-full opacity-100",leaveTo:"transform h-0 opacity-0",children:(0,l.jsx)(a.p.Panel,{static:!0,className:(0,s.cn)(d.panel(),r),children:t})})]})}})};AccordionItem.displayName="AccordionItem",_Accordion.Item=AccordionItem;let c=(0,s.Fm)(_Accordion);c.displayName="Accordion"},86679:function(e,t,i){"use strict";i.d(t,{VW:function(){return ToastProvider},pm:function(){return useToast}});var l=i(57437),n=i(9805),a=i(2265),o=i(5925),s=i(54487),r=i(97622),d=i(96061),c=i(11305);let u=(0,s.xH)({toast:(0,d.j)(["UI-Toast__toast","relative transform py-2 px-5 flex rounded-lg shadow-md","data-[type=error]:bg-red-500 data-[type=error]:text-white","data-[type=success]:bg-green-500 data-[type=success]:text-white","data-[type=loading]:bg-gray-50 dark:data-[type=loading]:bg-gray-800 data-[type=error]:text-white"]),content:(0,d.j)(["UI-Toast__content","h-full flex items-center"]),icon:(0,d.j)(["UI-Toast__icon","w-5 h-5"]),closeButton:(0,d.j)(["UI-Toast__closeButton","absolute top-1 right-1"])}),m=a.forwardRef((e,t)=>{let{t:i,toastClassName:a,closeButtonClassName:d,contentClassName:m,iconClassName:g}=e;return(0,l.jsxs)(n.u,{appear:!0,show:i.visible,className:(0,s.cn)(u.toast(),a),"data-type":i.type,enter:"transition-all duration-150",enterFrom:"opacity-0 scale-50",enterTo:"opacity-100 scale-100",leave:"transition-all duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-75",children:[(0,l.jsxs)("div",{className:(0,s.cn)(u.content(),m),children:["loading"!==i.type&&(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,s.cn)(u.icon(),g),children:["error"===i.type&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,l.jsx)("line",{x1:"15",x2:"9",y1:"9",y2:"15"}),(0,l.jsx)("line",{x1:"9",x2:"15",y1:"9",y2:"15"})]}),"success"===i.type&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),(0,l.jsx)("path",{d:"m9 12 2 2 4-4"})]})]}),"loading"===i.type&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(c.$j,{className:(0,s.cn)(u.icon(),g)})})]}),(0,l.jsx)("p",{className:"py-1 px-2 pr-6",children:(0,o.GK)(i.message,i)}),(0,l.jsx)(r.PZ,{className:(0,s.cn)(u.closeButton(),d),size:"sm",intent:"loading"!==i.type?"white-basic":"gray-basic",onClick:()=>o.ZP.dismiss(i.id)})]})}),ToastProvider=()=>(0,l.jsx)(o.x7,{children:e=>(0,l.jsx)(m,{t:e})}),useToast=()=>({success:e=>{o.ZP.success(null!=e?e:"")},error:e=>{o.ZP.error(null!=e?e:"")}})},34654:function(e,t,i){"use strict";i.d(t,{E:function(){return useDebounceWithSet},N:function(){return useDebounce}});var l=i(2265);function useDebounce(e,t){let[i,n]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let i=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(i)}},[e,t]),i}function useDebounceWithSet(e,t){let[i,n]=(0,l.useState)(e);return(0,l.useEffect)(()=>{let i=setTimeout(()=>n(e),t||500);return()=>{clearTimeout(i)}},[e,t]),[i,n]}},98602:function(e,t,i){"use strict";i.d(t,{$g:function(){return useDefaultSettingsPaths},VP:function(){return useOpenDefaultMediaPlayer},cg:function(){return useOpenInExplorer},tB:function(){return useOpenMediaEntryInExplorer}});var l=i(51472),n=i(57638);function useDefaultSettingsPaths(){return{getDefaultVlcPath:e=>{switch(e){case"windows":default:return"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";case"linux":return"/usr/bin/vlc";case"darwin":return"/Applications/VLC.app/Contents/MacOS/VLC"}},getDefaultQBittorrentPath:e=>{switch(e){case"windows":default:return"C:/Program Files/qBittorrent/qbittorrent.exe";case"linux":return"/usr/bin/qbittorrent";case"darwin":return"/Applications/Client.app/Contents/MacOS/qBittorrent"}}}}function useOpenDefaultMediaPlayer(){let{mutate:e}=(0,l.$U)({endpoint:n.E.START_MEDIA_PLAYER,mutationKey:["open-default-media-player"]});return{startDefaultMediaPlayer:()=>e()}}function useOpenMediaEntryInExplorer(){let{mutate:e}=(0,l.$U)({endpoint:n.E.OPEN_MEDIA_ENTRY_IN_EXPLORER,mutationKey:["open-media-entry-in-explorer"]});return{openEntryInExplorer:t=>e({mediaId:t})}}function useOpenInExplorer(){let{mutate:e}=(0,l.$U)({endpoint:n.E.OPEN_IN_EXPLORER,mutationKey:["open-in-explorer"]});return{openInExplorer:t=>e({path:t})}}}},function(e){e.O(0,[492,890,999,685,702,17,898,265,726,669,310,912,430,345,832,700,971,472,744],function(){return e(e.s=19185)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/layout-0355c4142dfd2591.js b/web/_next/static/chunks/app/(main)/layout-0355c4142dfd2591.js new file mode 100644 index 00000000..2105dc5a --- /dev/null +++ b/web/_next/static/chunks/app/(main)/layout-0355c4142dfd2591.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[95],{50626:function(e,t,n){Promise.resolve().then(n.bind(n,33729))},33729:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Layout}});var r=n(57437),a=n(93054),i=n(2265),s=n(28811),l=n.n(s),o=n(54487),c=n(96061),d=n(18743),u=n(61396),m=n.n(u),h=n(6469);let p=(0,o.xH)({nav:(0,c.j)(["UI-VerticalNav__nav","block space-y-1"]),item:(0,c.j)(["UI-VerticalNav__tab","group/vnav flex flex-none truncate items-center px-4 py-2 text-sm font-[600] rounded-[--radius] transition cursor-pointer","hover:bg-[--highlight] hover:text-[--text-color]","focus-visible:ring-2 ring-[--ring] outline-none","text-[--muted]","data-[selected=true]:bg-[--highlight]"]),parentItem:(0,c.j)(["UI-VerticalNav__parentItem","cursor-pointer"]),parentItemChevron:(0,c.j)(["UI-VerticalNav__parentItemChevron","w-5 h-5 transition-transform data-[open=true]:rotate-90"]),icon:(0,c.j)(["UI-VerticalNav__icon","flex-shrink-0 -ml-1 mr-3 h-6 w-6","text-[--muted]","group-hover/vnav:text-[--text-color] data-[selected=true]:text-white data-[selected=true]:group-hover/vnav:text-white"]),subList:(0,c.j)(["UI-VerticalNav__subList","pl-2"])}),x=i.forwardRef((e,t)=>{let{children:n,navClassName:a,itemClassName:s,iconClassName:l,parentItemClassName:c,subListClassName:u,parentItemChevronClassName:x,className:f,items:g,...v}=e;return(0,r.jsx)("nav",{ref:t,className:(0,o.cn)(p.nav(),a,f),...v,children:g.map((e,t)=>{var n;return e.content?(0,r.jsx)(d.p,{as:i.Fragment,children:n=>{let{open:a}=n;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.p.Button,{as:"div",tabIndex:t,className:(0,o.cn)(p.item(),p.parentItem(),s,c),"aria-current":e.isCurrent?"page":void 0,"data-selected":e.isCurrent,onClick:e.onClick,children:[(0,r.jsxs)("div",{className:"w-full flex items-center",children:[e.icon&&(0,r.jsx)(e.icon,{className:(0,o.cn)(p.icon(),l),"aria-hidden":"true","data-selected":e.isCurrent}),(0,r.jsx)("span",{children:e.name})]}),(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,o.cn)(p.parentItemChevron(),x),"data-open":"".concat(a),children:(0,r.jsx)("polyline",{points:"9 18 15 12 9 6"})})]},e.name),(0,r.jsx)(d.p.Panel,{className:(0,o.cn)(p.subList(),u),children:e.content&&e.content})]})}},e.name):(0,r.jsx)(h.u,{side:"right",sideOffset:4,align:"start",trigger:(0,r.jsxs)(m(),{href:null!==(n=e.href)&&void 0!==n?n:"#",className:(0,o.cn)(p.item(),s),"aria-current":e.isCurrent?"page":void 0,"data-selected":e.isCurrent,onClick:e.onClick,children:[e.icon&&(0,r.jsx)(e.icon,{className:(0,o.cn)(p.icon(),l),"aria-hidden":"true","data-selected":e.isCurrent}),(0,r.jsx)("span",{children:e.name}),e.addon]}),children:e.name},e.name)})})});x.displayName="VerticalNav";let f=(0,o.xH)({body:(0,c.j)(["UI-Avatar__body","inline-flex rounded-full justify-center align-center flex-shrink-0 bg-gray-400"],{variants:{size:{xs:"w-6 h-6",sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16",xl:"w-24 h-24","2xl":"w-32 h-32"}},defaultVariants:{size:"md"}}),fallbackIcon:(0,c.j)(["UI-Avatar__fallback-icon fill-gray-500"]),image:(0,c.j)(["UI-Avatar__image","w-full h-full object-cover rounded-full"]),placeholder:(0,c.j)(["UI-Avatar__placeholder","uppercase flex w-full h-full items-center justify-center","bg-gray-600 text-gray-50 font-semibold rounded-full"],{variants:{size:{xs:"text-xs",sm:"text-sm",md:"text-md",lg:"text-lg",xl:"text-xl","2xl":"text-2xl"}},defaultVariants:{size:"md"}})}),g=i.forwardRef((e,t)=>{let{children:n,className:a,size:s,src:l,placeholder:c,bodyClassName:d,fallbackIconClassName:u,imageClassName:m,placeholderClassName:h,...p}=e,[x,g]=(0,i.useState)(!!l&&(null==l?void 0:l.length)>0);(0,i.useEffect)(()=>{g(!!l&&(null==l?void 0:l.length)>0)},[l]);let v=(0,i.useRef)(null);return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:(0,o.cn)(f.body({size:s}),d,a),...p,ref:t,children:[!x&&!c&&(0,r.jsxs)("svg",{viewBox:"0 0 128 128",className:(0,o.cn)(f.fallbackIcon(),u),role:"img","aria-label":"avatar",children:[(0,r.jsx)("path",{className:"fill-gray-200",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),(0,r.jsx)("path",{className:"fill-gray-200",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]}),!x&&c&&(0,r.jsx)("span",{className:(0,o.cn)(f.placeholder({size:s}),h),children:c}),x&&(0,r.jsx)("img",{ref:v,src:null!=l?l:"",className:(0,o.cn)(f.image(),m),onError:e=>{e.currentTarget.style.display="none",g(!1)},onLoad:e=>{e.currentTarget.style.display="block",g(!0)}})]})})});(0,o.xH)({container:(0,c.j)("UI-AvatarShowcase__container group/container flex items-center"),name:(0,c.j)("UI-AvatarShowcase__name font-medium text-base text-[--text-color] tracking-tight"),description:(0,c.j)("UI-AvatarShowcase__description block text-sm text-[--muted]"),detailsContainer:(0,c.j)("UI-AvatarShowcase__detailsContainer ml-3")});var v=n(59123),y=n(16979),b=n(37122),j=n(33538),N=n(97622),w=n(53677),_=n(48761),C=n(24033),L=n(5472),S=n(88356),I=n(8538),A=n(23890),k=n(16846),E=n(59179),T=n(35590),M=n(86321),O=n(751),P=n(51472),U=n(57638),F=n(70226),z=n(37376);function MainSidebar(){var e;let{user:t}=(0,_.x)(),n=(0,C.usePathname)(),s=(0,A.b9)(O.X),l=(0,F.VK)(),{mutate:o,data:c,isPending:d}=(0,P.$U)({endpoint:U.E.LOGOUT,mutationKey:["logout"]});(0,i.useEffect)(()=>{d||s(c)},[d,c]);let u=(0,A.b9)(k.__globalSearch_isOpenAtom),m=(0,b.q)(!1),h=(0,i.useMemo)(()=>t?[{icon:M.m,name:"My lists",href:"/anilist",isCurrent:"/anilist"===n}]:[],[t,n]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(a.S8,{className:"p-4 h-full flex flex-col justify-between",sidebarClassName:"h-full",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mb-4 flex justify-center w-full",children:(0,r.jsx)("img",{src:"/logo.png",alt:"logo",className:"w-15 h-10"})}),(0,r.jsx)(x,{itemClassName:"relative",items:[{icon:E.Q,name:"Library",href:"/",isCurrent:"/"===n},{icon:T.c,name:"Schedule",href:"/schedule",isCurrent:"/schedule"===n,addon:l>0?(0,r.jsx)(z.C,{className:"absolute right-0 top-0",size:"sm",intent:"alert-solid",children:l}):void 0},...h,{icon:S.j,name:"Search",onClick:()=>u(!0)},{icon:I.y,name:"Torrent list",href:"/torrent-list",isCurrent:"/torrent-list"===n}]})]}),(0,r.jsxs)("div",{className:"flex w-full gap-2 flex-col",children:[(0,r.jsx)("div",{children:(0,r.jsx)(x,{items:[{icon:L.n,name:"Settings",href:"/settings",isCurrent:n.includes("/settings")}]})}),!t&&(0,r.jsx)("div",{children:(0,r.jsx)(x,{items:[{icon:y._,name:"Login",onClick:()=>window.open(v.kd,"_self")}]})}),!!t&&(0,r.jsx)("div",{className:"flex w-full gap-2 flex-col",children:(0,r.jsx)(w.h_,{trigger:(0,r.jsx)("div",{className:"pt-1 w-full flex justify-center",children:(0,r.jsx)(g,{size:"sm",className:"cursor-pointer",src:(null==t?void 0:null===(e=t.avatar)||void 0===e?void 0:e.medium)||""})}),children:(0,r.jsx)(w.Xi,{onClick:()=>o(),children:"Sign out"})})})]})]}),(0,r.jsx)(j.u_,{title:"Login",isOpen:m.isOpen,onClose:m.close,isClosable:!0,children:(0,r.jsx)("div",{className:"mt-5 text-center space-y-4",children:(0,r.jsx)(N.zx,{onClick:()=>{window.open(v.kd)},intent:"primary-outline",children:"Login with AniList"})})})]})}let H=l()(()=>Promise.resolve().then(n.bind(n,16846)).then(e=>e.GlobalSearch),{loadableGenerated:{webpack:()=>[16846]}}),MainLayout=e=>{let{children:t}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.FV,{children:(0,r.jsxs)(a.LN,{withSidebar:!0,sidebarSize:"slim",children:[(0,r.jsx)(a.LN.Sidebar,{children:(0,r.jsx)(MainSidebar,{})}),(0,r.jsx)(a.LN,{children:(0,r.jsx)(a.LN.Content,{children:t})})]})}),(0,r.jsx)(H,{})]})};var R=n(76732);let TopNavbar=e=>{let{children:t,...n}=e,a=(0,C.usePathname)(),s=(0,F.VK)(),l=(0,i.useMemo)(()=>[{href:"/",isCurrent:"/"===a,name:"My library"},{href:"/schedule",icon:null,isCurrent:a.startsWith("/schedule"),name:"Schedule",addon:s>0?(0,r.jsx)(z.C,{className:"absolute top-4 right-2 h-2 w-2 p-0",size:"sm",intent:"alert-solid"}):void 0},{href:"/anilist",icon:null,isCurrent:a.startsWith("/anilist"),name:"My lists"},{href:"/discover",icon:null,isCurrent:a.startsWith("/discover")||a.startsWith("/search"),name:"Discover"}],[a,s]);return(0,r.jsx)(R.ks,{className:"p-0",iconClassName:"",tabClassName:"text-xl",items:l})};var D=n(60060),K=n(68260);let RefreshAnilistButton=e=>{let{children:t,...n}=e,{refreshAnilistCollection:a,isPending:i}=(0,K.du)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(N.zx,{onClick:()=>a(),intent:"warning-subtle",rightIcon:(0,r.jsx)(D.A,{}),isLoading:i,leftIcon:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24",role:"img",children:(0,r.jsx)("path",{d:"M6.361 2.943 0 21.056h4.942l1.077-3.133H11.4l1.052 3.133H22.9c.71 0 1.1-.392 1.1-1.101V17.53c0-.71-.39-1.101-1.1-1.101h-6.483V4.045c0-.71-.392-1.102-1.101-1.102h-2.422c-.71 0-1.101.392-1.101 1.102v1.064l-.758-2.166zm2.324 5.948 1.688 5.018H7.144z"})}),className:"",children:"Refresh AniList"})})};var V=n(16691),$=n.n(V);function DynamicHeaderBackground(){let e=(0,C.usePathname)();return(0,r.jsx)(r.Fragment,{children:!e.startsWith("/entry")&&(0,r.jsxs)(r.Fragment,{children:[!e.startsWith("/anilist")&&(0,r.jsx)($(),{src:"/landscape-beach.jpg",alt:"tenki no ko",fill:!0,priority:!0,className:"object-cover object-center z-[-2]"}),e.startsWith("/anilist")&&(0,r.jsx)($(),{src:"/landscape-tenki-no-ko.jpg",alt:"tenki no ko",fill:!0,priority:!0,className:"object-cover z-[-2]"}),(0,r.jsx)("div",{className:"w-full absolute bottom-0 h-[20rem] bg-gradient-to-t from-[--background-color] to-transparent z-[-2]"})]})})}var q=n(95518);function Layout(e){let{children:t}=e;return(0,q.Iw)(),(0,F.Oh)(),(0,K.Tc)(),(0,r.jsx)(MainLayout,{children:(0,r.jsxs)("div",{className:"min-h-screen",children:[(0,r.jsxs)("div",{className:"w-full md:h-[8rem] relative overflow-hidden pt-[--titlebar-h]",children:[(0,r.jsxs)("div",{className:"relative z-10 px-4 w-full flex flex-col md:flex-row justify-between md:items-center",children:[(0,r.jsxs)("div",{className:"flex items-center w-full gap-2",children:[(0,r.jsx)(a.AO,{}),(0,r.jsx)(TopNavbar,{})]}),(0,r.jsx)("div",{className:"flex items-center gap-4",children:(0,r.jsx)(RefreshAnilistButton,{})})]}),(0,r.jsx)(DynamicHeaderBackground,{})]}),(0,r.jsx)("div",{children:t})]})})}},95518:function(e,t,n){"use strict";n.d(t,{Iw:function(){return useAtomicLibraryCollectionLoader},uN:function(){return d},yh:function(){return c}});var r=n(77665),a=n(97726),i=n(23890),s=n(2265),l=n(51472),o=n(57638);let c=(0,a.O4)("sea-library-collection",void 0,void 0,{unstable_getOnInit:!0}),d=(0,r.cn)(e=>e(c),(e,t,n)=>{var r;let a=null===(r=e(c))||void 0===r?void 0:r.lists;if(a)return a.flatMap(e=>e.entries).find(e=>e.mediaId===n)});function useAtomicLibraryCollectionLoader(){let e=(0,i.b9)(c),{data:t,status:n}=(0,l.tZ)({endpoint:o.E.LIBRARY_COLLECTION,queryKey:["get-library-collection"]});return(0,s.useEffect)(()=>{"success"===n&&e(t)},[t,n]),null}},70226:function(e,t,n){"use strict";n.d(t,{Oh:function(){return useListenToMissingEpisodes},VK:function(){return useMissingEpisodeCount},wS:function(){return c}});var r=n(57638),a=n(77665),i=n(23890),s=n(51472),l=n(2265),o=n(24033);let c=(0,a.cn)([]),d=(0,a.cn)(e=>e(c).length);function useMissingEpisodeCount(){return(0,i.Dv)(d)}function useListenToMissingEpisodes(){let e=(0,o.usePathname)(),t=(0,i.b9)(c),{data:n}=(0,s.tZ)({endpoint:r.E.MISSING_EPISODES,queryKey:["get-missing-episodes"],enabled:"/schedule"!==e});return(0,l.useEffect)(()=>{t(null!=n?n:[])},[n]),null}},48761:function(e,t,n){"use strict";n.d(t,{L:function(){return s},x:function(){return useCurrentUser}});var r=n(23890),a=n(751),i=n(77665);let s=(0,i.cn)(e=>{var t;let n=e(a.X);return null==n?void 0:null===(t=n.user)||void 0===t?void 0:t.viewer});function useCurrentUser(){let[e,t]=(0,r.KO)(s);return{user:e,setUser:t}}},67998:function(e,t,n){"use strict";n.d(t,{DN:function(){return i},SN:function(){return useWebsocketMessageListener},oJ:function(){return s}});var r=n(2265),a=n(77665);let i=(0,r.createContext)(null),s=(0,a.cn)(null);function useWebsocketMessageListener(e){let{type:t,onMessage:n}=e,a=(0,r.useContext)(i);return(0,r.useEffect)(()=>{if(a){let messageHandler=e=>{try{let r=JSON.parse(e.data);r.type&&r.type===t&&n(r.payload)}catch(e){}};return a.addEventListener("message",messageHandler),()=>{a.removeEventListener("message",messageHandler)}}},[a,n]),null}},16846:function(e,t,n){"use strict";n.r(t),n.d(t,{GlobalSearch:function(){return GlobalSearch},__globalSearch_isOpenAtom:function(){return C}});var r=n(57437),a=n(2265),i=n(9805),s=n(32240),l=n(27679),o=n(54487),c=n(88356),d=n(77665),u=n(23890),m=n(57487),h=n(34654),p=n(94152),x=n(16691),f=n.n(x),g=n(97622),v=n(61396),y=n.n(v),b=n(11305),j=n(24033),N=n(45652),w=n.n(N),_=n(6025);let C=(0,d.cn)(!1),GlobalSearch=e=>{let{children:t,...n}=e,[d,x]=(0,a.useState)(""),v=(0,h.N)(d,500),N=(0,j.useRouter)(),[L,S]=(0,u.KO)(C),{data:I,isLoading:A,isFetching:k,fetchStatus:E}=(0,p.a)({queryKey:["global-search",v,v.length],queryFn:async()=>{var e,t,n;let r=await (0,_.z)({search:v,page:1,perPage:10,status:["FINISHED","CANCELLED","NOT_YET_RELEASED","RELEASING"],sort:["SEARCH_MATCH"]});return null!==(n=null==r?void 0:null===(t=r.Page)||void 0===t?void 0:null===(e=t.media)||void 0===e?void 0:e.filter(Boolean))&&void 0!==n?n:[]},enabled:v.length>0,refetchOnWindowFocus:!1,retry:0});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.u.Root,{show:L,as:a.Fragment,afterLeave:()=>x(""),appear:!0,children:(0,r.jsxs)(s.V,{as:"div",className:"relative z-[99]",onClose:S,children:[(0,r.jsx)(i.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-70 transition-opacity backdrop-blur-sm"})}),(0,r.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto p-4 sm:p-6 md:p-20",children:(0,r.jsx)(i.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,r.jsx)(s.V.Panel,{className:"mx-auto max-w-3xl transform overflow-hidden space-y-4 transition-all",children:(0,r.jsx)(l.h,{children:e=>{var t,n,a,i,s,d;let{activeOption:u}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"relative bg-gray-900 shadow-2xl ring-1 ring-black ring-opacity-5 w-full rounded-lg ",children:[(0,r.jsx)(c.j,{className:"pointer-events-none absolute top-5 left-4 h-6 w-6 text-[--muted]","aria-hidden":"true"}),(0,r.jsx)(l.h.Input,{className:"h-16 w-full border-0 bg-transparent pl-14 pr-4 text-white placeholder-[--muted] focus:ring-0 sm:text-md",placeholder:"Search...",onChange:e=>x(e.target.value)}),(0,r.jsx)(y(),{href:"/search",onClick:()=>S(!1),children:(0,r.jsx)(g.zx,{className:"absolute top-3 right-2 z-1",intent:"white-basic",children:"Advanced search"})})]}),!!I&&I.length>0&&(0,r.jsxs)(l.h.Options,{as:"div",static:!0,hold:!0,className:"flex divide-[--border] bg-gray-900 shadow-2xl ring-1 ring-black ring-opacity-5 rounded-lg border border-[--border]",children:[(0,r.jsx)("div",{className:(0,o.cn)("max-h-96 min-w-0 flex-auto scroll-py-2 overflow-y-auto px-6 py-2 my-2",{"sm:h-96":u}),children:(0,r.jsx)("div",{className:"-mx-2 text-sm text-[--text-color]",children:I.map(e=>(0,r.jsx)(l.h.Option,{as:"div",value:e,onClick:()=>{N.push("/entry?id=".concat(e.id)),S(!1)},className:e=>{let{active:t}=e;return(0,o.cn)("flex select-none items-center rounded-md p-2 text-[--muted] cursor-pointer",t&&"bg-gray-800 text-white")},children:t=>{var n,a,i;let{active:s}=t;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"h-10 w-10 flex-none rounded-md object-cover object-center relative overflow-hidden",children:(null===(n=e.coverImage)||void 0===n?void 0:n.medium)&&(0,r.jsx)(f(),{src:null===(a=e.coverImage)||void 0===a?void 0:a.medium,alt:"",fill:!0,quality:50,priority:!0,sizes:"10rem",className:"object-cover object-center"})}),(0,r.jsx)("span",{className:"ml-3 flex-auto truncate",children:null===(i=e.title)||void 0===i?void 0:i.userPreferred}),s&&(0,r.jsx)(m.l,{className:"ml-3 h-7 w-7 flex-none text-gray-400","aria-hidden":"true"})]})}},e.id))})}),u&&(0,r.jsxs)("div",{className:"hidden min-h-96 w-1/2 flex-none flex-col overflow-y-auto sm:flex p-4",children:[(0,r.jsxs)("div",{className:"flex-none p-6 text-center",children:[(0,r.jsx)("div",{className:"h-40 w-32 mx-auto flex-none rounded-md object-cover object-center relative overflow-hidden",children:(null===(t=u.coverImage)||void 0===t?void 0:t.large)&&(0,r.jsx)(f(),{src:null===(n=u.coverImage)||void 0===n?void 0:n.large,alt:"",fill:!0,quality:100,priority:!0,sizes:"10rem",className:"object-cover object-center"})}),(0,r.jsx)("h4",{className:"mt-3 font-semibold text-[--text-color] line-clamp-3",children:null===(a=u.title)||void 0===a?void 0:a.userPreferred}),(0,r.jsxs)("p",{className:"text-sm leading-6 text-[--muted]",children:[u.format,u.season?" - ".concat(w()(u.season)," "):" - ",(null===(i=u.startDate)||void 0===i?void 0:i.year)?new Intl.DateTimeFormat("en-US",{year:"numeric"}).format(new Date((null===(s=u.startDate)||void 0===s?void 0:s.year)||0,(null===(d=u.startDate)||void 0===d?void 0:d.month)||0)):"-"]})]}),(0,r.jsx)(y(),{href:"/entry?id=".concat(u.id),onClick:()=>S(!1),children:(0,r.jsx)(g.zx,{type:"button",className:"w-full",intent:"white-subtle",children:"Open"})})]})]}),""!==v&&(!I||0===I.length)&&(A||k)&&(0,r.jsx)(b.TK,{}),""!==v&&!A&&!k&&(!I||0===I.length)&&(0,r.jsxs)("div",{className:"py-14 px-6 text-center text-sm sm:px-14",children:[(0,r.jsx)("div",{className:"h-[10rem] w-[10rem] mx-auto flex-none rounded-md object-cover object-center relative overflow-hidden",children:(0,r.jsx)(f(),{src:"/luffy-01.png",alt:"",fill:!0,quality:100,priority:!0,sizes:"10rem",className:"object-contain object-top"})}),(0,r.jsx)("h5",{className:"mt-4 font-semibold text-[--text-color]",children:"Nothing found"}),(0,r.jsx)("p",{className:"mt-2 text-[--muted]",children:"We couldn't find anything with that name. Please try again."})]})]})}})})})})]})})})}},93054:function(e,t,n){"use strict";n.d(t,{LN:function(){return b},RD:function(){return g},ce:function(){return y},S8:function(){return C},FV:function(){return AppSidebarProvider},AO:function(){return L}});var r=n(57437),a=n(2265),i=n(54487),s=n(96061);let l=(0,i.xH)({root:(0,s.j)(["UI-AppLayout__root","flex w-full min-h-screen group","group-[.with-sidebar]:group-[.sidebar-slim]:md:pl-20","group-[.with-sidebar]:group-[.sidebar-sm]:md:pl-48","group-[.with-sidebar]:group-[.sidebar-md]:md:pl-64","group-[.with-sidebar]:group-[.sidebar-lg]:md:pl-[20rem]","group-[.with-sidebar]:group-[.sidebar-xl]:md:pl-[25rem]"],{variants:{withSidebar:{true:"flex-row with-sidebar",false:"flex-col"},sidebarSize:{slim:"sidebar-slim",sm:"sidebar-sm",md:"sidebar-md",lg:"sidebar-lg",xl:"sidebar-xl"}},defaultVariants:{withSidebar:!1,sidebarSize:"md"}})}),o=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutHeader__root","block w-full"])}),c=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutSidebar__root","hidden md:fixed md:inset-y-0 md:flex md:flex-col grow-0 shrink-0 basis-0 z-[10]","group-[.sidebar-slim]:md:w-20","group-[.sidebar-sm]:md:w-48","group-[.sidebar-md]:md:w-64","group-[.sidebar-lg]:md:w-[20rem]","group-[.sidebar-xl]:md:w-[25rem]"])}),d=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutContent__root"])}),u=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutFooter__root"])}),m=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutStack__root"],{variants:{spacing:{sm:"space-y-2",md:"space-y-4",lg:"space-y-8",xl:"space-y-10"}},defaultVariants:{spacing:"md"}})}),h=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutGrid__root","block"],{variants:{breakBelow:{sm:"sm:grid sm:space-y-0",md:"md:grid md:space-y-0",lg:"lg:grid lg:space-y-0",xl:"xl:grid xl:space-y-0"},spacing:{sm:"space-y-2 gap-2",md:"space-y-4 gap-4",lg:"space-y-8 gap-8",xl:"space-y-10 gap-10"},cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"}},defaultVariants:{breakBelow:"xl",spacing:"md",cols:3}})}),_AppLayout=e=>{let{children:t,rootClassName:n,className:a,ref:s,withSidebar:o,sidebarSize:c,...d}=e;return(0,r.jsx)("div",{className:(0,i.cn)(l.root({withSidebar:o,sidebarSize:c}),n,a),...d,ref:s,children:t})};_AppLayout.displayName="AppLayout";let p=a.forwardRef((e,t)=>{let{children:n,rootClassName:a,className:s,...l}=e;return(0,r.jsx)("header",{className:(0,i.cn)(o.root(),a,s),...l,ref:t,children:n})});p.displayName="AppLayoutHeader";let x=a.forwardRef((e,t)=>{let{children:n,rootClassName:a,className:s,...l}=e;return(0,r.jsx)("aside",{className:(0,i.cn)(c.root(),a,s),...l,ref:t,children:n})});x.displayName="AppLayoutSidebar";let f=a.forwardRef((e,t)=>{let{children:n,rootClassName:a,className:s,...l}=e;return(0,r.jsx)("main",{className:(0,i.cn)(d.root(),a,s),...l,ref:t,children:n})});f.displayName="AppLayoutContent";let g=a.forwardRef((e,t)=>{let{children:n,rootClassName:a,className:s,breakBelow:l,cols:o,spacing:c,...d}=e;return(0,r.jsx)("section",{className:(0,i.cn)(h.root({breakBelow:l,cols:o,spacing:c}),a,s),...d,ref:t,children:n})});g.displayName="AppLayoutGrid";let v=a.forwardRef((e,t)=>{let{children:n,rootClassName:a,className:s,...l}=e;return(0,r.jsx)("footer",{className:(0,i.cn)(u.root(),a,s),...l,ref:t,children:n})});v.displayName="AppLayoutFooter";let y=a.forwardRef((e,t)=>{let{children:n,rootClassName:a,className:s,spacing:l,...o}=e;return(0,r.jsx)("div",{className:(0,i.cn)(m.root({spacing:l}),a,s),...o,ref:t,children:n})});y.displayName="AppLayoutStack",_AppLayout.Header=p,_AppLayout.Sidebar=x,_AppLayout.Content=f,_AppLayout.Footer=v,_AppLayout.Grid=g,_AppLayout.Stack=y;let b=(0,i.Fm)(_AppLayout);b.displayName="AppLayout";var j=n(33538);let N=a.createContext({open:!1,setOpen:()=>{}}),useAppSidebarContext=()=>a.useContext(N),w=(0,i.xH)({sidebar:(0,s.j)(["UI-AppSidebar__sidebar","flex flex-grow flex-col"])}),_=(0,i.xH)({trigger:(0,s.j)(["UI-AppSidebarTrigger__trigger","block md:hidden","items-center justify-center rounded-[--radius] p-2 text-[--muted] hover:bg-[--highlight] hover:text-[--text-color]","focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[--ring]"])}),C=a.forwardRef((e,t)=>{let{children:n,sidebarClassName:a,className:s,...l}=e,o=useAppSidebarContext();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,i.cn)(w.sidebar(),a),...l,ref:t,children:(0,r.jsx)("div",{className:(0,i.cn)(s),children:n})}),(0,r.jsx)(j.dy,{isOpen:o.open,onClose:()=>o.setOpen(!1),placement:"left",isClosable:!0,className:"md:hidden",containerClassName:"w-[85%]",bodyClassName:(0,i.cn)("p-0 md:p-0",s),headerClassName:"absolute p-2 sm:p-2 md:p-2 lg:p-2 right-0",closeButtonIntent:"white-outline",children:n})]})});C.displayName="AppSidebar";let L=a.forwardRef((e,t)=>{let{children:n,triggerClassName:a,className:s,...l}=e,o=useAppSidebarContext();return(0,r.jsxs)("button",{className:(0,i.cn)(_.trigger(),a,s),onClick:()=>o.setOpen(e=>!e),...l,ref:t,children:[(0,r.jsx)("span",{className:"sr-only",children:"Open main menu"}),o.open?(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,r.jsx)("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}):(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,r.jsx)("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),(0,r.jsx)("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),(0,r.jsx)("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})]})});L.displayName="AppSidebarTrigger";let AppSidebarProvider=e=>{let{children:t,open:n}=e,[i,s]=(0,a.useState)(null!=n&&n);return(0,a.useEffect)(()=>{void 0!==n&&s(n)},[n]),(0,r.jsx)(N.Provider,{value:{open:i,setOpen:s},children:t})}},76732:function(e,t,n){"use strict";n.d(t,{ks:function(){return d},nP:function(){return g}});var r=n(57437),a=n(2265),i=n(54487),s=n(96061),l=n(61396),o=n.n(l);let c=(0,i.xH)({nav:(0,s.j)(["UI-NavigationTabs__nav","flex w-full overflow-hidden overflow-x-auto"]),tab:(0,s.j)(["UI-NavigationTabs__tab","group/navtabs inline-flex flex-none shrink-0 basis-auto items-center py-4 px-2 font-normal text-sm transition outline-none px-4 min-w-0 justify-center relative","focus-visible:bg-[--highlight]","text-[--muted]","hover:text-[--text-color] hover:bg-[--highlight] rounded-md","data-[selected=true]:border-[--brand] data-[selected=true]:font-semibold data-[selected=true]:text-white"]),icon:(0,s.j)(["UI-NavigationTabs__icon","-ml-0.5 mr-2 h-5 w-5"])}),d=a.forwardRef((e,t)=>{let{children:n,className:a,navClassName:s,tabClassName:l,iconClassName:d,items:u,...m}=e;return(0,r.jsx)("nav",{ref:t,className:(0,i.cn)(c.nav(),s,a),...m,children:u.map(e=>{var t;return(0,r.jsxs)(o(),{href:null!==(t=e.href)&&void 0!==t?t:"#",className:(0,i.cn)(c.tab(),l),"aria-current":e.isCurrent?"page":void 0,"data-selected":e.isCurrent,children:[e.icon&&(0,r.jsx)(e.icon,{className:(0,i.cn)(c.icon(),d),"aria-hidden":"true","data-selected":e.isCurrent}),(0,r.jsx)("span",{children:e.name}),e.addon]},e.name)})})});d.displayName="NavigationTabs";var u=n(82817);let m=(0,i.xH)({panels:(0,s.j)(["UI-TabPanels__panels"])}),h=(0,i.xH)({nav:(0,s.j)(["UI-TabNav__nav","isolate flex border-b"])}),p=(0,i.xH)({tab:(0,s.j)(["UI-Tab__tab","relative min-w-0 flex-1 overflow-hidden py-4 px-4 text-sm font-medium text-center focus:z-10","flex items-center justify-center gap-2 border-b-2 -mb-px","text-[--muted] data-[selected=true]:text-[--brand] data-[selected=true]:border-brand dark:data-[selected=true]:border-brand-200","border-[--border] hover:border-gray-300 dark:hover:border-gray-600","focus-visible:bg-[--highlight] outline-none","cursor-pointer"])}),_TabPanels=e=>{let{children:t,panelsClassName:n,navClassName:s,tabClassName:l,className:o,selectedIndex:c,onIndexChange:d,ref:h,...p}=e,x=a.Children.map(t,e=>a.isValidElement(e)&&"TabNav"===(0,i.C2)(e)?a.cloneElement(e,{tabClassName:l,navClassName:s}):e);return(0,r.jsx)(u.O.Group,{selectedIndex:c,onChange:d,children:(0,r.jsx)("div",{className:(0,i.cn)(m.panels(),n),...p,ref:h,children:x})})};_TabPanels.displayName="TabPanels";let x=a.forwardRef((e,t)=>{let{children:n,className:s,navClassName:l,tabClassName:o,...c}=e,d=a.Children.map(n,e=>a.isValidElement(e)&&"Tab"===(0,i.C2)(e)?a.cloneElement(e,{tabClassName:o}):e);return(0,r.jsx)(u.O.List,{className:(0,i.cn)(h.nav(),l,s),...c,ref:t,children:d})});x.displayName="TabNav";let f=a.forwardRef((e,t)=>{let{children:n,className:s,tabClassName:l,...o}=e;return(0,r.jsx)(u.O,{as:a.Fragment,children:e=>{let{selected:a}=e;return(0,r.jsx)("div",{className:(0,i.cn)(p.tab(),l,s),...o,ref:t,"data-selected":a,children:n})}})});f.displayName="Tab",_TabPanels.Tab=f,_TabPanels.Nav=x,_TabPanels.Container=a.memo(u.O.Panels),u.O.Panels,_TabPanels.Panel=u.O.Panel,u.O.Panel,_TabPanels.Container.displayName="TabContainer",_TabPanels.Panel.displayName="TabPanel";let g=(0,i.Fm)(_TabPanels)},6469:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var r=n(57437),a=n(2265),i=n(54487),s=n(96061),l=n(98265);let o=(0,i.xH)({tooltip:(0,s.j)(["UI-Tooltip__tooltip","z-50 overflow-hidden rounded-[--radius] px-3 py-1.5 text-sm shadow-md animate-in fade-in-50","bg-gray-800 text-white","data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1"])}),c=a.forwardRef((e,t)=>{let{children:n,tooltipClassName:a,className:s,trigger:c,...d}=e;return(0,r.jsx)(l.zt,{delayDuration:50,children:(0,r.jsxs)(l.fC,{children:[(0,r.jsx)(l.xz,{asChild:!0,children:c}),(0,r.jsx)(l.VY,{className:(0,i.cn)(o.tooltip(),a,s),...d,ref:t,children:n})]})})});c.displayName="Tooltip",l.zt},34654:function(e,t,n){"use strict";n.d(t,{E:function(){return useDebounceWithSet},N:function(){return useDebounce}});var r=n(2265);function useDebounce(e,t){let[n,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>a(e),t||500);return()=>{clearTimeout(n)}},[e,t]),n}function useDebounceWithSet(e,t){let[n,a]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>a(e),t||500);return()=>{clearTimeout(n)}},[e,t]),[n,a]}},59123:function(e,t,n){"use strict";n.d(t,{kd:function(){return r}});let r="https://anilist.co/api/v2/oauth/authorize?client_id=15168&response_type=token"},6025:function(e,t,n){"use strict";n.d(t,{z:function(){return searchAnilistMediaList}});var r=n(29222);async function searchAnilistMediaList(e){let{page:t,search:n,perPage:a,sort:i,status:s,genres:l,averageScoreGreater:o,season:c,seasonYear:d,format:u}=e;try{var m;let e=await r.Z.post("https://graphql.anilist.co",{query:"\n query ListMedia(\n $page: Int\n $search: String\n $perPage: Int\n $sort: [MediaSort]\n $status: [MediaStatus]\n $genres: [String]\n $averageScore_greater: Int\n $season: MediaSeason\n $seasonYear: Int\n $format: MediaFormat\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n hasNextPage\n total\n perPage\n currentPage\n lastPage\n }\n media(\n type: ANIME\n search: $search\n sort: $sort\n status_in: $status\n isAdult: false\n format: $format\n genre_in: $genres\n averageScore_greater: $averageScore_greater\n season: $season\n seasonYear: $seasonYear\n format_not: MUSIC\n ) {\n ...basicMedia\n }\n }\n }\n fragment basicMedia on Media {\n id\n idMal\n siteUrl\n status(version: 2)\n season\n type\n format\n bannerImage\n episodes\n synonyms\n isAdult\n countryOfOrigin\n title {\n userPreferred\n romaji\n english\n native\n }\n coverImage {\n extraLarge\n large\n medium\n color\n }\n startDate {\n year\n month\n day\n }\n endDate {\n year\n month\n day\n }\n nextAiringEpisode {\n airingAt\n timeUntilAiring\n episode\n }\n }\n ",variables:{page:t,search:n,perPage:a,sort:i,status:s,genres:l,averageScore_greater:o,season:c,seasonYear:d,format:u}});return null===(m=e.data)||void 0===m?void 0:m.data}catch(e){console.error(e);return}}},68260:function(e,t,n){"use strict";n.d(t,{Jg:function(){return useMediaDetails},Pe:function(){return useManuallyMatchLocalFiles},Tc:function(){return useAnilistCollectionListener},X7:function(){return useMediaEntry},bo:function(){return useFetchMediaEntrySuggestions},du:function(){return useRefreshAnilistCollection},uJ:function(){return useAnilistCollection}});var r=n(51472),a=n(57638),i=n(38038),s=n(5925),l=n(67998);function useAnilistCollectionListener(){let e=(0,i.NL)();(0,l.SN)({type:a.f.REFRESHED_ANILIST_COLLECTION,onMessage:t=>{(async()=>{await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-anilist-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})})()}})}function useMediaEntry(e){let t="string"==typeof e?Number(e):e,{data:n,isLoading:i}=(0,r.tZ)({endpoint:a.E.MEDIA_ENTRY.replace("{id}",String(t)),queryKey:["get-media-entry",t],enabled:!!t});return{mediaEntry:n,mediaEntryLoading:i}}function useAnilistCollection(){var e,t;let{data:n,isLoading:i}=(0,r.tZ)({endpoint:a.E.ANILIST_COLLECTION,queryKey:["get-anilist-collection"]});return{anilistLists:null!==(t=null==n?void 0:null===(e=n.MediaListCollection)||void 0===e?void 0:e.lists)&&void 0!==t?t:[],isLoading:i}}function useRefreshAnilistCollection(){let e=(0,i.NL)(),{mutate:t,isPending:n}=(0,r.$U)({endpoint:a.E.ANILIST_COLLECTION,mutationKey:["refresh-anilist-collection"],onSuccess:async()=>{s.ZP.success("AniList is up-to-date"),await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-anilist-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})}});return{refreshAnilistCollection:t,isPending:n}}function useMediaDetails(e){let t="string"==typeof e?Number(e):e,{data:n,isLoading:i}=(0,r.tZ)({endpoint:a.E.ANILIST_MEDIA_DETAILS.replace("{id}",String(t)),queryKey:["get-anilist-media-details",t],enabled:!!t});return{mediaDetails:n,mediaDetailsLoading:i}}function useFetchMediaEntrySuggestions(){let{mutate:e,data:t,isPending:n,reset:i}=(0,r.$U)({endpoint:a.E.MEDIA_ENTRY_SUGGESTIONS,mutationKey:["media-entry-suggestions"]});return{fetchSuggestions:t=>e({dir:t}),suggestions:null!=t?t:[],isPending:n,resetSuggestions:i}}function useManuallyMatchLocalFiles(){let e=(0,i.NL)(),{mutate:t,isPending:n}=(0,r.$U)({endpoint:a.E.MEDIA_ENTRY_MANUAL_MATCH,mutationKey:["media-entry-manual-match"],onSuccess:async()=>{await e.refetchQueries({queryKey:["get-library-collection"]})}});return{manuallyMatchEntry:(n,r)=>{t(n,{onSuccess:async()=>{n.mediaId&&await e.refetchQueries({queryKey:["get-media-entry",n.mediaId]}),r()}})},isPending:n}}}},function(e){e.O(0,[492,890,999,685,702,17,265,726,766,912,430,971,472,744],function(){return e(e.s=50626)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/qbittorrent/page-177f7611544cac13.js b/web/_next/static/chunks/app/(main)/qbittorrent/page-177f7611544cac13.js new file mode 100644 index 00000000..c1d255f1 --- /dev/null +++ b/web/_next/static/chunks/app/(main)/qbittorrent/page-177f7611544cac13.js @@ -0,0 +1,9 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77],{32329:function(r,e,t){Promise.resolve().then(t.bind(t,66282))},66282:function(r,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Page}});var n=t(57437),o=t(23890),i=t(751);function Page(){var r,e;let t=(0,o.Dv)(i.X),u=null==t?void 0:t.settings;return u?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:"w-[80%] h-[calc(100vh-15rem)] rounded-xl border border-[--border] overflow-hidden mx-auto mt-10 ring-1 ring-[--border] ring-offset-2",children:(0,n.jsx)("iframe",{src:"http://".concat(null===(r=u.torrent)||void 0===r?void 0:r.qbittorrentHost,":").concat(String(null===(e=u.torrent)||void 0===e?void 0:e.qbittorrentPort)),className:"w-full h-full"})})}):null}},751:function(r,e,t){"use strict";t.d(e,{X:function(){return o}});var n=t(57685);let o=(0,n.sn)(void 0)},30622:function(r,e,t){"use strict";/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var n=t(2265),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function q(r,e,t){var n,i={},c=null,f=null;for(n in void 0!==t&&(c=""+t),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(f=e.ref),e)u.call(e,n)&&!l.hasOwnProperty(n)&&(i[n]=e[n]);if(r&&r.defaultProps)for(n in e=r.defaultProps)void 0===i[n]&&(i[n]=e[n]);return{$$typeof:o,type:r,key:c,ref:f,props:i,_owner:s.current}}e.Fragment=i,e.jsx=q,e.jsxs=q},57437:function(r,e,t){"use strict";r.exports=t(30622)}},function(r){r.O(0,[890,685,971,472,744],function(){return r(r.s=32329)}),_N_E=r.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/schedule/page-4d018812986fa728.js b/web/_next/static/chunks/app/(main)/schedule/page-4d018812986fa728.js new file mode 100644 index 00000000..a763b55a --- /dev/null +++ b/web/_next/static/chunks/app/(main)/schedule/page-4d018812986fa728.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{86249:function(e,t,n){var i=n(65491).w_;e.exports.s=function(e){return i({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 0 1-12.7-6.5V353.7a8 8 0 0 1 12.7-6.5L656.1 506a7.9 7.9 0 0 1 0 12.9z"}}]})(e)}},4398:function(e,t,n){var i=n(65491).w_;e.exports.R=function(e){return i({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]})(e)}},59179:function(e,t,n){var i=n(65491).w_;e.exports.Q=function(e){return i({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 480H48a32 32 0 01-32-32V112a32 32 0 0132-32h16a32 32 0 0132 32v336a32 32 0 01-32 32zm176-304a32 32 0 00-32-32h-64a32 32 0 00-32 32v28a4 4 0 004 4h120a4 4 0 004-4zM112 448a32 32 0 0032 32h64a32 32 0 0032-32v-30a2 2 0 00-2-2H114a2 2 0 00-2 2z"}},{tag:"rect",attr:{width:"128",height:"144",x:"112",y:"240",rx:"2",ry:"2"}},{tag:"path",attr:{d:"M320 480h-32a32 32 0 01-32-32V64a32 32 0 0132-32h32a32 32 0 0132 32v384a32 32 0 01-32 32zm175.89-34.55l-32.23-340c-1.48-15.65-16.94-27-34.53-25.31l-31.85 3c-17.59 1.67-30.65 15.71-29.17 31.36l32.23 340c1.48 15.65 16.94 27 34.53 25.31l31.85-3c17.59-1.67 30.65-15.71 29.17-31.36z"}}]})(e)}},24034:function(e,t,n){var i=n(65491).w_;e.exports.G=function(e){return i({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}},753:function(e,t,n){var i=n(65491).w_;e.exports.F=function(e){return i({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}},92895:function(e,t,n){"use strict";function requiredArgs(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return requiredArgs}})},37274:function(e,t,n){"use strict";function toInteger(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,{Z:function(){return toInteger}})},11257:function(e,t,n){"use strict";n.d(t,{Z:function(){return addDays}});var i=n(37274),r=n(75725),o=n(92895);function addDays(e,t){(0,o.Z)(2,arguments);var n=(0,r.Z)(e),a=(0,i.Z)(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}},75725:function(e,t,n){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:function(){return toDate}});var i=n(92895);function toDate(e){(0,i.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===_typeof(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},78607:function(e,t,n){Promise.resolve().then(n.bind(n,48558))},48558:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Page}});var i=n(57437),r=n(2265),o=n(37684),a=n(59179),s=n(47900),l=n(4398),c=n(24033),u=n(93054),d=n(7951),f=n(10137);function MissingEpisodes(){let e=(0,c.useRouter)(),{missingEpisodes:t,isLoading:n}=(0,f.qn)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(u.ce,{spacing:"lg",children:[(0,i.jsxs)("h2",{className:"flex gap-3 items-center",children:[(0,i.jsx)(a.Q,{})," Missing from your library"]}),(0,i.jsxs)(d.i,{children:[!n&&t.map(t=>{var n,r,o,a,c,u;return(0,i.jsx)(s.S,{image:null===(n=t.episodeMetadata)||void 0===n?void 0:n.image,topTitle:null===(o=t.basicMedia)||void 0===o?void 0:null===(r=o.title)||void 0===r?void 0:r.userPreferred,title:t.displayTitle,meta:null!==(u=null===(a=t.episodeMetadata)||void 0===a?void 0:a.airDate)&&void 0!==u?u:void 0,actionIcon:(0,i.jsx)(l.R,{}),onClick:()=>{var n;e.push("/entry?id=".concat(null===(n=t.basicMedia)||void 0===n?void 0:n.id,"&download=").concat(t.episodeNumber))}},t.displayTitle+(null===(c=t.basicMedia)||void 0===c?void 0:c.id))}),n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.O,{className:"rounded-md h-auto overflow-hidden aspect-[4/2] w-96 relative flex items-end flex-none"}),(0,i.jsx)(o.O,{className:"rounded-md h-auto overflow-hidden aspect-[4/2] w-96 relative flex items-end flex-none"}),(0,i.jsx)(o.O,{className:"rounded-md h-auto overflow-hidden aspect-[4/2] w-96 relative flex items-end flex-none"})]}),!n&&!t.length&&(0,i.jsx)("div",{className:"rounded-md h-auto overflow-hidden aspect-[4/2] w-96 relative flex items-center justify-center flex-none bg-gray-900 text-[--muted]",children:"No missing episodes"})]})]})})}var g=n(23130),m=n(5790),p=n(16691),v=n.n(p),h=n(61396),y=n.n(h),x=n(38038),b=n(68260);function ComingUpNext(){let e=(0,x.NL)(),{anilistLists:t}=(0,b.uJ)(),n=(0,r.useMemo)(()=>{var e;let n=null!==(e=null==t?void 0:t.map(e=>null==e?void 0:e.entries).flat())&&void 0!==e?e:[];return n.filter(Boolean).map(e=>e.media)},[t]),o=n.filter(e=>{var t;return!!(null===(t=e.nextAiringEpisode)||void 0===t?void 0:t.episode)}).sort((e,t)=>e.nextAiringEpisode.timeUntilAiring-t.nextAiringEpisode.timeUntilAiring);return((0,r.useEffect)(()=>{(async()=>{console.log(await e.fetchQuery({queryKey:["get-anilist-collection"]}))})()},[]),0===o.length)?null:(0,i.jsxs)(u.ce,{children:[(0,i.jsx)("h2",{children:"Coming up next"}),(0,i.jsx)("p",{className:"text-[--muted]",children:"Based on your anime list"}),(0,i.jsx)(d.i,{children:o.map(e=>{var t,n,r,o;return(0,i.jsxs)("div",{className:"rounded-md border border-gray-800 overflow-hidden aspect-[4/2] w-96 relative flex items-end flex-none group/missed-episode-item",children:[(0,i.jsxs)("div",{className:"absolute w-full h-full rounded-md rounded-b-none overflow-hidden z-[1]",children:[e.bannerImage?(0,i.jsx)(v(),{src:e.bannerImage,alt:"",fill:!0,quality:100,sizes:"20rem",className:"object-cover object-center transition opacity-20"}):(0,i.jsx)("div",{className:"h-full block absolute w-full bg-gradient-to-t from-gray-800 to-transparent z-[2]"}),(0,i.jsx)("div",{className:"z-[1] absolute bottom-0 w-full h-[80%] bg-gradient-to-t from-[--background-color] to-transparent"})]}),(0,i.jsxs)("div",{className:"relative z-[3] w-full p-4 space-y-1",children:[(0,i.jsx)(y(),{href:"/entry?id=".concat(e.id),className:"w-[80%] line-clamp-1 text-[--muted] font-semibold cursor-pointer",children:null===(t=e.title)||void 0===t?void 0:t.userPreferred}),(0,i.jsxs)("div",{className:"w-full justify-between flex items-center",children:[(0,i.jsxs)("p",{className:"text-xl font-semibold",children:["Episode ",null===(n=e.nextAiringEpisode)||void 0===n?void 0:n.episode]}),(null===(r=e.nextAiringEpisode)||void 0===r?void 0:r.timeUntilAiring)&&(0,i.jsx)("p",{className:"text-[--muted]",children:(0,m.Z)((0,g.Z)(new Date,null===(o=e.nextAiringEpisode)||void 0===o?void 0:o.timeUntilAiring),{addSuffix:!0})})]})]})]},e.id)})})]})}var w=n(94152),E=n(40300),L=n(11257),N=n(92895),S=n(37274);function subDays(e,t){(0,N.Z)(2,arguments);var n=(0,S.Z)(t);return(0,L.Z)(e,-n)}var A=n(29222);async function getRecentMediaAirings(e){let{page:t,perPage:n,airingAt_greater:i,airingAt_lesser:r}=e;try{var o;let e=await A.Z.post("https://graphql.anilist.co",{query:"\n query ListRecentMedia($page: Int, $perPage: Int, $airingAt_greater: Int, $airingAt_lesser: Int){\n Page(page: $page, perPage: $perPage){\n pageInfo{\n hasNextPage\n total\n perPage\n currentPage\n lastPage\n },\n airingSchedules(notYetAired: false, sort: TIME_DESC, airingAt_greater: $airingAt_greater, airingAt_lesser: $airingAt_lesser){\n id\n airingAt\n episode\n timeUntilAiring\n media {\n isAdult\n ...basicMedia\n }\n }\n }\n }\n fragment basicMedia on Media {\n id\n idMal\n siteUrl\n status(version: 2)\n season\n type\n format\n bannerImage\n episodes\n synonyms\n isAdult\n countryOfOrigin\n title {\n userPreferred\n romaji\n english\n native\n }\n coverImage {\n extraLarge\n large\n medium\n color\n }\n startDate {\n year\n month\n day\n }\n endDate {\n year\n month\n day\n }\n nextAiringEpisode {\n airingAt\n timeUntilAiring\n episode\n }\n }\n ",variables:{page:t,perPage:n,airingAt_greater:i,airingAt_lesser:r}});return null===(o=e.data)||void 0===o?void 0:o.data}catch(e){console.error(e);return}}function RecentReleases(){var e,t;let n=(0,c.useRouter)(),{data:r}=(0,w.a)({queryKey:["recent-released"],queryFn:async()=>getRecentMediaAirings({page:1,perPage:50,airingAt_lesser:Math.floor(new Date().getTime()/1e3),airingAt_greater:Math.floor(subDays(new Date,14).getTime()/1e3)}),placeholderData:E.Wk,gcTime:6e5});return(0,i.jsxs)(u.ce,{children:[(0,i.jsx)("h2",{children:"Recent releases"}),(0,i.jsx)(d.i,{children:null==r?void 0:null===(t=r.Page)||void 0===t?void 0:null===(e=t.airingSchedules)||void 0===e?void 0:e.filter(e=>{var t,n,i,r;return(null==e?void 0:null===(t=e.media)||void 0===t?void 0:t.isAdult)===!1&&(null==e?void 0:null===(n=e.media)||void 0===n?void 0:n.type)==="ANIME"&&(null==e?void 0:null===(i=e.media)||void 0===i?void 0:i.countryOfOrigin)==="JP"&&(null==e?void 0:null===(r=e.media)||void 0===r?void 0:r.format)!=="TV_SHORT"}).filter(Boolean).map(e=>{var t,r,o,a,l;return(0,i.jsx)(s.S,{title:"Episode ".concat(e.episode),image:(null===(t=e.media)||void 0===t?void 0:t.bannerImage)||(null===(o=e.media)||void 0===o?void 0:null===(r=o.coverImage)||void 0===r?void 0:r.large),topTitle:null===(l=e.media)||void 0===l?void 0:null===(a=l.title)||void 0===a?void 0:a.userPreferred,meta:e.airingAt?(0,m.Z)((0,g.Z)(new Date,e.timeUntilAiring),{addSuffix:!0}):void 0,onClick:()=>{var t;return n.push("/entry?id=".concat(null===(t=e.media)||void 0===t?void 0:t.id))},actionIcon:null},e.id)})})]})}function Page(){return(0,i.jsxs)("div",{className:"px-4 pt-8 space-y-10 pb-10",children:[(0,i.jsx)(MissingEpisodes,{}),(0,i.jsx)(ComingUpNext,{}),(0,i.jsx)(RecentReleases,{})]})}},95518:function(e,t,n){"use strict";n.d(t,{Iw:function(){return useAtomicLibraryCollectionLoader},uN:function(){return u},yh:function(){return c}});var i=n(77665),r=n(97726),o=n(23890),a=n(2265),s=n(51472),l=n(57638);let c=(0,r.O4)("sea-library-collection",void 0,void 0,{unstable_getOnInit:!0}),u=(0,i.cn)(e=>e(c),(e,t,n)=>{var i;let r=null===(i=e(c))||void 0===i?void 0:i.lists;if(r)return r.flatMap(e=>e.entries).find(e=>e.mediaId===n)});function useAtomicLibraryCollectionLoader(){let e=(0,o.b9)(c),{data:t,status:n}=(0,s.tZ)({endpoint:l.E.LIBRARY_COLLECTION,queryKey:["get-library-collection"]});return(0,a.useEffect)(()=>{"success"===n&&e(t)},[t,n]),null}},70226:function(e,t,n){"use strict";n.d(t,{Oh:function(){return useListenToMissingEpisodes},VK:function(){return useMissingEpisodeCount},wS:function(){return c}});var i=n(57638),r=n(77665),o=n(23890),a=n(51472),s=n(2265),l=n(24033);let c=(0,r.cn)([]),u=(0,r.cn)(e=>e(c).length);function useMissingEpisodeCount(){return(0,o.Dv)(u)}function useListenToMissingEpisodes(){let e=(0,l.usePathname)(),t=(0,o.b9)(c),{data:n}=(0,a.tZ)({endpoint:i.E.MISSING_EPISODES,queryKey:["get-missing-episodes"],enabled:"/schedule"!==e});return(0,s.useEffect)(()=>{t(null!=n?n:[])},[n]),null}},59346:function(e,t,n){"use strict";n.d(t,{t:function(){return imageShimmer}});let imageShimmerEffect=(e,t)=>'\n\n \n \n \n \n \n \n \n \n \n \n'),toBase64=e=>window.btoa(e),imageShimmer=(e,t)=>"data:image/svg+xml;base64,".concat(toBase64(imageShimmerEffect(e,t)))},10137:function(e,t,n){"use strict";n.d(t,{Jx:function(){return useScanLibrary},Kg:function(){return useMediaEntryBulkAction},Ye:function(){return useRemoveEmptyDirectories},_U:function(){return useUpdateLocalFile},d3:function(){return useLibraryCollection},qn:function(){return useMissingEpisodes},ss:function(){return useLocalFileBulkAction}});var i=n(38038),r=n(51472),o=n(57638),a=n(2265),s=n(5925),l=n(23890),c=n(95518),u=n(70226);function useScanLibrary(){let e=(0,i.NL)(),{mutate:t,isPending:n}=(0,r.$U)({endpoint:o.E.SCAN_LIBRARY,mutationKey:["scan-library"],onSuccess:async()=>{s.ZP.success("Library scanned"),await e.refetchQueries({queryKey:["get-library-collection"]}),await e.refetchQueries({queryKey:["get-missing-episodes"]})}});return{scanLibrary:t,isScanning:n}}function useLibraryCollection(){var e,t,n,i;let[s,u]=(0,l.KO)(c.yh),{data:d,isLoading:f,refetch:g}=(0,r.tZ)({endpoint:o.E.LIBRARY_COLLECTION,queryKey:["get-library-collection"],placeholderData:s});(0,a.useEffect)(()=>{d&&u(d)},[d]);let m=(0,a.useMemo)(()=>d?[d.lists.find(e=>"current"===e.type),d.lists.find(e=>"paused"===e.type),d.lists.find(e=>"planned"===e.type),d.lists.find(e=>"completed"===e.type),d.lists.find(e=>"dropped"===e.type)].filter(Boolean):[],[d]);return{libraryCollectionList:m,continueWatchingList:null!==(e=null==d?void 0:d.continueWatchingList)&&void 0!==e?e:[],isLoading:f,unmatchedLocalFiles:null!==(t=null==d?void 0:d.unmatchedLocalFiles)&&void 0!==t?t:[],ignoredLocalFiles:null!==(n=null==d?void 0:d.ignoredLocalFiles)&&void 0!==n?n:[],unmatchedGroups:null!==(i=null==d?void 0:d.unmatchedGroups)&&void 0!==i?i:[]}}function useMissingEpisodes(){let e=(0,l.b9)(u.wS),{data:t,isLoading:n,status:i}=(0,r.tZ)({endpoint:o.E.MISSING_EPISODES,queryKey:["get-missing-episodes"]});return(0,a.useEffect)(()=>{"success"===i&&e(null!=t?t:[])},[t]),{missingEpisodes:null!=t?t:[],isLoading:n}}function useMediaEntryBulkAction(e){let t=(0,i.NL)(),{mutate:n,isPending:a}=(0,r.$U)({endpoint:o.E.MEDIA_ENTRY_BULK_ACTION,mutationKey:["media-entry-bulk-action"],method:"patch",onSuccess:async()=>{await t.refetchQueries({queryKey:["get-library-collection"]}),e&&await t.refetchQueries({queryKey:["get-media-entry",e]})}});return{toggleLock:e=>n({mediaId:e,action:"toggle-lock"}),unmatchAll:e=>n({mediaId:e,action:"unmatch"},{onSuccess:()=>{s.ZP.success("Files unmatched")}}),isPending:a}}function useLocalFileBulkAction(){let e=(0,i.NL)(),{mutate:t,isPending:n}=(0,r.$U)({endpoint:o.E.LOCAL_FILES,mutationKey:["local-file-bulk-action"],method:"post",onSuccess:async()=>{await e.refetchQueries({queryKey:["get-library-collection"]})}});return{lockFiles:()=>t({action:"lock"},{onSuccess:()=>{s.ZP.success("Files locked")}}),unlockFiles:()=>t({action:"unlock"},{onSuccess:()=>{s.ZP.success("Files unlocked")}}),isPending:n}}function useRemoveEmptyDirectories(){let{mutate:e,isPending:t}=(0,r.$U)({endpoint:o.E.EMPTY_DIRECTORIES,mutationKey:["remove-empty-directories"],method:"delete",onSuccess:async()=>{s.ZP.success("Empty directories removed")}});return{removeEmptyDirectories:()=>e(),isPending:t}}function getDefaultLocalFileVariables(e){return{path:e.path,metadata:e.metadata,locked:e.locked,ignored:e.ignored,mediaId:e.mediaId}}function useUpdateLocalFile(e){let t=(0,i.NL)(),{mutate:n,isPending:a}=(0,r.$U)({endpoint:o.E.LOCAL_FILE,mutationKey:["patch-local-file"],method:"patch",onSuccess:async()=>{await t.refetchQueries({queryKey:["get-library-collection"]}),e&&await t.refetchQueries({queryKey:["get-media-entry",e]})}});return{updateLocalFile:(e,t,i)=>{n({...getDefaultLocalFileVariables(e),...t},{onSuccess:()=>{i&&i()}})},isPending:a}}},66169:function(e,t,n){"use strict";function on(e){for(var t=[],n=1;n{var a,t,r,n,s,l;return e.title&&e.title.length>0?m()(e.title):__advancedSearch_getValue(e.genre)?null===(a=e.genre)||void 0===a?void 0:a.join(", "):(null===(t=__advancedSearch_getValue(e.sorting))||void 0===t?void 0:t.includes("SCORE_DESC"))?"Most liked shows":(null===(r=__advancedSearch_getValue(e.sorting))||void 0===r?void 0:r.includes("TRENDING_DESC"))?"Trending":(null===(n=__advancedSearch_getValue(e.sorting))||void 0===n?void 0:n.includes("POPULARITY_DESC"))?"Popular":(null===(s=__advancedSearch_getValue(e.sorting))||void 0===s?void 0:s.includes("START_DATE_DESC"))?"Latest":(null===(l=__advancedSearch_getValue(e.sorting))||void 0===l?void 0:l.includes("EPISODES_DESC"))?"Most episodes":"Most liked shows"},[e.title,e.genre,e.sorting]);return(0,r.jsx)("h2",{children:a})}var f=t(34654),v=t(28979),x=t(90466),S=t(88356),y=t(30054),_=t(62892),b=t(75725),P=t(92895);function getYear(e){return(0,P.Z)(1,arguments),(0,b.Z)(e).getFullYear()}var N=t(87870);let A=["Action","Adventure","Comedy","Drama","Ecchi","Fantasy","Horror","Mahou Shoujo","Mecha","Music","Mystery","Psychological","Romance","Sci-Fi","Slice of Life","Sports","Supernatural","Thriller"],w=["Winter","Spring","Summer","Fall"],j=[{value:"TV",label:"TV"},{value:"MOVIE",label:"Movie"},{value:"ONA",label:"ONA"},{value:"OVA",label:"OVA"},{value:"TV_SHORT",label:"TV Short"},{value:"SPECIAL",label:"Special"}],E=[{value:"FINISHED",label:"Finished"},{value:"RELEASING",label:"Airing"},{value:"NOT_YET_RELEASED",label:"Upcoming"},{value:"HIATUS",label:"Hiatus"},{value:"CANCELLED",label:"Cancelled"}],C=[{value:"TRENDING_DESC",label:"Trending"},{value:"START_DATE_DESC",label:"Release date"},{value:"SCORE_DESC",label:"Highest score"},{value:"POPULARITY_DESC",label:"Most popular"},{value:"EPISODES_DESC",label:"Number of episodes"}];function AdvancedSearchOptions(){let[e,a]=(0,i.KO)(p);return(0,r.jsxs)(n.ce,{className:"px-4 xl:px-0",children:[(0,r.jsxs)("div",{className:"flex flex-row xl:flex-col gap-4",children:[(0,r.jsx)(TitleInput,{}),(0,r.jsx)(y.P,{className:"w-full",options:C,value:e.sorting||"SCORE_DESC",onChange:e=>a(a=>{a.sorting=[e.target.value]}),isDisabled:!!e.title&&e.title.length>0})]}),(0,r.jsxs)("div",{className:"flex flex-row xl:flex-col gap-4 items-end xl:items-start",children:[(0,r.jsx)(_.h,{label:"Genre",placeholder:"All genres",className:"w-full",options:A.map(e=>({value:e,label:e})),value:e.genre?e.genre:void 0,onChange:e=>a(a=>{a.genre=e})}),(0,r.jsx)(y.P,{label:"Format",placeholder:"All formats",className:"w-full",options:j,value:e.format||"",onChange:e=>a(a=>{a.format=e.target.value})}),(0,r.jsx)(y.P,{label:"Season",placeholder:"All seasons",className:"w-full",options:w.map(e=>({value:e.toUpperCase(),label:e})),value:e.season||"",onChange:e=>a(a=>{a.season=e.target.value})}),(0,r.jsx)(y.P,{label:"Year",placeholder:"Timeless",className:"w-full",options:[...Array(70)].map((e,a)=>getYear(new Date)-a).map(e=>({value:String(e),label:String(e)})),value:e.year||"",onChange:e=>a(a=>{a.year=e.target.value})}),(0,r.jsx)(y.P,{label:"Status",placeholder:"All",className:"w-full",options:E,value:e.status||"",onChange:e=>a(a=>{a.status=[e.target.value]})}),(0,r.jsx)(o.hU,{icon:(0,r.jsx)(N.S,{}),intent:"gray-subtle",className:"flex-none",onClick:()=>{a({active:!0,title:null,sorting:null,status:null,genre:null,format:null,season:null,year:null,minScore:null})}})]})]})}function TitleInput(){let[e,a]=(0,s.useState)(""),t=(0,f.N)(e,500),n=(0,i.b9)(p);return(0,v.Z)(()=>{n(e=>{e.title=t})},[t]),(0,r.jsx)(x.o,{leftIcon:(0,r.jsx)(S.j,{}),placeholder:"Title",className:"w-full",value:e,onChange:e=>a(e.target.value)})}var L=t(7214),M=t(54487),I=t(82924),D=t(11305),T=t(33923),O=t(6025);function useAnilistAdvancedSearch(){let e=(0,i.Dv)(p);return(0,T.N)({queryKey:["projects",e],initialPageParam:1,queryFn:async a=>{var t,r,n,s;let{pageParam:l}=a,i={page:l,perPage:48,format:null===(t=__advancedSearch_getValue(e.format))||void 0===t?void 0:t.toUpperCase(),search:null===e.title||""===e.title?void 0:e.title,genres:__advancedSearch_getValue(e.genre),season:__advancedSearch_getValue(e.season),seasonYear:__advancedSearch_getValue(e.year),averageScore_greater:void 0!==__advancedSearch_getValue(e.minScore)?__advancedSearch_getValue(e.minScore):void 0,sort:(null===(r=e.title)||void 0===r?void 0:r.length)&&e.title.length>0?["SEARCH_MATCH",...__advancedSearch_getValue(e.sorting)||["SCORE_DESC"]]:__advancedSearch_getValue(e.sorting)||["SCORE_DESC"],status:(null===(n=e.sorting)||void 0===n?void 0:n.includes("START_DATE_DESC"))?(null===(s=__advancedSearch_getValue(e.status))||void 0===s?void 0:s.filter(e=>"NOT_YET_RELEASED"!==e))||["FINISHED","RELEASING"]:__advancedSearch_getValue(e.status)};return(0,O.z)(i)},getNextPageParam:(e,a)=>{var t,r,n,s;let l=null==e?void 0:null===(r=e.Page)||void 0===r?void 0:null===(t=r.pageInfo)||void 0===t?void 0:t.currentPage,i=null==e?void 0:null===(s=e.Page)||void 0===s?void 0:null===(n=s.pageInfo)||void 0===n?void 0:n.hasNextPage;return l&&i?a.length+1:void 0},enabled:e.active,refetchOnMount:!0})}function AdvancedSearchList(){let{isLoading:e,data:a,fetchNextPage:t,hasNextPage:n}=useAnilistAdvancedSearch();return(0,r.jsxs)(r.Fragment,{children:[!e&&(0,r.jsxs)("div",{className:"px-4 grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 min-[2000px]:grid-cols-8 gap-4",children:[null==a?void 0:a.pages.filter(Boolean).flatMap(e=>{var a;return null===(a=e.Page)||void 0===a?void 0:a.media}).filter(Boolean).filter(e=>{var a;return!!(null===(a=e.startDate)||void 0===a?void 0:a.year)}).map(e=>(0,r.jsx)(L.k,{media:e,showLibraryBadge:!0},"".concat(e.id))),((null==a?void 0:a.pages.filter(Boolean).flatMap(e=>{var a;return null===(a=e.Page)||void 0===a?void 0:a.media}).filter(Boolean))||[]).length>0&&n&&(0,r.jsxs)("div",{className:(0,M.cn)("h-full col-span-1 group/anime-list-item relative flex flex-col place-content-stretch rounded-md animate-none min-h-[348px]","cursor-pointer border border-dashed border-[--border] border-none text-[--muted] hover:text-white pt-24 items-center gap-2 transition"),onClick:()=>t(),children:[(0,r.jsx)(I.d,{className:"text-4xl"}),(0,r.jsx)("p",{className:"text-lg font-medium",children:"Load more"})]})]}),e&&(0,r.jsx)(D.TK,{})]})}function Page(e){let{params:a}=e,t=(0,i.b9)(p);return esm_useMount(()=>{t({active:!0,title:null,sorting:a.sorting?[a.sorting]:null,status:a.status?[a.status]:null,genre:a.genre?[a.genre]:null,format:a.format||null,season:a.season||null,year:a.year||null,minScore:null})}),(0,r.jsxs)(n.ce,{spacing:"xl",className:"mt-8 px-4 pb-10",children:[(0,r.jsxs)("div",{className:"flex items-center gap-4",children:[(0,r.jsx)(d(),{href:"/discover",children:(0,r.jsx)(o.hU,{icon:(0,r.jsx)(u.k,{}),rounded:!0,intent:"white-outline",size:"sm"})}),(0,r.jsx)("h3",{children:"Discover"})]}),(0,r.jsx)("div",{className:"text-center xl:text-left",children:(0,r.jsx)(AdvancedSearchPageTitle,{})}),(0,r.jsxs)(n.RD,{cols:6,spacing:"lg",children:[(0,r.jsx)(AdvancedSearchOptions,{}),(0,r.jsx)("div",{className:"col-span-5",children:(0,r.jsx)(AdvancedSearchList,{})})]})]})}},93054:function(e,a,t){"use strict";t.d(a,{LN:function(){return y},RD:function(){return v},ce:function(){return S},S8:function(){return A},FV:function(){return AppSidebarProvider},AO:function(){return w}});var r=t(57437),n=t(2265),s=t(54487),l=t(96061);let i=(0,s.xH)({root:(0,l.j)(["UI-AppLayout__root","flex w-full min-h-screen group","group-[.with-sidebar]:group-[.sidebar-slim]:md:pl-20","group-[.with-sidebar]:group-[.sidebar-sm]:md:pl-48","group-[.with-sidebar]:group-[.sidebar-md]:md:pl-64","group-[.with-sidebar]:group-[.sidebar-lg]:md:pl-[20rem]","group-[.with-sidebar]:group-[.sidebar-xl]:md:pl-[25rem]"],{variants:{withSidebar:{true:"flex-row with-sidebar",false:"flex-col"},sidebarSize:{slim:"sidebar-slim",sm:"sidebar-sm",md:"sidebar-md",lg:"sidebar-lg",xl:"sidebar-xl"}},defaultVariants:{withSidebar:!1,sidebarSize:"md"}})}),o=(0,s.xH)({root:(0,l.j)(["UI-AppLayoutHeader__root","block w-full"])}),u=(0,s.xH)({root:(0,l.j)(["UI-AppLayoutSidebar__root","hidden md:fixed md:inset-y-0 md:flex md:flex-col grow-0 shrink-0 basis-0 z-[10]","group-[.sidebar-slim]:md:w-20","group-[.sidebar-sm]:md:w-48","group-[.sidebar-md]:md:w-64","group-[.sidebar-lg]:md:w-[20rem]","group-[.sidebar-xl]:md:w-[25rem]"])}),c=(0,s.xH)({root:(0,l.j)(["UI-AppLayoutContent__root"])}),d=(0,s.xH)({root:(0,l.j)(["UI-AppLayoutFooter__root"])}),g=(0,s.xH)({root:(0,l.j)(["UI-AppLayoutStack__root"],{variants:{spacing:{sm:"space-y-2",md:"space-y-4",lg:"space-y-8",xl:"space-y-10"}},defaultVariants:{spacing:"md"}})}),p=(0,s.xH)({root:(0,l.j)(["UI-AppLayoutGrid__root","block"],{variants:{breakBelow:{sm:"sm:grid sm:space-y-0",md:"md:grid md:space-y-0",lg:"lg:grid lg:space-y-0",xl:"xl:grid xl:space-y-0"},spacing:{sm:"space-y-2 gap-2",md:"space-y-4 gap-4",lg:"space-y-8 gap-8",xl:"space-y-10 gap-10"},cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"}},defaultVariants:{breakBelow:"xl",spacing:"md",cols:3}})}),_AppLayout=e=>{let{children:a,rootClassName:t,className:n,ref:l,withSidebar:o,sidebarSize:u,...c}=e;return(0,r.jsx)("div",{className:(0,s.cn)(i.root({withSidebar:o,sidebarSize:u}),t,n),...c,ref:l,children:a})};_AppLayout.displayName="AppLayout";let h=n.forwardRef((e,a)=>{let{children:t,rootClassName:n,className:l,...i}=e;return(0,r.jsx)("header",{className:(0,s.cn)(o.root(),n,l),...i,ref:a,children:t})});h.displayName="AppLayoutHeader";let m=n.forwardRef((e,a)=>{let{children:t,rootClassName:n,className:l,...i}=e;return(0,r.jsx)("aside",{className:(0,s.cn)(u.root(),n,l),...i,ref:a,children:t})});m.displayName="AppLayoutSidebar";let f=n.forwardRef((e,a)=>{let{children:t,rootClassName:n,className:l,...i}=e;return(0,r.jsx)("main",{className:(0,s.cn)(c.root(),n,l),...i,ref:a,children:t})});f.displayName="AppLayoutContent";let v=n.forwardRef((e,a)=>{let{children:t,rootClassName:n,className:l,breakBelow:i,cols:o,spacing:u,...c}=e;return(0,r.jsx)("section",{className:(0,s.cn)(p.root({breakBelow:i,cols:o,spacing:u}),n,l),...c,ref:a,children:t})});v.displayName="AppLayoutGrid";let x=n.forwardRef((e,a)=>{let{children:t,rootClassName:n,className:l,...i}=e;return(0,r.jsx)("footer",{className:(0,s.cn)(d.root(),n,l),...i,ref:a,children:t})});x.displayName="AppLayoutFooter";let S=n.forwardRef((e,a)=>{let{children:t,rootClassName:n,className:l,spacing:i,...o}=e;return(0,r.jsx)("div",{className:(0,s.cn)(g.root({spacing:i}),n,l),...o,ref:a,children:t})});S.displayName="AppLayoutStack",_AppLayout.Header=h,_AppLayout.Sidebar=m,_AppLayout.Content=f,_AppLayout.Footer=x,_AppLayout.Grid=v,_AppLayout.Stack=S;let y=(0,s.Fm)(_AppLayout);y.displayName="AppLayout";var _=t(33538);let b=n.createContext({open:!1,setOpen:()=>{}}),useAppSidebarContext=()=>n.useContext(b),P=(0,s.xH)({sidebar:(0,l.j)(["UI-AppSidebar__sidebar","flex flex-grow flex-col"])}),N=(0,s.xH)({trigger:(0,l.j)(["UI-AppSidebarTrigger__trigger","block md:hidden","items-center justify-center rounded-[--radius] p-2 text-[--muted] hover:bg-[--highlight] hover:text-[--text-color]","focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[--ring]"])}),A=n.forwardRef((e,a)=>{let{children:t,sidebarClassName:n,className:l,...i}=e,o=useAppSidebarContext();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:(0,s.cn)(P.sidebar(),n),...i,ref:a,children:(0,r.jsx)("div",{className:(0,s.cn)(l),children:t})}),(0,r.jsx)(_.dy,{isOpen:o.open,onClose:()=>o.setOpen(!1),placement:"left",isClosable:!0,className:"md:hidden",containerClassName:"w-[85%]",bodyClassName:(0,s.cn)("p-0 md:p-0",l),headerClassName:"absolute p-2 sm:p-2 md:p-2 lg:p-2 right-0",closeButtonIntent:"white-outline",children:t})]})});A.displayName="AppSidebar";let w=n.forwardRef((e,a)=>{let{children:t,triggerClassName:n,className:l,...i}=e,o=useAppSidebarContext();return(0,r.jsxs)("button",{className:(0,s.cn)(N.trigger(),n,l),onClick:()=>o.setOpen(e=>!e),...i,ref:a,children:[(0,r.jsx)("span",{className:"sr-only",children:"Open main menu"}),o.open?(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,r.jsx)("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),(0,r.jsx)("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}):(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,r.jsx)("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),(0,r.jsx)("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),(0,r.jsx)("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})]})});w.displayName="AppSidebarTrigger";let AppSidebarProvider=e=>{let{children:a,open:t}=e,[s,l]=(0,n.useState)(null!=t&&t);return(0,n.useEffect)(()=>{void 0!==t&&l(t)},[t]),(0,r.jsx)(b.Provider,{value:{open:s,setOpen:l},children:a})}},34654:function(e,a,t){"use strict";t.d(a,{E:function(){return useDebounceWithSet},N:function(){return useDebounce}});var r=t(2265);function useDebounce(e,a){let[t,n]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let t=setTimeout(()=>n(e),a||500);return()=>{clearTimeout(t)}},[e,a]),t}function useDebounceWithSet(e,a){let[t,n]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let t=setTimeout(()=>n(e),a||500);return()=>{clearTimeout(t)}},[e,a]),[t,n]}},6025:function(e,a,t){"use strict";t.d(a,{z:function(){return searchAnilistMediaList}});var r=t(29222);async function searchAnilistMediaList(e){let{page:a,search:t,perPage:n,sort:s,status:l,genres:i,averageScoreGreater:o,season:u,seasonYear:c,format:d}=e;try{var g;let e=await r.Z.post("https://graphql.anilist.co",{query:"\n query ListMedia(\n $page: Int\n $search: String\n $perPage: Int\n $sort: [MediaSort]\n $status: [MediaStatus]\n $genres: [String]\n $averageScore_greater: Int\n $season: MediaSeason\n $seasonYear: Int\n $format: MediaFormat\n ) {\n Page(page: $page, perPage: $perPage) {\n pageInfo {\n hasNextPage\n total\n perPage\n currentPage\n lastPage\n }\n media(\n type: ANIME\n search: $search\n sort: $sort\n status_in: $status\n isAdult: false\n format: $format\n genre_in: $genres\n averageScore_greater: $averageScore_greater\n season: $season\n seasonYear: $seasonYear\n format_not: MUSIC\n ) {\n ...basicMedia\n }\n }\n }\n fragment basicMedia on Media {\n id\n idMal\n siteUrl\n status(version: 2)\n season\n type\n format\n bannerImage\n episodes\n synonyms\n isAdult\n countryOfOrigin\n title {\n userPreferred\n romaji\n english\n native\n }\n coverImage {\n extraLarge\n large\n medium\n color\n }\n startDate {\n year\n month\n day\n }\n endDate {\n year\n month\n day\n }\n nextAiringEpisode {\n airingAt\n timeUntilAiring\n episode\n }\n }\n ",variables:{page:a,search:t,perPage:n,sort:s,status:l,genres:i,averageScore_greater:o,season:u,seasonYear:c,format:d}});return null===(g=e.data)||void 0===g?void 0:g.data}catch(e){console.error(e);return}}},95637:function(e,a,t){"use strict";var r=t(2265);a.Z=function(e){(0,r.useEffect)(e,[])}},18354:function(e,a,t){"use strict";t.d(a,{Gm:function(){return infiniteQueryBehavior},Qy:function(){return hasNextPage},ZF:function(){return hasPreviousPage}});var r=t(40300);function infiniteQueryBehavior(e){return{onFetch:(a,t)=>{let fetchFn=async()=>{let t;let n=a.options,s=a.fetchOptions?.meta?.fetchMore?.direction,l=a.state.data?.pages||[],i=a.state.data?.pageParams||[],o=!1,addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a.signal.aborted?o=!0:a.signal.addEventListener("abort",()=>{o=!0}),a.signal)})},u=a.options.queryFn||(()=>Promise.reject(Error(`Missing queryFn: '${a.options.queryHash}'`))),fetchPage=async(e,t,n)=>{if(o)return Promise.reject();if(null==t&&e.pages.length)return Promise.resolve(e);let s={queryKey:a.queryKey,pageParam:t,direction:n?"backward":"forward",meta:a.options.meta};addSignalProperty(s);let l=await u(s),{maxPages:i}=a.options,c=n?r.Ht:r.VX;return{pages:c(e.pages,l,i),pageParams:c(e.pageParams,t,i)}};if(s&&l.length){let e="backward"===s,a=e?getPreviousPageParam:getNextPageParam,r={pages:l,pageParams:i},o=a(n,r);t=await fetchPage(r,o,e)}else{t=await fetchPage({pages:[],pageParams:[]},i[0]??n.initialPageParam);let a=e??l.length;for(let e=1;ea.options.persister?.(fetchFn,{queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},t):a.fetchFn=fetchFn}}}function getNextPageParam(e,{pages:a,pageParams:t}){let r=a.length-1;return e.getNextPageParam(a[r],a,t[r],t)}function getPreviousPageParam(e,{pages:a,pageParams:t}){return e.getPreviousPageParam?.(a[0],a,t[0],t)}function hasNextPage(e,a){return!!a&&null!=getNextPageParam(e,a)}function hasPreviousPage(e,a){return!!a&&!!e.getPreviousPageParam&&null!=getPreviousPageParam(e,a)}},33923:function(e,a,t){"use strict";t.d(a,{N:function(){return useInfiniteQuery}});var r=t(57501),n=t(18354),s=class extends r.z{constructor(e,a){super(e,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,a){super.setOptions({...e,behavior:(0,n.Gm)()},a)}getOptimisticResult(e){return e.behavior=(0,n.Gm)(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,a){let{state:t}=e,r=super.createResult(e,a),{isFetching:s,isRefetching:l}=r,i=s&&t.fetchMeta?.fetchMore?.direction==="forward",o=s&&t.fetchMeta?.fetchMore?.direction==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.Qy)(a,t.data),hasPreviousPage:(0,n.ZF)(a,t.data),isFetchingNextPage:i,isFetchingPreviousPage:o,isRefetching:l&&!i&&!o}}},l=t(30793);function useInfiniteQuery(e,a){return(0,l.r)(e,s,a)}}},function(e){e.O(0,[492,890,999,685,702,17,898,265,726,669,697,912,430,345,832,214,971,472,744],function(){return e(e.s=92265)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/settings/page-b11244f9b58d257c.js b/web/_next/static/chunks/app/(main)/settings/page-b11244f9b58d257c.js new file mode 100644 index 00000000..ffd65799 --- /dev/null +++ b/web/_next/static/chunks/app/(main)/settings/page-b11244f9b58d257c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[978],{13461:function(e,t,r){var n=r(65491).w_;e.exports.n=function(e){return n({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#3F51B5",d:"M43.4,8.3L4,15l-0.3-2c-0.4-2.2,1.1-4.2,3.3-4.6l31.6-5.3c2.2-0.4,4.2,1.1,4.6,3.3L43.4,8.3z"}},{tag:"path",attr:{fill:"#3F51B5",d:"M40,41H8c-2.2,0-4-1.8-4-4V15h40v22C44,39.2,42.2,41,40,41z"}},{tag:"g",attr:{fill:"#9FA8DA"},child:[{tag:"polygon",attr:{points:"18.8,6.4 23.7,11.7 27.7,11 22.7,5.7"}},{tag:"polygon",attr:{points:"10.9,7.7 15.8,13 19.8,12.3 14.8,7.1"}},{tag:"polygon",attr:{points:"26.7,5.1 31.6,10.3 35.5,9.7 30.6,4.4"}},{tag:"polygon",attr:{points:"34.5,3.8 39.5,9 43.4,8.3 38.5,3.1"}}]},{tag:"circle",attr:{fill:"#9FA8DA",cx:"7.5",cy:"11.5",r:"1.5"}},{tag:"g",attr:{fill:"#9FA8DA"},child:[{tag:"polygon",attr:{points:"40,15 36,21 40,21 44,15"}},{tag:"polygon",attr:{points:"32,15 28,21 32,21 36,15"}},{tag:"polygon",attr:{points:"24,15 20,21 24,21 28,15"}},{tag:"polygon",attr:{points:"16,15 12,21 16,21 20,15"}},{tag:"polygon",attr:{points:"8,15 4,21 8,21 12,15"}}]}]})(e)}},66834:function(e,t,r){var n=r(65491).w_;e.exports.T=function(e){return n({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFA000",d:"M40,12H22l-4-4H8c-2.2,0-4,1.8-4,4v8h40v-4C44,13.8,42.2,12,40,12z"}},{tag:"path",attr:{fill:"#FFCA28",d:"M40,12H8c-2.2,0-4,1.8-4,4v20c0,2.2,1.8,4,4,4h32c2.2,0,4-1.8,4-4V16C44,13.8,42.2,12,40,12z"}}]})(e)}},13986:function(e,t,r){var n=r(65491).w_;e.exports.a=function(e){return n({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#CFD8DC",points:"39.4,23 38.6,19 26,21.6 26,8 22,8 22,20.3 8.1,11.3 5.9,14.7 21.1,24.5 9.4,39.8 12.6,42.2 23.9,27.4 32.3,40.1 35.7,37.9 27.3,25.4"}},{tag:"circle",attr:{fill:"#3F51B5",cx:"24",cy:"24",r:"7"}},{tag:"g",attr:{fill:"#00BCD4"},child:[{tag:"circle",attr:{cx:"24",cy:"8",r:"5"}},{tag:"circle",attr:{cx:"39",cy:"21",r:"5"}},{tag:"circle",attr:{cx:"7",cy:"13",r:"5"}},{tag:"circle",attr:{cx:"11",cy:"41",r:"5"}},{tag:"circle",attr:{cx:"34",cy:"39",r:"5"}}]}]})(e)}},82777:function(e,t,r){var n=r(65491).w_;e.exports.E=function(e){return n({tag:"svg",attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#4CAF50",d:"M8,12h22c2.2,0,4,1.8,4,4v16c0,2.2-1.8,4-4,4H8c-2.2,0-4-1.8-4-4V16C4,13.8,5.8,12,8,12z"}},{tag:"polygon",attr:{fill:"#388E3C",points:"44,35 34,29 34,19 44,13"}}]})(e)}},93722:function(e,t,r){var n=r(65491).w_;e.exports.p=function(e){return n({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#F57C00",d:"M36.258,28.837c0,0-0.11-0.837-1.257-0.837c-0.216,0-2.392,0-3.719,0c0.798,2.671,1.497,5.135,1.497,5.279\r\n c0,2.387-3.401,3.393-8.917,3.393c-5.515,0-8.651-0.94-8.651-3.326c0-0.167,0.998-2.692,1.791-5.346c-1.591,0-3.863,0-4.063,0\r\n c-0.806,0-0.937,0.749-0.937,0.749L8.159,40.986L8.815,42h30.652l0.376-1.014L36.258,28.837z"}},{tag:"path",attr:{fill:"#E0E0E0",d:"M24.001,6c-1.029,0-1.864,0.179-1.864,0.398c-0.492,1.483-8.122,26.143-8.122,26.774\r\n c0,2.388,4.471,3.827,9.985,3.827s9.986-1.439,9.986-3.827c0-0.549-7.614-25.268-8.122-26.774C25.865,6.179,25.031,6,24.001,6\r\n L24.001,6z"}},{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"#FF9800",d:"M33.196,30.447C32.032,32.232,28.341,34,24.046,34c-4.34,0-8.156-1.696-9.281-3.51\r\n c-0.499,1.483-0.892,2.647-0.892,3.28c0,2.386,4.533,4.229,10.128,4.229c5.595,0,10.131-1.844,10.131-4.229\r\n C34.132,33.222,33.713,31.955,33.196,30.447z"}},{tag:"path",attr:{fill:"#FF9800",d:"M31.387,24.314l-2.074-6.794c0,0-1.857,1.479-5.311,1.479c-3.453,0-5.316-1.479-5.316-1.479l-2.081,6.806\r\n c0,0,2.068,2.674,7.397,2.674C29.375,27,31.387,24.314,31.387,24.314z"}},{tag:"path",attr:{fill:"#FF9800",d:"M27.241,10.809l-1.376-4.41c0,0-0.083-0.398-1.864-0.398c-1.844,0-1.864,0.398-1.864,0.398l-1.376,4.407\r\n c0,0,0.885,1.194,3.239,1.194C26.355,12,27.241,10.809,27.241,10.809z"}}]}]})(e)}},60934:function(e,t,r){Promise.resolve().then(r.bind(r,50942))},50942:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Page}});var n=r(57437),l=r(23890),o=r(751),a=r(2265),i=r(26345),s=r(63479),c=r(66834),d=r(34813),u=r(82777),p=r(93722),g=r(13461),v=r(13986),m=r(51472),f=r(57638),h=r(5925),P=r(87826);function Page(){var e,t,r,b,y,x,j,C,N,k,I,S,E,A,z,q,T,D,U,F,B,H,_,R,L,O,K,Q,Z,$,W;let[G,J]=(0,l.KO)(o.X),{mutate:X,data:et,isPending:er}=(0,m.$U)({endpoint:f.E.SETTINGS,mutationKey:["patch-settings"],method:"patch",onSuccess:()=>{h.ZP.success("Settings updated")}});return(0,a.useEffect)(()=>{!er&&(null==et?void 0:et.settings)&&J(et)},[et,er]),(0,n.jsxs)("div",{className:"p-12 space-y-4",children:[(0,n.jsx)("h2",{children:"Settings"}),(0,n.jsxs)(i.Fu,{schema:s.R,onSubmit:e=>{X({library:{libraryPath:e.libraryPath},mediaPlayer:{host:e.mediaPlayerHost,defaultPlayer:e.defaultPlayer,vlcPort:e.vlcPort,vlcUsername:e.vlcUsername||"",vlcPassword:e.vlcPassword,vlcPath:e.vlcPath||"",mpcPort:e.mpcPort,mpcPath:e.mpcPath||""},torrent:{qbittorrentPath:e.qbittorrentPath,qbittorrentHost:e.qbittorrentHost,qbittorrentPort:e.qbittorrentPort,qbittorrentPassword:e.qbittorrentPassword,qbittorrentUsername:e.qbittorrentUsername},anilist:{hideAudienceScore:e.hideAudienceScore}})},defaultValues:{libraryPath:null==G?void 0:null===(t=G.settings)||void 0===t?void 0:null===(e=t.library)||void 0===e?void 0:e.libraryPath,mediaPlayerHost:null==G?void 0:null===(b=G.settings)||void 0===b?void 0:null===(r=b.mediaPlayer)||void 0===r?void 0:r.host,defaultPlayer:null==G?void 0:null===(x=G.settings)||void 0===x?void 0:null===(y=x.mediaPlayer)||void 0===y?void 0:y.defaultPlayer,vlcPort:null==G?void 0:null===(C=G.settings)||void 0===C?void 0:null===(j=C.mediaPlayer)||void 0===j?void 0:j.vlcPort,vlcUsername:null==G?void 0:null===(k=G.settings)||void 0===k?void 0:null===(N=k.mediaPlayer)||void 0===N?void 0:N.vlcUsername,vlcPassword:null==G?void 0:null===(S=G.settings)||void 0===S?void 0:null===(I=S.mediaPlayer)||void 0===I?void 0:I.vlcPassword,vlcPath:null==G?void 0:null===(A=G.settings)||void 0===A?void 0:null===(E=A.mediaPlayer)||void 0===E?void 0:E.vlcPath,mpcPort:null==G?void 0:null===(q=G.settings)||void 0===q?void 0:null===(z=q.mediaPlayer)||void 0===z?void 0:z.mpcPort,mpcPath:null==G?void 0:null===(D=G.settings)||void 0===D?void 0:null===(T=D.mediaPlayer)||void 0===T?void 0:T.mpcPath,qbittorrentPath:null==G?void 0:null===(F=G.settings)||void 0===F?void 0:null===(U=F.torrent)||void 0===U?void 0:U.qbittorrentPath,qbittorrentHost:null==G?void 0:null===(H=G.settings)||void 0===H?void 0:null===(B=H.torrent)||void 0===B?void 0:B.qbittorrentHost,qbittorrentPort:null==G?void 0:null===(R=G.settings)||void 0===R?void 0:null===(_=R.torrent)||void 0===_?void 0:_.qbittorrentPort,qbittorrentPassword:null==G?void 0:null===(O=G.settings)||void 0===O?void 0:null===(L=O.torrent)||void 0===L?void 0:L.qbittorrentPassword,qbittorrentUsername:null==G?void 0:null===(Q=G.settings)||void 0===Q?void 0:null===(K=Q.torrent)||void 0===K?void 0:K.qbittorrentUsername,hideAudienceScore:null!==(W=null==G?void 0:null===($=G.settings)||void 0===$?void 0:null===(Z=$.anilist)||void 0===Z?void 0:Z.hideAudienceScore)&&void 0!==W&&W},stackClassName:"space-y-4",children:[(0,n.jsx)(i.gN.DirectorySelector,{name:"libraryPath",label:"Library folder",leftIcon:(0,n.jsx)(c.T,{}),help:"Folder where your anime library is located. (Keep the casing consistent)",shouldExist:!0}),(0,n.jsx)(d.iz,{}),(0,n.jsxs)(P.UQ,{containerClassName:"hidden md:block space-y-4",triggerClassName:"border border-[--border] bg-gray-900 bg-opacity-80 dark:bg-gray-900 dark:bg-opacity-80 hover:bg-gray-800 dark:hover:bg-gray-800 hover:bg-opacity-100 dark:hover:bg-opacity-100",panelClassName:"p-8 border border-[--border] rounded-md mt-4 space-y-4",children:[(0,n.jsxs)(P.UQ.Item,{title:"Media Player",children:[(0,n.jsx)(i.gN.Select,{name:"defaultPlayer",label:"Default player",leftIcon:(0,n.jsx)(u.E,{}),options:[{label:"VLC",value:"vlc"},{label:"MPC-HC (Windows only)",value:"mpc-hc"}],help:"Player that will be used to open files and track your progress automatically."}),(0,n.jsx)(i.gN.Text,{name:"mediaPlayerHost",label:"Host"}),(0,n.jsx)(d.iz,{}),(0,n.jsxs)("h3",{className:"flex gap-2 items-center",children:[(0,n.jsx)(p.p,{})," VLC"]}),(0,n.jsxs)("div",{className:"flex gap-4",children:[(0,n.jsx)(i.gN.Text,{name:"vlcUsername",label:"Username"}),(0,n.jsx)(i.gN.Text,{name:"vlcPassword",label:"Password"}),(0,n.jsx)(i.gN.Number,{name:"vlcPort",label:"Port",discrete:!0})]}),(0,n.jsx)(i.gN.Text,{name:"vlcPath",label:"Application path"}),(0,n.jsx)(d.iz,{}),(0,n.jsxs)("h3",{className:"flex gap-2 items-center",children:[(0,n.jsx)(g.n,{})," MPC-HC"]}),(0,n.jsx)("div",{className:"flex gap-4",children:(0,n.jsx)(i.gN.Number,{name:"mpcPort",label:"Port",discrete:!0})}),(0,n.jsx)(i.gN.Text,{name:"mpcPath",label:"Application path"})]}),(0,n.jsxs)(P.UQ.Item,{title:"qBittorrent",children:[(0,n.jsxs)("h3",{className:"flex gap-2 items-center",children:[(0,n.jsx)(v.a,{})," qBittorrent"]}),(0,n.jsx)(i.gN.Text,{name:"qbittorrentHost",label:"Host"}),(0,n.jsxs)("div",{className:"flex gap-4",children:[(0,n.jsx)(i.gN.Text,{name:"qbittorrentUsername",label:"Username"}),(0,n.jsx)(i.gN.Text,{name:"qbittorrentPassword",label:"Password"}),(0,n.jsx)(i.gN.Number,{name:"qbittorrentPort",label:"Port",discrete:!0})]}),(0,n.jsx)(i.gN.Text,{name:"qbittorrentPath",label:"Application path"})]}),(0,n.jsx)(P.UQ.Item,{title:"AniList",children:(0,n.jsx)(i.gN.Switch,{name:"hideAudienceScore",label:"Hide audience score"})})]}),(0,n.jsx)(i.gN.Submit,{role:"save",isLoading:er})]})]})}},87826:function(e,t,r){"use strict";r.d(t,{UQ:function(){return d}});var n=r(57437),l=r(2265),o=r(18743),a=r(9805),i=r(54487),s=r(96061);let c=(0,i.xH)({container:(0,s.j)(["UI-Accordion__container","space-y-2"]),trigger:(0,s.j)(["UI-Accordion__trigger","bg-gray-50 dark:bg-gray-800 hover:bg-gray-100 dark:hover:bg-gray-700","flex w-full justify-between rounded-lg px-4 py-3 text-left font-medium transition","focus:outline-none focus-visible:ring-2 focus-visible:ring-[--ring] ring-offset-1"]),panel:(0,s.j)(["UI-Accordion__panel","py-2"]),item:(0,s.j)(["UI-Accordion__item"])}),_Accordion=e=>{let{children:t,triggerClassName:r,containerClassName:o,panelClassName:a,itemClassName:s,className:d,...u}=e,p=l.Children.map(t,e=>l.isValidElement(e)?l.cloneElement(e,{triggerClassName:r,panelClassName:a,itemClassName:s}):e);return(0,n.jsx)("div",{className:(0,i.cn)(c.container(),o,d),children:p})},AccordionItem=e=>{let{children:t,title:r,triggerClassName:l,panelClassName:s,itemClassName:d,className:u,defaultOpen:p,...g}=e;return(0,n.jsx)(o.p,{defaultOpen:p,children:e=>{let{open:p}=e;return(0,n.jsxs)("div",{className:(0,i.cn)(c.item(),d,u),...g,children:[(0,n.jsxs)(o.p.Button,{className:(0,i.cn)(c.trigger(),l),children:[r,(0,n.jsx)("svg",{className:(0,i.cn)("ml-1.5 h-5 w-5 flex-shrink-0 transition duration-300",{"-rotate-180":p}),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),(0,n.jsx)(a.u,{show:p,enter:"transition duration-300 ease-out",enterFrom:"transform h-0 opacity-0",enterTo:"transform h-full opacity-100",leave:"transition duration-75 ease-out",leaveFrom:"transform h-full opacity-100",leaveTo:"transform h-0 opacity-0",children:(0,n.jsx)(o.p.Panel,{static:!0,className:(0,i.cn)(c.panel(),s),children:t})})]})}})};AccordionItem.displayName="AccordionItem",_Accordion.Item=AccordionItem;let d=(0,i.Fm)(_Accordion);d.displayName="Accordion"},63479:function(e,t,r){"use strict";r.d(t,{R:function(){return l}});var n=r(74578);let l=n.z.object({libraryPath:n.z.string().min(1),defaultPlayer:n.z.string(),mediaPlayerHost:n.z.string(),vlcUsername:n.z.string().optional().default(""),vlcPassword:n.z.string().optional().default(""),vlcPort:n.z.number(),vlcPath:n.z.string().optional().default(""),mpcPort:n.z.number(),mpcPath:n.z.string().optional().default(""),qbittorrentPath:n.z.string().optional().default(""),qbittorrentHost:n.z.string(),qbittorrentPort:n.z.number(),qbittorrentUsername:n.z.string().optional().default(""),qbittorrentPassword:n.z.string().optional().default(""),hideAudienceScore:n.z.boolean().optional().default(!1)})},18743:function(e,t,r){"use strict";r.d(t,{p:function(){return I}});var n,l,o,a=r(2265),i=r(60597),s=r(11931),c=r(46618),d=r(75606),u=r(93850),p=r(35863),g=r(25306),v=r(8076),m=r(54851),f=r(12950);let h=null!=(o=a.startTransition)?o:function(e){e()};var P=((n=P||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),b=((l=b||{})[l.ToggleDisclosure=0]="ToggleDisclosure",l[l.CloseDisclosure=1]="CloseDisclosure",l[l.SetButtonId=2]="SetButtonId",l[l.SetPanelId=3]="SetPanelId",l[l.LinkPanel=4]="LinkPanel",l[l.UnlinkPanel=5]="UnlinkPanel",l);let y={0:e=>({...e,disclosureState:(0,i.E)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},x=(0,a.createContext)(null);function M(e){let t=(0,a.useContext)(x);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,M),t}return t}x.displayName="DisclosureContext";let j=(0,a.createContext)(null);function w(e){let t=(0,a.useContext)(j);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,w),t}return t}j.displayName="DisclosureAPIContext";let C=(0,a.createContext)(null);function V(){return(0,a.useContext)(C)}function Y(e,t){return(0,i.E)(t.type,y,e,t)}C.displayName="DisclosurePanelContext";let N=a.Fragment;function ee(e,t){let{defaultOpen:r=!1,...n}=e,l=(0,a.useRef)(null),o=(0,c.T)(t,(0,c.h)(e=>{l.current=e},void 0===e.as||e.as===a.Fragment)),d=(0,a.useRef)(null),u=(0,a.useRef)(null),p=(0,a.useReducer)(Y,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:u,panelRef:d,buttonId:null,panelId:null}),[{disclosureState:v,buttonId:h},P]=p,b=(0,f.z)(e=>{P({type:1});let t=(0,m.r)(l);if(!t||!h)return;let r=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(h):t.getElementById(h);null==r||r.focus()}),y=(0,a.useMemo)(()=>({close:b}),[b]),C=(0,a.useMemo)(()=>({open:0===v,close:b}),[v,b]);return a.createElement(x.Provider,{value:p},a.createElement(j.Provider,{value:y},a.createElement(g.up,{value:(0,i.E)(v,{0:g.ZM.Open,1:g.ZM.Closed})},(0,s.sY)({ourProps:{ref:o},theirProps:n,slot:C,defaultTag:N,name:"Disclosure"}))))}function ne(e,t){let r=(0,d.M)(),{id:n=`headlessui-disclosure-button-${r}`,...l}=e,[o,i]=M("Disclosure.Button"),g=V(),m=null!==g&&g===o.panelId,h=(0,a.useRef)(null),P=(0,c.T)(h,t,m?null:o.buttonRef);(0,a.useEffect)(()=>{if(!m)return i({type:2,buttonId:n}),()=>{i({type:2,buttonId:null})}},[n,i,m]);let b=(0,f.z)(e=>{var t;if(m){if(1===o.disclosureState)return;switch(e.key){case u.R.Space:case u.R.Enter:e.preventDefault(),e.stopPropagation(),i({type:0}),null==(t=o.buttonRef.current)||t.focus()}}else switch(e.key){case u.R.Space:case u.R.Enter:e.preventDefault(),e.stopPropagation(),i({type:0})}}),y=(0,f.z)(e=>{e.key===u.R.Space&&e.preventDefault()}),x=(0,f.z)(t=>{var r;(0,p.P)(t.currentTarget)||e.disabled||(m?(i({type:0}),null==(r=o.buttonRef.current)||r.focus()):i({type:0}))}),j=(0,a.useMemo)(()=>({open:0===o.disclosureState}),[o]),C=(0,v.f)(e,h),N=m?{ref:P,type:C,onKeyDown:b,onClick:x}:{ref:P,id:n,type:C,"aria-expanded":0===o.disclosureState,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:b,onKeyUp:y,onClick:x};return(0,s.sY)({ourProps:N,theirProps:l,slot:j,defaultTag:"button",name:"Disclosure.Button"})}let k=s.AN.RenderStrategy|s.AN.Static;function re(e,t){let r=(0,d.M)(),{id:n=`headlessui-disclosure-panel-${r}`,...l}=e,[o,i]=M("Disclosure.Panel"),{close:u}=w("Disclosure.Panel"),p=(0,c.T)(t,o.panelRef,e=>{h(()=>i({type:e?4:5}))});(0,a.useEffect)(()=>(i({type:3,panelId:n}),()=>{i({type:3,panelId:null})}),[n,i]);let v=(0,g.oJ)(),m=null!==v?(v&g.ZM.Open)===g.ZM.Open:0===o.disclosureState,f=(0,a.useMemo)(()=>({open:0===o.disclosureState,close:u}),[o,u]);return a.createElement(C.Provider,{value:o.panelId},(0,s.sY)({ourProps:{ref:p,id:n},theirProps:l,slot:f,defaultTag:"div",features:k,visible:m,name:"Disclosure.Panel"}))}let I=Object.assign((0,s.yV)(ee),{Button:(0,s.yV)(ne),Panel:(0,s.yV)(re)})}},function(e){e.O(0,[492,890,999,685,702,898,912,430,345,971,472,744],function(){return e(e.s=60934)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/(main)/torrent-list/page-646d974158ea05fd.js b/web/_next/static/chunks/app/(main)/torrent-list/page-646d974158ea05fd.js new file mode 100644 index 00000000..70a24995 --- /dev/null +++ b/web/_next/static/chunks/app/(main)/torrent-list/page-646d974158ea05fd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{78830:function(e,t,r){var n=r(65491).w_;e.exports.n=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21.886,5.536C21.713,5.207,21.372,5,21,5H3C2.628,5,2.287,5.207,2.114,5.536C1.941,5.865,1.966,6.263,2.178,6.569l9,13 C11.364,19.839,11.672,20,12,20s0.636-0.161,0.822-0.431l9-13C22.034,6.263,22.059,5.865,21.886,5.536z M12,17.243L4.908,7h14.184 L12,17.243z"}}]})(e)}},78637:function(e,t,r){var n=r(65491).w_;e.exports.J=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20,5h-8.586L9.707,3.293C9.52,3.105,9.265,3,9,3H4C2.897,3,2,3.897,2,5v14c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2V7 C22,5.897,21.103,5,20,5z M4,19V7h7h1h8l0.002,12H4z"}}]})(e)}},36255:function(e,t,r){var n=r(65491).w_;e.exports.r=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 3L16.293 6.293 9.293 13.293 10.707 14.707 17.707 7.707 21 11 21 3z"}},{tag:"path",attr:{d:"M19,19H5V5h7l-2-2H5C3.897,3,3,3.897,3,5v14c0,1.103,0.897,2,2,2h14c1.103,0,2-0.897,2-2v-5l-2-2V19z"}}]})(e)}},21037:function(e,t,r){var n=r(65491).w_;e.exports.x=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8 7H11V17H8zM13 7H16V17H13z"}}]})(e)}},50795:function(e,t,r){var n=r(65491).w_;e.exports.P=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 6L7 18 17 12z"}}]})(e)}},81509:function(e,t,r){var n=r(65491).w_;e.exports.t=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 7H17V17H7z"}}]})(e)}},90153:function(e,t,r){var n=r(65491).w_;e.exports.Y=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12,2C6.486,2,2,6.486,2,12s4.486,10,10,10c5.514,0,10-4.486,10-10S17.514,2,12,2z M12,20c-4.411,0-8-3.589-8-8 s3.589-8,8-8s8,3.589,8,8S16.411,20,12,20z"}},{tag:"path",attr:{d:"M13 7L11 7 11 13 17 13 17 11 13 11z"}}]})(e)}},59445:function(e,t,r){var n=r(65491).w_;e.exports.V=function(e){return n({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3,19h18c0.372,0,0.713-0.207,0.886-0.536c0.173-0.329,0.148-0.727-0.063-1.033l-9-13c-0.373-0.539-1.271-0.539-1.645,0 l-9,13c-0.212,0.306-0.236,0.704-0.063,1.033C2.287,18.793,2.628,19,3,19z M12,6.757L19.092,17H4.908L12,6.757z"}}]})(e)}},18316:function(e,t,r){Promise.resolve().then(r.bind(r,66688))},66688:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Page}});var n=r(57437),a=r(2265),i=r(93054),s=r(61396),o=r.n(s),l=r(97622),c=r(36255),d=r(51472),u=r(57638),h=r(11305),f=r(16691),p=r.n(f),g=r(27408),x=r(24033),m=r(54487);let LuffyError=e=>{let{children:t,reset:r,className:a,title:i="Oops!",showRefreshButton:s=!1,...o}=e,l=(0,x.useRouter)();return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:(0,m.cn)("w-full flex flex-col items-center mt-10 space-y-4",a),children:[(0,n.jsx)("div",{className:"h-[10rem] w-[10rem] mx-auto flex-none rounded-md object-cover object-center relative overflow-hidden",children:(0,n.jsx)(p(),{src:"/luffy-01.png",alt:"",fill:!0,quality:100,priority:!0,sizes:"10rem",className:"object-contain object-top"})}),(0,n.jsxs)("div",{className:"text-center space-y-4",children:[!!i&&(0,n.jsx)("h2",{children:i}),(0,n.jsx)("p",{children:t}),(0,n.jsxs)("div",{children:[s&&!r&&(0,n.jsx)(g.z,{intent:"warning-subtle",onClick:()=>l.refresh(),children:"Retry"}),!!r&&(0,n.jsx)(g.z,{intent:"warning-subtle",onClick:r,children:"Retry"})]})]})]})})};var v=r(78830),y=r(59445),b=r(90153),j=r(45652),w=r.n(j),C=r(78637),_=r(6469),N=r(21037),A=r(50795),k=r(81509),L=r(392);function Page(){return(0,n.jsxs)(i.ce,{className:"p-4",children:[(0,n.jsxs)("div",{className:"flex items-center w-full justify-between",children:[(0,n.jsx)("h2",{children:"Active torrents"}),(0,n.jsx)("div",{className:"",children:(0,n.jsx)(o(),{href:"/qbittorrent",children:(0,n.jsx)(l.zx,{intent:"white",rightIcon:(0,n.jsx)(c.r,{}),children:"Embedded client"})})})]}),(0,n.jsx)("div",{className:"pb-10",children:(0,n.jsx)(Content,{})})]})}function Content(){var e;let{data:t,isLoading:r,refetch:s}=(0,d.tZ)({endpoint:u.E.TORRENTS,queryKey:["torrents"],refetchInterval:2500,gcTime:0,retry:!1,refetchOnWindowFocus:!1}),{mutate:o,isPending:l}=(0,d.$U)({endpoint:u.E.TORRENT,mutationKey:["torrent-action"]}),c=(0,a.useCallback)(e=>{o(e)},[o]);return r?(0,n.jsx)(h.TK,{}):(0,n.jsxs)(i.ce,{className:"",children:[null==t?void 0:null===(e=t.filter(Boolean))||void 0===e?void 0:e.map(e=>(0,n.jsx)(TorrentItem,{torrent:e,refetch:s,onTorrentAction:c},e.hash)),!r&&!(null==t?void 0:t.length)&&(0,n.jsx)(LuffyError,{title:null,children:"No active torrents"})]})}function TorrentItem(e){let{torrent:t,refetch:r,onTorrentAction:a}=e,i="".concat((100*t.progress).toFixed(1),"%");return(0,n.jsxs)("div",{className:"p-4 border rounded-md border-[--border] overflow-hidden relative flex gap-2",children:[(0,n.jsx)("div",{className:"absolute top-0 w-full h-1 z-[1] bg-gray-700 left-0",children:(0,n.jsx)("div",{className:(0,m.cn)("h-1 absolute z-[2] left-0 bg-gray-200 transition-all",{"bg-green-300":"downloading"===t.status,"bg-gray-500":"paused"===t.status,"bg-blue-500":"seeding"===t.status}),style:{width:"".concat(String(Math.floor(100*t.progress)),"%")}})}),(0,n.jsxs)("div",{className:"w-full",children:[(0,n.jsx)("div",{className:(0,m.cn)({"opacity-50":"paused"===t.status}),children:t.name}),(0,n.jsxs)("div",{className:"text-[--muted]",children:[(0,n.jsx)("span",{className:(0,m.cn)({"text-green-300":"downloading"===t.status}),children:i})," ",(0,n.jsx)(v.n,{className:"inline-block mx-2 mb-1"}),t.upSpeed," ",(0,n.jsx)(y.V,{className:"inline-block mx-2"}),t.downSpeed," ",(0,n.jsx)(b.Y,{className:"inline-block mx-2 mb-0.5"}),t.eta," - ",(0,n.jsxs)("span",{children:[t.seeds," ",1!==t.seeds?"seeds":"seed"]})," - ",(0,n.jsx)("strong",{className:(0,m.cn)({"text-blue-300":"seeding"===t.status}),children:w()(t.status)})]})]}),(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)("div",{className:"flex-none",children:(0,n.jsx)(l.hU,{icon:(0,n.jsx)(C.J,{}),size:"sm",intent:"gray-subtle",className:"flex-none",onClick:async()=>{a({hash:t.hash,action:"open",dir:L.dirname(t.contentPath)})}})}),"seeding"!==t.status?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(_.u,{trigger:(0,n.jsx)(l.hU,{icon:(0,n.jsx)(N.x,{}),size:"sm",intent:"gray-subtle",className:"flex-none",onClick:async()=>{a({hash:t.hash,action:"pause",dir:t.contentPath}),r()}}),children:"Pause"}),(0,n.jsx)(_.u,{trigger:(0,n.jsx)("div",{children:"downloading"!==t.status&&(0,n.jsx)(l.hU,{icon:(0,n.jsx)(A.P,{}),size:"sm",intent:"gray-subtle",className:"flex-none",onClick:async()=>{a({hash:t.hash,action:"resume",dir:t.contentPath}),r()}})}),children:"Resume"})]}):(0,n.jsx)(_.u,{trigger:(0,n.jsx)(l.hU,{icon:(0,n.jsx)(k.t,{}),size:"sm",intent:"primary",className:"flex-none",onClick:async()=>{a({hash:t.hash,action:"pause",dir:t.contentPath}),r()}}),children:"End"})]})]})}},93054:function(e,t,r){"use strict";r.d(t,{LN:function(){return b},RD:function(){return m},ce:function(){return y},S8:function(){return N},FV:function(){return AppSidebarProvider},AO:function(){return A}});var n=r(57437),a=r(2265),i=r(54487),s=r(96061);let o=(0,i.xH)({root:(0,s.j)(["UI-AppLayout__root","flex w-full min-h-screen group","group-[.with-sidebar]:group-[.sidebar-slim]:md:pl-20","group-[.with-sidebar]:group-[.sidebar-sm]:md:pl-48","group-[.with-sidebar]:group-[.sidebar-md]:md:pl-64","group-[.with-sidebar]:group-[.sidebar-lg]:md:pl-[20rem]","group-[.with-sidebar]:group-[.sidebar-xl]:md:pl-[25rem]"],{variants:{withSidebar:{true:"flex-row with-sidebar",false:"flex-col"},sidebarSize:{slim:"sidebar-slim",sm:"sidebar-sm",md:"sidebar-md",lg:"sidebar-lg",xl:"sidebar-xl"}},defaultVariants:{withSidebar:!1,sidebarSize:"md"}})}),l=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutHeader__root","block w-full"])}),c=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutSidebar__root","hidden md:fixed md:inset-y-0 md:flex md:flex-col grow-0 shrink-0 basis-0 z-[10]","group-[.sidebar-slim]:md:w-20","group-[.sidebar-sm]:md:w-48","group-[.sidebar-md]:md:w-64","group-[.sidebar-lg]:md:w-[20rem]","group-[.sidebar-xl]:md:w-[25rem]"])}),d=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutContent__root"])}),u=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutFooter__root"])}),h=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutStack__root"],{variants:{spacing:{sm:"space-y-2",md:"space-y-4",lg:"space-y-8",xl:"space-y-10"}},defaultVariants:{spacing:"md"}})}),f=(0,i.xH)({root:(0,s.j)(["UI-AppLayoutGrid__root","block"],{variants:{breakBelow:{sm:"sm:grid sm:space-y-0",md:"md:grid md:space-y-0",lg:"lg:grid lg:space-y-0",xl:"xl:grid xl:space-y-0"},spacing:{sm:"space-y-2 gap-2",md:"space-y-4 gap-4",lg:"space-y-8 gap-8",xl:"space-y-10 gap-10"},cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"}},defaultVariants:{breakBelow:"xl",spacing:"md",cols:3}})}),_AppLayout=e=>{let{children:t,rootClassName:r,className:a,ref:s,withSidebar:l,sidebarSize:c,...d}=e;return(0,n.jsx)("div",{className:(0,i.cn)(o.root({withSidebar:l,sidebarSize:c}),r,a),...d,ref:s,children:t})};_AppLayout.displayName="AppLayout";let p=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:s,...o}=e;return(0,n.jsx)("header",{className:(0,i.cn)(l.root(),a,s),...o,ref:t,children:r})});p.displayName="AppLayoutHeader";let g=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:s,...o}=e;return(0,n.jsx)("aside",{className:(0,i.cn)(c.root(),a,s),...o,ref:t,children:r})});g.displayName="AppLayoutSidebar";let x=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:s,...o}=e;return(0,n.jsx)("main",{className:(0,i.cn)(d.root(),a,s),...o,ref:t,children:r})});x.displayName="AppLayoutContent";let m=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:s,breakBelow:o,cols:l,spacing:c,...d}=e;return(0,n.jsx)("section",{className:(0,i.cn)(f.root({breakBelow:o,cols:l,spacing:c}),a,s),...d,ref:t,children:r})});m.displayName="AppLayoutGrid";let v=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:s,...o}=e;return(0,n.jsx)("footer",{className:(0,i.cn)(u.root(),a,s),...o,ref:t,children:r})});v.displayName="AppLayoutFooter";let y=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:s,spacing:o,...l}=e;return(0,n.jsx)("div",{className:(0,i.cn)(h.root({spacing:o}),a,s),...l,ref:t,children:r})});y.displayName="AppLayoutStack",_AppLayout.Header=p,_AppLayout.Sidebar=g,_AppLayout.Content=x,_AppLayout.Footer=v,_AppLayout.Grid=m,_AppLayout.Stack=y;let b=(0,i.Fm)(_AppLayout);b.displayName="AppLayout";var j=r(33538);let w=a.createContext({open:!1,setOpen:()=>{}}),useAppSidebarContext=()=>a.useContext(w),C=(0,i.xH)({sidebar:(0,s.j)(["UI-AppSidebar__sidebar","flex flex-grow flex-col"])}),_=(0,i.xH)({trigger:(0,s.j)(["UI-AppSidebarTrigger__trigger","block md:hidden","items-center justify-center rounded-[--radius] p-2 text-[--muted] hover:bg-[--highlight] hover:text-[--text-color]","focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[--ring]"])}),N=a.forwardRef((e,t)=>{let{children:r,sidebarClassName:a,className:s,...o}=e,l=useAppSidebarContext();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,i.cn)(C.sidebar(),a),...o,ref:t,children:(0,n.jsx)("div",{className:(0,i.cn)(s),children:r})}),(0,n.jsx)(j.dy,{isOpen:l.open,onClose:()=>l.setOpen(!1),placement:"left",isClosable:!0,className:"md:hidden",containerClassName:"w-[85%]",bodyClassName:(0,i.cn)("p-0 md:p-0",s),headerClassName:"absolute p-2 sm:p-2 md:p-2 lg:p-2 right-0",closeButtonIntent:"white-outline",children:r})]})});N.displayName="AppSidebar";let A=a.forwardRef((e,t)=>{let{children:r,triggerClassName:a,className:s,...o}=e,l=useAppSidebarContext();return(0,n.jsxs)("button",{className:(0,i.cn)(_.trigger(),a,s),onClick:()=>l.setOpen(e=>!e),...o,ref:t,children:[(0,n.jsx)("span",{className:"sr-only",children:"Open main menu"}),l.open?(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,n.jsx)("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),(0,n.jsx)("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}):(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,n.jsx)("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),(0,n.jsx)("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),(0,n.jsx)("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})]})});A.displayName="AppSidebarTrigger";let AppSidebarProvider=e=>{let{children:t,open:r}=e,[i,s]=(0,a.useState)(null!=r&&r);return(0,a.useEffect)(()=>{void 0!==r&&s(r)},[r]),(0,n.jsx)(w.Provider,{value:{open:i,setOpen:s},children:t})}},11305:function(e,t,r){"use strict";r.d(t,{fz:function(){return LoadingOverlay},TK:function(){return l},$j:function(){return c}});var n=r(57437),a=r(54487),i=r(96061),s=r(2265);let o=(0,a.xH)({container:(0,i.j)(["UI-LoadingSpinner__container","flex w-full items-center h-24 justify-center"]),icon:(0,i.j)(["UI-LoadingSpinner__icon","inline w-10 h-10 mr-2 animate-spin","text-gray-200 dark:text-gray-600 fill-brand-500"])}),l=s.forwardRef((e,t)=>{let{children:r,className:i,containerClassName:s,iconClassName:l,...d}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{className:(0,a.cn)(o.container(),s),...d,ref:t,children:(0,n.jsx)(c,{className:l})})})});l.displayName="LoadingSpinner";let c=s.forwardRef((e,t)=>{let{children:r,className:i,...s}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("svg",{"aria-hidden":"true",className:(0,a.cn)(o.icon(),i),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...s,children:[(0,n.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})}),d=(0,a.xH)({overlay:(0,i.j)(["UI-LoadingOverlay__overlay","absolute bg-white dark:bg-[rgba(0,0,0,0.3)] bg-opacity-70 w-full h-full z-10 inset-0 pt-4 flex flex-col items-center justify-center backdrop-blur-sm"])}),LoadingOverlay=e=>{let{children:t,show:r=!0,className:i,hideSpinner:s=!1,...o}=e;return r?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:(0,a.cn)(d.overlay(),i),...o,children:[!s&&(0,n.jsx)(l,{className:"justify-auto"}),t]})}):null};LoadingOverlay.displayName="LoadingOverlay"},6469:function(e,t,r){"use strict";r.d(t,{u:function(){return c}});var n=r(57437),a=r(2265),i=r(54487),s=r(96061),o=r(98265);let l=(0,i.xH)({tooltip:(0,s.j)(["UI-Tooltip__tooltip","z-50 overflow-hidden rounded-[--radius] px-3 py-1.5 text-sm shadow-md animate-in fade-in-50","bg-gray-800 text-white","data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1"])}),c=a.forwardRef((e,t)=>{let{children:r,tooltipClassName:a,className:s,trigger:c,...d}=e;return(0,n.jsx)(o.zt,{delayDuration:50,children:(0,n.jsxs)(o.fC,{children:[(0,n.jsx)(o.xz,{asChild:!0,children:c}),(0,n.jsx)(o.VY,{className:(0,i.cn)(l.tooltip(),a,s),...d,ref:t,children:r})]})})});c.displayName="Tooltip",o.zt},29743:function(e){!function(){"use strict";var t={114:function(e){function assertPath(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function normalizeStringPosix(e,t){for(var r,n="",a=0,i=-1,s=0,o=0;o<=e.length;++o){if(o2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",a=0):a=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=o,s=0;continue}}else if(2===n.length||1===n.length){n="",a=0,i=o,s=0;continue}}t&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),a=o-i-1;i=o,s=0}else 46===r&&-1!==s?++s:s=-1}return n}function _format(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var t={resolve:function(){for(var e,t,r="",n=!1,a=arguments.length-1;a>=-1&&!n;a--)a>=0?t=arguments[a]:(void 0===e&&(e=""),t=e),assertPath(t),0!==t.length&&(r=t+"/"+r,n=47===t.charCodeAt(0));return(r=normalizeStringPosix(r,!n),n)?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(assertPath(e),0===e.length)return".";var t=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return(0!==(e=normalizeStringPosix(e,!t)).length||t||(e="."),e.length>0&&r&&(e+="/"),t)?"/"+e:e},isAbsolute:function(e){return assertPath(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0==arguments.length)return".";for(var e,r=0;r0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":t.normalize(e)},relative:function(e,r){if(assertPath(e),assertPath(r),e===r||(e=t.resolve(e))===(r=t.resolve(r)))return"";for(var n=1;nl){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else i>l&&(47===e.charCodeAt(n+d)?c=d:0===d&&(c=0));break}var u=e.charCodeAt(n+d);if(u!==r.charCodeAt(s+d))break;47===u&&(c=d)}var h="";for(d=n+c+1;d<=a;++d)(d===a||47===e.charCodeAt(d))&&(0===h.length?h+="..":h+="/..");return h.length>0?h+r.slice(s+c):(s+=c,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(assertPath(e),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!a){n=i;break}}else a=!1;return -1===n?r?"/":".":r&&1===n?"//":e.slice(0,n)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');assertPath(e);var r,n=0,a=-1,i=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,o=-1;for(r=e.length-1;r>=0;--r){var l=e.charCodeAt(r);if(47===l){if(!i){n=r+1;break}}else -1===o&&(i=!1,o=r+1),s>=0&&(l===t.charCodeAt(s)?-1==--s&&(a=r):(s=-1,a=o))}return n===a?a=o:-1===a&&(a=e.length),e.slice(n,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!i){n=r+1;break}}else -1===a&&(i=!1,a=r+1);return -1===a?"":e.slice(n,a)},extname:function(e){assertPath(e);for(var t=-1,r=0,n=-1,a=!0,i=0,s=e.length-1;s>=0;--s){var o=e.charCodeAt(s);if(47===o){if(!a){r=s+1;break}continue}-1===n&&(a=!1,n=s+1),46===o?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1)}return -1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return _format("/",e)},parse:function(e){assertPath(e);var t,r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n=e.charCodeAt(0),a=47===n;a?(r.root="/",t=1):t=0;for(var i=-1,s=0,o=-1,l=!0,c=e.length-1,d=0;c>=t;--c){if(47===(n=e.charCodeAt(c))){if(!l){s=c+1;break}continue}-1===o&&(l=!1,o=c+1),46===n?-1===i?i=c:1!==d&&(d=1):-1!==i&&(d=-1)}return -1===i||-1===o||0===d||1===d&&i===o-1&&i===s+1?-1!==o&&(0===s&&a?r.base=r.name=e.slice(1,o):r.base=r.name=e.slice(s,o)):(0===s&&a?(r.name=e.slice(1,i),r.base=e.slice(1,o)):(r.name=e.slice(s,i),r.base=e.slice(s,o)),r.ext=e.slice(i,o)),s>0?r.dir=e.slice(0,s-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};t.posix=t,e.exports=t}},r={};function __nccwpck_require__(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,__nccwpck_require__),i=!1}finally{i&&delete r[e]}return a.exports}__nccwpck_require__.ab="//";var n=__nccwpck_require__(114);e.exports=n}()},392:function(e,t,r){var n,a,i,s,o,l,c,d,u,h="2.0.1",f=[].slice,p=[].indexOf||function(e){for(var t=0,r=this.length;t0&&(!(r=u(e[0])).startsWith("./")||n.startsWith("./")||n.startsWith("..")?r.startsWith("//")&&!n.startsWith("//")&&(n=r.startsWith("//./")?"//."+n:"/"+n):n="./"+n),n},addExt:function(e,t){return t?("."!==t[0]&&(t="."+t),e+(e.endsWith(t)?"":t)):e},trimExt:function(e,r,n){var a;return(null==n&&(n=7),a=t.extname(e),s(a,r,n))?e.slice(0,+(e.length-a.length-1)+1||9e9):e},removeExt:function(e,r){return r&&(r="."===r[0]?r:"."+r,t.extname(e)===r)?t.trimExt(e,[],r.length):e},changeExt:function(e,r,n,a){return null==a&&(a=7),t.trimExt(e,n,a)+(r?"."===r[0]?r:"."+r:"")},defaultExt:function(e,r,n,a){var i;return(null==a&&(a=7),i=t.extname(e),s(i,n,a))?e:t.addExt(e,r)}},s=function(e,t,r){return null==t&&(t=[]),e&&e.length<=r&&0>p.call(t.map(function(e){return(e&&"."!==e[0]?".":"")+e}),e)},a)if(g.call(a,o)){if(n=a[o],void 0!==t[o])throw Error("path."+o+" already exists.");t[o]=n}}},function(e){e.O(0,[492,999,702,17,265,912,971,472,744],function(){return e(e.s=18316)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/_not-found-5b4c39fa694ded1f.js b/web/_next/static/chunks/app/_not-found-5b4c39fa694ded1f.js new file mode 100644 index 00000000..9d6b6da4 --- /dev/null +++ b/web/_next/static/chunks/app/_not-found-5b4c39fa694ded1f.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{83155:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found",function(){return n(31038)}])},31038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return NotFound}});let l=n(21024),o=l._(n(2265)),r={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{display:"inline-block"},h1:{display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},h2:{fontSize:14,fontWeight:400,lineHeight:"49px",margin:0}};function NotFound(){return o.default.createElement(o.default.Fragment,null,o.default.createElement("title",null,"404: This page could not be found."),o.default.createElement("div",{style:r.error},o.default.createElement("div",null,o.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),o.default.createElement("h1",{className:"next-error-h1",style:r.h1},"404"),o.default.createElement("div",{style:r.desc},o.default.createElement("h2",{style:r.h2},"This page could not be found.")))))}("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)}},function(e){e.O(0,[971,472,744],function(){return e(e.s=83155)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/auth/callback/page-635c8a21188270e6.js b/web/_next/static/chunks/app/auth/callback/page-635c8a21188270e6.js new file mode 100644 index 00000000..949dc89e --- /dev/null +++ b/web/_next/static/chunks/app/auth/callback/page-635c8a21188270e6.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[453],{38913:function(e,r,n){Promise.resolve().then(n.bind(n,52411))},52411:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return Page}});var t=n(57437),i=n(2265),a=n(11305),o=n(24033),u=n(5925),l=n(28979),s=n(94152),c=n(51472),d=n(57638);async function q_login(e){return(0,c.E6)({endpoint:d.E.LOGIN,method:"post",data:{token:e}})}function useAuth(){let[e,r]=(0,i.useState)(null),{data:n,error:t}=(0,s.a)({queryKey:["login"],queryFn:async()=>q_login(null!=e?e:""),enabled:!!e});return(0,i.useEffect)(()=>{if(void 0!==window){var e,n,t,i;r(null===(i=window)||void 0===i?void 0:null===(t=i.location)||void 0===t?void 0:null===(n=t.hash)||void 0===n?void 0:null===(e=n.replace("#access_token=",""))||void 0===e?void 0:e.replace(/&.*/,""))}},[]),{data:n,error:t,token:e}}var f=n(23890),E=n(751);function Page(){let e=(0,o.useRouter)(),{data:r,error:n,token:s}=useAuth(),c=(0,f.b9)(E.X);return(0,l.Z)(()=>{n&&(u.ZP.error(n.message),e.push("/"))},[n]),(0,i.useEffect)(()=>{if(void 0!==window&&r&&s){c(r);let n=setTimeout(()=>{u.ZP.success("Successfully authenticated"),e.push("/")},1e3);return()=>clearTimeout(n)}},[r]),(0,t.jsx)("div",{children:(0,t.jsx)(a.fz,{className:"fixed w-full h-full z-[80]",children:(0,t.jsx)("h3",{className:"mt-2",children:"Authenticating..."})})})}},751:function(e,r,n){"use strict";n.d(r,{X:function(){return i}});var t=n(57685);let i=(0,t.sn)(void 0)},54487:function(e,r,n){"use strict";n.d(r,{QN:function(){return s},JP:function(){return UIProvider},cn:function(){return cn},Fm:function(){return createPolymorphicComponent},xH:function(){return defineStyleAnatomy},C2:function(){return getChildDisplayName},lq:function(){return mergeRefs},OR:function(){return useEventListener},LI:function(){return c},ac:function(){return useMediaQuery},k9:function(){return useUILocaleConfig}});var t=n(57437),i=n(2265);let a={locale:"en",countryLocale:"en-US",country:"us"},o=i.createContext(a),useUILocaleConfig=()=>i.useContext(o);useUILocaleConfig.displayName="useUILocaleConfig";let UIProvider=e=>{let{children:r,config:n}=e,i={...a,...n};return(0,t.jsx)(o.Provider,{value:i,children:r})};function defineStyleAnatomy(e){return e}UIProvider.displayName="UIProvider";var u=n(57042),l=n(23986);function cn(){for(var e=arguments.length,r=Array(e),n=0;n{var r;return null==e?void 0:null===(r=e.type)||void 0===r?void 0:r.displayName};function mergeRefs(){for(var e=arguments.length,r=Array(e),n=0;n{r.forEach(e=>{e&&("function"==typeof e?e(t.current):e.current=t.current)})},[r]),t}let s={undo:e=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:cn(null==e?void 0:e.className),children:[(0,t.jsx)("path",{d:"M9 14 4 9l5-5"}),(0,t.jsx)("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]})};function useEventListener(e,r,n,t){let a=(0,i.useRef)(r);c(()=>{a.current=r},[r]),(0,i.useEffect)(()=>{var r;let i=null!==(r=null==n?void 0:n.current)&&void 0!==r?r:window;if(!(i&&i.addEventListener))return;let listener=e=>a.current(e);return i.addEventListener(e,listener,t),()=>{i.removeEventListener(e,listener,t)}},[e,n,t])}let c=i.useLayoutEffect;function attachMediaListener(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch(n){return e.addListener(r),()=>e.removeListener(r)}}function getInitialValue(e,r){return"boolean"==typeof r?r:"matchMedia"in window&&window.matchMedia(e).matches}function useMediaQuery(e,r){let{getInitialValueInEffect:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{getInitialValueInEffect:!0},[t,a]=(0,i.useState)(n?r:getInitialValue(e,r)),o=(0,i.useRef)();return(0,i.useEffect)(()=>{if("matchMedia"in window)return o.current=window.matchMedia(e),a(o.current.matches),attachMediaListener(o.current,e=>a(e.matches))},[e]),t}},11305:function(e,r,n){"use strict";n.d(r,{fz:function(){return LoadingOverlay},TK:function(){return l},$j:function(){return s}});var t=n(57437),i=n(54487),a=n(96061),o=n(2265);let u=(0,i.xH)({container:(0,a.j)(["UI-LoadingSpinner__container","flex w-full items-center h-24 justify-center"]),icon:(0,a.j)(["UI-LoadingSpinner__icon","inline w-10 h-10 mr-2 animate-spin","text-gray-200 dark:text-gray-600 fill-brand-500"])}),l=o.forwardRef((e,r)=>{let{children:n,className:a,containerClassName:o,iconClassName:l,...c}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:(0,i.cn)(u.container(),o),...c,ref:r,children:(0,t.jsx)(s,{className:l})})})});l.displayName="LoadingSpinner";let s=o.forwardRef((e,r)=>{let{children:n,className:a,...o}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("svg",{"aria-hidden":"true",className:(0,i.cn)(u.icon(),a),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:r,...o,children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})}),c=(0,i.xH)({overlay:(0,a.j)(["UI-LoadingOverlay__overlay","absolute bg-white dark:bg-[rgba(0,0,0,0.3)] bg-opacity-70 w-full h-full z-10 inset-0 pt-4 flex flex-col items-center justify-center backdrop-blur-sm"])}),LoadingOverlay=e=>{let{children:r,show:n=!0,className:a,hideSpinner:o=!1,...u}=e;return n?(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,i.cn)(c.overlay(),a),...u,children:[!o&&(0,t.jsx)(l,{className:"justify-auto"}),r]})}):null};LoadingOverlay.displayName="LoadingOverlay"},99326:function(e,r,n){"use strict";n.d(r,{$:function(){return t}});let t="http://127.0.0.1:43210/api/v1"},57638:function(e,r,n){"use strict";var t,i,a,o;n.d(r,{E:function(){return t},f:function(){return i}}),(a=t||(t={})).STATUS="/status",a.LOGIN="/auth/login",a.LOGOUT="/auth/logout",a.SETTINGS="/settings",a.START_MEDIA_PLAYER="/media-player/start",a.OPEN_IN_EXPLORER="/open-in-explorer",a.PLAY_VIDEO="/media-player/play",a.ANILIST_LIST_ENTRY="/anilist/list-entry",a.ANILIST_LIST_ENTRY_PROGRESS="/anilist/list-entry/progress",a.ANILIST_COLLECTION="/anilist/collection",a.ANILIST_MEDIA_DETAILS="/anilist/media-details/{id}",a.EMPTY_DIRECTORIES="/library/empty-directories",a.LOCAL_FILES="/library/local-files",a.LIBRARY_COLLECTION="/library/collection",a.MISSING_EPISODES="/library/missing-episodes",a.SCAN_LIBRARY="/library/scan",a.LOCAL_FILE="/library/local-file",a.MEDIA_ENTRY="/library/media-entry/{id}",a.MEDIA_ENTRY_SUGGESTIONS="/library/media-entry/suggestions",a.MEDIA_ENTRY_MANUAL_MATCH="/library/media-entry/manual-match",a.MEDIA_ENTRY_BULK_ACTION="/library/media-entry/bulk-action",a.OPEN_MEDIA_ENTRY_IN_EXPLORER="/library/media-entry/open-in-explorer",a.NYAA_SEARCH="/nyaa/search",a.DOWNLOAD="/download",a.TORRENTS="/torrents",a.TORRENT="/torrent",(o=i||(i={})).SCAN_PROGRESS="scan-progress",o.REFRESHED_ANILIST_COLLECTION="refreshed-anilist-collection",o.MEDIA_PLAYER_TRACKING_STOPPED="media-player-tracking-stopped",o.MEDIA_PLAYER_TRACKING_STARTED="media-player-tracking-started",o.MEDIA_PLAYER_VIDEO_COMPLETED="media-player-video-completed",o.MEDIA_PLAYER_PLAYBACK_STATUS="media-player-playback-status"},51472:function(e,r,n){"use strict";n.d(r,{$U:function(){return useSeaMutation},E6:function(){return buildSeaQuery},tZ:function(){return useSeaQuery}});var t=n(29222),i=n(99326),a=n(23588),o=n(94152),u=n(5925),l=n(2265);async function buildSeaQuery(e){let{endpoint:r,method:n,data:a,params:o}=e,u=await (0,t.Z)({url:i.$+r,method:n,data:a,params:o}),l=_handleSeaResponse(u.data);return l.data}function useSeaMutation(e){let{endpoint:r,method:n="post",...t}=e;return(0,a.D)({onError:e=>{var r,n;u.ZP.error(_handleSeaError(null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.error))},mutationFn:async e=>buildSeaQuery({endpoint:r,method:n,data:e}),...t})}function useSeaQuery(e){let{endpoint:r,method:n="get",params:t,data:i,...a}=e,s=(0,o.a)({queryFn:async()=>buildSeaQuery({endpoint:r,method:n,params:t,data:t}),...a});return(0,l.useEffect)(()=>{if(s.isError){var e,r,n;u.ZP.error(_handleSeaError(null===(n=s.error)||void 0===n?void 0:null===(r=n.response)||void 0===r?void 0:null===(e=r.data)||void 0===e?void 0:e.error))}},[s.error,s.isError]),s}function _handleSeaError(e){if(!e)return"";try{return JSON.parse(e),"AniList error"}catch(r){return"Error: "+e}}function _handleSeaResponse(e){return"object"==typeof e&&e&&"error"in e&&"string"==typeof e.error?{data:void 0,error:e.error}:"object"==typeof e&&e&&"data"in e?{data:e.data,error:void 0}:{data:void 0,error:"No response from the server"}}},24033:function(e,r,n){e.exports=n(50094)},28979:function(e,r,n){"use strict";n.d(r,{Z:function(){return esm_useUpdateEffect}});var t=n(2265);function useFirstMountState(){var e=(0,t.useRef)(!0);return e.current?(e.current=!1,!0):e.current}var esm_useUpdateEffect=function(e,r){var n=useFirstMountState();(0,t.useEffect)(function(){if(!n)return e()},r)}}},function(e){e.O(0,[492,890,685,971,472,744],function(){return e(e.s=38913)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/app/layout-c818df4fd8d97609.js b/web/_next/static/chunks/app/layout-c818df4fd8d97609.js new file mode 100644 index 00000000..6b1f02a8 --- /dev/null +++ b/web/_next/static/chunks/app/layout-c818df4fd8d97609.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{31132:function(e,t,r){Promise.resolve().then(r.t.bind(r,72998,23)),Promise.resolve().then(r.bind(r,50261)),Promise.resolve().then(r.t.bind(r,12148,23))},67998:function(e,t,r){"use strict";r.d(t,{DN:function(){return n},SN:function(){return useWebsocketMessageListener},oJ:function(){return o}});var s=r(2265),a=r(77665);let n=(0,s.createContext)(null),o=(0,a.cn)(null);function useWebsocketMessageListener(e){let{type:t,onMessage:r}=e,a=(0,s.useContext)(n);return(0,s.useEffect)(()=>{if(a){let messageHandler=e=>{try{let s=JSON.parse(e.data);s.type&&s.type===t&&r(s.payload)}catch(e){}};return a.addEventListener("message",messageHandler),()=>{a.removeEventListener("message",messageHandler)}}},[a,r]),null}},50261:function(e,t,r){"use strict";r.r(t),r.d(t,{ClientProviders:function(){return ClientProviders}});var s=r(57437),a=r(2265),n=r(54487),o=r(77665),i=r(6435),l=r(23890),c=r(43059),d=r(38038),u=r(86679),p=r(24033),m=r(96061);let x=(0,n.xH)({paper:(0,m.j)(["UI-Paper__paper","overflow-hidden rounded-lg bg-white border border-[--border] bg-[--paper]"])}),h=a.forwardRef((e,t)=>{let{children:r,paperClassName:a,className:o,...i}=e;return(0,s.jsx)("div",{className:(0,n.cn)(x.paper(),a,o),...i,ref:t,children:r})});h.displayName="Paper";let g=(0,n.xH)({card:(0,m.j)(["UI-Paper__card"]),header:(0,m.j)(["UI-Paper__header","p-4"]),footer:(0,m.j)(["UI-Paper__footer","p-4"]),body:(0,m.j)(["UI-Paper__footer","p-4"])}),f=a.forwardRef((e,t)=>{let{children:r,cardClassName:a,headerClassName:o,footerClassName:i,bodyClassName:l,paperClassName:c,className:d,header:u,footer:p,...m}=e;return(0,s.jsxs)(h,{className:(0,n.cn)(c,a,d),children:[u&&(0,s.jsx)("div",{className:(0,n.cn)(g.header(),o),children:u}),(0,s.jsx)("div",{className:(0,n.cn)(g.body(),l),children:r}),p&&(0,s.jsx)("div",{className:(0,n.cn)(g.footer(),i),children:p})]})});f.displayName="Card";var b=r(93054),y=r(97622),j=r(59123),v=r(16691),w=r.n(v),P=r(11305);function LoadingOverlayWithLogo(){return(0,s.jsx)(P.fz,{hideSpinner:!0,children:(0,s.jsx)(w(),{src:"/icons/android-chrome-192x192.png",alt:"Loading...",priority:!0,width:80,height:80,className:"animate-bounce"})})}var N=r(751),_=r(98602),L=r(26345),S=r(63479),k=r(66834),C=r(34813),A=r(82777),E=r(93722),H=r(13461),T=r(13986),U=r(51472),I=r(57638);function GettingStarted(e){let{status:t}=e,r=(0,p.useRouter)(),{getDefaultVlcPath:n,getDefaultQBittorrentPath:o}=(0,_.$g)(),i=(0,l.b9)(N.X),{mutate:c,data:d,isPending:u,isSuccess:m}=(0,U.$U)({endpoint:I.E.SETTINGS,mutationKey:["patch-settings"],method:"patch"});(0,a.useEffect)(()=>{!u&&(null==d?void 0:d.settings)&&(i(d),r.push("/"))},[d,u]),(0,a.useEffect)(()=>{m&&r.push("/")},[m]);let x=(0,a.useMemo)(()=>n(t.os),[t.os]),h=(0,a.useMemo)(()=>o(t.os),[t.os]);return u?(0,s.jsx)(LoadingOverlayWithLogo,{}):d?void 0:(0,s.jsxs)("div",{className:"container max-w-5xl py-10",children:[(0,s.jsx)("div",{className:"mb-4 flex justify-center w-full",children:(0,s.jsx)("img",{src:"/logo.png",alt:"logo",className:"w-24 h-auto"})}),(0,s.jsx)(f,{className:"md:py-2 relative",children:(0,s.jsx)(b.ce,{children:(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)("h3",{children:"Getting started"}),(0,s.jsx)("em",{className:"text-[--muted]",children:"These settings can be modified later."}),(0,s.jsxs)(L.Fu,{schema:S.R,onSubmit:e=>{c({library:{libraryPath:e.libraryPath},mediaPlayer:{host:e.mediaPlayerHost,defaultPlayer:e.defaultPlayer,vlcPort:e.vlcPort,vlcUsername:e.vlcUsername||"",vlcPassword:e.vlcPassword,vlcPath:e.vlcPath||"",mpcPort:e.mpcPort,mpcPath:e.mpcPath||""},torrent:{qbittorrentPath:e.qbittorrentPath,qbittorrentHost:e.qbittorrentHost,qbittorrentPort:e.qbittorrentPort,qbittorrentPassword:e.qbittorrentPassword,qbittorrentUsername:e.qbittorrentUsername}})},defaultValues:{mediaPlayerHost:"127.0.0.1",vlcPort:8080,mpcPort:13579,vlcPath:x,qbittorrentPath:h,qbittorrentHost:"127.0.0.1",qbittorrentPort:8081,mpcPath:"C:/Program Files/MPC-HC/mpc-hc64.exe"},stackClassName:"space-y-4",children:[(0,s.jsx)(L.gN.DirectorySelector,{name:"libraryPath",label:"Library folder",leftIcon:(0,s.jsx)(k.T,{}),shouldExist:!0}),(0,s.jsx)(C.iz,{}),(0,s.jsx)(L.gN.Select,{name:"defaultPlayer",label:"Default player",leftIcon:(0,s.jsx)(A.E,{}),options:[{label:"VLC",value:"vlc"},{label:"MPC-HC (Windows only)",value:"mpc-hc"}],help:"Player that will be used to open files and track your progress automatically."}),(0,s.jsx)(L.gN.Text,{name:"mediaPlayerHost",label:"Host (VLC/MPC-HC)"}),(0,s.jsxs)("h3",{className:"flex gap-2 items-center",children:[(0,s.jsx)(E.p,{})," VLC"]}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(L.gN.Text,{name:"vlcUsername",label:"Username"}),(0,s.jsx)(L.gN.Text,{name:"vlcPassword",label:"Password"}),(0,s.jsx)(L.gN.Number,{name:"vlcPort",label:"Port",discrete:!0})]}),(0,s.jsx)(L.gN.Text,{name:"vlcPath",label:"Executable"}),(0,s.jsxs)("h3",{className:"flex gap-2 items-center",children:[(0,s.jsx)(H.n,{})," MPC-HC"]}),(0,s.jsx)("div",{className:"flex gap-4",children:(0,s.jsx)(L.gN.Number,{name:"mpcPort",label:"Port",discrete:!0})}),(0,s.jsx)(L.gN.Text,{name:"mpcPath",label:"Executable"}),(0,s.jsxs)("h3",{className:"flex gap-2 items-center",children:[(0,s.jsx)(T.a,{})," qBittorrent"]}),(0,s.jsx)(L.gN.Text,{name:"qbittorrentHost",label:"Host"}),(0,s.jsxs)("div",{className:"flex gap-4",children:[(0,s.jsx)(L.gN.Text,{name:"qbittorrentUsername",label:"Username"}),(0,s.jsx)(L.gN.Text,{name:"qbittorrentPassword",label:"Password"}),(0,s.jsx)(L.gN.Number,{name:"qbittorrentPort",label:"Port",discrete:!0})]}),(0,s.jsx)(L.gN.Text,{name:"qbittorrentPath",label:"Executable"}),(0,s.jsx)(L.gN.Submit,{role:"submit",showLoadingOverlayOnSuccess:!0,isLoading:u})]})]})})}),(0,s.jsx)("p",{className:"text-[--muted] mt-5 text-center",children:"Made by 5rahim"})]})}var O=r(59770),q=r.n(O);function AuthWrapper(e){let{children:t}=e,r=(0,p.usePathname)(),n=(0,p.useRouter)(),[o,i]=(0,l.KO)(N.X),{data:c,isLoading:d}=(0,U.tZ)({endpoint:I.E.STATUS,queryKey:["status"]});return((0,a.useEffect)(()=>{if(!d){if(console.log(c),(null==c?void 0:c.settings)||n.push("/getting-started"),null==c?void 0:c.user){var e,t;q().set("anilistToken",null!==(t=null==c?void 0:null===(e=c.user)||void 0===e?void 0:e.token)&&void 0!==t?t:"",{expires:2592e3})}else q().remove("anilistToken");i(c)}},[c]),r.startsWith("/auth/callback"))?t:d||!o?(0,s.jsx)(LoadingOverlayWithLogo,{}):(null==o?void 0:o.settings)?(null==o?void 0:o.user)?t:(0,s.jsx)("div",{className:"container max-w-3xl py-10",children:(0,s.jsx)(f,{className:"md:py-10",children:(0,s.jsx)(b.ce,{children:(0,s.jsxs)("div",{className:"text-center space-y-4",children:[(0,s.jsx)("div",{className:"mb-4 flex justify-center w-full",children:(0,s.jsx)("img",{src:"/logo.png",alt:"logo",className:"w-24 h-auto"})}),(0,s.jsx)("h3",{children:"Welcome!"}),(0,s.jsx)(y.zx,{onClick:()=>{window.open(j.kd,"_self")},leftIcon:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:"24",height:"24",viewBox:"0 0 24 24",role:"img",children:(0,s.jsx)("path",{d:"M6.361 2.943 0 21.056h4.942l1.077-3.133H11.4l1.052 3.133H22.9c.71 0 1.1-.392 1.1-1.101V17.53c0-.71-.39-1.101-1.1-1.101h-6.483V4.045c0-.71-.392-1.102-1.101-1.102h-2.422c-.71 0-1.101.392-1.101 1.102v1.064l-.758-2.166zm2.324 5.948 1.688 5.018H7.144z"})}),intent:"primary",size:"xl",children:"Log in with AniList"})]})})})}):(0,s.jsx)(GettingStarted,{status:o})}var z=r(67998),W=r(95637);function WebsocketProvider(e){let{children:t}=e,[r,n]=(0,l.KO)(z.oJ),[o,i]=(0,a.useState)(!1);return(0,W.Z)(()=>{function connectWebSocket(){let e=new WebSocket("ws://127.0.0.1:43210/events");return e.addEventListener("open",()=>{console.log("WebSocket connection opened"),i(!0)}),e.addEventListener("close",()=>{console.log("WebSocket connection closed"),i(!1),setTimeout(connectWebSocket,3e3)}),n(e),e}return r&&r.readyState!==WebSocket.CLOSED||connectWebSocket(),()=>{r&&(r.close(),i(!1))}}),(0,s.jsxs)(z.DN.Provider,{value:r,children:[!o&&(0,s.jsxs)("div",{className:"fixed right-4 bottom-4 bg-gray-800 border border-[--border] text-gray-100 py-3 px-5 font-semibold rounded-md z-[100] flex gap-2 items-center",children:[(0,s.jsx)(P.$j,{className:"w-5 h-5"}),"Websocket connection"]}),t]})}let R=new c.S({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:0}}}),ClientProviders=e=>{let{children:t}=e,[r]=a.useState((0,o.MT)());return(0,s.jsx)(i.f,{attribute:"class",defaultTheme:"dark",forcedTheme:"dark",children:(0,s.jsx)(l.zt,{store:r,children:(0,s.jsx)(d.aH,{client:R,children:(0,s.jsxs)(n.JP,{config:{locale:"en",countryLocale:"en-US",country:"US"},children:[(0,s.jsx)(WebsocketProvider,{children:(0,s.jsx)(AuthWrapper,{children:t})}),(0,s.jsx)(u.VW,{})]})})})})}},93054:function(e,t,r){"use strict";r.d(t,{LN:function(){return j},RD:function(){return f},ce:function(){return y},S8:function(){return _},FV:function(){return AppSidebarProvider},AO:function(){return L}});var s=r(57437),a=r(2265),n=r(54487),o=r(96061);let i=(0,n.xH)({root:(0,o.j)(["UI-AppLayout__root","flex w-full min-h-screen group","group-[.with-sidebar]:group-[.sidebar-slim]:md:pl-20","group-[.with-sidebar]:group-[.sidebar-sm]:md:pl-48","group-[.with-sidebar]:group-[.sidebar-md]:md:pl-64","group-[.with-sidebar]:group-[.sidebar-lg]:md:pl-[20rem]","group-[.with-sidebar]:group-[.sidebar-xl]:md:pl-[25rem]"],{variants:{withSidebar:{true:"flex-row with-sidebar",false:"flex-col"},sidebarSize:{slim:"sidebar-slim",sm:"sidebar-sm",md:"sidebar-md",lg:"sidebar-lg",xl:"sidebar-xl"}},defaultVariants:{withSidebar:!1,sidebarSize:"md"}})}),l=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutHeader__root","block w-full"])}),c=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutSidebar__root","hidden md:fixed md:inset-y-0 md:flex md:flex-col grow-0 shrink-0 basis-0 z-[10]","group-[.sidebar-slim]:md:w-20","group-[.sidebar-sm]:md:w-48","group-[.sidebar-md]:md:w-64","group-[.sidebar-lg]:md:w-[20rem]","group-[.sidebar-xl]:md:w-[25rem]"])}),d=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutContent__root"])}),u=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutFooter__root"])}),p=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutStack__root"],{variants:{spacing:{sm:"space-y-2",md:"space-y-4",lg:"space-y-8",xl:"space-y-10"}},defaultVariants:{spacing:"md"}})}),m=(0,n.xH)({root:(0,o.j)(["UI-AppLayoutGrid__root","block"],{variants:{breakBelow:{sm:"sm:grid sm:space-y-0",md:"md:grid md:space-y-0",lg:"lg:grid lg:space-y-0",xl:"xl:grid xl:space-y-0"},spacing:{sm:"space-y-2 gap-2",md:"space-y-4 gap-4",lg:"space-y-8 gap-8",xl:"space-y-10 gap-10"},cols:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6"}},defaultVariants:{breakBelow:"xl",spacing:"md",cols:3}})}),_AppLayout=e=>{let{children:t,rootClassName:r,className:a,ref:o,withSidebar:l,sidebarSize:c,...d}=e;return(0,s.jsx)("div",{className:(0,n.cn)(i.root({withSidebar:l,sidebarSize:c}),r,a),...d,ref:o,children:t})};_AppLayout.displayName="AppLayout";let x=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:o,...i}=e;return(0,s.jsx)("header",{className:(0,n.cn)(l.root(),a,o),...i,ref:t,children:r})});x.displayName="AppLayoutHeader";let h=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:o,...i}=e;return(0,s.jsx)("aside",{className:(0,n.cn)(c.root(),a,o),...i,ref:t,children:r})});h.displayName="AppLayoutSidebar";let g=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:o,...i}=e;return(0,s.jsx)("main",{className:(0,n.cn)(d.root(),a,o),...i,ref:t,children:r})});g.displayName="AppLayoutContent";let f=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:o,breakBelow:i,cols:l,spacing:c,...d}=e;return(0,s.jsx)("section",{className:(0,n.cn)(m.root({breakBelow:i,cols:l,spacing:c}),a,o),...d,ref:t,children:r})});f.displayName="AppLayoutGrid";let b=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:o,...i}=e;return(0,s.jsx)("footer",{className:(0,n.cn)(u.root(),a,o),...i,ref:t,children:r})});b.displayName="AppLayoutFooter";let y=a.forwardRef((e,t)=>{let{children:r,rootClassName:a,className:o,spacing:i,...l}=e;return(0,s.jsx)("div",{className:(0,n.cn)(p.root({spacing:i}),a,o),...l,ref:t,children:r})});y.displayName="AppLayoutStack",_AppLayout.Header=x,_AppLayout.Sidebar=h,_AppLayout.Content=g,_AppLayout.Footer=b,_AppLayout.Grid=f,_AppLayout.Stack=y;let j=(0,n.Fm)(_AppLayout);j.displayName="AppLayout";var v=r(33538);let w=a.createContext({open:!1,setOpen:()=>{}}),useAppSidebarContext=()=>a.useContext(w),P=(0,n.xH)({sidebar:(0,o.j)(["UI-AppSidebar__sidebar","flex flex-grow flex-col"])}),N=(0,n.xH)({trigger:(0,o.j)(["UI-AppSidebarTrigger__trigger","block md:hidden","items-center justify-center rounded-[--radius] p-2 text-[--muted] hover:bg-[--highlight] hover:text-[--text-color]","focus:outline-none focus:ring-2 focus:ring-inset focus:ring-[--ring]"])}),_=a.forwardRef((e,t)=>{let{children:r,sidebarClassName:a,className:o,...i}=e,l=useAppSidebarContext();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,n.cn)(P.sidebar(),a),...i,ref:t,children:(0,s.jsx)("div",{className:(0,n.cn)(o),children:r})}),(0,s.jsx)(v.dy,{isOpen:l.open,onClose:()=>l.setOpen(!1),placement:"left",isClosable:!0,className:"md:hidden",containerClassName:"w-[85%]",bodyClassName:(0,n.cn)("p-0 md:p-0",o),headerClassName:"absolute p-2 sm:p-2 md:p-2 lg:p-2 right-0",closeButtonIntent:"white-outline",children:r})]})});_.displayName="AppSidebar";let L=a.forwardRef((e,t)=>{let{children:r,triggerClassName:a,className:o,...i}=e,l=useAppSidebarContext();return(0,s.jsxs)("button",{className:(0,n.cn)(N.trigger(),a,o),onClick:()=>l.setOpen(e=>!e),...i,ref:t,children:[(0,s.jsx)("span",{className:"sr-only",children:"Open main menu"}),l.open?(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,s.jsx)("line",{x1:"18",x2:"6",y1:"6",y2:"18"}),(0,s.jsx)("line",{x1:"6",x2:"18",y1:"6",y2:"18"})]}):(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"block h-6 w-6",children:[(0,s.jsx)("line",{x1:"4",x2:"20",y1:"12",y2:"12"}),(0,s.jsx)("line",{x1:"4",x2:"20",y1:"6",y2:"6"}),(0,s.jsx)("line",{x1:"4",x2:"20",y1:"18",y2:"18"})]})]})});L.displayName="AppSidebarTrigger";let AppSidebarProvider=e=>{let{children:t,open:r}=e,[n,o]=(0,a.useState)(null!=r&&r);return(0,a.useEffect)(()=>{void 0!==r&&o(r)},[r]),(0,s.jsx)(w.Provider,{value:{open:n,setOpen:o},children:t})}},86679:function(e,t,r){"use strict";r.d(t,{VW:function(){return ToastProvider},pm:function(){return useToast}});var s=r(57437),a=r(9805),n=r(2265),o=r(5925),i=r(54487),l=r(97622),c=r(96061),d=r(11305);let u=(0,i.xH)({toast:(0,c.j)(["UI-Toast__toast","relative transform py-2 px-5 flex rounded-lg shadow-md","data-[type=error]:bg-red-500 data-[type=error]:text-white","data-[type=success]:bg-green-500 data-[type=success]:text-white","data-[type=loading]:bg-gray-50 dark:data-[type=loading]:bg-gray-800 data-[type=error]:text-white"]),content:(0,c.j)(["UI-Toast__content","h-full flex items-center"]),icon:(0,c.j)(["UI-Toast__icon","w-5 h-5"]),closeButton:(0,c.j)(["UI-Toast__closeButton","absolute top-1 right-1"])}),p=n.forwardRef((e,t)=>{let{t:r,toastClassName:n,closeButtonClassName:c,contentClassName:p,iconClassName:m}=e;return(0,s.jsxs)(a.u,{appear:!0,show:r.visible,className:(0,i.cn)(u.toast(),n),"data-type":r.type,enter:"transition-all duration-150",enterFrom:"opacity-0 scale-50",enterTo:"opacity-100 scale-100",leave:"transition-all duration-150",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-75",children:[(0,s.jsxs)("div",{className:(0,i.cn)(u.content(),p),children:["loading"!==r.type&&(0,s.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:(0,i.cn)(u.icon(),m),children:["error"===r.type&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"15",x2:"9",y1:"9",y2:"15"}),(0,s.jsx)("line",{x1:"9",x2:"15",y1:"9",y2:"15"})]}),"success"===r.type&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),(0,s.jsx)("path",{d:"m9 12 2 2 4-4"})]})]}),"loading"===r.type&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(d.$j,{className:(0,i.cn)(u.icon(),m)})})]}),(0,s.jsx)("p",{className:"py-1 px-2 pr-6",children:(0,o.GK)(r.message,r)}),(0,s.jsx)(l.PZ,{className:(0,i.cn)(u.closeButton(),c),size:"sm",intent:"loading"!==r.type?"white-basic":"gray-basic",onClick:()=>o.ZP.dismiss(r.id)})]})}),ToastProvider=()=>(0,s.jsx)(o.x7,{children:e=>(0,s.jsx)(p,{t:e})}),useToast=()=>({success:e=>{o.ZP.success(null!=e?e:"")},error:e=>{o.ZP.error(null!=e?e:"")}})},59123:function(e,t,r){"use strict";r.d(t,{kd:function(){return s}});let s="https://anilist.co/api/v2/oauth/authorize?client_id=15168&response_type=token"},98602:function(e,t,r){"use strict";r.d(t,{$g:function(){return useDefaultSettingsPaths},VP:function(){return useOpenDefaultMediaPlayer},cg:function(){return useOpenInExplorer},tB:function(){return useOpenMediaEntryInExplorer}});var s=r(51472),a=r(57638);function useDefaultSettingsPaths(){return{getDefaultVlcPath:e=>{switch(e){case"windows":default:return"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";case"linux":return"/usr/bin/vlc";case"darwin":return"/Applications/VLC.app/Contents/MacOS/VLC"}},getDefaultQBittorrentPath:e=>{switch(e){case"windows":default:return"C:/Program Files/qBittorrent/qbittorrent.exe";case"linux":return"/usr/bin/qbittorrent";case"darwin":return"/Applications/Client.app/Contents/MacOS/qBittorrent"}}}}function useOpenDefaultMediaPlayer(){let{mutate:e}=(0,s.$U)({endpoint:a.E.START_MEDIA_PLAYER,mutationKey:["open-default-media-player"]});return{startDefaultMediaPlayer:()=>e()}}function useOpenMediaEntryInExplorer(){let{mutate:e}=(0,s.$U)({endpoint:a.E.OPEN_MEDIA_ENTRY_IN_EXPLORER,mutationKey:["open-media-entry-in-explorer"]});return{openEntryInExplorer:t=>e({mediaId:t})}}function useOpenInExplorer(){let{mutate:e}=(0,s.$U)({endpoint:a.E.OPEN_IN_EXPLORER,mutationKey:["open-in-explorer"]});return{openInExplorer:t=>e({path:t})}}},63479:function(e,t,r){"use strict";r.d(t,{R:function(){return a}});var s=r(74578);let a=s.z.object({libraryPath:s.z.string().min(1),defaultPlayer:s.z.string(),mediaPlayerHost:s.z.string(),vlcUsername:s.z.string().optional().default(""),vlcPassword:s.z.string().optional().default(""),vlcPort:s.z.number(),vlcPath:s.z.string().optional().default(""),mpcPort:s.z.number(),mpcPath:s.z.string().optional().default(""),qbittorrentPath:s.z.string().optional().default(""),qbittorrentHost:s.z.string(),qbittorrentPort:s.z.number(),qbittorrentUsername:s.z.string().optional().default(""),qbittorrentPassword:s.z.string().optional().default(""),hideAudienceScore:s.z.boolean().optional().default(!1)})},12148:function(){}},function(e){e.O(0,[492,890,999,685,702,17,898,322,912,430,345,971,472,744],function(){return e(e.s=31132)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/fd9d1056-b5854c012adb4904.js b/web/_next/static/chunks/fd9d1056-b5854c012adb4904.js new file mode 100644 index 00000000..3a67b1f2 --- /dev/null +++ b/web/_next/static/chunks/fd9d1056-b5854c012adb4904.js @@ -0,0 +1,9 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[971],{84417:function(n,a,i){/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var o,s=i(2265),m=i(8261),y={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function t(n){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+n,i=1;iP||(n.current=x[P],x[P]=null,P--)}function E(n,a){x[++P]=n.current,n.current=a}var N=Symbol.for("react.element"),j=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),F=Symbol.for("react.context"),O=Symbol.for("react.server_context"),A=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var X=Symbol.for("react.offscreen"),G=Symbol.for("react.legacy_hidden"),J=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var ee=Symbol.iterator;function Da(n){return null===n||"object"!=typeof n?null:"function"==typeof(n=ee&&n[ee]||n["@@iterator"])?n:null}var et=ka(null),en=ka(null),er=ka(null),ea=ka(null),ei={$$typeof:F,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};function Ja(n,a){switch(E(er,a),E(en,n),E(et,null),n=a.nodeType){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?Ka(a):0;break;default:if(a=(n=8===n?a.parentNode:a).tagName,n=n.namespaceURI)a=La(n=Ka(n),a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}D(et),E(et,a)}function Ma(){D(et),D(en),D(er)}function Na(n){null!==n.memoizedState&&E(ea,n);var a=et.current,i=La(a,n.type);a!==i&&(E(en,n),E(et,i))}function Oa(n){en.current===n&&(D(et),D(en)),ea.current===n&&(D(ea),ei._currentValue=null)}var eu=m.unstable_scheduleCallback,es=m.unstable_cancelCallback,ed=m.unstable_shouldYield,ep=m.unstable_requestPaint,em=m.unstable_now,eb=m.unstable_getCurrentPriorityLevel,ey=m.unstable_ImmediatePriority,ev=m.unstable_UserBlockingPriority,ek=m.unstable_NormalPriority,ew=m.unstable_LowPriority,eS=m.unstable_IdlePriority,eE=null,eC=null;function bb(n){if(eC&&"function"==typeof eC.onCommitFiberRoot)try{eC.onCommitFiberRoot(eE,n,void 0,128==(128&n.current.flags))}catch(n){}}var ex=Math.clz32?Math.clz32:cb,ez=Math.log,eP=Math.LN2;function cb(n){return 0==(n>>>=0)?32:31-(ez(n)/eP|0)|0}var eN=128,eT=4194304;function ib(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&n;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&n;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function jb(n,a){var i=n.pendingLanes;if(0===i)return 0;var o=0,s=n.suspendedLanes;n=n.pingedLanes;var m=134217727&i;return 0!==m?0!=(i=m&~s)?o=ib(i):0!=(n&=m)&&(o=ib(n)):0!=(i&=~s)?o=ib(i):0!==n&&(o=ib(n)),0===o?0:0!==a&&a!==o&&0==(a&s)&&((s=o&-o)>=(n=a&-a)||32===s&&0!=(4194176&n))?a:o}function kb(n,a){switch(n){case 1:case 2:case 4:case 8:return a+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;default:return -1}}function lb(n,a){return n.errorRecoveryDisabledLanes&a?0:0!=(n=-536870913&n.pendingLanes)?n:536870912&n?536870912:0}function mb(){var n=eT;return 0==(62914560&(eT<<=1))&&(eT=4194304),n}function nb(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function ob(n,a){n.pendingLanes|=a,268435456!==a&&(n.suspendedLanes=0,n.pingedLanes=0)}function pb(n,a,i){var o=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=a,n.entangledLanes&=a,n.errorRecoveryDisabledLanes&=a,n.shellSuspendCounter=0,a=n.entanglements;for(var s=n.expirationTimes,m=n.hiddenUpdates;0--k||m[v]!==y[k]){var S="\n"+m[v].replace(" at new "," at ");return n.displayName&&S.includes("")&&(S=S.replace("",n.displayName)),S}while(1<=v&&0<=k);break}}}finally{eH=!1,Error.prepareStackTrace=i}return(n=n?n.displayName||n.name:"")?ac(n):""}function dc(n){switch(n.tag){case 26:case 27:case 5:return ac(n.type);case 16:return ac("Lazy");case 13:return ac("Suspense");case 19:return ac("SuspenseList");case 0:case 2:case 15:return n=cc(n.type,!1);case 11:return n=cc(n.type.render,!1);case 1:return n=cc(n.type,!0);default:return""}}function ec(n){if(null==n)return null;if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case L:return"Fragment";case j:return"Portal";case M:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case Q:return"SuspenseList";case J:return"Cache"}if("object"==typeof n)switch(n.$$typeof){case F:return(n.displayName||"Context")+".Consumer";case R:return(n._context.displayName||"Context")+".Provider";case A:var a=n.render;return(n=n.displayName)||(n=""!==(n=a.displayName||a.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case $:return null!==(a=n.displayName||null)?a:ec(n.type)||"Memo";case H:a=n._payload,n=n._init;try{return ec(n(a))}catch(n){}}return null}function fc(n){var a=n.type;switch(n.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=(n=a.render).displayName||n.name||"",a.displayName||(""!==n?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ec(a);case 8:return a===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}function gc(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":case"object":return n;default:return""}}function hc(n){var a=n.type;return(n=n.nodeName)&&"input"===n.toLowerCase()&&("checkbox"===a||"radio"===a)}function ic(n){var a=hc(n)?"checked":"value",i=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),o=""+n[a];if(!n.hasOwnProperty(a)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set){var s=i.get,m=i.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return s.call(this)},set:function(n){o=""+n,m.call(this,n)}}),Object.defineProperty(n,a,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(n){o=""+n},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function jc(n){n._valueTracker||(n._valueTracker=ic(n))}function kc(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),o="";return n&&(o=hc(n)?n.checked?"true":"false":n.value),(n=o)!==i&&(a.setValue(n),!0)}function lc(n){if(void 0===(n=n||("undefined"!=typeof document?document:void 0)))return null;try{return n.activeElement||n.body}catch(a){return n.body}}var eZ=/[\n"\\]/g;function nc(n){return n.replace(eZ,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function oc(n,a,i,o,s,m,y,v){n.name="",null!=y&&"function"!=typeof y&&"symbol"!=typeof y&&"boolean"!=typeof y?n.type=y:n.removeAttribute("type"),null!=a?"number"===y?(0===a&&""===n.value||n.value!=a)&&(n.value=""+gc(a)):n.value!==""+gc(a)&&(n.value=""+gc(a)):"submit"!==y&&"reset"!==y||n.removeAttribute("value"),null!=a?pc(n,y,gc(a)):null!=i?pc(n,y,gc(i)):null!=o&&n.removeAttribute("value"),null==s&&null!=m&&(n.defaultChecked=!!m),null!=s&&(n.checked=s&&"function"!=typeof s&&"symbol"!=typeof s),null!=v&&"function"!=typeof v&&"symbol"!=typeof v&&"boolean"!=typeof v?n.name=""+gc(v):n.removeAttribute("name")}function qc(n,a,i,o,s,m,y,v){if(null!=m&&"function"!=typeof m&&"symbol"!=typeof m&&"boolean"!=typeof m&&(n.type=m),null!=a||null!=i){if(!("submit"!==m&&"reset"!==m||null!=a))return;i=null!=i?""+gc(i):"",a=null!=a?""+gc(a):i,v||a===n.value||(n.value=a),n.defaultValue=a}o="function"!=typeof(o=null!=o?o:s)&&"symbol"!=typeof o&&!!o,n.checked=v?n.checked:!!o,n.defaultChecked=!!o,null!=y&&"function"!=typeof y&&"symbol"!=typeof y&&"boolean"!=typeof y&&(n.name=y)}function pc(n,a,i){"number"===a&&lc(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}var eK=Array.isArray;function sc(n,a,i,o){if(n=n.options,a){a={};for(var s=0;s"+a.valueOf().toString()+"",a=rS.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;a.firstChild;)n.appendChild(a.firstChild)}}var eX=wc;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(eX=function(n,a){return MSApp.execUnsafeLocalFunction(function(){return wc(n,a)})});var eG=eX;function zc(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&3===i.nodeType){i.nodeValue=a;return}}n.textContent=a}var eJ=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Bc(n,a,i){var o=0===a.indexOf("--");null==i||"boolean"==typeof i||""===i?o?n.setProperty(a,""):"float"===a?n.cssFloat="":n[a]="":o?n.setProperty(a,i):"number"!=typeof i||0===i||eJ.has(a)?"float"===a?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function Cc(n,a,i){if(null!=a&&"object"!=typeof a)throw Error(t(62));if(n=n.style,null!=i){for(var o in i)!i.hasOwnProperty(o)||null!=a&&a.hasOwnProperty(o)||(0===o.indexOf("--")?n.setProperty(o,""):"float"===o?n.cssFloat="":n[o]="");for(var s in a)o=a[s],a.hasOwnProperty(s)&&i[s]!==o&&Bc(n,s,o)}else for(var m in a)a.hasOwnProperty(m)&&Bc(n,m,a[m])}function Dc(n){if(-1===n.indexOf("-"))return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),e1=null;function Gc(n){return(n=n.target||n.srcElement||window).correspondingUseElement&&(n=n.correspondingUseElement),3===n.nodeType?n.parentNode:n}var e2=null,e3=null;function Jc(n){var a=Jb(n);if(a&&(n=a.stateNode)){var i=Lb(n);switch(n=a.stateNode,a.type){case"input":if(oc(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,"radio"===i.type&&null!=a){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+nc(""+a)+'"][type="radio"]'),a=0;a>=y,s-=y,ts=1<<32-ex(a)+s|i<k?(S=v,v=null):S=v.sibling;var C=r(a,v,o[k],s);if(null===C){null===v&&(v=S);break}n&&v&&null===C.alternate&&b(a,v),i=f(C,i,k),null===y?m=C:y.sibling=C,y=C,v=S}if(k===o.length)return c(a,v),ty&&nd(a,k),m;if(null===v){for(;kk?(S=v,v=null):S=v.sibling;var x=r(a,v,C.value,s);if(null===x){null===v&&(v=S);break}n&&v&&null===x.alternate&&b(a,v),i=f(x,i,k),null===y?m=x:y.sibling=x,y=x,v=S}if(C.done)return c(a,v),ty&&nd(a,k),m;if(null===v){for(;!C.done;k++,C=o.next())null!==(C=w(a,C.value,s))&&(i=f(C,i,k),null===y?m=C:y.sibling=C,y=C);return ty&&nd(a,k),m}for(v=d(a,v);!C.done;k++,C=o.next())null!==(C=u(v,a,k,C.value,s))&&(n&&null!==C.alternate&&v.delete(null===C.key?k:C.key),i=f(C,i,k),null===y?m=C:y.sibling=C,y=C);return n&&v.forEach(function(n){return b(a,n)}),ty&&nd(a,k),m}function U(n,a,i,o){if("object"==typeof i&&null!==i&&i.type===L&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case N:e:{for(var s=i.key,m=a;null!==m;){if(m.key===s){if((s=i.type)===L){if(7===m.tag){c(n,m.sibling),(a=e(m,i.props.children)).return=n,n=a;break e}}else if(m.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===H&&ve(s)===m.type){c(n,m.sibling),(a=e(m,i.props)).ref=te(n,m,i),a.return=n,n=a;break e}c(n,m);break}b(n,m),m=m.sibling}i.type===L?((a=Be(i.props.children,n.mode,o,i.key)).return=n,n=a):((o=ze(i.type,i.key,i.props,null,null,n.mode,o)).ref=te(n,a,i),o.return=n,n=o)}return g(n);case j:e:{for(m=i.key;null!==a;){if(a.key===m){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){c(n,a.sibling),(a=e(a,i.children||[])).return=n,n=a;break e}c(n,a);break}b(n,a),a=a.sibling}(a=Ae(i,n.mode,o)).return=n,n=a}return g(n);case H:return V(n,a,(m=i._init)(i._payload),o)}if(eK(i))return z(n,a,i,o);if(Da(i))return B(n,a,i,o);if("function"==typeof i.then)return U(n,a,se(i),o);if(i.$$typeof===F||i.$$typeof===O)return U(n,a,Ce(n,i,o),o);ue(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==a&&6===a.tag?(c(n,a.sibling),(a=e(a,i)).return=n):(c(n,a),(a=ye(i,n.mode,o)).return=n),g(n=a)):c(n,a)}function V(n,a,i,o){return tL=0,n=U(n,a,i,o),tT=null,n}return V}var t_=we(!0),tD=we(!1),tM=ka(null),tR=ka(0);function He(n,a){E(tR,n=n0),E(tM,a),n0=n|a.baseLanes}function Je(){E(tR,n0),E(tM,tM.current)}function Ke(){n0=tR.current,D(tM),D(tR)}var tF=ka(null),tO=null;function Ne(n){var a=n.alternate;E(tA,1&tA.current),E(tF,n),null===tO&&(null===a||null!==tM.current?tO=n:null!==a.memoizedState&&(tO=n))}function Pe(n){if(22===n.tag){if(E(tA,tA.current),E(tF,n),null===tO){var a=n.alternate;null!==a&&null!==a.memoizedState&&(tO=n)}}else Qe(n)}function Qe(){E(tA,tA.current),E(tF,tF.current)}function Re(n){D(tF),tO===n&&(tO=null),D(tA)}var tA=ka(0);function Se(n){for(var a=n;null!==a;){if(13===a.tag){var i=a.memoizedState;if(null!==i&&(null===(i=i.dehydrated)||"$?"===i.data||"$!"===i.data))return a}else if(19===a.tag&&void 0!==a.memoizedProps.revealOrder){if(0!=(128&a.flags))return a}else if(null!==a.child){a.child.return=a,a=a.child;continue}if(a===n)break;for(;null===a.sibling;){if(null===a.return||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var tI=null,tU=null,tB=!1,tW=!1,tQ=!1,t$=0;function Ze(n){n!==tU&&null===n.next&&(null===tU?tI=tU=n:tU=tU.next=n),tW=!0,tB||(tB=!0,$e(af))}function bf(n){if(!tQ&&tW){var a=null;tQ=!0;do for(var i=!1,o=tI;null!==o;){if(!n||0===o.tag){var s=nK,m=jb(o,o===nH?s:0);if(0!=(3&m))try{if(i=!0,s=o,0!=(6&nq))throw Error(t(327));if(!cf()){var y=df(s,m);if(0!==s.tag&&2===y){var v=m,k=lb(s,v);0!==k&&(m=k,y=ef(s,v,k))}if(1===y)throw v=n2,gf(s,0),hf(s,m,0),Ze(s),v;6===y?hf(s,m,0):(s.finishedWork=s.current.alternate,s.finishedLanes=m,jf(s,n7,rt,n8))}Ze(s)}catch(n){null===a?a=[n]:a.push(n)}}o=o.next}while(i);if(tQ=!1,null!==a){if(1m?m:8;var y=tZ.transition;tZ.transition={},Mg(n,!1,a,i);try{var v=s();if(null!==v&&"object"==typeof v&&"function"==typeof v.then){var k=wf(v,o);Ng(n,a,k)}else{var S=zf(v,o);Ng(n,a,S)}}catch(i){Ng(n,a,{then:function(){},status:"rejected",reason:i})}finally{eL=m,tZ.transition=y}}function Og(n,a,i,o){if(5!==n.tag)throw Error(t(476));if(null===n.memoizedState){var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cg,lastRenderedState:C},m=s;s={memoizedState:C,baseState:C,baseQueue:null,queue:s,next:null},n.memoizedState=s;var y=n.alternate;null!==y&&(y.memoizedState=s)}else m=n.memoizedState.queue;Lg(n,m,a,C,function(){return i(o)})}function Pg(){var n=bg(ei);return null!==n?n:C}function Qg(){return Zf().memoizedState}function Rg(){return Zf().memoizedState}function Sg(n){for(var a=n.return;null!==a;){switch(a.tag){case 24:case 3:var i=Tg(a),o=ae(a,n=$d(i),i);null!==o&&(pg(o,a,i),be(o,a,i)),a={cache:Ug()},n.payload=a;return}a=a.return}}function Vg(n,a,i){var o=Tg(n);i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},tg(n)?Wg(a,i):null!==(i=Sd(n,a,i,o))&&(pg(i,n,o),Xg(i,a,o))}function Ng(n,a,i){var o=Tg(n),s={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(tg(n))Wg(a,s);else{var m=n.alternate;if(0===n.lanes&&(null===m||0===m.lanes)&&null!==(m=a.lastRenderedReducer))try{var y=a.lastRenderedState,v=m(y,i);if(s.hasEagerState=!0,s.eagerState=v,e7(v,y)){Rd(n,a,s,0),null===nH&&Pd();return}}catch(n){}finally{}null!==(i=Sd(n,a,s,o))&&(pg(i,n,o),Xg(i,a,o))}}function Mg(n,a,i,o){if(o={lane:2,revertLane:sf(),action:o,hasEagerState:!1,eagerState:null,next:null},tg(n)){if(a)throw Error(t(479))}else null!==(a=Sd(n,i,o,2))&&pg(a,n,2)}function tg(n){var a=n.alternate;return n===tX||null!==a&&a===tX}function Wg(n,a){t1=t0=!0;var i=n.pending;null===i?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function Xg(n,a,i){if(0!=(4194176&i)){var o=a.lanes;o&=n.pendingLanes,i|=o,a.lanes=i,rb(n,i)}}rE=function(){return{lastEffect:null,events:null,stores:null}};var t5={readContext:bg,use:ag,useCallback:Kf,useContext:Kf,useEffect:Kf,useImperativeHandle:Kf,useInsertionEffect:Kf,useLayoutEffect:Kf,useMemo:Kf,useReducer:Kf,useRef:Kf,useState:Kf,useDebugValue:Kf,useDeferredValue:Kf,useTransition:Kf,useSyncExternalStore:Kf,useId:Kf};t5.useCacheRefresh=Kf,t5.useHostTransitionStatus=Kf,t5.useFormState=Kf,t5.useOptimistic=Kf;var t7={readContext:bg,use:ag,useCallback:function(n,a){return Yf().memoizedState=[n,void 0===a?null:a],n},useContext:bg,useEffect:Cg,useImperativeHandle:function(n,a,i){i=null!=i?i.concat([n]):null,Ag(4194308,4,Fg.bind(null,a,n),i)},useLayoutEffect:function(n,a){return Ag(4194308,4,n,a)},useInsertionEffect:function(n,a){Ag(4,2,n,a)},useMemo:function(n,a){var i=Yf();return a=void 0===a?null:a,t2&&n(),n=n(),i.memoizedState=[n,a],n},useReducer:function(n,a,i){var o=Yf();return a=void 0!==i?i(a):a,o.memoizedState=o.baseState=a,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:a},o.queue=n,n=n.dispatch=Vg.bind(null,tX,n),[o.memoizedState,n]},useRef:function(n){return n={current:n},Yf().memoizedState=n},useState:function(n){var a=(n=qg(n)).queue,i=Ng.bind(null,tX,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Hg,useDeferredValue:function(n){return Yf().memoizedState=n,n},useTransition:function(){var n=qg(!1);return n=Lg.bind(null,tX,n.queue,!0,!1),Yf().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var o=tX,s=Yf();if(ty){if(void 0===i)throw Error(t(407));i=i()}else{if(i=a(),null===nH)throw Error(t(349));0!=(60&nK)||mg(o,a,i)}s.memoizedState=i;var m={value:i,getSnapshot:a};return s.queue=m,Cg(jg.bind(null,o,m,n),[n]),o.flags|=2048,kg(9,lg.bind(null,o,m,i,a),{destroy:void 0},null),i},useId:function(){var n=Yf(),a=nH.identifierPrefix;if(ty){var i=tf,o=ts;a=":"+a+"R"+(i=(o&~(1<<32-ex(o)-1)).toString(32)+i),0<(i=t3++)&&(a+="H"+i.toString(32)),a+=":"}else a=":"+a+"r"+(i=t8++).toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return Yf().memoizedState=Sg.bind(null,tX)}};t7.useHostTransitionStatus=Pg,t7.useFormState=function(n,a){if(ty){var i=nH.formState;null!==i&&Fd()&&(a=i[0])}var o={status:"fulfilled",value:a,then:function(){}};(i=Yf()).memoizedState=i.baseState=o,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wg,lastRenderedState:o},i.queue=o,i=Ng.bind(null,tX,o),o.dispatch=i;var s={state:a,dispatch:null,action:n,pending:null};return(o=Yf()).queue=s,i=sg.bind(null,tX,s,i),s.dispatch=i,o.memoizedState=n,[a,i]},t7.useOptimistic=function(n){var a=Yf();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Mg.bind(null,tX,!0,i),i.dispatch=a,[n,a]};var t9={readContext:bg,use:ag,useCallback:Ig,useContext:bg,useEffect:ig,useImperativeHandle:Gg,useInsertionEffect:Dg,useLayoutEffect:Eg,useMemo:Jg,useReducer:dg,useRef:zg,useState:function(){return dg(cg)},useDebugValue:Hg,useDeferredValue:function(n){return Kg(Zf(),tG.memoizedState,n)},useTransition:function(){var n=dg(cg)[0],a=Zf().memoizedState;return["boolean"==typeof n?n:Uf(n),a]},useSyncExternalStore:hg,useId:Qg};t9.useCacheRefresh=Rg,t9.useHostTransitionStatus=Pg,t9.useFormState=function(n){return xg(Zf(),tG,n)},t9.useOptimistic=function(n,a){return rg(Zf(),tG,n,a)};var nt={readContext:bg,use:ag,useCallback:Ig,useContext:bg,useEffect:ig,useImperativeHandle:Gg,useInsertionEffect:Dg,useLayoutEffect:Eg,useMemo:Jg,useReducer:gg,useRef:zg,useState:function(){return gg(cg)},useDebugValue:Hg,useDeferredValue:function(n){var a=Zf();return null===tG?(a.memoizedState=n,n):Kg(a,tG.memoizedState,n)},useTransition:function(){var n=gg(cg)[0],a=Zf().memoizedState;return["boolean"==typeof n?n:Uf(n),a]},useSyncExternalStore:hg,useId:Qg};function Yg(n,a){if(n&&n.defaultProps)for(var i in a=v({},a),n=n.defaultProps)void 0===a[i]&&(a[i]=n[i]);return a}function Zg(n,a,i,o){i=null==(i=i(o,a=n.memoizedState))?a:v({},a,i),n.memoizedState=i,0===n.lanes&&(n.updateQueue.baseState=i)}nt.useCacheRefresh=Rg,nt.useHostTransitionStatus=Pg,nt.useFormState=function(n){var a=Zf(),i=tG;if(null!==i)return xg(a,i,n);a=Uf(a.memoizedState);var o=(i=Zf()).queue.dispatch;return i.memoizedState=n,[a,o]},nt.useOptimistic=function(n,a){var i=Zf();return null!==tG?rg(i,tG,n,a):(i.baseState=n,[n,i.queue.dispatch])};var nr={isMounted:function(n){return!!(n=n._reactInternals)&&Mc(n)===n},enqueueSetState:function(n,a,i){var o=Tg(n=n._reactInternals),s=$d(o);s.payload=a,null!=i&&(s.callback=i),null!==(a=ae(n,s,o))&&(pg(a,n,o),be(a,n,o))},enqueueReplaceState:function(n,a,i){var o=Tg(n=n._reactInternals),s=$d(o);s.tag=1,s.payload=a,null!=i&&(s.callback=i),null!==(a=ae(n,s,o))&&(pg(a,n,o),be(a,n,o))},enqueueForceUpdate:function(n,a){var i=Tg(n=n._reactInternals),o=$d(i);o.tag=2,null!=a&&(o.callback=a),null!==(a=ae(n,o,i))&&(pg(a,n,i),be(a,n,i))}};function ah(n,a,i,o,s,m,y){return"function"==typeof(n=n.stateNode).shouldComponentUpdate?n.shouldComponentUpdate(o,m,y):!a.prototype||!a.prototype.isPureReactComponent||!he(i,o)||!he(s,m)}function bh(n,a,i){var o=!1,s=e4,m=a.contextType;return"object"==typeof m&&null!==m?m=bg(m):(s=Xc(a)?e5:e6.current,m=(o=null!=(o=a.contextTypes))?Wc(n,s):e4),a=new a(i,m),n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=nr,n.stateNode=a,a._reactInternals=n,o&&((n=n.stateNode).__reactInternalMemoizedUnmaskedChildContext=s,n.__reactInternalMemoizedMaskedChildContext=m),a}function ch(n,a,i,o){n=a.state,"function"==typeof a.componentWillReceiveProps&&a.componentWillReceiveProps(i,o),"function"==typeof a.UNSAFE_componentWillReceiveProps&&a.UNSAFE_componentWillReceiveProps(i,o),a.state!==n&&nr.enqueueReplaceState(a,a.state,null)}function dh(n,a,i,o){var s=n.stateNode;s.props=i,s.state=n.memoizedState,s.refs={},Yd(n);var m=a.contextType;"object"==typeof m&&null!==m?s.context=bg(m):(m=Xc(a)?e5:e6.current,s.context=Wc(n,m)),s.state=n.memoizedState,"function"==typeof(m=a.getDerivedStateFromProps)&&(Zg(n,a,m,i),s.state=n.memoizedState),"function"==typeof a.getDerivedStateFromProps||"function"==typeof s.getSnapshotBeforeUpdate||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||(a=s.state,"function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),a!==s.state&&nr.enqueueReplaceState(s,s.state,null),de(n,i,s,o),s.state=n.memoizedState),"function"==typeof s.componentDidMount&&(n.flags|=4194308)}function eh(n,a){try{var i="",o=a;do i+=dc(o),o=o.return;while(o);var s=i}catch(n){s="\nError generating stack: "+n.message+"\n"+n.stack}return{value:n,source:a,stack:s,digest:null}}function fh(n,a,i){return{value:n,source:null,stack:null!=i?i:null,digest:null!=a?a:null}}function gh(n,a){try{console.error(a.value)}catch(n){setTimeout(function(){throw n})}}function hh(n,a,i){(i=$d(i)).tag=3,i.payload={element:null};var o=a.value;return i.callback=function(){rn||(rn=!0,rr=o),gh(n,a)},i}function kh(n,a,i){(i=$d(i)).tag=3;var o=n.type.getDerivedStateFromError;if("function"==typeof o){var s=a.value;i.payload=function(){return o(s)},i.callback=function(){gh(n,a)}}var m=n.stateNode;return null!==m&&"function"==typeof m.componentDidCatch&&(i.callback=function(){gh(n,a),"function"!=typeof o&&(null===ra?ra=new Set([this]):ra.add(this));var i=a.stack;this.componentDidCatch(a.value,{componentStack:null!==i?i:""})}),i}function mh(n,a,i,o,s){return 0==(1&n.mode)?n===a?n.flags|=65536:(n.flags|=128,i.flags|=131072,i.flags&=-52805,1===i.tag&&(null===i.alternate?i.tag=17:((a=$d(2)).tag=2,ae(i,a,2))),i.lanes|=2):(n.flags|=65536,n.lanes=s),n}function nh(n,a,i,o,s){if(i.flags|=32768,null!==o&&"object"==typeof o&&"function"==typeof o.then){var m=i.tag;if(0!=(1&i.mode)||0!==m&&11!==m&&15!==m||((m=i.alternate)?(i.updateQueue=m.updateQueue,i.memoizedState=m.memoizedState,i.lanes=m.lanes):(i.updateQueue=null,i.memoizedState=null)),null!==(m=tF.current)){switch(m.tag){case 13:1&i.mode&&(null===tO?oh():null===m.alternate&&0===n1&&(n1=3)),m.flags&=-257,mh(m,a,i,n,s),o===tN?m.flags|=16384:(null===(a=m.updateQueue)?m.updateQueue=new Set([o]):a.add(o),1&m.mode&&qh(n,o,s));return;case 22:if(1&m.mode){m.flags|=65536,o===tN?m.flags|=16384:(null===(a=m.updateQueue)?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},m.updateQueue=a):null===(i=a.retryQueue)?a.retryQueue=new Set([o]):i.add(o),qh(n,o,s));return}}throw Error(t(435,m.tag))}if(1===n.tag){qh(n,o,s),oh();return}o=Error(t(426))}if(ty&&1&i.mode&&null!==(m=tF.current)){0==(65536&m.flags)&&(m.flags|=256),mh(m,a,i,n,s),Ld(eh(o,i));return}n=o=eh(o,i),4!==n1&&(n1=2),null===n5?n5=[n]:n5.push(n),n=a;do{switch(n.tag){case 3:n.flags|=65536,s&=-s,n.lanes|=s,s=hh(n,o,s),ce(n,s);return;case 1:if(a=o,i=n.type,m=n.stateNode,0==(128&n.flags)&&("function"==typeof i.getDerivedStateFromError||null!==m&&"function"==typeof m.componentDidCatch&&(null===ra||!ra.has(m)))){n.flags|=65536,s&=-s,n.lanes|=s,s=kh(n,a,s),ce(n,s);return}}n=n.return}while(null!==n)}var nl=k.ReactCurrentOwner,na=Error(t(461)),ni=!1;function uh(n,a,i,o){a.child=null===n?tD(a,null,i,o):t_(a,n.child,i,o)}function vh(n,a,i,o,s){i=i.render;var m=a.ref;return(wh(a,s),o=Mf(n,a,i,o,m,s),i=Vf(),null===n||ni)?(ty&&i&&pd(a),a.flags|=1,uh(n,a,o,s),a.child):(Wf(n,a,s),xh(n,a,s))}function yh(n,a,i,o,s){if(null===n){var m=i.type;return"function"!=typeof m||zh(m)||void 0!==m.defaultProps||null!==i.compare||void 0!==i.defaultProps?((n=ze(i.type,null,o,null,a,a.mode,s)).ref=a.ref,n.return=a,a.child=n):(a.tag=15,a.type=m,Ah(n,a,m,o,s))}if(m=n.child,0==(n.lanes&s)){var y=m.memoizedProps;if((i=null!==(i=i.compare)?i:he)(y,o)&&n.ref===a.ref)return xh(n,a,s)}return a.flags|=1,(n=xe(m,o)).ref=a.ref,n.return=a,a.child=n}function Ah(n,a,i,o,s){if(null!==n){var m=n.memoizedProps;if(he(m,o)&&n.ref===a.ref){if(ni=!1,a.pendingProps=o=m,0==(n.lanes&s))return a.lanes=n.lanes,xh(n,a,s);0!=(131072&n.flags)&&(ni=!0)}}return Bh(n,a,i,o,s)}function Ch(n,a,i){var o=a.pendingProps,s=o.children,m=0!=(2&a.stateNode._pendingVisibility),y=null!==n?n.memoizedState:null;if(Dh(n,a),"hidden"===o.mode||m){if(0!=(128&a.flags)){if(i=null!==y?y.baseLanes|i:i,null!==n){for(s=0,o=a.child=n.child;null!==o;)s=s|o.lanes|o.childLanes,o=o.sibling;a.childLanes=s&~i}else a.childLanes=0,a.child=null;return Eh(n,a,i)}if(0==(1&a.mode))a.memoizedState={baseLanes:0,cachePool:null},null!==n&&Fh(a,null),Je(),Pe(a);else{if(0==(536870912&i))return a.lanes=a.childLanes=536870912,Eh(n,a,null!==y?y.baseLanes|i:i);a.memoizedState={baseLanes:0,cachePool:null},null!==n&&Fh(a,null!==y?y.cachePool:null),null!==y?He(a,y):Je(),Pe(a)}}else null!==y?(Fh(a,y.cachePool),He(a,y),Qe(a),a.memoizedState=null):(null!==n&&Fh(a,null),Je(),Qe(a));return uh(n,a,s,i),a.child}function Eh(n,a,i){var o=Gh();return o=null===o?null:{parent:nE._currentValue,pool:o},a.memoizedState={baseLanes:i,cachePool:o},null!==n&&Fh(a,null),Je(),Pe(a),null}function Dh(n,a){var i=a.ref;(null===n&&null!==i||null!==n&&n.ref!==i)&&(a.flags|=512,a.flags|=2097152)}function Bh(n,a,i,o,s){var m=Xc(i)?e5:e6.current;return(m=Wc(a,m),wh(a,s),i=Mf(n,a,i,o,m,s),o=Vf(),null===n||ni)?(ty&&o&&pd(a),a.flags|=1,uh(n,a,i,s),a.child):(Wf(n,a,s),xh(n,a,s))}function Hh(n,a,i,o,s,m){return(wh(a,m),i=Pf(a,o,i,s),Qf(),o=Vf(),null===n||ni)?(ty&&o&&pd(a),a.flags|=1,uh(n,a,i,m),a.child):(Wf(n,a,m),xh(n,a,m))}function Ih(n,a,i,o,s){if(Xc(i)){var m=!0;ad(a)}else m=!1;if(wh(a,s),null===a.stateNode)Jh(n,a),bh(a,i,o),dh(a,i,o,s),o=!0;else if(null===n){var y=a.stateNode,v=a.memoizedProps;y.props=v;var k=y.context,S=i.contextType;S="object"==typeof S&&null!==S?bg(S):Wc(a,S=Xc(i)?e5:e6.current);var C=i.getDerivedStateFromProps,x="function"==typeof C||"function"==typeof y.getSnapshotBeforeUpdate;x||"function"!=typeof y.UNSAFE_componentWillReceiveProps&&"function"!=typeof y.componentWillReceiveProps||(v!==o||k!==S)&&ch(a,y,o,S),tx=!1;var P=a.memoizedState;y.state=P,de(a,o,y,s),k=a.memoizedState,v!==o||P!==k||e8.current||tx?("function"==typeof C&&(Zg(a,i,C,o),k=a.memoizedState),(v=tx||ah(a,i,v,o,P,k,S))?(x||"function"!=typeof y.UNSAFE_componentWillMount&&"function"!=typeof y.componentWillMount||("function"==typeof y.componentWillMount&&y.componentWillMount(),"function"==typeof y.UNSAFE_componentWillMount&&y.UNSAFE_componentWillMount()),"function"==typeof y.componentDidMount&&(a.flags|=4194308)):("function"==typeof y.componentDidMount&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=k),y.props=o,y.state=k,y.context=S,o=v):("function"==typeof y.componentDidMount&&(a.flags|=4194308),o=!1)}else{y=a.stateNode,Zd(n,a),v=a.memoizedProps,S=a.type===a.elementType?v:Yg(a.type,v),y.props=S,x=a.pendingProps,P=y.context,k="object"==typeof(k=i.contextType)&&null!==k?bg(k):Wc(a,k=Xc(i)?e5:e6.current);var N=i.getDerivedStateFromProps;(C="function"==typeof N||"function"==typeof y.getSnapshotBeforeUpdate)||"function"!=typeof y.UNSAFE_componentWillReceiveProps&&"function"!=typeof y.componentWillReceiveProps||(v!==x||P!==k)&&ch(a,y,o,k),tx=!1,P=a.memoizedState,y.state=P,de(a,o,y,s);var j=a.memoizedState;v!==x||P!==j||e8.current||tx?("function"==typeof N&&(Zg(a,i,N,o),j=a.memoizedState),(S=tx||ah(a,i,S,o,P,j,k)||!1)?(C||"function"!=typeof y.UNSAFE_componentWillUpdate&&"function"!=typeof y.componentWillUpdate||("function"==typeof y.componentWillUpdate&&y.componentWillUpdate(o,j,k),"function"==typeof y.UNSAFE_componentWillUpdate&&y.UNSAFE_componentWillUpdate(o,j,k)),"function"==typeof y.componentDidUpdate&&(a.flags|=4),"function"==typeof y.getSnapshotBeforeUpdate&&(a.flags|=1024)):("function"!=typeof y.componentDidUpdate||v===n.memoizedProps&&P===n.memoizedState||(a.flags|=4),"function"!=typeof y.getSnapshotBeforeUpdate||v===n.memoizedProps&&P===n.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=j),y.props=o,y.state=j,y.context=k,o=S):("function"!=typeof y.componentDidUpdate||v===n.memoizedProps&&P===n.memoizedState||(a.flags|=4),"function"!=typeof y.getSnapshotBeforeUpdate||v===n.memoizedProps&&P===n.memoizedState||(a.flags|=1024),o=!1)}return Kh(n,a,i,o,m,s)}function Kh(n,a,i,o,s,m){Dh(n,a);var y=0!=(128&a.flags);if(!o&&!y)return s&&bd(a,i,!1),xh(n,a,m);o=a.stateNode,nl.current=a;var v=y&&"function"!=typeof i.getDerivedStateFromError?null:o.render();return a.flags|=1,null!==n&&y?(a.child=t_(a,n.child,null,m),a.child=t_(a,null,v,m)):uh(n,a,v,m),a.memoizedState=o.state,s&&bd(a,i,!0),a.child}function Lh(n){var a=n.stateNode;a.pendingContext?Zc(n,a.pendingContext,a.pendingContext!==a.context):a.context&&Zc(n,a.context,!1),Ja(n,a.containerInfo)}function Mh(n,a,i,o,s){return Kd(),Ld(s),a.flags|=256,uh(n,a,i,o),a.child}var nu={dehydrated:null,treeContext:null,retryLane:0};function Oh(n){return{baseLanes:n,cachePool:Ph()}}function Qh(n,a,i){var o,s=a.pendingProps,m=!1,y=0!=(128&a.flags);if((o=y)||(o=(null===n||null!==n.memoizedState)&&0!=(2&tA.current)),o&&(m=!0,a.flags&=-129),null===n){if(ty){if(m?Ne(a):Qe(a),ty&&((y=n=th)?Bd(a,y)||(Dd(a)&&Ed(),th=Cd(y),o=tp,th&&Bd(a,th)?td(o,y):(vd(tp,a),ty=!1,tp=a,th=n)):(Dd(a)&&Ed(),vd(tp,a),ty=!1,tp=a,th=n)),null!==(n=a.memoizedState)&&null!==(n=n.dehydrated))return 0==(1&a.mode)?a.lanes=2:"$!"===n.data?a.lanes=16:a.lanes=536870912,null;Re(a)}return(y=s.children,n=s.fallback,m)?(Qe(a),s=a.mode,m=a.child,y={mode:"hidden",children:y},0==(1&s)&&null!==m?(m.childLanes=0,m.pendingProps=y):m=Rh(y,s,0,null),n=Be(n,s,i,null),m.return=a,n.return=a,m.sibling=n,a.child=m,a.child.memoizedState=Oh(i),a.memoizedState=nu,n):(Ne(a),Sh(a,y))}if(null!==(o=n.memoizedState)){var v=o.dehydrated;if(null!==v)return Th(n,a,y,s,v,o,i)}if(m){Qe(a),m=s.fallback,y=a.mode,v=(o=n.child).sibling;var k={mode:"hidden",children:s.children};return 0==(1&y)&&a.child!==o?((s=a.child).childLanes=0,s.pendingProps=k,a.deletions=null):(s=xe(o,k)).subtreeFlags=31457280&o.subtreeFlags,null!==v?m=xe(v,m):(m=Be(m,y,i,null),m.flags|=2),m.return=a,s.return=a,s.sibling=m,a.child=s,s=m,m=a.child,null===(y=n.child.memoizedState)?y=Oh(i):(null!==(o=y.cachePool)?(v=nE._currentValue,o=o.parent!==v?{parent:v,pool:v}:o):o=Ph(),y={baseLanes:y.baseLanes|i,cachePool:o}),m.memoizedState=y,m.childLanes=n.childLanes&~i,a.memoizedState=nu,s}return Ne(a),n=(m=n.child).sibling,s=xe(m,{mode:"visible",children:s.children}),0==(1&a.mode)&&(s.lanes=i),s.return=a,s.sibling=null,null!==n&&(null===(i=a.deletions)?(a.deletions=[n],a.flags|=16):i.push(n)),a.child=s,a.memoizedState=null,s}function Sh(n,a){return(a=Rh({mode:"visible",children:a},n.mode,0,null)).return=n,n.child=a}function Uh(n,a,i,o){return null!==o&&Ld(o),t_(a,n.child,null,i),n=Sh(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Th(n,a,i,o,s,m,y){if(i)return 256&a.flags?(Ne(a),a.flags&=-257,Uh(n,a,y,s=fh(Error(t(422))))):null!==a.memoizedState?(Qe(a),a.child=n.child,a.flags|=128,null):(Qe(a),s=o.fallback,m=a.mode,o=Rh({mode:"visible",children:o.children},m,0,null),s=Be(s,m,y,null),s.flags|=2,o.return=a,s.return=a,o.sibling=s,a.child=o,0!=(1&a.mode)&&t_(a,n.child,null,y),a.child.memoizedState=Oh(y),a.memoizedState=nu,s);if(Ne(a),0==(1&a.mode))return Uh(n,a,y,null);if("$!"===s.data){if(s=s.nextSibling&&s.nextSibling.dataset)var v=s.dgst;return s=v,(o=Error(t(419))).digest=s,Uh(n,a,y,s=fh(o,s,void 0))}if(v=0!=(y&n.childLanes),ni||v){if(null!==(o=nH)){switch(y&-y){case 2:v=1;break;case 8:v=4;break;case 32:v=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:v=64;break;case 268435456:v=134217728;break;default:v=0}if(0!==(v=0!=(v&(o.suspendedLanes|y))?0:v)&&v!==m.retryLane)throw m.retryLane=v,Ud(n,v),pg(o,n,v),na}return"$?"!==s.data&&oh(),Uh(n,a,y,null)}return"$?"===s.data?(a.flags|=128,a.child=n.child,a=Vh.bind(null,n),s._reactRetry=a,null):(n=m.treeContext,th=yd(s.nextSibling),tp=a,ty=!0,tv=null,tw=!1,null!==n&&(tl[ta++]=ts,tl[ta++]=tf,tl[ta++]=tu,ts=n.id,tf=n.overflow,tu=a),a=Sh(a,o.children),a.flags|=4096,a)}function Wh(n,a,i){n.lanes|=a;var o=n.alternate;null!==o&&(o.lanes|=a),Xh(n.return,a,i)}function Yh(n,a,i,o,s){var m=n.memoizedState;null===m?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:s}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=o,m.tail=i,m.tailMode=s)}function Zh(n,a,i){var o=a.pendingProps,s=o.revealOrder,m=o.tail;if(uh(n,a,o.children,i),0!=(2&(o=tA.current)))o=1&o|2,a.flags|=128;else{if(null!==n&&0!=(128&n.flags))e:for(n=a.child;null!==n;){if(13===n.tag)null!==n.memoizedState&&Wh(n,i,a);else if(19===n.tag)Wh(n,i,a);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===a)break;for(;null===n.sibling;){if(null===n.return||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}o&=1}if(E(tA,o),0==(1&a.mode))a.memoizedState=null;else switch(s){case"forwards":for(s=null,i=a.child;null!==i;)null!==(n=i.alternate)&&null===Se(n)&&(s=i),i=i.sibling;null===(i=s)?(s=a.child,a.child=null):(s=i.sibling,i.sibling=null),Yh(a,!1,s,i,m);break;case"backwards":for(i=null,s=a.child,a.child=null;null!==s;){if(null!==(n=s.alternate)&&null===Se(n)){a.child=s;break}n=s.sibling,s.sibling=i,i=s,s=n}Yh(a,!0,i,null,m);break;case"together":Yh(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Jh(n,a){0==(1&a.mode)&&null!==n&&(n.alternate=null,a.alternate=null,a.flags|=2)}function xh(n,a,i){if(null!==n&&(a.dependencies=n.dependencies),n3|=a.lanes,0==(i&a.childLanes))return null;if(null!==n&&a.child!==n.child)throw Error(t(153));if(null!==a.child){for(i=xe(n=a.child,n.pendingProps),a.child=i,i.return=a;null!==n.sibling;)n=n.sibling,(i=i.sibling=xe(n,n.pendingProps)).return=a;i.sibling=null}return a.child}function $h(n,a,i){switch(a.tag){case 3:Lh(a),ai(a,nE,n.memoizedState.cache),Kd();break;case 27:case 5:Na(a);break;case 1:Xc(a.type)&&ad(a);break;case 4:Ja(a,a.stateNode.containerInfo);break;case 10:ai(a,a.type._context,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(null!==o){if(null!==o.dehydrated)return Ne(a),a.flags|=128,null;if(0!=(i&a.child.childLanes))return Qh(n,a,i);return Ne(a),null!==(n=xh(n,a,i))?n.sibling:null}Ne(a);break;case 19:if(o=0!=(i&a.childLanes),0!=(128&n.flags)){if(o)return Zh(n,a,i);a.flags|=128}var s=a.memoizedState;if(null!==s&&(s.rendering=null,s.tail=null,s.lastEffect=null),E(tA,tA.current),!o)return null;break;case 22:case 23:return a.lanes=0,Ch(n,a,i);case 24:ai(a,nE,n.memoizedState.cache)}return xh(n,a,i)}var ns=ka(null),np=null,ny=null,nv=null;function fi(){nv=ny=np=null}function ai(n,a,i){E(ns,a._currentValue),a._currentValue=i}function gi(n){n._currentValue=ns.current,D(ns)}function Xh(n,a,i){for(;null!==n;){var o=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,null!==o&&(o.childLanes|=a)):null!==o&&(o.childLanes&a)!==a&&(o.childLanes|=a),n===i)break;n=n.return}}function hi(n,a,i){var o=n.child;for(null!==o&&(o.return=n);null!==o;){var s=o.dependencies;if(null!==s)for(var m=o.child,y=s.firstContext;null!==y;){if(y.context===a){if(1===o.tag){(y=$d(i&-i)).tag=2;var v=o.updateQueue;if(null!==v){var k=(v=v.shared).pending;null===k?y.next=y:(y.next=k.next,k.next=y),v.pending=y}}o.lanes|=i,null!==(y=o.alternate)&&(y.lanes|=i),Xh(o.return,i,n),s.lanes|=i;break}y=y.next}else if(10===o.tag)m=o.type===n.type?null:o.child;else if(18===o.tag){if(null===(m=o.return))throw Error(t(341));m.lanes|=i,null!==(s=m.alternate)&&(s.lanes|=i),Xh(m,i,n),m=o.sibling}else m=o.child;if(null!==m)m.return=o;else for(m=o;null!==m;){if(m===n){m=null;break}if(null!==(o=m.sibling)){o.return=m.return,m=o;break}m=m.return}o=m}}function wh(n,a){np=n,nv=ny=null,null!==(n=n.dependencies)&&null!==n.firstContext&&(0!=(n.lanes&a)&&(ni=!0),n.firstContext=null)}function bg(n){return ii(np,n)}function Ce(n,a,i){return null===np&&wh(n,i),ii(n,a)}function ii(n,a){var i=a._currentValue;if(nv!==a){if(a={context:a,memoizedValue:i,next:null},null===ny){if(null===n)throw Error(t(308));ny=a,n.dependencies={lanes:0,firstContext:a}}else ny=ny.next=a}return i}var nk="undefined"!=typeof AbortController?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(a,i){n.push(i)}};this.abort=function(){a.aborted=!0,n.forEach(function(n){return n()})}},nw=m.unstable_scheduleCallback,nS=m.unstable_NormalPriority,nE={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_defaultValue:null,_globalName:null};function Ug(){return{controller:new nk,data:new Map,refCount:0}}function mi(n){n.refCount--,0===n.refCount&&nw(nS,function(){n.controller.abort()})}var nC=k.ReactCurrentBatchConfig,nx=ka(null);function Gh(){var n=nx.current;return null!==n?n:nH.pooledCache}function Fh(n,a){null===a?E(nx,nx.current):E(nx,a.pool)}function Ph(){var n=Gh();return null===n?null:{parent:nE._currentValue,pool:n}}function pi(n){n.flags|=4}function qi(n){n.flags|=2097664}function ri(n,a){if("stylesheet"!==a.type||0!=(4&a.state.loading))n.flags&=-16777217;else if(n.flags|=16777216,0==(42&nK)&&!(a="stylesheet"!==a.type||0!=(3&a.state.loading))){if(si())n.flags|=8192;else throw tj=tN,tP}}function ti(n,a){null!==a?n.flags|=4:16384&n.flags&&(a=22!==n.tag?mb():536870912,n.lanes|=a)}function ui(n,a){if(!ty)switch(n.tailMode){case"hidden":a=n.tail;for(var i=null;null!==a;)null!==a.alternate&&(i=a),a=a.sibling;null===i?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var o=null;null!==i;)null!==i.alternate&&(o=i),i=i.sibling;null===o?a||null===n.tail?n.tail=null:n.tail.sibling=null:o.sibling=null}}function T(n){var a=null!==n.alternate&&n.alternate.child===n.child,i=0,o=0;if(a)for(var s=n.child;null!==s;)i|=s.lanes|s.childLanes,o|=31457280&s.subtreeFlags,o|=31457280&s.flags,s.return=n,s=s.sibling;else for(s=n.child;null!==s;)i|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=n,s=s.sibling;return n.subtreeFlags|=o,n.childLanes=i,a}function vi(n,a,i){var o=a.pendingProps;switch(qd(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return T(a),null;case 1:case 17:return Xc(a.type)&&Yc(),T(a),null;case 3:return i=a.stateNode,o=null,null!==n&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),gi(nE),Ma(),D(e8),D(e6),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===n||null===n.child)&&(Hd(a)?pi(a):null===n||n.memoizedState.isDehydrated&&0==(256&a.flags)||(a.flags|=1024,null!==tv&&(wi(tv),tv=null))),T(a),null;case 26:if(i=a.memoizedState,null===n)pi(a),null!==a.ref&&qi(a),null!==i?(T(a),ri(a,i)):(T(a),a.flags&=-16777217);else{var s=n.memoizedState;i!==s&&pi(a),n.ref!==a.ref&&qi(a),null!==i?(T(a),i===s?a.flags&=-16777217:ri(a,i)):(n.memoizedProps!==o&&pi(a),T(a),a.flags&=-16777217)}return null;case 27:if(Oa(a),i=er.current,s=a.type,null!==n&&null!=a.stateNode)n.memoizedProps!==o&&pi(a),n.ref!==a.ref&&qi(a);else{if(!o){if(null===a.stateNode)throw Error(t(166));return T(a),null}n=et.current,Hd(a)?xi(a.stateNode,a.type,a.memoizedProps,n,a):(n=yi(s,o,i),a.stateNode=n,pi(a)),null!==a.ref&&qi(a)}return T(a),null;case 5:if(Oa(a),i=a.type,null!==n&&null!=a.stateNode)n.memoizedProps!==o&&pi(a),n.ref!==a.ref&&qi(a);else{if(!o){if(null===a.stateNode)throw Error(t(166));return T(a),null}if(n=et.current,Hd(a))xi(a.stateNode,a.type,a.memoizedProps,n,a);else{switch(s=zi(er.current),n){case 1:n=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:n=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":n=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":n=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(n=s.createElement("div")).innerHTML="",n=n.removeChild(n.firstChild);break;case"select":n="string"==typeof o.is?s.createElement("select",{is:o.is}):s.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n="string"==typeof o.is?s.createElement(i,{is:o.is}):s.createElement(i)}}n[eM]=a,n[eR]=o;e:for(s=a.child;null!==s;){if(5===s.tag||6===s.tag)n.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===a)break;for(;null===s.sibling;){if(null===s.return||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(a.stateNode=n,Ai(n,i,o),i){case"button":case"input":case"select":case"textarea":n=!!o.autoFocus;break;case"img":n=!0;break;default:n=!1}n&&pi(a)}null!==a.ref&&qi(a)}return T(a),a.flags&=-16777217,null;case 6:if(n&&null!=a.stateNode)n.memoizedProps!==o&&pi(a);else{if("string"!=typeof o&&null===a.stateNode)throw Error(t(166));if(n=er.current,Hd(a)){e:{if(n=a.stateNode,i=a.memoizedProps,n[eM]=a,(o=n.nodeValue!==i)&&null!==(s=tp))switch(s.tag){case 3:if(s=0!=(1&s.mode),Bi(n.nodeValue,i,s),s){n=!1;break e}break;case 27:case 5:var m=0!=(1&s.mode);if(!0!==s.memoizedProps.suppressHydrationWarning&&Bi(n.nodeValue,i,m),m){n=!1;break e}}n=o}n&&pi(a)}else(n=zi(n).createTextNode(o))[eM]=a,a.stateNode=n}return T(a),null;case 13:if(Re(a),o=a.memoizedState,null===n||null!==n.memoizedState&&null!==n.memoizedState.dehydrated){if(ty&&null!==th&&0!=(1&a.mode)&&0==(128&a.flags))Jd(),Kd(),a.flags|=384,s=!1;else if(s=Hd(a),null!==o&&null!==o.dehydrated){if(null===n){if(!s)throw Error(t(318));if(!(s=null!==(s=a.memoizedState)?s.dehydrated:null))throw Error(t(317));s[eM]=a}else Kd(),0==(128&a.flags)&&(a.memoizedState=null),a.flags|=4;T(a),s=!1}else null!==tv&&(wi(tv),tv=null),s=!0;if(!s)return 256&a.flags?a:null}if(0!=(128&a.flags))return a.lanes=i,a;return i=null!==o,n=null!==n&&null!==n.memoizedState,i&&(o=a.child,s=null,null!==o.alternate&&null!==o.alternate.memoizedState&&null!==o.alternate.memoizedState.cachePool&&(s=o.alternate.memoizedState.cachePool.pool),m=null,null!==o.memoizedState&&null!==o.memoizedState.cachePool&&(m=o.memoizedState.cachePool.pool),m!==s&&(o.flags|=2048)),i!==n&&i&&(a.child.flags|=8192),ti(a,a.updateQueue),T(a),null;case 4:return Ma(),null===n&&Ci(a.stateNode.containerInfo),T(a),null;case 10:return gi(a.type._context),T(a),null;case 19:if(D(tA),null===(s=a.memoizedState))return T(a),null;if(o=0!=(128&a.flags),null===(m=s.rendering)){if(o)ui(s,!1);else{if(0!==n1||null!==n&&0!=(128&n.flags))for(n=a.child;null!==n;){if(null!==(m=Se(n))){for(a.flags|=128,ui(s,!1),n=m.updateQueue,a.updateQueue=n,ti(a,n),a.subtreeFlags=0,n=i,i=a.child;null!==i;)Di(i,n),i=i.sibling;return E(tA,1&tA.current|2),a.child}n=n.sibling}null!==s.tail&&em()>re&&(a.flags|=128,o=!0,ui(s,!1),a.lanes=4194304)}}else{if(!o){if(null!==(n=Se(m))){if(a.flags|=128,o=!0,n=n.updateQueue,a.updateQueue=n,ti(a,n),ui(s,!0),null===s.tail&&"hidden"===s.tailMode&&!m.alternate&&!ty)return T(a),null}else 2*em()-s.renderingStartTime>re&&536870912!==i&&(a.flags|=128,o=!0,ui(s,!1),a.lanes=4194304)}s.isBackwards?(m.sibling=a.child,a.child=m):(null!==(n=s.last)?n.sibling=m:a.child=m,s.last=m)}if(null!==s.tail)return a=s.tail,s.rendering=a,s.tail=a.sibling,s.renderingStartTime=em(),a.sibling=null,n=tA.current,E(tA,o?1&n|2:1&n),a;return T(a),null;case 22:case 23:return Re(a),Ke(),o=null!==a.memoizedState,null!==n?null!==n.memoizedState!==o&&(a.flags|=8192):o&&(a.flags|=8192),o&&0!=(1&a.mode)?0!=(536870912&i)&&0==(128&a.flags)&&(T(a),6&a.subtreeFlags&&(a.flags|=8192)):T(a),null!==(i=a.updateQueue)&&ti(a,i.retryQueue),i=null,null!==n&&null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(i=n.memoizedState.cachePool.pool),o=null,null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(o=a.memoizedState.cachePool.pool),o!==i&&(a.flags|=2048),null!==n&&D(nx),null;case 24:return i=null,null!==n&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),gi(nE),T(a),null;case 25:return null}throw Error(t(156,a.tag))}function Fi(n,a){switch(qd(a),a.tag){case 1:return Xc(a.type)&&Yc(),65536&(n=a.flags)?(a.flags=-65537&n|128,a):null;case 3:return gi(nE),Ma(),D(e8),D(e6),0!=(65536&(n=a.flags))&&0==(128&n)?(a.flags=-65537&n|128,a):null;case 26:case 27:case 5:return Oa(a),null;case 13:if(Re(a),null!==(n=a.memoizedState)&&null!==n.dehydrated){if(null===a.alternate)throw Error(t(340));Kd()}return 65536&(n=a.flags)?(a.flags=-65537&n|128,a):null;case 19:return D(tA),null;case 4:return Ma(),null;case 10:return gi(a.type._context),null;case 22:case 23:return Re(a),Ke(),null!==n&&D(nx),65536&(n=a.flags)?(a.flags=-65537&n|128,a):null;case 24:return gi(nE),null;default:return null}}function Gi(n,a){switch(qd(a),a.tag){case 1:null!=(n=a.type.childContextTypes)&&Yc();break;case 3:gi(nE),Ma(),D(e8),D(e6);break;case 26:case 27:case 5:Oa(a);break;case 4:Ma();break;case 13:Re(a);break;case 19:D(tA);break;case 10:gi(a.type._context);break;case 22:case 23:Re(a),Ke(),null!==n&&D(nx);break;case 24:gi(nE)}}function Hi(n,a,i){var o=Array.prototype.slice.call(arguments,3);try{a.apply(i,o)}catch(n){this.onError(n)}}var nz=!1,nP=null,nN=!1,nT=null,nL={onError:function(n){nz=!0,nP=n}};function Ni(n,a,i,o,s,m,y,v,k){nz=!1,nP=null,Hi.apply(nL,arguments)}function Oi(n,a,i,o,s,m,y,v,k){if(Ni.apply(this,arguments),nz){if(nz){var S=nP;nz=!1,nP=null}else throw Error(t(198));nN||(nN=!0,nT=S)}}var n_=!1,nD=!1,nM="function"==typeof WeakSet?WeakSet:Set,nR=null;function Ti(n,a){try{var i=n.ref;if(null!==i){var o=n.stateNode;switch(n.tag){case 26:case 27:case 5:var s=o;break;default:s=o}"function"==typeof i?n.refCleanup=i(s):i.current=s}}catch(i){W(n,a,i)}}function Ui(n,a){var i=n.ref,o=n.refCleanup;if(null!==i){if("function"==typeof o)try{o()}catch(i){W(n,a,i)}finally{n.refCleanup=null,null!=(n=n.alternate)&&(n.refCleanup=null)}else if("function"==typeof i)try{i(null)}catch(i){W(n,a,i)}else i.current=null}}function Vi(n,a,i){try{i()}catch(i){W(n,a,i)}}var nF=!1;function Xi(n,a){if(lB=r4,aj(n=$i())){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{var o=(i=(i=n.ownerDocument)&&i.defaultView||window).getSelection&&i.getSelection();if(o&&0!==o.rangeCount){i=o.anchorNode;var s,m=o.anchorOffset,y=o.focusNode;o=o.focusOffset;try{i.nodeType,y.nodeType}catch(n){i=null;break e}var v=0,k=-1,S=-1,C=0,x=0,P=n,N=null;t:for(;;){for(;P!==i||0!==m&&3!==P.nodeType||(k=v+m),P!==y||0!==o&&3!==P.nodeType||(S=v+o),3===P.nodeType&&(v+=P.nodeValue.length),null!==(s=P.firstChild);)N=P,P=s;for(;;){if(P===n)break t;if(N===i&&++C===m&&(k=v),N===y&&++x===o&&(S=v),null!==(s=P.nextSibling))break;N=(P=N).parentNode}P=s}i=-1===k||-1===S?null:{start:k,end:S}}else i=null}i=i||{start:0,end:0}}else i=null;for(lW={focusedElem:n,selectionRange:i},r4=!1,nR=a;null!==nR;)if(n=(a=nR).child,0!=(1028&a.subtreeFlags)&&null!==n)n.return=a,nR=n;else for(;null!==nR;){a=nR;try{var j=a.alternate,L=a.flags;switch(a.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&L)&&null!==j){var _=j.memoizedProps,M=j.memoizedState,R=a.stateNode,F=R.getSnapshotBeforeUpdate(a.elementType===a.type?_:Yg(a.type,_),M);R.__reactInternalSnapshotBeforeUpdate=F}break;case 3:0!=(1024&L)&&cj(a.stateNode.containerInfo);break;default:if(0!=(1024&L))throw Error(t(163))}}catch(n){W(a,a.return,n)}if(null!==(n=a.sibling)){n.return=a.return,nR=n;break}nR=a.return}return j=nF,nF=!1,j}function dj(n,a,i){var o=a.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var s=o=o.next;do{if((s.tag&n)===n){var m=s.inst,y=m.destroy;void 0!==y&&(m.destroy=void 0,Vi(a,i,y))}s=s.next}while(s!==o)}}function ej(n,a){if(null!==(a=null!==(a=a.updateQueue)?a.lastEffect:null)){var i=a=a.next;do{if((i.tag&n)===n){var o=i.create,s=i.inst;o=o(),s.destroy=o}i=i.next}while(i!==a)}}function fj(n,a){try{ej(a,n)}catch(a){W(n,n.return,a)}}function gj(n){var a=n.updateQueue;if(null!==a){var i=n.stateNode;try{ge(a,i)}catch(a){W(n,n.return,a)}}}function hj(n){var a=n.type,i=n.memoizedProps,o=n.stateNode;try{switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break;case"img":i.src&&(o.src=i.src)}}catch(a){W(n,n.return,a)}}function ij(n,a,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:jj(n,i),4&o&&fj(i,5);break;case 1:if(jj(n,i),4&o){if(n=i.stateNode,null===a)try{n.componentDidMount()}catch(n){W(i,i.return,n)}else{var s=i.elementType===i.type?a.memoizedProps:Yg(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(s,a,n.__reactInternalSnapshotBeforeUpdate)}catch(n){W(i,i.return,n)}}}64&o&&gj(i),512&o&&Ti(i,i.return);break;case 3:if(jj(n,i),64&o&&null!==(o=i.updateQueue)){if(n=null,null!==i.child)switch(i.child.tag){case 27:case 5:case 1:n=i.child.stateNode}try{ge(o,n)}catch(n){W(i,i.return,n)}}break;case 26:jj(n,i),512&o&&Ti(i,i.return);break;case 27:case 5:jj(n,i),null===a&&4&o&&hj(i),512&o&&Ti(i,i.return);break;case 12:default:jj(n,i);break;case 13:jj(n,i),4&o&&kj(n,i);break;case 22:if(0!=(1&i.mode)){if(!(s=null!==i.memoizedState||n_)){a=null!==a&&null!==a.memoizedState||nD;var m=n_,y=nD;n_=s,(nD=a)&&!y?lj(n,i,0!=(8772&i.subtreeFlags)):jj(n,i),n_=m,nD=y}}else jj(n,i);512&o&&("manual"===i.memoizedProps.mode?Ti(i,i.return):Ui(i,i.return))}}function mj(n){var a=n.alternate;null!==a&&(n.alternate=null,mj(a)),n.child=null,n.deletions=null,n.sibling=null,5===n.tag&&null!==(a=n.stateNode)&&Gb(a),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function nj(n){return 5===n.tag||3===n.tag||26===n.tag||27===n.tag||4===n.tag}function oj(n){e:for(;;){for(;null===n.sibling;){if(null===n.return||nj(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&27!==n.tag&&18!==n.tag;){if(2&n.flags||null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.flags))return n.stateNode}}function pj(n,a,i){var o=n.tag;if(5===o||6===o)n=n.stateNode,a?8===i.nodeType?i.parentNode.insertBefore(n,a):i.insertBefore(n,a):(8===i.nodeType?(a=i.parentNode).insertBefore(n,i):(a=i).appendChild(n),null!=(i=i._reactRootContainer)||null!==a.onclick||(a.onclick=qj));else if(4!==o&&27!==o&&null!==(n=n.child))for(pj(n,a,i),n=n.sibling;null!==n;)pj(n,a,i),n=n.sibling}function rj(n,a,i){var o=n.tag;if(5===o||6===o)n=n.stateNode,a?i.insertBefore(n,a):i.appendChild(n);else if(4!==o&&27!==o&&null!==(n=n.child))for(rj(n,a,i),n=n.sibling;null!==n;)rj(n,a,i),n=n.sibling}var nO=null,nA=!1;function uj(n,a,i){for(i=i.child;null!==i;)vj(n,a,i),i=i.sibling}function vj(n,a,i){if(eC&&"function"==typeof eC.onCommitFiberUnmount)try{eC.onCommitFiberUnmount(eE,i)}catch(n){}switch(i.tag){case 26:nD||Ui(i,a),uj(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode).parentNode.removeChild(i);break;case 27:nD||Ui(i,a);var o=nO,s=nA;for(nO=i.stateNode,uj(n,a,i),n=(i=i.stateNode).attributes;n.length;)i.removeAttributeNode(n[0]);Gb(i),nO=o,nA=s;break;case 5:nD||Ui(i,a);case 6:o=nO,s=nA,nO=null,uj(n,a,i),nO=o,nA=s,null!==nO&&(nA?(n=nO,i=i.stateNode,8===n.nodeType?n.parentNode.removeChild(i):n.removeChild(i)):nO.removeChild(i.stateNode));break;case 18:null!==nO&&(nA?(n=nO,i=i.stateNode,8===n.nodeType?wj(n.parentNode,i):1===n.nodeType&&wj(n,i),xj(n)):wj(nO,i.stateNode));break;case 4:o=nO,s=nA,nO=i.stateNode.containerInfo,nA=!0,uj(n,a,i),nO=o,nA=s;break;case 0:case 11:case 14:case 15:if(!nD&&null!==(o=i.updateQueue)&&null!==(o=o.lastEffect)){s=o=o.next;do{var m=s.tag,y=s.inst,v=y.destroy;void 0!==v&&(0!=(2&m)?(y.destroy=void 0,Vi(i,a,v)):0!=(4&m)&&(y.destroy=void 0,Vi(i,a,v))),s=s.next}while(s!==o)}uj(n,a,i);break;case 1:if(!nD&&(Ui(i,a),"function"==typeof(o=i.stateNode).componentWillUnmount))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(n){W(i,a,n)}uj(n,a,i);break;case 21:default:uj(n,a,i);break;case 22:Ui(i,a),1&i.mode?(nD=(o=nD)||null!==i.memoizedState,uj(n,a,i),nD=o):uj(n,a,i)}}function kj(n,a){if(null===a.memoizedState&&null!==(n=a.alternate)&&null!==(n=n.memoizedState)&&null!==(n=n.dehydrated))try{xj(n)}catch(n){W(a,a.return,n)}}function yj(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return null===a&&(a=n.stateNode=new nM),a;case 22:return null===(a=(n=n.stateNode)._retryCache)&&(a=n._retryCache=new nM),a;default:throw Error(t(435,n.tag))}}function zj(n,a){var i=yj(n);a.forEach(function(a){var o=Aj.bind(null,n,a);i.has(a)||(i.add(a),a.then(o,o))})}function Bj(n,a){var i=a.deletions;if(null!==i)for(var o=0;o title"))),Ai(s,i,o),s[eM]=n,Nb(s),i=s;break e;case"link":var m=Fj("link","href",a).get(i+(o.href||""));if(m){for(var y=0;yi?32:i;i=nY.transition;var s=eL;try{if(nY.transition=null,eL=o,null===rc)var m=!1;else{o=rd,rd=null;var y=rc,v=rs;if(rc=null,rs=0,0!=(6&nq))throw Error(t(331));var k=nq;if(nq|=4,bk(y.current),Rj(y,y.current,v,o),nq=k,bf(!1),eC&&"function"==typeof eC.onPostCommitFiberRoot)try{eC.onPostCommitFiberRoot(eE,y)}catch(n){}m=!0}return m}finally{eL=s,nY.transition=i,Rk(n,a)}}return!1}function Sk(n,a,i){a=hh(n,a=eh(i,a),2),null!==(n=ae(n,a,2))&&(ob(n,2),Ze(n))}function W(n,a,i){if(3===n.tag)Sk(n,n,i);else for(;null!==a;){if(3===a.tag){Sk(a,n,i);break}if(1===a.tag){var o=a.stateNode;if("function"==typeof a.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===ra||!ra.has(o))){n=kh(a,n=eh(i,n),2),null!==(a=ae(a,n,2))&&(ob(a,2),Ze(a));break}}a=a.return}}function qh(n,a,i){var o=n.pingCache;if(null===o){o=n.pingCache=new nW;var s=new Set;o.set(a,s)}else void 0===(s=o.get(a))&&(s=new Set,o.set(a,s));s.has(i)||(nJ=!0,s.add(i),n=Tk.bind(null,n,a,i),a.then(n,n))}function Tk(n,a,i){var o=n.pingCache;null!==o&&o.delete(a),n.pingedLanes|=n.suspendedLanes&i,nH===n&&(nK&i)===i&&(4===n1||3===n1&&(62914560&nK)===nK&&300>em()-n9?0==(2&nq)&&gf(n,0):n6|=i),Ze(n)}function Uk(n,a){0===a&&(a=0==(1&n.mode)?2:mb()),null!==(n=Ud(n,a))&&(ob(n,a),Ze(n))}function Vh(n){var a=n.memoizedState,i=0;null!==a&&(i=a.retryLane),Uk(n,i)}function Aj(n,a){var i=0;switch(n.tag){case 13:var o=n.stateNode,s=n.memoizedState;null!==s&&(i=s.retryLane);break;case 19:o=n.stateNode;break;case 22:o=n.stateNode._retryCache;break;default:throw Error(t(314))}null!==o&&o.delete(a),Uk(n,i)}function Pk(n,a){return eu(n,a)}function Xk(n,a,i,o){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ud(n,a,i,o){return new Xk(n,a,i,o)}function zh(n){return!(!(n=n.prototype)||!n.isReactComponent)}function Vk(n){if("function"==typeof n)return zh(n)?1:0;if(null!=n){if((n=n.$$typeof)===A)return 11;if(n===$)return 14}return 2}function xe(n,a){var i=n.alternate;return null===i?((i=ud(n.tag,a,n.key,n.mode)).elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=31457280&n.flags,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Di(n,a){n.flags&=31457282;var i=n.alternate;return null===i?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function ze(n,a,i,o,s,m,y){if(s=2,o=n,"function"==typeof n)zh(n)&&(s=1);else if("string"==typeof n)s=Yk(n,i,et.current)?26:"html"===n||"head"===n||"body"===n?27:5;else e:switch(n){case L:return Be(i.children,m,y,a);case _:s=8,0!=(1&(m|=8))&&(m|=16);break;case M:return(n=ud(12,i,a,2|m)).elementType=M,n.lanes=y,n;case I:return(n=ud(13,i,a,m)).elementType=I,n.lanes=y,n;case Q:return(n=ud(19,i,a,m)).elementType=Q,n.lanes=y,n;case X:return Rh(i,m,y,a);case G:case K:case J:return(n=ud(24,i,a,m)).elementType=J,n.lanes=y,n;default:if("object"==typeof n&&null!==n)switch(n.$$typeof){case R:s=10;break e;case F:s=9;break e;case A:s=11;break e;case $:s=14;break e;case H:s=16,o=null;break e}throw Error(t(130,null==n?n:typeof n,""))}return(a=ud(s,i,a,m)).elementType=n,a.type=o,a.lanes=y,a}function Be(n,a,i,o){return(n=ud(7,n,o,a)).lanes=i,n}function Rh(n,a,i,o){(n=ud(22,n,o,a)).elementType=X,n.lanes=i;var s={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var n=s._current;if(null===n)throw Error(t(456));if(0==(2&s._pendingVisibility)){var a=Ud(n,2);null!==a&&(s._pendingVisibility|=2,pg(a,n,2))}},attach:function(){var n=s._current;if(null===n)throw Error(t(456));if(0!=(2&s._pendingVisibility)){var a=Ud(n,2);null!==a&&(s._pendingVisibility&=-3,pg(a,n,2))}}};return n.stateNode=s,n}function ye(n,a,i){return(n=ud(6,n,null,a)).lanes=i,n}function Ae(n,a,i){return(a=ud(4,null!==n.children?n.children:[],n.key,a)).lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function Zk(n,a,i,o,s,m){this.tag=a,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=nb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nb(0),this.hiddenUpdates=nb(null),this.identifierPrefix=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function $k(n,a,i,o,s,m,y,v,k,S,C){return n=new Zk(n,a,i,v,k,C),1===a?(a=1,!0===m&&(a|=24)):a=0,m=ud(3,null,null,a),n.current=m,m.stateNode=n,a=Ug(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:o,isDehydrated:i,cache:a},Yd(m),n}function al(n,a,i){var o=3=lr),lo=!1;function Nm(n,a){switch(n){case"keyup":return -1!==r9.indexOf(a.keyCode);case"keydown":return 229!==a.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(n){return"object"==typeof(n=n.detail)&&"data"in n?n.data:null}var lu=!1;function Qm(n,a){switch(n){case"compositionend":return Om(a);case"keypress":if(32!==a.which)return null;return lo=!0," ";case"textInput":return" "===(n=a.data)&&lo?null:n;default:return null}}function Rm(n,a){if(lu)return"compositionend"===n||!lt&&Nm(n,a)?(n=Em(),r7=r5=r8=null,lu=!1,n):null;switch(n){case"paste":default:return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1=a)return{node:o,offset:a-n};n=i}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=mn(o)}}function on(n,a){return!!n&&!!a&&(n===a||(!n||3!==n.nodeType)&&(a&&3===a.nodeType?on(n,a.parentNode):"contains"in n?n.contains(a):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(a))))}function $i(){for(var n=window,a=lc();a instanceof n.HTMLIFrameElement;){try{var i="string"==typeof a.contentWindow.location.href}catch(n){i=!1}if(i)n=a.contentWindow;else break;a=lc(n.document)}return a}function aj(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&("input"===a&&("text"===n.type||"search"===n.type||"tel"===n.type||"url"===n.type||"password"===n.type)||"textarea"===a||"true"===n.contentEditable)}function Qk(n){var a=$i(),i=n.focusedElem,o=n.selectionRange;if(a!==i&&i&&i.ownerDocument&&on(i.ownerDocument.documentElement,i)){if(null!==o&&aj(i)){if(a=o.start,void 0===(n=o.end)&&(n=a),"selectionStart"in i)i.selectionStart=a,i.selectionEnd=Math.min(n,i.value.length);else if((n=(a=i.ownerDocument||document)&&a.defaultView||window).getSelection){n=n.getSelection();var s=i.textContent.length,m=Math.min(o.start,s);o=void 0===o.end?m:Math.min(o.end,s),!n.extend&&m>o&&(s=o,o=m,m=s),s=nn(i,m);var y=nn(i,o);s&&y&&(1!==n.rangeCount||n.anchorNode!==s.node||n.anchorOffset!==s.offset||n.focusNode!==y.node||n.focusOffset!==y.offset)&&((a=a.createRange()).setStart(s.node,s.offset),n.removeAllRanges(),m>o?(n.addRange(a),n.extend(y.node,y.offset)):(a.setEnd(y.node,y.offset),n.addRange(a)))}}for(a=[],n=i;n=n.parentNode;)1===n.nodeType&&a.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i=document.documentMode,lk=null,lw=null,lS=null,lE=!1;function un(n,a,i){var o=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;lE||null==lk||lk!==lc(o)||(o="selectionStart"in(o=lk)&&aj(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},lS&&he(lS,o)||(lS=o,0<(o=Vm(lw,"onSelect")).length&&(a=new rT("onSelect","select",null,a,i),n.push({event:a,listeners:o}),a.target=lk)))}function vn(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var lC={animationend:vn("Animation","AnimationEnd"),animationiteration:vn("Animation","AnimationIteration"),animationstart:vn("Animation","AnimationStart"),transitionend:vn("Transition","TransitionEnd")},lx={},lz={};function zn(n){if(lx[n])return lx[n];if(!lC[n])return n;var a,i=lC[n];for(a in i)if(i.hasOwnProperty(a)&&a in lz)return lx[n]=i[a];return n}e$&&(lz=document.createElement("div").style,"AnimationEvent"in window||(delete lC.animationend.animation,delete lC.animationiteration.animation,delete lC.animationstart.animation),"TransitionEvent"in window||delete lC.transitionend.transition);var lP=zn("animationend"),lN=zn("animationiteration"),lT=zn("animationstart"),lL=zn("transitionend"),l_=new Map,lD="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Gn(n,a){l_.set(n,a),Qb(a,[n])}for(var lM=0;lM title"):null)}function Yk(n,a,i){if(1===i||null!=a.itemProp)return!1;switch(n){case"meta":case"title":return!0;case"style":if("string"!=typeof a.precedence||"string"!=typeof a.href||""===a.href)break;return!0;case"link":if("string"!=typeof a.rel||"string"!=typeof a.href||""===a.href||a.onLoad||a.onError)break;if("stylesheet"===a.rel)return n=a.disabled,"string"==typeof a.precedence&&null==n;return!0;case"script":if(!0===a.async&&!a.onLoad&&!a.onError&&"string"==typeof a.src&&a.src)return!0}return!1}var lG=null;function yk(){}function Xj(n,a,i){if(null===lG)throw Error(t(475));var o=lG;if("stylesheet"===a.type&&("string"!=typeof i.media||!1!==matchMedia(i.media).matches)&&0==(4&a.state.loading)){if(null===a.instance){var s=no(i.href),m=n.querySelector(po(s));if(m){null!==(n=m._p)&&"object"==typeof n&&"function"==typeof n.then&&(o.count++,o=wo.bind(o),n.then(o,o)),a.state.loading|=4,a.instance=m,Nb(m);return}m=n.ownerDocument||n,i=vo(i),(s=lH.get(s))&&ro(i,s),Nb(m=m.createElement("link"));var y=m;y._p=new Promise(function(n,a){y.onload=n,y.onerror=a}),Ai(m,"link",i),a.instance=m}null===o.stylesheets&&(o.stylesheets=new Map),o.stylesheets.set(a,n),(n=a.state.preload)&&0==(3&a.state.loading)&&(o.count++,a=wo.bind(o),n.addEventListener("load",a),n.addEventListener("error",a))}}function zk(){if(null===lG)throw Error(t(475));var n=lG;return n.stylesheets&&0===n.count&&xo(n,n.stylesheets),0u}return!1}function v(a,u,i,o,s,w,x){this.acceptsBooleans=2===u||3===u||4===u,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=i,this.propertyName=a,this.type=u,this.sanitizeURL=w,this.removeEmptyString=x}var X={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){X[a]=new v(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var u=a[0];X[u]=new v(u,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){X[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){X[a]=new v(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){X[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){X[a]=new v(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){X[a]=new v(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){X[a]=new v(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){X[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ee=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}function ta(a,u,i,o){var s=X.hasOwnProperty(u)?X[u]:null;(null!==s?0!==s.type:o||!(2--C||s[x]!==w[C]){var _="\n"+s[x].replace(" at new "," at ");return a.displayName&&_.includes("")&&(_=_.replace("",a.displayName)),_}while(1<=x&&0<=C);break}}}finally{eE=!1,Error.prepareStackTrace=i}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1);case 11:return a=Oa(a.type.render,!1);case 1:return a=Oa(a.type,!0);default:return""}}function Qa(a){if(null==a)return null;if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a;switch(a){case ea:return"Fragment";case er:return"Portal";case eo:return"Profiler";case eu:return"StrictMode";case ep:return"Suspense";case eg:return"SuspenseList"}if("object"==typeof a)switch(a.$$typeof){case ec:return(a.displayName||"Context")+".Consumer";case es:return(a._context.displayName||"Context")+".Provider";case ef:var u=a.render;return(a=a.displayName)||(a=""!==(a=u.displayName||u.name||"")?"ForwardRef("+a+")":"ForwardRef"),a;case em:return null!==(u=a.displayName||null)?u:Qa(a.type)||"Memo";case ev:u=a._payload,a=a._init;try{return Qa(a(u))}catch(a){}}return null}function Ra(a){var u=a.type;switch(a.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=(a=u.render).displayName||a.name||"",u.displayName||(""!==a?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(u);case 8:return u===eu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof u)return u.displayName||u.name||null;if("string"==typeof u)return u}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":case"object":return a;default:return""}}function Ta(a){var u=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===u||"radio"===u)}function Ua(a){var u=Ta(a)?"checked":"value",i=Object.getOwnPropertyDescriptor(a.constructor.prototype,u),o=""+a[u];if(!a.hasOwnProperty(u)&&void 0!==i&&"function"==typeof i.get&&"function"==typeof i.set){var s=i.get,w=i.set;return Object.defineProperty(a,u,{configurable:!0,get:function(){return s.call(this)},set:function(a){o=""+a,w.call(this,a)}}),Object.defineProperty(a,u,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){a._valueTracker=null,delete a[u]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var u=a._valueTracker;if(!u)return!0;var i=u.getValue(),o="";return a&&(o=Ta(a)?a.checked?"true":"false":a.value),(a=o)!==i&&(u.setValue(a),!0)}function Xa(a){if(void 0===(a=a||("undefined"!=typeof document?document:void 0)))return null;try{return a.activeElement||a.body}catch(u){return a.body}}function Ya(a,u){var i=u.checked;return eS({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=i?i:a._wrapperState.initialChecked})}function Za(a,u){var i=null==u.defaultValue?"":u.defaultValue,o=null!=u.checked?u.checked:u.defaultChecked;i=Sa(null!=u.value?u.value:i),a._wrapperState={initialChecked:o,initialValue:i,controlled:"checkbox"===u.type||"radio"===u.type?null!=u.checked:null!=u.value}}function ab(a,u){null!=(u=u.checked)&&ta(a,"checked",u,!1)}function bb(a,u){ab(a,u);var i=Sa(u.value),o=u.type;if(null!=i)"number"===o?(0===i&&""===a.value||a.value!=i)&&(a.value=""+i):a.value!==""+i&&(a.value=""+i);else if("submit"===o||"reset"===o){a.removeAttribute("value");return}u.hasOwnProperty("value")?cb(a,u.type,i):u.hasOwnProperty("defaultValue")&&cb(a,u.type,Sa(u.defaultValue)),null==u.checked&&null!=u.defaultChecked&&(a.defaultChecked=!!u.defaultChecked)}function db(a,u,i){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var o=u.type;if(!("submit"!==o&&"reset"!==o||void 0!==u.value&&null!==u.value))return;u=""+a._wrapperState.initialValue,i||u===a.value||(a.value=u),a.defaultValue=u}""!==(i=a.name)&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,""!==i&&(a.name=i)}function cb(a,u,i){("number"!==u||Xa(a.ownerDocument)!==a)&&(null==i?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+i&&(a.defaultValue=""+i))}var ex=Array.isArray;function fb(a,u,i,o){if(a=a.options,u){u={};for(var s=0;s"+u.valueOf().toString()+"",u=e_.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(a,u,i,o){MSApp.execUnsafeLocalFunction(function(){return eC(a,u,i,o)})}:eC);function ob(a,u){if(u){var i=a.firstChild;if(i&&i===a.lastChild&&3===i.nodeType){i.nodeValue=u;return}}a.textContent=u}var eL={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eN=["Webkit","ms","Moz","O"];function rb(a,u,i){return null==u||"boolean"==typeof u||""===u?"":i||"number"!=typeof u||0===u||eL.hasOwnProperty(a)&&eL[a]?(""+u).trim():u+"px"}function sb(a,u){for(var i in a=a.style,u)if(u.hasOwnProperty(i)){var o=0===i.indexOf("--"),s=rb(i,u[i],o);"float"===i&&(i="cssFloat"),o?a.setProperty(i,s):a[i]=s}}Object.keys(eL).forEach(function(a){eN.forEach(function(u){eL[u=u+a.charAt(0).toUpperCase()+a.substring(1)]=eL[a]})});var eP=eS({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(a,u){if(u){if(eP[a]&&(null!=u.children||null!=u.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(p(60));if("object"!=typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=u.style&&"object"!=typeof u.style)throw Error(p(62))}}function vb(a,u){if(-1===a.indexOf("-"))return"string"==typeof u.is;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eT=null;function xb(a){return(a=a.target||a.srcElement||window).correspondingUseElement&&(a=a.correspondingUseElement),3===a.nodeType?a.parentNode:a}var eD=null,eM=null,eR=null;function Bb(a){if(a=Cb(a)){if("function"!=typeof eD)throw Error(p(280));var u=a.stateNode;u&&(u=Db(u),eD(a.stateNode,a.type,u))}}function Eb(a){eM?eR?eR.push(a):eR=[a]:eM=a}function Fb(){if(eM){var a=eM,u=eR;if(eR=eM=null,Bb(a),u)for(a=0;a>>=0)?32:31-(e4(a)/e8|0)|0}var e6=64,e5=4194304;function tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&a;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&a;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,u){var i=a.pendingLanes;if(0===i)return 0;var o=0,s=a.suspendedLanes,w=a.pingedLanes,x=268435455&i;if(0!==x){var C=x&~s;0!==C?o=tc(C):0!=(w&=x)&&(o=tc(w))}else 0!=(x=i&~s)?o=tc(x):0!==w&&(o=tc(w));if(0===o)return 0;if(0!==u&&u!==o&&0==(u&s)&&((s=o&-o)>=(w=u&-u)||16===s&&0!=(4194240&w)))return u;if(0!=(4&o)&&(o|=16&i),0!==(u=a.entangledLanes))for(a=a.entanglements,u&=o;0i;i++)u.push(a);return u}function Ac(a,u,i){a.pendingLanes|=u,536870912!==u&&(a.suspendedLanes=0,a.pingedLanes=0),(a=a.eventTimes)[u=31-e3(u)]=i}function Bc(a,u){var i=a.pendingLanes&~u;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=u,a.mutableReadLanes&=u,a.entangledLanes&=u,u=a.entanglements;var o=a.eventTimes;for(a=a.expirationTimes;0=nY),nX=!1;function ge(a,u){switch(a){case"keyup":return -1!==nK.indexOf(u.keyCode);case"keydown":return 229!==u.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return"object"==typeof(a=a.detail)&&"data"in a?a.data:null}var nJ=!1;function je(a,u){switch(a){case"compositionend":return he(u);case"keypress":if(32!==u.which)return null;return nX=!0," ";case"textInput":return" "===(a=u.data)&&nX?null:a;default:return null}}function ke(a,u){if(nJ)return"compositionend"===a||!nG&&ge(a,u)?(a=nd(),nx=nE=nS=null,nJ=!1,a):null;switch(a){case"paste":default:return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:o,offset:u-a};a=i}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Je(o)}}function Le(a,u){return!!a&&!!u&&(a===u||(!a||3!==a.nodeType)&&(u&&3===u.nodeType?Le(a,u.parentNode):"contains"in a?a.contains(u):!!a.compareDocumentPosition&&!!(16&a.compareDocumentPosition(u))))}function Me(){for(var a=window,u=Xa();u instanceof a.HTMLIFrameElement;){try{var i="string"==typeof u.contentWindow.location.href}catch(a){i=!1}if(i)a=u.contentWindow;else break;u=Xa(a.document)}return u}function Ne(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u&&("input"===u&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===u||"true"===a.contentEditable)}function Oe(a){var u=Me(),i=a.focusedElem,o=a.selectionRange;if(u!==i&&i&&i.ownerDocument&&Le(i.ownerDocument.documentElement,i)){if(null!==o&&Ne(i)){if(u=o.start,void 0===(a=o.end)&&(a=u),"selectionStart"in i)i.selectionStart=u,i.selectionEnd=Math.min(a,i.value.length);else if((a=(u=i.ownerDocument||document)&&u.defaultView||window).getSelection){a=a.getSelection();var s=i.textContent.length,w=Math.min(o.start,s);o=void 0===o.end?w:Math.min(o.end,s),!a.extend&&w>o&&(s=o,o=w,w=s),s=Ke(i,w);var x=Ke(i,o);s&&x&&(1!==a.rangeCount||a.anchorNode!==s.node||a.anchorOffset!==s.offset||a.focusNode!==x.node||a.focusOffset!==x.offset)&&((u=u.createRange()).setStart(s.node,s.offset),a.removeAllRanges(),w>o?(a.addRange(u),a.extend(x.node,x.offset)):(u.setEnd(x.node,x.offset),a.addRange(u)))}}for(u=[],a=i;a=a.parentNode;)1===a.nodeType&&u.push({element:a,left:a.scrollLeft,top:a.scrollTop});for("function"==typeof i.focus&&i.focus(),i=0;i=document.documentMode,n9=null,n7=null,tn=null,tt=!1;function Ue(a,u,i){var o=i.window===i?i.document:9===i.nodeType?i:i.ownerDocument;tt||null==n9||n9!==Xa(o)||(o="selectionStart"in(o=n9)&&Ne(o)?{start:o.selectionStart,end:o.selectionEnd}:{anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},tn&&Ie(tn,o)||(tn=o,0<(o=oe(n7,"onSelect")).length&&(u=new nL("onSelect","select",null,u,i),a.push({event:u,listeners:o}),u.target=n9)))}function Ve(a,u){var i={};return i[a.toLowerCase()]=u.toLowerCase(),i["Webkit"+a]="webkit"+u,i["Moz"+a]="moz"+u,i}var tr={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},tl={},tu={};function Ze(a){if(tl[a])return tl[a];if(!tr[a])return a;var u,i=tr[a];for(u in i)if(i.hasOwnProperty(u)&&u in tu)return tl[a]=i[u];return a}V&&(tu=document.createElement("div").style,"AnimationEvent"in window||(delete tr.animationend.animation,delete tr.animationiteration.animation,delete tr.animationstart.animation),"TransitionEvent"in window||delete tr.transitionend.transition);var to=Ze("animationend"),ts=Ze("animationiteration"),td=Ze("animationstart"),tp=Ze("transitionend"),tm=new Map,tv="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(a,u){tm.set(a,u),fa(u,[a])}for(var tb=0;tbtV||(a.current=tU[tV],tU[tV]=null,tV--)}function G(a,u){tU[++tV]=a.current,a.current=u}var tW={},tA=Uf(tW),tQ=Uf(!1),tB=tW;function Yf(a,u){var i=a.type.contextTypes;if(!i)return tW;var o=a.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===u)return o.__reactInternalMemoizedMaskedChildContext;var s,w={};for(s in i)w[s]=u[s];return o&&((a=a.stateNode).__reactInternalMemoizedUnmaskedChildContext=u,a.__reactInternalMemoizedMaskedChildContext=w),w}function Zf(a){return null!=(a=a.childContextTypes)}function $f(){E(tQ),E(tA)}function ag(a,u,i){if(tA.current!==tW)throw Error(p(168));G(tA,u),G(tQ,i)}function bg(a,u,i){var o=a.stateNode;if(u=u.childContextTypes,"function"!=typeof o.getChildContext)return i;for(var s in o=o.getChildContext())if(!(s in u))throw Error(p(108,Ra(a)||"Unknown",s));return eS({},i,o)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||tW,tB=tA.current,G(tA,a),G(tQ,tQ.current),!0}function dg(a,u,i){var o=a.stateNode;if(!o)throw Error(p(169));i?(a=bg(a,u,tB),o.__reactInternalMemoizedMergedChildContext=a,E(tQ),E(tA),G(tA,a)):E(tQ),G(tQ,i)}var t$=null,tH=!1,tK=!1;function hg(a){null===t$?t$=[a]:t$.push(a)}function ig(a){tH=!0,hg(a)}function jg(){if(!tK&&null!==t$){tK=!0;var a=0,u=e9;try{var i=t$;for(e9=1;a>=x,s-=x,t1=1<<32-e3(u)+s|i<_?(j=C,C=null):j=C.sibling;var z=r(u,C,o[_],s);if(null===z){null===C&&(C=j);break}a&&C&&null===z.alternate&&b(u,C),i=f(z,i,_),null===x?w=z:x.sibling=z,x=z,C=j}if(_===o.length)return c(u,C),t8&&tg(u,_),w;if(null===C){for(;__?(j=C,C=null):j=C.sibling;var P=r(u,C,z.value,s);if(null===P){null===C&&(C=j);break}a&&C&&null===P.alternate&&b(u,C),i=f(P,i,_),null===x?w=P:x.sibling=P,x=P,C=j}if(z.done)return c(u,C),t8&&tg(u,_),w;if(null===C){for(;!z.done;_++,z=o.next())null!==(z=q(u,z.value,s))&&(i=f(z,i,_),null===x?w=z:x.sibling=z,x=z);return t8&&tg(u,_),w}for(C=d(u,C);!z.done;_++,z=o.next())null!==(z=y(C,u,_,z.value,s))&&(a&&null!==z.alternate&&C.delete(null===z.key?_:z.key),i=f(z,i,_),null===x?w=z:x.sibling=z,x=z);return a&&C.forEach(function(a){return b(u,a)}),t8&&tg(u,_),w}function J(a,u,i,o){if("object"==typeof i&&null!==i&&i.type===ea&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case et:e:{for(var s=i.key,w=u;null!==w;){if(w.key===s){if((s=i.type)===ea){if(7===w.tag){c(a,w.sibling),(u=e(w,i.props.children)).return=a,a=u;break e}}else if(w.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===ev&&uh(s)===w.type){c(a,w.sibling),(u=e(w,i.props)).ref=sh(a,w,i),u.return=a,a=u;break e}c(a,w);break}b(a,w),w=w.sibling}i.type===ea?((u=Ah(i.props.children,a.mode,o,i.key)).return=a,a=u):((o=yh(i.type,i.key,i.props,null,a.mode,o)).ref=sh(a,u,i),o.return=a,a=o)}return g(a);case er:e:{for(w=i.key;null!==u;){if(u.key===w){if(4===u.tag&&u.stateNode.containerInfo===i.containerInfo&&u.stateNode.implementation===i.implementation){c(a,u.sibling),(u=e(u,i.children||[])).return=a,a=u;break e}c(a,u);break}b(a,u),u=u.sibling}(u=zh(i,a.mode,o)).return=a,a=u}return g(a);case ev:return J(a,u,(w=i._init)(i._payload),o)}if(ex(i))return n(a,u,i,o);if(Ka(i))return t(a,u,i,o);th(a,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==u&&6===u.tag?(c(a,u.sibling),(u=e(u,i)).return=a):(c(a,u),(u=xh(i,a.mode,o)).return=a),g(a=u)):c(a,u)}return J}var rs=vh(!0),rc=vh(!1),rf={},rp=Uf(rf),rg=Uf(rf),rm=Uf(rf);function Hh(a){if(a===rf)throw Error(p(174));return a}function Ih(a,u){switch(G(rm,u),G(rg,a),G(rp,rf),a=u.nodeType){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:lb(null,"");break;default:u=lb(u=(a=8===a?u.parentNode:u).namespaceURI||null,a=a.tagName)}E(rp),G(rp,u)}function Jh(){E(rp),E(rg),E(rm)}function Kh(a){Hh(rm.current);var u=Hh(rp.current),i=lb(u,a.type);u!==i&&(G(rg,a),G(rp,i))}function Lh(a){rg.current===a&&(E(rp),E(rg))}var rv=Uf(0);function Mh(a){for(var u=a;null!==u;){if(13===u.tag){var i=u.memoizedState;if(null!==i&&(null===(i=i.dehydrated)||"$?"===i.data||"$!"===i.data))return u}else if(19===u.tag&&void 0!==u.memoizedProps.revealOrder){if(0!=(128&u.flags))return u}else if(null!==u.child){u.child.return=u,u=u.child;continue}if(u===a)break;for(;null===u.sibling;){if(null===u.return||u.return===a)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var ry=[];function Oh(){for(var a=0;ai?i:4,a(!0);var o=rw.transition;rw.transition={};try{a(!1),u()}finally{e9=i,rw.transition=o}}function Fi(){return di().memoizedState}function Gi(a,u,i){var o=lh(a);i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},Hi(a)?Ii(u,i):null!==(i=Yg(a,u,i,o))&&(mh(i,a,o,L()),Ji(i,u,o))}function ri(a,u,i){var o=lh(a),s={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(u,s);else{var w=a.alternate;if(0===a.lanes&&(null===w||0===w.lanes)&&null!==(w=u.lastRenderedReducer))try{var x=u.lastRenderedState,C=w(x,i);if(s.hasEagerState=!0,s.eagerState=C,n6(C,x)){var _=u.interleaved;null===_?(s.next=s,Xg(u)):(s.next=_.next,_.next=s),u.interleaved=s;return}}catch(a){}finally{}null!==(i=Yg(a,u,s,o))&&(mh(i,a,o,s=L()),Ji(i,u,o))}}function Hi(a){var u=a.alternate;return a===rE||null!==u&&u===rE}function Ii(a,u){rz=r_=!0;var i=a.pending;null===i?u.next=u:(u.next=i.next,i.next=u),a.pending=u}function Ji(a,u,i){if(0!=(4194240&i)){var o=u.lanes;o&=a.pendingLanes,i|=o,u.lanes=i,Cc(a,i)}}var rP={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},rT={readContext:Vg,useCallback:function(a,u){return ci().memoizedState=[a,void 0===u?null:u],a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,u,i){return i=null!=i?i.concat([a]):null,ti(4194308,4,yi.bind(null,u,a),i)},useLayoutEffect:function(a,u){return ti(4194308,4,a,u)},useInsertionEffect:function(a,u){return ti(4,2,a,u)},useMemo:function(a,u){var i=ci();return u=void 0===u?null:u,a=a(),i.memoizedState=[a,u],a},useReducer:function(a,u,i){var o=ci();return u=void 0!==i?i(u):u,o.memoizedState=o.baseState=u,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:u},o.queue=a,a=a.dispatch=Gi.bind(null,rE,a),[o.memoizedState,a]},useRef:function(a){return a={current:a},ci().memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),u=a[0];return a=Ei.bind(null,a[1]),ci().memoizedState=a,[u,a]},useMutableSource:function(){},useSyncExternalStore:function(a,u,i){var o=rE,s=ci();if(t8){if(void 0===i)throw Error(p(407));i=i()}else{if(i=u(),null===rZ)throw Error(p(349));0!=(30&rS)||ni(o,u,i)}s.memoizedState=i;var w={value:i,getSnapshot:u};return s.queue=w,vi(ki.bind(null,o,w,a),[a]),o.flags|=2048,li(9,mi.bind(null,o,w,i,u),void 0,null),i},useId:function(){var a=ci(),u=rZ.identifierPrefix;if(t8){var i=t2,o=t1;u=":"+u+"R"+(i=(o&~(1<<32-e3(o)-1)).toString(32)+i),0<(i=rL++)&&(u+="H"+i.toString(32)),u+=":"}else u=":"+u+"r"+(i=rN++).toString(32)+":";return a.memoizedState=u},unstable_isNewReconciler:!1},rD={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(a){return Di(di(),rx.memoizedState,a)},useTransition:function(){return[fi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},rM={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(a){var u=di();return null===rx?u.memoizedState=a:Di(u,rx.memoizedState,a)},useTransition:function(){return[gi(ei)[0],di().memoizedState]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(a,u){try{var i="",o=u;do i+=Pa(o),o=o.return;while(o);var s=i}catch(a){s="\nError generating stack: "+a.message+"\n"+a.stack}return{value:a,source:u,stack:s,digest:null}}function Li(a,u,i){return{value:a,source:null,stack:null!=i?i:null,digest:null!=u?u:null}}function Mi(a,u){try{console.error(u.value)}catch(a){setTimeout(function(){throw a})}}var rR="function"==typeof WeakMap?WeakMap:Map;function Oi(a,u,i){(i=ch(-1,i)).tag=3,i.payload={element:null};var o=u.value;return i.callback=function(){lt||(lt=!0,lr=o),Mi(a,u)},i}function Ri(a,u,i){(i=ch(-1,i)).tag=3;var o=a.type.getDerivedStateFromError;if("function"==typeof o){var s=u.value;i.payload=function(){return o(s)},i.callback=function(){Mi(a,u)}}var w=a.stateNode;return null!==w&&"function"==typeof w.componentDidCatch&&(i.callback=function(){Mi(a,u),"function"!=typeof o&&(null===ll?ll=new Set([this]):ll.add(this));var i=u.stack;this.componentDidCatch(u.value,{componentStack:null!==i?i:""})}),i}function Ti(a,u,i){var o=a.pingCache;if(null===o){o=a.pingCache=new rR;var s=new Set;o.set(u,s)}else void 0===(s=o.get(u))&&(s=new Set,o.set(u,s));s.has(i)||(s.add(i),a=Ui.bind(null,a,u,i),u.then(a,a))}function Vi(a){do{var u;if((u=13===a.tag)&&(u=null===(u=a.memoizedState)||null!==u.dehydrated),u)return a;a=a.return}while(null!==a);return null}function Wi(a,u,i,o,s){return 0==(1&a.mode)?a===u?a.flags|=65536:(a.flags|=128,i.flags|=131072,i.flags&=-52805,1===i.tag&&(null===i.alternate?i.tag=17:((u=ch(-1,1)).tag=2,dh(i,u,1))),i.lanes|=1):(a.flags|=65536,a.lanes=s),a}var rI=en.ReactCurrentOwner,rF=!1;function Yi(a,u,i,o){u.child=null===a?rc(u,null,i,o):rs(u,a.child,i,o)}function Zi(a,u,i,o,s){i=i.render;var w=u.ref;return(Tg(u,s),o=Xh(a,u,i,o,w,s),i=bi(),null===a||rF)?(t8&&i&&vg(u),u.flags|=1,Yi(a,u,o,s),u.child):(u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~s,$i(a,u,s))}function aj(a,u,i,o,s){if(null===a){var w=i.type;return"function"!=typeof w||bj(w)||void 0!==w.defaultProps||null!==i.compare||void 0!==i.defaultProps?((a=yh(i.type,null,o,u,u.mode,s)).ref=u.ref,a.return=u,u.child=a):(u.tag=15,u.type=w,cj(a,u,w,o,s))}if(w=a.child,0==(a.lanes&s)){var x=w.memoizedProps;if((i=null!==(i=i.compare)?i:Ie)(x,o)&&a.ref===u.ref)return $i(a,u,s)}return u.flags|=1,(a=wh(w,o)).ref=u.ref,a.return=u,u.child=a}function cj(a,u,i,o,s){if(null!==a){var w=a.memoizedProps;if(Ie(w,o)&&a.ref===u.ref){if(rF=!1,u.pendingProps=o=w,0==(a.lanes&s))return u.lanes=a.lanes,$i(a,u,s);0!=(131072&a.flags)&&(rF=!0)}}return dj(a,u,i,o,s)}function ej(a,u,i){var o=u.pendingProps,s=o.children,w=null!==a?a.memoizedState:null;if("hidden"===o.mode){if(0==(1&u.mode))u.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(r1,r0),r0|=i;else{if(0==(1073741824&i))return a=null!==w?w.baseLanes|i:i,u.lanes=u.childLanes=1073741824,u.memoizedState={baseLanes:a,cachePool:null,transitions:null},u.updateQueue=null,G(r1,r0),r0|=a,null;u.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==w?w.baseLanes:i,G(r1,r0),r0|=o}}else null!==w?(o=w.baseLanes|i,u.memoizedState=null):o=i,G(r1,r0),r0|=o;return Yi(a,u,s,i),u.child}function hj(a,u){var i=u.ref;(null===a&&null!==i||null!==a&&a.ref!==i)&&(u.flags|=512,u.flags|=2097152)}function dj(a,u,i,o,s){var w=Zf(i)?tB:tA.current;return(w=Yf(u,w),Tg(u,s),i=Xh(a,u,i,o,w,s),o=bi(),null===a||rF)?(t8&&o&&vg(u),u.flags|=1,Yi(a,u,i,s),u.child):(u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~s,$i(a,u,s))}function ij(a,u,i,o,s){if(Zf(i)){var w=!0;cg(u)}else w=!1;if(Tg(u,s),null===u.stateNode)jj(a,u),ph(u,i,o),rh(u,i,o,s),o=!0;else if(null===a){var x=u.stateNode,C=u.memoizedProps;x.props=C;var _=x.context,j=i.contextType;j="object"==typeof j&&null!==j?Vg(j):Yf(u,j=Zf(i)?tB:tA.current);var z=i.getDerivedStateFromProps,P="function"==typeof z||"function"==typeof x.getSnapshotBeforeUpdate;P||"function"!=typeof x.UNSAFE_componentWillReceiveProps&&"function"!=typeof x.componentWillReceiveProps||(C!==o||_!==j)&&qh(u,x,o,j),ra=!1;var U=u.memoizedState;x.state=U,gh(u,o,x,s),_=u.memoizedState,C!==o||U!==_||tQ.current||ra?("function"==typeof z&&(kh(u,i,z,o),_=u.memoizedState),(C=ra||oh(u,i,C,o,U,_,j))?(P||"function"!=typeof x.UNSAFE_componentWillMount&&"function"!=typeof x.componentWillMount||("function"==typeof x.componentWillMount&&x.componentWillMount(),"function"==typeof x.UNSAFE_componentWillMount&&x.UNSAFE_componentWillMount()),"function"==typeof x.componentDidMount&&(u.flags|=4194308)):("function"==typeof x.componentDidMount&&(u.flags|=4194308),u.memoizedProps=o,u.memoizedState=_),x.props=o,x.state=_,x.context=j,o=C):("function"==typeof x.componentDidMount&&(u.flags|=4194308),o=!1)}else{x=u.stateNode,bh(a,u),C=u.memoizedProps,j=u.type===u.elementType?C:Lg(u.type,C),x.props=j,P=u.pendingProps,U=x.context,_="object"==typeof(_=i.contextType)&&null!==_?Vg(_):Yf(u,_=Zf(i)?tB:tA.current);var V=i.getDerivedStateFromProps;(z="function"==typeof V||"function"==typeof x.getSnapshotBeforeUpdate)||"function"!=typeof x.UNSAFE_componentWillReceiveProps&&"function"!=typeof x.componentWillReceiveProps||(C!==P||U!==_)&&qh(u,x,o,_),ra=!1,U=u.memoizedState,x.state=U,gh(u,o,x,s);var B=u.memoizedState;C!==P||U!==B||tQ.current||ra?("function"==typeof V&&(kh(u,i,V,o),B=u.memoizedState),(j=ra||oh(u,i,j,o,U,B,_)||!1)?(z||"function"!=typeof x.UNSAFE_componentWillUpdate&&"function"!=typeof x.componentWillUpdate||("function"==typeof x.componentWillUpdate&&x.componentWillUpdate(o,B,_),"function"==typeof x.UNSAFE_componentWillUpdate&&x.UNSAFE_componentWillUpdate(o,B,_)),"function"==typeof x.componentDidUpdate&&(u.flags|=4),"function"==typeof x.getSnapshotBeforeUpdate&&(u.flags|=1024)):("function"!=typeof x.componentDidUpdate||C===a.memoizedProps&&U===a.memoizedState||(u.flags|=4),"function"!=typeof x.getSnapshotBeforeUpdate||C===a.memoizedProps&&U===a.memoizedState||(u.flags|=1024),u.memoizedProps=o,u.memoizedState=B),x.props=o,x.state=B,x.context=_,o=j):("function"!=typeof x.componentDidUpdate||C===a.memoizedProps&&U===a.memoizedState||(u.flags|=4),"function"!=typeof x.getSnapshotBeforeUpdate||C===a.memoizedProps&&U===a.memoizedState||(u.flags|=1024),o=!1)}return kj(a,u,i,o,w,s)}function kj(a,u,i,o,s,w){hj(a,u);var x=0!=(128&u.flags);if(!o&&!x)return s&&dg(u,i,!1),$i(a,u,w);o=u.stateNode,rI.current=u;var C=x&&"function"!=typeof i.getDerivedStateFromError?null:o.render();return u.flags|=1,null!==a&&x?(u.child=rs(u,a.child,null,w),u.child=rs(u,null,C,w)):Yi(a,u,C,w),u.memoizedState=o.state,s&&dg(u,i,!0),u.child}function lj(a){var u=a.stateNode;u.pendingContext?ag(a,u.pendingContext,u.pendingContext!==u.context):u.context&&ag(a,u.context,!1),Ih(a,u.containerInfo)}function mj(a,u,i,o,s){return Ig(),Jg(s),u.flags|=256,Yi(a,u,i,o),u.child}var rO={dehydrated:null,treeContext:null,retryLane:0};function oj(a){return{baseLanes:a,cachePool:null,transitions:null}}function pj(a,u,i){var o,s=u.pendingProps,w=rv.current,x=!1,C=0!=(128&u.flags);if((o=C)||(o=(null===a||null!==a.memoizedState)&&0!=(2&w)),o?(x=!0,u.flags&=-129):(null===a||null!==a.memoizedState)&&(w|=1),G(rv,1&w),null===a)return(Eg(u),null!==(a=u.memoizedState)&&null!==(a=a.dehydrated))?(0==(1&u.mode)?u.lanes=1:"$!"===a.data?u.lanes=8:u.lanes=1073741824,null):(C=s.children,a=s.fallback,x?(s=u.mode,x=u.child,C={mode:"hidden",children:C},0==(1&s)&&null!==x?(x.childLanes=0,x.pendingProps=C):x=qj(C,s,0,null),a=Ah(a,s,i,null),x.return=u,a.return=u,x.sibling=a,u.child=x,u.child.memoizedState=oj(i),u.memoizedState=rO,a):rj(u,C));if(null!==(w=a.memoizedState)&&null!==(o=w.dehydrated))return sj(a,u,C,s,o,w,i);if(x){x=s.fallback,C=u.mode,o=(w=a.child).sibling;var _={mode:"hidden",children:s.children};return 0==(1&C)&&u.child!==w?((s=u.child).childLanes=0,s.pendingProps=_,u.deletions=null):(s=wh(w,_)).subtreeFlags=14680064&w.subtreeFlags,null!==o?x=wh(o,x):(x=Ah(x,C,i,null),x.flags|=2),x.return=u,s.return=u,s.sibling=x,u.child=s,s=x,x=u.child,C=null===(C=a.child.memoizedState)?oj(i):{baseLanes:C.baseLanes|i,cachePool:null,transitions:C.transitions},x.memoizedState=C,x.childLanes=a.childLanes&~i,u.memoizedState=rO,s}return a=(x=a.child).sibling,s=wh(x,{mode:"visible",children:s.children}),0==(1&u.mode)&&(s.lanes=i),s.return=u,s.sibling=null,null!==a&&(null===(i=u.deletions)?(u.deletions=[a],u.flags|=16):i.push(a)),u.child=s,u.memoizedState=null,s}function rj(a,u){return(u=qj({mode:"visible",children:u},a.mode,0,null)).return=a,a.child=u}function tj(a,u,i,o){return null!==o&&Jg(o),rs(u,a.child,null,i),a=rj(u,u.pendingProps.children),a.flags|=2,u.memoizedState=null,a}function sj(a,u,i,o,s,w,x){if(i)return 256&u.flags?(u.flags&=-257,tj(a,u,x,o=Li(Error(p(422))))):null!==u.memoizedState?(u.child=a.child,u.flags|=128,null):(w=o.fallback,s=u.mode,o=qj({mode:"visible",children:o.children},s,0,null),w=Ah(w,s,x,null),w.flags|=2,o.return=u,w.return=u,o.sibling=w,u.child=o,0!=(1&u.mode)&&rs(u,a.child,null,x),u.child.memoizedState=oj(x),u.memoizedState=rO,w);if(0==(1&u.mode))return tj(a,u,x,null);if("$!"===s.data){if(o=s.nextSibling&&s.nextSibling.dataset)var C=o.dgst;return o=C,tj(a,u,x,o=Li(w=Error(p(419)),o,void 0))}if(C=0!=(x&a.childLanes),rF||C){if(null!==(o=rZ)){switch(x&-x){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(s=0!=(s&(o.suspendedLanes|x))?0:s)&&s!==w.retryLane&&(w.retryLane=s,Zg(a,s),mh(o,a,s,-1))}return uj(),tj(a,u,x,o=Li(Error(p(421))))}return"$?"===s.data?(u.flags|=128,u.child=a.child,u=vj.bind(null,a),s._reactRetry=u,null):(a=w.treeContext,t4=Lf(s.nextSibling),t3=u,t8=!0,t6=null,null!==a&&(tX[tJ++]=t1,tX[tJ++]=t2,tX[tJ++]=t0,t1=a.id,t2=a.overflow,t0=u),u=rj(u,o.children),u.flags|=4096,u)}function wj(a,u,i){a.lanes|=u;var o=a.alternate;null!==o&&(o.lanes|=u),Sg(a.return,u,i)}function xj(a,u,i,o,s){var w=a.memoizedState;null===w?a.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:s}:(w.isBackwards=u,w.rendering=null,w.renderingStartTime=0,w.last=o,w.tail=i,w.tailMode=s)}function yj(a,u,i){var o=u.pendingProps,s=o.revealOrder,w=o.tail;if(Yi(a,u,o.children,i),0!=(2&(o=rv.current)))o=1&o|2,u.flags|=128;else{if(null!==a&&0!=(128&a.flags))e:for(a=u.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&wj(a,i,u);else if(19===a.tag)wj(a,i,u);else if(null!==a.child){a.child.return=a,a=a.child;continue}if(a===u)break;for(;null===a.sibling;){if(null===a.return||a.return===u)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}o&=1}if(G(rv,o),0==(1&u.mode))u.memoizedState=null;else switch(s){case"forwards":for(s=null,i=u.child;null!==i;)null!==(a=i.alternate)&&null===Mh(a)&&(s=i),i=i.sibling;null===(i=s)?(s=u.child,u.child=null):(s=i.sibling,i.sibling=null),xj(u,!1,s,i,w);break;case"backwards":for(i=null,s=u.child,u.child=null;null!==s;){if(null!==(a=s.alternate)&&null===Mh(a)){u.child=s;break}a=s.sibling,s.sibling=i,i=s,s=a}xj(u,!0,i,null,w);break;case"together":xj(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function jj(a,u){0==(1&u.mode)&&null!==a&&(a.alternate=null,u.alternate=null,u.flags|=2)}function $i(a,u,i){if(null!==a&&(u.dependencies=a.dependencies),r4|=u.lanes,0==(i&u.childLanes))return null;if(null!==a&&u.child!==a.child)throw Error(p(153));if(null!==u.child){for(i=wh(a=u.child,a.pendingProps),u.child=i,i.return=u;null!==a.sibling;)a=a.sibling,(i=i.sibling=wh(a,a.pendingProps)).return=u;i.sibling=null}return u.child}function zj(a,u,i){switch(u.tag){case 3:lj(u),Ig();break;case 5:Kh(u);break;case 1:Zf(u.type)&&cg(u);break;case 4:Ih(u,u.stateNode.containerInfo);break;case 10:var o=u.type._context,s=u.memoizedProps.value;G(t9,o._currentValue),o._currentValue=s;break;case 13:if(null!==(o=u.memoizedState)){if(null!==o.dehydrated)return G(rv,1&rv.current),u.flags|=128,null;if(0!=(i&u.child.childLanes))return pj(a,u,i);return G(rv,1&rv.current),null!==(a=$i(a,u,i))?a.sibling:null}G(rv,1&rv.current);break;case 19:if(o=0!=(i&u.childLanes),0!=(128&a.flags)){if(o)return yj(a,u,i);u.flags|=128}if(null!==(s=u.memoizedState)&&(s.rendering=null,s.tail=null,s.lastEffect=null),G(rv,rv.current),!o)return null;break;case 22:case 23:return u.lanes=0,ej(a,u,i)}return $i(a,u,i)}function Ej(a,u){if(!t8)switch(a.tailMode){case"hidden":u=a.tail;for(var i=null;null!==u;)null!==u.alternate&&(i=u),u=u.sibling;null===i?a.tail=null:i.sibling=null;break;case"collapsed":i=a.tail;for(var o=null;null!==i;)null!==i.alternate&&(o=i),i=i.sibling;null===o?u||null===a.tail?a.tail=null:a.tail.sibling=null:o.sibling=null}}function S(a){var u=null!==a.alternate&&a.alternate.child===a.child,i=0,o=0;if(u)for(var s=a.child;null!==s;)i|=s.lanes|s.childLanes,o|=14680064&s.subtreeFlags,o|=14680064&s.flags,s.return=a,s=s.sibling;else for(s=a.child;null!==s;)i|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=a,s=s.sibling;return a.subtreeFlags|=o,a.childLanes=i,u}function Fj(a,u,i){var o=u.pendingProps;switch(wg(u),u.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(u),null;case 1:case 17:return Zf(u.type)&&$f(),S(u),null;case 3:return o=u.stateNode,Jh(),E(tQ),E(tA),Oh(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===a||null===a.child)&&(Gg(u)?u.flags|=4:null===a||a.memoizedState.isDehydrated&&0==(256&u.flags)||(u.flags|=1024,null!==t6&&(Gj(t6),t6=null))),w(a,u),S(u),null;case 5:Lh(u);var _=Hh(rm.current);if(i=u.type,null!==a&&null!=u.stateNode)x(a,u,i,o,_),a.ref!==u.ref&&(u.flags|=512,u.flags|=2097152);else{if(!o){if(null===u.stateNode)throw Error(p(166));return S(u),null}if(a=Hh(rp.current),Gg(u)){o=u.stateNode,i=u.type;var j=u.memoizedProps;switch(o[tD]=u,o[tM]=j,a=0!=(1&u.mode),i){case"dialog":D("cancel",o),D("close",o);break;case"iframe":case"object":case"embed":D("load",o);break;case"video":case"audio":for(_=0;_",a=a.removeChild(a.firstChild)):"string"==typeof o.is?a=z.createElement(i,{is:o.is}):(a=z.createElement(i),"select"===i&&(z=a,o.multiple?z.multiple=!0:o.size&&(z.size=o.size))):a=z.createElementNS(a,i),a[tD]=u,a[tM]=o,s(a,u,!1,!1),u.stateNode=a;e:{switch(z=vb(i,o),i){case"dialog":D("cancel",a),D("close",a),_=o;break;case"iframe":case"object":case"embed":D("load",a),_=o;break;case"video":case"audio":for(_=0;_le&&(u.flags|=128,o=!0,Ej(j,!1),u.lanes=4194304)}}else{if(!o){if(null!==(a=Mh(z))){if(u.flags|=128,o=!0,null!==(i=a.updateQueue)&&(u.updateQueue=i,u.flags|=4),Ej(j,!0),null===j.tail&&"hidden"===j.tailMode&&!z.alternate&&!t8)return S(u),null}else 2*eG()-j.renderingStartTime>le&&1073741824!==i&&(u.flags|=128,o=!0,Ej(j,!1),u.lanes=4194304)}j.isBackwards?(z.sibling=u.child,u.child=z):(null!==(i=j.last)?i.sibling=z:u.child=z,j.last=z)}if(null!==j.tail)return u=j.tail,j.rendering=u,j.tail=u.sibling,j.renderingStartTime=eG(),u.sibling=null,i=rv.current,G(rv,o?1&i|2:1&i),u;return S(u),null;case 22:case 23:return Ij(),o=null!==u.memoizedState,null!==a&&null!==a.memoizedState!==o&&(u.flags|=8192),o&&0!=(1&u.mode)?0!=(1073741824&r0)&&(S(u),6&u.subtreeFlags&&(u.flags|=8192)):S(u),null;case 24:case 25:return null}throw Error(p(156,u.tag))}function Jj(a,u){switch(wg(u),u.tag){case 1:return Zf(u.type)&&$f(),65536&(a=u.flags)?(u.flags=-65537&a|128,u):null;case 3:return Jh(),E(tQ),E(tA),Oh(),0!=(65536&(a=u.flags))&&0==(128&a)?(u.flags=-65537&a|128,u):null;case 5:return Lh(u),null;case 13:if(E(rv),null!==(a=u.memoizedState)&&null!==a.dehydrated){if(null===u.alternate)throw Error(p(340));Ig()}return 65536&(a=u.flags)?(u.flags=-65537&a|128,u):null;case 19:return E(rv),null;case 4:return Jh(),null;case 10:return Rg(u.type._context),null;case 22:case 23:return Ij(),null;default:return null}}s=function(a,u){for(var i=u.child;null!==i;){if(5===i.tag||6===i.tag)a.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===u)break;for(;null===i.sibling;){if(null===i.return||i.return===u)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},w=function(){},x=function(a,u,i,o){var s=a.memoizedProps;if(s!==o){a=u.stateNode,Hh(rp.current);var w,x=null;switch(i){case"input":s=Ya(a,s),o=Ya(a,o),x=[];break;case"select":s=eS({},s,{value:void 0}),o=eS({},o,{value:void 0}),x=[];break;case"textarea":s=gb(a,s),o=gb(a,o),x=[];break;default:"function"!=typeof s.onClick&&"function"==typeof o.onClick&&(a.onclick=Bf)}for(j in ub(i,o),i=null,s)if(!o.hasOwnProperty(j)&&s.hasOwnProperty(j)&&null!=s[j]){if("style"===j){var C=s[j];for(w in C)C.hasOwnProperty(w)&&(i||(i={}),i[w]="")}else"dangerouslySetInnerHTML"!==j&&"children"!==j&&"suppressContentEditableWarning"!==j&&"suppressHydrationWarning"!==j&&"autoFocus"!==j&&(U.hasOwnProperty(j)?x||(x=[]):(x=x||[]).push(j,null))}for(j in o){var _=o[j];if(C=null!=s?s[j]:void 0,o.hasOwnProperty(j)&&_!==C&&(null!=_||null!=C)){if("style"===j){if(C){for(w in C)!C.hasOwnProperty(w)||_&&_.hasOwnProperty(w)||(i||(i={}),i[w]="");for(w in _)_.hasOwnProperty(w)&&C[w]!==_[w]&&(i||(i={}),i[w]=_[w])}else i||(x||(x=[]),x.push(j,i)),i=_}else"dangerouslySetInnerHTML"===j?(_=_?_.__html:void 0,C=C?C.__html:void 0,null!=_&&C!==_&&(x=x||[]).push(j,_)):"children"===j?"string"!=typeof _&&"number"!=typeof _||(x=x||[]).push(j,""+_):"suppressContentEditableWarning"!==j&&"suppressHydrationWarning"!==j&&(U.hasOwnProperty(j)?(null!=_&&"onScroll"===j&&D("scroll",a),x||C===_||(x=[])):(x=x||[]).push(j,_))}}i&&(x=x||[]).push("style",i);var j=x;(u.updateQueue=j)&&(u.flags|=4)}},C=function(a,u,i,o){i!==o&&(u.flags|=4)};var rU=!1,rV=!1,rW="function"==typeof WeakSet?WeakSet:Set,rA=null;function Mj(a,u){var i=a.ref;if(null!==i){if("function"==typeof i)try{i(null)}catch(i){W(a,u,i)}else i.current=null}}function Nj(a,u,i){try{i()}catch(i){W(a,u,i)}}var rQ=!1;function Pj(a,u){if(tC=nk,Ne(a=Me())){if("selectionStart"in a)var i={start:a.selectionStart,end:a.selectionEnd};else e:{var o=(i=(i=a.ownerDocument)&&i.defaultView||window).getSelection&&i.getSelection();if(o&&0!==o.rangeCount){i=o.anchorNode;var s,w=o.anchorOffset,x=o.focusNode;o=o.focusOffset;try{i.nodeType,x.nodeType}catch(a){i=null;break e}var C=0,_=-1,j=-1,z=0,P=0,U=a,V=null;n:for(;;){for(;U!==i||0!==w&&3!==U.nodeType||(_=C+w),U!==x||0!==o&&3!==U.nodeType||(j=C+o),3===U.nodeType&&(C+=U.nodeValue.length),null!==(s=U.firstChild);)V=U,U=s;for(;;){if(U===a)break n;if(V===i&&++z===w&&(_=C),V===x&&++P===o&&(j=C),null!==(s=U.nextSibling))break;V=(U=V).parentNode}U=s}i=-1===_||-1===j?null:{start:_,end:j}}else i=null}i=i||{start:0,end:0}}else i=null;for(t_={focusedElem:a,selectionRange:i},nk=!1,rA=u;null!==rA;)if(a=(u=rA).child,0!=(1028&u.subtreeFlags)&&null!==a)a.return=u,rA=a;else for(;null!==rA;){u=rA;try{var B=u.alternate;if(0!=(1024&u.flags))switch(u.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==B){var $=B.memoizedProps,Y=B.memoizedState,Z=u.stateNode,X=Z.getSnapshotBeforeUpdate(u.elementType===u.type?$:Lg(u.type,$),Y);Z.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var ee=u.stateNode.containerInfo;1===ee.nodeType?ee.textContent="":9===ee.nodeType&&ee.documentElement&&ee.removeChild(ee.documentElement);break;default:throw Error(p(163))}}catch(a){W(u,u.return,a)}if(null!==(a=u.sibling)){a.return=u.return,rA=a;break}rA=u.return}return B=rQ,rQ=!1,B}function Qj(a,u,i){var o=u.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var s=o=o.next;do{if((s.tag&a)===a){var w=s.destroy;s.destroy=void 0,void 0!==w&&Nj(u,i,w)}s=s.next}while(s!==o)}}function Rj(a,u){if(null!==(u=null!==(u=u.updateQueue)?u.lastEffect:null)){var i=u=u.next;do{if((i.tag&a)===a){var o=i.create;i.destroy=o()}i=i.next}while(i!==u)}}function Sj(a){var u=a.ref;if(null!==u){var i=a.stateNode;a.tag,a=i,"function"==typeof u?u(a):u.current=a}}function Tj(a){var u=a.alternate;null!==u&&(a.alternate=null,Tj(u)),a.child=null,a.deletions=null,a.sibling=null,5===a.tag&&null!==(u=a.stateNode)&&(delete u[tD],delete u[tM],delete u[tI],delete u[tF],delete u[tO]),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}function Vj(a){e:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(2&a.flags||null===a.child||4===a.tag)continue e;a.child.return=a,a=a.child}if(!(2&a.flags))return a.stateNode}}function Wj(a,u,i){var o=a.tag;if(5===o||6===o)a=a.stateNode,u?8===i.nodeType?i.parentNode.insertBefore(a,u):i.insertBefore(a,u):(8===i.nodeType?(u=i.parentNode).insertBefore(a,i):(u=i).appendChild(a),null!=(i=i._reactRootContainer)||null!==u.onclick||(u.onclick=Bf));else if(4!==o&&null!==(a=a.child))for(Wj(a,u,i),a=a.sibling;null!==a;)Wj(a,u,i),a=a.sibling}function Xj(a,u,i){var o=a.tag;if(5===o||6===o)a=a.stateNode,u?i.insertBefore(a,u):i.appendChild(a);else if(4!==o&&null!==(a=a.child))for(Xj(a,u,i),a=a.sibling;null!==a;)Xj(a,u,i),a=a.sibling}var rB=null,r$=!1;function Zj(a,u,i){for(i=i.child;null!==i;)ak(a,u,i),i=i.sibling}function ak(a,u,i){if(e2&&"function"==typeof e2.onCommitFiberUnmount)try{e2.onCommitFiberUnmount(e1,i)}catch(a){}switch(i.tag){case 5:rV||Mj(i,u);case 6:var o=rB,s=r$;rB=null,Zj(a,u,i),rB=o,r$=s,null!==rB&&(r$?(a=rB,i=i.stateNode,8===a.nodeType?a.parentNode.removeChild(i):a.removeChild(i)):rB.removeChild(i.stateNode));break;case 18:null!==rB&&(r$?(a=rB,i=i.stateNode,8===a.nodeType?Kf(a.parentNode,i):1===a.nodeType&&Kf(a,i),bd(a)):Kf(rB,i.stateNode));break;case 4:o=rB,s=r$,rB=i.stateNode.containerInfo,r$=!0,Zj(a,u,i),rB=o,r$=s;break;case 0:case 11:case 14:case 15:if(!rV&&null!==(o=i.updateQueue)&&null!==(o=o.lastEffect)){s=o=o.next;do{var w=s,x=w.destroy;w=w.tag,void 0!==x&&(0!=(2&w)?Nj(i,u,x):0!=(4&w)&&Nj(i,u,x)),s=s.next}while(s!==o)}Zj(a,u,i);break;case 1:if(!rV&&(Mj(i,u),"function"==typeof(o=i.stateNode).componentWillUnmount))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(a){W(i,u,a)}Zj(a,u,i);break;case 21:default:Zj(a,u,i);break;case 22:1&i.mode?(rV=(o=rV)||null!==i.memoizedState,Zj(a,u,i),rV=o):Zj(a,u,i)}}function bk(a){var u=a.updateQueue;if(null!==u){a.updateQueue=null;var i=a.stateNode;null===i&&(i=a.stateNode=new rW),u.forEach(function(u){var o=ck.bind(null,a,u);i.has(u)||(i.add(u),u.then(o,o))})}}function dk(a,u){var i=u.deletions;if(null!==i)for(var o=0;os&&(s=x),o&=~w}if(o=s,10<(o=(120>(o=eG()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*rH(o/1960))-o)){a.timeoutHandle=tz(Qk.bind(null,a,r9,ln),o);break}Qk(a,r9,ln);break;default:throw Error(p(329))}}}return Ek(a,eG()),a.callbackNode===i?Hk.bind(null,a):null}function Ok(a,u){var i=r5;return a.current.memoizedState.isDehydrated&&(Lk(a,u).flags|=256),2!==(a=Jk(a,u))&&(u=r9,r9=i,null!==u&&Gj(u)),a}function Gj(a){null===r9?r9=a:r9.push.apply(r9,a)}function Pk(a){for(var u=a;;){if(16384&u.flags){var i=u.updateQueue;if(null!==i&&null!==(i=i.stores))for(var o=0;oa?16:a,null===lu)var o=!1;else{if(a=lu,lu=null,lo=0,0!=(6&rq))throw Error(p(331));var s=rq;for(rq|=4,rA=a.current;null!==rA;){var w=rA,x=w.child;if(0!=(16&rA.flags)){var C=w.deletions;if(null!==C){for(var _=0;_eG()-r7?Lk(a,0):r6|=i),Ek(a,u)}function Zk(a,u){0===u&&(0==(1&a.mode)?u=1:(u=e5,0==(130023424&(e5<<=1))&&(e5=4194304)));var i=L();null!==(a=Zg(a,u))&&(Ac(a,u,i),Ek(a,i))}function vj(a){var u=a.memoizedState,i=0;null!==u&&(i=u.retryLane),Zk(a,i)}function ck(a,u){var i=0;switch(a.tag){case 13:var o=a.stateNode,s=a.memoizedState;null!==s&&(i=s.retryLane);break;case 19:o=a.stateNode;break;default:throw Error(p(314))}null!==o&&o.delete(u),Zk(a,i)}function al(a,u,i,o){this.tag=a,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,u,i,o){return new al(a,u,i,o)}function bj(a){return!(!(a=a.prototype)||!a.isReactComponent)}function $k(a){if("function"==typeof a)return bj(a)?1:0;if(null!=a){if((a=a.$$typeof)===ef)return 11;if(a===em)return 14}return 2}function wh(a,u){var i=a.alternate;return null===i?((i=Bg(a.tag,u,a.key,a.mode)).elementType=a.elementType,i.type=a.type,i.stateNode=a.stateNode,i.alternate=a,a.alternate=i):(i.pendingProps=u,i.type=a.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=14680064&a.flags,i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,u=a.dependencies,i.dependencies=null===u?null:{lanes:u.lanes,firstContext:u.firstContext},i.sibling=a.sibling,i.index=a.index,i.ref=a.ref,i}function yh(a,u,i,o,s,w){var x=2;if(o=a,"function"==typeof a)bj(a)&&(x=1);else if("string"==typeof a)x=5;else e:switch(a){case ea:return Ah(i.children,s,w,u);case eu:x=8,s|=8;break;case eo:return(a=Bg(12,i,u,2|s)).elementType=eo,a.lanes=w,a;case ep:return(a=Bg(13,i,u,s)).elementType=ep,a.lanes=w,a;case eg:return(a=Bg(19,i,u,s)).elementType=eg,a.lanes=w,a;case eb:return qj(i,s,w,u);default:if("object"==typeof a&&null!==a)switch(a.$$typeof){case es:x=10;break e;case ec:x=9;break e;case ef:x=11;break e;case em:x=14;break e;case ev:x=16,o=null;break e}throw Error(p(130,null==a?a:typeof a,""))}return(u=Bg(x,i,u,s)).elementType=a,u.type=o,u.lanes=w,u}function Ah(a,u,i,o){return(a=Bg(7,a,o,u)).lanes=i,a}function qj(a,u,i,o){return(a=Bg(22,a,o,u)).elementType=eb,a.lanes=i,a.stateNode={isHidden:!1},a}function xh(a,u,i){return(a=Bg(6,a,null,u)).lanes=i,a}function zh(a,u,i){return(u=Bg(4,null!==a.children?a.children:[],a.key,u)).lanes=i,u.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},u}function bl(a,u,i,o,s){this.tag=u,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=o,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function cl(a,u,i,o,s,w,x,C,_){return a=new bl(a,u,i,C,_),1===u?(u=1,!0===w&&(u|=8)):u=0,w=Bg(3,null,null,u),a.current=w,w.stateNode=a,w.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(w),a}function dl(a,u,i){var o=3>>1,s=a[o];if(0>>1;og(C,i))_g(j,C)?(a[o]=j,a[_]=i,o=_):(a[o]=C,a[x]=i,o=x);else if(_g(j,i))a[o]=j,a[_]=i,o=_;else break}}return u}function g(a,u){var i=a.sortIndex-u.sortIndex;return 0!==i?i:a.id-u.id}if("object"==typeof performance&&"function"==typeof performance.now){var i,o=performance;u.unstable_now=function(){return o.now()}}else{var s=Date,w=s.now();u.unstable_now=function(){return s.now()-w}}var x=[],C=[],_=1,j=null,z=3,P=!1,U=!1,V=!1,B="function"==typeof setTimeout?setTimeout:null,$="function"==typeof clearTimeout?clearTimeout:null,Y="undefined"!=typeof setImmediate?setImmediate:null;function G(a){for(var u=h(C);null!==u;){if(null===u.callback)k(C);else if(u.startTime<=a)k(C),u.sortIndex=u.expirationTime,f(x,u);else break;u=h(C)}}function H(a){if(V=!1,G(a),!U){if(null!==h(x))U=!0,I(J);else{var u=h(C);null!==u&&K(H,u.startTime-a)}}}function J(a,i){U=!1,V&&(V=!1,$(ee),ee=-1),P=!0;var o=z;try{for(G(i),j=h(x);null!==j&&(!(j.expirationTime>i)||a&&!M());){var s=j.callback;if("function"==typeof s){j.callback=null,z=j.priorityLevel;var w=s(j.expirationTime<=i);i=u.unstable_now(),"function"==typeof w?j.callback=w:j===h(x)&&k(x),G(i)}else k(x);j=h(x)}if(null!==j)var _=!0;else{var B=h(C);null!==B&&K(H,B.startTime-i),_=!1}return _}finally{j=null,z=o,P=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var Z=!1,X=null,ee=-1,en=5,et=-1;function M(){return!(u.unstable_now()-eta||125s?(a.sortIndex=o,f(C,a),null===h(x)&&a===h(C)&&(V?($(ee),ee=-1):V=!0,K(H,o-s))):(a.sortIndex=w,f(x,a),U||P||(U=!0,I(J))),a},u.unstable_shouldYield=M,u.unstable_wrapCallback=function(a){var u=z;return function(){var i=z;z=u;try{return a.apply(this,arguments)}finally{z=i}}}},63840:function(a,u,i){a.exports=i(60053)}}]); \ No newline at end of file diff --git a/web/_next/static/chunks/main-2527f7d762d278e5.js b/web/_next/static/chunks/main-2527f7d762d278e5.js new file mode 100644 index 00000000..af8efc0a --- /dev/null +++ b/web/_next/static/chunks/main-2527f7d762d278e5.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{84878:function(r,n){"use strict";function getDeploymentIdQueryOrEmptyString(){return""}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return getDeploymentIdQueryOrEmptyString}})},40037:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var r=/\((.*)\)/.exec(this.toString());return r?r[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(r,n){return n=this.concat.apply([],this),r>1&&n.some(Array.isArray)?n.flat(r-1):n},Array.prototype.flatMap=function(r,n){return this.map(r,n).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(r){if("function"!=typeof r)return this.then(r,r);var n=this.constructor||Promise;return this.then(function(o){return n.resolve(r()).then(function(){return o})},function(o){return n.resolve(r()).then(function(){throw o})})}),Object.fromEntries||(Object.fromEntries=function(r){return Array.from(r).reduce(function(r,n){return r[n[0]]=n[1],r},{})}),Array.prototype.at||(Array.prototype.at=function(r){var n=Math.trunc(r)||0;if(n<0&&(n+=this.length),!(n<0||n>=this.length))return this[n]})},25864:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addBasePath",{enumerable:!0,get:function(){return addBasePath}});let l=o(43776),u=o(32955);function addBasePath(r,n){return(0,u.normalizePathTrailingSlash)((0,l.addPathPrefix)(r,""))}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},72048:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addLocale",{enumerable:!0,get:function(){return addLocale}}),o(32955);let addLocale=function(r){for(var n=arguments.length,o=Array(n>1?n-1:0),l=1;l25){window.location.reload();return}clearTimeout(n),n=setTimeout(init,u>5?5e3:1e3)}o&&o.close();let{hostname:s,port:d}=location,f=getSocketProtocol(r.assetPrefix||""),h=r.assetPrefix.replace(/^\/+/,""),g=f+"://"+s+":"+d+(h?"/"+h:"");h.startsWith("http")&&(g=f+"://"+h.split("://",2)[1]),(o=new window.WebSocket(""+g+r.path)).onopen=handleOnline,o.onerror=handleDisconnect,o.onclose=handleDisconnect,o.onmessage=handleMessage}init()}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},45213:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"hasBasePath",{enumerable:!0,get:function(){return hasBasePath}});let l=o(6315);function hasBasePath(r){return(0,l.pathHasPrefix)(r,"")}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},44477:function(r,n){"use strict";let o;Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{DOMAttributeNames:function(){return l},isEqualNode:function(){return isEqualNode},default:function(){return initHeadManager}});let l={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function reactElementToDOM(r){let{type:n,props:o}=r,u=document.createElement(n);for(let r in o){if(!o.hasOwnProperty(r)||"children"===r||"dangerouslySetInnerHTML"===r||void 0===o[r])continue;let s=l[r]||r.toLowerCase();"script"===n&&("async"===s||"defer"===s||"noModule"===s)?u[s]=!!o[r]:u.setAttribute(s,o[r])}let{children:s,dangerouslySetInnerHTML:d}=o;return d?u.innerHTML=d.__html||"":s&&(u.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):""),u}function isEqualNode(r,n){if(r instanceof HTMLElement&&n instanceof HTMLElement){let o=n.getAttribute("nonce");if(o&&!r.getAttribute("nonce")){let l=n.cloneNode(!0);return l.setAttribute("nonce",""),l.nonce=o,o===r.nonce&&r.isEqualNode(l)}}return r.isEqualNode(n)}function initHeadManager(){return{mountedInstances:new Set,updateHead:r=>{let n={};r.forEach(r=>{if("link"===r.type&&r.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+r.props["data-href"]+'"]'))return;r.props.href=r.props["data-href"],r.props["data-href"]=void 0}let o=n[r.type]||[];o.push(r),n[r.type]=o});let l=n.title?n.title[0]:null,u="";if(l){let{children:r}=l.props;u="string"==typeof r?r:Array.isArray(r)?r.join(""):""}u!==document.title&&(document.title=u),["meta","base","link","style","script"].forEach(r=>{o(r,n[r]||[])})}}}o=(r,n)=>{let o=document.getElementsByTagName("head")[0],l=o.querySelector("meta[name=next-head-count]"),u=Number(l.content),s=[];for(let n=0,o=l.previousElementSibling;n{for(let n=0,o=s.length;n{var n;return null==(n=r.parentNode)?void 0:n.removeChild(r)}),f.forEach(r=>o.insertBefore(r,l)),l.content=(u-s.length+f.length).toString()},("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},90223:function(r,n,o){"use strict";let l,u,s,d,f,h,g,_,y,P,b,E;Object.defineProperty(n,"__esModule",{value:!0});let S=o(61757);Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{version:function(){return J},router:function(){return l},emitter:function(){return Z},initialize:function(){return initialize},hydrate:function(){return hydrate}});let R=o(38754);o(40037);let w=R._(o(67294)),O=R._(o(20745)),j=o(87768),A=R._(o(3745)),M=o(70637),C=o(89987),I=o(38011),x=o(14828),L=o(50510),N=o(11306),D=o(15091),k=R._(o(44477)),F=R._(o(37375)),U=R._(o(93129)),H=o(69513),B=o(24751),W=o(80676),q=o(24955),z=o(47786),G=o(45213),V=o(1158),X=o(77178),Y=o(98197),K=R._(o(2565)),Q=R._(o(42295)),$=R._(o(26077)),J="14.0.1",Z=(0,A.default)(),looseToArray=r=>[].slice.call(r),ee=!1;let Container=class Container extends w.default.Component{componentDidCatch(r,n){this.props.fn(r,n)}componentDidMount(){this.scrollToHash(),l.isSsr&&(u.isFallback||u.nextExport&&((0,I.isDynamicRoute)(l.pathname)||location.search||ee)||u.props&&u.props.__N_SSG&&(location.search||ee))&&l.replace(l.pathname+"?"+String((0,x.assign)((0,x.urlQueryToSearchParams)(l.query),new URLSearchParams(location.search))),s,{_h:1,shallow:!u.isFallback&&!ee}).catch(r=>{if(!r.cancelled)throw r})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:r}=location;if(!(r=r&&r.substring(1)))return;let n=document.getElementById(r);n&&setTimeout(()=>n.scrollIntoView(),0)}render(){return this.props.children}};async function initialize(r){void 0===r&&(r={}),Q.default.onSpanEnd($.default),u=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=u,E=u.defaultLocale;let n=u.assetPrefix||"";if(self.__next_set_public_path__(""+n+"/_next/"),(0,L.setConfig)({serverRuntimeConfig:{},publicRuntimeConfig:u.runtimeConfig||{}}),s=(0,N.getURL)(),(0,G.hasBasePath)(s)&&(s=(0,z.removeBasePath)(s)),u.scriptLoader){let{initScriptLoader:r}=o(52288);r(u.scriptLoader)}d=new F.default(u.buildId,n);let register=r=>{let[n,o]=r;return d.routeLoader.onEntrypoint(n,o)};return window.__NEXT_P&&window.__NEXT_P.map(r=>setTimeout(()=>register(r),0)),window.__NEXT_P=[],window.__NEXT_P.push=register,(h=(0,k.default)()).getIsSsr=()=>l.isSsr,f=document.getElementById("__next"),{assetPrefix:n}}function renderApp(r,n){return w.default.createElement(r,n)}function AppContainer(r){var n;let{children:o}=r,u=w.default.useMemo(()=>(0,X.adaptForAppRouterInstance)(l),[]);return w.default.createElement(Container,{fn:r=>renderError({App:y,err:r}).catch(r=>console.error("Error rendering page: ",r))},w.default.createElement(V.AppRouterContext.Provider,{value:u},w.default.createElement(Y.SearchParamsContext.Provider,{value:(0,X.adaptForSearchParams)(l)},w.default.createElement(X.PathnameContextProviderAdapter,{router:l,isAutoExport:null!=(n=self.__NEXT_DATA__.autoExport)&&n},w.default.createElement(Y.PathParamsContext.Provider,{value:(0,X.adaptForPathParams)(l)},w.default.createElement(M.RouterContext.Provider,{value:(0,B.makePublicRouterInstance)(l)},w.default.createElement(j.HeadManagerContext.Provider,{value:h},w.default.createElement(q.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}},o))))))))}let wrapApp=r=>n=>{let o={...n,Component:b,err:u.err,router:l};return w.default.createElement(AppContainer,null,renderApp(r,o))};function renderError(r){let{App:n,err:f}=r;return console.error(f),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),d.loadPage("/_error").then(l=>{let{page:u,styleSheets:s}=l;return(null==g?void 0:g.Component)===u?Promise.resolve().then(()=>S._(o(34570))).then(l=>Promise.resolve().then(()=>S._(o(28955))).then(o=>(n=o.default,r.App=n,l))).then(r=>({ErrorComponent:r.default,styleSheets:[]})):{ErrorComponent:u,styleSheets:s}}).then(o=>{var d;let{ErrorComponent:h,styleSheets:g}=o,_=wrapApp(n),y={Component:h,AppTree:_,router:l,ctx:{err:f,pathname:u.page,query:u.query,asPath:s,AppTree:_}};return Promise.resolve((null==(d=r.props)?void 0:d.err)?r.props:(0,N.loadGetInitialProps)(n,y)).then(n=>doRender({...r,err:f,Component:h,styleSheets:g,props:n}))})}function Head(r){let{callback:n}=r;return w.default.useLayoutEffect(()=>n(),[n]),null}let et={navigationStart:"navigationStart",beforeRender:"beforeRender",afterRender:"afterRender",afterHydrate:"afterHydrate",routeChange:"routeChange"},er={hydration:"Next.js-hydration",beforeHydration:"Next.js-before-hydration",routeChangeToRender:"Next.js-route-change-to-render",render:"Next.js-render"},en=null,ea=!0;function clearMarks(){[et.beforeRender,et.afterHydrate,et.afterRender,et.routeChange].forEach(r=>performance.clearMarks(r))}function markHydrateComplete(){if(!N.ST)return;performance.mark(et.afterHydrate);let r=performance.getEntriesByName(et.beforeRender,"mark").length;r&&(performance.measure(er.beforeHydration,et.navigationStart,et.beforeRender),performance.measure(er.hydration,et.beforeRender,et.afterHydrate)),P&&performance.getEntriesByName(er.hydration).forEach(P),clearMarks()}function markRenderComplete(){if(!N.ST)return;performance.mark(et.afterRender);let r=performance.getEntriesByName(et.routeChange,"mark");if(!r.length)return;let n=performance.getEntriesByName(et.beforeRender,"mark").length;n&&(performance.measure(er.routeChangeToRender,r[0].name,et.beforeRender),performance.measure(er.render,et.beforeRender,et.afterRender),P&&(performance.getEntriesByName(er.render).forEach(P),performance.getEntriesByName(er.routeChangeToRender).forEach(P))),clearMarks(),[er.routeChangeToRender,er.render].forEach(r=>performance.clearMeasures(r))}function renderReactElement(r,n){N.ST&&performance.mark(et.beforeRender);let o=n(ea?markHydrateComplete:markRenderComplete);if(en){let r=w.default.startTransition;r(()=>{en.render(o)})}else en=O.default.hydrateRoot(r,o,{onRecoverableError:K.default}),ea=!1}function Root(r){let{callbacks:n,children:o}=r;return w.default.useLayoutEffect(()=>n.forEach(r=>r()),[n]),w.default.useEffect(()=>{(0,U.default)(P)},[]),o}function doRender(r){let n,{App:o,Component:u,props:s,err:d}=r,h="initial"in r?void 0:r.styleSheets;u=u||g.Component,s=s||g.props;let y={...s,Component:u,err:d,router:l};g=y;let P=!1,b=new Promise((r,o)=>{_&&_(),n=()=>{_=null,r()},_=()=>{P=!0,_=null;let r=Error("Cancel rendering route");r.cancelled=!0,o(r)}});function onHeadCommit(){if(h&&!P){let r=new Set(h.map(r=>r.href)),n=looseToArray(document.querySelectorAll("style[data-n-href]")),o=n.map(r=>r.getAttribute("data-n-href"));for(let l=0;l{let{href:n}=r,o=document.querySelector('style[data-n-href="'+n+'"]');o&&(l.parentNode.insertBefore(o,l.nextSibling),l=o)}),looseToArray(document.querySelectorAll("link[data-n-p]")).forEach(r=>{r.parentNode.removeChild(r)})}if(r.scroll){let{x:n,y:o}=r.scroll;(0,C.handleSmoothScroll)(()=>{window.scrollTo(n,o)})}}function onRootCommit(){n()}!function(){if(!h)return;let r=looseToArray(document.querySelectorAll("style[data-n-href]")),n=new Set(r.map(r=>r.getAttribute("data-n-href"))),o=document.querySelector("noscript[data-n-css]"),l=null==o?void 0:o.getAttribute("data-n-css");h.forEach(r=>{let{href:o,text:u}=r;if(!n.has(o)){let r=document.createElement("style");r.setAttribute("data-n-href",o),r.setAttribute("media","x"),l&&r.setAttribute("nonce",l),document.head.appendChild(r),r.appendChild(document.createTextNode(u))}})}();let E=w.default.createElement(w.default.Fragment,null,w.default.createElement(Head,{callback:onHeadCommit}),w.default.createElement(AppContainer,null,renderApp(o,y),w.default.createElement(D.Portal,{type:"next-route-announcer"},w.default.createElement(H.RouteAnnouncer,null))));return renderReactElement(f,r=>w.default.createElement(Root,{callbacks:[r,onRootCommit]},E)),b}async function render(r){if(r.err){await renderError(r);return}try{await doRender(r)}catch(o){let n=(0,W.getProperError)(o);if(n.cancelled)throw n;await renderError({...r,err:n})}}async function hydrate(r){let n=u.err;try{let r=await d.routeLoader.whenEntrypoint("/_app");if("error"in r)throw r.error;let{component:n,exports:o}=r;y=n,o&&o.reportWebVitals&&(P=r=>{let n,{id:l,name:u,startTime:s,value:d,duration:f,entryType:h,entries:g,attribution:_}=r,y=Date.now()+"-"+(Math.floor(Math.random()*(9e12-1))+1e12);g&&g.length&&(n=g[0].startTime);let P={id:l||y,name:u,startTime:s||n,value:null==d?f:d,label:"mark"===h||"measure"===h?"custom":"web-vital"};_&&(P.attribution=_),o.reportWebVitals(P)});let l=await d.routeLoader.whenEntrypoint(u.page);if("error"in l)throw l.error;b=l.component}catch(r){n=(0,W.getProperError)(r)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(u.dynamicIds),l=(0,B.createRouter)(u.page,u.query,s,{initialProps:u.props,pageLoader:d,App:y,Component:b,wrapApp,err:n,isFallback:!!u.isFallback,subscription:(r,n,o)=>render(Object.assign({},r,{App:n,scroll:o})),locale:u.locale,locales:u.locales,defaultLocale:E,domainLocales:u.domainLocales,isPreview:u.isPreview}),ee=await l._initialMatchesMiddlewarePromise;let o={App:y,initial:!0,Component:b,props:u.props,err:n};(null==r?void 0:r.beforeRender)&&await r.beforeRender(),render(o)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},46653:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),o(91867);let l=o(90223);window.next={version:l.version,get router(){return l.router},emitter:l.emitter},(0,l.initialize)({}).then(()=>(0,l.hydrate)()).catch(console.error),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},32955:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return normalizePathTrailingSlash}});let l=o(96082),u=o(80891),normalizePathTrailingSlash=r=>{if(!r.startsWith("/"))return r;let{pathname:n,query:o,hash:s}=(0,u.parsePath)(r);return""+(0,l.removeTrailingSlash)(n)+o+s};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},2565:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return onRecoverableError}});let l=o(54600);function onRecoverableError(r){let n="function"==typeof reportError?reportError:r=>{window.console.error(r)};r.digest!==l.NEXT_DYNAMIC_NO_SSR_CODE&&n(r)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},37375:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return PageLoader}});let l=o(38754),u=o(25864),s=o(49381),d=l._(o(48052)),f=o(72048),h=o(38011),g=o(89823),_=o(96082),y=o(37159);o(70729);let PageLoader=class PageLoader{getPageList(){return(0,y.getClientBuildManifest)().then(r=>r.sortedPages)}getMiddleware(){return window.__MIDDLEWARE_MATCHERS=[],window.__MIDDLEWARE_MATCHERS}getDataHref(r){let{asPath:n,href:o,locale:l}=r,{pathname:y,query:P,search:b}=(0,g.parseRelativeUrl)(o),{pathname:E}=(0,g.parseRelativeUrl)(n),S=(0,_.removeTrailingSlash)(y);if("/"!==S[0])throw Error('Route name should start with a "/", got "'+S+'"');return(r=>{let n=(0,d.default)((0,_.removeTrailingSlash)((0,f.addLocale)(r,l)),".json");return(0,u.addBasePath)("/_next/data/"+this.buildId+n+b,!0)})(r.skipInterpolation?E:(0,h.isDynamicRoute)(S)?(0,s.interpolateAs)(y,E,P).result:S)}_isSsg(r){return this.promisedSsgManifest.then(n=>n.has(r))}loadPage(r){return this.routeLoader.loadRoute(r).then(r=>{if("component"in r)return{page:r.component,mod:r.exports,styleSheets:r.styles.map(r=>({href:r.href,text:r.content}))};throw r.error})}prefetch(r){return this.routeLoader.prefetch(r)}constructor(r,n){this.routeLoader=(0,y.createRouteLoader)(n),this.buildId=r,this.assetPrefix=n,this.promisedSsgManifest=new Promise(r=>{window.__SSG_MANIFEST?r(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{r(window.__SSG_MANIFEST)}})}};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},93129:function(r,n,o){"use strict";let l;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return _default}});let u=["CLS","FCP","FID","INP","LCP","TTFB"];location.href;let s=!1;function onReport(r){l&&l(r)}let _default=r=>{if(l=r,!s)for(let r of(s=!0,u))try{let n;n||(n=o(78018)),n["on"+r](onReport)}catch(n){console.warn("Failed to track "+r+" web-vital",n)}};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},15091:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Portal",{enumerable:!0,get:function(){return Portal}});let l=o(67294),u=o(73935),Portal=r=>{let{children:n,type:o}=r,[s,d]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let r=document.createElement(o);return document.body.appendChild(r),d(r),()=>{document.body.removeChild(r)}},[o]),s?(0,u.createPortal)(n,s):null};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},47786:function(r,n,o){"use strict";function removeBasePath(r){return r}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"removeBasePath",{enumerable:!0,get:function(){return removeBasePath}}),o(45213),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},23099:function(r,n,o){"use strict";function removeLocale(r,n){return r}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"removeLocale",{enumerable:!0,get:function(){return removeLocale}}),o(80891),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},63767:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{requestIdleCallback:function(){return o},cancelIdleCallback:function(){return l}});let o="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(r){let n=Date.now();return self.setTimeout(function(){r({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})},1)},l="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(r){return clearTimeout(r)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},74785:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"resolveHref",{enumerable:!0,get:function(){return resolveHref}});let l=o(14828),u=o(73833),s=o(89302),d=o(11306),f=o(32955),h=o(54131),g=o(21232),_=o(49381);function resolveHref(r,n,o){let y;let P="string"==typeof n?n:(0,u.formatWithValidation)(n),b=P.match(/^[a-zA-Z]{1,}:\/\//),E=b?P.slice(b[0].length):P,S=E.split("?",1);if((S[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+P+"' passed to next/router in page: '"+r.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let n=(0,d.normalizeRepeatedSlashes)(E);P=(b?b[0]:"")+n}if(!(0,h.isLocalURL)(P))return o?[P]:P;try{y=new URL(P.startsWith("#")?r.asPath:r.pathname,"http://n")}catch(r){y=new URL("/","http://n")}try{let r=new URL(P,y);r.pathname=(0,f.normalizePathTrailingSlash)(r.pathname);let n="";if((0,g.isDynamicRoute)(r.pathname)&&r.searchParams&&o){let o=(0,l.searchParamsToUrlQuery)(r.searchParams),{result:d,params:f}=(0,_.interpolateAs)(r.pathname,r.pathname,o);d&&(n=(0,u.formatWithValidation)({pathname:d,hash:r.hash,query:(0,s.omit)(o,f)}))}let d=r.origin===y.origin?r.href.slice(r.origin.length):r.href;return o?[d,n||d]:d}catch(r){return o?[P]:P}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},69513:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{RouteAnnouncer:function(){return RouteAnnouncer},default:function(){return f}});let l=o(38754),u=l._(o(67294)),s=o(24751),d={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},RouteAnnouncer=()=>{let{asPath:r}=(0,s.useRouter)(),[n,o]=u.default.useState(""),l=u.default.useRef(r);return u.default.useEffect(()=>{if(l.current!==r){if(l.current=r,document.title)o(document.title);else{var n;let l=document.querySelector("h1"),u=null!=(n=null==l?void 0:l.innerText)?n:null==l?void 0:l.textContent;o(u||r)}}},[r]),u.default.createElement("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:d},n)},f=RouteAnnouncer;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},37159:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{markAssetError:function(){return markAssetError},isAssetError:function(){return isAssetError},getClientBuildManifest:function(){return getClientBuildManifest},createRouteLoader:function(){return createRouteLoader}}),o(38754),o(48052);let l=o(34581),u=o(63767),s=o(84878);function withFuture(r,n,o){let l,u=n.get(r);if(u)return"future"in u?u.future:Promise.resolve(u);let s=new Promise(r=>{l=r});return n.set(r,u={resolve:l,future:s}),o?o().then(r=>(l(r),r)).catch(o=>{throw n.delete(r),o}):s}let d=Symbol("ASSET_LOAD_ERROR");function markAssetError(r){return Object.defineProperty(r,d,{})}function isAssetError(r){return r&&d in r}function hasPrefetch(r){try{return r=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||r.relList.supports("prefetch")}catch(r){return!1}}let f=hasPrefetch(),getAssetQueryString=()=>(0,s.getDeploymentIdQueryOrEmptyString)();function prefetchViaDom(r,n,o){return new Promise((l,u)=>{let s='\n link[rel="prefetch"][href^="'+r+'"],\n link[rel="preload"][href^="'+r+'"],\n script[src^="'+r+'"]';if(document.querySelector(s))return l();o=document.createElement("link"),n&&(o.as=n),o.rel="prefetch",o.crossOrigin=void 0,o.onload=l,o.onerror=()=>u(markAssetError(Error("Failed to prefetch: "+r))),o.href=r,document.head.appendChild(o)})}function appendScript(r,n){return new Promise((o,l)=>{(n=document.createElement("script")).onload=o,n.onerror=()=>l(markAssetError(Error("Failed to load script: "+r))),n.crossOrigin=void 0,n.src=r,document.body.appendChild(n)})}function resolvePromiseWithTimeout(r,n,o){return new Promise((l,s)=>{let d=!1;r.then(r=>{d=!0,l(r)}).catch(s),(0,u.requestIdleCallback)(()=>setTimeout(()=>{d||s(o)},n))})}function getClientBuildManifest(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let r=new Promise(r=>{let n=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{r(self.__BUILD_MANIFEST),n&&n()}});return resolvePromiseWithTimeout(r,3800,markAssetError(Error("Failed to load client build manifest")))}function getFilesForRoute(r,n){return getClientBuildManifest().then(o=>{if(!(n in o))throw markAssetError(Error("Failed to lookup route: "+n));let u=o[n].map(n=>r+"/_next/"+encodeURI(n));return{scripts:u.filter(r=>r.endsWith(".js")).map(r=>(0,l.__unsafeCreateTrustedScriptURL)(r)+getAssetQueryString()),css:u.filter(r=>r.endsWith(".css")).map(r=>r+getAssetQueryString())}})}function createRouteLoader(r){let n=new Map,o=new Map,l=new Map,s=new Map;function maybeExecuteScript(r){{let n=o.get(r.toString());return n||(document.querySelector('script[src^="'+r+'"]')?Promise.resolve():(o.set(r.toString(),n=appendScript(r)),n))}}function fetchStyleSheet(r){let n=l.get(r);return n||l.set(r,n=fetch(r).then(n=>{if(!n.ok)throw Error("Failed to load stylesheet: "+r);return n.text().then(n=>({href:r,content:n}))}).catch(r=>{throw markAssetError(r)})),n}return{whenEntrypoint:r=>withFuture(r,n),onEntrypoint(r,o){(o?Promise.resolve().then(()=>o()).then(r=>({component:r&&r.default||r,exports:r}),r=>({error:r})):Promise.resolve(void 0)).then(o=>{let l=n.get(r);l&&"resolve"in l?o&&(n.set(r,o),l.resolve(o)):(o?n.set(r,o):n.delete(r),s.delete(r))})},loadRoute(o,l){return withFuture(o,s,()=>{let u;return resolvePromiseWithTimeout(getFilesForRoute(r,o).then(r=>{let{scripts:l,css:u}=r;return Promise.all([n.has(o)?[]:Promise.all(l.map(maybeExecuteScript)),Promise.all(u.map(fetchStyleSheet))])}).then(r=>this.whenEntrypoint(o).then(n=>({entrypoint:n,styles:r[1]}))),3800,markAssetError(Error("Route did not complete loading: "+o))).then(r=>{let{entrypoint:n,styles:o}=r,l=Object.assign({styles:o},n);return"error"in n?n:l}).catch(r=>{if(l)throw r;return{error:r}}).finally(()=>null==u?void 0:u())})},prefetch(n){let o;return(o=navigator.connection)&&(o.saveData||/2g/.test(o.effectiveType))?Promise.resolve():getFilesForRoute(r,n).then(r=>Promise.all(f?r.scripts.map(r=>prefetchViaDom(r.toString(),"script")):[])).then(()=>{(0,u.requestIdleCallback)(()=>this.loadRoute(n,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},24751:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{Router:function(){return s.default},default:function(){return P},withRouter:function(){return h.default},useRouter:function(){return useRouter},createRouter:function(){return createRouter},makePublicRouterInstance:function(){return makePublicRouterInstance}});let l=o(38754),u=l._(o(67294)),s=l._(o(87797)),d=o(70637),f=l._(o(80676)),h=l._(o(27727)),g={router:null,readyCallbacks:[],ready(r){if(this.router)return r();this.readyCallbacks.push(r)}},_=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],y=["push","replace","reload","back","prefetch","beforePopState"];function getRouter(){if(!g.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return g.router}Object.defineProperty(g,"events",{get:()=>s.default.events}),_.forEach(r=>{Object.defineProperty(g,r,{get(){let n=getRouter();return n[r]}})}),y.forEach(r=>{g[r]=function(){for(var n=arguments.length,o=Array(n),l=0;l{g.ready(()=>{s.default.events.on(r,function(){for(var n=arguments.length,o=Array(n),l=0;lr()),g.readyCallbacks=[],g.router}function makePublicRouterInstance(r){let n={};for(let o of _){if("object"==typeof r[o]){n[o]=Object.assign(Array.isArray(r[o])?[]:{},r[o]);continue}n[o]=r[o]}return n.events=s.default.events,y.forEach(o=>{n[o]=function(){for(var n=arguments.length,l=Array(n),u=0;u{if(s.default.preinit){r.forEach(r=>{s.default.preinit(r,{as:"style"})});return}{let n=document.head;r.forEach(r=>{let o=document.createElement("link");o.type="text/css",o.rel="stylesheet",o.href=r,n.appendChild(o)})}},loadScript=r=>{let{src:n,id:o,onLoad:l=()=>{},onReady:u=null,dangerouslySetInnerHTML:s,children:d="",strategy:f="afterInteractive",onError:g,stylesheets:b}=r,E=o||n;if(E&&y.has(E))return;if(_.has(n)){y.add(E),_.get(n).then(l,g);return}let afterLoad=()=>{u&&u(),y.add(E)},S=document.createElement("script"),R=new Promise((r,n)=>{S.addEventListener("load",function(n){r(),l&&l.call(this,n),afterLoad()}),S.addEventListener("error",function(r){n(r)})}).catch(function(r){g&&g(r)});for(let[o,l]of(s?(S.innerHTML=s.__html||"",afterLoad()):d?(S.textContent="string"==typeof d?d:Array.isArray(d)?d.join(""):"",afterLoad()):n&&(S.src=n,_.set(n,R)),Object.entries(r))){if(void 0===l||P.includes(o))continue;let r=h.DOMAttributeNames[o]||o.toLowerCase();S.setAttribute(r,l)}"worker"===f&&S.setAttribute("type","text/partytown"),S.setAttribute("data-nscript",f),b&&insertStylesheets(b),document.body.appendChild(S)};function handleClientScriptLoad(r){let{strategy:n="afterInteractive"}=r;"lazyOnload"===n?window.addEventListener("load",()=>{(0,g.requestIdleCallback)(()=>loadScript(r))}):loadScript(r)}function loadLazyScript(r){"complete"===document.readyState?(0,g.requestIdleCallback)(()=>loadScript(r)):window.addEventListener("load",()=>{(0,g.requestIdleCallback)(()=>loadScript(r))})}function addBeforeInteractiveToCache(){let r=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];r.forEach(r=>{let n=r.id||r.getAttribute("src");y.add(n)})}function initScriptLoader(r){r.forEach(handleClientScriptLoad),addBeforeInteractiveToCache()}function Script(r){let{id:n,src:o="",onLoad:l=()=>{},onReady:u=null,strategy:h="afterInteractive",onError:g,stylesheets:_,...P}=r,{updateScripts:b,scripts:E,getIsSsr:S,appDir:R,nonce:w}=(0,d.useContext)(f.HeadManagerContext),O=(0,d.useRef)(!1);(0,d.useEffect)(()=>{let r=n||o;O.current||(u&&r&&y.has(r)&&u(),O.current=!0)},[u,n,o]);let j=(0,d.useRef)(!1);if((0,d.useEffect)(()=>{j.current||("afterInteractive"===h?loadScript(r):"lazyOnload"===h&&loadLazyScript(r),j.current=!0)},[r,h]),("beforeInteractive"===h||"worker"===h)&&(b?(E[h]=(E[h]||[]).concat([{id:n,src:o,onLoad:l,onReady:u,onError:g,...P}]),b(E)):S&&S()?y.add(n||o):S&&!S()&&loadScript(r)),R){if(_&&_.forEach(r=>{s.default.preinit(r,{as:"style"})}),"beforeInteractive"===h)return o?(s.default.preload(o,P.integrity?{as:"script",integrity:P.integrity}:{as:"script"}),d.default.createElement("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([o])+")"}})):(P.dangerouslySetInnerHTML&&(P.children=P.dangerouslySetInnerHTML.__html,delete P.dangerouslySetInnerHTML),d.default.createElement("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...P}])+")"}}));"afterInteractive"===h&&o&&s.default.preload(o,P.integrity?{as:"script",integrity:P.integrity}:{as:"script"})}return null}Object.defineProperty(Script,"__nextScript",{value:!0});let b=Script;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},26077:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return reportToSocket}});let l=o(6948);function reportToSocket(r){if("ended"!==r.state.state)throw Error("Expected span to be ended");(0,l.sendMessage)(JSON.stringify({event:"span-end",startTime:r.startTime,endTime:r.state.endTime,spanName:r.name,attributes:r.attributes}))}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},42295:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return s}});let l=o(38754),u=l._(o(3745));let Span=class Span{end(r){if("ended"===this.state.state)throw Error("Span has already ended");this.state={state:"ended",endTime:null!=r?r:Date.now()},this.onSpanEnd(this)}constructor(r,n,o){var l,u;this.name=r,this.attributes=null!=(l=n.attributes)?l:{},this.startTime=null!=(u=n.startTime)?u:Date.now(),this.onSpanEnd=o,this.state={state:"inprogress"}}};let Tracer=class Tracer{startSpan(r,n){return new Span(r,n,this.handleSpanEnd)}onSpanEnd(r){return this._emitter.on("spanend",r),()=>{this._emitter.off("spanend",r)}}constructor(){this._emitter=(0,u.default)(),this.handleSpanEnd=r=>{this._emitter.emit("spanend",r)}}};let s=new Tracer;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},34581:function(r,n){"use strict";let o;function getPolicy(){if(void 0===o){var r;o=(null==(r=window.trustedTypes)?void 0:r.createPolicy("nextjs",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r}))||null}return o}function __unsafeCreateTrustedScriptURL(r){var n;return(null==(n=getPolicy())?void 0:n.createScriptURL(r))||r}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return __unsafeCreateTrustedScriptURL}}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},91867:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),o(84878),self.__next_set_public_path__=r=>{o.p=r},("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},27727:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return withRouter}});let l=o(38754),u=l._(o(67294)),s=o(24751);function withRouter(r){function WithRouterWrapper(n){return u.default.createElement(r,{router:(0,s.useRouter)(),...n})}return WithRouterWrapper.getInitialProps=r.getInitialProps,WithRouterWrapper.origGetInitialProps=r.origGetInitialProps,WithRouterWrapper}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},28955:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return App}});let l=o(38754),u=l._(o(67294)),s=o(11306);async function appGetInitialProps(r){let{Component:n,ctx:o}=r,l=await (0,s.loadGetInitialProps)(n,o);return{pageProps:l}}let App=class App extends u.default.Component{render(){let{Component:r,pageProps:n}=this.props;return u.default.createElement(r,n)}};App.origGetInitialProps=appGetInitialProps,App.getInitialProps=appGetInitialProps,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},34570:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return Error}});let l=o(38754),u=l._(o(67294)),s=l._(o(90046)),d={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function _getInitialProps(r){let{res:n,err:o}=r,l=n&&n.statusCode?n.statusCode:o?o.statusCode:404;return{statusCode:l}}let f={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};let Error=class Error extends u.default.Component{render(){let{statusCode:r,withDarkMode:n=!0}=this.props,o=this.props.title||d[r]||"An unexpected error has occurred";return u.default.createElement("div",{style:f.error},u.default.createElement(s.default,null,u.default.createElement("title",null,r?r+": "+o:"Application error: a client-side exception has occurred")),u.default.createElement("div",{style:f.desc},u.default.createElement("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(n?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),r?u.default.createElement("h1",{className:"next-error-h1",style:f.h1},r):null,u.default.createElement("div",{style:f.wrap},u.default.createElement("h2",{style:f.h2},this.props.title||r?o:u.default.createElement(u.default.Fragment,null,"Application error: a client-side exception has occurred (see the browser console for more information)"),"."))))}};Error.displayName="ErrorPage",Error.getInitialProps=_getInitialProps,Error.origGetInitialProps=_getInitialProps,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},95938:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AmpStateContext",{enumerable:!0,get:function(){return s}});let l=o(38754),u=l._(o(67294)),s=u.default.createContext({})},88926:function(r,n){"use strict";function isInAmpMode(r){let{ampFirst:n=!1,hybrid:o=!1,hasQuery:l=!1}=void 0===r?{}:r;return n||o&&l}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},1158:function(r,n,o){"use strict";var l,u;Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{CacheStates:function(){return l},AppRouterContext:function(){return f},LayoutRouterContext:function(){return h},GlobalLayoutRouterContext:function(){return g},TemplateContext:function(){return _}});let s=o(38754),d=s._(o(67294));(u=l||(l={})).LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY";let f=d.default.createContext(null),h=d.default.createContext(null),g=d.default.createContext(null),_=d.default.createContext(null)},81403:function(r,n){"use strict";function murmurhash2(r){let n=0;for(let o=0;o>>13,n=Math.imul(n,1540483477)}return n>>>0}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BloomFilter",{enumerable:!0,get:function(){return BloomFilter}});let BloomFilter=class BloomFilter{static from(r,n){void 0===n&&(n=.01);let o=new BloomFilter(r.length,n);for(let n of r)o.add(n);return o}export(){let r={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return r}import(r){this.numItems=r.numItems,this.errorRate=r.errorRate,this.numBits=r.numBits,this.numHashes=r.numHashes,this.bitArray=r.bitArray}add(r){let n=this.getHashValues(r);n.forEach(r=>{this.bitArray[r]=1})}contains(r){let n=this.getHashValues(r);return n.every(r=>this.bitArray[r])}getHashValues(r){let n=[];for(let o=1;o<=this.numHashes;o++){let l=murmurhash2(""+r+o)%this.numBits;n.push(l)}return n}constructor(r,n){this.numItems=r,this.errorRate=n,this.numBits=Math.ceil(-(r*Math.log(n))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/r*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},70729:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{MODERN_BROWSERSLIST_TARGET:function(){return u.default},COMPILER_NAMES:function(){return s},INTERNAL_HEADERS:function(){return d},COMPILER_INDEXES:function(){return f},PHASE_EXPORT:function(){return h},PHASE_PRODUCTION_BUILD:function(){return g},PHASE_PRODUCTION_SERVER:function(){return _},PHASE_DEVELOPMENT_SERVER:function(){return y},PHASE_TEST:function(){return P},PHASE_INFO:function(){return b},PAGES_MANIFEST:function(){return E},APP_PATHS_MANIFEST:function(){return S},APP_PATH_ROUTES_MANIFEST:function(){return R},BUILD_MANIFEST:function(){return w},APP_BUILD_MANIFEST:function(){return O},FUNCTIONS_CONFIG_MANIFEST:function(){return j},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return A},NEXT_FONT_MANIFEST:function(){return M},EXPORT_MARKER:function(){return C},EXPORT_DETAIL:function(){return I},PRERENDER_MANIFEST:function(){return x},ROUTES_MANIFEST:function(){return L},IMAGES_MANIFEST:function(){return N},SERVER_FILES_MANIFEST:function(){return D},DEV_CLIENT_PAGES_MANIFEST:function(){return k},MIDDLEWARE_MANIFEST:function(){return F},DEV_MIDDLEWARE_MANIFEST:function(){return U},REACT_LOADABLE_MANIFEST:function(){return H},FONT_MANIFEST:function(){return B},SERVER_DIRECTORY:function(){return W},CONFIG_FILES:function(){return q},BUILD_ID_FILE:function(){return z},BLOCKED_PAGES:function(){return G},CLIENT_PUBLIC_FILES_PATH:function(){return V},CLIENT_STATIC_FILES_PATH:function(){return X},STRING_LITERAL_DROP_BUNDLE:function(){return Y},NEXT_BUILTIN_DOCUMENT:function(){return K},BARREL_OPTIMIZATION_PREFIX:function(){return Q},CLIENT_REFERENCE_MANIFEST:function(){return $},SERVER_REFERENCE_MANIFEST:function(){return J},MIDDLEWARE_BUILD_MANIFEST:function(){return Z},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return er},APP_CLIENT_INTERNALS:function(){return en},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ei},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return el},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return eu},EDGE_RUNTIME_WEBPACK:function(){return es},TEMPORARY_REDIRECT_STATUS:function(){return ec},PERMANENT_REDIRECT_STATUS:function(){return ed},STATIC_PROPS_ID:function(){return ef},SERVER_PROPS_ID:function(){return ep},PAGE_SEGMENT_KEY:function(){return eh},GOOGLE_FONT_PROVIDER:function(){return em},OPTIMIZED_FONT_PROVIDERS:function(){return eg},DEFAULT_SERIF_FONT:function(){return e_},DEFAULT_SANS_SERIF_FONT:function(){return ey},STATIC_STATUS_PAGES:function(){return eP},TRACE_OUTPUT_VERSION:function(){return eb},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ev},RSC_MODULE_TYPES:function(){return eE},EDGE_UNSUPPORTED_NODE_APIS:function(){return eS},SYSTEM_ENTRYPOINTS:function(){return eR}});let l=o(38754),u=l._(o(51329)),s={client:"client",server:"server",edgeServer:"edge-server"},d=["x-invoke-path","x-invoke-status","x-invoke-error","x-invoke-query","x-middleware-invoke"],f={[s.client]:0,[s.server]:1,[s.edgeServer]:2},h="phase-export",g="phase-production-build",_="phase-production-server",y="phase-development-server",P="phase-test",b="phase-info",E="pages-manifest.json",S="app-paths-manifest.json",R="app-path-routes-manifest.json",w="build-manifest.json",O="app-build-manifest.json",j="functions-config-manifest.json",A="subresource-integrity-manifest",M="next-font-manifest",C="export-marker.json",I="export-detail.json",x="prerender-manifest.json",L="routes-manifest.json",N="images-manifest.json",D="required-server-files.json",k="_devPagesManifest.json",F="middleware-manifest.json",U="_devMiddlewareManifest.json",H="react-loadable-manifest.json",B="font-manifest.json",W="server",q=["next.config.js","next.config.mjs"],z="BUILD_ID",G=["/_document","/_app","/_error"],V="public",X="static",Y="__NEXT_DROP_CLIENT_FILE__",K="__NEXT_BUILTIN_DOCUMENT__",Q="__barrel_optimize__",$="client-reference-manifest",J="server-reference-manifest",Z="middleware-build-manifest",ee="middleware-react-loadable-manifest",et="main",er=""+et+"-app",en="app-pages-internals",ea="react-refresh",eo="amp",ei="webpack",el="polyfills",eu=Symbol(el),es="edge-runtime-webpack",ec=307,ed=308,ef="__N_SSG",ep="__N_SSP",eh="__PAGE__",em="https://fonts.googleapis.com/",eg=[{url:em,preconnect:"https://fonts.gstatic.com"},{url:"https://use.typekit.net",preconnect:"https://use.typekit.net"}],e_={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ey={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},eP=["/500"],eb=1,ev=6e3,eE={client:"client",server:"server"},eS=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eR=new Set([et,ea,eo,er]);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},24125:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"escapeStringRegexp",{enumerable:!0,get:function(){return escapeStringRegexp}});let o=/[|\\{}()[\]^$+*?.-]/,l=/[|\\{}()[\]^$+*?.-]/g;function escapeStringRegexp(r){return o.test(r)?r.replace(l,"\\$&"):r}},87768:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"HeadManagerContext",{enumerable:!0,get:function(){return s}});let l=o(38754),u=l._(o(67294)),s=u.default.createContext({})},90046:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{defaultHead:function(){return defaultHead},default:function(){return y}});let l=o(38754),u=o(61757),s=u._(o(67294)),d=l._(o(13632)),f=o(95938),h=o(87768),g=o(88926);function defaultHead(r){void 0===r&&(r=!1);let n=[s.default.createElement("meta",{charSet:"utf-8"})];return r||n.push(s.default.createElement("meta",{name:"viewport",content:"width=device-width"})),n}function onlyReactElement(r,n){return"string"==typeof n||"number"==typeof n?r:n.type===s.default.Fragment?r.concat(s.default.Children.toArray(n.props.children).reduce((r,n)=>"string"==typeof n||"number"==typeof n?r:r.concat(n),[])):r.concat(n)}o(69941);let _=["name","httpEquiv","charSet","itemProp"];function unique(){let r=new Set,n=new Set,o=new Set,l={};return u=>{let s=!0,d=!1;if(u.key&&"number"!=typeof u.key&&u.key.indexOf("$")>0){d=!0;let n=u.key.slice(u.key.indexOf("$")+1);r.has(n)?s=!1:r.add(n)}switch(u.type){case"title":case"base":n.has(u.type)?s=!1:n.add(u.type);break;case"meta":for(let r=0,n=_.length;r{let l=r.key||n;if(!o&&"link"===r.type&&r.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(n=>r.props.href.startsWith(n))){let n={...r.props||{}};return n["data-href"]=n.href,n.href=void 0,n["data-optimized-fonts"]=!0,s.default.cloneElement(r,n)}return s.default.cloneElement(r,{key:l})})}function Head(r){let{children:n}=r,o=(0,s.useContext)(f.AmpStateContext),l=(0,s.useContext)(h.HeadManagerContext);return s.default.createElement(d.default,{reduceComponentsToState:reduceComponents,headManager:l,inAmpMode:(0,g.isInAmpMode)(o)},n)}let y=Head;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),r.exports=n.default)},98197:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{SearchParamsContext:function(){return u},PathnameContext:function(){return s},PathParamsContext:function(){return d}});let l=o(67294),u=(0,l.createContext)(null),s=(0,l.createContext)(null),d=(0,l.createContext)(null)},64656:function(r,n){"use strict";function normalizeLocalePath(r,n){let o;let l=r.split("/");return(n||[]).some(n=>!!l[1]&&l[1].toLowerCase()===n.toLowerCase()&&(o=n,l.splice(1,1),r=l.join("/")||"/",!0)),{pathname:r,detectedLocale:o}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizeLocalePath",{enumerable:!0,get:function(){return normalizeLocalePath}})},24955:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return d}});let l=o(38754),u=l._(o(67294)),s=o(17599),d=u.default.createContext(s.imageConfigDefault)},17599:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{VALID_LOADERS:function(){return o},imageConfigDefault:function(){return l}});let o=["default","imgix","cloudinary","akamai","custom"],l={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",remotePatterns:[],unoptimized:!1}},19942:function(r,n){"use strict";function getObjectClassLabel(r){return Object.prototype.toString.call(r)}function isPlainObject(r){if("[object Object]"!==getObjectClassLabel(r))return!1;let n=Object.getPrototypeOf(r);return null===n||n.hasOwnProperty("isPrototypeOf")}Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{getObjectClassLabel:function(){return getObjectClassLabel},isPlainObject:function(){return isPlainObject}})},54600:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{NEXT_DYNAMIC_NO_SSR_CODE:function(){return o},throwWithNoSSR:function(){return throwWithNoSSR}});let o="NEXT_DYNAMIC_NO_SSR_CODE";function throwWithNoSSR(){let r=Error(o);throw r.digest=o,r}},3745:function(r,n){"use strict";function mitt(){let r=Object.create(null);return{on(n,o){(r[n]||(r[n]=[])).push(o)},off(n,o){r[n]&&r[n].splice(r[n].indexOf(o)>>>0,1)},emit(n){for(var o=arguments.length,l=Array(o>1?o-1:0),u=1;u{r(...l)})}}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return mitt}})},51329:function(r){"use strict";r.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},18902:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"denormalizePagePath",{enumerable:!0,get:function(){return denormalizePagePath}});let l=o(21232),u=o(57932);function denormalizePagePath(r){let n=(0,u.normalizePathSep)(r);return n.startsWith("/index/")&&!(0,l.isDynamicRoute)(n)?n.slice(6):"/index"!==n?n:"/"}},53029:function(r,n){"use strict";function ensureLeadingSlash(r){return r.startsWith("/")?r:"/"+r}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ensureLeadingSlash",{enumerable:!0,get:function(){return ensureLeadingSlash}})},57932:function(r,n){"use strict";function normalizePathSep(r){return r.replace(/\\/g,"/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"normalizePathSep",{enumerable:!0,get:function(){return normalizePathSep}})},70637:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RouterContext",{enumerable:!0,get:function(){return s}});let l=o(38754),u=l._(o(67294)),s=u.default.createContext(null)},77178:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{adaptForAppRouterInstance:function(){return adaptForAppRouterInstance},adaptForSearchParams:function(){return adaptForSearchParams},adaptForPathParams:function(){return adaptForPathParams},PathnameContextProviderAdapter:function(){return PathnameContextProviderAdapter}});let l=o(61757),u=l._(o(67294)),s=o(98197),d=o(21232),f=o(32391),h=o(28300);function adaptForAppRouterInstance(r){return{back(){r.back()},forward(){r.forward()},refresh(){r.reload()},push(n,o){let{scroll:l}=void 0===o?{}:o;r.push(n,void 0,{scroll:l})},replace(n,o){let{scroll:l}=void 0===o?{}:o;r.replace(n,void 0,{scroll:l})},prefetch(n){r.prefetch(n)}}}function adaptForSearchParams(r){return r.isReady&&r.query?(0,f.asPathToSearchParams)(r.asPath):new URLSearchParams}function adaptForPathParams(r){if(!r.isReady||!r.query)return null;let n={},o=(0,h.getRouteRegex)(r.pathname),l=Object.keys(o.groups);for(let o of l)n[o]=r.query[o];return n}function PathnameContextProviderAdapter(r){let{children:n,router:o,...l}=r,f=(0,u.useRef)(l.isAutoExport),h=(0,u.useMemo)(()=>{let r;let n=f.current;if(n&&(f.current=!1),(0,d.isDynamicRoute)(o.pathname)&&(o.isFallback||n&&!o.isReady))return null;try{r=new URL(o.asPath,"http://f")}catch(r){return"/"}return r.pathname},[o.asPath,o.isFallback,o.isReady,o.pathname]);return u.default.createElement(s.PathnameContext.Provider,{value:h},n)}},87797:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{default:function(){return Router},matchesMiddleware:function(){return matchesMiddleware},createKey:function(){return createKey}});let l=o(38754),u=o(61757),s=o(96082),d=o(37159),f=o(52288),h=u._(o(80676)),g=o(18902),_=o(64656),y=l._(o(3745)),P=o(11306),b=o(38011),E=o(89823);o(72431);let S=o(89001),R=o(28300),w=o(73833);o(84287);let O=o(80891),j=o(72048),A=o(23099),M=o(47786),C=o(25864),I=o(45213),x=o(74785),L=o(79423),N=o(10673),D=o(8979),k=o(91530),F=o(54131),U=o(66116),H=o(89302),B=o(49381),W=o(89987);function buildCancellationError(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function matchesMiddleware(r){let n=await Promise.resolve(r.router.pageLoader.getMiddleware());if(!n)return!1;let{pathname:o}=(0,O.parsePath)(r.asPath),l=(0,I.hasBasePath)(o)?(0,M.removeBasePath)(o):o,u=(0,C.addBasePath)((0,j.addLocale)(l,r.locale));return n.some(r=>new RegExp(r.regexp).test(u))}function stripOrigin(r){let n=(0,P.getLocationOrigin)();return r.startsWith(n)?r.substring(n.length):r}function prepareUrlAs(r,n,o){let[l,u]=(0,x.resolveHref)(r,n,!0),s=(0,P.getLocationOrigin)(),d=l.startsWith(s),f=u&&u.startsWith(s);l=stripOrigin(l),u=u?stripOrigin(u):u;let h=d?l:(0,C.addBasePath)(l),g=o?stripOrigin((0,x.resolveHref)(r,o)):u||l;return{url:h,as:f?g:(0,C.addBasePath)(g)}}function resolveDynamicRoute(r,n){let o=(0,s.removeTrailingSlash)((0,g.denormalizePagePath)(r));return"/404"===o||"/_error"===o?r:(n.includes(o)||n.some(n=>{if((0,b.isDynamicRoute)(n)&&(0,R.getRouteRegex)(n).re.test(o))return r=n,!0}),(0,s.removeTrailingSlash)(r))}function getMiddlewareData(r,n,o){let l={basePath:o.router.basePath,i18n:{locales:o.router.locales},trailingSlash:!1},u=n.headers.get("x-nextjs-rewrite"),f=u||n.headers.get("x-nextjs-matched-path"),h=n.headers.get("x-matched-path");if(!h||f||h.includes("__next_data_catchall")||h.includes("/_error")||h.includes("/404")||(f=h),f){if(f.startsWith("/")){let n=(0,E.parseRelativeUrl)(f),h=(0,N.getNextPathnameInfo)(n.pathname,{nextConfig:l,parseData:!0}),g=(0,s.removeTrailingSlash)(h.pathname);return Promise.all([o.router.pageLoader.getPageList(),(0,d.getClientBuildManifest)()]).then(s=>{let[d,{__rewrites:f}]=s,y=(0,j.addLocale)(h.pathname,h.locale);if((0,b.isDynamicRoute)(y)||!u&&d.includes((0,_.normalizeLocalePath)((0,M.removeBasePath)(y),o.router.locales).pathname)){let o=(0,N.getNextPathnameInfo)((0,E.parseRelativeUrl)(r).pathname,{nextConfig:l,parseData:!0});y=(0,C.addBasePath)(o.pathname),n.pathname=y}if(!d.includes(g)){let r=resolveDynamicRoute(g,d);r!==g&&(g=r)}let P=d.includes(g)?g:resolveDynamicRoute((0,_.normalizeLocalePath)((0,M.removeBasePath)(n.pathname),o.router.locales).pathname,d);if((0,b.isDynamicRoute)(P)){let r=(0,S.getRouteMatcher)((0,R.getRouteRegex)(P))(y);Object.assign(n.query,r||{})}return{type:"rewrite",parsedAs:n,resolvedHref:P}})}let n=(0,O.parsePath)(r),h=(0,D.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(n.pathname,{nextConfig:l,parseData:!0}),defaultLocale:o.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+h+n.query+n.hash})}let g=n.headers.get("x-nextjs-redirect");if(g){if(g.startsWith("/")){let r=(0,O.parsePath)(g),n=(0,D.formatNextPathnameInfo)({...(0,N.getNextPathnameInfo)(r.pathname,{nextConfig:l,parseData:!0}),defaultLocale:o.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+n+r.query+r.hash,newUrl:""+n+r.query+r.hash})}return Promise.resolve({type:"redirect-external",destination:g})}return Promise.resolve({type:"next"})}async function withMiddlewareEffects(r){let n=await matchesMiddleware(r);if(!n||!r.fetchData)return null;try{let n=await r.fetchData(),o=await getMiddlewareData(n.dataHref,n.response,r);return{dataHref:n.dataHref,json:n.json,response:n.response,text:n.text,cacheKey:n.cacheKey,effect:o}}catch(r){return null}}let q=Symbol("SSG_DATA_NOT_FOUND");function fetchRetry(r,n,o){return fetch(r,{credentials:"same-origin",method:o.method||"GET",headers:Object.assign({},o.headers,{"x-nextjs-data":"1"})}).then(l=>!l.ok&&n>1&&l.status>=500?fetchRetry(r,n-1,o):l)}function tryToParseAsJSON(r){try{return JSON.parse(r)}catch(r){return null}}function fetchNextData(r){var n;let{dataHref:o,inflightCache:l,isPrefetch:u,hasMiddleware:s,isServerRender:f,parseJSON:h,persistCache:g,isBackground:_,unstable_skipClientCache:y}=r,{href:P}=new URL(o,window.location.href),getData=r=>fetchRetry(o,f?3:1,{headers:Object.assign({},u?{purpose:"prefetch"}:{},u&&s?{"x-middleware-prefetch":"1"}:{}),method:null!=(n=null==r?void 0:r.method)?n:"GET"}).then(n=>n.ok&&(null==r?void 0:r.method)==="HEAD"?{dataHref:o,response:n,text:"",json:{},cacheKey:P}:n.text().then(r=>{if(!n.ok){if(s&&[301,302,307,308].includes(n.status))return{dataHref:o,response:n,text:r,json:{},cacheKey:P};if(404===n.status){var l;if(null==(l=tryToParseAsJSON(r))?void 0:l.notFound)return{dataHref:o,json:{notFound:q},response:n,text:r,cacheKey:P}}let u=Error("Failed to load static props");throw f||(0,d.markAssetError)(u),u}return{dataHref:o,json:h?tryToParseAsJSON(r):null,response:n,text:r,cacheKey:P}})).then(r=>(g&&"no-cache"!==r.response.headers.get("x-middleware-cache")||delete l[P],r)).catch(r=>{throw y||delete l[P],("Failed to fetch"===r.message||"NetworkError when attempting to fetch resource."===r.message||"Load failed"===r.message)&&(0,d.markAssetError)(r),r});return y&&g?getData({}).then(r=>(l[P]=Promise.resolve(r),r)):void 0!==l[P]?l[P]:l[P]=getData(_?{method:"HEAD"}:{})}function createKey(){return Math.random().toString(36).slice(2,10)}function handleHardNavigation(r){let{url:n,router:o}=r;if(n===(0,C.addBasePath)((0,j.addLocale)(o.asPath,o.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+n+" "+location.href);window.location.href=n}let getCancelledHandler=r=>{let{route:n,router:o}=r,l=!1,u=o.clc=()=>{l=!0};return()=>{if(l){let r=Error('Abort fetching component for route: "'+n+'"');throw r.cancelled=!0,r}u===o.clc&&(o.clc=null)}};let Router=class Router{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(r,n,o){return void 0===o&&(o={}),{url:r,as:n}=prepareUrlAs(this,r,n),this.change("pushState",r,n,o)}replace(r,n,o){return void 0===o&&(o={}),{url:r,as:n}=prepareUrlAs(this,r,n),this.change("replaceState",r,n,o)}async _bfl(r,n,o,l){{let h=!1,g=!1;for(let _ of[r,n])if(_){let n=(0,s.removeTrailingSlash)(new URL(_,"http://n").pathname),y=(0,C.addBasePath)((0,j.addLocale)(n,o||this.locale));if(n!==(0,s.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var u,d,f;for(let r of(h=h||!!(null==(u=this._bfl_s)?void 0:u.contains(n))||!!(null==(d=this._bfl_s)?void 0:d.contains(y)),[n,y])){let n=r.split("/");for(let r=0;!g&&r{})}}}}return!1}async change(r,n,o,l,u){var g,_,y,x,L,N,D,U,W;let z,G;if(!(0,F.isLocalURL)(n))return handleHardNavigation({url:n,router:this}),!1;let V=1===l._h;V||l.shallow||await this._bfl(o,void 0,l.locale);let X=V||l._shouldResolveHref||(0,O.parsePath)(n).pathname===(0,O.parsePath)(o).pathname,Y={...this.state},K=!0!==this.isReady;this.isReady=!0;let Q=this.isSsr;if(V||(this.isSsr=!1),V&&this.clc)return!1;let $=Y.locale;P.ST&&performance.mark("routeChange");let{shallow:J=!1,scroll:Z=!0}=l,ee={shallow:J};this._inFlightRoute&&this.clc&&(Q||Router.events.emit("routeChangeError",buildCancellationError(),this._inFlightRoute,ee),this.clc(),this.clc=null),o=(0,C.addBasePath)((0,j.addLocale)((0,I.hasBasePath)(o)?(0,M.removeBasePath)(o):o,l.locale,this.defaultLocale));let et=(0,A.removeLocale)((0,I.hasBasePath)(o)?(0,M.removeBasePath)(o):o,Y.locale);this._inFlightRoute=o;let er=$!==Y.locale;if(!V&&this.onlyAHashChange(et)&&!er){Y.asPath=et,Router.events.emit("hashChangeStart",o,ee),this.changeState(r,n,o,{...l,scroll:!1}),Z&&this.scrollToHash(et);try{await this.set(Y,this.components[Y.route],null)}catch(r){throw(0,h.default)(r)&&r.cancelled&&Router.events.emit("routeChangeError",r,et,ee),r}return Router.events.emit("hashChangeComplete",o,ee),!0}let en=(0,E.parseRelativeUrl)(n),{pathname:ea,query:eo}=en;if(null==(g=this.components[ea])?void 0:g.__appRouter)return handleHardNavigation({url:o,router:this}),new Promise(()=>{});try{[z,{__rewrites:G}]=await Promise.all([this.pageLoader.getPageList(),(0,d.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(r){return handleHardNavigation({url:o,router:this}),!1}this.urlIsNew(et)||er||(r="replaceState");let ei=o;ea=ea?(0,s.removeTrailingSlash)((0,M.removeBasePath)(ea)):ea;let el=(0,s.removeTrailingSlash)(ea),eu=o.startsWith("/")&&(0,E.parseRelativeUrl)(o).pathname,es=!!(eu&&el!==eu&&(!(0,b.isDynamicRoute)(el)||!(0,S.getRouteMatcher)((0,R.getRouteRegex)(el))(eu))),ec=!l.shallow&&await matchesMiddleware({asPath:o,locale:Y.locale,router:this});if(V&&ec&&(X=!1),X&&"/_error"!==ea&&(l._shouldResolveHref=!0,en.pathname=resolveDynamicRoute(ea,z),en.pathname===ea||(ea=en.pathname,en.pathname=(0,C.addBasePath)(ea),ec||(n=(0,w.formatWithValidation)(en)))),!(0,F.isLocalURL)(o))return handleHardNavigation({url:o,router:this}),!1;ei=(0,A.removeLocale)((0,M.removeBasePath)(ei),Y.locale),el=(0,s.removeTrailingSlash)(ea);let ed=!1;if((0,b.isDynamicRoute)(el)){let r=(0,E.parseRelativeUrl)(ei),l=r.pathname,u=(0,R.getRouteRegex)(el);ed=(0,S.getRouteMatcher)(u)(l);let s=el===l,d=s?(0,B.interpolateAs)(el,l,eo):{};if(ed&&(!s||d.result))s?o=(0,w.formatWithValidation)(Object.assign({},r,{pathname:d.result,query:(0,H.omit)(eo,d.params)})):Object.assign(eo,ed);else{let r=Object.keys(u.groups).filter(r=>!eo[r]&&!u.groups[r].optional);if(r.length>0&&!ec)throw Error((s?"The provided `href` ("+n+") value is missing query values ("+r.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+l+") is incompatible with the `href` value ("+el+"). ")+"Read more: https://nextjs.org/docs/messages/"+(s?"href-interpolation-failed":"incompatible-href-as"))}}V||Router.events.emit("routeChangeStart",o,ee);let ef="/404"===this.pathname||"/_error"===this.pathname;try{let s=await this.getRouteInfo({route:el,pathname:ea,query:eo,as:o,resolvedAs:ei,routeProps:ee,locale:Y.locale,isPreview:Y.isPreview,hasMiddleware:ec,unstable_skipClientCache:l.unstable_skipClientCache,isQueryUpdating:V&&!this.isFallback,isMiddlewareRewrite:es});if(V||l.shallow||await this._bfl(o,"resolvedAs"in s?s.resolvedAs:void 0,Y.locale),"route"in s&&ec){el=ea=s.route||el,ee.shallow||(eo=Object.assign({},s.query||{},eo));let r=(0,I.hasBasePath)(en.pathname)?(0,M.removeBasePath)(en.pathname):en.pathname;if(ed&&ea!==r&&Object.keys(ed).forEach(r=>{ed&&eo[r]===ed[r]&&delete eo[r]}),(0,b.isDynamicRoute)(ea)){let r=!ee.shallow&&s.resolvedAs?s.resolvedAs:(0,C.addBasePath)((0,j.addLocale)(new URL(o,location.href).pathname,Y.locale),!0),n=r;(0,I.hasBasePath)(n)&&(n=(0,M.removeBasePath)(n));let l=(0,R.getRouteRegex)(ea),u=(0,S.getRouteMatcher)(l)(new URL(n,location.href).pathname);u&&Object.assign(eo,u)}}if("type"in s){if("redirect-internal"===s.type)return this.change(r,s.newUrl,s.newAs,l);return handleHardNavigation({url:s.destination,router:this}),new Promise(()=>{})}let d=s.Component;if(d&&d.unstable_scriptLoader){let r=[].concat(d.unstable_scriptLoader());r.forEach(r=>{(0,f.handleClientScriptLoad)(r.props)})}if((s.__N_SSG||s.__N_SSP)&&s.props){if(s.props.pageProps&&s.props.pageProps.__N_REDIRECT){l.locale=!1;let n=s.props.pageProps.__N_REDIRECT;if(n.startsWith("/")&&!1!==s.props.pageProps.__N_REDIRECT_BASE_PATH){let o=(0,E.parseRelativeUrl)(n);o.pathname=resolveDynamicRoute(o.pathname,z);let{url:u,as:s}=prepareUrlAs(this,n,n);return this.change(r,u,s,l)}return handleHardNavigation({url:n,router:this}),new Promise(()=>{})}if(Y.isPreview=!!s.props.__N_PREVIEW,s.props.notFound===q){let r;try{await this.fetchComponent("/404"),r="/404"}catch(n){r="/_error"}if(s=await this.getRouteInfo({route:r,pathname:r,query:eo,as:o,resolvedAs:ei,routeProps:{shallow:!1},locale:Y.locale,isPreview:Y.isPreview,isNotFound:!0}),"type"in s)throw Error("Unexpected middleware effect on /404")}}V&&"/_error"===this.pathname&&(null==(y=self.__NEXT_DATA__.props)?void 0:null==(_=y.pageProps)?void 0:_.statusCode)===500&&(null==(x=s.props)?void 0:x.pageProps)&&(s.props.pageProps.statusCode=500);let g=l.shallow&&Y.route===(null!=(L=s.route)?L:el),P=null!=(N=l.scroll)?N:!V&&!g,w=null!=u?u:P?{x:0,y:0}:null,O={...Y,route:el,pathname:ea,query:eo,asPath:et,isFallback:!1};if(V&&ef){if(s=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:eo,as:o,resolvedAs:ei,routeProps:{shallow:!1},locale:Y.locale,isPreview:Y.isPreview,isQueryUpdating:V&&!this.isFallback}),"type"in s)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(U=self.__NEXT_DATA__.props)?void 0:null==(D=U.pageProps)?void 0:D.statusCode)===500&&(null==(W=s.props)?void 0:W.pageProps)&&(s.props.pageProps.statusCode=500);try{await this.set(O,s,w)}catch(r){throw(0,h.default)(r)&&r.cancelled&&Router.events.emit("routeChangeError",r,et,ee),r}return!0}Router.events.emit("beforeHistoryChange",o,ee),this.changeState(r,n,o,l);let A=V&&!w&&!K&&!er&&(0,k.compareRouterStates)(O,this.state);if(!A){try{await this.set(O,s,w)}catch(r){if(r.cancelled)s.error=s.error||r;else throw r}if(s.error)throw V||Router.events.emit("routeChangeError",s.error,et,ee),s.error;V||Router.events.emit("routeChangeComplete",o,ee),P&&/#.+$/.test(o)&&this.scrollToHash(o)}return!0}catch(r){if((0,h.default)(r)&&r.cancelled)return!1;throw r}}changeState(r,n,o,l){void 0===l&&(l={}),("pushState"!==r||(0,P.getURL)()!==o)&&(this._shallow=l.shallow,window.history[r]({url:n,as:o,options:l,__N:!0,key:this._key="pushState"!==r?this._key:createKey()},"",o))}async handleRouteInfoError(r,n,o,l,u,s){if(console.error(r),r.cancelled)throw r;if((0,d.isAssetError)(r)||s)throw Router.events.emit("routeChangeError",r,l,u),handleHardNavigation({url:l,router:this}),buildCancellationError();try{let l;let{page:u,styleSheets:s}=await this.fetchComponent("/_error"),d={props:l,Component:u,styleSheets:s,err:r,error:r};if(!d.props)try{d.props=await this.getInitialProps(u,{err:r,pathname:n,query:o})}catch(r){console.error("Error in error page `getInitialProps`: ",r),d.props={}}return d}catch(r){return this.handleRouteInfoError((0,h.default)(r)?r:Error(r+""),n,o,l,u,!0)}}async getRouteInfo(r){let{route:n,pathname:o,query:l,as:u,resolvedAs:d,routeProps:f,locale:g,hasMiddleware:y,isPreview:P,unstable_skipClientCache:b,isQueryUpdating:E,isMiddlewareRewrite:S,isNotFound:R}=r,O=n;try{var j,A,C,I;let r=getCancelledHandler({route:O,router:this}),n=this.components[O];if(f.shallow&&n&&this.route===O)return n;y&&(n=void 0);let h=!n||"initial"in n?void 0:n,x={dataHref:this.pageLoader.getDataHref({href:(0,w.formatWithValidation)({pathname:o,query:l}),skipInterpolation:!0,asPath:R?"/404":d,locale:g}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?this.sbc:this.sdc,persistCache:!P,isPrefetch:!1,unstable_skipClientCache:b,isBackground:E},N=E&&!S?null:await withMiddlewareEffects({fetchData:()=>fetchNextData(x),asPath:R?"/404":d,locale:g,router:this}).catch(r=>{if(E)return null;throw r});if(N&&("/_error"===o||"/404"===o)&&(N.effect=void 0),E&&(N?N.json=self.__NEXT_DATA__.props:N={json:self.__NEXT_DATA__.props}),r(),(null==N?void 0:null==(j=N.effect)?void 0:j.type)==="redirect-internal"||(null==N?void 0:null==(A=N.effect)?void 0:A.type)==="redirect-external")return N.effect;if((null==N?void 0:null==(C=N.effect)?void 0:C.type)==="rewrite"){let r=(0,s.removeTrailingSlash)(N.effect.resolvedHref),u=await this.pageLoader.getPageList();if((!E||u.includes(r))&&(O=r,o=N.effect.resolvedHref,l={...l,...N.effect.parsedAs.query},d=(0,M.removeBasePath)((0,_.normalizeLocalePath)(N.effect.parsedAs.pathname,this.locales).pathname),n=this.components[O],f.shallow&&n&&this.route===O&&!y))return{...n,route:O}}if((0,L.isAPIRoute)(O))return handleHardNavigation({url:u,router:this}),new Promise(()=>{});let D=h||await this.fetchComponent(O).then(r=>({Component:r.page,styleSheets:r.styleSheets,__N_SSG:r.mod.__N_SSG,__N_SSP:r.mod.__N_SSP})),k=null==N?void 0:null==(I=N.response)?void 0:I.headers.get("x-middleware-skip"),F=D.__N_SSG||D.__N_SSP;k&&(null==N?void 0:N.dataHref)&&delete this.sdc[N.dataHref];let{props:U,cacheKey:H}=await this._getData(async()=>{if(F){if((null==N?void 0:N.json)&&!k)return{cacheKey:N.cacheKey,props:N.json};let r=(null==N?void 0:N.dataHref)?N.dataHref:this.pageLoader.getDataHref({href:(0,w.formatWithValidation)({pathname:o,query:l}),asPath:d,locale:g}),n=await fetchNextData({dataHref:r,isServerRender:this.isSsr,parseJSON:!0,inflightCache:k?{}:this.sdc,persistCache:!P,isPrefetch:!1,unstable_skipClientCache:b});return{cacheKey:n.cacheKey,props:n.json||{}}}return{headers:{},props:await this.getInitialProps(D.Component,{pathname:o,query:l,asPath:u,locale:g,locales:this.locales,defaultLocale:this.defaultLocale})}});return D.__N_SSP&&x.dataHref&&H&&delete this.sdc[H],this.isPreview||!D.__N_SSG||E||fetchNextData(Object.assign({},x,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),U.pageProps=Object.assign({},U.pageProps),D.props=U,D.route=O,D.query=l,D.resolvedAs=d,this.components[O]=D,D}catch(r){return this.handleRouteInfoError((0,h.getProperError)(r),o,l,u,f)}}set(r,n,o){return this.state=r,this.sub(n,this.components["/_app"].Component,o)}beforePopState(r){this._bps=r}onlyAHashChange(r){if(!this.asPath)return!1;let[n,o]=this.asPath.split("#",2),[l,u]=r.split("#",2);return!!u&&n===l&&o===u||n===l&&o!==u}scrollToHash(r){let[,n=""]=r.split("#",2);(0,W.handleSmoothScroll)(()=>{if(""===n||"top"===n){window.scrollTo(0,0);return}let r=decodeURIComponent(n),o=document.getElementById(r);if(o){o.scrollIntoView();return}let l=document.getElementsByName(r)[0];l&&l.scrollIntoView()},{onlyHashChange:this.onlyAHashChange(r)})}urlIsNew(r){return this.asPath!==r}async prefetch(r,n,o){if(void 0===n&&(n=r),void 0===o&&(o={}),(0,U.isBot)(window.navigator.userAgent))return;let l=(0,E.parseRelativeUrl)(r),u=l.pathname,{pathname:d,query:f}=l,h=d,g=await this.pageLoader.getPageList(),_=n,y=void 0!==o.locale?o.locale||void 0:this.locale,P=await matchesMiddleware({asPath:n,locale:y,router:this});l.pathname=resolveDynamicRoute(l.pathname,g),(0,b.isDynamicRoute)(l.pathname)&&(d=l.pathname,l.pathname=d,Object.assign(f,(0,S.getRouteMatcher)((0,R.getRouteRegex)(l.pathname))((0,O.parsePath)(n).pathname)||{}),P||(r=(0,w.formatWithValidation)(l)));let j=await withMiddlewareEffects({fetchData:()=>fetchNextData({dataHref:this.pageLoader.getDataHref({href:(0,w.formatWithValidation)({pathname:h,query:f}),skipInterpolation:!0,asPath:_,locale:y}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:n,locale:y,router:this});if((null==j?void 0:j.effect.type)==="rewrite"&&(l.pathname=j.effect.resolvedHref,d=j.effect.resolvedHref,f={...f,...j.effect.parsedAs.query},_=j.effect.parsedAs.pathname,r=(0,w.formatWithValidation)(l)),(null==j?void 0:j.effect.type)==="redirect-external")return;let A=(0,s.removeTrailingSlash)(d);await this._bfl(n,_,o.locale,!0)&&(this.components[u]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(A).then(n=>!!n&&fetchNextData({dataHref:(null==j?void 0:j.json)?null==j?void 0:j.dataHref:this.pageLoader.getDataHref({href:r,asPath:_,locale:y}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:o.unstable_skipClientCache||o.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[o.priority?"loadPage":"prefetch"](A)])}async fetchComponent(r){let n=getCancelledHandler({route:r,router:this});try{let o=await this.pageLoader.loadPage(r);return n(),o}catch(r){throw n(),r}}_getData(r){let n=!1,cancel=()=>{n=!0};return this.clc=cancel,r().then(r=>{if(cancel===this.clc&&(this.clc=null),n){let r=Error("Loading initial props cancelled");throw r.cancelled=!0,r}return r})}_getFlightData(r){return fetchNextData({dataHref:r,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(r=>{let{text:n}=r;return{data:n}})}getInitialProps(r,n){let{Component:o}=this.components["/_app"],l=this._wrapApp(o);return n.AppTree=l,(0,P.loadGetInitialProps)(o,{AppTree:l,Component:r,router:this,ctx:n})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(r,n,l,{initialProps:u,pageLoader:d,App:f,wrapApp:h,Component:g,err:_,subscription:y,isFallback:S,locale:R,locales:O,defaultLocale:j,domainLocales:A,isPreview:M}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=createKey(),this.onPopState=r=>{let n;let{isFirstPopStateEvent:o}=this;this.isFirstPopStateEvent=!1;let l=r.state;if(!l){let{pathname:r,query:n}=this;this.changeState("replaceState",(0,w.formatWithValidation)({pathname:(0,C.addBasePath)(r),query:n}),(0,P.getURL)());return}if(l.__NA){window.location.reload();return}if(!l.__N||o&&this.locale===l.options.locale&&l.as===this.asPath)return;let{url:u,as:s,options:d,key:f}=l;this._key=f;let{pathname:h}=(0,E.parseRelativeUrl)(u);(!this.isSsr||s!==(0,C.addBasePath)(this.asPath)||h!==(0,C.addBasePath)(this.pathname))&&(!this._bps||this._bps(l))&&this.change("replaceState",u,s,Object.assign({},d,{shallow:d.shallow&&this._shallow,locale:d.locale||this.defaultLocale,_h:0}),n)};let I=(0,s.removeTrailingSlash)(r);this.components={},"/_error"!==r&&(this.components[I]={Component:g,initial:!0,props:u,err:_,__N_SSG:u&&u.__N_SSG,__N_SSP:u&&u.__N_SSP}),this.components["/_app"]={Component:f,styleSheets:[]};{let{BloomFilter:r}=o(81403),n={numItems:11,errorRate:.01,numBits:106,numHashes:7,bitArray:[1,1,1,1,1,0,0,1,0,0,1,0,1,0,1,0,1,1,0,0,1,0,0,1,1,0,1,1,1,1,0,1,1,1,0,0,0,1,0,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,1,0,0,0,0,1,1,1,0,1,1,0,1,1,0,0,1,1,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,1,0,1,0,1,0,0,1,1,1,0,1,0,0,1]},l={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==n?void 0:n.numHashes)&&(this._bfl_s=new r(n.numItems,n.errorRate),this._bfl_s.import(n)),(null==l?void 0:l.numHashes)&&(this._bfl_d=new r(l.numItems,l.errorRate),this._bfl_d.import(l))}this.events=Router.events,this.pageLoader=d;let x=(0,b.isDynamicRoute)(r)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=y,this.clc=null,this._wrapApp=h,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.isExperimentalCompile||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.state={route:I,pathname:r,query:n,asPath:x?r:l,isPreview:!!M,locale:void 0,isFallback:S},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!l.startsWith("//")){let o={locale:R},u=(0,P.getURL)();this._initialMatchesMiddlewarePromise=matchesMiddleware({router:this,locale:R,asPath:u}).then(s=>(o._shouldResolveHref=l!==r,this.changeState("replaceState",s?u:(0,w.formatWithValidation)({pathname:(0,C.addBasePath)(r),query:n}),u,o),s))}window.addEventListener("popstate",this.onPopState)}};Router.events=(0,y.default)()},40142:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addLocale",{enumerable:!0,get:function(){return addLocale}});let l=o(43776),u=o(6315);function addLocale(r,n,o,s){if(!n||n===o)return r;let d=r.toLowerCase();return!s&&((0,u.pathHasPrefix)(d,"/api")||(0,u.pathHasPrefix)(d,"/"+n.toLowerCase()))?r:(0,l.addPathPrefix)(r,"/"+n)}},43776:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addPathPrefix",{enumerable:!0,get:function(){return addPathPrefix}});let l=o(80891);function addPathPrefix(r,n){if(!r.startsWith("/")||!n)return r;let{pathname:o,query:u,hash:s}=(0,l.parsePath)(r);return""+n+o+u+s}},40093:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"addPathSuffix",{enumerable:!0,get:function(){return addPathSuffix}});let l=o(80891);function addPathSuffix(r,n){if(!r.startsWith("/")||!n)return r;let{pathname:o,query:u,hash:s}=(0,l.parsePath)(r);return""+o+n+u+s}},39537:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{normalizeAppPath:function(){return normalizeAppPath},normalizeRscURL:function(){return normalizeRscURL},normalizePostponedURL:function(){return normalizePostponedURL}});let l=o(53029),u=o(7494);function normalizeAppPath(r){return(0,l.ensureLeadingSlash)(r.split("/").reduce((r,n,o,l)=>!n||(0,u.isGroupSegment)(n)||"@"===n[0]||("page"===n||"route"===n)&&o===l.length-1?r:r+"/"+n,""))}function normalizeRscURL(r){return r.replace(/\.rsc($|\?)/,"$1")}function normalizePostponedURL(r){let n=new URL(r),{pathname:o}=n;return o&&o.startsWith("/_next/postponed")?(n.pathname=o.substring(16)||"/",n.toString()):r}},32391:function(r,n){"use strict";function asPathToSearchParams(r){return new URL(r,"http://n").searchParams}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"asPathToSearchParams",{enumerable:!0,get:function(){return asPathToSearchParams}})},91530:function(r,n){"use strict";function compareRouterStates(r,n){let o=Object.keys(r);if(o.length!==Object.keys(n).length)return!1;for(let l=o.length;l--;){let u=o[l];if("query"===u){let o=Object.keys(r.query);if(o.length!==Object.keys(n.query).length)return!1;for(let l=o.length;l--;){let u=o[l];if(!n.query.hasOwnProperty(u)||r.query[u]!==n.query[u])return!1}}else if(!n.hasOwnProperty(u)||r[u]!==n[u])return!1}return!0}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"compareRouterStates",{enumerable:!0,get:function(){return compareRouterStates}})},8979:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"formatNextPathnameInfo",{enumerable:!0,get:function(){return formatNextPathnameInfo}});let l=o(96082),u=o(43776),s=o(40093),d=o(40142);function formatNextPathnameInfo(r){let n=(0,d.addLocale)(r.pathname,r.locale,r.buildId?void 0:r.defaultLocale,r.ignorePrefix);return(r.buildId||!r.trailingSlash)&&(n=(0,l.removeTrailingSlash)(n)),r.buildId&&(n=(0,s.addPathSuffix)((0,u.addPathPrefix)(n,"/_next/data/"+r.buildId),"/"===r.pathname?"index.json":".json")),n=(0,u.addPathPrefix)(n,r.basePath),!r.buildId&&r.trailingSlash?n.endsWith("/")?n:(0,s.addPathSuffix)(n,"/"):(0,l.removeTrailingSlash)(n)}},73833:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{formatUrl:function(){return formatUrl},urlObjectKeys:function(){return d},formatWithValidation:function(){return formatWithValidation}});let l=o(61757),u=l._(o(14828)),s=/https?|ftp|gopher|file/;function formatUrl(r){let{auth:n,hostname:o}=r,l=r.protocol||"",d=r.pathname||"",f=r.hash||"",h=r.query||"",g=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",r.host?g=n+r.host:o&&(g=n+(~o.indexOf(":")?"["+o+"]":o),r.port&&(g+=":"+r.port)),h&&"object"==typeof h&&(h=String(u.urlQueryToSearchParams(h)));let _=r.search||h&&"?"+h||"";return l&&!l.endsWith(":")&&(l+=":"),r.slashes||(!l||s.test(l))&&!1!==g?(g="//"+(g||""),d&&"/"!==d[0]&&(d="/"+d)):g||(g=""),f&&"#"!==f[0]&&(f="#"+f),_&&"?"!==_[0]&&(_="?"+_),""+l+g+(d=d.replace(/[?#]/g,encodeURIComponent))+(_=_.replace("#","%23"))+f}let d=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function formatWithValidation(r){return formatUrl(r)}},48052:function(r,n){"use strict";function getAssetPathFromRoute(r,n){void 0===n&&(n="");let o="/"===r?"/index":/^\/index(\/|$)/.test(r)?"/index"+r:""+r;return o+n}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return getAssetPathFromRoute}})},10673:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getNextPathnameInfo",{enumerable:!0,get:function(){return getNextPathnameInfo}});let l=o(64656),u=o(84980),s=o(6315);function getNextPathnameInfo(r,n){var o,d;let{basePath:f,i18n:h,trailingSlash:g}=null!=(o=n.nextConfig)?o:{},_={pathname:r,trailingSlash:"/"!==r?r.endsWith("/"):g};f&&(0,s.pathHasPrefix)(_.pathname,f)&&(_.pathname=(0,u.removePathPrefix)(_.pathname,f),_.basePath=f);let y=_.pathname;if(_.pathname.startsWith("/_next/data/")&&_.pathname.endsWith(".json")){let r=_.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),o=r[0];_.buildId=o,y="index"!==r[1]?"/"+r.slice(1).join("/"):"/",!0===n.parseData&&(_.pathname=y)}if(h){let r=n.i18nProvider?n.i18nProvider.analyze(_.pathname):(0,l.normalizeLocalePath)(_.pathname,h.locales);_.locale=r.detectedLocale,_.pathname=null!=(d=r.pathname)?d:_.pathname,!r.detectedLocale&&_.buildId&&(r=n.i18nProvider?n.i18nProvider.analyze(y):(0,l.normalizeLocalePath)(y,h.locales)).detectedLocale&&(_.locale=r.detectedLocale)}return _}},89987:function(r,n){"use strict";function handleSmoothScroll(r,n){if(void 0===n&&(n={}),n.onlyHashChange){r();return}let o=document.documentElement,l=o.style.scrollBehavior;o.style.scrollBehavior="auto",n.dontForceLayout||o.getClientRects(),r(),o.style.scrollBehavior=l}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"handleSmoothScroll",{enumerable:!0,get:function(){return handleSmoothScroll}})},21232:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{getSortedRoutes:function(){return l.getSortedRoutes},isDynamicRoute:function(){return u.isDynamicRoute}});let l=o(42839),u=o(38011)},49381:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"interpolateAs",{enumerable:!0,get:function(){return interpolateAs}});let l=o(89001),u=o(28300);function interpolateAs(r,n,o){let s="",d=(0,u.getRouteRegex)(r),f=d.groups,h=(n!==r?(0,l.getRouteMatcher)(d)(n):"")||o;s=r;let g=Object.keys(f);return g.every(r=>{let n=h[r]||"",{repeat:o,optional:l}=f[r],u="["+(o?"...":"")+r+"]";return l&&(u=(n?"":"/")+"["+u+"]"),o&&!Array.isArray(n)&&(n=[n]),(l||r in h)&&(s=s.replace(u,o?n.map(r=>encodeURIComponent(r)).join("/"):encodeURIComponent(n))||"/")})||(s=""),{params:g,result:s}}},66116:function(r,n){"use strict";function isBot(r){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(r)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isBot",{enumerable:!0,get:function(){return isBot}})},38011:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isDynamicRoute",{enumerable:!0,get:function(){return isDynamicRoute}});let o=/\/\[[^/]+?\](?=\/|$)/;function isDynamicRoute(r){return o.test(r)}},54131:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return isLocalURL}});let l=o(11306),u=o(45213);function isLocalURL(r){if(!(0,l.isAbsoluteUrl)(r))return!0;try{let n=(0,l.getLocationOrigin)(),o=new URL(r,n);return o.origin===n&&(0,u.hasBasePath)(o.pathname)}catch(r){return!1}}},89302:function(r,n){"use strict";function omit(r,n){let o={};return Object.keys(r).forEach(l=>{n.includes(l)||(o[l]=r[l])}),o}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"omit",{enumerable:!0,get:function(){return omit}})},80891:function(r,n){"use strict";function parsePath(r){let n=r.indexOf("#"),o=r.indexOf("?"),l=o>-1&&(n<0||o-1?{pathname:r.substring(0,l?o:n),query:l?r.substring(o,n>-1?n:void 0):"",hash:n>-1?r.slice(n):""}:{pathname:r,query:"",hash:""}}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"parsePath",{enumerable:!0,get:function(){return parsePath}})},89823:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"parseRelativeUrl",{enumerable:!0,get:function(){return parseRelativeUrl}});let l=o(11306),u=o(14828);function parseRelativeUrl(r,n){let o=new URL((0,l.getLocationOrigin)()),s=n?new URL(n,o):r.startsWith(".")?new URL(window.location.href):o,{pathname:d,searchParams:f,search:h,hash:g,href:_,origin:y}=new URL(r,s);if(y!==o.origin)throw Error("invariant: invalid relative URL, router received "+r);return{pathname:d,query:(0,u.searchParamsToUrlQuery)(f),search:h,hash:g,href:_.slice(o.origin.length)}}},6315:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"pathHasPrefix",{enumerable:!0,get:function(){return pathHasPrefix}});let l=o(80891);function pathHasPrefix(r,n){if("string"!=typeof r)return!1;let{pathname:o}=(0,l.parsePath)(r);return o===n||o.startsWith(n+"/")}},14828:function(r,n){"use strict";function searchParamsToUrlQuery(r){let n={};return r.forEach((r,o)=>{void 0===n[o]?n[o]=r:Array.isArray(n[o])?n[o].push(r):n[o]=[n[o],r]}),n}function stringifyUrlQueryParam(r){return"string"!=typeof r&&("number"!=typeof r||isNaN(r))&&"boolean"!=typeof r?"":String(r)}function urlQueryToSearchParams(r){let n=new URLSearchParams;return Object.entries(r).forEach(r=>{let[o,l]=r;Array.isArray(l)?l.forEach(r=>n.append(o,stringifyUrlQueryParam(r))):n.set(o,stringifyUrlQueryParam(l))}),n}function assign(r){for(var n=arguments.length,o=Array(n>1?n-1:0),l=1;l{Array.from(n.keys()).forEach(n=>r.delete(n)),n.forEach((n,o)=>r.append(o,n))}),r}Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{searchParamsToUrlQuery:function(){return searchParamsToUrlQuery},urlQueryToSearchParams:function(){return urlQueryToSearchParams},assign:function(){return assign}})},84980:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"removePathPrefix",{enumerable:!0,get:function(){return removePathPrefix}});let l=o(6315);function removePathPrefix(r,n){if(!(0,l.pathHasPrefix)(r,n))return r;let o=r.slice(n.length);return o.startsWith("/")?o:"/"+o}},96082:function(r,n){"use strict";function removeTrailingSlash(r){return r.replace(/\/$/,"")||"/"}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"removeTrailingSlash",{enumerable:!0,get:function(){return removeTrailingSlash}})},89001:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getRouteMatcher",{enumerable:!0,get:function(){return getRouteMatcher}});let l=o(11306);function getRouteMatcher(r){let{re:n,groups:o}=r;return r=>{let u=n.exec(r);if(!u)return!1;let decode=r=>{try{return decodeURIComponent(r)}catch(r){throw new l.DecodeError("failed to decode param")}},s={};return Object.keys(o).forEach(r=>{let n=o[r],l=u[n.pos];void 0!==l&&(s[r]=~l.indexOf("/")?l.split("/").map(r=>decode(r)):n.repeat?[decode(l)]:decode(l))}),s}}},28300:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{getRouteRegex:function(){return getRouteRegex},getNamedRouteRegex:function(){return getNamedRouteRegex},getNamedMiddlewareRegex:function(){return getNamedMiddlewareRegex}});let l=o(92407),u=o(24125),s=o(96082);function parseParameter(r){let n=r.startsWith("[")&&r.endsWith("]");n&&(r=r.slice(1,-1));let o=r.startsWith("...");return o&&(r=r.slice(3)),{key:r,repeat:o,optional:n}}function getParametrizedRoute(r){let n=(0,s.removeTrailingSlash)(r).slice(1).split("/"),o={},d=1;return{parameterizedRoute:n.map(r=>{let n=l.INTERCEPTION_ROUTE_MARKERS.find(n=>r.startsWith(n)),s=r.match(/\[((?:\[.*\])|.+)\]/);if(n&&s){let{key:r,optional:l,repeat:f}=parseParameter(s[1]);return o[r]={pos:d++,repeat:f,optional:l},"/"+(0,u.escapeStringRegexp)(n)+"([^/]+?)"}if(!s)return"/"+(0,u.escapeStringRegexp)(r);{let{key:r,repeat:n,optional:l}=parseParameter(s[1]);return o[r]={pos:d++,repeat:n,optional:l},n?l?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:o}}function getRouteRegex(r){let{parameterizedRoute:n,groups:o}=getParametrizedRoute(r);return{re:RegExp("^"+n+"(?:/)?$"),groups:o}}function buildGetSafeRouteKey(){let r=0;return()=>{let n="",o=++r;for(;o>0;)n+=String.fromCharCode(97+(o-1)%26),o=Math.floor((o-1)/26);return n}}function getSafeKeyFromSegment(r){let{getSafeRouteKey:n,segment:o,routeKeys:l,keyPrefix:u}=r,{key:s,optional:d,repeat:f}=parseParameter(o),h=s.replace(/\W/g,"");u&&(h=""+u+h);let g=!1;return(0===h.length||h.length>30)&&(g=!0),isNaN(parseInt(h.slice(0,1)))||(g=!0),g&&(h=n()),u?l[h]=""+u+s:l[h]=""+s,f?d?"(?:/(?<"+h+">.+?))?":"/(?<"+h+">.+?)":"/(?<"+h+">[^/]+?)"}function getNamedParametrizedRoute(r,n){let o=(0,s.removeTrailingSlash)(r).slice(1).split("/"),d=buildGetSafeRouteKey(),f={};return{namedParameterizedRoute:o.map(r=>{let o=l.INTERCEPTION_ROUTE_MARKERS.some(n=>r.startsWith(n)),s=r.match(/\[((?:\[.*\])|.+)\]/);return o&&s?getSafeKeyFromSegment({getSafeRouteKey:d,segment:s[1],routeKeys:f,keyPrefix:n?"nxtI":void 0}):s?getSafeKeyFromSegment({getSafeRouteKey:d,segment:s[1],routeKeys:f,keyPrefix:n?"nxtP":void 0}):"/"+(0,u.escapeStringRegexp)(r)}).join(""),routeKeys:f}}function getNamedRouteRegex(r,n){let o=getNamedParametrizedRoute(r,n);return{...getRouteRegex(r),namedRegex:"^"+o.namedParameterizedRoute+"(?:/)?$",routeKeys:o.routeKeys}}function getNamedMiddlewareRegex(r,n){let{parameterizedRoute:o}=getParametrizedRoute(r),{catchAll:l=!0}=n;if("/"===o)return{namedRegex:"^/"+(l?".*":"")+"$"};let{namedParameterizedRoute:u}=getNamedParametrizedRoute(r,!1);return{namedRegex:"^"+u+(l?"(?:(/.*)?)":"")+"$"}}},42839:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"getSortedRoutes",{enumerable:!0,get:function(){return getSortedRoutes}});let UrlNode=class UrlNode{insert(r){this._insert(r.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(r){void 0===r&&(r="/");let n=[...this.children.keys()].sort();null!==this.slugName&&n.splice(n.indexOf("[]"),1),null!==this.restSlugName&&n.splice(n.indexOf("[...]"),1),null!==this.optionalRestSlugName&&n.splice(n.indexOf("[[...]]"),1);let o=n.map(n=>this.children.get(n)._smoosh(""+r+n+"/")).reduce((r,n)=>[...r,...n],[]);if(null!==this.slugName&&o.push(...this.children.get("[]")._smoosh(r+"["+this.slugName+"]/")),!this.placeholder){let n="/"===r?"/":r.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+n+'" and "'+n+"[[..."+this.optionalRestSlugName+']]").');o.unshift(n)}return null!==this.restSlugName&&o.push(...this.children.get("[...]")._smoosh(r+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&o.push(...this.children.get("[[...]]")._smoosh(r+"[[..."+this.optionalRestSlugName+"]]/")),o}_insert(r,n,o){if(0===r.length){this.placeholder=!1;return}if(o)throw Error("Catch-all must be the last part of the URL.");let l=r[0];if(l.startsWith("[")&&l.endsWith("]")){let u=l.slice(1,-1),s=!1;if(u.startsWith("[")&&u.endsWith("]")&&(u=u.slice(1,-1),s=!0),u.startsWith("...")&&(u=u.substring(3),o=!0),u.startsWith("[")||u.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+u+"').");if(u.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+u+"').");function handleSlug(r,o){if(null!==r&&r!==o)throw Error("You cannot use different slug names for the same dynamic path ('"+r+"' !== '"+o+"').");n.forEach(r=>{if(r===o)throw Error('You cannot have the same slug name "'+o+'" repeat within a single dynamic path');if(r.replace(/\W/g,"")===l.replace(/\W/g,""))throw Error('You cannot have the slug names "'+r+'" and "'+o+'" differ only by non-word symbols within a single dynamic path')}),n.push(o)}if(o){if(s){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+r[0]+'" ).');handleSlug(this.optionalRestSlugName,u),this.optionalRestSlugName=u,l="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+r[0]+'").');handleSlug(this.restSlugName,u),this.restSlugName=u,l="[...]"}}else{if(s)throw Error('Optional route parameters are not yet supported ("'+r[0]+'").');handleSlug(this.slugName,u),this.slugName=u,l="[]"}}this.children.has(l)||this.children.set(l,new UrlNode),this.children.get(l)._insert(r.slice(1),n,o)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}};function getSortedRoutes(r){let n=new UrlNode;return r.forEach(r=>n.insert(r)),n.smoosh()}},50510:function(r,n){"use strict";let o;Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{default:function(){return _default},setConfig:function(){return setConfig}});let _default=()=>o;function setConfig(r){o=r}},7494:function(r,n){"use strict";function isGroupSegment(r){return"("===r[0]&&r.endsWith(")")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isGroupSegment",{enumerable:!0,get:function(){return isGroupSegment}})},13632:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return SideEffect}});let l=o(67294),u=l.useLayoutEffect,s=l.useEffect;function SideEffect(r){let{headManager:n,reduceComponentsToState:o}=r;function emitChange(){if(n&&n.mountedInstances){let u=l.Children.toArray(Array.from(n.mountedInstances).filter(Boolean));n.updateHead(o(u,r))}}return u(()=>{var o;return null==n||null==(o=n.mountedInstances)||o.add(r.children),()=>{var o;null==n||null==(o=n.mountedInstances)||o.delete(r.children)}}),u(()=>(n&&(n._pendingUpdate=emitChange),()=>{n&&(n._pendingUpdate=emitChange)})),s(()=>(n&&n._pendingUpdate&&(n._pendingUpdate(),n._pendingUpdate=null),()=>{n&&n._pendingUpdate&&(n._pendingUpdate(),n._pendingUpdate=null)})),null}},11306:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{WEB_VITALS:function(){return o},execOnce:function(){return execOnce},isAbsoluteUrl:function(){return isAbsoluteUrl},getLocationOrigin:function(){return getLocationOrigin},getURL:function(){return getURL},getDisplayName:function(){return getDisplayName},isResSent:function(){return isResSent},normalizeRepeatedSlashes:function(){return normalizeRepeatedSlashes},loadGetInitialProps:function(){return loadGetInitialProps},SP:function(){return u},ST:function(){return s},DecodeError:function(){return DecodeError},NormalizeError:function(){return NormalizeError},PageNotFoundError:function(){return PageNotFoundError},MissingStaticPage:function(){return MissingStaticPage},MiddlewareNotFoundError:function(){return MiddlewareNotFoundError},stringifyError:function(){return stringifyError}});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function execOnce(r){let n,o=!1;return function(){for(var l=arguments.length,u=Array(l),s=0;sl.test(r);function getLocationOrigin(){let{protocol:r,hostname:n,port:o}=window.location;return r+"//"+n+(o?":"+o:"")}function getURL(){let{href:r}=window.location,n=getLocationOrigin();return r.substring(n.length)}function getDisplayName(r){return"string"==typeof r?r:r.displayName||r.name||"Unknown"}function isResSent(r){return r.finished||r.headersSent}function normalizeRepeatedSlashes(r){let n=r.split("?"),o=n[0];return o.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(n[1]?"?"+n.slice(1).join("?"):"")}async function loadGetInitialProps(r,n){let o=n.res||n.ctx&&n.ctx.res;if(!r.getInitialProps)return n.ctx&&n.Component?{pageProps:await loadGetInitialProps(n.Component,n.ctx)}:{};let l=await r.getInitialProps(n);if(o&&isResSent(o))return l;if(!l){let n='"'+getDisplayName(r)+'.getInitialProps()" should resolve to an object. But found "'+l+'" instead.';throw Error(n)}return l}let u="undefined"!=typeof performance,s=u&&["mark","measure","getEntriesByName"].every(r=>"function"==typeof performance[r]);let DecodeError=class DecodeError extends Error{};let NormalizeError=class NormalizeError extends Error{};let PageNotFoundError=class PageNotFoundError extends Error{constructor(r){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+r}};let MissingStaticPage=class MissingStaticPage extends Error{constructor(r,n){super(),this.message="Failed to load static file for page: "+r+" "+n}};let MiddlewareNotFoundError=class MiddlewareNotFoundError extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}};function stringifyError(r){return JSON.stringify({message:r.message,stack:r.stack})}},69941:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});let warnOnce=r=>{}},78018:function(r){var n,o,l,u,s,d,f,h,g,_,y,P,b,E,S,R,w,O,j,A,M,C,I,x,L,N,D,k,F,U,H,B,W,q,z,G,V,X,Y,K,Q,$,J,Z,ee,et;(n={}).d=function(r,o){for(var l in o)n.o(o,l)&&!n.o(r,l)&&Object.defineProperty(r,l,{enumerable:!0,get:o[l]})},n.o=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},n.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},void 0!==n&&(n.ab="//"),o={},n.r(o),n.d(o,{getCLS:function(){return I},getFCP:function(){return A},getFID:function(){return U},getINP:function(){return $},getLCP:function(){return Z},getTTFB:function(){return et},onCLS:function(){return I},onFCP:function(){return A},onFID:function(){return U},onINP:function(){return $},onLCP:function(){return Z},onTTFB:function(){return et}}),h=-1,g=function(r){addEventListener("pageshow",function(n){n.persisted&&(h=n.timeStamp,r(n))},!0)},_=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},y=function(){var r=_();return r&&r.activationStart||0},P=function(r,n){var o=_(),l="navigate";return h>=0?l="back-forward-cache":o&&(l=document.prerendering||y()>0?"prerender":o.type.replace(/_/g,"-")),{name:r,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:l}},b=function(r,n,o){try{if(PerformanceObserver.supportedEntryTypes.includes(r)){var l=new PerformanceObserver(function(r){n(r.getEntries())});return l.observe(Object.assign({type:r,buffered:!0},o||{})),l}}catch(r){}},E=function(r,n){var T=function t(o){"pagehide"!==o.type&&"hidden"!==document.visibilityState||(r(o),n&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};addEventListener("visibilitychange",T,!0),addEventListener("pagehide",T,!0)},S=function(r,n,o,l){var u,s;return function(d){var f;n.value>=0&&(d||l)&&((s=n.value-(u||0))||void 0===u)&&(u=n.value,n.delta=s,n.rating=(f=n.value)>o[1]?"poor":f>o[0]?"needs-improvement":"good",r(n))}},R=-1,w=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},O=function(){E(function(r){R=r.timeStamp},!0)},j=function(){return R<0&&(R=w(),O(),g(function(){setTimeout(function(){R=w(),O()},0)})),{get firstHiddenTime(){return R}}},A=function(r,n){n=n||{};var o,l=[1800,3e3],u=j(),s=P("FCP"),c=function(r){r.forEach(function(r){"first-contentful-paint"===r.name&&(f&&f.disconnect(),r.startTime-1&&r(n)},u=P("CLS",0),s=0,d=[],p=function(r){r.forEach(function(r){if(!r.hadRecentInput){var n=d[0],o=d[d.length-1];s&&r.startTime-o.startTime<1e3&&r.startTime-n.startTime<5e3?(s+=r.value,d.push(r)):(s=r.value,d=[r]),s>u.value&&(u.value=s,u.entries=d,l())}})},f=b("layout-shift",p);f&&(l=S(i,u,o,n.reportAllChanges),E(function(){p(f.takeRecords()),l(!0)}),g(function(){s=0,C=-1,l=S(i,u=P("CLS",0),o,n.reportAllChanges)}))},x={passive:!0,capture:!0},L=new Date,N=function(r,n){l||(l=n,u=r,s=new Date,F(removeEventListener),D())},D=function(){if(u>=0&&u1e12?new Date:performance.now())-r.timeStamp;"pointerdown"==r.type?(n=function(){N(u,r),l()},o=function(){l()},l=function(){removeEventListener("pointerup",n,x),removeEventListener("pointercancel",o,x)},addEventListener("pointerup",n,x),addEventListener("pointercancel",o,x)):N(u,r)}},F=function(r){["mousedown","keydown","touchstart","pointerdown"].forEach(function(n){return r(n,k,x)})},U=function(r,n){n=n||{};var o,s=[100,300],f=j(),h=P("FID"),v=function(r){r.startTimen.latency){if(o)o.entries.push(r),o.latency=Math.max(o.latency,r.duration);else{var l={id:r.interactionId,latency:r.duration,entries:[r]};K[l.id]=l,Y.push(l)}Y.sort(function(r,n){return n.latency-r.latency}),Y.splice(10).forEach(function(r){delete K[r.id]})}},$=function(r,n){n=n||{};var o=[200,500];G();var l,u=P("INP"),a=function(r){r.forEach(function(r){r.interactionId&&Q(r),"first-input"!==r.entryType||Y.some(function(n){return n.entries.some(function(n){return r.duration===n.duration&&r.startTime===n.startTime})})||Q(r)});var n,o=(n=Math.min(Y.length-1,Math.floor(X()/50)),Y[n]);o&&o.latency!==u.value&&(u.value=o.latency,u.entries=o.entries,l())},s=b("event",a,{durationThreshold:n.durationThreshold||40});l=S(r,u,o,n.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),E(function(){a(s.takeRecords()),u.value<0&&X()>0&&(u.value=0,u.entries=[]),l(!0)}),g(function(){Y=[],V=z(),l=S(r,u=P("INP"),o,n.reportAllChanges)}))},J={},Z=function(r,n){n=n||{};var o,l=[2500,4e3],u=j(),s=P("LCP"),c=function(r){var n=r[r.length-1];if(n){var l=n.startTime-y();lperformance.now())return;l.entries=[s],u(!0),g(function(){(u=S(r,l=P("TTFB",0),o,n.reportAllChanges))(!0)})}})},r.exports=o},79423:function(r,n){"use strict";function isAPIRoute(r){return"/api"===r||!!(null==r?void 0:r.startsWith("/api/"))}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isAPIRoute",{enumerable:!0,get:function(){return isAPIRoute}})},80676:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{default:function(){return isError},getProperError:function(){return getProperError}});let l=o(19942);function isError(r){return"object"==typeof r&&null!==r&&"name"in r&&"message"in r}function getProperError(r){return isError(r)?r:Error((0,l.isPlainObject)(r)?JSON.stringify(r):r+"")}},92407:function(r,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(r,n){for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]})}(n,{INTERCEPTION_ROUTE_MARKERS:function(){return u},isInterceptionRouteAppPath:function(){return isInterceptionRouteAppPath},extractInterceptionRouteInformation:function(){return extractInterceptionRouteInformation}});let l=o(39537),u=["(..)(..)","(.)","(..)","(...)"];function isInterceptionRouteAppPath(r){return void 0!==r.split("/").find(r=>u.find(n=>r.startsWith(n)))}function extractInterceptionRouteInformation(r){let n,o,s;for(let l of r.split("/"))if(o=u.find(r=>l.startsWith(r))){[n,s]=r.split(o,2);break}if(!n||!o||!s)throw Error(`Invalid interception route: ${r}. Must be in the format //(..|...|..)(..)/`);switch(n=(0,l.normalizeAppPath)(n),o){case"(.)":s="/"===n?`/${s}`:n+"/"+s;break;case"(..)":if("/"===n)throw Error(`Invalid interception route: ${r}. Cannot use (..) marker at the root level, use (.) instead.`);s=n.split("/").slice(0,-1).concat(s).join("/");break;case"(...)":s="/"+s;break;case"(..)(..)":let d=n.split("/");if(d.length<=2)throw Error(`Invalid interception route: ${r}. Cannot use (..)(..) marker at the root level or one level up.`);s=d.slice(0,-2).concat(s).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:n,interceptedRoute:s}}},72431:function(){},38754:function(r,n,o){"use strict";function _interop_require_default(r){return r&&r.__esModule?r:{default:r}}o.r(n),o.d(n,{_:function(){return _interop_require_default},_interop_require_default:function(){return _interop_require_default}})},61757:function(r,n,o){"use strict";function _getRequireWildcardCache(r){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(_getRequireWildcardCache=function(r){return r?o:n})(r)}function _interop_require_wildcard(r,n){if(!n&&r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var o=_getRequireWildcardCache(n);if(o&&o.has(r))return o.get(r);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in r)if("default"!==s&&Object.prototype.hasOwnProperty.call(r,s)){var d=u?Object.getOwnPropertyDescriptor(r,s):null;d&&(d.get||d.set)?Object.defineProperty(l,s,d):l[s]=r[s]}return l.default=r,o&&o.set(r,l),l}o.r(n),o.d(n,{_:function(){return _interop_require_wildcard},_interop_require_wildcard:function(){return _interop_require_wildcard}})}},function(r){r.O(0,[774],function(){return r(r.s=46653)}),_N_E=r.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/main-app-53ae048f9d34c57a.js b/web/_next/static/chunks/main-app-53ae048f9d34c57a.js new file mode 100644 index 00000000..f7c49a73 --- /dev/null +++ b/web/_next/static/chunks/main-app-53ae048f9d34c57a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[744],{60039:function(e,n,_){Promise.resolve().then(_.t.bind(_,33728,23)),Promise.resolve().then(_.t.bind(_,29928,23)),Promise.resolve().then(_.t.bind(_,56954,23)),Promise.resolve().then(_.t.bind(_,3170,23)),Promise.resolve().then(_.t.bind(_,7264,23)),Promise.resolve().then(_.t.bind(_,48297,23))}},function(e){var __webpack_exec__=function(n){return e(e.s=n)};e.O(0,[971,472],function(){return __webpack_exec__(62019),__webpack_exec__(60039)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/pages/_app-451d704a741dc8a8.js b/web/_next/static/chunks/pages/_app-451d704a741dc8a8.js new file mode 100644 index 00000000..7354b2a4 --- /dev/null +++ b/web/_next/static/chunks/pages/_app-451d704a741dc8a8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{41597:function(_,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return e(28955)}])}},function(_){var __webpack_exec__=function(n){return _(_.s=n)};_.O(0,[774,179],function(){return __webpack_exec__(41597),__webpack_exec__(24751)}),_N_E=_.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/pages/_error-d6885ef27f2c5e3d.js b/web/_next/static/chunks/pages/_error-d6885ef27f2c5e3d.js new file mode 100644 index 00000000..5b14d66a --- /dev/null +++ b/web/_next/static/chunks/pages/_error-d6885ef27f2c5e3d.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{81981:function(n,_,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_error",function(){return u(34570)}])}},function(n){n.O(0,[888,774,179],function(){return n(n.s=81981)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/web/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js b/web/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js new file mode 100644 index 00000000..3858b79f --- /dev/null +++ b/web/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js @@ -0,0 +1 @@ +!function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){var e={exports:{}};return t(e,e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},n=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,s=u&&!a.call({1:2},1)?function(t){var e=u(this,t);return!!e&&e.enumerable}:a,c={f:s},f=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},l={}.toString,h=function(t){return l.call(t).slice(8,-1)},p="".split,d=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==h(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return d(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!y(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!y(n=r.call(t)))return n;if(!e&&"function"==typeof(r=t.toString)&&!y(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},b={}.hasOwnProperty,w=function(t,e){return b.call(t,e)},S=n.document,E=y(S)&&y(S.createElement),x=function(t){return E?S.createElement(t):{}},A=!i&&!o(function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor,R={f:i?O:function(t,e){if(t=g(t),e=m(e,!0),A)try{return O(t,e)}catch(t){}if(w(t,e))return f(!c.f.call(t,e),t[e])}},j=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},P=Object.defineProperty,I={f:i?P:function(t,e,r){if(j(t),e=m(e,!0),j(r),A)try{return P(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},T=i?function(t,e,r){return I.f(t,e,f(1,r))}:function(t,e,r){return t[e]=r,t},k=function(t,e){try{T(n,t,e)}catch(r){n[t]=e}return e},L="__core-js_shared__",U=n[L]||k(L,{}),M=Function.toString;"function"!=typeof U.inspectSource&&(U.inspectSource=function(t){return M.call(t)});var _,N,C,F=U.inspectSource,B=n.WeakMap,D="function"==typeof B&&/native code/.test(F(B)),q=!1,z=e(function(t){(t.exports=function(t,e){return U[t]||(U[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})}),W=0,K=Math.random(),G=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++W+K).toString(36)},$=z("keys"),V=function(t){return $[t]||($[t]=G(t))},H={};if(D){var X=new(0,n.WeakMap),Y=X.get,J=X.has,Q=X.set;_=function(t,e){return Q.call(X,t,e),e},N=function(t){return Y.call(X,t)||{}},C=function(t){return J.call(X,t)}}else{var Z=V("state");H[Z]=!0,_=function(t,e){return T(t,Z,e),e},N=function(t){return w(t,Z)?t[Z]:{}},C=function(t){return w(t,Z)}}var tt,et={set:_,get:N,has:C,enforce:function(t){return C(t)?N(t):_(t,{})},getterFor:function(t){return function(e){var r;if(!y(e)||(r=N(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}},rt=e(function(t){var e=et.get,r=et.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||T(i,"name",e),r(i).source=o.join("string"==typeof e?e:"")),t!==n?(u?!c&&t[e]&&(s=!0):delete t[e],s?t[e]=i:T(t,e,i)):s?t[e]=i:k(e,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||F(this)})}),nt=n,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(nt[t])||ot(n[t]):nt[t]&&nt[t][e]||n[t]&&n[t][e]},at=Math.ceil,ut=Math.floor,st=function(t){return isNaN(t=+t)?0:(t>0?ut:at)(t)},ct=Math.min,ft=function(t){return t>0?ct(st(t),9007199254740991):0},lt=Math.max,ht=Math.min,pt=function(t,e){var r=st(t);return r<0?lt(r+e,0):ht(r,e)},dt=function(t){return function(e,r,n){var o,i=g(e),a=ft(i.length),u=pt(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},vt={includes:dt(!0),indexOf:dt(!1)},gt=vt.indexOf,yt=function(t,e){var r,n=g(t),o=0,i=[];for(r in n)!w(H,r)&&w(n,r)&&i.push(r);for(;e.length>o;)w(n,r=e[o++])&&(~gt(i,r)||i.push(r));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),wt={f:Object.getOwnPropertyNames||function(t){return yt(t,bt)}},St={f:Object.getOwnPropertySymbols},Et=it("Reflect","ownKeys")||function(t){var e=wt.f(j(t)),r=St.f;return r?e.concat(r(t)):e},xt=function(t,e){for(var r=Et(e),n=I.f,o=R.f,i=0;i2?arguments[2]:void 0,u=Mt((void 0===a?n:pt(a,n))-i,n-o),s=1;for(i0;)i in r?r[o]=r[i]:delete r[o],o+=s,i+=s;return r},Nt=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())}),Ct=Nt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=z("wks"),Bt=n.Symbol,Dt=Ct?Bt:Bt&&Bt.withoutSetter||G,qt=function(t){return w(Ft,t)||(Ft[t]=Nt&&w(Bt,t)?Bt[t]:Dt("Symbol."+t)),Ft[t]},zt=Object.keys||function(t){return yt(t,mt)},Wt=i?Object.defineProperties:function(t,e){j(t);for(var r,n=zt(e),o=n.length,i=0;o>i;)I.f(t,r=n[i++],e[r]);return t},Kt=it("document","documentElement"),Gt=V("IE_PROTO"),$t=function(){},Vt=function(t){return"Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/anilist.txt b/web/anilist.txt new file mode 100644 index 00000000..ee891f4e --- /dev/null +++ b/web/anilist.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["anilist",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[48289,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","669","static/chunks/669-8b57afc188d304dc.js","697","static/chunks/697-5201969c631263d5.js","235","static/chunks/235-952226bbbfeb6e72.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","832","static/chunks/832-6080f7c29a7a0d2c.js","214","static/chunks/214-90a997fb4783982d.js","424","static/chunks/app/(main)/anilist/page-728be06c5500b3d9.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","anilist","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"anilist"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/auth/callback.html b/web/auth/callback.html new file mode 100644 index 00000000..cd0458ef --- /dev/null +++ b/web/auth/callback.html @@ -0,0 +1 @@ +Seanime
Websocket connection

Authenticating...

\ No newline at end of file diff --git a/web/auth/callback.txt b/web/auth/callback.txt new file mode 100644 index 00000000..798ed83c --- /dev/null +++ b/web/auth/callback.txt @@ -0,0 +1,10 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["auth",{"children":["callback",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +8:I[48297,[],""] +9:I[52411,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","685","static/chunks/685-8631e79fc20fe503.js","453","static/chunks/app/auth/callback/page-635c8a21188270e6.js"],""] +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","auth","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","auth","children","callback","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$L7",["$","$L8",null,{"propsForComponent":{"params":{}},"Component":"$9","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"callback"},"styles":null}],"segment":"auth"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +7:null diff --git a/web/discover.html b/web/discover.html new file mode 100644 index 00000000..6d13fb1d --- /dev/null +++ b/web/discover.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/discover.txt b/web/discover.txt new file mode 100644 index 00000000..023ed391 --- /dev/null +++ b/web/discover.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["discover",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[14067,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","669","static/chunks/669-8b57afc188d304dc.js","697","static/chunks/697-5201969c631263d5.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","832","static/chunks/832-6080f7c29a7a0d2c.js","214","static/chunks/214-90a997fb4783982d.js","304","static/chunks/app/(main)/discover/page-48662275260624ad.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","discover","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"discover"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/entry.html b/web/entry.html new file mode 100644 index 00000000..af46b6e6 --- /dev/null +++ b/web/entry.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/entry.txt b/web/entry.txt new file mode 100644 index 00000000..5894d104 --- /dev/null +++ b/web/entry.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["entry",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[21626,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","669","static/chunks/669-8b57afc188d304dc.js","310","static/chunks/310-7fd40363424decf0.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","832","static/chunks/832-6080f7c29a7a0d2c.js","700","static/chunks/700-4c0fff6a5cea1bf4.js","811","static/chunks/app/(main)/entry/page-3e83c54eaf4afb8e.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","entry","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"entry"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/icons/android-chrome-192x192.png b/web/icons/android-chrome-192x192.png new file mode 100644 index 00000000..8daf63c9 Binary files /dev/null and b/web/icons/android-chrome-192x192.png differ diff --git a/web/icons/android-chrome-512x512.png b/web/icons/android-chrome-512x512.png new file mode 100644 index 00000000..70ae2e2a Binary files /dev/null and b/web/icons/android-chrome-512x512.png differ diff --git a/web/icons/apple-icon.png b/web/icons/apple-icon.png new file mode 100644 index 00000000..ef5321bd Binary files /dev/null and b/web/icons/apple-icon.png differ diff --git a/web/icons/favicon-16x16.png b/web/icons/favicon-16x16.png new file mode 100644 index 00000000..62037017 Binary files /dev/null and b/web/icons/favicon-16x16.png differ diff --git a/web/icons/favicon-32x32.png b/web/icons/favicon-32x32.png new file mode 100644 index 00000000..e6224b9d Binary files /dev/null and b/web/icons/favicon-32x32.png differ diff --git a/web/icons/favicon.ico b/web/icons/favicon.ico new file mode 100644 index 00000000..006f7215 Binary files /dev/null and b/web/icons/favicon.ico differ diff --git a/web/index.html b/web/index.html new file mode 100644 index 00000000..4798b08d --- /dev/null +++ b/web/index.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/index.txt b/web/index.txt new file mode 100644 index 00000000..18a71be3 --- /dev/null +++ b/web/index.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["(library)",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[55990,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","669","static/chunks/669-8b57afc188d304dc.js","697","static/chunks/697-5201969c631263d5.js","244","static/chunks/244-e2910c8160e82d69.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","832","static/chunks/832-6080f7c29a7a0d2c.js","214","static/chunks/214-90a997fb4783982d.js","700","static/chunks/700-4c0fff6a5cea1bf4.js","758","static/chunks/app/(main)/(library)/page-7f60504fbe6b3e11.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","(library)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"(library)"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/jotai.png b/web/jotai.png new file mode 100644 index 00000000..ab98f523 Binary files /dev/null and b/web/jotai.png differ diff --git a/web/landscape-beach.jpg b/web/landscape-beach.jpg new file mode 100644 index 00000000..59c5ade4 Binary files /dev/null and b/web/landscape-beach.jpg differ diff --git a/web/landscape-one-piece-01.jpg b/web/landscape-one-piece-01.jpg new file mode 100644 index 00000000..d0b5b7c6 Binary files /dev/null and b/web/landscape-one-piece-01.jpg differ diff --git a/web/landscape-tenki-no-ko.jpg b/web/landscape-tenki-no-ko.jpg new file mode 100644 index 00000000..347cebfb Binary files /dev/null and b/web/landscape-tenki-no-ko.jpg differ diff --git a/web/logo.png b/web/logo.png new file mode 100644 index 00000000..900458b6 Binary files /dev/null and b/web/logo.png differ diff --git a/web/luffy-01.png b/web/luffy-01.png new file mode 100644 index 00000000..fb30d424 Binary files /dev/null and b/web/luffy-01.png differ diff --git a/web/qbittorrent.html b/web/qbittorrent.html new file mode 100644 index 00000000..4ed76850 --- /dev/null +++ b/web/qbittorrent.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/qbittorrent.txt b/web/qbittorrent.txt new file mode 100644 index 00000000..1205af62 --- /dev/null +++ b/web/qbittorrent.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["qbittorrent",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[66282,["890","static/chunks/890-a0affa6da0f35a45.js","685","static/chunks/685-8631e79fc20fe503.js","77","static/chunks/app/(main)/qbittorrent/page-177f7611544cac13.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","qbittorrent","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"qbittorrent"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/schedule.html b/web/schedule.html new file mode 100644 index 00000000..5b230346 --- /dev/null +++ b/web/schedule.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/schedule.txt b/web/schedule.txt new file mode 100644 index 00000000..3f477197 --- /dev/null +++ b/web/schedule.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["schedule",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[48558,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","17","static/chunks/17-1306f5028c21107b.js","726","static/chunks/726-55a870ab74256460.js","669","static/chunks/669-8b57afc188d304dc.js","912","static/chunks/912-90f07824ac578d0d.js","700","static/chunks/700-4c0fff6a5cea1bf4.js","931","static/chunks/app/(main)/schedule/page-4d018812986fa728.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","schedule","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"schedule"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/search.html b/web/search.html new file mode 100644 index 00000000..f1f607e7 --- /dev/null +++ b/web/search.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/search.txt b/web/search.txt new file mode 100644 index 00000000..214190e4 --- /dev/null +++ b/web/search.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["search",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[62134,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","669","static/chunks/669-8b57afc188d304dc.js","697","static/chunks/697-5201969c631263d5.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","832","static/chunks/832-6080f7c29a7a0d2c.js","214","static/chunks/214-90a997fb4783982d.js","580","static/chunks/app/(main)/search/page-38764ad0387b4b35.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","search","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"search"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/settings.html b/web/settings.html new file mode 100644 index 00000000..f9215f30 --- /dev/null +++ b/web/settings.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/settings.txt b/web/settings.txt new file mode 100644 index 00000000..cce2a2a8 --- /dev/null +++ b/web/settings.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["settings",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[50942,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","898","static/chunks/898-867d5c5a74dd998a.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","978","static/chunks/app/(main)/settings/page-b11244f9b58d257c.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","settings","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"settings"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null diff --git a/web/torrent-list.html b/web/torrent-list.html new file mode 100644 index 00000000..c6060d4f --- /dev/null +++ b/web/torrent-list.html @@ -0,0 +1 @@ +Seanime
Websocket connection
Loading...
\ No newline at end of file diff --git a/web/torrent-list.txt b/web/torrent-list.txt new file mode 100644 index 00000000..a05d9172 --- /dev/null +++ b/web/torrent-list.txt @@ -0,0 +1,16 @@ +1:HL["/_next/static/css/1d100f42f4ac0647.css","style",{"crossOrigin":""}] +0:["vkSfMfkSm0BrgT0hEZ6v6",[[["",{"children":["(main)",{"children":["torrent-list",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1d100f42f4ac0647.css","precedence":"next","crossOrigin":""}]],"$L3"]]]] +4:I[50261,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","898","static/chunks/898-867d5c5a74dd998a.js","322","static/chunks/322-ae1b582ee7e6158b.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","345","static/chunks/345-bb10f8cbbe48b17d.js","185","static/chunks/app/layout-c818df4fd8d97609.js"],"ClientProviders"] +5:I[56954,[],""] +6:I[7264,[],""] +7:I[33729,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","890","static/chunks/890-a0affa6da0f35a45.js","999","static/chunks/999-20d7a2d26818c1ce.js","685","static/chunks/685-8631e79fc20fe503.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","726","static/chunks/726-55a870ab74256460.js","766","static/chunks/766-37d354716b7b2abd.js","912","static/chunks/912-90f07824ac578d0d.js","430","static/chunks/430-e8d734703782ef64.js","95","static/chunks/app/(main)/layout-0355c4142dfd2591.js"],""] +d:I[48297,[],""] +e:I[66688,["492","static/chunks/492-8cf0f4c3a55dfe5f.js","999","static/chunks/999-20d7a2d26818c1ce.js","702","static/chunks/702-4328c5586a2351b1.js","17","static/chunks/17-1306f5028c21107b.js","265","static/chunks/265-28c06c1a98f170af.js","912","static/chunks/912-90f07824ac578d0d.js","666","static/chunks/app/(main)/torrent-list/page-646d974158ea05fd.js"],""] +8:{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"} +9:{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"} +a:{"display":"inline-block"} +b:{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0} +f:{} +2:[null,["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"__className_e66fe9","suppressHydrationWarning":true,"children":[["$","script",null,{"src":"http://127.0.0.1:8097"}],["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":"404"}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":[null,["$","$L7",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":"$8","children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":"$9","children":"404"}],["$","div",null,{"style":"$a","children":["$","h2",null,{"style":"$b","children":"This page could not be found."}]}]]}]}]],"notFoundStyles":[],"childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","(main)","children","torrent-list","children"],"loading":"$undefined","loadingStyles":"$undefined","loadingScripts":"$undefined","hasLoading":false,"error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lc",["$","$Ld",null,{"propsForComponent":{"params":{}},"Component":"$e","isStaticGeneration":true}],null],"segment":"__PAGE__"},"styles":null}],"segment":"torrent-list"},"styles":null}],"params":"$f"}],null],"segment":"(main)"},"styles":null}]}]]}]}],null] +3:[["$","meta","0",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","1",{"charSet":"utf-8"}],["$","title","2",{"children":"Seanime"}],["$","meta","3",{"name":"description","content":"Manage your anime library."}],["$","link","4",{"rel":"icon","href":"/icons/favicon.ico"}]] +c:null