(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4045],{11549:function(e,t,n){var r=n(76219),i=n(54351),o=n(16096);function l(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}l.prototype.add=l.prototype.push=i,l.prototype.has=o,e.exports=l},25253:function(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},56318:function(e,t,n){var r=n(6791),i=n(10303);e.exports=function e(t,n,o,l,a){return t===n||(null!=t&&null!=n&&(i(t)||i(n))?r(t,n,o,l,e,a):t!=t&&n!=n)}},6791:function(e,t,n){var r=n(85885),i=n(97638),o=n(88030),l=n(64974),a=n(81690),c=n(25614),s=n(98051),u=n(9792),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,v,g){var y=c(e),x=c(t),b=y?d:a(e),w=x?d:a(t);b=b==f?p:b,w=w==f?p:w;var _=b==p,k=w==p,j=b==w;if(j&&s(e)){if(!s(t))return!1;y=!0,_=!1}if(j&&!_)return g||(g=new r),y||u(e)?i(e,t,n,m,v,g):o(e,t,b,n,m,v,g);if(!(1&n)){var L=_&&h.call(e,"__wrapped__"),C=k&&h.call(t,"__wrapped__");if(L||C){var N=L?e.value():e,R=C?t.value():t;return g||(g=new r),v(N,R,n,m,g)}}return!!j&&(g||(g=new r),l(e,t,n,m,v,g))}},65734:function(e){e.exports=function(e,t){return e.has(t)}},97638:function(e,t,n){var r=n(11549),i=n(25253),o=n(65734);e.exports=function(e,t,n,l,a,c){var s=1&n,u=e.length,f=t.length;if(u!=f&&!(s&&f>u))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],y=t[h];if(l)var x=s?l(y,g,h,t,e,c):l(g,y,h,e,t,c);if(void 0!==x){if(x)continue;m=!1;break}if(v){if(!i(t,function(e,t){if(!o(v,t)&&(g===e||a(g,e,n,l,c)))return v.push(t)})){m=!1;break}}else if(!(g===y||a(g,y,n,l,c))){m=!1;break}}return c.delete(e),c.delete(t),m}},88030:function(e,t,n){var r=n(23910),i=n(80098),o=n(37560),l=n(97638),a=n(22523),c=n(27794),s=r?r.prototype:void 0,u=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!f(new i(e),new i(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)break;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var v=l(p(e),p(t),r,s,f,d);return d.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},64974:function(e,t,n){var r=n(28529),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,l,a){var c=1&n,s=r(e),u=s.length;if(u!=r(t).length&&!c)return!1;for(var f=u;f--;){var d=s[f];if(!(c?d in t:i.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);for(var v=c;++f<u;){var g=e[d=s[f]],y=t[d];if(o)var x=c?o(y,g,d,t,e,a):o(g,y,d,e,t,a);if(!(void 0===x?g===y||l(g,y,n,o,a):x)){m=!1;break}v||(v="constructor"==d)}if(m&&!v){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(m=!1)}return a.delete(e),a.delete(t),m}},22523:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},54351:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},16096:function(e){e.exports=function(e){return this.__data__.has(e)}},27794:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},21652:function(e,t,n){var r=n(56318);e.exports=function(e,t){return r(e,t)}},10855:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var r=n(57437),i=n(80684),o=n(75461),l=n(61994);let a=(0,n(52074).g)("check-all","sc"),c=Object.freeze({wrapper:`${a}__wrapper`,link:`${a}__link`,icon:`${a}__icon`,iconGray:`${a}__icon--gray`}),s=({children:e,className:t,linkClassName:n,iconGrayBackground:a,Link:s,event:u,href:f,dataLayerPush:d})=>{let p=s??o.rU;return(0,r.jsx)("div",{className:(0,l.Z)(c.wrapper,t),onClick:()=>{u&&d(u)},children:(0,r.jsxs)(p,{className:(0,l.Z)(c.link,n),href:f,children:[e,(0,r.jsx)("span",{className:(0,l.Z)(c.icon,{[c.iconGray]:a}),children:(0,r.jsx)(i.IconFdsArrowUpRightSmallO,{size:24})})]})})}},52074:function(e,t,n){"use strict";function r(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return r}})},6554:function(e,t,n){"use strict";let r;n.d(t,{D:function(){return l},h:function(){return c}});var i=n(31620),o=n(56891),l=((r=l||{}).icon="icon",r.chip="chip",r.accordion="accordion",r.button="button",r.checkbox="checkbox",r.radio="radio",r.select="select",r.toggle="toggle",r.tooltip="tooltip",r.link="link",r.banner="banner",r.tag="tag",r.date="date",r.field="field",r.offer="offer",r.tab="tab",r.submitButton="submitButton",r.popup="popup",r.block="block",r);let a={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"},c=({eventCategory:e,eventActionType:t,eventActionText:n="",eventLabel:r})=>{let l={event:"data-event",eventCategory:e,eventAction:a[t]+(0,i.t)(n)};void 0!==r&&(l.eventLabel=(0,i.t)("string"==typeof r?r:r.toString())),(0,o.d)(l)}},56891:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});var r=n(30631);let i=(e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),i=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let o=i.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!o){if(t){let t={...e};t.url=window.location.pathname,i.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(i))}(0,r.AB)(e)}}},31620:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});let r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},i=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in r?r[t]:e}).replaceAll(/[ \u00A0]/g,"_")},44298:function(e,t,n){"use strict";n.d(t,{L:function(){return h}});var r=n(57437),i=n(35563),o=n(61994),l=n(2265),a=n(75461),c=n(52074);let s=(0,c.g)("cross-link-chips-block","sc"),u=Object.freeze({crossLinkChipsBlock:s,crossLinkSlider:`${s}__slider`,crossLinkItemList:`${s}__item-list`,crossLinkItem:`${s}__item`,hiddenCrossLinkItemLink:`${s}__item--hidden`,sliderChips:`${s}__slider-chips`,sliderChipsItem:`${s}__slider-chips-item`}),f=({labels:e,dataLayerPush:t,eventCategory:n="cross-link",...i})=>{var c;let[s,f]=(0,l.useState)(null==(c=e[0])?void 0:c.name),d=r=>{let i=e.find(e=>e.name===s);f(r),t({event:"data-event",eventCategory:n,eventAction:"click_chip_cross-link-block",eventLabel:null==i?void 0:i.name})},p=e.map(e=>({id:e.name,label:e.name})),h=(e,r)=>{t({event:"data-event",eventCategory:n,eventAction:"click_link_cross-link-block",eventLabel:e.tagName,eventValue:r,url:`${i.href}/${e.url}`})};return(0,r.jsxs)(r.Fragment,{children:[p.length>=1&&(0,r.jsx)(a.iR,{options:{slidesPerView:"auto",spaceBetween:8},className:u.crossLinkSlider,children:p.map(e=>(0,r.jsx)(a.wI,{className:u.sliderChipsItem,children:(0,r.jsx)(a.cL,{value:s,onChipClick:d,chips:[e]})},e.id))}),e.length>0&&(0,r.jsx)("ul",{className:u.crossLinkItemList,children:e.map(e=>{var t;let n=e.name!==s;return null==(t=e.tags)?void 0:t.map(t=>(0,r.jsx)("li",{className:(0,o.Z)(u.crossLinkItem,n&&u.hiddenCrossLinkItemLink),children:(0,r.jsx)(a.rU,{href:`${i.href}/${t.url}`,onClick:()=>h(t,e.name),children:t.tagName})},t.id))})})]})};f.displayName="CrossLinkChipsBlock";let d=(0,c.g)("cross-link","sc"),p=Object.freeze({crossLink:d,titleWrapper:`${d}__title-wrapper`,title:`${d}__title`,crossLinkWrapper:`${d}__wrapper`,crossLinkChipsTitle:`${d}__chips-title`}),h=({sectionTitle:e,labelsData:t=[],className:n,blockTitle:l="Виды вкладов",href:a="/vklady",dataLayerPush:c})=>(0,r.jsx)("section",{className:(0,o.Z)(p.crossLink,n),children:(0,r.jsxs)(i.W2,{children:[(0,r.jsx)("div",{className:p.titleWrapper,children:(0,r.jsx)(i.X6,{as:"h2",type:"hero",className:(0,o.Z)(p.title),children:e})}),(0,r.jsxs)("div",{className:p.crossLinkWrapper,children:[l&&(0,r.jsx)(i.X6,{as:"h3",type:"h3",className:p.crossLinkChipsTitle,children:l}),(0,r.jsx)(f,{labels:t.content,href:a,dataLayerPush:c})]})]})});h.displayName="CrossLink"},59226:function(e,t,n){"use strict";n.d(t,{C:function(){return x}});var r=n(57437),i=n(2265),o=n(35563),l=n(75461),a=n(61994),c=n(31620),s=n(10855),u=n(52074);let f=(0,u.g)("faq-block","sc"),d=Object.freeze({faqBlock:f,titleWrapper:`${f}__title-wrapper`,title:`${f}__title`,accordionWrapper:`${f}__accordion-wrapper`,accordionItems:`${f}__accordion-items`,accordionItemGray:`${f}__accordion-item--gray`,accordionItemContent:`${f}__accordion-item-content`,accordionActiveItemContent:`${f}__accordion-item-content--active`,states:{primary:`${f}--primary`,secondary:`${f}--secondary`,gray:`${f}--gray`}}),p=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},h=(0,u.g)("faq-content-block","sc"),m=Object.freeze({contentBlocks:`${h}__content-blocks`,blockLink:`${h}__block-link`,keynoteWrapper:`${h}__keynote-wrapper`,keynote:`${h}__keynote`,annotation:`${h}__annotation`,contentTableWrapper:`${h}__content-table-wrapper`}),v=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,i={data:t,headerBlocksCount:0,banner:[]};p(i),p(i);let o={},l=e=>{var t,n,r,i;let l=(null==(t=e.data)?void 0:t.text)??(null==(n=e.data)?void 0:n.url)??(null==(r=e.data)?void 0:r.html)??(null!=(i=e.data)&&i.year?String(e.data.year):"");return o[e.type]=(o[e.type]??0)+1,`${e.type}-${String(l).slice(0,80)}-${o[e.type]}`};return t.forEach(t=>{let i=l(t);switch(t.type){case"header":e.push((0,r.jsx)("h2",{id:`content_header_${n}`,role:"header",children:t.data.text||""},i)),n++;break;case"sub_header":e.push((0,r.jsx)("h3",{role:"sub-header",children:t.data.text||""},i));break;case"paragraph":e.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},i));break;case"link":e.push((0,r.jsx)("div",{className:m.blockLink,children:(0,r.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},i));break;case"dossier":e.push((0,r.jsxs)("div",{children:[(0,r.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},i));break;case"html":e.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},i));break;case"annotation":e.push((0,r.jsx)("div",{className:m.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},i));break;case"company-annotation":e.push((0,r.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},i));break;case"keynote":e.push((0,r.jsx)("div",{className:m.keynoteWrapper,children:(0,r.jsx)("p",{className:m.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},i));break;case"image":e.push((0,r.jsx)("img",{src:t.data.url||"",alt:"image"},i))}}),e})();return(0,r.jsx)("div",{className:(0,a.Z)(m.contentBlocks,e),role:"blocks",children:n})},g=({question:e,eventCategory:t,dataLayerPush:n,...i})=>(0,r.jsx)(l.Qd,{...i,title:e.question,children:(0,r.jsx)("div",{className:(0,a.Z)(d.accordionItemContent,{[d.accordionActiveItemContent]:i.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,r.jsx)(v,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),y=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},x=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:u,checkAllText:f,Link:p,className:h,eventCategory:m="cb-faq",multiple:v=!1,variant:x="secondary",dataLayerPush:b,tagTitle:w})=>{let _=v?n.map(e=>e.question):[],[k,j]=(0,i.useState)(_),L="gray"===x;return(0,r.jsx)("section",{className:(0,a.Z)(d.faqBlock,d.states[x],h),children:(0,r.jsxs)(o.W2,{children:[!t&&(0,r.jsx)("div",{className:d.titleWrapper,children:(0,r.jsx)(o.X6,{as:"h2",type:"display",className:d.title,children:e})}),(0,r.jsxs)("div",{className:d.accordionWrapper,children:[t&&(0,r.jsx)(o.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,a.Z)(d.title,`${d.title}--inner`),children:t}),(0,r.jsx)("div",{className:d.accordionItems,children:(0,r.jsx)(l.UQ,{activeIndex:k,variant:L?"primary":"secondary",withoutOutline:L,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==k?void 0:k.length),n=e.filter(e=>!k.includes(e))[0]||k.filter(t=>!e.includes(t))[0];b({event:"data-event",eventCategory:m,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,c.t)(String(n))}),j(e);let r=`[data-accordion-index="${n}"]`,i=document.querySelector(r);i&&y(i)},multiple:v,children:n.map(e=>{let t=`faq-${e.question}`;return(0,r.jsx)(g,{id:t,question:e,dataLayerPush:b,eventCategory:m,className:L?d.accordionItemGray:void 0,tagTitle:w},t)})})}),u&&f&&(0,r.jsx)(s.C,{href:u,event:{event:"data-event",eventCategory:m,eventAction:"сlick_link_answer-link",eventLabel:u},dataLayerPush:b,...null!=p?{Link:p}:{},iconGrayBackground:!0,children:f||"Читать все вопросы"})]})]})})}},90422:function(e,t,n){"use strict";n.d(t,{Journal:function(){return v}});var r=n(57437),i=n(2265),o=n(35563),l=n(75461),a=n(61994),c=n(6554),s=n(56891),u=n(31620),f=n(10855);let d=(0,n(52074).g)("journal","sc"),p=Object.freeze({wrapper:"".concat(d,"__wrapper"),title:"".concat(d,"__title"),subtitle:"".concat(d,"__subtitle"),scrollableWrapper:"".concat(d,"__scrollable-wrapper"),chipsWrapper:"".concat(d,"__chips-wrapper"),slider:"".concat(d,"__slider"),sliderItem:"".concat(d,"__slider-item"),article:"".concat(d,"__article"),imgWrapper:"".concat(d,"__img-wrapper"),articleBody:"".concat(d,"__article-body"),articleTitle:"".concat(d,"__article-title"),articleDate:"".concat(d,"__article-date"),checkAllLink:"".concat(d,"__check-all-link")}),h="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",m=e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let n=t.getDate(),r=t.getMonth();return"".concat(n," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][r])},v=e=>{var t;let{data:n,eventCategory:d="finkit-widgets-sc-journal",className:v}=e,g=(0,l._m)("xl"),[y,x]=(0,i.useState)(!0),[b,w]=(0,i.useState)(0),_=n.chips||[],k=(null==(t=null==_?void 0:_[Number(b)])?void 0:t.items)||[];if((0,i.useEffect)(()=>{x(!g)},[g]),0===_.length||0===k.length)return null;let j=(e,t)=>()=>{(0,c.h)({eventCategory:d,eventActionType:c.D.block,eventActionText:e||"",eventLabel:t})},L=e=>{e.target.src!==h&&(e.target.src=h)};return(0,r.jsxs)("div",{className:(0,a.Z)(p.wrapper,v),children:[(0,r.jsxs)(o.W2,{children:[(0,r.jsx)("h2",{className:p.title,children:null==n?void 0:n.title}),(0,r.jsx)("div",{className:p.subtitle,children:null==n?void 0:n.description})]}),(0,r.jsx)("div",{className:p.scrollableWrapper,children:(0,r.jsx)(o.W2,{children:(0,r.jsx)("div",{className:p.chipsWrapper,children:_.length>1&&(0,r.jsx)(l.cL,{chips:_,value:b,variant:"secondary",size:y?"m":"l",onChipClick:e=>{var t;let n=(null==(t=_[Number(e)])?void 0:t.label)||"";(0,c.h)({eventCategory:d,eventActionType:c.D.tab,eventActionText:n}),w(e)}})})})}),(0,r.jsxs)(o.W2,{children:[(0,r.jsx)(l.iR,{className:p.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:k.map(e=>(0,r.jsx)(l.wI,{className:p.sliderItem,children:(0,r.jsxs)("a",{className:p.article,href:e.url,onClick:j(e.title,e.url),children:[(0,r.jsx)("div",{className:p.imgWrapper,children:(0,r.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),onError:L})}),(0,r.jsxs)("div",{className:p.articleBody,children:[(0,r.jsx)("div",{className:p.articleTitle,children:e.title}),(0,r.jsx)("div",{className:p.articleDate,children:m(e.dt)})]})]})},e.title))},b),(0,r.jsx)(f.C,{href:(null==n?void 0:n.url)||"",event:{event:"data-event",eventCategory:d,eventAction:"link_".concat((0,u.t)((null==n?void 0:n.urlText)||"Показать все статьи")),eventLabel:(null==n?void 0:n.url)||""},dataLayerPush:s.d,className:p.checkAllLink,children:(null==n?void 0:n.urlText)||"Показать все статьи"})]})]})}},70187:function(e,t,n){"use strict";n.d(t,{p:function(){return f}});var r=n(57437),i=n(2265),o=n(80684),l=n(35563),a=n(75461),c=n(61994);let s=(0,n(52074).g)("list-filter","sc"),u=Object.freeze({filter:`${s}__filter`,container:`${s}__container`,chipsContainer:`${s}__chips-container`,chips:`${s}__chips`,actionText:`${s}__action-text`,actionsWrapper:`${s}__actions-wrapper`,actionButton:`${s}__action-button`,dropdownContainer:`${s}__dropdown-container`,radio:`${s}__radio`,hovered:`${s}__hovered`,icon:`${s}__icon`,iconInverted:`${s}__icon--inverted`,stuck:`${s}__stuck`}),f=(0,i.memo)(({chips:e,isFixed:t,isIncreaseSort:n,className:s,sortTypeItems:f,sortTypeValue:d,onIncreaseSortClick:p,onParamsClick:h,onChipClick:m,onSortTypeClick:v})=>{let[g,y]=(0,i.useState)(!1),[x,b]=(0,i.useState)(f.find(e=>e.value===d));return(0,i.useEffect)(()=>{b(f.find(e=>e.value===d)),y(!1)},[d]),(0,r.jsx)("div",{"data-qa":"app-list-filter",className:(0,c.Z)(u.filter,t&&u.stuck,s),children:(0,r.jsx)(l.W2,{children:(0,r.jsxs)("div",{className:u.container,children:[(0,r.jsx)("div",{className:u.chipsContainer,children:e.map((e,t)=>(0,r.jsx)("div",{onClick:()=>null==m?void 0:m(e),children:(0,r.jsx)(a.Vp,{label:e.label,size:"m",rounded:!0,className:u.chips,dataQa:`app-list-filter-tag-${t}`})},e.id))}),(0,r.jsxs)("div",{className:u.actionsWrapper,children:[(0,r.jsxs)("button",{className:(0,c.Z)(u.actionButton,u.hovered),"data-qa":"app-list-filter-button-all-params",type:"button",onClick:h,children:[(0,r.jsx)(o.IconFdsParametersHorizontalO,{className:u.icon}),(0,r.jsx)("span",{className:u.actionText,children:"Все параметры"})]}),(0,r.jsxs)("button",{className:(0,c.Z)(u.actionButton),"data-qa":"app-list-filter-button-sort-increase",type:"button",children:[(0,r.jsx)(o.IconFdsSortDescendingO,{className:(0,c.Z)(u.icon,!n&&u.iconInverted,u.hovered),onClick:e=>null==p?void 0:p(e)}),(null==x?void 0:x.label)&&(0,r.jsxs)(a.Lt,{title:"Сортировать по:",onToggle:()=>{y(e=>!e)},width:296,opened:g,placement:"bottom-end",children:[(0,r.jsx)(a.WA,{asChild:!0,children:(0,r.jsx)("span",{className:(0,c.Z)(u.actionText,u.hovered),"data-qa":"app-list-filter-dropdown-sort-label",children:x.label})}),(0,r.jsx)(a.Nv,{children:(0,r.jsx)("div",{className:u.dropdownContainer,children:f.map((e,t)=>(0,r.jsx)("li",{children:(0,r.jsx)(a.Y8,{dataQa:`app-list-filter-dropdown-radio-${t}`,className:u.radio,checked:e.value===x.value,label:e.label,name:"sort",value:e.value,onChange:e=>v(e)})},e.value))})})]})]})]})]})})})});f.displayName="ListFilter"},97859:function(e,t,n){"use strict";n.d(t,{RR:function(){return m},YF:function(){return f},cv:function(){return p},uY:function(){return h},x7:function(){return v}});var r=n(27829),i=n(2265),o=n(54887),l="undefined"!=typeof document?i.useLayoutEffect:function(){};function a(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function s(e,t){let n=c(e);return Math.round(t*n)/n}function u(e){let t=i.useRef(e);return l(()=>{t.current=e}),t}function f(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:h}={},transform:m=!0,whileElementsMounted:v,open:g}=e,[y,x]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=i.useState(f);a(b,f)||w(f);let[_,k]=i.useState(null),[j,L]=i.useState(null),C=i.useCallback(e=>{e!==S.current&&(S.current=e,k(e))},[]),N=i.useCallback(e=>{e!==$.current&&($.current=e,L(e))},[]),R=p||_,T=h||j,S=i.useRef(null),$=i.useRef(null),A=i.useRef(y),O=null!=v,P=u(v),E=u(d),I=u(g),D=i.useCallback(()=>{if(!S.current||!$.current)return;let e={placement:t,strategy:n,middleware:b};E.current&&(e.platform=E.current),(0,r.oo)(S.current,$.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};W.current&&!a(A.current,t)&&(A.current=t,o.flushSync(()=>{x(t)}))})},[b,t,n,E,I]);l(()=>{!1===g&&A.current.isPositioned&&(A.current.isPositioned=!1,x(e=>({...e,isPositioned:!1})))},[g]);let W=i.useRef(!1);l(()=>(W.current=!0,()=>{W.current=!1}),[]),l(()=>{if(R&&(S.current=R),T&&($.current=T),R&&T){if(P.current)return P.current(R,T,D);D()}},[R,T,D,P,O]);let B=i.useMemo(()=>({reference:S,floating:$,setReference:C,setFloating:N}),[C,N]),F=i.useMemo(()=>({reference:R,floating:T}),[R,T]),M=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!F.floating)return e;let t=s(F.floating,y.x),r=s(F.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...c(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,F.floating,y.x,y.y]);return i.useMemo(()=>({...y,update:D,refs:B,elements:F,floatingStyles:M}),[y,D,B,F,M])}let d=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,r.x7)({element:n.current,padding:i}).fn(t):{}:n?(0,r.x7)({element:n,padding:i}).fn(t):{}}}),p=(e,t)=>{let n=(0,r.cv)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{let n=(0,r.uY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},m=(e,t)=>{let n=(0,r.RR)(e);return{name:n.name,fn:n.fn,options:[e,t]}},v=(e,t)=>{let n=d(e);return{name:n.name,fn:n.fn,options:[e,t]}}},27829:function(e,t,n){"use strict";n.d(t,{x7:function(){return J},Me:function(){return H},oo:function(){return U},RR:function(){return K},cv:function(){return Z},uY:function(){return V}});let r=Math.min,i=Math.max,o=Math.round,l=Math.floor,a=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function s(e,t){return"function"==typeof e?e(t):e}function u(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function d(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}function h(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let v=["left","right"],g=["right","left"],y=["top","bottom"],x=["bottom","top"];function b(e){let t=u(e);return c[t]+e.slice(t.length)}function w(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function _(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function k(e,t,n){let r,{reference:i,floating:o}=e,l=h(t),a=d(h(t)),c=p(a),s=u(t),m="y"===l,v=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,y=i[c]/2-o[c]/2;switch(s){case"top":r={x:v,y:i.y-o.height};break;case"bottom":r={x:v,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:g};break;case"left":r={x:i.x-o.width,y:g};break;default:r={x:i.x,y:i.y}}switch(f(t)){case"start":r[a]-=y*(n&&m?-1:1);break;case"end":r[a]+=y*(n&&m?-1:1)}return r}async function j(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=s(t,e),m=w(h),v=a[p?"floating"===d?"reference":"floating":d],g=_(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),y="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),b=await (null==o.isElement?void 0:o.isElement(x))&&await (null==o.getScale?void 0:o.getScale(x))||{x:1,y:1},k=_(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:x,strategy:c}):y);return{top:(g.top-k.top+m.top)/b.y,bottom:(k.bottom-g.bottom+m.bottom)/b.y,left:(g.left-k.left+m.left)/b.x,right:(k.right-g.right+m.right)/b.x}}let L=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:j},c=await (null==l.isRTL?void 0:l.isRTL(t)),s=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=k(s,r,c),d=r,p=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:v,fn:g}=m,{x:y,y:x,data:b,reset:w}=await g({x:u,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:s,platform:a,elements:{reference:e,floating:t}});u=null!=y?y:u,f=null!=x?x:f,h[v]={...h[v],...b},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(s=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:f}=k(s,d,c)),n=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:h}},C=new Set(["left","top"]);async function N(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=u(n),a=f(n),c="y"===h(n),d=C.has(l)?-1:1,p=o&&c?-1:1,m=s(t,e),{mainAxis:v,crossAxis:g,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof y&&(g="end"===a?-1*y:y),c?{x:g*p,y:v*d}:{x:v*d,y:g*p}}var R=n(34826);function T(e){let t=(0,R.Dx)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,R.Re)(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:r,c=o(n)!==l||o(r)!==a;return c&&(n=l,r=a),{width:n,height:r,$:c}}function S(e){return(0,R.kK)(e)?e:e.contextElement}function $(e){let t=S(e);if(!(0,R.Re)(t))return a(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=T(t),c=(l?o(n.width):n.width)/r,s=(l?o(n.height):n.height)/i;return c&&Number.isFinite(c)||(c=1),s&&Number.isFinite(s)||(s=1),{x:c,y:s}}let A=a(0);function O(e){let t=(0,R.Jj)(e);return(0,R.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:A}function P(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=S(e),c=a(1);t&&(r?(0,R.kK)(r)&&(c=$(r)):c=$(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===(0,R.Jj)(l))&&i)?O(l):a(0),u=(o.left+s.x)/c.x,f=(o.top+s.y)/c.y,d=o.width/c.x,p=o.height/c.y;if(l){let e=(0,R.Jj)(l),t=r&&(0,R.kK)(r)?(0,R.Jj)(r):r,n=e,i=(0,R.wK)(n);for(;i&&r&&t!==n;){let e=$(i),t=i.getBoundingClientRect(),r=(0,R.Dx)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,f*=e.y,d*=e.x,p*=e.y,u+=o,f+=l,n=(0,R.Jj)(i),i=(0,R.wK)(n)}}return _({width:d,height:p,x:u,y:f})}function E(e,t){let n=(0,R.Lw)(e).scrollLeft;return t?t.left+n:P((0,R.tF)(e)).left+n}function I(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-E(e,n),y:n.top+t.scrollTop}}function D(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=(0,R.Jj)(e),r=(0,R.tF)(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,c=0;if(i){o=i.width,l=i.height;let e=(0,R.Pf)();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}let s=E(r);if(s<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else s<=25&&(o+=s);return{width:o,height:l,x:a,y:c}}(e,n);else if("document"===t)r=function(e){let t=(0,R.tF)(e),n=(0,R.Lw)(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+E(e),c=-n.scrollTop;return"rtl"===(0,R.Dx)(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:c}}((0,R.tF)(e));else if((0,R.kK)(t))r=function(e,t){let n=P(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=(0,R.Re)(e)?$(e):a(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=O(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _(r)}function W(e){return"static"===(0,R.Dx)(e).position}function B(e,t){if(!(0,R.Re)(e)||"fixed"===(0,R.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,R.tF)(e)===n&&(n=n.ownerDocument.body),n}function F(e,t){let n=(0,R.Jj)(e);if((0,R.tR)(e))return n;if(!(0,R.Re)(e)){let t=(0,R.Ow)(e);for(;t&&!(0,R.Py)(t);){if((0,R.kK)(t)&&!W(t))return t;t=(0,R.Ow)(t)}return n}let r=B(e,t);for(;r&&(0,R.Ze)(r)&&W(r);)r=B(r,t);return r&&(0,R.Py)(r)&&W(r)&&!(0,R.hT)(r)?n:r||(0,R.gQ)(e)||n}let M=async function(e){let t=this.getOffsetParent||F,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,R.Re)(t),i=(0,R.tF)(t),o="fixed"===n,l=P(e,!0,o,t),c={scrollLeft:0,scrollTop:0},s=a(0);if(r||!r&&!o){if(("body"!==(0,R.wk)(t)||(0,R.ao)(i))&&(c=(0,R.Lw)(t)),r){let e=P(t,!0,o,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=E(i))}o&&!r&&i&&(s.x=E(i));let u=!i||r||o?a(0):I(i,c);return{x:l.left+c.scrollLeft-s.x-u.x,y:l.top+c.scrollTop-s.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=(0,R.tF)(r),c=!!t&&(0,R.tR)(t.floating);if(r===l||c&&o)return n;let s={scrollLeft:0,scrollTop:0},u=a(1),f=a(0),d=(0,R.Re)(r);if((d||!d&&!o)&&(("body"!==(0,R.wk)(r)||(0,R.ao)(l))&&(s=(0,R.Lw)(r)),d)){let e=P(r);u=$(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||o?a(0):I(l,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-s.scrollTop*u.y+f.y+p.y}},getDocumentElement:R.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e,a=[..."clippingAncestors"===n?(0,R.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,R.Kx)(e,[],!1).filter(e=>(0,R.kK)(e)&&"body"!==(0,R.wk)(e)),i=null,o="fixed"===(0,R.Dx)(e).position,l=o?(0,R.Ow)(e):e;for(;(0,R.kK)(l)&&!(0,R.Py)(l);){let t=(0,R.Dx)(l),n=(0,R.hT)(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,R.ao)(l)&&!n&&function e(t,n){let r=(0,R.Ow)(t);return!(r===n||!(0,R.kK)(r)||(0,R.Py)(r))&&("fixed"===(0,R.Dx)(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=(0,R.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],c=D(t,a[0],l),s=c.top,u=c.right,f=c.bottom,d=c.left;for(let e=1;e<a.length;e++){let n=D(t,a[e],l);s=i(n.top,s),u=r(n.right,u),f=r(n.bottom,f),d=i(n.left,d)}return{width:u-d,height:f-s,x:d,y:s}},getOffsetParent:F,getElementRects:M,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=T(e);return{width:t,height:n}},getScale:$,isElement:R.kK,isRTL:function(e){return"rtl"===(0,R.Dx)(e).direction}};function q(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function H(e,t,n,o){let a;void 0===o&&(o={});let{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=o,p=S(e),h=c||s?[...p?(0,R.Kx)(p):[],...t?(0,R.Kx)(t):[]]:[];h.forEach(e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&f?function(e,t){let n,o=null,a=(0,R.tF)(e);function c(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),c();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=d;if(u||t(),!m||!v)return;let g=l(h),y=l(a.clientWidth-(p+m)),x={rootMargin:-g+"px "+-y+"px "+-l(a.clientHeight-(h+v))+"px "+-l(p)+"px",threshold:i(0,r(1,f))||1},b=!0;function w(t){let r=t[0].intersectionRatio;if(r!==f){if(!b)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||q(d,e.getBoundingClientRect())||s(),b=!1}try{o=new IntersectionObserver(w,{...x,root:a.ownerDocument})}catch(e){o=new IntersectionObserver(w,x)}o.observe(e)}(!0),c}(p,n):null,v=-1,g=null;u&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),t&&g.observe(t));let y=d?P(e):null;return d&&function t(){let r=P(e);y&&!q(y,r)&&n(),y=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(a)}}let Z=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:a}=t,c=await N(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:l}}}}},V=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:l,platform:a}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:p={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...m}=s(e,t),v={x:n,y:o},g=await a.detectOverflow(t,m),y=h(u(l)),x=d(y),b=v[x],w=v[y];if(c){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",n=b+g[e],o=b-g[t];b=i(n,r(b,o))}if(f){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+g[e],o=w-g[t];w=i(n,r(w,o))}let _=p.fn({...t,[x]:b,[y]:w});return{..._,data:{x:_.x-n,y:_.y-o,enabled:{[x]:c,[y]:f}}}}}},K=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:a,middlewareData:c,rects:w,initialPlacement:_,platform:k,elements:j}=t,{mainAxis:L=!0,crossAxis:C=!0,fallbackPlacements:N,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...$}=s(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let A=u(a),O=h(_),P=u(_)===_,E=await (null==k.isRTL?void 0:k.isRTL(j.floating)),I=N||(P||!S?[b(_)]:function(e){let t=b(e);return[m(e),t,m(t)]}(_)),D="none"!==T;!N&&D&&I.push(...function(e,t,n,r){let i=f(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?g:v;return t?v:g;case"left":case"right":return t?y:x;default:return[]}}(u(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(m)))),o}(_,S,T,E));let W=[_,...I],B=await k.detectOverflow(t,$),F=[],M=(null==(r=c.flip)?void 0:r.overflows)||[];if(L&&F.push(B[A]),C){let e=function(e,t,n){void 0===n&&(n=!1);let r=f(e),i=d(h(e)),o=p(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=b(l)),[l,b(l)]}(a,w,E);F.push(B[e[0]],B[e[1]])}if(M=[...M,{placement:a,overflows:F}],!F.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=W[e];if(t&&(!("alignment"===C&&O!==h(t))||M.every(e=>h(e.placement)!==O||e.overflows[0]>0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=null==(o=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(R){case"bestFit":{let e=null==(l=M.filter(e=>{if(D){let t=h(e.placement);return t===O||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=_}if(a!==n)return{reset:{placement:n}}}return{}}}},J=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:o,placement:l,rects:a,platform:c,elements:u,middlewareData:m}=t,{element:v,padding:g=0}=s(e,t)||{};if(null==v)return{};let y=w(g),x={x:n,y:o},b=d(h(l)),_=p(b),k=await c.getDimensions(v),j="y"===b,L=j?"clientHeight":"clientWidth",C=a.reference[_]+a.reference[b]-x[b]-a.floating[_],N=x[b]-a.reference[b],R=await (null==c.getOffsetParent?void 0:c.getOffsetParent(v)),T=R?R[L]:0;T&&await (null==c.isElement?void 0:c.isElement(R))||(T=u.floating[L]||a.floating[_]);let S=T/2-k[_]/2-1,$=r(y[j?"top":"left"],S),A=r(y[j?"bottom":"right"],S),O=T-k[_]-A,P=T/2-k[_]/2+(C/2-N/2),E=i($,r(P,O)),I=!m.arrow&&null!=f(l)&&P!==E&&a.reference[_]/2-(P<$?$:A)-k[_]/2<0,D=I?P<$?P-$:P-O:0;return{[b]:x[b]+D,data:{[b]:E,centerOffset:P-E-D,...I&&{alignmentOffset:D}},reset:I}}}),U=(e,t,n)=>{let r=new Map,i={platform:z,...n},o={...i.platform,_c:r};return L(e,t,{...i,platform:o})}},34826:function(e,t,n){"use strict";let r;function i(){return"undefined"!=typeof window}function o(e){return c(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(c(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function c(e){return!!i()&&(e instanceof Node||e instanceof l(e).Node)}function s(e){return!!i()&&(e instanceof Element||e instanceof l(e).Element)}function u(e){return!!i()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function f(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function p(e){return/^(table|td|th)$/.test(o(e))}function h(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{Dx:function(){return _},Jj:function(){return l},Kx:function(){return function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let o=function e(t){let n=j(t);return w(n)?t.ownerDocument?t.ownerDocument.body:t.body:u(n)&&d(n)?n:e(n)}(t),a=o===(null==(i=t.ownerDocument)?void 0:i.body),c=l(o);if(!a)return n.concat(o,e(o,[],r));{let t=L(c);return n.concat(c,c.visualViewport||[],d(o)?o:[],t&&r?e(t):[])}}},Lw:function(){return k},Ow:function(){return j},Pf:function(){return b},Py:function(){return w},Re:function(){return u},Ze:function(){return p},ao:function(){return d},gQ:function(){return x},hT:function(){return y},kK:function(){return s},tF:function(){return a},tR:function(){return h},wK:function(){return L},wk:function(){return o}});let m=/transform|translate|scale|rotate|perspective|filter/,v=/paint|layout|strict|content/,g=e=>!!e&&"none"!==e;function y(e){let t=s(e)?_(e):e;return g(t.transform)||g(t.translate)||g(t.scale)||g(t.rotate)||g(t.perspective)||!b()&&(g(t.backdropFilter)||g(t.filter))||m.test(t.willChange||"")||v.test(t.contain||"")}function x(e){let t=j(e);for(;u(t)&&!w(t);){if(y(t))return t;if(h(t))break;t=j(t)}return null}function b(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function w(e){return/^(html|body|#document)$/.test(o(e))}function _(e){return l(e).getComputedStyle(e)}function k(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function j(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||f(e)&&e.host||a(e);return f(t)?t.host:t}function L(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},89750:function(e,t,n){"use strict";n.d(t,{El:function(){return function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}},MM:function(){return f},Me:function(){return u},Pe:function(){return c},U9:function(){return a},Xj:function(){return d},ex:function(){return s},iW:function(){return h},r3:function(){return l}});var r,i=n(17122),o=n(2265);function l(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,i.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function a(e){return"composedPath"in e?e.composedPath()[0]:e.target}function c(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function s(e){return e.matches("html,body")}function u(e){return(null==e?void 0:e.ownerDocument)||document}function f(e){return"nativeEvent"in e}var d="undefined"!=typeof document?o.useLayoutEffect:function(){};let p={...r||(r=n.t(o,2))}.useInsertionEffect||(e=>e());function h(e){let t=o.useRef(()=>{});return p(()=>{t.current=e}),o.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}},17122:function(e,t,n){"use strict";let r;function i(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){return!!i()&&(e instanceof Node||e instanceof l(e).Node)}function c(e){return!!i()&&(e instanceof Element||e instanceof l(e).Element)}function s(e){return!!i()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function u(e){return!!i()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function d(e){return/^(html|body|#document)$/.test(o(e))}function p(e){return l(e).getComputedStyle(e)}function h(e){var t;if("html"===o(e))return e;let n=e.assignedSlot||e.parentNode||u(e)&&e.host||(null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement);return u(n)?n.host:n}n.d(t,{Dx:function(){return p},Ow:function(){return h},Pf:function(){return f},Py:function(){return d},Re:function(){return s},Zq:function(){return u},kK:function(){return c}})},77337:function(e,t,n){"use strict";n.d(t,{jb:function(){return x},xn:function(){return b}});let r=/#/g,i=/&/g,o=/\//g,l=/=/g,a=/\+/g,c=/%5e/gi,s=/%60/gi,u=/%7c/gi,f=/%20/gi;function d(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(u,"|").replace(a,"%2B").replace(f,"+").replace(r,"%23").replace(i,"%26").replace(s,"`").replace(c,"^").replace(o,"%2F")}function p(e){return d(e).replace(l,"%3D")}function h(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let m=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,v=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,g=/^([/\\]\s*){2,}[^/\\]/,y=/^\.?\//;function x(e,t){let n=function e(t="",n){let r=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(r){let[,e,t=""]=r;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!function(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?m.test(e):v.test(e)||!!t.acceptRelative&&g.test(e)}(t,{acceptRelative:!0}))return n?e(n+t):_(t);let[,i="",o,l=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,a="",c=""]=l.match(/([^#/?]*)(.*)?/)||[],{pathname:s,search:u,hash:f}=_(c.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:i.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:a,pathname:s,search:u,hash:f,[w]:!i}}(e),r={...function(e=""){let t={};for(let n of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=h(e[1].replace(a," "));if("__proto__"===r||"constructor"===r)continue;let i=h((e[2]||"").replace(a," "));void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}(n.search),...t};return n.search=Object.keys(r).filter(e=>void 0!==r[e]).map(e=>{var t;return(("number"==typeof(t=r[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${p(e)}=${d(t)}`).join("&"):`${p(e)}=${d(t)}`:p(e)}).filter(Boolean).join("&"),function(e){let t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",i=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[w]?(e.protocol||"")+"//":"")+i+o+t+n+r}(n)}function b(e,...t){let n=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(n){let t=e.replace(y,"");n=function(e="",t){return e.endsWith("/")?e:e+"/"}(n)+t}else n=e;return n}let w=Symbol.for("ufo:protocolRelative");function _(e=""){let[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}}}]);