From ab6f38b69f6717fbc92d90f6c3d84e8724110e36 Mon Sep 17 00:00:00 2001 From: "jenkins@nwork.local" Date: Fri, 23 Oct 2020 12:16:49 +0000 Subject: [PATCH] Release v17.019 (from 07f6d1aa) Fixes tradingview/charting_library#4742 --- ...542ccdd.html => ar-tv-chart.07f6d1aa.html} | 2 +- ...aad.js => library.1af65fa819ee895d3c25.js} | 34 +++++++++---------- charting_library/charting_library.js | 2 +- ...542ccdd.html => cs-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => da_DK-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => de-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => el-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => en-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => es-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => et_EE-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => fa-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => fr-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => he_IL-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => hu_HU-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => id_ID-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => it-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => ja-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => ko-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => ms_MY-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => nl_NL-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => no-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => pl-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => pt-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => ro-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => ru-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => sk_SK-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => sv-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => th-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => tr-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => vi-tv-chart.07f6d1aa.html} | 2 +- ...542ccdd.html => zh-tv-chart.07f6d1aa.html} | 2 +- ...ccdd.html => zh_TW-tv-chart.07f6d1aa.html} | 2 +- 32 files changed, 48 insertions(+), 48 deletions(-) rename charting_library/{ar-tv-chart.5542ccdd.html => ar-tv-chart.07f6d1aa.html} (99%) rename charting_library/bundles/{library.1ee6259bf3f44a7e9aad.js => library.1af65fa819ee895d3c25.js} (97%) rename charting_library/{cs-tv-chart.5542ccdd.html => cs-tv-chart.07f6d1aa.html} (99%) rename charting_library/{da_DK-tv-chart.5542ccdd.html => da_DK-tv-chart.07f6d1aa.html} (99%) rename charting_library/{de-tv-chart.5542ccdd.html => de-tv-chart.07f6d1aa.html} (99%) rename charting_library/{el-tv-chart.5542ccdd.html => el-tv-chart.07f6d1aa.html} (99%) rename charting_library/{en-tv-chart.5542ccdd.html => en-tv-chart.07f6d1aa.html} (99%) rename charting_library/{es-tv-chart.5542ccdd.html => es-tv-chart.07f6d1aa.html} (99%) rename charting_library/{et_EE-tv-chart.5542ccdd.html => et_EE-tv-chart.07f6d1aa.html} (99%) rename charting_library/{fa-tv-chart.5542ccdd.html => fa-tv-chart.07f6d1aa.html} (99%) rename charting_library/{fr-tv-chart.5542ccdd.html => fr-tv-chart.07f6d1aa.html} (99%) rename charting_library/{he_IL-tv-chart.5542ccdd.html => he_IL-tv-chart.07f6d1aa.html} (99%) rename charting_library/{hu_HU-tv-chart.5542ccdd.html => hu_HU-tv-chart.07f6d1aa.html} (99%) rename charting_library/{id_ID-tv-chart.5542ccdd.html => id_ID-tv-chart.07f6d1aa.html} (99%) rename charting_library/{it-tv-chart.5542ccdd.html => it-tv-chart.07f6d1aa.html} (99%) rename charting_library/{ja-tv-chart.5542ccdd.html => ja-tv-chart.07f6d1aa.html} (99%) rename charting_library/{ko-tv-chart.5542ccdd.html => ko-tv-chart.07f6d1aa.html} (99%) rename charting_library/{ms_MY-tv-chart.5542ccdd.html => ms_MY-tv-chart.07f6d1aa.html} (99%) rename charting_library/{nl_NL-tv-chart.5542ccdd.html => nl_NL-tv-chart.07f6d1aa.html} (99%) rename charting_library/{no-tv-chart.5542ccdd.html => no-tv-chart.07f6d1aa.html} (99%) rename charting_library/{pl-tv-chart.5542ccdd.html => pl-tv-chart.07f6d1aa.html} (99%) rename charting_library/{pt-tv-chart.5542ccdd.html => pt-tv-chart.07f6d1aa.html} (99%) rename charting_library/{ro-tv-chart.5542ccdd.html => ro-tv-chart.07f6d1aa.html} (99%) rename charting_library/{ru-tv-chart.5542ccdd.html => ru-tv-chart.07f6d1aa.html} (99%) rename charting_library/{sk_SK-tv-chart.5542ccdd.html => sk_SK-tv-chart.07f6d1aa.html} (99%) rename charting_library/{sv-tv-chart.5542ccdd.html => sv-tv-chart.07f6d1aa.html} (99%) rename charting_library/{th-tv-chart.5542ccdd.html => th-tv-chart.07f6d1aa.html} (99%) rename charting_library/{tr-tv-chart.5542ccdd.html => tr-tv-chart.07f6d1aa.html} (99%) rename charting_library/{vi-tv-chart.5542ccdd.html => vi-tv-chart.07f6d1aa.html} (99%) rename charting_library/{zh-tv-chart.5542ccdd.html => zh-tv-chart.07f6d1aa.html} (99%) rename charting_library/{zh_TW-tv-chart.5542ccdd.html => zh_TW-tv-chart.07f6d1aa.html} (99%) diff --git a/charting_library/ar-tv-chart.5542ccdd.html b/charting_library/ar-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/ar-tv-chart.5542ccdd.html rename to charting_library/ar-tv-chart.07f6d1aa.html index 4f96777a..30a469e2 100644 --- a/charting_library/ar-tv-chart.5542ccdd.html +++ b/charting_library/ar-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/bundles/library.1ee6259bf3f44a7e9aad.js b/charting_library/bundles/library.1af65fa819ee895d3c25.js similarity index 97% rename from charting_library/bundles/library.1ee6259bf3f44a7e9aad.js rename to charting_library/bundles/library.1af65fa819ee895d3c25.js index f0bad830..2788f8c1 100644 --- a/charting_library/bundles/library.1ee6259bf3f44a7e9aad.js +++ b/charting_library/bundles/library.1af65fa819ee895d3c25.js @@ -296,22 +296,22 @@ t.prototype._makeLine=function(e,t,i,r){if(null!==this._data){var n=t.findIndex( }(a.LineDataSource)},MROS:function(e,t,i){"use strict";i.r(t),i.d(t,"ModelSelection",(function(){return o}));var r=i("Y7w9"),n=i("CW80"),o=function(){function e(){this._items=[],this._set=new Set}return e.prototype.isEmpty=function(){return 0===this._items.length},e.prototype.add=function(e){this._items.length>0&&!Object(n.isLineTool)(this._items[0])&&this.clear(),Object(n.isLineTool)(e)||this.clear();var t=Object(r.lowerbound)(this._items,e,(function(e,t){return e.zorder()i&&this._priceScaleIsPrice(e.rightPriceScales()[i],t))return e.rightPriceScales()[i];if(e.leftPriceScales().length>i&&this._priceScaleIsPrice(e.leftPriceScales()[i],t))return e.leftPriceScales()[i]}return null},e.prototype._targetPriceScaleIndex=function(e,t){if(e.mainSource()===t.mainSeries())return 0},e.prototype._tryToGetDesiredPriceScale=function(e,t,i,r){switch(i){case"left":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("left"):e.createPriceScaleAtPosition("overlay");case"right":return this.canCreateNewPriceScale(e)?e.createPriceScaleAtPosition("right"):e.createPriceScaleAtPosition("overlay");case"as-series":return void 0!==r?Object(n.ensureNotNull)(r.priceScale()):e.isMainPane()?Object(n.ensureNotNull)(Object(n.ensureNotNull)(e.mainDataSource()).priceScale()):this.createNewPriceScaleIfPossible(e);case"overlay":return e.createPriceScaleAtPosition("overlay")}},e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.apply=function(e){if(e.containsMainSeries()){var t=Object(n.ensureNotNull)(Object(n.ensureNotNull)(e.mainDataSource()).priceScale());e.movePriceScale(t,"right",0)}for(var i=e.model();e.leftPriceScales().length>e.rightPriceScales().length;){t=e.leftPriceScales()[e.leftPriceScales().length-1];e.movePriceScale(t,"right",this._targetPriceScaleIndex(t,i))}for(;e.rightPriceScales().length-e.leftPriceScales().length>1;){t=e.rightPriceScales()[e.rightPriceScales().length-1];e.movePriceScale(t,"left",this._targetPriceScaleIndex(t,i))}},t.prototype.createNewPriceScaleIfPossible=function(e){if(!this.canCreateNewPriceScale(e))return e.createPriceScaleAtPosition("overlay");var t=e.leftPriceScales().length=0;--l)if(Math.floor(s/o[l].divisor)!==Math.floor(a/o[l].divisor))return o[l].span},TradingView.ChartapiMessagerInstances=[],e.exports=l}).call(this,i("jCNj"))},"N+BX":function(e,t,i){"use strict";var r=i("Ss5c").LineDataSource,n=i("Ocx9").DefaultProperty,o=i("hayr").propertyPages,s=window.t("Double Curve");function a(e,t){this._constructor="LineToolBezierCubic" -;var n=t||a.createProperties();r.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("a6on").BezierCubicPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(a,r),a.prototype.pointsCount=function(){return 2},a.prototype.translatedType=function(){return s},a.prototype.name=function(){return"Double Curve"},a.prototype.controlPoints=function(){var e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e).scaled(.5).transposed().scaled(.3),r=e.add(t).scaled(.33),n=e.add(t).scaled(.67),o=r.add(i),s=n.subtract(i);return[this.screenPointToPoint(o),this.screenPointToPoint(s)]},a.prototype.setLastPoint=function(e,t){r.prototype.setLastPoint.call(this,e,t),this._controlPoints=this.controlPoints()},a.prototype.addPoint=function(e,t,i){var n=r.prototype.addPoint.call(this,e,t,!0);if(n){var o=this.controlPoints();delete this._controlPoints,this._points.push(o[0]),this._points.push(o[1]),i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2),this._createPointProperty(3)}return n},a.prototype.restorePoints=function(e,t,i){r.prototype.restorePoints.call(this,e,t,i),this._createPointProperty(2),this._createPointProperty(3)},a.prototype.getStylesPropertyPage=function(){return o.LineToolBezierStylesPropertyPage},a.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(21),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("b4fl").GeneralBezierDefinitionsViewModel}.bind(null,i)).catch(i.oe)},a.createProperties=function(e){var t=new n("linetoolbeziercubic",e);return a._configureProperties(t),t},a._configureProperties=function(e){r._configureProperties(e)},t.LineToolBezierCubic=a},N1UO:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyApi",(function(){return h}));var r=i("mrSG"),n=(i("YFKU"),i("Eyy1")),o=i("9iCb"),s=i("xo8u"),a=i("gaBL"),l=i("HGup"),c=i("jRfx"),u=i("/ToI"),h=function(){function e(e,t){this._study=e,this._undoModel=t,this._model=t.model()}return e.prototype.isUserEditEnabled=function(){return this._study.userEditEnabled()},e.prototype.setUserEditEnabled=function(e){this._study.setUserEditEnabled(e)},e.prototype.getInputsInfo=function(){return this._study.metaInfo().inputs.map((function(e){return Object(r.__assign)(Object(r.__assign)({},e),{localizedName:void 0!==e.name?window.t(e.name,{context:"input"}):""})}))},e.prototype.getInputValues=function(){var e=this._study.inputs();return Object.keys(e).map((function(t){return{id:t,value:e[t]}}))},e.prototype.setInputValues=function(e){for(var t=this.getInputValues(),i=function(e){void 0!==t.find((function(t){return t.id===e.id}))?r._study.properties().inputs[e.id].setValue(e.value):console.warn('There is no such input: "'+e.id+'"')},r=this,n=0,o=e;n0&&(i.drawImage(a.leftAxis.canvas,l,n),l+=a.leftAxis.canvas.width),i.drawImage(a.canvas,l,n),l+=a.canvas.width,a.rightAxis.contentWidth>0&&i.drawImage(a.rightAxis.canvas,l,n),"pane"===a.type){var d=17*r;i.fillStyle=e.colors.text,a.mainSeriesText&&h+d0&&(i.drawImage(e.timeAxis.lhsStub.canvas,l,n),l+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,l,n),l+=e.timeAxis.canvas.width,e.timeAxis.rhsStub.contentWidth>0&&i.drawImage(e.timeAxis.rhsStub.canvas,l,n)}i.restore()}function y(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,i,l,c,u,d,f,y,g,v,S,b,w,P,C,x,T;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:for(t=p[e.layout],i=e.charts.map((function(e){return function(e){ -for(var t=e.panes[0],i=t.canvas.width+t.leftAxis.canvas.width+t.rightAxis.canvas.width,r=0,o=0,s=e.panes;o=i&&l<=n){var c=a.y;if(e.y>=Math.min(c,this._data.histogramBase)&&e.y<=Math.max(c,this._data.histogramBase))return new r.HitTestResult(r.HitTestResult.REGULAR)}}return null},e.prototype._fillPrecalculatedCache=function(e){if(null!==this._data&&0!==this._data.items.length){var t=Math.ceil(this._data.barSpacing*e)<=1?0:Math.max(1,Math.floor(e)),i=Math.round(this._data.barSpacing*e)-t -;this._precalculatedCache=new Array(this._data.items.length);for(var r=0;ru.center?u.right=c.left-t-1:c.left=u.right+t+1))}var h=Math.ceil(this._data.barSpacing*e);for(r=0;r0&&h<4)for(r=0;rh&&(c.roundedCenter>c.center?c.right-=1:c.left+=1)}}else this._precalculatedCache=[]},e}()},NhkU:function(e,t,i){"use strict";var r=i("Ss5c").LineDataSource,n=i("5rJj"),o=i("hayr").propertyPages,s=i("ytGH").LineToolWidthsProperty,a=window.t("Pitchfan");function l(e,t){this._constructor="LineToolPitchfan";var n=t||l.createProperties();r.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("l5Au").PitchfanLinePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe);for(var o=[this._properties.child("median").child("linewidth")],a=0;a<=l.LevelsCount;a++)o.push(this._properties.child("level"+a).child("linewidth"));this._widthsProperty=new s(o)}inherit(l,r),l.LevelsCount=8,l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.pointsCount=function(){return 3},l.prototype.translatedType=function(){return a},l.prototype.name=function(){return"Pitchfan"},l.prototype.processErase=function(e,t){var i="level"+t,r=this.properties()[i].visible;e.setProperty(r,!1,"Erase level line")},l.prototype.getStylesPropertyPage=function(){return o.LineToolPitchfanStylesPropertyPage},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(21),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("D+Nk").PitchBaseDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new n("linetoolpitchfan",e,!1,{range:[0,8]});return l._configureProperties(t),t},l._configureProperties=function(e){r._configureProperties(e)},t.LineToolPitchfan=l},NsVT:function(e,t,i){"use strict";i.r(t);var r=i("hY0g"),n=i.n(r),o=i("HySD");function s(e,t){for(var i=0,r=0,n=t;r0&&t.push({min:o,max:s})}return t.sort((function(e,t){return e.min-t.min||e.max-t.max})),t}function l(e,t){if(e.length!==t.length)return!1;for(var i=e.length;i--;){if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1} -return!0}var c=i("+GxX"),u=i("Kxc7");i.d(t,"ChartPage",(function(){return d}));var h=u.enabled("no_min_chart_width"),d=function(){function e(e){var t=this;this._processVisibility=function(e){var i=e.container.value();return t._affectsLayout(e.name)?(i&&i.classList.toggle("js-hidden",!1),!0):(i&&i.classList.toggle("js-hidden",!0),!1)},this._setWidth=function(e,i){var r=i;t._fullscreenArea!==e.name&&(e.availWidth.setValue(i),e.canNegotiate.width&&(r=s(i,e.negotiations.width)));var n=e.container.value();return n&&(n.style.width=r+"px"),e.width.setValue(r),r},this._setHeight=function(e,i){var r=i;t._fullscreenArea!==e.name&&(e.availHeight.setValue(i),e.canNegotiate.height&&(r=s(i,e.negotiations.height)));var n=e.container.value();return n&&(n.style.height=r+"px"),e.height.setValue(r),r};var i=e.container.value();if(!i)throw new Error("bridge.container.value() must be an element");this._container=i,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width,this._height=e.height,this._width.subscribe((function(){return t.recalculate()})),this._height.subscribe((function(){return t.recalculate()})),this._bridge.visible.subscribe((function(){return t._updateVisibility()})),this._bridge.fullscreen.subscribe((function(){return t._onParentFullscreenChange()})),this.recalculate()}return e.prototype.allocate=function(e){var t=this,i=e&&e.areaName;if(-1===this._availableAreas.indexOf(i))throw new Error("unknown options.areaName");this.free(i);var r=this._createDOM(i),s={name:i,canNegotiate:{width:"left"===i||"right"===i||"tradingpanel"===i||"topleft"===i,height:"top"===i||"bottom"===i||"topleft"===i||"extratop"===i},negotiations:{width:[],height:[]},remove:function(){for(var e in t._areas)t._areas[e]===s&&t.free(e)},negotiateWidth:function(e){if(s.canNegotiate.width){var i=a(e);l(s.negotiations.width,i)||(s.negotiations.width=i,t.recalculate())}},negotiateHeight:function(e){if(s.canNegotiate.height){var i=a(e);l(s.negotiations.height,i)||(s.negotiations.height=i,t.recalculate())}},requestFullscreen:function(){t._fullscreenArea||("right"!==i&&"center"!==i||(t._fullscreenArea=i),"center"===i&&t._bridge.requestFullscreen(),t._updateFullscreen())},exitFullscreen:function(){i===t._fullscreenArea&&(t._fullscreenArea=void 0,"center"===i&&t._bridge.exitFullscreen(),t._updateFullscreen())},width:new n.a,height:new n.a,availWidth:new n.a,availHeight:new n.a,alive:new n.a(!0),container:new n.a(r),visible:new n.a(!0),fullscreen:new n.a(!0),rdState:new o.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[i]=s,s.rdState.owner.subscribe((function(e){var r=s.container.value();if(e!==s)r&&(r.innerHTML="",r.parentElement&&r.parentElement.removeChild(r));else{for(var n=null,o=t._availableAreas.indexOf(i);o--;){var a=t._availableAreas[o];if(t._affectsLayout(a)){n=t._areas[a].container.value();break}}r&&(n&&r.parentElement?r.insertAdjacentElement("afterend",n):t._container.appendChild(r))}t.recalculate()}),{callWithLast:!0}),s.rdState.bridge()}, -e.prototype.free=function(e){var t=this._areas[e];if(t){this._areas[e]=void 0;var i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}},e.prototype.recalculate=function(){var e={};this._recalcSingleRunToken=e;var t=this._areas.topleft,i=this._areas.left,r=this._areas.tradingpanel,n=this._areas.right,o=this._areas.top,s=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),u=this._height.value(),d=0,p=0,f=0,_=0,m=0,y=0,g=0,v=0;(e===this._recalcSingleRunToken&&l&&this._processVisibility(l)&&(v=this._setHeight(l,u),this._setWidth(l,c)),e===this._recalcSingleRunToken&&t&&this._processVisibility(t))&&(g=this._setHeight(t,u),(y=this._setWidth(t,c))&&(y+=4),(L=t.container.value())&&(L.style.top=v+"px"));e===this._recalcSingleRunToken&&i&&this._processVisibility(i)&&((L=i.container.value())&&(L.style.top=g+v+"px"),this._setHeight(i,u-g-v),(f=this._setWidth(i,c))&&(f+=4));if(e===this._recalcSingleRunToken&&r&&this._processVisibility(r)){this._setHeight(r,u);var S=c-f;h||(S-=300),m=this._setWidth(r,S)}if(e===this._recalcSingleRunToken&&n&&this._processVisibility(n)){this._setHeight(n,u-v);S=c-f-m;h||(S-=300),_=this._setWidth(n,S),(L=n.container.value())&&(L.style.top=v+"px")}var b=m+_,w=b?4:0;if(e===this._recalcSingleRunToken&&o&&this._processVisibility(o)){var P=Math.max(y,f);(L=o.container.value())&&(L.style.left=P+"px",L.style.top=v+"px");S=c-P-m-_-w;this._setWidth(o,S),d=this._setHeight(o,u)}var C=0,x=c-f-m-_-w;if(e===this._recalcSingleRunToken&&s&&this._processVisibility(s)){(L=s.container.value())&&(L.style.left=f+"px",L.classList.toggle("no-border-top-left-radius",!f),L.classList.toggle("no-border-top-right-radius",!b)),this._setWidth(s,x);var T=u-d-v;C=Math.min(300,T-0),p=this._setHeight(s,T)+4}if(e===this._recalcSingleRunToken&&a&&this._processVisibility(a)){var L;(L=a.container.value())&&(L.style.left=f+"px",L.style.top=d+v+"px",L.classList.toggle("no-border-bottom-left-radius",!p||!f),L.classList.toggle("no-border-bottom-right-radius",!b||!p)),this._setWidth(a,x);T=u-d-p-v;this._setHeight(a,Math.max(T,C))}e===this._recalcSingleRunToken&&r&&this._affectsLayout("tradingpanel")&&((L=r.container.value())&&(L.style.right=_+"px",L.style.top=v+"px"));e===this._recalcSingleRunToken&&this._updateVisibility()},e.prototype._affectsLayout=function(e){var t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return p(e);if(this._width.value()<=567||this._height.value()<=445){var i=["center","top","left","topleft","extratop"];if(Object(c.isFeatureEnabled)("mobile_show_bottom_panel")&&i.push("bottom"),!i.includes(e))return!1}return!0},e.prototype._updateVisibility=function(){for(var e=this._bridge.visible.value(),t=0;te.year||this.year===e.year&&this.month>e.month||this.year===e.year&&this.month===e.month&&this.day>e.day?1:this.year===e.year&&this.month===e.month&&this.day===e.day?0:-1},e.prototype.before=function(e){return-1===this.compareTo(e)},e.prototype.toCalendar=function(e){return r.get_cal(r.get_timezone("Etc/UTC"),this.year,this.month-1,this.day)},e.prototype.addDays=function(t){var i=this.toCalendar(r.get_timezone("Etc/UTC"));return r.add_date(i,t),e.fromCalendar(i)},e.fromCalendar=function(t){return new e(r.get_year(t),r.get_month(t)+1,r.get_day_of_month(t))},e}()},OH2X:function(e,t,i){"use strict";t.LineToolFibRetracement=i("t2ex").LineToolFibRetracement,t.LineToolFibChannel=i("xnA2").LineToolFibChannel,t.LineToolFibSpeedResistanceArcs=i("Yjuu").LineToolFibSpeedResistanceArcs,t.LineToolProjection=i("68at").LineToolProjection,t.LineToolTrendBasedFibExtension=i("ZtA1").LineToolTrendBasedFibExtension,t.LineToolElliott=i("xz+e").LineToolElliott,t.LineToolFibCircles=i("4bfY").LineToolFibCircles,t.LineToolVertLine=i("n40Z").LineToolVertLine,t.LineToolCrossLine=i("MA5A").LineToolCrossLine,t.LineToolBarsPattern=i("2bPF").LineToolBarsPattern,t.LineToolTrendBasedFibTime=i("yUly").LineToolTrendBasedFibTime,t.LineToolFibTimeZone=i("FsE7").LineToolFibTimeZone,t.LineToolCircleLines=i("tG6Q").LineToolCircleLines,t.LineToolDateRange=i("WkYF").LineToolDateRange,t.LineToolPriceRange=i("RDDl").LineToolPriceRange,t.LineToolDateAndPriceRange=i("UCMi").LineToolDateAndPriceRange,t.LineToolParallelChannel=i("qcGP").LineToolParallelChannel,t.LineToolTrendAngle=i("nW7S").LineToolTrendAngle,t.LineToolTrendLine=i("WPQD").LineToolTrendLine,t.LineToolInfoLine=i("yi8X").LineToolInfoLine,t.LineToolArrowMark=i("TohL").LineToolArrowMark,t.LineToolExecution=i("704P").LineToolExecution,t.LineToolPitchfan=i("NhkU").LineToolPitchfan,t.LineToolGannSquare=i("Z0Sh").LineToolGannSquare,t.LineToolFibSpeedResistanceFan=i("zZ5f").LineToolFibSpeedResistanceFan,t.LineToolGannComplex=i("nd9+").LineToolGannComplex,t.LineToolGannFixed=i("TBaH").LineToolGannFixed,t.LineToolGannFan=i("4u8j").LineToolGannFan,t.LineToolFibWedge=i("9QkW").LineToolFibWedge,t.LineToolPitchfork=i("aDyP").LineToolPitchfork,t.LineToolDisjointAngle=i("oIoN").LineToolDisjointChannel,t.LineToolFlatBottom=i("InMJ").LineToolFlatBottom,t.LineToolIcon=i("icPo").LineToolIcon,t.LineToolRotatedRectangle=i("Az04").LineToolRotatedRectangle,t.LineToolFibSpiral=i("i80N").LineToolFibSpiral,t.LineToolHeadAndShoulders=i("aILO").LineToolHeadAndShoulders,t.LineToolTriangle=i("isVH").LineToolTriangle,t.LineToolTrianglePattern=i("lNN+").LineToolTrianglePattern,t.LineTool5PointsPattern=i("NJRZ").LineTool5PointsPattern,t.LineToolThreeDrivers=i("PYn8").LineToolThreeDrivers,t.LineToolABCD=i("pKDv").LineToolABCD,t.LineToolPolyline=i("hP9j").LineToolPolyline,t.LineToolPrediction=i("Wh6B").LineToolPrediction,t.LineToolPriceLabel=i("zqZp").LineToolPriceLabel,t.LineToolArrowMarker=i("wiuq").LineToolArrowMarker,t.LineToolNote=i("gLxC").LineToolNote,t.LineToolNoteAbsolute=i("gLxC").LineToolNoteAbsolute, -t.LineToolBrush=i("+hLl").LineToolBrush,t.LineToolArc=i("0Pxc").LineToolArc,t.LineToolCallout=i("odCa").LineToolCallout,t.LineToolBalloon=i("me8f").LineToolBalloon,t.LineToolText=i("V3Oj").LineToolText,t.LineToolHorzLine=i("/DxK").LineToolHorzLine,t.LineToolHorzRay=i("CJIV").LineToolHorzRay,t.LineToolRectangle=i("7qI1").LineToolRectangle,t.LineToolEllipse=i("V086").LineToolEllipse,t.LineToolTimeCycles=i("kIXa").LineToolTimeCycles,t.LineToolSineLine=i("bv/X").LineToolSineLine,t.LineToolGhostFeed=i("XUCF").LineToolGhostFeed,t.LineToolBezierQuadro=i("Xyly").LineToolBezierQuadro,t.LineToolBezierCubic=i("N+BX").LineToolBezierCubic,t.LineToolArrow=i("QQu0").LineToolArrow,t.LineToolRay=i("5ZUI").LineToolRay,t.LineToolExtended=i("CHw2").LineToolExtended,t.LineToolSchiffPitchfork=i("v5F8").LineToolSchiffPitchfork,t.LineToolSchiffPitchfork2=i("XFad").LineToolSchiffPitchfork2,t.LineToolInsidePitchfork=i("EqoR").LineToolInsidePitchfork,t.LineToolTextAbsolute=i("V3Oj").LineToolTextAbsolute,t.LineToolArrowMarkLeft=i("TohL").LineToolArrowMarkLeft,t.LineToolArrowMarkRight=i("TohL").LineToolArrowMarkRight,t.LineToolArrowMarkUp=i("TohL").LineToolArrowMarkUp,t.LineToolArrowMarkDown=i("TohL").LineToolArrowMarkDown,t.LineToolFlagMark=i("aIha").LineToolFlagMark,t.LineToolCypherPattern=i("bTqm").LineToolCypherPattern,t.LineToolElliottImpulse=i("xz+e").LineToolElliottImpulse,t.LineToolElliottTriangle=i("xz+e").LineToolElliottTriangle,t.LineToolElliottTripleCombo=i("xz+e").LineToolElliottTripleCombo,t.LineToolElliottCorrection=i("xz+e").LineToolElliottCorrection,t.LineToolElliottDoubleCombo=i("xz+e").LineToolElliottDoubleCombo,t.LineToolRiskRewardLong=i("tDUI").LineToolRiskRewardLong,t.LineToolRiskRewardShort=i("tDUI").LineToolRiskRewardShort,t.LineToolPosition=i("ziJ5").LineToolPosition,t.LineToolOrder=i("B4/o").LineToolOrder},"OK+B":function(e,t,i){"use strict";var r=i("Eyy1").assert,n=i("eJTA"),o=n.rgba,s=n.rgbaToString,a=n.parseRgb,l=i("+GxX").isFeatureEnabled,c=i("cWHH"),u=i("1Wlv").PriceScale,h=i("8sOK").StudyStub,d=i("CW80"),p=d.createLineTool,f=d.createLineToolProperties,_=d.createStudyLineToolProperties,m=d.isLineToolName,y=d.isStudyLineToolName,g=i("Ss5c").LineDataSource,v=i("OH2X").LineToolBarsPattern,S=i("OH2X").LineToolCallout,b=i("HLXm"),w=i("GVHu"),P=w.Study,C=w.prepareStudyPropertiesForLoadChart,x=i("3ClC").createStudy,T=i("qJq3").Series,L=i("dfhE"),I=i("n5al"),M=i("0YCj"),O=i("Kxc7"),A=i("uOxu").getLogger("Chart.Serialization"),k=i("OH2X").LineToolParallelChannel,E=i("OH2X").LineToolTrendAngle,D=i("OH2X").LineToolGhostFeed,V=i("OH2X").LineToolElliott,B=i("7ktv").PriceDataSource,R=i("iDOr").Pane,N=i("Tmoa"),F=i("jofe").createDeferredPromise,j=i("ApcL").preferencesByWhiteList,W=(A=i("uOxu").getLogger("Chart.Serialization"),i("mPvX").LineToolsGroupModel);c.version=2,c.prototype.state=function(e,t,i){for(var r={panes:[]},n=0;n1&&n.push(l)),s=(s+1)%t.length}return n},c.prototype.restoreState=function(e,t,i){new z(this).reset();var r={};if(e.panes)if(Array.isArray(e.panes)){if(!(e.panes.length<1)){if(this._shouldBeSavedEvenIfHidden=void 0===e.shouldBeSavedEvenIfHidden||e.shouldBeSavedEvenIfHidden,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){var n=TradingView.factoryDefaults("chartproperties").scalesProperties;TradingView.merge(n,e.chartProperties.scalesProperties),!("showLastValue"in n)||"showSeriesLastValue"in n||"showStudyLastValue"in n||(n.showSeriesLastValueProperty=n.showLastValue,n.showStudyLastValueProperty=n.showLastValue),"showSeriesLastValue"in n&&(r.showSeriesLastValueProperty=!0),"showStudyLastValue"in n&&(r.showStudyLastValueProperty=!0),e.chartProperties.paneProperties.vertGridProperties=e.chartProperties.paneProperties.vertGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),e.chartProperties.paneProperties.horzGridProperties=e.chartProperties.paneProperties.horzGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),this._properties.paneProperties.mergeAndFire(e.chartProperties.paneProperties),this._properties.scalesProperties.mergeAndFire(n),e.chartProperties.timezone&&this._properties.timezone.setValue(e.chartProperties.timezone),e.chartProperties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties),this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()} -if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){var o=this._getExceedingChildStudies(e.panes);if(o.length)for(var s=e.panes.length-1;s>=0;--s){for(var a=(h=e.panes[s]).sources.length-1;a>=0;--a){var l=h.sources[a];~o.indexOf(l)&&h.sources.splice(a,1)}h.sources.length||e.panes.splice(s,1)}}var c=e.panes;this.panes()[0].restoreState(c[0],t,e.version,r,i,!0);var u=1;for(s=1;sm&&f%100==0?{lines_limit_exceeded:!0,line_tools_count:f}:(this._dataSourceCollectionChanged.fire(),{})}A.logDebug("ChartModel.restoreState: invalid state")}else A.logDebug("ChartModel.restoreState: invalid state");else A.logDebug("ChartModel.restoreState: invalid state")},R.prototype.state=function(e,t,i,r,n){var o={},s=new Map;function a(e){if(s.has(e))return s.get(e);var o=null,a=i&&!e.isSavedInStudyTemplates()||!e.state||!(o=e.state(t,n))||!e.isSavedInChart(t)||r&&e.isActualSymbol&&!e.isActualSymbol()?null:o;return s.set(e,a),a}if(e){o.sources=[];for(var l=0;l1e200){var m=h-1;A.logWarn("Datasource zorder has bad value: "+f.zorder+" Resetting it to "+m),f.zorder=m}else if(!this.isZOrderAvailable(f.zorder)){l&&"MainSeries"===_&&this._model.mainSeries().zorder()===f.zorder||(f.zorder=d+1)}s[O=f.id]=f.ownerSource,_&&("MainSeries"===_?this._restoreMainSeries(f,t,l,r,n,o):_.toLowerCase().startsWith("study")?this._restoreStudy(f,t,r,o):TradingView.isInherited(TradingView[_],g)?this.restoreLineTool(f,t,void 0,o):TradingView[_]&&TradingView[_].createFromState&&this._restoreSpecialSource(f,t,o)),h=Math.min(h,f.zorder),d=Math.max(d,f.zorder)}}}var y,v,S=new Set,b=this;function w(e){var t=defaults("chartproperties").paneProperties.axisProperties,i=new u(b.model().properties().scalesProperties,t);return i.restoreState(e.state),e.sources.forEach((function(e){var r=b.dataSourceForId(e);r&&function(e,t,i){S.add(e),void 0!==i.m_showSymbolLabels&&e instanceof T&&b.model().properties().scalesProperties.showSymbolLabels.setValue(i.m_showSymbolLabels),e.setPriceScale(t),t.addDataSource(e)}(r,i,t)})),0===i.dataSources().length?null:i}if(e.leftAxisesState)y=e.leftAxisesState.map(w).filter((function(e){return null!==e}));else{var C=w({state:e.leftAxisState,sources:e.leftAxisSources});y=null!==C?[C]:[]} -if(this._leftPriceScales.slice().forEach(function(e){this.removePriceScale(e)}.bind(this)),this._leftPriceScales=[],y.forEach((function(e){b._placePriceScale(e,"left")})),e.rightAxisesState)v=e.rightAxisesState.map(w).filter((function(e){return null!==e}));else{var x=w({state:e.rightAxisState,sources:e.rightAxisSources});v=null!==x?[x]:[]}this._rightPriceScales.forEach(function(e){this.removePriceScale(e)}.bind(this)),this._rightPriceScales=[],v.forEach((function(e){b._placePriceScale(e,"right")})),this._currentPriceScaleRatio=e.priceScaleRatio||e.leftPriceScaleRatio||e.rightPriceScaleRatio||null;for(p=0;p=0;--a)if(Math.floor(o/n[a].divisor)!==Math.floor(s/n[a].divisor))return n[a].span}, +TradingView.ChartapiMessagerInstances=[],e.exports=l}).call(this,i("jCNj"))},"N+BX":function(e,t,i){"use strict";var r=i("Ss5c").LineDataSource,n=i("Ocx9").DefaultProperty,o=i("hayr").propertyPages,s=window.t("Double Curve");function a(e,t){this._constructor="LineToolBezierCubic";var n=t||a.createProperties();r.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("a6on").BezierCubicPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(a,r),a.prototype.pointsCount=function(){return 2},a.prototype.translatedType=function(){return s},a.prototype.name=function(){return"Double Curve"},a.prototype.controlPoints=function(){var e=this.pointToScreenPoint(this.points()[0])[0],t=this.pointToScreenPoint(this.points()[1])[0],i=t.subtract(e).scaled(.5).transposed().scaled(.3),r=e.add(t).scaled(.33),n=e.add(t).scaled(.67),o=r.add(i),s=n.subtract(i);return[this.screenPointToPoint(o),this.screenPointToPoint(s)]},a.prototype.setLastPoint=function(e,t){r.prototype.setLastPoint.call(this,e,t),this._controlPoints=this.controlPoints()},a.prototype.addPoint=function(e,t,i){var n=r.prototype.addPoint.call(this,e,t,!0);if(n){var o=this.controlPoints();delete this._controlPoints,this._points.push(o[0]),this._points.push(o[1]),i||(this.normalizePoints(),this.createServerPoints()),this._createPointProperty(2),this._createPointProperty(3)}return n},a.prototype.restorePoints=function(e,t,i){r.prototype.restorePoints.call(this,e,t,i),this._createPointProperty(2),this._createPointProperty(3)},a.prototype.getStylesPropertyPage=function(){return o.LineToolBezierStylesPropertyPage},a.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(21),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("b4fl").GeneralBezierDefinitionsViewModel}.bind(null,i)).catch(i.oe)},a.createProperties=function(e){var t=new n("linetoolbeziercubic",e);return a._configureProperties(t),t},a._configureProperties=function(e){r._configureProperties(e)},t.LineToolBezierCubic=a},N1UO:function(e,t,i){"use strict";i.r(t),i.d(t,"StudyApi",(function(){return h}));var r=i("mrSG"),n=(i("YFKU"),i("Eyy1")),o=i("9iCb"),s=i("xo8u"),a=i("gaBL"),l=i("HGup"),c=i("jRfx"),u=i("/ToI"),h=function(){function e(e,t){this._study=e,this._undoModel=t,this._model=t.model()}return e.prototype.isUserEditEnabled=function(){return this._study.userEditEnabled()},e.prototype.setUserEditEnabled=function(e){this._study.setUserEditEnabled(e)},e.prototype.getInputsInfo=function(){return this._study.metaInfo().inputs.map((function(e){return Object(r.__assign)(Object(r.__assign)({},e),{localizedName:void 0!==e.name?window.t(e.name,{context:"input"}):""})}))},e.prototype.getInputValues=function(){var e=this._study.inputs();return Object.keys(e).map((function(t){return{id:t,value:e[t]}}))},e.prototype.setInputValues=function(e){for(var t=this.getInputValues(),i=function(e){void 0!==t.find((function(t){return t.id===e.id +}))?r._study.properties().inputs[e.id].setValue(e.value):console.warn('There is no such input: "'+e.id+'"')},r=this,n=0,o=e;n0&&(i.drawImage(a.leftAxis.canvas,l,n),l+=a.leftAxis.canvas.width),i.drawImage(a.canvas,l,n),l+=a.canvas.width,a.rightAxis.contentWidth>0&&i.drawImage(a.rightAxis.canvas,l,n),"pane"===a.type){var d=17*r;i.fillStyle=e.colors.text,a.mainSeriesText&&h+d0&&(i.drawImage(e.timeAxis.lhsStub.canvas,l,n),l+=e.timeAxis.lhsStub.canvas.width),i.drawImage(e.timeAxis.canvas,l,n),l+=e.timeAxis.canvas.width, +e.timeAxis.rhsStub.contentWidth>0&&i.drawImage(e.timeAxis.rhsStub.canvas,l,n)}i.restore()}function y(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,i,l,c,u,d,f,y,g,v,S,b,w,P,C,x,T;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:for(t=p[e.layout],i=e.charts.map((function(e){return function(e){for(var t=e.panes[0],i=t.canvas.width+t.leftAxis.canvas.width+t.rightAxis.canvas.width,r=0,o=0,s=e.panes;o=i&&l<=n){var c=a.y +;if(e.y>=Math.min(c,this._data.histogramBase)&&e.y<=Math.max(c,this._data.histogramBase))return new r.HitTestResult(r.HitTestResult.REGULAR)}}return null},e.prototype._fillPrecalculatedCache=function(e){if(null!==this._data&&0!==this._data.items.length){var t=Math.ceil(this._data.barSpacing*e)<=1?0:Math.max(1,Math.floor(e)),i=Math.round(this._data.barSpacing*e)-t;this._precalculatedCache=new Array(this._data.items.length);for(var r=0;ru.center?u.right=c.left-t-1:c.left=u.right+t+1))}var h=Math.ceil(this._data.barSpacing*e);for(r=0;r0&&h<4)for(r=0;rh&&(c.roundedCenter>c.center?c.right-=1:c.left+=1)}}else this._precalculatedCache=[]},e}()},NhkU:function(e,t,i){"use strict";var r=i("Ss5c").LineDataSource,n=i("5rJj"),o=i("hayr").propertyPages,s=i("ytGH").LineToolWidthsProperty,a=window.t("Pitchfan");function l(e,t){this._constructor="LineToolPitchfan";var n=t||l.createProperties();r.call(this,e,n),i.e("lt-pane-views").then(function(e){var t=i("l5Au").PitchfanLinePaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe);for(var o=[this._properties.child("median").child("linewidth")],a=0;a<=l.LevelsCount;a++)o.push(this._properties.child("level"+a).child("linewidth"));this._widthsProperty=new s(o)}inherit(l,r),l.LevelsCount=8,l.prototype.levelsCount=function(){return l.LevelsCount},l.prototype.pointsCount=function(){return 3},l.prototype.translatedType=function(){return a},l.prototype.name=function(){return"Pitchfan"},l.prototype.processErase=function(e,t){var i="level"+t,r=this.properties()[i].visible;e.setProperty(r,!1,"Erase level line")},l.prototype.getStylesPropertyPage=function(){return o.LineToolPitchfanStylesPropertyPage},l.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(21),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("D+Nk").PitchBaseDefinitionsViewModel}.bind(null,i)).catch(i.oe)},l.createProperties=function(e){var t=new n("linetoolpitchfan",e,!1,{range:[0,8]});return l._configureProperties(t),t},l._configureProperties=function(e){r._configureProperties(e)},t.LineToolPitchfan=l},NsVT:function(e,t,i){"use strict";i.r(t);var r=i("hY0g"),n=i.n(r),o=i("HySD");function s(e,t){for(var i=0,r=0,n=t;r0&&t.push({min:o,max:s})}return t.sort((function(e,t){return e.min-t.min||e.max-t.max})),t}function l(e,t){if(e.length!==t.length)return!1;for(var i=e.length;i--;){if(e[i].min!==t[i].min)return!1;if(e[i].max!==t[i].max)return!1}return!0}var c=i("+GxX"),u=i("Kxc7");i.d(t,"ChartPage",(function(){return d}));var h=u.enabled("no_min_chart_width"),d=function(){function e(e){var t=this;this._processVisibility=function(e){var i=e.container.value();return t._affectsLayout(e.name)?(i&&i.classList.toggle("js-hidden",!1),!0):(i&&i.classList.toggle("js-hidden",!0),!1)},this._setWidth=function(e,i){var r=i;t._fullscreenArea!==e.name&&(e.availWidth.setValue(i),e.canNegotiate.width&&(r=s(i,e.negotiations.width)));var n=e.container.value();return n&&(n.style.width=r+"px"),e.width.setValue(r),r},this._setHeight=function(e,i){var r=i;t._fullscreenArea!==e.name&&(e.availHeight.setValue(i),e.canNegotiate.height&&(r=s(i,e.negotiations.height)));var n=e.container.value();return n&&(n.style.height=r+"px"),e.height.setValue(r),r};var i=e.container.value();if(!i)throw new Error("bridge.container.value() must be an element");this._container=i,this._availableAreas=["left","tradingpanel","right","top","bottom","center","topleft","extratop"],this._areas={},this._bridge=e,this._width=e.width,this._height=e.height,this._width.subscribe((function(){return t.recalculate()})),this._height.subscribe((function(){return t.recalculate()})),this._bridge.visible.subscribe((function(){return t._updateVisibility()})),this._bridge.fullscreen.subscribe((function(){return t._onParentFullscreenChange()})),this.recalculate()}return e.prototype.allocate=function(e){var t=this,i=e&&e.areaName;if(-1===this._availableAreas.indexOf(i))throw new Error("unknown options.areaName");this.free(i);var r=this._createDOM(i),s={name:i,canNegotiate:{width:"left"===i||"right"===i||"tradingpanel"===i||"topleft"===i,height:"top"===i||"bottom"===i||"topleft"===i||"extratop"===i},negotiations:{width:[],height:[]},remove:function(){for(var e in t._areas)t._areas[e]===s&&t.free(e)},negotiateWidth:function(e){if(s.canNegotiate.width){var i=a(e);l(s.negotiations.width,i)||(s.negotiations.width=i,t.recalculate())}},negotiateHeight:function(e){if(s.canNegotiate.height){var i=a(e);l(s.negotiations.height,i)||(s.negotiations.height=i,t.recalculate())}},requestFullscreen:function(){t._fullscreenArea||("right"!==i&&"center"!==i||(t._fullscreenArea=i),"center"===i&&t._bridge.requestFullscreen(),t._updateFullscreen())},exitFullscreen:function(){i===t._fullscreenArea&&(t._fullscreenArea=void 0,"center"===i&&t._bridge.exitFullscreen(),t._updateFullscreen())},width:new n.a,height:new n.a,availWidth:new n.a,availHeight:new n.a,alive:new n.a(!0),container:new n.a(r),visible:new n.a(!0),fullscreen:new n.a(!0),rdState:new o.ResizerDetacherState};return s.rdState.pushOwner(s),this._areas[i]=s,s.rdState.owner.subscribe((function(e){ +var r=s.container.value();if(e!==s)r&&(r.innerHTML="",r.parentElement&&r.parentElement.removeChild(r));else{for(var n=null,o=t._availableAreas.indexOf(i);o--;){var a=t._availableAreas[o];if(t._affectsLayout(a)){n=t._areas[a].container.value();break}}r&&(n&&r.parentElement?r.insertAdjacentElement("afterend",n):t._container.appendChild(r))}t.recalculate()}),{callWithLast:!0}),s.rdState.bridge()},e.prototype.free=function(e){var t=this._areas[e];if(t){this._areas[e]=void 0;var i=t.container.value();i&&i.parentElement&&i.parentElement.removeChild(i),t.alive.setValue(!1)}},e.prototype.recalculate=function(){var e={};this._recalcSingleRunToken=e;var t=this._areas.topleft,i=this._areas.left,r=this._areas.tradingpanel,n=this._areas.right,o=this._areas.top,s=this._areas.bottom,a=this._areas.center,l=this._areas.extratop,c=this._width.value(),u=this._height.value(),d=0,p=0,f=0,_=0,m=0,y=0,g=0,v=0;(e===this._recalcSingleRunToken&&l&&this._processVisibility(l)&&(v=this._setHeight(l,u),this._setWidth(l,c)),e===this._recalcSingleRunToken&&t&&this._processVisibility(t))&&(g=this._setHeight(t,u),(y=this._setWidth(t,c))&&(y+=4),(L=t.container.value())&&(L.style.top=v+"px"));e===this._recalcSingleRunToken&&i&&this._processVisibility(i)&&((L=i.container.value())&&(L.style.top=g+v+"px"),this._setHeight(i,u-g-v),(f=this._setWidth(i,c))&&(f+=4));if(e===this._recalcSingleRunToken&&r&&this._processVisibility(r)){this._setHeight(r,u);var S=c-f;h||(S-=300),m=this._setWidth(r,S)}if(e===this._recalcSingleRunToken&&n&&this._processVisibility(n)){this._setHeight(n,u-v);S=c-f-m;h||(S-=300),_=this._setWidth(n,S),(L=n.container.value())&&(L.style.top=v+"px")}var b=m+_,w=b?4:0;if(e===this._recalcSingleRunToken&&o&&this._processVisibility(o)){var P=Math.max(y,f);(L=o.container.value())&&(L.style.left=P+"px",L.style.top=v+"px");S=c-P-m-_-w;this._setWidth(o,S),d=this._setHeight(o,u)}var C=0,x=c-f-m-_-w;if(e===this._recalcSingleRunToken&&s&&this._processVisibility(s)){(L=s.container.value())&&(L.style.left=f+"px",L.classList.toggle("no-border-top-left-radius",!f),L.classList.toggle("no-border-top-right-radius",!b)),this._setWidth(s,x);var T=u-d-v;C=Math.min(300,T-0),p=this._setHeight(s,T)+4}if(e===this._recalcSingleRunToken&&a&&this._processVisibility(a)){var L;(L=a.container.value())&&(L.style.left=f+"px",L.style.top=d+v+"px",L.classList.toggle("no-border-bottom-left-radius",!p||!f),L.classList.toggle("no-border-bottom-right-radius",!b||!p)),this._setWidth(a,x);T=u-d-p-v;this._setHeight(a,Math.max(T,C))}e===this._recalcSingleRunToken&&r&&this._affectsLayout("tradingpanel")&&((L=r.container.value())&&(L.style.right=_+"px",L.style.top=v+"px"));e===this._recalcSingleRunToken&&this._updateVisibility()},e.prototype._affectsLayout=function(e){var t=this._areas[e];if(!t)return!1;if(t.rdState.owner.value()!==t)return!1;if(this._fullscreenArea&&this._fullscreenArea!==e)return p(e);if(this._width.value()<=567||this._height.value()<=445){var i=["center","top","left","topleft","extratop"];if(Object(c.isFeatureEnabled)("mobile_show_bottom_panel")&&i.push("bottom"), +!i.includes(e))return!1}return!0},e.prototype._updateVisibility=function(){for(var e=this._bridge.visible.value(),t=0;te.year||this.year===e.year&&this.month>e.month||this.year===e.year&&this.month===e.month&&this.day>e.day?1:this.year===e.year&&this.month===e.month&&this.day===e.day?0:-1},e.prototype.before=function(e){return-1===this.compareTo(e)},e.prototype.toCalendar=function(e){return r.get_cal(r.get_timezone("Etc/UTC"),this.year,this.month-1,this.day)},e.prototype.addDays=function(t){var i=this.toCalendar(r.get_timezone("Etc/UTC"));return r.add_date(i,t),e.fromCalendar(i)},e.fromCalendar=function(t){return new e(r.get_year(t),r.get_month(t)+1,r.get_day_of_month(t))},e}()},OH2X:function(e,t,i){"use strict";t.LineToolFibRetracement=i("t2ex").LineToolFibRetracement,t.LineToolFibChannel=i("xnA2").LineToolFibChannel,t.LineToolFibSpeedResistanceArcs=i("Yjuu").LineToolFibSpeedResistanceArcs,t.LineToolProjection=i("68at").LineToolProjection,t.LineToolTrendBasedFibExtension=i("ZtA1").LineToolTrendBasedFibExtension,t.LineToolElliott=i("xz+e").LineToolElliott,t.LineToolFibCircles=i("4bfY").LineToolFibCircles,t.LineToolVertLine=i("n40Z").LineToolVertLine,t.LineToolCrossLine=i("MA5A").LineToolCrossLine,t.LineToolBarsPattern=i("2bPF").LineToolBarsPattern,t.LineToolTrendBasedFibTime=i("yUly").LineToolTrendBasedFibTime,t.LineToolFibTimeZone=i("FsE7").LineToolFibTimeZone,t.LineToolCircleLines=i("tG6Q").LineToolCircleLines,t.LineToolDateRange=i("WkYF").LineToolDateRange,t.LineToolPriceRange=i("RDDl").LineToolPriceRange,t.LineToolDateAndPriceRange=i("UCMi").LineToolDateAndPriceRange,t.LineToolParallelChannel=i("qcGP").LineToolParallelChannel,t.LineToolTrendAngle=i("nW7S").LineToolTrendAngle,t.LineToolTrendLine=i("WPQD").LineToolTrendLine,t.LineToolInfoLine=i("yi8X").LineToolInfoLine,t.LineToolArrowMark=i("TohL").LineToolArrowMark,t.LineToolExecution=i("704P").LineToolExecution,t.LineToolPitchfan=i("NhkU").LineToolPitchfan,t.LineToolGannSquare=i("Z0Sh").LineToolGannSquare,t.LineToolFibSpeedResistanceFan=i("zZ5f").LineToolFibSpeedResistanceFan,t.LineToolGannComplex=i("nd9+").LineToolGannComplex,t.LineToolGannFixed=i("TBaH").LineToolGannFixed,t.LineToolGannFan=i("4u8j").LineToolGannFan,t.LineToolFibWedge=i("9QkW").LineToolFibWedge,t.LineToolPitchfork=i("aDyP").LineToolPitchfork,t.LineToolDisjointAngle=i("oIoN").LineToolDisjointChannel,t.LineToolFlatBottom=i("InMJ").LineToolFlatBottom,t.LineToolIcon=i("icPo").LineToolIcon,t.LineToolRotatedRectangle=i("Az04").LineToolRotatedRectangle,t.LineToolFibSpiral=i("i80N").LineToolFibSpiral,t.LineToolHeadAndShoulders=i("aILO").LineToolHeadAndShoulders,t.LineToolTriangle=i("isVH").LineToolTriangle,t.LineToolTrianglePattern=i("lNN+").LineToolTrianglePattern,t.LineTool5PointsPattern=i("NJRZ").LineTool5PointsPattern,t.LineToolThreeDrivers=i("PYn8").LineToolThreeDrivers,t.LineToolABCD=i("pKDv").LineToolABCD, +t.LineToolPolyline=i("hP9j").LineToolPolyline,t.LineToolPrediction=i("Wh6B").LineToolPrediction,t.LineToolPriceLabel=i("zqZp").LineToolPriceLabel,t.LineToolArrowMarker=i("wiuq").LineToolArrowMarker,t.LineToolNote=i("gLxC").LineToolNote,t.LineToolNoteAbsolute=i("gLxC").LineToolNoteAbsolute,t.LineToolBrush=i("+hLl").LineToolBrush,t.LineToolArc=i("0Pxc").LineToolArc,t.LineToolCallout=i("odCa").LineToolCallout,t.LineToolBalloon=i("me8f").LineToolBalloon,t.LineToolText=i("V3Oj").LineToolText,t.LineToolHorzLine=i("/DxK").LineToolHorzLine,t.LineToolHorzRay=i("CJIV").LineToolHorzRay,t.LineToolRectangle=i("7qI1").LineToolRectangle,t.LineToolEllipse=i("V086").LineToolEllipse,t.LineToolTimeCycles=i("kIXa").LineToolTimeCycles,t.LineToolSineLine=i("bv/X").LineToolSineLine,t.LineToolGhostFeed=i("XUCF").LineToolGhostFeed,t.LineToolBezierQuadro=i("Xyly").LineToolBezierQuadro,t.LineToolBezierCubic=i("N+BX").LineToolBezierCubic,t.LineToolArrow=i("QQu0").LineToolArrow,t.LineToolRay=i("5ZUI").LineToolRay,t.LineToolExtended=i("CHw2").LineToolExtended,t.LineToolSchiffPitchfork=i("v5F8").LineToolSchiffPitchfork,t.LineToolSchiffPitchfork2=i("XFad").LineToolSchiffPitchfork2,t.LineToolInsidePitchfork=i("EqoR").LineToolInsidePitchfork,t.LineToolTextAbsolute=i("V3Oj").LineToolTextAbsolute,t.LineToolArrowMarkLeft=i("TohL").LineToolArrowMarkLeft,t.LineToolArrowMarkRight=i("TohL").LineToolArrowMarkRight,t.LineToolArrowMarkUp=i("TohL").LineToolArrowMarkUp,t.LineToolArrowMarkDown=i("TohL").LineToolArrowMarkDown,t.LineToolFlagMark=i("aIha").LineToolFlagMark,t.LineToolCypherPattern=i("bTqm").LineToolCypherPattern,t.LineToolElliottImpulse=i("xz+e").LineToolElliottImpulse,t.LineToolElliottTriangle=i("xz+e").LineToolElliottTriangle,t.LineToolElliottTripleCombo=i("xz+e").LineToolElliottTripleCombo,t.LineToolElliottCorrection=i("xz+e").LineToolElliottCorrection,t.LineToolElliottDoubleCombo=i("xz+e").LineToolElliottDoubleCombo,t.LineToolRiskRewardLong=i("tDUI").LineToolRiskRewardLong,t.LineToolRiskRewardShort=i("tDUI").LineToolRiskRewardShort,t.LineToolPosition=i("ziJ5").LineToolPosition,t.LineToolOrder=i("B4/o").LineToolOrder},"OK+B":function(e,t,i){"use strict";var r=i("Eyy1").assert,n=i("eJTA"),o=n.rgba,s=n.rgbaToString,a=n.parseRgb,l=i("+GxX").isFeatureEnabled,c=i("cWHH"),u=i("1Wlv").PriceScale,h=i("8sOK").StudyStub,d=i("CW80"),p=d.createLineTool,f=d.createLineToolProperties,_=d.createStudyLineToolProperties,m=d.isLineToolName,y=d.isStudyLineToolName,g=i("Ss5c").LineDataSource,v=i("OH2X").LineToolBarsPattern,S=i("OH2X").LineToolCallout,b=i("HLXm"),w=i("GVHu"),P=w.Study,C=w.prepareStudyPropertiesForLoadChart,x=i("3ClC").createStudy,T=i("qJq3").Series,L=i("dfhE"),I=i("n5al"),M=i("0YCj"),O=i("Kxc7"),A=i("uOxu").getLogger("Chart.Serialization"),k=i("OH2X").LineToolParallelChannel,E=i("OH2X").LineToolTrendAngle,D=i("OH2X").LineToolGhostFeed,V=i("OH2X").LineToolElliott,B=i("7ktv").PriceDataSource,R=i("iDOr").Pane,N=i("Tmoa"),F=i("jofe").createDeferredPromise,j=i("ApcL").preferencesByWhiteList,W=(A=i("uOxu").getLogger("Chart.Serialization"), +i("mPvX").LineToolsGroupModel);c.version=2,c.prototype.state=function(e,t,i){for(var r={panes:[]},n=0;n1&&n.push(l)),s=(s+1)%t.length}return n},c.prototype.restoreState=function(e,t,i){new z(this).reset();var r={};if(e.panes)if(Array.isArray(e.panes)){if(!(e.panes.length<1)){if(this._shouldBeSavedEvenIfHidden=void 0===e.shouldBeSavedEvenIfHidden||e.shouldBeSavedEvenIfHidden,e.chartProperties&&!e.chartProperties.timezone&&(e.chartProperties.timezone=e.timezone),e.chartProperties){var n=TradingView.factoryDefaults("chartproperties").scalesProperties;TradingView.merge(n,e.chartProperties.scalesProperties),!("showLastValue"in n)||"showSeriesLastValue"in n||"showStudyLastValue"in n||(n.showSeriesLastValueProperty=n.showLastValue,n.showStudyLastValueProperty=n.showLastValue),"showSeriesLastValue"in n&&(r.showSeriesLastValueProperty=!0),"showStudyLastValue"in n&&(r.showStudyLastValueProperty=!0),e.chartProperties.paneProperties.vertGridProperties=e.chartProperties.paneProperties.vertGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),e.chartProperties.paneProperties.horzGridProperties=e.chartProperties.paneProperties.horzGridProperties||TradingView.clone(e.chartProperties.paneProperties.gridProperties),this._properties.paneProperties.mergeAndFire(e.chartProperties.paneProperties),this._properties.scalesProperties.mergeAndFire(n),e.chartProperties.timezone&&this._properties.timezone.setValue(e.chartProperties.timezone), +e.chartProperties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties&&this._properties.chartEventsSourceProperties.mergeAndFire(e.chartProperties.chartEventsSourceProperties),this._timeScale.restoreState(e.timeScale,t),this._updateDateTimeFormatter()}if(e.timeScale&&this._timeScale.restoreState(e.timeScale,t),!this.readOnly()){var o=this._getExceedingChildStudies(e.panes);if(o.length)for(var s=e.panes.length-1;s>=0;--s){for(var a=(h=e.panes[s]).sources.length-1;a>=0;--a){var l=h.sources[a];~o.indexOf(l)&&h.sources.splice(a,1)}h.sources.length||e.panes.splice(s,1)}}var c=e.panes;this.panes()[0].restoreState(c[0],t,e.version,r,i,!0);var u=1;for(s=1;sm&&f%100==0?{lines_limit_exceeded:!0,line_tools_count:f}:(this._dataSourceCollectionChanged.fire(),{})}A.logDebug("ChartModel.restoreState: invalid state")}else A.logDebug("ChartModel.restoreState: invalid state");else A.logDebug("ChartModel.restoreState: invalid state")},R.prototype.state=function(e,t,i,r,n){var o={},s=new Map;function a(e){if(s.has(e))return s.get(e);var o=null,a=i&&!e.isSavedInStudyTemplates()||!e.state||!(o=e.state(t,n))||!e.isSavedInChart(t)||r&&e.isActualSymbol&&!e.isActualSymbol()?null:o;return s.set(e,a),a}if(e){o.sources=[];for(var l=0;l1e200){var m=h-1;A.logWarn("Datasource zorder has bad value: "+f.zorder+" Resetting it to "+m),f.zorder=m}else if(!this.isZOrderAvailable(f.zorder)){l&&"MainSeries"===_&&this._model.mainSeries().zorder()===f.zorder||(f.zorder=d+1)}s[O=f.id]=f.ownerSource,_&&("MainSeries"===_?this._restoreMainSeries(f,t,l,r,n,o):_.toLowerCase().startsWith("study")?this._restoreStudy(f,t,r,o):TradingView.isInherited(TradingView[_],g)?this.restoreLineTool(f,t,void 0,o):TradingView[_]&&TradingView[_].createFromState&&this._restoreSpecialSource(f,t,o)),h=Math.min(h,f.zorder),d=Math.max(d,f.zorder)}}}var y,v,S=new Set,b=this;function w(e){var t=defaults("chartproperties").paneProperties.axisProperties,i=new u(b.model().properties().scalesProperties,t);return i.restoreState(e.state),e.sources.forEach((function(e){var r=b.dataSourceForId(e);r&&function(e,t,i){S.add(e),void 0!==i.m_showSymbolLabels&&e instanceof T&&b.model().properties().scalesProperties.showSymbolLabels.setValue(i.m_showSymbolLabels), +e.setPriceScale(t),t.addDataSource(e)}(r,i,t)})),0===i.dataSources().length?null:i}if(e.leftAxisesState)y=e.leftAxisesState.map(w).filter((function(e){return null!==e}));else{var C=w({state:e.leftAxisState,sources:e.leftAxisSources});y=null!==C?[C]:[]}if(this._leftPriceScales.slice().forEach(function(e){this.removePriceScale(e)}.bind(this)),this._leftPriceScales=[],y.forEach((function(e){b._placePriceScale(e,"left")})),e.rightAxisesState)v=e.rightAxisesState.map(w).filter((function(e){return null!==e}));else{var x=w({state:e.rightAxisState,sources:e.rightAxisSources});v=null!==x?[x]:[]}this._rightPriceScales.forEach(function(e){this.removePriceScale(e)}.bind(this)),this._rightPriceScales=[],v.forEach((function(e){b._placePriceScale(e,"right")})),this._currentPriceScaleRatio=e.priceScaleRatio||e.leftPriceScaleRatio||e.rightPriceScaleRatio||null;for(p=0;pthis._deviation&&this.addPivot(e,t,i);else(i===d.HIGH?t>r:t0&&i.set(e),i},f.prototype.new_unlimited_var=function(e){var t=this.vars;t.length<=this.vars_index&&t.push(new m(this.symbol));var i=t[this.vars_index++];return arguments.length>0&&i.set(e),i},f.prototype.new_ctx=function(){return this.ctx.length<=this.ctx_index&&this.ctx.push(new f(this.symbol)),this.ctx[this.ctx_index++]},f.prototype.prepare=function(e){this.ctx_index=0,this.vars_index=0;for(var t=0;te&&(e=i)}return e},f.prototype.stop=function(){this.symbol=null,this.vars=null},_.prototype.valueOf=function(){return this.get(0)},_.prototype.get=function(e){return isNaN(e)&&(e=0),e=e||0,this.hist?e>=this.hist.length?(console.error("not enough depth: "+this),NaN):this._get(e):(this.mindepth=u.max(this.mindepth,e),NaN)},_.prototype._get=function(e){var t=this.hist_pos-e;return t<0&&(t+=this.hist.length),this.hist[t]},_.prototype.set=function(e){this.hist&&(this.hist[this.hist_pos]=e,this.modified=!0)},_.prototype.prepare=function(e){e===this.symbol&&(e.isNewBar?(this.original=this.get(0),!this.modified&&this.hist||this.add_hist()):this.set(this.original),this.modified=!1)},_.prototype.add_hist=function(){if(!this.hist){var e=u.na(this.mindepth)?u.max_series_default_size:u.max(this.mindepth+1,1);e=Math.round(e);for(var t=new Array(e),i=0;i=0){var r=i.split(",");t=y.parsePeriod(r[1]),i=r[0]}var n=!1,o=!1,s=i[i.length-1];-1==="DWM".indexOf(s)&&("S"===s?o=!0:(n=!0,s=""));var a=parseInt(n?i:i.length>1?i.slice(0,i.length-1):1);return{resolution:s,interval:a,pureResolution:[a,s].join(""),isIntraday:n,isSeconds:o,range:t}},y.newBarBuilder=function(e,t,i){var r=y.parsePeriod(e);return l.newBarBuilder(r.interval+r.resolution,t,i)},y.newSession=function(e){return new l.SessionInfo(e.timezone,e.session,e.holidays,e.corrections)},y.prototype.set_symbolinfo=function(e){for(var t in e||console.error("WARN: symbolinfo isn't defined for "+this.tickerid),this.info=e,this.timezone=a.get_timezone(e.timezone),this.session.init(e.timezone,e.session,e.holidays,e.corrections),this.other_sessions)this.other_sessions.hasOwnProperty(t)&&this.other_sessions[t].init(e.timezone,e.session,e.holidays,e.corrections)},y.prototype.get_session=function(e){if(!e)return this.session;var t=this.other_sessions[e];return t||(t=new l.SessionInfo("Etc/UTC","24x7"),this.other_sessions[e]=t),t},y.prototype.isdwm=function(){return""!==this.resolution&&"S"!==this.resolution},y.prototype.enable_dwm_aligning=function(e,t){this.dwm_aligner=y.newBarBuilder(this.period,e,t)},y.prototype.bartime=function(e,t){var i=this.time;if(e){var r=e;t&&(r+=t);var n=this.bb_cache[r];if(!n){var o=this.get_session(t);n=y.newBarBuilder(e,o),this.bb_cache[r]=n}i=n.alignTime(i)}if(!this.isdwm()||isNaN(i))return i;var s=a.utc_to_cal(this.timezone,i);return this.session.spec.correctTradingDay(s),a.cal_to_utc(this.timezone,s)},y.prototype.lastbar=function(e){if(!isNaN(e.time)){var t=e.time;this.dwm_aligner&&(this.dwm_aligner.moveTo(t),t=this.dwm_aligner.startOfBar(0));var i=this.time!==t;i&&this.index>=0&&!this.isBarClosed&&(this.isNewBar=!1,this.isBarClosed=!0,this.script.calc(this)),this.time=t,this.open=e.open,this.high=e.high,this.low=e.low,this.close=e.close,this.volume=e.volume,this.updatetime=e.updatetime,this.isNewBar=i,this.isBarClosed=e.isBarClosed,this.isLastBar=e.isLastBar,this.isNewBar&&this.index++,this.script.calc(this)}},g.prototype.calc=function(e){var t=this.ctx,i=this.body;t.prepare(e);var r=i.main(t,this.inputCallback),n=this;this.out&&r&&(!isNaN(t.symbol.time)||r.nonseries)&&(r.nonseries?("projection"===r.type&&(r.projectionTime=t.symbol.time),this.nonseriesOut(t.symbol,r)):r.bars?r.bars.forEach((function(e){n.out(t.symbol,e)})):this.out(t.symbol,r))},g.prototype.init=function(){var e=this.ctx,t=this.body;t.init&&t.init(e,this.inputCallback),t.main(e,this.inputCallback)},g.prototype.add_sym=function(e,t,i,r,n,o){var s=this.runner.add_sym(e,t,i,r,this,n,o);return this.symbols.push(s),s.isdwm()&&this.symbols.length>1&&s.enable_dwm_aligning(this.symbols[0].session,s.session),s},g.prototype.maxAdditionalDepth=function(){return this.ctx.maxAdditionalDepth()},g.prototype.stop=function(){this.symbols=null,this.ctx.stop(), this.ctx=null},g.prototype.get_sym=function(e){return this.symbols[e]},v.prototype.add_sym=function(e,t,i,r,n,o,s){var a=new y(e,t,i,r,n,o,s);return this.symbols.push(a),a},v.prototype.get_sym=function(e){return this.symbols[e]},v.prototype.out=function(e,t){if(this.nonseriesUpdate){var i=Object.assign({},this.nonseriesUpdate);t.splice(0,0,e.time),i.lastBar=t,this.host.nonseriesOut(e,i)}else this.host.out(e,t)},v.prototype.start=function(){var e=this.host;this._script=new g(e.tickerid,e.currencyCode,e.period,e.periodBase||e.period,e.periodForInitialRange,this,e.body,this.out.bind(this),e.input,e.symbolInfo.minmov/e.symbolInfo.pricescale,e.nonseriesOut);var t=this,i=[],r=this.symbols,n=(e.additionalBarsCount||0)+t._script.maxAdditionalDepth();function o(r,o){var s=v.feed.subscribe(r.tickerid,r.currencyCode,r.period,r.periodBase,r.periodForInitialRange,(function(i){"series"===(i.nonseries?"nonseries":"series")?t.update(o,i):i.lastBar?(t.nonseriesUpdate=i,i.lastBar.isLastBar=!0,t.symbols[0].lastbar(i.lastBar),t.nonseriesUpdate=null):e.nonseriesOut(r,i)}),e.onErrorCallback,e.symbolInfo,e.sessionId,e.rangeExtension,n);i.push(s)}for(var s=0;s=0;i--)for(var r=e[i],n=this.barsets[i],o=n.count(),s=0;s=0;i--){var r=this._chartModel.restoreSource(this._restorePanes[i],this._paneIndexes[i],this._paneStates[i],this._sourceStates[i],this._priceScalePositionIds[i]);t.push(r)}t.some((function(i,r){return i.id()!==e._sourceIds[t.length-r-1]}))&&u.logError("Source was restored improperly - source ids does not match"),this._excludeLineToolsUndoCommands.forEach((function(e){return e.undo()}))},t}(o.UndoCommand)},odCa:function(e,t,i){"use strict";var r=i("Ss5c").LineDataSource,n=i("fgLi").DataSource,o=i("tc+8"),s=i("Ocx9").DefaultProperty,a=i("hayr").propertyPages,l=i("jTis").CalloutConsts,c=window.t("Callout");function u(e,t){this._constructor="LineToolCallout";var n=t||u.createProperties();r.call(this,e,n),this._barOffset=0,this._timeScale=e.timeScale(),i.e("lt-pane-views").then(function(e){var t=i("B4Hi").CalloutPaneView;this._setPaneViews([new t(this,this._model)])}.bind(this).bind(null,i)).catch(i.oe)}inherit(u,r),u.prototype.pointsCount=function(){return 2},u.prototype.translatedType=function(){return c},u.prototype.name=function(){return"Callout"},u.prototype.correctPoints=function(e){var t=this._currentMovingPoint.index-this._startMovingPoint.index,i=this._currentMovingPoint.price-this._startMovingPoint.price,r=e[1];r.index+=t,r.price+=i,e[1]=r},u.prototype.addPoint=function(e){var t=r.prototype.addPoint.call(this,e);return t&&this._calculateBarOffset(),t},u.prototype._calculateBarOffset=function(){this.points().length>1&&(this._barOffset=this.points()[1].index-this.points()[0].index)},u.prototype.setLastPoint=function(e){r.prototype.setLastPoint.call(this,e),2===this.points().length&&this._calculateBarOffset()},u.prototype.setPoint=function(e,t){switch(e){case 0:r.prototype.setPoint.call(this,e,t),this._calculateBarOffset();break;case 1:var i=this.properties();if(!i.wordWrapWidth)return;var n=this._points,o=this._dragStartLeftEdgeIndex,s=Math.round((t.index-o)/2);if(isFinite(o)&&isFinite(s)){n[1]={index:o+s,price:n[1].price},this._calculateBarOffset(),this.normalizePoints();var a=this._timeScale.indexToCoordinate(o+2*s)-this._timeScale.indexToCoordinate(o)-l.RoundRadius-l.TextMargins;if(!isFinite(a))return;i.wordWrapWidth.setValue(Math.max(l.MinWidth,a));break}n[1]=t,this._calculateBarOffset(),this.normalizePoints()}},u.prototype.startDragPoint=function(e,t){var i=this.properties();1===e&&i.wordWrap&&i.wordWrap.value()&&(this._dragStartLeftEdgeIndex=2*this.points()[1].index-t.index)},u.prototype.move=function(e,t,i){r.prototype.move.call(this,e,t,i),this._calculateBarOffset()},u.prototype.state=function(e){var t=r.prototype.state.call(this,e);return t.barOffset=this._barOffset,t},u.prototype.restoreData=function(e){e.barOffset?this._barOffset=e.barOffset:this._calculateBarOffset(),this._calculatePoint2()},u.prototype.setPriceScale=function(e){n.prototype.setPriceScale.call(this,e),e&&e.priceRange()&&this._calculatePoint2()},u.prototype.template=function(){var e=r.prototype.template.call(this) ;return e.text=this.properties().childs().text.value(),e},u.prototype._applyTemplateImpl=function(e){r.prototype._applyTemplateImpl.call(this,e),this.properties().childs().text.setValue(e.text)},u.prototype._calculatePoint2=function(){if(!(this._model.lineBeingEdited()===this||this._model.sourcesBeingMoved().includes(this)||this._points.length<2)){var e=this.points()[0],t=this.points()[1];this._points[1]={price:t.price,index:e.index+this._barOffset}}},u.prototype.getStylesPropertyPage=function(){return a.LineToolCalloutStylesPropertyPage},u.prototype._getPropertyDefinitionsViewModelClass=function(){return Promise.all([i.e(21),i.e("lt-property-pages-with-definitions")]).then(function(e){return i("xhf0").CalloutDefinitionsViewModel}.bind(null,i)).catch(i.oe)},u.createProperties=function(e){var t=new s("linetoolcallout",e);return u._configureProperties(t),t},u._configureProperties=function(e){r._configureProperties(e),e.hasChild("text")||e.addChild("text",new o(window.t("Text"))),e.addExclusion("text")},t.LineToolCallout=u},oiZD:function(e,t,i){"use strict";i.r(t);var r=i("hY0g"),n=i.n(r);i.d(t,"watchedTheme",(function(){return o})),i.d(t,"setTheme",(function(){return s}));var o=new n.a;function s(e){o.setValue(e)}o.subscribe((function(e){!function(e,t){void 0===t&&(t=window);for(var i="theme-"+e,r=t.document.documentElement.classList,n=0,o=Array.from(r);no){var s=Object(n.extrapolateBarsFrontToTime)(this._barBuilder(),o||1e3*e,1e3*t,2e3,!0);this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length}if((o=this._extrapolatedData[i-1])<1e3*t)return{success:!1};var a=this._extrapolatedData.indexOf(1e3*t);return-1===a?{success:!1}:{success:!0,result:a}},e.prototype.projectTime=function(e,t){if(!this.isValid())return e;var i=this._extrapolatedData.length,r=i>0?this._extrapolatedData[0]:null,o=null!==r?this._extrapolatedData[i-1]:null;if(1e3*e!==r&&(this._extrapolatedData=[1e3*e],r=null,o=null),null===r||t>=i){var s=Object(n.extrapolateBarsFrontByCount)(this._barBuilder(),o||1e3*e,t-i+1,!0) ;this._extrapolatedData=this._extrapolatedData.concat(s.times),i=this._extrapolatedData.length}return i'},t}();window.TradingView=window.TradingView||{},window.TradingView.version=r,t.version=r,t.widget=s,Object.defineProperty(t,"__esModule",{value:!0})})); +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.TradingView={})}(this,(function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,o=arguments,n=1,i=arguments.length;n'},t}();window.TradingView=window.TradingView||{},window.TradingView.version=r,t.version=r,t.widget=s,Object.defineProperty(t,"__esModule",{value:!0})})); diff --git a/charting_library/cs-tv-chart.5542ccdd.html b/charting_library/cs-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/cs-tv-chart.5542ccdd.html rename to charting_library/cs-tv-chart.07f6d1aa.html index c7611fc1..def0338c 100644 --- a/charting_library/cs-tv-chart.5542ccdd.html +++ b/charting_library/cs-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/da_DK-tv-chart.5542ccdd.html b/charting_library/da_DK-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/da_DK-tv-chart.5542ccdd.html rename to charting_library/da_DK-tv-chart.07f6d1aa.html index e9c316a2..08f53520 100644 --- a/charting_library/da_DK-tv-chart.5542ccdd.html +++ b/charting_library/da_DK-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/de-tv-chart.5542ccdd.html b/charting_library/de-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/de-tv-chart.5542ccdd.html rename to charting_library/de-tv-chart.07f6d1aa.html index 2ee039e8..4c83b6ab 100644 --- a/charting_library/de-tv-chart.5542ccdd.html +++ b/charting_library/de-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/el-tv-chart.5542ccdd.html b/charting_library/el-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/el-tv-chart.5542ccdd.html rename to charting_library/el-tv-chart.07f6d1aa.html index 708fd742..90ff1e85 100644 --- a/charting_library/el-tv-chart.5542ccdd.html +++ b/charting_library/el-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/en-tv-chart.5542ccdd.html b/charting_library/en-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/en-tv-chart.5542ccdd.html rename to charting_library/en-tv-chart.07f6d1aa.html index 2325334a..165d20b1 100644 --- a/charting_library/en-tv-chart.5542ccdd.html +++ b/charting_library/en-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/es-tv-chart.5542ccdd.html b/charting_library/es-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/es-tv-chart.5542ccdd.html rename to charting_library/es-tv-chart.07f6d1aa.html index e589f7cf..131091d1 100644 --- a/charting_library/es-tv-chart.5542ccdd.html +++ b/charting_library/es-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/et_EE-tv-chart.5542ccdd.html b/charting_library/et_EE-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/et_EE-tv-chart.5542ccdd.html rename to charting_library/et_EE-tv-chart.07f6d1aa.html index 1b935eee..58471033 100644 --- a/charting_library/et_EE-tv-chart.5542ccdd.html +++ b/charting_library/et_EE-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/fa-tv-chart.5542ccdd.html b/charting_library/fa-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/fa-tv-chart.5542ccdd.html rename to charting_library/fa-tv-chart.07f6d1aa.html index fdfb3e4d..0c8ac15a 100644 --- a/charting_library/fa-tv-chart.5542ccdd.html +++ b/charting_library/fa-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/fr-tv-chart.5542ccdd.html b/charting_library/fr-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/fr-tv-chart.5542ccdd.html rename to charting_library/fr-tv-chart.07f6d1aa.html index ed9184e3..953747db 100644 --- a/charting_library/fr-tv-chart.5542ccdd.html +++ b/charting_library/fr-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/he_IL-tv-chart.5542ccdd.html b/charting_library/he_IL-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/he_IL-tv-chart.5542ccdd.html rename to charting_library/he_IL-tv-chart.07f6d1aa.html index 24a1dd46..35e0afd2 100644 --- a/charting_library/he_IL-tv-chart.5542ccdd.html +++ b/charting_library/he_IL-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/hu_HU-tv-chart.5542ccdd.html b/charting_library/hu_HU-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/hu_HU-tv-chart.5542ccdd.html rename to charting_library/hu_HU-tv-chart.07f6d1aa.html index 642d0e77..1838a66a 100644 --- a/charting_library/hu_HU-tv-chart.5542ccdd.html +++ b/charting_library/hu_HU-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/id_ID-tv-chart.5542ccdd.html b/charting_library/id_ID-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/id_ID-tv-chart.5542ccdd.html rename to charting_library/id_ID-tv-chart.07f6d1aa.html index c79640bb..dc90d5c6 100644 --- a/charting_library/id_ID-tv-chart.5542ccdd.html +++ b/charting_library/id_ID-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/it-tv-chart.5542ccdd.html b/charting_library/it-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/it-tv-chart.5542ccdd.html rename to charting_library/it-tv-chart.07f6d1aa.html index e2f10eb8..27b6d980 100644 --- a/charting_library/it-tv-chart.5542ccdd.html +++ b/charting_library/it-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/ja-tv-chart.5542ccdd.html b/charting_library/ja-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/ja-tv-chart.5542ccdd.html rename to charting_library/ja-tv-chart.07f6d1aa.html index aeb209f0..1efda229 100644 --- a/charting_library/ja-tv-chart.5542ccdd.html +++ b/charting_library/ja-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/ko-tv-chart.5542ccdd.html b/charting_library/ko-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/ko-tv-chart.5542ccdd.html rename to charting_library/ko-tv-chart.07f6d1aa.html index d2d98ea9..866c544e 100644 --- a/charting_library/ko-tv-chart.5542ccdd.html +++ b/charting_library/ko-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/ms_MY-tv-chart.5542ccdd.html b/charting_library/ms_MY-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/ms_MY-tv-chart.5542ccdd.html rename to charting_library/ms_MY-tv-chart.07f6d1aa.html index a0006f9f..ed086986 100644 --- a/charting_library/ms_MY-tv-chart.5542ccdd.html +++ b/charting_library/ms_MY-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/nl_NL-tv-chart.5542ccdd.html b/charting_library/nl_NL-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/nl_NL-tv-chart.5542ccdd.html rename to charting_library/nl_NL-tv-chart.07f6d1aa.html index 8afa773e..9eb10ff3 100644 --- a/charting_library/nl_NL-tv-chart.5542ccdd.html +++ b/charting_library/nl_NL-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/no-tv-chart.5542ccdd.html b/charting_library/no-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/no-tv-chart.5542ccdd.html rename to charting_library/no-tv-chart.07f6d1aa.html index 1f40419f..3984bccd 100644 --- a/charting_library/no-tv-chart.5542ccdd.html +++ b/charting_library/no-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/pl-tv-chart.5542ccdd.html b/charting_library/pl-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/pl-tv-chart.5542ccdd.html rename to charting_library/pl-tv-chart.07f6d1aa.html index 539abd01..abd02c79 100644 --- a/charting_library/pl-tv-chart.5542ccdd.html +++ b/charting_library/pl-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/pt-tv-chart.5542ccdd.html b/charting_library/pt-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/pt-tv-chart.5542ccdd.html rename to charting_library/pt-tv-chart.07f6d1aa.html index b04d584c..051c2a1e 100644 --- a/charting_library/pt-tv-chart.5542ccdd.html +++ b/charting_library/pt-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/ro-tv-chart.5542ccdd.html b/charting_library/ro-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/ro-tv-chart.5542ccdd.html rename to charting_library/ro-tv-chart.07f6d1aa.html index cff0e7ec..a64b2bee 100644 --- a/charting_library/ro-tv-chart.5542ccdd.html +++ b/charting_library/ro-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/ru-tv-chart.5542ccdd.html b/charting_library/ru-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/ru-tv-chart.5542ccdd.html rename to charting_library/ru-tv-chart.07f6d1aa.html index 7fd8a64d..e75ca6a5 100644 --- a/charting_library/ru-tv-chart.5542ccdd.html +++ b/charting_library/ru-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/sk_SK-tv-chart.5542ccdd.html b/charting_library/sk_SK-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/sk_SK-tv-chart.5542ccdd.html rename to charting_library/sk_SK-tv-chart.07f6d1aa.html index 3625f247..43f9ffdd 100644 --- a/charting_library/sk_SK-tv-chart.5542ccdd.html +++ b/charting_library/sk_SK-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/sv-tv-chart.5542ccdd.html b/charting_library/sv-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/sv-tv-chart.5542ccdd.html rename to charting_library/sv-tv-chart.07f6d1aa.html index 43112efa..e2f69575 100644 --- a/charting_library/sv-tv-chart.5542ccdd.html +++ b/charting_library/sv-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/th-tv-chart.5542ccdd.html b/charting_library/th-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/th-tv-chart.5542ccdd.html rename to charting_library/th-tv-chart.07f6d1aa.html index 78b3a2a6..c9fc262c 100644 --- a/charting_library/th-tv-chart.5542ccdd.html +++ b/charting_library/th-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/tr-tv-chart.5542ccdd.html b/charting_library/tr-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/tr-tv-chart.5542ccdd.html rename to charting_library/tr-tv-chart.07f6d1aa.html index c66a017f..ae78c197 100644 --- a/charting_library/tr-tv-chart.5542ccdd.html +++ b/charting_library/tr-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/vi-tv-chart.5542ccdd.html b/charting_library/vi-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/vi-tv-chart.5542ccdd.html rename to charting_library/vi-tv-chart.07f6d1aa.html index bc6c9330..261eac90 100644 --- a/charting_library/vi-tv-chart.5542ccdd.html +++ b/charting_library/vi-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/zh-tv-chart.5542ccdd.html b/charting_library/zh-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/zh-tv-chart.5542ccdd.html rename to charting_library/zh-tv-chart.07f6d1aa.html index 6affb699..f9ff71a9 100644 --- a/charting_library/zh-tv-chart.5542ccdd.html +++ b/charting_library/zh-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/charting_library/zh_TW-tv-chart.5542ccdd.html b/charting_library/zh_TW-tv-chart.07f6d1aa.html similarity index 99% rename from charting_library/zh_TW-tv-chart.5542ccdd.html rename to charting_library/zh_TW-tv-chart.07f6d1aa.html index 263447ad..3b80643a 100644 --- a/charting_library/zh_TW-tv-chart.5542ccdd.html +++ b/charting_library/zh_TW-tv-chart.07f6d1aa.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file