File Manager
Viewing File: 160.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[160,"series-icons-map"],{"1Tx8":function(e,t,n){e.exports={button:"button-mPM2q3lb",withText:"withText-mPM2q3lb",withoutText:"withoutText-mPM2q3lb"}},"1uoO":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="M9 8v12h3V8H9zm-1-.502C8 7.223 8.215 7 8.498 7h4.004c.275 0 .498.22.498.498v13.004a.493.493 0 0 1-.498.498H8.498A.496.496 0 0 1 8 20.502V7.498z"/><path d="M10 4h1v3.5h-1z"/><path d="M17 6v6h3V6h-3zm-1-.5c0-.276.215-.5.498-.5h4.004c.275 0 .498.23.498.5v7c0 .276-.215.5-.498.5h-4.004a.503.503 0 0 1-.498-.5v-7z"/><path d="M18 2h1v3.5h-1z"/></svg>'},"23di":function(e,t,n){e.exports={wrap:"wrap-3FnlLKfX",titleWrap:"titleWrap-3FnlLKfX",indicators:"indicators-3FnlLKfX",title:"title-3FnlLKfX",icon:"icon-3FnlLKfX",text:"text-3FnlLKfX",titleTabletSmall:"titleTabletSmall-3FnlLKfX",labelRow:"labelRow-3FnlLKfX",label:"label-3FnlLKfX"}},"2xRE":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="M18.293 13l-2.647 2.646.707.708 3.854-3.854-3.854-3.854-.707.708L18.293 12H12.5A5.5 5.5 0 0 0 7 17.5V19h1v-1.5a4.5 4.5 0 0 1 4.5-4.5h5.793z"/></svg>'},"3j+J":function(e,t,n){e.exports={wrapper:"wrapper-2wbe1KZX",labelRow:"labelRow-2wbe1KZX",label:"label-2wbe1KZX",labelHint:"labelHint-2wbe1KZX",labelOn:"labelOn-2wbe1KZX"}},"3p5r":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="25" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="24" height="20" rx="2"/><path d="M0 10h24M6 0v20M12 0v20M18 0v20"/></g></svg>'},"4hTN":function(e,t,n){e.exports={value:"value-2y-wa9jT",selected:"selected-2y-wa9jT"}},"4pMH":function(e,t,n){},"53FK":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h11M11 0v20"/></g></svg>'},"5ijr":function(e){e.exports=JSON.parse('{"switcherWrapper":"switcherWrapper-1wFH-_jm","size-small":"size-small-1gT-kZYO","size-large":"size-large-MOSirnj_","intent-select":"intent-select-2kut8F29","switcherThumbWrapper":"switcherThumbWrapper-2u191lDO","input":"input-J7QIcTTo","switcherTrack":"switcherTrack-2XruDVTa","intent-default":"intent-default-3soo5rvS","switcherThumb":"switcherThumb-2yuEucci","focus":"focus-uZMRkCO0"}')},"6w+I":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22M7 10v10M15 10v10"/></g></svg>'},"77oG":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="M18 5v5h3V5h-3zm-1-1h5v7h-5V4zm-4 13h3v-5h-3v5zm-1-6h5v7h-5v-7zM8 24h3v-5H8v5zm-1-6h5v7H7v-7z"/></svg>'},"7RQU":function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 5h22M0 10h22M0 15h22M11 0v20"/></g></svg>'},"8OHs":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" width="23" height="23"><circle fill="none" stroke="currentColor" cx="11.5" cy="11.5" r="11"/><path fill="currentColor" d="M11.366 6.636c0-.327.116-.6.348-.816a1.19 1.19 0 0 1 .846-.326c.327 0 .607.108.842.326.234.217.351.49.351.816 0 .322-.117.593-.351.813-.235.22-.515.33-.842.33-.328 0-.608-.109-.843-.326a1.067 1.067 0 0 1-.351-.817zM11.908 17h-1.86l1.186-6.372H10.23l.308-1.472h2.835L11.908 17z"/></svg>'},"9NBK":function(e,t,n){e.exports={item:"item-2gtivim-",round:"round-2gtivim-"}},BxJQ:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M11 0v20"/></g></svg>'},C9Qp:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22M11 0v10"/></g></svg>'},CX26:function(e,t,n){e.exports={form:"form-9dAINdeN",interacting:"interacting-9dAINdeN",input:"input-9dAINdeN",menu:"menu-9dAINdeN",add:"add-9dAINdeN",hovered:"hovered-9dAINdeN",hover:"hover-9dAINdeN",wrap:"wrap-9dAINdeN"}},"Db7+":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("mrSG"),i=n("q1tI"),o=n("TSYQ"),r=n("tU7i"),s=n("1Tx8"),l=["medium","small"];function c(e){var t=e.text,n=e.className,c=e.displayMode,h=e.collapseWhen,u=void 0===h?l:h,d=Object(a.e)(e,["text","className","displayMode","collapseWhen"]),v=!u.includes(c);return i.createElement(r.b,Object(a.a)({},d,{text:v?t:void 0,className:o(n,s.button,v?s.withText:s.withoutText)}))}},DeZa:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22M7 0v20M15 0v20"/></g></svg>'},EsZh:function(e,t,n){"use strict";n.r(t),n.d(t,"SERIES_ICONS",(function(){return b}));var a,i=n("77oG"),o=n("NblU"),r=n("j1g1"),s=n("pIlP"),l=n("lRGL"),c=n("G2sT"),h=n("Jtxf"),u=n("pqsj"),d=n("1uoO"),v=n("FO3N"),p=n("t2Sj"),m=n("fD7T"),f=n("VgwI"),b=((a={})[3]=c,a[0]=h,a[1]=u,a[8]=d,a[9]=v,a[2]=p,a[10]=m,a[12]=f,a);b[4]=i,b[6]=o,b[7]=r,b[5]=s,b[11]=l},FO3N: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 11v6h3v-6h-3zm-.5-1h4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"/><path d="M18 7h1v3.5h-1zm0 10.5h1V21h-1z"/><path d="M9 8v11h3V8H9zm-.5-1h4a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-12a.5.5 0 0 1 .5-.5z"/><path d="M10 4h1v5h-1zm0 14h1v5h-1zM8.5 9H10v1H8.5zM11 9h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11zm-1 1h1v1h-1zm-1.5 1H10v1H8.5zm2.5 0h1.5v1H11z"/></svg>'},FzLb:function(e,t,n){"use strict";var a=n("mrSG"),i=n("q1tI"),o=n("TSYQ"),r=n("5ijr");n("4pMH");function s(e){const{className:t="",intent:n="default",size:a="small",disabled:i}=e;return o(t,r.switcherWrapper,r["size-"+a],!i&&r["intent-"+n])}class l extends i.PureComponent{render(){const e=this.props,{reference:t,size:n,intent:l}=e,c=Object(a.e)(e,["reference","size","intent"]),h=o(r.input,-1!==this.props.tabIndex&&r.focus);return i.createElement("div",{className:s(this.props)},i.createElement("input",Object.assign({},c,{type:"checkbox",className:h,ref:t})),i.createElement("div",{className:r.switcherThumbWrapper},i.createElement("div",{className:r.switcherTrack}),i.createElement("div",{className:r.switcherThumb})))}}n.d(t,"a",(function(){return l}))},G2sT: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="M12.5 17.207L18.707 11h2l3.647-3.646-.708-.708L20.293 10h-2L12.5 15.793l-3-3-4.854 4.853.708.708L9.5 14.207z"/><path d="M9 16h1v1H9zm1 1h1v1h-1zm-1 1h1v1H9zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1H9zm2 0h1v1h-1zm-3-3h1v1H8zm-1 1h1v1H7zm-1 1h1v1H6zm2 0h1v1H8zm-1 1h1v1H7zm-2 0h1v1H5zm17-9h1v1h-1zm1-1h1v1h-1zm0 2h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-5-7h1v1h-1zm2 0h1v1h-1zm1-1h1v1h-1zm-2 2h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-2-6h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-3-3h1v1h-1zm-1 1h1v1h-1zm-1 1h1v1h-1zm2 0h1v1h-1zm-1 1h1v1h-1z"/></svg>'},GeUm:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("q1tI"),i=n("TSYQ"),o=n("sHKj");function r(e){return a.createElement("div",{className:i(e.className,o.title)},e.children)}},GgvM: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="M21 7v4h1V6h-5v1z"/><path d="M16.854 11.854l5-5-.708-.708-5 5zM7 7v4H6V6h5v1z"/><path d="M11.146 11.854l-5-5 .708-.708 5 5zM21 21v-4h1v5h-5v-1z"/><path d="M16.854 16.146l5 5-.708.708-5-5z"/><g><path d="M7 21v-4H6v5h5v-1z"/><path d="M11.146 16.146l-5 5 .708.708 5-5z"/></g></g></svg>'},HBiQ:function(e,t,n){e.exports={button:"button-2eVMAgh-",
first:"first-2eVMAgh-",last:"last-2eVMAgh-"}},Jtxf:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor" stroke-linecap="square"><path d="M10.5 7.5v15M7.5 20.5H10M13.5 11.5H11M19.5 6.5v15M16.5 9.5H19M22.5 16.5H20"/></g></svg>'},KFwr:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n("nPPD"),i=n("MB0Y"),o=n("3j+J"),r=Object(a.a)(i.a,o)},LBcQ:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M11 0v20M11 7h11M11 13h11"/></g></svg>'},MB0Y:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var a=n("mrSG"),i=n("q1tI"),o=n.n(i),r=n("TSYQ"),s=n.n(r),l=n("FzLb"),c=n("QpNh"),h=n("OP2o"),u=h;function d(e){var t=e.className,n=e.checked,i=e.id,r=e.label,u=e.labelDescription,d=e.value,v=e.preventLabelHighlight,p=e.reference,m=e.switchReference,f=e.theme,b=void 0===f?h:f,g=s()(b.label,n&&!v&&b.labelOn),w=s()(t,b.wrapper,n&&b.wrapperWithOnLabel);return o.a.createElement("label",{className:w,htmlFor:i,ref:p},o.a.createElement("div",{className:b.labelRow},o.a.createElement("div",{className:g},r),u&&o.a.createElement("div",{className:b.labelHint},u)),o.a.createElement(l.a,Object(a.a)({className:b.switch,reference:m,checked:n,onChange:function(t){var n=t.target.checked;void 0!==e.onChange&&e.onChange(n)},value:d,tabIndex:-1,id:i},Object(c.a)(e))))}},MrUa:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M7 0v20M15 0v20"/></g></svg>'},NblU: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="M14.5 16a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm0-1a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm0 7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm0-1a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm3.293-15.5l4.707 4.707.707-.707L18.5 4.793z"/><path d="M18.5 10.207L23.207 5.5l-.707-.707L17.793 9.5zm-.707 1.293l4.707 4.707.707-.707-4.707-4.707z"/><path d="M18.5 16.207l4.707-4.707-.707-.707-4.707 4.707zM5.793 17.5l4.707 4.707.707-.707L6.5 16.793z"/><path d="M6.5 22.207l4.707-4.707-.707-.707L5.793 21.5zM5.793 5.5l4.707 4.707.707-.707L6.5 4.793z"/><path d="M6.5 10.207L11.207 5.5l-.707-.707L5.793 9.5zM5.793 11.5l4.707 4.707.707-.707L6.5 10.793z"/><path d="M6.5 16.207l4.707-4.707-.707-.707L5.793 15.5z"/></svg>'},OP2o:function(e,t,n){e.exports={wrapper:"wrapper-1Eudat6L",hovered:"hovered-1Eudat6L",labelRow:"labelRow-1Eudat6L",label:"label-1Eudat6L",labelHint:"labelHint-1Eudat6L",labelOn:"labelOn-1Eudat6L"}},Ol5X:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 5h22M0 10h22M0 15h22"/></g></svg>'},
PEkK:function(e,t,n){e.exports={button:"button-v3OBZpM6",dropdown:"dropdown-v3OBZpM6",layoutType:"layoutType-v3OBZpM6",title:"title-v3OBZpM6",tabletTitle:"tabletTitle-v3OBZpM6",syncCharts:"syncCharts-v3OBZpM6",tabletWrapper:"tabletWrapper-v3OBZpM6",icon:"icon-v3OBZpM6",syncTable:"syncTable-v3OBZpM6",syncListWrapper:"syncListWrapper-v3OBZpM6"}},Q2dY:function(e,t,n){"use strict";var a=n("mrSG"),i=(n("bSeV"),n("YFKU")),o=n("q1tI"),r=n("TSYQ"),s=n("N5tr"),l=n("KKsp"),c=n("kg8i"),h=n("82wv"),u=n("Db7+"),d=n("//lZ"),v=n("9uLv"),p=n("nrMg"),m="M21.5 21.5h-14a5 5 0 1 1 .42-9.983 7.5 7.5 0 0 1 14.57 2.106 4.002 4.002 0 0 1-.99 7.877z",f=13.08991081237793,b={strokeDashOffset:49.242997817993164,strokeDash:49.866326904296876,strokeGap:f,strokeDashCheck:0},g={strokeDashOffset:62.956237716674806,strokeGap:0,strokeDash:62.956237716674806,strokeDashCheck:200},w=function(e){function t(t){var n=e.call(this,t)||this;return n.state=b,n}return Object(a.c)(t,e),t.prototype.componentDidMount=function(){"saved"===this.props.state?this.setState(g):this._goToNextState(this.props.state)},t.prototype.componentWillUnmount=function(){this._currentAnimation=void 0},t.prototype.componentWillReceiveProps=function(e){this.props.state!==e.state&&this._goToNextState(e.state)},t.prototype.render=function(){var e,t=this.state,n=t.strokeDashOffset,a=t.strokeDash,i=t.strokeGap,s=t.strokeDashCheck,l=this.props,c=l.className,h=l.size,u=l.onClick,d=l.state,v=l.isHovered,f=void 0!==v&&v,b=r(p.container,c,f&&p.hovered,((e={})[p.unsaved]="unsaved"===d,e[p.saving]="saving"===d,e[p.saved]="saved"===d,e));return o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:b,version:"1.1",width:h,height:h,viewBox:"0 0 28 28",onClick:u},o.createElement("g",{fill:"none"},o.createElement("path",{className:p.dottedCloud,stroke:"currentColor",strokeDasharray:"3.5,2.5",d:m}),o.createElement("path",{className:p.spinningCloud,stroke:"currentColor",strokeDasharray:a+" "+i,strokeDashoffset:n,d:m}),o.createElement("path",{className:p.arrowGap,d:"M11 20h6v5h-6z"}),o.createElement("g",{className:p.arrow,stroke:"currentColor"},o.createElement("path",{strokeLinecap:"square",d:"M14.5 14.5v10"}),o.createElement("path",{d:"M11 17l3.5-3.5L18 17"})),o.createElement("g",{className:p.check,stroke:"currentColor"},o.createElement("path",{strokeDasharray:s+"% "+(200-s)+"%",d:"M10 15l2.5 2.5L18 12"}))))},t.prototype._goToNextState=function(e){var t=this;switch(e){case"unsaved":this.setState(b);break;case"saving":"unsaved"!==this.props.state&&this.setState(b),this._currentAnimation=Promise.resolve(this._currentAnimation).then((function(){return t._createSpinAnimationWhile((function(){return"saving"===t.props.state}))}));break;case"saved":this._currentAnimation=Promise.resolve(this._currentAnimation).then(this._createFillGapAnimation.bind(this)).then(this._createCheckAnimation.bind(this))}},t.prototype._createSpinAnimationWhile=function(e){var t=this;return this._createSpinAnimation().then((function(){return e()?t._createSpinAnimationWhile(e):Promise.resolve()}))},
t.prototype._createSpinAnimation=function(){var e=this;return new Promise((function(t){Object(d.doAnimate)({onStep:function(t,n){void 0!==e._currentAnimation&&e.setState({strokeDashOffset:n})},onComplete:function(){return t()},from:49.242997817993164,to:111.57590644836426,easing:v.easingFunc.linear,duration:1e3})}))},t.prototype._createCheckAnimation=function(){var e=this;return new Promise((function(t){Object(d.doAnimate)({onStep:function(t,n){void 0!==e._currentAnimation&&e.setState({strokeDashCheck:Math.round(n)})},onComplete:function(){return t()},from:0,to:200,easing:v.easingFunc.linear,duration:1e3})}))},t.prototype._createFillGapAnimation=function(){var e=this;return new Promise((function(t){Object(d.doAnimate)({onStep:function(t,n){void 0!==e._currentAnimation&&e.setState({strokeDashOffset:62.956237716674806-n,strokeGap:n,strokeDash:62.956237716674806-n})},onComplete:function(){return t()},from:f,to:0,easing:v.easingFunc.linear,duration:200})}))},t}(o.PureComponent),C=n("nPPD"),y=n("h4Fc"),S=n("MB0Y"),_=window.t("Autosave On"),k=Object(y.b)(),O=window.t("Autosave Off"),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.isAutoSaveEnabled,a=e.id,i=e.theme;return o.createElement(S.b,{checked:n,onChange:this.props.onAutoSaveChanged,className:t,id:a,theme:i,label:n?_:O,labelDescription:k,value:"autoSaveSwitcher"})},t}(o.PureComponent),M=window.t("Sharing On"),x=window.t("Sharing Off"),j=window.t("Everyone with the link can view and copy"),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.isSharingEnabled,a=e.id,i=e.theme;return o.createElement(S.b,{checked:n,onChange:this.props.onSharingChanged,className:t,id:a,theme:i,label:n?M:x,labelDescription:j,value:"sharingSwitcher"})},t}(o.PureComponent),I=n("/DW5"),N=n("Kxc7"),R=n("Iivm"),A=n("tU7i"),L=n("KFwr"),W=n("dhVi"),F=n("2uTr"),z=n("+KIV"),H=n("RGo6"),D=n("SchQ"),P=n("OP2o"),U=n("v1bN");n.d(t,"a",(function(){return X}));var B=N.enabled("widget"),V=Object(C.a)(A.a,D),K={copy:window.t("Copy"),makeCopy:window.t("Make a Copy"),newChartLayout:window.t("New Chart Layout"),loadChartLayout:Object(F.appendEllipsis)(window.t("Load Chart Layout")),rename:Object(F.appendEllipsis)(window.t("Rename")),renameChartLayout:window.t("Rename Chart Layout"),saveAs:Object(F.appendEllipsis)(window.t("Make a Copy")),saveChartLayout:window.t("Save"),saveChartLayoutOnAutoSaveEnable:window.t("Save Now"),saveChartLayoutLong:window.t("Save all charts for all symbols and intervals on your layout"),manageChartLayouts:window.t("Manage Chart Layouts")},G=[],Q=Object(I.b)({keys:["Ctrl","S"],text:"{0} + {1}"}),X=function(e){function t(t){var n=e.call(this,t)||this;return n._toolWidgetMenuRef=o.createRef(),n._handleSaveHoverBegin=function(){n.setState({iconHovered:!0})},n._handleSaveHoverEnd=function(){n.setState({iconHovered:!1})},n.state={iconHovered:!1},n}
return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.isReadOnly,a=e.displayMode,i=e.isProcessing,s=e.title,l=e.chartId,d=e.wasChanges,v=e.onCloneChart,p=e.onSaveChart,m=e.hideMenu,f=e.isTabletSmall,b=this.state.iconHovered,g=!n&&!m,C="saved";return!d&&s||(C="unsaved"),i&&(C="saving"),o.createElement(c.a,null,n?o.createElement(c.a,null,o.createElement(u.a,{id:t,displayMode:a,icon:o.createElement(R.a,{icon:z}),isDisabled:i,onClick:v,text:K.copy,title:K.makeCopy,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,collapseWhen:G})):o.createElement(c.a,null,o.createElement(u.a,{id:t,className:r(H.button,g&&H.buttonSmallPadding),displayMode:a,icon:o.createElement(w,{size:28,state:C,isHovered:b}),isDisabled:l&&!d||i,onClick:p,text:s||K.saveChartLayout,title:K.saveChartLayoutLong,onMouseEnter:this._handleSaveHoverBegin,onMouseLeave:this._handleSaveHoverEnd,theme:V,collapseWhen:G,"data-tooltip-hotkey":B?"":Q}),g&&o.createElement(h.b,{ref:this._toolWidgetMenuRef,className:"js-save-load-menu-open-button",arrow:!0,isDrawer:f,drawerPosition:"Bottom",title:K.manageChartLayouts},this._renderMenuItems(Boolean(f)))))},t.prototype._renderMenuItems=function(e){var t=this.props,n=t.wasChanges,a=t.isProcessing,c=t.chartId,h=t.onSaveChartFromMenu,u=t.onRenameChart,d=t.onSaveAsChart,v=t.onLoadChart,p=t.onNewChart,m=t.isAutoSaveEnabled,f=t.autoSaveId,b=t.sharingId,g=t.onAutoSaveChanged,w=t.isSharingEnabled,C=t.onSharingChanged,y=e?W.a:U,S=e?L.a:P,_=e?void 0:"Ctrl+S",k=[],O=c,M=o.createElement(s.b,{key:"save",isDisabled:Boolean(a||!n&&c),label:m&&O?K.saveChartLayoutOnAutoSaveEnable:K.saveChartLayout,onClick:h,shortcut:_,labelRowClassName:r(e&&H.popupItemRowTabletSmall),theme:y}),x=function(){return void 0!==m&&void 0!==g&&O?o.createElement(E,{key:"auto-save",className:r(!e&&H.autoSaveWrapper),isAutoSaveEnabled:m,onAutoSaveChanged:g,id:f,theme:S}):null};return e?(k.push(M),k.push(x())):(k.push(x()),k.push(M)),void 0!==c&&(e||k.push(o.createElement(l.a,{key:"existing-chart-section-begin"})),void 0!==w&&void 0!==C&&k.push(o.createElement(T,{key:"sharing",className:r(!e&&H.sharingWrapper),isSharingEnabled:w,onSharingChanged:C,id:b,theme:S})),k.push.apply(k,[o.createElement(s.b,{key:"rename",label:K.rename,onClick:u,labelRowClassName:r(e&&H.popupItemRowTabletSmall),theme:y}),o.createElement(s.b,{key:"save-as",label:K.saveAs,onClick:d,labelRowClassName:r(e&&H.popupItemRowTabletSmall),theme:y})])),k.push(o.createElement(l.a,{key:"platform-section-begin"})),k.push(o.createElement(s.b,{key:"new-chart",label:K.newChartLayout,onClick:p,labelRowClassName:r(e&&H.popupItemRowTabletSmall),theme:y})),k.push(o.createElement(s.b,{key:"load-chart",className:"js-save-load-menu-item-load-chart",label:K.loadChartLayout,onClick:v,labelRowClassName:r(e&&H.popupItemRowTabletSmall),theme:y,shortcut:Object(i.t)("Dot",{context:"hotkey"})})),k},t}(o.PureComponent)},RGo6:function(e,t,n){e.exports={opened:"opened-90gXp5JL",hover:"hover-90gXp5JL",autoSaveWrapper:"autoSaveWrapper-90gXp5JL",
sharingWrapper:"sharingWrapper-90gXp5JL",button:"button-90gXp5JL",buttonSmallPadding:"buttonSmallPadding-90gXp5JL",hintPlaceHolder:"hintPlaceHolder-90gXp5JL",smallHintPlaceHolder:"smallHintPlaceHolder-90gXp5JL",popupItemRowTabletSmall:"popupItemRowTabletSmall-90gXp5JL"}},RYBj: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="M13.5 6a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM4 14.5a9.5 9.5 0 1 1 19 0 9.5 9.5 0 0 1-19 0z"/><path fill="currentColor" d="M9 14h4v-4h1v4h4v1h-4v4h-1v-4H9v-1z"/></svg>'},"S+Ii":function(e,t,n){e.exports={buttonUndo:"buttonUndo-nGqa616C",buttonRedo:"buttonRedo-nGqa616C"}},S0BX:function(e,t,n){e.exports={dropdown:"dropdown-3UuXmxSn",label:"label-3UuXmxSn",smallWidthTitle:"smallWidthTitle-3UuXmxSn",smallWidthMenuItem:"smallWidthMenuItem-3UuXmxSn",smallWidthWrapper:"smallWidthWrapper-3UuXmxSn"}},SEmj:function(e,t,n){e.exports={toggler:"toggler-2-u63fCU",hovered:"hovered-2-u63fCU",label:"label-2-u63fCU",centered:"centered-2-u63fCU",checked:"checked-2-u63fCU"}},SchQ:function(e,t,n){e.exports={button:"button-2DZWpSVr",isDisabled:"isDisabled-2DZWpSVr",text:"text-2DZWpSVr"}},Sl3V:function(e,t,n){e.exports={menu:"menu-N-Iyk8ip",menuSmallTablet:"menuSmallTablet-N-Iyk8ip",menuItemHeaderTabletSmall:"menuItemHeaderTabletSmall-N-Iyk8ip",menuItemHeader:"menuItemHeader-N-Iyk8ip"}},UJ4t:function(e,t,n){e.exports={wrap:"wrap-3jbioG5e"}},VSd1:function(e,t,n){e.exports={row:"row-30M_mc54",rowInner:"rowInner-30M_mc54",smallRow:"smallRow-30M_mc54",rowLabel:"rowLabel-30M_mc54",smallRowLabel:"smallRowLabel-30M_mc54",rowButtons:"rowButtons-30M_mc54",layoutButtonWrap:"layoutButtonWrap-30M_mc54",smallWidth:"smallWidth-30M_mc54",layoutButton:"layoutButton-30M_mc54",hovered:"hovered-30M_mc54",isActive:"isActive-30M_mc54",smallWidthLayoutButton:"smallWidthLayoutButton-30M_mc54",layoutButtons:"layoutButtons-30M_mc54"}},VgwI:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M7.5 7H7v14h5V7H7.5zM8 20V8h3v12H8zm7.5-11H15v10h5V9h-4.5zm.5 9v-8h3v8h-3z"/></svg>'},X7WP:function(e,t,n){e.exports={wrap:"wrap-37REU7wC",inner:"inner-37REU7wC",actions:"actions-37REU7wC",hover:"hover-37REU7wC",input:"input-37REU7wC",defaultCursor:"defaultCursor-37REU7wC",isExpanded:"isExpanded-37REU7wC"}},XWsk: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 stroke="currentColor" d="M20 17l-5 5M15 17l5 5M9 11.5h7M17.5 8a2.5 2.5 0 0 0-5 0v11a2.5 2.5 0 0 1-5 0"/></svg>'},Y7Ix:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c}));var a=n("mrSG"),i=n("BHQF"),o=n("nmnj");function r(e){return Object(a.b)(this,void 0,void 0,(function(){return Object(a.d)(this,(function(t){switch(t.label){case 0:return[4,Object(i.fetch)("/pubscripts-library/?"+e)];case 1:return[2,t.sent().json()]}}))}))}
function s(e){return void 0===e&&(e={offset:0,count:20,type:0}),new URLSearchParams(Object.entries(e)).toString()}function l(e){if(window.pro){var t=[];return Object.entries(window.pro.getStudies()).forEach((function(n){var a,i=n[0],r=n[1];if((null===(a=window.pro)||void 0===a?void 0:a.hasPackage(i))&&r.subproduct_ids&&r.subproduct_ids[0]){var s=r.subproduct_ids[0].split("$")[1];e&&e(i),t.push(Object(o.requestPineAddons)(s))}})),Promise.all(t)}}function c(e){return e.activeChartWidget.value().metaInfoRepository().findAllJavaStudies()}},YEs3:function(e,t,n){e.exports={button:"button-3HNCAKoZ",menu:"menu-3HNCAKoZ"}},YNF9:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M11 0v20M11 10h11"/></g></svg>'},ZVxo:function(e,t,n){e.exports={title:"title-2Ny7vJo6"}},aVq2:function(e,t,n){e.exports={button:"button-2R6OKuTS",first:"first-2R6OKuTS",last:"last-2R6OKuTS",menu:"menu-2R6OKuTS",dropdown:"dropdown-2R6OKuTS",menuContent:"menuContent-2R6OKuTS",section:"section-2R6OKuTS",smallTabletSectionTitle:"smallTabletSectionTitle-2R6OKuTS",addCustomInterval:"addCustomInterval-2R6OKuTS",hovered:"hovered-2R6OKuTS"}},cSDC:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("YFKU"),i=[{name:"1",label:Object(a.t)("minutes",{context:"interval"})},{name:"1H",label:Object(a.t)("hours",{context:"interval"})},{name:"1D",label:Object(a.t)("days",{context:"interval"})},{name:"1W",label:Object(a.t)("weeks",{context:"interval"})},{name:"1M",label:Object(a.t)("months",{context:"interval"})}];i.push({name:"1R",label:Object(a.t)("range",{context:"interval"})})},cwLw:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n("q1tI"),i=n.n(a),o=n("TSYQ"),r=n.n(o),s=n("ML8+"),l=n("fioS");function c(e){return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:r()(e.className,l.summary),onClick:function(){e.onStateChange&&e.onStateChange(!e.open)},"data-open":e.open},e.summary,i.a.createElement(s.a,{className:l.caret,dropped:Boolean(e.open)})),e.open&&e.children)}},dwD8:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22"/></g></svg>'},ewWO:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M11 0v20M11 5h11M11 10h11M11 15h11"/></g></svg>'},fD7T:function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor"><path stroke-dasharray="1,1" d="M4 14.5h22"/><path stroke-linecap="round" stroke-linejoin="round" d="M7.5 12.5l2-4 1 2 2-4 3 6"/><path stroke-linecap="round" d="M5.5 16.5l-1 2"/><path stroke-linecap="round" stroke-linejoin="round" d="M17.5 16.5l2 4 2-4m2-4l1-2-1 2z"/></g></svg>'},fESK:function(e,t,n){e.exports={labelRow:"labelRow-2noQNU_F",toolbox:"toolbox-2noQNU_F",description:"description-2noQNU_F",descriptionTabletSmall:"descriptionTabletSmall-2noQNU_F",item:"item-2noQNU_F",titleItem:"titleItem-2noQNU_F",titleItemTabletSmall:"titleItemTabletSmall-2noQNU_F",itemTabletSmall:"itemTabletSmall-2noQNU_F",itemLabelTabletSmall:"itemLabelTabletSmall-2noQNU_F",wrap:"wrap-2noQNU_F",hovered:"hovered-2noQNU_F"}},fioS:function(e,t,n){e.exports={summary:"summary-3UYGeClB",hovered:"hovered-3UYGeClB",caret:"caret-3UYGeClB"}},h4Fc:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));n("YFKU"),n("HbRj");var a=n("+GxX");function i(){var e=Math.ceil(o()/6e4);return window.t("Every minute",{plural:"Every {0} minutes",count:e}).format(e)}function o(){return Object(a.isFeatureEnabled)("chart_autosave_2min")?12e4:Object(a.isFeatureEnabled)("chart_autosave_3min")?18e4:Object(a.isFeatureEnabled)("chart_autosave_5min")?3e5:Object(a.isFeatureEnabled)("chart_autosave_7min")?42e4:Object(a.isFeatureEnabled)("chart_autosave_10min")?6e5:Object(a.isFeatureEnabled)("chart_autosave_20min")?12e5:Object(a.isFeatureEnabled)("chart_autosave_30min")?18e5:Object(a.isFeatureEnabled)("chart_autosave_year")?31536e6:6e4}},ifT7:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="25" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="24" height="20" rx="2"/><path d="M0 10h24M6 10v10M12 10v10M18 10v10"/></g></svg>'},j1g1: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="M18 24h3V12h-3v12zm-1-13h5v14h-5V11zm-4-8v7h3V3h-3zm-1-1h5v9h-5V2zM8 19h3v-7H8v7zm-1-8h5v9H7v-9z"/></svg>'},jKyl:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28"><g fill="none"><path stroke="currentColor" d="M11 20.5H7.5a5 5 0 1 1 .42-9.98 7.5 7.5 0 0 1 14.57 2.1 4 4 0 0 1-1 7.877H18"/><path stroke="currentColor" d="M14.5 24V12.5M11 16l3.5-3.5L18 16"/></g></svg>'},jbim:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><rect width="22" height="20" fill="none" stroke="currentColor" rx="2" transform="translate(.5 .5)"/></svg>'},jeSM:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="25" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="24" height="20" rx="2"/><path d="M6 0v20M12 0v20M18 0v20"/></g></svg>'},kg8i:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n("mrSG"),i=n("q1tI"),o=n("TSYQ"),r=n("UJ4t"),s=function(e){
function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,s=Object(a.e)(e,["children","className"]);return i.createElement("div",Object(a.a)({className:o(n,r.wrap)},s),t)},t}(i.PureComponent)},kuuR:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22M0 15h22M11 0v10"/></g></svg>'},l3c7:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 7h22M0 13h22M11 0v20"/></g></svg>'},lAXe:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 21 21" width="21" height="21"><g fill="none" stroke="currentColor"><path d="M18.5 11v5.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2v-13a2 2 0 0 1 2-2H9"/><path stroke-linecap="square" d="M18 2l-8.5 8.5m4-9h5v5"/></g></svg>'},lRBB:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 7h22M0 13h22"/></g></svg>'},lRGL:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="none" stroke="currentColor"><path d="M10.5 9v12M7 18.5h3.5M14 9.5h-3.5M19.5 3v12M16 6.5h3.5M23 14.5h-3.5M18.5 19.5h2a1 1 0 1 0 0-2h-2V22v-2.5zM21.5 22L20 19.5"/></g></svg>'},miV2:function(e,t,n){"use strict";var a,i=n("Kxc7"),o=n("mrSG"),r=n("q1tI"),s=n.n(r),l=n("17x9"),c=n("+GxX"),h=n("dfhE"),u=n("EsZh"),d=n("pr86"),v=n("Iivm"),p=n("N5tr"),m=n("82wv"),f=n("kg8i"),b=n("TSYQ"),g=n.n(b),w=n("tU7i"),C=n("QpNh"),y=n("HBiQ"),S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleClick=function(){var e=t.props,n=e.onClick,a=e.onClickArg;n&&n(a)},t}return Object(o.c)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.isFirst,a=t.isLast,i=t.hint,s=t.text,l=t.icon,c=t.isActive,h=t.isDisabled,u=t.className,d=Object(C.a)(this.props);return r.createElement(w.b,Object(o.a)({},d,{icon:l,text:s,title:i,isDisabled:h,isActive:c,isGrouped:!0,onClick:this._handleClick,className:b(u,y.button,(e={},e[y.first]=n,e[y.last]=a,e))}))},t}(r.PureComponent),_=n("KKsp"),k=n("/KDZ"),O=n("uhCe"),E=n("dhVi"),M=n("1TxM"),x=n("YEs3"),j=((a={})[0]=window.t("Bars"),a[1]=window.t("Candles"),a[9]=window.t("Hollow Candles"),a[8]=window.t("Heikin Ashi"),a[2]=window.t("Line"),a[3]=window.t("Area"),a[10]=window.t("Baseline"),a[12]=window.t("High-Low"),a);j[4]=window.t("Renko"),j[7]=window.t("Line Break"),j[5]=window.t("Kagi"),j[6]=window.t("Point & Figure"),j[11]=window.t("Range");var T={barsStyle:window.t("Bar's Style"),labels:j},I=Object(M.b)(),N=function(e){function t(t,n){var a=e.call(this,t,n)||this;a._handleChangeStyle=function(e){var t=a.state,n=t.favorites,i=t.lastSelectedNotFavorite,o=t.activeStyle
;a.setState({activeStyle:e,lastSelectedNotFavorite:n.includes(o)?i:o})},a._handleSelectStyle=function(e){var t=a.context.chartWidgetCollection;e!==t.activeChartStyle.value()&&t.trySetChartStyleToActiveWidget(e)},a._handleClickFavorite=function(e){a._isStyleFavorited(e)?a._handleRemoveFavorite(e):a._handleAddFavorite(e)},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired,favoriteChartStylesService:l.any.isRequired});var o=n.chartWidgetCollection,r=n.favoriteChartStylesService,s=o.activeChartStyle.value(),h=r.get(),u=[];return i.enabled("japanese_chart_styles")&&(u.push(4,7,5,6),u.push(11)),a.state={activeStyle:s,favorites:h,styles:[0,1,9,8,2,3,10],japaneseStyles:u},Object(c.isFeatureEnabled)("chart_style_hilo")&&a.state.styles.push(12),a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this.context,t=e.chartWidgetCollection,n=e.favoriteChartStylesService;t.activeChartStyle.subscribe(this._handleChangeStyle),n.getOnChange().subscribe(this,this._handleChangeSettings)},t.prototype.componentWillUnmount=function(){var e=this.context,t=e.chartWidgetCollection,n=e.favoriteChartStylesService;t.activeChartStyle.unsubscribe(this._handleChangeStyle),n.getOnChange().unsubscribe(this,this._handleChangeSettings)},t.prototype.render=function(){var e=this,t=this.props,n=t.isShownQuicks,a=t.displayMode,i=void 0===a?"full":a,s=t.id,l=this.state,c=l.activeStyle,d=l.favorites,p=l.styles,b=l.japaneseStyles,g=l.lastSelectedNotFavorite,w="small"!==i&&n&&0!==d.length,C=Object(o.f)([],d);C.includes(c)?void 0!==g&&C.push(g):C.push(c);var y=w&&C.length>1;return r.createElement(k.a,{rule:O.a.TabletSmall},(function(t){var n=p.map((function(n){return e._renderPopupMenuItem(n,n===c,t)})),a=b.map((function(n){return e._renderPopupMenuItem(n,n===c,t)}));return r.createElement(f.a,{id:s},y&&C.map((function(t,n){return r.createElement(S,{className:x.button,icon:u.SERIES_ICONS[t],isActive:w&&c===t,key:n,hint:T.labels[t],isFirst:0===n,isLast:n===C.length-1,onClick:w?e._handleSelectStyle:void 0,onClickArg:t,"data-value":h.STYLE_SHORT_NAMES[t]})})),r.createElement(m.b,{arrow:Boolean(y),content:y?void 0:r.createElement(f.a,null,r.createElement(v.a,{icon:u.SERIES_ICONS[c]})),title:y?T.barsStyle:T.labels[c],className:x.menu,isDrawer:t},n,!!a.length&&r.createElement(_.a,null),a))}))},t.prototype._renderPopupMenuItem=function(e,t,n){var a=this,i=this.props.isFavoritingAllowed,o=this._isStyleFavorited(e);return r.createElement(p.b,{key:e,theme:n?E.a:void 0,icon:u.SERIES_ICONS[e],isActive:t,label:T.labels[e]||"",onClick:this._handleSelectStyle,onClickArg:e,showToolboxOnHover:!o,toolbox:i&&r.createElement(d.a,{isActive:t,isFilled:o,onClick:function(){return a._handleClickFavorite(e)}}),"data-value":h.STYLE_SHORT_NAMES[e]})},t.prototype._handleChangeSettings=function(e){this.setState({lastSelectedNotFavorite:void 0,favorites:e})},t.prototype._isStyleFavorited=function(e){return-1!==this.state.favorites.indexOf(e)},t.prototype._handleAddFavorite=function(e){var t=this.state.favorites
;this.context.favoriteChartStylesService.set(Object(o.f)(Object(o.f)([],t),[e]))},t.prototype._handleRemoveFavorite=function(e){var t=this.state.favorites;this.context.favoriteChartStylesService.set(t.filter((function(t){return t!==e})))},t.contextType=I,t}(r.PureComponent),R=n("YFKU"),A=n("Db7+"),L=n("JWMC"),W=n("RYBj"),F={compare:window.t("Compare"),compareOrAddSymbol:window.t("Compare or Add Symbol")},z=Object(M.b)(),H=!i.enabled("widget"),D=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._updateState=function(e){a.setState({isActive:e})},a._handleClick=function(){var e;Object(L.trackEvent)("GUI","Chart Header Toolbar","compare"),H?null===(e=a._compareDialogRenderer)||void 0===e||e.show():a.context.chartWidgetCollection.toggleAddCompareDialog().then((function(e){null!==e&&(e.on("afterOpen",(function(){return a.setState({isActive:!0})})),e.on("beforeClose",(function(){return a.setState({isActive:!1})})))}))},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired}),a.state={isActive:!1},a._compareDialogRenderer=H?a.context.chartWidgetCollection.getCompareDialogRenderer():null,a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().subscribe(this._updateState)},t.prototype.componentWillUnmount=function(){var e;null===(e=this._compareDialogRenderer)||void 0===e||e.visible().unsubscribe(this._updateState)},t.prototype.render=function(){var e=this.state.isActive;return r.createElement(A.a,Object(o.a)({},this.props,{icon:W,isOpened:e,onClick:this._handleClick,text:F.compare,title:F.compareOrAddSymbol}))},t.contextType=z,t}(r.PureComponent),P=n("p0W+"),U=n("GgvM"),B={hint:window.t("Fullscreen mode")},V=Object(M.b)(),K=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._handleClick=function(){a.context.chartWidgetCollection.startFullscreen()},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired}),a}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.id;return r.createElement(P.a,{id:n,icon:U,onClick:this._handleClick,title:B.hint,className:b(t)})},t.contextType=V,t}(r.PureComponent),G=n("Eyy1"),Q=n("/DW5"),X=n("SNmj"),q=n("nmnj"),J=n("TcSq"),Y=n("txPx"),Z=Object(Y.getLogger)("FavoritesInfo");function $(e,t){if(0===e.length)return Promise.resolve([]);Z.logNormal("Requesting favorites info");var n,a,i=[],o=new Map,r=new Map,s=new Map;return e.forEach((function(e){switch(e.type){case"java":s.set(e.studyId,e);break;case"pine":Object(J.isPublishedPineId)(e.pineId)?o.set(e.pineId,e):r.set(e.pineId,e);break;default:Object(G.assert)(!1,"unknown favorite type "+JSON.stringify(e))}})),0!==s.size&&i.push(t.findAllJavaStudies().then((function(e){for(var t=new Map,n=0,a=e;n<a.length;n++){var i=a[n];!i.is_hidden_study&&s.has(i.id)&&t.set(i.id,{name:i.description,localizedName:i.description_localized,studyMarketShittyObject:i})}return t})).then((function(e){var t=ee(s,e);if(0!==t.notFoundItems.length){var n=t.notFoundItems.map((function(e){return e.studyId}))
;Z.logWarn("Cannot find java scripts: "+JSON.stringify(n))}return t.items}))),i.push(function(e){var t=new Map;if(0===e.length)return Promise.resolve(t);return Promise.resolve(X.info(e).promise()).then((function(e){if(void 0!==e)for(var n=0,a=e;n<a.length;n++){var i=a[n];t.set(i.scriptIdPart,{name:i.scriptName,agreeCount:i.agreeCount,authorUsername:i.author.username,studyMarketShittyObject:i})}return t}))}(Array.from(o.keys())).then((function(e){var t=ee(o,e);if(0!==t.notFoundItems.length){var n=t.notFoundItems.map((function(e){return e.pineId}));Z.logWarn("Cannot find pub scripts: "+JSON.stringify(n))}return t.items}))),i.push((n=Array.from(r.keys()),a=new Map,new Promise((function(e){(function(e){if(0===e.length)return Promise.resolve(e);var t=window.pro;return t?t.ensureValidShopConf().then((function(){var n=[];return Object.entries(t.getStudies()).forEach((function(e){var a,i=e[0],o=e[1];t.hasPackage(i)&&(null===(a=o.subproduct_ids)||void 0===a?void 0:a[0])&&n.push(o.subproduct_ids[0].split("$")[1])})),te(e,(function(e){return n.some((function(t){return e.startsWith(t)}))}))})):Promise.resolve(te(e))})(n).then((function(t){if(0===t.length)return e(a);Object(q.requestInfoForScripts)(t).then((function(n){for(var i=new Set(t),o=0,r=n;o<r.length;o++){var s=r[o];i.has(s.scriptIdPart)&&a.set(s.scriptIdPart,{name:s.scriptName,studyMarketShittyObject:s})}e(a)}))}))}))).then((function(e){var t=ee(r,e);if(0!==t.notFoundItems.length){var n=t.notFoundItems.map((function(e){return e.pineId}));Z.logWarn("Cannot find pine scripts: "+JSON.stringify(n))}return t.items}))),Promise.all(i).then((function(e){return Z.logNormal("Requesting favorites info finished"),e.reduce((function(e,t){return e.concat(t)}),[])}))}function ee(e,t){var n={items:[],notFoundItems:[]};return e.forEach((function(e,a){var i=t.get(a);void 0!==i?n.items.push({item:e,info:i}):n.notFoundItems.push(e)})),n}function te(e,t){return e.filter((function(e){return Object(J.isStandardPineId)(e)||Object(J.isCustomPineId)(e)||(null==t?void 0:t(e))}))}var ne=n("CW80"),ae=n("mMWL"),ie=n("39J6"),oe=n("GeUm"),re=n("Y7Ix"),se=n("XWsk"),le=n("S0BX"),ce={text:window.t("Indicators"),hint:i.enabled("study_dialog_fundamentals_economy_addons")?window.t("Indicators & Strategies"):window.t("Indicators"),favorites:window.t("Favorites")},he=Object(Q.b)({keys:["/"],text:"{0}"}),ue=Object(M.b)(),de=function(e){function t(t,n){var a=e.call(this,t,n)||this;a._promise=null,a._menu=s.a.createRef(),a._setActiveState=function(e){a.setState({isActive:e})},a._handleClick=function(){var e=a.props.studyMarket;a.setState({isActive:!0},(function(){e.visible().value()?e.hide():e.show(void 0,a._initIndicatorsPromises)}))},a._handleSelectIndicator=function(e){e=Object(G.ensureDefined)(e);var t=a.context.chartWidgetCollection;if("java"===e.type){var n=Object(ne.tryFindStudyLineToolNameByStudyId)(e.studyId);if(null!==n)return void ae.tool.setValue(n)}t.activeChartWidget.value().insertStudy(e)},a._handleFavoriteIndicatorsChange=function(){
var e=a.context.favoriteScriptsModel,t=Object(o.f)([],Object(G.ensureDefined)(e).favorites());a.setState({favorites:t}),a._clearCache()},a._handleMouseEnter=function(){a._prefetchFavorites(),a._prefetchIndicators()},a._handleWrapClick=function(){a._prefetchFavorites()},a._handleChangeActiveWidget=function(){a._clearCache()},a._clearCache=function(){a._promise=null,a.setState({infos:[]})},Object(M.c)(n,{favoriteScriptsModel:l.any,chartWidgetCollection:l.any.isRequired});var i=n.favoriteScriptsModel,r=void 0!==i?i.favorites():[];return a.state={isActive:!1,isLoading:!1,favorites:r,infos:[]},a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props.studyMarket,t=this.context,n=t.favoriteScriptsModel,a=t.chartWidgetCollection;e.visible().subscribe(this._setActiveState),void 0!==n&&(n.favoritesChanged().subscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.subscribe(this._handleChangeActiveWidget))},t.prototype.componentWillUnmount=function(){var e=this.props.studyMarket,t=this.context,n=t.favoriteScriptsModel,a=t.chartWidgetCollection;e.visible().unsubscribe(this._setActiveState),void 0!==n&&(n.favoritesChanged().unsubscribe(this,this._handleFavoriteIndicatorsChange),a.activeChartWidget.unsubscribe(this._handleChangeActiveWidget)),this._promise=null},t.prototype.render=function(){var e=this,t=this.state,n=t.isActive,a=t.favorites,i=t.isLoading,o=this.props,r=o.className,l=o.displayMode,c=o.id,h=this.context.chartWidgetCollection;return s.a.createElement(f.a,{id:c,onMouseEnter:this._handleMouseEnter,onClick:this._handleWrapClick},s.a.createElement(A.a,{displayMode:l,className:r,icon:se,isOpened:n,onClick:this._handleClick,text:ce.text,title:ce.hint,"data-role":"button","data-name":"open-indicators-dialog","data-tooltip-hotkey":he}),a.length>0&&s.a.createElement(k.a,{rule:"screen and (max-width: 428px)"},(function(t){return s.a.createElement(m.b,{key:h.activeChartWidget.value().id(),arrow:!0,closeOnClickOutside:!0,isDrawer:t,drawerPosition:"Bottom",title:ce.favorites,ref:e._menu,"data-name":"show-favorite-indicators"},s.a.createElement("div",{className:g()(le.dropdown,t&&le.smallWidthWrapper)},s.a.createElement(oe.a,{className:t&&le.smallWidthTitle},window.t("Favorite Indicators")),i&&s.a.createElement(ie.a,null),!i&&s.a.createElement(s.a.Fragment,null,e.state.infos.length>0?e.state.infos.map((function(n){return s.a.createElement(p.b,{className:g()(t&&le.smallWidthMenuItem),theme:t?E.a:void 0,key:"java"===n.item.type?n.item.studyId:n.item.pineId,onClick:e._handleSelectIndicator,onClickArg:n.item,label:s.a.createElement("span",{className:g()(!t&&le.label,t&&le.smallWidthLabel,"apply-overflow-tooltip")},ve(n))})})):null!==e._promise&&s.a.createElement(p.b,{isDisabled:!0,label:window.t("You have no Favorites Indicators yet")}))))})))},t.prototype._prefetchFavorites=function(){var e=this,t=this.context.chartWidgetCollection;if(null===this._promise&&window.is_authenticated){var n=t.activeChartWidget.value().model();if(null!==n){var a=n.model().studyMetaInfoRepository()
;this.setState({isLoading:!0});var i=this._promise=$(this.state.favorites,a).then((function(t){if(i===e._promise){t=Object(o.f)([],t).sort((function(e,t){return ve(e).localeCompare(ve(t))})),e.setState({infos:t,isLoading:!1},(function(){e._menu.current&&e._menu.current.update()}))}}))}}},t.prototype._prefetchIndicators=function(){return Object(o.b)(this,void 0,void 0,(function(){var e,t,n,a,i,r,s,l;return Object(o.d)(this,(function(o){return e=this.context.chartWidgetCollection,Boolean(this._initIndicatorsPromises)||(t=Object(re.d)(e),n=Object(q.requestUserScripts)(),a=Object(q.requestBuiltinScripts)(),i=Object(q.requestCandlestickScripts)(),r=Object(re.a)(),s=Object(re.b)(r),l=Object(re.c)(),this._initIndicatorsPromises={javaStudiesPromise:t,userScriptsPromise:n,standardScriptsPromise:a,candlestickScriptsPromise:i,publicPineStudiesPromise:s,addonsPromise:l}),[2]}))}))},t.contextType=ue,t}(s.a.PureComponent);function ve(e){return e.info.localizedName||Object(R.t)(e.info.name,{context:"study"})}var pe=n("PT1i"),me=n("pPtI"),fe=n("4hTN");function be(e){var t;return r.createElement("div",{className:b(fe.value,(t={},t[fe.selected]=e.isSelected,t))},e.value,e.metric)}var ge=n("9dlw"),we=n("ML8+"),Ce=n("cSDC"),ye=n("CX26"),Se=function(e){function t(t){var n=e.call(this,t)||this;return n._timeMenu=null,n._setMenuRef=function(e){n._timeMenu=e},n._handleChangeInput=function(e){var t=e.currentTarget.value;/^[0-9]*$/.test(t)&&n.setState({inputValue:t})},n._handleSelectTime=function(e){n.setState({selectedTime:e}),n._closeMenu()},n._handleClickAdd=function(){var e=n.state,t=e.inputValue,a=e.selectedTime;n.props.onAdd(t,a)},n._toggleMenu=function(){n.state.isOpenedMenu?n._closeMenu():n._openMenu()},n._closeMenu=function(){n.props.onCloseMenu(),n.setState({isOpenedMenu:!1})},n._openMenu=function(){n.props.onOpenMenu(),n.setState({isOpenedMenu:!0})},n._getMenuPosition=function(){var e=Object(G.ensureNotNull)(n._timeMenu).getBoundingClientRect();return{overrideWidth:e.width,x:e.left,y:e.bottom+1}},n.state={inputValue:"1",isOpenedMenu:!1,selectedTime:Ce.a[0].name},n}return Object(o.c)(t,e),t.prototype.render=function(){var e,t=this,n=this.state,a=n.inputValue,i=n.isOpenedMenu,o=n.menuWidth,s=n.selectedTime;return r.createElement("div",{className:b(ye.form,(e={},e[ye.interacting]=i,e))},r.createElement("input",{className:ye.input,maxLength:6,onChange:this._handleChangeInput,value:a}),r.createElement("div",{className:ye.menu,onClick:this._toggleMenu,ref:this._setMenuRef},Ce.a.find((function(e){return e.name===s})).label,r.createElement(we.a,{dropped:i})),r.createElement("div",{className:ye.add,onClick:this._handleClickAdd},Object(R.t)("Add")),r.createElement(ge.a,{doNotCloseOn:this,isOpened:i,minWidth:o,onClose:this._closeMenu,position:this._getMenuPosition},Ce.a.map((function(e){return r.createElement(p.b,{dontClosePopup:!0,key:e.name,label:e.label,onClick:t._handleSelectTime,onClickArg:e.name})}))))},t}(r.PureComponent),_e=(n("EsMY"),n("i/MG")),ke=n("8d0Q"),Oe=n("uPhS");function Ee(e){
var t,n,a,i,l=e.interval,c=e.hint,h=e.isActive,u=e.isDisabled,v=e.isFavorite,m=e.isSignaling,f=e.onClick,b=e.onClickRemove,w=e.onClickFavorite,y=e.isSmallTablet,S=Object(C.a)(e),_=Object(ke.b)(),k=_[0],O=_[1],M=s.a.useCallback((function(){return b(l)}),[b,l]),x=s.a.useCallback((function(){return w(l)}),[w,l]),j=Object(r.useRef)(null);return Object(r.useEffect)((function(){var e;m&&y&&(null===(e=j.current)||void 0===e||e.scrollIntoView())}),[m,y]),s.a.createElement("div",Object(o.a)({},O,{ref:j}),s.a.createElement(p.b,Object(o.a)({},S,{className:g()(y&&Oe.smallWidthMenuItem),theme:y?E.a:void 0,isActive:h,isDisabled:u,isHovered:m,onClick:f,onClickArg:l,toolbox:(t=e.isRemovable,n=e.isFavoritingAllowed,a=s.a.createElement(_e.a,{key:"remove",isActive:h,hidden:!Modernizr.touch&&!k,onClick:M}),i=s.a.createElement(d.a,{key:"favorite",isActive:h,isFilled:v,onClick:x}),[t&&a,!u&&n&&i]),showToolboxOnHover:!v,label:c})))}var Me,xe=n("LxhU"),je=((Me={})[xe.ResolutionKind.Ticks]=window.t("Ticks",{context:"interval_group_name"}),Me[xe.ResolutionKind.Seconds]=window.t("Seconds",{context:"interval_group_name"}),Me[xe.ResolutionKind.Minutes]=window.t("Minutes",{context:"interval_group_name"}),Me[xe.SpecialResolutionKind.Hours]=window.t("Hours",{context:"interval_group_name"}),Me[xe.ResolutionKind.Days]=window.t("Days",{context:"interval_group_name"}),Me[xe.ResolutionKind.Weeks]=window.t("Weeks",{context:"interval_group_name"}),Me[xe.ResolutionKind.Months]=window.t("Months",{context:"interval_group_name"}),Me[xe.ResolutionKind.Range]=window.t("Ranges",{context:"interval_group_name"}),Me[xe.ResolutionKind.Invalid]="",Me);function Te(e,t){return void 0===t&&(t=!1),{id:e,name:je[e],items:[],mayOmitSeparator:t}}var Ie=n("cwLw"),Ne=n("aIyQ"),Re=n.n(Ne),Ae=n("X0gx"),Le=n("tWVy"),We=n("aVq2"),Fe={openDialog:Object(R.t)("Open Interval Dialog"),timeInterval:Object(R.t)("Time Interval")},ze=Object(Q.b)({keys:[","],text:Object(R.t)("Number or {0}")}),He=Object(M.b)(),De=new Re.a,Pe=s.a.lazy((function(){return Object(o.b)(void 0,void 0,void 0,(function(){var e;return Object(o.d)(this,(function(t){switch(t.label){case 0:return e={},[4,Promise.all([n.e(1),n.e(3),n.e(5),n.e(9),n.e(17),n.e(19),n.e(33),n.e(36),n.e(62),n.e(103),n.e(423),n.e(8),n.e(18),n.e(34),n.e("custom-intervals-add-dialog")]).then(n.bind(null,"w9vS"))];case 1:return[2,(e.default=t.sent().ToolWidgetIntervalsAddDialog,e)]}}))}))})),Ue=function(e){function t(t,n){var a=e.call(this,t,n)||this;a._menu=s.a.createRef(),a._renderChildren=function(e,t){return Object(o.f)(Object(o.f)([],a._createMenuItems(e,t)),a._createIntervalForm(t))},a._handleChangeInterval=function(e){var t=a.state,n=t.activeInterval,i=t.lastNotQuicked,o=a._getQuicks();a.setState({activeInterval:Object(me.normalizeIntervalString)(e),lastNotQuicked:void 0===n||o.includes(n)?i:n})},a._handleCloseMenu=function(){a.setState({isOpenedFormMenu:!1})},a._handleOpenMenu=function(){a.setState({isOpenedFormMenu:!0})},a._bindedForceUpdate=function(){a.forceUpdate()},a._handleSelectInterval=function(e){
void 0!==e&&e!==pe.linking.interval.value()&&(Object(me.setLastUsedResolution)(e),pe.linking.interval.setValue(e)),e&&Object(L.trackEvent)("GUI","Time Interval",e)},a._handleClickFavorite=function(e){e=Object(G.ensureDefined)(e),a._isIntervalFavorite(e)?a._handleRemoveFavorite(e):a._handleAddFavorite(e)},a._handleAddFavorite=function(e){var t=a.state.favorites;a.context.favoriteIntervalsService.set(Object(o.f)(Object(o.f)([],t),[e]))},a._handleRemoveFavorite=function(e){var t=a.state.favorites;a.context.favoriteIntervalsService.set(t.filter((function(t){return t!==e})))},a._handleAddInterval=function(e,t){var n=a.context.intervalService.add(e,t);n&&a.setState({lastAddedInterval:n})},a._handleRemoveInterval=function(e){var t=a.context.intervalService;e&&(t.remove(e),a._handleRemoveFavorite(e))},a._getHandleSectionStateChange=function(e){return function(t){var n,i=a.state.menuViewState;a.context.intervalsMenuViewStateService.set(Object(o.a)(Object(o.a)({},i),((n={})[e]=!t,n)))}},a._handleOpenAddIntervalDialog=function(){a.setState({isAddIntervalDialogOpened:!0})},a._handleCloseAddIntervalDialog=function(){a.setState({isAddIntervalDialogOpened:!1})},a._handleGlobalClose=function(){var e=a.props.isFake,t=a.state.isAddIntervalDialogOpened;e||t||De.fire()},Object(M.c)(n,{chartApiInstance:l.any.isRequired,favoriteIntervalsService:l.any.isRequired,intervalService:l.any.isRequired,intervalsMenuViewStateService:l.any.isRequired});var r=n.chartApiInstance,c=n.favoriteIntervalsService,h=n.intervalService,u=n.intervalsMenuViewStateService;a._customIntervals=i.enabled("custom_resolutions");var d=pe.linking.interval.value(),v=d&&Object(me.normalizeIntervalString)(d),p=c.get(),m=h.getCustomIntervals(),f=u.get();return a._defaultsIntervals=r.defaultResolutions().map(me.normalizeIntervalString),a.state={isOpenedFormMenu:!1,activeInterval:v,favorites:p,customs:m,menuViewState:f,isAddIntervalDialogOpened:!1},a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this.context,t=e.favoriteIntervalsService,n=e.intervalService,a=e.intervalsMenuViewStateService;t.getOnChange().subscribe(this,this._handleChangeFavorites),a.getOnChange().subscribe(this,this._handleChangeMenuViewState),n.getOnChange().subscribe(this,this._handleChangeCustoms),pe.linking.interval.subscribe(this._handleChangeInterval),pe.linking.intraday.subscribe(this._bindedForceUpdate),pe.linking.seconds.subscribe(this._bindedForceUpdate),pe.linking.ticks.subscribe(this._bindedForceUpdate),pe.linking.supportedResolutions.subscribe(this._bindedForceUpdate),Le.a.subscribe(this,this._handleGlobalClose)},t.prototype.componentWillUnmount=function(){var e=this.context,t=e.favoriteIntervalsService,n=e.intervalService,a=e.intervalsMenuViewStateService;t.getOnChange().unsubscribe(this,this._handleChangeFavorites),a.getOnChange().unsubscribe(this,this._handleChangeMenuViewState),n.getOnChange().unsubscribe(this,this._handleChangeCustoms),pe.linking.interval.unsubscribe(this._handleChangeInterval),pe.linking.intraday.unsubscribe(this._bindedForceUpdate),
pe.linking.seconds.unsubscribe(this._bindedForceUpdate),pe.linking.ticks.unsubscribe(this._bindedForceUpdate),pe.linking.supportedResolutions.unsubscribe(this._bindedForceUpdate),Le.a.unsubscribe(this,this._handleGlobalClose)},t.prototype.componentDidUpdate=function(e,t){var n=this;this.state.lastAddedInterval&&setTimeout((function(){return n.setState({lastAddedInterval:void 0})}),400)},t.prototype.render=function(){var e=this,t=this.props,n=t.isShownQuicks,a=t.id,i=this.state,r=i.activeInterval,l=i.customs,c=i.lastNotQuicked,h=i.isAddIntervalDialogOpened,u=this._defaultsIntervals,d=this._getQuicks(),v=Object(me.sortResolutions)(Object(o.f)([],d));void 0!==r&&v.includes(r)?void 0!==c&&v.push(c):void 0!==r&&v.push(r);var p=(!(!n||0===d.length)||void 0)&&v.length>1,g={},w=Object(me.mergeResolutions)(u,l);(void 0!==r?w.concat(r):w).filter(me.isAvailable).forEach((function(e){return g[e]=!0}));var C=void 0!==r?Object(me.getTranslatedResolutionModel)(r):null;return s.a.createElement(f.a,{id:a},p&&v.map((function(t,n){var a,i=Object(me.getTranslatedResolutionModel)(t);return s.a.createElement(S,{key:n,className:b(We.button,(a={},a[We.first]=0===n,a[We.last]=n===v.length-1,a)),text:s.a.createElement(be,{value:i.mayOmitMultiplier?void 0:i.multiplier,metric:i.shortKind}),hint:i.hint,isActive:r===t,isDisabled:!g[t]&&t!==c,onClick:e._handleSelectInterval,onClickArg:t,"data-value":t})})),s.a.createElement(k.a,{rule:O.a.TabletSmall},(function(t){return s.a.createElement(s.a.Fragment,null,s.a.createElement(Ae.a.Provider,{value:De},s.a.createElement(m.b,{arrow:Boolean(p),closeOnClickOutside:!0,content:p||null===C?void 0:s.a.createElement(f.a,{className:We.menuContent},s.a.createElement(be,{value:C.mayOmitMultiplier?void 0:C.multiplier,metric:C.shortKind})),title:p||null===C?Fe.timeInterval:C.hint,hotKey:p?ze:void 0,className:We.menu,ref:e._menu,isDrawer:t},s.a.createElement("div",{className:We.dropdown},e._renderChildren(w,t)))),t&&h&&s.a.createElement(s.a.Suspense,{fallback:null},s.a.createElement(Pe,{onAdd:e._handleAddInterval,onClose:e._handleCloseAddIntervalDialog,onUnmount:e._handleCloseAddIntervalDialog})))})))},t.prototype._createMenuItems=function(e,t){var n,a,i,o,r,s,l,c,h,u=this,d=(a=e,i=Te(xe.ResolutionKind.Ticks),o=Te(xe.ResolutionKind.Seconds),r=Te(xe.ResolutionKind.Minutes),s=Te(xe.SpecialResolutionKind.Hours),l=Te(xe.ResolutionKind.Days),c=Te(xe.ResolutionKind.Range),a.forEach((function(e){var t=xe.Interval.parse(e);t.isMinuteHours()?s.items.push(e):t.isMinutes()?Object(xe.isHour)(Number(t.multiplier()))?s.items.push(e):r.items.push(e):t.isSeconds()?o.items.push(e):t.isDWM()?l.items.push(e):t.isRange()?c.items.push(e):t.isTicks()&&i.items.push(e)})),[i,o,r,s,l,c].filter((function(e){return 0!==e.items.length}))).map((function(e,n,a){return u._renderResolutionsGroup(e,1===a.length,t)})),v=(n=[]).concat.apply(n,d);return h=!1,v.filter((function(e,t,n){var a=!0;return e.type===_.a&&(0!==t&&t!==n.length-1||(a=!1),h&&(a=!1)),h=e.type===_.a,a}))},t.prototype._createIntervalForm=function(e){if(this._customIntervals){
var t=e?s.a.createElement("div",{key:"add-dialog",className:We.addCustomInterval,onClick:this._handleOpenAddIntervalDialog},Object(R.t)("Add custom interval")+"…"):s.a.createElement(Se,{key:"add-form",onAdd:this._handleAddInterval,onCloseMenu:this._handleCloseMenu,onOpenMenu:this._handleOpenMenu});return[s.a.createElement(_.a,{key:"custom-interval-separator"}),t]}return[]},t.prototype._renderResolutionsGroup=function(e,t,n){var a=this;void 0===t&&(t=!1);var i=[],o=e.items.map((function(e){return a._renderPopupMenuItem(e,n)}));if(t)i.push.apply(i,o);else if(n){var r=s.a.createElement("div",{key:e.id},s.a.createElement("div",{className:We.smallTabletSectionTitle},e.name),o);i.push(r)}else{var l=this.context.intervalsMenuViewStateService,c=this.state.menuViewState;if(!l.isAllowed(e.id))return[];r=s.a.createElement(Ie.a,{key:e.id,className:We.section,summary:e.name,open:!c[e.id],onStateChange:this._getHandleSectionStateChange(e.id)},o);i.push(r)}return(!e.mayOmitSeparator||e.items.length>1)&&(i.unshift(s.a.createElement(_.a,{key:"begin-"+e.name})),i.push(s.a.createElement(_.a,{key:"end-"+e.name}))),i},t.prototype._handleChangeFavorites=function(e){this.setState({lastNotQuicked:void 0,favorites:e})},t.prototype._handleChangeCustoms=function(e){this.setState({customs:e})},t.prototype._handleChangeMenuViewState=function(e){var t=this;this.setState({menuViewState:e},(function(){t._menu.current&&t._menu.current.update()}))},t.prototype._renderPopupMenuItem=function(e,t){var n=this.props.isFavoritingAllowed,a=this.state,i=a.activeInterval,o=a.lastAddedInterval,r=e===i,l=Object(me.isAvailable)(e),c=this._isIntervalFavorite(e),h=this._isIntervalDefault(e),u=Object(me.getTranslatedResolutionModel)(e);return s.a.createElement(Ee,{key:e,isSmallTablet:t,interval:e,hint:u.hint,isSignaling:o===e,isFavoritingAllowed:n,isDisabled:!l,isFavorite:c,isRemovable:!h,isActive:r,onClick:this._handleSelectInterval,onClickRemove:this._handleRemoveInterval,onClickFavorite:this._handleClickFavorite,"data-value":e})},t.prototype._isIntervalDefault=function(e){return this._defaultsIntervals.includes(e)},t.prototype._isIntervalFavorite=function(e){return this.state.favorites.includes(e)},t.prototype._getQuicks=function(e){return this.props.isShownQuicks&&"small"!==this.props.displayMode?void 0===e?this.state.favorites:e:[]},t.contextType=He,t}(s.a.PureComponent),Be=n("sbT4"),Ve=n("lAXe"),Ke={hint:window.t("Open chart in popup")},Ge=Object(M.b)(),Qe=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._handleClick=function(){var e=a.context,t=e.chartWidgetCollection,n=e.windowMessageService,i=e.isFundamental,o=t.activeChartWidget.value();o.withModel(null,(function(){n.post(parent,"openChartInPopup",{symbol:o.model().mainSeries().actualSymbol(),interval:o.model().mainSeries().interval(),fundamental:i})}))},Object(M.c)(n,{isFundamental:l.any,chartWidgetCollection:l.any.isRequired,windowMessageService:l.any.isRequired}),a}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props.className;return r.createElement(P.a,{
className:b(e,Be.button),icon:Ve,onClick:this._handleClick,title:Ke.hint})},t.contextType=Ge,t}(r.PureComponent),Xe=n("uafl"),qe={hint:window.t("Chart Properties")},Je=Object(M.b)(),Ye=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._handleClick=function(){var e=a.context.chartWidgetCollection.activeChartWidget.value();Object(L.trackEvent)("GUI","Chart Header Toolbar","chart properties"),e.showGeneralChartProperties()},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired}),a}return Object(o.c)(t,e),t.prototype.render=function(){return r.createElement(P.a,Object(o.a)({},this.props,{icon:Xe,title:qe.hint,onClick:this._handleClick}))},t.contextType=Je,t}(r.PureComponent),Ze=n("lxNp"),$e=n("ndm/"),et=n("Q2dY"),tt=Object(M.b)(),nt=function(e){function t(t,n){var a=e.call(this,t,n)||this;a._syncState=function(e){a.setState(e)},a._onChangeHasChanges=function(e){a.state.wasChanges!==e&&a.setState({wasChanges:e})},a._onChangeAutoSaveEnabled=function(e){a.setState({isAutoSaveEnabled:e})},a._onChangeSharingEnabled=function(e){a.setState({isSharingEnabled:e})},a._onChangeTitle=function(e){a.setState({title:e})},a._onChangeId=function(e){a.setState({id:e})},a._onChartAboutToBeSaved=function(){a.setState({isProcessing:!0})},a._onChartSaved=function(){a.setState({isProcessing:!1})},a._handleAutoSaveEnabled=function(e){Object(L.trackEvent)("Autosave",e?"On":"Off"),a.context.saveChartService.setAutoSaveEnabled(e)},a._handleSharingEnabled=function(e){var t=e?"on":"off";Object(L.trackEvent)("GUI","Turn sharing chart "+t),Object(G.ensureDefined)(a.context.sharingChartService).setSharingEnabled(e)},a._handleClickSave=function(){a.context.saveChartService.saveChartOrShowTitleDialog(),a._trackEvent("Save click")},a._handleClickSaveFromMenu=function(){a.context.saveChartService.saveChartOrShowTitleDialog(),a._trackEvent("Save From Menu")},a._handleClickClone=function(){a.context.saveChartService.cloneChart()},a._handleClickSaveAs=function(){a.context.saveChartService.saveChartAs(),a._trackEvent("Make a copy")},a._handleClickNew=function(){Object($e.a)(),a._trackEvent("New chart layout")},a._handleClickLoad=function(){a.context.loadChartService.showLoadDialog(),a._trackEvent("Load chart layout")},a._handleHotkey=function(){a.context.loadChartService.showLoadDialog()},a._handleClickRename=function(){a.context.saveChartService.renameChart(),a._trackEvent("Rename")},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired,chartChangesWatcher:l.any.isRequired,saveChartService:l.any.isRequired,sharingChartService:l.any.isRequired,loadChartService:l.any.isRequired});var i=n.chartWidgetCollection,o=n.chartChangesWatcher,r=n.saveChartService,s=n.sharingChartService;return a.state={isAuthenticated:window.is_authenticated,isProcessing:!1,id:i.metaInfo.id.value(),title:i.metaInfo.name.value(),wasChanges:o.hasChanges(),isAutoSaveEnabled:r.autoSaveEnabled().value(),isSharingEnabled:!!s&&s.sharingEnabled().value(),iconHovered:!1},a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){
var e=this.props,t=e.chartSaver,n=e.isFake,a=e.stateSyncEmitter,i=this.context,o=i.chartWidgetCollection,r=i.chartChangesWatcher,s=i.saveChartService,l=i.sharingChartService;n?a.on("change",this._syncState):(r.getOnChange().subscribe(this,this._onChangeHasChanges),s.autoSaveEnabled().subscribe(this._onChangeAutoSaveEnabled),Object(G.ensureDefined)(l).sharingEnabled().subscribe(this._onChangeSharingEnabled),o.metaInfo.name.subscribe(this._onChangeTitle),o.metaInfo.id.subscribe(this._onChangeId),this._hotkeys=Object(Ze.createGroup)({desc:"Save/Load"}),this._hotkeys.add({desc:window.t("Load Chart Layout"),handler:this._handleHotkey,hotkey:190}),t.chartSaved().subscribe(this,this._onChartSaved),t.chartAboutToBeSaved().subscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.subscribe(this,this._onLoginStateChange))},t.prototype.componentDidUpdate=function(e,t){this.props.isFake||t!==this.state&&this.props.stateSyncEmitter.emit("change",this.state)},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.chartSaver,n=e.isFake,a=e.stateSyncEmitter,i=this.context,o=i.chartWidgetCollection,r=i.chartChangesWatcher,s=i.saveChartService,l=i.sharingChartService;n?a.off("change",this._syncState):(r.getOnChange().unsubscribe(this,this._onChangeHasChanges),s.autoSaveEnabled().unsubscribe(this._onChangeAutoSaveEnabled),Object(G.ensureDefined)(l).sharingEnabled().unsubscribe(this._onChangeSharingEnabled),o.metaInfo.name.unsubscribe(this._onChangeTitle),o.metaInfo.id.unsubscribe(this._onChangeId),Object(G.ensureDefined)(this._hotkeys).destroy(),t.chartSaved().unsubscribe(this,this._onChartSaved),t.chartAboutToBeSaved().unsubscribe(this,this._onChartAboutToBeSaved),window.loginStateChange.unsubscribe(this,this._onLoginStateChange))},t.prototype.render=function(){var e=this.props,t=e.isReadOnly,n=e.displayMode,a=e.id,i=e.isFake,s=this.state,l=s.isProcessing,c=s.isAuthenticated,h=s.title,u=s.id,d=s.wasChanges,v=s.isAutoSaveEnabled,p=s.isSharingEnabled,m={displayMode:n,isReadOnly:t,isAuthenticated:c,isProcessing:l,wasChanges:d,title:h,id:a,chartId:null!==u?u:void 0,onCloneChart:this._handleClickClone,onSaveChart:this._handleClickSave,onSaveChartFromMenu:this._handleClickSaveFromMenu,onRenameChart:this._handleClickRename,onSaveAsChart:this._handleClickSaveAs,onLoadChart:this._handleClickLoad};return m.onNewChart=this._handleClickNew,m.onAutoSaveChanged=this._handleAutoSaveEnabled,m.onSharingChanged=this._handleSharingEnabled,m.isAutoSaveEnabled=v,m.isSharingEnabled=p,m.autoSaveId=i?void 0:"chart-auto-save",r.createElement(k.a,{rule:O.a.TabletSmall},(function(e){return r.createElement(et.a,Object(o.a)({},m,{isTabletSmall:e}))}))},t.prototype._onLoginStateChange=function(){this.setState({isAuthenticated:window.is_authenticated})},t.prototype._trackEvent=function(e){Object(L.trackEvent)("GUI","Manage chart layout",e)},t.contextType=tt,t}(r.PureComponent),at=n("U8H2"),it=n("koZ+"),ot=Object(at.a)((function(e){return r.createElement(w.b,{id:e.id,className:e.className,isDisabled:e.isProcessing,onClick:e.onClick,
title:e.tooltip,"data-tooltip-hotkey":e.hotkey,icon:it})})),rt=n("pZll"),st=n("h24c"),lt=n("X7WP"),ct=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._actions=null,t._input=null,t._promise=null,t._preventDefault=function(e){e.preventDefault()},t._trackSymbolSearchOpenEvent=function(){Object(L.trackEvent)("GUI","SS","main search")},t}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this,t=Object(G.ensureNotNull)(this._input),n=this._promise=Object(rt.symbolSearchUIService)().bindToInput(t,{spreadActions:this._actions||void 0,syncWithChartWidget:!0,syncOnBlur:!0,onPopupOpen:this._trackSymbolSearchOpenEvent}).then((function(){n===e._promise&&null!==e._actions&&Array.from(e._actions.querySelectorAll("button")).forEach((function(e){return e.tabIndex=-1}))}))},t.prototype.componentWillUnmount=function(){this._promise=null},t.prototype.render=function(){var e,t=this,n=this.props,a=n.isActionsVisible,i=n.isExpanded,o=n.onFocus,r=n.onBlur,l=n.id,c=n.className;return s.a.createElement("div",{id:l,className:b(lt.wrap,c)},s.a.createElement("div",{className:b(lt.inner,(e={},e[lt.isExpanded]=i,e))},s.a.createElement("input",{className:lt.input,maxLength:1e3,onBlur:r,onFocus:o,ref:function(e){return t._input=e},type:"text",tabIndex:-1}),Object(st.canShowSpreadActions)()&&a&&s.a.createElement("div",{className:lt.actions,onMouseDown:this._preventDefault,ref:function(e){return t._actions=e}})))},t}(s.a.PureComponent),ht=n("9NBK"),ut=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleClick=function(e){e.stopPropagation();var n=t.props;(0,n.onApply)(n.item)},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.item;return r.createElement("div",{className:b(t,ht.item,"apply-common-tooltip"),onClick:this._handleClick,title:n.name},r.createElement("div",{className:ht.round},n.name.length>0?n.name[0].toUpperCase():" "))},t}(r.PureComponent),dt=n("nPPD");n("3ClC");var vt=n("s0T6");function pt(e){return r.createElement("div",{className:b(vt.description,e.className)},e.children)}var mt=n("fESK"),ft=Object(dt.a)(p.a,{labelRow:mt.labelRow,toolbox:mt.toolbox,item:mt.titleItem}),bt=Object(dt.a)(p.a,{labelRow:mt.labelRow,toolbox:mt.toolbox,item:mt.titleItemTabletSmall}),gt=Object(dt.a)(p.a,{item:mt.item}),wt=Object(dt.a)(p.a,{item:mt.itemTabletSmall});function Ct(e){var t,n,a=e.item,i=e.onApply,l=e.onRemove,c=e.onFavor,h=e.favorite,u=e.isFavoritingAllowed,v=e.isTabletSmall,m=Object(ke.b)(),f=m[0],b=m[1],w=a.meta_info,C=w?(t=w.indicators,n=new Map,t.forEach((function(e){var t=n.get(e.id)||[e.description,0],a=t[0],i=t[1];n.set(e.id,[a,i+1])})),Array.from(n.values()).map((function(e){var t=e[0],n=e[1];return t+(n>1?" x "+n:"")})).join(", ")):void 0,y=v?bt:ft,S=v?wt:gt,_=Object(r.useCallback)((function(){return i(a)}),[i,a]),k=Object(r.useCallback)((function(){return l(a)}),[l,a]),O=Object(r.useCallback)((function(){c&&c(a)}),[c,a]);return s.a.createElement("div",Object(o.a)({},b,{className:mt.wrap,"data-name":a.name,
"data-id":a.id,"data-is-default":Boolean(a.is_default)}),s.a.createElement(p.b,{theme:y,label:a.name,labelRowClassName:g()(v&&mt.itemLabelTabletSmall),isHovered:f,showToolboxOnHover:!h&&!f,onClick:_,toolbox:s.a.createElement(s.a.Fragment,null,!a.is_default&&s.a.createElement(_e.a,{key:"remove",hidden:!Modernizr.touch&&!f,onClick:k}),Boolean(c)&&u&&s.a.createElement(d.a,{key:"favorite",isFilled:Boolean(h),onClick:O}))}),C&&s.a.createElement(p.b,{theme:S,label:s.a.createElement(pt,{className:g()(mt.description,v&&mt.descriptionTabletSmall)},C),onClick:_,isHovered:f}))}var yt=n("2uTr"),St=n("jKyl"),_t=n("23di"),kt=Object(dt.a)(p.a,_t),Ot={text:Object(yt.appendEllipsis)(window.t("Save Indicator template"))};function Et(e){var t=e.onClick,n=e.isTabletSmall;return s.a.createElement(p.b,{theme:kt,className:_t.wrap,label:s.a.createElement("div",{className:_t.titleWrap},s.a.createElement("div",{className:g()(_t.title,n&&_t.titleTabletSmall)},s.a.createElement(v.a,{className:_t.icon,icon:St}),s.a.createElement("div",{className:_t.text},Ot.text))),onClick:t})}var Mt=n("gla1"),xt=n("PN6A"),jt=s.a.createContext(null),Tt=n("Sl3V");function It(e){var t=e.templates,n=e.favorites,a=e.onTemplateSave,i=e.onTemplateRemove,o=e.onTemplateSelect,l=e.onTemplateFavorite,c=e.isTabletSmall,h=e.isLoading,u=Object(r.useMemo)((function(){return t.filter((function(e){return e.is_default}))}),[t]),d=Object(r.useMemo)((function(){return t.filter((function(e){return!e.is_default}))}),[t]),v=Object(r.useMemo)((function(){return new Set(n.map((function(e){return e.name})))}),[n]),p=Object(r.useContext)(jt),m=Object(r.useContext)(xt.a),f=Object(Mt.a)();Object(r.useEffect)((function(){if(null!==p){var e={};return p.getOnChange().subscribe(e,(function(){f(),m&&m.update()})),function(){return p.getOnChange().unsubscribeAll(e)}}return function(){}}),[]);var b=function(e){return s.a.createElement(Ct,{key:e.name,item:e,isFavoritingAllowed:Boolean(l),favorite:v.has(e.name),onApply:o,onFavor:l,onRemove:i,isTabletSmall:c})};return s.a.createElement("div",{className:g()(Tt.menu,c&&Tt.menuSmallTablet)},s.a.createElement(Et,{onClick:a,isTabletSmall:c}),h&&s.a.createElement(s.a.Fragment,null,s.a.createElement(_.a,null),s.a.createElement(ie.a,null)),!h&&(c?s.a.createElement(Nt,{defaults:u,customs:d,render:b}):s.a.createElement(Rt,{defaults:u,customs:d,render:b,state:p})))}function Nt(e){var t=e.defaults,n=e.customs,a=e.render;return s.a.createElement(s.a.Fragment,null,n.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(_.a,null),s.a.createElement(oe.a,{className:Tt.menuItemHeaderTabletSmall},Object(R.t)("My templates")),n.map(a)),t.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(_.a,null),s.a.createElement(oe.a,{className:Tt.menuItemHeaderTabletSmall},Object(R.t)("Default templates")),t.map(a)))}function Rt(e){var t=e.defaults,n=e.customs,a=e.render,i=e.state;return s.a.createElement(s.a.Fragment,null,n.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(_.a,null),s.a.createElement(oe.a,{className:Tt.menuItemHeader
},Object(R.t)("My templates")),n.map(a)),n.length>0&&t.length>0&&i&&s.a.createElement(s.a.Fragment,null,s.a.createElement(_.a,null),s.a.createElement(Ie.a,{summary:Object(R.t)("Default templates"),open:!i.get().defaultsCollapsed,onStateChange:function(e){return i.set({defaultsCollapsed:!e})}},t.map(a))),0===n.length&&t.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement(_.a,null),s.a.createElement(oe.a,{className:Tt.menuItemHeader},Object(R.t)("Default templates")),t.map(a)))}var At=n("hY0g"),Lt=n.n(At),Wt=function(){function e(e,t){var n,a,o=this;this._isFavoriteEnabled=i.enabled("items_favoriting"),this.handleFavorTemplate=function(e){if(o._isFavoriteEnabled){var t=e.name;o._isTemplateFavorite(t)?o._removeFavoriteTemplate(t):o._addFavoriteTemplate(t)}},this.handleDropdownOpen=function(){o._setState({isLoading:!0}),o._studyTemplates.invalidate(),o._studyTemplates.refreshStudyTemplateList((function(){return o._setState({isLoading:!1})}))},this.handleApplyTemplate=function(e){o._studyTemplates.applyTemplate(e.name)},this.handleRemoveTemplate=function(e){o._studyTemplates.deleteStudyTemplate(e.name)},this.handleSaveTemplate=function(){o._studyTemplates.showSaveAsDialog()},this._studyTemplates=e,this._favoriteStudyTemplatesService=t;var r=(null===(n=this._favoriteStudyTemplatesService)||void 0===n?void 0:n.get())||[],s=this._studyTemplates.list();this._state=new Lt.a({isLoading:!1,studyTemplatesList:s,favorites:r}),this._studyTemplates.getOnChange().subscribe(this,this._handleTemplatesChange),this._studyTemplates.refreshStudyTemplateList(),this._isFavoriteEnabled&&(null===(a=this._favoriteStudyTemplatesService)||void 0===a||a.getOnChange().subscribe(this,this._handleFavoritesChange))}return e.prototype.destroy=function(){var e;this._studyTemplates.getOnChange().unsubscribe(this,this._handleTemplatesChange),this._isFavoriteEnabled&&(null===(e=this._favoriteStudyTemplatesService)||void 0===e||e.getOnChange().unsubscribe(this,this._handleFavoritesChange))},e.prototype.state=function(){return this._state.readonly()},e.prototype._setState=function(e){this._state.setValue(Object(o.a)(Object(o.a)({},this._state.value()),e))},e.prototype._handleTemplatesChange=function(){this._setState({studyTemplatesList:this._studyTemplates.list()})},e.prototype._handleFavoritesChange=function(e){this._isFavoriteEnabled&&this._setState({favorites:e})},e.prototype._removeFavoriteTemplate=function(e){var t,n=this._state.value().favorites;null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set(n.filter((function(t){return t!==e})))},e.prototype._addFavoriteTemplate=function(e){var t,n=this._state.value().favorites;null===(t=this._favoriteStudyTemplatesService)||void 0===t||t.set(Object(o.f)(Object(o.f)([],n),[e]))},e.prototype._isTemplateFavorite=function(e){return this._state.value().favorites.includes(e)},e}(),Ft=n("zgWb"),zt=n("yGrx"),Ht={title:Object(R.t)("Templates"),tooltip:Object(R.t)("Indicator Templates")},Dt=Object(M.b)(),Pt=function(e){function t(t,n){var a=e.call(this,t,n)||this;a._updateState=function(e){
a.setState(Object(o.a)(Object(o.a)({},e),{isActive:a.state.isActive}))},a._handleApplyTemplate=function(e){a._handleClose(),a._model.handleApplyTemplate(e)},a._handleRemoveTemplate=function(e){a._handleClose(),a._model.handleRemoveTemplate(e)},a._handleClose=function(){a._handleToggleDropdown(!1)},a._handleToggleDropdown=function(e){var t=a.state.isActive,n="boolean"==typeof e?e:!t;a.setState({isActive:n})},Object(M.c)(n,{favoriteStudyTemplatesService:l.any,studyTemplates:l.any.isRequired,templatesMenuViewStateService:l.any});var i=n.favoriteStudyTemplatesService,r=n.studyTemplates;return a._model=new Wt(r,i),a.state=Object(o.a)(Object(o.a)({},a._model.state().value()),{isActive:!1}),a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this._model.state().subscribe(this._updateState)},t.prototype.componentWillUnmount=function(){this._model.state().unsubscribe(this._updateState),this._model.destroy()},t.prototype.render=function(){var e=this.state,t=e.studyTemplatesList,n=e.favorites,a=this.props,i=a.isShownQuicks,o=a.className,r=a.displayMode,l=a.id;return s.a.createElement(jt.Provider,{value:this.context.templatesMenuViewStateService||null},s.a.createElement(Ut,{id:l,className:o,mode:r,templates:t,favorites:n,onMenuOpen:this._model.handleDropdownOpen,onTemplateFavorite:i?this._model.handleFavorTemplate:void 0,onTemplateSelect:this._handleApplyTemplate,onTemplateRemove:this._handleRemoveTemplate,onTemplateSave:this._model.handleSaveTemplate}))},t.contextType=Dt,t}(s.a.PureComponent);function Ut(e){var t,n=e.id,a=e.className,i=e.mode,o=e.favorites,r=e.templates,l=e.isMenuOpen,c=e.onTemplateSelect,h=e.onTemplateSave,u=e.onTemplateFavorite,d=e.onTemplateRemove,v=g()(a,zt.wrap,((t={})[zt.full]="full"===i,t[zt.medium]="medium"===i,t)),p=r.filter((function(e){return o.includes(e.name)})),b="small"!==i&&u&&p.length>0;return s.a.createElement(f.a,{id:n,className:v},s.a.createElement(k.a,{rule:O.a.TabletSmall},(function(t){return s.a.createElement(m.b,{onOpen:e.onMenuOpen,isDrawer:t,drawerPosition:"Bottom",arrow:!1,content:s.a.createElement(A.a,{className:g()(b&&zt.buttonWithFavorites),displayMode:i,isOpened:l,icon:Ft,text:Ht.title,title:Ht.tooltip,forceInteractive:!0})},s.a.createElement(It,{onTemplateSave:h,onTemplateSelect:c,onTemplateRemove:d,onTemplateFavorite:u,templates:r,favorites:p,isTabletSmall:t}))})),b&&s.a.createElement(Bt,{favorites:p,onTemplateSelect:c}))}function Bt(e){return s.a.createElement(s.a.Fragment,null,e.favorites.map((function(t,n,a){var i;return s.a.createElement(ut,{key:t.name,item:t,onApply:e.onTemplateSelect,className:g()((i={},i[zt.first]=0===n,i[zt.last]=n===a.length-1,i))})})))}n("HbRj");var Vt=n("S+Ii"),Kt=n("bQ7Y"),Gt=n("wnRL"),Qt=n("2xRE"),Xt={undoHint:window.t("Undo {0}"),redoHint:window.t("Redo {0}")},qt={undoHotKey:Object(Q.b)({keys:["Ctrl","Z"],text:"{0} + {1}"}),redoHotKey:Object(Q.b)({keys:["Ctrl","Y"],text:"{0} + {1}"})},Jt=Object(dt.b)(Kt,Vt,{buttonUndo:"button",buttonRedo:"button"}),Yt=Object(o.a)(Object(o.a)({},Kt),{button:Jt.buttonUndo
}),Zt=Object(o.a)(Object(o.a)({},Kt),{button:Jt.buttonRedo}),$t=Object(M.b)(),en=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._batched=null,a._handleClickUndo=function(){Object(L.trackEvent)("GUI","Undo"),a.context.chartWidgetCollection.undoHistory.undo()},a._handleClickRedo=function(){Object(L.trackEvent)("GUI","Redo"),a.context.chartWidgetCollection.undoHistory.redo()},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired}),a.state=a._getStateFromUndoHistory(),a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this.context.chartWidgetCollection;e.undoHistory.redoStack().onChange().subscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().subscribe(this,this._onChangeStack)},t.prototype.componentWillUnmount=function(){var e=this.context.chartWidgetCollection;e.undoHistory.redoStack().onChange().unsubscribe(this,this._onChangeStack),e.undoHistory.undoStack().onChange().unsubscribe(this,this._onChangeStack),this._batched=null},t.prototype.render=function(){var e=this.props.id,t=this.state,n=t.isEnabledRedo,a=t.isEnabledUndo,i=t.redoStack,o=t.undoStack;return r.createElement(f.a,{id:e},r.createElement(w.b,{icon:Gt,isDisabled:!a,onClick:this._handleClickUndo,title:a?Xt.undoHint.format(o):void 0,"data-tooltip-hotkey":a?qt.undoHotKey:void 0,theme:Yt}),r.createElement(w.b,{icon:Qt,isDisabled:!n,onClick:this._handleClickRedo,title:n?Xt.redoHint.format(i):void 0,"data-tooltip-hotkey":n?qt.redoHotKey:void 0,theme:Zt}))},t.prototype._onChangeStack=function(){var e=this;null===this._batched&&(this._batched=Promise.resolve().then((function(){if(null!==e._batched){e._batched=null;var t=e._getStateFromUndoHistory();e.setState(t)}})))},t.prototype._getStateFromUndoHistory=function(){var e=this.context.chartWidgetCollection,t=e.undoHistory.undoStack(),n=e.undoHistory.redoStack(),a=n.head(),i=t.head();return{isEnabledRedo:!n.isEmpty(),isEnabledUndo:!t.isEmpty(),redoStack:a?a.text():"",undoStack:i?i.text():""}},t.contextType=$t,t}(r.PureComponent),tn=n("ZVxo");function nn(e){var t=e.className,n=e.text;return s.a.createElement("div",{className:g()(tn.title,t)},n)}var an=n("VSd1");function on(e){var t=e.title,n=e.children,a=e.isSmallWidth,i=e.separator;return r.createElement("div",{className:b(an.row,a&&an.smallRow)},r.createElement("div",{className:an.rowInner},r.createElement("div",{className:b(an.rowLabel,a&&an.smallRowLabel)},t),r.createElement("div",{className:an.rowButtons},n)),i)}var rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleClick=function(){var e=t.props,n=e.layout;(0,e.onClick)(n)},t}return Object(o.c)(t,e),t.prototype.render=function(){var e=this.props,t=e.isActive,n=e.icon,a=e.isSmallWidth;return r.createElement("div",{className:b(an.layoutButtonWrap,a&&an.smallWidth)},r.createElement("div",{className:b(an.layoutButton,t&&an.isActive,a&&an.smallWidthLayoutButton),onClick:this._handleClick},r.createElement(v.a,{icon:n})))},t}(r.PureComponent),sn={s:n("jbim"),"1-2":n("z1A+"),"1-3":n("6w+I"),"1-4":n("ifT7"),"2-1":n("C9Qp"),
"2-2":n("kuuR"),"2h":n("BxJQ"),"2v":n("dwD8"),"3h":n("MrUa"),"3r":n("53FK"),"3s":n("YNF9"),"3v":n("lRBB"),4:n("wUwu"),"4h":n("jeSM"),"4s":n("LBcQ"),"4v":n("Ol5X"),"5s":n("ewWO"),6:n("DeZa"),"6c":n("l3c7"),8:n("3p5r"),"8c":n("7RQU")},ln=n("MB0Y"),cn=n("KFwr"),hn=n("SEmj"),un=n("8OHs");function dn(e){var t,n,a=e.onClick,i=e.label,o=e.hint,s=e.isChecked,l=e.isLabelCentered;return r.createElement("div",{className:b(hn.toggler,(t={},t[hn.checked]=s,t)),onClick:a},r.createElement("div",{className:b(hn.label,(n={},n[hn.centered]=l,n))},i),r.createElement(v.a,{className:"apply-common-tooltip",title:o,icon:un}))}var vn=function(e){function t(t){var n=e.call(this,t)||this;return n._onChange=function(){n.setState({isChecked:n.props.watchedValue.value()})},n._handleClick=function(){var e=n.props;(0,e.onClick)(e.watchedValue)},n.state={isChecked:n.props.watchedValue.value()},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this.props.watchedValue.subscribe(this._onChange)},t.prototype.componentWillUnmount=function(){this.props.watchedValue.unsubscribe(this._onChange)},t.prototype.render=function(){var e=this.props,t=e.label,n=e.hint,a=e.isLabelCentered,i=e.isSwitch,o=e.value,s=this.state.isChecked;return i&&o?r.createElement(ln.b,{theme:cn.a,label:t,checked:s,value:o,onChange:this._handleClick}):r.createElement(dn,{label:t,hint:n,isChecked:s,isLabelCentered:a,onClick:this._handleClick})},t}(r.PureComponent),pn=n("Ocx9"),mn={label:window.t("Drawings"),hint:window.t("New drawings are replicated to all charts in the layout and shown when the same ticker is selected")},fn=function(e){function t(t){var n=e.call(this,t)||this;return n._property=Object(ae.drawOnAllCharts)(),n._handleClick=function(){Object(pn.saveDefaultProperties)(!0),n._property.setValue(!n._property.value()),Object(pn.saveDefaultProperties)(!1)},n.state={isActive:n._property.value()},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this._property.subscribe(this,this._onChange)},t.prototype.componentWillUnmount=function(){this._property.unsubscribe(this,this._onChange)},t.prototype.render=function(){var e=this.props.isSwitch,t=this.state.isActive;return e?r.createElement(ln.b,{theme:cn.a,label:mn.label,checked:t,value:"syncDrawings",onChange:this._handleClick}):r.createElement(dn,{label:mn.label,hint:mn.hint,isLabelCentered:!0,isChecked:t,onClick:this._handleClick})},t.prototype._onChange=function(e){this.setState({isActive:e.value()})},t}(r.PureComponent),bn=n("PEkK"),gn=[{layouts:["s"],title:"1"},{layouts:["2h","2v"],title:"2"},{layouts:["3v","3h","3s","2-1","1-2","3r"],title:"3"},{layouts:["4","4h","4v","4s","1-3","2-2"],title:"4"},{layouts:["1-4","5s"],title:"5"},{layouts:["6","6c"],title:"6"},{layouts:["8","8c"],title:"8"}],wn={layoutType:window.t("Layout type"),syncGroupTitle:window.t("Sync on all charts"),syncCrosshairLabel:window.t("Crosshair"),syncCrosshairHint:window.t("Crosshair is synced across all charts of the layout"),syncIntervalLabel:window.t("Interval"),
syncIntervalHint:window.t("Interval changes on all charts of the layout simultaneously"),syncSymbolLabel:window.t("Symbol"),syncSymbolHint:window.t("Symbol changes on all charts of the layout simultaneously"),syncTrackLabel:window.t("Time"),syncTrackHint:window.t("When clicked on a single chart others get scrolled to display the same point on time axis")},Cn=function(e){function t(t){var n=e.call(this,t)||this;return n._handleSyncSymbol=function(e){var t=!e.value();n.props.chartWidgetCollection.lock.setSymbolLockWithUndo(t)},n._handleSyncInterval=function(e){var t=!e.value();n.props.chartWidgetCollection.lock.setIntervalLockWithUndo(t)},n._handleSyncCrosshair=function(e){var t=!e.value();e.setValue(t)},n._handleSyncTrack=function(e){var t=!e.value();n.props.chartWidgetCollection.lock.setTrackTimeWithUndo(t)},n._handleClickLayout=function(e){Object(Le.b)(),n.props.chartWidgetCollection.layout.value()===e?n.props.chartWidgetCollection.revertToInline():n.props.chartWidgetCollection.setChartLayoutWithUndo(e)},n._onUpdateLayout=function(e){n.setState({currentId:e||n.props.chartWidgetCollection.layout.value()})},n.state={currentId:"s"},n}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this.props.chartWidgetCollection.layout.subscribe(this._onUpdateLayout,{callWithLast:!0})},t.prototype.componentWillUnmount=function(){this.props.chartWidgetCollection.layout.unsubscribe(this._onUpdateLayout)},t.prototype.render=function(){var e=this.props.isSmallWidth;return r.createElement("div",{className:bn.dropdown},r.createElement("div",null,this._renderLayoutList(e)),r.createElement("div",null,e&&r.createElement(_.a,{size:"normal"})),r.createElement("div",null,e?r.createElement(nn,{text:wn.syncGroupTitle,className:bn.syncCharts}):r.createElement("div",{className:b(bn.title,e&&[bn.tabletTitle,bn.syncCharts])},wn.syncGroupTitle),e?this._renderSyncList():this._renderSyncTable()))},t.prototype._renderLayoutList=function(e){var t=this,n=this.state.currentId;return r.createElement("div",null,e&&r.createElement(nn,{text:wn.layoutType}),gn.map((function(a,i){return r.createElement(on,{key:a.title,isSmallWidth:e,title:a.title,separator:i!==gn.length-1&&r.createElement(_.a,null)},a.layouts.map((function(a){return r.createElement(rn,{key:a,layout:a,icon:sn[a],onClick:t._handleClickLayout,isActive:a===n,isSmallWidth:e})})))})))},t.prototype._renderSyncList=function(){return r.createElement("div",{className:bn.syncListWrapper},r.createElement(vn,{isSwitch:!0,label:wn.syncSymbolLabel,onClick:this._handleSyncSymbol,value:"syncSymbolLabel",watchedValue:this.props.chartWidgetCollection.lock.symbol}),r.createElement(vn,{isSwitch:!0,label:wn.syncIntervalLabel,onClick:this._handleSyncInterval,value:"syncIntervalLabel",watchedValue:this.props.chartWidgetCollection.lock.interval}),r.createElement(vn,{isSwitch:!0,label:wn.syncCrosshairLabel,watchedValue:this.props.chartWidgetCollection.lock.crosshair,value:"syncCrosshairLabel",onClick:this._handleSyncCrosshair}),r.createElement(vn,{isSwitch:!0,label:wn.syncTrackLabel,
watchedValue:this.props.chartWidgetCollection.lock.trackTime,value:"syncTrackLabel",onClick:this._handleSyncTrack}),r.createElement(fn,{isSwitch:!0}))},t.prototype._renderSyncTable=function(){return r.createElement("table",{className:bn.syncTable},r.createElement("tbody",null,r.createElement("tr",null,r.createElement("td",null,r.createElement(vn,{label:wn.syncSymbolLabel,hint:wn.syncSymbolHint,watchedValue:this.props.chartWidgetCollection.lock.symbol,onClick:this._handleSyncSymbol})),r.createElement("td",null,r.createElement(vn,{label:wn.syncIntervalLabel,hint:wn.syncIntervalHint,watchedValue:this.props.chartWidgetCollection.lock.interval,onClick:this._handleSyncInterval}))),r.createElement("tr",null,r.createElement("td",null,r.createElement(vn,{label:wn.syncCrosshairLabel,hint:wn.syncCrosshairHint,watchedValue:this.props.chartWidgetCollection.lock.crosshair,onClick:this._handleSyncCrosshair})),r.createElement("td",null,r.createElement(vn,{label:wn.syncTrackLabel,hint:wn.syncTrackHint,watchedValue:this.props.chartWidgetCollection.lock.trackTime,onClick:this._handleSyncTrack}))),r.createElement("tr",null,r.createElement("td",{colSpan:2},r.createElement(fn,null)))))},t}(r.PureComponent),yn=n("JENg"),Sn={hint:window.t("Select Layout")},_n=Object(M.b)(),kn=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a._onUpdateLayout=function(e){var t=a.context.chartWidgetCollection;a.setState({currentId:e||t.layout.value()})},a._handleOpenLayout=function(){Object(L.trackEvent)("GUI","Chart Header Toolbar","select layout")},Object(M.c)(n,{chartWidgetCollection:l.any.isRequired}),a.state={currentId:"s"},a}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){this.context.chartWidgetCollection.layout.subscribe(this._onUpdateLayout,{callWithLast:!0})},t.prototype.componentWillUnmount=function(){this.context.chartWidgetCollection.layout.unsubscribe(this._onUpdateLayout)},t.prototype.render=function(){var e=this,t=this.context.chartWidgetCollection,n=this.props,a=n.className,i=n.id,o=this.state.currentId;return r.createElement(k.a,{rule:O.a.TabletSmall},(function(n){return r.createElement(m.b,{id:i,arrow:!1,content:r.createElement(v.a,{className:bn.icon,icon:yn.a[o]}),title:Sn.hint,className:b(a,bn.button),isDrawer:n,drawerPosition:"Bottom",onOpen:e._handleOpenLayout},r.createElement(Cn,{chartWidgetCollection:t,isSmallWidth:n}))}))},t.contextType=_n,t}(r.PureComponent),On=n("i8i4"),En=n("cvc5"),Mn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._ref=null,t._update=function(){t.forceUpdate()},t._setRef=function(e){t._ref=e},t._handleMeasure=function(e){var n=e.width;t.props.width.setValue(n)},t}return Object(o.c)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.element,n=e.isFake,a=e.width;if(n)a.subscribe(this._update);else{var i=Object(G.ensureNotNull)(this._ref);On.findDOMNode(i).appendChild(t)}},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.width;e.isFake&&t.unsubscribe(this._update)},t.prototype.render=function(){
var e=this.props,t=e.isFake,n=void 0!==t&&t,a=e.width;return r.createElement(En,{shouldMeasure:!n,whitelist:["width"],onMeasure:this._handleMeasure},r.createElement(f.a,{ref:this._setRef,style:n?{width:a.value()}:void 0}))},t}(r.PureComponent);function xn(){var e;return e=i.enabled("header_layouttoggle")?kn:void 0,{Bars:i.enabled("header_chart_type")?N:void 0,Compare:i.enabled("header_compare")?D:void 0,Custom:Mn,Fullscreen:i.enabled("header_fullscreen_button")?K:void 0,Indicators:i.enabled("header_indicators")?de:void 0,Intervals:i.enabled("header_resolutions")?Ue:void 0,OpenPopup:Qe,Properties:i.enabled("header_settings")&&i.enabled("show_chart_property_page")?Ye:void 0,SaveLoad:i.enabled("header_saveload")?nt:void 0,Screenshot:i.enabled("header_screenshot")?ot:void 0,SymbolSearch:i.enabled("header_symbol_search")?ct:void 0,Templates:i.enabled("study_templates")?Pt:void 0,UndoRedo:i.enabled("header_undo_redo")?en:void 0,Layout:e}}n.d(t,"a",(function(){return xn}))},"ndm/":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var a=n("mrSG"),i=n("BHQF"),o=n("HPyf"),r=n("oOPW"),s=n("Gvuy"),l=n("G++a"),c=n("mNbo"),h=n("YFKU"),u=h.t("Error creating a new layout"),d=h.t("We are doing some brief daily maintenance. Charts will be back really soon, thanks for your patience!"),v=h.t("Your browser seems to be offline");function p(e){void 0===e&&(e={}),window.is_authenticated?Object(l.asyncWindowOpen)(function(e){return Object(a.b)(this,void 0,void 0,(function(){var t,n,o;return Object(a.d)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,Object(i.fetch)("/charts/",{method:"POST",body:JSON.stringify(e),credentials:"include"})];case 1:return n=a.sent(),o=n.headers.get("location"),n.ok&&o?[2,Object(c.urlWithMobileAppParams)(o)]:[4,n.json()];case 2:return t=a.sent().code,[3,4];case 3:return a.sent(),[3,4];case 4:return"count_limit"===t?Object(r.createGoProDialog)({feature:"savedChartsLimit"}):n||!1!==navigator.onLine?n&&n.status>=500||"feature_disabled"===t?Object(s.showErrorDialog)({content:d}):Object(s.showErrorDialog)({content:u}):Object(s.showErrorDialog)({content:v}),[2,void 0]}}))}))}(e)):window.open(Object(o.a)(e),"_blank")}},nrMg:function(e,t,n){e.exports={dottedCloud:"dottedCloud-3RnJMRVd",check:"check-3RnJMRVd",spinningCloud:"spinningCloud-3RnJMRVd",arrow:"arrow-3RnJMRVd",arrowGap:"arrowGap-3RnJMRVd",container:"container-3RnJMRVd",unsaved:"unsaved-3RnJMRVd",hovered:"hovered-3RnJMRVd",saving:"saving-3RnJMRVd",saved:"saved-3RnJMRVd"}},pIlP: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 5h3v12h5V8h3v13h1V7h-5v9h-3V4h-5v18H7v-5H6v6h5z"/></svg>'},pqsj: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 11v6h3v-6h-3zm-.5-1h4a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5z"/><path d="M18 7h1v3.5h-1zm0 10.5h1V21h-1z"/><path d="M9 8v12h3V8H9zm-.5-1h4a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 .5-.5z"/><path d="M10 4h1v3.5h-1zm0 16.5h1V24h-1z"/></svg>'},s0T6:function(e,t,n){e.exports={description:"description-2U1ZnBls"}},sHKj:function(e,t,n){e.exports={title:"title-2VoDfDWK"}},sbT4:function(e,t,n){e.exports={button:"button-2twPcS_V"}},t2Sj: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.982 16.689L17.192 12h3.033l4.149-4.668-.748-.664L19.776 11h-2.968l-4.79 4.311L9 12.293l-4.354 4.353.708.708L9 13.707z"/></svg>'},uPhS:function(e,t,n){e.exports={smallWidthMenuItem:"smallWidthMenuItem-2BP6_jxN"}},uafl: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 17a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm0-1a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"/><path d="M5.005 16A1.003 1.003 0 0 1 4 14.992v-1.984A.998.998 0 0 1 5 12h1.252a7.87 7.87 0 0 1 .853-2.06l-.919-.925c-.356-.397-.348-1 .03-1.379l1.42-1.42a1 1 0 0 1 1.416.007l.889.882A7.96 7.96 0 0 1 12 6.253V5c0-.514.46-1 1-1h2c.557 0 1 .44 1 1v1.253a7.96 7.96 0 0 1 2.06.852l.888-.882a1 1 0 0 1 1.416-.006l1.42 1.42a.999.999 0 0 1 .029 1.377s-.4.406-.918.926a7.87 7.87 0 0 1 .853 2.06H23c.557 0 1 .447 1 1.008v1.984A.998.998 0 0 1 23 16h-1.252a7.87 7.87 0 0 1-.853 2.06l.882.888a1 1 0 0 1 .006 1.416l-1.42 1.42a1 1 0 0 1-1.415-.007l-.889-.882a7.96 7.96 0 0 1-2.059.852v1.248c0 .56-.45 1.005-1.008 1.005h-1.984A1.004 1.004 0 0 1 12 22.995v-1.248a7.96 7.96 0 0 1-2.06-.852l-.888.882a1 1 0 0 1-1.416.006l-1.42-1.42a1 1 0 0 1 .007-1.415l.882-.888A7.87 7.87 0 0 1 6.252 16H5.005zm3.378-6.193l-.227.34A6.884 6.884 0 0 0 7.14 12.6l-.082.4H5.005C5.002 13 5 13.664 5 14.992c0 .005.686.008 2.058.008l.082.4c.18.883.52 1.71 1.016 2.453l.227.34-1.45 1.46c-.004.003.466.477 1.41 1.422l1.464-1.458.34.227a6.959 6.959 0 0 0 2.454 1.016l.399.083v2.052c0 .003.664.005 1.992.005.005 0 .008-.686.008-2.057l.399-.083a6.959 6.959 0 0 0 2.454-1.016l.34-.227 1.46 1.45c.003.004.477-.466 1.422-1.41l-1.458-1.464.227-.34A6.884 6.884 0 0 0 20.86 15.4l.082-.4h2.053c.003 0 .005-.664.005-1.992 0-.005-.686-.008-2.058-.008l-.082-.4a6.884 6.884 0 0 0-1.016-2.453l-.227-.34 1.376-1.384.081-.082-1.416-1.416-1.465 1.458-.34-.227a6.959 6.959 0 0 0-2.454-1.016L15 7.057V5c0-.003-.664-.003-1.992 0-.005 0-.008.686-.008 2.057l-.399.083a6.959 6.959 0 0 0-2.454 1.016l-.34.227-1.46-1.45c-.003-.004-.477.466-1.421 1.408l1.457 1.466z"/></g></svg>'},wUwu:function(e,t){
e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22M11 0v20"/></g></svg>'},wnRL: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="M8.707 13l2.647 2.646-.707.708L6.792 12.5l3.853-3.854.708.708L8.707 12H14.5a5.5 5.5 0 0 1 5.5 5.5V19h-1v-1.5a4.5 4.5 0 0 0-4.5-4.5H8.707z"/></svg>'},yGrx:function(e,t,n){e.exports={wrap:"wrap-13GsG5XA",full:"full-13GsG5XA",first:"first-13GsG5XA",last:"last-13GsG5XA",medium:"medium-13GsG5XA",buttonWithFavorites:"buttonWithFavorites-13GsG5XA"}},"z1A+":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="23" height="21"><g fill="none" stroke="currentColor" transform="translate(.5 .5)"><rect width="22" height="20" rx="2"/><path d="M0 10h22M11 10v10"/></g></svg>'},zgWb: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 stroke="currentColor" d="M6 12l3.88-4.31a1 1 0 0 1 1.35-.13l5.07 3.9a1 1 0 0 0 1.32-.08L23 6M6.5 22v-4m4 4v-8m4 8v-6m4 6v-4m4 4v-8"/></svg>'}}]);