File Manager
Viewing File: widget-sidetoolbar.js
(window.webpackJsonp=window.webpackJsonp||[]).push([["widget-sidetoolbar"],{"+l/S":function(e,t,o){},"0ZwQ":function(e,t,o){"use strict";o.d(t,"a",(function(){return f})),o.d(t,"b",(function(){return T}));var i=o("P5fv"),n=o.n(i),a=(o("EsMY"),o("Eyy1"),o("9uLv")),r=o("Vdly"),l=o("aIyQ"),s=o.n(l),c=o("hY0g"),d=o.n(c),u=o("A6WY"),p=o("69Qn"),h=(o("qFKp"),o("VVxS")),m=o("qAO1");o("PwLo");function g(){return window.innerWidth}function v(){return window.innerHeight}var f="floating-toolbar-react-widgets",b='<div class="tv-floating-toolbar i-closed i-hidden">'+(Modernizr.mobiletouch?'<div class="tv-floating-toolbar__drag-ext js-drag"></div>':"")+'<div class="tv-floating-toolbar__widget-wrapper"><div class="tv-floating-toolbar__drag js-drag">'+m+'</div><div class="tv-floating-toolbar__content js-content"></div><div class="'+f+'"></div></div></div>',T=function(){function e(t){var o=this;this._widget=document.createElement("div"),this._isVertical=!1,this._hiddingTimeoutId=null,this._visibility=new d.a(!1),this._windowResizeListener=this._onWindowResize.bind(this),this._reorderedDelegate=new s.a,this._responsiveResizeFunction=null,this._showTimeStamp=null,this._preventClickUntilAnimation=function(e){null!==o._showTimeStamp&&performance.now()-o._showTimeStamp<o.hideDuration()&&e.stopPropagation()},e._toolbars.push(this),this._options=t,this._widget=n()(b).get(0),this._content=this._widget.getElementsByClassName("js-content").item(0),this._reactWidgetsContainer=this._widget.getElementsByClassName(f).item(0),this._setZIndex(e._startZIndex+e._toolbars.length-1),this._options.addClass&&(this._widget.className+=" "+this._options.addClass),this._options["data-name"]&&(this._widget.dataset.name=this._options["data-name"]),this._options.layout&&"auto"!==this._options.layout&&(this._isVertical="vertical"===this._options.layout,this._updateLayoutType(),this._updateAxisOption()),this._widget.addEventListener("click",this._preventClickUntilAnimation,!0)}return e.prototype.destroy=function(){this.hide(!0),e._toolbars.splice(e._toolbars.indexOf(this),1),this._widget.removeEventListener("click",this._preventClickUntilAnimation,!0),document.body.contains(this._widget)&&document.body.removeChild(this._widget),this._widget.innerHTML="",this._responsiveResizeFunction=null},e.prototype.setResponsiveResizeFunc=function(e){this._responsiveResizeFunction=e},e.prototype.isVisible=function(){return this._visibility.value()},e.prototype.visibility=function(){return this._visibility.readonly()},e.prototype.isVertical=function(){return this._isVertical},e.prototype.show=function(){var e=this;this.isVisible()||(document.body.contains(this._widget)||(this._init(),document.body.appendChild(this._widget)),this._setHiddingTimeout(null),window.addEventListener("resize",this._windowResizeListener),this.raise(),this._visibility.setValue(!0),this._showTimeStamp=performance.now(),this._widget.classList.contains("i-hidden")?(this._widget.classList.remove("i-hidden"),setTimeout((function(){e.isVisible()&&e._widget.classList.remove("i-closed")
}))):this._widget.classList.remove("i-closed"),this._onWindowResize())},e.prototype.hide=function(e){var t=this;if(void 0===e&&(e=!1),this.isVisible()){var o=this._widget.classList.contains("i-closed");if(this._widget.classList.add("i-closed"),this._visibility.setValue(!1),e||o)this._setHiddingTimeout(null),this._widget.classList.add("i-hidden");else{var i=setTimeout((function(){t._setHiddingTimeout(null),t._widget.classList.add("i-hidden")}),this.hideDuration());this._setHiddingTimeout(i)}window.removeEventListener("resize",this._windowResizeListener)}},e.prototype.raise=function(){e._toolbars.length+e._startZIndex!==this._zIndex()&&(e._toolbars.splice(e._toolbars.indexOf(this),1),e._toolbars.push(this),e._updateAllZIndexes())},e.prototype.hideDuration=function(){return.75*a.dur},e.prototype.addWidget=function(e,t){void 0===t&&(t={});var o=this.widgetsCount();if(void 0===t.index&&(t.index=o),t.index<0||t.index>o)throw new Error("Index must be in [0, "+o+"]");var i=document.createElement("div");i.className="tv-floating-toolbar__widget js-widget",i.appendChild(e);var n=t.index===o?null:this._content.childNodes.item(t.index);this._content.insertBefore(i,n),this._onWindowResize()},e.prototype.getReactWidgetContainer=function(){return this._reactWidgetsContainer},e.prototype.removeWidget=function(e){var t=this._findWrapperForWidget(e);t&&(this._content.removeChild(t),this._onWindowResize())},e.prototype.widgetsCount=function(){return this._content.childNodes.length},e.prototype.showWidget=function(e){var t=this._findWrapperForWidget(e);t&&t.classList.remove("i-hidden")},e.prototype.hideWidget=function(e){var t=this._findWrapperForWidget(e);t&&t.classList.add("i-hidden")},e.prototype.removeWidgets=function(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._onWindowResize()},e.prototype.onWidgetsReordered=function(){return this._reorderedDelegate},e.prototype.onContextMenu=function(e){var t=this;Modernizr.mobiletouch?(new p.HammerJSLoader).load().then((function(o){var i=new o(t._widget);i.get("press").set({time:500}),i.on("press",(function(o){t._preventWidgetTouchEndEvent(),e(o.srcEvent)}))})):this._widget.addEventListener("contextmenu",e)},e.prototype.checkPosition=function(){var e=this._getCorrectedWidgetRect(),t={left:e.left,top:e.top};this._correctPosition(t),e.left===t.left&&e.top===t.top||(this._widget.style.left=t.left+"px",this._widget.style.top=t.top+"px")},e.prototype._determineCurrentLayoutVertical=function(e){var t=this._isVertical?e.height:e.width;return g()<t},e.prototype._getWidget=function(){return this._widget},e.prototype._findWrapperForWidget=function(e){for(var t=this._content.getElementsByClassName("js-widget"),o=0;o<t.length;++o){var i=t.item(o);if(i.contains(e))return i}return null},e.prototype._onVerticalChanged=function(e,t){},e.prototype._setHiddingTimeout=function(e){null!==this._hiddingTimeoutId&&clearTimeout(this._hiddingTimeoutId),this._hiddingTimeoutId=e},e.prototype._preventWidgetTouchEndEvent=function(){var e=this,t=function(o){o.preventDefault(),
e._widget.removeEventListener("touchend",t)};this._widget.addEventListener("touchend",t)},e.prototype._updateLayoutType=function(){this._widget.classList.toggle("i-vertical",this._isVertical)},e.prototype._updateAxisOption=function(){if(this._options.dragOnlyInsideToolbar){var e=this._isVertical?"y":"x";Object(u.lazyJqueryUI)(n()(this._content)).sortable("option","axis",e)}},e.prototype._onWindowResize=function(){if("auto"===(this._options.layout||"auto")){var e=this._isVertical,t=this._getCorrectedWidgetRect();this._isVertical=this._determineCurrentLayoutVertical(t),this._updateLayoutType(),e!==this._isVertical&&(this._onVerticalChanged(this._isVertical,e),this._updateAxisOption())}this.checkPosition(),this._resizeResponsive()},e.prototype._resizeResponsive=function(){if(null!==this._responsiveResizeFunction){var e=this._options.layout||"auto";"auto"===e&&(e=this._isVertical?"vertical":"horizontal");var t="vertical"===e?this._widget.clientHeight:this._widget.clientWidth,o=("vertical"===e?v():g())-t;this._responsiveResizeFunction(t,o,e)}},e.prototype._correctPosition=function(e){var t=this._getCorrectedWidgetRect();e.left+t.width>g()&&(e.left=Math.max(0,g()-t.width)),e.top+t.height>v()&&(e.top=Math.max(0,v()-t.height)),e.left=Math.max(0,e.left),e.top=Math.max(0,e.top)},e.prototype._setZIndex=function(e){this._widget.style.zIndex=String(e)},e.prototype._zIndex=function(){return Number(this._widget.style.zIndex)},e.prototype._loadPosition=function(){var e;if("device"===this._options.positionStorageType){var t=h.TVLocalStorage.getItem(this._options.positionSettingsKey);e=null!==t?JSON.parse(t):this._options.defaultPosition}else e=Object(r.getJSON)(this._options.positionSettingsKey,this._options.defaultPosition);this._widget.style.left=Math.round(e.left)+"px",this._widget.style.top=Math.round(e.top)+"px",this._onWindowResize()},e.prototype._savePosition=function(){var e=this._widget.getBoundingClientRect();if("device"===this._options.positionStorageType)try{h.TVLocalStorage.setItem(this._options.positionSettingsKey,JSON.stringify({left:e.left,top:e.top}))}catch(t){}else Object(r.setJSON)(this._options.positionSettingsKey,{left:e.left,top:e.top})},e.prototype._init=function(){this._loadPosition(),Object(u.lazyJqueryUI)(n()(this._widget)).draggable({containment:"window",drag:this._onDragEvent.bind(this),handle:".js-drag",stop:this._savePosition.bind(this)}),this._options.allowSortable&&this._initSortable(),this._widget.addEventListener(Modernizr.mobiletouch?"touchstart":"mousedown",this.raise.bind(this))},e.prototype._onDragEvent=function(e,t){this._correctPosition(t.position)},e.prototype._initSortable=function(){var e=this,t=-1;Object(u.lazyJqueryUI)(n()(this._content)).sortable({start:function(e,o){t=o.item.index()},stop:function(o,i){var n=i.item.index();t!==n&&e._reorderedDelegate.fire(t,n)},tolerance:"pointer",distance:5,containment:!!this._options.dragOnlyInsideToolbar&&"parent",scroll:!1,placeholder:"sortable-placeholder",forcePlaceholderSize:!0}),this._updateAxisOption()},
e.prototype._getCorrectedWidgetRect=function(){var e=this._widget.getBoundingClientRect();if(this._widget.classList.contains("i-closed")){var t=e.width*(1/.925-1),o=e.height*(1/.925-1);return{bottom:e.bottom+o/2,height:e.height+o,left:e.left-t/2,right:e.right+t/2,top:e.top-o/2,width:e.width+t}}return e},e._updateAllZIndexes=function(){e._toolbars.forEach((function(t,o){t._setZIndex(e._startZIndex+o)}))},e._startZIndex=20,e._toolbars=[],e}()},"0fuu":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="20" height="20" fill="none"><path stroke="currentColor" d="M13.5 6.5l-3-3-7 7 7.59 7.59a2 2 0 0 0 2.82 0l4.18-4.18a2 2 0 0 0 0-2.82L13.5 6.5zm0 0v-4a2 2 0 0 0-2-2v0a2 2 0 0 0-2 2v6"/><path fill="currentColor" d="M0 16.5C0 15 2.5 12 2.5 12S5 15 5 16.5 4 19 2.5 19 0 18 0 16.5z"/><circle fill="currentColor" cx="9.5" cy="9.5" r="1.5"/></svg>'},"16Al":function(e,t,o){"use strict";var i=o("WbBG");function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,o,n,a,r){if(r!==i){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:n};return o.PropTypes=o,o}},"17x9":function(e,t,o){e.exports=o("16Al")()},"2A9e":function(e){e.exports=JSON.parse('{"button":"button-1iktpaT1","content":"content-2PGssb8d","noOutline":"noOutline-d9Yp4qvi","appearance-default":"appearance-default-dMjF_2Hu","intent-primary":"intent-primary-1-IOYcbg","intent-success":"intent-success-25a4XZXM","intent-default":"intent-default-2ZbSqQDs","intent-warning":"intent-warning-24j5HMi0","intent-danger":"intent-danger-1EETHCla","appearance-stroke":"appearance-stroke-12lxiUSM","appearance-text":"appearance-text-DqKJVT3U","appearance-inverse":"appearance-inverse-r1Y2JQg_","size-s":"size-s-3mait84m","size-m":"size-m-2G7L7Qat","size-l":"size-l-2NEs9_xt","size-p":"size-p-3D4rn3v0","full-width":"full-width-1wU8ljjC","with-icon":"with-icon-yumghDr-","icon":"icon-1grlgNdV"}')},"2EWL":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M8.5 6a3.5 3.5 0 0 0-2.926 5.422 8.527 8.527 0 0 1 4.848-4.848A3.482 3.482 0 0 0 8.5 6zM4 9.5c0 1.19.463 2.274 1.218 3.079A8.5 8.5 0 0 0 13.5 23h.5v-1h-.5a7.5 7.5 0 1 1 7.5-7.5v.5h1v-.5a8.53 8.53 0 0 0-.218-1.921 4.5 4.5 0 0 0-6.36-6.36 8.527 8.527 0 0 0-3.843-.001A4.5 4.5 0 0 0 4 9.5zm12.578-2.926a8.527 8.527 0 0 1 4.848 4.848 3.5 3.5 0 0 0-4.848-4.848zM13 14V9h1v6h-4v-1h3zm6 6h-4v1h4v4h1v-4h4v-1h-4v-4h-1v4z"/></svg>'},"2F1E":function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 4" width="18" height="4"><rect width="18" height="4" fill="currentColor" rx="2"/></svg>'},"2dtg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M23.002 23C23 23 23 18.003 23 18.003L15.998 18C16 18 16 22.997 16 22.997l7.002.003zM15 18.003A1 1 0 0 1 15.998 17h7.004c.551 0 .998.438.998 1.003v4.994A1 1 0 0 1 23.002 24h-7.004A.993.993 0 0 1 15 22.997v-4.994z"/><path d="M19 20h1v2h-1z"/><path fill-rule="nonzero" d="M22 14.5a2.5 2.5 0 0 0-5 0v3h1v-3a1.5 1.5 0 0 1 3 0v.5h1v-.5z"/><g fill-rule="nonzero"><path d="M3 14.707A1 1 0 0 1 3.293 14L14.439 2.854a1.5 1.5 0 0 1 2.122 0l2.585 2.585a1.5 1.5 0 0 1 0 2.122L8 18.707a1 1 0 0 1-.707.293H4a1 1 0 0 1-1-1v-3.293zm1 0V18h3.293L18.439 6.854a.5.5 0 0 0 0-.708l-2.585-2.585a.5.5 0 0 0-.708 0L4 14.707z"/><path d="M13.146 4.854l4 4 .708-.708-4-4zm-9 9l4 4 .708-.708-4-4z"/><path d="M15.146 6.146l-9 9 .708.708 9-9z"/></g></g></svg>'},"2lje":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 29 31" width="29" height="31"><g fill="currentColor" fill-rule="nonzero"><path d="M15.3 22l8.187-8.187c.394-.394.395-1.028.004-1.418l-4.243-4.243c-.394-.394-1.019-.395-1.407-.006l-11.325 11.325c-.383.383-.383 1.018.007 1.407l1.121 1.121h7.656zm-9.484-.414c-.781-.781-.779-2.049-.007-2.821l11.325-11.325c.777-.777 2.035-.78 2.821.006l4.243 4.243c.781.781.78 2.048-.004 2.832l-8.48 8.48h-8.484l-1.414-1.414z"/><path d="M13.011 22.999h7.999v-1h-7.999zM13.501 11.294l6.717 6.717.707-.707-6.717-6.717z"/></g></svg>'},"3s8f":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M14 10a2 2 0 0 0-2 2v11H6V12c0-4.416 3.584-8 8-8s8 3.584 8 8v11h-6V12a2 2 0 0 0-2-2zm-3 2a3 3 0 0 1 6 0v10h4V12c0-3.864-3.136-7-7-7s-7 3.136-7 7v10h4V12z"/><path d="M6.5 18h5v1h-5zm10 0h5v1h-5z"/></g></svg>'},"3zTq":function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M16.47 3.7A8.32 8.32 0 0013 2.94c-3.12 0-5.5 1.75-7.06 3.44a16 16 0 00-2.38 3.38v.02h-.01L4 10l-.45-.22-.1.22.1.22L4 10l-.45.22.01.02a5.5 5.5 0 00.15.28 16 16 0 002.53 3.41l.7-.7-.27-.29a15 15 0 01-2.08-2.9L4.56 10l.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12.98 0 1.88.2 2.7.52l.77-.76zm-7.04 7.04l.93-.93a2.6 2.6 0 012.36-2.36l.95-.95a3.6 3.6 0 00-4.24 4.24zm.1 5.56c1.03.47 2.18.76 3.47.76 3.12 0 5.5-1.75 7.06-3.44a16 16 0 002.38-3.38v-.02h.01L22 10l.45.22.1-.22-.1-.22L22 10l.45-.22-.01-.02-.02-.03-.01-.03a9.5 9.5 0 00-.57-1 16 16 0 00-2.08-2.63l-.7.7.27.29a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-.98 0-1.88-.2-2.7-.52l-.77.76zm2.8-2.8a3.6 3.6 0 004.24-4.24l-.93.93a2.6 2.6 0 01-2.36 2.36l-.95.95zm7.9 3.73c-.12.12-.23.35-.23.77v2h1v1h-1v2c0 .58-.14 1.1-.52 1.48-.38.38-.9.52-1.48.52s-1.1-.14-1.48-.52c-.38-.38-.52-.9-.52-1.48h1c0 .42.1.65.23.77.12.12.35.23.77.23.42 0 .65-.1.77-.23.12-.12.23-.35.23-.77v-2h-1v-1h1v-2c0-.58.14-1.1.52-1.48.38-.38.9-.52 1.48-.52s1.1.14 1.48.52c.38.38.52.9.52 1.48h-1c0-.42-.1-.65-.23-.77-.12-.12-.35-.23-.77-.23-.42 0-.65.1-.77.23zm2.56 6.27l-1.14-1.15.7-.7 1.15 1.14 1.15-1.14.7.7-1.14 1.15 1.14 1.15-.7.7-1.15-1.14-1.15 1.14-.7-.7 1.14-1.15zM21.2 2.5L5.5 18.2l-.7-.7L20.5 1.8l.7.7z"/></svg>'},"43BO":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M14 6a3 3 0 0 0-3 3v3h6V9a3 3 0 0 0-3-3zm4 6V9a4 4 0 0 0-8 0v3H8.5A2.5 2.5 0 0 0 6 14.5v7A2.5 2.5 0 0 0 8.5 24h11a2.5 2.5 0 0 0 2.5-2.5v-7a2.5 2.5 0 0 0-2.5-2.5H18zm-5 5a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z"/></svg>'},"4rU7":function(e,t,o){"use strict";o.d(t,"a",(function(){return c}));var i=o("mrSG"),n=o("q1tI"),a=o("TSYQ"),r=o("Iivm"),l=o("QpNh"),s=o("gb5g");function c(e){var t,o=e.id,c=e.activeClass,d=e.children,u=e.className,p=e.icon,h=e.isActive,m=e.isGrayed,g=e.isHidden,v=e.isTransparent,f=e.theme,b=void 0===f?s:f,T=e.onClick,_=e.title,w=e.buttonHotKey,y=e.tooltipPosition,L=void 0===y?"vertical":y;return n.createElement("div",Object(i.a)({id:o,className:a(b.button,u,h&&c,(t={"apply-common-tooltip":Boolean(_),"common-tooltip-vertical":Boolean(_)&&"vertical"===L},t[b.isActive]=h,t[b.isGrayed]=m,t[b.isHidden]=g,t[b.isTransparent]=v,t)),onClick:T,title:_,"data-role":"button","data-tooltip-hotkey":w},Object(l.a)(e)),n.createElement("div",{className:b.bg},p&&("string"==typeof p?n.createElement(r.a,{className:b.icon,icon:p}):n.createElement("span",{className:b.icon},p)),d))}},"5AaZ":function(e,t,o){"use strict";o.d(t,"a",(function(){return g}));var i=o("mrSG"),n=o("q1tI"),a=o.n(n),r=o("TSYQ"),l=o.n(r),s=o("cvc5"),c=o("Iivm"),d=o("//lZ"),u=o("9uLv"),p=o("uJ8n"),h=o("Vike"),m={isVisibleScrollbar:!0},g=function(e){function t(t){var o=e.call(this,t)||this;return o._scroll=null,
o._handleScrollTop=function(){o.animateTo(Math.max(0,o.currentPosition()-(o.state.heightWrap-50)))},o._handleScrollBot=function(){o.animateTo(Math.min((o.state.heightContent||0)-(o.state.heightWrap||0),o.currentPosition()+(o.state.heightWrap-50)))},o._handleResizeWrap=function(e){var t=e.height;o.setState({heightWrap:t})},o._handleResizeContent=function(e){var t=e.height;o.setState({heightContent:t})},o._handleScroll=function(){var e=o.props.onScroll;e&&e(o.currentPosition(),o.isAtTop(),o.isAtBot()),o._checkButtonsVisibility()},o._checkButtonsVisibility=function(){var e=o.state,t=e.isVisibleTopButton,i=e.isVisibleBotButton,n=o.isAtTop(),a=o.isAtBot();n||t?n&&t&&o.setState({isVisibleTopButton:!1}):o.setState({isVisibleTopButton:!0}),a||i?a&&i&&o.setState({isVisibleBotButton:!1}):o.setState({isVisibleBotButton:!0})},o.state={heightContent:0,heightWrap:0,isVisibleBotButton:!1,isVisibleTopButton:!1},o}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){this._checkButtonsVisibility()},t.prototype.componentDidUpdate=function(e,t){t.heightWrap===this.state.heightWrap&&t.heightContent===this.state.heightContent||this._handleScroll()},t.prototype.currentPosition=function(){return this._scroll?this._scroll.scrollTop:0},t.prototype.isAtTop=function(){return this.currentPosition()<=1},t.prototype.isAtBot=function(){return this.currentPosition()+this.state.heightWrap>=this.state.heightContent-1},t.prototype.animateTo=function(e,t){void 0===t&&(t=u.dur);var o=this._scroll;o&&Object(d.doAnimate)({onStep:function(e,t){o.scrollTop=t},from:o.scrollTop,to:Math.round(e),easing:u.easingFunc.easeInOutCubic,duration:t})},t.prototype.render=function(){var e,t,o,i,n,r=this,d=this.props,u=d.children,m=d.isVisibleScrollbar,g=d.isVisibleFade,v=d.isVisibleButtons,f=d.onMouseOver,b=d.onMouseOut,T=this.state,_=T.heightContent,w=T.heightWrap,y=T.isVisibleBotButton,L=T.isVisibleTopButton;return a.a.createElement(s,{whitelist:["height"],onMeasure:this._handleResizeWrap},a.a.createElement("div",{className:p.wrap,onMouseOver:f,onMouseOut:b},a.a.createElement("div",{className:l()(p.scrollWrap,(e={},e[p.noScrollBar]=!m,e)),onScroll:this._handleScroll,ref:function(e){return r._scroll=e}},a.a.createElement(s,{onMeasure:this._handleResizeContent,whitelist:["height"]},a.a.createElement("div",{className:p.content},u))),g&&a.a.createElement("div",{className:l()(p.fadeTop,(t={},t[p.isVisible]=L&&_>w,t))}),g&&a.a.createElement("div",{className:l()(p.fadeBot,(o={},o[p.isVisible]=y&&_>w,o))}),v&&a.a.createElement("div",{className:l()(p.scrollTop,(i={},i[p.isVisible]=L&&_>w,i)),onClick:this._handleScrollTop},a.a.createElement("div",{className:p.iconWrap},a.a.createElement(c.a,{icon:h,className:p.icon}))),v&&a.a.createElement("div",{className:l()(p.scrollBot,(n={},n[p.isVisible]=y&&_>w,n)),onClick:this._handleScrollBot},a.a.createElement("div",{className:p.iconWrap},a.a.createElement(c.a,{icon:h,className:p.icon})))))},t.defaultProps=m,t}(a.a.PureComponent)},"5hRh":function(e,t,o){"use strict";o.d(t,"a",(function(){return n}))
;var i=o("q1tI"),n=function(e){var t=Object(i.useState)(e.value()),o=t[0],n=t[1];return Object(i.useEffect)((function(){var t=function(e){n(e.value())};t(e);var o={};return e.subscribe(o,t),function(){return e.unsubscribe(o,t)}}),[e]),o}},"69Qn":function(e,t,o){"use strict";o.r(t);var i=o("mrSG"),n=function(){function e(){var e=this;this._retries=5,this._cache=null,this._tryLoad=function(t){e._retries=e._retries-1;e._startLoading().then(t,0!==e._retries?function(){return setTimeout((function(){return e._tryLoad(t)}),3e3)}:void 0)}}return e.prototype.load=function(){return this._cache||(this._cache=new Promise(this._tryLoad)),this._cache},e}();o.d(t,"HammerJSLoader",(function(){return a}));var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype._startLoading=function(){return Promise.all([o.e(280),o.e("hammerjs")]).then(o.bind(null,"be1f")).then((function(e){return e.HammerJS}))},t}(n)},"6oLA":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M4.56 14a10.05 10.05 0 00.52.91c.41.69 1.04 1.6 1.85 2.5C8.58 19.25 10.95 21 14 21c3.05 0 5.42-1.76 7.07-3.58A17.18 17.18 0 0023.44 14a9.47 9.47 0 00-.52-.91c-.41-.69-1.04-1.6-1.85-2.5C19.42 8.75 17.05 7 14 7c-3.05 0-5.42 1.76-7.07 3.58A17.18 17.18 0 004.56 14zM24 14l.45-.21-.01-.03a7.03 7.03 0 00-.16-.32c-.11-.2-.28-.51-.5-.87-.44-.72-1.1-1.69-1.97-2.65C20.08 7.99 17.45 6 14 6c-3.45 0-6.08 2-7.8 3.92a18.18 18.18 0 00-2.64 3.84v.02h-.01L4 14l-.45-.21-.1.21.1.21L4 14l-.45.21.01.03a5.85 5.85 0 00.16.32c.11.2.28.51.5.87.44.72 1.1 1.69 1.97 2.65C7.92 20.01 10.55 22 14 22c3.45 0 6.08-2 7.8-3.92a18.18 18.18 0 002.64-3.84v-.02h.01L24 14zm0 0l.45.21.1-.21-.1-.21L24 14zm-10-3a3 3 0 100 6 3 3 0 000-6zm-4 3a4 4 0 118 0 4 4 0 01-8 0z"/></svg>'},"85c9":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="19" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.103.687a1 1 0 0 1 1.794 0l2.374 4.81 5.309.772a1 1 0 0 1 .554 1.706l-3.841 3.745.906 5.287a1 1 0 0 1-1.45 1.054L10 15.565 5.252 18.06A1 1 0 0 1 3.8 17.007l.907-5.287L.866 7.975a1 1 0 0 1 .554-1.706l5.31-.771L9.102.688zM10 1.13L7.393 6.412l-5.829.847 4.218 4.111-.996 5.806L10 14.436l5.214 2.74-.996-5.805 4.218-4.112-5.83-.847L10 1.13z"/></svg>'},"8d0Q":function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return a}));var i=o("q1tI");function n(){var e=Object(i.useState)(!1),t=e[0],o=e[1];return[t,{onMouseOver:function(e){a(e)&&o(!0)},onMouseOut:function(e){a(e)&&o(!1)}}]}function a(e){return!e.currentTarget.contains(e.relatedTarget)}},A6WY:function(e,t,o){"use strict";o.r(t),o.d(t,"LazyJqueryUI",(function(){return a})),o.d(t,"lazyJqueryUI",(function(){return r}));var i;o("P5fv");function n(e){return e in $.fn?Promise.resolve():(i||(i=new Promise((function(e){Promise.all([o.e(406),o.e("lazy-jquery-ui")]).then(function(t){o("BvgM"),e()}.bind(null,o)).catch(void 0)}))),i)}var a=function(){function e(e){this._$elem=e}
return e.prototype.draggable=function(){var e=arguments,t=this._$elem;return n("draggable").then((function(){return t.draggable.apply(t,e)}))},e.prototype.resizable=function(){var e=arguments,t=this._$elem;return n("resizable").then((function(){return t.resizable.apply(t,e)}))},e.prototype.sortable=function(){var e=arguments,t=this._$elem;return n("sortable").then((function(){return t.sortable.apply(t,e)}))},e.prototype.datepicker=function(){var e=arguments,t=this._$elem;return n("datepicker").then((function(){return t.datepicker.apply(t,e)}))},e}();function r(e){return new a(e)}},ADFN:function(e,t,o){},C7ts:function(e,t,o){"use strict";o.r(t),o.d(t,"TemplateButton",(function(){return v}));var i=o("mrSG"),n=o("q1tI"),a=o.n(n),r=o("Iivm"),l=o("YFKU"),s=o("JWMC"),c=o("2uTr"),d=o("82wv"),u=o("IAAr"),p=o("7KDR"),h=o("L/Ed"),m=o("39J6"),g=o("R1RK");function v(e){var t=e.model,o=e.onRestore,v=e.onSave,f=e.isDrawingFinished,b=e.className,T=Object(i.e)(e,["model","onRestore","onSave","isDrawingFinished","className"]),_=Object(n.useState)(!1),w=_[0],y=_[1],L=Object(n.useState)(null),C=L[0],S=L[1],z=Object(n.useCallback)((function(){var e=JSON.stringify(v());t.showSaveDialog((function(o){t.saveTemplate(o,e)}))}),[t,v]),x=Object(n.useMemo)((function(){var e=[];return f&&e.push(new p.Action({label:Object(c.appendEllipsis)(Object(l.t)("Save Drawing Template As")),onExecute:z})),e.push(new p.Action({label:Object(l.t)("Apply Default Drawing Template"),onExecute:o})),w?e.push(new p.Action({label:a.a.createElement(m.a,null),fullWidthLabel:!0})):!w&&(null==C?void 0:C.length)&&(e.push(new p.Separator),e.push.apply(e,C.map((function(e){return new p.Action({label:e,onExecute:function(){return function(e){void 0!==e&&t.loadTemplate(e)}(e)},showToolboxOnHover:!0,toolbox:{type:h.ToolboxType.Delete,action:function(){return t.deleteAction(e)}}})})))),e}),[v,o,C,t,f,w]);return a.a.createElement(d.b,Object(i.a)({title:Object(l.t)("Templates"),content:a.a.createElement(r.a,{icon:g}),onOpen:function(){y(!0),t.templatesLoaded().then((function(){var e=t.getData();S(e),y(!1)})),Object(s.trackEvent)("GUI","Context action on drawings","Templates")},arrow:!1,className:b,"data-name":"templates",menuDataName:"templates-menu"},T),a.a.createElement(u.a,{items:x}))}},Csdk:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><circle fill="currentColor" cx="14" cy="14" r="3"/></svg>'},EA32:function(e,t,o){e.exports={wrap:"wrap-2qy9YC6D",smallTablet:"smallTablet-2qy9YC6D",buttonIcon:"buttonIcon-2qy9YC6D",item:"item-2qy9YC6D",hovered:"hovered-2qy9YC6D",active:"active-2qy9YC6D",title:"title-2qy9YC6D",separator:"separator-2qy9YC6D",button:"button-2qy9YC6D"}},Ex32:function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5 10.76a13.27 13.27 0 01-.41-.72L4.56 10l.03-.04a15 15 0 012.08-2.9c1.48-1.6 3.6-3.12 6.33-3.12s4.85 1.53 6.33 3.12a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.08 2.9c-1.48 1.6-3.6 3.12-6.33 3.12s-4.85-1.53-6.33-3.12a15 15 0 01-1.66-2.18zm17.45-.98L22 10l.45.22-.01.02a14.3 14.3 0 01-.6 1.05c-.4.64-1 1.48-1.78 2.33-1.56 1.7-3.94 3.44-7.06 3.44s-5.5-1.75-7.06-3.44a16 16 0 01-2.23-3.1 9.39 9.39 0 01-.15-.28v-.02h-.01L4 10l-.45-.22.01-.02a5.59 5.59 0 01.15-.28 16 16 0 012.23-3.1C7.5 4.69 9.87 2.94 13 2.94c3.12 0 5.5 1.75 7.06 3.44a16 16 0 012.23 3.1 9.5 9.5 0 01.15.28v.01l.01.01zM22 10l.45-.22.1.22-.1.22L22 10zM3.55 9.78L4 10l-.45.22-.1-.22.1-.22zm6.8.22A2.6 2.6 0 0113 7.44 2.6 2.6 0 0115.65 10 2.6 2.6 0 0113 12.56 2.6 2.6 0 0110.35 10zM13 6.44A3.6 3.6 0 009.35 10c0 1.98 1.65 3.56 3.65 3.56s3.65-1.58 3.65-3.56A3.6 3.6 0 0013 6.44zM20 18c0-.42.1-.65.23-.77.12-.13.35-.23.77-.23.42 0 .65.1.77.23.13.12.23.35.23.77h1c0-.58-.14-1.1-.52-1.48-.38-.38-.9-.52-1.48-.52s-1.1.14-1.48.52c-.37.38-.52.9-.52 1.48v2h-1v1h1v2c0 .42-.1.65-.23.77-.12.13-.35.23-.77.23-.42 0-.65-.1-.77-.23-.13-.12-.23-.35-.23-.77h-1c0 .58.14 1.1.52 1.48.38.37.9.52 1.48.52s1.1-.14 1.48-.52c.37-.38.52-.9.52-1.48v-2h1v-1h-1v-2zm1.65 4.35l1.14 1.15-1.14 1.15.7.7 1.15-1.14 1.15 1.14.7-.7-1.14-1.15 1.14-1.15-.7-.7-1.15 1.14-1.15-1.14-.7.7z"/></svg>'},FS6t:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M5 10.76l-.41-.72-.03-.04.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12 2.73 0 4.85 1.53 6.33 3.12a15.01 15.01 0 012.08 2.9l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-2.73 0-4.85-1.53-6.33-3.12a15 15 0 01-1.66-2.18zm17.45-.98L22 10l.45.22-.01.02a5.04 5.04 0 01-.15.28 16.01 16.01 0 01-2.23 3.1c-1.56 1.69-3.94 3.44-7.06 3.44-3.12 0-5.5-1.75-7.06-3.44a16 16 0 01-2.38-3.38v-.02h-.01L4 10l-.45-.22.01-.02a5.4 5.4 0 01.15-.28 16 16 0 012.23-3.1C7.5 4.69 9.88 2.94 13 2.94c3.12 0 5.5 1.75 7.06 3.44a16.01 16.01 0 012.38 3.38v.02h.01zM22 10l.45-.22.1.22-.1.22L22 10zM3.55 9.78L4 10l-.45.22-.1-.22.1-.22zm6.8.22A2.6 2.6 0 0113 7.44 2.6 2.6 0 0115.65 10 2.6 2.6 0 0113 12.56 2.6 2.6 0 0110.35 10zM13 6.44A3.6 3.6 0 009.35 10 3.6 3.6 0 0013 13.56c2 0 3.65-1.58 3.65-3.56A3.6 3.6 0 0013 6.44zm7.85 12l.8-.8.7.71-.79.8a.5.5 0 000 .7l.59.59c.2.2.5.2.7 0l1.8-1.8.7.71-1.79 1.8a1.5 1.5 0 01-2.12 0l-.59-.59a1.5 1.5 0 010-2.12zM16.5 21.5l-.35-.35a.5.5 0 00-.07.07l-1 1.5-1 1.5a.5.5 0 00.42.78h4a2.5 2.5 0 001.73-.77A2.5 2.5 0 0021 22.5a2.5 2.5 0 00-.77-1.73A2.5 2.5 0 0018.5 20a3.1 3.1 0 00-1.65.58 5.28 5.28 0 00-.69.55v.01h-.01l.35.36zm.39.32l-.97 1.46-.49.72h3.07c.34 0 .72-.17 1.02-.48.3-.3.48-.68.48-1.02 0-.34-.17-.72-.48-1.02-.3-.3-.68-.48-1.02-.48-.35 0-.75.18-1.1.42a4.27 4.27 0 00-.51.4z"/></svg>'},FTBN:function(e,t,o){e.exports={item:"item-3NgvBqLJ",label:"label-3NgvBqLJ"}},FVBd:function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor" fill-rule="evenodd"><path fill-rule="nonzero" d="M23.002 23C23 23 23 18.003 23 18.003L15.998 18C16 18 16 22.997 16 22.997l7.002.003zM15 18.003A1 1 0 0 1 15.998 17h7.004c.551 0 .998.438.998 1.003v4.994A1 1 0 0 1 23.002 24h-7.004A.993.993 0 0 1 15 22.997v-4.994z"/><path d="M19 20h1v2h-1z"/><path fill-rule="nonzero" d="M22 17.5v-2a2.5 2.5 0 0 0-5 0v2h1v-2a1.5 1.5 0 0 1 3 0v2h1z"/><g fill-rule="nonzero"><path d="M3 14.707A1 1 0 0 1 3.293 14L14.439 2.854a1.5 1.5 0 0 1 2.122 0l2.585 2.585a1.5 1.5 0 0 1 0 2.122L8 18.707a1 1 0 0 1-.707.293H4a1 1 0 0 1-1-1v-3.293zm1 0V18h3.293L18.439 6.854a.5.5 0 0 0 0-.708l-2.585-2.585a.5.5 0 0 0-.708 0L4 14.707z"/><path d="M13.146 4.854l4 4 .708-.708-4-4zm-9 9l4 4 .708-.708-4-4z"/><path d="M15.146 6.146l-9 9 .708.708 9-9z"/></g></g></svg>'},G1jy:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"/><path d="M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"/></g></svg>'},HWhk:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="none"><path fill="currentColor" fillRule="evenodd" clipRule="evenodd" d="M7.5 13a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM5 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM12 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0zm9.5-1.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3zM19 14.5a2.5 2.5 0 1 1 5 0 2.5 2.5 0 0 1-5 0z"/></svg>'},IhRv:function(e,t,o){"use strict";o.r(t),o.d(t,"ColorPickerButton",(function(){return f}));var i=o("q1tI"),n=o.n(i),a=o("TSYQ"),r=o.n(a),l=o("Eyy1"),s=o("Iivm"),c=o("eJTA"),d=o("Tmoa"),u=o("V3OP"),p=o("htM8"),h=o("wLjq"),m=o("82wv"),g=o("5hRh"),v=o("X1vi");function f(e){var t=e.property,o=e.icon,a=e.model,f=e.title,b=e.className,T=Object(g.a)(t),_=Object(i.useRef)(null),w=T?Object(c.parseRgba)(T)[3]:void 0,y=""===T,L=String(N()).toLowerCase()===h.c,C=Object(u.a)(),S=C[0],z=C[1],x=C[2];return n.a.createElement(m.b,{className:b,content:n.a.createElement("div",{className:v.wrap},n.a.createElement(s.a,{className:v.icon,icon:o}),n.a.createElement("div",{className:v.colorBg},n.a.createElement("div",{className:r()(v.color,y&&v.multicolor,L&&v.white),style:y?void 0:{backgroundColor:T}}))),arrow:!1,title:f,ref:_,"data-name":e["data-name"],menuDataName:e["data-name"]+"-menu"},n.a.createElement(p.a,{color:N(),opacity:w,onColorChange:function(e,t){var o=T?Object(d.alphaToTransparency)(Object(c.parseRgba)(T)[3]):0
;P(Object(d["generateColor"])(String(e),o,true)),t||Object(l.ensureNotNull)(_.current).close()},onOpacityChange:function(e){P(Object(d.generateColor)(T,Object(d.alphaToTransparency)(e),!0))},selectOpacity:void 0!==w,selectCustom:!0,customColors:S,onAddColor:function(e){z(e),Object(l.ensureNotNull)(_.current).close()},onRemoveCustomColor:x}));function N(){return T?Object(c.rgbToHexString)(Object(c.parseRgb)(T)):null}function P(e){a.setProperty(t,e,f)}}},Ijvb:function(e,t,o){"use strict";o.d(t,"a",(function(){return i}));var i={SyncDrawing:o("G1jy"),arrow:o("tceb"),cursor:o("WHEt"),dot:o("Csdk"),drawginmode:o("2dtg"),drawginmodeActive:o("FVBd"),eraser:o("2lje"),group:o("lZXH"),hideAllDrawings:o("6oLA"),hideAllDrawingsActive:o("dmHa"),hideAllIndicators:o("Ex32"),hideAllIndicatorsActive:o("3zTq"),hideAllDrawingTools:o("FS6t"),hideAllDrawingToolsActive:o("VToE"),lockAllDrawings:o("Uh5y"),lockAllDrawingsActive:o("43BO"),magnet:o("3s8f"),strongMagnet:o("xjKU"),measure:o("oCKS"),removeAllDrawingTools:o("aVjL"),showObjectTree:o("qQ3E"),zoom:o("kmdM"),"zoom-out":o("mbEK")}},J2xC:function(e,t,o){e.exports={"css-value-header-toolbar-height":"38px"}},JQKp:function(e,t,o){e.exports={drawingToolbar:"drawingToolbar-2_so5thS",isHidden:"isHidden-2_so5thS",inner:"inner-2_so5thS",popupMenuItem:"popupMenuItem-2_so5thS",group:"group-2_so5thS",noGroupPadding:"noGroupPadding-2_so5thS",lastGroup:"lastGroup-2_so5thS",fill:"fill-2_so5thS",separator:"separator-2_so5thS"}},KmEK:function(e,t,o){e.exports={dropdown:"dropdown-191zO2Od",buttonWrap:"buttonWrap-191zO2Od",control:"control-191zO2Od",arrow:"arrow-191zO2Od",arrowIcon:"arrowIcon-191zO2Od",isOpened:"isOpened-191zO2Od",hover:"hover-191zO2Od",isGrayed:"isGrayed-191zO2Od"}},Lnv9:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><rect width="18" height="2" rx="1" x="5" y="14"/><rect width="18" height="1" rx=".5" x="5" y="20"/><rect width="18" height="3" rx="1.5" x="5" y="7"/></svg>'},"MP+M":function(e,t,o){"use strict";o.d(t,"a",(function(){return u}));o("YFKU");var i=o("+GxX"),n=o("/DW5"),a=(o("HbRj"),o("zxD0")),r=o("Ijvb"),l=o("0qMc"),s={keys:["Shift"],text:window.t("{0} — drawing a straight line at angles of 45")},c={keys:["Shift"],text:window.t("{0} — circle")},d={keys:["Shift"],text:window.t("{0} — square")},u={LineTool5PointsPattern:{icon:a.lineToolsIcons.LineTool5PointsPattern,localizedName:l.lineToolsLocalizedNames.LineTool5PointsPattern},LineToolABCD:{icon:a.lineToolsIcons.LineToolABCD,localizedName:l.lineToolsLocalizedNames.LineToolABCD},LineToolArc:{icon:a.lineToolsIcons.LineToolArc,localizedName:l.lineToolsLocalizedNames.LineToolArc},LineToolArrow:{icon:a.lineToolsIcons.LineToolArrow,localizedName:l.lineToolsLocalizedNames.LineToolArrow},LineToolArrowMarkDown:{icon:a.lineToolsIcons.LineToolArrowMarkDown,localizedName:l.lineToolsLocalizedNames.LineToolArrowMarkDown},LineToolArrowMarkLeft:{icon:a.lineToolsIcons.LineToolArrowMarkLeft,localizedName:l.lineToolsLocalizedNames.LineToolArrowMarkLeft},
LineToolArrowMarkRight:{icon:a.lineToolsIcons.LineToolArrowMarkRight,localizedName:l.lineToolsLocalizedNames.LineToolArrowMarkRight},LineToolArrowMarkUp:{icon:a.lineToolsIcons.LineToolArrowMarkUp,localizedName:l.lineToolsLocalizedNames.LineToolArrowMarkUp},LineToolBalloon:{icon:a.lineToolsIcons.LineToolBalloon,localizedName:l.lineToolsLocalizedNames.LineToolBalloon},LineToolBarsPattern:{icon:a.lineToolsIcons.LineToolBarsPattern,localizedName:l.lineToolsLocalizedNames.LineToolBarsPattern},LineToolBezierCubic:{icon:a.lineToolsIcons.LineToolBezierCubic,localizedName:l.lineToolsLocalizedNames.LineToolBezierCubic},LineToolBezierQuadro:{icon:a.lineToolsIcons.LineToolBezierQuadro,localizedName:l.lineToolsLocalizedNames.LineToolBezierQuadro},LineToolBrush:{icon:a.lineToolsIcons.LineToolBrush,localizedName:l.lineToolsLocalizedNames.LineToolBrush},LineToolCallout:{icon:a.lineToolsIcons.LineToolCallout,localizedName:l.lineToolsLocalizedNames.LineToolCallout},LineToolCircleLines:{icon:a.lineToolsIcons.LineToolCircleLines,localizedName:l.lineToolsLocalizedNames.LineToolCircleLines},LineToolCypherPattern:{icon:a.lineToolsIcons.LineToolCypherPattern,localizedName:l.lineToolsLocalizedNames.LineToolCypherPattern},LineToolDateAndPriceRange:{icon:a.lineToolsIcons.LineToolDateAndPriceRange,localizedName:l.lineToolsLocalizedNames.LineToolDateAndPriceRange},LineToolDateRange:{icon:a.lineToolsIcons.LineToolDateRange,localizedName:l.lineToolsLocalizedNames.LineToolDateRange},LineToolDisjointAngle:{icon:a.lineToolsIcons.LineToolDisjointAngle,localizedName:l.lineToolsLocalizedNames.LineToolDisjointAngle,hotKey:Object(n.b)(s)},LineToolElliottCorrection:{icon:a.lineToolsIcons.LineToolElliottCorrection,localizedName:l.lineToolsLocalizedNames.LineToolElliottCorrection},LineToolElliottDoubleCombo:{icon:a.lineToolsIcons.LineToolElliottDoubleCombo,localizedName:l.lineToolsLocalizedNames.LineToolElliottDoubleCombo},LineToolElliottImpulse:{icon:a.lineToolsIcons.LineToolElliottImpulse,localizedName:l.lineToolsLocalizedNames.LineToolElliottImpulse},LineToolElliottTriangle:{icon:a.lineToolsIcons.LineToolElliottTriangle,localizedName:l.lineToolsLocalizedNames.LineToolElliottTriangle},LineToolElliottTripleCombo:{icon:a.lineToolsIcons.LineToolElliottTripleCombo,localizedName:l.lineToolsLocalizedNames.LineToolElliottTripleCombo},LineToolEllipse:{icon:a.lineToolsIcons.LineToolEllipse,localizedName:l.lineToolsLocalizedNames.LineToolEllipse,hotKey:Object(n.b)(c)},LineToolExtended:{icon:a.lineToolsIcons.LineToolExtended,localizedName:l.lineToolsLocalizedNames.LineToolExtended},LineToolFibChannel:{icon:a.lineToolsIcons.LineToolFibChannel,localizedName:l.lineToolsLocalizedNames.LineToolFibChannel},LineToolFibCircles:{icon:a.lineToolsIcons.LineToolFibCircles,localizedName:l.lineToolsLocalizedNames.LineToolFibCircles,hotKey:Object(n.b)(c)},LineToolFibRetracement:{icon:a.lineToolsIcons.LineToolFibRetracement,localizedName:l.lineToolsLocalizedNames.LineToolFibRetracement},LineToolFibSpeedResistanceArcs:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceArcs,
localizedName:l.lineToolsLocalizedNames.LineToolFibSpeedResistanceArcs},LineToolFibSpeedResistanceFan:{icon:a.lineToolsIcons.LineToolFibSpeedResistanceFan,localizedName:l.lineToolsLocalizedNames.LineToolFibSpeedResistanceFan,hotKey:Object(n.b)(d)},LineToolFibSpiral:{icon:a.lineToolsIcons.LineToolFibSpiral,localizedName:l.lineToolsLocalizedNames.LineToolFibSpiral},LineToolFibTimeZone:{icon:a.lineToolsIcons.LineToolFibTimeZone,localizedName:l.lineToolsLocalizedNames.LineToolFibTimeZone},LineToolFibWedge:{icon:a.lineToolsIcons.LineToolFibWedge,localizedName:l.lineToolsLocalizedNames.LineToolFibWedge},LineToolFlagMark:{icon:a.lineToolsIcons.LineToolFlagMark,localizedName:l.lineToolsLocalizedNames.LineToolFlagMark},LineToolImage:{icon:"",localizedName:l.lineToolsLocalizedNames.LineToolImage},LineToolFlatBottom:{icon:a.lineToolsIcons.LineToolFlatBottom,localizedName:l.lineToolsLocalizedNames.LineToolFlatBottom,hotKey:Object(n.b)(s)},LineToolAnchoredVWAP:{icon:a.lineToolsIcons.LineToolAnchoredVWAP,localizedName:l.lineToolsLocalizedNames.LineToolAnchoredVWAP},LineToolGannComplex:{icon:a.lineToolsIcons.LineToolGannComplex,localizedName:l.lineToolsLocalizedNames.LineToolGannComplex},LineToolGannFixed:{icon:a.lineToolsIcons.LineToolGannFixed,localizedName:l.lineToolsLocalizedNames.LineToolGannFixed},LineToolGannFan:{icon:a.lineToolsIcons.LineToolGannFan,localizedName:l.lineToolsLocalizedNames.LineToolGannFan},LineToolGannSquare:{icon:a.lineToolsIcons.LineToolGannSquare,localizedName:l.lineToolsLocalizedNames.LineToolGannSquare,hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} — fixed increments")})},LineToolHeadAndShoulders:{icon:a.lineToolsIcons.LineToolHeadAndShoulders,localizedName:l.lineToolsLocalizedNames.LineToolHeadAndShoulders},LineToolHorzLine:{icon:a.lineToolsIcons.LineToolHorzLine,localizedName:l.lineToolsLocalizedNames.LineToolHorzLine,hotKey:Object(n.b)({keys:["Alt","H"],text:"{0} + {1}"})},LineToolHorzRay:{icon:a.lineToolsIcons.LineToolHorzRay,localizedName:l.lineToolsLocalizedNames.LineToolHorzRay},LineToolIcon:{icon:a.lineToolsIcons.LineToolIcon,localizedName:l.lineToolsLocalizedNames.LineToolIcon},LineToolInsidePitchfork:{icon:a.lineToolsIcons.LineToolInsidePitchfork,localizedName:l.lineToolsLocalizedNames.LineToolInsidePitchfork},LineToolNote:{icon:a.lineToolsIcons.LineToolNote,localizedName:l.lineToolsLocalizedNames.LineToolNote},LineToolNoteAbsolute:{icon:a.lineToolsIcons.LineToolNoteAbsolute,localizedName:l.lineToolsLocalizedNames.LineToolNoteAbsolute},LineToolSignpost:{icon:a.lineToolsIcons.LineToolSignpost,localizedName:l.lineToolsLocalizedNames.LineToolSignpost},LineToolParallelChannel:{icon:a.lineToolsIcons.LineToolParallelChannel,localizedName:l.lineToolsLocalizedNames.LineToolParallelChannel,hotKey:Object(n.b)(s)},LineToolPitchfan:{icon:a.lineToolsIcons.LineToolPitchfan,localizedName:l.lineToolsLocalizedNames.LineToolPitchfan},LineToolPitchfork:{icon:a.lineToolsIcons.LineToolPitchfork,localizedName:l.lineToolsLocalizedNames.LineToolPitchfork},LineToolPolyline:{
icon:a.lineToolsIcons.LineToolPolyline,localizedName:l.lineToolsLocalizedNames.LineToolPolyline},LineToolPath:{icon:a.lineToolsIcons.LineToolPath,localizedName:l.lineToolsLocalizedNames.LineToolPath},LineToolPrediction:{icon:a.lineToolsIcons.LineToolPrediction,localizedName:l.lineToolsLocalizedNames.LineToolPrediction},LineToolPriceLabel:{icon:a.lineToolsIcons.LineToolPriceLabel,localizedName:l.lineToolsLocalizedNames.LineToolPriceLabel},LineToolPriceNote:{icon:a.lineToolsIcons.LineToolPriceNote,localizedName:l.lineToolsLocalizedNames.LineToolPriceNote,hotKey:Object(n.b)(s)},LineToolArrowMarker:{icon:a.lineToolsIcons.LineToolArrowMarker,localizedName:l.lineToolsLocalizedNames.LineToolArrowMarker},LineToolPriceRange:{icon:a.lineToolsIcons.LineToolPriceRange,localizedName:l.lineToolsLocalizedNames.LineToolPriceRange},LineToolProjection:{icon:a.lineToolsIcons.LineToolProjection,localizedName:l.lineToolsLocalizedNames.LineToolProjection},LineToolRay:{icon:a.lineToolsIcons.LineToolRay,localizedName:l.lineToolsLocalizedNames.LineToolRay},LineToolRectangle:{icon:a.lineToolsIcons.LineToolRectangle,localizedName:l.lineToolsLocalizedNames.LineToolRectangle,hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} — square")})},LineToolRegressionTrend:{icon:a.lineToolsIcons.LineToolRegressionTrend,localizedName:l.lineToolsLocalizedNames.LineToolRegressionTrend},LineToolRiskRewardLong:{icon:a.lineToolsIcons.LineToolRiskRewardLong,localizedName:l.lineToolsLocalizedNames.LineToolRiskRewardLong},LineToolRiskRewardShort:{icon:a.lineToolsIcons.LineToolRiskRewardShort,localizedName:l.lineToolsLocalizedNames.LineToolRiskRewardShort},LineToolFixedRangeVolumeProfile:{icon:a.lineToolsIcons.LineToolFixedRangeVolumeProfile,localizedName:l.lineToolsLocalizedNames.LineToolFixedRangeVolumeProfile},LineToolRotatedRectangle:{icon:a.lineToolsIcons.LineToolRotatedRectangle,localizedName:l.lineToolsLocalizedNames.LineToolRotatedRectangle,hotKey:Object(n.b)(s)},LineToolSchiffPitchfork:{icon:a.lineToolsIcons.LineToolSchiffPitchfork,localizedName:l.lineToolsLocalizedNames.LineToolSchiffPitchfork},LineToolSchiffPitchfork2:{icon:a.lineToolsIcons.LineToolSchiffPitchfork2,localizedName:l.lineToolsLocalizedNames.LineToolSchiffPitchfork2},LineToolSineLine:{icon:a.lineToolsIcons.LineToolSineLine,localizedName:l.lineToolsLocalizedNames.LineToolSineLine},LineToolText:{icon:a.lineToolsIcons.LineToolText,localizedName:l.lineToolsLocalizedNames.LineToolText},LineToolTextAbsolute:{icon:a.lineToolsIcons.LineToolTextAbsolute,localizedName:l.lineToolsLocalizedNames.LineToolTextAbsolute},LineToolThreeDrivers:{icon:a.lineToolsIcons.LineToolThreeDrivers,localizedName:l.lineToolsLocalizedNames.LineToolThreeDrivers},LineToolTimeCycles:{icon:a.lineToolsIcons.LineToolTimeCycles,localizedName:l.lineToolsLocalizedNames.LineToolTimeCycles},LineToolTrendAngle:{icon:a.lineToolsIcons.LineToolTrendAngle,localizedName:l.lineToolsLocalizedNames.LineToolTrendAngle,hotKey:Object(n.b)(s)},LineToolTrendBasedFibExtension:{icon:a.lineToolsIcons.LineToolTrendBasedFibExtension,
localizedName:l.lineToolsLocalizedNames.LineToolTrendBasedFibExtension},LineToolTrendBasedFibTime:{icon:a.lineToolsIcons.LineToolTrendBasedFibTime,localizedName:l.lineToolsLocalizedNames.LineToolTrendBasedFibTime},LineToolTrendLine:{icon:a.lineToolsIcons.LineToolTrendLine,localizedName:l.lineToolsLocalizedNames.LineToolTrendLine,hotKey:Object(n.b)(s)},LineToolInfoLine:{icon:a.lineToolsIcons.LineToolInfoLine,localizedName:l.lineToolsLocalizedNames.LineToolInfoLine},LineToolTriangle:{icon:a.lineToolsIcons.LineToolTriangle,localizedName:l.lineToolsLocalizedNames.LineToolTriangle},LineToolTrianglePattern:{icon:a.lineToolsIcons.LineToolTrianglePattern,localizedName:l.lineToolsLocalizedNames.LineToolTrianglePattern},LineToolVertLine:{icon:a.lineToolsIcons.LineToolVertLine,localizedName:l.lineToolsLocalizedNames.LineToolVertLine,hotKey:Object(n.b)({keys:["Alt","V"],text:"{0} + {1}"})},LineToolCrossLine:{icon:a.lineToolsIcons.LineToolCrossLine,localizedName:l.lineToolsLocalizedNames.LineToolCrossLine},LineToolHighlighter:{icon:a.lineToolsIcons.LineToolHighlighter,localizedName:l.lineToolsLocalizedNames.LineToolHighlighter},SyncDrawing:{icon:r.a.SyncDrawing,iconActive:r.a.SyncDrawingActive,localizedName:window.t("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},arrow:{icon:r.a.arrow,localizedName:window.t("Arrow")},cursor:{icon:r.a.cursor,localizedName:window.t("Cross")},dot:{icon:r.a.dot,localizedName:window.t("Dot")},drawginmode:{icon:r.a.drawginmode,iconActive:r.a.drawginmodeActive,localizedName:window.t("Stay in Drawing Mode")},eraser:{icon:r.a.eraser,localizedName:window.t("Eraser")},group:{icon:r.a.group,localizedName:window.t("Show Hidden Tools")},hideAllDrawings:{icon:r.a.hideAllDrawings,iconActive:r.a.hideAllDrawingsActive,localizedName:window.t("Hide All Drawing Tools"),hotKey:Object(n.b)({keys:["Ctrl","Alt","H"],text:"{0} + {1} + {2}"})},lockAllDrawings:{icon:r.a.lockAllDrawings,iconActive:r.a.lockAllDrawingsActive,localizedName:window.t("Lock All Drawing Tools")},magnet:{icon:r.a.magnet,localizedName:window.t("Magnet Mode snaps drawings placed near price bars to the closest OHLC value"),hotKey:Object(n.b)({keys:["Ctrl"],text:"{0}"})},measure:{icon:r.a.measure,localizedName:window.t("Measure"),hotKey:Object(n.b)({keys:["Shift"],text:window.t("{0} + Click on the chart")})},removeAllDrawingTools:{icon:r.a.removeAllDrawingTools,localizedName:window.t("Remove Drawings")},showObjectsTree:{icon:r.a.showObjectTree,localizedName:window.t("Show Object Tree")},zoom:{icon:r.a.zoom,localizedName:window.t("Zoom In")},"zoom-out":{icon:r.a["zoom-out"],localizedName:window.t("Zoom Out")}};Object(i.isFeatureEnabled)("remove-line-tool-ghost-feed")||(u.LineToolGhostFeed={icon:a.lineToolsIcons.LineToolGhostFeed,localizedName:l.lineToolsLocalizedNames.LineToolGhostFeed})},O5Oz:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 1" width="18" height="1"><rect width="18" height="1" fill="currentColor" rx=".5"/></svg>'},PwLo:function(e,t,o){},
R1RK:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none" stroke="currentColor"><path stroke-linecap="round" d="M15.5 18.5h6m-3 3v-6"/><rect width="6" height="6" rx="1.5" x="6.5" y="6.5"/><rect width="6" height="6" rx="1.5" x="15.5" y="6.5"/><rect width="6" height="6" rx="1.5" x="6.5" y="15.5"/></svg>'},"R4+T":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 8" width="16" height="8"><path fill="currentColor" d="M0 1.475l7.396 6.04.596.485.593-.49L16 1.39 14.807 0 7.393 6.122 8.58 6.12 1.186.08z"/></svg>'},SAe1:function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));var i=o("mrSG"),n=o("q1tI"),a=o("rzV7"),r=o.n(a),l=function(e){function t(t){var o=e.call(this,t)||this;o._handleMediaChange=function(){var e=c(o.state.queries,(function(e,t){return t.matches})),t=!1;for(var i in e)if(e.hasOwnProperty(i)&&o.state.matches[i]!==e[i]){t=!0;break}t&&o.setState({matches:e})};var i=o.props.rules;return o.state=s(i),o}return Object(i.c)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!r()(e,this.props)||(!r()(t.rules,this.state.rules)||!r()(t.matches,this.state.matches))},t.prototype.componentDidMount=function(){this._migrate(null,this.state.queries)},t.prototype.componentDidUpdate=function(e,t){r()(e.rules,this.props.rules)||this._migrate(t.queries,this.state.queries)},t.prototype.componentWillUnmount=function(){this._migrate(this.state.queries,null)},t.prototype.render=function(){return this.props.children(this.state.matches)},t.getDerivedStateFromProps=function(e,t){return r()(e.rules,t.rules)?null:s(e.rules)},t.prototype._migrate=function(e,t){var o=this;null!==e&&c(e,(function(e,t){t.removeListener(o._handleMediaChange)})),null!==t&&c(t,(function(e,t){t.addListener(o._handleMediaChange)}))},t}(n.Component);function s(e){var t=c(e,(function(e,t){return window.matchMedia(t)}));return{queries:t,matches:c(t,(function(e,t){return t.matches})),rules:Object(i.a)({},e)}}function c(e,t){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=t(i,e[i]));return o}},UXdH:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M4 13h5v1H4v-1zM12 13h5v1h-5v-1zM20 13h5v1h-5v-1z"/></svg>'},Uh5y:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M14 6a3 3 0 0 0-3 3v3h8.5a2.5 2.5 0 0 1 2.5 2.5v7a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 6 21.5v-7A2.5 2.5 0 0 1 8.5 12H10V9a4 4 0 0 1 8 0h-1a3 3 0 0 0-3-3zm-1 11a1 1 0 1 1 2 0v2a1 1 0 1 1-2 0v-2zm-6-2.5c0-.83.67-1.5 1.5-1.5h11c.83 0 1.5.67 1.5 1.5v7c0 .83-.67 1.5-1.5 1.5h-11A1.5 1.5 0 0 1 7 21.5v-7z"/></svg>'},VToE:function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M19.76 6.07l-.7.7a13.4 13.4 0 011.93 2.47c.19.3.33.55.42.72l.03.04-.03.04a15 15 0 01-2.09 2.9c-1.47 1.6-3.6 3.12-6.32 3.12-.98 0-1.88-.2-2.7-.52l-.77.76c1.03.47 2.18.76 3.47.76 3.12 0 5.5-1.75 7.06-3.44a16 16 0 002.38-3.38v-.02h.01L22 10l.45.22.1-.22-.1-.22L22 10l.45-.22-.01-.02a5.1 5.1 0 00-.15-.28 16 16 0 00-2.53-3.41zM6.24 13.93l.7-.7-.27-.29a15 15 0 01-2.08-2.9L4.56 10l.03-.04a15 15 0 012.09-2.9c1.47-1.6 3.6-3.12 6.32-3.12.98 0 1.88.2 2.7.52l.77-.76A8.32 8.32 0 0013 2.94c-3.12 0-5.5 1.75-7.06 3.44a16 16 0 00-2.38 3.38v.02h-.01L4 10l-.45-.22-.1.22.1.22L4 10l-.45.22.01.02a5.5 5.5 0 00.15.28 16 16 0 002.53 3.41zm6.09-.43a3.6 3.6 0 004.24-4.24l-.93.93a2.6 2.6 0 01-2.36 2.36l-.95.95zm-1.97-3.69l-.93.93a3.6 3.6 0 014.24-4.24l-.95.95a2.6 2.6 0 00-2.36 2.36zm11.29 7.84l-.8.79a1.5 1.5 0 000 2.12l.59.59a1.5 1.5 0 002.12 0l1.8-1.8-.71-.7-1.8 1.79a.5.5 0 01-.7 0l-.59-.59a.5.5 0 010-.7l.8-.8-.71-.7zm-5.5 3.5l.35.35-.35-.35.01-.02.02-.02.02-.02a4.68 4.68 0 01.65-.5c.4-.27 1-.59 1.65-.59.66 0 1.28.33 1.73.77.44.45.77 1.07.77 1.73a2.5 2.5 0 01-.77 1.73 2.5 2.5 0 01-1.73.77h-4a.5.5 0 01-.42-.78l1-1.5 1-1.5a.5.5 0 01.07-.07zm.74.67a3.46 3.46 0 01.51-.4c.35-.24.75-.42 1.1-.42.34 0 .72.17 1.02.48.3.3.48.68.48 1.02 0 .34-.17.72-.48 1.02-.3.3-.68.48-1.02.48h-3.07l.49-.72.97-1.46zM21.2 2.5L5.5 18.2l-.7-.7L20.5 1.8l.7.7z"/></svg>'},Ve4Q:function(e,t,o){"use strict";o.r(t);var i=o("q1tI"),n=o.n(i),a=o("i8i4"),r=o.n(a),l=o("YFKU"),s=o("Kxc7"),c=o("hY0g"),d=o.n(c),u=o("ogJP"),p=o("CW80"),h=o("mMWL"),m=o("j3hX"),g=o("mrSG"),v=o("Eyy1"),f=o("tc+8"),b=function(e){function t(t,o,i){var n=e.call(this)||this;return n._listenersMappers=[],n._isProcess=!1,n._baseProperty=t,n._undoModel=o,n._undoText=i,n}return Object(g.c)(t,e),t.prototype.destroy=function(){this._baseProperty.destroy()},t.prototype.value=function(){return this._baseProperty.value()},t.prototype.setValue=function(e){var t=this;this._isProcess=!0,this._baseProperty.setValue(e,void 0,{applyValue:function(e,o){return t._undoModel.setProperty(e,o,t._undoText)}}),this._isProcess=!1,this._listenersMappers.forEach((function(e){e.method.call(e.obj,t)}))},t.prototype.subscribe=function(e,t){var o=this,i=function(i){o._isProcess||t.call(e,o)},n={obj:e,method:t,callback:i};this._listenersMappers.push(n),this._baseProperty.subscribe(e,i)},t.prototype.unsubscribe=function(e,t){var o,i=Object(v.ensureDefined)(null===(o=this._listenersMappers.find((function(o){return o.obj===e&&o.method===t})))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(e,i)},t.prototype.unsubscribeAll=function(e){this._baseProperty.unsubscribeAll(e)},t}(o.n(f).a),T=o("turx"),_=o("SAe1"),w=o("0ZwQ"),y=o("uhCe"),L=w.a+"__button";function C(e){var t,o=e.templateButton,i=e.propertyButtons,a=e.commonButtons,r=e.isDrawingFinished,l=null===(t=e.activeChartWidget.model())||void 0===t?void 0:t.selection().dataSources();return l&&l.length?n.a.createElement(_.a,{rules:{isSmallWidth:y.a.TabletSmall,
isSmallHeight:"screen and (max-height: 419px)"}},(function(e){var t=e.isSmallWidth,o=e.isSmallHeight;return n.a.createElement(n.a.Fragment,null,s(),r&&n.a.createElement(n.a.Fragment,null,Boolean(i.length)&&i.map((function(e,i){return n.a.createElement(e.component,Object(g.a)({},e.props,{key:e.props.title+"_"+i,className:L,isSmallScreen:t||o}))})),Boolean(a.length)&&a.map((function(e,i){var a=t||o;return a?e.showForSmallScreen?n.a.createElement(e.component,Object(g.a)({},e.props,{isSmallScreen:a,key:e.props.title+"_"+i,className:L})):null:n.a.createElement(e.component,Object(g.a)({},e.props,{key:e.props.title+"_"+i,className:L}))}))))})):s();function s(){return null===o?null:n.a.createElement(o.component,Object(g.a)({},o.props,{isDrawingFinished:r,className:L}))}}var S=o("JWMC"),z=o("p0W+"),x=o("Xxuz");function N(e){var t=e.title,o=e.activeChartWidget,i=e.className;return n.a.createElement(z.a,{className:i,icon:x,title:t,onClick:function(){Object(S.trackEvent)("GUI","Context action on drawings","Settings"),o.showChartPropertiesForSource(o.model().selection().lineDataSources()[0],void 0,{onWidget:o.onWidget()})},"data-name":"settings"})}var P=o("5hRh"),k=o("TSYQ"),E=o("4rU7"),W=o("ucyy");function O(e){var t=e.className,o=Object(g.e)(e,["className"]);return n.a.createElement(E.a,Object(g.a)({className:k(t,W.button),tooltipPosition:"horizontal"},o))}var A=o("43BO"),B=o("Uh5y");function M(e){var t=e.activeChartWidget,o=e.className,i=t.model().selection().lineDataSources()[0].properties().frozen,a=Object(P.a)(i),r=a?{title:Object(l.t)("Unlock"),icon:A}:{title:Object(l.t)("Lock"),icon:B};return n.a.createElement(O,Object(g.a)({className:o,isActive:Boolean(a),onClick:function(){Object(S.trackEvent)("GUI","Context action on drawings","Lock"),t.toggleLockSelectedObject()},"data-name":Boolean(a)?"unlock":"lock"},r))}var I=o("aVjL");function j(e){var t=e.title,o=e.activeChartWidget,i=e.className;return n.a.createElement(z.a,{className:i,icon:I,title:t,"data-name":"remove",onClick:function(){Object(S.trackEvent)("GUI","Context action on drawings","Remove"),o.removeSelectedSources()}})}var D=o("Iivm"),V=o("/3z9"),F=o("lxNp"),R=o("82wv"),H=o("IAAr"),U=o("7KDR"),G=o("ycI/"),K=o("5VQP"),q=o("HZKX"),Q=o("HWhk"),J=o("9dnG"),Z=o("dmHa");function $(e){var t=e.title,a=e.activeChartWidget,r=e.isSmallScreen,s=e.className,c=a.model(),d=c.selection().lineDataSources(),u=Object(i.useState)([]),p=u[0],h=u[1],m=Object(i.useRef)(null),f=Object(i.useMemo)((function(){return new q.ActionsProvider(a)}),[a]);return n.a.createElement(n.a.Fragment,null,n.a.createElement(G.a,{keyCode:27,eventType:"keyup",handler:function(){Object(v.ensureNotNull)(m.current).close()}}),n.a.createElement(R.b,{className:s,ref:m,arrow:!1,onOpen:r?void 0:function(){var e=[new U.Action({label:Object(l.t)("Visual order"),icon:J,subItems:b(),name:"visual-order"})],t=function(){var e=[],t=V.isMacKeyboard?" +":"",i=d.filter((function(e){return e.cloneable()}));i.length>0&&e.push(new U.Action({name:"clone",icon:o("+KIV"),
shortcutHint:V.humanReadableModifiers(F.Modifiers.Mod)+t+" Drag",label:Object(l.t)("Clone"),onExecute:function(){c.cloneLineTools(i,!1),Object(S.trackEvent)("GUI","Context action on drawings","Clone")}}));var n=d.filter((function(e){return e.copiable()}));n.length>0&&e.push(new U.Action({name:"copy",label:Object(l.t)("Copy"),shortcutHint:V.humanReadableModifiers(F.Modifiers.Mod)+t+" C",onExecute:function(){a.chartWidgetCollection().clipboard.uiRequestCopy(n)}}));if(!function(){if(!(null==a?void 0:a.isMultipleLayout()))return!1;return d.some((function(e){return e.isSynchronizable()}))}())return e;d.filter((function(e){return!!e.linkKey})).length?e.push(new U.Action({name:"stop-sync",label:Object(l.t)("Stop syncing"),onExecute:function(){c.unlinkLines&&c.unlinkLines(d)}})):e.push(new U.Action({name:"sync",label:Object(l.t)("Sync to all charts"),onExecute:function(){c.copyToOtherCharts(d)}}));return e}();t.length&&e.push.apply(e,Object(g.f)([new U.Separator],t));e.push(new U.Separator,new U.Action({label:Object(l.t)("Hide"),icon:Z,onExecute:function(){a.hideSelectedObject()},name:"hide"})),h(e)},onClick:r?function(e){f.contextMenuActionsForSources(d).then((function(t){K.ContextMenuManager.createMenu(t,{mode:"drawer","data-name":"more-menu"}).then((function(t){return t.show(e)}))}))}:void 0,title:t,content:n.a.createElement(D.a,{icon:Q}),"data-name":"more",menuDataName:"more-menu"},n.a.createElement(H.a,{parentIsOpened:!0,items:p})));function b(){var e=[],t=c.availableZOrderOperations(d),o=new U.Action({name:"bring-to-front",label:Object(l.t)("Bring to Front"),onExecute:function(){c.bringToFront(d)},disabled:1===d.length&&!t.bringToFrontEnabled}),i=new U.Action({name:"send-to-back",label:Object(l.t)("Send to Back"),onExecute:function(){c.sendToBack(d)},disabled:1===d.length&&!t.sendToBackEnabled}),n=new U.Action({name:"bring-forward",label:Object(l.t)("Bring Forward"),onExecute:function(){c.bringForward(d)},disabled:1===d.length&&!t.bringForwardEnabled}),a=new U.Action({name:"send-backward",label:Object(l.t)("Send Backward"),onExecute:function(){c.sendBackward(d)},disabled:1===d.length&&!t.sendBackwardEnabled});return e.push(o,i,n,a),e}}var Y=o("972a"),X=o("bQEj"),ee=o("UXdH"),te=o("ZSM+");function oe(e){var t=e.property,o=e.model,a=e.title,r=e.className,s=Object(P.a)(t),c=Object(i.useMemo)((function(){return[new U.Action({icon:X,label:Object(l.t)("Line"),active:Y.LineStyle.Solid===s,onExecute:function(){return o.setProperty(t,Y.LineStyle.Solid,a)}}),new U.Action({icon:ee,label:Object(l.t)("Dashed line"),active:Y.LineStyle.Dashed===s,onExecute:function(){return o.setProperty(t,Y.LineStyle.Dashed,a)}}),new U.Action({icon:te,label:Object(l.t)("Dotted line"),active:Y.LineStyle.Dotted===s,onExecute:function(){return o.setProperty(t,Y.LineStyle.Dotted,a)}})]}),[o,t,s]);return n.a.createElement(R.b,{className:r,arrow:!1,content:n.a.createElement(D.a,{icon:ie(s)}),title:a,"data-name":e["data-name"],menuDataName:e["data-name"]+"-menu"},n.a.createElement(H.a,{items:c}))}function ie(e){switch(e){case Y.LineStyle.Solid:return X
;case Y.LineStyle.Dashed:return ee;case Y.LineStyle.Dotted:return te;default:return""}}var ne=[10,11,12,14,16,20,24,28,32,40];function ae(e){var t=e.property,o=e.model,i=e.title,a=e.className,r=Object(P.a)(t),l=ne.map((function(e){return new U.Action({label:e.toString(),onExecute:function(){return o.setProperty(t,e,i)},active:e===r})}));return n.a.createElement(R.b,{arrow:!1,content:r,className:a,title:i,"data-name":e["data-name"],menuDataName:e["data-name"]+"-menu"},n.a.createElement(H.a,{items:l}))}var re=o("aIyQ"),le=o.n(re),se=(o("m/4m"),o("ADFN"),function(e){function t(o){var i=e.call(this,t._prepareOptions(o))||this;return i._onWidgetStateChangedDelegate=new le.a,i._statedWidgets=[],i._currentPopup=null,i._onWindowClickedListener=i._onWindowClicked.bind(i),i}return Object(g.c)(t,e),t.prototype.show=function(){e.prototype.show.call(this),document.addEventListener("mousedown",this._onWindowClickedListener)},t.prototype.hide=function(t){e.prototype.hide.call(this,t),document.removeEventListener("mousedown",this._onWindowClickedListener)},t.prototype.destroy=function(){this._closePopup(),e.prototype.destroy.call(this)},t.prototype.addGroupedWidget=function(e,o){void 0===o&&(o={}),Object(v.assert)(e.states.length>0&&-1!==t._getStateIndexById(e,e.currentStateId),"Argument is invalid (count: "+e.states.length+", state: "+e.currentStateId+")");var i=document.createElement("div");i.className="tv-grouped-floating-toolbar__widget-wrapper apply-common-tooltip",e.widgetAddClass&&i.classList.add(e.widgetAddClass),i.setAttribute("title",e.tooltip);var n={isEnabled:!0,statedWidget:e,toolbarWidget:i},a=this._onWidgetClicked.bind(this,n);n.clickListener=a,i.addEventListener("click",a),this._updateWidgetPreview(n),this.addWidget(i,o),this._statedWidgets.push(n)},t.prototype.findGroupedWidget=function(e){for(var t=this._statedWidgets.length,o=0;o<t;++o){if(this._statedWidgets[o].statedWidget.id===e)return o}return-1},t.prototype.removeGroupedWidget=function(e){for(var t=this._statedWidgets.length,o=0;o<t;++o){var i=this._statedWidgets[o];if(i.statedWidget.id===e)return this._isPopupCreatedForWidget(e)&&this._closePopup(),void 0!==i.clickListener&&i.toolbarWidget.removeEventListener("click",i.clickListener),this.removeWidget(i.toolbarWidget),this._statedWidgets.splice(o,1),void this._updatePopupPosition()}Object(v.assert)(!1,"Unknown groupId("+e+")")},t.prototype.updateGroupedWidget=function(e,t){this._closePopup();var o=this._ensuredGetWidgetDataForId(e);o.statedWidget.currentStateId=t.currentStateId,o.statedWidget.states=t.states,this._updateWidgetPreview(o)},t.prototype.setGroupedWidgetEnabled=function(e,t){var o=this._ensuredGetWidgetDataForId(e);o.isEnabled=t,o.toolbarWidget.classList.toggle("i-disabled",!t)},t.prototype.setGroupedWidgetState=function(e,o){var i=this._ensuredGetWidgetDataForId(e);Object(v.assert)(-1!==t._getStateIndexById(i.statedWidget,o),"Unknown stateId ("+o+")"),i.statedWidget.currentStateId=o,this._updateSubWidgetsState(i.statedWidget),this._updateWidgetPreview(i)},
t.prototype.onWidgetStateChanged=function(){return this._onWidgetStateChangedDelegate},t.prototype._onVerticalChanged=function(e,t){this._updatePopupPosition()},t.prototype._ensuredGetWidgetDataForId=function(e){for(var t=0,o=this._statedWidgets;t<o.length;t++){var i=o[t];if(i.statedWidget.id===e)return i}throw new Error("Unknown groupId("+e+")")},t.prototype._onWidgetClicked=function(e,t){var o=this._currentPopup&&this._isPopupCreatedForWidget(e.statedWidget.id);this._closePopup(),!o&&e.isEnabled&&this._createPopup(e)},t.prototype._createPopup=function(e){var t=this,o={createdFor:e.toolbarWidget,element:document.createElement("div"),stateWidgetId:e.statedWidget.id,widgets:[]};o.element.className+="tv-grouped-floating-toolbar__popup js-popup";var i=e.statedWidget.states.length;e.statedWidget.states.forEach((function(n,a){var r=t._createSubWidget(e,n),l=t._onSubWidgetClicked.bind(t,e,n.id);r.addEventListener("click",l),o.widgets.push({clickListener:l,stateWidget:n,widget:r}),r.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-right-"+a),r.classList.add("tv-grouped-floating-toolbar__sub-widget--slide-left-"+(i-a+1)),n.readonly||o.element.appendChild(r)})),this._currentPopup=o,this._updateSubWidgetsState(e.statedWidget),e.toolbarWidget.classList.add("i-dropped"),this._getWidget().appendChild(this._currentPopup.element),Promise.resolve().then((function(){t._currentPopup&&t._currentPopup.element.classList.add("i-opened")})),this._updatePopupPosition()},t.prototype._closePopup=function(){var e=this;if(this._statedWidgets.forEach((function(e){e.toolbarWidget.classList.remove("i-dropped")})),this._currentPopup){var t=this._currentPopup.widgets,o=this._currentPopup.element;this._currentPopup=null,t.forEach((function(e){e.widget.removeEventListener("click",e.clickListener)})),o.classList.remove("i-opened"),o.addEventListener("transitionend",(function(t){t.target===o&&e._getWidget().removeChild(o)}))}},t.prototype._updateWidgetPreview=function(e){var o=t._getStateIndexById(e.statedWidget,e.statedWidget.currentStateId);Object(v.assert)(-1!==o,"Unknown state id: "+e.statedWidget.currentStateId);var i=e.statedWidget.states[o].widget.cloneNode(!0);e.toolbarWidget.firstChild?e.toolbarWidget.replaceChild(i,e.toolbarWidget.firstChild):(e.toolbarWidget.appendChild(i),e.toolbarWidget.appendChild(t._createCaret()))},t.prototype._updateSubWidgetsState=function(e){this._currentPopup&&this._isPopupCreatedForWidget(e.id)&&this._currentPopup.widgets.forEach((function(o){o.widget.classList.toggle(t._activeSubWidgetClass,o.stateWidget.id===e.currentStateId)}))},t.prototype._updatePopupPosition=function(){if(this._currentPopup){var e=this._currentPopup.createdFor,t=this._getWidget().getBoundingClientRect(),o=this._findWrapperForWidget(e);if(!o||!this._currentPopup)throw new Error("Toolbar has no wrapper for preview's widget or there is no popup");var i=o.getBoundingClientRect(),n=this._currentPopup.element.getBoundingClientRect(),a=this._currentPopup.element
;if(this.isVertical())a.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),a.style.top=i.top-t.top+1+"px",a.style.left="",t.left>window.innerWidth-t.right?a.classList.add("tv-grouped-floating-toolbar__popup--at-left"):a.classList.remove("tv-grouped-floating-toolbar__popup--at-left");else{a.classList.remove("tv-grouped-floating-toolbar__popup--at-left");var r=0;i.left+n.width>window.innerWidth?t.left+n.width>window.innerWidth&&(r=t.width-n.width):r=i.left-t.left+1,a.style.left=r+"px",t.bottom+n.height>window.innerHeight?a.classList.add("tv-grouped-floating-toolbar__popup--at-top"):(a.classList.remove("tv-grouped-floating-toolbar__popup--at-top"),a.style.top="")}}},t.prototype._isPopupCreatedForWidget=function(e){return Boolean(this._currentPopup&&this._currentPopup.stateWidgetId===e)},t.prototype._createSubWidget=function(e,t){var o=document.createElement("div");return o.className+="tv-grouped-floating-toolbar__sub-widget",e.statedWidget.stateWidgetAddClass&&o.classList.add(e.statedWidget.stateWidgetAddClass),o.appendChild(t.widget),o},t.prototype._onSubWidgetClicked=function(e,t){this._closePopup(),e.statedWidget.currentStateId!==t&&(this.setGroupedWidgetState(e.statedWidget.id,t),this._onWidgetStateChangedDelegate.fire(e.statedWidget.id,t))},t.prototype._onWindowClicked=function(e){if(this.isVisible()&&this._currentPopup&&!t._isEventInElement(e,this._currentPopup.element)){for(var o=0;o<this._statedWidgets.length;++o)if(t._isEventInElement(e,this._statedWidgets[o].toolbarWidget))return;this._closePopup()}},t._getStateIndexById=function(e,t){for(var o=0;o<e.states.length;++o)if(e.states[o].id===t)return o;return-1},t._createCaret=function(){var e=document.createElement("div");return e.className="tv-caret tv-caret--small tv-caret--colored tv-grouped-floating-toolbar__caret",e},t._prepareOptions=function(e){return e.addClass?e.addClass+=" tv-grouped-floating-toolbar":e.addClass=" tv-grouped-floating-toolbar",e},t._isEventInElement=function(e,t){return e.target===t||t.contains(e.target)},t._activeSubWidgetClass="tv-grouped-floating-toolbar__sub-widget--current",t}(w.b)),ce=o("yMne"),de=o("vqb8"),ue=o("2O5g"),pe=o("2EWL"),he=o("d7Kh");function me(e){var t=e.activeChartWidget,o=e.className,i=t.model(),a=i.selection().lineDataSources()[0],r=a.hasAlert,s=Object(de.a)({watchedValue:r,defaultValue:!1}),c=s?{title:Object(l.t)("Edit Alert"),icon:he,onClick:function(){window.runOrSignIn((function(){a.editAlert("linetool_toolbar_edit_alert")}),{source:"Alert edit from line properties"})}}:{title:Object(l.t)("Add Alert"),icon:pe,onClick:function(){Object(S.trackEvent)("GUI","CreateAlert","DrawingPanel"),window.runOrSignIn((function(){Object(ue.invokeAlertEditorWithOnlineSeries)({dataSourceHub:i.model(),drawing:a,actionSource:"linetool_toolbar_add_alert"})}),{source:"Alert add from line properties"})}};return n.a.createElement(O,Object(g.a)({className:o,isActive:s,"data-name":s?"edit-alert":"add-alert"},c))}o.d(t,"LineToolPropertiesWidgetBase",(function(){return ge}));var ge=function(){function e(e){var t=this
;this._isDrawingFinished=new d.a(!0),this._currentTool=null,this._updateVisibilityTimeout=null,this._lineWidthsProperty=null,this._lineColorsProperty=null,this._currentProperties=null,this._container=null,this._toolbarRendered=!1,this._templatesButton=null,this._propertyButtons=[],this._commonButtons=[],this._handleSourceEdit=function(e){h.isDirectionalMovementActive.value()||(e?t._floatingToolbar.hide(!0):t._toolbarRendered&&t._floatingToolbar.show())},this._chartWidgetCollection=e,this._floatingToolbar=new se({defaultPosition:{top:ce.b+15,left:window.innerWidth/2},positionSettingsKey:"properties_toolbar.position",positionStorageType:"device",layout:"horizontal","data-name":"drawing-toolbar"}),this._container=this._floatingToolbar.getReactWidgetContainer(),h.isToolMovingNow.subscribe(this._handleSourceEdit),h.isToolEditingNow.subscribe(this._handleSourceEdit)}return e.prototype.activeChartWidget=function(){return this._chartWidgetCollection.activeChartWidget.value()},e.prototype.selectedSources=function(){return this._chartWidgetCollection.selectedSources.value()},e.prototype.hide=function(){var e=this;this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout((function(){e._floatingToolbar.hide(!0),e._isToolbarRendered()&&e._unmountToolbar(),e._clearProperties(),e._clearCommonButtons()}),0)},e.prototype._clearProperties=function(){this._clearPropertyButtons(),this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._currentProperties&&(this._currentProperties=null)},e.prototype._show=function(){var e=this;this._updateVisibilityTimeout&&clearTimeout(this._updateVisibilityTimeout),this._updateVisibilityTimeout=setTimeout((function(){e._renderToolbar(),e._floatingToolbar.show(),e._floatingToolbar.checkPosition()}),0)},e.prototype._addPropertyButton=function(e){this._propertyButtons.push(e),this._renderToolbar()},e.prototype._addCommonButton=function(e){this._commonButtons.push(e),this._renderToolbar()},e.prototype._addTemplatesButton=function(e){this._templatesButton=e},e.prototype._renderToolbar=function(){null!==this._container&&this.activeChartWidget()&&this.activeChartWidget().model()&&(r.a.render(n.a.createElement(C,{templateButton:this._templatesButton,propertyButtons:this._propertyButtons,commonButtons:this._commonButtons,isDrawingFinished:this._isDrawingFinished.value(),activeChartWidget:this.activeChartWidget()}),this._container),this._toolbarRendered=!0)},e.prototype._unmountToolbar=function(){null!==this._container&&(r.a.unmountComponentAtNode(this._container),this._toolbarRendered=!1)},e.prototype._clearTemplatesButton=function(){this._templatesButton=null},e.prototype._clearPropertyButtons=function(){this._propertyButtons=[]},e.prototype._clearCommonButtons=function(){this._commonButtons=[]},e.prototype._isToolbarRendered=function(){return this._toolbarRendered},e.prototype._createSettingsButton=function(){
if(!(this.selectedSources().length>1)){var e={component:N,props:{title:Object(l.t)("Settings"),activeChartWidget:this.activeChartWidget()}};this._addCommonButton(e)}},e.prototype._createLockButton=function(){var e={component:M,props:{title:"Lock",activeChartWidget:this.activeChartWidget()}};this._addCommonButton(e)},e.prototype._createRemoveButton=function(){var e={component:j,props:{title:Object(l.t)("Remove"),activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0};this._addCommonButton(e)},e.prototype._createDotsButton=function(){this._addCommonButton({component:$,props:{title:Object(l.t)("More"),activeChartWidget:this.activeChartWidget()},showForSmallScreen:!0})},e.prototype._createAlertButton=function(){if(!(this.selectedSources().length>1)){var e=this.selectedSources()[0];if(e&&(!e||e.canHasAlert())){var t={component:me,props:{title:"Alert",activeChartWidget:this.activeChartWidget()}};this._addCommonButton(t)}}},e.prototype._createSourceActions=function(){s.enabled("alerts")&&this._createAlertButton(),this._createLockButton()},e.prototype._createLineStyleButton=function(e){var t=this.selectedSources();if(0===t.length)return!1;var o={component:oe,props:{property:t[0].properties().linestyle||e,title:Object(l.t)("Style"),model:this.activeChartWidget().model(),"data-name":"style"}};return this._addPropertyButton(o),!0},e.prototype._createFontSizeButton=function(e){var t=this.selectedSources();if(0===t.length)return!1;var o={component:ae,props:{property:t[0].properties().fontsize||e,title:Object(l.t)("Font Size"),model:this.activeChartWidget().model(),"data-name":"font-size"}};return this._addPropertyButton(o),!0},e.prototype._createCommonButtons=function(){this._commonButtons.length&&this._clearCommonButtons(),s.enabled("property_pages")&&this._createSettingsButton(),this._createSourceActions(),this._createRemoveButton(),this._createDotsButton()},e.prototype._prepareProperties=function(e){var t=this.selectedSources().filter((function(t){return Object(p.isLineTool)(t)&&t.properties()[e]}));if(!(t.filter((function(t){return t.properties()[e].visible()})).length<1))return t.map((function(t){return t.properties()[e]})).filter(u.notNull)},e.prototype._createProperty=function(e,t,o,i){if(t){var n=this._prepareProperties(o);if(!n)return;var a=this.activeChartWidget().model();return this._isWidthProperty(n[0])?new b(new m.MultipleLineWidthsProperty(n),a,i):new T.b(new m.MultipleLineColorsProperty(n),a,i)}if(e&&e.visible())return this._isWidthProperty(e)?new m.MultipleLineWidthsProperty([e]):new T.a(new m.MultipleLineColorsProperty([e]))},e.prototype._shouldShowBackgroundProperty=function(e,t){return!t||!t.fillBackground||!!t.fillBackground.value()},e.prototype._isDrawingTool=function(e){return Boolean(null==e?void 0:e.toLowerCase().includes("linetool"))},e.prototype._isWidthProperty=function(e){return e instanceof m.LineToolWidthsProperty},e}()},"W0/v":function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" d="M1.5 11.5l-.7.7a1 1 0 0 0-.3.71v3.59h3.59a1 1 0 0 0 .7-.3l.71-.7m-4-4l9-9m-9 9l2 2m2 2l9-9m-9 9l-2-2m11-7l1.3-1.3a1 1 0 0 0 0-1.4l-2.6-2.6a1 1 0 0 0-1.4 0l-1.3 1.3m4 4l-4-4m-7 11l9-9"/></svg>'},WHEt:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path d="M18 15h8v-1h-8z"/><path d="M14 18v8h1v-8zM14 3v8h1v-8zM3 15h8v-1h-8z"/></g></svg>'},WbBG:function(e,t,o){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},X1vi:function(e,t,o){e.exports={wrap:"wrap-2EG6_6QR",icon:"icon-2EG6_6QR",colorBg:"colorBg-2EG6_6QR",color:"color-2EG6_6QR",multicolor:"multicolor-2EG6_6QR",white:"white-2EG6_6QR"}},Xxuz:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentcolor" fill-rule="evenodd" clip-rule="evenodd" d="M13 5.5c0-.28.22-.5.5-.5h1c.28 0 .5.22.5.5V7.05l.4.09c.9.18 1.73.53 2.46 1.02l.34.23.29-.3.81-.8c.2-.2.52-.2.71 0l.7.7.36-.35-.35.35c.2.2.2.51 0 .7l-.82.82-.29.29.23.34c.49.73.84 1.57 1.02 2.46l.08.4H22.5c.28 0 .5.22.5.5v1a.5.5 0 0 1-.5.5H20.95l-.09.4c-.18.9-.53 1.73-1.02 2.46l-.23.34.3.29.8.81c.2.2.2.52 0 .71l-.7.7a.5.5 0 0 1-.7 0l-.82-.8-.29-.3-.34.23c-.73.49-1.57.84-2.46 1.02l-.4.08V22.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5V20.95l-.4-.09a6.96 6.96 0 0 1-2.46-1.02l-.34-.23-.29.3-.81.8.35.36-.35-.35a.5.5 0 0 1-.71 0l-.7-.71a.5.5 0 0 1 0-.7l-.36-.36.35.35.82-.81.29-.29-.23-.34a6.96 6.96 0 0 1-1.02-2.46l-.08-.4H5.5a.5.5 0 0 1-.5-.5v-1c0-.28.22-.5.5-.5H7.05l.09-.4c.18-.9.53-1.73 1.02-2.46l.23-.34-.3-.29-.8-.81a.5.5 0 0 1 0-.71l.7-.7c.2-.2.51-.2.7 0l.82.8.29.3.34-.23a6.96 6.96 0 0 1 2.46-1.02l.4-.08V5.5zm.5-1.5c-.83 0-1.5.67-1.5 1.5v.75c-.73.2-1.43.48-2.06.86l-.54-.53a1.5 1.5 0 0 0-2.12 0l-.7.7a1.5 1.5 0 0 0 0 2.12l.53.54A7.95 7.95 0 0 0 6.25 12H5.5c-.83 0-1.5.67-1.5 1.5v1c0 .83.67 1.5 1.5 1.5h.75c.2.73.48 1.43.86 2.06l-.53.54a1.5 1.5 0 0 0 0 2.12l.7.7a1.5 1.5 0 0 0 2.12 0l.54-.53c.63.38 1.33.67 2.06.86v.75c0 .83.67 1.5 1.5 1.5h1c.83 0 1.5-.67 1.5-1.5v-.75a7.95 7.95 0 0 0 2.06-.86l.54.53a1.5 1.5 0 0 0 2.12 0l.7-.7a1.5 1.5 0 0 0 0-2.12l-.53-.54c.38-.63.67-1.33.86-2.06h.75c.83 0 1.5-.67 1.5-1.5v-1c0-.83-.67-1.5-1.5-1.5h-.75a7.95 7.95 0 0 0-.86-2.06l.53-.54a1.5 1.5 0 0 0 0-2.12l-.7-.7a1.5 1.5 0 0 0-2.12 0l-.54.53A7.95 7.95 0 0 0 16 6.25V5.5c0-.83-.67-1.5-1.5-1.5h-1zM12 14a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm2-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/></svg>'},"ZSM+":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" fill="currentColor"><circle cx="9" cy="14" r="1"/><circle cx="4" cy="14" r="1"/><circle cx="14" cy="14" r="1"/><circle cx="19" cy="14" r="1"/><circle cx="24" cy="14" r="1"/></svg>'},b2d7:function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));var i,n,a=o("aIyQ"),r=o.n(a),l=o("Vdly");!function(e){function t(){e.favorites=[],
Object(l.getJSON)("chart.favoriteDrawings",[]).forEach((function(t){o(t.tool||t)&&e.favorites.push(t.tool||t)})),e.favoritesSynced.fire()}function o(e){return"string"==typeof e&&""!==e}e.favorites=[],e.favoritesSynced=new r.a,e.favoriteIndex=function(t){return e.favorites.indexOf(t)},e.isValidLineToolName=o,e.saveFavorites=function(t){Object(l.setJSON)("chart.favoriteDrawings",e.favorites,t)},t(),l.onSync.subscribe(null,t)}(i||(i={})),function(e){function t(e){return i.isValidLineToolName(e)}function o(){return i.favorites.length}function n(e){return-1!==i.favoriteIndex(e)}e.favoriteAdded=new r.a,e.favoriteRemoved=new r.a,e.favoriteMoved=new r.a,e.favoritesSynced=i.favoritesSynced,e.favorites=function(){return i.favorites.slice()},e.isValidLineToolName=t,e.favoritesCount=o,e.favorite=function(e){return e<0||e>=o()?"":i.favorites[e]},e.addFavorite=function(o,a){return!(n(o)||!t(o))&&(i.favorites.push(o),i.saveFavorites(a),e.favoriteAdded.fire(o),!0)},e.removeFavorite=function(t,o){var n=i.favoriteIndex(t);return-1!==n&&(i.favorites.splice(n,1),i.saveFavorites(o),e.favoriteRemoved.fire(t),!0)},e.isFavorite=n,e.moveFavorite=function(n,a,r){if(a<0||a>=o()||!t(n))return!1;var l=i.favoriteIndex(n);return-1!==l&&a!==l&&(i.favorites.splice(l,1),i.favorites.splice(a,0,n),i.saveFavorites(r),e.favoriteMoved.fire(n,l,a),!0)}}(n||(n={}))},bQEj:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path stroke="currentColor" d="M4 13.5h20"/></svg>'},d7Kh:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" d="M8.5 6a3.5 3.5 0 0 0-2.93 5.42 8.53 8.53 0 0 1 4.85-4.85A3.48 3.48 0 0 0 8.5 6zM4 9.5c0 1.2.46 2.27 1.22 3.08A8.53 8.53 0 0 0 13.5 23a8.5 8.5 0 0 0 8.28-10.42A4.49 4.49 0 0 0 18.5 5c-1.2 0-2.27.46-3.08 1.22a8.53 8.53 0 0 0-3.84 0A4.49 4.49 0 0 0 4 9.5zm12.58-2.93a8.53 8.53 0 0 1 4.85 4.85 3.5 3.5 0 0 0-4.85-4.85zM6 14.5a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0zm8 .5V9h-1v5h-3v1h4z"/></svg>'},dRg2:function(e,t,o){e.exports={item:"item-3Te2Sp8a",withIcon:"withIcon-3Te2Sp8a",icon:"icon-3Te2Sp8a",labelRow:"labelRow-3Te2Sp8a",multiWidth:"multiWidth-3Te2Sp8a",buttonWrap:"buttonWrap-3Te2Sp8a",buttonLabel:"buttonLabel-3Te2Sp8a"}},gb5g:function(e,t,o){e.exports={button:"button-5-QHyx-s",hover:"hover-5-QHyx-s",bg:"bg-5-QHyx-s",icon:"icon-5-QHyx-s",isActive:"isActive-5-QHyx-s",isTransparent:"isTransparent-5-QHyx-s",isGrayed:"isGrayed-5-QHyx-s",isHidden:"isHidden-5-QHyx-s"}},guTw:function(e,t,o){"use strict";var i=o("fZEr"),n=o("LC+v").store,a=o("/yp2");function r(e,t){this._toolName=e,this._applyTemplate=t,this.templatesDeferred=this.loadData()}r.prototype.getData=function(){return n.getState().templates[this._toolName]},r.prototype.loadData=function(){var e=$.Deferred();return this.getData()?e.resolve():(n.dispatch(a.getTemplates(this._toolName,(function(){e.resolve()}))),e)},r.prototype.templatesLoaded=function(){return this.templatesDeferred},r.prototype.loadTemplate=function(e,t){var o=this
;n.dispatch(a.loadTemplate(this._toolName,e,(function(e){o._applyTemplate(e),t&&t()})))},r.prototype.removeTemplate=function(e){e&&n.dispatch(a.startRemoveTemplate(this._toolName,e))},r.prototype.saveTemplate=function(e,t){if(e&&t){e=TradingView.clean(e);n.dispatch(a.saveTemplate(this._toolName,e,t))}},r.prototype.deleteAction=function(e){var t=e,o=this;runOrSignIn((function(){var n=$.t("Do you really want to delete Drawing Template '{name}' ?").format({name:e});i.showConfirm({text:n,onConfirm:function(e){o.removeTemplate(t),e.dialogClose()}})}),{source:"Delete line tool template"})},r.prototype.showSaveDialog=function(e){var t=this;runOrSignIn((function(){i.showRename({title:$.t("Save Drawing Template As"),text:$.t("Template name")+":",maxLength:64,onRename:function(o){if(-1!==t.getData().indexOf(o.newValue)){var n=$.t("Drawing Template '{name}' already exists. Do you really want to replace it?").format({name:o.newValue});i.showConfirm({text:n,onConfirm:function(t){e(o.newValue),t.dialogClose(),o.dialogClose()},onClose:o.focusInput},o.innerManager)}else e(o.newValue),o.dialogClose()}})}),{source:"Save line tool template",sourceMeta:"Chart"})},e.exports=r},kmdM:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/><path d="M13 16V9h-1v7z"/></svg>'},lZXH:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30" width="30" height="30"><path fill="currentColor" d="M5.5 13A2.5 2.5 0 0 0 3 15.5 2.5 2.5 0 0 0 5.5 18 2.5 2.5 0 0 0 8 15.5 2.5 2.5 0 0 0 5.5 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5A2.5 2.5 0 0 0 15 18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 15 13zm9.5 0a2.5 2.5 0 0 0-2.5 2.5 2.5 2.5 0 0 0 2.5 2.5 2.5 2.5 0 0 0 2.5-2.5 2.5 2.5 0 0 0-2.5-2.5z"/></svg>'},"m/4m":function(e,t,o){},mQbF:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 15" width="13" height="15" fill="none"><path stroke="currentColor" d="M4 14.5h2.5m2.5 0H6.5m0 0V.5m0 0h-5a1 1 0 0 0-1 1V4m6-3.5h5a1 1 0 0 1 1 1V4"/></svg>'},mbEK:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="currentColor"><path d="M17.646 18.354l4 4 .708-.708-4-4z"/><path d="M12.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17zm0-1a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15z"/><path d="M9 13h7v-1H9z"/></svg>'},mgFB:function(e,t,o){"use strict";o.r(t);var i=o("mrSG"),n=o("YFKU"),a=(o("EsMY"),o("q1tI")),r=o.n(a),l=o("TSYQ"),s=o.n(l),c=o("Vdly"),d=o("Kxc7"),u=o("mMWL"),p=o("zL3Q"),h=o("FQhm"),m=o("aIyQ"),g=o.n(m),v=o("qFKp"),f=o("mNbo"),b=o("MP+M"),T=function(){function e(e){this._drawingsAccess=e||{tools:[],type:"black"}}return e.prototype.isToolEnabled=function(e){var t=this._findTool(e);return!(!t||!t.grayed)||("black"===this._drawingsAccess.type?!t:!!t)},e.prototype.isToolGrayed=function(e){var t=this._findTool(e);return Boolean(t&&t.grayed)
},e.prototype._findTool=function(e){return this._drawingsAccess.tools.find((function(t){return t.name===e}))},e}(),_=o("/3z9"),w=o("+GxX"),y=[{id:"linetool-group-cursors",title:window.t("Cursors"),items:[{name:"cursor"},{name:"dot"},{name:"arrow"},{name:"eraser"}]},{id:"linetool-group-trend-line",title:window.t("Trend Line Tools"),items:[{name:"LineToolTrendLine",hotkeyHash:_.Modifiers.Alt+84},{name:"LineToolInfoLine"},{name:"LineToolTrendAngle"},{name:"LineToolAnchoredVWAP"},{name:"LineToolHorzLine",hotkeyHash:_.Modifiers.Alt+72},{name:"LineToolHorzRay"},{name:"LineToolVertLine",hotkeyHash:_.Modifiers.Alt+86},{name:"LineToolCrossLine",hotkeyHash:_.Modifiers.Alt+67},{name:"LineToolArrow"},{name:"LineToolRay"},{name:"LineToolExtended"},{name:"LineToolParallelChannel"},{name:"LineToolDisjointAngle"},{name:"LineToolFlatBottom"},{name:"LineToolRegressionTrend"}].filter(Boolean)},{id:"linetool-group-gann-and-fibonacci",title:window.t("Gann and Fibonacci Tools"),items:[{name:"LineToolPitchfork"},{name:"LineToolSchiffPitchfork2"},{name:"LineToolSchiffPitchfork"},{name:"LineToolInsidePitchfork"},{name:"LineToolPitchfan"},{name:"LineToolGannSquare"},{name:"LineToolGannComplex"},{name:"LineToolGannFixed"},{name:"LineToolGannFan"},{name:"LineToolFibRetracement",hotkeyHash:_.Modifiers.Alt+70},{name:"LineToolTrendBasedFibExtension"},{name:"LineToolFibSpeedResistanceFan"},{name:"LineToolFibTimeZone"},{name:"LineToolTrendBasedFibTime"},{name:"LineToolFibCircles"},{name:"LineToolFibSpiral"},{name:"LineToolFibSpeedResistanceArcs"},{name:"LineToolFibWedge"},{name:"LineToolFibChannel"}]},{id:"linetool-group-geometric-shapes",title:window.t("Geometric Shapes"),items:[{name:"LineToolBrush"},{name:"LineToolHighlighter"},{name:"LineToolPath"},{name:"LineToolRectangle"},{name:"LineToolRotatedRectangle"},{name:"LineToolEllipse"},{name:"LineToolTriangle"},{name:"LineToolPolyline"},{name:"LineToolBezierQuadro"},{name:"LineToolBezierCubic"},{name:"LineToolArc"}]},{id:"linetool-group-annotation",title:window.t("Annotation Tools"),items:[{name:"LineToolText"},{name:"LineToolTextAbsolute"},{name:"LineToolNote"},{name:"LineToolNoteAbsolute"},{name:"LineToolSignpost"},{name:"LineToolCallout"},{name:"LineToolBalloon"},{name:"LineToolPriceLabel"},{name:"LineToolPriceNote"},{name:"LineToolArrowMarker"},{name:"LineToolArrowMarkLeft"},{name:"LineToolArrowMarkRight"},{name:"LineToolArrowMarkUp"},{name:"LineToolArrowMarkDown"},{name:"LineToolFlagMark"}].filter(Boolean)},{id:"linetool-group-patterns",title:window.t("Patterns"),items:[{name:"LineTool5PointsPattern"},{name:"LineToolCypherPattern"},{name:"LineToolABCD"},{name:"LineToolTrianglePattern"},{name:"LineToolThreeDrivers"},{name:"LineToolHeadAndShoulders"},{name:"LineToolElliottImpulse"},{name:"LineToolElliottTriangle"},{name:"LineToolElliottTripleCombo"},{name:"LineToolElliottCorrection"},{name:"LineToolElliottDoubleCombo"},{name:"LineToolCircleLines"},{name:"LineToolTimeCycles"},{name:"LineToolSineLine"}]},{id:"linetool-group-prediction-and-measurement",
title:window.t("Prediction and Measurement Tools"),items:[{name:"LineToolRiskRewardLong"},{name:"LineToolRiskRewardShort"},{name:"LineToolPrediction"},{name:"LineToolDateRange"},{name:"LineToolPriceRange"},{name:"LineToolDateAndPriceRange"},{name:"LineToolBarsPattern"},Object(w.isFeatureEnabled)("remove-line-tool-ghost-feed")?null:{name:"LineToolGhostFeed"},{name:"LineToolProjection"},{name:"LineToolFixedRangeVolumeProfile"}].filter(Boolean)}],L=o("OiSa"),C=o("5AaZ"),S=o("lxNp"),z=o("tWVy"),x=o("4rU7");function N(e){var t=e.id,o=e.action,i=e.isActive,n=e.isHidden,r=e.isTransparent,l=e.toolName;return a.createElement(x.a,{id:t,icon:b.a[l].icon,isActive:i,isHidden:n,isTransparent:r,onClick:o,title:b.a[l].localizedName,"data-name":l})}var P=o("wZIs"),k=[61536,61537,61538,61539,61725,61726,61575,61576,61796,61797,61779,61780,61781,61782,61783,61784,61785,61786,61440,61441,61442,61444,61445,61446,61447,61448,61452,61453,61454,61456,61457,61458,61459,61460,61461,61463,61464,61466,61467,61469,61470,61473,61475,61476,61488,61502,61504,61505,61507,61510,61523,61524,61525,61526,61527,61528,61529,61530,61531,61532,61533,61534,61540,61541,61542,61543,61544,61545,61546,61547,61548,61550,61552,61553,61554,61555,61557,61558,61559,61560,61565,61566,61568,61572,61574,61578,61588,61597,61601,61602,61603,61604,61605,61606,61607,61608,61609,61610,61611,61616,61617,61635,61648,61649,61654,61655,61656,61657,61658,61659,61666,61667,61669,61670,61671,61672,61673,61675,61681,61682,61683,61684,61696,61697,61698,61699,61700,61701,61702,61703,61704,61705,61706,61707,61708,61712,61713,61714,61715,61720,61721,61722,61731,61732,61736,61737,61738,61746,61747,61748,61749,61751,61752,61753,61754,61757,61758,61760,61764,61768,61769,61770,61771,61772,61773,61774,61776,61777,61778,61799,61811,61812,61813,61814,61815,61816,61817,61818,61819,61820,61821,61826,61827,61828,61829,61830,61831,61832,61836,61838,61840,61842,61845],E=o("Iivm"),W=o("9dlw"),O=o("QpNh"),A=o("Sn4D"),B=o("hn2c"),M=o("KmEK"),I=function(e){function t(t){var o=e.call(this,t)||this;return o._toggleDropdown=function(e){o.setState({isOpened:void 0!==e?e:!o.state.isOpened})},o._handleClose=function(){o._toggleDropdown(!1)},o._getDropdownPosition=function(){if(!o._control)return{x:0,y:0};var e=o._control.getBoundingClientRect();return{x:e.left+e.width+1,y:e.top-6}},o._handleClickArrow=function(){o._toggleDropdown()},o._handleTouchStart=function(){o.props.onClickButton(),o._toggleDropdown()},o._handlePressStart=function(){if(Modernizr.mobiletouch&&!o.props.checkable)o._longPressDelay||o.props.onClickButton();else{if(o._doubleClickDelay)return clearTimeout(o._doubleClickDelay),delete o._doubleClickDelay,void o._toggleDropdown(!0);o._doubleClickDelay=setTimeout((function(){delete o._doubleClickDelay,o._longPressDelay||o.props.onClickButton()}),175)}o._longPressDelay=setTimeout((function(){delete o._longPressDelay,o._toggleDropdown(!0)}),300)},o._cancelAllTimeouts=function(){clearTimeout(o._longPressDelay),delete o._longPressDelay,clearTimeout(o._doubleClickDelay),delete o._doubleClickDelay},
o._handleTouchPressEnd=function(e){e.cancelable&&e.preventDefault(),o._handlePressEnd()},o._handlePressEnd=function(){o._longPressDelay&&(clearTimeout(o._longPressDelay),delete o._longPressDelay,o.state.isOpened?o._toggleDropdown(!1):o.props.checkable||o.state.isOpened||!o.props.isActive||Modernizr.mobiletouch?o._doubleClickDelay||o.props.onClickButton():o._toggleDropdown(!0))},o.state={isOpened:!1},o}return Object(i.c)(t,e),t.prototype.render=function(){var e,t=this,o=this.props,n=o.buttonActiveClass,r=o.buttonClass,s=o.buttonIcon,c=o.buttonTitle,d=o.buttonHotKey,u=o.dropdownTooltip,p=o.children,h=o.isActive,m=o.isGrayed,g=o.onClickWhenGrayed,v=o.checkable,f=o.isSmallTablet,b=this.state.isOpened,T=Object(O.a)(this.props);return a.createElement("div",{className:l(M.dropdown,(e={},e[M.isGrayed]=m,e[M.isActive]=h,e[M.isOpened]=b,e)),onClick:m?g:void 0},a.createElement("div",Object(i.a)({},T,{ref:function(e){return t._control=e},className:M.control}),a.createElement("div",Object(i.a)({},this._getButtonHandlers(),{className:l(M.buttonWrap,{"apply-common-tooltip common-tooltip-vertical":Boolean(c||d)}),"data-tooltip-hotkey":d,"data-tooltip-delay":1500,"data-role":"button",title:c}),a.createElement(x.a,{activeClass:n,className:r,icon:s,isActive:h,isGrayed:m,isTransparent:!v})),!m&&!Modernizr.mobiletouch&&a.createElement("div",{className:l(M.arrow,u&&"apply-common-tooltip common-tooltip-vertical"),title:u,onClick:this._handleClickArrow,"data-role":"menu-handle"},a.createElement(E.a,{className:M.arrowIcon,icon:B}))),!m&&(f?b&&a.createElement(A.a,{onClose:this._handleClose,position:"Bottom"},p):a.createElement(W.a,{doNotCloseOn:this,isOpened:b,onClose:this._handleClose,position:this._getDropdownPosition},p)))},t.prototype._getButtonHandlers=function(){var e=this.props,t=e.isGrayed,o=e.checkable;return t?{}:Modernizr.mobiletouch?o?{onTouchStart:this._handlePressStart,onTouchEnd:this._handleTouchPressEnd,onTouchMove:this._cancelAllTimeouts}:{onClick:this._handleTouchStart}:{onMouseDown:this._handlePressStart,onMouseUp:this._handlePressEnd}},t}(a.PureComponent),j=o("KKsp"),D=o("EA32"),V={icon:window.t("Icon"),dropdownTooltip:window.t("Icons")},F=function(e){function t(t){var o=e.call(this,t)||this;return o._renderItem=function(e,t){var i=o.props.isSmallTablet,n=s()(D.item,i&&D.smallTablet,t&&i&&o.state.isActive&&e===o.state.current&&D.active);return a.createElement("div",{className:n,key:e,onClick:function(){o._handleSelect(e),Object(z.b)()}},String.fromCharCode(e))},o._onChangeDrawingState=function(){o.setState({isActive:o._isActive()})},o._handleSelect=function(e){Object(P.saveDefaults)("linetoolicon",Object(i.a)(Object(i.a)({},Object(P.defaults)("linetoolicon")),{icon:e})),u.tool.setValue("LineToolIcon");var t=o.state.recents,n=t.indexOf(e);-1!==n&&t.splice(n,1),t=Object(i.f)([e],t.slice(0,9)),Object(c.setJSON)("linetoolicon.recenticons",t),o.setState({current:e,recents:t})},o.state={current:Object(P.defaults)("linetoolicon").icon,recents:Object(c.getJSON)("linetoolicon.recenticons")||[]},o}return Object(i.c)(t,e),
t.prototype.componentDidMount=function(){u.tool.subscribe(this._onChangeDrawingState),c.onSync.subscribe(this,this._onSyncSettings)},t.prototype.componentWillUnmount=function(){u.tool.unsubscribe(this._onChangeDrawingState),c.onSync.unsubscribe(this,this._onSyncSettings)},t.prototype.render=function(){var e=this,t=this.props,o=t.isGrayed,n=t.toolName,r=t.isSmallTablet,l=this.state,c=l.current,d=l.isActive,u=l.recents,p=Object(O.a)(this.props),m=s()(D.wrap,r&&D.smallTablet);return a.createElement(I,Object(i.a)({buttonClass:D.button,buttonIcon:a.createElement("div",{className:D.buttonIcon},String.fromCharCode(c||k[0])),buttonTitle:V.icon,dropdownTooltip:V.dropdownTooltip,isActive:d,isGrayed:o,isSmallTablet:r,onClickButton:function(){return e._handleSelect(c||k[0])},onClickWhenGrayed:function(){return Object(h.emit)("onGrayedObjectClicked",{type:"drawing",name:b.a[n].localizedName})}},p),u&&a.createElement(a.Fragment,null,r&&a.createElement("div",{className:D.title},window.t("Recently used")),a.createElement("div",{className:m},u.map((function(t){return e._renderItem(t,!0)}))),a.createElement(j.a,{className:s()(r&&D.separator)})),a.createElement("div",{key:"all",className:m},k.map((function(t){return e._renderItem(t)}))))},t.prototype._isActive=function(){return u.tool.value()===this.props.toolName},t.prototype._onSyncSettings=function(){this.setState({recents:Object(c.getJSON)("linetoolicon.recenticons")})},t}(a.Component),R=o("Ocx9"),H=function(e){function t(t){var o=e.call(this,t)||this;return o._handleClick=function(){o.props.saveDefaultOnChange&&Object(R.saveDefaultProperties)(!0);var e=!o.props.property.value();o.props.property.setValue(e),o.props.saveDefaultOnChange&&Object(R.saveDefaultProperties)(!1),o.props.onClick&&o.props.onClick(e)},o.state={isActive:o.props.property.value()},o}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){this.props.property.subscribe(this,this._onChange)},t.prototype.componentWillUnmount=function(){this.props.property.unsubscribe(this,this._onChange)},t.prototype.render=function(){var e=this.props.toolName,t=this.state.isActive,o=b.a[e];return a.createElement(x.a,{icon:t&&o.iconActive?o.iconActive:o.icon,isActive:t,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})},t.prototype._onChange=function(e){this.setState({isActive:e.value()})},t}(a.PureComponent),U=function(e){function t(t){var o=e.call(this,t)||this;return o._handleClick=function(){u.tool.setValue(o.props.toolName)},o._onChange=function(){o.setState({isActive:u.tool.value()===o.props.toolName})},o.state={isActive:u.tool.value()===o.props.toolName},o}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){u.tool.subscribe(this._onChange)},t.prototype.componentWillUnmount=function(){u.tool.unsubscribe(this._onChange)},t.prototype.render=function(){var e=this.props.toolName,t=this.state.isActive,o=b.a[e];return a.createElement(x.a,{icon:b.a[e].icon,isActive:t,isTransparent:!0,onClick:this._handleClick,title:o.localizedName,buttonHotKey:o.hotKey,"data-name":e})},t
}(a.PureComponent),G=function(e){function t(t){var o=e.call(this,t)||this;return o._boundUndoModel=null,o._handleClick=function(){var e=o._activeChartWidget().model();e&&e.zoomFromViewport()},o._syncUnzoomButton=function(){var e=o._activeChartWidget(),t=e.model(),i=!1;t?(o._boundUndoModel!==t&&(o._boundUndoModel&&o._boundUndoModel.zoomStack().onChange().unsubscribe(null,o._syncUnzoomButton),t.zoomStack().onChange().subscribe(null,o._syncUnzoomButton),o._boundUndoModel=t),i=!t.zoomStack().isEmpty()):e.withModel(null,o._syncUnzoomButton),o.setState({isVisible:i})},o.state={isVisible:!1},o}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){this.props.chartWidgetCollection.activeChartWidget.subscribe(this._syncUnzoomButton,{callWithLast:!0})},t.prototype.componentWillUnmount=function(){this.props.chartWidgetCollection.activeChartWidget.unsubscribe(this._syncUnzoomButton)},t.prototype.render=function(){return this.state.isVisible?a.createElement(N,{action:this._handleClick,isTransparent:!0,toolName:"zoom-out"}):a.createElement("div",null)},t.prototype._activeChartWidget=function(){return this.props.chartWidgetCollection.activeChartWidget.value()},t}(a.PureComponent),K=o("b2d7"),q=o("pr86"),Q=o("N5tr"),J=o("dhVi"),Z=function(e){function t(t){var o=e.call(this,t)||this;o._onChangeDrawingState=function(){var e=o._getActiveToolIndex();o.setState({current:-1!==e?e:o.state.current,isActive:-1!==e})},o._handleClickButton=function(){if(!v.CheckMobile.any()){var e=o._getCurrentToolName();o._selectTool(e)}},o._handleClickItem=function(e){o._selectTool(e)},o._handleGrayedClick=function(e){Object(h.emit)("onGrayedObjectClicked",{type:"drawing",name:b.a[e].localizedName})},o._handleClickFavorite=function(e){o.state.favState&&o.state.favState[e]?K.a.removeFavorite(e):K.a.addFavorite(e)},o._onAddFavorite=function(e){var t;o.setState({favState:Object(i.a)(Object(i.a)({},o.state.favState),(t={},t[e]=!0,t))})},o._onRemoveFavorite=function(e){var t;o.setState({favState:Object(i.a)(Object(i.a)({},o.state.favState),(t={},t[e]=!1,t))})},o._onSyncFavorites=function(){o.setState({favState:o._composeFavState()})};var n=o._getActiveToolIndex();return o.state={current:-1===n?o._firstNonGrayedTool():n,favState:o._composeFavState(),isActive:-1!==n},o}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){u.tool.subscribe(this._onChangeDrawingState),K.a.favoriteAdded.subscribe(null,this._onAddFavorite),K.a.favoriteRemoved.subscribe(null,this._onRemoveFavorite),K.a.favoritesSynced.subscribe(null,this._onSyncFavorites)},t.prototype.componentWillUnmount=function(){u.tool.unsubscribe(this._onChangeDrawingState),K.a.favoriteAdded.unsubscribe(null,this._onAddFavorite),K.a.favoriteRemoved.unsubscribe(null,this._onRemoveFavorite),K.a.favoritesSynced.unsubscribe(null,this._onSyncFavorites)},t.prototype.componentDidUpdate=function(e,t){e.lineTools!==this.props.lineTools&&this.setState({favState:this._composeFavState()})},t.prototype.render=function(){
var e=this,t=this.props,o=t.favoriting,n=t.grayedTools,r=t.lineTools,l=t.dropdownTooltip,s=t.isSmallTablet,c=this.state,d=c.current,u=c.favState,p=c.isActive,h=this._getCurrentToolName(),m=b.a[h],g=this._showShortcuts(),v=Object(O.a)(this.props);return a.createElement("span",null,a.createElement(I,Object(i.a)({buttonIcon:m.icon,buttonTitle:m.localizedName,buttonHotKey:m.hotKey,dropdownTooltip:l,isActive:p,onClickButton:this._handleClickButton,isSmallTablet:s},v),r.map((function(t,i){var r=t.name,l=b.a[r],c=n[r];return a.createElement(Q.b,{key:r,"data-name":t.name,theme:s?J.a:void 0,dontClosePopup:c,forceShowShortcuts:g,shortcut:!s&&t.hotkeyHash?Object(_.humanReadableHash)(t.hotkeyHash):void 0,icon:l.icon,isActive:p&&d===i,appearAsDisabled:c,label:l.localizedName,onClick:c?e._handleGrayedClick:e._handleClickItem,onClickArg:r,showToolboxOnHover:!u[r],toolbox:o&&!c?a.createElement(q.a,{isActive:p&&d===i,isFilled:u[r],onClick:function(){return e._handleClickFavorite(r)}}):void 0})}))))},t.prototype._getCurrentToolName=function(){var e=this.state.current;return this.props.lineTools[e||0].name},t.prototype._firstNonGrayedTool=function(){var e=this.props,t=e.grayedTools;return e.lineTools.findIndex((function(e){return!t[e.name]}))},t.prototype._getActiveToolIndex=function(){return this.props.lineTools.findIndex((function(e){return e.name===u.tool.value()}))},t.prototype._showShortcuts=function(){return this.props.lineTools.some((function(e){return"shortcut"in e}))},t.prototype._selectTool=function(e){u.tool.setValue(e)},t.prototype._composeFavState=function(){var e={};return this.props.lineTools.forEach((function(t){e[t.name]=K.a.isFavorite(t.name)})),e},t}(a.PureComponent),$=o("JWMC"),Y=o("nPPD"),X=o("FTBN"),ee=Object(Y.a)(Q.a,X),te={all:window.t("Remove Drawings & Indicators"),drawings:window.t("Remove Drawings"),studies:window.t("Remove Indicators")},oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleRemoveToolClick=function(){Modernizr.mobiletouch||t._handleRemoveDrawings()},t._handleRemoveDrawings=function(){Object($.trackEvent)("GUI","Chart Left Toolbar","remove drawing"),t.props.chartWidgetCollection.activeChartWidget.value().removeAllDrawingTools()},t._handleRemoveStudies=function(){Object($.trackEvent)("GUI","Chart Left Toolbar","remove indicator"),t.props.chartWidgetCollection.activeChartWidget.value().removeAllStudies()},t._handleRemoveAll=function(){Object($.trackEvent)("GUI","Chart Left Toolbar","remove all"),t.props.chartWidgetCollection.activeChartWidget.value().removeAllStudiesDrawingTools()},t}return Object(i.c)(t,e),t.prototype.render=function(){var e=this.props.isSmallTablet?ee:void 0;return a.createElement(I,{buttonIcon:b.a[this.props.toolName].icon,buttonTitle:te.drawings,onClickButton:this._handleRemoveToolClick,isSmallTablet:this.props.isSmallTablet,"data-name":this.props.toolName},a.createElement(Q.b,{"data-name":"remove-drawing-tools",label:te.drawings,onClick:this._handleRemoveDrawings,theme:e}),a.createElement(Q.b,{"data-name":"remove-studies",
label:te.studies,onClick:this._handleRemoveStudies,theme:e}),a.createElement(Q.b,{"data-name":"remove-all",label:te.all,onClick:this._handleRemoveAll,theme:e}))},t}(a.PureComponent),ie=o("Ijvb");function ne(e){var t=e.hideDrawingsProperty,o=e.hideIndicatorsProperty,i=e.isSmallTablet,l=Object(a.useState)((function(){return c.getValue("ChartToolsHideMode","drawings")})),s=l[0],d=l[1],u=Object(a.useState)((function(){return t.value()})),p=u[0],h=u[1],m=Object(a.useState)((function(){return o.value()})),g=m[0],v=m[1];Object(a.useEffect)((function(){var e=w("drawings",h),i=w("indicators",v);return t.subscribe(null,e),o.subscribe(null,i),function(){t.unsubscribe(null,e),o.unsubscribe(null,i)}}),[]);var f=b.a.hideAllDrawings,T=p||g,_=i?ee:void 0;return r.a.createElement(I,{buttonIcon:function(){switch(s){case"drawings":return p?ie.a.hideAllDrawingToolsActive:ie.a.hideAllDrawingTools;case"indicators":return g?ie.a.hideAllIndicatorsActive:ie.a.hideAllIndicators;default:return p&&g?ie.a.hideAllDrawingsActive:ie.a.hideAllDrawings}}(),buttonTitle:function(){switch(s){case"drawings":return T?Object(n.t)("Show all drawings"):Object(n.t)("Hide all drawings");case"indicators":return T?Object(n.t)("Show all indicators"):Object(n.t)("Hide all indicators");default:return T?Object(n.t)("Show all drawings and indicators"):Object(n.t)("Hide all drawings and indicators")}}(),buttonHotKey:f.hotKey,onClickButton:function(){switch(s){case"drawings":ae(t);break;case"indicators":ae(o);break;default:ae(t),ae(o)}},isSmallTablet:i,isActive:T,checkable:!0,"data-name":"hideAllDrawings"},r.a.createElement(Q.b,{label:Object(n.t)("Hide drawings"),isActive:p&&!g,onClick:function(){var e="all"===s||!p;o.setValue(!1),t.setValue(e),y("drawings"),re("hide drawings",e)},"data-name":"hide-drawing-tools",theme:_}),r.a.createElement(Q.b,{label:Object(n.t)("Hide indicators"),isActive:!p&&g,onClick:function(){var e="all"===s||!g;t.setValue(!1),o.setValue(e),y("indicators"),re("hide indicators",e)},"data-name":"hide-indicators",theme:_}),r.a.createElement(Q.b,{label:Object(n.t)("Hide drawings & indicators"),isActive:p&&g,onClick:function(){var e=!(p&&g);t.setValue(e),o.setValue(e),y("all"),re("hide drawings and indicators",e)},"data-name":"hide-drawings-and-indicators",theme:_}));function w(e,t){return function(e){return t(e.value())}}function y(e){d(e),c.setValue("ChartToolsHideMode",e)}}function ae(e){e.setValue(!e.value())}function re(e,t){Object($.trackEvent)("GUI","Chart Left Toolbar",e+" "+(t?"on":"off"))}o("yMne");var le=null;var se,ce=o("Eyy1"),de=o("85c9"),ue=window.t("Show Favorite Drawing Tools Toolbar"),pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._instance=null,t._promise=null,t._bindedForceUpdate=function(){return t.forceUpdate()},t._handleClick=function(){null!==t._instance&&(t._instance.isVisible()?t._instance.hide():t._instance.show())},t}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this._promise=Object(ce.ensureNotNull)(le);t.then((function(o){e._promise===t&&(e._instance=o,
e._instance.canBeShown().subscribe(e._bindedForceUpdate),e._instance.visibility().subscribe(e._bindedForceUpdate),e.forceUpdate())}))},t.prototype.componentWillUnmount=function(){this._promise=null,null!==this._instance&&(this._instance.canBeShown().unsubscribe(this._bindedForceUpdate),this._instance.visibility().unsubscribe(this._bindedForceUpdate),this._instance=null)},t.prototype.render=function(){return null!==this._instance&&this._instance.canBeShown().value()?a.createElement(x.a,{id:this.props.id,icon:de,isActive:this._instance.isVisible(),onClick:this._handleClick,title:ue}):null},t}(a.PureComponent),he=o("4o++");!function(e){e.Screenshot="drawing-toolbar-screenshot",e.FavoriteDrawings="drawing-toolbar-favorite-drawings",e.ObjectTree="drawing-toolbar-object-tree"}(se||(se={}));var me=o("8d0Q"),ge=o("XAms"),ve=o("X0gx"),fe=o("U8H2"),be=o("koZ+"),Te=Object(fe.a)((function(e){return a.createElement(x.a,{id:e.id,className:e.className,onClick:e.onClick,isGrayed:e.isProcessing,title:e.tooltip,buttonHotKey:e.hotkey,icon:be})})),_e=o("VNzU"),we=function(e){function t(t){var o=e.call(this,t)||this;return o._syncVisibleState=function(){o.setState({isVisible:o._isMultipleLayout()})},o.state={isVisible:o._isMultipleLayout()},o}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){this.props.layout.subscribe(this._syncVisibleState)},t.prototype.componentWillUnmount=function(){this.props.layout.unsubscribe(this._syncVisibleState)},t.prototype.render=function(){return this.state.isVisible?this.props.children:a.createElement("div",null)},t.prototype._isMultipleLayout=function(){return Object(_e.isMultipleLayout)(this.props.layout.value())},t}(a.PureComponent),ye=o("mkWe"),Le=o("uhCe"),Ce=o("/KDZ"),Se={chartWidgetCollection:o("17x9").any.isRequired},ze=o("1TxM"),xe=o("JQKp");o.d(t,"DrawingToolbar",(function(){return Me}));var Ne={weakMagnet:window.t("Weak Magnet"),strongMagnet:window.t("Strong Magnet")},Pe=Object(v.onWidget)(),ke=new g.a,Ee=$.trackEvent.bind(null,"GUI","Chart Left Toolbar"),We=function(e,t){return Ee(e+" "+(t?"on":"off"))};function Oe(){var e=!u.properties().childs().magnet.value();We("magnet mode",e),Object(R.saveDefaultProperties)(!0),u.properties().childs().magnet.setValue(e),Object(R.saveDefaultProperties)(!1)}function Ae(){Object($.trackEvent)("GUI","Magnet mode","Weak"),Object(R.saveDefaultProperties)(!0),u.properties().childs().magnetMode.setValue(he.MagnetMode.WeakMagnet),u.properties().childs().magnet.setValue(!0),Object(R.saveDefaultProperties)(!1)}function Be(){Object($.trackEvent)("GUI","Magnet mode","Strong"),Object(R.saveDefaultProperties)(!0),u.properties().childs().magnetMode.setValue(he.MagnetMode.StrongMagnet),u.properties().childs().magnet.setValue(!0),Object(R.saveDefaultProperties)(!1)}var Me=function(e){function t(t){var o,i=e.call(this,t)||this;return i._grayedTools={},i._handleDrawingClick=function(e){We("drawing mode",e)},i._handleLockClick=function(e){We("lock all drawing",e)},i._handleSyncClick=function(e){We("sync",e)},i._handleMouseOver=function(e){
Object(me.a)(e)&&i.setState({isHovered:!0})},i._handleMouseOut=function(e){Object(me.a)(e)&&i.setState({isHovered:!1})},i._handleChangeVisibility=function(e){i.setState({isVisible:e})},i._handleEsc=function(){u.resetToCursor(!0)},i._updateMagnetEnabled=function(){var e={magnet:Object(p.a)().value()};i.setState(e)},i._updateMagnetMode=function(){var e={magnetMode:Object(p.b)().value()};i.setState(e)},i._handleWidgetbarSettled=function(e){var t;i.setState({isWidgetbarVisible:null===(t=window.widgetbar)||void 0===t?void 0:t.visible().value(),widgetbarSettled:e})},i._handleWidgetbarVisible=function(e){i.setState({isWidgetbarVisible:e})},u.init(),i._toolsFilter=new T(i.props.drawingsAccess),i._filteredLineTools=y.map((function(e){return{id:e.id,title:e.title,items:e.items.filter((function(e){return i._toolsFilter.isToolEnabled(b.a[e.name].localizedName)}))}})).filter((function(e){return 0!==e.items.length})),i._filteredLineTools.forEach((function(e){return e.items.forEach((function(e){i._grayedTools[e.name]=i._toolsFilter.isToolGrayed(b.a[e.name].localizedName)}))})),i.state={isHovered:!1,isVisible:L.isDrawingToolbarVisible.value(),isWidgetbarVisible:Boolean(null===(o=window.widgetbar)||void 0===o?void 0:o.visible().value()),widgetbarSettled:void 0!==window.widgetbar,magnet:u.properties().childs().magnet.value(),magnetMode:u.properties().childs().magnetMode.value()},i._features={favoriting:!Pe&&d.enabled("items_favoriting"),multicharts:d.enabled("support_multicharts"),tools:!Pe||d.enabled("charting_library_base")},i._registry={chartWidgetCollection:i.props.chartWidgetCollection},i._negotiateResizer(),i}return Object(i.c)(t,e),t.prototype.componentDidMount=function(){var e;L.isDrawingToolbarVisible.subscribe(this._handleChangeVisibility),z.a.subscribe(this,this._handleGlobalClose),Object(p.a)().subscribe(this._updateMagnetEnabled),Object(p.b)().subscribe(this._updateMagnetMode),this._tool=u.tool.spawn(),this._tool.subscribe(this._updateHotkeys.bind(this)),this._initHotkeys(),this.props.widgetbarSettled&&(this.props.widgetbarSettled.subscribe(this,this._handleWidgetbarSettled),v.CheckMobile.any()&&(null===(e=window.widgetbar)||void 0===e||e.visible().subscribe(this._handleWidgetbarVisible)))},t.prototype.componentWillUnmount=function(){var e;null===(e=window.widgetbar)||void 0===e||e.visible().unsubscribe(this._handleWidgetbarVisible),L.isDrawingToolbarVisible.unsubscribe(this._handleChangeVisibility),z.a.unsubscribe(this,this._handleGlobalClose),Object(p.a)().unsubscribe(this._updateMagnetEnabled),Object(p.b)().unsubscribe(this._updateMagnetMode),this._tool.destroy(),this._hotkeys.destroy()},t.prototype.componentDidUpdate=function(e,t){var o,i=this.state,n=i.isVisible,a=i.widgetbarSettled;n!==t.isVisible&&(h.emit("toggle_sidebar",!n),c.setValue("ChartDrawingToolbarWidget.visible",n),this._negotiateResizer()),t.widgetbarSettled!==a&&a&&v.CheckMobile.any()&&(null===(o=window.widgetbar)||void 0===o||o.visible().subscribe(this._handleWidgetbarVisible))},t.prototype.render=function(){
var e=this,t=this.props,o=t.bgColor,i=t.chartWidgetCollection,n=t.readOnly,r=this.state,s=r.isHovered,c=r.isVisible,d=r.magnet,p=r.magnetMode,h={backgroundColor:o&&"#"+o};return a.createElement(ze.a,{validation:Se,value:this._registry},a.createElement(ve.a.Provider,{value:ke},a.createElement(ye.b,null,a.createElement(Ce.a,{rule:Le.a.TabletSmall},(function(t){var o;return a.createElement("div",{id:"drawing-toolbar",className:l(xe.drawingToolbar,(o={},o[xe.isHidden]=!c,o)),style:h,onClick:e.props.onClick,onContextMenu:ge.b},a.createElement(C.a,{onScroll:e._handleGlobalClose,isVisibleFade:Modernizr.mobiletouch,isVisibleButtons:!Modernizr.mobiletouch&&s,isVisibleScrollbar:!1,onMouseOver:e._handleMouseOver,onMouseOut:e._handleMouseOut},a.createElement("div",{className:xe.inner},!n&&a.createElement("div",{className:xe.group,style:h},e._filteredLineTools.map((function(o,n){return a.createElement(Z,{"data-name":o.id,chartWidgetCollection:i,favoriting:e._features.favoriting,grayedTools:e._grayedTools,key:n,dropdownTooltip:o.title,lineTools:o.items,isSmallTablet:t})})),e._toolsFilter.isToolEnabled("Font Icons")&&a.createElement(F,{"data-name":"linetool-group-font-icons",isGrayed:e._grayedTools["Font Icons"],toolName:"LineToolIcon",isSmallTablet:t})),!n&&a.createElement("div",{className:xe.group,style:h},a.createElement(U,{toolName:"measure"}),a.createElement(U,{toolName:"zoom"}),a.createElement(G,{chartWidgetCollection:i})),!n&&a.createElement("div",{className:xe.group,style:h},a.createElement(I,{"data-name":"magnet-button",buttonIcon:p===he.MagnetMode.StrongMagnet?ie.a.strongMagnet:ie.a.magnet,buttonTitle:b.a.magnet.localizedName,isActive:d,onClickButton:Oe,buttonHotKey:b.a.magnet.hotKey,checkable:!0,isSmallTablet:t},a.createElement(Q.b,{key:"weakMagnet",className:t?xe.popupMenuItem:void 0,"data-name":"weakMagnet",icon:ie.a.magnet,isActive:d&&p!==he.MagnetMode.StrongMagnet,label:Ne.weakMagnet,onClick:Ae}),a.createElement(Q.b,{key:"strongMagnet",className:t?xe.popupMenuItem:void 0,"data-name":"strongMagnet",icon:ie.a.strongMagnet,isActive:d&&p===he.MagnetMode.StrongMagnet,label:Ne.strongMagnet,onClick:Be})),e._features.tools&&a.createElement(H,{property:u.properties().childs().stayInDrawingMode,saveDefaultOnChange:!0,toolName:"drawginmode",onClick:e._handleDrawingClick}),e._features.tools&&a.createElement(H,{property:u.lockDrawings(),toolName:"lockAllDrawings",onClick:e._handleLockClick}),e._features.tools&&a.createElement(ne,{isSmallTablet:t,hideDrawingsProperty:u.hideAllDrawings(),hideIndicatorsProperty:u.hideAllIndicators()}),e._features.tools&&e._features.multicharts&&a.createElement(we,{layout:i.layout},a.createElement(H,{property:u.drawOnAllCharts(),saveDefaultOnChange:!0,toolName:"SyncDrawing",onClick:e._handleSyncClick}))),!n&&e._features.tools&&a.createElement("div",{className:xe.group,style:h},a.createElement(oe,{chartWidgetCollection:i,isSmallTablet:t,toolName:"removeAllDrawingTools"})),a.createElement("div",{className:xe.fill,style:h}),!n&&(e._features.tools||e.props.screenshotButton)&&a.createElement("div",{
className:l(xe.group,xe.lastGroup),style:h},e.props.screenshotButton&&a.createElement(Te,{id:se.Screenshot}),e._features.tools&&e._features.favoriting&&a.createElement(pe,{id:se.FavoriteDrawings}),!!e._features.tools&&(!e.state.isWidgetbarVisible&&v.CheckMobile.any()||Object(f.isOnMobileAppPage)("new"))&&a.createElement(N,{id:se.ObjectTree,action:function(){return e._activeChartWidget().showObjectsTreeDialog()},toolName:"showObjectsTree"})))),void 0)})))))},t.prototype._activeChartWidget=function(){return this.props.chartWidgetCollection.activeChartWidget.value()},t.prototype._negotiateResizer=function(){this.props.resizerBridge.negotiateWidth(this.state.isVisible?52:0)},t.prototype._handleGlobalClose=function(){ke.fire()},t.prototype._updateHotkeys=function(){this._hotkeys.promote()},t.prototype._initHotkeys=function(){var e=this;this._hotkeys=S.createGroup({desc:"Drawing Toolbar"}),this._hotkeys.add({desc:"Reset",hotkey:27,handler:function(){return e._handleEsc()},isDisabled:function(){return u.toolIsCursor(u.tool.value())}})},t}(a.PureComponent)},mwqF:function(e,t,o){"use strict";var i=o("mrSG"),n=o("q1tI"),a=o("TSYQ");function r(e,t){const{intent:o="primary",size:i="m",appearance:n="default",useFullWidth:r=!1,tabIndex:l=0,icon:s,className:c}=t;return a(c,e.button,e["size-"+i],e["intent-"+o],e["appearance-"+n],r&&e["full-width"],-1===l&&e.noOutline,s&&"s"!==i&&e["with-icon"])}var l=o("2A9e");o("+l/S");function s(e){const{className:t,intent:o,size:s,appearance:c,disabled:d,useFullWidth:u,reference:p,icon:h,children:m,tabIndex:g}=e,v=Object(i.e)(e,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","tabIndex"]),f=r(l,{intent:o,size:s,appearance:c,disabled:d,useFullWidth:u,tabIndex:g,icon:h});return n.createElement("button",Object.assign({className:a(f,t),disabled:d,ref:p,tabIndex:g},v),h&&"s"!==s&&n.createElement("span",{className:l.icon},h),n.createElement("span",{className:l.content},m))}function c(e){const{className:t,intent:o,size:s,appearance:c,disabled:d,useFullWidth:u,reference:p,icon:h,children:m,href:g,tabIndex:v}=e,f=Object(i.e)(e,["className","intent","size","appearance","disabled","useFullWidth","reference","icon","children","href","tabIndex"]),b=r(l,{intent:o,size:s,appearance:c,disabled:d,useFullWidth:u,tabIndex:v,icon:h});return n.createElement("a",Object.assign({className:a(t,b),href:d?void 0:g,"aria-disabled":d,ref:p,tabIndex:v},f),h&&"s"!==s&&n.createElement("span",{className:l.icon},h),n.createElement("span",{className:l.content},m))}o.d(t,"b",(function(){return s})),o.d(t,"a",(function(){return c}))},myiL:function(e,t,o){"use strict";o.r(t),o.d(t,"LineWidthButton",(function(){return _}));var i=o("q1tI"),n=o.n(i),a=o("TSYQ"),r=o("Eyy1"),l=o("Iivm"),s=o("82wv"),c=o("5hRh"),d=o("N5tr"),u=o("nPPD"),p=o("O5Oz"),h=o("xnr+"),m=o("n3oB"),g=o("2F1E"),v=o("Lnv9"),f=o("dRg2"),b=Object(u.a)(d.a,f),T=[{value:1,icon:p},{value:2,icon:h},{value:3,icon:m},{value:4,icon:g}];function _(e){
var t=e.multipleProperty,o=e.title,i=e.model,u=e.className,p=e.isSmallScreen,h=Object(c.a)(Object(r.ensureDefined)(t)),m="mixed"===h||!h,g=function(e){var t=T.find((function(t){return t.value===e}));if(!t)return v;return t.icon}(h);return n.a.createElement(s.b,{className:u,arrow:!1,title:o,"data-name":e["data-name"],menuDataName:e["data-name"]+"-menu",content:n.a.createElement("div",null,m?n.a.createElement("div",{className:f.multiWidth},n.a.createElement(l.a,{icon:v})):n.a.createElement("div",{className:f.buttonWrap},!p&&n.a.createElement(l.a,{icon:g}),n.a.createElement("div",{className:a(!p&&f.buttonLabel)},h+"px")))},T.map((function(e){var t=e.value,o=e.icon;return n.a.createElement(d.b,{key:t,theme:b,label:t+"px",icon:o,isActive:t===h,onClick:_,onClickArg:t})})));function _(e){e&&t&&(i.beginUndoMacro(o),t.setValue(e,void 0,{applyValue:function(e,t){i.setProperty(e,t,o)}}),i.endUndoMacro())}}},n3oB:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 3" width="18" height="3"><rect width="18" height="3" fill="currentColor" rx="1.5"/></svg>'},oCKS:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" d="M2 9.75a1.5 1.5 0 0 0-1.5 1.5v5.5a1.5 1.5 0 0 0 1.5 1.5h24a1.5 1.5 0 0 0 1.5-1.5v-5.5a1.5 1.5 0 0 0-1.5-1.5zm0 1h3v2.5h1v-2.5h3.25v3.9h1v-3.9h3.25v2.5h1v-2.5h3.25v3.9h1v-3.9H22v2.5h1v-2.5h3a.5.5 0 0 1 .5.5v5.5a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-5.5a.5.5 0 0 1 .5-.5z" transform="rotate(-45 14 14)"/></svg>'},qAO1:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 12" width="8" height="12" fill="currentColor"><rect width="2" height="2" rx="1"/><rect width="2" height="2" rx="1" y="5"/><rect width="2" height="2" rx="1" y="10"/><rect width="2" height="2" rx="1" x="6"/><rect width="2" height="2" rx="1" x="6" y="5"/><rect width="2" height="2" rx="1" x="6" y="10"/></svg>'},qQ3E:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M14 18.634l-.307-.239-7.37-5.73-2.137-1.665 9.814-7.633 9.816 7.634-.509.394-1.639 1.269-7.667 5.969zm7.054-6.759l1.131-.876-8.184-6.366-8.186 6.367 1.123.875 7.063 5.491 7.054-5.492z"/><path d="M7 14.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/><path d="M7 17.5l-1 .57 8 6.43 8-6.5-1-.5-7 5.5z"/></g></svg>'},rzV7:function(e,t,o){"use strict";var i=Object.prototype.hasOwnProperty;function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var r=0;r<o.length;r++)if(!i.call(t,o[r])||!n(e[o[r]],t[o[r]]))return!1;return!0}},tPkB:function(e,t,o){"use strict";(function(t){var i=o("mMWL"),n=o("guTw"),a=o("C7ts").TemplateButton,r=o("Ocx9").DefaultProperty,l=o("Ve4Q").LineToolPropertiesWidgetBase,s=o("e92V").isLineDrawnWithPressedButton,c=o("CW80"),d=c.createLineToolProperties,u=c.isLineTool
;const p=o("IhRv").ColorPickerButton,h=o("myiL").LineWidthButton;var m=(!t.enabled("widget")||window.is_authenticated)&&t.enabled("linetoolpropertieswidget_template_button"),g=o("W0/v"),v=o("0fuu"),f=o("mQbF"),b=window.t("Color");function T(e){l.call(this,e),this._hasAlertWathcedValue=null,this._templatesButton=null,this.attachHandlers()}inherit(T,l),T.prototype.attachHandlers=function(){i.tool.subscribe(this.onToolChanged.bind(this),{callWithLast:!0}),this._chartWidgetCollection.selectedSources.subscribe(this.onSourceChanged.bind(this))},T.prototype.onToolChanged=function(e,t){this._currentTool=e;const o=this.selectedSources();if(this._isDrawingTool(e)){if(this._isDrawingFinished.setValue(!1),m){var i=t instanceof r;t=i?t:d(e);this.showPropertiesOf(e,t,i),this.showTemplatesOf({tool:e,properties:t}),this._toolbarVisible=!0}this._updateVisibility()}else o&&o.length?(o.length>1&&this._isDrawingFinished.setValue(!0),this.onSourceChanged(this.selectedSources())):this.hide()},T.prototype.findSourceOnWidget=function(e){for(var t=0;t<this.activeChartWidget().model().panes().length;t++)for(var o=this.activeChartWidget().model().panes()[t].sourcesByGroup().all(),i=0;i<o.length;i++)if(o[i]===e)return o[i]},T.prototype.onSourceChanged=function(e){if(this._hasAlertWathcedValue&&(this._hasAlertWathcedValue.destroy(),this._hasAlertWathcedValue=null),e&&e.length&&(1!==e.length||u(e[0])))if(this._createCommonButtons(),1===e.length){var t=e[0];t.isAvailableInFloatingWidget()&&this.findSourceOnWidget(t)?(!t.userEditEnabled()||!s(t.toolname)&&this.activeChartWidget().model().lineBeingCreated()||(this._isDrawingFinished.setValue(!0),t.canHasAlert()&&(this._hasAlertWathcedValue=t.hasAlert.spawn())),this.showPropertiesOf(t.toolname,t.properties(),!0),this.showTemplatesOf({source:t}),this._toolbarVisible=!0,this._updateVisibility()):this.hide()}else this._clearProperties(),this._templatesButton&&(this._clearTemplatesButton(),this._templatesButton=null),this._updateVisibility(),this._createWidthsButton(void 0,!0),this._createColorsButton(void 0,!0),this._createBackgroundsButton(void 0,!0),this._createTextColorsButton(void 0,!0);else this.hide()},T.prototype._createWidthsButton=function(e,t){if(this._lineWidthsProperty&&(this._lineWidthsProperty.destroy(),this._lineWidthsProperty=null),this._lineWidthsProperty=this._createProperty(e,t,"linesWidths","Set Line tool(s) line width"),!this._lineWidthsProperty)return!0;var o=window.t("Line tool width");t&&(1!==this.selectedSources().filter((function(e){return u(e)&&e.properties().linesWidths})).length&&(o=window.t("Line tool widths")));return this._addPropertyButton({component:h,props:{title:o,multipleProperty:this._lineWidthsProperty,model:this.activeChartWidget().model(),"data-name":"line-tool-width"}}),!0},T.prototype._createColorsButton=function(e,t){return this._lineColorsProperty&&(this._lineColorsProperty.destroy(),this._lineColorsProperty=null),this._lineColorsProperty=this._createProperty(e,t,"linesColors","Set Line tool(s) color"),!this._lineColorsProperty||(this._addPropertyButton({
component:p,props:{icon:g,title:window.t("Line tool colors"),property:this._lineColorsProperty,model:this.activeChartWidget().model(),"data-name":"line-tool-color"}}),!0)},T.prototype._createBackgroundsButton=function(e,t){return this._backgroundsProperty&&(this._backgroundsProperty.destroy(),this._backgroundsProperty=null),this._backgroundsProperty=this._createProperty(e,t,"backgroundsColors","Set Line background(s) color"),!this._backgroundsProperty||(this._addPropertyButton({component:p,props:{icon:v,title:window.t("Line tool backgrounds"),property:this._backgroundsProperty,model:this.activeChartWidget().model(),"data-name":"background-color"}}),!0)},T.prototype._createTextColorsButton=function(e,t){return this._textColorsProperty&&(this._textColorsProperty.destroy(),this._textColorsProperty=null),this._textColorsProperty=this._createProperty(e,t,"textsColors","Set Line tool(s) text color"),!this._textColorsProperty||(this._addPropertyButton({component:p,props:{icon:f,title:window.t("Line tool text colors"),property:this._textColorsProperty,model:this.activeChartWidget().model(),"data-name":"text-color"}}),!0)},T.prototype.showTemplatesOf=function(e){if(t.enabled("drawing_templates")){var o,i,r=e.source;r?(o=r.toolname,i=r.properties()):(o=e.tool,i=e.properties),this._templatesButton&&(this._clearTemplatesButton(),this._templatesButton=null);var l=this;m&&(this._templatesList=new n(o,(function(e){r?(l.activeChartWidget().model().applyLineToolTemplate(r,e,"Apply Drawing Template"),l.onSourceChanged([r])):(i.mergePreferences(e),i.saveDefaults(),l.onToolChanged(o,i))})),this._templatesButton={component:a,props:{key:"Templates",model:this._templatesList,onSave:r?()=>r.template():void 0,onRestore:()=>{void 0!==r?this.activeChartWidget().model().restorePropertiesForSource(r):i.restoreFactoryDefaults(),this.showPropertiesOf(o,i)}}},this._addTemplatesButton(this._templatesButton))}},T.prototype.templatesList=function(){return this._templatesList},T.prototype._getPossibleProperty=function(e){for(var t=[],o=this._defaultToolProperties(),i=0;i<o.length;i++){var n=o[i];n.name in e&&t.push(n)}return t},T.prototype.showPropertiesOf=function(e,t,o){this._toolExceptionCases||(this._toolExceptionCases=this._createToolExceptionCases());var i=this._toolExceptionCases[e]||this._getPossibleProperty(t);if(this._clearProperties(),this._propertiesVisible=!1,i.length){for(var n={},a=0;a<i.length;a++){for(var r=i[a],l=t,s=r.name.split("."),c=0;c<s.length;++c)l=l&&l[s[c]];var d=r.showIf;if("function"!=typeof d||d(l,t)){var u=r.factory;if(u&&u.call(this,l,o))continue;if(!l)continue;if(this._propertiesVisible=!0,"combobox"!==r.inputType){const e={component:p,props:{icon:r.iconSvgCode,title:r.title,"data-name":r.dataName,property:l,model:this.activeChartWidget().model()}};this._addPropertyButton(e);continue}n[r.name]=l}}this._currentProperties=n}},T.prototype._updateVisibility=function(){(m||this._isDrawingFinished.value())&&(this._toolbarVisible||this._propertiesVisible)?this._show():this.hide()},T.prototype.refresh=function(){
this.onSourceChanged(this.selectedSources())},T.prototype._defaultToolProperties=function(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:g,title:b,factory:T.prototype._createColorsButton,dataName:"line-tool-color"},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:v,title:$.t("Background Color"),factory:T.prototype._createBackgroundsButton,dataName:"background-color",showIf:this._shouldShowBackgroundProperty},{name:"textsColors",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:f,factory:T.prototype._createTextColorsButton,dataName:"text-color"},{name:"linesWidths",inputType:"combobox",factory:T.prototype._createWidthsButton},{name:"linestyle",title:$.t("Style"),inputType:"combobox",factory:T.prototype._createLineStyleButton}]},T.prototype._riskPropertiesExceptionCases=function(){return[{name:"textcolor",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:f,dataName:"text-color"},{name:"profitBackground",title:$.t("Profit Background Color"),inputType:"colorPicker",iconSvgCode:v,dataName:"background-color"},{name:"stopBackground",title:$.t("Stop Background Color"),inputType:"colorPicker",iconSvgCode:v,dataName:"background-color"}]},T.prototype._rangeExceptionCases=function(){return[{name:"linecolor",inputType:"colorPicker",iconSvgCode:g,title:b,dataName:"line-tool-color"},{name:"backgroundColor",inputType:"colorPicker",iconSvgCode:v,title:$.t("Background Color"),dataName:"background-color",showIf:this._shouldShowBackgroundProperty},{name:"linesWidths",inputType:"combobox",factory:T.prototype._createWidthsButton}]},T.prototype._brushPropertiesExceptionCase=function(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:g,title:$.t("Color"),factory:T.prototype._createColorsButton,dataName:"line-tool-color"},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:v,title:$.t("Background Color"),dataName:"background-color",factory:T.prototype._createBackgroundsButton},{name:"linesWidths",inputType:"combobox",factory:T.prototype._createWidthsButton}]},T.prototype._bezierPropertiesExceptionCases=function(){return[{name:"linesColors",inputType:"colorPicker",iconSvgCode:g,title:$.t("Color"),factory:T.prototype._createColorsButton,dataName:"line-tool-color"},{name:"backgroundsColors",inputType:"colorPicker",iconSvgCode:v,dataName:"background-color",title:$.t("Background Color"),factory:T.prototype._createBackgroundsButton,showIf:this._shouldShowBackgroundProperty},{name:"linesWidths",inputType:"combobox",factory:T.prototype._createWidthsButton},{name:"linestyle",title:$.t("Style"),inputType:"combobox",factory:T.prototype._createLineStyleButton}]},T.prototype._textPropertiesExceptionCases=function(){return[{name:"color",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:f,dataName:"text-color"},{name:"backgroundColor",title:$.t("Background Color"),inputType:"colorPicker",iconSvgCode:v,dataName:"background-color",showIf:this._shouldShowBackgroundProperty},{name:"fontsize",title:$.t("Font Size"),inputType:"combobox",factory:T.prototype._createFontSizeButton
}]},T.prototype._notePropertiesExceptionCases=function(){return[{name:"markerColor",title:$.t("Marker Color"),inputType:"colorPicker",iconSvgCode:g,dataName:"line-tool-color"},{name:"textColor",title:$.t("Text color"),inputType:"colorPicker",iconSvgCode:f,dataName:"text-color"},{name:"fontSize",title:$.t("Font Size"),inputType:"combobox",factory:T.prototype._createFontSizeButton}]},T.prototype._createToolExceptionCases=function(){return{LineToolRegressionTrend:[],LineToolBrush:T.prototype._brushPropertiesExceptionCase(),LineToolBezierQuadro:T.prototype._bezierPropertiesExceptionCases(),LineToolBezierCubic:T.prototype._bezierPropertiesExceptionCases(),LineToolText:T.prototype._textPropertiesExceptionCases(),LineToolTextAbsolute:T.prototype._textPropertiesExceptionCases(),LineToolBalloon:T.prototype._textPropertiesExceptionCases(),LineToolCallout:T.prototype._textPropertiesExceptionCases(),LineToolPriceLabel:T.prototype._textPropertiesExceptionCases(),LineToolDateRange:T.prototype._rangeExceptionCases(),LineToolPriceRange:T.prototype._rangeExceptionCases(),LineToolDateAndPriceRange:T.prototype._rangeExceptionCases(),LineToolNote:T.prototype._notePropertiesExceptionCases(),LineToolNoteAbsolute:T.prototype._notePropertiesExceptionCases(),LineToolRiskRewardLong:T.prototype._riskPropertiesExceptionCases(),LineToolRiskRewardShort:T.prototype._riskPropertiesExceptionCases(),LineToolBarsPattern:[{name:"color",title:b,inputType:"colorPicker",iconSvgCode:v,dataName:"background-color"}],LineToolProjection:[{name:"color1",title:$.t("Background color 1"),inputType:"colorPicker",iconSvgCode:v,dataName:"background-color"},{name:"color2",title:$.t("Background color 2"),inputType:"colorPicker",iconSvgCode:v,dataName:"background-color"},{name:"linesWidths",inputType:"combobox",factory:T.prototype._createWidthsButton}],LineToolSignpost:[{name:"fontSize",title:$.t("Font Size"),inputType:"combobox"},{name:"linesColors",inputType:"colorPicker",iconSvgCode:v,dataName:"background-color",title:b,factory:T.prototype._createBackgroundsButton,showIf:function(e,t){return t&&t.showImage.value()}}]}},e.exports=T}).call(this,o("Kxc7"))},tceb:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M11.682 16.09l3.504 6.068 1.732-1-3.497-6.057 3.595-2.1L8 7.74v10.512l3.682-2.163zm-.362 1.372L7 20V6l12 7-4.216 2.462 3.5 6.062-3.464 2-3.5-6.062z"/></svg>'},turx:function(e,t,o){"use strict";o.d(t,"b",(function(){return l})),o.d(t,"a",(function(){return s}));var i=o("mrSG"),n=o("Eyy1"),a=o("tc+8"),r=function(e){function t(t){var o=e.call(this)||this;return o._listenersMappers=[],o._isProcess=!1,o._baseProperty=t,o}return Object(i.c)(t,e),t.prototype.destroy=function(){this._baseProperty.destroy()},t.prototype.value=function(){var e=this._baseProperty.value();return"mixed"===e?"":e},t.prototype.visible=function(){return this._baseProperty.visible()},t.prototype.setValue=function(e){var t=this;this._isProcess=!0,this._baseProperty.setValue(""===e?"mixed":e,void 0,{
applyValue:this._applyValue.bind(this)}),this._isProcess=!1,this._listenersMappers.forEach((function(e){e.method.call(e.obj,t)}))},t.prototype.subscribe=function(e,t){var o=this,i=function(i){o._isProcess||t.call(e,o)},n={obj:e,method:t,callback:i};this._listenersMappers.push(n),this._baseProperty.subscribe(e,i)},t.prototype.unsubscribe=function(e,t){var o,i=Object(n.ensureDefined)(null===(o=this._listenersMappers.find((function(o){return o.obj===e&&o.method===t})))||void 0===o?void 0:o.callback);this._baseProperty.unsubscribe(e,i)},t.prototype.unsubscribeAll=function(e){this._baseProperty.unsubscribeAll(e)},t}(o.n(a).a),l=function(e){function t(t,o,i){var n=e.call(this,t)||this;return n._undoModel=o,n._undoText=i,n}return Object(i.c)(t,e),t.prototype._applyValue=function(e,t){this._undoModel.setProperty(e,t,this._undoText)},t}(r),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.c)(t,e),t.prototype._applyValue=function(e,t){e.setValue(t)},t}(r)},uJ8n:function(e,t,o){e.exports={wrap:"wrap-379NmUSU",scrollWrap:"scrollWrap-379NmUSU",noScrollBar:"noScrollBar-379NmUSU",content:"content-379NmUSU",icon:"icon-379NmUSU",scrollBot:"scrollBot-379NmUSU",scrollTop:"scrollTop-379NmUSU",isVisible:"isVisible-379NmUSU",iconWrap:"iconWrap-379NmUSU",fadeBot:"fadeBot-379NmUSU",fadeTop:"fadeTop-379NmUSU"}},ucyy:function(e,t,o){e.exports={button:"button-1gEXpG61"}},wx14:function(e,t,o){"use strict";function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}).apply(this,arguments)}o.d(t,"a",(function(){return i}))},xjKU:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" fill-rule="nonzero" d="M14 5a7 7 0 0 0-7 7v3h4v-3a3 3 0 1 1 6 0v3h4v-3a7 7 0 0 0-7-7zm7 11h-4v3h4v-3zm-10 0H7v3h4v-3zm-5-4a8 8 0 1 1 16 0v8h-6v-8a2 2 0 1 0-4 0v8H6v-8zm3.293 11.294l-1.222-2.037.858-.514 1.777 2.963-2 1 1.223 2.037-.858.514-1.778-2.963 2-1zm9.778-2.551l.858.514-1.223 2.037 2 1-1.777 2.963-.858-.514 1.223-2.037-2-1 1.777-2.963z"/></svg>'},"xnr+":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 2" width="18" height="2"><rect width="18" height="2" fill="currentColor" rx="1"/></svg>'},yMne:function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return a}));var i=o("J2xC"),n=parseInt(i["css-value-header-toolbar-height"]),a=3},zLVn:function(e,t,o){"use strict";function i(e,t){if(null==e)return{};var o,i,n={},a=Object.keys(e);for(i=0;i<a.length;i++)o=a[i],t.indexOf(o)>=0||(n[o]=e[o]);return n}o.d(t,"a",(function(){return i}))}}]);