html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
1 lines • 591 kB
JavaScript
(self.webpackChunk=self.webpackChunk||[]).push([[420],{54368:(e,t,n)=>{"use strict";e.exports=n(14947)},11727:(e,t,n)=>{"use strict";n.d(t,{A:()=>Xt,F:()=>Qt,b:()=>R,d:()=>Me,s:()=>M});var r=n(2784),i=n(54368),o=n(63690),s=n(89839),a=n(6676),l=n(67003),c=n(38461),u=n(28786),d=n(20630),h=n(86224),p=n(97777),m=n(52322),f=n(28316),g=n(1417);function v(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}"function"==typeof SuppressedError&&SuppressedError;const b=r.memo((({renderContent:e,size:t})=>r.createElement(r.Fragment,null,e({size:t}))));b.displayName="RenderContent";const y=({size:e,className:t,cssSizeVariableName:n="--gn-aside-header-size",renderContent:i,children:o})=>r.createElement("div",{className:t,style:Object.assign({},{[n]:`${e}px`})},"function"==typeof i?r.createElement(b,{size:e,renderContent:i}):o),w=40,x=r.createContext(void 0);x.displayName="AsideHeaderInnerContext";const C=x.Provider,_=()=>{const e=r.useContext(x);if(void 0===e)throw new Error("AsideHeaderInnerContext is not initialized.\n Please check if you wrapped your component with AsideHeaderInnerContext.Provider");return e},E=r.createContext({compact:!1,size:0});E.displayName="AsideHeaderContext";const S=E.Provider,k=()=>{const e=r.useContext(E);if(void 0===e)throw new Error("AsideHeaderContext is not initialized.\n Please check if you wrapped your component with AsideHeader\n Context.Provider");return e},N="gn-";(0,i.withNaming)({e:"__",m:"_"});const R=(0,i.withNaming)({n:N,e:"__",m:"_"}),I=R("aside-header");function M(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}M('.g-root{--gn-aside-top-panel-height:0px}.gn-aside-header{--gn-aside-header-min-width:56px;--_--item-icon-background-size:38px;--_--background-color:var(--g-color-base-background);--_--decoration-collapsed-background-color:var(--g-color-base-warning-light);--_--decoration-expanded-background-color:var(--g-color-base-warning-light);--_--vertical-divider-line-color:var(--g-color-line-generic);--_--horizontal-divider-line-color:var(--g-color-line-generic);background-color:var(--g-color-base-background);height:100%;position:relative;width:100%}.gn-aside-header__aside{background-color:var(--gn-aside-header-expanded-background-color,var(--gn-aside-header-background-color,var(--_--background-color)));box-sizing:border-box;display:flex;flex-direction:column;height:100vh;left:0;margin-top:var(--gn-top-alert-height,0);max-height:calc(100vh - var(--gn-top-alert-height, 0));position:sticky;top:var(--gn-top-alert-height,0);width:inherit;z-index:var(--gn-aside-header-z-index,100)}.gn-aside-header__aside:after{background-color:var(--gn-aside-header-divider-vertical-color,var(--_--vertical-divider-line-color));content:"";height:100%;position:absolute;right:0;top:0;width:1px;z-index:2}.gn-aside-header__aside-popup-anchor{inset:0;position:absolute;z-index:1}.gn-aside-header__aside-content{--gradient-height:334px;display:flex;flex-direction:column;height:inherit;overflow-x:hidden;padding-top:var(--gn-aside-header-padding-top);position:relative;user-select:none;width:inherit;z-index:2}.gn-aside-header__aside-content>.gn-aside-header-logo{margin:8px 0}.gn-aside-header__aside-content_with-decoration{background:linear-gradient(180deg,var(--gn-aside-header-decoration-expanded-background-color,var(--_--decoration-expanded-background-color)) calc(var(--gradient-height)*.33),transparent calc(var(--gradient-height)*.88))}.gn-aside-header__aside-custom-background{bottom:0;display:flex;position:absolute;top:0;width:var(--gn-aside-header-size);z-index:-1}.gn-aside-header_compact .gn-aside-header__aside{background-color:var(--gn-aside-header-collapsed-background-color,var(--gn-aside-header-background-color,var(--_--background-color)))}.gn-aside-header_compact .gn-aside-header__aside-content{background:transparent}.gn-aside-header__header{--gn-aside-header-header-divider-height:29px;box-sizing:border-box;flex:none;padding-bottom:22px;padding-top:8px;position:relative;width:100%;z-index:1}.gn-aside-header__header .gn-aside-header__header-divider{bottom:0;color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));display:none;left:0;position:absolute;z-index:-2}.gn-aside-header__header_with-decoration:before{background-color:var(--gn-aside-header-decoration-collapsed-background-color,var(--_--decoration-collapsed-background-color));content:"";display:none;height:calc(100% - var(--gn-aside-header-header-divider-height));left:0;position:absolute;top:0;width:100%;z-index:-2}.gn-aside-header__header:after{background-color:var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));bottom:12px;content:"";height:1px;left:0;position:absolute;width:100%;z-index:-2}.gn-aside-header_compact .gn-aside-header__header:before,.gn-aside-header_compact .gn-aside-header__header_with-decoration .gn-aside-header__header-divider{display:block}.gn-aside-header_compact .gn-aside-header__header_with-decoration:after{display:none}.gn-aside-header__logo-button .gn-aside-header__logo-icon-place{height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));width:var(--gn-aside-header-min-width)}.gn-aside-header__menu-items{flex-grow:1}.gn-aside-header__footer{display:flex;flex-direction:column;flex-shrink:0;margin:8px 0;width:100%}.gn-aside-header__panels{inset:var(--gn-top-alert-height,0) 0 0;max-height:calc(100vh - var(--gn-top-alert-height, 0));overflow:auto;position:fixed;z-index:var(--gn-aside-header-panel-z-index,98)}.gn-aside-header__panel{height:100%}.gn-aside-header__pane-container{display:flex;flex-direction:row;outline:none;overflow:visible;user-select:text}.gn-aside-header__top-alert{background:var(--g-color-base-background);position:fixed;top:0;width:100%;z-index:var(--gn-aside-header-pane-top-z-index,98)}.gn-aside-header__content{margin-top:var(--gn-top-alert-height,0);width:calc(100% - var(--gn-aside-header-size));z-index:var(--gn-aside-header-content-z-index,95)}');const T=r.lazy((()=>n.e(641).then(n.bind(n,2641)).then((e=>({default:e.TopAlert}))))),A=Object.assign((({compact:e,className:t,children:n,topAlert:i})=>{const o=e?56:236,s=(0,r.useMemo)((()=>({size:o,compact:e})),[e,o]);return r.createElement(S,{value:s},r.createElement("div",{className:I({compact:e},t),style:Object.assign({},{"--gn-aside-header-size":`${o}px`})},i&&r.createElement(r.Suspense,{fallback:null},r.createElement(T,{className:I("top-alert"),alert:i})),r.createElement("div",{className:I("pane-container")},n)))}),{Content:({children:e,renderContent:t})=>{const{size:n}=k();return r.createElement(y,{size:n,className:I("content"),renderContent:t},e)}});M(".gn-all-pages-list-item{align-items:center;background:none;border:none;color:inherit;column-gap:var(--g-spacing-4);display:flex;font:inherit;height:40px;outline:inherit;padding:0 var(--g-spacing-6);text-decoration:inherit;width:100%}.gn-all-pages-list-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-all-pages-list-item__text{flex:1;text-align:initial}.gn-all-pages-list-item__icon{color:var(--g-color-text-misc)}.gn-all-pages-list-item_edit-mode{padding:0 0 0 var(--g-spacing-4)}");const O=R("all-pages-list-item"),z=e=>{const{item:t,editMode:n,onToggle:i}=e,l=(0,r.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),i()}),[i]),[c,u]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(c,Object.assign({},u,{className:O(),onClick:e=>{n&&(e.stopPropagation(),e.preventDefault())}}),t.icon?r.createElement(o.Icon,{className:O("icon"),data:t.icon,size:t.iconSize}):null,r.createElement("span",{className:O("text")},t.title),n&&!t.preventUserRemoving&&r.createElement(o.Button,{onClick:l,view:t.hidden?"flat-secondary":"flat-action"},r.createElement(o.Button.Icon,null,t.hidden?r.createElement(s.Z,null):r.createElement(a.Z,null))))};var D=(0,p.e)({en:{"menu-item.all-pages.title":"All pages","all-panel.menu.category.allOther":"All other","all-panel.resetToDefault":"Reset to default","all-panel.title.editing":"Configuring the menu bar","all-panel.title.main":"All pages"},ru:{"menu-item.all-pages.title":"Все страницы","all-panel.menu.category.allOther":"Остальное","all-panel.resetToDefault":"Сбросить по умолчанию","all-panel.title.editing":"Настройка панели меню","all-panel.title.main":"Все страницы"}},`${N}AllPagesPanel`);const j="all-pages";M(".gn-all-pages-panel{box-sizing:border-box;height:100%;min-width:300px;padding:var(--g-spacing-4) var(--g-spacing-6)}.gn-all-pages-panel__content{flex:1;margin:0 calc(var(--g-spacing-6)*-1);overflow:auto}.gn-all-pages-panel__category{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__discoverable-feature-wrapper{display:flex}.gn-all-pages-panel__item_editMode{padding:0 var(--g-spacing-6)}.gn-all-pages-panel__drag-placeholder{text-wrap:nowrap;padding-left:88px;padding-right:68px;visibility:hidden}");const P=R("all-pages-panel"),L=e=>{const{startEditIcon:t,onEditModeChanged:n,className:i}=e,{menuItems:s,defaultMenuItems:a,onMenuItemsChanged:l,editMenuProps:u}=_(),d=(0,r.useRef)(s);d.current=s;const[h,p]=(0,r.useState)(!1),[m,f]=(0,r.useState)(null),g=(0,r.useCallback)((()=>{p((e=>!e))}),[]),v=(e=>{const t=(0,r.useMemo)((()=>{const t=e.filter((e=>"divider"!==e.type&&e.id!==j));return t.sort(((e,t)=>"action"===e.type?1:"action"===t.type?-1:0)),t.reduce(((e,t)=>{const n=t.category||D("all-panel.menu.category.allOther");return e[n]||(e[n]=[]),e[n].push(t),e}),{})}),[e]);return t})(s);(0,r.useEffect)((()=>{var e;null==n||n(h),h&&(null===(e=null==u?void 0:u.onOpenEditMode)||void 0===e||e.call(u))}),[h,n,u]);const b=(0,r.useCallback)((e=>{var t;null===(t=e.onItemClick)||void 0===t||t.call(e,e,!1)}),[]),y=(0,r.useCallback)((e=>{var t;if(!l)return;const n=Object.assign(Object.assign({},e),{hidden:!e.hidden}),r=d.current.filter((e=>e.id!==j));null===(t=null==u?void 0:u.onToggleMenuItem)||void 0===t||t.call(u,n),l(r.map((e=>e.id!==n.id?e:n)))}),[l,u]),w=(0,r.useCallback)((()=>{f(null)}),[f]),x=(0,r.useCallback)(((e,t,n)=>r.createElement(z,{item:e,onDragStart:()=>{f(e.title)},onDragEnd:w,editMode:h,onToggle:()=>y(e),enableSorting:null==u?void 0:u.enableSorting})),[h,y,w,f,u]),C=(0,r.useCallback)((()=>{var e;if(!l)return;null===(e=null==u?void 0:u.onResetSettingsToDefault)||void 0===e||e.call(u);const t=null==a?void 0:a.filter((e=>e.id!==j));t&&l(t)}),[l,u,a]),E=(0,r.useCallback)((({oldIndex:e,newIndex:t})=>{var n;const r=d.current.filter((e=>e.id!==j)),i=r.splice(e,1)[0];r.splice(t,0,i),null==l||l(r.filter((e=>"divider"!==e.type))),f(null),null===(n=null==u?void 0:u.onChangeItemsOrder)||void 0===n||n.call(u,i,e,t)}),[l,u]),S=(0,r.useMemo)((()=>d.current.filter((e=>e.id!==j&&!e.afterMoreButton&&"divider"!==e.type))),[s]);return r.createElement(o.Flex,{className:P(null,i),gap:"5",direction:"column"},r.createElement(o.Flex,{gap:"4",alignItems:"center",justifyContent:"space-between"},r.createElement(o.Text,{variant:"subheader-2"},D(h?"all-panel.title.editing":"all-panel.title.main")),r.createElement(o.Tooltip,{content:D("all-panel.title.editing")},r.createElement(o.Button,{selected:h,view:"normal",onClick:g},t||r.createElement(o.Icon,{data:c.Z})))),r.createElement(o.Flex,{className:P("content"),gap:"5",direction:"column"},h&&(null==u?void 0:u.enableSorting)?r.createElement("div",null,r.createElement(o.List,{itemClassName:P("item",{editMode:!0}),itemHeight:40,onSortEnd:E,sortable:!0,virtualized:!1,filterable:!1,items:S,onItemClick:b,renderItem:x}),m&&r.createElement("div",{className:P("drag-placeholder")},m)):Object.keys(v).map((e=>r.createElement(o.Flex,{key:e,direction:"column",gap:"3"},r.createElement(o.Text,{className:P("category"),variant:"body-1",color:"secondary"},e),r.createElement(o.List,{virtualized:!1,filterable:!1,items:v[e],onItemClick:b,renderItem:x}))))),h&&r.createElement(o.Button,{onClick:C},D("all-panel.resetToDefault")))};let F;F="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let B=null,U=null;const W=F.clearTimeout,V=F.setTimeout,H=F.cancelAnimationFrame||F.mozCancelAnimationFrame||F.webkitCancelAnimationFrame,G=F.requestAnimationFrame||F.mozRequestAnimationFrame||F.webkitRequestAnimationFrame;function q(e){let t,n,r,i,o,s,a;const l="undefined"!=typeof document&&document.attachEvent;if(!l){s=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},o=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},a=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;s(this),this.__resizeRAF__&&B(this.__resizeRAF__),this.__resizeRAF__=U((function(){o(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(o,c){if(l)o.attachEvent("onresize",c);else{if(!o.__resizeTriggers__){const l=o.ownerDocument,c=F.getComputedStyle(o);c&&"static"===c.position&&(o.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=n.head||n.getElementsByTagName("head")[0],s=n.createElement("style");s.id="detectElementResize",s.type="text/css",null!=e&&s.setAttribute("nonce",e),s.styleSheet?s.styleSheet.cssText=r:s.appendChild(n.createTextNode(r)),o.appendChild(s)}}(l),o.__resizeLast__={},o.__resizeListeners__=[],(o.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",o.__resizeTriggers__.appendChild(u),o.__resizeTriggers__.appendChild(d),o.appendChild(o.__resizeTriggers__),s(o),o.addEventListener("scroll",a,!0),r&&(o.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&s(o)},o.__resizeTriggers__.addEventListener(r,o.__resizeTriggers__.__animationListener__))}o.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",a,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==H||null==G?(B=W,U=function(e){return V(e,20)}):(B=function([e,t]){H(e),W(t)},U=function(e){const t=G((function(){W(n),e()})),n=V((function(){H(t),e()}),20);return[t,n]});class Y extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},i=parseFloat(r.paddingLeft||"0"),o=parseFloat(r.paddingRight||"0"),s=parseFloat(r.paddingTop||"0"),a=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-s-a,u=l.width-i-o,d=this._parentNode.offsetHeight-s-a,h=this._parentNode.offsetWidth-i-o;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===h&&this.state.scaledWidth===u)||(this.setState({height:d,width:h,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:h}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=q(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:h,scaledHeight:p,scaledWidth:m,width:f}=this.state,g={overflow:"visible"},v={};let b=!1;return i||(0===h&&(b=!0),g.height=0,v.height=h,v.scaledHeight=p),o||(0===f&&(b=!0),g.width=0,v.width=f,v.scaledWidth=m),s&&(b=!1),(0,r.createElement)(u,{ref:this._setRef,style:{...g,...c},...d},!b&&e(v))}}var Z,K,$,X,J,Q,ee,te,ne,re,ie,oe,se,ae,le,ce,ue,de,he,pe,me,fe,ge,ve,be,ye,we,xe,Ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function _e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ee(){if(K)return Z;return K=1,Z=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}function Se(){if(Q)return J;Q=1;var e=function(){if(X)return $;X=1;var e="object"==typeof Ce&&Ce&&Ce.Object===Object&&Ce;return $=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return J=n}function ke(){if(oe)return ie;oe=1;var e=function(){if(re)return ne;re=1;var e=/\s/;return ne=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n},ne}(),t=/^\s+/;return ie=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}function Ne(){if(ae)return se;ae=1;var e=Se().Symbol;return se=e}function Re(){if(pe)return he;pe=1;var e=Ne(),t=function(){if(ce)return le;ce=1;var e=Ne(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return le=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(de)return ue;de=1;var e=Object.prototype.toString;return ue=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return he=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Ie(){if(ve)return ge;ve=1;var e=Re(),t=fe?me:(fe=1,me=function(e){return null!=e&&"object"==typeof e});return ge=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}var Me=_e(function(){if(xe)return we;xe=1;var e=Ee(),t=function(){if(te)return ee;te=1;var e=Se();return ee=function(){return e.Date.now()}}(),n=function(){if(ye)return be;ye=1;var e=ke(),t=Ee(),n=Ie(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return be=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var l="function"==typeof a.valueOf?a.valueOf():a;a=t(l)?l+"":l}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var c=i.test(a);return c||o.test(a)?s(a.slice(2),c?2:8):r.test(a)?NaN:+a}}(),r=Math.max,i=Math.min;return we=function(o,s,a){var l,c,u,d,h,p,m=0,f=!1,g=!1,v=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function b(e){var t=l,n=c;return l=c=void 0,m=e,d=o.apply(n,t)}function y(e){var t=e-p;return void 0===p||t>=s||t<0||g&&e-m>=u}function w(){var e=t();if(y(e))return x(e);h=setTimeout(w,function(e){var t=s-(e-p);return g?i(t,u-(e-m)):t}(e))}function x(e){return h=void 0,v&&l?b(e):(l=c=void 0,d)}function C(){var e=t(),n=y(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return function(e){return m=e,h=setTimeout(w,s),f?b(e):d}(p);if(g)return clearTimeout(h),h=setTimeout(w,s),b(p)}return void 0===h&&(h=setTimeout(w,s)),d}return s=n(s)||0,e(a)&&(f=!!a.leading,u=(g="maxWait"in a)?r(n(a.maxWait)||0,s):u,v="trailing"in a?!!a.trailing:v),C.cancel=function(){void 0!==h&&clearTimeout(h),m=0,l=p=c=h=void 0},C.flush=function(){return void 0===h?d:x(t())},C}}());M('.gn-composite-bar-highlighted-item{--_--background-color:var(--g-color-base-background);--_--item-icon-background-size:38px;--_--item-background-color-hover:var(--g-color-base-selection-hover);--_--item-selected-background-color-active:var(--g-color-base-selection);display:flex;justify-content:center;position:absolute;z-index:10000}.gn-composite-bar-highlighted-item__icon{align-items:center;background-color:var(--gn-aside-header-background-color,var(--_--background-color));border-radius:7px;box-shadow:0 8px 20px 0 var(--g-color-sfx-shadow);cursor:pointer;display:flex;height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));justify-content:center;overflow:hidden;position:relative;transform:translateY(1px);width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size))}.gn-composite-bar-highlighted-item__icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color-active));content:"";height:100%;position:absolute;width:100%;z-index:-1}.gn-composite-bar-highlighted-item__icon:hover:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover))}');const Te=R("composite-bar-highlighted-item"),Ae=({iconRef:e,iconNode:t,onClick:n,onClickCapture:i})=>{const{openModalSubscriber:s}=_(),[{top:a,left:l,width:c,height:u},d]=(0,r.useState)({top:0,left:0,width:0,height:0}),[h,p]=(0,r.useState)(!1),m=(0,r.useMemo)((()=>Me((()=>{var t;const{top:n=0,left:r=0,width:i=0,height:o=0}=(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect())||{};d({top:n+window.scrollY,left:r+window.scrollX,width:i,height:o})}),200,{leading:!0})),[e]),f=(0,r.useCallback)((()=>m()),[m]);return(0,r.useEffect)((()=>{if(h)return f(),window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)}),[f,h]),null==s||s((e=>{p(e)})),t&&h?r.createElement(o.Portal,null,r.createElement("div",{className:Te(),style:{left:l,top:a,width:c,height:u},onClick:n,onClickCapture:i,"data-toast":!0},r.createElement("div",{className:Te("icon")},t))):null};Ae.displayName="HighlightedItem";const Oe="collapse-item-id",ze=["right-start","right-end","right"];function De(e){if(!Le(e))return w;switch(e.type){case"action":return 50;case"divider":return 15;default:return w}}function je(e){return e.reduce(((e,t)=>e+De(t)),0)}function Pe(e){const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t}function Le(e){return void 0!==(null==e?void 0:e.id)}M('.gn-composite-bar-item{--gn-composite-bar-item-action-size:36px;--_--horizontal-divider-line-color:var(--g-color-line-generic);--_--item-background-color-hover:var(--g-color-base-simple-hover);--_--item-general-icon-color:var(--g-color-text-primary);--_--item-icon-color:var(--g-color-text-complementary);--_--item-text-color:var(--g-color-text-primary);--_--item-collapsed-radius:7px;--_--item-selected-text-color:var(--g-color-text-primary);--_--item-selected-background-color:var(--g-color-base-selection);align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;height:100%;min-width:0;outline:inherit;padding:0;text-decoration:inherit;width:100%}.gn-composite-bar-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-composite-bar-item__icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color))}.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-item-icon-color,var(--_--item-icon-color)))}.gn-composite-bar-highlighted-item .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item__icon,.gn-footer-item .gn-composite-bar-item__icon{color:var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color))}.gn-composite-bar-highlighted-item.gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-composite-bar_subheader .gn-composite-bar-item_current .gn-composite-bar-item__icon,.gn-footer-item.gn-composite-bar-item_current .gn-composite-bar-item__icon{color:var(--gn-aside-header-item-current-icon-color,var(--gn-aside-header-general-item-icon-color,var(--_--item-general-icon-color)))}.gn-composite-bar-item__icon-tooltip .g-action-tooltip__description{color:var(--g-color-text-light-primary);margin-block-start:0}.gn-composite-bar-item__icon-place{align-items:center;display:flex;flex-shrink:0;height:100%;justify-content:center;width:var(--gn-aside-header-min-width)}.gn-composite-bar-item__title{align-items:center;display:flex;margin-right:16px;overflow:hidden}.gn-composite-bar-item__title-text{-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--gn-aside-header-item-text-color,var(--_--item-text-color));display:-webkit-box;overflow:hidden;text-align:start}.gn-composite-bar-item_current .gn-composite-bar-item__title-text{color:var(--gn-aside-header-item-current-text-color,var(--_--item-selected-text-color))}.gn-composite-bar-item__title-adornment{margin:0 10px}.gn-composite-bar-item__collapse-item{--_--item-icon-color:var(--g-color-text-misc);align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:flex;font:inherit;height:100%;outline:inherit;padding:0 16px;text-decoration:inherit;width:100%}.gn-composite-bar-item__collapse-item:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-composite-bar-item__collapse-item-icon{color:var(--gn-aside-header-item-icon-color,var(--_--item-icon-color));margin-right:10px}.gn-composite-bar-item__collapse-item .gn-composite-bar-item__title-adornment{margin-right:0}.gn-composite-bar-item__menu-divider{border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));cursor:default;margin:0 8px;width:100%}.gn-composite-bar-item__collapse-items-popup-content{padding:4px 0}.gn-composite-bar-item__link{align-items:center;display:flex;height:100%;width:100%}.gn-composite-bar-item__link,.gn-composite-bar-item__link:active,.gn-composite-bar-item__link:focus,.gn-composite-bar-item__link:hover,.gn-composite-bar-item__link:visited{color:inherit;outline:none;text-decoration:none}.gn-composite-bar-item__btn-icon{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.gn-composite-bar-item_type_action{background:var(--g-color-base-float);border-radius:var(--gn-composite-bar-item-action-size);box-shadow:0 0 0 1px rgba(0,0,0,.03),0 5px 6px rgba(0,0,0,.12);height:var(--gn-composite-bar-item-action-size);justify-content:center;margin:0 10px 8px;transition:transform .1s ease-out,background-color .15s linear}.gn-composite-bar-item_type_action:focus-visible{box-shadow:0 0 0 2px var(--g-color-line-misc)}.gn-composite-bar-item_type_action:hover{background-color:var(--g-color-base-float-hover)}.gn-composite-bar-item_type_action:active{box-shadow:0 1px 2px var(--g-color-sfx-shadow);transform:scale(.96);transition:none}.gn-composite-bar-item_type_action .gn-composite-bar-item__icon-place{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item__icon-tooltip_item-type_action{margin-left:10px}.gn-composite-bar-item:not(.gn-composite-bar-item_compact).gn-composite-bar-item_current.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color)));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item:not(.gn-composite-bar-item_compact):not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-expanded-radius)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action{width:var(--gn-composite-bar-item-action-size)}.gn-composite-bar-item_compact.gn-composite-bar-item_type_action .gn-composite-bar-item__title{margin:0}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact.gn-composite-bar-item_current.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-current-background-color-hover,var(--gn-aside-header-item-current-background-color,var(--_--item-selected-background-color)));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon{background-color:transparent;position:relative}.gn-composite-bar-item_compact:not(.gn-composite-bar-item_current):hover.gn-composite-bar-item_type_regular .gn-composite-bar-item__btn-icon:before{background-color:var(--gn-aside-header-item-background-color-hover,var(--_--item-background-color-hover));border-radius:var(--gn-aside-header-item-collapsed-radius,var(--_--item-collapsed-radius));content:"";height:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));left:50%;margin-left:-19px;margin-top:-19px;position:absolute;top:50%;width:var(--gn-aside-header-item-icon-background-size,var(--_--item-icon-background-size));z-index:-1}');const Fe=R("composite-bar-item");function Be(e){let t=r.createElement("div",{className:Fe("title-text")},e.title);return e.rightAdornment&&(t=r.createElement(r.Fragment,null,t,r.createElement("div",{className:Fe("title-adornment")},e.rightAdornment))),t}const Ue=["right-end"],We={mainAxis:8,crossAxis:-20},Ve=e=>{const{item:t,className:n,collapseItems:i,onMouseLeave:s,onMouseEnter:a,enableTooltip:l=!0,popupVisible:c=!1,popupAnchor:u,popupAnchorElement:d,popupPlacement:h=Ue,popupOffset:p=We,popupKeepMounted:m,renderPopupContent:f,onClosePopup:g,onOpenChangePopup:v,onItemClick:b,onItemClickCapture:y,onCollapseItemClick:w,bringForward:x}=e,{compact:C}=k(),[_,E]=r.useState(!1),S=r.useRef(null),N=d?{current:d}:u||S,R=r.useRef(null),I=t.type||"regular",M=t.current||!1,T=t.tooltipText||t.title,A=t.icon,O=t.iconSize||18,z=t.iconQa,D=t.id===Oe,j=r.useCallback((e=>{var t;e instanceof MouseEvent&&e.target&&(null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||null==g||g()}),[g]),P=r.useCallback(((e,t,n)=>{var r;t instanceof MouseEvent&&t.target&&(null===(r=S.current)||void 0===r?void 0:r.contains(t.target))||null==v||v(e,t,n)}),[g]);if("divider"===t.type)return r.createElement("div",{className:Fe("menu-divider")});const L=e=>C?r.createElement(o.ActionTooltip,{title:"",description:T,disabled:!l||D&&_||c,placement:"right",className:Fe("icon-tooltip",{"item-type":I})},r.createElement("div",{onMouseEnter:()=>null==a?void 0:a(),onMouseLeave:()=>null==s?void 0:s(),className:Fe("btn-icon")},e)):e,F=({icon:e,title:i})=>{const[l,u]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(r.Fragment,null,r.createElement(l,Object.assign({},u,{className:Fe({type:I,current:M,compact:C},n),ref:S,"data-qa":t.qa,onClick:e=>{D?(E(!_),null==w||w()):null==b||b(t,!1,e)},onClickCapture:y,onMouseEnter:()=>{C||null==a||a()},onMouseLeave:()=>{C||null==s||s()}}),r.createElement("div",{className:Fe("icon-place"),ref:R},L(e)),r.createElement("div",{className:Fe("title"),title:"string"==typeof t.title?t.title:void 0},i)),f&&Boolean(null==N?void 0:N.current)&&r.createElement(o.Popup,{strategy:"fixed",open:c,keepMounted:m,placement:h,offset:p,anchorRef:N,onClose:j,onOpenChange:P},f()))},B=A?r.createElement(o.Icon,{qa:z,data:A,size:O,className:Fe("icon")}):null,U={icon:B,title:Be(t)};let W,V=null;const H={compact:Boolean(C),collapsed:!1,item:t,ref:S};return"function"==typeof t.itemWrapper?(W=t.itemWrapper(U,F,H),V=x&&t.itemWrapper(U,(({icon:e})=>L(e)),H)):(W=F(U),V=x&&L(B)),r.createElement(r.Fragment,null,x&&r.createElement(Ae,{iconNode:V,iconRef:R,onClick:e=>null==b?void 0:b(t,!1,e),onClickCapture:y}),W,_&&D&&(null==i?void 0:i.length)&&Boolean(null==N?void 0:N.current)&&r.createElement(He,Object.assign({},e,{anchorRef:S,onClose:()=>E(!1)})))};function He({onItemClick:e,collapseItems:t,anchorRef:n,onClose:i}){const{compact:s}=k();return(null==t?void 0:t.length)?r.createElement(o.Popup,{strategy:"fixed",placement:ze,open:!0,anchorRef:n,onClose:i},r.createElement("div",{className:Fe("collapse-items-popup-content")},r.createElement(o.List,{itemClassName:Fe("root-collapse-item"),items:t,selectedItemIndex:Pe(t),itemHeight:28,itemsHeight:28*t.length,virtualized:!1,filterable:!1,sortable:!1,onItemClick:i,renderItem:t=>{const i=({title:n,icon:i})=>{const[o,s]=t.link?["a",{href:t.link}]:["button",{}];return r.createElement(o,Object.assign({},s,{className:Fe("collapse-item"),onClick:n=>{null==e||e(t,!0,n)}}),i,n)},a={title:Be(t),icon:t.icon&&r.createElement(o.Icon,{data:t.icon,size:14,className:Fe("collapse-item-icon")})},l={compact:Boolean(s),collapsed:!0,item:t,ref:n};return"function"==typeof t.itemWrapper?t.itemWrapper(a,i,l):i(a)}}))):null}Ve.displayName="Item";const Ge={active:!1,activeIndex:void 0,hideCollapseItemTooltip:!1,lastClickedItemIndex:void 0,setValue:()=>{}},qe=r.createContext(Ge);class Ye extends r.PureComponent{constructor(){super(...arguments),this.state=Object.assign({},Ge),this.setValue=e=>{this.setState(Object.assign({},e))}}render(){const{children:e}=this.props;return r.createElement(qe.Provider,{value:Object.assign(Object.assign({},this.state),{setValue:this.setValue})},e)}}M('.g-root_theme_dark .gn-multiple-tooltip,.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-100-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(16px)}.g-root_theme_dark-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-white-150-solid)\n )}.g-root_theme_light .gn-multiple-tooltip,.g-root_theme_light-hc .gn-multiple-tooltip{--multiple-tooltip-item-bg-color:var(\n --g-color-base-float-medium,var(--g-color-private-black-550-solid)\n );--multiple-tooltip-item-active-bg-color:var(--g-color-base-float-heavy);--multiple-tooltip-backdrop-background:linear-gradient(90deg,var(--g-color-base-background) 50%,transparent);--multiple-tooltip-backdrop-filter:blur(12px)}.gn-multiple-tooltip:before{background:var(--multiple-tooltip-backdrop-background);box-shadow:none;content:"";filter:var(--multiple-tooltip-backdrop-filter);height:100%;opacity:.7;position:absolute;width:100%;z-index:-1}.gn-multiple-tooltip__popup{--g-popup-background-color:transparent;--g-popup-border-color:transparent;--g-popup-border-width:0;background-color:transparent;box-shadow:none}.gn-multiple-tooltip__items-container{align-items:flex-start;display:flex;flex-direction:column;padding:32px 40px 32px 12px}.gn-multiple-tooltip__item{align-items:center;background-color:var(--multiple-tooltip-item-bg-color);border-radius:5px;box-sizing:border-box;color:var(--g-color-text-light-primary);display:flex;height:30px;margin-bottom:5px;padding:8px 12px;position:relative;transition:transform .1s ease-in-out}.gn-multiple-tooltip__item:first-child,.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider)+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:5px}.gn-multiple-tooltip__item_divider+.gn-multiple-tooltip__item:not(.gn-multiple-tooltip__item_divider){margin-top:4px}.gn-multiple-tooltip__item_active{background-color:var(--multiple-tooltip-item-active-bg-color);transform:translateX(-12px)}.gn-multiple-tooltip__item_divider{height:15px;margin:0;visibility:hidden}');const Ze=R("multiple-tooltip"),Ke={mainAxis:4,crossAxis:-32},$e=({items:e,open:t,anchorRef:n,placement:i})=>{const{activeIndex:s,hideCollapseItemTooltip:a}=r.useContext(qe),l=void 0===s?null:e[s];return r.createElement(o.Popup,{open:t,className:Ze("popup"),anchorRef:n,strategy:"fixed",placement:i,offset:Ke},r.createElement("div",{className:Ze()},r.createElement("div",{className:Ze("items-container")},e.filter((({type:e="regular",id:t})=>!a||t!==Oe&&"action"!==e)).map(((e,t)=>"divider"===e.type?r.createElement("div",{className:Ze("item",{divider:!0}),key:t},e.title):r.createElement("div",{className:Ze("item",{active:e===l}),key:t},e.title))))))};M(".gn-composite-bar{flex:1 0 auto;min-height:40px;width:100%}.gn-composite-bar .gn-composite-bar__root-menu-item[class]{background-color:transparent}");const Xe=R("composite-bar"),Je=({type:e,items:t,onItemClick:n,onMoreClick:i,collapseItems:s,multipleTooltip:a=!1})=>{const l=(0,r.useRef)(null),c=(0,r.useRef)(null),{setValue:u,active:d,activeIndex:h,lastClickedItemIndex:p}=(0,r.useContext)(qe),{compact:m}=k();r.useEffect((()=>{function e(){a&&d&&u({active:!1})}return window.addEventListener("blur",e),()=>{window.removeEventListener("blur",e)}}),[a,d,u]);const f=(0,r.useCallback)((e=>{a&&m&&!d&&document.hasFocus()&&h!==p&&e.clientX<=56&&(null==u||u({active:!0}))}),[a,m,d,h,p,u]),g=(0,r.useCallback)((()=>{a&&d&&document.hasFocus()&&(null==u||u({active:!1,lastClickedItemIndex:void 0}))}),[a,d,u]),v=(0,r.useCallback)((e=>()=>{if(a&&document.hasFocus()){let t=d;if(d||e===p||(t=!0),h===e&&d===t)return;u({activeIndex:e,active:t})}}),[a,d,p,h,u]),b=(0,r.useCallback)((()=>{var e;m&&document.hasFocus()&&(null===(e=l.current)||void 0===e||e.activateItem(void 0),!a||void 0===h&&void 0===p||u({activeIndex:void 0,lastClickedItemIndex:void 0}))}),[h,m,p,a,u]),y=(0,r.useCallback)((e=>(t,r,i)=>{m&&a&&e!==p&&t.id!==Oe&&u({lastClickedItemIndex:e,active:!1}),null==n||n(t,r,i)}),[m,p,a,n,u]);return r.createElement(r.Fragment,null,r.createElement("div",{ref:c,onMouseEnter:f,onMouseLeave:g},r.createElement(o.List,{ref:l,items:t,selectedItemIndex:"menu"===e?Pe(t):void 0,itemHeight:De,itemsHeight:je,itemClassName:Xe("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:(e,t,n)=>{const o=Le(e)?{item:e}:e,l=Le(e)?!a:e.enableTooltip;return r.createElement(Ve,Object.assign({},o,{enableTooltip:l,onMouseEnter:v(n),onMouseLeave:b,onItemClick:y(n),onCollapseItemClick:i,collapseItems:s}))}})),"menu"===e&&a&&r.createElement($e,{open:m&&d,anchorRef:c,placement:["right-start"],items:t}))},Qe=({type:e,items:t,menuMoreTitle:n,onItemClick:i,onMoreClick:o,multipleTooltip:s=!1})=>{if(0===t.length)return null;let a;if("menu"===e){const e=function(e){const t=function(e){const t=[];for(const n of e)(n.pinned||"divider"===n.type&&t.length>0&&"divider"!==t[t.length-1].type)&&t.push(n);return t}(e),n=e.filter((e=>e.afterMoreButton));return je(t)+je(n)+(t.length===e.length?0:w)}(t),c=function(e){return{id:Oe,title:e,icon:l.Z,iconSize:18}}(n);a=r.createElement("div",{className:Xe({autosizer:!0}),style:{minHeight:e}},0!==t.length&&r.createElement(Y,null,(e=>{const n=Number.isNaN(e.width)?0:e.width,a=Number.isNaN(e.height)?0:e.height,{listItems:l,collapseItems:u}=function(e,t,n){var r,i,o;const s=e.filter((e=>e.afterMoreButton)),a=e.filter((e=>!e.afterMoreButton)),l=[...a,...s],c=je(l);if(c<=t)return{listItems:l,collapseItems:[]};const u=De(n);l.splice(a.length,0,n);const d=[];let h=c+u,p=l.length;for(;h>t&&0!==p;){p--;const e=l[p];e.pinned||e.id===Oe||e.afterMoreButton||("divider"!==e.type?(h-=De(e),d.unshift(...l.splice(p,1))):p+1<l.length&&"divider"===(null===(r=l[p+1])||void 0===r?void 0:r.type)&&(h-=De(e),l.splice(p,1)))}return"divider"!==(null===(i=l[p])||void 0===i?void 0:i.type)||0!==p&&"divider"!==(null===(o=l[p-1])||void 0===o?void 0:o.type)||l.splice(p,1),{listItems:l,collapseItems:d}}(t,a,c);return r.createElement("div",{style:{width:n,height:a}},r.createElement(Je,{type:"menu",items:l,onItemClick:i,onMoreClick:o,collapseItems:u,multipleTooltip:s}))})))}else a=r.createElement("div",{className:Xe({subheader:!0})},r.createElement(Je,{type:"subheader",items:t,onItemClick:i}));return r.createElement(Ye,null,a)};var et={button_collapse:"Collapse",button_expand:"Expand",label_more:"More"},tt={button_collapse:"Свернуть",button_expand:"Развернуть",label_more:"Ещё"};var nt,rt=(0,p.e)({en:et,ru:tt},`${N}AsideHeader`);function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(null,arguments)}var ot=function(e){return r.createElement("svg",it({xmlns:"http://www.w3.org/2000/svg",width:8,height:8,fill:"currentColor",viewBox:"0 0 8 8"},e),nt||(nt=r.createElement("path",{d:"m.72 7.64 6.39-3.2a.5.5 0 0 0 0-.89L.72.36A.5.5 0 0 0 0 .81v6.38c0 .37.4.61.72.45"})))};M('.gn-collapse-button{--_--focus-outline-color:var(--g-color-line-focus);--_--focus-outline-offset:0;align-items:center;background:none;border:none;border-top:1px solid var(--gn-aside-header-divider-horizontal-color,var(--_--horizontal-divider-line-color));box-sizing:content-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;min-height:20px;outline:none;padding:0;position:relative;width:100%}.gn-collapse-button:before{content:"";inset:0 2px 2px;position:absolute;z-index:-1}.gn-collapse-button:focus-visible:before{outline:var(--_--focus-outline-color) solid 2px;outline-offset:var(--_--focus-outline-offset)}.gn-collapse-button:not(.gn-collapse-button_compact) .gn-collapse-button__icon{transform:rotate(180deg)}.gn-collapse-button:hover .gn-collapse-button__icon{color:var(--g-color-text-primary)}.gn-collapse-button__icon{color:var(--g-color-text-secondary)}');const st=R("collapse-button"),at=({className:e})=>{const{onChangeCompact:t,compact:n,expandTitle:i,collapseTitle:s}=_(),a=(0,r.useCallback)((()=>{null==t||t(!n)}),[n,t]),l=n?i||rt("button_expand"):s||rt("button_collapse");return r.createElement("button",{className:st({compact:n},e),onClick:a,title:l},r.createElement(o.Icon,{data:ot,className:st("icon"),width:"16",height:"10"}))};M(".gn-logo{height:40px}.gn-logo,.gn-logo__btn-logo{align-items:center;display:flex}.gn-logo__btn-logo{cursor:pointer;flex-shrink:0;justify-content:center}.gn-logo__btn-logo,.gn-logo__btn-logo:active,.gn-logo__btn-logo:focus,.gn-logo__btn-logo:hover,.gn-logo__btn-logo:visited{color:inherit;outline:none;text-decoration:none}.gn-logo__btn-logo:focus-visible{outline:solid var(--g-color-line-misc);outline-offset:-2px}.gn-logo__logo-icon-place{align-items:center;display:flex;justify-content:center;width:36px}");const lt=R("logo"),ct=({text:e,icon:t,iconSrc:n,iconClassName:i,iconPlaceClassName:s,iconSize:a=24,textSize:l=15,href:c,target:u="_self",wrapper:d,onClick:h,compact:p,className:m,buttonClassName:f,"aria-label":g,"aria-labelledby":b})=>{const y="function"==typeof d;let w,x;n?w=r.createElement("span",{className:i},r.createElement("img",{alt:"logo icon",src:n,width:a,height:a})):t&&(w=r.createElement(o.Icon,{data:t,size:a,className:i})),x="function"==typeof e?e():r.createElement("div",{className:lt("logo"),style:{fontSize:l}},e);const C=c?{tag:"a",target:u,rel:"_self"===u?void 0:"noreferrer",href:c,"aria-label":g,"aria-labelledby":b}:{tag:"span"},{tag:_}=C,E=v(C,["tag"]),S=r.createElement(_,Object.assign({},E,{className:lt("btn-logo",f),onClick:h}),r.createElement("span",{className:lt("logo-icon-place",s)},w),!p&&x);return r.createElement("div",{className:lt(null,m)},y?d(S,Boolean(p)):S)};var ut;function dt(){return dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dt.apply(null,arguments)}var ht=function(e){return r.createElement("svg",dt({xmlns:"http://www.w3.org/2000/svg",width:56,height:29,fill:"currentColor",viewBox:"0 0 56 29"},e),ut||(ut=r.createElement("path",{d:"M56 0v29c-.8-1-7-6.1-17.7-8.4L13 15.7A16 16 0 0 1 0 0Z"})))};const pt=[],mt=()=>{const{logo:e,onItemClick:t,onClosePanel:n,headerDecoration:i,subheaderItems:s}=_(),{compact:a}=k(),l=(0,r.useCallback)((t=>{var r;null==n||n(),null===(r=null==e?void 0:e.onClick)||void 0===r||r.call(e,t)}),[n,e]);return r.createElement("div",{className:I("header",{"with-decoration":i})},e&&r.createElement(ct,Object.assign({},e,{onClick:l,compact:a,buttonClassName:I("logo-button"),iconPlaceClassName:I("logo-icon-place")})),r.createElement(Qe,{type:"subheader",items:s||pt,onItemClick:t}),i&&r.createElement(o.Icon,{data:ht,className:I("header-divider"),width:56,height:29}))};var ft="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;let gt=0;function vt(){const e=/iP(hone|ad|od)|iOS/.test(function(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,o=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var s,a;const e=(null==(s=window.visualViewport)?void 0:s.offsetLeft)||0,n=(null==(a=window.visualViewport)?void 0:a.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(o-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,o))}}let bt=()=>{};const yt=r.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return ft((()=>{if(n)return gt++,1===gt&&(bt=vt()),()=>{gt--,0===gt&&bt()}}),[n]),(0,m.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})}));function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(null,arguments)}function xt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ct(e,t){return Ct=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ct(e,t)}function _t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ct(e,t)}function Et(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var St=!1,kt=r.createContext(null),Nt=function(e){return e.scrollTop},Rt="unmounted",It="exited",Mt="entering",Tt="entered",At="exiting",Ot=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=It,r.appearStatus=Mt):i=Tt:i=t.unmountOnExit||t.mountOnEnter?Rt:It,r.state={status:i},r.nextCallback=null,r}_t(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rt?{status:It}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Mt&&n!==Tt&&(t=Mt):n!==Mt&&n!==Tt||(t=At)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Mt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this);n&&Nt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===It&&this.setState({status:Rt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[f.findDOMNode(this),r],o=i[0],s=i[1],a=this.getTimeouts(),l=r?a.appear:a.enter;!e&&!n||St?this.safeSetState({status:Tt},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,s),this.safeSetState({status:Mt},(function(){t.props.onEntering(o,s),t.onTransitionEnd(l,(function(){t.safeSetState({status:Tt},(function(){t.props.onEntered(o,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:f.findDOMNode(this);t&&!St?(this.props.onExit(r),this.safeSetState({status:At},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:It},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:It},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:f.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Rt)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var i=xt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(kt.Provider,{value:null},"function"==typeof n?n(e,i):r.cloneElement(r.Children.only(n),i))},t}(r.Component);function zt(){}Ot.contextType=kt,Ot.propTypes={},Ot.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zt,onEntering:zt,onEntered:zt,onExit:zt,onExiting:zt,onExited:zt},Ot.UNMOUNTED=Rt,Ot.EXITED=It,Ot.ENTERING=Mt,Ot.ENTERED=Tt,Ot.EXITING=At;var Dt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},jt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Et(n.className,r):n.setAttribute("class",Et(n.className&&n.className.baseVal||"",r)));var n,r}))},Pt=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}_t(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&Nt(e),r&&(this.appliedClasses[t][n]=r,Dt(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&jt(e,r),i&&jt(e,i),o&&jt(e,o)},n.render=function(){var e=this.props;e.classNames;var t=xt(e,["classNames"]);return r.createElement(Ot,wt({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(r.Component);Pt.defaultProps={classNames:""},Pt.propTypes={};const Lt=200,Ft=800;function Bt(e,t){var n,r,i,o;return"touches"in e?"horizontal"===t?null!==(r=null===(n=e.touches[0])||void 0===n?void 0:n.clientX)&&void 0!==r?r:0:null!==(o=null===(i=e.touches[0])||void 0===i?void 0:i.clientY)&&void 0!==o?o:0:"horizontal"===t?e.clientX:e.clientY}function Ut(e){const{direction:t="left",width:n,minResizeWidth:i=Lt,maxResizeWidth:o=Ft,onResizeStart:s,onResize:a,onResizeContinue:l}=e,[c,u]=r.useState(!1),[d,h]=r.useState(0),[p,m]=r.useState(null!=n?n:400),f=r.useCallback((e=>Math.min(Math.max(e,i),o)),[i,o]),g=r.useCallback((e=>{const r=["right","bottom"].includes(t)?e:-e;return f((null!=n?n:p)+r)}),[n,p,t,f]),v=r.useCallback((()=>{u(!0),h(0),null==s||s()}),[s]),b=r.useCallback((e=>{h(e),null==l||l(g(e))}),[g,l]),y=r.useCallback((e=>{const t=g(e);u(!1),m(t),null==a||a(t)}),[g,a]),w=c?g(d):f(null!=n?n:p),x=function({onStart:e,onMove:t,onEnd:n,direction:i="horizontal"}){const o=r.useRef(0),s=r.useRef(0),a=r.useCallback((e=>{const n=Bt(e,i);if(s.current===n)return;s.current=n;const r=o.current-n;t(r)}),[t,i]),l=r.useCallback((e=>{e.preventDefault()}),[]),c=r.useCallback((e=>{window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),window.removeEventListener("selectstart",l),document.body.style.removeProperty("cursor");const t=Bt(e,i),r=o.current-t;n(r)}),[a,l,i,n]),u=r.useCallback((t=>{const n=Bt(t,i);o.current=n,s.current=n,window.addEventListener("mouseup",c,{once:!0}),window.addEventListener("touchend",c,{once:!0}),window.addEventListener("touchcancel",c,{once:!0}),window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),window.addEventListener("selectstart",l,{passive:!1}),document.body.style.setProperty("cursor","horizontal"===i?"col-resize":"row-resize"),e()}),[c,a,e,i]);return{onMouseDown:u,onTouchStart:u}}({onStart:v,onMove:b,onEnd:y,direction:["left","right"].includes(t)?"horizontal":"vertical"});return{resizedWidth:w,resizerHandlers:x,isResizing:c}}M(".gn-drawer{--_--item-shadow-default:0 1px 5px 0 var(--g-color-sfx-shadow);--_--item-position:fixed;--_--resizer-width:8px;--_--resizer-color:var(--g-color-base-generic);--_--resizer-handle-color:var(--g-color-line-generic);--_--resizer-handle-color-hover:var(--g-color-line-generic-hover);--_--resizer-z-index:100;--_--veil-background-color:var(--g-color-sfx-veil);pointer-events:none}.gn-drawer_hideVeil{--_--item-shadow:var(--gn-drawer-item-shadow,var(--_--item-shadow-default))}.gn-drawer__item{background-color:var(--g-color-base-background);bottom:0;box-shadow:var(--_--item-shadow,none);height:100%;left:var(--gn-aside-header-size,0);pointer-events:auto;position:var(--gn-drawer-item-position,var(--_--item-position));top:var(--gn-top-alert-height,0);will-change:transform;z-index:var(--gn-drawer-item-z-index)}.gn-drawer__item_direction_right{left:auto;right:0}.gn-drawer__item_direction_top{bottom:auto;right:0}.gn-drawer__item_direction_bottom{right:0;top:auto}.gn-drawer__item-transition-enter{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-enter{transform:translate(100%)}.gn-drawer__item-transition_direction_top-enter{transform:translateY(-100%)}.gn-drawer__item-transition_direction_bottom-enter{transform:translateY(100%)}.gn-drawer__item-transition-enter-active,.gn-drawer__item-transition_direction_bottom-enter-active,.gn-drawer__item-transition_direction_right-enter-active,.gn-drawer__item-transition_direction_top-enter-active{transform:translate(0);transition:transform .3s}.gn-drawer__item-transition-enter-done,.gn-drawer__item-transition_direction_bottom-enter-done,.gn-drawer__item-transition_direction_right-enter-done,.gn-drawer__item-transition_direction_top-enter-done{filter:blur(0);transform:translateZ(0)}.gn-drawer__item-transition-exit,.gn-drawer__item-transition_direction_bottom-exit,.gn-drawer__item-transition_direction_right-exit,.gn-drawer__item-transition_direction_top-exit{transform:translate(0)}.gn-drawer__item-transition-exit-active,.gn-drawer__item-transition_direction_bottom-exit-active,.gn-drawer__item-transition_direction_right-exit-active,.gn-drawer__item-transition_direction_top-exit-active{transition:transform .3s}.gn-drawer__item-transition-exit-active{transform:translate(-100%)}.gn-drawer__item-transition_direction_right-exit-active{transform:translate(100%)}.gn-drawer__item-transition_direction_top-exit-active{transform:translateY(-100%)}.gn-drawer__item-transition_direction_bottom-exit-active{transform:translateY(100%)}.gn-drawer__item-transition-exit-done,.gn-drawer__item-transition_direction_bottom-exit-done,.gn-drawer__item-transition_direction_right-exit-done,.gn-drawer__item-transition_direction_top-exit-done,.gn-drawer__item_hidden{visibility:hidden}.gn-drawer__veil{background-color:var(--gn-drawer-veil-background-color,var(--_--veil-background-color));inset:0;pointer-events:auto;position:absolute;z-index:var(--gn-drawer-veil-z-index)}.gn-drawer__veil_hidden{display:none}.gn-drawer__veil-transition-enter{opacity:0}.gn-drawer__veil-transition-enter-active{opacity:1;transition:opacity .3s}.gn-drawer__veil-transition-exit{opacity:1}.gn-drawer__veil-transition-exit-active{opacity:0;transition:opacity .3s}.gn-drawer__veil-transition-exit-done{visibility:hidden}.gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color,var(--_--resizer-handle-color));border-radius:2px;height:28px;width:2px}.gn-drawer__resizer-handle_direction_bottom,.gn-drawer__resizer-handle_direction_top{height:2px;width:28px}.gn-drawer__resizer{align-items:center;background:var(--gn-drawer-item-resizer-color,var(--_--resizer-color));cursor:col-resize;display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;top:0;width:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));z-index:var(--gn-drawer-item-resizer-z-index,var(--_--resizer-z-index))}.gn-drawer__resizer_direction_right{left:0;top:var(--gn-top-alert-height,0)}.gn-drawer__resizer_direction_left{right:0;top:var(--gn-top-alert-height,0)}.gn-drawer__resizer_direction_top{bottom:0;left:0;top:unset}.gn-drawer__resizer_direction_bottom{left:0;top:0}.gn-drawer__resizer_direction_bottom,.gn-drawer__resizer_direction_top{cursor:row-resize;height:var(--gn-drawer-item-resizer-width,var(--_--resizer-width));width:100%}.gn-drawer__resizer:hover .gn-drawer__resizer-handle{background:var(--gn-drawer-item-resizer-handle-color-hover,var(--_--resizer-handle-color-hover))}");const Wt=R("drawer"),Vt=r.forwardRef((function(e,t){const{visible:n,content:i,children:s,direction:a="left",className:l,resizable:c,width:u,minResizeWidth:d,maxResizeWidth:h,onResizeStart:p,onResizeContinue:m,onResize:f,keepMounted:g=!1}=e,[v,b]=r.useState(!0),y=r.useRef(null),w=(0,o.useForkRef)(t,y),x="left"===a?void 0:a,{resizedWidth:C,resizerHandlers:_,isResizing:E}=Ut({direction:a,width:u,minResizeWidth:d,maxResizeWidth:h,onResizeStart:p,onResize:f,onResizeContinue:m}),S={};c&&(["left","right"].includes(a)?S.width=`${C}px`:S.height=`${C}px`),r.useEffect((()=>{b(!0)}),[a]);const k=c?r.createElement("div",Object.assign({className:Wt("resizer",{direction:a})},_),r.createElement("div",{className:Wt("resizer-handle",{direction:a})})):null;return r.createElement(Pt,{in:n,timeout:300,mountOnEnter:!g,unmountOnExit:!g,classNames:Wt("item-transition",{direction:x}),nodeRef:y,onEnter:()=>b(!1),onExit:()=>b(!1)},r.createElement("div",{ref:w,className:Wt("item",{direction:x,hidden:v&&!n,resize:E},[l]),style:S},k,null!=s?s:i))})),Ht=({className:e,veilClassName:t,children:n,style:i,onVeilClick:s,onEscape:a,hideVeil:l,disablePortal:c=!0,keepMounted:u=!1})=>{let d=!1;r.Children.forEach(n,(e=>{if(r.isValidElement(e)&&e.type===Vt){Boolean(e.props.visible)&&(d=!0)}})),r.useEffect((()=>{function e(e){"Escape"===e.key&&(null==a||a(e))}return d&&window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}),[a,d]);const h=r.useRef(null),p=r.useRef(null),m=r.createElement(Ot,{in:d,timeout:{enter:0,exit:300},mountOnEnter:!u,unmountOnExit:!u,nodeRef:h},(o=>{const a=d&&"entered"===o;return r.createElement("div",{ref:h,className:Wt({hideVeil:l},e),style:i},r.createElement(Pt,{in:a,timeout:300,unmountOnExit:!0,classNames:Wt("veil-transition"),nodeRef:p},r.createElement("div",{ref:p,className:Wt("veil",{hidden:l},t),onClick:s})),r.Children.map(n,(e=>{if(r.isValidElement(e)&&e.type===Vt){const t=Boolean(e.props.visible);return r.cloneElement(e,Object.assign(Object.assign({keepMounted:u},e.props),{visible:t&&a}))}return e})))}));return c?m:r.createElement(o.Portal,null,d?r.createElement(yt,{lockScroll:!0},m):m)},Gt=()=>{const{panelItems:e,onClosePanel:t,size:n}=_();return e?r.createElement(Ht,{className:I("panels"),onVeilClick:t,onEscape:t,style:{left:n}},e.map((e=>r.createElement(Vt,Object.assign({key:e.id},e))))):null},qt=r.forwardRef(((e,t)=>{const{size:n,onItemClick:i,headerDecoration:s,multipleTooltip:a,menuMoreTitle:l,onMenuMoreClick:c,renderFooter:u,compact:d,customBackground:h,customBackgroundClassName:p,className:m,hideCollapseButton:f,qa:g}=_(),v=(()=>{const{menuItems:e,allPagesIsAvailable:t}=_();return(0,r.useMemo)((()=>{if(!t)return e;let n=0;return e.filter(((e,t,r)=>!(e.hidden||t>0&&"divider"===e.type&&("divider"===r[n].type||r[n].hidden)||(n=t,0))))}),[t,e])})(),b=(0,r.useRef)(null);return r.useEffect((()=>{(0,o.setRef)(t,b.current)}),[t]),r.createElement(r.Fragment,null,r.createElement("div",{className:I("aside",m),style:{width:n},"data-qa":g},r.createElement("div",{className:I("aside-popup-anchor"),ref:b}),h&&r.createElement("div",{className:I("aside-custom-background",p)},h),r.createElement("div",{className:I("aside-content",{"with-decoration":s})},r.createElement(mt,null),(null==v?void 0:v.length)?r.createElement(Qe,{type:"menu",items:v,menuMoreTitle:null!=l?l:rt("label_more"),onItemClick:i,onMoreClick:c,multipleTooltip:a}):r.createElement("div",{className:I("menu-items")}),r.createElement("div",{className:I("footer")},null==u?void 0:u({size:n,compact:Boolean(d),asideRef:b})),!f&&r.createElement(at,null))),r.createElement(Gt,null))}));var Yt;qt.displayName="FirstPanel",function(e){e.AllPages="all-pages"}(Yt||(Yt={}));const Zt=[],Kt=e=>{const{size:t,onClosePanel:n,menuItems:i,panelItems:o,onMenuItemsChanged:s,onAllPagesClick:a}=e,[c,u]=(0,r.useState)(),d=r.useMemo((()=>({id:j,title:D("menu-item.all-pages.title"),tooltipText:D("menu-item.all-pages.title"),icon:l.Z})),[]),h=Boolean(s)&&(!i||(null==i?void 0:i.length)>0);(0,r.useEffect)((()=>{(null==o?void 0:o.some((e=>e.visible)))&&u(void 0)}),[o]);const p=(0,r.useCallback)((()=>{u(void 0),null==n||n()}),[n]),m=(0,r.useCallback)(((e,t,r)=>{var i;e.id===d.id?(null==n||n(),u((e=>e===Yt.AllPages?void 0:Yt.AllPages))):p(),null===(i=e.onItemClick)||void 0===i||i.call(e,e,t,r)}),[p,d,n]),f=(0,r.useMemo)((()=>h?[...i||Zt,Object.assign(Object.assign({},d),{current:c===Yt.AllPages,onItemClick:a})]:i||Zt),[h,i,c,d,a]),g=(0,r.useMemo)((()=>h?[...o||[],{id:Yt.AllPages,content:r.createElement(L,null),visible:c===Yt.AllPages}]:o),[h,o,c]);return Object.assign(Object.assign({},e),{onClosePanel:p,allPagesIsAvailable:h,menuItems:f,panelItems:g,size:t,onItemClick:m})},$t=r.forwardRef(((e,t)=>{const{size:n,compact:i}=k(),o=Kt(Object.assign({size:n,compact:i},e));return r.createElement(C,{value:o},r.createElement(qt,{ref:t}))}));$t.displayName="PageLayoutAside";const Xt=r.forwardRef(((e,t)=>{var{compact:n,className:i,topAlert:o}=e,s=v(e,["compact","className","topAlert"]);return r.createElement(A,{compact:n,className:i,topAlert:o},r.createElement($t,Object.assign({ref:t},s)),r.createElement(A.Content,{renderContent:s.renderContent}))}));Xt.displayName="AsideHeader";M(".gn-footer-item{height:40px;width:100%}");const Jt=R("footer-item"),Qt=e=>{var{item:t}=e,n=v(e,["item"]);return r.createElement(Ve,Object.assign({},n,{item:Object.assign({iconSize:18},t),className:Jt({compact:n.compact}),onItemClick:t.onItemClick,onItemClickCapture:t.onItemClickCapture}))};M(".gn-action-bar-group{align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;margin:0;padding:0}.gn-action-bar-group_pull_left{justify-content:flex-start;margin-left:0;margin-right:auto}.gn-action-bar-group_pull_left-grow{flex-grow:1}.gn-action-bar-group_pull_right{justify-content:flex-end;margin-left:auto;margin-right:0}.gn-action-bar-group_pull_right-grow{flex-grow:1}.gn-action-bar-group_pull_center{justify-content:center;margin-left:auto;margin-right:auto}.gn-action-bar-group_pull_center-grow,.gn-action-bar-group_stretch-container{flex-grow:1}");const en=R("action-bar-group"),tn=({children:e,className:t,pull:n,stretchContainer:i})=>r.createElement("ul",{className:en({pull:n,"stretch-container":i},t),role:"group"},e);tn.displayName="ActionBar.Group";M(".gn-action-bar-item{list-style:none;margin:0;padding:0}.gn-action-bar-item_pull_left{justify-content:flex-start;margin-left:0;margin-right:auto}.gn-action-bar-item_pull_left-grow{flex-grow:1}.gn-action-bar-item_pull_right{justify-content:flex-end;margin-left:auto;margin-right:0}.gn-action-bar-item_pull_right-grow{flex-grow:1}.gn-action-bar-item_pull_center{justify-content:center;margin-left:auto;margin-right:auto}.gn-action-bar-item_pull_center-grow{flex-grow:1}.gn-action-bar-item+.gn-action-bar-item_spacing{margin-left:8px}");const nn=R("action-bar-item"),rn=({children:e,className:t,pull:n,spacing:i=!0})=>r.createElement("li",{className:nn({pull:n,spacing:i},t),role:"menuitem"},e);rn.displayName="ActionBar.Item";M(".gn-action-bar-section{align-items:stretch;display:flex;flex-flow:row nowrap;justify-content:flex-start}.gn-action-bar-section+.gn-action-bar-section{border-left:1px solid var(--g-color-line-generic)}.gn-action-bar-section_type_primary{flex:1 1 auto;padding-left:20px;padding-right:20px}.gn-action-bar-section_type_secondary{padding-left:6px;padding-right:6px}");const on=R("action-bar-section"),sn=({children:e,type:t="primary"})=>r.createElement("div",{className:on({type:t}),role:"menu"},e);sn.displayName="ActionBar.Section";M(".gn-action-bar-separator{border-right:1px solid var(--g-color-line-generic);height:40px;list-style:none;margin:0 6px;padding:0}");const an=R("action-bar-separator"),ln=()=>r.createElement("li",{role:"separator",className:an(),"aria-hidden":!0});ln.displayName="ActionBar.Separator";M(".gn-action-bar{align-items:stretch;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;flex-flow:row nowrap;height:40px;justify-content:flex-start}");const cn=R("action-bar"),un=({children:e,className:t,"aria-label":n})=>r.createElement("section",{className:cn(null,t),"aria-label":n},e);un.displayName="ActionBar";Object.assign(un,{Section:sn,Group:tn,Item:rn,Separator:ln});var dn={button_close:"Close"},hn={button_close:"Закрыть"};var pn=(0,p.e)({en:dn,ru:hn},`${N}Title`);M(".gn-title{align-items:center;box-sizing:border-box;display:flex;justify-content:space-between;min-height:64px;padding:14px 10px 14px 20px}.gn-title_separator{border-bottom:1px solid var(--g-color-line-generic)}.gn-title__text{margin:0 20px 0 0}");const mn=R("title"),fn=({children:e,closeIconSize:t=23,hasSeparator:n,closeTitle:i=pn("button_close"),onClose:s})=>r.createElement("div",{className:mn({separator:n})},r.createElement(o.Text,{className:mn("text"),as:"h3",variant:"subheader-3"},e),s&&r.createElement(o.Button,{onClick:s,view:"flat",size:"l","aria-label":i},r.createElement(o.Icon,{data:u.Z,size:t})));fn.displayName="Title";M(".gn-hotkeys-panel{--hotkeys-panel-width:400px;--hotkeys-panel-vertical-padding:18px;--hotkeys-panel-horizontal-padding:24px;inset:0;position:fixed}.gn-hotkeys-panel__drawer-item{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--hotkeys-panel-vertical-padding) 0;width:var(--hotkeys-panel-width)}.gn-hotkeys-panel__title{margin:0 var(--hotkeys-panel-horizontal-padding) 16px var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__search{box-sizing:border-box;margin-bottom:14px;padding:0 var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__list{flex:1;overflow-y:auto}.gn-hotkeys-panel__item{height:auto;padding:8px var(--hotkeys-panel-horizontal-padding)}.gn-hotkeys-panel__item.g-list__item_active{background:inherit}.gn-hotkeys-panel__item-content{align-items:baseline;color:var(--g-color-text-primary);display:flex;font-size:var(--g-text-body-1-font-size);justify-content:space-between;line-height:var(--g-text-body-1-line-height);width:100%}.gn-hotkeys-panel__item-content_group{font-size:var(--g-text-body-2-font-size);font-weight:500;line-height:var(--g-text-body-2-line-height)}.gn-hotkeys-panel__hotkey{color:var(--g-color-text-complementary)}");R("hotkeys-panel");var gn,vn;var bn=_e(vn?gn:(vn=1,gn=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0})),yn={label_title:"Settings","label_filter-placeholder":"Search settings","label_empty-placeholder":"No results found",label_search:"Search","label_all-results":"All results"},wn={label_title:"Настройки","label_filter-placeholder":"Найти настройки","label_empty-placeholder":"Ничего не найдено",label_search:"Поиск","label_all-results":"Все результаты"};var xn=(0,p.e)({en:yn,ru:wn},`${N}Settings`);const Cn="allSearchResults",_n=xn("label_all-results");function En(e){const{menu:t,pages:n}=e,r=function(e){return e.filter((e=>!("id"in e)||e.id!==Cn))}(t),i=Object.values(n);return Object.assign(Object.assign({},e),{menu:[{id:Cn,title:_n,icon:{data:d.Z}},...r],pages:Object.assign(Object.assign({},n),{[Cn]:Sn(i,r)})})}function Sn(e,t){const n={};for(const e of t)if("items"in e)for(const t of e.items)n[t.id]=[e.groupTitle,t.title];else n[e.id]=[e.title];return{id:Cn,sections:Object.values(e).map((e=>e.sections.map((t=>{var r;const i=null!==(r=n[e.id])&&void 0!==r?r:[],o=bn(i),s=i.join(" / ");return Object.assign(Object.assign({},t),{title:t.title===o?s:`${s} / ${t.title}`})})))).flat()}}function kn(e){const t=r.useRef();return r.useEffect((()=>(t.current=e,()=>{t.current=void 0})),[e]),r.useCallback(((...e)=>{if("function"==typeof t.current)return t.current(...e)}),[])}function Nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rn(e,t=""){const n=Nn(t).replace(/\s+/g,".*?"),r=In(e,"",new RegExp(n,"i"));return Boolean(n)&&r.menu.length>0?En(r):r}function In(e,t="",n){const i=[],o={};let s=!1,a=!1;return r.Children.forEach(e,(e=>{var l,c;if(r.isValidElement(e))if(e.type===r.Fragment){const{menu:r,pages:s}=In(e.props.children,t,n);i.push(...r),Object.assign(o,s)}else if(e.props.groupTitle){0;const r=`${t}/${null!==(l=e.props.id)&&void 0!==l?l:e.props.groupTitle}`;s=!0;const{menu:a,pages:c}=In(e.props.children,r,n);0,a.length>0&&i.push({groupTitle:e.props.groupTitle,items:a}),Object.assign(o,c)}else{a=!0;const r=`${t}/${null!==(c=e.props.id)&&void 0!==c?c:e.props.title}`;0,o[r]=Mn(e.props.children,n),o[r].id=r,o[r].hidden||i.push({id:r,title:e.props.title,icon:e.props.icon,withBadge:o[r].withBadge,disabled:o[r].hidden})}})),{menu:i,pages:o}}function Mn(e,t){const n={id:"",sections:[],hidden:!0};return r.Children.forEach(e,(e=>{if(r.isValidElement(e))if(e.type===r.Fragment){const{sections:r,withBadge:i,hidden:o}=Mn(e.props.children,t);n.sections.push(...r),n.withBadge=i||n.withBadge,n.hidden=o&&n.hidden}else{const{withBadge:r}=e.props,{items:i,hidden:o}=Tn(e.props.children,t);n.withBadge=r||n.withBadge,n.hidden=o&&n.hidden,n.sections.push(Object.assign(Object.assign({},e.props),{withBadge:r,items:i,hidden:o}))}})),n}function Tn(e,t){let n=!0;const i=[];return r.Children.forEach(e,(e=>{if(r.isValidElement(e))if(e.type===r.Fragment){const r=Tn(e.props.children,t);i.push(...r.items),n=n&&r.hidden}else{const r=Object.assign(Object.assign({},e.props),{element:e,hidden:!t.test(e.props.title)});i.push(r),n=n&&r.hidden}})),{items:i,hidden:n}}const An=r.createContext({});function On(e,t){const n=r.useRef(null);return r.useMemo((()=>t?Object.assign({selectedRef:n},function(e,t){if(!t.settingId&&!t.section&&!t.page)return{};for(const n of Object.values(e)){if(!t.settingId&&!t.section){if(t.page!==n.id)continue;return{page:n}}for(const e of n.sections)if(t.settingId){for(const r of e.items)if(r.id===t.settingId)return{page:n,section:e,setting:r}}else if(t.section&&("id"in t.section?t.section.id===e.id:t.section.title===e.title))return{page:n,section:e}}return{}}(e,t)):{selectedRef:n}),[e,t])}An.displayName="SettingsSelectionContext";const zn=An.Provider;var Dn,jn;var Pn=_e(jn?Dn:(jn=1,Dn=function(e){return e}));M('.gn-settings-menu__group-heading{display:inline-block;font-weight:var(--g-text-accent-font-weight);line-height:18px;margin-bottom:12px;padding:0 20px}.gn-settings-menu__group+.gn-settings-menu__group{margin-top:24px}.gn-settings-menu__item+.gn-settings-menu__group{margin-top:8px}.gn-settings-menu__item{align-items:center;color:var(--g-color-text-primary);cursor:pointer;display:flex;height:40px;padding:0 20px}.gn-settings-menu__item-icon{color:var(--g-color-text-misc);margin-right:5px}.gn-settings-menu__item:hover,.gn-settings-menu__item_focused{background:var(--g-color-base-simple-hover)}.gn-settings-menu__item_selected{background:var(--g-color-base-selection)}.gn-settings-menu__item_selected.gn-settings-menu__item_focused,.gn-settings-menu__item_selected:hover{background:var(--g-color-base-selection-hover)}.gn-settings-menu__item_disabled{color:var(--g-color-text-secondary);cursor:auto}.gn-settings-menu__item_disabled:hover{background:none}.gn-settings-menu__item_disabled .gn-settings-menu__item-icon{color:var(--g-color-base-misc-heavy)}.gn-settings-menu__item_badge{position:relative}.gn-settings-menu__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:9px;top:calc(50% - 3px);width:6px}');const Ln=R("settings-menu"),Fn=r.forwardRef((function({items:e,onChange:t,activeItemId:n},i){const[o,s]=r.useState(),a=r.useRef(null),l=kn(t),c=function(e){const t=r.useRef(e);return t.current=e,r.useCallback((()=>t.current),[])}(o);return r.useImperativeHandle(i,(()=>({handleKeyDown(e){if(!a.current)return!1;const t=c();return t&&"Enter"===e.key?(l(t),!0):"ArrowDown"===e.key?(s(Un(a.current,t,1)),!0):"ArrowUp"===e.key&&(s(Un(a.current,t,-1)),!0)},clearFocus(){s(void 0)}})),[c,l]),r.createElement("div",{ref:a,className:Ln()},e.map((e=>"groupTitle"in e?r.createElement("div",{key:e.groupTitle,className:Ln("group")},r.createElement("span",{className:Ln("group-heading")},e.groupTitle),e.items.map((e=>Bn(e,t,n,o)))):Bn(e,t,n,o))))}));function Bn(e,t,n,i){return r.createElement("span",{key:e.title,className:Ln("item",{selected:n===e.id,disabled:e.disabled,focused:i===e.id,badge:e.withBadge}),onClick:()=>{e.disabled||t(e.id)},"data-id":e.id},e.icon?r.createElement(o.Icon,Object.assign({size:16},e.icon,{className:Ln("item-icon")})):void 0,r.createElement("span",null,e.title))}function Un(e,t,n){var r;const i=e.querySelectorAll(`.${Ln("item")}:not(.${Ln("item")}_disabled)`);if(0===i.length)return;let o=n>0?-1:0;return t&&(o=Array.prototype.findIndex.call(i,(e=>e.getAttribute("data-id")===t))),o=(i.length+o+n)%i.length,null!==(r=i[o].getAttribute("data-id"))&&void 0!==r?r:void 0}M('.gn-settings-menu-mobile.g-tabs_direction_horizontal{-ms-overflow-style:none;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:none;scrollbar-width:none}.gn-settings-menu-mobile.g-tabs_direction_horizontal::-webkit-scrollbar{display:none}.gn-settings-menu-mobile__item_badge{position:relative}.gn-settings-menu-mobile__item_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:11px;width:6px}');const Wn=R("settings-menu-mobile"),Vn=({items:e,onChange:t,activeItemId:n,className:i})=>{const o=r.useRef(null),s=r.useMemo((()=>{const t=[];return e.forEach((e=>{if("groupTitle"in e)t.push(...e.items.map((({id:e,title:t,disabled:n,withBadge:r})=>({id:e,title:t,disabled:n,className:Wn("item",{badge:r})}))));else{const{id:n,title:r,disabled:i,withBadge:o}=e;t.push({id:n,title:r,disabled:i,className:Wn("item",{badge:o})})}})),t}),[e]);return r.createElement("div",{ref:o,onTouchMove:e=>{e.stopPropagation()}},r.createElement(g.mQ,{items:s,className:Wn(null,i),size:"l",activeTab:n,onSelectTab:t}))},Hn=R("settings-search");function Gn({className:e,initialValue:t,onChange:n,debounce:i=200,inputRef:s,inputSize:a,placeholder:l,autoFocus:c=!0,selection:u}){const[d,h]=r.useState(null!=t?t:""),p=Me(n,i),m=kn((e=>{h(e),p(e)}));return(0,r.useEffect)((()=>{d&&u&&(p.cancel(),h(""),n(""))}),[u]),r.createElement("div",{className:Hn(null,e)},r.createElement(o.TextInput,{value:d,controlRef:s,hasClear:!0,autoFocus:c,size:a,placeholder:l,onUpdate:m,controlProps:{"aria-label":xn("label_search")}}))}M('.gn-settings{display:grid;grid-template-columns:216px 1fr;height:100%;width:834px}.gn-settings_view_mobile{display:block;height:calc(80vh - 56px);overflow-x:hidden;width:auto}@supports (height:90dvh){.gn-settings_view_mobile{height:calc(90dvh - 56px)}}.gn-settings_view_mobile.gn-settings_loading{text-align:center}.gn-settings_view_mobile .gn-settings__loader{margin-top:20px}.gn-settings_view_mobile .gn-settings__search{margin:4px 0 16px;padding:0 20px}.gn-settings_view_mobile .gn-settings__page{overflow-y:visible}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:first-child{margin-left:20px}.gn-settings_view_mobile .gn-settings__tabs .g-tabs__item:last-child{margin-right:20px}.gn-settings_view_mobile .gn-settings__section-heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-3-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-3-line-height)}.gn-settings_view_mobile .gn-settings__section-subheader{color:var(--g-color-text-secondary)}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings-subheader{margin-top:8px}.gn-settings_view_mobile .gn-settings__section-item{margin-top:0}.gn-settings_view_mobile .gn-settings__section-heading+.gn-settings__section-item,.gn-settings_view_mobile .gn-settings__section-subheader+.gn-settings__section-item{margin-top:30px}.gn-settings_view_mobile .gn-settings__section-item+.gn-settings__section-item{margin-top:22px}.gn-settings_view_mobile .gn-settings__item:not(.gn-settings_view_mobile .gn-settings__item_mode_row){gap:8px;grid-template-columns:1fr}.gn-settings_view_mobile .gn-settings__item-heading{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height)}.gn-settings_view_mobile .gn-settings__item-description{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height)}.gn-settings_view_mobile .gn-settings__item_mode_row{grid-template-columns:1fr auto}.gn-settings_view_mobile .gn-settings__item_mode_row .gn-settings__item-heading{padding-right:20px}.gn-settings_view_mobile .gn-settings__item-content{width:100%}.gn-settings_view_mobile .gn-settings__not-found{color:var(--g-color-text-hint);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);justify-items:start;line-height:var(--g-text-body-2-line-height);margin:20px 0 0 20px}.gn-settings_loading{grid-template-columns:auto}.gn-settings__loader{place-self:center}.gn-settings__not-found{display:grid;height:100%;place-items:center}.gn-settings__menu{border-right:1px solid var(--g-color-line-generic)}.gn-settings__heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:20px 20px 0}.gn-settings__search{margin:0 20px 16px}.gn-settings__page{overflow-y:auto}.gn-settings__content{padding:20px}.gn-settings__section-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__section-heading:hover .gn-settings__section-right-adornment_hidden{opacity:1}.gn-settings__section-heading{font-family:var(--g-text-subheader-font-family);font-size:var(--g-text-subheader-2-font-size);font-weight:var(--g-text-subheader-font-weight);line-height:var(--g-text-subheader-2-line-height);margin:0}.gn-settings__section-item{margin-top:24px}.gn-settings__section+.gn-settings__section{margin-top:32px}.gn-settings__section:only-child .gn-settings__section-item:first-of-type{margin-top:0}.gn-settings__section:only-child .gn-settings__section-heading{display:none}.gn-settings__item{display:grid;grid-template-columns:216px 1fr;justify-items:start}.gn-settings__item_align_top{align-items:start}.gn-settings__item_align_center{align-items:center}.gn-settings__item-title_badge{position:relative}.gn-settings__item-title_badge:after{background-color:var(--g-color-text-danger);border-radius:50%;content:"";display:block;height:6px;position:absolute;right:-8px;top:1px;width:6px}.gn-settings__item-description{color:var(--g-color-text-secondary);display:block;font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);margin-top:2px;padding-right:20px}.gn-settings__item-right-adornment_hidden{opacity:0;transition:opacity .2s}.gn-settings__item:hover .gn-settings__item-right-adornment_hidden{opacity:1}.gn-settings__item_selected,.gn-settings__section_selected{background:var(--g-color-base-selection);border-radius:8px;margin-left:-8px;padding:8px}.gn-settings__found{background:var(--g-color-base-selection);font-weight:var(--g-text-accent-font-weight)}');const qn=R("settings"),Yn=r.createContext({}),Zn=()=>r.useContext(Yn);function Kn(e){var{loading:t,renderLoading:n,children:i,view:s="normal",renderRightAdornment:a,renderSectionRightAdornment:l,showRightAdornmentOnHover:c=!0}=e,u=v(e,["loading","renderLoading","children","view","renderRightAdornment","renderSectionRightAdornment","showRightAdornmentOnHover"]);return t?r.createElement("div",{className:qn({loading:!0,view:s})},"function"==typeof n?n():r.createElement(o.Loader,{className:qn("loader"),size:"m"})):r.createElement(Yn.Provider,{value:{renderRightAdornment:a,renderSectionRightAdornment:l,showRightAdornmentOnHover:c}},r.createElement(Xn,Object.assign({view:s},u),i))}const $n=(e,t)=>{for(const n of e)if("groupTitle"in n){for(const e of n.items)if(e.id===t)return e.title}else if(n.id===t)return n.title;return""};function Xn({initialPage:e,initialSearch:t,selection:n,children:i,renderNotFound:s,title:a=xn("label_title"),filterPlaceholder:l=xn("label_filter-placeholder"),emptyPlaceholder:c=xn("label_empty-placeholder"),view:u,onPageChange:d,onClose:h}){var p;const{renderSectionRightAdornment:m,showRightAdornmentOnHover:f}=Zn(),[g,v]=r.useState(null!=t?t:""),{menu:b,pages:y}=Rn(i,g),w=On(y,n),x=Object.keys(y),C=w.page&&x.includes(w.page.id)?w.page.id:void 0,[_,E]=r.useState(C||(e&&x.includes(e)?e:void 0)),S=r.useRef(null),k=r.useRef(null),N="mobile"===u;r.useEffect((()=>{var e;null===(e=k.current)||void 0===e||e.clearFocus()}),[g]),r.useEffect((()=>{const e=()=>{var e;null===(e=k.current)||void 0===e||e.clearFocus()};return window.addEventListener("click",e),()=>{window.removeEventListener("click",e)}}),[]);let R=_;R&&y[R]&&!y[R].hidden||(R=null===(p=Object.values(y).find((({hidden:e})=>!e)))||void 0===p?void 0:p.id);const I=e=>{E((t=>(t===e||M(e)||null==d||d(e),e)))},{isAllSearchPage:M}=function({pages:e,handlePageChange:t}){const n=e[Cn],i=Boolean(n);return r.useEffect((()=>{i&&t(Cn)}),[i]),{isAllSearchPage:e=>e===Cn}}({pages:y,handlePageChange:I});r.useEffect((()=>{R!==_&&I(R)})),r.useEffect((()=>{C&&E(C)}),[C]),r.useEffect((()=>{var e;(null===(e=w.selectedRef)||void 0===e?void 0:e.current)&&w.selectedRef.current.scrollIntoView()}),[w.selectedRef]);const T=(e,t)=>{const n=function(e,t,n){var r;return!(!e.section||e.setting||(!e.section.id||e.section.id!==n.id)&&((null===(r=e.page)||void 0===r?void 0:r.id)!==t||!e.section.title||e.section.title!==n.title))}(w,e,t);return r.createElement("div",{key:t.title,className:qn("section",{selected:n}),ref:n?w.selectedRef:void 0},t.title&&!t.hideTitle&&r.createElement("h3",{className:qn("section-heading")},m?r.createElement(o.Flex,{gap:2,alignItems:"center"},t.title,r.createElement("div",{className:qn("section-right-adornment",{hidden:f})},m(t))):t.title),t.header&&(N?r.createElement("div",{className:qn("section-subheader")},t.header):t.header),t.items.map((e=>e.hidden?null:(({title:e,element:t})=>r.createElement("div",{key:e,className:qn("section-item")},r.cloneElement(t,Object.assign(Object.assign({},t.props),{highlightedTitle:g&&e?Jn(e,g):e}))))(e))))};return r.createElement(zn,{value:w},r.createElement("div",{className:qn({view:u})},N?r.createElement(r.Fragment,null,r.createElement(Gn,{inputRef:S,className:qn("search"),initialValue:t,selection:n,onChange:v,autoFocus:!1,inputSize:"xl"}),r.createElement(Vn,{items:b,onChange:I,activeItemId:R,className:qn("tabs")})):r.createElement("div",{className:qn("menu"),onClick:()=>{S.current&&S.current.focus()},onKeyDown:e=>{k.current&&k.current.handleKeyDown(e)&&e.preventDefault()}},r.createElement(fn,null,a),r.createElement(Gn,{inputRef:S,className:qn("search"),initialValue:t,selection:n,onChange:v,placeholder:l,autoFocus:!0}),r.createElement(Fn,{ref:k,items:b,onChange:I,activeItemId:R})),r.createElement("div",{className:qn("page")},(e=>{if(!e)return"function"==typeof s?s():r.createElement("div",{className:qn("not-found")},c);const t=y[e].sections.filter((e=>!e.hidden));return r.createElement(r.Fragment,null,!N&&r.createElement(fn,{hasSeparator:!0,onClose:h},$n(b,e)),r.createElement("div",{className:qn("content")},t.map((t=>T(e,t)))))})(R))))}function Jn(e,t){let n=e.slice(0);const i=[],o=Nn(t).split(" ").filter(Boolean);let s=0;for(const e of o){const t=new RegExp(e,"ig").exec(n);if(t){const e=t[0],o=t.index;o>0&&i.push(n.slice(0,o)),i.push(r.createElement("strong",{key:s++,className:qn("found")},e)),n=n.slice(o+e.length)}}return n&&i.push(n),i}Kn.Group=function({children:e}){return r.createElement(r.Fragment,null,e)},Kn.Page=function({children:e}){return r.createElement(r.Fragment,null,e)},Kn.Section=function({children:e}){return r.createElement(r.Fragment,null,e)},Kn.Item=function(e){const{id:t,labelId:n,highlightedTitle:i,children:s,align:a="center",withBadge:l,renderTitleComponent:c=Pn,mode:u,description:d}=e,h=r.useContext(An),p=h.setting&&h.setting.id===t,{renderRightAdornment:m,showRightAdornmentOnHover:f}=Zn(),g=r.createElement("span",{className:qn("item-title",{badge:l})},c(i));return r.createElement("div",{className:qn("item",{align:a,mode:u,selected:p}),ref:p?h.selectedRef:void 0},r.createElement("label",{className:qn("item-heading"),id:n},m?r.createElement(o.Flex,{className:qn("item-title-wrapper"),gap:3},g,r.createElement("div",{className:qn("item-right-adornment",{hidden:f})},m(e))):g,d?r.createElement("span",{className:qn("item-description")},d):null),r.createElement("div",{className:qn("item-content")},s))};M(".gn-mobile-logo{align-items:center;display:flex;gap:var(--g-spacing-2);overflow:hidden}.gn-mobile-logo:is(a),.gn-mobile-logo:is(a):active,.gn-mobile-logo:is(a):focus,.gn-mobile-logo:is(a):hover,.gn-mobile-logo:is(a):visited{color:var(--g-color-text-primary);outline:none;text-decoration:none}.gn-mobile-logo__icon{flex-shrink:0}.gn-mobile-logo__title{font-family:var(--g-text-header-font-family);font-size:var(--g-text-header-1-font-size);font-weight:var(--g-text-header-font-weight);line-height:var(--g-text-header-1-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");const Qn=R("mobile-logo"),er=({text:e,compact:t,icon:n,iconSrc:i,iconClassName:s,iconSize:a=32,textSize:l=20,href:c="/",target:u="_self",wrapper:d,onClick:h,className:p})=>{const m="function"==typeof d;let f,g;i?f=r.createElement("img",{alt:"logo icon",src:i,width:a,height:a,className:s}):n&&(f=r.createElement(o.Icon,{data:n,size:a,className:Qn("icon",s)})),g="function"==typeof e?e():r.createElement("span",{className:Qn("title"),style:{fontSize:l}},e);const v=r.createElement(r.Fragment,null,f,g);return m?r.createElement("div",{className:Qn(null,p),onClick:h},d(v,t)):r.createElement("a",{href:c,target:u,ref:"_self"===u?void 0:"noreferrer",className:Qn(null,p),onClick:h},v)};M('.gn-mobile-header-burger{background:none;border:none;color:inherit;cursor:pointer;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);outline:none;padding:0}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash,.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:after,.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:before{left:3px}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:before{transform:rotate(45deg)}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon:after{transform:rotate(-45deg)}.gn-mobile-header-burger_opened .gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash{opacity:0}.gn-mobile-header-burger__icon{display:flex;height:var(--mobile-header-icon-size);place-content:center;position:relative;width:var(--mobile-header-icon-size)}.gn-mobile-header-burger__icon:after,.gn-mobile-header-burger__icon:before{content:"";transform-origin:left center;transition:transform .2s,left .2s}.gn-mobile-header-burger__icon:before{top:2px}.gn-mobile-header-burger__icon:after{bottom:2px}.gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash,.gn-mobile-header-burger__icon:after,.gn-mobile-header-burger__icon:before{background-color:var(--g-color-text-primary);border-radius:1px;height:2px;left:0;position:absolute;width:100%}.gn-mobile-header-burger__icon .gn-mobile-header-burger__icon-dash{margin-top:-1px;top:50%;transition:opacity .2s}');const tr=R("mobile-header-burger"),nr=r.memo((({closeTitle:e,openTitle:t,opened:n,className:i,onClick:o})=>r.createElement("button",{className:tr({opened:n},i),onClick:o,"aria-label":n?e:t},r.createElement("span",{className:tr("icon")},r.createElement("span",{className:tr("icon-dash")})))));nr.displayName="Burger";const rr=20,ir="MOBILE_PANEL_CLOSE",or="MOBILE_PANEL_OPEN",sr="burger",ar="overlap",lr=e=>"divider"===e.type?1:48,cr=e=>{const t=e.findIndex((({current:e})=>Boolean(e)));return-1===t?void 0:t};M(".gn-burger-composite-bar{overflow-y:auto}.gn-burger-composite-bar__item{align-items:center;box-sizing:border-box;display:flex;flex-grow:1;height:100%;overflow:hidden;padding:4px 22px 4px 12px}.gn-burger-composite-bar__item-icon-place{align-items:center;display:flex;flex-shrink:0;justify-content:center;margin-right:8px;width:40px}.gn-burger-composite-bar .gn-burger-composite-bar__item-icon{color:var(--g-color-text-misc)}.gn-burger-composite-bar__item-title{font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-2-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-burger-composite-bar__link{align-items:center;display:flex;flex-grow:1;height:100%}.gn-burger-composite-bar__link,.gn-burger-composite-bar__link:active,.gn-burger-composite-bar__link:focus,.gn-burger-composite-bar__link:hover,.gn-burger-composite-bar__link:visited{color:inherit;outline:none;text-decoration:none}.gn-burger-composite-bar__menu-divider{border-top:1px solid var(--g-color-line-generic);flex-grow:1;margin:0}.gn-burger-composite-bar__root-menu-item.g-list__item_selected{background-color:var(--g-color-base-selection)}.gn-burger-composite-bar__root-menu-item:not(.g-list__item_selected).g-list__item_active{background:none}");const ur=R("burger-composite-bar"),dr=({item:e,onItemClick:t})=>{const{icon:n,type:i="regular",iconSize:s=rr}=e;if("divider"===i)return r.createElement("div",{className:ur("menu-divider")});const a=r.createElement("div",{className:ur("item",{type:i}),onClick:()=>{"function"==typeof e.onItemClick&&e.onItemClick(e),"regular"===i&&(null==t||t(e))}},r.createElement("div",{className:ur("item-icon-place")},n&&r.createElement(o.Icon,{data:n,size:s,className:ur("item-icon")})),r.createElement("div",{className:ur("item-title")},e.title));return"function"==typeof e.itemWrapper?e.itemWrapper(a,e):e.link?r.createElement("a",{href:e.link,className:ur("link")},a):a};dr.displayName="Item";const hr=r.memo((({items:e,onItemClick:t})=>r.createElement("nav",{className:ur()},r.createElement(o.List,{items:e,selectedItemIndex:cr(e),itemHeight:lr,itemClassName:ur("root-menu-item"),virtualized:!1,filterable:!1,sortable:!1,renderItem:e=>r.createElement(dr,{item:e,onItemClick:t})}))));hr.displayName="BurgerCompositeBar";M(".gn-mobile-header-burger-menu{display:flex;flex-direction:column;height:100%}.gn-mobile-header-burger-menu__footer{border-top:1px solid var(--g-color-base-generic);display:flex;margin-top:auto}");const pr=R("mobile-header-burger-menu"),mr=r.memo((({items:e=[],renderFooter:t,modalItem:n,className:i,onItemClick:s})=>{var a;return r.createElement("div",{className:pr(null,i)},n&&r.createElement(o.Sheet,{visible:n.visible,id:n.id,title:n.title,onClose:n.onClose,contentClassName:n.contentClassName,className:n.className},null===(a=n.renderContent)||void 0===a?void 0:a.call(n)),r.createElement(hr,{items:e,onItemClick:s}),t&&r.createElement("div",{className:pr("footer")},null==t?void 0:t()))}));mr.displayName="BurgerMenu";var fr={burger_button_close:"Close menu",burger_button_open:"Open menu",overlap_button_close:"Close"},gr={burger_button_close:"Закрыть меню",burger_button_open:"Открыть меню",overlap_button_close:"Закрыть"};var vr=(0,p.e)({en:fr,ru:gr},`${N}MobileHeader`);M(".gn-mobile-overlap-panel{inset:0;position:fixed}.gn-mobile-overlap-panel__drawer-item{box-sizing:border-box;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%}.gn-mobile-overlap-panel_action .gn-mobile-overlap-panel__title{padding-right:0}.gn-mobile-overlap-panel__close{margin-right:var(--g-spacing-1)}.gn-mobile-overlap-panel__action{margin-left:var(--g-spacing-1)}.gn-mobile-overlap-panel__action.g-button:hover:before,.gn-mobile-overlap-panel__close.g-button:hover:before{background-color:transparent}.gn-mobile-overlap-panel__title{display:inline-block;flex:1;justify-content:center;margin:0;padding-right:40px;text-align:center}.gn-mobile-overlap-panel__content{box-sizing:border-box;display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:0 var(--g-spacing-5)}.gn-mobile-overlap-panel__header{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--g-spacing-3);padding:var(--g-spacing-1) var(--g-spacing-3)}");const br=R("mobile-overlap-panel"),yr=({title:e,renderContent:t,className:n,onClose:i,action:s,closeTitle:a=vr("overlap_button_close"),visible:l,topOffset:c})=>r.createElement(Ht,{className:br("",{action:Boolean(s)},n),onVeilClick:i,onEscape:i,style:{top:c}},r.createElement(Vt,{id:"overlap",visible:l,className:br("drawer-item")},r.createElement("div",{className:br("header")},r.createElement(o.Button,{size:"l",view:"flat",className:br("close"),onClick:i,"aria-label":a},r.createElement(o.Icon,{className:br("icon"),data:h.Z,size:rr})),r.createElement(o.Text,{whiteSpace:"nowrap",ellipsis:!0,variant:"subheader-2",className:br("title"),as:e?"h2":void 0},e),s&&r.createElement(o.Button,{size:"l",type:"button",view:"flat",onClick:s.onClick,className:br("action"),"aria-label":s.title},r.createElement(o.Icon,{data:s.icon,size:rr}))),r.createElement("div",{className:br("content")},t())));M(".gn-mobile-header{--mobile-header-min-heigth:50px;--mobile-header-icon-size:20px;background-color:var(--g-color-base-background)}.gn-mobile-header__header-container{background-color:var(--g-color-base-background);position:sticky;top:0;z-index:var(--gn-mobile-header-z-index,100)}.gn-mobile-header__header{align-items:center;border-bottom:1px solid var(--g-color-line-generic);box-sizing:border-box;display:flex;justify-content:space-between;padding:0 10px}.gn-mobile-header__burger{padding:12px}.gn-mobile-header__panel-item{--gn-drawer-item-position:var(--gn-mobile-header-panel-position,absolute)}.gn-mobile-header__burger-menu,.gn-mobile-header__panel-item{background-color:var(--g-color-base-background);max-height:100%;max-width:90vw;width:320px}.gn-mobile-header__user-menu{overflow-y:auto}.gn-mobile-header__overlap-panel,.gn-mobile-header__panels{z-index:var(--gn-mobile-header-panel-z-index,98)}.gn-mobile-header__panels{inset:var(--mobile-header-min-heigth) 0 0;overflow:hidden;position:fixed}.gn-mobile-header__panel-item{top:unset}.gn-mobile-header__content{overflow:auto}");const wr=r.lazy((()=>n.e(641).then(n.bind(n,2641)).then((e=>({default:e.TopAlert}))))),xr=R("mobile-header");r.forwardRef((({logo:e,burgerMenu:t,burgerCloseTitle:n=vr("burger_button_close"),burgerOpenTitle:i=vr("burger_button_open"),panelItems:o=[],renderContent:s,sideItemRenderContent:a,onClosePanel:l,onEvent:c,className:u,contentClassName:d,overlapPanel:h,topAlert:p},m)=>{const f=((e,t=null)=>{const n=r.useRef(t);return r.useEffect((()=>{e&&("function"==typeof e?e(n.current):e.current=n.current)}),[e]),n})(m),[g]=(0,r.useState)(!0),[v,b]=(0,r.useState)(null),[w,x]=(0,r.useState)(!1),C=g?50:120,_=(0,r.useCallback)((e=>{e&&(b((t=>{const n=t===e;return null==c||c(e,n?ir:or),n?null:e})),x(!1))}),[c]),E=(0,r.useCallback)((({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&_(null==e?void 0:e.panelName)}),[_]),S=(0,r.useCallback)((({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&(null==c||c(null==e?void 0:e.panelName,or),b(null==e?void 0:e.panelName),x(!1))}),[c]),k=(0,r.useCallback)((({detail:e})=>{"string"==typeof(null==e?void 0:e.panelName)&&(null==c||c(null==e?void 0:e.panelName,ir),b(null),x(!1))}),[c]),N=(0,r.useCallback)((()=>{null==c||c(sr,or),b(sr)}),[c]),R=(0,r.useCallback)((()=>{null==c||c(sr,ir),b(null)}),[c]),I=(0,r.useCallback)((()=>{null==c||c(ar,or),x(!0)}),[c]),M=(0,r.useCallback)((()=>{null==c||c(ar,ir),x(!1)}),[c]),T=(0,r.useCallback)((()=>{v&&(null==c||c(v,ir)),b(null)}),[v,c]),A=(0,r.useCallback)((e=>{var t;(null===(t=e.closeMenuOnClick)||void 0===t||t)&&R()}),[R]),O=(0,r.useCallback)((()=>{var e;return null===(e=t.renderFooter)||void 0===e?void 0:e.call(t,{size:C,isCompact:g})}),[t,C,g]),z=(0,r.useCallback)((t=>{var n;null==l||l(),null===(n=e.onClick)||void 0===n||n.call(e,t)}),[e,l]),D=(0,r.useMemo)((()=>({id:sr,content:r.createElement(mr,{items:t.items,modalItem:t.modalItem,renderFooter:O,onItemClick:A,className:xr("burger-menu")})})),[t.items,t.modalItem,A,O]);return(0,r.useEffect)((()=>{const e=null==f?void 0:f.current;return e&&(e.addEventListener("MOBILE_BURGER_OPEN",N),e.addEventListener("MOBILE_BURGER_CLOSE",R),e.addEventListener("MOBILE_OVERLAP_PANEL_OPEN",I),e.addEventListener("MOBILE_OVERLAP_PANEL_CLOSE",M),e.addEventListener("MOBILE_PANEL_TOGGLE",E),e.addEventListener("MOBILE_PANEL_OPEN",S),e.addEventListener("MOBILE_PANEL_CLOSE",k)),()=>{e&&(e.removeEventListener("MOBILE_BURGER_OPEN",N),e.removeEventListener("MOBILE_BURGER_CLOSE",R),e.removeEventListener("MOBILE_OVERLAP_PANEL_OPEN",I),e.removeEventListener("MOBILE_OVERLAP_PANEL_CLOSE",M),e.removeEventListener("MOBILE_PANEL_TOGGLE",E),e.removeEventListener("MOBILE_PANEL_OPEN",S),e.removeEventListener("MOBILE_PANEL_CLOSE",k))}}),[f,R,N,E,S,k,I,M]),r.createElement("div",{className:xr({compact:g},u),ref:f},r.createElement("div",{className:xr("header-container")},p&&r.createElement(r.Suspense,{fallback:null},r.createElement(wr,{alert:p,mobileView:!0})),r.createElement("header",{className:xr("header"),style:{height:C}},r.createElement(nr,{opened:v===D.id,onClick:()=>_(sr),className:xr("burger"),closeTitle:n,openTitle:i}),r.createElement(er,Object.assign({},e,{compact:g,onClick:z})),r.createElement("div",{className:xr("side-item")},null==a?void 0:a({size:C})))),r.createElement(Ht,{className:xr("panels"),onVeilClick:T,onEscape:T,style:{top:`calc(${C}px + var(--gn-top-alert-height, 0px))`}},[D,...o].map((e=>r.createElement(Vt,Object.assign({},e,{key:e.id,visible:v===e.id,className:xr("panel-item",e.className)}))))),h&&r.createElement(yr,{topOffset:C,className:xr("overlap-panel"),title:h.title,onClose:M,action:h.action,visible:w,renderContent:h.renderContent}),r.createElement(y,{size:C,renderContent:s,className:xr("content",d),cssSizeVariableName:"--mobile-header-size"}))})).displayName="MobileHeader";M('.gn-mobile-header-footer-item{flex-grow:1;position:relative}.gn-mobile-header-footer-item__button{align-items:center;background:none;border:none;box-sizing:border-box;color:inherit;cursor:pointer;display:flex;font-family:var(--g-text-body-font-family);font-size:inherit;font-weight:var(--g-text-body-font-weight);justify-content:center;outline:none;padding:13px 10px;width:100%}.gn-mobile-header-footer-item .gn-mobile-header-footer-item__icon{color:var(--g-color-text-misc)}.gn-mobile-header-footer-item+.gn-mobile-header-footer-item:before{border-left:1px solid var(--g-color-base-generic);bottom:8px;content:"";left:0;position:absolute;top:8px}.gn-mobile-header-footer-item:empty{display:none}');R("mobile-header-footer-item");M(".gn-footer-menu-item{align-items:center;align-self:stretch;display:flex;height:100%;justify-content:center}.gn-footer-menu-item .g-menu__item-content{color:var(--g-color-text-secondary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gn-footer-menu-item[class]:hover{background-color:inherit}.gn-footer-menu-item[class]:hover[href] .g-menu__item-content{color:var(--g-color-text-link-hover)}");R("footer-menu-item");M(".gn-footer_desktop{align-items:center;background:var(--g-color-base-background);display:flex;gap:var(--g-spacing-6);height:40px;justify-content:flex-end;padding:0 var(--g-spacing-6) 0 var(--g-spacing-3)}.gn-footer_desktop .gn-footer__menu{align-items:center;align-self:stretch;display:flex;flex:1;min-width:0;visibility:hidden}.gn-footer_desktop .gn-footer__menu_measured{visibility:visible}.gn-footer_desktop .gn-footer__list[class]{background-color:inherit;display:flex;height:100%;padding:0}.gn-footer_desktop .gn-footer__more-button svg{color:var(--g-color-text-secondary)}.gn-footer_desktop .gn-footer__right{align-items:center;display:flex;gap:var(--g-spacing-5)}.gn-footer_desktop .gn-footer__copyright{color:var(--g-color-text-secondary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-1-font-size);font-weight:var(--g-text-body-font-weight);line-height:var(--g-text-body-1-line-height);white-space:nowrap}.gn-footer_desktop .gn-footer__copyright_small{font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height)}.gn-footer_with-divider{border-top:1px solid var(--g-color-line-generic)}.gn-footer_view_clear{background:transparent;z-index:-1}");R("footer");M(".gn-footer_mobile{background:var(--g-color-base-background);display:flex;flex-direction:column;padding:var(--g-spacing-1) var(--g-spacing-6) var(--g-spacing-3) var(--g-spacing-3)}.gn-footer_mobile .gn-footer_with-divider{border-top:1px solid var(--g-color-line-generic)}.gn-footer_mobile .gn-footer__menu{align-items:center;display:flex;justify-content:space-between;margin-bottom:var(--g-spacing-1);visibility:hidden}.gn-footer_mobile .gn-footer__menu_measured{visibility:visible}.gn-footer_mobile .gn-footer__list[class]{background-color:inherit;display:flex;padding:0}.gn-footer_mobile .gn-footer__menu-item{box-sizing:border-box;padding:var(--g-spacing-2) var(--g-spacing-3)}.gn-footer_mobile .gn-footer__bottom-row{align-items:center;display:flex;justify-content:space-between}.gn-footer_mobile .gn-footer__copyright{color:var(--g-color-text-secondary);font-family:var(--g-text-caption-font-family);font-size:var(--g-text-caption-2-font-size);font-weight:var(--g-text-caption-font-weight);line-height:var(--g-text-caption-2-line-height);padding:0 var(--g-spacing-3);white-space:nowrap}.gn-footer__modal .gn-footer__menu-item{color:var(--g-color-text-primary);font-family:var(--g-text-body-font-family);font-size:var(--g-text-body-2-font-size);font-weight:var(--g-text-body-font-weight);height:48px;line-height:var(--g-text-body-2-line-height)}.gn-footer_view_clear{background:transparent;z-index:-1}.gn-footer_view_clear .gn-footer__bottom-row{justify-content:flex-end}");R("footer")},16060:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;n.d(t,{J0:()=>a,LX:()=>R,RQ:()=>D,WK:()=>B,X3:()=>F,Zn:()=>M,aU:()=>i,cP:()=>h,cm:()=>O,fp:()=>f,pC:()=>z,q_:()=>s}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function s(e){return void 0===e&&(e={}),p((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=h(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),u("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:d(t))}),(function(e,t){l("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,n,i){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?h(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n,s){void 0===s&&(s={});let{window:l=document.defaultView,v5Compat:h=!1}=s,p=l.history,m=i.Pop,f=null,g=v();function v(){return(p.state||{idx:null}).idx}function b(){m=i.Pop;let e=v(),t=null==e?null:e-g;g=e,f&&f({action:m,location:w.location,delta:t})}function y(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,n="string"==typeof e?e:d(e);return n=n.replace(/ $/,"%20"),a(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,p.replaceState(r({},p.state,{idx:g}),""));let w={get action(){return m},get location(){return e(l,p)},listen(e){if(f)throw new Error("A history only accepts one active listener");return l.addEventListener(o,b),f=e,()=>{l.removeEventListener(o,b),f=null}},createHref:e=>t(l,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){m=i.Push;let r=u(w.location,e,t);n&&n(r,e),g=v()+1;let o=c(r,g),s=w.createHref(r);try{p.pushState(o,"",s)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(s)}h&&f&&f({action:m,location:w.location,delta:1})},replace:function(e,t){m=i.Replace;let r=u(w.location,e,t);n&&n(r,e),g=v();let o=c(r,g),s=w.createHref(r);p.replaceState(o,"",s),h&&f&&f({action:m,location:w.location,delta:0})},go:e=>p.go(e)};return w}var m;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(m||(m={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function f(e,t,n){return void 0===n&&(n="/"),g(e,t,n,!1)}function g(e,t,n,r){let i=M(("string"==typeof t?h(t):t).pathname||"/",n);if(null==i)return null;let o=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let s=null;for(let e=0;null==s&&e<o.length;++e){let t=I(i);s=N(o[e],t,r)}return s}function v(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(a(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let l=D([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),v(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:k(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of b(e.path))i(e,t,n);else i(e,t)})),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=b(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const y=/^:[\w-]+$/,w=3,x=2,C=1,_=10,E=-2,S=e=>"*"===e;function k(e,t){let n=e.split("/"),r=n.length;return n.some(S)&&(r+=E),t&&(r+=x),n.filter((e=>!S(e))).reduce(((e,t)=>e+(y.test(t)?w:""===t?C:_)),r)}function N(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let e=0;e<r.length;++e){let a=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=R({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},c),d=a.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=R({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),s.push({params:i,pathname:D([o,u.pathname]),pathnameBase:j(D([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=D([o,u.pathnameBase]))}return s}function R(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);l("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:s,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return l(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function T(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function A(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function O(e,t){let n=A(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function z(e,t,n,i){let o;void 0===i&&(i=!1),"string"==typeof e?o=h(e):(o=r({},e),a(!o.pathname||!o.pathname.includes("?"),T("?","pathname","search",o)),a(!o.pathname||!o.pathname.includes("#"),T("#","pathname","hash",o)),a(!o.search||!o.search.includes("#"),T("#","search","hash",o)));let s,l=""===e||""===o.pathname,c=l?"/":o.pathname;if(null==c)s=n;else{let e=t.length-1;if(!i&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}s=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?h(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:P(r),hash:L(i)}}(o,s),d=c&&"/"!==c&&c.endsWith("/"),p=(l||"."===c)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}const D=e=>e.join("/").replace(/\/\/+/g,"/"),j=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),P=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",L=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class F extends Error{}function B(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const U=["post","put","patch","delete"],W=(new Set(U),["get",...U]);new Set(W),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred")},23196:function(e,t,n){var r;!function(i){"use strict";function o(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function s(e,t,n,r,i,s){return o((a=o(o(t,e),o(r,s)))<<(l=i)|a>>>32-l,n);var a,l}function a(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function l(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function c(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function u(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function d(e,t){var n,r,i,s,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,p=-271733879,m=-1732584194,f=271733878;for(n=0;n<e.length;n+=16)r=h,i=p,s=m,d=f,h=a(h,p,m,f,e[n],7,-680876936),f=a(f,h,p,m,e[n+1],12,-389564586),m=a(m,f,h,p,e[n+2],17,606105819),p=a(p,m,f,h,e[n+3],22,-1044525330),h=a(h,p,m,f,e[n+4],7,-176418897),f=a(f,h,p,m,e[n+5],12,1200080426),m=a(m,f,h,p,e[n+6],17,-1473231341),p=a(p,m,f,h,e[n+7],22,-45705983),h=a(h,p,m,f,e[n+8],7,1770035416),f=a(f,h,p,m,e[n+9],12,-1958414417),m=a(m,f,h,p,e[n+10],17,-42063),p=a(p,m,f,h,e[n+11],22,-1990404162),h=a(h,p,m,f,e[n+12],7,1804603682),f=a(f,h,p,m,e[n+13],12,-40341101),m=a(m,f,h,p,e[n+14],17,-1502002290),h=l(h,p=a(p,m,f,h,e[n+15],22,1236535329),m,f,e[n+1],5,-165796510),f=l(f,h,p,m,e[n+6],9,-1069501632),m=l(m,f,h,p,e[n+11],14,643717713),p=l(p,m,f,h,e[n],20,-373897302),h=l(h,p,m,f,e[n+5],5,-701558691),f=l(f,h,p,m,e[n+10],9,38016083),m=l(m,f,h,p,e[n+15],14,-660478335),p=l(p,m,f,h,e[n+4],20,-405537848),h=l(h,p,m,f,e[n+9],5,568446438),f=l(f,h,p,m,e[n+14],9,-1019803690),m=l(m,f,h,p,e[n+3],14,-187363961),p=l(p,m,f,h,e[n+8],20,1163531501),h=l(h,p,m,f,e[n+13],5,-1444681467),f=l(f,h,p,m,e[n+2],9,-51403784),m=l(m,f,h,p,e[n+7],14,1735328473),h=c(h,p=l(p,m,f,h,e[n+12],20,-1926607734),m,f,e[n+5],4,-378558),f=c(f,h,p,m,e[n+8],11,-2022574463),m=c(m,f,h,p,e[n+11],16,1839030562),p=c(p,m,f,h,e[n+14],23,-35309556),h=c(h,p,m,f,e[n+1],4,-1530992060),f=c(f,h,p,m,e[n+4],11,1272893353),m=c(m,f,h,p,e[n+7],16,-155497632),p=c(p,m,f,h,e[n+10],23,-1094730640),h=c(h,p,m,f,e[n+13],4,681279174),f=c(f,h,p,m,e[n],11,-358537222),m=c(m,f,h,p,e[n+3],16,-722521979),p=c(p,m,f,h,e[n+6],23,76029189),h=c(h,p,m,f,e[n+9],4,-640364487),f=c(f,h,p,m,e[n+12],11,-421815835),m=c(m,f,h,p,e[n+15],16,530742520),h=u(h,p=c(p,m,f,h,e[n+2],23,-995338651),m,f,e[n],6,-198630844),f=u(f,h,p,m,e[n+7],10,1126891415),m=u(m,f,h,p,e[n+14],15,-1416354905),p=u(p,m,f,h,e[n+5],21,-57434055),h=u(h,p,m,f,e[n+12],6,1700485571),f=u(f,h,p,m,e[n+3],10,-1894986606),m=u(m,f,h,p,e[n+10],15,-1051523),p=u(p,m,f,h,e[n+1],21,-2054922799),h=u(h,p,m,f,e[n+8],6,1873313359),f=u(f,h,p,m,e[n+15],10,-30611744),m=u(m,f,h,p,e[n+6],15,-1560198380),p=u(p,m,f,h,e[n+13],21,1309151649),h=u(h,p,m,f,e[n+4],6,-145523070),f=u(f,h,p,m,e[n+11],10,-1120210379),m=u(m,f,h,p,e[n+2],15,718787259),p=u(p,m,f,h,e[n+9],21,-343485551),h=o(h,r),p=o(p,i),m=o(m,s),f=o(f,d);return[h,p,m,f]}function h(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function m(e){var t,n,r="0123456789abcdef",i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}function f(e){return unescape(encodeURIComponent(e))}function g(e){return function(e){return h(d(p(e),8*e.length))}(f(e))}function v(e,t){return function(e,t){var n,r,i=p(e),o=[],s=[];for(o[15]=s[15]=void 0,i.length>16&&(i=d(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],s[n]=1549556828^i[n];return r=d(o.concat(p(t)),512+8*t.length),h(d(s.concat(r),640))}(f(e),f(t))}function b(e,t,n){return t?n?v(t,e):m(v(t,e)):n?g(e):m(g(e))}void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}()},13824:(e,t,n)=>{"use strict";n.d(t,{Ri:()=>Q});var r={},i=Uint8Array,o=Uint16Array,s=Int32Array,a=new i([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),l=new i([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new i([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=function(e,t){for(var n=new o(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new s(n[30]);for(r=1;r<30;++r)for(var a=n[r];a<n[r+1];++a)i[a]=a-n[r]<<5|r;return{b:n,r:i}},d=u(a,2),h=d.b,p=d.r;h[28]=258,p[258]=28;for(var m=u(l,0),f=m.b,g=(m.r,new o(32768)),v=0;v<32768;++v){var b=(43690&v)>>1|(21845&v)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,g[v]=((65280&b)>>8|(255&b)<<8)>>1}var y=function(e,t,n){for(var r=e.length,i=0,s=new o(t);i<r;++i)e[i]&&++s[e[i]-1];var a,l=new o(t);for(i=1;i<t;++i)l[i]=l[i-1]+s[i-1]<<1;if(n){a=new o(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],d=t-e[i],h=l[e[i]-1]++<<d,p=h|(1<<d)-1;h<=p;++h)a[g[h]>>c]=u}else for(a=new o(r),i=0;i<r;++i)e[i]&&(a[i]=g[l[e[i]-1]++]>>15-e[i]);return a},w=new i(288);for(v=0;v<144;++v)w[v]=8;for(v=144;v<256;++v)w[v]=9;for(v=256;v<280;++v)w[v]=7;for(v=280;v<288;++v)w[v]=8;var x=new i(32);for(v=0;v<32;++v)x[v]=5;var C=y(w,9,1),_=y(x,5,1),E=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},S=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},k=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},N=function(e){return(e+7)/8|0},R=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new i(e.subarray(t,n))},I=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],M=function(e,t,n){var r=new Error(t||I[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,M),!n)throw r;return r},T=function(e,t,n,r){var o=e.length,s=r?r.length:0;if(!o||t.f&&!t.l)return n||new i(0);var u=!n,d=u||2!=t.i,p=t.i;u&&(n=new i(3*o));var m=function(e){var t=n.length;if(e>t){var r=new i(Math.max(2*t,e));r.set(n),n=r}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,x=t.d,I=t.m,T=t.n,A=8*o;do{if(!w){g=S(e,v,1);var O=S(e,v+1,3);if(v+=3,!O){var z=e[(G=N(v)+4)-4]|e[G-3]<<8,D=G+z;if(D>o){p&&M(0);break}d&&m(b+z),n.set(e.subarray(G,D),b),t.b=b+=z,t.p=v=8*D,t.f=g;continue}if(1==O)w=C,x=_,I=9,T=5;else if(2==O){var j=S(e,v,31)+257,P=S(e,v+10,15)+4,L=j+S(e,v+5,31)+1;v+=14;for(var F=new i(L),B=new i(19),U=0;U<P;++U)B[c[U]]=S(e,v+3*U,7);v+=3*P;var W=E(B),V=(1<<W)-1,H=y(B,W,1);for(U=0;U<L;){var G,q=H[S(e,v,V)];if(v+=15&q,(G=q>>4)<16)F[U++]=G;else{var Y=0,Z=0;for(16==G?(Z=3+S(e,v,3),v+=2,Y=F[U-1]):17==G?(Z=3+S(e,v,7),v+=3):18==G&&(Z=11+S(e,v,127),v+=7);Z--;)F[U++]=Y}}var K=F.subarray(0,j),$=F.subarray(j);I=E(K),T=E($),w=y(K,I,1),x=y($,T,1)}else M(1);if(v>A){p&&M(0);break}}d&&m(b+131072);for(var X=(1<<I)-1,J=(1<<T)-1,Q=v;;Q=v){var ee=(Y=w[k(e,v)&X])>>4;if((v+=15&Y)>A){p&&M(0);break}if(Y||M(2),ee<256)n[b++]=ee;else{if(256==ee){Q=v,w=null;break}var te=ee-254;if(ee>264){var ne=a[U=ee-257];te=S(e,v,(1<<ne)-1)+h[U],v+=ne}var re=x[k(e,v)&J],ie=re>>4;re||M(3),v+=15&re;$=f[ie];if(ie>3){ne=l[ie];$+=k(e,v)&(1<<ne)-1,v+=ne}if(v>A){p&&M(0);break}d&&m(b+131072);var oe=b+te;if(b<$){var se=s-$,ae=Math.min($,oe);for(se+b<0&&M(3);b<ae;++b)n[b]=r[se+b]}for(;b<oe;++b)n[b]=n[b-$]}}t.l=w,t.p=Q,t.b=b,t.f=g,w&&(g=1,t.m=I,t.d=x,t.n=T)}while(!g);return b!=n.length&&u?R(n,0,b):n.subarray(0,b)},A=new i(0),O=function(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n},z=function(e,t,n){for(var r=e(),i=e.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<r.length;++s){var a=r[s],l=o[s];if("function"==typeof a){t+=";"+l+"=";var c=a.toString();if(a.prototype)if(-1!=c.indexOf("[native code]")){var u=c.indexOf(" ",8)+1;t+=c.slice(u,c.indexOf("(",u))}else for(var d in t+=c,a.prototype)t+=";"+l+".prototype."+d+"="+a.prototype[d].toString();else t+=c}else n[l]=a}return t},D=[],j=function(e,t,n,i){if(!D[n]){for(var o="",s={},a=e.length-1,l=0;l<a;++l)o=z(e[l],o,s);D[n]={c:z(e[a],o,s),e:s}}var c=O({},D[n].e);return function(e,t,n,i,o){var s=new Worker(r[t]||(r[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(e){var t=e.data,n=t.$e$;if(n){var r=new Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,t)},s.postMessage(n,i),s}(D[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,c,function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t}(c),i)},P=function(){return[i,o,s,a,l,c,h,f,C,_,g,I,y,E,S,k,N,R,M,T,G,L,F]},L=function(e){return postMessage(e,[e.buffer])},F=function(e){return e&&{out:e.size&&new i(e.size),dictionary:e.dictionary}},B=function(e,t,n,r,i,o){var s=j(n,r,i,(function(e,t){s.terminate(),o(e,t)}));return s.postMessage([e,t],t.consume?[e.buffer]:[]),function(){s.terminate()}},U=function(e,t){return e[t]|e[t+1]<<8},W=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},V=function(e,t){return W(e,t)+4294967296*W(e,t+4)};function H(e,t,n){return n||(n=t,t={}),"function"!=typeof n&&M(7),B(e,t,[P],(function(e){return L(G(e.data[0],F(e.data[1])))}),1,n)}function G(e,t){return T(e,{i:2},t&&t.out,t&&t.dictionary)}var q="undefined"!=typeof TextDecoder&&new TextDecoder;try{q.decode(A,{stream:!0}),1}catch(e){}var Y=function(e){for(var t="",n=0;;){var r=e[n++],i=(r>127)+(r>223)+(r>239);if(n+i>e.length)return{s:t,r:R(e,n-1)};i?3==i?(r=((15&r)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536,t+=String.fromCharCode(55296|r>>10,56320|1023&r)):t+=1&i?String.fromCharCode((31&r)<<6|63&e[n++]):String.fromCharCode((15&r)<<12|(63&e[n++])<<6|63&e[n++]):t+=String.fromCharCode(r)}};function Z(e,t){if(t){for(var n="",r=0;r<e.length;r+=16384)n+=String.fromCharCode.apply(null,e.subarray(r,r+16384));return n}if(q)return q.decode(e);var i=Y(e),o=i.s;return(n=i.r).length&&M(8),o}var K=function(e,t){return t+30+U(e,t+26)+U(e,t+28)},$=function(e,t,n){var r=U(e,t+28),i=Z(e.subarray(t+46,t+46+r),!(2048&U(e,t+8))),o=t+46+r,s=W(e,t+20),a=n&&4294967295==s?X(e,o):[s,W(e,t+24),W(e,t+42)],l=a[0],c=a[1],u=a[2];return[U(e,t+10),l,c,i,o+U(e,t+30)+U(e,t+32),u]},X=function(e,t){for(;1!=U(e,t);t+=4+U(e,t+2));return[V(e,t+12),V(e,t+4),V(e,t+20)]};var J="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};function Q(e,t,n){n||(n=t,t={}),"function"!=typeof n&&M(7);var r=[],o=function(){for(var e=0;e<r.length;++e)r[e]()},s={},a=function(e,t){J((function(){n(e,t)}))};J((function(){a=n}));for(var l=e.length-22;101010256!=W(e,l);--l)if(!l||e.length-l>65558)return a(M(13,0,1),null),o;var c=U(e,l+8);if(c){var u=c,d=W(e,l+16),h=4294967295==d||65535==u;if(h){var p=W(e,l-12);(h=101075792==W(e,p))&&(u=c=W(e,p+32),d=W(e,p+48))}for(var m=t&&t.filter,f=function(t){var n=$(e,d,h),l=n[0],u=n[1],p=n[2],f=n[3],g=n[4],v=n[5],b=K(e,v);d=g;var y=function(e,t){e?(o(),a(e,null)):(t&&(s[f]=t),--c||a(null,s))};if(!m||m({name:f,size:u,originalSize:p,compression:l}))if(l)if(8==l){var w=e.subarray(b,b+u);if(p<524288||u>.8*p)try{y(null,G(w,{out:new i(p)}))}catch(e){y(e,null)}else r.push(H(w,{size:p},y))}else y(M(14,"unknown compression type "+l,1),null);else y(null,R(e,b,b+u));else y(null,null)},g=0;g<u;++g)f()}else a(null,{});return o}},73463:(e,t,n)=>{"use strict";var r=n(48570),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var i=p(n);i&&i!==m&&e(t,i,r)}var s=u(n);d&&(s=s.concat(d(n)));for(var a=l(t),f=l(n),g=0;g<s.length;++g){var v=s[g];if(!(o[v]||r&&r[v]||f&&f[v]||a&&a[v])){var b=h(n,v);try{c(t,v,b)}catch(e){}}}}return t}},5809:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},17335:(e,t,n)=>{var r=n(85246),i=n(62034),o=n(36060),s=n(93746),a=o((function(e,t){return s(e)?r(e,i(t,1,s,!0)):[]}));e.exports=a},72579:(e,t,n)=>{var r=n(13324);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},3440:(e,t,n)=>{var r=n(13940),i=n(36740),o=Object.prototype.hasOwnProperty,s=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=s},85505:(e,t,n)=>{var r=n(53366),i=n(86152),o=n(15125);e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&"[object String]"==r(e)}},56974:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30733:(e,t,n)=>{var r=n(96738);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},62349:(e,t,n)=>{var r=n(5809),i=n(82406),o=n(5707),s=parseFloat,a=Math.min,l=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&i(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=o(e),void 0===t?(t=e,e=0):t=o(t)),e>t){var c=e;e=t,t=c}if(n||e%1||t%1){var u=l();return a(e+u*(t-e+s("1e-"+((u+"").length-1))),t)}return r(e,t)}},26139:(e,t,n)=>{var r=n(62034),i=n(36060),o=n(67326),s=n(93746),a=i((function(e){return o(r(e,1,s,!0))}));e.exports=a},75652:(e,t,n)=>{var r=n(67326);e.exports=function(e){return e&&e.length?r(e):[]}},67304:(e,t,n)=>{var r=n(85246),i=n(36060),o=n(93746),s=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=s},19456:(e,t,n)=>{"use strict";const r=n(10161);class i{constructor(){this._queue=[]}enqueue(e,t){const n={priority:(t={priority:0,...t}).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(n);const r=function(e,t,n){let r=0,i=e.length;for(;i>0;){const o=i/2|0;let s=r+o;n(e[s],t)<=0?(r=++s,i-=o+1):i=o}return r}(this._queue,n,((e,t)=>t.priority-e.priority));this._queue.splice(r,0,n)}dequeue(){return this._queue.shift().run}get size(){return this._queue.length}}e.exports=class extends r{constructor(e){if(super(),!("number"==typeof(e={carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:i,...e}).concurrency&&e.concurrency>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e.concurrency}\` (${typeof e.concurrency})`);if(!("number"==typeof e.intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${e.intervalCap}\` (${typeof e.intervalCap})`);if(!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${e.interval}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCount=0,this._intervalCap=e.intervalCap,this._interval=e.interval,this._intervalId=null,this._intervalEnd=0,this._timeoutId=null,this.queue=new e.queueClass,this._queueClass=e.queueClass,this._pendingCount=0,this._concurrency=e.concurrency,this._isPaused=!1===e.autoStart,this._resolveEmpty=()=>{},this._resolveIdle=()=>{}}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother()}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=()=>{},0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=()=>{})}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=null}_intervalPaused(){const e=Date.now();if(null===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return null===this._timeoutId&&(this._timeoutId=setTimeout((()=>{this._onResumeInterval()}),t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this.queue.size)return clearInterval(this._intervalId),this._intervalId=null,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._intervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother)return this.emit("active"),this.queue.dequeue()(),e&&this._initializeIntervalIfNeeded(),!0}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||null!==this._intervalId||(this._intervalId=setInterval((()=>this._onInterval()),this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){for(0===this._intervalCount&&0===this._pendingCount&&(clearInterval(this._intervalId),this._intervalId=null),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0;this._tryToStartAnother(););}async add(e,t){return new Promise(((n,r)=>{this.queue.enqueue((async()=>{this._pendingCount++,this._intervalCount++;try{n(await e())}catch(e){r(e)}this._next()}),t),this._tryToStartAnother()}))}async addAll(e,t){return Promise.all(e.map((e=>this.add(e,t))))}start(){if(this._isPaused)for(this._isPaused=!1;this._tryToStartAnother(););}pause(){this._isPaused=!0}clear(){this.queue=new this._queueClass}async onEmpty(){if(0!==this.queue.size)return new Promise((e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}}))}async onIdle(){if(0!==this._pendingCount||0!==this.queue.size)return new Promise((e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}}))}get size(){return this.queue.size}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}}},19126:(e,t,n)=>{"use strict";var r=n(66845),i=n(29166),o=n(85527);e.exports={formats:o,parse:i,stringify:r}},28316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(52967)},81346:(e,t,n)=>{"use strict";n.d(t,{E:()=>r});var r=n(2784).createContext(null)},49484:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(7896),i=n(31461),o=n(73463),s=n.n(o),a=n(2784),l=n(63920),c=n(82062),u=n(44282),d=n(81346),h=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],p=["reactReduxForwardedRef"],m=[],f=[null,null];function g(e,t){var n=e[1];return[t.payload,n+1]}function v(e,t,n){(0,u.L)((function(){return e.apply(void 0,t)}),n)}function b(e,t,n,r,i,o,s){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,s())}function y(e,t,n,r,i,o,s,a,l,c){if(e){var u=!1,d=null,h=function(){if(!u){var e,n,h=t.getState();try{e=r(h,i.current)}catch(e){n=e,d=e}n||(d=null),e===o.current?s.current||l():(o.current=e,a.current=e,s.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=h,n.trySubscribe(),h();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,d)throw d}}}var w=function(){return[null,0]};function x(e,t){void 0===t&&(t={});var n=t,o=n.getDisplayName,u=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,x=n.methodName,C=void 0===x?"connectAdvanced":x,_=n.renderCountProp,E=void 0===_?void 0:_,S=n.shouldHandleStateChanges,k=void 0===S||S,N=n.storeKey,R=void 0===N?"store":N,I=(n.withRef,n.forwardRef),M=void 0!==I&&I,T=n.context,A=void 0===T?d.E:T,O=(0,i.Z)(n,h),z=A;return function(t){var n=t.displayName||t.name||"Component",o=u(n),d=(0,r.Z)({},O,{getDisplayName:u,methodName:C,renderCountProp:E,shouldHandleStateChanges:k,storeKey:R,displayName:o,wrappedComponentName:n,WrappedComponent:t}),h=O.pure;var x=h?a.useMemo:function(e){return e()};function _(n){var o=(0,a.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,i.Z)(n,p);return[n.context,e,t]}),[n]),s=o[0],u=o[1],h=o[2],C=(0,a.useMemo)((function(){return s&&s.Consumer&&(0,l.isContextConsumer)(a.createElement(s.Consumer,null))?s:z}),[s,z]),_=(0,a.useContext)(C),E=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(_)&&Boolean(_.store);var S=E?n.store:_.store,N=(0,a.useMemo)((function(){return function(t){return e(t.dispatch,d)}(S)}),[S]),R=(0,a.useMemo)((function(){if(!k)return f;var e=(0,c.X)(S,E?null:_.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[S,E,_]),I=R[0],M=R[1],T=(0,a.useMemo)((function(){return E?_:(0,r.Z)({},_,{subscription:I})}),[E,_,I]),A=(0,a.useReducer)(g,m,w),O=A[0][0],D=A[1];if(O&&O.error)throw O.error;var j=(0,a.useRef)(),P=(0,a.useRef)(h),L=(0,a.useRef)(),F=(0,a.useRef)(!1),B=x((function(){return L.current&&h===P.current?L.current:N(S.getState(),h)}),[S,O,h]);v(b,[P,j,F,h,B,L,M]),v(y,[k,S,I,N,P,j,F,L,M,D],[S,I,N]);var U=(0,a.useMemo)((function(){return a.createElement(t,(0,r.Z)({},B,{ref:u}))}),[u,t,B]);return(0,a.useMemo)((function(){return k?a.createElement(C.Provider,{value:T},U):U}),[C,U,T])}var S=h?a.memo(_):_;if(S.WrappedComponent=t,S.displayName=_.displayName=o,M){var N=a.forwardRef((function(e,t){return a.createElement(S,(0,r.Z)({},e,{reactReduxForwardedRef:t}))}));return N.displayName=o,N.WrappedComponent=t,s()(N,t)}return s()(S,t)}}},33817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(7896),i=n(31461),o=n(49484),s=n(74570),a=n(56750),l=n(8528);const c=[function(e){return"function"==typeof e?(0,l.xv)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,l.dX)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,l.dX)((function(t){return(0,a.Z)(e,t)})):void 0}];const u=[function(e){return"function"==typeof e?(0,l.xv)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,l.dX)((function(){return{}}))}];function d(e,t,n){return(0,r.Z)({},n,e,t)}const h=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,s=!1;return function(t,n,a){var l=e(t,n,a);return s?i&&o(l,r)||(r=l):(s=!0,r=l),r}}}(e):void 0},function(e){return e?void 0:function(){return d}}];var p=n(77405),m=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function f(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function g(e,t){return e===t}function v(e){var t=void 0===e?{}:e,n=t.connectHOC,a=void 0===n?o.Z:n,l=t.mapStateToPropsFactories,d=void 0===l?u:l,v=t.mapDispatchToPropsFactories,b=void 0===v?c:v,y=t.mergePropsFactories,w=void 0===y?h:y,x=t.selectorFactory,C=void 0===x?p.ZP:x;return function(e,t,n,o){void 0===o&&(o={});var l=o,c=l.pure,u=void 0===c||c,h=l.areStatesEqual,p=void 0===h?g:h,v=l.areOwnPropsEqual,y=void 0===v?s.Z:v,x=l.areStatePropsEqual,_=void 0===x?s.Z:x,E=l.areMergedPropsEqual,S=void 0===E?s.Z:E,k=(0,i.Z)(l,m),N=f(e,d,"mapStateToProps"),R=f(t,b,"mapDispatchToProps"),I=f(n,w,"mergeProps");return a(C,(0,r.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:N,initMapDispatchToProps:R,initMergeProps:I,pure:u,areStatesEqual:p,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:S},k))}}const b=v()},23102:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,I:()=>s});var r=n(81346),i=n(87166);function o(e){void 0===e&&(e=r.E);var t=e===r.E?i.o:(0,i.f)(e);return function(){return t().dispatch}}var s=o()},24274:(e,t,n)=>{"use strict";n.d(t,{x:()=>o});var r=n(2784),i=n(81346);function o(){return(0,r.useContext)(i.E)}},85247:(e,t,n)=>{"use strict";n.d(t,{g:()=>c,v:()=>u});var r=n(2784),i=n(24274),o=n(82062),s=n(44282),a=n(81346),l=function(e,t){return e===t};function c(e){void 0===e&&(e=a.E);var t=e===a.E?i.x:function(){return(0,r.useContext)(e)};return function(e,n){void 0===n&&(n=l);var i=t(),a=function(e,t,n,i){var a,l=(0,r.useReducer)((function(e){return e+1}),0)[1],c=(0,r.useMemo)((function(){return(0,o.X)(n,i)}),[n,i]),u=(0,r.useRef)(),d=(0,r.useRef)(),h=(0,r.useRef)(),p=(0,r.useRef)(),m=n.getState();try{if(e!==d.current||m!==h.current||u.current){var f=e(m);a=void 0!==p.current&&t(f,p.current)?p.current:f}else a=p.current}catch(e){throw u.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),e}return(0,s.L)((function(){d.current=e,h.current=m,p.current=a,u.current=void 0})),(0,s.L)((function(){function e(){try{var e=n.getState();if(e===h.current)return;var r=d.current(e);if(t(r,p.current))return;p.current=r,h.current=e}catch(e){u.current=e}l()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),a}(e,n,i.store,i.subscription);return(0,r.useDebugValue)(a),a}}var u=c()},87166:(e,t,n)=>{"use strict";n.d(t,{f:()=>s,o:()=>a});var r=n(2784),i=n(81346),o=n(24274);function s(e){void 0===e&&(e=i.E);var t=e===i.E?o.x:function(){return(0,r.useContext)(e)};return function(){return t().store}}var a=s()},4792:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>r.zt,ReactReduxContext:()=>r.ET,batch:()=>i.m,connect:()=>r.$j,connectAdvanced:()=>r.e$,createDispatchHook:()=>r.AS,createSelectorHook:()=>r.gR,createStoreHook:()=>r.fw,shallowEqual:()=>r.wU,useDispatch:()=>r.I0,useSelector:()=>r.v9,useStore:()=>r.oR});var r=n(70293),i=n(41369);(0,n(14210).F)(i.m)},82062:(e,t,n)=>{"use strict";n.d(t,{X:()=>o});var r=n(14210);var i={notify:function(){},get:function(){return[]}};function o(e,t){var n,o=i;function s(){l.onStateChange&&l.onStateChange()}function a(){var i,a,l;n||(n=t?t.addNestedSub(s):e.subscribe(s),i=(0,r.k)(),a=null,l=null,o={clear:function(){a=null,l=null},notify:function(){i((function(){for(var e=a;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=a;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,n=l={callback:e,next:null,prev:l};return n.prev?n.prev.next=n:a=n,function(){t&&null!==a&&(t=!1,n.next?n.next.prev=n.prev:l=n.prev,n.prev?n.prev.next=n.next:a=n.next)}}})}var l={addNestedSub:function(e){return a(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:s,isSubscribed:function(){return Boolean(n)},trySubscribe:a,tryUnsubscribe:function(){n&&(n(),n=void 0,o.clear(),o=i)},getListeners:function(){return o}};return l}},44282:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(2784),i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect},98559:(e,t)=>{"use strict";var n=60103,r=60106,i=60107,o=60108,s=60114,a=60109,l=60110,c=60112,u=60113,d=60120,h=60115,p=60116,m=60121,f=60122,g=60117,v=60129,b=60131;if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),i=y("react.fragment"),o=y("react.strict_mode"),s=y("react.profiler"),a=y("react.provider"),l=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),d=y("react.suspense_list"),h=y("react.memo"),p=y("react.lazy"),m=y("react.block"),f=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case s:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case h:case a:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===l}},63920:(e,t,n)=>{"use strict";e.exports=n(98559)},39857:(e,t,n)=>{"use strict";var r,i;n.d(t,{UT:()=>u});var o=n(2784),s=n(28316),a=n(73557),l=n(16060);new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}new Map;const c=(r||(r=n.t(o,2))).startTransition;(i||(i=n.t(s,2))).flushSync,(r||(r=n.t(o,2))).useId;function u(e){let{basename:t,children:n,future:r,window:i}=e,s=o.useRef();null==s.current&&(s.current=(0,l.q_)({window:i,v5Compat:!0}));let u=s.current,[d,h]=o.useState({action:u.action,location:u.location}),{v7_startTransition:p}=r||{},m=o.useCallback((e=>{p&&c?c((()=>h(e))):h(e)}),[h,p]);return o.useLayoutEffect((()=>u.listen(m)),[u,m]),o.createElement(a.F0,{basename:t,children:n,location:d.location,navigationType:d.action,navigator:u,future:r})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;var d,h;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(d||(d={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(h||(h={}))},73557:(e,t,n)=>{"use strict";var r;n.d(t,{AW:()=>T,F0:()=>A,Fg:()=>M,TH:()=>m,UO:()=>v,Z5:()=>O,s0:()=>g});var i=n(2784),o=n(16060);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}const a=i.createContext(null);const l=i.createContext(null);const c=i.createContext(null);const u=i.createContext(null);const d=i.createContext({outlet:null,matches:[],isDataRoute:!1});const h=i.createContext(null);function p(){return null!=i.useContext(u)}function m(){return p()||(0,o.J0)(!1),i.useContext(u).location}function f(e){i.useContext(c).static||i.useLayoutEffect(e)}function g(){let{isDataRoute:e}=i.useContext(d);return e?function(){let{router:e}=k(E.UseNavigateStable),t=R(S.UseNavigateStable),n=i.useRef(!1);return f((()=>{n.current=!0})),i.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,s({fromRouteId:t},i)))}),[e,t])}():function(){p()||(0,o.J0)(!1);let e=i.useContext(a),{basename:t,future:n,navigator:r}=i.useContext(c),{matches:s}=i.useContext(d),{pathname:l}=m(),u=JSON.stringify((0,o.cm)(s,n.v7_relativeSplatPath)),h=i.useRef(!1);return f((()=>{h.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!h.current)return;if("number"==typeof n)return void r.go(n);let s=(0,o.pC)(n,JSON.parse(u),l,"path"===i.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,o.RQ)([t,s.pathname])),(i.replace?r.replace:r.push)(s,i.state,i)}),[t,r,u,l,e])}()}function v(){let{matches:e}=i.useContext(d),t=e[e.length-1];return t?t.params:{}}function b(e,t,n,r){p()||(0,o.J0)(!1);let{navigator:a}=i.useContext(c),{matches:l}=i.useContext(d),h=l[l.length-1],f=h?h.params:{},g=(h&&h.pathname,h?h.pathnameBase:"/");h&&h.route;let v,b=m();if(t){var y;let e="string"==typeof t?(0,o.cP)(t):t;"/"===g||(null==(y=e.pathname)?void 0:y.startsWith(g))||(0,o.J0)(!1),v=e}else v=b;let w=v.pathname||"/",x=w;if("/"!==g){let e=g.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(e.length).join("/")}let C=(0,o.fp)(e,{pathname:x});let E=_(C&&C.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,o.RQ)([g,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?g:(0,o.RQ)([g,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),l,n,r);return t&&E?i.createElement(u.Provider,{value:{location:s({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:o.aU.Pop}},E):E}function y(){let e=function(){var e;let t=i.useContext(h),n=N(S.UseRouteError),r=R(S.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,o.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:s},n):null,null)}const w=i.createElement(y,null);class x extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?i.createElement(d.Provider,{value:this.props.routeContext},i.createElement(h.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function C(e){let{routeContext:t,match:n,children:r}=e,o=i.useContext(a);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(d.Provider,{value:t},r)}function _(e,t,n,r){var s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var a;if(null==(a=n)||!a.errors)return null;e=n.matches}let l=e,c=null==(s=n)?void 0:s.errors;if(null!=c){let e=l.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||(0,o.J0)(!1),l=l.slice(0,Math.min(l.length,e+1))}let u=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){u=!0,l=d>=0?l.slice(0,d+1):[l[0]];break}}}return l.reduceRight(((e,r,o)=>{let s,a=!1,h=null,p=null;var m;n&&(s=c&&r.route.id?c[r.route.id]:void 0,h=r.route.errorElement||w,u&&(d<0&&0===o?(m="route-fallback",!1||I[m]||(I[m]=!0),a=!0,p=null):d===o&&(a=!0,p=r.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,o+1)),g=()=>{let t;return t=s?h:a?p:r.route.Component?i.createElement(r.route.Component,null):r.route.element?r.route.element:e,i.createElement(C,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?i.createElement(x,{location:n.location,revalidation:n.revalidation,component:h,error:s,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):g()}),null)}var E=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(E||{}),S=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(S||{});function k(e){let t=i.useContext(a);return t||(0,o.J0)(!1),t}function N(e){let t=i.useContext(l);return t||(0,o.J0)(!1),t}function R(e){let t=function(e){let t=i.useContext(d);return t||(0,o.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,o.J0)(!1),n.route.id}const I={};(r||(r=n.t(i,2))).startTransition;function M(e){let{to:t,replace:n,state:r,relative:s}=e;p()||(0,o.J0)(!1);let{future:a,static:l}=i.useContext(c),{matches:u}=i.useContext(d),{pathname:h}=m(),f=g(),v=(0,o.pC)(t,(0,o.cm)(u,a.v7_relativeSplatPath),h,"path"===s),b=JSON.stringify(v);return i.useEffect((()=>f(JSON.parse(b),{replace:n,state:r,relative:s})),[f,b,s,n,r]),null}function T(e){(0,o.J0)(!1)}function A(e){let{basename:t="/",children:n=null,location:r,navigationType:a=o.aU.Pop,navigator:l,static:d=!1,future:h}=e;p()&&(0,o.J0)(!1);let m=t.replace(/^\/*/,"/"),f=i.useMemo((()=>({basename:m,navigator:l,static:d,future:s({v7_relativeSplatPath:!1},h)})),[m,h,l,d]);"string"==typeof r&&(r=(0,o.cP)(r));let{pathname:g="/",search:v="",hash:b="",state:y=null,key:w="default"}=r,x=i.useMemo((()=>{let e=(0,o.Zn)(g,m);return null==e?null:{location:{pathname:e,search:v,hash:b,state:y,key:w},navigationType:a}}),[m,g,v,b,y,w,a]);return null==x?null:i.createElement(c.Provider,{value:f},i.createElement(u.Provider,{children:n,value:x}))}function O(e){let{children:t,location:n}=e;return b(z(t),n)}new Promise((()=>{}));i.Component;function z(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let s=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,z(e.props.children,s));e.type!==T&&(0,o.J0)(!1),e.props.index&&e.props.children&&(0,o.J0)(!1);let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=z(e.props.children,s)),n.push(a)})),n}},51344:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(2784),i=n(13980),o=n.n(i),s="undefined"!=typeof window?window:null,a=null===s,l=a?void 0:s.document,c="addEventListener",u="removeEventListener",d="getBoundingClientRect",h="_a",p="_b",m="_c",f="horizontal",g=function(){return!1},v=a?"calc":["","-webkit-","-moz-","-o-"].filter((function(e){var t=l.createElement("div");return t.style.cssText="width:"+e+"calc(9px)",!!t.style.length})).shift()+"calc",b=function(e){return"string"==typeof e||e instanceof String},y=function(e){if(b(e)){var t=l.querySelector(e);if(!t)throw new Error("Selector "+e+" did not match a DOM element");return t}return e},w=function(e,t,n){var r=e[t];return void 0!==r?r:n},x=function(e,t,n,r){if(t){if("end"===r)return 0;if("center"===r)return e/2}else if(n){if("start"===r)return 0;if("center"===r)return e/2}return e},C=function(e,t){var n=l.createElement("div");return n.className="gutter gutter-"+t,n},_=function(e,t,n){var r={};return b(t)?r[e]=t:r[e]=v+"("+t+"% - "+n+"px)",r},E=function(e,t){var n;return(n={})[e]=t+"px",n};const S=function(e,t){if(void 0===t&&(t={}),a)return{};var n,r,i,o,v,b,S=e;Array.from&&(S=Array.from(S));var k=y(S[0]).parentNode,N=getComputedStyle?getComputedStyle(k):null,R=N?N.flexDirection:null,I=w(t,"sizes")||S.map((function(){return 100/S.length})),M=w(t,"minSize",100),T=Array.isArray(M)?M:S.map((function(){return M})),A=w(t,"maxSize",1/0),O=Array.isArray(A)?A:S.map((function(){return A})),z=w(t,"expandToMin",!1),D=w(t,"gutterSize",10),j=w(t,"gutterAlign","center"),P=w(t,"snapOffset",30),L=Array.isArray(P)?P:S.map((function(){return P})),F=w(t,"dragInterval",1),B=w(t,"direction",f),U=w(t,"cursor",B===f?"col-resize":"row-resize"),W=w(t,"gutter",C),V=w(t,"elementStyle",_),H=w(t,"gutterStyle",E);function G(e,t,r,i){var o=V(n,t,r,i);Object.keys(o).forEach((function(t){e.style[t]=o[t]}))}function q(){return b.map((function(e){return e.size}))}function Y(e){return"touches"in e?e.touches[0][r]:e[r]}function Z(e){var t=b[this.a],n=b[this.b],r=t.size+n.size;t.size=e/this.size*r,n.size=r-e/this.size*r,G(t.element,t.size,this[p],t.i),G(n.element,n.size,this[m],n.i)}function K(e){var n,r=b[this.a],i=b[this.b];this.dragging&&(n=Y(e)-this.start+(this[p]-this.dragOffset),F>1&&(n=Math.round(n/F)*F),n<=r.minSize+r.snapOffset+this[p]?n=r.minSize+this[p]:n>=this.size-(i.minSize+i.snapOffset+this[m])&&(n=this.size-(i.minSize+this[m])),n>=r.maxSize-r.snapOffset+this[p]?n=r.maxSize+this[p]:n<=this.size-(i.maxSize-i.snapOffset+this[m])&&(n=this.size-(i.maxSize+this[m])),Z.call(this,n),w(t,"onDrag",g)(q()))}function $(){var e=b[this.a].element,t=b[this.b].element,r=e[d](),s=t[d]();this.size=r[n]+s[n]+this[p]+this[m],this.start=r[i],this.end=r[o]}function X(e){var t=function(e){if(!getComputedStyle)return null;var t=getComputedStyle(e);if(!t)return null;var n=e[v];return 0===n?null:n-=B===f?parseFloat(t.paddingLeft)+parseFloat(t.paddingRight):parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)}(k);if(null===t)return e;if(T.reduce((function(e,t){return e+t}),0)>t)return e;var n=0,r=[],i=e.map((function(i,o){var s=t*i/100,a=x(D,0===o,o===e.length-1,j),l=T[o]+a;return s<l?(n+=l-s,r.push(0),l):(r.push(s-l),s)}));return 0===n?e:i.map((function(e,i){var o=e;if(n>0&&r[i]-n>0){var s=Math.min(n,r[i]-n);n-=s,o=e-s}return o/t*100}))}function J(){var e=this,n=b[e.a].element,r=b[e.b].element;e.dragging&&w(t,"onDragEnd",g)(q()),e.dragging=!1,s[u]("mouseup",e.stop),s[u]("touchend",e.stop),s[u]("touchcancel",e.stop),s[u]("mousemove",e.move),s[u]("touchmove",e.move),e.stop=null,e.move=null,n[u]("selectstart",g),n[u]("dragstart",g),r[u]("selectstart",g),r[u]("dragstart",g),n.style.userSelect="",n.style.webkitUserSelect="",n.style.MozUserSelect="",n.style.pointerEvents="",r.style.userSelect="",r.style.webkitUserSelect="",r.style.MozUserSelect="",r.style.pointerEvents="",e.gutter.style.cursor="",e.parent.style.cursor="",l.body.style.cursor=""}function Q(e){if(!("button"in e)||0===e.button){var n=this,r=b[n.a].element,i=b[n.b].element;n.dragging||w(t,"onDragStart",g)(q()),e.preventDefault(),n.dragging=!0,n.move=K.bind(n),n.stop=J.bind(n),s[c]("mouseup",n.stop),s[c]("touchend",n.stop),s[c]("touchcancel",n.stop),s[c]("mousemove",n.move),s[c]("touchmove",n.move),r[c]("selectstart",g),r[c]("dragstart",g),i[c]("selectstart",g),i[c]("dragstart",g),r.style.userSelect="none",r.style.webkitUserSelect="none",r.style.MozUserSelect="none",r.style.pointerEvents="none",i.style.userSelect="none",i.style.webkitUserSelect="none",i.style.MozUserSelect="none",i.style.pointerEvents="none",n.gutter.style.cursor=U,n.parent.style.cursor=U,l.body.style.cursor=U,$.call(n),n.dragOffset=Y(e)-n.end}}B===f?(n="width",r="clientX",i="left",o="right",v="clientWidth"):"vertical"===B&&(n="height",r="clientY",i="top",o="bottom",v="clientHeight"),I=X(I);var ee=[];function te(e){var t=e.i===ee.length,n=t?ee[e.i-1]:ee[e.i];$.call(n);var r=t?n.size-e.minSize-n[m]:e.minSize+n[p];Z.call(n,r)}return(b=S.map((function(e,t){var r,i={element:y(e),size:I[t],minSize:T[t],maxSize:O[t],snapOffset:L[t],i:t};if(t>0&&((r={a:t-1,b:t,dragging:!1,direction:B,parent:k})[p]=x(D,t-1==0,!1,j),r[m]=x(D,!1,t===S.length-1,j),"row-reverse"===R||"column-reverse"===R)){var o=r.a;r.a=r.b,r.b=o}if(t>0){var s=W(t,B,i.element);!function(e,t,r){var i=H(n,t,r);Object.keys(i).forEach((function(t){e.style[t]=i[t]}))}(s,D,t),r[h]=Q.bind(r),s[c]("mousedown",r[h]),s[c]("touchstart",r[h]),k.insertBefore(s,i.element),r.gutter=s}return G(i.element,i.size,x(D,0===t,t===S.length-1,j),t),t>0&&ee.push(r),i}))).forEach((function(e){var t=e.element[d]()[n];t<e.minSize&&(z?te(e):e.minSize=t)})),{setSizes:function(e){var t=X(e);t.forEach((function(e,n){if(n>0){var r=ee[n-1],i=b[r.a],o=b[r.b];i.size=t[n-1],o.size=e,G(i.element,i.size,r[p],i.i),G(o.element,o.size,r[m],o.i)}}))},getSizes:q,collapse:function(e){te(b[e])},destroy:function(e,t){ee.forEach((function(r){if(!0!==t?r.parent.removeChild(r.gutter):(r.gutter[u]("mousedown",r[h]),r.gutter[u]("touchstart",r[h])),!0!==e){var i=V(n,r.a.size,r[p]);Object.keys(i).forEach((function(e){b[r.a].element.style[e]="",b[r.b].element.style[e]=""}))}}))},parent:k,pairs:ee}};function k(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var N=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.componentDidMount=function(){var e=this.props;e.children;var t=e.gutter,n=k(e,["children","gutter"]);n.gutter=function(e,n){var r;return t?r=t(e,n):(r=document.createElement("div")).className="gutter gutter-"+n,r.__isSplitGutter=!0,r},this.split=S(this.parent.children,n)},t.prototype.componentDidUpdate=function(e){var t=this,n=this.props;n.children;var r=n.minSize,i=n.sizes,o=n.collapsed,s=k(n,["children","minSize","sizes","collapsed"]),a=e.minSize,l=e.sizes,c=e.collapsed,u=["maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor"].map((function(n){return t.props[n]!==e[n]})).reduce((function(e,t){return e||t}),!1);if(Array.isArray(r)&&Array.isArray(a)){var d=!1;r.forEach((function(e,t){d=d||e!==a[t]})),u=u||d}else u=!(!Array.isArray(r)&&!Array.isArray(a))||(u||r!==a);if(u)s.minSize=r,s.sizes=i||this.split.getSizes(),this.split.destroy(!0,!0),s.gutter=function(e,t,n){return n.previousSibling},this.split=S(Array.from(this.parent.children).filter((function(e){return!e.__isSplitGutter})),s);else if(i){var h=!1;i.forEach((function(e,t){h=h||e!==l[t]})),h&&this.split.setSizes(this.props.sizes)}Number.isInteger(o)&&(o!==c||u)&&this.split.collapse(o)},t.prototype.componentWillUnmount=function(){this.split.destroy(),delete this.split},t.prototype.render=function(){var e=this,t=this.props;t.sizes,t.minSize,t.maxSize,t.expandToMin,t.gutterSize,t.gutterAlign,t.snapOffset,t.dragInterval,t.direction,t.cursor,t.gutter,t.elementStyle,t.gutterStyle,t.onDrag,t.onDragStart,t.onDragEnd,t.collapsed;var n=t.children,i=k(t,["sizes","minSize","maxSize","expandToMin","gutterSize","gutterAlign","snapOffset","dragInterval","direction","cursor","gutter","elementStyle","gutterStyle","onDrag","onDragStart","onDragEnd","collapsed","children"]);return r.createElement("div",Object.assign({},{ref:function(t){e.parent=t}},i),n)},t}(r.Component);N.propTypes={sizes:o().arrayOf(o().number),minSize:o().oneOfType([o().number,o().arrayOf(o().number)]),maxSize:o().oneOfType([o().number,o().arrayOf(o().number)]),expandToMin:o().bool,gutterSize:o().number,gutterAlign:o().string,snapOffset:o().oneOfType([o().number,o().arrayOf(o().number)]),dragInterval:o().number,direction:o().string,cursor:o().string,gutter:o().func,elementStyle:o().func,gutterStyle:o().func,onDrag:o().func,onDragStart:o().func,onDragEnd:o().func,collapsed:o().number,children:o().arrayOf(o().element)},N.defaultProps={sizes:void 0,minSize:void 0,maxSize:void 0,expandToMin:void 0,gutterSize:void 0,gutterAlign:void 0,snapOffset:void 0,dragInterval:void 0,direction:void 0,cursor:void 0,gutter:void 0,elementStyle:void 0,gutterStyle:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0,collapsed:void 0,children:void 0};const R=N},78505:(e,t,n)=>{"use strict";n.d(t,{I6:()=>u,N5:()=>g,h4:()=>v,kd:()=>o});n(2784);var r={defaultProps:{},customizeNotification:null,generateId:null},i=Object.freeze({none:"none",info:"info",success:"success",loading:"loading",warning:"warning",error:"error"}),o=Object.freeze({topCenter:"top-center",topLeft:"top-left",topRight:"top-right",bottomCenter:"bottom-center",bottomLeft:"bottom-left",bottomRight:"bottom-right"});function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var a,l=function e(t){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map((function(t){return e(t)}));var n={};for(var r in t)n[r]=e(t[r]);return n};!function(e){e.UpsertNotification="reapop/upsertNotification",e.DismissNotification="reapop/dismissNotification",e.DismissNotifications="reapop/dismissNotifications"}(a||(a={}));var c=[],u=function(){return function(e,t){switch(void 0===e&&(e=c),t.type){case a.UpsertNotification:var n=l(t.payload);return~e.findIndex((function(e){return e.id===n.id}))?e.map((function(e){return e.id===n.id?n:e})):[].concat(e,[n]);case a.DismissNotification:var r=t.payload;return e.filter((function(e){return e.id!==r}));case a.DismissNotifications:return[];default:return e}}},d=function(e){var t=l(e),n=s({},r.defaultProps,{status:i.none,buttons:[]});return void 0===t.id&&(t.id=r.generateId?r.generateId(e):Math.random().toString(36).slice(2,7)),Object.entries(n).map((function(e){var n=e[0],r=e[1];void 0===t[n]&&(t[n]=r)})),"function"==typeof r.customizeNotification&&r.customizeNotification(t),t};var h,p,m,f,g=function(e){return{type:a.DismissNotification,payload:e}},v=function(){var e,t,n=(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e],r={};return"string"==typeof(arguments.length<=0?void 0:arguments[0])&&(r.message=arguments.length<=0?void 0:arguments[0]),"string"==typeof(arguments.length<=1?void 0:arguments[1])&&(r.status=arguments.length<=1?void 0:arguments[1]),(t=n)&&t.constructor===Object&&(r=s({},r,n)),{type:a.UpsertNotification,payload:d(r)}};(h={})[o.topCenter]={top:"20px",left:"50%",transform:"translateX(-50%)"},h[o.topRight]={top:"20px",right:"20px"},h[o.topLeft]={top:"20px",left:"20px"},h[o.bottomCenter]={bottom:"20px",left:"50%",transform:"translateX(-50%)"},h[o.bottomRight]={bottom:"20px",right:"20px"},h[o.bottomLeft]={bottom:"20px",left:"20px"},(p={})[i.none]="#ffffff",p[i.info]="#4192ff",p[i.loading]="#4192ff",p[i.success]="#32d38b",p[i.warning]="#f5aa0a",p[i.error]="#E94C58",(m={})[i.none]="#ffffff",m[i.info]="#349ef3",m[i.loading]="#349ef3",m[i.success]="#4dc657",m[i.warning]="#f5aa0a",m[i.error]="#f5311d",(f={})[i.none]="#ffffff",f[i.info]="#007bff",f[i.loading]="#007bff",f[i.success]="#28a745",f[i.warning]="#ffc107",f[i.error]="#dc3545"},80212:e=>{!function(){var t={de_DE:{identifier:"de-DE",days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{identifier:"en-CA",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{identifier:"en-US",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{identifier:"es-MX",days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{identifier:"fr-FR",days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{identifier:"it-IT",days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{identifier:"nl-NL",days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{identifier:"pt-BR",days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{identifier:"ru-RU",days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{identifier:"tr-TR",days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{identifier:"zh-CN",days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},n=t.en_US,r=new function e(r,h,p){var m,f=r||n,g=h||0,v=p||!1,b=0;function y(e,t,n,r){for(var c="",h=null,p=!1,m=e.length,f=!1,b=0;b<m;b++){var w=e.charCodeAt(b);if(!0!==p)37!==w?c+=e[b]:p=!0;else{if(45===w){h="";continue}if(95===w){h=" ";continue}if(48===w){h="0";continue}if(58===w){f&&d("[WARNING] detected use of unsupported %:: or %::: modifiers to strftime"),f=!0;continue}switch(w){case 37:c+="%";break;case 65:c+=n.days[t.getDay()];break;case 66:c+=n.months[t.getMonth()];break;case 67:c+=i(Math.floor(t.getFullYear()/100),h);break;case 68:c+=y(n.formats.D,t,n,r);break;case 70:c+=y(n.formats.F,t,n,r);break;case 72:c+=i(t.getHours(),h);break;case 73:c+=i(s(t.getHours()),h);break;case 76:c+=o(Math.floor(r%1e3));break;case 77:c+=i(t.getMinutes(),h);break;case 80:c+=t.getHours()<12?n.am:n.pm;break;case 82:c+=y(n.formats.R,t,n,r);break;case 83:c+=i(t.getSeconds(),h);break;case 84:c+=y(n.formats.T,t,n,r);break;case 85:c+=i(a(t,"sunday"),h);break;case 87:c+=i(a(t,"monday"),h);break;case 88:c+=y(n.formats.X,t,n,r);break;case 89:c+=t.getFullYear();break;case 90:if(v&&0===g)c+="GMT";else c+=u(t)||"";break;case 97:c+=n.shortDays[t.getDay()];break;case 98:case 104:c+=n.shortMonths[t.getMonth()];break;case 99:c+=y(n.formats.c,t,n,r);break;case 100:c+=i(t.getDate(),h);break;case 101:c+=i(t.getDate(),null==h?" ":h);break;case 106:var x=new Date(t.getFullYear(),0,1);c+=o(C=Math.ceil((t.getTime()-x.getTime())/864e5));break;case 107:c+=i(t.getHours(),null==h?" ":h);break;case 108:c+=i(s(t.getHours()),null==h?" ":h);break;case 109:c+=i(t.getMonth()+1,h);break;case 110:c+="\n";break;case 111:var C=t.getDate();n.ordinalSuffixes?c+=String(C)+(n.ordinalSuffixes[C-1]||l(C)):c+=String(C)+l(C);break;case 112:c+=t.getHours()<12?n.AM:n.PM;break;case 114:c+=y(n.formats.r,t,n,r);break;case 115:c+=Math.floor(r/1e3);break;case 116:c+="\t";break;case 117:c+=0===(C=t.getDay())?7:C;break;case 118:c+=y(n.formats.v,t,n,r);break;case 119:c+=t.getDay();break;case 120:c+=y(n.formats.x,t,n,r);break;case 121:c+=i(t.getFullYear()%100,h);break;case 122:if(v&&0===g)c+=f?"+00:00":"+0000";else{var _,E=(_=0!==g?g/6e4:-t.getTimezoneOffset())<0?"-":"+",S=f?":":"",k=Math.floor(Math.abs(_/60)),N=Math.abs(_%60);c+=E+i(k)+S+i(N)}break;default:p&&(c+="%"),c+=e[b]}h=null,p=!1}}return c}var w=function(e,t){var n;if(t){if(n=t.getTime(),v){var r=c(t);if(c(t=new Date(n+r+g))!==r){var i=c(t);t=new Date(n+i+g)}}}else{var o=Date.now();o>b?(b=o,m=new Date(b),n=b,v&&(m=new Date(b+c(m)+g))):n=b,t=m}return y(e,t,f,n)};return w.localize=function(t){return new e(t||f,g,v)},w.localizeByIdentifier=function(e){var n=t[e];return n?w.localize(n):(d('[WARNING] No locale found with identifier "'+e+'".'),w)},w.timezone=function(t){var n=g,r=v,i=typeof t;"number"!==i&&"string"!==i||(r=!0,"string"===i?n=("-"===t[0]?-1:1)*(60*parseInt(t.slice(1,3),10)+parseInt(t.slice(3,5),10))*60*1e3:"number"===i&&(n=60*t*1e3));return new e(f,n,r)},w.utc=function(){return new e(f,g,!0)},w}(n,0,!1);function i(e,t){return""===t||e>9?""+e:(null==t&&(t="0"),t+e)}function o(e){return e>99?e:e>9?"0"+e:"00"+e}function s(e){return 0===e?12:e>12?e-12:e}function a(e,t){t=t||"sunday";var n=e.getDay();"monday"===t&&(0===n?n=6:n--);var r=Date.UTC(e.getFullYear(),0,1),i=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),o=(Math.floor((i-r)/864e5)+7-n)/7;return Math.floor(o)}function l(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function c(e){return 6e4*(e.getTimezoneOffset()||0)}function u(e,t){return function(e,t){if(null==t)return null;var n=e.toLocaleString(t,{timeZoneName:"short"}).match(/\s([\w]+)$/);return n&&n[1]}(e,t)||function(e){var t=e.toString().match(/\(([\w\s]+)\)/);return t&&t[1]}(e)}function d(e){"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e)}e.exports=r,"function"!=typeof Date.now&&(Date.now=function(){return+new Date})}()},87578:(e,t,n)=>{"use strict";var r;n.d(t,{$Y:()=>Re,A8:()=>R,JA:()=>m,KK:()=>Te,NI:()=>Oe,RB:()=>U,XI:()=>Y,YF:()=>Ie,Zm:()=>P,ay:()=>L,bQ:()=>Ne,bU:()=>N,c0:()=>Be,eS:()=>_e,hU:()=>Ve,jV:()=>F,ll:()=>ce,mN:()=>B,qs:()=>We,vs:()=>p,wD:()=>ve,xp:()=>Ge,y0:()=>we});var i=n(2784),o=n(83127),s=n(52322),a=n(10712),l=n(65712),c=n(28316),u=n(92416);function d(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const h=i.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function p(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,a]=i.useState((()=>new Set)),l=i.useCallback((e=>{a((t=>new Set(t).add(e)))}),[]),c=i.useCallback((e=>{a((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),u=i.useMemo((()=>{const e=new Map;return Array.from(o.keys()).sort(d).forEach(((t,n)=>{e.set(t,n)})),e}),[o]);return(0,s.jsx)(h.Provider,{value:i.useMemo((()=>({register:l,unregister:c,map:u,elementsRef:n,labelsRef:r})),[l,c,u,n,r]),children:t})}function m(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:s,elementsRef:a,labelsRef:l}=i.useContext(h),[c,u]=i.useState(null),d=i.useRef(null),p=i.useCallback((e=>{if(d.current=e,null!==c&&(a.current[c]=e,l)){var n;const r=void 0!==t;l.current[c]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[c,a,l,t]);return(0,o.Xj)((()=>{const e=d.current;if(e)return n(e),()=>{r(e)}}),[n,r]),(0,o.Xj)((()=>{const e=d.current?s.get(d.current):null;null!=e&&u(e)}),[s]),i.useMemo((()=>({ref:p,index:null==c?-1:c})),[c,p])}const f="data-floating-ui-focusable",g="active",v="selected",b="ArrowLeft",y="ArrowRight",w="ArrowUp",x="ArrowDown";function C(e,t){return"function"==typeof e?e(t):e?i.cloneElement(e,t):(0,s.jsx)("div",{...t})}const _=i.createContext({activeIndex:0,onNavigate:()=>{}}),E=[b,y],S=[w,x],k=[...E,...S],N=i.forwardRef((function(e,t){const{render:n,orientation:r="both",loop:a=!0,rtl:l=!1,cols:c=1,disabledIndices:u,activeIndex:d,onNavigate:h,itemSizes:m,dense:f=!1,...g}=e,[v,N]=i.useState(0),R=null!=d?d:v,I=(0,o.iW)(null!=h?h:N),M=i.useRef([]),T=n&&"function"!=typeof n?n.props:{},A=i.useMemo((()=>({activeIndex:R,onNavigate:I})),[R,I]),O=c>1;const z={...g,...T,ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==g.onKeyDown||g.onKeyDown(e),null==T.onKeyDown||T.onKeyDown(e),function(e){if(!k.includes(e.key))return;let t=R;const n=(0,o.h$)(M,u),i=(0,o.zc)(M,u),s=l?b:y,d=l?y:b;if(O){const d=m||Array.from({length:M.current.length},(()=>({width:1,height:1}))),h=(0,o.fe)(d,c,f),p=h.findIndex((e=>null!=e&&!(0,o.Nm)(M,e,u))),g=h.reduce(((e,t,n)=>null==t||(0,o.Nm)(M,t,u)?e:n),-1),v=h[(0,o.xR)({current:h.map((e=>e?M.current[e]:null))},{event:e,orientation:r,loop:a,rtl:l,cols:c,disabledIndices:(0,o.w_)([...u||M.current.map(((e,t)=>(0,o.Nm)(M,t)?t:void 0)),void 0],h),minIndex:p,maxIndex:g,prevIndex:(0,o.XH)(R>i?n:R,d,h,c,e.key===x?"bl":e.key===s?"tr":"tl")})];null!=v&&(t=v)}const h={horizontal:[s],vertical:[x],both:[s,x]}[r],p={horizontal:[d],vertical:[w],both:[d,w]}[r],g=O?k:{horizontal:E,vertical:S,both:k}[r];var v;t===R&&[...h,...p].includes(e.key)&&(t=a&&t===i&&h.includes(e.key)?n:a&&t===n&&p.includes(e.key)?i:(0,o.aF)(M,{startingIndex:t,decrement:p.includes(e.key),disabledIndices:u})),t===R||(0,o.VP)(M,t)||(e.stopPropagation(),g.includes(e.key)&&e.preventDefault(),I(t),null==(v=M.current[t])||v.focus())}(e)}};return(0,s.jsx)(_.Provider,{value:A,children:(0,s.jsx)(p,{elementsRef:M,children:C(n,z)})})})),R=i.forwardRef((function(e,t){const{render:n,...r}=e,o=n&&"function"!=typeof n?n.props:{},{activeIndex:s,onNavigate:a}=i.useContext(_),{ref:l,index:c}=m(),u=function(e){const t=i.useRef(void 0),n=i.useCallback((t=>{const n=e.map((e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}}));return()=>{n.forEach((e=>null==e?void 0:e()))}}),e);return i.useMemo((()=>e.every((e=>null==e))?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))}),e)}([l,t,o.ref]),d=s===c;return C(n,{...r,...o,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==o.onFocus||o.onFocus(e),a(c)}})})),I={...r||(r=n.t(i,2))};let M=!1,T=0;const A=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+T++;const O=I.useId||function(){const[e,t]=i.useState((()=>M?A():void 0));return(0,o.Xj)((()=>{null==e&&t(A())}),[]),i.useEffect((()=>{M=!0}),[]),e};function z(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}const D=i.createContext(null),j=i.createContext(null),P=()=>{var e;return(null==(e=i.useContext(D))?void 0:e.id)||null},L=()=>i.useContext(j);function F(e){const t=O(),n=L(),r=P(),i=e||r;return(0,o.Xj)((()=>{if(!t)return;const e={id:t,parentId:i};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,i]),t}function B(e){const{children:t,id:n}=e,r=P();return(0,s.jsx)(D.Provider,{value:i.useMemo((()=>({id:n,parentId:r})),[n,r]),children:t})}function U(e){const{children:t}=e,n=i.useRef([]),r=i.useCallback((e=>{n.current=[...n.current,e]}),[]),o=i.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),[a]=i.useState((()=>z()));return(0,s.jsx)(j.Provider,{value:i.useMemo((()=>({nodesRef:n,addNode:r,removeNode:o,events:a})),[r,o,a]),children:t})}function W(e){return"data-floating-ui-"+e}function V(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const H=W("safe-polygon");function G(e,t,n){if(n&&!(0,o.r)(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function q(e){return"function"==typeof e?e():e}function Y(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,events:l,elements:c}=e,{enabled:u=!0,delay:d=0,handleClose:h=null,mouseOnly:p=!1,restMs:m=0,move:f=!0}=t,g=L(),v=P(),b=(0,o.II)(h),y=(0,o.II)(d),w=(0,o.II)(n),x=(0,o.II)(m),C=i.useRef(),_=i.useRef(-1),E=i.useRef(),S=i.useRef(-1),k=i.useRef(!0),N=i.useRef(!1),R=i.useRef((()=>{})),I=i.useRef(!1),M=i.useCallback((()=>{var e;const t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[s]);i.useEffect((()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(V(_),V(S),k.current=!0,I.current=!1)}}),[u,l]),i.useEffect((()=>{if(!u)return;if(!b.current)return;if(!n)return;function e(e){M()&&r(!1,e,"hover")}const t=(0,o.Me)(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[c.floating,n,r,u,b,M]);const T=i.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const i=G(y.current,"close",C.current);i&&!E.current?(V(_),_.current=window.setTimeout((()=>r(!1,e,n)),i)):t&&(V(_),r(!1,e,n))}),[y,r]),A=(0,o.iW)((()=>{R.current(),E.current=void 0})),O=(0,o.iW)((()=>{if(N.current){const e=(0,o.Me)(c.floating).body;e.style.pointerEvents="",e.removeAttribute(H),N.current=!1}})),z=(0,o.iW)((()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type)));i.useEffect((()=>{if(u&&(0,a.kK)(c.domReference)){const r=c.domReference,o=c.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",l),o.addEventListener("mouseleave",d)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",l),o.removeEventListener("mouseleave",d))}}function e(e){if(V(_),k.current=!1,p&&!(0,o.r)(C.current)||q(x.current)>0&&!G(y.current,"open"))return;const t=G(y.current,"open",C.current);t?_.current=window.setTimeout((()=>{w.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function t(e){if(z())return void O();R.current();const t=(0,o.Me)(c.floating);if(V(S),I.current=!1,b.current&&s.current.floatingContext){n||V(_),E.current=b.current({...s.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){O(),A(),z()||T(e,!0,"safe-polygon")}});const r=E.current;return t.addEventListener("mousemove",r),void(R.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==C.current||!(0,o.r3)(c.floating,e.relatedTarget))&&T(e)}function i(e){z()||s.current.floatingContext&&(null==b.current||b.current({...s.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){O(),A(),z()||T(e)}})(e))}function l(){V(_)}function d(e){z()||T(e,!1)}}),[c,u,e,p,f,T,A,O,r,n,w,g,y,b,s,z,x]),(0,o.Xj)((()=>{var e;if(u&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&M()){N.current=!0;const e=c.floating;if((0,a.kK)(c.domReference)&&e){var t;const n=(0,o.Me)(c.floating).body;n.setAttribute(H,"");const r=c.domReference,i=null==g||null==(t=g.nodesRef.current.find((e=>e.id===v)))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[u,n,v,c,g,b,M]),(0,o.Xj)((()=>{n||(C.current=void 0,I.current=!1,A(),O())}),[n,A,O]),i.useEffect((()=>()=>{A(),V(_),V(S),O()}),[u,c.domReference,A,O]);const D=i.useMemo((()=>{function e(e){C.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function i(){k.current||w.current||r(!0,t,"hover")}p&&!(0,o.r)(C.current)||n||0===q(x.current)||I.current&&e.movementX**2+e.movementY**2<2||(V(S),"touch"===C.current?i():(I.current=!0,S.current=window.setTimeout(i,q(x.current))))}}}),[p,r,n,w,x]);return i.useMemo((()=>u?{reference:D}:{}),[u,D])}let Z=0;function K(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:i=!1}=t;r&&cancelAnimationFrame(Z);const o=()=>null==e?void 0:e.focus({preventScroll:n});i?o():Z=requestAnimationFrame(o)}function $(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Zq)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let X=new WeakMap,J=new WeakSet,Q={},ee=0;const te=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,ne=e=>e&&(e.host||ne(e.parentNode)),re=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=ne(t);return e.contains(n)?n:null})).filter((e=>null!=e));function ie(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(i=e[0],(null==i?void 0:i.ownerDocument)||document).body;var i;return function(e,t,n,r){const i="data-floating-ui-inert",o=r?"inert":n?"aria-hidden":null,s=re(t,e),l=new Set,c=new Set(s),u=[];Q[i]||(Q[i]=new WeakMap);const d=Q[i];return s.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,a.wk)(t))if(l.has(t))e(t);else{const e=o?t.getAttribute(o):null,n=null!==e&&"false"!==e,r=X.get(t)||0,s=o?r+1:r,a=(d.get(t)||0)+1;X.set(t,s),d.set(t,a),u.push(t),1===s&&n&&J.add(t),1===a&&t.setAttribute(i,""),!n&&o&&t.setAttribute(o,"inert"===o?"":"true")}}))}(t),l.clear(),ee++,()=>{u.forEach((e=>{const t=X.get(e)||0,n=o?t-1:t,r=(d.get(e)||0)-1;X.set(e,n),d.set(e,r),n||(!J.has(e)&&o&&e.removeAttribute(o),J.delete(e)),r||e.removeAttribute(i)})),ee--,ee||(X=new WeakMap,X=new WeakMap,J=new WeakSet,Q={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const oe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},se=i.forwardRef((function(e,t){const[n,r]=i.useState();(0,o.Xj)((()=>{(0,o.G6)()&&r("button")}),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[W("focus-guard")]:"",style:oe};return(0,s.jsx)("span",{...e,...a})})),ae=i.createContext(null),le=W("portal");function ce(e){const{children:t,id:n,root:r,preserveTabOrder:l=!0}=e,u=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=O(),s=ue(),[l,c]=i.useState(null),u=i.useRef(null);return(0,o.Xj)((()=>()=>{null==l||l.remove(),queueMicrotask((()=>{u.current=null}))}),[l]),(0,o.Xj)((()=>{if(!r)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(le,""),e.appendChild(n),u.current=n,c(n)}),[t,r]),(0,o.Xj)((()=>{if(null===n)return;if(!r)return;if(u.current)return;let e=n||(null==s?void 0:s.portalNode);e&&!(0,a.kK)(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const o=document.createElement("div");o.id=r,o.setAttribute(le,""),e=i||e,e.appendChild(o),u.current=o,c(o)}),[t,n,r,s]),l}({id:n,root:r}),[d,h]=i.useState(null),p=i.useRef(null),m=i.useRef(null),f=i.useRef(null),g=i.useRef(null),v=null==d?void 0:d.modal,b=null==d?void 0:d.open,y=!!d&&!d.modal&&d.open&&l&&!(!r&&!u);return i.useEffect((()=>{if(u&&l&&!v)return u.addEventListener("focusin",e,!0),u.addEventListener("focusout",e,!0),()=>{u.removeEventListener("focusin",e,!0),u.removeEventListener("focusout",e,!0)};function e(e){if(u&&(0,o.dE)(e)){("focusin"===e.type?o.NX:o.N6)(u)}}}),[u,l,v]),i.useEffect((()=>{u&&(b||(0,o.NX)(u))}),[b,u]),(0,s.jsxs)(ae.Provider,{value:i.useMemo((()=>({preserveTabOrder:l,beforeOutsideRef:p,afterOutsideRef:m,beforeInsideRef:f,afterInsideRef:g,portalNode:u,setFocusManagerState:h})),[l,u]),children:[y&&u&&(0,s.jsx)(se,{"data-type":"outside",ref:p,onFocus:e=>{if((0,o.dE)(e,u)){var t;null==(t=f.current)||t.focus()}else{const e=d?d.domReference:null,t=(0,o.e8)(e);null==t||t.focus()}}}),y&&u&&(0,s.jsx)("span",{"aria-owns":u.id,style:oe}),u&&c.createPortal(t,u),y&&u&&(0,s.jsx)(se,{"data-type":"outside",ref:m,onFocus:e=>{if((0,o.dE)(e,u)){var t;null==(t=g.current)||t.focus()}else{const t=d?d.domReference:null,n=(0,o.k0)(t);null==n||n.focus(),(null==d?void 0:d.closeOnFocusOut)&&(null==d||d.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const ue=()=>i.useContext(ae);function de(e){return i.useMemo((()=>t=>{e.forEach((e=>{e&&(e.current=t)}))}),e)}const he=20;let pe=[];function me(){return pe.slice().reverse().find((e=>e.isConnected))}function fe(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=(0,o.Tv)(),i=(0,l.KW)(e,r).filter((e=>{const t=e.getAttribute("data-tabindex")||"";return(0,l.Wq)(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")})),s=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==s&&e.setAttribute("tabindex","0"):("-1"!==s||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const ge=i.forwardRef((function(e,t){return(0,s.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:oe})}));function ve(e){const{context:t,children:n,disabled:r=!1,order:c=["content"],guards:u=!0,initialFocus:d=0,returnFocus:h=!0,restoreFocus:p=!1,modal:m=!0,visuallyHiddenDismiss:f=!1,closeOnFocusOut:g=!0,outsideElementsInert:v=!1,getInsideElements:b=(()=>[])}=e,{open:y,onOpenChange:w,events:x,dataRef:C,elements:{domReference:_,floating:E}}=t,S=(0,o.iW)((()=>{var e;return null==(e=C.current.floatingContext)?void 0:e.nodeId})),k=(0,o.iW)(b),N="number"==typeof d&&d<0,R=(0,o.Ie)(_)&&N,I=te(),M=!I||u,T=!M||I&&v,A=(0,o.II)(c),O=(0,o.II)(d),z=(0,o.II)(h),D=L(),j=ue(),P=i.useRef(null),F=i.useRef(null),B=i.useRef(!1),U=i.useRef(!1),V=i.useRef(-1),H=null!=j,G=(0,o.zd)(E),q=(0,o.iW)((function(e){return void 0===e&&(e=G),e?(0,l.ht)(e,(0,o.Tv)()):[]})),Y=(0,o.iW)((e=>{const t=q(e);return A.current.map((e=>_&&"reference"===e?_:G&&"floating"===e?G:t)).filter(Boolean).flat()}));i.useEffect((()=>{if(r)return;if(!m)return;function e(e){if("Tab"===e.key){(0,o.r3)(G,(0,o.AW)((0,o.Me)(G)))&&0===q().length&&!R&&(0,o.p7)(e);const t=Y(),n=(0,o.U9)(e);"reference"===A.current[0]&&n===_&&((0,o.p7)(e),e.shiftKey?K(t[t.length-1]):K(t[1])),"floating"===A.current[1]&&n===G&&e.shiftKey&&((0,o.p7)(e),K(t[0]))}}const t=(0,o.Me)(G);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,_,G,m,A,R,q,Y]),i.useEffect((()=>{if(!r&&E)return E.addEventListener("focusin",e),()=>{E.removeEventListener("focusin",e)};function e(e){const t=(0,o.U9)(e),n=q().indexOf(t);-1!==n&&(V.current=n)}}),[r,E,q]),i.useEffect((()=>{if(!r&&g)return E&&(0,a.Re)(_)?(_.addEventListener("focusout",t),_.addEventListener("pointerdown",e),E.addEventListener("focusout",t),()=>{_.removeEventListener("focusout",t),_.removeEventListener("pointerdown",e),E.removeEventListener("focusout",t)}):void 0;function e(){U.current=!0,setTimeout((()=>{U.current=!1}))}function t(e){const t=e.relatedTarget,n=e.currentTarget;queueMicrotask((()=>{const r=S(),i=!((0,o.r3)(_,t)||(0,o.r3)(E,t)||(0,o.r3)(t,E)||(0,o.r3)(null==j?void 0:j.portalNode,t)||null!=t&&t.hasAttribute(W("focus-guard"))||D&&((0,o.El)(D.nodesRef.current,r).find((e=>{var n,r;return(0,o.r3)(null==(n=e.context)?void 0:n.elements.floating,t)||(0,o.r3)(null==(r=e.context)?void 0:r.elements.domReference,t)}))||(0,o.C1)(D.nodesRef.current,r).find((e=>{var n,r,i;return[null==(n=e.context)?void 0:n.elements.floating,(0,o.zd)(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(i=e.context)?void 0:i.elements.domReference)===t}))));if(n===_&&G&&fe(G,A),p&&i&&(0,o.AW)((0,o.Me)(G))===(0,o.Me)(G).body){(0,a.Re)(G)&&G.focus();const e=V.current,t=q(),n=t[e]||t[t.length-1]||G;(0,a.Re)(n)&&n.focus()}!R&&m||!t||!i||U.current||t===me()||(B.current=!0,w(!1,e,"focus-out"))}))}}),[r,_,E,G,m,D,j,w,g,p,q,R,S,A]);const Z=i.useRef(null),$=i.useRef(null),X=de([Z,null==j?void 0:j.beforeInsideRef]),J=de([$,null==j?void 0:j.afterInsideRef]);function Q(e){return!r&&f&&m?(0,s.jsx)(ge,{ref:"start"===e?P:F,onClick:e=>w(!1,e.nativeEvent),children:"string"==typeof f?f:"Dismiss"}):null}i.useEffect((()=>{var e,t;if(r)return;if(!E)return;const n=Array.from((null==j||null==(e=j.portalNode)?void 0:e.querySelectorAll("["+W("portal")+"]"))||[]),i=D?(0,o.C1)(D.nodesRef.current,S()):[],s=D&&!m?i.map((e=>{var t;return null==(t=e.context)?void 0:t.elements.floating})):[],a=null==(t=i.find((e=>{var t;return(0,o.Ie)((null==(t=e.context)?void 0:t.elements.domReference)||null)})))||null==(t=t.context)?void 0:t.elements.domReference,l=[E,a,...n,...s,...k(),P.current,F.current,Z.current,$.current,null==j?void 0:j.beforeOutsideRef.current,null==j?void 0:j.afterOutsideRef.current,A.current.includes("reference")||R?_:null].filter((e=>null!=e)),c=m||R?ie(l,!T,T):ie(l);return()=>{c()}}),[r,_,E,m,A,j,R,M,T,D,S,k]),(0,o.Xj)((()=>{if(r||!(0,a.Re)(G))return;const e=(0,o.Me)(G),t=(0,o.AW)(e);queueMicrotask((()=>{const e=Y(G),n=O.current,r=("number"==typeof n?e[n]:n.current)||G,i=(0,o.r3)(G,t);N||i||!y||K(r,{preventScroll:r===G})}))}),[r,y,G,N,Y,O]),(0,o.Xj)((()=>{if(r||!G)return;let e=!1;const t=(0,o.Me)(G),n=(0,o.AW)(t);var i;function s(t){let{reason:n,event:r,nested:i}=t;if(["hover","safe-polygon"].includes(n)&&"mouseleave"===r.type&&(B.current=!0),"outside-press"===n)if(i)B.current=!1,e=!0;else if((0,o.Zj)(r)||(0,o.cr)(r))B.current=!1;else{let t=!1;document.createElement("div").focus({get preventScroll(){return t=!0,!1}}),t?(B.current=!1,e=!0):B.current=!0}}i=n,pe=pe.filter((e=>e.isConnected)),i&&"body"!==(0,a.wk)(i)&&(pe.push(i),pe.length>he&&(pe=pe.slice(-20))),x.on("openchange",s);const c=t.createElement("span");return c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),Object.assign(c.style,oe),H&&_&&_.insertAdjacentElement("afterend",c),()=>{x.off("openchange",s);const n=(0,o.AW)(t),r=(0,o.r3)(E,n)||D&&(0,o.El)(D.nodesRef.current,S()).some((e=>{var t;return(0,o.r3)(null==(t=e.context)?void 0:t.elements.floating,n)})),i=function(){if("boolean"==typeof z.current){const e=_||me();return e&&e.isConnected?e:c}return z.current.current||c}();queueMicrotask((()=>{const s=function(e){const t=(0,o.Tv)();return(0,l.Wq)(e,t)?e:(0,l.ht)(e,t)[0]||e}(i);z.current&&!B.current&&(0,a.Re)(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),c.remove()}))}}),[r,E,G,z,C,x,D,H,_,S]),i.useEffect((()=>{queueMicrotask((()=>{B.current=!1}))}),[r]),(0,o.Xj)((()=>{if(!r&&j)return j.setFocusManagerState({modal:m,closeOnFocusOut:g,open:y,onOpenChange:w,domReference:_}),()=>{j.setFocusManagerState(null)}}),[r,j,m,y,w,g,_]),(0,o.Xj)((()=>{r||G&&fe(G,A)}),[r,G,A]);const ee=!r&&M&&(!m||!R)&&(H||m);return(0,s.jsxs)(s.Fragment,{children:[ee&&(0,s.jsx)(se,{"data-type":"inside",ref:X,onFocus:e=>{if(m){const e=Y();K("reference"===c[0]?e[0]:e[e.length-1])}else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(B.current=!1,(0,o.dE)(e,j.portalNode)){const e=(0,o.k0)(_);null==e||e.focus()}else{var t;null==(t=j.beforeOutsideRef.current)||t.focus()}}}),!R&&Q("start"),n,Q("end"),ee&&(0,s.jsx)(se,{"data-type":"inside",ref:J,onFocus:e=>{if(m)K(Y()[0]);else if(null!=j&&j.preserveTabOrder&&j.portalNode)if(g&&(B.current=!0),(0,o.dE)(e,j.portalNode)){const e=(0,o.e8)(_);null==e||e.focus()}else{var t;null==(t=j.afterOutsideRef.current)||t.focus()}}})]})}let be=0;let ye=()=>{};const we=i.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return(0,o.Xj)((()=>{if(n)return be++,1===be&&(ye=function(){const e=/iP(hone|ad|od)|iOS/.test((0,o.Xf)()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,s=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,l;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(l=window.visualViewport)?void 0:l.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s))}}()),()=>{be--,0===be&&ye()}}),[n]),(0,s.jsx)("div",{ref:t,...r,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}})}));function xe(e){return(0,a.Re)(e.target)&&"BUTTON"===e.target.tagName}function Ce(e){return(0,o.j7)(e)}function _e(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:s,elements:{domReference:l}}=e,{enabled:c=!0,event:u="click",toggle:d=!0,ignoreMouse:h=!1,keyboardHandlers:p=!0,stickIfOpen:m=!0}=t,f=i.useRef(),g=i.useRef(!1),v=i.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==u&&((0,o.r)(t,!0)&&h||(!n||!d||s.current.openEvent&&m&&"mousedown"!==s.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===u&&f.current?f.current=void 0:(0,o.r)(t,!0)&&h||(!n||!d||s.current.openEvent&&m&&"click"!==s.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!p||xe(e)||(" "!==e.key||Ce(l)||(e.preventDefault(),g.current=!0),function(e){return(0,a.Re)(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!d,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!p||xe(e)||Ce(l)||" "===e.key&&g.current&&(g.current=!1,r(!n||!d,e.nativeEvent,"click"))}})),[s,l,u,h,p,r,n,m,d]);return i.useMemo((()=>c?{reference:v}:{}),[c,v])}const Ee={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Se={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ke=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Ne(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:s,dataRef:l}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:h="pointerdown",referencePress:p=!1,referencePressEvent:m="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:v}=t,b=L(),y=(0,o.iW)("function"==typeof d?d:()=>!1),w="function"==typeof d?y:d,x=i.useRef(!1),C=i.useRef(!1),{escapeKey:_,outsidePress:E}=ke(g),{escapeKey:S,outsidePress:k}=ke(v),N=i.useRef(!1),R=(0,o.iW)((e=>{var t;if(!n||!c||!u||"Escape"!==e.key)return;if(N.current)return;const i=null==(t=l.current.floatingContext)?void 0:t.nodeId,s=b?(0,o.El)(b.nodesRef.current,i):[];if(!_&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,(0,o.MM)(e)?e.nativeEvent:e,"escape-key")})),I=(0,o.iW)((e=>{var t;const n=()=>{var t;R(e),null==(t=(0,o.U9)(e))||t.removeEventListener("keydown",n)};null==(t=(0,o.U9)(e))||t.addEventListener("keydown",n)})),M=(0,o.iW)((e=>{var t;const n=x.current;x.current=!1;const i=C.current;if(C.current=!1,"click"===h&&i)return;if(n)return;if("function"==typeof w&&!w(e))return;const c=(0,o.U9)(e),u="["+W("inert")+"]",d=(0,o.Me)(s.floating).querySelectorAll(u);let p=(0,a.kK)(c)?c:null;for(;p&&!(0,a.Py)(p);){const e=(0,a.Ow)(p);if((0,a.Py)(e)||!(0,a.kK)(e))break;p=e}if(d.length&&(0,a.kK)(c)&&!(0,o.ex)(c)&&!(0,o.r3)(c,s.floating)&&Array.from(d).every((e=>!(0,o.r3)(p,e))))return;if((0,a.Re)(c)&&O){const t=(0,a.Py)(c),n=(0,a.Dx)(c),r=/auto|scroll/,i=t||r.test(n.overflowX),o=t||r.test(n.overflowY),s=i&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,l=o&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,u="rtl"===n.direction,d=l&&(u?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),h=s&&e.offsetY>c.clientHeight;if(d||h)return}const m=null==(t=l.current.floatingContext)?void 0:t.nodeId,f=b&&(0,o.El)(b.nodesRef.current,m).some((t=>{var n;return(0,o.Pe)(e,null==(n=t.context)?void 0:n.elements.floating)}));if((0,o.Pe)(e,s.floating)||(0,o.Pe)(e,s.domReference)||f)return;const g=b?(0,o.El)(b.nodesRef.current,m):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),T=(0,o.iW)((e=>{var t;const n=()=>{var t;M(e),null==(t=(0,o.U9)(e))||t.removeEventListener(h,n)};null==(t=(0,o.U9)(e))||t.addEventListener(h,n)}));i.useEffect((()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=_,l.current.__outsidePressBubbles=E;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function i(){window.clearTimeout(e),N.current=!0}function d(){e=window.setTimeout((()=>{N.current=!1}),(0,a.Pf)()?5:0)}const p=(0,o.Me)(s.floating);u&&(p.addEventListener("keydown",S?I:R,S),p.addEventListener("compositionstart",i),p.addEventListener("compositionend",d)),w&&p.addEventListener(h,k?T:M,k);let m=[];return f&&((0,a.kK)(s.domReference)&&(m=(0,a.Kx)(s.domReference)),(0,a.kK)(s.floating)&&(m=m.concat((0,a.Kx)(s.floating))),!(0,a.kK)(s.reference)&&s.reference&&s.reference.contextElement&&(m=m.concat((0,a.Kx)(s.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=p.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{u&&(p.removeEventListener("keydown",S?I:R,S),p.removeEventListener("compositionstart",i),p.removeEventListener("compositionend",d)),w&&p.removeEventListener(h,k?T:M,k),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[l,s,u,w,h,n,r,f,c,_,E,R,S,I,M,k,T]),i.useEffect((()=>{x.current=!1}),[w,h]);const A=i.useMemo((()=>({onKeyDown:R,...p&&{[Ee[m]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==m&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}})),[R,r,p,m]),O=i.useMemo((()=>({onKeyDown:R,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Se[h]]:()=>{x.current=!0}})),[R,h]);return i.useMemo((()=>c?{reference:A,floating:O}:{}),[c,A,O])}function Re(e){const{open:t=!1,onOpenChange:n,elements:r}=e,s=O(),a=i.useRef({}),[l]=i.useState((()=>z())),c=null!=P();const[u,d]=i.useState(r.reference),h=(0,o.iW)(((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)})),p=i.useMemo((()=>({setPositionReference:d})),[]),m=i.useMemo((()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference})),[u,r.reference,r.floating]);return i.useMemo((()=>({dataRef:a,open:t,onOpenChange:h,elements:m,events:l,floatingId:s,refs:p})),[t,h,m,l,s,p])}function Ie(e){void 0===e&&(e={});const{nodeId:t}=e,n=Re({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[l,c]=i.useState(null),[d,h]=i.useState(null),p=(null==s?void 0:s.domReference)||l,m=i.useRef(null),f=L();(0,o.Xj)((()=>{p&&(m.current=p)}),[p]);const g=(0,u.YF)({...e,elements:{...s,...d&&{reference:d}}}),v=i.useCallback((e=>{const t=(0,a.kK)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;h(t),g.refs.setReference(t)}),[g.refs]),b=i.useCallback((e=>{((0,a.kK)(e)||null===e)&&(m.current=e,c(e)),((0,a.kK)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,a.kK)(e))&&g.refs.setReference(e)}),[g.refs]),y=i.useMemo((()=>({...g.refs,setReference:b,setPositionReference:v,domReference:m})),[g.refs,b,v]),w=i.useMemo((()=>({...g.elements,domReference:p})),[g.elements,p]),x=i.useMemo((()=>({...g,...r,refs:y,elements:w,nodeId:t})),[g,y,w,t,r]);return(0,o.Xj)((()=>{r.dataRef.current.floatingContext=x;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=x)})),i.useMemo((()=>({...g,context:x,refs:y,elements:w})),[g,y,w,x])}function Me(){return(0,o.V5)()&&(0,o.G6)()}function Te(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:s,dataRef:l,elements:c}=e,{enabled:u=!0,visibleOnly:d=!0}=t,h=i.useRef(!1),p=i.useRef(-1),m=i.useRef(!0);i.useEffect((()=>{if(!u)return;const e=(0,a.Jj)(c.domReference);function t(){!n&&(0,a.Re)(c.domReference)&&c.domReference===(0,o.AW)((0,o.Me)(c.domReference))&&(h.current=!0)}function r(){m.current=!0}function i(){m.current=!1}return e.addEventListener("blur",t),Me()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",i,!0)),()=>{e.removeEventListener("blur",t),Me()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",i,!0))}}),[c.domReference,n,u]),i.useEffect((()=>{if(u)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(h.current=!0)}}),[s,u]),i.useEffect((()=>()=>{V(p)}),[]);const f=i.useMemo((()=>({onMouseLeave(){h.current=!1},onFocus(e){if(h.current)return;const t=(0,o.U9)(e.nativeEvent);if(d&&(0,a.kK)(t))if(Me()&&!e.relatedTarget){if(!m.current&&!(0,o.j7)(t))return}else if(!(0,o.WL)(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){h.current=!1;const t=e.relatedTarget,n=e.nativeEvent,i=(0,a.kK)(t)&&t.hasAttribute(W("focus-guard"))&&"outside"===t.getAttribute("data-type");p.current=window.setTimeout((()=>{var e;const s=(0,o.AW)(c.domReference?c.domReference.ownerDocument:document);(t||s!==c.domReference)&&((0,o.r3)(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,s)||(0,o.r3)(c.domReference,s)||i||r(!1,n,"focus"))}))}})),[l,c.domReference,r,d]);return i.useMemo((()=>u?{reference:f}:{}),[u,f])}function Ae(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[g]:t,[v]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[f]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var s;i&&[g,v].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(s=r.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function Oe(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=i.useCallback((t=>Ae(t,e,"reference")),t),s=i.useCallback((t=>Ae(t,e,"floating")),n),a=i.useCallback((t=>Ae(t,e,"item")),r);return i.useMemo((()=>({getReferenceProps:o,getFloatingProps:s,getItemProps:a})),[o,s,a])}const ze="Escape";function De(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function je(e,t){return De(t,e===w||e===x,e===b||e===y)}function Pe(e,t,n){return De(t,e===x,n?e===b:e===y)||"Enter"===e||" "===e||""===e}function Le(e,t,n){return De(t,n?e===b:e===y,e===x)}function Fe(e,t,n,r){return"both"===t||"horizontal"===t&&r&&r>1?e===ze:De(t,n?e===y:e===b,e===w)}function Be(e,t){const{open:n,onOpenChange:r,elements:s,floatingId:l}=e,{listRef:c,activeIndex:u,onNavigate:d=(()=>{}),enabled:h=!0,selectedIndex:p=null,allowEscape:m=!1,loop:f=!1,nested:g=!1,rtl:v=!1,virtual:w=!1,focusItemOnOpen:C="auto",focusItemOnHover:_=!0,openOnArrowKeyDown:E=!0,disabledIndices:S,orientation:k="vertical",parentOrientation:N,cols:R=1,scrollItemIntoView:I=!0,virtualItemRef:M,itemSizes:T,dense:A=!1}=t;const O=(0,o.zd)(s.floating),z=(0,o.II)(O),D=P(),j=L();(0,o.Xj)((()=>{e.dataRef.current.orientation=k}),[e,k]);const F=(0,o.iW)((()=>{d(-1===W.current?null:W.current)})),B=(0,o.Ie)(s.domReference),U=i.useRef(C),W=i.useRef(null!=p?p:-1),V=i.useRef(null),H=i.useRef(!0),G=i.useRef(F),q=i.useRef(!!s.floating),Y=i.useRef(n),Z=i.useRef(!1),$=i.useRef(!1),X=(0,o.II)(S),J=(0,o.II)(n),Q=(0,o.II)(I),ee=(0,o.II)(p),[te,ne]=i.useState(),[re,ie]=i.useState(),oe=(0,o.iW)((()=>{function e(e){var t;w?(null!=(t=e.id)&&t.endsWith("-fui-option")&&(e.id=l+"-"+Math.random().toString(16).slice(2,10)),ne(e.id),null==j||j.events.emit("virtualfocus",e),M&&(M.current=e)):K(e,{sync:Z.current,preventScroll:!0})}const t=c.current[W.current],n=$.current;t&&e(t);(Z.current?e=>e():requestAnimationFrame)((()=>{const r=c.current[W.current]||t;if(!r)return;t||e(r);const i=Q.current;i&&ae&&(n||!H.current)&&(null==r.scrollIntoView||r.scrollIntoView("boolean"==typeof i?{block:"nearest",inline:"nearest"}:i))}))}));(0,o.Xj)((()=>{h&&(n&&s.floating?U.current&&null!=p&&($.current=!0,W.current=p,F()):q.current&&(W.current=-1,G.current()))}),[h,n,s.floating,p,F]),(0,o.Xj)((()=>{if(h&&n&&s.floating)if(null==u){if(Z.current=!1,null!=ee.current)return;if(q.current&&(W.current=-1,oe()),(!Y.current||!q.current)&&U.current&&(null!=V.current||!0===U.current&&null==V.current)){let e=0;const t=()=>{if(null==c.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else W.current=null==V.current||Pe(V.current,k,v)||g?(0,o.h$)(c,X.current):(0,o.zc)(c,X.current),V.current=null,F()};t()}}else(0,o.VP)(c,u)||(W.current=u,oe(),$.current=!1)}),[h,n,s.floating,u,ee,g,c,k,v,F,oe,X]),(0,o.Xj)((()=>{var e;if(!h||s.floating||!j||w||!q.current)return;const t=j.nodesRef.current,n=null==(e=t.find((e=>e.id===D)))||null==(e=e.context)?void 0:e.elements.floating,r=(0,o.AW)((0,o.Me)(s.floating)),i=t.some((e=>e.context&&(0,o.r3)(e.context.elements.floating,r)));n&&!i&&H.current&&n.focus({preventScroll:!0})}),[h,s.floating,j,D,w]),(0,o.Xj)((()=>{if(h&&j&&w&&!D)return j.events.on("virtualfocus",e),()=>{j.events.off("virtualfocus",e)};function e(e){ie(e.id),M&&(M.current=e)}}),[h,j,w,D,M]),(0,o.Xj)((()=>{G.current=F,Y.current=n,q.current=!!s.floating})),(0,o.Xj)((()=>{n||(V.current=null)}),[n]);const se=null!=u,ae=i.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&W.current!==t&&(W.current=t,F())}return{onFocus(t){let{currentTarget:n}=t;Z.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},..._&&{onMouseMove(t){let{currentTarget:n}=t;Z.current=!0,$.current=!1,e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;H.current&&"touch"!==t&&(Z.current=!0,W.current=-1,F(),w||null==(n=z.current)||n.focus({preventScroll:!0}))}}}}),[n,z,_,c,F,w]),le=i.useCallback((()=>{var e;return null!=N?N:null==j||null==(e=j.nodesRef.current.find((e=>e.id===D)))||null==(e=e.context)||null==(e=e.dataRef)?void 0:e.current.orientation}),[D,j,N]),ce=(0,o.iW)((e=>{if(H.current=!1,Z.current=!0,229===e.which)return;if(!J.current&&e.currentTarget===z.current)return;if(g&&Fe(e.key,k,v,R))return je(e.key,le())||(0,o.p7)(e),r(!1,e.nativeEvent,"list-navigation"),void((0,a.Re)(s.domReference)&&(w?null==j||j.events.emit("virtualfocus",s.domReference):s.domReference.focus()));const t=W.current,i=(0,o.h$)(c,S),l=(0,o.zc)(c,S);if(B||("Home"===e.key&&((0,o.p7)(e),W.current=i,F()),"End"===e.key&&((0,o.p7)(e),W.current=l,F())),R>1){const t=T||Array.from({length:c.current.length},(()=>({width:1,height:1}))),n=(0,o.fe)(t,R,A),r=n.findIndex((e=>null!=e&&!(0,o.Nm)(c,e,S))),s=n.reduce(((e,t,n)=>null==t||(0,o.Nm)(c,t,S)?e:n),-1),a=n[(0,o.xR)({current:n.map((e=>null!=e?c.current[e]:null))},{event:e,orientation:k,loop:f,rtl:v,cols:R,disabledIndices:(0,o.w_)([...S||c.current.map(((e,t)=>(0,o.Nm)(c,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:s,prevIndex:(0,o.XH)(W.current>l?i:W.current,t,n,R,e.key===x?"bl":e.key===(v?b:y)?"tr":"tl"),stopEvent:!0})];if(null!=a&&(W.current=a,F()),"both"===k)return}if(je(e.key,k)){if((0,o.p7)(e),n&&!w&&(0,o.AW)(e.currentTarget.ownerDocument)===e.currentTarget)return W.current=Pe(e.key,k,v)?i:l,void F();Pe(e.key,k,v)?W.current=f?t>=l?m&&t!==c.current.length?-1:i:(0,o.aF)(c,{startingIndex:t,disabledIndices:S}):Math.min(l,(0,o.aF)(c,{startingIndex:t,disabledIndices:S})):W.current=f?t<=i?m&&-1!==t?c.current.length:l:(0,o.aF)(c,{startingIndex:t,decrement:!0,disabledIndices:S}):Math.max(i,(0,o.aF)(c,{startingIndex:t,decrement:!0,disabledIndices:S})),(0,o.VP)(c,W.current)&&(W.current=-1),F()}})),ue=i.useMemo((()=>w&&n&&se&&{"aria-activedescendant":re||te}),[w,n,se,re,te]),de=i.useMemo((()=>({"aria-orientation":"both"===k?void 0:k,...B?{}:ue,onKeyDown:ce,onPointerMove(){H.current=!0}})),[ue,ce,k,B]),he=i.useMemo((()=>{function e(e){"auto"===C&&(0,o.Zj)(e.nativeEvent)&&(U.current=!0)}function t(e){U.current=C,"auto"===C&&(0,o.cr)(e.nativeEvent)&&(U.current=!0)}return{...ue,onKeyDown(e){H.current=!1;const t=e.key.startsWith("Arrow"),i=["Home","End"].includes(e.key),s=t||i,a=Le(e.key,k,v),l=Fe(e.key,k,v,R),u=Le(e.key,le(),v),d=je(e.key,k),h=(g?u:d)||"Enter"===e.key||""===e.key.trim();if(w&&n){const t=null==j?void 0:j.nodesRef.current.find((e=>null==e.parentId)),n=j&&t?(0,o.m_)(j.nodesRef.current,t.id):null;if(s&&n&&M){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(a||l){var m,f;const r=(null==(m=n.context)?void 0:m.elements.domReference)===e.currentTarget,i=l&&!r?null==(f=n.context)?void 0:f.elements.domReference:a?c.current.find((e=>(null==e?void 0:e.id)===te)):null;i&&((0,o.p7)(e),i.dispatchEvent(t),ie(void 0))}var b;if((d||i)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return(0,o.p7)(e),void(null==(b=n.context.elements.domReference)||b.dispatchEvent(t))}return ce(e)}if(n||E||!t){if(h){const t=je(e.key,le());V.current=g&&t?null:e.key}g?u&&((0,o.p7)(e),n?(W.current=(0,o.h$)(c,X.current),F()):r(!0,e.nativeEvent,"list-navigation")):d&&(null!=p&&(W.current=p),(0,o.p7)(e),!n&&E?r(!0,e.nativeEvent,"list-navigation"):ce(e),n&&F())}},onFocus(){n&&!w&&(W.current=-1,F())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}}),[te,ue,R,ce,X,C,c,g,F,r,n,E,k,le,v,p,j,w,M]);return i.useMemo((()=>h?{reference:he,floating:de,item:ae}:{}),[h,he,de,ae])}const Ue=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function We(e,t){var n,r;void 0===t&&(t={});const{open:s,elements:a,floatingId:l}=e,{enabled:c=!0,role:u="dialog"}=t,d=O(),h=(null==(n=a.domReference)?void 0:n.id)||d,p=i.useMemo((()=>{var e;return(null==(e=(0,o.zd)(a.floating))?void 0:e.id)||l}),[a.floating,l]),m=null!=(r=Ue.get(u))?r:u,f=null!=P(),g=i.useMemo((()=>"tooltip"===m||"label"===u?{["aria-"+("label"===u?"labelledby":"describedby")]:s?p:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":"alertdialog"===m?"dialog":m,"aria-controls":s?p:void 0,..."listbox"===m&&{role:"combobox"},..."menu"===m&&{id:h},..."menu"===m&&f&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}}),[m,p,f,s,h,u]),v=i.useMemo((()=>{const e={id:p,...m&&{role:m}};return"tooltip"===m||"label"===u?e:{...e,..."menu"===m&&{"aria-labelledby":h}}}),[m,p,h,u]),b=i.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:p+"-fui-option"}};switch(u){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,"aria-selected":n}}return{}}),[p,u]);return i.useMemo((()=>c?{reference:g,floating:v,item:b}:{}),[c,g,v,b])}function Ve(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:s=250}=t,a=("number"==typeof s?s:s.close)||0,[l,u]=i.useState("unmounted"),d=function(e,t){const[n,r]=i.useState(e);return e&&!n&&r(!0),i.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,a);return d||"close"!==l||u("unmounted"),(0,o.Xj)((()=>{if(r){if(n){u("initial");const e=requestAnimationFrame((()=>{c.flushSync((()=>{u("open")}))}));return()=>{cancelAnimationFrame(e)}}u("close")}}),[n,r]),{isMounted:d,status:l}}function He(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,s=o-1;e<o;s=e++){const[o,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-o)*(r-a)/(c-a)+o&&(i=!i)}return i}function Ge(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,o=!1,s=null,l=null,c=performance.now();const u=e=>{let{x:n,y:u,placement:d,elements:h,onClose:p,nodeId:m,tree:f}=e;return function(e){function g(){clearTimeout(i),p()}if(clearTimeout(i),!h.domReference||!h.floating||null==d||null==n||null==u)return;const{clientX:v,clientY:b}=e,y=[v,b],w=function(e){return"composedPath"in e?e.composedPath()[0]:e.target}(e),x="mouseleave"===e.type,C=$(h.floating,w),_=$(h.domReference,w),E=h.domReference.getBoundingClientRect(),S=h.floating.getBoundingClientRect(),k=d.split("-")[0],N=n>S.right-S.width/2,R=u>S.bottom-S.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,E),M=S.width>E.width,T=S.height>E.height,A=(M?E:S).left,O=(M?E:S).right,z=(T?E:S).top,D=(T?E:S).bottom;if(C&&(o=!0,!x))return;if(_&&(o=!1),_&&!x)return void(o=!0);if(x&&(0,a.kK)(e.relatedTarget)&&$(h.floating,e.relatedTarget))return;if(f&&function(e,t,n){void 0===n&&(n=!0);let r=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),i=r;for(;i.length;)i=n?e.filter((e=>{var t;return null==(t=i)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})):e,r=r.concat(i);return r}(f.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&u>=E.bottom-1||"bottom"===k&&u<=E.top+1||"left"===k&&n>=E.right-1||"right"===k&&n<=E.left+1)return g();let j=[];switch(k){case"top":j=[[A,E.top+1],[A,S.bottom-1],[O,S.bottom-1],[O,E.top+1]];break;case"bottom":j=[[A,S.top+1],[A,E.bottom-1],[O,E.bottom-1],[O,S.top+1]];break;case"left":j=[[S.right-1,D],[S.right-1,z],[E.left+1,z],[E.left+1,D]];break;case"right":j=[[E.right-1,D],[E.right-1,z],[S.left+1,z],[S.left+1,D]]}if(!He([v,b],j)){if(o&&!I)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-c;if(null===s||null===l||0===r)return s=e,l=t,c=n,null;const i=e-s,o=t-l,a=Math.sqrt(i*i+o*o);return s=e,l=t,c=n,a/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}He([v,b],function(e){let[n,r]=e;switch(k){case"top":return[[M?n+t/2:N?n+4*t:n-4*t,r+t+1],[M?n-t/2:N?n+4*t:n-4*t,r+t+1],...[[S.left,N||M?S.bottom-t:S.top],[S.right,N?M?S.bottom-t:S.top:S.bottom-t]]];case"bottom":return[[M?n+t/2:N?n+4*t:n-4*t,r-t],[M?n-t/2:N?n+4*t:n-4*t,r-t],...[[S.left,N||M?S.top+t:S.bottom],[S.right,N?M?S.top+t:S.bottom:S.top+t]]];case"left":{const e=[n+t+1,T?r+t/2:R?r+4*t:r-4*t],i=[n+t+1,T?r-t/2:R?r+4*t:r-4*t];return[...[[R||T?S.right-t:S.left,S.top],[R?T?S.right-t:S.left:S.right-t,S.bottom]],e,i]}case"right":return[[n-t,T?r+t/2:R?r+4*t:r-4*t],[n-t,T?r-t/2:R?r+4*t:r-4*t],...[[R||T?S.left+t:S.right,S.top],[R?T?S.left+t:S.right:S.left+t,S.bottom]]]}}([n,u]))?!o&&r&&(i=window.setTimeout(g,40)):g()}}};return u.__options={blockPointerEvents:n},u}},62671:(e,t,n)=>{"use strict";n.d(t,{M:()=>u});var r=n(52322),i=n(2784),o=n(23608),s=n(78567);const a=(0,n(89393).Ge)("action-tooltip"),l=500,c=0;function u({title:e,description:t,hotkey:n,openDelay:u=l,closeDelay:d=c,className:h,...p}){const m=i.useMemo((()=>(0,r.jsxs)(i.Fragment,{children:[(0,r.jsxs)("div",{className:a("heading"),children:[(0,r.jsx)("div",{className:a("title"),children:e}),n&&(0,r.jsx)(o.q,{view:"dark",value:n,className:a("hotkey")})]}),t&&(0,r.jsx)("div",{className:a("description"),children:t})]})),[e,t,n]);return(0,r.jsx)(s.u,{...p,role:"label",content:m,openDelay:u,closeDelay:d,className:a(null,h)})}},84107:(e,t,n)=>{"use strict";n.d(t,{s:()=>_});var r=n(52322),i=n(28786),o=n(19810),s=n(28930),a=n(70502),l=n(89393),c=n(2784),u=n(67003),d=n(14920),h=n(97777),p=n(85545),m=n(67028);const f=(0,h.e)({en:p,ru:m},"ActionsPanel");var g=n(3440);var v=n(38690);const b="data-observer-id",y=(e,t)=>{const n=Math.max(0,void 0===t?4:t),r=c.useMemo((()=>e.every((e=>e.collapsed))),[e]),i=c.useMemo((()=>e.map((({id:e})=>e)).join("/")+n),[e,n]),[o,s]=c.useMemo((()=>{const t=[],r=[];return e.forEach((e=>{t.length<n&&!e.collapsed?t.push(e):r.push(e)})),[t,r]}),[e,n]),{parentRef:a,visibilityMap:l,offset:u}=(e=>{const t=(0,v.gm)(),n=c.useRef(null),[r,i]=c.useState({}),[o,s]=c.useState(0),a=c.useCallback((e=>{const r={};let o,a,l=0;e.forEach((e=>{const t=e.target.getAttribute(b);t&&(e.isIntersecting?(o=e,r[t]=!0):(a||(a=e),r[t]=!1))}));const c=n.current?.getBoundingClientRect();if(c&&a){const e=a.target.getBoundingClientRect();l="ltr"===t?e.left-c.left:c.right-e.right}else if(c&&o){const e=o.target.getBoundingClientRect();l="ltr"===t?e.right-c.left+4:c.right-e.left+4}i((e=>({...e,...r}))),s(l)}),[t]);return c.useEffect((()=>{i({});const e=new IntersectionObserver(a,{root:n.current,threshold:1});return Array.from(n.current?.children||[]).forEach((t=>{t.hasAttribute(b)&&e.observe(t)})),()=>e.disconnect()}),[a,e]),{parentRef:n,visibilityMap:r,offset:o}})(i),d=(({buttonActions:e,restActions:t,visibilityMap:n})=>{const r=[...e.filter((e=>!n[e.id])),...t],i=g(r,(e=>e.dropdown.group)),o=new Set,s=[];for(const e of r){const t=e.dropdown.group;void 0!==t?o.has(t)||(o.add(t),s.push(i[t].map((e=>e.dropdown.item)))):s.push(e.dropdown.item)}return s})({buttonActions:o,restActions:s,visibilityMap:l}),h=r||0===n;return{buttonActions:o,dropdownItems:d,parentRef:a,offset:h?0:u,visibilityMap:l,showDropdown:(Object.keys(l).length>0||h)&&d.length>0}},w=(0,l.Ge)("actions-panel-collapse"),x=({actions:e,maxRowActions:t})=>{const{buttonActions:n,dropdownItems:i,parentRef:a,offset:l,visibilityMap:h,showDropdown:p}=y(e,t);return(0,r.jsxs)("div",{className:w(),children:[(0,r.jsx)("div",{className:w("container"),ref:a,children:n.map((e=>{const{id:t}=e,n={[b]:t},i=!1===h[t],s=Array.isArray(e.dropdown.item.items)?(0,r.jsx)(d.h,{size:"s",items:e.dropdown.item.items,renderSwitcher:({onClick:t})=>(0,r.jsx)(o.z,{view:"flat-contrast",size:"m",...e.button.props,onClick:t}),onSwitcherClick:e.button.props.onClick}):(0,r.jsx)(o.z,{view:"flat-contrast",size:"m",...e.button.props});return(0,c.createElement)("div",{className:w("button-action-wrapper",{invisible:i}),...n,key:t},s)}))}),p&&(0,r.jsxs)(c.Fragment,{children:[(0,r.jsx)("div",{className:w("menu-placeholder")}),(0,r.jsx)("div",{className:w("menu-wrapper"),style:{insetInlineStart:l},children:(0,r.jsx)(d.h,{size:"s",items:i,renderSwitcher:({onClick:e})=>(0,r.jsx)(o.z,{view:"flat-contrast",size:"m","aria-label":f("label_more"),onClick:e,children:(0,r.jsx)(s.J,{data:u.Z})})})})]})]})},C=(0,l.Ge)("actions-panel"),_=({className:e,actions:t,onClose:n,renderNote:l,noteClassName:c,qa:u,maxRowActions:d})=>(0,r.jsxs)("div",{className:C(null,e),"data-qa":u,children:["function"==typeof l&&(0,r.jsx)(a.xv,{className:C("note-wrapper",c),as:"div",color:"light-primary",variant:"subheader-2",ellipsis:!0,children:l()}),(0,r.jsx)(x,{actions:t,maxRowActions:d}),"function"==typeof n&&(0,r.jsx)(o.z,{view:"flat-contrast",size:"m",onClick:n,className:C("button-close"),"aria-label":f("label_close"),children:(0,r.jsx)(s.J,{data:i.Z},"icon")})]})},31385:(e,t,n)=>{"use strict";n.d(t,{b:()=>v});var r=n(52322),i=n(28786),o=n(19810),s=n(120),a=n(28930),l=n(70502),c=n(21156),u=n(47952),d=n(53570),h=n(82984),p=n(16882),m=n(93989),f=n(44684),g=n(55296);const v=e=>{const{theme:t="normal",view:n="filled",layout:u="vertical",message:d,className:p,corners:m,style:b,onClose:y,align:w,qa:x}=e;return(0,r.jsx)(h.z,{layout:u,view:n,children:(0,r.jsx)(s.Z,{style:b,className:(0,f.r)({corners:m},(0,c.W0)({py:4,px:5},p)),theme:t,view:n,qa:x,children:(0,r.jsxs)(c.kC,{gap:"3",alignItems:w,children:[void 0===e.icon?(0,r.jsx)(v.Icon,{theme:t,view:n}):e.icon,(0,r.jsxs)(c.kC,{direction:"vertical"===u?"column":"row",gap:"5",grow:!0,children:[(0,r.jsx)(c.kC,{gap:"2",grow:!0,className:(0,f.r)("text-content"),children:(0,r.jsxs)(c.kC,{direction:"column",gap:"1",grow:!0,justifyContent:w,children:["string"==typeof e.title?(0,r.jsx)(v.Title,{text:e.title}):e.title,d]})}),Array.isArray(e.actions)?(0,r.jsx)(v.Actions,{items:e.actions}):e.actions]}),y&&(0,r.jsx)(o.z,{view:"flat",className:(0,f.r)("close-btn"),onClick:y,"aria-label":(0,g.Z)("label_close"),children:(0,r.jsx)(a.J,{data:i.Z,size:f.C,className:(0,l.V$)({color:"secondary"})})})]})})})};v.Icon=p.z,v.Title=m.C,v.Actions=d.G,v.Action=u.q},85007:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(52322),i=n(82714),o=n(28930);const s=(0,n(89393).Ge)("arrow-toggle");function a({size:e=16,direction:t="bottom",className:n,qa:a}){return(0,r.jsx)("span",{style:{width:e,height:e},className:s({direction:t},n),"data-qa":a,children:(0,r.jsx)(o.J,{data:i.Z,size:e})})}},31519:(e,t,n)=>{"use strict";n.d(t,{DV:()=>i,JS:()=>s,eQ:()=>o});var r=n(89393);const i={"3xs":16,"2xs":20,xs:24,s:28,m:32,l:42,xl:50},o="m",s=(0,r.Ge)("avatar")},85189:(e,t,n)=>{"use strict";n.d(t,{DV:()=>r.DV,qE:()=>d,eQ:()=>r.eQ,_W:()=>c._});var r=n(31519),i=n(52322),o=n(2784),s=n(31984),a=n(22919),l=n(3334),c=n(10153),u=n(98116);const d=o.forwardRef(((e,t)=>{const{size:n=r.eQ,theme:o="normal",view:c="filled",backgroundColor:d,borderColor:h,title:p,className:m,style:f,qa:g}=e,v={backgroundColor:d,color:h,...f};return(0,i.jsx)("div",{className:(0,r.JS)({size:n,theme:o,view:c,"with-border":Boolean(h)},m),title:p,role:"img",style:v,"data-qa":g,ref:t,...(0,s.z)(e,{labelable:!0}),children:"imgUrl"in e&&e.imgUrl?(0,i.jsx)(l.F,{imgUrl:e.imgUrl,fallbackImgUrl:e.fallbackImgUrl,sizes:e.sizes,srcSet:e.srcSet,alt:e.alt||p,loading:e.loading,withImageBorder:e.withImageBorder,size:n}):"icon"in e&&e.icon?(0,i.jsx)(a.f,{icon:e.icon,color:e.color,size:n}):"text"in e&&e.text?(0,i.jsx)(u.M,{text:e.text,color:e.color,size:n}):null})}));d.displayName="Avatar"},12049:(e,t,n)=>{"use strict";n.d(t,{J:()=>h});var r=n(52322),i=n(2784),o=n(89393),s=n(34966),a=n(37977),l=n(7648),c=n(37894);const u=(0,o.Ge)("avatar-stack"),d=i.forwardRef((({max:e=c.W,total:t,overlapSize:n="s",size:o,children:l,className:d,renderMore:h},p)=>{const m=[],f=t?Math.max(t,e):i.Children.count(l);let g=e<1?1:e;g=f-g>1?g:f;const v=f-g;i.Children.forEach(l,(e=>{if(!i.isValidElement(e))return;const t=(0,r.jsx)(s.I,{children:e},m.length);m.length<g&&m.unshift(t)}));const b=v>0;return(0,r.jsxs)("ul",{className:u({"overlap-size":n},d),role:"list",ref:p,children:[b?(0,r.jsx)(s.I,{children:h?h({count:v}):(0,r.jsx)(a.j,{count:v,size:o})},"more-button"):null,m]})}));d.displayName="AvatarStack";const h=Object.assign(d,{More:a.j,MoreButton:l.C})},21042:(e,t,n)=>{"use strict";n.d(t,{O:()=>p,B:()=>d});var r=n(52322),i=n(2784),o=n(94822),s=n(31984),a=n(48220),l=n(73888),c=n(64205);function u(e,t){const n=(0,s.z)(e,{labelable:!0}),{href:i,hrefLang:o,target:u,rel:d,download:h,ping:p,referrerPolicy:m,children:f,__disabled:g,__current:v,__onAction:b,__index:y,...w}=e,x={onClick:e=>{g?e.preventDefault():("function"==typeof w.onClick&&w.onClick(e),"function"==typeof b&&b())},"aria-disabled":!!g||void 0};i?(x.href=i,x.hrefLang=o,x.target=u,x.rel="_blank"!==u||d?d:"noopener noreferrer",x.download=h,x.ping=p,x.referrerPolicy=m,x.tabIndex=g?-1:void 0):(x.role="link",x.tabIndex=g?void 0:0,x.onKeyDown=e=>{g?e.preventDefault():("function"==typeof w.onKeyDown&&w.onKeyDown(e),"Enter"===e.key&&"function"==typeof b&&b())}),v&&(x["aria-current"]=e["aria-current"]??"page");const C=i?"a":"span",{isMenu:_,getItemProps:E,listItemsRef:S,activeIndex:k,popupStyle:N}=(0,a.X)();if(_){const t=!g&&k===y;return(0,r.jsx)(l.G,{ref:e=>{S.current[y??0]=e},nestedLevel:"staircase"===N?y:void 0,active:t,size:"m",className:(0,c.b)("menu-link",e.className),component:C,componentProps:E({...w,...n,...x,role:"menuitem",tabIndex:t?0:-1}),disabled:g,children:f})}return(0,r.jsx)(C,{...w,...n,...x,ref:t,className:(0,c.b)("link",{"is-current":v,"is-disabled":g&&!v},e.className),children:f})}u.displayName="Breadcrumbs.Item";const d=i.forwardRef(u);var h=n(46369);const p=i.forwardRef((function(e,t){const n=i.useRef(null),l=(0,o.cR)(t,n),u=i.useRef(null),p=[];i.Children.forEach(e.children,((e,t)=>{i.isValidElement(e)&&(void 0!==e.key&&null!==e.key||(e=i.cloneElement(e,{key:t})),p.push(e))}));const[m,f]=i.useState(p.length),[g,v]=i.useState(!1),b=i.useCallback((()=>{v(!1),f(p.length)}),[p.length]);(0,o.yU)({ref:n,onResize:b}),(0,o.yU)({ref:e.endContent?u:void 0,onResize:b});const y=i.useRef(null);i.useLayoutEffect((()=>{g&&e.children!==y.current&&(y.current=e.children,v(!1),f(p.length))}),[g,p.length,e.children]),i.useLayoutEffect((()=>{g||(t=>{const r=n.current;if(!r)return;const i=Array.from(r.children),o=u.current;if(o&&i.pop(),0===i.length)return void v(!0);const s=r.offsetWidth-(o?.offsetWidth??0);let a=0,l=0,c=e.maxItems||1/0,d=0;if(e.showRoot){const e=i.shift();e&&(d=e.scrollWidth,l+=d),a++}if(p.length>t){const e=i.shift();e&&(l+=e.offsetWidth),c--}e.showRoot&&l>=s&&(l-=d,a--);const h=i.pop();h&&(l+=Math.min(h.offsetWidth,200),l<s&&a++);for(let e=i.length-1;e>=0&&(l+=i[e].offsetWidth,!(l>=s));e--)a++;a=Math.max(Math.min(c,a),1),a===m?v(!0):f(a)})(m)}));let w=p;if(p.length>m){w=[];const t=[...p];let n=m;if(e.showRoot&&m>1){const e=t.shift();e&&w.push(e),n--}const o=t.slice(0,-n),s=(0,r.jsx)(a.m,{disabled:e.disabled,popupPlacement:e.popupPlacement,popupStyle:e.popupStyle,"data-breadcrumbs-menu-item":!0,children:o.map(((t,n)=>{const r=e.itemComponent??d,o=t.key??n,s={__index:n,__disabled:e.disabled||t.props.disabled,__onAction:()=>{"function"==typeof e.onAction&&e.onAction(o)}};return(0,i.createElement)(r,{...t.props,key:o,...s},t.props.children)}))});w.push(s),w.push(...t.slice(-n))}const x=w.length-1,C=w.map(((t,n)=>{const o=n===x,s=t.key??n,{"data-breadcrumbs-menu-item":a,...l}=t.props;let u;if(a)u=t;else{const t=e.itemComponent??d,n=()=>{"function"==typeof e.onAction&&e.onAction(s)},r={__current:o,__disabled:e.disabled||l.disabled,__onAction:n};u=(0,i.createElement)(t,{...l,key:s,...r},l.children)}return(0,r.jsxs)("li",{className:(0,c.b)("item",{calculating:o&&!g,current:o}),children:[u,o?null:(0,r.jsx)(h.$,{separator:e.separator})]},a?"menu":`item-${s}`)}));return e.endContent&&C.push((0,r.jsx)("li",{ref:u,className:(0,c.b)("item"),children:e.endContent},"end-content")),(0,r.jsx)("ol",{ref:l,...(0,s.z)(e,{labelable:!0}),"data-qa":e.qa,className:(0,c.b)(null,e.className),style:e.style,children:C})}));p.Item=d,p.displayName="Breadcrumbs"},19810:(e,t,n)=>{"use strict";n.d(t,{z:()=>g,E:()=>h});var r=n(52322),i=n(2784),o=n(89393),s=n(50535),a=n(35644),l=n(77823),c=n(38132);const u=(0,o.Ge)("button");function d(){(0,c.O)('[Button.Icon] Physical values (left, right) of "side" property are deprecated. Use logical values (start, end) instead.')}const h=({side:e,className:t,children:n})=>(0,r.jsx)("span",{className:u("icon",{side:p(e)},t),children:(0,r.jsx)("span",{className:u("icon-inner"),children:n})});function p(e){let t=e;return"left"===t&&(d(),t="start"),"right"===t&&(d(),t="end"),t}h.displayName="Button.Icon";const m=(0,o.Ge)("button"),f=i.forwardRef((function(e,t){const{view:n="normal",size:o="m",pin:s="round-round",selected:l,disabled:c=!1,loading:u=!1,width:d,children:h,extraProps:p,qa:f,onClickCapture:g,...v}=e,b={onClickCapture:i.useCallback((e=>{a.Po.publish({componentId:"Button",eventId:"click",domEvent:e,meta:{content:e.currentTarget.textContent,view:n}}),g&&g(e)}),[n,g]),className:m({view:n,size:o,pin:s,selected:l,disabled:c||u,loading:u,width:d},v.className),"data-qa":f};return void 0!==e.component?i.createElement(e.component,{...v,...p,...b,ref:t,"aria-disabled":c??void 0},w(h)):void 0!==e.href?(0,r.jsx)("a",{...v,...p,...b,ref:t,rel:"_blank"!==e.target||v.rel?v.rel:"noopener noreferrer","aria-disabled":c??void 0,children:w(h)}):(0,r.jsx)("button",{...v,...p,...b,ref:t,type:e.type||"button",disabled:c||u,"aria-pressed":l,children:w(h)})})),g=Object.assign(f,{Icon:h}),v=(0,l.s)(h),b=(0,l.s)("span"),y=RegExp(`^${m("icon")}($|\\s+\\w)`);function w(e){const t=i.Children.toArray(e);if(1===t.length){const e=t[0];return v(e)||b(e)&&y.test(e.props.className||"")?e:(0,s.yb)(e)||(0,s.Dc)(e)?(0,r.jsx)(g.Icon,{children:e},"icon"):(0,r.jsx)("span",{className:m("text"),children:e},"text")}{let e,n,o;const a=[];for(const o of t){const t=(0,s.yb)(o)||(0,s.Dc)(o),l=v(o),c=b(o)&&y.test(o.props.className||"");if(t||l||c)if(e||0!==a.length){if(!n&&0!==a.length){const e="icon-end",s="end";n=t?(0,r.jsx)(g.Icon,{side:s,children:o},e):l?i.cloneElement(o,{side:s}):i.cloneElement(o,{className:m("icon",{side:p(s)},o.props.className)})}}else{const n="icon-start",s="start";e=t?(0,r.jsx)(g.Icon,{side:s,children:o},n):l?i.cloneElement(o,{side:s}):i.cloneElement(o,{className:m("icon",{side:p(s)},o.props.className)})}else a.push(o)}return a.length>0&&(o=(0,r.jsx)("span",{className:m("text"),children:a},"text")),[e,n,o]}}},120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(52322),i=n(2784),o=n(94822),s=n(21156);const a=(0,n(89393).Ge)("card"),l=i.forwardRef((function(e,t){const{type:n="container",theme:i,view:l,size:c="m",children:u,className:d,onClick:h,disabled:p,selected:m,...f}=e,g="selection"===n,v="container"===n,b=("action"===n||g)&&Boolean(h)&&!p,y=v?"normal":void 0,w=v||g?"outlined":void 0,x=b?h:void 0,{onKeyDown:C}=(0,o.bV)(h);return(0,r.jsx)(s.xu,{ref:t,role:b?"button":void 0,className:a({theme:i||y,view:l||w,type:n,selected:m,size:c,disabled:p,clickable:b},d),onClick:x,onKeyDown:b?C:void 0,tabIndex:b?0:void 0,...f,children:u})}))},23203:(e,t,n)=>{"use strict";n.d(t,{X:()=>d});var r=n(52322),i=n(2784),o=n(1262),s=n(76115),a=n(89393),l=n(25077),c=n(25539);const u=(0,a.Ge)("checkbox"),d=i.forwardRef((function(e,t){const{size:n="m",indeterminate:i,disabled:a=!1,content:d,children:h,title:p,style:m,className:f,qa:g}=e,{checked:v,inputProps:b}=(0,o.O)(e),y=d||h,w=(0,r.jsxs)("span",{className:u("indicator"),children:[(0,r.jsx)("span",{className:u("icon"),"aria-hidden":!0,children:i?(0,r.jsx)(l.b,{className:u("icon-svg",{type:"dash"})}):(0,r.jsx)(c.I,{className:u("icon-svg",{type:"tick"})})}),(0,r.jsx)("input",{...b,className:u("control")}),(0,r.jsx)("span",{className:u("outline")})]});return(0,r.jsx)(s.J,{ref:t,title:p,style:m,size:n,disabled:a,className:u({size:n,disabled:a,indeterminate:i,checked:v},f),qa:g,control:w,children:y})}))},87297:(e,t,n)=>{"use strict";n.d(t,{m:()=>b});var r=n(52322),i=n(2784),o=n(62671),s=n(19810),a=n(90044),l=n(36813),c=n(89393),u=n(97777),d=n(31464),h=n(49613);const p=(0,u.e)({en:d,ru:h},"ClipboardButton"),m=(0,c.Ge)("clipboard-button"),f=1200,g={xs:12,s:16,m:16,l:16,xl:20},v=e=>{const{size:t="m",hasTooltip:n=!0,tooltipInitialText:i=p("startCopy"),tooltipSuccessText:l=p("endCopy"),status:c,view:u="flat",children:d,iconPosition:h="start",closeDelay:f,onMouseEnter:v,onFocus:b,...y}=e,w=(0,r.jsx)(s.z.Icon,{className:m("icon"),children:(0,r.jsx)(a.K,{size:g[t],status:c})});return(0,r.jsx)(o.M,{title:"success"===c?l:i,disabled:!n,closeDelay:f,children:(0,r.jsxs)(s.z,{view:u,size:t,onMouseEnter:v,onFocus:b,"aria-label":i,...y,children:["start"===h?w:null,d,"end"===h?w:null]})})};function b(e){const{text:t,timeout:n=f,onCopy:o,hasTooltip:s=!0,onMouseEnter:a,onFocus:c,...u}=e,d=i.useRef(),[h,p]=i.useState(void 0),[m,g]=i.useState(!1);i.useEffect((()=>window.clearTimeout(d.current)),[]);const b=i.useCallback(((e,t)=>{o?.(e,t),g(!1),p(n),window.clearTimeout(d.current),d.current=window.setTimeout((()=>{g(!0)}),n)}),[o,n]),y=i.useCallback((()=>{m&&(g(!1),p(void 0))}),[m]),w=i.useCallback((e=>{a?.(e),y()}),[a,y]),x=i.useCallback((e=>{c?.(e),y()}),[c,y]);return(0,r.jsx)(l.h,{text:t,timeout:n,onCopy:b,children:e=>(0,r.jsx)(v,{...u,closeDelay:h,hasTooltip:s&&!m,status:e,onMouseEnter:w,onFocus:x})})}},90044:(e,t,n)=>{"use strict";n.d(t,{K:()=>l});var r=n(52322),i=n(66318),o=n(70701),s=n(71333),a=n(28930);function l({status:e,...t}){return"error"===e?(0,r.jsx)(a.J,{data:i.Z,...t}):"success"===e?(0,r.jsx)(a.J,{data:o.Z,...t}):(0,r.jsx)(a.J,{data:s.Z,...t})}},36813:(e,t,n)=>{"use strict";n.d(t,{h:()=>s});var r=n(2784),i=n(90387);const o="pending";function s(e){const{children:t,text:n,timeout:s,onCopy:a}=e,l=r.useRef(""),[c,u]=r.useState(o),d=r.useRef(),h="function"==typeof t?t(c):t,p=r.useCallback(((e,t)=>{u(t?"success":"error"),window.clearTimeout(d.current),d.current=window.setTimeout((()=>u(o)),s),a?.(e,t)}),[a,s]),m=r.useCallback((e=>{const t="function"==typeof n?n():n;function r(n){t===l.current&&(p(t,n),h.props?.onClick?.(e))}l.current=t,(0,i.z)(t).then((()=>{r(!0)}),(()=>{r(!1)}))}),[h.props,p,n]);if(r.useEffect((()=>()=>window.clearTimeout(d.current)),[]),!r.isValidElement(h))throw new Error("Content must be a valid react element");return r.cloneElement(h,{onClick:m})}},74075:(e,t,n)=>{"use strict";n.d(t,{w:()=>m,i:()=>p});var r=n(52322),i=n(2784),o=n(31984),s=n(77823),a=n(38132),l=n(456),c=n(64841),u=n(54292),d=n(41375),h=n(10278);function p({name:e,children:t,copyText:n,note:i,qa:o}){const{direction:s,keyStyle:a,valueStyle:p}=(0,l.e_)();return(0,r.jsxs)("div",{className:(0,c.b)("item"),"data-qa":o,children:[(0,r.jsx)("dt",{className:(0,c.b)("term-container"),style:a,children:(0,r.jsx)(h.Y,{direction:s,name:e,note:i})}),(0,r.jsx)("dd",{className:(0,c.b)("definition"),style:{...p,lineBreak:"string"==typeof t&&(0,u.G)(20)(t)?"anywhere":void 0},children:(0,r.jsx)(d.S,{copyText:n,children:t})})]})}function m({responsive:e,direction:t="horizontal",nameMaxWidth:n,contentMaxWidth:s,className:u,children:d,qa:h,...p}){const m=function(e){const t=i.Children.toArray(e),n=[];for(const e of t){f(e)?n.push(e):(0,a.O)("[DefinitionList] Only <DefinitionList.Item> components is allowed as children")}return n}(d);return(0,r.jsx)(l.pF,{direction:t,nameMaxWidth:n,contentMaxWidth:s,children:(0,r.jsx)("dl",{...(0,o.z)(p,{labelable:!0}),className:(0,c.b)({responsive:e,vertical:"vertical"===t},u),"data-qa":h,children:m})})}p.displayName="DefinitionListItem";const f=(0,s.s)(p);m.Item=p,m.displayName="DefinitionList"},91253:(e,t,n)=>{"use strict";n.d(t,{Vq:()=>_,a7:()=>h,EA:()=>m,cN:()=>y,fK:()=>x});var r=n(52322),i=n(2784),o=n(55642),s=n(89393),a=n(31984),l=n(18933),c=n(1262),u=n(74038);const d=(0,s.Ge)("dialog-body");function h(e){const{className:t,hasBorders:n=!1}=e,o=i.useRef(null),{disableHeightTransition:s}=i.useContext(u.a);return(0,c.kx)({ref:o,enabled:!s}),(0,r.jsx)("div",{className:d({"has-borders":n}),children:(0,r.jsx)("div",{ref:o,className:d("content",t),children:e.children})})}const p=(0,s.Ge)("dialog-divider");function m({className:e}){return(0,r.jsx)("div",{className:p(null,e)})}var f=n(94822),g=n(19810),v=n(41556);const b=(0,s.Ge)("dialog-footer");function y(e){const{onClickButtonCancel:t,onClickButtonApply:n,loading:o,textButtonCancel:s,textButtonApply:a,propsButtonCancel:l,propsButtonApply:c,preset:d="default",children:h,errorText:p,showError:m=!1,renderButtons:y,className:w}=e,{initialFocusRef:x,initialFocusAction:C,onTooltipEscapeKeyDown:_}=i.useContext(u.a),E=i.useRef(null),S=(0,f.cR)(E,"apply"===C?x:null),k=(0,f.cR)("cancel"===C?x:null),N=(0,r.jsx)("div",{className:b("button",{action:"cancel"}),children:(0,r.jsx)(g.z,{ref:k,view:a?"flat":"normal",size:"l",width:"max",onClick:t,disabled:o,...l,children:s})}),R=i.useCallback(((e,t,n)=>{!e&&t&&"escape-key"===n&&_?.(t)}),[_]),I=(0,r.jsxs)("div",{className:b("button",{action:"apply"}),children:[(0,r.jsx)(g.z,{ref:S,type:"submit",view:"action",size:"l",width:"max",onClick:n,loading:o,className:b("button-apply",{preset:d}),...c,children:a}),p&&(0,r.jsx)(v.G,{open:m,onOpenChange:R,anchorRef:E,placement:"top",disablePortal:!0,hasArrow:!0,children:(0,r.jsx)("div",{className:b("error"),children:p})})]});return(0,r.jsxs)("div",{className:b(null,w),children:[(0,r.jsx)("div",{className:b("children"),children:h}),(0,r.jsx)("div",{className:b("bts-wrapper"),children:y?y(I,N):(0,r.jsxs)(i.Fragment,{children:[s&&N,a&&I]})})]})}const w=(0,s.Ge)("dialog-header");function x(e){const{caption:t="",insertBefore:n,insertAfter:i,className:o,id:s}=e;return(0,r.jsxs)("div",{className:w(null,o),children:[n,(0,r.jsx)("div",{className:w("caption"),id:s,children:t}),i]})}const C=(0,s.Ge)("dialog");function _({container:e,children:t,open:n,disableBodyScrollLock:s=!1,disableEscapeKeyDown:c=!1,disableOutsideClick:d=!1,initialFocus:h,returnFocus:p,keepMounted:m=!1,size:f,contentOverflow:g="visible",className:v,modalClassName:b,hasCloseButton:y=!0,disableHeightTransition:w=!1,onEscapeKeyDown:x,onEnterKeyDown:_,onOpenChange:E,onOutsideClick:S,onClose:k,onTransitionIn:N,onTransitionInComplete:R,onTransitionOut:I,onTransitionOutComplete:M,qa:T,...A}){const O=i.useCallback((e=>{k(e.nativeEvent,"closeButtonClick")}),[k]),z=i.useRef(null),D=i.useMemo((()=>{const e={onTooltipEscapeKeyDown:e=>{E?.(!1,e,"escape-key"),x?.(e),k?.(e,"escapeKeyDown")},disableHeightTransition:w||!n};return"string"==typeof h&&(e.initialFocusRef=z,e.initialFocusAction=h),e}),[h,x,k,E,n,w]);let j;return j="string"==typeof h?z:h,(0,r.jsx)(o.u,{...(0,a.z)(A,{labelable:!0}),open:n,contentOverflow:g,disableBodyScrollLock:s,disableEscapeKeyDown:c,disableOutsideClick:d,disableVisuallyHiddenDismiss:y,initialFocus:j,returnFocus:p,keepMounted:m,onEscapeKeyDown:x,onOutsideClick:S,onClose:k,onEnterKeyDown:_,onTransitionIn:N,onTransitionInComplete:R,onTransitionOut:I,onTransitionOutComplete:M,className:C("modal",b),container:e,qa:T,disableHeightTransition:!0,children:(0,r.jsxs)("div",{className:C({size:f,"has-close":y,"has-scroll":"auto"===g},v),children:[(0,r.jsx)(u.a.Provider,{value:D,children:t}),y&&(0,r.jsx)(l.f,{onClose:O})]})})}_.Footer=y,_.Header=x,_.Body=h,_.Divider=m},34431:(e,t,n)=>{"use strict";n.d(t,{b:()=>r,p:()=>i});const r=(0,n(89393).Ge)("disclosure"),i={SUMMARY:"disclosure-summary",DETAILS:"disclosure-details"}},91402:(e,t,n)=>{"use strict";n.d(t,{Y:()=>d,p:()=>c.p});var r=n(52322),i=n(2784),o=n(77823),s=n(94087),a=n(6544),l=n(98669),c=n(34431);const u=(0,o.s)(l.j),d=i.forwardRef((function(e,t){const{size:n="m",disabled:o=!1,defaultExpanded:d=!1,arrowPosition:h="start",summary:p="",className:m,keepMounted:f=!0,children:g,onUpdate:v=(()=>{}),expanded:b,qa:y}=e,[w,x]=function(e,{disclosureQa:t}){const n=i.Children.toArray(e);let o,s;const c=[];for(const e of n){if(u(e)){if(o)throw new Error("Only one <Disclosure.Summary> component is allowed");o=e}else c.push(e)}c.length>0&&(s=(0,r.jsx)(a.P,{qa:t&&`${t}-details`,children:c}));o||(o=(0,r.jsx)(l.j,{qa:t&&`${t}-summary`,children:e=>(0,r.jsx)(l.B,{...e})}));return[o,s]}(g,{disclosureQa:y});return(0,r.jsx)(s.Th,{disabled:o,defaultExpanded:d,expanded:b,keepMounted:f,size:n,summary:p,arrowPosition:h,onUpdate:v,children:(0,r.jsxs)("section",{ref:t,className:(0,c.b)({size:n},m),"data-qa":y,children:[w,x]})})}));d.Summary=l.j,d.displayName="Disclosure"},91219:(e,t,n)=>{"use strict";n.d(t,{i:()=>l});var r=n(52322),i=n(2784),o=n(89393),s=n(31984);const a=(0,o.Ge)("divider"),l=i.forwardRef((function(e,t){const{orientation:n="horizontal",className:i,style:o,qa:l,children:c,align:u="start",...d}=e;return(0,r.jsx)("div",{...(0,s.z)(d,{labelable:!0}),className:a({orientation:n,align:u},i),ref:t,style:o,"data-qa":l,role:"separator","aria-orientation":"vertical"===n?"vertical":void 0,children:c})}))},14920:(e,t,n)=>{"use strict";n.d(t,{h:()=>b});var r=n(52322),i=n(2784),o=n(67003),s=n(89494),a=n(19810),l=n(28930),c=n(54104),u=n(44546),d=n(75622),h=n(91347),p=n(46781),m=n(3938),f=n(50317),g=n(28405),v=n(35583);const b=Object.assign((({items:e=[],size:t="m",icon:n=(0,r.jsx)(l.J,{data:o.Z}),open:d,onOpenToggle:b,hideOnScroll:y=!0,data:w,disabled:x,switcher:C,renderSwitcher:_,switcherWrapperClassName:E,defaultSwitcherProps:S,defaultSwitcherClassName:k,onSwitcherClick:N,menuProps:R,popupProps:I,children:M})=>{const T=i.useRef(null),{isPopupShown:A,togglePopup:O,closePopup:z}=(0,f.u)(d,b,x);(0,g.D)(z,T,!A||!y);const D=i.useMemo((()=>({toggle:O,data:w})),[w,O]),j=i.useMemo((()=>(0,v.u)(e,m.i)),[e]),P=i.useCallback((e=>{x||(N?.(e),O())}),[x,N,O]),{onKeyDown:L}=(0,s.b)(P),F=i.useMemo((()=>({onClick:P,onKeyDown:L})),[P,L]);return(0,r.jsxs)(u.n.Provider,{value:D,children:[(0,r.jsx)("div",{ref:T,className:(0,c.o)("switcher-wrapper",E),..._?{}:F,children:_?.(F)||C||(0,r.jsx)(a.z,{view:"flat",size:t,...S,className:(0,c.o)("switcher-button",k),disabled:x,children:n})}),(0,r.jsx)(h.U,{anchorRef:T,disabled:!A,children:(0,r.jsx)(p.P,{items:j,open:A,size:t,menuProps:R,anchorRef:T,onClose:z,popupProps:I,children:M})})]})}),{Item:d.X})},9635:(e,t,n)=>{"use strict";n.d(t,{s:()=>k,J:()=>_});var r=n(52322),i=n(2784),o=n(77766),s=n(67616),a=n(75956),l=n(78711),c=n(83274),u=n(25459),d=n(39959),h=n(85342),p=n(23343),m=n(94822),f=n(28930),g=n(70502),v=n(68085),b=n(89393),y=n(77270),w=n(88966);const x=e=>w.v.includes(e.toLowerCase()),C={"application/x-compressed":"archive","application/x-troff-msvideo":"video","application/macbinary":"code","application/mac-binary":"code","application/x-binary":"code","application/x-macbinary":"code","application/bmp":"image","application/x-bmp":"image","application/x-win-bitmap":"image","application/vnd.msexcel":"image","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"text","application/x-msdownload":"code","application/x-gzip":"archive","application/java-archive":"code","application/x-java-application":"code","application/x-jar":"code","application/x-javascript":"code","application/json":"code","application/ogg":"audio","application/pdf":"pdf","application/octet-stream":"pdf","application/x-httpd-php":"code","application/php":"code","application/x-php":"code","application/x-httpd-php-source":"code","application/msword":"text","application/x-rar":"archive","application/rar":"archive","application/x-rar-compressed":"archive","application/x-tar":"archive","application/x-gzip-compressed":"archive","application/xhtml+xml":"code","application/excel":"table","application/msexcel":"table","application/x-msexcel":"table","application/x-ms-excel":"table","application/x-excel":"table","application/x-dos_ms_excel":"table","application/xls":"table","application/x-xls":"table","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"table","application/vnd.ms-excel":"table","application/xml":"code","application/x-zip":"archive","application/zip":"archive","application/x-zip-compressed":"archive","application/s-compressed":"archive","multipart/x-zip":"archive"};function _(e){const t="string"==typeof e?e:e.type;if(x(t))return t;const n=t.split("/")[0];return x(n)?n:C[t]||"default"}const E=(0,b.Ge)("file-preview"),S={default:o.Z,image:s.Z,video:a.Z,code:l.Z,archive:c.Z,audio:u.Z,music:u.Z,text:d.Z,pdf:h.Z,table:p.Z};function k(e){const{className:t,qa:n,file:o,imageSrc:s,description:a,onClick:l,view:c="default",selected:u}=e,d="default"===c&&"actions"in e?e.actions:void 0,[h,p]=i.useState(s),b=_(o),w=(0,v.XA)(),{onKeyDown:x}=(0,m.bV)(l);i.useEffect((()=>{if(!s&&"image"===b)try{const e=URL.createObjectURL(o);return p(e),()=>{URL.revokeObjectURL(e)}}catch{return}}),[o,s,b]);const C=Boolean(l),k=Boolean(d?.length),N="string"==typeof h,R="compact"===c;return(0,r.jsxs)("div",{className:E({mobile:w,view:c},t),"data-qa":n,children:[(0,r.jsxs)("div",{className:E("card",{clickable:C,hoverable:!u&&(C||k),selected:u}),role:C?"button":void 0,onKeyDown:C?x:void 0,tabIndex:C?0:void 0,onClick:l,children:[N?(0,r.jsx)("div",{className:E("image-container"),children:(0,r.jsx)("img",{className:E("image"),src:h,alt:o.name})}):(0,r.jsx)("div",{className:E("icon-container"),children:(0,r.jsx)("div",{className:E("icon",{type:b}),children:(0,r.jsx)(f.J,{className:E("icon-svg"),data:S[b],size:20})})}),!R&&(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)(g.xv,{className:E("name"),color:"secondary",ellipsis:!0,title:o.name,children:o.name}),Boolean(a)&&(0,r.jsx)(g.xv,{className:E("description"),color:"secondary",ellipsis:!0,title:a,children:a})]})]}),d?.length&&(0,r.jsx)(y.N,{hoverabelPanelClassName:E("actions-panel"),fileName:o.name,isCustomImage:N,actions:d})]})}k.displayName="FilePreview"},11313:(e,t,n)=>{"use strict";n.d(t,{I:()=>d});var r=n(52322),i=n(2784),o=n(38859),s=n(28930),a=n(57671),l=n(89393),c=n(3670);const u=(0,l.Ge)("help-mark"),d=i.forwardRef((function({children:e,qa:t,className:n,iconSize:i="m",popoverProps:l,...d},h){return(0,r.jsx)(a.J,{content:(0,r.jsx)("div",{className:u("popover"),children:e}),hasArrow:!0,...l,children:(0,r.jsx)("button",{...d,ref:h,type:"button",className:u(null,n),"data-qa":t,children:(0,r.jsx)(s.J,{data:o.Z,size:c.S[i],className:u("icon")})})})}))},23608:(e,t,n)=>{"use strict";n.d(t,{q:()=>h,J:()=>p});var r=n(52322),i=n(2784),o=n(89393),s=n(31984),a=n(70378),l=n(22473),c=n(64080);const u=(0,o.Ge)("hotkey"),d={BetweenGroups:String.fromCharCode(160),BetweenKeys:String.fromCharCode(8239)},h=i.forwardRef((function(e,t){const{value:n,platform:i,view:o="light",qa:a,style:l,className:c,...h}=e,m=p(n,{platform:i}),f=[];let g=!1;return m.forEach(((e,t)=>{0!==e.length&&(g?f.push(d.BetweenGroups):g=!0,e.forEach(((e,n)=>{0===n||f.push(d.BetweenKeys,(0,r.jsx)("span",{className:u("plus"),children:"+"},`${e}_${t}_${n}_plus`),d.BetweenKeys),f.push((0,r.jsx)("kbd",{children:e},`${e}_${t}_${n}`))})))})),0===f.length?null:(0,r.jsx)("kbd",{...(0,s.z)(h,{labelable:!0}),ref:t,style:l,"data-qa":a,className:u({view:o},c),children:f})}));function p(e,t){const n=t.platform??((0,c.V)()?"mac":"pc"),r=a.l[n];return(0,l.G)(r,e)}},28930:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(52322),i=n(2784),o=n(89393),s=n(9776),a=n(81585);const l=(0,o.Ge)("icon"),c=i.forwardRef((({data:e,width:t,height:n,size:i,className:o,fill:u="currentColor",stroke:d="none",qa:h},p)=>{let m,f,g;if(i&&(m=i,f=i),t&&(m=t),n&&(f=n),(0,a.wk)(e))({viewBox:g}=e);else if((0,a.SV)(e))g=(0,a.Ae)(e);else if((0,a.pG)(e))({viewBox:g}=e.defaultProps);else if((0,a.$x)(e)){const t=e({});t&&({viewBox:g}=t.props)}if(g&&(!m||!f)){const e=g.split(/\s+|\s*,\s*/);m||(m=e[2]),f||(f=e[3])}const v={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:m,height:f,className:l(null,o),fill:u,stroke:d,"data-qa":h,...s.i};if((0,a.SV)(e)){const t=(0,a.z)(e);return(0,r.jsx)("svg",{...v,ref:p,dangerouslySetInnerHTML:{__html:t}})}if((0,a.wk)(e)){const t=c.prefix+(e.url||`#${e.id}`);return(0,r.jsx)("svg",{...v,viewBox:g,ref:p,children:(0,r.jsx)("use",{href:t,xlinkHref:t})})}const b=e;return b.defaultProps&&(b.defaultProps.width=b.defaultProps.height=void 0),(0,r.jsx)("svg",{...v,ref:p,children:(0,r.jsx)(b,{width:void 0,height:void 0})})}));c.displayName="Icon",c.prefix=""},64499:(e,t,n)=>{"use strict";n.d(t,{_:()=>m});var r=n(52322),i=n(2784),o=n(34863),s=n(28786),a=n(90044),l=n(36813),c=n(28930),u=n(89393),d=n(76211);const h=(0,u.Ge)("label"),p={xs:12,s:14,m:16},m=i.forwardRef((function(e,t){const{type:n="default",theme:u="normal",size:m="xs",title:f,icon:g,children:v,onCloseClick:b,className:y,disabled:w,copyText:x,closeButtonLabel:C,copyButtonLabel:_,interactive:E=!1,value:S,onCopy:k,onClick:N,qa:R}=e,I=Boolean(""!==v&&i.Children.count(v)>0),M="close"===n&&I,T="copy"===n&&I,A="info"===n,O="function"==typeof N,z=Boolean(T&&x),D=(O||z||A||E)&&!w,j=p[m],P=g&&(0,r.jsx)("div",{className:h("addon",{side:I?"start":void 0,type:"icon"}),children:g}),L=I&&(0,r.jsxs)("div",{className:h("text"),children:[(0,r.jsx)("div",{className:h("content"),children:v}),Boolean(S)&&(0,r.jsxs)("div",{className:h("value"),children:[(0,r.jsx)("div",{className:h("separator"),children:":"}),(0,r.jsx)("div",{className:h("key"),children:S})]})]}),F=e=>{let n;return T?n=(0,r.jsx)("button",{type:"button","aria-label":_||void 0,onClick:O?N:void 0,disabled:w,className:h("addon",{side:"end",type:"button",action:O?"click":"copy"}),"data-qa":d.C.copyButton,children:(0,r.jsx)(a.K,{status:e||"pending",size:j})}):A?n=(0,r.jsx)("div",{className:h("addon",{side:"end",type:"icon"}),children:(0,r.jsx)(c.J,{size:j,data:o.Z})}):M&&(n=(0,r.jsx)("button",{type:"button",onClick:b,"aria-label":C||void 0,disabled:w,className:h("addon",{side:"end",type:"button",action:"close"}),"data-qa":d.C.closeButton,children:(0,r.jsx)(c.J,{size:j,data:s.Z})})),(0,r.jsxs)("div",{ref:t,className:h({theme:u,size:m,interactive:D,disabled:w},y),title:f,"data-qa":R,children:[P,O?(0,r.jsx)("button",{disabled:w,type:"button",onClick:N,className:h("main-button"),"data-qa":d.C.mainButton,children:L}):L,n]})};return z&&x&&!O?(0,r.jsx)(l.h,{text:x,onCopy:k,timeout:1e3,children:e=>F(e)}):F()}))},80586:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r=n(52322),i=n(2784),o=n(89393),s=n(35644);const a=(0,o.Ge)("link"),l=i.forwardRef((function({view:e="normal",visitable:t=!1,underline:n=!1,href:o,children:l,extraProps:c,qa:u,onClickCapture:d,...h},p){const m=i.useCallback((e=>{s.Po.publish({componentId:"Link",eventId:"click",domEvent:e}),d&&d(e)}),[d]);return(0,r.jsx)("a",{...h,...c,ref:p,href:o,rel:"_blank"!==h.target||h.rel?h.rel:"noopener noreferrer",onClickCapture:m,className:a({view:e,visitable:t,underline:n},h.className),"data-qa":u,children:l})}))},19254:(e,t,n)=>{"use strict";n.d(t,{H:()=>p,_:()=>d});var r=n(52322),i=n(2784),o=n(17943),s=n(28930),a=n(89393),l=n(35644),c=n(14600);const u=(0,a.Ge)("list"),d=e=>String(e);function h(e,t){return t?{...e?.draggableProps.style,...t}:e?.draggableProps.style}class p extends i.Component{static publishEvent=l.Po.withEventPublisher("List");node=null;render(){const{item:e,height:t,style:n,sortable:i,sortHandleAlign:o,itemClassName:s,selected:a,active:l,role:d="listitem",isDragging:p=!1}=this.props,m={height:t,...n,right:void 0};return(0,r.jsxs)("div",{role:d,"aria-selected":a,"aria-disabled":e.disabled,"data-qa":l?c.j.ACTIVE_ITEM:void 0,className:u("item",{sortable:i,active:l,selected:a,inactive:e.disabled,"sort-handle-align":o,dragging:p},s),...this.props.provided?.draggableProps,...this.props.provided?.dragHandleProps,style:h(this.props.provided,m),onClick:e.disabled?void 0:this.onClick,onClickCapture:e.disabled?void 0:this.onClickCapture,onMouseEnter:this.onMouseEnter,ref:this.setRef,id:`${this.props.listId}-item-${this.props.itemIndex}`,children:[this.renderSortIcon(),this.renderContent()]})}getNode=()=>this.node;setRef=e=>{this.node=e,this.props.provided?.innerRef(e)};renderSortIcon(){const{sortable:e}=this.props;return e?(0,r.jsx)("div",{className:u("item-sort-icon"),children:(0,r.jsx)(s.J,{data:o.Z,size:12})}):null}renderContent(){const{renderItem:e=d,item:t,active:n,itemIndex:i}=this.props;return(0,r.jsx)("div",{className:u("item-content"),children:e(t,n,i)})}onClick=e=>{this.props.onClick&&this.props.onClick(this.props.item,this.props.itemIndex,!1,e)};onClickCapture=e=>{p.publishEvent({domEvent:e,eventId:"click"})};onMouseEnter=()=>!this.props.item.disabled&&this.props.onActivate(this.props.itemIndex)}},14600:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,j:()=>i});var r=n(60805);const i={ACTIVE_ITEM:"list-active-item"},o=[r.V.TAB]},95487:(e,t,n)=>{"use strict";n.d(t,{aV:()=>x,HC:()=>C.H,j5:()=>v.j,_C:()=>C._,AW:()=>y});var r=n(52322),i=n(2784),o=n(18149),s=n(29259),a=n(15863),l=n(6738),c=n(50166),u=n(14853),d=n(68085),h=n(38690),p=n(89393),m=n(50535),f=n(33955),g=n(24558),v=n(14600);const b=(0,p.Ge)("list"),y={items:[],itemClassName:"",filterable:!0,sortable:!1,virtualized:!0,deactivateOnLeave:!0},w=i.forwardRef(((e,t)=>(0,r.jsx)(c.S_,{ref:t,...e,direction:(0,h.gm)()})));w.displayName="ListContainer";class x extends i.Component{static defaultProps=y;static moveListElement(e,t,n){if(t!==n){const[r]=e.splice(t,1);e.splice(n,0,r)}return e}static findNextIndex(e,t,n){const r=e.length;let i=(t+r)%r;for(let t=0;t<r;t+=1){if(e[i]&&!e[i].disabled)return i;i=(i+r+n)%r}}state={items:this.props.items,activeItem:this.props.activeItemIndex,filter:""};refFilter=i.createRef();refContainer=i.createRef();blurTimer=null;loadingItem={value:"__LIST_ITEM_LOADING__",disabled:!1};uniqId=(0,m.xA)();componentDidMount(){this.activateItem(this.props.activeItemIndex,!0)}componentDidUpdate(e,t){if(!o(this.props.items,e.items)){const e=this.getFilter();e&&!this.props.onFilterUpdate?this.onUpdateFilterInternal(e):this.setState({items:this.props.items})}this.props.activeItemIndex!==e.activeItemIndex&&this.activateItem(this.props.activeItemIndex),this.props.onChangeActive&&this.state.activeItem!==t.activeItem&&this.props.onChangeActive(this.state.activeItem)}componentWillUnmount(){this.blurTimer=null}render(){const{id:e,emptyPlaceholder:t,virtualized:n,className:i,itemsClassName:o,qa:s,role:a="list"}=this.props,{items:l}=this.state;return(0,r.jsx)(d.zw.Consumer,{children:({mobile:c})=>(0,r.jsxs)("div",{className:b({mobile:c},i),"data-qa":s,tabIndex:-1,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.onKeyDown,children:[this.renderFilter(),(0,r.jsxs)("div",{id:e,className:b("items",{virtualized:n},o),style:this.getItemsStyle(),onMouseLeave:this.onMouseLeave,role:a,children:[this.renderItems(),0===l.length&&Boolean(t)&&(0,r.jsx)("div",{className:b("empty-placeholder"),children:t})]})]})})}getItems(){return this.state.items}getItemsWithLoading(){return this.props.sortable?this.getItems():this.props.loading?[...this.state.items,this.loadingItem]:this.getItems()}getActiveItem(){return"number"==typeof this.state.activeItem?this.state.activeItem:null}activateItem(e,t=!0){this.setState({activeItem:e},(()=>{"number"==typeof e&&t&&this.scrollToIndex(e)}))}onKeyDown=e=>{const{activeItem:t,pageSize:n}=this.state;if(v.S.includes(e.key))return;const r=e.target instanceof HTMLInputElement;switch(e.key){case"ArrowDown":this.handleKeyMove(e,1,-1);break;case"ArrowUp":this.handleKeyMove(e,-1);break;case"PageDown":this.handleKeyMove(e,n??10);break;case"PageUp":this.handleKeyMove(e,-(n??10));break;case"Home":if(r)return;this.handleKeyMove(e,this.state.items.length-(t||0));break;case"End":if(r)return;this.handleKeyMove(e,-(t||0)-1);break;case"Enter":"number"==typeof t&&this.props.onItemClick&&this.props.onItemClick(this.state.items[t],t,!0,e);break;default:this.refFilter.current&&this.refFilter.current.focus()}};renderItemContent=(e,t,n)=>{const{onLoadMore:i}=this.props;return s(e)&&"value"in e&&e.value===this.loadingItem.value?(0,r.jsx)(f.I,{onIntersect:0===n?void 0:i}):this.props.renderItem?this.props.renderItem(e,t,n):(0,g._C)(e)};renderItem=({index:e,style:t,height:n,provided:i,isDragging:o})=>{const{sortHandleAlign:s,role:a}=this.props,{items:l,activeItem:c}=this.state,u=this.getItemsWithLoading()[e],d=this.props.sortable&&l.length>1&&!this.getFilter(),h=e===c||e===this.props.activeItemIndex,p=Array.isArray(this.props.selectedItemIndex)?this.props.selectedItemIndex.includes(e):e===this.props.selectedItemIndex;return(0,r.jsx)(g.HC,{style:t,height:n,itemIndex:e,item:u,sortable:d,sortHandleAlign:s,renderItem:this.renderItemContent,itemClassName:this.props.itemClassName,active:h,selected:p,onActivate:this.onItemActivate,onClick:this.props.onItemClick,role:"listbox"===a?"option":"listitem",listId:this.props.id??this.uniqId,provided:i,isDragging:o},e)};renderVirtualizedItem=({index:e,style:t})=>(0,r.jsx)(a._l,{draggableId:String(e),index:e,children:n=>this.renderItem({index:e,style:t,provided:n})},`item-key-${e}`);renderFilter(){const{size:e,filterable:t,filter:n=this.state.filter,filterPlaceholder:i,filterClassName:o="",autoFocus:s}=this.props;return t?(0,r.jsx)("div",{className:b("filter",o),children:(0,r.jsx)(u.oi,{controlRef:this.refFilter,size:e,placeholder:i,value:n,hasClear:!0,onUpdate:this.onFilterUpdate,autoFocus:s})}):null}renderSimpleContainer(){const{sortable:e}=this.props,t=this.getItemsWithLoading();return e?(0,r.jsx)(a.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd,children:(0,r.jsx)(a.bK,{droppableId:"droppable",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging}),children:e=>(0,r.jsx)(g._j,{ref:this.refContainer,itemCount:t.length,provided:e,onScrollToItem:this.props.onScrollToItem,children:t.map(((e,t)=>(0,r.jsx)(a._l,{draggableId:String(t),index:t,children:(e,n)=>this.renderItem({index:t,isDragging:n.isDragging,provided:e,height:this.getItemHeight(t)})},`item-key-${t}`)))})})}):(0,r.jsx)(g._j,{itemCount:t.length,ref:this.refContainer,onScrollToItem:this.props.onScrollToItem,children:t.map(((e,t)=>this.renderItem({index:t,height:this.getItemHeight(t)})))})}renderVirtualizedContainer(){const e=[...this.getItemsWithLoading()];return this.props.sortable?(0,r.jsx)(a.Z5,{onDragStart:this.onSortStart,onDragEnd:this.onSortEnd,children:(0,r.jsx)(a.bK,{droppableId:"droppable",mode:"virtual",renderClone:(e,t,n)=>this.renderItem({index:n.source.index,provided:e,isDragging:t.isDragging}),children:t=>(0,r.jsx)(l.ZP,{children:({width:n,height:i})=>(0,r.jsx)(w,{ref:this.refContainer,outerRef:t.innerRef,width:n,height:i,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem,children:this.renderVirtualizedItem})})})}):(0,r.jsx)(l.ZP,{children:({width:t,height:n})=>(0,r.jsx)(w,{ref:this.refContainer,width:t,height:n,itemSize:this.getVirtualizedItemHeight,itemData:e,itemCount:e.length,overscanCount:10,onItemsRendered:this.onItemsRendered,activeItem:this.state.activeItem,children:this.renderItem})})}renderItems(){return this.props.virtualized?this.renderVirtualizedContainer():this.renderSimpleContainer()}filterItem=e=>t=>String(t).includes(e);getFilter(){const{filter:e=this.state.filter}=this.props;return e}getItemsStyle(){let{itemsHeight:e}=this.props;return"function"==typeof e&&(e=e(this.state.items)),e?{height:e}:void 0}scrollToIndex=e=>{const t=this.refContainer.current;t&&t.scrollToItem(e)};deactivate=()=>{this.blurTimer&&(this.blurTimer=null,this.props.deactivateOnLeave&&this.setState({activeItem:void 0}))};handleKeyMove(e,t,n=0){const{activeItem:r=n}=this.state;e.preventDefault();const i=this.getItemsWithLoading();this.activateItem(x.findNextIndex(i,r+t,Math.sign(t)))}handleFocus=()=>{this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)};handleBlur=()=>{this.blurTimer||(this.blurTimer=setTimeout(this.deactivate,50))};onUpdateFilterInternal=e=>{const{items:t,filterItem:n=this.filterItem,onFilterEnd:r}=this.props;this.setState({filter:e,items:e?t.filter(n(e)):t},(()=>{r&&r({items:this.state.items})}))};onFilterUpdate=e=>{this.props.onFilterUpdate?this.props.onFilterUpdate(e):this.onUpdateFilterInternal(e)};onItemsRendered=({visibleStartIndex:e,visibleStopIndex:t})=>{this.setState({pageSize:t-e})};onItemActivate=e=>{this.state.sorting||this.activateItem(e,!1)};onMouseLeave=()=>{this.handleBlur()};onSortStart=()=>{this.setState({sorting:!0})};onSortEnd=e=>{if(!e.destination)return void this.setState({sorting:!1});if(e.source.index===e.destination.index)return void this.setState({sorting:!1});const t=e.source.index,n=e.destination.index;this.props.onSortEnd&&this.props.onSortEnd({oldIndex:t,newIndex:n});const r=((e,t,n)=>{const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r})(this.getItems(),t,n);this.setState({activeItem:n,items:r,sorting:!1})};getItemHeight=e=>{const{itemHeight:t}=this.props;if("function"==typeof t){const{items:n}=this.state;return t(n[e],e)}return t};getVirtualizedItemHeight=e=>this.getItemHeight(e)||28}var C=n(19254)},174:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(52322);const i=(0,n(89393).Ge)("loader");function o({size:e="s",className:t,qa:n}){return(0,r.jsxs)("div",{className:i({size:e},t),"data-qa":n,children:[(0,r.jsx)("div",{className:i("left")}),(0,r.jsx)("div",{className:i("center")}),(0,r.jsx)("div",{className:i("right")})]})}},59184:(e,t,n)=>{"use strict";n.d(t,{a:()=>r.a});var r=n(174)},78699:(e,t,n)=>{"use strict";n.d(t,{v2:()=>m,kS:()=>c,sN:()=>h});var r=n(52322),i=n(2784),o=n(89393),s=n(31984),a=n(94822);const l=(0,o.Ge)("menu"),c=i.forwardRef((function({label:e,children:t,style:n,className:i,qa:o},s){const c=(0,a.uR)();return(0,r.jsx)("li",{ref:s,className:l("list-group-item"),children:(0,r.jsxs)("div",{style:n,className:l("group",i),"data-qa":o,children:[e&&(0,r.jsx)("div",{id:c,className:l("group-label"),children:e}),(0,r.jsx)("ul",{role:"group","aria-labelledby":c,className:l("group-list"),children:t})]})})}));var u=n(35644);const d=(0,o.Ge)("menu"),h=i.forwardRef((function({iconStart:e,iconEnd:t,title:n,disabled:o,active:s,selected:l,href:c,target:h,rel:p,onClick:m,style:f,className:g,theme:v,extraProps:b,children:y,qa:w},x){const{onKeyDown:C}=(0,a.bV)(m),_=i.useCallback((e=>{u.Po.publish({componentId:"MenuItem",eventId:"click",domEvent:e})}),[]),E={role:"menuitem",onKeyDown:m&&!o?C:void 0},S={title:n,onClick:o?void 0:m,onClickCapture:o?void 0:_,style:f,tabIndex:o?-1:0,className:d("item",{disabled:o,active:s,selected:l,theme:v,interactive:Boolean(m)||Boolean(c)},g),"data-qa":w},k=[e&&(0,r.jsx)("div",{className:d("item-icon"),children:e},"icon-start"),(0,r.jsx)("div",{className:d("item-content"),children:y},"content"),t&&(0,r.jsx)("div",{className:d("item-icon-end"),children:t},"icon-end")];let N;return N=c?(0,r.jsx)("a",{...E,...b,...S,href:c,target:h,rel:p,children:k}):(0,r.jsx)("div",{...E,...b,...S,children:k}),(0,r.jsx)("li",{ref:x,className:d("list-item"),children:N})})),p=(0,o.Ge)("menu"),m=i.forwardRef((function({size:e="m",children:t,style:n,className:i,qa:o,...a},l){return(0,r.jsx)("ul",{...(0,s.z)(a,{labelable:!0}),ref:l,role:"menu",style:n,className:p({size:e},i),"data-qa":o,children:t})}));m.Item=h,m.Group=c},55642:(e,t,n)=>{"use strict";n.d(t,{u:()=>x});var r=n(52322),i=n(2784),o=n(87578),s=n(65712),a=n(60805),l=n(94822),c=n(1262),u=n(94338),d=n(89393),h=n(31984),p=n(82060),m=n(97777),f=n(60586),g=n(76353);const v=(0,m.e)({en:f,ru:g},"Modal"),b=(0,d.Ge)("modal"),y=150;function w({open:e=!1,onOpenChange:t,keepMounted:n=!1,disableBodyScrollLock:d=!1,disableEscapeKeyDown:m,disableOutsideClick:f,initialFocus:g,returnFocus:w,disableVisuallyHiddenDismiss:x,onEscapeKeyDown:C,onOutsideClick:_,onClose:E,onEnterKeyDown:S,onTransitionIn:k,onTransitionInComplete:N,onTransitionOut:R,onTransitionOutComplete:I,children:M,style:T,contentOverflow:A="visible",className:O,contentClassName:z,container:D,qa:j,floatingRef:P,disableHeightTransition:L=!1,...F}){(0,p.sJ)({open:e,type:"modal"});const B=i.useCallback(((e,n,r)=>{if(t?.(e,n,r),e||!n)return;let i;i="escape-key"===r?"escapeKeyDown":"outside-press"===r?"outsideClick":r,"escapeKeyDown"===i&&C&&C(n),"outsideClick"===i&&_&&_(n),E?.(n,i)}),[t,C,_,E]),U=(0,o.jV)(),{refs:W,elements:V,context:H}=(0,o.YF)({nodeId:U,open:e,onOpenChange:B}),G=(0,l.cR)(W.setFloating,P),q=(0,o.bQ)(H,{enabled:!f||!m,outsidePress:!f,escapeKey:!m}),Y=(0,o.qs)(H,{role:"dialog"}),{getFloatingProps:Z}=(0,o.NI)([q,Y]),{isMounted:K,status:$}=(0,o.hU)(H,{duration:y}),X=(0,c.D9)($);(0,c.kx)({ref:W.floating,enabled:"open"===$&&!L}),i.useEffect((()=>{"initial"===$&&"unmounted"===X&&k?.(),"close"===$&&"open"===X&&R?.(),"unmounted"===$&&"close"===X&&I?.()}),[X,$,k,R,I]);const J=i.useCallback((e=>{"open"===$&&"transform"===e.propertyName&&e.target===V.floating&&N?.()}),[$,N,V.floating]),Q=i.useCallback((e=>{if(!S||e.key!==a.V.ENTER||e.defaultPrevented)return;const t=V.floating;if(!t)return;const n=e.nativeEvent.composedPath(),r=n.indexOf(t),i=r<0?n:n.slice(0,r),o=i.findIndex((e=>e?.hasAttribute("data-floating-ui-focusable")));if(o<0)return void S(e.nativeEvent);i.slice(0,o).some((e=>(0,s.Wq)(e)))||S(e.nativeEvent)}),[V.floating,S]);return(0,r.jsx)(o.mN,{id:U,children:K||n?(0,r.jsx)(u.h,{container:D,children:(0,r.jsx)(o.y0,{style:T,className:b({open:e},O),"data-qa":j,"data-floating-ui-status":$,lockScroll:!d,children:(0,r.jsx)("div",{className:b("content-aligner"),children:(0,r.jsx)("div",{className:b("content-wrapper"),children:(0,r.jsx)(o.wD,{context:H,disabled:!K,modal:K,initialFocus:g??W.floating,returnFocus:w,visuallyHiddenDismiss:!x&&v("close"),restoreFocus:!0,children:(0,r.jsx)("div",{...(0,h.z)(F,{labelable:!0}),className:b("content",{"has-scroll":"auto"===A},z),ref:G,...Z({onTransitionEnd:J,onKeyDown:Q}),children:M})})})})})}):null})}function x(e){return null===(0,o.Zm)()?(0,r.jsx)(o.RB,{children:(0,r.jsx)(w,{...e})}):(0,r.jsx)(w,{...e})}},48348:(e,t,n)=>{"use strict";n.d(t,{Y:()=>f});var r=n(52322),i=n(2784),o=n(60805),s=n(94822),a=n(1262),l=n(54883),c=n(24309),u=n(89393),d=n(9987),h=n(45135);const p=(0,u.Ge)("number-input");function m(e){return null===e?"":String(e)}const f=i.forwardRef((function({endContent:e,defaultValue:t,...n},u){const{value:f,onChange:g,onUpdate:v,min:b,max:y,shiftMultiplier:w=10,step:x,size:C="m",view:_="normal",disabled:E,hiddenControls:S,validationState:k,onBlur:N,onKeyDown:R,allowDecimal:I=!1,className:M}=n,{min:T,max:A,step:O,value:z,defaultValue:D,shiftMultiplier:j}=(0,h.eN)({min:b,max:y,step:x,shiftMultiplier:w,allowDecimal:I,value:f,defaultValue:t}),[P,L]=(0,s.zk)(z,D??null,v),[F,B]=i.useState(m(P));i.useEffect((()=>{const e=m(P);B((t=>(0,h.cG)(t,e)?t:e))}),[P]);const U=!(I&&!x),W=P??0,V=(0,c.O_)(k),H=W<(A??Number.MAX_SAFE_INTEGER),G=W>(T??Number.MIN_SAFE_INTEGER),q=i.useRef(null),Y=(0,a.qt)({initialValue:P,onReset:L}),Z=(0,s.cR)(n.controlRef,q,Y),K=(e,t)=>{const n=e.shiftKey?j*O:O,r="up"===t?n:-n;if("up"===t?H:G){const e=(0,h.MW)({value:W+r,step:O,min:T,max:A,direction:t});L?.(e),B(e.toString())}};return(0,r.jsx)(l.o,{...n,className:p({size:C,view:_,state:V},M),controlProps:{onInput:e=>{const t=(0,h.Qh)(e.currentTarget.value,I);(0,h.bF)(q,e.currentTarget.value,t)},...n.controlProps,role:"spinbutton",inputMode:I?"decimal":"numeric",pattern:n.controlProps?.pattern??(0,h.Gs)(I,!1),"aria-valuemin":n.min,"aria-valuemax":n.max,"aria-valuenow":null===P?void 0:P},controlRef:Z,value:F,onChange:g,onUpdate:e=>{B(e);const t=(0,h.Qh)(e,I);(0,h.bF)(q,e,t);const{valid:n,value:r}=(0,h.Pi)(t);n&&r!==P&&L?.(r)},onKeyDown:e=>{if(e.key===o.V.ARROW_DOWN)e.preventDefault(),K(e,"down");else if(e.key===o.V.ARROW_UP)e.preventDefault(),K(e,"up");else if(e.key===o.V.HOME)e.preventDefault(),void 0!==T&&(L?.(T),B(T.toString()));else if(e.key===o.V.END&&(e.preventDefault(),void 0!==A)){const e=(0,h.MW)({value:A,step:O,min:T,max:A});L?.(e),B(e.toString())}R?.(e)},onBlur:e=>{if(U&&null!==P){const e=(0,h.MW)({value:P,step:O,min:T,max:A});P!==e&&L?.(e),B(e.toString())}N?.(e)},ref:u,endContent:(0,r.jsxs)(i.Fragment,{children:[e,S?null:(0,r.jsx)(d.N,{className:p("arrows"),size:C,disabled:E,onUpClick:e=>{q.current?.focus(),K(e,"up")},onDownClick:e=>{q.current?.focus(),K(e,"down")}})]})})}))},38290:(e,t,n)=>{"use strict";n.d(t,{a:()=>o});var r=n(52322);const i=(0,n(89393).Ge)("overlay");function o({className:e,background:t="base",visible:n=!1,children:o}){return(0,r.jsxs)("div",{className:i({visible:n},e),children:[(0,r.jsx)("div",{className:i("background",{style:t})}),o&&(0,r.jsx)("div",{className:i("children"),children:o})]})}},97260:(e,t,n)=>{"use strict";n.d(t,{t:()=>U});var r=n(52322),i=n(68085),o=n(89393);const s=(0,o.Ge)("pagination-ellipsis"),a=({size:e,className:t})=>(0,r.jsx)("div",{className:s({size:e},t),children:"..."});var l=n(19810);const c="pagination-page-sizer",u="pagination-page-sizer-option",d="pagination-input",h="pagination-page",p="pagination-button-first",m="pagination-button-previous",f="pagination-button-next",g=e=>`${u}-${e}`,v=(0,o.Ge)("pagination-page"),b=({item:e,size:t,pageSize:n,className:i,onUpdate:o})=>{const s=(a=e.page,`${h}-${a}`);var a;if(e.simple)return(0,r.jsx)("div",{"data-qa":s,className:v("simple",{size:t},i),children:e.page});const c=e.current?"normal":"flat";return(0,r.jsx)(l.z,{size:t,view:c,selected:e.current,className:i,onClick:()=>o(e.page,n),qa:s,children:e.page},c)};var y=n(97777),w=n(76295),x=n(12925);const C=(0,y.e)({en:w,ru:x},"Pagination"),_=(0,o.Ge)("pagination-page-of"),E=({size:e,className:t})=>(0,r.jsx)("div",{className:_({size:e},t),children:C("label_page-of")});var S=n(30013),k=n(22578),N=n(93714),R=n(28930);const I=({item:e,size:t,className:n,page:i,pageSize:o,onUpdate:s,compact:a})=>{let c=null;const{disabled:u}=e;switch(e.action){case"first":c=(0,r.jsxs)(l.z,{size:t,view:"outlined",className:n,onClick:()=>s(1,o),title:a?C("button_first"):void 0,disabled:u,qa:p,children:[(0,r.jsx)(R.J,{data:S.Z,size:"16"}),a?void 0:C("button_first")]});break;case"previous":c=(0,r.jsxs)(l.z,{size:t,view:"outlined",className:n,onClick:()=>s(i-1,o),title:a?C("button_previous"):void 0,disabled:u,qa:m,children:[(0,r.jsx)(R.J,{data:k.Z,size:"16"}),a?void 0:C("button_previous")]});break;case"next":c=(0,r.jsxs)(l.z,{size:t,view:"outlined",className:n,onClick:()=>s(i+1,o),title:a?C("button_next"):void 0,disabled:u,qa:f,children:[(0,r.jsx)(R.J,{data:N.Z,size:"16"}),a?void 0:C("button_next")]})}return c};var M=n(2784),T=n(60805),A=n(14853);const O=(0,o.Ge)("pagination-input"),z=({numberOfPages:e,size:t,pageSize:n,onUpdate:i,className:o})=>{const[s,a]=M.useState(""),l=t=>{if(!t)return;let r=Number(t);if(!Number.isInteger(r))return void a("");r>e?r=e>0?e:r:r<1&&(r=1),a(""),i(r,n)};return(0,r.jsx)(A.oi,{className:O({size:t},o),placeholder:C("label_input-placeholder"),size:t,value:s,onUpdate:e=>{(""===e||/^[1-9][0-9]*$/.test(e))&&a(e)},onBlur:e=>l(e.currentTarget.value),onKeyUp:e=>{e.key===T.V.ENTER&&l(e.currentTarget.value)},qa:d})};var D=n(26194),j=n(75652);function P({page:e,numberOfPages:t,mobile:n}){return n?function(e,t){const n=[e,"pageOf",t];return n}(e,t):function(e,t){const n=Math.max(e-1,1);let r=Math.min(e+1,t);const i=[n,e,r];1===e&&(r=Math.min(r+1,t),i.push(r));t-r>=2&&i.push("ellipsis");t-e==1&&i.unshift(Math.max(e-2,1));e===t&&(i.unshift(Math.max(e-2,1)),i.unshift(Math.max(e-3,1)));return i.push(t),j(i)}(e,t)}function L(e,t=0){return Math.floor((t-1)/e)+1}const F=({onUpdate:e,pageSize:t,size:n,page:i,pageSizeOptions:o,total:s,className:a})=>{const l=o.map((e=>({value:String(e),content:e,qa:g(e)})));return(0,r.jsx)(D.Ph,{qa:c,className:a,size:n,onUpdate:([t])=>{const n=Number(t),r=L(n,s);if(!(r>0))return void e(1,n);e(i>r?r:i,n)},options:l,value:[String(t)],title:C("label_select_size")})};const B=(0,o.Ge)("pagination"),U=({page:e,pageSize:t,total:n,size:o,onUpdate:s,compact:l=!0,pageSizeOptions:c,showPages:u=!0,showInput:d=!1,className:h,qa:p})=>{const m=(0,i.XA)(),f=function({propSize:e,mobile:t}){return e||(t?"l":"m")}({propSize:o,mobile:m}),g=!!m||l,v=function(e){return void 0===e||e>0?e:1}(n),y=function({page:e,total:t,pageSize:n}){return e>0&&(void 0===t||e<=L(n,t))?e:1}({page:e,total:v,pageSize:t}),{items:w,numberOfPages:x}=function({page:e,pageSize:t,total:n,mobile:r}){const i=L(t,n),o=0!==i,s=o&&e===i||0===n;let a;a=o?P({page:e,numberOfPages:i,mobile:r}).map(((t,n)=>{if("ellipsis"===t)return{type:"ellipsis"};if("pageOf"===t)return{type:"pageOf"};const i=t===e;return{type:"page",current:i,page:t,simple:!!r&&i,key:r?t+n:t}})):[{type:"page",current:!0,page:e,simple:!0,key:e}];return a.unshift({type:"button",action:"previous",disabled:e<=1}),a.unshift({type:"button",action:"first",disabled:e<=1}),a.push({type:"button",action:"next",disabled:s}),{items:a,numberOfPages:i}}({page:y,pageSize:t,total:v,mobile:m}),C=w.map((e=>{switch(e.type){case"page":return u&&(0,r.jsx)(b,{size:f,pageSize:t,item:e,onUpdate:s,className:B("pagination-item")},e.key);case"ellipsis":return u&&(0,r.jsx)(a,{size:f,className:B("pagination-item")},e.type);case"pageOf":return u&&(0,r.jsx)(E,{className:B("pagination-item"),size:f},e.type);case"button":return(0,r.jsx)(I,{size:f,item:e,page:y,pageSize:t,onUpdate:s,compact:g,className:B("pagination-item")},e.action);default:return null}})).filter(Boolean);return(0,r.jsxs)("div",{className:B(null,h),"data-qa":p,children:[C,d&&(0,r.jsx)(z,{numberOfPages:x,pageSize:t,size:f,onUpdate:s,className:B("input")}),c&&(0,r.jsx)(F,{onUpdate:s,page:y,pageSize:t,pageSizeOptions:c,size:f,total:v,className:B("page-sizer")})]})}},7699:(e,t,n)=>{"use strict";n.d(t,{Y:()=>p});var r=n(52322),i=n(2784),o=n(94822),s=n(15011),a=n(19810),l=n(89393),c=n(31984),u=n(68960),d=n(86913);const h=(0,l.Ge)("palette"),p=i.forwardRef((function(e,t){const{size:n="m",multiple:l=!0,options:p=[],columns:m=6,disabled:f,style:g,className:v,rowClassName:b,optionClassName:y,qa:w,onFocus:x,onBlur:C}=e,[_,E]=i.useState(void 0),S=void 0===_?void 0:p[_],k=i.useRef(null),N=(0,s.c)(t,k),{value:R,handleSelection:I}=(0,o.L7)({value:e.value,defaultValue:e.defaultValue,multiple:l,onUpdate:e.onUpdate}),M=i.useMemo((()=>(0,d.q)(p,m)),[m,p]),T=i.useCallback((e=>{if(!k.current)return;const t=Array.from(k.current.querySelectorAll(`.${h("option")}`));t[e]&&(t[e].focus(),E(e))}),[]),A=e=>{e===_||e<0||e>=p.length||T(e)},O=(0,u.W)({disabled:f,onFocus:e=>{T(0),x?.(e)},onBlur:e=>{E(void 0),C?.(e)},whenFocused:void 0!==_&&S?{selectItem:()=>I(S),nextItem:()=>A(_+1),previousItem:()=>A(_-1),nextRow:()=>A(_+m),previousRow:()=>A(_-m)}:void 0});return(0,r.jsx)("div",{...(0,c.z)(e,{labelable:!0}),...O,ref:N,className:h({size:n},v),style:g,"data-qa":w,children:M.map(((e,t)=>(0,r.jsx)("div",{className:h("row",b),role:"row",children:e.map((e=>{const t=Boolean(R.includes(e.value)),i=e===S;return(0,r.jsx)("div",{role:"gridcell","aria-selected":i?"true":void 0,"aria-readonly":e.disabled,children:(0,r.jsx)(a.z,{className:h("option",y),tabIndex:-1,style:g,disabled:f||e.disabled,title:e.title,view:t?"normal":"flat",selected:t,value:e.value,size:n,onClick:()=>I(e),children:(0,r.jsx)(a.z.Icon,{children:e.content??e.value})})},e.value)}))},`row-${t}`)))})}));p.displayName="Palette"},56639:(e,t,n)=>{"use strict";n.d(t,{E:()=>v});var r=n(52322),i=n(2784),o=n(60805),s=n(94822),a=n(1262),l=n(14853),c=n(21852),u=n(38690),d=n(89393),h=n(31984),p=n(71277);const m=(0,d.Ge)("pin-input"),f=/[0-9]+/,g=/[0-9a-z]+/i,v=i.forwardRef(((e,t)=>{const{value:n,defaultValue:d,onUpdate:v,onUpdateComplete:b,onFocus:y,onBlur:w,length:x=4,size:C="m",type:_="numeric",id:E,name:S,form:k,placeholder:N,disabled:R,autoFocus:I,otp:M,mask:T,responsive:A,note:O,validationState:z,errorMessage:D,apiRef:j,className:P,style:L,qa:F,...B}=e,U=i.useRef({}),[W,V]=i.useState(0),[H,G]=i.useState(-1),q=i.useCallback((e=>{v&&v(e),b&&e.every((e=>Boolean(e)))&&b(e)}),[v,b]),[Y,Z]=(0,s.zk)(n,d??Array.from({length:x},(()=>"")),q),K=(0,u.gm)(),$=(0,s.uR)(),X=(0,s.uR)(),J="invalid"===z&&D,Q=[e?.["aria-describedby"],O?X:void 0,J?$:void 0].filter(Boolean).join(" "),ee=(e,t)=>{U.current[e]=t},te=e=>{V(e),U.current[e]?.focus()},ne=e=>{e>0&&te(e-1)},re=e=>{e<x-1&&te(e+1)},ie=(e,t)=>{const n=Array.from({length:x},((e,t)=>Y[t]??""));if(t.length>0)for(let r=0;r<t.length&&e+r<n.length;r++)n[e+r]=t[r];else n[e]="";n.every(((e,t)=>n[t]===Y[t]))||Z(n)},oe=(e,t)=>{let n=t.currentTarget.value;const r=Y[e];r&&(r===n[0]?n=n.slice(1):r===n[n.length-1]&&(n=n.slice(0,-1))),((e,t)=>"numeric"===e?f.test(t):g.test(t))(_,n)&&(n.length>1?(ie(0,n),re(n.length-1)):(ie(e,n),re(e)))},se=(e,t)=>{switch(t.code){case o.V.BACKSPACE:t.preventDefault(),t.currentTarget.value?ie(e,""):e>0&&(ie(e-1,""),ne(e));break;case o.V.ARROW_LEFT:case o.V.ARROW_UP:t.preventDefault(),"rtl"===K&&t.code===o.V.ARROW_LEFT?re(e):ne(e);break;case o.V.ARROW_RIGHT:case o.V.ARROW_DOWN:t.preventDefault(),"rtl"===K&&t.code===o.V.ARROW_RIGHT?ne(e):re(e)}},ae=e=>{G(e),V(e)},le=()=>{G(-1)};i.useEffect((()=>{I&&te(0)}),[]),i.useImperativeHandle(j,(()=>({focus:()=>{U.current[W]?.focus()}})),[W]);const ce=(0,a.qt)({initialValue:Y,onReset:Z}),{focusWithinProps:ue}=(0,s.L_)({onFocusWithin:y,onBlurWithin:w});let de=(0,s.uR)();return E&&(de=E),(0,r.jsxs)("div",{ref:t,...(0,h.z)(B,{labelable:!0}),...ue,className:m({size:C,responsive:A},P),style:L,"data-qa":F,role:"group",id:de,"aria-describedby":Q,children:[(0,r.jsxs)("div",{className:m("items"),children:[Array.from({length:x}).map(((t,n)=>{const i=`${de}-${n}`,o=e["aria-labelledby"]||e["aria-label"]?[i,e["aria-labelledby"]||de].join(" "):void 0;return(0,r.jsx)("div",{className:m("item"),children:(0,r.jsx)(l.oi,{value:Y[n]?.[0]??"",tabIndex:W===n?0:-1,type:T?"password":"text",size:C,id:i,disabled:R,placeholder:H===n?void 0:N,autoComplete:M?"one-time-code":"off",validationState:z,controlProps:{inputMode:"numeric"===_?"numeric":"text",pattern:"numeric"===_?"[0-9]*":"[0-9a-zA-Z]*",className:m("control"),autoCapitalize:"none","aria-label":(0,p.Z)("label_one-of",{number:n+1,count:x}),"aria-labelledby":o,"aria-describedby":Q,"aria-details":e["aria-details"],"aria-invalid":"invalid"===z||void 0},controlRef:ee.bind(null,n),onChange:oe.bind(null,n),onKeyDown:se.bind(null,n),onFocus:ae.bind(null,n),onBlur:le})},n)})),S?(0,r.jsx)("input",{ref:ce,type:"hidden",name:S,form:k,value:Y.join(""),disabled:R}):null]}),(0,r.jsx)(c.Z,{note:O,errorMessage:J?D:null,noteId:X,errorMessageId:$})]})}));v.displayName="PinInput"},20682:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(52322),i=n(2784),o=n(19810),s=n(89393),a=n(38225);const l=(0,s.Ge)(a.k),c=({text:e,...t})=>(0,r.jsx)("div",{className:l("action"),children:(0,r.jsx)(o.z,{...t,className:l("action-btn"),children:e})}),u=({direction:e="row",align:t="center",size:n="l",className:o,title:s,description:a,image:u,content:d,actions:h,qa:p})=>(0,r.jsx)("div",{className:l({direction:e,align:t,size:n},o||""),"data-qa":p,children:(0,r.jsxs)("div",{className:l("body"),children:[(0,r.jsx)("div",{className:l("image",{size:n}),children:"object"==typeof u&&"src"in u?(0,r.jsx)("img",{src:u.src,alt:u.alt||""}):u}),(()=>{const e=d||(0,r.jsxs)(i.Fragment,{children:[s?(0,r.jsx)("div",{className:l("title"),children:s}):null,a?(0,r.jsx)("div",{className:l("description"),children:a}):null]});return(0,r.jsxs)("div",{className:l("content",{size:n}),children:[e,h&&(i.isValidElement(h)||Array.isArray(h))?i.isValidElement(h)?(0,r.jsx)(i.Fragment,{children:h}):(0,r.jsx)("div",{className:l("actions"),children:h.map((e=>(0,r.jsx)(c,{...e},e.text)))}):null]})})()]})})},57671:(e,t,n)=>{"use strict";n.d(t,{J:()=>p});var r=n(52322),i=n(2784),o=n(87578),s=n(94822),a=n(41556),l=n(89393),c=n(55635);const u=(0,l.Ge)("popover"),d=500,h=250;function p({children:e,open:t,onOpenChange:n,disabled:l,content:p,trigger:m,openDelay:f=d,closeDelay:g=h,enableSafePolygon:v,className:b,...y}){const[w,x]=i.useState(null),[C,_]=i.useState(null),[E,S]=(0,s.zk)(t,!1,n),k=(0,o.$Y)({open:E&&!l,onOpenChange:S,elements:{reference:w,floating:C}}),N=[(0,o.XI)(k,{enabled:"click"!==m,delay:{open:f,close:g},move:!1,handleClose:v?(0,o.xp)():void 0}),(0,o.eS)(k),(0,o.qs)(k,{role:"dialog"}),(0,o.bQ)(k)],{getReferenceProps:R}=(0,o.NI)(N),I=(0,s.cR)(x,i.isValidElement(e)?(0,c.e)(e):void 0),M=i.isValidElement(e)?R(e.props):R(),T=i.isValidElement(e)?i.cloneElement(e,{...M,ref:I}):e(M,I);return(0,r.jsxs)(i.Fragment,{children:[T,(0,r.jsx)(a.G,{...y,open:k.open,floatingContext:k,floatingRef:_,floatingInteractions:N,className:u(null,b),children:p})]})}},41556:(e,t,n)=>{"use strict";n.d(t,{G:()=>E});var r=n(52322),i=n(2784),o=n(87578),s=n(92416),a=n(42943),l=n(94822),c=n(1262),u=n(94338),d=n(89393),h=n(31984),p=n(82060);const m=(0,d.Ge)("popup"),f=i.forwardRef((function({styles:e},t){return(0,r.jsx)("div",{ref:t,className:m("arrow"),style:e,children:(0,r.jsxs)("div",{className:m("arrow-content"),children:[(0,r.jsx)("div",{className:m("arrow-circle-wrapper"),children:(0,r.jsx)("div",{className:m("arrow-circle",{left:!0})})}),(0,r.jsx)("div",{className:m("arrow-circle-wrapper"),children:(0,r.jsx)("div",{className:m("arrow-circle",{right:!0})})})]})})}));var g=n(2999),v=n(97777),b=n(75315),y=n(6038);const w=(0,v.e)({en:b,ru:y},"Popup");var x=n(38195);const C=(0,d.Ge)("popup");function _({keepMounted:e=!1,hasArrow:t=!1,open:n=!1,onOpenChange:d,strategy:m,placement:v,offset:b=4,anchorElement:y,anchorRef:_,floatingMiddlewares:E,floatingContext:S,floatingInteractions:k,floatingRef:N,floatingStyles:R,floatingClassName:I,modal:M=!1,initialFocus:T,returnFocus:A=!0,focusOrder:O,disableVisuallyHiddenDismiss:z=!M,onClose:D,onEscapeKeyDown:j,onOutsideClick:P,disableEscapeKeyDown:L=!1,disableOutsideClick:F=!1,disableFocusOut:B=!1,style:U,className:W,children:V,disablePortal:H=!1,disableLayer:G=!1,disableTransition:q=!1,qa:Y,role:Z,zIndex:K=1e3,onTransitionIn:$,onTransitionOut:X,onTransitionInComplete:J,onTransitionOutComplete:Q,...ee}){(0,p.sJ)({open:n,type:"popup",enabled:!G});const te=i.useRef(null),[ne,re]=i.useState(null),{offset:ie}=(0,x._6)(b,t),{placement:oe,middleware:se}=(0,x.H5)(v,H),ae=i.useCallback(((e,t,n)=>{if(d?.(e,t,n),e||!t)return;let r;r="escape-key"===n?"escapeKeyDown":"outside-press"===n?"outsideClick":n,"escapeKeyDown"===r&&j&&j(t),"outsideClick"===r&&P&&P(t),D?.(t,r)}),[d,D,j,P]),le=(0,o.jV)(),{refs:ce,elements:ue,floatingStyles:de,placement:he,middlewareData:pe,context:me,update:fe}=(0,o.YF)({rootContext:S,nodeId:le,strategy:m,placement:oe,open:n,onOpenChange:ae,middleware:E??[(0,s.cv)(ie),(0,s.uY)({padding:g.yY,limiter:(0,s.dr)({offset:4+(t?18:0)}),altBoundary:H}),se,t&&(0,s.x7)({element:ne,padding:4}),t&&(0,x._V)()]});i.useEffect((()=>{const e=void 0===y?_?.current:y;void 0!==e&&e!==ce.reference.current&&ce.setReference(e)}),[y,_,ce]);const ge=(0,o.qs)(me,{enabled:Boolean(Z||M),role:Z??(M?"dialog":void 0)}),ve=(0,o.bQ)(me,{enabled:!F||!L,outsidePress:!F,escapeKey:!L}),{getFloatingProps:be}=(0,o.NI)(k??[ge,ve]),{isMounted:ye,status:we}=(0,o.hU)(me,{duration:q?0:g.CT}),xe=(0,c.D9)(we);i.useEffect((()=>{if(ye&&ue.reference&&ue.floating)return(0,a.Me)(ue.reference,ue.floating,fe)}),[ye,ue,fe]);const Ce=(0,l.cR)(ce.setFloating,N),_e=i.useCallback((e=>{"open"===we&&"transform"===e.propertyName&&J?.()}),[we,J]);i.useEffect((()=>{"initial"===we&&"unmounted"===xe&&$?.(),"close"===we&&"open"===xe&&X?.(),"unmounted"===we&&"close"===xe&&Q?.()}),[we,xe,$,X,Q]);let Ee=T;return void 0===Ee&&(Ee=M?ce.floating:-1),(0,r.jsx)(o.mN,{id:le,children:ye||e?(0,r.jsx)(u.h,{disablePortal:H,children:(0,r.jsx)(o.wD,{context:me,disabled:!ye,modal:M,initialFocus:Ee,returnFocus:A,closeOnFocusOut:!B,visuallyHiddenDismiss:!z&&w("close"),guards:M||!H,order:O,children:(0,r.jsx)("div",{ref:Ce,className:I,style:{position:"absolute",top:0,left:0,zIndex:K,width:"max-content",pointerEvents:ye?"auto":"none",outline:"none",...de,...R},"data-floating-ui-placement":he,"data-floating-ui-status":we,"aria-modal":!(!M||!ye)||void 0,...be({onTransitionEnd:_e}),children:(0,r.jsxs)("div",{ref:te,className:C({open:ye,"disable-transition":q},W),style:U,"data-qa":Y,...(0,h.z)(ee),children:[t&&(0,r.jsx)(f,{ref:re,styles:pe.arrowStyles}),V]})})})}):null})}function E(e){return null===(0,o.Zm)()?(0,r.jsx)(o.RB,{children:(0,r.jsx)(_,{...e})}):(0,r.jsx)(_,{...e})}},23940:(e,t,n)=>{"use strict";n.d(t,{h:()=>u});var r=n(52322),i=n(2784),o=n(87578),s=n(94822),a=n(38690),l=n(55337);const c=(0,n(89393).Ge)("portal");function u({container:e,children:t,disablePortal:n}){const u=(0,s.Xw)(),{scoped:d}=(0,l.T)(),h=e??u;return n?(0,r.jsx)(i.Fragment,{children:t}):h?(0,r.jsx)(o.ll,{root:h,children:d?(0,r.jsx)(a.f6,{rootClassName:c("theme-wrapper"),scoped:!0,children:t}):t}):null}},94338:(e,t,n)=>{"use strict";n.d(t,{h:()=>r.h});var r=n(23940)},67107:(e,t,n)=>{"use strict";n.d(t,{E:()=>c});var r=n(52322),i=n(2784),o=n(98879),s=n(54100),a=n(37126),l=n(79281);const c=i.forwardRef((function(e,t){const{text:n="",theme:i="default",size:c="m",loading:u=!1,className:d,qa:h}=e,p={...e,text:n,theme:i,size:c,loading:u};return(0,r.jsxs)("div",{ref:t,className:(0,a.L)({size:c},d),"data-qa":h,children:[(0,r.jsx)("div",{className:(0,a.L)("text"),children:n}),(0,l.g)(p)?(0,r.jsx)(o.b,{...p}):(0,r.jsx)(s.O,{...p})]})}))},99546:(e,t,n)=>{"use strict";n.d(t,{Y:()=>l});var r=n(52322),i=n(2784),o=n(1262),s=n(76115);const a=(0,n(89393).Ge)("radio"),l=i.forwardRef((function(e,t){const{size:n="m",disabled:i=!1,content:l,children:c,title:u,style:d,className:h,qa:p}=e,{checked:m,inputProps:f}=(0,o.xL)(e),g=l||c,v=(0,r.jsxs)("span",{className:a("indicator"),children:[(0,r.jsx)("span",{className:a("disc")}),(0,r.jsx)("input",{...f,className:a("control")}),(0,r.jsx)("span",{className:a("outline")})]});return(0,r.jsx)(s.J,{ref:t,title:u,style:d,size:n,disabled:i,className:a({size:n,disabled:i,checked:m},h),qa:p,control:v,children:g})}))},10778:(e,t,n)=>{"use strict";n.d(t,{E:()=>l});var r=n(52322),i=n(2784),o=n(1262),s=n(99546);const a=(0,n(89393).Ge)("radio-group"),l=i.forwardRef((function(e,t){const{size:n="m",direction:l="horizontal",style:c,className:u,optionClassName:d,qa:h,children:p}=e;let m=e.options;m||(m=i.Children.toArray(p).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,qa:e.qa}))));const{containerProps:f,optionsProps:g}=(0,o.ar)({...e,options:m});return(0,r.jsx)("div",{...f,ref:t,style:c,className:a({size:n,direction:l},u),"data-qa":h,children:g.map((e=>(0,i.createElement)(s.Y,{...e,key:e.value,className:a("option",d),size:n})))})}));l.Option=s.Y},82737:(e,t,n)=>{"use strict";n.d(t,{e:()=>d,b:()=>c});var r=n(52322),i=n(2784),o=n(1262),s=n(89393),a=n(50535);const l=(0,s.Ge)("segmented-radio-group"),c=i.forwardRef((function(e,t){const{disabled:n=!1,content:i,children:s,title:c}=e,{checked:u,inputProps:d}=(0,o.xL)(e),h=i||s,p=(0,a.yb)(h)||(0,a.Dc)(h);return(0,r.jsxs)("label",{className:l("option",{disabled:n,checked:u}),ref:t,title:c,children:[(0,r.jsx)("input",{...d,className:l("option-control")}),h&&(0,r.jsx)("span",{className:l("option-text",{icon:p}),children:h})]})})),u=(0,s.Ge)("segmented-radio-group"),d=i.forwardRef((function(e,t){const{size:n="m",width:s,style:a,className:l,qa:d,children:h}=e;let p=e.options;p||(p=i.Children.toArray(h).map((({props:e})=>({value:e.value,content:e.content||e.children,disabled:e.disabled,title:e.title}))));const{containerProps:m,optionsProps:f}=(0,o.ar)({...e,options:p});return(0,r.jsx)("div",{...m,ref:t,style:a,className:u({size:n,width:s},l),"data-qa":d,children:f.map((e=>(0,i.createElement)(c,{...e,key:e.value})))})}));d.Option=c},26194:(e,t,n)=>{"use strict";n.d(t,{Gv:()=>v,Ph:()=>b,Ql:()=>f.W,y:()=>f.Y,Gd:()=>h.Gd,VY:()=>m.V,VP:()=>g.VP,nw:()=>m.n});var r=n(52322),i=n(2784),o=n(60805),s=n(94822),a=n(21852),l=n(24309),c=n(68085),u=n(31984),d=n(1899),h=n(8478),p=n(42513),m=n(27315),f=n(17263),g=n(41451);const v=({renderFilter:e,renderList:t})=>(0,r.jsxs)(i.Fragment,{children:[e(),t()]}),b=i.forwardRef((function(e,t){const{onUpdate:n,onOpenChange:f,onFilterChange:b,renderControl:y,renderFilter:w,renderOption:x,renderOptionGroup:C,renderSelectedOption:_,renderEmptyOptions:E,renderPopup:S=v,getOptionHeight:k,getOptionGroupHeight:N,filterOption:R,name:I,form:M,className:T,controlClassName:A,popupClassName:O,qa:z,value:D,defaultValue:j,defaultOpen:P,open:L,label:F,placeholder:B,filterPlaceholder:U,width:W,popupWidth:V,popupPlacement:H,error:G,virtualizationThreshold:q=h._7,view:Y="normal",size:Z="m",pin:K="round-round",multiple:$=!1,disabled:X=!1,filterable:J=!1,filter:Q,disablePortal:ee,hasClear:te=!1,onClose:ne,id:re,hasCounter:ie,renderCounter:oe,title:se}=e,ae=(0,c.XA)(),[le,ce]=(0,s.zk)(Q,"",b),ue=i.useRef(null),de=i.useRef(null),he=i.useRef(null),pe=i.useRef(null),me=(0,s.cR)(t,de),{value:fe,open:ge,toggleOpen:ve,setValue:be,handleSelection:ye,handleClearValue:we}=(0,s.L7)({onUpdate:n,value:D,defaultValue:j,defaultOpen:P,multiple:$,open:L,onClose:ne,onOpenChange:f,disabled:X});i.useEffect((()=>{!ge&&J&&ae&&setTimeout((()=>{ce("")}),300)}),[ge,J,ce,ae]);const xe=e.options||(0,g.DA)(e.children),Ce=(0,m.n)({options:xe,filter:le,filterable:J,filterOption:R}),_e=(0,m.V)(Ce),Ee=(0,g.Df)(Ce,fe,_),Se=_e.length>=q,{errorMessage:ke,errorPlacement:Ne,validationState:Re}=(0,l.II)({error:G,errorMessage:e.errorMessage,errorPlacement:e.errorPlacement||"outside",validationState:e.validationState}),Ie=(0,s.uR)(),Me="invalid"===Re,Te=Me&&Boolean(ke)&&"outside"===Ne,Ae=Me&&Boolean(ke)&&"inside"===Ne,Oe=i.useCallback((e=>{if(e&&!e?.disabled&&!("label"in e)){if($){const e=pe?.current?.getActiveItem();ae||he.current?.focus(),"number"==typeof e&&setTimeout((()=>{pe?.current?.activateItem(e,!0)}),50)}ye(e)}}),[ye,ae,$]),ze=i.useCallback((e=>{[o.V.ENTER,o.V.SPACEBAR].includes(e.key)&&ge&&(e.preventDefault(),e.key===o.V.SPACEBAR&&Oe((0,g.CL)(pe))),[o.V.ARROW_DOWN,o.V.ARROW_UP].includes(e.key)&&!ge&&(e.preventDefault(),ve()),e.key===o.V.ESCAPE&&ge&&ve(!1),pe?.current?.onKeyDown(e)}),[Oe,ge,ve]),De=i.useCallback((e=>{pe?.current?.onKeyDown(e)}),[]),je=i.useCallback((e=>{if(e){const t=(0,g.PB)(e,(0,g.qZ)(pe));"number"==typeof t&&-1!==t&&pe?.current?.activateItem(t,!0)}}),[]);(0,p.e)({onChange:je,open:ge,disabled:J});const Pe={..."max"===W&&{width:W}},Le={};"number"==typeof W&&(Le.width=W);const Fe=i.useCallback((()=>ve(!1)),[ve]),{onFocus:Be,onBlur:Ue}=e,{focusWithinProps:We}=(0,s.L_)({onFocusWithin:Be,onBlurWithin:i.useCallback((e=>{Ue?.(e),ae||Fe()}),[Fe,ae,Ue])}),Ve=(0,s.uR)(),He=re??Ve,Ge=`select-popup-${He}`,[qe,Ye]=(0,p.i)({options:_e,open:ge,value:fe});return(0,r.jsxs)("div",{ref:ue,className:(0,h.sj)(Pe,T),...We,style:Le,tabIndex:-1,children:[(0,r.jsx)(d.Yw,{...(0,u.z)(e,{labelable:!0}),toggleOpen:ve,hasClear:te,clearValue:we,ref:me,className:A,qa:z,view:Y,size:Z,pin:K,label:F,placeholder:B,selectedOptionsContent:Ee,isErrorVisible:Me,errorMessage:Ae?ke:void 0,open:ge,disabled:X,onKeyDown:ze,renderControl:y,value:fe,popupId:Ge,selectId:He,activeIndex:qe,hasCounter:$&&ie,renderCounter:oe,title:se}),(0,r.jsx)(d.hs,{ref:ue,className:O,controlRef:de,width:V,open:ge,handleClose:Fe,disablePortal:ee,virtualized:Se,mobile:ae,placement:H,onAfterOpen:J?()=>{he.current?.focus()}:void 0,onAfterClose:J?()=>{ce("")}:void 0,children:S({renderFilter:()=>J?(0,r.jsx)(d.zZ,{ref:he,size:Z,value:le,placeholder:U,onChange:ce,onKeyDown:De,renderFilter:w,popupId:Ge,activeIndex:qe}):null,renderList:()=>_e.length||e.loading?(0,r.jsx)(d.EI,{ref:pe,size:Z,value:fe,mobile:ae,flattenOptions:_e,multiple:$,virtualized:Se,onOptionClick:Oe,renderOption:x,renderOptionGroup:C,getOptionHeight:k,getOptionGroupHeight:N,loading:e.loading,onLoadMore:e.onLoadMore,id:Ge,activeIndex:qe,onChangeActive:Ye}):(0,r.jsx)(d.TT,{filter:le,renderEmptyOptions:E})})}),(0,r.jsx)(a.Z,{errorMessage:Te?ke:null,errorMessageId:Ie}),(0,r.jsx)(d.MG,{name:I,value:fe,disabled:X,form:M,onReset:be})]})}));b.Option=f.W,b.OptionGroup=f.Y},41451:(e,t,n)=>{"use strict";n.d(t,{BC:()=>l,CL:()=>v,DA:()=>p,Df:()=>h,Ht:()=>y,PB:()=>f,T7:()=>c,VP:()=>a,_x:()=>m,nK:()=>u,qZ:()=>g,vk:()=>b});var r=n(52322),i=n(2784),o=n(60805),s=n(8478);const a=e=>Boolean(e&&"label"in e),l=e=>{const t=e.reduce(((e,t)=>("label"in t?(e.push({label:t.label,disabled:!0,data:t.data}),e.push(...t.options||[])):e.push(t),e)),[]);return Object.defineProperty(t,s.YV,{enumerable:!1,value:{}}),t},c=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:r,option:i,index:o,mobile:l}=e;let c=l?s.el:s._X[r];if(a(i)){const e=0===o?0:s.rn;return c=""===i.label?0:c,n?n(i,o):c+e}return t?t(i,o):c},u=e=>{const{getOptionHeight:t,getOptionGroupHeight:n,size:r,options:i,mobile:o}=e;return i.reduce(((e,i,s)=>e+c({getOptionHeight:t,getOptionGroupHeight:n,size:r,option:i,index:s,mobile:o})),0)},d=e=>"string"==typeof e.content?e.content:"string"==typeof e.children?e.children:e.text?e.text:e.value,h=(e,t,n)=>{if(0===t.length)return null;const o=e.filter((e=>!a(e))),s=t.reduce(((e,t)=>{const n=o.find((e=>e.value===t));return e.push(n||{value:t}),e}),[]);return n?s.map(((e,t)=>(0,r.jsx)(i.Fragment,{children:n(e,t)},e.value))):s.map((e=>d(e))).join(", ")},p=e=>(e=>i.Children.toArray(e))(e).reduce(((e,{props:t})=>{if("label"in t){const n=t.options||(e=>i.Children.toArray(e).reduce(((e,{props:t})=>("value"in t&&e.push(t),e)),[]))(t.children);e.push({options:n,label:t.label})}return"value"in t&&e.push({...t}),e}),[]),m=(e,t)=>{const n=1===e.length;let r="";return e===o.V.BACKSPACE&&t.length?r=t.slice(0,t.length-1):n&&(r=(t+e).trim()),r},f=(e,t)=>t?t.findIndex((t=>{if(a(t))return!1;if(t.disabled)return!1;const n=d(t);return(r=e,new RegExp(r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"i")).test(n);var r})):-1,g=e=>e?.current?.getItems()||[],v=e=>{const t=g(e),n=e?.current?.getActiveItem();return"number"==typeof n?t[n]:void 0},b=e=>{const{options:t,filter:n,filterOption:r}=e,i=t.filter((e=>!!a(e)||(r?r(e,n):((e,t)=>{const n=d(e).toLocaleLowerCase(),r=t.toLocaleLowerCase();return-1!==n.indexOf(r)})(e,n))));return i.reduce(((e,t,n)=>{const r=a(t),o=a(e[e.length-1]),s=n===i.length-1;return r&&o&&e.pop(),(!r||r&&!s)&&e.push(t),e}),[])};function y(e){const t=e.offsetParent;if(t instanceof HTMLElement){const n=t.offsetHeight,r=t.scrollTop,i=e.offsetTop;i+e.offsetHeight>=r+n?t.scrollTo({top:i-n+e.offsetHeight}):i<=r&&t.scrollTo({top:i})}return!0}},47376:(e,t,n)=>{"use strict";n.d(t,{y:()=>f});var r=n(52322),i=n(2784),o=n(87578),s=n(23940),a=n(68085),l=n(38132);const c=(0,n(89393).Ge)("sheet"),u="sheet-veil";var d=n(85842);let h=[];class p extends i.Component{static defaultProps={id:"sheet",allowHideOnContentScroll:!0};veilRef=i.createRef();sheetRef=i.createRef();sheetTopRef=i.createRef();sheetMarginBoxRef=i.createRef();sheetScrollContainerRef=i.createRef();velocityTracker=new d.H;observer=null;resizeWindowTimer=null;state={startScrollTop:0,startY:0,deltaY:0,prevSheetHeight:0,swipeAreaTouched:!1,contentTouched:!1,veilTouched:!1,isAnimating:!1,inWindowResizeScope:!1,delayedResize:!1};componentDidMount(){this.addListeners(),this.show();const e=this.getAvailableContentHeight(this.sheetContentHeight);this.setInitialStyles(e),this.setState({prevSheetHeight:e})}componentDidUpdate(e){const{visible:t,location:n}=this.props;!e.visible&&t&&this.show(),(e.visible&&!t||this.shouldClose(e))&&this.hide(),e.location.pathname!==n.pathname&&(h=[])}componentWillUnmount(){this.removeListeners()}render(){const{content:e,contentClassName:t,swipeAreaClassName:n,hideTopBar:o,title:s}=this.props,{deltaY:a,swipeAreaTouched:l,contentTouched:d,veilTouched:h}=this.state,p={"with-transition":!a||h},m={"with-transition":p["with-transition"]},f={"without-scroll":a>0&&d||l},g={"always-full-height":this.props.alwaysFullHeight};return(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{ref:this.veilRef,className:c("veil",p),onClick:this.onVeilClick,onTransitionEnd:this.onVeilTransitionEnd,role:"presentation","data-qa":u}),(0,r.jsxs)("div",{ref:this.sheetRef,className:c("sheet",m),role:"dialog","aria-modal":"true","aria-label":s,children:[!o&&(0,r.jsx)("div",{ref:this.sheetTopRef,className:c("sheet-top"),children:(0,r.jsx)("div",{className:c("sheet-top-resizer")})}),(0,r.jsx)("div",{className:c("sheet-swipe-area",n),onTouchStart:this.onSwipeAreaTouchStart,onTouchMove:this.onSwipeAriaTouchMove,onTouchEnd:this.onSwipeAriaTouchEnd}),(0,r.jsx)("div",{ref:this.sheetScrollContainerRef,className:c("sheet-scroll-container",f),onTouchStart:this.onContentTouchStart,onTouchMove:this.onContentTouchMove,onTouchEnd:this.onContentTouchEnd,onTransitionEnd:this.onContentTransitionEnd,children:(0,r.jsx)("div",{ref:this.sheetMarginBoxRef,className:c("sheet-margin-box",g),children:(0,r.jsx)("div",{className:c("sheet-margin-box-border-compensation"),children:(0,r.jsxs)("div",{className:c("sheet-content",t),children:[s&&(0,r.jsx)("div",{className:c("sheet-content-title"),children:s}),e]})})})})]})]})}get veilOpacity(){return this.veilRef.current?.style.opacity||0}get sheetTopHeight(){return this.sheetTopRef.current?.getBoundingClientRect().height||0}get sheetHeight(){return this.sheetRef.current?.getBoundingClientRect().height||0}get sheetScrollTop(){return this.sheetScrollContainerRef.current?.scrollTop||0}get sheetContentHeight(){return this.sheetMarginBoxRef.current?.getBoundingClientRect().height||0}setInitialStyles(e){this.sheetScrollContainerRef.current&&this.sheetMarginBoxRef.current&&(this.sheetScrollContainerRef.current.style.height=`${e}px`)}setStyles=({status:e,deltaHeight:t=0})=>{if(!this.sheetRef.current||!this.veilRef.current)return;const n=this.sheetHeight-t,r="showing"===e?`translate3d(0, -${n}px, 0)`:"translate3d(0, 0, 0)";let i=0;"showing"===e&&(i=0===t?1:n/this.sheetHeight),this.veilRef.current.style.opacity=String(i),this.sheetRef.current.style.transform=r};getAvailableContentHeight=e=>{let t=.9;"number"==typeof this.props.maxContentHeightCoefficient&&this.props.maxContentHeightCoefficient>=0&&this.props.maxContentHeightCoefficient<=1?t=this.props.maxContentHeightCoefficient:"number"==typeof this.props.maxContentHeightCoefficient&&(0,l.O)('[Sheet] The value of the "maxContentHeightCoefficient" property must be between 0 and 1');const n=window.innerHeight*t-this.sheetTopHeight;if(this.props.alwaysFullHeight)return n;return e>=n?n:e};show=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"showing"}),this.setHash()}))};hide=()=>{this.setState({isAnimating:!0},(()=>{this.setStyles({status:"hiding"}),this.removeHash()}))};onSwipeAreaTouchStart=e=>{this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,swipeAreaTouched:!0})};onContentTouchStart=e=>{this.props.allowHideOnContentScroll&&!this.state.swipeAreaTouched&&(this.velocityTracker.clear(),this.setState({startY:e.nativeEvent.touches[0].clientY,startScrollTop:this.sheetScrollTop,contentTouched:!0}))};onSwipeAriaTouchMove=e=>{const t=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),this.setState({deltaY:t}),t<=0||this.setStyles({status:"showing",deltaHeight:t})};onContentTouchMove=e=>{if(!this.props.allowHideOnContentScroll)return;if(!this.state.startY)return void this.onContentTouchStart(e);const{startScrollTop:t,swipeAreaTouched:n}=this.state;if(n||this.sheetScrollTop>0||t>0&&t!==this.sheetScrollTop)return;const r=e.nativeEvent.touches[0].clientY-this.state.startY;this.velocityTracker.addMovement({x:e.nativeEvent.touches[0].clientX,y:e.nativeEvent.touches[0].clientY}),r<=0?this.setState({deltaY:0}):(this.setState({deltaY:r}),this.setStyles({status:"showing",deltaHeight:r}))};onTouchEndAction=e=>{const t=this.velocityTracker.getYAcceleration();this.sheetHeight<=e?this.props.hideSheet():e>50&&t<=.08&&t>=-.02||t>.08?this.hide():0!==e&&this.show()};onSwipeAriaTouchEnd=()=>{const{deltaY:e}=this.state;this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,swipeAreaTouched:!1})};onContentTouchEnd=()=>{const{deltaY:e,swipeAreaTouched:t}=this.state;this.props.allowHideOnContentScroll&&!t&&(this.onTouchEndAction(e),this.setState({startY:0,deltaY:0,contentTouched:!1}))};onVeilClick=()=>{this.state.isAnimating||(this.setState({veilTouched:!0}),this.hide())};onVeilTransitionEnd=()=>{this.setState({isAnimating:!1}),"0"!==this.veilOpacity?this.state.delayedResize&&(this.onResizeWindow(),this.setState({delayedResize:!1})):this.props.hideSheet()};onContentTransitionEnd=e=>{"height"===e.propertyName&&this.sheetScrollContainerRef.current&&(this.sheetScrollContainerRef.current.style.transition="none")};onResizeWindow=()=>{this.state.isAnimating?this.setState({delayedResize:!0}):(this.setState({inWindowResizeScope:!0}),this.resizeWindowTimer&&window.clearTimeout(this.resizeWindowTimer),this.resizeWindowTimer=window.setTimeout((()=>{this.onResize()}),50))};onResize=()=>{if(!this.sheetRef.current||!this.sheetScrollContainerRef.current)return;const e=this.sheetContentHeight;if(e===this.state.prevSheetHeight&&!this.state.inWindowResizeScope)return;const t=this.getAvailableContentHeight(e);this.sheetScrollContainerRef.current.style.transition=this.state.prevSheetHeight>e?"height 0s ease 0.3s":"none",this.sheetScrollContainerRef.current.style.height=`${t}px`,this.sheetRef.current.style.transform=`translate3d(0, -${t+this.sheetTopHeight}px, 0)`,this.setState({prevSheetHeight:e,inWindowResizeScope:!1})};addListeners(){window.addEventListener("resize",this.onResizeWindow),this.sheetMarginBoxRef.current&&(this.observer=new ResizeObserver((()=>{this.state.inWindowResizeScope||this.onResize()})),this.observer.observe(this.sheetMarginBoxRef.current))}removeListeners(){window.removeEventListener("resize",this.onResizeWindow),this.observer&&this.observer.disconnect()}setHash(){const{id:e,platform:t,location:n,history:r}=this.props;if(t===a.t4.BROWSER)return;const i={...n,hash:e};switch(t){case a.t4.IOS:n.hash&&h.push(n.hash),r.replace(i);break;case a.t4.ANDROID:r.push(i)}}removeHash(){const{id:e,platform:t,location:n,history:r}=this.props;if(t!==a.t4.BROWSER&&n.hash===`#${e}`)switch(t){case a.t4.IOS:r.replace({...n,hash:h.pop()??""});break;case a.t4.ANDROID:r.goBack()}}shouldClose(e){const{id:t,platform:n,location:r,history:i}=this.props;return n!==a.t4.BROWSER&&"POP"===i.action&&e.location.hash!==r.hash&&r.hash!==`#${t}`}}const m=(0,a.ze)(function(e){const t=t=>{const{useHistory:n,useLocation:i,...o}=t;return(0,r.jsx)(e,{...o,history:n(),location:i()})},n=e.displayName||e.name||"Component";return t.displayName=`withRouterWrapper(${n})`,t}(p)),f=({children:e,onClose:t,visible:n,id:a,title:l,className:u,contentClassName:d,swipeAreaClassName:h,allowHideOnContentScroll:p,hideTopBar:f,maxContentHeightCoefficient:g,alwaysFullHeight:v,qa:b})=>{const[y,w]=i.useState(n),[x,C]=i.useState(n);!x&&n&&w(!0),n!==x&&C(n);return y?(0,r.jsx)(s.h,{children:(0,r.jsx)(o.y0,{"data-qa":b,className:c(null,u),lockScroll:y,style:{overflow:void 0},children:(0,r.jsx)(m,{id:a,content:e,contentClassName:d,swipeAreaClassName:h,title:l,visible:n,allowHideOnContentScroll:p,hideTopBar:f,hideSheet:()=>{t&&t(),w(!1)},maxContentHeightCoefficient:g,alwaysFullHeight:v})})}):null}},18738:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(52322);const i=(0,n(89393).Ge)("skeleton");function o({className:e,style:t,qa:n,animation:o="gradient"}){return(0,r.jsx)("div",{className:i({animation:o},e),style:t,"data-qa":n})}},65466:(e,t,n)=>{"use strict";n.d(t,{i:()=>y,M:()=>v});var r=n(52322),i=n(2784),o=n(94822),s=n(1262),a=n(38690),l=n(89393),c=n(31984),u=n(66292),d=n(64215),h=n(90825);function p({value:e,min:t,max:n}){return void 0===e||e<t?t:e>n?n:e}function m({value:e=[],min:t=0,max:n=100}){return[p({max:n,min:t,value:e[0]}),p({max:n,min:t,value:e[1]})].sort(((e,t)=>e-t))}function f({count:e=0,max:t,min:n}){if(!e)return[];if(t===n)return[n];if(1===e){const e=Math.abs(t-n)/2;return[Math.round(100*(n+e))/100]}if(e>2){const r=[],i=Math.abs(t-n)/(e-1);for(let t=0;t<e;t++)r.push(Math.round(100*(n+i*t))/100);return r}return[n,t]}function g({points:e,markFormat:t,min:n,max:r}){const i={};return e.forEach((e=>{const o=t?t(e):e;i[e]=e===n||e===r?{label:o,style:h.u}:o})),i}function v({max:e=100,min:t=0,defaultValue:n,step:r,value:i,markFormat:o,marks:s,tooltipDisplay:a,tooltipFormat:l,startPoint:c}){const u={value:i,defaultValue:n??t,range:!1,max:e,min:t,step:r,tooltipDisplay:a};if(u.tooltipFormat=l||o,e<t&&(u.max=t,u.min=e),Array.isArray(s)?u.marks=g({points:s,markFormat:o,min:u.min,max:u.max}):u.marks=0===s?{}:g({points:f({count:s,max:e,min:t}),markFormat:o,min:t,max:e}),u.startPoint=function({min:e,max:t,startPoint:n}){if(void 0!==n)return p({min:e,max:t,value:n})}({min:u.min,max:u.max,startPoint:c}),void 0===n&&(u.defaultValue=void 0===u.startPoint?u.min:u.startPoint),void 0===i){const e=Array.isArray(u.defaultValue);u.range=e,u.defaultValue=e?m({min:u.min,max:u.max,value:u.defaultValue}):p({min:u.min,max:u.max,value:u.defaultValue})}else{const e=Array.isArray(i);u.range=e,u.value=e?m({min:u.min,max:u.max,value:i}):p({min:u.min,max:u.max,value:i})}return u}const b=(0,l.Ge)("slider"),y=i.forwardRef((function({value:e,defaultValue:t,size:n="m",min:l=0,max:h=100,step:p=1,markFormat:m,marks:f=2,tooltipDisplay:g,tooltipFormat:y=m,errorMessage:w,validationState:x,disabled:C=!1,startPoint:_,onBlur:E,onUpdate:S,onUpdateComplete:k,onFocus:N,autoFocus:R=!1,tabIndex:I,className:M,style:T,qa:A,apiRef:O,"aria-label":z,"aria-labelledby":D,name:j,form:P,...L},F){const B=(0,a.gm)(),U=v({defaultValue:t,max:h,min:l,step:p,value:e,markFormat:m,marks:f,tooltipDisplay:g,tooltipFormat:y,startPoint:_}),[W,V]=(0,o.zk)(U.value,U.defaultValue,S),H=i.useCallback((e=>{V(e),k?.(e)}),[k,V]),G=(0,s.qt)({initialValue:W,onReset:H}),q={size:n,error:"invalid"===x&&!C,disabled:C,"tooltip-display":U.tooltipDisplay,rtl:"rtl"===B,"no-marks":Array.isArray(f)?0===f.length:0===f};return(0,r.jsxs)("div",{...(0,c.z)(L),className:b(null,M),style:T,ref:F,children:[(0,r.jsx)("div",{className:b("top",{size:n,"tooltip-display":g})}),(0,r.jsx)(u.y,{ref:O,value:W,min:U.min,max:U.max,step:U.step,range:U.range,disabled:C,marks:U.marks,startPoint:U.startPoint,onBlur:E,onFocus:N,onChange:V,onChangeComplete:k,stateModifiers:q,autoFocus:R,tabIndex:I,"data-qa":A,handleRender:(e,t)=>{const n="off"===U.tooltipDisplay?e:(0,r.jsx)(d.N,{originHandle:e,originHandleProps:t,stateModifiers:q,className:b("tooltip"),tooltipFormat:U.tooltipFormat});return(0,r.jsxs)(i.Fragment,{children:[n,(0,r.jsx)("input",{ref:G,type:"hidden",name:j,form:P,value:t.value,disabled:C})]})},reverse:q.rtl,ariaLabelForHandle:z,ariaLabelledByForHandle:D}),q.error&&w&&(0,r.jsx)("div",{className:b("error",{size:n}),children:w})]})}))},26902:(e,t,n)=>{"use strict";n.d(t,{y:()=>s});var r=n(52322),i=n(2784);const o=(0,n(89393).Ge)("spin"),s=i.forwardRef((function(e,t){const{size:n="m",style:i,className:s,qa:a}=e;return(0,r.jsx)("div",{ref:t,style:i,className:o({size:n},s),"data-qa":a,children:(0,r.jsx)("div",{className:o("inner")})})}))},75553:(e,t,n)=>{"use strict";n.d(t,{v:()=>u});var r=n(52322),i=n(2784),o=n(31984),s=n(42381),a=n(28135),l=n(35187),c=n(57858);const u=e=>{const{children:t,value:n,size:s="s",className:u,onUpdate:d,separator:h}=e,p=i.useMemo((()=>i.Children.map(t,((e,n)=>{const o=e.props?.id||n,s=i.cloneElement(e,{id:o});return(0,r.jsxs)("li",{className:(0,c.b)("list-item"),children:[s,Boolean(n!==i.Children.count(t)-1)&&(0,r.jsx)(a.C,{separator:h})]},o)}))),[t,h]);return(0,r.jsx)(l.E.Provider,{value:{size:s,onUpdate:d,value:n},children:(0,r.jsx)("ol",{...(0,o.z)(e,{labelable:!0}),className:(0,c.b)(null,u),style:e.style,"data-qa":e.qa,children:p})})};u.Item=s.j,u.displayName="Stepper"},44943:(e,t,n)=>{"use strict";n.d(t,{r:()=>l});var r=n(52322),i=n(2784),o=n(1262),s=n(76115);const a=(0,n(89393).Ge)("switch"),l=i.forwardRef((function(e,t){const{size:n="m",disabled:i=!1,content:l,children:c,title:u,style:d,className:h,qa:p}=e,{checked:m,inputProps:f}=(0,o.O)({...e,controlProps:{...e.controlProps,role:"switch"}}),g=l||c,v=(0,r.jsxs)("span",{className:a("indicator"),children:[(0,r.jsx)("input",{...f,className:a("control")}),(0,r.jsx)("span",{className:a("outline")}),(0,r.jsx)("span",{className:a("slider")})]});return(0,r.jsx)(s.J,{ref:t,title:u,style:d,size:n,disabled:i,className:a({size:n,disabled:i,checked:m},h),labelClassName:a("text"),qa:p,control:v,children:g})}))},68880:(e,t,n)=>{"use strict";n.d(t,{N:()=>M});var r=n(2784),i=n(52322),o=n(17943),s=n(27073),a=n(38461),l=n(15863),c=n(94822),u=n(87504),d=n(19810),h=n(28930),p=n(70502),m=n(79966),f=n(54883),g=n(48005),v=n(41558),b=n(89393),y=n(97777),w=n(13121),x=n(93642);const C=(0,y.e)({en:w,ru:x},"TableColumnSetupInner"),_=(0,b.Ge)("inner-table-column-setup"),E=_("controls"),S=_("filter-input"),k=_("empty-placeholder"),N={isDragDisabled:!0},R=e=>({title:e.title}),I=(e,t)=>"string"!=typeof t.title||t.title.toLowerCase().includes(e.trim().toLowerCase()),M=e=>{const{renderSwitcher:t,popupWidth:n,popupPlacement:b,items:y,onUpdate:w,sortable:x,renderControls:M,className:T,defaultItems:A=y,showResetButton:O,filterable:z,filterPlaceholder:D,filterEmptyMessage:j,filterSettings:P=I}=e,[L,F]=r.useState(!1),[B,U]=r.useState(x),[W,V]=r.useState(x);x!==W&&(V(x),U(x));const[H,G]=r.useState(y),[q,Y]=r.useState(y);y!==q&&(Y(y),G(y));const Z=(0,v.Br)({items:H,filterItem:P,debounceTimeout:0}),K=()=>{const e=H.map((({id:e,isSelected:t})=>({id:e,isSelected:t})));w(e),ee(!1)},$=()=>(0,i.jsx)(d.z,{view:"action",width:"max",onClick:K,children:C("button_apply")}),X="function"==typeof O?O(H):O,J=(({onDragEnd:e,renderControls:t})=>{const n=(0,c.uR)();return({renderItem:o,list:s,containerRef:a,id:c,className:u})=>{const{stickyStartItemIdList:d,sortableItemIdList:h,stickyEndItemIdList:p}=((e,t)=>{let n=0;for(;n!==t.length;n++){const r=e[t[n]];if("left"!==r?.sticky&&"start"!==r?.sticky)break}let r=t.length;for(;0!==r;r--){const n=e[t[r-1]];if("right"!==n?.sticky&&"end"!==n?.sticky)break}return{stickyStartItemIdList:t.slice(0,n),sortableItemIdList:t.slice(n,r),stickyEndItemIdList:t.slice(r)}})(s.structure.itemsById,s.structure.visibleFlattenIds),m=d.map(((e,t)=>o(e,t,N))),f=h.map(((e,t)=>o(e,t+d.length))),g=p.map(((e,t)=>o(e,m.length+f.length+t,N)));return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsxs)(v.rF,{ref:a,id:c,className:u,children:[m,(0,i.jsx)(l.Z5,{onDragEnd:e,children:(0,i.jsx)(l.bK,{droppableId:n,renderClone:(e,t,n)=>{const r={provided:e,snapshot:t};return o(s.structure.visibleFlattenIds[n.source.index],n.source.index,r)},children:e=>(0,i.jsxs)("div",{...e.droppableProps,ref:e.innerRef,children:[f,e.placeholder]})})}),g]}),(0,i.jsx)("div",{className:E,children:t()})]})}})({onDragEnd:({destination:e,source:t})=>{void 0!==e?.index&&e?.index!==t.index&&G((n=>((e,t,n)=>{const r=[...e],[i]=r.splice(t,1);return r.splice(n,0,i),r})(n,t.index,e.index)))},renderControls:()=>M?M({DefaultApplyButton:$,onApply:K}):(0,i.jsxs)(g.k,{gapRow:1,direction:"column",className:E,children:[X&&(0,i.jsx)(d.z,{onClick:()=>{G(A)},width:"max",children:C("button_reset")}),(0,i.jsx)($,{})]})}),Q=(e=>({data:t,props:n,index:a,renderContainerProps:c})=>{const u=!1===e||!0===c?.isDragDisabled,d=u?void 0:(0,i.jsx)(h.J,{data:o.Z,size:16}),p=t.isRequired?(0,i.jsx)(h.J,{data:s.Z}):void 0,m=!t.isRequired&&n.selected,f={...n,selected:m,selectionViewType:t.isRequired?"single":"multiple",content:{...n.content,startSlot:p,endSlot:d}};if(u)return(0,r.createElement)(v.Gp,{...f,key:f.id});const g=(e,t)=>(0,i.jsx)(v.Gp,{...f,...e.draggableProps,...e.dragHandleProps,ref:e.innerRef,dragging:t.isDragging});return c?.provided&&c.snapshot?g(c.provided,c.snapshot):(0,i.jsx)(l._l,{draggableId:n.id,index:a,isDragDisabled:u,children:g},`item-key-${n.id}`)})(B),ee=e=>{F(e),!1===e&&(G(y),U(x),Z.reset())},te=r.useMemo((()=>(e=>{const t=[];return e.forEach((({id:e,isSelected:n})=>{n&&t.push(e)})),t})(H)),[H]),ne=(re=j,()=>(0,i.jsx)(p.xv,{className:k,children:re}));var re;const ie=z?(0,i.jsx)(f.o,{size:"m",view:"clear",placeholder:D,value:Z.filter,className:S,onUpdate:e=>{Z.onFilterUpdate(e),U(!e.length)},hasClear:!0}):null,oe=Z.filter&&!Z.items.length?ne:J;return(0,i.jsx)(m.m,{className:_(null,T),mapItemDataToContentProps:R,multiple:!0,size:"l",open:L,value:te,items:Z.filter?Z.items:H,onUpdate:e=>{G((t=>t.map((t=>({...t,isSelected:t.isRequired||e.includes(t.id)})))))},popupWidth:n,onOpenChange:ee,placement:b,slotBeforeListBody:ie,renderContainer:oe,renderControl:({toggleOpen:e})=>{const n=(0,u.S)(e);return t?.({onClick:e,onKeyDown:n})||(0,i.jsxs)(d.z,{onClick:e,onKeyDown:n,children:[(0,i.jsx)(h.J,{data:a.Z}),C("button_switcher")]})},renderItem:Q})}},77487:(e,t,n)=>{"use strict";n.d(t,{iA:()=>y,RP:()=>te,QT:()=>q,YX:()=>K,ub:()=>R,fC:()=>ge,Br:()=>re});var r=n(52322),i=n(2784),o=n(72579),s=n(93352),a=n(80537),l=n(89393),c=n(31984),u=n(38132),d=n(97777),h=n(47311),p=n(68310);const m=(0,d.e)({en:h,ru:p},"Table");function f(e){(0,u.O)(`[Table] Physical values (left, right) of "${e}" property are deprecated. Use logical values (start, end) instead.`)}function g(e,t){return"left"===e?(f(t),"start"):"right"===e?(f(t),"end"):e}const v=(0,l.Ge)("table"),b=[void 0,null,""];class y extends i.Component{static defaultProps={edgePadding:!0};static getRowId(e,t,n){const{data:r,getRowId:i,getRowDescriptor:o}=e,s=n??r.indexOf(t),a=o?.(t,s);return void 0!==a?.id?a.id:"function"==typeof i?i(t,s):String(i&&i in t?t[i]:s)}static getHeadCellContent(e){const{id:t,name:n}=e;let r;return r="function"==typeof n?n():"string"==typeof n?n:t,r}static getBodyCellContent(e,t,n){const{id:r,template:i,placeholder:a}=e;let l,c;return l="function"==typeof a?a(t,n):a??"—","function"==typeof i?c=i(t,n):"string"==typeof i?c=o(t,i):s(t,r)&&(c=o(t,r)),b.includes(c)&&l?l:c}static getDerivedStateFromProps(e,t){return e.columns.length===t.columnHeaderRefs.length?null:{columnHeaderRefs:Array.from(e.columns,(()=>i.createRef()))}}state={activeScrollElement:"scrollContainer",columnsStyles:Array.from(this.props.columns,(()=>({}))),columnHeaderRefs:Array.from(this.props.columns,(()=>i.createRef()))};tableRef=i.createRef();scrollContainerRef=i.createRef();horizontalScrollBarRef=i.createRef();horizontalScrollBarInnerRef=i.createRef();tableResizeObserver;columnsResizeObserver;componentDidMount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver=new ResizeObserver((e=>{const{contentRect:t}=e[0];this.horizontalScrollBarInnerRef.current?.style.setProperty("width",`${t.width}px`)})),this.tableRef.current&&this.tableResizeObserver.observe(this.tableRef.current),this.scrollContainerRef.current&&(this.scrollContainerRef.current.addEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.addEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.addEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.addEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver=new ResizeObserver((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length&&this.updateColumnStyles()}))})),this.tableRef.current&&this.columnsResizeObserver.observe(this.tableRef.current),this.updateColumnStyles()}componentDidUpdate(e){this.props.columns!==e.columns&&this.updateColumnStyles()}componentWillUnmount(){this.props.stickyHorizontalScroll&&(this.tableResizeObserver&&this.tableResizeObserver.disconnect(),this.scrollContainerRef.current&&(this.scrollContainerRef.current.removeEventListener("scroll",this.handleScrollContainerScroll),this.scrollContainerRef.current.removeEventListener("mouseenter",this.handleScrollContainerMouseenter)),this.horizontalScrollBarRef.current&&(this.horizontalScrollBarRef.current.removeEventListener("scroll",this.handleHorizontalScrollBarScroll),this.horizontalScrollBarRef.current.removeEventListener("mouseenter",this.handleHorizontalScrollBarMouseenter))),this.columnsResizeObserver&&this.columnsResizeObserver.disconnect()}render(){const{columns:e,stickyHorizontalScroll:t,className:n,qa:o}=this.props,s=e.some((({primary:e})=>e));return(0,r.jsx)("div",{className:v({"with-primary":s,"with-sticky-scroll":t},n),"data-qa":o,children:t?(0,r.jsxs)(i.Fragment,{children:[(0,r.jsx)("div",{ref:this.scrollContainerRef,className:v("scroll-container"),children:this.renderTable()}),this.renderHorizontalScrollBar()]}):this.renderTable()})}renderHead(){const{columns:e,edgePadding:t,wordWrap:n}=this.props,{columnsStyles:i}=this.state;return(0,r.jsx)("thead",{className:v("head"),children:(0,r.jsx)("tr",{className:v("row"),children:e.map(((e,o)=>{const{id:s,align:a,primary:l,sticky:c,className:u}=e,d=g(a,"column.align"),h=g(c,"column.sticky"),p=y.getHeadCellContent(e);return(0,r.jsx)("th",{ref:this.state.columnHeaderRefs[o],style:i[o],className:v("cell",{align:d,primary:l,sticky:h,"edge-padding":t,"word-wrap":n},u),children:p},s)}))})})}renderBody(){const{data:e}=this.props;return(0,r.jsx)("tbody",{className:v("body"),children:e.length>0?e.map(this.renderRow):this.renderEmptyRow()})}renderTable(){const{width:e="auto"}=this.props;return(0,r.jsxs)("table",{...(0,c.z)(this.props,{labelable:!0}),ref:this.tableRef,className:v("table",{width:e}),children:[this.renderHead(),this.renderBody()]})}renderRow=(e,t)=>{const{columns:n,isRowDisabled:i,onRowClick:o,onRowMouseEnter:s,onRowMouseLeave:a,onRowMouseDown:l,getRowClassNames:c,verticalAlign:u,edgePadding:d,wordWrap:h,getRowDescriptor:p,qa:m}=this.props,{columnsStyles:f}=this.state,b=p?.(e,t),w=b?.disabled||i?.(e,t)||!1,x=b?.classNames||c?.(e,t)||[],C=Boolean(!w&&(b?.interactive||o));return(0,r.jsx)("tr",{onClick:!w&&o?o.bind(null,e,t):void 0,onMouseEnter:!w&&s?s.bind(null,e,t):void 0,onMouseLeave:!w&&a?a.bind(null,e,t):void 0,onMouseDown:!w&&l?l.bind(null,e,t):void 0,className:v("row",{disabled:w,interactive:C,"vertical-align":u},x.join(" ")),"data-qa":m&&`${m}-row-${t}`,children:n.map(((n,i)=>{const{id:o,align:s,primary:a,className:l,sticky:c}=n,u=y.getBodyCellContent(n,e,t),p=g(s,"column.align"),m=g(c,"column.sticky");return(0,r.jsx)("td",{style:f[i],className:v("cell",{align:p,primary:a,sticky:m,"edge-padding":d,"word-wrap":h},l),children:u},o)}))},y.getRowId(this.props,e,t))};renderEmptyRow(){const{columns:e,emptyMessage:t}=this.props;return(0,r.jsx)("tr",{className:v("row",{empty:!0}),children:(0,r.jsx)("td",{className:v("cell"),colSpan:e.length,children:t||m("label_empty")})})}renderHorizontalScrollBar(){const{stickyHorizontalScroll:e,stickyHorizontalScrollBreakpoint:t=0}=this.props;return(0,r.jsx)("div",{ref:this.horizontalScrollBarRef,className:v("horizontal-scroll-bar",{"sticky-horizontal-scroll":e}),style:{bottom:`${t}px`},"data-qa":"sticky-horizontal-scroll-breakpoint-qa",children:(0,r.jsx)("div",{ref:this.horizontalScrollBarInnerRef,className:v("horizontal-scroll-bar-inner")})})}updateColumnStyles(){this.setState((e=>{const t=e.columnHeaderRefs.map((e=>null===e.current?void 0:e.current.getBoundingClientRect().width));return{columnsStyles:this.props.columns.map(((e,n)=>this.getColumnStyles(n,t)))}}))}getColumnStyles(e,t){const{columns:n}=this.props,r=n[e],i={};if("string"==typeof r.width)return{maxWidth:0,width:r.width};if(void 0!==r.width&&(i.width=r.width),!r.sticky)return i;const o="left"===r.sticky||"start"===r.sticky?t.slice(0,e):t.slice(e+1);return i["left"===r.sticky||"start"===r.sticky?"insetInlineStart":"insetInlineEnd"]=o.reduce(((e,t)=>a(t)?e+t:e),0),i}handleScrollContainerMouseenter=()=>{this.setState({activeScrollElement:"scrollContainer"})};handleScrollContainerScroll=()=>{"scrollContainer"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.horizontalScrollBarRef.current.scrollLeft=this.scrollContainerRef.current.scrollLeft)};handleHorizontalScrollBarMouseenter=()=>{this.setState({activeScrollElement:"scrollBar"})};handleHorizontalScrollBarScroll=()=>{"scrollBar"===this.state.activeScrollElement&&this.horizontalScrollBarRef.current&&this.scrollContainerRef.current&&(this.scrollContainerRef.current.scrollLeft=this.horizontalScrollBarRef.current.scrollLeft)}}var w=n(17335),x=n(30733),C=n(26139),_=n(67304),E=n(23203),S=n(10037);const k=(0,l.Ge)("table"),N="_selection";function R(e){const t=`withTableSelection(${(0,S.i)(e)})`;return class extends i.Component{static displayName=t;lastCheckedIndex;render(){const{selectedIds:t,onSelectionChange:n,columns:i,onRowClick:o,getRowDescriptor:s,...a}=this.props;return(0,r.jsx)(e,{...a,columns:this.enhanceColumns(i),onRowClick:this.enhanceOnRowClick(o),getRowDescriptor:this.enhanceGetRowDescriptor(s)})}renderHeadCell=()=>{const{data:e,selectedIds:t}=this.props;let n=!0,r=!1,i=!0;return e.forEach(((e,o)=>{if(this.isDisabled(e,o))return;n=!1;const s=y.getRowId(this.props,e,o);t.includes(s)?r=!0:i=!1})),i&&(r=!1),n&&(i=!1,r=!1),this.renderCheckBox({disabled:n,checked:i,handler:this.handleAllCheckBoxUpdate,indeterminate:r})};renderBodyCell=(e,t)=>{const{selectedIds:n}=this.props,r=y.getRowId(this.props,e,t),i=n.includes(r);return this.renderCheckBox({disabled:this.isDisabled(e,t),checked:i,handler:this.handleCheckBoxUpdate.bind(this,r,t)})};renderCheckBox({disabled:e,checked:t,handler:n,indeterminate:i}){return(0,r.jsx)(E.X,{size:"l",checked:t,indeterminate:i,disabled:e,onChange:n,className:k("selection-checkbox",{"vertical-align":this.props.verticalAlign}),controlProps:{"aria-label":m("label-row-select")}})}handleCheckBoxUpdate=(e,t,n)=>{const{checked:r}=n.target,i=n.nativeEvent.shiftKey,{data:o,selectedIds:s,onSelectionChange:a}=this.props;if(i&&void 0!==this.lastCheckedIndex&&this.lastCheckedIndex>=0){const e=Math.min(this.lastCheckedIndex,t),n=Math.max(this.lastCheckedIndex,t),i=o.map(((e,t)=>y.getRowId(this.props,e,t))).filter(((t,r)=>e<=r&&r<=n&&!this.isDisabled(o[r],r)));a(r?C(s,i):_(s,...i))}else a(r?[...s,e]:_(s,e));this.lastCheckedIndex=t};handleAllCheckBoxUpdate=e=>{const{checked:t}=e.target,{data:n,selectedIds:r,onSelectionChange:i}=this.props,o=n.map(((e,t)=>y.getRowId(this.props,e,t))),s=o.filter(((e,t)=>!this.isDisabled(n[t],t)));i(t?C(r,s):w(r,o))};enhanceColumns=x((e=>[{id:N,name:this.renderHeadCell,template:this.renderBodyCell,className:k("checkbox_cell"),sticky:"start"===o(e,[0,"sticky"])?"start":void 0},...e]));enhanceOnRowClick=x((e=>e?(t,n,r)=>{const i=k("selection-checkbox");if(!r.nativeEvent.target.matches(`.${i}, .${i} *`))return e(t,n,r)}:e));enhanceGetRowDescriptor=x((e=>(t,n)=>{const{selectedIds:r,getRowClassNames:i}=this.props,o=e?.(t,n)||{};void 0===o.classNames&&(o.classNames=i?.(t,n)||[]);const s=y.getRowId(this.props,t,n),a=r.includes(s);return o.classNames.push(k("row",{selected:a})),o}));isDisabled=(e,t)=>{const{isRowDisabled:n,isRowSelectionDisabled:r,getRowDescriptor:i}=this.props;return!(!r||!r(e,t))||(i?.(e,t)?.disabled||n?.(e,t)||!1)}}}var I=n(67003),M=n(94822),T=n(1262),A=n(19810),O=n(28930),z=n(78699),D=n(41556);const j="_actions";function P(e,t){const n=e.find((({id:e})=>e===j)),r=n||{id:j,name:"",sticky:"end",width:28,placeholder:""};return t(r),n?e:[...e,r]}const L=(0,l.Ge)("table"),F=L("actions"),B=L("actions-button"),U=(0,l.Ge)("table-action-popup"),W=U("menu"),V=U("menu-item"),H=["bottom-end","top-end"],G=({index:e,item:t,getRowActions:n,getRowDescriptor:o,rowActionsSize:s,isRowDisabled:a,tableQa:l})=>{const[c,,u,d]=(0,T.kt)(!1),h=i.useRef(null),p=(0,M.uR)();if(void 0===n)return null;const f=(e,n)=>{if(i=e,Array.isArray(i.items))return(0,r.jsx)(z.v2.Group,{label:e.title,children:e.items.map(f)},n);var i;const{text:o,icon:s,handler:a,href:l,...c}=e;return(0,r.jsx)(z.v2.Item,{onClick:e=>{e.stopPropagation(),a(t,n,e),u()},href:"function"==typeof l?l(t,n):l,iconStart:s,className:V,...c,children:o},n)},g=o?.(t,e)?.disabled||a?.(t,e),v=n(t,e);return 0===v.length?null:(0,r.jsxs)("div",{className:F,children:[(0,r.jsx)(D.G,{open:c,anchorRef:h,placement:H,onOutsideClick:u,id:p,qa:l&&`${l}-actions-popup`,children:(0,r.jsx)(z.v2,{className:W,size:s,children:v.map(f)})}),(0,r.jsx)(A.z,{view:"flat-secondary",className:B,onClick:d,size:s,ref:h,disabled:g,qa:l&&`${l}-actions-trigger-${e}`,"aria-label":m("label-actions"),"aria-expanded":c,"aria-controls":p,children:(0,r.jsx)(O.J,{data:I.Z})})]})};function q(e){const t=`withTableActions(${(0,S.i)(e)})`;return class extends i.Component{static displayName=t;state={popupOpen:!1,popupData:null};render(){const{renderRowActions:t,getRowActions:n,columns:i,onRowClick:o,...s}=this.props;return(0,r.jsx)(e,{...s,columns:this.enhanceColumns(i),onRowClick:this.enhanceOnRowClick(o)})}renderBodyCell=(e,t)=>{const{getRowActions:n,rowActionsSize:i,renderRowActions:o,isRowDisabled:s,getRowDescriptor:a,qa:l}=this.props;return o?o({item:e,index:t}):(0,r.jsx)(G,{index:t,item:e,getRowActions:n,rowActionsSize:i,getRowDescriptor:a,isRowDisabled:s,tableQa:l})};enhanceColumns=x((e=>P(e,(e=>{e.template=this.renderBodyCell}))));enhanceOnRowClick=x((e=>e?(t,n,r)=>{if(!r.nativeEvent.target.closest(`.${W}`)&&!r.nativeEvent.target.matches(`.${B}, .${B} *`))return e(t,n,r)}:e))}}var Y=n(87297);const Z=(0,l.Ge)("table");function K(e){const t=`withTableCopy(${(0,S.i)(e)})`;return class extends i.Component{static displayName=t;render(){const{columns:t,onRowClick:n,...i}=this.props;return(0,r.jsx)(e,{...i,columns:this.enhanceColumns(t),onRowClick:this.enhanceOnRowClick(n)})}enhanceColumns=x((e=>e.map((e=>{const t=e.meta;return t&&t.copy?{...e,template:(n,i)=>{const o=y.getBodyCellContent({...e,placeholder:""},n,i);if(!o)return o;let s;return"function"==typeof t.copy?s=String(t.copy(n,i)):"string"!=typeof o&&"number"!=typeof o||(s=String(o)),s?(0,r.jsxs)("div",{className:Z("copy"),children:[(0,r.jsx)("div",{className:Z("copy-content"),children:o}),(0,r.jsx)("div",{className:Z("copy-button"),children:(0,r.jsx)(Y.m,{text:s,size:"xs"})})]}):o}}:e}))));enhanceOnRowClick=x((e=>e?(t,n,r)=>{const i=Z("copy-button");if(!r.nativeEvent.target.matches(`.${i}, .${i} *`))return e(t,n,r)}:e))}}var $=n(87504),X=n(81146),J=n(10479),Q=n(41026);function ee({order:e}){let t;switch(e){case"asc":t=X.Z;break;case"desc":t=J.Z;break;default:t=Q.Z}return(0,r.jsx)(O.J,{data:t,size:14})}const te=ee,ne=(0,l.Ge)("table");function re(e){const t=`withTableSorting(${(0,S.i)(e)})`;function n(e,t,n){return o(e,n)===o(t,n)?0:o(e,n)>o(t,n)?1:-1}return class extends i.Component{static displayName=t;state={sort:this.props.defaultSortState??[]};render(){const{columns:t,...n}=this.props;return(0,r.jsx)(e,{...n,data:this.getSortedData(),columns:this.enhanceColumns(t)})}getSortedData(){const{data:e,columns:t,disableDataSorting:r=this.isControlledState()}=this.props,i=this.getSortState();return r||0===i.length?e:e.slice().sort(((e,r)=>{let o=0;for(;o<i.length;){const s=i[o++],a=t.find((e=>e.id===s.column)),l=a?.meta?.sort;if(!l)continue;const c="function"==typeof l?l(e,r):n(e,r,s.column);if(0!==c)return"asc"===s.order?c:-c}return 0}))}enhanceColumns=x((e=>e.map((e=>{const t=e.meta;return t&&t.sort?{...e,meta:{...e.meta,_originalName:e.name},name:()=>{const t=this.getSortState();let n;if(t.length>0){const r=t.find((t=>t.column===e.id));r&&(n=r.order)}const i=y.getHeadCellContent(e),o=[(0,r.jsx)("div",{className:ne("sort-content"),children:i},"content"),(0,r.jsx)("div",{className:ne("sort-indicator"),children:(0,r.jsx)(ee,{order:n})},"indicator")];"right"!==e.align&&"end"!==e.align||o.reverse();const s=this.handleColumnSortClick.bind(this,e),a=(0,$.S)(s);return(0,r.jsx)("div",{role:"button",tabIndex:0,className:ne("sort",{active:Boolean(n)}),onClick:s,onKeyDown:a,children:o})}}:e}))));handleColumnSortClick=(e,t)=>{const n=this.getSortState(),r=n.findIndex((t=>t.column===e.id)),i=n[r],o=this.getNextSortForColumn(e,i);t.shiftKey?i?this.handleSortStateChange([...n.slice(0,r),...n.slice(r+1),...o]):this.handleSortStateChange([...n,...o]):this.handleSortStateChange(o)};getSortState(){const{sortState:e}=this.props,{sort:t}=this.state;return this.isControlledState()?e:t}handleSortStateChange(e){const{onSortStateChange:t}=this.props;this.isControlledState()||this.setState({sort:e}),t&&t(e)}isControlledState(){const{sortState:e,onSortStateChange:t}=this.props;return Boolean(e&&t)}getColumnDefaultSortOrder(e){return e.meta?.defaultSortOrder||"asc"}getNextSortForColumn(e,t){const n="desc"===this.getColumnDefaultSortOrder(e)?["desc","asc",void 0]:["asc","desc",void 0],r=n.indexOf(t?.order),i=n[(r+1)%n.length];return i?[{column:e.id,order:i}]:[]}}}var ie=n(38461),oe=(n(18149),n(85505)),se=n(56974),ae=n(68880),le=n(50097),ce=n(52366);const ue=(0,d.e)({en:le,ru:ce},"withTableSettings");function de(e){const t=o(e,["meta","displayName"]);if(oe(t))return t;if(oe(e.name))return e.name;const n=o(e,["meta","_originalName"]);return oe(n)?n:e.id}const he=(e,t,n)=>{const r=Boolean(n?.meta?.selectedAlways);return{id:e,isSelected:!!r||t,isRequired:r,title:n?de(n):e,sticky:n?.sticky}};function pe(e,t){const n=[];return t.forEach((({id:t,isSelected:r})=>{const i=e.find((e=>t===e.id));i&&n.push(he(t,r,i))})),e.forEach((e=>{if(e.id!==j&&e.id!==N&&t.every((t=>t.id!==e.id))){const t=!1!==e.meta?.selectedByDefault;n.push(he(e.id,t,e))}})),n}const me=(0,l.Ge)("table"),fe=["bottom-end","bottom","top-end","top"];function ge(e){function t(e,{width:t,sortable:n,filterable:o}={}){const s=(0,S.i)(e);function a({updateSettings:s,settings:a,columns:l,settingsPopupWidth:c,renderControls:u,defaultSettings:d,showResetButton:h,settingsFilterPlaceholder:p,settingsFilterEmptyMessage:m,filterSettings:f,...g}){const v=i.useMemo((()=>{if(d)return pe(l,d)}),[l,d]),b=i.useMemo((()=>{const e=pe(l,a||[]);return P(function(e,t){const n=t.map((({id:t,isSelected:n})=>({isSelected:n,columnSettings:e.find((e=>t===e.id))}))).filter((({isSelected:e,columnSettings:t})=>e&&t)).map((({columnSettings:e})=>e));e[0]&&e[0].id===N&&n.unshift(e[0]);const r=se(e);return r&&r.id===j&&n.push(r),n}(l,e),(i=>{i.name=()=>(0,r.jsx)("div",{className:me("settings"),children:(0,r.jsx)(ae.N,{popupWidth:c||t,popupPlacement:fe,sortable:n,filterable:o,filterPlaceholder:p,filterEmptyMessage:m,filterSettings:f,onUpdate:s,items:e,renderSwitcher:({onClick:e})=>(0,r.jsx)(A.z,{view:"flat",className:me("settings-button"),"aria-label":ue("label_settings"),onClick:e,children:(0,r.jsx)(O.J,{data:ie.Z})}),renderControls:u,defaultItems:v,showResetButton:h})})}))}),[l,a,c,s,u,v,h]);return(0,r.jsx)(i.Fragment,{children:(0,r.jsx)(e,{...g,columns:b})})}return a.displayName=`withTableSettings(${s})`,a}return"function"==typeof e?t(e):n=>t(n,e)}},42957:(e,t,n)=>{"use strict";n.d(t,{N:()=>m});var r=n(52322),i=n(38461),o=n(19810),s=n(28930),a=n(68880),l=n(89393),c=n(97777),u=n(8469),d=n(43444);const h=(0,c.e)({en:u,ru:d},"TableColumnSetup"),p=(0,l.Ge)("table-column-setup"),m=e=>{const{switcher:t,renderSwitcher:n,disabled:l,popupWidth:c,popupPlacement:u,className:d,items:m,sortable:f=!0,showStatus:g,onUpdate:v}=e,b=()=>{if(!g)return null;const e=`${m.reduce(((e,t)=>t.selected?e+1:e),0)}/${m.length}`;return(0,r.jsx)("span",{className:p("status"),children:e})},y=m.map((({id:e,title:t,required:n,selected:r,sticky:i})=>({id:e,title:t,isRequired:n,isSelected:r,sticky:i})));return(0,r.jsx)(a.N,{items:y,onUpdate:e=>{v(e.map((({id:e,isSelected:t})=>{const n=m.find((t=>t.id===e));return{id:e,selected:t,title:n?.title,required:n?.required}})))},popupPlacement:u,popupWidth:c,renderSwitcher:e=>n?.(e)||t||(0,r.jsxs)(o.z,{disabled:l,onClick:e.onClick,children:[(0,r.jsx)(s.J,{data:i.Z}),h("button_switcher"),b()]}),sortable:f,className:p(null,d)})}},21850:(e,t,n)=>{"use strict";n.d(t,{V:()=>o,b:()=>i});const r=(0,n(89393).Ge)("color-text"),i=["primary","complementary","secondary","hint","info","info-heavy","positive","positive-heavy","warning","warning-heavy","danger","danger-heavy","utility","utility-heavy","misc","misc-heavy","brand","link","link-hover","link-visited","link-visited-hover","dark-primary","dark-complementary","dark-secondary","light-primary","light-complementary","light-secondary","light-hint","inverted-primary","inverted-complementary","inverted-secondary","inverted-hint"],o=({color:e},t)=>r({color:e},t)},70502:(e,t,n)=>{"use strict";n.d(t,{bo:()=>o.b,Sv:()=>a,xv:()=>c,V$:()=>o.V,fL:()=>l});var r=n(52322),i=n(2784),o=n(21850);const s=(0,n(89393).Ge)("text"),a=["display-4","display-3","display-2","display-1","header-2","header-1","subheader-3","subheader-2","subheader-1","body-3","body-2","body-1","body-short","caption-2","caption-1","code-3","code-inline-3","code-2","code-inline-2","code-1","code-inline-1"],l=({variant:e="body-1",ellipsis:t,ellipsisLines:n,whiteSpace:r,wordBreak:i},o)=>s({variant:e,ellipsis:t,ws:r,wb:i,"ellipsis-lines":n},o),c=i.forwardRef((function({as:e,children:t,variant:n,className:i,ellipsis:s,color:a,whiteSpace:c,wordBreak:u,ellipsisLines:d,style:h,qa:p,...m},f){const g=e||"span",v={...h};return"number"==typeof d&&(v.WebkitLineClamp=d),(0,r.jsx)(g,{ref:f,className:l({variant:n,ellipsis:s,whiteSpace:c,wordBreak:u,ellipsisLines:"number"==typeof d},a?(0,o.V)({color:a},i):i),style:v,"data-qa":p,...m,children:t})}));c.displayName="Text"},24220:(e,t,n)=>{"use strict";n.d(t,{F:()=>y});var r=n(52322),i=n(2784),o=n(34863),s=n(60148),a=n(88089),l=n(40936),c=n(28786),u=n(1262),d=n(19810),h=n(28930),p=n(89393),m=n(85182);const f=(0,p.Ge)("toast"),g=5e3,v={normal:null,info:o.Z,success:s.Z,warning:a.Z,danger:a.Z,utility:l.Z};function b({actions:e,onClose:t}){return e&&e.length?(0,r.jsx)("div",{className:f("actions"),children:e.map((({label:e,onClick:n,view:i="outlined",removeAfterClick:o=!0},s)=>(0,r.jsx)(d.z,{className:f("action"),onClick:()=>{n(),o&&t()},type:"button",size:"l",view:i,width:"auto",children:e},`${e}__${s}`)))}):null}const y=i.forwardRef((function(e,t){const{name:n,content:o,actions:s,title:a,className:l,theme:p="normal",renderIcon:y,autoHiding:w=g,isClosable:x=!0,mobile:C=!1,onClose:_,removeCallback:E}=e,S=i.useCallback((()=>{E(n),_&&_()}),[E,_,n]),k="number"==typeof w?w:void 0,N=(0,u.g4)({onClose:S,timeout:k}),R={mobile:C,theme:p},I=Boolean(a),M=Boolean(o),T=y?y(e):function({theme:e}){return e&&v[e]?(0,r.jsx)(h.J,{data:v[e],size:20,className:f("icon",{[e]:!0})}):null}({theme:p});return(0,r.jsxs)("div",{ref:t,className:f(R,l),...N,"data-toast":!0,children:[T&&(0,r.jsx)("div",{className:f("icon-container"),children:T}),(0,r.jsxs)("div",{className:f("container"),children:[I&&(0,r.jsx)("h3",{className:f("title"),children:a}),x&&(0,r.jsx)(d.z,{size:"s",view:"flat",className:f("btn-close"),onClick:S,"aria-label":(0,m.Z)("label_close-button"),children:(0,r.jsx)(h.J,{data:c.Z})}),M&&(0,r.jsx)("div",{className:f("content",{"without-title":!I}),children:o}),b({actions:s,onClose:S})]})]})}))},62395:(e,t,n)=>{"use strict";n.d(t,{FN:()=>i.F,x7:()=>r.x,B1:()=>v,Nj:()=>b,Ps:()=>a,YT:()=>u});var r=n(83220),i=n(24220),o=n(2784);const s=o.createContext(null);function a(){const e=o.useContext(s);if(null===e)throw new Error("Toaster: `useToaster` hook is used out of context");return o.useMemo((()=>({add:e.add.bind(e),remove:e.remove.bind(e),removeAll:e.removeAll.bind(e),update:e.update.bind(e),has:e.has.bind(e)})),[e])}s.displayName="ToasterContext";var l=n(52322),c=n(10037);function u(){return function(e){function t(t){const n=a();return(0,l.jsx)(e,{...t,toaster:n})}return t.displayName=`WithToaster(${(0,c.i)(e)})`,t}}var d=n(94338),h=n(68085),p=n(89393),m=n(46070),f=n(82356);const g=(0,p.Ge)("toaster");function v({className:e,mobile:t,hasPortal:n=!0}){const r=(0,h.XA)(),{remove:i}=a(),s=o.useContext(m.i),c=(0,l.jsx)(f.w,{toasts:s,removeCallback:i,mobile:t??r});return n?(0,l.jsx)(d.h,{children:(0,l.jsx)("div",{className:g({mobile:t??r},e),"aria-live":"assertive",children:c})}):c}v.displayName="ToasterComponent";const b=({toaster:e,children:t})=>{const[n,r]=o.useState([]);return o.useEffect((()=>{const t=e.subscribe(r);return()=>{t()}}),[e]),(0,l.jsx)(s.Provider,{value:e,children:(0,l.jsx)(m.i.Provider,{value:n,children:t})})};b.displayName="ToasterProvider"},58616:(e,t,n)=>{"use strict";n.d(t,{o:()=>l});var r=n(52322),i=n(2784),o=n(89393),s=n(54657);const a=(0,o.Ge)("toc"),l=i.forwardRef((function(e,t){const{value:n,items:i,className:o,onUpdate:l,qa:c,onItemClick:u}=e;return(0,r.jsx)("nav",{className:a(null,o),ref:t,"data-qa":c,children:(0,r.jsx)(s.a,{items:i,value:n,onUpdate:l,depth:1,onItemClick:u})})}))},78567:(e,t,n)=>{"use strict";n.d(t,{u:()=>w});var r=n(52322),i=n(2784),o=n(87578),s=n(92416),a=n(42943),l=n(94822),c=n(2999),u=n(38195),d=n(94338),h=n(89393),p=n(31984),m=n(55635);const f=(0,h.Ge)("tooltip"),g=1e3,v=0,b="bottom",y=4;function w({children:e,open:t,onOpenChange:n,strategy:h,placement:w=b,offset:x=y,disabled:C,content:_,trigger:E,role:S="tooltip",openDelay:k=g,closeDelay:N=v,className:R,style:I,qa:M,...T}){const[A,O]=i.useState(null),{placement:z,middleware:D}=(0,u.H5)(w,!1),[j,P]=(0,l.zk)(t,!1,n),{refs:L,floatingStyles:F,context:B}=(0,o.YF)({open:j,onOpenChange:P,strategy:h,placement:z,middleware:[(0,s.cv)(x),(0,s.uY)({padding:c.yY,limiter:(0,s.dr)()}),D],whileElementsMounted:a.Me,elements:{reference:A}}),U=(0,o.XI)(B,{enabled:"focus"!==E,delay:{open:k,close:N},move:!1}),W=(0,o.KK)(B),V=(0,o.qs)(B,{role:S}),H=(0,o.bQ)(B,{outsidePress:!1}),{getReferenceProps:G,getFloatingProps:q}=(0,o.NI)([U,W,V,H]),Y=(0,l.cR)(O,i.isValidElement(e)?(0,m.e)(e):void 0),Z=i.isValidElement(e)?G(e.props):G(),K=i.isValidElement(e)?i.cloneElement(e,{...Z,ref:Y}):e(Z,Y);return(0,r.jsxs)(i.Fragment,{children:[K,j&&!C?(0,r.jsx)(d.h,{children:(0,r.jsx)("div",{ref:L.setFloating,style:{position:"absolute",top:0,left:0,zIndex:1e4,width:"max-content",...F},...q(),children:(0,r.jsx)("div",{className:f(null,R),style:I,"data-qa":M,...(0,p.z)(T,{labelable:!0}),children:_})})}):null]})}},81975:(e,t,n)=>{"use strict";n.d(t,{N:()=>l});var r=n(52322),i=n(2784),o=n(94822),s=n(41558);const a=(0,n(89393).Ge)("tree-list"),l=({qa:e,id:t,size:n="m",className:l,list:c,multiple:u,containerRef:d,renderItem:h,renderContainer:p=s.Vm,onItemClick:m,mapItemDataToContentProps:f})=>{const g=(0,o.uR)(),v=t??g,b=i.useRef(null),y=d??b,w=i.useMemo((()=>{if(null===m)return;return(e,t)=>{const n={id:e.id,list:c};if(m)m?.(n,t);else{(0,s.VM)({list:c,multiple:u})(n,t)}}}),[m,c,u]);(0,s.Ct)({containerRef:y,onItemClick:w,list:c});return p({qa:e,id:`list-${v}`,size:n,containerRef:y,className:a(null,l),list:c,renderItem:(t,i,o)=>{const a=(0,s.Fn)({qa:e,id:t,size:n,multiple:u,mapItemDataToContentProps:f,onItemClick:w,list:c});return h?h({id:t,data:a.data,props:a.props,context:a.context,index:i,renderContainerProps:o,list:c}):(0,r.jsx)(s.Gp,{...a.props,...o})}})}},97084:(e,t,n)=>{"use strict";n.d(t,{U0:()=>r,n5:()=>h,GR:()=>o});const r="m",i=new Set(["xs","2xs","3xs"]),o={NAME:"user-name",DESCRIPTION:"user-description"};var s=n(52322),a=n(2784),l=n(85189),c=n(89393),u=n(31984);const d=(0,c.Ge)("user"),h=a.forwardRef(((e,t)=>{const{avatar:n,name:c,description:h,size:p=r,className:m,style:f,qa:g}=e,v="string"==typeof c?c:void 0,b="string"==typeof h?h:void 0;let y=null;"string"==typeof n?y=(0,s.jsx)(l.qE,{imgUrl:n,size:p,title:v}):a.isValidElement(n)?y=n:n&&(y=(0,s.jsx)(l.qE,{...n,size:p,title:n.title||v}));const w=Boolean(h&&!i.has(p));return(0,s.jsxs)("div",{className:d({size:p},m),style:f,"data-qa":g,ref:t,...(0,u.z)(e,{labelable:!0}),children:[y?(0,s.jsx)("div",{className:d("avatar"),children:y}):null,c||w?(0,s.jsxs)("div",{className:d("info"),children:[c?(0,s.jsx)("span",{className:d("name"),title:v,"data-qa":o.NAME,children:c}):null,w?(0,s.jsx)("span",{className:d("description"),title:b,"data-qa":o.DESCRIPTION,children:h}):null]}):null]})}));h.displayName="User"},38991:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,h:()=>g});const r="s",i=new Set(["m","s","xs","2xs","3xs"]),o="var(--g-color-line-generic-solid)",s={"3xs":12,"2xs":12,xs:12,s:16,m:16,l:16,xl:16};var a=n(52322),l=n(2784),c=n(47467),u=n(28786),d=n(85189),h=n(28930),p=n(89393),m=n(9644);const f=(0,p.Ge)("user-label"),g=l.forwardRef((({type:e="person",view:t="outlined",size:n=r,avatar:p,text:g,description:v,onClick:b,onCloseClick:y,className:w,style:x,qa:C},_)=>{const E=Boolean(b),S=Boolean(y),k=E?"button":"div";let N,R=null;switch("string"==typeof p?N={imgUrl:p}:p&&!l.isValidElement(p)?"imgUrl"in p&&p.imgUrl||"icon"in p&&p.icon||"text"in p&&p.text?N=p:"string"==typeof g&&(N={text:g,borderColor:o,...p}):p||"string"!=typeof g||(N={text:g,borderColor:o}),e){case"email":R=(0,a.jsx)(d.qE,{icon:c.Z,...N,size:n});break;case"empty":R=null;break;default:l.isValidElement(p)?R=p:N&&(R=(0,a.jsx)(d.qE,{...N,size:n}))}const I=Boolean(v&&!i.has(n));return(0,a.jsxs)("div",{className:f({view:t,size:n,empty:!R,clickable:E,closeable:S},w),style:x,"data-qa":C,ref:_,children:[(0,a.jsxs)(k,{className:f("main"),type:E?"button":void 0,onClick:b,children:[R?(0,a.jsx)("div",{className:f("avatar"),children:R}):null,(0,a.jsxs)("div",{className:f("info"),children:[(0,a.jsx)("span",{className:f("text"),children:g}),I?(0,a.jsx)("span",{className:f("description"),children:v}):null]})]}),y?(0,a.jsx)("button",{className:f("close"),type:"button","aria-label":(0,m.Z)("label_remove-button"),onClick:y,children:(0,a.jsx)(h.J,{className:f("close-icon"),data:u.Z,size:s[n]})}):null]})}));g.displayName="UserLabel"},54883:(e,t,n)=>{"use strict";n.d(t,{o:()=>r.o});var r=n(59492)},14853:(e,t,n)=>{"use strict";n.d(t,{WU:()=>I,Kx:()=>p,oi:()=>m.o});var r=n(52322),i=n(2784),o=n(94822),s=n(1262),a=n(89393),l=n(68808),c=n(21852),u=n(24309),d=n(77528);const h=(0,a.Ge)("text-area"),p=i.forwardRef((function(e,t){const{view:n="normal",size:a="m",pin:p="round-round",name:m,value:f,defaultValue:g,disabled:v,readOnly:b,hasClear:y=!1,error:w,errorMessage:x,validationState:C,autoComplete:_,id:E,tabIndex:S,style:k,className:N,qa:R,controlProps:I,note:M,onUpdate:T,onChange:A}=e,{errorMessage:O,validationState:z}=(0,u.II)({error:w,errorMessage:x,validationState:C}),[D,j]=(0,o.zk)(f,g??"",T),P=i.useRef(null),L=(0,s.qt)({initialValue:D,onReset:j}),F=(0,o.cR)(e.controlRef,P,L),[B,U]=i.useState(!1),W=(0,u.O_)(z),V=(0,o.uR)(),H="invalid"===z&&Boolean(O),G=Boolean(y&&!v&&!b&&D),q=E||V,Y=(0,o.uR)(),Z=(0,o.uR)(),K=[I?.["aria-describedby"],M?Z:void 0,H?Y:void 0].filter(Boolean).join(" "),$={id:q,tabIndex:S,name:m,onChange(e){j(e.target.value),A&&A(e)},autoComplete:(0,u.xp)(_),controlProps:{...I,"aria-describedby":K||void 0,"aria-invalid":"invalid"===z||void 0}};return i.useEffect((()=>{const e=P.current;if(e){const t=e.scrollHeight>e.clientHeight;B!==t&&U(t)}}),[D,B]),(0,r.jsxs)("span",{ref:t,style:k,className:h({view:n,size:a,disabled:v,state:W,pin:"clear"===n?void 0:p,"has-clear":G,"has-scrollbar":B},N),"data-qa":R,children:[(0,r.jsxs)("span",{className:h("content"),children:[(0,r.jsx)(d.N,{...e,...$,controlRef:F}),G&&(0,r.jsx)(l.C,{className:h("clear",{size:a}),size:(0,l.X)(a),onClick:e=>{const t=P.current;if(t){t.focus();const n=Object.create(e);n.target=t,n.currentTarget=t,t.value="",A&&A(n)}j("")}})]}),(0,r.jsx)(c.Z,{errorMessage:H?O:null,errorMessageId:Y,note:M,noteId:Z})]})}));var m=n(54883),f=n(66414),g=n(34871),v=n(62671),b=n(19810),y=n(87297),w=n(28930);const x="reveal-button",C="copy-button";var _=n(97777),E=n(33831),S=n(78305);const k=(0,_.e)({en:E,ru:S},"PasswordInput");var N=n(65642);const R=(0,a.Ge)("password-input"),I=e=>{const{autoComplete:t,controlProps:n,endContent:s,hideCopyButton:a=!1,hideRevealButton:l=!1,showCopyTooltip:c=!1,showRevealTooltip:u=!1,size:d="m"}=e,[h,p]=(0,o.zk)(e.value,e.defaultValue??"",e.onUpdate),[_,E]=(0,o.zk)(e.revealValue,!1,e.onRevealValueUpdate),{actionButtonSize:S,iconSize:I}=(0,N.B)(d),M=(0,r.jsxs)(i.Fragment,{children:[s,!h||a||e.disabled?null:(0,r.jsx)(y.m,{view:"flat-secondary",text:h,hasTooltip:c,size:S,className:R("copy-button"),qa:C}),l?null:(0,r.jsx)(v.M,{disabled:!u,title:k(_?"label_hide-password":"label_show-password"),children:(0,r.jsx)(b.z,{qa:x,view:"flat-secondary",disabled:e.disabled,onClick:()=>E(!_),size:S,onMouseDown:e=>e.preventDefault(),"aria-label":k(_?"label_hide-password":"label_show-password"),children:(0,r.jsx)(w.J,{data:_?f.Z:g.Z,size:I})})})]});return(0,r.jsx)(m.o,{...e,type:_?"text":"password",endContent:M,autoComplete:t||"new-password",controlProps:{...n,className:R("input-control",n?.className)},value:h,onUpdate:p})}},99629:(e,t,n)=>{"use strict";n.d(t,{x:()=>l});var r=n(52322),i=n(2784),o=n(89393),s=n(87424);const a=(0,o.Ge)("box"),l=i.forwardRef((function({as:e,children:t,qa:n,className:i,width:o,height:l,minWidth:c,minHeight:u,maxHeight:d,maxWidth:h,position:p,style:m,spacing:f,overflow:g,...v},b){const y=e||"div",w={width:o,height:l,minWidth:c,minHeight:u,maxHeight:d,maxWidth:h,position:p,...m};return(0,r.jsx)(y,{...v,"data-qa":n,style:w,ref:b,className:a({overflow:g},f?(0,s.sp)(f,i):i),children:t})}))},48005:(e,t,n)=>{"use strict";n.d(t,{k:()=>u});var r=n(52322),i=n(2784),o=n(89393),s=n(99629),a=n(94737),l=n(34320);const c=(0,o.Ge)("flex"),u=i.forwardRef((function(e,t){const{as:n,direction:o,grow:u,basis:d,children:h,style:p,alignContent:m,alignItems:f,alignSelf:g,justifyContent:v,justifyItems:b,justifySelf:y,shrink:w,wrap:x,inline:C,gap:_,gapRow:E,className:S,space:k,centerContent:N,...R}=e,I=n||"div",{getClosestMediaProps:M,theme:{spaceBaseSize:T}}=(0,a.l)(),A=e=>"object"==typeof e&&null!==e?M(e):e,O=A(_),z=O?T*Number(O):void 0,D=A(E)||O,j=D?T*Number(D):void 0,P=A(k),L=_||E||!P?void 0:(0,l.cA)(P);return(0,r.jsx)(s.x,{as:I,className:c({"center-content":N,inline:C,s:L},S),ref:t,style:{flexDirection:A(o),flexGrow:!0===u?1:u,flexWrap:!0===x?"wrap":x,flexBasis:d,flexShrink:w,columnGap:z,rowGap:j,alignContent:A(m),alignItems:A(f),alignSelf:A(g),justifyContent:A(v),justifyItems:A(b),justifySelf:A(y),...p},...R,children:k?i.Children.map(h,(e=>e?(0,r.jsx)("div",{className:c("wr"),children:e}):e)):h})}))},94737:(e,t,n)=>{"use strict";n.d(t,{l:()=>s});var r=n(2784),i=n(39763),o=n(34320);const s=()=>{const{activeMediaQuery:e,theme:t}=r.useContext(i.V),{isMediaActive:n,getClosestMediaProps:s}=r.useMemo((()=>({isMediaActive:(0,o.ur)(e),getClosestMediaProps:(0,o.GD)(e)})),[e]);return{theme:t,activeMediaQuery:e,isMediaActive:n,getClosestMediaProps:s}}},21156:(e,t,n)=>{"use strict";n.d(t,{xu:()=>h.x,JX:()=>l,W2:()=>v,kC:()=>d.k,X2:()=>u,sp:()=>p.sp,W0:()=>p.W,l5:()=>o.l});var r=n(52322),i=n(89393),o=n(94737),s=n(34320);const a=(0,i.Ge)("col"),l=({children:e,style:t,className:n,qa:i,...l})=>{const{getClosestMediaProps:c}=(0,o.l)(),u=c(l);return(0,r.jsx)("div",{style:t,className:a({size:u?(0,s.cA)(u):void 0},n),"data-qa":i,children:e})},c=(0,i.Ge)("row"),u=({children:e,style:t,className:n,space:i,spaceRow:a,qa:l})=>{const{getClosestMediaProps:u}=(0,o.l)();let d,h;if("object"==typeof i){const e=u(i);e&&(d=(0,s.cA)(e))}else i&&(d=(0,s.cA)(i));if("object"==typeof a){const e=u(a);e&&(h=(0,s.cA)(e))}else a&&(h=String(a));return(0,r.jsx)("div",{style:t,className:c({s:d,sr:h},n),"data-qa":l,children:e})};var d=n(48005),h=n(99629),p=n(87424),m=n(2784);const f=({gutters:e,spaceRow:t,space:n}={})=>{const r={};return e&&(r.gutters=e),(t||n)&&(r.spaceRow=t||n),r},g=(0,i.Ge)("container"),v=({children:e,style:t,as:n="div",className:i,maxWidth:a,gutters:l,spaceRow:c,qa:u})=>{const{getClosestMediaProps:d,containerThemeProps:h,breakpoints:v}=(()=>{const{theme:e,getClosestMediaProps:t}=(0,o.l)(),n=m.useMemo((()=>({...f(e.components?.container),...f(t(e.components?.container?.media))})),[t,e]);return{getClosestMediaProps:t,containerThemeProps:n,breakpoints:e.breakpoints}})(),b={...a?{maxWidth:v[a]}:{},...t};let y;if("object"==typeof c){const e=d(c);e&&(y=(0,s.cA)(e))}else c&&(y=(0,s.cA)(c));return(0,r.jsx)(n,{style:b,className:g({sr:y},!1===l?i:(0,p.sp)({px:l||h.gutters},i)),"data-qa":u,children:e})}},87424:(e,t,n)=>{"use strict";n.d(t,{W:()=>s,sp:()=>a});var r=n(89393),i=n(34320);const o=(0,r.Ge)("s"),s=(e,t)=>{const n=[];for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];void 0!==r&&n.push(o(`${t}_${(0,i.cA)(r)}`))}return t&&n.push(t),n.join(" ")},a=s},34320:(e,t,n)=>{"use strict";n.d(t,{GD:()=>a,cA:()=>l,ur:()=>o});var r=n(88899);const i={s:0,m:1,l:2,xl:3,xxl:4,xxxl:5},o=e=>t=>e in i&&i[e]-i[t]>=0,s=["s","m","l","xl","xxl","xxxl"],a=e=>(t={})=>{if(!e)return;let n=e;for(;n;){if(t[n])return t[n];n=s[i[n]-1]}},l=e=>e in r.Q?r.Q[e]:String(e)},11662:(e,t,n)=>{"use strict";n.d(t,{J2:()=>y,mQ:()=>R});var r=n(52322),i=n(2784),o=n(28786),s=n(72465),a=n(19810),l=n(28930),c=n(41556),u=n(38690),d=n(38132),h=n(29557),p=n(18937),m=n(3907),f=n(63723),g=n(18081),v=n(53674),b=n(52191);const y=i.forwardRef((function({initialOpen:e=!1,disabled:t=!1,autoclosable:n=!0,openOnHover:y=!0,delayOpening:w,delayClosing:x,behavior:C=v.x.Delayed,placement:_,offset:E={},tooltipOffset:S,tooltipClassName:k,theme:N="info",size:R="s",hasArrow:I=!0,hasClose:M=!1,className:T,children:A,title:O,content:z,htmlContent:D,contentClassName:j,links:P,forceLinksAppearance:L=!1,tooltipActionButton:F,tooltipCancelButton:B,onOpenChange:U,onCloseClick:W,onClick:V,anchorRef:H,anchorElement:G,strategy:q,qa:Y,disablePortal:Z=!1,tooltipId:K,focusTrap:$,autoFocus:X,restoreFocusRef:J},Q){const ee=(0,u.gm)(),te=i.useRef(null),ne=i.useRef(!1),re=i.useRef(e),{isOpen:ie,closingTimeout:oe,openTooltip:se,openTooltipDelayed:ae,unsetOpeningTimeout:le,closeTooltip:ce,closeTooltipDelayed:ue,unsetClosingTimeout:de}=(0,b.y)({initialOpen:e,disabled:t,autoclosable:n,onOpenChange:U,delayOpening:w,delayClosing:x,behavior:C,shouldBeOpen:re}),he=i.useMemo((()=>_||("rtl"===ee?["left","bottom"]:["right","bottom"])),[ee,_]);i.useImperativeHandle(Q,(()=>({openTooltip:se,closeTooltip:ce})),[se,ce]);const pe=Boolean(O),me=Boolean(H||G),fe=`popover-${K??""}-title-${(0,s.u)()}`,ge=(0,r.jsx)(c.G,{id:K,role:y?"tooltip":"dialog",strategy:q,anchorElement:G,anchorRef:H||te,className:(0,h.C)("tooltip",{theme:N,size:R,"with-close":M,"force-links-appearance":L},k),open:ie,placement:he,hasArrow:I,offset:S,onClose:me?void 0:ce,qa:Y?`${Y}-tooltip`:"",disablePortal:Z,initialFocus:X?0:void 0,modal:$,returnFocus:J,"aria-labelledby":O?fe:void 0,children:(0,r.jsxs)(i.Fragment,{children:[O&&(0,r.jsx)("h3",{id:fe,className:(0,h.C)("tooltip-title"),children:O}),(0,r.jsx)(m.V,{secondary:!!pe&&"announcement"!==N,content:z,htmlContent:D,className:j}),P&&(0,r.jsx)(f.y,{links:P}),(0,r.jsx)(p.E,{theme:N,tooltipActionButton:F,tooltipCancelButton:B}),M&&(0,r.jsx)("div",{className:(0,h.C)("tooltip-close"),children:(0,r.jsx)(a.z,{size:"s",view:"flat-secondary",onClick:async e=>{ce(),W?.(e)},"aria-label":"Close",children:(0,r.jsx)(l.J,{data:o.Z,size:16})})})]})});if(me)return ge;const ve=()=>{de(),ie||t||ne.current?re.current=!0:ae()},be=()=>{!n||ne.current||oe.current?re.current=!1:(le(),ue()),ne.current=!1};return!E||"number"!=typeof E.top&&"number"!=typeof E.left||(0,d.O)('[Popover] Physical names (top, left) of "offset" property are deprecated. Use logical names (block, inline) instead.'),(0,r.jsxs)("div",{ref:te,className:(0,h.C)({disabled:t},T),onMouseEnter:y?ve:void 0,onMouseLeave:y?be:void 0,onFocus:y?ve:void 0,onBlur:y?be:void 0,style:{top:E.top,left:E.left,insetBlockStart:E.block,insetInlineStart:E.inline},"data-qa":Y,children:[(0,r.jsx)(g.x,{closeTooltip:ce,openTooltip:se,open:ie,openOnHover:y,className:(0,h.C)("handler"),disabled:t,onClick:V,closedManually:ne,children:A}),ge]})}));y.displayName="Popover";var w=n(89393),x=n(31984),C=n(43347),_=n(76856);const E=(0,w.Ge)("tabs-legacy");var S;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(S||(S={}));const k=[],N=i.forwardRef((({direction:e=S.Horizontal,size:t="m",activeTab:n,allowNotSelected:o=!1,items:s=k,children:a,className:l,onSelectTab:c,wrapTo:u,qa:d,...h},p)=>{const m=((e,t,n)=>e||(t||0===n?.length?void 0:n?.[0]?.id))(n,o,s),f=i.useMemo((()=>({activeTabId:m})),[m]),g=i.useMemo((()=>{const e=e=>{c&&c(e)};return s.map(((t,n)=>{const i=(0,r.jsx)(_.L,{...t,onClick:e},t.id);return u?u(t,i,n):i}))}),[s,c,u]);return(0,r.jsx)("div",{...(0,x.z)(h,{labelable:!0}),role:"tablist",className:E({direction:e,size:t},l),"data-qa":d,ref:p,children:(0,r.jsx)(C.R.Provider,{value:f,children:a||g})})}));N.displayName="Tabs";const R=Object.assign(N,{Item:_.L});n(96143)},68085:(e,t,n)=>{"use strict";n.d(t,{zw:()=>l,eP:()=>h,t4:()=>r,P0:()=>s,XA:()=>p,Fe:()=>m,ze:()=>g});var r,i=n(2784),o=n(89393);!function(e){e.IOS="ios",e.ANDROID="android",e.BROWSER="browser"}(r||(r={}));const s=(0,o.Ge)("root")({mobile:!0}).split(/\s+/)[1],a={mobile:!1,platform:r.BROWSER,useHistory:()=>({action:"",replace(){},push(){},goBack(){}}),useLocation:()=>({pathname:"",search:"",hash:""})},l=i.createContext(a);var c=n(52322);function u(){return{action:"",replace(){},push(){},goBack(){}}}function d(){return{pathname:"",search:"",hash:""}}function h({mobile:e=!1,platform:t=r.BROWSER,useHistory:n=u,useLocation:o=d,children:a}){const h=i.useCallback((function(){const{goBack:e,back:t,...r}=n();let i;return i="function"==typeof e?e:"function"==typeof t?t:()=>{},{...r,goBack:i}}),[n]);i.useEffect((()=>{document.body.classList.toggle(s,e)}),[s,e]);const p=i.useMemo((()=>({mobile:e,platform:t,useLocation:o,useHistory:h})),[e,t,o,h]);return(0,c.jsx)(l.Provider,{value:p,children:a})}function p(){return i.useContext(l).mobile}function m(){return i.useContext(l).platform}var f=n(10037);function g(e){const t=(0,f.i)(e);return class extends i.Component{static displayName=`withMobile(${t})`;static contextType=l;render(){return(0,c.jsx)(e,{...this.props,mobile:this.context.mobile,platform:this.context.platform,useHistory:this.context.useHistory,useLocation:this.context.useLocation})}}}},8507:(e,t,n)=>{"use strict";n.d(t,{q:()=>r});const r=n(2784).createContext(void 0);r.displayName="TabContext"},60818:(e,t,n)=>{"use strict";n.d(t,{OK:()=>p,td:()=>c,x4:()=>f,sM:()=>a});var r=n(52322),i=n(2784),o=n(94822),s=n(8507);const a=({value:e,onUpdate:t,children:n})=>{const a=(0,o.uR)(),l=i.useMemo((()=>({value:e,onUpdate:t,id:a,isProvider:!0})),[e,t,a]);return(0,r.jsx)(s.q.Provider,{value:l,children:n})};var l=n(82348);const c=i.forwardRef(((e,t)=>{const n=i.useContext(s.q),a=(0,o.uR)(),c=(0,l.h)(e),[u,d]=i.useState(!1),{focusWithinProps:h}=(0,o.L_)({onFocusWithinChange:d}),p=i.useMemo((()=>({value:n?.value??e.value,onUpdate:n?.onUpdate??e.onUpdate,id:n?.id??a,isProvider:n?.isProvider??!1,isFocused:u})),[n,e.value,e.onUpdate,a,u]);return(0,r.jsx)(s.q.Provider,{value:p,children:(0,r.jsx)("div",{ref:t,...c,...h,children:e.children})})}));c.displayName="TabList";var u=n(64499),d=n(63687),h=n(23253);const p=i.forwardRef((function(e,t){const n=(0,h.x)(e),o=(0,r.jsxs)("div",{className:(0,d.lv)("content"),children:[e.icon&&(0,r.jsx)("div",{className:(0,d.lv)("icon"),children:e.icon}),(0,r.jsx)("div",{className:(0,d.lv)("title"),children:e.children||e.value}),void 0!==e.counter&&(0,r.jsx)("div",{className:(0,d.lv)("counter"),children:e.counter}),e.label&&(0,r.jsx)(u._,{className:(0,d.lv)("label"),theme:e.label.theme,children:e.label.content})]});return void 0!==e.component?i.createElement(e.component,{...n,ref:t}):function(e){return void 0!==e.href}(e)?(0,r.jsx)("a",{...n,ref:t,href:e.href,rel:"_blank"!==e.target||e.rel?e.rel:"noopener noreferrer",children:o}):(0,r.jsx)("button",{...n,ref:t,type:e.type||"button",children:o})}));p.displayName="Tab";var m=n(26567);const f=i.forwardRef(((e,t)=>{const n=(0,m.W)(e);return(0,r.jsx)(s.q.Provider,{value:void 0,children:(0,r.jsx)("div",{ref:t,...n,children:e.children})})}));f.displayName="TabPanel"},29205:(e,t,n)=>{"use strict";n.d(t,{N:()=>r});const r=n(2784).createContext(void 0);r.displayName="ThemeContext"},83289:(e,t,n)=>{"use strict";n.d(t,{e:()=>r});const r=n(2784).createContext(void 0);r.displayName="ThemeSettingsContext"},10352:(e,t,n)=>{"use strict";n.d(t,{CK:()=>s,CR:()=>i,t0:()=>r,wg:()=>a,wp:()=>l,y1:()=>o});const r="system",i="light",o="dark",s=["dark","dark-hc"],a="root",l="ltr"},38690:(e,t,n)=>{"use strict";n.d(t,{Ni:()=>r.N,f6:()=>i.f,e_:()=>o.e,MI:()=>h,gm:()=>m.g,Fg:()=>a,XG:()=>u,Os:()=>p,C8:()=>l,vA:()=>y,Zz:()=>v,fx:()=>b});var r=n(29205),i=n(776),o=n(83289),s=n(55337);function a(){return(0,s.T)().theme}function l(){return(0,s.T)().themeValue}var c=n(2784);function u(){const e=c.useContext(o.e);if(void 0===e)throw new Error("useThemeSettings must be used within ThemeProvider");return e}var d=n(10352);function h(e){return d.CK.includes(e)?"dark":"light"}function p(){return h(l())}var m=n(37836),f=n(52322),g=n(10037);function v(e){const t=(0,g.i)(e),n=function(t){const n=a();return(0,f.jsx)(e,{...t,theme:n})};return n.displayName=`withTheme(${t})`,n}function b(e){const t=(0,g.i)(e),n=function(t){const n=l();return(0,f.jsx)(e,{...t,themeValue:n})};return n.displayName=`withThemeValue(${t})`,n}function y(e){const t=(0,g.i)(e),n=function(t){const n=(0,m.g)();return(0,f.jsx)(e,{...t,direction:n})};return n.displayName=`withDirection(${t})`,n}},37836:(e,t,n)=>{"use strict";n.d(t,{g:()=>i});var r=n(55337);function i(){return(0,r.T)().direction}},55337:(e,t,n)=>{"use strict";n.d(t,{T:()=>o});var r=n(2784),i=n(29205);function o(){const e=r.useContext(i.N);if(void 0===e)throw new Error("useTheme* hooks must be used within ThemeProvider");return e}},6301:(e,t,n)=>{"use strict";n.d(t,{r:()=>a});var r=n(52322),i=n(2784),o=n(21156);const s=(0,n(89393).Ge)("list-container-view"),a=i.forwardRef((function({as:e="div",role:t="listbox",children:n,id:i,className:a,fixedHeight:l,extraProps:c,qa:u,style:d},h){return(0,r.jsx)(o.kC,{qa:u,as:e,direction:"column",ref:h,grow:!0,tabIndex:-1,id:i,role:t,style:d,className:s({"fixed-height":l},a),...c,children:n})}))},89393:(e,t,n)=>{"use strict";n.d(t,{A7:()=>i,Ge:()=>o,Ui:()=>s});var r=n(54368);const i="g-",o=((0,r.withNaming)({e:"__",m:"_"}),(0,r.withNaming)({n:i,e:"__",m:"_"}));function s(e){return e.split(/\s(.*)/)[1]}},50535:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>l,xA:()=>a,yb:()=>c});var r=n(28930),i=n(89393),o=n(77823);let s=1;function a(){return`${i.A7}uniq-${s++}`}const l=(0,o.s)("svg"),c=(0,o.s)(r.J)},35644:(e,t,n)=>{"use strict";n.d(t,{g5:()=>i,Po:()=>o,br:()=>a});var r=n(89393);class i{subscriptions=[];componentPrefix;constructor(e){this.componentPrefix=e}subscribe(e){this.subscriptions.push(e)}unsubscribe(e){const t=this.subscriptions.indexOf(e);t>-1&&this.subscriptions.splice(t,1)}publish({componentId:e,...t}){this.subscriptions.forEach((n=>n({...t,componentId:this.componentPrefix?`${this.componentPrefix}${e}`:e})))}withEventPublisher(e,t){return n=>{this.publish({...n,componentId:e,qa:t})}}}const o=new i(r.A7);var s=n(2784);function a(e,t=o){s.useEffect((()=>(t.subscribe(e),()=>t.unsubscribe(e))),[t,e])}},31984:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});const r=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o=/^(data-.*)$/;function s(e,t={}){const{labelable:n,propNames:s}=t,a={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r.has(t)||n&&i.has(t)||s?.has(t)||o.test(t))&&(a[t]=e[t]);return a}},82060:(e,t,n)=>{"use strict";n.d(t,{lr:()=>s,qR:()=>o,sJ:()=>l});var r=n(60805),i=n(35644);const o=new class{stack=[];mouseDownLayerTarget;add(e){this.stack.push(e),1===this.stack.length&&this.addListeners(),this.notifyLayersChange()}remove(e){const t=this.stack.indexOf(e);this.stack.splice(t,1),0===this.stack.length&&this.removeListeners(),this.notifyLayersChange()}getLayersCount(){return this.stack.length}getLayers(){return this.stack.map((({type:e})=>({type:e})))}addListeners(){document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("click",this.handleDocumentClick,!0),document.addEventListener("mousedown",this.handleDocumentMouseDown,!0)}removeListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("click",this.handleDocumentClick,!0),document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0)}notifyLayersChange(){i.Po.publish({componentId:"LayerManager",eventId:"layerschange",meta:{layersCount:this.getLayersCount(),layers:this.getLayers()}})}handleDocumentKeyDown=e=>{if(e.code===r.V.ESCAPE){const t=this.getTopLayer();t.disableEscapeKeyDown||(t.onEscapeKeyDown?.(e),t.onClose?.(e,"escapeKeyDown"))}if("Enter"===e.code){const t=this.getTopLayer();t.onEnterKeyDown?.(e)}};handleDocumentClick=e=>{if(this.isToastClick(e))return;let t,n=null;if(this.mouseDownLayerTarget){if(t=this.mouseDownLayerTarget.layer,n=this.mouseDownLayerTarget.target,this.mouseDownLayerTarget=void 0,!this.stack.includes(t))return}else t=this.getTopLayer();!t.disableOutsideClick&&this.isOutsideClick(t,e,n)&&(t.onOutsideClick?.(e),t.onClose?.(e,"outsideClick"))};handleDocumentMouseDown=e=>{const t=this.getTopLayer();t&&(this.mouseDownLayerTarget={layer:t,target:e.target})};getTopLayer(){return this.stack[this.stack.length-1]}isOutsideClick(e,t,n=null){const r=e.contentRefs||[],{target:i}=t,o="function"==typeof t.composedPath?t.composedPath():[];if(r.length>0){return!r.some((e=>e?.current?.contains?.(i)||e?.current?.contains?.(n)||o.includes(e?.current)))}return!1}isToastClick(e){return("function"==typeof e.composedPath?e.composedPath():[]).some((e=>Boolean(e?.dataset?.toast)))}},s=()=>o.getLayersCount();var a=n(2784);function l({open:e,disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:r,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u=!0,type:d}){const h=a.useRef({disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:r,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,type:d});a.useEffect((()=>{Object.assign(h.current,{disableEscapeKeyDown:t,disableOutsideClick:n,onEscapeKeyDown:r,onEnterKeyDown:i,onOutsideClick:s,onClose:l,contentRefs:c,enabled:u})}),[t,n,r,i,s,l,c,u]),a.useEffect((()=>{if(e&&u){const e=h.current;return o.add(e),()=>{o.remove(e)}}}),[e,u])}},40650:(e,t,n)=>{"use strict";n.d(t,{v:()=>a});var r=n(52322),i=n(2784),o=n(35644),s=n(10037);function a(e,t,n){const a=`withEventBroker(${(0,s.i)(e)})`,l=i.forwardRef(((i,s)=>{const a=t.reduce(((e,t)=>{const r=i[t];return{...e,[t]:e=>(o.Po.publish({eventId:t.replace(/^on/,"").toLowerCase(),domEvent:e,...n}),r&&r(e))}}),{});return(0,r.jsx)(e,{...i,...a,ref:s})}));return l.displayName=a,l}},52893:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,_:()=>l});var r=n(23196),i=n(35211);function o(e=(e=>e)){return(t,n)=>t.mod?void 0:e(t,n)}function s(e,t){if(!e||!function(e){return e.nodeType===Node.ELEMENT_NODE}(e))return"";const n=e.tagName.toLowerCase();let r=`/${n}`;const o=e.id&&!t.withoutId?t.idConverter(e.id):void 0;if(o)r+=`[@id='${o}']`;else{const o=[];e.classList.forEach((e=>{const r=t.classConverter({...(0,i.H)(e),tag:n},e);r&&o.push((0,i.U)(r))})),o.length&&(r+=`[@class='${o.join(" ")}']`)}return s(e.parentElement,t)+r}const a={classConverter:e=>e,idConverter:e=>e,withoutId:!1};function l(e,t){const n={...a,...t||{}},i=s(e.currentTarget||e.target,n);return{xpath:i,hash:r(i)}}},1262:(e,t,n)=>{"use strict";n.d(t,{kx:()=>r.k,kt:()=>i.k,O:()=>o.O,g4:()=>s.g,FK:()=>a.F,h4:()=>l.h,qt:()=>c.q,D9:()=>d,xL:()=>h.x,ar:()=>p.a,rf:()=>m});var r=n(71769),i=n(78532),o=n(13383),s=n(80713),a=n(59031),l=n(80814),c=n(72318),u=(n(6900),n(2784));function d(e){const t=u.useRef();return u.useEffect((()=>{t.current=e})),t.current}var h=n(98460),p=n(91098);n(82121);const m=(e,t)=>{const n=u.useRef(!0);u.useEffect((()=>{n.current?n.current=!1:e()}),t)}},89494:(e,t,n)=>{"use strict";n.d(t,{b:()=>r.b});var r=n(87504)},87504:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,b:()=>s});var r=n(2784),i=n(60805);function o(e){return t=>{e&&[i.V.ENTER,i.V.SPACEBAR,i.V.SPACEBAR_OLD].includes(t.key)&&(t.preventDefault(),e(t))}}function s(e){return{onKeyDown:r.useMemo((()=>o(e)),[e])}}},38227:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(2784);function i({handler:e}){const[t,n]=r.useState(!1);return{isLoading:t,handler:r.useCallback((async(...t)=>{n(!0);try{return await e(...t)}finally{n(!1)}}),[e])}}},92321:(e,t,n)=>{"use strict";n.d(t,{z:()=>r.z});var r=n(36336)},36336:(e,t,n)=>{"use strict";n.d(t,{z:()=>i});var r=n(2784);function i(e,t,n){const[i,o]=r.useState(e??t),s=r.useRef(void 0!==e),a=void 0!==e;r.useEffect((()=>{const e=s.current;e!==a&&console.error(`[useControlledState] A component changed from ${e?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),s.current=a}),[a]);let l=a?e:i;const c=r.useCallback(((e,...t)=>{Object.is(l,e)||n?.(e,...t),a||(l=e,o(e))}),[a,n,l]);return[l,c]}},58919:(e,t,n)=>{"use strict";n.d(t,{e:()=>i});var r=n(2784);function i({onUpdate:e,onChange:t}){const n=r.useRef(null),i=r.useCallback((n=>{t?.(n),e?.(Array.from(n.target.files||[])),n.target.value=""}),[t,e]),o=r.useCallback((()=>{n.current?.click()}),[]);return r.useMemo((()=>({controlProps:{ref:n,type:"file",tabIndex:-1,style:{opacity:0,position:"absolute",width:1,height:1},onChange:i,"aria-hidden":!0},triggerProps:{onClick:o}})),[i,o])}},89831:(e,t,n)=>{"use strict";n.d(t,{L:()=>r.L});var r=n(39438)},39438:(e,t,n)=>{"use strict";n.d(t,{L:()=>o});var r=n(2784),i=n(11385);function o(e){const{onFocusWithin:t,onBlurWithin:n,onFocusWithinChange:o,isDisabled:s}=e,a=r.useRef(!1),l=r.useCallback((e=>{a.current||document.activeElement!==e.target||(a.current=!0,t&&t(e),o&&o(!0))}),[t,o]),c=r.useCallback((e=>{a.current&&(a.current=!1,n&&n(e),o&&o(!1))}),[n,o]),{onBlur:u,onFocus:d}=function({onFocus:e,onBlur:t,isDisabled:n}){const o=r.useRef(!1),s=r.useRef(null);r.useEffect((()=>{if(n)return;const e=function(){o.current=!1},r=function(e){if(!o.current&&s.current){const n=new FocusEvent("blur",{...e,relatedTarget:e.target,bubbles:!1,cancelable:!1});t(new i.Y("blur",n,{target:s.current,currentTarget:s.current})),s.current=null}};return window.addEventListener("focus",e,{capture:!0}),window.addEventListener("focusin",r),()=>{window.removeEventListener("focus",e,{capture:!0}),window.removeEventListener("focusin",r)}}),[n,t]);const a=r.useCallback((e=>{document.activeElement===e.target||null!==e.relatedTarget&&e.relatedTarget!==document.body&&e.relatedTarget!==document||(t(e),s.current=null)}),[t]),l=function(e){const t=r.useRef({isFocused:!1,observer:null});return r.useEffect((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]),r.useCallback((n=>{const r=n.target;if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;const n=n=>{t.current.isFocused=!1,r.disabled&&e?.(new i.Y("blur",n)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",n,{once:!0});const o=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){o.disconnect(),t.current.observer=null;const e=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{relatedTarget:e,bubbles:!0}))}}));o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),t.current.observer=o}}),[e])}(t),c=r.useCallback((t=>{o.current=!0,s.current=t.target,l(t),e(t)}),[l,e]);return{onBlur:a,onFocus:c}}({onFocus:l,onBlur:c,isDisabled:s});return s?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}},45650:(e,t,n)=>{"use strict";n.d(t,{cR:()=>r.c,k$:()=>o.k,lq:()=>i.l});var r=n(15011),i=n(63421),o=n(99158)},15011:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(2784),i=n(63421);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:(0,i.l)(...e)),e)}},3500:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(2784);const i=({element:e,options:t,onIntersect:n})=>{r.useEffect((()=>{const r=new IntersectionObserver((([e])=>{e.isIntersecting&&n?.()}),t);return e&&r.observe(e),()=>null===e?void 0:r.unobserve(e)}),[e,t,n])}},64372:(e,t,n)=>{"use strict";n.d(t,{c:()=>s});var r=n(2784),i=n(64961),o=n(18181);function s({items:e,skip:t,pageSize:n,processHomeKey:s=!0,processEndKey:a=!0,anchorRef:l,disabled:c=!1,initialValue:u=-1,onAnchorKeyDown:d}){const[h,p]=r.useState(u),m=r.useCallback((()=>{p(u)}),[u]);return r.useEffect((()=>{e&&m()}),[e,m]),r.useLayoutEffect((()=>{if(c)return;if(!e.some((e=>!t?.(e))))return;const r=l?.current;if(!r)return;const u=r=>{const l=d?.(h,r);if(!1!==l)switch(r.key){case"ArrowDown":r.preventDefault(),p((n=>(0,o.c)(e,n,1,t)));break;case"ArrowUp":r.preventDefault(),p((n=>(0,i.k)(e,n,1,t)));break;case"PageDown":if(!n)return;r.preventDefault(),p((r=>(0,o.c)(e,r,n,t)));break;case"PageUp":if(!n)return;r.preventDefault(),p((r=>(0,i.k)(e,r,n,t)));break;case"Home":if(!s)return;r.preventDefault(),p((n=>(0,i.k)(e,n,n,t)));break;case"End":if(!a)return;r.preventDefault(),p((n=>(0,i.k)(e,n,n+1,t)))}};return r.addEventListener("keydown",u),()=>{r.removeEventListener("keydown",u)}}),[h,l,c,e,d,n,a,s,t]),{activeItemIndex:h,setActiveItemIndex:p,reset:m}}},14667:(e,t,n)=>{"use strict";n.d(t,{O:()=>i});var r=n(2784);const i=({ref:e,handler:t})=>{r.useEffect((()=>{const n=n=>{const r=e?.current;r&&!r.contains(n.target)&&t&&t(n)};return window.addEventListener("mouseup",n,{capture:!0}),window.addEventListener("touchend",n,{capture:!0}),()=>{window.removeEventListener("mouseup",n,{capture:!0}),window.removeEventListener("touchend",n,{capture:!0})}}),[t,e])}},34242:(e,t,n)=>{"use strict";n.d(t,{X:()=>s,a:()=>a});var r=n(2784),i=n(52322);const o=r.createContext({current:null});function s({container:e,children:t}){return(0,i.jsx)(o.Provider,{value:e,children:t})}function a(){const e=r.useContext(o);let t=null;return"object"==typeof window&&(t=window.document.body),e.current??t}o.displayName="PortalContext"},31270:(e,t,n)=>{"use strict";n.d(t,{y:()=>i});var r=n(2784);function i({ref:e,onResize:t,box:n}){r.useEffect((()=>{const r=e?.current;if(!r)return;if(void 0===window.ResizeObserver)return window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)};const i=new ResizeObserver((e=>{e.length&&t()}));return i.observe(r,{box:n}),()=>{i.disconnect()}}),[e,t,n])}},32834:(e,t,n)=>{"use strict";n.d(t,{L:()=>s});var r=n(2784),i=n(92321),o=n(59609);const s=({defaultOpen:e,onClose:t,onOpenChange:n,open:s,value:a,defaultValue:l=[],multiple:c,onUpdate:u,disabled:d})=>{const[h,p]=(0,i.z)(a,l,u),[m,f]=r.useState(),{toggleOpen:g,...v}=(0,o.Z)({defaultOpen:e,onClose:t,onOpenChange:n,open:s}),b=r.useCallback((e=>{d||p(e)}),[p,d]),y=r.useCallback((e=>{if(!h.includes(e.value)){const t=[e.value];b(t)}g(!1)}),[h,b,g]),w=r.useCallback((e=>{const t=h.includes(e.value)?h.filter((t=>t!==e.value)):[...h,e.value];b(t)}),[h,b]),x=r.useCallback((e=>{c?w(e):y(e)}),[c,y,w]),C=r.useCallback((()=>{b([])}),[b]);return{value:h,activeIndex:m,setValue:b,handleSelection:x,handleClearValue:C,toggleOpen:g,setActiveIndex:f,...v}}},59609:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2784),i=n(36336);const o=e=>{const{onOpenChange:t,onClose:n}=e,o=r.useCallback((e=>{t?.(e),!1===e&&n&&n()}),[t,n]),[s,a]=(0,i.z)(e.open,e.defaultOpen??!1,o),l=r.useCallback((e=>{a("boolean"==typeof e?e:!s)}),[s,a]);return{open:s,toggleOpen:l}}},18289:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(2784);function i(e,t){r.useEffect((()=>{if("number"!=typeof t)return;const n=setTimeout((()=>{e()}),t);return()=>{clearTimeout(n)}}),[e,t])}},72465:(e,t,n)=>{"use strict";n.d(t,{u:()=>s});var r=n(2784),i=n(89393),o=n(50535);const s="function"==typeof r.useId?function(){return`${i.A7}${r.useId()}`}:function(){const e=r.useRef();return void 0===e.current&&(e.current=(0,o.xA)()),e.current}},81430:(e,t,n)=>{"use strict";n.d(t,{n:()=>o});var r=n(2784);const i=()=>({width:window?.visualViewport?.width??window?.innerWidth??void 0,height:window?.visualViewport?.height??window?.innerHeight??void 0}),o=()=>{const[e,t]=r.useState(i());return r.useEffect((()=>{const n=()=>{let n=i();n.width===e?.width&&n.height===e?.height&&(n=e),t(n)};return(window.visualViewport??window).addEventListener("resize",n),()=>{(window.visualViewport??window).removeEventListener("resize",n)}}),[e]),e}},20866:(e,t,n)=>{"use strict";n.d(t,{_:()=>s,J:()=>o});var r=n(2784);const i={top:0,right:0,bottom:0,left:0};function o(e={}){const{rect:t,contextElement:n}=e,o=r.useRef(i),s=r.useRef({contextElement:n,getBoundingClientRect(){const{top:e,right:t,bottom:n,left:r}=o.current;return{top:e,right:t,bottom:n,left:r,width:t-r,height:n-e}}});if(s.current.contextElement=n,t){const{top:e=0,left:n=0,right:r=n,bottom:i=e}=t;o.current={top:e,right:r,bottom:i,left:n}}else o.current=i;return s}function s(e){const t=r.useRef(e),[n,i]=r.useState({getBoundingClientRect(){const{top:e=0,left:n=0,right:r=n,bottom:i=e}=t.current;return{top:e,left:n,bottom:i,right:r,width:r-n,height:i-e}},contextElement:void 0}),o=r.useCallback((e=>{i({getBoundingClientRect(){const{top:e=0,left:n=0,right:r=n,bottom:i=e}=t.current;return{top:e,left:n,bottom:i,right:r,width:r-n,height:i-e}},contextElement:e??void 0})}),[]),{top:s,left:a,bottom:l,right:c}=e;return r.useEffect((()=>{t.current={top:s,left:a,bottom:l,right:c}}),[s,a,l,c]),{anchor:n,setContextElement:o}}},97777:(e,t,n)=>{"use strict";n.d(t,{e:()=>r.e});var r=n(24562);n(67433)},63690:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AVATAR_SIZES:()=>i.DV,ActionTooltip:()=>i.M8,ActionsPanel:()=>i.sZ,Alert:()=>i.bZ,ArrowToggle:()=>i.F2,Avatar:()=>i.qE,AvatarStack:()=>i.Jh,Box:()=>i.xu,Breadcrumbs:()=>i.Oo,BreadcrumbsItem:()=>i.B7,Button:()=>i.zx,ButtonIcon:()=>i.Ei,Card:()=>i.Zb,Checkbox:()=>i.XZ,ClipboardButton:()=>i.mU,ClipboardIcon:()=>i.Km,Col:()=>i.JX,Container:()=>i.W2,CopyToClipboard:()=>i.h9,DEFAULT_AVATAR_SIZE:()=>i.eQ,DEFAULT_RENDER_POPUP:()=>i.Gv,DEFAULT_USER_LABEL_SIZE:()=>i.Vt,DEFAULT_USER_SIZE:()=>i.U0,DefinitionList:()=>i.wq,DefinitionListItem:()=>i.ij,Dialog:()=>i.Vq,DialogBody:()=>i.a7,DialogDivider:()=>i.EA,DialogFooter:()=>i.cN,DialogHeader:()=>i.fK,Disclosure:()=>i.pJ,DisclosureQa:()=>i.p6,Divider:()=>i.iz,DropdownMenu:()=>i.h_,EventBroker:()=>i.g5,FilePreview:()=>i.sB,Flex:()=>i.kC,HelpMark:()=>i.In,Hotkey:()=>i.qm,Icon:()=>i.JO,Label:()=>i.__,Lang:()=>r.Uo,Link:()=>i.rU,List:()=>i.aV,ListItem:()=>i.HC,ListQa:()=>i.j5,Loader:()=>i.aN,Menu:()=>i.v2,MenuGroup:()=>i.kS,MenuItem:()=>i.sN,MobileContext:()=>i.zw,MobileProvider:()=>i.eP,Modal:()=>i.u_,NumberInput:()=>i.Y2,Overlay:()=>i.C6,Pagination:()=>i.tl,Palette:()=>i.YI,PasswordInput:()=>i.WU,PinInput:()=>i.ET,PlaceholderContainer:()=>i.A_,Platform:()=>i.t4,Popover:()=>i.J2,Popup:()=>i.GI,Portal:()=>i.Uv,PortalProvider:()=>o.Xp,Progress:()=>i.Ex,Radio:()=>i.Y8,RadioGroup:()=>i.Ee,Row:()=>i.X2,SegmentedRadioGroup:()=>i.eW,SegmentedRadioGroupOption:()=>i.bb,Select:()=>i.Ph,SelectItem:()=>i.Ql,SelectItemGroup:()=>i.y,SelectQa:()=>i.Gd,Sheet:()=>i.yo,Skeleton:()=>i.Od,Slider:()=>i.iR,Spin:()=>i.yC,Stepper:()=>i.vF,Switch:()=>i.rs,TEXT_COLORS:()=>i.bo,TEXT_VARIANTS:()=>i.Sv,Tab:()=>i.OK,TabList:()=>i.td,TabPanel:()=>i.x4,TabProvider:()=>i.sM,Table:()=>i.iA,TableColumnSetup:()=>i.N6,TableSortIndicator:()=>i.RP,Text:()=>i.xv,TextArea:()=>i.Kx,TextInput:()=>i.oi,ThemeContext:()=>i.Ni,ThemeProvider:()=>i.f6,ThemeSettingsContext:()=>i.e_,Toast:()=>i.FN,Toaster:()=>i.x7,ToasterComponent:()=>i.B1,ToasterProvider:()=>i.Nj,Toc:()=>i.of,Tooltip:()=>i.u,User:()=>i.n5,UserLabel:()=>i.hx,UserQa:()=>i.GR,colorText:()=>i.V$,configure:()=>r.jQ,defaultRenderItem:()=>i._C,eventBroker:()=>i.Po,formatClass:()=>i.Up,getAvatarDisplayText:()=>i._W,getComponentName:()=>i.iY,getConfig:()=>r.iE,getElementRef:()=>i.eY,getFileType:()=>i.JB,getLayersCount:()=>i.lr,getSelectFilteredOptions:()=>i.VY,getThemeType:()=>i.MI,getUniqId:()=>i.xA,getXpath:()=>i._K,isSelectGroupTitle:()=>i.VP,isTouchDevice:()=>s.b,layerManager:()=>i.qR,listDefaultProps:()=>i.AW,mergeRefs:()=>o.lq,parseClass:()=>i.HG,parseHotkeys:()=>i.JZ,prepareSliderInnerState:()=>i.M6,rootMobileClassName:()=>i.P0,setRef:()=>o.k$,sp:()=>i.sp,spacing:()=>i.W0,text:()=>i.fL,useActionHandlers:()=>o.bV,useAsyncActionHandler:()=>o.dW,useControlledState:()=>o.zk,useDirection:()=>i.gm,useEventBroker:()=>i.br,useFileInput:()=>o.ei,useFocusWithin:()=>o.L_,useForkRef:()=>o.cR,useIntersection:()=>o.sx,useLayer:()=>i.sJ,useLayoutContext:()=>i.l5,useListNavigation:()=>o.c0,useMobile:()=>i.XA,useOutsideClick:()=>o.O3,usePlatform:()=>i.Fe,usePortalContainer:()=>o.Xw,useResizeObserver:()=>o.yU,useSelect:()=>o.L7,useSelectOptions:()=>i.nw,useTheme:()=>i.Fg,useThemeSettings:()=>i.XG,useThemeType:()=>i.Os,useThemeValue:()=>i.C8,useTimeout:()=>o.KS,useToaster:()=>i.Ps,useUniqId:()=>o.uR,useViewportSize:()=>o.nP,useVirtualElement:()=>o._F,useVirtualElementRef:()=>o.JQ,withDirection:()=>i.vA,withEventBrokerDomHandlers:()=>i.v1,withMobile:()=>i.ze,withTableActions:()=>i.QT,withTableCopy:()=>i.YX,withTableSelection:()=>i.ub,withTableSettings:()=>i.fC,withTableSorting:()=>i.Br,withTheme:()=>i.Zz,withThemeValue:()=>i.fx,withToaster:()=>i.YT,withoutClassMods:()=>i.Sr});var r=n(53660),i=n(27421),o=n(94822),s=n(88290)},1417:(e,t,n)=>{"use strict";n.d(t,{mQ:()=>r.mQ});var r=n(11662)},9123:(e,t,n)=>{"use strict";n.d(t,{lW:()=>r.rF,CM:()=>r.Gp,vy:()=>r.Fn,Lm:()=>r.sm});var r=n(41558),i=(n(79966),n(81975),n(52322)),o=n(2784),s=n(87578),a=n(92416),l=n(94822),c=n(41556),u=n(38690),d=n(89393),h=n(55635);const p=o.createContext(null);p.displayName="MenuContext";var m=n(91219);const f=(0,d.Ge)("lab-menu-divider");function g(){return(0,i.jsx)(m.i,{className:f()})}g.displayName="Menu.Divider";var v=n(22578),b=n(93714);const y={xs:12,s:14,m:16,l:16,xl:20};var w=n(28930);function x(...e){const t=new Map;return e.reduce(((e,n)=>(Object.entries(n).forEach((([n,r])=>{n.startsWith("on")&&n.charCodeAt(2)>=65&&n.charCodeAt(2)<=90?(t.has(n)||t.set(n,[]),"function"==typeof r&&(t.get(n)?.push(r),e[n]=(...e)=>t.get(n)?.map((t=>t(...e))).find((e=>void 0!==e)))):e[n]=r})),e)),{})}var C=n(73888);const _=o.createContext(null);function E(e,t){return!!o.isValidElement(e)&&("string"!=typeof e.type&&e.type.displayName===t)}_.displayName="MenuItemContext";const S=(0,d.Ge)("lab-menu-item"),k=o.forwardRef(((e,t)=>{const{theme:n,selected:r,disabled:a,icon:c,arrow:d,children:h,className:m,qa:f,...g}=e,[k,N]=o.useState(!1),[R,I]=o.useState(!1),M="rtl"===(0,u.gm)(),T=o.useContext(p),A=o.useContext(_);if(!T)throw new Error("<MenuItem> must be used within <Menu>");const O=(0,s.JA)(),z=(0,s.ay)(),D=O.index===T.activeIndex,j=T.inline&&0===O.index||D?0:-1;let P=null;const L=[];c&&L.push((0,i.jsx)("div",{className:S("icon"),"aria-hidden":!0,children:c},"icon"));for(const e of o.Children.toArray(h))!T.inline&&E(e,"Menu")?P=e:L.push(e);(d||P)&&L.push((0,i.jsx)("div",{className:S("arrow"),"aria-hidden":!0,children:d||(0,i.jsx)(w.J,{data:M?v.Z:b.Z,size:y[T.size]})},"arrow"));const F=(0,l.cR)(t,O.ref);let B,U;const W={role:"menuitem",tabIndex:j,className:S({theme:n,size:T.size},m),"data-qa":f,...T.getItemProps({...g,onClick:t=>{e.onClick?.(t),P||z?.events.emit("click")},onFocus:t=>{e.onFocus?.(t),I(!1),A?.setHasFocusInside(!0)}})};void 0!==e.component?(B=e.component,U={...W,"aria-disabled":a??void 0}):!function(e){return void 0!==e.href}(e)?(B="button",U={...W,type:"button",disabled:a,"aria-disabled":a??void 0,"aria-pressed":r??void 0}):(B="a",U={...W,rel:"_blank"!==e.target||e.rel?e.rel:"noopener noreferrer","aria-disabled":a??void 0});const V=(0,i.jsx)(C.G,{isContainer:!0,component:B,componentProps:U,ref:F,size:T.size,disabled:a,active:D&&!R,hovered:R||!D&&k,selected:r,selectionStyle:"highlight",children:L}),H=o.useMemo((()=>({setHasFocusInside:I})),[]);return P?(0,i.jsx)(_.Provider,{value:H,children:o.cloneElement(P,{trigger:(e,t)=>o.cloneElement(V,{ref:(0,l.lq)(t,F),componentProps:x(e,U)}),onOpenChange:(e,t,n)=>{P.props.onOpenChange?.(e,t,n),N(e),e||I(!1)}})}):V}));k.displayName="Menu.Item";var N=n(82075),R=n(67003),I=n(19810);const M=o.forwardRef((({size:e="m",children:t,icon:n="horizontal",...r},o)=>(0,i.jsx)(I.z,{ref:o,size:e,...r,children:t||(0,i.jsx)(w.J,{data:"vertical"===n?N.Z:R.Z,size:y[e]})})));M.displayName="Menu.Trigger";const T=(0,d.Ge)("lab-menu");function A({open:e,onRequestClose:t,parentId:n,children:r,className:a,style:l,qa:c}){const u=(0,s.ay)(),d=(0,s.Zm)();return o.useEffect((()=>{if(u)return u.events.on("click",e),u.events.on("menuopen",r),()=>{u.events.off("click",e),u.events.off("menuopen",r)};function e(){n||t()}function r(e){e.nodeId!==d&&e.parentId===n&&t()}}),[t,u,d,n]),o.useEffect((()=>{e&&u&&u.events.emit("menuopen",{parentId:n,nodeId:d})}),[e,u,d,n]),(0,i.jsx)("div",{className:T(null,a),style:l,"data-qa":c,children:r})}function O({trigger:e,inline:t=!1,defaultOpen:n,open:r,onOpenChange:d,placement:m="bottom-start",disabled:f,children:g,size:v="m",className:b,style:y,qa:w}){const[x,C]=o.useState(null),[_,S]=o.useState(null),[k,N]=(0,l.zk)(r,n??!1,d),[R,I]=o.useState(null),M="rtl"===(0,u.gm)(),O=o.useRef([]),z=o.useContext(p),D=(0,s.Zm)(),j=Boolean(D),P=(0,s.$Y)({open:k&&!f,onOpenChange:N,elements:{reference:x,floating:_}}),L=(0,s.XI)(P,{enabled:j,delay:{open:100},handleClose:(0,s.xp)({blockPointerEvents:!0})}),F=(0,s.eS)(P,{toggle:!j,ignoreMouse:j}),B=(0,s.bQ)(P,{enabled:!j}),U=(0,s.qs)(P,{role:"menu"}),W=(0,s.c0)(P,{listRef:O,activeIndex:R,nested:j,onNavigate:I,rtl:M}),V=[(0,a.cv)({mainAxis:4,alignmentAxis:j?-4:0}),(0,a.RR)(),(0,a.uY)()],H=[L,F,B,U,W],{getReferenceProps:G,getItemProps:q}=(0,s.NI)(H),Y=(0,l.cR)(C,o.isValidElement(e)?(0,h.e)(e):void 0),Z=o.isValidElement(e)?G(e.props):G(),K=o.isValidElement(e)?o.cloneElement(e,{...Z,ref:Y}):"function"==typeof e?e(Z,Y):null,$=o.useCallback((()=>{N(!1)}),[N]),X=o.useCallback((e=>({"data-active":void 0,...e,onPointerEnter:t=>{e?.onPointerEnter?.(t);const n=t.currentTarget,r=[...n.closest('[role="menu"]')?.querySelectorAll('[role="menuitem"]')??[]].indexOf(n);!n.disabled&&!n.ariaDisabled&&r>=0?(n.focus(),I(r)):I(null)},onPointerLeave:t=>{e?.onPointerLeave?.(t),I(null)}})),[]),J=o.useMemo((()=>({inline:z?.inline??t,size:z?.size??v,activeIndex:R,getItemProps:t?X:q})),[z,t,v,R,X,q]);if(o.useEffect((()=>{K||(e?(P.refs.setPositionReference(e),N(!0)):N(!1))}),[e]),t){const e=o.Children.toArray(g).map(((e,t)=>o.isValidElement(e)&&E(e,"Menu.Item")?(0,i.jsx)(s.A8,{render:t=>o.cloneElement(e,{...e.props,...t})},t):e));return(0,i.jsx)(p.Provider,{value:J,children:(0,i.jsx)(s.bU,{render:(0,i.jsx)("div",{role:"menu",className:T(null,b),style:y,"data-qa":w}),orientation:"vertical",loop:!1,rtl:M,activeIndex:R,onNavigate:I,children:e})})}return(0,i.jsxs)(o.Fragment,{children:[K,(0,i.jsx)(c.G,{open:P.open,placement:j?(M?"left":"right")+"-start":m,disablePortal:j,disableEscapeKeyDown:j,disableOutsideClick:j,floatingContext:P,floatingRef:S,floatingMiddlewares:V,floatingInteractions:H,children:(0,i.jsx)(p.Provider,{value:J,children:(0,i.jsx)(s.vs,{elementsRef:O,children:(0,i.jsx)(A,{open:k,onRequestClose:$,parentId:D,className:b,style:y,qa:w,children:g})})})})]})}O.displayName="Menu",O.Trigger=M,O.Item=k,O.Divider=g},53660:(e,t,n)=>{"use strict";var r;n.d(t,{Pe:()=>a,Uo:()=>r,iE:()=>l,jQ:()=>s}),function(e){e.Ru="ru",e.En="en"}(r||(r={}));let i=[];const o={lang:r.En,fallbackLang:r.En},s=e=>{Object.assign(o,e),i.forEach((e=>{e(o)}))},a=e=>(i.push(e),()=>{i=i.filter((t=>t!==e))}),l=()=>o},81110:(e,t,n)=>{"use strict";n.d(t,{x:()=>ec});var r,i=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),s=Object.defineProperty,a=(e,t,n)=>((e,t,n)=>t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),l=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(l||{});function c(e){return e.nodeType===e.ELEMENT_NODE}class u{constructor(){a(this,"idNodeMap",new Map),a(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function d(){return new u}const h=new RegExp(/(max|min)-device-(width|height)/.source,"g"),p={postcssPlugin:"postcss-custom-selectors",prepare:()=>({postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(h)&&(e.params=e.params.replace(h,"$1-$2"))}})},m={postcssPlugin:"postcss-hover-classes",prepare:function(){const e=[];return{Rule:function(t){-1===e.indexOf(t)&&(e.push(t),t.selectors.forEach((function(e){e.includes(":hover")&&(t.selector+=",\n"+e.replace(/:hover/g,".\\:hover"))})))}}}};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var v={exports:{}},b=String,y=function(){return{isColorSupported:!1,reset:b,bold:b,dim:b,italic:b,underline:b,inverse:b,hidden:b,strikethrough:b,black:b,red:b,green:b,yellow:b,blue:b,magenta:b,cyan:b,white:b,gray:b,bgBlack:b,bgRed:b,bgGreen:b,bgYellow:b,bgBlue:b,bgMagenta:b,bgCyan:b,bgWhite:b}};v.exports=y(),v.exports.createColors=y;var w=v.exports;const x=g(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let C=w,_=x,E=class e extends Error{constructor(t,n,r,i,o,s){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==n&&void 0!==r&&("number"==typeof n?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=C.isColorSupported),_&&e&&(t=_(t));let n,r,i=t.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),a=String(s).length;if(e){let{bold:e,gray:t,red:i}=C.createColors(!0);n=t=>e(i(t)),r=e=>t(e)}else n=r=e=>e;return i.slice(o,s).map(((e,t)=>{let i=o+1+t,s=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let t=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(s)+e+"\n "+t+n("^")}return" "+r(s)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var S=E;E.default=E;var k={};k.isClean=Symbol("isClean"),k.my=Symbol("my");const N={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let R=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return N[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[i]?r=this[i](o,e):o.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var s;return void 0===r&&(r=N[n]),o.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var I=R;R.default=R;let M=I;function T(e,t){new M(t).stringify(e)}var A=T;T.default=T;let{isClean:O,my:z}=k,D=S,j=I,P=A;function L(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>L(e,n))):("object"===o&&null!==i&&(i=L(i)),n[r]=i)}return n}let F=class{constructor(e={}){this.raws={},this[O]=!1,this[z]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=L(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new D(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[O]){this[O]=!1;let e=this;for(;e=e.parent;)e[O]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new j).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=P){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}};var B=F;F.default=F;let U=B,W=class extends U{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var V=W;W.default=W;var H={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}};let{SourceMapConsumer:G,SourceMapGenerator:q}=x,{existsSync:Y,readFileSync:Z}=x,{dirname:K,join:$}=x;let X=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=K(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new G(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=K(e),Y(e))return this.mapFile=e,Z(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof G)return q.fromSourceMap(t).toString();if(t instanceof q)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=$(K(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var J=X;X.default=X;let{SourceMapConsumer:Q,SourceMapGenerator:ee}=x,{fileURLToPath:te,pathToFileURL:ne}=x,{isAbsolute:re,resolve:ie}=x,{nanoid:oe}=H,se=x,ae=S,le=J,ce=Symbol("fromOffsetCache"),ue=Boolean(Q&&ee),de=Boolean(ie&&re),he=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!de||/^\w+:\/\//.test(t.from)||re(t.from)?this.file=t.from:this.file=ie(t.from)),de&&ue){let e=new le(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+oe(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n,o,s);return i=a?new ae(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):new ae(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin),i.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ne&&(i.input.url=ne(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[ce])n=this[ce];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[ce]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ie(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),o=re(a.source)?ne(a.source):new URL(a.source,this.map.consumer().sourceRoot||ne(this.map.mapFile));let l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!te)throw new Error("file: protocol is not available in this PostCSS build");l.file=te(o)}let c=s.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var pe=he;he.default=he,se&&se.registerInput&&se.registerInput(he);let{SourceMapConsumer:me,SourceMapGenerator:fe}=x,{dirname:ge,relative:ve,resolve:be,sep:ye}=x,{pathToFileURL:we}=x,xe=pe,Ce=Boolean(me&&fe),_e=Boolean(ge&&be&&ve&&ye);var Ee=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||ge(e.file);!1===this.mapOpts.sourcesContent?(t=new me(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),_e&&Ce&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=fe.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new fe({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new fe({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?ge(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=ge(be(n,this.mapOpts.annotation)));let r=ve(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new xe(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(we){let t=we(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===ye&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};let Se=B,ke=class extends Se{constructor(e){super(e),this.type="comment"}};var Ne=ke;ke.default=ke;let Re,Ie,Me,Te,{isClean:Ae,my:Oe}=k,ze=V,De=Ne,je=B;function Pe(e){return e.map((e=>(e.nodes&&(e.nodes=Pe(e.nodes)),delete e.source,e)))}function Le(e){if(e[Ae]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)Le(t)}let Fe=class e extends je{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(t,n){if("string"==typeof t)t=Pe(Re(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new ze(t)]}else if(t.selector)t=[new Ie(t)];else if(t.name)t=[new Me(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new De(t)]}return t.map((t=>(t[Oe]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Ae]&&Le(t),void 0===t.raws.before&&n&&void 0!==n.raws.before&&(t.raws.before=n.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Fe.registerParse=e=>{Re=e},Fe.registerRule=e=>{Ie=e},Fe.registerAtRule=e=>{Me=e},Fe.registerRoot=e=>{Te=e};var Be=Fe;Fe.default=Fe,Fe.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Me.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ie.prototype):"decl"===e.type?Object.setPrototypeOf(e,ze.prototype):"comment"===e.type?Object.setPrototypeOf(e,De.prototype):"root"===e.type&&Object.setPrototypeOf(e,Te.prototype),e[Oe]=!0,e.nodes&&e.nodes.forEach((e=>{Fe.rebuild(e)}))};let Ue,We,Ve=Be,He=class extends Ve{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ue(new We,this,e).stringify()}};He.registerLazyResult=e=>{Ue=e},He.registerProcessor=e=>{We=e};var Ge=He;He.default=He;let qe=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Ye=qe;qe.default=qe;let Ze=Ye,Ke=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new Ze(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}};var $e=Ke;Ke.default=Ke;const Xe="'".charCodeAt(0),Je='"'.charCodeAt(0),Qe="\\".charCodeAt(0),et="/".charCodeAt(0),tt="\n".charCodeAt(0),nt=" ".charCodeAt(0),rt="\f".charCodeAt(0),it="\t".charCodeAt(0),ot="\r".charCodeAt(0),st="[".charCodeAt(0),at="]".charCodeAt(0),lt="(".charCodeAt(0),ct=")".charCodeAt(0),ut="{".charCodeAt(0),dt="}".charCodeAt(0),ht=";".charCodeAt(0),pt="*".charCodeAt(0),mt=":".charCodeAt(0),ft="@".charCodeAt(0),gt=/[\t\n\f\r "#'()/;[\\\]{}]/g,vt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,bt=/.[\r\n"'(/\\]/,yt=/[\da-f]/i;let wt=Be,xt=class extends wt{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ct=xt;xt.default=xt,wt.registerAtRule(xt);let _t,Et,St=Be,kt=class extends St{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new _t(new Et,this,e).stringify()}};kt.registerLazyResult=e=>{_t=e},kt.registerProcessor=e=>{Et=e};var Nt=kt;kt.default=kt,St.registerRoot(kt);let Rt={comma:e=>Rt.split(e,[","],!0),space:e=>Rt.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};var It=Rt;Rt.default=Rt;let Mt=Be,Tt=It,At=class extends Mt{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Tt.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Ot=At;At.default=At,Mt.registerRule(At);let zt=V,Dt=function(e,t={}){let n,r,i,o,s,a,l,c,u,d,h=e.css.valueOf(),p=t.ignoreErrors,m=h.length,f=0,g=[],v=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&f>=m},nextToken:function(e){if(v.length)return v.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(n=h.charCodeAt(f),n){case tt:case nt:case it:case ot:case rt:r=f;do{r+=1,n=h.charCodeAt(r)}while(n===nt||n===tt||n===it||n===ot||n===rt);d=["space",h.slice(f,r)],f=r-1;break;case st:case at:case ut:case dt:case mt:case ht:case ct:{let e=String.fromCharCode(n);d=[e,e,f];break}case lt:if(c=g.length?g.pop()[1]:"",u=h.charCodeAt(f+1),"url"===c&&u!==Xe&&u!==Je&&u!==nt&&u!==tt&&u!==it&&u!==rt&&u!==ot){r=f;do{if(a=!1,r=h.indexOf(")",r+1),-1===r){if(p||t){r=f;break}b("bracket")}for(l=r;h.charCodeAt(l-1)===Qe;)l-=1,a=!a}while(a);d=["brackets",h.slice(f,r+1),f,r],f=r}else r=h.indexOf(")",f+1),o=h.slice(f,r+1),-1===r||bt.test(o)?d=["(","(",f]:(d=["brackets",o,f,r],f=r);break;case Xe:case Je:i=n===Xe?"'":'"',r=f;do{if(a=!1,r=h.indexOf(i,r+1),-1===r){if(p||t){r=f+1;break}b("string")}for(l=r;h.charCodeAt(l-1)===Qe;)l-=1,a=!a}while(a);d=["string",h.slice(f,r+1),f,r],f=r;break;case ft:gt.lastIndex=f+1,gt.test(h),r=0===gt.lastIndex?h.length-1:gt.lastIndex-2,d=["at-word",h.slice(f,r+1),f,r],f=r;break;case Qe:for(r=f,s=!0;h.charCodeAt(r+1)===Qe;)r+=1,s=!s;if(n=h.charCodeAt(r+1),s&&n!==et&&n!==nt&&n!==tt&&n!==it&&n!==ot&&n!==rt&&(r+=1,yt.test(h.charAt(r)))){for(;yt.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===nt&&(r+=1)}d=["word",h.slice(f,r+1),f,r],f=r;break;default:n===et&&h.charCodeAt(f+1)===pt?(r=h.indexOf("*/",f+2)+1,0===r&&(p||t?r=h.length:b("comment")),d=["comment",h.slice(f,r+1),f,r],f=r):(vt.lastIndex=f+1,vt.test(h),r=0===vt.lastIndex?h.length-1:vt.lastIndex-2,d=["word",h.slice(f,r+1),f,r],g.push(d),f=r)}return f++,d},position:function(){return f}}},jt=Ne,Pt=Ct,Lt=Nt,Ft=Ot;const Bt={empty:!0,space:!0};let Ut=Be,Wt=class{constructor(e){this.input=e,this.root=new Lt,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new Pt;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,s=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a.length-1,n=a[r];n&&"space"===n[0];)n=a[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new jt;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=Dt(this.input)}decl(e,t){let n=new zt;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o,s=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Ft;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s,a,l=n.length,c="",u=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",Bt[a]||Bt[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new Ft;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Vt=pe;function Ht(e,t){let n=new Vt(e,t),r=new Wt(n);try{r.parse()}catch(e){throw e}return r.root}var Gt=Ht;Ht.default=Ht,Ut.registerParse(Ht);let{isClean:qt,my:Yt}=k,Zt=Ee,Kt=A,$t=Be,Xt=Ge,Jt=$e,Qt=Gt,en=Nt;const tn={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},nn={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},rn={Once:!0,postcssPlugin:!0,prepare:!0},on=0;function sn(e){return"object"==typeof e&&"function"==typeof e.then}function an(e){let t=!1,n=tn[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,on,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,on,n+"Exit"]:[n,n+"Exit"]}function ln(e){let t;return t="document"===e.type?["Document",on,"DocumentExit"]:"root"===e.type?["Root",on,"RootExit"]:an(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function cn(e){return e[qt]=!1,e.nodes&&e.nodes.forEach((e=>cn(e))),e}let un={},dn=class e{constructor(t,n,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof e||n instanceof Jt)i=cn(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=Qt;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[Yt]&&$t.rebuild(i)}else i=cn(n);this.result=new Jt(t,i,r),this.helpers={...un,postcss:un,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!nn[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!rn[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(sn(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[qt];){e[qt]=!0;let t=[ln(e)];for(;t.length>0;){let e=this.visitTick(t);if(sn(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return sn(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Kt;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new Zt(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(sn(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[qt];)e[qt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(sn(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[qt])return r[qt]=!0,void e.push(ln(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===on)return void(n.nodes&&n.nodes.length&&(n[qt]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[qt]=!0;let t=an(e);for(let n of t)if(n===on)e.nodes&&e.each((e=>{e[qt]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};dn.registerPostcss=e=>{un=e};var hn=dn;dn.default=dn,en.registerLazyResult(dn),Xt.registerLazyResult(dn);let pn=Ee,mn=A,fn=Gt;const gn=$e;let vn=class{constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=mn;this.result=new gn(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let s=new pn(i,r,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=fn;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var bn=vn;vn.default=vn;let yn=bn,wn=hn,xn=Ge,Cn=Nt,_n=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new wn(this,e,t):new yn(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var En=_n;_n.default=_n,Cn.registerProcessor(_n),xn.registerProcessor(_n);let Sn=V,kn=J,Nn=Ne,Rn=Ct,In=pe,Mn=Nt,Tn=Ot;function An(e,t){if(Array.isArray(e))return e.map((e=>An(e)));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:In.prototype};n.map&&(n.map={...n.map,__proto__:kn.prototype}),t.push(n)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>An(e,t)))),r.source){let{inputId:e,...n}=r.source;r.source=n,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new Mn(r);if("decl"===r.type)return new Sn(r);if("rule"===r.type)return new Tn(r);if("comment"===r.type)return new Nn(r);if("atrule"===r.type)return new Rn(r);throw new Error("Unknown node type: "+e.type)}var On=An;An.default=An;let zn=S,Dn=V,jn=hn,Pn=Be,Ln=En,Fn=A,Bn=On,Un=Ge,Wn=Ye,Vn=Ne,Hn=Ct,Gn=$e,qn=pe,Yn=Gt,Zn=It,Kn=Ot,$n=Nt,Xn=B;function Jn(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new Ln(e)}Jn.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new Ln).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return Jn([i(n)]).process(e,t)},i},Jn.stringify=Fn,Jn.parse=Yn,Jn.fromJSON=Bn,Jn.list=Zn,Jn.comment=e=>new Vn(e),Jn.atRule=e=>new Hn(e),Jn.decl=e=>new Dn(e),Jn.rule=e=>new Kn(e),Jn.root=e=>new $n(e),Jn.document=e=>new Un(e),Jn.CssSyntaxError=zn,Jn.Declaration=Dn,Jn.Container=Pn,Jn.Processor=Ln,Jn.Document=Un,Jn.Comment=Vn,Jn.Warning=Wn,Jn.AtRule=Hn,Jn.Result=Gn,Jn.Input=qn,Jn.Rule=Kn,Jn.Root=$n,Jn.Node=Xn,jn.registerPostcss(Jn);var Qn=Jn;Jn.default=Jn;const er=f(Qn);er.stringify,er.fromJSON,er.plugin,er.parse,er.list,er.document,er.comment,er.atRule,er.rule,er.decl,er.root,er.CssSyntaxError,er.Declaration,er.Container,er.Processor,er.Document,er.Comment,er.Warning,er.AtRule,er.Result,er.Input,er.Rule,er.Root,er.Node;const tr={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function nr(e,t){const n=null==t?void 0:t.stylesWithHoverClass.get(e);if(n)return n;const r=er([p,m]).process(e).css;return null==t||t.stylesWithHoverClass.set(e,r),r}function rr(){return{stylesWithHoverClass:new Map}}function ir(e,t,n,r){const{doc:i,hackCss:o,cache:s}=r;e.childNodes.length?function(e,t,n,r){const i=[];for(const t of e.childNodes)t.type===l.Text&&i.push(t);const o=t.split("/* rr_split */");for(;o.length>1&&o.length>i.length;)o.splice(-2,2,o.slice(-2).join(""));for(let e=0;e<i.length;e++){const t=i[e],s=o[e];t&&s&&(t.textContent=n?nr(s,r):s)}}(e,n,o,s):(o&&(n=nr(n,s)),t.appendChild(i.createTextNode(n)))}function or(e,t){var n;const{doc:r,hackCss:i,cache:o}=t;switch(e.type){case l.Document:return r.implementation.createDocument(null,"",null);case l.DocumentType:return r.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case l.Element:{const i=function(e){let t=tr[e.tagName]?tr[e.tagName]:e.tagName;return"link"===t&&e.attributes._cssText&&(t="style"),t}(e);let o;e.isSVG?o=r.createElementNS("http://www.w3.org/2000/svg",i):(e.isCustom&&(null==(n=r.defaultView)?void 0:n.customElements)&&!r.defaultView.customElements.get(e.tagName)&&r.defaultView.customElements.define(e.tagName,class extends r.defaultView.HTMLElement{}),o=r.createElement(i));const s={};for(const n in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,n))continue;let a=e.attributes[n];if(("option"!==i||"selected"!==n||!1!==a)&&null!==a)if(!0===a&&(a=""),n.startsWith("rr_"))s[n]=a;else{if("string"!=typeof a);else{if("style"===i&&"_cssText"===n){ir(e,o,a,t);continue}if("textarea"===i&&"value"===n){o.appendChild(r.createTextNode(a)),e.childNodes=[];continue}}try{if(e.isSVG&&"xlink:href"===n)o.setAttributeNS("http://www.w3.org/1999/xlink",n,a.toString());else if("onload"===n||"onclick"===n||"onmouse"===n.substring(0,7))o.setAttribute("_"+n,a.toString());else{if("meta"===i&&"Content-Security-Policy"===e.attributes["http-equiv"]&&"content"===n){o.setAttribute("csp-content",a.toString());continue}("link"!==i||"preload"!==e.attributes.rel&&"modulepreload"!==e.attributes.rel||"script"!==e.attributes.as)&&("link"===i&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&e.attributes.href.endsWith(".js")||("img"===i&&e.attributes.srcset&&e.attributes.rr_dataURL?o.setAttribute("rrweb-original-srcset",e.attributes.srcset):o.setAttribute(n,a.toString())))}}catch(e){}}}for(const t in s){const n=s[t];if("canvas"===i&&"rr_dataURL"===t){const e=r.createElement("img");e.onload=()=>{const t=o.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=n.toString(),o.RRNodeType&&(o.rr_dataURL=n.toString())}else if("img"===i&&"rr_dataURL"===t){const t=o;t.currentSrc.startsWith("data:")||(t.setAttribute("rrweb-original-src",e.attributes.src),t.src=n.toString())}if("rr_width"===t)o.style.setProperty("width",n.toString());else if("rr_height"===t)o.style.setProperty("height",n.toString());else if("rr_mediaCurrentTime"===t&&"number"==typeof n)o.currentTime=n;else if("rr_mediaState"===t)switch(n){case"played":o.play().catch((e=>console.warn("media playback error",e)));break;case"paused":o.pause()}else"rr_mediaPlaybackRate"===t&&"number"==typeof n?o.playbackRate=n:"rr_mediaMuted"===t&&"boolean"==typeof n?o.muted=n:"rr_mediaLoop"===t&&"boolean"==typeof n?o.loop=n:"rr_mediaVolume"===t&&"number"==typeof n?o.volume=n:"rr_open_mode"===t&&o.setAttribute("rr_open_mode",n)}if(e.isShadowHost)if(o.shadowRoot)for(;o.shadowRoot.firstChild;)o.shadowRoot.removeChild(o.shadowRoot.firstChild);else o.attachShadow({mode:"open"});return o}case l.Text:return e.isStyle&&i?r.createTextNode(nr(e.textContent,o)):r.createTextNode(e.textContent);case l.CDATA:return r.createCDATASection(e.textContent);case l.Comment:return r.createComment(e.textContent);default:return null}}function sr(e,t){const{doc:n,mirror:r,skipChild:i=!1,hackCss:o=!0,afterAppend:s,cache:a}=t;if(r.has(e.id)){const t=r.getNode(e.id),n=r.getMeta(t);if(d=e,(u=n)&&d&&u.type===d.type&&(u.type===l.Document?u.compatMode===d.compatMode:u.type===l.DocumentType?u.name===d.name&&u.publicId===d.publicId&&u.systemId===d.systemId:u.type===l.Comment||u.type===l.Text||u.type===l.CDATA?u.textContent===d.textContent:u.type===l.Element&&u.tagName===d.tagName&&JSON.stringify(u.attributes)===JSON.stringify(d.attributes)&&u.isSVG===d.isSVG&&u.needBlock===d.needBlock))return r.getNode(e.id)}var u,d;let h=or(e,{doc:n,hackCss:o,cache:a});if(!h)return null;if(e.rootId&&r.getNode(e.rootId)!==n&&r.replace(e.rootId,n),e.type===l.Document&&(n.close(),n.open(),"BackCompat"===e.compatMode&&e.childNodes&&e.childNodes[0].type!==l.DocumentType&&(e.childNodes[0].type===l.Element&&"xmlns"in e.childNodes[0].attributes&&"http://www.w3.org/1999/xhtml"===e.childNodes[0].attributes.xmlns?n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):n.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),h=n),r.add(h,e),(e.type===l.Document||e.type===l.Element)&&!i)for(const t of e.childNodes){const i=sr(t,{doc:n,mirror:r,skipChild:!1,hackCss:o,afterAppend:s,cache:a});if(i){if(t.isShadow&&c(h)&&h.shadowRoot)h.shadowRoot.appendChild(i);else if(e.type===l.Document&&t.type==l.Element){const e=i;let t=null;e.childNodes.forEach((e=>{"BODY"===e.nodeName&&(t=e)})),t?(e.removeChild(t),h.appendChild(i),e.appendChild(t)):h.appendChild(i)}else h.appendChild(i);s&&s(i,t.id)}else console.warn("Failed to rebuild",t)}return h}function ar(e,t){const{doc:n,onVisit:r,hackCss:i=!0,afterAppend:o,cache:s,mirror:a=new u}=t,c=sr(e,{doc:n,mirror:a,skipChild:!1,hackCss:i,afterAppend:o,cache:s});return function(e,t){for(const r of e.getIds())e.has(r)&&(n=e.getNode(r),t(n));var n}(a,(e=>{r&&r(e),function(e,t){const n=t.getMeta(e);if((null==n?void 0:n.type)!==l.Element)return;const r=e;for(const e in n.attributes){if(!Object.prototype.hasOwnProperty.call(n.attributes,e)||!e.startsWith("rr_"))continue;const t=n.attributes[e];"rr_scrollLeft"===e&&(r.scrollLeft=t),"rr_scrollTop"===e&&(r.scrollTop=t)}}(e,a)})),c}var lr=Object.defineProperty,cr=(e,t,n)=>((e,t,n)=>t in e?lr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),ur=Object.defineProperty,dr=(e,t,n)=>((e,t,n)=>t in e?ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let hr=class{constructor(){dr(this,"idNodeMap",new Map),dr(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function pr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mr(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var fr={exports:{}},gr=String,vr=function(){return{isColorSupported:!1,reset:gr,bold:gr,dim:gr,italic:gr,underline:gr,inverse:gr,hidden:gr,strikethrough:gr,black:gr,red:gr,green:gr,yellow:gr,blue:gr,magenta:gr,cyan:gr,white:gr,gray:gr,bgBlack:gr,bgRed:gr,bgGreen:gr,bgYellow:gr,bgBlue:gr,bgMagenta:gr,bgCyan:gr,bgWhite:gr}};fr.exports=vr(),fr.exports.createColors=vr;var br=fr.exports;const yr=mr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));let wr=br,xr=yr,Cr=class e extends Error{constructor(t,n,r,i,o,s){super(t),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==n&&void 0!==r&&("number"==typeof n?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=wr.isColorSupported),xr&&e&&(t=xr(t));let n,r,i=t.split(/\r?\n/),o=Math.max(this.line-3,0),s=Math.min(this.line+2,i.length),a=String(s).length;if(e){let{bold:e,gray:t,red:i}=wr.createColors(!0);n=t=>e(i(t)),r=e=>t(e)}else n=r=e=>e;return i.slice(o,s).map(((e,t)=>{let i=o+1+t,s=" "+(" "+i).slice(-a)+" | ";if(i===this.line){let t=r(s.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(s)+e+"\n "+t+n("^")}return" "+r(s)+e})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};var _r=Cr;Cr.default=Cr;var Er={};Er.isClean=Symbol("isClean"),Er.my=Symbol("my");const Sr={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};let kr=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,r=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:r&&(n+=" "),e.nodes)this.block(e,n+r);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let r=e.parent,i=0;for(;r&&"root"!==r.type;)i+=1,r=r.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),r=e.prop+n+this.rawValue(e,"value");e.important&&(r+=e.raws.important||" !important"),t&&(r+=";"),this.builder(r,e)}document(e){this.body(e)}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return Sr[n];let o=e.root();if(o.rawCache||(o.rawCache={}),void 0!==o.rawCache[n])return o.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let i="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[i]?r=this[i](o,e):o.walk((e=>{if(r=e.raws[t],void 0!==r)return!1}))}var s;return void 0===r&&(r=Sr[n]),o.rawCache[n]=r,r}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Nr=kr;kr.default=kr;let Rr=Nr;function Ir(e,t){new Rr(t).stringify(e)}var Mr=Ir;Ir.default=Ir;let{isClean:Tr,my:Ar}=Er,Or=_r,zr=Nr,Dr=Mr;function jr(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if("proxyCache"===r)continue;let i=e[r],o=typeof i;"parent"===r&&"object"===o?t&&(n[r]=t):"source"===r?n[r]=i:Array.isArray(i)?n[r]=i.map((e=>jr(e,n))):("object"===o&&null!==i&&(i=jr(i)),n[r]=i)}return n}let Pr=class{constructor(e={}){this.raws={},this[Tr]=!1,this[Ar]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=jr(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new Or(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markDirty(){if(this[Tr]){this[Tr]=!1;let e=this;for(;e=e.parent;)e[Tr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){let r=(t=this.toString()).indexOf(e.word);-1!==r&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)"\n"===n[t]?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);-1!==i&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new zr).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},r=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof r&&r.toJSON)n[e]=r.toJSON(null,t);else if("source"===e){let o=t.get(r.input);null==o&&(o=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:o,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Dr){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}};var Lr=Pr;Pr.default=Pr;let Fr=Lr,Br=class extends Fr{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}};var Ur=Br;Br.default=Br;var Wr={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}};let{SourceMapConsumer:Vr,SourceMapGenerator:Hr}=yr,{existsSync:Gr,readFileSync:qr}=yr,{dirname:Yr,join:Zr}=yr;let Kr=class{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Yr(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||(this.consumerCache=new Vr(this.text)),this.consumerCache}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return t=e.substr(RegExp.lastMatch.length),Buffer?Buffer.from(t,"base64").toString():window.atob(t);var t;let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf("*/",n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=Yr(e),Gr(e))return this.mapFile=e,qr(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof Vr)return Hr.fromSourceMap(t).toString();if(t instanceof Hr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=Zr(Yr(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var $r=Kr;Kr.default=Kr;let{SourceMapConsumer:Xr,SourceMapGenerator:Jr}=yr,{fileURLToPath:Qr,pathToFileURL:ei}=yr,{isAbsolute:ti,resolve:ni}=yr,{nanoid:ri}=Wr,ii=yr,oi=_r,si=$r,ai=Symbol("fromOffsetCache"),li=Boolean(Xr&&Jr),ci=Boolean(ni&&ti),ui=class{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!ci||/^\w+:\/\//.test(t.from)||ti(t.from)?this.file=t.from:this.file=ni(t.from)),ci&&li){let e=new si(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+ri(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,o,s;if(t&&"object"==typeof t){let e=t,r=n;if("number"==typeof e.offset){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if("number"==typeof r.offset){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n,o,s);return i=a?new oi(e,void 0===a.endLine?a.line:{column:a.column,line:a.line},void 0===a.endLine?a.column:{column:a.endColumn,line:a.endLine},a.source,a.file,r.plugin):new oi(e,void 0===o?t:{column:n,line:t},void 0===o?n:{column:s,line:o},this.css,this.file,r.plugin),i.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(ei&&(i.input.url=ei(this.file).toString()),i.input.file=this.file),i}fromOffset(e){let t,n;if(this[ai])n=this[ai];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[ai]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t,i=n.length-2;for(;r<i;)if(t=r+(i-r>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){r=t;break}r=t+1}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ni(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,r){if(!this.map)return!1;let i,o,s=this.map.consumer(),a=s.originalPositionFor({column:t,line:e});if(!a.source)return!1;"number"==typeof n&&(i=s.originalPositionFor({column:r,line:n})),o=ti(a.source)?ei(a.source):new URL(a.source,this.map.consumer().sourceRoot||ei(this.map.mapFile));let l={column:a.column,endColumn:i&&i.column,endLine:i&&i.line,line:a.line,url:o.toString()};if("file:"===o.protocol){if(!Qr)throw new Error("file: protocol is not available in this PostCSS build");l.file=Qr(o)}let c=s.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var di=ui;ui.default=ui,ii&&ii.registerInput&&ii.registerInput(ui);let{SourceMapConsumer:hi,SourceMapGenerator:pi}=yr,{dirname:mi,relative:fi,resolve:gi,sep:vi}=yr,{pathToFileURL:bi}=yr,yi=di,wi=Boolean(hi&&pi),xi=Boolean(mi&&gi&&fi&&vi);var Ci=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||mi(e.file);!1===this.mapOpts.sourcesContent?(t=new hi(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),xi&&wi&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=pi.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new pi({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new pi({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,r=1,i="<no source>",o={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((s,a,l)=>{if(this.css+=s,a&&"end"!==l&&(o.generated.line=n,o.generated.column=r-1,a.source&&a.source.start?(o.source=this.sourcePath(a),o.original.line=a.source.start.line,o.original.column=a.source.start.column-1,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,this.map.addMapping(o))),e=s.match(/\n/g),e?(n+=e.length,t=s.lastIndexOf("\n"),r=s.length-t):r+=s.length,a&&"start"!==l){let e=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===e.last&&!e.raws.semicolon||(a.source&&a.source.end?(o.source=this.sourcePath(a),o.original.line=a.source.end.line,o.original.column=a.source.end.column-1,o.generated.line=n,o.generated.column=r-2,this.map.addMapping(o)):(o.source=i,o.original.line=1,o.original.column=0,o.generated.line=n,o.generated.column=r-1,this.map.addMapping(o)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?mi(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=mi(gi(n,this.mapOpts.annotation)));let r=fi(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new yi(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(bi){let t=bi(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===vi&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};let _i=Lr,Ei=class extends _i{constructor(e){super(e),this.type="comment"}};var Si=Ei;Ei.default=Ei;let ki,Ni,Ri,Ii,{isClean:Mi,my:Ti}=Er,Ai=Ur,Oi=Si,zi=Lr;function Di(e){return e.map((e=>(e.nodes&&(e.nodes=Di(e.nodes)),delete e.source,e)))}function ji(e){if(e[Mi]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)ji(t)}let Pi=class e extends zi{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,r=this.getIterator();for(;this.indexes[r]<this.proxyOf.nodes.length&&(t=this.indexes[r],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[r]+=1;return delete this.indexes[r],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let e of i)this.proxyOf.nodes.splice(r+1,0,e);for(let e in this.indexes)n=this.indexes[e],r<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,r=this.index(e),i=0===r&&"prepend",o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let e of o)this.proxyOf.nodes.splice(r,0,e);for(let e in this.indexes)n=this.indexes[e],r<=n&&(this.indexes[e]=n+o.length);return this.markDirty(),this}normalize(t,n){if("string"==typeof t)t=Di(ki(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new Ai(t)]}else if(t.selector)t=[new Ni(t)];else if(t.name)t=[new Ri(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new Oi(t)]}return t.map((t=>(t[Ti]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[Mi]&&ji(t),void 0===t.raws.before&&n&&void 0!==n.raws.before&&(t.raws.before=n.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return!1!==r&&t.walk&&(r=t.walk(e)),r}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("atrule"===n.type&&e.test(n.name))return t(n,r)})):this.walk(((n,r)=>{if("atrule"===n.type&&n.name===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("decl"===n.type&&e.test(n.prop))return t(n,r)})):this.walk(((n,r)=>{if("decl"===n.type&&n.prop===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,r)=>{if("rule"===n.type&&e.test(n.selector))return t(n,r)})):this.walk(((n,r)=>{if("rule"===n.type&&n.selector===e)return t(n,r)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Pi.registerParse=e=>{ki=e},Pi.registerRule=e=>{Ni=e},Pi.registerAtRule=e=>{Ri=e},Pi.registerRoot=e=>{Ii=e};var Li=Pi;Pi.default=Pi,Pi.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,Ri.prototype):"rule"===e.type?Object.setPrototypeOf(e,Ni.prototype):"decl"===e.type?Object.setPrototypeOf(e,Ai.prototype):"comment"===e.type?Object.setPrototypeOf(e,Oi.prototype):"root"===e.type&&Object.setPrototypeOf(e,Ii.prototype),e[Ti]=!0,e.nodes&&e.nodes.forEach((e=>{Pi.rebuild(e)}))};let Fi,Bi,Ui=Li,Wi=class extends Ui{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Fi(new Bi,this,e).stringify()}};Wi.registerLazyResult=e=>{Fi=e},Wi.registerProcessor=e=>{Bi=e};var Vi=Wi;Wi.default=Wi;let Hi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Gi=Hi;Hi.default=Hi;let qi=Gi,Yi=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new qi(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}};var Zi=Yi;Yi.default=Yi;const Ki="'".charCodeAt(0),$i='"'.charCodeAt(0),Xi="\\".charCodeAt(0),Ji="/".charCodeAt(0),Qi="\n".charCodeAt(0),eo=" ".charCodeAt(0),to="\f".charCodeAt(0),no="\t".charCodeAt(0),ro="\r".charCodeAt(0),io="[".charCodeAt(0),oo="]".charCodeAt(0),so="(".charCodeAt(0),ao=")".charCodeAt(0),lo="{".charCodeAt(0),co="}".charCodeAt(0),uo=";".charCodeAt(0),ho="*".charCodeAt(0),po=":".charCodeAt(0),mo="@".charCodeAt(0),fo=/[\t\n\f\r "#'()/;[\\\]{}]/g,go=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,vo=/.[\r\n"'(/\\]/,bo=/[\da-f]/i;let yo=Li,wo=class extends yo{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var xo=wo;wo.default=wo,yo.registerAtRule(wo);let Co,_o,Eo=Li,So=class extends Eo{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let r=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before;return r}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Co(new _o,this,e).stringify()}};So.registerLazyResult=e=>{Co=e},So.registerProcessor=e=>{_o=e};var ko=So;So.default=So,Eo.registerRoot(So);let No={comma:e=>No.split(e,[","],!0),space:e=>No.split(e,[" ","\n","\t"]),split(e,t,n){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:a?n===l&&(a=!1):'"'===n||"'"===n?(a=!0,l=n):"("===n?s+=1:")"===n?s>0&&(s-=1):0===s&&t.includes(n)&&(o=!0),o?(""!==i&&r.push(i.trim()),i="",o=!1):i+=n;return(n||""!==i)&&r.push(i.trim()),r}};var Ro=No;No.default=No;let Io=Li,Mo=Ro,To=class extends Io{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Mo.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var Ao=To;To.default=To,Io.registerRule(To);let Oo=Ur,zo=function(e,t={}){let n,r,i,o,s,a,l,c,u,d,h=e.css.valueOf(),p=t.ignoreErrors,m=h.length,f=0,g=[],v=[];function b(t){throw e.error("Unclosed "+t,f)}return{back:function(e){v.push(e)},endOfFile:function(){return 0===v.length&&f>=m},nextToken:function(e){if(v.length)return v.pop();if(f>=m)return;let t=!!e&&e.ignoreUnclosed;switch(n=h.charCodeAt(f),n){case Qi:case eo:case no:case ro:case to:r=f;do{r+=1,n=h.charCodeAt(r)}while(n===eo||n===Qi||n===no||n===ro||n===to);d=["space",h.slice(f,r)],f=r-1;break;case io:case oo:case lo:case co:case po:case uo:case ao:{let e=String.fromCharCode(n);d=[e,e,f];break}case so:if(c=g.length?g.pop()[1]:"",u=h.charCodeAt(f+1),"url"===c&&u!==Ki&&u!==$i&&u!==eo&&u!==Qi&&u!==no&&u!==to&&u!==ro){r=f;do{if(a=!1,r=h.indexOf(")",r+1),-1===r){if(p||t){r=f;break}b("bracket")}for(l=r;h.charCodeAt(l-1)===Xi;)l-=1,a=!a}while(a);d=["brackets",h.slice(f,r+1),f,r],f=r}else r=h.indexOf(")",f+1),o=h.slice(f,r+1),-1===r||vo.test(o)?d=["(","(",f]:(d=["brackets",o,f,r],f=r);break;case Ki:case $i:i=n===Ki?"'":'"',r=f;do{if(a=!1,r=h.indexOf(i,r+1),-1===r){if(p||t){r=f+1;break}b("string")}for(l=r;h.charCodeAt(l-1)===Xi;)l-=1,a=!a}while(a);d=["string",h.slice(f,r+1),f,r],f=r;break;case mo:fo.lastIndex=f+1,fo.test(h),r=0===fo.lastIndex?h.length-1:fo.lastIndex-2,d=["at-word",h.slice(f,r+1),f,r],f=r;break;case Xi:for(r=f,s=!0;h.charCodeAt(r+1)===Xi;)r+=1,s=!s;if(n=h.charCodeAt(r+1),s&&n!==Ji&&n!==eo&&n!==Qi&&n!==no&&n!==ro&&n!==to&&(r+=1,bo.test(h.charAt(r)))){for(;bo.test(h.charAt(r+1));)r+=1;h.charCodeAt(r+1)===eo&&(r+=1)}d=["word",h.slice(f,r+1),f,r],f=r;break;default:n===Ji&&h.charCodeAt(f+1)===ho?(r=h.indexOf("*/",f+2)+1,0===r&&(p||t?r=h.length:b("comment")),d=["comment",h.slice(f,r+1),f,r],f=r):(go.lastIndex=f+1,go.test(h),r=0===go.lastIndex?h.length-1:go.lastIndex-2,d=["word",h.slice(f,r+1),f,r],g.push(d),f=r)}return f++,d},position:function(){return f}}},Do=Si,jo=xo,Po=ko,Lo=Ao;const Fo={empty:!0,space:!0};let Bo=Li,Uo=class{constructor(e){this.input=e,this.root=new Po,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,r,i=new jo;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let o=!1,s=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(a.length>0){for(r=a.length-1,n=a[r];n&&"space"===n[0];)n=a[--r];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}a.push(e)}else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(i.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(i,"params",a),o&&(e=a[a.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),s&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,r=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(r+=1,2!==r));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,r,i=0;for(let[o,s]of e.entries()){if(t=s,n=t[0],"("===n&&(i+=1),")"===n&&(i-=1),0===i&&":"===n){if(r){if("word"===r[0]&&"progid"===r[1])continue;return o}this.doubleColon(t)}r=t}return!1}comment(e){let t=new Do;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=zo(this.input)}decl(e,t){let n=new Oo;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o,s=[];for(;e.length&&(o=e[0][0],"space"===o||"comment"===o);)s.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(n.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),i="";for(let e=t;e>0;e--){let t=r[e][0];if(0===i.trim().indexOf("!")&&"space"!==t)break;i=r.pop()[1]+i}0===i.trim().indexOf("!")&&(n.important=!0,n.raws.important=i,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=s.map((e=>e[1])).join(""),s=[]),this.raw(n,"value",s.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Lo;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,o=[],s=e[1].startsWith("--"),a=[],l=e;for(;l;){if(n=l[0],a.push(l),"("===n||"["===n)i||(i=l),o.push("("===n?")":"]");else if(s&&r&&"{"===n)i||(i=l),o.push("}");else if(0===o.length){if(";"===n){if(r)return void this.decl(a,s);break}if("{"===n)return void this.rule(a);if("}"===n){this.tokenizer.back(a.pop()),t=!0;break}":"===n&&(r=!0)}else n===o[o.length-1]&&(o.pop(),0===o.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(i),t&&r){if(!s)for(;a.length&&(l=a[a.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(a.pop());this.decl(a,s)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,o,s,a,l=n.length,c="",u=!0;for(let e=0;e<l;e+=1)i=n[e],o=i[0],"space"!==o||e!==l-1||r?"comment"===o?(a=n[e-1]?n[e-1][0]:"empty",s=n[e+1]?n[e+1][0]:"empty",Fo[a]||Fo[s]||","===c.slice(-1)?u=!1:c+=i[1]):c+=i[1]:u=!1;if(!u){let r=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new Lo;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}},Wo=di;function Vo(e,t){let n=new Wo(e,t),r=new Uo(n);try{r.parse()}catch(e){throw e}return r.root}var Ho=Vo;Vo.default=Vo,Bo.registerParse(Vo);let{isClean:Go,my:qo}=Er,Yo=Ci,Zo=Mr,Ko=Li,$o=Vi,Xo=Zi,Jo=Ho,Qo=ko;const es={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},ts={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},ns={Once:!0,postcssPlugin:!0,prepare:!0},rs=0;function is(e){return"object"==typeof e&&"function"==typeof e.then}function os(e){let t=!1,n=es[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,rs,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,rs,n+"Exit"]:[n,n+"Exit"]}function ss(e){let t;return t="document"===e.type?["Document",rs,"DocumentExit"]:"root"===e.type?["Root",rs,"RootExit"]:os(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function as(e){return e[Go]=!1,e.nodes&&e.nodes.forEach((e=>as(e))),e}let ls={},cs=class e{constructor(t,n,r){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof e||n instanceof Xo)i=as(n.root),n.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=Jo;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{i=e(n,r)}catch(e){this.processed=!0,this.error=e}i&&!i[qo]&&Ko.rebuild(i)}else i=as(n);this.result=new Xo(t,i,r),this.helpers={...ls,postcss:ls,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!ts[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ns[n])if("object"==typeof t[n])for(let r in t[n])e(t,"*"===r?n:n+"-"+r.toLowerCase(),t[n][r]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(is(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Go];){e[Go]=!0;let t=[ss(e)];for(;t.length>0;){let e=this.visitTick(t);if(is(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return is(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Zo;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new Yo(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(is(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Go];)e[Go]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){let e;this.result.lastPlugin=n;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(is(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let r,i=t.iterator;for(;r=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!r[Go])return r[Go]=!0,void e.push(ss(r));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===rs)return void(n.nodes&&n.nodes.length&&(n[Go]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[Go]=!0;let t=os(e);for(let n of t)if(n===rs)e.nodes&&e.each((e=>{e[Go]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};cs.registerPostcss=e=>{ls=e};var us=cs;cs.default=cs,Qo.registerLazyResult(cs),$o.registerLazyResult(cs);let ds=Ci,hs=Mr,ps=Ho;const ms=Zi;let fs=class{constructor(e,t,n){let r;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i=hs;this.result=new ms(this._processor,r,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let s=new ds(i,r,this._opts,t);if(s.isMap()){let[e,t]=s.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=ps;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var gs=fs;fs.default=fs;let vs=gs,bs=us,ys=Vi,ws=ko,xs=class{constructor(e=[]){this.version="8.4.38",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new bs(this,e,t):new vs(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Cs=xs;xs.default=xs,ws.registerProcessor(xs),ys.registerProcessor(xs);let _s=Ur,Es=$r,Ss=Si,ks=xo,Ns=di,Rs=ko,Is=Ao;function Ms(e,t){if(Array.isArray(e))return e.map((e=>Ms(e)));let{inputs:n,...r}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:Ns.prototype};n.map&&(n.map={...n.map,__proto__:Es.prototype}),t.push(n)}}if(r.nodes&&(r.nodes=e.nodes.map((e=>Ms(e,t)))),r.source){let{inputId:e,...n}=r.source;r.source=n,null!=e&&(r.source.input=t[e])}if("root"===r.type)return new Rs(r);if("decl"===r.type)return new _s(r);if("rule"===r.type)return new Is(r);if("comment"===r.type)return new Ss(r);if("atrule"===r.type)return new ks(r);throw new Error("Unknown node type: "+e.type)}var Ts=Ms;Ms.default=Ms;let As=_r,Os=Ur,zs=us,Ds=Li,js=Cs,Ps=Mr,Ls=Ts,Fs=Vi,Bs=Gi,Us=Si,Ws=xo,Vs=Zi,Hs=di,Gs=Ho,qs=Ro,Ys=Ao,Zs=ko,Ks=Lr;function $s(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new js(e)}$s.plugin=function(e,t){let n,r=!1;function i(...n){console&&console.warn&&!r&&(r=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new js).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return $s([i(n)]).process(e,t)},i},$s.stringify=Ps,$s.parse=Gs,$s.fromJSON=Ls,$s.list=qs,$s.comment=e=>new Us(e),$s.atRule=e=>new Ws(e),$s.decl=e=>new Os(e),$s.rule=e=>new Ys(e),$s.root=e=>new Zs(e),$s.document=e=>new Fs(e),$s.CssSyntaxError=As,$s.Declaration=Os,$s.Container=Ds,$s.Processor=js,$s.Document=Fs,$s.Comment=Us,$s.Warning=Bs,$s.AtRule=Ws,$s.Result=Vs,$s.Input=Hs,$s.Rule=Ys,$s.Root=Zs,$s.Node=Ks,zs.registerPostcss($s);var Xs=$s;$s.default=$s;const Js=pr(Xs);Js.stringify,Js.fromJSON,Js.plugin,Js.parse,Js.list,Js.document,Js.comment,Js.atRule,Js.rule,Js.decl,Js.root,Js.CssSyntaxError,Js.Declaration,Js.Container,Js.Processor,Js.Document,Js.Comment,Js.Warning,Js.AtRule,Js.Result,Js.Input,Js.Rule,Js.Root,Js.Node;var Qs=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Qs||{});function ea(e){const t=[];for(const n in e){const r=e[n];if("string"!=typeof r)continue;const i=oa(n);t.push(`${i}: ${r};`)}return t.join(" ")}const ta=/-([a-z])/g,na=/^--[a-zA-Z0-9-]+$/,ra=e=>na.test(e)?e:e.replace(ta,((e,t)=>t?t.toUpperCase():"")),ia=/\B([A-Z])/g,oa=e=>e.replace(ia,"-$1").toLowerCase();class sa{constructor(...e){cr(this,"parentElement",null),cr(this,"parentNode",null),cr(this,"ownerDocument"),cr(this,"firstChild",null),cr(this,"lastChild",null),cr(this,"previousSibling",null),cr(this,"nextSibling",null),cr(this,"ELEMENT_NODE",1),cr(this,"TEXT_NODE",3),cr(this,"nodeType"),cr(this,"nodeName"),cr(this,"RRNodeType")}get childNodes(){const e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(!(e instanceof sa))return!1;if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}class aa extends sa{constructor(...e){super(e),cr(this,"nodeType",9),cr(this,"nodeName","#document"),cr(this,"compatMode","CSS1Compat"),cr(this,"RRNodeType",Qs.Document),cr(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find((e=>e.RRNodeType===Qs.Element&&"HTML"===e.tagName))||null}get body(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find((e=>e.RRNodeType===Qs.Element&&"BODY"===e.tagName)))||null}get head(){var e;return(null==(e=this.documentElement)?void 0:e.childNodes.find((e=>e.RRNodeType===Qs.Element&&"HEAD"===e.tagName)))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){const t=e.RRNodeType;if((t===Qs.Element||t===Qs.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===t)))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===Qs.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const n=ga(this,e);return n.parentElement=null,n}insertBefore(e,t){const n=e.RRNodeType;if((n===Qs.Element||n===Qs.DocumentType)&&this.childNodes.some((e=>e.RRNodeType===n)))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===Qs.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);const r=va(this,e,t);return r.parentElement=null,r}removeChild(e){return ba(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'===e?t="-//W3C//DTD XHTML 1.0 Transitional//EN":'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'===e&&(t="-//W3C//DTD HTML 4.0 Transitional//EN"),t){const e=this.createDocumentType("html",t,"");this.open(),this.appendChild(e)}}createDocument(e,t,n){return new aa}createDocumentType(e,t,n){const r=new la(e,t,n);return r.ownerDocument=this,r}createElement(e){const t=new ca(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){const t=new ha(e);return t.ownerDocument=this,t}createComment(e){const t=new pa(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new ma(e);return t.ownerDocument=this,t}toString(){return"RRDocument"}}class la extends sa{constructor(e,t,n){super(),cr(this,"nodeType",10),cr(this,"RRNodeType",Qs.DocumentType),cr(this,"name"),cr(this,"publicId"),cr(this,"systemId"),cr(this,"textContent",null),this.name=e,this.publicId=t,this.systemId=n,this.nodeName=e}toString(){return"RRDocumentType"}}class ca extends sa{constructor(e){super(),cr(this,"nodeType",1),cr(this,"RRNodeType",Qs.Element),cr(this,"tagName"),cr(this,"attributes",{}),cr(this,"shadowRoot",null),cr(this,"scrollLeft"),cr(this,"scrollTop"),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e="";return this.childNodes.forEach((t=>e+=t.textContent)),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new fa(this.attributes.class,(e=>{this.attributes.class=e}))}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){const e=this.attributes.style?function(e){const t={},n=/:(.+)/;return e.replace(/\/\*.*?\*\//g,"").split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(n);r.length>1&&(t[ra(r[0].trim())]=r[1].trim())}})),t}(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(n,r,i)=>{if(t.test(n))return;const o=ra(n);r?e[o]=r:delete e[o],"important"===i&&(e[o]+=" !important"),this.attributes.style=ea(e)},e.removeProperty=n=>{if(t.test(n))return"";const r=ra(n),i=e[r]||"";return delete e[r],this.attributes.style=ea(e),i},e}getAttribute(e){return void 0===this.attributes[e]?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,n){this.setAttribute(t,n)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return ga(this,e)}insertBefore(e,t){return va(this,e,t)}removeChild(e){return ba(this,e)}attachShadow(e){const t=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e="";for(const t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}}class ua extends ca{constructor(){super(...arguments),cr(this,"currentTime"),cr(this,"volume"),cr(this,"paused"),cr(this,"muted"),cr(this,"playbackRate"),cr(this,"loop")}attachShadow(e){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}}class da extends ca{constructor(){super(...arguments),cr(this,"tagName","DIALOG"),cr(this,"nodeName","DIALOG")}get isModal(){return"modal"===this.getAttribute("rr_open_mode")}get open(){return null!==this.getAttribute("open")}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}}class ha extends sa{constructor(e){super(),cr(this,"nodeType",3),cr(this,"nodeName","#text"),cr(this,"RRNodeType",Qs.Text),cr(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}}class pa extends sa{constructor(e){super(),cr(this,"nodeType",8),cr(this,"nodeName","#comment"),cr(this,"RRNodeType",Qs.Comment),cr(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}}class ma extends sa{constructor(e){super(),cr(this,"nodeName","#cdata-section"),cr(this,"nodeType",4),cr(this,"RRNodeType",Qs.CDATA),cr(this,"data"),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}}class fa{constructor(e,t){if(cr(this,"onChange"),cr(this,"classes",[]),cr(this,"add",((...e)=>{for(const t of e){const e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(" "))})),cr(this,"remove",((...e)=>{this.classes=this.classes.filter((t=>-1===e.indexOf(t))),this.onChange&&this.onChange(this.classes.join(" "))})),e){const t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}}function ga(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function va(e,t,n){if(!n)return ga(e,t);if(n.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===n||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=n.previousSibling,n.previousSibling=t,t.nextSibling=n,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function ba(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var ya=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(ya||{});const wa={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},xa={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};let Ca=null;function _a(e,t,n,r=t.mirror||t.ownerDocument.mirror){e=function(e,t,n,r){var i;n.afterAppend&&!Ca&&(Ca=new WeakSet,setTimeout((()=>{Ca=null}),0));if(!ka(e,t)){const o=Sa(t,n.mirror,r);null==(i=e.parentNode)||i.replaceChild(o,e),e=o}switch(t.RRNodeType){case Qs.Document:if(!Na(e,t,n.mirror,r)){const i=r.getMeta(t);i&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,i),null==Ca||Ca.add(e))}break;case Qs.Element:{const i=e,o=t;switch(o.tagName){case"IFRAME":{const i=e.contentDocument;if(!i)break;_a(i,t.contentDocument,n,r);break}}o.shadowRoot&&(i.shadowRoot||i.attachShadow({mode:"open"}),Ea(i.shadowRoot,o.shadowRoot,n,r)),function(e,t,n){const r=e.attributes,i=t.attributes;for(const r in i){const o=i[r],s=n.getMeta(t);if((null==s?void 0:s.isSVG)&&wa[r])e.setAttributeNS(wa[r],r,o);else if("CANVAS"===t.tagName&&"rr_dataURL"===r){const t=document.createElement("img");t.src=o,t.onload=()=>{const n=e.getContext("2d");n&&n.drawImage(t,0,0,t.width,t.height)}}else{if("IFRAME"===t.tagName&&"srcdoc"===r)continue;try{e.setAttribute(r,o)}catch(e){console.warn(e)}}}for(const{name:t}of Array.from(r))t in i||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}(i,o,r);break}}return e}(e,t,n,r),Ea(e,t,n,r),function(e,t,n){var r;switch(t.RRNodeType){case Qs.Document:{const e=t.scrollData;e&&n.applyScroll(e,!0);break}case Qs.Element:{const r=e,i=t;switch(i.scrollData&&n.applyScroll(i.scrollData,!0),i.inputData&&n.applyInput(i.inputData),i.tagName){case"AUDIO":case"VIDEO":{const t=e,n=i;void 0!==n.paused&&(n.paused?t.pause():t.play()),void 0!==n.muted&&(t.muted=n.muted),void 0!==n.volume&&(t.volume=n.volume),void 0!==n.currentTime&&(t.currentTime=n.currentTime),void 0!==n.playbackRate&&(t.playbackRate=n.playbackRate),void 0!==n.loop&&(t.loop=n.loop);break}case"CANVAS":{const i=t;if(null!==i.rr_dataURL){const e=document.createElement("img");e.onload=()=>{const t=r.getContext("2d");t&&t.drawImage(e,0,0,e.width,e.height)},e.src=i.rr_dataURL}i.canvasMutations.forEach((t=>n.applyCanvas(t.event,t.mutation,e)));break}case"STYLE":{const e=r.sheet;e&&t.rules.forEach((t=>n.applyStyleSheetMutation(t,e)));break}case"DIALOG":{const e=r,t=i,n=e.open,o=e.matches("dialog:modal"),s=t.open,a=t.isModal,l=o!==a,c=n!==s;if((l||n&&c)&&e.close(),s&&(c||l))try{a?e.showModal():e.show()}catch(e){console.warn(e)}break}}break}case Qs.Text:case Qs.Comment:case Qs.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}(null==Ca?void 0:Ca.has(e))&&(Ca.delete(e),null==(r=n.afterAppend)||r.call(n,e,n.mirror.getId(e)))}(e,t,n)}function Ea(e,t,n,r){const i=Array.from(e.childNodes),o=t.childNodes;if(0===i.length&&0===o.length)return;let s,a,l=0,c=i.length-1,u=0,d=o.length-1,h=i[l],p=i[c],m=o[u],f=o[d];for(;l<=c&&u<=d;)if(void 0===h)h=i[++l];else if(void 0===p)p=i[--c];else if(Na(h,m,n.mirror,r))h=i[++l],m=o[++u];else if(Na(p,f,n.mirror,r))p=i[--c],f=o[--d];else if(Na(h,f,n.mirror,r)){try{e.insertBefore(h,p.nextSibling)}catch(e){console.warn(e)}h=i[++l],f=o[--d]}else if(Na(p,m,n.mirror,r)){try{e.insertBefore(p,h)}catch(e){console.warn(e)}p=i[--c],m=o[++u]}else{if(!s){s={};for(let e=l;e<=c;e++){const t=i[e];t&&n.mirror.hasNode(t)&&(s[n.mirror.getId(t)]=e)}}a=s[r.getId(m)];const t=i[a];if(void 0!==a&&t&&Na(t,m,n.mirror,r)){try{e.insertBefore(t,h)}catch(e){console.warn(e)}i[a]=void 0}else{const t=Sa(m,n.mirror,r);"#document"===e.nodeName&&h&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&h.nodeType===h.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&h.nodeType===h.ELEMENT_NODE)&&(e.removeChild(h),n.mirror.removeNodeFromMap(h),h=i[++l]);try{e.insertBefore(t,h||null)}catch(e){console.warn(e)}}m=o[++u]}if(l>c){const t=o[d+1];let i=null;for(t&&(i=n.mirror.getNode(r.getId(t)));u<=d;++u){const t=Sa(o[u],n.mirror,r);try{e.insertBefore(t,i)}catch(e){console.warn(e)}}}else if(u>d)for(;l<=c;l++){const t=i[l];if(t&&t.parentNode===e)try{e.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let g=e.firstChild,v=t.firstChild;for(;null!==g&&null!==v;)_a(g,v,n,r),g=g.nextSibling,v=v.nextSibling}function Sa(e,t,n){const r=n.getId(e),i=n.getMeta(e);let o=null;if(r>-1&&(o=t.getNode(r)),null!==o&&ka(o,e))return o;switch(e.RRNodeType){case Qs.Document:o=new Document;break;case Qs.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case Qs.Element:{let t=e.tagName.toLowerCase();t=xa[t]||t,o=i&&"isSVG"in i&&(null==i?void 0:i.isSVG)?document.createElementNS(wa.svg,t):document.createElement(e.tagName);break}case Qs.Text:o=document.createTextNode(e.data);break;case Qs.Comment:o=document.createComment(e.data);break;case Qs.CDATA:o=document.createCDATASection(e.data)}i&&t.add(o,{...i});try{null==Ca||Ca.add(o)}catch(e){}return o}function ka(e,t){return e.nodeType===t.nodeType&&(e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName)}function Na(e,t,n,r){const i=n.getId(e),o=r.getId(t);return-1!==i&&i===o&&ka(e,t)}class Ra extends aa{constructor(e){super(),cr(this,"UNSERIALIZED_STARTING_ID",-2),cr(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),cr(this,"mirror",new Ua),cr(this,"scrollData",null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(e,t,n){return new Ra}createDocumentType(e,t,n){const r=new Ia(e,t,n);return r.ownerDocument=this,r}createElement(e){const t=e.toUpperCase();let n;switch(t){case"AUDIO":case"VIDEO":n=new Ta(t);break;case"IFRAME":n=new Da(t,this.mirror);break;case"CANVAS":n=new Oa(t);break;case"STYLE":n=new za(t);break;case"DIALOG":n=new Aa(t);break;default:n=new Ma(t)}return n.ownerDocument=this,n}createComment(e){const t=new Pa(e);return t.ownerDocument=this,t}createCDATASection(e){const t=new La(e);return t.ownerDocument=this,t}createTextNode(e){const t=new ja(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}}const Ia=la;class Ma extends ca{constructor(){super(...arguments),cr(this,"inputData",null),cr(this,"scrollData",null)}}class Ta extends ua{}class Aa extends da{}class Oa extends Ma{constructor(){super(...arguments),cr(this,"rr_dataURL",null),cr(this,"canvasMutations",[])}getContext(){return null}}class za extends Ma{constructor(){super(...arguments),cr(this,"rules",[])}}class Da extends Ma{constructor(e,t){super(e),cr(this,"contentDocument",new Ra),this.contentDocument.mirror=t}}const ja=ha,Pa=pa,La=ma;function Fa(e,t,n,r){let i;switch(e.nodeType){case ya.DOCUMENT_NODE:r&&"IFRAME"===r.nodeName?i=r.contentDocument:(i=t,i.compatMode=e.compatMode);break;case ya.DOCUMENT_TYPE_NODE:{const n=e;i=t.createDocumentType(n.name,n.publicId,n.systemId);break}case ya.ELEMENT_NODE:{const n=e,r=(o=n)instanceof HTMLFormElement?"FORM":o.tagName.toUpperCase();i=t.createElement(r);const s=i;for(const{name:e,value:t}of Array.from(n.attributes))s.attributes[e]=t;n.scrollLeft&&(s.scrollLeft=n.scrollLeft),n.scrollTop&&(s.scrollTop=n.scrollTop);break}case ya.TEXT_NODE:i=t.createTextNode(e.textContent||"");break;case ya.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case ya.COMMENT_NODE:i=t.createComment(e.textContent||"");break;case ya.DOCUMENT_FRAGMENT_NODE:i=r.attachShadow({mode:"open"});break;default:return null}var o;let s=n.getMeta(e);return t instanceof Ra&&(s||(s=Wa(i,t.unserializedId),n.add(e,s)),t.mirror.add(i,{...s})),i}function Ba(e,t=function(){return new hr}(),n=new Ra){return function e(r,i){const o=Fa(r,n,t,i);if(null!==o)if("IFRAME"!==(null==i?void 0:i.nodeName)&&r.nodeType!==ya.DOCUMENT_FRAGMENT_NODE&&(null==i||i.appendChild(o),o.parentNode=i,o.parentElement=i),"IFRAME"===r.nodeName){const t=r.contentDocument;t&&e(t,o)}else r.nodeType!==ya.DOCUMENT_NODE&&r.nodeType!==ya.ELEMENT_NODE&&r.nodeType!==ya.DOCUMENT_FRAGMENT_NODE||(r.nodeType===ya.ELEMENT_NODE&&r.shadowRoot&&e(r.shadowRoot,o),r.childNodes.forEach((t=>e(t,o))))}(e,null),n}class Ua{constructor(){cr(this,"idNodeMap",new Map),cr(this,"nodeMetaMap",new WeakMap)}getId(e){var t;if(!e)return-1;return(null==(t=this.getMeta(e))?void 0:t.id)??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach((e=>this.removeNodeFromMap(e)))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Wa(e,t){switch(e.RRNodeType){case Qs.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case Qs.DocumentType:{const n=e;return{id:t,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case Qs.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case Qs.Text:case Qs.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case Qs.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}const Va={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Ha={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ga={},qa=()=>!!globalThis.Zone;function Ya(e){if(Ga[e])return Ga[e];const t=globalThis[e],n=t.prototype,r=e in Va?Va[e]:void 0,i=Boolean(r&&r.every((e=>{var t,r;return Boolean(null==(r=null==(t=Object.getOwnPropertyDescriptor(n,e))?void 0:t.get)?void 0:r.toString().includes("[native code]"))}))),o=e in Ha?Ha[e]:void 0,s=Boolean(o&&o.every((e=>{var t;return"function"==typeof n[e]&&(null==(t=n[e])?void 0:t.toString().includes("[native code]"))})));if(i&&s&&!qa())return Ga[e]=t.prototype,t.prototype;try{const r=document.createElement("iframe");document.body.appendChild(r);const i=r.contentWindow;if(!i)return t.prototype;const o=i[e].prototype;return document.body.removeChild(r),o?Ga[e]=o:n}catch{return n}}const Za={};function Ka(e,t,n){var r;const i=`${e}.${String(n)}`;if(Za[i])return Za[i].call(t);const o=Ya(e),s=null==(r=Object.getOwnPropertyDescriptor(o,n))?void 0:r.get;return s?(Za[i]=s,s.call(t)):t[n]}const $a={};function Xa(e,t,n){const r=`${e}.${String(n)}`;if($a[r])return $a[r].bind(t);const i=Ya(e)[n];return"function"!=typeof i?t[n]:($a[r]=i,i.bind(t))}const Ja={childNodes:function(e){return Ka("Node",e,"childNodes")},parentNode:function(e){return Ka("Node",e,"parentNode")},parentElement:function(e){return Ka("Node",e,"parentElement")},textContent:function(e){return Ka("Node",e,"textContent")},contains:function(e,t){return Xa("Node",e,"contains")(t)},getRootNode:function(e){return Xa("Node",e,"getRootNode")()},host:function(e){return e&&"host"in e?Ka("ShadowRoot",e,"host"):null},styleSheets:function(e){return e.styleSheets},shadowRoot:function(e){return e&&"shadowRoot"in e?Ka("Element",e,"shadowRoot"):null},querySelector:function(e,t){return Ka("Element",e,"querySelector")(t)},querySelectorAll:function(e,t){return Ka("Element",e,"querySelectorAll")(t)},mutationObserver:function(){return Ya("MutationObserver").constructor}},Qa="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let el={map:{},getId:()=>(console.error(Qa),-1),getNode:()=>(console.error(Qa),null),removeNodeFromMap(){console.error(Qa)},has:()=>(console.error(Qa),!1),reset(){console.error(Qa)}};function tl(e){const t={},n=(e,n)=>{const r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(const i of e){const{nextId:e,parentId:o}=i;if(e&&e in t){const o=t[e];if(o.parent){const e=o.parent.children.indexOf(o);o.parent.children.splice(e,0,n(i,o.parent))}else{const e=r.indexOf(o);r.splice(e,0,n(i,null))}}else if(o in t){const e=t[o];e.children.push(n(i,e))}else r.push(n(i,null))}return r}function nl(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)nl(e.children[n],t)}function rl(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function il(e,t){var n,r;const i=null==(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?void 0:r.frameElement;if(!i||i===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};const o=i.getBoundingClientRect(),s=il(i,t),a=o.height/i.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:a,absoluteScale:s.absoluteScale*a}}function ol(e){return!!e&&(e instanceof sa&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(Ja.shadowRoot(e)))}function sl(e,t){const n=e[t[0]];return 1===t.length?n:sl(n.cssRules[t[1]].cssRules,t.slice(2))}function al(e){const t=[...e],n=t.pop();return{positions:t,index:n}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(el=new Proxy(el,{get:(e,t,n)=>("map"===t&&console.error(Qa),Reflect.get(e,t,n))})),Date.now().toString();class ll{constructor(){o(this,"id",1),o(this,"styleIDMap",new WeakMap),o(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}for(var cl=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(cl||{}),ul=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ul||{}),dl=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(dl||{}),hl=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(hl||{}),pl=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(pl||{}),ml=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(ml||{}),fl=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(fl||{}),gl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vl="undefined"==typeof Uint8Array?[]:new Uint8Array(256),bl=0;bl<64;bl++)vl[gl.charCodeAt(bl)]=bl;var yl=function(e){var t,n,r,i,o,s=.75*e.length,a=e.length,l=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);var c=new ArrayBuffer(s),u=new Uint8Array(c);for(t=0;t<a;t+=4)n=vl[e.charCodeAt(t)],r=vl[e.charCodeAt(t+1)],i=vl[e.charCodeAt(t+2)],o=vl[e.charCodeAt(t+3)],u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|i>>2,u[l++]=(3&i)<<6|63&o;return c};var wl;"undefined"!=typeof window&&window.Blob&&new Blob([(wl="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",Uint8Array.from(atob(wl),(e=>e.charCodeAt(0))))],{type:"text/javascript;charset=utf-8"});try{if(2!==Array.from([1],(e=>2*e))[0]){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=(null==(r=e.contentWindow)?void 0:r.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}function xl(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}d();const Cl=Object.freeze(Object.defineProperty({__proto__:null,default:xl},Symbol.toStringTag,{value:"Module"}));function _l(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&!0!==e.__forceSmoothScrollPolyfill__)return;const n=e.HTMLElement||e.Element,r=468,i={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||l,scrollIntoView:n.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;const s=(a=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(a)?1:0);var a;function l(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function u(e,t){return"Y"===t?e.clientHeight+s<e.scrollHeight:"X"===t?e.clientWidth+s<e.scrollWidth:void 0}function d(t,n){const r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function h(e){const t=u(e,"Y")&&d(e,"Y"),n=u(e,"X")&&d(e,"X");return t||n}function p(t){let n,i,s,a=(o()-t.startTime)/r;var l;a=a>1?1:a,l=a,n=.5*(1-Math.cos(Math.PI*l)),i=t.startX+(t.x-t.startX)*n,s=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,i,s),i===t.x&&s===t.y||e.requestAnimationFrame(p.bind(e,t))}function m(n,r,s){let a,c,u,d;const h=o();n===t.body?(a=e,c=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=i.scroll):(a=n,c=n.scrollLeft,u=n.scrollTop,d=l),p({scrollable:a,method:d,startTime:h,startX:c,startY:u,x:r,y:s})}e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?m.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):i.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(c(arguments[0])?i.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):m.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},n.prototype.scroll=n.prototype.scrollTo=function(){if(void 0===arguments[0])return;if(!0===c(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");return void i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}const e=arguments[0].left,t=arguments[0].top;m.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)},n.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==c(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):i.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},n.prototype.scrollIntoView=function(){if(!0===c(arguments[0]))return void i.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);const n=function(e){for(;e!==t.body&&!1===h(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),o=this.getBoundingClientRect();n!==t.body?(m.call(this,n,n.scrollLeft+o.left-r.left,n.scrollTop+o.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:o.left,top:o.top,behavior:"smooth"})}}class El{constructor(e=[],t){o(this,"timeOffset",0),o(this,"speed"),o(this,"actions"),o(this,"raf",null),o(this,"lastTimestamp"),this.actions=e,this.speed=t.speed}addAction(e){const t=!0===this.raf;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{const t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){const e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){const e=this.actions[0];if(!(this.timeOffset>=e.delay))break;this.actions.shift(),e.doAction()}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(!0!==this.raf&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return null!==this.raf}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){const r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else{if(!(this.actions[r].delay>e.delay))return r+1;n=r-1}}return t}}function Sl(e,t){if(e.type===cl.IncrementalSnapshot&&e.data.source===ul.MouseMove&&e.data.positions&&e.data.positions.length){const n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function kl(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}var Nl,Rl;(Rl=Nl||(Nl={}))[Rl.NotStarted=0]="NotStarted",Rl[Rl.Running=1]="Running",Rl[Rl.Stopped=2]="Stopped";var Il={type:"xstate.init"};function Ml(e){return void 0===e?[]:[].concat(e)}function Tl(e){return{type:"xstate.assign",assignment:e}}function Al(e,t){return"string"==typeof(e="string"==typeof e&&t&&t[e]?t[e]:e)?{type:e}:"function"==typeof e?{type:e.name,exec:e}:e}function Ol(e){return function(t){return e===t}}function zl(e){return"string"==typeof e?{type:e}:e}function Dl(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Ol(e)}}function jl(e,t,n){var r=t,i=!1;return[e.filter((function(e){if("xstate.assign"===e.type){i=!0;var t=Object.assign({},r);return"function"==typeof e.assignment?t=e.assignment(r,n):Object.keys(e.assignment).forEach((function(i){t[i]="function"==typeof e.assignment[i]?e.assignment[i](r,n):e.assignment[i]})),r=t,!1}return!0})),r,i]}function Pl(e,t){void 0===t&&(t={});var n=kl(jl(Ml(e.states[e.initial].entry).map((function(e){return Al(e,t.actions)})),e.context,Il),2),r=n[0],i=n[1],o={config:e,_options:t,initialState:{value:e.initial,actions:r,context:i,matches:Ol(e.initial)},transition:function(t,n){var r,i,s="string"==typeof t?{value:t,context:e.context}:t,a=s.value,l=s.context,c=zl(n),u=e.states[a];if(u.on){var d=Ml(u.on[c.type]);try{for(var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),p=h.next();!p.done;p=h.next()){var m=p.value;if(void 0===m)return Dl(a,l);var f="string"==typeof m?{target:m}:m,g=f.target,v=f.actions,b=void 0===v?[]:v,y=f.cond,w=void 0===y?function(){return!0}:y,x=void 0===g,C=null!=g?g:a,_=e.states[C];if(w(l,c)){var E=kl(jl((x?Ml(b):[].concat(u.exit,b,_.entry).filter((function(e){return e}))).map((function(e){return Al(e,o._options.actions)})),l,c),3),S=E[0],k=E[1],N=E[2],R=null!=g?g:a;return{value:R,context:k,actions:S,changed:g!==a||S.length>0||N,matches:Ol(R)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}return Dl(a,l)}};return o}var Ll=function(e,t){return e.actions.forEach((function(n){var r=n.exec;return r&&r(e.context,t)}))};function Fl(e){var t=e.initialState,n=Nl.NotStarted,r=new Set,i={_machine:e,send:function(i){n===Nl.Running&&(t=e.transition(t,i),Ll(t,zl(i)),r.forEach((function(e){return e(t)})))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var o="object"==typeof r?r:{context:e.config.context,value:r};t={value:o.value,actions:[],context:o.context,matches:Ol(o.value)}}return n=Nl.Running,Ll(t,Il),i},stop:function(){return n=Nl.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function Bl(e,{getCastFn:t,applyEventsSynchronously:n,emitter:r}){return Fl(Pl({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Tl({lastPlayedEvent:(e,t)=>"CAST_EVENT"===t.type?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:Tl(((e,t)=>{let n=e.timeOffset;return"payload"in t&&"timeOffset"in t.payload&&(n=t.payload.timeOffset),{...e,timeOffset:n,baselineTime:e.events[0].timestamp+n}})),play(e){var i;const{timer:o,events:s,baselineTime:a,lastPlayedEvent:l}=e;o.clear();for(const e of s)Sl(e,a);const c=function(e,t){for(let n=e.length-1;n>=0;n--){const r=e[n];if(r.type===cl.Meta&&r.timestamp<=t)return e.slice(n)}return e}(s,a);let u=null==l?void 0:l.timestamp;(null==l?void 0:l.type)===cl.IncrementalSnapshot&&l.data.source===ul.MouseMove&&(u=l.timestamp+(null==(i=l.data.positions[0])?void 0:i.timeOffset)),a<(u||0)&&r.emit(ml.PlayBack);const d=new Array;for(const e of c)if(!(u&&u<a&&(e.timestamp<=u||e===l)))if(e.timestamp<a)d.push(e);else{const n=t(e,!1);o.addAction({doAction:()=>{n()},delay:e.delay})}n(d),r.emit(ml.Flush),o.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:Tl((e=>({...e,lastPlayedEvent:null}))),startLive:Tl({baselineTime:(e,t)=>(e.timer.start(),"TO_LIVE"===t.type&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:Tl(((e,n)=>{const{baselineTime:r,timer:i,events:o}=e;if("ADD_EVENT"===n.type){const{event:e}=n.payload;Sl(e,r);let s=o.length-1;if(!o[s]||o[s].timestamp<=e.timestamp)o.push(e);else{let t=-1,n=0;for(;n<=s;){const t=Math.floor((n+s)/2);o[t].timestamp<=e.timestamp?n=t+1:s=t-1}-1===t&&(t=n),o.splice(t,0,e)}const a=e.timestamp<r,l=t(e,a);a?l():i.isActive()&&i.addAction({doAction:()=>{l()},delay:e.delay})}return{...e,events:o}}))}}))}const Ul=new Map;function Wl(e,t){let n=Ul.get(e);return n||(n=new Map,Ul.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function Vl(e,t,n){return async r=>{if(r&&"object"==typeof r&&"rr_type"in r){if(n&&(n.isUnchanged=!1),"ImageBitmap"===r.rr_type&&"args"in r){const i=await Vl(e,t,n)(r.args);return await createImageBitmap.apply(null,i)}if("index"in r){if(n||null===t)return r;const{rr_type:e,index:i}=r;return Wl(t,e)[i]}if("args"in r){const{rr_type:i,args:o}=r;return new(0,window[i])(...await Promise.all(o.map(Vl(e,t,n))))}if("base64"in r)return yl(r.base64);if("src"in r){const t=e.get(r.src);if(t)return t;{const t=new Image;return t.src=r.src,e.set(r.src,t),t}}if("data"in r&&"Blob"===r.rr_type){const i=await Promise.all(r.data.map(Vl(e,t,n)));return new Blob(i,{type:r.type})}}else if(Array.isArray(r)){return await Promise.all(r.map(Vl(e,t,n)))}return r}}const Hl=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];async function Gl({mutation:e,target:t,type:n,imageMap:r,errorHandler:i}){try{const i=function(e,t){try{return t===hl.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch(e){return null}}(t,n);if(!i)return;if(e.setter)return void(i[e.property]=e.args[0]);const o=i[e.property],s=await Promise.all(e.args.map(Vl(r,i)));!function(e,t){if(!(null==t?void 0:t.constructor))return;const{name:n}=t.constructor;if(!Hl.includes(n))return;const r=Wl(e,n);r.includes(t)||r.push(t)}(i,o.apply(i,s))}catch(t){i(e,t)}}async function ql({event:e,mutation:t,target:n,imageMap:r,canvasEventMap:i,errorHandler:o}){try{const s=i.get(e)||t,a="commands"in s?s.commands:[s];if([hl.WebGL,hl.WebGL2].includes(t.type)){for(let e=0;e<a.length;e++){const i=a[e];await Gl({mutation:i,type:t.type,target:n,imageMap:r,errorHandler:o})}return}await async function({event:e,mutations:t,target:n,imageMap:r,errorHandler:i}){const o=n.getContext("2d");if(!o)return void i(t[0],new Error("Canvas context is null"));const s=t.map((async e=>Promise.all(e.args.map(Vl(r,o)))));(await Promise.all(s)).forEach(((n,s)=>{const a=t[s];try{if(a.setter)return void(o[a.property]=a.args[0]);const t=o[a.property];"drawImage"===a.property&&"string"==typeof a.args[0]?(r.get(e),t.apply(o,a.args)):t.apply(o,n)}catch(e){i(a,e)}}))}({event:e,mutations:a,target:n,imageMap:r,errorHandler:o})}catch(e){o(t,e)}}class Yl{constructor(e){o(this,"mediaMap",new Map),o(this,"warn"),o(this,"service"),o(this,"speedService"),o(this,"emitter"),o(this,"getCurrentTime"),o(this,"metadataCallbackMap",new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(ml.Start,this.start.bind(this)),this.emitter.on(ml.SkipStart,this.start.bind(this)),this.emitter.on(ml.Pause,this.pause.bind(this)),this.emitter.on(ml.Finish,this.pause.bind(this)),this.speedService.subscribe((()=>{this.syncAllMediaElements()}))}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach(((t,n)=>{this.syncTargetWithState(n),e.pause&&n.pause()}))}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:n}){if(n.isPlaying){const r=(e-n.lastInteractionTimeOffset)/1e3*n.playbackRate,i="duration"in t&&t.duration;if(Number.isNaN(i))return void this.waitForMetadata(t);let o=n.currentTimeAtLastInteraction+r;t.loop&&!1!==i&&(o%=i),t.currentTime=o}else t.pause(),t.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e))return;if(!("addEventListener"in e))return;const t=()=>{this.metadataCallbackMap.delete(e);const t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener("loadedmetadata",t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:n}){const r=this.mediaMap.get(e),{type:i,playbackRate:o,currentTime:s,muted:a,volume:l,loop:c}=n;return{isPlaying:i===pl.Play||i!==pl.Pause&&((null==r?void 0:r.isPlaying)||null!==e.getAttribute("autoplay")),currentTimeAtLastInteraction:s??(null==r?void 0:r.currentTimeAtLastInteraction)??0,lastInteractionTimeOffset:t,playbackRate:o??(null==r?void 0:r.playbackRate)??1,volume:l??(null==r?void 0:r.volume)??1,muted:a??(null==r?void 0:r.muted)??null===e.getAttribute("muted"),loop:c??(null==r?void 0:r.loop)??null===e.getAttribute("loop")}}syncTargetWithState(e){const t=this.mediaMap.get(e);if(!t)return;const{muted:n,loop:r,volume:i,isPlaying:o}=t,s=this.service.state.matches("paused"),a=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==i&&(e.volume=i),e.muted=n,e.loop=r,e.playbackRate!==a&&(e.playbackRate=a),o&&!s?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,n){if(!["AUDIO","VIDEO"].includes(e.nodeName))return;const r=e,i=n.getMeta(r);if(!i||!("attributes"in i))return;const o=this.service.state.matches("paused"),s=i.attributes;let a=!1;a=s.rr_mediaState?"played"===s.rr_mediaState:null!==r.getAttribute("autoplay"),a&&o&&r.pause();let l=1;"number"==typeof s.rr_mediaPlaybackRate&&(l=s.rr_mediaPlaybackRate);let c=!1;c="boolean"==typeof s.rr_mediaMuted?s.rr_mediaMuted:null!==r.getAttribute("muted");let u=!1;u="boolean"==typeof s.rr_mediaLoop?s.rr_mediaLoop:null!==r.getAttribute("loop");let d=1;"number"==typeof s.rr_mediaVolume&&(d=s.rr_mediaVolume);let h=0;"number"==typeof s.rr_mediaCurrentTime&&(h=s.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:a,currentTimeAtLastInteraction:h,lastInteractionTimeOffset:t,playbackRate:l,volume:d,muted:c,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:n}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:n})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return["AUDIO","VIDEO"].includes(e.nodeName)}reset(){this.mediaMap.clear()}}function Zl(e,t){if("DIALOG"!==e.nodeName||e instanceof sa)return;const n=e,r=n.open,i=r&&n.matches("dialog:modal"),o=n.getAttribute("rr_open_mode"),s="string"==typeof(null==t?void 0:t.attributes.open)||"string"==typeof n.getAttribute("open"),a="modal"===o;r&&!(i&&"non-modal"===o||!i&&a)||(n.isConnected?(r&&n.close(),s&&(a?n.showModal():n.show())):console.warn("dialog is not attached to the dom",n))}function Kl(e,t){if("DIALOG"!==e.nodeName||e instanceof sa)return;const n=e;n.isConnected?null===t.attributes.open&&(n.removeAttribute("open"),n.removeAttribute("rr_open_mode")):console.warn("dialog is not attached to the dom",n)}const $l=xl||Cl,Xl="[replayer]",Jl={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Ql(e){return e.type==cl.IncrementalSnapshot&&(e.data.source==ul.TouchMove||e.data.source==ul.MouseInteraction&&e.data.type==dl.TouchStart)}class ec{constructor(e,t){if(o(this,"wrapper"),o(this,"iframe"),o(this,"service"),o(this,"speedService"),o(this,"config"),o(this,"usingVirtualDom",!1),o(this,"virtualDom",new Ra),o(this,"mouse"),o(this,"mouseTail",null),o(this,"tailPositions",[]),o(this,"emitter",$l()),o(this,"nextUserInteractionEvent"),o(this,"legacy_missingNodeRetryMap",{}),o(this,"cache",rr()),o(this,"imageMap",new Map),o(this,"canvasEventMap",new Map),o(this,"mirror",d()),o(this,"styleMirror",new ll),o(this,"mediaManager"),o(this,"firstFullSnapshot",null),o(this,"newDocumentQueue",[]),o(this,"mousePos",null),o(this,"touchActive",null),o(this,"lastMouseDownEvent",null),o(this,"lastHoveredRootNode"),o(this,"lastSelectionData",null),o(this,"constructedStyleMutations",[]),o(this,"adoptedStyleSheets",[]),o(this,"handleResize",(e=>{this.iframe.style.display="inherit";for(const t of[this.mouseTail,this.iframe])t&&(t.setAttribute("width",String(e.width)),t.setAttribute("height",String(e.height)))})),o(this,"applyEventsSynchronously",(e=>{for(const t of e){switch(t.type){case cl.DomContentLoaded:case cl.Load:case cl.Custom:continue;case cl.FullSnapshot:case cl.Meta:case cl.Plugin:case cl.IncrementalSnapshot:}this.getCastFn(t,!0)()}})),o(this,"getCastFn",((e,t=!1)=>{let n;switch(e.type){case cl.DomContentLoaded:case cl.Load:break;case cl.Custom:n=()=>{this.emitter.emit(ml.CustomEvent,e)};break;case cl.Meta:n=()=>this.emitter.emit(ml.Resize,{width:e.data.width,height:e.data.height});break;case cl.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e)return void(this.firstFullSnapshot=!0)}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),null==(n=this.iframe.contentWindow)||n.scrollTo(e.data.initialOffset)};break;case cl.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(const t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){const t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/5e3),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:n}),this.emitter.emit(ml.SkipStart,n)}}}}return()=>{n&&n();for(const n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:e}});const r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){const t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(ml.Finish))};let n=50;e.type===cl.IncrementalSnapshot&&e.data.source===ul.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(ml.EventCast,e)}})),!(null==t?void 0:t.liveMode)&&e.length<2)throw new Error("Replayer need at least 2 events.");const n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Jl,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(ml.Resize,this.handleResize),this.setupDom();for(const e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(ml.Flush,(()=>{if(this.usingVirtualDom){const e={mirror:this.mirror,applyCanvas:(e,t,n)=>{ql({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===ul.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===ul.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{_a(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){console.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(const t in this.legacy_missingNodeRetryMap)try{const n=this.legacy_missingNodeRetryMap[t],r=Sa(n.node,this.mirror,this.virtualDom.mirror);_a(r,n.node,e,this.virtualDom.mirror),n.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach((e=>{this.applyStyleSheetMutation(e)})),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach((e=>{this.applyAdoptedStyleSheet(e)})),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),!0===this.touchActive?this.mouse.classList.add("touch-active"):!1===this.touchActive&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){const[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)})),this.emitter.on(ml.PlayBack,(()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()}));const r=new El([],{speed:this.config.speed});this.service=Bl({events:e.map((e=>t&&t.unpackFn?t.unpackFn(e):e)).sort(((e,t)=>e.timestamp-t.timestamp)),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe((e=>{this.emitter.emit(ml.StateChange,{player:e})})),this.speedService=Fl(Pl({id:"speed",context:{normalSpeed:-1,timer:r},initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(e,t)=>{"payload"in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:Tl({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}})),this.speedService.start(),this.speedService.subscribe((e=>{this.emitter.emit(ml.StateChange,{speed:e})})),this.mediaManager=new Yl({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});const i=this.service.state.context.events.find((e=>e.type===cl.Meta)),s=this.service.state.context.events.find((e=>e.type===cl.FullSnapshot));if(i){const{width:e,height:t}=i.data;setTimeout((()=>{this.emitter.emit(ml.Resize,{width:e,height:t})}),0)}s&&setTimeout((()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),null==(e=this.iframe.contentWindow)||e.scrollTo(s.data.initialOffset))}),1),this.service.state.context.events.find(Ql)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach((t=>{e[t],this.config[t]=e[t]})),this.config.skipInactive||this.backToNormal(),void 0!==e.speed&&this.speedService.send({type:"SET_SPEED",payload:{speed:e.speed}}),void 0!==e.mouseTail&&(!1===e.mouseTail?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){const e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){const{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t,n;this.service.state.matches("paused")||this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:e}}),null==(n=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||n.classList.remove("rrweb-paused"),this.emitter.emit(ml.Start)}pause(e){var t,n;void 0===e&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),"number"==typeof e&&(this.play(e),this.service.send({type:"PAUSE"})),null==(n=null==(t=this.iframe.contentDocument)?void 0:t.getElementsByTagName("html")[0])||n.classList.add("rrweb-paused"),this.emitter.emit(ml.Pause)}resume(e=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(e),this.emitter.emit(ml.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ml.Destroy)}startLive(e){this.service.send({type:"TO_LIVE",payload:{baselineTime:e}})}addEvent(e){const t=this.config.unpackFn?this.config.unpackFn(e):e;Ql(t)&&this.mouse.classList.add("touch-device"),Promise.resolve().then((()=>this.service.send({type:"ADD_EVENT",payload:{event:t}})))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=rr()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),!1!==this.config.mouseTail&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.iframe=document.createElement("iframe");const e=["allow-same-origin"];this.config.UNSAFE_replayCanvas&&e.push("allow-scripts"),this.iframe.style.display="none",this.iframe.setAttribute("sandbox",e.join(" ")),this.disableInteract(),this.wrapper.appendChild(this.iframe),this.iframe.contentWindow&&this.iframe.contentDocument&&(_l(this.iframe.contentWindow,this.iframe.contentDocument),function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};const n=[],r=new Set,i=(t,i)=>{if("DIALOG"===t.nodeName&&r.add(t),this.collectIframeAndAttachDocument(n,t),this.mediaManager.isSupportedMediaElement(t)){const{events:n}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-n[0].timestamp,this.mirror)}for(const e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:i,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),ar(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror}),i(this.iframe.contentDocument,e.data.node.id);for(const{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));const{documentElement:o,head:s}=this.iframe.contentDocument;this.insertStyleRules(o,s),r.forEach((e=>Zl(e))),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ml.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;const r=(i=this.config.blockClass,[`.${i} { background: currentColor }`,"noscript { display: none !important; }"]).concat(this.config.insertStyleRules);var i;if(this.config.pauseAnimation&&r.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),r.length)if(this.usingVirtualDom){const n=this.virtualDom.createElement("style");this.virtualDom.mirror.add(n,Wa(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:ul.StyleSheetRule,adds:r.map(((e,t)=>({rule:e,index:t})))})}else{const i=document.createElement("style");e.insertBefore(i,t);for(let e=0;e<r.length;e++)null==(n=i.sheet)||n.insertRule(r[e],e)}}attachDocumentToIframe(e,t){const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],i=new Set,o=(e,o)=>{"DIALOG"===e.nodeName&&i.add(e),this.collectIframeAndAttachDocument(r,e);const s=n.getMeta(e);if((null==s?void 0:s.type)===fl.Element&&"HTML"===(null==s?void 0:s.tagName.toUpperCase())){const{documentElement:e,head:n}=t.contentDocument;this.insertStyleRules(e,n)}if(!this.usingVirtualDom)for(const t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:o,replayer:this})};sr(e.node,{doc:t.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:o,cache:this.cache}),o(t.contentDocument,e.node.id);for(const{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter((t=>t!==e));i.forEach((e=>Zl(e)))}collectIframeAndAttachDocument(e,t){if(rl(t,this.mirror)){const n=this.newDocumentQueue.find((e=>e.parentId===this.mirror.getId(t)));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){var e;const t=null==(e=this.iframe.contentDocument)?void 0:e.head;if(t){const e=new Set;let n,r=this.service.state;const i=()=>{r=this.service.state};this.emitter.on(ml.Start,i),this.emitter.on(ml.Pause,i);const o=()=>{this.emitter.off(ml.Start,i),this.emitter.off(ml.Pause,i)};t.querySelectorAll('link[rel="stylesheet"]').forEach((t=>{t.sheet||(e.add(t),t.addEventListener("load",(()=>{e.delete(t),0===e.size&&-1!==n&&(r.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ml.LoadStylesheetEnd),n&&clearTimeout(n),o())})))})),e.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ml.LoadStylesheetStart),n=setTimeout((()=>{r.matches("playing")&&this.play(this.getCurrentTime()),n=-1,o()}),this.config.loadTimeout))}}async preloadAllImages(){const e=[];for(const t of this.service.state.context.events)if(t.type===cl.IncrementalSnapshot&&t.data.source===ul.CanvasMutation){e.push(this.deserializeAndPreloadCanvasEvents(t.data,t));("commands"in t.data?t.data.commands:[t.data]).forEach((e=>{this.preloadImages(e,t)}))}return Promise.all(e)}preloadImages(e,t){if("drawImage"===e.property&&"string"==typeof e.args[0]&&!this.imageMap.has(t)){const e=document.createElement("canvas"),t=e.getContext("2d"),n=null==t?void 0:t.createImageData(e.width,e.height);null==t||t.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){const n={isUnchanged:!0};if("commands"in e){const r=await Promise.all(e.commands.map((async e=>{const t=await Promise.all(e.args.map(Vl(this.imageMap,null,n)));return{...e,args:t}})));!1===n.isUnchanged&&this.canvasEventMap.set(t,{...e,commands:r})}else{const r=await Promise.all(e.args.map(Vl(this.imageMap,null,n)));!1===n.isUnchanged&&this.canvasEventMap.set(t,{...e,args:r})}}}applyIncremental(e,t){var n,r,i;const{data:o}=e;switch(o.source){case ul.Mutation:try{this.applyMutation(o,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,o)}break;case ul.Drag:case ul.TouchMove:case ul.MouseMove:if(t){const e=o.positions[o.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:o}}else o.positions.forEach((n=>{const r={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,o)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)})),this.timer.addAction({doAction(){},delay:e.delay-(null==(n=o.positions[0])?void 0:n.timeOffset)});break;case ul.MouseInteraction:{if(-1===o.id)break;const e=new Event(dl[o.type].toLowerCase()),n=this.mirror.getNode(o.id);if(!n)return this.debugNodeNotFound(o,o.id);this.emitter.emit(ml.MouseInteraction,{type:o.type,target:n});const{triggerFocus:r}=this.config;switch(o.type){case dl.Blur:"blur"in n&&n.blur();break;case dl.Focus:r&&n.focus&&n.focus({preventScroll:!0});break;case dl.Click:case dl.TouchStart:case dl.TouchEnd:case dl.MouseDown:case dl.MouseUp:t?(o.type===dl.TouchStart?this.touchActive=!0:o.type===dl.TouchEnd&&(this.touchActive=!1),o.type===dl.MouseDown?this.lastMouseDownEvent=[n,e]:o.type===dl.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:o.x||0,y:o.y||0,id:o.id,debugData:o}):(o.type===dl.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(o.x||0,o.y||0,o.id,t,o),o.type===dl.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):o.type===dl.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):o.type===dl.TouchEnd?this.mouse.classList.remove("touch-active"):n.dispatchEvent(e));break;case dl.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:n.dispatchEvent(e)}break}case ul.Scroll:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.scrollData=o;break}this.applyScroll(o,t);break;case ul.ViewportResize:this.emitter.emit(ml.Resize,{width:o.width,height:o.height});break;case ul.Input:if(-1===o.id)break;if(this.usingVirtualDom){const e=this.virtualDom.mirror.getNode(o.id);if(!e)return this.debugNodeNotFound(o,o.id);e.inputData=o;break}this.applyInput(o);break;case ul.MediaInteraction:{const t=this.usingVirtualDom?this.virtualDom.mirror.getNode(o.id):this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);const n=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:n,timeOffset:e.timestamp-r[0].timestamp,mutation:o});break}case ul.StyleSheetRule:case ul.StyleDeclaration:this.usingVirtualDom?o.styleId?this.constructedStyleMutations.push(o):o.id&&(null==(r=this.virtualDom.mirror.getNode(o.id))||r.rules.push(o)):this.applyStyleSheetMutation(o);break;case ul.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){const t=this.virtualDom.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);t.canvasMutations.push({event:e,mutation:o})}else{const t=this.mirror.getNode(o.id);if(!t)return this.debugNodeNotFound(o,o.id);ql({event:e,mutation:o,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case ul.Font:try{const e=new FontFace(o.family,o.buffer?new Uint8Array(JSON.parse(o.fontSource)):o.fontSource,o.descriptors);null==(i=this.iframe.contentDocument)||i.fonts.add(e)}catch(e){this.warn(e)}break;case ul.Selection:if(t){this.lastSelectionData=o;break}this.applySelection(o);break;case ul.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(o):this.applyAdoptedStyleSheet(o)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,Ba(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(const e in this.legacy_missingNodeRetryMap)try{const t=this.legacy_missingNodeRetryMap[e],n=Fa(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}const n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter((t=>!!n.getNode(t.id)||(this.warnNodeNotFound(e,t.id),!1))),e.removes.forEach((t=>{var r;const i=n.getNode(t.id);if(!i)return;let o=n.getNode(t.parentId);if(!o)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&ol(o)&&(o=o.shadowRoot),n.removeNodeFromMap(i),o)try{o.removeChild(i),this.usingVirtualDom&&"#text"===i.nodeName&&"STYLE"===o.nodeName&&(null==(r=o.rules)?void 0:r.length)>0&&(o.rules=[])}catch(t){if(!(t instanceof DOMException))throw t;this.warn("parent could not remove child in mutation",o,i,e)}}));const r={...this.legacy_missingNodeRetryMap},i=[],o=e=>{var t,o;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let s=n.getNode(e.parentId);if(!s)return e.node.type===fl.Document?this.newDocumentQueue.push(e):i.push(e);e.node.isShadow&&(ol(s)||s.attachShadow({mode:"open"}),s=s.shadowRoot);let a=null,l=null;if(e.previousId&&(a=n.getNode(e.previousId)),e.nextId&&(l=n.getNode(e.nextId)),(e=>{let t=null;return e.nextId&&(t=n.getNode(e.nextId)),null!==e.nextId&&void 0!==e.nextId&&-1!==e.nextId&&!t})(e))return i.push(e);if(e.node.rootId&&!n.getNode(e.node.rootId))return;const c=e.node.rootId?n.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(rl(s,n))return void this.attachDocumentToIframe(e,s);const u=(e,t)=>{if(!this.usingVirtualDom){Zl(e);for(const n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}},d=sr(e.node,{doc:c,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:u});if(-1===e.previousId||-1===e.nextId)return void(r[e.node.id]={node:d,mutation:e});const h=n.getMeta(s);if(h&&h.type===fl.Element&&e.node.type===fl.Text){const e=Array.isArray(s.childNodes)?s.childNodes:Array.from(s.childNodes);if("textarea"===h.tagName)for(const t of e)t.nodeType===s.TEXT_NODE&&s.removeChild(t);else if("style"===h.tagName&&1===e.length)for(const t of e)t.nodeType!==s.TEXT_NODE||n.hasNode(t)||(d.textContent=t.textContent,s.removeChild(t))}else if((null==h?void 0:h.type)===fl.Document){const n=s;e.node.type===fl.DocumentType&&(null==(t=n.childNodes[0])?void 0:t.nodeType)===Node.DOCUMENT_TYPE_NODE&&n.removeChild(n.childNodes[0]),"HTML"===d.nodeName&&n.documentElement&&n.removeChild(n.documentElement)}if(a&&a.nextSibling&&a.nextSibling.parentNode?s.insertBefore(d,a.nextSibling):l&&l.parentNode?s.contains(l)?s.insertBefore(d,l):s.insertBefore(d,null):s.appendChild(d),u(d,e.node.id),this.usingVirtualDom&&"#text"===d.nodeName&&"STYLE"===s.nodeName&&(null==(o=s.rules)?void 0:o.length)>0&&(s.rules=[]),rl(d,this.mirror)){const e=this.mirror.getId(d),t=this.newDocumentQueue.find((t=>t.parentId===e));t&&(this.attachDocumentToIframe(t,d),this.newDocumentQueue=this.newDocumentQueue.filter((e=>e!==t)))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,s,d,e)};e.adds.forEach((e=>{o(e)}));const s=Date.now();for(;i.length;){const e=tl(i);if(i.length=0,Date.now()-s>500){this.warn("Timeout in the loop, please check the resolve tree data:",e);break}for(const t of e){n.getNode(t.value.parentId)?nl(t,(e=>{o(e)})):this.debug("Drop resolve tree since there is no parent for the root node.",t)}}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),function(e){const t=new Set,n=[];for(let r=e.length;r--;){const i=e[r];t.has(i.id)||(n.push(i),t.add(i.id))}return n}(e.texts).forEach((t=>{var r;const i=n.getNode(t.id);if(!i){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}const o=i.parentElement;if(t.value&&o&&"STYLE"===o.tagName?i.textContent=nr(t.value,this.cache):i.textContent=t.value,this.usingVirtualDom){const e=i.parentNode;(null==(r=null==e?void 0:e.rules)?void 0:r.length)>0&&(e.rules=[])}})),e.attributes.forEach((t=>{var r;const i=n.getNode(t.id);if(!i){if(e.removes.find((e=>e.id===t.id)))return;return this.warnNodeNotFound(e,t.id)}for(const e in t.attributes)if("string"==typeof e){const o=t.attributes[e];if(null===o)i.removeAttribute(e),"open"===e&&Kl(i,t);else if("string"==typeof o)try{if("_cssText"===e&&("LINK"===i.nodeName||"STYLE"===i.nodeName))try{const e=n.getMeta(i);Object.assign(e.attributes,t.attributes);const r=sr(e,{doc:i.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache}),o=i.nextSibling,s=i.parentNode;if(r&&s){s.removeChild(i),s.insertBefore(r,o),n.replace(t.id,r);break}}catch(e){}if("value"===e&&"TEXTAREA"===i.nodeName){const e=i;e.childNodes.forEach((t=>e.removeChild(t)));const t=null==(r=i.ownerDocument)?void 0:r.createTextNode(o);t&&e.appendChild(t)}else i.setAttribute(e,o);"rr_open_mode"===e&&"DIALOG"===i.nodeName&&Zl(i,t)}catch(e){this.warn("An error occurred may due to the checkout feature.",e)}else if("style"===e){const e=o,t=i;for(const n in e)if(!1===e[n])t.style.removeProperty(n);else if(e[n]instanceof Array){const r=e[n];t.style.setProperty(n,r[0],r[1])}else{const r=e[n];t.style.setProperty(n,r)}}}}))}applyScroll(e,t){var n,r;const i=this.mirror.getNode(e.id);if(!i)return this.debugNodeNotFound(e,e.id);const o=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)null==(n=this.iframe.contentWindow)||n.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else if((null==o?void 0:o.type)===fl.Document)null==(r=i.defaultView)||r.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"});else try{i.scrollTo({top:e.y,left:e.x,behavior:t?"auto":"smooth"})}catch(e){}}applyInput(e){const t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch(e){}}applySelection(e){try{const t=new Set,n=e.ranges.map((({start:e,startOffset:n,end:r,endOffset:i})=>{const o=this.mirror.getNode(e),s=this.mirror.getNode(r);if(!o||!s)return;const a=new Range;a.setStart(o,n),a.setEnd(s,i);const l=o.ownerDocument,c=null==l?void 0:l.getSelection();return c&&t.add(c),{range:a,selection:c}}));t.forEach((e=>e.removeAllRanges())),n.forEach((e=>{var t;return e&&(null==(t=e.selection)?void 0:t.addRange(e.range))}))}catch(e){}}applyStyleSheetMutation(e){var t;let n=null;e.styleId?n=this.styleMirror.getStyle(e.styleId):e.id&&(n=(null==(t=this.mirror.getNode(e.id))?void 0:t.sheet)||null),n&&(e.source===ul.StyleSheetRule?this.applyStyleSheetRule(e,n):e.source===ul.StyleDeclaration&&this.applyStyleDeclaration(e,n))}applyStyleSheetRule(e,t){var n,r,i,o;if(null==(n=e.adds)||n.forEach((({rule:e,index:n})=>{try{if(Array.isArray(n)){const{positions:r,index:i}=al(n);sl(t.cssRules,r).insertRule(e,i)}else{const r=void 0===n?void 0:Math.min(n,t.cssRules.length);null==t||t.insertRule(e,r)}}catch(e){}})),null==(r=e.removes)||r.forEach((({index:e})=>{try{if(Array.isArray(e)){const{positions:n,index:r}=al(e);sl(t.cssRules,n).deleteRule(r||0)}else null==t||t.deleteRule(e)}catch(e){}})),e.replace)try{null==(i=t.replace)||i.call(t,e.replace)}catch(e){}if(e.replaceSync)try{null==(o=t.replaceSync)||o.call(t,e.replaceSync)}catch(e){}}applyStyleDeclaration(e,t){if(e.set){sl(t.rules,e.index).style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){sl(t.rules,e.index).style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;const n=this.mirror.getNode(e.id);if(!n)return;null==(t=e.styles)||t.forEach((e=>{var t;let r=null,i=null;if(ol(n)?i=(null==(t=n.ownerDocument)?void 0:t.defaultView)||null:"#document"===n.nodeName&&(i=n.defaultView),i)try{r=new i.CSSStyleSheet,this.styleMirror.add(r,e.styleId),this.applyStyleSheetRule({source:ul.StyleSheetRule,adds:e.rules},r)}catch(e){}}));let r=0;const i=(e,t)=>{const n=t.map((e=>this.styleMirror.getStyle(e))).filter((e=>null!==e));ol(e)?e.shadowRoot.adoptedStyleSheets=n:"#document"===e.nodeName&&(e.adoptedStyleSheets=n),n.length!==t.length&&r<10&&(setTimeout((()=>i(e,t)),0+100*r),r++)};i(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,r){const{previousId:i,nextId:o}=r,s=i&&e[i],a=o&&e[o];if(s){const{node:r,mutation:i}=s;t.insertBefore(r,n),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}if(a){const{node:r,mutation:i}=a;t.insertBefore(r,n.nextSibling),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}}moveAndHover(e,t,n,r,i){const o=this.mirror.getNode(n);if(!o)return this.debugNodeNotFound(i,n);const s=il(o,this.iframe),a=e*s.absoluteScale+s.x,l=t*s.absoluteScale+s.y;this.mouse.style.left=`${a}px`,this.mouse.style.top=`${l}px`,r||this.drawMouseTail({x:a,y:l}),this.hoverElements(o)}drawMouseTail(e){if(!this.mouseTail)return;const{lineCap:t,lineWidth:n,strokeStyle:r,duration:i}=!0===this.config.mouseTail?Jl:Object.assign({},Jl,this.config.mouseTail),o=()=>{if(!this.mouseTail)return;const e=this.mouseTail.getContext("2d");e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach((t=>e.lineTo(t.x,t.y))),e.stroke())};this.tailPositions.push(e),o(),setTimeout((()=>{this.tailPositions=this.tailPositions.filter((t=>t!==e)),o()}),i/this.speedService.state.context.timer.speed)}hoverElements(e){var t;null==(t=this.lastHoveredRootNode||this.iframe.contentDocument)||t.querySelectorAll(".\\:hover").forEach((e=>{e.classList.remove(":hover")})),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(e){return e.type===cl.IncrementalSnapshot&&(e.data.source>ul.Mutation&&e.data.source<=ul.Input)}backToNormal(){this.nextUserInteractionEvent=null,this.speedService.state.matches("normal")||(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ml.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn("Has error on canvas update",t,"canvas mutation:",e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(Xl,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(Xl,...e)}}},94927:(e,t,n)=>{"use strict";n.d(t,{MG:()=>x});var r=n(2784),i=n(28316);function o(e,t,n){let r,i=n.initialDeps??[];function o(){var o,s,a,l;let c;n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now());const u=e();if(!(u.length!==i.length||u.some(((e,t)=>i[t]!==e))))return r;let d;if(i=u,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(d=Date.now()),r=t(...u),n.key&&(null==(a=n.debug)?void 0:a.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-d))/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${i(t,5)} /${i(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}return o.updateDeps=e=>{i=e},o}function s(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const a=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,i)),n)}},l=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},c=e=>e,u=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},d=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(l(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver((t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(l(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()}));return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},h={passive:!0},p="undefined"==typeof window||"onscrollend"in window,m=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&p?()=>{}:a(r,(()=>{t(i,!1)}),e.options.isScrollingResetDelay),s=r=>()=>{const{horizontal:s,isRtl:a}=e.options;i=s?n.scrollLeft*(a?-1:1):n.scrollTop,o(),t(i,r)},l=s(!0),c=s(!1);c(),n.addEventListener("scroll",l,h);const u=e.options.useScrollendEvent&&p;return u&&n.addEventListener("scrollend",c,h),()=>{n.removeEventListener("scroll",l),u&&n.removeEventListener("scrollend",c)}},f=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},g=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const s=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:s,behavior:n})};class v{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()}))})):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:c,rangeExtractor:u,onChange:()=>{},measureElement:f,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=o((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach((e=>{this.observer.observe(e)})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=o((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,i)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i})),{key:!1}),this.getMeasurements=o((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const s=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const a=this.measurementsCache.slice(0,s);for(let i=s;i<e;i++){const e=r(i),s=1===this.options.lanes?a[i-1]:this.getFurthestMeasurement(a,i),l=s?s.end+this.options.gap:t+n,c=o.get(e),u="number"==typeof c?c:this.options.estimateSize(i),d=l+u,h=s?s.lane:i%this.options.lanes;a[i]={index:i,start:l,size:u,end:d,key:e,lane:h}}return this.measurementsCache=a,a}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=o((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes]),((e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let s=b(0,i,o,n),a=s;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const o=Array(r).fill(0);for(;a<i&&o.some((e=>e<n+t));){const t=e[a];o[t.lane]=t.end,a++}const l=Array(r).fill(n+t);for(;s>=0&&l.some((e=>e>=n));){const t=e[s];l[t.lane]=t.start,s--}s=Math.max(0,s-s%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:s,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=o((()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]}),((e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const i=r.key,o=this.elementsCache.get(i);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=o((()=>[this.getVirtualIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,i=e.length;r<i;r++){const i=t[e[r]];n.push(i)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return s(t[b(0,t.length-1,(e=>s(t[e]).start),e)])},this.getOffsetForAlignment=(e,t,n=0)=>{const r=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const o=this.getTotalSize()-r;return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),i=this.getScrollOffset();if("auto"===t)if(n.end>=i+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=i+this.options.scrollPaddingStart))return[i,t];t="start"}const o="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(e,t);if(!r)return;const[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[i]=s(this.getOffsetForIndex(e,o)),a=this.getScrollOffset();t=i,r=a,Math.abs(t-r)<=1||this.scrollToIndex(e,{align:o,behavior:n})}else this.scrollToIndex(e,{align:o,behavior:n});var t,r})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes)n=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some((e=>null===e));){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter((e=>null!==e)))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const b=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else{if(!(o>r))return i;t=i-1}}return e>0?e-1:0};const y="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function w(e){const t=r.useReducer((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var o;r?(0,i.flushSync)(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[o]=r.useState((()=>new v(n)));return o.setOptions(n),y((()=>o._didMount()),[]),y((()=>o._willUpdate())),o}function x(e){return w({observeElementRect:d,observeElementOffset:m,scrollToFn:g,...e})}}}]);