(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[638],{3227:()=>{},5772:(e,t,n)=>{"use strict";n.d(t,{default:()=>r.a});var a=n(97651),r=n.n(a)},6807:()=>{},7664:()=>{},10234:()=>{},11412:()=>{},13119:()=>{},13857:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var a=n(12115);function r(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"m10.28 19.03 6.5-6.5a.75.75 0 0 0 0-1.06l-6.5-6.5a.75.75 0 1 0-1.06 1.06L15.19 12l-5.97 5.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}},14347:(e,t,n)=>{"use strict";n.d(t,{nu:()=>c});let a=Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})}),r=Object.freeze(Object.keys(a));Object.freeze(r.filter(e=>"xs"!==e)),Object.freeze(r.filter(e=>"3xl"!==e));var l=n(12115);function i(){return"undefined"==typeof window}let s=i()?l.useLayoutEffect:l.useEffect;function o(e,t=!1){return i()?t:window.matchMedia(e).matches}function c(e){let{maxWidth:t}=a[e];return function(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){let[a,r]=(0,l.useState)(()=>n?o(e,t):t??!1);function i(){r(o(e))}return s(()=>{let t=window.matchMedia(e);return i(),"function"==typeof t.addListener?t.addListener(i):t.addEventListener("change",i),()=>{"function"==typeof t.removeListener?t.removeListener(i):t.removeEventListener("change",i)}},[e]),a}(`screen and (max-width: ${t}px)`)}},14570:(e,t,n)=>{"use strict";n.d(t,{C:()=>p,S:()=>d,a:()=>c});var a=n(95155),r=n(29722),l=n(12115),i=n(63914),s=n(86253),o=n(83640);function c(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("defs",null,l.createElement("clipPath",{id:"a"},l.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),l.createElement("g",{clipPath:"url(#a)"},l.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm1.5 0a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Zm12.28-1.72-4.25 4.25a.722.722 0 0 1-.53.22.722.722 0 0 1-.53-.22l-2.25-2.25a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L11 12.94l3.72-3.72a.743.743 0 0 1 1.06 0 .743.743 0 0 1 0 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}function d(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("path",{d:"M12.617 2.035a4.736 4.736 0 0 0-1.232 0c-1.28.167-2.263 1.01-3.216 2.25-.944 1.231-1.97 3.005-3.284 5.28l-.06.105c-1.316 2.277-2.342 4.053-2.937 5.487-.6 1.447-.838 2.72-.344 3.912.159.382.366.74.617 1.069.785 1.024 2.007 1.454 3.56 1.659 1.539.202 3.59.202 6.22.202h.12c2.63 0 4.681 0 6.22-.202 1.553-.204 2.775-.635 3.56-1.66a4.75 4.75 0 0 0 .617-1.068c.494-1.192.256-2.465-.344-3.912-.595-1.434-1.621-3.21-2.937-5.487l-.06-.105c-1.315-2.275-2.34-4.049-3.285-5.28-.952-1.24-1.935-2.083-3.215-2.25ZM11.58 3.522a3.23 3.23 0 0 1 .844 0c.678.089 1.343.535 2.22 1.677.877 1.143 1.854 2.83 3.205 5.169 1.352 2.34 2.328 4.031 2.88 5.364.552 1.331.606 2.13.344 2.762-.108.261-.25.507-.422.731-.415.543-1.135.897-2.564 1.085-1.43.188-3.382.189-6.085.189s-4.655-.001-6.085-.19c-1.43-.187-2.149-.54-2.564-1.084a3.249 3.249 0 0 1-.422-.73c-.262-.632-.208-1.432.344-2.763.552-1.333 1.528-3.023 2.88-5.364 1.351-2.338 2.328-4.026 3.205-5.17.877-1.141 1.543-1.587 2.22-1.676Zm1.173 5.227a.75.75 0 0 0-1.5 0v5.5a.75.75 0 1 0 1.5 0v-5.5Zm-1.75 8.253a1 1 0 1 1 2-.005 1 1 0 0 1-2 .005Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}n(25968);let u=(0,o.g)("caption"),h=Object.freeze({caption:u,captionWithIcon:`${u}--with-icon`,content:`${u}__content`,icon:`${u}__icon`,text:`${u}__text`,size:{s:`${u}--s`,m:`${u}--m`},states:{success:`${u}--success`,error:`${u}--error`,warning:`${u}--warning`}});function p({as:e,children:t,state:n="default",size:l="m",text:o,withoutIcon:u=!1,lineClamp:p,role:m,dataQa:g,dataId:f,className:v,style:x,...b}){let y=o||t,w=!u&&["success","error","warning"].includes(n),k="success"===n?c:d,_=(0,r.A)(v,h.caption,h.size[l],{[h.captionWithIcon]:w,[h.states.success]:"success"===n,[h.states.error]:"error"===n,[h.states.warning]:"warning"===n});return(0,a.jsx)(e||"div",{className:_,style:x,role:m,...b,"data-id":f,"data-qa":g,children:(0,a.jsxs)("div",{className:h.content,children:[w&&y&&(0,a.jsx)(i.P,{className:h.icon,children:(0,a.jsx)(k,{})}),(0,a.jsx)("span",{className:(0,r.A)(h.text),style:{...p?{WebkitLineClamp:p,lineClamp:p,...s.l}:void 0},children:y})]})})}p.displayName="Caption"},15224:()=>{},15959:()=>{},16236:()=>{},17188:(e,t,n)=>{"use strict";n.d(t,{T:()=>u});var a=n(95155),r=n(12115),l=n(29722);n(42879);var i=n(27695),s=n(17268),o=n(83640);n(60006);let c=(0,o.g)("toggle"),d=Object.freeze({toggle:c,wrapper:"".concat(c,"__wrapper"),secondaryLabel:"".concat(c,"__secondary-label"),input:"".concat(c,"__input"),marker:"".concat(c,"__marker"),label:"".concat(c,"__label"),caption:"".concat(c,"__caption"),states:{disabled:"".concat(c,"--disabled"),inverted:"".concat(c,"--inverted"),flipped:"".concat(c,"--flipped"),checked:"".concat(c,"--checked")}}),u=(0,r.forwardRef)((e,t)=>{let{value:n,onChange:o,label:c,secondaryLabel:u,disabled:h=!1,caption:p,inverted:m=!1,flipped:g=!1,className:f,style:v,inputRef:x,dataQa:b,dataId:y,...w}=e,[k,_]=(0,i.u)(null!=n&&n,n),C=(0,r.useId)();return(0,a.jsxs)("label",{className:(0,l.A)(f,d.toggle,{[d.states.disabled]:h,[d.states.inverted]:m,[d.states.flipped]:g,[d.states.checked]:k}),style:v,htmlFor:C,"data-marker-label":"",ref:t,"data-id":y,"data-qa":b,children:[(0,a.jsx)("input",{id:C,role:"switch","aria-checked":k,type:"checkbox",className:d.input,checked:k,onChange:e=>{_(e.target.checked),null==o||o(e.target.checked,e)},disabled:h,ref:x,...w}),(0,a.jsx)("span",{className:d.marker,children:(0,a.jsx)(s.C,{type:"toggle",checked:k,inverted:m,disabled:h})}),c&&u&&(0,a.jsx)("span",{className:d.secondaryLabel,children:u}),c&&(0,a.jsxs)("span",{className:d.wrapper,children:[(0,a.jsx)("span",{className:d.label,children:c}),p&&(0,a.jsx)("span",{className:d.caption,children:p})]})]})});u.displayName="Toggle"},17268:(e,t,n)=>{"use strict";n.d(t,{C:()=>p});var a=n(95155),r=n(29722),l=n(12115),i=n(63914),s=n(83640);function o(e){return l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 c(e){return l.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}n(15959);let d=["checkbox"],u=(0,s.g)("common-marker"),h={marker:u,icon:`${u}__icon`,states:{checkbox:`${u}--checkbox`,radio:`${u}--radio`,toggle:`${u}--toggle`,error:`${u}--error`,checked:`${u}--checked`,disabled:`${u}--disabled`,inverted:`${u}--inverted`,indeterminate:`${u}--indeterminate`}},p=({as:e,state:t="default",type:n="checkbox",className:l,checked:s,inverted:u,disabled:p,...m})=>(0,a.jsx)(e||"span",{...m,className:(0,r.A)(l,h.marker,{[h.states.checkbox]:"checkbox"===n,[h.states.radio]:"radio"===n,[h.states.toggle]:"toggle"===n,[h.states.checked]:!!s,[h.states.indeterminate]:"indeterminate"===s,[h.states.error]:"error"===t,[h.states.inverted]:u,[h.states.disabled]:p}),children:d.includes(n)&&(0,a.jsx)(i.P,{className:(0,r.A)(h.icon,{[h.states.checked]:s,[h.states.inverted]:u,[h.states.error]:"error"===t,[h.states.disabled]:p}),children:"indeterminate"===s?(0,a.jsx)(c,{}):(0,a.jsx)(o,{})})});p.displayName="CommonMarker"},19872:()=>{},21545:()=>{},21944:(e,t,n)=>{"use strict";n(95155),n(29722);var a=n(83640);n(3227);let r=(0,a.g)("skeleton");Object.freeze({skeleton:r,states:{inline:`${r}--inline`,rounded:`${r}--rounded`,inverted:`${r}--inverted`,suspend:`${r}--suspend`}})},23273:()=>{},24335:()=>{},25007:()=>{},25939:(e,t,n)=>{"use strict";n.d(t,{B:()=>h,S:()=>c});var a=n(95155),r=n(12115),l=n(29722),i=n(63914),s=n(42879),o=n(83640);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:"M15.827 2.761A10.001 10.001 0 1 0 12 22a.75.75 0 0 0 .75-.75v-.004a.75.75 0 0 0-.75-.75A8.496 8.496 0 1 1 20.496 12c0 .414.336.75.75.75h.004A.75.75 0 0 0 22 12a10 10 0 0 0-6.173-9.239Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}n(52886);let d=(0,o.g)("button"),u={button:d,label:"".concat(d,"__label"),icon:"".concat(d,"__icon"),spinner:"".concat(d,"__spinner"),states:{ghost:"".concat(d,"--ghost"),outline:"".concat(d,"--outline"),stretch:"".concat(d,"--stretch"),iconOnly:"".concat(d,"--icon-only"),iconLeft:"".concat(d,"--icon-left"),iconRight:"".concat(d,"--icon-right"),rounded:"".concat(d,"--rounded"),disabled:"".concat(d,"--disabled"),hidden:"".concat(d,"--hidden")}},h=(0,r.forwardRef)((e,t)=>{let{as:n,appearance:o="fill",children:d,className:h,disabled:p=!1,iconLeft:m,iconRight:g,label:f,pending:v,shape:x="default",size:b="m",stretch:y=!1,variant:w="primary",type:k,dataId:_,dataQa:C,style:j,onClick:N,...A}=e,E=n||"button",L=f||d,R=(0,r.useMemo)(()=>"icon"===x||"circle-icon"===x,[x]),S=(0,r.useMemo)(()=>{let e={};if(b&&!s.B.includes(b)){let t=(e=>e?"string"==typeof e?e.split(" ").map(e=>{if(e.includes("-")){let t=e.indexOf("-");return[e.substring(0,t),e.substring(t+1,e.length)]}return[e]}).reduce((e,t)=>{let[n,a]=t;return{...e,[n]:void 0===a||a}},{}):e:{})(b);e=s.B.reduce((e,n)=>{let a="xs"===n?"".concat(u.button,"--").concat(t[n]):"".concat(u.button,"--").concat(t[n],"-").concat(n);return{...e,[a]:!!t[n]}},{})}return e},[b]),T=(0,r.useMemo)(()=>({[u.button]:!0,["".concat(u.button,"--").concat(w)]:!0,["".concat(u.button,"--").concat(b)]:b&&s.B.includes(b),[u.states.iconOnly]:R,[u.states.stretch]:!0===y,["".concat(u.states.stretch,":").concat(y)]:"string"==typeof y,[u.states.ghost]:"ghost"===o,[u.states.outline]:"outline"===o,[u.states.rounded]:"circle-icon"===x,[u.states.iconLeft]:m&&!R,[u.states.iconRight]:g&&!R,[u.states.disabled]:p,...S}),[o,p,m,R,g,S,x,b,y,w]),$=(0,r.useMemo)(()=>!!g&&(!R||!m),[m,g,R]),I=(0,r.useCallback)(e=>{if(p)return void e.preventDefault();null==N||N(e)},[N,p]);return(0,a.jsxs)(E,{className:(0,l.A)(h,{...T}),ref:t,style:j,type:"button"===E?k||"button":void 0,disabled:"button"===E?p:void 0,"aria-disabled":p||void 0,tabIndex:p?-1:0,onClick:I,...A,"data-qa":C,"data-id":_,children:[m&&(0,a.jsx)("span",{role:"img","aria-hidden":"true",className:(0,l.A)(u.icon,{[u.states.hidden]:v}),children:m}),L&&!R&&(0,a.jsx)("span",{className:(0,l.A)(u.label,{[u.states.hidden]:v}),children:L}),$&&(0,a.jsx)("span",{role:"img","aria-hidden":"true",className:(0,l.A)(u.icon,{[u.states.hidden]:v}),children:g}),v&&(0,a.jsx)("span",{role:"img","aria-hidden":"true",className:u.spinner,children:(0,a.jsx)(i.P,{children:(0,a.jsx)(c,{})})})]})});h.displayName="Button"},25968:()=>{},26111:(e,t,n)=>{"use strict";n.d(t,{E:()=>y});var a=n(95155),r=n(89777),l=n(29722),i=n(84685),s=n(55579),o=n(17573),c=n(7596),d=n(12115);let u=(0,c.g)("support","sc"),h=Object.freeze({support:u,title:`${u}__title`,cardsContainer:`${u}__cards-container`}),p="cb-support",m=(0,c.g)("support-app-card","sc"),g=Object.freeze({supportAppCard:m,textWrapper:`${m}__text-wrapper`,imageContainer:`${m}__image-container`,title:`${m}__title`,description:`${m}__description`,button:`${m}__button`,imageWrapper:`${m}__image-wrapper`,image:`${m}__image`}),f=({title:e,linkUrl:t,s3Assets:n,description:r})=>{let l=(0,s.nu)("s");return(0,a.jsxs)("div",{className:g.supportAppCard,onClick:()=>{l&&((0,o.h)({eventCategory:p,eventActionType:o.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,a.jsx)(s.$n,{className:g.button,iconLeft:(0,a.jsx)(i.IconFdsArrowUpRightSmallO,{size:24}),shape:"circle-icon",size:"xs"}),(0,a.jsxs)("div",{className:g.textWrapper,children:[(0,a.jsx)("div",{className:g.title,children:e}),!!r&&(0,a.jsx)("div",{className:g.description,children:r})]}),(0,a.jsx)("div",{className:g.imageContainer,children:(0,a.jsxs)("picture",{className:g.imageWrapper,children:[(0,a.jsx)("source",{media:"(max-width: 767px)",srcSet:`${n}/mp-assets/widgets/SupportBlock/mobile-app.png 1x, ${n}/mp-assets/widgets/SupportBlock/mobile-app@2x.png 2x`}),(0,a.jsx)("img",{className:g.image,loading:"lazy",src:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg`,srcSet:`${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.jpg 1x, ${n}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.jpg 2x`})]})})]})},v=(0,c.g)("support-phone-card","sc"),x=Object.freeze({supportPhoneCard:v,contacts:`${v}__contacts`,contactsExtra:`${v}__contacts-extra`,phone:`${v}__phone`,phonesExtra:`${v}__phones-extra`,phoneExtra:`${v}__phone-extra`,chat:`${v}__chat`,text:`${v}__text`,image:`${v}__image`}),b=({phones:e,phonesExtra:t,description:n,s3Assets:r})=>{let l=(0,d.useCallback)(()=>{var e,t,n;null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||n.call(t),(0,o.h)({eventCategory:p,eventActionType:o.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),i=e=>{let t=e.replace(/[\s-]/g,"");(0,o.h)({eventCategory:p,eventActionType:o.D.link,eventActionText:"phone",eventLabel:t})};return(0,a.jsxs)("div",{className:x.supportPhoneCard,children:[(0,a.jsxs)("div",{className:x.contacts,children:[e.map(e=>(0,a.jsx)("a",{className:x.phone,href:e.href,onClick:()=>i(e.label),children:e.label},e.label)),(0,a.jsx)("span",{className:x.chat,onClick:l,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,a.jsxs)("div",{className:x.contactsExtra,children:[(0,a.jsx)("p",{className:x.text,children:"Дополнительные телефоны"}),(0,a.jsx)("div",{className:x.phonesExtra,children:t.map(e=>(0,a.jsx)("a",{className:x.phoneExtra,href:e.href,onClick:()=>i(e.label),children:e.label},e.label))})]}),(0,a.jsx)("p",{className:x.text,children:n}),(0,a.jsx)("img",{className:x.image,src:`${r}/mp-assets/widgets/SupportBlock/bannerSupportGirl.png`})]})},y=({className:e,phoneCard:t,appCard:n,s3Assets:i})=>(0,a.jsx)("section",{className:(0,l.A)(h.support,e),children:(0,a.jsxs)(r.mc,{children:[(0,a.jsx)(r.DZ,{as:"h2",type:"display",weight:"bold",className:h.title,children:"Поддержка"}),(0,a.jsxs)("div",{className:h.cardsContainer,children:[(0,a.jsx)(b,{s3Assets:i,...t}),(0,a.jsx)(f,{s3Assets:i,...n})]})]})});y.displayName="Support"},26567:(e,t,n)=>{"use strict";n.d(t,{F:()=>c});var a=n(95155),r=n(29722),l=n(14570),i=n(83640);n(7664);let s=(0,i.g)("form-field"),o=Object.freeze({formField:s,labelWrapper:`${s}__label-wrapper`,label:`${s}__label`,description:`${s}__description`}),c=({label:e,description:t,caption:n,captionState:i,children:s,hasCaption:c,className:d,style:u,dataQa:h,dataId:p,...m})=>(0,a.jsxs)("div",{className:(0,r.A)(o.formField,d),style:u,...m,"data-id":p,"data-qa":h,children:[(e||t)&&(0,a.jsxs)("div",{className:o.labelWrapper,children:[(0,a.jsx)("span",{className:o.label,children:e}),(0,a.jsx)("span",{className:o.description,children:t})]}),s,(c||n)&&(0,a.jsx)(l.C,{text:n,state:i})]});c.displayName="FormField"},27160:()=>{},27695:(e,t,n)=>{"use strict";n.d(t,{u:()=>l});var a=n(12115),r=n(68224);function l(e,t){let[n,l]=(0,a.useState)(e);return(0,a.useEffect)(()=>{(0,r.i)(t)&&l(t)},[JSON.stringify(t)]),[n,l]}},28327:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var a=n(95155),r=n(29722),l=n(83640);n(11412);let i=(0,l.g)("card"),s={card:i,variants:{primary:`${i}--primary`,secondary:`${i}--secondary`}},o=({as:e,className:t,style:n,children:l,variant:i="primary",dataQa:o,dataId:c,...d})=>(0,a.jsx)(e||"div",{className:(0,r.A)(t,s.card,s.variants[i]),style:n,...d,"data-id":c,"data-qa":o,children:l});o.displayName="Card"},28965:(e,t,n)=>{"use strict";n.d(t,{P:()=>m});var a=n(95155),r=n(12115),l=n(29722),i=n(78012),s=n(13857),o=n(63914),c=n(83640);function d(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:"M5.997 10.746c-.686 0-1.252.559-1.247 1.254A1.251 1.251 0 0 0 6 13.246c.69 0 1.25-.56 1.25-1.25 0-.692-.564-1.25-1.253-1.25Zm6 0c-.686 0-1.252.559-1.247 1.254A1.251 1.251 0 0 0 12 13.246c.69 0 1.25-.56 1.25-1.25 0-.692-.564-1.25-1.253-1.25ZM16.75 12a1.247 1.247 0 0 1 1.247-1.254c.69 0 1.253.558 1.253 1.25 0 .69-.56 1.25-1.25 1.25A1.252 1.252 0 0 1 16.75 12Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}n(10234);let u=(e,t)=>Array.from({length:t-e+1},(t,n)=>n+e),h=(0,c.g)("pagination"),p=Object.freeze({pagination:h,bullet:"".concat(h,"--bullet"),dots:"".concat(h,"__dots"),link:"".concat(h,"__link"),active:"".concat(h,"__link--active"),controls:"".concat(h,"__link--controls"),big:"".concat(h,"__link--big"),prev:"".concat(h,"__link--prev"),next:"".concat(h,"__link--next"),disabled:"".concat(h,"__link--disabled")}),m=e=>{let{isControl:t=!1,onPageChange:n,totalCount:c,siblingCount:h=1,currentPage:m,pageSize:g,className:f,style:v,dataId:x,dataQa:b,sizePaginationBtn:y="small",hidePaginationControl:w=!1,renderLinkComponent:k,link:_}=e,C=(e=>{let{totalCount:t,pageSize:n,siblingCount:a=1,currentPage:l}=e;return(0,r.useMemo)(()=>{let e=Math.ceil(t/n);if(a+5>=e)return u(1,e);let r=Math.max(l-a,1),i=Math.min(l+a,e),s=r>2,o=i<e-1;return!s&&o?[...u(1,2+2*a),"...",e]:s&&!o?[1,"...",...u(e-(2+2*a)+1,e)]:s&&o?[1,"...",...u(r,i),"...",e]:void 0},[t,n,a,l])})({currentPage:m,totalCount:c,siblingCount:h,pageSize:g});if(0===m||(null==C?void 0:C.length)<2)return null;let j=C[(null==C?void 0:C.length)-1],N=null==k?void 0:k(m+1),A=null==k?void 0:k(m-1),E=(0,l.A)(p.controls,p.prev,{[p.big]:"big"===y,[p.link]:"small"===y,[p.disabled]:1===m}),L=(0,l.A)(p.controls,p.next,{[p.big]:"big"===y,[p.link]:"small"===y,[p.disabled]:m===+j}),R=e=>(0,l.A)(p.link,{[p.active]:e===m}),S=(0,a.jsx)(o.P,{style:{fontSize:24},children:(0,a.jsx)(s.S,{})}),T=(0,a.jsx)(o.P,{style:{fontSize:24},children:(0,a.jsx)(i.S,{})});return t?(0,a.jsx)("div",{role:"navigation","aria-label":"Навигация по страницам",className:(0,l.A)(p.pagination,p.bullet),"data-id":x,"data-qa":b,children:Array.from({length:c/g},(e,t)=>t+1).map((e,t)=>{let l=null==k?void 0:k(+e),i=R(+e);return(0,r.isValidElement)(l)?(0,r.cloneElement)(l,{key:t,className:i}):(0,a.jsx)("a",{className:i,href:_?"".concat(_).concat(+e):"#","aria-current":m===+e?"true":"false","aria-label":"".concat(+e),onClick:t=>{t.preventDefault(),null==n||n(+e)}},t)})}):(0,a.jsxs)("div",{role:"navigation","aria-label":"Навигация по страницам",className:(0,l.A)(p.pagination,f),style:v,"data-id":x,"data-qa":b,children:[(null==C?void 0:C.length)&&!w?(0,r.isValidElement)(A)?(0,r.cloneElement)(A,{children:T,className:E}):(0,a.jsx)("a",{href:_?"".concat(_).concat(m-1):"#",className:E,onClick:e=>{e.preventDefault(),null==n||n(m-1)},children:T}):null,(null==C?void 0:C.length)&&(null==C?void 0:C.map((e,t)=>{if("..."===e)return(0,a.jsx)("div",{className:(0,l.A)(p.dots),children:(0,a.jsx)(o.P,{children:(0,a.jsx)(d,{})})},t);let i=null==k?void 0:k(+e),s=R(+e);return(0,r.isValidElement)(i)?(0,r.cloneElement)(i,{children:e,key:t,className:s}):(0,a.jsx)("a",{className:s,"aria-current":m===+e?"true":"false","aria-label":"".concat(+e),href:_?"".concat(_).concat(+e):"#",onClick:t=>{t.preventDefault(),null==n||n(+e)},children:e},t)})),(null==C?void 0:C.length)&&!w?(0,r.isValidElement)(N)?(0,r.cloneElement)(N,{children:S,className:L}):(0,a.jsx)("a",{href:_?"".concat(_).concat(m+1):"#",className:L,onClick:e=>{e.preventDefault(),null==n||n(m+1)},children:S}):null]})};m.displayName="Pagination"},28994:()=>{},32106:()=>{},34118:()=>{},41533:()=>{},42879:(e,t,n)=>{"use strict";n.d(t,{B:()=>r,a:()=>a,b:()=>l});let a=Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})}),r=Object.freeze(Object.keys(a)),l=Object.freeze(r.filter(e=>"xs"!==e));Object.freeze(r.filter(e=>"3xl"!==e))},44550:(e,t,n)=>{"use strict";var a=n(95155),r=(n(29722),n(83640));n(34118);let l=(0,r.g)("progress-bar"),i=Object.freeze({progressBar:l,rounded:`${l}-rounded`,indicator:`${l}__indicator`,text:`${l}__text`,animationCircle:`${l}__animation-circle`})},46252:()=>{},46433:()=>{},49557:()=>{},49735:()=>{},52886:()=>{},53501:()=>{},56082:(e,t,n)=>{"use strict";n.d(t,{H:()=>d});var a=n(95155),r=n(29722),l=n(86253),i=n(83640);n(95124);let s={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},o=(0,i.g)("heading"),c=Object.freeze({heading:o,states:Object.freeze({display:`${o}--display`,hero:`${o}--hero`,h1:`${o}--h1`,h2:`${o}--h2`,h3:`${o}--h3`,h4:`${o}--h4`,h5:`${o}--h5`,h6:`${o}--h6`})}),d=({as:e,children:t,weight:n,type:i,lineClamp:o,className:d,style:u,dataQa:h,dataId:p,...m})=>{var g;let f=e||s[i]||"div",v=/^h[1-6]$/.test(f),x=(null==(g=i.match(/\d+/))?void 0:g[0])||1;return(0,a.jsx)(f,{className:(0,r.A)(c.heading,c.states[i],d),style:{...n?{fontWeight:`var(--font-weight-${n})`}:void 0,...o?{WebkitLineClamp:o,lineClamp:o,...l.l}:void 0,...u},role:v?null:"heading","aria-level":v?null:x,...m,"data-id":p,"data-qa":h,children:t})};d.displayName="Heading"},56601:()=>{},59402:(e,t,n)=>{"use strict";n.d(t,{g:()=>r});var a=n(17806);let r=async(e,t="common",n="v1")=>{try{let r=await fetch((0,a.oq)(e,`api/${n}/login-widget`,t));return r.ok?await r.json():(console.error(`Ошибка ${r.status} при загрузке конфига для ${t}`),{})}catch(e){return console.error(`Сетевая ошибка при загрузке конфига для ${t}`,e),{}}}},60006:()=>{},61320:()=>{},62116:(e,t,n)=>{"use strict";n(95155),n(29722);var a=n(83640);n(84342);let r=(0,a.g)("row"),l=(e,t,n)=>`${r}--gutter-${e}-${t}-${n}`;Object.freeze({row:r,state:{reverse:`${r}--reverse`,gutter:(e,t="xs")=>Array.isArray(e)?[l(t,e[0],"h"),l(t,e[1],"v")].join(" "):l(t,e,"h")}})},63109:(e,t,n)=>{"use strict";n.d(t,{OT:()=>b});let a=/"(?:_|\\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*:/,l=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function i(e,t){var n;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(n=e,console.warn(`[destr] Dropping "${n}" key to prevent prototype pollution.`)):t}function s(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.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(!l.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(a.test(e)||r.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,i)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}var o=n(17806);class c extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let d=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function u(e="GET"){return d.has(e.toUpperCase())}let h=new Set(["image/svg","application/xml","application/xhtml","application/html"]),p=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function m(e,t){if(t)if(Array.isArray(t))for(let n of t)await n(e);else await t(e)}let g=new Set([408,409,425,429,500,502,503,504]),f=new Set([101,204,205,304]),v=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}(),x=v.fetch?(...e)=>v.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),b=function e(t={}){let{fetch:n=globalThis.fetch,Headers:a=globalThis.Headers,AbortController:r=globalThis.AbortController}=t;async function l(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:+!u(e.options.method);let n=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(n):g.has(n))){let n="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return n>0&&await new Promise(e=>setTimeout(e,n)),i(e.request,{...e.options,retry:t-1})}}let n=function(e){let t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",a=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(a)}`,l=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=new c(`${r}: ${l}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(i,t,{get:()=>e[t]});for(let[t,n]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(i,t,{get:()=>e.response&&e.response[n]});return i}(e);throw Error.captureStackTrace&&Error.captureStackTrace(n,i),n}let i=async function(e,i={}){let c,d={request:e,options:function(e,t,n,a){let r,l=function(e,t,n){if(!t)return new n(e);let a=new n(t);if(e)for(let[t,r]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))a.set(t,r);return a}(t?.headers??e?.headers,n?.headers,a);return(n?.query||n?.params||t?.params||t?.query)&&(r={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:r,params:r,headers:l}}(e,i,t.defaults,a),response:void 0,error:void 0};if(d.options.method&&(d.options.method=d.options.method.toUpperCase()),d.options.onRequest&&(await m(d,d.options.onRequest),d.options.headers instanceof a||(d.options.headers=new a(d.options.headers||{}))),"string"==typeof d.request&&(d.options.baseURL&&(d.request=(0,o.cV)(d.request,d.options.baseURL)),d.options.query&&(d.request=(0,o.VL)(d.request,d.options.query),delete d.options.query),"query"in d.options&&delete d.options.query,"params"in d.options&&delete d.options.params),d.options.body&&u(d.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))}(d.options.body)){let e=d.options.headers.get("content-type");"string"!=typeof d.options.body&&(d.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(d.options.body).toString():JSON.stringify(d.options.body)),e||d.options.headers.set("content-type","application/json"),d.options.headers.has("accept")||d.options.headers.set("accept","application/json")}else("pipeTo"in d.options.body&&"function"==typeof d.options.body.pipeTo||"function"==typeof d.options.body.pipe)&&!("duplex"in d.options)&&(d.options.duplex="half");if(!d.options.signal&&d.options.timeout){let e=new r;c=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},d.options.timeout),d.options.signal=e.signal}try{d.response=await n(d.request,d.options)}catch(e){return d.error=e,d.options.onRequestError&&await m(d,d.options.onRequestError),await l(d)}finally{c&&clearTimeout(c)}if((d.response.body||d.response._bodyInit)&&!f.has(d.response.status)&&"HEAD"!==d.options.method){let e=(d.options.parseResponse?"json":d.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return p.test(t)?"json":"text/event-stream"===t?"stream":h.has(t)||t.startsWith("text/")?"text":"blob"}(d.response.headers.get("content-type")||"");switch(e){case"json":{let e=await d.response.text(),t=d.options.parseResponse||s;d.response._data=t(e);break}case"stream":d.response._data=d.response.body||d.response._bodyInit;break;default:d.response._data=await d.response[e]()}}return(d.options.onResponse&&await m(d,d.options.onResponse),!d.options.ignoreResponseError&&d.response.status>=400&&d.response.status<600)?(d.options.onResponseError&&await m(d,d.options.onResponseError),await l(d)):d.response},d=async function(e,t){return(await i(e,t))._data};return d.raw=i,d.native=(...e)=>n(...e),d.create=(n={},a={})=>e({...t,...a,defaults:{...t.defaults,...a.defaults,...n}}),d}({fetch:x,Headers:v.Headers,AbortController:v.AbortController})},63914:(e,t,n)=>{"use strict";n.d(t,{P:()=>l});var a=n(95155),r=n(29722);n(27160);let l=({children:e,className:t,style:n,...l})=>(0,a.jsx)("span",{className:(0,r.A)(t,"private-icon"),style:n,...l,children:e});l.displayName="PrivateIcon"},66424:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var a=n(12115);function r(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0 1 10.75 6c0-.69.558-1.253 1.25-1.253.69 0 1.25.56 1.25 1.25 0 .688-.559 1.248-1.246 1.25ZM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}},66684:(e,t,n)=>{"use strict";n.d(t,{S:()=>aJ});var a,r,l=n(95155),i=n(12115),s=n(28327),o=n(56082),c=n(96848),d=n(76701),u=n(17294),h=n(9683),p=n(29722),m=n(92681),g=n(83640);let f=(0,g.g)("tooltip"),v=Object.freeze({tooltip:f,text:"".concat(f,"__text"),wrapper:"".concat(f,"__wrapper"),inverted:"".concat(f,"--inverted")}),x="M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z";n(25007);let b=e=>{let{children:t,moveToBody:n}=e;return n?(0,l.jsx)(d.XF,{id:"finkit-tooltips",children:t}):(0,l.jsx)(l.Fragment,{children:t})},y=(0,i.forwardRef)((e,t)=>{let{position:n="top",text:a,zIndex:r=1,inverted:s,withoutTail:o,children:c,boundingOffset:g=12,boundaryPadding:f,moveToBody:y=!1,style:w,className:k,dataQa:_,dataId:C,...j}=e,[N,A]=(0,i.useState)(!1),E=(0,i.useRef)(null),{refs:L,floatingStyles:R,context:S}=(0,d.we)({open:N,onOpenChange:A,placement:n,whileElementsMounted:u.ll,middleware:[(0,h.cY)({mainAxis:g}),(0,h.UU)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==f&&{padding:f}}),(0,h.BN)({...void 0!==f&&{padding:f}}),(0,h.UE)({element:E,padding:8})]}),T=(0,d.Mk)(S,{delay:300}),{getReferenceProps:$,getFloatingProps:I}=(0,d.bv)([T]),D=(0,d.DL)(S,{duration:300});return(0,i.useImperativeHandle)(t,()=>({getActivatorElement:L.reference,getTooltipElement:L.floating})),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{"data-qa":(0,m.g)("".concat(_,"-activator"),!!_),ref:L.setReference,...$,className:v.wrapper,children:c}),D.isMounted&&(0,l.jsx)(b,{moveToBody:y,children:(0,l.jsxs)("div",{role:"tooltip",ref:L.setFloating,style:{...R,...D.styles,...w,zIndex:r},className:(0,p.A)(v.tooltip,k,{[v.inverted]:s}),...I,...j,"data-qa":_,"data-id":C,children:[(0,l.jsx)("span",{className:(0,p.A)(v.text,{[v.inverted]:s}),children:a}),!o&&(0,l.jsx)(d.ie,{ref:E,context:S,width:16,d:x,fill:s?"var(--color-white)":"var(--color-black-500)"})]})})]})});y.displayName="Tooltip";let w=function(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,a,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(a=e(t[n]))&&(r&&(r+=" "),r+=a);else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}(e))&&(a&&(a+=" "),a+=t);return a};var k=n(17806),_=n(80633),C=n(25939),j=n(14347),N=n(42879),A=n(68224),E=n(14570),L=n(63914);n(46433);let R=(0,g.g)("accordion"),S=(0,g.g)("accordion-item"),T=Object.freeze({accordionItem:S,accordionItemInner:"".concat(S,"__inner"),body:"".concat(S,"__body"),header:"".concat(S,"__header"),content:"".concat(S,"__content"),contentInner:"".concat(S,"__content-inner"),controlIcon:"".concat(S,"__control-icon"),titleWrapper:"".concat(S,"__title-wrapper"),title:"".concat(S,"__title"),icon:"".concat(S,"__icon"),toggleIcon:"".concat(S,"__toggle-icon"),subTitle:"".concat(S,"__subtitle"),caption:"".concat(S,"__caption"),states:{disabled:"".concat(S,"--disabled"),active:"".concat(S,"--active"),focused:"".concat(S,"--focused"),withControl:"".concat(S,"--with-control"),withIcon:"".concat(S,"--with-icon")}}),$=Object.freeze({accordion:R,withoutOutline:"".concat(R,"--without-outline"),variants:{primary:"".concat(R,"--primary"),secondary:"".concat(R,"--secondary")}});function I(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"m17.03 11.28-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 1 1 1.06-1.06L12 14.19l3.97-3.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}(0,i.forwardRef)((e,t)=>{let{multiple:n=!1,children:a,activeIndex:r,defaultActiveIndex:s=[],className:o,variant:c="primary",withoutOutline:d=!1,style:u,dataQa:h,dataId:m,onTabToggle:g,...f}=e,[v,x]=(0,i.useState)(s),b=(0,A.i)(r),y=b?r:v,w=(e,t,n)=>n?e.includes(t)?e.filter(e=>e!==t):[...e,t]:e.includes(t)?[]:[t];return(0,l.jsx)("div",{ref:t,className:(0,p.A)(o,$.accordion,$.variants[c],{[$.withoutOutline]:d}),style:u,...f,"data-id":m,"data-qa":h,children:i.Children.map(a,e=>(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{isActive:y.includes(e.props.id),onToggle:t=>{((e,t)=>{if(b){let a=w(y,e,n);null==g||g(a,t)}else x(t=>w(t,e,n))})(e.props.id,t)}}):e)})}).displayName="Accordion";let D=e=>{let t=Array.from(document.querySelectorAll("[data-accordion-index]"));if(0===t.length)return;let n=t.findIndex(e=>e===document.activeElement),a=n;switch(e){case"next":a=(n+1)%t.length;break;case"previous":a=(n-1+t.length)%t.length}let r=0;for(;r++<t.length;){let n=t[a];if("true"!==n.getAttribute("data-disabled"))return void n.focus();a=(a+("next"===e?1:-1)+t.length)%t.length}};function M(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M7.22 7.22a.743.743 0 0 1 1.06 0L12 10.94l3.72-3.72a.743.743 0 0 1 1.06 0 .742.742 0 0 1 0 1.06L13.061 12l3.72 3.72a.743.743 0 0 1 0 1.06.743.743 0 0 1-1.061 0L12 13.06l-3.72 3.72a.743.743 0 0 1-1.06 0 .743.743 0 0 1 0-1.06L10.94 12 7.22 8.28a.743.743 0 0 1 0-1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}(0,i.forwardRef)((e,t)=>{let{id:n,title:a,tagTitle:r="span",subTitle:s,disabled:o=!1,isActive:c=!1,icon:d,controlIcon:u,errorMessage:h,children:m,className:g,style:f,dataQa:v,dataId:x,onControlClick:b,onToggle:y,...w}=e,k=(0,i.useRef)(null),_=(0,i.useRef)(null),C=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=k.current,t=_.current;if(!e||!t)return;e.style.height=c?t.scrollHeight+"px":"0";let n=new ResizeObserver(()=>{c&&(e.style.height=t.scrollHeight+"px")});return n.observe(t),()=>n.disconnect()},[c]);let j=!u&&!!d;return(0,l.jsxs)("div",{ref:t,className:(0,p.A)(g,T.accordionItem),style:f,...w,"data-id":x,"data-qa":v,children:[(0,l.jsx)("div",{className:(0,p.A)(T.accordionItemInner),children:(0,l.jsxs)("div",{className:(0,p.A)(T.body,[{[T.states.disabled]:o}]),children:[(0,l.jsxs)("button",{type:"button","aria-expanded":c,"aria-disabled":o,"data-disabled":o,"data-accordion-index":n,className:(0,p.A)(T.header,[{[T.states.active]:c}]),tabIndex:o?-1:0,onClick:o?void 0:y,ref:C,disabled:o,onKeyDown:e=>{if(!o)switch(e.key){case"Enter":case" ":e.preventDefault(),null==y||y(e);break;case"ArrowDown":e.preventDefault(),D("next");break;case"ArrowUp":e.preventDefault(),D("previous")}},children:[(0,l.jsxs)("div",{className:(0,p.A)(T.titleWrapper),children:[j&&(0,l.jsx)("span",{className:T.icon,children:d}),(0,l.jsx)(r,{className:(0,p.A)(T.title,{[T.states.withControl]:u}),children:a}),(0,l.jsx)(L.P,{className:(0,p.A)(T.toggleIcon,[{[T.states.active]:c},{[T.states.withControl]:u}]),children:(0,l.jsx)(I,{})}),u&&(0,l.jsx)(L.P,{className:T.controlIcon,onClick:e=>{var t;u&&e.stopPropagation(),null==(t=C.current)||t.blur(),null==b||b(e)},children:u})]}),s&&(0,l.jsx)("span",{className:(0,p.A)(T.subTitle,[{[T.states.withIcon]:j}]),children:s})]}),(0,l.jsx)("div",{className:(0,p.A)(T.content),style:{overflow:"hidden"},"aria-hidden":!c,ref:k,children:(0,l.jsx)("div",{className:T.contentInner,ref:_,children:m})})]})}),h&&(0,l.jsx)(E.C,{withoutIcon:!0,state:"error",text:h})]})}).displayName="AccordionItem",n(86830),n(82230);var F=n(26567);function z(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M10.25 5.75c0 .414.336.75.75.75h5.44L5.22 17.72a.75.75 0 1 0 1.06 1.06L17.5 7.56V13a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-.75-.75H11a.75.75 0 0 0-.75.75Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}n(98426),n(44550),n(62116),n(21944),n(41533);let O=(0,g.g)("link"),B=Object.freeze({link:O,states:{inverted:"".concat(O,"--inverted"),disabled:"".concat(O,"--disabled")},content:"".concat(O,"__content"),icon:"".concat(O,"__icon"),size:{s:"".concat(O,"--s"),m:"".concat(O,"--m")}});function P(e){let{as:t,size:n="m",withIcon:a=!1,children:r,disabled:i,text:s,inverted:o,onClick:c,className:d,style:u,dataQa:h,dataId:m,...g}=e,f=(0,p.A)(B.link,{[B.states.inverted]:o,[B.states.disabled]:i},B.size[n],d),v=s||r;return(0,l.jsx)(t||"a",{className:f,disabled:i,style:u,onClick:c,"aria-disabled":i,tabIndex:i?-1:0,...g,"data-id":m,"data-qa":h,children:a?(0,l.jsxs)("span",{className:B.content,children:[v,(0,l.jsx)(L.P,{className:B.icon,children:(0,l.jsx)(z,{})})]}):v})}function q(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm1.5 0a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Zm12.28-2.72L13.06 12l2.72 2.72a.743.743 0 0 1 0 1.06.742.742 0 0 1-1.06 0L12 13.06l-2.72 2.72a.743.743 0 0 1-1.06 0 .743.743 0 0 1 0-1.06L10.94 12 8.22 9.28a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L12 10.94l2.72-2.72a.743.743 0 0 1 1.06 0 .743.743 0 0 1 0 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}function Z(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 0 0 7.071-2.929A9.97 9.97 0 0 0 22 12c0-5.523-4.477-10-10-10ZM3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0ZM12 7.5a1 1 0 1 0 .002 2 1 1 0 0 0-.003-2Zm-1.5 4.25a.75.75 0 0 1 .75-.75h1a.75.75 0 0 1 .75.75v4.5a.75.75 0 1 1-1.5 0V12.5h-.25a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}P.displayName="Link",n(67292);let H=(0,g.g)("alert"),V=Object.freeze({alert:H,closeIcon:"".concat(H,"__close-icon"),icon:"".concat(H,"__icon"),label:"".concat(H,"__label"),content:"".concat(H,"__content"),textBlock:"".concat(H,"__text-block"),caption:"".concat(H,"__caption"),link:"".concat(H,"__link"),button:"".concat(H,"__button"),state:{default:"".concat(H,"--default"),success:"".concat(H,"--success"),warning:"".concat(H,"--warning"),error:"".concat(H,"--error"),info:"".concat(H,"--info")},size:{s:"".concat(H,"--s"),m:"".concat(H,"--m")},variant:{primary:"".concat(H,"--primary"),secondary:"".concat(H,"--secondary"),green:"".concat(H,"--green"),verdant:"".concat(H,"--verdant"),avocado:"".concat(H,"--avocado"),yellow:"".concat(H,"--yellow"),orange:"".concat(H,"--orange"),blue:"".concat(H,"--blue"),purple:"".concat(H,"--purple")},fill:"".concat(H,"--fill")}),U=(0,i.forwardRef)((e,t)=>{let{label:n,state:a="default",variant:r="primary",size:i="m",outline:s=!0,caption:o,linkText:c,linkHref:d,onLinkClick:u,withLinkIcon:h=!1,icon:g,withIcon:f=!1,withClose:v=!1,buttonText:x,buttonVariant:b="primary",className:y,style:w,onClose:k,onButtonClick:_,dataQa:j,dataId:N,...A}=e,R={default:(0,l.jsx)(Z,{}),success:(0,l.jsx)(E.a,{}),warning:(0,l.jsx)(E.S,{}),error:(0,l.jsx)(q,{}),info:(0,l.jsx)(Z,{})};return(0,l.jsxs)("div",{ref:t,className:(0,p.A)(V.alert,V.variant[r],V.size[i],{[V.state[a]]:s},y),style:w,...A,"data-id":N,"data-qa":j,children:[(0,l.jsxs)("div",{className:V.content,children:[f&&(0,l.jsx)(L.P,{className:(0,p.A)(V.icon,{[V.state[a]]:!g}),children:g||R[a]}),(0,l.jsxs)("div",{className:V.textBlock,children:[n&&(0,l.jsx)("span",{"data-qa":(0,m.g)("".concat(j,"-label"),!!j),className:V.label,children:n}),o&&(0,l.jsx)(E.C,{dataQa:(0,m.g)("".concat(j,"-caption"),!!j),text:o,lineClamp:3,size:i,className:V.caption}),c&&(0,l.jsx)(P,{dataQa:(0,m.g)("".concat(j,"-link"),!!j),href:d,className:V.link,onClick:u,withIcon:h,children:c})]}),v&&(0,l.jsx)("button",{"data-qa":(0,m.g)("".concat(j,"-close"),!!j),type:"button",className:V.closeIcon,onClick:k,children:(0,l.jsx)(L.P,{children:(0,l.jsx)(M,{})})})]}),x&&(0,l.jsx)(C.B,{dataQa:(0,m.g)("".concat(j,"-button"),!!j),label:x,variant:b,size:"xs",className:V.button,onClick:_})]})});U.displayName="Alert";var W=n(78012),Y=n(13857);n(16236);let Q=(0,g.g)("breadcrumbs"),K={breadcrumbs:Q,breadcrumbsEllipsis:"".concat(Q,"--ellipsis"),displayOne:"".concat(Q,"--display-one"),list:"".concat(Q,"__list"),mobileList:"".concat(Q,"__list--mobile"),desktopList:"".concat(Q,"__list--desktop"),item:"".concat(Q,"__item"),customItem:"".concat(Q,"__item--custom"),link:"".concat(Q,"__link"),linkLabel:"".concat(Q,"__link-label"),text:"".concat(Q,"__text"),separator:"".concat(Q,"__separator"),backIcon:"".concat(Q,"__back-icon")},G=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return n||a?{label:n||"Назад",href:"object"!=typeof a?a||"#":void 0,customLink:"object"==typeof a?a:void 0}:t.length&&t.length>1?(null==(e=t[t.length-1])?void 0:e.href)?t[t.length-1]:t[t.length-2]:{label:t[0].label||"Назад",href:t[0].href||"#",customLink:t[0].customLink}},X=e=>{let{item:t,isBackward:n=!1,isLast:a,dataQa:r,onClick:i}=e;return(0,l.jsx)(l.Fragment,{children:t.href||t.customLink?(0,l.jsxs)(l.Fragment,{children:[t.customLink?(0,l.jsx)(l.Fragment,{children:t.customLink}):(0,l.jsxs)("a",{href:t.href,"data-qa":r,className:K.link,title:t.label,onClick:i?e=>i(e,t.href):void 0,children:[n&&(0,l.jsx)(L.P,{className:K.backIcon,children:(0,l.jsx)(W.S,{})}),(0,l.jsx)("span",{className:K.linkLabel,children:t.label})]}),!n&&!a&&(0,l.jsx)(L.P,{className:K.separator,children:(0,l.jsx)(Y.S,{})})]}):(0,l.jsx)("span",{"aria-current":"page","data-qa":r,className:K.text,title:t.label,children:t.label})})};X.displayName="BreadcrumbsLink";let J=e=>{let{items:t=[],dataQa:n,backwardHref:a,backwardLabel:r,onClick:i}=e,s=G(t,r,a);return(0,l.jsx)("ul",{className:(0,p.A)(K.list,K.desktopList),"data-qa":(0,m.g)("".concat(n,"-desktop-list"),!!n),children:1===t.length||a||r?(0,l.jsx)("li",{className:(0,p.A)(K.item),children:(0,l.jsx)(X,{isBackward:!0,dataQa:(0,m.g)("".concat(n,"-link"),!!n),item:s,onClick:i})}):(0,l.jsx)(l.Fragment,{children:t.map((e,a)=>(0,l.jsx)("li",{className:(0,p.A)(K.item,{[K.customItem]:e.customLink}),children:(0,l.jsx)(X,{item:e,dataQa:(0,m.g)("".concat(n,"-link-").concat(++a),!!n),isLast:a===t.length,onClick:i})},"".concat(e.label,"--").concat(a)))})})};J.displayName="DesktopBreadcrumbs";let ee=e=>{let{items:t=[],backwardLabel:n,backwardHref:a,dataQa:r,onClick:i}=e,s=G(t,n,a);return(0,l.jsx)("ul",{className:(0,p.A)(K.list,K.mobileList),"data-qa":(0,m.g)("".concat(r,"-mobile-list"),!!r),children:(0,l.jsx)("li",{className:(0,p.A)(K.item),children:(0,l.jsx)(X,{isBackward:!0,dataQa:(0,m.g)("".concat(r,"-link"),!!r),item:s,onClick:i})})})};ee.displayName="MobileBreadcrumbs",(0,i.forwardRef)((e,t)=>{let{items:n=[],isMobile:a,onClick:r,backwardLabel:i,backwardHref:s,style:o,className:c,ellipsis:d=!1,dataQa:u,dataId:h,...m}=e,g=n.length||i||s;return(0,l.jsx)(l.Fragment,{children:g&&(0,l.jsxs)("nav",{ref:t,"aria-label":"breadcrumbs",className:(0,p.A)(K.breadcrumbs,{[K.displayOne]:void 0===a,[K.breadcrumbsEllipsis]:d},c),style:o,...m,"data-id":h,"data-qa":u,children:[!0!==a&&(0,l.jsx)(J,{items:n,dataQa:u,backwardLabel:i,backwardHref:s,onClick:r||void 0}),!1!==a&&(0,l.jsx)(ee,{items:n,dataQa:u,backwardLabel:i,backwardHref:s,onClick:r||void 0})]})})}).displayName="Breadcrumbs";var et=n(91501);n(93588);let en=(0,g.g)("calendar"),ea=Object.freeze({calendar:en,header:"".concat(en,"__header"),headerText:"".concat(en,"__header-text"),headerButton:"".concat(en,"__header-button"),headerButtonPrev:"".concat(en,"__header-button--prev"),headerButtonNext:"".concat(en,"__header-button--next"),headerButtonDisabled:"".concat(en,"__header-button--disabled"),weekDays:"".concat(en,"__week-days"),weekDay:"".concat(en,"__week-day"),weekDayOff:"".concat(en,"__week-day--off"),content:"".concat(en,"__content"),days:"".concat(en,"__days"),day:"".concat(en,"__day"),currentDay:"".concat(en,"__day--current"),otherDay:"".concat(en,"__day--other"),selectedDay:"".concat(en,"__day--selected"),previewDay:"".concat(en,"__day--preview"),rangeDay:"".concat(en,"__day--range"),startRangeDay:"".concat(en,"__day--start-range"),endRangeDay:"".concat(en,"__day--end-range"),disabledDay:"".concat(en,"__day--disabled"),emptyDay:"".concat(en,"__day--empty"),events:"".concat(en,"__day-events"),event:"".concat(en,"__day-event"),months:"".concat(en,"__months"),month:"".concat(en,"__month"),disabledMonth:"".concat(en,"__month--disabled"),currentMonth:"".concat(en,"__month--current"),selectedMonth:"".concat(en,"__month--selected"),years:"".concat(en,"__years"),year:"".concat(en,"__year"),disabledYear:"".concat(en,"__year--disabled"),currentYear:"".concat(en,"__year--current"),selectedYear:"".concat(en,"__year--selected")}),er=Object.freeze({days:"days",months:"months",years:"years"}),el=["пн","вт","ср","чт","пт","сб","вс"],ei=["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],es=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),eo=e=>{let t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),a=e.getFullYear();return"".concat(t,".").concat(n,".").concat(a)},ec=e=>{let{events:t=[]}=e,n=t.slice(0,6);return(0,l.jsx)("span",{className:ea.events,children:n.map(e=>(0,l.jsx)("span",{className:(0,p.A)(ea.event,"".concat(ea.event,"--").concat(e))},"calendar--".concat(e)))})},ed=()=>(0,l.jsx)("div",{className:ea.weekDays,children:el.map((e,t)=>(0,l.jsx)(c.T,{className:(0,p.A)(ea.weekDay,{[ea.weekDayOff]:5===t||6===t}),size:"14",children:e},"week-day--".concat(e)))}),eu=e=>{let{currentDate:t,today:n,selectedDates:a,hoveredDate:r,minAllowedDate:i,maxAllowedDate:s,multiple:o,showCurrentDay:c,showOutsideDays:d,events:u,onDateSelect:h,onDateHover:m}=e,g=t.getFullYear(),f=t.getMonth(),v=new Date(g,f,1),x=new Date(g,f+1,0),b=v.getDay();b=0===b?6:--b;let y=x.getDate(),w=[];if(d){let e=new Date(g,f,0).getDate();for(let t=0;t<b;t++)w.push(new Date(g,f-1,e-t));w.reverse()}else for(let e=0;e<b;e++)w.push(null);let k=Array.from({length:y},(e,t)=>new Date(g,f,t+1));w.push(...k);let _=42-w.length;if(d)for(let e=1;e<=_;e++)w.push(new Date(g,f+1,e));else for(let e=0;e<_;e++)w.push(null);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(ed,{}),(0,l.jsx)("div",{className:(0,p.A)(ea.days,[]),children:w.map(e=>{if(!e)return(0,l.jsx)("div",{className:ea.emptyDay},"calendar-empty-".concat((0,et.g)()));let t=es(e),v=es(i),x=es(s),b=d&&(e.getMonth()!==f||e.getFullYear()!==g),y=t<v||t>x,w=a.some(e=>es(e).getTime()===t.getTime()),k=o&&((e,t,n)=>{if(t.length<2)return!1;let a=n(e),r=n(t[0]),l=n(t[1]);return a>=r&&a<=l})(e,a,es),_=o&&((e,t,n,a)=>{if(1!==t.length||!n)return!1;let r=a(e),l=a(t[0]),i=a(n);return r>=(l<i?l:i)&&r<=(l<i?i:l)})(e,a,r,es),C=c&&t.getTime()===es(n).getTime(),j=o&&a.length>=1&&es(a[0]).getTime()===t.getTime(),N=o&&2===a.length&&es(a[1]).getTime()===t.getTime(),A=(e=>{let t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(n,"-").concat(a)})(e);return(0,l.jsxs)("button",{type:"button",disabled:y,className:(0,p.A)(ea.day,{[ea.otherDay]:b,[ea.selectedDay]:w,[ea.currentDay]:C,[ea.rangeDay]:k,[ea.previewDay]:_,[ea.startRangeDay]:j,[ea.endRangeDay]:N,[ea.disabledDay]:y}),onClick:()=>!y&&h(e),onMouseEnter:()=>!y&&m(e),onMouseLeave:()=>m(null),children:[e.getDate(),u[A]&&(0,l.jsx)(ec,{events:u[A]})]},"calendar--day--".concat(e.getTime()))})})]})},eh=e=>{let{view:t,currentDate:n,canNavigatePrev:a,canNavigateNext:r,onNavigate:i,onViewChange:s}=e;return(0,l.jsxs)("div",{className:ea.header,children:[(0,l.jsx)("button",{className:(0,p.A)(ea.headerButton,ea.headerButtonPrev,{[ea.headerButtonDisabled]:!a}),type:"button",disabled:!a,onClick:()=>i("prev"),children:(0,l.jsx)(L.P,{style:{fontSize:24},children:(0,l.jsx)(W.S,{})})}),(0,l.jsx)("button",{type:"button",className:(0,p.A)(ea.headerButton,ea.headerText),onClick:s,children:(()=>{switch(t){case er.days:return n.toLocaleDateString("ru-RU",{month:"long",year:"numeric"});case er.months:return n.getFullYear().toString();case er.years:return"".concat(n.getFullYear()-14," - ").concat(n.getFullYear()+5);default:return""}})()}),(0,l.jsx)("button",{className:(0,p.A)(ea.headerButton,ea.headerButtonNext,{[ea.headerButtonDisabled]:!r}),type:"button",disabled:!r,onClick:()=>i("next"),children:(0,l.jsx)(L.P,{style:{fontSize:24},children:(0,l.jsx)(Y.S,{})})})]})},ep=e=>{let{today:t,currentDate:n,selectedDates:a,minAllowedDate:r,maxAllowedDate:i,showCurrentMonth:s,onMonthSelect:o}=e,c=Array.from({length:12},(e,t)=>new Date(n.getFullYear(),t,1)),d=r.getFullYear(),u=i.getFullYear();return(0,l.jsx)("div",{className:ea.months,children:c.map((e,n)=>{let c=es(r),h=es(i),m=new Date(e.getFullYear(),e.getMonth(),1),g=new Date(e.getFullYear(),e.getMonth()+1,0)<c||m>h||e.getFullYear()<d||e.getFullYear()>u,f=s&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),v=a.some(t=>t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear());return(0,l.jsx)("button",{type:"button",disabled:g,className:(0,p.A)(ea.month,{[ea.currentMonth]:f,[ea.selectedMonth]:v,[ea.disabledMonth]:g}),onClick:()=>{g||o(e)},children:ei[n]},"calendar--month--".concat(e.getTime()))})})},em=e=>{let{currentDate:t,today:n,selectedDates:a,minAllowedDate:r,maxAllowedDate:i,showCurrentYear:s,onYearSelect:o}=e,c=t.getFullYear()-14,d=Array.from({length:20},(e,t)=>c+t),u=r.getFullYear(),h=i.getFullYear(),m=a.map(e=>e.getFullYear());return(0,l.jsx)("div",{className:ea.years,children:d.map(e=>{let t=new Date(e,0,1),a=new Date(e,11,31),c=es(r),d=es(i),g=a<c||t>d||e<u||e>h,f=s&&e===n.getFullYear(),v=m.includes(e);return(0,l.jsx)("button",{type:"button",disabled:g,className:(0,p.A)(ea.year,{[ea.currentYear]:f,[ea.selectedYear]:v,[ea.disabledYear]:g}),onClick:()=>{g||o(e)},children:e},"calendar--".concat(e))})})};(0,i.forwardRef)((e,t)=>{let{value:n=null,minAllowedDate:a,maxAllowedDate:r,multiple:s=!1,showCurrentDay:o=!0,showCurrentMonth:c=!0,showCurrentYear:d=!0,showOutsideDays:u=!1,events:h={},className:m,style:g,dataId:f,dataQa:v,onChange:x,...b}=e,[y]=(0,i.useState)(()=>{let e=new Date;return new Date(e.getFullYear(),e.getMonth(),e.getDate())}),[w,k]=(0,i.useState)("days"),[_,C]=(0,i.useState)(()=>(e=>{if(e instanceof Date&&!isNaN(e.getTime()))return new Date(e.getFullYear(),e.getMonth(),1);if(Array.isArray(e)&&e.length>0){let t=new Date(e[0]);if(!isNaN(t.getTime()))return new Date(t.getFullYear(),t.getMonth(),1)}return new Date})(n)),[j,N]=(0,i.useState)([]),[A,E]=(0,i.useState)(null),L=(0,i.useMemo)(()=>es(a instanceof Date&&!isNaN(a.getTime())?a:new Date(1900,0,1)),[a]),R=(0,i.useMemo)(()=>es(r instanceof Date&&!isNaN(r.getTime())?r:new Date(new Date().setFullYear(new Date().getFullYear()+100))),[r]),S=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(null===n)return void N([]);if(void 0===n)return;N(Array.isArray(n)?n.map(e=>new Date(e)):[new Date(n)]);let e=null;Array.isArray(n)?n.length>0&&(e=new Date(n[0])):e=new Date(n),e&&!isNaN(e.getTime())&&C(new Date(e.getFullYear(),e.getMonth(),1))},[n]);let T=(0,i.useCallback)(e=>{let t=es(e);if(t<L||t>R)return;let n=[];if(s){if(0===j.length)n=[t];else if(1===j.length){let e=j[0];n=e.getTime()===t.getTime()?[]:[e,t].sort((e,t)=>e.getTime()-t.getTime())}else n=[t];E(null)}else n=j.some(e=>es(e).getTime()===t.getTime())?[]:[t];N(n);let a=null,r="";s?(a=n.length>0?[...n]:null,r=((e,t)=>{if(0===e.length)return"";if(t){if(1===e.length)return eo(e[0]);let t=[...e].sort((e,t)=>e.getTime()-t.getTime());return"".concat(eo(t[0])," - ").concat(eo(t[1]))}return e.length>0?eo(e[0]):""})(n,s)):(a=n.length>0?n[0]:null,r=n.length>0?eo(n[0]):""),S.current&&(null==x||x(a,r))},[s,L,R,j,x]),$=(0,i.useCallback)(e=>{s&&1===j.length&&E(e)},[s,j.length]);(0,i.useEffect)(()=>(S.current=!0,()=>{S.current=!1}),[]);let I=(0,i.useCallback)(e=>{let t=_.getFullYear(),n=_.getMonth();if(w===er.days){let t=new Date(_);t.setDate(1),"prev"===e?t.setMonth(n-1):t.setMonth(n+1);let a=es(new Date(t.getFullYear(),t.getMonth(),1)),r=es(new Date(t.getFullYear(),t.getMonth()+1,0));return a<=R&&r>=L}if(w===er.months){let n=t+("prev"===e?-1:1);return n>=L.getFullYear()&&n<=R.getFullYear()}if(w===er.years){let n=t-t%10+("prev"===e?-10:10);return n<=R.getFullYear()&&n+9>=L.getFullYear()}return!1},[w,_,L,R]),D=(0,i.useCallback)(e=>{C(e),k(er.days)},[]),M=(0,i.useCallback)(e=>{C(new Date(e,0,1)),k(er.months)},[]),F=(0,i.useCallback)(()=>{w===er.days?k(er.months):w===er.months?k(er.years):k(er.days)},[w]);return(0,l.jsxs)("div",{ref:t,className:(0,p.A)(m,ea.calendar),style:g,...b,"data-qa":v,"data-id":f,children:[(0,l.jsx)(eh,{view:w,currentDate:_,canNavigatePrev:I("prev"),canNavigateNext:I("next"),onNavigate:e=>{let t=new Date(_);switch(w){case er.days:t.setDate(1),t.setMonth(t.getMonth()+("prev"===e?-1:1));break;case er.months:t.setFullYear(t.getFullYear()+("prev"===e?-1:1));break;case er.years:t.setFullYear(t.getFullYear()+("prev"===e?-12:12))}C(t)},onViewChange:F}),(0,l.jsxs)("div",{className:ea.content,children:[w===er.days&&(0,l.jsx)(eu,{today:y,currentDate:_,selectedDates:j,hoveredDate:A,minAllowedDate:L,maxAllowedDate:R,multiple:s,showCurrentDay:o,showOutsideDays:u,events:h,onDateSelect:T,onDateHover:$}),w===er.months&&(0,l.jsx)(ep,{currentDate:_,today:y,selectedDates:j,minAllowedDate:L,maxAllowedDate:R,showCurrentMonth:c,onMonthSelect:D}),w===er.years&&(0,l.jsx)(em,{today:y,currentDate:_,selectedDates:j,minAllowedDate:L,maxAllowedDate:R,showCurrentYear:d,onYearSelect:M})]})]})}).displayName="Calendar";var eg=n(69365);n(49735);let ef=(0,g.g)("chips"),ev=Object.freeze({chips:ef,chip:"".concat(ef,"__item"),icon:"".concat(ef,"__icon"),iconLeft:"".concat(ef,"__icon-left"),iconRight:"".concat(ef,"__icon-right"),label:"".concat(ef,"__label"),variants:{primary:"".concat(ef,"--primary"),secondary:"".concat(ef,"--secondary")},activeVariants:{primary:"".concat(ef,"--active-primary"),secondary:"".concat(ef,"--active-secondary")},sizes:{s:"".concat(ef,"--s"),m:"".concat(ef,"--m"),l:"".concat(ef,"--l")},selected:"".concat(ef,"--selected"),indicator:"".concat(ef,"__indicator"),indicatorVariant:{red:"".concat(ef,"__indicator--red"),orange:"".concat(ef,"__indicator--orange"),green:"".concat(ef,"__indicator--green"),purple:"".concat(ef,"__indicator--purple"),purpleSecondary:"".concat(ef,"__indicator--purple-secondary"),blue:"".concat(ef,"__indicator--blue"),pink:"".concat(ef,"__indicator--pink")}});(0,i.forwardRef)((e,t)=>{let{chips:n,value:a,variant:r="primary",activeVariant:s="primary",multiple:o,clearable:c,size:d="m",className:u,style:h,dataQa:g,dataId:f,onChipClick:v,...x}=e,[b,y]=(0,i.useState)(o?[]:void 0),w=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,()=>({getRoot:()=>w.current,getSelectedChips:()=>b})),(0,i.useEffect)(()=>{o?y(Array.isArray(a)?a:[]):y(a)},[a,o]);let k=o||c,_=e=>o&&Array.isArray(b)?b.includes(e):b===e,C=(e,t,n)=>{y(n),null==v||v(e,t,n)},j=(e,t)=>{if(o&&Array.isArray(b))if(_(e)){let n=b.filter(t=>t!==e);C(e,t,n)}else C(e,t,[...b,e]);else{let n=c&&_(e)?void 0:e;C(e,t,n)}};return(0,l.jsx)("div",{ref:w,className:(0,p.A)(u,ev.chips),style:h,...x,"data-id":f,"data-qa":g,children:n.map((e,t)=>((e,t)=>{let{id:n,label:a,iconLeft:i,iconRight:o,indicator:c}=e,u=_(n);return(0,l.jsxs)("div",{className:(0,p.A)(ev.chip,ev.sizes[d],ev.activeVariants[s],ev.variants[r],[{[ev.selected]:u}]),role:k?"checkbox":"radio","aria-checked":u,"aria-label":a,tabIndex:0,"data-qa":(0,m.g)("".concat(g,"-item-").concat(++t),!!g),onClick:e=>{j(n,e)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),j(n,e))},children:[i&&(0,l.jsx)("span",{className:(0,p.A)(ev.icon,ev.iconLeft),"aria-hidden":"true",children:i}),(0,l.jsx)("span",{className:(0,p.A)(ev.label),children:a}),c&&(0,l.jsx)("div",{className:(0,p.A)(ev.indicator,ev.indicatorVariant[c])}),o&&(0,l.jsx)("span",{className:(0,p.A)(ev.icon,ev.iconRight),"aria-hidden":"true",children:o})]},n)})(e,t))})}).displayName="Chips";var ex=n(17268),eb=n(72550);function ey(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M18.499 3.75a.75.75 0 0 1 1.5 0v4a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5h2.84a7.5 7.5 0 1 0 1.907 4.773.75.75 0 0 1 1.5-.045 9 9 0 1 1-2.497-5.954V3.75Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}n(46252);let ew=(0,g.g)("file-item"),ek=Object.freeze({root:ew,file:"".concat(ew,"__file"),preview:"".concat(ew,"__preview"),previewImage:"".concat(ew,"__preview-image"),previewIcon:"".concat(ew,"__preview-icon"),fileInfo:"".concat(ew,"__file-info"),fileName:"".concat(ew,"__file-name"),fileStatus:"".concat(ew,"__file-status"),fileSize:"".concat(ew,"__file-size"),progress:"".concat(ew,"__progress"),controls:"".concat(ew,"__controls"),close:"".concat(ew,"__close"),repeat:"".concat(ew,"__repeat"),error:"".concat(ew,"__error"),states:{success:"".concat(ew,"--success"),error:"".concat(ew,"--error"),pending:"".concat(ew,"--pending"),uploading:"".concat(ew,"--uploading"),primary:"".concat(ew,"--primary"),secondary:"".concat(ew,"--secondary"),s:"".concat(ew,"--s"),m:"".concat(ew,"--m"),disabled:"".concat(ew,"--disabled")}}),e_=["B","KB","MB","GB"],eC=[{label:"svg",color:"#F79601",type:"image/svg+xml"},{label:"pdf",color:"#FF0508",type:"application/pdf"},{label:"jpg",color:"#525BBB",type:"image/jpeg"},{label:"zip",color:"#B0864B",type:"application/zip"},{label:"mp4",color:"#000000",type:"video/mp4"},{label:"xls",color:"#117C41",type:"application/vnd.ms-excel"},{label:"docx",color:"#165BBE",type:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}],ej="#189EF4",eN=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(0===e)return"0 ".concat(e_[0]);let n=Math.floor(Math.log(e)/Math.log(1024)),a=parseFloat((e/Math.pow(1024,n)).toFixed(t));return"".concat(a," ").concat(e_[n])},eA=(0,i.forwardRef)((e,t)=>{let{file:n,state:a="success",name:r,type:i,fileSize:s,error:o,progress:c=0,size:d="m",variant:u="primary",previewImageUrl:h,className:m,style:g,fileId:f,dataQa:v,dataId:x,onClick:b,onDelete:y,onRepeat:w,...k}=e,_="s"===d,C=(0,A.i)(c)&&"uploading"===a,j=o&&"error"===a,N=i&&/^image\//.test(i),E=(e=>{if(!e)return{label:"file",color:ej};let t=eC.find(t=>t.type===e);if(t)return{label:t.label,color:t.color};let n=eb.extension(e);return n?{label:n,color:ej}:{label:"file",color:ej}})(i),R=(N&&h?(0,l.jsx)("img",{role:"presentation",className:ek.previewImage,src:h,width:40,alt:r}):null)||(0,l.jsx)("div",{className:ek.previewIcon,style:{backgroundColor:E.color},children:E.label}),S=C&&"primary"===u?"linear-gradient(90deg, var(--color-gray-400) ".concat(c,"%, var(--color-white) ").concat(c,"%"):"linear-gradient(90deg, var(--color-white) ".concat(c,"%, var(--color-gray-400) ").concat(c,"%"),T=(0,p.A)(m,ek.root,ek.states[u],ek.states[a],ek.states[d]),$=C?{background:S,...g}:g;return(0,l.jsxs)("div",{ref:t,className:T,style:$,onClick:e=>{"success"===a&&(null==b||b(e,f,n))},...k,"data-id":x,"data-qa":v,children:[(0,l.jsxs)("div",{className:ek.file,children:[!_&&(0,l.jsx)("div",{className:ek.preview,children:R}),(0,l.jsxs)("div",{className:ek.fileInfo,children:[(0,l.jsx)("div",{className:ek.fileName,children:r}),!_&&s&&(0,l.jsxs)("div",{className:ek.fileStatus,children:[(0,l.jsx)("div",{className:ek.fileSize,children:"".concat(eN(s))}),C&&(0,l.jsx)("div",{className:ek.progress,children:"Загружено ".concat(c,"%")})]})]}),(0,l.jsxs)("div",{className:ek.controls,children:[_&&C&&(0,l.jsx)("div",{className:ek.progress,children:"".concat(c,"%")}),j&&(0,l.jsx)(L.P,{className:ek.repeat,tabIndex:0,role:"button","aria-label":"Повторить загрузку файла ".concat(r),onClick:e=>{e.preventDefault(),e.stopPropagation(),null==w||w(e,f,n)},children:(0,l.jsx)(ey,{})}),(0,l.jsx)(L.P,{className:ek.close,tabIndex:0,role:"button","aria-label":"Удалить файл ".concat(r),onClick:e=>{e.preventDefault(),e.stopPropagation(),null==y||y(e,f,n)},children:(0,l.jsx)(M,{})})]})]}),j&&(0,l.jsx)("div",{className:ek.error,children:o})]})});eA.displayName="File",n(15224);let eE=Object.freeze({root:(0,g.g)("file-list")});(0,i.forwardRef)((e,t)=>{let{files:n,size:a="m",variant:r="primary",className:s,role:o="list",style:c,dataId:d,dataQa:u,onClick:h,onDelete:m,onRepeat:g,...f}=e;return((0,i.useEffect)(()=>{(e=>{let t=new Set;for(let n of e)if(t.has(n))return!0;else t.add(n);return!1})(n.map(e=>e.fileId))&&console.warn("Имеются файлы с одинаковым fileId")},[n]),0===n.length)?null:(0,l.jsx)("div",{ref:t,role:o,"aria-label":"Загруженные файлы",className:(0,p.A)(s,eE.root),style:c,...f,"data-id":d,"data-qa":u,children:n.map(e=>{var t;return(0,i.createElement)(eA,{...e,role:"listitem","aria-labelledby":"Имя файла - ".concat(e.name,", Размер файла - ").concat(eN(null!=(t=e.fileSize)?t:0)),size:a,variant:r,onClick:h,onRepeat:g,onDelete:m,key:e.fileId})})})}).displayName="FileList";let eL=(e=!1)=>{let[t,n]=(0,i.useState)(e),a=(0,i.useCallback)(()=>n(!0),[]);return{value:t,show:a,hide:(0,i.useCallback)(()=>n(!1),[]),toggle:(0,i.useCallback)(()=>n(e=>!e),[])}};n(21545);let eR=(e,t,n,a)=>{(0,i.useEffect)(()=>(e.addEventListener(t,n),()=>e.removeEventListener(t,n)),[...a,t,e,n])},eS=(0,g.g)("hint"),eT=Object.freeze({hint:eS,hintDialog:"".concat(eS,"__dialog"),activator:"".concat(eS,"__activator"),footer:"".concat(eS,"__footer"),text:"".concat(eS,"__text"),close:"".concat(eS,"__close"),icon:"".concat(eS,"__icon"),inverted:"".concat(eS,"--inverted")});(0,i.forwardRef)((e,t)=>{let{className:n,style:a,isVisible:r,position:s="top",heading:c,footer:g,children:f,text:v,withoutTail:b,inverted:y,dataQa:w,dataId:k,role:_="dialog",...C}=e,j=(0,i.useRef)(null),{refs:N,floatingStyles:A,context:E}=(0,d.we)({placement:s,middleware:[(0,u.cY)(12),(0,u.UU)({fallbackAxisSideDirection:"start",crossAxis:!1}),(0,u.BN)(),(0,h.UE)({element:j,padding:8})]}),{value:R,show:S,hide:T,toggle:$}=eL(r),I=(e=>{let t=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let n=n=>{var a;(null==(a=t.current)?void 0:a.contains(n.target))||e()};return window.addEventListener("click",n),()=>window.removeEventListener("click",n)},[]),t})(T);return(0,i.useImperativeHandle)(t,()=>null==I?void 0:I.current),"undefined"!=typeof window&&(eR(window,"resize",function(e,t){let n=!1;return function(){for(var a=arguments.length,r=Array(a),l=0;l<a;l++)r[l]=arguments[l];n||(e(...r),n=!0,setTimeout(()=>{n=!1},t))}}(()=>E.update(),300),[]),eR(window,"keyup",e=>{"Escape"===e.key&&T()},[T])),(0,l.jsxs)("div",{ref:I,className:(0,p.A)(eT.hint,n),style:a,children:[(0,l.jsx)("button",{type:"button",className:eT.activator,ref:N.setReference,tabIndex:0,onClick:$,children:"function"==typeof f?f({show:S,hide:T,toggle:$,visible:R}):f}),R&&(0,l.jsxs)("div",{role:_,className:(0,p.A)(eT.hintDialog,{[eT.inverted]:y}),ref:N.setFloating,style:A,...C,"data-id":k,"data-qa":w,children:[c&&(0,l.jsx)(o.H,{dataQa:(0,m.g)("".concat(w,"-heading"),!!w),className:"mb-3",as:"h6",type:"h6",children:c}),(0,l.jsx)("p",{"data-qa":(0,m.g)("".concat(w,"-text"),!!w),className:(0,p.A)(eT.text),children:v}),g&&(0,l.jsx)("div",{"data-qa":(0,m.g)("".concat(w,"-footer"),!!w),className:(0,p.A)(eT.footer),children:g}),(0,l.jsx)("button",{type:"button",tabIndex:-1,className:eT.close,onClick:T,children:(0,l.jsx)(L.P,{"aria-hidden":"true",className:eT.icon,style:{display:"inline-flex",fontSize:16},children:(0,l.jsx)(M,{})})}),!b&&(0,l.jsx)(d.ie,{width:16,ref:j,d:x,context:E,fill:y?"var(--color-white)":"var(--color-black-500)"})]})]})}).displayName="Hint",n(56601);let e$=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),a=0;a<e;a++)n[a]=arguments[a];t.forEach(e=>{null==e||e(...n)})}},eI=(0,g.g)("input-base"),eD={wrapper:eI,input:"".concat(eI,"__input"),container:"".concat(eI,"__container"),label:"".concat(eI,"__label"),field:"".concat(eI,"__field"),rightLabel:"".concat(eI,"__right-label"),caption:"".concat(eI,"__caption"),placeholder:{visible:"".concat(eI,"__placeholder"),hidden:"".concat(eI,"__hidden")},states:{primary:"".concat(eI,"--primary"),secondary:"".concat(eI,"--secondary"),error:"".concat(eI,"--error"),success:"".concat(eI,"--success"),s:"".concat(eI,"--s"),m:"".concat(eI,"--m"),l:"".concat(eI,"--l"),focused:"".concat(eI,"--focused"),disabled:"".concat(eI,"--disabled"),active:"".concat(eI,"--active"),hasLabel:"".concat(eI,"--has-label"),accent:"".concat(eI,"--accent")}},eM=(0,i.forwardRef)((e,t)=>{let{icon:n,rightLabel:a,disabled:r,state:s,size:o="m",variant:c="primary",label:u,value:h,placeholder:g,maskPlaceholder:f,autoFocus:v=!1,maskPlaceholderVariant:x="default",caption:b,type:y="text",inputMode:w="text",hasCaption:k,className:_,style:C,dataQa:j,dataId:N,inputRef:A,onChange:L,onFocus:R,onBlur:S,onKeyDown:T,...$}=e,I=(0,i.useId)(),{value:D,show:M,hide:F}=eL(),z=(0,i.useRef)(null),O=(0,d.SV)([A,z]),B=(0,i.useMemo)(()=>D||!!h||!!g,[h,D,g]),P=(0,i.useCallback)(()=>{var e;null==(e=z.current)||e.focus()},[]),q=(0,i.useMemo)(()=>{var e;if(!f)return null;let t={hidden:null!=h?h:"",visible:f.substring(null!=(e=null==h?void 0:h.length)?e:0)};return f.length===(null==h?void 0:h.length)?null:t},[f,h]);return(0,i.useEffect)(()=>{var e,t,n,a;if(!v)return;let r=null!=(a=null==(e=z.current)?void 0:e.value.length)?a:0;null==(t=z.current)||t.focus(),null==(n=z.current)||n.setSelectionRange(r,r)},[v]),(0,l.jsxs)("div",{className:(0,p.A)(_,eD.wrapper),style:C,"data-qa":j,"data-id":N,children:[(0,l.jsxs)("div",{className:(0,p.A)(eD.input,eD.states[c],eD.states[o],{[eD.states.focused]:D,[eD.states.error]:"error"===s,[eD.states.success]:"success"===s,[eD.states.disabled]:!!r,[eD.states.hasLabel]:u}),onClick:P,ref:t,children:[(0,l.jsxs)("label",{htmlFor:I,className:eD.container,children:[u&&(0,l.jsx)("span",{className:(0,p.A)(eD.label,{[eD.states.active]:B,[eD.states.s]:"s"===o,[eD.states.disabled]:r,[eD.states.error]:"error"===s,[eD.states.success]:"success"===s}),children:u}),q&&!!h&&(0,l.jsxs)("div",{className:(0,p.A)(eD.placeholder.visible,{[eD.states.accent]:"accent"===x}),children:[q.hidden&&(0,l.jsx)("span",{className:eD.placeholder.hidden,children:q.hidden}),q.visible]}),(0,l.jsx)("input",{...$,id:I,ref:O,className:(0,p.A)(eD.field,{[eD.states.s]:"s"===o,[eD.states.hasLabel]:u,[eD.states.disabled]:r}),type:y,inputMode:w,autoComplete:"off",placeholder:g,value:h,disabled:r,onChange:e=>{null==L||L(e.target.value,e)},onFocus:e$(M,R),onBlur:e$(F,S),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==L||L("",{target:{value:""}})),null==T||T(e)}})]}),a&&(0,l.jsx)("div",{className:(0,p.A)(eD.rightLabel,{[eD.states.disabled]:r}),children:a}),n]}),(k||b)&&(0,l.jsx)(E.C,{dataQa:(0,m.g)("".concat(j,"-caption"),!!j),className:(0,p.A)(eD.caption,{[eD.states.disabled]:r}),state:s,withoutIcon:!0,children:b})]})});eM.displayName="InputBase";var eF=n(92694),ez=n(12912),eO=n(26923),eB=n(23777),eP=n(35712);function eq(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M4.75 3a.75.75 0 0 0 0 1.5h14.5a.75.75 0 0 0 0-1.5H4.75Zm7.78 3.218a.75.75 0 0 0-1.06 0l-4.25 4.25a.75.75 0 0 0 1.06 1.06l2.97-2.97v11.69a.75.75 0 0 0 1.5 0V8.558l2.97 2.97a.75.75 0 1 0 1.06-1.06l-4.25-4.25Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}n(96872);let eZ=(0,g.g)("input-file"),eH={inputFile:eZ,input:"".concat(eZ,"__input"),uploadArea:"".concat(eZ,"__upload-area"),uploadIcon:"".concat(eZ,"__upload-icon"),uploadLabel:{default:"".concat(eZ,"__upload-label"),purple:"".concat(eZ,"__upload-label--purple")},uploadDragged:"".concat(eZ,"__upload-dragged"),uploadCaption:"".concat(eZ,"__upload-caption"),uploadButton:"".concat(eZ,"__upload-button"),uploadWrapper:"".concat(eZ,"__upload-wrapper"),selectButton:"".concat(eZ,"__select-button"),states:{error:"".concat(eZ,"--error"),s:"".concat(eZ,"--s"),dragged:"".concat(eZ,"--dragged"),disabled:"".concat(eZ,"--disabled")}},eV=(e,t)=>{if(e&&t){let n=Array.isArray(t)?t:t.split(","),a=e.name||"",r=e.type||"",l=r.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){let e=a.toLowerCase(),n=t.toLowerCase(),r=[n];return(".jpg"===n||".jpeg"===n)&&(r=[".jpg",".jpeg"]),r.some(t=>e.endsWith(t))}return/\/\*$/.test(t)?l===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&(console.error(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function eU(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M5 12a.75.75 0 0 1 .75-.75h12.5a.75.75 0 0 1 0 1.5H5.75A.75.75 0 0 1 5 12Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}function eW(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12.75 5.75a.75.75 0 0 0-1.5 0v5.5h-5.5a.75.75 0 0 0 0 1.5h5.5v5.5a.75.75 0 0 0 1.5 0v-5.5h5.5a.75.75 0 0 0 0-1.5h-5.5v-5.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}(0,i.forwardRef)((e,t)=>{let{accept:n,maxFileSize:a,disabled:r=!1,multiple:s=!1,capture:o=!1,mode:d="select",size:u="m",style:h,className:m,name:g,dataId:f,dataQa:v,onChange:x,...b}=e,y=(0,i.useId)(),[w,k]=(0,i.useState)(!1),[_,j]=(0,i.useState)(!1),N=(0,i.useRef)(null),A=(0,i.useRef)(null),E=e=>{let t=Object.hasOwn(e,"dataTransfer")?e.dataTransfer.files:e.target.files;if(t){if(!(e=>{if(!e)return!0;let t=(e=>{if(!a)return!0;for(let t=0;t<e.length;t++)if(e[t].size>1024*a*1024)return!1;return!0})(e),r=(e=>{if(!n)return!0;for(let t=0;t<e.length;t++)if(!eV(e[t],n))return!1;return!0})(e);return t&&r})(t))return void k(!0);k(!1),null==x||x(t,e)}},R=()=>{var e;null==(e=N.current)||e.click()},S=e=>{r||(e.stopPropagation(),e.preventDefault())},T=e=>{r||(e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy",j(!0))},$=e=>{r||(e.stopPropagation(),e.preventDefault(),j(!1))},I=e=>{if(r)return;e.stopPropagation(),e.preventDefault();let{files:t}=e.dataTransfer;(s||t&&1===t.length)&&E(e),j(!1),e.dataTransfer.clearData()};(0,i.useImperativeHandle)(t,()=>({getInput:()=>N.current,getUploadArea:()=>A.current}));let D=()=>{let e=Array.isArray(n)?n.join(", "):null==n?void 0:n.split(",").join(", ");return(e?"Доступные форматы ".concat(e,". "):"")+(a?"Размер файла не должен превышать ".concat(a," MB."):"")},M=()=>{let e=Array.isArray(n)?n.join(","):n,t={ref:N,type:"file",className:eH.input,multiple:s,accept:e,capture:o,disabled:r,id:y,name:g,onChange:E};return(0,l.jsx)("input",{...t})};return(0,l.jsx)("div",{className:(0,p.A)(m,eH.inputFile),style:h,...b,"data-id":f,"data-qa":v,children:"select"===d?(()=>{let e=M(),t=D(),n=(0,l.jsx)(C.B,{onClick:R,label:"Выберите файлы",size:"s",stretch:!0,className:(0,p.A)(eH.selectButton,{disabled:r}),disabled:r});return(0,l.jsxs)(F.F,{caption:t,hasCaption:!0,captionState:w?"error":"default",children:[e,n]})})():(()=>{let e=M(),t=(()=>{let e={ref:A,className:(0,p.A)(eH.uploadArea,{[eH.states.error]:w,[eH.states.s]:"s"===u,[eH.states.dragged]:_,[eH.states.disabled]:r}),onDragEnter:S,onDragOver:T,onDragLeave:$,onDrop:I,onClick:R,role:"button",tabIndex:0},t=(0,l.jsx)(L.P,{"aria-hidden":"true",className:(0,p.A)(eH.uploadIcon,{[eH.states.disabled]:r}),children:(0,l.jsx)(eq,{})}),n=(0,l.jsx)(c.T,{size:"16",weight:"regular",className:(0,p.A)(eH.uploadDragged,{[eH.states.disabled]:r,[eH.states.dragged]:_,[eH.states.s]:"s"===u}),children:"Перетащите файлы сюда"});if("s"===u){let a=(0,l.jsxs)(c.T,{size:"16",weight:"regular",className:(0,p.A)(eH.uploadLabel.default,{[eH.states.disabled]:r}),children:[(0,l.jsxs)("span",{className:(0,p.A)(eH.uploadLabel.purple,{[eH.states.disabled]:r}),children:["Выберите файлы"," "]}),"или перетащите их сюда"]});return(0,l.jsx)(F.F,{caption:D(),hasCaption:!0,children:(0,l.jsxs)("div",{...e,children:[(0,l.jsxs)("div",{className:(0,p.A)(eH.uploadWrapper,{[eH.states.dragged]:_}),children:[t,a]}),n]})})}let a=(0,l.jsx)(c.T,{size:"16",weight:"regular",className:(0,p.A)(eH.uploadLabel.default,{[eH.states.disabled]:r}),children:"Выберите файлы или перетащите их сюда"}),i=(0,l.jsx)(c.T,{size:"14",weight:"regular",className:(0,p.A)(eH.uploadCaption,{[eH.states.disabled]:r}),children:D()}),s=(0,l.jsx)(c.T,{size:"16",weight:"regular",className:(0,p.A)(eH.uploadButton,{[eH.states.disabled]:r}),children:"Выбрать"});return(0,l.jsxs)("div",{...e,children:[(0,l.jsxs)("div",{className:(0,p.A)(eH.uploadWrapper,{[eH.states.dragged]:_}),children:[t,a,i,s]}),n]})})();return(0,l.jsxs)(l.Fragment,{children:[t,e]})})()})}).displayName="InputFile",n(98517);let eY=e=>{let{value:t,decimals:n="auto",decimalsCount:a=2}=e;switch(n){case"always":return new Intl.NumberFormat("ru",{minimumFractionDigits:a,useGrouping:"min2"}).format(t);case"never":return new Intl.NumberFormat("ru",{maximumFractionDigits:0,useGrouping:"min2"}).format(t);default:return new Intl.NumberFormat("ru",{useGrouping:"min2"}).format(t)}},eQ=e=>RegExp("^-?(?!0{2,})[(\\d\\s?]*[,.]?\\d*$").test(e),eK=(e,t,n)=>(0,A.i)(t)&&e<t?t:(0,A.i)(n)&&e>n?n:e,eG=[",","."],eX=(0,g.g)("input-number"),eJ={controls:"".concat(eX,"__controls"),icon:"".concat(eX,"__controls-icon"),divider:"".concat(eX,"__controls-divider"),states:{disabled:"".concat(eX,"--disabled")}},e0=e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),e1=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\xa0",n=RegExp(e0(t),"g");return e.replace(n,"")},e2=(e,t)=>{let n=RegExp("((^|\\D)-\\d)|^(-)").test(e),a=((e,t)=>{let n=e0(t.join("")),a=RegExp("[^\\d".concat(n,"]"),"gi");return e.replace(a,"")})(e1(e,"\xa0"),eG).replace(",","."),r=n?"-":"";if(a.includes(".")){let[e,n]=a.split(".");if(n){let a=".".concat(n.slice(0,t));return"".concat(r).concat(e).concat(a)}}return"".concat(r).concat(a)},e4=(e,t)=>{let n=String(e),[a,r]=n.split("."),l=new Intl.NumberFormat("ru",{maximumFractionDigits:0,roundingMode:"trunc",useGrouping:"min2"}).format(parseFloat(n)),i=n.includes(".")||n.includes(",");return"never"===t?l:"".concat(l).concat(i?",":"").concat(null!=r?r:"")},e3=(0,i.forwardRef)((e,t)=>{let{decimals:n="auto",decimalsCount:a=2,value:r,unit:s,step:o=1,min:c,max:d,size:u="m",withoutControls:h,disabled:m,icon:g,shouldRoundOnChange:f=!1,className:v,style:x,dataQa:b,dataId:y,autoFocus:w=!1,onChange:k,onFocus:_,onBlur:C,onKeyDown:j,onIncrement:N,onDecrement:E,...R}=e,S=(0,i.useMemo)(()=>a<10?a:10,[a]),[T,$]=(0,i.useState)((0,A.i)(r)?eY({value:eK(parseFloat(e4(e2(String(r),S),n)),c,d),decimals:n,decimalsCount:S}):""),[I,D]=(0,i.useState)(!1),[M,F]=(0,i.useState)(0),[z,O]=(0,i.useState)(null),B=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,()=>B.current),(0,i.useEffect)(()=>{I&&"-"!==T&&B.current&&document.activeElement===B.current&&B.current.setSelectionRange(M,M)},[T,M,B,I]);let P=(0,i.useCallback)((e,t)=>{if(D(!0),!eQ(e))return{float:T?parseFloat(e2(T,S)):void 0,formatted:T};if(""===e)return{float:void 0,formatted:e};if("-"===e)return F(1),{float:void 0,formatted:e};if("."===e||","===e)return F(2),{float:0,formatted:"never"===n?"0":"0,"};if("-."===e||"-,"===e)return F(3),{float:0,formatted:"never"===n?"-0":"-0,"};let{modifiedValue:a,cursorPosition:r}=(e=>{let{selectionStart:t,value:n,lastKeyStroke:a,stateValue:r}=e,l=t,i=n;if(r&&l&&"\xa0"===r[l]&&("Backspace"===a||"Delete"===a)){let e=n.split("");return"Backspace"===a&&(e.splice(l-1,1),l-=1),"Delete"===a&&(e.splice(l,1),l+=1),{modifiedValue:i=e.join(""),cursorPosition:l}}return{modifiedValue:i,cursorPosition:t}})({selectionStart:t,value:e,lastKeyStroke:z,stateValue:T}),l=e2(a,S),i="never"===n?parseInt(l):parseFloat(l),s=e4(l,n),o=f?eK(i,c,d):i;if(o>Number.MAX_SAFE_INTEGER||o<Number.MIN_SAFE_INTEGER)return{float:parseFloat(e2(T,S)),formatted:T};if(null!=r){let t=r+(s.length-e.length);F(t=t<=0?0:t)}return{float:o,formatted:s}},[n,S,z,d,c,f,T]),q=(0,i.useCallback)((e,t)=>{if(!t)return;let{target:{value:n,selectionStart:a}}=t,r=P(n,a);$(r.formatted),null==k||k(r.float,{...r,event:t})},[P,k]),Z=(0,i.useCallback)(e=>{null==_||_(e)},[_]),H=(0,i.useCallback)(e=>{let{target:{value:t}}=e,a=e2(t,S);if(!a||"-"===a){$(""),null==C||C(e);return}let r=parseFloat(a),l=f?r:eK(r,c,d),i=eY({value:l,decimals:n,decimalsCount:S});$(i),f||r===l||null==k||k(l,{float:l,formatted:i}),null==C||C(e)},[n,S,d,c,C,k,f]),V=(0,i.useCallback)(e=>{F(T.length);let t=parseFloat(null==r?e2(T,S):String(r).replace(",","."))||0,a=eK("increase"===e?Number((t+o).toFixed(S)):Number((t-o).toFixed(S)),c,d),l=eY({value:a,decimals:n,decimalsCount:S});$(l),null==k||k(a,{float:a,formatted:l})},[T,r,S,o,c,d,n,k]),U=(0,i.useCallback)(e=>{let{code:t}=e;O(t),("ArrowUp"===t||"ArrowDown"===t)&&(e.preventDefault(),V("ArrowUp"===t?"increase":"decrease")),null==j||j(e)},[V,j]),W=(0,i.useCallback)(e=>{e.preventDefault(),V("decrease"),null==E||E(e)},[V,E]),Y=(0,i.useCallback)(e=>{e.preventDefault(),V("increase"),null==N||N(e)},[V,N]),Q=(0,i.useCallback)(e=>{let{code:t}=e;O(t),["Space","Enter"].includes(t)&&(e.preventDefault(),V("decrease"),null==E||E(e))},[V,E]),K=(0,i.useCallback)(e=>{let{code:t}=e;O(t),["Space","Enter"].includes(t)&&(e.preventDefault(),V("increase"),null==N||N(e))},[V,N]),G=(0,i.useMemo)(()=>{let e=parseFloat(e2(T,S));return null==r||""===String(r)?"":Number(r)===e?T:"-"!==T&&","!==T&&eQ(String(r))?e4(e2(String(eK(r,c,d)),S),n):T},[n,S,T,r]),X=(0,i.useMemo)(()=>{let[e,t]=G.split(","),n=G.includes(","),a=((e,t,n)=>{if(!e||!t)return"";if(Array.isArray(t)){let n=e2(e,2),a=Number((n.startsWith("-")?n.slice(1):n).split(".")[0]),[r,l,i]=t;return((e,t,n,a)=>{let r=[t,n,a];return r[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||r[0]})(a,r,l,i)}return t})(G,s);if(n){let n=Array(S-t.length).fill(0).join("");return"".concat(e).concat(",").concat(t).concat(n).concat("\xa0").concat(a)}return"".concat(e).concat("\xa0").concat(a)},[G,s,S]),J={...R,value:G,maskPlaceholder:X,maskPlaceholderVariant:"accent",size:u,icon:h?g:(0,l.jsxs)("div",{className:(0,p.A)(eJ.controls),children:[(0,l.jsx)(L.P,{onClick:m?void 0:W,onKeyDown:m?void 0:Q,className:(0,p.A)(eJ.icon,{[eJ.states.disabled]:!!m}),role:"button",tabIndex:m?-1:0,children:(0,l.jsx)(eU,{})}),(0,l.jsx)("div",{className:eJ.divider}),(0,l.jsx)(L.P,{onClick:m?void 0:Y,onKeyDown:m?void 0:K,className:(0,p.A)(eJ.icon,{[eJ.states.disabled]:!!m}),role:"button",tabIndex:m?-1:0,children:(0,l.jsx)(eW,{})})]}),disabled:m,onChange:q,onBlur:H,onFocus:Z,onKeyDown:U};return(0,l.jsx)(eM,{...J,autoFocus:w,inputMode:"decimal",inputRef:B,dataQa:b,dataId:y,className:v,style:x})});function e5(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12 3C7.069 3 3.702 6.75 2.006 9.226a4.876 4.876 0 0 0 0 5.548C3.702 17.25 7.069 21 12 21s8.297-3.75 9.994-6.226a4.875 4.875 0 0 0 0-5.548C20.297 6.75 16.931 3 12 3Zm-8.757 7.074C4.888 7.673 7.863 4.5 12 4.5s7.112 3.173 8.757 5.574a3.376 3.376 0 0 1 0 3.852C19.112 16.327 16.137 19.5 12 19.5s-7.112-3.173-8.757-5.574a3.376 3.376 0 0 1 0-3.852ZM12 8.004a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-2.5 4a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}function e7(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M21.78 3.28a.75.75 0 0 0-1.06-1.06l-2.773 2.773C16.33 3.849 14.34 3 12 3 7.069 3 3.703 6.75 2.006 9.226a4.878 4.878 0 0 0 0 5.55c.697 1.015 1.654 2.217 2.866 3.291L2.22 20.72a.75.75 0 1 0 1.06 1.06l6.95-6.95h.001l4.595-4.595.001-.001L21.78 3.28ZM12 4.5c1.862 0 3.486.639 4.869 1.57l-2.623 2.624A4 4 0 0 0 8.69 14.25l-2.755 2.754c-1.125-.983-2.026-2.106-2.691-3.077a3.378 3.378 0 0 1-.001-3.853C4.888 7.673 7.863 4.5 12 4.5Zm8.379 2.673a.75.75 0 1 0-1.111 1.008 17.849 17.849 0 0 1 1.488 1.892 3.378 3.378 0 0 1 .001 3.853C19.112 16.327 16.137 19.5 12 19.5c-1.3 0-2.481-.311-3.544-.814a.75.75 0 0 0-.641 1.357A9.716 9.716 0 0 0 12 21c4.931 0 8.297-3.75 9.994-6.226a4.878 4.878 0 0 0 0-5.55 19.338 19.338 0 0 0-1.615-2.05ZM12 9.503c.416 0 .809.102 1.154.282l-3.372 3.373A2.5 2.5 0 0 1 12 9.504Zm3.988 2.815a.75.75 0 0 0-1.496-.116 2.5 2.5 0 0 1-2.294 2.294.75.75 0 0 0 .117 1.495 4 4 0 0 0 3.673-3.673Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}e3.displayName="InputNumber",n(53501);let e6=(0,g.g)("input-password"),e8={icon:"".concat(e6,"__icon"),states:{disabled:"".concat(e6,"--disabled")}};function e9(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M10.5 2a8.5 8.5 0 1 0 5.456 15.018l4.763 4.762a.75.75 0 0 0 1.06-1.06l-4.762-4.763A8.5 8.5 0 0 0 10.5 2Zm-7 8.5a7 7 0 1 1 14 0 7 7 0 0 1-14 0Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}(0,i.forwardRef)((e,t)=>{let{disabled:n,autoFocus:a=!1,...r}=e,[s,o]=(0,i.useState)(!1);return(0,l.jsx)(eM,{...r,autoFocus:a,ref:t,disabled:n,type:s?"text":"password",icon:(0,l.jsx)(L.P,{onMouseDown:n?void 0:e=>{e.preventDefault(),e.stopPropagation(),o(e=>!e)},onKeyDown:n?void 0:e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),o(e=>!e))},className:(0,p.A)(e8.icon,{[e8.states.disabled]:!!n}),role:"button",tabIndex:n?-1:0,children:s?(0,l.jsx)(e7,{}):(0,l.jsx)(e5,{})})})}).displayName="InputPassword",n(32106);let te=(0,g.g)("input-search"),tt={iconSearch:"".concat(te,"__icon-search"),iconClear:"".concat(te,"__icon-clear"),states:{disabled:"".concat(te,"--disabled")}};(0,i.forwardRef)((e,t)=>{let{value:n,disabled:a,onChange:r,...s}=e,[o,c]=(0,i.useState)(n||"");(0,i.useEffect)(()=>{c(n||"")},[n]);let d=(0,i.useCallback)((e,t)=>{c(e||""),null==r||r(e||"",t)},[]);return(0,l.jsx)(eM,{...s,value:o,ref:t,disabled:a,icon:o?(0,l.jsx)(L.P,{onMouseDown:a?void 0:e=>{e.preventDefault(),e.stopPropagation(),d()},onKeyDown:a?void 0:e=>{[" ","Enter"].includes(e.key)&&(e.preventDefault(),d())},className:(0,p.A)(tt.iconClear,{[tt.states.disabled]:a}),role:"button",tabIndex:a?-1:0,children:(0,l.jsx)(M,{})}):(0,l.jsx)(L.P,{className:(0,p.A)(tt.iconSearch,{[tt.states.disabled]:a}),children:(0,l.jsx)(e9,{})}),onChange:(e,t)=>{d(e,t)}})}).displayName="InputSearch",n(28965);var tn=n(66424);n(97903);let ta=(0,g.g)("radio"),tr=Object.freeze({radio:ta,input:"".concat(ta,"__input"),marker:"".concat(ta,"__marker"),wrapper:"".concat(ta,"__wrapper"),label:"".concat(ta,"__label"),caption:"".concat(ta,"__caption"),icon:"".concat(ta,"__icon"),iconButton:"".concat(ta,"__icon-button"),states:{error:"".concat(ta,"--error"),disabled:"".concat(ta,"--disabled"),inverted:"".concat(ta,"--inverted")},sizes:{xs:"".concat(ta,"--xs"),s:"".concat(ta,"--s"),m:"".concat(ta,"--m")},variants:{primary:"".concat(ta,"--primary"),secondary:"".concat(ta,"--secondary")}});(0,i.forwardRef)((e,t)=>{let{value:n,variant:a="primary",checked:r=!1,state:s="default",label:o,disabled:c=!1,caption:d,className:u,style:h,icon:m,withIcon:g=!1,size:f="m",inverted:v=!1,children:x,inputRef:b,onChange:y,onIconClick:w,dataQa:k,dataId:_,...C}=e,j=(0,i.useId)(),N=x||o;return(0,l.jsxs)("label",{ref:t,htmlFor:j,"data-marker-label":"",className:(0,p.A)(u,tr.radio,{[tr.states.disabled]:c,[tr.states.inverted]:v,[tr.states.error]:"error"===s,[tr.sizes[f]]:!0,[tr.variants[a]]:!0}),style:h,"data-id":_,"data-qa":k,children:[(0,l.jsx)("input",{id:j,value:n,checked:r,className:tr.input,type:"radio",disabled:c,onChange:e=>{null==y||y(e.target.value,e)},ref:b,...C}),(0,l.jsx)("span",{className:tr.marker,children:(0,l.jsx)(ex.C,{type:"radio",checked:r,inverted:v,state:s,disabled:c})}),N&&(0,l.jsxs)("span",{className:tr.wrapper,children:[(0,l.jsx)("span",{className:tr.label,children:N}),d&&(0,l.jsx)(E.C,{className:tr.caption,withoutIcon:!0,children:d})]}),g&&(0,l.jsx)("button",{type:"button",className:(0,p.A)(tr.iconButton),onClick:c?void 0:w,children:(0,l.jsx)(L.P,{className:(0,p.A)(tr.icon),children:m?(0,l.jsx)(l.Fragment,{children:m}):(0,l.jsx)(tn.S,{})})})]})}).displayName="Radio",n(49557);let tl=(0,g.g)("segmented-control"),ti=Object.freeze({segmentedControl:tl,secondary:"".concat(tl,"--secondary"),tab:"".concat(tl,"__tab"),label:"".concat(tl,"__label"),icon:"".concat(tl,"__icon"),slot:"".concat(tl,"__slot"),states:{stretch:"".concat(tl,"--stretch"),rounded:"".concat(tl,"--rounded"),small:"".concat(tl,"--s"),medium:"".concat(tl,"--m"),weightVariant:"".concat(tl,"--wight-medium"),left:"".concat(tl,"__tab--left"),right:"".concat(tl,"__tab--right"),active:"".concat(tl,"__tab--active"),iconOnly:"".concat(tl,"__tab--icon-only"),disabled:"".concat(tl,"__tab--disabled")}}),ts=Object.freeze({labelKey:"label",disabledKey:"disabled",slotLeftKey:"slotLeft",slotRightKey:"slotRight",iconLeftKey:"iconLeft",iconRightKey:"iconRight"});(0,i.forwardRef)((e,t)=>{var n;let{activeTabId:a,tabs:r,onTabChange:s,variant:o="primary",className:c,style:d,stretch:u=!1,rounded:h=!1,tabSettings:g,weightVariant:f="regular",size:v="m",onTabKeyDown:x,dataQa:b,dataId:y,...w}=e,k=(0,i.useRef)(null),_=(0,i.useMemo)(()=>{let e={...ts,...g};return r.map(t=>{var n;return{sourceTab:t,id:t.id,label:t[e.labelKey],disabled:null!=(n=t[e.disabledKey])&&n,slotLeft:t[e.slotLeftKey],slotRight:t[e.slotRightKey],iconLeft:t[e.iconLeftKey],iconRight:t[e.iconRightKey]}})},[g,r]),[C,j]=(0,i.useState)(null!=a?a:null==(n=_[0])?void 0:n.id),N=(0,i.useCallback)(e=>{var t;let n=k.current,a=(null==e?void 0:e.target).closest(".".concat(ti.tab)),r=n.getBoundingClientRect(),l=a.getBoundingClientRect();n.scrollTo({left:l.left-r.left-4+(null!=(t=n.scrollLeft)?t:0),behavior:"smooth"})},[]);return(0,i.useEffect)(()=>{null!=a&&j(a)},[a]),(0,i.useImperativeHandle)(t,()=>k),(0,l.jsx)("div",{ref:k,role:"tablist",className:(0,p.A)(ti.segmentedControl,{[ti.secondary]:"secondary"===o,[ti.states.small]:"s"===v,[ti.states.medium]:"m"===v,[ti.states.weightVariant]:"medium"===f,[ti.states.stretch]:u,[ti.states.rounded]:h},c),style:d,...w,"data-id":y,"data-qa":b,children:_.map((e,t)=>(0,l.jsxs)("button",{type:"button",role:"tab","data-qa":(0,m.g)("".concat(b,"-tab-").concat(++t),!!b),"aria-selected":e.id===C,"aria-disabled":e.disabled?e.disabled:void 0,tabIndex:(null==e?void 0:e.disabled)?-1:0,className:(0,p.A)(ti.tab,{[ti.states.active]:e.id===C,[ti.states.disabled]:e.disabled,[ti.states.iconOnly]:!e.label&&(e.iconLeft||e.slotLeft),[ti.states.left]:e.label&&(e.iconLeft||e.slotLeft),[ti.states.right]:e.label&&(e.iconRight||e.slotRight)}),onClick:e.disabled?void 0:t=>((e,t)=>{j(e),N(t),s(e,t)})(e.id,t),onKeyDown:e.disabled?void 0:t=>((e,t)=>{((null==t?void 0:t.key)===" "||(null==t?void 0:t.key)==="Enter")&&(j(e),N(t),null==x||x(e,t))})(e.id,t),children:[e.iconLeft&&(0,l.jsx)("span",{className:ti.icon,children:e.iconLeft}),e.slotLeft&&e.label&&(0,l.jsx)("span",{className:ti.slot,children:e.slotLeft}),e.label&&(0,l.jsx)("span",{className:ti.label,children:e.label}),e.label&&(0,l.jsxs)(l.Fragment,{children:[e.slotRight&&(0,l.jsx)("span",{className:ti.slot,children:e.slotRight}),e.iconRight&&(0,l.jsx)("span",{className:ti.icon,children:e.iconRight})]})]},e.id))})}).displayName="SegmentedControl",n(14471),n(13119);let to=(0,g.g)("snackbar"),tc=Object.freeze({snackbar:to,item:"".concat(to,"__item"),itemOut:"".concat(to,"__item--out"),position:{topLeft:"".concat(to,"--top-left"),topRight:"".concat(to,"--top-right"),bottomLeft:"".concat(to,"--bottom-left"),bottomRight:"".concat(to,"--bottom-right")},alertFill:V.fill}),td={status:"status",alert:"alert"},tu=(e,t,n)=>e<=t?t:e>=n?n:e,th=new Map,tp=null;(0,i.forwardRef)((e,t)=>{let{quantity:n=3,position:a="topRight",closeAll:r,style:s,className:o,dataQa:c,dataId:u,...h}=e,[m,g]=(0,i.useState)(!1),[f,v]=(0,i.useState)([]),x=(0,i.useRef)(new Map),b=(0,i.useCallback)(e=>{m||e.forEach(e=>{if(e.withoutTimer||x.current.has(e.id))return;let t=setTimeout(()=>{k(e,()=>{var t;w(e.id),null==(t=e.closeByTimer)||t.call(e)})},e.timer?1e3*tu(e.timer,4,10):4e3);x.current.set(e.id,t)})},[m]),y=(0,i.useCallback)(()=>{x.current.forEach(e=>clearTimeout(e)),x.current.clear()},[]);(0,i.useEffect)(()=>(tp=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){let t=[];th.forEach(e=>{t.push(new Promise(t=>k(e,t)))}),Promise.all(t).then(()=>{null==r||r(),y(),th.clear(),v(e.slice(0,tu(n,1,5)))})}else v(e.slice(0,tu(n,1,5)))},()=>{tp=null}),[r,y,n]),(0,i.useEffect)(()=>{b(f)},[f,b]);let w=e=>{th.delete(e),x.current.has(e)&&(clearTimeout(x.current.get(e)),x.current.delete(e)),tp&&tp([...Array.from(th.values())])},k=(e,t)=>{th.set(e.id,{...e,isExiting:!0}),tp&&tp([...Array.from(th.values())]),setTimeout(()=>{t()},250)},_=()=>{g(!1),b(f)},C=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_(),k(t,()=>{var a,r;w(t.id),n?null==(a=t.onButtonClick)||a.call(t,e):null==(r=t.onClose)||r.call(t,e)})};return(0,l.jsx)(l.Fragment,{children:!!f.length&&(0,l.jsx)(d.XF,{id:"finkit-snackbars",children:(0,l.jsx)("ul",{ref:t,role:"region",className:(0,p.A)(tc.snackbar,tc.position[a],o),style:s,onMouseEnter:()=>{g(!0),y()},onMouseLeave:_,...h,"data-qa":c,"data-id":u,children:f.map(e=>(0,l.jsx)("li",{id:e.id,className:(0,p.A)(tc.item,{[tc.itemOut]:e.isExiting}),children:(0,l.jsx)(U,{role:"error"===e.state?td.alert:td.status,label:e.label,state:e.state,caption:e.caption,withClose:e.withClose||e.withoutTimer&&!e.buttonText,onClose:t=>{C(t,e)},buttonText:e.buttonText,onButtonClick:t=>{C(t,e,!0)},className:tc.alertFill,dataQa:e.dataQa,dataId:e.dataId,buttonVariant:"white",withIcon:!0})},e.id))})})})}).displayName="Snackbar",n(24853),n(77654);let tm=(0,g.g)("tabs"),tg=Object.freeze({tabs:tm,tabWrapper:"".concat(tm,"__tab-wrapper"),tab:"".concat(tm,"__tab"),active:"".concat(tm,"__tab--active"),activeLine:"".concat(tm,"__activeLine")});(0,i.forwardRef)((e,t)=>{var n;let{activeTabId:a,tabs:r,onTabChange:s,style:o,className:c,dataQa:d,dataId:u,...h}=e,[g,f]=(0,i.useState)(null!=a?a:null==(n=r[0])?void 0:n.id),[v,x]=(0,i.useState)(null),[b,y]=(0,i.useState)({width:0,left:0}),w=(0,i.useRef)(null);(0,i.useEffect)(()=>{v&&y({left:v.offsetLeft-2,width:v.offsetWidth+4})},[v]);let k=(0,i.useCallback)(e=>{var t;let n=w.current,a=(null==e?void 0:e.target).closest(".".concat(tg.tab)),r=n.getBoundingClientRect(),l=a.getBoundingClientRect();n.scrollTo({left:l.left-r.left-4+(null!=(t=n.scrollLeft)?t:0),behavior:"smooth"})},[]);return(0,i.useImperativeHandle)(t,()=>w),(0,l.jsxs)("ul",{role:"tablist",ref:w,className:(0,p.A)(tg.tabs,c),style:o,...h,"data-id":u,"data-qa":d,children:[r.map((e,t)=>{let n=e.id===g;return!e.disabled&&(0,l.jsx)("li",{role:"tab","aria-selected":e.id===g,"data-qa":(0,m.g)("".concat(d,"-tab-").concat(++t),!!d),className:tg.tabWrapper,children:(0,l.jsx)("button",{type:"button",ref:n?x:null,className:(0,p.A)(tg.tab,{[tg.active]:n}),onClick:t=>((e,t)=>{k(t),f(e),s(e,t)})(e.id,t),children:e.label})},e.id)}),(0,l.jsx)("div",{className:(0,p.A)(tg.activeLine),style:{left:b.left,width:b.width}})]})}).displayName="Tabs";var tf=n(70465);n(61320);let tv=(0,g.g)("textarea"),tx={root:tv,container:"".concat(tv,"__container"),field:"".concat(tv,"__field"),labelWrapper:"".concat(tv,"__label-wrapper"),label:"".concat(tv,"__label"),captionWrapper:"".concat(tv,"__caption-wrapper"),caption:"".concat(tv,"__caption"),counter:"".concat(tv,"__counter"),states:{primary:"".concat(tv,"--primary"),secondary:"".concat(tv,"--secondary"),error:"".concat(tv,"--error"),success:"".concat(tv,"--success"),s:"".concat(tv,"--s"),m:"".concat(tv,"--m"),l:"".concat(tv,"--l"),focused:"".concat(tv,"--focused"),active:"".concat(tv,"--active"),disabled:"".concat(tv,"--disabled"),hasLabel:"".concat(tv,"--has-label"),hasCaption:"".concat(tv,"--has-caption")}};(0,i.forwardRef)((e,t)=>{let{disabled:n,state:a,size:r="m",variant:s="primary",label:o,className:c,style:d,value:u="",rows:h=1,maxLength:m,caption:g,counter:f,placeholder:v,autoResize:x=!1,hasCaption:b=!1,dataQa:y,dataId:w,onChange:k,onFocus:_,onBlur:C,...j}=e,{value:N,show:A,hide:E}=eL(),L=(0,i.useRef)(null),R="s"!==r;((e,t,n)=>{(0,i.useEffect)(()=>{e&&(n&&t?(e.style.height="auto",e.style.height=e.scrollHeight+"px"):e.style.height="")},[n,e,t])})(L.current,u,x);let S=(0,i.useMemo)(()=>!N||u||"s"!==r||v?N?v:"s"===r?o:v:o,[v,u,r,N,o]),T=(0,i.useMemo)(()=>h<1?1:h>5?5:h,[h]),$=(0,i.useMemo)(()=>m&&m>0?m:void 0,[m]),I=(0,i.useMemo)(()=>f&&!!$&&$>0&&"".concat(u.length,"/").concat($),[f,$,u.length]);return(0,l.jsxs)("div",{className:(0,p.A)(c,tx.root),style:d,ref:t,"data-qa":y,"data-id":w,children:[(0,l.jsx)("div",{className:(0,p.A)(tx.container,tx.states[s],tx.states[r],{[tx.states.focused]:N,[tx.states.error]:"error"===a,[tx.states.success]:"success"===a,[tx.states.disabled]:!!n}),children:(0,l.jsxs)("label",{className:tx.labelWrapper,children:[R&&(0,l.jsx)("span",{className:(0,p.A)(tx.label,{[tx.states.active]:N||!!u||!!v}),children:o}),(0,l.jsx)("textarea",{...j,"aria-disabled":n?"true":void 0,"aria-invalid":"error"===a?"true":void 0,className:(0,p.A)(tx.field,{[tx.states.hasLabel]:R}),rows:T,maxLength:$,ref:L,value:u,placeholder:S,disabled:n,onFocus:e=>{A(),null==_||_(e)},onBlur:e=>{E(),null==C||C(e)},onChange:e=>{null==k||k(e.target.value||"",e)}})]})}),(b||g||I)&&(0,l.jsxs)("div",{className:tx.captionWrapper,children:[(b||g)&&(0,l.jsx)("div",{className:(0,p.A)(tx.caption,{[tx.states.error]:"error"===a,[tx.states.success]:"success"===a,[tx.states.disabled]:!!n}),children:g}),I&&(0,l.jsx)("div",{className:tx.counter,children:I})]})]})}).displayName="Textarea",n(17188);var tb=n(27695);function ty(){return"undefined"==typeof window}n(6807);let tw=ty()?i.useLayoutEffect:i.useEffect;function tk(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return ty()?t:window.matchMedia(e).matches}function t_(e){let{minWidth:t}=N.a[e];return function(e){let{defaultValue:t=!1,initializeWithValue:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[a,r]=(0,i.useState)(()=>n?tk(e,t):null!=t&&t);function l(){r(tk(e))}return tw(()=>{let t=window.matchMedia(e);return l(),"function"==typeof t.addListener?t.addListener(l):t.addEventListener("change",l),()=>{"function"==typeof t.removeListener?t.removeListener(l):t.removeEventListener("change",l)}},[e]),a}("screen and (min-width: ".concat(t,"px)"))}Object.freeze({divider:(0,g.g)("dropdown-divider")});let tC=(0,g.g)("dropdown-group");Object.freeze({group:tC,title:"".concat(tC,"__title"),content:"".concat(tC,"__content")});let tj=(0,g.g)("dropdown-option"),tN=Object.freeze({option:tj,slot:"".concat(tj,"__slot"),iconSlot:"".concat(tj,"__slot--icon"),wrapper:"".concat(tj,"__wrapper"),label:"".concat(tj,"__label"),caption:"".concat(tj,"__caption"),states:{danger:"".concat(tj,"--danger"),success:"".concat(tj,"--success"),focused:"".concat(tj,"--focused"),disabled:"".concat(tj,"--disabled")}});function tA(e){let{as:t,label:n,caption:a,iconLeft:r,iconRight:s,prepend:o,append:c,variant:d="default",disabled:u=!1,focused:h=!1,className:m,onClick:g,...f}=e,v=(0,p.A)(m,tN.option,{[tN.states.focused]:h,[tN.states.success]:"success"===d,[tN.states.danger]:"danger"===d,[tN.states.disabled]:!!u}),x=(0,i.useCallback)(e=>{e.preventDefault(),u||null==g||g(e)},[u,g]);return(0,l.jsxs)(t||"div",{...f,className:v,"aria-disabled":u,onClick:x,children:[o&&(0,l.jsx)("span",{className:tN.slot,children:o}),r&&(0,l.jsx)("span",{className:(0,p.A)(tN.slot,tN.iconSlot),children:r}),(0,l.jsxs)("div",{className:tN.wrapper,children:[(0,l.jsx)("span",{className:tN.label,children:n}),a&&(0,l.jsx)("span",{className:tN.caption,children:a})]}),s&&(0,l.jsx)("span",{className:(0,p.A)(tN.slot,tN.iconSlot),children:s}),c&&(0,l.jsx)("span",{className:tN.slot,children:c})]})}let tE=(e,t,n)=>{if(e)return"object"!=typeof e?n:"function"==typeof t?t(e):e[t]},tL=(0,g.g)("input-autocomplete"),tR={input:tL,pending:"".concat(tL,"__pending"),pendingIcon:"".concat(tL,"__pending-icon"),empty:"".concat(tL,"__empty"),emptyText:"".concat(tL,"__empty-text"),emptyDescription:"".concat(tL,"__empty-description"),options:"".concat(tL,"__options"),optionIcon:"".concat(tL,"__option-icon"),button:"".concat(tL,"__button"),states:{selected:"".concat(tL,"--selected")}};function tS(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.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"})))}let tT=e=>{let{items:t,itemSize:n,renderItem:a,overscan:r=2,outerRef:s,itemsContainerClassname:o}=e,[c,d]=(0,i.useState)({start:0,end:0}),u=(0,i.useCallback)(()=>{if(!s.current)return;let e=s.current.clientHeight,a=s.current.scrollTop;d({start:Math.max(0,Math.floor(a/n)-r),end:Math.min(t.length,Math.ceil((a+e)/n)+r)})},[n,t.length,s,r]);(0,i.useLayoutEffect)(()=>{u()},[u]),(0,i.useEffect)(()=>{let e=s.current;if(!e)return;let t=()=>u();e.addEventListener("scroll",t);let n=new ResizeObserver(()=>u());return n.observe(e),()=>{e.removeEventListener("scroll",t),n.disconnect()}},[u,s]);let h=t.length*n+16,p=t.slice(c.start,c.end),m={position:"absolute",top:0,height:p.length*n,transform:"translateY(".concat(c.start*n,"px)"),width:"100%",margin:0};return(0,l.jsx)("div",{style:{position:"relative",height:h,width:"auto",margin:"-8px"},children:(0,l.jsx)("ul",{className:o,style:m,role:"listbox",children:p.map((e,t)=>a(e,c.start+t))},"options")})};function t$(e){let{inputValue:t,mappedOptions:n,pending:a=!1,optionsEmptyText:r="Нет результатов",optionsEmptyDescription:s,contentInnerRef:o,withVirtualize:c=!1,handleOptionClick:d}=e,u=(0,i.useId)();if(a)return(0,l.jsx)("div",{className:tR.pending,children:(0,l.jsx)(L.P,{className:tR.pendingIcon,children:(0,l.jsx)(C.S,{})})});if((null==t?void 0:t.length)&&!n.length)return(0,l.jsxs)("div",{className:tR.empty,children:[(0,l.jsx)("div",{className:tR.emptyText,children:r}),s&&(0,l.jsx)("div",{className:tR.emptyDescription,children:s})]});let h=e=>(0,l.jsx)(tA,{role:"option","aria-selected":e.selected,as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active,onClick:()=>d(e),append:(0,l.jsx)(L.P,{className:(0,p.A)(tR.optionIcon,{[tR.states.selected]:e.selected}),style:{fontSize:24},children:(0,l.jsx)(tS,{})})},JSON.stringify(e.value));return c?(0,l.jsx)(tT,{outerRef:o,items:n,itemSize:40,renderItem:h,itemsContainerClassname:tR.options}):(0,l.jsx)("ul",{className:tR.options,id:u,role:"listbox",children:n.map(h)},"options")}(0,i.forwardRef)((e,t)=>{let{value:n,selectedValue:a,label:r,options:s=[],state:o,icon:c,rightLabel:d,desktopMaxHeight:u,pending:h=!1,buttonLabel:p="Выбрать",optionValue:g="value",optionLabel:f="label",optionCaption:v="caption",optionDisabled:x="disabled",variant:b="primary",size:y="m",disabled:w=!1,caption:k,hasCaption:_=!1,keepFocus:j=!1,optionsEmptyText:N="Нет результатов",optionsEmptyDescription:A,withVirtualize:E,onChange:L,onSelect:R,onFocus:S,onBlur:T,onKeydown:$,dataQa:I,dataId:D,className:M,style:F,...z}=e,[O,B]=(0,i.useState)(!1),[P,q]=(0,i.useState)(""),Z=(0,i.useRef)(null),H=(0,i.useRef)(null),V=(0,i.useRef)(null),U=(0,i.useRef)(null),W=t_("m");(0,i.useImperativeHandle)(t,()=>H.current);let Y=(0,i.useMemo)(()=>W?O&&(s.length>0||!!P||h):O,[P,W,O,s.length,h]),Q=(0,i.useMemo)(()=>s.map((e,t)=>{let n=tE(e,g,e),r=tE(a,g,a);return{index:t,value:n,label:tE(e,f,e),caption:tE(e,v),disabled:tE(e,x),selected:r===n,original:e}}),[v,x,f,g,s,a]),K=(0,i.useMemo)(()=>Q.find(e=>{let{selected:t}=e;return t}),[Q]);(0,i.useEffect)(()=>{if(!n&&!a)return void q("");n&&q(n)},[n]),(0,i.useEffect)(()=>{a&&q(tE(a,f,a))},[]),(0,i.useEffect)(()=>{O||(K?G(K.label):X())},[O]);let G=e=>{q(e),null==L||L(e)},X=e=>{null==R||R(e)},J=()=>{B(!1)},ee=e=>{null==T||T(e)};return(0,l.jsx)("div",{ref:t,className:tR.input,"data-id":D,"data-qa":I,children:(0,l.jsxs)(nt,{opened:Y,onToggle:B,width:"inherit",placement:"bottom",mobileFullHeight:!0,desktopMaxHeight:u,footer:W||!a?void 0:(0,l.jsx)(C.B,{label:p,disabled:!a,className:tR.button,onClick:()=>{J()}}),heading:W?void 0:(0,l.jsx)(eM,{inputRef:V,className:M,style:F,value:P,label:r,rightLabel:d,icon:c,state:o,caption:k,hasCaption:_,onChange:G,onBlur:ee,...z}),dataQa:(0,m.g)("".concat(I,"-dropdown"),!!I),children:[(0,l.jsx)(nc,{asChild:!0,children:(0,l.jsx)(eM,{value:P,label:r,rightLabel:d,icon:c,size:y,variant:b,state:o,disabled:w,caption:k,hasCaption:_,...{onClick:void 0,onChange:G,onFocus:e=>{B(!0),W||(e.preventDefault(),setTimeout(()=>{var e;null==(e=V.current)||e.focus()},100)),null==S||S(e)},onBlur:ee,onKeyDown:e=>{"Tab"===e.key&&J(),null==$||$(e)}},ref:Z,inputRef:H,...z,dataQa:(0,m.g)("".concat(I,"-dropdown-input"),!!I)})}),(0,l.jsx)(nr,{contentInnerRef:U,children:(0,l.jsx)(t$,{inputValue:P,mappedOptions:Q,pending:h,optionsEmptyText:N,optionsEmptyDescription:A,handleOptionClick:e=>{var t;if(G(e.label),X(e.original),W){if(j){null==(t=H.current)||t.focus();return}J()}},contentInnerRef:U,withVirtualize:E})})]})})}).displayName="InputAutocomplete";let tI="dd.MM.yyyy",tD=e=>{let[t,n,a]=e.split(".").map(Number),r=((e,t)=>((e<1||e>12)&&console.warn("Месяц должен быть в диапазоне от 1 до 12"),new Date(t,e,0).getDate()))(n,a||1900);return[(t>r?r:t).toString().padStart(2,"0"),n.toString().padStart(2,"0"),a.toString().padStart(4,"0").substring(0,4)].join(".")};(0,i.forwardRef)((e,t)=>{let{value:n=null,autoFocus:a=!1,onChange:r,onKeyDown:s,...o}=e,[c,d]=(0,i.useState)(""),{ref:u,setValue:h}=(0,eF.$o)({mask:Date,autofix:!0,pattern:"d.`m.`Y",validate:()=>{},placeholderChar:" ",prepare:e=>!e||e.length<10||e.includes(" ")?e:tD(e),overwrite:!1,blocks:{d:{mask:eF.g5.MaskedRange,from:1,to:31,maxLength:2},m:{mask:eF.g5.MaskedRange,from:1,to:12,maxLength:2},Y:{mask:eF.g5.MaskedRange,from:1900,to:2099,maxLength:4}}},{onAccept:e=>{if(e.length<10||e.includes(" "))null!==n&&(null==r||r(null,""));else{let t=tD(e),n=(0,ez.A)(t,tI,new Date);if((0,eO.A)(n)){null==r||r(n,t),d(t);return}}d(e)}});return(0,i.useEffect)(()=>{if(n instanceof Date&&(0,eO.A)(n)){let e=(0,eB.A)(n,tI);h(e),d(e)}else"string"==typeof n&&(0,eP.A)(n,"dd.mm.yyyy")&&(h(n),d(n))},[n,h]),(0,i.useImperativeHandle)(t,()=>u.current),(0,l.jsx)(eM,{...o,autoFocus:a,inputRef:u,value:c,inputMode:"numeric",onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),d(""),h(""),null==r||r(null,"")),null==s||s(e)},maskPlaceholder:"дд.мм.гггг"})}).displayName="InputDate";let tM=(0,i.forwardRef)((e,t)=>{let{maskOpts:n,value:a="",autoFocus:r=!1,onChange:s,onKeyDown:o,...c}=e,[d,u]=(0,i.useState)(""),{ref:h,setValue:p,unmaskedValue:m}=(0,eF.$o)(n,{onAccept:(e,t)=>{u(e),null==s||s(t.unmaskedValue,e)}});return(0,i.useEffect)(()=>{a!==m&&(p(a),u(a))},[a,p,m]),(0,i.useImperativeHandle)(t,()=>h.current),(0,l.jsx)(eM,{...c,autoFocus:r,inputRef:h,value:d,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),p(""),u(""),null==s||s("","")),null==o||o(e)}})});tM.displayName="InputMasked";let tF=e=>{let t=(0,i.useRef)();return(0,i.useEffect)(()=>{t.current=JSON.parse(JSON.stringify(e))},[e]),t.current},tz=(e,t,n)=>{let a=Number(((t-e)/n).toFixed(8));return parseInt(a.toString(),10)===a},tO=(e,t,n)=>(e-t)/(n-t),tB=(e,t,n)=>{let a=n?-1:1;e.forEach((e,n)=>tq(e,a*t[n].x,t[n].y))},tP=(e,t,n,a)=>{let r=0,l=tW(e[0],t,n,a);for(let i=1;i<e.length;i++){let s=tW(e[i],t,n,a);s<l&&(l=s,r=i)}return r},tq=(e,t,n)=>{e.style.transform="translate(".concat(t,"px, ").concat(n,"px)")},tZ=e=>{let t,n=null;return function(){for(var a=arguments.length,r=Array(a),l=0;l<a;l++)r[l]=arguments[l];t=r,n||(n=requestAnimationFrame(()=>{n=null,e(...t)}))}},tH=(e,t,n)=>{let a=e.slice(0);return a[t]=n,a},tV=()=>null,tU=()=>{throw Error("Did not expect to get here")},tW=(e,t,n,a)=>{let{left:r,top:l,width:i,height:s}=e.getBoundingClientRect();return a===t2.Up?Math.abs(n-(l+s/2)):Math.abs(t-(r+i/2))},tY=(0,g.g)("range-slider"),tQ=Object.freeze({range:tY,vertical:"".concat(tY,"--vertical"),disabled:"".concat(tY,"--disabled"),track:"".concat(tY,"__track"),thumb:"".concat(tY,"__thumb"),thumbDrag:"".concat(tY,"__thumb--drag"),label:"".concat(tY,"__label"),mark:"".concat(tY,"__mark"),legend:"".concat(tY,"__legend"),legendItem:"".concat(tY,"__legend-item")}),tK=["ArrowRight","ArrowUp","k","PageUp"],tG=["ArrowLeft","ArrowDown","j","PageDown"],tX=e=>{let{props:t,children:n,propValues:a,disabled:r}=e;return(0,l.jsx)("div",{className:(0,p.A)(tQ.range,{[tQ.vertical]:a.direction===t2.Up,[tQ.disabled]:r},t.className),onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,style:{...t.style},"data-id":t.dataId,"data-qa":t.dataQa,children:(0,l.jsx)("div",{ref:t.ref,className:(0,p.A)(tQ.track),style:{background:(e=>{let{values:t,colors:n,min:a,max:r,direction:l=t2.Right}=e,i=t.slice(0).sort((e,t)=>e-t).map(e=>(e-a)/(r-a)*100).reduce((e,t,a)=>"".concat(e,", ").concat(n[a]," ").concat(t,"%, ").concat(n[a+1]," ").concat(t,"%"),"");return"linear-gradient(".concat(l,", ").concat(n[0]," 0%").concat(i,", ").concat(n[n.length-1]," 100%)")})({values:a.values,colors:((e,t,n)=>{let a=["#C2C2C6",...Array(e-1||1).fill(n?"#A5A7AB":"#525BBB"),"#C2C2C6"];return 1===e&&(t?a.pop():a.shift()),a})(a.values.length,!!a.rtl,r),min:a.min||0,max:a.max||100,direction:a.direction||t2.Right,rtl:!!a.rtl})},children:n})})},tJ=e=>{let{props:t,isDragged:n,formattedValue:a}=e,{key:r,...i}=t;return(0,l.jsxs)("div",{...i,style:t.style,className:(0,p.A)(tQ.thumb,t.className,{[tQ.thumbDrag]:n}),children:[(0,l.jsx)("label",{className:(0,p.A)(tQ.label),children:a}),(0,l.jsx)("span",{})]},r)},t0=e=>{let{props:t,index:n,propValues:a}=e,r={width:"2px",height:n%2?"12px":"16px",backgroundColor:n*(a.step||1)+(a.min||0)<a.values[0]?"#525BBB":"#D2D3D5"},i={width:n%2?"12px":"16px",height:"2px",backgroundColor:n*(a.step||1)>(a.max||100)-a.values[0]?"#525BBB":"#D2D3D5"},s=a.direction===t2.Right?r:i,{key:o,...c}=t;return 1===a.values.length&&(0,l.jsx)("div",{...c,className:(0,p.A)(t.className),style:{...t.style,...s}},o)},t1=(0,i.forwardRef)((e,t)=>{let{step:n=1,direction:a=t2.Right,rtl:r=!1,disabled:s=!1,allowOverlap:o=!1,draggableTrack:c=!1,min:d=0,max:u=100,legend:h=[],onChange:m=()=>null,renderTrack:g=tX,renderThumb:f=tJ,renderMark:v=t0,showMarks:x=!1,onFinalChange:b,formatValue:y=e=>String(e),className:w,dataQa:k,dataId:_,...C}=e,j=(0,i.useMemo)(()=>({...C,step:n,direction:a,rtl:r,disabled:s,allowOverlap:o,draggableTrack:c,min:d,max:u,legend:h}),[C,n,a,r,s,o,c,d,u,h]),N=(0,i.useRef)(j);(0,i.useEffect)(()=>{N.current=j},[j]);let A=(0,i.useRef)(null),E=(0,i.useRef)(Array(C.values.length).fill(null)),L=(0,i.useRef)(),R=(0,i.useRef)([]),S=(0,i.useRef)(),T=(0,i.useRef)(),$=tZ(e=>{if(e.preventDefault(),!(1&e.buttons))return D(e);et(e.clientX,e.clientY)}),I=tZ(e=>{e.preventDefault(),et(e.touches[0].clientX,e.touches[0].clientY)}),D=e=>{let{draggedThumbIndex:t,draggedTrackPos:n}=O();if(e.preventDefault(),document.removeEventListener("mousemove",$),document.removeEventListener("touchmove",I),document.removeEventListener("mouseup",M),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M),-1===t&&-1===n[0]&&-1===n[1])return null;z({draggedThumbIndex:-1,draggedTrackPos:[-1,-1]},()=>{en()})},M=tZ(D),[F,z,O]=(e=>{let[t,n]=(0,i.useState)(e),a=(0,i.useRef)([]),r=(0,i.useRef)(t),l=(0,i.useCallback)((e,t)=>{t&&a.current.unshift(t),n(t=>{let n={...t,...e};return r.current=n,n})},[]),s=(0,i.useCallback)(()=>r.current,[]);return(0,i.useEffect)(()=>{a.current[0]&&(a.current[0](t),a.current.shift())},[t]),[t,l,s]})({draggedTrackPos:[-1,-1],draggedThumbIndex:-1,thumbZIndexes:Array(C.values.length).fill(0).map((e,t)=>t),isChanged:!1,markOffsets:[],legendOffsets:[]}),B=e=>{if(!x){S.current=void 0,L.current=void 0;return}S.current=(e.max-e.min)/e.step,L.current=[]},P=e=>{if(!e.legend||!e.legend.length)return},q=()=>{tB(H(),V(),N.current.rtl),U(),W()},Z=e=>{if(N.current.disabled)return;let t=(e=>e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length)(e);if(!t&&0!==e.button)return;let n=K(e);if(-1===n)return;t?G():X();let{thumbZIndexes:a}=O();z({draggedThumbIndex:n,thumbZIndexes:a.map((e,t)=>t===n?Math.max(...a):e<=a[n]?e:e-1)})},H=()=>A.current?Array.from(A.current.children).filter(e=>e.hasAttribute("aria-valuenow")):(console.warn("No thumbs found in the track container. Did you forget to pass & spread the `props` param in renderTrack?"),[]),V=()=>{let e=N.current.values,t=A.current;if(!t)return[];let n=t.getBoundingClientRect(),a=(e=>{let t=window.getComputedStyle(e);return{top:parseInt(t.paddingTop,10)+parseInt(t.borderTopWidth,10),bottom:parseInt(t.paddingBottom,10)+parseInt(t.borderBottomWidth,10),left:parseInt(t.paddingLeft,10)+parseInt(t.borderLeftWidth,10),right:parseInt(t.paddingRight,10)+parseInt(t.borderRightWidth,10)}})(t);return H().map((t,r)=>{let l={x:0,y:0},i=t.getBoundingClientRect(),s=(e=>{let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10),bottom:parseInt(t.marginBottom,10),left:parseInt(t.marginLeft,10),right:parseInt(t.marginRight,10)}})(t);switch(N.current.direction){case t2.Right:return l.x=-((s.left+a.left)*1),l.y=-(((i.height-n.height)/2+a.top)*1),l.x+=n.width*tO(e[r],N.current.min,N.current.max)-i.width/2,l;case t2.Up:return l.x=-(((i.width-n.width)/2+s.left+a.left)*1),l.y=-a.left,l.y+=n.height-n.height*tO(e[r],N.current.min,N.current.max)-i.height/2,l;default:return tU()}})};t&&"function"!=typeof t&&(t.current=A.current),t&&"function"!=typeof t&&t.current&&(t.current.getThumbs=H,t.current.getOffsets=V);let U=()=>{if(!x||!A.current||!S.current||!L.current||null===A.current)return;let e=window.getComputedStyle(A.current),t=parseInt(e.width,10),n=parseInt(e.height,10),a=parseInt(e.paddingLeft,10),r=parseInt(e.paddingTop,10),l=[];for(let e=0;e<S.current+1;e++){let i=9999,s=9999;if(L.current[e]){let t=L.current[e].getBoundingClientRect();i=t.height,s=t.width}N.current.direction===t2.Right?l.push([Math.round(t/S.current*e+a-s/2),-Math.round((i-n)/2)]):l.push([Math.round(n/S.current*e+r-i/2),-Math.round((s-t)/2)])}z({markOffsets:l})},W=()=>{var e;if(!N.current.legend||!N.current.legend.length||!A.current||!R.current||N.current.rtl||a!==t2.Right)return;let t=window.getComputedStyle(A.current),n=parseInt(t.width,10),r=parseInt(t.paddingLeft,10),l=n/((N.current.max-N.current.min)/N.current.step),i=[];for(let t=0;t<N.current.legend.length;t++){let a=9999,s=9999;if(R.current[t]){let n=null==(e=R.current[t])?void 0:e.getBoundingClientRect();a=(null==n?void 0:n.height)||a,s=(null==n?void 0:n.width)||s}let o=N.current.legend[t],c=Math.round(((t4(o)?o.value:o)-N.current.min)/N.current.step*l+r-s/2);i.push([Math.min(Math.max(c,0),n-s),Math.round(a/5)])}z({legendOffsets:i})};(0,i.useEffect)(()=>{var e;B(N.current),P(N.current),T.current=window.ResizeObserver?new window.ResizeObserver(q):{observe:()=>window.addEventListener("resize",q),unobserve:()=>window.removeEventListener("resize",q)},document.addEventListener("touchstart",Z,{passive:!1}),document.addEventListener("mousedown",Z,{passive:!1}),o||(e=>{if(!(e.length<2)&&!e.slice(1).every((t,n)=>e[n]<=t))throw RangeError("values={[".concat(e,"]} needs to be sorted when allowOverlap={false}"))})(C.values),C.values.forEach(e=>((e,t,n)=>{if(t>=n)throw RangeError("min (".concat(t,") is equal/bigger than max (").concat(n,")"));if(e<t)throw RangeError("value (".concat(e,") is smaller than min (").concat(t,")"));if(e>n)throw RangeError("value (".concat(e,") is bigger than max (").concat(n,")"))})(e,d,u));let t=A.current;return t&&(null==(e=T.current)||e.observe(t)),tB(H(),V(),r),U(),W(),C.values.forEach(e=>{tz(d,e,n)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}),()=>{var e;document.removeEventListener("mousedown",Z,{passive:!1}),document.removeEventListener("mousemove",$),document.removeEventListener("touchmove",I),document.removeEventListener("touchstart",Z),document.removeEventListener("mouseup",M),document.removeEventListener("touchend",M),t&&(null==(e=T.current)||e.unobserve(t))}},[j.min,j.max]);let Y=tF(j),Q=tF(F);(0,i.useEffect)(()=>{((null==Y?void 0:Y.max)!==u||(null==Y?void 0:Y.min)!==d||(null==Y?void 0:Y.step)!==n||JSON.stringify(null==Y?void 0:Y.legend)!==JSON.stringify(h))&&(B(N.current),P(N.current)),tB(H(),V(),r),((null==Y?void 0:Y.max)!==u||(null==Y?void 0:Y.min)!==d||(null==Y?void 0:Y.step)!==n||JSON.stringify(null==Y?void 0:Y.legend)!==JSON.stringify(h)||(null==Q?void 0:Q.markOffsets.length)!==F.markOffsets.length||(null==Q?void 0:Q.legendOffsets.length)!==F.legendOffsets.length)&&(U(),W(),C.values.forEach(e=>{tz(d,e,n)||console.warn("The `values` property is in conflict with the current `step`, `min`, and `max` properties. Please provide values that are accessible using the min, max, and step values.")}))},[j,F]);let K=e=>H().findIndex(t=>t===e.target||t.contains(e.target)),G=()=>{document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",M,{passive:!1}),document.addEventListener("touchcancel",M,{passive:!1})},X=()=>{document.addEventListener("mousemove",$),document.addEventListener("mouseup",M)},J=(e,t)=>((e,t,n,a,r,l,i)=>{if(e=Math.round(1e11*e)/1e11,!l){let n=i[t-1],a=i[t+1];if(n&&n>e)return n;if(a&&a<e)return a}if(e>a)return a;if(e<n)return n;let s=Math.floor(1e11*e-1e11*n)%Math.floor(1e11*r),o=Math.floor(1e11*e-Math.abs(s)),c=0===s?e:o/1e11,d=Math.abs(s/1e11)<r/2?c:c+r,u=(e=>{let t=e.toString().split(".")[1];return t?t.length:0})(r);return parseFloat(d.toFixed(u))})(e,t,N.current.min,N.current.max,N.current.step,N.current.allowOverlap,N.current.values),ee=e=>{JSON.stringify(e)!==JSON.stringify(N.current.values)&&(N.current.values=e,m(e))},et=(e,t)=>{let{draggedThumbIndex:n,draggedTrackPos:a}=O(),r=N.current.values;if(-1===n&&-1===a[0]&&-1===a[1])return null;let l=A.current;if(!l)return null;let i=l.getBoundingClientRect(),s=N.current.direction===t2.Up?i.height:i.width;if(-1!==a[0]&&-1!==a[1]){let n=e-a[0],l=t-a[1],i=0;switch(N.current.direction){case t2.Right:i=n/s*(N.current.max-N.current.min);break;case t2.Up:i=l/s*(N.current.max-N.current.min);break;default:tU()}if(N.current.rtl&&(i*=-1),Math.abs(i)>=N.current.step/2){for(let e=0;e<E.current.length;e++){if(r[e]===N.current.max&&1===Math.sign(i)||r[e]===N.current.min&&-1===Math.sign(i))return;let t=r[e]+i;t>N.current.max?i=N.current.max-r[e]:t<N.current.min&&(i=N.current.min-r[e])}let n=r.slice(0);for(let e=0;e<E.current.length;e++)n=tH(n,e,J(r[e]+i,e));z({draggedTrackPos:[e,t]}),ee(n)}}else{let a=0;switch(N.current.direction){case t2.Right:a=(e-i.left)/s*(N.current.max-N.current.min)+N.current.min;break;case t2.Up:a=(s-(t-i.top))/s*(N.current.max-N.current.min)+N.current.min;break;default:tU()}N.current.rtl&&(a=N.current.max+N.current.min-a),Math.abs(r[n]-a)>=N.current.step/2&&ee(tH(r,n,J(a,n)))}},en=()=>{z({isChanged:!1});let e=N.current.values;b&&b(e)},ea=e=>{let t=N.current.values,{isChanged:n}=O(),a=K(e.nativeEvent),r=N.current.rtl?-1:1;-1!==a&&(tK.includes(e.key)?(e.preventDefault(),z({draggedThumbIndex:a,isChanged:!0}),ee(tH(t,a,J(t[a]+r*("PageUp"===e.key?10*N.current.step:N.current.step),a)))):tG.includes(e.key)?(e.preventDefault(),z({draggedThumbIndex:a,isChanged:!0}),ee(tH(t,a,J(t[a]-r*("PageDown"===e.key?10*N.current.step:N.current.step),a)))):"Tab"===e.key?z({draggedThumbIndex:-1},()=>{n&&en()}):n&&en())},er=()=>{let{isChanged:e}=O();z({draggedThumbIndex:-1},()=>{e&&en()})};return(0,l.jsxs)(l.Fragment,{children:[g({props:{style:{cursor:F.draggedThumbIndex>-1?"grabbing":c?a===t2.Up?"ns-resize":"ew-resize":1!==C.values.length||s?"inherit":"pointer"},onMouseDown:s?tV:e=>{var t;if(0!==e.button)return;let n=N.current.values;if(e.persist(),e.preventDefault(),X(),n.length>1&&N.current.draggableTrack){if(E.current.some(t=>null==t?void 0:t.contains(e.target)))return;z({draggedTrackPos:[e.clientX,e.clientY]},()=>et(e.clientX,e.clientY))}else{let n=tP(E.current.map(e=>e),e.clientX,e.clientY,N.current.direction);null==(t=E.current[n])||t.focus(),z({draggedThumbIndex:n},()=>et(e.clientX,e.clientY))}},onTouchStart:s?tV:e=>{var t;let n=N.current.values;if(e.persist(),G(),n.length>1&&N.current.draggableTrack){if(E.current.some(t=>null==t?void 0:t.contains(e.target)))return;z({draggedTrackPos:[e.touches[0].clientX,e.touches[0].clientY]},()=>et(e.touches[0].clientX,e.touches[0].clientY))}else{let n=tP(E.current.map(e=>e),e.touches[0].clientX,e.touches[0].clientY,N.current.direction);null==(t=E.current[n])||t.focus(),z({draggedThumbIndex:n},()=>et(e.touches[0].clientX,e.touches[0].clientY))}},ref:e=>{A.current=e},className:(0,p.A)(w),dataQa:k,dataId:_},isDragged:F.draggedThumbIndex>-1,disabled:s,children:[...F.markOffsets.map((e,t)=>{let n={left:"".concat(e[0],"px"),marginTop:"".concat(e[1],"px")},r={top:"".concat(e[0],"px"),marginLeft:"".concat(e[1],"px")};return v({props:{style:a===t2.Right?n:r,key:"mark".concat(t),ref:e=>{e&&L.current&&(L.current[t]=e)},className:tQ.mark},index:t,propValues:j})}),...C.values.map((e,t)=>{let n=F.draggedThumbIndex===t;return f({index:t,value:e,formattedValue:y(e),isDragged:n,props:{style:{zIndex:F.thumbZIndexes[t],cursor:s?"inherit":n?"grabbing":"grab"},key:t,tabIndex:s?void 0:0,"aria-valuemax":o?u:C.values[t+1]||u,"aria-valuemin":o?d:C.values[t-1]||d,"aria-valuenow":e,draggable:!1,ref:e=>{e&&(E.current[t]=e)},role:"slider",onKeyDown:s?tV:ea,onKeyUp:s?tV:er,className:tQ.thumb}})})],propValues:j}),j.direction===t2.Right&&(0,l.jsx)("div",{className:tQ.legend,children:h.map((e,t)=>{var n,a;let r;return r=t4(e)?e.value:e,(0,l.jsx)("button",{type:"button",ref:e=>{Array.isArray(R.current)&&(R.current[t]=e)},className:(0,p.A)(tQ.legendItem),style:{left:"".concat(null==(n=F.legendOffsets[t])?void 0:n[0],"px"),marginTop:"".concat(null==(a=F.legendOffsets[t])?void 0:a[1],"px")},tabIndex:s?-1:0,onClick:s?void 0:()=>(e=>{let{values:t}=N.current,n=t.reduce((n,a,r)=>{let l=Math.abs(t[n]-e);return Math.abs(a-e)<=l?r:n},0);ee(t.map((t,a)=>a===n?e:t))})(r),children:t4(e)?e.label:y(r)},"legend".concat(t))})})]})});t1.displayName="RangeSlider";var t2=(e=>(e.Right="to right",e.Up="to top",e))(t2||{});let t4=e=>"object"==typeof e,t3=(0,g.g)("input-range"),t5={inputRange:t3,input:"".concat(t3,"__input"),slider:"".concat(t3,"__slider")};(0,i.forwardRef)((e,t)=>{let{value:n,step:a=1,min:r=0,max:s=100,disabled:o,ticks:c=[],className:d,inputClassname:u,sliderClassname:h,size:m="m",decimals:g="auto",decimalsCount:f=2,tooltip:v=e=>e,dataId:x,dataQa:b,autoFocus:y=!1,style:w,onChange:k,onBlur:_,...C}=e,j=(0,i.useMemo)(()=>"number"!=typeof n||n<r?r:n>s?s:n,[n,r,s]),[N,A]=(0,tb.u)(j||r,n),[E,L]=(0,i.useState)(j?[j]:[r]),R=(0,i.useRef)(null),S=(0,i.useRef)(null);(0,i.useImperativeHandle)(t,()=>({inputRef:R.current,sliderRef:S.current}),[S,R]);let T=(0,i.useCallback)(e=>(A(e),!e||e<r)?void L([r]):e>s?void L([s]):void(L([e]),null==k||k(e)),[s,r,k,A]);(0,i.useEffect)(()=>{"number"==typeof n&&T(n)},[n]);let $=(0,i.useCallback)(e=>{N||(L([r]),A(r),null==k||k(r)),null==_||_(e)},[N,r,_,A,k]),I=(0,i.useCallback)(e=>{var t;A(e[0]),L(e),null==(t=null==R?void 0:R.current)||t.focus(),null==k||k(e[0])},[k,A]),D=(0,i.useCallback)(()=>{var e;null==(e=null==R?void 0:R.current)||e.blur()},[]);return(0,l.jsxs)("div",{className:(0,p.A)(d,t5.inputRange),style:w,"data-qa":b,"data-id":x,children:[(0,l.jsx)(e3,{...C,autoFocus:y,value:N,withoutControls:!0,min:r,max:s,disabled:o,step:a,ref:R,className:(0,p.A)(u,t5.input),size:m,decimals:g,decimalsCount:f,onChange:T,onBlur:$}),(0,l.jsx)(t1,{values:E,min:r,max:s,legend:c,step:Math.abs(a),disabled:o,ref:S,className:(0,p.A)(h,t5.slider),formatValue:v,onChange:I,onFinalChange:D})]})}).displayName="InputRange",(0,i.forwardRef)((e,t)=>{let{value:n="",autoFocus:a=!1,onChange:r,onKeyDown:s,dataQa:o,dataId:c,...d}=e,[u,h]=(0,i.useState)(""),{ref:p,unmaskedValue:m,setValue:g}=(0,eF.$o)({mask:"+{7} (000) 000-00-00"},{onAccept:(e,t)=>{h(e),null==r||r(t.unmaskedValue,e)}});return(0,i.useEffect)(()=>{n!==m&&g(n)},[n,g,m]),(0,i.useImperativeHandle)(t,()=>p.current),(0,l.jsx)(eM,{...d,autoFocus:a,dataQa:o,dataId:c,inputRef:p,value:u,maskPlaceholder:"+7 (000) 000-00-00",onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),g(""),h(""),null==r||r("","")),null==s||s(e)}})}).displayName="InputTel";let t7=(0,g.g)("modal"),t6=Object.freeze({modal:t7,overlay:"".concat(t7,"__overlay"),withoutFooter:"".concat(t7,"--without-footer"),noContent:"".concat(t7,"--no-content"),open:"".concat(t7,"--open"),overlayOpen:"".concat(t7,"__overlay--open"),height:{medium:"".concat(t7,"--height-medium"),full:"".concat(t7,"--height-full")},size:{s:"".concat(t7,"--s"),m:"".concat(t7,"--m"),l:"".concat(t7,"--l"),xl:"".concat(t7,"--xl")},header:"".concat(t7,"__header"),headerText:"".concat(t7,"__header-text"),headerTitle:"".concat(t7,"__header-title"),headerSubtitle:"".concat(t7,"__header-subtitle"),closeIcon:"".concat(t7,"__close-icon"),backButton:"".concat(t7,"__back-button"),backButtonText:"".concat(t7,"__back-button-text"),headerStates:{centered:"".concat(t7,"__header--centered"),withLongBtn:"".concat(t7,"__header--with-long-btn"),defaultHeight:"".concat(t7,"__header--default-height")},content:"".concat(t7,"__content"),withoutPadding:"".concat(t7,"__content--without-padding"),withScroll:"".concat(t7,"__content--with-scroll"),footer:"".concat(t7,"__footer"),footerContainer:"".concat(t7,"__footer-container"),footerBtn:"".concat(t7,"__footer-btn"),footerDescription:"".concat(t7,"__footer-description"),divider:"".concat(t7,"__divider"),dividerTop:"".concat(t7,"__divider--top"),dividerBottom:"".concat(t7,"__divider--bottom")}),t8=e=>{let{primaryBtnText:t,onPrimary:n,secondaryBtnText:a,onSecondary:r,thirdBtnText:i,onThird:s,description:o,children:c,noContent:d,dataQa:u}=e;return(0,l.jsxs)("div",{"data-qa":(0,m.g)("".concat(u,"-footer"),!!u),className:(0,p.A)(t6.footer,{[t6.noContent]:d}),children:[!d&&(0,l.jsx)("div",{className:(0,p.A)(t6.divider,t6.dividerTop)}),c||(0,l.jsxs)("div",{className:t6.footerContainer,children:[i&&(0,l.jsx)(C.B,{dataQa:(0,m.g)("".concat(u,"-footer-third-btn"),!!u),label:i,variant:"secondary",size:"s",className:t6.footerBtn,onClick:s}),a&&(0,l.jsx)(C.B,{dataQa:(0,m.g)("".concat(u,"-footer-secondary-btn"),!!u),label:a,variant:"secondary",size:"s",className:t6.footerBtn,onClick:r}),t&&(0,l.jsx)(C.B,{dataQa:(0,m.g)("".concat(u,"-footer-primary-btn"),!!u),label:t,size:"s",className:t6.footerBtn,onClick:n})]}),o&&(0,l.jsx)("span",{"data-qa":(0,m.g)("".concat(u,"-footer-description"),!!u),className:t6.footerDescription,children:o})]})},t9=e=>{let{text:t,title:n,subtitle:a,align:r="left",backBtnVariant:i,onBack:s,onClose:o,noContent:c,dataQa:d,withoutCloseBtn:u=!1}=e;return(0,l.jsxs)("div",{"data-qa":(0,m.g)("".concat(d,"-header"),!!d),className:(0,p.A)(t6.header,{[t6.headerStates.centered]:"center"===r||!!i,[t6.headerStates.withLongBtn]:"long"===i,[t6.headerStates.defaultHeight]:!t&&!n&&!a}),children:[t&&(0,l.jsx)("span",{"data-qa":(0,m.g)("".concat(d,"-header-text"),!!d),className:t6.headerText,children:t}),n&&(0,l.jsx)("span",{"data-qa":(0,m.g)("".concat(d,"-header-title"),!!d),className:t6.headerTitle,children:n}),a&&(0,l.jsx)("span",{"data-qa":(0,m.g)("".concat(d,"-header-subtitle"),!!d),className:t6.headerSubtitle,children:a}),!u&&(0,l.jsx)("button",{"data-qa":(0,m.g)("".concat(d,"-header-close"),!!d),type:"button",className:t6.closeIcon,onClick:o,children:(0,l.jsx)(L.P,{children:(0,l.jsx)(M,{})})}),i&&(0,l.jsxs)("button",{"data-qa":(0,m.g)("".concat(d,"-header-back"),!!d),type:"button",className:t6.backButton,onClick:s,children:[(0,l.jsx)(L.P,{children:(0,l.jsx)(W.S,{})}),"long"===i&&(0,l.jsx)("span",{className:t6.backButtonText,children:"Назад"})]}),!c&&(0,l.jsx)("div",{className:(0,p.A)(t6.divider,t6.dividerBottom)})]})},ne=(0,i.forwardRef)((e,t)=>{let{header:n,footer:a,open:r=!1,size:s="m",noPadding:o=!1,height:c="full",onClose:u,children:h,className:g,style:f,dataQa:v,dataId:x,dismissDisabled:b=!1,...y}=e,[w,k]=(0,i.useState)(!1),[_,C]=(0,i.useState)(!1),j=(0,i.useRef)(null);(0,i.useEffect)(()=>()=>{j.current&&cancelAnimationFrame(j.current)},[]),(0,i.useEffect)(()=>{if(j.current&&cancelAnimationFrame(j.current),r)return k(!0),j.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(!0)})}),()=>{j.current&&cancelAnimationFrame(j.current)};{C(!1);let e=setTimeout(()=>{k(!1)},300);return()=>{clearTimeout(e),j.current&&cancelAnimationFrame(j.current)}}},[r]);let N=()=>{C(!1);let e=setTimeout(()=>{null==u||u(),k(!1)},300);return()=>clearTimeout(e)},{context:A}=(0,d.we)({open:w,onOpenChange:e=>{e||N()}}),E=(0,d.s9)(A,{outsidePressEvent:"mousedown",outsidePress:!b,escapeKey:!b}),L=(0,d.It)(A,{role:"dialog"}),{getFloatingProps:R}=(0,d.bv)([E,L]),[S,T]=(0,i.useState)(!1),$=(0,i.useCallback)(e=>{e&&new ResizeObserver(()=>{T(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return w?(0,l.jsx)(d.XF,{id:"finkit-modals",children:(0,l.jsx)(d.zR,{lockScroll:!0,className:(0,p.A)(t6.overlay,{[t6.overlayOpen]:_}),children:(0,l.jsx)(d.s3,{context:A,children:(0,l.jsxs)("div",{ref:t,className:(0,p.A)(t6.modal,t6.size[s],t6.height[c],{[t6.withoutFooter]:!(null==a?void 0:a.primaryBtnText)&&!(null==a?void 0:a.children),[t6.open]:_},g),style:f,...R(),...y,"data-id":x,"data-qa":v,children:[(0,l.jsx)(t9,{...n,dataQa:v,noContent:!h,onClose:N}),h&&(0,l.jsx)("div",{"data-qa":(0,m.g)("".concat(v,"-content"),!!v),ref:$,className:(0,p.A)(t6.content,{[t6.withoutFooter]:!(null==a?void 0:a.primaryBtnText)&&!(null==a?void 0:a.children),[t6.withoutPadding]:o,[t6.withScroll]:S}),children:h}),((null==a?void 0:a.primaryBtnText)||(null==a?void 0:a.children))&&(0,l.jsx)(t8,{...a,dataQa:v,noContent:!h})]})})})}):null});ne.displayName="Modal";(0,g.g)("select");let nt=e=>{let{children:t,...n}=e,a=function(){let{placement:e="bottom",width:t="auto",desktopMaxHeight:n,mobileFullHeight:a=!1,title:r,description:l,opened:s,onToggle:o,heading:c,footer:p,dataQa:m,dataId:g}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[f,v]=(0,i.useState)(!1),x=null!=s?s:f,b=null!=o?o:v,y=(0,d.we)({open:x,onOpenChange:b,placement:e,whileElementsMounted:u.ll,middleware:[(0,h.cY)(8),(0,h.UU)({fallbackAxisSideDirection:"none"}),(0,h.BN)({crossAxis:!1,padding:8})]});return(0,i.useMemo)(()=>({open:x,setOpen:b,...y,width:t,desktopMaxHeight:n,title:r,description:l,heading:c,footer:p,mobileFullHeight:a,dataQa:m,dataId:g}),[x,b,y,t,n,r,l,c,p,a,m,g])}(n);return(0,l.jsx)(nl.Provider,{value:a,children:t})};nt.displayName="Dropdown";let nn=(0,g.g)("dropdown"),na=Object.freeze({dropdown:nn,overlay:"".concat(nn,"__overlay"),mobileHeading:"".concat(nn,"__mobile-heading"),heading:"".concat(nn,"__heading"),title:"".concat(nn,"__title"),description:"".concat(nn,"__description"),content:"".concat(nn,"__content"),contentInner:"".concat(nn,"__content-inner"),footer:"".concat(nn,"__footer"),close:"".concat(nn,"__close"),closeIcon:"".concat(nn,"__close-icon"),states:{auto:"".concat(nn,"--auto"),fullHeight:"".concat(nn,"--full-height")}}),nr=(0,i.forwardRef)((e,t)=>{var n,a;let{style:r,contentInnerRef:s,...o}=e,{open:c,context:u,width:h,floatingStyles:g,refs:f,heading:v,title:x,description:b,footer:y,desktopMaxHeight:w,mobileFullHeight:k,dataQa:_,dataId:C,setOpen:j}=ni(),N=(0,d.SV)([f.setFloating,t]),A=(0,i.useRef)(null),E=t_("s"),{isMounted:L,styles:R}=(0,d.DL)(u,{initial:{opacity:.2,transform:E?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,i.useEffect)(()=>{let e=e=>{let{target:t}=e;c&&([A.current,f.reference.current].some(e=>e===t||e&&e.contains(t))||j(!1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[c,f.reference,j]),!L)return null;let S=(0,l.jsxs)("div",{ref:A,className:(0,p.A)(na.dropdown,{[na.states.fullHeight]:k}),role:E?"popup":"dialog","aria-modal":!E,"data-id":C,"data-qa":_,style:R,children:[(0,l.jsx)(no,{title:x,description:b,heading:v,isDesktop:E,setOpen:j,"data-qa":(0,m.g)("".concat(_,"-header"),!!_)}),(0,l.jsx)("div",{...o,className:na.content,"data-qa":(0,m.g)("".concat(_,"-content"),!!_),children:(0,l.jsx)("div",{className:na.contentInner,style:{maxHeight:E?w:void 0},ref:s,children:o.children})}),(0,l.jsx)(ns,{"data-qa":(0,m.g)("".concat(_,"-header"),!!_),footer:y})]});if(E){let e;return"inherit"===h?e=null==(a=null==(n=null==f?void 0:f.reference)?void 0:n.current)?void 0:a.clientWidth:"auto"===h?e=void 0:"number"==typeof h&&(e=h),(0,l.jsx)("div",{className:(0,p.A)(na.overlay,{[na.states.auto]:"auto"===h}),style:{...r,...g,...void 0!==e&&{width:e}},ref:N,children:S})}return(0,l.jsx)(d.XF,{id:"finkit-dropdown",children:(0,l.jsx)(d.zR,{lockScroll:!0,className:(0,p.A)(na.overlay,{[na.states.auto]:"auto"===h}),style:r,ref:N,children:S})})});nr.displayName="DropdownContent";let nl=(0,i.createContext)(null),ni=()=>{let e=(0,i.useContext)(nl);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e},ns=e=>{let{footer:t,...n}=e;return t?(0,l.jsx)("div",{...n,className:na.footer,children:t}):null};ns.displayName="DropdownFooter";let no=e=>{let{title:t,description:n,heading:a,isDesktop:r,setOpen:s,...o}=e,c=(0,i.useMemo)(()=>a||(r&&(t||n)?(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)("div",{className:na.title,children:t}),n&&(0,l.jsx)("div",{className:na.description,children:n})]}):null),[n,a,r,t]);return(0,l.jsxs)(l.Fragment,{children:[!r&&(0,l.jsxs)("div",{...o,className:na.mobileHeading,children:[t&&(0,l.jsx)("div",{className:na.title,children:t}),n&&(0,l.jsx)("div",{className:na.description,children:n}),(0,l.jsx)("button",{className:na.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>s(!1),children:(0,l.jsx)(L.P,{"aria-hidden":"true",className:na.closeIcon,style:{display:"inline-flex"},children:(0,l.jsx)(M,{})})})]}),c&&(0,l.jsx)("div",{...o,className:na.heading,children:c})]})};no.displayName="DropdownHeader";let nc=(0,i.forwardRef)(function(e,t){let{children:n,asChild:a=!1,disabled:r,...s}=e,{refs:o,open:c,setOpen:u}=ni(),h=n.ref,p=(0,d.SV)([o.setReference,t,h]),m=(0,i.useCallback)(()=>{r||u(!c)},[r,c,u]);return a&&(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{ref:p,disabled:r,onClick:m,...s,...n.props}):(0,l.jsx)("button",{ref:p,onClick:m,disabled:r,...s,type:"button",children:n})});function nd(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}nc.displayName="DropdownTrigger";let nu=nd(),nh=/[&<>"']/,np=RegExp(nh.source,"g"),nm=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ng=RegExp(nm.source,"g"),nf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},nv=e=>nf[e];function nx(e,t){if(t){if(nh.test(e))return e.replace(np,nv)}else if(nm.test(e))return e.replace(ng,nv);return e}let nb=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,ny=/(^|[^\[])\^/g;function nw(e,t){let n="string"==typeof e?e:e.source;t=t||"";let a={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(ny,"$1"),n=n.replace(e,r),a},getRegex:()=>new RegExp(n,t)};return a}function nk(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}let n_={exec:()=>null};function nC(e,t){let n=e.replace(/\|/g,(e,t,n)=>{let a=!1,r=t;for(;--r>=0&&"\\"===n[r];)a=!a;return a?"|":" |"}).split(/ \|/),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function nj(e,t,n){let a=e.length;if(0===a)return"";let r=0;for(;r<a;){let l=e.charAt(a-r-1);if(l!==t||n)if(l!==t&&n)r++;else break;else r++}return e.slice(0,a-r)}function nN(e,t,n,a){let r=t.href,l=t.title?nx(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){a.state.inLink=!0;let e={type:"link",raw:n,href:r,title:l,text:i,tokens:a.inlineTokens(i)};return a.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:l,text:nx(i)}}class nA{options;rules;lexer;constructor(e){this.options=e||nu}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:nj(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t){let n=e.match(/^(\s+)(?:```)/);if(null===n)return t;let a=n[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[n]=t;return n.length>=a.length?e.slice(a.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=nj(e,"#");this.options.pedantic?e=t.trim():(!t||/ $/.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=t[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n    $1");e=nj(e.replace(/^ *>[ \t]?/gm,""),"\n");let n=this.lexer.state.top;this.lexer.state.top=!0;let a=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:a,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,r={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let l=RegExp(`^( {0,3}${n})((?:[	 ][^\\n]*)?(?:\\n|$))`),i="",s="",o=!1;for(;e;){let n,a=!1;if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;i=t[0],e=e.substring(i.length);let c=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),d=e.split("\n",1)[0],u=0;this.options.pedantic?(u=2,s=c.trimStart()):(u=(u=t[2].search(/[^ ]/))>4?1:u,s=c.slice(u),u+=t[1].length);let h=!1;if(!c&&/^ *$/.test(d)&&(i+=d+"\n",e=e.substring(d.length+1),a=!0),!a){let t=RegExp(`^ {0,${Math.min(3,u-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),n=RegExp(`^ {0,${Math.min(3,u-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),a=RegExp(`^ {0,${Math.min(3,u-1)}}(?:\`\`\`|~~~)`),r=RegExp(`^ {0,${Math.min(3,u-1)}}#`);for(;e;){let l=e.split("\n",1)[0];if(d=l,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),a.test(d)||r.test(d)||t.test(d)||n.test(e))break;if(d.search(/[^ ]/)>=u||!d.trim())s+="\n"+d.slice(u);else{if(h||c.search(/[^ ]/)>=4||a.test(c)||r.test(c)||n.test(c))break;s+="\n"+d}h||d.trim()||(h=!0),i+=l+"\n",e=e.substring(l.length+1),c=d.slice(u)}}!r.loose&&(o?r.loose=!0:/\n *\n *$/.test(i)&&(o=!0));let p=null;this.options.gfm&&(p=/^\[[ xX]\] /.exec(s))&&(n="[ ] "!==p[0],s=s.replace(/^\[[ xX]\] +/,"")),r.items.push({type:"list_item",raw:i,task:!!p,checked:n,loose:!1,text:s,tokens:[]}),r.raw+=i}r.items[r.items.length-1].raw=i.trimEnd(),r.items[r.items.length-1].text=s.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e<r.items.length;e++)if(this.lexer.state.top=!1,r.items[e].tokens=this.lexer.blockTokens(r.items[e].text,[]),!r.loose){let t=r.items[e].tokens.filter(e=>"space"===e.type);r.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(r.loose)for(let e=0;e<r.items.length;e++)r.items[e].loose=!0;return r}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let n=nC(t[1]),a=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],l={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(let e of a)/^ *-+: *$/.test(e)?l.align.push("right"):/^ *:-+: *$/.test(e)?l.align.push("center"):/^ *:-+ *$/.test(e)?l.align.push("left"):l.align.push(null);for(let e of n)l.header.push({text:e,tokens:this.lexer.inline(e)});for(let e of r)l.rows.push(nC(e,l.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return l}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:nx(t[1])}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let t=nj(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let a=0;a<e.length;a++)if("\\"===e[a])a++;else if("("===e[a])n++;else if(e[a]===t[1]&&--n<0)return a;return -1}(t[2],"()");if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],a="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),nN(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:a?a.replace(this.rules.inline.anyPunctuation,"$1"):a},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return nN(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!(!a||a[3]&&n.match(/[\p{L}\p{N}]/u))&&(!(a[1]||a[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...a[0]].length-1,r,l,i=n,s=0,o="*"===a[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(a=o.exec(t));){if(!(r=a[1]||a[2]||a[3]||a[4]||a[5]||a[6]))continue;if(l=[...r].length,a[3]||a[4]){i+=l;continue}if((a[5]||a[6])&&n%3&&!((n+l)%3)){s+=l;continue}if((i-=l)>0)continue;l=Math.min(l,l+i+s);let t=[...a[0]][0].length,o=e.slice(0,n+a.index+t+l);if(Math.min(n,l)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),n=/[^ ]/.test(e),a=/^ /.test(e)&&/ $/.test(e);return n&&a&&(e=e.substring(1,e.length-1)),e=nx(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=nx(t[1])):e=nx(t[1]),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=nx(t[0]));else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);e=nx(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:nx(t[0]),{type:"text",raw:t[0],text:e}}}}let nE=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nL=/(?:[*+-]|\d{1,9}[.)])/,nR=nw(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,nL).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),nS=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nT=/(?!\s*\])(?:\\.|[^\[\]\\])+/,n$=nw(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",nT).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nI=nw(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,nL).getRegex(),nD="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",nM=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nF=nw("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",nM).replace("tag",nD).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),nz=nw(nS).replace("hr",nE).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nD).getRegex(),nO={blockquote:nw(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",nz).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:n$,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:nE,html:nF,lheading:nR,list:nI,newline:/^(?: *(?:\n|$))+/,paragraph:nz,table:n_,text:/^[^\n]+/},nB=nw("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",nE).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nD).getRegex(),nP={...nO,table:nB,paragraph:nw(nS).replace("hr",nE).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",nB).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nD).getRegex()},nq={...nO,html:nw("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",nM).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:n_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:nw(nS).replace("hr",nE).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nR).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nZ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,nH=/^( {2,}|\\)\n(?!\s*$)/,nV="\\p{P}\\p{S}",nU=nw(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,nV).getRegex(),nW=nw(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,nV).getRegex(),nY=nw("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,nV).getRegex(),nQ=nw("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,nV).getRegex(),nK=nw(/\\([punct])/,"gu").replace(/punct/g,nV).getRegex(),nG=nw(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nX=nw(nM).replace("(?:--\x3e|$)","--\x3e").getRegex(),nJ=nw("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nX).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),n0=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,n1=nw(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",n0).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),n2=nw(/^!?\[(label)\]\[(ref)\]/).replace("label",n0).replace("ref",nT).getRegex(),n4=nw(/^!?\[(ref)\](?:\[\])?/).replace("ref",nT).getRegex(),n3=nw("reflink|nolink(?!\\()","g").replace("reflink",n2).replace("nolink",n4).getRegex(),n5={_backpedal:n_,anyPunctuation:nK,autolink:nG,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:nH,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:n_,emStrongLDelim:nW,emStrongRDelimAst:nY,emStrongRDelimUnd:nQ,escape:nZ,link:n1,nolink:n4,punctuation:nU,reflink:n2,reflinkSearch:n3,tag:nJ,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:n_},n7={...n5,link:nw(/^!?\[(label)\]\((.*?)\)/).replace("label",n0).getRegex(),reflink:nw(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n0).getRegex()},n6={...n5,escape:nw(nZ).replace("])","~|])").getRegex(),url:nw(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},n8={...n6,br:nw(nH).replace("{2,}","*").getRegex(),text:nw(n6.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},n9={normal:nO,gfm:nP,pedantic:nq},ae={normal:n5,gfm:n6,breaks:n8,pedantic:n7};class at{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||nu,this.options.tokenizer=this.options.tokenizer||new nA,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={block:n9.normal,inline:ae.normal};this.options.pedantic?(t.block=n9.pedantic,t.inline=ae.pedantic):this.options.gfm&&(t.block=n9.gfm,this.options.breaks?t.inline=ae.breaks:t.inline=ae.gfm),this.tokenizer.rules=t}static get rules(){return{block:n9,inline:ae}}static lex(e,t){return new at(t).lex(e)}static lexInline(e,t){return new at(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){let n,a,r,l;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,n)=>t+"    ".repeat(n.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(n=a.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),(a=t[t.length-1])&&("paragraph"===a.type||"text"===a.type)?(a.raw+="\n"+n.raw,a.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=a.text):t.push(n);continue}if((n=this.tokenizer.fences(e))||(n=this.tokenizer.heading(e))||(n=this.tokenizer.hr(e))||(n=this.tokenizer.blockquote(e))||(n=this.tokenizer.list(e))||(n=this.tokenizer.html(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),(a=t[t.length-1])&&("paragraph"===a.type||"text"===a.type)?(a.raw+="\n"+n.raw,a.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=a.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if((n=this.tokenizer.table(e))||(n=this.tokenizer.lheading(e))){e=e.substring(n.raw.length),t.push(n);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t,n=1/0,a=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},a))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r))){a=t[t.length-1],l&&"paragraph"===a.type?(a.raw+="\n"+n.raw,a.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):t.push(n),l=r.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),(a=t[t.length-1])&&"text"===a.type?(a.raw+="\n"+n.raw,a.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=a.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,a,r,l,i,s,o=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(i||(s=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(a=>!!(n=a.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length),(a=t[t.length-1])&&"text"===n.type&&"text"===a.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length),(a=t[t.length-1])&&"text"===n.type&&"text"===a.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,o,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let t,n=1/0,a=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},a))&&t>=0&&(n=Math.min(n,t))}),n<1/0&&n>=0&&(r=e.substring(0,n+1))}if(n=this.tokenizer.inlineText(r)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),i=!0,(a=t[t.length-1])&&"text"===a.type?(a.raw+=n.raw,a.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}}class an{options;constructor(e){this.options=e||nu}code(e,t,n){let a=(t||"").match(/^\S*/)?.[0];return(e=e.replace(/\n$/,"")+"\n",a)?'<pre><code class="language-'+nx(a)+'">'+(n?e:nx(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:nx(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>
`}hr(){return"<hr>\n"}list(e,t,n){let a=t?"ol":"ul";return"<"+a+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+a+">\n"}listitem(e,t,n){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){let n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){let a=nk(e);if(null===a)return n;let r='<a href="'+(e=a)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"}image(e,t,n){let a=nk(e);if(null===a)return n;e=a;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=">"}text(e){return e}}class aa{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class ar{options;renderer;textRenderer;constructor(e){this.options=e||nu,this.options.renderer=this.options.renderer||new an,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new aa}static parse(e,t){return new ar(t).parse(e)}static parseInline(e,t){return new ar(t).parseInline(e)}parse(e,t=!0){let n="";for(let a=0;a<e.length;a++){let r=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(r.type)){n+=e||"";continue}}switch(r.type){case"space":continue;case"hr":n+=this.renderer.hr();continue;case"heading":n+=this.renderer.heading(this.parseInline(r.tokens),r.depth,this.parseInline(r.tokens,this.textRenderer).replace(nb,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue;case"code":n+=this.renderer.code(r.text,r.lang,!!r.escaped);continue;case"table":{let e="",t="";for(let e=0;e<r.header.length;e++)t+=this.renderer.tablecell(this.parseInline(r.header[e].tokens),{header:!0,align:r.align[e]});e+=this.renderer.tablerow(t);let a="";for(let e=0;e<r.rows.length;e++){let n=r.rows[e];t="";for(let e=0;e<n.length;e++)t+=this.renderer.tablecell(this.parseInline(n[e].tokens),{header:!1,align:r.align[e]});a+=this.renderer.tablerow(t)}n+=this.renderer.table(e,a);continue}case"blockquote":{let e=this.parse(r.tokens);n+=this.renderer.blockquote(e);continue}case"list":{let e=r.ordered,t=r.start,a=r.loose,l="";for(let e=0;e<r.items.length;e++){let t=r.items[e],n=t.checked,i=t.task,s="";if(t.task){let e=this.renderer.checkbox(!!n);a?t.tokens.length>0&&"paragraph"===t.tokens[0].type?(t.tokens[0].text=e+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=e+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",text:e+" "}):s+=e+" "}s+=this.parse(t.tokens,a),l+=this.renderer.listitem(s,i,!!n)}n+=this.renderer.list(l,e,t);continue}case"html":n+=this.renderer.html(r.text,r.block);continue;case"paragraph":n+=this.renderer.paragraph(this.parseInline(r.tokens));continue;case"text":{let l=r,i=l.tokens?this.parseInline(l.tokens):l.text;for(;a+1<e.length&&"text"===e[a+1].type;)i+="\n"+((l=e[++a]).tokens?this.parseInline(l.tokens):l.text);n+=t?this.renderer.paragraph(i):i;continue}default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let a=0;a<e.length;a++){let r=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){n+=e||"";continue}}switch(r.type){case"escape":case"text":n+=t.text(r.text);break;case"html":n+=t.html(r.text);break;case"link":n+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":n+=t.image(r.href,r.title,r.text);break;case"strong":n+=t.strong(this.parseInline(r.tokens,t));break;case"em":n+=t.em(this.parseInline(r.tokens,t));break;case"codespan":n+=t.codespan(r.text);break;case"br":n+=t.br();break;case"del":n+=t.del(this.parseInline(r.tokens,t));break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}}class al{options;constructor(e){this.options=e||nu}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}class ai{defaults=nd();options=this.setOptions;parse=this.#e(at.lex,ar.parse);parseInline=this.#e(at.lexInline,ar.parseInline);Parser=ar;Renderer=an;TextRenderer=aa;Lexer=at;Tokenizer=nA;Hooks=al;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":for(let e of a.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of a.rows)for(let a of e)n=n.concat(this.walkTokens(a.tokens,t));break;case"list":n=n.concat(this.walkTokens(a.items,t));break;default:{let e=a;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(a=>{let r=e[a].flat(1/0);n=n.concat(this.walkTokens(r,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let a=e.renderer.apply(this,t);return!1===a&&(a=n.apply(this,t)),a}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new an(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if("options"===n)continue;let a=e.renderer[n],r=t[n];t[n]=(...e)=>{let n=a.apply(t,e);return!1===n&&(n=r.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new nA(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let a=e.tokenizer[n],r=t[n];t[n]=(...e)=>{let n=a.apply(t,e);return!1===n&&(n=r.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new al;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if("options"===n)continue;let a=e.hooks[n],r=t[n];al.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async)return Promise.resolve(a.call(t,e)).then(e=>r.call(t,e));let n=a.call(t,e);return r.call(t,n)}:t[n]=(...e)=>{let n=a.apply(t,e);return!1===n&&(n=r.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,a=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(a.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return at.lex(e,t??this.defaults)}parser(e,t){return ar.parse(e,t??this.defaults)}#e(e,t){return(n,a)=>{let r={...a},l={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);let i=this.#t(!!l.silent,!!l.async);if(null==n)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(n):n).then(t=>e(t,l)).then(e=>l.hooks?l.hooks.processAllTokens(e):e).then(e=>l.walkTokens?Promise.all(this.walkTokens(e,l.walkTokens)).then(()=>e):e).then(e=>t(e,l)).then(e=>l.hooks?l.hooks.postprocess(e):e).catch(i);try{l.hooks&&(n=l.hooks.preprocess(n));let a=e(n,l);l.hooks&&(a=l.hooks.processAllTokens(a)),l.walkTokens&&this.walkTokens(a,l.walkTokens);let r=t(a,l);return l.hooks&&(r=l.hooks.postprocess(r)),r}catch(e){return i(e)}}}#t(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+nx(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}let as=new ai;function ao(e,t){return as.parse(e,t)}ao.options=ao.setOptions=function(e){return as.setOptions(e),ao.defaults=as.defaults,nu=ao.defaults,ao},ao.getDefaults=nd,ao.defaults=nu,ao.use=function(...e){return as.use(...e),ao.defaults=as.defaults,nu=ao.defaults,ao},ao.walkTokens=function(e,t){return as.walkTokens(e,t)},ao.parseInline=as.parseInline,ao.Parser=ar,ao.parser=ar.parse,ao.Renderer=an,ao.TextRenderer=aa,ao.Lexer=at,ao.lexer=at.lex,ao.Tokenizer=nA,ao.Hooks=al,ao.parse=ao,ao.options,ao.setOptions,ao.use,ao.walkTokens,ao.parseInline,ar.parse,at.lex,n(92619).Buffer,Object.freeze({643:"RUB",840:"USD",978:"EUR",36:"AUD",944:"AZN",826:"GBP",51:"AMD",933:"BYN",975:"BGN",986:"BRL",348:"HUF",704:"VND",344:"HKD",981:"GEL",208:"DKK",784:"AED",818:"EGP",356:"INR",360:"IDR",398:"KZT",124:"CAD",634:"QAR",417:"KGS",156:"CNY",498:"MDL",554:"NZD",578:"NOK",985:"PLN",946:"RON",960:"XDR",702:"SGD",972:"TJS",764:"THB",949:"TRY",934:"TMT",860:"UZS",980:"UAH",203:"CZK",752:"SEK",756:"CHF",941:"RSD",710:"ZAR",410:"KRW",392:"JPY"});let ac=Object.freeze({RUB:"₽",USD:"$",EUR:"€",AUD:"AU$",AZN:"₼",GBP:"\xa3",AMD:"֏",BYN:"Br",BGN:"лв",BRL:"R$",HUF:"Ft",VND:"₫",HKD:"HK$",GEL:"₾",DKK:"kr",AED:"د.إ.",EGP:"E\xa3",INR:"₹",IDR:"Rp",KZT:"₸",CAD:"CA$",QAR:"ر.ق.",KGS:"с",CNY:"CN\xa5",MDL:"L",NZD:"NZ$",NOK:"kr",PLN:"zł",RON:"L",XDR:"XDR",SGD:"S$",TJS:"SM",THB:"฿",TRY:"₺",TMT:"T",UZS:"сум",UAH:"₴",CZK:"Kč",SEK:"kr",CHF:"₣",RSD:"дин",ZAR:"R",KRW:"₩",JPY:"\xa5"});!function(e){e.Pending="pending",e.Success="success"}(a||(a={}));let ad={decimalCount:2,decimalSeparator:",",thousandsSeparator:"\xa0",decimalIsWithoutZeros:!0,preventLargeNumbers:!1};(r||(r={})).PERSISTENT_STATE="persistentState";var au=n(89777),ah=n(92619).Buffer;let ap="function"==typeof ah,am=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),ag=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),af=(e=>{let t={};return e.forEach((e,n)=>t[e]=n),t})(ag),av=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ax=String.fromCharCode.bind(String),ab="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),ay="function"==typeof btoa?e=>btoa(e):ap?e=>ah.from(e,"binary").toString("base64"):e=>{let t,n,a,r,l="",i=e.length%3;for(let i=0;i<e.length;){if((n=e.charCodeAt(i++))>255||(a=e.charCodeAt(i++))>255||(r=e.charCodeAt(i++))>255)throw TypeError("invalid character found");l+=ag[(t=n<<16|a<<8|r)>>18&63]+ag[t>>12&63]+ag[t>>6&63]+ag[63&t]}return i?l.slice(0,i-3)+"===".substring(i):l},aw=ap?e=>ah.from(e).toString("base64"):e=>{let t=[];for(let n=0,a=e.length;n<a;n+=4096)t.push(ax.apply(null,e.subarray(n,n+4096)));return ay(t.join(""))},ak=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ax(192|t>>>6)+ax(128|63&t):ax(224|t>>>12&15)+ax(128|t>>>6&63)+ax(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ax(240|t>>>18&7)+ax(128|t>>>12&63)+ax(128|t>>>6&63)+ax(128|63&t)},a_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,aC=ap?e=>ah.from(e,"utf8").toString("base64"):am?e=>aw(am.encode(e)):e=>ay(e.replace(a_,ak)),aj="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):ap?e=>ah.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!av.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n="",a,r;for(let l=0;l<e.length;)t=af[e.charAt(l++)]<<18|af[e.charAt(l++)]<<12|(a=af[e.charAt(l++)])<<6|(r=af[e.charAt(l++)]),n+=64===a?ax(t>>16&255):64===r?ax(t>>16&255,t>>8&255):ax(t>>16&255,t>>8&255,255&t);return n};var aN=n(59402);let aA={logo:"_logo_1cju4_61",mainLogo:"_mainLogo_1cju4_68",brandmarkLogo:"_brandmarkLogo_1cju4_72",divider:"_divider_1cju4_76"},aE=({s3AssetsUrl:e,className:t,withLogo:n=!1,isNewYearLogo:a=!1,dataQa:r,brandmarkCode:i})=>{if(!e)return null;let s=a?(0,k.oq)(e,"logo/finuslugi/lk-regular-new-year.svg"):(0,k.oq)(e,"logo/finuslugi/lk-regular.svg"),o=(0,k.oq)(e,`/images/logo-brandmark-bank-${i}.svg`);return(0,l.jsx)(l.Fragment,{children:n&&(0,l.jsxs)("div",{className:w(aA.logo,t),"data-qa":r,children:[(0,l.jsx)("img",{className:aA.mainLogo,src:s,alt:"Логотип"}),i&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:aA.divider}),(0,l.jsx)("img",{className:aA.brandmarkLogo,src:o,alt:"Логотип партнера"})]})]})})};aE.displayName="Logo";let aL={privateIcon:"_privateIcon_xcp32_1",autoWidth:"_autoWidth_xcp32_14"},aR=({children:e,className:t,style:n,autoWidth:a,...r})=>(0,l.jsx)("span",{className:w(t,aL.privateIcon,a&&aL.autoWidth),style:n,...r,children:e});aR.displayName="PrivateIcon";let aS={buttons:"_buttons_sr6nb_61","--disabled":"_--disabled_sr6nb_68",buttonIcons:"_buttonIcons_sr6nb_72",divider:"_divider_sr6nb_77",gridView:"_gridView_sr6nb_81",gridViewDivider:"_gridViewDivider_sr6nb_91",formView:"_formView_sr6nb_95",modalInner:"_modalInner_sr6nb_101"},aT=({buttonsData:e,disabled:t=!1,primaryTextOverride:n,additionalTextOverride:a,extraTextOverride:r,overrideLoginAction:i,onAnalyticsEvent:s,onOpen:o,linkTarget:c})=>{let{buttons:d,type:u}=e,h={primary:n,additional:a,extra:r};return d.length?(0,l.jsxs)(l.Fragment,{children:[1===d.length&&(0,l.jsx)(C.B,{dataQa:`login-widget-${u}-button`,as:i?"button":"a",...i?{}:{target:c,href:t?"#login-widget-consents":d[0].href},stretch:!0,variant:"primary"===u?"primary":"secondary",disabled:t,label:h[u]??d[0].label,iconLeft:h[u]?void 0:d[0].icon,onClick:()=>{null==s||s({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:d[0].type}),null==i||i(d[0].type)}},`button-${u}`),d.length>1&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(C.B,{dataQa:`login-widget-${u}-button`,stretch:!0,variant:"primary"===u?"primary":"secondary",disabled:t,label:h[u]?(0,l.jsx)("span",{children:h[u]}):(0,j.nu)("xs")&&d.length>5?(0,l.jsx)("span",{children:"Войти по ID"}):(0,l.jsx)("span",{className:aS.buttonIcons,children:d.map(e=>e.icon?(0,l.jsx)(aR,{style:{lineHeight:0},children:e.icon},e.type):void 0)}),onClick:()=>null==o?void 0:o(u)},`button-${u}`)})]}):null};aT.displayName="ButtonsGroup";let a$=({buttonsList:e=[],isOpen:t=!1,buttonsType:n="",overrideLoginAction:a,onAnalyticsEvent:r,onClose:s,linkTarget:o})=>{var c,d;let u=(0,i.useCallback)(e=>{null==r||r({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e}),null==a||a(e),setTimeout(()=>null==s?void 0:s())},[]);return(0,l.jsx)(ne,{header:{title:"Выберите способ входа"},open:t,onClose:s,dataQa:"login-widget-buttons-modal",children:(0,l.jsx)("div",{className:aS.modalInner,children:null==(d=null==(c=e.find(e=>e.type===n))?void 0:c.buttons)?void 0:d.map(({type:e,href:t,caption:n,icon:r,secondaryIcon:i})=>(0,l.jsx)(C.B,{dataQa:`login-widget-buttons-modal-button-${null==e?void 0:e.toLowerCase()}`,as:a?"button":"a",...a?{}:{target:o,href:t},stretch:!0,variant:"secondary",label:n,iconLeft:i??r,onClick:()=>u(e)},`modal-button-${e}`))})})};a$.displayName="ButtonsModal";let aI=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:n,additionalTextOverride:a,extraTextOverride:r,overrideLoginAction:s,onAnalyticsEvent:o,linkTarget:c})=>{let[d,u]=(0,i.useState)(!1),[h,p]=(0,i.useState)(),{primaryGroup:m,remainingGroup:g,isRemainingGroupVisible:f}=(0,i.useMemo)(()=>{let[t,...n]=e,a=n.some(({buttons:e})=>e.length);return{primaryGroup:t,remainingGroup:n,isRemainingGroupVisible:a}},[e]),v=(0,i.useCallback)(e=>{u(!0),p(e),null==o||o({eventCategory:"login-widget",eventAction:"click_popup_open",eventLabel:"popup_select_login_provider"})},[]),x=(0,i.useCallback)(()=>{u(!1),p(""),null==o||o({eventCategory:"login-widget",eventAction:"click_popup_close",eventLabel:"popup_select_login_provider"})},[]);return e.length?(0,l.jsxs)("div",{className:w(aS.buttons,{[aS["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:[(0,l.jsx)(aT,{buttonsData:m,disabled:t,primaryTextOverride:n,overrideLoginAction:s,onAnalyticsEvent:o,onOpen:v,linkTarget:c}),f&&(0,l.jsxs)(l.Fragment,{children:[!!m.buttons.length&&(0,l.jsx)(_.D,{className:aS.divider,content:"или",dataQa:"login-widget-buttons-divider"}),g.map(e=>(0,l.jsx)(aT,{buttonsData:e,additionalTextOverride:a,extraTextOverride:r,disabled:t,overrideLoginAction:s,onAnalyticsEvent:o,onOpen:v,linkTarget:c},`group-${e.type}`))]}),(0,l.jsx)(a$,{buttonsList:e,buttonsType:h,isOpen:d,overrideLoginAction:s,onAnalyticsEvent:o,onClose:x,linkTarget:c})]}):null};aI.displayName="Buttons";let aD=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:n,overrideLoginAction:a,onAnalyticsEvent:r,linkTarget:s})=>{let o=(0,i.useCallback)(e=>{null==r||r({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e}),null==a||a(e)},[]),{primaryGroup:c,remainingGroup:d,isRemainingGroupVisible:u}=(0,i.useMemo)(()=>{let[t,...n]=e;return{primaryGroup:t,remainingGroup:n.reduce((e,{buttons:t})=>[...e,...t],[]),isRemainingGroupVisible:n.some(({buttons:e})=>e.length)}},[e]);return e.length?(0,l.jsxs)("div",{className:w(aS.buttons,{[aS["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:[(0,l.jsx)(aT,{buttonsData:c,disabled:t,primaryTextOverride:n,overrideLoginAction:a,onAnalyticsEvent:r,linkTarget:s}),u&&(0,l.jsxs)(l.Fragment,{children:[!!c.buttons.length&&(0,l.jsx)(_.D,{className:aS.gridViewDivider,content:"или",dataQa:"login-widget-buttons-divider"}),(0,l.jsx)("div",{className:w(aS.gridView,{[aS["--disabled"]]:t}),"data-qa":"login-widget-buttons",children:d.map(e=>(0,l.jsx)(C.B,{appearance:"outline",stretch:!0,variant:"secondary",dataQa:`login-widget-${e.type}-button`,as:a?"button":"a",...a?{}:{target:s,href:e.href},disabled:t,label:(0,l.jsx)(aR,{className:aS.buttonIcons,autoWidth:!0,children:e.icon},e.type),onClick:()=>o(e.type)},`button-${e.type}`))})]})]}):null};aD.displayName="ButtonsGrid";let aM=({phone:e,onPhoneChange:t,buttonsList:n,disabled:a,primaryTextOverride:r,overrideLoginAction:i,onAnalyticsEvent:s,linkTarget:o})=>(0,l.jsxs)("div",{className:w(aS.formView),children:[(0,l.jsx)(tM,{label:"Номер телефона",maskOpts:{mask:"+{7} (000) 000-00-00"},maskPlaceholder:"+7 (900) 777-77-77",maskPlaceholderVariant:"default",onChange:t,size:"m",value:e,variant:"primary"}),(0,l.jsx)(aD,{buttonsList:n,disabled:a,primaryTextOverride:r,overrideLoginAction:i,onAnalyticsEvent:s,linkTarget:o})]});aM.displayName="PhoneViewButtons";let aF=({template:e,onLinkClick:t})=>{if(!Object.keys(e).length||!e.links)return null;let{text:n,links:a}=e,r=n.split(/(\$\d+)/);return(0,l.jsx)(l.Fragment,{children:r.map(e=>{if(e.startsWith("$")){let n=a[parseInt(e.slice(1))-1];return(0,l.jsx)("a",{href:n.href,target:"_blank",rel:"noreferrer",onClick:()=>null==t?void 0:t(n.href),children:n.text},`link--${n.text}`)}return(0,l.jsx)("span",{children:e},`text--${e}`)})})};aF.displayName="TemplateText";let az={consents:"_consents_15mth_61",list:"_list_15mth_61",checkbox:"_checkbox_15mth_66",error:"_error_15mth_76"},aO=({consents:e=[],onAgree:t,onError:n,onAnalyticsEvent:a})=>{let[r,s]=(0,i.useState)(()=>Object.fromEntries(e.map(e=>[e.key,e.value]))),o=e.filter(e=>!e.hidden),c=o.filter(e=>e.required).some(e=>!r[e.key]);(0,i.useEffect)(()=>{t(r)},[r]),(0,i.useEffect)(()=>{n(c)},[c]);let d=e=>{null==a||a({eventCategory:"login-widget",eventAction:"click_link_consent",eventLabel:e})};return e.length?(0,l.jsx)("div",{id:"login-widget-consents",className:az.consents,"data-qa":"login-widget-consents",children:(0,l.jsx)("div",{className:az.list,"data-qa":"login-widget-consents-list",children:o.map(({key:e,title:t,required:n})=>{var i;return(0,l.jsx)(eg.C,{dataQa:`login-widget-consents-checkbox-${e}`,className:w(az.checkbox,{[az.error]:!r[e]&&c}),state:n&&!r[e]?"error":"default",value:r[e],onChange:t=>((e,t)=>{s(n=>({...n,[e]:t})),null==a||a({eventCategory:"login-widget",eventAction:"click_checkbox_consent",eventLabel:`${e}_${t?"tick":"untick"}`})})(e,t),children:null!=(i=t.links)&&i.length?(0,l.jsx)(aF,{template:t,onLinkClick:d}):t.text},e)})})}):null};aO.displayName="Consents";let aB={list:"_list_1n3xe_69",item:"_item_1n3xe_77",icon:"_icon_1n3xe_91"},aP={check:(0,l.jsx)(e=>i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.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"}))),{}),cup:(0,l.jsx)(e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{d:"M16.619 3.039A1.748 1.748 0 0 0 16.25 3h-8.5a1.733 1.733 0 0 0-.968.292 1.757 1.757 0 0 0-.743 1.09c-.026.12-.039.242-.039.368V5H4.361c-.147 0-.256.006-.328.019-.13.023-.25.063-.36.12a1.243 1.243 0 0 0-.307.227 1.242 1.242 0 0 0-.347.667A2.058 2.058 0 0 0 3 6.361V8.75a3.249 3.249 0 0 0 .537 1.79 3.254 3.254 0 0 0 1.448 1.204 3.256 3.256 0 0 0 1.096.252 5.996 5.996 0 0 0 .39 1.34 6.009 6.009 0 0 0 1.286 1.907 6.003 6.003 0 0 0 2.94 1.616c.182.04.367.072.553.095V19.5h-4.5c-.42 0-.75.33-.75.75s.33.75.75.75h10.5c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-4.5v-2.546a5.838 5.838 0 0 0 1.586-.426 5.976 5.976 0 0 0 2.678-2.229 5.998 5.998 0 0 0 .905-2.303 3.217 3.217 0 0 0 1.622-.533 3.245 3.245 0 0 0 .922-.922A3.246 3.246 0 0 0 21 8.75V6.361c0-.147-.006-.256-.019-.328a1.241 1.241 0 0 0-1.014-1.014A2.058 2.058 0 0 0 19.639 5H18v-.25a1.746 1.746 0 0 0-.291-.967 1.743 1.743 0 0 0-.778-.645 1.738 1.738 0 0 0-.312-.1ZM7.75 4.5h8.5c.03.012.152.049.177.073.012.03.073.143.073.177V11a4.504 4.504 0 0 1-.353 1.752 4.487 4.487 0 0 1-1.686 2.017 4.496 4.496 0 0 1-4.212.378 4.472 4.472 0 0 1-1.431-.965 4.512 4.512 0 0 1-.965-1.43A4.469 4.469 0 0 1 7.5 11V4.75c.012-.03.049-.152.073-.177.025-.024.148-.06.177-.073Zm-3.25 2H6v3.983a1.73 1.73 0 0 1-.15-.029h-.001a1.744 1.744 0 0 1-1.068-.752A1.734 1.734 0 0 1 4.5 8.75V6.5Zm13.65 3.955c-.05.011-.1.02-.15.028V6.5h1.5v2.25a1.752 1.752 0 0 1-.281.952 1.76 1.76 0 0 1-1.07.753Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),{}),shield:(0,l.jsx)(e=>i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M11.855 2c-.67 0-1.331.142-1.942.416L4.625 4.789A2.752 2.752 0 0 0 3 7.301v3.71c0 4.11 1.819 6.78 3.814 8.445a13.032 13.032 0 0 0 4.788 2.492c.261.07.533.069.792.002.68-.177 2.8-.81 4.766-2.309 1.986-1.513 3.84-3.935 3.84-7.63v-4.71a2.752 2.752 0 0 0-1.625-2.512l-5.287-2.373A4.747 4.747 0 0 0 12.145 2h-.29Zm-1.329 1.787a3.245 3.245 0 0 1 1.33-.285h.289c.458 0 .91.097 1.329.285L18.76 6.16c.45.201.739.648.739 1.14v4.712c0 3.108-1.53 5.125-3.248 6.434-1.738 1.324-3.639 1.895-4.234 2.05a.058.058 0 0 1-.031 0c-.587-.156-2.48-.745-4.212-2.192C6.065 16.875 4.5 14.608 4.5 11.01V7.3c0-.493.289-.94.739-1.141l5.287-2.373Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})),{}),"coat-of-arms":(0,l.jsx)(e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{d:"M10.22 3.28a.747.747 0 0 1-.165-.242A.745.745 0 0 1 10 2.75q0-.375.188-.563Q10.374 2 10.75 2h2.5c.104 0 .2.018.288.055.088.037.17.091.242.165.177.176.266.353.266.53 0 .177-.089.354-.266.53l-1.25 1.25q-.265.265-.53.265c-.177 0-.354-.088-.53-.265l-1.25-1.25ZM12 7.19l3.22-3.22a.722.722 0 0 1 .53-.22c.207 0 .384.073.53.22l1.25 1.25a.741.741 0 0 1 .22.53q0 .155-.055.288-.055.132-.165.242-.11.11-.242.165-.133.055-.288.055h-.849l-2.036 3.054.122.123c.171.17.3.36.385.566.085.206.128.43.128.671l1 .086c.083 0 .146-.02.188-.063.041-.041.062-.104.062-.187v-.25a.743.743 0 0 1 .186-.494l3.5-4a.744.744 0 0 1 .564-.256c.104 0 .2.018.288.055.088.037.17.091.242.165a.747.747 0 0 1 .165.242A.745.745 0 0 1 21 6.5v4.256c0 .69-.127 1.325-.38 1.905a4.716 4.716 0 0 1-1.138 1.575L17.26 16.3a.737.737 0 0 1-.361.185.736.736 0 0 1-.405-.03l-1.145-.416 1.712 1.711H18c.42 0 .75.33.75.75s-.33.75-.75.75h-1.25a.746.746 0 0 1-.288-.055.744.744 0 0 1-.242-.165l-2.077-2.076c-.115.08-.248.145-.396.193l2.14 3.458c.037.06.065.123.084.19q.015.05.022.102.007.05.007.103a.722.722 0 0 1-.22.53.722.722 0 0 1-.53.22h-6.5a.75.75 0 0 1-.395-.112.723.723 0 0 1-.335-.466.746.746 0 0 1-.013-.293.744.744 0 0 1 .105-.274l2.141-3.458a1.474 1.474 0 0 1-.396-.193L7.78 19.03q-.11.11-.242.165a.746.746 0 0 1-.288.055H6c-.42 0-.75-.33-.75-.75s.33-.75.75-.75h.94l1.71-1.711-1.144.416a.736.736 0 0 1-.405.03.737.737 0 0 1-.361-.185l-2.222-2.064a4.716 4.716 0 0 1-1.139-1.575Q3 11.791 3 10.756V6.5a.753.753 0 0 1 .256-.564.723.723 0 0 1 .544-.184.722.722 0 0 1 .514.254l3.5 4a.743.743 0 0 1 .174.36Q8 10.432 8 10.5v.25c0 .083.02.146.063.188.041.041.104.062.187.062h1c0-.242.043-.551.128-.758q.128-.309.385-.565l.122-.123L7.849 6.5H7a.749.749 0 0 1-.75-.75c0-.104.018-.2.055-.288a.745.745 0 0 1 .165-.242l1.25-1.25a.722.722 0 0 1 .53-.22c.207 0 .384.073.53.22L12 7.19Zm-1.425.696.899 1.348a.746.746 0 0 1-.094.946l-.557.557c-.012.03-.073.143-.073.177v.836a.722.722 0 0 1-.22.53.722.722 0 0 1-.53.22H8.25c-.583 0-1.02-.146-1.313-.438-.286-.286-.432-.713-.437-1.28l-2-2.286v2.26q0 .708.26 1.303c.173.398.432.757.779 1.078l1.885 1.752 2.32-.844a.722.722 0 0 1 .573.025.722.722 0 0 1 .388.424.744.744 0 0 1 .034.126l.008.064q.003.033.003.066v.75c0 .083.02.146.063.188.041.041.104.062.187.062h.536c.177 0 .331.053.464.16.06-.036.192-.112.259-.131a.746.746 0 0 1 .205-.029H13c.083 0 .146-.02.188-.063.041-.041.062-.104.062-.187v-.75c0-.207.073-.384.22-.53a.722.722 0 0 1 .66-.209.744.744 0 0 1 .126.034l2.32.844 1.885-1.752c.347-.321.606-.68.78-1.077.172-.397.259-.832.259-1.304v-2.26l-2 2.286c-.005.567-.151.994-.438 1.28-.291.292-.729.438-1.312.438H14a.722.722 0 0 1-.53-.22.722.722 0 0 1-.22-.53v-.836c-.012-.03-.049-.152-.073-.177l-.557-.557a.729.729 0 0 1-.216-.456.745.745 0 0 1 .122-.49l.899-1.348-.895.894A.722.722 0 0 1 12 9a.722.722 0 0 1-.53-.22l-.895-.894ZM12 17.175l-1.904 3.075h3.808L12 17.175Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),{}),"octostar-check":(0,l.jsx)(e=>i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M10.005 2.865a2.73 2.73 0 0 1 3.99 0l.854.914c.245.262.59.405.949.393l1.25-.042a2.73 2.73 0 0 1 2.821 2.821l-.042 1.25c-.012.358.131.704.393.949l.914.854a2.73 2.73 0 0 1 0 3.99l-.914.854c-.262.245-.405.59-.393.949l.042 1.25a2.73 2.73 0 0 1-2.821 2.821l-1.25-.042a1.242 1.242 0 0 0-.949.393l-.854.914a2.73 2.73 0 0 1-3.99 0l-.854-.914a1.242 1.242 0 0 0-.949-.393l-1.25.042a2.73 2.73 0 0 1-2.821-2.821l.042-1.25a1.241 1.241 0 0 0-.393-.949l-.914-.854a2.73 2.73 0 0 1 0-3.99l.914-.854c.262-.245.405-.59.393-.949l-.042-1.25A2.73 2.73 0 0 1 6.952 4.13l1.25.042c.358.012.704-.131.949-.393l.854-.914Zm2.902 1.017a1.241 1.241 0 0 0-1.814 0l-.854.914a2.73 2.73 0 0 1-2.087.865l-1.25-.043a1.241 1.241 0 0 0-1.283 1.283l.043 1.25a2.73 2.73 0 0 1-.865 2.087l-.914.854a1.241 1.241 0 0 0 0 1.814l.914.854c.576.538.891 1.3.865 2.087l-.043 1.25a1.241 1.241 0 0 0 1.283 1.283l1.25-.043a2.731 2.731 0 0 1 2.087.865l.854.914c.49.525 1.323.525 1.814 0l.854-.914a2.731 2.731 0 0 1 2.087-.865l1.25.043a1.241 1.241 0 0 0 1.283-1.283l-.043-1.25a2.73 2.73 0 0 1 .865-2.087l.914-.854a1.241 1.241 0 0 0 0-1.814l-.914-.854a2.73 2.73 0 0 1-.865-2.087l.043-1.25a1.241 1.241 0 0 0-1.283-1.283l-1.25.043a2.73 2.73 0 0 1-2.087-.865l-.854-.914ZM15.03 9.97a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 0 1-1.06 0l-1.5-1.5a.75.75 0 1 1 1.06-1.06l.97.97 2.47-2.47a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})),{}),"shield-check":(0,l.jsx)(e=>i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0 1 11.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0 1 21 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 0 1-.792-.002 13.032 13.032 0 0 1-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373Zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 0 0 4.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 0 0 .03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 0 0-.739-1.14l-5.287-2.373a3.245 3.245 0 0 0-1.33-.285h-.289ZM15.78 9.22a.75.75 0 0 1 0 1.06l-4 4a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})),{})},aq=({highlights:e})=>{if(!e||!e.items.length)return null;let{items:t,heading:n}=e;return(0,l.jsxs)(s.C,{variant:"secondary",dataQa:"login-widget-highlights",children:[n&&(0,l.jsx)(o.H,{as:"h5",type:"h5",className:"mb-2",dataQa:"login-widget-highlights-heading",children:n}),(0,l.jsx)("ul",{className:aB.list,"data-qa":"login-widget-highlights-list",children:(0,l.jsx)(l.Fragment,{children:t.map(({text:e,icon:t})=>(0,l.jsxs)("li",{className:aB.item,"data-qa":"login-widget-highlights-list-item",children:[(0,l.jsx)("div",{className:aB.icon,"data-qa":"login-widget-highlights-list-icon",children:aP[t]||aP.check}),(0,l.jsx)(c.T,{as:"p",dataQa:"login-widget-highlights-list-text",children:e})]},`${e}--${t}`))})})]})};aq.displayName="Highlights";let aZ={legalInfo:"_legalInfo_1o9mv_61"},aH=({legalInfo:e,onAnalyticsEvent:t})=>{if(!e||Object.values(e).every(e=>!e))return null;let{plain:n,html:a,md:r}=e,i=r?ao.parse(r):a??"";return(0,l.jsx)("div",{className:aZ.legalInfo,"data-qa":"login-widget-legal-info",children:n?(0,l.jsx)(aF,{template:n,onLinkClick:e=>{null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:e})}}):(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:i},onClick:e=>{let{href:n}=e.target;n&&(null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:n}))}})})};aH.displayName="LegalInfo";let aV={DAY:["день","дня","дней"],MONTH:["мес.","мес.","мес."],YEAR:["год","года","лет"],TERMLESS:["бессрочный","бессрочный","бессрочный"]},aU={deposit:"Вклад",credit:"Кредит",bond:"Облигация",account:"Счет","banking-account":"Банковский счет"},aW={productCard:"_productCard_1kl4e_61","--credits":"_--credits_1kl4e_64",detailRate:"_detailRate_1kl4e_64","--bond":"_--bond_1kl4e_67",headingWrap:"_headingWrap_1kl4e_71",wrapper:"_wrapper_1kl4e_79",info:"_info_1kl4e_85",logo:"_logo_1kl4e_91",textWrapper:"_textWrapper_1kl4e_100",text:"_text_1kl4e_100",label:"_label_1kl4e_124",details:"_details_1kl4e_140",detail:"_detail_1kl4e_64",detailTitle:"_detailTitle_1kl4e_152",detailValue:"_detailValue_1kl4e_158"},aY=({title:e,value:t,className:n,...a})=>(0,l.jsxs)("div",{className:aW.detail,...a,children:[(0,l.jsx)(au.EY,{dataQa:"login-widget-product-card-detail-title",className:aW.detailTitle,children:e}),(0,l.jsx)(au.EY,{dataQa:"login-widget-product-card-detail-value",className:(w(aW.detailValue),n),children:t})]});aY.displayName="ProductDetail";let aQ=({params:e})=>{if(!e)return null;let{amount:t,rate:n}=e??{},a=(e=>{if(!(e instanceof Date))return null;let t=String(e.getDate()).padStart(2,"0"),n=String(e.getMonth()+1).padStart(2,"0"),a=e.getFullYear();return`${t}.${n}.${a}`})(e.endDate),r=e.term,i=[{id:"params-rate",title:"Ставка",value:`${n}%`},{id:"params-amount",title:"Сумма",value:`${function(e,t){try{let n,{hasCurrencySymbol:a=!0,currencyCode:r,decimalCount:l=ad.decimalCount,decimalSeparator:i=ad.decimalSeparator,thousandsSeparator:s=ad.thousandsSeparator,decimalIsWithoutZeros:o=ad.decimalIsWithoutZeros,preventLargeNumbers:c=ad.preventLargeNumbers}=t||{},d=e;if("string"==typeof d&&(d=d.replace(/\s+/g,"").replace(",",".")),d=Number(d)||0,c&&(n=function(e,t){if(e>=1e9){let n=(Math.floor(e/1e9*1e3)/1e3).toString();return n.includes(".")?n.replace(".",",").replace(/0+$/,"")+t+"млрд":n+t+"млрд"}if(e>=1e6){let n=(Math.floor(e/1e6*1e3)/1e3).toString();return n.includes(".")?n.replace(".",",").replace(/0+$/,"")+t+"млн":n+t+"млн"}return e>=1e4&&e<=99999?Math.trunc(e):e}(d,s)),!c||c&&"number"==typeof n){let e=Number(null!=n?n:d),t=c&&e>1e3?0:function(e){let t=Math.abs(Number(e));return Number.isNaN(t)?ad.decimalCount:t}(l),a=Math.abs(e).toFixed(t),r=parseInt(a,10);n=function({money:e,moneyInt:t,thousandsSeparator:n}){let a=t.toString(),r=RegExp(a.length>4?"(\\d{3})(?=\\d)":"(\\d{4})(?=\\d)","g"),l=a.length>4?a.length%3:0,i=l?a.substr(0,l)+n:"";return(e<0?"-":"")+i+a.substr(l).replace(r,`$1${n}`)}({money:e,moneyInt:r,thousandsSeparator:s})+function({money:e,moneyInt:t,decimalCount:n,decimalSeparator:a,decimalIsWithoutZeros:r}){let l=Math.abs(e-t).toFixed(n),i=r?l.slice(2).replace(/0+$/,""):l.slice(2);return!n||0===(Number(e)||0)||r&&0===parseFloat(l)||""===i?"":a+i}({money:Number(a),moneyInt:r,decimalCount:t,decimalSeparator:i,decimalIsWithoutZeros:o})}return n+(a?`\xa0${ac[r]||ac.RUB}`:"")}catch(e){return console.log(e),""}}(null==t?void 0:t.value,{preventLargeNumbers:!0,currencyCode:(null==t?void 0:t.currency)??"RUB"})}`},{id:r?"params-term":a?"params-end-date":"",title:r?"Срок":a?"Погашение":"",value:r?`${function(e,t,n=!1){if(!Array.isArray(t))throw Error("Plurals must be type of Array<String>");let[a,r,l]=t,i=Math.abs(+e);return(i%=100)>=5&&i<=20?n?l:`${e} ${l}`:1==(i%=10)?n?a:`${e} ${a}`:i>=2&&i<=4?n?r:`${e} ${r}`:n?l:`${e} ${l}`}(r.value,aV[r.type??"DAY"])}`:a||""}];return(0,l.jsx)("div",{className:aW.details,"data-qa":"login-widget-product-card-details",children:i.map(({id:e,title:t,value:n})=>(0,l.jsx)(aY,{"data-qa":`login-widget-product-card-detail-${e}`,title:t,value:n,className:w({[aW.detailRate]:"params-rate"===e})},e))})};aQ.displayName="ProductDetails";let aK=({productInfo:e,s3AssetsUrl:t,className:n,onAnalyticsEvent:a})=>{let r=(0,i.useRef)(null),d=!e||!Object.keys(e).length,u=!r.current||!Object.keys(r.current).length;if((0,i.useEffect)(()=>{var t;d&&!u?null==a||a({eventCategory:"login-widget",eventAction:"view_product_delete",eventLabel:(null==(t=r.current)?void 0:t.type)??void 0}):!d&&u?null==a||a({eventCategory:"login-widget",eventAction:"view_product_add",eventLabel:e.type??void 0}):d||u||null==a||a({eventCategory:"login-widget",eventAction:"view_product_update",eventLabel:e.type??void 0}),r.current=e},[e]),d)return null;let{title:h,label:p,type:m,params:g,provider:f}=e,v=(0,k.oq)(t,`/images/logo-brandmark-bank-${null==f?void 0:f.code}.svg`),x=null==f?void 0:f.code,b=m?aU[m]:"";return(0,l.jsxs)(s.C,{variant:"secondary",className:w(aW.productCard,{[aW[`--${m}`]??""]:!0},n),dataQa:"login-widget-product-card",children:[(0,l.jsxs)("div",{className:w("mb-3",aW.headingWrap),children:[(0,l.jsx)(o.H,{as:"h5",type:"h5",dataQa:"login-widget-product-card-heading",children:"Выбранный продукт"}),p&&(0,l.jsx)(tf.T,{label:p,rounded:!0,size:"s",variant:"red",dataQa:"login-widget-product-card-label"})]}),(0,l.jsxs)("div",{className:aW.wrapper,children:[(0,l.jsxs)("div",{className:aW.info,"data-qa":"login-widget-product-card-info",children:[x&&(0,l.jsx)("img",{className:aW.logo,loading:"lazy",width:"100%",height:"36px",src:v,alt:"Логотип продукта","data-qa":"login-widget-product-card-logo"}),(0,l.jsxs)("div",{className:aW.textWrapper,children:[b&&(0,l.jsx)(c.T,{as:"p",dataQa:"login-widget-product-card-title",className:aW.text,children:b}),h&&(0,l.jsx)(c.T,{as:"p",dataQa:"login-widget-product-card-text",className:aW.text,children:h})]})]}),(0,l.jsx)(aQ,{params:g})]})]})};aK.displayName="ProductCard";let aG=Object.freeze({ESIA:{label:"Войти через Госуслуги",caption:"Госуслуги",icon:e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M10.8103 12.2093H8.5558C8.5328 12.2093 8.52129 12.2206 8.50979 12.2432C8.45228 13.2503 8.25673 14.3252 7.98067 15.2078C7.98067 15.2192 7.98067 15.2305 7.99217 15.2418C8.00368 15.2531 8.01518 15.2531 8.02668 15.2531H8.79736C8.82036 15.2531 8.83187 15.2418 8.83187 15.2305C9.05041 14.5516 9.22295 13.6689 9.29197 12.9221H10.0281V15.2192C10.0281 15.2418 10.0511 15.2644 10.0741 15.2644H10.8103C10.8333 15.2644 10.8563 15.2418 10.8563 15.2192V12.2432C10.8563 12.2206 10.8333 12.2093 10.8103 12.2093V12.2093ZM20.346 12.2093H19.6098C19.5868 12.2093 19.5638 12.2319 19.5638 12.2545V14.5516C19.4028 14.5968 19.2417 14.6194 19.0577 14.6194C18.5746 14.6194 18.4595 14.4723 18.4595 13.8387V12.2545C18.4595 12.2319 18.4365 12.2093 18.4135 12.2093H17.6889C17.6659 12.2093 17.6429 12.2319 17.6429 12.2545V13.9179C17.6429 14.9589 17.9994 15.3549 18.9081 15.3549C19.4258 15.3549 20.0124 15.2192 20.3575 15.0947C20.369 15.0834 20.3805 15.0721 20.3805 15.0607V12.2545C20.392 12.2206 20.369 12.2093 20.346 12.2093V12.2093ZM4.74844 12.2093H4.00077C3.97777 12.2093 3.96626 12.2206 3.96626 12.2432C3.85124 12.6958 3.60968 13.4653 3.28761 14.2687L2.53994 12.2432C2.52844 12.2319 2.51693 12.2206 2.50543 12.2206H1.74626C1.73476 12.2206 1.72325 12.2319 1.71175 12.2432C1.70025 12.2545 1.70025 12.2658 1.71175 12.2772L2.83901 15.3097C2.72398 15.5473 2.62046 15.7397 2.51693 15.9207C2.43642 16.0565 2.3674 16.1923 2.29838 16.3281C2.28688 16.3394 2.28688 16.3507 2.29838 16.362C2.30989 16.3733 2.32139 16.3846 2.33289 16.3846H3.14958C3.16108 16.3846 3.18409 16.3733 3.18409 16.362C3.32212 16.1018 3.49466 15.7397 3.65569 15.3663C4.1388 14.2574 4.51839 13.2163 4.80595 12.2658C4.80595 12.2545 4.80595 12.2432 4.79445 12.2319C4.77145 12.2093 4.75994 12.2093 4.74844 12.2093V12.2093ZM7.42855 14.5516C7.42855 14.5402 7.41704 14.5289 7.40554 14.5289H7.37103C7.18699 14.5968 6.85342 14.6421 6.62336 14.6421C6.10575 14.6421 5.86419 14.5063 5.86419 13.7368C5.86419 13.1145 5.94471 12.8316 6.62336 12.8316C6.81891 12.8316 6.99145 12.8542 7.2215 12.9221C7.24451 12.9221 7.25601 12.9221 7.26751 12.8995C7.34803 12.7411 7.45155 12.5487 7.56658 12.3111V12.2772C7.56658 12.2658 7.55508 12.2545 7.54357 12.2545C7.24451 12.164 6.88792 12.1074 6.56585 12.1074C5.49611 12.1074 5.013 12.6053 5.013 13.7255C5.013 14.8571 5.49611 15.3663 6.56585 15.3663C6.83041 15.3663 7.37103 15.3097 7.62409 15.2078C7.6471 15.1965 7.6586 15.1739 7.6471 15.1513L7.42855 14.5516V14.5516ZM14.4336 12.2093H13.686C13.663 12.2093 13.6515 12.2206 13.6515 12.2432C13.5364 12.7071 13.2949 13.4653 12.9728 14.2687L12.2251 12.2432C12.2136 12.2319 12.2021 12.2206 12.1906 12.2206H11.4315C11.42 12.2206 11.4084 12.2319 11.3969 12.2432C11.3854 12.2545 11.3854 12.2658 11.3969 12.2772L12.5242 15.3097C12.4092 15.5473 12.3057 15.7397 12.2021 15.9207C12.1216 16.0565 12.0526 16.1923 11.9836 16.3394C11.9721 16.3507 11.9721 16.362 11.9836 16.3733C11.9951 16.3846 12.0066 16.396 12.0181 16.396H12.8348C12.8463 16.396 12.8693 16.3846 12.8693 16.3733C13.0073 16.1131 13.1799 15.751 13.3409 15.3776C13.8125 14.2687 14.2036 13.2276 14.4911 12.2772C14.4911 12.2658 14.4911 12.2545 14.4796 12.2432C14.4566 12.2093 14.4451 12.2093 14.4336 12.2093V12.2093ZM17.1943 12.2093H15.0203C14.9973 12.2093 14.9743 12.2319 14.9743 12.2545V15.2305C14.9743 15.2531 14.9973 15.2757 15.0203 15.2757H15.7564C15.7794 15.2757 15.8024 15.2531 15.8024 15.2305V12.9334H16.9412C16.9527 12.9334 16.9757 12.9221 16.9757 12.9108C17.0677 12.7071 17.1483 12.4921 17.2403 12.2772V12.2432C17.2173 12.2093 17.2058 12.2093 17.1943 12.2093",fill:"currentColor"}),i.createElement("path",{d:"M5.62258 7.63786C4.56434 7.63786 4.15025 8.09048 4.15025 9.23334C4.15025 10.3988 4.56434 10.8514 5.62258 10.8514C6.69233 10.8514 7.10642 10.3988 7.10642 9.23334C7.10642 8.07917 6.69233 7.63786 5.62258 7.63786ZM5.62258 10.1838C5.13947 10.1838 4.98994 10.0594 4.98994 9.24465C4.98994 8.38468 5.15098 8.30547 5.62258 8.30547C6.10569 8.30547 6.26673 8.38468 6.26673 9.24465C6.26673 10.0594 6.1172 10.1838 5.62258 10.1838ZM10.0511 10.0594C10.0511 10.048 10.0396 10.0367 10.0281 10.0367H9.99357C9.80953 10.1046 9.47596 10.1499 9.24591 10.1499C8.72829 10.1499 8.48673 10.0141 8.48673 9.24465C8.48673 8.62231 8.56725 8.33942 9.24591 8.33942C9.44145 8.33942 9.61399 8.36205 9.84404 8.42994C9.86705 8.42994 9.87855 8.42994 9.89005 8.40731C9.97057 8.2489 10.0741 8.05654 10.1891 7.81891V7.78497C10.1891 7.77365 10.1776 7.76233 10.1661 7.76233C9.86705 7.67181 9.51047 7.61523 9.18839 7.61523C8.11865 7.61523 7.63554 8.11311 7.63554 9.23334C7.63554 10.3649 8.11865 10.8741 9.18839 10.8741C9.45295 10.8741 9.99358 10.8175 10.2466 10.7157C10.2696 10.7043 10.2811 10.6817 10.2696 10.6591L10.0511 10.0594V10.0594ZM3.9202 7.71707H1.74621C1.7232 7.71707 1.7002 7.7397 1.7002 7.76233V10.7383C1.7002 10.7609 1.7232 10.7836 1.74621 10.7836H2.48237C2.50538 10.7836 2.52838 10.7609 2.52838 10.7383V8.42994H3.65564C3.66714 8.42994 3.69015 8.41863 3.69015 8.40731C3.78217 8.20364 3.86269 7.98864 3.95471 7.77365V7.7397C3.9432 7.72839 3.9317 7.71707 3.9202 7.71707Z",fill:"currentColor"}),i.createElement("path",{d:"M23.7851 14.9477V14.9024C23.7851 14.8798 23.7851 14.8458 23.7966 14.8232C23.8312 14.4045 23.8542 13.8953 23.8772 13.3069V13.2617C23.8887 12.8656 23.9002 12.4356 23.9002 11.9943C23.9002 11.553 23.8887 11.1231 23.8772 10.727V10.6818C23.8542 10.1047 23.8312 9.58416 23.7966 9.16549C23.7966 9.14286 23.7966 9.10891 23.7851 9.08628V9.04102C23.7851 8.99576 23.7736 8.96181 23.7736 8.91655V8.87129C23.7391 8.42999 23.7161 8.15842 23.7046 8.13578C23.7046 8.09052 23.6931 8.04526 23.6931 8.01132V7.97737C23.6816 7.89816 23.6701 7.83027 23.6471 7.75106C23.6471 7.73974 23.6471 7.72843 23.6356 7.71711C23.4401 6.80056 22.9224 5.79349 22.2783 5.03536C22.0252 4.74116 21.7607 4.4809 21.4846 4.27723C21.4616 4.2546 21.1395 4.02829 20.6334 3.67751C20.0468 3.28147 19.2071 2.72702 18.2524 2.18388C16.55 1.19943 15.0432 0.509194 14.8361 0.429986C14.8246 0.429986 14.8246 0.41867 14.8246 0.41867C14.376 0.226308 13.8354 0.0905233 13.2488 0.0339463C13.1337 0.0226308 13.0187 0.0113154 12.9037 0.0113154C12.7887 0 12.6851 0 12.5816 0H12.4206C11.6384 0.0226308 10.9137 0.158416 10.3386 0.41867C10.2581 0.452617 8.72824 1.14286 6.99135 2.14993L6.92233 2.18388C5.13943 3.21358 3.74762 4.23197 3.6901 4.27723C3.253 4.59406 2.86192 5.00141 2.50534 5.52192C2.42482 5.63508 2.42482 5.92928 2.76989 5.92928H3.6556C4.03518 5.92928 4.1272 5.70297 4.5528 5.39745C5.0244 5.05799 5.95611 4.37907 7.6585 3.38331C8.88928 2.67044 10.0395 2.10467 10.6032 1.84441C10.6147 1.84441 10.6262 1.8331 10.6377 1.8331C10.6377 1.8331 10.6492 1.8331 10.6492 1.82178C10.6492 1.82178 10.6607 1.82178 10.6607 1.81047C10.6722 1.81047 10.6837 1.79915 10.6837 1.79915C10.6952 1.79915 10.7067 1.78784 10.7182 1.78784C10.8562 1.71994 10.9482 1.686 10.9482 1.686C11.3393 1.51627 11.8915 1.40311 12.4781 1.3918H12.7081C12.8807 1.3918 13.0532 1.40311 13.2143 1.42574C13.5708 1.471 13.8929 1.5389 14.1575 1.65205C14.1805 1.66337 14.215 1.67468 14.238 1.686C14.238 1.686 14.2495 1.69731 14.284 1.70863C14.5486 1.82178 15.9749 2.48939 17.5277 3.38331C18.4479 3.91513 19.2646 4.44696 19.8282 4.83168C20.3229 5.17115 20.6219 5.38614 20.6334 5.39745C20.852 5.55587 21.0705 5.78218 21.2776 6.03112C21.7952 6.68741 22.2208 7.58133 22.2898 8.27157C22.2898 8.28288 22.3243 8.55445 22.3588 9.01839C22.3588 9.05233 22.3588 9.07496 22.3703 9.10891V9.1768C22.3703 9.22206 22.3818 9.25601 22.3818 9.30127V9.34653C22.3818 9.36916 22.3818 9.40311 22.3933 9.42574C22.3933 9.48232 22.4048 9.5389 22.4048 9.59547C22.4048 9.62942 22.4048 9.66337 22.4163 9.69731V9.71994C22.4163 9.7652 22.4163 9.79915 22.4278 9.84441V9.93494C22.4623 10.5233 22.4853 11.2249 22.4853 11.9604C22.4853 12.6959 22.4623 13.3975 22.4278 13.9859V14.0764C22.4278 14.1216 22.4278 14.1556 22.4163 14.2008V14.2235C22.4163 14.2574 22.4163 14.2914 22.4048 14.3253C22.4048 14.3819 22.3933 14.4385 22.3933 14.495C22.3933 14.529 22.3933 14.5516 22.3818 14.5743V14.6195C22.3818 14.6648 22.3703 14.6987 22.3703 14.744V14.8119C22.3703 14.8458 22.3703 14.8798 22.3588 14.9024C22.3243 15.3663 22.2898 15.6492 22.2898 15.6492C22.2208 16.3395 21.7952 17.2334 21.2776 17.8897C21.0705 18.1499 20.852 18.3649 20.6334 18.5233C20.6219 18.5233 20.3229 18.7496 19.8282 19.0891C19.2646 19.4738 18.4364 20.0057 17.5277 20.5375C15.9749 21.4427 14.5371 22.099 14.284 22.2122L14.238 22.2348C14.215 22.2461 14.1805 22.2574 14.1575 22.2687C13.8929 22.3706 13.5708 22.4498 13.2143 22.495C13.0532 22.5177 12.8807 22.529 12.7081 22.529H12.4781C11.8915 22.5177 11.3393 22.4158 10.9482 22.2348C10.9482 22.2348 10.8677 22.2008 10.7182 22.133C10.7067 22.1216 10.6837 22.1216 10.6722 22.1103C10.6607 22.099 10.6492 22.099 10.6377 22.0877C10.6262 22.0877 10.6262 22.0764 10.6147 22.0764C10.6032 22.0764 10.5917 22.0651 10.5802 22.0651C10.5687 22.0537 10.5572 22.0537 10.5341 22.0424H10.5226C9.93601 21.8161 8.83176 21.273 7.6585 20.5941C5.94461 19.6096 5.0244 18.9194 4.5528 18.5799C4.1272 18.2744 4.03518 18.0481 3.6556 18.0481H2.76989C2.42482 18.0481 2.42482 18.3423 2.50534 18.4554C2.86192 18.976 3.253 19.3833 3.6901 19.7001C3.74762 19.7454 5.15093 20.7638 6.92233 21.7935C7.01435 21.8501 7.10637 21.9066 7.2099 21.9519C8.85477 22.8798 10.2696 23.5134 10.3501 23.5587C10.9137 23.8076 11.6499 23.9547 12.4321 23.9774H12.5931C12.6966 23.9774 12.8002 23.9774 12.9037 23.9661C13.0187 23.9661 13.1337 23.9547 13.2488 23.9434C13.8354 23.8868 14.3875 23.7511 14.8246 23.5587C14.8246 23.5587 14.8361 23.5587 14.8361 23.5474C15.0317 23.4569 16.55 22.7666 18.2409 21.7935C19.1956 21.239 20.0353 20.6959 20.6219 20.2999C21.128 19.9491 21.4501 19.7228 21.4731 19.7001C21.7492 19.4965 22.0137 19.2362 22.2668 18.942C22.9109 18.1839 23.4286 17.1768 23.6241 16.2603C23.6241 16.2489 23.6241 16.2376 23.6356 16.2263C23.6471 16.1471 23.6701 16.0679 23.6816 16V15.9661C23.6931 15.9208 23.6931 15.8755 23.6931 15.8416C23.6931 15.819 23.7276 15.5474 23.7621 15.1061V15.0608C23.7851 15.0269 23.7851 14.9929 23.7851 14.9477",fill:"currentColor"})),secondaryIcon:e=>i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"esia-colored",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),i.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),i.createElement("path",{d:"M22.24 14.656v.042c0 .03 0 .072-.021.082v.042c-.031.404-.063.653-.063.674 0 .03 0 .072-.01.114v.031c-.01.062-.031.135-.041.207-.01.01-.01.021-.01.031-.177.84-.643 1.763-1.223 2.458-.229.27-.467.508-.716.695l-.766.55c-.7.48-1.416.936-2.146 1.368-1.523.892-2.89 1.524-3.067 1.607 0 .01-.01.01-.01.01-.394.177-.891.301-1.42.353-.104.01-.207.02-.31.02-.094.011-.187.011-.28.011h-.146c-.704-.02-1.368-.155-1.875-.383-.073-.042-1.347-.623-2.83-1.473a2.051 2.051 0 0 1-.258-.145 36.043 36.043 0 0 1-2.912-1.918 4.527 4.527 0 0 1-1.068-1.141c-.072-.103-.072-.373.239-.373h.787c.342 0 .425.207.809.487.424.311 1.253.944 2.797 1.846.84.493 1.701.95 2.58 1.369h.011c.021.01.031.01.042.02.01 0 .02.01.03.01.01 0 .01.011.021.011.01.01.021.01.031.02.01.011.032.011.042.021.135.063.207.094.207.094.353.166.85.26 1.378.27h.207c.156 0 .311-.01.457-.032a3.65 3.65 0 0 0 .85-.207c.02-.01.051-.02.072-.031l.041-.02a33.402 33.402 0 0 0 4.995-2.863c.446-.31.715-.518.726-.518.196-.145.393-.342.58-.58.466-.602.85-1.421.912-2.054 0 0 .031-.26.062-.684.01-.02.01-.052.01-.083v-.063c0-.041.01-.072.01-.114v-.04c.011-.022.011-.042.011-.074 0-.051.01-.103.01-.155.01-.031.01-.062.01-.093v-.021c.011-.042.011-.073.011-.114v-.083c.07-1.237.07-2.476 0-3.712v-.083c-.01-.042-.01-.073-.01-.114v-.021c-.01-.031-.01-.062-.01-.093 0-.052-.01-.104-.01-.156-.011-.02-.011-.052-.011-.072v-.042c0-.041-.01-.073-.01-.114v-.062c-.011-.031-.011-.052-.011-.083-.031-.425-.062-.674-.062-.685-.062-.632-.446-1.451-.912-2.053a3.411 3.411 0 0 0-.58-.58 33.42 33.42 0 0 0-5.762-3.401c-.02-.01-.052-.021-.073-.031a3.19 3.19 0 0 0-.85-.208c-.145-.02-.3-.03-.456-.03h-.207c-.528.01-1.025.113-1.378.269 0 0-.083.03-.207.093-.01 0-.02.01-.031.01 0 0-.01.01-.02.01 0 .011-.011.011-.011.011 0 .01-.01.01-.01.01-.011 0-.021.01-.032.01-.497.24-1.533.748-2.642 1.4-1.534.913-2.373 1.535-2.798 1.846-.383.28-.466.488-.808.488h-.798c-.311 0-.311-.27-.239-.384.322-.477.674-.85 1.068-1.14a37.769 37.769 0 0 1 2.912-1.93l.062-.03a34.228 34.228 0 0 1 3.026-1.576c.518-.239 1.17-.373 1.886-.384h.145c.093 0 .186.01.28.01.103 0 .207.01.31.021a4.745 4.745 0 0 1 1.42.353s0 .01.01.01c.177.083 1.545.705 3.068 1.607a33.005 33.005 0 0 1 2.912 1.918c.248.187.487.426.715.695.58.695 1.047 1.618 1.223 2.458.01.01.01.02.01.03.019.069.033.138.041.208v.031c0 .031.01.073.01.114.011.021.032.27.063.674v.042c0 .041.01.072.01.114v.041c.01.021.01.052.01.073l.073 1.39v.04c.01.364.021.758.021 1.162l-.02 1.162v.04c-.021.54-.042 1.007-.073 1.39-.01.021-.01.052-.01.073ZM9.865 10.218a.022.022 0 0 0-.02-.02h-.032a2.295 2.295 0 0 1-.673.103c-.466 0-.684-.124-.684-.83 0-.57.062-.83.684-.83.176 0 .332.022.539.084.02 0 .03 0 .041-.02l.27-.54v-.031a.022.022 0 0 0-.02-.02 3.125 3.125 0 0 0-.882-.136c-.964 0-1.399.456-1.399 1.483 0 1.037.435 1.504 1.399 1.504.238 0 .725-.052.954-.146.02-.01.03-.03.02-.052l-.197-.549Zm-3.99-2.23c-.953 0-1.326.415-1.326 1.463 0 1.068.373 1.483 1.327 1.483.963 0 1.336-.415 1.336-1.483 0-1.048-.373-1.462-1.336-1.462Zm-3.492.084a.044.044 0 0 0-.041.041v2.727c0 .021.02.042.041.042h.664c.02 0 .041-.021.041-.042V8.725h1.026c.01 0 .031-.01.031-.02.083-.187.156-.385.238-.581v-.032c-.01-.01-.02-.02-.03-.02h-1.97Zm3.493 2.26c-.435 0-.57-.114-.57-.86 0-.788.145-.861.57-.861.435 0 .58.072.58.86 0 .737-.135.861-.58.861Zm1.627 3.992a.022.022 0 0 0-.02-.02h-.032a2.295 2.295 0 0 1-.674.103c-.466 0-.684-.124-.684-.83 0-.57.073-.829.684-.829.176 0 .332.02.54.083.02 0 .03 0 .04-.02l.27-.54v-.03a.022.022 0 0 0-.007-.015 3.126 3.126 0 0 0-.895-.141c-.963 0-1.399.456-1.399 1.482 0 1.037.436 1.504 1.4 1.504.238 0 .725-.052.953-.145.02-.01.03-.032.02-.052l-.196-.55Zm3.046-2.146H8.52c-.02 0-.031.01-.041.031A11.895 11.895 0 0 1 8 14.926c0 .01 0 .02.01.03.01.011.021.011.031.011h.695c.02 0 .03-.01.03-.02.198-.623.353-1.432.415-2.116h.664v2.105c0 .02.02.041.041.041h.663c.021 0 .042-.02.042-.041v-2.727c0-.01-.021-.031-.042-.031Zm5.752 0h-1.959a.044.044 0 0 0-.041.041v2.727c0 .021.02.042.041.042h.663c.02 0 .042-.02.042-.042v-2.115h1.025c.01 0 .032-.01.032-.02.083-.187.155-.384.238-.581v-.032c-.02-.01-.031-.02-.041-.02Zm2.839 0h-.663a.045.045 0 0 0-.042.041v2.105c-.145.042-.29.062-.456.062-.435 0-.539-.134-.539-.715v-1.452a.045.045 0 0 0-.041-.041h-.663a.045.045 0 0 0-.041.041v1.525c0 .953.32 1.316 1.14 1.316.466 0 .994-.124 1.305-.238.01-.01.02-.02.02-.031v-2.572c.021-.02 0-.04-.02-.04v-.001Zm-14.052.01h-.674c-.02 0-.03.01-.03.031-.104.415-.322 1.12-.612 1.856L3.1 12.21c-.011-.01-.021-.02-.032-.02h-.684c-.01 0-.02.01-.03.02-.011.01-.011.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.458 4.458 0 0 0-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .03-.01.03-.02.154-.3.295-.603.426-.913.435-1.016.777-1.97 1.036-2.84 0-.011 0-.022-.01-.032-.021-.02-.031-.02-.042-.02Zm8.726 0h-.674c-.02 0-.031.01-.031.031-.104.425-.321 1.12-.612 1.856l-.673-1.866c-.01-.01-.02-.02-.031-.02h-.684c-.01 0-.02.01-.031.02-.01.01-.01.02 0 .031l1.015 2.779c-.09.19-.187.377-.29.56a4.444 4.444 0 0 0-.197.383c-.01.011-.01.021 0 .032.01.01.02.02.031.02h.736c.01 0 .031-.01.031-.02.153-.3.295-.603.425-.913a28.78 28.78 0 0 0 1.036-2.84c0-.011 0-.022-.01-.032-.02-.02-.031-.02-.041-.02Z",clipRule:"evenodd",fill:"url(#esia-colored)",fillRule:"evenodd"}))},PHONE:{label:"По номеру телефона",caption:"Номер телефона",icon:e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.045 3.68a10.239 10.239 0 0 0 .738 2.993 1.323 1.323 0 0 1-.643 1.696l-.866.41a.225.225 0 0 0-.123.133.158.158 0 0 0 .011.135 12.756 12.756 0 0 0 3.321 3.815c.466.358.957.683 1.473.976a.156.156 0 0 0 .134.011.225.225 0 0 0 .133-.122l.408-.863a1.293 1.293 0 0 1 .732-.666 1.322 1.322 0 0 1 .967.022c1.094.453 2.215.708 3.401.766a1.302 1.302 0 0 1 1.173.805c.066.16.1.327.1.5v4.459a2.712 2.712 0 0 1-.816 1.944 2.494 2.494 0 0 1-1.37.68c-.21.031-.425.035-.644.01a18.77 18.77 0 0 1-9.782-4.113l-.002-.001a18.711 18.711 0 0 1-3.727-4.103 18.728 18.728 0 0 1-2.549-5.666 18.72 18.72 0 0 1-.495-2.672 2.494 2.494 0 0 1 .127-1.11 2.512 2.512 0 0 1 .894-1.194 2.68 2.68 0 0 1 1.001-.457c.2-.046.403-.068.612-.068h4a1.747 1.747 0 0 1 1.234.505 1.804 1.804 0 0 1 .381.532 1.897 1.897 0 0 1 .177.644Zm10.485.85-4 4c-.177.177-.354.265-.53.265-.177 0-.354-.088-.53-.265l-2-2a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L17 6.94l3.47-3.47a.743.743 0 0 1 1.06 0 .742.742 0 0 1 0 1.06ZM9.552 3.816a.38.38 0 0 0-.044-.149c-.056-.054-.185-.167-.255-.167h-4a1.247 1.247 0 0 0-.485.098 1.174 1.174 0 0 0-.38.26 1.022 1.022 0 0 0-.23.365.976.976 0 0 0-.048.44 17.25 17.25 0 0 0 1.909 6.18 17.291 17.291 0 0 0 4.324 5.268 17.171 17.171 0 0 0 4.308 2.576c.733.303 1.48.555 2.24.753h.001c.801.21 1.617.36 2.448.454a.976.976 0 0 0 .806-.279 1.15 1.15 0 0 0 .26-.38 1.23 1.23 0 0 0 .097-.485v-4.274a11.7 11.7 0 0 1-3.593-.808l-.331.7a1.73 1.73 0 0 1-1 .9 1.648 1.648 0 0 1-1.363-.125 14.257 14.257 0 0 1-4.312-3.77l-.001-.001c-.382-.503-.73-1.03-1.045-1.584a1.642 1.642 0 0 1-.125-1.364 1.726 1.726 0 0 1 .898-1l.703-.333a11.71 11.71 0 0 1-.782-3.275Z",clipRule:"evenodd"}))),secondaryIcon:void 0},ALFA:{label:void 0,caption:"Альфа ID",icon:e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"clip146_396"},i.createElement("rect",{id:"Logo",width:24,height:24,fill:"white",fillOpacity:0})),i.createElement("clipPath",{id:"clip129_3008"},i.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),i.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#EF3124",fillOpacity:1}),i.createElement("g",{clipPath:"url(#clip129_3008)"},i.createElement("g",{clipPath:"url(#clip146_396)"},i.createElement("path",{id:"Union",d:"M12.0784 4.99939C13.0987 4.99939 13.3867 5.60126 13.6481 6.36017L16.3427 14.2609L14.3805 14.2609L13.7791 12.3771L10.2207 12.3771L9.56677 14.2609L7.70911 14.2609L10.4826 6.36017C10.7441 5.57532 11.058 4.99939 12.0784 4.99939ZM11.9999 7.04004L10.7181 10.8074L13.2297 10.8074L12.0524 7.04004L11.9999 7.04004ZM16.5 16.8002L7.49997 16.8002L7.49997 18.6578L16.5 18.6578L16.5 16.8002Z",clipRule:"evenodd",fill:"#FFFFFF",fillOpacity:1,fillRule:"evenodd"})))),secondaryIcon:void 0},SBER:{label:void 0,caption:"Сбер ID",icon:e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"clip146_362"},i.createElement("rect",{id:"Logo",width:20,height:20,transform:"translate(2.000000 2.000000)",fill:"white",fillOpacity:0})),i.createElement("clipPath",{id:"clip129_3001"},i.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),i.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#21A038",fillOpacity:1}),i.createElement("g",{clipPath:"url(#clip129_3001)"},i.createElement("g",{clipPath:"url(#clip146_362)"},i.createElement("path",{id:"Vector",d:"M12 4.5C13.8 4.5 15.45 5.13 16.74 6.19L15.45 7.22C14.48 6.52 13.29 6.1 11.99 6.1C8.74 6.1 6.1 8.74 6.1 12C6.1 15.25 8.74 17.89 11.99 17.89C15.25 17.89 17.89 15.25 17.89 12C17.89 11.92 17.89 11.85 17.88 11.77L19.38 10.69C19.46 11.11 19.49 11.55 19.49 12C19.49 16.14 16.14 19.5 11.99 19.5C7.85 19.5 4.5 16.14 4.5 12C4.5 7.85 7.85 4.5 12 4.5Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"evenodd"}),i.createElement("path",{id:"Vector",d:"M9.17 10.17L12 12L18.08 7.53L18.99 9L12 14.11L9.17 12.35L9.17 10.17Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"evenodd"})))),secondaryIcon:void 0},VTB:{label:void 0,caption:"ВТБ ID",icon:e=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},i.createElement("defs",null,i.createElement("linearGradient",{id:"c",x1:0,x2:24,y1:12,y2:12,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#0037FF"}),i.createElement("stop",{offset:.75,stopColor:"#0085FF"})),i.createElement("clipPath",{id:"b"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("mask",{id:"a",width:24,height:24,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("circle",{cx:12,cy:12,r:12,fill:"#F7F8FA"})),i.createElement("g",{mask:"url(#a)"},i.createElement("path",{fill:"#F7F8FA",d:"M0 0h24v24H0z"})),i.createElement("g",{clipPath:"url(#b)",mask:"url(#a)"},i.createElement("path",{fill:"url(#c)",d:"M0 0h24v24H0z"}),i.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M19.5 7.5H7.7l-.85 2.25h11.79l.86-2.25Zm-1.18 3.37H6.52l-.85 2.25h11.8l.85-2.25ZM5.33 14.25h11.52l-.83 2.25H4.5l.83-2.25Z"}))),secondaryIcon:void 0},MTS:{label:void 0,caption:"МТС ID",icon:e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},i.createElement("defs",null),i.createElement("rect",{id:"Button",width:24,height:24,fill:"#FFFFFF",fillOpacity:0}),i.createElement("mask",{id:"mask129_2994","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},i.createElement("rect",{id:"rect",width:24,height:24,fill:"#000000",fillOpacity:1})),i.createElement("g",{mask:"url(#mask129_2994)"},i.createElement("rect",{id:"rect",width:24,height:24,fill:"#FF0032",fillOpacity:1}),i.createElement("path",{id:"path",d:"M15.98 1.82L15.98 2.94L18.4 2.94L18.4 7.32L19.75 7.4L19.75 2.94L22.16 2.94L22.16 1.82L15.98 1.82Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}),i.createElement("path",{id:"path",d:"M7.3 1.84L5.53 5.5L3.77 1.84L1.84 1.84L1.84 7.38L3.19 7.38L3.19 3.42L4.92 6.76L6.15 6.76L7.87 3.42L7.87 7.38L9.22 7.38L9.22 1.84L7.3 1.84Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}),i.createElement("path",{id:"path",d:"M20.81 20.3C20.78 20.51 20.69 20.7 20.54 20.84C20.39 20.98 20.2 21.07 20 21.11C19.71 21.17 19.41 21.2 19.11 21.2C18.79 21.2 18.47 21.15 18.17 21.06C17.92 20.98 17.7 20.81 17.55 20.6C17.41 20.38 17.33 20.06 17.33 19.66L17.33 19.1C17.33 18.69 17.41 18.38 17.55 18.16C17.7 17.94 17.92 17.78 18.16 17.7C18.47 17.6 18.79 17.56 19.11 17.56C19.41 17.56 19.7 17.59 20 17.64C20.2 17.68 20.39 17.78 20.54 17.92C20.69 18.06 20.78 18.25 20.8 18.46L22.16 18.46C22.13 18.03 21.97 17.62 21.69 17.3C21.42 17 21.07 16.78 20.68 16.68C20.17 16.54 19.64 16.48 19.11 16.49C18.46 16.49 17.9 16.58 17.44 16.77C16.98 16.94 16.6 17.27 16.36 17.69C16.12 18.1 15.99 18.65 15.99 19.31L15.99 19.44C15.99 20.11 16.12 20.65 16.36 21.06C16.6 21.49 16.98 21.81 17.44 21.99C17.9 22.17 18.46 22.26 19.11 22.26C19.64 22.27 20.17 22.21 20.68 22.08C21.07 21.97 21.42 21.76 21.69 21.46C21.97 21.13 22.13 20.72 22.16 20.3L20.81 20.3Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}))),secondaryIcon:void 0},TINKOFF:{label:void 0,caption:"T-ID",icon:e=>i.createElement("svg",{width:44,height:24,viewBox:"0 0 44 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},i.createElement("defs",null),i.createElement("mask",{id:"mask129_2984","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:44,height:24},i.createElement("rect",{id:"rect",width:44,height:24,fill:"#000000",fillOpacity:1})),i.createElement("g",{mask:"url(#mask129_2984)"},i.createElement("path",{id:"path",d:"M32.11 0L11.88 0C5.32 0 0 5.37 0 12C0 18.62 5.32 24 11.88 24L32.11 24C38.67 24 44 18.62 44 12C44 5.37 38.67 0 32.11 0Z",fill:"#303030",fillOpacity:1,fillRule:"nonzero"}),i.createElement("path",{id:"path",d:"M6.89 6.16L19.7 6.16L19.7 12.67C19.7 14.33 18.82 15.87 17.39 16.71L13.3 19.09L9.2 16.71C7.77 15.87 6.89 14.33 6.89 12.67L6.89 6.16Z",fill:"#FFDD2D",fillOpacity:1,fillRule:"nonzero"}),i.createElement("path",{id:"path",d:"M10.41 9.59L10.41 11.61C10.68 11.3 11.18 11.08 11.75 11.08L12.37 11.08L12.37 13.44C12.37 14.06 12.2 14.61 11.95 14.91L14.64 14.91C14.39 14.61 14.22 14.06 14.22 13.44L14.22 11.09L14.84 11.09C15.41 11.09 15.91 11.3 16.18 11.61L16.18 9.59L10.41 9.59Z",fill:"#333333",fillOpacity:1,fillRule:"evenodd"}),i.createElement("path",{id:"path",d:"M27.01 16.07L27.01 8.43L24.63 8.43L24.63 16.07L27.01 16.07Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}),i.createElement("path",{id:"path",d:"M32.77 16.07C35.79 16.07 37.28 14.45 37.28 12.25C37.28 10.05 35.79 8.43 33.02 8.43L28.76 8.43L28.76 16.07L32.77 16.07ZM32.53 10.26C34.17 10.26 34.85 11 34.85 12.25C34.85 13.41 34.17 14.29 32.53 14.29L31.06 14.29L31.06 10.26L32.53 10.26Z",fill:"#FFFFFF",fillOpacity:1,fillRule:"nonzero"}))),secondaryIcon:void 0},SOVCOM:{label:void 0,caption:"Совком ID",icon:e=>i.createElement("svg",{width:24.000015,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},i.createElement("defs",null),i.createElement("path",{id:"Vector",d:"M14.39 0.25L14.39 6.47L11.97 6.47C8.93 6.47 6.47 8.93 6.47 11.97C6.47 15.02 8.93 17.48 11.97 17.48L14.39 17.48L14.39 23.7C19.89 22.64 24 17.82 24 11.97C24 6.17 19.89 1.35 14.39 0.25Z",fill:"#003791",fillOpacity:1,fillRule:"nonzero"}),i.createElement("path",{id:"Vector",d:"M11.97 19.42C7.87 19.42 4.52 16.08 4.52 11.97C4.52 7.87 7.87 4.53 11.97 4.53L12.44 4.53L12.44 0L11.97 0C5.37 0 0 5.37 0 11.97C0 18.62 5.37 24 11.97 24L12.44 24L12.44 19.42L11.97 19.42L11.97 19.42Z",fill:"#FC5055",fillOpacity:1,fillRule:"nonzero"})),secondaryIcon:void 0},PSB:{label:void 0,caption:"ПСБ ID",icon:e=>i.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:24,height:24,fill:"none",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"clipPath_0"},i.createElement("rect",{width:24,height:24,x:0,y:0,fill:"rgb(255,255,255)"}))),i.createElement("rect",{id:"Logo symbol / Company / Promsvyazbank",width:24,height:24,x:0,y:0}),i.createElement("g",{id:"Logo",clipPath:"url(#clipPath_0)"},i.createElement("rect",{id:"Logo",width:24,height:24,x:0,y:0}),i.createElement("rect",{id:"Brand fill",width:24,height:24,x:0,y:0,opacity:0,fill:"rgb(247,248,250)"}),i.createElement("g",{id:"Group"},i.createElement("path",{id:"Vector",d:"M14.5735 4L9.14286 9.332L14.5735 9.332L14.5735 20L20 14.68L20 4L14.5735 4Z",fill:"rgb(234,86,22)",fillRule:"evenodd"}),i.createElement("path",{id:"Vector",d:"M9.42654 20L14.8571 14.668L9.42654 14.668L9.42654 4L4 9.32L4 20L9.42654 20Z",fill:"rgb(234,86,22)",fillRule:"nonzero"}),i.createElement("path",{id:"Vector",d:"M9.42654 20L14.8571 14.668L9.42654 14.668L9.42654 4L4 9.32L4 20L9.42654 20Z",fill:"rgb(44,45,132)",fillRule:"nonzero"})))),secondaryIcon:void 0},MOBILE:{label:void 0,caption:"Mobile ID",icon:e=>i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{d:"M4.935 2.92a4.737 4.737 0 0 1 .985-.985c.326-.242.697-.43 1.114-.566q.559-.182 1.323-.266.637-.07 1.61-.09C10.366 1.003 11.043 1 12 1q1.436 0 2.032.012.974.02 1.611.09c.51.057.95.146 1.323.267.417.136.788.325 1.114.566a4.752 4.752 0 0 1 .985.985c.241.326.43.697.566 1.114.121.373.21.814.266 1.323q.07.637.09 1.61Q20 7.565 20 9v6q0 1.436-.012 2.032c-.014.65-.044 1.187-.09 1.611-.057.51-.146.95-.267 1.323a3.864 3.864 0 0 1-.566 1.114c-.28.377-.608.706-.986.985-.325.241-.696.43-1.113.566a6.65 6.65 0 0 1-1.323.266q-.637.07-1.61.09Q13.435 23 12 23t-2.032-.012q-.974-.02-1.611-.09a6.648 6.648 0 0 1-1.323-.267q-.626-.204-1.114-.566a4.72 4.72 0 0 1-.985-.985 3.857 3.857 0 0 1-.566-1.114 6.646 6.646 0 0 1-.266-1.323 18.77 18.77 0 0 1-.09-1.61Q4 16.435 4 15V9q0-1.436.012-2.032.02-.974.09-1.611c.057-.51.146-.95.267-1.323.136-.417.324-.788.566-1.114Zm1.205.894a2.375 2.375 0 0 0-.345.685c-.09.274-.156.615-.201 1.022-.042.38-.07.873-.082 1.478Q5.5 7.58 5.5 9v6c0 .947.004 1.614.012 2 .013.606.04 1.099.082 1.48.045.406.112.747.201 1.021.086.262.2.49.345.685.191.258.416.483.674.674.194.145.423.26.685.345.274.09.615.156 1.022.201.38.042.873.07 1.478.082.387.008 1.054.012 2.001.012q1.42 0 2-.012c.606-.013 1.099-.04 1.48-.082a5.182 5.182 0 0 0 1.021-.201c.262-.086.49-.2.685-.345.258-.191.483-.416.674-.674.145-.194.26-.423.345-.685.09-.274.156-.615.201-1.022.042-.38.07-.873.082-1.478.008-.387.012-1.054.012-2.001V9q0-1.42-.012-2a17.368 17.368 0 0 0-.082-1.48 5.184 5.184 0 0 0-.201-1.021c-.086-.262-.2-.49-.345-.685a3.26 3.26 0 0 0-.308-.359l-.004-.004q-.169-.168-.362-.311a2.374 2.374 0 0 0-.685-.345 5.185 5.185 0 0 0-1.022-.201c-.38-.042-.873-.07-1.478-.082C13.614 2.504 12.947 2.5 12 2.5q-1.42 0-2 .012a17.38 17.38 0 0 0-1.48.082 5.184 5.184 0 0 0-1.021.201c-.262.086-.49.2-.685.345q-.194.143-.362.312a3.256 3.256 0 0 0-.312.362ZM12 20c.552 0 1-.45 1-1s-.448-1-1-1-1 .45-1 1 .448 1 1 1Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))),secondaryIcon:void 0}}),aX={loginWidget:"_loginWidget_h02n9_61",wrapper:"_wrapper_h02n9_81",heading:"_heading_h02n9_86",description:"_description_h02n9_87"},aJ=({serverConfig:e,baseUrl:t,s3AssetsUrl:n="",configKey:a,entryPointId:r,apiVersion:d,config:u,product:h,productContext:p,query:m,scenarioParams:g,isSilent:f,skeleton:v=(0,l.jsx)("p",{children:"Загружаем данные..."}),className:x,style:b,overrideLoginAction:_,onMount:C,onDestroy:j,onAnalyticsEvent:N,...A})=>{let[E,L]=(0,i.useState)(),[R,S]=(0,i.useState)(),[T,$]=(0,i.useState)(),{getConfig:I,getHref:D}=(e=>{let{configKey:t,entryPointId:n,serverConfig:a={},baseUrl:r,apiBaseUrl:l,apiVersion:s,autoFetch:o=!0,product:c,productContext:d,isSilent:u,config:h,query:p={},scenarioParams:m={},onMount:g,onDestroy:f,onAnalyticsEvent:v}=e,[x,b]=(0,i.useState)(null),[y,w]=(0,i.useState)(o),_=(0,i.useCallback)(async()=>{try{w(!0);let e=await (0,aN.g)(l,t??void 0,s);b(e)}catch(e){throw Error(`Unknown fetch error: ${e}`)}finally{w(!1)}},[]);(0,i.useEffect)(()=>(null==g||g(),null==v||v({eventCategory:"login-widget",eventAction:"mount_login_widget"}),()=>{null==f||f(),null==v||v({eventCategory:"login-widget",eventAction:"unmount_login_widget"})}),[]),(0,i.useEffect)(()=>{o&&_()},[o,_]);let C=o?x:a,j=((e,t)=>{var n,a;let r=n=>(null==t?void 0:t[n])===null?null:(null==t?void 0:t[n])??(null==e?void 0:e[n]),l={theme:(null==t?void 0:t.theme)??"light",variant:(null==t?void 0:t.variant)??"primary",linkTarget:(null==t?void 0:t.linkTarget)??"_blank",withLogo:(null==t?void 0:t.withLogo)??!1,isNewYearLogo:(null==t?void 0:t.isNewYearLogo)??!1,primaryTextOverride:null==t?void 0:t.primaryTextOverride,additionalTextOverride:null==t?void 0:t.additionalTextOverride,extraTextOverride:null==t?void 0:t.extraTextOverride,title:r("title"),description:r("description"),highlights:r("highlights"),consents:null==e?void 0:e.consents,legalInfo:null==e?void 0:e.legalInfo,availableAuthProviders:null==e?void 0:e.availableAuthProviders},i=(e=[],t)=>void 0!==t?e.filter(e=>t.includes(e)):e,s=(e,t)=>({...e,primaryAuthProviders:i(null==e?void 0:e.primaryAuthProviders,t),additionalAuthProviders:i(null==e?void 0:e.additionalAuthProviders,t),extraAuthProviders:i(null==e?void 0:e.extraAuthProviders,t)}),o=null==e?void 0:e.availableAuthProviders,c=!(null!=t&&t.primaryAuthProviders)&&!(null!=(n=null==t?void 0:t.additionalAuthProviders)&&n.length)&&!(null!=(a=null==t?void 0:t.extraAuthProviders)&&a.length);if(!t||c)return{...e&&s(e,o),...l};let d=s(t,o);return d.primaryAuthProviders.length>0||d.additionalAuthProviders.length>0||d.extraAuthProviders.length>0?{...d,...l}:{...e&&s(e,o),...l}})(C,h);return{getConfig:()=>({...j}),getHref:(e,t)=>(0,k.VL)((0,k.oq)(r,"/registration"),{...p,scenario:((e,t=!1)=>t?aC(e).replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"):aC(e))(JSON.stringify(((e="ESIA",t={})=>({version:"v2",entryPointId:n,product:c,productContext:d,isSilent:u,authProvider:e,consents:Object.fromEntries(((null==C?void 0:C.consents)??[]).map(e=>[e.key,e.value])),...m,...t}))(e,t)),!0)}),isPending:y}})({configKey:a,apiBaseUrl:"",apiVersion:d,entryPointId:r,autoFetch:!1,baseUrl:t,product:h,productContext:p,query:m,scenarioParams:g,isSilent:f,config:u,serverConfig:e,onMount:C,onDestroy:j,onAnalyticsEvent:N}),{theme:M,variant:F,linkTarget:z,title:O,description:B,highlights:P,withLogo:q,isNewYearLogo:Z,legalInfo:H,consents:V=[],primaryTextOverride:U,additionalTextOverride:W,extraTextOverride:Y,primaryAuthProviders:Q,additionalAuthProviders:K=[],extraAuthProviders:G=[],view:X="base"}=I(),{buttonsList:J}=(e=>{let{providers:t,getHref:n,scenarioOptions:a}=e,r=e=>e?e.filter(e=>!!aG[e]).map(e=>({...aG[e],href:n(e,a),type:e,caption:aG[e].caption,icon:(0,i.createElement)(aG[e].icon),secondaryIcon:aG[e].secondaryIcon?(0,i.createElement)(aG[e].secondaryIcon):void 0})):[],{primary:l=[],additional:s=[],extra:o=[]}=t,c=r(l),d=r(s),u=r(o);return{primaryButtons:c,additionalButtons:d,extraButtons:u,buttonsList:[{type:"primary",buttons:c},{type:"additional",buttons:d},{type:"extra",buttons:u}]}})({providers:{primary:Q,additional:K,extra:G},getHref:D,scenarioOptions:{consents:E,phone:T}}),ee=J.some(({buttons:e})=>e.length>0),et=(0,i.useCallback)(e=>{null==N||N(e)},[N]),en=(0,i.useCallback)(e=>{$(e)},[]),ea="phone"===X?aM:aI,er="primary"===F?s.C:"div",el=R?y:"div",ei=(0,i.useCallback)(e=>{S(e)},[]),es=(0,i.useMemo)(()=>h??{},[JSON.stringify(h)]);return e?Object.keys(e).length?(0,l.jsx)("div",{className:w(aX.loginWidget,x),style:b,...A,"data-auth-widgets-theme":M,"data-qa":"login-widget",children:(0,l.jsxs)(er,{className:aX.wrapper,children:[(0,l.jsx)(aE,{s3AssetsUrl:n,withLogo:q,isNewYearLogo:Z,dataQa:"login-widget-logo"}),(O||B)&&(0,l.jsxs)("div",{children:[O&&(0,l.jsx)(o.H,{type:"h2",className:aX.heading,dataQa:"login-widget-heading",children:O}),B&&(0,l.jsx)(c.T,{as:"p",fontFamily:"secondary",size:"14",className:w(aX.description),dataQa:"login-widget-description",children:B})]}),ee?(0,l.jsx)(el,{text:R?"Чтобы войти в личный кабинет, подтвердите свое согласие:":"",...R?{dataQa:"login-widget-tooltip"}:{},children:(0,l.jsx)(ea,{buttonsList:J,disabled:R,primaryTextOverride:U,additionalTextOverride:W,extraTextOverride:Y,overrideLoginAction:_,onAnalyticsEvent:et,linkTarget:z,phone:T,onPhoneChange:en})}):(0,l.jsx)(c.T,{as:"p",weight:"bold",size:"20",dataQa:"login-widget-providers-empty",style:{textAlign:"center"},className:"mb-2",children:"Возникла техническая ошибка. Выберите другой способ входа или попробуйте войти позже"}),(0,l.jsx)(aO,{consents:V,onAgree:e=>{L(e)},onError:ei,onAnalyticsEvent:N}),(0,l.jsx)(aK,{productInfo:es,s3AssetsUrl:n,onAnalyticsEvent:N}),(0,l.jsx)(aq,{highlights:P??null}),(0,l.jsx)(aH,{legalInfo:H,onAnalyticsEvent:N})]})}):(0,l.jsx)("p",{children:"Возникла техническая ошибка. Попробуйте позже"}):(0,l.jsx)(l.Fragment,{children:v})};aJ.displayName="LoginWidget"},67292:()=>{},68224:(e,t,n)=>{"use strict";function a(e){return void 0!==e}n.d(t,{i:()=>a})},69365:(e,t,n)=>{"use strict";n.d(t,{C:()=>m});var a=n(95155),r=n(12115),l=n(29722),i=n(66424),s=n(14570);n(42879);var o=n(27695),c=n(17268),d=n(63914),u=n(83640);n(85713);let h=(0,u.g)("checkbox"),p=Object.freeze({checkbox:h,input:"".concat(h,"__input"),marker:"".concat(h,"__marker"),wrapper:"".concat(h,"__wrapper"),label:"".concat(h,"__label"),caption:"".concat(h,"__caption"),icon:"".concat(h,"__icon"),iconButton:"".concat(h,"__icon-button"),states:{error:"".concat(h,"--error"),disabled:"".concat(h,"--disabled"),inverted:"".concat(h,"--inverted")},sizes:{xs:"".concat(h,"--xs"),s:"".concat(h,"--s"),m:"".concat(h,"--m")},variants:{primary:"".concat(h,"--primary"),secondary:"".concat(h,"--secondary")}}),m=(0,r.forwardRef)((e,t)=>{let{value:n=!1,variant:u="primary",state:h="default",label:m,disabled:g=!1,caption:f,className:v,icon:x,withIcon:b=!1,size:y="m",style:w,inverted:k=!1,children:_,inputRef:C,dataQa:j,dataId:N,onChange:A,onIconClick:E,...L}=e,[R,S]=(0,o.u)(!1,n),T=(0,r.useId)(),$=_||m;return(0,a.jsxs)("label",{ref:t,htmlFor:T,"data-marker-label":"",className:(0,l.A)(v,p.checkbox,{[p.states.inverted]:k,[p.states.disabled]:g,[p.states.error]:"error"===h,[p.sizes[y]]:!0,[p.variants[u]]:!0}),style:w,"data-id":N,"data-qa":j,children:[(0,a.jsx)("input",{id:T,ref:C,value:String(R),className:p.input,type:"checkbox","aria-invalid":"error"===h,disabled:g,onChange:e=>{let t="string"==typeof R?!!R:!R;S(t),null==A||A(t,e)},...L}),(0,a.jsx)("span",{className:p.marker,children:(0,a.jsx)(c.C,{type:"checkbox",checked:R,inverted:k,state:h,disabled:g})}),$&&(0,a.jsxs)("span",{className:p.wrapper,children:[(0,a.jsx)("span",{className:(0,l.A)(p.label),children:$}),f&&(0,a.jsx)(s.C,{className:p.caption,withoutIcon:!0,children:f})]}),b&&(0,a.jsx)("button",{type:"button",className:(0,l.A)(p.iconButton),onClick:g?void 0:E,children:(0,a.jsx)(d.P,{className:(0,l.A)(p.icon),children:x?(0,a.jsx)(a.Fragment,{children:x}):(0,a.jsx)(i.S,{})})})]})});m.displayName="Checkbox"},70465:(e,t,n)=>{"use strict";n.d(t,{T:()=>c});var a=n(95155),r=n(12115),l=n(29722),i=n(83640);n(28994);let s=(0,i.g)("tag"),o=Object.freeze({tag:s,label:"".concat(s,"__label"),icon:"".concat(s,"__icon"),rounded:"".concat(s,"--rounded"),variant:{primary:"".concat(s,"--primary"),secondary:"".concat(s,"--secondary"),red:"".concat(s,"--red"),green:"".concat(s,"--green"),orange:"".concat(s,"--orange"),purple:"".concat(s,"--purple"),outline:"".concat(s,"--outline")},size:{s:"".concat(s,"--s"),m:"".concat(s,"--m"),l:"".concat(s,"--l")},iconMargin:{left:"".concat(s,"__icon--left"),right:"".concat(s,"__icon--right")}}),c=(0,r.forwardRef)((e,t)=>{let{label:n,size:r="m",rounded:i,variant:s="primary",iconLeft:c,iconRight:d,onIconLeftClick:u,onIconRightClick:h,className:p,style:m,dataQa:g,dataId:f,...v}=e;return(0,a.jsx)(a.Fragment,{children:n&&(0,a.jsxs)("div",{ref:t,className:(0,l.A)(o.tag,o.variant[s],o.size[r],{[o.rounded]:i},p),style:m,...v,"data-id":f,"data-qa":g,children:[c&&(0,a.jsx)("button",{type:"button",className:(0,l.A)(o.icon,o.iconMargin.left,{[o.size.l]:"l"===r}),onClick:e=>null==u?void 0:u(e),disabled:!u,children:c}),(0,a.jsx)("span",{className:(0,l.A)(o.label,o.size[r]),children:n}),d&&(0,a.jsx)("button",{type:"button",className:(0,l.A)(o.icon,o.iconMargin.right,{[o.size.l]:"l"===r}),onClick:e=>null==h?void 0:h(e),disabled:!h,children:d})]})})});c.displayName="Tag"},73646:()=>{},73867:(e,t,n)=>{"use strict";n.d(t,{Y:()=>w});var a=n(95155),r=n(12115),l=n(89777),i=n(55579),s=n(29722),o=n(17194),c=n(84685),d=n(7596);let u=(0,d.g)("check-all","sc"),h=Object.freeze({wrapper:`${u}__wrapper`,link:`${u}__link`,icon:`${u}__icon`,iconGray:`${u}__icon--gray`}),p=({children:e,className:t,linkClassName:n,iconGrayBackground:r,Link:l,event:o,href:d,dataLayerPush:u})=>{let p=l??i.N_;return(0,a.jsx)("div",{className:(0,s.A)(h.wrapper,t),onClick:()=>{o&&u(o)},children:(0,a.jsxs)(p,{className:(0,s.A)(h.link,n),href:d,children:[e,(0,a.jsx)("span",{className:(0,s.A)(h.icon,{[h.iconGray]:r}),children:(0,a.jsx)(c.IconFdsArrowUpRightSmallO,{size:24})})]})})},m=(0,d.g)("faq-block","sc"),g=Object.freeze({faqBlock:m,titleWrapper:`${m}__title-wrapper`,title:`${m}__title`,accordionWrapper:`${m}__accordion-wrapper`,accordionItems:`${m}__accordion-items`,accordionItemGray:`${m}__accordion-item--gray`,accordionItemContent:`${m}__accordion-item-content`,accordionActiveItemContent:`${m}__accordion-item-content--active`,states:{primary:`${m}--primary`,secondary:`${m}--secondary`,gray:`${m}--gray`}}),f=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},v=(0,d.g)("faq-content-block","sc"),x=Object.freeze({contentBlocks:`${v}__content-blocks`,blockLink:`${v}__block-link`,keynoteWrapper:`${v}__keynote-wrapper`,keynote:`${v}__keynote`,annotation:`${v}__annotation`,contentTableWrapper:`${v}__content-table-wrapper`}),b=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,r={data:t,headerBlocksCount:0,banner:[]};f(r),f(r);let l={};return t.forEach(t=>{let r=(e=>{var t,n,a,r;let i=(null==(t=e.data)?void 0:t.text)??(null==(n=e.data)?void 0:n.url)??(null==(a=e.data)?void 0:a.html)??(null!=(r=e.data)&&r.year?String(e.data.year):"");return l[e.type]=(l[e.type]??0)+1,`${e.type}-${String(i).slice(0,80)}-${l[e.type]}`})(t);switch(t.type){case"header":e.push((0,a.jsx)("h2",{id:`content_header_${n}`,role:"header",children:t.data.text||""},r)),n++;break;case"sub_header":e.push((0,a.jsx)("h3",{role:"sub-header",children:t.data.text||""},r));break;case"paragraph":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},r));break;case"link":e.push((0,a.jsx)("div",{className:x.blockLink,children:(0,a.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},r));break;case"dossier":e.push((0,a.jsxs)("div",{children:[(0,a.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},r));break;case"html":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},r));break;case"annotation":e.push((0,a.jsx)("div",{className:x.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},r));break;case"company-annotation":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},r));break;case"keynote":e.push((0,a.jsx)("div",{className:x.keynoteWrapper,children:(0,a.jsx)("p",{className:x.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},r));break;case"image":e.push((0,a.jsx)("img",{src:t.data.url||"",alt:"image"},r))}}),e})();return(0,a.jsx)("div",{className:(0,s.A)(x.contentBlocks,e),role:"blocks",children:n})},y=({question:e,eventCategory:t,dataLayerPush:n,...r})=>(0,a.jsx)(i.As,{...r,title:e.question,children:(0,a.jsx)("div",{className:(0,s.A)(g.accordionItemContent,{[g.accordionActiveItemContent]:r.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,a.jsx)(b,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),w=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:c,checkAllText:d,Link:u,className:h,eventCategory:m="cb-faq",multiple:f=!1,variant:v="secondary",dataLayerPush:x,tagTitle:b})=>{let w=f?n.map(e=>e.question):[],[k,_]=(0,r.useState)(w),C="gray"===v;return(0,a.jsx)("section",{className:(0,s.A)(g.faqBlock,g.states[v],h),children:(0,a.jsxs)(l.mc,{children:[!t&&(0,a.jsx)("div",{className:g.titleWrapper,children:(0,a.jsx)(l.DZ,{as:"h2",type:"display",className:g.title,children:e})}),(0,a.jsxs)("div",{className:g.accordionWrapper,children:[t&&(0,a.jsx)(l.DZ,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,s.A)(g.title,`${g.title}--inner`),children:t}),(0,a.jsx)("div",{className:g.accordionItems,children:(0,a.jsx)(i.nD,{activeIndex:k,variant:C?"primary":"secondary",withoutOutline:C,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==k?void 0:k.length),n=e.filter(e=>!k.includes(e))[0]||k.filter(t=>!e.includes(t))[0];x({event:"data-event",eventCategory:m,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,o.t)(String(n))}),_(e);let a=`[data-accordion-index="${n}"]`,r=document.querySelector(a);r&&(e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)})(r)},multiple:f,children:n.map(e=>{let t=`faq-${e.question}`;return(0,a.jsx)(y,{id:t,question:e,dataLayerPush:x,eventCategory:m,className:C?g.accordionItemGray:void 0,tagTitle:b},t)})})}),c&&d&&(0,a.jsx)(p,{href:c,event:{event:"data-event",eventCategory:m,eventAction:"сlick_link_answer-link",eventLabel:c},dataLayerPush:x,...null!=u?{Link:u}:{},iconGrayBackground:!0,children:d||"Читать все вопросы"})]})]})})}},77654:()=>{},78012:(e,t,n)=>{"use strict";n.d(t,{S:()=>r});var a=n(12115);function r(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}},80633:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var a=n(95155),r=n(29722),l=n(83640);n(23273);let i=(0,l.g)("divider"),s=Object.freeze({divider:i,content:`${i}__content`}),o=({content:e,className:t,style:n,dataQa:l,dataId:i,...o})=>(0,a.jsx)("div",{className:(0,r.A)(s.divider,t),style:n,...o,"data-id":i,"data-qa":l,children:e&&(0,a.jsx)("div",{className:s.content,children:e})});o.displayName="Divider"},82230:(e,t,n)=>{"use strict";n(95155),n(29722);var a=n(83640);n(95179);let r=(0,a.g)("container");Object.freeze({container:r,states:{narrow:`${r}--narrow`}})},82849:(e,t,n)=>{"use strict";function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}n.d(t,{A:()=>r});var r=function e(t,n){function r(e,r,l){if("undefined"!=typeof document){"number"==typeof(l=a({},n,l)).expires&&(l.expires=new Date(Date.now()+864e5*l.expires)),l.expires&&(l.expires=l.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var s in l)l[s]&&(i+="; "+s,!0!==l[s]&&(i+="="+l[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],a={},r=0;r<n.length;r++){var l=n[r].split("="),i=l.slice(1).join("=");try{var s=decodeURIComponent(l[0]);if(a[s]=t.read(i,s),e===s)break}catch(e){}}return e?a[e]:a}},remove:function(e,t){r(e,"",a({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,a({},this.attributes,t))},withConverter:function(t){return e(a({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},83640:(e,t,n)=>{"use strict";function a(e){return`finkit-modular-${e}`}n.d(t,{g:()=>a})},84342:()=>{},85713:()=>{},86253:(e,t,n)=>{"use strict";n.d(t,{l:()=>a});let a={display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"}},86612:()=>{},86830:(e,t,n)=>{"use strict";n(95155),n(29722);var a=n(83640);n(19872);let r=(0,a.g)("col");Object.freeze({col:r,state:{size:(e,t)=>!0===t?`${r}--${e}`:`${r}--${e}-${t}`,offsetLeft:(e,t)=>`${r}--${e}-offset-left-${t}`,offsetRight:(e,t)=>`${r}--${e}-offset-right-${t}`}})},88460:(e,t,n)=>{"use strict";let a;n.d(t,{A:()=>h});let r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},l=new Uint8Array(16),i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).slice(1));let s=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();let s=(e=e||{}).random||(e.rng||function(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(l)})();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=s[e];return t}return function(e,t=0){return i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]}(s)};function o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)e[a]=n[a]}return e}var c=function e(t,n){function a(e,a,r){if("undefined"!=typeof document){"number"==typeof(r=o({},n,r)).expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var i in r)r[i]&&(l+="; "+i,!0!==r[i]&&(l+="="+r[i].split(";")[0]));return document.cookie=e+"="+t.write(a,e)+l}}return Object.create({set:a,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],a={},r=0;r<n.length;r++){var l=n[r].split("="),i=l.slice(1).join("=");try{var s=decodeURIComponent(l[0]);if(a[s]=t.read(i,s),e===s)break}catch(e){}}return e?a[e]:a}},remove:function(e,t){a(e,"",o({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,o({},this.attributes,t))},withConverter:function(t){return e(o({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});let d="browserId",u={expires:365,domain:void 0,debug:!1};function h(e=u){try{var t,n;let a=localStorage.getItem(d)||c.get(d)||s(),r=sessionStorage.getItem(d)||s();return localStorage.setItem(d,a),sessionStorage.setItem(d,r),c.set(d,a,{...u,secure:(t=e.domain||location.origin,/^https:\/\//gi.test(t)),sameSite:"strict",domain:(n=e.domain||location.hostname,["",...n.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."))}),{browserId:a,sessionId:r}}catch{return{browserId:null,sessionId:null}}}},91501:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});let a=()=>Date.now().toString()+Math.random().toString(36).slice(2,9)},92681:(e,t,n)=>{"use strict";n.d(t,{g:()=>a});let a=(e,t=!0)=>t?e:void 0},93588:()=>{},95124:()=>{},95179:()=>{},96848:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var a=n(95155),r=n(29722),l=n(86253);let i=Object.freeze({text:(0,n(83640).g)("text")});function s({as:e,className:t,style:n,children:s,size:o,weight:c,fontFamily:d,lineClamp:u,dataQa:h,dataId:p,...m}){return(0,a.jsx)(e||"span",{className:(0,r.A)(i.text,t),style:{...o&&{fontSize:`var(--font-size-${o})`,lineHeight:`var(--font-line-height-${o})`},...c&&{fontWeight:`var(--font-weight-${c})`},...u&&{WebkitLineClamp:u,lineClamp:u,...l.l},...d&&{fontFamily:`var(--font-family-${d})`},...n},...m,"data-id":p,"data-qa":h,children:s})}s.displayName="Text"},96872:()=>{},97651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return o},getImageProps:function(){return s}});let a=n(73623),r=n(95413),l=n(38437),i=a._(n(36095));function s(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/qualinvest/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let o=l.Image},97903:()=>{},98426:(e,t,n)=>{"use strict";n(95155),n(29722);var a=n(83640);n(24335);let r=(0,a.g)("loader");Object.freeze({loader:r,variant:{primary:`${r}--primary`,purple:`${r}--purple`,accent:`${r}--accent`,white:`${r}--white`},size:{s:`${r}--s`,m:`${r}--m`,l:`${r}--l`}})},98517:()=>{}}]);