(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,62798,e=>{"use strict";e.i(91402),e.s(["pluralize",0,(e,t,r,s)=>{let o=[t,r,s];return o[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||o[0]}])},231,e=>{"use strict";let t={setItem:(e,t)=>{try{window.localStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.localStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let r=t.getItemRaw(e);if(r&&"undefined"!==r)try{return JSON.parse(r)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.localStorage.removeItem(e)}catch(e){console.error(e)}}},r={setItem:(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch(e){return console.error(e),!1}return!0},getItemRaw:e=>{try{return window.sessionStorage.getItem(e)}catch(e){return console.error(e),null}},getItem:e=>{let t=r.getItemRaw(e);if(t&&"undefined"!==t)try{return JSON.parse(t)}catch{console.warn(`invalid object in localStorage by key: ${e}`)}return null},removeItem:e=>{try{window.sessionStorage.removeItem(e)}catch(e){console.error(e)}}};e.s(["appLocalStorage",0,t,"appSessionStorage",0,r])},94246,e=>{"use strict";var t=e.i(58282);e.s(["dataLayerPush",0,(e,r)=>{let s=sessionStorage.getItem("pushedEvents"),o=s?JSON.parse(s):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_"));let n=o.find(t=>t.eventCategory===e.eventCategory&&t.eventAction===e.eventAction&&t.eventLabel===e.eventLabel&&("all"===r||"url"===r&&window.location.pathname===t.url));if(!r||!n){if(r){let t={...e};t.url=window.location.pathname,o.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(o))}(0,t.pushEvent)(e)}}])},37819,e=>{"use strict";let t={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"};e.s(["translit",0,e=>e.replace(/[а-яё]/gi,e=>{let r=e.toLowerCase();return r in t?t[r]:e}).replaceAll(" ","_")])},67638,e=>{"use strict";var t=e.i(47167);e.i(43476),e.i(10679);var r=e.i(8438);let s=(0,e.i(22468).g)("root-layout","sc");Object.freeze({layout:`${s}__layout`,body:`${s}__body`}),e.s(["getEnvValue",0,()=>{if(typeof window>"u")return{...t.default.env};let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e}])},82372,e=>{"use strict";e.i(47167);let t=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,s=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function o(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function n(e,a={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let i=e.trim();if(i.length<=9)switch(i.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!s.test(e)){if(a.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(t.test(e)||r.test(e)){if(a.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,o)}return JSON.parse(e)}catch(t){if(a.strict)throw t;return e}}let a=/#/g,i=/&/g,l=/\//g,c=/=/g,d=/\+/g,u=/%5e/gi,p=/%60/gi,f=/%7c/gi,h=/%20/gi;function m(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(f,"|").replace(d,"%2B").replace(h,"+").replace(a,"%23").replace(i,"%26").replace(p,"`").replace(u,"^").replace(l,"%2F")}function g(e){return m(e).replace(c,"%3D")}function y(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let v=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,b=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,w=/^([/\\]\s*){2,}[^/\\]/,x=/\/$|\/\?|\/#/,_=/^\.?\//;function $(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?v.test(e):b.test(e)||!!t.acceptRelative&&w.test(e)}let j=Symbol.for("ufo:protocolRelative");function E(e=""){let[t="",r="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:s}}class N extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let S=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function C(e="GET"){return S.has(e.toUpperCase())}let k=new Set(["image/svg","application/xml","application/xhtml","application/html"]),A=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function L(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let T=new Set([408,409,425,429,500,502,503,504]),R=new Set([101,204,205,304]),I="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,D=I.fetch?(...e)=>I.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),O=function e(t={}){let{fetch:r=globalThis.fetch,Headers:s=globalThis.Headers,AbortController:o=globalThis.AbortController}=t;async function a(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!C(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):T.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),i(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",o=`[${r}] ${JSON.stringify(s)}`,n=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=new N(`${o}: ${n}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(a,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,t,{get:()=>e.response&&e.response[r]});return a}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,i),r}let i=async function(e,i={}){var l,c,u,p;let f,h,v,b={request:e,options:(l=t.defaults,v=function(e,t,r){if(!t)return new r(e);let s=new r(t);if(e)for(let[t,o]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))s.set(t,o);return s}(i?.headers??e?.headers,l?.headers,s),(l?.query||l?.params||i?.params||i?.query)&&(h={...l?.params,...l?.query,...i?.params,...i?.query}),{...l,...i,query:h,params:h,headers:v}),response:void 0,error:void 0};if(b.options.method&&(b.options.method=b.options.method.toUpperCase()),b.options.onRequest&&(await L(b,b.options.onRequest),b.options.headers instanceof s||(b.options.headers=new s(b.options.headers||{}))),"string"==typeof b.request){if(b.options.baseURL&&(b.request=function(e,t){var r;if(!(r=t)||"/"===r||$(e))return e;let s=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(s)){let t=e[s.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(_,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(s,e)}(b.request,b.options.baseURL)),b.options.query){let e,t,r,s,o,n,a;c=b.request,u=b.options.query,t={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let s=y(e[1].replace(d," "));if("__proto__"===s||"constructor"===s)continue;let o=y((e[2]||"").replace(d," "));void 0===t[s]?t[s]=o:Array.isArray(t[s])?t[s].push(o):t[s]=[t[s],o]}return t}((e=function e(t="",r){let s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){let[,e,t=""]=s;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!$(t,{acceptRelative:!0}))return r?e(r+t):E(t);let[,o="",n,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",l=""]=a.match(/([^#/?]*)(.*)?/)||[];"file:"===o&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:d,hash:u}=E(l);return{protocol:o.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:i,pathname:c,search:d,hash:u,[j]:!o}}(c)).search),...u},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${g(e)}=${m(t)}`).join("&"):`${g(e)}=${m(r)}`:g(e)}).filter(Boolean).join("&"),r=(p=e).pathname||"",s=p.search?(p.search.startsWith("?")?"":"?")+p.search:"",o=p.hash||"",n=p.auth?p.auth+"@":"",a=p.host||"",b.request=(p.protocol||p[j]?(p.protocol||"")+"//":"")+n+a+r+s+o,delete b.options.query}"query"in b.options&&delete b.options.query,"params"in b.options&&delete b.options.params}if(b.options.body&&C(b.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(b.options.body)){let e=b.options.headers.get("content-type");"string"!=typeof b.options.body&&(b.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(b.options.body).toString():JSON.stringify(b.options.body)),e||b.options.headers.set("content-type","application/json"),b.options.headers.has("accept")||b.options.headers.set("accept","application/json")}else("pipeTo"in b.options.body&&"function"==typeof b.options.body.pipeTo||"function"==typeof b.options.body.pipe)&&!("duplex"in b.options)&&(b.options.duplex="half");if(!b.options.signal&&b.options.timeout){let e=new o;f=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},b.options.timeout),b.options.signal=e.signal}try{b.response=await r(b.request,b.options)}catch(e){return b.error=e,b.options.onRequestError&&await L(b,b.options.onRequestError),await a(b)}finally{f&&clearTimeout(f)}if((b.response.body||b.response._bodyInit)&&!R.has(b.response.status)&&"HEAD"!==b.options.method){let e=(b.options.parseResponse?"json":b.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return A.test(t)?"json":"text/event-stream"===t?"stream":k.has(t)||t.startsWith("text/")?"text":"blob"}(b.response.headers.get("content-type")||"");switch(e){case"json":{let e=await b.response.text(),t=b.options.parseResponse||n;b.response._data=t(e);break}case"stream":b.response._data=b.response.body||b.response._bodyInit;break;default:b.response._data=await b.response[e]()}}return(b.options.onResponse&&await L(b,b.options.onResponse),!b.options.ignoreResponseError&&b.response.status>=400&&b.response.status<600)?(b.options.onResponseError&&await L(b,b.options.onResponseError),await a(b)):b.response},l=async function(e,t){return(await i(e,t))._data};return l.raw=i,l.native=(...e)=>r(...e),l.create=(r={},s={})=>e({...t,...s,defaults:{...t.defaults,...s.defaults,...r}}),l}({fetch:D,Headers:I.Headers,AbortController:I.AbortController});var q=e.i(67638);let P=0,U=[],M=new Map,F=async()=>{P>=12&&await new Promise(e=>{U.push(e)}),P+=1},B=async e=>{await F();try{return await e()}finally{P=Math.max(0,P-1),U.shift()?.()}},z=(e,t)=>{let{isPageContent:r,isMpScRedirects:s,isMpScApi:o,isMpScNavigator:n}=t;return r?`${e.NEXT_PUBLIC_BASE_URL}/page-content`:o||n?`${e.NEXT_PUBLIC_BASE_URL}/sc`:e.NEXT_PUBLIC_BASE_URL},H=async({url:e,endpoint:t,method:r,config:s,env:o,tags:n})=>{let a=new AbortController,i=setTimeout(()=>a.abort(),5e3),l=()=>a.abort();s?.signal?.aborted&&a.abort(),s?.signal?.addEventListener("abort",l,{once:!0});let c=performance.now();try{let n=await O(e,{baseURL:t,method:r,headers:{...s?.headers},...s,signal:a.signal,timeout:5e3,retry:0,next:{revalidate:Number(o.REVALIDATE_REQUEST_VALUE)||1800,...{}}}),i=performance.now()-c;return i>=1e3&&console.warn(`Запрос ${t}${e} занял ${i.toFixed(2)} ms`),{data:n,error:null}}catch(r){return r.status??r.statusCode,console.error("Ошибка запроса",`${r}: ${t}${e}`),{data:null,error:r||"Unknown error"}}finally{clearTimeout(i),s?.signal?.removeEventListener("abort",l)}},J=async({url:e,options:t={},config:r})=>{let s=(0,q.getEnvValue)(),o=z(s,t),n=(r?.method||"GET").toUpperCase();if(!o)return console.error("Ошибка запроса: API endpoint не задан",e),{data:null,error:"API endpoint is not configured"};let a=()=>B(()=>H({url:e,endpoint:o,method:n,config:r,env:s,tags:t.tags}));if(r?.signal||"GET"!==n&&"HEAD"!==n)return a();var i=`${n}:${o}${e}`;let l=M.get(i);if(l)return l;let c=a().finally(()=>{M.delete(i)});return M.set(i,c),c};e.s(["callApi",0,J,"getApiEndpoint",0,z],82372)},30083,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),t.createElement("g",{clipPath:"url(#a)"},t.createElement("path",{d:"m10.53 16.53 8.25-8.25a.743.743 0 0 0 0-1.06.743.743 0 0 0-1.06 0L10 14.94l-3.72-3.72a.743.743 0 0 0-1.06 0 .743.743 0 0 0 0 1.06l4.25 4.25c.146.147.323.22.53.22a.722.722 0 0 0 .53-.22Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))},"g",0,(e,t,r)=>{if(e)return"object"!=typeof e?r:"function"==typeof t?t(e):e[t]},"v",0,e=>{let{width:t,height:r}=e.getBoundingClientRect();return{x:{start:e.scrollLeft,end:Math.floor(e.scrollLeft+t)},y:{start:e.scrollTop,end:Math.floor(e.scrollTop+r)}}}])},10653,e=>{"use strict";e.s(["i",0,function(e){return void 0!==e}])},33329,e=>{"use strict";var t=e.i(43476),r=e.i(7670),s=e.i(71645),o=e.i(2404),n=e.i(54061);function a(e){return s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.836 6.466a1.5 1.5 0 0 1-.051 2.12l-9.45 9a1.5 1.5 0 0 1-2.07 0l-4.05-3.857a1.5 1.5 0 1 1 2.07-2.172L9.3 14.429l8.415-8.015a1.5 1.5 0 0 1 2.121.052Z"}))}function i(e){return s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}let l=["checkbox"],c=(0,n.g)("common-marker"),d={marker:c,icon:`${c}__icon`,states:{checkbox:`${c}--checkbox`,radio:`${c}--radio`,toggle:`${c}--toggle`,error:`${c}--error`,checked:`${c}--checked`,disabled:`${c}--disabled`,inverted:`${c}--inverted`,indeterminate:`${c}--indeterminate`}},u=({as:e,state:s="default",type:n="checkbox",className:c,checked:u,inverted:p,disabled:f,...h})=>(0,t.jsx)(e||"span",{...h,className:(0,r.default)(c,d.marker,{[d.states.checkbox]:"checkbox"===n,[d.states.radio]:"radio"===n,[d.states.toggle]:"toggle"===n,[d.states.checked]:!!u,[d.states.indeterminate]:"indeterminate"===u,[d.states.error]:"error"===s,[d.states.inverted]:p,[d.states.disabled]:f}),children:l.includes(n)&&(0,t.jsx)(o.P,{className:(0,r.default)(d.icon,{[d.states.checked]:u,[d.states.inverted]:p,[d.states.error]:"error"===s,[d.states.disabled]:f}),children:"indeterminate"===u?(0,t.jsx)(i,{}):(0,t.jsx)(a,{})})});u.displayName="CommonMarker",e.s(["C",0,u])},23179,e=>{"use strict";var t=e.i(43476),r=e.i(54061),s=e.i(71645),o=e.i(7670),n=e.i(43489),a=e.i(53760),i=e.i(58950),l=e.i(2753),c=e.i(89485),d=e.i(14044),u=e.i(21214),p=e.i(2404);function f(){return"u"<typeof window}let h=f()?s.useLayoutEffect:s.useEffect;function m(e,t=!1){return f()?t:window.matchMedia(e).matches}function g(e){let{minWidth:t}=c.a[e];return function(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[o,n]=(0,s.useState)(()=>r?m(e,t):t??!1);function a(){n(m(e))}return h(()=>{let t=window.matchMedia(e);return a(),"function"==typeof t.addListener?t.addListener(a):t.addEventListener("change",a),()=>{"function"==typeof t.removeListener?t.removeListener(a):t.removeEventListener("change",a)}},[e]),o}(`screen and (min-width: ${t}px)`)}let y=Object.freeze({divider:(0,r.g)("dropdown-divider")}),v=({...e})=>(0,t.jsx)("div",{...e,className:y.divider});v.displayName="DropdownDivider";let b=(0,r.g)("dropdown-group"),w=Object.freeze({group:b,title:`${b}__title`,content:`${b}__content`}),x=({title:e,children:r,...s})=>(0,t.jsxs)("div",{...s,className:w.group,children:[(0,t.jsx)("div",{className:w.title,children:e}),(0,t.jsx)("div",{className:w.content,children:r})]});x.displayName="DropdownGroup";let _=(0,r.g)("dropdown-option"),$=Object.freeze({option:_,slot:`${_}__slot`,iconSlot:`${_}__slot--icon`,wrapper:`${_}__wrapper`,label:`${_}__label`,caption:`${_}__caption`,states:{danger:`${_}--danger`,success:`${_}--success`,focused:`${_}--focused`,disabled:`${_}--disabled`}}),j=(0,s.createContext)(null),E=()=>{let e=(0,s.useContext)(j);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e};function N({placement:e="bottom",width:t="auto",desktopMaxHeight:r,mobileFullHeight:o=!1,title:l,description:c,opened:d,onToggle:u,heading:p,footer:f,dataQa:h,dataId:m}={}){let[g,y]=(0,s.useState)(!1),v=d??g,b=u??y,w=(0,n.useFloating)({open:v,onOpenChange:b,placement:e,whileElementsMounted:a.autoUpdate,middleware:[(0,i.offset)(8),(0,i.flip)({fallbackAxisSideDirection:"none"}),(0,i.shift)({crossAxis:!1,padding:8})]});return(0,s.useMemo)(()=>({open:v,setOpen:b,...w,width:t,desktopMaxHeight:r,title:l,description:c,heading:p,footer:f,mobileFullHeight:o,dataQa:h,dataId:m}),[v,b,w,t,r,l,c,p,f,o,h,m])}let S=({children:e,...r})=>{let s=N(r);return(0,t.jsx)(j.Provider,{value:s,children:e})};S.displayName="Dropdown";let C=(0,r.g)("dropdown"),k=Object.freeze({dropdown:C,overlay:`${C}__overlay`,mobileHeading:`${C}__mobile-heading`,heading:`${C}__heading`,title:`${C}__title`,description:`${C}__description`,content:`${C}__content`,contentInner:`${C}__content-inner`,footer:`${C}__footer`,close:`${C}__close`,closeIcon:`${C}__close-icon`,states:{auto:`${C}--auto`,fullHeight:`${C}--full-height`}}),A=({footer:e,...r})=>e?(0,t.jsx)("div",{...r,className:k.footer,children:e}):null;A.displayName="DropdownFooter";let L=({title:e,description:r,heading:o,isDesktop:n,setOpen:a,...i})=>{let l=(0,s.useMemo)(()=>o||(n&&(e||r)?(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)("div",{className:k.title,children:e}),r&&(0,t.jsx)("div",{className:k.description,children:r})]}):null),[r,o,n,e]);return(0,t.jsxs)(t.Fragment,{children:[!n&&(0,t.jsxs)("div",{...i,className:k.mobileHeading,children:[e&&(0,t.jsx)("div",{className:k.title,children:e}),r&&(0,t.jsx)("div",{className:k.description,children:r}),(0,t.jsx)("button",{className:k.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>a(!1),children:(0,t.jsx)(p.P,{"aria-hidden":"true",className:k.closeIcon,style:{display:"inline-flex"},children:(0,t.jsx)(u.S,{})})})]}),l&&(0,t.jsx)("div",{...i,className:k.heading,children:l})]})};L.displayName="DropdownHeader";let T=(0,s.forwardRef)(({style:e,contentInnerRef:r,...a},i)=>{var c,u;let{open:p,context:f,width:h,floatingStyles:m,refs:y,heading:v,title:b,description:w,footer:x,desktopMaxHeight:_,mobileFullHeight:$,dataQa:j,dataId:N,setOpen:S}=E(),C=(0,n.useMergeRefs)([y.setFloating,i]),T=(0,s.useRef)(null),R=g("s"),{isMounted:I,styles:D}=(0,n.useTransitionStyles)(f,{initial:{opacity:.2,transform:R?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,s.useEffect)(()=>{let e=({target:e})=>{!p||[T.current,y.reference.current].some(t=>t===e||t&&t.contains(e))||S(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,y.reference,S]),!I)return null;let O=(0,t.jsxs)("div",{ref:T,className:(0,o.default)(k.dropdown,{[k.states.fullHeight]:$}),role:R?"popup":"dialog","aria-modal":!R,"data-id":N,"data-qa":j,style:D,children:[(0,t.jsx)(L,{title:b,description:w,heading:v,isDesktop:R,setOpen:S,"data-qa":(0,d.g)(`${j}-header`,!!j)}),(0,t.jsx)("div",{...a,className:k.content,"data-qa":(0,d.g)(`${j}-content`,!!j),children:(0,t.jsx)("div",{className:k.contentInner,style:{maxHeight:R?_:void 0},ref:r,children:a.children})}),(0,t.jsx)(A,{"data-qa":(0,d.g)(`${j}-header`,!!j),footer:x})]});if(R){let r;return"inherit"===h?r=null==(u=null==(c=null==y?void 0:y.reference)?void 0:c.current)?void 0:u.clientWidth:"auto"===h?r=void 0:"number"==typeof h&&(r=h),(0,t.jsx)("div",{className:(0,o.default)(k.overlay,{[k.states.auto]:"auto"===h}),style:{...e,...m,...void 0!==r&&{width:r}},ref:C,children:O})}return(0,t.jsx)(n.FloatingPortal,{id:l.D,children:(0,t.jsx)(n.FloatingOverlay,{lockScroll:!0,className:(0,o.default)(k.overlay,{[k.states.auto]:"auto"===h}),style:e,ref:C,children:O})})});T.displayName="DropdownContent";let R=(0,s.forwardRef)(function({children:e,asChild:r=!1,disabled:o,...a},i){let{refs:l,open:c,setOpen:d}=E(),u=e.ref,p=(0,n.useMergeRefs)([l.setReference,i,u]),f=(0,s.useCallback)(()=>{o||d(!c)},[o,c,d]);return r&&(0,s.isValidElement)(e)?(0,s.cloneElement)(e,{ref:p,disabled:o,onClick:f,...a,...e.props}):(0,t.jsx)("button",{ref:p,onClick:f,disabled:o,...a,type:"button",children:e})});R.displayName="DropdownTrigger",e.s(["D",0,S,"a",0,T,"b",0,j,"c",0,v,"d",0,A,"e",0,x,"f",0,L,"g",0,function({as:e,label:r,caption:n,iconLeft:a,iconRight:i,prepend:l,append:c,variant:d="default",disabled:u=!1,focused:p=!1,className:f,onClick:h,...m}){let g=(0,o.default)(f,$.option,{[$.states.focused]:p,[$.states.success]:"success"===d,[$.states.danger]:"danger"===d,[$.states.disabled]:!!u}),y=(0,s.useCallback)(e=>{e.preventDefault(),u||null==h||h(e)},[u,h]);return(0,t.jsxs)(e||"div",{...m,className:g,"aria-disabled":u,onClick:y,children:[l&&(0,t.jsx)("span",{className:$.slot,children:l}),a&&(0,t.jsx)("span",{className:(0,o.default)($.slot,$.iconSlot),children:a}),(0,t.jsxs)("div",{className:$.wrapper,children:[(0,t.jsx)("span",{className:$.label,children:r}),n&&(0,t.jsx)("span",{className:$.caption,children:n})]}),i&&(0,t.jsx)("span",{className:(0,o.default)($.slot,$.iconSlot),children:i}),c&&(0,t.jsx)("span",{className:$.slot,children:c})]})},"h",0,R,"i",0,"div","j",0,E,"k",0,g,"u",0,N])},14087,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(7670),o=e.i(30083),n=e.i(2404),a=e.i(10653),i=e.i(33329),l=e.i(23179);function c(e){return r.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m19.03 10.28-6.5 6.5a.75.75 0 0 1-1.06 0l-6.5-6.5a.75.75 0 1 1 1.06-1.06L12 15.19l5.97-5.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let d=(0,e.i(54061).g)("select"),u={select:d,activator:`${d}__activator`,activatorWrapper:`${d}__activator-wrapper`,placeholder:`${d}__placeholder`,selected:`${d}__selected`,label:`${d}__label`,rightLabel:`${d}__right-label`,icon:`${d}__icon`,options:`${d}__options`,optionIcon:`${d}__option-icon`,caption:`${d}__caption`,states:{primary:`${d}--primary`,secondary:`${d}--secondary`,small:`${d}--s`,medium:`${d}--m`,large:`${d}--l`,opened:`${d}--opened`,error:`${d}--error`,success:`${d}--success`,selected:`${d}--selected`,disabled:`${d}--disabled`}};function p({value:e,label:d,options:f=[],optionValue:h="value",optionLabel:m="label",optionCaption:g="caption",optionDisabled:y="disabled",variant:v="primary",state:b,size:w="m",icon:x,rightLabel:_,clearable:$=!1,multiple:j=!1,disabled:E=!1,caption:N,placeholder:S,className:C,dataId:k,dataQa:A,isOpen:L=!1,classnameTrigger:T,selectedValue:R,onChange:I,onToggle:D,onSelect:O,onUnselect:q,onFocus:P,onBlur:U,...M}){let[F,B]=(0,r.useState)(!1),[z,H]=(0,r.useState)(),[J,W]=(0,r.useState)(),[V,G]=(0,r.useState)(!1),K=(0,r.useRef)(null),Z=(0,r.useId)(),X=(0,r.useId)(),Q=(0,r.useId)();(0,r.useEffect)(()=>{e?H(e):H(j?[]:void 0)},[j,e]);let Y=(0,r.useMemo)(()=>f.map((e,t)=>{let r=(0,o.g)(e,h,e),s=j&&Array.isArray(z)?z.map(e=>(0,o.g)(e,h,e)):(0,o.g)(z,h,z);return{index:t,value:r,label:(0,o.g)(e,m,e),caption:(0,o.g)(e,g),disabled:(0,o.g)(e,y,!1),selected:j?Array.isArray(s)&&s.includes(r):s===r,active:J===t,original:e,id:`${Q}-option-${t}`}}),[J,Q,z,j,g,y,m,h,f]),ee=(0,r.useMemo)(()=>Y.filter(e=>e.selected),[Y]),et=(0,r.useMemo)(()=>(0,a.i)(J)&&Y[J].id,[J]),er=(0,r.useCallback)(e=>{H(e),null==I||I(e)},[I]),es=(0,r.useCallback)(()=>{if(K.current&&et){let{start:e,end:t}=(0,o.v)(K.current).y,r=document.getElementById(et);if(r){let s=r.offsetTop+r.clientHeight-t,o=e-r.offsetTop;s>0?K.current.scrollTop+=s+8:o>0&&(K.current.scrollTop-=o+8)}}},[et]),eo=e=>{B(e),null==D||D(e)},en=(0,r.useCallback)(e=>{if(!(0,a.i)(e))return 0;let t=0===e?Y.length-1:e-1;return Y[t].disabled?en(t):t},[Y]),ea=(0,r.useCallback)(e=>{if(!(0,a.i)(e))return 0;let t=e===Y.length-1?0:e+1;return Y[t].disabled?ea(t):t},[Y]),ei=(0,r.useCallback)(e=>{let t=e&&e.index!==Y.length-1?Y[e.index+1]:Y[0];return t.disabled?ei(t):t},[Y]),el=(0,r.useCallback)(e=>{let t=e&&0!==e.index?Y[e.index-1]:Y[Y.length-1];return t.disabled?el(t):t},[Y]),ec=()=>{eo(!0),W(ee.length>0?ee[0].index:0)},ed=()=>{eo(!1),W(void 0)},eu=(0,r.useCallback)(e=>{if(!j){er($&&e.selected?void 0:e.original),ed();return}if(e.selected&&Array.isArray(z)){er(z.filter(t=>(0,o.g)(t,h,t)!==e.value)),null==q||q(e.original);return}Array.isArray(z)&&(er([...z,e.original]),null==O||O(e.original))},[$,ed,z,j,O,q,h,er]),ep=(0,r.useCallback)(e=>{e.preventDefault(),F?ed():($||j)&&(ee.forEach(e=>null==q?void 0:q(e.original)),er(j?[]:void 0))},[$,ed,j,q,F,ee,er]),ef=(0,r.useCallback)(()=>{F&&ed()},[ed,F]),eh=(0,r.useCallback)(e=>{(e.preventDefault(),F)?W(en(J)):j||er(el(ee[0]).original)},[J,en,el,j,F,ee,er]),em=(0,r.useCallback)(e=>{(e.preventDefault(),F)?W(ea(J)):j?ec():er(ei(ee[0]).original)},[J,ea,ei,j,F,ec,ee,er]),eg=(0,r.useCallback)(e=>{switch(G(!0),e.key){case"Escape":case"Esc":ep(e);break;case"Tab":ef();break;case"ArrowDown":em(e);break;case"ArrowUp":eh(e)}},[em,eh,ep,ef]),ey=(0,r.useCallback)(e=>{(e.preventDefault(),F)?((0,a.i)(J)&&eu(Y[J]),j||ed()):ec()},[J,ed,eu,Y,j,F,ec]),ev=(0,r.useCallback)(e=>{G(!0),(" "===e.key||"Enter"===e.key)&&ey(e)},[ey]);(0,r.useEffect)(()=>{L&&(()=>{eo(!0);let{value:t,label:r}=(Array.isArray(e)?e[0]:e)??{},s=Y.find(e=>e.value===t&&e.label===r);W((null==s?void 0:s.index)??0)})()},[L]),(0,r.useEffect)(()=>{F&&es()},[F,es]),(0,r.useEffect)(()=>{if(!F)return;let e=e=>{eg(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[eg,F]);let eb=(0,s.default)(T,u.activator,{[u.states.primary]:"primary"===v,[u.states.secondary]:"secondary"===v,[u.states.small]:"s"===w,[u.states.medium]:"m"===w,[u.states.large]:"l"===w,[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:F,[u.states.disabled]:E}),ew=(0,r.useMemo)(()=>ee.length>0?(0,t.jsxs)(t.Fragment,{children:["s"!==w&&(0,t.jsx)("div",{id:X,className:(0,s.default)(u.label,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:F,[u.states.disabled]:E}),children:d},"label"),(0,t.jsx)("div",{className:(0,s.default)(u.selected,{[u.states.disabled]:E}),children:(null==R?void 0:R(ee.map(e=>e.original)))||ee.map(({label:e})=>e).join(", ")})]}):(0,t.jsx)("div",{id:X,className:(0,s.default)(u.placeholder,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:F,[u.states.disabled]:E}),children:S||d},"placeholder"),[E,d,X,F,S,ee,R,w,b]);return(0,t.jsx)("div",{className:(0,s.default)(C,u.select),children:(0,t.jsxs)(l.D,{opened:F,onToggle:()=>{F?ed():ec()},width:"inherit",placement:"bottom",children:[(0,t.jsx)(l.h,{asChild:!0,disabled:E,children:(0,t.jsxs)("div",{className:eb,id:Z,tabIndex:E?-1:0,role:"combobox","aria-haspopup":"listbox","aria-labelledby":X,"aria-controls":Q,"aria-disabled":E,"aria-expanded":F,...!E&&{onFocus:e=>{null==P||P(e)},onBlur:e=>{null==U||U(e)},onKeyDownCapture:ev,onKeyDown:F?void 0:eg},...M,"data-id":k,"data-qa":A,children:[(0,t.jsx)("div",{className:u.activatorWrapper,children:ew}),_&&(0,t.jsx)("div",{"aria-label":_,className:(0,s.default)(u.rightLabel,{[u.states.disabled]:E}),children:_}),x&&(0,t.jsx)("div",{"aria-hidden":"true",className:(0,s.default)(u.icon,{[u.states.disabled]:E}),children:x}),(0,t.jsx)("div",{className:(0,s.default)(u.icon,{[u.states.disabled]:E,[u.states.opened]:F}),children:(0,t.jsx)(n.P,{style:{fontSize:24},"aria-expanded":F,children:(0,t.jsx)(c,{})})})]})}),N&&(0,t.jsx)("div",{className:(0,s.default)(u.caption,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.secondary]:"secondary"===v,[u.states.disabled]:E}),children:N}),(0,t.jsx)(l.a,{contentInnerRef:K,children:(0,t.jsx)("ul",{role:"listbox",id:Q,className:u.options,onMouseOver:()=>{V&&G(!1)},children:Y.map(e=>(0,t.jsx)(l.g,{as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active&&V,onClick:()=>eu(e),prepend:j?(0,t.jsx)(i.C,{type:"checkbox",checked:e.selected,disabled:e.disabled}):void 0,append:j?void 0:(0,t.jsx)(n.P,{className:(0,s.default)(u.optionIcon,{[u.states.selected]:e.selected}),style:{fontSize:24},children:(0,t.jsx)(o.S,{})}),"aria-selected":e.selected,role:"option",id:e.id},JSON.stringify(e.value)))})})]})})}p.displayName="Select",e.s(["Select",0,p])},65018,e=>{"use strict";var t=e.i(71645);let r={xl:"screen and (max-width: 1440px)",lg:"screen and (max-width: 1200px)",md:"screen and (max-width: 900px)",sm:"screen and (max-width: 600px)"};e.s(["useMedia",0,(e="lg")=>{let s=(0,t.useRef)(null),[o,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{!s.current&&window&&(s.current=window?.matchMedia(r[e]||e));let t=()=>{n(!!s.current&&s.current.matches)};return t(),s.current?.addEventListener("change",t),()=>s.current?.removeEventListener("change",t)},[e]),o}])}]);