(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6538],{10857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DecodeError:function(){return y},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return v},NormalizeError:function(){return g},PageNotFoundError:function(){return _},SP:function(){return p},ST:function(){return m},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return u},getLocationOrigin:function(){return l},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return d},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return $}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>i.test(e);function l(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=l();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function d(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&d(r))return n;if(!n)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let p="u">typeof performance,m=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class y extends Error{}class g extends Error{}class _ extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function $(e){return JSON.stringify({message:e.message,stack:e.stack})}},17436:(e,t,r)=>{"use strict";r.d(t,{td:()=>n});let n=(e,t,r,n)=>{let a=[t,r,n];return a[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||a[0]}},20091:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={formatUrl:function(){return s},formatWithValidation:function(){return c},urlObjectKeys:function(){return l}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(66388)._(r(31393)),i=/https?|ftp|gopher|file/;function s(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",s=e.hash||"",l=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=String(o.urlQueryToSearchParams(l)));let u=e.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${s}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return s(e)}},25032:(e,t,r)=>{"use strict";r.d(t,{C:()=>u});var n=r(95155),a=r(12115),o=r(29722),i=r(92681),s=r(83640);r(49735);let l=(0,s.g)("chips"),c=Object.freeze({chips:l,chip:`${l}__item`,icon:`${l}__icon`,iconLeft:`${l}__icon-left`,iconRight:`${l}__icon-right`,label:`${l}__label`,variants:{primary:`${l}--primary`,secondary:`${l}--secondary`,tertiary:`${l}--tertiary`},activeVariants:{primary:`${l}--active-primary`,secondary:`${l}--active-secondary`},sizes:{s:`${l}--s`,m:`${l}--m`,l:`${l}--l`},selected:`${l}--selected`,indicator:`${l}__indicator`,indicatorVariant:{red:`${l}__indicator--red`,orange:`${l}__indicator--orange`,green:`${l}__indicator--green`,purple:`${l}__indicator--purple`,purpleSecondary:`${l}__indicator--purple-secondary`,blue:`${l}__indicator--blue`,pink:`${l}__indicator--pink`}}),u=(0,a.forwardRef)(({as:e,chips:t,value:r,variant:s="primary",activeVariant:l="primary",multiple:u,clearable:d,size:f="m",className:h,style:p,dataQa:m,dataId:y,onChipClick:g,..._},v)=>{let[b,$]=(0,a.useState)(u?[]:void 0),x=(0,a.useRef)(null);(0,a.useImperativeHandle)(v,()=>({getRoot:()=>x.current,getSelectedChips:()=>b})),(0,a.useEffect)(()=>{u?$(Array.isArray(r)?r:[]):$(r)},[r,u]);let j=u||d,N=e||"div",S=e=>u&&Array.isArray(b)?b.includes(e):b===e,P=(e,t,r)=>{$(r),null==g||g(e,t,r)},C=(e,t)=>{if(u&&Array.isArray(b))if(S(e)){let r=b.filter(t=>t!==e);P(e,t,r)}else P(e,t,[...b,e]);else{let r=d&&S(e)?void 0:e;P(e,t,r)}};return(0,n.jsx)("div",{ref:x,className:(0,o.A)(h,c.chips),style:p,..._,"data-id":y,"data-qa":m,children:t.map((e,t)=>(({id:e,label:t,href:r,iconLeft:a,iconRight:u,indicator:d},h)=>{let p=S(e),y=void 0!==r;return(0,n.jsxs)(N,{href:r,className:(0,o.A)(c.chip,c.sizes[f],c.activeVariants[l],c.variants[s],[{[c.selected]:p}]),role:y?void 0:j?"checkbox":"radio","aria-checked":y?void 0:p,"aria-label":t,tabIndex:y?void 0:0,"data-qa":(0,i.g)(`${m}-item-${++h}`,!!m),onClick:t=>{C(e,t)},onKeyDown:y?void 0:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),C(e,t))},children:[a&&(0,n.jsx)("span",{className:(0,o.A)(c.icon,c.iconLeft),"aria-hidden":"true",children:a}),(0,n.jsx)("span",{className:(0,o.A)(c.label),children:t}),d&&(0,n.jsx)("div",{className:(0,o.A)(c.indicator,c.indicatorVariant[d])}),u&&(0,n.jsx)("span",{className:(0,o.A)(c.icon,c.iconRight),"aria-hidden":"true",children:u})]},e)})(e,t))})});u.displayName="Chips"},29842:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"errorOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},31393:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return i}};for(var n in r)Object.defineProperty(t,n,{enumerable:!0,get:r[n]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},37940:(e,t,r)=>{"use strict";r.d(t,{ms:()=>n.D,n5:()=>n.g,pm:()=>n.a,uu:()=>n.h});var n=r(52708)},39041:()=>{},49735:()=>{},68990:(e,t,r)=>{"use strict";r.d(t,{a:()=>_});var n=r(95155),a=r(12115),o=r(76701),i=r(29722),s=r(37370),l=r(92681),c=r(83640),u=r(87978),d=r(78012),f=r(62849),h=r(26048);r(39041);let p=(0,c.g)("modal"),m=Object.freeze({modal:p,overlay:`${p}__overlay`,withoutFooter:`${p}--without-footer`,noContent:`${p}--no-content`,open:`${p}--open`,overlayOpen:`${p}__overlay--open`,height:{medium:`${p}--height-medium`,full:`${p}--height-full`},size:{s:`${p}--s`,m:`${p}--m`,l:`${p}--l`,xl:`${p}--xl`},header:`${p}__header`,headerText:`${p}__header-text`,headerTitle:`${p}__header-title`,headerSubtitle:`${p}__header-subtitle`,closeIcon:`${p}__close-icon`,backButton:`${p}__back-button`,backButtonText:`${p}__back-button-text`,headerStates:{centered:`${p}__header--centered`,withLongBtn:`${p}__header--with-long-btn`,defaultHeight:`${p}__header--default-height`},content:`${p}__content`,withoutPadding:`${p}__content--without-padding`,withScroll:`${p}__content--with-scroll`,footer:`${p}__footer`,footerContainer:`${p}__footer-container`,footerBtn:`${p}__footer-btn`,footerDescription:`${p}__footer-description`,divider:`${p}__divider`,dividerTop:`${p}__divider--top`,dividerBottom:`${p}__divider--bottom`}),y=({primaryBtnText:e,onPrimary:t,secondaryBtnText:r,onSecondary:a,thirdBtnText:o,onThird:s,description:c,children:d,noContent:f,dataQa:h})=>(0,n.jsxs)("div",{"data-qa":(0,l.g)(`${h}-footer`,!!h),className:(0,i.A)(m.footer,{[m.noContent]:f}),children:[!f&&(0,n.jsx)("div",{className:(0,i.A)(m.divider,m.dividerTop)}),d||(0,n.jsxs)("div",{className:m.footerContainer,children:[o&&(0,n.jsx)(u.a,{dataQa:(0,l.g)(`${h}-footer-third-btn`,!!h),label:o,variant:"secondary",size:"s",className:m.footerBtn,onClick:s}),r&&(0,n.jsx)(u.a,{dataQa:(0,l.g)(`${h}-footer-secondary-btn`,!!h),label:r,variant:"secondary",size:"s",className:m.footerBtn,onClick:a}),e&&(0,n.jsx)(u.a,{dataQa:(0,l.g)(`${h}-footer-primary-btn`,!!h),label:e,size:"s",className:m.footerBtn,onClick:t})]}),c&&(0,n.jsx)("span",{"data-qa":(0,l.g)(`${h}-footer-description`,!!h),className:m.footerDescription,children:c})]}),g=({text:e,title:t,subtitle:r,align:a="left",backBtnVariant:o,onBack:s,onClose:c,noContent:u,dataQa:p,withoutCloseBtn:y=!1})=>(0,n.jsxs)("div",{"data-qa":(0,l.g)(`${p}-header`,!!p),className:(0,i.A)(m.header,{[m.headerStates.centered]:"center"===a||!!o,[m.headerStates.withLongBtn]:"long"===o,[m.headerStates.defaultHeight]:!e&&!t&&!r}),children:[e&&(0,n.jsx)("span",{"data-qa":(0,l.g)(`${p}-header-text`,!!p),className:m.headerText,children:e}),t&&(0,n.jsx)("span",{"data-qa":(0,l.g)(`${p}-header-title`,!!p),className:m.headerTitle,children:t}),r&&(0,n.jsx)("span",{"data-qa":(0,l.g)(`${p}-header-subtitle`,!!p),className:m.headerSubtitle,children:r}),!y&&(0,n.jsx)("button",{"data-qa":(0,l.g)(`${p}-header-close`,!!p),type:"button",className:m.closeIcon,onClick:c,children:(0,n.jsx)(h.P,{children:(0,n.jsx)(f.S,{})})}),o&&(0,n.jsxs)("button",{"data-qa":(0,l.g)(`${p}-header-back`,!!p),type:"button",className:m.backButton,onClick:s,children:[(0,n.jsx)(h.P,{children:(0,n.jsx)(d.S,{})}),"long"===o&&(0,n.jsx)("span",{className:m.backButtonText,children:"Назад"})]}),!u&&(0,n.jsx)("div",{className:(0,i.A)(m.divider,m.dividerBottom)})]}),_=(0,a.forwardRef)(({header:e,footer:t,open:r=!1,size:c="m",noPadding:u=!1,height:d="full",onClose:f,children:h,className:p,style:_,dataQa:v,dataId:b,dismissDisabled:$=!1,...x},j)=>{let[N,S]=(0,a.useState)(!1),[P,C]=(0,a.useState)(!1),E=(0,a.useRef)(null);(0,a.useEffect)(()=>()=>{E.current&&cancelAnimationFrame(E.current)},[]),(0,a.useEffect)(()=>{if(E.current&&cancelAnimationFrame(E.current),r)return S(!0),E.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(!0)})}),()=>{E.current&&cancelAnimationFrame(E.current)};{C(!1);let e=setTimeout(()=>{S(!1)},300);return()=>{clearTimeout(e),E.current&&cancelAnimationFrame(E.current)}}},[r]);let A=()=>{C(!1);let e=setTimeout(()=>{null==f||f(),S(!1)},300);return()=>clearTimeout(e)},{context:T}=(0,o.we)({open:N,onOpenChange:e=>{e||A()}}),k=(0,o.s9)(T,{outsidePressEvent:"mousedown",outsidePress:!$,escapeKey:!$}),w=(0,o.It)(T,{role:"dialog"}),{getFloatingProps:O}=(0,o.bv)([k,w]),[R,B]=(0,a.useState)(!1),L=(0,a.useCallback)(e=>{e&&new ResizeObserver(()=>{B(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return N?(0,n.jsx)(o.XF,{id:s.M,children:(0,n.jsx)(o.zR,{lockScroll:!0,className:(0,i.A)(m.overlay,{[m.overlayOpen]:P}),children:(0,n.jsx)(o.s3,{context:T,children:(0,n.jsxs)("div",{ref:j,className:(0,i.A)(m.modal,m.size[c],m.height[d],{[m.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[m.open]:P},p),style:_,...O(),...x,"data-id":b,"data-qa":v,children:[(0,n.jsx)(g,{...e,dataQa:v,noContent:!h,onClose:A}),h&&(0,n.jsx)("div",{"data-qa":(0,l.g)(`${v}-content`,!!v),ref:L,className:(0,i.A)(m.content,{[m.withoutFooter]:!(null==t?void 0:t.primaryBtnText)&&!(null==t?void 0:t.children),[m.withoutPadding]:u,[m.withScroll]:R}),children:h}),((null==t?void 0:t.primaryBtnText)||(null==t?void 0:t.children))&&(0,n.jsx)(y,{...t,dataQa:v,noContent:!h})]})})})}):null});_.displayName="Modal"},69470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=r(10857),a=r(48512);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},98500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return v}};for(var a in n)Object.defineProperty(t,a,{enumerable:!0,get:n[a]});let o=r(66388),i=r(95155),s=o._(r(12115)),l=r(20091),c=r(22909),u=r(21172),d=r(10857),f=r(70127);r(47284);let h=r(74616),p=r(24972),m=r(69470),y=r(77565);function g(e){var t,n;let a,o,g,[v,b]=(0,s.useOptimistic)(p.IDLE_LINK_STATUS),$=(0,s.useRef)(null),{href:x,as:j,children:N,prefetch:S=null,passHref:P,replace:C,shallow:E,scroll:A,onClick:T,onMouseEnter:k,onTouchStart:w,legacyBehavior:O=!1,onNavigate:R,transitionTypes:B,ref:L,unstable_dynamicOnHover:F,...I}=e;a=N,O&&("string"==typeof a||"number"==typeof a)&&(a=(0,i.jsx)("a",{children:a}));let z=s.default.useContext(c.AppRouterContext),M=!1!==S,U=!1!==S?null===(n=S)||"auto"===n?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,q="string"==typeof(t=j||x)?t:(0,l.formatUrl)(t);if(O){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=s.default.Children.only(a)}let D=O?o&&"object"==typeof o&&o.ref:L,K=s.default.useCallback(e=>(null!==z&&($.current=(0,p.mountLinkInstance)(e,q,z,U,M,b)),()=>{$.current&&((0,p.unmountLinkForCurrentNavigation)($.current),$.current=null),(0,p.unmountPrefetchableInstance)(e)}),[M,q,z,U,b]),Q={ref:(0,u.useMergedRef)(K,D),onClick(e){O||"function"!=typeof T||T(e),O&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),!z||e.defaultPrevented||function(e,t,n,a,o,i,l){{let c,{nodeName:u}=e.currentTarget;if("A"===u.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(t)){a&&(e.preventDefault(),location.replace(t));return}if(e.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=r(70156);s.default.startTransition(()=>{d(t,a?"replace":"push",!1===o?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,l)})}}(e,q,$,C,A,R,B)},onMouseEnter(e){O||"function"!=typeof k||k(e),O&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),z&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===F)},onTouchStart:function(e){O||"function"!=typeof w||w(e),O&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),z&&M&&(0,p.onNavigationIntent)(e.currentTarget,!0===F)}};return(0,d.isAbsoluteUrl)(q)?Q.href=q:O&&!P&&("a"!==o.type||"href"in o.props)||(Q.href=(0,f.addBasePath)(q)),g=O?s.default.cloneElement(o,Q):(0,i.jsx)("a",{...I,...Q,children:a}),(0,i.jsx)(_.Provider,{value:v,children:g})}r(29842);let _=(0,s.createContext)(p.IDLE_LINK_STATUS),v=()=>(0,s.useContext)(_);("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)}}]);