(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[31953],{751590:t=>{t.exports={container:"container-_IpHZ5G6",top:"top-_IpHZ5G6"}},722854:t=>{t.exports={wrap:"wrap-RL9WuuG0",list:"list-RL9WuuG0",item:"item-RL9WuuG0",selected:"selected-RL9WuuG0",bluishItem:"bluishItem-RL9WuuG0",noPadding:"noPadding-RL9WuuG0"}},581692:t=>{t.exports={list:"list-rR7oUpL2",item:"item-rR7oUpL2"}},34221:t=>{t.exports={}},589578:t=>{t.exports={}},786007:t=>{t.exports={wrapper:"wrapper-NSBB5lqy",touch:"touch-NSBB5lqy"}},83436:(t,e,i)=>{"use strict";i.d(e,{Icon:()=>o});var s=i(50959);const o=s.forwardRef(((t,e)=>{const{icon:i="",...o}=t;return s.createElement("span",{...o,ref:e,dangerouslySetInnerHTML:{__html:i}})}))},746326:(t,e,i)=>{"use strict";function s(t){const{paddingTop:e,paddingBottom:i}=window.getComputedStyle(t);return[e,i].reduce(((t,e)=>t-Number((e||"").replace("px",""))),t.clientHeight)}function o(t){const{paddingLeft:e,paddingRight:i}=window.getComputedStyle(t);return[e,i].reduce(((t,e)=>t-Number((e||"").replace("px",""))),t.clientWidth)}function n(t,e=!1){const i=getComputedStyle(t),s=[i.height];return"border-box"!==i.boxSizing&&s.push(i.paddingTop,i.paddingBottom,i.borderTopWidth,i.borderBottomWidth),e&&s.push(i.marginTop,i.marginBottom),s.reduce(((t,e)=>t+(parseFloat(e)||0)),0)}function r(t,e=!1){const i=getComputedStyle(t),s=[i.width];return"border-box"!==i.boxSizing&&s.push(i.paddingLeft,i.paddingRight,i.borderLeftWidth,i.borderRightWidth),e&&s.push(i.marginLeft,i.marginRight),s.reduce(((t,e)=>t+(parseFloat(e)||0)),0)}i.d(e,{contentHeight:()=>s,contentWidth:()=>o,outerHeight:()=>n,outerWidth:()=>r})},791325:(t,e,i)=>{"use strict";i.r(e),i.d(e,{LEFT_ARROW:()=>s,UP_ARROW:()=>o,RIGHT_ARROW:()=>n,DOWN_ARROW:()=>r,ENTER:()=>h,ESC:()=>a,SPACE:()=>l,SLASH:()=>p});const s=37,o=38,n=39,r=40,h=13,a=27,l=32,p=47},713438:(t,e,i)=>{"use strict";i.d(e,{flagUrl:()=>r,getMockedFlag:()=>h});var s=i(61499),o=i(849204);const n={erl:"EU",uk:"GB",bitcoin:"BTC"};function r(t,e,i=o.LogoSize.Medium){return t?(t.toLowerCase()in n&&(t=n[t]),(0,o.getLogoUrlResolver)().getCountryFlagUrl(t.toUpperCase(),i)):h(e)}function h(t){return t===s.StdTheme.Dark?i(364494):i(102495)}},314308:(t,e,i)=>{"use strict";function s(t,e,i,s,o){function n(o){if(t>o.timeStamp)return;const n=o.target;void 0!==i&&null!==e&&null!==n&&n.ownerDocument===s&&(e.contains(n)||i(o))}return o.click&&s.addEventListener("click",n,!1),o.mouseDown&&s.addEventListener("mousedown",n,!1),o.touchEnd&&s.addEventListener("touchend",n,!1),o.touchStart&&s.addEventListener("touchstart",n,!1),()=>{s.removeEventListener("click",n,!1),s.removeEventListener("mousedown",n,!1),s.removeEventListener("touchend",n,!1),s.removeEventListener("touchstart",n,!1)}}i.d(e,{addOutsideEventListener:()=>s})},404573:(t,e,i)=>{"use strict";i.d(e,{Draggable:()=>h,PointerBackend:()=>a});var s=i(650151),o=i(318557),n=i(638456),r=i(778785);class h{constructor(t){var e,i;this._helper=null,this._handleDragStart=t=>{var e;if(null!==this._helper)return;const i=this._source ;i.classList.add("ui-draggable-dragging");const[s,n]=[(0,o.outerWidth)(i),(0,o.outerHeight)(i)];this._helper={startTop:parseFloat(i.style.top)||0,startLeft:parseFloat(i.style.left)||0,nextTop:null,nextLeft:null,raf:null,size:[s,n],containment:this._containment instanceof HTMLElement?[parseInt(getComputedStyle(this._containment).borderLeftWidth)+parseInt(getComputedStyle(this._containment).paddingLeft),parseInt(getComputedStyle(this._containment).borderTopWidth)+parseInt(getComputedStyle(this._containment).paddingTop),this._containment.offsetWidth-parseInt(getComputedStyle(this._containment).borderRightWidth)-parseInt(getComputedStyle(this._containment).paddingRight)-parseInt(getComputedStyle(i).marginLeft)-parseInt(getComputedStyle(i).marginRight)-s,this._containment.offsetHeight-parseInt(getComputedStyle(this._containment).borderBottomWidth)-parseInt(getComputedStyle(this._containment).paddingBottom)-parseInt(getComputedStyle(i).marginTop)-parseInt(getComputedStyle(i).marginBottom)-n]:"window"===this._containment?[window.scrollX,window.scrollY,window.scrollX+document.documentElement.offsetWidth-s,window.scrollY+document.documentElement.offsetHeight-n]:null},null===(e=this._start)||void 0===e||e.call(this)},this._handleDragMove=t=>{var e;if(null===this._helper)return;const{current:i,initial:s}=t.detail,o=this._source,n=this._helper.nextTop,r=this._helper.nextLeft,h="y"===this._axis||!1===this._axis||0!==i.movementY;if(h){const t=this._helper.startTop;isFinite(t)&&(this._helper.nextTop=i.clientY-s.clientY+t)}const a="x"===this._axis||!1===this._axis||0!==i.movementY;if(a){const t=this._helper.startLeft;isFinite(t)&&(this._helper.nextLeft=i.clientX-s.clientX+t)}if(null!==this._helper.containment){const[t,e,i,s]=this._helper.containment;h&&this._helper.nextTop&&(this._helper.nextTop=Math.min(this._helper.nextTop,s),this._helper.nextTop=Math.max(this._helper.nextTop,e)),a&&this._helper.nextLeft&&(this._helper.nextLeft=Math.min(this._helper.nextLeft,i),this._helper.nextLeft=Math.max(this._helper.nextLeft,t))}null!==this._helper.raf||n===this._helper.nextTop&&r===this._helper.nextLeft||(this._helper.raf=requestAnimationFrame((()=>{null!==this._helper&&(null!==this._helper.nextTop&&(o.style.top=this._helper.nextTop+"px",this._helper.nextTop=null),null!==this._helper.nextLeft&&(o.style.left=this._helper.nextLeft+"px",this._helper.nextLeft=null),this._helper.raf=null)}))),null===(e=this._drag)||void 0===e||e.call(this)},this._handleDragStop=t=>{var e;if(null===this._helper)return;this._source.classList.remove("ui-draggable-dragging"),this._helper=null,null===(e=this._stop)||void 0===e||e.call(this)};const s=this._source=t.source;s.classList.add("ui-draggable");const n=this._handle=null!==(e=t.handle?s.querySelector(t.handle):null)&&void 0!==e?e:s;n.classList.add("ui-draggable-handle"),this._start=t.start,this._stop=t.stop,this._drag=t.drag,this._backend=new a({handle:n,onDragStart:this._handleDragStart,onDragMove:this._handleDragMove,onDragStop:this._handleDragStop}),this._axis=null!==(i=t.axis)&&void 0!==i&&i, this._containment=t.containment}destroy(){const t=this._source;t.classList.remove("ui-draggable"),t.classList.remove("ui-draggable-dragging");this._handle.classList.remove("ui-draggable-handle"),this._backend.destroy(),null!==this._helper&&(this._helper.raf&&cancelAnimationFrame(this._helper.raf),this._helper=null)}}class a{constructor(t){this._initial=null,this._handlePointerDown=t=>{if(null!==this._initial)return;if(!(t.target instanceof Element&&this._handle.contains(t.target)))return;if(this._initial=t,!this._dispatchEvent(this._createEvent("pointer-drag-start",t)))return void(this._initial=null);t.preventDefault();const e=this._getEventTarget();e.addEventListener("pointermove",this._handlePointerMove),e.addEventListener("pointerup",this._handlePointerUp),e.addEventListener("pointercancel",this._handlePointerUp),e.addEventListener("lostpointercapture",this._handlePointerUp),e.setPointerCapture(t.pointerId)},this._handlePointerMove=t=>{null!==this._initial&&this._initial.pointerId===t.pointerId&&(t.preventDefault(),this._dispatchEvent(this._createEvent("pointer-drag-move",t)))},this._handlePointerUp=t=>{if(null===this._initial||this._initial.pointerId!==t.pointerId)return;t.preventDefault();const e=this._getEventTarget();e.removeEventListener("pointermove",this._handlePointerMove),e.removeEventListener("pointerup",this._handlePointerUp),e.removeEventListener("pointercancel",this._handlePointerUp),e.removeEventListener("lostpointercapture",this._handlePointerUp),e.releasePointerCapture(this._initial.pointerId),this._dispatchEvent(this._createEvent("pointer-drag-stop",t)),this._initial=null};const e=this._handle=t.handle;this._onDragStart=t.onDragStart,this._onDragMove=t.onDragMove,this._onDragStop=t.onDragStop,e.style.touchAction="none";this._getEventTarget().addEventListener("pointerdown",this._handlePointerDown)}destroy(){this._handle.style.touchAction="";const t=this._getEventTarget();t.removeEventListener("pointerdown",this._handlePointerDown),t.removeEventListener("pointermove",this._handlePointerMove),t.removeEventListener("pointerup",this._handlePointerUp),t.removeEventListener("pointercancel",this._handlePointerUp),t.removeEventListener("lostpointercapture",this._handlePointerUp),null!==this._initial&&(t.releasePointerCapture(this._initial.pointerId),this._initial=null)}_getEventTarget(){return n.CheckMobile.iOS()||(0,n.isMac)()&&r.touch?window.document.documentElement:this._handle}_dispatchEvent(t){switch(t.type){case"pointer-drag-start":this._onDragStart(t);break;case"pointer-drag-move":this._onDragMove(t);break;case"pointer-drag-stop":this._onDragStop(t)}return!t.defaultPrevented}_createEvent(t,e){return(0,s.assert)(null!==this._initial),new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:{backend:this,initial:this._initial,current:e}})}}},296756:(t,e,i)=>{"use strict";i.d(e,{getEmbedDeprecatedExchanges:()=>o}) ;const s=JSON.parse('["ATHEX","BAHRAIN","BCBA","BYMA","BELEX","BME","BMFBOVESPA","BMV","BSSE","BVB","BVL","BVCV","BVMT","DFM","EURONEXT_AMS","EURONEXT_BRU","EURONEXT_LIS","EURONEXT_PAR","EURONEXTAMS","EURONEXTBRU","EURONEXTLIS","EURONEXTPAR","OSE","OSL","FSE","HKEX","HOSE","ICESG","LUXSE","MOEX","MYX","NAG","NSE","NSENG","NSEKE","NGM","NZX","PSE","SAPSE","SET","SGX","SZSE","TADAWUL","TSE","TWSE"]');function o(t){const e=s.slice();return t&&r.includes(t)&&e.splice(e.indexOf("BMFBOVESPA"),1),"ambito"===t&&e.splice(e.indexOf("BCBA"),1),"hegnarno"===t&&e.splice(e.indexOf("OSL"),1),t&&n.includes(t)&&e.splice(e.indexOf("BME"),1),t&&["riyadhcapitalD","riyadhcapitalRT"].includes(t)&&e.splice(e.indexOf("TADAWUL"),1),e}const n=["cincodias","copees","elconfidencial","elespanolcom","elnacionalD","elpaisfinanciero","epe","finanzasD","lainformacioncom"],r=["bovespa","forbescombr","genialinvestimentos","marcopolocombr","moneytimescombr","NoticiasagricolaD","poder360","seudinheiro","spacemoneycombr","tradersclubbrasil","tradersclubbrasilD","vocesaabrilcombr","xpicombr"]},318557:(t,e,i)=>{"use strict";i.d(e,{contentHeight:()=>o.contentHeight,outerHeight:()=>o.outerHeight,outerWidth:()=>o.outerWidth,unwrap:()=>n,html:()=>r,position:()=>a});var s=i(650151),o=i(746326);function n(t){return t[0]}function r(t,e){return void 0===e||(null===e&&(t.innerHTML=""),"string"!=typeof e&&"number"!=typeof e||(t.innerHTML=String(e))),t}function h(t){if(!t.getClientRects().length)return{top:0,left:0};const e=t.getBoundingClientRect(),i=(0,s.ensureNotNull)(t.ownerDocument.defaultView);return{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}}function a(t){const e=getComputedStyle(t);let i,s={top:0,left:0};if("fixed"===e.position)i=t.getBoundingClientRect();else{i=h(t);const e=t.ownerDocument;let o=t.offsetParent||e.documentElement;for(;o&&(o===e.body||o===e.documentElement)&&"static"===getComputedStyle(o).position;)o=o.parentElement;o&&o!==t&&1===o.nodeType&&(s=h(o),s.top+=parseFloat(getComputedStyle(o).borderTopWidth),s.left+=parseFloat(getComputedStyle(o).borderLeftWidth))}return{top:i.top-s.top-parseFloat(e.marginTop),left:i.left-s.left-parseFloat(e.marginLeft)}}},61499:(t,e,i)=>{"use strict";var s;i.d(e,{StdTheme:()=>s}),function(t){t.Light="light",t.Dark="dark"}(s||(s={}))},735270:(t,e,i)=>{"use strict";i.d(e,{anchors:()=>o,makeAnchorable:()=>n});var s=i(50959);const o={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}};function n(t){var e;return(e=class extends s.PureComponent{render(){const{anchor:e="bottom"}=this.props;return s.createElement(t,{...this.props,attachment:o[e].attachment,targetAttachment:o[e].targetAttachment})} }).displayName="Anchorable Component",e}},149368:(t,e,i)=>{"use strict";i.d(e,{makeAttachable:()=>n});var s=i(50959),o=i(500962);function n(t){var e;return(e=class extends s.PureComponent{constructor(t){super(t),this._getComponentInstance=t=>{this._instance=t},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=o.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(t){t.children===this.props.children&&t.top===this.props.top&&t.left===this.props.left&&t.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return s.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},s.createElement(t,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(t){if(t.target&&t.attachment&&t.targetAttachment){const e=this._calcTargetProps(t.target,t.attachment,t.targetAttachment);if(null===e)return{};const{width:i,inheritWidthFromTarget:s=!0,inheritMaxWidthFromTarget:o=!1}=this.props,n={width:s?e.width:i,maxWidth:o?e.width:void 0};switch(t.attachment.vertical){case"bottom":case"middle":n.top=e.y;break;default:n[t.attachment.vertical]=e.y}switch(t.attachment.horizontal){case"right":case"center":n.left=e.x;break;default:n[t.attachment.horizontal]=e.x}return n}return{}}_calcTargetProps(t,e,i){const s=t.getBoundingClientRect(),o=this._instanceElem.getBoundingClientRect(),n="parent"===this.props.root?this._getCoordsRelToParentEl(t,s):this._getCoordsRelToDocument(s);if(null===n)return null;const r=this._getDimensions(o),h=this._getDimensions(s).width;let a=0,l=0;switch(e.vertical){case"top":l=n[i.vertical];break;case"bottom":l=n[i.vertical]-r.height;break;case"middle":l=n[i.vertical]-r.height/2}switch(e.horizontal){case"left":a=n[i.horizontal];break;case"right":a=n[i.horizontal]-r.width;break;case"center":a=n[i.horizontal]-r.width/2}return"number"==typeof this.props.attachmentOffsetY&&(l+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(a+=this.props.attachmentOffsetX),{x:a,y:l,width:h}}_getCoordsRelToDocument(t){const e=pageYOffset,i=pageXOffset,s=t.top+e,o=t.bottom+e,n=t.left+i;return{top:s,bottom:o,left:n,right:t.right+i,middle:(s+t.height)/2,center:n+t.width/2}} _getCoordsRelToParentEl(t,e){const i=t.offsetParent;if(null===i)return null;const s=i.scrollTop,o=i.scrollLeft,n=t.offsetTop+s,r=t.offsetLeft+o,h=e.width+r;return{top:n,bottom:e.height+n,left:r,right:h,middle:(n+e.height)/2,center:(r+e.width)/2}}_getDimensions(t){return{height:t.height,width:t.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",e}},623107:(t,e,i)=>{"use strict";i.d(e,{DropdownContainer:()=>h});var s=i(50959),o=i(751590),n=i(497754),r=i(650151);class h extends s.PureComponent{constructor(){super(...arguments),this._container=null,this._setContainerRef=t=>{"function"==typeof this.props.reference&&this.props.reference(t),"object"==typeof this.props.reference&&(this.props.reference.current=t),this._container=t}}componentDidMount(){this.props.onDropdownWheelNoPassive&&this._addPassiveListenerOnWheel(this.props.onDropdownWheelNoPassive)}componentDidUpdate(t){this.props.onDropdownWheelNoPassive!==t.onDropdownWheelNoPassive&&this._updatePassiveListenerOnWheel(t.onDropdownWheelNoPassive)}componentWillUnmount(){this.props.onDropdownWheelNoPassive&&this._removePassiveListenerOnWheel(this.props.onDropdownWheelNoPassive)}render(){const{shadow:t="bottom",children:e,className:i}=this.props,r=n(o.container,o[t],i),h={maxHeight:this.props.maxHeight};return s.createElement("div",{ref:this._setContainerRef,style:h,className:r,onTouchStart:this.props.onDropdownTouchStart,onTouchMove:this.props.onDropdownTouchMove,onTouchEnd:this.props.onDropdownTouchEnd,onWheel:this.props.onDropdownWheel},e)}_updatePassiveListenerOnWheel(t){t&&this._removePassiveListenerOnWheel(t),this.props.onDropdownWheelNoPassive&&this._addPassiveListenerOnWheel(this.props.onDropdownWheelNoPassive)}_addPassiveListenerOnWheel(t){(0,r.ensureNotNull)(this._container).addEventListener("wheel",t,{passive:!1})}_removePassiveListenerOnWheel(t){(0,r.ensureNotNull)(this._container).removeEventListener("wheel",t)}}},400236:(t,e,i)=>{"use strict";i.d(e,{DropdownList:()=>_});var s=i(50959),o=i(722854),n=i(497754),r=i(783263),h=i(100180),a=i(940014),l=i(623107),p=i(735270);const d=(0,h.makeNavigateable)(r.List),c=(0,p.makeAnchorable)(a.Dropdown),u={top:"top",bottom:"bottom",topRight:"top"};class _ extends s.PureComponent{render(){const{anchor:t="bottom",fontSize:e=14,root:i="parent"}=this.props,r=n(o.list,o[t]),{dropdownClassName:h,height:a,...p}=this.props;return s.createElement(c,{...p,className:h,root:i},s.createElement(l.DropdownContainer,{className:this.props.dropdownContainerClassName,shadow:u[t],maxHeight:this.props.maxHeight,onDropdownTouchStart:this.props.onDropdownTouchStart?this.props.onDropdownTouchStart:void 0,onDropdownTouchMove:this.props.onDropdownTouchMove?this.props.onDropdownTouchMove:void 0, onDropdownTouchEnd:this.props.onDropdownTouchEnd?this.props.onDropdownTouchEnd:void 0,onDropdownWheelNoPassive:this.props.onDropdownWheelNoPassive?this.props.onDropdownWheelNoPassive:void 0},s.createElement(d,{...p,width:this.props.width,height:a,className:this.props.className||r,itemsClassName:this.props.itemsClassName||o.item,selectedClassName:this.props.selectedClassName||o.selected,fontSize:e,reference:this.props.reference})))}}},940014:(t,e,i)=>{"use strict";i.d(e,{Dropdown:()=>a});var s=i(50959),o=i(435218),n=i(149368),r=i(368337);class h extends s.PureComponent{render(){const t={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:this.props.bottom,right:this.props.right,left:this.props.left,zIndex:this.props.zIndex};return s.createElement(o,{onMeasure:this.props.onResize},s.createElement("div",{className:this.props.className,style:t,ref:this.props.reference},this.props.children))}}h.displayName="Dropdown Container";const a=(0,r.makeOverlapable)((0,n.makeAttachable)(h))},951292:(t,e,i)=>{"use strict";i.d(e,{useOutsideEvent:()=>n});var s=i(50959),o=i(314308);function n(t){const{click:e,mouseDown:i,touchEnd:n,touchStart:r,handler:h,reference:a,ownerDocument:l=document}=t,p=(0,s.useRef)(null),d=(0,s.useRef)(new CustomEvent("timestamp").timeStamp);return(0,s.useLayoutEffect)((()=>{const t={click:e,mouseDown:i,touchEnd:n,touchStart:r},s=a?a.current:p.current;return(0,o.addOutsideEventListener)(d.current,s,h,l,t)}),[e,i,n,r,h]),a||p}},783263:(t,e,i)=>{"use strict";i.d(e,{List:()=>l});var s=i(50959),o=i(500962),n=i(435218),r=i(581692),h=i(497754);class a extends s.PureComponent{constructor(t){super(t)}render(){return s.createElement("div",{className:this.props.className,onClick:this.props.onClick,ref:this.props.reference},this.props.children)}}class l extends s.PureComponent{constructor(t){super(t)}render(){const{theme:t=r}=this.props,e=h(t.list,{[this.props.className]:Boolean(this.props.className)}),{fontSize:i=13}=this.props,o={bottom:this.props.bottom,fontSize:i,left:this.props.left,height:this.props.height||"auto",right:this.props.right,top:this.props.top,width:this.props.width,zIndex:this.props.zIndex};return s.createElement(n,{whitelist:["height","width"],shouldMeasure:!!this.props.onMeasure,onMeasure:this.props.onMeasure},s.createElement("div",{className:e,style:o,ref:this.props.reference},this._wrapItems(this.props.items,this.props.selected)))}componentDidMount(){if(this._el=o.findDOMNode(this),void 0!==this.props.selected&&this.props.shouldScrollIfNotVisible){const t=this._items[this.props.selected];t&&this._scrollIfNotVisible(t)}}componentDidUpdate(){if(void 0!==this.props.selected&&this.props.shouldScrollIfNotVisible){const t=this._items[this.props.selected];t&&this._scrollIfNotVisible(t)}}_wrapItems(t=[],e){this._items=[];const{itemWrap:i=a,theme:o=r}=this.props,n=i;return t.map(((t,i)=>{const r=h(o.item,{[this.props.itemsClassName]:Boolean(this.props.itemsClassName),[this.props.selectedClassName]:e===i});return s.createElement(n,{reference:e=>{ e&&this._items.push({elem:e,index:i,value:t})},key:i,onClick:()=>this._onSelect(i),className:r},t.elem)}))}_onSelect(t){this.props.onSelect&&this.props.onSelect(t,this._items[t].value)}_scrollIfNotVisible(t){const e=this._el.scrollTop,i=this._el.scrollTop+this._el.clientHeight,s=t.elem.offsetTop,o=s+t.elem.clientHeight;s<=e?t.elem.scrollIntoView(!0):o>=i&&t.elem.scrollIntoView(!1)}}l.defaultProps={shouldScrollIfNotVisible:!0}},100180:(t,e,i)=>{"use strict";i.d(e,{makeNavigateable:()=>o});var s=i(50959);function o(t){var e;return(e=class extends s.PureComponent{constructor(t){super(t),this._items=this.props.items}componentDidUpdate(t){if(t.command!==this.props.command&&this.props.command)switch(this.props.command.name){case"next":this._next();break;case"prev":this._prev()}t.items!==this.props.items&&(this._items=this.props.items)}render(){return s.createElement(t,{...this.props},this.props.children)}_next(){const{selected:t=-1}=this.props,e=t+1;this._items.length-1>=e?this._navigateTo(e):this._navigateTo(0)}_prev(){const{selected:t=-1}=this.props,e=t-1,i=this._items.length-1;0<=e?this._navigateTo(e):this._navigateTo(i)}_navigateTo(t){this.props.onNavigate&&this.props.onNavigate(t,this._items[t])}}).displayName="Navigateable Component",e}},157490:(t,e,i)=>{"use strict";i.d(e,{OutsideEvent:()=>o});var s=i(951292);function o(t){const{children:e,...i}=t;return e((0,s.useOutsideEvent)(i))}},829725:(t,e,i)=>{"use strict";i.d(e,{OverlapManager:()=>n,getRootOverlapManager:()=>h});var s=i(650151);class o{constructor(){this._storage=[]}add(t){this._storage.push(t)}remove(t){this._storage=this._storage.filter((e=>t!==e))}has(t){return this._storage.includes(t)}getItems(){return this._storage}}class n{constructor(t=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}setContainer(t){const e=this._container,i=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach((t=>{t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)}))}(e,i),this._container=i}registerWindow(t){this._storage.has(t)||this._storage.add(t)}ensureWindow(t,e={position:"fixed",direction:"normal"}){const i=this._windows.get(t);if(void 0!==i)return i;this.registerWindow(t);const s=this._document.createElement("div");if(s.style.position=e.position,s.style.zIndex=this._index.toString(),s.dataset.id=t,void 0!==e.index){const t=this._container.childNodes.length;if(e.index>=t)this._container.appendChild(s);else if(e.index<=0)this._container.insertBefore(s,this._container.firstChild);else{const t=this._container.childNodes[e.index];this._container.insertBefore(s,t)}}else"reverse"===e.direction?this._container.insertBefore(s,this._container.firstChild):this._container.appendChild(s);return this._windows.set(t,s),++this._index,s}unregisterWindow(t){this._storage.remove(t);const e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))}getZindex(t){const e=this.ensureWindow(t) ;return parseInt(e.style.zIndex||"0")}moveToTop(t){if(this.getZindex(t)!==this._index){this.ensureWindow(t).style.zIndex=(++this._index).toString()}}removeWindow(t){this.unregisterWindow(t)}}const r=new WeakMap;function h(t=document){const e=t.getElementById("overlap-manager-root");if(null!==e)return(0,s.ensureDefined)(r.get(e));{const e=new n(t),i=function(t){const e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return r.set(i,e),e.setContainer(i),t.body.appendChild(i),e}}},368337:(t,e,i)=>{"use strict";i.d(e,{makeOverlapable:()=>n});var s=i(50959),o=i(707533);function n(t){return class extends s.PureComponent{render(){const{isOpened:e,root:i}=this.props;if(!e)return null;const n=s.createElement(t,{...this.props,zIndex:150});return"parent"===i?n:s.createElement(o.Portal,null,n)}}}},707533:(t,e,i)=>{"use strict";i.d(e,{Portal:()=>a,PortalContext:()=>l});var s=i(50959),o=i(500962),n=i(777491),r=i(829725),h=i(670797);class a extends s.PureComponent{constructor(){super(...arguments),this._uuid=(0,n.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const t=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return t.style.top=this.props.top||"",t.style.bottom=this.props.bottom||"",t.style.left=this.props.left||"",t.style.right=this.props.right||"",t.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(s.createElement(l.Provider,{value:this},this.props.children),t)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,r.getRootOverlapManager)():this.context}}a.contextType=h.SlotContext;const l=s.createContext(null)},670797:(t,e,i)=>{"use strict";i.d(e,{Slot:()=>o,SlotContext:()=>n});var s=i(50959);class o extends s.Component{shouldComponentUpdate(){return!1}render(){return s.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const n=s.createContext(null)},637249:(t,e,i)=>{"use strict";i.d(e,{SidebarCustomScroll:()=>c});var s=i(778785),o=i(869403),n=i.n(o),r=i(318557),h=i(368791),a=i(404573);const l=[()=>navigator.userAgent.includes("Win")&&navigator.userAgent.includes("Chrome")?1/window.devicePixelRatio:1,()=>16,(t=(()=>0))=>{var e;return.8*(null!==(e=t())&&void 0!==e?e:0)}];i(589578);var p=i(786007);const d={headerHeight:0,additionalClass:"",alwaysVisible:!1,showBottomShadow:!0,scrollMarginTop:1,bubbleScrollEvent:!1};class c{constructor(t,e,i={}){if(this.scrolled=new(n()),this.scrolltoend=new(n()),this.scrolltostart=new(n()),this.visibilityCallbacks=[],this._scrollTargetTop=0,this._scrollSpeed=40,this._shadowOffset=10,this._shadowTop=null,this._shadowBottom=null,this._dragInitialized=!1,this._dragging=!1,this._draggable=null,this._atStart=!1,this._atEnd=!1,this._stickyBottom=null,this._animation=null,this._saved=null,this._options={...d,...i},this._wrapper=t,this._wrapper.classList.add(p.wrapper),this._content=e,this._headerHeight=this._options.headerHeight, this._scrollMarginTop=this._options.scrollMarginTop,this._scrollBar=document.createElement("div"),this._scrollBar.classList.add("sb-scrollbar","sb-scrollbar-body"),this._options.additionalClass&&this._scrollBar.classList.add(this._options.additionalClass),this._scrollBar.classList.toggle("active-always",this._options.alwaysVisible),this._scrollBarWrapper=document.createElement("div"),this._scrollBarWrapper.classList.add("sb-scrollbar-wrap"),this._touch=s.touch,this._touch)return this._content.style.position="relative",this._wrapper.classList.add(p.touch),void this._wrapper.addEventListener("scroll",(()=>this._onScroll()));this._wrapper.style.overflow="hidden",this._unsubscribe=(()=>{const t=()=>{this._dragging||(this._options.alwaysVisible||this._scrollBar.classList.add("active"),this._onScroll())},e=()=>{this._dragging||(this._options.alwaysVisible||this._scrollBar.classList.remove("active"),this._onScroll())},i=t=>{if(!t.defaultPrevented){const e=function(t,e=(()=>({}))){return{x:t.deltaX*l[t.deltaMode]((()=>e().width)),y:t.deltaY*l[t.deltaMode]((()=>e().height))}}(t,(()=>({height:this._wrapper.clientHeight}))).y;this.scroll(-e,1)||(t.stopPropagation(),t.preventDefault())}};return this._wrapper.addEventListener("mouseenter",t),this._wrapper.addEventListener("mouseleave",e),this._wrapper.addEventListener("wheel",i),()=>{this._wrapper.removeEventListener("mouseenter",t),this._wrapper.removeEventListener("mouseleave",e),this._wrapper.removeEventListener("wheel",i)}})(),!1!==this._options.showTopShadow&&(this._shadowTop=document.createElement("div"),this._shadowTop.classList.add("sb-inner-shadow","top","i-invisible"),this._wrapper.appendChild(this._shadowTop)),!1!==this._options.showBottomShadow&&(this._shadowBottom=document.createElement("div"),this._shadowBottom.classList.add("sb-inner-shadow"),this._wrapper.appendChild(this._shadowBottom)),this._shadowTop&&this._headerHeight&&(this._shadowTop.style.top=this._headerHeight-this._shadowOffset+"px"),this._wrapper.appendChild(this._scrollBarWrapper),this._scrollBarWrapper.appendChild(this._scrollBar),this._onScroll()}isTouch(){return this._touch}getScrollBar(){return this._scrollBar}initDraggable(){return this._dragInitialized||(this._draggable=new a.Draggable({axis:"y",source:this._scrollBar,containment:this._scrollBarWrapper,start:()=>{this._dragging=!0},stop:()=>{this._dragging=!1},drag:()=>{this.updateScroll()}}),this._dragInitialized=!0),this}updateScroll(){if(this._touch)return this;const t=Math.ceil((0,r.position)(this._scrollBar).top-this._scrollMarginTop-this._headerHeight),e=this.getContainerHeightWithoutHeader(),i=(0,r.outerHeight)(this._content),s=i-e-1;return e<=0||(this._scrollTargetTop=s<=0?this._headerHeight:Math.min(-t*i/e+this._headerHeight,this._headerHeight),t+(0,r.contentHeight)(this._scrollBar)+2>=e?this.scrollToEnd():(this._content.style.top=this._scrollTargetTop+"px",this._onScroll())),this}getContainerHeightWithoutHeader(){return this._wrapper.getBoundingClientRect().height-this._headerHeight}getContainerHeight(){ return this._wrapper.getBoundingClientRect().height}getContentHeight(){return this._content.getBoundingClientRect().height}updateScrollBar(){if(this._touch)return this;const t=(0,r.position)(this._content).top,e=this.getContentHeight(),i=this.getContainerHeight(),s=this.getContainerHeightWithoutHeader(),o=1+this._headerHeight,n=s-2,h=(Math.abs(t)-this._headerHeight)*n/e,a=i*i/e;return this.isContentShort()?(this._scrollBar.classList.add("js-hidden"),this._wrapper.classList.remove("sb-scroll-active")):(this._scrollBar.classList.remove("js-hidden"),this._scrollBar.style.height=a+"px",this._scrollBar.style.top=o+h+"px",this._wrapper.classList.add("sb-scroll-active"),this.initDraggable()),this}scroll(t,e){const i=(0,r.position)(this._content).top,s=(0,r.outerHeight)(this._content)-this.getContainerHeightWithoutHeader()-1,o=e||this._scrollSpeed;return s<=0||(this._scrollTargetTop=Math.max(-s+this._headerHeight,Math.min(this._headerHeight,i+t*o)),this.setContentTop(this._scrollTargetTop),this._onScroll())}animateTo(t){if(this._touch)return this;const e=(0,r.outerHeight)(this._content)-this.getContainerHeightWithoutHeader()-1;if(e<=0)return!0;this._scrollTargetTop=Math.max(-e+this._headerHeight,Math.min(this._headerHeight,-t)),this._animation&&this._animation.stop(),this._animation=(0,h.doAnimate)({duration:500,from:parseFloat(getComputedStyle(this._content).top),to:this._scrollTargetTop,onStep:(t,e)=>{this._content.style.top=e+"px"},onComplete:()=>{this._onScroll()}})}resize(){const t=(0,r.outerHeight)(this._content),e=(0,r.outerHeight)(this._wrapper);!this._options.vAlignBottom&&th&&t+i.areaHeighta?a-t-i.areaHeight:h-t}else"top"===i.position&&(l=h-t);return this.scroll(l,1),this._onScroll(),!1}scrollToEnd(){const t=(0,r.position)(this._content).top,e=(0,r.outerHeight)(this._content),i=(0,r.outerHeight)(this._wrapper),s=e>i?t+(i-(e+t))+1:1;return this.setContentTop(s),this._onScroll(),this}scrollToStart(){return this.setContentTop(this._headerHeight),this._onScroll(),this}currentPosition(){return Math.round((0,r.position)(this._content).top)}atStart(){return Math.round((0,r.position)(this._content).top)>=this._headerHeight}atEnd(t){"number"==typeof t&&isFinite(t)||(t=0) ;const e=Math.round((0,r.position)(this._content).top),i=Math.floor((0,r.outerHeight)(this._content)),s=Math.floor((0,r.outerHeight)(this._wrapper));return i-Math.abs(e)-1<=s+t}checkContentVisibility(){this._onContentVisible()}subscribeToContentVisible(t,e,i){this.visibilityCallbacks.push({id:t,element:e,callback:i})}triggerVisibilityCallbacks(t){this._onContentVisible(t)}save(){return this._saved={top:(0,r.position)(this._content).top,height:(0,r.outerHeight)(this._content)},this}restore(){if(this._saved){if(this._saved.top===(0,r.position)(this._content).top&&this._saved.height===(0,r.outerHeight)(this._content))return this._saved=null,this;this._options.vAlignBottom&&(this._saved.top-=(0,r.outerHeight)(this._content)-this._saved.height,this._saved.top>this._headerHeight&&(this._saved.top=this._headerHeight)),this.setContentTop(this._saved.top),this._saved=null,this._onScroll(!0)}return this}setContentTop(t){return this._touch?this._options.vAlignBottom&&(0,r.outerHeight)(this._content)<(0,r.outerHeight)(this._wrapper)?(this._wrapper.style.overflowY="visible",this._content.style.position="absolute",this._content.style.bottom="0px"):(this._content.style.position="relative",this._content.style.position="auto",this._wrapper.style.overflowY="auto",this._wrapper.scrollTop=-t):this._content.style.top=t+"px",this}isContentShort(){return this.getContentHeight()<=this.getContainerHeightWithoutHeader()}destroy(){var t;this._animation&&this._animation.stop(),this._scrollBarWrapper&&this._scrollBarWrapper.remove(),this._shadowBottom&&this._shadowBottom.remove(),this._shadowTop&&this._shadowTop.remove(),this._draggable&&(this._draggable.destroy(),this._draggable=null),this._content.style.cssText="",this._wrapper.style.cssText="",null===(t=this._unsubscribe)||void 0===t||t.call(this)}_onScroll(t){this._touch||(this._content.style.bottom="auto"),this.scrolled.fire(),this._dragging&&!0!==t||this.updateScrollBar();const e=this.atStart(),i=this.atEnd();return this._shadowTop&&this._shadowTop.classList.toggle("i-invisible",!!e),this._shadowBottom&&this._shadowBottom.classList.toggle("i-invisible",!!i),this._onContentVisible(),!this._atStart&&e?(this._atStart=!0,this.scrolltostart.fire()):this._atStart&&!e&&(this._atStart=!1),!this._atEnd&&i?(this._atEnd=!0,this.scrolltoend.fire()):this._atEnd&&!i&&(this._atEnd=!1),this._options.vAlignBottom&&(this._stickyBottom=(0,r.outerHeight)(this._content)-Math.abs((0,r.position)(this._content).top)-(0,r.outerHeight)(this._wrapper)),(this._atStart||this._atEnd)&&("function"==typeof this._options.bubbleScrollEvent?Boolean(this._options.bubbleScrollEvent()):Boolean(this._options.bubbleScrollEvent))}_contentIsVisible(t){return(0,r.position)(t.element).top>-1*this.currentPosition()}_onContentVisible(t){if(!this.visibilityCallbacks.length)return;const e=t||this._contentIsVisible.bind(this),i=[],s=this.visibilityCallbacks.filter(((t,s)=>{if(!this._content.contains(t.element))return!1;const o=e(t);return o&&i.push(s),!o}));i.forEach((e=>{this.visibilityCallbacks[e].callback(!!t)})), this.visibilityCallbacks=s}}},142544:(t,e,i)=>{"use strict";var s=i(823127);const o=i(272001).getLogger("CommonUI.CreateTVBlockPlugin");t.exports.createTvBlockWithInstance=function(t,e){if(t&&e)return t=t.toString(),function(n,r,h){var a,l,p;return"get"===n?a=r:(l=r,"object"==typeof n&&void 0===r?(l=n,n="init"):"string"!=typeof n&&(n="init")),"getInstance"===n?s(this).eq(0).data(t):"destroy"===n?(p=s(this).eq(0).data(t))?void("function"==typeof p.destroy?(i(p,"destroy",l),s(this).eq(0).removeData(t)):o.logError("[Block Plugin] "+t+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+t+" but it has not been inited"):"get"===n?(p=s(this).eq(0).data(t))?"function"==typeof p[a]?i(p,a,h):p[a]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+t+" but it has not been inited"):s(this).each((function(){var r=s(this),h=r.data(t);void 0===h&&(h=void 0===l?e(r):e(r,l),r.data(t,h)),"init"!==n&&("function"==typeof h[n]?i(h,n,l):o.logError("[Block Plugin] "+t+" does not support command "+n))}))};function i(t,e,i){return void 0===i?t[e]():t[e](i)}}},875561:(t,e,i)=>{"use strict";i.r(e),i.d(e,{DropdownView:()=>h});i(965426),i(34221);var s=i(142544),o=i(637249),n=i(791325),r=i(823127);class h{constructor(t,e={}){this.$el=t,this.$wrap=e.$wrap||t.find(".tv-dropdown-behavior__button"),this.$body=e.$body||t.find(".tv-dropdown-behavior__body"),this.notCloseWithCtrl=!!e.notCloseWithCtrl&&e.notCloseWithCtrl,this.closeWithEsc=void 0===e.closeWithEsc||e.closeWithEsc,this.closeWithEsc&&this.$el.attr("tabIndex",0),(t.data("scroll")||e.scroll)&&(this.$scroll=this.$body.find(".tv-dropdown-behavior__scroll"),this.$inScroll=this.$scroll.find(".tv-dropdown-behavior__inscroll"),this.scroll=new o.SidebarCustomScroll(this.$scroll[0],this.$inScroll[0],{showTopShadow:!1,showBottomShadow:!1}),this.$scrollBar=r(this.scroll.getScrollBar()),this.$scrollBar&&this.$scrollBar.on("mousedown.tv-dropdown-view-scroll",(()=>{this.offClickOutside(),r(document).on("mouseup.tv-dropdown-view-scroll",(()=>{this.onClickOutside(),r(document).off("mouseup.tv-dropdown-view-scroll")}))}))),(t.data("adaptBody")||e.adaptBody)&&(this._adaptBody=!0),(t.data("adaptOnlyInScrollHeight")||e.adaptOnlyInScrollHeight)&&(this._adaptOnlyInScrollHeight=!0),this._fitScreen=t.data("fitScreen")||e.fitScreen,this._maxHeight=t.data("maxHeight")||e.maxHeight,this._dropdownWidth=t.data("dropdownWidth")||e.dropdownWidth,this._boundingElement=e.boundingElement,this.$wrap.add(t.find(".js-dropdown-toggle")).on("click",(t=>{r(t.currentTarget).hasClass("js-prevent-dropdown")||this.toggle()})),this._checkIgnoreClickOutside=[]}toggle(){this.opened?this.close(!0):this.open()}open(){this.opened||this.disabled||this.readonly||(this.$el.trigger("beforeOpenMenu"),this.$body.removeClass("i-hidden").addClass("i-opened"),this.$wrap.addClass("i-dropped"),this.$el.addClass("i-opened"),"horz"===this._fitScreen&&this.fitHorizontally(),this._adaptBody&&this.adaptBody(),this.onClickOutside(),this.$el.trigger("updateScroll"), this.$el.trigger("afterOpenMenu"),this.opened=!0,this.closeWithEsc&&this.$el.on("keypress keyup",(t=>{t.keyCode===n.ESC&&this.close(!0)})))}onClickOutside(){setTimeout((()=>{this.$body.on("clickoutside",(t=>{this._checkIgnoreClickOutside.length&&this._checkIgnoreClickOutside.some((e=>e(t)))||this.close(!0)}))}),0)}offClickOutside(){this.$body.off("clickoutside")}setCheckIgnoreClickOutside(t){this._checkIgnoreClickOutside.push(t)}dropCheckIgnoreClickOutside(t){var e=this._checkIgnoreClickOutside.indexOf(t);-1!==e&&this._checkIgnoreClickOutside.splice(e,1)}close(t=!1){!this.opened||this.disabled||this.readonly||!t&&this.notCloseWithCtrl&&(window.event.ctrlKey||window.event.metaKey)||(this.offClickOutside(),this.$wrap.removeClass("i-dropped"),this.$el.trigger("beforeCloseMenu"),this.$body.removeClass("i-opened").addClass("i-hidden"),this.$el.removeClass("i-opened"),this.closeWithEsc&&this.$el.off("keypress keyup"),this.opened=!1,this.$el.trigger("afterCloseMenu"))}isOpened(){return this.opened}updateScroll(){this.scroll&&(this.scroll.updateScrollBar(),this.scroll.scrollToStart())}enable(){this.$wrap.removeClass("i-disabled"),this.disabled=!1}disable(){this.$wrap.addClass("i-disabled"),this.disabled=!0}setReadonly(t){this.readonly=t}adaptBody(){const t=this.$body,e=this.$wrap.get(0).getBoundingClientRect(),i=this._boundingElement?this._boundingElement.getBoundingClientRect():{top:0,bottom:window.innerHeight,height:window.innerHeight},s=parseFloat(t.css("padding-top")),o=parseFloat(t.css("padding-bottom")),n=this.$inScroll.outerHeight(!0)+s+o;if(this.scroll&&this.scroll.scrollToStart(),this._adaptOnlyInScrollHeight){const s=t.find(".js-dropdown-dummy"),n=s?parseFloat(s.css("padding-bottom"))+parseFloat(s.css("margin-bottom")):0,r=e.top+e.height+n;return void this.$el.find(".tv-dropdown-behavior__scroll").css("maxHeight",i.bottom-o-r-25)}const r=this._maxHeight||n,h=e.top+r+25<=i.bottom,a=i.top+15+r<=e.bottom;let l,p=this._maxHeight||"auto";if(h)l=-s;else if(a)l=-r+e.height+o;else{l=-e.top+i.top+15;const t=i.height-15-25;r>t&&(p=t)}t.css("top",l),t.height(p),this._dropdownWidth&&t.width(this._dropdownWidth)}fitHorizontally(){this.$body.css("marginLeft",0);const t=document.body.getBoundingClientRect(),e=parseFloat(r(document.body).css("paddingRight")),i=this.$body.offset();i.right=i.left+this.$body.outerWidth();const s=Math.max(Math.min(0,t.right-e-i.right),t.left-i.left);s&&this.$body.css("marginLeft",s)}destroy(){this.scroll&&this.scroll.destroy(),this.offClickOutside(),this.$el.find(".js-dropdown-toggle").off("click"),this.$wrap.off("click")}}r.fn.tvDropdown=(0,s.createTvBlockWithInstance)("tv-dropdown",(function(t,e={}){return new h(t,e)}))},368791:(t,e,i)=>{"use strict";i.d(e,{doAnimate:()=>n});const s={from:0,duration:250,easing:i(455567).easingFunc.easeOutCubic};class o{constructor(t){this._doing=!0,this._completed=!1,this._options={...s,...t};const e=performance.now();window.requestAnimationFrame((t=>{this._animation(e,this._options.from,t)}))}stop(){this._doing=!1}completed(){return this._completed} _animation(t,e,i){if(!this._doing)return void this._finishAnimation();const s=(i=!i||i<1e12?performance.now():i)-t,o=s>=this._options.duration||e===this._options.to,n=(r=this._options.from,h=this._options.to,a=this._options.easing(s/this._options.duration),r*(1-a)+h*a);var r,h,a;const l=o?this._options.to:n,p=l-e;this._options.onStep(p,l),o?this._finishAnimation():window.requestAnimationFrame((e=>{this._animation(t,l,e)}))}_finishAnimation(){this._options.onComplete&&this._options.onComplete(),this._completed=!0}}function n(t){return new o(t)}},364494:(t,e,i)=>{"use strict";t.exports=i.p+"flag-square-mock-dark.16b5f3a431f502b03ae3.svg"},102495:(t,e,i)=>{"use strict";t.exports=i.p+"flag-square-mock.d201313017eb2c1b989f.svg"}}]);