1"use strict";(self.webpackChunkssr_chart=self.webpackChunkssr_chart||[]).push([[8173],{53269(t,e,r){r.d(e,{F:()=>w});var n=r(74430),i=r(95356),o=r(263),a=r(35093),l=r(24102),c=r(9937),u=r(93843),s=r(55560);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}var d=["leftPoint","rightPoint","horzAlign","extendLeft","extendRight"];function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t,e,r){return(e=v(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,v(n.key),n)}}function v(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function _(t,e,r){return e=g(e),function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(e,r||[],g(t).constructor):e.apply(t,r))}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(P=function(){return!!t})()}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}(0,n.__QUDE_IMPORT_MAP_MARK__)("d31270a79d65",[]);var w=function(t){function e(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(t=_(this,e,arguments))._labelsRenderers=new Map,t._textRenderers=new Map,t._levelLineRenderers=new Map,t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m(t,e)}(e,t),r=e,n=[{key:"_percentageFormatter",get:function(){return(0,l.g)()}},{key:"_numericFormatter",get:function(){return(0,l.a)()}},{key:"getTextRenderer",value:function(t){var e=this._textRenderers.get(t);return e||(e=new s.B,this._labelsRenderers.set(t,e)),e}},{key:"getLabelRenderer",value:function(t){var e=this._labelsRenderers.get(t);return e||(e=new s.B(new o.H(o.a.MovePoint)),this._labelsRenderers.set(t,e)),e}},{key:"getLevelLineRenderer",value:function(t){return(0,a.e)(this._levelLineRenderers.has(t)?this._levelLineRenderers.get(t):this._levelLineRenderers.set(t,new c.L).get(t))}},{key:"_updateLabelForLevel",value:function(t){var e=this.getLabelRenderer(t.levelIndex),r=this._source.properties(),n=Boolean(r.showCoeffs),i=Boolean(r.showPrices);if(!n&&!i)return null;var o=t.coeff,a="";return n&&(a+=r.coeffsAsPercents?this._percentageFormatter.format(100*o,{signPositive:!1,tailSize:2}):this._numericFormatter.format(o)),i&&(a+=" ("+t.price+")"),this._updateRendererLabel(t,e,a),e}},{key:"_updateRendererLabel",value:function(t,e,r){if(!r&&void 0===t.decorator)return null;var n=t.leftPoint,o=t.rightPoint,a=t.horzAlign,l=t.extendLeft,c=t.extendRight,u=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,d),f=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,l=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,i=t}
1finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}((0,s.a)({horzAlign:a,extendLeft:l,extendRight:c,width:this._source.getScope().mediaSize.width,leftPoint:n,rightPoint:o}),2),b=f[0],v=f[1];return e.setData(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({points:[b],text:null!=r?r:"",horzAlign:v,offsetX:4,offsetY:0,fontFamily:i.C,fontSize:12},u)),e}}],n&&b(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(u.T)},68173(t,e,r){r.d(e,{A:()=>T,F:()=>k,a:()=>A});var n=r(74430),i=r(35093),o=r(263),a=r(64632),l=r(93843),c=r(27962),u=r(36897),s=r(9937),f=r(53269),d=r(99819);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(t,e,r,n){var i=y(S(1&n?t.prototype:t),e,r);return 2&n&&"function"==typeof i?function(t){return i.apply(r,t)}:i}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},y.apply(null,arguments)}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,l=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function g(t,e,r){return e&&P(t.prototype,e),r&&P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function w(t,e,r){return e=S(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return O(t)}(t,j()?Reflect.construct(e,r||[],S(t).constructor):e.apply(t,r))}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(j=function(){return!!t})()}
1function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function x(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&R(t,e)}function R(t,e){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R(t,e)}(0,n.__QUDE_IMPORT_MAP_MARK__)("1e9e7bfcb0ed",[d.h]);var T=function(t){function e(){return _(this,e),w(this,e,arguments)}return x(e,t),g(e,[{key:"hitTest",value:function(t){if(null===this._data)return null;var e=t.subtract(this._data.center),r=e.length();if(Math.abs(r-this._data.radius)<=4){var n=t.subtract(this._data.p1).length(),i=t.subtract(this._data.p2).length();if(Math.max(n,i)<=this._data.p1.subtract(this._data.p2).length())return this._hitTest}if(this._data.fillBackground&&r<=this._data.radius){var o=this._data.p1.subtract(this._data.center).normalized(),a=this._data.p2.subtract(this._data.center).normalized(),l=e.normalized(),c=o.dotProduct(a),u=l.dotProduct(o),s=l.dotProduct(a);if(u>=c&&s>=c)return this._backgroundHitTest}return null}},{key:"drawImpl",value:function(t){if(null!==this._data){var e=t.context;if(e.beginPath(),e.strokeStyle=this._data.color,e.lineWidth=this._data.linewidth,e.arc(this._data.center.x,this._data.center.y,this._data.radius,this._data.angle1,this._data.angle2),e.stroke(),this._data.fillBackground){if(e.arc(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.angle2,this._data.angle1,!0),this._data.gradient){var r=e.createRadialGradient(this._data.center.x,this._data.center.y,this._data.prevRadius,this._data.center.x,this._data.center.y,this._data.radius);r.addColorStop(0,(0,d.h)(this._data.color1,this._data.transparency)),r.addColorStop(1,(0,d.h)(this._data.color2,this._data.transparency)),e.fillStyle=r}else e.fillStyle=(0,d.h)(this._data.color,this._data.transparency,!0);e.fill()}}}}])}(d.f),A=function(t){function e(){var t;return _(this,e),(t=w(this,e,arguments))._renderer=new l.C(t._hitTestCollector),t._baseTrendRenderer=new s.L,t._edgeTrendRenderer=new s.L,t}return x(e,t),g(e,[{key:"renderer",value:function(){return this._renderer}},{key:"_updateImpl",value:function(){var t;this._renderer.clear();var e=this.points();if(null!=e&&e.length)if(e.length<3)this._updateRenderer();else{var r=b(e,3),n=r[0],i=r[1],a=r[2],l=i.subtract(n).normalized(),c=a.subtract(n).normalized(),u=new o.P(1,0),s=new o.P(0,1),f=Math.acos(l.dotProduct(u));l.dotProduct(s)<0&&(f=2*Math.PI-f);var d=Math.acos(c.dotProduct(u));if(c.dotProduct(s)<0&&(d=2*Math.PI-d),d<f&&(f=(t=[d,f])[0],d=t[1]),Math.abs(f-d)>Math.PI){var h=Math.min(f,d);f=Math.max(f,d),d=h+2*Math.PI}var p=this._source.properties();if(e.length>=2){var y=p.levels.filter(function(t){return!1!==t.visible}).reduce(function(t,e,r){var o=e.coeff,a=e.color,u=Math.abs(i.subtract(n).length()*o),s=l.add(c).scaled(.5).normalized().scaled(u),f=n.add(s),d=n.add(l.scaled(u)),h=n.add(c.scaled(u));return t.push({coeff:o,color:a,radius:u,labelPoint:f,p1:d,p2:h,linewidth:e.linewidth,linestyle:e.linestyle,index:r}),t},[]);this._updateRenderer(f,d,y)}}}},{key:"_updateRenderer",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!((null===(t=this.points())||void 0===t?void 0:t.length)<2)){var a=this._source.properties(),c=b(this.points(),2),u=c[0],s=c[1],f=a.trendline.visible?a.trendline.linewidth:0,h=a.trendline.linestyle;if(this._baseTrendRenderer.setData({points:[u,s],lineColor:a.trendline.color,lineWidth:f,lineStyle:h,extendLeft:!1,extendRight:!1,leftEnd:i.L.Normal,rightEnd:i.L.Normal}),this._renderer.append(this._baseTrendRenderer),this.points().length<3)this.addAnchors(this._renderer);else{var p=this.points()[2],y=s.subtract(u).length(),v=p.subtract(u).normalized();p=u.add(v.scaled(y)),this._edgeTrendRenderer.setData({points:[u,p],lineColor:a.trendline.color,lineWidth:f,lineStyle:h,extendLeft:!1,extendRight:!1,leftEnd:i.L.Normal,rightEnd:i.L.Normal}),this._renderer.append(this._edgeTrendRenderer);for(var _=n.length-1;_>=0;_--){var P=n[_],g=n[_-1],m=new T;m.setData({center:this.points()[0],radius:P.radius,prevRadius:g?g.radiu
1s:0,color:P.color,linewidth:P.linewidth,angle1:e,angle2:r,p1:P.p1,p2:P.p2,fillBackground:a.fillBackground,transparency:a.transparency,color1:"",color2:""}),m.setHitTest(new o.H(o.a.MovePoint)),this._renderer.append(m);var w=this._updateLabelForLevel({levelIndex:P.index,coeff:P.coeff,color:P.color,leftPoint:P.labelPoint,rightPoint:P.labelPoint,price:"",horzAlign:d.H.Left,vertAlign:d.V.Middle});w&&this._renderer.append(w)}var O=[u,s];O.push(new l.A(p,{pointIndex:2}));var j=this.createLineAnchor({points:O},0);this._renderer.append(j)}}}}])}(f.F),k=function(t){function e(){var t;return _(this,e),(t=w(this,e,arguments))._lines=new A(O(t)),t._paneView=[t._lines],t._priceAxisPaneViews=[new a.P(Object.create(null))],t._timeAxisPaneViews=[new a.T(Object.create(null))],t._timeAxisViews=[new u.T(Object.create(null)),new u.T(Object.create(null)),new u.T(Object.create(null))],t._priceAxisViews=[new c.P(Object.create(null)),new c.P(Object.create(null)),new c.P(Object.create(null))],t}return x(e,t),g(e,[{key:"pointsCount",value:function(){return 3}},{key:"setPoint",value:function(t,r,n){if(p(e,"setPoint",this,3)([t,r,n]),2===t){var a=(0,i.e)(this.pointToScreenPoint(this.controlPoints[0])),l=(0,i.e)(this.pointToScreenPoint(this.controlPoints[1])),c=(0,i.e)(this.pointToScreenPoint(this.controlPoints[2])).subtract(a).length(),u=l.subtract(a);u.length()<=0&&(u=new o.P(1,0)),l=a.add(u.normalized().scaled(c));var s=(0,i.e)(this.screenPointToPoint(l));this.controlPoints[1]=s}else{var f=(0,i.e)(this.pointToScreenPoint(this.controlPoints[0])),d=(0,i.e)(this.pointToScreenPoint(this.controlPoints[1])),h=(0,i.e)(this.pointToScreenPoint(this.controlPoints[2])),y=d.subtract(f).length(),b=h.subtract(f);b.length()<=0&&(b=new o.P(1,0)),h=f.add(b.normalized().scaled(y));var v=(0,i.e)(this.screenPointToPoint(h));this.controlPoints[2]=v}}},{key:"addPoint",value:function(t,r){if(2===r){var n=(0,i.e)(this.pointToScreenPoint(this.controlPoints[0])),o=(0,i.e)(this.pointToScreenPoint(this.controlPoints[1])),a=(0,i.e)(this.pointToScreenPoint(t)),l=o.subtract(n).length(),c=a.subtract(n).normalized();a=n.add(c.scaled(l)),t=this.screenPointToPoint(a)}return p(e,"addPoint",this,3)([t,r])}},{key:"updateAllViews",value:function(){var t=this;if(this.controlPoints.length){for(var e=[],r=0;r<this.controlPoints.length;r++){var n=this.controlPoints[r],i=this.pointToScreenPoint(n);if(!i)return;e.push(new l.A(i,{pointIndex:r}))}var o=e.map(function(t){return t.x}),a=e.map(function(t){return t.y});this.controlPoints.forEach(function(r,n){t._timeAxisViews[n].update(t._calculateTimeAxisViewData(r.time,e[n].x)),t._priceAxisViews[n].update(t._calculatePriceAxisViewData(r.price,e[n].y))}),o.length>1&&this._timeAxisPaneViews[0].update(this._calculateTimeAxisPaneViewsData(Math.min.apply(null,o),Math.max.apply(null,o))),a.length>1&&this._priceAxisPaneViews[0].update(this._calculatePriceAxisPaneViewData(Math.min.apply(null,a),Math.max.apply(null,a))),this._lines.update({points:e})}}}])}(l.u)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.