(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[65156,(e,t,s)=>{var r=e.r(32189);function n(){}function i(){}i.resetWarningCache=n,t.exports=function(){function e(e,t,s,n,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return s.PropTypes=s,s}},32189,(e,t,s)=>{t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},71189,e=>{let t,s,r,n;var i,a,l,o,u=e.i(43476),c=e.i(71645),h=e.i(7670);function d(e){return`finkit-${e}`}let p=Object.freeze({privateIcon:d("private-icon")}),f=({children:e,className:t,style:s,...r})=>(0,u.jsx)("span",{className:(0,h.f)(p.privateIcon,t),style:s,...r,children:e});f.displayName="PrivateIcon";let g={display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden"},m=d("caption"),v=Object.freeze({caption:m,captionWithIcon:`${m}--with-icon`,content:`${m}__content`,icon:`${m}__icon`,text:`${m}__text`,size:{s:`${m}--s`,m:`${m}--m`},states:{success:`${m}--success`,error:`${m}--error`,warning:`${m}--warning`}}),k=d("form-field"),y=(Object.freeze({formField:k,labelWrapper:`${k}__label-wrapper`,label:`${k}__label`,description:`${k}__description`}),d("heading")),x=(Object.freeze({heading:y,states:Object.freeze({display:`${y}--display`,hero:`${y}--hero`,h1:`${y}--h1`,h2:`${y}--h2`,h3:`${y}--h3`,h4:`${y}--h4`,h5:`${y}--h5`,h6:`${y}--h6`})}),Object.freeze({text:d("text")}));function b({as:e,className:t,style:s,children:r,size:n,weight:i,lineClamp:a,dataQa:l,dataId:o,...c}){return(0,u.jsx)(e||"span",{className:(0,h.f)(x.text,t),style:{...n&&{fontSize:`var(--font-size-${n})`,lineHeight:`var(--font-line-height-${n})`},...i&&{fontWeight:`var(--font-weight-${i})`},...a&&{WebkitLineClamp:a,lineClamp:a,...g},...s},...c,"data-id":o,"data-qa":l,children:r})}b.displayName="Text";let _=Object.freeze(Object.keys(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})})));Object.freeze(_.filter(e=>"xs"!==e)),Object.freeze(_.filter(e=>"3xl"!==e));let C=d("card"),w=d("col"),A=(Object.freeze({col:w,state:{size:(e,t)=>!0===t?`${w}--${e}`:`${w}--${e}-${t}`,offsetLeft:(e,t)=>`${w}--${e}-offset-left-${t}`,offsetRight:(e,t)=>`${w}--${e}-offset-right-${t}`}}),d("container")),E=Object.freeze({container:A,states:{narrow:`${A}--narrow`}}),S=({children:e,as:t,fluid:s=!1,className:r="",...n})=>(0,u.jsx)(t||"div",{className:(0,h.f)(E.container,r,{[E.states.narrow]:!s}),...n,children:e});S.displayName="Container";let I=d("divider"),B=(Object.freeze({divider:I,content:`${I}__content`}),d("loader")),T=(Object.freeze({loader:B,variant:{primary:`${B}--primary`,purple:`${B}--purple`,accent:`${B}--accent`,white:`${B}--white`},size:{s:`${B}--s`,m:`${B}--m`,l:`${B}--l`}}),d("progress-bar")),F=Object.freeze({progressBar:T,rounded:`${T}-rounded`,indicator:`${T}__indicator`,text:`${T}__text`,animationCircle:`${T}__animation-circle`}),R=d("row"),j=(e,t,s)=>`${R}--gutter-${e}-${t}-${s}`,M=(Object.freeze({row:R,state:{reverse:`${R}--reverse`,gutter:(e,t="xs")=>Array.isArray(e)?[j(t,e[0],"h"),j(t,e[1],"v")].join(" "):j(t,e,"h")}}),d("skeleton"));Object.freeze({skeleton:M,states:{inline:`${M}--inline`,rounded:`${M}--rounded`,inverted:`${M}--inverted`,suspend:`${M}--suspend`}});var O=e.i(5500),O=O;let N={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},L={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function D(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let z=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"fds-academic-cap-o_svg__a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#fds-academic-cap-o_svg__a)"},c.createElement("path",{d:"M12 2.995a.745.745 0 00-.342.087l-10.25 5.25c-.222.114-.36.256-.415.424-.054.168-.024.363.09.586a.732.732 0 00.325.325L5 11.507v2.943c0 .529.002.904.006 1.124.005.364.018.666.038.907.024.294.062.552.114.774.06.254.144.487.251.698a3.755 3.755 0 001.639 1.638c.21.108.443.191.697.251.223.052.48.09.774.115.242.02.544.032.907.038.22.003.595.005 1.124.005h2.9c.53 0 .904-.002 1.125-.005.363-.006.665-.019.907-.038a5.29 5.29 0 00.774-.115 3.09 3.09 0 00.697-.25 3.726 3.726 0 001.639-1.64c.107-.21.19-.443.25-.697.053-.222.091-.48.115-.774.02-.241.032-.543.038-.907.004-.22.005-.595.005-1.124v-2.943l2-1.024V14a1 1 0 002 0l.007-4.756q.082-.252-.089-.586a.733.733 0 00-.326-.326l-10.25-5.25A.744.744 0 0012 2.995zm0 1.598L3.396 9 12 13.407 20.605 9 12 4.593zm5.5 7.682l-5.158 2.643a.744.744 0 01-.342.087q-.17 0-.342-.088L6.5 12.277v2.174c0 .521.002.888.005 1.1.006.331.017.6.034.81.033.401.102.705.207.912a2.245 2.245 0 00.983.983c.206.105.51.174.912.207.209.017.478.028.809.033.212.003.58.005 1.1.005h2.9c.522 0 .889-.002 1.101-.005.33-.005.6-.016.809-.033.402-.033.706-.102.912-.207a2.236 2.236 0 00.983-.983c.105-.207.174-.51.207-.913.017-.208.028-.478.033-.808.004-.213.005-.58.005-1.101v-2.175z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function $({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(z,{viewBox:"0 0 24 24",style:L}))}$.displayName="IconFdsAcademicCapO";let V=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M11 1a1.75 1.75 0 00-1.75 1.75V20.5H8v-7.75A1.75 1.75 0 006.25 11h-1.5A1.75 1.75 0 003 12.75v7.5c0 .966.784 1.75 1.75 1.75h14.5A1.75 1.75 0 0021 20.25V8.75A1.75 1.75 0 0019.25 7h-1.5A1.75 1.75 0 0016 8.75V20.5h-1.25V2.75A1.75 1.75 0 0013 1h-2zm2.25 19.5h-2.5V2.75A.25.25 0 0111 2.5h2a.25.25 0 01.25.25V20.5zm6.25-.25a.25.25 0 01-.25.25H17.5V8.75a.25.25 0 01.25-.25h1.5a.25.25 0 01.25.25v11.5zm-13-7.5v7.75H4.75a.25.25 0 01-.25-.25v-7.5a.25.25 0 01.25-.25h1.5a.25.25 0 01.25.25z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function P({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(V,{viewBox:"0 0 24 24",style:L}))}P.displayName="IconFdsBarChartVerticalO";let U=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12.03 2h-.06c-1.49 0-2.65 0-3.582.069-.947.07-1.72.214-2.424.533a6.75 6.75 0 00-3.362 3.362c-.32.704-.463 1.477-.533 2.424C2 9.32 2 10.48 2 11.969v.062c0 1.489 0 2.648.069 3.581.07.947.214 1.72.533 2.424a6.75 6.75 0 003.362 3.362c.704.32 1.477.463 2.424.533C9.32 22 10.48 22 11.969 22h.062c1.489 0 2.648 0 3.581-.069.947-.07 1.72-.214 2.424-.533a6.75 6.75 0 003.362-3.362c.32-.704.463-1.477.533-2.424C22 14.68 22 13.52 22 12.031v-.062c0-1.489 0-2.648-.069-3.581-.07-.947-.214-1.72-.533-2.424a6.75 6.75 0 00-3.362-3.362c-.704-.32-1.477-.463-2.424-.533C14.68 2 13.52 2 12.031 2zM6.584 3.968c.477-.216 1.052-.34 1.915-.403C9.37 3.5 10.474 3.5 12 3.5c1.526 0 2.63 0 3.502.065.863.064 1.438.187 1.915.403a5.25 5.25 0 012.615 2.615c.216.477.34 1.052.403 1.915.065.871.065 1.976.065 3.502 0 1.526 0 2.63-.065 3.502-.064.863-.187 1.438-.403 1.915a5.25 5.25 0 01-2.615 2.615c-.477.216-1.052.34-1.915.403-.871.065-1.976.065-3.502.065-1.526 0-2.63 0-3.502-.065-.863-.064-1.438-.187-1.915-.403a5.25 5.25 0 01-2.615-2.615c-.216-.477-.34-1.052-.403-1.915C3.5 14.63 3.5 13.526 3.5 12c0-1.526 0-2.63.065-3.502.064-.863.187-1.438.403-1.915a5.25 5.25 0 012.615-2.615zm11.23 5.278a.75.75 0 10-1.125-.992l-3.317 3.76-2.455-1.637a.75.75 0 00-.978.128l-3.75 4.249a.75.75 0 001.124.992l3.317-3.758 2.455 1.637a.75.75 0 00.978-.128l3.75-4.25z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function q({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(U,{viewBox:"0 0 24 24",style:L}))}q.displayName="IconFdsChartSquare";let Q=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2 11.994c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm10-8.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-.25 3.503a.75.75 0 01.75.75v4.158c0 .426.216.822.574 1.052l2.582 1.66a.75.75 0 11-.812 1.26l-2.581-1.659A2.75 2.75 0 0111 11.905V7.747a.75.75 0 01.75-.75z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function H({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(Q,{viewBox:"0 0 24 24",style:L}))}H.displayName="IconFdsClockO";let Z=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"fds-cup-o_svg__a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#fds-cup-o_svg__a)"},c.createElement("path",{d:"M16.619 3.039A1.748 1.748 0 0016.25 3h-8.5a1.733 1.733 0 00-.968.292 1.757 1.757 0 00-.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 00-.307.227 1.242 1.242 0 00-.347.667A2.058 2.058 0 003 6.361V8.75a3.249 3.249 0 00.537 1.79 3.254 3.254 0 001.448 1.204 3.256 3.256 0 001.096.252 5.996 5.996 0 00.39 1.34 6.009 6.009 0 001.286 1.907 6.003 6.003 0 002.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 001.586-.426 5.976 5.976 0 002.678-2.229 5.998 5.998 0 00.905-2.303 3.217 3.217 0 001.622-.533 3.245 3.245 0 00.922-.922A3.246 3.246 0 0021 8.75V6.361c0-.147-.006-.256-.019-.328a1.241 1.241 0 00-1.014-1.014A2.058 2.058 0 0019.639 5H18v-.25a1.746 1.746 0 00-.291-.967 1.743 1.743 0 00-.778-.645 1.738 1.738 0 00-.312-.1zM7.75 4.5h8.5c.03.012.152.049.177.073.012.03.073.143.073.177V11a4.504 4.504 0 01-.353 1.752 4.487 4.487 0 01-1.686 2.017 4.496 4.496 0 01-4.212.378 4.472 4.472 0 01-1.431-.965 4.512 4.512 0 01-.965-1.43A4.469 4.469 0 017.5 11V4.75c.012-.03.049-.152.073-.177.025-.024.148-.06.177-.073zm-3.25 2H6v3.983a1.73 1.73 0 01-.15-.029h-.001a1.744 1.744 0 01-1.068-.752A1.734 1.734 0 014.5 8.75V6.5zm13.65 3.955c-.05.011-.1.02-.15.028V6.5h1.5v2.25a1.752 1.752 0 01-.281.952 1.76 1.76 0 01-1.07.753z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function W({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(Z,{viewBox:"0 0 24 24",style:L}))}W.displayName="IconFdsCupO";let K=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M17.266 2.908C16.544 2.393 15.714 2 14.75 2H12c-1.49 0-2.68 0-3.612.069-.947.07-1.72.214-2.424.533a6.75 6.75 0 00-3.362 3.362c-.32.704-.463 1.477-.533 2.424C2 9.32 2 10.48 2 11.97v.06c0 1.49 0 2.65.069 3.582.07.947.214 1.72.533 2.424a6.75 6.75 0 003.362 3.362c.704.32 1.477.463 2.424.533C9.32 22 10.48 22 11.969 22h.062c1.489 0 2.648 0 3.581-.069.947-.07 1.72-.214 2.424-.533a6.75 6.75 0 003.362-3.362c.32-.704.463-1.477.533-2.424C22 14.68 22 13.52 22 12.031V9.25c0-.964-.393-1.794-.908-2.516-.5-.703-1.163-1.365-1.786-1.989l-.051-.05c-.624-.624-1.286-1.286-1.989-1.787zM12 3.5h2v.982c0 .813 0 1.469.043 2 .045.546.14 1.026.366 1.47a3.75 3.75 0 001.638 1.64c.445.226.925.32 1.472.365.53.043 1.186.043 1.999.043h.982v2c0 1.527 0 2.63-.065 3.502-.064.863-.187 1.438-.403 1.915a5.25 5.25 0 01-2.615 2.615c-.477.216-1.052.34-1.915.403-.871.065-1.976.065-3.502.065-1.526 0-2.63 0-3.502-.065-.863-.063-1.438-.187-1.915-.403a5.25 5.25 0 01-2.615-2.615c-.216-.477-.34-1.052-.403-1.915C3.5 14.63 3.5 13.526 3.5 12c0-1.527 0-2.63.065-3.502.064-.863.187-1.438.403-1.915a5.25 5.25 0 012.615-2.615c.477-.216 1.052-.34 1.915-.403C9.37 3.5 10.474 3.5 12 3.5zm3.5.95v-.812c.29.105.585.27.896.491.591.422 1.17.998 1.824 1.651.653.653 1.23 1.233 1.65 1.824.222.311.387.607.492.896h-.812c-.852 0-1.447 0-1.91-.038-.453-.037-.714-.107-.912-.207a2.25 2.25 0 01-.983-.984c-.1-.197-.17-.458-.207-.912-.037-.462-.038-1.057-.038-1.91zM6 9.25a.75.75 0 01.75-.75h3.5a.75.75 0 010 1.5h-3.5A.75.75 0 016 9.25zm0 3a.75.75 0 01.75-.75h6.5a.75.75 0 010 1.5h-6.5a.75.75 0 01-.75-.75zm0 3a.75.75 0 01.75-.75h3.5a.75.75 0 010 1.5h-3.5a.75.75 0 01-.75-.75z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function G({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(K,{viewBox:"0 0 24 24",style:L}))}G.displayName="IconFdsDocumentO";let Y=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm10-8.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-.019 13.992c-.193 0-.336-.131-.336-.343v-.775c-1.47-.087-2.534-.793-2.833-1.78a1.075 1.075 0 01-.062-.356c0-.394.268-.662.704-.662.336 0 .572.168.722.518.205.544.629.943 1.47 1.03v-2.529l-.343-.081c-1.6-.369-2.472-1.093-2.472-2.399 0-1.443 1.177-2.386 2.814-2.492v-.787c0-.213.143-.344.336-.344.193 0 .337.131.337.344v.787c1.388.106 2.403.818 2.702 1.818.03.118.05.23.05.35 0 .368-.274.618-.685.618-.35 0-.58-.182-.741-.513-.256-.587-.679-.93-1.326-1.018v2.43l.38.088c1.662.387 2.552 1.061 2.552 2.41 0 1.556-1.264 2.456-2.932 2.568v.775c0 .212-.144.343-.337.343zm-1.65-7.502c0 .544.374.918 1.314 1.162v-2.28c-.86.1-1.314.569-1.314 1.118zm3.425 3.973c0-.606-.349-.943-1.438-1.212v2.374c.99-.075 1.438-.537 1.438-1.162z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function X({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(Y,{viewBox:"0 0 24 24",style:L}))}X.displayName="IconFdsDollarCircleO";let J=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12.03 22c-1.489 0-2.71 0-3.642-.068-.947-.07-1.72-.214-2.424-.533a6.75 6.75 0 01-3.362-3.363c-.32-.704-.463-1.477-.533-2.423C2 14.68 2 13.52 2 12.03c0-1.49 0-2.71.069-3.643.07-.946.214-1.72.533-2.423a6.75 6.75 0 013.362-3.363c.704-.319 1.477-.463 2.424-.533C9.32 2 10.48 2 11.969 2c1.49 0 2.71 0 3.643.07.947.07 1.72.213 2.424.532a6.75 6.75 0 013.362 3.363c.32.704.463 1.477.533 2.423C22 9.321 22 10.48 22 11.97c0 1.49 0 2.71-.069 3.643-.07.946-.214 1.72-.533 2.423a6.75 6.75 0 01-3.362 3.363c-.704.319-1.477.463-2.424.533C14.68 22 13.52 22 12.031 22zm3.472-1.564c.863-.064 1.438-.188 1.915-.404a5.25 5.25 0 002.615-2.615c.216-.476.34-1.051.403-1.915.065-.87.065-1.975.065-3.502 0-1.526 0-2.63-.065-3.501-.064-.864-.187-1.439-.403-1.915a5.25 5.25 0 00-2.615-2.615c-.477-.216-1.052-.34-1.915-.404C14.63 3.501 13.526 3.5 12 3.5c-1.526 0-2.63.001-3.502.065-.863.064-1.438.188-1.915.404a5.25 5.25 0 00-2.615 2.615c-.216.476-.34 1.051-.403 1.915C3.5 9.369 3.5 10.474 3.5 12c0 1.526 0 2.63.065 3.501.064.864.187 1.439.403 1.915a5.25 5.25 0 002.615 2.615c.477.216 1.052.34 1.915.404.871.064 1.976.064 3.502.064 1.526 0 2.63 0 3.502-.064zM9.252 6.928a.802.802 0 011.017-.63c1.556.463 2.425 1.425 2.87 2.442.186.422.295.846.357 1.239a6.92 6.92 0 00.252-1.03c.092-.526.725-.883 1.245-.52C16.758 9.66 17 11.721 17 13.001c0 1.288-.43 2.539-1.292 3.476C14.838 17.424 13.57 18 12 18c-1.57 0-2.837-.576-3.708-1.523C7.43 15.54 7 14.29 7 13.001c0-1.342.536-2.247 1.032-3.085.487-.82.991-1.672 1.22-2.988zm1.29 1.093c-.31 1.128-.785 1.927-1.187 2.605-.495.837-.855 1.48-.855 2.375 0 .961.32 1.835.896 2.46.566.616 1.423 1.04 2.604 1.04 1.18 0 2.038-.424 2.604-1.04.576-.625.896-1.499.896-2.46 0-.838-.122-1.772-.59-2.523-.341.995-.813 1.549-1.324 1.824a1.015 1.015 0 01-.649.114 1 1 0 01-.55-.289 1.207 1.207 0 01-.329-.918c.03-.465.004-1.191-.292-1.867a2.683 2.683 0 00-1.223-1.321z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ee({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(J,{viewBox:"0 0 24 24",style:L}))}ee.displayName="IconFdsFireSquareO";let et=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"fds-flag-o_svg__a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#fds-flag-o_svg__a)"},c.createElement("path",{d:"M6 19.25V6.565a.74.74 0 01.091-.359.737.737 0 01.252-.271 5.566 5.566 0 011.633-.691A7.785 7.785 0 019.815 5c.645-.01 1.26.054 1.844.19.635.149 1.184.373 1.65.674a4.101 4.101 0 001.55.6 4.264 4.264 0 002.636-.399c.119-.06.235-.128.348-.201a.723.723 0 01.565-.103c.202.044.36.152.472.327a.746.746 0 01.12.406v7.972a.73.73 0 01-.092.36.737.737 0 01-.254.272 5.586 5.586 0 01-2.136.814 5.81 5.81 0 01-3.512-.526 5.611 5.611 0 01-.507-.288c-.317-.204-.707-.356-1.17-.457-.461-.1-.954-.14-1.478-.12a6.467 6.467 0 00-1.49.227c-.32.088-.607.196-.861.323v4.178c0 .42-.33.75-.75.75S6 19.67 6 19.25zm1.96-5.947a7.059 7.059 0 00-.46.144V7.003a4.54 4.54 0 01.852-.307A6.28 6.28 0 019.838 6.5a6.06 6.06 0 011.48.15c.465.11.858.268 1.178.474a5.552 5.552 0 001.487.675 5.716 5.716 0 001.593.224 5.759 5.759 0 001.924-.33v6.34a4.141 4.141 0 01-1.19.393 4.304 4.304 0 01-2.687-.41 4.03 4.03 0 01-.317-.182c-.466-.3-1.02-.52-1.66-.659a7.415 7.415 0 00-1.851-.153 7.955 7.955 0 00-1.835.28z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function es({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(et,{viewBox:"0 0 24 24",style:L}))}es.displayName="IconFdsFlagO";let er=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zM12 7.5a1 1 0 10.002 2 1 1 0 00-.003-2zm-1.5 4.25a.75.75 0 01.75-.75h1a.75.75 0 01.75.75v4.5a.75.75 0 11-1.5 0V12.5h-.25a.75.75 0 01-.75-.75z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function en({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(er,{viewBox:"0 0 24 24",style:L}))}en.displayName="IconFdsInfoCircleO";let ei=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12zm10-8.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zm-3.207 6.707a1 1 0 01-.002-1.413l.003-.002a1 1 0 110 1.415zM15.03 8.97a.75.75 0 010 1.06l-5 5a.75.75 0 11-1.06-1.06l5-5a.75.75 0 011.06 0zm-1.239 4.824a1 1 0 10.003-.002l-.003.002z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ea({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(ei,{viewBox:"0 0 24 24",style:L}))}ea.displayName="IconFdsPercentCircleO";let el=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 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 01-.792-.002 13.032 13.032 0 01-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 004.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 00.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 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eo({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(el,{viewBox:"0 0 24 24",style:L}))}eo.displayName="IconFdsShieldCheckO";let eu=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"fds-stream-o_svg__a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#fds-stream-o_svg__a)"},c.createElement("path",{d:"M3.959 6.935a9.49 9.49 0 011.323-1.652.743.743 0 000-1.061.743.743 0 00-1.06 0 10.917 10.917 0 00-2.416 3.64A10.97 10.97 0 001 12a10.967 10.967 0 00.806 4.14 10.916 10.916 0 002.416 3.638.743.743 0 001.06 0 .743.743 0 000-1.06 9.408 9.408 0 01-2.087-3.142 9.46 9.46 0 01-.497-1.633Q2.5 12.993 2.5 12a9.477 9.477 0 011.459-5.065zm14.759-2.713a.743.743 0 000 1.06 9.423 9.423 0 012.087 3.142A9.427 9.427 0 0121.5 12c0 1.24-.232 2.432-.696 3.575a9.406 9.406 0 01-2.086 3.143.743.743 0 000 1.06.743.743 0 001.06 0 10.925 10.925 0 002.416-3.64C22.731 14.815 23 13.435 23 12s-.269-2.815-.805-4.139a10.926 10.926 0 00-2.417-3.639.743.743 0 00-1.06 0zM7.34 9.073a5.5 5.5 0 01.77-.962.743.743 0 000-1.06.743.743 0 00-1.06 0 6.962 6.962 0 00-1.908 3.534A7.006 7.006 0 005 12a7.006 7.006 0 00.512 2.634A6.962 6.962 0 007.05 16.95a.743.743 0 001.06 0 .742.742 0 000-1.06 5.507 5.507 0 01-1.207-1.82A5.477 5.477 0 016.5 12a5.505 5.505 0 01.403-2.07c.122-.3.268-.586.438-.857zm8.548-2.023a.743.743 0 011.06 0c.368.368.688.766.96 1.194q.338.53.578 1.122A6.976 6.976 0 0119 12a7.004 7.004 0 01-.513 2.634q-.24.592-.577 1.122a6.988 6.988 0 01-.96 1.194.743.743 0 01-1.061 0 .743.743 0 010-1.06 5.46 5.46 0 001.208-1.82A5.457 5.457 0 0017.5 12a5.51 5.51 0 00-.403-2.07 5.462 5.462 0 00-1.208-1.819.743.743 0 010-1.06zM8.999 12a3 3 0 116 0 3 3 0 01-6 0zm1.5 0a1.5 1.5 0 113.001 0 1.5 1.5 0 01-3 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function ec({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(eu,{viewBox:"0 0 24 24",style:L}))}ec.displayName="IconFdsStreamO";let eh=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"fds-wallet-add-o_svg__a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#fds-wallet-add-o_svg__a)"},c.createElement("path",{d:"M2 12.5V9.24c0-.7.008-1.175.024-1.428q.04-.642.2-1.086c.14-.372.328-.707.563-1.005q.2-.254.445-.472.348-.322.928-.602c.244-.118.686-.303 1.325-.555l5.096-2.038c.457-.184.786-.313.985-.39.32-.121.588-.214.805-.279a4.17 4.17 0 01.717-.155c.253-.028.49-.02.711.025a2.818 2.818 0 01.986.414 2.705 2.705 0 01.751.758c.126.189.223.407.293.653q.086.31.125.73.031.337.04.852c.004.207.006.56.006 1.058v.283l.345.004c.478.007.876.024 1.192.05.378.03.708.078.992.144q.477.111.87.31a4.737 4.737 0 012.08 2.08c.134.259.239.548.315.867.068.284.117.616.148.995q.04.476.051 1.196.007.44.007 1.501v1.7q0 1.056-.007 1.495-.011.718-.05 1.193a6.72 6.72 0 01-.15.994c-.075.32-.181.61-.317.873a4.653 4.653 0 01-.872 1.2 4.739 4.739 0 01-1.205.874 3.786 3.786 0 01-.867.315 6.706 6.706 0 01-.994.148c-.316.027-.714.043-1.193.051-.293.005-.791.007-1.495.007H11c-.42 0-.75-.33-.75-.75s.33-.75.75-.75h3.85q1.044 0 1.471-.007c.446-.007.81-.022 1.094-.045.303-.026.56-.063.77-.113.2-.048.379-.113.536-.194a3.23 3.23 0 001.423-1.426c.08-.154.143-.33.19-.53.05-.21.088-.467.114-.77.023-.284.038-.648.045-1.094.005-.284.007-.775.007-1.471v-1.7q0-1.048-.007-1.477a17.105 17.105 0 00-.045-1.096 5.251 5.251 0 00-.113-.772 2.353 2.353 0 00-.194-.536 3.196 3.196 0 00-.597-.822 3.206 3.206 0 00-.823-.598 2.372 2.372 0 00-.533-.187 5.375 5.375 0 00-.772-.11q-.425-.035-1.094-.045A99.307 99.307 0 0014.85 7.5H9q-.979 0-1.38.006c-.418.006-.761.02-1.028.04a5.458 5.458 0 00-.732.097 2.449 2.449 0 00-.87.363 3.216 3.216 0 00-.545.44 3.215 3.215 0 00-.635.9 2.47 2.47 0 00-.167.514 5.451 5.451 0 00-.098.732c-.02.267-.033.61-.04 1.028-.003.268-.005.727-.005 1.38 0 .42-.33.75-.75.75S2 13.42 2 13v-.5zm1.689-5.395a4.647 4.647 0 011.022-.654c.253-.117.53-.209.831-.274.269-.058.58-.1.936-.127a18.92 18.92 0 011.12-.044Q8.01 6 9 6h5.5v-.28q0-.734-.005-1.032a10.31 10.31 0 00-.034-.74q-.047-.5-.177-.695a1.203 1.203 0 00-.336-.34 1.262 1.262 0 00-.447-.188c-.149-.03-.383.002-.702.098q-.27.08-.699.243c-.192.073-.512.2-.961.38L6.035 5.488q-.907.357-1.223.51a2.406 2.406 0 00-.584.373 2.174 2.174 0 00-.54.734zM18 12v4c0 .42-.33.75-.75.75s-.75-.33-.75-.75v-4c0-.42.33-.75.75-.75s.75.33.75.75zM5.75 16v2.25H8c.42 0 .75.33.75.75s-.33.75-.75.75H5.75V22c0 .42-.33.75-.75.75s-.75-.33-.75-.75v-2.25H2c-.42 0-.75-.33-.75-.75s.33-.75.75-.75h2.25V16c0-.42.33-.75.75-.75s.75.33.75.75z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function ed({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(eh,{viewBox:"0 0 24 24",style:L}))}ed.displayName="IconFdsWalletAddO";let ep=e=>c.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"fds-yuan-circle-o_svg__a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#fds-yuan-circle-o_svg__a)"},c.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 1.5a8.5 8.5 0 100 17 8.5 8.5 0 000-17zM9.359 14.878c-.24 0-.397-.176-.397-.407 0-.23.157-.406.397-.406h2.039V12.98h-2.04c-.239 0-.396-.177-.396-.407 0-.23.157-.407.397-.407h1.635L8.374 7.93a.696.696 0 01-.124-.393c0-.306.26-.536.602-.536.226 0 .41.095.534.312l2.635 4.413 2.593-4.413A.577.577 0 0115.148 7c.342 0 .602.23.602.536 0 .135-.034.25-.123.393l-2.621 4.237h1.635c.24 0 .397.176.397.407 0 .23-.157.407-.397.407h-2.039v1.085h2.04c.239 0 .396.176.396.406 0 .23-.157.407-.397.407h-2.039v1.505c0 .366-.246.617-.602.617s-.602-.25-.602-.617v-1.505h-2.04z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function ef({className:e,style:t,boxSize:s,size:r,onClick:n}){return c.default.createElement("span",{className:e,style:{...N,...n&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...s&&D(s),...t},...n?{role:"button",tabIndex:"0",onClick:n}:{}},c.default.createElement(ep,{viewBox:"0 0 24 24",style:L}))}ef.displayName="IconFdsYuanCircleO";e.i(34348);var eg=e.i(47611),em=e.i(12569),ev=e.i(54061);let ek={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},ey=(0,ev.g)("heading"),ex=Object.freeze({heading:ey,states:Object.freeze({display:`${ey}--display`,hero:`${ey}--hero`,h1:`${ey}--h1`,h2:`${ey}--h2`,h3:`${ey}--h3`,h4:`${ey}--h4`,h5:`${ey}--h5`,h6:`${ey}--h6`})}),eb=({as:e,children:t,weight:s,type:r,lineClamp:n,className:i,style:a,dataQa:l,dataId:o,...c})=>{var d;let p=e||ek[r]||"div",f=/^h[1-6]$/.test(p),g=(null==(d=r.match(/\d+/))?void 0:d[0])||1;return(0,u.jsx)(p,{className:(0,h.f)(ex.heading,ex.states[r],i),style:{...s?{fontWeight:`var(--font-weight-${s})`}:void 0,...n?{WebkitLineClamp:n,lineClamp:n,...em.l}:void 0,...a},role:f?null:"heading","aria-level":f?null:g,...c,"data-id":o,"data-qa":l,children:t})};eb.displayName="Heading";let e_=(0,ev.g)("tag"),eC=Object.freeze({tag:e_,label:`${e_}__label`,icon:`${e_}__icon`,rounded:`${e_}--rounded`,variant:{primary:`${e_}--primary`,secondary:`${e_}--secondary`,outline:`${e_}--outline`,tertiary:`${e_}--tertiary`,pink:`${e_}--pink`,red:`${e_}--red`,green:`${e_}--green`,blue:`${e_}--blue`,orange:`${e_}--orange`,purple:`${e_}--purple`,violet:`${e_}--violet`,blur:`${e_}--blur`},size:{s:`${e_}--s`,m:`${e_}--m`,l:`${e_}--l`},iconMargin:{left:`${e_}__icon--left`,right:`${e_}__icon--right`}}),ew=(0,c.forwardRef)(({label:e,size:t="m",rounded:s,variant:r="primary",iconLeft:n,iconRight:i,onIconLeftClick:a,onIconRightClick:l,className:o,style:c,dataQa:d,dataId:p,...f},g)=>(0,u.jsx)(u.Fragment,{children:e&&(0,u.jsxs)("div",{ref:g,className:(0,h.f)(eC.tag,eC.variant[r],eC.size[t],{[eC.rounded]:s},o),style:c,...f,"data-id":p,"data-qa":d,children:[n&&(0,u.jsx)("button",{type:"button",className:(0,h.f)(eC.icon,eC.iconMargin.left,{[eC.size.l]:"l"===t}),onClick:e=>null==a?void 0:a(e),disabled:!a,children:n}),(0,u.jsx)("span",{className:(0,h.f)(eC.label,eC.size[t]),children:e}),i&&(0,u.jsx)("button",{type:"button",className:(0,h.f)(eC.icon,eC.iconMargin.right,{[eC.size.l]:"l"===t}),onClick:e=>null==l?void 0:l(e),disabled:!l,children:i})]})}));ew.displayName="Tag",e.i(8145);var eA=e.i(13757),eE=e.i(71121),eS=e.i(49424);let eI={cup:(0,u.jsx)(W,{}),stream:(0,u.jsx)(ec,{}),academy:(0,u.jsx)($,{})};function eB({dataQa:e,banner:t,bannerImg:s,button:r,secondaryButton:n,isInfo:i,priority:a}){let l=(0,eE.k)("s"),o="knowledge-banner"===e||"certificate-banner"===e;return(0,u.jsxs)("section",{className:(0,h.f)(eS.default.banner,eS.default[e]),"data-sentry-component":"Banner","data-sentry-source-file":"Banner.tsx",children:[(0,u.jsxs)("div",{className:eS.default.bannerCard,children:[(0,u.jsxs)("div",{className:eS.default.bannerCardContent,children:[t.tags&&(0,u.jsx)("div",{className:eS.default.bannerCardContentTags,children:t.tags.map(t=>(0,u.jsx)(ew,{label:t.text,iconLeft:eI[t.icon],rounded:!0,size:l?"s":"m",variant:"secondary",dataQa:`${e}-tag`},crypto.randomUUID()))}),(0,u.jsx)(eb,{as:o?"h2":"h1",type:o||l?"h1":"display",dataQa:`${e}-title`,"data-sentry-element":"Heading","data-sentry-source-file":"Banner.tsx",children:t.title}),(0,u.jsx)(eA.f,{dataQa:`${e}-description`,as:"p",size:o||l?"18":"24",className:eS.default.bannerCardContentDescription,"data-sentry-element":"Text","data-sentry-source-file":"Banner.tsx",children:t.description}),i&&(0,u.jsxs)("div",{"data-qa":`${e}-info`,className:eS.default.bannerCardContentInfo,children:[(0,u.jsx)(en,{size:24}),(0,u.jsx)(eA.f,{dataQa:`${e}-info-text`,as:"p",size:"14",children:"Запись на экзамен временно недоступна. Пока вы можете пройти пробный экзамен и подготовиться к заданиям"})]})]}),(r||n)&&(0,u.jsxs)("div",{className:eS.default.bannerCardButtons,children:[r&&(0,u.jsx)(eg.f,{...r,className:eS.default.bannerCardButton,dataQa:`${e}-button`,size:"m"}),n&&(0,u.jsx)(eg.f,{...n,className:eS.default.bannerCardButton,dataQa:`${e}-secondary-button`,size:"m",label:"Проверить сертификат",variant:"secondary"})]})]}),(0,u.jsx)(O.Image,{src:s.src,className:eS.default.bannerImage,"data-qa":`${e}-img`,width:s.width,height:s.height,alt:"banner",priority:a,"data-sentry-element":"Image","data-sentry-source-file":"Banner.tsx"})]})}var eT=e.i(83764);function eF({brokers:e}){let t=(0,eE.k)("s");return(0,u.jsxs)("section",{"data-qa":"section-brokers",className:eT.default.brokers,"data-sentry-component":"Brokers","data-sentry-source-file":"Brokers.tsx",children:[(0,u.jsx)(eb,{className:eT.default.brokersTitle,as:"h2",type:"h1",weight:"medium",dataQa:"brokers-title","data-sentry-element":"Heading","data-sentry-source-file":"Brokers.tsx",children:e.title}),(0,u.jsx)("div",{"data-qa":"brokers-list",className:eT.default.brokersList,children:e.cards.map(e=>(0,u.jsx)(eg.f,{dataQa:"brokers-list-item",href:e.href,className:eT.default.brokersListItem,as:"a",size:t?"s":"m",target:"_blank",variant:"secondary",children:(0,u.jsx)(eA.f,{as:"span",size:t?"14":"16",children:e.text})},crypto.randomUUID()))}),(0,u.jsxs)("div",{className:eT.default.brokersDescription,children:[(0,u.jsx)(en,{size:24,"data-sentry-element":"IconFdsInfoCircleO","data-sentry-source-file":"Brokers.tsx"}),(0,u.jsx)(eA.f,{dataQa:"brokers-description",as:"p",size:t?"14":"16","data-sentry-element":"Text","data-sentry-source-file":"Brokers.tsx",children:e.description})]})]})}var O=O;e.i(881);var eR=e.i(43748),ej=e.i(91784);let eM=/"(?:_|\\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*:/,eO=/"(?: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*:/,eN=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function eL(e,t){var s;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(s=e,console.warn(`[destr] Dropping "${s}" key to prevent prototype pollution.`)):t}function eD(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let s=e.trim();if(s.length<=9)switch(s.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return 0/0;case"infinity":return 1/0;case"-infinity":return -1/0}if(!eN.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(eM.test(e)||eO.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,eL)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}var ez=e.i(85900);class e$ extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let eV=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function eP(e="GET"){return eV.has(e.toUpperCase())}let eU=new Set(["image/svg","application/xml","application/xhtml","application/html"]),eq=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function eQ(e,t){if(t)if(Array.isArray(t))for(let s of t)await s(e);else await t(e)}let eH=new Set([408,409,425,429,500,502,503,504]),eZ=new Set([101,204,205,304]),eW="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,eK=eW.fetch?(...e)=>eW.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),eG=function e(t={}){let{fetch:s=globalThis.fetch,Headers:r=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function i(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:+!eP(e.options.method);let s=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(s):eH.has(s))){let s="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return s>0&&await new Promise(e=>setTimeout(e,s)),a(e.request,{...e.options,retry:t-1})}}let s=function(e){let t=e.error?.message||e.error?.toString()||"",s=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",n=`[${s}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",a=new e$(`${n}: ${i}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(a,t,{get:()=>e[t]});for(let[t,s]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,t,{get:()=>e.response&&e.response[s]});return a}(e);throw Error.captureStackTrace&&Error.captureStackTrace(s,a),s}let a=async function(e,a={}){var l;let o,u,c,h={request:e,options:(l=t.defaults,c=function(e,t,s){if(!t)return new s(e);let r=new s(t);if(e)for(let[t,n]of Symbol.iterator in e||Array.isArray(e)?e:new s(e))r.set(t,n);return r}(a?.headers??e?.headers,l?.headers,r),(l?.query||l?.params||a?.params||a?.query)&&(u={...l?.params,...l?.query,...a?.params,...a?.query}),{...l,...a,query:u,params:u,headers:c}),response:void 0,error:void 0};if(h.options.method&&(h.options.method=h.options.method.toUpperCase()),h.options.onRequest&&(await eQ(h,h.options.onRequest),h.options.headers instanceof r||(h.options.headers=new r(h.options.headers||{}))),"string"==typeof h.request&&(h.options.baseURL&&(h.request=(0,ez.N)(h.request,h.options.baseURL)),h.options.query&&(h.request=(0,ez.s)(h.request,h.options.query),delete h.options.query),"query"in h.options&&delete h.options.query,"params"in h.options&&delete h.options.params),h.options.body&&eP(h.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))}(h.options.body)){let e=h.options.headers.get("content-type");"string"!=typeof h.options.body&&(h.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(h.options.body).toString():JSON.stringify(h.options.body)),e||h.options.headers.set("content-type","application/json"),h.options.headers.has("accept")||h.options.headers.set("accept","application/json")}else("pipeTo"in h.options.body&&"function"==typeof h.options.body.pipeTo||"function"==typeof h.options.body.pipe)&&!("duplex"in h.options)&&(h.options.duplex="half");if(!h.options.signal&&h.options.timeout){let e=new n;o=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},h.options.timeout),h.options.signal=e.signal}try{h.response=await s(h.request,h.options)}catch(e){return h.error=e,h.options.onRequestError&&await eQ(h,h.options.onRequestError),await i(h)}finally{o&&clearTimeout(o)}if((h.response.body||h.response._bodyInit)&&!eZ.has(h.response.status)&&"HEAD"!==h.options.method){let e=(h.options.parseResponse?"json":h.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return eq.test(t)?"json":"text/event-stream"===t?"stream":eU.has(t)||t.startsWith("text/")?"text":"blob"}(h.response.headers.get("content-type")||"");switch(e){case"json":{let e=await h.response.text(),t=h.options.parseResponse||eD;h.response._data=t(e);break}case"stream":h.response._data=h.response.body||h.response._bodyInit;break;default:h.response._data=await h.response[e]()}}return(h.options.onResponse&&await eQ(h,h.options.onResponse),!h.options.ignoreResponseError&&h.response.status>=400&&h.response.status<600)?(h.options.onResponseError&&await eQ(h,h.options.onResponseError),await i(h)):h.response},l=async function(e,t){return(await a(e,t))._data};return l.raw=a,l.native=(...e)=>s(...e),l.create=(s={},r={})=>e({...t,...r,defaults:{...t.defaults,...r.defaults,...s}}),l}({fetch:eK,Headers:eW.Headers,AbortController:eW.AbortController});var eY=e.i(47167);function eX(e,t){return null==e?void 0:e[t]}function eJ(e){let t,s=(t="u"<typeof window?eY.default.env:window.__ENV,"string"==typeof e?eX(t,e):Object.fromEntries(e.map(e=>[e,eX(t,e)])));if(void 0===s)throw Error(`${e} is undefined`);return s}let e0=eG.create({baseURL:eJ("NEXT_PUBLIC_BFF_API")});var e1=e.i(58282);let e2="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),e3=new Uint8Array(16),e4=[];for(let e=0;e<256;++e)e4.push((e+256).toString(16).slice(1));let e5=function(e,s,r){if(e2&&!s&&!e)return e2();let n=(e=e||{}).random||(e.rng||function(){if(!t&&!(t="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e3)})();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,s){r=r||0;for(let e=0;e<16;++e)s[r+e]=n[e];return s}return function(e,t=0){return e4[e[t+0]]+e4[e[t+1]]+e4[e[t+2]]+e4[e[t+3]]+"-"+e4[e[t+4]]+e4[e[t+5]]+"-"+e4[e[t+6]]+e4[e[t+7]]+"-"+e4[e[t+8]]+e4[e[t+9]]+"-"+e4[e[t+10]]+e4[e[t+11]]+e4[e[t+12]]+e4[e[t+13]]+e4[e[t+14]]+e4[e[t+15]]}(n)};function e7(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)e[r]=s[r]}return e}var e6=function e(t,s){function r(e,r,n){if("u">typeof document){"number"==typeof(n=e7({},s,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in n)n[a]&&(i+="; "+a,!0!==n[a]&&(i+="="+n[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],r={},n=0;n<s.length;n++){var i=s[n].split("="),a=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(r[l]=t.read(a,l),e===l)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",e7({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,e7({},this.attributes,t))},withConverter:function(t){return e(e7({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},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 e8=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,e9={path:"/",domain:void 0};function te(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)e[r]=s[r]}return e}var tt=function e(t,s){function r(e,r,n){if("u">typeof document){"number"==typeof(n=te({},s,n)).expires&&(n.expires=new Date(Date.now()+864e5*n.expires)),n.expires&&(n.expires=n.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in n)n[a]&&(i+="; "+a,!0!==n[a]&&(i+="="+n[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("u">typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],r={},n=0;n<s.length;n++){var i=s[n].split("="),a=i.slice(1).join("=");try{var l=decodeURIComponent(i[0]);if(r[l]=t.read(a,l),e===l)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",te({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,te({},this.attributes,t))},withConverter:function(t){return e(te({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},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{browserId:ts,sessionId:tr}=function(e=e9){try{var t,s;let r=e6.get("browserId")||window.browserId||localStorage.getItem("browserId"),n=e6.get("browserSessionId")||window.browserSessionId||sessionStorage.getItem("browserSessionId")||sessionStorage.getItem("browserId");r&&e8.test(r)||(r=e5()),n&&e8.test(n)||(n=e5()),window.browserId=r,window.browserSessionId=n,localStorage.setItem("browserId",r),sessionStorage.setItem("browserId",n),sessionStorage.setItem("browserSessionId",n);let i={...e9,secure:(t=e.domain||location.origin,/^https:\/\//gi.test(t)),sameSite:"https:"===location.protocol?"None":"Lax",domain:(s=e.domain||location.hostname,["",...s.replace(/^http(s)?:\/\//gi,"").replace(/\/$/,"").split(".").slice(-2)].join("."))};return e6.set("browserId",r,Object.assign({},i,{expires:365})),e6.set("browserSessionId",n,i),{browserId:r,sessionId:n}}catch{return{browserId:null,sessionId:null}}}(),tn=tt.get("auth.gtm_customer_id");function ti(e,t,s){var r;r={event:"data_event",browser_id:ts,session_id:tr,customer_id:tn,eventCategory:e,eventAction:t,eventLabel:s?.eventLabel,eventValue:s?.eventValue},(0,e1.f)(r)}var ta=e.i(25871);let tl={src:e.i(66216).default,width:100,height:100,blurWidth:0,blurHeight:0},to={src:e.i(56329).default,width:100,height:100,blurWidth:0,blurHeight:0};function tu({open:e,onClose:t}){let[s,r]=(0,c.useState)(""),[n,i]=(0,c.useState)(""),[a,l]=(0,c.useState)(""),[o,d]=(0,c.useState)(""),[p,f]=(0,c.useState)(""),[g,m]=(0,c.useState)(null),[v,k]=(0,c.useState)(!1),[y,x]=(0,c.useState)(!1),b=async()=>{if(!s||!n||!a||!o){m(null),k(!1),f("Заполните все поля");return}x(!0),f("");try{let e;await (e={certificateSerial:a,certificateNumber:o,firstName:n,lastName:s},e0("api/v1/qualinvest/certificates/validate",{method:"POST",body:e})),ti("qualinvest_certificate_validation_result","valid"),m({result:"success",series:a,number:o}),k(!0)}catch(e){ti("qualinvest_certificate_validation_result",e instanceof e$&&404===e.statusCode?"not_found":"error"),m({result:"error",series:a,number:o}),k(!0)}finally{x(!1)}},_=()=>{k(!1),t(),r(""),i(""),l(""),d("")},C=()=>{k(!1)},w=g?.result==="success",A=g?.series&&g?.number?`Серия ${g.series}, номер ${g.number}`:"";return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(ej.f,{open:e,onClose:t,size:"m",dataQa:"certificate-check-modal",className:(0,h.f)(ta.default.modal),header:{title:"Проверка сертификата",align:"left"},"data-sentry-element":"Modal","data-sentry-source-file":"CertificateCheckModal.tsx",children:(0,u.jsxs)("div",{className:ta.default.form,children:[(0,u.jsxs)("div",{className:ta.default.fields,children:[(0,u.jsx)(eR.f,{label:"Фамилия",state:"default",onChange:r,value:s,dataQa:"certificate-last-name","data-sentry-element":"InputBase","data-sentry-source-file":"CertificateCheckModal.tsx"}),(0,u.jsx)(eR.f,{label:"Имя",state:"default",onChange:i,value:n,dataQa:"certificate-first-name","data-sentry-element":"InputBase","data-sentry-source-file":"CertificateCheckModal.tsx"}),(0,u.jsx)(eR.f,{label:"Серия сертификата",state:"default",onChange:l,value:a,dataQa:"certificate-series","data-sentry-element":"InputBase","data-sentry-source-file":"CertificateCheckModal.tsx"}),(0,u.jsx)(eR.f,{label:"Номер сертификата",state:"default",onChange:d,value:o,dataQa:"certificate-number","data-sentry-element":"InputBase","data-sentry-source-file":"CertificateCheckModal.tsx"})]}),(0,u.jsx)(eg.f,{label:"Проверить сертификат",onClick:b,disabled:y,size:"m",stretch:!0,dataQa:"certificate-check-button","data-sentry-element":"Button","data-sentry-source-file":"CertificateCheckModal.tsx"}),p&&(0,u.jsx)(eA.f,{as:"p",size:"16",className:ta.default.message,children:p})]})}),(0,u.jsx)(ej.f,{open:v,onClose:w?_:C,size:"m",dataQa:"certificate-status-modal",className:(0,h.f)(ta.default.modal),header:{},"data-sentry-element":"Modal","data-sentry-source-file":"CertificateCheckModal.tsx",children:(0,u.jsxs)("div",{className:ta.default.statusContent,"data-qa":w?"certificate-status-success":"certificate-status-error",children:[(0,u.jsx)(O.Image,{src:w?to.src:tl.src,width:w?to.width:tl.width,height:w?to.height:tl.height,className:ta.default.statusIcon,alt:w?"Сертификат найден":"Сертификат не найден","data-sentry-element":"Image","data-sentry-source-file":"CertificateCheckModal.tsx"}),(0,u.jsx)(eb,{as:"h3",type:"h2",className:ta.default.statusTitle,"data-sentry-element":"Heading","data-sentry-source-file":"CertificateCheckModal.tsx",children:"Сертификат"}),A&&(0,u.jsx)(eA.f,{as:"p",size:"16",className:ta.default.statusDescription,children:A}),(0,u.jsx)(eA.f,{as:"p",size:"16",weight:"bold",className:ta.default.statusVerdict,"data-sentry-element":"Text","data-sentry-source-file":"CertificateCheckModal.tsx",children:w?"валиден":"не найден"}),(0,u.jsx)(eg.f,{label:w?"Понятно":"Проверить другой номер",onClick:w?_:C,variant:w?"primary":"secondary",size:"m",stretch:!0,className:ta.default.statusButton,dataQa:"certificate-status-button","data-sentry-element":"Button","data-sentry-source-file":"CertificateCheckModal.tsx"})]})})]})}var tc=e.i(65019),th=e.i(49427);let td={clock:(0,u.jsx)(H,{size:24}),flag:(0,u.jsx)(es,{size:24}),cup:(0,u.jsx)(W,{size:24}),stream:(0,u.jsx)(ec,{size:24}),document:(0,u.jsx)(G,{size:24}),shield:(0,u.jsx)(eo,{size:24})};function tp({info:e,dataQa:t}){return(0,u.jsxs)("section",{className:th.default.info,"data-sentry-component":"Info","data-sentry-source-file":"Info.tsx",children:[(0,u.jsx)(eb,{dataQa:`${t}-title`,className:th.default.infoTitle,as:"h2",type:"display","data-sentry-element":"Heading","data-sentry-source-file":"Info.tsx",children:e.title}),e.description&&(0,u.jsx)(eA.f,{dataQa:`${t}-description`,className:th.default.infoDescription,as:"p",size:"18",weight:"regular",children:e.description}),(0,u.jsx)("div",{"data-qa":`${t}-cards`,className:th.default.infoCards,children:e.cards.map(e=>(0,u.jsxs)(tc.f,{dataQa:`${t}-cards-item`,className:th.default.infoCardsItem,children:[(0,u.jsxs)("div",{className:th.default.infoCardsItemHead,children:[td[e.icon],(0,u.jsx)(eA.f,{dataQa:`${t}-cards-item-title`,as:"p",size:"18",weight:"medium",children:e.title})]}),(0,u.jsx)(eA.f,{dataQa:`${t}-cards-item-text`,className:th.default.infoCardsItemDescription,as:"p",size:"16",weight:"regular",dangerouslySetInnerHTML:{__html:e.text}})]},crypto.randomUUID()))})]})}var O=O,tf=e.i(13337);let tg={src:e.i(43730).default,width:220,height:63,blurWidth:0,blurHeight:0};function tm({text:e}){return(0,u.jsx)("section",{"data-sentry-component":"InnsWeb","data-sentry-source-file":"InnsWeb.tsx",children:(0,u.jsxs)(tc.f,{dataQa:"innsweb-card",className:tf.default.card,"data-sentry-element":"Card","data-sentry-source-file":"InnsWeb.tsx",children:[(0,u.jsx)(O.Image,{"data-qa":"innsweb-logo",src:tg.src,width:tg.width,height:tg.height,alt:"logo","data-sentry-element":"Image","data-sentry-source-file":"InnsWeb.tsx"}),(0,u.jsx)(eA.f,{dataQa:"innsweb-text",as:"p",size:"18","data-sentry-element":"Text","data-sentry-source-file":"InnsWeb.tsx",children:e})]})})}var O=O;e.i(22016),e.i(69910),e.i(33642).default;var tv=e.i(46381),tk=e.i(43489),ty=e.i(53760),tx=e.i(58950),tb=e.i(2753),t_=e.i(14044);let tC=(0,ev.g)("tooltip"),tw=Object.freeze({tooltip:tC,text:`${tC}__text`,wrapper:`${tC}__wrapper`,inverted:`${tC}--inverted`}),tA=({children:e,moveToBody:t})=>t?(0,u.jsx)(tk.r,{id:tb.T,children:e}):(0,u.jsx)(u.Fragment,{children:e}),tE=(0,c.forwardRef)(({position:e="top",text:t,zIndex:s=1,inverted:r,withoutTail:n,children:i,boundingOffset:a=12,boundaryPadding:l,moveToBody:o=!1,hideWhenOutOfBounds:d=!1,style:p,className:f,dataQa:g,dataId:m,...v},k)=>{let[y,x]=(0,c.useState)(!1),b=(0,c.useRef)(null),{refs:_,floatingStyles:C,context:w,middlewareData:A}=(0,tk.E)({open:y,onOpenChange:x,placement:e,whileElementsMounted:ty.n,middleware:[(0,tx.T)({mainAxis:a}),(0,tx.x)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==l&&{padding:l}}),(0,tx.e)({...void 0!==l&&{padding:l}}),(0,tx.P)({element:b,padding:8}),...d?[(0,tx.c)({strategy:"escaped",padding:-24})]:[]]}),E=(0,tk.V)(w,{delay:300}),{getReferenceProps:S,getFloatingProps:I}=(0,tk.t)([E]),B=(0,tk.z)(w,{duration:300});return(0,c.useImperativeHandle)(k,()=>({getActivatorElement:_.reference,getTooltipElement:_.floating})),(0,c.useEffect)(()=>{var e;(null==(e=A.hide)?void 0:e.escaped)&&x(!1)},[A.hide]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{"data-qa":(0,t_.g)(`${g}-activator`,!!g),ref:_.setReference,...S,className:tw.wrapper,children:i}),B.isMounted&&(0,u.jsx)(tA,{moveToBody:o,children:(0,u.jsxs)("div",{role:"tooltip",ref:_.setFloating,style:{...C,...B.styles,...p,zIndex:s},className:(0,h.f)(tw.tooltip,f,{[tw.inverted]:r}),...I,...v,"data-qa":g,"data-id":m,children:[(0,u.jsx)("span",{className:(0,h.f)(tw.text,{[tw.inverted]:r}),children:t}),!n&&(0,u.jsx)(tk.$,{ref:b,context:w,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:r?"var(--color-white)":"var(--color-black-500)"})]})})]})});tE.displayName="Tooltip";var tS=e.i(71207);function tI({scheduleData:e,schedules:t,onSignUp:s}){let[r,n]=(0,c.useState)(null),[i,a]=(0,c.useState)(null),[l,o]=(0,c.useState)(!1),d=(0,c.useMemo)(()=>t.toSorted((e,t)=>new Date(e.date).getTime()-new Date(t.date).getTime()).map(e=>{var t;return{id:e.date,label:(t=e.date,new Intl.DateTimeFormat("ru-RU",{weekday:"short",day:"numeric",month:"long"}).format(new Date(t)))}}),[t]),p=(0,c.useMemo)(()=>(t.find(e=>e.date===r)?.items??[]).toSorted((e,t)=>new Date(e.eventDatetime).getTime()-new Date(t.eventDatetime).getTime()).map(e=>{var t;return{id:e.id,label:(t=e.eventDatetime,new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(t)))}}),[r,t]);return(0,u.jsxs)("section",{"data-qa":"registration-schedule",className:tS.default.registrationSchedule,"data-sentry-component":"Schedule","data-sentry-source-file":"Schedule.tsx",children:[(0,u.jsxs)(tc.f,{dataQa:"registration-schedule-card",className:tS.default.registrationScheduleCard,"data-sentry-element":"Card","data-sentry-source-file":"Schedule.tsx",children:[(0,u.jsx)(eb,{as:"h2",type:"h1",weight:"medium",dataQa:"registration-schedule-card-title","data-sentry-element":"Heading","data-sentry-source-file":"Schedule.tsx",children:e.title}),(0,u.jsxs)("div",{className:tS.default.schedule,children:[(0,u.jsxs)("div",{className:tS.default.scheduleContent,children:[(0,u.jsx)("div",{className:tS.default.scheduleContentText,children:(0,u.jsx)(eA.f,{as:"span",className:(0,h.f)(tS.default.scheduleContentCaption,l&&!r&&tS.default.scheduleContentCaptionError),size:"18",dataQa:"schedule-picker-caption-date","data-sentry-element":"Text","data-sentry-source-file":"Schedule.tsx",children:"Дата"})}),(0,u.jsx)(tv.f,{chips:d,onChipClick:(e,t,s)=>{n(s),ti("qualinvest_block_sign_up_for_testing","select_date_button_click",{eventValue:`${s}`}),o(!1)},dataQa:"schedule-picker-chip-date",size:"l",variant:"primary","data-sentry-element":"Chips","data-sentry-source-file":"Schedule.tsx"})]}),r&&(0,u.jsxs)("div",{className:tS.default.scheduleContent,children:[(0,u.jsxs)("div",{className:tS.default.scheduleContentText,children:[(0,u.jsx)(eA.f,{className:(0,h.f)(tS.default.scheduleContentCaption,l&&!i&&tS.default.scheduleContentCaptionError),as:"span",size:"18",dataQa:"schedule-picker-caption-time",children:"Выберите время"}),(0,u.jsx)(tE,{boundingOffset:4,inverted:!0,position:"top",text:"Московское время (GMT+3)",zIndex:1,dataQa:"schedule-picker-tooltip",children:(0,u.jsx)(en,{size:16,boxSize:24})})]}),(0,u.jsx)(tv.f,{chips:p,onChipClick:(e,t,s)=>{a(s),ti("qualinvest_block_sign_up_for_testing","select_time_button_click",{eventValue:`${s}`}),o(!1)},size:"l",dataQa:"schedule-picker-chip-time",variant:"primary"})]})]}),(0,u.jsx)(eg.f,{className:tS.default.registrationScheduleCardButton,dataQa:"registration-schedule-card-button",label:"Записаться",onClick:()=>{r&&i?(ti("qualinvest_block_sign_up_for_testing","sign_up_button_click"),s(String(i))):o(!0)},size:"m","data-sentry-element":"Button","data-sentry-source-file":"Schedule.tsx"})]}),(0,u.jsx)("div",{"data-qa":"registration-schedule-info",className:tS.default.registrationScheduleInfo,children:e.steps.map((t,s)=>(0,u.jsxs)("div",{"data-qa":"registration-schedule-info-item",className:tS.default.registrationScheduleInfoItem,children:[(0,u.jsxs)("div",{className:tS.default.registrationScheduleInfoItemNumber,children:[(0,u.jsx)(eA.f,{dataQa:"registration-schedule-info-item-number",className:tS.default.registrationScheduleInfoItemNumberText,as:"span",size:"14",children:s+1}),s+1<e.steps.length&&(0,u.jsx)("div",{className:tS.default.registrationScheduleInfoItemNumberDivider})]}),(0,u.jsxs)("div",{className:tS.default.registrationScheduleInfoItemContent,children:[(0,u.jsx)(eA.f,{dataQa:"registration-schedule-info-item-title",as:"p",size:"16",children:t.title}),(0,u.jsx)(eA.f,{dataQa:"registration-schedule-info-item-text",as:"span",size:"14",children:t.text})]})]},crypto.randomUUID()))})]})}var tB=e.i(93826);let tT={chartSquare:(0,u.jsx)(q,{size:24}),percentCircle:(0,u.jsx)(ea,{size:24}),walletAdd:(0,u.jsx)(ed,{size:24}),dollarSquare:(0,u.jsx)(X,{size:24}),fireSquare:(0,u.jsx)(ee,{size:24}),parametersVertical:(0,u.jsx)(P,{size:24}),yuanCircle:(0,u.jsx)(ef,{size:24})};function tF({tags:e}){return(0,u.jsxs)("section",{"data-qa":"section-tags",className:tB.default.tags,"data-sentry-component":"Tags","data-sentry-source-file":"Tags.tsx",children:[(0,u.jsxs)("div",{className:tB.default.tagsContent,children:[(0,u.jsx)(eb,{as:"h2",type:"h1",weight:"medium",dataQa:"tags-title","data-sentry-element":"Heading","data-sentry-source-file":"Tags.tsx",children:e.title}),(0,u.jsx)(eA.f,{dataQa:"tags-description",as:"p",size:"18",className:tB.default.tagsDescription,"data-sentry-element":"Text","data-sentry-source-file":"Tags.tsx",children:e.description})]}),(0,u.jsx)("div",{"data-qa":"tags-list",className:tB.default.tagsList,children:e.cards.map(e=>(0,u.jsxs)("div",{"data-qa":"tags-list-item",className:tB.default.tagsListItem,children:[(0,u.jsx)("div",{"data-qa":"tags-list-item-icon",className:tB.default.tagsListItemCircle,children:tT[e.icon]}),(0,u.jsx)(eA.f,{dataQa:"tags-list-item-text",as:"p",size:"18",children:e.text})]},crypto.randomUUID()))})]})}var tR=e.i(3315),tj=e.i(2404);let tM=(0,ev.g)("accordion"),tO=(0,ev.g)("accordion-item"),tN=Object.freeze({accordionItem:tO,accordionItemInner:`${tO}__inner`,body:`${tO}__body`,header:`${tO}__header`,content:`${tO}__content`,contentInner:`${tO}__content-inner`,controlIcon:`${tO}__control-icon`,titleWrapper:`${tO}__title-wrapper`,title:`${tO}__title`,icon:`${tO}__icon`,toggleIcon:`${tO}__toggle-icon`,subTitle:`${tO}__subtitle`,caption:`${tO}__caption`,states:{disabled:`${tO}--disabled`,active:`${tO}--active`,focused:`${tO}--focused`,withControl:`${tO}--with-control`,withIcon:`${tO}--with-icon`}}),tL=Object.freeze({accordion:tM,withoutOutline:`${tM}--without-outline`,variants:{primary:`${tM}--primary`,secondary:`${tM}--secondary`}}),tD=(0,c.forwardRef)(({multiple:e=!1,children:t,activeIndex:s,defaultActiveIndex:r=[],className:n,variant:i="primary",withoutOutline:a=!1,style:l,dataQa:o,dataId:d,onTabToggle:p,...f},g)=>{let[m,v]=(0,c.useState)(r),k=void 0!==s,y=k?s:m,x=(e,t,s)=>s?e.includes(t)?e.filter(e=>e!==t):[...e,t]:e.includes(t)?[]:[t];return(0,u.jsx)("div",{ref:g,className:(0,h.f)(n,tL.accordion,tL.variants[i],{[tL.withoutOutline]:a}),style:l,...f,"data-id":d,"data-qa":o,children:c.Children.map(t,t=>(0,c.isValidElement)(t)?(0,c.cloneElement)(t,{isActive:y.includes(t.props.id),onToggle:s=>{var r=t.props.id;if(k){let t=x(y,r,e);null==p||p(t,s)}else v(t=>x(t,r,e))}}):t)})});function tz(e){return c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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"}))}tD.displayName="Accordion";let t$=e=>{let t=Array.from(document.querySelectorAll("[data-accordion-index]"));if(0===t.length)return;let s=t.findIndex(e=>e===document.activeElement),r=s;switch(e){case"next":r=(s+1)%t.length;break;case"previous":r=(s-1+t.length)%t.length}let n=0;for(;n++<t.length;){let s=t[r];if("true"!==s.getAttribute("data-disabled"))return void s.focus();r=(r+("next"===e?1:-1)+t.length)%t.length}},tV=(0,c.forwardRef)(({id:e,title:t,tagTitle:s="span",subTitle:r,disabled:n=!1,isActive:i=!1,icon:a,controlIcon:l,errorMessage:o,children:d,className:p,style:f,dataQa:g,dataId:m,onControlClick:v,onToggle:k,...y},x)=>{let b=(0,c.useRef)(null),_=(0,c.useRef)(null),C=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=b.current,t=_.current;if(!e||!t)return;e.style.minHeight=i?t.scrollHeight+"px":"0",e.style.height=i?t.scrollHeight+"px":"0";let s=new ResizeObserver(()=>{i&&(e.style.minHeight=t.scrollHeight+"px",e.style.height=t.scrollHeight+"px")});return s.observe(t),()=>s.disconnect()},[i]);let w=!l&&!!a;return(0,u.jsxs)("div",{ref:x,className:(0,h.f)(p,tN.accordionItem),style:f,...y,"data-id":m,"data-qa":g,children:[(0,u.jsx)("div",{className:(0,h.f)(tN.accordionItemInner),children:(0,u.jsxs)("div",{className:(0,h.f)(tN.body,[{[tN.states.disabled]:n}]),children:[(0,u.jsxs)("button",{type:"button","aria-expanded":i,"aria-disabled":n,"data-disabled":n,"data-accordion-index":e,className:(0,h.f)(tN.header,[{[tN.states.active]:i}]),tabIndex:n?-1:0,onClick:n?void 0:k,ref:C,disabled:n,onKeyDown:e=>{if(!n)switch(e.key){case"Enter":case" ":e.preventDefault(),null==k||k(e);break;case"ArrowDown":e.preventDefault(),t$("next");break;case"ArrowUp":e.preventDefault(),t$("previous")}},children:[(0,u.jsxs)("div",{className:(0,h.f)(tN.titleWrapper),children:[w&&(0,u.jsx)("span",{className:tN.icon,children:a}),(0,u.jsx)(s,{className:(0,h.f)(tN.title,{[tN.states.withControl]:l}),children:t}),(0,u.jsx)(tj.P,{className:(0,h.f)(tN.toggleIcon,[{[tN.states.active]:i},{[tN.states.withControl]:l}]),children:(0,u.jsx)(tz,{})}),l&&(0,u.jsx)(tj.P,{className:tN.controlIcon,onClick:e=>{var t;l&&e.stopPropagation(),null==(t=C.current)||t.blur(),null==v||v(e)},children:l})]}),r&&(0,u.jsx)("span",{className:(0,h.f)(tN.subTitle,[{[tN.states.withIcon]:w}]),children:r})]}),(0,u.jsx)("div",{className:(0,h.f)(tN.content),style:{overflow:"hidden"},"aria-hidden":!i,ref:b,children:(0,u.jsx)("div",{className:tN.contentInner,ref:_,children:d})})]})}),o&&(0,u.jsx)(tR.C,{withoutIcon:!0,state:"error",text:o})]})});tV.displayName="AccordionItem";var tP=e.i(60822),tU=e.i(56239),tq=e.i(93562);e.i(46401);var tQ=e.i(34986),tH=e.i(22468);let tZ=(0,tH.g)("check-all","sc"),tW=Object.freeze({wrapper:`${tZ}__wrapper`,link:`${tZ}__link`,icon:`${tZ}__icon`,iconGray:`${tZ}__icon--gray`}),tK=({children:e,className:t,linkClassName:s,iconGrayBackground:r,Link:n,event:i,href:a,dataLayerPush:l,onClick:o})=>{let c=n??tQ.f;return(0,u.jsx)("div",{className:(0,h.f)(tW.wrapper,t),onClick:()=>{i&&l(i)},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(null==o||o())},children:(0,u.jsxs)(c,{className:(0,h.f)(tW.link,s),href:a,children:[e,(0,u.jsx)("span",{className:(0,h.f)(tW.icon,{[tW.iconGray]:r}),children:(0,u.jsx)(tq.K,{size:24})})]})})},tG=e=>{e.data.forEach((t,s)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[s-1].type&&(e.banner=e.data.splice(s-1,1)),"banner"===e.data[s+1].type&&(e.banner=e.data.splice(s+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(s,0,e.banner[0]))})},tY=(0,tH.g)("faq-content-block","sc"),tX=Object.freeze({contentBlocks:`${tY}__content-blocks`,blockLink:`${tY}__block-link`,keynoteWrapper:`${tY}__keynote-wrapper`,keynote:`${tY}__keynote`,annotation:`${tY}__annotation`,contentTableWrapper:`${tY}__content-table-wrapper`}),tJ=({className:e,data:t})=>{let s,r,n,i;if(!Array.isArray(t))return null;let a=(s=[],r=1,tG(n={data:t,headerBlocksCount:0,banner:[]}),tG(n),i={},t.forEach(e=>{var t,n,a,l;let o,c=(o=(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!=(l=e.data)&&l.year?String(e.data.year):""),i[e.type]=(i[e.type]??0)+1,`${e.type}-${String(o).slice(0,80)}-${i[e.type]}`);switch(e.type){case"header":s.push((0,u.jsx)("h2",{id:`content_header_${r}`,role:"header",children:e.data.text||""},c)),r++;break;case"sub_header":s.push((0,u.jsx)("h3",{role:"sub-header",children:e.data.text||""},c));break;case"paragraph":s.push((0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"paragraph"},c));break;case"link":s.push((0,u.jsx)("div",{className:tX.blockLink,children:(0,u.jsx)("a",{target:"_blank",href:e.data.url||"",role:"link",rel:"noreferrer",children:e.data.text||""})},c));break;case"dossier":s.push((0,u.jsxs)("div",{children:[(0,u.jsx)("span",{role:"dossier-year",children:e.data.year||""}),(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"dossier-text"})]},c));break;case"html":s.push((0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.html||""},role:"html"},c));break;case"annotation":s.push((0,u.jsx)("div",{className:tX.annotation,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"annotation"},c));break;case"company-annotation":s.push((0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"company-annotation"},c));break;case"keynote":s.push((0,u.jsx)("div",{className:tX.keynoteWrapper,children:(0,u.jsx)("p",{className:tX.keynote,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"keynote"})},c));break;case"image":s.push((0,u.jsx)("img",{src:e.data.url||"",alt:"image",loading:"lazy"},c))}}),s);return(0,u.jsx)("div",{className:(0,h.f)(tX.contentBlocks,e),role:"blocks",children:a})},t0=(0,tH.g)("faq-block","sc"),t1=Object.freeze({faqBlock:t0,titleWrapper:`${t0}__title-wrapper`,title:`${t0}__title`,accordionWrapper:`${t0}__accordion-wrapper`,accordionItems:`${t0}__accordion-items`,accordionItemGray:`${t0}__accordion-item--gray`,accordionItemContent:`${t0}__accordion-item-content`,accordionActiveItemContent:`${t0}__accordion-item-content--active`,states:{primary:`${t0}--primary`,secondary:`${t0}--secondary`,gray:`${t0}--gray`}}),t2=({question:e,eventCategory:t,dataLayerPush:s,...r})=>(0,u.jsx)(tV,{...r,title:e.question,children:(0,u.jsx)("div",{className:(0,h.f)(t1.accordionItemContent,{[t1.accordionActiveItemContent]:r.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&s({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(e=>{if(typeof window>"u")return;let{pathname:t}=window.location;"/"!==t&&"/home"!==t&&"/home/"!==t||(t=>{try{e({event:"data-event",eventCategory:t,eventAction:"click_button",eventLabel:"undefined",eventNameCard:"undefined",eventUrl:"undefined",eventValue:"undefined"})}catch{return}})("ab_homepage_krome_vkladov")})(s)},children:"string"==typeof e.answer?(0,u.jsx)(tJ,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),t3=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:s=[],href:r,checkAllText:n,Link:i,className:a,eventCategory:l="cb-faq",multiple:o=!1,variant:d="secondary",dataLayerPush:p,tagTitle:f})=>{let g=Array.isArray(s)?s:[],m=o?g.map(e=>e.question):[],[v,k]=(0,c.useState)(m);if(!g.length)return null;let y="gray"===d;return(0,u.jsx)("section",{className:(0,h.f)(t1.faqBlock,t1.states[d],a),children:(0,u.jsxs)(tP.f,{children:[!t&&(0,u.jsx)("div",{className:t1.titleWrapper,children:(0,u.jsx)(eb,{as:"h2",type:"display",className:t1.title,children:e})}),(0,u.jsxs)("div",{className:t1.accordionWrapper,children:[t&&(0,u.jsx)(eb,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,h.f)(t1.title,`${t1.title}--inner`),children:t}),(0,u.jsx)("div",{className:t1.accordionItems,children:(0,u.jsx)(tD,{activeIndex:v,variant:y?"primary":"secondary",withoutOutline:y,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==v?void 0:v.length),s=e.filter(e=>!v.includes(e))[0]||v.filter(t=>!e.includes(t))[0];p({event:"data-event",eventCategory:l,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,tU.t)(String(s))}),k(e);let r=`[data-accordion-index="${s}"]`,n=document.querySelector(r);n&&setTimeout(()=>{let{top:e}=n.getBoundingClientRect();e<80&&n.scrollIntoView({behavior:"smooth",block:"start"})},300)},multiple:o,children:g.map(e=>{let t=`faq-${e.question}`;return(0,u.jsx)(t2,{id:t,question:e,dataLayerPush:p,eventCategory:l,className:y?t1.accordionItemGray:void 0,tagTitle:f},t)})})}),r&&n&&(0,u.jsx)(tK,{href:r,event:{event:"data-event",eventCategory:l,eventAction:"сlick_link_answer-link",eventLabel:r},dataLayerPush:p,...null!=i?{Link:i}:{},iconGrayBackground:!0,children:n})]})]})})};var t4=e.i(63687);let t5=(0,tH.g)("support","sc"),t7=Object.freeze({support:t5,title:`${t5}__title`,cardsContainer:`${t5}__cards-container`}),t6="cb-support",t8=(0,tH.g)("support-app-card","sc"),t9=Object.freeze({supportAppCard:t8,textWrapper:`${t8}__text-wrapper`,imageContainer:`${t8}__image-container`,title:`${t8}__title`,description:`${t8}__description`,button:`${t8}__button`,imageWrapper:`${t8}__image-wrapper`,image:`${t8}__image`}),se=({title:e,linkUrl:t,s3Assets:s,description:r})=>{let n=(0,eE.k)("s");return(0,u.jsxs)("div",{className:t9.supportAppCard,onClick:()=>{n&&((0,t4.h)({eventCategory:t6,eventActionType:t4.D.banner,eventActionText:e,eventLabel:t}),window.open(t,"_blank","noreferrer"))},children:[(0,u.jsx)(eg.f,{className:t9.button,iconLeft:(0,u.jsx)(tq.K,{size:24}),shape:"circle-icon",size:"xs"}),(0,u.jsxs)("div",{className:t9.textWrapper,children:[(0,u.jsx)("div",{className:t9.title,children:e}),!!r&&(0,u.jsx)("div",{className:t9.description,children:r})]}),(0,u.jsx)("div",{className:t9.imageContainer,children:(0,u.jsxs)("picture",{className:t9.imageWrapper,children:[(0,u.jsx)("source",{media:"(max-width: 767px)",srcSet:`${s}/mp-assets/widgets/SupportBlock/mobile-app.webp 1x, ${s}/mp-assets/widgets/SupportBlock/mobile-app@2x.webp 2x`}),(0,u.jsx)("img",{className:t9.image,loading:"lazy",src:`${s}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.webp`,srcSet:`${s}/mp-assets/widgets/SupportBlock/qr-code-mobile-app.webp 1x, ${s}/mp-assets/widgets/SupportBlock/qr-code-mobile-app@2x.webp 2x`})]})})]})},st=(0,tH.g)("support-phone-card","sc"),ss=Object.freeze({supportPhoneCard:st,contacts:`${st}__contacts`,contactsExtra:`${st}__contacts-extra`,phone:`${st}__phone`,phonesExtra:`${st}__phones-extra`,phoneExtra:`${st}__phone-extra`,chat:`${st}__chat`,text:`${st}__text`,image:`${st}__image`}),sr=({phones:e,phonesExtra:t,description:s,s3Assets:r})=>{let n=(0,c.useCallback)(()=>{var e,t,s;null==(s=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)||s.call(t),(0,t4.h)({eventCategory:t6,eventActionType:t4.D.button,eventActionText:"messenger",eventLabel:"chat"})},[]),i=e=>{let t=e.replace(/[\s-]/g,"");(0,t4.h)({eventCategory:t6,eventActionType:t4.D.link,eventActionText:"phone",eventLabel:t})};return(0,u.jsxs)("div",{className:ss.supportPhoneCard,children:[(0,u.jsxs)("div",{className:ss.contacts,children:[e.map(e=>(0,u.jsx)("a",{className:ss.phone,href:e.href,onClick:()=>i(e.label),children:e.label},e.label)),(0,u.jsx)("span",{className:ss.chat,onClick:n,children:"Онлайн чат"})]}),(null==t?void 0:t.length)>0&&(0,u.jsxs)("div",{className:ss.contactsExtra,children:[(0,u.jsx)("p",{className:ss.text,children:"Дополнительные телефоны"}),(0,u.jsx)("div",{className:ss.phonesExtra,children:t.map(e=>(0,u.jsx)("a",{className:ss.phoneExtra,href:e.href,onClick:()=>i(e.label),children:e.label},e.label))})]}),(0,u.jsx)("p",{className:ss.text,children:s}),(0,u.jsx)("img",{className:ss.image,src:`${r}/mp-assets/widgets/SupportBlock/bannerSupportGirl.webp`,loading:"lazy"})]})},sn=({className:e,phoneCard:t,appCard:s,s3Assets:r})=>t&&s?(0,u.jsx)("section",{className:(0,h.f)(t7.support,e),children:(0,u.jsxs)(tP.f,{children:[(0,u.jsx)(eb,{as:"h2",type:"display",weight:"bold",className:t7.title,children:"Поддержка"}),(0,u.jsxs)("div",{className:t7.cardsContainer,children:[(0,u.jsx)(sr,{s3Assets:r,...t}),(0,u.jsx)(se,{s3Assets:r,...s})]})]})}):null;sn.displayName="Support";var si=e.i(90303);let sa=eJ("NEXT_PUBLIC_S3_ASSETS");function sl({faq:e,support:t}){return(0,u.jsxs)("section",{className:si.default.widgets,"data-sentry-component":"Widgets","data-sentry-source-file":"Widgets.tsx",children:[(0,u.jsx)(sn,{className:si.default.support,...t,s3Assets:sa,"data-sentry-element":"Support","data-sentry-source-file":"Widgets.tsx"}),(0,u.jsx)("div",{"data-qa":"section-faq",children:(0,u.jsx)(t3,{eventCategory:"qualinvest_faq",variant:"secondary",questions:e,className:si.default.faq,sectionTitle:"Частые вопросы",dataLayerPush:e=>ti(e.eventCategory,e.eventAction,{eventLabel:e.eventLabel,eventValue:e.eventLabel}),"data-sentry-element":"FAQBlock","data-sentry-source-file":"Widgets.tsx"})})]})}let so=async(e,t="common",s="v1")=>{try{let r=await fetch((0,ez.W)(e,`api/${s}/login-widget`,t));return r.ok?await r.json():(console.error(`Ошибка ${r.status} при загрузке конфига для ${t}`),{})}catch(e){return console.error(`Сетевая ошибка при загрузке конфига для ${t}`,e),{}}};var su=u;let sc=function(){for(var e,t,s=0,r="";s<arguments.length;)(e=arguments[s++])&&(t=function e(t){var s,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t))for(s=0;s<t.length;s++)t[s]&&(r=e(t[s]))&&(n&&(n+=" "),n+=r);else for(s in t)t[s]&&(n&&(n+=" "),n+=s);return n}(e))&&(r&&(r+=" "),r+=t);return r};var sh=e.i(96347);function sd(e){return"string"==typeof e||e instanceof String}function sp(e){var t;return"object"==typeof e&&null!=e&&(null==e||null==(t=e.constructor)?void 0:t.name)==="Object"}let sf="NONE",sg="LEFT",sm="FORCE_LEFT",sv="RIGHT",sk="FORCE_RIGHT";function sy(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function sx(e,t){let s;if(t===e)return!0;let r=Array.isArray(t),n=Array.isArray(e);if(r&&n){if(t.length!=e.length)return!1;for(s=0;s<t.length;s++)if(!sx(t[s],e[s]))return!1;return!0}if(r!=n)return!1;if(t&&e&&"object"==typeof t&&"object"==typeof e){let r=t instanceof Date,n=e instanceof Date;if(r&&n)return t.getTime()==e.getTime();if(r!=n)return!1;let i=t instanceof RegExp,a=e instanceof RegExp;if(i&&a)return t.toString()==e.toString();if(i!=a)return!1;let l=Object.keys(t);for(s=0;s<l.length;s++)if(!Object.prototype.hasOwnProperty.call(e,l[s]))return!1;for(s=0;s<l.length;s++)if(!sx(e[l[s]],t[l[s]]))return!1;return!0}return!!t&&!!e&&"function"==typeof t&&"function"==typeof e&&t.toString()===e.toString()}class sb{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?sf:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?sv:sg}}function s_(e,t){return new s_.InputMask(e,t)}function sC(e){if(null==e)throw Error("mask property should be defined");return e instanceof RegExp?s_.MaskedRegExp:sd(e)?s_.MaskedPattern:e===Date?s_.MaskedDate:e===Number?s_.MaskedNumber:Array.isArray(e)||e===Array?s_.MaskedDynamic:s_.Masked&&e.prototype instanceof s_.Masked?e:s_.Masked&&e instanceof s_.Masked?e.constructor:e instanceof Function?s_.MaskedFunction:(console.warn("Mask not found for mask",e),s_.Masked)}function sw(e){if(!e)throw Error("Options in not defined");if(s_.Masked){if(e.prototype instanceof s_.Masked)return{mask:e};let{mask:t,...s}=e instanceof s_.Masked?{mask:e}:sp(e)&&e.mask instanceof s_.Masked?e:{};if(t){let e=t.mask;return{...function e(t,s){return Array.isArray(s)?e(t,(e,t)=>s.includes(t)):Object.entries(t).reduce((e,t)=>{let[r,n]=t;return s(n,r)&&(e[r]=n),e},{})}(t,(e,t)=>!t.startsWith("_")),mask:t.constructor,_mask:e,...s}}}return sp(e)?{...e}:{mask:e}}function sA(e){if(s_.Masked&&e instanceof s_.Masked)return e;let t=sw(e),s=sC(t.mask);if(!s)throw Error("Masked class is not found for provided mask "+t.mask+", appropriate module needs to be imported manually before creating mask.");return t.mask===s&&delete t.mask,t._mask&&(t.mask=t._mask,delete t._mask),new s(t)}s_.createMask=sA;class sE{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return null!=e?e:this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return null!=e?e:this.value.length}select(e,t){if(null!=e&&null!=t&&(e!==this.selectionStart||t!==this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}s_.MaskElement=sE;class sS extends sE{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,s;return null!=(e=null==(t=(s=this.input).getRootNode)?void 0:t.call(s))?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){return this._handlers.redo&&(90===e.keyCode&&e.shiftKey&&(e.metaKey||e.ctrlKey)||89===e.keyCode&&e.ctrlKey)?(e.preventDefault(),this._handlers.redo(e)):this._handlers.undo&&90===e.keyCode&&(e.metaKey||e.ctrlKey)?(e.preventDefault(),this._handlers.undo(e)):void(!e.isComposing&&this._handlers.selectionChange(e))}_onBeforeinput(e){return"historyUndo"===e.inputType&&this._handlers.undo?(e.preventDefault(),this._handlers.undo(e)):"historyRedo"===e.inputType&&this._handlers.redo?(e.preventDefault(),this._handlers.redo(e)):void 0}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}s_.HTMLMaskElement=sS;class sI extends sS{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return null!=this.input.selectionStart?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}s_.HTMLMaskElement=sS;class sB extends sS{get _unsafeSelectionStart(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,r=t&&t.focusOffset;return null==r||null==s||s<r?s:r}get _unsafeSelectionEnd(){let e=this.rootElement,t=e.getSelection&&e.getSelection(),s=t&&t.anchorOffset,r=t&&t.focusOffset;return null==r||null==s||s>r?s:r}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;let s=this.rootElement.createRange();s.setStart(this.input.firstChild||this.input,e),s.setEnd(this.input.lastChild||this.input,t);let r=this.rootElement,n=r.getSelection&&r.getSelection();n&&(n.removeAllRanges(),n.addRange(s))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}s_.HTMLContenteditableMaskElement=sB;class sT{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return 0===this.states.length}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>sT.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}sT.MAX_LENGTH=100,s_.InputMask=class{constructor(e,t){this.el=e instanceof sE?e:e.isContentEditable&&"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName?new sB(e):new sI(e),this.masked=sA(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new sT,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this._onChange()}maskEquals(e){var t;return null==e||(null==(t=this.masked)?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof s_.Masked)&&this.masked.constructor===sC(e))return void this.masked.updateOptions({mask:e});let t=e instanceof s_.Masked?e:sA({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){let s=this._listeners[e];s&&s.forEach(e=>e(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){this.el&&this.el.isActive&&(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){let t=this.masked.unmaskedValue,s=this.masked.value,r=this.masked.rawInputValue,n=this.displayValue,i=this.unmaskedValue!==t||this.value!==s||this._rawInputValue!==r;this._unmaskedValue=t,this._value=s,this._rawInputValue=r,this.el.value!==n&&(this.el.value=n),"auto"===e?this.alignCursor():null!=e&&(this.cursorPos=e),i&&this._fireChangeEvents(),!this._historyChanging&&(i||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){let{mask:t,...s}=e,r=!this.maskEquals(t),n=this.masked.optionsIsChanged(s);r&&(this.mask=t),n&&this.masked.updateOptions(s),(r||n)&&this.updateControl()}updateCursor(e){null!=e&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,sg))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;let s=this._listeners[e].indexOf(t);return s>=0&&this._listeners[e].splice(s,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();let t=new sb({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),s=this.masked.rawInputValue,r=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,n=s===this.masked.rawInputValue?t.removeDirection:sf,i=this.masked.nearestInputPos(t.startChangePos+r,n);n!==sf&&(i=this.masked.nearestInputPos(i,sf)),this.updateControl(i),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}};class sF{static normalize(e){return Array.isArray(e)?e:[e,new sF]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}s_.ChangeDetails=sF;class sR{constructor(e,t,s){void 0===e&&(e=""),void 0===t&&(t=0),this.value=e,this.from=t,this.stop=s}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||null!=e&&this.from>=e)return"";let t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";let e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class sj{constructor(e){this._value="",this._update({...sj.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){void 0===t&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new sR(this.extractInput(e,t),e)}appendTail(e){return sd(e)&&(e=new sR(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new sF({inserted:e,rawInserted:e})):new sF}_appendChar(e,t,s){let r;void 0===t&&(t={});let n=this.state;if([e,r]=this.doPrepareChar(e,t),e&&!(r=r.aggregate(this._appendCharRaw(e,t))).rawInserted&&"pad"===this.autofix){let s=this.state;this.state=n;let i=this.pad(t),a=this._appendCharRaw(e,t);i=i.aggregate(a),a.rawInserted||i.equals(r)?r=i:this.state=s}if(r.inserted){let e,i=!1!==this.doValidate(t);if(i&&null!=s){let t=this.state;if(!0===this.overwrite){e=s.state;for(let e=0;e<r.rawInserted.length;++e)s.unshift(this.displayValue.length-r.tailShift)}let n=this.appendTail(s);if(!((i=n.rawInserted.length===s.toString().length)&&n.inserted)&&"shift"===this.overwrite){this.state=t,e=s.state;for(let e=0;e<r.rawInserted.length;++e)s.shift();i=(n=this.appendTail(s)).rawInserted.length===s.toString().length}i&&n.inserted&&(this.state=t)}!i&&(r=new sF,this.state=n,s&&e&&(s.state=e))}return r}_appendPlaceholder(){return new sF}_appendEager(){return new sF}append(e,t,s){let r;if(!sd(e))throw Error("value should be string");let n=sd(s)?new sR(String(s)):s;null!=t&&t.tail&&(t._beforeTailState=this.state),[e,r]=this.doPrepare(e,t);for(let s=0;s<e.length;++s){let i=this._appendChar(e[s],t,n);if(!i.rawInserted&&!this.doSkipInvalid(e[s],t,n))break;r.aggregate(i)}return(!0===this.eager||"append"===this.eager)&&null!=t&&t.input&&e&&r.aggregate(this._appendEager()),null!=n&&(r.tailShift+=this.appendTail(n).tailShift),r}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new sF}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;let t=this.rawInputValue,s=this.value,r=e();return this.rawInputValue=t,this.value&&this.value!==s&&0===s.indexOf(this.value)&&(this.append(s.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,r}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;let t=this.state,s=e(this);return this.state=t,delete this._isolated,s}doSkipInvalid(e,t,s){return!!this.skipInvalid}doPrepare(e,t){return void 0===t&&(t={}),sF.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return void 0===t&&(t={}),sF.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,s,r,n){let i;void 0===s&&(s=""),void 0===r&&(r=sf),void 0===n&&(n={input:!0});let a=e+t,l=this.extractTail(a),o=!0===this.eager||"remove"===this.eager;o&&(r=function(e){switch(e){case sg:return sm;case sv:return sk;default:return e}}(r),i=this.extractInput(0,a,{raw:!0}));let u=e,c=new sF;if(r!==sf&&(c.tailShift=(u=this.nearestInputPos(e,t>1&&0!==e&&!o?sf:r))-e),c.aggregate(this.remove(u)),o&&r!==sf&&i===this.rawInputValue)if(r===sm){let e;for(;i===this.rawInputValue&&(e=this.displayValue.length);)c.aggregate(new sF({tailShift:-1})).aggregate(this.remove(e-1))}else r===sk&&l.unshift();return c.aggregate(this.append(s,n,l))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!sx(this,e)}typedValueEquals(e){let t=this.typedValue;return e===t||sj.EMPTY_VALUES.includes(e)&&sj.EMPTY_VALUES.includes(t)||!!this.format&&this.format(e,this)===this.format(this.typedValue,this)}pad(e){return new sF}}sj.DEFAULTS={skipInvalid:!0},sj.EMPTY_VALUES=[void 0,null,""],s_.Masked=sj;class sM{constructor(e,t){void 0===e&&(e=[]),void 0===t&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=sd(e)?new sR(String(e)):e;let t=this.chunks[this.chunks.length-1],s=t&&(t.stop===e.stop||null==e.stop)&&e.from===t.from+t.toString().length;if(e instanceof sR)s?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof sM){if(null==e.stop){let t;for(;e.chunks.length&&null==e.chunks[0].stop;)t=e.chunks.shift(),t.from+=e.from,this.extend(t)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof s_.MaskedPattern))return new sR(this.toString()).appendTo(e);let t=new sF;for(let s=0;s<this.chunks.length;++s){let r,n=this.chunks[s],i=e._mapPosToBlock(e.displayValue.length),a=n.stop;if(null!=a&&(!i||i.index<=a)&&((n instanceof sM||e._stops.indexOf(a)>=0)&&t.aggregate(e._appendPlaceholder(a)),r=n instanceof sM&&e._blocks[a]),r){let s=r.appendTail(n);t.aggregate(s);let i=n.toString().slice(s.rawInserted.length);i&&t.aggregate(e.append(i,{tail:!0}))}else t.aggregate(e.append(n.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){let{chunks:t,...s}=e;Object.assign(this,s),this.chunks=t.map(e=>{let t="chunks"in e?new sM:new sR;return t.state=e,t})}unshift(e){if(!this.chunks.length||null!=e&&this.from>=e)return"";let t=null!=e?e-this.from:e,s=0;for(;s<this.chunks.length;){let e=this.chunks[s],r=e.unshift(t);if(e.toString()){if(!r)break;++s}else this.chunks.splice(s,1);if(r)return r}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){let t=this.chunks[e],s=t.shift();if(t.toString()){if(!s)break;--e}else this.chunks.splice(e,1);if(s)return s}return""}}class sO{constructor(e,t){this.masked=e,this._log=[];let{offset:s,index:r}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=s,this.index=r,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){let e=this._log.pop();return e&&(this.state=e),e}bindBlock(){!this.block&&(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=(null==(t=this.block)?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,sm),0!==this.offset))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,sg),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!this.block.isFixed&&(!this.block.isOptional||this.block.value))return this.offset=this.block.nearestInputPos(this.offset,sg),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!this.block.isFixed&&this.block.value&&(this.offset=this.block.nearestInputPos(this.offset,sk),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,sf),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!this.block.isFixed&&(!this.block.isOptional||this.block.value))return this.offset=this.block.nearestInputPos(this.offset,sf),!0})}}class sN{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new sF}nearestInputPos(e,t){void 0===t&&(t=sf);let s=this._value.length;switch(t){case sg:case sm:return 0;default:return s}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this._value.length),void 0===s&&(s={}),s.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new sF;let s=!0===this.eager||"append"===this.eager,r=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!s)&&!t.tail,n=new sF({inserted:this.char,rawInserted:r?this.char:""});return this._value=this.char,this._isRawInput=r&&(t.raw||t.input),n}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){let e=new sF;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new sR("")}appendTail(e){return sd(e)&&(e=new sR(String(e))),e.appendTo(this)}append(e,t,s){let r=this._appendChar(e[0],t);return null!=s&&(r.tailShift+=this.appendTail(s).tailShift),r}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class sL{constructor(e){let{parent:t,isOptional:s,placeholderChar:r,displayChar:n,lazy:i,eager:a,...l}=e;this.masked=sA(l),Object.assign(this,{parent:t,isOptional:s,placeholderChar:r,displayChar:n,lazy:i,eager:a})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return(void 0===e&&(e=0),void 0===t&&(t=this.value.length),0===e&&t>=1)?(this.isFilled=!1,this.masked.remove(e,t)):new sF}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(void 0===t&&(t={}),this.isFilled)return new sF;let s=this.masked.state,r=this.masked._appendChar(e,this.currentMaskFlags(t));return r.inserted&&!1===this.doValidate(t)&&(r=new sF,this.masked.state=s),r.inserted||this.isOptional||this.lazy||t.input||(r.inserted=this.placeholderChar),r.skip=!r.inserted&&!this.isOptional,this.isFilled=!!r.inserted,r}append(e,t,s){return this.masked.append(e,this.currentMaskFlags(t),s)}_appendPlaceholder(){return this.isFilled||this.isOptional?new sF:(this.isFilled=!0,new sF({inserted:this.placeholderChar}))}_appendEager(){return new sF}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.masked.extractInput(e,t,s)}nearestInputPos(e,t){void 0===t&&(t=sf);let s=this.value.length,r=Math.min(Math.max(e,0),s);switch(t){case sg:case sm:return this.isComplete?r:0;case sv:case sk:return this.isComplete?r:s;default:return r}}totalInputPositions(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(null==e||null==(t=e._beforeTailState)?void 0:t.masked)||(null==e?void 0:e._beforeTailState)}}pad(e){return new sF}}sL.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./},s_.MaskedRegExp=class extends sj{updateOptions(e){super.updateOptions(e)}_update(e){let t=e.mask;t&&(e.validate=e=>e.search(t)>=0),super._update(e)}};class sD extends sj{constructor(e){super({...sD.DEFAULTS,...e,definitions:Object.assign({},sL.DEFAULT_DEFINITIONS,null==e?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){let e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};let t=this.mask;if(!t||!e)return;let s=!1,r=!1;for(let n=0;n<t.length;++n){if(this.blocks){let e=t.slice(n),s=Object.keys(this.blocks).filter(t=>0===e.indexOf(t));s.sort((e,t)=>t.length-e.length);let r=s[0];if(r){let{expose:e,repeat:t,...s}=sw(this.blocks[r]),i={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...s,repeat:t,parent:this},a=null!=t?new s_.RepeatBlock(i):sA(i);a&&(this._blocks.push(a),e&&(this.exposeBlock=a),this._maskedBlocks[r]||(this._maskedBlocks[r]=[]),this._maskedBlocks[r].push(this._blocks.length-1)),n+=r.length-1;continue}}let i=t[n],a=i in e;if(i===sD.STOP_CHAR){this._stops.push(this._blocks.length);continue}if("{"===i||"}"===i){s=!s;continue}if("["===i||"]"===i){r=!r;continue}if(i===sD.ESCAPE_CHAR){if(!(i=t[++n]))break;a=!1}let l=a?new sL({isOptional:r,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...sw(e[i]),parent:this}):new sN({char:i,eager:this.eager,isUnmasking:s});this._blocks.push(l)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e)return void this.reset();let{_blocks:t,...s}=e;this._blocks.forEach((e,s)=>e.state=t[s]),super.state=s}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){let t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;let t=new sF,s=null==(e=this._mapPosToBlock(this.displayValue.length))?void 0:e.index;if(null==s)return t;this._blocks[s].isFilled&&++s;for(let e=s;e<this._blocks.length;++e){let s=this._blocks[e]._appendEager();if(!s.inserted)break;t.aggregate(s)}return t}_appendCharRaw(e,t){void 0===t&&(t={});let s=this._mapPosToBlock(this.displayValue.length),r=new sF;if(!s)return r;for(let i=s.index,a;a=this._blocks[i];++i){var n;let s=a._appendChar(e,{...t,_beforeTailState:null==(n=t._beforeTailState)||null==(n=n._blocks)?void 0:n[i]});if(r.aggregate(s),s.consumed)break}return r}extractTail(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=new sM;return e===t||this._forEachBlocksInRange(e,t,(e,t,r,n)=>{let i=e.extractTail(r,n);i.stop=this._findStopBefore(t),i.from=this._blockStartPos(t),i instanceof sM&&(i.blockIndex=t),s.extend(i)}),s}extractInput(e,t,s){if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),void 0===s&&(s={}),e===t)return"";let r="";return this._forEachBlocksInRange(e,t,(e,t,n,i)=>{r+=e.extractInput(n,i,s)}),r}_findStopBefore(e){let t;for(let s=0;s<this._stops.length;++s){let r=this._stops[s];if(r<=e)t=r;else break}return t}_appendPlaceholder(e){let t=new sF;if(this.lazy&&null==e)return t;let s=this._mapPosToBlock(this.displayValue.length);if(!s)return t;let r=s.index,n=null!=e?e:this._blocks.length;return this._blocks.slice(r,n).forEach(s=>{if(!s.lazy||null!=e){var r;t.aggregate(s._appendPlaceholder(null==(r=s._blocks)?void 0:r.length))}}),t}_mapPosToBlock(e){let t="";for(let s=0;s<this._blocks.length;++s){let r=this._blocks[s],n=t.length;if(e<=(t+=r.displayValue).length)return{index:s,offset:e-n}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((e,t)=>e+=t.displayValue.length,0)}_forEachBlocksInRange(e,t,s){void 0===t&&(t=this.displayValue.length);let r=this._mapPosToBlock(e);if(r){let e=this._mapPosToBlock(t),n=e&&r.index===e.index,i=r.offset,a=e&&n?e.offset:this._blocks[r.index].displayValue.length;if(s(this._blocks[r.index],r.index,i,a),e&&!n){for(let t=r.index+1;t<e.index;++t)s(this._blocks[t],t,0,this._blocks[t].displayValue.length);s(this._blocks[e.index],e.index,0,e.offset)}}}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=super.remove(e,t);return this._forEachBlocksInRange(e,t,(e,t,r,n)=>{s.aggregate(e.remove(r,n))}),s}nearestInputPos(e,t){if(void 0===t&&(t=sf),!this._blocks.length)return 0;let s=new sO(this,e);if(t===sf)return s.pushRightBeforeInput()||(s.popState(),s.pushLeftBeforeInput())?s.pos:this.displayValue.length;if(t===sg||t===sm){if(t===sg){if(s.pushRightBeforeFilled(),s.ok&&s.pos===e)return e;s.popState()}if(s.pushLeftBeforeInput(),s.pushLeftBeforeRequired(),s.pushLeftBeforeFilled(),t===sg){if(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.ok&&s.pos<=e||(s.popState(),s.ok&&s.pos<=e))return s.pos;s.popState()}return s.ok?s.pos:t===sm?0:(s.popState(),s.ok||(s.popState(),s.ok))?s.pos:0}return t===sv||t===sk?(s.pushRightBeforeInput(),s.pushRightBeforeRequired(),s.pushRightBeforeFilled())?s.pos:t===sk?this.displayValue.length:(s.popState(),s.ok||(s.popState(),s.ok))?s.pos:this.nearestInputPos(e,sg):e}totalInputPositions(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=0;return this._forEachBlocksInRange(e,t,(e,t,r,n)=>{s+=e.totalInputPositions(r,n)}),s}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){let t=this._maskedBlocks[e];return t?t.map(e=>this._blocks[e]):[]}pad(e){let t=new sF;return this._forEachBlocksInRange(0,this.displayValue.length,s=>t.aggregate(s.pad(e))),t}}sD.DEFAULTS={...sj.DEFAULTS,lazy:!0,placeholderChar:"_"},sD.STOP_CHAR="`",sD.ESCAPE_CHAR="\\",sD.InputDefinition=sL,sD.FixedDefinition=sN,s_.MaskedPattern=sD;class sz extends sD{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){let{to:t=this.to||0,from:s=this.from||0,maxLength:r=this.maxLength||0,autofix:n=this.autofix,...i}=e;this.to=t,this.from=s,this.maxLength=Math.max(String(t).length,r),this.autofix=n;let a=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0"),o=0;for(;o<l.length&&l[o]===a[o];)++o;i.mask=l.slice(0,o).replace(/0/g,"\\0")+"0".repeat(this.maxLength-o),super._update(i)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",s="",[,r,n]=e.match(/^(\D*)(\d*)(\D*)/)||[];return n&&(t="0".repeat(r.length)+n,s="9".repeat(r.length)+n),[t=t.padEnd(this.maxLength,"0"),s=s.padEnd(this.maxLength,"9")]}doPrepareChar(e,t){let s;return void 0===t&&(t={}),[e,s]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(s.skip=!this.isComplete),[e,s]}_appendCharRaw(e,t){if(void 0===t&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);let s=String(this.from).padStart(this.maxLength,"0"),r=String(this.to).padStart(this.maxLength,"0"),[n,i]=this.boundaries(this.value+e);return Number(i)<this.from?super._appendCharRaw(s[this.value.length],t):Number(n)>this.to?!t.tail&&"pad"===this.autofix&&this.value.length+1<this.maxLength?super._appendCharRaw(s[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(r[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){let t=this.value;if(-1===t.search(/[^0]/)&&t.length<=this._matchFrom)return!0;let[s,r]=this.boundaries(t);return this.from<=Number(r)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){let t=new sF;if(this.value.length===this.maxLength)return t;let s=this.value,r=this.maxLength-this.value.length;if(r){this.reset();for(let s=0;s<r;++s)t.aggregate(super._appendCharRaw("0",e));s.split("").forEach(e=>this._appendCharRaw(e))}return t}}s_.MaskedRange=sz;class s$ extends sD{static extractPatternOptions(e){let{mask:t,pattern:s,...r}=e;return{...r,mask:sd(t)?t:s}}constructor(e){super(s$.extractPatternOptions({...s$.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){let{mask:t,pattern:s,blocks:r,...n}={...s$.DEFAULTS,...e},i=Object.assign({},s$.GET_DEFAULT_BLOCKS());e.min&&(i.Y.from=e.min.getFullYear()),e.max&&(i.Y.to=e.max.getFullYear()),e.min&&e.max&&i.Y.from===i.Y.to&&(i.m.from=e.min.getMonth()+1,i.m.to=e.max.getMonth()+1,i.m.from===i.m.to&&(i.d.from=e.min.getDate(),i.d.to=e.max.getDate())),Object.assign(i,this.blocks,r),super._update({...n,mask:sd(t)?t:s,blocks:i})}doValidate(e){let t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&null!=t&&(null==this.min||this.min<=t)&&(null==this.max||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(s$.extractPatternOptions(e))}}s$.GET_DEFAULT_BLOCKS=()=>({d:{mask:sz,from:1,to:31,maxLength:2},m:{mask:sz,from:1,to:12,maxLength:2},Y:{mask:sz,from:1900,to:9999}}),s$.DEFAULTS={...sD.DEFAULTS,mask:Date,pattern:"d{.}`m{.}`Y",format:(e,t)=>e?[String(e.getDate()).padStart(2,"0"),String(e.getMonth()+1).padStart(2,"0"),e.getFullYear()].join("."):"",parse:(e,t)=>{let[s,r,n]=e.split(".").map(Number);return new Date(n,r-1,s)}},s_.MaskedDate=s$;class sV extends sj{constructor(e){super({...sV.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(e=>{let{expose:t,...s}=sw(e),r=sA({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});return t&&(this.exposeMask=r),r}):[])}_appendCharRaw(e,t){void 0===t&&(t={});let s=this._applyDispatch(e,t);return this.currentMask&&s.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),s}_applyDispatch(e,t,s){void 0===e&&(e=""),void 0===t&&(t={}),void 0===s&&(s="");let r=t.tail&&null!=t._beforeTailState?t._beforeTailState._value:this.value,n=this.rawInputValue,i=t.tail&&null!=t._beforeTailState?t._beforeTailState._rawInputValue:n,a=n.slice(i.length),l=this.currentMask,o=new sF,u=null==l?void 0:l.state;return this.currentMask=this.doDispatch(e,{...t},s),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),i&&(this.currentMask.append(i,{raw:!0}),o.tailShift=this.currentMask.value.length-r.length),a&&(o.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)):u&&(this.currentMask.state=u)),o}_appendPlaceholder(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){let e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){let t=new sF;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,s;return{...e,_beforeTailState:(null==(t=e._beforeTailState)?void 0:t.currentMaskRef)===this.currentMask&&(null==(s=e._beforeTailState)?void 0:s.currentMask)||e._beforeTailState}}doDispatch(e,t,s){return void 0===t&&(t={}),void 0===s&&(s=""),this.dispatch(e,this,t,s)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){void 0===t&&(t={});let[s,r]=super.doPrepare(e,t);if(this.currentMask){let e;[s,e]=super.doPrepare(s,this.currentMaskFlags(t)),r=r.aggregate(e)}return[s,r]}doPrepareChar(e,t){void 0===t&&(t={});let[s,r]=super.doPrepareChar(e,t);if(this.currentMask){let e;[s,e]=super.doPrepareChar(s,this.currentMaskFlags(t)),r=r.aggregate(e)}return[s,r]}reset(){var e;null==(e=this.currentMask)||e.reset(),this.compiledMasks.forEach(e=>e.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!(null==(e=this.currentMask)?void 0:e.isComplete)}get isFilled(){var e;return!!(null==(e=this.currentMask)?void 0:e.isFilled)}remove(e,t){let s=new sF;return this.currentMask&&s.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),s}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(e=>e.state),currentMaskRef:this.currentMask,currentMask:null==(e=this.currentMask)?void 0:e.state}}set state(e){let{compiledMasks:t,currentMaskRef:s,currentMask:r,...n}=e;t&&this.compiledMasks.forEach((e,s)=>e.state=t[s]),null!=s&&(this.currentMask=s,this.currentMask.state=r),super.state=n}extractInput(e,t,s){return this.currentMask?this.currentMask.extractInput(e,t,s):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,s)=>{if(!e[s])return;let{mask:r,...n}=e[s];return sx(t,n)&&t.maskEquals(r)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!(null==(t=this.currentMask)?void 0:t.typedValueEquals(e))}}sV.DEFAULTS={...sj.DEFAULTS,dispatch:(e,t,s,r)=>{if(!t.compiledMasks.length)return;let n=t.rawInputValue,i=t.compiledMasks.map((i,a)=>{let l=t.currentMask===i,o=l?i.displayValue.length:i.nearestInputPos(i.displayValue.length,sm);return i.rawInputValue!==n?(i.reset(),i.append(n,{raw:!0})):l||i.remove(o),i.append(e,t.currentMaskFlags(s)),i.appendTail(r),{index:a,weight:i.rawInputValue.length,totalInputPositions:i.totalInputPositions(0,Math.max(o,i.nearestInputPos(i.displayValue.length,sm)))}});return i.sort((e,t)=>t.weight-e.weight||t.totalInputPositions-e.totalInputPositions),t.compiledMasks[i[0].index]}},s_.MaskedDynamic=sV;class sP extends sD{constructor(e){super({...sP.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){let{enum:t,...s}=e;if(t){let e=t.map(e=>e.length),r=Math.min(...e),n=Math.max(...e)-r;s.mask="*".repeat(r),n&&(s.mask+="["+"*".repeat(n)+"]"),this.enum=t}super._update(s)}_appendCharRaw(e,t){void 0===t&&(t={});let s=Math.min(this.nearestInputPos(0,sk),this.value.length),r=this.enum.filter(t=>this.matchValue(t,this.unmaskedValue+e,s));if(r.length){1===r.length&&this._forEachBlocksInRange(0,this.value.length,(e,s)=>{let n=r[0][s];s>=this.value.length||n===e.value||(e.reset(),e._appendChar(n,t))});let e=super._appendCharRaw(r[0][this.value.length],t);return 1===r.length&&r[0].slice(this.unmaskedValue.length).split("").forEach(t=>e.aggregate(super._appendCharRaw(t))),e}return new sF({skip:!this.isComplete})}extractTail(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),new sR("",e)}remove(e,t){let s;if(void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),e===t)return new sF;let r=Math.min(super.nearestInputPos(0,sk),this.value.length);for(s=e;s>=0&&!(this.enum.filter(e=>this.matchValue(e,this.value.slice(r,s),r)).length>1);--s);let n=super.remove(s,t);return n.tailShift+=s-e,n}get isComplete(){return this.enum.indexOf(this.value)>=0}}sP.DEFAULTS={...sD.DEFAULTS,matchValue:(e,t,s)=>e.indexOf(t,s)===s},s_.MaskedEnum=sP,s_.MaskedFunction=class extends sj{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}};class sU extends sj{constructor(e){super({...sU.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){let e="^"+(this.allowNegative?"[+|\\-]?":""),t=(this.scale?"("+sy(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=RegExp(e+"\\d*"+t),this._mapToRadixRegExp=RegExp("["+this.mapToRadix.map(sy).join("")+"]","g"),this._thousandsSeparatorRegExp=RegExp(sy(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){let t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){void 0===t&&(t={});let[s,r]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!s&&(r.skip=!0),!s||this.allowPositive||this.value||"-"===s||r.aggregate(this._appendChar("-")),[s,r]}_separatorsCount(e,t){void 0===t&&(t=!1);let s=0;for(let r=0;r<e;++r)this._value.indexOf(this.thousandsSeparator,r)===r&&(++s,t&&(e+=this.thousandsSeparator.length));return s}_separatorsCountFromSlice(e){return void 0===e&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,s){return void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,s))}_appendCharRaw(e,t){let s;void 0===t&&(t={});let r=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,n=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);let i=this._value;this._value+=e;let a=!isNaN(this.number),l=!1;if(a){let e;null!=this.min&&this.min<0&&this.number<this.min&&(e=this.min),null!=this.max&&this.max>0&&this.number>this.max&&(e=this.max),null!=e&&(this.autofix?(this._value=this.format(e,this).replace(sU.UNMASKED_RADIX,this.radix),l||(l=i===this._value&&!t.tail)):a=!1),a&&(a=!!this._value.match(this._numberRegExp))}a?s=new sF({inserted:this._value.slice(i.length),rawInserted:l?"":e,skip:l}):(this._value=i,s=new sF),this._value=this._insertThousandsSeparators(this._value);let o=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,u=this._separatorsCountFromSlice(o);return s.tailShift+=(u-n)*this.thousandsSeparator.length,s}_findSeparatorAround(e){if(this.thousandsSeparator){let t=e-this.thousandsSeparator.length+1,s=this.value.indexOf(this.thousandsSeparator,t);if(s<=e)return s}return -1}_adjustRangeWithSeparators(e,t){let s=this._findSeparatorAround(e);s>=0&&(e=s);let r=this._findSeparatorAround(t);return r>=0&&(t=r+this.thousandsSeparator.length),[e,t]}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);let s=this.value.slice(0,e),r=this.value.slice(t),n=this._separatorsCount(s.length);return this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(s+r)),new sF({tailShift:(this._separatorsCountFromSlice(s)-n)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case sf:case sg:case sm:{let s=this._findSeparatorAround(e-1);if(s>=0){let r=s+this.thousandsSeparator.length;if(e<r||this.value.length<=r||t===sm)return s}break}case sv:case sk:{let t=this._findSeparatorAround(e);if(t>=0)return t+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){let e=this.number,t=e;null!=this.min&&(t=Math.max(t,this.min)),null!=this.max&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let s=this.value;this.normalizeZeros&&(s=this._normalizeZeros(s)),this.padFractionalZeros&&this.scale>0&&(s=this._padFractionalZeros(s)),this._value=s}super.doCommit()}_normalizeZeros(e){let t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(e,t,s,r)=>t+r),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;let t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,s){void 0===t&&(t={});let r=0===this.scale&&e!==this.thousandsSeparator&&(e===this.radix||e===sU.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,s)&&!r}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,sU.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(sU.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return null!=this.min&&this.min<0||null!=this.max&&this.max<0}get allowPositive(){return null!=this.min&&this.min>0||null!=this.max&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||sU.EMPTY_VALUES.includes(e)&&sU.EMPTY_VALUES.includes(this.typedValue))&&(0!==e||""!==this.value)}}sU.UNMASKED_RADIX=".",sU.EMPTY_VALUES=[...sj.EMPTY_VALUES,0],sU.DEFAULTS={...sj.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[sU.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:e=>e.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})},s_.MaskedNumber=sU;let sq={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function sQ(e,t,s){void 0===t&&(t=sq.MASKED),void 0===s&&(s=sq.MASKED);let r=sA(e);return e=>r.runIsolated(r=>(r[t]=e,r[s]))}s_.PIPE_TYPE=sq,s_.createPipe=sQ,s_.pipe=function(e,t,s,r){return sQ(t,s,r)(e)},s_.RepeatBlock=class extends sD{get repeatFrom(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[0]:1/0===this.repeat?0:this.repeat)?e:0}get repeatTo(){var e;return null!=(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,s,r;let{repeat:n,...i}=sw(e);this._blockOpts=Object.assign({},this._blockOpts,i);let a=sA(this._blockOpts);this.repeat=null!=(t=null!=(s=null!=n?n:a.repeat)?s:this.repeat)?t:1/0,super._update({mask:"m".repeat(Math.max(1/0===this.repeatTo&&(null==(r=this._blocks)?void 0:r.length)||0,this.repeatFrom)),blocks:{m:a},eager:a.eager,overwrite:a.overwrite,skipInvalid:a.skipInvalid,lazy:a.lazy,placeholderChar:a.placeholderChar,displayChar:a.displayChar})}_allocateBlock(e){return e<this._blocks.length?this._blocks[e]:1/0===this.repeatTo||this._blocks.length<this.repeatTo?(this._blocks.push(sA(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]):void 0}_appendCharRaw(e,t){void 0===t&&(t={});let s=new sF;for(let l=null!=(r=null==(n=this._mapPosToBlock(this.displayValue.length))?void 0:n.index)?r:Math.max(this._blocks.length-1,0),o,u;o=null!=(i=this._blocks[l])?i:u=!u&&this._allocateBlock(l);++l){var r,n,i,a;let c=o._appendChar(e,{...t,_beforeTailState:null==(a=t._beforeTailState)||null==(a=a._blocks)?void 0:a[l]});if(c.skip&&u){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(s.aggregate(c),c.consumed)break}return s}_trimEmptyTail(e,t){var s,r;let n;void 0===e&&(e=0);let i=Math.max((null==(s=this._mapPosToBlock(e))?void 0:s.index)||0,this.repeatFrom,0);null!=t&&(n=null==(r=this._mapPosToBlock(t))?void 0:r.index),null==n&&(n=this._blocks.length-1);let a=0;for(let e=n;i<=e&&!this._blocks[e].unmaskedValue;--e,++a);a&&(this._blocks.splice(n-a+1,a),this.mask=this.mask.slice(a))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){void 0===e&&(e=0),void 0===t&&(t=this.displayValue.length);let s=super.remove(e,t);return this._trimEmptyTail(e,t),s}totalInputPositions(e,t){return(void 0===e&&(e=0),null==t&&1/0===this.repeatTo)?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}};try{globalThis.IMask=s_}catch{}var sH=c,sZ=e.i(45009);let sW={mask:sZ.default.oneOfType([sZ.default.array,sZ.default.func,sZ.default.string,sZ.default.instanceOf(RegExp),sZ.default.oneOf([Date,Number,s_.Masked]),sZ.default.instanceOf(s_.Masked)]),value:sZ.default.any,unmask:sZ.default.oneOfType([sZ.default.bool,sZ.default.oneOf(["typed"])]),prepare:sZ.default.func,prepareChar:sZ.default.func,validate:sZ.default.func,commit:sZ.default.func,overwrite:sZ.default.oneOfType([sZ.default.bool,sZ.default.oneOf(["shift"])]),eager:sZ.default.oneOfType([sZ.default.bool,sZ.default.oneOf(["append","remove"])]),skipInvalid:sZ.default.bool,onAccept:sZ.default.func,onComplete:sZ.default.func,placeholderChar:sZ.default.string,displayChar:sZ.default.string,lazy:sZ.default.bool,definitions:sZ.default.object,blocks:sZ.default.object,enum:sZ.default.arrayOf(sZ.default.string),maxLength:sZ.default.number,from:sZ.default.number,to:sZ.default.number,pattern:sZ.default.string,format:sZ.default.func,parse:sZ.default.func,autofix:sZ.default.oneOfType([sZ.default.bool,sZ.default.oneOf(["pad"])]),radix:sZ.default.string,thousandsSeparator:sZ.default.string,mapToRadix:sZ.default.arrayOf(sZ.default.string),scale:sZ.default.number,normalizeZeros:sZ.default.bool,padFractionalZeros:sZ.default.bool,min:sZ.default.oneOfType([sZ.default.number,sZ.default.instanceOf(Date)]),max:sZ.default.oneOfType([sZ.default.number,sZ.default.instanceOf(Date)]),dispatch:sZ.default.func,inputRef:sZ.default.oneOfType([sZ.default.func,sZ.default.shape({current:sZ.default.object})])},sK=Object.keys(sW).filter(e=>"value"!==e),sG=["value","unmask","onAccept","onComplete","inputRef"],sY=sK.filter(e=>0>sG.indexOf(e)),sX=(i=e=>{let{inputRef:t,...s}=e;return c.default.createElement("input",{...s,ref:t})},(a=class extends sH.default.Component{constructor(e){super(e),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){let e=this.props,t=this._extractMaskOptionsFromProps(e);if(t.mask)this.maskRef?(this.maskRef.updateOptions(t),"value"in e&&void 0!==e.value&&(this.maskValue=e.value)):this.initMask(t);else if(this.destroyMask(),"value"in e&&void 0!==e.value){var s;null!=(s=this.element)&&s.isContentEditable&&"INPUT"!==this.element.tagName&&"TEXTAREA"!==this.element.tagName?this.element.textContent=e.value:this.element.value=e.value}}componentWillUnmount(){this.destroyMask()}_inputRef(e){this.element=e,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=e:this.props.inputRef(e))}initMask(e){void 0===e&&(e=this._extractMaskOptionsFromProps(this.props)),this.maskRef=s_(this.element,e).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&void 0!==this.props.value&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(e){let{...t}=e;return Object.keys(t).filter(e=>0>sY.indexOf(e)).forEach(e=>{delete t[e]}),t}_extractNonMaskProps(e){let{...t}=e;return sK.forEach(e=>{"maxLength"!==e&&delete t[e]}),"defaultValue"in t||(t.defaultValue=e.mask?"":t.value),delete t.value,t}get maskValue(){return this.maskRef?"typed"===this.props.unmask?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(e){this.maskRef&&(e=null==e&&"typed"!==this.props.unmask?"":e,"typed"===this.props.unmask?this.maskRef.typedValue=e:this.props.unmask?this.maskRef.unmaskedValue=e:this.maskRef.value=e)}_onAccept(e){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,e)}_onComplete(e){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,e)}render(){return sH.default.createElement(i,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}}).displayName=void 0,a.propTypes=void 0,(s=a).displayName="IMask("+(i.displayName||i.name||"Component")+")",s.propTypes=sW,sH.default.forwardRef((e,t)=>sH.default.createElement(s,{...e,ref:t})));c.default.forwardRef((e,t)=>c.default.createElement(sX,{...e,ref:t}));var sJ=e.i(91390);let s0=(0,c.forwardRef)(({maskOpts:e,value:t="",autoFocus:s=!1,onChange:r,onKeyDown:n,...i},a)=>{let[l,o]=(0,c.useState)(""),{ref:h,setValue:d,unmaskedValue:p}=function(e,t){let{onAccept:s,onComplete:r,ref:n=(0,c.useRef)(null),defaultValue:i,defaultUnmaskedValue:a,defaultTypedValue:l}=void 0===t?{}:t,o=(0,c.useRef)(null),[u,h]=(0,c.useState)({}),[d,p]=(0,c.useState)(""),[f,g]=(0,c.useState)(""),[m,v]=(0,c.useState)(),k=(0,c.useCallback)(()=>{var e;null==(e=o.current)||e.destroy(),o.current=null},[]),y=(0,c.useCallback)(()=>{let e=o.current;e&&(h({value:e.value,unmaskedValue:e.unmaskedValue,typedValue:e.typedValue}),v(e.typedValue),g(e.unmaskedValue),p(e.value))},[]),x=(0,c.useCallback)(e=>{let t=o.current;t&&(y(),null==s||s(t.value,t,e))},[s]),b=(0,c.useCallback)(e=>o.current&&(null==r?void 0:r(o.current.value,o.current,e)),[r]);return(0,c.useEffect)(()=>{let{value:e,...t}=u,s=o.current;s&&void 0!==d&&(e!==d&&(s.value=d,s.value!==d&&x()),h(t))},[d]),(0,c.useEffect)(()=>{let{unmaskedValue:e,...t}=u,s=o.current;s&&void 0!==f&&(e!==f&&(s.unmaskedValue=f,s.unmaskedValue!==f&&x()),h(t))},[f]),(0,c.useEffect)(()=>{let{typedValue:e,...t}=u,s=o.current;s&&void 0!==m&&(e!==m&&(s.typedValue=m,s.masked.typedValueEquals(m)||x()),h(t))},[m]),(0,c.useEffect)(()=>{let t=n.current;if(!t||!(null!=e&&e.mask))return k();let s=o.current;s?null==s||s.updateOptions(e):t&&null!=e&&e.mask&&(o.current=s_(t,e),y(),void 0!==i&&p(i),void 0!==a&&g(a),void 0!==l&&v(l))},[e,k,x]),(0,c.useEffect)(()=>{if(!o.current)return;let e=o.current;return e.on("accept",x),e.on("complete",b),()=>{e.off("accept",x),e.off("complete",b)}},[x,b]),(0,c.useEffect)(()=>k,[k]),{ref:n,maskRef:o,value:d,setValue:p,unmaskedValue:f,setUnmaskedValue:g,typedValue:m,setTypedValue:v}}(e,{onAccept:(e,t)=>{o(e),null==r||r(t.unmaskedValue,e)}});return(0,c.useEffect)(()=>{t!==p&&(d(t),o(t))},[t,d,p]),(0,c.useImperativeHandle)(a,()=>h.current),(0,u.jsx)(sJ.I,{...i,autoFocus:s,inputRef:h,value:l,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),d(""),o(""),null==r||r("","")),null==n||n(e)}})});function s1(e){return c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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"}))}function s2(e){return c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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 s3(e){return c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}s0.displayName="InputMasked",e.i(89485);let s4=["checkbox"],s5=(0,ev.g)("common-marker"),s7={marker:s5,icon:`${s5}__icon`,states:{checkbox:`${s5}--checkbox`,radio:`${s5}--radio`,toggle:`${s5}--toggle`,error:`${s5}--error`,checked:`${s5}--checked`,disabled:`${s5}--disabled`,inverted:`${s5}--inverted`,indeterminate:`${s5}--indeterminate`}},s6=({as:e,state:t="default",type:s="checkbox",className:r,checked:n,inverted:i,disabled:a,...l})=>(0,u.jsx)(e||"span",{...l,className:(0,h.f)(r,s7.marker,{[s7.states.checkbox]:"checkbox"===s,[s7.states.radio]:"radio"===s,[s7.states.toggle]:"toggle"===s,[s7.states.checked]:!!n,[s7.states.indeterminate]:"indeterminate"===n,[s7.states.error]:"error"===t,[s7.states.inverted]:i,[s7.states.disabled]:a}),children:s4.includes(s)&&(0,u.jsx)(tj.P,{className:(0,h.f)(s7.icon,{[s7.states.checked]:n,[s7.states.inverted]:i,[s7.states.error]:"error"===t,[s7.states.disabled]:a}),children:"indeterminate"===n?(0,u.jsx)(s3,{}):(0,u.jsx)(s2,{})})});s6.displayName="CommonMarker";let s8=(0,ev.g)("checkbox"),s9=Object.freeze({checkbox:s8,input:`${s8}__input`,marker:`${s8}__marker`,wrapper:`${s8}__wrapper`,label:`${s8}__label`,caption:`${s8}__caption`,icon:`${s8}__icon`,iconButton:`${s8}__icon-button`,states:{error:`${s8}--error`,disabled:`${s8}--disabled`,inverted:`${s8}--inverted`},sizes:{xs:`${s8}--xs`,s:`${s8}--s`,m:`${s8}--m`},variants:{primary:`${s8}--primary`,secondary:`${s8}--secondary`}}),re=(0,c.forwardRef)(({value:e=!1,variant:t="primary",state:s="default",label:r,disabled:n=!1,caption:i,className:a,icon:l,withIcon:o=!1,size:d="m",style:p,inverted:f=!1,children:g,inputRef:m,dataQa:v,dataId:k,onChange:y,onIconClick:x,...b},_)=>{let[C,w]=function(e,t){let[s,r]=(0,c.useState)(e);return(0,c.useEffect)(()=>{void 0!==t&&r(t)},[JSON.stringify(t)]),[s,r]}(!1,e),A=(0,c.useId)(),E=g||r;return(0,u.jsxs)("label",{ref:_,htmlFor:A,"data-marker-label":"",className:(0,h.f)(a,s9.checkbox,{[s9.states.inverted]:f,[s9.states.disabled]:n,[s9.states.error]:"error"===s,[s9.sizes[d]]:!0,[s9.variants[t]]:!0}),style:p,"data-id":k,"data-qa":v,children:[(0,u.jsx)("input",{id:A,ref:m,value:String(C),className:s9.input,type:"checkbox","aria-invalid":"error"===s,disabled:n,onChange:e=>{let t="string"==typeof C?!!C:!C;w(t),null==y||y(t,e)},...b}),(0,u.jsx)("span",{className:s9.marker,children:(0,u.jsx)(s6,{type:"checkbox",checked:C,inverted:f,state:s,disabled:n})}),E&&(0,u.jsxs)("span",{className:s9.wrapper,children:[(0,u.jsx)("span",{className:(0,h.f)(s9.label),children:E}),i&&(0,u.jsx)(tR.C,{className:s9.caption,withoutIcon:!0,children:i})]}),o&&(0,u.jsx)("button",{type:"button",className:(0,h.f)(s9.iconButton),onClick:n?void 0:x,children:(0,u.jsx)(tj.P,{className:(0,h.f)(s9.icon),children:l?(0,u.jsx)(u.Fragment,{children:l}):(0,u.jsx)(s1,{})})})]})});function rt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}re.displayName="Checkbox";let rs=rt(),rr=/[&<>"']/,rn=RegExp(rr.source,"g"),ri=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ra=RegExp(ri.source,"g"),rl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ro=e=>rl[e];function ru(e,t){if(t){if(rr.test(e))return e.replace(rn,ro)}else if(ri.test(e))return e.replace(ra,ro);return e}let rc=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,rh=/(^|[^\[])\^/g;function rd(e,t){let s="string"==typeof e?e:e.source;t=t||"";let r={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(rh,"$1"),s=s.replace(e,n),r},getRegex:()=>new RegExp(s,t)};return r}function rp(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}let rf={exec:()=>null};function rg(e,t){let s=e.replace(/\|/g,(e,t,s)=>{let r=!1,n=t;for(;--n>=0&&"\\"===s[n];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;r<s.length;r++)s[r]=s[r].trim().replace(/\\\|/g,"|");return s}function rm(e,t,s){let r=e.length;if(0===r)return"";let n=0;for(;n<r;){let i=e.charAt(r-n-1);if(i!==t||s)if(i!==t&&s)n++;else break;else n++}return e.slice(0,r-n)}function rv(e,t,s,r){let n=t.href,i=t.title?ru(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;let e={type:"link",raw:s,href:n,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,e}return{type:"image",raw:s,href:n,title:i,text:ru(a)}}class rk{options;rules;lexer;constructor(e){this.options=e||rs}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:rm(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],s=function(e,t){let s=e.match(/^(\s+)(?:```)/);if(null===s)return t;let r=s[1];return t.split("\n").map(e=>{let t=e.match(/^\s+/);if(null===t)return e;let[s]=t;return s.length>=r.length?e.slice(r.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:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){let t=rm(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=rm(e.replace(/^ *>[ \t]?/gm,""),"\n");let s=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=s,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),r=s.length>1,n={type:"list",raw:"",ordered:r,start:r?+s.slice(0,-1):"",loose:!1,items:[]};s=r?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=r?s:"[*+-]");let i=RegExp(`^( {0,3}${s})((?:[	 ][^\\n]*)?(?:\\n|$))`),a="",l="",o=!1;for(;e;){let s,r=!1;if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;a=t[0],e=e.substring(a.length);let u=t[2].split("\n",1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],h=0;this.options.pedantic?(h=2,l=u.trimStart()):(h=(h=t[2].search(/[^ ]/))>4?1:h,l=u.slice(h),h+=t[1].length);let d=!1;if(!u&&/^ *$/.test(c)&&(a+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),s=RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),n=RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;e;){let i=e.split("\n",1)[0];if(c=i,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),r.test(c)||n.test(c)||t.test(c)||s.test(e))break;if(c.search(/[^ ]/)>=h||!c.trim())l+="\n"+c.slice(h);else{if(d||u.search(/[^ ]/)>=4||r.test(u)||n.test(u)||s.test(u))break;l+="\n"+c}d||c.trim()||(d=!0),a+=i+"\n",e=e.substring(i.length+1),u=c.slice(h)}}!n.loose&&(o?n.loose=!0:/\n *\n *$/.test(a)&&(o=!0));let p=null;this.options.gfm&&(p=/^\[[ xX]\] /.exec(l))&&(s="[ ] "!==p[0],l=l.replace(/^\[[ xX]\] +/,"")),n.items.push({type:"list_item",raw:a,task:!!p,checked:s,loose:!1,text:l,tokens:[]}),n.raw+=a}n.items[n.items.length-1].raw=a.trimEnd(),n.items[n.items.length-1].text=l.trimEnd(),n.raw=n.raw.trimEnd();for(let e=0;e<n.items.length;e++)if(this.lexer.state.top=!1,n.items[e].tokens=this.lexer.blockTokens(n.items[e].text,[]),!n.loose){let t=n.items[e].tokens.filter(e=>"space"===e.type);n.loose=t.length>0&&t.some(e=>/\n.*\n/.test(e.raw))}if(n.loose)for(let e=0;e<n.items.length;e++)n.items[e].loose=!0;return n}}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," "),s=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=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:s,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;let s=rg(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),n=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===r.length){for(let e of r)/^ *-+: *$/.test(e)?i.align.push("right"):/^ *:-+: *$/.test(e)?i.align.push("center"):/^ *:-+ *$/.test(e)?i.align.push("left"):i.align.push(null);for(let e of s)i.header.push({text:e,tokens:this.lexer.inline(e)});for(let e of n)i.rows.push(rg(e,i.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return i}}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:ru(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=rm(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e){if(-1===e.indexOf(")"))return -1;let t=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if("("===e[s])t++;else if(")"===e[s]&&--t<0)return s;return -1}(t[2]);if(e>-1){let s=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let s=t[2],r="";if(this.options.pedantic){let e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);e&&(s=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^</.test(s)&&(s=this.options.pedantic&&!/>$/.test(e)?s.slice(1):s.slice(1,-1)),rv(t,{href:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s,title:r?r.replace(this.rules.inline.anyPunctuation,"$1"):r},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){let e=t[(s[2]||s[1]).replace(/\s+/g," ").toLowerCase()];if(!e){let e=s[0].charAt(0);return{type:"text",raw:e,text:e}}return rv(s,e,s[0],this.lexer)}}emStrong(e,t,s=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&s.match(/[\p{L}\p{N}]/u))&&(!(r[1]||r[2])||!s||this.rules.inline.punctuation.exec(s))){let s=[...r[0]].length-1,n,i,a=s,l=0,o="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+s);null!=(r=o.exec(t));){if(!(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(i=[...n].length,r[3]||r[4]){a+=i;continue}if((r[5]||r[6])&&s%3&&!((s+i)%3)){l+=i;continue}if((a-=i)>0)continue;i=Math.min(i,i+a+l);let t=[...r[0]][0].length,o=e.slice(0,s+r.index+t+i);if(Math.min(s,i)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let u=o.slice(2,-2);return{type:"strong",raw:o,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," "),s=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return s&&r&&(e=e.substring(1,e.length-1)),e=ru(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,s;return s="@"===t[2]?"mailto:"+(e=ru(t[1])):e=ru(t[1]),{type:"link",raw:t[0],text:e,href:s,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,s;if("@"===t[2])s="mailto:"+(e=ru(t[0]));else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0])e=ru(t[0]),s="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:s,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]:ru(t[0]),{type:"text",raw:t[0],text:e}}}}let ry=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,rx=/(?:[*+-]|\d{1,9}[.)])/,rb=rd(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,rx).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(),r_=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rC=/(?!\s*\])(?:\\.|[^\[\]\\])+/,rw=rd(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",rC).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),rA=rd(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,rx).getRegex(),rE="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",rS=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rI=rd("^ {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",rS).replace("tag",rE).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),rB=rd(r_).replace("hr",ry).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",rE).getRegex(),rT={blockquote:rd(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",rB).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:rw,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ry,html:rI,lheading:rb,list:rA,newline:/^(?: *(?:\n|$))+/,paragraph:rB,table:rf,text:/^[^\n]+/},rF=rd("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ry).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",rE).getRegex(),rR={...rT,table:rF,paragraph:rd(r_).replace("hr",ry).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",rF).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",rE).getRegex()},rj={...rT,html:rd("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",rS).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:rf,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:rd(r_).replace("hr",ry).replace("heading"," *#{1,6} *[^\n]").replace("lheading",rb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rM=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,rO=/^( {2,}|\\)\n(?!\s*$)/,rN="\\p{P}\\p{S}",rL=rd(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,rN).getRegex(),rD=rd(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,rN).getRegex(),rz=rd("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,rN).getRegex(),r$=rd("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,rN).getRegex(),rV=rd(/\\([punct])/,"gu").replace(/punct/g,rN).getRegex(),rP=rd(/^<(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(),rU=rd(rS).replace("(?:-->|$)","-->").getRegex(),rq=rd("^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",rU).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),rQ=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rH=rd(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",rQ).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rZ=rd(/^!?\[(label)\]\[(ref)\]/).replace("label",rQ).replace("ref",rC).getRegex(),rW=rd(/^!?\[(ref)\](?:\[\])?/).replace("ref",rC).getRegex(),rK=rd("reflink|nolink(?!\\()","g").replace("reflink",rZ).replace("nolink",rW).getRegex(),rG={_backpedal:rf,anyPunctuation:rV,autolink:rP,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:rO,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:rf,emStrongLDelim:rD,emStrongRDelimAst:rz,emStrongRDelimUnd:r$,escape:rM,link:rH,nolink:rW,punctuation:rL,reflink:rZ,reflinkSearch:rK,tag:rq,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:rf},rY={...rG,link:rd(/^!?\[(label)\]\((.*?)\)/).replace("label",rQ).getRegex(),reflink:rd(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rQ).getRegex()},rX={...rG,escape:rd(rM).replace("])","~|])").getRegex(),url:rd(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},rJ={...rX,br:rd(rO).replace("{2,}","*").getRegex(),text:rd(rX.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},r0={normal:rT,gfm:rR,pedantic:rj},r1={normal:rG,gfm:rX,breaks:rJ,pedantic:rY};class r2{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||rs,this.options.tokenizer=this.options.tokenizer||new rk,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:r0.normal,inline:r1.normal};this.options.pedantic?(t.block=r0.pedantic,t.inline=r1.pedantic):this.options.gfm&&(t.block=r0.gfm,this.options.breaks?t.inline=r1.breaks:t.inline=r1.gfm),this.tokenizer.rules=t}static get rules(){return{block:r0,inline:r1}}static lex(e,t){return new r2(t).lex(e)}static lexInline(e,t){return new r2(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 s,r,n,i;for(e=this.options.pedantic?e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(e,t,s)=>t+"    ".repeat(s.length));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(s=r.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))){if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length),1===s.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(s);continue}if((s=this.tokenizer.fences(e))||(s=this.tokenizer.heading(e))||(s=this.tokenizer.hr(e))||(s=this.tokenizer.blockquote(e))||(s=this.tokenizer.list(e))||(s=this.tokenizer.html(e))){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length),(r=t[t.length-1])&&("paragraph"===r.type||"text"===r.type)?(r.raw+="\n"+s.raw,r.text+="\n"+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if((s=this.tokenizer.table(e))||(s=this.tokenizer.lheading(e))){e=e.substring(s.raw.length),t.push(s);continue}if(n=e,this.options.extensions&&this.options.extensions.startBlock){let t,s=1/0,r=e.slice(1);this.options.extensions.startBlock.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(s=Math.min(s,t))}),s<1/0&&s>=0&&(n=e.substring(0,s+1))}if(this.state.top&&(s=this.tokenizer.paragraph(n))){r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(s),i=n.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+s.raw,r.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(s);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 s,r,n,i,a,l,o=e;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(o));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(o));)o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(o));)o=o.slice(0,i.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(l=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(s=r.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))){if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),(r=t[t.length-1])&&"text"===s.type&&"text"===r.type?(r.raw+=s.raw,r.text+=s.text):t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length),(r=t[t.length-1])&&"text"===s.type&&"text"===r.type?(r.raw+=s.raw,r.text+=s.text):t.push(s);continue}if((s=this.tokenizer.emStrong(e,o,l))||(s=this.tokenizer.codespan(e))||(s=this.tokenizer.br(e))||(s=this.tokenizer.del(e))||(s=this.tokenizer.autolink(e))||!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}if(n=e,this.options.extensions&&this.options.extensions.startInline){let t,s=1/0,r=e.slice(1);this.options.extensions.startInline.forEach(e=>{"number"==typeof(t=e.call({lexer:this},r))&&t>=0&&(s=Math.min(s,t))}),s<1/0&&s>=0&&(n=e.substring(0,s+1))}if(s=this.tokenizer.inlineText(n)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(l=s.raw.slice(-1)),a=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=s.raw,r.text+=s.text):t.push(s);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 r3{options;constructor(e){this.options=e||rs}code(e,t,s){let r=(t||"").match(/^\S*/)?.[0];return(e=e.replace(/\n$/,"")+"\n",r)?'<pre><code class="language-'+ru(r)+'">'+(s?e:ru(e,!0))+"</code></pre>\n":"<pre><code>"+(s?e:ru(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e,t){return e}heading(e,t,s){return`<h${t}>${e}</h${t}>
`}hr(){return"<hr>\n"}list(e,t,s){let r=t?"ol":"ul";return"<"+r+(t&&1!==s?' start="'+s+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e,t,s){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 s=t.header?"th":"td";return(t.align?`<${s} align="${t.align}">`:`<${s}>`)+e+`</${s}>
`}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,s){let r=rp(e);if(null===r)return s;let n='<a href="'+(e=r)+'"';return t&&(n+=' title="'+t+'"'),n+=">"+s+"</a>"}image(e,t,s){let r=rp(e);if(null===r)return s;e=r;let n=`<img src="${e}" alt="${s}"`;return t&&(n+=` title="${t}"`),n+=">"}text(e){return e}}class r4{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,s){return""+s}image(e,t,s){return""+s}br(){return""}}class r5{options;renderer;textRenderer;constructor(e){this.options=e||rs,this.options.renderer=this.options.renderer||new r3,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new r4}static parse(e,t){return new r5(t).parse(e)}static parseInline(e,t){return new r5(t).parseInline(e)}parse(e,t=!0){let s="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(n.type)){s+=e||"";continue}}switch(n.type){case"space":continue;case"hr":s+=this.renderer.hr();continue;case"heading":s+=this.renderer.heading(this.parseInline(n.tokens),n.depth,this.parseInline(n.tokens,this.textRenderer).replace(rc,(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":s+=this.renderer.code(n.text,n.lang,!!n.escaped);continue;case"table":{let e="",t="";for(let e=0;e<n.header.length;e++)t+=this.renderer.tablecell(this.parseInline(n.header[e].tokens),{header:!0,align:n.align[e]});e+=this.renderer.tablerow(t);let r="";for(let e=0;e<n.rows.length;e++){let s=n.rows[e];t="";for(let e=0;e<s.length;e++)t+=this.renderer.tablecell(this.parseInline(s[e].tokens),{header:!1,align:n.align[e]});r+=this.renderer.tablerow(t)}s+=this.renderer.table(e,r);continue}case"blockquote":{let e=this.parse(n.tokens);s+=this.renderer.blockquote(e);continue}case"list":{let e=n.ordered,t=n.start,r=n.loose,i="";for(let e=0;e<n.items.length;e++){let t=n.items[e],s=t.checked,a=t.task,l="";if(t.task){let e=this.renderer.checkbox(!!s);r?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+" "}):l+=e+" "}l+=this.parse(t.tokens,r),i+=this.renderer.listitem(l,a,!!s)}s+=this.renderer.list(i,e,t);continue}case"html":s+=this.renderer.html(n.text,n.block);continue;case"paragraph":s+=this.renderer.paragraph(this.parseInline(n.tokens));continue;case"text":{let i=n,a=i.tokens?this.parseInline(i.tokens):i.text;for(;r+1<e.length&&"text"===e[r+1].type;)a+="\n"+((i=e[++r]).tokens?this.parseInline(i.tokens):i.text);s+=t?this.renderer.paragraph(a):a;continue}default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return s}parseInline(e,t){t=t||this.renderer;let s="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[n.type]){let e=this.options.extensions.renderers[n.type].call({parser:this},n);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.type)){s+=e||"";continue}}switch(n.type){case"escape":case"text":s+=t.text(n.text);break;case"html":s+=t.html(n.text);break;case"link":s+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":s+=t.image(n.href,n.title,n.text);break;case"strong":s+=t.strong(this.parseInline(n.tokens,t));break;case"em":s+=t.em(this.parseInline(n.tokens,t));break;case"codespan":s+=t.codespan(n.text);break;case"br":s+=t.br();break;case"del":s+=t.del(this.parseInline(n.tokens,t));break;default:{let e='Token with "'+n.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return s}}class r7{options;constructor(e){this.options=e||rs}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}let r6=new class{defaults=rt();options=this.setOptions;parse=this.#e(r2.lex,r5.parse);parseInline=this.#e(r2.lexInline,r5.parseInline);Parser=r5;Renderer=r3;TextRenderer=r4;Lexer=r2;Tokenizer=rk;Hooks=r7;constructor(...e){this.use(...e)}walkTokens(e,t){let s=[];for(let r of e)switch(s=s.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)s=s.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)s=s.concat(this.walkTokens(r.tokens,t));break;case"list":s=s.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let n=e[r].flat(1/0);s=s.concat(this.walkTokens(n,t))}):e.tokens&&(s=s.concat(this.walkTokens(e.tokens,t)))}}return s}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let s={...e};if(s.async=this.defaults.async||s.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let s=t.renderers[e.name];s?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=s.apply(this,t)),r}: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 s=t[e.level];s?s.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)}),s.extensions=t),e.renderer){let t=this.defaults.renderer||new r3(this.defaults);for(let s in e.renderer){if(!(s in t))throw Error(`renderer '${s}' does not exist`);if("options"===s)continue;let r=e.renderer[s],n=t[s];t[s]=(...e)=>{let s=r.apply(t,e);return!1===s&&(s=n.apply(t,e)),s||""}}s.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new rk(this.defaults);for(let s in e.tokenizer){if(!(s in t))throw Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let r=e.tokenizer[s],n=t[s];t[s]=(...e)=>{let s=r.apply(t,e);return!1===s&&(s=n.apply(t,e)),s}}s.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new r7;for(let s in e.hooks){if(!(s in t))throw Error(`hook '${s}' does not exist`);if("options"===s)continue;let r=e.hooks[s],n=t[s];r7.passThroughHooks.has(s)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then(e=>n.call(t,e));let s=r.call(t,e);return n.call(t,s)}:t[s]=(...e)=>{let s=r.apply(t,e);return!1===s&&(s=n.apply(t,e)),s}}s.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;s.walkTokens=function(e){let s=[];return s.push(r.call(this,e)),t&&(s=s.concat(t.call(this,e))),s}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return r2.lex(e,t??this.defaults)}parser(e,t){return r5.parse(e,t??this.defaults)}#e(e,t){return(s,r)=>{let n={...r},i={...this.defaults,...n};!0===this.defaults.async&&!1===n.async&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);let a=this.#t(!!i.silent,!!i.async);if(null==s)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof s)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(s):s).then(t=>e(t,i)).then(e=>i.hooks?i.hooks.processAllTokens(e):e).then(e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then(()=>e):e).then(e=>t(e,i)).then(e=>i.hooks?i.hooks.postprocess(e):e).catch(a);try{i.hooks&&(s=i.hooks.preprocess(s));let r=e(s,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=t(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}#t(e,t){return s=>{if(s.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ru(s.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(s);throw s}}};function r8(e,t){return r6.parse(e,t)}r8.options=r8.setOptions=function(e){return r6.setOptions(e),r8.defaults=r6.defaults,rs=r8.defaults,r8},r8.getDefaults=rt,r8.defaults=rs,r8.use=function(...e){return r6.use(...e),r8.defaults=r6.defaults,rs=r8.defaults,r8},r8.walkTokens=function(e,t){return r6.walkTokens(e,t)},r8.parseInline=r6.parseInline,r8.Parser=r5,r8.parser=r5.parse,r8.Renderer=r3,r8.TextRenderer=r4,r8.Lexer=r2,r8.lexer=r2.lex,r8.Tokenizer=rk,r8.Hooks=r7,r8.parse=r8,r8.options,r8.setOptions,r8.use,r8.walkTokens,r8.parseInline,r5.parse,r2.lex;var r9=e.i(67034);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 ne=Object.freeze({RUB:"₽",USD:"$",EUR:"€",AUD:"AU$",AZN:"₼",GBP:"£",AMD:"֏",BYN:"Br",BGN:"лв",BRL:"R$",HUF:"Ft",VND:"₫",HKD:"HK$",GEL:"₾",DKK:"kr",AED:"د.إ.",EGP:"E£",INR:"₹",IDR:"Rp",KZT:"₸",CAD:"CA$",QAR:"ر.ق.",KGS:"с",CNY:"CN¥",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:"¥"});var nt=((l=nt||{}).Pending="pending",l.Success="success",l);let ns="function"==typeof atob,nr="function"==typeof btoa,nn="function"==typeof r9.Buffer,ni=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),na=(r={},ni.forEach((e,t)=>r[e]=t),r),nl=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,no=String.fromCharCode.bind(String),nu="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(e,t=e=>e)=>new Uint8Array(Array.prototype.slice.call(e,0).map(t)),nc=nr?e=>btoa(e):nn?e=>r9.Buffer.from(e,"binary").toString("base64"):e=>{let t,s,r,n,i="",a=e.length%3;for(let a=0;a<e.length;){if((s=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw TypeError("invalid character found");i+=ni[(t=s<<16|r<<8|n)>>18&63]+ni[t>>12&63]+ni[t>>6&63]+ni[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},nh=ns?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):nn?e=>r9.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!nl.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,s="",r,n;for(let i=0;i<e.length;)t=na[e.charAt(i++)]<<18|na[e.charAt(i++)]<<12|(r=na[e.charAt(i++)])<<6|(n=na[e.charAt(i++)]),s+=64===r?no(t>>16&255):64===n?no(t>>16&255,t>>8&255):no(t>>16&255,t>>8&255,255&t);return s};var nd=((o=nd||{}).PERSISTENT_STATE="persistentState",o);let np=[{name:"Browser Loona",regex:/\bSapphire(?:\/[0-9.]+)?/i}],nf="function"==typeof r9.Buffer,ng=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),nm=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),nv=(n={},nm.forEach((e,t)=>n[e]=t),n),nk=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,ny=String.fromCharCode.bind(String),nx="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),nb="function"==typeof btoa?e=>btoa(e):nf?e=>r9.Buffer.from(e,"binary").toString("base64"):e=>{let t,s,r,n,i="",a=e.length%3;for(let a=0;a<e.length;){if((s=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255)throw TypeError("invalid character found");i+=nm[(t=s<<16|r<<8|n)>>18&63]+nm[t>>12&63]+nm[t>>6&63]+nm[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},n_=nf?e=>r9.Buffer.from(e).toString("base64"):e=>{let t=[];for(let s=0,r=e.length;s<r;s+=4096)t.push(ny.apply(null,e.subarray(s,s+4096)));return nb(t.join(""))},nC=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?ny(192|t>>>6)+ny(128|63&t):ny(224|t>>>12&15)+ny(128|t>>>6&63)+ny(128|63&t)}var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return ny(240|t>>>18&7)+ny(128|t>>>12&63)+ny(128|t>>>6&63)+ny(128|63&t)},nw=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,nA=nf?e=>r9.Buffer.from(e,"utf8").toString("base64"):ng?e=>n_(ng.encode(e)):e=>nb(e.replace(nw,nC)),nE="function"==typeof atob?e=>atob(e.replace(/[^A-Za-z0-9\+\/]/g,"")):nf?e=>r9.Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!nk.test(e))throw TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,s="",r,n;for(let i=0;i<e.length;)t=nv[e.charAt(i++)]<<18|nv[e.charAt(i++)]<<12|(r=nv[e.charAt(i++)])<<6|(n=nv[e.charAt(i++)]),s+=64===r?ny(t>>16&255):64===n?ny(t>>16&255,t>>8&255):ny(t>>16&255,t>>8&255,255&t);return s},nS=({s3AssetsUrl:e,className:t,withLogo:s=!1,isNewYearLogo:r=!1,dataQa:n,brandmarkCode:i})=>{if(!e)return null;let a=r?(0,ez.W)(e,"logo/finuslugi/lk-regular-new-year.svg"):(0,ez.W)(e,"logo/finuslugi/lk-regular.svg"),l=(0,ez.W)(e,`/images/logo-brandmark-bank-${i}.svg`);return(0,su.jsx)(su.Fragment,{children:s&&(0,su.jsxs)("div",{className:sc("_logo_1y5yi_31",t),"data-qa":n,children:[(0,su.jsx)("img",{className:"_mainLogo_1y5yi_38",src:a,alt:"Логотип"}),i&&(0,su.jsxs)(su.Fragment,{children:[(0,su.jsx)("div",{className:"_divider_1y5yi_46"}),(0,su.jsx)("img",{className:"_brandmarkLogo_1y5yi_42",src:l,alt:"Логотип партнера"})]})]})})};nS.displayName="Logo";let nI=({children:e,className:t,style:s,autoWidth:r,...n})=>(0,su.jsx)("span",{className:sc(t,"_privateIcon_xcp32_1",r&&"_autoWidth_xcp32_14"),style:s,...n,children:e});nI.displayName="PrivateIcon";let nB="_buttons_1vnnm_31",nT="_--disabled_1vnnm_38",nF="_buttonIcons_1vnnm_42",nR=({buttonsData:e,disabled:t=!1,primaryTextOverride:s,additionalTextOverride:r,extraTextOverride:n,onAnalyticsEvent:i,onOpen:a,linkTarget:l})=>{let{buttons:o,type:u}=e,c={primary:s,additional:r,extra:n};return o.length?(0,su.jsxs)(su.Fragment,{children:[1===o.length&&(0,su.jsx)(eg.f,{dataQa:`login-widget-${u}-button`,as:"a",target:l,href:t?"#login-widget-consents":o[0].href,stretch:!0,variant:"primary"===u?"primary":"secondary",disabled:t,label:c[u]??o[0].label,iconLeft:c[u]?void 0:o[0].icon,onClick:()=>{null==i||i({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:o[0].type})}},`button-${u}`),o.length>1&&(0,su.jsx)(su.Fragment,{children:(0,su.jsx)(eg.f,{dataQa:`login-widget-${u}-button`,stretch:!0,variant:"primary"===u?"primary":"secondary",disabled:t,label:c[u]?(0,su.jsx)("span",{children:c[u]}):(0,eE.k)("xs")&&o.length>5?(0,su.jsx)("span",{children:"Войти по ID"}):(0,su.jsx)("span",{className:nF,children:o.map(e=>e.icon?(0,su.jsx)(nI,{style:{lineHeight:0},children:e.icon},e.type):void 0)}),onClick:()=>null==a?void 0:a(u)},`button-${u}`)})]}):null};nR.displayName="ButtonsGroup";let nj=({buttonsList:e=[],isOpen:t=!1,buttonsType:s="",onAnalyticsEvent:r,onClose:n,linkTarget:i})=>{var a,l;let o=(0,c.useCallback)(e=>{null==r||r({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e}),setTimeout(()=>null==n?void 0:n())},[]);return(0,su.jsx)(ej.f,{header:{title:"Выберите способ входа"},open:t,onClose:n,dataQa:"login-widget-buttons-modal",children:(0,su.jsx)("div",{className:"_modalInner_1vnnm_71",children:null==(l=null==(a=e.find(e=>e.type===s))?void 0:a.buttons)?void 0:l.map(({type:e,href:t,caption:s,icon:r,secondaryIcon:n})=>(0,su.jsx)(eg.f,{dataQa:`login-widget-buttons-modal-button-${null==e?void 0:e.toLowerCase()}`,as:"a",target:i,href:t,stretch:!0,variant:"secondary",label:s,iconLeft:n??r,onClick:()=>o(e)},`modal-button-${e}`))})})};nj.displayName="ButtonsModal";let nM=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:s,additionalTextOverride:r,extraTextOverride:n,onAnalyticsEvent:i,linkTarget:a})=>{let[l,o]=(0,c.useState)(!1),[u,h]=(0,c.useState)(),{primaryGroup:d,remainingGroup:p,isRemainingGroupVisible:f}=(0,c.useMemo)(()=>{let[t,...s]=e,r=s.some(({buttons:e})=>e.length);return{primaryGroup:t,remainingGroup:s,isRemainingGroupVisible:r}},[e]),g=(0,c.useCallback)(e=>{o(!0),h(e),null==i||i({eventCategory:"login-widget",eventAction:"click_popup_open",eventLabel:"popup_select_login_provider"})},[]),m=(0,c.useCallback)(()=>{o(!1),h(""),null==i||i({eventCategory:"login-widget",eventAction:"click_popup_close",eventLabel:"popup_select_login_provider"})},[]);return e.length?(0,su.jsxs)("div",{className:sc(nB,{[nT]:t}),"data-qa":"login-widget-buttons",children:[(0,su.jsx)(nR,{buttonsData:d,disabled:t,primaryTextOverride:s,onAnalyticsEvent:i,onOpen:g,linkTarget:a}),f&&(0,su.jsxs)(su.Fragment,{children:[!!d.buttons.length&&(0,su.jsx)(sh.f,{className:"_divider_1vnnm_47",content:"или",dataQa:"login-widget-buttons-divider"}),p.map(e=>(0,su.jsx)(nR,{buttonsData:e,additionalTextOverride:r,extraTextOverride:n,disabled:t,onAnalyticsEvent:i,onOpen:g,linkTarget:a},`group-${e.type}`))]}),(0,su.jsx)(nj,{buttonsList:e,buttonsType:u,isOpen:l,onAnalyticsEvent:i,onClose:m,linkTarget:a})]}):null};nM.displayName="Buttons";let nO=({buttonsList:e=[],disabled:t=!1,primaryTextOverride:s,onAnalyticsEvent:r,linkTarget:n})=>{let i=(0,c.useCallback)(e=>{null==r||r({eventCategory:"login-widget",eventAction:"click_button_login",eventLabel:e})},[]),{primaryGroup:a,remainingGroup:l,isRemainingGroupVisible:o}=(0,c.useMemo)(()=>{let[t,...s]=e;return{primaryGroup:t,remainingGroup:s.reduce((e,{buttons:t})=>[...e,...t],[]),isRemainingGroupVisible:s.some(({buttons:e})=>e.length)}},[e]);return e.length?(0,su.jsxs)("div",{className:sc(nB,{[nT]:t}),"data-qa":"login-widget-buttons",children:[(0,su.jsx)(nR,{buttonsData:a,disabled:t,primaryTextOverride:s,onAnalyticsEvent:r,linkTarget:n}),o&&(0,su.jsxs)(su.Fragment,{children:[!!a.buttons.length&&(0,su.jsx)(sh.f,{className:"_gridViewDivider_1vnnm_61",content:"или",dataQa:"login-widget-buttons-divider"}),(0,su.jsx)("div",{className:sc("_gridView_1vnnm_51",{[nT]:t}),"data-qa":"login-widget-buttons",children:l.map(e=>(0,su.jsx)(eg.f,{appearance:"outline",stretch:!0,variant:"secondary",dataQa:`login-widget-${e.type}-button`,as:"a",target:n,href:e.href,disabled:t,label:(0,su.jsx)(nI,{className:nF,autoWidth:!0,children:e.icon},e.type),onClick:()=>i(e.type)},`button-${e.type}`))})]})]}):null};nO.displayName="ButtonsGrid";let nN=({phone:e,onPhoneChange:t,buttonsList:s,disabled:r,primaryTextOverride:n,onAnalyticsEvent:i,linkTarget:a})=>(0,su.jsxs)("div",{className:sc("_formView_1vnnm_65"),children:[(0,su.jsx)(s0,{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,su.jsx)(nO,{buttonsList:s,disabled:r,primaryTextOverride:n,onAnalyticsEvent:i,linkTarget:a})]});nN.displayName="PhoneViewButtons";let nL=({template:e,onLinkClick:t})=>{if(!Object.keys(e).length||!e.links)return null;let{text:s,links:r}=e,n=s.split(/(\$\d+)/);return(0,su.jsx)(su.Fragment,{children:n.map(e=>{if(e.startsWith("$")){let s=r[parseInt(e.slice(1))-1];return(0,su.jsx)("a",{href:s.href,target:"_blank",rel:"noreferrer",onClick:()=>null==t?void 0:t(s.href),children:s.text},`link--${s.text}`)}return(0,su.jsx)("span",{children:e},`text--${e}`)})})};nL.displayName="TemplateText";let nD=({consents:e=[],onAgree:t,onError:s,onAnalyticsEvent:r})=>{let[n,i]=(0,c.useState)(()=>Object.fromEntries(e.map(e=>[e.key,e.value]))),a=e.filter(e=>!e.hidden),l=a.filter(e=>e.required).some(e=>!n[e.key]);(0,c.useEffect)(()=>{t(n)},[n]),(0,c.useEffect)(()=>{s(l)},[l]);let o=e=>{null==r||r({eventCategory:"login-widget",eventAction:"click_link_consent",eventLabel:e})};return e.length?(0,su.jsx)("div",{id:"login-widget-consents",className:"_consents_1v8l3_31","data-qa":"login-widget-consents",children:(0,su.jsx)("div",{className:"_list_1v8l3_31","data-qa":"login-widget-consents-list",children:a.map(({key:e,title:t,required:s})=>{var a;return(0,su.jsx)(re,{dataQa:`login-widget-consents-checkbox-${e}`,className:sc("_checkbox_1v8l3_36",{_error_1v8l3_46:!n[e]&&l}),state:s&&!n[e]?"error":"default",value:n[e],onChange:t=>{i(s=>({...s,[e]:t})),null==r||r({eventCategory:"login-widget",eventAction:"click_checkbox_consent",eventLabel:`${e}_${t?"tick":"untick"}`})},children:null!=(a=t.links)&&a.length?(0,su.jsx)(nL,{template:t,onLinkClick:o}):t.text},e)})})}):null};nD.displayName="Consents";let nz={check:(0,su.jsx)(e=>c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#a)"},c.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,su.jsx)(e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#a)"},c.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,su.jsx)(e=>c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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,su.jsx)(e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#a)"},c.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,su.jsx)(e=>c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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,su.jsx)(e=>c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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"})),{})},n$=({highlights:e})=>{if(!e||!e.items.length)return null;let{items:t,heading:s}=e;return(0,su.jsxs)(tc.f,{variant:"secondary",dataQa:"login-widget-highlights",children:[s&&(0,su.jsx)(eb,{as:"h5",type:"h5",className:"mb-2",dataQa:"login-widget-highlights-heading",children:s}),(0,su.jsx)("ul",{className:"_list_1896j_39","data-qa":"login-widget-highlights-list",children:(0,su.jsx)(su.Fragment,{children:t.map(({text:e,icon:t})=>(0,su.jsxs)("li",{className:"_item_1896j_47","data-qa":"login-widget-highlights-list-item",children:[(0,su.jsx)("div",{className:"_icon_1896j_61","data-qa":"login-widget-highlights-list-icon",children:nz[t]||nz.check}),(0,su.jsx)(eA.f,{as:"p",dataQa:"login-widget-highlights-list-text",children:e})]},`${e}--${t}`))})})]})};n$.displayName="Highlights";let nV=({legalInfo:e,onAnalyticsEvent:t})=>{if(!e||Object.values(e).every(e=>!e))return null;let{plain:s,html:r,md:n}=e,i=n?r8.parse(n):r??"";return(0,su.jsx)("div",{className:"_legalInfo_hviu6_31","data-qa":"login-widget-legal-info",children:s?(0,su.jsx)(nL,{template:s,onLinkClick:e=>{null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:e})}}):(0,su.jsx)("div",{dangerouslySetInnerHTML:{__html:i},onClick:e=>{let{href:s}=e.target;s&&(null==t||t({eventCategory:"login-widget",eventAction:"click_link_legal_info",eventLabel:s}))}})})};nV.displayName="LegalInfo";let nP={DAY:["день","дня","дней"],MONTH:["мес.","мес.","мес."],YEAR:["год","года","лет"],TERMLESS:["бессрочный","бессрочный","бессрочный"]},nU={deposit:"Вклад",credit:"Кредит",bond:"Облигация",account:"Счет","banking-account":"Банковский счет"},nq={productCard:"_productCard_1y8pb_31","--credits":"_--credits_1y8pb_34",detailRate:"_detailRate_1y8pb_34","--bond":"_--bond_1y8pb_37",headingWrap:"_headingWrap_1y8pb_41",wrapper:"_wrapper_1y8pb_49",info:"_info_1y8pb_55",logo:"_logo_1y8pb_61",textWrapper:"_textWrapper_1y8pb_70",text:"_text_1y8pb_70",label:"_label_1y8pb_94",details:"_details_1y8pb_110",detail:"_detail_1y8pb_34",detailTitle:"_detailTitle_1y8pb_122",detailValue:"_detailValue_1y8pb_128"},nQ=({title:e,value:t,className:s,...r})=>(0,su.jsxs)("div",{className:nq.detail,...r,children:[(0,su.jsx)(b,{dataQa:"login-widget-product-card-detail-title",className:nq.detailTitle,children:e}),(0,su.jsx)(b,{dataQa:"login-widget-product-card-detail-value",className:(sc(nq.detailValue),s),children:t})]});nQ.displayName="ProductDetail";let nH=({params:e})=>{if(!e)return null;let{amount:t,rate:s}=e??{},r=(e=>{if(!(e instanceof Date))return null;let t=String(e.getDate()).padStart(2,"0"),s=String(e.getMonth()+1).padStart(2,"0"),r=e.getFullYear();return`${t}.${s}.${r}`})(e.endDate),n=e.term,i=[{id:"params-rate",title:"Ставка",value:`${s}%`},{id:"params-amount",title:"Сумма",value:`${function(e,t){try{let s,{hasCurrencySymbol:r=!0,currencyCode:n,decimalCount:i=2,decimalSeparator:a=",",thousandsSeparator:l=" ",decimalIsWithoutZeros:o=!0,preventLargeNumbers:u=!1}=t||{},c=e;if("string"==typeof c&&(c=c.replace(/\s+/g,"").replace(",",".")),c=Number(c)||0,u&&(s=function(e,t){if(e>=1e9){let s=(Math.floor(e/1e9*1e3)/1e3).toString();return s.includes(".")?s.replace(".",",").replace(/0+$/,"")+t+"млрд":s+t+"млрд"}if(e>=1e6){let s=(Math.floor(e/1e6*1e3)/1e3).toString();return s.includes(".")?s.replace(".",",").replace(/0+$/,"")+t+"млн":s+t+"млн"}return e>=1e4&&e<=99999?Math.trunc(e):e}(c,l)),!u||u&&"number"==typeof s){let e,t=Number(s??c),r=u&&t>1e3?0:(e=Math.abs(Number(i)),Number.isNaN(e)?2:e),n=Math.abs(t).toFixed(r),h=parseInt(n,10);s=function({money:e,moneyInt:t,thousandsSeparator:s}){let r=t.toString(),n=RegExp(r.length>4?"(\\d{3})(?=\\d)":"(\\d{4})(?=\\d)","g"),i=r.length>4?r.length%3:0;return(e<0?"-":"")+(i?r.substr(0,i)+s:"")+r.substr(i).replace(n,`$1${s}`)}({money:t,moneyInt:h,thousandsSeparator:l})+function({money:e,moneyInt:t,decimalCount:s,decimalSeparator:r,decimalIsWithoutZeros:n}){let i=Math.abs(e-t).toFixed(s),a=n?i.slice(2).replace(/0+$/,""):i.slice(2);return!s||0===(Number(e)||0)||n&&0===parseFloat(i)||""===a?"":r+a}({money:Number(n),moneyInt:h,decimalCount:r,decimalSeparator:a,decimalIsWithoutZeros:o})}return s+(r?`\xa0${ne[n]||ne.RUB}`:"")}catch(e){return console.log(e),""}}(null==t?void 0:t.value,{preventLargeNumbers:!0,currencyCode:(null==t?void 0:t.currency)??"RUB"})}`},{id:n?"params-term":r?"params-end-date":"",title:n?"Срок":r?"Погашение":"",value:n?`${function(e,t,s=!1){if(!Array.isArray(t))throw Error("Plurals must be type of Array<String>");let[r,n,i]=t,a=Math.abs(+e);return(a%=100)>=5&&a<=20?s?i:`${e} ${i}`:1==(a%=10)?s?r:`${e} ${r}`:a>=2&&a<=4?s?n:`${e} ${n}`:s?i:`${e} ${i}`}(n.value,nP[n.type??"DAY"])}`:r||""}];return(0,su.jsx)("div",{className:nq.details,"data-qa":"login-widget-product-card-details",children:i.map(({id:e,title:t,value:s})=>(0,su.jsx)(nQ,{"data-qa":`login-widget-product-card-detail-${e}`,title:t,value:s,className:sc({[nq.detailRate]:"params-rate"===e})},e))})};nH.displayName="ProductDetails";let nZ=({productInfo:e,s3AssetsUrl:t,className:s,onAnalyticsEvent:r})=>{let n=(0,c.useRef)(null),i=!e||!Object.keys(e).length,a=!n.current||!Object.keys(n.current).length;if((0,c.useEffect)(()=>{var t;i&&!a?null==r||r({eventCategory:"login-widget",eventAction:"view_product_delete",eventLabel:(null==(t=n.current)?void 0:t.type)??void 0}):!i&&a?null==r||r({eventCategory:"login-widget",eventAction:"view_product_add",eventLabel:e.type??void 0}):i||a||null==r||r({eventCategory:"login-widget",eventAction:"view_product_update",eventLabel:e.type??void 0}),n.current=e},[e]),i)return null;let{title:l,label:o,type:u,params:h,provider:d}=e,p=(0,ez.W)(t,`/images/logo-brandmark-bank-${null==d?void 0:d.code}.svg`),f=null==d?void 0:d.code,g=u?nU[u]:"";return(0,su.jsxs)(tc.f,{variant:"secondary",className:sc(nq.productCard,{[nq[`--${u}`]??""]:!0},s),dataQa:"login-widget-product-card",children:[(0,su.jsxs)("div",{className:sc("mb-3",nq.headingWrap),children:[(0,su.jsx)(eb,{as:"h5",type:"h5",dataQa:"login-widget-product-card-heading",children:"Выбранный продукт"}),o&&(0,su.jsx)(ew,{label:o,rounded:!0,size:"s",variant:"red",dataQa:"login-widget-product-card-label"})]}),(0,su.jsxs)("div",{className:nq.wrapper,children:[(0,su.jsxs)("div",{className:nq.info,"data-qa":"login-widget-product-card-info",children:[f&&(0,su.jsx)("img",{className:nq.logo,loading:"lazy",width:"100%",height:"36px",src:p,alt:"Логотип продукта","data-qa":"login-widget-product-card-logo"}),(0,su.jsxs)("div",{className:nq.textWrapper,children:[g&&(0,su.jsx)(eA.f,{as:"p",dataQa:"login-widget-product-card-title",className:nq.text,children:g}),l&&(0,su.jsx)(eA.f,{as:"p",dataQa:"login-widget-product-card-text",className:nq.text,children:l})]})]}),(0,su.jsx)(nH,{params:h})]})]})};nZ.displayName="ProductCard";let nW=Object.freeze({ESIA:{label:"Войти через Госуслуги",caption:"Госуслуги",icon:e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.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"}),c.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"}),c.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=>c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"esia-colored",gradientUnits:"userSpaceOnUse"},c.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),c.createElement("stop",{offset:.636,stopColor:"#EF3E58"}))),c.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=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#a)"},c.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},WEB_AUTHN:{label:"Быстрый вход",caption:"Быстрый вход",icon:e=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24.001,fill:"none",viewBox:"0 0 24 24.001",...e},c.createElement("path",{d:"M0 0h24v24.001H0z"}),c.createElement("path",{fill:"#1f242e",fillRule:"evenodd",d:"M17.753 4.827a11.23 11.23 0 0 0-7.218-1.484q-1.147.152-2.22.523a11.2 11.2 0 0 0-2.065.964.743.743 0 0 1-1.028-.261.743.743 0 0 1 .261-1.028 12.7 12.7 0 0 1 4.857-1.685 12.7 12.7 0 0 1 4.05.116 12.8 12.8 0 0 1 4.13 1.566.743.743 0 0 1 .26 1.028.743.743 0 0 1-1.027.261M2.62 11.844q-.154.543-.244 1.104a.743.743 0 0 0 .621.86.743.743 0 0 0 .86-.622 8.3 8.3 0 0 1 1.283-3.271A8.2 8.2 0 0 1 6.17 8.664a8.23 8.23 0 0 1 8.99-1.789q.758.314 1.425.76.67.447 1.252 1.029a8.23 8.23 0 0 1 2.312 4.524.743.743 0 0 0 .86.621.743.743 0 0 0 .62-.86 9.74 9.74 0 0 0-2.731-5.346 9.7 9.7 0 0 0-1.48-1.216l-.001-.001a9.7 9.7 0 0 0-1.683-.897 9.7 9.7 0 0 0-1.828-.556 9.7 9.7 0 0 0-1.903-.186A9.72 9.72 0 0 0 5.11 7.603a9.7 9.7 0 0 0-2.484 4.228zm14.533 1.632q.1.5.1 1.021c0 .42.33.75.75.75s.75-.33.75-.75a6.73 6.73 0 0 0-2.997-5.611 6.7 6.7 0 0 0-1.17-.625 6.735 6.735 0 0 0-2.583-.514q-.67 0-1.316.128a6.7 6.7 0 0 0-1.268.386 6.72 6.72 0 0 0-3.653 3.653 6.7 6.7 0 0 0-.514 2.583 12.74 12.74 0 0 0 1.465 5.933.743.743 0 0 0 1.013.315.743.743 0 0 0 .314-1.013 11.24 11.24 0 0 1-1.292-5.235 5.24 5.24 0 0 1 2.332-4.365l.001-.001q.426-.285.908-.484a5.25 5.25 0 0 1 3.032-.3 5.25 5.25 0 0 1 2.69 1.438 5.24 5.24 0 0 1 1.438 2.69m-5.534 8.39q.126.11.255.215a.74.74 0 0 0 1.055-.112.743.743 0 0 0-.112-1.055 8.3 8.3 0 0 1-1.674-1.83 8.2 8.2 0 0 1-.763-1.43 8.2 8.2 0 0 1-.628-3.157 2.245 2.245 0 0 1 2.25-2.25 2.24 2.24 0 0 1 1.874 1.004 2.24 2.24 0 0 1 .376 1.246 3.74 3.74 0 0 0 2.315 3.465 3.73 3.73 0 0 0 3.222-.168c.37-.2.502-.648.302-1.017a.743.743 0 0 0-1.016-.301 2.239 2.239 0 0 1-1.933.1 2.23 2.23 0 0 1-1.218-1.218 2.2 2.2 0 0 1-.172-.86 3.744 3.744 0 0 0-3.75-3.75q-.372 0-.731.07l-.002.001a3.756 3.756 0 0 0-3.017 3.678q0 .969.186 1.902.185.933.556 1.83.372.894.898 1.684a9.7 9.7 0 0 0 1.727 1.954m1.133-7.369a5.24 5.24 0 0 0 3.427 4.923q.18.068.367.121a.74.74 0 0 1 .513.93.743.743 0 0 1-.93.511 6.8 6.8 0 0 1-1.595-.694 6.74 6.74 0 0 1-2.144-2.04 6.73 6.73 0 0 1-1.138-3.75c0-.42.33-.75.75-.75s.75.33.75.75"})),secondaryIcon:void 0},ALFA:{label:void 0,caption:"Альфа ID",icon:e=>c.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},c.createElement("defs",null,c.createElement("clipPath",{id:"clip146_396"},c.createElement("rect",{id:"Logo",width:24,height:24,fill:"white",fillOpacity:0})),c.createElement("clipPath",{id:"clip129_3008"},c.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),c.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#EF3124",fillOpacity:1}),c.createElement("g",{clipPath:"url(#clip129_3008)"},c.createElement("g",{clipPath:"url(#clip146_396)"},c.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=>c.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},c.createElement("defs",null,c.createElement("clipPath",{id:"clip146_362"},c.createElement("rect",{id:"Logo",width:20,height:20,transform:"translate(2.000000 2.000000)",fill:"white",fillOpacity:0})),c.createElement("clipPath",{id:"clip129_3001"},c.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"white",fillOpacity:0}))),c.createElement("rect",{id:"Button",rx:12,width:24,height:24,fill:"#21A038",fillOpacity:1}),c.createElement("g",{clipPath:"url(#clip129_3001)"},c.createElement("g",{clipPath:"url(#clip146_362)"},c.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"}),c.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=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none",...e},c.createElement("defs",null,c.createElement("linearGradient",{id:"c",x1:0,x2:24,y1:12,y2:12,gradientUnits:"userSpaceOnUse"},c.createElement("stop",{stopColor:"#0037FF"}),c.createElement("stop",{offset:.75,stopColor:"#0085FF"})),c.createElement("clipPath",{id:"b"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("mask",{id:"a",width:24,height:24,x:0,y:0,"mask-type":"alpha",maskUnits:"userSpaceOnUse"},c.createElement("circle",{cx:12,cy:12,r:12,fill:"#F7F8FA"})),c.createElement("g",{mask:"url(#a)"},c.createElement("path",{fill:"#F7F8FA",d:"M0 0h24v24H0z"})),c.createElement("g",{clipPath:"url(#b)",mask:"url(#a)"},c.createElement("path",{fill:"url(#c)",d:"M0 0h24v24H0z"}),c.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=>c.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},c.createElement("defs",null),c.createElement("rect",{id:"Button",width:24,height:24,fill:"#FFFFFF",fillOpacity:0}),c.createElement("mask",{id:"mask129_2994","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:24,height:24},c.createElement("rect",{id:"rect",width:24,height:24,fill:"#000000",fillOpacity:1})),c.createElement("g",{mask:"url(#mask129_2994)"},c.createElement("rect",{id:"rect",width:24,height:24,fill:"#FF0032",fillOpacity:1}),c.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"}),c.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"}),c.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=>c.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},c.createElement("defs",null),c.createElement("mask",{id:"mask129_2984","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:44,height:24},c.createElement("rect",{id:"rect",width:44,height:24,fill:"#000000",fillOpacity:1})),c.createElement("g",{mask:"url(#mask129_2984)"},c.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"}),c.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"}),c.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"}),c.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"}),c.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=>c.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},c.createElement("defs",null),c.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"}),c.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=>c.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},c.createElement("defs",null,c.createElement("clipPath",{id:"clipPath_0"},c.createElement("rect",{width:24,height:24,x:0,y:0,fill:"rgb(255,255,255)"}))),c.createElement("rect",{id:"Logo symbol / Company / Promsvyazbank",width:24,height:24,x:0,y:0}),c.createElement("g",{id:"Logo",clipPath:"url(#clipPath_0)"},c.createElement("rect",{id:"Logo",width:24,height:24,x:0,y:0}),c.createElement("rect",{id:"Brand fill",width:24,height:24,x:0,y:0,opacity:0,fill:"rgb(247,248,250)"}),c.createElement("g",{id:"Group"},c.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"}),c.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"}),c.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=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("defs",null,c.createElement("clipPath",{id:"a"},c.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),c.createElement("g",{clipPath:"url(#a)"},c.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}}),nK=e=>!!nW[e]&&("WEB_AUTHN"!==e||function(){var e,t;if("u"<typeof window||"u"<typeof navigator||np.some(({regex:e})=>e.test(null==navigator?void 0:navigator.userAgent)))return!1;let s=!!window.isSecureContext,r=!!(null==navigator?void 0:navigator.credentials),n=!!window.PublicKeyCredential,i=!!(null==(e=null==navigator?void 0:navigator.credentials)?void 0:e.create),a=!!(null==(t=null==navigator?void 0:navigator.credentials)?void 0:t.get);return s&&r&&n&&i&&a}()&&function(){if("u"<typeof window)return!1;try{let e=window.localStorage.getItem("webauthnLinked");return!!e&&JSON.parse(e)}catch{return!1}}()),nG=({serverConfig:e,baseUrl:t,s3AssetsUrl:s="",configKey:r,entryPointId:n,apiVersion:i,config:a,product:l,productContext:o,query:u,scenarioParams:h,isSilent:d,skeleton:p=(0,su.jsx)("p",{children:"Загружаем данные..."}),className:f,style:g,onMount:m,onDestroy:v,onAnalyticsEvent:k,...y})=>{let[x,b]=(0,c.useState)(),[_,C]=(0,c.useState)(),[w,A]=(0,c.useState)(),{getConfig:E,getHref:S}=(e=>{let{configKey:t,entryPointId:s,serverConfig:r={},baseUrl:n,apiBaseUrl:i,apiVersion:a,autoFetch:l=!0,product:o,productContext:u,isSilent:h,config:d,query:p={},scenarioParams:f={},onMount:g,onDestroy:m,onAnalyticsEvent:v}=e,[k,y]=(0,c.useState)(null),[x,b]=(0,c.useState)(l),_=(0,c.useCallback)(async()=>{try{b(!0);let e=await so(i,t??void 0,a);y(e)}catch(e){throw Error(`Unknown fetch error: ${e}`)}finally{b(!1)}},[]);(0,c.useEffect)(()=>(null==g||g(),null==v||v({eventCategory:"login-widget",eventAction:"mount_login_widget"}),()=>{null==m||m(),null==v||v({eventCategory:"login-widget",eventAction:"unmount_login_widget"})}),[]),(0,c.useEffect)(()=>{l&&_()},[l,_]);let C=l?k:r,w=((e,t)=>{var s,r;let n=s=>(null==t?void 0:t[s])===null?null:(null==t?void 0:t[s])??(null==e?void 0:e[s]),i={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:n("title"),description:n("description"),highlights:n("highlights"),consents:null==e?void 0:e.consents,legalInfo:null==e?void 0:e.legalInfo,availableAuthProviders:null==e?void 0:e.availableAuthProviders},a=(e=[],t)=>void 0!==t?e.filter(e=>t.includes(e)):e,l=(e,t)=>({...e,primaryAuthProviders:a(null==e?void 0:e.primaryAuthProviders,t),additionalAuthProviders:a(null==e?void 0:e.additionalAuthProviders,t),extraAuthProviders:a(null==e?void 0:e.extraAuthProviders,t)}),o=null==e?void 0:e.availableAuthProviders,u=!(null!=t&&t.primaryAuthProviders)&&!(null!=(s=null==t?void 0:t.additionalAuthProviders)&&s.length)&&!(null!=(r=null==t?void 0:t.extraAuthProviders)&&r.length);if(!t||u)return{...e&&l(e,o),...i};let c=l(t,o);return c.primaryAuthProviders.length>0||c.additionalAuthProviders.length>0||c.extraAuthProviders.length>0?{...c,...i}:{...e&&l(e,o),...i}})(C,d);return{getConfig:()=>({...w}),getHref:(e,t)=>(0,ez.s)((0,ez.W)(n,"/registration"),{...p,scenario:((e,t=!1)=>t?nA(e).replace(/=/g,"").replace(/[+\/]/g,e=>"+"==e?"-":"_"):nA(e))(JSON.stringify(((e="ESIA",t={})=>({version:"v2",entryPointId:s,product:o,productContext:u,isSilent:h,authProvider:e,consents:Object.fromEntries(((null==C?void 0:C.consents)??[]).map(e=>[e.key,e.value])),...f,...t}))(e,t)),!0)}),isPending:x}})({configKey:r,apiBaseUrl:"",apiVersion:i,entryPointId:n,autoFetch:!1,baseUrl:t,product:l,productContext:o,query:u,scenarioParams:h,isSilent:d,config:a,serverConfig:e,onMount:m,onDestroy:v,onAnalyticsEvent:k}),{theme:I,variant:B,linkTarget:T,title:F,description:R,highlights:j,withLogo:M,isNewYearLogo:O,legalInfo:N,consents:L=[],primaryTextOverride:D,additionalTextOverride:z,extraTextOverride:$,primaryAuthProviders:V,additionalAuthProviders:P=[],extraAuthProviders:U=[],view:q="base"}=E(),{buttonsList:Q}=(e=>{let{providers:t,getHref:s,scenarioOptions:r}=e,n=e=>e?e.filter(nK).map(e=>({...nW[e],href:s(e,r),type:e,caption:nW[e].caption,icon:(0,c.createElement)(nW[e].icon),secondaryIcon:nW[e].secondaryIcon?(0,c.createElement)(nW[e].secondaryIcon):void 0})):[],{primary:i=[],additional:a=[],extra:l=[]}=t,o=n(i),u=n(a),h=n(l);return{primaryButtons:o,additionalButtons:u,extraButtons:h,buttonsList:[{type:"primary",buttons:o},{type:"additional",buttons:u},{type:"extra",buttons:h}]}})({providers:{primary:V,additional:P,extra:U},getHref:S,scenarioOptions:{consents:x,phone:w}}),H=Q.some(({buttons:e})=>e.length>0),Z=(0,c.useCallback)(e=>{null==k||k(e)},[k]),W=(0,c.useCallback)(e=>{A(e)},[]),K="phone"===q?nN:nM,G="primary"===B?tc.f:"div",Y=_?tE:"div",X=(0,c.useCallback)(e=>{C(e)},[]),J=(0,c.useMemo)(()=>l??{},[JSON.stringify(l)]);return e?Object.keys(e).length?(0,su.jsx)("div",{className:sc("_loginWidget_iyq1s_31",f),style:g,...y,"data-auth-widgets-theme":I,"data-qa":"login-widget",children:(0,su.jsxs)(G,{className:"_wrapper_iyq1s_51",children:[(0,su.jsx)(nS,{s3AssetsUrl:s,withLogo:M,isNewYearLogo:O,dataQa:"login-widget-logo"}),(F||R)&&(0,su.jsxs)("div",{children:[F&&(0,su.jsx)(eb,{type:"h2",className:"_heading_iyq1s_56",dataQa:"login-widget-heading",children:F}),R&&(0,su.jsx)(eA.f,{as:"p",size:"14",className:sc("_description_iyq1s_57"),dataQa:"login-widget-description",children:R})]}),H?(0,su.jsx)(Y,{text:_?"Чтобы войти в личный кабинет, подтвердите свое согласие:":"",..._?{dataQa:"login-widget-tooltip"}:{},children:(0,su.jsx)(K,{buttonsList:Q,disabled:_,primaryTextOverride:D,additionalTextOverride:z,extraTextOverride:$,onAnalyticsEvent:Z,linkTarget:T,phone:w,onPhoneChange:W})}):(0,su.jsx)(eA.f,{as:"p",weight:"bold",size:"20",dataQa:"login-widget-providers-empty",style:{textAlign:"center"},className:"mb-2",children:"Возникла техническая ошибка. Выберите другой способ входа или попробуйте войти позже"}),(0,su.jsx)(nD,{consents:L,onAgree:e=>{b(e)},onError:X,onAnalyticsEvent:k}),(0,su.jsx)(nZ,{productInfo:J,s3AssetsUrl:s,onAnalyticsEvent:k}),(0,su.jsx)(n$,{highlights:j??null}),(0,su.jsx)(nV,{legalInfo:N,onAnalyticsEvent:k})]})}):(0,su.jsx)("p",{children:"Возникла техническая ошибка. Попробуйте позже"}):(0,su.jsx)(su.Fragment,{children:p})};nG.displayName="LoginWidget";var nY=e.i(11554);let nX=eJ("NEXT_PUBLIC_LK_URL"),nJ=eJ("NEXT_PUBLIC_S3_ASSETS"),n0=eJ("NEXT_PUBLIC_PL_LK_API_URL");function n1({config:e,isOpenModal:t,onClose:s}){let[r,n]=(0,c.useState)(null);return(0,c.useEffect)(()=>{(async()=>{n(await so(n0,e.key))})()},[e.key]),(0,u.jsx)(ej.f,{open:t,noPadding:!0,dataQa:"auth-modal",className:nY.default.authModal,onClose:s,size:"l",header:{withoutCloseBtn:!0},"data-sentry-element":"Modal","data-sentry-component":"AuthModal","data-sentry-source-file":"AuthModal.tsx",children:(0,u.jsx)(nG,{serverConfig:r,baseUrl:nX,s3AssetsUrl:`${nJ}/mp-assets`,config:{withLogo:!0},scenarioParams:{targetUri:`${nX}/qualinvest${e.query}`},isSilent:!0,onAnalyticsEvent:({eventAction:e,eventLabel:t})=>ti("qualinvest_widget_login",e,{eventLabel:t}),entryPointId:"qualinvest","data-sentry-element":"LoginWidget","data-sentry-source-file":"AuthModal.tsx"})})}e.i(27460),e.i(32200),e.i(53076),e.i(57029),e.i(74100),eJ("NEXT_PUBLIC_SHOWCASE_ORIGIN"),eJ("NEXT_PUBLIC_HEADLESS_CMS_HOST"),eJ("NEXT_PUBLIC_S3_ASSETS"),eJ("NEXT_PUBLIC_FOOTER_DOCUMENT_EXAMINATION_RULES"),eJ("NEXT_PUBLIC_FOOTER_DOCUMENT_PRIVACY_POLICY"),eJ("NEXT_PUBLIC_FOOTER_DOCUMENT_PRICES"),eJ("NEXT_PUBLIC_FOOTER_DOCUMENT_PERSONAL_DATA"),eJ("NEXT_PUBLIC_SHOWCASE_ORIGIN");var n2=e.i(16886);let n3={src:e.i(80972).default,width:2113,height:1470,blurWidth:8,blurHeight:6,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAGAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwCppro9yItgOF7r6+9fSYr26rSvLS/4djWd7n//2Q=="},n4={src:e.i(13892).default,width:1072,height:518,blurWidth:8,blurHeight:4,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAEAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDjUvp4/BTWysBG6qpGOg3ZOPqa3hsikf/Z"},n5={src:e.i(92376).default,width:1816,height:921,blurWidth:8,blurHeight:4,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAEAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDnILC1Hwte6ECCcnJkCjcfnxya6YL3TRbH/9k="};e.s(["Main",0,function({cmsData:e,schedules:t,support:s}){let[r,n]=(0,c.useState)(!1),[i,a]=(0,c.useState)(!1),[l,o]=(0,c.useState)({query:"/demo",key:"qualinvest-demo"}),h=()=>{n(e=>!e)},d=e=>{let t;e.preventDefault(),ti("qualinvest_main_banner","go_to_select_date_button_click"),t=document.querySelector('[data-qa="registration-schedule"]'),t?.scrollIntoView({behavior:"smooth",block:"center"})},p=()=>{ti("qualinvest_block_try_free","button_click"),o({query:"/demo-test",key:"qualinvest-demo"}),h()},f=t.length>0,g="false"!==((()=>{try{return eJ("NEXT_PUBLIC_CERTIFICATE_CHECK_ENABLE")}catch{return}})()??"").trim().toLowerCase(),m=(0,c.useMemo)(()=>f?{onClick:d,label:"Записаться на экзамен"}:{onClick:p,label:"Пройти пробный экзамен"},[f]);return(0,u.jsxs)(S,{className:n2.default.main,as:"main","data-sentry-element":"Container","data-sentry-component":"Main","data-sentry-source-file":"Main.tsx",children:[(0,u.jsx)(eB,{isInfo:!f,bannerImg:n3,button:m,secondaryButton:{onClick:e=>{e.preventDefault(),ti("qualinvest_main_banner","go_to_certificate_check_button_click"),a(!0)}},banner:e.mainBanner,dataQa:"main-banner",priority:!0,"data-sentry-element":"Banner","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(tF,{tags:e.advantagesTags,"data-sentry-element":"Tags","data-sentry-source-file":"Main.tsx"}),f&&(0,u.jsx)(tI,{onSignUp:e=>{let t=new URLSearchParams({scheduleId:e});ti("qualinvest_block_payment","button_click"),o({query:`/payment?${t.toString()}`,key:"qualinvest"}),h()},scheduleData:e.schedule,schedules:t}),(0,u.jsx)(tp,{dataQa:"info-ready",info:e.stepsInfoReady,"data-sentry-element":"Info","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(eB,{bannerImg:n4,banner:e.knowledgeBanner,dataQa:"knowledge-banner",button:{onClick:p,label:"Начать"},"data-sentry-element":"Banner","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(tp,{dataQa:"info",info:e.stepsInfo,"data-sentry-element":"Info","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(eB,{bannerImg:n5,banner:e.certificate,dataQa:"certificate-banner","data-sentry-element":"Banner","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(eF,{brokers:e.brokers,"data-sentry-element":"Brokers","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(tm,{text:e.innsWeb.text,"data-sentry-element":"InnsWeb","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(sl,{faq:e.faq,support:s,"data-sentry-element":"Widgets","data-sentry-source-file":"Main.tsx"}),(0,u.jsx)(n1,{config:l,isOpenModal:r,onClose:h,"data-sentry-element":"AuthModal","data-sentry-source-file":"Main.tsx"}),g&&(0,u.jsx)(tu,{open:i,onClose:()=>a(!1)})]})}],71189)}],67034,(e,t,s)=>{var r={872:function(e,t){"use strict";t.byteLength=function(e){var t=o(e),s=t[0],r=t[1];return(s+r)*3/4-r},t.toByteArray=function(e){var t,s,i=o(e),a=i[0],l=i[1],u=new n((a+l)*3/4-l),c=0,h=l>0?a-4:a;for(s=0;s<h;s+=4)t=r[e.charCodeAt(s)]<<18|r[e.charCodeAt(s+1)]<<12|r[e.charCodeAt(s+2)]<<6|r[e.charCodeAt(s+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(s)]<<2|r[e.charCodeAt(s+1)]>>4,u[c++]=255&t),1===l&&(t=r[e.charCodeAt(s)]<<10|r[e.charCodeAt(s+1)]<<4|r[e.charCodeAt(s+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],a=0,l=r-n;a<l;a+=16383)i.push(function(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(s[n>>18&63]+s[n>>12&63]+s[n>>6&63]+s[63&n]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===n?i.push(s[(t=e[r-1])>>2]+s[t<<4&63]+"=="):2===n&&i.push(s[(t=(e[r-2]<<8)+e[r-1])>>10]+s[t>>4&63]+s[t<<2&63]+"="),i.join("")};for(var s=[],r=[],n="u">typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a<l;++a)s[a]=i[a],r[i.charCodeAt(a)]=a;function o(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var s=e.indexOf("=");-1===s&&(s=t);var r=s===t?0:4-s%4;return[s,r]}r[45]=62,r[95]=63},230:function(e,t,s){"use strict";var r=s(872),n=s(321),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,s){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return o(e,t,s)}function o(e,t,s){if("string"==typeof e){var r=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);var i=0|p(r,n),o=a(i),u=o.write(r,n);return u!==i&&(o=o.slice(0,u)),o}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(B(e,SharedArrayBuffer)||e&&B(e.buffer,SharedArrayBuffer)))return function(e,t,s){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(s||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===s?new Uint8Array(e):void 0===s?new Uint8Array(e,t):new Uint8Array(e,t,s),l.prototype),r}(e,t,s);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var c=e.valueOf&&e.valueOf();if(null!=c&&c!==e)return l.from(c,t,s);var f=function(e){if(l.isBuffer(e)){var t=0|d(e.length),s=a(t);return 0===s.length||e.copy(s,0,0,t),s}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(f)return f;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,s);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),a(e<0?0:0|d(e))}function h(e){for(var t=e.length<0?0:0|d(e.length),s=a(t),r=0;r<t;r+=1)s[r]=255&e[r];return s}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!l.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,s){return o(e,t,s)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,s){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof s?a(e).fill(t,s):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return c(e)},l.allocUnsafeSlow=function(e){return c(e)};function d(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var s=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===s)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*s;case"hex":return s>>>1;case"base64":return S(e).length;default:if(n)return r?-1:A(e).length;t=(""+t).toLowerCase(),n=!0}}function f(e,t,s){var n,i,a,l=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===s||s>this.length)&&(s=this.length),s<=0||(s>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,s){var r=e.length;(!t||t<0)&&(t=0),(!s||s<0||s>r)&&(s=r);for(var n="",i=t;i<s;++i)n+=T[e[i]];return n}(this,t,s);case"utf8":case"utf-8":return k(this,t,s);case"ascii":return function(e,t,s){var r="";s=Math.min(e.length,s);for(var n=t;n<s;++n)r+=String.fromCharCode(127&e[n]);return r}(this,t,s);case"latin1":case"binary":return function(e,t,s){var r="";s=Math.min(e.length,s);for(var n=t;n<s;++n)r+=String.fromCharCode(e[n]);return r}(this,t,s);case"base64":return n=this,i=t,a=s,0===i&&a===n.length?r.fromByteArray(n):r.fromByteArray(n.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,s){for(var r=e.slice(t,s),n="",i=0;i<r.length;i+=2)n+=String.fromCharCode(r[i]+256*r[i+1]);return n}(this,t,s);default:if(l)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),l=!0}}function g(e,t,s){var r=e[t];e[t]=e[s],e[s]=r}function m(e,t,s,r,n){var i;if(0===e.length)return -1;if("string"==typeof s?(r=s,s=0):s>0x7fffffff?s=0x7fffffff:s<-0x80000000&&(s=-0x80000000),(i=s*=1)!=i&&(s=n?0:e.length-1),s<0&&(s=e.length+s),s>=e.length)if(n)return -1;else s=e.length-1;else if(s<0)if(!n)return -1;else s=0;if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,s,r,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,s);else return Uint8Array.prototype.lastIndexOf.call(e,t,s);return v(e,[t],s,r,n)}throw TypeError("val must be string, number or Buffer")}function v(e,t,s,r,n){var i,a=1,l=e.length,o=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,l/=2,o/=2,s/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(i=s;i<l;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===o)return c*a}else -1!==c&&(i-=i-c),c=-1}else for(s+o>l&&(s=l-o),i=s;i>=0;i--){for(var h=!0,d=0;d<o;d++)if(u(e,i+d)!==u(t,d)){h=!1;break}if(h)return i}return -1}l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(B(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),B(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var s=e.length,r=t.length,n=0,i=Math.min(s,r);n<i;++n)if(e[n]!==t[n]){s=e[n],r=t[n];break}return s<r?-1:+(r<s)},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(s=0,t=0;s<e.length;++s)t+=e[s].length;var s,r=l.allocUnsafe(t),n=0;for(s=0;s<e.length;++s){var i=e[s];if(B(i,Uint8Array)&&(i=l.from(i)),!l.isBuffer(i))throw TypeError('"list" argument must be an Array of Buffers');i.copy(r,n),n+=i.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?k(this,0,e):f.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",s=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,s).replace(/(.{2})/g,"$1 ").trim(),this.length>s&&(e+=" ... "),"<Buffer "+e+">"},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,s,r,n){if(B(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===s&&(s=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||s>e.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&t>=s)return 0;if(r>=n)return -1;if(t>=s)return 1;if(t>>>=0,s>>>=0,r>>>=0,n>>>=0,this===e)return 0;for(var i=n-r,a=s-t,o=Math.min(i,a),u=this.slice(r,n),c=e.slice(t,s),h=0;h<o;++h)if(u[h]!==c[h]){i=u[h],a=c[h];break}return i<a?-1:+(a<i)},l.prototype.includes=function(e,t,s){return -1!==this.indexOf(e,t,s)},l.prototype.indexOf=function(e,t,s){return m(this,e,t,s,!0)},l.prototype.lastIndexOf=function(e,t,s){return m(this,e,t,s,!1)};function k(e,t,s){s=Math.min(e.length,s);for(var r=[],n=t;n<s;){var i,a,l,o,u=e[n],c=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=s)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(i=e[n+1]))==128&&(o=(31&u)<<6|63&i)>127&&(c=o);break;case 3:i=e[n+1],a=e[n+2],(192&i)==128&&(192&a)==128&&(o=(15&u)<<12|(63&i)<<6|63&a)>2047&&(o<55296||o>57343)&&(c=o);break;case 4:i=e[n+1],a=e[n+2],l=e[n+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(o=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&o<1114112&&(c=o)}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),n+=h}var d=r,p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var f="",g=0;g<p;)f+=String.fromCharCode.apply(String,d.slice(g,g+=4096));return f}function y(e,t,s){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>s)throw RangeError("Trying to access beyond buffer length")}function x(e,t,s,r,n,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw RangeError('"value" argument is out of bounds');if(s+r>e.length)throw RangeError("Index out of range")}function b(e,t,s,r,n,i){if(s+r>e.length||s<0)throw RangeError("Index out of range")}function _(e,t,s,r,i){return t*=1,s>>>=0,i||b(e,t,s,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,s,r,23,4),s+4}function C(e,t,s,r,i){return t*=1,s>>>=0,i||b(e,t,s,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,s,r,52,8),s+8}l.prototype.write=function(e,t,s,r){if(void 0===t)r="utf8",s=this.length,t=0;else if(void 0===s&&"string"==typeof t)r=t,s=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(s)?(s>>>=0,void 0===r&&(r="utf8")):(r=s,s=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,i,a,l,o,u,c,h,d=this.length-t;if((void 0===s||s>d)&&(s=d),e.length>0&&(s<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,s,r){s=Number(s)||0;var n=e.length-s;r?(r=Number(r))>n&&(r=n):r=n;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var l,o=parseInt(t.substr(2*a,2),16);if((l=o)!=l)break;e[s+a]=o}return a}(this,e,t,s);case"utf8":case"utf-8":return n=t,i=s,I(A(e,this.length-n),this,n,i);case"ascii":return a=t,l=s,I(E(e),this,a,l);case"latin1":case"binary":return function(e,t,s,r){return I(E(t),e,s,r)}(this,e,t,s);case"base64":return o=t,u=s,I(S(e),this,o,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,h=s,I(function(e,t){for(var s,r,n=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(s=e.charCodeAt(i))>>8,n.push(s%256),n.push(r);return n}(e,this.length-c),this,c,h);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var s=this.length;e=~~e,t=void 0===t?s:~~t,e<0?(e+=s)<0&&(e=0):e>s&&(e=s),t<0?(t+=s)<0&&(t=0):t>s&&(t=s),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUIntLE=function(e,t,s){e>>>=0,t>>>=0,s||y(e,t,this.length);for(var r=this[e],n=1,i=0;++i<t&&(n*=256);)r+=this[e+i]*n;return r},l.prototype.readUIntBE=function(e,t,s){e>>>=0,t>>>=0,s||y(e,t,this.length);for(var r=this[e+--t],n=1;t>0&&(n*=256);)r+=this[e+--t]*n;return r},l.prototype.readUInt8=function(e,t){return e>>>=0,t||y(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||y(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,s){e>>>=0,t>>>=0,s||y(e,t,this.length);for(var r=this[e],n=1,i=0;++i<t&&(n*=256);)r+=this[e+i]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,s){e>>>=0,t>>>=0,s||y(e,t,this.length);for(var r=t,n=1,i=this[e+--r];r>0&&(n*=256);)i+=this[e+--r]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||y(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||y(e,2,this.length);var s=this[e]|this[e+1]<<8;return 32768&s?0xffff0000|s:s},l.prototype.readInt16BE=function(e,t){e>>>=0,t||y(e,2,this.length);var s=this[e+1]|this[e]<<8;return 32768&s?0xffff0000|s:s},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||y(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||y(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||y(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||y(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||y(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,s,r){if(e*=1,t>>>=0,s>>>=0,!r){var n=Math.pow(2,8*s)-1;x(this,e,t,s,n,0)}var i=1,a=0;for(this[t]=255&e;++a<s&&(i*=256);)this[t+a]=e/i&255;return t+s},l.prototype.writeUIntBE=function(e,t,s,r){if(e*=1,t>>>=0,s>>>=0,!r){var n=Math.pow(2,8*s)-1;x(this,e,t,s,n,0)}var i=s-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+s},l.prototype.writeUInt8=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,s,r){if(e*=1,t>>>=0,!r){var n=Math.pow(2,8*s-1);x(this,e,t,s,n-1,-n)}var i=0,a=1,l=0;for(this[t]=255&e;++i<s&&(a*=256);)e<0&&0===l&&0!==this[t+i-1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+s},l.prototype.writeIntBE=function(e,t,s,r){if(e*=1,t>>>=0,!r){var n=Math.pow(2,8*s-1);x(this,e,t,s,n-1,-n)}var i=s-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a|0)-l&255;return t+s},l.prototype.writeInt8=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,s){return e*=1,t>>>=0,s||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,s){return _(this,e,t,!0,s)},l.prototype.writeFloatBE=function(e,t,s){return _(this,e,t,!1,s)},l.prototype.writeDoubleLE=function(e,t,s){return C(this,e,t,!0,s)},l.prototype.writeDoubleBE=function(e,t,s){return C(this,e,t,!1,s)},l.prototype.copy=function(e,t,s,r){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(s||(s=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<s&&(r=s),r===s||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-s&&(r=e.length-t+s);var n=r-s;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,s,r);else if(this===e&&s<t&&t<r)for(var i=n-1;i>=0;--i)e[i+t]=this[i+s];else Uint8Array.prototype.set.call(e,this.subarray(s,r),t);return n},l.prototype.fill=function(e,t,s,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,s=this.length):"string"==typeof s&&(r=s,s=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var n,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<s)throw RangeError("Out of range index");if(s<=t)return this;if(t>>>=0,s=void 0===s?this.length:s>>>0,e||(e=0),"number"==typeof e)for(n=t;n<s;++n)this[n]=e;else{var a=l.isBuffer(e)?e:l.from(e,r),o=a.length;if(0===o)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<s-t;++n)this[n+t]=a[n%o]}return this};var w=/[^+/0-9A-Za-z-_]/g;function A(e,t){t=t||1/0;for(var s,r=e.length,n=null,i=[],a=0;a<r;++a){if((s=e.charCodeAt(a))>55295&&s<57344){if(!n){if(s>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}n=s;continue}if(s<56320){(t-=3)>-1&&i.push(239,191,189),n=s;continue}s=(n-55296<<10|s-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,s<128){if((t-=1)<0)break;i.push(s)}else if(s<2048){if((t-=2)<0)break;i.push(s>>6|192,63&s|128)}else if(s<65536){if((t-=3)<0)break;i.push(s>>12|224,s>>6&63|128,63&s|128)}else if(s<1114112){if((t-=4)<0)break;i.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}else throw Error("Invalid code point")}return i}function E(e){for(var t=[],s=0;s<e.length;++s)t.push(255&e.charCodeAt(s));return t}function S(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(w,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(e,t,s,r){for(var n=0;n<r&&!(n+s>=t.length)&&!(n>=e.length);++n)t[n+s]=e[n];return n}function B(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),s=0;s<16;++s)for(var r=16*s,n=0;n<16;++n)t[r+n]=e[s]+e[n];return t}()},321:function(e,t){t.read=function(e,t,s,r,n){var i,a,l=8*n-r-1,o=(1<<l)-1,u=o>>1,c=-7,h=s?n-1:0,d=s?-1:1,p=e[t+h];for(h+=d,i=p&(1<<-c)-1,p>>=-c,c+=l;c>0;i=256*i+e[t+h],h+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+h],h+=d,c-=8);if(0===i)i=1-u;else{if(i===o)return a?0/0:(p?-1:1)*2e308;a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,s,r,n,i){var a,l,o,u=8*i-n-1,c=(1<<u)-1,h=c>>1,d=5960464477539062e-23*(23===n),p=r?0:i-1,f=r?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||1/0===t?(l=+!!isNaN(t),a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(o=Math.pow(2,-a))<1&&(a--,o*=2),a+h>=1?t+=d/o:t+=d*Math.pow(2,1-h),t*o>=2&&(a++,o/=2),a+h>=c?(l=0,a=c):a+h>=1?(l=(t*o-1)*Math.pow(2,n),a+=h):(l=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[s+p]=255&l,p+=f,l/=256,n-=8);for(a=a<<n|l,u+=n;u>0;e[s+p]=255&a,p+=f,a/=256,u-=8);e[s+p-f]|=128*g}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}},a=!0;try{r[e](s,s.exports,i),a=!1}finally{a&&delete n[e]}return s.exports}i.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=i(230)},45009,(e,t,s)=>{t.exports=e.r(65156)()},49424,e=>{e.v({banner:"vB7GfW_banner",bannerCard:"vB7GfW_bannerCard",bannerCardButton:"vB7GfW_bannerCardButton",bannerCardButtons:"vB7GfW_bannerCardButtons",bannerCardContent:"vB7GfW_bannerCardContent",bannerCardContentDescription:"vB7GfW_bannerCardContentDescription",bannerCardContentInfo:"vB7GfW_bannerCardContentInfo",bannerCardContentTags:"vB7GfW_bannerCardContentTags",bannerImage:"vB7GfW_bannerImage","certificate-banner":"vB7GfW_certificate-banner","knowledge-banner":"vB7GfW_knowledge-banner"})},83764,e=>{e.v({brokers:"mgstlq_brokers",brokersDescription:"mgstlq_brokersDescription",brokersList:"mgstlq_brokersList",brokersListItem:"mgstlq_brokersListItem",brokersTitle:"mgstlq_brokersTitle"})},25871,e=>{e.v({fields:"ddd_PW_fields",form:"ddd_PW_form",modal:"ddd_PW_modal",statusButton:"ddd_PW_statusButton",statusContent:"ddd_PW_statusContent",statusDescription:"ddd_PW_statusDescription",statusIcon:"ddd_PW_statusIcon",statusVerdict:"ddd_PW_statusVerdict"})},49427,e=>{e.v({info:"J9d7jW_info",infoCards:"J9d7jW_infoCards",infoCardsItem:"J9d7jW_infoCardsItem",infoCardsItemDescription:"J9d7jW_infoCardsItemDescription",infoCardsItemHead:"J9d7jW_infoCardsItemHead",infoDescription:"J9d7jW_infoDescription",infoTitle:"J9d7jW_infoTitle"})},13337,e=>{e.v({card:"g1lHMq_card"})},69910,e=>{e.v({container:"wyhtOW_container",img:"wyhtOW_img",link:"wyhtOW_link",paragraph:"wyhtOW_paragraph",title:"wyhtOW_title"})},71207,e=>{e.v({registrationSchedule:"XUYGNa_registrationSchedule",registrationScheduleCard:"XUYGNa_registrationScheduleCard",registrationScheduleCardButton:"XUYGNa_registrationScheduleCardButton",registrationScheduleInfo:"XUYGNa_registrationScheduleInfo",registrationScheduleInfoItem:"XUYGNa_registrationScheduleInfoItem",registrationScheduleInfoItemContent:"XUYGNa_registrationScheduleInfoItemContent",registrationScheduleInfoItemNumberDivider:"XUYGNa_registrationScheduleInfoItemNumberDivider",registrationScheduleInfoItemNumberText:"XUYGNa_registrationScheduleInfoItemNumberText",schedule:"XUYGNa_schedule",scheduleContent:"XUYGNa_scheduleContent",scheduleContentCaption:"XUYGNa_scheduleContentCaption",scheduleContentCaptionError:"XUYGNa_scheduleContentCaptionError",scheduleContentText:"XUYGNa_scheduleContentText"})},93826,e=>{e.v({tags:"WsY6Pq_tags",tagsContent:"WsY6Pq_tagsContent",tagsDescription:"WsY6Pq_tagsDescription",tagsList:"WsY6Pq_tagsList",tagsListItem:"WsY6Pq_tagsListItem",tagsListItemCircle:"WsY6Pq_tagsListItemCircle"})},90303,e=>{e.v({faq:"liHFoa_faq",support:"liHFoa_support",widgets:"liHFoa_widgets"})},11554,e=>{e.v({authModal:"Ri6F8W_authModal"})},27460,e=>{e.v({fixedButton:"yaGaHa_fixedButton"})},16886,e=>{e.v({main:"UMBeXW_main",modalText:"UMBeXW_modalText"})}]);

//# sourceMappingURL=3fyjr7mco7jbs.js.map