"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[965],{6648:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(5601),o=n.n(r)},5601:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return u}});let r=n(9920),o=n(497),i=n(8173),a=r._(n(1241));function u(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.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}}let l=i.Image},9046:function(e,t,n){n.d(t,{Lj:function(){return r},y7:function(){return o}});var r={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};r.easeOut,r.easeIn;var o={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:r.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:r.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:r.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:r.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:r.ease}},exit:{opacity:0,transition:{duration:.3,ease:r.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},7546:function(e,t,n){n.d(t,{MT:function(){return c},cW:function(){return h}});var r=n(7603),o=n(7854),i=n(9248),a=n(2265);let u=a.createContext(null),l=null;function c(e){let t,n,{children:r,contain:c,restoreFocus:s,autoFocus:d}=e,f=(0,a.useRef)(null),h=(0,a.useRef)(null),R=(0,a.useRef)([]),{parentNode:S}=(0,a.useContext)(u)||{},w=(0,a.useMemo)(()=>new T({scopeRef:R}),[R]);(0,i.b)(()=>{let e=S||x.root;if(x.getTreeNode(e.scopeRef)&&l&&!g(l,e.scopeRef)){let t=x.getTreeNode(l);t&&(e=t)}e.addChild(w),x.addNode(w)},[w,S]),(0,i.b)(()=>{let e=x.getTreeNode(R);e&&(e.contain=!!c)},[c]),(0,i.b)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.nextSibling,n=[];for(;t&&t!==h.current;)n.push(t),t=t.nextSibling;R.current=n},[r]),(0,i.b)(()=>{if(s||c)return;let e=R.current,t=(0,o.r)(e?e[0]:void 0),n=e=>{let t=e.target;m(t,R.current)?l=R:b(t)||(l=null)};return t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),()=>{t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1))}},[R,s,c]),t=(0,a.useRef)(),n=(0,a.useRef)(),(0,i.b)(()=>{let e=R.current;if(!c){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let r=(0,o.r)(e?e[0]:void 0),i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!v(R)||e.isComposing)return;let t=r.activeElement,n=R.current;if(!n||!m(t,n))return;let o=N(p(n),{tabbable:!0},n);if(!t)return;o.currentNode=t;let i=e.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,i=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),i&&E(i,!0)},a=e=>{(!l||g(l,R))&&m(e.target,R.current)?(l=R,t.current=e.target):v(R)&&!b(e.target,R)?t.current?t.current.focus():l&&l.current&&y(l.current):v(R)&&(t.current=e.target)},u=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{if(r.activeElement&&v(R)&&!b(r.activeElement,R)){if(l=R,r.body.contains(e.target)){var n;t.current=e.target,null===(n=t.current)||void 0===n||n.focus()}else l.current&&y(l.current)}})};return r.addEventListener("keydown",i,!1),r.addEventListener("focusin",a,!1),null==e||e.forEach(e=>e.addEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",u,!1)),()=>{r.removeEventListener("keydown",i,!1),r.removeEventListener("focusin",a,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",a,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",u,!1))}},[R,c]),(0,i.b)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let r=(0,a.useRef)("undefined"!=typeof document?(0,o.r)(e.current?e.current[0]:void 0).activeElement:null);(0,i.b)(()=>{let r=e.current,i=(0,o.r)(r?r[0]:void 0);if(!t||n)return;let a=()=>{(!l||g(l,e))&&m(i.activeElement,e.current)&&(l=e)};return i.addEventListener("focusin",a,!1),null==r||r.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),null==r||r.forEach(e=>e.removeEventListener("focusin",a,!1))}},[e,n]),(0,i.b)(()=>{let r=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!v(e)||t.isComposing)return;let n=r.activeElement;if(!m(n,e.current))return;let o=x.getTreeNode(e);if(!o)return;let i=o.nodeToRestore,a=N(r.body,{tabbable:!0});a.currentNode=n;let u=t.shiftKey?a.previousNode():a.nextNode();if(i&&r.body.contains(i)&&i!==r.body||(i=void 0,o.nodeToRestore=void 0),(!u||!m(u,e.current))&&i){a.currentNode=i;do u=t.shiftKey?a.previousNode():a.nextNode();while(m(u,e.current));(t.preventDefault(),t.stopPropagation(),u)?E(u,!0):b(i)?E(i,!0):n.blur()}};return n||r.addEventListener("keydown",i,!0),()=>{n||r.removeEventListener("keydown",i,!0)}},[e,t,n]),(0,i.b)(()=>{var n;let i=(0,o.r)(e.current?e.current[0]:void 0);if(!t)return;let a=x.getTreeNode(e);if(a)return a.nodeToRestore=null!==(n=r.current)&&void 0!==n?n:void 0,()=>{let n=x.getTreeNode(e);if(!n)return;let r=n.nodeToRestore;if(t&&r&&(m(i.activeElement,e.current)||i.activeElement===i.body&&function(e){let t=x.getTreeNode(l);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=x.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&n.nodeToRestore.isConnected){E(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&x.getTreeNode(n.scopeRef)){y(n.scopeRef.current,!0);return}n=n.parent}}})}}},[e,t])}(R,s,c),function(e,t){let n=a.useRef(t);(0,a.useEffect)(()=>{n.current&&(l=e,!m((0,o.r)(e.current?e.current[0]:void 0).activeElement,l.current)&&e.current&&y(e.current)),n.current=!1},[e])}(R,d),(0,a.useEffect)(()=>{let e=(0,o.r)(R.current?R.current[0]:void 0).activeElement,t=null;if(m(e,R.current)){for(let n of x.traverse())n.scopeRef&&m(e,n.scopeRef.current)&&(t=n);t===x.getTreeNode(R)&&(l=t.scopeRef)}},[R]),(0,i.b)(()=>()=>{var e,t,n;let r=null!==(n=null===(t=x.getTreeNode(R))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(R===l||g(R,l))&&(!r||x.getTreeNode(r))&&(l=r),x.removeTreeNode(R)},[R]);let L=(0,a.useMemo)(()=>({focusNext(e={}){let t=R.current,{from:n,tabbable:r,wrap:i,accept:a}=e,u=n||(0,o.r)(t[0]).activeElement,l=t[0].previousElementSibling,c=N(p(t),{tabbable:r,accept:a},t);c.currentNode=m(u,t)?u:l;let s=c.nextNode();return!s&&i&&(c.currentNode=l,s=c.nextNode()),s&&E(s,!0),s},focusPrevious(e={}){let t=R.current,{from:n,tabbable:r,wrap:i,accept:a}=e,u=n||(0,o.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,c=N(p(t),{tabbable:r,accept:a},t);c.currentNode=m(u,t)?u:l;let s=c.previousNode();return!s&&i&&(c.currentNode=l,s=c.previousNode()),s&&E(s,!0),s},focusFirst(e={}){let t=R.current,{tabbable:n,accept:r}=e,o=N(p(t),{tabbable:n,accept:r},t);o.currentNode=t[0].previousElementSibling;let i=o.nextNode();return i&&E(i,!0),i},focusLast(e={}){let t=R.current,{tabbable:n,accept:r}=e,o=N(p(t),{tabbable:n,accept:r},t);o.currentNode=t[t.length-1].nextElementSibling;let i=o.previousNode();return i&&E(i,!0),i}}),[]),C=(0,a.useMemo)(()=>({focusManager:L,parentNode:w}),[w,L]);return a.createElement(u.Provider,{value:C},a.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:f}),r,a.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:h}))}let s=["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]"],d=s.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";s.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let f=s.join(':not([hidden]):not([tabindex="-1"]),');function p(e){return e[0].parentElement}function v(e){let t=x.getTreeNode(l);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function b(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of x.traverse(x.getTreeNode(t)))if(n&&m(e,n.current))return!0;return!1}function h(e){return b(e,l)}function g(e,t){var n;let r=null===(n=x.getTreeNode(t))||void 0===n?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function E(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{(0,r.e)(e)}catch(e){}}function y(e,t=!0){let n=e[0].previousElementSibling,r=p(e),o=N(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&((o=N(r=p(e),{tabbable:!1},e)).currentNode=n,i=o.nextNode()),E(i)}function N(e,t,n){let r=(null==t?void 0:t.tabbable)?f:d,i=(0,o.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var i;return(null==t?void 0:null===(i=t.from)||void 0===i?void 0:i.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){let t=(0,o.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i="none"!==n&&"hidden"!==r&&"collapse"!==r;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);i="none"!==n&&"hidden"!==r&&"collapse"!==r}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||m(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(i.currentNode=t.from),i}class R{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new T({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new R;for(let r of this.traverse())n.addTreeNode(r.scopeRef,null!==(t=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,r.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new T({scopeRef:null}),this.fastMap.set(null,this.root)}}class T{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let x=new R},4909:function(e,t,n){n.d(t,{b:function(){return m},j:function(){return b}});let r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.script)return r.has(t.script)}let t=e.split("-")[0];return o.has(t)}var a=n(2265),u=n(3165);let l=Symbol.for("react-aria.i18n.locale");function c(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:i(e)?"rtl":"ltr"}}let s=c(),d=new Set;function f(){for(let e of(s=c(),d))e(s)}function p(){let e=(0,u.Av)(),[t,n]=(0,a.useState)(s);return((0,a.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",f),d.add(n),()=>{d.delete(n),0===d.size&&window.removeEventListener("languagechange",f)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let v=a.createContext(null);function m(e){let{locale:t,children:n}=e,r=p(),o=a.useMemo(()=>t?{locale:t,direction:i(t)?"rtl":"ltr"}:r,[r,t]);return a.createElement(v.Provider,{value:o},n)}function b(){let e=p();return(0,a.useContext)(v)||e}},1368:function(e,t,n){n.d(t,{aV:function(){return f},Bq:function(){return p}});var r=n(2265);let o=(0,r.createContext)({});var i=n(8526);function a({children:e}){let t=(0,r.useMemo)(()=>({register:()=>{}}),[]);return r.createElement(i.O.Provider,{value:t},e)}var u=n(7546),l=n(4887),c=n(3165),s=n(9248);let d=r.createContext(null);function f(e){var t;let n=(0,c.Av)(),{portalContainer:i=n?null:document.body,isExiting:s}=e,[f,p]=(0,r.useState)(!1),v=(0,r.useMemo)(()=>({contain:f,setContain:p}),[f,p]),{getContainer:m}=null!==(t=(0,r.useContext)(o))&&void 0!==t?t:{};if(!e.portalContainer&&m&&(i=m()),!i)return null;let b=e.children;return e.disableFocusManagement||(b=r.createElement(u.MT,{restoreFocus:!0,contain:f&&!s},b)),b=r.createElement(d.Provider,{value:v},r.createElement(a,null,b)),l.createPortal(b,i)}function p(){let e=(0,r.useContext)(d),t=null==e?void 0:e.setContain;(0,s.b)(()=>{null==t||t(!0)},[t])}},1821:function(e,t,n){n.d(t,{z:function(){return o}});var r=n(2265);function o(e,t,n){let[o,i]=(0,r.useState)(e||t),a=(0,r.useRef)(void 0!==e),u=void 0!==e;(0,r.useEffect)(()=>{let e=a.current;e!==u&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),a.current=u},[u]);let l=u?e:o,c=(0,r.useCallback)((e,...t)=>{let r=(e,...t)=>{n&&!Object.is(l,e)&&n(e,...t),u||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((n,...o)=>{let i=e(u?l:n,...o);return(r(i,...t),u)?n:i})):(u||i(e),r(e,...t))},[u,l,n]);return[l,c]}}}]);