Release v27.004 (from 1ca8700b)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7260],{59142:function(e,t){var s,r,a;r=[t],s=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,s=Array(e.length);t<e.length;t++)s[t]=e[t];return s}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var s=!1;if("undefined"!=typeof window){var r={get passive(){s=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}var a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),n=[],i=!1,o=-1,l=void 0,c=void 0,d=function(e){return n.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},u=function(e){var t=e||window.event;return!!d(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},h=function(){setTimeout((function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)}))};e.disableBodyScroll=function(e,r){if(a){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!n.some((function(t){return t.targetElement===e}))){var h={targetElement:e,options:r||{}};n=[].concat(t(n),[h]),e.ontouchstart=function(e){1===e.targetTouches.length&&(o=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var s,r,a,n;1===t.targetTouches.length&&(r=e,n=(s=t).targetTouches[0].clientY-o,!d(s.target)&&(r&&0===r.scrollTop&&0<n||(a=r)&&a.scrollHeight-a.scrollTop<=a.clientHeight&&n<0?u(s):s.stopPropagation()))},i||(document.addEventListener("touchmove",u,s?{passive:!1}:void 0),i=!0)}}else{p=r,setTimeout((function(){if(void 0===c){var e=!!p&&!0===p.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(c=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")}));var m={targetElement:e,options:r||{}};n=[].concat(t(n),[m])}var p},e.clearAllBodyScrollLocks=function(){a?(n.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),i&&(document.removeEventListener("touchmove",u,s?{passive:!1}:void 0),i=!1),n=[],o=-1):(h(),n=[])},e.enableBodyScroll=function(e){if(a){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,n=n.filter((function(t){return t.targetElement!==e})),i&&0===n.length&&(document.removeEventListener("touchmove",u,s?{passive:!1}:void 0),i=!1)}else 1===n.length&&n[0].targetElement===e?(h(),n=[]):n=n.filter((function(t){return t.targetElement!==e}))}},void 0===(a="function"==typeof s?s.apply(t,r):s)||(e.exports=a)},25650:e=>{e.exports={loader:"loader-UL6iwcBa",static:"static-UL6iwcBa",item:"item-UL6iwcBa","tv-button-loader":"tv-button-loader-UL6iwcBa",medium:"medium-UL6iwcBa",small:"small-UL6iwcBa",black:"black-UL6iwcBa",
|
||||
white:"white-UL6iwcBa",gray:"gray-UL6iwcBa",primary:"primary-UL6iwcBa"}},22436:e=>{e.exports={item:"item-GJX1EXhk",interactive:"interactive-GJX1EXhk",hovered:"hovered-GJX1EXhk",disabled:"disabled-GJX1EXhk",active:"active-GJX1EXhk",shortcut:"shortcut-GJX1EXhk",normal:"normal-GJX1EXhk",big:"big-GJX1EXhk",iconCell:"iconCell-GJX1EXhk",icon:"icon-GJX1EXhk",checkmark:"checkmark-GJX1EXhk",content:"content-GJX1EXhk",label:"label-GJX1EXhk",checked:"checked-GJX1EXhk",toolbox:"toolbox-GJX1EXhk",showToolboxOnHover:"showToolboxOnHover-GJX1EXhk",arrowIcon:"arrowIcon-GJX1EXhk",subMenu:"subMenu-GJX1EXhk",invisibleHotkey:"invisibleHotkey-GJX1EXhk"}},29122:e=>{e.exports={item:"item-WJDah4zD",emptyIcons:"emptyIcons-WJDah4zD",loading:"loading-WJDah4zD",disabled:"disabled-WJDah4zD",interactive:"interactive-WJDah4zD",hovered:"hovered-WJDah4zD",normal:"normal-WJDah4zD",big:"big-WJDah4zD",icon:"icon-WJDah4zD",label:"label-WJDah4zD",title:"title-WJDah4zD",nested:"nested-WJDah4zD",shortcut:"shortcut-WJDah4zD",remove:"remove-WJDah4zD"}},45719:e=>{e.exports={separator:"separator-Pf4rIzEt"}},92910:e=>{e.exports={separator:"separator-QjUlCDId",small:"small-QjUlCDId",normal:"normal-QjUlCDId",large:"large-QjUlCDId"}},4618:e=>{e.exports={tabs:"tabs-NGf0gcnH",tab:"tab-NGf0gcnH",noBorder:"noBorder-NGf0gcnH",disabled:"disabled-NGf0gcnH",active:"active-NGf0gcnH",defaultCursor:"defaultCursor-NGf0gcnH",slider:"slider-NGf0gcnH",content:"content-NGf0gcnH"}},26996:(e,t,s)=>{"use strict";s.d(t,{Loader:()=>o});var r=s(50959),a=s(97754),n=s(25650),i=s.n(n);function o(e){const{className:t,size:s="medium",staticPosition:n,color:o="black"}=e,l=a(i().item,i()[o],i()[s]);return r.createElement("span",{className:a(i().loader,n&&i().static,t)},r.createElement("span",{className:l}),r.createElement("span",{className:l}),r.createElement("span",{className:l}))}},47201:(e,t,s)=>{"use strict";function r(...e){return t=>{for(const s of e)void 0!==s&&s(t)}}s.d(t,{createSafeMulticastEventHandler:()=>r})},42142:(e,t,s)=>{"use strict";s.d(t,{FragmentMap:()=>a});var r=s(50959);function a(e){if(e.map){return r.Children.toArray(e.children).map(e.map)}return e.children}},99025:(e,t,s)=>{"use strict";s.d(t,{Hint:()=>o});var r=s(50959),a=s(97754),n=s.n(a),i=s(22436);function o(e){const{text:t="",className:s}=e;return r.createElement("span",{className:n()(i.shortcut,s)},t)}},23829:(e,t,s)=>{"use strict";s.d(t,{ContextMenuItem:()=>p});var r=s(50959),a=s(97754),n=s.n(a),i=s(9745),o=s(26996),l=s(54627),c=s(99025),d=s(39750),u=s(79978),h=s(69311),m=s(29122);function p(e){const{className:t,isTitle:s,isLoading:a,isHovered:p,active:g,checkable:v,disabled:_,checked:b,icon:f,iconChecked:y,hint:S,subItems:E,label:k,styledLabel:C,onClick:x,children:T,toolbox:w,jsxLabel:M,size:A="normal"}=e,z=(0,r.useContext)(l.EmptyIconsContext),I=!!E.length;return a?r.createElement("li",{className:n()(t,m.item,m.loading,m[A])},r.createElement(o.Loader,null)):r.createElement("li",{className:n()(t,m.item,m.interactive,s&&m.title,_&&m.disabled,p&&m.hovered,g&&m.active,z&&m.emptyIcons,m[A]),onClick:x
|
||||
},r.createElement(i.Icon,{className:n()(m.icon),icon:function(){if(v&&b)return y||f||d;return f}()}),r.createElement("span",{className:n()(m.label)},!M&&C?C.map((({text:e,...t},s)=>r.createElement("span",{key:s,style:t},e))):null!=M?M:k),!!w&&r.createElement(i.Icon,{onClick:function(){w&&w.action()},className:m.remove,icon:h}),!I&&S&&r.createElement(c.Hint,{className:m.shortcut,text:S}),I&&r.createElement(i.Icon,{className:m.nested,icon:u}),T)}},54627:(e,t,s)=>{"use strict";s.d(t,{EmptyIconsContext:()=>r});const r=s(50959).createContext(!1)},1109:(e,t,s)=>{"use strict";s.d(t,{Separator:()=>i});var r=s(50959),a=s(97754),n=s(45719);function i(e){return r.createElement("div",{className:a(n.separator,e.className)})}},51613:(e,t,s)=>{"use strict";s.d(t,{PopupMenuSeparator:()=>o});var r=s(50959),a=s(97754),n=s.n(a),i=s(92910);function o(e){const{size:t="normal",className:s,ariaHidden:a=!1}=e;return r.createElement("div",{className:n()(i.separator,"small"===t&&i.small,"normal"===t&&i.normal,"large"===t&&i.large,s),role:"separator","aria-hidden":a})}},40173:(e,t,s)=>{"use strict";function r(e,t,s={}){return Object.assign({},e,function(e,t,s={}){const r=Object.assign({},t);for(const a of Object.keys(t)){const n=s[a]||a;n in e&&(r[a]=[e[n],t[a]].join(" "))}return r}(e,t,s))}s.d(t,{mergeThemes:()=>r})},6132:(e,t,s)=>{"use strict";var r=s(22134);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,t,s,a,n,i){if(i!==r){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var s={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n,resetWarningCache:a};return s.PropTypes=s,s}},19036:(e,t,s)=>{e.exports=s(6132)()},22134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},47102:e=>{e.exports={accessible:"accessible-NQERJsv9",active:"active-NQERJsv9"}},44242:e=>{e.exports={title:"title-u3QJgF_p"}},64264:e=>{e.exports={toolbar:"toolbar-BXXUwft2",dateRangeWrapper:"dateRangeWrapper-BXXUwft2",seriesControlWrapper:"seriesControlWrapper-BXXUwft2",dateRangeExpanded:"dateRangeExpanded-BXXUwft2",dateRangeCollapsed:"dateRangeCollapsed-BXXUwft2",item:"item-BXXUwft2",last:"last-BXXUwft2",inline:"inline-BXXUwft2",dateRange:"dateRange-BXXUwft2",hidden:"hidden-BXXUwft2",collapsed:"collapsed-BXXUwft2"}},7458:e=>{e.exports={button:"button-Hfju7pW_"}},50242:e=>{e.exports={button:"button-uToIfRbZ"}},56812:e=>{e.exports={separator:"separator-yDfG9Ccu"}},97086:e=>{e.exports={headerMenuText:"headerMenuText-AcJrLng7"}},85616:e=>{e.exports={button:"button-x1dCOTP3",disabled:"disabled-x1dCOTP3",hover:"hover-x1dCOTP3",clicked:"clicked-x1dCOTP3",accessible:"accessible-x1dCOTP3"}},91348:e=>{e.exports={item:"item-SqYYy1zF"}},22586:e=>{e.exports={slider:"slider-3kCW6DWs",
|
||||
inner:"inner-3kCW6DWs"}},21648:e=>{e.exports={sliderRow:"sliderRow-k2h4OAz8"}},36898:(e,t,s)=>{"use strict";s.d(t,{useMouseClickAutoBlur:()=>i});var r=s(50959),a=s(76460),n=s(16838);function i(e,t=!0){(0,r.useEffect)((()=>{if(!n.PLATFORM_ACCESSIBILITY_ENABLED||!t)return;const s=t=>{const s=e.current;null!==s&&document.activeElement instanceof HTMLElement&&((0,a.isKeyboardClick)(t)||s.contains(document.activeElement)&&"INPUT"!==document.activeElement.tagName&&document.activeElement.blur())};return window.addEventListener("click",s,!0),()=>window.removeEventListener("click",s,!0)}),[t])}},81351:(e,t,s)=>{"use strict";s.d(t,{AccessibleMenuItem:()=>u});var r=s(50959),a=s(97754),n=s.n(a),i=s(3343),o=s(50238),l=s(16838),c=s(16396),d=s(47102);function u(e){const{className:t,...s}=e,[a,u]=(0,o.useRovingTabindexElement)(null);return r.createElement(c.PopupMenuItem,{...s,className:n()(l.PLATFORM_ACCESSIBILITY_ENABLED&&d.accessible,e.isActive&&d.active,t),reference:a,tabIndex:u,onKeyDown:function(e){if(!l.PLATFORM_ACCESSIBILITY_ENABLED||e.target!==e.currentTarget)return;const t=(0,i.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),a.current instanceof HTMLElement&&a.current.click())},"data-role":l.PLATFORM_ACCESSIBILITY_ENABLED?"menuitem":void 0,"aria-disabled":l.PLATFORM_ACCESSIBILITY_ENABLED&&e.isDisabled||void 0})}},82962:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetMenuSummary:()=>i});var r=s(50959),a=s(97754),n=s(44242);function i(e){return r.createElement("div",{className:a(e.className,n.title)},e.children)}},88066:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_TOOLBAR_BUTTON_THEME:()=>o,ToolbarButton:()=>l});var r=s(50959),a=s(31409),n=s(50238),i=s(16838);const o=a.DEFAULT_TOOL_WIDGET_BUTTON_THEME,l=(0,r.forwardRef)((function(e,t){const{tooltip:s,...o}=e,[l,c]=(0,n.useRovingTabindexElement)(t);return r.createElement(a.ToolWidgetButton,{"aria-label":i.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...o,tag:i.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",ref:l,tabIndex:c,"data-tooltip":s})}))},48889:(e,t,s)=>{"use strict";s.d(t,{ToolbarIconButton:()=>o});var r=s(50959),a=s(50238),n=s(16838),i=s(50813);const o=(0,r.forwardRef)((function(e,t){const{tooltip:s,...o}=e,[l,c]=(0,a.useRovingTabindexElement)(t);return r.createElement(i.ToolWidgetIconButton,{"aria-label":n.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...o,tag:n.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",ref:l,tabIndex:c,"data-tooltip":s})}))},50298:(e,t,s)=>{"use strict";s.d(t,{ToolbarMenuButton:()=>d});var r=s(50959),a=s(39416),n=s(8087),i=s(50238),o=s(16838),l=s(36898),c=s(81261);const d=(0,r.forwardRef)((function(e,t){const{tooltip:s,menuReference:d=null,...u}=e,[h,m]=(0,i.useRovingTabindexElement)(null),p=(0,a.useFunctionalRefObject)(d);return(0,l.useMouseClickAutoBlur)(p),r.createElement(n.ToolWidgetMenu,{"aria-label":o.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...u,ref:t,tag:o.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",reference:h,tabIndex:m,"data-tooltip":s,menuReference:p,onMenuKeyDown:c.handleAccessibleMenuKeyDown,onMenuFocus:e=>(0,c.handleAccessibleMenuFocus)(e,h)})}))},
|
||||
inner:"inner-3kCW6DWs"}},31071:e=>{e.exports={sliderRow:"sliderRow-k2h4OAz8"}},36898:(e,t,s)=>{"use strict";s.d(t,{useMouseClickAutoBlur:()=>i});var r=s(50959),a=s(76460),n=s(16838);function i(e,t=!0){(0,r.useEffect)((()=>{if(!n.PLATFORM_ACCESSIBILITY_ENABLED||!t)return;const s=t=>{const s=e.current;null!==s&&document.activeElement instanceof HTMLElement&&((0,a.isKeyboardClick)(t)||s.contains(document.activeElement)&&"INPUT"!==document.activeElement.tagName&&document.activeElement.blur())};return window.addEventListener("click",s,!0),()=>window.removeEventListener("click",s,!0)}),[t])}},81351:(e,t,s)=>{"use strict";s.d(t,{AccessibleMenuItem:()=>u});var r=s(50959),a=s(97754),n=s.n(a),i=s(3343),o=s(50238),l=s(16838),c=s(16396),d=s(47102);function u(e){const{className:t,...s}=e,[a,u]=(0,o.useRovingTabindexElement)(null);return r.createElement(c.PopupMenuItem,{...s,className:n()(l.PLATFORM_ACCESSIBILITY_ENABLED&&d.accessible,e.isActive&&d.active,t),reference:a,tabIndex:u,onKeyDown:function(e){if(!l.PLATFORM_ACCESSIBILITY_ENABLED||e.target!==e.currentTarget)return;const t=(0,i.hashFromEvent)(e);13!==t&&32!==t||(e.preventDefault(),a.current instanceof HTMLElement&&a.current.click())},"data-role":l.PLATFORM_ACCESSIBILITY_ENABLED?"menuitem":void 0,"aria-disabled":l.PLATFORM_ACCESSIBILITY_ENABLED&&e.isDisabled||void 0})}},82962:(e,t,s)=>{"use strict";s.d(t,{ToolWidgetMenuSummary:()=>i});var r=s(50959),a=s(97754),n=s(44242);function i(e){return r.createElement("div",{className:a(e.className,n.title)},e.children)}},88066:(e,t,s)=>{"use strict";s.d(t,{DEFAULT_TOOLBAR_BUTTON_THEME:()=>o,ToolbarButton:()=>l});var r=s(50959),a=s(31409),n=s(50238),i=s(16838);const o=a.DEFAULT_TOOL_WIDGET_BUTTON_THEME,l=(0,r.forwardRef)((function(e,t){const{tooltip:s,...o}=e,[l,c]=(0,n.useRovingTabindexElement)(t);return r.createElement(a.ToolWidgetButton,{"aria-label":i.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...o,tag:i.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",ref:l,tabIndex:c,"data-tooltip":s})}))},48889:(e,t,s)=>{"use strict";s.d(t,{ToolbarIconButton:()=>o});var r=s(50959),a=s(50238),n=s(16838),i=s(50813);const o=(0,r.forwardRef)((function(e,t){const{tooltip:s,...o}=e,[l,c]=(0,a.useRovingTabindexElement)(t);return r.createElement(i.ToolWidgetIconButton,{"aria-label":n.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...o,tag:n.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",ref:l,tabIndex:c,"data-tooltip":s})}))},50298:(e,t,s)=>{"use strict";s.d(t,{ToolbarMenuButton:()=>d});var r=s(50959),a=s(39416),n=s(8087),i=s(50238),o=s(16838),l=s(36898),c=s(81261);const d=(0,r.forwardRef)((function(e,t){const{tooltip:s,menuReference:d=null,...u}=e,[h,m]=(0,i.useRovingTabindexElement)(null),p=(0,a.useFunctionalRefObject)(d);return(0,l.useMouseClickAutoBlur)(p),r.createElement(n.ToolWidgetMenu,{"aria-label":o.PLATFORM_ACCESSIBILITY_ENABLED?s:void 0,...u,ref:t,tag:o.PLATFORM_ACCESSIBILITY_ENABLED?"button":"div",reference:h,tabIndex:m,"data-tooltip":s,menuReference:p,onMenuKeyDown:c.handleAccessibleMenuKeyDown,onMenuFocus:e=>(0,c.handleAccessibleMenuFocus)(e,h)})}))},
|
||||
54079:(e,t,s)=>{"use strict";s.d(t,{Toolbar:()=>u});var r=s(50959),a=s(50151),n=s(47201),i=s(3343),o=s(16838),l=s(71468),c=s(39416),d=s(36898);const u=(0,r.forwardRef)((function(e,t){const{onKeyDown:s,orientation:u,blurOnEscKeydown:h=!0,blurOnClick:m=!0,...p}=e,g=o.PLATFORM_ACCESSIBILITY_ENABLED?{role:"toolbar","aria-orientation":u}:{},v=(0,c.useFunctionalRefObject)(t);return(0,r.useLayoutEffect)((()=>{if(!o.PLATFORM_ACCESSIBILITY_ENABLED)return;const e=(0,a.ensureNotNull)(v.current),t=()=>{const t=(0,o.queryTabbableElements)(e).sort(o.navigationOrderComparator);if(0===t.length){const[t]=(0,o.queryFocusableElements)(e).sort(o.navigationOrderComparator);if(void 0===t)return;(0,l.becomeMainElement)(t)}if(t.length>1){const[,...e]=t;for(const t of e)(0,l.becomeSecondaryElement)(t)}};return window.addEventListener("keyboard-navigation-activation",t),()=>window.removeEventListener("keyboard-navigation-activation",t)}),[]),(0,d.useMouseClickAutoBlur)(v,m),r.createElement("div",{...p,...g,ref:v,onKeyDown:(0,n.createSafeMulticastEventHandler)((function(e){if(!o.PLATFORM_ACCESSIBILITY_ENABLED)return;if(e.defaultPrevented)return;if(!(document.activeElement instanceof HTMLElement))return;const t=(0,i.hashFromEvent)(e);if(h&&27===t)return e.preventDefault(),void document.activeElement.blur();if("vertical"!==u&&37!==t&&39!==t)return;if("vertical"===u&&38!==t&&40!==t)return;const s=e.currentTarget,r=(0,o.queryFocusableElements)(s).sort(o.navigationOrderComparator);if(0===r.length)return;const a=r.indexOf(document.activeElement);if(-1===a)return;e.preventDefault();const n=()=>{const e=(a+r.length-1)%r.length;(0,l.becomeSecondaryElement)(r[a]),(0,l.becomeMainElement)(r[e]),r[e].focus()},c=()=>{const e=(a+r.length+1)%r.length;(0,l.becomeSecondaryElement)(r[a]),(0,l.becomeMainElement)(r[e]),r[e].focus()};switch((0,o.mapKeyCodeToDirection)(t)){case"inlinePrev":"vertical"!==u&&n();break;case"inlineNext":"vertical"!==u&&c();break;case"blockPrev":"vertical"===u&&n();break;case"blockNext":"vertical"===u&&c()}}),s)})}))},33279:(e,t,s)=>{"use strict";s.r(t),s.d(t,{BottomToolbarRenderer:()=>gt});var r=s(50959),a=s(962),n=s(11542),i=s(19036),o=s(97754),l=s.n(o),c=s(14483),d=s(50298),u=s(12811),h=s(59064),m=s(90692),p=s(81351),g=s(51613),v=s(50151),_=s(51768),b=s(95366),f=s(57898),y=s(36274);const S=e=>n.t(null,{plural:"{str} minutes",count:e,replace:{str:`${e}`}},s(60144)),E=e=>n.t(null,{plural:"{str} hours",count:e,replace:{str:`${e}`}},s(17174)),k=e=>n.t(null,{plural:"{str} months",count:e,replace:{str:`${e}`}},s(28039)),C={1:{resolution:"1",text:S(1)},3:{resolution:"3",text:S(3)},5:{resolution:"5",text:S(5)},15:{resolution:"15",text:S(15)},30:{resolution:"30",text:S(30)},45:{resolution:"45",text:S(45)},60:{resolution:"60",text:E(1)},120:{resolution:"120",text:E(2)},180:{resolution:"180",text:E(3)},240:{resolution:"240",text:E(4)},"1D":{resolution:"1D",text:(w=1,n.t(null,{plural:"{str} days",count:w,replace:{str:`${w}`}},s(74262)))},"1W":{resolution:"1W",text:(T=1,n.t(null,{plural:"{str} weeks",count:T,replace:{str:`${T}`}},s(14074)))},"1M":{
|
||||
resolution:"1M",text:k(1)},"3M":{resolution:"3M",text:k(3)},"6M":{resolution:"6M",text:k(6)},"12M":{resolution:"12M",text:(x=1,n.t(null,{plural:"{str} years",count:x,replace:{str:`${x}`}},s(8222)))}};var x,T,w;function M(e){const t=function(e){const t=e.value.value,r=y.Interval.parse(t);if(!r.isValid()){if("YTD"===t)return n.t(null,{context:"timeframe_title"},s(87556));if("ALL"===t)return n.t(null,{context:"timeframe_title"},s(74944));if("LASTSESSION"===t)return A(1)}if(r.isMinutes()){const e=r.multiplier();return e%60!=0?(i=e,n.t(null,{plural:"{str} minutes",count:i,replace:{str:`${i}`},context:"timeframe_title"},s(44795))):(a=e/60,n.t(null,{plural:"{str} hours",count:a,replace:{str:`${a}`},context:"timeframe_title"},s(89020)))}var a;var i;if(r.isDays())return A(r.multiplier());if(r.isWeeks())return(e=>n.t(null,{plural:"{str} weeks",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(67518)))(r.multiplier());if(r.isMonths()){const e=r.multiplier();return e%12!=0?(o=e,n.t(null,{plural:"{str} months",count:o,replace:{str:`${o}`},context:"timeframe_title"},s(3189))):(e=>n.t(null,{plural:"{str} years",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(6598)))(e/12)}var o;return e.description||e.text}(e),r=function(e){const t=e.targetResolution,r=y.Interval.parse(t);if(r.isMinutes()){const e=r.multiplier();return e%60!=0?(i=e,n.t(null,{plural:"{str} minutes intervals",count:i,replace:{str:`${i}`},context:"timeframe_title"},s(56347))):(a=e/60,n.t(null,{plural:"{str} hours intervals",count:a,replace:{str:`${a}`},context:"timeframe_title"},s(54028)))}var a;var i;if(r.isDays())return(e=>n.t(null,{plural:"{str} days intervals",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(81693)))(r.multiplier());if(r.isWeeks())return(e=>n.t(null,{plural:"{str} weeks intervals",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(58667)))(r.multiplier());if(r.isMonths()){const e=r.multiplier();return e%12!=0?(o=e,n.t(null,{plural:"{str} months intervals",count:o,replace:{str:`${o}`},context:"timeframe_title"},s(99773))):(e=>n.t(null,{plural:"{str} years intervals",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(57849)))(e/12)}var o;return C[t].text}(e);return n.t(null,{replace:{timePeriod:t,timeInterval:r},context:"timeframe_title"},s(29505))}const A=e=>n.t(null,{plural:"{str} days",count:e,replace:{str:`${e}`},context:"timeframe_title"},s(42908));class z{constructor(e){this._state={ranges:[]},this._change=new f.Delegate,this._rangeChangedListenerBound=this._onRangeChanged.bind(this);const{chartWidget:t}=this._context=e;t.withModel(null,(()=>{const e=t.model(),s=e.mainSeries();s.onStatusChanged().subscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().subscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.subscribe(this,this._updateAvailableRanges);const r=e.model().appliedTimeFrame();r.subscribe(this._rangeChangedListenerBound),this._rangeChangedListenerBound(r.value()),
|
||||
this._updateAvailableRanges()}))}state(){return this._state}onChange(){return this._change}selectRange(e){this._setState({activeRange:e.value.value});const{chartWidgetCollection:t}=this._context,s={val:e.value,res:e.targetResolution};t.setTimeFrame(s)}destroy(){const{chartWidget:e}=this._context;e.withModel(null,(()=>{const t=e.model(),s=t.mainSeries();s.onStatusChanged().unsubscribe(this,this._updateAvailableRanges),c.enabled("update_timeframes_set_on_symbol_resolve")&&s.dataEvents().symbolResolved().unsubscribe(this,this._updateAvailableRanges),s.priceScale().properties().childs().lockScale.unsubscribe(this,this._updateAvailableRanges),t.model().appliedTimeFrame().unsubscribe(this._rangeChangedListenerBound)})),this._change.destroy()}_setState(e){this._state=Object.assign({},this._state,e),this._change.fire(this._state)}_onRangeChanged(e){let t;null!==e&&"period-back"===e.val.type&&(t=e.val.value),this._setState({activeRange:t})}_updateAvailableRanges(){const{availableTimeFrames:e,chartWidget:t}=this._context;if(!t.hasModel())return;const s=t.model().mainSeries(),r=s.status();if(2===r||1===r)return;const a=e(s.symbolInfo(),s.status()).map((e=>({...e,description:""===e.description?M(e):e.description})));0!==a.length&&this._setState({ranges:a})}}const I=(0,b.registryContextType)();function L(e){var t;return(t=class extends r.PureComponent{constructor(e,t){super(e,t),this._handleUpdate=e=>{this.setState(e)},this._handleSelectRange=e=>{var t,s;(0,_.trackEvent)("GUI","Chart Bottom Toolbar",`range ${e.value}`),null===(s=(t=this.props).onSelectRange)||void 0===s||s.call(t,e),this._binding.selectRange(e)},(0,b.validateRegistry)(t,{availableTimeFrames:i.any.isRequired,chartWidgetCollection:i.any.isRequired,chartWidget:i.any.isRequired}),D.has(t.chartWidget)||D.set(t.chartWidget,new z(t));const s=this._binding=(0,v.ensureDefined)(D.get(t.chartWidget));this.state=s.state()}componentDidMount(){this._binding.onChange().subscribe(this,this._handleUpdate)}componentWillUnmount(){this._binding.onChange().unsubscribe(this,this._handleUpdate)}render(){return r.createElement(e,{goToDateButton:this.props.goToDateButton,className:this.props.className,ranges:this.state.ranges,activeRange:this.state.activeRange,onSelectRange:this._handleSelectRange})}}).contextType=I,t}const D=new WeakMap;var B=s(64358),N=s(23829),R=s(1109),W=s(53180),j=s(90752),P=s(7458);function H(e){const{ranges:t,activeRange:s,onSelectRange:a}=e;return r.createElement(r.Fragment,null,t.map((e=>r.createElement(N.ContextMenuItem,{key:e.value.value,label:e.description||e.text,active:s===e.value.value,checked:s===e.value.value,checkable:!0,disabled:!1,onClick:n.bind(null,e),doNotCloseOnClick:!1,subItems:[]}))));function n(e){e&&a&&a(e),(0,h.globalCloseMenu)()}}function U(e){const{onGoToDateClick:t}=e;return r.createElement(r.Fragment,null,r.createElement(R.Separator,{className:P.separator}),r.createElement(N.ContextMenuItem,{icon:j,label:(0,W.appendEllipsis)(n.t(null,void 0,s(369))),onClick:t,active:!1,checked:!1,checkable:!1,disabled:!1,doNotCloseOnClick:!1,subItems:[]
|
||||
}))}const F={title:n.t(null,void 0,s(60222)),goToDate:(0,W.appendEllipsis)(n.t(null,void 0,s(369)))},O=(0,b.registryContextType)();class Y extends r.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;(0,B.showGoToDateDialog)(e),(0,h.globalCloseMenu)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),(0,h.globalCloseMenu)()},this._renderChildren=e=>{const{ranges:t,activeRange:s,goToDateButton:a}=this.props;return e?r.createElement(r.Fragment,null,r.createElement(H,{ranges:t,activeRange:s,onSelectRange:this._handleRangeSelect}),a&&r.createElement(U,{onGoToDateClick:this._handleGoToDateClick})):r.createElement(r.Fragment,null,t.map((e=>r.createElement(p.AccessibleMenuItem,{key:e.value.value,label:e.description||e.text,isActive:s===e.value.value,onClick:this._handleRangeSelect,onClickArg:e}))),a&&r.createElement(g.PopupMenuSeparator,null),a&&r.createElement(p.AccessibleMenuItem,{label:F.goToDate,onClick:this._handleGoToDateClick}))},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired})}render(){return r.createElement(m.MatchMedia,{rule:"screen and (max-width: 430px)"},(e=>r.createElement(d.ToolbarMenuButton,{className:l()(P.button,this.props.className),content:F.title,arrow:!0,verticalAttachEdge:u.VerticalAttachEdge.Top,verticalDropDirection:u.VerticalDropDirection.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e,onClick:this._trackClick},this._renderChildren(e))))}_trackClick(){0}}Y.contextType=O;const J=L(Y);var X=s(4618);const G=X;function V(e){return class extends r.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,v.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return r.createElement("div",{className:o(t,X.tabs),"data-name":this.props["data-name"]},s,r.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,r.Children.map(this.props.children,(e=>{const t=e,s=Boolean(t.props.isActive),a={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return r.cloneElement(t,a)}))}_componentDidUpdate(){const e=(0,v.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=`${t}px`,e.opacity="1"}else e.opacity="0"}}}V((function(e){return r.createElement("div",{className:X.slider,ref:e.reference})}));var q=s(40173),Z=s(88066),$=s(91348);(0,q.mergeThemes)(Z.DEFAULT_TOOLBAR_BUTTON_THEME,$);function K(e){const{reference:t,text:s,tooltip:a,isActive:n,className:i,onClick:l,theme:c=$,...d}=e,u=o(i,c.item,{[c.isActive]:n});return r.createElement(Z.ToolbarButton,{...d,ref:t,text:s,isActive:n,tooltip:a,className:u,onClick:l})}var Q=s(22586);const ee=(0,q.mergeThemes)(G,Q);var te=s(21648);const se=V((function(e){
|
||||
}))}const F={title:n.t(null,void 0,s(60222)),goToDate:(0,W.appendEllipsis)(n.t(null,void 0,s(369)))},O=(0,b.registryContextType)();class Y extends r.PureComponent{constructor(e,t){super(e,t),this._handleGoToDateClick=()=>{const{chartWidget:e}=this.context;(0,B.showGoToDateDialog)(e),(0,h.globalCloseMenu)()},this._handleRangeSelect=e=>{e&&this.props.onSelectRange&&this.props.onSelectRange(e),(0,h.globalCloseMenu)()},this._renderChildren=e=>{const{ranges:t,activeRange:s,goToDateButton:a}=this.props;return e?r.createElement(r.Fragment,null,r.createElement(H,{ranges:t,activeRange:s,onSelectRange:this._handleRangeSelect}),a&&r.createElement(U,{onGoToDateClick:this._handleGoToDateClick})):r.createElement(r.Fragment,null,t.map((e=>r.createElement(p.AccessibleMenuItem,{key:e.value.value,label:e.description||e.text,isActive:s===e.value.value,onClick:this._handleRangeSelect,onClickArg:e}))),a&&r.createElement(g.PopupMenuSeparator,null),a&&r.createElement(p.AccessibleMenuItem,{label:F.goToDate,onClick:this._handleGoToDateClick}))},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired})}render(){return r.createElement(m.MatchMedia,{rule:"screen and (max-width: 430px)"},(e=>r.createElement(d.ToolbarMenuButton,{className:l()(P.button,this.props.className),content:F.title,arrow:!0,verticalAttachEdge:u.VerticalAttachEdge.Top,verticalDropDirection:u.VerticalDropDirection.FromBottomToTop,horizontalMargin:4,"data-name":"date-ranges-menu",isDrawer:e,onClick:this._trackClick},this._renderChildren(e))))}_trackClick(){0}}Y.contextType=O;const J=L(Y);var X=s(4618);const G=X;function V(e){return class extends r.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,v.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,s=this._generateTabs();return r.createElement("div",{className:o(t,X.tabs),"data-name":this.props["data-name"]},s,r.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,r.Children.map(this.props.children,(e=>{const t=e,s=Boolean(t.props.isActive),a={reference:e=>{s&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return r.cloneElement(t,a)}))}_componentDidUpdate(){const e=(0,v.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,s=this.activeTab.current.offsetLeft;e.transform=`translateX(${s}px)`,e.width=`${t}px`,e.opacity="1"}else e.opacity="0"}}}V((function(e){return r.createElement("div",{className:X.slider,ref:e.reference})}));var q=s(40173),Z=s(88066),$=s(91348);(0,q.mergeThemes)(Z.DEFAULT_TOOLBAR_BUTTON_THEME,$);function K(e){const{reference:t,text:s,tooltip:a,isActive:n,className:i,onClick:l,theme:c=$,...d}=e,u=o(i,c.item,{[c.isActive]:n});return r.createElement(Z.ToolbarButton,{...d,ref:t,text:s,isActive:n,tooltip:a,className:u,onClick:l})}var Q=s(22586);const ee=(0,q.mergeThemes)(G,Q);var te=s(31071);const se=V((function(e){
|
||||
return r.createElement("div",{className:o(e.className,ee.slider),ref:e.reference},r.createElement("div",{className:ee.inner}))}));const re=L((function(e){const{className:t,ranges:s,activeRange:a,onSelectRange:n}=e;return r.createElement(se,{className:o(te.sliderRow,t),"data-name":"date-ranges-tabs"},s.map((e=>r.createElement(K,{key:e.value.value,value:e.value.value,"data-name":`date-range-tab-${e.value.value}`,isActive:a===e.value.value,onClick:n&&n.bind(null,e),text:e.text,tooltip:e.description||e.text}))))}));var ae=s(61814),ne=s(68335),ie=s(48889),oe=s(92574),le=s(50242);const ce=(0,ae.hotKeySerialize)({keys:[(0,ne.humanReadableModifiers)(ne.Modifiers.Alt,!1),"G"],text:"{0} + {1}"}),de=(0,b.registryContextType)();class ue extends r.PureComponent{constructor(e,t){super(e,t),this._handleClick=()=>{const{chartWidget:e}=this.context;(0,_.trackEvent)("GUI","Chart Bottom Toolbar","go to"),(0,B.showGoToDateDialog)(e)},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired})}render(){const{className:e,ranges:t}=this.props;return t.length>0&&r.createElement(ie.ToolbarIconButton,{icon:oe,onClick:this._handleClick,"data-tooltip-hotkey":ce,tooltip:n.t(null,void 0,s(369)),"data-name":"go-to-date",className:o(le.button,e)})}}ue.contextType=de;const he=L(ue);var me=s(76460),pe=s(88270),ge=s(79206),ve=s(39347),_e=s(41249),be=s(92216),fe=s(16164),ye=s(10643),Se=s(85616);const Ee=(0,q.mergeThemes)(Z.DEFAULT_TOOLBAR_BUTTON_THEME,{isDisabled:Se.disabled,button:Se.button});const ke=(0,b.registryContextType)();class Ce extends r.PureComponent{constructor(e,t){super(e,t),this._timeFormatter=new ge.TimeFormatter((0,be.getHourMinuteSecondFormat)(fe.timeHoursFormatProperty.value())),this._tickInterval=void 0,this._element=null,this._menuShown=!1,this._preventShowingMenu=!1,this._tickClock=()=>{const{chartApiInstance:e}=this.context;if(void 0!==this._timezone){const t=(0,_e.utc_to_cal)(this._timezone,e.serverTime());this.setState({time:this._timeFormatter.format(t)})}},this._getActions=()=>{if(!this.props.withMenu)return[];const{chartWidget:e}=this.context;return function(e){e.updateActions();const t=e.actions();return t&&t.applyTimeZone instanceof ve.Action?t.applyTimeZone.getSubItems():[]}(e)},this._handleRef=e=>{this._element=e},this._onMouseDown=()=>{this._preventShowingMenu=this._menuShown},this._showMenu=e=>{if(this._preventShowingMenu)return void ye.ContextMenuManager.hideAll();const t=(0,v.ensureNotNull)(this._element),s=this._getActions();if(0===s.length)return;const r=t.getBoundingClientRect();ye.ContextMenuManager.showMenu(s,{clientX:r.left,clientY:r.top,attachToYBy:"bottom"},{returnFocus:!0,takeFocus:!0,isKeyboardEvent:(0,me.isKeyboardClick)(e)},{menuName:"TimezoneMenuContextMenu"},(()=>{this._menuShown=!1})).then((()=>{this._menuShown=!0}))},(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired,chartApiInstance:i.any.isRequired}),this.state={time:""}}componentDidMount(){const{chartWidget:e}=this.context;this._tickInterval=setInterval(this._tickClock,1e3),e.withModel(null,(()=>{const t=e.model()
|
||||
;t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.subscribe(this,this.updateTimezonesButton),fe.timeHoursFormatProperty.subscribe(this,this._timeHoursFormatPropertyChanged)}))}componentWillUnmount(){const{chartWidget:e}=this.context;clearInterval(this._tickInterval),e.withModel(null,(()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateTimezonesButton),t.model().properties().childs().timezone.unsubscribe(this,this.updateTimezonesButton),fe.timeHoursFormatProperty.unsubscribe(this,this._timeHoursFormatPropertyChanged)}))}render(){const{className:e,withMenu:t}=this.props,{time:a}=this.state,i=void 0!==this._timezone?(0,pe.parseTzOffset)(this._timezone.name()).string:null;return r.createElement(Z.ToolbarButton,{onMouseDown:this._onMouseDown,ref:this._handleRef,onClick:this._showMenu,isDisabled:!t,theme:Ee,"data-name":"time-zone-menu",tooltip:t?n.t(null,void 0,s(87492)):void 0,className:e,text:a&&i&&`${a} (${i})`})}updateTimezonesButton(){const{chartWidget:e}=this.context;if(!e.hasModel())return;if(null===e.model().mainSeries().symbolInfo())return;let t=e.model().model().timezone();if("exchange"===t){const s=(0,v.ensureNotNull)(e.model().mainSeries().symbolInfo()).timezone;s&&(t=s)}this._timezone=(0,_e.get_timezone)(t),this._tickClock()}_timeHoursFormatPropertyChanged(){this._timeFormatter=new ge.TimeFormatter((0,be.getHourMinuteSecondFormat)(fe.timeHoursFormatProperty.value())),this.updateTimezonesButton()}}Ce.contextType=ke;var xe=s(56812);function Te(e){return r.createElement("span",{className:o(xe.separator,e.className)})}var we=s(54079),Me=s(36298),Ae=s(49483);class ze{constructor(e,t,s){this._highlighted=!1,this._chartWidget=e,this._priceScaleGetter=t,this._owner=s,this._setHighlight=this._setHighlight.bind(this),this._removeHighlight=this._removeHighlight.bind(this)}destroy(){this._highlighted&&this._removeHighlight()}handlers(){const e=Ae.CheckMobile.any();return{onMouseEnter:e?void 0:this._setHighlight,onMouseLeave:e?void 0:this._removeHighlight}}_setHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries()),s=this._priceScaleGetter();if(null===t||null===s)return;const r=this._chartWidget.paneByState(t);if(null!==r){const t=r.rightPriceAxisesContainer().findAxisWidgetForScale(s);let a=null;null!==t&&(a=t.axisInfo());const n=r.leftPriceAxisesContainer().findAxisWidgetForScale(s);null!==n&&(a=n.axisInfo());const i=r.highlightedPriceAxis();null!==a&&i.value().axis!==a&&(i.setValue({owner:this._owner,axis:a}),e.lightUpdate(),this._highlighted=!0)}}_removeHighlight(){if(!this._chartWidget.hasModel())return;const e=this._chartWidget.model().model(),t=e.paneForSource(e.mainSeries());if(null===t)return;const s=this._chartWidget.paneByState(t);if(null!==s){const t=s.highlightedPriceAxis(),r=t.value();null!==r.axis&&r.owner===this._owner&&(t.setValue({owner:this._owner,axis:null}),e.lightUpdate(),this._highlighted=!1)
|
||||
}}}const Ie=(0,b.registryContextType)(),Le=new Me.TranslatedString("toggle log scale",n.t(null,void 0,s(60166)));const De=(0,b.registryContextType)(),Be=new Me.TranslatedString("toggle auto scale",n.t(null,void 0,s(63060)));const Ne=(0,b.registryContextType)(),Re=new Me.TranslatedString("toggle percentage scale",n.t(null,void 0,s(68642)));const We=(0,b.registryContextType)();var je=s(42142),Pe=s(21861),He=s(82962),Ue=s(11678),Fe=s(97086);const Oe=new Me.TranslatedString("change session",n.t(null,void 0,s(65303))),Ye={hint:n.t(null,void 0,s(25866)),headerMenuText:n.t(null,void 0,s(44794))},Je=(0,b.registryContextType)();class Xe extends r.PureComponent{constructor(e,t){super(e,t),(0,b.validateRegistry)(t,{chartWidget:i.any.isRequired,chartApiInstance:i.any.isRequired}),this.state={availableSessions:[]}}componentDidMount(){const{chartWidget:e}=this.context;e.withModel(null,(()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().subscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.subscribe(this,this.updateSessionButton),this.updateSessionButton()}))}componentWillUnmount(){const{chartWidget:e}=this.context;e.withModel(null,(()=>{const t=e.model();t.model().mainSeries().dataEvents().symbolResolved().unsubscribe(this,this.updateSessionButton),t.model().mainSeries().properties().childs().sessionId.unsubscribe(this,this.updateSessionButton)}))}render(){const{className:e,withMenu:t}=this.props,{sessionName:s,sessionDescription:a}=this.state;return r.createElement(d.ToolbarMenuButton,{arrow:!1,isDisabled:!t,content:s,className:e,closeOnClickOutside:!0,tooltip:t?a:void 0,"data-name":"session-menu",verticalDropDirection:u.VerticalDropDirection.FromBottomToTop,verticalAttachEdge:u.VerticalAttachEdge.Top,onClick:this._trackClick},this._menuItems())}updateSessionButton(){var e,t;const{chartWidget:s}=this.context;if(!s.model())return;const r=s.model().mainSeries().symbolInfo();if(null===r)return;const a=r.subsession_id,n=null!==(t=null===(e=r.subsessions)||void 0===e?void 0:e.filter((e=>!e.private)))&&void 0!==t?t:[],i=n.find((e=>e.id===a));this.setState({sessionId:a,sessionName:(0,Ue.translateSessionShortDescription)((null==i?void 0:i.description)||""),sessionDescription:(0,Ue.translateSessionDescription)((null==i?void 0:i.description)||""),availableSessions:n})}_menuItems(){if(!this.props.withMenu)return[];const{chartWidget:e}=this.context,{availableSessions:t}=this.state;if(!e.model())return[];const s=e.model().mainSeries(),a=[r.createElement(He.ToolWidgetMenuSummary,{key:"header_menu_text",className:Fe.headerMenuText},Ye.headerMenuText.toUpperCase())];for(const n of t){const t={category:"SetSession",event:n.id},i=()=>{e.model().setProperty(s.properties().childs().sessionId,n.id,Oe)};a.push(r.createElement(p.AccessibleMenuItem,{key:n.id,label:(0,Ue.translateSessionDescription)(n.description),isActive:this.state.sessionId===n.id,trackEventObject:t,onClick:i}))}return a}_trackClick(){0}}Xe.contextType=Je;var Ge=s(21868),Ve=s(72026),qe=s(51267),Ze=s(64264);const $e={
|
||||
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
||||
(()=>{"use strict";var e,a,d,c,t,f={},b={};function r(e){var a=b[e];if(void 0!==a)return a.exports;var d=b[e]={id:e,loaded:!1,exports:{}};return f[e].call(d.exports,d,d.exports,r),d.loaded=!0,d.exports}r.m=f,r.c=b,e=[],r.O=(a,d,c,t)=>{if(!d){var f=1/0;for(i=0;i<e.length;i++){for(var[d,c,t]=e[i],b=!0,n=0;n<d.length;n++)(!1&t||f>=t)&&Object.keys(r.O).every((e=>r.O[e](d[n])))?d.splice(n--,1):(b=!1,t<f&&(f=t));if(b){e.splice(i--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var i=e.length;i>0&&e[i-1][2]>t;i--)e[i]=e[i-1];e[i]=[d,c,t]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},d=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);r.r(t);var f={};a=a||[null,d({}),d([]),d(d)];for(var b=2&c&&e;"object"==typeof b&&!~a.indexOf(b);b=d(b))Object.getOwnPropertyNames(b).forEach((a=>f[a]=()=>e[a]));return f.default=()=>e,r.d(t,f),t},r.d=(e,a)=>{for(var d in a)r.o(a,d)&&!r.o(e,d)&&Object.defineProperty(e,d,{enumerable:!0,get:a[d]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,d)=>(r.f[d](e,a),a)),[])),r.u=e=>9417===e?"__LANG__.9417.7ff64779d43389a1bb41.js":3175===e?"__LANG__.3175.e0a2c845c5cba23f42fb.js":3951===e?"__LANG__.3951.babac9be598102fb0d92.js":5362===e?"__LANG__.5362.311bfba5d2c84b13ec2b.js":2578===e?"__LANG__.2578.ab3178e0160c259eac53.js":2547===e?"__LANG__.2547.28b713bedf796244795d.js":2285===e?"__LANG__.2285.1268ecef367debd2960b.js":344===e?"__LANG__.344.a9e566fa1091368f40c7.js":178===e?"__LANG__.178.dd03c0163a8373c0fc5b.js":6306===e?"__LANG__.6306.b88dcc3f0d7db89ebfc1.js":3236===e?"__LANG__.3236.e12bb9a536432e97ec0c.js":({92:"chart-screenshot-hint",139:"get-error-card",507:"study-pane-views",607:"study-property-pages-with-definitions",731:"add-compare-dialog",1583:"lt-pane-views",1584:"context-menu-renderer",1702:"manage-drawings-dialog",1754:"symbol-search-dialog",1859:"go-to-date-dialog-impl",1890:"line-tools-icons",2077:"change-interval-dialog",2183:"study-inputs-pane-views",2306:"floating-toolbars",2377:"hammerjs",2616:"svg-renderer",2704:"currency-label-menu",2878:"drawing-toolbar",3005:"header-toolbar",3030:"new-confirm-inputs-dialog",3596:"general-property-page",4013:"custom-intervals-add-dialog",4079:"series-pane-views",4389:"take-chart-image-impl",4665:"share-chart-to-social-utils",4862:"object-tree-dialog",5009:"load-chart-dialog",5093:"chart-widget-gui",5516:"restricted-toolset",5551:"favorite-drawings-api",5565:"ichart-storage",5598:"lt-stickers-atlas",6124:"chart-storage-library-http",6166:"chart-event-hint",6265:"new-edit-object-dialog",6456:"study-market",6631:"study-template-dialog",6780:"source-properties-editor",7078:"general-chart-properties-dialog",7129:"line-tools-synchronizer",7260:"chart-bottom-toolbar",7271:"compare-model",7648:"show-theme-save-dialog",7987:"lt-icons-atlas",8020:"user-defined-bars-marks-tooltip",8313:"chart-storage-external-adapter",
|
||||
8537:"lt-property-pages-with-definitions",8643:"full-tooltips-popup",8890:"simple-dialog",9039:"lollipop-tooltip-renderer",9374:"symbol-info-dialog-impl",9498:"export-data",9685:"series-icons-map",9754:"global-search-dialog"}[e]||e)+"."+{6:"a03a8ff024d47ed075c6",92:"795900ef9e075c847a64",139:"83ba0cba4c0538851e0a",507:"51d0897ba74454ec3423",524:"2b350163c328ac8dce2e",607:"1d3c58ff151a9c7c19a3",731:"5039a5ac2f3556b18cb1",750:"e16edadfacd60574d861",826:"906374d84a8e6c40c6e8",855:"61db310932f8af2c5989",898:"b63568700f1380e37b1a",956:"a325fc0a9a24da09a622",962:"9f54d549868e21286372",1033:"bb804c64fe58de0bace7",1109:"845f0f111ff830ab93c8",1553:"c076714f5e24887f0b94",1583:"077de067da0763f84cb2",1584:"4170e3d150582097504c",1702:"5f8ccee744105adf029e",1740:"4c61de525e940eee4f3c",1754:"e5850d7e02343ee54c52",1762:"9511e5b410d7d629bc49",1803:"5799aa316db71b2f13e5",1859:"851f6bf2bf36fe8fbac4",1890:"ecc8d3a4af49afed6b6d",2052:"e9d07fdfb896fca26166",2077:"ebdeefbf84f9e033ed5b",2109:"291fa715b6ded706c3dd",2183:"6caf467f12b1d6ee408a",2191:"2197cc1b66a1db8969cc",2260:"95dc0a20b147b6b2eeed",2306:"96ac7a46b7738535bc92",2377:"6e30e0c48af40bf2f6c0",2443:"66f44a8bfe8d49aaeaee",2486:"2b718a16270e4168ea54",2544:"225f38946afc6ad55a35",2587:"615babc52637decdb6e2",2616:"f065beaf6b5b37da27d9",2639:"a55d77a7912be54f7b9d",2666:"d28c0fa0a323b8118f22",2676:"a9a5ede4d514162164fa",2704:"8bac01cc43d3f2cbf903",2731:"55eed17fefac5e82c077",2846:"fbbd62afe04b4f9387f2",2878:"37a00c1b0c7a68cc1d44",3005:"df1a95078c18a5da785c",3030:"5ce0d1c060e0d28cde15",3066:"8b1d2ceb22d9fedde67b",3263:"238cd2d620e004adee5a",3353:"de1d5e3e034ab68aa9fc",3502:"1985af3fa836c4248178",3596:"e4f9354142134a911ace",3610:"c79c6bddd919cb78428a",3717:"6f65e91a870250a6e450",3780:"ef366b87d104534e68d8",3842:"8758110ab553b5368121",3896:"14d9e7509c300245c219",3914:"33b17e48eb923e015932",3939:"2ee1e71dbe0bc0d85625",3980:"9d7eeb2bacce45c508b3",3986:"b50fcad4f1b77533bda7",4013:"1aa54900370f7317d3f0",4015:"9b6607a6f543f077c5a5",4062:"9229fac3ef3db26fd5bc",4079:"d3299bca6e9fad2c340a",4102:"67b3d1107a6ec8d571eb",4215:"8934b190aaed2663c300",4370:"18ca7d93e5073f0446c0",4389:"600804a9c180df6a83b1",4403:"bf44a542113a4440984b",4648:"7172f75bb866b3438c6f",4665:"d7331dbca4a2aa0909e7",4713:"d82fc553d710da1606f0",4781:"e8294ba5c7c6aef1fce7",4788:"d3e8ad5f514051fcc835",4862:"0b6cab4cb55e2cef2c40",4894:"035fecc664874bb752b0",4987:"a23484dfcca6d5fae195",5009:"9a37c608b4849a6f8a11",5057:"5382614553878fcf337d",5093:"75a373be3b6816e8b55a",5128:"57de9f218989cee8119d",5145:"da831552b3b54ca47682",5163:"953e65e04ed31b0ea0b3",5164:"a45b25a7ca6a0c16f810",5166:"979eb8cba5281ffcb38b",5516:"78732f5a01aa118efb81",5551:"340e60e2342b0d93ebe7",5565:"1144e5a1b4f8503ee572",5598:"52ad6e6d7d7b134ab0ba",5649:"5c1e55c9dad604880876",5664:"87e81959e880fa8ba65d",5866:"039e25226b82968cca61",5940:"c058b0e0ef421f740684",5983:"3c0ae13972f5d3433a77",5993:"0e5f49179c6a516963de",6025:"d669a0315da9d6fda6b3",6036:"5b373caaaa6e1ba4495f",6106:"1d31df88e63bf542ea7b",6124:"f1f53155460ee314f062",6166:"9fb712c61440c609af69",
|
||||
6214:"5a578175aab923a979dc",6221:"56c4d15c823c019ddb39",6265:"b3553940c9159e24d8aa",6408:"e58aaf98d9306e8d9b77",6456:"b04732ea1491ac587015",6494:"7f264af8142cb9910c06",6625:"364cf21fe24d7e675de8",6631:"711ba6ae5b343ace8691",6639:"a1bd5bf1d51c681561a1",6747:"ae7a7ec28d22057d6d0d",6752:"912872ffa56a7243d664",6780:"3b96f58f66e0caa61b15",6884:"07642217627127113fb0",6918:"c8f3265e9286a784038b",6925:"665969c4af4481df0691",6949:"f50051a55eaa8dd5e780",6985:"8d289318ce5fe6dc7763",7051:"ba50ecafb4527628fb40",7078:"cddce4ed266fd9e0629e",7111:"4716f3208dc337521c10",7129:"0bc2d3617dda7143f094",7149:"d450e8145ad7e6fbd67f",7194:"098c1a8da1ddbbda98f6",7260:"90c0a4f4e79f0973fd8f",7271:"f7e796a37129a93179ee",7350:"aa555ff9e17c4029aedd",7391:"c63bd39c42093cc4130c",7413:"3a52b91975b98e6fe8e4",7550:"087936b2aa6ea51cd6bf",7555:"ea682716c26bc13db765",7648:"02c87d9b20f743b5cf16",7663:"6fabc58c7ddf7c2b076f",7807:"6adfcf6c0792dc9c9363",7871:"df6a9177c293c0c53e80",7987:"5d7c9d668ac98bd5bce1",8020:"71213c4f755723965a80",8056:"c06a1c8fb4a1f18cf217",8149:"9fb525d10e5c8ba95701",8167:"3edae41386acc976c9f8",8287:"7a7977ba76726177fb3c",8313:"9c1267d07e48b8d8f53f",8450:"757d38443ea38bd0165f",8537:"ae758430950906d90d11",8643:"3a92633d0497afb5344c",8882:"9838a8b1e0e6766b6408",8890:"6a6e7744cd3263ce2887",8904:"87e94e93ade13962a48f",9039:"19bbb3fc39665da2e3e6",9138:"f516266ddcf6ca8c7064",9327:"0c38440ca52f144413ac",9374:"6ef1056ef156ddb4caf1",9403:"61498701a4dae3f700c2",9465:"ca5284cff2560957cdd6",9498:"f43b3c60275506b2198a",9685:"f25fb7b89b7e831b726c",9754:"91018047180ff0d9e40b",9789:"458feb5c8c0263b0618b",9842:"581808dd4a8651b16779",9916:"0c2cb2d12479a20efce1"}[e]+".js",r.miniCssF=e=>e+"."+{6:"362fa6a7ab1f3e3b06c4",524:"ef662c4bc3e57dd91171",826:"2effba57f47544e58368",855:"56a5e53c97d91a9f96f7",898:"f909d7c1efc95f635922",956:"1e89775cfd644d656c56",1033:"5197f9f8b8500206d06c",1109:"b1ced88f4a839badfff1",1762:"7ff6b353c441db2276da",1803:"4653bb65d2b0d594d6af",2109:"4d5de3fbde1cd7dc5e9f",2191:"bb0aa12f5e562fd483f3",2260:"b98824e4829a1aa9b444",2486:"82c7dba4839761a57f28",2587:"1f1100dc01693edfe269",2639:"7b1d42eef7b89e0e96d3",2666:"fbb750fd312778403036",2676:"2d3cabbd39a3b0d6e9ea",2731:"ec19f123cabf8efd03a4",3066:"58a325f25b087530293d",3353:"860146c59230ab4bd938",3502:"c49903f7222870ff8aca",3610:"11b7ad14e26429fdfa5d",3717:"856421c70a4dff35762a",3780:"a289557f2e0bcabcc4ca",3842:"8cf6b523fd5a5b6fb022",3896:"96db838d3467bcf68051",3914:"d2b6c577f350629b6837",3939:"4d0187960a564ff5a557",3980:"b2ff45a2d8bb6a131d7c",4015:"1d0e3a62a59d173c81f3",4102:"4abd8542fa3aa3e7fd5d",4215:"d24836a292b1969ab4bb",4781:"cf1365a3bf51d9989978",4788:"3cff897925f7a8dbc837",4894:"99d4c2794da9feef3c70",4987:"ca5d16a7e990d39bfb0e",5145:"a2b224fd27ab2941c565",5163:"950dd1d584f76da1ed3b",5166:"a12c50ad6225ca6de843",5649:"b60ed09c5ea8c55827d4",5866:"f164dd2a584ab0f493cf",5940:"aedc1bdbd324e6042b17",5993:"4705829d0834140ee3f2",6025:"263b457b1a7f9ca139b2",6036:"3b493a9f0ab052e6447c",6106:"f01163745d787b60c86c",6214:"65b7dbf8be6cca5ac143",6221:"bc53670dfb8f982908a2",
|
||||
6214:"5a578175aab923a979dc",6221:"56c4d15c823c019ddb39",6265:"b3553940c9159e24d8aa",6408:"e58aaf98d9306e8d9b77",6456:"6dd3b88a86eba6172f5c",6494:"7f264af8142cb9910c06",6625:"364cf21fe24d7e675de8",6631:"711ba6ae5b343ace8691",6639:"a1bd5bf1d51c681561a1",6747:"ae7a7ec28d22057d6d0d",6752:"912872ffa56a7243d664",6780:"3b96f58f66e0caa61b15",6884:"07642217627127113fb0",6918:"c8f3265e9286a784038b",6925:"665969c4af4481df0691",6949:"f50051a55eaa8dd5e780",6985:"8d289318ce5fe6dc7763",7051:"ba50ecafb4527628fb40",7078:"cddce4ed266fd9e0629e",7111:"4716f3208dc337521c10",7129:"0bc2d3617dda7143f094",7149:"d450e8145ad7e6fbd67f",7194:"098c1a8da1ddbbda98f6",7260:"4d02fadc540256bf733e",7271:"f7e796a37129a93179ee",7350:"aa555ff9e17c4029aedd",7391:"c63bd39c42093cc4130c",7413:"3a52b91975b98e6fe8e4",7550:"087936b2aa6ea51cd6bf",7555:"ea682716c26bc13db765",7648:"02c87d9b20f743b5cf16",7663:"6fabc58c7ddf7c2b076f",7807:"6adfcf6c0792dc9c9363",7871:"df6a9177c293c0c53e80",7987:"5d7c9d668ac98bd5bce1",8020:"71213c4f755723965a80",8056:"c06a1c8fb4a1f18cf217",8149:"9fb525d10e5c8ba95701",8167:"3edae41386acc976c9f8",8287:"7a7977ba76726177fb3c",8313:"9c1267d07e48b8d8f53f",8450:"757d38443ea38bd0165f",8537:"ae758430950906d90d11",8643:"3a92633d0497afb5344c",8882:"9838a8b1e0e6766b6408",8890:"6a6e7744cd3263ce2887",8904:"87e94e93ade13962a48f",9039:"19bbb3fc39665da2e3e6",9138:"f516266ddcf6ca8c7064",9327:"0c38440ca52f144413ac",9374:"6ef1056ef156ddb4caf1",9403:"61498701a4dae3f700c2",9465:"ca5284cff2560957cdd6",9498:"f43b3c60275506b2198a",9685:"f25fb7b89b7e831b726c",9754:"91018047180ff0d9e40b",9789:"458feb5c8c0263b0618b",9842:"581808dd4a8651b16779",9916:"0c2cb2d12479a20efce1"}[e]+".js",r.miniCssF=e=>e+"."+{6:"362fa6a7ab1f3e3b06c4",524:"ef662c4bc3e57dd91171",826:"2effba57f47544e58368",855:"56a5e53c97d91a9f96f7",898:"f909d7c1efc95f635922",956:"1e89775cfd644d656c56",1033:"5197f9f8b8500206d06c",1109:"b1ced88f4a839badfff1",1762:"7ff6b353c441db2276da",1803:"4653bb65d2b0d594d6af",2109:"4d5de3fbde1cd7dc5e9f",2191:"bb0aa12f5e562fd483f3",2260:"b98824e4829a1aa9b444",2486:"82c7dba4839761a57f28",2587:"1f1100dc01693edfe269",2639:"7b1d42eef7b89e0e96d3",2666:"fbb750fd312778403036",2676:"2d3cabbd39a3b0d6e9ea",2731:"ec19f123cabf8efd03a4",3066:"58a325f25b087530293d",3353:"860146c59230ab4bd938",3502:"c49903f7222870ff8aca",3610:"11b7ad14e26429fdfa5d",3717:"856421c70a4dff35762a",3780:"a289557f2e0bcabcc4ca",3842:"8cf6b523fd5a5b6fb022",3896:"96db838d3467bcf68051",3914:"d2b6c577f350629b6837",3939:"4d0187960a564ff5a557",3980:"b2ff45a2d8bb6a131d7c",4015:"1d0e3a62a59d173c81f3",4102:"4abd8542fa3aa3e7fd5d",4215:"d24836a292b1969ab4bb",4781:"cf1365a3bf51d9989978",4788:"3cff897925f7a8dbc837",4894:"99d4c2794da9feef3c70",4987:"ca5d16a7e990d39bfb0e",5145:"a2b224fd27ab2941c565",5163:"950dd1d584f76da1ed3b",5166:"a12c50ad6225ca6de843",5649:"b60ed09c5ea8c55827d4",5866:"f164dd2a584ab0f493cf",5940:"aedc1bdbd324e6042b17",5993:"4705829d0834140ee3f2",6025:"263b457b1a7f9ca139b2",6036:"3b493a9f0ab052e6447c",6106:"f01163745d787b60c86c",6214:"65b7dbf8be6cca5ac143",6221:"bc53670dfb8f982908a2",
|
||||
6494:"4c212043f24336e170d5",6625:"0ed88fc3a989c98408cc",6639:"885b5577e3fb71ee2bea",6747:"c7d403ae692f88568278",6752:"207eb3cc75b3ed2c6754",6884:"bb7d30a7bbbe5af36556",6925:"a3a09d7303a96edb77cb",6949:"19355e81a60b640ea097",6985:"2cd225354e2fd236e8e9",7111:"b16b4eb739a7e8577559",7149:"12adbb19fdefe9b66b18",7194:"e04f69c8933166966874",7350:"00632eec360f0cf2d9a0",7391:"9c809fa91ed0c8f75bc0",7413:"f830ad1ad6ee6f9b1cb3",7555:"8c1e3939e7666b0f8c69",7807:"8577632fdab29ee53ddf",7871:"fff454908cba03863eb7",8056:"1f54f717d8e522c55c89",8149:"21f2b01074a4d082e268",8287:"2b6f71ec5c0064590ffd",8450:"f75ab24e1ecb22d29183",8904:"a302177fe7e3ccd50cb0",9138:"03b8fbcfabcae851949a",9327:"97be240031495a68333f",9403:"db9859ab09623682562c",9465:"fd61e82b3c912f2e9fad",9789:"cb5ad20bc727d3820b6c",9842:"ceaeabba258d065497c8",9916:"60c48148a54dba9504a0"}[e]+".css",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),c={},t="tradingview:",r.l=(e,a,d,f)=>{if(c[e])c[e].push(a);else{var b,n;if(void 0!==d)for(var o=document.getElementsByTagName("script"),i=0;i<o.length;i++){var l=o[i];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")==t+d){b=l;break}}b||(n=!0,(b=document.createElement("script")).charset="utf-8",b.timeout=120,r.nc&&b.setAttribute("nonce",r.nc),b.setAttribute("data-webpack",t+d),b.src=e,0!==b.src.indexOf(window.location.origin+"/")&&(b.crossOrigin="anonymous")),c[e]=[a];var s=(a,d)=>{b.onerror=b.onload=null,clearTimeout(u);var t=c[e];if(delete c[e],b.parentNode&&b.parentNode.removeChild(b),t&&t.forEach((e=>e(d))),a)return a(d)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:b}),12e4);b.onerror=s.bind(null,b.onerror),b.onload=s.bind(null,b.onload),n&&document.head.appendChild(b)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var a=r.g.document;if(!e&&a&&(a.currentScript&&(e=a.currentScript.src),!e)){var d=a.getElementsByTagName("script");d.length&&(e=d[d.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),r.g.location&&r.p.startsWith(r.g.location.origin)&&(r.p=r.p.slice(r.g.location.origin.length)),(()=>{const e=r.u;r.u=a=>e(a).replace("__LANG__",r.g.language)})(),(()=>{const e={ca_ES:(e=1)=>+(1!=e),cs:(e=1)=>+(1==e?0:e>=2&&e<=4?1:2),el:(e=1)=>+(1!=e),da_DK:(e=1)=>+(1!=e),en:(e=1)=>+(1!=e),et_EE:(e=1)=>+(1!=e),fa:(e=1)=>0,hu_HU:(e=1)=>0,id_ID:(e=1)=>0,it:(e=1)=>+(1!=e),ms_MY:(e=1)=>0,
|
||||
no:(e=1)=>+(1!=e),nl_NL:(e=1)=>+(1!=e),ro:(e=1)=>+(1==e?0:e%100>19||e%100==0&&0!=e?2:1),sk_SK:(e=1)=>+(1==e?0:e>=2&&e<=4?1:2),sv:(e=1)=>+(1!=e),zh:(e=1)=>0,zh_TW:(e=1)=>0,de:(e=1)=>+(1!=e),es:(e=1)=>+(1!=e),fr:(e=1)=>+(e>1),he_IL:(e=1)=>+(1==e?0:2==e?1:e>10&&e%10==0?2:3),ko:(e=1)=>0,ja:(e=1)=>0,pl:(e=1)=>+(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),pt:(e=1)=>+(1!=e),tr:(e=1)=>+(1!=e),vi:(e=1)=>0,ar:(e=1)=>+(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5),ru:(e=1)=>+(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),th:(e=1)=>0};r.tf=(a,d={},c)=>{if(null===a){if(Array.isArray(c)){if(r.g.customTranslateFunction){const e=r.g.customTranslateFunction(c[0],d.plural?{...d,plural:c.length>2?c.slice(1):c[1]}:d,!0);if(null!==e)return e}return(c[e[r.g.language](d.count)]||c[0]).replace(/{(\w+)}/g,((e,a)=>void 0!==(d.replace||d)[a]?(d.replace||d)[a]:e))}return"object"==typeof c?r.tf(null,d,c[r.g.language||"en"]):r.tf(c,d)}if(c&&a){const e=`${a}${d.context?`_${d.context}`:""}`;if(c[e])return r.tf(null,d,c[e])}if("number"==typeof a)return a.toString();if("string"!=typeof a)return"";if(r.g.customTranslateFunction){const e=r.g.customTranslateFunction(a,d,!1);if(null!==e)return e}return(d.plural&&1!=+d.count?d.plural:a).replace(/{(\w+)}/g,((e,a)=>void 0!==(d.replace||d)[a]?(d.replace||d)[a]:e))}})(),r.p=r.g.WEBPACK_PUBLIC_PATH||r.p;var n=r.e,o=Object.create(null);function i(e,a){return n(e).catch((function(){return new Promise((function(d){var c=function(){self.removeEventListener("online",c,!1),!1===navigator.onLine?self.addEventListener("online",c,!1):d(a<2?i(e,a+1):n(e))};setTimeout(c,a*a*1e3)}))}))}r.e=function(e){if(!o[e]){o[e]=i(e,0);var a=function(){delete o[e]};o[e].then(a,a)}return o[e]},(()=>{if("undefined"!=typeof document){var e=e=>new Promise(((a,d)=>{var c=r.miniCssF(e),t=r.p+c;if(((e,a)=>{for(var d=document.getElementsByTagName("link"),c=0;c<d.length;c++){var t=(b=d[c]).getAttribute("data-href")||b.getAttribute("href");if("stylesheet"===b.rel&&(t===e||t===a))return b}var f=document.getElementsByTagName("style");for(c=0;c<f.length;c++){var b;if((t=(b=f[c]).getAttribute("data-href"))===e||t===a)return b}})(c,t))return a();((e,a,d,c,t)=>{var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onerror=f.onload=d=>{if(f.onerror=f.onload=null,"load"===d.type)c();else{var b=d&&("load"===d.type?"missing":d.type),r=d&&d.target&&d.target.href||a,n=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");n.code="CSS_CHUNK_LOAD_FAILED",n.type=b,n.request=r,f.parentNode&&f.parentNode.removeChild(f),t(n)}},f.href=a,0!==f.href.indexOf(window.location.origin+"/")&&(f.crossOrigin="anonymous"),d?d.parentNode.insertBefore(f,d.nextSibling):document.head.appendChild(f)})(e,t,null,a,d)})),a={3666:0};r.f.miniCss=(d,c)=>{a[d]?c.push(a[d]):0!==a[d]&&{6:1,524:1,826:1,855:1,898:1,956:1,1033:1,1109:1,1762:1,1803:1,2109:1,2191:1,2260:1,2486:1,2587:1,2639:1,2666:1,2676:1,2731:1,3066:1,3353:1,3502:1,3610:1,3717:1,3780:1,3842:1,3896:1,3914:1,3939:1,3980:1,4015:1,4102:1,4215:1,4781:1,
|
||||
4788:1,4894:1,4987:1,5145:1,5163:1,5166:1,5649:1,5866:1,5940:1,5993:1,6025:1,6036:1,6106:1,6214:1,6221:1,6494:1,6625:1,6639:1,6747:1,6752:1,6884:1,6925:1,6949:1,6985:1,7111:1,7149:1,7194:1,7350:1,7391:1,7413:1,7555:1,7807:1,7871:1,8056:1,8149:1,8287:1,8450:1,8904:1,9138:1,9327:1,9403:1,9465:1,9789:1,9842:1,9916:1}[d]&&c.push(a[d]=e(d).then((()=>{a[d]=0}),(e=>{throw delete a[d],e})))}}})(),(()=>{var e={3666:0,6150:0};r.f.j=(a,d)=>{var c=r.o(e,a)?e[a]:void 0;if(0!==c)if(c)d.push(c[2]);else if(/^(1(033|109|762|803)|2(6(39|66|76)|109|191|260|486|587|731)|3(9(14|39|80)|(06|66|89)6|353|502|610|717|780|842)|4(78[18]|[02]15|102|894|987)|5(1(45|63|66)|24|649|866|940|993)|6(9(25|49|85)|[06]25|(21|49|88)4||036|106|150|221|639|747|752)|7(1(11|49|94)|350|391|413|555|807|871)|8(056|149|26|287|450|55|904|98)|9(138|327|403|465|56|789|842|916))$/.test(a))e[a]=0;else{var t=new Promise(((d,t)=>c=e[a]=[d,t]));d.push(c[2]=t);var f=r.p+r.u(a),b=new Error;r.l(f,(d=>{if(r.o(e,a)&&(0!==(c=e[a])&&(e[a]=void 0),c)){var t=d&&("load"===d.type?"missing":d.type),f=d&&d.target&&d.target.src;b.message="Loading chunk "+a+" failed.\n("+t+": "+f+")",b.name="ChunkLoadError",b.type=t,b.request=f,c[1](b)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,d)=>{var c,t,[f,b,n]=d,o=0;if(f.some((a=>0!==e[a]))){for(c in b)r.o(b,c)&&(r.m[c]=b[c]);if(n)var i=n(r)}for(a&&a(d);o<f.length;o++)t=f[o],r.o(e,t)&&e[t]&&e[t][0](),e[t]=0;return r.O(i)},d=self.webpackChunktradingview=self.webpackChunktradingview||[];d.forEach(a.bind(null,0)),d.push=a.bind(null,d.push.bind(d))})(),(()=>{const{miniCssF:e}=r;r.miniCssF=a=>self.document&&"rtl"===self.document.dir?e(a).replace(/\.css$/,".rtl.css"):e(a)})()})();
|
||||
@@ -1,14 +1,14 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[6456],{1414:e=>{e.exports={button:"button-D4RPB3ZC",content:"content-D4RPB3ZC","icon-only":"icon-only-D4RPB3ZC",link:"link-D4RPB3ZC","color-brand":"color-brand-D4RPB3ZC","variant-primary":"variant-primary-D4RPB3ZC","variant-secondary":"variant-secondary-D4RPB3ZC","color-gray":"color-gray-D4RPB3ZC","color-green":"color-green-D4RPB3ZC","color-red":"color-red-D4RPB3ZC","color-black":"color-black-D4RPB3ZC","color-black-friday":"color-black-friday-D4RPB3ZC","color-cyber-monday":"color-cyber-monday-D4RPB3ZC","size-xsmall":"size-xsmall-D4RPB3ZC","start-icon-wrap":"start-icon-wrap-D4RPB3ZC","end-icon-wrap":"end-icon-wrap-D4RPB3ZC","with-start-icon":"with-start-icon-D4RPB3ZC","with-end-icon":"with-end-icon-D4RPB3ZC","size-small":"size-small-D4RPB3ZC","size-medium":"size-medium-D4RPB3ZC","size-large":"size-large-D4RPB3ZC","size-xlarge":"size-xlarge-D4RPB3ZC",animated:"animated-D4RPB3ZC",stretch:"stretch-D4RPB3ZC",grouped:"grouped-D4RPB3ZC","adjust-position":"adjust-position-D4RPB3ZC","first-row":"first-row-D4RPB3ZC","first-col":"first-col-D4RPB3ZC","no-corner-top-left":"no-corner-top-left-D4RPB3ZC","no-corner-top-right":"no-corner-top-right-D4RPB3ZC","no-corner-bottom-right":"no-corner-bottom-right-D4RPB3ZC","no-corner-bottom-left":"no-corner-bottom-left-D4RPB3ZC","text-wrap":"text-wrap-D4RPB3ZC","multiline-content":"multiline-content-D4RPB3ZC","secondary-text":"secondary-text-D4RPB3ZC","primary-text":"primary-text-D4RPB3ZC"}},88803:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 430px)"}},40281:e=>{e.exports={container:"container-qm7Rg5MB",inputContainer:"inputContainer-qm7Rg5MB",withCancel:"withCancel-qm7Rg5MB",input:"input-qm7Rg5MB",icon:"icon-qm7Rg5MB",cancel:"cancel-qm7Rg5MB"}},54829:e=>{e.exports={wrapper:"wrapper-nGEmjtaX",container:"container-nGEmjtaX",tab:"tab-nGEmjtaX",active:"active-nGEmjtaX",title:"title-nGEmjtaX",icon:"icon-nGEmjtaX",withoutIcon:"withoutIcon-nGEmjtaX",titleText:"titleText-nGEmjtaX",nested:"nested-nGEmjtaX",isTablet:"isTablet-nGEmjtaX",isMobile:"isMobile-nGEmjtaX",accessible:"accessible-nGEmjtaX"}},61098:e=>{e.exports={title:"title-z9fs4j4t",small:"small-z9fs4j4t",normal:"normal-z9fs4j4t",large:"large-z9fs4j4t"}},76797:e=>{e.exports={container:"container-XOHpda28"}},95988:e=>{e.exports={title:"title-cIIj4HrJ",disabled:"disabled-cIIj4HrJ",icon:"icon-cIIj4HrJ",locked:"locked-cIIj4HrJ",open:"open-cIIj4HrJ",actionIcon:"actionIcon-cIIj4HrJ",selected:"selected-cIIj4HrJ",codeIcon:"codeIcon-cIIj4HrJ",solutionIcon:"solutionIcon-cIIj4HrJ"}},60430:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",container:"container-WeNdU0sq",selected:"selected-WeNdU0sq",disabled:"disabled-WeNdU0sq",favorite:"favorite-WeNdU0sq",highlighted:"highlighted-WeNdU0sq",light:"light-WeNdU0sq","highlight-animation-theme-light":"highlight-animation-theme-light-WeNdU0sq",dark:"dark-WeNdU0sq",
|
||||
"highlight-animation-theme-dark":"highlight-animation-theme-dark-WeNdU0sq",badge:"badge-WeNdU0sq",main:"main-WeNdU0sq",paddingLeft:"paddingLeft-WeNdU0sq",author:"author-WeNdU0sq",likes:"likes-WeNdU0sq",actions:"actions-WeNdU0sq",isActive:"isActive-WeNdU0sq"}},60030:e=>{e.exports={container:"container-hrZZtP0J"}},4567:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",dialog:"dialog-I087YV6b",dialogLibrary:"dialogLibrary-I087YV6b",contentContainer:"contentContainer-I087YV6b",listContainer:"listContainer-I087YV6b",scroll:"scroll-I087YV6b",sidebarContainer:"sidebarContainer-I087YV6b",noContentBlock:"noContentBlock-I087YV6b",tabWithHint:"tabWithHint-I087YV6b",solution:"solution-I087YV6b"}},70722:e=>{e.exports={container:"container-QcG0kDOU",image:"image-QcG0kDOU",title:"title-QcG0kDOU",description:"description-QcG0kDOU",button:"button-QcG0kDOU"}},14877:e=>{e.exports={favorite:"favorite-_FRQhM5Y",hovered:"hovered-_FRQhM5Y",disabled:"disabled-_FRQhM5Y",active:"active-_FRQhM5Y",checked:"checked-_FRQhM5Y"}},75623:e=>{e.exports={highlighted:"highlighted-cwp8YRo6"}},94720:(e,t,n)=>{"use strict";n.d(t,{Button:()=>C});var r=n(50959),i=n(97754),o=n(95604),a=n(9745),s=n(1414),l=n.n(s);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text";function d(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:a=!1,icon:s,startIcon:d,endIcon:u,iconOnly:h=!1,className:p,isGrouped:m,cellState:v,disablePositionAdjustment:f=!1,primaryText:g,secondaryText:y,isAnchor:_=!1}=e,b=function(e){let t="";return 0!==e&&(1&e&&(t=i(t,l()["no-corner-top-left"])),2&e&&(t=i(t,l()["no-corner-top-right"])),4&e&&(t=i(t,l()["no-corner-bottom-right"])),8&e&&(t=i(t,l()["no-corner-bottom-left"]))),t}((0,o.getGroupCellRemoveRoundBorders)(v));return i(p,l().button,l()[`size-${n}`],l()[`color-${t}`],l()[`variant-${r}`],a&&l().stretch,(s||d)&&l()["with-start-icon"],u&&l()["with-end-icon"],h&&l()["icon-only"],b,m&&l().grouped,m&&!f&&l()["adjust-position"],m&&v.isTop&&l()["first-row"],m&&v.isLeft&&l()["first-col"],g&&y&&l()["multiline-content"],_&&l().link,c)}function u(e){const{startIcon:t,icon:n,iconOnly:o,children:s,endIcon:d,primaryText:u,secondaryText:h}=e,p=null!=t?t:n,m=!(t||n||d||o)&&!s&&u&&h;return r.createElement(r.Fragment,null,p&&r.createElement(a.Icon,{icon:p,className:l()["start-icon-wrap"]}),s&&r.createElement("span",{className:l().content},s),d&&!o&&r.createElement(a.Icon,{icon:d,className:l()["end-icon-wrap"]}),m&&function(e){return e.primaryText&&e.secondaryText&&r.createElement("div",{className:i(l()["text-wrap"],c)},r.createElement("span",{className:l()["primary-text"]}," ",e.primaryText," "),"string"==typeof e.secondaryText?r.createElement("span",{className:l()["secondary-text"]}," ",e.secondaryText," "):r.createElement("span",{className:l()["secondary-text"]},r.createElement("span",null,e.secondaryText.firstLine),r.createElement("span",null,e.secondaryText.secondLine)))}(e))}var h=n(34094),p=n(86332),m=n(90186);function v(e){
|
||||
const{className:t,color:n,variant:r,size:i,stretch:o,animated:a,icon:s,iconOnly:l,startIcon:c,endIcon:d,primaryText:u,secondaryText:h,...p}=e;return{...p,...(0,m.filterDataProps)(e),...(0,m.filterAriaProps)(e)}}function f(e){const{reference:t,tooltipText:n,...i}=e,{isGrouped:o,cellState:a,disablePositionAdjustment:s}=(0,r.useContext)(p.ControlGroupContext),l=d({...i,isGrouped:o,cellState:a,disablePositionAdjustment:s});return r.createElement("button",{...v(i),className:l,ref:t,"data-overflow-tooltip-text":null!=n?n:e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,h.getTextForTooltip)(e.children)},r.createElement(u,{...i}))}function g(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function y(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function _(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function b(e){const{intent:t,size:n,appearance:r,useFullWidth:i,icon:o,...a}=e;return{...a,color:y(t),size:_(n),variant:g(r),stretch:i,startIcon:o}}function C(e){return r.createElement(f,{...b(e)})}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>r});const r=n(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function r(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>r})},27267:(e,t,n)=>{"use strict";function r(e,t,n,r,i){function o(i){if(e>i.timeStamp)return;const o=i.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===r&&(t.contains(o)||n(i))}return i.click&&r.addEventListener("click",o,!1),i.mouseDown&&r.addEventListener("mousedown",o,!1),i.touchEnd&&r.addEventListener("touchend",o,!1),i.touchStart&&r.addEventListener("touchstart",o,!1),()=>{r.removeEventListener("click",o,!1),r.removeEventListener("mousedown",o,!1),r.removeEventListener("touchend",o,!1),r.removeEventListener("touchstart",o,!1)}}n.d(t,{addOutsideEventListener:()=>r})},36383:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>o});var r=n(50959),i=n(27267);function o(e){const{click:t,mouseDown:n,touchEnd:o,touchStart:a,handler:s,reference:l,ownerDocument:c=document}=e,d=(0,r.useRef)(null),u=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)((()=>{const e={click:t,mouseDown:n,touchEnd:o,touchStart:a},r=l?l.current:d.current;return(0,i.addOutsideEventListener)(u.current,r,s,c,e)}),[t,n,o,a,s]),l||d}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>i});var r=n(50959);const i=r.forwardRef(((e,t)=>{const{icon:n="",...i}=e;return r.createElement("span",{...i,ref:t,dangerouslySetInnerHTML:{__html:n}})}))},99663:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>i,SlotContext:()=>o});var r=n(50959);class i extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}
|
||||
"highlight-animation-theme-dark":"highlight-animation-theme-dark-WeNdU0sq",badge:"badge-WeNdU0sq",main:"main-WeNdU0sq",paddingLeft:"paddingLeft-WeNdU0sq",author:"author-WeNdU0sq",likes:"likes-WeNdU0sq",actions:"actions-WeNdU0sq",isActive:"isActive-WeNdU0sq"}},60030:e=>{e.exports={container:"container-hrZZtP0J"}},4567:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",dialog:"dialog-I087YV6b",dialogLibrary:"dialogLibrary-I087YV6b",contentContainer:"contentContainer-I087YV6b",listContainer:"listContainer-I087YV6b",scroll:"scroll-I087YV6b",sidebarContainer:"sidebarContainer-I087YV6b",noContentBlock:"noContentBlock-I087YV6b",tabWithHint:"tabWithHint-I087YV6b",solution:"solution-I087YV6b"}},70722:e=>{e.exports={container:"container-QcG0kDOU",image:"image-QcG0kDOU",title:"title-QcG0kDOU",description:"description-QcG0kDOU",button:"button-QcG0kDOU"}},14877:e=>{e.exports={favorite:"favorite-_FRQhM5Y",hovered:"hovered-_FRQhM5Y",disabled:"disabled-_FRQhM5Y",active:"active-_FRQhM5Y",checked:"checked-_FRQhM5Y"}},75623:e=>{e.exports={highlighted:"highlighted-cwp8YRo6"}},94720:(e,t,n)=>{"use strict";n.d(t,{Button:()=>C});var r=n(50959),i=n(97754),o=n(95604),a=n(9745),s=n(1414),l=n.n(s);const c="apply-overflow-tooltip apply-overflow-tooltip--check-children-recursively apply-overflow-tooltip--allow-text";function d(e){const{color:t="brand",size:n="medium",variant:r="primary",stretch:a=!1,icon:s,startIcon:d,endIcon:u,iconOnly:h=!1,className:m,isGrouped:p,cellState:v,disablePositionAdjustment:f=!1,primaryText:g,secondaryText:y,isAnchor:_=!1}=e,b=function(e){let t="";return 0!==e&&(1&e&&(t=i(t,l()["no-corner-top-left"])),2&e&&(t=i(t,l()["no-corner-top-right"])),4&e&&(t=i(t,l()["no-corner-bottom-right"])),8&e&&(t=i(t,l()["no-corner-bottom-left"]))),t}((0,o.getGroupCellRemoveRoundBorders)(v));return i(m,l().button,l()[`size-${n}`],l()[`color-${t}`],l()[`variant-${r}`],a&&l().stretch,(s||d)&&l()["with-start-icon"],u&&l()["with-end-icon"],h&&l()["icon-only"],b,p&&l().grouped,p&&!f&&l()["adjust-position"],p&&v.isTop&&l()["first-row"],p&&v.isLeft&&l()["first-col"],g&&y&&l()["multiline-content"],_&&l().link,c)}function u(e){const{startIcon:t,icon:n,iconOnly:o,children:s,endIcon:d,primaryText:u,secondaryText:h}=e,m=null!=t?t:n,p=!(t||n||d||o)&&!s&&u&&h;return r.createElement(r.Fragment,null,m&&r.createElement(a.Icon,{icon:m,className:l()["start-icon-wrap"]}),s&&r.createElement("span",{className:l().content},s),d&&!o&&r.createElement(a.Icon,{icon:d,className:l()["end-icon-wrap"]}),p&&function(e){return e.primaryText&&e.secondaryText&&r.createElement("div",{className:i(l()["text-wrap"],c)},r.createElement("span",{className:l()["primary-text"]}," ",e.primaryText," "),"string"==typeof e.secondaryText?r.createElement("span",{className:l()["secondary-text"]}," ",e.secondaryText," "):r.createElement("span",{className:l()["secondary-text"]},r.createElement("span",null,e.secondaryText.firstLine),r.createElement("span",null,e.secondaryText.secondLine)))}(e))}var h=n(34094),m=n(86332),p=n(90186);function v(e){
|
||||
const{className:t,color:n,variant:r,size:i,stretch:o,animated:a,icon:s,iconOnly:l,startIcon:c,endIcon:d,primaryText:u,secondaryText:h,...m}=e;return{...m,...(0,p.filterDataProps)(e),...(0,p.filterAriaProps)(e)}}function f(e){const{reference:t,tooltipText:n,...i}=e,{isGrouped:o,cellState:a,disablePositionAdjustment:s}=(0,r.useContext)(m.ControlGroupContext),l=d({...i,isGrouped:o,cellState:a,disablePositionAdjustment:s});return r.createElement("button",{...v(i),className:l,ref:t,"data-overflow-tooltip-text":null!=n?n:e.primaryText?[e.primaryText,e.secondaryText].join(" "):(0,h.getTextForTooltip)(e.children)},r.createElement(u,{...i}))}function g(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function y(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function _(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function b(e){const{intent:t,size:n,appearance:r,useFullWidth:i,icon:o,...a}=e;return{...a,color:y(t),size:_(n),variant:g(r),stretch:i,startIcon:o}}function C(e){return r.createElement(f,{...b(e)})}},86332:(e,t,n)=>{"use strict";n.d(t,{ControlGroupContext:()=>r});const r=n(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function r(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>r})},27267:(e,t,n)=>{"use strict";function r(e,t,n,r,i){function o(i){if(e>i.timeStamp)return;const o=i.target;void 0!==n&&null!==t&&null!==o&&o.ownerDocument===r&&(t.contains(o)||n(i))}return i.click&&r.addEventListener("click",o,!1),i.mouseDown&&r.addEventListener("mousedown",o,!1),i.touchEnd&&r.addEventListener("touchend",o,!1),i.touchStart&&r.addEventListener("touchstart",o,!1),()=>{r.removeEventListener("click",o,!1),r.removeEventListener("mousedown",o,!1),r.removeEventListener("touchend",o,!1),r.removeEventListener("touchstart",o,!1)}}n.d(t,{addOutsideEventListener:()=>r})},36383:(e,t,n)=>{"use strict";n.d(t,{useOutsideEvent:()=>o});var r=n(50959),i=n(27267);function o(e){const{click:t,mouseDown:n,touchEnd:o,touchStart:a,handler:s,reference:l,ownerDocument:c=document}=e,d=(0,r.useRef)(null),u=(0,r.useRef)(new CustomEvent("timestamp").timeStamp);return(0,r.useLayoutEffect)((()=>{const e={click:t,mouseDown:n,touchEnd:o,touchStart:a},r=l?l.current:d.current;return(0,i.addOutsideEventListener)(u.current,r,s,c,e)}),[t,n,o,a,s]),l||d}},9745:(e,t,n)=>{"use strict";n.d(t,{Icon:()=>i});var r=n(50959);const i=r.forwardRef(((e,t)=>{const{icon:n="",...i}=e;return r.createElement("span",{...i,ref:t,dangerouslySetInnerHTML:{__html:n}})}))},99663:(e,t,n)=>{"use strict";n.d(t,{Slot:()=>i,SlotContext:()=>o});var r=n(50959);class i extends r.Component{shouldComponentUpdate(){return!1}render(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}
|
||||
const o=r.createContext(null)},90186:(e,t,n)=>{"use strict";function r(e){return o(e,a)}function i(e){return o(e,s)}function o(e,t){const n=Object.entries(e).filter(t),r={};for(const[e,t]of n)r[e]=t;return r}function a(e){const[t,n]=e;return 0===t.indexOf("data-")&&"string"==typeof n}function s(e){return 0===e[0].indexOf("aria-")}n.d(t,{filterAriaProps:()=>i,filterDataProps:()=>r,filterProps:()=>o,isAriaAttribute:()=>s,isDataAttribute:()=>a})},34094:(e,t,n)=>{"use strict";n.d(t,{getTextForTooltip:()=>a});var r=n(50959);const i=e=>(0,r.isValidElement)(e)&&Boolean(e.props.children),o=e=>null==e||"boolean"==typeof e||"{}"===JSON.stringify(e)?"":e.toString()+" ",a=e=>Array.isArray(e)||(0,r.isValidElement)(e)?r.Children.toArray(e).reduce(((e,t)=>{let n="";return n=(0,r.isValidElement)(t)&&i(t)?a(t.props.children):(0,r.isValidElement)(t)&&!i(t)?"":o(t),e.concat(n)}),"").trim():o(e)},67961:(e,t,n)=>{"use strict";n.d(t,{OverlapManager:()=>o,getRootOverlapManager:()=>s});var r=n(50151);class i{constructor(){this._storage=[]}add(e){this._storage.push(e)}remove(e){this._storage=this._storage.filter((t=>e!==t))}has(e){return this._storage.includes(e)}getItems(){return this._storage}}class o{constructor(e=document){this._storage=new i,this._windows=new Map,this._index=0,this._document=e,this._container=e.createDocumentFragment()}setContainer(e){const t=this._container,n=null===e?this._document.createDocumentFragment():e;!function(e,t){Array.from(e.childNodes).forEach((e=>{e.nodeType===Node.ELEMENT_NODE&&t.appendChild(e)}))}(t,n),this._container=n}registerWindow(e){this._storage.has(e)||this._storage.add(e)}ensureWindow(e,t={position:"fixed",direction:"normal"}){const n=this._windows.get(e);if(void 0!==n)return n;this.registerWindow(e);const r=this._document.createElement("div");if(r.style.position=t.position,r.style.zIndex=this._index.toString(),r.dataset.id=e,void 0!==t.index){const e=this._container.childNodes.length;if(t.index>=e)this._container.appendChild(r);else if(t.index<=0)this._container.insertBefore(r,this._container.firstChild);else{const e=this._container.childNodes[t.index];this._container.insertBefore(r,e)}}else"reverse"===t.direction?this._container.insertBefore(r,this._container.firstChild):this._container.appendChild(r);return this._windows.set(e,r),++this._index,r}unregisterWindow(e){this._storage.remove(e);const t=this._windows.get(e);void 0!==t&&(null!==t.parentElement&&t.parentElement.removeChild(t),this._windows.delete(e))}getZindex(e){const t=this.ensureWindow(e);return parseInt(t.style.zIndex||"0")}moveToTop(e){if(this.getZindex(e)!==this._index){this.ensureWindow(e).style.zIndex=(++this._index).toString()}}removeWindow(e){this.unregisterWindow(e)}}const a=new WeakMap;function s(e=document){const t=e.getElementById("overlap-manager-root");if(null!==t)return(0,r.ensureDefined)(a.get(t));{const t=new o(e),n=function(e){const t=e.createElement("div");return t.style.position="absolute",t.style.zIndex=150..toString(),t.style.top="0px",t.style.left="0px",t.id="overlap-manager-root",t}(e);return a.set(n,t),
|
||||
t.setContainer(n),e.body.appendChild(n),t}}},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar",document.body.appendChild(n);const i=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const a=o.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=i-a}return e}})();function i(e,t,n){null!==e&&e.style.setProperty(t,n)}function o(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(o(e,t))}let s=0,l=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++s){const e=o(t,"overflow"),s=a(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(i(n,"right",`${r()}px`),t.style.paddingRight=`${s+r()}px`,l=!0),t.classList.add("i-no-scroll")}else if(!e&&s>0&&0==--s&&(t.classList.remove("i-no-scroll"),l)){i(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=r()),t.style.paddingRight=(e<0?0:e)+"px",l=!1}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>i});var r=n(88803);const i={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>d});var r=n(50959),i=n(97754),o=n.n(i),a=n(11542),s=n(9745),l=n(69859),c=n(40281);function d(e){const{children:t,renderInput:i,onCancel:d,containerClassName:h,inputContainerClassName:p,iconClassName:m,...v}=e;return r.createElement("div",{className:o()(c.container,h)},r.createElement("div",{className:o()(c.inputContainer,p,d&&c.withCancel)},i||r.createElement(u,{...v})),t,r.createElement(s.Icon,{className:o()(c.icon,m),icon:l}),d&&r.createElement("div",{className:c.cancel,onClick:d},a.t(null,void 0,n(20036))))}function u(e){const{className:t,reference:n,value:i,onChange:a,onFocus:s,onBlur:l,onKeyDown:d,onSelect:u,placeholder:h,...p}=e;return r.createElement("input",{...p,ref:n,type:"text",className:o()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:i,onChange:a,onFocus:s,onBlur:l,onSelect:u,onKeyDown:d})}},22265:(e,t,n)=>{"use strict";n.d(t,{DialogSidebarContainer:()=>d,DialogSidebarItem:()=>h,DialogSidebarWrapper:()=>u});var r=n(50959),i=n(97754),o=n.n(i),a=n(9745),s=n(65631),l=n(68648),c=n(54829);function d(e){const{mode:t,className:n,...i}=e,{isMobile:a,isTablet:l}=(0,s.getSidebarMode)(t),d=o()(c.container,l&&c.isTablet,a&&c.isMobile,n);return r.createElement("div",{...i,className:d,"data-role":"dialog-sidebar"})}function u(e){return r.createElement("div",{className:c.wrapper,...e})}function h(e){const{mode:t,title:n,icon:i,isActive:d,onClick:u,tag:h="div",reference:p,className:m,...v}=e,{isMobile:f,isTablet:g}=(0,s.getSidebarMode)(t),y=d?null==i?void 0:i.active:null==i?void 0:i.default;return r.createElement(h,{...v,ref:p,className:o()(c.tab,g&&c.isTablet,f&&c.isMobile,d&&c.active,m),
|
||||
onClick:u},i&&r.createElement(a.Icon,{className:c.icon,icon:y}),!g&&r.createElement("span",{className:o()(c.title,!i&&c.withoutIcon)},r.createElement("span",{className:c.titleText},n),f&&r.createElement(a.Icon,{className:c.nested,icon:l})))}},65631:(e,t,n)=>{"use strict";function r(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}n.d(t,{getSidebarMode:()=>r})},57979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IndicatorsLibraryContainer:()=>de});var r=n(50959),i=n(962),o=n(11542),a=n(88348);const s=o.t(null,void 0,n(44463));var l=n(42856),c=n(14483),d=n(92249);function u(e,t){const n=e.title.toLowerCase(),r=t.title.toLowerCase();return n<r?-1:n>r?1:0}const h={earning:new RegExp("EPS"),earnings:new RegExp("EPS"),"trailing twelve months":new RegExp("TTM")};function p(e){var t;const{id:r,description:i,shortDescription:a,description_localized:d,is_hidden_study:u,version:h,extra:p,tags:v}=e,f=c.enabled("graying_disabled_tools_enabled")&&(null===(t=window.ChartApiInstance)||void 0===t?void 0:t.studiesAccessController.isToolGrayed(i));return{id:r,title:d||o.t(i,{context:"study"},n(68716)),shortDescription:a,shortTitle:a,isStrategy:l.StudyMetaInfo.isScriptStrategy(e),isHidden:u,isNew:null==p?void 0:p.isNew,isUpdated:null==p?void 0:p.isUpdated,isBeta:null==p?void 0:p.isBeta,isPro:null==p?void 0:p.isPro,proBadgeTitle:s,isFundamental:!1,isOverlay:e.is_price_study,studyData:{id:r,version:h,descriptor:{type:"java",studyId:e.id},packageName:m(r,p)},isGrayed:f,tags:v}}function m(e,t){return(null==t?void 0:t.isChartPattern)?"tv-chart_patterns":(null==t?void 0:t.isAuto)?"auto-java":l.StudyMetaInfo.getPackageName(e)}var v=n(97754),f=n.n(v),g=n(63932),y=n(35057),_=n(49483),b=n(69654),C=n(22265),x=n(60030);function k(e){const{reference:t,className:n,...i}=e;return r.createElement("div",{ref:t,className:f()(x.container,n),...i,"data-role":"dialog-content"})}var E=n(95988);function w(e){const{children:t,className:n,disabled:i}=e;return r.createElement("span",{className:f()(E.title,i&&E.disabled,n)},t)}const I=r.createContext(null);var P=n(24637),N=n(77975),S=n(45345),D=n(26843),R=n(36189),T=n(68335),B=n(60430);function L(e){const t=(0,r.useContext)(I),{style:i,layoutMode:a,item:s,query:l,regExpRules:c,isBeta:d,isNew:u,isUpdated:h,isSelected:p,isHighlighted:m,reference:v,onClick:g,renderActions:y,isPro:_,proBadgeTitle:b,onItemActionsClick:C,favoriteClickHandler:x,hideEP:k}=e,{isFavorite:E,isLocked:T,public:L,editorsPick:F}=s,M=void 0!==E,j=z(g,s),W=(0,r.useCallback)((e=>{e.stopPropagation(),null==C||C()}),[C]),A=(0,r.useCallback)((e=>{if(x)return null==C||C(),void x(e);if(null==t?void 0:t.toggleFavorite){z((e=>{null==C||C(),t.toggleFavorite(e)}),s)(e)}}),[x,C,null==t?void 0:t.toggleFavorite]),H=(0,N.useWatchedValueReadonly)({watchedValue:S.watchedTheme})===D.StdTheme.Dark?B.dark:B.light,Z=f()(B.container,s.isGrayed&&B.disabled,p&&B.selected,m&&B.highlighted,m&&H);return r.createElement("div",{ref:v,className:Z,onClick:j,style:i,"data-role":"list-item","data-disabled":s.isGrayed,"data-title":s.title,"data-id":s.id},r.createElement("div",{
|
||||
className:f()(B.main,!M&&B.paddingLeft)},M&&r.createElement(R.FavoriteButton,{className:f()(B.favorite,E&&B.isActive),isFilled:E,onClick:A}),r.createElement(w,{disabled:s.isGrayed},r.createElement(P.HighlightedText,{queryString:l,rules:c,text:s.title})),!1,d&&r.createElement(BadgeIndicator,{type:"beta",className:B.badge}),u&&r.createElement(BadgeIndicator,{type:"new",className:B.badge}),h&&r.createElement(BadgeIndicator,{type:"updated",className:B.badge}),Boolean(F&&!k)&&r.createElement(BadgeIndicator,{type:"ep",className:B.badge,tooltip:o.t(null,void 0,n(92490))}),!1),L&&r.createElement("a",{href:L.authorLink,className:B.author,target:"_blank",onClick:W},L.authorName),"mobile"!==a&&L&&r.createElement("span",{className:B.likes},L.likesCount),!1)}function z(e,t){return n=>{const r=0===(0,T.modifiersFromEvent)(n)&&0===n.button;!n.defaultPrevented&&e&&r&&(n.preventDefault(),e(t))}}var F=n(61098);function M(e){const{title:t,type:n,className:i}=e;return r.createElement("h3",{className:f()(F.title,"Small"===n&&F.small,"Normal"===n&&F.normal,"Large"===n&&F.large,i)},t)}var j=n(76797);function W(e){const{style:t,children:n}=e;return r.createElement("div",{style:t,className:j.container},n)}var A=n(9745),H=n(94720),Z=n(70722);function q(e){const{className:t,icon:n,title:i,description:o,buttonText:a,buttonAction:s}=e;return r.createElement("div",{className:f()(Z.container,t)},n&&r.createElement(A.Icon,{icon:n,className:Z.image}),i&&r.createElement("h3",{className:Z.title},i),o&&r.createElement("p",{className:Z.description},o),a&&s&&r.createElement(H.Button,{onClick:s,className:Z.button},a))}function O(e){const[t,n]=(0,r.useState)(null);function i(e){return e.findIndex((e=>(null==t?void 0:t.id)===e.id))}return[t,n,function(){n(function(){var n;const r=i(e),o=r===e.length-1;return null===t||-1===r?null!==(n=e[0])&&void 0!==n?n:null:o?e[r]:e[r+1]}())},function(){n(function(){var n;const r=i(e);return null===t||0===r||-1===r?null!==(n=e[0])&&void 0!==n?n:null:e[r-1]}())}]}var U=n(19785),G=n(4567),V=n(57898),Y=n(56840);const K=new V.Delegate,J=new V.Delegate,X=new V.Delegate;let $=[];function Q(e){return-1===te(e)?(function(e){!ee(e)&&($.push(e),re(),K.fire(e))}(e),!0):(function(e){const t=te(e);-1!==t&&($.splice(t,1),re(),J.fire(e))}(e),!1)}function ee(e){return-1!==te(e)}function te(e){return $.indexOf(e)}function ne(){var e,t;$=[];const n=Boolean(void 0===(0,Y.getValue)("chart.favoriteLibraryIndicators")),r=(0,Y.getJSON)("chart.favoriteLibraryIndicators",[]);if($.push(...r),0===$.length&&n&&"undefined"!=typeof window){const n=JSON.parse(null!==(t=null===(e=window.urlParams)||void 0===e?void 0:e.favorites)&&void 0!==t?t:"{}").indicators;n&&Array.isArray(n)&&$.push(...n)}X.fire()}function re(){const e=$.slice();(0,Y.setJSON)("chart.favoriteLibraryIndicators",e)}function ie(e){const{reference:t,data:i,isOpened:a,onClose:s,applyStudy:l,shouldReturnFocus:c}=e,[d,u]=(0,r.useState)(""),p=(0,r.useMemo)((()=>(0,U.createRegExpList)(d,h)),[d]),m=(0,r.useMemo)((()=>d?(0,U.rankedSearch)({data:i,rules:p,queryString:d,
|
||||
primaryKey:"shortDescription",secondaryKey:"title",optionalPrimaryKey:"shortTitle",tertiaryKey:"tags"}):i),[d,p,i]),{highlightedItem:v,selectedItem:x,selectedNodeReference:E,scrollContainerRef:w,searchInputRef:I,onClickStudy:P,handleKeyDown:N}=function(e,t,n,i){let o=0;const[a,s]=(0,r.useState)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(null),[d,u,h,p]=O(t),m=(0,r.useRef)(null);return(0,r.useEffect)((()=>{e?v(0):u(null)}),[e]),(0,r.useEffect)((()=>{void 0!==i&&(v(0),u(null))}),[i]),(0,r.useEffect)((()=>(a&&(o=setTimeout((()=>{s(null)}),1500)),()=>{clearInterval(o)})),[a]),{highlightedItem:a,scrollContainerRef:l,selectedNodeReference:c,selectedItem:d,searchInputRef:m,onClickStudy:function(e){n&&(n(e),u(e),s(e))},handleKeyDown:function(e){const[t,r]=function(e,t){if(null===e.current||null===t.current)return[0,0];const n=e.current.getBoundingClientRect(),r=t.current.getBoundingClientRect(),{height:i}=n,o=n.top-r.top,a=n.bottom-r.bottom+i<0?0:i,s=o-i>0?0:i,{scrollTop:l}=t.current;return[l-s,l+a]}(c,l);if(40===(0,T.hashFromEvent)(e)&&(e.preventDefault(),h(),v(r)),38===(0,T.hashFromEvent)(e)&&(e.preventDefault(),p(),v(t)),13===(0,T.hashFromEvent)(e)&&d){if(!n)return;n(d),s(d)}}};function v(e){null!==l.current&&l.current.scrollTo&&l.current.scrollTo(0,e)}}(a,m,l),S=""===d&&!m.length;return(0,r.useEffect)((()=>{var e;a||u(""),_.CheckMobile.any()||null===(e=I.current)||void 0===e||e.focus()}),[a]),r.createElement(y.AdaptivePopupDialog,{isOpened:a,onClose:s,onClickOutside:s,className:f()(G.dialogLibrary),render:function(){return r.createElement(r.Fragment,null,r.createElement(b.DialogSearch,{reference:I,placeholder:o.t(null,void 0,n(52298)),onChange:D,onFocus:R}),r.createElement(C.DialogSidebarWrapper,null,r.createElement(k,{reference:w,className:G.scroll},S?r.createElement(g.Spinner,null):m.length?r.createElement(r.Fragment,null,r.createElement(W,null,r.createElement(M,{title:o.t(null,void 0,n(15491))})),m.slice().sort(oe).map((e=>{const t=(null==x?void 0:x.id)===e.id;return r.createElement(L,{key:e.id,item:e,onClick:()=>P(e),query:d,regExpRules:p,reference:t?E:void 0,isSelected:(null==x?void 0:x.id)===e.id,isHighlighted:(null==v?void 0:v.id)===e.id,favoriteClickHandler:t=>{t.stopPropagation(),Q(e.title)}})}))):r.createElement(q,{className:G.noContentBlock,description:o.t(null,void 0,n(53170))}))))},title:o.t(null,void 0,n(61142)),dataName:"indicators-dialog",onKeyDown:N,shouldReturnFocus:c,ref:t});function D(e){u(e.target.value)}function R(){var e;d.length>0&&(null===(e=I.current)||void 0===e||e.select())}}function oe(e,t){return e.isFavorite===t.isFavorite?0:e.isFavorite?-1:1}ne(),Y.onSync.subscribe(null,ne);var ae=n(76422),se=n(74970),le=n(97145);function ce(e,t){return e[t]||[]}class de extends class{constructor(e){this._searchInputRef=r.createRef(),this._dialog=r.createRef(),this._visibility=new le.WatchedValue(!1),this._container=document.createElement("div"),this._isForceRender=!1,this._parentSources=[],this._isDestroyed=!1,this._deepFundamentalsHistoryNotificationHasBeenShown=!1,
|
||||
this._showDeepFundamentalsHistoryNotification=()=>{},this._chartWidgetCollection=e}isDestroyed(){return this._isDestroyed}visible(){return this._visibility.readonly()}resetAllStudies(){}updateFavorites(){}open(e,t,n,r,i){this._parentSources=e,this._updateSymbol(),this._setProps({isOpened:!0,shouldReturnFocus:null==i?void 0:i.shouldReturnFocus}),this._visibility.setValue(!0),ae.emit("indicators_dialog")}show(e){this.open([],void 0,void 0,void 0,e)}hide(){this._parentSources=[],this._setProps({isOpened:!1}),this._visibility.setValue(!1)}destroy(){this._isDestroyed=!0,i.unmountComponentAtNode(this._container)}_shouldPreventRender(){return this._isDestroyed||!this._isForceRender&&!this._getProps().value().isOpened}_getRenderData(){return{props:this._getProps().value(),container:this._getContainer()}}_applyStudy(e,t){var n;e.isGrayed?ae.emit("onGrayedObjectClicked",{type:"study",name:e.shortDescription}):(_.CheckMobile.any()||null===(n=this._searchInputRef.current)||void 0===n||n.select(),async function(e,t,n,r,i){const o=e.activeChartWidget.value();if(!o)return null;const{studyData:s}=t;if(!s)return Promise.resolve(null);const l=s.descriptor;if("java"===l.type){const e=(0,d.tryFindStudyLineToolNameByStudyId)(l.studyId);if(null!==e)return a.tool.setValue(e),null}return o.insertStudy(s.descriptor,n,{stubTitle:t.shortDescription,isFundamental:t.isFundamental,isOverlay:t.isOverlay})}(this._chartWidgetCollection,e,this._parentSources,0,this._symbol).then((()=>{var e;window.is_authenticated;_.CheckMobile.any()||(null===document.activeElement||document.activeElement===document.body||null!==this._dialog.current&&this._dialog.current.contains(document.activeElement))&&(null===(e=this._searchInputRef.current)||void 0===e||e.focus())})))}_setProps(e){const t=this._getProps().value(),{isOpened:n}=t;this._isForceRender=n&&"isOpened"in e&&!e.isOpened;const r={...t,...e};this._getProps().setValue(r)}_requestBuiltInJavaStudies(){return(0,se.studyMetaInfoRepository)().findAllJavaStudies()}_focus(){var e;this._getProps().value().isOpened&&(null===(e=this._dialog.current)||void 0===e||e.focus())}_getContainer(){return this._container}_getDialog(){return this._dialog}_getSymbol(){return this._symbol}_updateSymbol(){this._symbol=void 0}}{constructor(e,t){super(e),this._options={onWidget:!1},this._indicatorData=[],t&&(this._options=t),this._props=new le.WatchedValue({data:[],applyStudy:this._applyStudy.bind(this),isOpened:!1,reference:this._getDialog(),onClose:this.hide.bind(this)}),this._getProps().subscribe(this._render.bind(this)),this._init()}_getProps(){return this._props}async _init(){const e=function(e){const t={};return e.forEach((e=>{const{studyData:n}=e;if(!n)return;const{packageName:r}=n;r in t?t[r].push(e):t[r]=[e]})),t}(function(e,t=!0){return e.filter((e=>{const n=!!t||!function(e){return e.isStrategy}(e);return!e.isHidden&&n}))}((await this._requestBuiltInJavaStudies()).map(p)));this._indicatorData=await async function(e,t){let n={...t}
|
||||
;return[...ce(n,"tv-basicstudies"),...ce(n,"Script$STD"),...ce(n,"tv-volumebyprice")].filter((e=>!e.isStrategy)).sort(u)}(this._options.onWidget,e),this._setFavorites(),this._setProps({data:this._indicatorData}),K.subscribe(null,(()=>this._refreshFavorites())),J.subscribe(null,(()=>this._refreshFavorites()))}_setFavorites(){c.enabled("items_favoriting")&&this._indicatorData.forEach((e=>{e.isFavorite=ee(e.title)}))}_refreshFavorites(){this._setFavorites(),this._setProps({data:this._indicatorData})}_render(){if(this._shouldPreventRender())return;const{props:e,container:t}=this._getRenderData();i.render(r.createElement(ie,{...e}),t)}}},36189:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>u});var r=n(11542),i=n(50959),o=n(97754),a=n(9745),s=n(39146),l=n(48010),c=n(14877);const d={add:r.t(null,void 0,n(44629)),remove:r.t(null,void 0,n(72482))};function u(e){const{className:t,isFilled:n,isActive:r,onClick:u,...h}=e;return i.createElement(a.Icon,{...h,className:o(c.favorite,"apply-common-tooltip",n&&c.checked,r&&c.active,t),icon:n?s:l,onClick:u,title:n?d.remove:d.add})}},19785:(e,t,n)=>{"use strict";n.d(t,{createRegExpList:()=>o,getHighlightedChars:()=>a,rankedSearch:()=>i});var r=n(1722);function i(e){const{data:t,rules:n,queryString:i,isPreventedFromFiltering:o,primaryKey:a,secondaryKey:s=a,optionalPrimaryKey:l,tertiaryKey:c}=e;return t.map((e=>{const t=l&&e[l]?e[l]:e[a],o=e[s],d=c&&e[c];let u,h=0;return n.forEach((e=>{var n,a,s,l,c;const{re:p,fullMatch:m}=e;if(p.lastIndex=0,(0,r.isString)(t)&&t&&t.toLowerCase()===i.toLowerCase())return h=4,void(u=null===(n=t.match(m))||void 0===n?void 0:n.index);if((0,r.isString)(t)&&m.test(t))return h=3,void(u=null===(a=t.match(m))||void 0===a?void 0:a.index);if((0,r.isString)(o)&&m.test(o))return h=2,void(u=null===(s=o.match(m))||void 0===s?void 0:s.index);if((0,r.isString)(o)&&p.test(o))return h=2,void(u=null===(l=o.match(p))||void 0===l?void 0:l.index);if(Array.isArray(d))for(const e of d)if(m.test(e))return h=1,void(u=null===(c=e.match(m))||void 0===c?void 0:c.index)})),{matchPriority:h,matchIndex:u,item:e}})).filter((e=>o||e.matchPriority)).sort(((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0})).map((({item:e})=>e))}function o(e,t){const n=[],r=e.toLowerCase(),i=e.split("").map(((e,t)=>`(${0!==t?`[/\\s-]${s(e)}`:s(e)})`)).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${s(e)})`,"i"),re:new RegExp(`^${i}`,"i"),reserveRe:new RegExp(i,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function a(e,t,n){const r=[];return e&&n?(n.forEach((e=>{const{fullMatch:n,re:i,reserveRe:o}=e;n.lastIndex=0,i.lastIndex=0;const a=n.exec(t),s=a||i.exec(t)||o&&o.exec(t);if(e.fuzzyHighlight=!a,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t<s.length;t++){const n=s[t],i=s[t].length;if(t%2){
|
||||
const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");r[t?e+1:e]=!0}e+=i}}else for(let e=0;e<s[0].length;e++)r[s.index+e]=!0})),r):r}function s(e){return e.replace(/[!-/[-^{-}?]/g,"\\$&")}},24637:(e,t,n)=>{"use strict";n.d(t,{HighlightedText:()=>s});var r=n(50959),i=n(97754),o=n(19785),a=n(75623);function s(e){const{queryString:t,rules:n,text:s,className:l}=e,c=(0,r.useMemo)((()=>(0,o.getHighlightedChars)(t,s,n)),[t,n,s]);return r.createElement(r.Fragment,null,c.length?s.split("").map(((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:i(a.highlighted,l)},e):r.createElement("span",null,e)))):s)}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>i});var r=n(50959);const i=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,i="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,a]=(0,r.useState)(n?n.value():i);return(t?r.useLayoutEffect:r.useEffect)((()=>{if(n){a(n.value());const e=e=>a(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}}),[n]),o}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>i});var r=n(50959);class i extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},42842:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var r=n(50959),i=n(962),o=n(25931),a=n(67961),s=n(99663);class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,o.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",this.props.className&&e.classList.add(this.props.className),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),i.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=s.SlotContext;const c=r.createContext(null)},63932:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>a});var r=n(50959),i=n(97754),o=n(58096);n(83135);function a(e){const t=i(e.className,"tv-spinner","tv-spinner--shown",`tv-spinner--size_${o.spinnerSizeMap[e.size||o.DEFAULT_SIZE]}`);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},68648:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentcolor" stroke-width="1.3" d="M12 9l5 5-5 5"/></svg>'},69859:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},39146:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},48010:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'},25931:(e,t,n)=>{"use strict";n.d(t,{nanoid:()=>r});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")},20036:e=>{e.exports={ar:["إلغاء"],ca_ES:["Cancel·la"],cs:["Zrušit"],de:["Abbrechen"],el:["Άκυρο"],en:"Cancel",es:["Cancelar"],fa:["لغو"],fr:["Annuler"],he_IL:["ביטול"],hu_HU:["Törlés"],id_ID:["Batal"],it:["Annulla"],ja:["キャンセル"],ko:["취소"],ms_MY:["Batal"],nl_NL:["Annuleren"],pl:["Anuluj"],pt:["Cancelar"],ro:"Cancel",ru:["Отмена"],sv:["Avbryt"],th:["ยกเลิก"],tr:["İptal"],vi:["Hủy bỏ"],zh:["取消"],zh_TW:["取消"]}},80395:e=>{e.exports={ar:["إغلاق القائمة"],ca_ES:"Close menu",cs:"Close menu",de:["Menü schließen"],el:"Close menu",en:"Close menu",es:["Cerrar menú"],fa:"Close menu",fr:["Fermer le menu"],he_IL:["סגור תפריט"],hu_HU:"Close menu",id_ID:["Pilih menu"],it:["Chiudere menù"],ja:["メニューを閉じる"],ko:["메뉴 닫기"],ms_MY:["Tutup menu"],nl_NL:"Close menu",pl:["Zamknij menu"],pt:["Fechar menu"],ro:"Close menu",ru:["Закрыть меню"],sv:["Stäng menyn"],th:["ปิดเมนู"],tr:["Menüyü kapat"],vi:["Đóng menu"],zh:["关闭菜单"],zh_TW:["關閉選單"]}},44629:e=>{e.exports={ar:["اضف إلى القائمة التفضيلات"],ca_ES:["Afegeix a preferits"],cs:["Přidat do oblíbených"],de:["Zu Favoriten hinzufügen"],el:["Προσθήκη στα αγαπημένα"],en:"Add to favorites",es:["Añadir a favoritos"],fa:["افزودن به موارد مورد علاقه"],fr:["Ajouter aux favoris"],he_IL:["הוסף למועדפים"],hu_HU:["Hozzáadás kedvencekhez"],id_ID:["Tambah ke daftar favorit"],it:["Aggiungi ai preferiti"],ja:["お気に入りに追加"],ko:["즐겨찾기에 넣기"],ms_MY:["Tambah kepada kegemaran"],nl_NL:["Voeg toe aan favorieten"],pl:["Dodaj do ulubionych"],pt:["Adicionar aos favoritos"],ro:"Add to favorites",ru:["Добавить в избранное"],sv:["Lägg till som favorit"],th:["เพิ่มลงรายการโปรด"],tr:["Favorilere ekle"],vi:["Thêm vào mục yêu thích"],zh:["添加到收藏"],zh_TW:["加入收藏"]}},44463:e=>{e.exports={ar:["متاح لحسابات Pro"],ca_ES:"Available for Pro accounts",cs:"Available for Pro accounts",de:["Erhältlich für Pro-Konten"],el:"Available for Pro accounts",en:"Available for Pro accounts",
|
||||
es:["Disponible para las cuentas Pro"],fa:"Available for Pro accounts",fr:["Disponible pour les comptes Pro"],he_IL:["זמין עבור חשבונות Pro"],hu_HU:"Available for Pro accounts",id_ID:["Tersedia untuk akun Pro"],it:["Disponibile per gli account Pro"],ja:["Proアカウントでご利用いただけます"],ko:["프로 계정에서 사용 가능"],ms_MY:["Tersedia untuk akaun Pro"],nl_NL:"Available for Pro accounts",pl:["Dostępne dla kont Pro"],pt:["Disponível para contas Pro"],ro:"Available for Pro accounts",ru:["Доступно для подписок Pro"],sv:["Tillgängligt för Proabonnenter"],th:["มีให้สำหรับบัญชี Pro"],tr:["Pro hesaplar için kullanılabilir"],vi:["Dành cho các tài khoản Pro"],zh:["适用于Pro账户"],zh_TW:["適用於Pro帳戶"]}},92490:e=>{e.exports={ar:["مختارات المحرر"],ca_ES:["Seleccions dels editors"],cs:"Editors' picks",de:["Editor's Picks"],el:"Editors' picks",en:"Editors' picks",es:["Selecciones de los editores"],fa:"Editors' picks",fr:["Choix de la rédaction"],he_IL:["בחירות העורכים"],hu_HU:"Editors' picks",id_ID:["Pilihan editor"],it:["Selezione editoriale"],ja:["エディターズ・ピック"],ko:["에디터즈 픽"],ms_MY:["Pilihan Editor"],nl_NL:"Editors' picks",pl:["Wybór Redakcji"],pt:["Sugestão da Casa"],ro:"Editors' picks",ru:["Выбор редакции"],sv:["Redaktörens val"],th:["คัดสรรโดยบรรณาธิการ"],tr:["Editörün Seçtikleri"],vi:["Biên tập viên chọn"],zh:["编辑精选"],zh_TW:["編輯精選"]}},61142:e=>{e.exports={ar:["مؤشرات"],ca_ES:["Indicadors"],cs:["Indikátory"],de:["Indikatoren"],el:["Τέχν. Δείκτες"],en:"Indicators",es:["Indicadores"],fa:["اندیکاتورها"],fr:["Indicateurs"],he_IL:["אינדיקטורים"],hu_HU:["Indikátorok"],id_ID:["Indikator"],it:["Indicatori"],ja:["インジケーター"],ko:["지표"],ms_MY:["Penunjuk"],nl_NL:["Indicatoren"],pl:["Wskaźniki"],pt:["Indicadores"],ro:"Indicators",ru:["Индикаторы"],sv:["Indikatorer"],th:["อินดิเคเตอร์"],tr:["Göstergeler"],vi:["Các chỉ báo"],zh:["指标"],zh_TW:["技術指標"]}},53170:e=>{e.exports={ar:["لا توجد مؤشرات تتوافق مع معاييرك."],ca_ES:["Cap indicador coincideix amb els vostres criteris"],cs:["Indikátory nevyhovující vaším požadavkům"],de:["Keine passenden Indikatoren zu Ihren Kriterien gefunden"],el:["Δε βρέθηκαν Τέχνικο. Δείκτες που να ταιριάζουν με τα κριτήρια αναζήτησης"],en:"No indicators matched your criteria",es:["Ningún indicador coincide con sus criterios"],fa:["هیچ اندیکاتوری با شرط شما مطابقت ندارد."],fr:["Aucuns indicateurs ne correspondent à vos critères."],he_IL:["לא נמצאו התאמות לאינדקטור"],hu_HU:["Egyetlen indikátor se felel meg a kritériumoknak."],id_ID:["Tidak ada indikator yang cocok dengan kriteria anda."],it:["Nessun indicatore corrisponde ai criteri"],ja:["条件に合致するインジケーターはありません"],ko:["찾는 지표가 없습니다."],ms_MY:["Tiada penunjuk yang sepadan dengan kriteria anda."],nl_NL:["Geen indicator voldeed aan je criteria"],pl:["Brak wskaźników spełniających twoje kryteria"],pt:["Não foram encontrados indicadores que correspondam à escolha selecionada."],ro:["No indicators matched your criteria."],ru:["Нет подходящих индикаторов."],sv:["Inga indikatorer överensstämde med dina kriterier."],th:["ไม่พบตัวชี้วัดตามเกณฑ์ของคุณ"],tr:["Kriterinize uygun gösterge bulunamadı."],
|
||||
vi:["Không có chỉ số nào khớp với tiêu chí của bạn."],zh:["没有符合您搜索条件的指标."],zh_TW:["沒有指標符合您的搜尋條件。"]}},15491:e=>{e.exports={ar:["اسم النص البرمجي"],ca_ES:["Nom de l'script"],cs:"Script name",de:["Skripname"],el:"Script name",en:"Script name",es:["Nombre del script"],fa:"Script name",fr:["Nom du script"],he_IL:["שם הסקריפט"],hu_HU:["Szkript név"],id_ID:["Nama skrip"],it:["Nome script"],ja:["スクリプト名"],ko:["스크립트 이름"],ms_MY:["Nama skrip"],nl_NL:"Script name",pl:["Nazwa skryptu"],pt:["Nome do script"],ro:"Script name",ru:["Имя скрипта"],sv:["Skriptets namn"],th:["ชื่อชุดคำสั่ง"],tr:["Komut adı"],vi:["Tên Script"],zh:["脚本名称"],zh_TW:["腳本名稱"]}},52298:e=>{e.exports={ar:["بحث"],ca_ES:["Cercar"],cs:["Hledat"],de:["Suche"],el:["Αναζήτησή"],en:"Search",es:["Buscar"],fa:["جستجو"],fr:["Chercher"],he_IL:["חפש"],hu_HU:["Keresés"],id_ID:["Cari"],it:["Cerca"],ja:["検索"],ko:["찾기"],ms_MY:["Cari"],nl_NL:["Zoeken"],pl:["Szukaj"],pt:["Pesquisar"],ro:"Search",ru:["Поиск"],sv:["Sök"],th:["ค้นหา"],tr:["Ara"],vi:["Tìm kiếm"],zh:["搜索"],zh_TW:["搜尋"]}},72482:e=>{e.exports={ar:["حذف من القائمة المفضلة"],ca_ES:["Treure de preferits"],cs:["Odebrat z oblíbených"],de:["Aus Favoriten entfernen"],el:["Διαγραφή απο τα αγαπημένα"],en:"Remove from favorites",es:["Quitar de favoritos"],fa:["حذف از موارد مورد علاقه"],fr:["Retirer des favoris"],he_IL:["הסר ממועדפים"],hu_HU:["Eltávolít kedvencek közül"],id_ID:["Hilangkan dari favorit"],it:["Rimuovi dai preferiti"],ja:["お気に入りから削除"],ko:["즐겨찾기지움"],ms_MY:["Buang dari kegemaran"],nl_NL:["Verwijder van favorieten"],pl:["Usuń z ulubionych"],pt:["Remover dos favoritos"],ro:"Remove from favorites",ru:["Удалить из предпочтений"],sv:["Ta bort från favoriter"],th:["ลบออกจากรายการโปรด"],tr:["Favorilerimden çıkar"],vi:["Loại bỏ khỏi mục yêu thích"],zh:["从收藏中移除"],zh_TW:["從收藏移除"]}}}]);
|
||||
t.setContainer(n),e.body.appendChild(n),t}}},99054:(e,t,n)=>{"use strict";n.d(t,{setFixedBodyState:()=>c});const r=(()=>{let e;return()=>{var t;if(void 0===e){const n=document.createElement("div"),r=n.style;r.visibility="hidden",r.width="100px",r.msOverflowStyle="scrollbar",document.body.appendChild(n);const i=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const a=o.offsetWidth;null===(t=n.parentNode)||void 0===t||t.removeChild(n),e=i-a}return e}})();function i(e,t,n){null!==e&&e.style.setProperty(t,n)}function o(e,t){return getComputedStyle(e,null).getPropertyValue(t)}function a(e,t){return parseInt(o(e,t))}let s=0,l=!1;function c(e){const{body:t}=document,n=t.querySelector(".widgetbar-wrap");if(e&&1==++s){const e=o(t,"overflow"),s=a(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&(i(n,"right",`${r()}px`),t.style.paddingRight=`${s+r()}px`,l=!0),t.classList.add("i-no-scroll")}else if(!e&&s>0&&0==--s&&(t.classList.remove("i-no-scroll"),l)){i(n,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=r()),t.style.paddingRight=(e<0?0:e)+"px",l=!1}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>i});var r=n(88803);const i={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},69654:(e,t,n)=>{"use strict";n.d(t,{DialogSearch:()=>d});var r=n(50959),i=n(97754),o=n.n(i),a=n(11542),s=n(9745),l=n(69859),c=n(40281);function d(e){const{children:t,renderInput:i,onCancel:d,containerClassName:h,inputContainerClassName:m,iconClassName:p,...v}=e;return r.createElement("div",{className:o()(c.container,h)},r.createElement("div",{className:o()(c.inputContainer,m,d&&c.withCancel)},i||r.createElement(u,{...v})),t,r.createElement(s.Icon,{className:o()(c.icon,p),icon:l}),d&&r.createElement("div",{className:c.cancel,onClick:d},a.t(null,void 0,n(20036))))}function u(e){const{className:t,reference:n,value:i,onChange:a,onFocus:s,onBlur:l,onKeyDown:d,onSelect:u,placeholder:h,...m}=e;return r.createElement("input",{...m,ref:n,type:"text",className:o()(t,c.input),autoComplete:"off","data-role":"search",placeholder:h,value:i,onChange:a,onFocus:s,onBlur:l,onSelect:u,onKeyDown:d})}},22265:(e,t,n)=>{"use strict";n.d(t,{DialogSidebarContainer:()=>d,DialogSidebarItem:()=>h,DialogSidebarWrapper:()=>u});var r=n(50959),i=n(97754),o=n.n(i),a=n(9745),s=n(65631),l=n(68648),c=n(54829);function d(e){const{mode:t,className:n,...i}=e,{isMobile:a,isTablet:l}=(0,s.getSidebarMode)(t),d=o()(c.container,l&&c.isTablet,a&&c.isMobile,n);return r.createElement("div",{...i,className:d,"data-role":"dialog-sidebar"})}function u(e){return r.createElement("div",{className:c.wrapper,...e})}function h(e){const{mode:t,title:n,icon:i,isActive:d,onClick:u,tag:h="div",reference:m,className:p,...v}=e,{isMobile:f,isTablet:g}=(0,s.getSidebarMode)(t),y=d?null==i?void 0:i.active:null==i?void 0:i.default;return r.createElement(h,{...v,ref:m,className:o()(c.tab,g&&c.isTablet,f&&c.isMobile,d&&c.active,p),
|
||||
onClick:u},i&&r.createElement(a.Icon,{className:c.icon,icon:y}),!g&&r.createElement("span",{className:o()(c.title,!i&&c.withoutIcon)},r.createElement("span",{className:c.titleText},n),f&&r.createElement(a.Icon,{className:c.nested,icon:l})))}},65631:(e,t,n)=>{"use strict";function r(e){return{isMobile:"mobile"===e,isTablet:"tablet"===e}}n.d(t,{getSidebarMode:()=>r})},57979:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IndicatorsLibraryContainer:()=>de});var r=n(50959),i=n(962),o=n(11542),a=n(88348);const s=o.t(null,void 0,n(44463));var l=n(42856),c=n(14483),d=n(92249);function u(e,t){const n=e.title.toLowerCase(),r=t.title.toLowerCase();return n<r?-1:n>r?1:0}const h={earning:new RegExp("EPS"),earnings:new RegExp("EPS"),"trailing twelve months":new RegExp("TTM")};function m(e){var t;const{id:r,description:i,shortDescription:a,description_localized:d,is_hidden_study:u,version:h,extra:m,tags:v}=e,f=c.enabled("graying_disabled_tools_enabled")&&(null===(t=window.ChartApiInstance)||void 0===t?void 0:t.studiesAccessController.isToolGrayed(i));return{id:r,title:d||o.t(i,{context:"study"},n(68716)),shortDescription:a,shortTitle:a,isStrategy:l.StudyMetaInfo.isScriptStrategy(e),isHidden:u,isNew:null==m?void 0:m.isNew,isUpdated:null==m?void 0:m.isUpdated,isBeta:null==m?void 0:m.isBeta,isPro:null==m?void 0:m.isPro,proBadgeTitle:s,isFundamental:!1,isOverlay:e.is_price_study,studyData:{id:r,version:h,descriptor:{type:"java",studyId:e.id},packageName:p(r,m)},isGrayed:f,tags:v}}function p(e,t){return(null==t?void 0:t.isChartPattern)?"tv-chart_patterns":(null==t?void 0:t.isAuto)?"auto-java":l.StudyMetaInfo.getPackageName(e)}var v=n(97754),f=n.n(v),g=n(63932),y=n(35057),_=n(49483),b=n(69654),C=n(22265),x=n(60030);function k(e){const{reference:t,className:n,...i}=e;return r.createElement("div",{ref:t,className:f()(x.container,n),...i,"data-role":"dialog-content"})}var E=n(95988);function w(e){const{children:t,className:n,disabled:i}=e;return r.createElement("span",{className:f()(E.title,i&&E.disabled,n)},t)}const I=r.createContext(null);var P=n(24637),N=n(77975),S=n(45345),D=n(26843),R=n(36189),T=n(68335),B=n(60430);function L(e){const t=(0,r.useContext)(I),{style:i,layoutMode:a,item:s,query:l,regExpRules:c,isBeta:d,isNew:u,isUpdated:h,isSelected:m,isHighlighted:p,reference:v,onClick:g,renderActions:y,isPro:_,proBadgeTitle:b,onItemActionsClick:C,favoriteClickHandler:x,hideEP:k}=e,{isFavorite:E,isLocked:T,public:L,editorsPick:M}=s,F=void 0!==E,j=z(g,s),W=(0,r.useCallback)((e=>{e.stopPropagation(),null==C||C()}),[C]),A=(0,r.useCallback)((e=>{if(x)return null==C||C(),void x(e);if(null==t?void 0:t.toggleFavorite){z((e=>{null==C||C(),t.toggleFavorite(e)}),s)(e)}}),[x,C,null==t?void 0:t.toggleFavorite]),H=(0,N.useWatchedValueReadonly)({watchedValue:S.watchedTheme})===D.StdTheme.Dark?B.dark:B.light,Z=f()(B.container,s.isGrayed&&B.disabled,m&&B.selected,p&&B.highlighted,p&&H);return r.createElement("div",{ref:v,className:Z,onClick:j,style:i,"data-role":"list-item","data-disabled":s.isGrayed,"data-title":s.title,"data-id":s.id},r.createElement("div",{
|
||||
className:f()(B.main,!F&&B.paddingLeft)},F&&r.createElement(R.FavoriteButton,{className:f()(B.favorite,E&&B.isActive),isFilled:E,onClick:A}),r.createElement(w,{disabled:s.isGrayed},r.createElement(P.HighlightedText,{queryString:l,rules:c,text:s.title})),!1,d&&r.createElement(BadgeIndicator,{type:"beta",className:B.badge}),u&&r.createElement(BadgeIndicator,{type:"new",className:B.badge}),h&&r.createElement(BadgeIndicator,{type:"updated",className:B.badge}),Boolean(M&&!k)&&r.createElement(BadgeIndicator,{type:"ep",className:B.badge,tooltip:o.t(null,void 0,n(92490))}),!1),L&&r.createElement("a",{href:L.authorLink,className:B.author,target:"_blank",onClick:W},L.authorName),"mobile"!==a&&L&&r.createElement("span",{className:B.likes},L.likesCount),!1)}function z(e,t){return n=>{const r=0===(0,T.modifiersFromEvent)(n)&&0===n.button;!n.defaultPrevented&&e&&r&&(n.preventDefault(),e(t))}}var M=n(61098);function F(e){const{title:t,type:n,className:i}=e;return r.createElement("h3",{className:f()(M.title,"Small"===n&&M.small,"Normal"===n&&M.normal,"Large"===n&&M.large,i)},t)}var j=n(76797);function W(e){const{style:t,children:n}=e;return r.createElement("div",{style:t,className:j.container},n)}var A=n(9745),H=n(94720),Z=n(70722);function q(e){const{className:t,icon:n,title:i,description:o,buttonText:a,buttonAction:s}=e;return r.createElement("div",{className:f()(Z.container,t)},n&&r.createElement(A.Icon,{icon:n,className:Z.image}),i&&r.createElement("h3",{className:Z.title},i),o&&r.createElement("p",{className:Z.description},o),a&&s&&r.createElement(H.Button,{onClick:s,className:Z.button},a))}function O(e){const[t,n]=(0,r.useState)(null);function i(e){return e.findIndex((e=>(null==t?void 0:t.id)===e.id))}return[t,n,function(){n(function(){var n;const r=i(e),o=r===e.length-1;return null===t||-1===r?null!==(n=e[0])&&void 0!==n?n:null:o?e[r]:e[r+1]}())},function(){n(function(){var n;const r=i(e);return null===t||0===r||-1===r?null!==(n=e[0])&&void 0!==n?n:null:e[r-1]}())}]}var U=n(19785),G=n(57898),V=n(56840);const Y=new G.Delegate,K=new G.Delegate,J=new G.Delegate;let X=[];function $(e){return-1===ee(e)?(function(e){!Q(e)&&(X.push(e),ne(),Y.fire(e))}(e),!0):(function(e){const t=ee(e);-1!==t&&(X.splice(t,1),ne(),K.fire(e))}(e),!1)}function Q(e){return-1!==ee(e)}function ee(e){return X.indexOf(e)}function te(){var e,t;X=[];const n=Boolean(void 0===(0,V.getValue)("chart.favoriteLibraryIndicators")),r=(0,V.getJSON)("chart.favoriteLibraryIndicators",[]);if(X.push(...r),0===X.length&&n&&"undefined"!=typeof window){const n=JSON.parse(null!==(t=null===(e=window.urlParams)||void 0===e?void 0:e.favorites)&&void 0!==t?t:"{}").indicators;n&&Array.isArray(n)&&X.push(...n)}J.fire()}function ne(){const e=X.slice();(0,V.setJSON)("chart.favoriteLibraryIndicators",e)}te(),V.onSync.subscribe(null,te);var re=n(4567);function ie(e){const{reference:t,data:i,isOpened:a,onClose:s,applyStudy:l,shouldReturnFocus:c}=e,[d,u]=(0,r.useState)(""),m=(0,r.useMemo)((()=>(0,U.createRegExpList)(d,h)),[d]),p=(0,r.useMemo)((()=>d?(0,U.rankedSearch)({data:i,rules:m,
|
||||
queryString:d,primaryKey:"shortDescription",secondaryKey:"title",optionalPrimaryKey:"shortTitle",tertiaryKey:"tags"}):i),[d,m,i]),v=(0,r.useMemo)((()=>p.slice().sort(oe)),[p]),{highlightedItem:x,selectedItem:E,selectedNodeReference:w,scrollContainerRef:I,searchInputRef:P,onClickStudy:N,handleKeyDown:S}=function(e,t,n,i){let o=0;const[a,s]=(0,r.useState)(null),l=(0,r.useRef)(null),c=(0,r.useRef)(null),[d,u,h,m]=O(t),p=(0,r.useRef)(null);return(0,r.useEffect)((()=>{e?v(0):u(null)}),[e]),(0,r.useEffect)((()=>{void 0!==i&&(v(0),u(null))}),[i]),(0,r.useEffect)((()=>(a&&(o=setTimeout((()=>{s(null)}),1500)),()=>{clearInterval(o)})),[a]),{highlightedItem:a,scrollContainerRef:l,selectedNodeReference:c,selectedItem:d,searchInputRef:p,onClickStudy:function(e){n&&(n(e),u(e),s(e))},handleKeyDown:function(e){const[t,r]=function(e,t){if(null===e.current||null===t.current)return[0,0];const n=e.current.getBoundingClientRect(),r=t.current.getBoundingClientRect(),{height:i}=n,o=n.top-r.top,a=n.bottom-r.bottom+i<0?0:i,s=o-i>0?0:i,{scrollTop:l}=t.current;return[l-s,l+a]}(c,l);if(40===(0,T.hashFromEvent)(e)&&(e.preventDefault(),h(),v(r)),38===(0,T.hashFromEvent)(e)&&(e.preventDefault(),m(),v(t)),13===(0,T.hashFromEvent)(e)&&d){if(!n)return;n(d),s(d)}}};function v(e){null!==l.current&&l.current.scrollTo&&l.current.scrollTo(0,e)}}(a,v,l),D=""===d&&!v.length;return(0,r.useEffect)((()=>{var e;a||u(""),_.CheckMobile.any()||null===(e=P.current)||void 0===e||e.focus()}),[a]),r.createElement(y.AdaptivePopupDialog,{className:f()(re.dialogLibrary),isOpened:a,onClose:s,onClickOutside:s,title:o.t(null,void 0,n(61142)),dataName:"indicators-dialog",onKeyDown:S,shouldReturnFocus:c,ref:t,render:()=>r.createElement(r.Fragment,null,r.createElement(b.DialogSearch,{reference:P,placeholder:o.t(null,void 0,n(52298)),onChange:R,onFocus:B}),r.createElement(C.DialogSidebarWrapper,null,r.createElement(k,{reference:I,className:re.scroll},D?r.createElement(g.Spinner,null):v.length?r.createElement(r.Fragment,null,r.createElement(W,null,r.createElement(F,{title:o.t(null,void 0,n(15491))})),v.map((e=>r.createElement(L,{key:e.id,item:e,onClick:()=>N(e),query:d,regExpRules:m,reference:(null==E?void 0:E.id)===e.id?w:void 0,isSelected:(null==E?void 0:E.id)===e.id,isHighlighted:(null==x?void 0:x.id)===e.id,favoriteClickHandler:t=>{t.stopPropagation(),$(e.title)}})))):r.createElement(q,{className:re.noContentBlock,description:o.t(null,void 0,n(53170))}))))});function R(e){u(e.target.value)}function B(){var e;d.length>0&&(null===(e=P.current)||void 0===e||e.select())}}function oe(e,t){return e.isFavorite===t.isFavorite?0:e.isFavorite?-1:1}var ae=n(76422),se=n(74970),le=n(97145);function ce(e,t){return e[t]||[]}class de extends class{constructor(e){this._searchInputRef=r.createRef(),this._dialog=r.createRef(),this._visibility=new le.WatchedValue(!1),this._container=document.createElement("div"),this._isForceRender=!1,this._parentSources=[],this._isDestroyed=!1,this._deepFundamentalsHistoryNotificationHasBeenShown=!1,this._showDeepFundamentalsHistoryNotification=()=>{},
|
||||
this._chartWidgetCollection=e}isDestroyed(){return this._isDestroyed}visible(){return this._visibility.readonly()}resetAllStudies(){}updateFavorites(){}open(e,t,n,r,i){this._parentSources=e,this._updateSymbol(),this._setProps({isOpened:!0,shouldReturnFocus:null==i?void 0:i.shouldReturnFocus}),this._visibility.setValue(!0),ae.emit("indicators_dialog")}show(e){this.open([],void 0,void 0,void 0,e)}hide(){this._parentSources=[],this._setProps({isOpened:!1}),this._visibility.setValue(!1)}destroy(){this._isDestroyed=!0,i.unmountComponentAtNode(this._container)}_shouldPreventRender(){return this._isDestroyed||!this._isForceRender&&!this._getProps().value().isOpened}_getRenderData(){return{props:this._getProps().value(),container:this._getContainer()}}_applyStudy(e,t){var n;e.isGrayed?ae.emit("onGrayedObjectClicked",{type:"study",name:e.shortDescription}):(_.CheckMobile.any()||null===(n=this._searchInputRef.current)||void 0===n||n.select(),async function(e,t,n,r,i){const o=e.activeChartWidget.value();if(!o)return null;const{studyData:s}=t;if(!s)return Promise.resolve(null);const l=s.descriptor;if("java"===l.type){const e=(0,d.tryFindStudyLineToolNameByStudyId)(l.studyId);if(null!==e)return a.tool.setValue(e),null}return o.insertStudy(s.descriptor,n,{stubTitle:t.shortDescription,isFundamental:t.isFundamental,isOverlay:t.isOverlay})}(this._chartWidgetCollection,e,this._parentSources,0,this._symbol).then((()=>{var e;window.is_authenticated;_.CheckMobile.any()||(null===document.activeElement||document.activeElement===document.body||null!==this._dialog.current&&this._dialog.current.contains(document.activeElement))&&(null===(e=this._searchInputRef.current)||void 0===e||e.focus())})))}_setProps(e){const t=this._getProps().value(),{isOpened:n}=t;this._isForceRender=n&&"isOpened"in e&&!e.isOpened;const r={...t,...e};this._getProps().setValue(r)}_requestBuiltInJavaStudies(){return(0,se.studyMetaInfoRepository)().findAllJavaStudies()}_focus(){var e;this._getProps().value().isOpened&&(null===(e=this._dialog.current)||void 0===e||e.focus())}_getContainer(){return this._container}_getDialog(){return this._dialog}_getSymbol(){return this._symbol}_updateSymbol(){this._symbol=void 0}}{constructor(e,t){super(e),this._options={onWidget:!1},this._indicatorData=[],t&&(this._options=t),this._props=new le.WatchedValue({data:[],applyStudy:this._applyStudy.bind(this),isOpened:!1,reference:this._getDialog(),onClose:this.hide.bind(this)}),this._getProps().subscribe(this._render.bind(this)),this._init()}_getProps(){return this._props}async _init(){const e=function(e){const t={};return e.forEach((e=>{const{studyData:n}=e;if(!n)return;const{packageName:r}=n;r in t?t[r].push(e):t[r]=[e]})),t}(function(e,t=!0){return e.filter((e=>{const n=!!t||!function(e){return e.isStrategy}(e);return!e.isHidden&&n}))}((await this._requestBuiltInJavaStudies()).map(m)));this._indicatorData=await async function(e,t){let n={...t};return[...ce(n,"tv-basicstudies"),...ce(n,"Script$STD"),...ce(n,"tv-volumebyprice")].filter((e=>!e.isStrategy)).sort(u)
|
||||
}(this._options.onWidget,e),this._setFavorites(),this._setProps({data:this._indicatorData}),Y.subscribe(null,(()=>this._refreshFavorites())),K.subscribe(null,(()=>this._refreshFavorites()))}_setFavorites(){c.enabled("items_favoriting")&&this._indicatorData.forEach((e=>{e.isFavorite=Q(e.title)}))}_refreshFavorites(){this._setFavorites(),this._setProps({data:this._indicatorData})}_render(){if(this._shouldPreventRender())return;const{props:e,container:t}=this._getRenderData();i.render(r.createElement(ie,{...e}),t)}}},36189:(e,t,n)=>{"use strict";n.d(t,{FavoriteButton:()=>u});var r=n(11542),i=n(50959),o=n(97754),a=n(9745),s=n(39146),l=n(48010),c=n(14877);const d={add:r.t(null,void 0,n(44629)),remove:r.t(null,void 0,n(72482))};function u(e){const{className:t,isFilled:n,isActive:r,onClick:u,...h}=e;return i.createElement(a.Icon,{...h,className:o(c.favorite,"apply-common-tooltip",n&&c.checked,r&&c.active,t),icon:n?s:l,onClick:u,title:n?d.remove:d.add})}},19785:(e,t,n)=>{"use strict";n.d(t,{createRegExpList:()=>o,getHighlightedChars:()=>a,rankedSearch:()=>i});var r=n(1722);function i(e){const{data:t,rules:n,queryString:i,isPreventedFromFiltering:o,primaryKey:a,secondaryKey:s=a,optionalPrimaryKey:l,tertiaryKey:c}=e;return t.map((e=>{const t=l&&e[l]?e[l]:e[a],o=e[s],d=c&&e[c];let u,h=0;return n.forEach((e=>{var n,a,s,l,c;const{re:m,fullMatch:p}=e;if(m.lastIndex=0,(0,r.isString)(t)&&t&&t.toLowerCase()===i.toLowerCase())return h=4,void(u=null===(n=t.match(p))||void 0===n?void 0:n.index);if((0,r.isString)(t)&&p.test(t))return h=3,void(u=null===(a=t.match(p))||void 0===a?void 0:a.index);if((0,r.isString)(o)&&p.test(o))return h=2,void(u=null===(s=o.match(p))||void 0===s?void 0:s.index);if((0,r.isString)(o)&&m.test(o))return h=2,void(u=null===(l=o.match(m))||void 0===l?void 0:l.index);if(Array.isArray(d))for(const e of d)if(p.test(e))return h=1,void(u=null===(c=e.match(p))||void 0===c?void 0:c.index)})),{matchPriority:h,matchIndex:u,item:e}})).filter((e=>o||e.matchPriority)).sort(((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0})).map((({item:e})=>e))}function o(e,t){const n=[],r=e.toLowerCase(),i=e.split("").map(((e,t)=>`(${0!==t?`[/\\s-]${s(e)}`:s(e)})`)).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${s(e)})`,"i"),re:new RegExp(`^${i}`,"i"),reserveRe:new RegExp(i,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function a(e,t,n){const r=[];return e&&n?(n.forEach((e=>{const{fullMatch:n,re:i,reserveRe:o}=e;n.lastIndex=0,i.lastIndex=0;const a=n.exec(t),s=a||i.exec(t)||o&&o.exec(t);if(e.fuzzyHighlight=!a,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t<s.length;t++){const n=s[t],i=s[t].length;if(t%2){const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");r[t?e+1:e]=!0}e+=i}}else for(let e=0;e<s[0].length;e++)r[s.index+e]=!0})),r):r}
|
||||
function s(e){return e.replace(/[!-/[-^{-}?]/g,"\\$&")}},24637:(e,t,n)=>{"use strict";n.d(t,{HighlightedText:()=>s});var r=n(50959),i=n(97754),o=n(19785),a=n(75623);function s(e){const{queryString:t,rules:n,text:s,className:l}=e,c=(0,r.useMemo)((()=>(0,o.getHighlightedChars)(t,s,n)),[t,n,s]);return r.createElement(r.Fragment,null,c.length?s.split("").map(((e,t)=>r.createElement(r.Fragment,{key:t},c[t]?r.createElement("span",{className:i(a.highlighted,l)},e):r.createElement("span",null,e)))):s)}},77975:(e,t,n)=>{"use strict";n.d(t,{useWatchedValueReadonly:()=>i});var r=n(50959);const i=(e,t=!1)=>{const n="watchedValue"in e?e.watchedValue:void 0,i="defaultValue"in e?e.defaultValue:e.watchedValue.value(),[o,a]=(0,r.useState)(n?n.value():i);return(t?r.useLayoutEffect:r.useEffect)((()=>{if(n){a(n.value());const e=e=>a(e);return n.subscribe(e),()=>n.unsubscribe(e)}return()=>{}}),[n]),o}},90692:(e,t,n)=>{"use strict";n.d(t,{MatchMedia:()=>i});var r=n(50959);class i extends r.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},42842:(e,t,n)=>{"use strict";n.d(t,{Portal:()=>l,PortalContext:()=>c});var r=n(50959),i=n(962),o=n(25931),a=n(67961),s=n(99663);class l extends r.PureComponent{constructor(){super(...arguments),this._uuid=(0,o.nanoid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const e=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return e.style.top=this.props.top||"",e.style.bottom=this.props.bottom||"",e.style.left=this.props.left||"",e.style.right=this.props.right||"",e.style.pointerEvents=this.props.pointerEvents||"",this.props.className&&e.classList.add(this.props.className),this.props["aria-hidden"]&&e.setAttribute("aria-hidden","true"),i.createPortal(r.createElement(c.Provider,{value:this},this.props.children),e)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?(0,a.getRootOverlapManager)():this.context}}l.contextType=s.SlotContext;const c=r.createContext(null)},63932:(e,t,n)=>{"use strict";n.d(t,{Spinner:()=>a});var r=n(50959),i=n(97754),o=n(58096);n(83135);function a(e){const t=i(e.className,"tv-spinner","tv-spinner--shown",`tv-spinner--size_${o.spinnerSizeMap[e.size||o.DEFAULT_SIZE]}`);return r.createElement("div",{className:t,style:e.style,role:"progressbar"})}},68648:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentcolor" stroke-width="1.3" d="M12 9l5 5-5 5"/></svg>'
|
||||
},69859:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},39146:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" d="M9 1l2.35 4.76 5.26.77-3.8 3.7.9 5.24L9 13l-4.7 2.47.9-5.23-3.8-3.71 5.25-.77L9 1z"/></svg>'},48010:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M9 2.13l1.903 3.855.116.236.26.038 4.255.618-3.079 3.001-.188.184.044.259.727 4.237-3.805-2L9 12.434l-.233.122-3.805 2.001.727-4.237.044-.26-.188-.183-3.079-3.001 4.255-.618.26-.038.116-.236L9 2.13z"/></svg>'},25931:(e,t,n)=>{"use strict";n.d(t,{nanoid:()=>r});let r=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+=(t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_"),"")},20036:e=>{e.exports={ar:["إلغاء"],ca_ES:["Cancel·la"],cs:["Zrušit"],de:["Abbrechen"],el:["Άκυρο"],en:"Cancel",es:["Cancelar"],fa:["لغو"],fr:["Annuler"],he_IL:["ביטול"],hu_HU:["Törlés"],id_ID:["Batal"],it:["Annulla"],ja:["キャンセル"],ko:["취소"],ms_MY:["Batal"],nl_NL:["Annuleren"],pl:["Anuluj"],pt:["Cancelar"],ro:"Cancel",ru:["Отмена"],sv:["Avbryt"],th:["ยกเลิก"],tr:["İptal"],vi:["Hủy bỏ"],zh:["取消"],zh_TW:["取消"]}},80395:e=>{e.exports={ar:["إغلاق القائمة"],ca_ES:"Close menu",cs:"Close menu",de:["Menü schließen"],el:"Close menu",en:"Close menu",es:["Cerrar menú"],fa:"Close menu",fr:["Fermer le menu"],he_IL:["סגור תפריט"],hu_HU:"Close menu",id_ID:["Pilih menu"],it:["Chiudere menù"],ja:["メニューを閉じる"],ko:["메뉴 닫기"],ms_MY:["Tutup menu"],nl_NL:"Close menu",pl:["Zamknij menu"],pt:["Fechar menu"],ro:"Close menu",ru:["Закрыть меню"],sv:["Stäng menyn"],th:["ปิดเมนู"],tr:["Menüyü kapat"],vi:["Đóng menu"],zh:["关闭菜单"],zh_TW:["關閉選單"]}},44629:e=>{e.exports={ar:["اضف إلى القائمة التفضيلات"],ca_ES:["Afegeix a preferits"],cs:["Přidat do oblíbených"],de:["Zu Favoriten hinzufügen"],el:["Προσθήκη στα αγαπημένα"],en:"Add to favorites",es:["Añadir a favoritos"],fa:["افزودن به موارد مورد علاقه"],fr:["Ajouter aux favoris"],he_IL:["הוסף למועדפים"],hu_HU:["Hozzáadás kedvencekhez"],id_ID:["Tambah ke daftar favorit"],it:["Aggiungi ai preferiti"],ja:["お気に入りに追加"],ko:["즐겨찾기에 넣기"],ms_MY:["Tambah kepada kegemaran"],nl_NL:["Voeg toe aan favorieten"],pl:["Dodaj do ulubionych"],pt:["Adicionar aos favoritos"],ro:"Add to favorites",ru:["Добавить в избранное"],sv:["Lägg till som favorit"],th:["เพิ่มลงรายการโปรด"],tr:["Favorilere ekle"],vi:["Thêm vào mục yêu thích"],zh:["添加到收藏"],zh_TW:["加入收藏"]}},44463:e=>{e.exports={ar:["متاح لحسابات Pro"],ca_ES:"Available for Pro accounts",cs:"Available for Pro accounts",de:["Erhältlich für Pro-Konten"],el:"Available for Pro accounts",en:"Available for Pro accounts",es:["Disponible para las cuentas Pro"],fa:"Available for Pro accounts",fr:["Disponible pour les comptes Pro"],he_IL:["זמין עבור חשבונות Pro"],hu_HU:"Available for Pro accounts",
|
||||
id_ID:["Tersedia untuk akun Pro"],it:["Disponibile per gli account Pro"],ja:["Proアカウントでご利用いただけます"],ko:["프로 계정에서 사용 가능"],ms_MY:["Tersedia untuk akaun Pro"],nl_NL:"Available for Pro accounts",pl:["Dostępne dla kont Pro"],pt:["Disponível para contas Pro"],ro:"Available for Pro accounts",ru:["Доступно для подписок Pro"],sv:["Tillgängligt för Proabonnenter"],th:["มีให้สำหรับบัญชี Pro"],tr:["Pro hesaplar için kullanılabilir"],vi:["Dành cho các tài khoản Pro"],zh:["适用于Pro账户"],zh_TW:["適用於Pro帳戶"]}},92490:e=>{e.exports={ar:["مختارات المحرر"],ca_ES:["Seleccions dels editors"],cs:"Editors' picks",de:["Editor's Picks"],el:"Editors' picks",en:"Editors' picks",es:["Selecciones de los editores"],fa:"Editors' picks",fr:["Choix de la rédaction"],he_IL:["בחירות העורכים"],hu_HU:"Editors' picks",id_ID:["Pilihan editor"],it:["Selezione editoriale"],ja:["エディターズ・ピック"],ko:["에디터즈 픽"],ms_MY:["Pilihan Editor"],nl_NL:"Editors' picks",pl:["Wybór Redakcji"],pt:["Sugestão da Casa"],ro:"Editors' picks",ru:["Выбор редакции"],sv:["Redaktörens val"],th:["คัดสรรโดยบรรณาธิการ"],tr:["Editörün Seçtikleri"],vi:["Biên tập viên chọn"],zh:["编辑精选"],zh_TW:["編輯精選"]}},61142:e=>{e.exports={ar:["مؤشرات"],ca_ES:["Indicadors"],cs:["Indikátory"],de:["Indikatoren"],el:["Τέχν. Δείκτες"],en:"Indicators",es:["Indicadores"],fa:["اندیکاتورها"],fr:["Indicateurs"],he_IL:["אינדיקטורים"],hu_HU:["Indikátorok"],id_ID:["Indikator"],it:["Indicatori"],ja:["インジケーター"],ko:["지표"],ms_MY:["Penunjuk"],nl_NL:["Indicatoren"],pl:["Wskaźniki"],pt:["Indicadores"],ro:"Indicators",ru:["Индикаторы"],sv:["Indikatorer"],th:["อินดิเคเตอร์"],tr:["Göstergeler"],vi:["Các chỉ báo"],zh:["指标"],zh_TW:["技術指標"]}},53170:e=>{e.exports={ar:["لا توجد مؤشرات تتوافق مع معاييرك."],ca_ES:["Cap indicador coincideix amb els vostres criteris"],cs:["Indikátory nevyhovující vaším požadavkům"],de:["Keine passenden Indikatoren zu Ihren Kriterien gefunden"],el:["Δε βρέθηκαν Τέχνικο. Δείκτες που να ταιριάζουν με τα κριτήρια αναζήτησης"],en:"No indicators matched your criteria",es:["Ningún indicador coincide con sus criterios"],fa:["هیچ اندیکاتوری با شرط شما مطابقت ندارد."],fr:["Aucuns indicateurs ne correspondent à vos critères."],he_IL:["לא נמצאו התאמות לאינדקטור"],hu_HU:["Egyetlen indikátor se felel meg a kritériumoknak."],id_ID:["Tidak ada indikator yang cocok dengan kriteria anda."],it:["Nessun indicatore corrisponde ai criteri"],ja:["条件に合致するインジケーターはありません"],ko:["찾는 지표가 없습니다."],ms_MY:["Tiada penunjuk yang sepadan dengan kriteria anda."],nl_NL:["Geen indicator voldeed aan je criteria"],pl:["Brak wskaźników spełniających twoje kryteria"],pt:["Não foram encontrados indicadores que correspondam à escolha selecionada."],ro:["No indicators matched your criteria."],ru:["Нет подходящих индикаторов."],sv:["Inga indikatorer överensstämde med dina kriterier."],th:["ไม่พบตัวชี้วัดตามเกณฑ์ของคุณ"],tr:["Kriterinize uygun gösterge bulunamadı."],vi:["Không có chỉ số nào khớp với tiêu chí của bạn."],zh:["没有符合您搜索条件的指标."],zh_TW:["沒有指標符合您的搜尋條件。"]}},15491:e=>{e.exports={ar:["اسم النص البرمجي"],ca_ES:["Nom de l'script"],cs:"Script name",
|
||||
de:["Skripname"],el:"Script name",en:"Script name",es:["Nombre del script"],fa:"Script name",fr:["Nom du script"],he_IL:["שם הסקריפט"],hu_HU:["Szkript név"],id_ID:["Nama skrip"],it:["Nome script"],ja:["スクリプト名"],ko:["스크립트 이름"],ms_MY:["Nama skrip"],nl_NL:"Script name",pl:["Nazwa skryptu"],pt:["Nome do script"],ro:"Script name",ru:["Имя скрипта"],sv:["Skriptets namn"],th:["ชื่อชุดคำสั่ง"],tr:["Komut adı"],vi:["Tên Script"],zh:["脚本名称"],zh_TW:["腳本名稱"]}},52298:e=>{e.exports={ar:["بحث"],ca_ES:["Cercar"],cs:["Hledat"],de:["Suche"],el:["Αναζήτησή"],en:"Search",es:["Buscar"],fa:["جستجو"],fr:["Chercher"],he_IL:["חפש"],hu_HU:["Keresés"],id_ID:["Cari"],it:["Cerca"],ja:["検索"],ko:["찾기"],ms_MY:["Cari"],nl_NL:["Zoeken"],pl:["Szukaj"],pt:["Pesquisar"],ro:"Search",ru:["Поиск"],sv:["Sök"],th:["ค้นหา"],tr:["Ara"],vi:["Tìm kiếm"],zh:["搜索"],zh_TW:["搜尋"]}},72482:e=>{e.exports={ar:["حذف من القائمة المفضلة"],ca_ES:["Treure de preferits"],cs:["Odebrat z oblíbených"],de:["Aus Favoriten entfernen"],el:["Διαγραφή απο τα αγαπημένα"],en:"Remove from favorites",es:["Quitar de favoritos"],fa:["حذف از موارد مورد علاقه"],fr:["Retirer des favoris"],he_IL:["הסר ממועדפים"],hu_HU:["Eltávolít kedvencek közül"],id_ID:["Hilangkan dari favorit"],it:["Rimuovi dai preferiti"],ja:["お気に入りから削除"],ko:["즐겨찾기지움"],ms_MY:["Buang dari kegemaran"],nl_NL:["Verwijder van favorieten"],pl:["Usuń z ulubionych"],pt:["Remover dos favoritos"],ro:"Remove from favorites",ru:["Удалить из предпочтений"],sv:["Ta bort från favoriter"],th:["ลบออกจากรายการโปรด"],tr:["Favorilerimden çıkar"],vi:["Loại bỏ khỏi mục yêu thích"],zh:["从收藏中移除"],zh_TW:["從收藏移除"]}}}]);
|
||||
File diff suppressed because one or more lines are too long
173
charting_library/charting_library.d.ts
vendored
173
charting_library/charting_library.d.ts
vendored
@@ -4862,13 +4862,19 @@ export interface CreateTradingViewStyledButtonOptions {
|
||||
*/
|
||||
export interface CrossHairMovedEventParams {
|
||||
/**
|
||||
* The time coordinate of the crosshair.
|
||||
* The crosshair time coordinate represented with a UNIX timestamp in UTC.
|
||||
* You can use this property to do some calculations or retrieve additional data from the datafeed.
|
||||
*/
|
||||
time: number;
|
||||
/**
|
||||
* The price coordinate of the crosshair.
|
||||
*/
|
||||
price: number;
|
||||
/**
|
||||
* The crosshair time coordinate represented with a UNIX timestamp in the selected time zone.
|
||||
* You can use this property to display the crosshair time value in the UI, for example, in a tooltip or data window.
|
||||
*/
|
||||
userTime?: number;
|
||||
/**
|
||||
* Series and study values at the crosshair position. The object keys are study or series IDs, and the object value are study or series values.
|
||||
* The ID for the main series will always be the string `'_seriesId'`.
|
||||
@@ -10489,6 +10495,10 @@ export interface IChartingLibraryWidget {
|
||||
widgetbar(): Promise<IWidgetbarApi>;
|
||||
/**
|
||||
* Get an API object for interacting with the active chart.
|
||||
* For example, you can subscribe to events on the active chart, such as {@link IChartWidgetApi.onIntervalChanged}.
|
||||
* Note that the library does not manage the event subscriptions when users switch between the charts on the [multiple-chart layout](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/trading_terminal.md#multiple-chart-layout).
|
||||
* If necessary, you should manually unsubscribe from the previous chart and subscribe to the newly selected one.
|
||||
* To track the currently active chart, use the {@link SubscribeEventsMap.activeChartChanged} event.
|
||||
*
|
||||
* @returns An API object for interacting with the chart.
|
||||
*/
|
||||
@@ -12986,17 +12996,17 @@ export interface IUpdatableAction extends IAction {
|
||||
update(options: Partial<OmitActionId<ActionOptions>>): void;
|
||||
}
|
||||
/**
|
||||
* An API object for interacting with the widgetbar (right sidebar) watchlist.
|
||||
* An API object for interacting with the [Watchlist](https://www.tradingview.com/charting-library-docs/latest/trading_terminal/Watch-List.md) widget.
|
||||
* The Watchlist is a widget that allows users to track price movements and volume of specific financial instruments in real-time.
|
||||
* Watchlists also allow users to quickly switch between the symbols.
|
||||
* The Watchlist widget is displayed on the widget panel on the right side of the chart.
|
||||
*
|
||||
* **Notes about watchlist contents**
|
||||
*
|
||||
* Watchlist items should be symbol names which your datafeed `resolveSymbol` method can resolve. This
|
||||
* Watchlist items should be symbol names which your datafeed [`resolveSymbol`](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Datafeed-API.md#resolvesymbol) method can resolve. This
|
||||
* means that generally shorter names such as `AAPL` can be used if your datafeed understands it. However,
|
||||
* it is recommend that you provided the symbol names as they appear within the symbolInfo result (for
|
||||
* example: `NASDAQNM:AAPL`).
|
||||
*
|
||||
* Additionally, any item in the list which is prefixed with `###` will be considered a
|
||||
* section divider in the watchlist.
|
||||
* it is recommend that you provide the symbol names as they appear within the `LibrarySymbolInfo` object, for
|
||||
* example, `NASDAQ:AAPL`.
|
||||
*/
|
||||
export interface IWatchListApi {
|
||||
/**
|
||||
@@ -13006,7 +13016,7 @@ export interface IWatchListApi {
|
||||
defaultList(): string[];
|
||||
/**
|
||||
* Get a list of symbols.
|
||||
* If the `id` parameter is not provided then the current list will be returned. If there is no WatchList then `null` will be returned.
|
||||
* If the `id` parameter is not provided, the current list will be returned. If there is no watchList, `null` will be returned.
|
||||
* @param {string} [id] - Watchlist ID
|
||||
* @returns list of symbols for watchlist
|
||||
*/
|
||||
@@ -13036,28 +13046,26 @@ export interface IWatchListApi {
|
||||
/**
|
||||
* Edit the list of symbols for a watchlist.
|
||||
* @param {string} listId - ID of the watchlist
|
||||
* @param {string[]} symbols - symbols to be set for the watchlist. Any item in the list which is prefixed with `###` will be considered a
|
||||
* section divider in the watchlist.
|
||||
* @param {string[]} symbols - Symbols to be set for the watchlist. Any list item that has the `###` prefix is considered a section divider in the watchlist.
|
||||
*/
|
||||
updateList(listId: string, symbols: string[]): void;
|
||||
/**
|
||||
* Rename the watchlist.
|
||||
* @param {string} listId - ID of the watchlist
|
||||
* @param {string} newName - new name to set for the watchlist
|
||||
* @param {string} newName - New name to set for the watchlist
|
||||
*/
|
||||
renameList(listId: string, newName: string): void;
|
||||
/**
|
||||
* Create a list of symbols with `listName` name. If the `listName` parameter is not provided or there is no WatchList then `null` will be returned;
|
||||
* @param {string} [listName] - name for the watchlist
|
||||
* @param {string[]} [symbols] - symbol IDs for the watchlist. Any item in the list which is prefixed with `###` will be considered a
|
||||
* section divider in the watchlist.
|
||||
* @param {string[]} [symbols] - Symbol IDs for the watchlist. Any list item that has the `###` prefix is considered a section divider in the watchlist.
|
||||
* @returns WatchListSymbolList
|
||||
*/
|
||||
createList(listName?: string, symbols?: string[]): WatchListSymbolList | null;
|
||||
/**
|
||||
* Save a list of symbols.
|
||||
* @param {WatchListSymbolList} list
|
||||
* @returns If there is no WatchList or an equivalent list already exists then `false` will be returned, otherwise `true` will returned.
|
||||
* @returns If there is no watchList or an equivalent list already exists, `false` will be returned. Otherwise, `true` will be returned.
|
||||
*/
|
||||
saveList(list: WatchListSymbolList): boolean;
|
||||
/**
|
||||
@@ -14002,7 +14010,7 @@ export interface LibrarySymbolInfo {
|
||||
* If it's `false` then all buttons for intraday resolutions will be disabled for this particular symbol.
|
||||
* If it is set to `true`, all intradays resolutions that are supplied directly by the datafeed must be provided in `intraday_multipliers` array.
|
||||
*
|
||||
* **WARNING** Any daily, weekly or monthly resolutions cannot be inferred from intraday resolutions!
|
||||
* **WARNING** Any daily, weekly or monthly resolutions cannot be inferred from intraday resolutions.
|
||||
*
|
||||
* `false` if DWM only
|
||||
* @default false
|
||||
@@ -14096,7 +14104,7 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
has_weekly_and_monthly?: boolean;
|
||||
/**
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution#weeks) (in weeks - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution.md#resolution-in-weeks--months) (in weeks - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
*
|
||||
* For example it could be something like
|
||||
*
|
||||
@@ -14107,7 +14115,7 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
weekly_multipliers?: string[];
|
||||
/**
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution#months) (in months - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution.md#resolution-in-weeks--months) (in months - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
*
|
||||
* For example it could be something like
|
||||
*
|
||||
@@ -14129,9 +14137,9 @@ export interface LibrarySymbolInfo {
|
||||
/**
|
||||
* Represents what values are supported by the symbol. Possible values:
|
||||
*
|
||||
* - `ohlcv` - the symbol supports open, high, low, close and has volume
|
||||
* - `ohlc` - the symbol supports open, high, low, close, but doesn't have volume
|
||||
* - `c` - the symbol supports only close, it's displayed on the chart using line-based styles only
|
||||
* - `ohlcv` — the symbol supports open, high, low, close prices and has volume.
|
||||
* - `ohlc` — the symbol supports open, high, low, close, prices but doesn't have volume.
|
||||
* - `c` — the symbol supports only close price. This makes the chart show the symbol data using only line-based styles.
|
||||
* @default 'ohlcv'
|
||||
*/
|
||||
visible_plots_set?: VisiblePlotsSet;
|
||||
@@ -14192,11 +14200,13 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
unit_conversion_types?: string[];
|
||||
/**
|
||||
* Subsession ID. Must match the `id` property of one of the subsessions.
|
||||
* An ID of a subsession specified in {@link subsessions}. The value must match the subsession that is currently displayed on the chart.
|
||||
* For more information, refer to the [Extended sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md#extended-sessions) section.
|
||||
*/
|
||||
subsession_id?: string;
|
||||
/**
|
||||
* Subsessions definitions.
|
||||
* An array of objects that contain information about certain subsessions within the extended session.
|
||||
* For more information, refer to the [Extended sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md#extended-sessions) section.
|
||||
*/
|
||||
subsessions?: LibrarySubsessionInfo[];
|
||||
/**
|
||||
@@ -17266,6 +17276,18 @@ export interface RateOfChangeIndicatorOverrides {
|
||||
* Use these properties to customize indicator via {@link IChartWidgetApi.createStudy} and {@link IStudyApi.applyOverrides}.
|
||||
*/
|
||||
export interface RatioIndicatorOverrides {
|
||||
/** Default value: `` */
|
||||
"negativefill.color": string;
|
||||
/** Default value: `0` */
|
||||
"negativefill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
"negativefill.visible": boolean;
|
||||
/** Default value: `` */
|
||||
"positivefill.color": string;
|
||||
/** Default value: `0` */
|
||||
"positivefill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
"positivefill.visible": boolean;
|
||||
/** Default value: `0` */
|
||||
"plot.linestyle": number;
|
||||
/** Default value: `2` */
|
||||
@@ -17280,6 +17302,20 @@ export interface RatioIndicatorOverrides {
|
||||
"plot.color": string;
|
||||
/** Default value: `15` */
|
||||
"plot.display": number;
|
||||
/** Default value: `0` */
|
||||
"baseline.linestyle": number;
|
||||
/** Default value: `2` */
|
||||
"baseline.linewidth": number;
|
||||
/** Default value: `line` */
|
||||
"baseline.plottype": LineStudyPlotStyleName;
|
||||
/** Default value: `false` */
|
||||
"baseline.trackprice": boolean;
|
||||
/** Default value: `0` */
|
||||
"baseline.transparency": number;
|
||||
/** Default value: `rgba(0, 0, 0, 0)` */
|
||||
"baseline.color": string;
|
||||
/** Default value: `0` */
|
||||
"baseline.display": number;
|
||||
[key: string]: StudyOverrideValueType;
|
||||
}
|
||||
export interface RawStudyMetaInfo extends RawStudyMetaInfoBase {
|
||||
@@ -18410,10 +18446,14 @@ export interface SortingParameters {
|
||||
* Use these properties to customize indicator via {@link IChartWidgetApi.createStudy} and {@link IStudyApi.applyOverrides}.
|
||||
*/
|
||||
export interface SpreadIndicatorOverrides {
|
||||
/** Default value: `` */
|
||||
"negative fill.color": string;
|
||||
/** Default value: `0` */
|
||||
"negative fill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
"negative fill.visible": boolean;
|
||||
/** Default value: `` */
|
||||
"positive fill.color": string;
|
||||
/** Default value: `0` */
|
||||
"positive fill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
@@ -20394,6 +20434,13 @@ export interface StudyOverrides {
|
||||
* - Max: `2000`
|
||||
*/
|
||||
"donchian channels.length": number;
|
||||
/**
|
||||
* - Default value: `0`
|
||||
* - Input type: `integer`
|
||||
* - Min: `-1000`
|
||||
* - Max: `1000`
|
||||
*/
|
||||
"donchian channels.offset": number;
|
||||
/** Default value: `15` */
|
||||
"double ema.plot.display": number;
|
||||
/** Default value: `0` */
|
||||
@@ -22520,6 +22567,18 @@ export interface StudyOverrides {
|
||||
* - Max: `1000000000000`
|
||||
*/
|
||||
"rate of change.length": number;
|
||||
/** Default value: `` */
|
||||
"ratio.negativefill.color": string;
|
||||
/** Default value: `0` */
|
||||
"ratio.negativefill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
"ratio.negativefill.visible": boolean;
|
||||
/** Default value: `` */
|
||||
"ratio.positivefill.color": string;
|
||||
/** Default value: `0` */
|
||||
"ratio.positivefill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
"ratio.positivefill.visible": boolean;
|
||||
/** Default value: `0` */
|
||||
"ratio.plot.linestyle": number;
|
||||
/** Default value: `2` */
|
||||
@@ -22534,6 +22593,20 @@ export interface StudyOverrides {
|
||||
"ratio.plot.color": string;
|
||||
/** Default value: `15` */
|
||||
"ratio.plot.display": number;
|
||||
/** Default value: `0` */
|
||||
"ratio.baseline.linestyle": number;
|
||||
/** Default value: `2` */
|
||||
"ratio.baseline.linewidth": number;
|
||||
/** Default value: `line` */
|
||||
"ratio.baseline.plottype": LineStudyPlotStyleName;
|
||||
/** Default value: `false` */
|
||||
"ratio.baseline.trackprice": boolean;
|
||||
/** Default value: `0` */
|
||||
"ratio.baseline.transparency": number;
|
||||
/** Default value: `rgba(0, 0, 0, 0)` */
|
||||
"ratio.baseline.color": string;
|
||||
/** Default value: `0` */
|
||||
"ratio.baseline.display": number;
|
||||
/**
|
||||
* - Default value: `close`
|
||||
* - Input type: `text`
|
||||
@@ -22852,10 +22925,14 @@ export interface StudyOverrides {
|
||||
* - Options: `["open","high","low","close","hl2","hlc3","ohlc4"]`
|
||||
*/
|
||||
"smoothed moving average.source": string;
|
||||
/** Default value: `` */
|
||||
"spread.negative fill.color": string;
|
||||
/** Default value: `0` */
|
||||
"spread.negative fill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
"spread.negative fill.visible": boolean;
|
||||
/** Default value: `` */
|
||||
"spread.positive fill.color": string;
|
||||
/** Default value: `0` */
|
||||
"spread.positive fill.transparency": number;
|
||||
/** Default value: `true` */
|
||||
@@ -24909,7 +24986,7 @@ export interface SymbolResolveExtension {
|
||||
/**
|
||||
* Indicates the currency for conversions if `currency_codes` configuration field is set,
|
||||
* and `currency_code` is provided in the original symbol information ({@link LibrarySymbolInfo}).
|
||||
* Read more about [currency conversion](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale#currency-conversion).
|
||||
* Read more about [currency conversion](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale.md#currency-conversion).
|
||||
*/
|
||||
currencyCode?: string;
|
||||
/**
|
||||
@@ -24918,7 +24995,7 @@ export interface SymbolResolveExtension {
|
||||
*/
|
||||
unitId?: string;
|
||||
/**
|
||||
* Trading session string
|
||||
* Trading session type, such as `"regular"` or `"extended"`, that the chart should currently display.
|
||||
*/
|
||||
session?: string;
|
||||
}
|
||||
@@ -26515,6 +26592,24 @@ export interface WatchedValueSubscribeOptions {
|
||||
/** if it is set to true then the callback will be executed with the previous value (if available) */
|
||||
callWithLast?: boolean;
|
||||
}
|
||||
export interface WatchlistSettings {
|
||||
/**
|
||||
* Sets the list of default symbols for watchlist.
|
||||
* Any item in the list which is prefixed with `###` will be considered a section divider in the watchlist.
|
||||
* @default []
|
||||
*
|
||||
* **Example:**
|
||||
* ```js
|
||||
* default_symbols: ['###TOP SECTION', 'AAPL', 'IBM', '###SECOND SECTION', 'MSFT']
|
||||
* ```
|
||||
*/
|
||||
default_symbols: string[];
|
||||
/**
|
||||
* Enables read-only mode for the watchlist.
|
||||
* @default false
|
||||
*/
|
||||
readonly?: boolean;
|
||||
}
|
||||
/**
|
||||
* Data provided to the {@link WatermarkContentProvider}.
|
||||
*/
|
||||
@@ -26575,26 +26670,7 @@ export interface WidgetBarParams {
|
||||
*/
|
||||
datawindow?: boolean;
|
||||
/** Watchlist settings */
|
||||
watchlist_settings?: {
|
||||
/**
|
||||
* Sets the list of default symbols for watchlist.
|
||||
*
|
||||
* Any item in the list which is prefixed with `###` will be considered a
|
||||
* section divider in the watchlist.
|
||||
* @default []
|
||||
*
|
||||
* **Example:**
|
||||
* ```
|
||||
* default_symbols: ['###TOP SECTION', 'AAPL', 'IBM', '###SECOND SECTION', 'MSFT']
|
||||
* ```
|
||||
*/
|
||||
default_symbols: string[];
|
||||
/**
|
||||
* Enables read-only mode for the watchlist
|
||||
* @default false
|
||||
*/
|
||||
readonly?: boolean;
|
||||
};
|
||||
watchlist_settings?: WatchlistSettings;
|
||||
}
|
||||
/**
|
||||
* Overrides for the 'Williams Alligator' indicator.
|
||||
@@ -27090,7 +27166,12 @@ export type ChartingLibraryFeatureset =
|
||||
* Enables an [alternative saving and loading mode](https://www.tradingview.com/charting-library-docs/latest/saving_loading/saving_loading.md#saving-drawings-separately) for the library. This mode saves the state of the drawings separately from the chart layout.
|
||||
* @default false
|
||||
*/
|
||||
"saveload_separate_drawings_storage";
|
||||
"saveload_separate_drawings_storage" |
|
||||
/**
|
||||
* Disables the pulse animation when chart type is set to Line.
|
||||
* @default false
|
||||
*/
|
||||
"disable_pulse_animation";
|
||||
/** These are defining the types for a background */
|
||||
export type ColorTypes = "solid" | "gradient";
|
||||
/**
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
22
charting_library/datafeed-api.d.ts
vendored
22
charting_library/datafeed-api.d.ts
vendored
@@ -536,7 +536,7 @@ export interface LibrarySymbolInfo {
|
||||
* If it's `false` then all buttons for intraday resolutions will be disabled for this particular symbol.
|
||||
* If it is set to `true`, all intradays resolutions that are supplied directly by the datafeed must be provided in `intraday_multipliers` array.
|
||||
*
|
||||
* **WARNING** Any daily, weekly or monthly resolutions cannot be inferred from intraday resolutions!
|
||||
* **WARNING** Any daily, weekly or monthly resolutions cannot be inferred from intraday resolutions.
|
||||
*
|
||||
* `false` if DWM only
|
||||
* @default false
|
||||
@@ -630,7 +630,7 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
has_weekly_and_monthly?: boolean;
|
||||
/**
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution#weeks) (in weeks - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution.md#resolution-in-weeks--months) (in weeks - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
*
|
||||
* For example it could be something like
|
||||
*
|
||||
@@ -641,7 +641,7 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
weekly_multipliers?: string[];
|
||||
/**
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution#months) (in months - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
* Array (of strings) containing the [resolutions](https://www.tradingview.com/charting-library-docs/latest/core_concepts/Resolution.md#resolution-in-weeks--months) (in months - without the suffix) supported by the data feed. {@link ResolutionString}
|
||||
*
|
||||
* For example it could be something like
|
||||
*
|
||||
@@ -663,9 +663,9 @@ export interface LibrarySymbolInfo {
|
||||
/**
|
||||
* Represents what values are supported by the symbol. Possible values:
|
||||
*
|
||||
* - `ohlcv` - the symbol supports open, high, low, close and has volume
|
||||
* - `ohlc` - the symbol supports open, high, low, close, but doesn't have volume
|
||||
* - `c` - the symbol supports only close, it's displayed on the chart using line-based styles only
|
||||
* - `ohlcv` — the symbol supports open, high, low, close prices and has volume.
|
||||
* - `ohlc` — the symbol supports open, high, low, close, prices but doesn't have volume.
|
||||
* - `c` — the symbol supports only close price. This makes the chart show the symbol data using only line-based styles.
|
||||
* @default 'ohlcv'
|
||||
*/
|
||||
visible_plots_set?: VisiblePlotsSet;
|
||||
@@ -726,11 +726,13 @@ export interface LibrarySymbolInfo {
|
||||
*/
|
||||
unit_conversion_types?: string[];
|
||||
/**
|
||||
* Subsession ID. Must match the `id` property of one of the subsessions.
|
||||
* An ID of a subsession specified in {@link subsessions}. The value must match the subsession that is currently displayed on the chart.
|
||||
* For more information, refer to the [Extended sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md#extended-sessions) section.
|
||||
*/
|
||||
subsession_id?: string;
|
||||
/**
|
||||
* Subsessions definitions.
|
||||
* An array of objects that contain information about certain subsessions within the extended session.
|
||||
* For more information, refer to the [Extended sessions](https://www.tradingview.com/charting-library-docs/latest/connecting_data/Symbology.md#extended-sessions) section.
|
||||
*/
|
||||
subsessions?: LibrarySubsessionInfo[];
|
||||
/**
|
||||
@@ -959,7 +961,7 @@ export interface SymbolResolveExtension {
|
||||
/**
|
||||
* Indicates the currency for conversions if `currency_codes` configuration field is set,
|
||||
* and `currency_code` is provided in the original symbol information ({@link LibrarySymbolInfo}).
|
||||
* Read more about [currency conversion](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale#currency-conversion).
|
||||
* Read more about [currency conversion](https://www.tradingview.com/charting-library-docs/latest/ui_elements/Price-Scale.md#currency-conversion).
|
||||
*/
|
||||
currencyCode?: string;
|
||||
/**
|
||||
@@ -968,7 +970,7 @@ export interface SymbolResolveExtension {
|
||||
*/
|
||||
unitId?: string;
|
||||
/**
|
||||
* Trading session string
|
||||
* Trading session type, such as `"regular"` or `"extended"`, that the chart should currently display.
|
||||
*/
|
||||
session?: string;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"description": "CL v27.003 (internal id d1c8c1a5 @ 2024-03-14T16:58:45.558Z)",
|
||||
"description": "CL v27.004 (internal id 1ca8700b @ 2024-04-17T14:32:06.723Z)",
|
||||
"type": "module",
|
||||
"main": "charting_library.cjs.js",
|
||||
"module": "charting_library.esm.js",
|
||||
|
||||
Reference in New Issue
Block a user