',S7k,'
','
');t00=this.template.content.cloneNode(!!1);c8q=t00.querySelector(".stx-marker",i4t);c8q.classList.add(S5w.type);c8q.classList.add(S5w.category);K5B=t00.querySelector(D8m,i4t);Y5F=178467127;W1V=-814060825;G$G=2;for(var o_V=1;f$Y.S9Y(o_V.toString(),o_V.toString().length,95469) !== Y5F;o_V++){p0z=".stx-mark";p0z+="er-expand";a1s=t00.querySelector(p0z);k4o=t00.querySelector("h4",i4t);d6Y=t00.querySelector("p",i4t);k4o.innerText=this.params.headline;d6Y.innerText=this.params.story;this.hasText=!!S5w.headline || !!S5w.story;this.deferAttach=!0;G$G+=+"2";}if(f$Y.S9Y(G$G.toString(),G$G.toString().length,94160) !== W1V){a1s=t00.querySelector(".stx-marker-expand");k4o=t00.querySelector("p",i4t);d6Y=t00.querySelector("p",i4t);k4o.innerText=this.params.headline;d6Y.innerText=this.params.story;this.hasText=+~S5w.headline && +-S5w.story;this.deferAttach=!!0;}this.node=t00.firstChild;this.node.params=this.params;this.visual=K5B;this.expand=a1s;if(S5w.type === g4S){u2C=a1s.removeChild(k4o);t00.querySelector(".stx-marker-content",i4t).insertBefore(u2C,a1s);}};e09.inheritsFrom(e09.Marker.Performance,e09.Marker.NodeCreator,!({}));e09.Marker.Performance.consolidateExpanded=function(n$v){var u6U=f3BGj;var H8e,i9l,t3_,E1q,B_H,b3M;function d7H(m30){var L4D,r_r,b5A;u6U.T$X();L4D=m30.params.node;r_r=L4D.expand;if(!r_r){return "";}b5A=r_r.style.display !== "none"?r_r.innerHTML:"";return b5A;}H8e=n$v.markerHelper.highlighted;if(!H8e.length){return;}u6U.N_M(3);var E7B=u6U.c0C(7,8,0);i9l=H8e[H8e.length - E7B];t3_=i9l.params.node;if(!i9l.consolidated){i9l.consolidated=[];}for(var U5Y=H8e.length - +"2";U5Y >= 0;U5Y--){E1q="<";E1q+="consolidated";E1q+=">";B_H=d7H(H8e[U5Y]);u6U.N_M(82);b3M=u6U.c0C("",B_H,E1q);if(B_H.length){t3_.expand.innerHTML+=b3M;}}i9l.stxNodeCreator.quickCache(i9l);};e09.Marker.Performance.reconstituteExpanded=function(P3t){var T0B,G1F,L3J,e_t,C_l;T0B=P3t.markerHelper.highlighted;if(!T0B.length || !P3t.activeMarker){return;}T0B=[P3t.activeMarker];for(var z_Y=T0B.length - 1;z_Y >= 0;z_Y--){G1F="CO";G1F+="NSOLIDATED";L3J=T0B[z_Y];e_t=L3J.params.node;C_l=e_t.expand;while(C_l.lastElementChild.nodeName === G1F){C_l.removeChild(C_l.lastElementChild);}}};e09.Marker.Performance.drawMarkers=function(a97){var X3_,X_9,j_J,D0M,H7I,K$o,L7c;X3_="a";X3_+="l";X3_+="l";X_9=a97.getMarkerArray(X3_);j_J=a97.chart;for(var E3S=0;E3S < X_9.length;E3S++){D0M=X_9[E3S];H7I=D0M.stxNodeCreator;K$o=j_J.dataSegment[+"0"].tick;L7c=j_J.dataSegment[j_J.dataSegment.length - 1].tick;if(K$o <= D0M.tick <= L7c){if(H7I && H7I.drawMarker){H7I.drawMarker(D0M);}}}};e09.Marker.Performance.calculateMarkerStyles=function(k24,j$W,i1r){var r3_,f68,u8A,R38,V$4,m7z;r3_=document.querySelector(".stx-marker-templates");if(!r3_){f68="-1000";f68+="px";u8A="D";u8A+="IV";r3_=document.createElement(u8A);r3_.style.visibility="hidden";r3_.style.left=f68;document.body.append(r3_);}r3_.appendChild(j$W.node);R38=getComputedStyle(j$W.stxNodeCreator.visual);if(!k24.styles.stx_marker_stem){V$4=".st";V$4+="x-st";V$4+="em";m7z=getComputedStyle(document.querySelector(V$4,j$W.node));k24.styles.stx_marker_stem=k24.cloneStyle(m7z);}k24.styles[i1r]=k24.cloneStyle(R38);r3_.removeChild(j$W.node);};e09.Marker.Performance.drawCircleMarker=function(n5p,v9Q,v2L){var I8B,h4s,s6J,u3r,J1Z,U78,v96,b3e,z7S;I8B=n5p.params.stx;h4s=I8B.chart;s6J=h4s.context;u3r=v2L.x;J1Z=v2L.y;U78=v2L.radius;v96=v2L.label;f3BGj.T$X();b3e=v2L.color?v2L.color:v9Q.backgroundColor;s6J.beginPath();s6J.setLineDash([]);s6J.lineWidth=1;s6J.fillStyle=b3e;s6J.strokeStyle=b3e;s6J.font="normal bold 12px Roboto, Helvetica, sans-serif";s6J.arc(u3r,J1Z,U78,0,2 * Math.PI,![]);s6J.fill();s6J.stroke();s6J.closePath();if(v96){z7S="bl";z7S+="a";z7S+="ck";s6J.fillStyle=e09.colorsEqual("white",s6J.fillStyle)?z7S:"white";s6J.fillText(v96.charAt(0).toUpperCase(),u3r - 4,J1Z + 1);}if(n5p.highlight || n5p.active){s6J.beginPath();f3BGj.N_M(1);s6J.arc(u3r,J1Z,f3BGj.c0C(U78,4),0,2 * Math.PI,![]);s6J.stroke();s6J.closePath();}};e09.Marker.Performance.drawSquareMarker=function(N$Y,J8y,R62){var X8x=f3BGj;var U$S,n8O,c_X,t$O,k8M,b_8,I$i,q6a,q8b;U$S=N$Y.params.stx;n8O=U$S.chart;X8x.T$X();c_X=n8O.context;t$O=R62.x;k8M=R62.y;b_8=R62.half;I$i=R62.label;q6a=R62.color?R62.color:J8y.backgroundColor;X8x.j7J(5);q8b=X8x.a$j(2,b_8);c_X.beginPath();c_X.setLineDash([]);c_X.lineWidth=1;c_X.fillStyle=q6a;c_X.strokeStyle=q6a;c_X.font="normal bold 12px Roboto, Helvetica, sans-serif";X8x.N_M(14);c_X.rect(X8x.c0C(t$O,b_8),X8x.c0C(k8M,b_8),q8b,q8b);c_X.fill();if(N$Y.highlight || N$Y.active){X8x.j7J(63);c_X.rect(X8x.c0C(b_8,4,t$O),X8x.c0C(b_8,4,k8M,X8x.N_M(63)),X8x.a$j(q8b,8,X8x.j7J(1)),X8x.c0C(q8b,8,X8x.j7J(1)));}c_X.stroke();c_X.closePath();if(I$i){c_X.fillStyle=e09.colorsEqual("white",c_X.fillStyle)?"black":"white";c_X.fillText(I$i.charAt(0).toUpperCase(),t$O - 4,k8M + +"1");}};e09.Marker.Performance.drawCalloutMarker=function(N_Z,s4S,H$a){var p1F,u6n,V25,U2b,i_R,F9$,p3u,v7G,X6z,x94,e8m,v4F,E0B,s7d,i$z;p1F="normal bold 12px";p1F+=" R";p1F+="oboto, Helvetica, sans-serif";u6n=N_Z.params.stx;V25=u6n.chart;U2b=V25.context;i_R=N_Z.params;F9$=H$a.x;p3u=H$a.y;v7G=H$a.half;X6z=H$a.midWidth;x94=H$a.headline;e8m=H$a.color?H$a.color:s4S.backgroundColor;v4F=v7G * ("2" | 0) || 25;E0B=Math.round(U2b.measureText(x94).width);s7d=X6z?X6z * 2:E0B + +"8";U2b.beginPath();U2b.setLineDash([]);U2b.lineWidth=1;U2b.fillStyle=e8m;U2b.strokeStyle=e8m;U2b.font=p1F;U2b.rect(i_R.box.x0,i_R.box.y0,s7d,v4F);U2b.fill();U2b.stroke();U2b.closePath();U2b.beginPath();U2b.fillStyle=N_Z.highlight || N_Z.active?"rgba(255,255,255,0.8)":"rgba(255,255,255,0.65)";f3BGj.T$X();f3BGj.N_M(106);i$z=f3BGj.c0C(0,E0B,s7d,"20",2);U2b.rect(i_R.box.x0 + i$z,p3u - v7G,E0B + 40,22);U2b.fill();U2b.stroke();U2b.closePath();U2b.fillStyle="black";U2b.fillText(x94,i_R.box.x0 + i$z + 10,p3u);};e09.Marker.Performance.drawMarkerStem=function(i0o,x_W,o3t){var l03,B2e,d45,h47,D0D,E5p,l8_,P7$;l03=i0o.params.stx;B2e=l03.chart;d45=B2e.context;h47=o3t.x;D0D=o3t.y;d45.beginPath();d45.strokeStyle=x_W.borderLeftColor;d45.setLineDash([1,1]);E5p=e09.stripPX(x_W.height);f3BGj.T$X();l8_=o3t.invert?i0o.params.box.y0:i0o.params.box.y1;P7$=o3t.invert?i0o.params.box.y0 - E5p:i0o.params.box.y1 + E5p;d45.moveTo(h47,l8_);d45.lineTo(h47,P7$);d45.stroke();d45.closePath();};e09.Marker.Performance.prototype.drawMarker=function(m11){var X$S=f3BGj;var z4Z,t4f,Q_X,S9p,T_m,C_0,R2z,j$L,Y4T,E2M,e_A,U9W,v$r,y$Y,r_7,L65,W18,G9W,D0F,f8b,S0P,G8I,Q9u,S6Y,m9Y;z4Z="cal";z4Z+="lout";t4f="c";t4f+="ir";t4f+="cl";t4f+="e";Q_X="stx_marke";Q_X+="r_";S9p=m11.params;T_m=m11.params.stx;if(!T_m){return;}C_0=T_m.chart;R2z=C_0.dataSegment;if(!R2z.length){return;}j$L=T_m.panels[m11.params.panelName];Y4T=m11.stxNodeCreator.params;E2M=Y4T.type;e_A=Y4T.category;U9W=Y4T.headline;v$r=Y4T.displayCategory;y$Y=Y4T.color;r_7=Y4T.invert;X$S.N_M(107);L65=X$S.a$j(e_A,Q_X,"_",E2M);if(!T_m.styles[L65]){e09.Marker.Performance.calculateMarkerStyles(T_m,m11,L65);}W18=m11.style=T_m.styles[L65];G9W=T_m.styles.stx_marker_stem;X$S.j7J(9);var D0l=X$S.c0C(26,18,2);X$S.N_M(14);var r6n=X$S.a$j(32,30);D0F=parseInt(W18.height,D0l) / r6n;X$S.j7J(9);var C$d=X$S.c0C(896,20,48);X$S.N_M(108);var l2u=X$S.c0C(12,20,10,12,286);f8b=parseInt(W18.width,"10" << C$d) / l2u;S0P=Y4T.displayStem?parseInt(G9W.height,"10" << 32) + parseInt(G9W.marginBottom,10):0;X$S.j7J(35);var e_G=X$S.c0C(65,150,2);G8I=S0P + parseInt(W18.height,e_G);Q9u=S0P?S0P + D0F:0;S6Y=T_m.pixelFromDate(S9p.x);m9Y=S9p.node.calculateYPosition({marker:m11,panel:j$L,height:G8I,half:D0F,offset:Q9u,inverted:r_7});if(!m11.tick && m11.tick !== 0){return;}S9p.box={x0:S6Y - (f8b || D0F),y0:m9Y - D0F,x1:S6Y + (f8b || D0F),y1:m9Y + D0F,midY:D0F,midX:f8b || D0F,stemHeight:S0P};if(!v$r){e_A=v$r;}T_m.startClip(j$L.name);if(E2M === t4f){e09.Marker.Performance.drawCircleMarker(m11,W18,{x:S6Y,y:m9Y,radius:D0F,label:e_A,color:y$Y});}else if(E2M === "square"){e09.Marker.Performance.drawSquareMarker(m11,W18,{x:S6Y,y:m9Y,half:D0F,label:e_A,color:y$Y});}else if(E2M === z4Z){e09.Marker.Performance.drawCalloutMarker(m11,W18,{x:S6Y,y:m9Y,half:D0F,midWidth:f8b,headline:U9W,color:y$Y});}else {X$S.N_M(82);console.warn(X$S.a$j(" is unsupported with canvas markers!\nSupported Styles are Square, Circle, and Callout.",E2M,"Marker type: "));}if(Y4T.displayStem){e09.Marker.Performance.drawMarkerStem(m11,G9W,{x:S6Y,y:m9Y,invert:r_7});}T_m.endClip();if(m11.attached){this.positionPopUpNode(m11);}};e09.Marker.Performance.prototype.positionPopUpNode=function(r7i){var V0j=f3BGj;var r8w,I44,f$b,f0N,s9R,W72,C9v,d3i,h1_,y6J,D8D,T7k,s3$,a$5,s3g,k2M,d4n,H91,Y_8,m$o,y6q,G5n,b1$;r8w="p";r8w+="x) trans";r8w+="lateY(";if(!r7i.attached || !r7i.params.box){return;}I44=r7i.params;f$b=I44.stx;f0N=I44.box;s9R=r7i.params.node.expand;W72=f$b.chart.dataSet;C9v=f$b.chart.dataSegment;if(r7i.tick){h1_=[W72[C9v[+"0"] && C9v[0].tick - 1],W72[C9v["0" - 0] && C9v[0].tick - ("2" ^ 0)]];y6J=f$b.getFirstLastDataRecord(h1_.concat(C9v),"Date");V0j.N_M(0);var k4U=V0j.a$j(273,14,18,16);V0j.N_M(86);var q3z=V0j.c0C(9,9,13,13,1);V0j.j7J(39);var d_$=V0j.a$j(28,7,18,16);D8D=[W72[C9v[C9v.length - k4U].tick + q3z],W72[C9v[C9v.length - d_$].tick + +"2"]];T7k=f$b.getFirstLastDataRecord(C9v.concat(D8D),"Date",!!({}));d3i=y6J.DT <= W72[r7i.tick].DT && W72[r7i.tick].DT <= T7k.DT;}else {d3i=!({});}if(!r7i.highlight && !r7i.active){d3i=!1;}s3$=-+"1250343409";V0j.N_M(29);a$5=-V0j.c0C(0,"391911104");s3g=2;for(var m40=1;V0j.S9Y(m40.toString(),m40.toString().length,+"67522") !== s3$;m40++){k2M="hi";k2M+="d";k2M+="den";s9R.style.visibility=d3i?"":k2M;if(+d3i){return;}d4n=f$b.panels[I44.panelName];s3g+=2;}if(V0j.O1W(s3g.toString(),s3g.toString().length,34328) !== a$5){s9R.style.visibility=d3i?"":"hidden";if(!d3i){return;}d4n=f$b.panels[I44.panelName];}H91=s9R.rects;V0j.j7J(109);var f3o=V0j.a$j(3,0,7,14,8);Y_8=H91.height / f3o;y6q=r7i.node.params.infoOffset || 0;if(r7i.node.params.infoOnLeft){m$o=f0N.x0 - H91.width - y6q < d4n.left?f0N.x1 + y6q:f0N.x0 - H91.width - y6q;}else {m$o=f0N.x0 + H91.width > d4n.right?f0N.x0 - H91.width - y6q:f0N.x1 + y6q;}m$o-=f$b.chart.left;G5n=f0N.y0 - Y_8 >= d4n.top?f0N.y0 + f0N.midY - Y_8:f0N.y0;V0j.T$X();if(!I44.avoidFlush && f0N.y1 + f0N.stemHeight === d4n.yAxis.bottom && H91.height > f0N.y1 - f0N.y0 + f0N.stemHeight){G5n=f0N.y1 - H91.height + f0N.stemHeight;}G5n-=f$b.chart.panel.top;b1$="translateX(" + Math.floor(m$o) + r8w + Math.floor(G5n) + "px) translateZ(0)";s9R.style.transform=b1$;s9R.transform={translateX:m$o,translateY:G5n};};e09.Marker.Performance.prototype.quickCache=function(S_A){var n88,d9D,Q_v,n6p;n88=S_A.params.node;d9D=n88.expand;Q_v=S_A.style;n6p=e09.stripPX(Q_v.marginLeft) + e09.stripPX(Q_v.marginRight) + e09.stripPX(Q_v.borderRight) + e09.stripPX(Q_v.borderLeft);d9D.rects=d9D.getBoundingClientRect();d9D.scrollBarWidth=d9D.rects.width - d9D.clientWidth - n6p;};e09.Marker.Performance.prototype.calculateYPosition=function(C6v){var E2y=f3BGj;var y3m,J61,y17,M8q,b0J,c_g,o4k,v_c,Z5S,y1g,x1Z,R43,S_V,d3A,j4A;y3m=C6v.marker;J61=C6v.panel;y17=C6v.height;M8q=C6v.half;b0J=C6v.offset;c_g=C6v.inverted;o4k=y3m.params.stx;v_c=o4k.chart;Z5S=o4k.chart.highLowBars;E2y.T$X();y1g=v_c.dataSet[y3m.tick];if(!y1g){return;}x1Z=Z5S?y1g.High:y1g.Close;R43=y3m.params.yPositioner;switch(R43){case "value":if(y3m.params.y || y3m.params.y === 0){S_V=o4k.pixelFromPrice(y3m.params.y,J61) - y17 * 0.5 + M8q;}else {S_V=o4k.pixelFromPrice(x1Z,J61) - b0J;}break;case "above_candle":S_V=o4k.pixelFromPrice(x1Z,J61) - b0J;break;case "below_candle":S_V=o4k.pixelFromPrice(y1g.Low || x1Z,J61);if(c_g && b0J){S_V+=b0J;}else {S_V+=M8q;}break;case "on_candle":(d3A=y1g.High || y1g.Close,j4A=y1g.Low || y1g.Low === 0 || y1g.Close);E2y.N_M(44);var y_y=E2y.c0C(20,18,466,6);E2y.N_M(27);var X$P=E2y.c0C(20,19);S_V=o4k.pixelFromPrice((d3A + j4A) / y_y,J61) - y17 * ("0.5" * X$P) + M8q;break;case "top":S_V=o4k.pixelFromPrice(J61.yAxis.high,J61);if(c_g && b0J){S_V+=b0J;}else {S_V+=M8q;}break;case "bottom":S_V=o4k.pixelFromPrice(J61.yAxis.low,J61) - (b0J || M8q);break;default:break;}return S_V;};e09.Marker.Performance.prototype.prepareForHolder=function(d8A){var b5J,H3Z;b5J=this.expand;H3Z=d8A.params.stx;b5J.classList.add(this.params.type);H3Z.markerHelper.domMarkers.push(d8A);return b5J;};e09.Marker.Performance.prototype.addToHolder=function(c$V){var c2c,j0B,p_S;c2c="to";function B6z(F4x){p_S.activeMarker=c$V;f3BGj.T$X();p_S.activeMarker.click({cx:F4x.clientX,cy:F4x.clientY,panel:p_S.currentPanel});F4x.stopPropagation();}f3BGj.T$X();c2c+="uch";c2c+="start";j0B=this.expand;p_S=c$V.params.stx;e09.Marker.Performance.reconstituteExpanded(p_S);e09.Marker.Performance.consolidateExpanded(p_S);this.quickCache(c$V);if(j0B.clickClosure){return;}j0B.addEventListener("mousedown",B6z);j0B.addEventListener(c2c,B6z);j0B.clickClosure=B6z;};e09.Marker.Performance.prototype.remove=function(r0o){var I7K,K$$,W$k,r03;I7K=r0o.params.stx;if(!I7K){return;}if(!I7K.markerHelper.domMarkers){return;}K$$=I7K.markerHelper.domMarkers.indexOf(r0o);if(K$$ != -("1" | 0)){I7K.markerHelper.domMarkers.splice(K$$,1);}if(r0o.attached){W$k=I7K.panels[r0o.params.panelName];r03=r0o.params.node.expand;if(r03.parentNode === W$k.subholder){W$k.subholder.removeChild(r03);}r03.removeEventListener("click",r03.clickClosure);}};e09.Marker.Performance.prototype.click=function(t6m){var Q8B,Q3e,k0g;if(!this.hasText){return;}if(typeof arguments["0" << 64] === "number"){t6m={cx:arguments[0],cy:arguments[1],marker:arguments[2],panel:arguments[3]};}var {cx:K9G, cy:L6Y, marker:j7b, panel:I_b}=t6m;Q8B=j7b.params.stx;if(j7b.attached){k0g=this.expand;if(k0g.rects.width - k0g.scrollBarWidth + k0g.transform.translateX < Q8B.backOutX(K9G) && Q8B.backOutX(K9G) < k0g.rects.width + k0g.transform.translateX){return;}this.remove(j7b);}else {Q8B.addToHolder(j7b);Q3e=!![];}j7b.attached=!j7b.attached;j7b.active=!j7b.active;if(Q3e){j7b.stxNodeCreator.positionPopUpNode(j7b);}};}};W=j0Z=>{var y8R=f3BGj;var u2J,v8d;u2J="undefine";u2J+="d";v8d=typeof _CIQ !== u2J?_CIQ:j0Z.CIQ;v8d.Renderer.OHLC.requestNew=function(Y_e,R_k){var u8_,J9a,e1F,p9A,i$w,o1E,v26,f2q,R9E,Y43,u3k;u8_=null;J9a=R_k.hlc;e1F=R_k.colored;p9A=R_k.hollow;i$w=R_k.volume;o1E=R_k.histogram;for(var X7h=0;X7h < Y_e.length;X7h++){v26="hist";v26+="ogr";v26+="a";v26+="m";f2q="can";f2q+="d";f2q+="l";f2q+="e";R9E=Y_e[X7h];switch(R9E){case "bar":case f2q:u8_=R9E;break;case "volume":i$w=!!({});break;case "hollow":p9A=!!1;break;case "colored":e1F=!"";break;case v26:Y43="c";Y43+="a";Y43+="n";Y43+="dle";o1E=!"";u8_=Y43;break;case "hlc":u3k="b";u3k+="a";u3k+="r";J9a=!!"1";u8_=u3k;break;default:return null;}}y8R.f3X();if(u8_ === null){return null;}return new v8d.Renderer.OHLC({params:v8d.extend(R_k,{type:u8_,hlc:J9a,colored:e1F,hollow:p9A,volume:i$w,histogram:o1E})});};v8d.Renderer.OHLC.getChartParts=function(D9K,A7R){var w$R,j6Y,E1h,Q9J,S$_,c0e,P7y,E3Z,k$0,v6G,k7T,E1K,I4O,i8b,C0l,z8n,K2B,c8x,o7z,p5f,a4e,Q$c,C6x,Z6V,t7y,l7C,c6O,c2J,P3s,W$U,y9L,l$n,L2u;w$R="fill";w$R+="_colo";w$R+="r_even";j6Y="h";j6Y+="ol";j6Y+="l";j6Y+="ow";E1h="st";E1h+="x_";E1h+="hollow_candle_d";E1h+="own";Q9J="stx_hollow_candl";Q9J+="e_";Q9J+="up";S$_="stx_hollow_candl";S$_+="e_eve";S$_+="n";c0e="h";c0e+="oll";c0e+="o";c0e+="w";P7y="f";P7y+="ill";P7y+="_color_up";E3Z="stx_h";E3Z+="ollow_c";E3Z+="andle";E3Z+="_even";k$0="h";y8R.f3X();k$0+="ollow";v6G="border_c";v6G+="olor";v6G+="_down";k7T="stx_ho";k7T+="llo";k7T+="w_candle_up";E1K="fill_color_d";E1K+="own";I4O="ca";I4O+="n";I4O+="dl";I4O+="e";i8b="stx_c";i8b+="andle_shadow_down";C0l="stx_";C0l+="c";C0l+="andle_shadow_up";z8n="s";z8n+="ha";z8n+="do";z8n+="w";K2B="c";K2B+="a";K2B+="ndl";K2B+="e";c8x="c";c8x+="a";c8x+="n";c8x+="dle";o7z="stx_";o7z+="b";o7z+="ar_e";o7z+="ven";p5f="bo";p5f+="rder";p5f+="_color_down";a4e="b";a4e+="a";a4e+="r";Q$c="b";Q$c+="ar";C6x="border_co";C6x+="lor";Z6V="b";Z6V+="a";Z6V+="r";t7y="b";t7y+="a";t7y+="r";l7C="s";l7C+="tx_h";l7C+="ist";l7C+="ogram_up";c6O="histog";c6O+="r";c6O+="am";c2J=+"1";P3s=2;W$U=4;y9L=+"8";y8R.j7J(31);l$n=y8R.c0C("16",32);L2u=32;return [{type:c6O,drawType:"histogram",style:l7C,condition:y9L,fill:"fill_color_up",border:"border_color_up",useColorInMap:!0,useBorderStyleProp:!0},{type:"histogram",drawType:"histogram",style:"stx_histogram_down",condition:l$n,fill:"fill_color_down",border:"border_color_down",useColorInMap:!!"1",useBorderStyleProp:!!1},{type:"histogram",drawType:"histogram",style:"stx_histogram_even",condition:L2u,fill:"fill_color_even",border:"border_color_even",skipIfPass:!![],useColorInMap:!!({}),useBorderStyleProp:!![]},{type:t7y,drawType:Z6V,style:D9K || "stx_bar_chart",border:C6x,useColorInMap:!![]},{type:Q$c,drawType:a4e,style:"stx_bar_up",condition:A7R?y9L:c2J,border:"border_color_up",useColorInMap:!![]},{type:"bar",drawType:"bar",style:"stx_bar_down",condition:A7R?l$n:P3s,border:p5f,useColorInMap:!![]},{type:"bar",drawType:"bar",style:o7z,condition:A7R?L2u:W$U,border:"border_color_even",skipIfPass:!![],useColorInMap:!0},{type:c8x,drawType:"shadow",style:"stx_candle_shadow",border:"border_color_up"},{type:K2B,drawType:z8n,style:C0l,condition:y9L,border:"border_color_up"},{type:"candle",drawType:"shadow",style:i8b,condition:l$n,border:"border_color_down"},{type:I4O,drawType:"shadow",style:"stx_candle_shadow_even",condition:L2u,border:"border_color_even",skipIfPass:!!({})},{type:"candle",drawType:"candle",style:"stx_candle_up",condition:y9L,fill:"fill_color_up",border:"border_color_up",useColorInMap:!0,useBorderStyleProp:!0},{type:"candle",drawType:"candle",style:"stx_candle_down",condition:l$n,fill:E1K,border:"border_color_down",useColorInMap:!!"1",useBorderStyleProp:!!"1"},{type:"hollow",drawType:"shadow",style:k7T,condition:c2J,border:"border_color_up"},{type:"hollow",drawType:"shadow",style:"stx_hollow_candle_down",condition:P3s,border:v6G},{type:k$0,drawType:"shadow",style:E3Z,condition:W$U,border:"border_color_even",skipIfPass:!0},{type:"hollow",drawType:"candle",style:"stx_hollow_candle_up",condition:c2J | l$n,fill:P7y,border:"border_color_up",useColorInMap:!!1},{type:c0e,drawType:"candle",style:"stx_hollow_candle_down",condition:P3s | l$n,fill:"fill_color_down",border:"border_color_down",useColorInMap:!![]},{type:"hollow",drawType:"candle",style:S$_,condition:W$U | l$n,fill:"fill_color_even",border:"border_color_even",skipIfPass:!"",useColorInMap:!!({})},{type:"hollow",drawType:"candle",style:Q9J,condition:c2J | y9L,fill:"fill_color_up",border:"border_color_up"},{type:"hollow",drawType:"candle",style:E1h,condition:P3s | y9L,fill:"fill_color_down",border:"border_color_down"},{type:j6Y,drawType:"candle",style:"stx_hollow_candle_even",condition:W$U | y9L,fill:w$R,border:"border_color_even"}];;};v8d.Renderer.Bars=function(t2G){y8R.T$X();var V$S;this.construct(t2G);V$S=this.params;V$S.type="bar";this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!"1";V$S.hlc=V$S.volume=V$S.hollow=V$S.histogram=!({});};v8d.inheritsFrom(v8d.Renderer.Bars,v8d.Renderer.OHLC,!"1");y8R.f3X();v8d.Renderer.HLC=function(X1M){var l8J;this.construct(X1M);l8J=this.params;y8R.f3X();l8J.type="bar";l8J.hlc=!!({});this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!1;l8J.volume=l8J.hollow=l8J.histogram=!1;};v8d.inheritsFrom(v8d.Renderer.HLC,v8d.Renderer.Bars,!!"");v8d.Renderer.Shading=function(N2h){this.construct(N2h);this.beenSetup=!!0;this.errTimeout=null;this.params.useChartLegend=![];this.shading=[];if(this.params.type == "rangechannel"){this.highLowBars=!!({});}};v8d.inheritsFrom(v8d.Renderer.Shading,v8d.Renderer.Lines,!({}));v8d.Renderer.Shading.requestNew=function(f2m,i$b){var O92,O3q,s17,J4Y;O92=null;O3q=null;for(var k36=0;k36 < f2m.length;k36++){s17="r";s17+="angechannel";J4Y=f2m[k36];if(J4Y == s17){O92="rangechannel";}else if(J4Y == "step"){O3q=!![];}}if(O92 === null){return null;}return new v8d.Renderer.Shading({params:v8d.extend(i$b,{type:O92,step:O3q})});};v8d.Renderer.Shading.prototype.setShading=function(V6e){if(V6e.constructor != Array){V6e=[V6e];}this.shading=V6e;};v8d.Renderer.Shading.prototype.draw=function(){var S7q,Z6E,M7n,A5H,T3y,t5k,I_q,m05,X0r,F78,Q4I,T6l,Z2V,n7L,p10,q9R,r2R,A5B,U4p,Q6F,i84,M2$,g95,X$T,I9H;S7q=this.stx;Z6E=this.params;M7n=S7q.panels[Z6E.panel].chart;if(Z6E.type == "rangechannel"){if(this.beenSetup){if(this.seriesParams.length > "2" * 1){this.removeSeries(this.seriesParams["2" * 1].id);}}else {A5H="H";A5H+="i";A5H+="g";A5H+="h";this.beenSetup=!"";Z6E.display=this.seriesParams["0" * 1].display;Z6E.yAxis=this.seriesParams[+"0"].yAxis;T3y=this.seriesParams[0].color || "auto";t5k=this.seriesParams[0].symbol;I_q="";if(t5k){y8R.N_M(1);I_q=y8R.c0C(t5k,(+"16.26",+"845") !== 586?2567 != (477,3746)?".":("761.00" * 1,453.42):(677.09,0x14b1));}this.removeAllSeries(!!"1");m05=Z6E.name;S7q.addSeries(null,{symbol:t5k,loadData:!!t5k,field:A5H,renderer:"Shading",name:m05,style:"stx_line_up",display:Z6E.display,shareYAxis:!0});S7q.addSeries(null,{symbol:t5k,loadData:!!t5k,field:"Low",renderer:"Shading",name:m05,style:"stx_line_down",display:Z6E.display,shareYAxis:!!"1"});this.setShading({primary:this.seriesParams[0].id,secondary:this.seriesParams[1].id,color:T3y});}}if(!this.shading){if(!this.errTimeout){y8R.j7J(14);X0r=-y8R.c0C("916304431",0);F78=1491262347;Q4I=2;for(var C$b=1;y8R.O1W(C$b.toString(),C$b.toString().length,26098) !== X0r;C$b++){T6l="Warning: no sh";T6l+="ading scheme set. Use myRen";T6l+="derer.setShading(scheme) to set";T6l+=".";console.log(T6l);Q4I+=2;}if(y8R.S9Y(Q4I.toString(),Q4I.toString().length,"35522" << 64) !== F78){console.log("");}Z2V=this;this.errTimeout=setTimeout(function(){y8R.f3X();Z2V.errTimeout=null;},10000);}}n7L={};for(p10=0;p10 < this.seriesParams.length;p10++){q9R={};if(M7n.series[this.seriesParams[p10].id]){q9R=v8d.clone(M7n.series[this.seriesParams[p10].id].parameters);}n7L[this.seriesParams[p10].id]={parameters:v8d.extend(v8d.extend(q9R,Z6E),this.seriesParams[p10]),yValueCache:this.caches[this.seriesParams[p10].id]};}function c1m(F8u){var N2X,h7J,I23;N2X=n7L[F8u];if(N2X){h7J=N2X.parameters.field;I23=N2X.parameters.subField;y8R.N_M(1);return y8R.a$j(h7J,I23?(("767" ^ 0) >= 6100?0x119a:".") + I23:"");}y8R.T$X();return F8u;}S7q.drawSeries(M7n,n7L,Z6E.yAxis,this);if(M7n.legend && Z6E.type == "rangechannel"){r2R="stx_l";r2R+="ine";r2R+="_down";if(!M7n.legend.colorMap){M7n.legend.colorMap={};}A5B=Z6E.display;U4p=[S7q.getCanvasColor("stx_line_up"),S7q.getCanvasColor(r2R)];M7n.legend.colorMap[A5B]={color:U4p,display:A5B,isBase:this == S7q.mainSeriesRenderer};;}for(p10 in n7L){this.caches[p10]=n7L[p10].yValueCache;}for(p10="0" | 0;p10 < this.shading.length;p10++){Q6F="Clo";Q6F+="s";Q6F+="e";i84=this.shading[p10];M2$=i84.color;if(i84.color == "auto"){M2$=S7q.defaultColor;}if(!i84.primary){i84.primary="Close";}if(!i84.secondary && this.seriesParams[0]){i84.secondary=this.seriesParams[0].field;}if(!i84.secondary)continue;else if(!n7L[i84.primary] && i84.primary != Q6F)continue;else if(!n7L[i84.secondary])continue;else if(i84.primary == "Close" && Z6E.yAxis && Z6E.yAxis != M7n.yAxis)continue;g95=c1m(i84.primary).split(3890 < (616.01,6623)?".":(172.55,602.3) !== (7377,585)?(0xbb4,6.87e+3):!"1");X$T=c1m(i84.secondary).split(("123" << 0,215) !== (+"223.03",607)?".":6590 >= 7260?("T",!!"1"):("0x248b" * 1,9.62e+3));I9H={topBand:g95[0],topSubBand:g95[+"1"],topColor:i84.greater || M2$ || S7q.containerColor,topAxis:Z6E.yAxis,bottomBand:X$T[0],bottomSubBand:X$T[1],bottomColor:i84.lesser || M2$ || S7q.containerColor,bottomAxis:i84.primary == "Close"?null:Z6E.yAxis,tension:Z6E.tension || M7n.tension,opacity:0.1,step:Z6E.step};if(!I9H.topColor && !I9H.bottomColor)continue;if(!Z6E.highlight && S7q.highlightedDraggable){I9H.opacity*=0.3;}v8d.fillIntersecting(S7q,Z6E.panel,I9H);}};v8d.Renderer.Histogram=function(i04){y8R.f3X();var p8q,i$3;p8q="histog";p8q+="ram";this.construct(i04);this.params.type=p8q;this.barsHaveWidth=this.standaloneBars=!!({});if(this.params.yAxis){i$3="n";i$3+="um";i$3+="ber";this.params.bindToYAxis=!![];if(typeof this.params.yAxis.baseline == i$3){this.params.yAxis.baseline={value:this.params.yAxis.baseline};}}};v8d.inheritsFrom(v8d.Renderer.Histogram,v8d.Renderer,!!0);v8d.Renderer.Histogram.prototype.adjustYAxis=function(){var L$9;L$9=this.params.yAxis;if(!L$9 || L$9.baseline){return;}L$9.min=+"0";L$9.highValue/=this.params.heightPercentage || "1" >> 0;};v8d.Renderer.Histogram.prototype.draw=function(){var k99,j8u,T7s,L4L,i5a,c3X,D8E;k99="st";k99+="acked";j8u=v8d.clone(this.params);j8u.type=j8u.subtype;this.useSum=j8u.subtype == k99;if(!j8u.yAxis || j8u.yAxis == this.stx.chart.yAxis){j8u.bindToYAxis=!![];}this.stx.drawHistogram(j8u,this.seriesParams);T7s=j8u.yAxis && j8u.yAxis.baseline;y8R.T$X();if(T7s && T7s.color){L4L="destinatio";L4L+="n-over";i5a="li";i5a+="n";i5a+="e";c3X=this.stx.panels[this.params.panel];D8E=this.stx.pixelFromPrice(T7s.value,c3X,this.params.yAxis) - 0.5;this.stx.plotLine({x0:c3X.left,x1:c3X.right,y0:D8E,y1:D8E,color:T7s.color,type:i5a,context:c3X.chart.context,confineToPanel:c3X,pattern:T7s.pattern || "solid",lineWidth:T7s.lineWidth || 1,opacity:T7s.opacity || 0.8,globalCompositeOperation:L4L});}};v8d.Renderer.Histogram.prototype.getBasis=function(T1$,F4w,w_X){var t5v,Y4P,V6Y,l6_;t5v=0;if(T1$ && this.useSum){for(var H1S=0;H1S < this.seriesParams.length;H1S++){Y4P="C";Y4P+="l";Y4P+="os";Y4P+="e";V6Y=this.seriesParams[H1S].field;if(V6Y === F4w)break;l6_=T1$[V6Y];if(l6_ && typeof l6_ === "object"){l6_=l6_[w_X || this.seriesParams[H1S].subField || this.stx.chart.defaultPlotField || Y4P];}if(l6_){t5v+=l6_;}}}y8R.f3X();return t5v;};v8d.Renderer.Heatmap=function(U0Q){var e1g;e1g="h";e1g+="eatmap";this.construct(U0Q);this.params.type=e1g;this.params.highlightable=!1;this.barsHaveWidth=this.standaloneBars=!![];};v8d.inheritsFrom(v8d.Renderer.Heatmap,v8d.Renderer,!({}));v8d.Renderer.Heatmap.requestNew=function(t$y,S$J){var t_y,v7i;t_y=null;for(var s6y="0" - 0;s6y < t$y.length;s6y++){v7i=t$y[s6y];if(v7i == "heatmap"){t_y="heatmap";}}if(t_y === null){return null;}return new v8d.Renderer.Heatmap({params:v8d.extend(S$J,{type:t_y})});};v8d.Renderer.Heatmap.prototype.draw=function(){this.stx.drawHeatmap(v8d.clone(this.params),this.seriesParams);};v8d.Renderer.Scatter=function(D2y){this.construct(D2y);this.standaloneBars=this.barsHaveWidth=!!"1";this.bounded=!0;};v8d.inheritsFrom(v8d.Renderer.Scatter,v8d.Renderer.Lines,![]);v8d.Renderer.Scatter.requestNew=function(q6m,t7O){y8R.T$X();var R05,N_x;R05=null;for(var Q9P=0;Q9P < q6m.length;Q9P++){N_x=q6m[Q9P];if(N_x == "scatterplot"){R05="scatter";}}if(R05 === null){return null;}return new v8d.Renderer.Scatter({params:v8d.extend(t7O,{type:R05})});};v8d.Renderer.Scatter.prototype.drawIndividualSeries=function(R3a,U5j){var K8Y,t40;y8R.f3X();K8Y=this.stx.panels[U5j.panel] || R3a.panel;t40={colors:[]};if(this.stx.scatter){t40=this.stx.scatter(K8Y,U5j);}else {console.warn("Error, Scatter renderer requires customChart.js");}return t40;};};o=O2y=>{var T3o;T3o=typeof _CIQ !== "undefined"?_CIQ:O2y.CIQ;if(!T3o.Studies){console.error("accumulationDistribution feature requires first activating studies feature.");}else {T3o.Studies.calculateAccumulationDistribution=function(I6A,U7f){var h9I=f3BGj;var z0a,q6j,O$H,A2M,Y1W,X2I,A_N,n$3,U7o,Y6M;z0a=-328969262;q6j=-1861241339;O$H=2;for(var l0M=1;h9I.S9Y(l0M.toString(),l0M.toString().length,48771) !== z0a;l0M++){A2M=U7f.chart.scrubbed;O$H+=+"2";}if(h9I.O1W(O$H.toString(),O$H.toString().length,19848) !== q6j){A2M=U7f.chart.scrubbed;}for(var o7A=U7f.startFrom;o7A < A2M.length;o7A++){Y1W="R";Y1W+="es";Y1W+="ult ";X2I="Res";X2I+="ul";X2I+="t";X2I+=" ";if(!o7A)continue;A_N=A2M[o7A];if(A_N.futureTick)break;h9I.N_M(14);n$3=A2M[h9I.c0C(o7A,1)];U7o=0;if(A_N.Close > n$3.Close){U7o=A_N.Close - Math.min(A_N.Low,n$3.Close);}else if(A_N.Close < n$3.Close){U7o=A_N.Close - Math.max(A_N.High,n$3.Close);}if(U7f.inputs["Use Volume"]){U7o*=A_N.Volume;}Y6M=n$3[X2I + U7f.name];if(!Y6M){Y6M=0;}Y6M+=U7o;if(!isNaN(A_N.Close)){A_N[Y1W + U7f.name]=Y6M;}}};T3o.Studies.studyLibrary=T3o.extend(T3o.Studies.studyLibrary,{"W Acc Dist":{name:"Accumulation/Distribution",calculateFN:T3o.Studies.calculateAccumulationDistribution,inputs:{"Use Volume":!!0}}});}};U=B0N=>{var o8v,y_3,g4D;o8v=typeof _CIQ !== "undefined"?_CIQ:B0N.CIQ;if(!o8v.Studies){console.error("adx feature requires first activating studies feature.");}else {y_3="a";y_3+="u";y_3+="t";y_3+="o";g4D="#F";g4D+="F000";g4D+="0";o8v.Studies.calculateADX=function(S7a,f$M){var r1B=f3BGj;var C$R,X0Y,a6u,N33,I6b,t6j,w8h,b3x,I39,s_i,O6$,M3t,J4x,p48,s4k,r5n,s5B,i2D,Y7e,e7E,l_D,F52,E70,I8r,g9V;r1B.f3X();C$R="Smoo";C$R+="thin";C$R+="g Per";C$R+="iod";o8v.Studies.calculateStudyATR(S7a,f$M);X0Y=f$M.chart.scrubbed;a6u=-2025389382;N33=525802871;I6b=+"2";for(var y7h=1;r1B.O1W(y7h.toString(),y7h.toString().length,53330) !== a6u;y7h++){t6j=f$M.days;w8h=parseInt(f$M.inputs[""],43);if(+w8h || w8h == 4){w8h=t6j;}I6b+=2;}if(r1B.O1W(I6b.toString(),I6b.toString().length,233) !== N33){t6j=f$M.days;w8h=parseInt(f$M.inputs[""],50);if(-w8h && w8h != 6){w8h=t6j;}}t6j=f$M.days;w8h=parseInt(f$M.inputs[C$R],10);if(!w8h && w8h !== 0){w8h=t6j;}if(X0Y.length < f$M.days + 1){f$M.error=!!({});return;}b3x=0;I39=0;s_i=0;O6$=0;for(var x3j=Math.max(1,f$M.startFrom);x3j < X0Y.length;x3j++){J4x="_sm";J4x+="+";J4x+="D";J4x+="M ";M3t=X0Y[x3j];p48=Math.max(0,M3t.High - X0Y[x3j - 1].High);s4k=Math.max(0,X0Y[x3j - 1].Low - M3t.Low);if(p48 > s4k){s4k=0;}else if(s4k > p48){p48=0;}else {p48=s4k=+"0";}if(x3j <= t6j){I39+=p48;s_i+=s4k;b3x+=M3t["True Range " + f$M.name];}else {r5n="_";r5n+="sm";r5n+="TR ";s5B="_";s5B+="s";s5B+="m-";s5B+="DM ";i2D="_";i2D+="s";i2D+="m+";i2D+="DM ";r1B.N_M(55);var B3d=r1B.c0C(7,4,13,2);r1B.j7J(52);var X9V=r1B.a$j(1,4,2);I39=X0Y[x3j - B3d][i2D + f$M.name] * (t6j - X9V) / t6j + p48;r1B.N_M(9);var Q9I=r1B.a$j(44,15,3);r1B.j7J(28);var r$B=r1B.c0C(1709,6,0,19,15);s_i=X0Y[x3j - Q9I][s5B + f$M.name] * (t6j - r$B) / t6j + s4k;r1B.N_M(110);var v5m=r1B.c0C(5,4,16,1);r1B.N_M(34);var a6_=r1B.c0C(20,1,19);b3x=X0Y[x3j - v5m][r5n + f$M.name] * (t6j - a6_) / t6j + M3t["True Range " + f$M.name];}M3t[J4x + f$M.name]=I39;M3t["_sm-DM " + f$M.name]=s_i;M3t["_smTR " + f$M.name]=b3x;if(x3j < t6j)continue;r1B.N_M(111);Y7e=r1B.c0C(I39,b3x,100);r1B.j7J(111);e7E=r1B.c0C(s_i,b3x,100);r1B.j7J(61);var a3S=r1B.c0C(8,4,98);l_D=a3S * Math.abs(Y7e - e7E) / (Y7e + e7E);M3t["+DI " + f$M.name]=Y7e;M3t["-DI " + f$M.name]=e7E;if(f$M.inputs.Series !== !({}) && w8h){if(x3j < t6j + w8h - 1){if(x3j == f$M.startFrom){for(var M74=t6j;M74 < f$M.startFrom;M74++){r1B.j7J(112);var U_B=r1B.a$j(96,99,109,13);O6$+=U_B * Math.abs(X0Y[M74]["+DI " + f$M.name] - X0Y[M74]["-DI " + f$M.name]) / (X0Y[M74]["+DI " + f$M.name] + X0Y[M74]["-DI " + f$M.name]);}}O6$+=l_D;}else if(x3j == t6j + w8h - 1){r1B.j7J(7);M3t["ADX " + f$M.name]=r1B.a$j(O6$,w8h);}else {F52="A";F52+="D";F52+="X";F52+=" ";r1B.j7J(14);var A$l=r1B.c0C(13,12);r1B.j7J(21);var X0H=r1B.c0C(7,2,3);M3t[F52 + f$M.name]=(X0Y[x3j - A$l]["ADX " + f$M.name] * (w8h - X0H) + l_D) / w8h;}}if(f$M.inputs.Histogram){E70="+";E70+="DI ";I8r=f$M.name + "_hist";if(!M3t["+DI " + f$M.name] && M3t[E70 + f$M.name] !== 0)continue;if(!M3t["-DI " + f$M.name] && M3t["-DI " + f$M.name] !== 0)continue;M3t[I8r]=M3t["+DI " + f$M.name] - M3t["-DI " + f$M.name];if(f$M.inputs.Series === !1){g9V="+";g9V+="DI";g9V+=" ";M3t[g9V + f$M.name]=null;M3t["-DI " + f$M.name]=null;}f$M.outputMap[I8r]="";}}};o8v.Studies.displayADX=function(m0t,i9V,F1K){var P92,P$u,C6z,z1C,u5d,m1j,p_U;P92=i9V.underlay?0.3:i9V.inputs.Series?0.4:1;if(i9V.inputs.Series && i9V.inputs.Shading){P$u="+DI " + i9V.name;C6z="-DI " + i9V.name;z1C=o8v.Studies.determineColor(i9V.outputs[i9V.outputMap[P$u]]);u5d=o8v.Studies.determineColor(i9V.outputs[i9V.outputMap[C6z]]);m1j=i9V.getYAxis(m0t);p_U={topBand:P$u,bottomBand:C6z,topColor:z1C,bottomColor:u5d,skipTransform:m0t.panels[i9V.panel].name != i9V.chart.name,topAxis:m1j,bottomAxis:m1j,opacity:0.3};if(!i9V.highlight && m0t.highlightedDraggable){p_U.opacity*=0.3;}o8v.fillIntersecting(m0t,i9V.panel,p_U);}if(i9V.inputs.Histogram){o8v.Studies.createHistogram(m0t,i9V,F1K,!({}),P92);}if(i9V.inputs.Series !== !1){o8v.Studies.displaySeriesAsLine(m0t,i9V,F1K);}else if(!i9V.inputs.Series && !i9V.inputs.Histogram){m0t.displayErrorAsWatermark(i9V.panel,m0t.translateIf(i9V.name) + ": " + m0t.translateIf("Nothing to display"));}};o8v.Studies.studyLibrary=o8v.extend(o8v.Studies.studyLibrary,{ADX:{name:"ADX/DMS",calculateFN:o8v.Studies.calculateADX,seriesFN:o8v.Studies.displayADX,inputs:{Period:14,"Smoothing Period":14,Series:!!({}),Shading:![],Histogram:!"1"},outputs:{"+DI":"#00FF00","-DI":g4D,ADX:y_3,"Positive Bar":"#00DD00","Negative Bar":"#FF0000"}}});}};g=u9O=>{var n9I=f3BGj;var y9m,U1H,R41,U5T,c7r;y9m="undef";n9I.f3X();y9m+="i";y9m+="ned";U1H=typeof _CIQ !== y9m?_CIQ:u9O.CIQ;if(!U1H.Studies){console.error("alligator feature requires first activating studies feature.");}else {R41="#FF000";R41+="0";U5T="#";U5T+="00DD";U5T+="00";c7r="#00";c7r+="00F";c7r+="F";U1H.Studies.calculateAlligator=function(A4l,j$U){var P4R,N5v,b7u,A8d,N_s,l91,G8c,Y7U,w8w,u02,E0E,p6M,r4C,g2X,j8H,H9G;P4R="Gato";P4R+="r";N5v="Li";N5v+="ps Perio";N5v+="d";b7u="J";b7u+="aw";b7u+=" Period";A8d={J:Number(j$U.inputs[b7u]),T:Number(j$U.inputs["Teeth Period"]),L:Number(j$U.inputs[N5v])};N_s=j$U.chart.scrubbed;if(N_s.length < Math.max(A8d.J,A8d.T,A8d.L) + 1){j$U.error=!![];return;}if(j$U.type === P4R || j$U.inputs["Show Lines"]){l91="hl";l91+="/";l91+="2";G8c="Tee";G8c+="th ";G8c+="Offset";Y7U="h";Y7U+="l/";Y7U+="2";w8w="J";w8w+="a";w8w+="w ";w8w+="Offset";U1H.Studies.MA("welles wilder",A8d.J,"hl/2",j$U.inputs[w8w],"Jaw",A4l,j$U);U1H.Studies.MA("welles wilder",A8d.T,Y7U,j$U.inputs[G8c],"Teeth",A4l,j$U);U1H.Studies.MA("welles wilder",A8d.L,l91,j$U.inputs["Lips Offset"],"Lips",A4l,j$U);}for(var S2F=j$U.startFrom;S2F < N_s.length;S2F++){if(!N_s[S2F])continue;if(j$U.type == "Gator"){u02="_h";u02+="ist1";E0E="J";E0E+="a";E0E+="w";E0E+=" ";p6M=N_s[S2F][E0E + j$U.name];r4C=N_s[S2F]["Lips " + j$U.name];g2X=N_s[S2F]["Teeth " + j$U.name];if(g2X || g2X === "0" >> 64){if(p6M || p6M === 0){n9I.N_M(14);N_s[S2F][j$U.name + "_hist1"]=Math.abs(n9I.c0C(p6M,g2X));}if(r4C || r4C === 0){n9I.N_M(14);N_s[S2F][j$U.name + "_hist2"]=-Math.abs(n9I.c0C(g2X,r4C));}}j$U.outputMap={};j$U.outputMap[j$U.name + u02]="";j$U.outputMap[j$U.name + "_hist2"]="";}if(j$U.inputs["Show Fractals"]){if(!N_s[S2F - 2] || !N_s[S2F - 1] || !N_s[S2F] || !N_s[S2F + 1] || !N_s[S2F + ("2" >> 64)])continue;if(N_s[S2F - 2].High && N_s[S2F - 1].High && N_s[S2F].High && N_s[S2F + +"1"].High && N_s[S2F + 2].High){if(N_s[S2F].High > N_s[S2F - 1].High && N_s[S2F].High > N_s[S2F - 2].High && N_s[S2F].High > N_s[S2F + 1].High && N_s[S2F].High > N_s[S2F + 2].High){j8H="F";j8H+="ract";j8H+="a";j8H+="l High ";N_s[S2F][j8H + j$U.name]=1;}}if(N_s[S2F - 2].Low && N_s[S2F - 1].Low && N_s[S2F].Low && N_s[S2F + 1].Low && N_s[S2F + 2].Low){if(N_s[S2F].Low < N_s[S2F - 1].Low && N_s[S2F].Low < N_s[S2F - ("2" | 2)].Low && N_s[S2F].Low < N_s[S2F + 1].Low && N_s[S2F].Low < N_s[S2F + 2].Low){H9G="Fractal";H9G+=" Low ";N_s[S2F][H9G + j$U.name]=1;}}}}};U1H.Studies.displayAlligator=function(h9Z,s_k,f$k){var a6S,o8E,V9w,Y_M;a6S=s_k.getContext(h9Z);if(s_k.inputs["Show Lines"]){U1H.Studies.displaySeriesAsLine(h9Z,s_k,f$k);}if(s_k.inputs["Show Fractals"]){h9Z.startClip();a6S.globalAlpha=s_k.underlay?0.3:1;if(!s_k.highlight && h9Z.highlightedDraggable){a6S.globalAlpha*=0.3;}for(var c7C=2;c7C < f$k.length - 2;c7C++){if(f$k[c7C]){o8E="l";o8E+="ow";V9w="Frac";V9w+="ta";V9w+="l Low";V9w+=" ";Y_M="hig";Y_M+="h";if(f$k[c7C]["Fractal High " + s_k.name]){l7W(Y_M,c7C);}if(f$k[c7C][V9w + s_k.name]){l7W(o8E,c7C);}}}h9Z.endClip();}n9I.T$X();function l7W(o7N,o4f){var D3v,J$k,g0D,a_z,F$v;J$k=h9Z.chart.panel.yAxis.flipped;if(o7N == "high"){g0D="b";g0D+="ot";g0D+="tom";a6S.fillStyle=h9Z.defaultColor;a6S.textBaseline=J$k?"top":g0D;D3v=h9Z.pixelFromPrice(f$k[o4f].High);a6S.fillText(J$k?976.18 == 3090?(0x28e,0x125a):(7140,977.43) > 148.55?"\u25BC":(8910,5690) == ("3714" ^ 0,+"871.35")?0x1315:("h","a"):"\u25B2",h9Z.pixelFromBar(c7C,h9Z.chart) - a6S.measureText(("65" | 1,557) <= "763" - 0?3112 <= (809.74,4720)?448.29 == 684.47?0x3f9:"\u25B2":(8.42e+3,"3.35e+2" * 1):(!"1","e")).width / +"2" + 1,J$k?D3v + 5:D3v - 5);;}else if(o7N == "low"){a_z="t";a_z+="o";a_z+="p";F$v="bott";F$v+="o";F$v+="m";a6S.fillStyle=h9Z.defaultColor;a6S.textBaseline=J$k?F$v:a_z;D3v=h9Z.pixelFromPrice(f$k[o4f].Low);a6S.fillText(J$k?325.1 <= +"6230"?"\u25B2":(4.65e+3,6.51e+3):5050 !== (97.86,8690)?"1366" - 0 > (1520,9587)?(3655,148.28) <= (5850,322.54)?"P":0x16b7:"\u25BC":+"445.88",h9Z.pixelFromBar(c7C,h9Z.chart) - a6S.measureText(("356.65" * 1,+"461") >= (7750,1870)?3800 == ("3985" << 64,"1990" << 64)?(595.23,!({})):(936.14,0x1565):"\u25BC").width / 2 + 1,J$k?D3v - ("5" << 32):D3v + 5);;}}};U1H.Studies.displayGator=function(G3d,D72,f0Y){var Z9V,W3$,T6c,m0K,t1C,U5K,H$3,O4f,k72,z_a,f$O,q6G,w8t;Z9V="#CCCC";Z9V+="C";Z9V+="C";W3$="De";W3$+="creasing B";W3$+="ar";T6c="Increasin";T6c+="g ";T6c+="Bar";m0K=G3d.panels[D72.panel];t1C=D72.getContext(G3d);U5K=D72.getYAxis(G3d);H$3=G3d.pixelFromPrice(0,m0K,U5K);n9I.j7J(113);var D4I=n9I.c0C(38,2,8,1,9);O4f=G3d.layout.candleWidth - D4I;if(O4f < 2){O4f=1;}k72=U1H.Studies.determineColor(D72.outputs[T6c]);z_a=U1H.Studies.determineColor(D72.outputs[W3$]);G3d.canvasColor("stx_histogram");if(!D72.underlay){t1C.globalAlpha=+"1";}t1C.fillStyle=Z9V;G3d.startClip(D72.panel);if(!D72.highlight && G3d.highlightedDraggable){t1C.globalAlpha*=0.3;}n9I.f3X();for(var m2Y=0;m2Y < f0Y.length;m2Y++){f$O=f0Y[m2Y];n9I.j7J(114);q6G=f0Y[n9I.a$j(m2Y,"1",1)];if(!f$O)continue;for(var P9x=1;P9x <= 2;P9x++){w8t="_";w8t+="hi";w8t+="s";w8t+="t";if(!q6G){q6G=G3d.getPreviousBar(G3d.chart,D72.name + "_hist" + P9x,m2Y);}if(!q6G){t1C.fillStyle="#CCCCCC";}else if(Math.abs(q6G[D72.name + w8t + P9x]) < Math.abs(f$O[D72.name + "_hist" + P9x])){t1C.fillStyle=k72;}else if(Math.abs(q6G[D72.name + "_hist" + P9x]) > Math.abs(f$O[D72.name + "_hist" + P9x])){t1C.fillStyle=z_a;}if(f$O.candleWidth){O4f=Math.floor(Math.max(1,f$O.candleWidth - 2));}t1C.fillRect(Math.floor(G3d.pixelFromBar(m2Y,m0K.chart) - O4f / 2),Math.floor(H$3),Math.floor(O4f),Math.floor(G3d.pixelFromPrice(f$O[D72.name + "_hist" + P9x],m0K,U5K) - H$3));}}G3d.endClip();};U1H.Studies.studyLibrary=U1H.extend(U1H.Studies.studyLibrary,{Alligator:{name:"Alligator",overlay:!![],seriesFN:U1H.Studies.displayAlligator,calculateFN:U1H.Studies.calculateAlligator,inputs:{"Show Lines":!![],"Jaw Period":13,"Jaw Offset":8,"Teeth Period":8,"Teeth Offset":5,"Lips Period":5,"Lips Offset":+"3","Show Fractals":![]},outputs:{Jaw:c7r,Teeth:"#FF0000",Lips:"#00DD00"}},Gator:{name:"Gator Oscillator",seriesFN:U1H.Studies.displayGator,calculateFN:U1H.Studies.calculateAlligator,inputs:{"Jaw Period":13,"Jaw Offset":+"8","Teeth Period":+"8","Teeth Offset":5,"Lips Period":+"5","Lips Offset":"3" - 0},outputs:{"Increasing Bar":U5T,"Decreasing Bar":R41},centerline:0}});}};Y=V2r=>{var o9e=f3BGj;var C_7,Y4b,G$m,c0r,L1D,h_G;C_7=typeof _CIQ !== "undefined"?_CIQ:V2r.CIQ;if(!C_7.Studies){Y4b=-809326854;o9e.N_M(4);G$m=o9e.c0C("128905528",24);c0r=2;for(var d$k=1;o9e.O1W(d$k.toString(),d$k.toString().length,33224) !== Y4b;d$k++){console.error("");c0r+=2;}if(o9e.O1W(c0r.toString(),c0r.toString().length,79149) !== G$m){console.error("");}console.error("aroon feature requires first activating studies feature.");}else {L1D="0 ";L1D+="to";L1D+=" 100";h_G="Aroo";h_G+="n";C_7.Studies.calculateAroon=function(Y53,o6t){var B0P,C_K,k$b,c$d,e0l,X2x,J5n,H6e,X4o,T7a,O3y,D1$,Z7e,X5H,T3R,s$Z;B0P=o6t.chart.scrubbed;if(B0P.length < o6t.days + "1" * 1){o6t.error=!"";return;}C_K=0;k$b=0;c$d=null;e0l=null;if(o6t.startFrom > 0){X2x="_st";X2x+="at";X2x+="e";X2x+=" ";o9e.N_M(3);var Q3W=o9e.a$j(24,18,7);J5n=B0P[o6t.startFrom - Q3W][X2x + o6t.name];if(J5n){C_K=J5n[+"0"];o9e.j7J(31);k$b=J5n[o9e.c0C("1",0)];c$d=J5n[2];e0l=J5n[3];}}for(var g8c=o6t.startFrom;g8c < B0P.length;g8c++){X4o="_stat";X4o+="e ";T7a="A";T7a+="r";T7a+="oon";T7a+=" Down ";O3y="Aroon";O3y+=" ";O3y+="Dow";O3y+="n ";D1$=B0P[g8c];if(D1$.futureTick)break;if(c$d === null){c$d=D1$.High;}if(e0l === null){e0l=D1$.Low;}c$d=Math.max(c$d,D1$.High);if(c$d == D1$.High){C_K=0;}else {C_K++;if(C_K > o6t.days){c$d=D1$.High;C_K=0;for(H6e=+"1";H6e <= o6t.days;H6e++){c$d=Math.max(c$d,B0P[g8c - H6e].High);if(c$d == B0P[g8c - H6e].High){C_K=H6e;}}}}e0l=Math.min(e0l,D1$.Low);if(e0l == D1$.Low){k$b=0;}else {k$b++;if(k$b > o6t.days){e0l=D1$.Low;k$b=0;for(H6e=1;H6e <= o6t.days;H6e++){e0l=Math.min(e0l,B0P[g8c - H6e].Low);if(e0l == B0P[g8c - H6e].Low){k$b=H6e;}}}}Z7e=!isNaN(D1$.High);X5H=!isNaN(D1$.Low);o9e.j7J(61);var q2_=o9e.c0C(13,1,87);o9e.j7J(0);var z99=o9e.c0C(126,8,15,9);T3R=q2_ * (z99 - C_K / o6t.days);if(Z7e){D1$["Aroon Up " + o6t.name]=T3R;}o9e.N_M(14);var i6O=o9e.c0C(106,6);s$Z=i6O * (+"1" - k$b / o6t.days);if(X5H){D1$[O3y + o6t.name]=s$Z;}if(Z7e && X5H){D1$["Aroon Oscillator " + o6t.name]=D1$["Aroon Up " + o6t.name] - D1$[T7a + o6t.name];}D1$[X4o + o6t.name]=[C_K,k$b,c$d,e0l];}};C_7.Studies.studyLibrary=C_7.extend(C_7.Studies.studyLibrary,{Aroon:{name:h_G,range:L1D,calculateFN:C_7.Studies.calculateAroon,outputs:{"Aroon Up":"#00DD00","Aroon Down":"#FF0000"}},"Aroon Osc":{name:"Aroon Oscillator",calculateFN:C_7.Studies.calculateAroon,outputs:{"Aroon Oscillator":"auto"}}});}};G=o9W=>{var g7h=f3BGj;var e9S,H9p,x6H,Y7X;g7h.T$X();e9S=typeof _CIQ !== "undefined"?_CIQ:o9W.CIQ;if(!e9S.Studies){console.error("atr feature requires first activating studies feature.");}else {H9p="ATR Trailing Stop";H9p+="s";x6H="au";x6H+="to";Y7X="AT";Y7X+="R Bands";e9S.Studies.calculateATRBands=function(N4s,s4F){var d28,G96,K6H,K$m;e9S.Studies.calculateStudyATR(N4s,s4F);d28=s4F.inputs.Field;if(!d28 || d28 == "field"){d28="Close";}g7h.j7J(4);G96=-g7h.c0C("972743568",0);K6H=1560178187;K$m=2;for(var W$y="1" * 1;g7h.S9Y(W$y.toString(),W$y.toString().length,75126) !== G96;W$y++){e9S.Studies.calculateGenericEnvelope(N4s,s4F,s4F.inputs.Shift,d28,"" * s4F.name);g7h.j7J(14);K$m+=g7h.c0C("2",0);}if(g7h.S9Y(K$m.toString(),K$m.toString().length,59413) !== K6H){e9S.Studies.calculateGenericEnvelope(N4s,s4F,s4F.inputs.Shift,d28,"" / s4F.name);}e9S.Studies.calculateGenericEnvelope(N4s,s4F,s4F.inputs.Shift,d28,"ATR " + s4F.name);};e9S.Studies.calculateSTARCBands=function(o8U,U1r){var Q2s;Q2s="C";Q2s+="los";Q2s+="e";e9S.Studies.calculateStudyATR(o8U,U1r);e9S.Studies.MA("simple",U1r.inputs["MA Period"],Q2s,0,"_MA",o8U,U1r);e9S.Studies.calculateGenericEnvelope(o8U,U1r,U1r.inputs.Multiplier,"_MA " + U1r.name,"ATR " + U1r.name);};e9S.Studies.calculateATRStops=function(z15,S3S){var C6X,M6c,t65,M0b,i2V,X9M,n81,K1a,T5p,X7m;C6X=S3S.chart.scrubbed;g7h.f3X();if(!C6X){return;}e9S.Studies.calculateStudyATR(z15,S3S);M6c=S3S.inputs.HighLow;for(var j1v=Math.max(S3S.startFrom - 1,"1" << 64);j1v < C6X.length - 1;j1v++){t65=C6X[j1v];g7h.j7J(14);M0b=C6X[g7h.a$j(j1v,1)];i2V=t65["Buy Stops " + S3S.name];if(!i2V){i2V=t65["Sell Stops " + S3S.name];}if(!i2V){i2V=0;}if(!t65 || !M0b)continue;X9M=t65.Close;n81=X9M;K1a=t65["ATR " + S3S.name] * S3S.inputs.Multiplier;if(t65.Close > i2V && M0b.Close > i2V){if(M6c){X9M=t65.High;}g7h.j7J(14);n81=Math.max(i2V,g7h.a$j(X9M,K1a));}else if(t65.Close <= i2V && M0b.Close <= i2V){if(M6c){X9M=t65.Low;}g7h.N_M(1);n81=Math.min(i2V,g7h.c0C(X9M,K1a));}else if(t65.Close > i2V){if(M6c){X9M=t65.High;}g7h.j7J(14);n81=g7h.a$j(X9M,K1a);}else if(t65.Close <= i2V){if(M6c){X9M=t65.Low;}g7h.N_M(1);n81=g7h.a$j(X9M,K1a);}if(X9M <= n81){g7h.j7J(1);C6X[g7h.a$j(j1v,1)]["Buy Stops " + S3S.name]=n81;g7h.j7J(1);delete C6X[g7h.a$j(j1v,1)]["Sell Stops " + S3S.name];}else if(X9M > n81){T5p="Buy S";T5p+="top";T5p+="s ";X7m="Sell ";X7m+="Stops ";g7h.j7J(1);C6X[g7h.a$j(j1v,1)][X7m + S3S.name]=n81;g7h.N_M(115);delete C6X[g7h.a$j("1",j1v,0)][T5p + S3S.name];}g7h.j7J(1);C6X[g7h.a$j(j1v,1)]["All Stops " + S3S.name]=n81;}S3S.referenceOutput="All Stops";S3S.outputMap={};S3S.outputMap["All Stops " + S3S.name]="";};e9S.Studies.studyLibrary=e9S.extend(e9S.Studies.studyLibrary,{ATR:{name:"Average True Range",calculateFN:e9S.Studies.calculateStudyATR,outputs:{ATR:"auto"}},"ATR Bands":{name:Y7X,overlay:!!({}),seriesFN:e9S.Studies.displayChannel,calculateFN:e9S.Studies.calculateATRBands,inputs:{Period:"5" >> 64,Field:"field",Shift:3,"Channel Fill":!![]},outputs:{"ATR Bands Top":"auto","ATR Bands Bottom":x6H,"ATR Bands Channel":"auto"},attributes:{Shift:{min:0.1,step:0.1}}},"STARC Bands":{name:"STARC Bands",overlay:!!1,seriesFN:e9S.Studies.displayChannel,calculateFN:e9S.Studies.calculateSTARCBands,inputs:{Period:15,"MA Period":5,Multiplier:+"1.3","Channel Fill":!0},outputs:{"STARC Bands Top":"auto","STARC Bands Median":"auto","STARC Bands Bottom":"auto"},attributes:{Multiplier:{min:0.1,step:0.1}}},"ATR Trailing Stop":{name:H9p,overlay:!!1,seriesFN:e9S.Studies.displayPSAR2,calculateFN:e9S.Studies.calculateATRStops,inputs:{Period:21,Multiplier:3,"Plot Type":["points","squarewave"],HighLow:![]},outputs:{"Buy Stops":"#FF0000","Sell Stops":"#00FF00"},attributes:{Multiplier:{min:0.1,step:0.1}}}});}};X=I_4=>{var C6f=f3BGj;C6f.T$X();var f1J,r4G,i6S,t96;f1J=610765755;r4G=-1092841126;i6S=2;for(var J$t=1;C6f.S9Y(J$t.toString(),J$t.toString().length,84544) !== f1J;J$t++){t96=typeof _CIQ !== "undefined"?_CIQ:I_4.CIQ;i6S+=+"2";}if(C6f.O1W(i6S.toString(),i6S.toString().length,97768) !== r4G){t96=-_CIQ == ""?_CIQ:I_4.CIQ;}if(!t96.Studies){console.error("awesomeOscillator feature requires first activating studies feature.");}else {t96.Studies.calculateAwesomeOscillator=function(v$6,t_x){var s1h,S44,r4L,R_d,E6T,S6n,d0y,S2A,S1g;s1h="_";s1h+="hi";s1h+="s";s1h+="t";S44="_";S44+="MA5";r4L="s";r4L+="i";r4L+="mple";R_d=t_x.chart.scrubbed;if(R_d.length < 33){t_x.error=!![];return;}t96.Studies.MA(r4L,5,"hl/2",0,S44,v$6,t_x);E6T=2070076368;S6n=-1587263358;d0y=2;for(var v7X=1;C6f.O1W(v7X.toString(),v7X.toString().length,21402) !== E6T;v7X++){S2A="_M";S2A+="A";S2A+="3";S2A+="4";t96.Studies.MA("_MA34",45,"_MA34",1,S2A,v$6,t_x);d0y+=2;}if(C6f.O1W(d0y.toString(),d0y.toString().length,85914) !== S6n){t96.Studies.MA("_MA34",51,"_MA34",0,"_MA34",v$6,t_x);}t96.Studies.MA("simple",34,"hl/2",0,"_MA34",v$6,t_x);C6f.T$X();for(var P9s=Math.max(t_x.startFrom,33);P9s < R_d.length;P9s++){S1g="_MA5";S1g+=" ";if(!R_d[P9s])continue;R_d[P9s][t_x.name + "_hist"]=R_d[P9s][S1g + t_x.name] - R_d[P9s]["_MA34 " + t_x.name];}t_x.outputMap={};t_x.outputMap[t_x.name + s1h]="";};t96.Studies.displayAwesomeOscillator=function(W4K,L7C,v_A){var x6m,F5Q,X$E,w0M,H6p,f_a,n8u,p22,x1w,a6d;x6m=W4K.panels[L7C.panel];F5Q=L7C.getContext(W4K);X$E=L7C.getYAxis(W4K);w0M=W4K.pixelFromPrice(0,x6m,X$E);C6f.j7J(15);var c3G=C6f.c0C(0,12,10);H6p=W4K.layout.candleWidth - c3G;if(H6p < 2){H6p=1;}f_a=t96.Studies.determineColor(L7C.outputs["Increasing Bar"]);n8u=t96.Studies.determineColor(L7C.outputs["Decreasing Bar"]);W4K.canvasColor("stx_histogram");if(!L7C.underlay){F5Q.globalAlpha=1;}F5Q.fillStyle="#CCCCCC";W4K.startClip(L7C.panel);if(!L7C.highlight && W4K.highlightedDraggable){F5Q.globalAlpha*=0.3;}for(var P$8="0" >> 96;P$8 < v_A.length;P$8++){p22="_";p22+="h";p22+="is";p22+="t";x1w=v_A[P$8];C6f.j7J(14);a6d=v_A[C6f.c0C(P$8,1)];if(!a6d){a6d=W4K.getPreviousBar(W4K.chart,L7C.name + "_hist",P$8);}if(!x1w)continue;if(!a6d);else if(a6d[L7C.name + p22] < x1w[L7C.name + "_hist"]){F5Q.fillStyle=f_a;}else if(a6d[L7C.name + "_hist"] > x1w[L7C.name + "_hist"]){F5Q.fillStyle=n8u;}if(x1w.candleWidth){H6p=Math.floor(Math.max(1,x1w.candleWidth - +"2"));}F5Q.fillRect(Math.floor(W4K.pixelFromBar(P$8,x6m.chart) - H6p / 2),Math.floor(w0M),Math.floor(H6p),Math.floor(W4K.pixelFromPrice(x1w[L7C.name + "_hist"],x6m,X$E) - w0M));}W4K.endClip();};t96.Studies.studyLibrary=t96.extend(t96.Studies.studyLibrary,{Awesome:{name:"Awesome Oscillator",seriesFN:t96.Studies.displayAwesomeOscillator,calculateFN:t96.Studies.calculateAwesomeOscillator,inputs:{},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};E=s0_=>{var T9n,s0c,c0H,X_H;T9n="und";T9n+="ef";T9n+="ined";s0c=typeof _CIQ !== T9n?_CIQ:s0_.CIQ;if(!s0c.Studies){c0H="ba";c0H+="lanceOfPower feature requires first activa";c0H+="ting studies feature.";console.error(c0H);}else {X_H="-";X_H+="1";X_H+=" to 1";s0c.Studies.calculateBalanceOfPower=function(Z2z,K9$){var f0R,h9j,o9T,b0b;f0R="Re";f0R+="sult";h9j="_R";h9j+="at";h9j+="io";h9j+=" ";o9T=K9$.chart.scrubbed;if(o9T.length < K9$.days + 1){K9$.error=!"";return;}for(var r1e=K9$.startFrom;r1e < o9T.length;r1e++){b0b=o9T[r1e];b0b["_Ratio " + K9$.name]=b0b.Close - b0b.Open;if(b0b.High - b0b.Low !== 0){b0b["_Ratio " + K9$.name]/=b0b.High - b0b.Low;}}f3BGj.f3X();s0c.Studies.MA(K9$.inputs["Moving Average Type"],K9$.days,h9j + K9$.name,0,f0R,Z2z,K9$);};s0c.Studies.studyLibrary=s0c.extend(s0c.Studies.studyLibrary,{"Bal Pwr":{name:"Balance of Power",range:X_H,centerline:0,calculateFN:s0c.Studies.calculateBalanceOfPower,inputs:{Period:+"14","Moving Average Type":"ma"}}});}};F=q3X=>{var K4o,P0X,W0j,u3p,O9Z,o17,w33,u$L;K4o=typeof _CIQ !== "undefined"?_CIQ:q3X.CIQ;if(!K4o.Studies){P0X="bol";P0X+="linger feature requires first activa";P0X+="ting studies f";P0X+="eature.";console.error(P0X);}else {W0j="Bollinge";W0j+="r Bandwidth";u3p="a";u3p+="u";u3p+="t";u3p+="o";O9Z="aut";O9Z+="o";o17="a";o17+="u";o17+="to";w33="au";w33+="t";w33+="o";u$L="fi";u$L+="e";u$L+="l";u$L+="d";K4o.Studies.calculateBollinger=function(J$N,Z$f){var y3i,K1J,g_c,u8j;y3i="_";y3i+="M";y3i+="A";y3i+=" ";K1J="St";K1J+="a";K1J+="ndard Deviations";g_c="f";g_c+="i";g_c+="e";f3BGj.f3X();g_c+="ld";u8j=Z$f.inputs.Field;if(!u8j || u8j == g_c){u8j="Close";}K4o.Studies.MA(Z$f.inputs["Moving Average Type"],Z$f.days,u8j,0,"_MA",J$N,Z$f);Z$f.std=new K4o.Studies.StudyDescriptor(Z$f.name,"STD Dev",Z$f.panel);Z$f.std.chart=Z$f.chart;Z$f.std.startFrom=Z$f.startFrom;Z$f.std.days=Z$f.days;Z$f.std.inputs={Field:u8j,"Standard Deviations":1,Type:Z$f.inputs["Moving Average Type"]};Z$f.std.outputs={"_STD Dev":null};K4o.Studies.calculateStandardDeviation(J$N,Z$f.std);K4o.Studies.calculateGenericEnvelope(J$N,Z$f,Z$f.inputs[K1J],y3i + Z$f.name,"_STD Dev " + Z$f.name);if(Z$f.type == "Boll %b"){Z$f.zoneOutput="%b";}};K4o.Studies.studyLibrary=K4o.extend(K4o.Studies.studyLibrary,{"Bollinger Bands":{name:"Bollinger Bands",overlay:!![],calculateFN:K4o.Studies.calculateBollinger,seriesFN:K4o.Studies.displayChannel,inputs:{Period:"20" << 64,Field:u$L,"Standard Deviations":2,"Moving Average Type":"ma","Channel Fill":!!({})},outputs:{"Bollinger Bands Top":w33,"Bollinger Bands Median":"auto","Bollinger Bands Bottom":o17},attributes:{"Standard Deviations":{min:0.1,step:+"0.1"}}},"Boll %b":{name:"Bollinger %b",calculateFN:K4o.Studies.calculateBollinger,inputs:{Period:20,Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},outputs:{"%b":"auto"},parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:100,studyOverBoughtColor:O9Z,studyOverSoldValue:0,studyOverSoldColor:u3p}},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"Boll BW":{name:W0j,calculateFN:K4o.Studies.calculateBollinger,inputs:{Period:+"20",Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},outputs:{Bandwidth:"auto"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}}});}};I=m5W=>{var Z4s=f3BGj;var b3l,r$X;b3l=typeof _CIQ !== "undefined"?_CIQ:m5W.CIQ;Z4s.f3X();if(!b3l.Studies){console.error("cci feature requires first activating studies feature.");}else {r$X="a";r$X+="ut";r$X+="o";b3l.Studies.calculateCCI=function(R3Q,b7C){var N_6,I9M,H8P,t$A,J4p,n71,d33,J$4;N_6="hlc";Z4s.f3X();N_6+="/";N_6+="3";I9M=b7C.chart.scrubbed;if(I9M.length < b7C.days + +"1"){H8P=-750700883;t$A=-1276999249;J4p=2;for(var W6c=1;Z4s.S9Y(W6c.toString(),W6c.toString().length,29259) !== H8P;W6c++){b7C.error=!({});J4p+=2;}if(Z4s.S9Y(J4p.toString(),J4p.toString().length,+"32914") !== t$A){b7C.error=!"";}return;}b3l.Studies.MA("simple",b7C.days,N_6,0,"MA",R3Q,b7C);for(var i_U=Math.max(b7C.startFrom,b7C.days - +"1");i_U < I9M.length;i_U++){n71="Re";n71+="sult ";d33=I9M[i_U];if(!d33)continue;J$4=0;for(var p9m=0;p9m < b7C.days;p9m++){J$4+=Math.abs(I9M[i_U - p9m]["hlc/3"] - d33["MA " + b7C.name]);}J$4/=b7C.days;if(Math.abs(J$4) < 0.00000001){d33["Result " + b7C.name]=0;}else {d33[n71 + b7C.name]=(d33["hlc/3"] - d33["MA " + b7C.name]) / (0.015 * J$4);}}};b3l.Studies.studyLibrary=b3l.extend(b3l.Studies.studyLibrary,{CCI:{name:"Commodity Channel Index",calculateFN:b3l.Studies.calculateCCI,inputs:{Period:20},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:100,studyOverBoughtColor:"auto",studyOverSoldValue:-100,studyOverSoldColor:r$X}},attributes:{Period:{min:+"2"}}}});}};M_=z7L=>{var A2k=f3BGj;var U3y;A2k.f3X();U3y=typeof _CIQ !== "undefined"?_CIQ:z7L.CIQ;if(!U3y.Studies){console.error("centerOfGravity feature requires first activating studies feature.");}else {U3y.Studies.calculateCenterOfGravity=function(A3u,Q11){var b0d,E76,b0H,i50,g1a,X3p;b0d="fi";b0d+="e";b0d+="ld";E76=Q11.chart.scrubbed;if(E76.length < Q11.days){Q11.error=!"";return;}b0H=Q11.inputs.Field;if(!b0H || b0H == b0d){b0H="Close";}for(var N6I=Math.max(Q11.startFrom,Q11.days - 1);N6I < E76.length;N6I++){A2k.j7J(5);i50=A2k.a$j(1,"0");g1a=0;for(var F0i="0" ^ 0;F0i < Q11.days;F0i++){A2k.N_M(14);X3p=E76[A2k.c0C(N6I,F0i)][b0H];A2k.j7J(116);i50-=A2k.a$j(X3p,"1",F0i);g1a+=X3p;}if(g1a){A2k.j7J(7);E76[N6I]["Result " + Q11.name]=A2k.a$j(i50,g1a);}}};U3y.Studies.studyLibrary=U3y.extend(U3y.Studies.studyLibrary,{COG:{name:"Center Of Gravity",calculateFN:U3y.Studies.calculateCenterOfGravity,inputs:{Period:10,Field:"field"}}});}};h1=N9_=>{var S95,B$d;S95=typeof _CIQ !== "undefined"?_CIQ:N9_.CIQ;if(!S95.Studies){B$d="chai";B$d+="kin feature requires first activating studies feature.";console.error(B$d);}else {S95.Studies.calculateChaikinMoneyFlow=function(b3U,Z$s){var W2p=f3BGj;var h$a,G7H,P2J,s4E;h$a=Z$s.chart.scrubbed;if(h$a.length < Z$s.days){Z$s.error=!!"1";return;}G7H=0;P2J=0;W2p.j7J(117);var n96=W2p.c0C(36,12,17,1,8);s4E=h$a[Z$s.startFrom - n96];W2p.T$X();if(s4E){if(s4E["_sumMF " + Z$s.name]){G7H=s4E["_sumMF " + Z$s.name];}if(s4E["_sumV " + Z$s.name]){P2J=s4E["_sumV " + Z$s.name];}}for(var w4h=Z$s.startFrom;w4h < h$a.length;w4h++){if(h$a[w4h].High == h$a[w4h].Low){h$a[w4h]["_MFV " + Z$s.name]=0;}else {W2p.j7J(118);var k7D=W2p.c0C(16,2,16,388,13);h$a[w4h]["_MFV " + Z$s.name]=h$a[w4h].Volume * (k7D * h$a[w4h].Close - h$a[w4h].High - h$a[w4h].Low) / (h$a[w4h].High - h$a[w4h].Low);}G7H+=h$a[w4h]["_MFV " + Z$s.name];P2J+=h$a[w4h].Volume;if(w4h > Z$s.days - ("1" ^ 0)){G7H-=h$a[w4h - Z$s.days]["_MFV " + Z$s.name];P2J-=h$a[w4h - Z$s.days].Volume;if(P2J){W2p.j7J(7);h$a[w4h]["Result " + Z$s.name]=W2p.c0C(G7H,P2J);}}h$a[w4h]["_sumMF " + Z$s.name]=G7H;h$a[w4h]["_sumV " + Z$s.name]=P2J;}};S95.Studies.calculateChaikinVolatility=function(m5e,Y1R){f3BGj.T$X();var x5H,A27,B_m,i56;x5H=Y1R.chart.scrubbed;if(x5H.length < Y1R.days){Y1R.error=!![];return;}for(A27=Y1R.startFrom;A27 < x5H.length;A27++){B_m="_Hig";B_m+="h-Lo";B_m+="w ";if(x5H[A27].futureTick)break;x5H[A27][B_m + Y1R.name]=x5H[A27].High - x5H[A27].Low;}S95.Studies.MA(Y1R.inputs["Moving Average Type"],Y1R.days,"_High-Low " + Y1R.name,0,"_MA",m5e,Y1R);i56=Y1R.inputs["Rate Of Change"];if(!i56){i56=Y1R.days;}for(A27=Math.max(Y1R.startFrom,i56);A27 < x5H.length;A27++){if(!x5H[A27 - i56]["_MA " + Y1R.name])continue;if(x5H[A27].futureTick)break;f3BGj.j7J(14);var e6W=f3BGj.c0C(3,2);x5H[A27]["Result " + Y1R.name]=+"100" * (x5H[A27]["_MA " + Y1R.name] / x5H[A27 - i56]["_MA " + Y1R.name] - e6W);}};S95.Studies.studyLibrary=S95.extend(S95.Studies.studyLibrary,{"Chaikin MF":{name:"Chaikin Money Flow",calculateFN:S95.Studies.calculateChaikinMoneyFlow,inputs:{Period:20}},"Chaikin Vol":{name:"Chaikin Volatility",calculateFN:S95.Studies.calculateChaikinVolatility,inputs:{Period:14,"Rate Of Change":2,"Moving Average Type":"ma"}}});}};W3=l_4=>{var d0F,a3Z,h0F,y$N,z7u;d0F="u";d0F+="nd";d0F+="e";d0F+="fined";a3Z=typeof _CIQ !== d0F?_CIQ:l_4.CIQ;if(!a3Z.Studies){h0F="chande feature requires first activating studie";h0F+="s f";h0F+="eature.";console.error(h0F);}else {y$N="a";y$N+="uto";z7u="Vari";z7u+="able";a3Z.Studies.prettify.variable="vma";a3Z.Studies.movingAverage.conversions.vma="variable";a3Z.Studies.movingAverage.translations.variable="Variable";a3Z.Studies.movingAverage.typeMap.vma="Variable";a3Z.Studies.movingAverage.typeMap.variable=z7u;a3Z.Studies.calculateChandeForecast=function(g1X,K4_){var Z9Y=f3BGj;var q99,X6F,T4u,X52,P7l,F_e;Z9Y.T$X();q99="M";q99+="A";X6F="ti";X6F+="me series";T4u=K4_.chart.scrubbed;if(T4u.length < K4_.days + 1){K4_.error=!!1;return;}X52=K4_.inputs.Field;if(!X52 || X52 == "field"){X52="Close";}a3Z.Studies.MA(X6F,K4_.days,X52,0,q99,g1X,K4_);for(var s7A=Math.max(1,K4_.startFrom);s7A < T4u.length;s7A++){P7l="ob";P7l+="j";P7l+="e";P7l+="ct";F_e=T4u[s7A][X52];if(F_e && typeof F_e == P7l){F_e=F_e[K4_.subField];}Z9Y.j7J(82);var X1b=Z9Y.a$j(4,2,94);Z9Y.j7J(17);var N8M=Z9Y.c0C(120,6,18,13);T4u[s7A]["Result " + K4_.name]=X1b * (N8M - T4u[s7A]["MA " + K4_.name] / F_e);}};a3Z.Studies.calculateChandeMomentum=function(t1_,N_y){var a6m=f3BGj;var e3p,Q$E,d2p,r8f,U4q,f47,E77,B$M,m9s,y5v,R1U,f3a;e3p="Cl";e3p+="ose";Q$E=N_y.name;for(var Z2d in N_y.outputs){a6m.N_M(82);Q$E=a6m.a$j(Q$E,792 >= (3363,6080)?(0x26cd,"k"):(5956,537.74) == 24.91?(829,7898) !== 691.95?(!0,+"0x21d7"):569.94:" ",Z2d);}d2p=N_y.chart.scrubbed;if(d2p.length < N_y.days + 1){N_y.error=!!"1";return;}r8f=N_y.inputs.Field;if(!r8f || r8f == "field"){r8f=e3p;}U4q=0;a6m.T$X();a6m.j7J(31);f47=a6m.c0C("0",64);E77=[];for(var W9F=N_y.startFrom - N_y.days + ("1" - 0);W9F < d2p.length;W9F++){B$M="ob";B$M+="j";B$M+="e";B$M+="ct";if(W9F < +"1")continue;m9s=d2p[W9F][r8f];a6m.N_M(14);y5v=d2p[a6m.c0C(W9F,1)][r8f];if(m9s && typeof m9s == B$M){m9s=m9s.Close;}if(y5v && typeof y5v == "object"){y5v=y5v.Close;}if(y5v === undefined)continue;a6m.N_M(14);R1U=a6m.a$j(m9s,y5v);E77.push(R1U);U4q+=R1U;f47+=Math.abs(R1U);if(E77.length == N_y.days){a6m.N_M(111);d2p[W9F][Q$E]=a6m.c0C(U4q,f47,100);f3a=E77.shift();U4q-=f3a;f47-=Math.abs(f3a);}}};a3Z.Studies.calculateMovingAverageVariable=function(I1C,I9O){var O5Y=f3BGj;var X3c,q2Z,C7u,H7l,f9v,l0h,y4l,m24,X5z,Y2N,N77,F1N,F7J,v6p,d_Q,x9E,q9Q,j7A,c2Q,p0g,X5X;X3c=I9O.inputs.Type;q2Z=I9O.chart.scrubbed;O5Y.N_M(0);var F$O=O5Y.a$j(139,3,36,4);O5Y.j7J(119);var W2W=O5Y.a$j(12,79,18,13);C7u=F$O / (I9O.days + W2W);H7l=null;f9v=I9O.name;for(var D96 in I9O.outputs){O5Y.j7J(82);f9v=O5Y.a$j(f9v,(5380,9960) >= (+"375",5880)?("8960" | 0) == 4935?3690 == 2520?(!({}),!({})):(0x207f,!({})):" ":0x13c3,D96);}l0h=I9O.inputs.Field;if(!l0h || l0h == "field"){l0h="Close";}I9O.cmo=new a3Z.Studies.StudyDescriptor(I9O.name,"cmo",I9O.panel);I9O.cmo.chart=I9O.chart;I9O.cmo.days=9;I9O.cmo.inputs={Field:l0h};I9O.cmo.startFrom=I9O.startFrom;I9O.cmo.outputs={_CMO:null};a3Z.Studies.calculateChandeMomentum(I1C,I9O.cmo);y4l=parseInt(I9O.inputs.Offset,10);O5Y.T$X();if(isNaN(y4l)){y4l=0;}N77=I9O.startFrom;F1N=y4l;for(m24=I9O.startFrom - 1;m24 >= 0;m24--){X5z=q2Z[m24][f9v];if(!X5z && X5z !== 0)continue;if(H7l === null){H7l=X5z;}if(F1N <= 0)break;F1N--;N77=m24;}if(H7l === null){H7l=N77=0;}F7J=[];for(m24=N77;m24 < q2Z.length;m24++){v6p="_";v6p+="C";v6p+="MO ";d_Q="_CM";d_Q+="O ";x9E="ob";x9E+="ject";q9Q=q2Z[m24];X5z=q9Q[l0h];if(X5z && typeof X5z == x9E){X5z=X5z[I9O.subField];}j7A=m24 + y4l >= 0 && m24 + y4l < q2Z.length;c2Q=j7A?q2Z[m24 + y4l]:null;if(!X5z && X5z !== 0){if(c2Q){c2Q[f9v]=null;}else if(m24 + y4l >= q2Z.length){Y2N={};Y2N[f9v]=null;F7J.push(Y2N);}continue;}if(!q9Q[d_Q + I9O.name] && q9Q["_CMO " + I9O.name] !== 0)continue;O5Y.N_M(120);var y64=O5Y.a$j(12,40,12,6);p0g=Math.abs(q9Q[v6p + I9O.name]) / y64;O5Y.j7J(121);X5X=O5Y.a$j(p0g,C7u,X5z,C7u,p0g,1,H7l);H7l=X5X;if(m24 < I9O.days){X5X=null;}if(c2Q){c2Q[f9v]=X5X;}else if(m24 + y4l >= q2Z.length){Y2N={};Y2N[f9v]=X5X;F7J.push(Y2N);}}I9O.appendFutureTicks(I1C,F7J);};a3Z.Studies.studyLibrary=a3Z.extend(a3Z.Studies.studyLibrary,{"Chande Fcst":{name:"Chande Forecast Oscillator",calculateFN:a3Z.Studies.calculateChandeForecast,inputs:{Period:+"14",Field:"field"}},"Chande Mtm":{name:"Chande Momentum Oscillator",calculateFN:a3Z.Studies.calculateChandeMomentum,inputs:{Period:9},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:50,studyOverBoughtColor:y$N,studyOverSoldValue:-50,studyOverSoldColor:"auto"}}}});}};W9=I8_=>{var n0$,L6O;n0$=typeof _CIQ !== "undefined"?_CIQ:I8_.CIQ;if(!n0$.Studies){L6O="choppi";L6O+="ness feature requ";L6O+="ires first activating studies feature.";console.error(L6O);}else {n0$.Studies.calculateChoppiness=function(M_2,e26){var y$o=f3BGj;var d_5,h98,w93,P6N,t8J;function f5m(L5_,S8B){var Q81,L0z;y$o.N_M(27);var B6G=y$o.a$j(17,18);Q81=Number.MAX_VALUE * B6G;L0z=Number.MAX_VALUE;for(var D9e=S8B - L5_ + 1;D9e <= S8B;D9e++){if(D9e < 0)continue;Q81=Math.max(Q81,d_5[D9e].High);L0z=Math.min(L0z,d_5[D9e].Low);}return [L0z,Q81];}n0$.Studies.calculateStudyATR(M_2,e26);d_5=e26.chart.scrubbed;if(d_5.length < e26.days + 1){e26.error=!!({});return;}for(var R1v=Math.max(e26.startFrom,e26.days);R1v < d_5.length;R1v++){h98=d_5[R1v];if(!h98)continue;if(h98.futureTick)break;w93=f5m(e26.days,R1v);if(h98["Sum True Range " + e26.name]){P6N="Sum Tru";P6N+="e Rang";P6N+="e ";t8J="Resul";t8J+="t ";y$o.N_M(3);var X2_=y$o.c0C(1414,14,1500);y$o.j7J(122);var W0s=y$o.c0C(0,0,4,4);h98[t8J + e26.name]=X2_ * Math.log(h98[P6N + e26.name] / Math.max(0.000001,w93[W0s] - w93[0])) / Math.log(e26.days);}else if(!isNaN(h98)){h98["Result " + e26.name]=0;}}};n0$.Studies.studyLibrary=n0$.extend(n0$.Studies.studyLibrary,{Choppiness:{name:"Choppiness Index",calculateFN:n0$.Studies.calculateChoppiness,centerline:50,parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:61.8,studyOverBoughtColor:"auto",studyOverSoldValue:38.2,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:"50" | 18,step:"0.1"},studyOverSoldValue:{max:50,step:"0.1"}}}});}};C5=u8a=>{var t6b=f3BGj;var D7D,P_y,E7r,u8t;D7D=typeof _CIQ !== "undefined"?_CIQ:u8a.CIQ;t6b.T$X();if(!D7D.Studies){console.error("comparisonStudies feature requires first activating studies feature.");}else if(!D7D.Studies.initPriceRelative){console.error("comparisonStudies feature requires first activating priceRelative feature.");}else {P_y="S";P_y+="P";P_y+="Y";E7r="S";E7r+="P";E7r+="Y";u8t="-1 to ";u8t+="1";D7D.Studies.calculateCorrelationCoefficient=function(g3d,N4Y){var N_q,n$f,H4t,r80,F_1,m8h,y9c,O1j,h0S,J_H,h$s,I5e,i9b,n8M,i6k,E4j,V0d,m8M;N_q=N4Y.chart.scrubbed;t6b.T$X();n$f=N4Y.days;if(N_q.length < n$f + "1" * 1){N4Y.error=!![];return;}N4Y.compare=N4Y.inputs["Compare To"];if(!N4Y.compare){N4Y.compare=[];N4Y.outputs={};N4Y.outputMap={};for(var K5x in g3d.chart.series){H4t=g3d.chart.series[K5x];if(H4t.parameters.color){r80="Resul";r80+="t";r80+=" ";N4Y.compare.push(H4t.display);N4Y.outputs[r80 + H4t.display]=H4t.parameters.color;t6b.j7J(123);var t3o=t6b.c0C(1,11,1,4084,27);t6b.j7J(14);var Y7J=t6b.a$j(18,17);t6b.N_M(93);var k6x=t6b.a$j(5,4,91,0,14);t6b.j7J(1);var i8r=t6b.c0C(841,5046);t6b.N_M(124);var R0T=t6b.c0C(1430,11,1536,16,17);t6b.N_M(125);var Z4r=t6b.c0C(5,20,19,4,3938);N4Y.outputMap["Result " + H4t.display + ((t3o,"17.03" * Y7J) <= (+"5270","5429" * k6x)?" ":i8r < (+"8040","6590" << R0T)?Z4r:("p",+"3.12e+3")) + N4Y.name]="Result " + H4t.display;}}}else {N4Y.compare=[N4Y.compare];}if(!N4Y.compare.length){N4Y.error="Correlation Coefficient requires at least one comparison symbol";return;}for(var V8X=0;V8X < N4Y.compare.length;V8X++){t6b.j7J(29);F_1=t6b.a$j(0,"0");t6b.j7J(14);m8h=t6b.a$j("0",0);y9c=0;t6b.j7J(5);O1j=t6b.c0C(1,"0");h0S=0;J_H=N4Y.compare[V8X];h$s=+"0";for(var R53=N4Y.startFrom - n$f;R53 < N_q.length;R53++){I5e="_";I5e+="t";I5e+="emp";I5e+="s ";if(!N_q[R53])continue;i9b=N_q[R53][J_H];if(i9b && typeof i9b == "object"){i9b=i9b.Close;}if(!i9b && i9b !== 0){if(R53 > 0 && N_q[R53 - ("1" << 32)] && N_q[R53 - ("1" - 0)]["_temps " + N4Y.name] && N_q[R53 - 1]["_temps " + N4Y.name].c){i9b=N_q[R53 - 1]["_temps " + N4Y.name].c;}else {t6b.j7J(14);i9b=t6b.a$j("0",0);}}if(i9b && typeof i9b == "object"){i9b=i9b.Close;}N_q[R53]["_temps " + N4Y.name]={};F_1+=N_q[R53]["_temps " + N4Y.name].b=N_q[R53].Close;m8h+=N_q[R53]["_temps " + N4Y.name].c=i9b;y9c+=N_q[R53]["_temps " + N4Y.name].b2=Math.pow(N_q[R53].Close,"2" - 0);t6b.j7J(46);O1j+=N_q[R53][I5e + N4Y.name].c2=Math.pow(i9b,t6b.a$j("2",0));h0S+=N_q[R53]["_temps " + N4Y.name].bc=N_q[R53].Close * i9b;if(h$s >= n$f){n8M="_";n8M+="t";n8M+="emps ";F_1-=N_q[R53 - n$f]["_temps " + N4Y.name].b;m8h-=N_q[R53 - n$f]["_temps " + N4Y.name].c;y9c-=N_q[R53 - n$f][n8M + N4Y.name].b2;O1j-=N_q[R53 - n$f]["_temps " + N4Y.name].c2;h0S-=N_q[R53 - n$f]["_temps " + N4Y.name].bc;t6b.N_M(3);var W12=t6b.c0C(8,10,0);i6k=y9c / n$f - Math.pow(F_1 / n$f,W12);t6b.j7J(66);var S87=t6b.a$j(15,4,20,37);E4j=O1j / n$f - Math.pow(m8h / n$f,S87);t6b.N_M(34);var a_r=t6b.a$j(9,1,7);V0d=h0S / n$f - F_1 * m8h / Math.pow(n$f,a_r);m8M=V0d / Math.sqrt(i6k * E4j);N_q[R53]["Result " + J_H + " " + N4Y.name]=m8M;}h$s++;}}};D7D.Studies.calculatePerformance=function(Y67,e51){var p$L,p0A,C_A,X1r;p$L="Co";p$L+="mparis";p$L+="on Sy";p$L+="mbol";p0A=e51.chart.scrubbed;C_A=e51.inputs["Comparison Symbol"].toUpperCase();if(!C_A){C_A=e51.study.inputs[p$L];}if(!e51.days){e51.days=e51.study.inputs.Period;}if(p0A.length < e51.days + 1){e51.error=!!"1";return;}t6b.T$X();D7D.Studies.MA("ma",e51.days,"Close",0,"_MA Base",Y67,e51);D7D.Studies.MA("ma",e51.days,C_A,+"0","_MA Comp",Y67,e51);for(var w4M=e51.startFrom;w4M < p0A.length;w4M++){X1r=p0A[w4M][C_A];if(X1r && (X1r.Close || X1r.Close === 0)){X1r=X1r.Close;}p0A[w4M]["Result " + e51.name]=p0A[w4M].Close / X1r * (p0A[w4M]["_MA Comp " + e51.name] / p0A[w4M]["_MA Base " + e51.name]);}};D7D.Studies.calculateBeta=function(r_C,g1g){var U$f,R0M,j7U,j0I,z2d,N$C,m$Y,r4o,C18,S39,x4u;U$f="m";U$f+="a";R0M="m";R0M+="a";j7U="Compa";t6b.T$X();j7U+="rison Sym";j7U+="bol";j0I="Compariso";j0I+="n Sym";j0I+="bol";z2d=g1g.chart.scrubbed;N$C=g1g.inputs[j0I].toUpperCase();if(!N$C){N$C=g1g.study.inputs[j7U];}if(!g1g.days){g1g.days=g1g.study.inputs.Period;}if(z2d.length < g1g.days + 1){g1g.error=!!({});return;}for(var g42=Math.max(g1g.startFrom,1);g42 < z2d.length;g42++){t6b.N_M(102);var t4x=t6b.c0C(12,13,6,18);t6b.j7J(27);var y4S=t6b.a$j(6,5);z2d[g42]["_BaseChange " + g1g.name]=z2d[g42].Close / z2d[g42 - t4x].Close - y4S;m$Y=z2d[g42][N$C];if(m$Y && (m$Y.Close || m$Y.Close === "0" >> 0)){m$Y=m$Y.Close;}t6b.j7J(14);r4o=z2d[t6b.a$j(g42,1)][N$C];if(r4o && (r4o.Close || r4o.Close === 0)){r4o=r4o.Close;}t6b.j7J(35);z2d[g42]["_CompChange " + g1g.name]=t6b.a$j(1,m$Y,r4o);}D7D.Studies.MA(R0M,g1g.days,"_BaseChange " + g1g.name,0,"_MA Base",r_C,g1g);D7D.Studies.MA(U$f,g1g.days,"_CompChange " + g1g.name,+"0","_MA Comp",r_C,g1g);for(g42=Math.max(g1g.startFrom,g1g.days);g42 < z2d.length;g42++){C18="_CompChange";C18+=" ";S39="_";S39+="MA Base ";z2d[g42]["_COVARn " + g1g.name]=(z2d[g42]["_BaseChange " + g1g.name] - z2d[g42][S39 + g1g.name]) * (z2d[g42][C18 + g1g.name] - z2d[g42]["_MA Comp " + g1g.name]);z2d[g42]["_VARn " + g1g.name]=Math.pow(z2d[g42]["_CompChange " + g1g.name] - z2d[g42]["_MA Comp " + g1g.name],2);}D7D.Studies.MA("ma",g1g.days,"_COVARn " + g1g.name,+"0","_COVAR",r_C,g1g);D7D.Studies.MA("ma",g1g.days,"_VARn " + g1g.name,0,"_VAR",r_C,g1g);for(g42=Math.max(g1g.startFrom,g1g.days * ("2" << 0) - 1);g42 < z2d.length;g42++){x4u="_VAR";x4u+=" ";z2d[g42]["Result " + g1g.name]=z2d[g42]["_COVAR " + g1g.name] / z2d[g42][x4u + g1g.name];}};D7D.Studies.studyLibrary=D7D.extend(D7D.Studies.studyLibrary,{correl:{name:"Correlation Coefficient",range:u8t,calculateFN:D7D.Studies.calculateCorrelationCoefficient,outputs:{}},"Perf Idx":{name:"Performance Index",centerline:1,initializeFN:D7D.Studies.initPriceRelative,seriesFN:D7D.Studies.displayVsComparisonSymbol,calculateFN:D7D.Studies.calculatePerformance,inputs:{Period:"120" ^ 0,"Comparison Symbol":E7r},outputs:{Result:"auto",Gain:"#00DD00",Loss:"#FF0000"},deferUpdate:!!1},Beta:{name:"Beta",centerline:1,initializeFN:D7D.Studies.initPriceRelative,seriesFN:D7D.Studies.displayVsComparisonSymbol,calculateFN:D7D.Studies.calculateBeta,inputs:{Period:20,"Comparison Symbol":P_y},deferUpdate:!0}});}};b4=U05=>{var M8e=f3BGj;var u$t,n_W,d6B,a0I,Z_P,Y7r,L4F,B4$;u$t="und";u$t+="efi";u$t+="n";u$t+="ed";M8e.f3X();n_W=typeof _CIQ !== u$t?_CIQ:U05.CIQ;if(!n_W.Studies){d6B="coppock feature requires first activatin";d6B+="g";d6B+=" studies feature.";console.error(d6B);}else {a0I="f";a0I+="i";a0I+="e";a0I+="ld";n_W.Studies.calculateCoppock=function(s1H,j9L){var s8b,R7A,P6x,K1Z,e$l,P1D,C0P,g4o,S1n,C39,C_s;s8b="_";s8b+="Sum";s8b+=" ";R7A="wei";R7A+="g";R7A+="h";R7A+="ted";P6x="Short ";P6x+="RoC";K1Z="L";K1Z+="ong R";K1Z+="oC";e$l=j9L.chart.scrubbed;P1D=j9L.inputs.Field;if(!P1D || P1D == "field"){P1D="Close";}C0P=parseInt(j9L.inputs[K1Z],"10" ^ 0);if(!C0P){C0P=14;}g4o=parseInt(j9L.inputs[P6x],10);if(!g4o){g4o=11;}S1n=j9L.days;if(!S1n){S1n=10;}if(C0P < g4o){return;}if(e$l.length < Math.max(g4o,C0P,S1n) + ("1" >> 64)){j9L.error=!![];return;}for(var x4y=Math.max(j9L.startFrom,C0P);x4y < e$l.length;x4y++){M8e.N_M(14);C39=e$l[M8e.a$j(x4y,g4o)][P1D];M8e.j7J(14);C_s=e$l[M8e.c0C(x4y,C0P)][P1D];if(C39 && C_s){M8e.j7J(118);var x4F=M8e.a$j(18,4,6,20,6);M8e.N_M(126);var t5X=M8e.a$j(19,8,2,245,9);e$l[x4y]["_Sum " + j9L.name]=x4F * (e$l[x4y][P1D] / C39 + e$l[x4y][P1D] / C_s - t5X);}}n_W.Studies.MA(R7A,S1n,s8b + j9L.name,0,"Result",s1H,j9L);};M8e.j7J(5);Z_P=M8e.c0C(1,"251709666");Y7r=1207877467;L4F=2;for(var R8B=1;M8e.S9Y(R8B.toString(),R8B.toString().length,"55926" ^ 0) !== Z_P;R8B++){B4$="Lo";B4$+="ng R";B4$+="oC";n_W.Studies.studyLibrary=n_W.extend(n_W.Studies.studyLibrary,{Coppock:{name:"Long RoC",calculateFN:n_W.Studies.calculateCoppock,inputs:{Period:64,Field:B4$,"Short RoC":73,"Long RoC":21}}});L4F+=2;}if(M8e.S9Y(L4F.toString(),L4F.toString().length,+"70280") !== Y7r){n_W.Studies.studyLibrary=n_W.extend(n_W.Studies.studyLibrary,{Coppock:{name:"Long RoC",calculateFN:n_W.Studies.calculateCoppock,inputs:{Period:64,Field:"Long RoC","Short RoC":73,"Long RoC":21}}});}n_W.Studies.studyLibrary=n_W.extend(n_W.Studies.studyLibrary,{Coppock:{name:"Coppock Curve",calculateFN:n_W.Studies.calculateCoppock,inputs:{Period:10,Field:a0I,"Short RoC":11,"Long RoC":14}}});}};f3=J4w=>{var K0x,W37,U1y,a2$;K0x=typeof _CIQ !== "undefined"?_CIQ:J4w.CIQ;if(!K0x.Studies){console.error("darvasBox feature requires first activating studies feature.");}else {W37="a";W37+="u";W37+="t";W37+="o";U1y="cl";U1y+="ose";a2$="D";a2$+="a";a2$+="r";a2$+="vas Box";K0x.Studies.calculateDarvas=function(a6y,t2p){var y8Y=f3BGj;var K5W,J0I,I9D,t4F,j5F,k1K,o$X,I6z,S8m,f2r,b_H,d4E,m6d,T0T,u9t,g1V,l$Z,v3z,a3q,R$T,Y0C,o5s,H$f,j$t,i5d,y8t,U6c,O_d,s_a,y6Y,H$Q,N5y,V4_,q2T;K5W="A";K5W+="D";K5W+="V";J0I="L";J0I+="o";J0I+="s";J0I+="s";I9D="Level Off";I9D+="set";t4F="V";t4F+="ol";t4F+="ume Sp";t4F+="ike";j5F=t2p.chart.scrubbed;k1K=0;o$X=parseInt(t2p.inputs["ATH Lookback Period"],10);if(t2p.inputs[t4F]){I6z="V";I6z+="olume";K0x.Studies.MA("simple",o$X,I6z,0,"ADV",a6y,t2p);}y8Y.N_M(16);var i7l=y8Y.c0C(7,20,0,17);S8m=parseFloat(t2p.inputs["Volume % of Avg"]) / ("100" | i7l);f2r="none";b_H={};d4E=null;m6d=null;T0T=null;u9t=parseFloat(t2p.inputs[I9D]);g1V=!({});if(g1V){console.log("*****************");}v3z={};["Darvas","Ghost","Profit",J0I,"ATH",K5W,"Spike"].forEach(function(q1K){v3z[q1K]=q1K + " " + t2p.name;});for(l$Z=t2p.startFrom - ("1" ^ 0);l$Z > 0;l$Z--){a3q=j5F[l$Z];if(a3q[v3z.Darvas] || a3q[v3z.Ghost]){for(var I1w in v3z){a3q[I1w]=null;}}else {k1K=a3q[v3z.ATH] || 0;m6d=a3q[v3z.Profit];T0T=a3q[v3z.Loss];break;}}for(l$Z;l$Z < j5F.length;l$Z++){R$T=j5F[l$Z];if(!R$T)continue;if(parseFloat(t2p.inputs["Price Minimum"]) <= j5F[k1K].Close){Y0C="darva";Y0C+="s";o5s="n";o5s+="o";o5s+="n";o5s+="e";H$f="high";H$f+="/low";if(d4E && (!d4E.End || l$Z == d4E.End + 1)){if(j5F[l$Z - ("1" >> 0)].Close > b_H.High){b_H={State:1,High:2 * b_H.High - b_H.Low,Low:b_H.High,Start:l$Z,End:2 * b_H.End - b_H.Start + 1};}else {d4E=null;;}if(d4E){R$T[v3z.Ghost]=K0x.clone(b_H);if(g1V){console.log("Ghost begin:" + R$T.DT);}b_H.State=0;if(j5F[b_H.End]){j5F[b_H.End][v3z.Ghost]=K0x.clone(b_H);if(g1V){console.log("Ghost end:" + j5F[b_H.End].DT);}}d4E={Start:b_H.Start,End:b_H.End};m6d=b_H.High + u9t;if(!T0T || T0T < b_H.Low - u9t){T0T=b_H.Low - u9t;}}}R$T[v3z.Profit]=m6d;R$T[v3z.Loss]=T0T;if(R$T.Close >= m6d){m6d=null;}else if(t2p.inputs["Exit Field"] == H$f && R$T.High >= m6d){m6d=null;}if(f2r == o5s){if(l$Z == k1K + 3){if(!j5F[k1K + 2][v3z.Darvas] && !j5F[k1K + ("1" - 0)][v3z.Darvas] && !j5F[k1K][v3z.Darvas] && j5F[k1K].High > R$T.High){f2r="high";;}}}if(f2r == "high"){if(R$T.High > j5F[k1K].High){j$t="n";j$t+="o";j$t+="n";j$t+="e";f2r=j$t;}else if(j5F[l$Z - 3].Low < j5F[l$Z - 2].Low && j5F[l$Z - 3].Low < j5F[l$Z - +"1"].Low && j5F[l$Z - ("3" << 64)].Low < R$T.Low){b_H={State:1,High:j5F[k1K].High,Low:j5F[l$Z - 3].Low,Start:k1K};j5F[k1K][v3z.Darvas]=K0x.clone(b_H);f2r="darvas";if(g1V){console.log("Darvas begin:" + j5F[k1K].DT);}if(g1V){console.log("Darvas established:" + R$T.DT);}if(d4E){if(d4E.End > l$Z && j5F[d4E.Start]){R$T[v3z.Ghost]=K0x.clone(j5F[d4E.Start][v3z.Ghost]);R$T[v3z.Ghost].End=l$Z;if(j5F[d4E.End]){delete j5F[d4E.End][v3z.Ghost];if(g1V){console.log("Ghost End removed:" + j5F[d4E.End].DT);}}}R$T[v3z.Ghost].State=0;j5F[d4E.Start][v3z.Ghost].End=l$Z;if(g1V){console.log("Ghost end:" + R$T.DT);}d4E=null;}m6d=b_H.High + u9t;if(!T0T || T0T < b_H.Low - u9t){T0T=b_H.Low - u9t;}}}if(f2r == Y0C){i5d="n";i5d+="o";i5d+="ne";y8t="n";y8t+="one";U6c="n";U6c+="o";U6c+="ne";O_d="Exit F";O_d+="iel";O_d+="d";s_a="non";s_a+="e";y6Y="hi";y6Y+="gh";y6Y+="/low";if(R$T.Close > b_H.High){d4E={};}else if(t2p.inputs["Exit Field"] == y6Y && R$T.High > b_H.High){d4E={};}else if(R$T.Close < b_H.Low){f2r=s_a;}else if(t2p.inputs[O_d] == "high/low" && R$T.Low < b_H.Low){f2r=U6c;}if(d4E){f2r="none";}else if(f2r == y8t){m6d=null;T0T=null;}if(!t2p.inputs["Ghost Boxes"]){d4E=null;}if(f2r == i5d){for(var P0r=b_H.Start + "1" * 1;P0r < l$Z;P0r++){j5F[P0r][v3z.Darvas]=K0x.clone(b_H);}b_H.State=0;b_H.End=l$Z;R$T[v3z.Darvas]=K0x.clone(b_H);if(g1V){console.log("Darvas end:" + R$T.DT);}R$T[v3z.ATH]=k1K;continue;}}if(T0T){H$Q="E";H$Q+="xi";H$Q+="t";H$Q+=" Field";if(R$T.Close < b_H.Low || t2p.inputs[H$Q] == "high/low" && R$T.Low < b_H.Low){N5y="Ex";N5y+="it F";N5y+="i";N5y+="eld";if(f2r == "darvas"){f2r="none";}if(R$T.Close < T0T || t2p.inputs[N5y] == "high/low" && R$T.Low < T0T){m6d=null;T0T=null;}if(d4E){if(d4E.End > l$Z && j5F[d4E.Start]){R$T[v3z.Ghost]=K0x.clone(j5F[d4E.Start][v3z.Ghost]);R$T[v3z.Ghost].End=l$Z;if(j5F[d4E.End]){V4_="Gh";V4_+="ost End removed:";delete j5F[d4E.End][v3z.Ghost];if(g1V){console.log(V4_ + j5F[d4E.End].DT);}}}R$T[v3z.Ghost].State=0;j5F[d4E.Start][v3z.Ghost].End=l$Z;if(g1V){console.log("Ghost end:" + R$T.DT);}d4E=null;}}}}if(R$T.High >= j5F[k1K].High){q2T="All T";q2T+="i";q2T+="me ";q2T+="High:";k1K=l$Z;if(g1V){console.log(q2T + R$T.DT);}}if(l$Z < 3 || R$T.High >= j5F[l$Z - 1].High && R$T.High >= j5F[l$Z - ("2" ^ 0)].High && R$T.High >= j5F[l$Z - ("3" | 2)].High){if(l$Z - k1K >= o$X){k1K=l$Z;for(var P6W=0;P6W < o$X;P6W++){if(l$Z - P6W < +"0")break;if(j5F[l$Z - P6W].High > j5F[k1K].High){y8Y.j7J(14);k1K=y8Y.a$j(l$Z,P6W);}}if(g1V){console.log("All Time High:" + R$T.DT);}}}if(t2p.inputs["Volume Spike"] && l$Z > o$X && l$Z == k1K){if(R$T[v3z.ADV] * S8m < R$T.Volume){R$T[v3z.Spike]=1;if(g1V){console.log("Volume Spike:" + R$T.DT);}}}R$T[v3z.ATH]=k1K;}};K0x.Studies.displayDarvas=function(U87,g1B,U4l){var p2p=f3BGj;var D0E,k_n,L0O,g8V,H30,t3A,u4S,g2e,y1n,B9L,M_i,Q2F,B4w,w11,X0l,s_0,v7r,b0y,y4k,A4i,E8s,T0Z,q4J,N8c,b4V,O8g,U43,p8T,s9g,R7W,l_x,O3a,S8f,g5u,Z02,Q4v,q9X;D0E="Stop";D0E+=" L";D0E+="ev";D0E+="els";k_n="a";k_n+="uto";L0O=K0x.Studies.determineColor(g1B.outputs.Levels);if(!L0O || L0O == "auto" || K0x.isTransparent(L0O)){L0O=U87.defaultColor;}g8V=K0x.Studies.determineColor(g1B.outputs.Darvas);if(!g8V || g8V == "auto" || K0x.isTransparent(g8V)){g8V=U87.defaultColor;}H30=K0x.Studies.determineColor(g1B.outputs.Ghost);if(!H30 || H30 == k_n || K0x.isTransparent(H30)){H30=U87.defaultColor;}t3A=U87.panels[g1B.panel];u4S=g1B.getContext(U87);p2p.N_M(1);var n58=p2p.c0C(24,72);Q2F=U87.layout.candleWidth - ("2" << n58);if(Q2F < 2){Q2F=1;}U87.startClip(g1B.panel);if(g1B.inputs[D0E]){if(u4S.setLineDash){u4S.setLineDash([2,2]);}u4S.lineWidth=2;u4S.strokeStyle=L0O;u4S.beginPath();for(g2e=0;g2e < U4l.length;g2e++){B4w="L";B4w+="o";B4w+="s";B4w+="s ";y1n=U4l[g2e];p2p.j7J(14);w11=U4l[p2p.a$j(g2e,1)];if(!y1n)continue;M_i=y1n["Loss " + g1B.name]?Math.floor(U87.pixelFromPrice(y1n[B4w + g1B.name],t3A)):null;X0l=w11 && w11["Loss " + g1B.name]?Math.floor(U87.pixelFromPrice(w11["Loss " + g1B.name],t3A)):null;if(M_i){if(y1n.candleWidth){Q2F=Math.floor(Math.max(1,y1n.candleWidth));}s_0=Math.floor(U87.pixelFromBar(g2e,t3A.chart) + Q2F / 2);v7r=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / +"2");if(X0l && X0l >= M_i){u4S.lineTo(v7r,M_i);}else if(g2e === 0){u4S.moveTo(U87.chart.left,M_i);}else {u4S.moveTo(v7r,M_i);}u4S.lineTo(s_0,M_i);}}u4S.stroke();if(u4S.setLineDash){u4S.setLineDash([]);}u4S.lineWidth=1;}b0y=-10;A4i=+"0";T0Z=-10;N8c=0;O8g=!!0;U43=!"1";p2p.N_M(61);var M7z=p2p.a$j(6203,1,17);p2p.j7J(14);var u_j=p2p.c0C(157930,148640);p2p.j7J(15);var b6Z=p2p.a$j(3941,25,6);p2p.N_M(9);var Z8M=p2p.c0C(5544,17,330);p2p.N_M(82);var E3u=p2p.a$j(140,17,23);p2p.j7J(61);var L13=p2p.a$j(10290,10290,2057);p8T=u4S.measureText((755.12,"9731" - 0) > M7z?"\u25B2":u_j < (b6Z,"9026" | Z8M)?(E3u,L13):"P").width / ("2" ^ 0);s9g=0;for(g2e=0;g2e < U4l.length;g2e++){R7W="Da";R7W+="r";R7W+="vas";R7W+=" ";if(!U4l[g2e])continue;if(U4l[g2e].Close || U4l[g2e].Close === 0){s9g=g2e;}if(U4l[g2e]["Spike " + g1B.name]){u4S.fillStyle=g8V;u4S.textBaseline="bottom";l_x=U87.pixelFromPrice(U4l[g2e].High,U87.chart.panel);u4S.fillText(+"4630" === 534.99?(798.2,977.86) == (5535,2620)?(0x1b1f,0x410):564 <= (3088,382)?0x18f3:"X":"\u25BC",U87.pixelFromBar(g2e) - p8T,l_x - 5);;}if(U4l[g2e].candleWidth){Q2F=Math.floor(Math.max(1,U4l[g2e].candleWidth));}if(U4l[g2e][R7W + g1B.name]){y1n=U4l[g2e]["Darvas " + g1B.name];if(y1n.State == 1 && !O8g){b0y=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / +"2");y4k=Math.floor(U87.pixelFromPrice(y1n.High,t3A));E8s=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - y4k;O8g=!"";}else if(y1n.State === 0){O3a="S";O3a+="t";O3a+="o";O3a+="p Levels";p2p.N_M(127);var Y3i=p2p.a$j(34,20,3,4,11);A4i=Math.floor(U87.pixelFromBar(g2e,t3A.chart) + Q2F / Y3i) - b0y;y4k=Math.floor(U87.pixelFromPrice(y1n.High,t3A));E8s=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - y4k;u4S.strokeStyle=g8V;u4S.fillStyle=g8V;if(!g1B.inputs[O3a]){u4S.strokeRect(b0y,y4k,A4i,E8s);u4S.globalAlpha=0.2;}else {u4S.globalAlpha=0.3;}u4S.fillRect(b0y,y4k,A4i,E8s);u4S.globalAlpha=1;O8g=!!"";}}if(U4l[g2e]["Ghost " + g1B.name] && g1B.inputs["Ghost Boxes"]){y1n=U4l[g2e]["Ghost " + g1B.name];if(y1n.State == 1 && !U43){T0Z=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / 2);q4J=Math.floor(U87.pixelFromPrice(y1n.High,t3A));N8c=Math.floor((y1n.End - y1n.Start + 1) * U87.layout.candleWidth + Q2F / 2);b4V=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - q4J;U43=!!({});}else if(y1n.State === 0){if(y1n.Start == y1n.End){T0Z=Math.floor(U87.pixelFromBar(g2e,t3A.chart) - Q2F / 2);}p2p.j7J(3);var C38=p2p.a$j(10,5,7);N8c=Math.floor(U87.pixelFromBar(g2e,t3A.chart) + Q2F / C38) - T0Z;q4J=Math.floor(U87.pixelFromPrice(y1n.High,t3A));b4V=Math.floor(U87.pixelFromPrice(y1n.Low,t3A)) - q4J;u4S.strokeStyle=H30;u4S.fillStyle=H30;if(!g1B.inputs["Stop Levels"]){u4S.strokeRect(T0Z,q4J,N8c,b4V);u4S.globalAlpha=0.2;}else {u4S.globalAlpha=0.3;}u4S.fillRect(T0Z,q4J,N8c,b4V);u4S.globalAlpha=1;U43=![];}}}if(O8g){S8f="Stop";S8f+=" Level";S8f+="s";p2p.j7J(64);var g2L=p2p.a$j(1,8,149,11,13);A4i=Math.floor(U87.pixelFromBar(s9g,t3A.chart) + Q2F / g2L) - b0y;u4S.strokeStyle=g8V;u4S.fillStyle=g8V;if(!g1B.inputs[S8f]){u4S.beginPath();p2p.j7J(25);u4S.moveTo(p2p.c0C(2,A4i,b0y),y4k);u4S.lineTo(b0y,y4k);p2p.N_M(1);u4S.lineTo(b0y,p2p.a$j(y4k,E8s));p2p.j7J(25);u4S.lineTo(p2p.a$j(2,A4i,b0y),p2p.a$j(y4k,E8s,p2p.j7J(1)));u4S.stroke();u4S.globalAlpha=0.2;}else {u4S.globalAlpha=+"0.3";}p2p.j7J(5);u4S.fillRect(b0y,y4k,p2p.a$j(A4i,2),E8s);u4S.globalAlpha=1;}if(U43){u4S.strokeStyle=H30;u4S.fillStyle=H30;if(!g1B.inputs["Stop Levels"]){u4S.strokeRect(T0Z,q4J,N8c,b4V);p2p.j7J(14);u4S.globalAlpha=p2p.a$j("0.2",0);}else {u4S.globalAlpha=0.3;}u4S.fillRect(T0Z,q4J,N8c,b4V);u4S.globalAlpha=1;}if(O8g || U43){if(g1B.inputs["Stop Levels"]){if(u4S.setLineDash){g5u=1074516398;Z02=211878868;Q4v=2;for(var K8z=1;p2p.S9Y(K8z.toString(),K8z.toString().length,4566) !== g5u;K8z++){u4S.setLineDash([2,2]);Q4v+=2;}if(p2p.O1W(Q4v.toString(),Q4v.toString().length,47512) !== Z02){u4S.setLineDash([5,+"7"]);}}u4S.lineWidth=2;u4S.strokeStyle=L0O;q9X=Math.floor(U87.pixelFromBar(s9g - ("1" >> 0),t3A.chart) + Q2F / 2);if(B9L){u4S.beginPath();u4S.moveTo(q9X,B9L);u4S.lineTo(O8g?b0y + 2 * A4i:T0Z + N8c,B9L);u4S.stroke();}if(M_i){u4S.beginPath();u4S.moveTo(q9X,M_i);u4S.lineTo(O8g?b0y + ("2" ^ 0) * A4i:T0Z + N8c,M_i);u4S.stroke();}if(u4S.setLineDash){u4S.setLineDash([]);}u4S.lineWidth=1;}O8g=!!"";U43=!!"";}U87.endClip();};K0x.Studies.studyLibrary=K0x.extend(K0x.Studies.studyLibrary,{Darvas:{name:a2$,underlay:!![],calculateFN:K0x.Studies.calculateDarvas,seriesFN:K0x.Studies.displayDarvas,inputs:{"ATH Lookback Period":100,"Exit Field":[U1y,"high/low"],"Ghost Boxes":!![],"Stop Levels":!({}),"Level Offset":+"0.01","Price Minimum":5,"Volume Spike":!({}),"Volume % of Avg":400},outputs:{Darvas:"#5F7CB8",Ghost:"#699158",Levels:W37},customRemoval:!!1,attributes:{"Price Minimum":{min:"0.01" * 1,step:0.01},yaxisDisplayValue:{hidden:!""},panelName:{hidden:!![]},flippedEnabled:{hidden:!![]}}}});}};n8=w2F=>{var D1n,Y9z;D1n=typeof _CIQ !== "undefined"?_CIQ:w2F.CIQ;if(!D1n.Studies){console.error("detrended feature requires first activating studies feature.");}else {Y9z="m";Y9z+="a";D1n.Studies.calculateDetrendedPrice=function(o8t,Z1V){var j_j,b3G,S21,n1K,n$G,r95,W5W,y4p;j_j="f";j_j+="ie";j_j+="ld";b3G=Z1V.chart.scrubbed;if(b3G.length < Z1V.days + 1){Z1V.error=!![];return;}S21=Z1V.inputs.Field;if(!S21 || S21 == j_j){S21="Close";}n1K=Math.floor(Z1V.days / 2 + 1);D1n.Studies.MA(Z1V.inputs["Moving Average Type"],Z1V.days,S21,-n1K,"MA",o8t,Z1V);for(var u2d=Math.max(Z1V.days - n1K - 1,Z1V.startFrom - n1K);u2d < b3G.length - n1K;u2d++){n$G="R";n$G+="e";n$G+="sult";n$G+=" ";r95="M";r95+="A ";if(u2d < ("0" ^ 0))continue;W5W=b3G[u2d][S21];if(W5W && typeof W5W == "object"){W5W=W5W[Z1V.subField];}y4p=b3G[u2d][r95 + Z1V.name];if((W5W || W5W === 0) && (y4p || y4p === +"0")){f3BGj.j7J(14);b3G[u2d][n$G + Z1V.name]=f3BGj.c0C(W5W,y4p);}}};D1n.Studies.studyLibrary=D1n.extend(D1n.Studies.studyLibrary,{Detrended:{name:"Detrended Price Oscillator",calculateFN:D1n.Studies.calculateDetrendedPrice,inputs:{Period:14,Field:"field","Moving Average Type":Y9z}}});}};p9=q_f=>{var O0_=f3BGj;var Z4Y,t9E;Z4Y=typeof _CIQ !== "undefined"?_CIQ:q_f.CIQ;O0_.T$X();if(!Z4Y.Studies){console.error("disparity feature requires first activating studies feature.");}else {t9E="Di";t9E+="sparity Index";Z4Y.Studies.calculateDisparity=function(J8c,U9f){var A$$,j7p,n2T,Q$a,n15;A$$="C";A$$+="lo";A$$+="se";j7p=U9f.chart.scrubbed;if(j7p.length < U9f.days + 1){U9f.error=!!"1";return;}n2T=U9f.inputs.Field;if(!n2T || n2T == "field"){n2T=A$$;}Z4Y.Studies.MA(U9f.inputs["Moving Average Type"],U9f.days,n2T,0,"_MA",J8c,U9f);O0_.T$X();for(var S2R=Math.max(U9f.startFrom,U9f.days - 1);S2R < j7p.length;S2R++){Q$a="R";Q$a+="e";Q$a+="s";Q$a+="ult ";if(!j7p[S2R])continue;n15=j7p[S2R]["_MA " + U9f.name];if(n15){O0_.N_M(61);var G2Y=O0_.a$j(93,1,7);O0_.j7J(27);var B6g=O0_.a$j(9,8);j7p[S2R][Q$a + U9f.name]=G2Y * (j7p[S2R][n2T] / n15 - B6g);}}};Z4Y.Studies.studyLibrary=Z4Y.extend(Z4Y.Studies.studyLibrary,{Disparity:{name:t9E,calculateFN:Z4Y.Studies.calculateDisparity,inputs:{Period:14,Field:"field","Moving Average Type":"ma"}}});}};f8=M6w=>{var b7v=f3BGj;b7v.f3X();var b7h,F9Z;b7h=typeof _CIQ !== "undefined"?_CIQ:M6w.CIQ;if(!b7h.Studies){console.error("easeOfMovement feature requires first activating studies feature.");}else {F9Z="Ea";F9Z+="se of ";F9Z+="M";F9Z+="ovement";b7h.Studies.calculateEaseOfMovement=function(k$G,T$l){var h3s,f$h,Z9u,k6t,j2n,n4G;h3s=T$l.chart.scrubbed;b7v.f3X();if(h3s.length < T$l.days){T$l.error=!0;return;}for(var H93=Math.max(1,T$l.startFrom);H93 < h3s.length;H93++){b7v.N_M(56);var f0e=b7v.a$j(5,32,16,5);f$h=(h3s[H93].High + h3s[H93].Low) / f0e;b7v.j7J(1);var J0n=b7v.c0C(46,18);b7v.j7J(44);var J6X=b7v.c0C(2,14,237,15);b7v.N_M(3);var V4N=b7v.a$j(18,9,11);Z9u=(h3s[H93 - ("1" >> J0n)].High + h3s[H93 - J6X].Low) / V4N;b7v.N_M(14);k6t=b7v.c0C(f$h,Z9u);b7v.j7J(17);var U_O=b7v.c0C(1900000191,20,100000009,11);j2n=h3s[H93].Volume / U_O / (h3s[H93].High - h3s[H93].Low);b7v.j7J(7);n4G=b7v.c0C(k6t,j2n);if(!isFinite(n4G)){h3s[H93]["_EOM1 " + T$l.name]=NaN;}else {h3s[H93]["_EOM1 " + T$l.name]=n4G;}}b7h.Studies.MA(T$l.inputs["Moving Average Type"],T$l.days,"_EOM1 " + T$l.name,0,"Result",k$G,T$l);};b7h.Studies.studyLibrary=b7h.extend(b7h.Studies.studyLibrary,{EOM:{name:F9Z,calculateFN:b7h.Studies.calculateEaseOfMovement,inputs:{Period:14,"Moving Average Type":"ma"}}});}};A3=M_J=>{var l2I=f3BGj;var r0J,y3v;r0J="u";r0J+="ndefined";l2I.T$X();y3v=typeof _CIQ !== r0J?_CIQ:M_J.CIQ;if(!y3v.Studies){console.error("ehlerFisher feature requires first activating studies feature.");}else {y3v.Studies.calculateEhlerFisher=function(S4a,o87){var n2j,W_l,k9x,o8y,Y_l,p1z,o2D;n2j=o87.chart.scrubbed;if(n2j.length < o87.days + 1){o87.error=!"";return;}l2I.N_M(4);W_l=l2I.c0C("0",0);function S8S(H1W,i3J){var h7I,H0l,y54,V2g,x1D,h0K;h7I=-428939658;H0l=-1778201131;y54=2;for(var a8I=1;l2I.S9Y(a8I.toString(),a8I.toString().length,+"25159") !== h7I;a8I++){V2g=Number.MAX_VALUE;l2I.N_M(128);var H9w=l2I.c0C(4,1,8,2,9);x1D=Number.MAX_VALUE * H9w;y54+=2;}if(l2I.S9Y(y54.toString(),y54.toString().length,32314) !== H0l){V2g=Number.MAX_VALUE;l2I.j7J(129);var u8Y=l2I.a$j(11,1763,6,10,17);x1D=Number.MAX_VALUE - !u8Y;}for(var x8y=i3J - H1W + 1;x8y <= i3J;x8y++){l2I.N_M(68);var n_Y=l2I.a$j(18,1,0,16);h0K=(n2j[x8y].High + n2j[x8y].Low) / n_Y;V2g=Math.min(V2g,h0K);x1D=Math.max(x1D,h0K);}return [V2g,x1D];}if(o87.startFrom > "1" << 0){l2I.N_M(1);var R3w=l2I.c0C(0,1);W_l=n2j[o87.startFrom - R3w]["_n " + o87.name];}for(var h0o=o87.startFrom;h0o < n2j.length;h0o++){k9x="E";k9x+="F";k9x+=" Trigge";k9x+="r ";o8y=n2j[h0o];if(o8y.futureTick)break;if(h0o < o87.days - 1){Y_l="E";Y_l+="F";Y_l+=" ";o8y[Y_l + o87.name]=o8y["EF Trigger " + o87.name]=W_l;continue;}p1z=S8S(o87.days,h0o);l2I.N_M(1);var Q0Z=l2I.a$j(0,2);l2I.j7J(130);var m7k=l2I.a$j(10,12,3,23,5);l2I.j7J(102);var p2R=l2I.c0C(19,7,20,5);l2I.j7J(131);var c6A=l2I.a$j(14,18,1681,20,3);W_l=0.33 * Q0Z * (((n2j[h0o].High + n2j[h0o].Low) / m7k - p1z[0]) / Math.max(0.000001,p1z[p2R] - p1z[0]) - 0.5) + "0.67" * c6A * W_l;if(W_l > 0){W_l=Math.min(W_l,0.9999);}else if(W_l < 0){W_l=Math.max(W_l,-0.9999);}o2D=h0o?n2j[h0o - 1]["EF " + o87.name]:"0" | 0;l2I.j7J(17);var S7L=l2I.c0C(122,9,12,15);l2I.N_M(14);var w3g=l2I.a$j(1,0);o8y["EF " + o87.name]=0.5 * Math.log((S7L + W_l) / (w3g - W_l)) + 0.5 * o2D;o8y[k9x + o87.name]=o2D;o8y["_n " + o87.name]=W_l;}};y3v.Studies.studyLibrary=y3v.extend(y3v.Studies.studyLibrary,{"Ehler Fisher":{name:"Ehler Fisher Transform",calculateFN:y3v.Studies.calculateEhlerFisher,inputs:{Period:10},outputs:{EF:"auto","EF Trigger":"#FF0000"}}});}};b0=C4O=>{var r7W=f3BGj;var f8j,Y2d,R9o,K7s;f8j="u";f8j+="nd";r7W.T$X();f8j+="e";f8j+="fined";Y2d=typeof _CIQ !== f8j?_CIQ:C4O.CIQ;if(!Y2d.Studies){console.error("elder feature requires first activating studies feature.");}else {R9o="#";R9o+="8";R9o+="B";R9o+="C176";K7s="Elder Forc";K7s+="e Index";Y2d.Studies.calculateElderImpulse=function(V4j,H$k){var U_o,Y3t,W$e,M7C,t30,K6_,u0f;U_o=H$k.chart.scrubbed;Y3t=H$k.outputs.Bullish;W$e=H$k.outputs.Bearish;M7C=H$k.outputs.Neutral;Y2d.Studies.MA("exponential",13,"Close",0,"_MA",V4j,H$k);r7W.N_M(55);var E4W=r7W.a$j(10,108790,1078010,1);r7W.j7J(87);var E7M=r7W.a$j(6,83,4721,249,1);r7W.j7J(9);var X1h=r7W.c0C(111334,19,6186);r7W.N_M(14);var H0m=r7W.c0C(19,18);r7W.j7J(68);var t4g=r7W.c0C(6257,890,6249,19);r7W.N_M(14);var L$k=r7W.c0C(8758,18);H$k.macd=new Y2d.Studies.StudyDescriptor(((E4W,E7M) !== ("4340" ^ 0,703.37)?"_":X1h <= ("658.22" * H0m,"5710" ^ 0)?(t4g,L$k):("0x1f98" ^ 0,"A")) + H$k.name,"macd",H$k.panel);H$k.macd.chart=H$k.chart;H$k.macd.days=H$k.days;H$k.macd.startFrom=H$k.startFrom;H$k.macd.inputs={"Fast MA Period":12,"Slow MA Period":26,"Signal Period":+"9"};H$k.macd.outputs={_MACD:null,_Signal:null};Y2d.Studies.calculateMACD(V4j,H$k.macd);for(var e1L=H$k.startFrom;e1L < U_o.length;e1L++){K6_="_h";K6_+="i";K6_+="s";K6_+="t";u0f="_M";u0f+="A";u0f+=" ";if(e1L === 0){t30=M7C;}else if(U_o[e1L]["_MA " + H$k.name] > U_o[e1L - +"1"]["_MA " + H$k.name] && U_o[e1L][(270 <= 5236?"_":(9.83e+3,!!({}))) + H$k.name + "_hist"] > U_o[e1L - 1][(7980 != ("425.35" - 0,3440)?"_":8970 < 2030?(6.18e+3,127.14):8300 >= (3683,2280)?7.91e+3:272.07) + H$k.name + "_hist"]){t30=Y3t;}else if(U_o[e1L]["_MA " + H$k.name] < U_o[e1L - 1][u0f + H$k.name] && U_o[e1L][(("7728" ^ 0) <= 543.24?3.23e+3:(8462,8613) === (+"214",210.2)?(8.09e+3,0x1b68):("219" >> 64,792.17) > (262.61,6060)?(!!1,0x701):"_") + H$k.name + K6_] < U_o[e1L - ("1" - 0)]["_" + H$k.name + "_hist"]){t30=W$e;}else {t30=M7C;}U_o[e1L]["Result " + H$k.name]=t30;;}};Y2d.Studies.calculateElderRay=function(W5Q,K4i){var C4V,u7J;C4V="_";C4V+="his";r7W.T$X();C4V+="t";C4V+="1";u7J=K4i.chart.scrubbed;if(u7J.length < K4i.days){K4i.error=!!({});return;}Y2d.Studies.MA("exponential",K4i.days,"Close",0,"_EMA",W5Q,K4i);for(var X56=Math.max(K4i.startFrom,K4i.days - +"1");X56 < u7J.length;X56++){u7J[X56][K4i.name + "_hist1"]=u7J[X56].High - u7J[X56]["_EMA " + K4i.name];u7J[X56][K4i.name + "_hist2"]=u7J[X56].Low - u7J[X56]["_EMA " + K4i.name];}K4i.outputMap={};K4i.outputMap[K4i.name + C4V]="";K4i.outputMap[K4i.name + "_hist2"]="";};Y2d.Studies.calculateElderForce=function(y9$,A$q){var W0f,Y3u;W0f="_EF1";W0f+=" ";Y3u=A$q.chart.scrubbed;if(Y3u.length < A$q.days){A$q.error=!0;return;}for(var V_F=Math.max(1,A$q.startFrom);V_F < Y3u.length;V_F++){r7W.j7J(3);var l6o=r7W.c0C(9,6,4);Y3u[V_F]["_EF1 " + A$q.name]=Y3u[V_F].Volume * (Y3u[V_F].Close - Y3u[V_F - l6o].Close);}Y2d.Studies.MA("exponential",A$q.days,W0f + A$q.name,0,"Result",y9$,A$q);};Y2d.Studies.initElderImpulse=function(h6I,F7y,K2o,e21,S12,y2m){var s7v,i74;s7v="color";s7v+="ed_b";s7v+="ar";i74=Y2d.Studies.initializeFN(h6I,F7y,K2o,e21,S12,y2m);if(S12.calculateOnly){return i74;}h6I.chart.customChart={chartType:s7v,colorFunction:function(Y9O,W2x,o_3){var x2t;x2t=W2x["Result " + i74.name];if(x2t && typeof x2t == "object"){x2t=x2t.color;}return x2t;}};h6I.setMainSeriesRenderer();r7W.f3X();return i74;};Y2d.Studies.displayElderForce=function(X09,o53,V_a){var R7f,S4m,T1e,Y50,b8s;r7W.f3X();R7f="Res";R7f+="ult";R7f+=" ";Y2d.Studies.displaySeriesAsLine(X09,o53,V_a);S4m=Y2d.Studies.determineColor(o53.outputs.Result);T1e=X09.panels[o53.panel];Y50=o53.getYAxis(X09);b8s={skipTransform:T1e.name != o53.chart.name,panelName:o53.panel,band:R7f + o53.name,threshold:+"0",color:S4m,yAxis:Y50};if(!o53.highlight && X09.highlightedDraggable){b8s.opacity=0.3;}b8s.direction=1;Y2d.preparePeakValleyFill(X09,b8s);b8s.direction=-1;Y2d.preparePeakValleyFill(X09,b8s);};Y2d.Studies.displayElderRay=function(b1Y,L7s,M89){var k6I,Q_C,r$W,m3T,d3J,u9D,y0a,R1f,w_j,g7X;k6I=b1Y.panels[L7s.panel];Q_C=L7s.getContext(b1Y);r$W=L7s.getYAxis(b1Y);function I6X(E$V,d7_,D3h,b3V){r7W.f3X();Q_C.fillStyle=Y2d.Studies.determineColor(L7s.outputs[D3h]);Q_C.fillRect(Math.floor(b1Y.pixelFromBar(E$V,k6I.chart) - d3J / 2 + d3J * d7_),Math.floor(m3T),Math.floor(d3J * (1 - +"2" * d7_)),Math.floor(b1Y.pixelFromPrice(g7X[L7s.name + b3V],k6I,r$W) - m3T));}r7W.N_M(4);r7W.f3X();m3T=b1Y.pixelFromPrice(r7W.c0C("0",0),k6I,r$W);r7W.j7J(14);var L9w=r7W.a$j(16,14);d3J=b1Y.layout.candleWidth - L9w;if(d3J < 2){d3J=1;}b1Y.canvasColor("stx_histogram");u9D=Q_C.fillStyle;if(!L7s.underlay){Q_C.globalAlpha=+"1";}b1Y.startClip(L7s.panel);if(!L7s.highlight && b1Y.highlightedDraggable){Q_C.globalAlpha*=0.3;}for(var Y3r=0;Y3r < M89.length;Y3r++){y0a="_hist";y0a+="2";R1f="_h";R1f+="ist1";w_j="_";w_j+="hist1";g7X=M89[Y3r];if(!g7X)continue;if(g7X.candleWidth){d3J=Math.floor(Math.max(1,g7X.candleWidth - ("2" ^ 0)));}if(g7X[L7s.name + w_j] > 0){r7W.j7J(29);I6X(Y3r,r7W.a$j(0,"0"),"Elder Bull Power","_hist1");}if(g7X[L7s.name + "_hist2"] < 0){I6X(Y3r,0,"Elder Bear Power","_hist2");}if(g7X[L7s.name + "_hist1"] < 0){I6X(Y3r,0.1,"Elder Bull Power",R1f);}if(g7X[L7s.name + "_hist2"] > 0){r7W.N_M(14);I6X(Y3r,r7W.a$j("0.1",0),"Elder Bear Power",y0a);}}b1Y.endClip();Q_C.fillStyle=u9D;};Y2d.Studies.studyLibrary=Y2d.extend(Y2d.Studies.studyLibrary,{"Elder Force":{name:K7s,calculateFN:Y2d.Studies.calculateElderForce,seriesFN:Y2d.Studies.displayElderForce,inputs:{Period:13}},"Elder Ray":{name:"Elder Ray Index",seriesFN:Y2d.Studies.displayElderRay,calculateFN:Y2d.Studies.calculateElderRay,centerline:0,inputs:{Period:13},outputs:{"Elder Bull Power":"#00DD00","Elder Bear Power":"#FF0000"}},"Elder Impulse":{name:"Elder Impulse System",calculateFN:Y2d.Studies.calculateElderImpulse,initializeFN:Y2d.Studies.initElderImpulse,seriesFN:null,customRemoval:!![],underlay:!!({}),inputs:{},outputs:{Bullish:R9o,Bearish:"#DD3E39",Neutral:"#5F7CB8"},removeFN:function(K5w,U0v){K5w.chart.customChart=null;K5w.setMainSeriesRenderer();}}});}};j4=q5g=>{var l2d=f3BGj;var r1E,X6T,Y4B,I6x,P4L,k4v,O7C;r1E=typeof _CIQ !== "undefined"?_CIQ:q5g.CIQ;if(!r1E.Studies){X6T=122462410;Y4B=320517448;I6x=2;for(var A9E=1;l2d.O1W(A9E.toString(),A9E.toString().length,"61779" ^ 0) !== X6T;A9E++){console.error("");I6x+=2;}if(l2d.S9Y(I6x.toString(),I6x.toString().length,76585) !== Y4B){console.error("");}console.error("fractalChaos feature requires first activating studies feature.");}else {P4L="a";P4L+="uto";k4v="a";k4v+="uto";O7C="aut";O7C+="o";r1E.Studies.calculateFractalChaos=function(x0E,V3c){var f5W,x$$,C6h,M2p,O5k,L8J,k1P,I7E,h$T,n_H;f5W="Fractal C";f5W+="haos";f5W+=" Band";f5W+="s";x$$=V3c.chart.scrubbed;C6h=0;M2p=0;O5k=0;if(V3c.startFrom && V3c.type == f5W){L8J="F";L8J+="ractal";L8J+=" Low ";l2d.N_M(102);var s9l=l2d.c0C(13,13,17,8);C6h=x$$[V3c.startFrom - s9l]["Fractal High " + V3c.name];l2d.j7J(132);var R_9=l2d.c0C(13,16,9,2,13);M2p=x$$[V3c.startFrom - R_9][L8J + V3c.name];}for(var i49=Math.max("4" ^ 0,V3c.startFrom);i49 < x$$.length;i49++){k1P="F";k1P+="ractal Cha";k1P+="os Ba";k1P+="nds";if(x$$[i49].futureTick)break;I7E=!isNaN(x$$[i49].High);h$T=!isNaN(x$$[i49].Low);if(I7E || h$T){x$$[i49]["Result " + V3c.name]=0;}O5k=0;for(n_H=0;n_H <= i49;n_H++){if(!x$$[i49 - n_H])break;if(x$$[i49 - n_H].High > x$$[i49 - +"2"].High)break;if(n_H < 2 && x$$[i49 - n_H].High == x$$[i49 - 2].High)break;if(x$$[i49 - n_H].High < x$$[i49 - 2].High){O5k++;}if(O5k == 4){C6h=x$$[i49 - 2].High;break;}}if(V3c.type == k1P){if(I7E){x$$[i49]["Fractal High " + V3c.name]=C6h > 0?C6h:null;}}else if(O5k == 4){x$$[i49]["Result " + V3c.name]=1;}l2d.j7J(5);O5k=l2d.c0C(1,"0");for(n_H=+"0";n_H <= i49;n_H++){if(!x$$[i49 - n_H])break;if(x$$[i49 - n_H].Low < x$$[i49 - 2].Low)break;if(n_H < 2 && x$$[i49 - n_H].Low == x$$[i49 - 2].Low)break;if(x$$[i49 - n_H].Low > x$$[i49 - +"2"].Low){O5k++;}if(O5k == 4){M2p=x$$[i49 - +"2"].Low;break;}}if(V3c.type == "Fractal Chaos Bands"){if(h$T){x$$[i49]["Fractal Low " + V3c.name]=M2p > +"0"?M2p:null;}}else if(O5k == +"4"){x$$[i49]["Result " + V3c.name]=-+"1";}}};r1E.Studies.studyLibrary=r1E.extend(r1E.Studies.studyLibrary,{"Fractal Chaos":{name:"Fractal Chaos Oscillator",range:"-1 to 1",calculateFN:r1E.Studies.calculateFractalChaos,inputs:{},centerline:null},"Fractal Chaos Bands":{name:"Fractal Chaos Bands",overlay:!0,calculateFN:r1E.Studies.calculateFractalChaos,seriesFN:r1E.Studies.displayChannel,inputs:{"Channel Fill":!!({})},outputs:{"Fractal High":O7C,"Fractal Low":k4v,"Fractal Channel":P4L}}});}};U1=T5C=>{var C3X,M9Z,F0h,F$E,s_U,a$f,y2b,c$a;C3X="un";C3X+="defined";M9Z=typeof _CIQ !== C3X?_CIQ:T5C.CIQ;if(!M9Z.Studies){console.error("highLowStudies feature requires first activating studies feature.");}else {F0h="Wil";F0h+="liams %R";F$E="Lowest Low ";F$E+="Value";s_U="Highest High V";s_U+="alu";s_U+="e";a$f="a";a$f+="u";a$f+="t";a$f+="o";y2b="a";y2b+="u";y2b+="t";y2b+="o";c$a="au";c$a+="t";c$a+="o";M9Z.Studies.calculateMaxHighMinLow=function(a8Z,X4J){var K92=f3BGj;var K3Z,C2Q,U_0,J8r,S4g,H8n,U5w,f5g,l8Q,H0n,c3x,t$u,g6E;K3Z="Low Peri";K3Z+="od";C2Q="Hi";C2Q+="gh Pe";C2Q+="rio";C2Q+="d";U_0="High";U_0+=" Period";J8r=X4J.chart.scrubbed;S4g=X4J.days;H8n=X4J.days;if(X4J.inputs[U_0]){S4g=X4J.inputs[C2Q];}if(X4J.inputs[K3Z]){H8n=X4J.inputs["Low Period"];}if(J8r.length < Math.max(S4g,H8n) + +"1"){X4J.error=!![];return;}U5w=Number.MAX_VALUE;K92.j7J(14);var w3A=K92.a$j(0,1);f5g=Number.MAX_VALUE * w3A;if(X4J.startFrom > 1){for(l8Q=1;l8Q < S4g;l8Q++){if(X4J.startFrom - l8Q >= 0){f5g=Math.max(f5g,J8r[X4J.startFrom - l8Q].High);}}for(l8Q=1;l8Q < H8n;l8Q++){if(X4J.startFrom - l8Q >= 0){U5w=Math.min(U5w,J8r[X4J.startFrom - l8Q].Low);}}}for(var n9X=Math.max(0,X4J.startFrom - 1);n9X < J8r.length;n9X++){H0n="VT HZ";H0n+=" ";H0n+="Fi";H0n+="lter";f5g=Math.max(f5g,J8r[n9X].High);U5w=Math.min(U5w,J8r[n9X].Low);if(n9X >= S4g){if(J8r[n9X - S4g].High == f5g){f5g=J8r[n9X].High;for(l8Q=1;l8Q < S4g;l8Q++){f5g=Math.max(f5g,J8r[n9X - l8Q].High);}}}if(n9X >= H8n){if(J8r[n9X - H8n].Low == U5w){U5w=J8r[n9X].Low;for(l8Q=1;l8Q < H8n;l8Q++){U5w=Math.min(U5w,J8r[n9X - l8Q].Low);}}}c3x=0;if(X4J.type == "HHV"){c3x=f5g;}else if(X4J.type == "LLV"){c3x=U5w;}else if(X4J.type == "Donchian Width"){K92.N_M(14);c3x=K92.c0C(f5g,U5w);}else if(X4J.type == "GAPO" || X4J.type == "Gopala"){c3x=Math.log(f5g - U5w) / Math.log(H8n);}else if(X4J.type == H0n){K92.j7J(14);c3x=K92.c0C(f5g,U5w);J8r[n9X]["_MHML " + X4J.name]=c3x;continue;}else if(X4J.type == "Williams %R"){K92.j7J(133);var s7h=K92.c0C(20,17,22,18,93);c3x=s7h * (f5g - J8r[n9X].Close) / (f5g - U5w);J8r[n9X]["Result " + X4J.name]=c3x;continue;}if(n9X == J8r.length - "1" * 1)break;if(!J8r[n9X + 1].futureTick){t$u="Donchian";t$u+=" Channel";if(X4J.type == t$u){g6E="Donchian";g6E+=" Median ";K92.N_M(1);J8r[K92.a$j(n9X,1)]["Donchian High " + X4J.name]=f5g;K92.N_M(1);J8r[K92.c0C(n9X,1)]["Donchian Low " + X4J.name]=U5w;K92.j7J(1);J8r[K92.c0C(n9X,1)][g6E + X4J.name]=K92.a$j(U5w,f5g,2,K92.N_M(2));}else {K92.N_M(1);J8r[K92.a$j(n9X,1)]["Result " + X4J.name]=c3x;}}}};M9Z.Studies.calculateVerticalHorizontalFilter=function(r3B,a$9){var x7L,a7Y,N2V,H8D;x7L=a$9.chart.scrubbed;if(x7L.length < a$9.days + 1){a$9.error=!!"1";return;}a$9.mhml=new M9Z.Studies.StudyDescriptor(a$9.name,a$9.type,a$9.panel);a$9.mhml.chart=a$9.chart;a$9.mhml.days=a$9.days;a$9.mhml.startFrom=a$9.startFrom;a$9.mhml.inputs={};a$9.mhml.outputs={_MHML:null};M9Z.Studies.calculateMaxHighMinLow(r3B,a$9.mhml);a7Y=0;N2V=[];for(var G_W=Math.max(1,a$9.startFrom - a$9.days);G_W < x7L.length;G_W++){H8D=Math.abs(x7L[G_W].Close - x7L[G_W - 1].Close);N2V.push(H8D);a7Y+=H8D;if(N2V.length == a$9.days){x7L[G_W]["Result " + a$9.name]=x7L[G_W]["_MHML " + a$9.name] / a7Y;a7Y-=N2V.shift();}}};M9Z.Studies.studyLibrary=M9Z.extend(M9Z.Studies.studyLibrary,{"Donchian Channel":{name:"Donchian Channel",overlay:!"",calculateFN:M9Z.Studies.calculateMaxHighMinLow,seriesFN:M9Z.Studies.displayChannel,inputs:{"High Period":"20" ^ 0,"Low Period":+"20","Channel Fill":!!({})},outputs:{"Donchian High":c$a,"Donchian Median":y2b,"Donchian Low":a$f}},"Donchian Width":{name:"Donchian Width",calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{"High Period":20,"Low Period":20}},GAPO:{name:"Gopalakrishnan Range Index",calculateFN:M9Z.Studies.calculateMaxHighMinLow},HHV:{name:s_U,calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{Period:+"14"}},LLV:{name:F$E,calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{Period:14}},"Williams %R":{name:F0h,calculateFN:M9Z.Studies.calculateMaxHighMinLow,inputs:{Period:14},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:-20,studyOverBoughtColor:"auto",studyOverSoldValue:-80,studyOverSoldColor:"auto"}}},"VT HZ Filter":{name:"Vertical Horizontal Filter",calculateFN:M9Z.Studies.calculateVerticalHorizontalFilter,inputs:{Period:28}},"High-Low":{name:"High Minus Low",calculateFN:function(N6p,N6E){var f$y;f$y=N6E.chart.scrubbed;for(var E8y=N6E.startFrom;E8y < f$y.length;E8y++){f$y[E8y]["Result " + N6E.name]=f$y[E8y].High - f$y[E8y].Low;}},inputs:{}}});}};W2=t2a=>{var j5B,w8F,a3t,t$4;j5B=typeof _CIQ !== "undefined"?_CIQ:t2a.CIQ;if(!j5B.Studies){console.error("ichimoku feature requires first activating studies feature.");}else {w8F="#";w8F+="808";w8F+="000";a3t="#FF";a3t+="0000";t$4="I";t$4+="chimoku Clouds";j5B.Studies.calculateIchimoku=function(j5S,n5d){var N1i=f3BGj;var V0H,h02,r7V,i0I,g9x,T76,m$T,X_d,w5r,I2y,Y6C,h0f,A9j;V0H="La";V0H+="gging Span Perio";V0H+="d";h02=n5d.chart.scrubbed;r7V={Base:Number(n5d.inputs["Base Line Period"]),Conv:Number(n5d.inputs["Conversion Line Period"]),LeadB:Number(n5d.inputs["Leading Span B Period"]),Lag:Number(n5d.inputs[V0H])};for(i0I=n5d.startFrom;i0I < h02.length;i0I++){T76="La";T76+="gging Span ";m$T="Conve";m$T+="rsion Line";m$T+=" ";if(!h02[i0I])continue;g9x=o_H(r7V.Conv,i0I);N1i.N_M(134);var R5P=N1i.a$j(7,4,8,4);N1i.N_M(122);var X7r=N1i.c0C(22,18,2,18);h02[i0I][m$T + n5d.name]=(g9x["1" - 0] + g9x["0" * R5P]) / X7r;g9x=o_H(r7V.Base,i0I);N1i.N_M(66);var V6k=N1i.c0C(18,12,6,35);N1i.j7J(44);var C1m=N1i.a$j(18,19,340,0);h02[i0I]["Base Line " + n5d.name]=(g9x[V6k] + g9x[0]) / C1m;if(i0I < r7V.Lag)continue;h02[i0I - r7V.Lag][T76 + n5d.name]=h02[i0I].Close;}X_d=[];for(i0I=Math.max(0,n5d.startFrom - r7V.Base);i0I < h02.length;i0I++){g9x=o_H(r7V.LeadB,i0I);N1i.j7J(27);var r$5=N1i.c0C(13,11);w5r=(h02[i0I]["Conversion Line " + n5d.name] + h02[i0I]["Base Line " + n5d.name]) / r$5;N1i.N_M(17);var i9I=N1i.a$j(127,10,11,18);I2y=(g9x[i9I] + g9x[0]) / +"2";if(h02[i0I + r7V.Base]){Y6C="Leadin";Y6C+="g";Y6C+=" Span";Y6C+=" A ";h02[i0I + r7V.Base][Y6C + n5d.name]=w5r;h02[i0I + r7V.Base]["Leading Span B " + n5d.name]=I2y;}else {h0f="Lead";h0f+="ing Span A ";A9j={};A9j[h0f + n5d.name]=w5r;A9j["Leading Span B " + n5d.name]=I2y;X_d.push(A9j);}}n5d.appendFutureTicks(j5S,X_d);function o_H(C_g,R2S){var S8O,Z5y;N1i.T$X();S8O=Number.MAX_VALUE;N1i.N_M(68);var c2w=N1i.c0C(4,5,0,15);Z5y=Number.MAX_VALUE * -("1" * c2w);for(var E0q=R2S - C_g + 1;E0q <= R2S;E0q++){if(E0q < 0)continue;S8O=Math.min(S8O,h02[E0q].Low);Z5y=Math.max(Z5y,h02[E0q].High);}return [S8O,Z5y];}};j5B.Studies.displayIchimoku=function(U9p,n0N,M69){var j82,g5T,g9y,R_L,s1B,A2u,M1E,z17;j82="L";j82+="eadi";j82+="ng Span A ";g5T=j82 + n0N.name;g9y="Leading Span B " + n0N.name;R_L=j5B.Studies.determineColor(n0N.outputs[n0N.outputMap[g5T]]);s1B=j5B.Studies.determineColor(n0N.outputs[n0N.outputMap[g9y]]);A2u=U9p.panels[n0N.panel];M1E=n0N.getYAxis(U9p);z17={topBand:g5T,bottomBand:g9y,topColor:R_L,bottomColor:s1B,skipTransform:A2u.name != n0N.chart.name,topAxis:M1E,bottomAxis:M1E,opacity:0.3};if(!n0N.highlight && U9p.highlightedDraggable){f3BGj.N_M(5);z17.opacity*=f3BGj.a$j(1,"0.3");}j5B.fillIntersecting(U9p,n0N.panel,z17);j5B.Studies.displaySeriesAsLine(U9p,n0N,M69);};j5B.Studies.studyLibrary=j5B.extend(j5B.Studies.studyLibrary,{"Ichimoku Clouds":{name:t$4,overlay:!!({}),calculateFN:j5B.Studies.calculateIchimoku,seriesFN:j5B.Studies.displayIchimoku,inputs:{"Conversion Line Period":9,"Base Line Period":26,"Leading Span B Period":52,"Lagging Span Period":+"26"},outputs:{"Conversion Line":"#0000FF","Base Line":"#FF0000","Leading Span A":"#00FF00","Leading Span B":a3t,"Lagging Span":w8F}}});}};K0=L0y=>{var q$d,p6D,l8b;q$d=typeof _CIQ !== "undefined"?_CIQ:L0y.CIQ;if(!q$d.Studies){console.error("intradayMomentum feature requires first activating studies feature.");}else {p6D="a";p6D+="u";p6D+="t";p6D+="o";l8b="a";l8b+="u";l8b+="to";q$d.Studies.calculateIntradayMomentum=function(I_8,D_5){var E9s=f3BGj;var R3q,z0X,T8e,s0H,y_x,q1j,Q3C;R3q=D_5.chart.scrubbed;z0X=D_5.days;if(R3q.length < z0X + 1){D_5.error=!![];return;}E9s.N_M(46);T8e=E9s.c0C("0",0);s0H=0;if(D_5.startFrom > 1){y_x="_totDn";y_x+=" ";E9s.N_M(34);var M5N=E9s.c0C(4,2,6);T8e=R3q[D_5.startFrom - M5N]["_totUp " + D_5.name];E9s.N_M(135);var S6B=E9s.a$j(2,1,20,21);s0H=R3q[D_5.startFrom - S6B][y_x + D_5.name];}for(var u4t=D_5.startFrom;u4t < R3q.length;u4t++){q1j=R3q[u4t].Close - R3q[u4t].Open;if(q1j > 0){T8e+=q1j;}else {s0H-=q1j;}if(u4t >= z0X){Q3C=R3q[u4t - z0X].Close - R3q[u4t - z0X].Open;if(Q3C > 0){T8e-=Q3C;}else {s0H+=Q3C;}}E9s.j7J(136);R3q[u4t]["Result " + D_5.name]=E9s.a$j(T8e,s0H,T8e,"100");R3q[u4t]["_totUp " + D_5.name]=T8e;R3q[u4t]["_totDn " + D_5.name]=s0H;}};q$d.Studies.studyLibrary=q$d.extend(q$d.Studies.studyLibrary,{"Intraday Mtm":{name:"Intraday Momentum Index",calculateFN:q$d.Studies.calculateIntradayMomentum,inputs:{Period:20},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:70,studyOverBoughtColor:l8b,studyOverSoldValue:30,studyOverSoldColor:p6D}}}});}};G_=B6D=>{f3BGj.f3X();var Z$$,h2d,K9M;Z$$=typeof _CIQ !== "undefined"?_CIQ:B6D.CIQ;if(!Z$$.Studies){console.error("keltner feature requires first activating studies feature.");}else {h2d="au";h2d+="t";h2d+="o";K9M="Ke";K9M+="ltner Cha";K9M+="nnel";Z$$.Studies.calculateKeltner=function(Z5B,S1v){var C$_,B4d,l0N;C$_="ATR";C$_+=" ";B4d="M";B4d+="A";l0N="Mo";f3BGj.f3X();l0N+="ving Average Type";Z$$.Studies.MA(S1v.inputs[l0N],S1v.days,"Close",0,B4d,Z5B,S1v);Z$$.Studies.calculateStudyATR(Z5B,S1v);Z$$.Studies.calculateGenericEnvelope(Z5B,S1v,S1v.inputs.Shift,"MA " + S1v.name,C$_ + S1v.name);};Z$$.Studies.studyLibrary=Z$$.extend(Z$$.Studies.studyLibrary,{Keltner:{name:K9M,overlay:!!({}),seriesFN:Z$$.Studies.displayChannel,calculateFN:Z$$.Studies.calculateKeltner,inputs:{Period:50,Shift:5,"Moving Average Type":"ema","Channel Fill":!![]},outputs:{"Keltner Top":h2d,"Keltner Median":"auto","Keltner Bottom":"auto"},attributes:{Shift:{min:0.1,step:0.1}}}});}};T8=m_l=>{var R3l,D$$;R3l=typeof _CIQ !== "undefined"?_CIQ:m_l.CIQ;if(!R3l.Studies){console.error("klinger feature requires first activating studies feature.");}else {D$$="#";D$$+="FF00";D$$+="0";D$$+="0";R3l.Studies.calculateKlinger=function(X3d,J2x){var d9S,Y89,m$M,K0Z,l0n,F$Y,B$Z,f4e,x8r,W1w,r9p,X1L,W_7,K8G,K7D,L1h,P5X,U5k,E0h;d9S="Sig";d9S+="nal Peri";d9S+="ods";Y89="expo";Y89+="nential";m$M="expon";m$M+="ential";K0Z="_EM";K0Z+="A";K0Z+="-S";l0n="_EMA";l0n+="-";l0n+="S ";F$Y="K";F$Y+="lingerSig";F$Y+="na";F$Y+="l ";B$Z="_";B$Z+="his";B$Z+="t";f4e=J2x.chart.scrubbed;x8r=Number(J2x.inputs["Short Cycle"]);W1w=Number(J2x.inputs["Long Cycle"]);if(f4e.length < Math.max(x8r,W1w) + 1){J2x.error=!!({});return;}f3BGj.T$X();r9p=J2x.name + B$Z;X1L="Klinger " + J2x.name;W_7=F$Y + J2x.name;K8G="_SV " + J2x.name;K7D=l0n + J2x.name;L1h="_EMA-L " + J2x.name;for(P5X=Math.max(1,J2x.startFrom);P5X < f4e.length;P5X++){U5k="hlc/";U5k+="3";E0h=f4e[P5X].Volume;if(f4e[P5X]["hlc/3"] < f4e[P5X - 1][U5k]){E0h*=-+"1";}if(E0h){f4e[P5X][K8G]=E0h;}}R3l.Studies.MA("exponential",x8r,K8G,+"0",K0Z,X3d,J2x);R3l.Studies.MA(m$M,W1w,K8G,0,"_EMA-L",X3d,J2x);for(P5X=Math.max(W1w,J2x.startFrom);P5X < f4e.length;P5X++){if(f4e[P5X].futureTick || f4e[P5X][K7D] === null || f4e[P5X][L1h] === null)break;f4e[P5X][X1L]=f4e[P5X][K7D] - f4e[P5X][L1h];}R3l.Studies.MA(Y89,Number(J2x.inputs[d9S]),X1L,0,"KlingerSignal",X3d,J2x);for(P5X=J2x.startFrom;P5X < f4e.length;P5X++){f4e[P5X][r9p]=f4e[P5X][X1L] - f4e[P5X][W_7];}J2x.outputMap[r9p]="";};R3l.Studies.studyLibrary=R3l.extend(R3l.Studies.studyLibrary,{Klinger:{name:"Klinger Volume Oscillator",seriesFN:R3l.Studies.displayHistogramWithSeries,calculateFN:R3l.Studies.calculateKlinger,inputs:{"Signal Periods":"13" - 0,"Short Cycle":34,"Long Cycle":55},outputs:{Klinger:"auto",KlingerSignal:D$$,"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};d8=e5D=>{var p6w,J1p,H$R,y06,A5a,M9y,p1o,D7w;p6w=typeof _CIQ !== "undefined"?_CIQ:e5D.CIQ;if(!p6w.Studies){console.error("linearRegression feature requires first activating studies feature.");}else {J1p="f";J1p+="ie";J1p+="l";J1p+="d";H$R="Linear";H$R+=" Reg ";H$R+="Forecast";y06="TimeSe";y06+="ries";A5a="ti";A5a+="me";A5a+=" s";A5a+="eries";M9y="t";M9y+="ime seri";M9y+="es";p1o="ts";p1o+="m";p1o+="a";D7w="time";D7w+=" series";p6w.Studies.prettify[D7w]=p1o;p6w.Studies.movingAverage.conversions.tsma=M9y;p6w.Studies.movingAverage.translations["time series"]="Time Series";p6w.Studies.movingAverage.typeMap.tsma="TimeSeries";p6w.Studies.movingAverage.typeMap[A5a]=y06;p6w.Studies.calculateMovingAverageTimeSeries=function(R3S,h4l){var Q2j=f3BGj;var i_V,H8o,k1e,L96,S07,I5d,G$j,d4Y,C0J,E0p,T9W;i_V="m";i_V+="a";h4l.ma=new p6w.Studies.StudyDescriptor(h4l.name,i_V,h4l.panel);h4l.ma.chart=h4l.chart;h4l.ma.days=h4l.days;h4l.ma.startFrom=h4l.startFrom;h4l.ma.inputs=h4l.inputs;p6w.Studies.calculateLinearRegressionIndicator(R3S,h4l.ma);H8o=h4l.name;for(var R_z in h4l.outputs){Q2j.N_M(82);H8o=Q2j.c0C(H8o,(1730,"6450" ^ 0) < 3310?8.20e+3:" ",R_z);}k1e=parseInt(h4l.inputs.Offset,10);if(isNaN(k1e)){k1e=0;}L96=h4l.chart.scrubbed;Q2j.f3X();S07=k1e;for(var b1I=h4l.startFrom - 1;b1I >= 0;b1I--){I5d=L96[b1I][H8o];if(!I5d && I5d !== +"0")continue;if(S07 > 0){S07--;continue;}break;}G$j=[];for(b1I++;b1I < L96.length;b1I++){d4Y=L96[b1I];if(b1I + k1e >= "0" << 64){C0J="Fo";C0J+="r";C0J+="ecast ";if(b1I + k1e < L96.length){Q2j.N_M(1);L96[Q2j.a$j(b1I,k1e)][H8o]=d4Y[C0J + h4l.name];}else {E0p="Fo";E0p+="re";E0p+="cas";E0p+="t ";T9W={};T9W[H8o]=d4Y[E0p + h4l.name];G$j.push(T9W);}}}h4l.appendFutureTicks(R3S,G$j);};p6w.Studies.calculateLinearRegressionIndicator=function(S7g,o1o){var e1h=f3BGj;var G4d,t8v,j7D,h26,k8s,b9r,u3q,d0c,b1C,D8C,T0M,j2Z,b4d,i3g,d0l,P2y;G4d="Cl";G4d+="ose";t8v=o1o.chart.scrubbed;if(t8v.length < o1o.days + 1){o1o.error=!!({});return;}e1h.T$X();j7D=o1o.inputs.Field;if(!j7D || j7D == "field"){j7D=G4d;}e1h.j7J(14);var G6t=e1h.c0C(4,3);e1h.j7J(3);var S9K=e1h.a$j(0,2,0);h26=o1o.days * (o1o.days + G6t) / S9K;k8s=Math.pow(h26,2);e1h.N_M(15);var W6J=e1h.a$j(0,10,9);e1h.N_M(137);var X7G=e1h.c0C(9,13,9,10);b9r=h26 * (+"2" * o1o.days + W6J) / X7G;u3q=0;d0c=0;b1C=+"0";if(o1o.startFrom){D8C="_";D8C+="s";D8C+="ums";D8C+=" ";e1h.N_M(14);var Z9D=e1h.a$j(1,0);T0M=t8v[o1o.startFrom - Z9D][D8C + o1o.name];if(T0M){d0c=T0M[0];u3q=T0M[1];b1C=T0M[2];}}for(var K3j=o1o.startFrom;K3j < t8v.length;K3j++){j2Z=t8v[K3j][j7D];if(j2Z && typeof j2Z == "object"){j2Z=j2Z[o1o.subField];}if(!j2Z && j2Z !== ("0" ^ 0))continue;d0c+=o1o.days * j2Z - u3q;u3q+=j2Z;b1C+=Math.pow(j2Z,2);if(K3j < o1o.days - 1)continue;else if(K3j > o1o.days - 1){b4d=t8v[K3j - o1o.days][j7D];if(b4d && typeof b4d == "object"){b4d=b4d[o1o.subField];}if(!b4d && b4d !== 0)continue;u3q-=b4d;b1C-=Math.pow(b4d,2);}i3g=(o1o.days * d0c - h26 * u3q) / (o1o.days * b9r - k8s);t8v[K3j]["Slope " + o1o.name]=i3g;d0l=(u3q - i3g * h26) / o1o.days;t8v[K3j]["Intercept " + o1o.name]=d0l;t8v[K3j]["Forecast " + o1o.name]=d0l + i3g * o1o.days;e1h.N_M(122);var N_d=e1h.a$j(0,2,1,4);P2y=(o1o.days * b9r - k8s) / (o1o.days * b1C - Math.pow(u3q,N_d));e1h.N_M(138);t8v[K3j]["RSquared " + o1o.name]=e1h.c0C(i3g,P2y,i3g);t8v[K3j]["_sums " + o1o.name]=[d0c,u3q,b1C];}};p6w.Studies.studyLibrary=p6w.extend(p6w.Studies.studyLibrary,{"Lin Fcst":{name:H$R,overlay:!"",calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Forecast:"auto"}},"Lin Incpt":{name:"Linear Reg Intercept",overlay:!0,calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:J1p},outputs:{Intercept:"auto"}},"Lin R2":{name:"Linear Reg R2",calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{RSquared:"auto"}},"LR Slope":{name:"Linear Reg Slope",calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:14,Field:"field"},outputs:{Slope:"auto"}},"Time Fcst":{name:"Time Series Forecast",overlay:!![],calculateFN:p6w.Studies.calculateLinearRegressionIndicator,inputs:{Period:+"14",Field:"field"},outputs:{Forecast:"auto"}}});}};T6=X2q=>{var I5V,n26,Z3I;I5V="undefin";I5V+="e";I5V+="d";n26=typeof _CIQ !== I5V?_CIQ:X2q.CIQ;if(!n26.Studies){console.error("macd feature requires first activating studies feature.");}else {Z3I="#FF0";Z3I+="000";n26.Studies.calculateMACD=function(G0U,s6p){var Y4t=f3BGj;var r0C,o0o,S5G,R3e,J9T,u3o,P4U,F3w,J63,h0N,G0Z,G8j,h_B,r5e,D9j,h$f;r0C="_h";r0C+="i";r0C+="s";r0C+="t";o0o="exponent";o0o+="i";o0o+="a";o0o+="l";S5G="Signal Pe";S5G+="riod";R3e="Sl";R3e+="ow MA Period";J9T="Fast M";J9T+="A Perio";J9T+="d";u3o=s6p.chart.scrubbed;P4U=s6p.inputs;F3w=s6p.name;if(!s6p.macd1Days){s6p.macd1Days=parseFloat(P4U[J9T]);}if(!s6p.macd2Days){s6p.macd2Days=parseFloat(P4U[R3e]);}if(!s6p.signalDays){s6p.signalDays=parseFloat(P4U[S5G]);}if(!s6p.days){s6p.days=Math.max(s6p.macd1Days,s6p.macd2Days,s6p.signalDays);}if(u3o.length < s6p.days + 1){s6p.error=!0;return;}J63=s6p.inputs.Field;if(!J63 || J63 == "field"){J63="Close";}h0N=P4U["Moving Average Type"];if(!h0N){h0N=o0o;}n26.Studies.MA(h0N,s6p.macd1Days,J63,0,"_MACD1",G0U,s6p);n26.Studies.MA(h0N,s6p.macd2Days,J63,"0" - 0,"_MACD2",G0U,s6p);h_B=Math.max(s6p.startFrom,s6p.days - 1);for(G0Z=h_B;G0Z < u3o.length;G0Z++){G8j=u3o[G0Z];if((G8j["_MACD1 " + F3w] || G8j["_MACD1 " + F3w] === 0) && (G8j["_MACD2 " + F3w] || G8j["_MACD2 " + F3w] === 0)){Y4t.N_M(1);G8j[Y4t.c0C("MACD ",F3w)]=G8j["_MACD1 " + F3w] - G8j["_MACD2 " + F3w];}}r5e=P4U["Signal MA Type"];if(!r5e){r5e="exponential";}n26.Studies.MA(r5e,s6p.signalDays,"MACD " + F3w,0,"Signal",G0U,s6p);Y4t.N_M(1);D9j=Y4t.c0C(F3w,r0C);for(G0Z=h_B;G0Z < u3o.length;G0Z++){G8j=u3o[G0Z];Y4t.j7J(1);h$f=G8j[Y4t.c0C("Signal ",F3w)];if(!h$f && h$f !== 0)continue;G8j[D9j]=G8j["MACD " + F3w] - G8j["Signal " + F3w];}s6p.outputMap[D9j]="";};n26.Studies.studyLibrary=n26.extend(n26.Studies.studyLibrary,{macd:{name:"MACD",calculateFN:n26.Studies.calculateMACD,seriesFN:n26.Studies.displayHistogramWithSeries,inputs:{"Fast MA Period":12,"Slow MA Period":26,"Signal Period":+"9"},outputs:{MACD:"auto",Signal:Z3I,"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};k1=v$V=>{var X30=f3BGj;var q18,z4T,v2X,R$R;X30.T$X();q18=typeof _CIQ !== "undefined"?_CIQ:v$V.CIQ;if(!q18.Studies){console.error("massIndex feature requires first activating studies feature.");}else {q18.Studies.calculateMassIndex=function(i3d,b2b){var c0N,M6P,t_b,q$n,h4T,Z17,a4i,k59;c0N="_";c0N+="EM";c0N+="A ";M6P=1078781190;t_b=1904025788;q$n=2;for(var B2E=1;X30.S9Y(B2E.toString(),B2E.toString().length,83617) !== M6P;B2E++){h4T=b2b.chart.scrubbed;q$n+=2;}if(X30.O1W(q$n.toString(),q$n.toString().length,25167) !== t_b){h4T=b2b.chart.scrubbed;}if(h4T.length < Math.max(9,b2b.days + 1)){b2b.error=!"";return;}for(var A1$=b2b.startFrom;A1$ < h4T.length;A1$++){h4T[A1$]["_High-Low " + b2b.name]=h4T[A1$].High - h4T[A1$].Low;}q18.Studies.MA("exponential",9,"_High-Low " + b2b.name,0,"_EMA",i3d,b2b);q18.Studies.MA("exponential",9,c0N + b2b.name,0,"_EMA2",i3d,b2b);Z17=0;if(h4T[b2b.startFrom - 1] && h4T[b2b.startFrom - +"1"]["_total " + b2b.name]){X30.j7J(14);var e6Q=X30.a$j(16,15);Z17=h4T[b2b.startFrom - e6Q]["_total " + b2b.name];}for(var N_Q=Math.max(+"17",b2b.startFrom);N_Q < h4T.length;N_Q++){a4i="_to";a4i+="ta";a4i+="l";a4i+=" ";k59="_";k59+="EMA2 ";Z17+=h4T[N_Q]["_EMA " + b2b.name] / h4T[N_Q][k59 + b2b.name];if(N_Q >= ("17" ^ 0) + b2b.days - 1){h4T[N_Q]["Result " + b2b.name]=Z17;X30.N_M(63);var S8j=X30.a$j(4,12,17);X30.j7J(52);var e6$=X30.a$j(6,8,1);Z17-=h4T[N_Q - b2b.days + S8j]["_EMA " + b2b.name] / h4T[N_Q - b2b.days + e6$]["_EMA2 " + b2b.name];}h4T[N_Q][a4i + b2b.name]=Z17;}};q18.Studies.displayMassIndex=function(G4R,X9q,d8e){var D3j,E0d,U8j,q9C,D3w,J8z;D3j="Bu";D3j+="lge Thr";D3j+="esh";D3j+="old";q18.Studies.displaySeriesAsLine(G4R,X9q,d8e);E0d=X9q.inputs[D3j];U8j=G4R.panels[X9q.panel];q9C=X9q.getYAxis(G4R);D3w=q18.Studies.determineColor(X9q.outputs.Result);J8z={skipTransform:G4R.panels[X9q.panel].name != X9q.chart.name,panelName:X9q.panel,band:"Result " + X9q.name,threshold:E0d,direction:1,color:D3w,yAxis:q9C,opacity:0.3};if(!X9q.highlight && G4R.highlightedDraggable){J8z.opacity*=0.3;}q18.preparePeakValleyFill(G4R,J8z);q18.Studies.drawHorizontal(G4R,X9q,null,E0d,q9C,D3w);};z4T=724537233;v2X=2069551907;R$R=2;for(var e5X=1;X30.S9Y(e5X.toString(),e5X.toString().length,73548) !== z4T;e5X++){q18.Studies.studyLibrary=q18.extend(q18.Studies.studyLibrary,{"Mass Idx":{name:"Mass Index",seriesFN:q18.Studies.displayMassIndex,calculateFN:q18.Studies.calculateMassIndex,inputs:{Period:14,"Bulge Threshold":63},attributes:{"Bulge Threshold":{min:+"57",max:14,step:780}}}});R$R+=2;}if(X30.S9Y(R$R.toString(),R$R.toString().length,+"45439") !== v2X){q18.Studies.studyLibrary=q18.extend(q18.Studies.studyLibrary,{"Mass Idx":{name:"Mass Index",seriesFN:q18.Studies.displayMassIndex,calculateFN:q18.Studies.calculateMassIndex,inputs:{Period:25,"Bulge Threshold":+"27"},attributes:{"Bulge Threshold":{min:20,max:35,step:0.1}}}});}}};e4=O7z=>{var i7t=f3BGj;i7t.T$X();var N3_,V5x;N3_=typeof _CIQ !== "undefined"?_CIQ:O7z.CIQ;if(!N3_.Studies){console.error("moneyFlow feature requires first activating studies feature.");}else {V5x="Money F";V5x+="low Ind";V5x+="e";V5x+="x";N3_.Studies.calculateMoneyFlowIndex=function(t9T,v7y){var p8N,d5m,O25,z1b,E92,v5L,a5S,M4c,u9x,P5O,e6F,N9v,d2n;p8N="_";p8N+="r";p8N+="awM";p8N+="F ";d5m=v7y.chart.scrubbed;if(d5m.length < v7y.days + 1){v7y.error=!!1;return;}O25=0;z1b=0;i7t.j7J(14);var g9E=i7t.a$j(1,0);E92=d5m[v7y.startFrom - g9E];v5L=p8N + v7y.name;a5S="_cumMF " + v7y.name;M4c="Result " + v7y.name;if(E92 && E92[a5S]){O25=E92[a5S][0];z1b=E92[a5S][1];}for(var J4A=v7y.startFrom;J4A < d5m.length;J4A++){u9x=d5m[J4A]["hlc/3"];if(J4A > 0 && !d5m[J4A].futureTick){P5O="hlc";P5O+="/3";i7t.N_M(14);e6F=d5m[i7t.a$j(J4A,1)][P5O];N9v=u9x * d5m[J4A].Volume;if(u9x > e6F){O25+=N9v;}else if(u9x < e6F){N9v*=-1;z1b-=N9v;}else {N9v=0;}if(J4A > v7y.days){d2n=d5m[J4A - v7y.days][v5L];if(d2n > 0){O25-=d2n;}else {z1b+=d2n;}if(z1b === 0){d5m[J4A][M4c]=100;}else if(d5m[J4A].Volume){i7t.j7J(139);d5m[J4A][M4c]=i7t.a$j(0,"100",O25,100,z1b,"1");}}d5m[J4A][v5L]=N9v;d5m[J4A][a5S]=[O25,z1b];}}};N3_.Studies.studyLibrary=N3_.extend(N3_.Studies.studyLibrary,{"M Flow":{name:V5x,range:"0 to 100",calculateFN:N3_.Studies.calculateMoneyFlowIndex,inputs:{Period:"14" << 0},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:80,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}}}});}};A1=s2O=>{var S8i,q5H,H36,i7d,i7U,o6F,D1J,b4u,H8y,w7K,I$t;S8i="undefi";S8i+="ned";q5H=typeof _CIQ !== S8i?_CIQ:s2O.CIQ;if(!q5H.Studies){console.error("movingAverages feature requires first activating studies feature.");}else {H36="aut";H36+="o";i7d="Pe";i7d+="rcent";i7U="a";i7U+="ut";i7U+="o";o6F="p";o6F+="oints";D1J="TripleExponentia";D1J+="l";b4u="DoubleExpone";b4u+="ntial";H8y="2-e";H8y+="x";H8y+="pon";H8y+="ential";w7K="t";w7K+="ema";I$t="de";I$t+="m";I$t+="a";q5H.Studies.prettify=q5H.extend({"2-exponential":I$t,"3-exponential":w7K,hull:"hma"},q5H.Studies.prettify);q5H.extend(q5H.Studies.movingAverage,{conversions:{hma:"hull",dema:H8y,tema:"3-exponential"},translations:{hull:"Hull","2-exponential":"Double Exponential","3-exponential":"Triple Exponential"},typeMap:{hma:"Hull",hull:"Hull",dema:"DoubleExponential","2-exponential":b4u,tema:"TripleExponential","3-exponential":D1J}});q5H.Studies.calculateMovingAverageHull=function(e_s,J_J){var L$B=f3BGj;var e0_,j7y,O3e,a3I,J0k,Q1K,j1D,V4P,Y7L,B$0,M0_,q7X,m$h;e0_="_W";e0_+="MA2";j7y="w";j7y+="m";j7y+="a";O3e="_W";O3e+="M";O3e+="A";O3e+="1";a3I=J_J.chart.scrubbed;L$B.T$X();J0k=J_J.inputs.Field;if(!J0k || J0k == "field"){J0k="Close";}q5H.Studies.MA("wma",J_J.days,J0k,0,O3e,e_s,J_J);q5H.Studies.MA(j7y,Math.ceil(J_J.days / 2),J0k,0,e0_,e_s,J_J);for(Q1K=J_J.startFrom - 1;Q1K >= 0;Q1K--){j1D=a3I[Q1K][J0k];if(j1D && typeof j1D == "object"){j1D=j1D[J_J.subField];}if(j1D || j1D === 0)break;}for(Q1K++;Q1K < a3I.length;Q1K++){V4P="_WM";V4P+="A1";V4P+=" ";Y7L="_MMA";Y7L+=" ";B$0=a3I[Q1K];L$B.j7J(86);var i6u=L$B.a$j(18,19,3,12,4);B$0[Y7L + J_J.name]=i6u * B$0["_WMA2 " + J_J.name] - B$0[V4P + J_J.name];}M0_=parseInt(J_J.inputs.Offset,"10" - 0);if(isNaN(M0_)){L$B.j7J(46);M0_=L$B.a$j("0",0);}q7X=Math.floor(Math.sqrt(J_J.days));q5H.Studies.MA("wma",q7X,"_MMA " + J_J.name,M0_,"_HMA",e_s,J_J);m$h=J_J.name;for(var I3b in J_J.outputs){L$B.N_M(82);m$h=L$B.a$j(m$h,"957.13" - 0 >= (2249,4526)?(8.32e+3,282.25):227.21 != (606.9,8050)?(628.48,4480) === 3060?(841.87,"2.81e+3" << 64):" ":(+"0x26df",0x1b6e),I3b);}for(Q1K=Math.max(J_J.days + q7X - 1,J_J.startFrom);Q1K < a3I.length;Q1K++){a3I[Q1K][m$h]=a3I[Q1K]["_HMA " + J_J.name];}};q5H.Studies.calculateMovingAverageDoubleExponential=function(u63,V8Z){var R2e=f3BGj;var S6j,R3o,d_M,k9z,Q5s,X9m,h6f,a2T,y3S,M$y,P8W,c$u,O1u,C$a;S6j="_EM";S6j+="A";S6j+="1 ";R3o="e";R3o+="m";R3o+="a";d_M="f";d_M+="ie";d_M+="ld";k9z=V8Z.chart.scrubbed;Q5s=V8Z.inputs.Field;if(!Q5s || Q5s == d_M){Q5s="Close";}q5H.Studies.MA("ema",V8Z.days,Q5s,0,"_EMA1",u63,V8Z);q5H.Studies.MA(R3o,V8Z.days,S6j + V8Z.name,0,"_EMA2",u63,V8Z);X9m=parseInt(V8Z.inputs.Offset,10);if(isNaN(X9m)){X9m=0;}y3S=X9m;for(h6f=V8Z.startFrom - 1;h6f >= 0;h6f--){a2T=k9z[h6f][Q5s];if(a2T && typeof a2T == "object"){a2T=a2T[V8Z.subField];}if(!a2T && a2T !== 0)continue;if(y3S > 0){y3S--;continue;}break;}M$y=V8Z.name;for(var p7S in V8Z.outputs){R2e.N_M(82);M$y=R2e.c0C(M$y," ",p7S);}P8W=[];for(h6f++;h6f < k9z.length;h6f++){if(h6f < 2 * (V8Z.days - 1))continue;c$u=k9z[h6f];R2e.j7J(9);var M8l=R2e.c0C(49,3,17);O1u=M8l * c$u["_EMA1 " + V8Z.name] - c$u["_EMA2 " + V8Z.name];if(h6f + X9m >= 0){if(h6f + X9m < k9z.length){R2e.N_M(1);k9z[R2e.a$j(h6f,X9m)][M$y]=O1u;}else {C$a={};C$a[M$y]=O1u;P8W.push(C$a);}}}V8Z.appendFutureTicks(u63,P8W);};q5H.Studies.calculateMovingAverageTripleExponential=function(v0r,Y9i){var Y7y=f3BGj;var L3x,b7A,a6R,I2R,U5Z,F0a,E_4,Y8n,A6X,l_B,C1c,K23,O8b,g6b,Y0$,V3W,C$X;L3x="_E";L3x+="MA";L3x+="1 ";b7A="em";b7A+="a";a6R="_";a6R+="E";a6R+="MA";a6R+="1";I2R="e";I2R+="m";I2R+="a";U5Z=Y9i.chart.scrubbed;F0a=Y9i.inputs.Field;if(!F0a || F0a == "field"){F0a="Close";}q5H.Studies.MA(I2R,Y9i.days,F0a,0,a6R,v0r,Y9i);q5H.Studies.MA(b7A,Y9i.days,L3x + Y9i.name,"0" | 0,"_EMA2",v0r,Y9i);q5H.Studies.MA("ema",Y9i.days,"_EMA2 " + Y9i.name,0,"_EMA3",v0r,Y9i);E_4=parseInt(Y9i.inputs.Offset,10);if(isNaN(E_4)){E_4=0;}l_B=E_4;for(Y8n=Y9i.startFrom - 1;Y8n >= 0;Y8n--){A6X=U5Z[Y8n][F0a];if(A6X && typeof A6X == "object"){A6X=A6X[Y9i.subField];}if(!A6X && A6X !== 0)continue;if(l_B > 0){l_B--;continue;}break;}C1c=Y9i.name;for(var d0L in Y9i.outputs){Y7y.N_M(82);C1c=Y7y.a$j(C1c,9299 === 622.05?543.67 >= (+"7250",4160)?"B":(!({}),"l"):" ",d0L);}K23=[];for(Y8n++;Y8n < U5Z.length;Y8n++){O8b="_EM";O8b+="A3 ";g6b="_";g6b+="EM";g6b+="A";g6b+="2 ";if(Y8n < 3 * (Y9i.days - 1))continue;Y0$=U5Z[Y8n];Y7y.j7J(124);var F1t=Y7y.c0C(15,16,42,10,2);Y7y.j7J(9);var P_j=Y7y.c0C(237,20,12);V3W=F1t * Y0$["_EMA1 " + Y9i.name] - P_j * Y0$[g6b + Y9i.name] + Y0$[O8b + Y9i.name];if(Y8n + E_4 >= 0){if(Y8n + E_4 < U5Z.length){Y7y.N_M(1);U5Z[Y7y.a$j(Y8n,E_4)][C1c]=V3W;}else {C$X={};C$X[C1c]=V3W;K23.push(C$X);}}}Y9i.appendFutureTicks(v0r,K23);};q5H.Studies.calculateMAEnvelope=function(c_1,B$X){var U3W,i07,k2K,F_F,M6N;U3W="Shi";U3W+="ft Type";i07=B$X.inputs.Field;f3BGj.f3X();if(!i07 || i07 == "field"){i07="Close";}q5H.Studies.MA(B$X.inputs["Moving Average Type"],B$X.days,i07,0,"MA",c_1,B$X);k2K=B$X.inputs[U3W];F_F=B$X.inputs.Shift;if(!k2K){k2K="percent";F_F=B$X.inputs["Shift Percentage"];}if(k2K == "percent"){f3BGj.N_M(7);q5H.Studies.calculateGenericEnvelope(c_1,B$X,f3BGj.a$j(F_F,100),"MA " + B$X.name);}else if(k2K == "points"){M6N="M";M6N+="A";M6N+=" ";q5H.Studies.calculateGenericEnvelope(c_1,B$X,null,M6N + B$X.name,null,Number(F_F));}};q5H.Studies.calculateMADev=function(C53,B3w){var R7H=f3BGj;var o9D,j_8,f9V,a_D,P3E,y5R,R0a,T3J,h09,n$X,N7W;o9D="_";o9D+="M";o9D+="A";j_8="Po";j_8+="i";j_8+="nt";j_8+="s";R7H.f3X();f9V="C";f9V+="lose";a_D=B3w.chart.scrubbed;if(a_D.length < B3w.days + 1){B3w.error=!0;return;}P3E=B3w.inputs.Field;if(!P3E || P3E == "field"){P3E=f9V;}y5R=B3w.inputs["Points Or Percent"];if(!y5R){y5R=j_8;}R0a=B3w.inputs["Moving Average Type"];if(!R0a){R0a="exponential";}q5H.Studies.MA(R0a,B3w.days,P3E,+"0",o9D,C53,B3w);T3J=B3w.name + "_hist";for(var O7x=Math.max(B3w.startFrom,B3w.days - 1);O7x < a_D.length;O7x++){h09=a_D[O7x];n$X=h09[P3E];if(n$X && typeof n$X == "object"){n$X=n$X[B3w.subField];}N7W=h09["_MA " + B3w.name];if(N7W || N7W === 0){if(y5R == "Points"){R7H.j7J(14);h09[T3J]=R7H.a$j(n$X,N7W);}else {R7H.N_M(140);h09[T3J]=R7H.c0C(100,1,n$X,N7W);}}}B3w.outputMap={};B3w.outputMap[B3w.name + "_hist"]="";};q5H.Studies.studyLibrary=q5H.extend(q5H.Studies.studyLibrary,{"MA Env":{name:"Moving Average Envelope",overlay:!!"1",seriesFN:q5H.Studies.displayChannel,calculateFN:q5H.Studies.calculateMAEnvelope,inputs:{Period:50,Field:"field","Shift Type":["percent",o6F],Shift:5,"Moving Average Type":"ma","Channel Fill":!!({})},outputs:{"MA Env Top":i7U,"MA Env Median":"auto","MA Env Bottom":"auto"},attributes:{Shift:{min:0.1,step:0.1}}},"MA Dev":{name:"Moving Average Deviation",calculateFN:q5H.Studies.calculateMADev,seriesFN:q5H.Studies.displayHistogramWithSeries,inputs:{Period:12,Field:"field","Moving Average Type":"ma","Points Or Percent":["Points",i7d]},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}},"High Low":{name:"High Low Bands",overlay:!"",seriesFN:q5H.Studies.displayChannel,calculateFN:function(Q4X,B0l){f3BGj.T$X();var M3g;M3g="t";M3g+="r";M3g+="iangular";B0l.inputs["Moving Average Type"]=M3g;q5H.Studies.calculateMAEnvelope(Q4X,B0l);},inputs:{Period:10,Field:"field","Shift Percentage":"5" * 1,"Channel Fill":!0},outputs:{"High Low Top":"auto","High Low Median":H36,"High Low Bottom":"auto"},attributes:{"Shift Percentage":{min:0.1,step:0.1}}}});}};d_=y1V=>{var T89=f3BGj;var i2N,U7B;i2N=typeof _CIQ !== "undefined"?_CIQ:y1V.CIQ;T89.T$X();if(!i2N.Studies){U7B="parabolicSAR feature requires first activa";U7B+="ting studies feature.";console.error(U7B);}else {i2N.Studies.calculatePSAR=function(J6C,r5x){var J5P,p96,B4M,J48,K2Q,S8U,I0n,X0D,e2H,p8W,u6a,U3M,V9m;J5P=r5x.chart.scrubbed;p96=0;B4M=null;J48=!!"";function F8j(){p96=0;B4M=null;J48=!J48;}K2Q=0;S8U=parseFloat(r5x.inputs["Minimum AF"]);I0n=parseFloat(r5x.inputs["Maximum AF"]);T89.f3X();if(r5x.startFrom > 0){X0D="_";X0D+="st";X0D+="ate";X0D+=" ";e2H="Re";e2H+="su";e2H+="lt";e2H+=" ";T89.j7J(141);var y2A=T89.c0C(19,6,26);K2Q=J5P[r5x.startFrom - y2A][e2H + r5x.name];p8W=J5P[r5x.startFrom - +"1"][X0D + r5x.name];if(p8W && p8W.length == 3){p96=p8W[0];B4M=p8W[1];T89.N_M(46);J48=p8W[T89.c0C("2",0)];}}for(var O6U=r5x.startFrom - 1;O6U < J5P.length - +"1";O6U++){if(O6U < 0)continue;if(J5P[O6U].futureTick)break;u6a=K2Q;if(J48){if(!B4M || B4M < J5P[O6U].High){B4M=J5P[O6U].High;T89.j7J(1);p96=Math.min(T89.c0C(p96,S8U),I0n);}T89.j7J(142);K2Q=T89.c0C(u6a,p96,u6a,B4M);U3M=Math.min(J5P[Math.max(1,O6U) - +"1"].Low,J5P[O6U].Low);if(K2Q > J5P[O6U + 1].Low){K2Q=B4M;F8j();}else if(K2Q > U3M){K2Q=U3M;}}else {if(!B4M || B4M > J5P[O6U].Low){B4M=J5P[O6U].Low;T89.N_M(1);p96=Math.min(T89.a$j(p96,S8U),I0n);}T89.j7J(142);K2Q=T89.c0C(u6a,p96,u6a,B4M);V9m=Math.max(J5P[Math.max(1,O6U) - 1].High,J5P[O6U].High);if(K2Q < J5P[O6U + 1].High){K2Q=B4M;F8j();}else if(K2Q < V9m){K2Q=V9m;}}T89.N_M(1);J5P[T89.a$j(O6U,1)]["_state " + r5x.name]=[p96,B4M,J48];if(!isNaN(J5P[O6U].High) || !isNaN(J5P[O6U].Low)){T89.j7J(1);J5P[T89.a$j(O6U,1)]["Result " + r5x.name]=K2Q;}}};i2N.Studies.studyLibrary=i2N.extend(i2N.Studies.studyLibrary,{PSAR:{name:"Parabolic SAR",overlay:!!"1",calculateFN:i2N.Studies.calculatePSAR,seriesFN:i2N.Studies.displayPSAR2,inputs:{"Minimum AF":0.02,"Maximum AF":0.2}}});}};O9=W7c=>{var u$x,P9g,f2Q,k5H,z4w;u$x="und";u$x+="ef";u$x+="in";u$x+="ed";P9g=typeof _CIQ !== u$x?_CIQ:W7c.CIQ;if(!P9g.Studies){f2Q="pivotPoints feature re";f2Q+="quires first activating studies feature.";console.error(f2Q);}else {k5H="#b";k5H+="3d987";z4w="#b8";z4w+="2";z4w+="c0";z4w+="b";P9g.Studies.calculatePivotPoints=function(n3D,Q9Y){var V3B=f3BGj;var j4Y,E9D,r2L,c4T,a4h,T50,p67,x_D,N7b,N3x,p_H,x0A,m8H,U4n,B7_,D04,A_3,h4j,r9U,i8n;V3B.T$X();j4Y="market.beginnin";j4Y+="gDayOfWeek";E9D="mi";E9D+="lliseco";E9D+="nd";r2L=Q9Y.chart.scrubbed;c4T="day";a4h=n3D.layout.interval;T50=n3D.layout.timeUnit;if(a4h == "day"){c4T="month";}else if(P9g.ChartEngine.isDailyInterval(a4h)){c4T="year";}else if(a4h == "second" || a4h == "millisecond" || T50 == "second" || T50 == E9D){c4T="15min";}else {p67="minu";p67+="te";x_D=n3D.layout.periodicity;if(a4h != p67){x_D*=a4h;}if(x_D >= 30){c4T="week";}}N7b=null;V3B.j7J(82);var K_Q=V3B.a$j(2,4,1);N3x=K_Q - P9g.getFromNS(n3D.chart,j4Y,0);p_H={pivotPoint:NaN,high:0,low:0,prevHigh:0,prevLow:0,hlSpread:0};if(Q9Y.startFrom > 1 && r2L[Q9Y.startFrom - 1]["_pointers " + Q9Y.name]){p_H=P9g.clone(r2L[Q9Y.startFrom - +"1"]["_pointers " + Q9Y.name]);}for(var f5R=Math.max(1,Q9Y.startFrom);f5R < r2L.length;f5R++){x0A="fibo";x0A+="n";x0A+="ac";x0A+="ci";m8H="d";m8H+="a";m8H+="y";if(!r2L[f5R - 1])continue;p_H.high=Math.max(p_H.high,r2L[f5R - 1].High);p_H.low=Math.min(p_H.low > 0?p_H.low:r2L[f5R - 1].Low,r2L[f5R - 1].Low);if(Q9Y.inputs.Continuous){T4t();}else if(c4T == "year" && r2L[f5R].DT.getYear() != r2L[f5R - 1].DT.getYear()){T4t();}else if(c4T == "month" && r2L[f5R].DT.getMonth() != r2L[f5R - 1].DT.getMonth()){T4t();}else if(c4T == "week" && (r2L[f5R].DT.getDay() + N3x) % 7 < (r2L[f5R - 1].DT.getDay() + N3x) % 7){T4t();}else if(c4T == m8H){if(N7b === null){N7b=P9g.Studies.getMarketOffset({stx:n3D,localQuoteDate:r2L[f5R].DT,shiftToDateBoundary:!!({})});}U4n=new Date(new Date(+r2L[f5R].DT).setMilliseconds(r2L[f5R].DT.getMilliseconds() + N7b));B7_=new Date(new Date(+r2L[f5R - 1].DT).setMilliseconds(r2L[f5R - 1].DT.getMilliseconds() + N7b));if(B7_.getDate() !== U4n.getDate() && B7_.getDay() !== 0 && n3D.chart.market.isMarketDate(U4n)){N7b=null;T4t();}}else if(c4T == "15min" && (r2L[f5R].DT.getHours() != r2L[f5R - 1].DT.getHours() || Math.floor(r2L[f5R].DT.getMinutes() / 15) != Math.floor(r2L[f5R - 1].DT.getMinutes() / 15))){T4t();}r2L[f5R]["Pivot " + Q9Y.name]=p_H.pivotPoint;if(Q9Y.inputs.Type.toLowerCase() == x0A){D04="S";D04+="u";D04+="pport 3 ";A_3="Sup";A_3+="port ";A_3+="2 ";h4j="Res";h4j+="ista";h4j+="nce ";h4j+="2 ";r9U="Resi";r9U+="stanc";r9U+="e ";r9U+="1 ";r2L[f5R][r9U + Q9Y.name]=p_H.pivotPoint + +"0.382" * p_H.hlSpread;r2L[f5R][h4j + Q9Y.name]=p_H.pivotPoint + 0.618 * p_H.hlSpread;r2L[f5R]["Resistance 3 " + Q9Y.name]=p_H.pivotPoint + p_H.hlSpread;r2L[f5R]["Support 1 " + Q9Y.name]=p_H.pivotPoint - 0.382 * p_H.hlSpread;r2L[f5R][A_3 + Q9Y.name]=p_H.pivotPoint - 0.618 * p_H.hlSpread;r2L[f5R][D04 + Q9Y.name]=p_H.pivotPoint - p_H.hlSpread;}else {i8n="Resis";i8n+="tance ";i8n+="2 ";V3B.N_M(14);var H7E=V3B.a$j(18,16);r2L[f5R]["Resistance 1 " + Q9Y.name]=H7E * p_H.pivotPoint - p_H.prevLow;r2L[f5R][i8n + Q9Y.name]=p_H.pivotPoint + p_H.hlSpread;V3B.N_M(3);var M_8=V3B.a$j(9,5,6);r2L[f5R]["Resistance 3 " + Q9Y.name]=p_H.prevHigh + M_8 * (p_H.pivotPoint - p_H.prevLow);V3B.j7J(102);var I2k=V3B.a$j(15,3,4,12);r2L[f5R]["Support 1 " + Q9Y.name]=I2k * p_H.pivotPoint - p_H.prevHigh;r2L[f5R]["Support 2 " + Q9Y.name]=p_H.pivotPoint - p_H.hlSpread;r2L[f5R]["Support 3 " + Q9Y.name]=p_H.prevLow - ("2" | 0) * (p_H.prevHigh - p_H.pivotPoint);}r2L[f5R]["_pointers " + Q9Y.name]=P9g.clone(p_H);}function T4t(){V3B.j7J(71);var p$B=V3B.c0C(18,145,8,1,2);p_H.pivotPoint=(p_H.high + p_H.low + r2L[f5R - p$B].Close) / ("3" >> 0);p_H.prevHigh=p_H.high;p_H.prevLow=p_H.low;p_H.hlSpread=p_H.high - p_H.low;V3B.f3X();p_H.high=p_H.low=0;}};P9g.Studies.displayPivotPoints=function(q_G,e2M,K7g){var X20,N_n,b0D,f8q,g$O,u59,H76,b$S,T_c,N2L;e2M.noSlopes=!e2M.inputs.Continuous;P9g.Studies.displaySeriesAsLine(q_G,e2M,K7g);if(e2M.inputs.Shading){X20="Support";X20+=" 3";N_n="S";N_n+="u";N_n+="ppor";N_n+="t 2 ";b0D="S";b0D+="u";b0D+="ppo";b0D+="rt 1 ";f8q="Suppo";f8q+="rt 1";g$O="P";g$O+="i";g$O+="vot ";u59="Resistance ";u59+="3";H76="Resistan";H76+="ce 2 ";b$S="Res";b$S+="istance ";b$S+="3";b$S+=" ";T_c=q_G.panels[e2M.panel];N2L={noSlopes:e2M.noSlopes,opacity:e2M.parameters.opacity?e2M.parameters.opacity:0.2,skipTransform:T_c.name != e2M.chart.name,yAxis:e2M.getYAxis(q_G)};if(!e2M.highlight && q_G.highlightedDraggable){N2L.opacity*=0.3;}P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:b$S + e2M.name,bottomBand:H76 + e2M.name,color:P9g.Studies.determineColor(e2M.outputs[u59])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Resistance 2 " + e2M.name,bottomBand:"Resistance 1 " + e2M.name,color:P9g.Studies.determineColor(e2M.outputs["Resistance 2"])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Resistance 1 " + e2M.name,bottomBand:g$O + e2M.name,color:P9g.Studies.determineColor(e2M.outputs["Resistance 1"])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Support 1 " + e2M.name,bottomBand:"Pivot " + e2M.name,color:P9g.Studies.determineColor(e2M.outputs[f8q])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Support 2 " + e2M.name,bottomBand:b0D + e2M.name,color:P9g.Studies.determineColor(e2M.outputs["Support 2"])},N2L));P9g.prepareChannelFill(q_G,P9g.extend({panelName:e2M.panel,topBand:"Support 3 " + e2M.name,bottomBand:N_n + e2M.name,color:P9g.Studies.determineColor(e2M.outputs[X20])},N2L));}};P9g.Studies.studyLibrary=P9g.extend(P9g.Studies.studyLibrary,{"Pivot Points":{name:"Pivot Points",overlay:!!1,seriesFN:P9g.Studies.displayPivotPoints,calculateFN:P9g.Studies.calculatePivotPoints,inputs:{Type:["standard","fibonacci"],Continuous:!!"",Shading:!!""},outputs:{Pivot:"auto","Resistance 1":z4w,"Support 1":"#699158","Resistance 2":"#e36460","Support 2":k5H,"Resistance 3":"#ffd0cf","Support 3":"#d3e8ae"},parameters:{init:{opacity:0.2}}}});}};s4=k_W=>{var Z08,E7W;Z08=typeof _CIQ !== "undefined"?_CIQ:k_W.CIQ;if(!Z08.Studies){console.error("prettyGoodOscillator feature requires first activating studies feature.");}else {E7W="Pretty Good O";E7W+="scillator";Z08.Studies.calculatePrettyGoodOscillator=function(F40,V9S){f3BGj.f3X();var i06,g$$,l7y,u4g;i06="_EM";i06+="A";g$$="true";g$$+="Rang";g$$+="e";l7y=V9S.chart.scrubbed;if(l7y.length < V9S.days + ("1" << 0)){V9S.error=!![];return;}Z08.Studies.MA("exponential",V9S.days,g$$,+"0",i06,F40,V9S);Z08.Studies.MA("simple",V9S.days,"Close","0" >> 96,"_SMA",F40,V9S);for(var F6J=Math.max("1" ^ 0,V9S.startFrom);F6J < l7y.length;F6J++){u4g="_";u4g+="EMA ";if(!l7y[F6J]["_SMA " + V9S.name] || !l7y[F6J][u4g + V9S.name])continue;l7y[F6J]["Result " + V9S.name]=(l7y[F6J].Close - l7y[F6J]["_SMA " + V9S.name]) / l7y[F6J]["_EMA " + V9S.name];}};Z08.Studies.studyLibrary=Z08.extend(Z08.Studies.studyLibrary,{"Pretty Good":{name:E7W,calculateFN:Z08.Studies.calculatePrettyGoodOscillator,parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:3,studyOverBoughtColor:"auto",studyOverSoldValue:-3,studyOverSoldColor:"auto"}}}});}};e5=D4M=>{var u$J=f3BGj;var v0H,T63,o7V,f1l;u$J.T$X();v0H=typeof _CIQ !== "undefined"?_CIQ:D4M.CIQ;if(!v0H.Studies){console.error("priceMomentumOscillator feature requires first activating studies feature.");}else {T63="0.0";T63+="5";o7V="#F";o7V+="F0";o7V+="000";f1l="aut";f1l+="o";v0H.Studies.calculatePMO=function(N1C,P_Q){var l2_,E_6,B2d,t1Z,d0m,Y$4,S3n,j6T,T_D,c3E,M8n,N4l;l2_="P";l2_+="M";l2_+="O";l2_+=" ";E_6="e";E_6+="x";E_6+="ponentia";E_6+="l";B2d="_";B2d+="EMAx";B2d+="1";B2d+="0";t1Z="_";t1Z+="RO";t1Z+="Cx10 ";d0m="Clos";d0m+="e";Y$4="fi";Y$4+="e";Y$4+="ld";S3n={Smooth:Number(P_Q.inputs["Smoothing Period"]) - 1,Double:Number(P_Q.inputs["Double Smoothing Period"]) - 1,Signal:Number(P_Q.inputs["Signal Period"])};j6T=P_Q.chart.scrubbed;if(j6T.length < S3n.Smooth + S3n.Double){P_Q.error=!![];return;}u$J.T$X();T_D=P_Q.inputs.Field;if(!T_D || T_D == Y$4){T_D=d0m;}for(c3E=P_Q.startFrom;c3E < j6T.length;c3E++){if(!j6T[c3E])continue;if(!j6T[c3E - 1])continue;u$J.N_M(14);M8n=j6T[u$J.a$j(c3E,1)][T_D];if(M8n){N4l="_";N4l+="RO";N4l+="Cx";N4l+="10 ";u$J.j7J(143);var y$z=u$J.c0C(59,59,13,986);j6T[c3E][N4l + P_Q.name]=y$z * (j6T[c3E][T_D] / M8n - +"1");}}v0H.Studies.MA("exponential",S3n.Smooth,t1Z + P_Q.name,0,B2d,N1C,P_Q);v0H.Studies.MA(E_6,S3n.Double,"_EMAx10 " + P_Q.name,0,"PMO",N1C,P_Q);v0H.Studies.MA("exponential",S3n.Signal,l2_ + P_Q.name,0,"PMOSignal",N1C,P_Q);P_Q.zoneOutput="PMO";};v0H.Studies.studyLibrary=v0H.extend(v0H.Studies.studyLibrary,{PMO:{name:"Price Momentum Oscillator",calculateFN:v0H.Studies.calculatePMO,inputs:{Field:"field","Smoothing Period":35,"Double Smoothing Period":"20" * 1,"Signal Period":10},outputs:{PMO:f1l,PMOSignal:o7V},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:2.5,studyOverBoughtColor:"auto",studyOverSoldValue:-2.5,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:0,step:T63},studyOverSoldValue:{max:0,step:"0.05"}}}});}};C$=r2t=>{var t3t=f3BGj;var H9H,E6w,K76,c_j,W8H,a6Y,u0c;t3t.T$X();H9H=typeof _CIQ !== "undefined"?_CIQ:r2t.CIQ;if(!H9H.Studies){E6w="priceVolumeOscillat";E6w+="or feature requires first ac";E6w+="tivating studies fe";E6w+="ature.";console.error(E6w);}else {K76="0";K76+=".";K76+="1";c_j="#F";c_j+="F0";c_j+="00";c_j+="0";W8H="vdm";W8H+="a";a6Y="Poi";a6Y+="nts";u0c="e";u0c+="m";u0c+="a";H9H.Studies.calculatePriceOscillator=function(z6z,p0E){var C_6,R4R,r72,O_i,Y7G,k_5,W4q,Q0z,J9b,F6g,x3w,M8S,i5K;C_6="P";C_6+="oints Or";C_6+=" ";C_6+="Percent";R4R=p0E.chart.scrubbed;r72=Number(p0E.inputs["Short Cycle"]);O_i=Number(p0E.inputs["Long Cycle"]);if(R4R.length < Math.max(r72,O_i) + 1){p0E.error=!![];return;}Y7G=p0E.inputs.Field;k_5=p0E.inputs["Moving Average Type"];if(!k_5){k_5="simple";}if(!Y7G || Y7G == "field"){Y7G="Close";}if(p0E.parameters.isVolume){Y7G="Volume";k_5="exponential";}W4q=p0E.inputs[C_6];if(!W4q){W4q="Percent";}H9H.Studies.MA(k_5,r72,Y7G,0,"_Short MA",z6z,p0E);t3t.j7J(29);H9H.Studies.MA(k_5,O_i,Y7G,t3t.c0C(32,"0"),"_Long MA",z6z,p0E);for(var x63=Math.max(O_i,p0E.startFrom);x63 < R4R.length;x63++){Q0z="_Sho";Q0z+="rt MA ";J9b=R4R[x63];if(!J9b)continue;F6g=J9b[Q0z + p0E.name];x3w=J9b["_Long MA " + p0E.name];if((F6g || F6g === ("0" ^ 0)) && (x3w || x3w === 0)){M8S="Point";M8S+="s";if(W4q == M8S){t3t.N_M(14);J9b["Result " + p0E.name]=t3t.c0C(F6g,x3w);}else {t3t.j7J(144);J9b["Result " + p0E.name]=t3t.a$j(0,F6g,x3w,"1",100);}if(p0E.outputs["Increasing Bar"]){i5K="Res";i5K+="ult ";J9b[p0E.name + "_hist"]=J9b[i5K + p0E.name];p0E.outputMap={};p0E.outputMap[p0E.name + "_hist"]="";}}}};H9H.Studies.displayRAVI=function(F6V,v$8,t3z){var V92,i43,r9Q,L_A,Q_z,g_O,V9J,s5P,L_R,P0B,S5e,M81,a9_,v5j,l6C;V92="stx";V92+="_histogram";i43=F6V.panels[v$8.panel];r9Q=v$8.getContext(F6V);t3t.T$X();L_A=v$8.getYAxis(F6V);Q_z=F6V.pixelFromPrice(0,i43,L_A);t3t.N_M(145);var p5r=t3t.a$j(8,8,3,18,4);g_O=F6V.layout.candleWidth - p5r;if(g_O < 2){g_O=1;}V9J=H9H.Studies.determineColor(v$8.outputs["Increasing Bar"]);s5P=H9H.Studies.determineColor(v$8.outputs["Decreasing Bar"]);F6V.startClip(v$8.panel);F6V.canvasColor(V92);if(!v$8.underlay){r9Q.globalAlpha=1;}if(!v$8.highlight && F6V.highlightedDraggable){r9Q.globalAlpha*=0.3;}for(var c_E=0;c_E < t3z.length;c_E++){L_R="_";L_R+="his";L_R+="t";P0B="_";P0B+="h";P0B+="is";P0B+="t";S5e="_";S5e+="hist";M81=t3z[c_E];t3t.N_M(14);a9_=t3z[t3t.a$j(c_E,1)];if(!a9_){a9_=F6V.getPreviousBar(F6V.chart,v$8.name + S5e,c_E);}if(!M81)continue;v5j=0;l6C=0;if(v$8.parameters && v$8.parameters.studyOverZonesEnabled){v5j=parseFloat(v$8.parameters.studyOverBoughtValue);l6C=parseFloat(v$8.parameters.studyOverSoldValue);}if(!a9_){r9Q.fillStyle="#CCCCCC";}else if(M81[v$8.name + P0B] > v5j && a9_[v$8.name + L_R] < M81[v$8.name + "_hist"]){r9Q.fillStyle=V9J;}else if(M81[v$8.name + "_hist"] < l6C && a9_[v$8.name + "_hist"] > M81[v$8.name + "_hist"]){r9Q.fillStyle=s5P;}else {r9Q.fillStyle="#CCCCCC";}if(M81.candleWidth){g_O=Math.floor(Math.max(1,M81.candleWidth - 2));}r9Q.fillRect(Math.floor(F6V.pixelFromBar(c_E,i43.chart) - g_O / 2),Math.floor(Q_z),Math.floor(g_O),Math.floor(F6V.pixelFromPrice(M81[v$8.name + "_hist"],i43,L_A) - Q_z));}F6V.endClip();};H9H.Studies.studyLibrary=H9H.extend(H9H.Studies.studyLibrary,{"Price Osc":{name:"Price Oscillator",calculateFN:H9H.Studies.calculatePriceOscillator,inputs:{Field:"field","Short Cycle":12,"Long Cycle":26,"Moving Average Type":u0c,"Points Or Percent":["Points","Percent"]}},"Vol Osc":{name:"Volume Oscillator",calculateFN:H9H.Studies.calculatePriceOscillator,inputs:{"Short Cycle":12,"Long Cycle":26,"Points Or Percent":[a6Y,"Percent"]},parameters:{init:{isVolume:!![]}}},RAVI:{name:"RAVI",seriesFN:H9H.Studies.displayRAVI,calculateFN:H9H.Studies.calculatePriceOscillator,inputs:{Field:"field","Moving Average Type":W8H,"Short Cycle":7,"Long Cycle":65},outputs:{"Increasing Bar":"#00DD00","Decreasing Bar":c_j},centerline:0,parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:3,studyOverBoughtColor:"auto",studyOverSoldValue:-3,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:0,step:"0.1"},studyOverSoldValue:{max:0,step:K76}}}});}};y9=i36=>{var F8M=f3BGj;var z_N,h8q,m4Z,O9Q;z_N="und";z_N+="e";z_N+="f";F8M.T$X();z_N+="ined";h8q=typeof _CIQ !== z_N?_CIQ:i36.CIQ;if(!h8q.Studies){m4Z="primeNumber feature r";m4Z+="equires first activating studies feature.";console.error(m4Z);}else {O9Q="Pr";O9Q+="ime Nu";O9Q+="mber ";O9Q+="Bands";h8q.Studies.calculatePrimeNumber=function(r7N,E74){var P9i,r1b,q2A,A80,h1g,F3E,M51,Q1F,e_S,G2d;P9i=[];r1b=E74.chart.scrubbed;for(var h$n=E74.startFrom;h$n < r1b.length;h$n++){q2A="Pri";q2A+="me Number Bands";A80=r1b[h$n];if(!A80)continue;h1g=A80.High;if(!isNaN(h1g)){for(var u2Z="0" << 32;h1g > 0 && h1g <= ("10" ^ 0);u2Z++){h1g*=10;}if(P_F(h1g)){h1g+=2;}h1g=Math.ceil(h1g);if(h1g % 2 === 0){h1g++;}while(!P_F(h1g)){h1g+=+"2";}F8M.N_M(31);h1g/=Math.pow(F8M.a$j("10",32),u2Z);}F3E=A80.Low;if(!isNaN(F3E)){for(var I85=0;F3E > +"0" && F3E <= ("10" | 0);I85++){F8M.N_M(29);F3E*=F8M.c0C(0,"10");}if(P_F(F3E)){F8M.j7J(14);F3E-=F8M.c0C("2",0);}F3E=Math.floor(F3E);if(F3E % 2 === 0){F3E--;}if(F3E > "0" - 0){while(!P_F(F3E)){F3E-=2;}F3E/=Math.pow(10,I85);}}if(E74.type == q2A){if(!isNaN(h1g)){A80["Prime Bands Top " + E74.name]=h1g;}if(!isNaN(F3E)){A80["Prime Bands Bottom " + E74.name]=Math.max(0,F3E);}}else {M51="Tolerance P";M51+="ercentage";Q1F=0;e_S=E74.inputs[M51] * (h1g - F3E) / ("100" ^ 0);F8M.N_M(63);var o8M=F8M.c0C(3,7,12);G2d=h1g + F3E - o8M * A80.Close;if(G2d < e_S){Q1F=1;}else if(G2d > e_S){Q1F=-1;}if(Q1F){A80["Result " + E74.name]=Q1F;}}}function P_F(e7B){var R2s;if(e7B <= 0){return !!"";}else if(e7B != Math.floor(e7B)){return ![];}else if(P9i[e7B] === !!({}) || P9i[e7B] === ![]){return P9i[e7B];}R2s=parseInt(Math.sqrt(e7B),10);for(var d1G=2;d1G <= R2s;d1G++){if(e7B % d1G === "0" * 1){P9i[e7B]=!({});return !1;}}P9i[e7B]=!0;return !0;}};h8q.Studies.studyLibrary=h8q.extend(h8q.Studies.studyLibrary,{"Prime Number":{name:"Prime Number Oscillator",range:"-1 to 1",calculateFN:h8q.Studies.calculatePrimeNumber,centerline:+"0",inputs:{"Tolerance Percentage":5},attributes:{"Tolerance Percentage":{min:0.1,step:0.1}}},"Prime Number Bands":{name:O9Q,overlay:!![],calculateFN:h8q.Studies.calculatePrimeNumber,seriesFN:h8q.Studies.displayChannel,inputs:{"Channel Fill":!!"1"},outputs:{"Prime Bands Top":"auto","Prime Bands Bottom":"auto","Prime Bands Channel":"auto"}}});}};v8=B7U=>{var q1w=f3BGj;var x06,d9v,d0j,J8K,o5J,F_2;x06=typeof _CIQ !== "undefined"?_CIQ:B7U.CIQ;q1w.f3X();if(!x06.Studies){d9v="pring feature ";d9v+="requires first activating s";d9v+="t";d9v+="udies feature.";console.error(d9v);}else {d0j="wee";d0j+="kly";J8K="#F";J8K+="F";J8K+="0";J8K+="000";o5J="#0";o5J+="0";o5J+="DD";o5J+="00";F_2="f";F_2+="ield";x06.Studies.calculateKST=function(P_u,j0G){var V9V,b4s,V8_,M4i,i_J,c11,O4t,C$U,S_1,U1a,V35,R2C,j4a,B3n,Q$R,e5s,P4D,j5y,O2a,a4a;V9V="Lig";V9V+="htest S";V9V+="MA";V9V+=" Period";b4s="Heavi";b4s+="est ";b4s+="Rate of Change Period";V8_="Heavy Rate of C";V8_+="hange Peri";V8_+="od";M4i="Light Rate of Change P";M4i+="eriod";i_J="Light";i_J+="es";i_J+="t Rate";i_J+=" of Change Period";c11="Cl";c11+="o";c11+="s";c11+="e";O4t=j0G.chart.scrubbed;C$U=j0G.inputs.Field;if(!C$U || C$U == "field"){C$U=c11;}S_1={};U1a={};S_1[1]=Number(j0G.inputs[i_J]);S_1[2]=Number(j0G.inputs[M4i]);S_1[3]=Number(j0G.inputs[V8_]);S_1[4]=Number(j0G.inputs[b4s]);q1w.N_M(46);U1a[q1w.c0C("1",0)]=Number(j0G.inputs[V9V]);U1a[2]=Number(j0G.inputs["Light SMA Period"]);U1a[+"3"]=Number(j0G.inputs["Heavy SMA Period"]);U1a[4]=Number(j0G.inputs["Heaviest SMA Period"]);V35=Number(j0G.inputs["Signal Period"]);for(R2C=j0G.startFrom;R2C < O4t.length;R2C++){if(!O4t[R2C])continue;for(j4a=1;j4a <= 4;j4a++){B3n="_";B3n+="RO";B3n+="C";if(R2C >= S_1[j4a] && O4t[R2C - S_1[j4a]] && O4t[R2C - S_1[j4a]][C$U]){q1w.N_M(82);var r11=q1w.a$j(12,7,13);O4t[R2C][B3n + j4a + " " + j0G.name]=("100" >> r11) * (O4t[R2C][C$U] / O4t[R2C - S_1[j4a]][C$U] - +"1");}}}for(j4a=1;j4a <= "4" - 0;j4a++){x06.Studies.MA("simple",U1a[j4a],"_ROC" + j4a + ((2382,1140) < 8215?" ":(6910,2120) <= ("123" ^ 0)?(33.59,4.91e+3):0x1377) + j0G.name,0,"_SMA" + j4a,P_u,j0G);}for(R2C=j0G.startFrom;R2C < O4t.length;R2C++){O4t[R2C]["KST " + j0G.name]=null;for(j4a=1;j4a <= 4;j4a++){q1w.j7J(1);var n_F=q1w.c0C(312,1558);q1w.N_M(82);var C$M=q1w.c0C(3657,9,193);q1w.j7J(14);var T1k=q1w.c0C(94428,89182);q1w.j7J(82);var E67=q1w.a$j(2,10,8846);q1w.j7J(38);var M4z=q1w.a$j(0,33,8,4);q1w.j7J(146);var b$e=q1w.c0C(21459,18,19,4,7152);q1w.N_M(17);var T5k=q1w.c0C(7,16,44,4);q1w.N_M(9);var w5o=q1w.c0C(517920,12,43680);q1w.j7J(147);var V80=q1w.c0C(1,6510,6520,3255);Q$R=O4t[R2C]["_SMA" + j4a + ((n_F,985.76) == (+"2816",C$M)?T1k:(E67,"523.31" * M4z) === b$e?(973.34,739.59) == (T5k,253.02)?w5o:(!!"1",V80):" ") + j0G.name];if(Q$R || Q$R === 0){q1w.N_M(5);O4t[R2C]["KST " + j0G.name]+=q1w.a$j(Q$R,j4a);}}}e5s=-1435656228;P4D=63420138;q1w.N_M(14);j5y=q1w.a$j("2",0);for(var D79=1;q1w.S9Y(D79.toString(),D79.toString().length,18216) !== e5s;D79++){x06.Studies.MA("simple",V35,"KST " + j0G.name,0,"KSTSignal",P_u,j0G);q1w.N_M(46);j5y+=q1w.c0C("2",0);}if(q1w.O1W(j5y.toString(),j5y.toString().length,20741) !== P4D){O2a="KSTSigna";O2a+="l";a4a="KS";a4a+="T";a4a+="Sign";a4a+="al";x06.Studies.MA("KST ",V35,a4a * j0G.name,+"7",O2a,P_u,j0G);}};x06.Studies.calculateSpecialK=function(T8d,J16){var U3T,y1w,R3c,l7r,c8c,p5L,e3h,R$k,n6q,v7d;U3T=J16.chart.scrubbed;y1w=J16.inputs.Field;if(!y1w || y1w == "field"){y1w="Close";}R3c=J16.inputs.Interval;if(!R3c){R3c="daily";}l7r={daily:[10,15,+"20",30,50,65,75,100,195,+"265",390,+"530"],weekly:[+"4",5,6,+"8",10,13,15,+"20",39,52,78,104]};c8c={daily:[+"10",10,10,+"15",50,65,75,100,130,"130" | 2,130,195],weekly:[4,5,6,+"8","10" | 2,13,15,20,26,26,26,39]};for(p5L=J16.startFrom;p5L < U3T.length;p5L++){if(!U3T[p5L])continue;for(e3h=0;e3h < l7r[R3c].length;e3h++){if(p5L >= l7r[R3c][e3h] && U3T[p5L - l7r[R3c][e3h]] && U3T[p5L - l7r[R3c][e3h]][y1w]){q1w.N_M(148);var A$o=q1w.a$j(97,97,20,20,4);q1w.j7J(14);var i2b=q1w.c0C(16,15);U3T[p5L]["_ROC" + e3h + " " + J16.name]=A$o * (U3T[p5L][y1w] / U3T[p5L - l7r[R3c][e3h]][y1w] - i2b);}}}for(e3h=0;e3h < c8c[R3c].length;e3h++){R$k="s";R$k+="im";R$k+="p";R$k+="le";n6q="da";n6q+="i";n6q+="l";n6q+="y";x06.Studies.MA(R3c == n6q?R$k:"exponential",c8c[R3c][e3h],"_ROC" + e3h + ((4608,"7413" << 32) < (+"9640",4740)?("909.46" - 0,7000) < +"9520"?("4790" * 1,3304) > (4110,641.88)?!![]:(!![],!1):0x30a:" ") + J16.name,0,"_MA" + e3h,T8d,J16);}for(p5L=J16.startFrom;p5L < U3T.length;p5L++){U3T[p5L]["Result " + J16.name]=null;for(e3h=0;e3h < c8c[R3c].length;e3h++){q1w.j7J(15);var C5e=q1w.c0C(69,833,7);q1w.j7J(149);var y9f=q1w.c0C(72580,3,11,1,68774);q1w.N_M(69);var g1G=q1w.a$j(223,28,11);v7d=U3T[p5L]["_MA" + e3h + (C5e > (y9f,g1G)?" ":("0x1452" << 0,!!"")) + J16.name];if(v7d || v7d === 0){q1w.j7J(150);U3T[p5L]["Result " + J16.name]+=q1w.a$j(1,e3h,4,v7d);}}}};x06.Studies.studyLibrary=x06.extend(x06.Studies.studyLibrary,{"Pring KST":{name:"Pring's Know Sure Thing",calculateFN:x06.Studies.calculateKST,inputs:{Field:F_2,"Lightest Rate of Change Period":10,"Lightest SMA Period":10,"Light Rate of Change Period":15,"Light SMA Period":10,"Heavy Rate of Change Period":+"20","Heavy SMA Period":10,"Heaviest Rate of Change Period":30,"Heaviest SMA Period":15,"Signal Period":9},outputs:{KST:o5J,KSTSignal:J8K}},"Pring Sp-K":{name:"Pring's Special K",calculateFN:x06.Studies.calculateSpecialK,inputs:{Field:"field",Interval:["daily",d0j]}}});}};L4=E2N=>{var k10=f3BGj;var i8f,q9S,h2w,M5Y,w4Z,A8C,j0c,y8q,c9T,Z8R,u5M,e2$;i8f=typeof _CIQ !== "undefined"?_CIQ:E2N.CIQ;q9S=typeof _timezoneJS !== "undefined"?_timezoneJS:E2N.timezoneJS;k10.T$X();if(!i8f.Studies){h2w="project";h2w+="edVolume feature requires first activating studies feature.";console.error(h2w);}else if(!i8f.Studies.studyLibrary.PVAT){M5Y="hh";M5Y+=":";M5Y+="mm:s";M5Y+="s";w4Z="#";w4Z+="b8";w4Z+="2c";w4Z+="0c";A8C="#fe6";A8C+="4";A8C+="1c";j0c="+";j0c+="50%";y8q="-";y8q+="15";y8q+="0";y8q+="%";c9T="-";c9T+="10";c9T+="0";c9T+="%";Z8R="-50";Z8R+="%";u5M="+5";u5M+="0";u5M+="%";e2$="Projected Volume at T";e2$+="ime";i8f.Studies.initProjectedVolume=function(g_E,I8U,s5w,h21,D8V,V8j){var q_s,J4b,c8O;var {market:X3o}=g_E.chart;q_s="00:00";if(X3o){q_s=X3o.getNormalOpen();}if(q_s.match(/^[\d]{2}:[\d]{2}$/)){q_s+=":00";}if(!s5w["Anchor Time"] || !s5w["Anchor Time"].length){J4b="Ancho";J4b+="r Time";s5w[J4b]=q_s;}c8O=i8f.Studies.initializeFN(g_E,I8U,s5w,h21,D8V,V8j);if(!g_E.currentlyImporting){c8O.defaultAnchorTime=q_s;}return c8O;};i8f.Studies.validateProjectedVolumeLookback=function(m4y,i$_){var {interval:l_b, periodicity:H6g}=m4y.layout;var {"Lookback Days":c25}=i$_.inputs;k10.j7J(151);return k10.a$j(c25,l_b,H6g,"10");};i8f.Studies.calculateProjectedVolume=function(w92,G1a){var k2n,S7C,l$S,j7X,f1O,i85,d6b,j5O,W9C,g3B,H9h,M7D,V2R,d2i,H0V,T5D,t_K,G27,o9X,k1I,W3W,m9M,Z7m,n4V,A$b,j6C,x22,y7o,f9$,o1z,a2o,Z_L,P_o,k8a,F2a,J8T,H_V,j_O,O$k,g8B,Z1m,o3c,O9R,o7D,a8$,L_5,l8L,B0C,J2N,n1v,A$F,N12,A4o,P5o,a9r,M$t,H2W,l0A,O9C,w6A;k2n="Aver";k2n+="age";k2n+=" Line";S7C="H";S7C+="H";S7C+=":m";S7C+="m";l$S="Market.Symbol";function V5f(n0y){k10.f3X();var r6b;k10.N_M(46);n0y.setHours(k10.a$j("0",0));k10.j7J(46);n0y.setMinutes(k10.c0C("0",0));r6b=i8f.Studies.getMarketOffset({stx:w92,localQuoteDate:n0y});return new Date(n0y.getTime() + r6b);}l$S+="o";l$S+="gy.isForexSymbol";j7X=":0";function K15(r1J,V7E,A83){while(V7E){r1J=new Date(new Date(r1J).setDate(r1J.getDate() + (A83?1:-1)));if(w$c.isMarketDate(r1J)){V7E--;}}return r1J;}j7X+="0";f1O="An";f1O+="chor Selector";var {interval:V_2, timeUnit:H1G, aggregationType:E$7}=w92.layout;var {symbol:B$i, scroll:G36, scrubbed:B2V, market:w$c}=w92.chart;i85=G1a.type === "PAV";function O88(L4s){return {hours:L4s.getHours(),minutes:L4s.getMinutes()};}d6b=G1a.study?G1a.study.name:G1a.type;if(i8f.ChartEngine.isDailyInterval(V_2)){G1a.error=`${d6b} is Intraday Only`;}else if(H1G === "tick"){G1a.error=`Tick mode not supported for ${d6b}`;}else if(H1G !== "minute"){k10.j7J(82);G1a.error=`${k10.c0C("ute periodicities not supported for ","b-min","Su")}${d6b}`;}else if(!E$7 || !["ohlc","heikinashi"].includes(E$7)){G1a.error=`Aggregation type not supported for ${d6b}`;}else if(!i8f.Studies.validateProjectedVolumeLookback(w92,G1a)){j5O=-2144216569;W9C=+"308328842";g3B=2;for(var m7b=1;k10.S9Y(m7b.toString(),m7b.toString().length,51491) !== j5O;m7b++){G1a.error=`Selected lookback/periodicity combo not supported for ${d6b}`;g3B+=2;}if(k10.O1W(g3B.toString(),g3B.toString().length,280) !== W9C){G1a.error=`Selected lookback/periodicity combo not supported for ${d6b}`;}}if(G1a.error){return;}if(G1a.inputs[f1O]){i8f.Studies.initAnchorHandle(w92,G1a);}else {i8f.Studies.removeAnchorHandle(w92,G1a);}H9h=w$c?w$c.getNormalOpen():"00:00";function C8A(r47){k10.f3X();console.error(`Expected data for ${d84(r47).toDateString()} but found none. This may be caused by gaps in your data or an improperly configured market definition.`);}if(H9h.match(/^[\d]{2}:[\d]{2}$/)){H9h+=j7X;}if(!w92.currentlyImporting){if(!G1a.defaultAnchorTime){G1a.defaultAnchorTime=H9h;}else if(H9h !== G1a.defaultAnchorTime){G1a.defaultAnchorTime=H9h;M7D=-1509490596;V2R=-948817835;d2i=2;for(var v7J=1;k10.S9Y(v7J.toString(),v7J.toString().length,38648) !== M7D;v7J++){G1a.inputs["Anchor Time"]=H9h;d2i+=2;}if(k10.O1W(d2i.toString(),d2i.toString().length,208) !== V2R){G1a.inputs[""]=H9h;}i8f.Studies.repositionAnchor(w92,G1a);return;}}var {"Lookback Days":A_U, "Anchor Time":o3p}=G1a.inputs;var [e8W,u9q,E8C = 0]=o3p.split(873 != (9000,384.38)?":":"e");function u0M(J$X,D4Q){var X_D,a3V,o9c;k10.f3X();X_D=d84(J$X);a3V=w$c.getOpen(X_D) || V5f(X_D);o9c=X8O(a3V);if(!D4Q){return o9c;}if(o9c < ("0" ^ 0)){o9c=X8O(K15(a3V,1,!!"1"));}if(o9c >= B2V.length){return !"1";}return o9c;}H0V=i8f.getFn(l$S)(B$i);T5D=G1a.getDependents(w92);t_K=0;G27=[];T5D.forEach(({inputs:R74, outputMap:k88})=>{k10.f3X();if(R74.Period){t_K=Math.max(parseInt(R74.Period),t_K);G27.push(...Object.keys(k88));}});G1a.dependentsOutputMap=G27;k1I=u0M(B2V.length - +"1",!!({}));W3W=Math.ceil(B2V.length - 1 - G36);k10.f3X();k10.N_M(14);m9M=u0M(k10.c0C(W3W,t_K));if(H0V && B2V[m9M] && i8f.dateToStr(B2V[m9M].DT,S7C) !== H9h){k10.N_M(14);m9M=u0M(k10.a$j(m9M,1));;}if(!H0V && G1a.startFrom > m9M && B2V[m9M] && B2V[m9M]["V " + G1a.name] !== undefined && G27.every(D8N=>{return ![undefined,null].includes(B2V[m9M][D8N]);}) && k1I !== !!""){o9X=k1I;;}else {o9X=m9M;}Z7m=K15(d84(m9M),A_U);Z7m.setHours(0,0,0);n4V=u0M(0,!0);A$b=(n4V || n4V === 0) && X8O(K15(B2V[n4V].DT,A_U,!!1));if(B2V[0].DT > Z7m){if(w92.quoteDriver){w92.quoteDriver.extendHistoricalData({from:Z7m});if(A$b > 0){o9X=A$b;}else {return;}}else {k10.j7J(1);return G1a.error=`${k10.c0C("Not e","nough data to calculate ")}${d6b}`;}}if(o9X < 0 || o9X > B2V.length - 1){return;}function d84(l69){var j5J;j5J="s";k10.f3X();j5J+="cr";j5J+="ubb";j5J+="ed";return w92.dateFromTick(l69,null,!!({}),j5J);}j6C=B2V.length - G1a.startFrom === 1 && G1a.cachedFutureTicks && G1a.cachedLastProjection && +G1a.cachedLastProjection.DT === +B2V[B2V.length - 1].DT && B2V[o9X]["PV " + G1a.name];if(j6C){k10.j7J(3);var f0c=k10.a$j(9,10,0);B2V[B2V.length - f0c]["PV " + G1a.name]=G1a.cachedLastProjection.projectedValue;G1a.appendFutureTicks(w92,G1a.cachedFutureTicks);o9X=G1a.startFrom;}else {x22="P";x22+="V";x22+=" ";G1a.cachedFutureTicks=null;G1a.cachedLastProjection=null;y7o=[k1I];f9$=[];for(var r_l=0;r_l < A_U;r_l++){o1z=u0M(y7o[+"0"] - 1);y7o.unshift(o1z);;}while(y7o[A_U] >= o9X){a2o=y7o.pop();if(!B2V[a2o]){return C8A(a2o);}Z_L=O88(B2V[a2o].DT);var {hours:E8Y, minutes:p9t}=Z_L;P_o=w$c.getClose(B2V[a2o].DT);k8a=void 0;if(!P_o){k8a={hours:24,minutes:0};}else {F2a=w$c.getNextClose(B2V[a2o].DT);k8a=O88(P_o);while(!(k8a.hours === 0 && k8a.minutes === 0) && P_o.getDate() === F2a.getDate()){P_o=F2a;F2a=w$c.getNextClose(F2a);}k8a=O88(P_o);if(k8a.hours === 0){k8a.hours=24;}}J8T=y7o.slice();for(var c_z=0;c_z < J8T.length;c_z++){H_V=J8T[c_z];if(!B2V[H_V]){return C8A(H_V);}var {hours:R2j, minutes:O3Y}=O88(B2V[H_V].DT);if(R2j < E8Y || R2j === E8Y && O3Y < p9t){do {H_V++;({hours:R2j, minutes:O3Y}=O88(B2V[H_V].DT));}while(!(R2j === E8Y && O3Y === p9t));}J8T[c_z]=H_V;}while(E8Y < k8a.hours || E8Y === k8a.hours && p9t < k8a.minutes){j_O=!1;O$k=void 0;g8B=void 0;Z1m=0;o3c=0;for(var U_f=0;U_f < J8T.length;U_f++){O9R=J8T[U_f];if(O9R === null)continue;o7D=B2V[O9R];if(!o7D){return C8A(O9R);}var {hours:T$3, minutes:f2_}=O88(o7D.DT);a8$=o7D.DT.getDate();if(T$3 === E8Y && f2_ === p9t){Z1m+=o7D.Volume;o3c++;J8T[U_f]++;if(B2V[J8T[U_f]].DT.getDate() !== a8$){J8T[U_f]=null;}else if(!j_O){({hours:O$k, minutes:g8B}=O88(B2V[J8T[U_f]].DT));j_O=!![];;}}}E8Y=O$k;p9t=g8B;if(o3c === 0)break;k10.N_M(7);L_5=k10.c0C(Z1m,o3c);if(B2V[a2o]){B2V[a2o]["PV " + G1a.name]=L_5;}else {l8L="P";l8L+="V";l8L+=" ";f9$.push({[l8L + G1a.name]:L_5});}a2o++;}y7o.unshift(u0M(y7o[0] - +"1"));;}G1a.cachedLastProjection={DT:B2V[B2V.length - 1].DT,projectedValue:B2V[B2V.length - 1][x22 + G1a.name]};G1a.cachedFutureTicks=f9$;G1a.appendFutureTicks(w92,f9$);}function X8O(s0Q){k10.T$X();return w92.tickFromDate(s0Q,null,null,!![],"scrubbed");}B0C=null;J2N=0;n1v=+"0";if(j6C && i85){while(o9X > +"0"){k10.N_M(14);N12=B2V[k10.c0C(o9X,1)]["V " + G1a.name];if(N12 || N12 === +"0"){J2N=N12;break;}o9X--;}}for(var q08=o9X;q08 < B2V.length;q08++){A4o="V";A4o+=" ";P5o="America/New_Y";P5o+="ork";a9r=B2V[q08];M$t=a9r.Volume;H2W=a9r["PV " + G1a.name];if(!a9r.futureTick){A$F=q08;}if(B0C === null){B0C=i8f.Studies.getMarketOffset({stx:w92,localQuoteDate:B2V[q08].DT,shiftToDateBoundary:!![]});}l0A=new Date(new Date(a9r.DT).getTime() + B0C);O9C=B2V[q08 - 1] && new Date(new Date(B2V[q08 - 1].DT).getTime() + B0C);w6A=new q9S.Date(a9r.DT,w$c.market_def.market_tz || P5o);w6A.setHours(e8W,u9q,E8C);k10.N_M(1);w6A=new Date(k10.a$j(w6A,B0C));w6A.setDate(l0A.getDate());if(O9C && l0A.getDate() !== O9C.getDate()){B0C=null;J2N=0;n1v=0;}if(l0A < w6A){a9r["V " + G1a.name]=0;a9r["PV " + G1a.name]=0;continue;}if(i85){J2N+=M$t;n1v+=H2W;}else {J2N=M$t;n1v=H2W;}a9r[A4o + G1a.name]=J2N;if(!j6C){a9r["PV " + G1a.name]=n1v;}if([NaN,null,undefined].includes(J2N) && !a9r.futureTick){k10.N_M(1);G1a.error=`${d6b}${k10.a$j(" requires vol","ume")}`;return;}}G1a.cachedLastProjection.projectedValue=B2V[A$F]["PV " + G1a.name];G1a.outputMap={};G1a.outputMap["V " + G1a.name]="";G1a.outputMap["PV " + G1a.name]=k2n;T5D.forEach(A0e=>{A0e.startFrom=o9X;A0e.study.calculateFN(w92,A0e);});};i8f.Studies.displayProjectedVolume=function(T6f,g0Z,p6G){var y6b,S9U,q8C,g1y,P53,W_k,s4I,G_J,I9E,C08,l5V;y6b="stx_volume_";y6b+="underla";y6b+="y_";y6b+="down";S9U="stx_volu";S9U+="me_";S9U+="under";S9U+="lay_up";q8C="o";q8C+="bj";q8C+="ect";g1y="A";g1y+="lert Bar";if(g0Z.error){return i8f.Studies.removeAnchorHandle(T6f,g0Z);}var {"Alert Threshold":m$0 = ""}=g0Z.inputs;k10.N_M(152);var L77=k10.a$j(13,15,2,0);k10.j7J(85);var h05=k10.c0C(110,10,15,1490);k10.j7J(9);var D_n=k10.c0C(1754,18,103);P53=parseInt(m$0.slice(0,L77),h05) / D_n;W_k=g0Z.outputs[g1y];if(typeof W_k === q8C){W_k=W_k.color;}g0Z.volumeField="V " + g0Z.name;g0Z.alignStepToSide=!!({});g0Z.extendToEndOfLastBar=!!({});g0Z.lineWidth=+"2";s4I=T6f.canvasStyle(S9U).opacity;G_J=T6f.canvasStyle(y6b).opacity;g0Z.colorFunction=function(x6I){var G5W,I92,o7T,s$D,m0v,M8N;var {Open:v2c, Close:y$a, iqPrevClose:F2N}=x6I;G5W=T6f.colorByCandleDirection?v2c:F2N;k10.N_M(153);I92=k10.a$j(G5W,y$a);k10.f3X();o7T=x6I["PV " + g0Z.name];s$D=x6I["V " + g0Z.name];k10.j7J(154);m0v=k10.a$j(o7T,1,P53);M8N=P53 < +"0"?s$D < m0v:s$D > m0v;return {fill_color:M8N && W_k || (I92?this.fill_color_down:this.fill_color_up),border_color:I92?this.border_color_down:this.border_color_up,opacity:M8N?1:I92?G_J:s4I,border_opacity:I92?G_J:s4I};};I9E=g0Z.study?g0Z.study.name:g0Z.type;var {loadingMore:K7F}=T6f.chart;C08=p6G.some(w36=>{return w36 && w36[g0Z.volumeField] && w36["PV " + g0Z.name];});l5V=p6G[0] && !p6G[0].futureTick && (p6G[0]["PV " + g0Z.name] === undefined || (g0Z.dependentsOutputMap || []).some(J3V=>{k10.T$X();return [undefined,null].includes(p6G[+"0"][J3V]);}));if(!C08 && K7F){return g0Z.error=`Fetching data for ${I9E}`;}i8f.Studies.createVolumeChart(T6f,g0Z,p6G);i8f.Studies.displaySeriesAsLine(T6f,g0Z,p6G);if(g0Z.anchorHandle){i8f.Studies.displayAnchorHandleAndLine(T6f,g0Z,p6G);}if(l5V){i8f.Studies.calculateProjectedVolume(T6f,g0Z);}};i8f.Studies.studyLibrary=i8f.extend(i8f.Studies.studyLibrary,{PVAT:{name:e2$,range:"0 to max",yAxis:{ground:!"",initialMarginTop:0,zoom:0},calculateFN:i8f.Studies.calculateProjectedVolume,seriesFN:i8f.Studies.displayProjectedVolume,initializeFN:i8f.Studies.initProjectedVolume,removeFN:i8f.Studies.removeAnchorHandle,inputs:{"Lookback Days":10,"Anchor Time":"","Alert Threshold":["+150%","+125%","+100%","+75%",u5M,"+25%","None","-25%",Z8R,"-75%",c9T,"-125%",y8q],"Anchor Selector":!!1},outputs:{"Average Line":"#fe641c","Alert Bar":"#cfbd0e","Up Volume":"#8cc176","Down Volume":"#b82c0c"},parameters:{plotType:"step"},attributes:{"Anchor Time":{placeholder:"hh:mm:ss",step:+"1"},"Alert Threshold":{defaultSelected:j0c}}},PAV:{name:"Projected Aggregate Volume",range:"0 to max",yAxis:{ground:!!"1",initialMarginTop:+"0",zoom:0},calculateFN:i8f.Studies.calculateProjectedVolume,seriesFN:i8f.Studies.displayProjectedVolume,initializeFN:i8f.Studies.initProjectedVolume,removeFN:i8f.Studies.removeAnchorHandle,inputs:{"Lookback Days":10,"Anchor Time":"","Anchor Selector":!!"1"},outputs:{"Average Line":A8C,"Up Volume":"#8cc176","Down Volume":w4Z},parameters:{plotType:"step"},attributes:{"Anchor Time":{placeholder:M5Y,step:1}}}});}};o3=c28=>{var H8u,I5T;H8u=typeof _CIQ !== "undefined"?_CIQ:c28.CIQ;if(!H8u.Studies){I5T="psychologic";I5T+="alLine feature requires first activating st";I5T+="udies feature.";console.error(I5T);}else {H8u.Studies.calculatePsychologicalLine=function(K97,P0t){var l89,D75,b_p,d_3,F$h,a6L;l89=P0t.chart.scrubbed;if(l89.length < P0t.days + 1){P0t.error=!!"1";return;}D75=[];f3BGj.N_M(85);var i37=f3BGj.c0C(1400,11,16,22124);b_p=i37 / P0t.days;f3BGj.f3X();d_3=0;for(var B6w=Math.max(P0t.startFrom - P0t.days,1);B6w < l89.length;B6w++){F$h="Re";F$h+="sult ";if(l89[B6w].futureTick)break;a6L=Number(l89[B6w].Close > l89[B6w - 1].Close);if(a6L){d_3+=b_p;}D75.push(a6L);if(D75.length > P0t.days){d_3-=D75.shift() * b_p;}if(B6w < P0t.startFrom)continue;if(!isNaN(l89[B6w].Close)){l89[B6w][F$h + P0t.name]=d_3;}}};H8u.Studies.studyLibrary=H8u.extend(H8u.Studies.studyLibrary,{PSY:{name:"Psychological Line",range:"0 to 100",calculateFN:H8u.Studies.calculatePsychologicalLine,inputs:{Period:20}}});}};i8=f8y=>{var W9k,Q_4,L_2;W9k=typeof _CIQ !== "undefined"?_CIQ:f8y.CIQ;f3BGj.f3X();if(!W9k.Studies){Q_4="qsti";Q_4+="ck feature requires first activating studies feature.";console.error(Q_4);}else {L_2="QSti";L_2+="c";L_2+="k";W9k.Studies.calculateQStick=function(A$P,M5i){var H2v,h6w;f3BGj.T$X();H2v="R";H2v+="e";H2v+="sult";h6w=M5i.chart.scrubbed;if(h6w.length < M5i.days + 1){M5i.error=!0;return;}for(var l8G=M5i.startFrom;l8G < h6w.length;l8G++){h6w[l8G]["_Close-Open " + M5i.name]=h6w[l8G].Close - h6w[l8G].Open;}W9k.Studies.MA(M5i.inputs["Moving Average Type"],M5i.days,"_Close-Open " + M5i.name,0,H2v,A$P,M5i);};W9k.Studies.studyLibrary=W9k.extend(W9k.Studies.studyLibrary,{QStick:{name:L_2,calculateFN:W9k.Studies.calculateQStick,inputs:{Period:8,"Moving Average Type":"ma"}}});}};O$=o6W=>{var I7n=f3BGj;var P2N,w7b,E4r,c7g,D3m,Y0Q,k0e;P2N=typeof _CIQ !== "undefined"?_CIQ:o6W.CIQ;I7n.T$X();if(!P2N.Studies){console.error("rainbow feature requires first activating studies feature.");}else {w7b="#";w7b+="FF";w7b+="0000";E4r="#F";E4r+="F";E4r+="00F";E4r+="F";c7g="#7";c7g+="F00FF";D3m="#";D3m+="0";D3m+="0";D3m+="00FF";Y0Q="#";Y0Q+="00F";Y0Q+="FFF";k0e="#";k0e+="7FF";k0e+="F";k0e+="00";P2N.Studies.calculateRainbow=function(H99,A7a){var E7V,G7u,V2A,v0I,k50,P49,j21,r$L,J$d,k9k,a_h,F1R,j4Q,m5G,k6q,R8k,w8z;function x4U(B0c,X5E){var Y7K,L_r;I7n.N_M(102);var I4v=I7n.c0C(16,14,12,19);Y7K=Number.MAX_VALUE * I4v;L_r=Number.MAX_VALUE;for(var c8o=X5E - B0c + 1;c8o <= X5E;c8o++){if(c8o < +"0")continue;Y7K=Math.max(Y7K,V2A[c8o].Close);L_r=Math.min(L_r,V2A[c8o].Close);}return [L_r,Y7K];}E7V="O";E7V+="s";E7V+="c";G7u="f";G7u+="i";G7u+="e";G7u+="ld";V2A=A7a.chart.scrubbed;if(V2A.length < A7a.days + 1){A7a.error=!"";return;}v0I=A7a.inputs.Field;if(!v0I || v0I == G7u){v0I="Close";}k50=v0I;for(var p3P=1;p3P <= 10;p3P++){P2N.Studies.MA("simple",A7a.days,k50,"0" - 0,"SMA" + p3P,H99,A7a);I7n.N_M(24);var m2z=I7n.c0C(68420,62170,11,19);k50="SMA" + p3P + (8214 !== 239.2?" ":m2z) + A7a.name;}for(var v7K=Math.max(A7a.startFrom,10);v7K < V2A.length;v7K++){if(!V2A[v7K])continue;if(V2A[v7K].futureTick)break;P49=0;I7n.j7J(31);j21=I7n.a$j("0",96);I7n.N_M(27);var j85=I7n.c0C(17,18);r$L=Number.MAX_VALUE * j85;J$d=Number.MAX_VALUE;for(p3P=1;p3P <= 10;p3P++){I7n.N_M(155);var R_x=I7n.c0C(1992,26000,58500,18);I7n.j7J(1);var z9b=I7n.a$j(538,2692);I7n.j7J(1);var g_N=I7n.c0C(6143,10);k9k=V2A[v7K]["SMA" + p3P + (R_x < (+"1788",z9b)?" ":g_N) + A7a.name];if(k9k || k9k === 0){P49+=k9k;j21++;r$L=Math.max(r$L,k9k);J$d=Math.min(J$d,k9k);}}if(A7a.name.indexOf("Osc") > -1){a_h=x4U(A7a.inputs["HHV/LLV Lookback"],v7K);if(j21){F1R="Zer";F1R+="o";F1R+=" ";j4Q="Ov";j4Q+="er ";m5G="O";m5G+="ver ";k6q="_hi";k6q+="st";I7n.j7J(156);var h53=I7n.c0C(150,1500,2,4,3);V2A[v7K][A7a.name + k6q]=h53 * (V2A[v7K][v0I] - P49 / j21) / Math.max(0.000001,a_h[+"1"] - a_h[0]);I7n.N_M(157);var e_M=I7n.c0C(16,8,18,0,5);V2A[v7K][m5G + A7a.name]=("100" ^ 0) * (r$L - J$d) / Math.max(0.000001,a_h[e_M] - a_h[+"0"]);V2A[v7K]["Under " + A7a.name]=-V2A[v7K][j4Q + A7a.name];V2A[v7K][F1R + A7a.name]=0;}}}if(A7a.name.indexOf(E7V) > -1){R8k="Under";R8k+=" ";w8z="Pos";w8z+="itive B";w8z+="ar";A7a.outputMap={};A7a.outputMap["Over " + A7a.name]=w8z;A7a.outputMap[R8k + A7a.name]="Negative Bar";A7a.outputMap["Zero " + A7a.name]="";A7a.outputMap[A7a.name + "_hist"]="";}};P2N.Studies.displayRainbowMA=function(o3W,t0u,z3c){var h1L;h1L=o3W.panels[t0u.panel];I7n.T$X();for(var Q_Y=10;Q_Y > 0;Q_Y--){P2N.Studies.displayIndividualSeriesAsLine(o3W,t0u,h1L,"SMA" + Q_Y + ((3150,643.16) != 1993?" ":(1890,6870) >= 1910?(3970,6401) <= (702.52,2550)?("x",0x227e):"I":(9.70e+3,"928.77" - 0)) + t0u.name,z3c);}};P2N.Studies.displayRainbowOsc=function(B_Z,J7V,z06){var d39,V8c,y4c,k8H,A6b,h96,f$x,z6f,K8a,p1s,j6n,w3b,l0x,e_3,J6c,J3G,B_7;d39="Un";d39+="d";d39+="er";d39+=" ";V8c="Ze";V8c+="ro";V8c+=" ";y4c="Neg";y4c+="at";y4c+="ive Bar";k8H="O";k8H+="v";k8H+="er";k8H+=" ";P2N.Studies.displaySeriesAsLine(B_Z,J7V,z06);A6b=B_Z.panels[J7V.panel];h96=J7V.getContext(B_Z);f$x=J7V.getYAxis(B_Z);B_Z.startClip(J7V.panel);if(!J7V.highlight && B_Z.highlightedDraggable){h96.globalAlpha*=0.3;}z6f=B_Z.pixelFromPrice(0,A6b,f$x);K8a=A6b.name != J7V.chart.name;p1s=P2N.Studies.determineColor(J7V.outputs["Positive Bar"]);h96.strokeStyle=p1s;B_Z.plotDataSegmentAsLine(k8H + J7V.name,A6b,{skipTransform:K8a,label:!1,yAxis:f$x});j6n=h96.createLinearGradient(0,z6f,0,f$x.flipped?f$x.bottom:f$x.top);j6n.addColorStop(0,B_Z.containerColor);j6n.addColorStop(+"1",p1s);P2N.prepareChannelFill(B_Z,{skipTransform:K8a,color:j6n,opacity:!J7V.highlight && B_Z.highlightedDraggable?"0.3" - 0:1,panelName:J7V.panel,topBand:"Over " + J7V.name,bottomBand:"Zero " + J7V.name,yAxis:f$x});w3b=P2N.Studies.determineColor(J7V.outputs[y4c]);h96.strokeStyle=w3b;B_Z.plotDataSegmentAsLine("Under " + J7V.name,A6b,{skipTransform:K8a,label:!({}),yAxis:f$x});l0x=h96.createLinearGradient(0,z6f,0,f$x.flipped?f$x.top:f$x.bottom);l0x.addColorStop(0,B_Z.containerColor);l0x.addColorStop(1,w3b);P2N.prepareChannelFill(B_Z,{skipTransform:K8a,color:l0x,opacity:!J7V.highlight && B_Z.highlightedDraggable?0.3:1,panelName:J7V.panel,topBand:V8c + J7V.name,bottomBand:d39 + J7V.name,yAxis:f$x});I7n.N_M(1);var O1Z=I7n.c0C(0,2);e_3=B_Z.layout.candleWidth - O1Z;if(e_3 < +"2"){e_3=1;}B_Z.canvasColor("stx_histogram");if(!J7V.underlay){h96.globalAlpha=+"1";}if(!J7V.highlight && B_Z.highlightedDraggable){h96.globalAlpha*=0.3;}h96.fillStyle="#CCCCCC";for(var Z1h=0;Z1h < z06.length;Z1h++){J6c="_his";J6c+="t";J3G="_hi";J3G+="s";J3G+="t";B_7=z06[Z1h];if(!B_7)continue;if(B_7[J7V.name + J3G] > +"0"){h96.fillStyle=p1s;}else if(B_7[J7V.name + "_hist"] < "0" * 1){h96.fillStyle=w3b;}if(B_7.candleWidth){e_3=Math.floor(Math.max(+"1",B_7.candleWidth - 2));}h96.fillRect(Math.floor(B_Z.pixelFromBar(Z1h,A6b.chart) - e_3 / 2),Math.floor(z6f),Math.floor(e_3),Math.floor(B_Z.pixelFromPrice(B_7[J7V.name + J6c],A6b,f$x) - z6f));}B_Z.endClip();};P2N.Studies.studyLibrary=P2N.extend(P2N.Studies.studyLibrary,{"Rainbow MA":{name:"Rainbow Moving Average",overlay:!!"1",calculateFN:P2N.Studies.calculateRainbow,seriesFN:P2N.Studies.displayRainbowMA,inputs:{Period:2,Field:"field"},outputs:{SMA1:"#FF0000",SMA2:"#FF7F00",SMA3:"#FFFF00",SMA4:k0e,SMA5:"#00FF7F",SMA6:Y0Q,SMA7:"#007FFF",SMA8:D3m,SMA9:c7g,SMA10:E4r}},"Rainbow Osc":{name:"Rainbow Oscillator",calculateFN:P2N.Studies.calculateRainbow,seriesFN:P2N.Studies.displayRainbowOsc,centerline:0,inputs:{Period:2,Field:"field","HHV/LLV Lookback":10},outputs:{"Positive Bar":"#00DD00","Negative Bar":w7b}}});}};r_=P6O=>{var a$B,Y6c,G19,q$o;a$B="undefi";a$B+="ned";Y6c=typeof _CIQ !== a$B?_CIQ:P6O.CIQ;if(!Y6c.Studies){console.error("randomWalk feature requires first activating studies feature.");}else {G19="#000";G19+="0FF";q$o="#F";q$o+="F0000";Y6c.Studies.calculateRandomWalk=function(m2n,b7Y){var d3t,a83,d8o,k_v,o5B,B1N,h7$,l3n,R$7,I7y;d3t=b7Y.chart.scrubbed;if(d3t.length < b7Y.days + +"1"){b7Y.error=!0;return;}for(var R1w=Math.max(2,b7Y.startFrom);R1w < d3t.length;R1w++){a83=+"0";d8o=d3t[R1w].High;k_v=d3t[R1w].Low;o5B=0;B1N=0;for(var C37=1;C37 <= b7Y.days;C37++){if(d3t[R1w].futureTick)break;if(R1w <= C37){o5B=B1N=0;break;}a83+=d3t[R1w - C37].trueRange;h7$=a83 / C37 * Math.sqrt(C37);if(h7$){l3n=(d8o - d3t[R1w - C37].Low) / h7$;R$7=(d3t[R1w - C37].High - k_v) / h7$;o5B=Math.max(o5B,l3n);B1N=Math.max(B1N,R$7);}}if(!d3t[R1w].futureTick && (!isNaN(d8o) || !isNaN(k_v))){I7y="Random Walk";I7y+=" L";I7y+="o";I7y+="w ";d3t[R1w]["Random Walk High " + b7Y.name]=o5B;d3t[R1w][I7y + b7Y.name]=B1N;}}};Y6c.Studies.studyLibrary=Y6c.extend(Y6c.Studies.studyLibrary,{"Random Walk":{name:"Random Walk Index",calculateFN:Y6c.Studies.calculateRandomWalk,outputs:{"Random Walk High":q$o,"Random Walk Low":G19}}});}};O5=H6W=>{var N96;N96=typeof _CIQ !== "undefined"?_CIQ:H6W.CIQ;if(!N96.Studies){console.error("relativeVigor feature requires first activating studies feature.");}else {N96.Studies.calculateRelativeVigor=function(z0I,X8k){var D4K,S05,d_H,d8U,G1Y,L0a,z5O,t0R,j27,h2L,b$9,H_I,S7x;D4K="R";D4K+="el Vig ";S05="_De";S05+="n";S05+="om";d_H="triang";d_H+="ul";d_H+="ar";d8U="triangul";d8U+="ar";G1Y=X8k.chart.scrubbed;if(G1Y.length < X8k.days + ("1" << 64)){X8k.error=!!({});return;}for(L0a=X8k.startFrom;L0a < G1Y.length;L0a++){z5O="_C";z5O+="ha";z5O+="n";z5O+="ge ";t0R=G1Y[L0a];if(!isNaN(t0R.Close) && !isNaN(t0R.Open)){t0R[z5O + X8k.name]=t0R.Close - t0R.Open;}if(!isNaN(t0R.High) && !isNaN(t0R.Low)){t0R["_Range " + X8k.name]=t0R.High - t0R.Low;}}N96.Studies.MA(d8U,4,"_Change " + X8k.name,0,"_Numer",z0I,X8k);N96.Studies.MA(d_H,4,"_Range " + X8k.name,0,S05,z0I,X8k);j27=[];h2L=[];for(L0a=Math.max(X8k.startFrom - X8k.days,0);L0a < G1Y.length;L0a++){if(G1Y[L0a].futureTick)break;if(G1Y[L0a]["_Numer " + X8k.name] === null && G1Y[L0a]["_Denom " + X8k.name] === null)continue;j27.push(G1Y[L0a]["_Numer " + X8k.name]);h2L.push(G1Y[L0a]["_Denom " + X8k.name]);if(j27.length > X8k.days){j27.shift();h2L.shift();}b$9=0;H_I=0;for(S7x=0;S7x < j27.length;S7x++){b$9+=j27[S7x];}for(S7x=0;S7x < h2L.length;S7x++){H_I+=h2L[S7x];}if(H_I === "0" * 1){H_I=0.00000001;}if(L0a < X8k.startFrom)continue;f3BGj.j7J(7);G1Y[L0a]["Rel Vig " + X8k.name]=f3BGj.a$j(b$9,H_I);}N96.Studies.MA("triangular",4,D4K + X8k.name,"0" >> 64,"RelVigSignal",z0I,X8k);for(L0a=X8k.startFrom;L0a < G1Y.length;L0a++){G1Y[L0a][X8k.name + "_hist"]=G1Y[L0a]["Rel Vig " + X8k.name] - G1Y[L0a]["RelVigSignal " + X8k.name];}X8k.outputMap[X8k.name + "_hist"]="";};N96.Studies.studyLibrary=N96.extend(N96.Studies.studyLibrary,{"Rel Vig":{name:"Relative Vigor Index",seriesFN:N96.Studies.displayHistogramWithSeries,calculateFN:N96.Studies.calculateRelativeVigor,inputs:{Period:10},outputs:{"Rel Vig":"auto",RelVigSignal:"#FF0000","Increasing Bar":"#00DD00","Decreasing Bar":"#FF0000"}}});}};i3=I6S=>{var R7i=f3BGj;var H1I,P5U;H1I="u";H1I+="n";H1I+="define";R7i.T$X();H1I+="d";P5U=typeof _CIQ !== H1I?_CIQ:I6S.CIQ;if(!P5U.Studies){console.error("rsi feature requires first activating studies feature.");}else {P5U.Studies.calculateRSI=function(K94,C$x){var Q6n,O3p,k$J,m1O,v2j,h6e,B87,Q2w;Q6n=C$x.chart.scrubbed;O3p=C$x.inputs.Field;R7i.T$X();if(!O3p || O3p == "field"){O3p="Close";}if(Q6n.length < C$x.days + 1){C$x.error=!0;return;}for(var v8L=C$x.startFrom;v8L < Q6n.length;v8L++){if(!v8L)continue;k$J=Q6n[v8L];R7i.j7J(14);m1O=Q6n[R7i.a$j(v8L,1)];if(!k$J[O3p] && k$J[O3p] !== "0" * 1)continue;if(!m1O[O3p] && m1O[O3p] !== 0)continue;v2j=k$J[O3p] - m1O[O3p];h6e=Math.min(v8L,C$x.days);B87=m1O["_avgG " + C$x.name];if(!B87){B87=0;}R7i.N_M(7);B87-=R7i.c0C(B87,h6e);Q2w=m1O["_avgL " + C$x.name];if(!Q2w){Q2w=0;}R7i.j7J(7);Q2w-=R7i.a$j(Q2w,h6e);if(v2j > "0" >> 32){R7i.N_M(7);B87+=R7i.a$j(v2j,h6e);}else if(v2j <= 0){R7i.j7J(7);Q2w-=R7i.a$j(v2j,h6e);}else continue;if(v8L >= C$x.days){if((B87 || B87 !== 0) && (Q2w || Q2w !== 0)){k$J["RSI " + C$x.name]=I8M(B87,Q2w);}}k$J["_avgG " + C$x.name]=B87;k$J["_avgL " + C$x.name]=Q2w;}function I8M(O9Y,C0d){var t84,W79,E7m,R1C;if(C0d === 0){return 100;}t84=1473040642;W79=-262708369;E7m=2;for(var G45=1;R7i.O1W(G45.toString(),G45.toString().length,68909) !== t84;G45++){R7i.N_M(14);R1C=R7i.a$j(O9Y,C0d);R7i.N_M(158);return R7i.a$j(465,"2",R1C,330);}R7i.T$X();if(R7i.O1W(E7m.toString(),E7m.toString().length,1299) !== W79){R7i.N_M(7);R1C=R7i.a$j(O9Y,C0d);R7i.N_M(159);return R7i.a$j(100,"1",R1C,100);}}C$x.zoneOutput="RSI";};P5U.Studies.studyLibrary=P5U.extend(P5U.Studies.studyLibrary,{rsi:{name:"RSI",inputs:{Period:+"14",Field:"field"},calculateFN:P5U.Studies.calculateRSI,range:"0 to 100",outputs:{RSI:"auto"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:+"80",studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}}}});}};f3BGj.T$X();Q7=u4v=>{var E0y=f3BGj;E0y.f3X();var K6o,M65,J3s,l5D,I5R,Y2L,u3i;K6o="un";K6o+="de";K6o+="fin";K6o+="ed";M65=typeof _CIQ !== K6o?_CIQ:u4v.CIQ;if(!M65.Studies){E0y.j7J(14);J3s=E0y.a$j("87314054",0);l5D=1060655783;E0y.N_M(14);I5R=E0y.a$j("2",0);for(var D6e=1;E0y.O1W(D6e.toString(),D6e.toString().length,82177) !== J3s;D6e++){console.error("");I5R+=2;}if(E0y.O1W(I5R.toString(),I5R.toString().length,7892) !== l5D){console.error("");}console.error("schaffTrendCycle feature requires first activating studies feature.");}else {Y2L="a";Y2L+="u";Y2L+="t";Y2L+="o";u3i="fiel";u3i+="d";M65.Studies.calculateSchaff=function(P_V,D3g){var n33,N10,R_K,v4G,f2A,Y8d,P$4,G7V,B2v,i6M,s8I,M6m,k2P,I7_,A0B,p5a,m8v,W5U,I53,u3z,H$L,t35,B3u;n33="_MAC";n33+="D";n33+="2";N10="Cl";N10+="o";N10+="s";N10+="e";R_K="Short";R_K+=" ";R_K+="Cycle";v4G=D3g.chart.scrubbed;function V9H(X$M,s1$,U3X){var A1M,d8m,q$1;A1M=null;d8m=null;for(var A67=s1$ - X$M + 1;A67 <= s1$;A67++){E0y.N_M(1);var y_M=E0y.a$j(1132,6);E0y.j7J(17);var A8Q=E0y.a$j(9615,2,9600,5);E0y.j7J(19);var y5H=E0y.a$j(14,10,656,91169);E0y.N_M(157);var P1Z=E0y.a$j(18,13,17,468,20);E0y.j7J(160);var n7f=E0y.a$j(15,9460,5070,56760);q$1=v4G[A67][U3X + (y_M < A8Q?+"341" != 812.88?708.76 == y5H?(!0,P1Z):" ":(!1,!!({})):(+"1.66e+3",n7f)) + D3g.name];if(!q$1)continue;A1M=A1M === null?q$1:Math.min(A1M,q$1);d8m=d8m === null?q$1:Math.max(d8m,q$1);}return [A1M,d8m];}f2A=D3g.days;Y8d=Number(D3g.inputs[R_K]);P$4=Number(D3g.inputs["Long Cycle"]);if(v4G.length < Math.max(f2A,Y8d,P$4) + 1){D3g.error=!0;return;}G7V=D3g.inputs.Field;if(!G7V || G7V == "field"){G7V=N10;}B2v=0.5;M65.Studies.MA(D3g.inputs["Moving Average Type"],Y8d,G7V,0,"_MACD1",P_V,D3g);M65.Studies.MA(D3g.inputs["Moving Average Type"],P$4,G7V,+"0",n33,P_V,D3g);i6M=0;s8I=0;for(var W76=D3g.startFrom;W76 < v4G.length;W76++){M6m="_";M6m+="MA";M6m+="C";M6m+="D2 ";k2P="_MA";k2P+="C";k2P+="D";k2P+="1 ";I7_=v4G[W76];if(W76 < P$4 - 1)continue;A0B=I7_[k2P + D3g.name];p5a=I7_[M6m + D3g.name];if(A0B || A0B === "0" * 1 || p5a || p5a === 0){E0y.j7J(14);I7_["_MACD " + D3g.name]=E0y.c0C(A0B,p5a);}m8v=I7_["_MACD " + D3g.name];if(W76 < P$4 + (f2A - 1))continue;W5U=V9H(f2A,W76,"_MACD");i6M=W5U[1] > W5U[0]?+"100" * (m8v - W5U[0]) / (W5U[1] - W5U["0" ^ 0]):i6M;if(m8v || m8v === 0){I53="_";I53+="P";I53+="F ";I7_["_PF " + D3g.name]=v4G[W76 - 1][I53 + D3g.name]?v4G[W76 - 1]["_PF " + D3g.name] + B2v * (i6M - v4G[W76 - 1]["_PF " + D3g.name]):i6M;}u3z=I7_["_PF " + D3g.name];if(W76 < P$4 + 2 * (f2A - 1))continue;W5U=V9H(f2A,W76,"_PF");s8I=W5U[1] > W5U[+"0"]?("100" >> 0) * (u3z - W5U[0]) / (W5U[1] - W5U[0]):s8I;if(u3z || u3z === 0){H$L="Res";H$L+="ult ";t35="Res";t35+="u";t35+="lt ";B3u="Res";B3u+="u";B3u+="lt";B3u+=" ";I7_["Result " + D3g.name]=v4G[W76 - 1][B3u + D3g.name]?v4G[W76 - 1][t35 + D3g.name] + B2v * (s8I - v4G[W76 - +"1"][H$L + D3g.name]):s8I;}}};M65.Studies.studyLibrary=M65.extend(M65.Studies.studyLibrary,{Schaff:{name:"Schaff Trend Cycle",range:"0 to 100",calculateFN:M65.Studies.calculateSchaff,inputs:{Period:10,Field:u3i,"Short Cycle":23,"Long Cycle":50,"Moving Average Type":"ema"},parameters:{init:{studyOverZonesEnabled:!"",studyOverBoughtValue:+"75",studyOverBoughtColor:"auto",studyOverSoldValue:25,studyOverSoldColor:Y2L}}}});}};Z4=F1G=>{var o5b=f3BGj;o5b.T$X();var t4i,i$k,C9j,G2t;t4i="un";t4i+="defined";i$k=typeof _CIQ !== t4i?_CIQ:F1G.CIQ;if(!i$k.Studies){C9j="shinohara feature requires first activating stud";C9j+="ies feature.";console.error(C9j);}else {G2t="#E99B";G2t+="5";G2t+="4";i$k.Studies.calculateShinohara=function(c7R,M38){o5b.T$X();var v0d,R6f,a$X,b7F;v0d=M38.chart.scrubbed;if(v0d.length < M38.days + 1){M38.error=!!({});return;}R6f={weakNum:0,weakDen:0,strongNum:0,strongDen:0};if(M38.startFrom > 1){a$X="_accu";a$X+="ms ";R6f=i$k.clone(v0d[M38.startFrom - +"1"][a$X + M38.name]);}for(var B$_=M38.startFrom;B$_ < v0d.length;B$_++){R6f.weakNum+=v0d[B$_].High - v0d[B$_].Close;R6f.weakDen+=v0d[B$_].Close - v0d[B$_].Low;if(B$_ > "0" * 1){o5b.N_M(21);var x1A=o5b.a$j(193,12,16);R6f.strongNum+=v0d[B$_].High - v0d[B$_ - x1A].Close;o5b.j7J(137);var w8s=o5b.a$j(2,6,5,2);R6f.strongDen+=v0d[B$_ - w8s].Close - v0d[B$_].Low;}if(B$_ >= M38.days){b7F="Weak R";b7F+="ati";b7F+="o";b7F+=" ";R6f.weakNum-=v0d[B$_ - M38.days].High - v0d[B$_ - M38.days].Close;R6f.weakDen-=v0d[B$_ - M38.days].Close - v0d[B$_ - M38.days].Low;o5b.j7J(14);var w3k=o5b.a$j(117,17);v0d[B$_][b7F + M38.name]=w3k * R6f.weakNum / R6f.weakDen;if(B$_ > M38.days){o5b.N_M(23);var p31=o5b.c0C(0,4,3,8);R6f.strongNum-=v0d[B$_ - M38.days].High - v0d[B$_ - M38.days - p31].Close;o5b.N_M(13);var R9T=o5b.c0C(0,6,5,0);R6f.strongDen-=v0d[B$_ - M38.days - R9T].Close - v0d[B$_ - M38.days].Low;v0d[B$_]["Strong Ratio " + M38.name]=+"100" * R6f.strongNum / R6f.strongDen;}}v0d[B$_]["_accums " + M38.name]=i$k.clone(R6f);}};i$k.Studies.studyLibrary=i$k.extend(i$k.Studies.studyLibrary,{Shinohara:{name:"Shinohara Intensity Ratio",calculateFN:i$k.Studies.calculateShinohara,inputs:{Period:+"26"},outputs:{"Strong Ratio":G2t,"Weak Ratio":"#5F7CB8"}}});}};T0=C1j=>{var c2y,C3o,g$o,p8t,n6n;c2y=typeof _CIQ !== "undefined"?_CIQ:C1j.CIQ;if(!c2y.Studies){console.error("stochastics feature requires first activating studies feature.");}else {C3o="#";C3o+="F";C3o+="F000";C3o+="0";g$o="f";g$o+="ie";g$o+="l";g$o+="d";p8t="#F";p8t+="F";p8t+="00";p8t+="00";n6n="Stocha";n6n+="sti";n6n+="c Momentum Index";c2y.Studies.calculateStochastics=function(O9m,e$I){var r8a=f3BGj;var e3t,A3F,i6H,H$$,S1K,a1O,e6h,D08,t6E,G1I;e3t="_F";e3t+="a";e3t+="st%K ";A3F="fie";A3F+="ld";if(!e$I.smooth){e$I.smooth=e$I.inputs.Smooth;}r8a.f3X();i6H=e$I.inputs.Field;if(!i6H || i6H == A3F){i6H="Close";}H$$=e$I.inputs["%K Periods"];if(!H$$){H$$=e$I.days;}S1K=e$I.chart.scrubbed;function N3w(T_i,Z1l,O10){var s48,w9v,H_Z,F41,W5c,K3B,z_W;r8a.N_M(15);s48=r8a.a$j(T_i,1,O10);w9v=Number.MAX_VALUE * -("1" - 0);r8a.f3X();H_Z=Number.MAX_VALUE;for(var g4I=s48;g4I <= T_i;g4I++){F41="L";F41+="ow";W5c=S1K[g4I][Z1l == "Close"?F41:Z1l];K3B=S1K[g4I][Z1l == "Close"?"High":Z1l];if(!W5c && W5c !== 0)continue;if(!K3B && K3B !== 0)continue;H_Z=Math.min(H_Z,W5c);w9v=Math.max(w9v,K3B);}if(w9v == Number.MAX_VALUE * -1 || H_Z == Number.MAX_VALUE){return null;}z_W=w9v == H_Z?0:(S1K[T_i][Z1l] - H_Z) / (w9v - H_Z) * 100;return z_W;}if(S1K.length < Math.max(H$$,e$I.days) + 1){e$I.error=!!"1";return;}a1O=e$I.inputs["%K Smoothing Periods"];if(a1O && !e$I.inputs.Fast){e$I.smooth=!!1;}else if(e$I.smooth){a1O=3;}e6h=e$I.inputs["%D Periods"];if(!e6h){e6h=+"3";}if(e$I.outputs.Fast){D08="F";D08+="a";D08+="st";e$I.outputMap={};e$I.outputMap["%K " + e$I.name]=D08;e$I.outputMap["%D " + e$I.name]="Slow";}for(var k_a=Math.max(H$$,e$I.startFrom);k_a < S1K.length;k_a++){t6E="_F";t6E+="ast%K ";G1I=N3w(k_a,i6H,H$$);if(G1I !== null){S1K[k_a][t6E + e$I.name]=N3w(k_a,i6H,H$$);}}c2y.Studies.MA("simple",e$I.smooth?a1O:1,e3t + e$I.name,0,"%K",O9m,e$I);c2y.Studies.MA("simple",e6h,"%K " + e$I.name,0,"%D",O9m,e$I);};c2y.Studies.calculateStochMomentum=function(D$k,K7J){var U8y=f3BGj;var d8k,N2S,A6v,O5U,Z$1,N0I,Y99,o0q,X0o,O$8,l4f,e_w,Q1C,f2I,T8B,A2v,a2U;d8k="%";d8k+="K ";N2S="_";N2S+="D";N2S+="HL1";N2S+=" ";A6v="_D";A6v+="H";A6v+="L";A6v+=" ";O5U="exponent";O5U+="ial";Z$1="_H";Z$1+="S2";N0I="_H";N0I+="S";N0I+="1";Y99="exp";Y99+="onen";Y99+="tial";o0q="%K Smoo";o0q+="thi";o0q+="ng Periods";X0o="%";X0o+="K Perio";U8y.T$X();X0o+="ds";O$8=Number(K7J.inputs[X0o]);l4f=Number(K7J.inputs[o0q]);function v5_(Z5l,v83){var L4Y,P8L;L4Y=null;P8L=null;U8y.f3X();for(var q0p=v83 - Z5l + ("1" | 0);q0p <= v83;q0p++){L4Y=L4Y === null?f2I[q0p].Low:Math.min(L4Y,f2I[q0p].Low);P8L=P8L === null?f2I[q0p].High:Math.max(P8L,f2I[q0p].High);}return [L4Y,P8L];}e_w=Number(K7J.inputs["%K Double Smoothing Periods"]);Q1C=Number(K7J.inputs["%D Periods"]);f2I=K7J.chart.scrubbed;if(f2I.length < O$8 + l4f + e_w - 1 || f2I.length < Q1C){K7J.error=!0;return;}for(T8B=Math.max(O$8,K7J.startFrom) - 1;T8B < f2I.length;T8B++){A2v=f2I[T8B];a2U=v5_(O$8,T8B);U8y.j7J(14);var s5t=U8y.c0C(5,4);U8y.j7J(161);var k_O=U8y.c0C(0,414,10,16,16);A2v["_H " + K7J.name]=A2v.Close - (a2U[0] + a2U[s5t]) / k_O;U8y.j7J(14);var C8$=U8y.a$j(10,9);A2v["_DHL " + K7J.name]=a2U[C8$] - a2U[0];}c2y.Studies.MA(Y99,l4f,"_H " + K7J.name,0,N0I,D$k,K7J);c2y.Studies.MA("exponential",e_w,"_HS1 " + K7J.name,0,Z$1,D$k,K7J);c2y.Studies.MA(O5U,l4f,A6v + K7J.name,+"0","_DHL1",D$k,K7J);c2y.Studies.MA("exponential",e_w,N2S + K7J.name,0,"_DHL2",D$k,K7J);for(T8B=O$8 - 1;T8B < f2I.length;T8B++){U8y.j7J(61);var G5C=U8y.c0C(1100,1100,99);f2I[T8B]["%K " + K7J.name]=f2I[T8B]["_HS2 " + K7J.name] / (0.5 * f2I[T8B]["_DHL2 " + K7J.name]) * G5C;}c2y.Studies.MA(K7J.inputs["%D Moving Average Type"],Q1C,d8k + K7J.name,0,"%D",D$k,K7J);K7J.zoneOutput="%K";};c2y.Studies.studyLibrary=c2y.extend(c2y.Studies.studyLibrary,{"Stch Mtm":{name:n6n,calculateFN:c2y.Studies.calculateStochMomentum,inputs:{"%K Periods":10,"%K Smoothing Periods":3,"%K Double Smoothing Periods":3,"%D Periods":"10" >> 64,"%D Moving Average Type":"ema"},outputs:{"%K":"auto","%D":p8t},parameters:{init:{studyOverZonesEnabled:!!1,studyOverBoughtValue:40,studyOverBoughtColor:"auto",studyOverSoldValue:-("40" >> 0),studyOverSoldColor:"auto"}}},stochastics:{name:"Stochastics (Simple)",range:"0 to 100",calculateFN:c2y.Studies.calculateStochastics,inputs:{Period:14,Field:g$o,Smooth:!!1},outputs:{Fast:"auto",Slow:C3o},parameters:{init:{studyOverZonesEnabled:!!({}),studyOverBoughtValue:80,studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}}},Stochastics:{name:"Stochastics",range:"0 to 100",calculateFN:c2y.Studies.calculateStochastics,inputs:{Field:"field","%K Periods":14,Fast:![],"%K Smoothing Periods":3,"%D Periods":3},outputs:{"%K":"auto","%D":"#FF0000"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:+"80",studyOverBoughtColor:"auto",studyOverSoldValue:20,studyOverSoldColor:"auto"}},attributes:{"%K Smoothing Periods":{hidden:function(){f3BGj.T$X();return this.inputs.Fast;}}},centerline:+"50"}});}};x$=T1X=>{var O_B=f3BGj;O_B.T$X();var u9Y;u9Y=typeof _CIQ !== "undefined"?_CIQ:T1X.CIQ;if(!u9Y.Studies){console.error("supertrend feature requires first activating studies feature.");}else {u9Y.Studies.calculateSupertrend=function(F59,q_R){var x5N,T3l,J65,x9w,M8Y,a9R,a5A,k0V,e1U,z7h,u_b;x5N=q_R.chart.scrubbed;if(x5N.length < q_R.days + 1){q_R.error=!!1;return;}u9Y.Studies.calculateStudyATR(F59,q_R);for(var f5w=q_R.startFrom;f5w < x5N.length;f5w++){T3l="_Down";T3l+="tren";T3l+="d ";J65="A";J65+="T";J65+="R";J65+=" ";x9w=x5N[f5w];if(!x9w)continue;O_B.N_M(162);var D6t=O_B.a$j(3,6,3,13,10);M8Y=(x9w.High + x9w.Low) / D6t;a9R=q_R.inputs.Multiplier * x9w[J65 + q_R.name];O_B.j7J(14);a5A=O_B.c0C(M8Y,a9R);O_B.j7J(1);k0V=O_B.c0C(M8Y,a9R);if(f5w){e1U="_";e1U+="Downtr";e1U+="end ";if(x5N[f5w - 1] && x5N[f5w - 1].Close && x5N[f5w - ("1" << 64)].Close > x5N[f5w - 1]["_Uptrend " + q_R.name] && x5N[f5w - ("1" ^ 0)]["_Uptrend " + q_R.name] > a5A){O_B.j7J(14);a5A=x5N[O_B.c0C(f5w,1)]["_Uptrend " + q_R.name];}if(x5N[f5w - 1] && x5N[f5w - "1" * 1].Close && x5N[f5w - 1].Close < x5N[f5w - 1]["_Downtrend " + q_R.name] && x5N[f5w - 1]["_Downtrend " + q_R.name] < k0V){O_B.j7J(14);k0V=x5N[O_B.a$j(f5w,1)][e1U + q_R.name];}}O_B.N_M(31);x9w["_Direction " + q_R.name]=O_B.c0C("1",32);if(f5w){z7h="_Direction";z7h+=" ";u_b="_Direction";u_b+=" ";O_B.j7J(14);x9w[u_b + q_R.name]=x5N[O_B.c0C(f5w,1)]["_Direction " + q_R.name];if(x9w.Close > x5N[f5w - 1]["_Downtrend " + q_R.name]){x9w[z7h + q_R.name]=1;}else if(x9w.Close < x5N[f5w - 1]["_Uptrend " + q_R.name]){x9w["_Direction " + q_R.name]=-1;}}x9w["_Uptrend " + q_R.name]=a5A;x9w[T3l + q_R.name]=k0V;x9w["Trend " + q_R.name]=x9w["_Direction " + q_R.name] > 0?a5A:k0V;if(!f5w)continue;}q_R.outputMap={};q_R.outputMap["Trend " + q_R.name]="";};u9Y.Studies.displaySupertrend=function(r5$,A2N,X96){var a_H,I5_,e6q,Q0a,T84,Q1r,B$K,V5q,T7j,I8D,i7J,A$E;a_H="T";a_H+="r";a_H+="e";a_H+="nd ";I5_=r5$.panels[A2N.panel];e6q=A2N.getContext(r5$);Q0a=A2N.getYAxis(r5$);T84={skipTransform:I5_.name != A2N.chart.name,skipProjections:!!({}),label:r5$.preferences.labels,yAxis:Q0a,highlight:A2N.highlight};e6q.strokeStyle=J2z(r5$,X96[X96.length - 1]);e6q.lineWidth=2;if(A2N.highlight){e6q.lineWidth=1.5;}Q1r=a_H + A2N.name;for(var t4p=+"0";I5_.chart.transformFunc && Q0a != I5_.chart.yAxis && t4p < X96.length;t4p++){B$K=X96[t4p];if(B$K && B$K.transform){B$K.transform[Q1r]=I5_.chart.transformFunc(r5$,I5_.chart,B$K[Q1r]);}}r5$.plotDataSegmentAsLine(Q1r,I5_,T84,J2z);e6q.lineWidth=+"1";e6q.globalAlpha=1;r5$.startClip(A2N.panel);if(!A2N.highlight && r5$.highlightedDraggable){e6q.globalAlpha*=0.3;}function J2z(W3M,S6Z,H8H){var K1L,y_j,a_9,B_i;K1L="_";K1L+="D";K1L+="irec";O_B.f3X();K1L+="tion ";if(S6Z && S6Z[K1L + A2N.name] < +"0"){return A2N.outputs.Downtrend;}y_j=-1291900641;a_9=-806501474;B_i=2;for(var O_q=+"1";O_B.S9Y(O_q.toString(),O_q.toString().length,45473) !== y_j;O_q++){return A2N.outputs.Uptrend;}if(O_B.S9Y(B_i.toString(),B_i.toString().length,46148) !== a_9){return A2N.outputs.Uptrend;}}O_B.N_M(163);var U_p=O_B.a$j(18,116,4,3,416);O_B.j7J(1);var t5D=O_B.c0C(981,6863);O_B.j7J(3);O_B.f3X();var k2Y=O_B.c0C(15658,10,16626);O_B.N_M(122);var Z$d=O_B.a$j(16,18,1,3);O_B.N_M(3);var N9Z=O_B.c0C(7,9,0);V5q=e6q.measureText(U_p != t5D?"\u25B2":(k2Y,+"224.01") > "271.12" * Z$d?!({}):(574.82,!1)).width / N9Z;for(T7j="0" ^ 0;T7j < X96.length;T7j++){if(!X96[T7j] || !X96[T7j - 1])continue;if(X96[T7j - 1]["_Direction " + A2N.name] > X96[T7j]["_Direction " + A2N.name]){e6q.fillStyle=A2N.outputs.Downtrend;e6q.textBaseline="bottom";I8D=r5$.pixelFromPrice(X96[T7j].High,I5_,Q0a);for(var H7P=5;H7P <= 45;H7P+="10" * 1){if(Q0a.flipped){e6q.fillText("\u25B2",r5$.pixelFromBar(T7j) - V5q,I8D + H7P);}else {e6q.fillText((5411,5634) != 1404?"\u25BC":!"",r5$.pixelFromBar(T7j) - V5q,I8D - H7P);}}}else if(X96[T7j - 1]["_Direction " + A2N.name] < X96[T7j]["_Direction " + A2N.name]){i7J="t";i7J+="op";e6q.fillStyle=A2N.outputs.Uptrend;e6q.textBaseline=i7J;A$E=r5$.pixelFromPrice(X96[T7j].Low,I5_,Q0a);for(var K4k=5;K4k <= "45" - 0;K4k+=10){if(Q0a.flipped){e6q.fillText((108.83,851) != 2670?"\u25BC":+"8040" != 56.89?3828 !== (524.49,858.99)?8.30e+3:("t",1.03e+3):855.95,r5$.pixelFromBar(T7j) - V5q,A$E - K4k);}else {e6q.fillText(147 <= (3706,1760)?783.05 !== "5090" - 0?"\u25B2":"8973" << 32 == (6026,3312)?![]:"t":(868.37,408.07),r5$.pixelFromBar(T7j) - V5q,A$E + K4k);}}}}r5$.endClip();};u9Y.Studies.studyLibrary=u9Y.extend(u9Y.Studies.studyLibrary,{Supertrend:{name:"Supertrend",overlay:!"",seriesFN:u9Y.Studies.displaySupertrend,calculateFN:u9Y.Studies.calculateSupertrend,inputs:{Period:7,Multiplier:3},outputs:{Uptrend:"#8cc176",Downtrend:"#b82c0c"},attributes:{Multiplier:{min:"0.1" - 0,step:0.1}}}});}};k4=M_u=>{var U5u=f3BGj;var r7I,R0Y;r7I="unde";U5u.T$X();r7I+="fi";r7I+="n";r7I+="ed";R0Y=typeof _CIQ !== r7I?_CIQ:M_u.CIQ;if(!R0Y.Studies){console.error("swingIndex feature requires first activating studies feature.");}else {R0Y.Studies.calculateSwingIndex=function(O5o,W$z){var i8U,R33,o6L,c6H,e0E,N66,S_d,X0h,i7C,Q3y,L$6,K2v,M1X;i8U="Re";i8U+="sult ";R33=W$z.inputs["Limit Move Value"];if(R33 === null || isNaN(R33)){R33=99999;}o6L=W$z.chart.scrubbed;c6H=0;if(W$z.startFrom > 1){c6H=o6L[W$z.startFrom - +"1"][i8U + W$z.name];}for(var I7b=Math.max(1,W$z.startFrom);I7b < o6L.length;I7b++){e0E="Re";e0E+="sult ";N66=Math.abs(o6L[I7b].High - o6L[I7b - 1].Close);S_d=Math.abs(o6L[I7b].Low - o6L[I7b - 1].Close);X0h=Math.abs(o6L[I7b].High - o6L[I7b].Low);i7C=Math.abs(o6L[I7b - +"1"].Close - o6L[I7b - 1].Open);Q3y=Math.max(N66,S_d);L$6=Math.max(X0h,Q3y);U5u.N_M(25);K2v=U5u.c0C(0.25,i7C,L$6);if(L$6 == N66){U5u.N_M(5);K2v-=U5u.c0C(S_d,0.5);}else if(L$6 == S_d){U5u.N_M(5);K2v-=U5u.c0C(N66,0.5);}U5u.N_M(164);var U69=U5u.c0C(3,20,29950,100,5);U5u.j7J(14);var z8O=U5u.a$j(14,13);U5u.j7J(34);var Q55=U5u.c0C(2,17,17);U5u.j7J(9);var E9a=U5u.c0C(104,15,7);M1X=U69 * (o6L[I7b].Close - o6L[I7b - z8O].Close + 0.5 * (o6L[I7b].Close - o6L[I7b].Open) + 0.25 * (o6L[I7b - Q55].Close - o6L[I7b - E9a].Open)) / K2v * (Q3y / R33);if(K2v === 0 || R33 === ("0" | 0)){M1X=0;}if(W$z.type == "Swing"){c6H=0;}c6H+=M1X;o6L[I7b][e0E + W$z.name]=c6H;}};R0Y.Studies.studyLibrary=R0Y.extend(R0Y.Studies.studyLibrary,{"Acc Swing":{name:"Accumulative Swing Index",calculateFN:R0Y.Studies.calculateSwingIndex,inputs:{"Limit Move Value":+"0.5"}},Swing:{name:"Swing Index",calculateFN:R0Y.Studies.calculateSwingIndex,inputs:{"Limit Move Value":0.5}}});}};N1=t59=>{var B_4=f3BGj;var t$3,O4k,n3q,l2T;t$3=typeof _CIQ !== "undefined"?_CIQ:t59.CIQ;B_4.f3X();if(!t$3.Studies){console.error("trendIntensity feature requires first activating studies feature.");}else {O4k="au";O4k+="t";O4k+="o";n3q="fi";n3q+="e";n3q+="l";n3q+="d";l2T="0 t";l2T+="o";l2T+=" 100";t$3.Studies.calculateTrendIntensity=function(z2t,U1L){var K9C,X3q,A47,D_q,h9b,B3H,n9J,E8N,z6W,r4v,J8Y,K0q;K9C="T";K9C+="I";K9C+="I";B_4.T$X();K9C+=" ";X3q="Signal ";X3q+="Period";A47="e";A47+="m";A47+="a";D_q="m";D_q+="a";h9b=U1L.chart.scrubbed;if(h9b.length < U1L.days + 1){U1L.error=!![];return;}B3H=U1L.inputs.Field;function B0K(z0$,R_7){if(Math.abs(R_7) < 0.00000001){return 100;}B_4.f3X();B_4.j7J(165);return B_4.a$j(1,z0$,R_7,100,0,"100");}if(!B3H || B3H == "field"){B3H="Close";}t$3.Studies.MA(D_q,U1L.days,B3H,0,"_SMA",z2t,U1L);n9J=0;E8N=0;J8Y=[];K0q=Math.ceil(U1L.days / ("2" | 2));for(z6W=Math.max(0,U1L.startFrom - K0q);z6W < h9b.length;z6W++){if(!h9b[z6W]["_SMA " + U1L.name] && h9b[z6W]["_SMA " + U1L.name] !== 0)continue;r4v=h9b[z6W][B3H] - h9b[z6W]["_SMA " + U1L.name];if(r4v < "0" << 0){B_4.N_M(166);E8N+=B_4.a$j(r4v,1);}else {n9J+=r4v;}J8Y.push(r4v);if(J8Y.length > K0q){r4v=J8Y.shift();if(r4v < 0){B_4.j7J(166);E8N-=B_4.c0C(r4v,1);}else {n9J-=r4v;}}if(z6W < U1L.startFrom)continue;h9b[z6W]["TII " + U1L.name]=B0K(n9J,E8N);}t$3.Studies.MA(A47,U1L.inputs[X3q],K9C + U1L.name,0,"Signal",z2t,U1L);};t$3.Studies.studyLibrary=t$3.extend(t$3.Studies.studyLibrary,{"Trend Int":{name:"Trend Intensity Index",calculateFN:t$3.Studies.calculateTrendIntensity,range:l2T,inputs:{Period:"14" >> 0,Field:n3q,"Signal Period":9},outputs:{TII:"auto",Signal:"#FF0000"},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:80,studyOverBoughtColor:O4k,studyOverSoldValue:20,studyOverSoldColor:"auto"}}}});}};a7=G$9=>{var A4H;A4H=typeof _CIQ !== "undefined"?_CIQ:G$9.CIQ;if(!A4H.Studies){console.error("trix feature requires first activating studies feature.");}else {A4H.Studies.calculateTRIX=function(Z0U,s7l){var W5Y=f3BGj;var w2z,w7C,I3z,W16,b0I,k1m,F6r,p2V;w2z="_";w2z+="MA";w2z+="1 ";w7C=s7l.chart.scrubbed;if(w7C.length < s7l.days + "1" * 1){s7l.error=!!({});return;}I3z=s7l.name;W5Y.j7J(1);W16=["Close",W5Y.a$j(w2z,I3z),W5Y.a$j("_MA2 ",I3z),W5Y.c0C("_MA3 ",I3z)];for(var m3A=0;m3A < W16.length - 1;m3A++){A4H.Studies.MA("exponential",s7l.days,W16[m3A],0,"_MA" + (m3A + 1).toString(),Z0U,s7l);}b0I=W16[3];for(var j2k=Math.max(1,s7l.startFrom);j2k < w7C.length;j2k++){k1m="R";k1m+="e";k1m+="sult";k1m+=" ";W5Y.N_M(167);F6r=w7C[W5Y.a$j(j2k,1,"1")][b0I];if(!F6r)continue;p2V=w7C[j2k][b0I];if(p2V || p2V === 0){W5Y.j7J(1);w7C[j2k][W5Y.a$j(k1m,I3z)]=W5Y.c0C("100",p2V,F6r,1,W5Y.j7J(168));}}};A4H.Studies.studyLibrary=A4H.extend(A4H.Studies.studyLibrary,{TRIX:{name:"TRIX",calculateFN:A4H.Studies.calculateTRIX}});}};h3=L2j=>{var p_y,X2S,r0c;p_y="undefi";p_y+="ned";X2S=typeof _CIQ !== p_y?_CIQ:L2j.CIQ;if(!X2S.Studies){r0c="twiggsMoneyFlow feature requires first activating stu";r0c+="dies feature.";console.error(r0c);}else {X2S.Studies.calculateTwiggsMoneyFlow=function(a8r,h6h){var Z5T=f3BGj;var T4x,D0p,m5X,O96,Q7T,b44,Y2f,d92,r37,M0B,x6$;T4x=h6h.chart.scrubbed;if(T4x.length < h6h.days){h6h.error=!![];return;}D0p=0;m5X=0;Z5T.N_M(3);var J1x=Z5T.a$j(4,5,0);O96=T4x[h6h.startFrom - J1x];if(O96){Q7T="_s";Q7T+="u";Q7T+="mV ";b44="_";b44+="sumMF";b44+=" ";if(O96[b44 + h6h.name]){D0p=O96["_sumMF " + h6h.name];}if(O96[Q7T + h6h.name]){m5X=O96["_sumV " + h6h.name];}}for(var x8O=Math.max(1,h6h.startFrom);x8O < T4x.length;x8O++){Y2f="_su";Y2f+="mV";Y2f+=" ";d92="_su";d92+="mMF";d92+=" ";r37="_";r37+="M";r37+="FV ";M0B=Math.max(T4x[x8O - 1].Close,T4x[x8O].High);x6$=Math.min(T4x[x8O - +"1"].Close,T4x[x8O].Low);Z5T.j7J(13);var S84=Z5T.c0C(15,13,5,9);Z5T.N_M(55);var p2y=Z5T.a$j(4,13999986,54999945,1);T4x[x8O]["_MFV " + h6h.name]=T4x[x8O].Volume * (S84 * T4x[x8O].Close - M0B - x6$) / (M0B - x6$ === 0?p2y:M0B - x6$);if(x8O > h6h.days - ("1" << 64)){D0p*=(h6h.days - +"1") / h6h.days;Z5T.j7J(34);var Q1a=Z5T.c0C(8,1,7);m5X*=(h6h.days - Q1a) / h6h.days;}D0p+=T4x[x8O][r37 + h6h.name];m5X+=T4x[x8O].Volume;if(x8O > h6h.days - +"1"){if(m5X){Z5T.N_M(7);T4x[x8O]["Result " + h6h.name]=Z5T.c0C(D0p,m5X > 0?m5X:+"999999");}}T4x[x8O][d92 + h6h.name]=D0p;T4x[x8O][Y2f + h6h.name]=m5X;}};X2S.Studies.studyLibrary=X2S.extend(X2S.Studies.studyLibrary,{Twiggs:{name:"Twiggs Money Flow",calculateFN:X2S.Studies.calculateTwiggsMoneyFlow,inputs:{Period:"21" >> 32}}});}};C6=h$X=>{var C_X,a0w,J7F,A8W;C_X="undefi";C_X+="ned";a0w=typeof _CIQ !== C_X?_CIQ:h$X.CIQ;if(!a0w.Studies){J7F="typicalPrice feature requires first activating ";J7F+="studies featu";J7F+="re.";console.error(J7F);}else if(!a0w.Studies.calculateTypicalPrice){console.error("typicalPrice feature requires first activating medianPrice feature.");}else {A8W="Weight";A8W+="ed Close";a0w.Studies.studyLibrary=a0w.extend(a0w.Studies.studyLibrary,{"Typical Price":{name:"Typical Price",calculateFN:a0w.Studies.calculateTypicalPrice,inputs:{Period:14}},"Weighted Close":{name:A8W,calculateFN:a0w.Studies.calculateTypicalPrice,inputs:{Period:+"14"}}});}};M$=x1K=>{var r8c,X4N,L0e,o7Q;r8c=+"1978925238";X4N=-1962589708;L0e=2;for(var x_4=1;f3BGj.S9Y(x_4.toString(),x_4.toString().length,+"39212") !== r8c;x_4++){o7Q=~_CIQ === ""?_CIQ:x1K.CIQ;L0e+=2;}f3BGj.f3X();if(f3BGj.S9Y(L0e.toString(),L0e.toString().length,50882) !== X4N){o7Q=~_CIQ === ""?_CIQ:x1K.CIQ;}o7Q=typeof _CIQ !== "undefined"?_CIQ:x1K.CIQ;if(!o7Q.Studies){console.error("ulcerIndex feature requires first activating studies feature.");}else {o7Q.Studies.calculateUlcerIndex=function(W52,h6g){var G8z,l3Y,Y5E,S3s,h7q,M7u,f1w;G8z="_";G8z+="M";G8z+="A";l3Y="s";function H7Z(f93,l6A,r9_){var w4D;w4D=null;for(var x7F=l6A - f93 + 1;x7F <= l6A;x7F++){if(x7F < 0)continue;w4D=w4D === null?Y5E[x7F][r9_]:Math.max(w4D,Y5E[x7F][r9_]);}return w4D;}l3Y+="i";l3Y+="m";l3Y+="ple";Y5E=h6g.chart.scrubbed;if(Y5E.length < ("2" | 0) * h6g.days - 1){h6g.error=!0;return;}S3s=h6g.inputs.Field;if(!S3s || S3s == "field"){S3s="Close";}for(h7q=Math.max(h6g.startFrom,h6g.days - 1);h7q < Y5E.length;h7q++){M7u="_P";M7u+="D";M7u+="2 ";Y5E[h7q][M7u + h6g.name]=Math.pow(100 * (Y5E[h7q][S3s] / H7Z(h6g.days,h7q,S3s) - 1),2);}o7Q.Studies.MA(l3Y,h6g.days,"_PD2 " + h6g.name,0,G8z,W52,h6g);for(h7q=Math.max(h6g.startFrom,2 * (h6g.days - 1));h7q < Y5E.length;h7q++){f1w=Y5E[h7q]["_MA " + h6g.name];if(f1w || f1w === 0){Y5E[h7q]["Result " + h6g.name]=Math.sqrt(f1w);}}};o7Q.Studies.studyLibrary=o7Q.extend(o7Q.Studies.studyLibrary,{Ulcer:{name:"Ulcer Index",calculateFN:o7Q.Studies.calculateUlcerIndex,inputs:{Period:14,Field:"field"}}});}};q7=p17=>{var u0Q=f3BGj;var s9e,e6o,z60;s9e=typeof _CIQ !== "undefined"?_CIQ:p17.CIQ;u0Q.T$X();if(!s9e.Studies){e6o="ultimateOscillator feature require";e6o+="s first activating studies feat";e6o+="ure.";console.error(e6o);}else {z60="U";z60+="ltim";z60+="ate Oscillator";s9e.Studies.calculateUltimateOscillator=function(Q7F,k9h){var f91,k1x,E3P,c8N,H8a,q4I,T5U,o3D,E5H,A6p,y5K,T$e,c20,j$3,D_T,j4e,I27,E47,l7P;f91=k9h.chart.scrubbed;k1x=[k9h.inputs["Cycle 1"],k9h.inputs["Cycle 2"],k9h.inputs["Cycle 3"]];E3P=Math.max(k1x[0],k1x[1],k1x[2]);if(f91.length < E3P + 1){k9h.error=!0;return;}u0Q.f3X();c8N=k1x[0] * k1x[1];H8a=k1x[0] * k1x[+"2"];u0Q.j7J(13);var J6j=u0Q.c0C(3,11,7,0);u0Q.N_M(169);var P5k=u0Q.a$j(1,11,3,16);q4I=k1x[J6j] * k1x[P5k];T5U=[+"0",0,0];o3D=[0,0,0];if(k9h.startFrom){E5H="_acc";E5H+="tr ";if(f91[k9h.startFrom - "1" * 1]["_accbp " + k9h.name]){T5U=f91[k9h.startFrom - ("1" << 64)]["_accbp " + k9h.name].slice();}if(f91[k9h.startFrom - 1]["_acctr " + k9h.name]){o3D=f91[k9h.startFrom - ("1" - 0)][E5H + k9h.name].slice();}}for(var f3u=Math.max(+"1",k9h.startFrom);f3u < f91.length;f3u++){A6p="Re";A6p+="s";A6p+="ult ";y5K="_a";y5K+="cct";y5K+="r ";T$e=Math.min(f91[f3u].Low,f91[f3u - "1" * 1].Close);c20=f91[f3u].Close - T$e;u0Q.j7J(170);var a2j=u0Q.c0C(6,2,7,0);j$3=Math.max(f91[f3u].High,f91[f3u - a2j].Close) - T$e;for(var r65=0;r65 < k1x.length;r65++){T5U[r65]+=c20;o3D[r65]+=j$3;if(f3u > k1x[r65]){D_T=Math.min(f91[f3u - k1x[r65]].Low,f91[f3u - k1x[r65] - 1].Close);j4e=f91[f3u - k1x[r65]].Close - D_T;u0Q.j7J(171);var N9x=u0Q.c0C(29,2,15,2,0);I27=Math.max(f91[f3u - k1x[r65]].High,f91[f3u - k1x[r65] - N9x].Close) - D_T;T5U[r65]-=j4e;o3D[r65]-=I27;}}f91[f3u]["_accbp " + k9h.name]=T5U.slice();f91[f3u][y5K + k9h.name]=o3D.slice();if(f3u < E3P)continue;u0Q.j7J(57);var l3U=u0Q.c0C(952,10,12,7,8);u0Q.j7J(27);var k60=u0Q.a$j(7,6);u0Q.N_M(172);var I_W=u0Q.a$j(7,5,1,5);u0Q.N_M(173);var U8Y=u0Q.a$j(15,1,19,5,10);E47=q4I * T5U[0] / o3D[0] + H8a * T5U[l3U] / o3D[k60] + c8N * T5U[I_W] / o3D[U8Y];u0Q.N_M(82);l7P=u0Q.a$j(c8N,H8a,q4I);u0Q.N_M(111);f91[f3u][A6p + k9h.name]=u0Q.a$j(E47,l7P,100);}};s9e.Studies.studyLibrary=s9e.extend(s9e.Studies.studyLibrary,{Ultimate:{name:z60,calculateFN:s9e.Studies.calculateUltimateOscillator,inputs:{"Cycle 1":7,"Cycle 2":14,"Cycle 3":28},parameters:{init:{studyOverZonesEnabled:!![],studyOverBoughtValue:70,studyOverBoughtColor:"auto",studyOverSoldValue:30,studyOverSoldColor:"auto"}}}});}};a9=I5u=>{var H1N=f3BGj;H1N.f3X();var y6Z,R3A,g26,H5b,G$v,g90,M1A;y6Z=typeof _CIQ !== "undefined"?_CIQ:I5u.CIQ;if(!y6Z.Studies){R3A="valuationLines feature requires first a";R3A+="ctivating studies feature.";console.error(R3A);}else {g26="#fff";g26+="69e";H5b="#";H5b+="e1";H5b+="e1e";H5b+="1";G$v="har";G$v+="mo";G$v+="nic";g90="media";g90+="n";M1A="m";M1A+="e";M1A+="a";M1A+="n";y6Z.Studies.calculateValuationLines=function(C5Y,F18,E4N){var g8T,M$z,k9F,a4V,V$q,z$g,w9n,m2d,c2E,H2m,l4n,F8G,L3W,V97,j6B,b$b,k3q;g8T="Di";g8T+="splay 3 Standard Deviat";g8T+="ion (3\u03C3)";M$z="Display 2 Standard Devi";M$z+="atio";M$z+="n (2\u03C3)";k9F="Aver";k9F+="ag";k9F+="e Type";a4V="Clos";a4V+="e";V$q=F18.inputs.Field == "field"?a4V:F18.inputs.Field;z$g=F18.inputs[k9F];w9n=F18.inputs["Display Average"];m2d=F18.inputs["Display 1 Standard Deviation (1\u03C3)"];c2E=F18.inputs[M$z];H2m=F18.inputs[g8T];l4n=[];for(var F4_=0;F4_ < E4N.length;++F4_){if(E4N[F4_] && !isNaN(E4N[F4_][V$q])){l4n.push(E4N[F4_][V$q]);}}F8G=(function(o83,h3I){var T_B,P3b,X9L,Y9$,Y6B,g3n,p2g,B0B,b6m;T_B="me";T_B+="d";T_B+="i";T_B+="an";P3b="h";P3b+="armoni";P3b+="c";X9L="m";X9L+="ean";Y9$=o83.length;Y6B=0;g3n=0;p2g=+"0";switch(h3I){case X9L:g3n=Y9$;for(;p2g < Y9$;++p2g){Y6B+=o83[p2g];}break;case P3b:Y6B=Y9$;for(;p2g < Y9$;++p2g){H1N.j7J(68);var B5n=H1N.c0C(2,4,13,17);g3n+=B5n / o83[p2g];}break;case T_B:H1N.N_M(7);B0B=Math.floor(H1N.a$j(Y9$,2));b6m=o83.slice().sort(function(i95,T1V){if(i95 > T1V){return +"1";}if(i95 < T1V){return -1;}return 0;});if(Y9$ % 2 === 0){H1N.N_M(174);var X5p=H1N.a$j(14,15,19,11,30);Y6B=b6m[B0B] + b6m[B0B - X5p];g3n=2;}else {Y6B=b6m[B0B];g3n=1;}break;}H1N.j7J(7);return H1N.a$j(Y6B,g3n);})(l4n,z$g);L3W=!(m2d || c2E || H2m) || (function(W1m,f1t){var S4r,n_n;S4r=W1m.length;n_n=0;H1N.T$X();for(var i4e=0;i4e < S4r;++i4e){n_n+=Math.pow(W1m[i4e] - f1t,2);}H1N.j7J(7);return Math.sqrt(H1N.a$j(n_n,S4r));})(l4n,F8G);F18.data={Average:w9n?[F8G]:null,"1 Standard Deviation (1\u03C3)":m2d?[F8G + L3W,F8G - L3W]:null,"2 Standard Deviation (2\u03C3)":c2E?[F8G + L3W * 2,F8G - L3W * 2]:null,"3 Standard Deviation (3\u03C3)":H2m?[F8G + L3W * ("3" | 3),F8G - L3W * 3]:null};V97=L3W;if(!F18.parameters){F18.parameters={};}if(H2m){H1N.N_M(175);F18.parameters.range=[H1N.a$j(3,V97,L3W,F8G),H1N.a$j(V97,L3W,F8G,3,H1N.j7J(176))];}else if(c2E){H1N.N_M(177);F18.parameters.range=[H1N.c0C(0,L3W,V97,F8G,"2"),H1N.a$j(V97,L3W,F8G,2,H1N.N_M(176))];}else if(m2d){H1N.j7J(63);F18.parameters.range=[H1N.a$j(L3W,V97,F8G),H1N.a$j(V97,L3W,F8G,H1N.N_M(82))];}else if(w9n){H1N.j7J(14);F18.parameters.range=[H1N.a$j(F8G,V97),H1N.a$j(F8G,V97,H1N.j7J(1))];}if(F18.panel){j6B=C5Y.panels[F18.panel];b$b=C5Y.getYAxisByName(j6B,F18.name);if(b$b){b$b.decimalPlaces=j6B.chart.yAxis.printDecimalPlaces;k3q={yAxis:b$b};C5Y.calculateYAxisRange(j6B,b$b,F18.parameters.range[0],F18.parameters.range[1]);C5Y.createYAxis(j6B,k3q);C5Y.drawYAxis(j6B,k3q);}}};y6Z.Studies.displayValuationLines=function(Z8J,K9N){var t4Q,C_Y,C5t,I7J,D3Q,Y9s,K1B,I9Z,n6F,N$m,m4N,i0N,q6h,q5Z,v87,x4I,B6h,I38,L_T,r2N,s3S,f0A,S5i,m7t,E2b,E$2,i1$,e1Y,R7Q,y2z,O8i,z4j;t4Q="stx_yax";t4Q+="i";t4Q+="s";C_Y="H";C_Y+="A";C_Y+="V";C_Y+="G";C5t="AV";C5t+="G";I7J=Z8J.panels[K9N.panel];D3Q=K9N.getYAxis(Z8J);Y9s=K9N.getContext(Z8J);K1B=K9N.data;I9Z=K9N.parameters.labels;n6F=K9N.inputs["Average Type"];N$m={mean:C5t,median:"MED",harmonic:C_Y};m4N=Z8J.canvasStyle("ciq-valuation-average-line");i0N=Z8J.canvasStyle("ciq-valuation-deviation-line");q6h=3;H1N.N_M(178);var j4U=H1N.a$j(13,0,1,5,2);q5Z=Z8J.getCanvasFontSize(t4Q) + q6h * j4U;for(var x55 in K1B){m7t="Av";m7t+="era";m7t+="ge";if(!K1B[x55])continue;H1N.N_M(179);v87=H1N.a$j(m7t,x55);x4I=y6Z.Studies.determineColor(K9N.outputs[x55]);B6h=K1B[x55];for(I38="0" >> 0;I38 < B6h.length;++I38){E2b="lef";E2b+="t";E$2=":";E$2+=" ";i1$="yaxi";i1$+="s";e1Y="li";e1Y+="ne";R7Q="da";R7Q+="sh";R7Q+="ed";y2z="s";y2z+="o";y2z+="lid";O8i="non";O8i+="e";L_T=B6h[I38];r2N=Z8J.pixelFromPrice(L_T,I7J,D3Q);if(r2N <= I7J.top || r2N >= I7J.yAxis.bottom)continue;S5i=v87?{pattern:m4N.borderStyle != O8i?m4N.borderStyle || y2z:"solid",lineWidth:parseFloat(m4N.borderWidth) || 1,opacity:parseFloat(m4N.opacity) || 1,yAxis:D3Q}:{pattern:i0N.borderStyle != "none"?i0N.borderStyle || "dashed":R7Q,lineWidth:parseFloat(i0N.borderWidth) || 1,opacity:parseFloat(i0N.opacity) || "1" ^ 0,yAxis:D3Q};Z8J.plotLine(I7J.left,I7J.right,r2N,r2N,x4I,e1Y,Y9s,I7J,S5i);if(I9Z === i1$){Z8J.createYAxisLabel(I7J,Z8J.formatYAxisPrice(L_T,I7J),r2N,x4I,null,Y9s,D3Q);continue;}r2N+=Math.floor(S5i.lineWidth / 2);if(r2N + q5Z >= I7J.yAxis.bottom)continue;s3S=(v87?N$m[n6F] + E$2:x55[0] + "\u03C3: ") + Z8J.formatYAxisPrice(L_T,I7J);f0A=Y9s.measureText(s3S).width;z4j=I7J.right - f0A - q6h;if(D3Q && D3Q.position == E2b){z4j=I7J.left + q6h;}H1N.N_M(180);Y9s.strokeText(s3S,z4j,H1N.a$j("2",q5Z,0,r2N,0.5));}}};y6Z.Studies.studyLibrary=y6Z.extend(y6Z.Studies.studyLibrary,{"val lines":{name:"Valuation Lines",calculateFN:function(){},seriesFN:function(F8X,R2v,v73){H1N.T$X();y6Z.Studies.calculateValuationLines(F8X,R2v,v73);y6Z.Studies.displayValuationLines(F8X,R2v);},overlay:!![],yAxisFN:function(){},inputs:{Field:"field","Average Type":[M1A,g90,G$v],"Display Average":!!1,"Display 1 Standard Deviation (1\u03C3)":!!0,"Display 2 Standard Deviation (2\u03C3)":![],"Display 3 Standard Deviation (3\u03C3)":!({})},outputs:{Average:"#00afed","1 Standard Deviation (1\u03C3)":H5b,"2 Standard Deviation (2\u03C3)":"#85c99e","3 Standard Deviation (3\u03C3)":g26}}});}};U9=P2z=>{var V$z,G9K,u0n,u$k;V$z=typeof _CIQ !== "undefined"?_CIQ:P2z.CIQ;if(!V$z.Studies){console.error("volatilityIndex feature requires first activating studies feature.");}else {G9K="a";G9K+="u";G9K+="t";G9K+="o";u0n="0 ";u0n+="to 10";u0n+="0";u$k="Relative Vol";u$k+="atility";V$z.Studies.calculateRelativeVolatility=function(N0N,k2x){var U9s=f3BGj;var B$C,b8$,G8d,i3n,d80,Z89,x46,Y9e;B$C="m";B$C+="a";k2x.days=Number(k2x.inputs["Smoothing Period"]);b8$=Number(k2x.inputs["STD Period"]);G8d=k2x.chart.scrubbed;if(G8d.length < k2x.days + b8$){k2x.error=!!1;return;}i3n=k2x.inputs.Field;if(!i3n || i3n == "field"){i3n="Close";}k2x.std=new V$z.Studies.StudyDescriptor(k2x.name,"sdev",k2x.panel);k2x.std.chart=k2x.chart;k2x.std.days=b8$;k2x.std.startFrom=k2x.startFrom;k2x.std.inputs={Field:i3n,"Standard Deviations":1,Type:B$C};k2x.std.outputs={_STD:null};function y2y(v1a,P6R){if(v1a + P6R === +"0"){return 100;}U9s.N_M(181);return U9s.c0C(100,P6R,v1a,v1a);}V$z.Studies.calculateStandardDeviation(N0N,k2x.std);d80=0;Z89=0;if(k2x.startFrom > +"1"){d80=G8d[k2x.startFrom - +"1"]["_avgG " + k2x.name] || 0;Z89=G8d[k2x.startFrom - 1]["_avgL " + k2x.name] || "0" | 0;}for(var n7Z=Math.max(k2x.startFrom,k2x.days);n7Z < G8d.length;n7Z++){x46=G8d[n7Z];U9s.j7J(94);Y9e=G8d[U9s.c0C(n7Z,"1")];if(!x46[i3n] && x46[i3n] !== 0)continue;if(!Y9e[i3n] && Y9e[i3n] !== +"0")continue;if(!x46["_STD " + k2x.name] && x46["_STD " + k2x.name] !== 0)continue;if(x46[i3n] > Y9e[i3n]){U9s.N_M(14);var k0C=U9s.a$j(8,7);d80=(d80 * (k2x.days - k0C) + x46["_STD " + k2x.name]) / k2x.days;U9s.j7J(14);var y5W=U9s.a$j(17,16);Z89=Z89 * (k2x.days - y5W) / k2x.days;}else {U9s.N_M(63);var X5y=U9s.c0C(11,8,20);Z89=(Z89 * (k2x.days - X5y) + x46["_STD " + k2x.name]) / k2x.days;U9s.N_M(182);var w4A=U9s.c0C(6,0,6,1,1);d80=d80 * (k2x.days - w4A) / k2x.days;}x46["Rel Vol " + k2x.name]=y2y(d80,Z89);x46["_avgG " + k2x.name]=d80;x46["_avgL " + k2x.name]=Z89;}k2x.zoneOutput="Rel Vol";};V$z.Studies.calculateHistoricalVolatility=function(i5G,W26){var k4I=f3BGj;var J58,x4M,M_W,V$i,f1K,K6t,I1h,T16,n4l;J58=W26.chart.scrubbed;function C0f(v3H){if(isNaN(v3H)){v3H=365;}if(i5G.layout.interval == "day"){return v3H;}else if(i5G.layout.interval == "week"){return 52;}else if(i5G.layout.interval == "month"){return 12;}k4I.T$X();return v3H;}if(J58.length < W26.days + 1){W26.error=!"";return;}x4M=W26.inputs.Field;if(!x4M || x4M == "field"){x4M="Close";}M_W=W26.inputs["Standard Deviations"];if(M_W < 0){M_W=1;}k4I.j7J(101);var w_J=k4I.c0C(1316,5,7,108,13);V$i=w_J * Math.sqrt(C0f(W26.inputs["Days Per Year"])) * M_W;f1K=[];K6t=0;if(W26.startFrom > "1" >> 0){K6t=J58[W26.startFrom - +"1"]["_state " + W26.name][0];f1K=J58[W26.startFrom - 1]["_state " + W26.name][1].slice();}for(var Y5W=Math.max(1,W26.startFrom);Y5W < J58.length;Y5W++){k4I.j7J(94);I1h=J58[k4I.c0C(Y5W,"1")][x4M];if(I1h){T16=Math.log(J58[Y5W][x4M] / I1h);f1K.push(T16);K6t+=T16;if(Y5W >= W26.days){n4l=+"0";K6t/=W26.days;for(var n4D=0;n4D < f1K.length;n4D++){n4l+=Math.pow(f1K[n4D] - K6t,2);}K6t*=W26.days;K6t-=f1K.shift();J58[Y5W]["Result " + W26.name]=Math.sqrt(n4l / W26.days) * V$i;}}J58[Y5W]["_state " + W26.name]=[K6t,f1K.slice()];}};V$z.Studies.studyLibrary=V$z.extend(V$z.Studies.studyLibrary,{"Hist Vol":{name:"Historical Volatility",calculateFN:V$z.Studies.calculateHistoricalVolatility,inputs:{Period:10,Field:"field","Days Per Year":[252,365],"Standard Deviations":1},attributes:{"Standard Deviations":{min:+"0.1",step:0.1}}},"Rel Vol":{name:u$k,range:u0n,calculateFN:V$z.Studies.calculateRelativeVolatility,inputs:{Field:"field","STD Period":10,"Smoothing Period":14},outputs:{"Rel Vol":G9K},centerline:50,parameters:{init:{studyOverZonesEnabled:!0,studyOverBoughtValue:70,studyOverBoughtColor:"auto",studyOverSoldValue:"30" - 0,studyOverSoldColor:"auto"}}}});}};d5=h5i=>{var T3w=f3BGj;var I3h,a7N;I3h=typeof _CIQ !== "undefined"?_CIQ:h5i.CIQ;T3w.T$X();if(!I3h.Studies){console.error("volumeProfile feature requires first activating studies feature.");}else {a7N="Volu";a7N+="m";a7N+="e Prof";a7N+="ile";I3h.Studies.displayVolumeProfile=function(P__,Z4c,a6g){var x3N,o7o,u81,F2b,h_8,A8D,b_O,l2r,j46,D$i,e9o,I2K,U7F,D4O,V$5,G74,i$e,i9Y,W5g,j5u,n6B,F$F,f2H,l_f,F1d;if(!P__ || !P__.chart.dataSet){return;}function k2F(D0y,F2M){var R$e,P9Z,c$Y,T$J,n0V,m1m,D9q,x3M,f69;if(!F2M){i9Y-=2;}F$F.canvasColor(D0y);U7F.beginPath();T3w.N_M(46);R$e=b_O[0][T3w.c0C("0",0)];P9Z=i9Y;for(var l3W="1" - 0;l3W < b_O.length;l3W++){if(b_O[l3W][1]){T3w.N_M(0);var h$u=T3w.a$j(320,3,18,18);c$Y=Math.round(i9Y - b_O[l3W][h$u] * W5g / l2r) - 0.5;T$J=Math.round(F$F.pixelFromTransformedValue(R$e,G74)) + ("0.5" - 0);n0V=Math.round(F$F.pixelFromTransformedValue(b_O[l3W][+"0"],G74)) + 0.5;if(!F2M){T$J-=0.5;n0V+=0.5;c$Y+=0.5;}if(T$J > i$e){T$J=i$e;}if(n0V < i$e){U7F.moveTo(i9Y,T$J);U7F.lineTo(i9Y,n0V);U7F.lineTo(c$Y,n0V);U7F.lineTo(c$Y,T$J);if(F2M){if(P9Z > c$Y || l3W == 1){U7F.lineTo(P9Z,T$J);};}else {U7F.lineTo(i9Y,T$J);if(h_8){m1m=I3h.condenseInt(b_O[l3W][1]);T3w.N_M(14);D9q=T3w.c0C(T$J,n0V);if(V$5 <= D9q - 2){try{x3M=U7F.measureText(m1m).width;}catch(I51){x3M=+"0";}U7F.textBaseline="top";f69=U7F.fillStyle;U7F.fillStyle=j5u;T3w.j7J(63);U7F.fillText(m1m,T3w.a$j(x3M,3,c$Y),T3w.a$j(D9q,V$5,2,2,n0V,T3w.j7J(183)));U7F.fillStyle=f69;}}}}P9Z=c$Y;}else {P9Z=i9Y;;}T3w.j7J(46);R$e=b_O[l3W][T3w.c0C("0",0)];}if(!Z4c.highlight && P__.highlightedDraggable){U7F.globalAlpha*=0.3;}if(!F2M){U7F.fill();}U7F.strokeStyle=j5u;if(F2M){U7F.stroke();}U7F.closePath();}x3N=P__.chart;o7o=Z4c.parameters.numberOfBars;u81=Z4c.parameters.widthPercentage;F2b=Z4c.parameters.displayBorder;h_8=Z4c.parameters.displayVolume;if(!o7o || o7o < +"0"){o7o=30;}o7o=Math.ceil(o7o);if(!u81 || u81 < 0){u81=0.25;}if(F2b !== !!""){F2b=!!1;}if(h_8 !== !0){h_8=!1;}A8D=(x3N.highValue - x3N.lowValue) / o7o;if(A8D === 0){return;}b_O=[];for(var b57=x3N.lowValue;b57 < x3N.highValue + 0.1;b57+=A8D){b_O.push([b57,+"0"]);}if(b_O.length < 2){P__.displayErrorAsWatermark("chart",P__.translateIf("Not enough data to render the Volume Profile"));return;}l2r=0;for(var s_t=0;s_t < a6g.length;s_t++){j46=a6g[s_t];if(!j46)continue;D$i=j46.Volume;if(Z4c.panel == x3N.name && j46.transform){j46=j46.transform;}e9o=b_O[0][0];I2K=0;for(var L2r=1;L2r < b_O.length;L2r++){I2K=b_O[L2r][0];if(j46.Low >= e9o && j46.Low <= I2K || j46.Low < e9o && j46.High > I2K || j46.High >= e9o && j46.High <= I2K){b_O[L2r][+"1"]+=D$i;if(b_O[L2r][1] > l2r){l2r=b_O[L2r][1];}}e9o=I2K;}}if(l2r === 0){P__.displayErrorAsWatermark("chart",P__.translateIf("Not enough data to render the Volume Profile"));return;}P__.setStyle("stx_volume_profile","color",I3h.Studies.determineColor(Z4c.outputs["Bars Color"]));U7F=Z4c.getContext(P__);D4O="stx-float-date";P__.canvasFont(D4O,U7F);V$5=P__.getCanvasFontSize(D4O);G74=x3N.panel;i$e=G74.yAxis.bottom;i9Y=Math.round(x3N.right) - 0.5;W5g=x3N.width * u81;j5u=P__.canvasStyle("stx_volume_profile").borderTopColor;n6B=!I3h.isTransparent(P__.canvasStyle("stx_volume_profile").borderTopColor) && F2b;F$F=P__;k2F("stx_volume_profile",!"1");if(n6B){k2F("stx_volume_profile",!![]);}T3w.j7J(4);f2H=-T3w.c0C("1922240287",1);l_f=-1247173282;F1d=2;for(var H5l=1;T3w.O1W(H5l.toString(),H5l.toString().length,96806) !== f2H;H5l++){U7F.globalAlpha=5;F1d+=2;}if(T3w.S9Y(F1d.toString(),F1d.toString().length,90616) !== l_f){U7F.globalAlpha=5;}U7F.globalAlpha=1;};I3h.Studies.studyLibrary=I3h.extend(I3h.Studies.studyLibrary,{"vol profile":{name:a7N,underlay:!"",seriesFN:I3h.Studies.displayVolumeProfile,calculateFN:null,inputs:{},outputs:{"Bars Color":"#b64a96"},customRemoval:!!1,parameters:{init:{displayBorder:!!({}),displayVolume:!({}),numberOfBars:30,widthPercentage:0.25}},attributes:{yaxisDisplayValue:{hidden:!!1},panelName:{hidden:!![]},flippedEnabled:{hidden:!![]}}}});}};o7=i8J=>{var f6b=f3BGj;var b3K,H9O,x4C,j7f,l4H,h$S,s2r,d0U,h72,S81,d1L,Y$z,q1B,w7M;b3K=-+"326070533";H9O=1405609193;x4C=2;for(var T9V=1;f6b.O1W(T9V.toString(),T9V.toString().length,12746) !== b3K;T9V++){j7f=typeof _CIQ !== "undefined"?_CIQ:i8J.CIQ;x4C+=2;}if(f6b.S9Y(x4C.toString(),x4C.toString().length,50755) !== H9O){j7f=-_CIQ == ""?_CIQ:i8J.CIQ;}if(!j7f.Studies){console.error("volumeStudies feature requires first activating studies feature.");}else {l4H="#b82";l4H+="c0c";h$S="Vo";h$S+="lu";h$S+="me Under";h$S+="lay";s2r="Trade Volume I";s2r+="ndex";d0U="Price Volume ";d0U+="Trend";h72="#F";h72+="F0";h72+="000";S81="a";S81+="u";S81+="t";S81+="o";d1L="#FF";d1L+="00";d1L+="00";Y$z="m";Y$z+="a";q1B="f";q1B+="iel";q1B+="d";w7M="Negative Vol";w7M+="ume ";w7M+="Inde";w7M+="x";j7f.Studies.calculateOnBalanceVolume=function(V99,s5z){var v6w,I68,g1n,N4f,d1M,g5Z,d1I,Y5O,b$q,s0h,M1S,y$p,O46,k0Q,p$C;v6w="f";v6w+="ield";I68=s5z.inputs.Field;if(!I68 || I68 == v6w){I68="Close";}g1n=s5z.inputs["Min Tick Value"];N4f=!!"";if(!g1n && g1n !== +"0"){N4f=!!({});d1M=1160176223;g5Z=1055944688;d1I=2;for(var f5D=1;f6b.S9Y(f5D.toString(),f5D.toString().length,"66165" << 32) !== d1M;f5D++){g1n=0;d1I+=2;}if(f6b.S9Y(d1I.toString(),d1I.toString().length,87319) !== g5Z){g1n=+"2";}}Y5O=s5z.chart.scrubbed;b$q=0;s0h=781454516;f6b.f3X();f6b.N_M(5);M1S=f6b.a$j(1,"2073931254");y$p=2;for(var S_c="1" << 32;f6b.S9Y(S_c.toString(),S_c.toString().length,15810) !== s0h;S_c++){y$p+=2;}if(f6b.S9Y(y$p.toString(),y$p.toString().length,79077) !== M1S){}for(var p9R=s5z.startFrom;p9R < Y5O.length;p9R++){O46=Y5O[p9R];if(!p9R || !O46[I68])continue;if(Y5O[p9R - 1][I68]){f6b.j7J(14);k0Q=Y5O[f6b.a$j(p9R,1)];}if(!k0Q)continue;if(O46[I68] - k0Q[I68] > g1n){b$q=1;}else if(k0Q[I68] - O46[I68] > g1n){b$q=-1;}else if(N4f){b$q=0;}p$C=k0Q["Result " + s5z.name];if(!p$C){p$C=+"0";}p$C+=O46.Volume * b$q;O46["Result " + s5z.name]=p$C;}};j7f.Studies.calculatePriceVolumeTrend=function(Y12,e5$){var o5a,T3W,y9a,L2Z;o5a=e5$.inputs.Field;if(!o5a || o5a == "field"){o5a="Close";}T3W=e5$.chart.scrubbed;y9a=0;if(e5$.startFrom > 1){L2Z="Re";L2Z+="su";L2Z+="lt ";f6b.j7J(184);var w55=f6b.c0C(25,1,7,46);y9a=T3W[e5$.startFrom - ("1" << w55)][L2Z + e5$.name];}for(var u4U=Math.max(1,e5$.startFrom);u4U < T3W.length;u4U++){if(!T3W[u4U][o5a])continue;if(!T3W[u4U - ("1" | 0)][o5a])continue;f6b.N_M(185);var s4p=f6b.c0C(9,4,19,2);f6b.N_M(184);var j7F=f6b.c0C(4,6,5,12);y9a+=T3W[u4U].Volume * (T3W[u4U][o5a] - T3W[u4U - s4p][o5a]) / T3W[u4U - j7F][o5a];T3W[u4U]["Result " + e5$.name]=y9a;}};j7f.Studies.calculateVolumeIndex=function(n1Y,d4v){var E6$,y$0,S8t,e8M,G9n,m7K,T$L,k3o,q$t,I05;E6$="I";E6$+="ndex ";y$0=d4v.inputs.Field;if(!y$0 || y$0 == "field"){y$0="Close";}S8t=d4v.chart.scrubbed;if(S8t.length < d4v.days + 1){d4v.error=!![];return;}f6b.T$X();e8M=100;if(d4v.startFrom > 1){f6b.N_M(123);var P71=f6b.a$j(1,18,6,0,4);e8M=S8t[d4v.startFrom - P71][E6$ + d4v.name];}for(var E8H=Math.max(1,d4v.startFrom);E8H < S8t.length;E8H++){G9n="In";G9n+="d";G9n+="ex ";m7K="Ne";m7K+="g Vol";T$L=S8t[E8H][y$0];k3o=S8t[E8H].Volume;if(T$L && typeof T$L == "object"){k3o=T$L.Volume;T$L=T$L[d4v.subField];}f6b.N_M(14);q$t=S8t[f6b.c0C(E8H,1)][y$0];I05=S8t[E8H - 1].Volume;if(q$t && typeof q$t == "object"){I05=q$t.Volume;q$t=q$t[d4v.subField];}if(!T$L)continue;if(!q$t)continue;if(d4v.type == "Pos Vol" && k3o > I05 || d4v.type == m7K && k3o < I05){f6b.N_M(7);e8M*=f6b.a$j(T$L,q$t);}S8t[E8H][G9n + d4v.name]=e8M;}j7f.Studies.MA(d4v.inputs["Moving Average Type"],d4v.days,"Index " + d4v.name,0,"MA",n1Y,d4v);};j7f.Studies.studyLibrary=j7f.extend(j7f.Studies.studyLibrary,{"Neg Vol":{name:w7M,calculateFN:j7f.Studies.calculateVolumeIndex,inputs:{Period:255,Field:q1B,"Moving Average Type":Y$z},outputs:{Index:"auto",MA:d1L}},"On Bal Vol":{name:"On Balance Volume",calculateFN:j7f.Studies.calculateOnBalanceVolume,inputs:{}},"Pos Vol":{name:"Positive Volume Index",calculateFN:j7f.Studies.calculateVolumeIndex,inputs:{Period:255,Field:"field","Moving Average Type":"ma"},outputs:{Index:S81,MA:h72}},"Price Vol":{name:d0U,calculateFN:j7f.Studies.calculatePriceVolumeTrend,inputs:{Field:"field"}},"Trade Vol":{name:s2r,calculateFN:j7f.Studies.calculateOnBalanceVolume,inputs:{"Min Tick Value":0.5}},"Vol ROC":{name:"Volume Rate of Change",calculateFN:function(F1M,Q9s){if(j7f.Studies.calculateRateOfChange){j7f.Studies.calculateRateOfChange(F1M,Q9s);}else {console.error("Volume Rate of Change study requires first activating momentum feature.");j7f.Studies.calculateRateOfChange=function(P$V,n_l){};}},parameters:{init:{isVolume:!!({})}}},"vol undr":{name:h$S,underlay:!!"1",range:"0 to max",yAxis:{ground:!![],initialMarginTop:"0" << 32,position:"none",zoom:0,heightFactor:"0.25" * 1},seriesFN:j7f.Studies.createVolumeChart,calculateFN:j7f.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":"#8cc176","Down Volume":l4H},customRemoval:!![],removeFN:function(t9g,V_I){var b2F;b2F="l";b2F+="ayo";b2F+="u";b2F+="t";t9g.layout.volumeUnderlay=!({});t9g.changeOccurred(b2F);},attributes:{panelName:{hidden:!![]}}}});}};t2=g7j=>{var T9e,e2s,j2E,g02,W3q;T9e=typeof _CIQ !== "undefined"?_CIQ:g7j.CIQ;if(!T9e.Studies){e2s="vortex featu";e2s+="re requires firs";e2s+="t acti";e2s+="vating studies feature.";console.error(e2s);}else {j2E="0";j2E+=".0";j2E+="1";g02="#00";g02+="F";g02+="F00";W3q="Vo";W3q+="rtex Indicator";T9e.Studies.calculateVortex=function(Q$m,Z6d){var o64=f3BGj;var D8R,K$K,j40,P_R,L$v,u1P,H6K,X4j,u2v,b9m,w3U,h63;D8R=Z6d.chart.scrubbed;K$K=Z6d.days;if(D8R.length < K$K + 1){Z6d.error=!![];return;}o64.T$X();j40={tr:0,vmPlus:0,vmMinus:0};if(Z6d.startFrom > +"1"){j40=T9e.clone(D8R[Z6d.startFrom - +"1"]["_totals " + Z6d.name]);}for(var k8t=Math.max(Z6d.startFrom,+"1");k8t < D8R.length;k8t++){P_R=D8R[k8t];o64.j7J(14);L$v=D8R[o64.a$j(k8t,1)];u1P=Math.abs(P_R.High - L$v.Low);H6K=Math.abs(P_R.Low - L$v.High);X4j=Math.max(P_R.High,L$v.Close) - Math.min(P_R.Low,L$v.Close);j40.tr+=X4j;j40.vmPlus+=u1P;j40.vmMinus+=H6K;if(k8t > K$K){u2v="_VM";u2v+="Mi";u2v+="n";u2v+="us ";b9m="_VMP";b9m+="l";b9m+="u";b9m+="s ";w3U="_True Rang";w3U+="e ";o64.j7J(14);j40.tr-=D8R[o64.a$j(k8t,K$K)][w3U + Z6d.name];o64.N_M(14);j40.vmPlus-=D8R[o64.c0C(k8t,K$K)][b9m + Z6d.name];o64.j7J(14);j40.vmMinus-=D8R[o64.c0C(k8t,K$K)][u2v + Z6d.name];}P_R["_True Range " + Z6d.name]=X4j;P_R["_VMPlus " + Z6d.name]=u1P;P_R["_VMMinus " + Z6d.name]=H6K;if(k8t >= K$K){h63="-";h63+="V";h63+="I";h63+=" ";P_R["+VI " + Z6d.name]=j40.vmPlus / j40.tr;P_R[h63 + Z6d.name]=j40.vmMinus / j40.tr;}P_R["_totals " + Z6d.name]=T9e.clone(j40);}};T9e.Studies.studyLibrary=T9e.extend(T9e.Studies.studyLibrary,{Vortex:{name:W3q,calculateFN:T9e.Studies.calculateVortex,centerline:1,outputs:{"+VI":g02,"-VI":"#FF0000"},parameters:{init:{studyOverZonesEnabled:!!"1",studyOverBoughtValue:1.1,studyOverBoughtColor:"auto",studyOverSoldValue:0.9,studyOverSoldColor:"auto"}},attributes:{studyOverBoughtValue:{min:1,step:"0.01"},studyOverSoldValue:{max:1,step:j2E}}}});}};m_=G_6=>{var R1_=f3BGj;R1_.T$X();var R_q,L2x;R_q=typeof _CIQ !== "undefined"?_CIQ:G_6.CIQ;if(!R_q.Studies){console.error("williamsMFI feature requires first activating studies feature.");}else {L2x="#ffd0c";L2x+="f";R_q.Studies.calculateMFI=function(r0H,w31){var k$9,U_j,D2v,u0_,M61,d$O,U7x;R1_.T$X();k$9=w31.chart.scrubbed;R1_.j7J(31);D2v=R1_.a$j("0",32);u0_=w31.inputs["Scale Factor"];if(!u0_){u0_=w31.study.inputs["Scale Factor"];}M61=Math.pow(10,Number(u0_));if(w31.startFrom > "1" >> 96){R1_.N_M(119);var j8d=R1_.a$j(5,57,19,4);D2v=k$9[w31.startFrom - j8d]["_high " + w31.name];}for(d$O=w31.startFrom;d$O < k$9.length;d$O++){if(!k$9[d$O])continue;if(k$9[d$O].Volume){U7x="_";U7x+="hi";U7x+="st";k$9[d$O][w31.name + U7x]=U_j=M61 * (k$9[d$O].High - k$9[d$O].Low) / k$9[d$O].Volume;k$9[d$O]["_high " + w31.name]=D2v=Math.max(D2v,U_j);}}w31.outputMap={};w31.outputMap[w31.name + "_hist"]="";};R_q.Studies.displayMFI=function(n6W,N6X,K1c){var e_y,h$l,U2B,d3_,L8e,a9G,Z9g,S8T,f3i,p4p,d3h,m7C;e_y="stx_";e_y+="histogr";e_y+="am";h$l=n6W.panels[N6X.panel];U2B=N6X.getContext(n6W);d3_=N6X.getYAxis(n6W);L8e=d3_.flipped?d3_.top:d3_.bottom;R1_.N_M(186);var k97=R1_.c0C(18,15,15,4052);a9G=n6W.layout.candleWidth - k97;if(a9G < 2){a9G=1;}Z9g=R_q.Studies.determineColor(N6X.outputs.Green);S8T=R_q.Studies.determineColor(N6X.outputs.Fade);R1_.T$X();f3i=R_q.Studies.determineColor(N6X.outputs.Fake);p4p=R_q.Studies.determineColor(N6X.outputs.Squat);n6W.canvasColor(e_y);if(!N6X.underlay){U2B.globalAlpha=1;}U2B.fillStyle="#CCCCCC";n6W.startClip(N6X.panel);if(!N6X.highlight && n6W.highlightedDraggable){U2B.globalAlpha*=0.3;}for(var r1n=0;r1n < K1c.length;r1n++){d3h=K1c[r1n];R1_.N_M(14);m7C=K1c[R1_.c0C(r1n,1)];if(!m7C){m7C=n6W.getPreviousBar(n6W.chart,N6X.name + "_hist",r1n);}if(!d3h)continue;if(!m7C);else if(m7C[N6X.name + "_hist"] < d3h[N6X.name + "_hist"]){if(m7C.Volume < d3h.Volume){U2B.fillStyle=Z9g;}else if(m7C.Volume > d3h.Volume){U2B.fillStyle=f3i;}}else if(m7C[N6X.name + "_hist"] > d3h[N6X.name + "_hist"]){if(m7C.Volume < d3h.Volume){U2B.fillStyle=p4p;}else if(m7C.Volume > d3h.Volume){U2B.fillStyle=S8T;}}if(d3h.candleWidth){a9G=Math.floor(Math.max(1,d3h.candleWidth - 2));}U2B.fillRect(Math.floor(n6W.pixelFromBar(r1n,h$l.chart) - a9G / 2),Math.floor(L8e),Math.floor(a9G),Math.floor(n6W.pixelFromPrice(d3h[N6X.name + "_hist"],h$l,d3_) - L8e));}n6W.endClip();};R_q.Studies.studyLibrary=R_q.extend(R_q.Studies.studyLibrary,{"W MFI":{name:"Market Facilitation Index",seriesFN:R_q.Studies.displayMFI,calculateFN:R_q.Studies.calculateMFI,yAxis:{ground:!0},range:"0 to max",inputs:{"Scale Factor":6},outputs:{Green:"#8bc176",Fade:"#ab611f",Fake:"#5f7cb8",Squat:L2x}}});}};c7={CIQ:a4,SplinePlotter:p4,timezoneJS:j0,$$:J2,$$$:g9};export {N as aggregations};export {Q as drawingAdvanced};export {Z as equationsAdvanced};export {S as highPerformanceMarkers};export {W as renderersAdvanced};export {o as accumulationDistribution};export {U as adx};export {g as alligator};export {Y as aroon};export {G as atr};export {X as awesomeOscillator};export {E as balanceOfPower};export {F as bollinger};export {I as cci};export {M_ as centerOfGravity};export {h1 as chaikin};export {W3 as chande};export {W9 as choppiness};export {C5 as comparisonStudies};export {b4 as coppock};export {f3 as darvasBox};export {n8 as detrended};export {p9 as disparity};export {f8 as easeOfMovement};export {A3 as ehlerFisher};export {b0 as elder};export {j4 as fractalChaos};export {U1 as highLowStudies};export {W2 as ichimoku};export {K0 as intradayMomentum};export {G_ as keltner};export {T8 as klinger};export {d8 as linearRegression};export {T6 as macd};export {k1 as massIndex};export {e4 as moneyFlow};export {A1 as movingAverages};export {d_ as parabolicSAR};export {O9 as pivotPoints};export {s4 as prettyGoodOscillator};export {e5 as priceMomentumOscillator};export {C$ as priceVolumeOscillator};export {y9 as primeNumber};export {v8 as pring};export {L4 as projectedVolume};export {o3 as psychologicalLine};export {i8 as qstick};export {O$ as rainbow};export {r_ as randomWalk};export {O5 as relativeVigor};export {i3 as rsi};export {Q7 as schaffTrendCycle};export {Z4 as shinohara};export {T0 as stochastics};export {x$ as supertrend};export {k4 as swingIndex};export {N1 as trendIntensity};export {a7 as trix};export {h3 as twiggsMoneyFlow};export {C6 as typicalPrice};export {M$ as ulcerIndex};export {q7 as ultimateOscillator};export {a9 as valuationLines};export {U9 as volatilityIndex};export {d5 as volumeProfile};export {o7 as volumeStudies};export {t2 as vortex};export {m_ as williamsMFI};export {a4 as CIQ, p4 as SplinePlotter, j0 as timezoneJS, J2 as $$, g9 as $$$};if(typeof __TREE_SHAKE__ === "undefined" || !__TREE_SHAKE__){c7.CIQ.activateImports(N,Q,Z,S,W,o,U,g,Y,G,X,E,F,I,M_,h1,W3,W9,C5,b4,f3,n8,p9,f8,A3,b0,j4,U1,W2,K0,G_,T8,d8,T6,k1,e4,A1,d_,O9,s4,e5,C$,y9,v8,L4,o3,i8,O$,r_,O5,i3,Q7,Z4,T0,x$,k4,N1,a7,h3,C6,M$,q7,a9,U9,d5,o7,t2,m_,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */
diff --git a/chartiq/production/js/chartiq.js b/chartiq/production/js/chartiq.js
index be0a0ffd3e..cae54fe1aa 100644
--- a/chartiq/production/js/chartiq.js
+++ b/chartiq/production/js/chartiq.js
@@ -1,39 +1,40 @@
-/**
+/**!
* 8.2.0
- * Generation date: 2022-02-18T13:21:32.984Z
+ * Generation date: 2023-03-23T15:05:01.971Z
* Client name: deriv limited
* Package Type: Technical Analysis
* License type: annual
- * Expiration date: "2023/04/01"
+ * Expiration date: "2024/04/01"
* Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"]
* iFrame lock: true
*/
-/***********************************************************
+/***********************************************************!
* Copyright by ChartIQ, Inc.
* Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement
*************************************************************/
-/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/
-/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */
-/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */
-/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */
-/*************************************************************************************************************************/
+/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !*************************************
+* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting *
+* and load that file right after the library has been loaded, but before the chart engine is instantiated. *
+* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. *
+*************************************************************************************************************************/
-/***************************************************************************/
-/* Please note that manually changing the domain list or expiration dates */
-/* */
-/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> WILL NOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */
-/* */
-/* modify the library locking mechanism. Any changes must be requested */
-/* directly from chartIQ. */
-/***************************************************************************/
+/*************************************************************************!
+* Please note that manually changing the domain list or expiration dates *
+* *
+* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>> WILL NOT <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< *
+* *
+* modify the library locking mechanism. Any changes must be requested *
+* directly from chartIQ. *
+***************************************************************************/
(function() {
/* eslint-disable no-undef-init */
- var trialExpiration = undefined;
- var licenseExpiration = "2023/04/01";
var domains = ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"];
var filesystem = false;
+ var licenseExpiration = "2024/04/01";
+ var trialExpiration = undefined;
+ var version = '8.2.0';
var expiration;
if (trialExpiration) expiration = new Date(trialExpiration).getTime();
@@ -75,10 +76,13 @@
}
}
}
+ if(version === 'alpha'){
+ window.alert('This is an internal PRE-PRODUCTION release--not for external use!');
+ }
})();
/* eslint-disable no-extra-parens */
/* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */
-M2dNJ[50848]=(function(){var D=2;for(;D !== 9;){switch(D){case 1:return globalThis;break;case 5:var J;try{var C=2;for(;C !== 6;){switch(C){case 9:delete J['\u0053\x69\x32\x6d\x4f'];var U=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete U['\u0059\x66\x38\u0044\x4f'];C=6;break;case 3:throw "";C=9;break;case 4:C=typeof Si2mO === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:J['\u0053\x69\u0032\u006d\x4f']=J;C=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x59\u0066\u0038\u0044\x4f',{'\x67\x65\x74':function(){var Z=2;for(;Z !== 1;){switch(Z){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});J=Yf8DO;C=5;break;}}}catch(F){J=window;}return J;break;case 2:D=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();E8f(M2dNJ[50848]);M2dNJ[356525]=(function(){function O6D(c30){var Q0D=2;for(;Q0D !== 7;){switch(Q0D){case 3:W6R+=z20Gd.e1Cdv(c30[M09] - M4O + 107);Q0D=9;break;case 5:var M09=0;Q0D=4;break;case 9:M09++;Q0D=4;break;case 4:Q0D=M09 < c30.length?3:8;break;case 2:var M4O=6;var W6R='';Q0D=5;break;case 8:return W6R;break;}}}function y0n(q7j,X4u,k3w,M7Z,H1u){var d8U=2;for(;d8U !== 15;){switch(d8U){case 6:return M2dNJ.m7$(f3f,l5x,k3w);break;case 9:d8U=M7Z > 0?8:19;break;case 19:d8U=q7j === null || q7j <= 0?18:14;break;case 8:f3f=H8H.F6kzS(q7j,M7Z);l5x=f3f.length;d8U=6;break;case 2:var f3f,l5x,H8H,k30;k30=z$h[O6D([7,10,-2,-4,15,4,10,9])];!z7j && (z7j=typeof k30 !== "undefined"?k30[O6D([3,10,14,15,9,-4,8,0])] || ' ':"");!N$a && (N$a=typeof k30 !== "undefined"?k30[O6D([3,13,0,1])]:"");d8U=3;break;case 11:f3f=H8H.F6kzS(T7O,H8H.length);l5x=f3f.length;return M2dNJ.m7$(f3f,l5x,k3w);break;case 12:return false;break;case 16:return M2dNJ.m7$(f3f,l5x,k3w);break;case 3:H8H=H1u?N$a:z7j;d8U=9;break;case 18:f3f=H8H.F6kzS(0,H8H.length);l5x=f3f.length;d8U=16;break;case 13:d8U=X4u && T7O > 0 && H8H.r1d3r(T7O - 1) !== 46?12:11;break;case 14:var T7O=H8H.length - q7j;d8U=13;break;}}}var A4b=2;for(;A4b !== 4;){switch(A4b){case 2:var z$h=M2dNJ[50848];var z7j,N$a;return {K9OPwob:function(R2O,u2q,v1B,s9v){var h9_=2;for(;h9_ !== 1;){switch(h9_){case 2:return y0n(R2O,u2q,v1B,s9v);break;}}},n8eaqyR:function(o8X,h7I,E4D,t_I){var k7I=2;for(;k7I !== 1;){switch(k7I){case 2:return y0n(o8X,h7I,E4D,t_I,true);break;}}}};break;}}})();M2dNJ.b3_=function(){return typeof M2dNJ[459327].w4xZ2A7 === 'function'?M2dNJ[459327].w4xZ2A7.apply(M2dNJ[459327],arguments):M2dNJ[459327].w4xZ2A7;};M2dNJ.n9E=function(){return typeof M2dNJ[247674].A$uBw0P === 'function'?M2dNJ[247674].A$uBw0P.apply(M2dNJ[247674],arguments):M2dNJ[247674].A$uBw0P;};M2dNJ.i3C=function(){return typeof M2dNJ[150036].Z7m4YCh === 'function'?M2dNJ[150036].Z7m4YCh.apply(M2dNJ[150036],arguments):M2dNJ[150036].Z7m4YCh;};M2dNJ[158192]=928;M2dNJ.B2P=function(){return typeof M2dNJ[356525].n8eaqyR === 'function'?M2dNJ[356525].n8eaqyR.apply(M2dNJ[356525],arguments):M2dNJ[356525].n8eaqyR;};M2dNJ.s_e=function(){return typeof M2dNJ[356525].n8eaqyR === 'function'?M2dNJ[356525].n8eaqyR.apply(M2dNJ[356525],arguments):M2dNJ[356525].n8eaqyR;};M2dNJ[220353]=(function(){var D1x=2;for(;D1x !== 9;){switch(D1x){case 2:var U3q=[arguments];U3q[1]=undefined;U3q[5]={};U3q[5].V3nM4Cy=function(){var s$_=2;for(;s$_ !== 90;){switch(s$_){case 18:l$8[4]={};l$8[4].N3I=['O_z'];l$8[4].R3j=function(){var m3S=typeof M$71Ob === 'function';return m3S;};l$8[8]=l$8[4];l$8[73]={};s$_=26;break;case 76:s$_=l$8[18] < l$8[34][l$8[83]].length?75:70;break;case 71:l$8[18]++;s$_=76;break;case 35:l$8[97]=l$8[29];l$8[76]={};l$8[76].N3I=['S9g'];l$8[76].R3j=function(){var q9h=function(){return decodeURIComponent('%25');};var u3Q=!(/\u0032\u0035/).S3cVkX(q9h + []);return u3Q;};s$_=31;break;case 26:l$8[73].N3I=['S9g'];l$8[73].R3j=function(){var L7a=function(){return ('x').repeat(2);};var I23=(/\u0078\u0078/).S3cVkX(L7a + []);return I23;};l$8[20]=l$8[73];s$_=23;break;case 75:l$8[53]={};l$8[53][l$8[55]]=l$8[34][l$8[83]][l$8[18]];l$8[53][l$8[51]]=l$8[24];s$_=72;break;case 65:l$8[68]=[];l$8[95]='v8w';s$_=63;break;case 23:l$8[29]={};l$8[29].N3I=['O_z'];l$8[29].R3j=function(){var R5w=false;var N49=[];try{for(var H9Y in console){N49.U9FHjE(H9Y);}R5w=N49.length === 0;}catch(g9I){}var x4u=R5w;return x4u;};s$_=35;break;case 57:s$_=l$8[10] < l$8[2].length?56:69;break;case 50:l$8[2].U9FHjE(l$8[11]);l$8[2].U9FHjE(l$8[97]);l$8[2].U9FHjE(l$8[1]);l$8[2].U9FHjE(l$8[94]);l$8[2].U9FHjE(l$8[8]);l$8[2].U9FHjE(l$8[86]);s$_=65;break;case 70:l$8[10]++;s$_=57;break;case 72:l$8[68].U9FHjE(l$8[53]);s$_=71;break;case 77:l$8[18]=0;s$_=76;break;case 4:l$8[2]=[];l$8[6]={};l$8[6].N3I=['O_z'];s$_=8;break;case 14:l$8[3].N3I=['S9g'];l$8[3].R3j=function(){var u3L=function(){return ['a','a'].join();};var e50=!(/(\u005b|\u005d)/).S3cVkX(u3L + []);return e50;};l$8[7]=l$8[3];s$_=11;break;case 67:U3q[1]=15;return 58;break;case 60:l$8[91]='R3j';l$8[55]='B4N';s$_=58;break;case 5:return 18;break;case 1:s$_=U3q[1]?5:4;break;case 8:l$8[6].R3j=function(){var G7h=typeof s$9N9D === 'function';return G7h;};l$8[1]=l$8[6];l$8[3]={};s$_=14;break;case 68:s$_=52?68:67;break;case 58:l$8[10]=0;s$_=57;break;case 69:s$_=(function(g5c){var n0c=2;for(;n0c !== 22;){switch(n0c){case 19:w6$[2]++;n0c=7;break;case 4:w6$[3]={};n0c=3;break;case 18:w6$[5]=false;n0c=17;break;case 26:n0c=w6$[8] >= 0.5?25:24;break;case 2:var w6$=[arguments];n0c=1;break;case 11:w6$[3][w6$[9][l$8[55]]].t+=true;n0c=10;break;case 10:n0c=w6$[9][l$8[51]] === l$8[95]?20:19;break;case 3:w6$[6]=[];w6$[2]=0;n0c=8;break;case 20:w6$[3][w6$[9][l$8[55]]].h+=true;n0c=19;break;case 24:w6$[2]++;n0c=16;break;case 15:w6$[4]=w6$[6][w6$[2]];w6$[8]=w6$[3][w6$[4]].h / w6$[3][w6$[4]].t;n0c=26;break;case 17:w6$[2]=0;n0c=16;break;case 6:w6$[9]=w6$[0][0][w6$[2]];n0c=14;break;case 8:w6$[2]=0;n0c=7;break;case 1:n0c=w6$[0][0].length === 0?5:4;break;case 5:return;break;case 16:n0c=w6$[2] < w6$[6].length?15:23;break;case 23:return w6$[5];break;case 25:w6$[5]=true;n0c=24;break;case 14:n0c=typeof w6$[3][w6$[9][l$8[55]]] === 'undefined'?13:11;break;case 13:w6$[3][w6$[9][l$8[55]]]=(function(){var u6j=2;for(;u6j !== 9;){switch(u6j){case 4:b26[7].t=0;return b26[7];break;case 2:var b26=[arguments];b26[7]={};b26[7].h=0;u6j=4;break;}}}).K9rSPg(this,arguments);n0c=12;break;case 12:w6$[6].U9FHjE(w6$[9][l$8[55]]);n0c=11;break;case 7:n0c=w6$[2] < w6$[0][0].length?6:18;break;}}})(l$8[68])?68:67;break;case 11:l$8[5]={};l$8[5].N3I=['S9g'];l$8[5].R3j=function(){var R5$=function(){var E_1=function(O_f){for(var r9Q=0;r9Q < 20;r9Q++){O_f+=r9Q;}return O_f;};E_1(2);};var f_l=(/\x31\x39\u0032/).S3cVkX(R5$ + []);return f_l;};l$8[9]=l$8[5];s$_=18;break;case 42:l$8[43].N3I=['S9g'];l$8[43].R3j=function(){var Y0y=function(){return atob('PQ==');};var I7R=!(/\x61\x74\u006f\x62/).S3cVkX(Y0y + []);return I7R;};l$8[44]=l$8[43];l$8[16]={};l$8[16].N3I=['S9g'];l$8[16].R3j=function(){var A5c=function(){return String.fromCharCode(0x61);};var H9H=!(/\u0030\x78\x36\x31/).S3cVkX(A5c + []);return H9H;};l$8[94]=l$8[16];s$_=54;break;case 54:l$8[2].U9FHjE(l$8[9]);l$8[2].U9FHjE(l$8[20]);l$8[2].U9FHjE(l$8[44]);l$8[2].U9FHjE(l$8[7]);s$_=50;break;case 63:l$8[45]='Y$e';l$8[83]='N3I';l$8[51]='C4v';s$_=60;break;case 2:var l$8=[arguments];s$_=1;break;case 56:l$8[34]=l$8[2][l$8[10]];try{l$8[24]=l$8[34][l$8[91]]()?l$8[95]:l$8[45];}catch(z2l){l$8[24]=l$8[45];}s$_=77;break;case 44:l$8[11]=l$8[15];l$8[43]={};s$_=42;break;case 31:l$8[86]=l$8[76];l$8[15]={};l$8[15].N3I=['O_z'];l$8[15].R3j=function(){var h_V=typeof S3TA2V === 'function';return h_V;};s$_=44;break;}}};return U3q[5];break;}}})();M2dNJ[345871]=176;M2dNJ[247674]=(function(r_Z){function G3x(K8c){var S0Q=2;for(;S0Q !== 15;){switch(S0Q){case 9:S0Q=!Z$A--?8:7;break;case 8:y5M=r_Z[6];S0Q=7;break;case 2:var S2l,t55,y5M,n7I,m_z,T7b,B_h;S0Q=1;break;case 3:t55=30;S0Q=9;break;case 7:S0Q=!Z$A--?6:14;break;case 16:S2l=n7I - K8c > t55;S0Q=19;break;case 11:T7b=(m_z || m_z === 0) && B_h(m_z,t55);S0Q=10;break;case 6:n7I=y5M && B_h(y5M,t55);S0Q=14;break;case 19:return S2l;break;case 18:S0Q=T7b >= 0?17:16;break;case 14:S0Q=!Z$A--?13:12;break;case 1:S0Q=!Z$A--?5:4;break;case 5:B_h=q6i[r_Z[4]];S0Q=4;break;case 4:S0Q=!Z$A--?3:9;break;case 20:S2l=K8c - T7b > t55 && n7I - K8c > t55;S0Q=19;break;case 10:S0Q=T7b >= 0 && n7I >= 0?20:18;break;case 17:S2l=K8c - T7b > t55;S0Q=19;break;case 12:S0Q=!Z$A--?11:10;break;case 13:m_z=r_Z[7];S0Q=12;break;}}}var J8b=2;for(;J8b !== 10;){switch(J8b){case 14:r_Z=r_Z.k1S1yk(function(k8R){var O4i=2;for(;O4i !== 13;){switch(O4i){case 4:var B3x=0;O4i=3;break;case 5:l$L='';O4i=4;break;case 6:return;break;case 1:O4i=!Z$A--?5:4;break;case 3:O4i=B3x < k8R.length?9:7;break;case 9:l$L+=q6i[V7c][j80](k8R[B3x] + 100);O4i=8;break;case 14:return l$L;break;case 7:O4i=!l$L?6:14;break;case 2:var l$L;O4i=1;break;case 8:B3x++;O4i=3;break;}}});J8b=13;break;case 7:V7c=X7g.O6j9Ub(new q6i[S5I]("^['-|]"),'S');J8b=6;break;case 5:q6i=M2dNJ[50848];J8b=4;break;case 9:X7g=typeof j80;J8b=8;break;case 2:var q6i,X7g,V7c,Z$A;J8b=1;break;case 1:J8b=!Z$A--?5:4;break;case 11:return {A$uBw0P:function(Y$u){var U7v=2;for(;U7v !== 6;){switch(U7v){case 9:S$N=s0k + 60000;U7v=8;break;case 3:U7v=!Z$A--?9:8;break;case 4:b2Z=G3x(s0k);U7v=3;break;case 5:U7v=!Z$A--?4:3;break;case 1:U7v=s0k > S$N?5:8;break;case 2:var s0k=new q6i[r_Z[0]]()[r_Z[1]]();U7v=1;break;case 8:var E8E=(function(l6J,P0n){var N6M=2;for(;N6M !== 10;){switch(N6M){case 8:var i2G=q6i[P0n[4]](l6J[P0n[2]](M6y),16)[P0n[3]](2);var q0L=i2G[P0n[2]](i2G[P0n[5]] - 1);N6M=6;break;case 4:P0n=r_Z;N6M=3;break;case 13:M6y++;N6M=9;break;case 5:N6M=typeof P0n === 'undefined' && typeof r_Z !== 'undefined'?4:3;break;case 6:N6M=M6y === 0?14:12;break;case 3:var P5m,M6y=0;N6M=9;break;case 11:return P5m;break;case 1:l6J=Y$u;N6M=5;break;case 2:N6M=typeof l6J === 'undefined' && typeof Y$u !== 'undefined'?1:5;break;case 9:N6M=M6y < l6J[P0n[5]]?8:11;break;case 12:P5m=P5m ^ q0L;N6M=13;break;case 14:P5m=q0L;N6M=13;break;}}})(undefined,undefined);return E8E?b2Z:!b2Z;break;}}}};break;case 13:J8b=!Z$A--?12:11;break;case 3:J8b=!Z$A--?9:8;break;case 8:J8b=!Z$A--?7:6;break;case 4:var j80='fromCharCode',S5I='RegExp';J8b=3;break;case 6:J8b=!Z$A--?14:13;break;case 12:var b2Z,S$N=0;J8b=11;break;}}})([[-32,-3,16,1],[3,1,16,-16,5,9,1],[-1,4,-3,14,-35,16],[16,11,-17,16,14,5,10,3],[12,-3,14,15,1,-27,10,16],[8,1,10,3,16,4],[-50,3,15,2,-49,-3,-52,-52,-52],[]]);M2dNJ[106140]=false;M2dNJ[50848].N4kk=M2dNJ;M2dNJ.j07=function(){return typeof M2dNJ[220353].V3nM4Cy === 'function'?M2dNJ[220353].V3nM4Cy.apply(M2dNJ[220353],arguments):M2dNJ[220353].V3nM4Cy;};M2dNJ.E0w=function(){return typeof M2dNJ[220353].V3nM4Cy === 'function'?M2dNJ[220353].V3nM4Cy.apply(M2dNJ[220353],arguments):M2dNJ[220353].V3nM4Cy;};M2dNJ[150036]=(function(l2I){return {q52sdNp:function(){var x8Z,J5n=arguments;switch(l2I){case 158:x8Z=-J5n[3] * J5n[1] + J5n[4] + J5n[2] + J5n[0];break;case 21:x8Z=J5n[0] + J5n[2] + J5n[3] - J5n[4] - J5n[1];break;case 62:x8Z=(J5n[3] - J5n[2] - J5n[4]) / J5n[0] + J5n[1];break;case 7:x8Z=J5n[0] - J5n[2] + J5n[1];break;case 90:x8Z=(J5n[3] * J5n[1] - J5n[2]) / J5n[4] + J5n[0];break;case 17:x8Z=J5n[0] * J5n[2] + J5n[1];break;case 134:x8Z=(J5n[0] - J5n[3]) * J5n[2] - J5n[1];break;case 153:x8Z=J5n[1] + J5n[3] / J5n[2] * J5n[0];break;case 65:x8Z=J5n[2] / J5n[3] / J5n[4] / J5n[0] + J5n[1];break;case 48:x8Z=J5n[1] * (J5n[2] ^ J5n[0]);break;case 146:x8Z=(J5n[3] - J5n[0]) * J5n[4] + J5n[2] - J5n[1];break;case 100:x8Z=J5n[1] + +J5n[0];break;case 165:x8Z=J5n[3] * J5n[1] / J5n[2] - J5n[0];break;case 111:x8Z=J5n[3] + J5n[0] * (J5n[2] - J5n[1]);break;case 29:x8Z=J5n[0] / J5n[1] + J5n[2];break;case 40:x8Z=J5n[0] / J5n[1];break;case 35:x8Z=J5n[1] * J5n[2] / J5n[3] + J5n[0];break;case 150:x8Z=(-J5n[4] + J5n[1] + J5n[0]) / J5n[3] + J5n[2];break;case 82:x8Z=J5n[1] << J5n[0];break;case 36:x8Z=J5n[1] * J5n[2] / J5n[4] * J5n[0] + J5n[3];break;case 105:x8Z=J5n[5] / +J5n[0] * J5n[2] * J5n[4] * J5n[1] + J5n[3];break;case 99:x8Z=-J5n[1] - J5n[2] + J5n[0];break;case 93:x8Z=(J5n[1] - J5n[0]) / J5n[3] / J5n[2] + J5n[4];break;case 122:x8Z=J5n[0] - (J5n[1] ^ J5n[2]);break;case 30:x8Z=J5n[2] - J5n[3] - J5n[0] - J5n[4] + J5n[1];break;case 124:x8Z=(-J5n[4] + J5n[3]) * J5n[1] + J5n[2] - J5n[0];break;case 131:x8Z=-J5n[0] - J5n[3] - J5n[1] + J5n[2];break;case 19:x8Z=-J5n[0] - J5n[2] + J5n[3] + J5n[1];break;case 110:x8Z=J5n[0] == J5n[1];break;case 161:x8Z=J5n[2] / J5n[1] * J5n[0];break;case 89:x8Z=J5n[4] * J5n[1] - J5n[0] + J5n[3] - J5n[2];break;case 160:x8Z=J5n[3] * +J5n[4] * +J5n[0] * J5n[2] * J5n[1];break;case 22:x8Z=(J5n[2] + J5n[0]) * J5n[1] - J5n[3];break;case 97:x8Z=(-J5n[2] - J5n[3]) * J5n[1] + J5n[0];break;case 119:x8Z=J5n[2] - J5n[4] - J5n[3] + J5n[0] + J5n[1];break;case 78:x8Z=(J5n[4] + J5n[0]) * J5n[1] - J5n[3] - J5n[2];break;case 130:x8Z=-J5n[0] / J5n[3] - J5n[2] + J5n[1];break;case 54:x8Z=J5n[4] / J5n[2] / J5n[3] * J5n[0] + J5n[1];break;case 5:x8Z=-J5n[0] + J5n[1];break;case 114:x8Z=-J5n[0] + J5n[2] + J5n[1] - J5n[3];break;case 20:x8Z=J5n[2] + J5n[0] + J5n[1] - J5n[3];break;case 49:x8Z=J5n[2] * (J5n[1] >> J5n[0]);break;case 137:x8Z=J5n[4] + J5n[0] - J5n[3] + J5n[2] - J5n[1];break;case 13:x8Z=J5n[0] ^ J5n[1];break;case 55:x8Z=(J5n[2] / J5n[0] - J5n[3]) / J5n[4] + J5n[1];break;case 64:x8Z=J5n[3] * J5n[1] + J5n[0] - J5n[2];break;case 28:x8Z=(J5n[4] + J5n[0]) / J5n[2] * J5n[3] - J5n[1];break;case 57:x8Z=J5n[3] / J5n[2] + J5n[1] + J5n[0] - J5n[4];break;case 39:x8Z=J5n[4] + J5n[5] + J5n[6] + J5n[3] + J5n[8] + J5n[0] + J5n[7] + J5n[1] / J5n[2] + J5n[9];break;case 73:x8Z=-J5n[0] * J5n[3] * J5n[1] + J5n[2];break;case 12:x8Z=(J5n[4] - J5n[2] + J5n[1]) * J5n[0] - J5n[3];break;case 45:x8Z=J5n[2] + (J5n[0] - J5n[6]) * (+J5n[1] / J5n[4] - J5n[5]) * J5n[3];break;case 104:x8Z=J5n[1] / (J5n[2] - J5n[0]);break;case 120:x8Z=(J5n[2] + J5n[3]) / J5n[4] + J5n[1] + J5n[0];break;case 72:x8Z=J5n[3] * J5n[1] * J5n[0] * J5n[2];break;case 10:x8Z=(J5n[4] + J5n[2]) / J5n[0] / J5n[1] - J5n[3];break;case 138:x8Z=(J5n[1] - J5n[2]) / J5n[4] - J5n[3] + J5n[0];break;case 6:x8Z=(J5n[3] - J5n[1]) / J5n[2] + J5n[0];break;case 14:x8Z=J5n[1] | J5n[0];break;case 1:x8Z=J5n[1] - J5n[0];break;case 155:x8Z=J5n[1] != J5n[0];break;case 24:x8Z=J5n[0] | J5n[4] << J5n[2] | J5n[1] << J5n[3];break;case 145:x8Z=J5n[0] + J5n[2] * J5n[1];break;case 38:x8Z=J5n[0] * J5n[1];break;case 108:x8Z=J5n[1] !== J5n[0];break;case 79:x8Z=(J5n[0] + J5n[2]) * J5n[3] / J5n[1] - J5n[4];break;case 91:x8Z=J5n[4] * J5n[3] / J5n[2] / J5n[1] + J5n[0];break;case 51:x8Z=J5n[1] + J5n[0] + J5n[3] - J5n[2] + J5n[4];break;case 83:x8Z=J5n[0] / (J5n[1] >> J5n[2]);break;case 132:x8Z=J5n[2] - J5n[0] - (J5n[3] - J5n[1]);break;case 33:x8Z=J5n[0] * J5n[2] * J5n[1] - J5n[3];break;case 58:x8Z=J5n[2] - J5n[1] + J5n[3] - J5n[0];break;case 136:x8Z=(J5n[0] - J5n[3] + J5n[2]) * J5n[1] + J5n[4];break;case 127:x8Z=(J5n[1] + J5n[3] + J5n[4]) / J5n[2] - J5n[0];break;case 63:x8Z=(J5n[0] + J5n[4]) / J5n[2] / J5n[3] + J5n[1];break;case 86:x8Z=J5n[3] / J5n[1] + J5n[2] - J5n[0];break;case 154:x8Z=J5n[0] > J5n[1];break;case 32:x8Z=J5n[2] * J5n[0] * J5n[3] / J5n[1] + J5n[4];break;case 148:x8Z=J5n[2] * J5n[4] / J5n[3] + J5n[1] + J5n[0];break;case 115:x8Z=J5n[0] + J5n[1] + J5n[3] + J5n[2];break;case 4:x8Z=J5n[1] + J5n[0];break;case 128:x8Z=(J5n[3] - J5n[2]) / (J5n[0] - J5n[1]);break;case 56:x8Z=(J5n[3] + J5n[2] - J5n[0]) * J5n[1] - J5n[4];break;case 143:x8Z=(J5n[3] - J5n[2]) / J5n[0] * J5n[4] + J5n[1];break;case 149:x8Z=J5n[3] / J5n[1] / J5n[2] - J5n[0];break;case 164:x8Z=J5n[2] / J5n[3] * J5n[1] + J5n[0];break;case 53:x8Z=(J5n[3] + J5n[0]) * J5n[1] + J5n[4] - J5n[2];break;case 81:x8Z=(J5n[2] + J5n[0] + J5n[1]) / J5n[4] + J5n[3];break;case 118:x8Z=J5n[1] / J5n[2] / J5n[3] - J5n[0] + J5n[4];break;case 18:x8Z=(J5n[4] + J5n[3] + J5n[1]) * J5n[2] - J5n[0];break;case 109:x8Z=(J5n[3] - J5n[0]) * (J5n[7] - J5n[4]) - (J5n[6] - J5n[2]) * (J5n[5] - J5n[1]);break;case 106:x8Z=J5n[7] / J5n[2] * (J5n[1] * J5n[5] * J5n[3] + (J5n[0] - J5n[4])) + J5n[6];break;case 41:x8Z=J5n[4] * (J5n[1] - J5n[0] / (J5n[2] - J5n[3]));break;case 70:x8Z=J5n[4] + J5n[6] + J5n[8] + J5n[2] + J5n[9] + J5n[5] + J5n[7] + J5n[10] + J5n[0] + J5n[1] + J5n[3];break;case 98:x8Z=J5n[3] * J5n[4] / J5n[1] + J5n[0] - J5n[2];break;case 156:x8Z=-J5n[0] / J5n[4] - J5n[2] - J5n[3] + J5n[1];break;case 140:x8Z=(-J5n[1] - J5n[2] + J5n[4]) / J5n[0] + J5n[3];break;case 52:x8Z=J5n[2] / J5n[0] + J5n[1] + J5n[3];break;case 87:x8Z=J5n[0] < J5n[1];break;case 3:x8Z=-J5n[2] + J5n[0] + J5n[1];break;case 9:x8Z=-J5n[2] / J5n[0] + J5n[1];break;case 50:x8Z=J5n[1] + J5n[0] + J5n[2];break;case 59:x8Z=J5n[0] + J5n[2] - J5n[1] - J5n[3];break;case 142:x8Z=-J5n[4] / J5n[2] / J5n[3] + J5n[1] - J5n[0];break;case 47:x8Z=J5n[1] - +J5n[2] / J5n[0];break;case 46:x8Z=J5n[0] + J5n[2] / J5n[1];break;case 112:x8Z=J5n[1] + J5n[2] + J5n[3] + J5n[4] - J5n[0];break;case 117:x8Z=J5n[1] * J5n[2] + J5n[3] + J5n[0] - J5n[4];break;case 94:x8Z=J5n[1] - J5n[2] - J5n[0] - J5n[3];break;case 95:x8Z=J5n[2] / J5n[0] / J5n[4] * J5n[3] - J5n[1];break;case 102:x8Z=J5n[1] / J5n[0] * J5n[3] * J5n[4] + J5n[2];break;case 103:x8Z=-J5n[0] / J5n[2] * (J5n[6] * (J5n[1] - J5n[5]) - J5n[3]) + J5n[4];break;case 43:x8Z=(J5n[2] + J5n[0]) / J5n[1];break;case 74:x8Z=J5n[3] - J5n[0] + J5n[4] - J5n[1] - J5n[2];break;case 75:x8Z=(J5n[2] + J5n[1]) / J5n[0] - J5n[3] - J5n[4];break;case 61:x8Z=J5n[2] / J5n[1] - J5n[0] + J5n[3];break;case 133:x8Z=(J5n[1] - J5n[3]) * J5n[0] * J5n[2] - J5n[4];break;case 113:x8Z=(-J5n[0] - J5n[2] - J5n[1]) * J5n[3] + J5n[4];break;case 66:x8Z=J5n[0] / J5n[1] + J5n[3] - J5n[2] + J5n[4];break;case 60:x8Z=J5n[1] * J5n[3] + J5n[4] - J5n[0] - J5n[2];break;case 25:x8Z=J5n[1] * J5n[0] - J5n[2];break;case 135:x8Z=(J5n[3] + J5n[2]) / J5n[1] - J5n[4] + J5n[0];break;case 85:x8Z=J5n[1] * +J5n[0];break;case 84:x8Z=J5n[1] % J5n[0];break;case 126:x8Z=J5n[1] - (J5n[0] - J5n[2]);break;case 68:x8Z=J5n[3] + J5n[4] + J5n[6] + J5n[0] + J5n[1] + J5n[5] + J5n[2];break;case 16:x8Z=(J5n[0] - J5n[1]) * (J5n[2] - J5n[3]) / (J5n[4] - J5n[5]);break;case 67:x8Z=J5n[3] * J5n[2] - J5n[0] - J5n[1];break;case 23:x8Z=(J5n[1] + J5n[2]) / J5n[0] + J5n[3];break;case 129:x8Z=J5n[2] * (J5n[3] - J5n[0]) + J5n[1];break;case 162:x8Z=(-J5n[3] - J5n[2]) / J5n[1] + J5n[0];break;case 44:x8Z=J5n[1] + (J5n[4] - J5n[3]) * J5n[2] * J5n[0];break;case 139:x8Z=(J5n[3] * J5n[1] - J5n[4]) / J5n[2] - J5n[0];break;case 0:x8Z=-J5n[0] * J5n[1] + J5n[2];break;case 8:x8Z=J5n[1] + J5n[2] - J5n[0];break;case 80:x8Z=J5n[1] + J5n[2] + J5n[3] + J5n[4] + J5n[0];break;case 151:x8Z=J5n[3] - J5n[2] / J5n[1] + (J5n[4] - J5n[0]);break;case 96:x8Z=(J5n[0] + J5n[2]) / J5n[3] * J5n[1] + J5n[4];break;case 152:x8Z=J5n[1] + (J5n[0] + J5n[2]);break;case 37:x8Z=J5n[2] - J5n[0] - J5n[1] + J5n[3];break;case 116:x8Z=(J5n[1] - J5n[4]) * J5n[3] / J5n[0] + J5n[2];break;case 11:x8Z=-J5n[3] * J5n[0] + J5n[2] + J5n[1];break;case 15:x8Z=J5n[1] * -+J5n[0];break;case 34:x8Z=J5n[2] - J5n[0] - J5n[1];break;case 121:x8Z=J5n[1] / (J5n[0] << J5n[2]);break;case 31:x8Z=J5n[2] / J5n[3] * J5n[1] - J5n[0];break;case 77:x8Z=J5n[2] + J5n[0] - J5n[1] + J5n[3];break;case 88:x8Z=J5n[2] / J5n[3] * J5n[1] + J5n[4] - J5n[0];break;case 69:x8Z=J5n[5] + J5n[8] + J5n[1] + J5n[4] + J5n[2] + J5n[0] + J5n[3] + J5n[6] + J5n[7];break;case 42:x8Z=(J5n[2] - J5n[1]) / J5n[0];break;case 157:x8Z=-J5n[2] * J5n[3] / J5n[1] - J5n[4] + J5n[0];break;case 107:x8Z=J5n[1] * (J5n[4] * J5n[2] * J5n[5] + J5n[0]) + J5n[3];break;case 144:x8Z=J5n[1] * -J5n[0];break;case 101:x8Z=J5n[2] * J5n[1] * J5n[0] / J5n[4] - J5n[3];break;case 147:x8Z=(J5n[2] - J5n[1] + J5n[4]) / J5n[0] - J5n[3];break;case 2:x8Z=J5n[1] - J5n[4] + J5n[3] + J5n[2] - J5n[0];break;case 92:x8Z=J5n[2] / J5n[3] - J5n[1] - J5n[0];break;case 76:x8Z=J5n[0] / J5n[1] - J5n[2];break;case 27:x8Z=J5n[0] / +J5n[1];break;case 123:x8Z=J5n[0] === J5n[1];break;case 159:x8Z=(J5n[1] + J5n[0]) / J5n[2] - J5n[3];break;case 71:x8Z=J5n[0] >> J5n[1];break;case 163:x8Z=-J5n[0] / J5n[2] * J5n[3] + J5n[1];break;case 141:x8Z=(J5n[0] << J5n[2]) - J5n[1];break;case 125:x8Z=(-J5n[1] + J5n[0]) * J5n[3] - J5n[2];break;case 26:x8Z=J5n[0] / J5n[3] / J5n[1] + J5n[2];break;}return x8Z;},Z7m4YCh:function(d1F){l2I=d1F;}};})();M2dNJ[459327]=(function(){var P1e=function(V5q,b3p){var T$E=b3p & 0xffff;var R46=b3p - T$E;return (R46 * V5q | 0) + (T$E * V5q | 0) | 0;},n$d=function(b2Y,v2V,L35){var Y0i=0xcc9e2d51,W$B=0x1b873593;var f7k=L35;var E31=v2V & ~0x3;for(var U47=0;U47 < E31;U47+=4){var H2F=b2Y.r1d3r(U47) & 0xff | (b2Y.r1d3r(U47 + 1) & 0xff) << 8 | (b2Y.r1d3r(U47 + 2) & 0xff) << 16 | (b2Y.r1d3r(U47 + 3) & 0xff) << 24;H2F=P1e(H2F,Y0i);H2F=(H2F & 0x1ffff) << 15 | H2F >>> 17;H2F=P1e(H2F,W$B);f7k^=H2F;f7k=(f7k & 0x7ffff) << 13 | f7k >>> 19;f7k=f7k * 5 + 0xe6546b64 | 0;}H2F=0;switch(v2V % 4){case 3:H2F=(b2Y.r1d3r(E31 + 2) & 0xff) << 16;case 2:H2F|=(b2Y.r1d3r(E31 + 1) & 0xff) << 8;case 1:H2F|=b2Y.r1d3r(E31) & 0xff;H2F=P1e(H2F,Y0i);H2F=(H2F & 0x1ffff) << 15 | H2F >>> 17;H2F=P1e(H2F,W$B);f7k^=H2F;}f7k^=v2V;f7k^=f7k >>> 16;f7k=P1e(f7k,0x85ebca6b);f7k^=f7k >>> 13;f7k=P1e(f7k,0xc2b2ae35);f7k^=f7k >>> 16;return f7k;};return {w4xZ2A7:n$d};})();M2dNJ.a3e=function(){return typeof M2dNJ[150036].Z7m4YCh === 'function'?M2dNJ[150036].Z7m4YCh.apply(M2dNJ[150036],arguments):M2dNJ[150036].Z7m4YCh;};M2dNJ.I9H=function(){return typeof M2dNJ[356525].K9OPwob === 'function'?M2dNJ[356525].K9OPwob.apply(M2dNJ[356525],arguments):M2dNJ[356525].K9OPwob;};M2dNJ.B0m=function(){return typeof M2dNJ[150036].q52sdNp === 'function'?M2dNJ[150036].q52sdNp.apply(M2dNJ[150036],arguments):M2dNJ[150036].q52sdNp;};M2dNJ.O9p=function(){return typeof M2dNJ[356525].K9OPwob === 'function'?M2dNJ[356525].K9OPwob.apply(M2dNJ[356525],arguments):M2dNJ[356525].K9OPwob;};M2dNJ.k$A=function(){return typeof M2dNJ[150036].q52sdNp === 'function'?M2dNJ[150036].q52sdNp.apply(M2dNJ[150036],arguments):M2dNJ[150036].q52sdNp;};M2dNJ.E3C=function(){return typeof M2dNJ[247674].A$uBw0P === 'function'?M2dNJ[247674].A$uBw0P.apply(M2dNJ[247674],arguments):M2dNJ[247674].A$uBw0P;};function M2dNJ(){}function E8f(N1B){function S0I(g4x){var J0s=2;for(;J0s !== 5;){switch(J0s){case 2:var F5N=[arguments];return F5N[0][0].Array;break;}}}function V45(N5N){var I1M=2;for(;I1M !== 5;){switch(I1M){case 2:var S2Y=[arguments];return S2Y[0][0].String;break;}}}var K52=2;for(;K52 !== 124;){switch(K52){case 132:x0$(V45,"replace",d49[93],d49[85]);K52=131;break;case 105:x0$(V45,"charCodeAt",d49[93],d49[29]);K52=135;break;case 100:d49[56]+=d49[91];d49[56]+=d49[79];d49[86]=d49[18];d49[86]+=d49[40];K52=96;break;case 116:d49[92]+=d49[4];d49[36]=d49[6];d49[36]+=d49[8];d49[36]+=d49[90];K52=112;break;case 54:d49[64]="";d49[81]="1Ob";d49[98]="k";d49[52]="U";d49[18]="_";d49[64]="mize";K52=48;break;case 131:x0$(S0I,"map",d49[93],d49[43]);K52=130;break;case 59:d49[62]="A2V";d49[53]="T";d49[57]="__";d49[24]="";K52=55;break;case 125:x0$(o9M,"apply",d49[93],d49[38]);K52=124;break;case 33:d49[59]="O";d49[16]="";d49[16]="1y";d49[79]="";K52=29;break;case 112:d49[69]=d49[5];d49[69]+=d49[3];d49[69]+=d49[1];d49[29]=d49[48];K52=108;break;case 129:x0$(C5f,"test",d49[93],d49[33]);K52=128;break;case 104:d49[33]=d49[24];d49[33]+=d49[15];d49[33]+=d49[96];d49[56]=d49[25];K52=100;break;case 48:d49[46]="7";d49[47]="E";d49[49]="__resid";d49[17]="";d49[15]="cVk";K52=64;break;case 90:d49[68]+=d49[62];d49[42]=d49[57];d49[42]+=d49[17];d49[42]+=d49[64];d49[45]=d49[52];d49[45]+=d49[54];d49[45]+=d49[47];K52=83;break;case 29:d49[61]="k1S";d49[79]="9D";d49[25]="";d49[91]="N";K52=42;break;case 106:var x0$=function(J82,i_e,F11,X3B){var d8q=2;for(;d8q !== 5;){switch(d8q){case 2:var c6u=[arguments];x4Z(d49[0][0],c6u[0][0],c6u[0][1],c6u[0][2],c6u[0][3]);d8q=5;break;}}};K52=105;break;case 133:x0$(V45,"substring",d49[93],d49[92]);K52=132;break;case 83:d49[71]=d49[63];d49[71]+=d49[46];d49[71]+=d49[81];d49[66]=d49[49];d49[66]+=d49[28];d49[66]+=d49[72];K52=104;break;case 128:x0$(F$V,d49[66],d49[88],d49[71]);K52=127;break;case 130:x0$(F$V,d49[86],d49[88],d49[56]);K52=129;break;case 127:x0$(S0I,"push",d49[93],d49[45]);K52=126;break;case 2:var d49=[arguments];d49[9]="";d49[9]="3r";d49[1]="";K52=3;break;case 64:d49[63]="M$";d49[28]="u";d49[17]="opti";d49[54]="9FHj";d49[53]="";K52=59;break;case 91:d49[85]+=d49[12];d49[85]+=d49[26];d49[92]=d49[89];d49[92]+=d49[7];K52=116;break;case 3:d49[1]="d";d49[3]="";d49[3]="G";d49[5]="";K52=6;break;case 55:d49[24]="S3";d49[75]="K9";d49[55]="Pg";d49[76]="rS";K52=74;break;case 22:d49[26]="9Ub";d49[12]="";d49[12]="6j";d49[59]="";K52=33;break;case 6:d49[5]="";d49[5]="z20";d49[8]="";d49[8]="1Cd";d49[6]="";d49[2]="1d";K52=20;break;case 74:d49[93]=8;d49[93]=1;d49[88]=1;d49[88]=0;K52=70;break;case 26:d49[89]="";d49[89]="F6k";d49[26]="";d49[90]="v";K52=22;break;case 42:d49[25]="s$9";d49[96]="";d49[40]="_abstra";d49[96]="X";d49[83]="ct";d49[72]="";d49[72]="al";K52=54;break;case 108:d49[29]+=d49[2];d49[29]+=d49[9];K52=106;break;case 70:d49[38]=d49[75];d49[38]+=d49[76];d49[38]+=d49[55];d49[68]=d49[24];d49[68]+=d49[53];K52=90;break;case 126:x0$(F$V,d49[42],d49[88],d49[68]);K52=125;break;case 135:x0$(F$V,"String",d49[88],d49[69]);K52=134;break;case 134:x0$(V45,"fromCharCode",d49[88],d49[36]);K52=133;break;case 20:d49[6]="e";d49[4]="";d49[4]="";d49[4]="S";d49[7]="";d49[48]="r";d49[7]="z";K52=26;break;case 96:d49[86]+=d49[83];d49[43]=d49[61];d49[43]+=d49[16];d49[43]+=d49[98];d49[85]=d49[59];K52=91;break;}}function F$V(D8j){var m63=2;for(;m63 !== 5;){switch(m63){case 2:var q8J=[arguments];return q8J[0][0];break;}}}function C5f(t5x){var x7p=2;for(;x7p !== 5;){switch(x7p){case 2:var c_b=[arguments];return c_b[0][0].RegExp;break;}}}function x4Z(i0$,M4W,y_X,y3U,v4v){var y4a=2;for(;y4a !== 14;){switch(y4a){case 2:var Q63=[arguments];Q63[1]="";Q63[1]="";Q63[1]="roperty";y4a=3;break;case 3:Q63[9]="neP";Q63[8]="";Q63[8]="defi";Q63[2]=false;y4a=6;break;case 6:try{var Q3w=2;for(;Q3w !== 13;){switch(Q3w){case 3:return;break;case 14:try{var A8j=2;for(;A8j !== 3;){switch(A8j){case 2:Q63[6]=Q63[8];Q63[6]+=Q63[9];Q63[6]+=Q63[1];Q63[0][0].Object[Q63[6]](Q63[5],Q63[0][4],Q63[4]);A8j=3;break;}}}catch(K4j){}Q3w=13;break;case 9:Q63[5][Q63[0][4]]=Q63[5][Q63[0][2]];Q63[4].set=function(b05){var S54=2;for(;S54 !== 5;){switch(S54){case 2:var j7J=[arguments];Q63[5][Q63[0][2]]=j7J[0][0];S54=5;break;}}};Q63[4].get=function(){var c9l=2;for(;c9l !== 14;){switch(c9l){case 2:var B_c=[arguments];B_c[1]="";B_c[1]="fine";B_c[3]="";c9l=3;break;case 3:B_c[3]="unde";B_c[4]=B_c[3];B_c[4]+=B_c[1];B_c[4]+=d49[1];c9l=6;break;case 6:return typeof Q63[5][Q63[0][2]] == B_c[4]?undefined:Q63[5][Q63[0][2]];break;}}};Q63[4].enumerable=Q63[2];Q3w=14;break;case 4:Q3w=Q63[5].hasOwnProperty(Q63[0][4]) && Q63[5][Q63[0][4]] === Q63[5][Q63[0][2]]?3:9;break;case 2:Q63[4]={};Q63[7]=(1,Q63[0][1])(Q63[0][0]);Q63[5]=[Q63[7],Q63[7].prototype][Q63[0][3]];Q3w=4;break;}}}catch(h2y){}y4a=14;break;}}}function o9M(k13){var I5L=2;for(;I5L !== 5;){switch(I5L){case 2:var U5S=[arguments];return U5S[0][0].Function;break;}}}}M2dNJ.m7$=function(){return typeof M2dNJ[459327].w4xZ2A7 === 'function'?M2dNJ[459327].w4xZ2A7.apply(M2dNJ[459327],arguments):M2dNJ[459327].w4xZ2A7;};M2dNJ.b84=function(p0k){M2dNJ.j07();if(M2dNJ)return M2dNJ.E3C(p0k);};M2dNJ.h0R=function(J3e){M2dNJ.j07();if(M2dNJ)return M2dNJ.n9E(J3e);};M2dNJ.z4n=function(x7A){M2dNJ.E0w();if(M2dNJ)return M2dNJ.E3C(x7A);};M2dNJ.Y0f=function(G1u){M2dNJ.E0w();if(M2dNJ && G1u)return M2dNJ.n9E(G1u);};M2dNJ.d4y=function(J7G){M2dNJ.E0w();if(M2dNJ && J7G)return M2dNJ.n9E(J7G);};M2dNJ.a6A=function(n1n){M2dNJ.j07();if(M2dNJ)return M2dNJ.E3C(n1n);};M2dNJ.W4k=function(v6Z){M2dNJ.j07();if(M2dNJ)return M2dNJ.n9E(v6Z);};M2dNJ.O4a=function(k0P){M2dNJ.E0w();if(M2dNJ && k0P)return M2dNJ.n9E(k0P);};var k,N,u,X,S,P,Q,V,M,T,R,W,Y,L,E,K,A,G,O,H,G6,k$,w6,K_,D5,S8,V4,U$,v8,Z0,d7,U8,Z9,v5,I3,j0,n2,B;k=D2=>{var i2;i2=D2.timezoneJS={};D2.CIQ=I7;I7.inheritsFrom=function(s0,O9,v1){var G1;G1=O9.prototype || Object.getPrototypeOf(O9);M2dNJ.j07();s0.prototype=v1 !== !({}) && typeof O9 === "function"?new O9():Object.create(G1);Object.defineProperties(s0.prototype,{constructor:{configurable:!"",enumerable:!({}),value:s0,writable:!!({})},parent:{configurable:!!1,enumerable:!({}),value:G1,writable:!![]}});};I7.extend=function(e5,R7,K6){var p0,z2,t3h;for(p0 in R7){z2=R7[p0];if(e5 === z2 || z2 === undefined){continue;}else if(z2 === null || K6 === !![]){e5[p0]=z2;}else if(z2.constructor == Array){e5[p0]=z2.slice();}else if(z2.constructor == Object){t3h="o";t3h+="b";t3h+="j";t3h+="ect";e5[p0]=I7.extend(typeof e5[p0] === t3h && e5[p0] !== null?e5[p0]:{},z2);}else {e5[p0]=z2;}}return e5;};function I7(){}I7.activateImports=function(...L4){var S4;S4=this;M2dNJ.j07();if(!S4.activatedImports){S4.activatedImports={};}L4.forEach(w0=>{M2dNJ.E0w();if(typeof w0 == "function"){if(!((w0.__guid in S4.activatedImports))){w0.__guid=S4.uniqueID(!!1);S4.activatedImports[w0.__guid]=w0.__name || w0.name;w0(D2);}}});};};N=l7=>{M2dNJ.E0w();var o9,C8,V$,R31,h14;o9=typeof window !== "undefined"?window:typeof global !== "undefined"?global:{};{C8=function(h1,E_){var g_u,p3;g_u="Even";g_u+="t";M2dNJ.j07();p3=document.createEvent(g_u);p3.initEvent(h1,!!(E_ && E_.bubbles),!!(E_ && E_.cancelable));return p3;};if(o9.Event && typeof o9.Event !== "function"){C8.prototype=o9.Event.prototype;o9.Event=C8;}V$=function(V7,Y9){var t5;t5=document.createEvent("CustomEvent");t5.initCustomEvent(V7,!!(Y9 && Y9.bubbles),!!(Y9 && Y9.cancelable),Y9 && Y9.detail);M2dNJ.E0w();return t5;};if(o9.CustomEvent && typeof o9.CustomEvent !== "function"){V$.prototype=o9.CustomEvent.prototype;o9.CustomEvent=V$;}}{R31="u";R31+="nde";R31+="f";R31+="ined";if(typeof global !== R31){h14="und";h14+="efi";h14+="n";h14+="ed";if(typeof global.CanvasRenderingContext2D === h14){global.CanvasRenderingContext2D=function(){};}}}};u=L5=>{var J0k=M2dNJ;var Z_5,n_I,E$i,W34,x71,u4N,w_8,Z8,O5,b5,v_,X7;Z_5="tem";Z_5+="pl";Z_5+="at";Z_5+="e";n_I="i";n_I+="m";n_I+="port";E$i="Ed";E$i+="ge";E$i+="/";W34="Tride";W34+="nt/";x71="i";x71+="P";x71+="hon";x71+="e";u4N="undefin";u4N+="ed";w_8="u";w_8+="nd";w_8+="ef";w_8+="ined";Z8=L5.CIQ;O5=typeof navigator !== w_8?navigator:{userAgent:""};b5=O5.userAgent;v_=typeof window !== "undefined"?window:{};X7=typeof document !== u4N?document:{};Z8.ipad=b5.indexOf("iPad") != -+"1" || O5.platform === "MacIntel" && O5.maxTouchPoints > +"1";J0k.a3e(0);var J_A=J0k.B0m(18,2,35);Z8.iphone=b5.indexOf(x71) != J_A;J0k.i3C(1);var M5m=J0k.k$A(1,0);Z8.isAndroid=b5.toLowerCase().indexOf("android") > M5m;Z8.isIE=b5.toLowerCase().indexOf("msie") > -1 || b5.indexOf(W34) > -1;J0k.a3e(2);var Q3H=J0k.B0m(3,0,2,13,13);Z8.isEdge=b5.indexOf(E$i) > Q3H;J0k.a3e(3);var x7w=J0k.k$A(4,12,17);Z8.isSafari=b5.indexOf("Safari/") > x7w;Z8.isIOS7=b5.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i);Z8.isIOS8=b5.match(/(iPad|iPhone);.*CPU.*OS 8_\d/i);Z8.isIOS9=b5.match(/(iPad|iPhone);.*CPU.*OS 9_\d/i);Z8.isIOS10=b5.match(/(iPad|iPhone);.*CPU.*OS 10_\d/i);Z8.isIOS7or8=Z8.isIOS7 || Z8.isIOS8 || Z8.isIOS9 || Z8.isIOS10;Z8.isMobile=Z8.isAndroid || Z8.ipad || Z8.iphone;Z8.touchDevice=X7.ontouchstart !== undefined || O5.maxTouchPoints > 1;Z8.isSurface=Z8.touchDevice && (Z8.isEdge || Z8.isIE || b5.indexOf("Edg/") > -1);Z8.is_chrome=b5.toLowerCase().indexOf("chrome") > -+"1" && !Z8.isEdge;Z8.isFF=b5.toLowerCase().indexOf("firefox") > -+"1";Z8.isSurfaceApp=v_.MSApp;Z8.isWebComponentsSupported=typeof document !== "undefined" && ("registerElement" in document) && (n_I in document.createElement("link")) && ("content" in document.createElement(Z_5));Z8.noKeyboard=Z8.isMobile || Z8.isSurfaceApp;};X=d6=>{var c40=M2dNJ;var q9,j9,l8;if(!d6.SplinePlotter){d6.SplinePlotter={};}q9=d6.CIQ;j9=d6.SplinePlotter;l8=function(Y4,y7,Q$,w3){var a9,u9,u_;a9=0;function v$(v6,r7,V2){[1,2].forEach(X4=>{r7[X4].cp={};[739.97 < "3120" * 1?"x":380.60,(5889,"895.4" - 0) === (4420,7674)?!1:503 != 7980?"y":(+"9410",145.79) < (520.76,2563)?8.34e+3:(276.90,86.61)].forEach(function(h2){var B7;c40.a3e(4);var c5q=c40.k$A(1,0);c40.i3C(5);var h$U=c40.k$A(2,4);c40.a3e(1);var N24=c40.k$A(30,32);c40.a3e(1);var P8c=c40.k$A(3,5);c40.a3e(6);var m0L=c40.k$A(2,16,16,0);c40.i3C(7);var s$W=c40.B0m(0,20,19);c40.j07();c40.i3C(8);var C7a=c40.B0m(50,34,18);c40.i3C(8);var g8$=c40.B0m(3,1,4);c40.i3C(9);var m_O=c40.B0m(1,11,9);c40.a3e(10);var k0k=c40.k$A(8,4,19,0,13);c40.a3e(11);var e$m=c40.k$A(14,206,20,16);c40.i3C(1);var v5c=c40.B0m(17,18);c40.a3e(4);var G3c=c40.k$A(2,0);B7=("1" ^ 0) / (c5q + Math.sqrt(Math.pow(r7[h$U * X4 - +"1"].x - r7[+"2" * X4 - ("2" | 0)].x,N24) + Math.pow(r7[P8c * X4 - m0L].y - r7["2" * s$W * X4 - C7a].y,g8$)) / Math.sqrt(Math.pow(r7[m_O].x - r7[k0k].x,"2" << 0) + Math.pow(r7[e$m].y - r7[v5c].y,G3c)));c40.i3C(1);var q_Z=c40.B0m(45,48);c40.i3C(12);var O47=c40.k$A(3,15,7,23,0);c40.a3e(1);var S27=c40.B0m(0,1);r7[X4].cp[h2]=r7[X4][h2] + (q_Z - ("2" ^ 0) * X4) * (r7[X4 + O47][h2] - r7[X4 - S27][h2]) * V2 * (B7 || 0);if(r7[X4].cp[h2] < Math.min(r7[1][h2],r7[2][h2])){r7[X4].cp[h2]=Math.min(r7[+"1"][h2],r7[2][h2]);}if(r7[X4].cp[h2] > Math.max(r7[1][h2],r7[2][h2])){r7[X4].cp[h2]=Math.max(r7[1][h2],r7[2][h2]);}});});c40.j07();if(v6 === 0){Q$.quadraticCurveTo(r7[2].cp.x,r7[2].cp.y,r7[2].x,r7[2].y);}else if(v6 === u9 - 4){Q$.quadraticCurveTo(r7["1" * 1].cp.x,r7[1].cp.y,r7[2].x,r7[2].y);}else {Q$.bezierCurveTo(r7["1" ^ 0].cp.x,r7[1].cp.y,r7[+"2"].cp.x,r7[2].cp.y,r7[2].x,r7["2" >> 0].y);}}if(!w3){w3=[];}if(!y7 || y7 < 0){y7=+"0";}function P$(A3){var R_;if(a9 == w3.length){return;}R_=w3[a9];if(R_.coord[0] == Y4[A3] && R_.coord[+"1"] == Y4[A3 + 1]){Q$.stroke();Q$.strokeStyle=R_.color;Q$.setLineDash(R_.pattern);Q$.lineDashOffset=0;Q$.lineWidth=R_.width;Q$.beginPath();Q$.moveTo(Y4[A3],Y4[A3 + +"1"]);a9++;}}u9=Y4.length;Q$.moveTo(Y4["0" - 0],Y4[1]);for(var Q3=0;Q3 < u9 - ("3" | 0);Q3+="2" >> 96){P$(Q3);u_=[];u_[0]={x:Y4[Math.max(0,Q3 - +"2")],y:Y4[Math.max(1,Q3 - 1)]};u_[1]={x:Y4[Q3],y:Y4[Q3 + 1]};u_[2]={x:Y4[Q3 + 2],y:Y4[Q3 + ("3" | 3)]};u_[+"3"]={x:Y4[Math.min(u9 - 2,Q3 + +"4")],y:Y4[Math.min(u9 - 1,Q3 + 5)]};if(u9 === 4){y7=0;}v$(Q3,u_,y7);}};if(!d6.SplinePlotter.plotSpline){d6.SplinePlotter.plotSpline=l8;}q9.clearCanvas=function(B3,Y3){var o4,B0,o$;B3.isDirty=!"1";c40.E0w();o4=B3.context;c40.a3e(13);o4.clearRect(c40.k$A("0",0),0,B3.width,B3.height);if(q9.isAndroid && !q9.is_chrome && !q9.isFF){if(q9.ChartEngine.useOldAndroidClear && Y3){o4.fillStyle=Y3.containerColor;c40.i3C(14);o4.fillRect(c40.k$A(0,"0"),0,B3.width,B3.height);o4.clearRect(0,0,B3.width,B3.height);}B0=B3.width;B3.width=1;B3.width=B0;}o$=Y3.chart.canvasShim.childNodes.length > 0;if(Y3.useBackgroundCanvas || o$){Y3.useBackgroundCanvas=o$;if(B3 == Y3.chart.canvas){q9.clearCanvas(Y3.chart.backgroundCanvas,Y3);}}};q9.fillTransparentCanvas=function(q8,N7,q$,P1){c40.j07();var Y0;Y0=q8.globalCompositeOperation;q8.globalCompositeOperation="destination-over";q8.fillStyle=N7;c40.a3e(13);q8.fillRect(0,c40.k$A("0",0),q$,P1);q8.globalCompositeOperation=Y0;};q9.convertBoxToPixels=function(A6,X3,E5){var C$,e$,c0,C3,h6;C$=A6.panels[X3];e$=A6.pixelFromTick(E5.x0,C$.chart);c0=A6.pixelFromTick(E5.x1,C$.chart);C3=E5.cy0 || E5.cy0 === +"0"?E5.cy0:A6.pixelFromValueAdjusted(C$,E5.x0,E5.y0);c40.j07();h6=E5.cy1 || E5.cy1 === 0?E5.cy1:A6.pixelFromValueAdjusted(C$,E5.x1,E5.y1);return {x0:e$,x1:c0,y0:C3,y1:h6};};q9.fillArea=function(g0,O_,V9){var J6v,q3,J2,D4,m4,a1,R8,P2,M5,c1,A1,U7,J4;J6v="a";J6v+="uto";if(!O_.length){return;}q3=g0.chart.context;J2=q3.globalAlpha;D4=arguments[2];m4=arguments[3];a1=arguments[+"4"];R8=0;P2=null;if(V9 && typeof V9 == "object"){D4=V9.color;m4=V9.opacity;R8=V9.tension;a1=V9.panelName;P2=V9.yAxis;}if(!m4 && m4 !== +"0"){m4=0.2;}if(D4 == J6v){D4=g0.defaultColor;}q3.globalAlpha=m4;if(D4){q3.fillStyle=D4;}M5=Number.MAX_VALUE;c40.a3e(15);c1=c40.k$A("1",M5);A1=g0.panels[a1];if(A1){c1=(P2 || A1.yAxis).top;M5=(P2 || A1.yAxis).bottom;q3.save();q3.beginPath();q3.rect(A1.left,c1,A1.width,M5 - c1);q3.clip();}q3.beginPath();if(R8){J4=[];for(U7=+"0";U7 < O_.length - 2;U7++){J4.push(O_[U7]["0" - 0],O_[U7][+"1"]);}j9.plotSpline(J4,R8,q3);for(U7=O_.length - 2;U7 < O_.length;U7++){q3.lineTo(Math.round(O_[U7][0]),Math.round(O_[U7][1]));;}}else {q3.moveTo(O_[0][0],O_[0][1]);for(U7=1;U7 < O_.length;U7++){q3.lineTo(O_[U7][0],O_[U7][1]);}}q3.closePath();q3.fill();if(A1){q3.restore();}q3.globalAlpha=J2;};c40.E0w();q9.prepareChannelFill=function(A9,n9){var j8,C4,L1,f3,i6,P4,g6,B8;if(!n9 || n9 instanceof Array){n9=arguments[2];}if(!n9.gapDisplayStyle && n9.gapDisplayStyle !== !1){n9.gapDisplayStyle=n9.gaps;}j8=A9.panels[n9.panelName];C4=A9.chart;L1=C4.context.strokeStyle;f3={noDraw:n9.noDraw,gapDisplayStyle:n9.gapDisplayStyle};i6=q9.ensureDefaults(n9,{noDraw:!!1,gapDisplayStyle:{},yAxis:j8.yAxis});P4=A9.plotDataSegmentAsLine(n9.topBand,j8,i6);g6=A9.plotDataSegmentAsLine(n9.bottomBand,j8,i6);n9.noDraw=f3.noDraw;n9.gapDisplayStyle=f3.gapDisplayStyle;B8=[];for(var x9=0;x9 < P4.points.length;x9+=2){B8.push([P4.points[x9],P4.points[x9 + 1]]);}for(var O8=g6.points.length - "1" * 1;O8 >= 0;O8-=2){B8.push([g6.points[O8 - 1],g6.points[O8]]);}q9.fillArea(A9,B8,n9);return;};q9.preparePeakValleyFill=function(D7,S7){var I8,F_,V0,o7,G$,N$,h0,f1,m7,m1,O0,x7,j$,E0,M2,S6,j3,u0,J1,J3,v3,P8,s$,c4,G9,X2,D8,K5,X$n,T2P,i_T,U5,l1,O7,V6,K8,A5,E9;if(!S7 || S7 instanceof Array){S7=arguments[2];}if(!S7.gapDisplayStyle && S7.gapDisplayStyle !== !!""){S7.gapDisplayStyle=S7.gaps;}I8=D7.panels[S7.panelName];F_=I8.yAxis;V0=D7.chart;o7=V0.context;G$=o7.strokeStyle;N$={noDraw:S7.noDraw,gapDisplayStyle:S7.gapDisplayStyle};h0=D7.plotDataSegmentAsLine(S7.band,I8,q9.ensureDefaults(S7,{noDraw:!"",gapDisplayStyle:{}}));S7.noDraw=N$.noDraw;S7.gapDisplayStyle=N$.gapDisplayStyle;f1=S7.threshold;m7=S7.direction;m1=S7.reverse;O0=S7.gapDisplayStyle;if(S7.yAxis){F_=S7.yAxis;}x7=-Number.MAX_VALUE;j$=Number.MAX_VALUE;E0=m1?x7:j$;if(f1 || f1 === 0){E0=D7.pixelFromPrice(f1,I8,F_);}M2=[];S6=h0.points.length;for(var r0=0;r0 < S6;r0+=2){j3=h0.points[r0];c40.a3e(4);u0=h0.points[c40.B0m(1,r0)];if(S7.roundOffEdges){if(r0 === 0){j3=Math.floor(j3);}else if(r0 + ("2" | 2) == S6){j3=Math.ceil(j3);}}if(isNaN(u0))continue;v3=u0 > E0 && m7 > 0 || u0 < E0 && m7 < 0;if(!v3){M2.push([j3,u0]);x7=Math.max(u0,x7);j$=Math.min(u0,j$);}if(r0 < S6 - 3){c40.i3C(4);J1=h0.points[c40.k$A(2,r0)];c40.a3e(4);J3=h0.points[c40.B0m(3,r0)];if(u0 < E0 && J3 > E0 || u0 > E0 && J3 < E0){c40.i3C(16);j3+=c40.k$A(E0,u0,J1,j3,J3,u0);M2.push([j3,E0]);}}}S6=M2.length;if(!S6){return;}P8=S7.edgeParameters;s$=S7.edgeHighlight;if(s$){if(P8.lineWidth > 100){P8.lineWidth=1;}o7.save();o7.beginPath();for(var Q8=+"0";Q8 < S6 - 1;Q8++){c4=M2[Q8];c40.a3e(4);G9=M2[c40.k$A(1,Q8)];if(c4[1] == E0 && G9[1] == E0)continue;if(c4[+"0"] == G9[0] && D7.layout.candleWidth >= 1){if(c4[1] == E0 && M2[Q8 - 1] && M2[Q8 - 1][+"1"] == E0)continue;if(G9[+"1"] == E0 && M2[Q8 + 2] && M2[Q8 + 2]["1" << 32] == E0)continue;}D7.plotLine(q9.extend({x0:c4[0],x1:G9[0],y0:c4[1],y1:G9[1],color:S7.edgeHighlight,type:"segment",context:o7,confineToPanel:I8,deferStroke:!""},P8));}o7.stroke();o7.restore();}if(!f1 && f1 !== +"0"){if(F_.flipped){m1=!m1;}E0=m1?Math.min(j$,F_.top):Math.max(x7,F_.bottom);}M2.push([M2[S6 - 1][0],E0],[M2["0" | 0][0],E0]);X2=S7.opacity;if(!X2 && X2 !== 0){S7.opacity=0.3;}q9.fillArea(D7,M2,S7);if(O0 && O0.color && O0.fillMountain && !S7.tension && !q9.isTransparent(O0.color) && !q9.isTransparent(S7.color)){o7.save();if(o7.fillStyle instanceof CanvasGradient){D8=q9.colorToHex(O0.color);K5=o7.createLinearGradient(0,m7 === 1?I8.top:I8.bottom,+"0",E0);K5.addColorStop(0,q9.hexToRgba(D8,60));K5.addColorStop(1,q9.hexToRgba(D8,"10" << 32));o7.fillStyle=K5;}else {X$n=369992018;T2P=-983303433;i_T=2;for(var t4j=1;c40.b3_(t4j.toString(),t4j.toString().length,20130) !== X$n;t4j++){o7.fillStyle=O0.color;i_T+=2;}if(c40.b3_(i_T.toString(),i_T.toString().length,21198) !== T2P){o7.fillStyle=O0.color;}}U5=[];l1={opacity:S7.opacity,panelName:S7.panelName};o7.beginPath();for(r0="0" | 0;r0 < h0.gapAreas.length;r0++){O7=h0.gapAreas[r0];V6=O7.start;K8=O7.end;A5=O7.threshold;if(V6){U5=[[V6[0],V6[1]],[V6[0],A5]];}else {U5.push([K8[0],A5],[K8["0" | 0],S7.step?U5[+"0"][1]:K8[1]]);}if(U5.length == +"4"){q9.fillArea(D7,U5,l1);E9=q9.extend({x1:U5[3]["0" | 0],y0:U5[0][1],type:"segment",deferStroke:!"",context:o7,confineToPanel:I8},O0);if(S7.step){D7.plotLine(q9.extend({x0:U5[0][0],y1:U5[0][1]},E9));D7.plotLine(q9.extend({x0:U5[3][0],y1:U5[3]["1" ^ 0]},E9));}else {D7.plotLine(q9.extend({x0:U5[0][0],y1:U5["3" * 1]["1" ^ 0]},E9));}}}o7.stroke();o7.restore();}S7.opacity=X2;};q9.fillIntersecting=function(f_,z9,o6){var p3Q,g9,k0,L2,v4,H7,h3,t9,Z6,u5,e8,k8,A0,D1;p3Q="x";p3Q+="o";p3Q+="r";if(!o6 || o6 instanceof Array){o6=arguments[3];}g9=o6.topBand;k0=o6.bottomBand;L2=o6.topSubBand;v4=o6.bottomSubBand;H7=o6.topColor;h3=o6.bottomColor;t9=z9;if(t9.panel){if(t9.outputs && t9.outputMap){if(!H7){H7=t9.outputs[t9.outputMap[g9]];}if(!h3){h3=t9.outputs[t9.outputMap[k0]];}}t9=t9.panel;}t9=f_.panels[t9];Z6=f_.chart.context;u5=Z6.canvas;e8=f_.scratchContext;if(!e8){e8=f_.scratchContext=u5.cloneNode(!!({})).getContext("2d");}k8=e8.canvas;k8.height=u5.height;k8.width=u5.width;k8.context=e8;q9.clearCanvas(k8,f_);A0=0.3;if(o6.opacity){A0=o6.opacity;}e8.globalCompositeOperation=p3Q;f_.chart.context=e8;D1={band:g9,subField:L2,color:H7,opacity:1,panelName:t9.name,yAxis:o6.topAxis,skipTransform:o6.skipTransform,tension:o6.tension,roundOffEdges:!!({}),step:o6.step};q9.preparePeakValleyFill(f_,D1);q9.extend(D1,{band:k0,subField:v4,color:h3,yAxis:o6.bottomAxis});q9.preparePeakValleyFill(f_,D1);Z6.save();Z6.globalAlpha=A0;Z6.drawImage(k8,0,0);Z6.restore();f_.chart.context=Z6;};q9.drawLegendItem=function(J7,c$,c7,V1,x5){var R3,U0,s_,U4,r2;if(!x5){x5=1;}R3=c$[0];U0=c$[1];s_=10;U4=10;r2=J7.chart.context;r2.globalAlpha=x5;r2.fillStyle=V1;r2.fillRect(R3,U0,s_,U4);c40.a3e(14);r2.globalAlpha=c40.k$A(1,"1");c40.i3C(4);R3+=c40.k$A(2,s_);r2.fillStyle=J7.defaultColor;r2.fillText(c7,R3,U0);c40.a3e(6);var e_d=c40.k$A(7,19,19,0);R3+=r2.measureText(c7).width + e_d;return [R3,U0];};q9.drawLegend=function(P0,U9){var d3,c5,C9,X_,v9,g_,x$,A4,j7,D9,m2;d3=U9.coordinates;c5=P0.chart.context;c5.textBaseline="top";C9=c5.font;P0.canvasFont("stx-legend",c5);X_=U9.chart || P0.chart;if(!d3){d3=X_.legend;}c40.E0w();v9=[d3.x,d3.y];g_=P0.defaultColor;for(var S1=0;S1 < 2;S1++){for(var X8 in U9.legendColorMap){x$=U9.legendColorMap[X8];if(x$.isBase && (S1 || U9.noBase))continue;if(!x$.isBase && !S1)continue;if(x$.color instanceof Array){j7=x$.color;for(A4=j7.length - 1;A4 >= ("0" ^ 0);A4--){if(q9.isTransparent(j7[A4])){j7.splice(A4,1);}}if(j7.length > 1){D9=c5.createLinearGradient(v9[0],v9[1],v9[0] + 10,v9[1]);for(A4=0;A4 < j7.length;A4++){D9.addColorStop(A4 / (j7.length - 1),j7[A4]);}g_=D9;}else if(j7.length > 0){g_=j7[+"0"];}else {g_=P0.getCanvasColor("stx_line_chart");}}else if(x$.color){g_=x$.color;}else {g_=null;}if(g_){m2=X8;if(x$.display){m2=x$.display;}if(!m2){if(X_.symbolDisplay){m2=X_.symbolDisplay;}else {m2=X_.symbol;}}if(v9[0] + c5.measureText(m2).width > X_.panel.right){c40.a3e(17);var J4w=c40.k$A(94,191,7);c40.i3C(4);var X3R=c40.k$A(4664,466);c40.a3e(18);var t1E=c40.k$A(34047,2,5,10,8493);c40.a3e(19);var P04=c40.k$A(7,6,13,20);v9=[d3.x,d3.y + c5.measureText((J4w,X3R) <= (+"380",t1E)?"M":(![],!({}))).width + P04];;}v9=q9.drawLegendItem(P0,v9,m2,g_,x$.opacity);}}}c5.font=C9;};};S=u1=>{var W10=M2dNJ;var O4;O4=u1.CIQ;O4.colorsEqual=function(q7,l3){var u8,R9,i7,s4,T7;if(q7 == l3){return !"";}if(!q7 && !l3){return !0;}if(!q7 || !l3){return !1;}if(q7 == "transparent"){q7="rgba(0,0,0,0)";}if(l3 == "transparent"){l3="rgba(0,0,0,0)";}u8=/^rgba\(.*,(.+)\)/;R9=q7.match(u8);i7=l3.match(u8);R9=R9?parseFloat(R9[1]):1;i7=i7?parseFloat(i7[1]):1;if(R9 != i7){return ![];}s4=O4.colorToHex(q7);T7=O4.colorToHex(l3);return s4.toLowerCase() == T7.toLowerCase();};O4.colorToHex=function(a2){var c6N,y_,E4,Y5,L0,T$,e6,v2,w_;c6N="#00";c6N+="0000";if(!O4.colorToHexMapping){O4.colorToHexMapping={};}if(!a2 || a2 == "transparent"){a2=c6N;}function W5(c6){var n5,D53,I0;if(typeof document === "undefined"){return "#000000";}n5=document.querySelector(".ciq_color_converter");if(!n5){D53="textar";D53+="ea";n5=document.createElement(D53);n5.className="ciq_color_converter";n5.style.display="none";document.body.appendChild(n5);}n5.style.color="#000000";n5.style.color=c6;I0=getComputedStyle(n5).getPropertyValue("color");y_=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(I0);if(y_){return O4.colorToHex(I0);}else if(I0.substr(0,1) === (989 == 2029?("0x20a4" - 0,46.91):880 > "28.9" * 1?"#":5.26e+3)){return I0;}return c6;}if(O4.colorToHexMapping[a2]){return O4.colorToHexMapping[a2];}if(a2.substr("0" * 1,1) === ((986.44,5834) > 6080?690:(7527,7040) >= (+"5030",1880)?"#":58.06)){if(a2.length == 4){W10.a3e(20);var w0A=W10.B0m(10,12,768,726);W10.a3e(21);var K7$=W10.k$A(6056,5308,17,8,16);W10.i3C(22);var q1$=W10.B0m(2,20,612,10444);W10.a3e(8);var A0D=W10.B0m(32,14,19);W10.i3C(1);var J4n=W10.B0m(9,10);W10.a3e(23);var g7L=W10.k$A(17,10,7,1);W10.a3e(1);var Y8$=W10.k$A(17,20);W10.i3C(4);var K5d=W10.B0m(1,0);a2=O4.colorToHexMapping[a2]=(("3040" >> w0A,K7$) == "238.08" - 0?("M",q1$):"#") + Array(3).join(a2.substr(A0D,J4n)) + Array(3).join(a2.substr(g7L,+"1")) + Array(3).join(a2.substr(Y8$,K5d));}return a2;}W10.E0w();y_=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(a2);if(!y_){y_=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+),.*\)/).exec(a2);}if(!y_){E4=W5(a2);O4.colorToHexMapping[a2]=E4;return E4;}Y5=parseFloat(y_[2]);L0=parseFloat(y_[3]);T$=parseFloat(y_[4]);W10.a3e(24);e6=W10.k$A(T$,Y5,8,16,L0);v2=e6.toString(16);for(var d4=v2.length;d4 < 6;d4++){W10.a3e(4);v2=W10.B0m(v2,7572 > (4635,198)?"0":0x3d);}W10.i3C(25);var W_t=W10.k$A(12,6,71);W10.a3e(8);var l$_=W10.k$A(22,458,4);W10.a3e(26);var k$a=W10.k$A(9,9,63,1);W10.i3C(4);var B8$=W10.k$A(2991,299);W10.a3e(4);var Q7b=W10.k$A(2,771);w_=y_[W_t] + (l$_ == "3150" >> k$a?+"0x143c":(11.83,+"672.51") == 832.14?"2.24e+3" << 0:B8$ < Q7b?("b","O"):"#") + v2;O4.colorToHexMapping[a2]=w_;return w_;};O4.hexToRgba=function(x8,m0){var H6h,H0J,c$E,U08,J9,S2,r8,a$,H$;H6h="r";H6h+="g";H6h+="b";H6h+="a(";H0J="rg";H0J+="b";c$E="r";c$E+="gb";c$E+="a";U08="rgba(0,0";U08+=",0,0)";if(!x8 || x8 == "transparent"){x8=U08;}W10.E0w();if(x8.substr(0,4) === c$E){J9=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(x8);S2=J9[5];if(m0 || m0 === 0){S2=m0;}if(S2 > 1){W10.a3e(27);S2=W10.k$A(S2,"100");}W10.a3e(28);var q6g=W10.B0m(6,26,3,14,0);W10.a3e(29);var H4F=W10.B0m(1530,153,1510);W10.a3e(30);var c8G=W10.B0m(9,5617,2799,8,2);W10.a3e(31);var H37=W10.k$A(3247651,19,171380,1);W10.a3e(4);var M9i=W10.k$A(1032,148);W10.a3e(1);var W6g=W10.k$A(4,6557);W10.i3C(32);var B9D=W10.k$A(20,289940,6213,7,6218);W10.a3e(33);var O9N=W10.k$A(1461,5,8,57953);W10.a3e(25);var m40=W10.k$A(19,96600,1828500);W10.i3C(25);var n7D=W10.B0m(7,8,53);W10.a3e(34);var i_i=W10.k$A(8,52,64);W10.i3C(4);var R4Q=W10.B0m(20,7628);W10.a3e(4);var J6z=W10.k$A(2,2628);W10.a3e(35);var I_v=W10.B0m(5162,5179,13,67327);W10.a3e(36);var H4B=W10.k$A(11,596,3,5927,596);W10.i3C(37);var R8n=W10.k$A(4,20,8133,41);W10.a3e(1);var r2e=W10.k$A(9,1779);W10.a3e(33);var W7_=W10.B0m(101439,13,11,14499810);return "rgba(" + J9[q6g] + (H4F > ("7354" ^ 0,c8G)?H37 === (652.55,M9i)?!![]:W6g < (53.57,B9D)?O9N:(m40,561.49):",") + J9[n7D] + "," + J9[i_i] + (R4Q === J6z?I_v:",") + S2 + ((H4B,"1308" << 0) !== (R8n,+"254")?("5211" | 10) != r2e?")":W7_:484.97);}else if(x8.substr(0,3) === H0J){x8=O4.colorToHex(x8);}if(!m0 && m0 !== "0" - 0){m0=100;}if(m0 <= 1){W10.a3e(38);m0=W10.B0m(m0,100);}x8=x8.replace((6730,992.35) <= (518.9,"8520" - 0)?836.05 >= 6660?(!![],"S"):"#":808.57,"");r8=parseInt(x8.slice(0,2),16);a$=parseInt(x8.slice(2,4),16);H$=parseInt(x8.slice("4" << 32,+"6"),16);if(isNaN(r8) || isNaN(a$) || isNaN(H$)){console.log("CIQ.hexToRgba: invalid hex :",x8);return null;}W10.i3C(39);return W10.k$A(H$,m0,100,a$,H6h,r8,(9230,443.32) > (428.06,974.29)?950.51:("6410" >> 0,832.84) !== ("9193" ^ 0,4350)?693 < 371?(0x54f,"d"):",":0x348,",",7680 == (2510,3090)?"3859" >> 64 != (4530,+"169.74")?+"0x1bc0":(0x1665,9.97e+3):",",("1770" - 0,+"8958") > (5360,72)?(+"2864",9400) > 3720?")":755.13 >= (349.29,7480)?(266.70,"E"):"7.77e+3" * 1:0x1137);};O4.convertToNativeColor=function(C0){var O0u,I6,B_;O0u="n";O0u+="on";O0u+="e";I6=document.createElement("DIV");I6.style.color=C0;I6.style.display=O0u;document.body.appendChild(I6);B_=getComputedStyle(I6).color;document.body.removeChild(I6);W10.j07();return B_;};O4.isTransparent=function(N9){var X5;W10.j07();if(!N9){return !!"";}if(N9 == "transparent"){return !![];}X5=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(N9);if(X5 === null){return ![];}if(parseFloat(X5[5]) === 0){return !!"1";}return !!"";};O4.hsv=function(O3){W10.E0w();var U_,h9,b_,V8,h$,g$,v0,H9N,Q9,j5,r3,W6;U_=O4.colorToHex(O3);if(U_.substr("0" << 64,1) === "#"){U_=U_.slice(+"1");}for(var Q4=U_.length;Q4 < 6;Q4++){W10.i3C(4);U_=W10.B0m(U_,(769.64,344) <= +"56.07"?0x1e41:412.96 > (+"590.35","2210" * 1)?7.70e+3:"0");}h9=parseInt(U_.slice(0,2),"16" ^ 0);b_=parseInt(U_.slice(2,"4" * 1),16);V8=parseInt(U_.slice(4,"6" * 1),16);h$=0;g$=0;v0=0;h9=parseInt(("" + h9).replace(/\s/g,""),10);b_=parseInt(("" + b_).replace(/\s/g,""),10);V8=parseInt(("" + V8).replace(/\s/g,""),+"10");if(h9 === null || b_ === null || V8 === null || isNaN(h9) || isNaN(b_) || isNaN(V8)){H9N="CIQ.hsv: invali";H9N+="d";H9N+=" co";H9N+="lor :";console.log(H9N,O3);return null;}if(h9 < 0 || b_ < 0 || V8 < 0 || h9 > 255 || b_ > 255 || V8 > 255){return null;}W10.i3C(27);h9=W10.B0m(h9,"255");W10.a3e(40);b_=W10.B0m(b_,255);W10.a3e(40);V8=W10.k$A(V8,255);Q9=Math.min(h9,Math.min(b_,V8));j5=Math.max(h9,Math.max(b_,V8));if(Q9 == j5){v0=Q9;return [0,+"0",v0];}r3=h9 == Q9?b_ - V8:V8 == Q9?h9 - b_:V8 - h9;W6=h9 == Q9?3:V8 == Q9?1:5;W10.i3C(41);h$=W10.k$A(r3,W6,j5,Q9,60);W10.i3C(42);g$=W10.B0m(j5,Q9,j5);v0=j5;return [h$,g$,v0];};O4.hsl=function(Y$){var l$,H_,e_,w5,j4,r6,B2,e7,l_,f$;l$=O4.colorToHex(Y$);if(l$.substr(0,1) === (("1985" | 1,963.47) <= (+"354.99",505.03)?631.32:444 === (2804,493.48)?("d",0x2276):"#")){l$=l$.slice(1);}for(var A7=l$.length;A7 < 6;A7++){W10.a3e(4);l$=W10.B0m(l$,"0");}H_=parseInt(l$.slice(0,2),+"16");e_=parseInt(l$.slice(+"2",4),16);w5=parseInt(l$.slice(4,6),16);H_/=255;e_/=255;w5/=255;j4=Math.max(H_,e_,w5);r6=Math.min(H_,e_,w5);W10.j07();W10.a3e(43);l_=W10.B0m(r6,2,j4);if(j4 == r6){B2=e7=0;;}else {W10.i3C(1);f$=W10.B0m(r6,j4);e7=l_ > 0.5?f$ / (2 - j4 - r6):f$ / (j4 + r6);switch(j4){case H_:W10.a3e(6);B2=W10.B0m(e_ < w5?+"6":0,w5,f$,e_);break;case e_:W10.a3e(6);B2=W10.B0m(2,H_,f$,w5);break;case w5:W10.a3e(6);B2=W10.k$A(4,e_,f$,H_);break;}B2/=6;}return [B2,e7,l_];};O4.hslToRgb=function(T_,M_,d$){W10.j07();var b3,d5,H3,P5,R2,l2;if(M_ === "0" - 0){b3=d5=H3=d$;;}else {P5=function M4(c9,N8,l5){if(l5 < ("0" | 0)){l5+=1;}if(l5 > 1){l5-=1;}if(l5 < 1 / 6){W10.i3C(44);return W10.B0m(l5,c9,6,c9,N8);}if(l5 < 1 / 2){return N8;}if(l5 < 2 / +"3"){W10.i3C(45);return W10.B0m(N8,"2",c9,6,3,l5,c9);}return c9;};R2=d$ < 0.5?d$ * (1 + M_):d$ + M_ - d$ * M_;W10.a3e(25);l2=W10.B0m(d$,2,R2);W10.a3e(46);b3=P5(l2,R2,W10.B0m(T_,3,1));d5=P5(l2,R2,T_);W10.a3e(47);H3=P5(l2,R2,W10.B0m(3,T_,"1"));}W10.i3C(48);return [Math.round(W10.k$A(0,b3,"255")),Math.round(W10.B0m(d5,255,W10.i3C(38))),Math.round(W10.k$A(H3,255,W10.a3e(38)))];};O4.chooseForegroundColor=function(T8){var D0,h4,K1,L$;D0=O4.colorToHex(T8);h4=parseInt(D0.slice(1,3),16);K1=parseInt(D0.slice(3,"5" ^ 0),16);L$=parseInt(D0.slice(+"5",7),16);return 0.2126 * h4 + 0.7152 * K1 + 0.0722 * L$ < +"100"?"#FFFFFF":"#000000";;};W10.E0w();O4.borderPatternToArray=function(N_,m3){W10.E0w();if(!m3){return [];}if(m3 instanceof Array){return m3;}if(m3 == "dotted"){return [N_,N_];}if(m3 == "dashed"){W10.a3e(49);return [W10.B0m(64,"5",N_),W10.B0m(N_,5,W10.i3C(38))];}if(m3 != "solid" && m3 != "none"){W10.a3e(50);console.log(W10.B0m(m3,'Unsupported pattern "','"; defaulting to "solid"'));}return [];};O4.getBackgroundColor=function(F7){var O1,q6;O1=null;W10.j07();while(!O1 || O4.isTransparent(O1)){q6=getComputedStyle(F7);if(!q6){return;}O1=q6.backgroundColor;if(O4.isTransparent(O1)){O1="transparent";}F7=F7.parentNode;if(!F7 || !F7.tagName)break;}if(!O1 || O1 == "transparent"){O1="#FFFFFF";}return O1;};};P=f2=>{var t$G=M2dNJ;var N6N,Q6,n8;N6N="A";N6N+="u";N6N+="g";Q6=f2.CIQ;n8=f2.timezoneJS;Q6.monthLetters=["J","F",2637 === (523.22,1040)?(6520,885.92) <= (454,5940)?(250.2,967.91) != 444.2?!"1":(!!"1",0xcd6):3.25e+3:"M","A",764.31 <= 8246?"M":!!({}),"J","J",("1592" ^ 0) > ("9170" * 1,9188)?!!({}):944 != (815.2,151.83)?"A":"O",(3571,"727" * 1) < 8230?"S":762.23 > (2035,126.96)?9.35e+3:"a",2965 !== (9620,"5146" >> 0)?(9440,1398) == (1473,+"262")?1700 === +"968.09"?(0x15be,7.70e+3):2.29e+3:"O":563.42,"N","D"];Q6.monthAbv=["Jan","Feb","Mar","Apr","May","Jun","Jul",N6N,"Sep","Oct","Nov","Dec"];Q6.MILLISECOND=1;Q6.SECOND=1000;t$G.i3C(51);var b4Q=t$G.k$A(19,44,20,12,5);Q6.MINUTE=b4Q * Q6.SECOND;t$G.a3e(52);var a7U=t$G.B0m(1,12,5,43);Q6.HOUR=a7U * Q6.MINUTE;t$G.i3C(25);var i3o=t$G.k$A(9,20,156);Q6.DAY=i3o * Q6.HOUR;t$G.a3e(1);var B6J=t$G.k$A(13,20);Q6.WEEK=("7" | B6J) * Q6.DAY;t$G.i3C(4);var R_R=t$G.k$A(29,2);Q6.MONTH=R_R * Q6.DAY;Q6.YEAR=+"366" * Q6.DAY;t$G.i3C(53);var F5b=t$G.k$A(15,20,311,0,19);t$G.a3e(54);var C1I=t$G.k$A(6,1,2,2,4);Q6.DECADE=("10" | F5b) * Q6.YEAR - C1I * Q6.DAY;Q6.yyyymmddhhmmssmmmrx=new RegExp("\\d{17}");Q6.strToDateTime=function(w7){var u3,W8,Z_,G0,b7,q5,d0,g8,g1,Y6,F6,n_,F$,F7z,p6,o3;if(!w7 || w7.getFullYear){return w7;}u3=[];if(w7.length == 12 || w7.length == 14){W8=parseFloat(w7.substring(0,"4" ^ 0));t$G.a3e(55);var Y3u=t$G.k$A(13,6,13,15,7);t$G.i3C(56);var u$H=t$G.k$A(11,10,7,96,914);t$G.i3C(7);var I9e=t$G.B0m(0,13,12);Z_=parseFloat(w7.substring(Y3u,u$H)) - I9e;G0=parseFloat(w7.substring("6" >> 32,"8" * 1));b7=parseFloat(w7.substring(8,10));q5=parseFloat(w7.substring("10" * 1,12));d0=parseFloat(w7.substring(12,14)) || 0;return new Date(W8,Z_,G0,b7,q5,d0,0);}else if(Q6.yyyymmddhhmmssmmmrx.test(w7)){W8=parseFloat(w7.substring(0,4));t$G.a3e(1);var y3V=t$G.k$A(4,8);t$G.a3e(33);var v79=t$G.B0m(13,14,14,2484);t$G.i3C(5);var W2i=t$G.k$A(1,2);Z_=parseFloat(w7.substring(y3V,"6" << v79)) - W2i;G0=parseFloat(w7.substring(6,8));b7=parseFloat(w7.substring(8,10));q5=parseFloat(w7.substring(10,"12" | 8));d0=parseFloat(w7.substring(12,14));g8=parseFloat(w7.substring(14,+"17"));return new Date(W8,Z_,G0,b7,q5,d0,g8);}g1=[w7];Y6=w7.indexOf((1310,+"9680") !== (840,8107)?(530,9210) >= 2887?"T":(9420,3770) <= (1616,657.3)?!!"1":0x100c:("Z",0x775));if(Y6 != -1){F6=w7.substring(Y6);if(F6.indexOf(44 == (8040,599.19)?"t":(3690,803.33) === 107.63?(!![],12.70):"Z") != -1 || F6.indexOf("-") != -1 || F6.indexOf(("64.56" - 0,6980) !== ("3990" * 1,127.51)?(517.37,622.69) !== (6842,973.65)?"+":(9.94e+3,"F"):("E",0x1772)) != -("1" >> 0)){return new Date(w7);;}g1=w7.split(942.82 != ("1040" * 1,1451)?"T":(505.04,5380) < (6161,6638)?"j":964.74);}else if(w7.indexOf(("8244" | 52) != (993.73,8437)?" ":(5944,3140) != 136.98?"G":1.19e+3) != -1){g1=w7.split(9164 == 511?8913 <= 342.34?!"":4210 >= 4736?("t","0x1fb2" | 48):("V",+"0x16d4"):" ");}if(g1[0].indexOf("/") != -("1" >> 64)){u3=g1[0].split(5363 === 665?(9200,6552) > 3510?("283.62" - 0,1779) === (622.25,+"3010")?(0xd57,0x3bd):(!!({}),0x93):"b":"/");}else if(g1[0].indexOf(151 > 4178?(24.48,62) > 3780?720.14:(405.44,7916) >= 744?("500.78" - 0,+"0x4b"):0x2327:"-") != -1){u3=g1[0].split("-");}else {return Q6.strToDate(w7);}n_=parseFloat(u3[2],10);if(u3[0] && u3[0].length == 4){n_=parseFloat(u3[0],10);u3[0]=u3[1];u3[1]=u3[2];}if(g1.length > 1){F$=g1[2];g1=g1[1].split((559.31,3236) > +"7544"?1.49e+3:1760 < (6255,9348)?":":(348,634.66) > ("55" >> 64,649.63)?("J",!![]):(!!"1",0x1f2b));if(F$){F7z="1";F7z+="2";if(g1[0] == F7z && F$.toUpperCase() == "AM"){g1[0]=+"0";}else if(g1[0] != "12" && F$.toUpperCase() == "PM"){t$G.a3e(22);var z_i=t$G.k$A(19,16,140,2534);t$G.a3e(7);var e8p=t$G.k$A(23,5,16);g1[0]=parseInt(g1["0" - 0],z_i) + e8p;}}p6=0;o3=0;if(g1.length == 3){if(g1[2].indexOf(".") == -1){p6=parseInt(g1[2],10);}else {p6=g1[2].split(".");if(p6[1].length == 3){o3=p6[1];p6=p6[0];}}}t$G.a3e(57);var E1e=t$G.B0m(14,8,4,12,24);return new Date(n_,u3[0] - E1e,u3[1],g1[0],g1[1],p6,o3);}return new Date(n_,u3[0] - ("1" | 0),u3[1],0,0,0,0);};Q6.strToDate=function(D3){var v7,t$;if(D3.indexOf((279.6,180) == (+"1400",632.6)?("o",0x1753):"/") != -1){v7=D3.split(838 === 1540?"7100" << 32 <= (306,+"3804")?"p":426.03:"/");}else if(D3.indexOf("-") != -1){v7=D3.split(6140 >= (8666,"4558" - 0)?"-":(1692,663.37) <= 1190?("C","z"):"N");}else if(D3.length >= 8){t$G.i3C(58);var H8n=t$G.B0m(37,2,40,3);t$G.i3C(59);var Y_o=t$G.B0m(18,11,8,9);t$G.a3e(1);var v78=t$G.k$A(6,7);return new Date(parseFloat(D3.substring(0,4)),parseFloat(D3.substring(H8n,Y_o)) - v78,parseFloat(D3.substring(6,8)));}else {return new Date();}if(v7.length < 3){return new Date();}if(v7[2].indexOf(575.57 <= (2040,751)?" ":2.81e+3) != -+"1"){v7[2]=v7["2" ^ 0].substring(0,v7[2].indexOf("5470" * 1 != (766.56,9839)?" ":4.63e+3));}else if(v7[2].indexOf(1765 === (4020,3400)?(213.16,0x1754):1819 !== (+"2690",8550)?"T":0x17ed) != -1){v7[2]=v7[+"2"].substring(0,v7[2].indexOf(379.05 == 693.68?319.63 != 5424?1.02e+3:+"2.90e+2":"T"));}t$=parseFloat(v7[2],10);if(t$ < 20){t$+=2000;}if(v7[0].length == 4){t$=parseFloat(v7["0" ^ 0],10);t$G.i3C(14);v7[+"0"]=v7[t$G.k$A(0,"1")];v7[1]=v7[2];}t$G.i3C(25);var O7T=t$G.B0m(6,11,65);t$G.a3e(38);t$G.j07();return new Date(t$,v7[0] - O7T,v7[t$G.k$A("1",1)]);};Q6.dateToStr=function(j_,P3){var n5z,N6,P_,o2,p4;n5z="S";n5z+="S";n5z+="S";N6=U2=>{t$G.j07();return P3.includes(U2);};P_=(r_,O$ = 2)=>{return (((8070,+"80.24") != 7960?(912.72,+"368.12") >= ("3470" - 0,385.35)?955:6910 != ("6639" | 12)?"0":910.78:!1).repeat(O$) + r_).slice(-O$);};o2=(n3,M1)=>{return P3=P3.replace(n3,M1);};p4=(C1,t3)=>{return C1 > t3?C1 - t3:C1;};if(N6("YYYY")){o2(/YYYY/g,j_.getFullYear());}t$G.E0w();if(N6("MM")){o2(/MM/g,P_(j_.getMonth() + +"1"));}if(N6("dd")){o2(/dd/g,P_(j_.getDate()));}if(N6("HH")){o2(/HH/g,P_(j_.getHours()));}if(N6("hh")){o2(/hh/g,P_(p4(j_.getHours() || 12,12)));}if(N6("mm")){o2(/mm/g,P_(j_.getMinutes()));}if(N6("ss")){o2(/ss/g,P_(j_.getSeconds()));}if(N6(n5z)){o2(/SSS/g,P_(j_.getMilliseconds(),3));}return P3;};Q6.mmddyyyy=function(V_){var e9,N3;if(typeof V_ === "string"){V_=Q6.strToDate(V_);}t$G.i3C(8);var X89=t$G.k$A(31,17,15);e9=V_.getMonth() + X89;if(e9 < "10" - 0){t$G.a3e(4);e9=t$G.B0m(e9,5380 === (5913,7360)?("L",7.06):"0");}N3=V_.getDate();if(N3 < 10){t$G.a3e(4);N3=t$G.k$A(N3,6681 <= 7500?9805 !== 8170?"0":2346 < 6680?1.01e+3:8.15e+3:("I",367.07));}t$G.i3C(60);var h4H=t$G.k$A(13,3113,15573,6,18);t$G.E0w();t$G.i3C(4);var v_K=t$G.k$A(11,9269);t$G.i3C(1);var G7f=t$G.k$A(38160,42930);t$G.a3e(61);var C$c=t$G.B0m(20,3546,35460,1980);t$G.i3C(62);var C8B=t$G.k$A(2,975,12,1955,5);t$G.i3C(1);var f2$=t$G.B0m(21200,23850);t$G.a3e(63);var R1R=t$G.k$A(704,62,359,1,14);t$G.i3C(25);var O1w=t$G.B0m(20,5391,102440);t$G.i3C(55);var X7P=t$G.k$A(2,3320,422,3,4);t$G.i3C(4);var V_i=t$G.k$A(10,5500);t$G.a3e(64);var B5z=t$G.B0m(9,17,324509,19470);t$G.a3e(25);var a10=t$G.k$A(13,991,11912);return e9 + ((737.39,h4H) === (v_K,G7f)?(C$c,305.12) === 844.6?C8B:("0x158b" ^ 0,f2$):"/") + N3 + (("4731" << R1R,O1w) === ("1203" ^ 0)?(X7P,V_i) != ("6820" - 0,16.8)?(B5z,a10) <= 182.61?(246.23,!1):("J",+"332.67"):376.53:"/") + V_.getFullYear();};Q6.yyyymmdd=function(R$){var a7,C7;t$G.E0w();t$G.a3e(0);var a61=t$G.B0m(2,8,17);a7=R$.getMonth() + a61;if(a7 < 10){t$G.i3C(4);a7=t$G.k$A(a7,(+"9250",+"842.6") <= (904.68,293.14)?464.56 == (+"222.11",618)?(!({}),+"8.39e+3"):3914 > "536.85" * 1?(8.26e+3,0x10a4):+"876.66":"0");}C7=R$.getDate();if(C7 < 10){t$G.a3e(4);C7=t$G.k$A(C7,2390 == 346.86?(+"586.12","m"):3521 != (4613,936)?"0":"9962" >> 64 == 2680?!1:(2.56e+3,0xe96));}return R$.getFullYear() + "-" + a7 + "-" + C7;};Q6.hhmm=function(m9){var i8,z5;t$G.E0w();i8=m9.getHours();if(i8 < +"10"){t$G.i3C(4);i8=t$G.B0m(i8,316.85 == ("2004" - 0,1810)?(867.01,!!0):"0");}z5=m9.getMinutes();if(z5 < "10" * 1){t$G.a3e(4);z5=t$G.k$A(z5,(835.37,7906) <= ("612.98" - 0,8610)?"0":(122.86,926) === 386?717.92:(7.45e+3,"0x1975" | 20));}t$G.a3e(50);return t$G.k$A(":",i8,z5);};Q6.hhmmss=function(d9){var B9;B9=d9.getSeconds();if(B9 < 10){t$G.a3e(4);B9=t$G.k$A(B9,+"381.5" == 656?0x22f7:(519.24,9260) !== 184?"0":3200 > "268.76" * 1?("G","z"):0x601);}return Q6.hhmm(d9) + ":" + B9;};Q6.yyyymmddhhmm=function(y6){t$G.j07();return Q6.yyyymmddhhmmssmmm(y6).substr(0,12);};Q6.yyyymmddhhmmssmmm=function(f9){var P_R,h7,z1,Z7,T4,W7,i3;P_R="0";P_R+="0";t$G.a3e(8);var d8E=t$G.k$A(18,0,19);t$G.j07();h7=f9.getMonth() + d8E;if(h7 < 10){t$G.i3C(4);h7=t$G.k$A(h7,+"2118" != 4470?("9535" ^ 0) == 270.48?0xf49:"0":"T");}z1=f9.getDate();if(z1 < 10){t$G.a3e(4);z1=t$G.B0m(z1,"0");}Z7=f9.getHours();if(Z7 < 10){t$G.a3e(4);Z7=t$G.k$A(Z7,"0");}T4=f9.getMinutes();if(T4 < 10){t$G.i3C(4);T4=t$G.B0m(T4,"0");}W7=f9.getSeconds();if(W7 < 10){t$G.a3e(4);W7=t$G.k$A(W7,"0");}i3=f9.getMilliseconds();if(i3 < 10){t$G.i3C(4);i3=t$G.B0m(i3,P_R);}else if(i3 < 100){t$G.i3C(4);i3=t$G.B0m(i3,"0");}return "" + f9.getFullYear() + h7 + z1 + Z7 + T4 + W7 + i3;};Q6.friendlyDate=function(T9){return Q6.dateToStr(T9,"YYYY/MM/dd HH:mm");};Q6.mmddhhmm=function(n4){var z_q,n0Z,a1c,Z3,X6,P7,n6,g2,S5,R4;z_q="00";z_q+="0";n0Z="0";n0Z+="0";t$G.j07();a1c="0";a1c+="0";a1c+="0";Z3=Q6.strToDateTime(n4);t$G.i3C(20);var T3w=t$G.k$A(19,3,0,21);X6=Z3.getMonth() + T3w;if(X6 < 10){t$G.a3e(4);X6=t$G.k$A(X6,1980 >= 5400?0x918:(+"2910",193.15) > (5250,104)?"0":(+"813.86",0x1756));}P7=Z3.getDate();if(P7 < 10){t$G.i3C(4);P7=t$G.k$A(P7,(6047,+"71.33") > (1924,2770)?(888.64,2154) !== ("595.58" * 1,5580)?(352.87,"L"):(0x258a,"Q"):"0");}n6=Z3.getHours();if(n6 < 10){t$G.i3C(4);n6=t$G.k$A(n6,"0");}g2=Z3.getMinutes();if(g2 < 10){t$G.a3e(4);g2=t$G.B0m(g2,"0");}S5=Z3.getSeconds();if(S5 < 10){t$G.i3C(4);S5=t$G.B0m(S5,"0");}R4=Z3.getMilliseconds();if(R4 < 10){t$G.i3C(4);R4=t$G.B0m(R4,"00");}else if(R4 < 100){t$G.a3e(4);R4=t$G.k$A(R4,582.4 != (+"7870",+"968.16")?"0":692.8 !== (765.56,3101)?(1.30e+3,!!({})):("F","P"));}if(n6 == "00" && g2 == "00" && S5 == "00" && R4 == a1c){t$G.i3C(65);var h4g=t$G.B0m(4513,4519,4513,1,1);t$G.i3C(6);var z3w=t$G.k$A(5987,5,4,1041);t$G.a3e(66);var V40=t$G.k$A(112428,12492,12,2,6247);t$G.a3e(67);var X9w=t$G.B0m(2,655699,8,82608);t$G.a3e(1);var Q4l=t$G.k$A(8,907);t$G.i3C(23);var V9m=t$G.k$A(2,406,4,7105);t$G.i3C(29);var C9E=t$G.k$A(2620,262,2600);return X6 + "-" + P7 + ((916.63,h4g) <= (z3w,V40)?"-":(X9w,Q4l) > (V9m,915.49)?(C9E,!!1):"C") + Z3.getFullYear();}if(S5 == n0Z && R4 == z_q){t$G.i3C(68);return t$G.B0m(("6610" - 0,8190) !== 214.83?(8560,94.66) >= 992?0x239d:(1880,87.42) == 3188?376.55:" ":(!"",![]),n6,g2,X6,970 == 3550?"I":7464 == (9457,5774)?("t","F"):(963.15,"5380" << 0) >= (8555,+"311.4")?"-":(!"1",97.66),(6800,879) === 3730?"0x1918" - 0:(9911,5980) !== 942.93?":":(8.34e+3,!!"1"),P7);}if(R4 == "000"){t$G.a3e(69);return t$G.B0m(":",P7,n6,g2,"1150" << 0 < (670,1390)?" ":4.01e+3,X6,("8347" | 25,2280) == (6214,273)?56.27:(730,973.73) != (8000,7442)?":":"G",S5,"-");}t$G.i3C(70);return t$G.k$A(S5,245.15 >= (129.73,426)?7490 != ("6769" >> 32,460)?(1527,976.53) >= 21.53?"I":!!"":(5.83e+3,!!({})):":"," ",R4,X6,":","-",g2,P7,n6,":");};Q6.getYearDay=function(c2){var S9,W2,L9,g5,q4;S9=c2;if(!S9){S9=new Date();}t$G.i3C(71);S9.setHours(+"0",t$G.B0m("0",64),0,0);W2=new Date(S9.getFullYear(),0,0);t$G.i3C(1);L9=t$G.k$A(W2,S9);t$G.i3C(72);g5=t$G.B0m(60,60,24,1000);t$G.a3e(40);q4=Math.round(t$G.B0m(L9,g5));return q4;};Q6.getETDateTime=function(){var S9C,F9;S9C="U";S9C+="T";S9C+="C";F9=new Date();t$G.E0w();return Q6.convertTimeZone(new Date(F9.getTime() + F9.getTimezoneOffset() * 60000),S9C,"America/New_York");};Q6.fromET=function(k2){var W9,D_,q_,R6;W9=new Date();t$G.i3C(13);D_=t$G.k$A("4",0);if(W9.getMonth() < 2 || W9.getMonth() == 2 && W9.getDate() < 11 || W9.getMonth() > 10 || W9.getMonth() == 10 && W9.getDate() >= 4){D_=5;}t$G.a3e(7);var z5A=t$G.B0m(3599990,21,11);t$G.j07();q_=k2.getTime() + z5A * D_;R6=new Date(q_);return R6;};Q6.monthAsDisplay=function(Z1,K2,I_){if(K2){if(I_ && I_.monthLetters){return I_.monthLetters[Z1];}return Q6.monthLetters[Z1];}t$G.E0w();if(I_ && I_.monthAbv){return I_.monthAbv[Z1];}return Q6.monthAbv[Z1];};Q6.timeAsDisplay=function(a4,r1,m5){var F8,f0,B6,f4,n_V,s7n,i8r,n2s,K7,z8W,c5I,A4C;F8=r1?r1.internationalizer:null;if(F8){if(m5 == Q6.SECOND){return F8.hourMinuteSecond.format(a4);}else if(m5 == Q6.MILLISECOND){return F8.hourMinuteSecond.format(a4) + "." + a4.getMilliseconds();}return F8.hourMinute.format(a4);}f0=a4.getMinutes();if(f0 < 10){t$G.i3C(4);f0=t$G.B0m(f0,"0");}t$G.a3e(73);var Y_t=t$G.B0m(2,11,155,7);t$G.a3e(74);var w7s=t$G.B0m(14,13,2,3663,16);t$G.a3e(36);var D_6=t$G.B0m(17,66800,2,6544,16700);t$G.i3C(4);var j6f=t$G.B0m(8829,981);t$G.a3e(4);var W7f=t$G.k$A(5559,618);B6=a4.getHours() + ((553.11,"257.09" * Y_t) < (w7s,+"6563")?":":(D_6,j6f) <= 546.93?(W7f,!1):(565.35,![])) + f0;f4="";if(m5 <= Q6.SECOND){n_V=-915119076;s7n=274111572;i8r=2;for(var E7$="1" | 1;t$G.b3_(E7$.toString(),E7$.toString().length,25106) !== n_V;E7$++){f4=a4.getSeconds();if(f4 < 10){t$G.a3e(4);f4=t$G.B0m(f4,"8730" << 32 != 4112?"0":9.84e+3);}i8r+=2;}if(t$G.m7$(i8r.toString(),i8r.toString().length,45838) !== s7n){f4=a4.getSeconds();if(f4 <= 79){t$G.a3e(1);f4=t$G.k$A(f4,7129 == 8380?"":4894070);}}t$G.i3C(4);B6+=t$G.B0m(f4,2362 >= "9537" << 64?123.12:(851.77,310) === (+"5720",545.9)?0x1b7c:":");}if(m5 == Q6.MILLISECOND){n2s="0";n2s+="0";K7=a4.getMilliseconds();if(K7 < 10){t$G.a3e(4);K7=t$G.B0m(K7,n2s);}else if(K7 < 100){t$G.i3C(4);K7=t$G.B0m(K7,(2782,103) > (+"5.47","5610" ^ 0)?(2.91e+3,406.75):"0");}z8W=34505986;c5I=-2091249740;A4C=+"2";for(var i5D=1;t$G.m7$(i5D.toString(),i5D.toString().length,30647) !== z8W;i5D++){t$G.i3C(1);B6%=t$G.k$A(K7,4497 >= 2799?!"":"");A4C+=2;}if(t$G.m7$(A4C.toString(),A4C.toString().length,"74145" ^ 0) !== c5I){t$G.i3C(40);B6/=t$G.k$A(1732 > 2369?![]:"",K7);}t$G.a3e(4);B6+=t$G.k$A(K7,("8860" ^ 0) < "1327" >> 64?![]:".");}return B6;};Q6.displayableDate=function(f5,G2,w9,F3){var d8,Q_,X9,H0,q0,l0,V3,G7,H1,A2,B1,s9;d8="";Q_=f5.layout.interval;function n0(W4){if(W4 < 10){t$G.i3C(4);return t$G.k$A(W4,"0");}return W4;}X9=Q6.ChartEngine.isDailyInterval(Q_);H0=G2.xAxis.activeTimeUnit && G2.xAxis.activeTimeUnit <= Q6.SECOND || f5.layout.timeUnit == "second";q0=G2.xAxis.activeTimeUnit && G2.xAxis.activeTimeUnit <= Q6.MILLISECOND || f5.layout.timeUnit == "millisecond";if(G2.xAxis.formatter){d8=G2.xAxis.formatter(w9);}else if(f5.internationalizer){d8=f5.internationalizer.monthDay.format(w9);if(H0 || q0){d8+=" " + f5.internationalizer.hourMinuteSecond.format(w9);if(q0){t$G.a3e(75);var d9v=t$G.k$A(5,15,21200,2,1591);t$G.i3C(76);var R8z=t$G.k$A(29320,4,3665);t$G.i3C(77);var M$1=t$G.k$A(15,11,623,6853);t$G.a3e(76);var E0k=t$G.k$A(40644,3,6774);d8+=((d9v,R8z) == M$1?("d",E0k):".") + w9.getMilliseconds();}}else if(!X9){if(F3){d8=f5.internationalizer.yearMonthDay.format(w9);}d8+=" " + f5.internationalizer.hourMinute.format(w9);}else {if(Q_ == "month"){d8=f5.internationalizer.yearMonth.format(w9);}else {d8=f5.internationalizer.yearMonthDay.format(w9);}}}else {l0=n0(w9.getMonth() + 1);V3=n0(w9.getDate());G7=n0(w9.getHours());H1=n0(w9.getMinutes());if(X9){d8=Q_ == "month"?l0 + "/":l0 + "/" + V3 + "/";d8+=w9.getFullYear();}else {t$G.i3C(50);A2=t$G.B0m(("1010" << 64,3269) > ("464" << 64,7236)?(5358,710.91) >= +"1060"?(0xd1a,!![]):99.30:"/",l0,V3);if(F3){t$G.a3e(78);var X6B=t$G.B0m(20,13,120101,20,9987);t$G.a3e(1);var i45=t$G.B0m(155680,165410);t$G.i3C(1);var I4C=t$G.k$A(17,3597);t$G.a3e(67);var H0b=t$G.B0m(4,1592436,11,145650);t$G.i3C(4);var Q8b=t$G.k$A(201,15);t$G.i3C(79);var g$a=t$G.k$A(43450,2,12,16,343746);t$G.i3C(61);var D9z=t$G.B0m(17,379,1516,1513);t$G.a3e(78);var N8n=t$G.k$A(15,4,91,20,13);t$G.a3e(34);var F0Y=t$G.B0m(15,61475,66220);A2+=((884.6,X6B) === (i45,I4C)?(H0b,Q8b) < (g$a,D9z)?"1.63e+3" * N8n:(+"288.90",F0Y):"/") + w9.getFullYear();}t$G.i3C(80);d8=t$G.B0m(H1,A2,("251" ^ 0,2490) === +"6791"?("P",0x1fff):4000 != (564.06,"548" << 0)?(9930,8108) <= (9660,2892)?(294.63,921.38):" ":("R",!0),G7,":");if(H0 || q0){B1=n0(w9.getSeconds());t$G.a3e(4);d8+=t$G.k$A(B1,415 !== 3751?":":(!1,"a"));if(q0){s9=n0(w9.getMilliseconds());if(s9 < "100" - 0){t$G.a3e(4);s9=t$G.k$A(s9,(749.44,9720) !== 139.69?(9792,4620) < (670.21,421.46)?0x1ed2:(364,747.71) >= 5460?("v",!!0):"0":("S",31.53));}t$G.i3C(4);d8+=t$G.B0m(s9,":");}}}}return d8;};Q6.convertTimeZone=function(n1,G4,z3){var s5;if(!n8.Date){return n1;}t$G.j07();s5=new n8.Date(n1.getFullYear(),n1.getMonth(),n1.getDate(),n1.getHours(),n1.getMinutes(),n1.getSeconds(),n1.getMilliseconds(),G4);s5.setTimezone(z3);return s5;};Q6.convertToLocalTime=function(X0,t4){t$G.E0w();var Z$,B5,Y1;if(!n8.Date){return X0;}Z$=X0.getSeconds();B5=X0.getMilliseconds();Y1=new n8.Date(X0.getFullYear(),X0.getMonth(),X0.getDate(),X0.getHours(),X0.getMinutes(),t4);t$G.a3e(81);var N6T=t$G.k$A(7,17,1020,739,4);return new Date(Y1.getTime() + Z$ * N6T + B5);};};Q=a_=>{var C5,p_,r9,m$,j5e;if(!a_.SplinePlotter){a_.SplinePlotter={};}C5=a_.CIQ;p_=a_.SplinePlotter;r9=function(t8,e1){var K0;if(!e1){return document.getElementById(t8);}if(e1.id == t8){return e1;}if(!e1.hasChildNodes){return null;}M2dNJ.j07();for(var k5=0;k5 < e1.childNodes.length;k5++){K0=r9(t8,e1.childNodes[k5]);if(K0){return K0;}}return null;};a_.$$=r9;m$=function(x6,U3){if(!U3){U3=document;}M2dNJ.E0w();return U3.querySelectorAll(x6)[0];;};a_.$$$=m$;C5.wheelEvent=(function(){var c8q,q43;M2dNJ.E0w();c8q="DOM";c8q+="MouseScroll";q43="wh";q43+="eel";if(typeof document === "undefined"){return undefined;}if(C5.isIE || ("onwheel" in document.createElement("div"))){return q43;}if(document.onmousewheel !== undefined){return "mousewheel";}return c8q;})();C5.newChild=function(z$,H8,z4,D$){var Z2;Z2=document.createElement(H8);if(z4){Z2.className=z4;}M2dNJ.E0w();z$.appendChild(Z2);if(D$){Z2.innerHTML=D$;}return Z2;};C5.innerHTML=function(A$,R0){M2dNJ.E0w();if(window.MSApp && window.MSApp.execUnsafeLocalFunction){window.MSApp.execUnsafeLocalFunction(function(){M2dNJ.E0w();A$.innerHTML=R0;});}else {A$.innerHTML=R0;}};C5.focus=function(M$,s6){var Z5;if(C5.isSurface || s6){Z5=0;if(!isNaN(parseInt(s6,10))){Z5=s6;}setTimeout(function(){M$.focus();},Z5);}else {M$.focus();}};C5.blur=function(W3){if(!W3){W3=document.activeElement;}if(W3){W3.blur();}window.focus();};C5.findNodesByText=function(c8,L6){var k4,I2;if(c8.innerHTML == L6){return [c8];}k4=[];for(var E$=0;E$ < c8.childNodes.length;E$++){I2=C5.findNodesByText(c8.childNodes[E$],L6);if(I2){k4=k4.concat(I2);}}M2dNJ.j07();if(k4.length){return k4;}return null;};C5.hideByText=function(m6,N0){M2dNJ.j07();var j2;j2=C5.findNodesByText(m6,N0);for(var J6="0" - 0;J6 < j2.length;J6++){j2[J6].style.display="none";}};C5.pageHeight=function(){var {innerHeight:h5, top:w1, parent:l9, self:Q2}=window;if(w1 != Q2){try{if(h5 > l9.innerHeight){h5=l9.innerHeight;}}catch(s3){}}return h5;};C5.pageWidth=function(){var s3p,e6I,H_5;s3p=-1758466683;e6I=2014547919;H_5=2;for(var p3P=1;M2dNJ.m7$(p3P.toString(),p3P.toString().length,48774) !== s3p;p3P++){var {innerWidth:i4, top:n7, parent:a6, self:u6}=window;H_5+=2;}if(M2dNJ.b3_(H_5.toString(),H_5.toString().length,+"72411") !== e6I){var {innerWidth:i4, top:n7, parent:a6, self:u6}=window;}if(n7 != u6){try{if(i4 > a6.innerWidth){i4=a6.innerWidth;}}catch(J$){}}return i4;};C5.stripPX=function(h_){M2dNJ.j07();var R$P;R$P="nu";R$P+="m";R$P+="b";R$P+="er";if(!h_){return 0;}if(typeof h_ == R$P){return h_;}return parseInt(h_.substr(0,h_.indexOf(6678 < (7280,4114)?(+"0x1649","L"):(+"307.24",5577) >= ("7624" * 1,8960)?7393 <= 483.85?(0xc0c,382.67):(2.33e+3,244.38):"p")),10);};C5.withinElement=function(D6,W_,Y8){var I$z=M2dNJ;I$z.E0w();var k7,o5u,q9X,s0y;k7=D6.getBoundingClientRect();I$z.a3e(14);o5u=-I$z.k$A(10,"1551563694");q9X=-914176711;s0y=2;for(var Q5h=1;I$z.m7$(Q5h.toString(),Q5h.toString().length,89031) !== o5u;Q5h++){if(W_ >= k7.left){return !!({});}I$z.i3C(71);s0y+=I$z.k$A("2",0);}if(I$z.m7$(s0y.toString(),s0y.toString().length,+"68863") !== q9X){if(W_ <= k7.left){return !({});}}if(Y8 <= k7.top){return ![];}if(W_ >= k7.left + D6.offsetWidth){return ![];}if(Y8 >= k7.top + D6.offsetHeight){return !!"";}return !!({});};C5.efficientDOMUpdate=function(d2,z8,u4){M2dNJ.E0w();if(d2[z8] !== u4){d2[z8]=u4;return !!1;}return !({});};C5.cqvirtual=function(C6){var f8;if(!C6){return;}f8=C6.cloneNode(!![]);f8.innerHTML="";f8.original=C6;return f8;};C5.cqrender=function(Q1){var U1;if(!Q1){return;}M2dNJ.j07();if(Q1.innerHTML == Q1.original.innerHTML){return Q1.original;}C5.removeChildIfNot(Q1.original,"template");U1=Array.from(Q1.children);if(U1.length){U1.forEach(function(j1){Q1.original.appendChild(Q1.removeChild(j1));});}return Q1.original;};C5.removeChildIfNot=function(T5,B4){var i_;i_=Array.from(T5.children);if(i_.length){i_.forEach(function(z6){M2dNJ.j07();if(!B4 || !z6.matches(B4)){T5.removeChild(z6);}});}return T5;};C5.safeMouseOut=function(i5,r5){i5.addEventListener("mouseout",Y_(i5,r5));function Y_(N1,I9){return function(h8){if(typeof h8.pageX == "undefined"){h8.pageX=h8.clientX;h8.pageY=h8.clientY;}M2dNJ.E0w();if(C5.withinElement(N1,h8.pageX,h8.pageY)){return;}N1.stxMouseOver=!({});I9(h8);};}};C5.safeMouseOver=function(K4,b4){K4.addEventListener("mouseover",o5(K4,b4));function o5(E2,N2){return function(X1){if(typeof X1.pageX == "undefined"){X1.pageX=X1.clientX;X1.pageY=X1.clientY;}M2dNJ.E0w();if(C5.withinElement(E2,X1.pageX,X1.pageY)){if(E2.stxMouseOver){return;}E2.stxMouseOver=!0;N2(X1);}};}};C5.installTapEvent=function(M3,r$){var T6;M2dNJ.j07();T6=function(F4){var V93,o_;V93="un";V93+="def";V93+="ined";o_=new Event("stxtap",{bubbles:!0,cancelable:!![]});if(typeof F4.pageX == V93){F4.pageX=F4.clientX;F4.pageY=F4.clientY;}o_.pageX=F4.pageX;o_.pageY=F4.pageY;F4.target.dispatchEvent(o_);M2dNJ.E0w();if(r$ && r$.stopPropagation){F4.stopPropagation();}};C5.safeClickTouch(M3,T6,r$);};C5.safeClickTouch=function(u2,s8,T3){var A6Y,l5j,k6,e3,P9,U6,M9,a5,L7,P6,r8I,S5f,V3n;A6Y="o";A6Y+="npointer";A6Y+="u";A6Y+="p";l5j="mouse";l5j+="u";l5j+="p";function H5(c3,S3){return function(p8){var w8,p7;w8=p8.clientX?p8.clientX:p8.pageX;p7=p8.clientY?p8.clientY:p8.pageY;if(S3){c3.t=new Date().getTime();c3.x=w8;c3.y=p7;}else if(c3.x){if(Math.pow(c3.x - w8,2) + Math.pow(c3.y - p7,2) > +"16"){c3.t=null;}}};}if(!T3){T3={};}function w4(p9,z7,t2){return function(f6){var k_;if(!C5.safeClickTouchEvent){if(!t2.t){return;;}k_=t2.t;t2.t=null;if(k_ + 1000 < new Date().getTime()){return;};}if(z7.safety && z7.safety.recentlyDragged){return;}if(f6.which && f6.which >= 2 || f6.button && f6.button >= 2){return;}if(z7.preventUnderlayClick){if(f6.target.tagName !== "INPUT"){f6.preventDefault();}}else {if(z7.lastType != p9 && Date.now() < z7.allowAnotherDevice){return;}z7.lastType=p9;z7.allowAnotherDevice=Date.now() + +"1000";;}s8(f6);};}k6={};if(!T3.allowMultiple){C5.clearSafeClickTouches(u2);}if(T3.preventUnderlayClick !== ![]){T3.preventUnderlayClick=!!1;}if(T3.absorbDownEvent !== ![]){T3.absorbDownEvent=!![];}T3.allowAnotherDevice=0;T3.registeredClick=!"1";e3=u2.safeClickTouchEvents;if(!e3){e3=u2.safeClickTouchEvents=[];}P9=w4(l5j,T3,k6);U6=w4("touchend",T3,k6);M9=w4("pointerup",T3,k6);a5=function(O2){M2dNJ.E0w();O2.stopPropagation();};L7={};if(C5.safeClickTouchEvent){P6=w4(C5.safeClickTouchEvent,T3);u2.addEventListener(C5.safeClickTouchEvent,P6);L7[C5.safeClickTouchEvent]=P6;e3.push(L7);}else if((A6Y in document) && !C5.noPointerEvents){u2.addEventListener("pointerdown",H5(k6,!0));u2.addEventListener("pointermove",H5(k6));u2.addEventListener("pointerup",M9);L7.pointerup=M9;if(T3.absorbDownEvent){r8I="poi";r8I+="nterdow";r8I+="n";u2.addEventListener(r8I,a5);L7.pointerdown=a5;}e3.push(L7);}else {S5f="t";S5f+="ouchmove";u2.addEventListener("mousedown",H5(k6,!!({})));u2.addEventListener("mousemove",H5(k6));u2.addEventListener("touchstart",H5(k6,!!"1"));u2.addEventListener(S5f,H5(k6));u2.addEventListener("mouseup",P9);u2.addEventListener("touchend",U6);L7.mouseup=P9;L7.touchend=U6;if(T3.absorbDownEvent){V3n="m";V3n+="oused";V3n+="own";u2.addEventListener(V3n,a5);L7.mousedown=a5;u2.addEventListener("touchstart",a5);L7.touchstart=a5;}e3.push(L7);}};C5.clearSafeClickTouches=function(d1){var S_,R5,L8;S_=d1.safeClickTouchEvents;if(!S_){return;}for(var o0=0;o0 < S_.length;o0++){R5=S_[o0];for(var I$ in R5){L8=R5[I$];d1.removeEventListener(I$,L8);}}d1.safeClickTouchEvents=null;};C5.safeDrag=function(k9,S$){var F6D=M2dNJ;var V1H,D08,M9X,K_j,t6,y8,G8,a3,I5,K9,Z4,u7;V1H="t";V1H+="ouc";V1H+="h";V1H+="move";D08="p";F6D.E0w();D08+="oint";D08+="er";function I4(y9){return function(F5){var G5,l4;if(I5){return;}I5=!"";C5.ChartEngine.ignoreTouch=!"";G5=function(i$){if(i$ && i$.preventDefault){i$.preventDefault();}u7.recentlyDragged=!![];i$.displacementX=y8(i$) - K9;i$.displacementY=G8(i$) - Z4;S$.move(i$);};if(S$.move){document.body.addEventListener(y9.move,G5);}l4=function(i9){C5.ChartEngine.ignoreTouch=![];if(S$.move){document.body.removeEventListener(y9.move,G5);}document.body.removeEventListener(y9.up,l4);i9.displacementX=y8(i9) - K9;i9.displacementY=G8(i9) - Z4;if(S$.up){S$.up(i9);}F6D.E0w();setTimeout(function(){F6D.j07();u7.recentlyDragged=!!"";},+"50");};document.body.addEventListener(y9.up,l4);setTimeout(function(){F6D.j07();I5=!!0;},a3);F6D.j07();K9=y8(F5);Z4=G8(F5);if(S$.down){S$.down(F5);}};}D08+="down";M9X="cl";M9X+="i";M9X+="e";M9X+="ntX";K_j="pa";K_j+="geX";t6=function(E8,B$){F6D.E0w();return function(d_){var H_x;H_x="u";H_x+="n";H_x+="defined";if(d_.touches){if(d_.touches.length > 0){return d_.touches[+"0"][E8];}else if(d_.changedTouches && d_.changedTouches.length > 0){return d_.changedTouches[0][E8];}}return typeof d_[E8] !== H_x?d_[E8]:d_[B$];};};y8=t6(K_j,M9X);G8=t6("pageY","clientY");if(typeof S$ === "function"){S$={down:arguments[1],move:arguments[2],up:arguments[3]};}S$=S$ || ({});a3=100;I5=!"1";K9=0;Z4=0;u7={recentlyDragged:!({})};k9.addEventListener("mousedown",I4({down:"mousedown",move:"mousemove",up:"mouseup"}));k9.addEventListener("pointerdown",I4({down:D08,move:"pointermove",up:"pointerup"}));k9.addEventListener("touchstart",I4({down:"touchstart",move:V1H,up:"touchend"}),{passive:!({})});return u7;};C5.inputKeyEvents=function(i0,l6){var S$q;S$q="ke";S$q+="y";S$q+="u";S$q+="p";i0.addEventListener(S$q,function(F2){M2dNJ.E0w();var t_;t_=F2.keyCode;switch(t_){case 13:l6();break;case 27:i0.value="";break;default:break;}},!({}));};C5.fixScreen=function(){M2dNJ.a3e(1);window.scrollTo(M2dNJ.B0m(0,"0"),0);};C5.setCaretPosition=function(c_,g3){M2dNJ.j07();var i8M,y5;c_.style.zIndex=5000;if(c_.setSelectionRange){C5.focus(c_);try{c_.setSelectionRange(g3,g3);}catch(n$){}}else if(c_.createTextRange){i8M="charac";i8M+="t";i8M+="er";y5=c_.createTextRange();y5.collapse(!"");y5.moveEnd("character",g3);y5.moveStart(i8M,g3);y5.select();}};C5.setValueIfNotActive=function(X$,e2){if(document.activeElement == X$){return;}M2dNJ.E0w();X$.value=e2;};C5.hideKeyboard=function(M6){var F3h,L8z,k2M,A8;F3h=-2091206519;L8z=2090750769;M2dNJ.j07();k2M=2;for(var e8O=1;M2dNJ.m7$(e8O.toString(),e8O.toString().length,93478) !== F3h;e8O++){A8=document.activeElement;k2M+=+"2";}if(M2dNJ.b3_(k2M.toString(),k2M.toString().length,17817) !== L8z){A8=document.activeElement;}if(A8.tagName == "INPUT" || A8.tagName == "TEXTAREA"){A8.blur();window.focus();if(M6){if(M6 === document.body || document.body.contains(M6)){M6.focus();}}}};C5.smartHover=function(){var L_,w$;function Q0(b6){var h3A;h3A="mous";h3A+="e";if(!L_){W$(h3A);}}if(!document || document.documentElement.hasAttribute("ciq-last-interaction")){return;}function W$(R1){document.documentElement.setAttribute("ciq-last-interaction",R1);}L_=![];document.addEventListener("touchend",t7,!1);document.addEventListener("mouseover",Q0,!!"");W$("");function t7(K3){var C3m,G5q,U_H;C3m="t";C3m+="o";C3m+="u";C3m+="ch";G5q="t";G5q+="o";G5q+="u";G5q+="ch";M2dNJ.E0w();U_H="ciq-last-int";U_H+="eraction";clearTimeout(w$);L_=!0;if(document.documentElement.getAttribute(U_H) != G5q){W$(C3m);}w$=setTimeout(function(){M2dNJ.E0w();L_=!({});},500);}};C5.translatableTextNode=function(G_,F1,M8){var b8;if(G_.translationCallback){b8=document.createElement("translate");b8.setAttribute("original",F1);b8.innerHTML=G_.translationCallback(F1,M8);return b8;}M2dNJ.E0w();return document.createTextNode(F1);};C5.climbUpDomTree=function(N5,E7){M2dNJ.E0w();var Y2;if(!(N5 instanceof HTMLElement)){return null;}Y2=[];while(N5){if(!E7 || N5.matches(E7)){Y2.push(N5);}N5=N5.parentElement;}return Y2;};C5.guaranteedSize=function(N4){var s7,k1;if(N4 === document){N4=window;}if(!N4.nodeType){return {width:N4.innerWidth,height:N4.innerHeight};}if(!N4 || N4.nodeType > 1){return {};}s7=N4.offsetWidth;k1=N4.offsetHeight;M2dNJ.j07();while(!s7 || !k1){if(N4.tagName === "BODY" || N4 === window){if(!s7){s7=window.innerWidth;}if(!k1){k1=window.innerHeight;}break;}N4=N4.parentElement;if(!s7){s7=N4.offsetWidth;}if(!k1){k1=N4.offsetHeight;}}return {width:s7,height:k1};};C5.trulyVisible=function(b0){var u1q,J3j,G3;u1q="h";M2dNJ.E0w();u1q+="idde";u1q+="n";J3j="hi";J3j+="d";J3j+="den";if(!b0){return !0;}G3=getComputedStyle(b0);if(G3.opacity === "0"){return !!"";}if(G3.display === "none"){return !({});}if(G3.visibility === J3j){return !({});}if(parseInt(G3.width,10) === 0){return !({});}if(parseInt(G3.height,10) === 0 && G3.overflowY == u1q){return !({});}return C5.trulyVisible(b0.parentElement);};C5.elementDimensions=function(T2,x_){var g93=M2dNJ;var r28,H6,k3,M0,Q5,t88,e5_,J0;r28="wi";r28+="dth";g93.E0w();if(!T2 || T2.nodeType !== 1){return {};}H6=getComputedStyle(T2);k3={width:parseFloat(H6.width),height:parseFloat(H6.height)};M0={margin:{},border:{},padding:{}};Q5=[r28,"height"];for(var H2 in M0){t88="B";t88+="ot";t88+="t";t88+="om";e5_="R";e5_+="i";e5_+="ght";J0=H2 == "border"?"Width":"";M0[H2]={width:parseFloat(H6[H2 + "Left" + J0]) + parseFloat(H6[H2 + e5_ + J0]),height:parseFloat(H6[H2 + "Top" + J0]) + parseFloat(H6[H2 + t88 + J0])};}if(x_ && x_.margin){Q5.forEach(function(Y7){g93.E0w();k3[Y7]+=M0.margin[Y7];});}if(x_ && H6.boxSizing === "content-box"){if(x_.padding){Q5.forEach(function(a0){g93.E0w();k3[a0]+=M0.padding[a0];});}if(x_.border){Q5.forEach(function(O6){g93.j07();k3[O6]+=M0.border[O6];});}}else if(H6.boxSizing === "border-box"){if(!x_ || !x_.padding){Q5.forEach(function(b9){var g_G,T6e,P75;g93.i3C(82);g93.E0w();g_G=-g93.k$A(0,"1064524703");T6e=-222605695;P75=2;for(var o4$=1;g93.m7$(o4$.toString(),o4$.toString().length,32221) !== g_G;o4$++){k3[b9]+=M0.padding[b9];P75+=+"2";}if(g93.m7$(P75.toString(),P75.toString().length,50460) !== T6e){k3[b9]+=M0.padding[b9];}k3[b9]-=M0.padding[b9];});}if(!x_ || !x_.border){Q5.forEach(function(z0){g93.j07();k3[z0]-=M0.border[z0];});}}return k3;};C5.resizeObserver=function(I1,H4,W0,g7){var d39,W_e;M2dNJ.j07();if(g7){d39="unde";d39+="fin";d39+="ed";if(typeof ResizeObserver !== d39){if(!W0){W0=new ResizeObserver(H4);W0.observe(I1);}}else {if(W0){clearInterval(W0);}W0=setInterval(H4,g7);}}else {if(W0){W_e="undefine";W_e+="d";if(typeof ResizeObserver !== W_e){W0.disconnect();}else {clearInterval(W0);}}W0=null;}return W0;};C5.getLines=function(S0,W1,o8){var H9,E3,y$,T1,L3,g4;H9=W1.split(" ");E3=[];y$="";T1=0;L3=!"1";for(var T0=0;T0 < H9.length;T0++){g4=H9[T0];T1=S0.measureText(y$ + g4).width;if(T1 < o8){if(L3){y$+=" ";}L3=!![];y$+=g4;}else {E3.push(y$);y$=g4;}if(T0 === H9.length - 1){E3.push(y$);break;}}return E3;};C5.alert=function(V5){var C7g;C7g="u";C7g+="ndefine";C7g+="d";if(typeof window !== C7g){window.alert(V5);}else {console.log(V5);}};try{j5e="u";j5e+="n";j5e+="defi";j5e+="ned";if(typeof localStorage !== j5e){C5.localStorage=localStorage;}}catch(b2){}if(!C5.localStorage){C5.localStorage={items:{},getItem:function(A_){M2dNJ.E0w();return C5.localStorage.items[A_] || null;},setItem:function(J8,r4){C5.localStorage.items[J8]=r4;},removeItem:function(a8){delete C5.localStorage.items[a8];}};}C5.privateBrowsingAlert=!!"";C5.localStorageSetItem=function(C_,J5){M2dNJ.E0w();try{C5.localStorage.setItem(C_,J5);}catch(E1){if(!C5.privateBrowsingAlert){C5.alert("No storage space available. Possible causes include browser being in Private Browsing mode, or maximum storage space has been reached.");C5.privateBrowsingAlert=!!({});}}};};V=u$=>{var A4p=M2dNJ;var K9u,E1C,q_X,Y0O,u0$,p$,f7;K9u="minu";K9u+="te";E1C="minut";E1C+="e";q_X="mont";q_X+="h";Y0O="w";Y0O+="e";Y0O+="ek";u0$="d";u0$+="a";u0$+="y";p$=u$.CIQ;p$.ChartEngine=function(j6){var m8,J_;if(!j6){j6={container:null};}else if(typeof HTMLDivElement != "undefined" && j6.constructor == HTMLDivElement){m8={container:j6};j6=m8;}for(var p5 in f7){this[p5]=p$.clone(p$.ChartEngine.prototype[p5]);}this.container=null;this.createChartPanel=!![];this.markers={};this.panels={};this.overlays={};this.charts={};this.eventListeners=[];this.controls={};this.goneVertical=!({});this.pinchingScreen=!"1";this.grabbingScreen=![];this.grabStartX=+"0";A4p.i3C(82);this.grabStartY=A4p.k$A(32,"0");this.grabStartScrollX=0;this.grabStartScrollY=0;this.swipe={};this.grabStartCandleWidth=0;this.grabStartZoom=0;this.grabOverrideClick=!({});this.grabMode="";this.vectorsShowing=!1;this.mouseMode=!0;this.lineTravelSpacing=!({});this.highlightedDataSetField=null;this.anyHighlighted=!({});this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();this.displayCrosshairs=!![];this.hrPanel=null;this.editingAnnotation=!({});this.openDialog="";this.touches=[];this.changedTouches=[];this.crosshairTick=null;this.crosshairValue=null;this.pt={x1:-1,x2:-1,y1:-("1" ^ 0),y2:-1};this.moveA=-1;this.moveB=-+"1";this.touchStartTime=-1;this.touchPointerType="";this.gestureStartDistance=-1;A4p.a3e(82);this.grabStartPeriodicity=A4p.k$A(32,"1");this.grabEndPeriodicity=-1;this.scrollEvent=null;this.cmd=!!"";this.ctrl=!!0;this.shift=![];this.userPointerDown=![];this.cloneDrawing=!({});this.insideChart=!!"";this.overXAxis=!"1";this.overYAxis=!"1";this.displayInitialized=!1;this.cx=null;this.isHistoricalModeSet=null;this.cy=null;this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};this.cancelTouchSingleClick=![];this.locale=null;this.dataZone=null;this.displayZone=null;A4p.i3C(13);this.timeZoneOffset=A4p.B0m("0",0);this.masterData=null;this.transformDataSetPre=null;this.transformDataSetPost=null;this.dataCallback=null;this.drawingObjects=[];this.undoStamps=[];this.useBackgroundCanvas=![];this.mainSeriesRenderer=null;this.styles={};this.plugins={};this.currentVectorParameters=p$.clone(p$.ChartEngine.currentVectorParameters);this.chart=new p$.ChartEngine.Chart();J_=this.chart;J_.name="chart";J_.yAxis.name="chart";J_.canvas=null;J_.tempCanvas=null;J_.container=j6.container;A4p.j07();if(p$.Market){J_.market=new p$.Market();}this.charts.chart=J_;p$.extend(this,j6);if(j6.container){if(this.registerHTMLElements){this.registerHTMLElements();}J_.width=J_.container.clientWidth - J_.yAxis.width;this.setCandleWidth(this.layout.candleWidth,J_);J_.canvasHeight=J_.container.clientHeight;}this.construct();};p$.ChartEngine.drawingLine=![];p$.ChartEngine.resizingPanel=null;p$.ChartEngine.crosshairX=0;A4p.i3C(14);p$.ChartEngine.crosshairY=A4p.B0m(0,"0");p$.ChartEngine.useAnimation=!![];p$.ChartEngine.enableCaching=![];p$.ChartEngine.ignoreTouch=!!0;p$.ChartEngine.useOldAndroidClear=!0;p$.ChartEngine.currentVectorParameters={};p$.ChartEngine.defaultDisplayTimeZone=null;p$.ChartEngine.pluginBasePath="plugins/";p$.ChartEngine.registeredContainers=[];p$.ChartEngine.registerHelpers=function(z_){A4p.E0w();p$.ChartEngine.helpersToRegister.forEach(function(M7){M7(z_);});};p$.ChartEngine.helpersToRegister=[];p$.ChartEngine.prototype.construct=function(){var g1V;A4p.E0w();if(this.createChartPanel){g1V="c";g1V+="h";g1V+="a";g1V+="rt";this.stackPanel("chart",g1V,1);this.adjustPanelPositions();this.chart.panel=this.panels[this.chart.name];}this.cx=0;this.cy=0;this.micropixels=0;this.callbackListeners={doubleTap:[],doubleClick:[],drawing:[],drawingEdit:[],floatingWindow:[],layout:[],longhold:[],move:[],newChart:[],notification:[],periodicity:[],preferences:[],rightClick:[],scroll:[],studyOverlayEdit:[],studyPanelEdit:[],symbolChange:[],symbolImport:[],tap:[],theme:[],undoStamp:[]};p$.ChartEngine.registerHelpers(this);};f7={longHoldTime:+"700",yTolerance:100,minimumLeftBars:1,reverseMouseWheel:![],mouseWheelAcceleration:!"",minimumCandleWidth:1,maximumCandleWidth:200,minimumZoomTicks:9,allowZoom:!"",allowScroll:!![],allowSideswipe:!![],allowThreeFingerTouch:!({}),bypassRightClick:{series:![],study:![],drawing:!({})},adjustHighlightedDataSetField:function(F0){A4p.E0w();return F0;},displayIconsUpDown:!![],displayIconsSolo:!![],displayIconsClose:!!"1",displayPanelResize:!!"1",soloPanelToFullScreen:!({}),markerDelay:null,useBackingStore:!!({}),disableBackingStoreDuringTouch:p$.isMobile || p$.isSurface && p$.isFF,captureTouchEvents:!!({}),captureMouseWheelEvents:!!({}),tapForHighlighting:!"",doubleClickTime:250,yaxisLabelStyle:"roundRectArrow",axisBorders:null,singleDrawingHighlight:!0,crosshairXOffset:-40,crosshairYOffset:-("40" | 0),extendLastTick:!!0,translationCallback:null,dontRoll:!!0,allowEquations:!"",cleanupGaps:!!0,staticRange:!1,maxDataSetSize:20000,maxMasterDataSize:0,resizeDetectMS:1000,xAxisAsFooter:!![],xaxisHeight:30,displayGridLinesInStudies:![],escapeOnSerialize:!"",candleWidthPercent:0.65,colorByCandleDirection:!({}),noWicksOnCandles:{renko:!!({}),linebreak:!!({})},fetchMaximumBars:{rangebars:!!({}),kagi:!!({}),renko:!"",linebreak:!!"1",pandf:!![]},startComparisonsAtFirstVisibleBar:![],animations:{zoom:{isStub:!!({}),run:function(C2,a0K,O3j){C2(O3j);},stop:function(){},reset:function(){},running:!({}),hasCompleted:!0}},staticRangePeriodicityMap:[{rangeInMS:p$.WEEK,periodicity:1,interval:5,timeUnit:"minute"},{rangeInMS:p$.MONTH,periodicity:1,interval:30,timeUnit:"minute"},{rangeInMS:p$.YEAR,periodicity:"1" ^ 0,interval:u0$},{rangeInMS:p$.DECADE,periodicity:1,interval:Y0O},{rangeInMS:p$.DECADE * 10,periodicity:"1" - 0,interval:q_X},{rangeInMS:Number.MAX_VALUE,periodicity:12,interval:"month"}],dynamicRangePeriodicityMap:[{interval:1,timeUnit:E1C,rangeInMS:p$.MINUTE},{interval:5,timeUnit:"minute",rangeInMS:p$.MINUTE * 5},{interval:"30" << 0,timeUnit:K9u,rangeInMS:p$.MINUTE * 30},{interval:"60" - 0,timeUnit:"minute",rangeInMS:p$.MINUTE * 60},{interval:"day",rangeInMS:p$.DAY},{interval:"month",rangeInMS:p$.MONTH},{interval:"year",rangeInMS:p$.YEAR}],layout:{interval:"day",periodicity:1,timeUnit:null,candleWidth:"8" << 64,flipped:!!0,volumeUnderlay:!({}),adj:!!1,crosshair:!!"",chartType:"candle",extended:![],marketSessions:{},aggregationType:"ohlc",chartScale:"linear",studies:{},panels:{},setSpan:{},outliers:!"1"},preferences:{currentPriceLine:!({}),dragging:{series:!0,study:!"",yaxis:!!({})},drawings:null,highlightsRadius:10,highlightsTapRadius:+"30",magnet:!!0,horizontalCrosshairField:null,labels:!!1,language:null,timeZone:null,whitespace:50,zoomInSpeed:null,zoomOutSpeed:null,zoomAtCurrentMousePosition:!1},streamParameters:{count:+"0",maxWait:1000,maxTicks:100,timeout:-1},autoPickCandleWidth:{turnOn:!"1",candleWidth:5}};p$.extend(p$.ChartEngine.prototype,f7);p$.ChartEngine.NONE=0;p$.ChartEngine.CLOSEUP=1;p$.ChartEngine.CLOSEDOWN=+"2";p$.ChartEngine.CLOSEEVEN=4;p$.ChartEngine.CANDLEUP=8;p$.ChartEngine.CANDLEDOWN=16;p$.ChartEngine.CANDLEEVEN=+"32";;};M=s6I=>{var Q9N;Q9N=s6I.CIQ;Q9N.convertFutureMonth=function(b_6){var h5q;h5q=b_6.toString();if(h5q.length <= 0 || h5q.length > 2){return "";}switch(h5q){case "1":return "F";case 957.91 < (346.11,338)?(!({}),0xef1):"2":return "G";case (311,"290.87" - 0) >= 446.44?0x2658:"3":return 6530 < +"663"?7.19e+3:"H";case 3754 < (7314,7830)?(+"3791",124.57) <= 274?4116 >= "286.5" - 0?"4":0x2674:(+"0x1bdc",!!({})):("K",0x15b3):return (4555,+"5060") < (6170,684.99)?(5.21e+3,"715" * 1):"J";case 5930 >= 4500?"5":(922.8,3026) < 524.86?(8.59e+3,"k"):(2020,8841) <= 228.73?("M",+"2.39e+3"):("P",!""):return "K";case "6":return "M";case "7":return 163.5 !== (8438,589.9)?7300 > (2467,8320)?0xa20:"N":"f";case (523.95,923.16) == 9430?("A",![]):"8":return "Q";case (5894,94.96) !== (4540,897.3)?(9353,2909) >= 2955?(7149,"2540" * 1) !== (+"7930",6220)?"H":0x2323:"9":(381.97,0x2df):return 2480 > (69.59,9920)?("k","e"):"U";case "10":return (2060,575) >= (524.78,929.79)?(1700,29.51) != (+"575.51",3580)?(829.32,32.90):278.22:"V";case "11":return 5750 < 9230?4290 === (881,939)?!!({}):"X":(6.75e+3,"s");case "12":return 4724 > (501.69,9018)?("t",166.50):("1110" ^ 0) == (2280,332.13)?(!!"",0x1b3e):1769 >= 485?"Z":(+"113.16",0x195b);case 5440 != 8830?6493 <= +"6257"?7.80e+3:"F":(8.15e+3,"A"):return "1";case "9439" - 0 === (2020,507.33)?"S":"G":return (9180,3900) == 9480?(!!0,"0xeec" - 0):588.26 < (7940,753)?"2":("p",+"813");case "H":return ("223.48" * 1,4492) >= (7600,+"4150")?7240 !== 665.83?"3":(!!0,0x922):!!"1";case "J":return 9970 != 511.43?+"7807" === (+"5244",313)?("x","a"):(7982,517.49) <= 438.27?(!!1,+"872.17"):"4":(0x1f90,0x684);case (467.05,5690) > (236.75,2355)?7615 !== (921.89,136.49)?(161,6410) < (9740,4960)?"s":"K":(854.99,7.03e+3):(0x150f,+"6.24e+3"):return 564.46 > ("9600" ^ 0)?(9.50e+3,2.46e+3):"5";case +"710.02" >= (4528,113.19)?"M":501.49:return "6";case (749.23,5381) <= (338.41,1100)?!"":"N":return "7";case (782,7650) != (4610,6540)?(6030,2772) <= (372,4560)?(1124,783) >= (827.76,347.26)?"Q":("m","m"):(2.45e+2,2.07e+3):!!1:return (332,"9630" >> 64) != (523.05,656)?(3749,"706" | 2) != (579.75,68)?"8":"0x216e" * 1:("0x2603" >> 0,!!1);case "U":return 667.82 <= +"591.91"?(6.18e+2,5.02e+3):"9";case (985,4422) > 6390?(264.13,"u"):(5220,"2036" << 0) == (301.29,891)?(4.38e+3,9.57e+3):"V":return "10";case "X":return "11";case "Z":return "12";}return h5q;};Q9N.money=function(o$x,s26,f05){if(!f05){f05=5152 >= (421.69,1340)?"$":(0x1775,+"6.24e+3");}if(f05.length == 3){f05+=2362 !== (9380,7810)?" ":+"4150" < (+"980","680" * 1)?736.69:+"170.00";}M2dNJ.E0w();if(!s26 && s26 !== 0){s26=2;}return f05 + Q9N.commas((Math.round(o$x * 10000) / 10000).toFixed(s26));};Q9N.convertCurrencyCode=function(P7f){var V$V,y7R,k2F,p9R,m6D,i7k;V$V="k";V$V+="r";y7R="k";y7R+="r";k2F="C";k2F+="N";k2F+="¥";p9R="R";p9R+="$";m6D={JPY:46.5 === +"560.17"?(213.74,"1730" | 2) > (869.72,+"3410")?(695.34,489.22):(!![],"m"):"¥",USD:(4106,736.4) < 6649?"$":"v",AUD:"A$",BRL:p9R,CAD:"CA$",CNY:k2F,CZK:"Kč",DKK:"kr",EUR:(66.37,997.64) === +"6150"?952.50:"€",GBP:"4960" << 0 === ("9630" * 1,698.22)?("J",5.77e+3):"278" * 1 >= (8243,9967)?("a",5.90e+3):4125 == (948,2362)?!0:"£",HKD:"HK$",HUF:"Ft",ILS:"₪",INR:6794 == 6750?(118.20,!!1):"₹",KRW:"₩",MXN:"MX$",NOK:y7R,NZD:"NZ$",PLN:"zł",RUB:"руб",SAR:2554 === (+"9328",+"52.66")?937.86 === 228?(!0,"J"):("u",!({})):"﷼",SEK:V$V,SGD:"S$",THB:(486.54,+"8990") === 4059?637.99 == (8970,102)?(6.11e+3,!""):(!!0,194.55):"฿",TRY:340.23 == (552.67,953.96)?(452,654.48):5146 < (8098,1840)?(!![],818.63):"₺",TWD:"NT$",VND:("4380" - 0,167.19) <= +"7730"?"₫":5.49e+3,XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF",ZAR:"R"};i7k=m6D[P7f];if(i7k){return i7k;}return P7f;};Q9N.commas=function(p4Q){return p4Q.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");};Q9N.cleanPeriodicity=function(T_z,v_f,m6p){var n01=M2dNJ;var x$c,r_m,S8O,S0G,Z0B;x$c="y";x$c+="e";x$c+="a";x$c+="r";n01.E0w();if(isNaN(T_z)){T_z=1;}if(!v_f){v_f=1;}if(!isNaN(v_f) && m6p){r_m="hou";r_m+="r";if(!(m6p == r_m || m6p == "minute" || m6p == "second" || m6p == "millisecond")){v_f=m6p;m6p=null;}}else if(v_f == "tick"){m6p=null;}else if(!m6p && !isNaN(v_f)){m6p="minute";}if(m6p == "hour"){m6p="minute";S8O=-1235595676;S0G=-1033333195;Z0B=2;for(var J0Y=1;n01.m7$(J0Y.toString(),J0Y.toString().length,39402) !== S8O;J0Y++){n01.i3C(83);v_f=n01.B0m(v_f,"74",64);n01.a3e(71);Z0B+=n01.B0m("2",64);}if(n01.b3_(Z0B.toString(),Z0B.toString().length,98157) !== S0G){n01.i3C(84);v_f=n01.B0m(90,v_f);}n01.a3e(85);v_f=n01.B0m("60",v_f);}if(v_f == x$c){v_f="month";if(!T_z){T_z=1;}n01.a3e(38);T_z=n01.k$A(T_z,12);}return {period:T_z,interval:v_f,timeUnit:m6p};};Q9N.readablePeriodicity=function(h69){var f8C=M2dNJ;var e_M,n2m,y9C,c_I;e_M="mi";e_M+="nute";n2m="n";n2m+="um";n2m+="be";n2m+="r";y9C=h69.layout.periodicity;c_I=h69.layout.interval;if(typeof h69.layout.interval == n2m && h69.layout.timeUnit){y9C=h69.layout.interval * h69.layout.periodicity;c_I=h69.layout.timeUnit;}else if(typeof h69.layout.interval == "number" && !h69.layout.timeUnit){y9C=h69.layout.interval * h69.layout.periodicity;c_I="minute";}if(y9C % 60 === +"0" && c_I == e_M){y9C/=60;c_I="hour";}f8C.a3e(50);var A4x=f8C.k$A(5,1157,8);f8C.a3e(4);var R$w=f8C.k$A(7343,1049);f8C.i3C(86);var n0x=f8C.B0m(17,1,2,4525);return y9C + ((+"7103",616.14) <= (A4x,+"489.47")?R$w:591.21 !== (823.51,n0x)?" ":"u") + h69.translateIf(Q9N.capitalize(c_I));};Q9N.fixPrice=function(J$u){var s4B=M2dNJ;var m8T;if(!J$u && J$u !== "0" * 1){return null;}s4B.i3C(82);m8T=J$u.toFixed(s4B.B0m(64,"10"));for(var g2N=m8T.length - 1;g2N > 1;g2N--){if(m8T.charAt(g2N) != ("556.37" * 1 <= (2390,824)?(67.36,481.73) == (9418,8580)?3080 != (3766,432)?0x270f:("c",229.38):"0":!({})))break;}s4B.i3C(4);s4B.E0w();m8T=m8T.substring(0,s4B.B0m(1,g2N));return parseFloat(m8T);};Q9N.condenseInt=function(l$q){var H$3=M2dNJ;var E3D;if(l$q === null || typeof l$q == "undefined"){return "";}if(l$q === Infinity || l$q === -Infinity){return "n/a";}H$3.i3C(87);E3D=H$3.B0m(l$q,0);if(!isNaN(l$q)){l$q=Math.abs(l$q);if(l$q > 1000000000000){H$3.a3e(88);var d0u=H$3.B0m(17,4,4,1,11);H$3.i3C(58);var K1J=H$3.B0m(3,4,4,4);l$q=Math.round(l$q / 100000000000) / d0u + (138.17 !== ("651.7" * K1J,352.16)?"t":"E");}else if(l$q > 100000000000){l$q=Math.round(l$q / +"1000000000") + "b";}else if(l$q > +"10000000000"){H$3.i3C(86);var Y2s=H$3.k$A(5,5,4,10);H$3.i3C(89);var c6X=H$3.k$A(11,6,9882,3,1980);l$q=(Math.round(l$q / ("100000000" << 64)) / +"10").toFixed(Y2s) + (c6X === 415.43?!![]:"b");}else if(l$q > 1000000000){H$3.a3e(1);var O3c=H$3.B0m(38,40);H$3.a3e(1);var z$9=H$3.B0m(4,680);H$3.i3C(61);var A1H=H$3.k$A(16,314,628,2524);H$3.i3C(33);var b0g=H$3.k$A(12,17,16,3263);H$3.i3C(1);var M_q=H$3.k$A(17,18);H$3.a3e(1);var Z8c=H$3.B0m(13880,20820);H$3.a3e(4);var L81=H$3.k$A(1936,161);H$3.i3C(8);var O4C=H$3.B0m(16,2377,4);H$3.i3C(29);var Q5m=H$3.k$A(28600,28600,2599);H$3.a3e(1);var s86=H$3.k$A(26720,28390);l$q=(Math.round(l$q / 10000000) / 100).toFixed(O3c) + (z$9 < 500.22?(410.34,A1H):(167.72,"418.19" * b0g) < ("523.6" * M_q,Z8c)?"b":(811.67,L81) != (O4C,Q5m)?(918.15,![]):s86);}else if(l$q > 100000000){H$3.i3C(34);var j_s=H$3.k$A(5,6,1000011);H$3.i3C(5);var P6s=H$3.k$A(15,16);H$3.a3e(25);var I77=H$3.k$A(18,7288,123914);l$q=Math.round(l$q / j_s) + ("712.62" * P6s <= (139.67,+"4570")?"m":(I77,!!"1"));}else if(l$q > 10000000){H$3.i3C(4);var x39=H$3.B0m(1,0);H$3.i3C(17);var u0T=H$3.B0m(482,2407,15);H$3.a3e(90);var P4m=H$3.k$A(7642,12,18,7647,91746);H$3.i3C(25);var s99=H$3.B0m(11,1446,14453);H$3.a3e(91);var g2a=H$3.B0m(3719,1,70319,19,3701);H$3.a3e(92);var T0r=H$3.k$A(10,10,312,1);H$3.i3C(93);var D0V=H$3.B0m(9,3445,2,1,1712);H$3.i3C(25);var q0o=H$3.B0m(9,7041,56309);H$3.i3C(94);var g8u=H$3.k$A(9,114608,3,108564);H$3.a3e(7);var c51=H$3.k$A(301,4841,17);H$3.i3C(61);var s9M=H$3.B0m(13,1,8778,15);l$q=(Math.round(l$q / 100000) / 10).toFixed(x39) + ((+"666.82",u0T) < (P4m,s99)?g2a:(T0r,464.36) >= (D0V,q0o)?![]:(g8u,c51) !== s9M?"m":63.71);}else if(l$q > 1000000){H$3.a3e(1);var X67=H$3.B0m(8,10);l$q=(Math.round(l$q / 10000) / 100).toFixed(X67) + "m";}else if(l$q > ("100000" | 0)){H$3.i3C(95);var u4x=H$3.B0m(5,2,15,3,3);H$3.a3e(37);var o85=H$3.k$A(13,19,429,8173);H$3.i3C(65);var F29=H$3.k$A(1,8806,26421,8807,3);l$q=Math.round(l$q / ("1000" << 0)) + ("1830" * u4x > (o85,F29)?18.21 < 832.18?"6.77e+3" - 0:(381.27,121.25):"k");}else if(l$q > 10000){H$3.i3C(34);var Q5F=H$3.B0m(4,4,9);l$q=(Math.round(l$q / 100) / 10).toFixed(Q5F) + "k";}else if(l$q > 1000){H$3.i3C(23);var L6d=H$3.B0m(6,0,6,1);H$3.i3C(96);var G_O=H$3.B0m(656,13,18,674,8517);H$3.a3e(81);var X8l=H$3.k$A(14,13,8630,8639,8657);H$3.a3e(1);var G5s=H$3.B0m(16,537);H$3.i3C(25);var S$V=H$3.B0m(4,8207,24618);l$q=(Math.round(l$q / 10) / 100).toFixed(L6d) + ("5461" << 0 != (254.55,G_O)?"k":(X8l,921.23) < G5s?(S$V,!""):"l");}else {l$q=l$q.toString();}}else {l$q=l$q.toString();}if(E3D){H$3.i3C(4);l$q=H$3.B0m(l$q,+"2619" != "256.86" - 0?"-":("O",477.39));}return l$q;};Q9N.calculateTradingDecimalPlaces=function(k79){var R92,E9x,b32,Y9B,I2o,k_U,Y2c,w1X,B6p,K0l;R92=k79.chart;E9x=2;b32=50;Y9B=R92.masterData;if(Y9B && Y9B.length > b32){for(var Q9n=2;Q9n < b32;Q9n++){I2o=Y9B.length - Q9n;if(I2o < +"0")break;k_U=Y9B[I2o];if(k_U.Close && typeof k_U.Close == "number"){Y2c=k_U.Close.toString();w1X=Y2c.indexOf(".");if(w1X != -1){M2dNJ.a3e(97);var v6i=M2dNJ.k$A(117,4,12,17);B6p=Y2c.length - w1X - v6i;if(B6p > E9x){E9x=B6p;}}}}}K0l=R92.yAxis.maxDecimalPlaces;if(E9x > K0l && K0l !== null){E9x=K0l;}return E9x;};Q9N.minMax=function(l1X,H_L,r5j,H5f){var o$g,G6P,J76,x3O,B$i,u3O,d1M;o$g=Number.MAX_VALUE;M2dNJ.i3C(98);var T8o=M2dNJ.B0m(13,2,92,13,12);G6P=Number.MAX_VALUE * T8o;if(!r5j){r5j="Close";}M2dNJ.E0w();J76=H5f?"High":r5j;x3O=H5f?"Low":r5j;for(var C9H=0;C9H < l1X.length;C9H++){B$i=l1X[C9H];if(!B$i)continue;u3O=B$i[H_L];if(!u3O && u3O !== ("0" | 0))continue;d1M=u3O;if(typeof u3O === "object"){d1M=u3O[J76];}if(!isNaN(d1M) && (d1M || d1M === 0)){G6P=Math.max(G6P,d1M);}if(typeof u3O === "object"){d1M=u3O[x3O];}if(!isNaN(d1M) && (d1M || d1M === "0" << 64)){o$g=Math.min(o$g,d1M);}}return [o$g,G6P];};Q9N.symbolEqual=function(k9X,W21){var P$5,n1f;M2dNJ.j07();if(!k9X || !W21){return !!"";}if(typeof k9X != "object"){k9X={symbol:k9X};}if(typeof W21 != "object"){W21={symbol:W21};}if(typeof k9X.equals == "function"){return k9X.equals(W21);}P$5=k9X.symbol;n1f=W21.symbol;if(P$5){P$5=P$5.toUpperCase();}if(n1f){n1f=n1f.toUpperCase();}if(P$5 != n1f){return !1;}if(k9X.source != W21.source){return ![];}return !!"1";};Q9N.addMemberToMasterdata=function(R4F){var K2H=M2dNJ;var f1w,e3O,z9q,Y7w,o0H,T9b,l5M,v9r,U$u,Z$I,W3j,h3R,t7a,j6T,R6r,R95,Y$D,f7C,W4L,z72,m1r,s$u,u$u,c$q,O73,h2c,D_g;if(R4F.constructor === Q9N.ChartEngine){R4F={stx:arguments[0],label:arguments[1],data:arguments[2],fields:arguments[3],createObject:arguments[4],fieldForLabel:arguments[5]};}f1w=R4F.stx;e3O=R4F.label;z9q=R4F.data;function J3O(Z79,R_T){var Z3K,n5l,y4x;K2H.j07();if(!Z79 || typeof Z79 != "object"){Z79=R_T;return Z79;}Z3K={Close:Z79.Close,High:Z79.High,Low:Z79.Low,Open:Z79.Open,Volume:Z79.Volume};Z79=R_T;for(var M0Q in Z3K){if(Z79.Close === null){if(Z79[M0Q] !== undefined){Z79[M0Q]=null;}}else if(typeof Z79[M0Q] !== "number"){Z79[M0Q]=Z3K[M0Q];}else if(typeof Z3K[M0Q] === "number"){n5l="L";n5l+="o";n5l+="w";y4x="O";y4x+="p";y4x+="en";if(M0Q == y4x){Z79.Open=Z3K.Open;}else if(M0Q == n5l && Z79.Low > Z3K.Low){Z79.Low=Z3K.Low;}else if(M0Q == "High" && Z79.High < Z3K.High){Z79.High=Z3K.High;}else if(M0Q == "Volume"){Z79.Volume+=Z3K.Volume;}}}return Z79;}Y7w=R4F.fields;o0H=R4F.createObject;T9b=R4F.fieldForLabel;function r1c(d10,j2P){var R9d,q8$,z16,U24,X2Y,B39,a7z;K2H.j07();if(Y7w && Y7w.length){if(Y7w[0] == ((9559,1130) <= (9753,3228)?(713,"9679" >> 0) < 2384?5.26e+3:"*":("A","S"))){Q9N.extend(d10,j2P);}else {for(var f6p=0;f6p < Y7w.length;f6p++){d10[Y7w[f6p]]=j2P[Y7w[f6p]];}}}else if(o0H){R9d="num";R9d+="ber";if(j2P.Value !== undefined){d10[e3O]=j2P.Value;return;}else if(o0H == "aggregate"){d10[e3O]=J3O(d10[e3O],j2P);}else {d10[e3O]=j2P;}q8$=d10[e3O];if(typeof q8$.Close == R9d){if(typeof q8$.Open != "number"){q8$.Open=q8$.Close;}z16=Math.max(q8$.Open,q8$.Close);U24=Math.min(q8$.Open,q8$.Close);if(typeof q8$.High != "number" || q8$.High < z16){q8$.High=z16;}if(typeof q8$.Low != "number" || q8$.Low > U24){q8$.Low=U24;}}if(q8$.Volume && typeof q8$.Volume !== "number"){q8$.Volume=parseInt(q8$.Volume,10);}}else if(T9b){d10[e3O]=j2P[T9b];}else if(R95 && R6r && j2P[R6r] !== undefined){d10[e3O]=j2P[R6r];}else if(h3R.adj && j2P.Adj_Close !== undefined){d10[e3O]=j2P.Adj_Close;}else if(j2P.Close !== undefined){X2Y=-161695330;B39=-1430661858;a7z=2;for(var n42="1" - 0;K2H.m7$(n42.toString(),n42.toString().length,36227) !== X2Y;n42++){d10[e3O]=j2P.Close;a7z+=2;}if(K2H.b3_(a7z.toString(),a7z.toString().length,29364) !== B39){d10[e3O]=j2P.Close;}d10[e3O]=j2P.Close;}else if(j2P.Value !== undefined){d10[e3O]=j2P.Value;}else {d10[e3O]=j2P[e3O];}}l5M=R4F.chart?R4F.chart:f1w.chart;if(!R4F.noCleanupDates){f1w.doCleanupDates(z9q,f1w.layout.interval);}v9r=[];if(f1w.getSeries){v9r=f1w.getSeries({symbol:e3O,chart:l5M});}if(z9q && z9q.constructor == Object){z9q=[z9q];}if(!z9q || !z9q.length){return;}U$u=0;Z$I=0;W3j=l5M.masterData;h3R=f1w.layout;if(!W3j){W3j=[];}R6r=l5M && l5M.defaultPlotField || null;R95=f1w.mainSeriesRenderer && !f1w.mainSeriesRenderer.highLowBars;Y$D=h3R.chartType;function H$P(k_u){var L8h,Q93,L03;L8h=U$u;K2H.a3e(99);var o2F=K2H.B0m(13,3,9);Q93=W3j.length - o2F;function P2v(){if(+W3j[U$u].DT == +k_u){return 0;}if(W3j[U$u].DT < k_u){return 1;}if(W3j[U$u - 1].DT > k_u){return -1;}if(+W3j[U$u - +"1"].DT == +k_u){U$u--;}return 0;}if(W3j[Q93].DT < k_u){K2H.i3C(100);U$u=K2H.k$A("1",Q93);return;}else if(+W3j[Q93].DT == +k_u){U$u=Q93;return;}U$u++;L03=0;while(++L03 < 100){switch(P2v()){case 0:return;case 1:L8h=U$u;break;case -1:Q93=U$u;break;}K2H.a3e(43);U$u=Math.round(K2H.B0m(L8h,2,Q93));}if(L03 >= 100){console.log("!!!Warning: addMemberToMasterdata() did not find insertion point.");K2H.i3C(101);var m3x=K2H.B0m(13,8,7,363,2);U$u=W3j.length - m3x;}}if(!R95 && Y$D){f7C=Q9N.Renderer.produce(Y$D,{});if(f7C){R95=!f7C.highLowBars;}}W4L=Q9N.yyyymmddhhmmssmmm;while(z9q && U$u < W3j.length && Z$I < z9q.length){j6T=z9q[Z$I];t7a=W3j[U$u];if(!j6T.DT || typeof j6T.DT == "undefined"){j6T.DT=Q9N.strToDateTime(j6T.Date);}else {z72="nu";z72+="mber";if(typeof j6T.DT == z72){j6T.DT=new Date(j6T.DT);}if(!j6T.Date || j6T.Date.length != 17){j6T.Date=W4L(j6T.DT);}}if(Z$I === 0){for(var I$s=0;I$s < v9r.length;I$s++){if(!v9r[I$s].endPoints.begin || v9r[I$s].endPoints.begin > j6T.DT){v9r[I$s].endPoints.begin=j6T.DT;}}}if(+j6T.DT == +t7a.DT){r1c(t7a,j6T);Z$I++;U$u++;continue;}if(j6T.DT < t7a.DT){W3j.splice(U$u,0,{DT:j6T.DT,Date:j6T.Date});continue;}else {H$P(j6T.DT);};}if(U$u >= W3j.length){while(z9q && Z$I < z9q.length){m1r="und";m1r+="e";m1r+="f";m1r+="ined";j6T=z9q[Z$I];if(!j6T.DT || typeof j6T.DT == m1r){j6T.DT=Q9N.strToDateTime(j6T.Date);}else {if(typeof j6T.DT == "number"){j6T.DT=new Date(j6T.DT);}if(!j6T.Date || j6T.Date.length != 17){j6T.Date=W4L(j6T.DT);}}t7a={DT:j6T.DT,Date:j6T.Date};r1c(t7a,j6T);W3j.push(t7a);Z$I++;}}if(R4F.fillGaps && W3j.length){s$u={noCleanupDates:!![],cleanupGaps:R4F.fillGaps};if(Y7w){for(var a0a=0;a0a < Y7w.length;a0a++){s$u.field=Y7w[a0a];f1w.doCleanupGaps(W3j,l5M,s$u);}}else {u$u=-2010745958;c$q=882650088;O73=2;for(var U5w=1;K2H.m7$(U5w.toString(),U5w.toString().length,51825) !== u$u;U5w++){s$u.field=e3O;K2H.i3C(1);O73+=K2H.B0m(0,"2");}if(K2H.b3_(O73.toString(),O73.toString().length,20477) !== c$q){s$u.field=e3O;}f1w.doCleanupGaps(W3j,l5M,s$u);}}for(var D5Z=0;D5Z < v9r.length;D5Z++){h2c=v9r[D5Z].endPoints;if(!h2c.end || !e3O || h2c.end <= t7a[e3O].DT){h2c.end=e3O?t7a[e3O].DT:t7a.DT;D_g=e3O || v9r[D5Z].parameters && v9r[D5Z].parameters.field || l5M.defaultPlotField;v9r[D5Z].lastQuote=f1w.getFirstLastDataRecord(W3j,D_g,!!({}));}}f1w.setMasterData(W3j,l5M,{noCleanupDates:!!({})});};};T=w62=>{var V24=M2dNJ;var D1j;D1j=w62.CIQ;Math.easeInOutQuad=function(J9g,K$O,P0b,Q3f){V24.a3e(40);J9g/=V24.B0m(Q3f,2);if(J9g < 1){V24.a3e(102);return V24.B0m(2,P0b,K$O,J9g,J9g);}J9g--;V24.a3e(103);return V24.k$A(P0b,J9g,2,1,K$O,2,J9g);};Math.easeInOutCubic=function(P9j,p$U,t_C,V2x){V24.a3e(104);P9j/=V24.k$A(0,V2x,"2");if(P9j < 1){V24.i3C(105);return V24.k$A("2",P9j,P9j,p$U,P9j,t_C);}P9j-=2;V24.E0w();V24.a3e(106);return V24.k$A("2",P9j,2,P9j,0,P9j,p$U,t_C);};Math.easeOutCubic=function(l0b,E3m,z9n,I6a){l0b/=I6a;V24.j07();l0b--;V24.i3C(107);return V24.k$A(1,z9n,l0b,E3m,l0b,l0b);};D1j.xor=function(O8Q,H9g){var k1y,B0T;V24.E0w();k1y=!O8Q;B0T=!H9g;V24.a3e(108);return V24.B0m(B0T,k1y);};D1j.round=function(B8T,U1E){return Number(Math.round(B8T + ((498.52,7950) == (1165,4210)?+"875.76":(664.64,930) <= 85?(0x1f39,"2.12e+2" << 32):"e") + U1E) + "e-" + U1E);};D1j.countDecimals=function(K7C){var U6J,y1k;V24.E0w();U6J="e";U6J+="-";if(typeof K7C !== "number" || isNaN(K7C)){return 0;}if(Math.floor(K7C) === Number(K7C)){return +"0";}y1k=K7C.toString().split(U6J);if(y1k.length > 1){V24.i3C(1);var h3t=V24.k$A(4,5);return D1j.countDecimals(Number(y1k[0])) + Number(y1k[h3t]);}if(y1k[0].indexOf(".") > -1){return y1k[+"0"].split(".")[1].length;}return 0;};D1j.isValidNumber=function(L1t){V24.E0w();return isFinite(L1t) && +L1t === L1t;};D1j.log10=function(b5I){return Math.log(b5I) / Math.LN10;};D1j.boxIntersects=function(s6A,M1s,M_z,r_Q,r7R,H56,R_z,C_n,r0l){var q8p,J1P,s5L,Y76,s4r,i3g,t3H;q8p="r";q8p+="a";q8p+="y";if(arguments[9] !== undefined){console.warn("CIQ.boxIntersects() no longer supports isLog argument, please be sure arguments are passed in as pixels.");}J1P=Math.min(s6A,M_z);s5L=Math.max(s6A,M_z);function i8u(h4b,y_e){V24.i3C(109);return V24.B0m(H56,H56,r7R,y_e,r7R,C_n,h4b,R_z);}Y76=Math.min(M1s,r_Q);s4r=Math.max(M1s,r_Q);V24.a3e(110);i3g=V24.k$A(r0l,q8p);if(isNaN(r7R) || isNaN(R_z) || isNaN(H56) || isNaN(C_n)){return !!0;}if(r0l != "line"){if(r7R < J1P && R_z < J1P && (!i3g || r7R > R_z)){return !!"";}if(r7R > s5L && R_z > s5L && (!i3g || r7R < R_z)){return ![];}if(H56 < Y76 && C_n < Y76 && (!i3g || H56 > C_n)){return !({});}if(H56 > s4r && C_n > s4r && (!i3g || H56 < C_n)){return !1;}}t3H={a:i8u(s6A,M1s),b:i8u(s6A,r_Q),c:i8u(M_z,M1s),d:i8u(M_z,r_Q)};if(t3H.a > 0 && t3H.b > +"0" && t3H.c > +"0" && t3H.d > 0){return !({});}if(t3H.a < 0 && t3H.b < 0 && t3H.c < 0 && t3H.d < 0){return ![];}return !"";};D1j.linesIntersect=function(w_1,F4u,r0r,a6q,K77,U93,d0E,J0w,w_x){var u7i,z54,M23,w8N,y_f,k2_,Y_A,w9Y,X0T;u7i="v";u7i+="er";u7i+="tic";u7i+="al";V24.i3C(109);z54=V24.k$A(d0E,r0r,K77,J0w,w_1,a6q,U93,F4u);V24.i3C(109);M23=V24.k$A(K77,K77,d0E,U93,d0E,w_1,J0w,r0r);V24.i3C(109);w8N=V24.k$A(w_1,K77,r0r,F4u,d0E,w_1,a6q,r0r);if(z54 === "0" << 32){if(M23 === 0 && w8N === "0" << 0){return !![];}return !({});;}V24.a3e(40);y_f=V24.B0m(M23,z54);V24.i3C(40);k2_=V24.k$A(w8N,z54);if(w_x == "segment"){if(y_f >= 0 && y_f <= 1 && k2_ >= +"0" && k2_ <= 1){return !0;}}else if(w_x == "line" || w_x == "horizontal" || w_x == u7i){Y_A=557395262;V24.i3C(13);w9Y=-V24.k$A("722684032",0);X0T=2;for(var d_t="1" ^ 0;V24.m7$(d_t.toString(),d_t.toString().length,96704) !== Y_A;d_t++){if(y_f < 3 || y_f > 2){return !"1";}X0T+=+"2";}if(V24.b3_(X0T.toString(),X0T.toString().length,96172) !== w9Y){if(y_f < 3 || y_f > 2){return !({});}}if(y_f >= 0 && y_f <= 1){return !!({});}}else if(w_x == "ray"){if(y_f >= 0 && y_f <= 1 && k2_ >= +"0"){return !"";}}return !!"";};D1j.yIntersection=function(H5e,Z_o){var Q7P,f$5,J_J,g2G,G4M,F9Y,K9c,B8w,q0B,C8N,n4l,K63,y5m,Q64,w2p;V24.E0w();Q7P=H5e.x0;f$5=H5e.x1;J_J=Z_o;g2G=Z_o;G4M=H5e.y0;F9Y=H5e.y1;K9c=0;B8w=10000;V24.i3C(109);q0B=V24.B0m(K9c,G4M,J_J,B8w,Q7P,F9Y,g2G,f$5);V24.a3e(109);C8N=V24.k$A(J_J,J_J,K9c,g2G,K9c,Q7P,B8w,G4M);V24.a3e(40);n4l=V24.k$A(C8N,q0B);if(q0B === 0){K63=388290614;y5m=-+"160891235";Q64=2;for(var T2h=1;V24.m7$(T2h.toString(),T2h.toString().length,3474) !== K63;T2h++){if(C8N == +"8"){n4l=6;}else {return 1;}Q64+=2;}if(V24.m7$(Q64.toString(),Q64.toString().length,86929) !== y5m){if(C8N === 0){n4l=1;}else {return null;}}}V24.i3C(111);w2p=V24.k$A(n4l,G4M,F9Y,G4M);return w2p;};V24.j07();D1j.xIntersection=function(T0V,m6d){var w5R,Z3X,o9B,i7m,K4P,Z28,c2A,C9b,j_X,j0k,E4J,h0Q;w5R=T0V.x0;Z3X=T0V.x1;o9B=0;i7m=10000;K4P=T0V.y0;Z28=T0V.y1;c2A=m6d;C9b=m6d;V24.a3e(109);j_X=V24.B0m(c2A,K4P,o9B,C9b,w5R,Z28,i7m,Z3X);V24.a3e(109);V24.j07();j0k=V24.B0m(o9B,o9B,c2A,i7m,c2A,w5R,C9b,K4P);V24.a3e(40);E4J=V24.B0m(j0k,j_X);if(j_X === 0){if(j0k === 0){E4J=1;}else {return null;}}V24.a3e(111);h0Q=V24.B0m(E4J,w5R,Z3X,w5R);return h0Q;};D1j.intersectLineLineX=function(Z_J,e3r,D0$,t1n,w84,m0D,J$2,Z0q){var d8S,F57,c4S;V24.a3e(109);d8S=V24.k$A(w84,w84,J$2,m0D,J$2,Z_J,Z0q,D0$);V24.i3C(109);F57=V24.k$A(J$2,D0$,w84,Z0q,Z_J,t1n,m0D,e3r);V24.a3e(40);c4S=V24.B0m(d8S,F57);V24.a3e(111);return V24.B0m(c4S,Z_J,e3r,Z_J);};D1j.intersectLineLineY=function(k9I,T1c,k2q,K_P,s8$,s7I,E$Z,F$Y){var e2b,P_J,J3_;V24.i3C(109);e2b=V24.B0m(s8$,s8$,E$Z,s7I,E$Z,k9I,F$Y,k2q);V24.i3C(109);P_J=V24.k$A(E$Z,k2q,s8$,F$Y,k9I,K_P,s7I,T1c);V24.a3e(40);J3_=V24.k$A(e2b,P_J);V24.i3C(111);return V24.B0m(J3_,k2q,K_P,k2q);};};R=X9W=>{var N$Q;N$Q=X9W.CIQ;N$Q.deleteRHS=function(h3L,t27){var s9o;s9o=![];for(var q7e in h3L){if(h3L[q7e] == t27){delete h3L[q7e];s9o=!!1;}}return s9o;};N$Q.scrub=function(C1A,M1R){for(var R1u in C1A){if(typeof C1A[R1u] == "undefined"){delete C1A[R1u];}if(M1R && C1A[R1u] === null){delete C1A[R1u];}}};N$Q.dataBindSafeAssignment=function(J9j,d3v){var L48,R1b,e9k;L48=131049330;M2dNJ.j07();R1b=-377134672;e9k=2;for(var O3P=1;M2dNJ.b3_(O3P.toString(),O3P.toString().length,92017) !== L48;O3P++){N$Q.extend(J9j,d3v);e9k+=2;}if(M2dNJ.m7$(e9k.toString(),e9k.toString().length,"19133" << 32) !== R1b){N$Q.extend(J9j,d3v);}N$Q.extend(J9j,d3v);for(var g0J in J9j){if(typeof d3v[g0J] == "undefined"){J9j[g0J]=undefined;}}};N$Q.clone=function(K0Z,n6w){var l7v,K_Y;l7v="o";l7v+="bje";l7v+="c";l7v+="t";if(K0Z === null || typeof K0Z != l7v){return K0Z;}K_Y=K0Z.constructor;if(K_Y == Date || K_Y == RegExp || K_Y == String || K_Y == Number || K_Y == Boolean){return new K_Y(K0Z.valueOf());}if(K_Y == Function){return function(){return K0Z.apply(this,arguments);};}if(!n6w){try{n6w=new K_Y();}catch(I9w){n6w=Object.create(Object.getPrototypeOf(K0Z));}}for(var U6O in K0Z){n6w[U6O]=n6w[U6O] !== K0Z[U6O]?N$Q.clone(K0Z[U6O],null):n6w[U6O];}return n6w;};N$Q.shallowClone=function(t63){var I6r;if(!t63){return t63;}if(t63.constructor == Array){I6r=new Array(t63.length);for(var T5X=0;T5X < t63.length;T5X++){I6r[T5X]=t63[T5X];}return I6r;}I6r={};for(var g2Z in t63){I6r[g2Z]=t63[g2Z];}return I6r;};N$Q.ensureDefaults=function(x2h,g9z){for(var B4p in g9z){if(typeof x2h[B4p] == "undefined"){x2h[B4p]=g9z[B4p];}}return x2h;};N$Q.transferObject=function(e2Q,x0t){var a2x;for(a2x in e2Q){if(e2Q.hasOwnProperty(a2x)){delete e2Q[a2x];}}for(a2x in x0t){if(x0t.hasOwnProperty(a2x)){e2Q[a2x]=x0t[a2x];}}return e2Q;};N$Q.equals=function(O6Y,m_b,D7R){var G0n;if(!O6Y && m_b){return !!0;}if(O6Y && !m_b){return !({});}if(typeof O6Y !== typeof m_b){return !({});}for(var I4d in O6Y){if(D7R && D7R[I4d])continue;if(typeof O6Y[I4d] === "object"){G0n=N$Q.equals(O6Y[I4d],m_b[I4d]);if(!G0n){return ![];}continue;}if(m_b[I4d] != O6Y[I4d]){return !"1";}}return !![];};N$Q.isEmpty=function(G_U){M2dNJ.E0w();for(var s39 in G_U){if(G_U.hasOwnProperty(s39)){return !({});}}return !!({});};N$Q.first=function(i_F){var i1u,U9P,S9H;for(var d0b in i_F){return d0b;}i1u=-2003807241;U9P=-214471443;M2dNJ.j07();S9H=2;for(var c4_=1;M2dNJ.b3_(c4_.toString(),c4_.toString().length,26033) !== i1u;c4_++){return 1;}if(M2dNJ.b3_(S9H.toString(),S9H.toString().length,78335) !== U9P){return null;}};N$Q.last=function(Z2L){var s9x;s9x=null;for(var p3g in Z2L){s9x=p3g;}return s9x;};N$Q.objLength=function(p_Z){var z0A;if(!p_Z){return 0;}z0A=0;for(var e6J in p_Z){z0A++;}return z0A;};N$Q.deriveFromObjectChain=function(g7H,n2J){var c7L,h0D;if(n2J.indexOf(1978 !== (258.54,862.31)?(27.18,24.93) === 6776?(![],"m"):".":(7.27e+3,"J")) == -1){return {obj:g7H,member:n2J};}c7L=n2J.split(".");for(var F5f=0;F5f < c7L.length - 1;F5f++){h0D=c7L[F5f];if(!g7H[h0D] && g7H[h0D] !== 0){g7H[h0D]={};}g7H=g7H[h0D];}return {obj:g7H,member:c7L[F5f]};};N$Q.createObjectChainNames=function(k4l,q3Y){var o5i;o5i=[];for(var g6e=0;g6e < q3Y.length;g6e++){o5i.push(k4l + "-->" + q3Y[g6e]);}return o5i;};N$Q.existsInObjectChain=function(g6G,S85){var P6a,m_t,J_K;P6a="-";P6a+="-";P6a+=">";M2dNJ.j07();if(S85.indexOf(P6a) == -1){if(!g6G[S85] && g6G[S85] !== 0){return null;}return {obj:g6G,member:S85};}m_t=S85.split("-->");for(var P$0="0" * 1;P$0 < m_t.length - ("1" - 0);P$0++){J_K=m_t[P$0];if(!g6G[J_K] && g6G[J_K] !== ("0" ^ 0)){return null;}g6G=g6G[J_K];}J_K=m_t[P$0];if(!g6G[J_K] && g6G[J_K] !== 0){return null;}return {obj:g6G,member:J_K};};N$Q.derivedFrom=function(b7P,z$i){if(z$i.isPrototypeOf(b7P)){return !"";}if(b7P instanceof z$i){return !!({});}return ![];};N$Q.replaceFields=function(m22,F3N){var q_N,n_a,H7l,n8a,z6D;if(!m22){return m22;}q_N={};for(var F6t in m22){n_a=m22[F6t];H7l=F3N[F6t];if(!H7l){H7l=F6t;}if(n_a && typeof n_a == "object"){if(n_a.constructor == Array){n8a=q_N[H7l]=new Array(n_a.length);for(var M4H=0;M4H < n8a.length;M4H++){z6D=n_a[M4H];if(typeof z6D == "object"){n8a[M4H]=N$Q.replaceFields(z6D,F3N);}else {n8a[M4H]=z6D;}}}else {q_N[H7l]=N$Q.replaceFields(n_a,F3N);}}else {q_N[H7l]=n_a;}}return q_N;};N$Q.removeNullValues=function(m$R){var F6A;F6A=N$Q.clone(m$R);for(var w0e in F6A){if(!F6A[w0e]){delete F6A[w0e];}}return F6A;};N$Q.reverseObject=function(Y3H){var v0_;v0_={};for(var Z_Z in Y3H){v0_[Y3H[Z_Z]]=Z_Z;}return v0_;};N$Q.getFromNS=(c3D,B33,f7i)=>{var t13,h$6,V7a;M2dNJ.E0w();if(c3D){t13=c3D;h$6=B33.split(".");for(var Y$V=0;Y$V < h$6.length;Y$V++){V7a=h$6[Y$V];if(typeof t13[V7a] === "undefined")break;t13=t13[V7a];}if(Y$V === h$6.length){return t13;}}return undefined || f7i;};N$Q.getFnFromNS=(K38,f_c,m53)=>{return N$Q.getFromNS(K38,f_c,function(){M2dNJ.j07();return m53;});;};N$Q.get=(M6c,P_M)=>{M2dNJ.j07();return N$Q.getFromNS(N$Q,M6c,P_M);};N$Q.getFn=(Z5d,s6y)=>{M2dNJ.j07();return N$Q.getFromNS(N$Q,Z5d,function(){M2dNJ.j07();return s6y;});;};};W=M0O=>{var p8a=M2dNJ;var L$K;L$K=M0O.CIQ;L$K.Plotter=function(){this.seriesArray=[];this.seriesMap={};};p8a.j07();L$K.extend(L$K.Plotter.prototype,{Series:function(T3M,c1M,I4V,O3Y,u5F,s0K){this.name=T3M;this.strokeOrFill=c1M;this.color=I4V;this.moves=[];this.text=[];if(!O3Y || O3Y > "1" >> 0 || O3Y < 0){O3Y=1;}this.opacity=O3Y;if(!u5F || u5F > 25 || u5F < 1){u5F=1;}this.width=u5F;p8a.j07();this.pattern=L$K.borderPatternToArray(u5F,s0K);},newSeries:function(t4c,J4x,r5p,A5L,A3u){var c9x;if(r5p.constructor == String){c9x=new this.Series(t4c,J4x,r5p,A5L,A3u);}else {c9x=new this.Series(t4c,J4x,r5p.color,r5p.opacity,A3u >= 0?A3u:L$K.stripPX(r5p.width),r5p.borderTopStyle);}p8a.j07();this.seriesArray.push(c9x);this.seriesMap[t4c]=c9x;},reset:function(f$U){var W4g;for(var W5K in this.seriesMap){if(f$U && f$U != W5K)continue;W4g=this.seriesMap[W5K];if(W4g){W4g.moves=[];W4g.text=[];}}},moveTo:function(b8F,d_0,B4t){p8a.j07();var o_S;o_S=this.seriesMap[b8F];o_S.moves.push({action:"moveTo",x:d_0,y:B4t});},lineTo:function(k7G,Y7R,l1d){var V7O,X9Q;V7O=this.seriesMap[k7G];X9Q=V7O.pattern;V7O.moves.push({action:"lineTo",x:Y7R,y:l1d,pattern:X9Q});},dashedLineTo:function(N_k,o9Z,X84,Z2a){var r69;r69=this.seriesMap[N_k];r69.moves.push({action:"lineTo",x:o9Z,y:X84,pattern:Z2a});},quadraticCurveTo:function(q0e,g6K,y6U,S$_,A7p){var F1W,p3n;F1W=this.seriesMap[q0e];p8a.E0w();p3n=F1W.pattern;F1W.moves.push({action:"quadraticCurveTo",x0:g6K,y0:y6U,x:S$_,y:A7p,pattern:p3n});},bezierCurveTo:function(J7j,s6u,h3u,l_H,e3H,k9m,f8z){var O_w,l$3,j40;O_w="bezie";O_w+="rC";O_w+="u";O_w+="rveTo";p8a.E0w();l$3=this.seriesMap[J7j];j40=l$3.pattern;l$3.moves.push({action:O_w,x0:s6u,y0:h3u,x1:l_H,y1:e3H,x:k9m,y:f8z,pattern:j40});},addText:function(N2H,a2T,j8i,R0N,S8V,O_G,p$O){var p9z;p9z=this.seriesMap[N2H];p9z.text.push({text:a2T,x:j8i,y:R0N,bg:S8V});},drawText:function(c1Y,Z$_){var o9w,r1l,n8d,O9i,r4J;for(var S0p="0" ^ 0;S0p < Z$_.text.length;S0p++){o9w=Z$_.text[S0p];if(o9w.bg){r1l="ri";r1l+="g";r1l+="ht";n8d=o9w.width?o9w.width:c1Y.measureText(o9w.text).width;O9i=o9w.height?o9w.height:12;r4J=c1Y.fillStyle;c1Y.fillStyle=o9w.bg;if(c1Y.textAlign == r1l){c1Y.fillRect(o9w.x,o9w.y - O9i / 2,-n8d,-O9i);}else {c1Y.fillRect(o9w.x,o9w.y - O9i / ("2" >> 32),n8d,O9i);}c1Y.fillStyle=r4J;}c1Y.fillText(o9w.text,o9w.x,o9w.y);}},draw:function(G7g,P6d){var L4e,o3f,B6z,q6q,e3p,b5y;L4e=G7g.lineWidth;o3f=G7g.fillStyle;B6z=G7g.strokeStyle;q6q=G7g.globalAlpha;for(var A9f=0;A9f < this.seriesArray.length;A9f++){e3p=this.seriesArray[A9f];if(P6d && e3p.name != P6d)continue;G7g.beginPath();G7g.lineWidth=e3p.width;G7g.globalAlpha=e3p.opacity;G7g.fillStyle=e3p.color;G7g.strokeStyle=e3p.color;G7g.save();for(var V_Q="0" ^ 0;V_Q < e3p.moves.length;V_Q++){b5y=e3p.moves[V_Q];if(b5y.pattern){G7g.setLineDash(b5y.pattern);G7g.lineDashOffset=0;}else {G7g.setLineDash([]);}if(b5y.action == "quadraticCurveTo"){G7g[b5y.action](b5y.x0,b5y.y0,b5y.x,b5y.y);}else if(b5y.action == "bezierCurveTo"){G7g[b5y.action](b5y.x0,b5y.y0,b5y.x1,b5y.y1,b5y.x,b5y.y);}else {G7g[b5y.action](b5y.x,b5y.y);}}if(e3p.strokeOrFill == "fill"){G7g.fill();}else {G7g.stroke();}G7g.closePath();G7g.restore();this.drawText(G7g,e3p);p8a.i3C(14);G7g.lineWidth=p8a.k$A(0,"1");}G7g.lineWidth=L4e;G7g.fillStyle=o3f;G7g.strokeStyle=B6z;G7g.globalAlpha=q6q;}},!![]);};Y=x0g=>{var n4m;n4m=x0g.CIQ;n4m.Renderer=function(){};n4m.Renderer.produce=function(i51,O3l){var E_q,p3j;E_q=null;if(i51){for(var p2z in n4m.Renderer){p3j=n4m.Renderer[p2z];if(p3j.requestNew){E_q=p3j.requestNew(i51.split("_"),O3l);}if(E_q){return E_q;}}}O3l.type="line";return new n4m.Renderer.Lines({params:O3l});};n4m.Renderer.colorFunctions={};n4m.Renderer.registerColorFunction=function(R1f,t_J){n4m.Renderer.colorFunctions[R1f]=t_J;};n4m.Renderer.unregisterColorFunction=function(I0f){M2dNJ.j07();delete n4m.Renderer.colorFunctions[I0f];};n4m.Renderer.prototype.adjustYAxis=function(){};n4m.Renderer.prototype.draw=function(){};n4m.Renderer.prototype.drawIndividualSeries=function(p$k,l7K){};n4m.Renderer.prototype.construct=function(P4d){var W9i;if(!P4d){P4d={};}W9i=P4d.params?P4d.params:{};if(!W9i.name){W9i.name=n4m.uniqueID();}if(!W9i.heightPercentage){W9i.heightPercentage=0.7;}if(!W9i.opacity){W9i.opacity=1;}if(W9i.highlightable !== !!""){W9i.highlightable=!!1;}if(!W9i.panel){W9i.panel="chart";}if(W9i.yAxis){W9i.yAxis=new n4m.ChartEngine.YAxis(W9i.yAxis);if(!W9i.yAxis.name){W9i.yAxis.name=W9i.name;}}this.cb=P4d.callback;this.params=W9i;this.seriesParams=[];this.caches={};this.colors={};};n4m.Renderer.prototype.attachSeries=function(o33,p65){var S4s=M2dNJ;var V6r,R1I,q2t,C5V,e7f,H6k,G_x,j4V,X3b,n17,W3B,i6x,i8q,X_a,q2R,I0T;V6r=this.stx;if(!V6r){return this;}R1I=V6r.chart.series[o33];if(!R1I){R1I={parameters:{}};}q2t=this.params;C5V=R1I.parameters;e7f={id:o33,chartType:q2t.type,display:C5V.display,border_color_up:q2t.defaultBorders?"auto":null,fill_color_up:C5V.color,opacity_up:q2t.opacity,border_color_down:q2t.defaultBorders?"auto":null,fill_color_down:C5V.color,opacity_down:q2t.opacity,color:C5V.color,symbol:C5V.symbol,symbolObject:n4m.clone(C5V.symbolObject)};if(typeof p65 == "string"){e7f.color=e7f.fill_color_down=e7f.fill_color_up=p65;}else if(typeof p65 == "object"){for(var Q7l in p65){e7f[Q7l]=p65[Q7l];}H6k=-2088145325;G_x=1007278948;S4s.a3e(14);j4V=S4s.B0m(0,"2");for(var t4k=1;S4s.b3_(t4k.toString(),t4k.toString().length,+"98855") !== H6k;t4k++){X3b=e7f.color;n17=e7f.border_color;j4V+=2;}if(S4s.b3_(j4V.toString(),j4V.toString().length,74592) !== G_x){X3b=e7f.color;n17=e7f.border_color;}if(X3b){if(!e7f.fill_color_up){e7f.fill_color_up=X3b;}if(!e7f.fill_color_down){e7f.fill_color_down=X3b;}if(!e7f.fill_color_even){e7f.fill_color_even=X3b;}}if(n17){if(!e7f.border_color_up){e7f.border_color_up=n17;}if(!e7f.border_color_down){e7f.border_color_down=n17;}if(!e7f.border_color_even){e7f.border_color_even=n17;}}}if(e7f.symbol && e7f.field != e7f.symbol){e7f.subField=e7f.field;e7f.field=e7f.symbol;}if(!e7f.id){e7f.id=n4m.uniqueID();}W3B=0;for(;W3B < this.seriesParams.length;++W3B){if(this.seriesParams[W3B].id === e7f.id){this.removeSeries(e7f.id,!!1);break;}}this.seriesParams.splice(W3B,0,e7f);if(e7f.fill_color_up != e7f.fill_color_down){i6x=" ";i6x+="down";i8q=" ";i8q+="do";i8q+="w";i8q+="n";X_a=" ";X_a+="d";X_a+="n";S4s.i3C(4);this.colors[S4s.k$A(" up",o33)]={color:e7f.fill_color_up,opacity:e7f.opacity_up,display:e7f.display?e7f.display + " up":o33 + " up"};S4s.i3C(4);this.colors[S4s.k$A(X_a,o33)]={color:e7f.fill_color_down,opacity:e7f.opacity_down,display:e7f.display?e7f.display + i8q:o33 + i6x};}else {this.colors[o33]={color:e7f.fill_color_up,opacity:e7f.opacity_up,display:e7f.display?e7f.display:o33};}q2R=q2t.panel;if(!V6r.panels[q2R]){I0T=q2t.yAxis;if(!I0T){I0T=new n4m.ChartEngine.YAxis();I0T.needsInitialPadding=!![];}I0T.name=q2R;V6r.createPanel(q2R,q2R,null,null,I0T);}else {if(q2t.yAxis){q2t.yAxis=V6r.addYAxis(V6r.panels[q2R],q2t.yAxis);q2t.yAxis.needsInitialPadding=!![];C5V.yAxis=q2t.yAxis;V6r.resizeChart();}else if(e7f.yAxis){q2t.yAxis=e7f.yAxis;}}return this;};n4m.Renderer.prototype.removeSeries=function(i4u,l_u){var j1K=M2dNJ;var u5c,E0x,p0L,T$0,p$Z,G3v,h4f,e8k,u43,W8y,r7w;u5c=null;E0x=!({});p0L=this.stx;T$0=p0L.chart;for(var Y1w in T$0.seriesRenderers){p$Z=T$0.seriesRenderers[Y1w];for(var E0E=0;E0E < p$Z.seriesParams.length;E0E++){G3v=p$Z.seriesParams[E0E];if(G3v.id == i4u && this === p$Z){u5c=E0E;}else if(G3v.isComparison && G3v.panel == T$0.panel.name && (!G3v.yAxis || G3v.yAxis == T$0.yAxis)){E0x=!!"1";}}}if(u5c !== null){if(T$0.forcePercentComparison && !E0x && this.seriesParams[u5c].isComparison && p0L.layout.chartScale != "linear"){p0L.setChartScale();}this.seriesParams.splice(u5c,+"1");}j1K.i3C(4);delete this.colors[j1K.B0m(" up",i4u)];j1K.a3e(4);delete this.colors[j1K.k$A(" dn",i4u)];delete this.colors[i4u];if(!l_u){h4f=616556170;e8k=1979278518;u43=+"2";for(var M1j=1;j1K.m7$(M1j.toString(),M1j.toString().length,69585) !== h4f;M1j++){j1K.i3C(14);u43+=j1K.B0m(2,"2");}if(j1K.b3_(u43.toString(),u43.toString().length,39870) !== e8k){}for(var E6Y in T$0.seriesRenderers){r7w=T$0.seriesRenderers[E6Y];for(var T8S=0;T8S < r7w.seriesParams.length;T8S++){if(r7w.seriesParams[T8S].id == i4u){W8y=!![];break;}W8y=!({});}if(W8y)break;}if(W8y === !({}) || u5c !== null){p0L.deleteSeries(i4u,T$0);};}p0L.deleteYAxisIfUnused(p0L.panels[this.params.panel],this.params.yAxis);p0L.resizeChart();p0L.layout.symbols=p0L.getSymbols({"include-parameters":!!"1","exclude-studies":!0});p0L.changeOccurred("layout");return this;};n4m.Renderer.prototype.modifyRenderer=function(b_W){var f_8,f$x,Y0Z,o2m;M2dNJ.E0w();f_8=this.params;var {stx:B4R}=this;for(var G3L in b_W){f$x="t";f$x+="yp";f$x+="e";Y0Z="bas";Y0Z+="e";Y0Z+="line";o2m=b_W[G3L];switch(G3L){case Y0Z:if(o2m){if(typeof o2m === "object"){this.params.baseline=n4m.ensureDefaults(o2m,n4m.ChartEngine.Chart.prototype.baseline);}B4R.registerBaselineToHelper(this);}else {B4R.removeBaselineFromHelper(this);}break;case f$x:this.params.type=o2m;break;case "style":this.params.style=o2m;break;default:break;}}};n4m.Renderer.prototype.getDependents=function(K_N){var L_B,y0h;L_B=[];for(var w$k in K_N.chart.seriesRenderers){y0h=K_N.chart.seriesRenderers[w$k];if(y0h.params.dependentOf == this.params.name){L_B.push(y0h);}}return L_B;};n4m.Renderer.prototype.undraggable=function(G47){if(this == G47.mainSeriesRenderer){return !0;}M2dNJ.j07();return this.params.dependentOf == G47.mainSeriesRenderer.params.name;};n4m.Renderer.prototype.removeAllSeries=function(E$_){var A7J;if(E$_ || this === this.stx.mainSeriesRenderer){A7J=[];for(var q4z=0;q4z < this.seriesParams.length;q4z++){A7J.push(this.seriesParams[q4z].id);}for(var m6h=0;m6h < A7J.length;m6h++){this.removeSeries(A7J[m6h]);}}this.seriesParams=[];this.colors={};this.stx.deleteYAxisIfUnused(this.stx.panels[this.params.panel],this.params.yAxis);this.stx.resizeChart();M2dNJ.j07();return this;};n4m.Renderer.prototype.getYAxis=function(M_y){var Q_t,N$M;if(this.params){if(this.params.yAxis){Q_t=this.params.yAxis;}else {N$M=M_y.panels[this.params.panel];if(!N$M){return ![];}Q_t=N$M.yAxis;}}else {Q_t=M_y.chart.panel.yAxis;}M2dNJ.E0w();return Q_t;};n4m.Renderer.prototype.ready=function(){this.stx.createDataSet();this.stx.draw();return this;};n4m.Renderer.Lines=function(Z4s){var c9S,a_f,J$I,y04,s9h;c9S="obj";c9S+="ec";c9S+="t";a_f="s";a_f+="t";a_f+="e";a_f+="p";J$I="chan";J$I+="nel";y04="w";y04+="av";y04+="e";this.construct(Z4s);var {params:b4j}=this;if(!b4j.type){b4j.type="line";}if(!b4j.style){s9h="m";s9h+="ou";s9h+="ntain";switch(b4j.type){case s9h:if(b4j.baseline){b4j.style="stx_baseline_delta_mountain";}else if(b4j.colored){b4j.style="stx_colored_mountain_chart";}else {b4j.style="stx_mountain_chart";}break;default:b4j.style="stx_line_chart";}}this.supportsAnimation=!![];if(b4j.type == y04 || b4j.type == J$I){b4j.step=b4j.vertex=b4j.baseline=b4j.colored=!({});this.highLowBars=this.barsHaveWidth=!!({});this.supportsAnimation=![];}else if(b4j.type == a_f){b4j.step=!0;}var {baseline:i3F}=b4j;if(i3F && typeof i3F === c9S){n4m.ensureDefaults(b4j.baseline,n4m.ChartEngine.Chart.prototype.baseline);}};n4m.inheritsFrom(n4m.Renderer.Lines,n4m.Renderer,!({}));n4m.Renderer.Lines.requestNew=function(L01,h$2){var E8m,d1A,m1W,O7K,Y4O,g7f,p5G,l4c;E8m=null;d1A=h$2.step;m1W=h$2.colored;O7K=h$2.baseline;Y4O=h$2.vertex;M2dNJ.j07();for(var G9s="0" ^ 0;G9s < L01.length;G9s++){g7f="s";g7f+="tep";p5G="ch";p5G+="a";p5G+="nne";p5G+="l";l4c=L01[G9s];switch(l4c){case "line":case "mountain":case "wave":case p5G:E8m=l4c;break;case "baseline":O7K=!0;break;case "colored":m1W=!0;break;case g7f:d1A=!0;break;case "vertex":Y4O=!"";break;case "delta":break;default:return null;}}if(E8m === null && !O7K && !d1A){return null;}return new n4m.Renderer.Lines({params:n4m.extend(h$2,{type:E8m,step:d1A,colored:m1W,baseline:O7K,vertex:Y4O})});};n4m.Renderer.Lines.prototype.draw=function(){var r4o,w0g,Q_C,J$T,N_J,W60,F$D,a7y,C3E,p33,G7Q,N8B,r4y;r4o=this.stx;w0g=this.stx.panels[this.params.panel];M2dNJ.j07();Q_C=w0g.chart;J$T={};W60=this.seriesParams;F$D=this.params.colorFunction;for(N_J=0;N_J < W60.length;N_J++){a7y=W60[N_J];if(this.params.colored){C3E="_color";C3E+="_";C3E+="u";C3E+="p";p33=[C3E,"_color_down","_color"];for(var P1z=0;P1z < p33.length;P1z++){G7Q="f";G7Q+="i";G7Q+="l";G7Q+="l";N8B=a7y["border" + p33[P1z]];if(N8B && N8B != "auto"){a7y[G7Q + p33[P1z]]=N8B;};}if(!F$D){F$D=M4D(a7y);}this.params.colorFunction=F$D;}r4y={};if(Q_C.series[a7y.id]){r4y=n4m.clone(Q_C.series[a7y.id].parameters);}J$T[a7y.id]={parameters:n4m.extend(n4m.extend(r4y,this.params),a7y),yValueCache:this.caches[a7y.id]};if(this == r4o.mainSeriesRenderer && Q_C.customChart && Q_C.customChart.colorFunction){J$T[a7y.id].parameters.colorFunction=Q_C.customChart.colorFunction;}}r4o.drawSeries(Q_C,J$T,this.params.yAxis,this);for(N_J in J$T){this.caches[N_J]=J$T[N_J].yValueCache;}function M4D(Y5o){var K0J,J1f,V95,z32;K0J="st";K0J+="x_line_down";J1f=Y5o.fill_color_up || r4o.getCanvasColor("stx_line_up");V95=Y5o.fill_color_down || r4o.getCanvasColor(K0J);z32=Y5o.color || r4o.getCanvasColor("stx_line_chart");M2dNJ.j07();return function(y4M,n_8,O6Q){if(!n_8.iqPrevClose && n_8.iqPrevClose !== 0){return z32;}if(n_8.Close > n_8.iqPrevClose){return J1f;}if(n_8.Close < n_8.iqPrevClose){return V95;}return z32;};}};n4m.Renderer.Lines.prototype.drawIndividualSeries=function(Q5f,q15){var C_x,V4A,x__,h5M,m7b,n89;M2dNJ.j07();C_x="c";C_x+="hanne";C_x+="l";if(q15.invalid){return;}V4A=this.stx;x__=Q5f.context;h5M=null;m7b=q15.colorFunction;n89=V4A.panels[q15.panel] || Q5f.panel;if(typeof m7b == "string"){m7b=n4m.Renderer.colorFunctions[m7b];if(!m7b){return;}}if(q15.vertex){x__.save();x__.lineJoin="bevel";}if(q15.type == "wave"){h5M=V4A.drawWaveChart(n89,q15);}else if(q15.baseline){h5M=V4A.drawBaselineChart(n89,q15);V4A.positionBaselineHandle(this);}else if(q15.type == "mountain"){q15.returnObject=!![];h5M=V4A.drawMountainChart(n89,q15,m7b);}else if(q15.type == C_x){q15.returnObject=!!1;h5M=V4A.drawChannelChart(n89,m7b,q15);}else {q15.returnObject=!!1;h5M=V4A.drawLineChart(n89,q15.style,m7b,q15);}if(q15.vertex){V4A.scatter(n89,{yAxis:q15.yAxis,field:q15.symbol || q15.field,subField:q15.subField,symbol:q15.symbol,color:q15.vertex_color,highlight:q15.highlight});x__.restore();}return h5M;};n4m.Renderer.OHLC=function(Q0Z){var K7T,S2T,X11;K7T="ca";K7T+="ndl";K7T+="e";this.construct(Q0Z);S2T=this.params;if(!S2T.type){S2T.type=K7T;}this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!"1";if(S2T.histogram){X11="ca";X11+="ndle";S2T.type=X11;this.highLowBars=![];S2T.volume=S2T.hollow=!({});}M2dNJ.E0w();if(S2T.type == "bar"){S2T.volume=S2T.hollow=S2T.histogram=![];}if(S2T.type == "candle"){S2T.hlc=S2T.colored=![];}if(S2T.volume){S2T.hollow=!!"1";}};n4m.inheritsFrom(n4m.Renderer.OHLC,n4m.Renderer,!({}));n4m.Renderer.OHLC.requestNew=function(c48,d3m){var m9g,p$m,h0V;m9g=null;p$m=d3m.histogram;for(var Z3i=0;Z3i < c48.length;Z3i++){h0V=c48[Z3i];switch(h0V){case "candle":m9g=h0V;break;case "histogram":p$m=!0;m9g="candle";break;default:return null;}}if(m9g === null){return null;}return new n4m.Renderer.OHLC({params:n4m.extend(d3m,{type:m9g,histogram:p$m})});};n4m.Renderer.OHLC.getChartParts=function(d78,W8g){var N2i,d1j,z3$,b6P,e32,g_m,n38,h0h,B5B,r2M,a6Y,j82,M73;N2i="border_c";N2i+="olor_down";d1j="ca";d1j+="nd";d1j+="le";z3$="ca";z3$+="nd";z3$+="l";z3$+="e";b6P="st";b6P+="x_candle_shadow_";b6P+="down";e32="candl";e32+="e";g_m="bord";g_m+="er_col";g_m+="or";g_m+="_up";n38="c";n38+="andle";h0h="fill_color_eve";h0h+="n";B5B="bo";B5B+="r";B5B+="der_color_u";B5B+="p";r2M="hi";r2M+="stogram";a6Y=8;j82=16;M73=32;return [{type:r2M,drawType:"histogram",style:"stx_histogram_up",condition:a6Y,fill:"fill_color_up",border:B5B,useColorInMap:!![],useBorderStyleProp:!![]},{type:"histogram",drawType:"histogram",style:"stx_histogram_down",condition:j82,fill:"fill_color_down",border:"border_color_down",useColorInMap:!![],useBorderStyleProp:!!1},{type:"histogram",drawType:"histogram",style:"stx_histogram_even",condition:M73,fill:h0h,border:"border_color_even",skipIfPass:!!1,useColorInMap:!0,useBorderStyleProp:!!({})},{type:"candle",drawType:"shadow",style:"stx_candle_shadow",border:"border_color_up"},{type:n38,drawType:"shadow",style:"stx_candle_shadow_up",condition:a6Y,border:g_m},{type:e32,drawType:"shadow",style:b6P,condition:j82,border:"border_color_down"},{type:"candle",drawType:"shadow",style:"stx_candle_shadow_even",condition:M73,border:"border_color_even",skipIfPass:!!({})},{type:z3$,drawType:"candle",style:"stx_candle_up",condition:a6Y,fill:"fill_color_up",border:"border_color_up",useColorInMap:!!({}),useBorderStyleProp:!!"1"},{type:d1j,drawType:"candle",style:"stx_candle_down",condition:j82,fill:"fill_color_down",border:N2i,useColorInMap:!![],useBorderStyleProp:!!({})}];;};n4m.Renderer.OHLC.prototype.draw=function(){M2dNJ.E0w();var C_f,s5S,M8x,r6l,V1$,t47,b7$,V0U;C_f=this.stx;s5S=this.stx.panels[this.params.panel];M8x=s5S.chart;r6l={};t47=this.seriesParams;for(V1$=0;V1$ < t47.length;V1$++){b7$=t47[V1$];V0U={};if(M8x.series[b7$.id]){V0U=n4m.clone(M8x.series[b7$.id].parameters);}r6l[b7$.id]={parameters:n4m.extend(n4m.extend(V0U,this.params),b7$)};if(this == C_f.mainSeriesRenderer && M8x.customChart && M8x.customChart.colorFunction){r6l[b7$.id].parameters.colorFunction=M8x.customChart.colorFunction;}}C_f.drawSeries(M8x,r6l,this.params.yAxis,this);for(V1$ in r6l){if(r6l[V1$].yValueCache){this.caches[V1$]=r6l[V1$].yValueCache;}}};n4m.Renderer.OHLC.prototype.getColor=function(F4H,t6R,B8e,p71,t5Y,P2R){var U6Y,U8m,o9E,V6u,I2M;U6Y=P2R || B8e.color;U8m=this.params.yAxis || t6R.yAxis;if(p71){U6Y=P2R || B8e.borderLeftColor || B8e["border-left-color"];if(!U6Y){return null;}}if(!t5Y){return U6Y;}o9E=F4H.pixelFromTransformedValue(U8m.highValue,t6R);if(isNaN(o9E)){o9E=0;}V6u=B8e.backgroundColor;if(U6Y && !n4m.isTransparent(U6Y)){M2dNJ.a3e(82);I2M=F4H.chart.context.createLinearGradient(M2dNJ.B0m(0,"0"),o9E,0,2 * U8m[U8m.flipped?"top":"bottom"] - o9E);I2M.addColorStop(0,U6Y);I2M.addColorStop(1,V6u);return I2M;}return V6u;};n4m.Renderer.OHLC.prototype.drawIndividualSeries=function(H4i,U7J){var x14=M2dNJ;var R8b,i$1,o9j,Z4m,m4G,m4f,N3D,t$T,T6C,s7Q,W5r,V9l,s0G,Q4O,v6P,J9b,n5n,N1i,B93,f$o,T0O,b0_,o6M,R1z,I32,l2x,A4w,f7M,R13,R$V,u5P,O_P,c7B,b73,P0z,x55,o0A,v3t,N7G,W4b;if(U7J.invalid){return;}R8b=this.stx;i$1=H4i.context;o9j=U7J.colorFunction;Z4m=R8b.panels[U7J.panel] || H4i.panel;if(typeof o9j == "string"){o9j=n4m.Renderer.colorFunctions[o9j];if(!o9j){return;}}m4G=R8b.layout.candleWidth - H4i.tmpWidth <= 2 && H4i.tmpWidth <= 3;m4f=1;N3D=2;t$T=4;T6C=+"8";s7Q=16;W5r=32;if(!H4i.state.chartType){H4i.state.chartType={};}V9l=H4i.state.chartType.pass={};s0G=R8b.colorByCandleDirection;if(U7J.colorBasis){s0G=U7J.colorBasis == "open";}Q4O=U7J.histogram;v6P=U7J.type;J9b=U7J.hollow;n5n=R8b.noWicksOnCandles[v6P];R8b.startClip(Z4m.name);N1i=null;B93={colors:[],cache:[]};f$o=[];if(o9j){x14.i3C(82);T0O=-x14.k$A(0,"524872068");b0_=+"324903121";x14.a3e(82);o6M=x14.B0m(64,"2");for(var A03=1;x14.b3_(A03.toString(),A03.toString().length,"82454" ^ 0) !== T0O;A03++){R1z={isHistogram:Q4O,field:U7J.field,yAxis:U7J.yAxis,isVolume:U7J.volume,highlight:U7J.highlight};o6M+=2;}if(x14.m7$(o6M.toString(),o6M.toString().length,20251) !== b0_){R1z={isHistogram:Q4O,field:U7J.field,yAxis:U7J.yAxis,isVolume:U7J.volume,highlight:U7J.highlight};}R1z={isHistogram:Q4O,field:U7J.field,yAxis:U7J.yAxis,isVolume:U7J.volume,highlight:U7J.highlight};if(!Q4O && v6P == "bar"){I32="h";I32+="lc";R1z.type=U7J.hlc?I32:"bar";B93=R8b.drawBarChart(Z4m,"stx_bar_chart",o9j,R1z);}else {if(v6P == "candle" && !n5n){R8b.drawShadows(Z4m,o9j,R1z);}B93=R8b.drawCandles(Z4m,o9j,R1z);R1z.isOutline=!!1;if(J9b || !m4G){R8b.drawCandles(Z4m,o9j,R1z);};}}else {l2x=Q4O && U7J.gradient !== ![];A4w=n4m.Renderer.OHLC.getChartParts(U7J.style,s0G);for(var X7p=0;X7p < A4w.length;X7p++){f7M="cand";f7M+="le";R13="b";R13+="a";R13+="r";R$V=A4w[X7p];if(R$V.skipIfPass && !V9l.even)continue;else if(Q4O){if(R$V.type != "histogram")continue;}else if(v6P == R13){if(R$V.type != "bar")continue;else if(U7J.colored && !R$V.condition)continue;else if(!U7J.colored && R$V.condition)continue;}else if(J9b){if(R$V.type != "hollow")continue;else if(R$V.drawType == "shadow" && n5n)continue;}else if(v6P == "candle"){if(R$V.type != "candle")continue;else if(R$V.drawType == "shadow"){u5P="st";u5P+="x_candle_shadow_up";if(n5n)continue;O_P=U7J.border_color_up || R8b.getCanvasColor(u5P);c7B=U7J.border_color_down || R8b.getCanvasColor("stx_candle_shadow_down");b73=U7J.border_color_even || R8b.getCanvasColor("stx_candle_shadow_even");if(!n4m.colorsEqual(O_P,c7B) || !n4m.colorsEqual(O_P,b73) || !n4m.colorsEqual(O_P,R8b.defaultColor)){if(!R$V.condition)continue;}else if(R$V.condition)continue;}}else continue;P0z=R8b.canvasStyle(R$V.style);x55=this.getColor(R8b,Z4m,P0z,!"1",!"1",U7J[R$V.fill]);o0A=this.getColor(R8b,Z4m,P0z,!!"",l2x,U7J[R$V.fill]);v3t=this.getColor(R8b,Z4m,P0z,R$V.useBorderStyleProp && !m4G,l2x,U7J[R$V.border]);if(R$V.drawType == f7M){if(R$V.type == "hollow"){N7G="tr";N7G+="ansparent";if(!n4m.isTransparent(o0A) && n4m.colorsEqual(v3t,o0A)){v3t=R$V.useColorInMap?N7G:o0A;}if(!R$V.useColorInMap){o0A=R8b.containerColor;}}else if(R$V.type == "candle"){if(m4G){if(n4m.isTransparent(o0A)){o0A=v3t;}else {v3t=o0A;};}}}i$1.globalAlpha=U7J.opacity;f$o.push(R8b.drawBarTypeChartInner({fillColor:o0A,borderColor:v3t,condition:R$V.condition,style:R$V.style,type:v6P == "bar" && U7J.hlc?"hlc":R$V.drawType,panel:Z4m,field:U7J.field,yAxis:U7J.yAxis,volume:U7J.volume && U7J.hollow,highlight:U7J.highlight}));if(!N1i){N1i={};}if(R$V.useColorInMap){N1i[x55]=1;}}}R8b.endClip();for(var A33 in N1i){if(!U7J.hollow || !n4m.equals(A33,R8b.containerColor)){B93.colors.push(A33);}}for(A33=+"0";A33 < f$o.length;A33++){for(var P82=0;P82 < f$o[A33].cache.length;P82++){W4b=f$o[A33].cache[P82];if(W4b || W4b === ("0" ^ 0)){B93.cache[P82]=W4b;}}}return B93;};n4m.Renderer.Candles=function(J2X){M2dNJ.j07();var i80;this.construct(J2X);i80=this.params;i80.type="candle";this.highLowBars=this.barsHaveWidth=this.standaloneBars=!![];i80.hlc=i80.colored=i80.histogram=![];if(i80.volume){i80.hollow=!!1;}};n4m.inheritsFrom(n4m.Renderer.Candles,n4m.Renderer.OHLC,![]);n4m.Renderer.SimpleHistogram=function(g5Q){var Z$8;this.construct(g5Q);Z$8=this.params;Z$8.type="candle";Z$8.histogram=!!"1";this.barsHaveWidth=this.standaloneBars=!![];this.highLowBars=!1;M2dNJ.E0w();Z$8.hlc=Z$8.colored=Z$8.hollow=Z$8.volume=!"1";};n4m.inheritsFrom(n4m.Renderer.SimpleHistogram,n4m.Renderer.Candles,!1);};L=R3_=>{var V51;V51=R3_.CIQ;V51.capitalize=function(Q8P){M2dNJ.j07();if(!Q8P){return "";}M2dNJ.i3C(112);var H1l=M2dNJ.B0m(36,0,7,16,14);return Q8P.charAt(0).toUpperCase() + Q8P.slice(H1l);};V51.camelCaseRegExp=/-([a-z])/g;V51.makeCamelCase=function(p68){M2dNJ.E0w();return p68.replace(V51.camelCaseRegExp,function(B6q){return B6q[+"1"].toUpperCase();});};V51.uniqueID=function(f7b){var Y0Q,N7m,Y6I,r0L,Z7e,l7V;if(f7b){Y0Q="fu";Y0Q+="nction";N7m="unde";N7m+="fi";N7m+="ne";N7m+="d";Y6I=new Date().getTime();if(typeof window !== N7m && window.performance && typeof window.performance.now === Y0Q){Y6I+=window.performance.now();;}r0L=("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx").replace(/[xy]/g,function(Z7A){var N29=M2dNJ;var u0Z;N29.i3C(29);var c9t=N29.B0m(1,1,15);N29.a3e(113);var F03=N29.B0m(4,19,9,8,272);N29.j07();u0Z=(Y6I + Math.random() * c9t) % F03 | ("0" | 0);N29.i3C(40);Y6I=Math.floor(N29.B0m(Y6I,16));return (Z7A == (2.95 >= +"665.89"?!"":"x")?u0Z:u0Z & 0x3 | "0x8" >> 32).toString(16);});return r0L;}Z7e=new Date();M2dNJ.j07();l7V=Z7e.getTime().toString(36);l7V+=Math.floor(Math.random() * Math.pow(36,+"2")).toString(36);return l7V.toUpperCase();};};E=y72=>{;};K=C1j=>{var p6G;p6G=C1j.CIQ;p6G.getHostName=function(z3c){M2dNJ.j07();try{return z3c.match(/:\/\/(.[^/]+)/)[1];}catch(A3i){return "";}};p6G.qs=function(I1B){var Z5Q,i0V,Q3$,W50;Z5Q={};if(!I1B){I1B=window.location.search.substring(1);}i0V=I1B.split(+"1362" === 360.29?7150 >= 82.97?(1165,7324) <= 4040?(0x1daa,"S"):0x187e:"c":"&");for(var I2d=0;I2d < i0V.length;I2d++){Q3$=i0V[I2d].indexOf(26.57 <= ("914.01" * 1,3110)?"=":"649.96" - 0);if(Q3$ > 0){W50=i0V[I2d].substring(0,Q3$);M2dNJ.a3e(4);Z5Q[W50]=i0V[I2d].substring(M2dNJ.k$A(1,Q3$));}else {W50=i0V[I2d];Z5Q[W50]=null;}}return Z5Q;};p6G.postAjax=function(n2u,Q9L,t1K,L0y,y2b){var S8A=M2dNJ;var U6X,a28,i9m,Q4N,B7R,V6_,D3K,E0u,h4t,r5B;U6X="Conte";function L$1(h9H){var a3D,X2b,Z7h,B17;a3D={};if(!n2u.responseHeaders){return;}X2b=h9H.getAllResponseHeaders();Z7h=X2b.split((6810,471) !== +"571.17"?(2700,+"5530") != 6104?6669 < 7060?"\n":7.87e+3:(0xe6d,2.32e+3):!1);for(var L4r=0;L4r < Z7h.length;L4r++){B17=Z7h[L4r].split(":");while(B17[1] && B17[1].charAt(0) == ((9031,"2382" >> 0) > (3255,9860)?(431.11,8.34e+2):" ")){B17[1]=B17[1].substring(1);}if(B17[+"0"] !== ""){a3D[B17.shift()]=B17.join(3743 === (841,7797)?1.99e+3:":");}}return a3D;}U6X+="nt";S8A.j07();U6X+="-Typ";U6X+="e";a28="P";a28+="OS";a28+="T";if(typeof n2u == "string"){n2u={url:n2u,payload:Q9L,cb:t1K,contentType:L0y,noEpoch:y2b,method:null,responseHeaders:![]};}i9m=n2u.url;Q4N=n2u.cb;B7R=n2u.payload;if(!Q4N){Q4N=function(){};}if(!n2u.ungovernable){if(p6G.Extras && p6G.Extras.RequestLimiter && p6G.Extras.RequestLimiter.hitRequestLimit(i9m)){Q4N(429,null,{});return;}}V6_=new XMLHttpRequest();if(!V6_){return !({});}D3K=new Date();if(!n2u.noEpoch){E0u="?ciqrando";E0u+="m=";if(i9m.indexOf(7130 <= (408.06,323.19)?("9980" | 8) <= "6070" >> 64?(!!0,!({})):2.45e+3:"?") == -1){i9m+=E0u + D3K.getTime();}else {i9m+="&ciqrandom=" + D3K.getTime();}}h4t=n2u.method;r5B=n2u.headers;if(!h4t){h4t=B7R?a28:"GET";}V6_.open(h4t,i9m,!!1);if(!n2u.contentType){n2u.contentType="application/x-www-form-urlencoded";}if(B7R){V6_.setRequestHeader(U6X,n2u.contentType);}if(r5B){for(var b3y in r5B){V6_.setRequestHeader(b3y,r5B[b3y]);}}if(n2u.timeout){V6_.timeout=n2u.timeout;;}V6_.ontimeout=function(){S8A.E0w();Q4N(408,null,{});};V6_.onload=function(){if(this.status === "0" << 0){this.status=9770 != +"288.73"?"0":!!({});}else if(!this.status){this.status=200;}S8A.j07();Q4N(this.status,this.responseText,L$1(this));};V6_.onerror=function(){S8A.j07();Q4N("0",null,{});};try{V6_.send(B7R);}catch(V__){Q4N("0",V__,{});}return !!({});};p6G.loadUI=function(a_L,F5L,C5F){var x1h=M2dNJ;var Z7Q,I24,K92,Y0v,L_4,l6V;Z7Q="\"";Z7Q+="]";if(!F5L || typeof F5L == "function"){C5F=F5L;F5L=document.body;}x1h.i3C(50);I24=document.querySelector(x1h.k$A(a_L,'iframe[original-url="',Z7Q));K92=function(){var D2q,D4C,p81,g8q,U5l;D2q=null;try{D2q=this.contentDocument;}catch(s2Q){return C5F(s2Q);}if(D2q && !D2q.title){D4C="d";D4C+="iv";p81=D2q.body.innerHTML;g8q=document.createElement(D4C);p6G.innerHTML(g8q,p81);for(var i$i=0;i$i < g8q.children.length;i$i++){U5l=g8q.children[i$i].cloneNode(!!({}));F5L.appendChild(U5l);}C5F(null);}else {C5F(new Error("iFrame not found or document has a title"));}};if(I24){Y0v=null;try{Y0v=I24.contentDocument;}catch(E7g){return C5F(E7g);}if(Y0v.readyState === "complete" && Y0v.location && Y0v.location.href !== "about:blank"){K92.call(I24);}else {I24.addEventListener("load",K92);}}else {L_4="loa";L_4+="d";l6V="ifr";l6V+="a";l6V+="me";I24=document.createElement(l6V);I24.setAttribute("original-url",a_L);x1h.a3e(114);var r5y=x1h.B0m(10,11,17,19);x1h.a3e(4);var J$F=x1h.B0m(11,4429);x1h.i3C(4);var P_u=x1h.k$A(11,714);x1h.i3C(115);var F$z=x1h.k$A(1446,12,5765,7);x1h.i3C(116);var V3G=x1h.B0m(1,433,3064,3,11);x1h.a3e(33);var B8u=x1h.k$A(256,14,5,12807);x1h.i3C(101);var w3Q=x1h.B0m(18,10,297,17535,3);x1h.a3e(117);var M1Q=x1h.B0m(2,549,10,17,4967);x1h.a3e(4);var r0O=x1h.k$A(7232,402);x1h.a3e(96);var t8F=x1h.k$A(1414,17,10,712,1375);x1h.a3e(118);var z0K=x1h.k$A(4,1379,197,1,9653);I24.src=a_L + (a_L.indexOf("?") === r5y?"?":(J$F,+"2840") === 287.24?P_u:(F$z,V3G) >= B8u?(w3Q,!!"1"):(M1Q,r0O) == t8F?(+"1.27e+3",z0K):"&") + p6G.uniqueID();I24.hidden=!!({});I24.addEventListener(L_4,K92);document.body.appendChild(I24);}};p6G.loadScript=function(j_W,k4r,g0V){var D1l=M2dNJ;D1l.j07();var t9N,O_y,N9F,P5G;if(!p6G.loadedScripts){p6G.loadedScripts={};}if(p6G.loadedScripts[j_W]){if(k4r){k4r();}return;}t9N=document.createElement("SCRIPT");if(g0V){O_y="use-";O_y+="credentials";t9N.type="module";t9N.crossOrigin=O_y;}else {t9N.async=!![];}t9N.onload=function(){p6G.loadedScripts[j_W]=!!({});if(k4r){k4r();}};N9F=j_W;if(N9F.indexOf((5100,1988) > 3280?(+"213",!""):"?") == -1){N9F=N9F + "?" + Date.now();}else {D1l.i3C(25);var I2U=D1l.k$A(5,220,896);D1l.i3C(1);var P0s=D1l.k$A(23650,25800);D1l.a3e(4);var r2l=D1l.k$A(670,37);D1l.i3C(29);var a8n=D1l.B0m(438,438,2629);D1l.i3C(119);var J$z=D1l.k$A(8,7652,1091,2,19);D1l.a3e(50);var x4b=D1l.B0m(8,9054,8);D1l.i3C(29);var F$f=D1l.B0m(2240,2240,6719);N9F=N9F + (I2U !== P0s?(r2l,a8n) < J$z?"&":x4b > F$f?833.24:(854.11,!1):(+"3.58e+3",907.35)) + Date.now();}t9N.src=N9F;P5G=document.getElementsByTagName("script")[0];if(!P5G){document.body.append(t9N);}else {P5G.parentNode.insertBefore(t9N,P5G.nextSibling);}};p6G.loadStylesheet=function(O$d,o5P){var w_r=M2dNJ;var v41,E73,U28,s8m,z$q,Y$h,G15,e2w,d0K;v41="l";v41+="i";v41+="n";v41+="k";E73="sty";E73+="l";E73+="esh";E73+="eet";U28=document.createElement("link");U28.rel=E73;s8m=1162378523;z$q=-+"736705629";Y$h=2;for(var x5J=+"1";w_r.b3_(x5J.toString(),x5J.toString().length,73981) !== s8m;x5J++){U28.type="text/css";U28.media="screen";Y$h+=2;}if(w_r.m7$(Y$h.toString(),Y$h.toString().length,87305) !== z$q){G15="te";G15+="xt/c";G15+="ss";U28.type=G15;U28.media="text/css";}w_r.a3e(34);var u3x=w_r.B0m(9,6,8875);w_r.j07();w_r.i3C(8);var t_T=w_r.k$A(30872,33236,10);w_r.a3e(1);var c2w=w_r.k$A(100422,106001);w_r.i3C(4);var p10=w_r.B0m(15,5025);w_r.i3C(7);var j2t=w_r.B0m(2342,28,12);w_r.a3e(1);var O$L=w_r.k$A(9,10);w_r.a3e(120);var Y5$=w_r.B0m(2320,13,2738,20,7);w_r.i3C(50);var X8A=w_r.k$A(8,5,51);w_r.a3e(66);var i7a=w_r.k$A(2042,2,17,10,1016);w_r.i3C(50);var H4s=w_r.B0m(16,52,972);w_r.a3e(78);var C_O=w_r.B0m(14,15,3768,2,508);w_r.i3C(33);var l6o=w_r.k$A(3734,8,19,563828);U28.href=O$d + (O$d.indexOf((+"668",u3x) >= (t_T,c2w)?"?":(p10,j2t) <= "6680" * O$L?(+"2.79e+3",Y5$):825.92) === -("1" << X8A)?"?":(i7a,289) <= (H4s,C_O)?"&":(949.57,+"5995") <= (146.93,l6o)?"0x20dc" ^ 0:(870.48,"0xafc" - 0)) + Date.now();U28.onload=function(){w_r.j07();if(this.loaded){return;}this.loaded=!0;if(o5P){o5P();}};e2w=document.getElementsByTagName(v41);w_r.i3C(8);var v5I=w_r.B0m(20,19,2);d0K=e2w[e2w.length - "1" * v5I];if(!d0K){document.head.append(U28);}else {d0K.parentNode.insertBefore(U28,d0K.nextSibling);}};p6G.loadWidget=function(t44,Z3T,y$b,U1S){var x3H=M2dNJ;if(!Z3T || typeof Z3T == "function"){y$b=Z3T;Z3T=document.body;}x3H.i3C(4);p6G.loadStylesheet(x3H.B0m(".css",t44),function(){var R6w;R6w=".h";R6w+="tml";x3H.i3C(4);p6G.loadUI(x3H.k$A(R6w,t44),Z3T,function(N_T){var v6S;v6S=".";v6S+="j";v6S+="s";if(N_T){y$b(N_T);}else {x3H.a3e(4);p6G.loadScript(x3H.B0m(v6S,t44),y$b,U1S);}});});};p6G.waitForPlugins=function(e86,O3f){var J0h,a2l,y9k,q3j;J0h=+"0";a2l=e86.length;if(!a2l){O3f();return;}for(var Y33=0;Y33 < a2l;Y33++){y9k="cq-" + e86[Y33];q3j=document.getElementsByTagName(y9k)[0];if(q3j && q3j.hasAttribute("loaded")){J0h++;}}if(a2l !== J0h){return setTimeout(function(){p6G.waitForPlugins(e86,O3f);},0);}O3f();};p6G.addInternalStylesheet=function(I9r,w6q = ""){var a6J,O7i,n3x,F4_;a6J="text";a6J+="/";a6J+="css";O7i="t";O7i+="y";O7i+="p";O7i+="e";n3x="s";n3x+="t";n3x+="yle";if(!I9r){return;}if(I9r.default){I9r=I9r.default;}if(typeof I9r !== "string"){return;}if(w6q && document.querySelector('style[path="' + w6q + '"]')){return;}F4_=document.createElement(n3x);F4_.setAttribute(O7i,a6J);F4_.setAttribute("path",w6q);F4_.innerText=I9r;document.head.appendChild(F4_);};};A=N$k=>{var u1N=M2dNJ;var h__;u1N.j07();h__=N$k.CIQ;h__.ChartEngine.prototype.registerHTMLElements=function(){var A9H,E3p,o7_,T4T,O9W,z_Z,u85,W2A;A9H=this.chart.container;for(var a2b in h__.ChartEngine.htmlControls){if(typeof this.chart[a2b] == "undefined" && typeof this.controls[a2b] == "undefined"){E3p="c";E3p+="har";E3p+="tControls";if(!this.allowZoom && a2b == E3p)continue;u1N.i3C(4);o7_=A9H.querySelector(u1N.B0m(a2b,("6170" >> 0,542.76) >= (8909,604.36)?+"2.74e+2":"."));if(o7_){this.chart[a2b]=o7_;this.controls[a2b]=o7_;}else {T4T=h__.ChartEngine.htmlControls[a2b];if(!T4T)continue;O9W=document.createElement("DIV");O9W.innerHTML=T4T;o7_=O9W.firstChild;A9H.appendChild(o7_);this.chart[a2b]=o7_;this.controls[a2b]=o7_;o7_.classList.add(a2b);}}}var {chartControls:q11, home:t6o}=this.controls;if(q11){z_Z=".s";z_Z+="tx-zoom";z_Z+="-ou";z_Z+="t";u85=q11.querySelector(".stx-zoom-in");W2A=q11.querySelector(z_Z);h__.safeClickTouch(u85,(function(O$a){return function(h8f){if(O$a.allowZoom){O$a.zoomIn(h8f);}u1N.E0w();h8f.stopPropagation();};})(this));h__.safeClickTouch(W2A,(function(N5B){return function(n7k){if(N5B.allowZoom){N5B.zoomOut(n7k);}n7k.stopPropagation();};})(this));if(!h__.touchDevice){this.makeModal(u85);this.makeModal(W2A);}}if(t6o){h__.safeClickTouch(t6o,(function(Z$G){return function(e7l){e7l.stopPropagation();if(!Z$G.isHistoricalMode()){Z$G.home({animate:!!({})});return;}delete Z$G.layout.range;u1N.j07();Z$G.loadChart(Z$G.chart.symbol,function(){u1N.j07();Z$G.home({animate:!1});});};})(this));if(!h__.touchDevice){this.makeModal(t6o);}}};h__.ChartEngine.prototype.home=function(h3E){var m$v,K3T,v1g,y6n,J40,O69,h_e,j$O;m$v="undefine";m$v+="d";this.swipe.amplitude=0;K3T=this.layout;if(typeof h3E != "object"){h3E={maintainWhitespace:h3E};}if(typeof h3E.maintainWhitespace == m$v){h3E.maintainWhitespace=!!1;}this.cancelTouchSingleClick=!![];if(!this.chart.dataSet || !this.chart.dataSet.length){this.draw();return;}this.micropixels=0;v1g=Math.floor(this.chart.width / K3T.candleWidth);function y6H(q4o,m0n,s81){return function(){u1N.j07();C08(q4o);m0n.scroll=s81;q4o.draw();};}for(var l5D in this.charts){y6n=this.charts[l5D];if(h3E.chart && h3E.chart != y6n)continue;J40=+"0";if(h3E.maintainWhitespace && this.preferences.whitespace >= 0){J40=this.preferences.whitespace;}if(h3E.whitespace || h3E.whitespace === 0){J40=h3E.whitespace;}O69=this.getLabelOffsetInPixels(y6n,K3T.chartType);if(O69 > J40){J40=O69;}h_e=Math.min(v1g,y6n.dataSet.length);if(this.chart.allowScrollPast){h_e=v1g;}this.micropixels=this.chart.width - h_e * K3T.candleWidth - J40;this.preferences.whitespace=J40;while(this.micropixels > K3T.candleWidth){h_e++;this.micropixels-=K3T.candleWidth;}while(this.micropixels < 0){h_e--;this.micropixels+=K3T.candleWidth;}this.micropixels-=K3T.candleWidth;h_e++;if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){u1N.a3e(0);var T1T=u1N.B0m(17,7,121);this.micropixels+=K3T.candleWidth / T1T;}if(h3E.animate){j$O=this;this.scrollTo(y6n,h_e,y6H(j$O,y6n,h_e));}else {y6n.scroll=h_e;C08(this);}}this.draw();function C08(T36){var s0_;for(var v4n in T36.panels){s0_=T36.panels[v4n].yaxisLHS.concat(T36.panels[v4n].yaxisRHS);for(var s9i=0;s9i < s0_.length;s9i++){T36.calculateYAxisMargins(s0_[s9i]);}}}};h__.ChartEngine.prototype.headsUpHR=function(){var c1n,F9R,A1Z,U_t,T9y;if(this.runPrepend("headsUpHR",arguments)){return;}c1n=this.currentPanel;if(!c1n){return;}F9R=c1n.chart;this.updateFloatHRLabel(c1n);A1Z=this.controls.floatDate;if(A1Z && !F9R.xAxis.noDraw){U_t=this.barFromPixel(this.cx);T9y=F9R.xaxis[U_t];if(T9y && T9y.DT){y7P(h__.displayableDate(this,F9R,T9y.DT));}else if(T9y && T9y.index){y7P(T9y.index);}else {y7P("");;}}this.runAppend("headsUpHR",arguments);u1N.j07();function y7P(R60){h__.efficientDOMUpdate(A1Z,"innerHTML",R60);}};h__.ChartEngine.prototype.modalBegin=function(){this.openDialog="modal";u1N.j07();this.undisplayCrosshairs();};h__.ChartEngine.prototype.modalEnd=function(){this.cancelTouchSingleClick=!"";this.openDialog="";this.doDisplayCrosshairs();};h__.ChartEngine.prototype.makeModal=function(I$G){u1N.j07();var r2r;r2r=this;I$G.onmouseover=function(g8U){r2r.modalBegin();};I$G.onmouseout=function(L4M){r2r.modalEnd();};};h__.ChartEngine.prototype.updateChartAccessories=function(){var g6i,d7U,g2p,o_V,W55,J4j,r7x,j4w;if(this.accessoryTimer !== null){clearTimeout(this.accessoryTimer);}if(!h__.ChartEngine.drawingLine && h__.touchDevice){if(new Date().getTime() - this.lastAccessoryUpdate < "100" - 0){this.accessoryTimer=setTimeout((function(G3q){return function(){u1N.E0w();G3q.updateChartAccessories();};})(this),+"10");return;}}if(!this.chart.dataSet){return;}if(this.runPrepend("updateChartAccessories",arguments)){return;}this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();g6i=this.controls.floatDate;if(g6i){d7U=this.currentPanel;if(!d7U){d7U=this.chart.panel;}if(d7U){g2p="bot";g2p+="t";g2p+="om";o_V="p";o_V+="x";W55=d7U.chart;J4j=this.xAxisAsFooter === !""?0:this.chart.canvasHeight - d7U.chart.bottom;u1N.i3C(4);var n0w=u1N.B0m(2,0);r7x=g6i.offsetWidth / n0w - 0.5;j4w=this.pixelFromTick(this.crosshairTick,W55) - r7x;if(j4w < 0){u1N.i3C(82);j4w=u1N.B0m(32,"0");}else if(j4w > this.width - 2 * r7x - ("1" - 0)){u1N.a3e(21);var E8Y=u1N.k$A(0,9,11,19,19);j4w=this.width - E8Y * r7x - ("1" ^ 0);}h__.efficientDOMUpdate(g6i.style,"left",j4w + o_V);h__.efficientDOMUpdate(g6i.style,g2p,J4j + "px");}}this.positionCrosshairsAtPointer();this.headsUpHR();this.runAppend("updateChartAccessories",arguments);};h__.ChartEngine.prototype.positionSticky=function(M9a){var y5N,z77,O9b,W1Y;y5N="p";y5N+="x";z77="p";z77+="x";O9b=Math.max(this.cy - M9a.offsetHeight - ("60" >> 32),0);W1Y=Math.min(this.chart.canvasWidth - (this.cx - 50),this.chart.canvasWidth - M9a.offsetWidth);u1N.i3C(4);M9a.style.top=u1N.B0m(z77,O9b);u1N.i3C(4);M9a.style.right=u1N.B0m(y5N,W1Y);};h__.ChartEngine.prototype.displaySticky=function(D4O){var r9i,E1E,x9i,q6U,Z7m,g_Y,t7c,S2t,c3w,l1u,E5W,g__,t1Z,I70,C7Z,U1L,N92,e8t,S_G,m0K,U9F,R84,M17,n9h,H9M,c9Y,w6f,b_Z,x76,J0z,U63,H3a;r9i=".s";r9i+="tickyLongPressTex";r9i+="t";E1E=this.controls.mSticky;if(!E1E){return;}x9i=E1E.querySelector(".mStickyInterior");if(!x9i){return;}q6U=E1E.querySelector(".overlayTrashCan");Z7m=E1E.querySelector(".overlayEdit");g_Y=E1E.querySelector(".mouseDeleteInstructions");t7c=E1E.querySelector(r9i);g_Y.classList.remove("no_edit");if(!D4O || typeof D4O != "object"){D4O={message:arguments[0],backgroundColor:arguments[1],forceShow:arguments[2],noDelete:arguments[3],type:arguments[4]};}S2t=D4O.message;c3w=D4O.backgroundColor;l1u=D4O.forceShow;E5W=D4O.noDelete;g__=D4O.noEdit;t1Z=D4O.type;if(!l1u && !S2t){I70="n";I70+="on";I70+="e";x9i.innerHTML="";E1E.style.display="none";if(q6U){q6U.style.display="none";}if(Z7m){Z7m.style.display="none";}if(g_Y){g_Y.style.display=I70;}if(t7c){t7c.style.display="none";}}else {C7Z=".mStickyRig";C7Z+="htC";C7Z+="lick";if(!S2t){S2t="";}U1L=this.defaultColor;if(c3w == "auto"){c3w=U1L;}if(l1u && !S2t){N92="n";N92+="one";x9i.style.backgroundColor="";x9i.style.color="";x9i.style.display=N92;}else if(c3w){e8t="inl";e8t+="ine-blo";e8t+="ck";x9i.style.backgroundColor=c3w;x9i.style.color=h__.isTransparent(c3w)?U1L:h__.chooseForegroundColor(c3w);x9i.style.display=e8t;}else {x9i.style.backgroundColor="";x9i.style.color="";x9i.style.display="inline-block";}x9i.innerHTML=S2t;S_G=E1E.querySelector(C7Z);S_G.className="mStickyRightClick";if(t1Z){u1N.a3e(4);S_G.classList.add(u1N.B0m(t1Z,"rightclick_"));}S_G.style.display="";E1E.style.display="inline-block";m0K=this.highlightedDraggable;if(!m0K || m0K && m0K.undraggable && m0K.undraggable(this)){U9F="n";U9F+="o";U9F+="ne";t7c.style.display=U9F;}if(E5W || this.bypassRightClick === !!"1" || this.bypassRightClick[t1Z]){S_G.style.display="none";}else if(this.highlightViaTap || this.touches.length){R84="h";R84+="i";R84+="de";M17="rem";M17+="o";M17+="ve";n9h="n";n9h+="o";n9h+="ne";if(q6U){q6U.style.display="inline-block";}if(Z7m && !g__){Z7m.style.display="inline-block";}if(g_Y){g_Y.style.display="none";}if(t7c){t7c.style.display=n9h;}E1E.classList[S2t === ""?"add":M17](R84);}else {if(g__){g_Y.classList.add("no_edit");}if(g_Y){g_Y.style.display="block";}if(t7c){H9M=-1311215396;c9Y=-70217861;w6f=2;for(var O_j=1;u1N.b3_(O_j.toString(),O_j.toString().length,85165) !== H9M;O_j++){t7c.style.display="none";b_Z=this.preferences.dragging;w6f+=2;}if(u1N.m7$(w6f.toString(),w6f.toString().length,55959) !== c9Y){t7c.style.display="";b_Z=this.preferences.dragging;}if(b_Z && D4O.panel && !D4O.panel.noDrag){x76="bloc";x76+="k";J0z="ser";J0z+="i";J0z+="es";if((b_Z === !![] || b_Z.study) && t1Z == "study"){t7c.style.display="block";}else if((b_Z === !!"1" || b_Z.series) && t1Z == J0z){t7c.style.display=x76;}}}}U63=t1Z || "default";E1E.setAttribute("cq-sticky-type",U63);H3a=D4O.positioner || this.positionSticky;H3a.call(this,E1E);}};h__.ChartEngine.prototype.displayNotification=function(u$d,y0E,W69 = {}){var j4q,Q0B,R41,f9S,a5_,B3J;j4q=".me";j4q+="ssage";if(!this.controls.notificationTray){return;}var {callback:N2W, dismissalListeners:s5$}=W69;Q0B=this.controls.notificationTray;R41=Q0B.querySelector("template").content.cloneNode(!!"1");f9S=R41.firstElementChild;f9S.className=u$d;f9S.querySelector(j4q).textContent=y0E;if(N2W){a5_="t";a5_+="o";a5_+="uchend";B3J=window.PointerEvent?"pointerup":a5_;f9S.handler=f9S.addEventListener(B3J,N2W);}if(s5$){f9S.listeners={};s5$.forEach(D$e=>{u1N.E0w();f9S.listeners[u$d]=this.addEventListener(D$e.type,D$e.callback);});}this.makeModal(f9S);u1N.E0w();Q0B.appendChild(f9S);};h__.ChartEngine.prototype.removeNotification=function(t0W){var J9M,b45;if(!this.controls.notificationTray){return;}J9M=this.controls.notificationTray;b45=J9M.querySelector(`.${t0W}`);if(b45){if(b45.handler){b45.removeEventListener(b45.handler);}if(b45.listeners){for(var s5Y in b45.listeners){this.removeEventListener(b45.listeners[s5Y]);}}this.modalEnd();J9M.removeChild(b45);}};h__.ChartEngine.prototype.setMeasure=function(y1i,g$f,E_l,y7H,S8n,M$P){var m__,F4y,g36,u0s,J1z,G8Z,q$K,b6D,i5l,N$E,e$5,D8F,b4S,z6T,w3K,Y75;m__=".";m__+="mMeasu";m__+="r";m__+="e";F4y="s";F4y+="e";F4y+="tMeasure";if(this.runPrepend(F4y,arguments)){return;}g36=(this.drawingContainer || document).querySelector(m__);u0s="";if(!y1i && y1i !== 0){J1z=-2113020364;G8Z=-+"1060955309";u1N.a3e(38);q$K=u1N.k$A("2",1);for(var R5d=1;u1N.m7$(R5d.toString(),R5d.toString().length,64479) !== J1z;R5d++){if(~this.anyHighlighted || this.currentVectorParameters.vectorType !== ""){this.clearMeasure();}q$K+=2;}if(u1N.m7$(q$K.toString(),q$K.toString().length,+"75906") !== G8Z){if(!this.anyHighlighted && this.currentVectorParameters.vectorType === ""){this.clearMeasure();}}}else {if(g$f !== !!0){b6D=Math.round(Math.abs(y1i - g$f) * this.chart.roundit) / this.chart.roundit;b6D=b6D.toFixed(this.chart.yAxis.printDecimalPlaces);if(this.internationalizer){u0s+=this.internationalizer.numbers.format(b6D);}else {u0s+=b6D;}if(y1i > 0 && g$f > 0){N$E=" ";N$E+="(";u1N.a3e(42);i5l=u1N.B0m(y1i,y1i,g$f);if(Math.abs(i5l) > 0.1){u1N.a3e(38);i5l=Math.round(u1N.B0m(i5l,100));}else if(Math.abs(i5l) > 0.01){u1N.i3C(67);var W1E=u1N.k$A(19,118981,15,8000);i5l=Math.round(i5l * W1E) / ("10" >> 0);}else {i5l=Math.round(i5l * +"10000") / +"100";}if(this.internationalizer){u1N.i3C(121);i5l=this.internationalizer.percent.format(u1N.B0m("100",i5l,32));}else {u1N.a3e(4);i5l=u1N.B0m("%",i5l);}u1N.i3C(50);u0s+=u1N.B0m(i5l,N$E,")");}}if(y7H !== ![]){u1N.a3e(1);e$5=Math.abs(u1N.k$A(E_l,y7H));u1N.i3C(5);var A7C=u1N.B0m(12,13);e$5=Math.round(e$5) + A7C;D8F=this.translateIf("Bars");u1N.i3C(115);u0s+=u1N.k$A((2032,938.7) <= 43.63?("Z",0x1638):9020 === +"670.36"?(4.05e+3,"l"):1615 >= 8953?("G",!({})):" ",e$5,D8F," ");}if(g36){g36.innerHTML=u0s;}}if(this.activeDrawing){return;}g36=this.controls.mSticky;if(g36){b4S=".m";b4S+="StickyInter";b4S+="ior";z6T=g36.querySelector(b4S);if(S8n){w3K="a";w3K+="d";w3K+="d";Y75="i";Y75+="nlin";Y75+="e-bloc";Y75+="k";g36.style.display="inline-block";z6T.style.display=Y75;if(y1i || y1i === 0){z6T.innerHTML=u0s;}g36.classList[u0s === ""?w3K:"remove"]("hide");this.positionSticky(g36);}else {g36.style.display="none";z6T.innerHTML="";}}this.runAppend("setMeasure",arguments);};h__.ChartEngine.prototype.clearMeasure=function(){var I0X,L9Z;I0X=".mMeas";I0X+="ur";I0X+="e";L9Z=(this.drawingContainer || document).querySelector(I0X);if(L9Z){L9Z.innerHTML="";}};h__.ChartEngine.prototype.zoomSet=function(W6Z,X1g){var x61,z9V,X8v,Q32,I4j,v_M,O2A;W6Z=this.constrainCandleWidth(W6Z);if(this.chart.tempCanvas.style.display != "none"){h__.clearCanvas(this.chart.tempCanvas,this);}x61=this.mainSeriesRenderer || ({});if(!x61.params || !x61.params.volume){if(this.preferences.zoomAtCurrentMousePosition && this.zoomInitiatedByMouseWheel && this.crosshairTick < X1g.dataSet.length){z9V=this.crosshairTick || this.tickFromPixel(this.cx,X1g);}else if(this.isHome()){u1N.i3C(75);var D__=u1N.k$A(1,6,6,8,3);z9V=X1g.dataSet.length - D__;}else if(this.chart.scroll > this.chart.dataSet.length){z9V=0;}else if(this.grabMode == "zoom-x"){z9V=this.tickFromPixel(this.chart.width,X1g);}else {X8v=-241988618;Q32=-1724057995;I4j=+"2";for(var N$X=1;u1N.m7$(N$X.toString(),N$X.toString().length,"37436" - 0) !== X8v;N$X++){z9V=this.tickFromPixel(this.chart.width % 9,X1g);I4j+=2;}if(u1N.b3_(I4j.toString(),I4j.toString().length,41380) !== Q32){z9V=this.tickFromPixel(this.chart.width / +"2",X1g);}}if(this.animations.zoom.hasCompleted){this.zoomInitiatedByMouseWheel=!({});}u1N.a3e(37);var J_E=u1N.k$A(11,6,5,13);v_M=X1g.dataSet.length - J_E - z9V;O2A=X1g.scroll;u1N.i3C(5);var m7i=u1N.B0m(6,7);X1g.scroll=Math.round((this.pixelFromTick(z9V,X1g) - X1g.left) / W6Z) + m7i + v_M;this.micropixels+=(O2A - v_M) * this.layout.candleWidth - (X1g.scroll - v_M) * W6Z;}this.setCandleWidth(W6Z);X1g.spanLock=![];this.draw();this.doDisplayCrosshairs();this.updateChartAccessories();};};G=w8L=>{var r_p=M2dNJ;var J0a;J0a=w8L.CIQ;r_p.j07();J0a.ChartEngine.prototype.currentBaseline=null;J0a.ChartEngine.prototype.baselineHelper=null;J0a.ChartEngine.helpersToRegister.push(function(H3z){r_p.E0w();H3z.baselineHelper=new Map();});J0a.ChartEngine.prototype.registerBaselineToHelper=function(M$k){var b8b,i6X,u7f;if(!M$k.params.baseline){return;}function H41(j3f){var F5$,Q9J;F5$="cq-baseline-hand";F5$+="le";j3f=j3f.replace(" ","265" >> 64 < 8987?"_":("F",0x13b5));Q9J=document.createElement(F5$);Q9J.classList.add("stx-baseline-handle",j3f);b8b.container.append(Q9J);b8b.controls[`${j3f} cq-baseline-handle`]=Q9J;return Q9J;}var {baselineHelper:l9g}=this;r_p.j07();b8b=this;if(!l9g.has(M$k)){i6X="_main_seri";i6X+="es";var {name:M79}=M$k.params;u7f=this.controls.baselineHandle;l9g.set(M$k,{styleCache:null,display:![],handle:M79 === i6X && u7f?u7f:H41(M79)});}};J0a.ChartEngine.prototype.removeBaselineFromHelper=function(m5Z){var A4N,W5u,Z0R;var {baselineHelper:u$E}=this;if(u$E.has(m5Z)){A4N="_main";A4N+="_series";W5u=m5Z.params.name.replace(9661 >= 9720?"O":124.47 <= (4860,638.94)?" ":398 > +"2120"?(39.94,3.12e+2):("r","R"),764.27 < (6232,"4970" >> 0)?6350 !== (+"226.98",785)?"_":+"616.12":(7.43e+3,"N"));if(W5u !== A4N){Z0R=u$E.get(m5Z).handle;delete this.controls[`${W5u} cq-baseline-handle`];this.container.removeChild(Z0R);}u$E.delete(m5Z);}};J0a.ChartEngine.prototype.findBaselineHandle=function(x2x,P6w){for(var b0y of this.baselineHelper){var [y$R,q0_]=b0y;var {handle:R5U}=q0_;if(x2x.target === R5U || x2x.composedPath && x2x.composedPath().includes(R5U)){if(P6w){this.repositioningBaseline={lastDraw:Date.now(),handle:R5U,renderer:y$R};R5U.classList.add("stx-grab");}this.currentBaseline=y$R;return !!1;}}r_p.j07();return ![];};J0a.ChartEngine.prototype.setBaselines=function(I12){var y75;if(!I12){I12=this.chart;}y75=this;var {baselineHelper:T_q}=this;function S2r(E8t,X1C){var F30,n3y,A$i,S0g,G2H,q2N,q53;F30="t";F30+="i";F30+="c";F30+="k";var {dataSegment:u_1, dataSet:v1f, defaultPlotField:b5_}=I12;n3y=b5_;if(!X1C){n3y=E8t;}A$i=y75.getFirstLastDataRecord(u_1,F30).tick;while(!""){S0g=v1f[A$i];if(S0g){G2H="Clo";G2H+="se";if(!X1C || n3y != G2H){r_p.i3C(122);q2N=v1f[r_p.B0m(A$i,"1",0)];if(q2N && (q2N[n3y] || q2N[n3y] === ("0" | 0))){q53=q2N[n3y];return typeof q53 === "object"?q53[b5_]:q53;}}else if(S0g.iqPrevClose || S0g.iqPrevClose === 0){return S0g.iqPrevClose;}}A$i--;if(A$i < ("0" | 0))break;}}T_q.forEach(function(f1N,P$E){var P8g,f_S,J$G,K3F;var {baseline:y_4}=P$E.params;r_p.i3C(123);P8g=r_p.k$A(y_4,!"");if(P8g){y_4=I12.baseline;}var {defaultLevel:p1N, userLevel:D7P}=y_4;f_S=P$E.getYAxis(y75);if(!f_S){return;}J$G=y75.getYAxisBaselineRenderer(f_S);K3F=J$G && J$G != y75.mainSeriesRenderer && J$G.seriesParams.length && J$G.seriesParams["0" - 0].id;y_4.actualLevel=D7P || D7P === 0?D7P:p1N;if(!y_4.actualLevel && y_4.actualLevel !== +"0"){y_4.actualLevel=S2r(K3F,P8g);}f1N.display=J$G === P$E?!0:!!0;T_q.set(P$E,f1N);});};J0a.ChartEngine.prototype.setBaselineUserLevel=function(){var J1h,Q5i,l$X;var {chart:Z6N, currentPanel:y2$}=this;var {lastDraw:h0g, renderer:J$a}=this.repositioningBaseline;if(J$a.params.panel != y2$.name){return;}var {baseline:N3V}=Z6N;J1h=typeof J$a.params.baseline === "object"?J$a.params.baseline:N3V;Q5i=J$a.getYAxis(this);l$X=this.valueFromPixel(this.backOutY(J0a.ChartEngine.crosshairY),y2$,Q5i);J1h.userLevel=this.adjustIfNecessary(y2$,this.crosshairTick,l$X);if(Date.now() - h0g > 100){this.draw();this.repositioningBaseline.lastDraw=Date.now();}};J0a.ChartEngine.prototype.setBaselineMinMax=function(R8c,x2n){var F0n,V77,k6w;r_p.E0w();var {baselineHelper:Y9P, chart:K56, repositioningBaseline:B$z}=this;var {baseline:g_y, seriesRenderers:S_k}=K56;F0n=K56.transformFunc && x2n === K56.panel.yAxis;V77=x2n.renderers.find(i_S=>{r_p.E0w();return Y9P.get(S_k[i_S]);});if(!V77){return R8c;}var {baseline:t4N, type:u9R}=S_k[V77].params;if(u9R === "mountain"){return R8c;}t4N=typeof t4N === "object"?t4N:g_y;var {actualLevel:W4Y}=t4N;if(W4Y || W4Y === +"0"){if(F0n){W4Y=K56.transformFunc(this,K56,W4Y);}k6w=Math.max(W4Y - R8c[0],R8c[1] - W4Y);R8c[0]=B$z?x2n.lowValue:W4Y - k6w;R8c[1]=B$z?x2n.highValue:W4Y + k6w;}return R8c;};J0a.ChartEngine.prototype.positionBaselineHandle=function(E5g){var M7m,h0o,A5_,m6I,N9O,t7W,a8f,W2w,V9u,B0F,I62,f$8,t7Y,x6u,N3e;M7m="s";M7m+="t";M7m+="x-g";M7m+="rab";if(!this.manageTouchAndMouse){return;}var {baselineHelper:N4E, chart:J6O, panels:L4m}=this;var {baseline:V3D, panel:q9H}=E5g.params;h0o=E5g.params.yAxis || E5g.getYAxis(this);var {display:g1o, handle:D_b, styleCache:N9r}=N4E.get(E5g);if(V3D === !!({})){V3D=J6O.baseline;}if(V3D.userLevel === !!0 || !g1o){D_b.style.display="none";return;}A5_=L4m[q9H];m6I=D_b.classList.contains(M7m);N9O="block";t7W=V3D.actualLevel;if(J6O.transformFunc){t7W=J6O.transformFunc(this,J6O,t7W);}if(t7W > h0o.high){t7W=h0o.high;if(!m6I){N9O="none";}}else if(t7W < h0o.low){t7W=h0o.low;if(!m6I){N9O="none";}}if(J6O.untransformFunc){t7W=J6O.untransformFunc(this,J6O,t7W);}a8f=this.pixelFromPrice(t7W,A5_,h0o);if(!N9r){N9r=getComputedStyle(D_b);}W2w=J0a.stripPX(N9r.width);r_p.a3e(124);var V6A=r_p.B0m(41,7,15,9,5);V9u=`${a8f - J0a.stripPX(N9r.height) / V6A}px`;I62=this.baselineHandleBuffer || +"2";r_p.a3e(125);var I0s=r_p.B0m(17,5,227,19);f$8=A5_.yaxisRHS.indexOf(h0o) + I0s;if(f$8){t7Y=f$8 === 1?I62:I62 * f$8;B0F=`${J6O.right - W2w * f$8 - t7Y}px`;}else {r_p.a3e(1);var x8w=r_p.k$A(18,19);x6u=A5_.yaxisLHS.slice(0).reverse().indexOf(h0o) + x8w;N3e=x6u === 1?I62:I62 * x6u;r_p.a3e(4);B0F=`${J6O.left + W2w * x6u + N3e - W2w}${r_p.B0m("x","p")}`;}Object.assign(D_b.style,{display:N9O,top:V9u,left:B0F});};J0a.ChartEngine.prototype.getYAxisBaselineRenderer=function(x$m){var J$Y;if(!x$m.renderers.length){return null;}var {baselineHelper:J6m, chart:Q6p}=this;J$Y=x$m.renderers.find(p9X=>{return J6m.get(Q6p.seriesRenderers[p9X]);});if(!J$Y){return null;}return Q6p.seriesRenderers[J$Y];};J0a.ChartEngine.prototype.getYAxisBaseline=function(r6w){var Y9y,h5e;Y9y="o";r_p.j07();Y9y+="b";Y9y+="ject";var {baseline:a42}=this.chart;h5e=this.getYAxisBaselineRenderer(r6w);if(!h5e){return a42;}var {baseline:L5g}=h5e.params;return typeof L5g === Y9y?L5g:a42;};};O=a6K=>{var b8e,T1Z;b8e="Cl";b8e+="o";b8e+="s";b8e+="e";T1Z=a6K.CIQ;T1Z.ChartEngine.Chart=function(){this.xAxis=new T1Z.ChartEngine.XAxis();this.yAxis=new T1Z.ChartEngine.YAxis();this.symbolObject={symbol:null};this.series={};this.seriesRenderers={};this.xaxis=[];this.state={};this.endPoints={};this.defaultChartStyleConfig={};this.baseline=T1Z.clone(this.baseline);this.panel=undefined;};T1Z.extend(T1Z.ChartEngine.Chart.prototype,{symbol:null,symbolObject:{symbol:null},symbolDisplay:null,series:{},seriesRenderers:{},scroll:0,isComparison:!({}),forcePercentComparison:!!"1",maxTicks:0,tension:null,currentMarketData:{},masterData:null,dataSet:null,scrubbed:null,dataSegment:null,segmentImage:null,baseline:{includeInDataSegment:!({}),defaultLevel:null,userLevel:null,actualLevel:null},xAxis:null,xaxis:[],xaxisFactor:+"30",decimalPlaces:2,dynamicYAxis:!!1,roundit:100,breakpoint:null,legendRenderer:T1Z.drawLegend,customChart:null,yaxisPaddingRight:null,yaxisPaddingLeft:null,tickCache:{},allowScrollPast:!!1,allowScrollFuture:!!1,whiteSpaceFutureTicks:+"0",hideDrawings:!1,defaultPlotField:b8e,defaultChartStyleConfig:{},lockScroll:!({}),includeOverlaysInMinMax:!!1,gaplines:null,lineStyle:null,lineApproximation:!0,highLowBars:![],standaloneBars:!({}),barsHaveWidth:![],calculateTradingDecimalPlaces:T1Z.calculateTradingDecimalPlaces},!!({}));};H=s0o=>{var M7t,x40;M7t="d";M7t+="a";M7t+="taSe";M7t+="t";x40=s0o.CIQ;x40.ChartEngine.prototype.resolveY=function(J5Z){return this.top + J5Z;};x40.ChartEngine.prototype.resolveX=function(K0F){return this.left + K0F;};x40.ChartEngine.prototype.backOutY=function(u4U){return u4U - this.top;};x40.ChartEngine.prototype.backOutX=function(d85){M2dNJ.j07();return d85 - this.left;};x40.ChartEngine.prototype.dateFromTick=function(a0o,X6s,t6c,M$z = "dataSet"){var d0P,k1H,i9F,L4F,Q$C,q2w;if(!X6s){X6s=this.chart;}d0P=X6s[M$z];k1H=d0P.length;q2w=!1;if(k1H === 0){d0P[0]={};d0P[0].DT=new Date();k1H=d0P.length;q2w=!!({});}if(a0o < "0" >> 32){L4F=this.standardMarketIterator(d0P["0" | 0].DT);if(L4F){i9F=L4F.previous(Math.abs(a0o));}else {i9F=d0P[0].DT;}}else if(a0o >= k1H){L4F=this.standardMarketIterator(d0P[k1H - 1].DT);if(L4F){M2dNJ.i3C(126);i9F=L4F.next(M2dNJ.k$A(k1H,a0o,1));}else {i9F=d0P[k1H - ("1" - 0)].DT;}}else {i9F=d0P[a0o].DT;}M2dNJ.E0w();if(t6c){Q$C=new Date(i9F.getTime());}else {Q$C=x40.yyyymmddhhmmssmmm(i9F).substr(0,12);}if(q2w){delete d0P[0].DT;}return Q$C;};x40.ChartEngine.prototype.tickFromDate=function(Q9t,c8T,q3r,U83,s9N = M7t){var x_H=M2dNJ;var Z0T,w0t,s$K,I6n,S0P,S0q,a4N,n_s,C5l,n09,L2c,Q6P,j6z,n_F,p4o,g34;if(!c8T){c8T=this.chart;}Z0T=c8T[s9N];if(!(Z0T && Z0T.length)){return +"0";}x_H.j07();if(!q3r){q3r=0;}w0t=Q9t.constructor == Date?Q9t:x40.strToDateTime(Q9t);if(!x40.ChartEngine.isDailyInterval(this.layout.interval)){w0t.setMinutes(w0t.getMinutes() + q3r);}s$K=w0t.getTime();if(!c8T.tickCache[s9N]){c8T.tickCache[s9N]={};}I6n=c8T.tickCache[s9N][s$K];if(I6n || I6n === 0){return U83?Math.ceil(I6n):Math.floor(I6n);}S0P=Z0T[0].DT;S0q=Z0T[Z0T.length - 1].DT;if(w0t >= S0P && w0t <= S0q){a4N=0;n_s=Z0T.length;C5l=0;while(++C5l < +"100"){x_H.i3C(43);n09=Math.floor(x_H.B0m(a4N,2,n_s));L2c=Z0T[n09].DT;if(+L2c == +w0t){c8T.tickCache[s9N][s$K]=n09;return n09;}if(L2c < w0t){a4N=n09;}if(L2c > w0t){if(Z0T[n09 - 1].DT < w0t){x_H.a3e(1);c8T.tickCache[s9N][s$K]=x_H.k$A(0.5,n09);return U83?n09:n09 - 1;}if(+Z0T[n09 - +"1"].DT == +w0t){x_H.a3e(1);c8T.tickCache[s9N][s$K]=x_H.k$A(1,n09);x_H.i3C(1);return x_H.B0m(1,n09);}n_s=n09;}}if(C5l >= 100){Q6P="!!!Warning: tickFromDate";Q6P+="() did not find match.";console.log(Q6P);return Z0T.length;}}x_H.a3e(87);j6z=x_H.B0m(w0t,S0P);n_F=j6z?S0P:S0q;p4o=this.standardMarketIterator(n_F);g34=p4o?p4o.futureTick({end:w0t}):0;I6n=j6z?g34 * -1:Z0T.length - 1 + g34;c8T.tickCache[s9N][s$K]=I6n;return I6n;};x40.ChartEngine.prototype.pixelFromBar=function(U2r,b4N){var V0A,Q$l;M2dNJ.E0w();if(!b4N){b4N=this.chart;}V0A=0;Q$l=this.chart.segmentImage;if(Q$l && Q$l[U2r] && Q$l[U2r].leftOffset){V0A=Q$l[U2r].leftOffset;}else {V0A=(U2r + 0.5) * this.layout.candleWidth;}M2dNJ.a3e(127);var b6m=M2dNJ.k$A(7,0,4,19,13);V0A=b4N.panel.left + Math.floor(V0A + this.micropixels) - b6m;return V0A;};x40.ChartEngine.prototype.barFromPixel=function(k4H,o8w){var y5Z=M2dNJ;var N9p,t5d,I3F,W4z,h6u,z0c,Q5o,s2g,T5R,z2I,D7g,S$G,D$H;if(!o8w){o8w=this.chart;}N9p=this.chart.segmentImage;t5d=this.micropixels;I3F=this.layout.candleWidth;if(N9p){W4z=k4H - o8w.panel.left - t5d;h6u=2;Q5o=N9p.length;y5Z.i3C(40);s2g=Math.round(y5Z.k$A(Q5o,h6u));y5Z.a3e(76);var R2d=y5Z.k$A(6,2,2);y5Z.a3e(93);var S_S=y5Z.k$A(13,0,1,13,2);y5Z.i3C(1);var p1e=y5Z.B0m(8,10);D7g=N9p[Q5o - R2d].leftOffset + N9p[Q5o - S_S].candleWidth / p1e;if(W4z > D7g){return Q5o + Math.floor((k4H - D7g - o8w.panel.left - t5d) / I3F);}for(var b1D=1;b1D < Q5o;b1D++){h6u*=2;z0c=N9p[s2g];if(!z0c)break;T5R=z0c.leftOffset;y5Z.i3C(8);var e_D=y5Z.k$A(24,7,19);z2I=z0c.candleWidth / e_D;y5Z.a3e(1);S$G=y5Z.B0m(z2I,T5R);y5Z.a3e(4);D$H=y5Z.k$A(z2I,T5R);if(s2g === "0" * 1 || W4z >= S$G && W4z < D$H)break;else if(W4z < S$G){s2g-=Math.max(1,Math.round(Q5o / h6u));}else {s2g+=Math.max(1,Math.round(Q5o / h6u));}s2g=Math.max(0,Math.min(Q5o - "1" * 1,s2g));}if(!N9p[s2g]){for(b1D=0;b1D < Q5o;b1D++){z0c=N9p[b1D];if(!z0c)continue;T5R=z0c.leftOffset;z2I=z0c.candleWidth / +"2";if(W4z < T5R - z2I){y5Z.i3C(1);return Math.max(0,y5Z.k$A(1,b1D));}else if(W4z < T5R + z2I){return b1D;}else if(W4z >= T5R + z2I){y5Z.a3e(4);return y5Z.B0m(1,b1D);}}}return s2g;}return Math.floor((k4H - o8w.panel.left - t5d) / I3F);};x40.ChartEngine.prototype.tickFromPixel=function(o5J,F6y){var W5C;if(!F6y){F6y=this.chart;}W5C=F6y.dataSet.length - F6y.scroll;M2dNJ.E0w();if(F6y.segmentImage){W5C+=this.barFromPixel(o5J,F6y);}else {W5C+=Math.floor((o5J - F6y.panel.left - this.micropixels) / this.layout.candleWidth);}return W5C;};x40.ChartEngine.prototype.pixelFromTick=function(E1z,e2a){var l2_=M2dNJ;var E3G,w7k,q4U,J6l,g5b,i2P,S3w,w8o,T6x,l81,b_P;if(!e2a){e2a=this.chart;}E3G=e2a.dataSegment;w7k=e2a.dataSet;q4U=e2a.segmentImage;J6l=this.micropixels;g5b=E3G?E3G.length:0;i2P=e2a.panel;S3w=e2a.scroll;w8o=E1z - w7k.length + S3w;T6x=g5b?E3G[w8o]:null;if(q4U){T6x=q4U[w8o];}l2_.E0w();if(T6x && T6x.leftOffset){return i2P.left + Math.floor(T6x.leftOffset + J6l);;}l81=0;b_P=0;T6x=g5b?E3G[g5b - ("1" >> 64)]:null;if(q4U){l2_.i3C(1);T6x=q4U[l2_.k$A(1,g5b)];}if(T6x && T6x.leftOffset){if(g5b < E1z - w7k.length + S3w){l2_.i3C(1);var z1h=l2_.B0m(11,13);l81=T6x.leftOffset - T6x.candleWidth / z1h;b_P=g5b;}}return l81 + i2P.left + Math.floor((E1z - b_P - w7k.length + S3w + 0.5) * this.layout.candleWidth + J6l);};x40.ChartEngine.prototype.pixelFromDate=function(A1G,H$$,I2v,N9w){return this.pixelFromTick(this.tickFromDate(A1G,H$$,I2v,N9w),H$$);};x40.ChartEngine.prototype.transformedPriceFromPixel=function(B4b,X1p,b9W){var D0F,x26,Q7U;M2dNJ.E0w();if(!X1p){X1p=this.chart.panel;}D0F=b9W?b9W:X1p.yAxis;B4b=D0F.bottom - B4b;if(D0F.semiLog){Q7U=B4b * D0F.logShadow / D0F.height;if(D0F.flipped){Q7U=D0F.logHigh - Q7U;}else {Q7U+=D0F.logLow;}x26=Math.pow(10,Q7U);}else {if(!D0F.multiplier){return null;}x26=B4b / D0F.multiplier;if(D0F.flipped){x26=D0F.high - x26;}else {x26+=D0F.low;}}return x26;};x40.ChartEngine.prototype.priceFromPixel=function(J95,B60,x1N){M2dNJ.E0w();var J_7;if(!B60){B60=this.chart.panel;}J_7=this.transformedPriceFromPixel(J95,B60,x1N);if(this.charts[B60.name] && B60.chart.untransformFunc){if(!x1N || x1N == B60.yAxis){J_7=B60.chart.untransformFunc(this,B60.chart,J_7,x1N);}}return J_7;};x40.ChartEngine.prototype.valueFromPixel=function(a1h,L6N,M15){var K2a;if(!L6N){L6N=this.whichPanel(a1h);}if(!L6N){K2a=Object.values(this.panels);if(K2a && K2a.length){if(a1h <= "0" << 64){L6N=K2a.shift();}else {L6N=K2a.pop();}}}return this.priceFromPixel(a1h,L6N,M15);};x40.ChartEngine.prototype.valueFromInterpolation=function(G8J,n2b,Z0l,g7g,m3v){var I7M=M2dNJ;var s9b,v16,d1J,x2$,w0v,a8R,Z4k,U6c,S0c,L$q,k0$,P3R,n0B,s9C;s9b="undefine";s9b+="d";if(G8J === null || G8J < 0 || !n2b){return null;}if(!g7g){g7g=this.chart.panel;}if(!m3v){m3v=g7g.yAxis;}if(!Z0l){Z0l=this.chart.defaultPlotField;}v16=this.getPreviousBar(this.chart,n2b,G8J);if(!v16){return null;}x2$=x40.existsInObjectChain(v16,n2b);if(x2$){d1J=x2$.obj[x2$.member];}if(typeof d1J == "object"){d1J=d1J[Z0l];}w0v=this.getRendererFromSeries(n2b);I7M.j07();if(w0v && w0v.params.step || this.layout.chartType === "step"){return d1J;}a8R=this.getNextBar(this.chart,n2b,G8J);x2$=x40.existsInObjectChain(a8R,n2b);if(x2$){Z4k=x2$.obj[x2$.member];}if(typeof Z4k == "object"){Z4k=Z4k[Z0l];}if(!a8R){return null;}if(d1J === null || typeof d1J == s9b || Z4k === null || typeof Z4k == "undefined"){return null;}U6c=this.pixelFromPrice(d1J,g7g,m3v);S0c=this.pixelFromPrice(Z4k,g7g,m3v);L$q=v16.tick;k0$=a8R.tick;I7M.i3C(128);P3R=I7M.B0m(k0$,L$q,U6c,S0c);n0B=this.chart.dataSegment[G8J].tick;I7M.i3C(129);s9C=I7M.k$A(L$q,U6c,P3R,n0B);return this.priceFromPixel(s9C,g7g,m3v);};x40.ChartEngine.prototype.pixelFromTransformedValue=function(D96,q$d,s2j){var j5I,I58,T5$,F4X,a5q;if(!q$d){q$d=this.chart.panel;}M2dNJ.j07();j5I=s2j?s2j:q$d.yAxis;I58=(j5I.high - D96) * j5I.multiplier;if(j5I.semiLog){T5$=Math.max(D96,0);F4X=Math.log(T5$) / Math.LN10;a5q=j5I.height;I58=a5q - a5q * (F4X - j5I.logLow) / j5I.logShadow;}I58=j5I.flipped?j5I.bottom - I58:j5I.top + I58;return I58;};x40.ChartEngine.prototype.pixelFromPrice=function(i4O,N73,Z6B){if(!N73){N73=this.chart.panel;}if(this.charts[N73.name] && N73.chart.transformFunc){if(!Z6B || Z6B == N73.yAxis){i4O=N73.chart.transformFunc(this,N73.chart,i4O,Z6B);;}}return this.pixelFromTransformedValue(i4O,N73,Z6B);};x40.ChartEngine.prototype.pixelFromValueAdjusted=function(S2d,z8p,k2h,b$q){var b$k,X0u;if(this.layout.adj || !this.charts[S2d.name]){return this.pixelFromPrice(k2h,S2d,b$q);}b$k=Math.round(z8p);if(b$k > 0 && b$k < S2d.chart.dataSet.length && (X0u=S2d.chart.dataSet[b$k].ratio)){M2dNJ.a3e(38);return this.pixelFromPrice(M2dNJ.k$A(k2h,X0u),S2d,b$q);}return this.pixelFromPrice(k2h,S2d,b$q);};x40.ChartEngine.prototype.adjustIfNecessary=function(d2z,o1$,c1W){var w8n,G8L;if(this.layout.adj){return c1W;}if(!d2z || !this.charts[d2z.name]){return c1W;}w8n=Math.round(o1$);if(w8n > 0 && w8n < d2z.chart.dataSet.length && (G8L=d2z.chart.dataSet[w8n].ratio)){M2dNJ.i3C(40);return M2dNJ.B0m(c1W,G8L);}return c1W;};};G6=L9D=>{var k6f=M2dNJ;var p2t;p2t=L9D.CIQ;k6f.j07();p2t.ChartEngine.prototype.positionCrosshairsAtPointer=function(){var Q4k,e4h,v2T,O24,W4B,i2T,a$K,n1g;Q4k="p";Q4k+="x";e4h=this.currentPanel;if(!e4h){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}k6f.E0w();if(this.runPrepend("positionCrosshairsAtPointer",arguments)){return;}v2T=e4h.chart;O24=this.container.getBoundingClientRect();this.top=O24.top;this.left=O24.left;this.right=this.left + this.width;this.bottom=this.top + this.height;this.cy=this.crossYActualPos=this.backOutY(p2t.ChartEngine.crosshairY);this.cx=this.backOutX(p2t.ChartEngine.crosshairX);W4B=this.crosshairTick=this.tickFromPixel(this.cx,v2T);k6f.a3e(130);var V5K=k6f.k$A(5,16,10,1);i2T=this.pixelFromTick(W4B,v2T) - V5K;if(this.controls.crossX){k6f.i3C(4);this.controls.crossX.style.left=k6f.k$A(Q4k,i2T);}if(i2T >= e4h.right || i2T <= e4h.left){this.undisplayCrosshairs();return;}a$K=e4h.name == "chart"?this.preferences.horizontalCrosshairField:e4h.horizontalCrosshairField;n1g=v2T.dataSet;if(a$K && n1g && W4B < n1g.length && W4B > -1){this.crossYActualPos=this.pixelFromPrice(n1g[W4B][a$K],e4h);}if(this.controls.crossY){this.controls.crossY.style.top=this.crossYActualPos + "px";}this.runAppend("positionCrosshairsAtPointer",arguments);};p2t.ChartEngine.prototype.doDisplayCrosshairs=function(){var k0u,P1w,k6V,Z44,k5L,M0S,V2t;if(this.runPrepend("doDisplayCrosshairs",arguments)){return;}if(this.displayInitialized){k0u=this.floatCanvas;P1w=this.currentVectorParameters.vectorType;if(!this.layout.crosshair && (P1w === "" || !P1w)){this.undisplayCrosshairs();}else if(p2t.Drawing && p2t.Drawing[P1w] && new p2t.Drawing[P1w]().dragToDraw){this.undisplayCrosshairs();}else if(this.overXAxis || this.overYAxis || !this.insideChart && !this.grabbingScreen){this.undisplayCrosshairs();}else if(this.openDialog !== ""){this.undisplayCrosshairs();}else {k6V=this.controls;Z44=k6V.crossX;k5L=k6V.crossY;if(Z44 && Z44.style.display !== ""){Z44.style.display="";if(k5L){k5L.style.display="";}if(this.magnetizedPrice && P1w){M0S="stx-";M0S+="crossh";M0S+="air-o";M0S+="n";this.container.classList.remove(M0S);this.chart.tempCanvas.style.display="block";}else {this.container.classList.add("stx-crosshair-on");}}if(k6V.floatDate && !this.chart.xAxis.noDraw){k6V.floatDate.style.visibility="";if(this.currentPanel){this.updateFloatHRLabel(this.currentPanel);}}if(k0u){V2t="n";V2t+="o";V2t+="n";V2t+="e";if(k0u.style.display == V2t){p2t.clearCanvas(k0u,this);}k0u.style.display="block";}}}k6f.j07();this.runAppend("doDisplayCrosshairs",arguments);};p2t.ChartEngine.prototype.undisplayCrosshairs=function(){var N8i,n3c,M4x,Q0A,f25,Y2v,p$v,M33;if(this.runPrepend("undisplayCrosshairs",arguments)){return;}N8i=this.controls;n3c=N8i.crossX;M4x=N8i.crossY;if(n3c){if(n3c.style.display != "none"){Q0A="n";Q0A+="o";Q0A+="n";Q0A+="e";f25="no";f25+="n";f25+="e";n3c.style.display=f25;if(M4x){M4x.style.display=Q0A;}}}if(this.displayInitialized && N8i.floatDate){N8i.floatDate.style.visibility="hidden";}this.container.classList.remove("stx-crosshair-on");Y2v=this.floatCanvas;if(Y2v && Y2v.isDirty && Y2v.style.display != "none"){p2t.clearCanvas(Y2v,this);if(Y2v.style.display != "none"){Y2v.style.display="none";}}k6f.E0w();if(!this.activeDrawing && !this.repositioningDrawing && !this.editingAnnotation){p$v="no";p$v+="ne";M33=this.chart.tempCanvas;if(M33 && M33.style.display != p$v){M33.style.display="none";}}this.runAppend("undisplayCrosshairs",arguments);};p2t.ChartEngine.prototype.hideCrosshairs=function(){k6f.j07();this.displayCrosshairs=![];};p2t.ChartEngine.prototype.showCrosshairs=function(){this.displayCrosshairs=!0;};};k$=b09=>{var y_C=M2dNJ;var a_E,o7N;a_E=b09.CIQ;o7N=b09.timezoneJS;a_E.ChartEngine.prototype.loadChart=function(o$w,U5a,T13){var h9q,A9g,w2y,y3$,f0d,A2C,k0F,W_3;function G1d(){var H3p,Z1G,O5X;H3p="m";y_C.E0w();H3p+="a";H3p+="st";H3p+="er";Z1G="sym";Z1G+="bolChange";O5X="symb";O5X+="o";O5X+="lImport";A2C.dispatch(A2C.currentlyImporting?O5X:Z1G,{stx:A2C,symbol:T3u.symbol,symbolObject:T3u.symbolObject,prevSymbol:y1p,prevSymbolObject:y3$,action:H3p});if(R0w){A2C.dispatch("periodicity",{stx:A2C,differentData:!!1,prevPeriodicity:A9g});}}h9q="func";h9q+="tion";if(!T13 && typeof U5a == h9q){T13=U5a;U5a={};}else if(Array.isArray(U5a)){U5a={masterData:U5a};}if(!U5a){U5a={};}var {chart:T3u, periodicity:R0w, range:R2a, span:l9U}=U5a;var {layout:F_7}=this;A9g={periodicity:F_7.periodicity,interval:F_7.interval,timeUnit:F_7.timeUnit};if(R0w){w2y=a_E.cleanPeriodicity(R0w.period?R0w.period:R0w.periodicity,R0w.interval,R0w.timeUnit);F_7.interval=w2y.interval;F_7.periodicity=w2y.period;F_7.timeUnit=w2y.timeUnit;}if(!T3u){T3u=this.chart;}var {dataSet:h_c, market:x$$, masterData:x27, symbol:y1p, moreAvailable:P6$, upToDate:e$i}=T3u;y3$=a_E.clone(T3u.symbolObject);T3u.dataSet=[];T3u.masterData=[];T3u.moreAvailable=null;T3u.upToDate=null;if(!o$w){T3u.symbol=null;T3u.symbolObject={symbol:null};}else if(typeof o$w == "object"){T3u.symbol=o$w.symbol;T3u.symbolObject=o$w;}else {T3u.symbol=o$w;T3u.symbolObject.symbol=o$w;}T3u.inflectionPoint=null;if(this.marketFactory){f0d=this.marketFactory(T3u.symbolObject);this.setMarket(f0d,T3u);}this.setMainSeriesRenderer(!!1);if(!R2a && !l9U && F_7){l9U=!F_7.range?F_7.setSpan:{};R2a=F_7.range || ({});}else if(R2a && l9U){l9U={};}this.clearCurrentMarketData(T3u);A2C=this;if(!U5a.masterData && this.quoteDriver){k0F=function(X_Q){y_C.j07();if(X_Q && X_Q != "orphaned"){T3u.symbol=y1p;T3u.symbolObject=y3$;T3u.market=x$$;A2C.masterData=T3u.masterData=x27;T3u.dataSet=h_c;T3u.moreAvailable=P6$;T3u.upToDate=e$i;}G1d();if(T13){T13.call(A2C,X_Q);}};if(R2a && Object.keys(R2a).length && this.setRange){delete U5a.span;delete F_7.setSpan;this.chart.masterData=null;this.displayInitialized=![];if(R0w){R2a.periodicity=R0w;}R2a.forceLoad=!!"1";this.setRange(R2a,k0F);}else if(l9U && l9U.base && this.setSpan){l9U.multiplier=l9U.multiplier || 1;this.chart.masterData=null;this.displayInitialized=!"1";if(R0w){l9U.maintainPeriodicity=!"";}l9U.forceLoad=!!"1";this.setSpan(l9U,k0F);}else {this.quoteDriver.newChart({symbol:T3u.symbol,symbolObject:T3u.symbolObject,chart:T3u,initializeChart:!![]},function(E6D){if(!E6D){A2C.adjustPanelPositions();A2C.quoteDriver.updateSubscriptions();if(U5a.stretchToFillScreen){A2C.fillScreen();}}y_C.j07();k0F.apply(A2C,arguments);});}}else {if(!U5a.masterData){console.log("Warning: No masterData specified and no QuoteFeed configured");}if(!T3u.symbol){T3u.symbol="";}this.initializeChart();W_3=this.doCleanupGaps(U5a.masterData,T3u);this.setMasterData(W_3,T3u,{noCleanupDates:!0});T3u.endPoints={};if(W_3 && W_3.length){T3u.endPoints={begin:W_3[0].DT,end:W_3[W_3.length - 1].DT};}this.createDataSet();if(R2a && Object.keys(R2a).length && this.setRange){this.setRange(R2a);}else if(l9U && l9U.multiplier && l9U.base && this.setSpan){this.setSpan({maintainPeriodicity:!!1,multiplier:l9U.multiplier,base:l9U.base});}else if(U5a.stretchToFillScreen){this.fillScreen();}else if(W_3 && W_3.length){this.home();}else {this.clear();}this.adjustPanelPositions();G1d();if(T13){T13.call(A2C);}}};a_E.ChartEngine.prototype.loadBlankChart=function(){y_C.E0w();this.loadChart(null,[]);};a_E.ChartEngine.prototype.getDataFields=function(b0k){var u9M,z8m,F8t,y88,F_W;u9M="L";u9M+="ow";y_C.j07();z8m="C";z8m+="lose";if(!b0k){b0k=this.chart;}F8t=b0k.defaultPlotField || z8m;y88=["Open","High",u9M];y88.push(F8t);for(var h_2 in b0k.series){F_W=b0k.series[h_2].parameters;y88.push(F_W.symbol);}return y88;};a_E.ChartEngine.prototype.cleanMasterData=function(k8w,V0k){var R_S,j7x,o0O,z2R,v85;function d4B(s29,O5x){y_C.j07();var V9t,a18;for(var D47="0" << 64;D47 < O5x.length;D47++){V9t="undefin";V9t+="e";V9t+="d";a18=s29[O5x[D47]];if(typeof a18 != V9t){return !"1";}}return !!1;}R_S=k8w.symbol;j7x=V0k.masterData;if(!j7x || !j7x.length){return;}o0O=this.getDataFields(V0k);z2R=0;do {v85=j7x[z2R];delete v85[R_S];if(d4B.call(this,v85,o0O)){j7x.splice(z2R,1);continue;}z2R++;}while(z2R < j7x.length);y_C.E0w();j7x=this.doCleanupGaps(j7x,V0k,{noCleanupDates:!!({})});this.setMasterData(j7x,V0k,{noCleanupDates:!!"1"});this.clearCurrentMarketData(V0k,R_S);};y_C.j07();a_E.ChartEngine.prototype.calculateATR=function(q_T,p94,A7n){var U8k,U_i,P2g,F_S,r7O,r9y;if(!A7n){A7n=q_T.dataSet;}U8k=q_T.state.calculations.atr;if(!U8k){U8k=q_T.state.calculations.atr={};}if(!p94){p94=+"20";}U_i=[];if(U8k.accum){U_i=U8k.accum;}for(var w20=0;w20 < A7n.length;w20++){F_S=A7n[w20];P2g=w20?A7n[w20 - 1]:U8k.q1;if(!P2g)continue;r7O=Math.max(F_S.High - F_S.Low,Math.abs(F_S.High - P2g.Close),Math.abs(F_S.Low - P2g.Close));if(U_i.length < p94){if(U_i.push(r7O) == p94){r9y=0;for(var z9e=0;z9e < U_i.length;z9e++){r9y+=U_i[z9e];}y_C.a3e(40);F_S.atr=y_C.B0m(r9y,p94);}}else {y_C.a3e(9);var u1A=y_C.k$A(1,20,19);F_S.atr=(P2g.atr * (p94 - u1A) + r7O) / p94;}F_S.trueRange=r7O;}q_T.state.calculations.atr={accum:U_i,q1:P2g};};a_E.ChartEngine.prototype.calculateMedianPrice=function(n33,m7R){var W_M,V8c;if(!m7R){m7R=n33.dataSet;}y_C.j07();for(var T1P=+"0";T1P < m7R.length;++T1P){V8c="hl/";V8c+="2";W_M=m7R[T1P];y_C.a3e(131);var H6y=y_C.B0m(14,9,35,10);W_M[V8c]=(W_M.High + W_M.Low) / H6y;}};a_E.ChartEngine.prototype.calculateTypicalPrice=function(V7b,O_Y){var e6Q;if(!O_Y){O_Y=V7b.dataSet;}y_C.j07();for(var A8Q=0;A8Q < O_Y.length;++A8Q){e6Q=O_Y[A8Q];y_C.a3e(3);var T2Z=y_C.k$A(2,14,13);e6Q["hlc/3"]=(e6Q.High + e6Q.Low + e6Q.Close) / T2Z;}};a_E.ChartEngine.prototype.calculateWeightedClose=function(b4E,S9M){var I_k;if(!S9M){S9M=b4E.dataSet;}for(var C88="0" ^ 0;C88 < S9M.length;++C88){I_k=S9M[C88];y_C.a3e(60);var k07=y_C.k$A(14,19,329,18,3);y_C.a3e(25);var j4S=y_C.B0m(4,15,56);I_k["hlcc/4"]=(I_k.High + I_k.Low + k07 * I_k.Close) / j4S;}};a_E.ChartEngine.prototype.calculateOHLC4=function(r8J,L8V){var W7I,l47;if(!L8V){L8V=r8J.dataSet;}for(var B8v=0;B8v < L8V.length;++B8v){l47="ohlc";l47+="/4";W7I=L8V[B8v];y_C.i3C(65);var S_x=y_C.k$A(1,3,56,28,2);W7I[l47]=(W7I.Open + W7I.High + W7I.Low + W7I.Close) / S_x;}};a_E.ChartEngine.prototype.currentQuote=function(d_9){var N_u;if(!this.chart.dataSet){return null;}for(var I4l=this.chart.dataSet.length - 1;I4l >= 0;I4l--){if(this.chart.dataSet[I4l]){if(!d_9){return this.chart.dataSet[I4l];}N_u=this.chart.dataSet[I4l][d_9];if(N_u || N_u === 0){return this.chart.dataSet[I4l];}}}return null;};a_E.ChartEngine.prototype.mostRecentClose=function(I4D){var U9l,x_T;y_C.E0w();if(!this.chart.dataSet){return null;}for(var y23=this.chart.dataSet.length - 1;y23 >= 0;y23--){U9l=this.chart.dataSet[y23];if(!U9l)continue;if(I4D){U9l=U9l[I4D];if(!U9l && U9l !== 0)continue;}x_T=U9l.iqPrevClose;if(typeof U9l == "object"){U9l=U9l.Close;}if(typeof U9l == "number"){return U9l;}if(typeof x_T == "number"){return x_T;}}return null;};a_E.ChartEngine.prototype.createDataSegment=function(I_O){var Q7q,b7K,S5p,w1R,t3$,u9Y,Y2k,o51,b5k,i21,P0r,L7R,d2O,u1P,y2a,P6E,G5k,B7P;if(this.runPrepend("createDataSegment",arguments)){return;}y_C.j07();for(var c9f in this.charts){Q7q=this.charts[c9f];if(I_O){Q7q=I_O;}if(a_E.Comparison && Q7q.isComparison){a_E.Comparison.createComparisonSegmentInner(this,Q7q);}b7K=Q7q.dataSet;S5p=Q7q.baseline;w1R=Q7q.scroll;t3$=Q7q.maxTicks;u9Y=this.layout;Y2k=u9Y.candleWidth;S5p.actualLevel=S5p.userLevel?S5p.userLevel:S5p.defaultLevel;o51=S5p.includeInDataSegment && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars);i21=0;P0r=Q7q.dataSegment=[];y_C.a3e(6);var h_D=y_C.k$A(5,11,1,7);L7R=b7K.length - h_D - w1R - +"1";d2O=Q7q.defaultPlotField;for(var q5c=-1;q5c < w1R && q5c < t3$;q5c++){L7R++;if(q5c == -+"1" && !o51)continue;if(L7R < b7K.length && L7R >= 0){b5k=b7K[L7R];b5k.candleWidth=null;if(b5k){i21+=b5k.Volume || "1" >> 32;}P0r.push(b5k);if(S5p.actualLevel === null && q5c >= 0){if(d2O && d2O != "Close"){y_C.i3C(1);u1P=b7K[y_C.k$A(1,L7R)];if(u1P && (u1P[d2O] || u1P[d2O] === 0)){S5p.actualLevel=u1P[d2O];}}else {if(b5k.iqPrevClose || b5k.iqPrevClose === 0){S5p.actualLevel=b5k.iqPrevClose;}}}}else if(L7R < 0){P0r.push(null);}}Q7q.segmentImage=null;y2a=this.mainSeriesRenderer || ({});if(y2a.params && y2a.params.volume){P6E=Q7q.width - (t3$ - P0r.length - +"1") * u9Y.candleWidth;G5k=0;Q7q.segmentImage=[];for(var g_i=0;g_i < P0r.length;g_i++){b5k=P0r[g_i];Q7q.segmentImage[g_i]={};B7P=null;if(b5k){if(b5k.Volume){b5k.candleWidth=P6E * b5k.Volume / i21;y_C.a3e(31);var f5H=y_C.k$A(14,16,11,11);B7P=G5k + b5k.candleWidth / f5H;G5k+=b5k.candleWidth;}else {b5k.candleWidth=Y2k;y_C.a3e(46);B7P=y_C.B0m(G5k,2,Y2k);G5k+=Y2k;}Q7q.segmentImage[g_i]={tick:b5k.tick,candleWidth:b5k.candleWidth,leftOffset:B7P};}else {G5k+=Y2k;}}}if(I_O)break;}if(Q7q && Q7q.isComparison){this.clearPixelCache();}this.positionCrosshairsAtPointer();this.runAppend("createDataSegment",arguments);};a_E.ChartEngine.prototype.getDataSegment=function(X8y){var X$_,e8Z,f4n,H63,i9q,L5F;if(!X8y){X8y=this.chart;}X$_=X8y.dataSegment;if(!X$_ || !X$_.length){return [];}e8Z=0;f4n=X$_.length;if(this.pixelFromBar(e8Z,X8y) < X8y.panel.left){e8Z++;}H63=122450553;i9q=-843407242;L5F=2;for(var y5s=1;y_C.b3_(y5s.toString(),y5s.toString().length,"83213" | 12) !== H63;y5s++){if(this.pixelFromBar(f4n / 2,X8y) < X8y.panel.right){f4n++;}return X$_.slice(e8Z,f4n);}y_C.E0w();if(y_C.m7$(L5F.toString(),L5F.toString().length,94243) !== i9q){if(this.pixelFromBar(f4n - 1,X8y) > X8y.panel.right){f4n--;}return X$_.slice(e8Z,f4n);}};a_E.ChartEngine.prototype.setMasterData=function(Z24,G8f,K7u){var E4f,L2f,u48,i$O,W2D,R43,P$f,I2E;E4f="c";E4f+="ha";E4f+="r";E4f+="t";if(!G8f){G8f=this.chart;}if(this.marketFactory){L2f=this.marketFactory(G8f.symbolObject);this.setMarket(L2f,G8f);}if(!K7u){K7u={};}if(!K7u.noCleanupDates){this.doCleanupDates(Z24,this.layout.interval);}G8f.masterData=Z24;if(G8f.name == E4f){this.masterData=Z24;}i$O=null;for(u48=0;Z24 && u48 < Z24.length;u48++){W2D="setMast";W2D+="e";W2D+="rData : Missing DT and Date on mas";W2D+="terData object";R43=Z24[u48];if(i$O === null){if(typeof R43.Close === "number"){P$f="Clo";P$f+="s";P$f+="e";i$O=P$f;}else if(typeof R43.Value === "number"){i$O="Value";}}if(i$O === "Value" && typeof R43.Value === "number"){R43.Close=R43.Value;}if(R43.DT){if(Object.prototype.toString.call(R43.DT) != "[object Date]"){R43.DT=new Date(R43.DT);}if(!R43.Date || R43.Date.length != 17){R43.Date=a_E.yyyymmddhhmmssmmm(R43.DT);}}else if(R43.Date){R43.DT=a_E.strToDateTime(R43.Date);}else {console.log(W2D);}if(R43.Volume && typeof R43.Volume !== "number"){R43.Volume=parseInt(R43.Volume,10);}if(Z24.length - u48 < 50){this.updateCurrentMarketData(R43,G8f,null,{fromTrade:!0});}}if(G8f.calculateTradingDecimalPlaces){G8f.decimalPlaces=G8f.calculateTradingDecimalPlaces({stx:this,chart:G8f,symbol:G8f.symbolObject.symbol,symbolObject:G8f.symbolObject});}this.setDisplayDates(Z24);G8f.roundit=Math.pow(10,G8f.decimalPlaces);for(u48 in this.plugins){I2E=this.plugins[u48];if(I2E.display){if(I2E.setMasterData){I2E.setMasterData(this,G8f);}}}};a_E.ChartEngine.prototype.setMasterDataRender=function(T0B,N34,a7A){if(!a7A){a7A=this.chart;}if(!a7A.symbol){a7A.symbol="";}this.setMasterData(N34,a7A);if(N34){a7A.endPoints={};if(N34.length){a7A.endPoints={begin:N34["0" | 0].DT,end:N34[N34.length - +"1"].DT};a7A.symbol=T0B;}}this.createDataSet();y_C.E0w();this.initializeChart();this.draw();if(!N34 || !N34.length){a7A.symbol=null;this.clear();}this.adjustPanelPositions();};a_E.ChartEngine.prototype.getSymbols=function(W86){var T80,o_p,k8_,J4A,x2Y,l7R,a7n,l7e,y8n,g$B,P6b;y_C.E0w();if(!W86){W86={};}T80=[];k8_=this.layout;for(var S1K in this.charts){l7R=this.charts[S1K];if(l7R.symbolObject && l7R.symbolObject.symbol){T80.push(U7M(l7R.symbol,l7R.symbolObject,k8_));}for(var c9L in l7R.series){a7n=l7R.series[c9L];l7e=a7n.parameters;if(l7e.data && !l7e.data.useDefaultQuoteFeed)continue;x2Y=l7e.symbolObject;J4A=l7e.symbol;o_p=U7M(J4A,x2Y,k8_);o_p.id=c9L;if(W86["include-parameters"]){o_p.parameters=a_E.clone(l7e);if(o_p.parameters.yAxis){delete o_p.parameters.yAxis.yAxisPlotter;}}if(W86["exclude-studies"] && l7e.bucket == "study")continue;if(W86["exclude-generated"] && x2Y.generator)continue;T80.push(o_p);}}function U7M(X7o,T9_,F5t){return {symbol:X7o,symbolObject:T9_,periodicity:F5t.periodicity,interval:F5t.interval,timeUnit:F5t.timeUnit,setSpan:F5t.setSpan};}if(W86["breakout-equations"]){y8n={};for(var Z8N=0;Z8N < T80.length;Z8N++){J4A=T80[Z8N].symbol;if(this.isEquationChart(J4A)){g$B=a_E.formatEquation(J4A);if(g$B){P6b=g$B.symbols;for(var k11=0;k11 < P6b.length;k11++){y8n[P6b[k11]]=U7M(P6b[k11],T80[Z8N].symbolObject,T80[Z8N]);}}}else {y8n[J4A]=U7M(J4A,T80[Z8N].symbolObject,T80[Z8N]);}}T80=[];for(var i6Q in y8n){T80.push(y8n[i6Q]);}}return T80;};a_E.ChartEngine.prototype.setDisplayDate=function(N$N){var v$p,a9s,Y3m;if(a_E.ChartEngine.isDailyInterval(this.layout.interval)){return;}v$p=N$N.DT;y_C.i3C(4);var F6l=y_C.B0m(950,50);a9s=v$p.getSeconds() * F6l + v$p.getMilliseconds();y_C.j07();if(o7N.Date && this.displayZone){Y3m=new o7N.Date(v$p.getTime(),this.displayZone);v$p=new Date(Y3m.getFullYear(),Y3m.getMonth(),Y3m.getDate(),Y3m.getHours(),Y3m.getMinutes());v$p=new Date(v$p.getTime() + a9s);}N$N.displayDate=v$p;};a_E.ChartEngine.prototype.setDisplayDates=function(N1q){var h9a;if(!N1q){return;}if(a_E.ChartEngine.isDailyInterval(this.layout.interval)){return;}for(var C$Z=0;C$Z < N1q.length;C$Z++){h9a=N1q[C$Z];if(h9a.DT){this.setDisplayDate(h9a);}}};a_E.ChartEngine.prototype.setTimeZone=function(l6g,Y2l){var Q_G,c7s,g4K,R2_,p3p;if(!o7N.Date){this.timeZoneOffset=0;return;}Q_G=new Date();c7s=Q_G.getTimezoneOffset();g4K=c7s;R2_=c7s;if(l6g){this.dataZone=l6g;}if(this.dataZone){g4K=new o7N.Date(Q_G,this.dataZone).getTimezoneOffset();}if(Y2l){this.displayZone=Y2l;}if(this.displayZone){R2_=new o7N.Date(Q_G,this.displayZone).getTimezoneOffset();}y_C.a3e(132);this.timeZoneOffset=y_C.B0m(c7s,c7s,g4K,R2_);for(var r8l in this.charts){p3p=this.charts[r8l];this.setDisplayDates(p3p.masterData);}this.preferences.timeZone=Y2l;this.changeOccurred("preferences");this.createDataSet();};a_E.ChartEngine.prototype.updateChartData=function(q6E,S5H,e5Q){var d7P,T2s,j8V,y9Y,I40,D3s,u6J,y4A,H$L,T_b,b9C,v3d,J4y,x6t,E_B,v2$,y0_,D5N,Z3z,h7K,N9o,x9T,W6G,k1t,g0S,X4N,m8x;if(!e5Q){e5Q={};}function s5_(){var o3h,U4O,i8L;o3h=null;y_C.i3C(82);U4O=y_C.B0m(32,"0");if(j8V.length){o3h=D3s.getFirstLastDataRecord(j8V,u6J || S5H.defaultPlotField,!!1);if(o3h){if(q6E[q6E.length - 1].DT <= o3h.DT){return;}for(;U4O < q6E.length;U4O++){if(+q6E[U4O].DT == +o3h.DT){if(D3s.getFirstLastDataRecord([q6E[U4O]],u6J || S5H.defaultPlotField)){o3h=null;}break;}else if(q6E[U4O].DT > o3h.DT)break;}}}i8L=q6E.slice(U4O);if(o3h){i8L.unshift(u6J?o3h[u6J]:o3h);}y_C.j07();i8L=D3s.doCleanupGaps(i8L,S5H);if(o3h){i8L.shift();}q6E=q6E.slice(0,U4O).concat(i8L);}if(!S5H){S5H=this.chart;}d7P=!!0;T2s=!"1";j8V=S5H.masterData;y_C.j07();y9Y=this.layout;I40=this.dataZone;D3s=this;u6J=e5Q.secondarySeries;T_b=a_E.isValidNumber;if(!e5Q.noCleanupDates){this.doCleanupDates(q6E,y9Y.interval);}function V8D(){D3s.createDataSet(null,null,e5Q);D3s.draw();D3s.updateChartAccessories();y_C.E0w();D3s.streamParameters.count=0;y_C.i3C(71);D3s.streamParameters.timeout=-y_C.B0m("1",32);}if(e5Q.useAsLastSale || q6E.constructor == Object && (q6E.Last || q6E.Last === +"0")){x0T();}if(q6E && q6E.constructor == Object){q6E=[q6E];}if(!q6E || !q6E.length){return;}if(this.runPrepend("appendMasterData",[q6E,S5H,e5Q])){return;}if(this.runPrepend("updateChartData",[q6E,S5H,e5Q])){return;}function D5e(){var C39,g2B,y_J,W7x,r0C,p5q,t29,z4G,E4C,c0T;if(!a_E.Market || !S5H.market){return;}y_C.j07();C39={market_tz:a_E.getFromNS(S5H,"market.market_def.market_tz",null)};g2B=y9Y.interval;if(g2B == "month" || g2B == "week"){y_J="d";y_J+="a";y_J+="y";if(!D3s.dontRoll){g2B=y_J;}C39=D3s.chart.market.market_def;}W7x=new a_E.Market(C39);r0C={begin:j8V && j8V.length?j8V[j8V.length - 1].DT:q6E.DT,interval:g2B,periodicity:+"1",timeUnit:y9Y.timeUnit};p5q=W7x.newIterator(r0C);t29=p5q.next();if(!j8V){q6E.DT=new Date(+p5q.previous());}else if(q6E.DT < t29){z4G=0;c0T=p5q.previous();E4C=q6E.DT;e5Q.appending=!0;while(E4C < c0T && z4G < "1000" - 0){e5Q.appending=!"1";c0T=p5q.previous();z4G++;}q6E.DT=c0T;e5Q.updating=!e5Q.appending;}else if(q6E.DT >= t29){z4G=0;E4C=q6E.DT;while(E4C > t29 && z4G < 1000){q6E.DT=t29;t29=p5q.next();z4G++;}e5Q.appending=!"";}}if(!j8V){j8V=[];}y_C.i3C(73);var y7N=y_C.k$A(3,14,715,17);b9C=j8V.length - y7N;v3d=!!0;if(e5Q.fillGaps){s5_();}if(!q6E.length){return;}for(var t4h=0;t4h < q6E.length;t4h++){J4y=q6E[t4h];x6t=J4y.DT;E_B=J4y.Date;if(x6t && Object.prototype.toString.call(x6t) != "[object Date]"){J4y.DT=x6t=new Date(x6t);}if(x6t){if(!E_B || E_B.length != +"17"){J4y.Date=a_E.yyyymmddhhmmssmmm(J4y.DT);}}if(!x6t){x6t=J4y.DT=a_E.strToDateTime(E_B);}if(!T_b(J4y.Close) && T_b(J4y.Value)){J4y.Close=J4y.Value;}while(b9C >= +"0" && b9C < j8V.length){v2$=j8V[b9C].DT;if(!v2$){v2$=a_E.strToDateTime(j8V[b9C].Date);}if(v2$.getTime() <= x6t.getTime()){v3d=!"";y0_=0;if(v2$.getTime() < x6t.getTime()){if(b9C < j8V.length - 1){D5N=j8V[b9C + 1].DT || a_E.strToDateTime(j8V[b9C + 1].Date);if(D5N.getTime() <= x6t.getTime()){b9C++;continue;}}y0_=1;;}if(e5Q.deleteItems){if(!y0_){N6s(b9C,x6t);}break;}else {if(y9Y.interval == "tick" && e5Q.firstLoop !== !1){y0_=1;}if(!y0_){m6e(b9C,J4y);}if(T_b(J4y.Close)){if(!T_b(J4y.Open)){J4y.Open=J4y.Close;}Z3z=Math.max(J4y.Open,J4y.Close);h7K=Math.min(J4y.Open,J4y.Close);if(!T_b(J4y.High) || J4y.High < Z3z){J4y.High=Z3z;}if(!T_b(J4y.Low) || J4y.Low > h7K){J4y.Low=h7K;}}if(J4y.Volume && !T_b(J4y.Volume)){J4y.Volume=parseInt(J4y.Volume,10);}b9C+=y0_;if(u6J){N9o="t";N9o+="i";N9o+="c";N9o+="k";if(q6E.length - t4h < 50){this.updateCurrentMarketData(J4y,S5H,u6J,{fromTrade:!!({})});}if(y9Y.interval != N9o || J4y.Close !== undefined){if(y0_){j8V.splice(b9C,+"0",{DT:J4y.DT});this.setDisplayDate(j8V[b9C]);}j8V[b9C][u6J]=J4y;}}else {if(q6E.length - t4h < +"50"){this.updateCurrentMarketData(J4y,S5H,null,{fromTrade:!!1});}if(y9Y.interval != "tick" || J4y.Close !== undefined){j8V.splice(b9C,y0_?"0" << 0:1,J4y);this.setDisplayDate(J4y);}}}break;}b9C+=v3d?1:-1;}if(b9C < 0){if(u6J){this.updateCurrentMarketData(J4y,S5H,u6J,{fromTrade:!!"1"});if(y9Y.interval != "tick" || J4y.Close !== undefined){j8V.splice(0,0,{DT:J4y.DT});this.setDisplayDate(j8V[0]);j8V[0][u6J]=J4y;}}else {this.updateCurrentMarketData(J4y,S5H,null,{fromTrade:!!({})});if(y9Y.interval != "tick" || J4y.Close !== undefined){j8V.splice(0,0,J4y);this.setDisplayDate(J4y);}}v3d=!!({});b9C=0;}}if(j8V.length){this.masterData=S5H.masterData=j8V;}function N6s(T7S,w6B){var d$w,z6t,J1_;if(u6J){delete j8V[T7S][u6J];if(D3s.cleanupGaps){d$w={DT:w6B,Close:null};if(D3s.cleanupGaps != "gap" && j8V[T7S - +"1"] && j8V[T7S - 1][u6J]){d$w.Close=j8V[T7S - 1][u6J].Close;d$w.High=d$w.Low=d$w.Open=d$w.Close;d$w.Volume=0;}j8V[T7S][u6J]=d$w;}}else {z6t="g";z6t+="a";z6t+="p";J1_=j8V.splice(T7S,1)[0];d$w={DT:J1_.DT,Close:null,needed:![]};for(y4A in S5H.series){H$L=S5H.series[y4A].parameters.symbolObject.symbol;if(typeof J1_[H$L] != "undefined"){d$w[H$L]=J1_[H$L];delete d$w.needed;}}if(D3s.cleanupGaps && D3s.cleanupGaps != z6t){delete d$w.needed;if(D3s.cleanupGaps != "gap" && j8V[T7S - ("1" ^ 0)]){d$w.Close=j8V[T7S - ("1" | 0)].Close;d$w.High=d$w.Low=d$w.Open=d$w.Close;d$w.Volume=0;}}if(d$w.needed !== ![]){j8V.splice(T7S,0,d$w);D3s.setDisplayDate(d$w);}}}if(this.maxMasterDataSize){j8V=S5H.masterData=this.masterData=j8V.slice(-this.maxMasterDataSize);}x9T=u6J?this.getSeries({symbol:u6J,chart:S5H}):[S5H];function x0T(){y_C.j07();var D56,e$x;D56="[objec";D56+="t Date]";d7P=!"";if(e5Q.useAsLastSale && e5Q.useAsLastSale.aggregatedVolume){T2s=!"";}if(q6E.constructor === Array){y_C.i3C(1);var z$0=y_C.k$A(9,10);e$x=q6E[q6E.length - z$0];q6E={};q6E.DT=e$x.DT;q6E.Close=e$x.Close;q6E.Volume=e$x.Volume;}else if(q6E.Last){q6E.Close=q6E.Last;delete q6E.Last;}if(q6E.DT && Object.prototype.toString.call(q6E.DT) != D56){q6E.DT=new Date(q6E.DT);}if(!q6E.DT || q6E.DT == "Invalid Date"){q6E.DT=new Date();}if(y9Y.interval != "tick"){D5e();}q6E.Open=q6E.Close;q6E.High=q6E.Close;q6E.Low=q6E.Close;}for(var F8w=0;F8w < x9T.length;F8w++){W6G=x9T[F8w];if(!W6G.endPoints.begin || W6G.endPoints.begin > q6E[0].DT){W6G.endPoints.begin=q6E[0].DT;}if(!W6G.endPoints.end || W6G.endPoints.end < q6E[q6E.length - 1].DT){W6G.endPoints.end=q6E[q6E.length - 1].DT;}k1t=W6G.parameters && W6G.parameters.field || S5H.defaultPlotField;g0S=this.getFirstLastDataRecord(q6E,k1t,!!1);if(g0S && (!W6G.lastQuote || W6G.lastQuote.DT <= g0S.DT)){W6G.lastQuote=g0S;}if(u6J && e5Q.deleteItems){W6G.lastQuote=this.getFirstLastDataRecord(j8V,u6J,!!"1")[u6J];}}for(var b95 in this.plugins){X4N=this.plugins[b95];if(X4N.display){if(X4N.appendMasterData){X4N.appendMasterData(this,q6E,S5H);}}}if(!this.masterData || !this.masterData.length){this.masterData=j8V;}if(!e5Q.noCreateDataSet){m8x=this.streamParameters;if(++m8x.count > m8x.maxTicks || e5Q.bypassGovernor){clearTimeout(m8x.timeout);V8D();}else {if(m8x.timeout == -1){m8x.timeout=setTimeout(V8D,m8x.maxWait);}}}this.runAppend("appendMasterData",arguments);this.runAppend("updateChartData",arguments);function m6e(F6_,L46){y_C.E0w();var d4E,f0f,Z9w,P_f,h8a,y6m,K7b;d4E=-383538795;f0f=2094403994;Z9w=+"2";for(var r9z=1;y_C.m7$(r9z.toString(),r9z.toString().length,84157) !== d4E;r9z++){P_f=j8V[F6_];y_C.a3e(38);Z9w+=y_C.k$A("2",1);}if(y_C.b3_(Z9w.toString(),Z9w.toString().length,+"59929") !== f0f){P_f=j8V[F6_];}if(u6J){P_f=P_f[u6J] || ({});}if(L46.Close === null){if(P_f.Open !== undefined){L46.Open=null;}if(P_f.High !== undefined){L46.High=null;}if(P_f.Low !== undefined){L46.Low=null;}if(P_f.Volume !== undefined){L46.Volume=null;};}else {h8a="A";h8a+="s";h8a+="k";y6m="H";y6m+="i";y6m+="g";y6m+="h";if(d7P){if(L46.Volume){L46.Volume=parseInt(L46.Volume,10);}if(!T2s){L46.Volume+=P_f.Volume;}}else {if(!T_b(L46.Volume) && P_f.Volume){L46.Volume=P_f.Volume;}}if(!e5Q.allowReplaceOHL){if(T_b(P_f.Open)){L46.Open=P_f.Open;}if(T_b(P_f.High) && T_b(L46.High)){if(P_f.High > L46.High){L46.High=P_f.High;}}if(T_b(P_f.Low) && T_b(L46.Low)){if(P_f.Low < L46.Low){L46.Low=P_f.Low;}}}["Close","Open",y6m,"Low","Bid",h8a].forEach(function(M$v){if(!T_b(L46[M$v])){L46[M$v]=P_f[M$v];}});for(y4A in S5H.series){K7b="u";K7b+="ndefined";H$L=S5H.series[y4A].parameters.symbolObject.symbol;if(typeof L46[H$L] == "undefined" && typeof P_f[H$L] != K7b){L46[H$L]=P_f[H$L];}}}}};a_E.ChartEngine.prototype.updateCurrentMarketData=function(K54,b_t,I7I,i41){var b1z,X16,u67,U9v,S8H,V8e,G14,O$2,K9s;if(!K54 || !K54.DT){return;}if(!b_t){b_t=this.chart;}b1z=i41 && i41.fromTrade;X16=K54.DT;if(!b1z && this.layout.interval != "tick" && b_t.market){if(b_t.market.market_def){if(!b_t.market.isMarketDate(K54.DT)){return;}if(!a_E.ChartEngine.isDailyInterval(this.layout.interval) && b_t.market.getSession(K54.DT) === null){return;};}u67={begin:K54.DT,interval:this.layout.interval,periodicity:this.layout.periodicity,timeUnit:this.layout.timeUnit};U9v=new a_E.Market(b_t.market.market_def);if(this.extendedHours && this.extendedHours.filter){U9v.enableAllAvailableSessions();}S8H=U9v.newIterator(u67);S8H.next();K54.DT=S8H.previous();}if(this.runPrepend("updateCurrentMarketData",arguments)){return;}V8e=b_t.currentMarketData;if(I7I){if(!V8e[I7I]){V8e[I7I]={};}V8e=V8e[I7I];}["Last","Bid","Ask"].forEach(function(K27){y_C.E0w();if(K54[K27] && typeof K54[K27] == "number"){if(!V8e[K27] || !V8e[K27].DT || V8e[K27].DT <= K54.DT){V8e[K27]={DT:K54.DT,Price:K54[K27],Size:K54[K27 + "Size"],Timestamp:X16};}}});["BidL2","AskL2"].forEach(function(D20){y_C.E0w();if(K54[D20] && K54[D20] instanceof Array){if(!V8e[D20] || !V8e[D20].DT || V8e[D20].DT <= K54.DT){V8e[D20]={DT:K54.DT,Price_Size:K54[D20],Timestamp:X16};}}});if(K54.Close && (!V8e.Last || V8e.Last.DT <= K54.DT)){G14="tic";G14+="k";O$2=K54.Close;K9s=i41 && i41.finalClose;if(K9s || K9s === 0){O$2=K9s;}V8e.Last={DT:K54.DT,Price:O$2,Size:K54.LastSize === undefined && this.layout.interval == G14?K54.Volume:K54.LastSize,Timestamp:K54.LastTime || X16};}V8e.touched=new Date();if(!b1z){delete K54.Last;}this.runAppend("updateCurrentMarketData",arguments);};a_E.ChartEngine.prototype.clearCurrentMarketData=function(Q9R,M93){var T7g,U9Q,v0c;y_C.j07();if(this.runPrepend("clearCurrentMarketData",arguments)){return;}U9Q=[];if(!Q9R){for(T7g in this.charts){U9Q.push(this.charts[T7g]);}}else {U9Q.push(Q9R);}for(T7g=0;T7g < U9Q.length;T7g++){v0c=U9Q[T7g].currentMarketData;if(M93){delete v0c[M93];}else {for(var K0s in v0c){v0c[K0s]=undefined;}}}this.runAppend("clearCurrentMarketData",arguments);};};w6=k5j=>{var O_s=M2dNJ;var p6m;p6m=k5j.CIQ;p6m.ChartEngine.prototype.changeOccurred=function(Y8e){var J1R;J1R={stx:this,symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,layout:this.layout,drawings:this.drawingObjects};if(Y8e == "theme"){this.dispatch("theme",J1R);}if(this.currentlyImporting){return;}if(Y8e == "layout"){this.dispatch("layout",J1R);}else if(Y8e == "vector"){this.dispatch("drawing",J1R);}else if(Y8e == "preferences"){this.dispatch("preferences",J1R);}};O_s.E0w();p6m.ChartEngine.prototype.startAsyncAction=function(){if(!this.pendingAsyncs){this.pendingAsyncs=[];}this.pendingAsyncs.push(!!"1");};p6m.ChartEngine.prototype.registerChartDrawnCallback=function(M11){if(!this.asyncCallbacks){this.asyncCallbacks=[];}this.asyncCallbacks.push(M11);return {fc:M11};};p6m.ChartEngine.prototype.unregisterChartDrawnCallback=function(A3Q){O_s.E0w();for(var k1S=0;k1S < this.asyncCallbacks.length;k1S++){if(this.asyncCallbacks[k1S] == A3Q.fc){this.asyncCallbacks.splice(k1S,1);return;}}};p6m.ChartEngine.prototype.makeAsyncCallbacks=function(){if(!this.asyncCallbacks){return;}if(!this.pendingAsyncs || !this.pendingAsyncs.length){for(var n4u=0;n4u < this.asyncCallbacks.length;n4u++){this.asyncCallbacks[n4u]();}}};p6m.ChartEngine.prototype.completeAsyncAction=function(){O_s.E0w();this.pendingAsyncs.pop();this.makeAsyncCallbacks();};p6m.ChartEngine.prototype.addDomEventListener=function(l3K,n_h,T5P,O0C){l3K.addEventListener(n_h,T5P,O0C);this.eventListeners.push({element:l3K,event:n_h,function:T5P,options:O0C});};p6m.ChartEngine.prototype.addEventListener=function(g_w,F1V){var B89;if(g_w === "*"){for(var K2z in this.callbackListeners){this.callbackListeners[K2z].push(F1V);}}else if(g_w instanceof Array){for(var y8J=0;y8J < g_w.length;y8J++){this.callbackListeners[g_w[y8J]].push(F1V);}}else {B89=this.callbackListeners[g_w];if(!B89){throw new Error("Attempted to add an invalid listener.");}B89.push(F1V);}return {type:g_w,cb:F1V};};p6m.ChartEngine.prototype.removeEventListener=function(U66,g0j){O_s.j07();var d3u,q0X,S5v;if(!U66 || typeof U66 != "object"){U66={type:U66,cb:g0j};}d3u=function(S7a,C_B){for(var c9U=0;c9U < S7a.length;c9U++){if(S7a[c9U] === C_B){S7a.splice(c9U,1);return;}}};q0X=this.callbackListeners;if(U66.type === ((884.42,351.65) <= (6190,424.66)?1950 >= 848.47?(+"605.36",7810) >= "968.42" * 1?"*":(0x24cf,7.85e+3):9.70e+3:(592.06,0x1a78))){for(var e6S in q0X){d3u(q0X[e6S],U66.cb);}return;}if(!q0X[U66.type]){S5v="A";S5v+="ttempted to remove an";S5v+=" invalid li";S5v+="stener.";throw new Error(S5v);}d3u(q0X[U66.type],U66.cb);};p6m.ChartEngine.prototype.dispatch=function(C0t,o8L){var C9$;C9$=this.callbackListeners[C0t];if(C9$){for(var H6a=0;H6a < C9$.length;H6a++){if(C9$[H6a].call(this,o8L) === !0){return !"";}}}C9$=this.callbackListeners[("804.01" - 0,"1940" << 0) === 882?4050 == 8150?(8.98e+3,332.76):"0xbc6" - 0:"*"];if(C9$){for(var F6k=0;F6k < C9$.length;F6k++){if(C9$[F6k].call(this,o8L) === !0){return !0;}}}return !1;};p6m.ChartEngine.prototype.updateListeners=function(T50){var q_F;for(var U5C in this.plugins){q_F=this.plugins[U5C];if(q_F.display && q_F.listener){q_F.listener(this,T50);}}};};K_=w8A=>{var g0k;g0k=w8A.CIQ;g0k.ChartEngine.prototype.prepend=function(d1X,M55){var b$R=M2dNJ;var X1l,y8y,W4a,v_x,I2s;b$R.i3C(1);X1l=b$R.k$A(0,"1886888265");y8y=-+"1339386964";b$R.E0w();W4a=2;for(var J57=1;b$R.m7$(J57.toString(),J57.toString().length,+"41530") !== X1l;J57++){b$R.a3e(4);v_x=b$R.k$A(d1X,"prepend");W4a+=2;}if(b$R.m7$(W4a.toString(),W4a.toString().length,1812) !== y8y){b$R.i3C(84);v_x=b$R.k$A(d1X,"");}if(this instanceof g0k.ChartEngine){I2s=this.hasOwnProperty(v_x)?this[v_x]:[];this[v_x]=[M55].concat(I2s);}else {I2s=g0k.ChartEngine.prototype[v_x] || [];g0k.ChartEngine.prototype[v_x]=[M55].concat(I2s);}return {method:v_x,func:M55};};g0k.ChartEngine.prototype.append=function(R2k,G5d){var w7C,l6_;M2dNJ.i3C(4);w7C=M2dNJ.B0m(R2k,"append");if(this instanceof g0k.ChartEngine){l6_=this.hasOwnProperty(w7C)?this[w7C]:[];this[w7C]=l6_.concat(G5d);}else {l6_=g0k.ChartEngine.prototype[w7C] || [];g0k.ChartEngine.prototype[w7C]=l6_.concat(G5d);}return {method:w7C,func:G5d};};g0k.ChartEngine.prototype.runPrepend=function(o1a,g03,b3J){var I1W,w5s,w1E,c4w;I1W="pre";I1W+="pend";M2dNJ.i3C(4);w5s=M2dNJ.B0m(o1a,I1W);w1E=this.hasOwnProperty(w5s)?this[w5s]:[];w1E=w1E.concat(g0k.ChartEngine.prototype[w5s] || []);if(!w1E.length){return ![];}if(!b3J){b3J=this;}for(var Q_f=0;Q_f < w1E.length;Q_f++){c4w=w1E[Q_f].apply(b3J,g03);if(c4w){return c4w;}}return !({});};g0k.ChartEngine.prototype.runAppend=function(E_6,k2$,P$d){var b$_,T0C,O_H,V6a;M2dNJ.j07();b$_="a";b$_+="pp";b$_+="e";b$_+="nd";M2dNJ.i3C(4);T0C=M2dNJ.k$A(E_6,b$_);O_H=this.hasOwnProperty(T0C)?this[T0C]:[];O_H=O_H.concat(g0k.ChartEngine.prototype[T0C] || []);if(!O_H.length){return !!0;}if(!P$d){P$d=this;}for(var b0Q=+"0";b0Q < O_H.length;b0Q++){V6a=O_H[b0Q].apply(P$d,k2$);if(V6a){return V6a;}}return ![];};g0k.ChartEngine.prototype.removeInjection=function(N_$){var T2I,W1O;T2I=N_$.method;if(this instanceof g0k.ChartEngine){if(!this[T2I]){return;}for(W1O=0;W1O < this[T2I].length;W1O++){if(this[T2I][W1O] == N_$.func){this[T2I].splice(W1O,1);return;}}}else {if(!g0k.ChartEngine.prototype[T2I]){return;}for(W1O=0;W1O < g0k.ChartEngine.prototype[T2I].length;W1O++){if(g0k.ChartEngine.prototype[T2I][W1O] == N_$.func){g0k.ChartEngine.prototype[T2I].splice(W1O,1);return;}}}};g0k.ChartEngine.prototype.remove=function(S3S){var J9S=M2dNJ;J9S.E0w();var S4a;if(this instanceof g0k.ChartEngine){S4a="ap";S4a+="pe";S4a+="nd";J9S.a3e(4);delete this[J9S.k$A(S3S,S4a)];J9S.i3C(4);delete this[J9S.k$A(S3S,"prepend")];}else {J9S.i3C(4);delete g0k.ChartEngine.prototype[J9S.B0m(S3S,"append")];J9S.i3C(4);delete g0k.ChartEngine.prototype[J9S.k$A(S3S,"prepend")];}};};D5=C_0=>{var N7M,m$V;N7M=C_0.CIQ;m$V=C_0.timezoneJS;N7M.ChartEngine.prototype.convertToDataZone=function(b7D){var h7U;if((b7D || b7D === 0) && this.dataZone){h7U=N7M.convertTimeZone(b7D,null,this.dataZone);b7D=new Date(h7U.getFullYear(),h7U.getMonth(),h7U.getDate(),h7U.getHours(),h7U.getMinutes(),h7U.getSeconds(),h7U.getMilliseconds());}return b7D;};N7M.ChartEngine.prototype.debug=function(){};N7M.ChartEngine.prototype.fps=function(I9W,Y_v){var E2o=M2dNJ;var H_s,s6Y,T_I;I9W=I9W || "5" * 1;H_s=new Date().getTime();s6Y=0;T_I=this;E2o.a3e(50);console.log(E2o.B0m(I9W,"Running fps() for "," seconds"));n4a();function n4a(){var S_Z,l5k;E2o.a3e(8);var K3r=E2o.B0m(0,995,5);S_Z=(new Date().getTime() - H_s) / K3r;if(S_Z > I9W){E2o.a3e(40);l5k=E2o.B0m(s6Y,S_Z);E2o.a3e(4);console.log(E2o.k$A(l5k,"FPS="));if(Y_v){Y_v(l5k);}return;}T_I.draw();E2o.j07();s6Y++;if(N7M.ChartEngine.useAnimation){requestAnimationFrame(n4a);}else {setTimeout(n4a,0);}}};N7M.ChartEngine.htmlControls={mSticky:'
',iconsTemplate:'
'};N7M.ChartEngine.prototype.setChartType=function(i9D){var w6S,j8$,S6L,O$8;w6S="la";w6S+="yo";w6S+="u";w6S+="t";j8$="o";j8$+="h";j8$+="l";j8$+="c";S6L=this.layout;O$8=this.chart;if(S6L.aggregationType != j8$){S6L.aggregationType="ohlc";if(O$8.canvas){this.createDataSet();}}S6L.chartType=i9D;this.setMainSeriesRenderer();if(this.mainSeriesRenderer.isAggregation && this.setAggregationType){return this.setAggregationType(i9D);}O$8.defaultChartStyleConfig={type:i9D};if(this.displayInitialized){this.draw();}this.changeOccurred(w6S);};N7M.ChartEngine.prototype.setChartScale=function(c7E){var R34;M2dNJ.E0w();if(!c7E){c7E="linear";}R34={percent:!!({}),relative:!0};this.layout.chartScale=c7E;if(this.chart.canvas){this.draw();}this.changeOccurred("layout");};N7M.ChartEngine.prototype.checkLogScale=function(){var T0s,C_N,l_C,K1O,d4W,A8D;if(this.runPrepend("checkLogScale",arguments)){return;}if(this.layout.chartScale !== "log"){return ![];}T0s=![];if(this.chart.yAxis.lowValue <= +"0"){C_N=455898948;l_C=+"73295123";K1O=2;for(var H1n=1;M2dNJ.m7$(H1n.toString(),H1n.toString().length,74113) !== C_N;H1n++){d4W="n";d4W+="otifi";d4W+="cati";d4W+="on";A8D="l";A8D+="in";A8D+="e";A8D+="ar";this.setChartScale(A8D);this.dispatch(d4W,"logdeactivated");K1O+=2;}if(M2dNJ.b3_(K1O.toString(),K1O.toString().length,12735) !== l_C){this.setChartScale("logdeactivated");this.dispatch("logdeactivated","logdeactivated");}T0s=!!({});}this.runAppend("checkLogScale",arguments);return T0s;};N7M.ChartEngine.prototype.setAdjusted=function(F05){var F5v;F5v="la";F5v+="yo";F5v+="u";F5v+="t";this.layout.adj=F05;if(this.chart.canvas){this.createDataSet();this.draw();}this.changeOccurred(F5v);};N7M.ChartEngine.prototype.padOutPrice=function(j00,m3m){var x1S=M2dNJ;var l7u,C7b,i9Y,r1u;if(j00 !== +"0" && (!j00 || typeof j00 != "number")){return "";}if(!m3m && m3m !== 0){m3m=j00;}x1S.i3C(4);l7u=x1S.B0m(m3m,"");C7b=+"0";if(l7u.indexOf(3120 === (9560,93)?(5.99e+3,!""):(450,+"4930") == 779?(!!"",820.93):116 < (9490,4577)?".":!1) > -+"1"){x1S.i3C(5);var a0h=x1S.k$A(1,2);C7b=l7u.substring(l7u.indexOf(".")).length - a0h;}if(m3m >= 1000){x1S.a3e(14);C7b=Math.max(C7b,x1S.B0m(0,"0"));}else if(m3m < 2){C7b=Math.max(C7b,4);}else {C7b=Math.max(C7b,2);}i9Y=this.internationalizer;if(i9Y){r1u=i9Y.priceFormatters.length;if(C7b >= r1u){x1S.a3e(1);C7b=x1S.B0m(1,r1u);}j00=i9Y.priceFormatters[C7b].format(j00);}else {j00=j00.toFixed(C7b);}return j00;};N7M.ChartEngine.prototype.formatPrice=function(p8f,d0A){var t6_,z$Q,l7E;if(p8f !== 0 && (!p8f || typeof p8f == "undefined")){return "";}if(!d0A){d0A=this.currentPanel;}if(!d0A){d0A=this.chart.panel;}if(!d0A){return p8f.toString();}t6_=d0A.decimalPlaces;if(!t6_ && t6_ !== 0){t6_=d0A.chart.decimalPlaces;}if(!t6_ && t6_ !== "0" >> 64){return p8f.toString();}z$Q=this.internationalizer;if(z$Q){l7E=z$Q.priceFormatters.length;if(t6_ >= l7E){M2dNJ.i3C(1);t6_=M2dNJ.k$A(1,l7E);}p8f=z$Q.priceFormatters[t6_].format(p8f);}else {p8f=p8f.toFixed(t6_);}return p8f;};N7M.ChartEngine.prototype.determineMinMax=function(q0H,B6b,N5W,c0w,E6J,k23,G2G,O_l,w7S){var x60=M2dNJ;var c0u,t$t,L94,s9J,v$z,B6d,N10,i3w,q23,O0L,u7m;x60.j07();x60.a3e(20);var Y5h=x60.k$A(9,10,0,20);c0u=Number.MAX_VALUE * Y5h;t$t=Number.MAX_VALUE;L94=!!"";s9J=q0H.length;if(!w7S){w7S=[];}v$z=[];if(E6J){s9J=E6J;}for(var o6a=+"0";o6a <= s9J + 1;o6a++){if(B6b.length){if(o6a == s9J){B6d=this.getPreviousBar(this.chart,B6b[0],0);}else if(o6a == s9J + 1){B6d=this.getNextBar(this.chart,B6b[0],s9J - +"1");}else {B6d=q0H[o6a];}}if(!B6d)continue;if(!c0w){if(B6d.transform){L94=!!1;B6d=B6d.transform;}else if(L94)continue;;}N10=+"0";for(var R82=0;R82 < B6b.length;R82++){i3w=N7M.existsInObjectChain(B6d,B6b[R82]);if(!i3w)continue;q23=i3w.obj[i3w.member];if(typeof q23 == "number"){q23=[q23];}for(var g4F=0;g4F < q23.length;g4F++){O0L=q23[g4F];if(k23 && O0L instanceof Array){O0L=O0L[0];}if(O0L || O0L === +"0"){if(N5W === !!1 || N5W instanceof Array && N5W.indexOf(B6b[R82]) > -1){N10+=O0L;if(N10 > c0u){c0u=N10;}if(N10 < t$t){t$t=N10;}}else {if(O0L > c0u){c0u=O0L;}if(O0L < t$t){t$t=O0L;}v$z.push({value:O0L,quote:B6d});}}}}if(N5W === !0 || N5W instanceof Array && N5W.indexOf(B6b[R82]) > -1){v$z.push({value:N10,quote:B6d});}}u7m=[t$t,c0u];w7S.forEach(function(b5c){u7m=b5c(v$z,G2G,O_l) || u7m;});if(u7m[1] == Number.MAX_VALUE * -1){x60.a3e(82);u7m[1]=x60.k$A(0,"0");}if(u7m[0] == Number.MAX_VALUE){u7m[0]=0;}return u7m;};N7M.ChartEngine.prototype.initializeDisplay=function(S1W){var y6S=M2dNJ;var b4n,A2d,r15,B2f,U00,B4w,e9i,Y7f,m9v,f8G,q4d,r6E,z3F,x5s,l_2,W7$,b1W,U6j,q5U;b4n="Op";b4n+="e";b4n+="n";A2d="C";A2d+="los";function F5Y(x_J,r6P){var e77,P1X,D8e,n$0,W_H,T_8,L0p,z1r,c$z,Y3v;y6S.E0w();e77=![];P1X=B4w.layout && B4w.layout.studies && B4w.layout.studies[x_J.name];if(P1X && (!r6P || r6P.name == P1X.panel)){for(var z9J in P1X.outputMap){r15.push(z9J);if(P1X.study){if(P1X.study.renderer){r15=r15.concat(N7M.createObjectChainNames(z9J,e9i));}else if(!P1X.study.seriesFN){r15=r15.concat(N7M.createObjectChainNames(z9J,Y7f));}}}for(var q8i=0;q8i <= 2;q8i++){r15.push(P1X.name + "_hist" + (q8i?q8i:""));}e77=!!({});}if(!r6P){return;}x_J.studies=[];x_J.renderers=[];if(e77){x_J.studies.push(x_J.name);}for(var D0y in w8s){D8e=w8s[D0y];n$0=D8e.params;W_H=n$0.panel;if((n$0.yAxis || !B4w.panels[W_H] || B4w.panels[W_H].yAxis) != x_J)continue;if(W_H != r6P.name)continue;T_8=D8e.highLowBars?e9i:Y7f;U00=D8e.bounded;for(var D8d=0;D8d < D8e.seriesParams.length;D8d++){L0p=D8e.seriesParams[D8d];if(L0p.hidden)continue;z1r=void 0;if(L0p.subField){z1r=N7M.createObjectChainNames(L0p.symbol,[L0p.subField]).concat(L0p.symbol);}else if(L0p.symbol){z1r=N7M.createObjectChainNames(L0p.symbol,T_8).concat(L0p.symbol);}else if(L0p.field){z1r=L0p.field;}else if(x_J == S1W.panel.yAxis){z1r=T_8;}if(z1r){r15=r15.concat(z1r);}if(D8e.useSum){B2f=B2f.concat(z1r);}}x_J.renderers.push(D0y);}for(var s3i in B4w.overlays){c$z=B4w.overlays[s3i];if(c$z.panel != r6P.name)continue;if(c$z.name == x_J.name)continue;Y3v=c$z.getYAxis(B4w);if(Y3v != x_J)continue;x_J.studies.push(c$z.name);if(S1W.includeOverlaysInMinMax){F5Y({name:c$z.name});}}}A2d+="e";if(this.runPrepend("initializeDisplay",arguments)){return;}r15=[];B2f=[];U00=!({});B4w=this;e9i=[A2d,b4n,"High","Low"];Y7f=[S1W.defaultPlotField || "Close"];var {mainSeriesRenderer:Z$m}=this;var {dataSegment:v2Y, seriesRenderers:w8s}=S1W;f8G=null;q4d=Math.floor((S1W.width - this.micropixels) / this.layout.candleWidth);r6E=-1082273245;z3F=2135114904;x5s=2;for(var b18=1;y6S.b3_(b18.toString(),b18.toString().length,+"14891") !== r6E;b18++){if(S1W.scroll > S1W.maxTicks && S1W.maxTicks > q4d + +"1"){y6S.a3e(2);var F9C=y6S.k$A(13,6,3,16,11);f8G=v2Y.length - F9C;}l_2=[];x5s+=2;}if(y6S.b3_(x5s.toString(),x5s.toString().length,80815) !== z3F){if(S1W.scroll < S1W.maxTicks || S1W.maxTicks >= q4d - 7){y6S.a3e(131);var G9Z=y6S.k$A(3,3,21,9);f8G=v2Y.length + G9Z;}l_2=[];}for(var c44 in this.panels){W7$=this.panels[c44];l_2=W7$.yaxisLHS.concat(W7$.yaxisRHS);for(var a86=0;a86 < l_2.length;a86++){b1W=l_2[a86];r15=[];B2f=[];U6j=S1W.transformFunc && b1W == S1W.panel.yAxis;F5Y(b1W,W7$);if(!this.currentlyImporting && !b1W.renderers.length && !b1W.studies.length){this.deleteYAxisIfUnused(W7$,b1W);continue;}if(Z$m && Z$m.determineMax){m9v=Z$m.determineMax(v2Y,r15,B2f,!U6j,f8G,U00,W7$,b1W);}else {m9v=this.determineMinMax(v2Y,r15,B2f,!U6j,f8G,U00,W7$,b1W);}if(this.baselineHelper){m9v=this.setBaselineMinMax(m9v,b1W);}b1W.lowValue=m9v[+"0"];b1W.highValue=m9v[1];if(b1W == S1W.panel.yAxis){S1W.lowValue=b1W.lowValue;S1W.highValue=b1W.highValue;}}}q5U=S1W.state.aggregation;if(q5U && q5U.box){y6S.a3e(133);var F8O=y6S.B0m(13,21,20,19,518);S1W.lowValue-=q5U.box / ("2" | F8O);y6S.a3e(134);var T$z=y6S.k$A(20,20,2,9);S1W.highValue+=q5U.box / T$z;}this.runAppend("initializeDisplay",arguments);};N7M.ChartEngine.prototype.setMarket=function(C4z,Y10){if(!N7M.Market){return;}if(!Y10){Y10=this.chart;}M2dNJ.j07();Y10.market=new N7M.Market(C4z);for(var s7B in this.layout.marketSessions){Y10.market.disableSession(s7B,this.layout.marketSessions[s7B]);}};N7M.ChartEngine.prototype.setMarketFactory=function(r2c){this.marketFactory=r2c;};N7M.ChartEngine.prototype.setResizeTimer=function(W8R){M2dNJ.j07();this.resizeDetectMS=W8R;this.resizeHandle=N7M.resizeObserver(this.chart.container,W$Y(this),this.resizeHandle,W8R);function W$Y(I1O,v6U){var H6V;H6V=function(){M2dNJ.j07();if(!I1O.chart.canvas){return;}if(!N7M.isAndroid){if(I1O.chart.canvas.height != Math.floor(I1O.devicePixelRatio * I1O.chart.container.clientHeight) || I1O.chart.canvas.width != Math.floor(I1O.devicePixelRatio * I1O.chart.container.clientWidth)){I1O.resizeChart();}}};M2dNJ.E0w();return function(){var S0O;S0O="undefi";S0O+="n";S0O+="ed";if(typeof ResizeObserver !== S0O){if(N7M.ChartEngine.useAnimation){requestAnimationFrame(H6V);}else {setTimeout(H6V,0);}}else {H6V();}};}};N7M.ChartEngine.prototype.getRenderedItems=function(){var B0C,j9A,m8p,T72,N3o,G4x,J4E,e2e;B0C=this.chart;j9A=this.currentPanel;if(!j9A){return;}m8p=["Open","High","Low","Close"];T72=["Close"];N3o=[];for(var i2c in this.overlays){if(this.overlays[i2c].panel !== j9A.name)continue;N3o=N3o.concat(Object.keys(this.overlays[i2c].outputMap));}for(var K6U in B0C.seriesRenderers){G4x=B0C.seriesRenderers[K6U];if(G4x.params.panel != j9A.name)continue;for(var u58 in G4x.seriesParams){J4E=G4x.seriesParams[u58];e2e=G4x.highLowBars?m8p:T72;if(J4E.subField){N3o=N3o.concat(N7M.createObjectChainNames(J4E.symbol,[J4E.subField])).concat(J4E.symbol);}else if(J4E.symbol){N3o=N3o.concat(N7M.createObjectChainNames(J4E.symbol,e2e)).concat(J4E.symbol);}else if(J4E.field){N3o.push(J4E.field);}else if(j9A == B0C.panel){N3o=N3o.concat(e2e);}}}return N3o;};N7M.ChartEngine.prototype.setTransform=function(k$e,l2Q,z4o){M2dNJ.j07();k$e.transformFunc=l2Q;k$e.untransformFunc=z4o;};N7M.ChartEngine.prototype.unsetTransform=function(E3H){delete E3H.transformFunc;M2dNJ.j07();delete E3H.untransformFunc;for(var S$g=0;E3H.dataSet && S$g < E3H.dataSet.length;S$g++){E3H.dataSet[S$g].transform=null;}};N7M.ChartEngine.prototype.isEquationChart=function(s9Q){M2dNJ.E0w();if(s9Q && s9Q[0] == ((870.22,4250) < (+"6110",441.88)?(6.06e+3,"k"):449.72 <= (668,5962)?("9823" - 0,2497) == (1529,386.21)?(!!1,3.14e+3):"=":"k")){if(!this.allowEquations || !N7M.fetchEquationChart){console.warn("Error, equation chart option requires equationsAdvanced.js");return !1;}return !0;}return !!0;};N7M.ChartEngine.prototype.correctIfOffEdge=function(n9d){var E8A=M2dNJ;var b9R,G8$,X2l,x$_,P_I,K$e,W_C,P31,H4x,a72,X3J,H2v;b9R="correc";b9R+="tIfOffEdge";G8$="cor";G8$+="rectIfO";G8$+="f";G8$+="fEdge";if(this.runPrepend(G8$,arguments)){return;}for(var U2a in this.charts){X2l=this.charts[U2a];x$_=X2l.dataSet;P_I=X2l.maxTicks;K$e=this.layout;W_C=this.minimumLeftBars;P31=Math.min(W_C,P_I);if(X2l.allowScrollPast){E8A.a3e(1);H4x=E8A.k$A(P31,P_I);if(P31 > x$_.length){H4x=P_I - x$_.length;}if(X2l.scroll - H4x >= x$_.length){X2l.scroll=x$_.length + H4x - +"1";this.micropixels=0;}if(X2l.scroll <= P31){X2l.scroll=P31;this.micropixels=0;}}else {if(X2l.scroll < P31){X2l.scroll=P31;}if(X2l.scroll > x$_.length){X2l.scroll=x$_.length;}}if(X2l.allowScrollFuture === !!""){a72=this.getLabelOffsetInPixels(X2l,K$e.chartType) + K$e.candleWidth * X2l.whiteSpaceFutureTicks;E8A.i3C(8);var H6d=E8A.B0m(11,0,12);X3J=P_I - Math.round(a72 / K$e.candleWidth) - H6d;H2v=this.micropixels < 0?X2l.scroll - 1:X2l.scroll;if(H2v < X3J){X2l.scroll=X3J;this.micropixels=+"0";}}}this.runAppend(b9R,arguments);};N7M.ChartEngine.prototype.getStartDateOffset=function(){for(var q2o=0;q2o < this.chart.dataSegment.length;q2o++){if(this.chart.dataSegment[q2o]){return q2o;}}M2dNJ.a3e(13);return M2dNJ.B0m("0",0);};N7M.ChartEngine.prototype.setStartDate=function(v3Z){var b3C;for(var Q_o=0;Q_o < this.chart.dataSet.length;Q_o++){b3C=this.chart.dataSet[Q_o];if(b3C.DT.getTime() == v3Z.getTime()){this.chart.scroll=this.chart.dataSet.length - Q_o;this.draw();return;}}};N7M.ChartEngine.prototype.clearPixelCache=function(){M2dNJ.j07();var K21,O$V;for(var Q_W in this.panels){K21=this.panels[Q_W];K21.cacheHigh=null;K21.cacheLow=null;K21.cacheLeft=1000000;K21.cacheRight=-1;}for(var w8x in this.charts){O$V=this.charts[w8x];if(!O$V.dataSet)continue;for(var x4Y=0;x4Y < O$V.dataSet.length;x4Y++){O$V.dataSet[x4Y].cache={};}}};N7M.ChartEngine.prototype.adjustBackingStore=function(j_I,z_E){var i0W=M2dNJ;var y8L,e6Y,t6G,a0r;this.devicePixelRatio=window.devicePixelRatio || 1;if(this.devicePixelRatio < "1.0" * 1){this.devicePixelRatio=1.0;}y8L=z_E.webkitBackingStorePixelRatio || z_E.mozBackingStorePixelRatio || z_E.msBackingStorePixelRatio || z_E.oBackingStorePixelRatio || z_E.backingStorePixelRatio || 1;e6Y=this.devicePixelRatio / y8L;if(!this.useBackingStore){this.devicePixelRatio=this.adjustedDisplayPixelRatio=1;return;}if(!N7M.isAndroid || N7M.is_chrome || N7M.isFF){t6G=j_I.width;a0r=j_I.height;i0W.a3e(38);j_I.width=i0W.k$A(t6G,e6Y);i0W.i3C(38);j_I.height=i0W.B0m(a0r,e6Y);i0W.a3e(4);j_I.style.width=i0W.k$A("px",t6G);i0W.i3C(4);j_I.style.height=i0W.k$A("px",a0r);z_E.scale(e6Y,e6Y);this.adjustedDisplayPixelRatio=e6Y;this.backing={ratio:e6Y,width:j_I.width,height:j_I.height,styleWidth:t6G,styleHeight:a0r};}};N7M.ChartEngine.prototype.reconstituteBackingStore=function(){var y7Q,s$z;if(!this.useBackingStore || !this.backing){return;}y7Q=[this.chart.canvas];if(this.useBackgroundCanvas){y7Q.push(this.chart.backgroundCanvas);}s$z=this.backing;y7Q.forEach(function(S9J){if(S9J.width == s$z.width){return;}M2dNJ.E0w();S9J.width=s$z.width;S9J.height=s$z.height;S9J.context.scale(s$z.ratio,s$z.ratio);});this.adjustedDisplayPixelRatio=s$z.ratio;this.draw();};N7M.ChartEngine.prototype.disableBackingStore=function(){var W2Z,R5P;if(!this.useBackingStore || !this.backing){return;}W2Z=[this.chart.canvas];M2dNJ.j07();if(this.useBackgroundCanvas){W2Z.push(this.chart.backgroundCanvas);}R5P=this.backing;W2Z.forEach(function(a6I){if(a6I.width == R5P.styleWidth){return;}a6I.width=R5P.styleWidth;a6I.height=R5P.styleHeight;a6I.context.scale(1,1);});M2dNJ.i3C(82);this.adjustedDisplayPixelRatio=M2dNJ.k$A(32,"1");this.draw();};N7M.ChartEngine.prototype.getBackgroundCanvas=function(G58){M2dNJ.j07();if(!G58){G58=this.chart;}return this.useBackgroundCanvas?G58.backgroundCanvas:G58.canvas;};N7M.ChartEngine.prototype.resizeCanvas=function(){var i_p=M2dNJ;var A8L,w5H,I42,U1T,b0f,v_$,W$z,r2A,y5S,S6s;A8L="u";A8L+="n";A8L+="def";A8L+="ined";w5H=this.chart.canvas;I42=this.chart.context;if(w5H && I42){this.floatCanvas.height=this.chart.tempCanvas.height=this.chart.backgroundCanvas.height=w5H.height=this.chart.container.clientHeight;this.floatCanvas.width=this.chart.tempCanvas.width=this.chart.backgroundCanvas.width=w5H.width=this.chart.container.clientWidth;this.adjustBackingStore(w5H,I42);this.adjustBackingStore(this.chart.tempCanvas,this.chart.tempCanvas.context);this.adjustBackingStore(this.floatCanvas,this.floatCanvas.context);this.adjustBackingStore(this.chart.backgroundCanvas,this.chart.backgroundCanvas.context);}U1T=this.container.getBoundingClientRect();this.top=U1T.top;this.left=U1T.left;this.canvasWidth=this.chart.canvasWidth=this.chart.container.clientWidth;this.right=this.left + this.canvasWidth;this.height=this.chart.container.clientHeight;this.width=this.right - this.left;i_p.j07();if(this.width === 0 && !this.container.dimensionlessCanvas && this.container.closest("html")){console.log("warning: zero width chart. Check CSS for chart container.");}this.bottom=this.top + this.height;this.calculateYAxisPositions();this.chart.canvasRight=this.right;this.chart.canvasHeight=this.height;b0f=this.layout.candleWidth;if(typeof b0f == A8L){b0f=8;}for(var v5H in this.charts){v_$=this.charts[v5H];this.setCandleWidth(b0f,v_$);if(v_$.scroll < v_$.width / b0f){v_$.scroll=Math.floor(v_$.width / b0f);W$z=Math.round(this.preferences.whitespace / this.layout.candleWidth);v_$.scroll-=W$z;}r2A=10;try{S6s="1";S6s+="0";S6s+=":";S6s+="00";i_p.a3e(135);var z2D=i_p.B0m(3,1,11,0,12);y5S=I42.measureText(S6s).width * z2D;}catch(A$5){y5S=100;}while(r2A > 1){if(this.chart.width / y5S > r2A)break;r2A/=1.5;}v_$.xAxis.autoComputedTickSizePixels=Math.round(this.chart.width / r2A);if(v_$.xAxis.autoComputedTickSizePixels < "1" >> 32){i_p.a3e(82);v_$.xAxis.autoComputedTickSizePixels=i_p.B0m(0,"1");}}};N7M.ChartEngine.prototype.setCandleWidth=function(e1P,V4w){if(!V4w){V4w=this.chart;}e1P=this.constrainCandleWidth(e1P);M2dNJ.j07();this.layout.candleWidth=e1P;M2dNJ.a3e(136);var P3E=M2dNJ.k$A(4,7,3,19,85);V4w.maxTicks=Math.round(V4w.width / e1P) + P3E;};N7M.ChartEngine.prototype.constrainCandleWidth=function(E5V){var Y9A,f8K,k0M;Y9A=this.minimumCandleWidth;f8K=this.maximumCandleWidth;k0M=this.animations.zoom;M2dNJ.j07();if(Y9A && E5V < Y9A){E5V=Y9A;if(k0M && k0M.running){k0M.stop();}}if(f8K && E5V > f8K){E5V=f8K;if(k0M && k0M.running){k0M.stop();}}return E5V;};N7M.ChartEngine.prototype.resizeChart=function(W7w){M2dNJ.E0w();var o4P,n6W;o4P="resi";o4P+="zeCh";o4P+="art";if(this.runPrepend("resizeChart",arguments)){return;}if(W7w !== !!0){W7w=!!"1";}if(W7w){this.preAdjustScroll();}n6W=this.chart.canvasHeight;this.resizeCanvas();if(W7w){this.postAdjustScroll();}if(this.displayInitialized){this.adjustPanelPositions();this.draw();;}else if(this.chart.canvasHeight !== "0" >> 64 && n6W === 0){this.adjustPanelPositions();this.draw();}this.doDisplayCrosshairs();this.updateChartAccessories();this.runAppend(o4P,arguments);};N7M.ChartEngine.prototype.clear=function(){M2dNJ.j07();var B2c;this.displayInitialized=!"1";for(var c0W in this.layout.studies){B2c=this.layout.studies[c0W];N7M.getFn("Studies.removeStudy")(this,B2c);}if(this.controls.chartControls){this.controls.chartControls.style.display="none";}this.chart.panel.title.innerHTML="";this.chart.panel.title.appendChild(document.createTextNode(this.chart.panel.display));};N7M.ChartEngine.prototype.fillScreen=function(){var g$p,N8A,I2J,D7y,V7j;g$p=this.chart;N8A=this.layout.candleWidth;I2J=g$p.width - this.preferences.whitespace;D7y=g$p.dataSet.length;if(D7y * N8A >= I2J){this.draw();return;}if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){D7y--;}M2dNJ.a3e(40);V7j=M2dNJ.k$A(I2J,D7y);this.setCandleWidth(V7j,g$p);this.home({maintainWhitespace:!![]});};N7M.ChartEngine.prototype.setMaxTicks=function(o_v,L$J){M2dNJ.j07();var c4Y;if(!L$J){L$J={};}o_v=Math.round(o_v);if(o_v < +"2"){o_v=2;}c4Y=L$J.padding?L$J.padding:"0" * 1;this.layout.candleWidth=(this.chart.width - c4Y) / o_v;if(!this.layout.candleWidth){this.layout.candleWidth=8;}this.chart.maxTicks=Math.round(this.chart.width / this.layout.candleWidth - +"0.499");if(L$J.padding || L$J.padding === ("0" | 0)){M2dNJ.a3e(100);this.chart.scroll=M2dNJ.k$A("1",o_v);};};N7M.ChartEngine.prototype.initializeChart=function(L0M){var v3$=M2dNJ;var F6f,D0b,B8L,X1k,x66,g_c,v8_,g1E,B0s,y8s,R3Y,v4E,S2z,D$a,z0d,O36,Z8b,d5j,b_8,S2v,b6T,P0T,y5y,C7L,v3R,r$p,f9w,i$S;F6f="ca";F6f+="n";F6f+="v";F6f+="as";D0b="canva";D0b+="s";if(this.runPrepend("initializeChart",arguments)){return;}B8L=this.chart;if(!B8L.symbolObject.symbol){B8L.symbolObject.symbol=B8L.symbol;}if(this.locale){this.setLocale(this.locale);}if(!this.displayZone && N7M.ChartEngine.defaultDisplayTimeZone){this.setTimeZone(null,N7M.ChartEngine.defaultDisplayTimeZone);}this.resetDynamicYAxis({noRecalculate:!![]});this.calculateYAxisPositions();this.micropixels=0;if(L0M){B8L.container=L0M;}else {L0M=B8L.container;}L0M.stx=this;if(!L0M.CIQRegistered){L0M.CIQRegistered=!![];N7M.ChartEngine.registeredContainers.push(L0M);}if(this.registerHTMLElements){this.registerHTMLElements();}X1k=B8L.canvas;x66=B8L.backgroundCanvas;g_c=B8L.tempCanvas;v8_=this.floatCanvas;g1E=B8L.canvasShim;if(X1k && document.createElement(D0b).getContext){if(!X1k.id){v3$.a3e(1);B0s=v3$.B0m(0,"1029856105");y8s=1460539916;R3Y=+"2";for(var V91=1;v3$.m7$(V91.toString(),V91.toString().length,25836) !== B0s;V91++){L0M.removeChild(X1k);B8L.canvas=1;R3Y+=2;}if(v3$.b3_(R3Y.toString(),R3Y.toString().length,50752) !== y8s){L0M.removeChild(X1k);B8L.canvas=null;}}if(g_c && !g_c.id){L0M.removeChild(g_c);B8L.tempCanvas=null;}if(v8_ && !v8_.id){L0M.removeChild(v8_);this.floatCanvas=null;}if(x66 && !x66.id){L0M.removeChild(x66);v4E=-1878981405;S2z=-893771909;D$a=+"2";for(var L9X=1;v3$.m7$(L9X.toString(),L9X.toString().length,42513) !== v4E;L9X++){v3$.a3e(13);B8L.backgroundCanvas=v3$.k$A("1",0);D$a+=+"2";}if(v3$.b3_(D$a.toString(),D$a.toString().length,95637) !== S2z){B8L.backgroundCanvas=+"8";}B8L.backgroundCanvas=null;}}else {this.setCandleWidth(this.layout.candleWidth);}if(!B8L.backgroundCanvas){x66=B8L.backgroundCanvas=document.createElement("canvas");}L0M.appendChild(x66);O4l(x66);if(!B8L.canvasShim){g1E=B8L.canvasShim=document.createElement("div");}g1E.className="stx-canvas-shim";L0M.appendChild(g1E);if(!B8L.canvas){X1k=B8L.canvas=document.createElement(F6f);}L0M.appendChild(X1k);O4l(X1k);B8L.context=X1k.context;if(!B8L.tempCanvas){g_c=B8L.tempCanvas=document.createElement("canvas");}L0M.appendChild(g_c);O4l(g_c,!0);if(!this.floatCanvas){v8_=this.floatCanvas=document.createElement("canvas");}L0M.appendChild(v8_);O4l(v8_,!!1);this.resizeCanvas();if(N7M.isAndroid){g_c.ontouchstart=v8_.ontouchstart=function(j5c){if(j5c.preventDefault){j5c.preventDefault();}};}function O4l(z3b,y$Y){var Z_f,s0n;Z_f="a";Z_f+="b";Z_f+="so";Z_f+="lute";z3b.context=z3b.getContext("2d");z3b.context.lineWidth=1;s0n=z3b.style;s0n.position=Z_f;v3$.E0w();s0n.left="0px";if(y$Y){s0n.display="none";}}z0d=this.panels;B8L.panel.display=B8L.symbol;if(B8L.symbolDisplay){B8L.panel.display=B8L.symbolDisplay;}this.adjustPanelPositions();B8L.panel=z0d[B8L.name];for(var o9n in z0d){O36=z0d[o9n].yaxisLHS.concat(z0d[o9n].yaxisRHS);for(var s07=0;s07 < O36.length;s07++){O36[s07].height=z0d[o9n].yAxis.height;this.calculateYAxisMargins(O36[s07]);;}}this.initialWhitespace=this.preferences.whitespace;if(B8L.dataSet && B8L.dataSet.length > 0){B8L.scroll=Math.floor(B8L.width / this.layout.candleWidth);Z8b=Math.round(this.preferences.whitespace / this.layout.candleWidth);B8L.scroll-=Z8b;}if(N7M.touchDevice){d5j=".ve";d5j+="c";d5j+="torTrashC";d5j+="an";b_8=".overlayEd";b_8+="it";S2v=L0M.querySelector(b_8);b6T=L0M.querySelector(".overlayTrashCan");P0T=L0M.querySelector(d5j);y5y=function(x97,X1z,J0K){return function(T5t){x97.deleteHighlighted(X1z,J0K);};};if(S2v){N7M.safeClickTouch(S2v,y5y(this,!!"1",!!({})));if(b6T){N7M.safeClickTouch(b6T,y5y(this,!1));}}else if(b6T){N7M.safeClickTouch(b6T,y5y(this,!!({})));}if(P0T){N7M.safeClickTouch(P0T,y5y(this,!!1));}}if(this.manageTouchAndMouse){this.registerTouchAndMouseEvents();}if(this.handleMouseOut){L0M.onmouseout=(function(G$C){return function(I3P){G$C.handleMouseOut(I3P);};})(this);N7M.smartHover();}if(this.abortDrawings){this.abortDrawings();}this.undoStamps=[];for(var T7Z in z0d){C7L=z0d[T7Z];if(C7L.markerHolder){L0M.removeChild(C7L.markerHolder);C7L.markerHolder=null;}}for(var k25 in this.plugins){v3R=this.plugins[k25];if(v3R.display){if(v3R.initializeChart){v3R.initializeChart(this);}}}if(!this.resizeListenerInitialized){r$p="r";r$p+="e";r$p+="si";r$p+="ze";f9w=this;this.resizeListenerInitialized=!!({});i$S=function(){v3$.E0w();return function(P9r){f9w.resizeChart();};};this.addDomEventListener(window,r$p,i$S(),!![]);}if(B8L.baseline.userLevel){B8L.baseline.userLevel=null;}this.setResizeTimer(this.resizeDetectMS);this.runAppend("initializeChart",arguments);};N7M.ChartEngine.prototype.destroy=function(){var k_T=M2dNJ;var x25,n7N,Q0i,Q5v;k_T.E0w();this.setResizeTimer(0);if(this.quoteDriver){this.quoteDriver.die();}this.styles={};for(var t5E=0;t5E < this.eventListeners.length;t5E++){x25=this.eventListeners[t5E];x25.element.removeEventListener(x25.event,x25["function"],x25.options);}this.touchAndMouseEventsRegistered=!!"";this.eventListeners=[];if(this.streamParameters.timeout){clearTimeout(this.streamParameters.timeout);}n7N=N7M.ChartEngine.registeredContainers;Q0i=n7N.indexOf(this.chart.container);if(Q0i > -1){k_T.a3e(38);n7N.splice(Q0i,k_T.k$A("1",1));}if(this.slider){Q5v=n7N.indexOf(this.slider.slider.chart.container);if(Q5v > -1){k_T.a3e(14);n7N.splice(Q5v,k_T.k$A(0,"1"));}}};N7M.ChartEngine.prototype.preAdjustScroll=function(o0a){if(!o0a){o0a=this.chart;}M2dNJ.j07();this.previousAdjust={chart:o0a,scroll:o0a.scroll,maxTicks:o0a.maxTicks};};N7M.ChartEngine.prototype.postAdjustScroll=function(){M2dNJ.E0w();var s7w;if(!this.previousAdjust){return;}s7w=this.previousAdjust.chart;s7w.scroll=this.previousAdjust.scroll + (s7w.maxTicks - this.previousAdjust.maxTicks);if(this.displayInitialized){this.draw();}};N7M.ChartEngine.prototype.translateIf=function(j5N){if(this.translationCallback){return this.translationCallback(j5N);}M2dNJ.E0w();return j5N;};N7M.ChartEngine.prototype.doCleanupDates=function(C0G,J0S){var e9C=M2dNJ;var r8W,o4F,s_w,n9B,w$1,M1E;if(!C0G || !C0G.length){return;}for(var w_9=0;w_9 < C0G.length;w_9++){r8W=C0G[w_9];o4F=r8W.DT;if(!o4F && !r8W.Date)continue;if(r8W.DT && Object.prototype.toString.call(o4F) == "[object String]" && o4F.length <= 10){o4F=new Date(o4F);o4F.setMinutes(o4F.getMinutes() + o4F.getTimezoneOffset());}else {s_w="[ob";s_w+="j";s_w+="ect Date]";n9B=!"";if(!r8W.DT){o4F=N7M.strToDateTime(r8W.Date);if(r8W.Date.length <= 10){n9B=!({});}}if(Object.prototype.toString.call(o4F) != s_w){o4F=new Date(o4F);}if(m$V.Date && this.dataZone && n9B){w$1=new m$V.Date(o4F.getFullYear(),o4F.getMonth(),o4F.getDate(),o4F.getHours(),o4F.getMinutes(),this.dataZone);e9C.a3e(137);var h_j=e9C.B0m(6,7017,13,2,8000);M1E=o4F.getSeconds() * h_j + o4F.getMilliseconds();o4F=new Date(w$1.getTime() + M1E);}if(N7M.ChartEngine.isDailyInterval(J0S)){e9C.i3C(82);o4F.setHours(e9C.k$A(0,"0"),0,0,+"0");}}if(!r8W.DT){r8W.Date=N7M.yyyymmddhhmmssmmm(o4F);}r8W.DT=o4F;}};N7M.ChartEngine.prototype.doCleanupGaps=function(c7q,L00,c6x){var n6p=M2dNJ;var P6u,g6C,s4E,V9O,s1T,Z6r,i7V,w$E,z1R,t6Q,a4B,E5p,i99,X$I,n$2;P6u="ti";P6u+="c";P6u+="k";if(!c7q || !c7q.length){return c7q;}g6C=this.layout.interval;c6x=c6x?c6x:{};if(!L00){L00=this.chart;}if(!N7M.Market || !L00.market){return c7q;}if(!c6x.noCleanupDates){this.doCleanupDates(c7q,g6C);}s4E=c6x.cleanupGaps;if(s4E === ![]){return c7q;}if(!s4E || s4E === !![]){s4E=this.cleanupGaps || s4E;}n6p.a3e(110);V9O=n6p.k$A(s4E,"gap");if(!s4E){return c7q;}if(g6C == P6u){return c7q;}if(g6C == "month" || g6C == "week"){if(this.dontRoll){return c7q;}g6C="day";}n6p.E0w();s1T=function(d9Q){if(d9Q.DT){if(Object.prototype.toString.call(d9Q.DT) != "[object Date]"){return new Date(d9Q.DT);}return new Date(+d9Q.DT);}n6p.E0w();return N7M.strToDateTime(d9Q.Date);};Z6r=[];i7V=c7q[0];Z6r.push(i7V);w$E={begin:s1T(i7V),interval:g6C,periodicity:1,timeUnit:this.layout.timeUnit};z1R=new N7M.Market(L00.market.market_def);t6Q=z1R.newIterator(w$E);if(this.extendedHours && this.extendedHours.filter){t6Q.market.enableAllAvailableSessions();}a4B=L00.defaultPlotField;for(var K6V=0;K6V < c7q.length;K6V++){if(c7q[K6V][a4B] !== undefined)break;if(c7q[K6V].Value !== undefined){E5p="V";E5p+="a";E5p+="l";E5p+="ue";a4B=E5p;break;}}function O06(d_4,U6m){var i7$,i6O,I88,H5S,l4F;i7$=c6x.field;i6O=i7$?i7V[i7$]:i7V;if(i6O === undefined){i6O={};}I88=V9O?null:i6O[a4B];n6p.j07();H5S=V9O?null:i6O.Adj_Close;while(+d_4 < +U6m){l4F={DT:d_4};if(i7$){}else {Z6r.push(l4F);N7M.extend(l4F,{Open:I88,High:I88,Low:I88,Close:I88,Volume:0,Adj_Close:H5S});}d_4=t6Q.next();}}for(var d$K=+"1";d$K < c7q.length;d$K++){X$I=c7q[d$K];i99=t6Q.next();n$2=s1T(X$I);if(i99 < n$2){O06(i99,n$2);i99=t6Q.market._convertFromMarketTZ(t6Q.begin,t6Q.outZone);}while(n$2 < i99){if(++d$K == c7q.length){return Z6r;}g5y(i7V,X$I);Z6r.push(X$I);i7V=X$I;X$I=c7q[d$K];n$2=s1T(X$I);}if(i99 < n$2){d$K--;i99=t6Q.previous();}else {g5y(i7V,X$I);Z6r.push(X$I);i7V=X$I;}}function g5y(o1I,m5t){var w5V,U7_,f$C,m_A,J0D;w5V=c6x.field;if(w5V){U7_="und";U7_+="efi";U7_+="ne";U7_+="d";f$C="un";f$C+="def";f$C+="i";f$C+="ned";if(typeof o1I[w5V] != f$C && typeof m5t[w5V] == U7_){m5t[w5V]=V9O?null:o1I[w5V];}return;}if(V9O){return;}m_A=o1I[a4B];J0D=m5t[a4B];if(typeof m_A != "undefined" && typeof J0D == "undefined"){N7M.ensureDefaults(m5t,{Close:m_A,Open:m_A,High:m_A,Low:m_A,Volume:"0" ^ 0,Adj_Close:o1I.Adj_Close});}}return Z6r;};N7M.ChartEngine.prototype.getCreatingLibrary=function(){M2dNJ.E0w();return C_0;};};S8=d7o=>{var k4g;k4g=d7o.CIQ;k4g.ChartEngine.Panel=function(u25,N5Y){if(N5Y){this.yAxis=N5Y;}else {this.yAxis=new k4g.ChartEngine.YAxis();}this.name=u25;M2dNJ.E0w();this.state={};;};k4g.extend(k4g.ChartEngine.Panel.prototype,{name:null,display:null,chart:null,yAxis:null,shareChartXAxis:null,top:null,bottom:null,height:null,percent:null,displayEdgeIfPadded:!!({}),noDrag:!"1",exportable:!!({})},!!1);k4g.ChartEngine.prototype.whichPanel=function(o$Y){var d7m;for(var I13 in this.panels){d7m=this.panels[I13];if(d7m.hidden)continue;if(o$Y >= d7m.top && o$Y < d7m.bottom){return d7m;}}return null;};k4g.ChartEngine.prototype.panelExists=function(E9r){var L2C;for(var p4q in this.panels){L2C=this.panels[p4q];if(L2C.name == E9r){return !!1;}}return !1;};k4g.ChartEngine.prototype.storePanels=function(){var j1a,x7_;if(!this.layout){this.layout={};}j1a=this.layout;j1a.panels={};for(var m0W in this.panels){x7_=this.panels[m0W];j1a.panels[x7_.name]={percent:x7_.percent,display:x7_.display,yAxis:x7_.yAxis};}};k4g.ChartEngine.prototype.savePanels=function(y27){this.storePanels();if(y27 !== !({})){this.changeOccurred("layout");}};k4g.ChartEngine.prototype.privateDeletePanel=function(a01){var G4L,H_P,g4Q,D8f,j7u;M2dNJ.j07();for(var P9I in this.layout.studies){G4L=this.layout.studies[P9I];if(G4L.panel == a01.name){this.cleanupRemovedStudy(G4L);}}delete this.panels[a01.name];for(var U6A in this.overlays){if(this.overlays[U6A].panel == a01.name){if(this.layout.studies){this.cleanupRemovedStudy(this.layout.studies[U6A]);}delete this.overlays[U6A];}}for(var Q$A in this.chart.series){if(this.chart.series[Q$A].parameters.panel == a01.name){this.removeSeries(this.chart.series[Q$A],this.chart);}}if(a01.holder){this.chart.container.removeChild(a01.holder);if(this.getMarkerArray){H_P=-+"639680506";g4Q=1489667906;D8f=2;for(var I6O=1;M2dNJ.b3_(I6O.toString(),I6O.toString().length,"32368" | 80) !== H_P;I6O++){j7u=this.getMarkerArray("",a01.name);D8f+=2;}if(M2dNJ.m7$(D8f.toString(),D8f.toString().length,13215) !== g4Q){j7u=this.getMarkerArray("panelName",a01.name);}for(var F$O="0" | 0;F$O < j7u.length;F$O++){this.removeFromHolder(j7u[F$O]);}}}if(a01.handle){a01.handle.remove();}this.currentPanel=null;};k4g.ChartEngine.prototype.plotsInPanel=function(W7R){var S2o,T95,Q5G,N9S;S2o=[];T95=W7R;if(typeof W7R == "object"){T95=W7R.name;}for(var J0c in this.layout.studies){Q5G=this.layout.studies[J0c];if(T95 === Q5G.panel){S2o.push(Q5G);}}for(var s48 in this.chart.seriesRenderers){N9S=this.chart.seriesRenderers[s48];if(T95 === N9S.params.panel){S2o.push(N9S);}}return S2o;};k4g.ChartEngine.prototype.checkForEmptyPanel=function(N9J,k9x,A_L){var l1R,k9A;if(!N9J){return !!0;}l1R=N9J;if(typeof N9J == "object"){l1R=N9J.name;}if(l1R === this.chart.name){return ![];}if(!A_L){A_L=[];}else if(!(A_L instanceof Array)){A_L=[A_L];}k9A=this.plotsInPanel(N9J);for(var W3i=0;W3i < k9A.length;W3i++){if(A_L.indexOf(k9A[W3i]) == -1){return !!0;}}if(!k9x){this.panelClose(this.panels[l1R]);}return !!({});};k4g.ChartEngine.prototype.panelClose=function(O1s){var T$d,X_v;T$d="pa";T$d+="n";T$d+="elClos";T$d+="e";if(!O1s){return;}if(this.runPrepend(T$d,arguments)){return;}this.cancelTouchSingleClick=!![];k4g.ChartEngine.drawingLine=!!"";if(O1s.soloing){this.panelSolo(O1s);}if(this.charts[O1s.name]){for(var r4x in this.panels){X_v=this.panels[r4x];if(X_v.chart.name == O1s.name){this.privateDeletePanel(X_v);}}delete this.charts[O1s.name];}else {this.privateDeletePanel(O1s);}if(!this.currentlyImporting){this.showCrosshairs();this.resetDynamicYAxis({noRecalculate:!!({})});this.calculateYAxisPositions();this.draw();this.savePanels();}this.userPointerDown=this.grabbingScreen=!1;if(this.openDialog){this.openDialog="";}this.runAppend("panelClose",arguments);};k4g.ChartEngine.prototype.deleteAllPanels=function(){var a7l;for(var e4P in this.panels){a7l=this.panels[e4P];this.privateDeletePanel(a7l);}this.layout.panels={};this.panels={};};k4g.ChartEngine.prototype.panelUp=function(n0D){var g47,n6i,S4H,R6a;this.cancelTouchSingleClick=!![];M2dNJ.j07();k4g.ChartEngine.drawingLine=!1;this.showCrosshairs();g47={};n6i=0;for(S4H in this.panels){if(S4H == n0D.name)break;n6i++;}if(!n6i){return;}R6a=0;for(S4H in this.panels){if(R6a == n6i - 1){g47[n0D.name]=n0D;}if(S4H == n0D.name)continue;g47[S4H]=this.panels[S4H];R6a++;}this.panels=g47;this.adjustPanelPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.panelDown=function(c0H){var Q6_,b8k,b3M,K3u,i8V;this.cancelTouchSingleClick=!!({});k4g.ChartEngine.drawingLine=!1;this.showCrosshairs();Q6_={};b8k=0;for(b3M in this.panels){if(b3M == c0H.name)break;b8k++;}K3u=0;for(b3M in this.panels){K3u++;}if(b8k == K3u - 1){return;}i8V=0;for(b3M in this.panels){if(b3M == c0H.name){i8V++;continue;}Q6_[b3M]=this.panels[b3M];if(i8V == b8k + 1){Q6_[c0H.name]=c0H;}i8V++;}this.panels=Q6_;this.adjustPanelPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.panelSolo=function(T6i){var o5b,B$C,o9t,G7v;this.cancelTouchSingleClick=!![];k4g.ChartEngine.drawingLine=![];this.showCrosshairs();o5b=!"";if(T6i.soloing){o9t="stx";o9t+="_solo_lit";o5b=!1;T6i.soloing=!"1";T6i.solo.classList.remove(o9t);T6i.percent=T6i.oldPercent;if(T6i.name != "chart"){if(this.soloPanelToFullScreen){if(T6i.percent == ("1" | 0)){for(B$C in this.panels){G7v=this.panels[B$C];if(G7v != T6i){T6i.percent-=G7v.percent;}}}}else {this.chart.panel.percent=this.chart.panel.oldPercent;}}if(this.soloPanelToFullScreen){this.xAxisAsFooter=this.chart.panel.oldXAxisAsFooter;}}else {T6i.soloing=!![];T6i.solo.classList.add("stx_solo_lit");T6i.oldPercent=T6i.percent;this.chart.panel.oldXAxisAsFooter=this.xAxisAsFooter;if(T6i.name != "chart"){if(this.soloPanelToFullScreen){this.xAxisAsFooter=!0;}else {this.chart.panel.oldPercent=this.chart.panel.percent;M2dNJ.i3C(58);var I$_=M2dNJ.B0m(2,15,7,11);T6i.percent=I$_ - this.chart.panel.percent;}}}for(B$C in this.panels){this.panels[B$C].hidden=o5b;}if(!this.soloPanelToFullScreen){this.chart.panel.hidden=![];}T6i.hidden=!!"";this.resetDynamicYAxis({noRecalculate:!""});this.calculateYAxisPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.calculatePanelPercent=function(r7G){var G6U;G6U=r7G.bottom - r7G.top;r7G.percent=G6U / this.chart.canvasHeight;};k4g.ChartEngine.prototype.resizePanels=function(){var T81=M2dNJ;var G3l,A$Q,P5k,M6x,E42,C2w;if(!k4g.ChartEngine.resizingPanel){return;}E42=k4g.ChartEngine.crosshairY > this.resolveY(k4g.ChartEngine.resizingPanel.top);for(var W23 in this.panels){if(this.panels[W23] == k4g.ChartEngine.resizingPanel)break;if(this.panels[W23].hidden)continue;G3l=this.panels[W23];}C2w=this.backOutY(k4g.ChartEngine.crosshairY);if(E42){P5k=k4g.ChartEngine.resizingPanel.yaxisLHS.concat(k4g.ChartEngine.resizingPanel.yaxisRHS);for(M6x=0;M6x < P5k.length;M6x++){T81.a3e(138);var h4U=T81.B0m(28,8,3,19,5);A$Q=P5k[M6x].initialMarginTop + P5k[M6x].initialMarginBottom + h4U;if(C2w > P5k[M6x].bottom - A$Q){C2w=P5k[M6x].bottom - A$Q;}}}else {P5k=G3l.yaxisLHS.concat(G3l.yaxisRHS);for(M6x=0;M6x < P5k.length;M6x++){T81.a3e(139);var L2v=T81.B0m(40,7,3,22,4);A$Q=P5k[M6x].initialMarginTop + P5k[M6x].initialMarginBottom + L2v;if(C2w < P5k[M6x].top + A$Q){C2w=P5k[M6x].top + A$Q;}}}k4g.ChartEngine.crosshairY=this.resolveY(C2w);G3l.bottom=C2w;k4g.ChartEngine.resizingPanel.top=C2w;this.calculatePanelPercent(G3l);this.calculatePanelPercent(k4g.ChartEngine.resizingPanel);this.adjustPanelPositions();this.draw();this.savePanels();};k4g.ChartEngine.prototype.isPanelAboveChart=function(b0B){for(var J$e in this.panels){if(J$e == "chart"){return ![];}if(J$e == b0B.name){return !![];}}return !({});};k4g.ChartEngine.prototype.adjustPanelPositions=function(){var r1w=M2dNJ;var z3n,h85,r7Q,J8t,Q7X,w3e,q2O,l29,n5s,W64,i$j,E2V,V7R,Q0p,y8R,r13,M5a,h3x,W1Z,O7U,r6_,W76,u5p;z3n="st";z3n+="x-s";z3n+="how";var {chart:G38, panels:Q4F}=this;if(G38.tempCanvas){k4g.clearCanvas(G38.tempCanvas,this);}if(this.runPrepend("adjustPanelPositions",arguments)){return;}h85=0;r7Q=G38.canvasHeight;J8t=!"1";Q7X=+"0";r1w.i3C(82);w3e=r1w.k$A(0,"0");q2O=!!"";for(l29 in Q4F){n5s=Q4F[l29];if(isNaN(n5s.percent) || n5s.percent <= 0){n5s.percent=0.05;}if(n5s.hidden)continue;Q7X+=n5s.percent;w3e++;if(n5s.soloing){q2O=!![];}}for(l29 in Q4F){W64=0;n5s=Q4F[l29];if(n5s.hidden){if(n5s.markerHolder){n5s.markerHolder.style.display="none";}continue;}if(this.manageTouchAndMouse){if(n5s.up){if(!J8t){J8t=!!({});n5s.up.classList.remove("stx-show");}else {if(this.displayIconsUpDown){n5s.up.classList.add("stx-show");}}}if(n5s.solo){if(q2O){i$j="st";i$j+="x";i$j+="-s";i$j+="how";if(n5s.soloing && this.displayIconsSolo){n5s.solo.classList.add("stx-show");}else {n5s.solo.classList.remove(i$j);}}else if(w3e == 1){n5s.solo.classList.remove("stx-show");}else if(w3e == 2 && !this.soloPanelToFullScreen){n5s.solo.classList.remove("stx-show");}else {E2V="stx-sh";E2V+="ow";if(this.displayIconsSolo){n5s.solo.classList.add(E2V);}}}if(n5s.down){if(w3e == 1){n5s.down.classList.remove("stx-show");}else {if(this.displayIconsUpDown){n5s.down.classList.add("stx-show");}}}if(n5s.edit){if(n5s.editFunction){n5s.edit.classList.add("stx-show");}else {n5s.edit.classList.remove("stx-show");}}if(n5s.close){V7R="s";V7R+="t";V7R+="x-sh";V7R+="ow";if(this.displayIconsClose){n5s.close.classList.add(V7R);}else {n5s.close.classList.remove("stx-show");}}}n5s.percent=n5s.percent / Q7X;n5s.top=h85;n5s.bottom=n5s.top + r7Q * n5s.percent;n5s.height=n5s.bottom - n5s.top;if(n5s.chart.name == n5s.name){n5s.chart.top=n5s.top;n5s.chart.bottom=n5s.bottom;n5s.chart.height=n5s.height;}h85=n5s.bottom;if(n5s.yaxisLHS){Q0p=n5s.yaxisLHS.concat(n5s.yaxisRHS);for(var c_a="0" << 64;c_a < Q0p.length;c_a++){y8R=Q0p[c_a];if(y8R.zoom && y8R.height > 0){W64=y8R.zoom / y8R.height;}this.adjustYAxisHeightOffset(n5s,y8R);y8R.height=y8R.bottom - y8R.top;if(W64){y8R.scroll*=W64 * y8R.height / y8R.zoom;y8R.zoom=W64 * y8R.height;if(y8R.zoom > y8R.height){y8R.zoom=0;y8R.scroll=0;}}if(!y8R.high && y8R.high !== 0){y8R.high=100;y8R.low=0;y8R.shadow=100;}y8R.multiplier=y8R.height / y8R.shadow;if(y8R.position === "none"){this.calculateYAxisMargins(y8R);}}}if(n5s.holder){r13="p";r13+="x";M5a="0";M5a+="p";M5a+="x";n5s.holder.style.right="0px";n5s.holder.style.top=n5s.top + "px";n5s.holder.style.left=M5a;n5s.holder.style.height=n5s.height + "px";n5s.subholder.style.left=n5s.left + "px";n5s.subholder.style.width=n5s.width + r13;n5s.subholder.style.top="0px";if(n5s.yAxis.height >= 0){n5s.subholder.style.height=n5s.yAxis.height + "px";}}}if(l29 && Q4F[l29].down){Q4F[l29].down.classList.remove(z3n);}if(this.manageTouchAndMouse && w3e == 2 && !q2O && G38.panel.solo){G38.panel.solo.classList.add("stx-show");}if(G38.panel){if(q2O && this.soloPanelToFullScreen){r1w.a3e(140);var g29=r1w.B0m(26,8,20,13,2);h3x=G38.canvasHeight - n5s.yAxis.bottom + g29;}else {r1w.i3C(5);var r0i=r1w.B0m(3,15);h3x=G38.canvasHeight - G38.panel.yAxis.bottom + r0i;}W1Z=this.controls;var {chartControls:A2N, home:C5n, notificationTray:u_5}=W1Z;O7U=this.width - G38.panel.right;r6_=1167142915;W76=+"24072230";u5p=2;for(var p4k=1;r1w.m7$(p4k.toString(),p4k.toString().length,87172) !== r6_;p4k++){if(A2N){r1w.i3C(38);A2N.style.bottom=r1w.k$A(h3x,"");}u5p+=2;}if(r1w.b3_(u5p.toString(),u5p.toString().length,99062) !== W76){if(A2N){r1w.a3e(4);A2N.style.bottom=r1w.B0m("px",h3x);}}if(C5n){r1w.a3e(4);C5n.style.bottom=r1w.k$A("px",h3x);r1w.i3C(4);C5n.style.marginRight=r1w.k$A("px",O7U);}if(u_5){r1w.i3C(4);u_5.style.bottom=r1w.k$A("px",h3x);r1w.a3e(4);u_5.style.marginRight=r1w.B0m("px",O7U);}}this.clearPixelCache();if(this.drawingObjects.length){this.adjustDrawings();}this.runAppend("adjustPanelPositions",arguments);};k4g.ChartEngine.prototype.createPanel=function(H3Q,Q$H,G1J,R$H,z5w,r5q){var X_u=M2dNJ;var d4D,Y2i,l0w,T8Z,Y8i,u8r;d4D="cre";d4D+="a";d4D+="te";d4D+="Panel";if(this.runPrepend("createPanel",arguments)){return;}if(!R$H){R$H="chart";}Y2i=this.chart.canvasHeight;if(!G1J){X_u.i3C(38);G1J=X_u.k$A(Y2i,0.2);}if(G1J > Y2i){X_u.a3e(38);G1J=X_u.k$A(Y2i,0.5);}X_u.i3C(40);l0w=X_u.B0m(G1J,Y2i);X_u.i3C(1);T8Z=X_u.k$A(l0w,1);Y8i=!({});for(var x89 in this.panels){u8r=this.panels[x89];u8r.percent*=T8Z;if(u8r.soloing){Y8i=!![];}}this.stackPanel(H3Q,Q$H,l0w,R$H,z5w);this.panels[Q$H].hidden=Y8i;this.panels[Q$H].exportable=!r5q;this.adjustPanelPositions();this.savePanels(!!0);this.runAppend(d4D,arguments);return this.panels[Q$H];};k4g.ChartEngine.prototype.modifyPanel=function(I0a,W3A){var m43,J$X,c$4,k9r,g2E,H1A,t2N,o$X,G_1,h9M;m43="vect";m43+="or";J$X="l";J$X+="a";J$X+="y";J$X+="out";c$4=I0a.name;var {studies:o2M}=this.layout;var {series:m79}=this.chart;var {name:z0k, display:r9X, yAxis:t_M}=W3A || ({});if(!z0k){z0k=k4g.uniqueID();}if(!r9X){r9X=z0k;}if(!t_M){t_M=I0a.yAxis;t_M.name=z0k;}k9r={};for(var A8H in this.panels){if(A8H === I0a.name){g2E=this.panels[A8H];g2E.name=z0k;g2E.display=r9X;g2E.yAxis=t_M;I0a=k9r[z0k]=g2E;if(this.moveMarkers && c$4 !== z0k){this.moveMarkers(c$4,z0k);}}else {k9r[A8H]=this.panels[A8H];}}this.panels=k9r;H1A=!!0;for(var R7u in o2M){t2N=o2M[R7u];if(t2N.panel === c$4){t2N.panel=z0k;if(t2N.parameters && t2N.parameters.panelName){H1A=!0;t2N.parameters.panelName=z0k;}}}for(var Z0y in m79){if(m79[Z0y].parameters.panel === c$4){H1A=!!({});o$X={panel:z0k};if(m79[Z0y].parameters.yAxis && m79[Z0y].parameters.yAxis.name === c$4){o$X.yAxis=t_M;}this.modifySeries(Z0y,o$X,!!({}));}}if(H1A){this.changeOccurred(J$X);}G_1=!"1";for(var l3e=0;l3e < this.drawingObjects.length;l3e++){h9M=this.drawingObjects[l3e];if(c$4 === h9M.panelName){h9M.panelName=z0k;G_1=!!1;}}M2dNJ.j07();if(G_1){this.changeOccurred(m43);}this.calculateYAxisPositions();};k4g.ChartEngine.prototype.setPanelHeight=function(Z69,F$a){var I1R=M2dNJ;var B1u,N4$,f_I,Q12;if(!F$a){return;}if(Object.values(this.panels).slice(-1)[+"0"] === Z69){F$a+=this.xaxisHeight;}var {canvasHeight:h0W}=this.chart;var {percent:Q4R}=Z69;I1R.i3C(40);B1u=I1R.B0m(F$a,h0W);I1R.i3C(141);N4$=I1R.B0m("1",Q4R,0);I1R.i3C(34);f_I=I1R.B0m(0,B1u,"1");I1R.a3e(40);Q12=I1R.B0m(N4$,f_I);Object.values(this.panels).forEach(u$3=>{I1R.E0w();u$3.percent/=Q12;});Z69.percent=B1u;this.adjustPanelPositions();this.savePanels();};k4g.ChartEngine.prototype.electNewPanelOwner=function(g9y,y1t){var b$y,e9P,s9V,A$Y,u5K,w_3,f8I,q4p;M2dNJ.E0w();function x2G(h4h){M2dNJ.E0w();return h4h.name != e9P.name;}if(typeof g9y == "string"){g9y=this.panels[g9y];}e9P=g9y.yAxis;if(g9y && g9y != this.chart.panel){s9V=g9y.yAxis;A$Y=s9V.studies[+"0"];if(!A$Y || A$Y == e9P.name){A$Y=s9V.renderers[0];}if(!A$Y || A$Y == e9P.name){A$Y=s9V.studies[+"1"];}if(!A$Y){A$Y=s9V.renderers[1];}if(y1t){s9V=g9y.yAxis=y1t;b$y=y1t.name;}else if(!A$Y){if(g9y.yaxisLHS){u5K=g9y.yaxisRHS.concat(g9y.yaxisLHS).filter(x2G);w_3=u5K[0];for(var Y2S=0;Y2S < u5K.length;Y2S++){if(!u5K[Y2S].position){w_3=u5K[Y2S];break;}}if(w_3){s9V=g9y.yAxis=w_3;b$y=w_3.studies[0] || w_3.renderers[0];}}}else {s9V=this.addYAxis(g9y,new k4g.ChartEngine.YAxis({name:A$Y,position:s9V.position}));s9V.renderers=g9y.yAxis.renderers;s9V.studies=g9y.yAxis.studies;b$y=A$Y;}if(b$y){A$Y=b$y;if(e9P.name != g9y.name){A$Y=g9y.name;}q4p=this.layout.studies;if(q4p && q4p[b$y]){f8I=q4p[b$y].inputs.display;}this.modifyPanel(g9y,{name:A$Y,display:f8I || b$y,yAxis:s9V});this.deleteYAxisIfUnused(g9y,e9P);this.calculateYAxisMargins(this.panels[A$Y].yAxis);}else {this.checkForEmptyPanel(g9y);}}return b$y;};k4g.ChartEngine.prototype.configurePanelControls=function(F3P){var D4e=M2dNJ;var L57,B2I,v6G,w6N;L57=F3P.icons;if(!L57){return;}B2I=F3P.name == F3P.chart.name;L57.classList.add("stx-show");F3P.title=L57.querySelector(".stx-panel-title");D4e.E0w();F3P.up=L57.querySelector(".stx-ico-up");if(F3P.up){F3P.up=F3P.up.parentNode;}F3P.solo=L57.querySelector(".stx-ico-focus");if(F3P.solo){F3P.solo=F3P.solo.parentNode;}F3P.down=L57.querySelector(".stx-ico-down");if(F3P.down){F3P.down=F3P.down.parentNode;}F3P.edit=L57.querySelector(".stx-ico-edit");if(F3P.edit){F3P.edit=F3P.edit.parentNode;}F3P.close=L57.querySelector(".stx-ico-close");if(F3P.close){F3P.close=F3P.close.parentNode;}if(F3P.title){F3P.title.innerHTML="";if(F3P.display){F3P.title.appendChild(document.createTextNode(F3P.display));}if(B2I){v6G="stx-";v6G+="chart-pa";v6G+="nel";F3P.title.classList.add("chart-title");L57.classList.add(v6G);}}if(!k4g.touchDevice || k4g.isSurface){this.makeModal(L57);}if(F3P.handle){if(!k4g.touchDevice || k4g.isSurface){F3P.handle.onmouseover=(function(I3C){D4e.E0w();return function(){I3C.hideCrosshairs();};})(this);}if(!k4g.touchDevice || k4g.isSurface){F3P.handle.onmouseout=(function(n5v){D4e.j07();return function(){n5v.showCrosshairs();};})(this);}w6N=function(C6h,f7P){return function(a$8){if(k4g.ChartEngine.resizingPanel || C6h.openDialog !== ""){return;}D4e.j07();C6h.grabHandle(f7P);};};if(k4g.isSurface){F3P.handle.onpointerdown=w6N(this,F3P);}else {F3P.handle.onmousedown=w6N(this,F3P);}if(k4g.touchDevice){F3P.handle.ontouchstart=w6N(this,F3P);}}if(F3P.up){k4g.safeClickTouch(F3P.up,(function(f7G,y5L){return function(){D4e.E0w();f7G.panelUp(y5L);};})(this,F3P));}if(F3P.down){k4g.safeClickTouch(F3P.down,(function(A6y,o$5){D4e.j07();return function(){D4e.j07();A6y.panelDown(o$5);};})(this,F3P));}if(F3P.solo){k4g.safeClickTouch(F3P.solo,(function(m4q,I$g){D4e.E0w();return function(){D4e.j07();m4q.panelSolo(I$g);};})(this,F3P));}if(F3P.close){if(F3P.name == "chart"){F3P.close.style.display="none";;}else {k4g.safeClickTouch(F3P.close,(function(o2A,x6i){return function(){D4e.E0w();o2A.panelClose(x6i);};})(this,F3P));}}};k4g.ChartEngine.prototype.stackPanel=function(a7K,y1D,E_7,r_j,h4V){var v45,f5O,c3i,I4n,n5f,J6r,X07;v45="s";v45+="tx-panel-";M2dNJ.E0w();v45+="ch";v45+="art";f5O="stx";f5O+="-s";f5O+="ubholder";c3i="c";c3i+="har";c3i+="t";if(this.runPrepend("stackPanel",arguments)){return;}if(!r_j){r_j=c3i;}I4n=this.charts[r_j];M2dNJ.a3e(110);n5f=M2dNJ.k$A(y1D,r_j);if(n5f){a7K=I4n.symbol;if(I4n.symbolDisplay){a7K=I4n.symbolDisplay;}if(!h4V){h4V=I4n.yAxis;}}J6r=this.panels[y1D]=new k4g.ChartEngine.Panel(y1D,h4V);if(!n5f && I4n.yAxis && J6r.yAxis.position == I4n.yAxis.position){J6r.yAxis.width=I4n.yAxis.width;;}if(n5f && !I4n.panel){I4n.panel=J6r;}J6r.percent=E_7;J6r.chart=I4n;J6r.display=a7K;J6r.holder=k4g.newChild(this.container,"div","stx-holder");J6r.subholder=k4g.newChild(J6r.holder,"div",f5O);J6r.subholder.style.zIndex=1;J6r.holder.panel=J6r;X07=n5f?v45:"stx-panel-study";J6r.holder.classList.add(X07);if(this.controls.handleTemplate && this.manageTouchAndMouse){J6r.handle=this.controls.handleTemplate.cloneNode(!![]);this.container.appendChild(J6r.handle);J6r.handle.panel=J6r;}if(this.controls.iconsTemplate){J6r.icons=this.controls.iconsTemplate.cloneNode(!![]);J6r.subholder.appendChild(J6r.icons);this.configurePanelControls(J6r);}if(!this.currentlyImporting){this.resizeCanvas();}this.runAppend("stackPanel",arguments);};M2dNJ.j07();k4g.ChartEngine.prototype.setPanelEdit=function(s$v,P3x){s$v.editFunction=P3x;if(s$v.edit){k4g.safeClickTouch(s$v.edit,P3x);}this.adjustPanelPositions();};k4g.ChartEngine.prototype.drawPanels=function(){var c6t,m0U,B4U,l5h,l4T,n__,S6f,A3b,r9q,N3t,r5c,t0P,K5Y,N6S,q75,M0U,m6F,b_G,m$$;c6t="draw";c6t+="Panels";m0U="drawPanel";m0U+="s";if(this.runPrepend(m0U,arguments)){return;}B4U=![];for(var D3h in this.panels){l5h="se";l5h+="g";l5h+="ment";l4T=this.panels[D3h];l4T.state={};n__=this.translateIf(l4T.display);if(l4T.title && l4T.title.textContent != n__){l4T.title.innerHTML="";l4T.title.appendChild(document.createTextNode(n__));}if(l4T.icons){l4T.icons.classList.add("stx-show");}if(l4T.hidden){if(l4T.icons){l4T.icons.classList.remove("stx-show");}if(l4T.handle){l4T.handle.style.display="none";}l4T.holder.style.display="none";continue;}else {S6f="b";S6f+="l";S6f+="oc";S6f+="k";if(l4T.name != "chart"){A3b="n";A3b+="o";A3b+="ne";r9q="n";r9q+="o";r9q+="n";r9q+="e";N3t=this.manageTouchAndMouse;if(l4T.up){l4T.up.style.display=this.displayIconsUpDown && N3t?"":r9q;}if(l4T.down){l4T.down.style.display=this.displayIconsUpDown && N3t?"":"none";}if(l4T.solo){l4T.solo.style.display=this.displayIconsSolo && N3t?"":"none";}if(l4T.close){l4T.close.style.display=this.displayIconsClose && N3t?"":A3b;}if(l4T.edit){l4T.edit.style.display=l4T.editFunction && N3t?"":"none";}}l4T.holder.style.display=S6f;}if(l4T.displayEdgeIfPadded){r5c="se";r5c+="gm";r5c+="e";r5c+="nt";t0P="s";t0P+="eg";t0P+="me";t0P+="nt";K5Y="stx_grid";K5Y+="_bor";K5Y+="der";N6S=Math.round(l4T.left) + 0.5;q75=l4T.yAxis.top - +"0.5";M0U=l4T.yAxis.bottom + 0.5;if(l4T.yaxisCalculatedPaddingLeft && !l4T.yaxisTotalWidthLeft){this.plotLine(N6S,N6S,q75,M0U,this.canvasStyle(K5Y),t0P,this.chart.context,!1,{lineWidth:1});}N6S=Math.round(l4T.right) + 0.5;if(l4T.yaxisCalculatedPaddingRight && !l4T.yaxisTotalWidthRight){this.plotLine(N6S,N6S,q75,M0U,this.canvasStyle("stx_grid_border"),r5c,this.chart.context,![],{lineWidth:1});}}if(!B4U){m6F="n";m6F+="one";if(l4T.handle){l4T.handle.style.display=m6F;}B4U=!![];continue;}b_G=l4T.top;b_G=Math.round(b_G) + 0.5;this.plotLine(l4T.left - 0.5,l4T.right + 0.5,b_G,b_G,this.canvasStyle("stx_panel_border"),l5h,this.chart.context,!!0,{});if(l4T.handle){if(!this.displayPanelResize){m$$="n";m$$+="o";m$$+="n";m$$+="e";l4T.handle.style.display=m$$;}else {l4T.handle.style.display="";}M2dNJ.a3e(142);var U8u=M2dNJ.k$A(16,19,1,13,13);l4T.handle.style.top=b_G - l4T.handle.offsetHeight / U8u + "px";;}}this.runAppend(c6t,arguments);};};V4=V9B=>{var p0l;p0l=V9B.CIQ;p0l.ChartEngine.isDailyInterval=function(v6k){var X5e,W6E,t7g,i1Y;if(v6k == "day"){return !!({});}if(v6k == "week"){return !!"1";}X5e=1907193524;W6E=-1377526652;t7g=2;for(var f23=1;M2dNJ.b3_(f23.toString(),f23.toString().length,+"71433") !== X5e;f23++){if(v6k !== ""){return !({});}t7g+=2;}if(M2dNJ.b3_(t7g.toString(),t7g.toString().length,49813) !== W6E){i1Y="mon";i1Y+="th";if(v6k == i1Y){return !!({});}}return !({});};p0l.ChartEngine.prototype.setPeriodicity=function(p5l,h8$){var R9N=M2dNJ;var b6s,I4Y,x3l,Y6j,U6W,a3o,n$u,Z2V,K1z,I3S,Q3Q,t6L,v26,g_h,l34,X2W,D43;b6s="setPeriod";b6s+="ici";b6s+="ty";if(this.runPrepend("setPeriodicity",arguments)){return;}if(typeof arguments["0" >> 0] !== "object"){p5l={period:arguments[0],interval:arguments[1],timeUnit:arguments[2]};R9N.a3e(143);var F_H=R9N.k$A(15,20,15,0,19);h8$=arguments[arguments.length - F_H];if(arguments.length === 3){p5l.timeUnit=undefined;}}var {period:s_A, interval:g00, timeUnit:n5P}=p5l;if(typeof h8$ !== "function"){h8$=null;}({period:s_A, interval:g00, timeUnit:n5P}=p0l.cleanPeriodicity(s_A,g00,n5P));var {layout:V2E}=this;V2E.setSpan={};V2E.range={};this.chart.inflectionPoint=null;I4Y=![];if(this.chart.symbol){I4Y=this.needDifferentData({period:s_A,interval:g00,timeUnit:n5P});}var {candleWidth:y57, periodicity:g0s, interval:G4f, timeUnit:p9d}=V2E;x3l={prvPeriodicity:g0s,prvInterval:G4f,prvTimeUnit:p9d};V2E.periodicity=s_A;V2E.interval=g00;V2E.timeUnit=n5P;function L62(){R9N.j07();Y6j.dispatch("periodicity",U6W);if(h8$){h8$(null);}}Y6j=this;U6W={stx:Y6j,differentData:I4Y,prevPeriodicity:x3l};if(I4Y){a3o="layou";a3o+="t";this.changeOccurred(a3o);this.clearCurrentMarketData();if(this.quoteDriver){for(var A58 in this.charts){n$u=this.charts[A58];if(n$u.symbol){if(this.displayInitialized){this.quoteDriver.newChart({symbol:n$u.symbol,symbolObject:n$u.symbolObject,chart:n$u},L62);}else {this.loadChart(n$u.symbol,{chart:n$u},L62);}}}}else if(this.dataCallback){this.dataCallback();L62();}else {console.log("cannot change periodicity because neither dataCallback or quoteDriver are set");}this.home();return;}for(var L$G in this.charts){Z2V=this.charts[L$G];var {dataSegment:y1q, dataSet:h2m, maxTicks:h$J, scroll:L1S}=Z2V;K1z=y1q?y1q.length:0;I3S=h2m?h2m.length:0;Q3Q=void 0;t6L=Math.round(Z2V.maxTicks / ("2" ^ 0));this.setCandleWidth(y57,Z2V);v26=!"";g_h=!({});if(L1S <= h$J){v26=!"1";}else if(y1q && !y1q[t6L]){v26=!1;R9N.i3C(1);g_h=R9N.k$A(I3S,L1S);;}if(v26 && K1z > 0){if(h$J < (Math.round(this.chart.width / y57 - +"0.499") - 1) / 2){R9N.a3e(1);t6L=R9N.B0m(1,K1z);}if(t6L >= K1z){Q3Q=y1q[K1z - 1].DT;R9N.a3e(1);t6L=R9N.B0m(1,K1z);}else {Q3Q=y1q[t6L].DT;}}this.createDataSet();if(v26){if(K1z > 0){for(var A$O=I3S - 1;A$O >= 0;A$O--){l34=h2m[A$O].DT;if(l34.getTime() < Q3Q.getTime()){R9N.i3C(37);Z2V.scroll=R9N.k$A(1,A$O,I3S,t6L);break;}}}}else if(!g_h){X2W=Math.round(this.preferences.whitespace / y57);R9N.a3e(34);Z2V.scroll=R9N.B0m(X2W,1,h$J);;}else {Z2V.scroll=h2m.length + g_h;;}}if(this.displayInitialized){this.draw();}this.changeOccurred("layout");if(this.quoteDriver){for(var s$c in this.charts){D43=this.charts[s$c];if(D43.symbol && (D43.moreAvailable || !D43.upToDate)){this.quoteDriver.checkLoadMore(D43);}}}L62();this.runAppend(b6s,arguments);};p0l.ChartEngine.prototype.needDifferentData=function(s90){var h_Y,h6V,o0F,H2i,n9H;h_Y="m";h_Y+="in";h_Y+="ut";h_Y+="e";h6V=this.layout;o0F=p0l.ChartEngine.isDailyInterval(s90.interval);H2i=p0l.ChartEngine.isDailyInterval(h6V.interval);n9H=!!"";if(this.dontRoll || !H2i){if(h6V.interval != s90.interval){n9H=!!({});}}else {if(o0F != H2i){n9H=!!({});}}if(!o0F && !s90.timeUnit){s90.timeUnit=h_Y;}if(!H2i && !h6V.timeUnit){h6V.timeUnit="minute";}if(s90.timeUnit != h6V.timeUnit){n9H=!"";}if(!this.masterData || !this.masterData.length){n9H=!0;}return n9H;};p0l.ChartEngine.prototype.getPeriodicity=function(){var a46,l8t,C_y;a46=this.layout;l8t=a46.interval;C_y=a46.timeUnit;if(!C_y){C_y=l8t;l8t=1;}return {period:a46.periodicity,interval:l8t,timeUnit:C_y};};};U$=b9l=>{var i7I=M2dNJ;var I1C;I1C=b9l.CIQ;I1C.ChartEngine.prototype.isHistoricalMode=function(){var N0S,T1w,J1k,F_Y,f3X,f6H;N0S=new Date();T1w=!!"1";J1k=this.masterData;if(!this.isHistoricalModeSet){return !({});}if(J1k.length){F_Y=this.getFirstLastDataRecord(J1k,"DT",!!1);f3X=this.standardMarketIterator(F_Y.DT);T1w=(f3X?f3X.next():F_Y.DT) <= N0S;if(T1w && I1C.ChartEngine.isDailyInterval(f3X.interval)){f6H=this.chart.market.getOpen();if(f6H && N0S < f6H){i7I.a3e(13);N0S.setHours(0,i7I.k$A("0",0),0,0);if(+N0S == +f3X.begin){T1w=![];}}}}return T1w;};I1C.ChartEngine.prototype.isHome=function(){var s_9,y4s,P1R;s_9=this.chart;y4s=s_9.dataSet;P1R=s_9.animatingHorizontalScroll;i7I.j07();i7I.i3C(34);var r_R=i7I.k$A(12,14,28);i7I.a3e(56);var E36=i7I.B0m(16,14,14,14,167);return this.pixelFromTick(y4s.length - (P1R?r_R:E36),s_9) < s_9.width + s_9.panel.left;;};I1C.ChartEngine.prototype.getPreviousBar=function(O7u,o8j,i$z){i7I.i3C(1);return this.getNextBarInternal(O7u,o8j,i$z,-i7I.k$A(0,"1"));};I1C.ChartEngine.prototype.getNextBar=function(i_Z,A6g,N5g){return this.getNextBarInternal(i_Z,A6g,N5g,1);};I1C.ChartEngine.prototype.getNextBarInternal=function(t_B,S9x,e8o,s2m){var m9e,X0d,w1g,C1v;m9e=t_B.dataSegment && t_B.dataSegment[e8o];if(m9e){X0d=m9e.tick;while(X0d > 0 && X0d < t_B.dataSet.length){i7I.i3C(4);X0d=i7I.B0m(s2m,X0d);w1g=t_B.dataSet[X0d];if(w1g){C1v=I1C.existsInObjectChain(w1g,S9x);if(C1v && C1v.obj[C1v.member]){return w1g;}}}}return null;};i7I.j07();I1C.ChartEngine.prototype.getFirstLastDataRecord=function(L1I,B3m,m4w){var S1t;if(L1I && L1I.length){S1t=m4w?L1I.length - 1:"0" - 0;while(S1t >= 0 && S1t < L1I.length){if(L1I[S1t] && typeof L1I[S1t][B3m] != "undefined"){return L1I[S1t];}if(m4w){S1t--;}else {S1t++;}}}return null;};I1C.ChartEngine.prototype.leftTick=function(){var y4J,j0s,T9n;i7I.i3C(82);y4J=i7I.B0m(0,"1903627147");j0s=-581920796;i7I.i3C(1);T9n=i7I.B0m(0,"2");for(var A3s=1;i7I.b3_(A3s.toString(),A3s.toString().length,+"8132") !== y4J;A3s++){return this.chart.dataSet.length - this.chart.scroll;}if(i7I.m7$(T9n.toString(),T9n.toString().length,"653" >> 64) !== j0s){return this.chart.dataSet.length + this.chart.scroll;}};I1C.ChartEngine.prototype.getNextInterval=function(u4i,S0z,a0s){var P99;if(!S0z){S0z=+"1";}if(a0s !== !({})){a0s=!!"1";}P99=this.standardMarketIterator(u4i,a0s?this.dataZone:this.displayZone);if(!P99){return u4i;}if(S0z < 1){i7I.a3e(144);return P99.previous(i7I.B0m(1,S0z));}return P99.next(S0z);};I1C.ChartEngine.prototype.standardMarketIterator=function(a$E,W$5,r54){var E3N,S_8,E08;i7I.j07();E3N="t";E3N+="ic";E3N+="k";S_8=r54 || this.chart;if(!S_8.market){return null;}E08={begin:a$E,interval:this.layout.interval,periodicity:this.layout.interval == E3N?this.chart.xAxis.futureTicksInterval:this.layout.periodicity,timeUnit:this.layout.timeUnit,outZone:W$5};return S_8.market.newIterator(E08);};};v8=L8$=>{var g6y=M2dNJ;var S8X,k4d;if(!L8$.SplinePlotter){L8$.SplinePlotter={};}S8X=L8$.CIQ;k4d=L8$.SplinePlotter;S8X.ChartEngine.prototype.draw=function(){var Q2I,y0X,O6G,W3T,Q3C,X58,x2I,J4h,e_6;this.debug();Q2I=this.chart;y0X=this.layout;if(!Q2I.canvas){return;}if(!Q2I.dataSet){return;}if(!Q2I.canvasHeight){return;}g6y.a3e(18);var V1g=g6y.k$A(166,11,8,10,0);this.offset=y0X.candleWidth * this.candleWidthPercent / V1g;S8X.clearCanvas(Q2I.canvas,this);if(!this.masterData){return;}if(this.runPrepend("draw",arguments)){return;}if(!this.defaultColor){this.getDefaultColor();}this.vectorsShowing=!({});this.drawPanels();this.yAxisLabels=[];this.correctIfOffEdge();this.createDataSegment();this.setBaselines(Q2I);Q3C=this.createXAxis(Q2I);this.initializeDisplay(Q2I);this.drawXAxis(Q2I,Q3C);try{this.renderYAxis(Q2I);}catch(F3_){if(F3_ && F3_.message === "reboot draw"){return this.draw();}throw F3_;}Q2I.tmpWidth=Math.floor(y0X.candleWidth * this.candleWidthPercent);if(Q2I.tmpWidth % 2 === 0){Q2I.tmpWidth+=1;if(Q2I.tmpWidth > y0X.candleWidth){Q2I.tmpWidth-=2;}}if(Q2I.tmpWidth < 0.5){Q2I.tmpWidth=0.5;}for(O6G in this.plugins){W3T=this.plugins[O6G];if(W3T.display){if(W3T.drawUnder){W3T.drawUnder(this,Q2I);}}}if(Q2I.legend){Q2I.legend.colorMap=null;}if(this.controls.baselineHandle){this.controls.baselineHandle.style.display="none";}this.rendererAction(Q2I,"underlay");S8X.getFn("Studies.displayStudies")(this,Q2I,!![]);this.displayChart(Q2I);S8X.getFn("Studies.displayStudies")(this,Q2I,!!0);this.rendererAction(Q2I,"overlay");if(Q2I.legend && Q2I.legend.colorMap && Q2I.legendRenderer){Q2I.legendRenderer(this,{chart:Q2I,legendColorMap:Q2I.legend.colorMap,coordinates:{x:Q2I.legend.x,y:Q2I.legend.y + Q2I.panel.yAxis.top}});}for(O6G in this.plugins){W3T=this.plugins[O6G];if(W3T.display){if(W3T.drawOver){W3T.drawOver(this,Q2I);}}}for(var F20 in this.panels){if(!this.panels[F20].hidden){this.plotYAxisText(this.panels[F20]);}}for(var r0p=0;r0p < this.yAxisLabels.length;r0p++){X58=this.yAxisLabels[r0p];if(X58.src == "series" && X58.args[+"6"] && X58.args["6" - 0].drawSeriesPriceLabels === !!0)continue;this.createYAxisLabel.apply(this,X58.args);}if(this.createCrosshairs){this.createCrosshairs();}if(this.drawVectors){this.drawVectors();}this.drawCurrentHR();this.displayInitialized=!!"1";x2I=this.controls;if(x2I){J4h="bl";J4h+="ock";e_6=this.manageTouchAndMouse && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.nonInteractive);if(x2I.home){x2I.home.style.display=e_6 && !this.isHome()?"block":"none";}if(x2I.chartControls){x2I.chartControls.style.display=e_6?J4h:"none";}}if(S8X.Marker){this.positionMarkers();}if(this.quoteDriver && this.animations.zoom.hasCompleted){this.quoteDriver.checkLoadMore(Q2I);}this.runAppend("draw",arguments);this.makeAsyncCallbacks();};S8X.ChartEngine.prototype.setSeriesRenderer=function(n8r){var {baseline:Y2x, name:B1N, panel:w7U, yAxis:Z9d}=n8r.params;if(this.chart.seriesRenderers[B1N]){return this.chart.seriesRenderers[B1N];;}if(Z9d){n8r.params.yAxis=this.addYAxis(this.panels[w7U],Z9d);this.resizeChart();}n8r.stx=this;this.chart.seriesRenderers[B1N]=n8r;if(Y2x){this.registerBaselineToHelper(n8r);}return n8r;};S8X.ChartEngine.prototype.setMainSeriesRenderer=function(h1F){var W9E,W9a,j69;var {chartType:s6i, aggregationType:Z9I}=this.layout;var {chart:k7V}=this;var {custom:y3s}=k7V;W9E=this.mainSeriesRenderer;g6y.E0w();W9a=this.displayInitialized;if(W9E){if(h1F){this.setMasterData();}this.displayInitialized=!({});W9E.removeAllSeries();this.removeSeriesRenderer(W9E);W9E=this.mainSeriesRenderer=null;}if(y3s && y3s.chartType){s6i=y3s.chartType;}if(s6i == "none"){return;}if(Z9I && Z9I != "ohlc"){s6i=Z9I;}j69=S8X.Renderer.produce(s6i,{panel:k7V.panel.name,name:"_main_series",highlightable:!1,useChartLegend:!!"1"});if(j69){this.setSeriesRenderer(j69).attachSeries(null,{display:k7V.symbol});W9E=this.mainSeriesRenderer=j69;}this.displayInitialized=W9a;["highLowBars","standaloneBars","barsHaveWidth"].forEach((function(H8c){k7V[H8c]=this.mainSeriesRenderer && this.mainSeriesRenderer[H8c];}).bind(this));};S8X.ChartEngine.prototype.removeSeriesRenderer=function(c_e){g6y.E0w();var l6Q,D5s,j8s,N0Z;var {baseline:x$E, name:t87}=c_e.params;g6y.i3C(50);l6Q=this.controls[`${t87}${g6y.B0m("l"," base","ine-handle")}`];if(x$E){D5s=1696763810;j8s=1598039487;N0Z=2;for(var f45=1;g6y.m7$(f45.toString(),f45.toString().length,23753) !== D5s;f45++){this.removeBaselineFromHelper(c_e);N0Z+=2;}if(g6y.b3_(N0Z.toString(),N0Z.toString().length,36665) !== j8s){this.removeBaselineFromHelper(c_e);}if(l6Q){this.container.removeChild(l6Q);delete this.controls[l6Q];}}delete this.chart.seriesRenderers[t87];};S8X.ChartEngine.prototype.getSeriesRenderer=function(b$8){g6y.j07();return this.chart.seriesRenderers[b$8];};S8X.ChartEngine.prototype.getRendererFromSeries=function(w6Y){var N8Q;g6y.E0w();N8Q=this.chart.seriesRenderers;for(var h2M in N8Q){for(var W8E in N8Q[h2M].seriesParams){if(N8Q[h2M].seriesParams[W8E].id == w6Y){return N8Q[h2M];}}}return null;};S8X.ChartEngine.prototype.startClip=function(N9a,p8c){var E2P,Q3T,R7F,r81,o0L,d2B,S_5,J8r;if(!N9a){N9a=this.chart.panel.name;}g6y.a3e(14);E2P=-g6y.B0m(10,"1532108266");Q3T=192082884;g6y.i3C(14);g6y.j07();R7F=g6y.k$A(2,"2");for(var O0P=1;g6y.m7$(O0P.toString(),O0P.toString().length,87612) !== E2P;O0P++){r81=this.panels[N9a];o0L=r81.yAxis;d2B=this.chart;d2B.context.save();d2B.context.beginPath();S_5=r81.left;J8r=r81.width;R7F+=2;}if(g6y.b3_(R7F.toString(),R7F.toString().length,7268) !== Q3T){r81=this.panels[N9a];o0L=r81.yAxis;d2B=this.chart;d2B.context.save();d2B.context.beginPath();S_5=r81.left;J8r=r81.width;}r81=this.panels[N9a];o0L=r81.yAxis;d2B=this.chart;d2B.context.save();d2B.context.beginPath();S_5=r81.left;J8r=r81.width;if(p8c){S_5=0;J8r=this.width;}else if(r81.yaxisLHS && r81.yaxisLHS.length){S_5++;J8r--;}d2B.context.rect(S_5,o0L.top,J8r,o0L.height);d2B.context.clip();};S8X.ChartEngine.prototype.endClip=function(){g6y.E0w();this.chart.context.restore();};S8X.ChartEngine.prototype.setLineStyle=function(E1c,M5Z){var x5d,Y$o;x5d={};if(E1c && typeof E1c == "object"){x5d=E1c;}else {x5d.color=E1c;}if(!x5d.color && !x5d.pattern && !x5d.width && !x5d.baseColor){x5d=null;}if(!M5Z){M5Z=this.chart;}Y$o=1;if(x5d && x5d.width){Y$o=x5d.width;}if(x5d && x5d.pattern){x5d.pattern=S8X.borderPatternToArray(Y$o,x5d.pattern);}M5Z.lineStyle=x5d;};S8X.ChartEngine.prototype.setGapLines=function(j71,n0H){var f7H,c6m;f7H="o";f7H+="bj";f7H+="ec";f7H+="t";if(!n0H){n0H=this.chart;}c6m={};if(j71 && typeof j71 == f7H){c6m=j71;}else if(typeof j71 === "boolean"){return n0H.gaplines=j71;}else {c6m.color=j71;}if(!c6m.color && !c6m.pattern && !c6m.fillMountain){c6m=null;}g6y.j07();if(c6m && c6m.pattern){c6m.pattern=S8X.borderPatternToArray(c6m.width,c6m.pattern);}if(c6m && c6m.width <= 0){c6m.width=null;}n0H.gaplines=c6m;};S8X.ChartEngine.prototype.getGapColorFunction=function(C2V,U3B,S8Y,I6y,y2T){g6y.E0w();if(typeof S8Y != "object"){S8Y={color:S8Y};}return function(Z$X,V$v,S9v){var A9K,m1Y;g6y.j07();A9K=y2T?y2T(Z$X,V$v,S9v):S8Y;if(A9K.color){A9K=A9K.color;}m1Y=V$v[C2V];if(!m1Y && m1Y !== 0){m1Y=V$v[U3B];}if(!S9v && (m1Y || m1Y === 0)){return {color:A9K,pattern:S8Y.pattern,width:S8Y.width};}if(!I6y){return null;}if(typeof I6y != "object"){if(typeof I6y == "string"){I6y={color:I6y};}else {I6y={};}}return {color:I6y.color || A9K,pattern:I6y.pattern || S8Y.pattern,width:I6y.width || S8Y.width};};};S8X.ChartEngine.prototype.drawLineChart=function(k_Y,j1j,v5t,v06){var c$c,B2y,H9l,l_5,g$8,X7K,F3E,p1r,Q2c,Q1w,F6w,d1c;c$c="Clo";c$c+="se";B2y=this.chart;H9l=B2y.context;l_5=B2y.lineStyle || ({});g$8=this.canvasStyle(j1j);if(!v06){v06={};}this.startClip(k_Y.name);X7K=v06.width || l_5.width || g$8.width;if(X7K && parseInt(X7K,10) <= 25){H9l.lineWidth=Math.max(1,S8X.stripPX(X7K));}else {H9l.lineWidth=1;}v06.pattern=v06.pattern || l_5.pattern || g$8.borderTopStyle;v06.pattern=S8X.borderPatternToArray(H9l.lineWidth,v06.pattern);this.canvasColor(j1j);F3E=v06.color || l_5.color;if(F3E){if(F3E == "auto"){F3E=this.defaultColor;}if(v06.opacity && v06.opacity !== 1){F3E=S8X.hexToRgba(S8X.colorToHex(F3E),parseFloat(v06.opacity));}H9l.strokeStyle=F3E;}v06.skipProjections=!"";p1r=v06.field || B2y.defaultPlotField;Q2c=v06.subField || B2y.defaultPlotField || c$c;Q1w=v06.gapDisplayStyle;if(!Q1w && Q1w !== !!""){Q1w=v06.gaps;}if(!Q1w && Q1w !== ![]){Q1w=B2y.gaplines;}if(!Q1w){Q1w="transparent";}v06.gapDisplayStyle=Q1w;F6w=this.getGapColorFunction(p1r,Q2c,{color:H9l.strokeStyle,pattern:v06.pattern,width:H9l.lineWidth},Q1w,v5t);if(k_Y.chart.tension){v06.tension=k_Y.chart.tension;}d1c=this.plotDataSegmentAsLine(p1r,k_Y,v06,F6w);if(!d1c.colors.length){d1c.colors.push(H9l.strokeStyle);}H9l.lineWidth=1;this.endClip();return v06.returnObject?d1c:d1c.colors;};S8X.ChartEngine.prototype.drawChannelChart=function(Q0s,s84,v39){var I8N,n_L,Y5R,Q97,L0s,I6Y,W1W,q4W,Y3C,X_2,x4U,Q3P,r0s,z_Y;I8N="f";I8N+="i";I8N+="eld";n_L="L";n_L+="o";n_L+="w";Y5R="f";Y5R+="i";Y5R+="e";Y5R+="ld";Q97="su";Q97+="bField";L0s=S8X.clone(v39);L0s.color=v39.color;I6Y=this.drawLineChart(Q0s,L0s.style,s84,L0s);W1W=L0s.border_color_up || this.getCanvasColor("stx_channel_up");q4W=L0s.border_color_down || this.getCanvasColor("stx_channel_down");L0s[v39.field?Q97:Y5R]=L0s.field_high || "High";L0s.color=W1W;Y3C=this.drawLineChart(Q0s,L0s.style,s84,L0s);L0s[v39.field?"subField":"field"]=L0s.field_low || n_L;L0s.color=q4W;X_2=this.drawLineChart(Q0s,L0s.style,s84,L0s);L0s[v39.field?"subField":I8N]=v39.subField || this.chart.defaultPlotField || "Close";Q3P=[];r0s=[];for(x4U=0;x4U < Y3C.points.length;x4U+="2" << 64){Q3P.push([Y3C.points[x4U],Y3C.points[x4U + 1]]);}for(x4U=0;x4U < X_2.points.length;x4U+=2){r0s.push([X_2.points[x4U],X_2.points[x4U + 1]]);}g6y.i3C(76);var N$i=g6y.B0m(12,6,0);z_Y=this.chart.context.lineWidth / N$i;for(x4U=I6Y.points.length - 2;x4U >= 0;x4U-=2){Q3P.push([I6Y.points[x4U],I6Y.points[x4U + 1] - z_Y]);r0s.push([I6Y.points[x4U],I6Y.points[x4U + 1] + z_Y]);}this.startClip(Q0s.name);L0s.color=W1W;S8X.fillArea(this,Q3P,L0s);L0s.color=q4W;S8X.fillArea(this,r0s,L0s);this.endClip();I6Y.colors=I6Y.colors.concat(Y3C.colors).concat(X_2.colors);return v39.returnObject?I6Y:I6Y.colors;};g6y.E0w();S8X.ChartEngine.prototype.connectTheDots=function(W8A,v$s,w46,X$V,w3y,t8D){var M$X,W6N,n$v,j6W,e8G,g5L,H2P,x6s,A76,X4V,S1I,n$S,h3v,u8X,z8s,L10,O6z,j3N,D7W,K4B,W5c;M$X="n";M$X+="on";M$X+="e";if(!t8D){t8D={};}if(t8D.pattern == M$X){return;}if(w3y === !!({})){w3y=this.chart.panel;}if(X$V === null || typeof X$V == "undefined"){X$V=this.chart.context;}if(W8A.length < 4){return;}W6N=0;n$v=this.chart.canvasHeight;j6W=0;e8G=this.chart.width;if(w3y){n$v=w3y.yAxis.bottom;W6N=w3y.yAxis.top;}X$V.lineWidth=1.1;if(typeof v$s == "object"){X$V.strokeStyle=v$s.color;if(v$s.opacity){X$V.globalAlpha=v$s.opacity;}else {X$V.globalAlpha=1;}X$V.lineWidth=S8X.stripPX(v$s.width);}else {if(!v$s || v$s == "auto" || S8X.isTransparent(v$s)){X$V.strokeStyle=this.defaultColor;}else {X$V.strokeStyle=v$s;}}g6y.j07();if(t8D.opacity){X$V.globalAlpha=t8D.opacity;}if(t8D.lineWidth){X$V.lineWidth=t8D.lineWidth;}g5L=S8X.borderPatternToArray(X$V.lineWidth,t8D.pattern);X$V.beginPath();for(var F2u=+"0";F2u < W8A.length - 2;F2u+=2){H2P=W8A[F2u];g6y.a3e(4);x6s=W8A[g6y.B0m(1,F2u)];g6y.i3C(4);A76=W8A[g6y.k$A(2,F2u)];g6y.i3C(4);X4V=W8A[g6y.k$A(3,F2u)];if(isNaN(H2P) || isNaN(A76) || isNaN(x6s) || isNaN(X4V)){return;}S1I=0.0;n$S=1.0;g6y.a3e(1);h3v=g6y.B0m(H2P,A76);g6y.a3e(1);u8X=g6y.B0m(x6s,X4V);for(var h4X=0;h4X < 4;h4X++){if(h4X === 0){z8s=-h3v;g6y.i3C(1);L10=-g6y.k$A(H2P,j6W);}if(h4X == 1){z8s=h3v;g6y.i3C(1);L10=g6y.B0m(H2P,e8G);}if(h4X == 2){z8s=-u8X;g6y.a3e(1);L10=-g6y.B0m(x6s,W6N);}if(h4X == 3){z8s=u8X;g6y.i3C(1);L10=g6y.k$A(x6s,n$v);}g6y.i3C(40);O6z=g6y.k$A(L10,z8s);if((X4V || X4V === 0) && z8s === "0" << 32 && L10 < 0){return !1;;}if(z8s < 0){if(O6z > n$S){return !({});}else if(O6z > S1I){S1I=O6z;};}else if(z8s > 0){if(O6z < S1I){return !({});}else if(O6z < n$S){n$S=O6z;};}}g6y.i3C(145);j3N=g6y.B0m(H2P,h3v,S1I);g6y.a3e(145);D7W=g6y.k$A(x6s,u8X,S1I);g6y.i3C(145);K4B=g6y.B0m(H2P,h3v,n$S);g6y.a3e(145);W5c=g6y.B0m(x6s,u8X,n$S);try{X$V.setLineDash(g5L && g5L.length?g5L:[]);X$V.moveTo(j3N,D7W);X$V.lineTo(K4B,W5c);}catch(Q5n){;}}X$V.stroke();X$V.closePath();X$V.globalAlpha=1;X$V.lineWidth=1;};S8X.ChartEngine.prototype.plotSpline=function(y8a,c$l,q3W,K8k,j2G,j1d,I$3){var i9Q,Z4C,Q4m,j9S;if(!I$3){I$3={};}if(I$3.pattern == "none"){return;}if(j1d === !!({})){j1d=this.chart.panel;}if(j2G === null || typeof j2G == "undefined"){j2G=this.chart.context;}j2G.save();j2G.lineWidth=1.1;if(typeof q3W == "object"){j2G.strokeStyle=q3W.color;i9Q=214636097;Z4C=-1325290486;Q4m=2;for(var Q5R=1;g6y.b3_(Q5R.toString(),Q5R.toString().length,+"46790") !== i9Q;Q5R++){if(q3W.opacity){j2G.globalAlpha=q3W.opacity;}else {j2G.globalAlpha=7;}j2G.lineWidth=S8X.stripPX(q3W.width);Q4m+=2;}if(g6y.m7$(Q4m.toString(),Q4m.toString().length,74470) !== Z4C){if(q3W.opacity){j2G.globalAlpha=q3W.opacity;}else {g6y.a3e(38);j2G.globalAlpha=g6y.B0m("0",1);}j2G.lineWidth=S8X.stripPX(q3W.width);}if(q3W.opacity){j2G.globalAlpha=q3W.opacity;}else {g6y.i3C(13);j2G.globalAlpha=g6y.B0m("1",0);}j2G.lineWidth=S8X.stripPX(q3W.width);}else {if(!q3W || q3W == "auto" || S8X.isTransparent(q3W)){j2G.strokeStyle=this.defaultColor;}else {j2G.strokeStyle=q3W;}}if(I$3.opacity){j2G.globalAlpha=I$3.opacity;}if(I$3.lineWidth){j2G.lineWidth=I$3.lineWidth;}j9S=S8X.borderPatternToArray(j2G.lineWidth,I$3.pattern);if(I$3.pattern && j2G.setLineDash){j2G.setLineDash(j9S);j2G.lineDashOffset=0;;}j2G.beginPath();k4d.plotSpline(y8a,c$l,j2G);j2G.stroke();j2G.closePath();j2G.restore();};S8X.ChartEngine.prototype.rawWatermark=function(e3U,s1k,a3p,v6m){this.canvasFont("stx_watermark",e3U);e3U.fillStyle=this.defaultColor;g6y.i3C(1);g6y.j07();e3U.globalAlpha=g6y.B0m(0,"0.5");this.chart.context.textBaseline="alphabetic";e3U.fillText(v6m,s1k,a3p);e3U.globalAlpha=1;};S8X.ChartEngine.prototype.watermark=function(v33,K$8){var k5d,u$a,P0Q,H0c,Q5W,k3B;k5d="r";k5d+="i";k5d+="gh";k5d+="t";u$a="ob";u$a+="je";u$a+="c";u$a+="t";if(K$8 && typeof K$8 != u$a){K$8={h:arguments[1],v:arguments[2],text:arguments[3]};}K$8={h:K$8.h || "left",v:K$8.v || "bottom",text:K$8.text || "",hOffset:K$8.hOffset === 0?0:K$8.hOffset || 10,vOffset:K$8.vOffset === 0?"0" | 0:K$8.vOffset || +"20",context:K$8.context || this.chart.context};P0Q=K$8.context;if(!P0Q){return;}H0c=this.panels[v33];if(!H0c || H0c.hidden){return;}Q5W=H0c.yAxis.bottom - K$8.vOffset;if(K$8.v == "top"){Q5W=H0c.top + K$8.vOffset;}else if(K$8.v == "middle"){g6y.a3e(1);var h8c=g6y.k$A(10,12);Q5W=(H0c.top + H0c.yAxis.bottom) / h8c;}P0Q.save();this.canvasFont("stx_watermark",P0Q);this.canvasColor("stx_watermark",P0Q);P0Q.textBaseline="alphabetic";k3B=H0c.left + K$8.hOffset;if(K$8.h == k5d){k3B=H0c.right - K$8.hOffset;}else if(K$8.h == "center"){g6y.a3e(19);var Y_9=g6y.k$A(9,20,11,2);k3B=(H0c.right + H0c.left - P0Q.measureText(K$8.text).width) / Y_9;}P0Q.globalAlpha=0.5;if(this.highlightedDraggable){P0Q.globalAlpha*=0.3;}P0Q.fillText(K$8.text,k3B,Q5W);P0Q.restore();};S8X.ChartEngine.prototype.displayErrorAsWatermark=function(B14,P3_){var j$s,d4c,q3A,q8Y,f96,z$b,t02,K5D,l3w,L5U,h$p,t3E,f7f;j$s="stx";j$s+="_watermar";j$s+="k";d4c="cha";d4c+="r";d4c+="t";if(!P3_){return;}if(!B14){B14=d4c;}q3A=this.panels[B14];if(!q3A || q3A.hidden){return;}q8Y=q3A.state;if(!q8Y){q3A.state=q8Y={};}f96=q8Y.studyErrors;if(!f96){q8Y.studyErrors=f96=new Set();}if(f96.has(P3_)){return;}z$b=q8Y.watermarkOffset || "10" - 0;t02=10;K5D=this.getCanvasFontSize(j$s);if(this.chart && this.chart.chartControls){l3w=q3A.yAxis.bottom;L5U=this.chart.chartControls;g6y.i3C(1);h$p=g6y.B0m(z$b,l3w);g6y.a3e(1);t3E=g6y.k$A(K5D,h$p);if(h$p > L5U.offsetTop && h$p < L5U.offsetTop + L5U.offsetHeight || t3E > L5U.offsetTop && t3E < L5U.offsetTop + L5U.offsetHeight){z$b=l3w - L5U.offsetTop + t02;}}f96.add(P3_);f7f={h:"center",v:"bottom",text:P3_,vOffset:z$b};g6y.a3e(4);z$b+=g6y.B0m(t02,K5D);q8Y.watermarkOffset=z$b;this.watermark(B14,f7f);};S8X.ChartEngine.prototype.displayChart=function(X5v){var r8R;r8R="m";r8R+="a";r8R+="i";r8R+="n";if(this.runPrepend("displayChart",arguments)){return;}this.rendererAction(X5v,r8R);this.runAppend("displayChart",arguments);};};Z0=X0y=>{var i2j;i2j=X0y.CIQ;i2j.ChartEngine.prototype.cloneStyle=function(o_7){var D7j=M2dNJ;var j7L,I8k,Z6J,s64,y1A,K1q,s5Z,x04;D7j.j07();function F56(w7H){D7j.j07();return w7H[1].toUpperCase();}j7L={};I8k=!!"";for(var w7G in o_7){Z6J=o_7[w7G];if(w7G == "backgroundAttachment"){I8k=!!1;}if(I8k){if(Z6J && Z6J.constructor == String && isNaN(w7G)){j7L[w7G]=Z6J;}}else if(!isNaN(w7G)){s64=o_7.getPropertyValue(Z6J);if(s64){Z6J=Z6J.split((4674,4947) !== (6233,25.12)?7310 != 261?"-":926.71 > (1965,"682.55" - 0)?("a",7.55e+3):0x953:("T",96.22));y1A=0;K1q=Z6J.length;s5Z=Z6J[0];while(++y1A < K1q){D7j.a3e(4);var A0W=D7j.k$A(1,0);s5Z+=Z6J[y1A].charAt(+"0").toUpperCase() + Z6J[y1A].slice(A0W);}j7L[s5Z]=s64;}}else {x04=w7G.replace(i2j.camelCaseRegExp,F56);j7L[x04]=Z6J;}}return j7L;};i2j.ChartEngine.prototype.canvasStyle=function(w9t){var P3Z,J6R,E1Y;P3Z=this.styles[w9t];M2dNJ.j07();if(!P3Z){J6R=document.createElement("div");J6R.className=w9t;this.container.appendChild(J6R);E1Y=getComputedStyle(J6R);P3Z=this.styles[w9t]=this.cloneStyle(E1Y);this.container.removeChild(J6R);if(!E1Y){this.styles[w9t]=null;}}return P3Z;};i2j.ChartEngine.prototype.colorOrStyle=function(j7y){if(j7y.indexOf("#") != -1){return j7y;}if(j7y.indexOf("(") != -1){return j7y;}if(j7y == "transparent"){return j7y;}return this.canvasStyle(j7y);};i2j.ChartEngine.prototype.clearStyles=function(){this.styles={};this.defaultColor="";};i2j.ChartEngine.prototype.setStyle=function(M4o,N7O,q9l){M2dNJ.E0w();if(!this.styles[M4o]){this.canvasStyle(M4o);}if(!this.styles[M4o]){this.styles[M4o]={};}this.styles[M4o][i2j.makeCamelCase(N7O)]=q9l;};i2j.ChartEngine.prototype.canvasFont=function(D2C,E5h){var Z_v=M2dNJ;var t62,w80;if(!E5h){E5h=this.chart.context;}t62=this.canvasStyle(D2C);if(!t62){return;}Z_v.a3e(29);var Z8m=Z_v.k$A(18,2,64);Z_v.a3e(1);var v38=Z_v.B0m(7,3469);Z_v.a3e(146);var R3d=Z_v.B0m(9,33692,11,4218,9);Z_v.i3C(37);var z4Z=Z_v.k$A(9,20,432,3051);Z_v.i3C(67);var R4V=Z_v.B0m(16,77090,12,7008);Z_v.i3C(34);var H5C=Z_v.B0m(11,37187,42512);Z_v.a3e(147);var y__=Z_v.k$A(1,15,64961,61533,6);Z_v.i3C(148);var n5N=Z_v.k$A(196,14,36,144,12);w80=t62.fontStyle + " " + t62.fontWeight + " " + t62.fontSize + (Z8m > v38?(R3d,z4Z):(R4V,H5C) != (y__,n5N)?" ":144.85) + t62.fontFamily;Z_v.j07();if(w80.indexOf("undefined") == -1){E5h.font=w80;}else {this.styles[D2C]=null;Z_v.a3e(4);console.log(Z_v.B0m(D2C,"bad css style for class "));}};i2j.ChartEngine.prototype.canvasColor=function(i6i,k9f){var L_5,H6q,o17;if(!k9f){k9f=this.chart.context;}L_5=this.canvasStyle(i6i);if(!L_5){return;}H6q=L_5.color;if(!H6q){H6q=this.defaultColor;}k9f.globalAlpha=1;k9f.fillStyle=H6q;M2dNJ.E0w();k9f.strokeStyle=H6q;o17=L_5.opacity;if(typeof o17 != "undefined"){k9f.globalAlpha=o17;}};i2j.ChartEngine.prototype.getCanvasFontSize=function(E0n){var j6R,j28,f1X;j6R="1";j6R+="2";j28=this.canvasStyle(E0n);f1X=j28.fontSize;if(!f1X){f1X=j6R;}return parseInt(i2j.stripPX(f1X),10);};i2j.ChartEngine.prototype.getCanvasColor=function(u1p){var k8i;k8i=this.canvasStyle(u1p);return k8i.color;};i2j.ChartEngine.prototype.getDefaultColor=function(){var Q$h,e_C,Y_U,Q2Y,A27,D$K,l8r,e2_;M2dNJ.j07();this.defaultColor="#000000";Q$h=null;e_C=this.chart.container;while(!Q$h || i2j.isTransparent(Q$h)){Y_U=getComputedStyle(e_C);if(!Y_U){return;}Q$h=Y_U.backgroundColor;if(i2j.isTransparent(Q$h)){Q$h="transparent";}e_C=e_C.parentNode;if(!e_C || !e_C.tagName)break;}if(Q$h){if(Q$h == "transparent"){Q$h="#FFFFFF";}this.containerColor=Q$h;if(!i2j.isTransparent(Q$h)){Q2Y="#F";Q2Y+="FFFFF";A27=i2j.hsv(Q$h);D$K=A27[2];if(D$K > 0.65){this.defaultColor="#000000";}else {this.defaultColor=Q2Y;}}else {l8r="#00";l8r+="0000";this.defaultColor=l8r;}}else {e2_="#FF";e2_+="FFFF";this.containerColor=e2_;}};};d7=h$k=>{var d5a=M2dNJ;var c7M,E$M,g_W,O_U;d5a.j07();c7M=986679401;d5a.i3C(71);E$M=d5a.k$A("1978272640",32);g_W=2;for(var j4Q=1;d5a.b3_(j4Q.toString(),j4Q.toString().length,92475) !== c7M;j4Q++){O_U=h$k.CIQ;g_W+=2;}if(d5a.m7$(g_W.toString(),g_W.toString().length,33258) !== E$M){O_U=h$k.CIQ;}O_U.ChartEngine.XAxis=function(u8f){d5a.j07();for(var c50 in u8f){this[c50]=u8f[c50];}};O_U.extend(O_U.ChartEngine.XAxis.prototype,{formatter:null,adjustTimeZone:!"",idealTickSizePixels:null,timeUnit:null,timeUnitMultiplier:null,displayBorder:!![],displayGridLines:!![],noDraw:null,minimumLabelWidth:50,futureTicks:!"",futureTicksInterval:1},!!"1");O_U.ChartEngine.XAxisLabel=function(k3U,z1K,j$n){this.hz=k3U;this.grid=z1K;this.text=j$n;};O_U.ChartEngine.prototype.createXAxis=function(K9y){var O13,J4k,B3X;O13="createX";O13+="Axis";if(K9y.dataSegment.length <= +"0"){return null;}if(K9y.xAxis.noDraw){return null;}J4k=[K9y];B3X=this.runPrepend(O13,J4k);if(B3X){return B3X;}if(this.mainSeriesRenderer && this.mainSeriesRenderer.createXAxis){B3X=this.mainSeriesRenderer.createXAxis(K9y);}else {B3X=this.createTickXAxisWithDates(K9y);}this.headsUpHR();this.runAppend("createXAxis",J4k);return B3X;};O_U.ChartEngine.prototype.createXAxisLabel=function(g0A){var c0f,a1P,S88,u72,U0S,o6p,J1S,W05,S8L,M0x,s4G,B9Q,t1z,H_i,X3m,I8L,U23,N4w;c0f="t";c0f+="o";c0f+="p";if(arguments["0" * 1] instanceof O_U.ChartEngine.Panel){a1P=-1122848453;S88=745028536;u72=2;for(var D2d=1;d5a.b3_(D2d.toString(),D2d.toString().length,41169) !== a1P;D2d++){g0A={panel:arguments[6],txt:arguments[7],x:arguments[6],backgroundColor:arguments[5],color:arguments[6],pointed:arguments[1],padding:arguments["7" ^ 0]};u72+=2;}if(d5a.m7$(u72.toString(),u72.toString().length,80887) !== S88){g0A={panel:arguments[6],txt:arguments[7],x:arguments[6],backgroundColor:arguments[5],color:arguments[6],pointed:arguments[1],padding:arguments[7]};}g0A={panel:arguments[0],txt:arguments[1],x:arguments[2],backgroundColor:arguments["3" - 0],color:arguments[4],pointed:arguments[5],padding:arguments[6]};}U0S=g0A.panel;o6p=g0A.txt;J1S=g0A.x;W05=g0A.backgroundColor;S8L=g0A.color;M0x=g0A.pointed;s4G=g0A.padding === 0?0:g0A.padding || 2;B9Q=this.chart.context;t1z="stx-float-date";d5a.a3e(149);var V0W=d5a.k$A(0,13,1,26);H_i=this.getCanvasFontSize(t1z) + s4G * V0W;this.canvasFont(t1z,B9Q);try{d5a.a3e(150);var T7I=d5a.k$A(2,9,3,1,12);X3m=B9Q.measureText(o6p).width + s4G * T7I;}catch(g1v){X3m=0;}I8L=U0S.top + U0S.height - H_i - s4G;if(J1S + X3m / 2 < U0S.left || J1S - X3m / 2 > U0S.right){return;}if(!M0x){if(J1S + X3m / 2 > U0S.right){J1S=U0S.right - X3m / +"2";}if(J1S - X3m / 2 < U0S.left){d5a.a3e(25);var s1M=d5a.k$A(15,36,538);J1S=U0S.left + X3m / s1M;}}B9Q.fillStyle=W05;O_U.roundRect({ctx:B9Q,x:J1S - X3m / 2,top:I8L,width:X3m,height:H_i,radius:3,fill:!![]});U23=U0S.bottom - U0S.yAxis.bottom - H_i;B9Q.beginPath();if(M0x){d5a.i3C(1);B9Q.moveTo(d5a.k$A(U23,J1S),I8L);d5a.i3C(34);B9Q.lineTo(J1S,d5a.k$A(U23,1,I8L));d5a.a3e(4);B9Q.lineTo(d5a.B0m(U23,J1S),I8L);B9Q.closePath();B9Q.fill();}else {B9Q.moveTo(J1S,I8L);d5a.a3e(1);B9Q.lineTo(J1S,d5a.k$A(U23,I8L));B9Q.strokeStyle=W05;B9Q.stroke();}B9Q.textBaseline=c0f;B9Q.fillStyle=S8L?S8L:O_U.chooseForegroundColor(W05);if(B9Q.fillStyle == W05){N4w="#F";N4w+="FFF";N4w+="F";N4w+="F";if(W05.toUpperCase() == "#FFFFFF"){B9Q.fillStyle="#000000";}else {B9Q.fillStyle=N4w;}}d5a.a3e(151);B9Q.fillText(o6p,d5a.B0m(1,2,X3m,J1S,s4G),d5a.B0m(s4G,I8L,2,d5a.i3C(152)));};};U8=c7G=>{var K8j=M2dNJ;var E3W;E3W=c7G.CIQ;E3W.createLabel=function(q$V){var s3d,a3I,p2V,Y5L,T9c,y5h;s3d="mi";s3d+="ddle";q$V.ctx.textBaseline=s3d;q$V.ctx.fillStyle=q$V.color?q$V.color:E3W.chooseForegroundColor(q$V.backgroundColor);if(q$V.ctx.fillStyle === q$V.backgroundColor){a3I="#F";a3I+="FFF";a3I+="F";a3I+="F";p2V="#FFF";p2V+="F";p2V+="FF";if(q$V.backgroundColor.toUpperCase() == p2V){q$V.ctx.fillStyle="#000000";}else {q$V.ctx.fillStyle=a3I;}}q$V.ctx.fillText(q$V.txt,q$V.x + q$V.margin.left,q$V.y + q$V.margin.top);Y5L=-+"1150041568";T9c=590149505;y5h=2;for(var O57=+"1";K8j.m7$(O57.toString(),O57.toString().length,9615) !== Y5L;O57++){q$V.ctx.textAlign="left";y5h+=+"2";}if(K8j.b3_(y5h.toString(),y5h.toString().length,68216) !== T9c){q$V.ctx.textAlign="";}};E3W.roundRectArrow=function(p4s){K8j.j07();E3W.roundRect(p4s,"arrow");};E3W.semiRoundRect=function(l1p){var O5N;O5N="fl";O5N+="u";O5N+="s";O5N+="h";E3W.roundRect(l1p,O5N);};E3W.rect=function(W9e){K8j.j07();W9e.radius=0;E3W.roundRect(W9e);};E3W.noop=function(D3A){D3A.color=D3A.backgroundColor;E3W.createLabel(D3A);};E3W.tickedRect=function(Q00){var g3M;E3W.rect(Q00);K8j.i3C(4);var X5N=K8j.k$A(2,0);g3M=Math.round(Q00.top + Q00.height / X5N) + 0.5;Q00.ctx.beginPath();Q00.ctx.moveTo(Q00.x - 2,g3M);Q00.ctx.lineTo(Q00.x,g3M);Q00.ctx.stroke();Q00.ctx.closePath();};E3W.roundRect=function(v4G,Z48){var A_M,c3H,e3L,i_L,U38,l_v,l$d,A5d,S3i,v1w,A5X,I0w,n9u,h3N,k6M,V9Q,o7J;A_M="undefine";A_M+="d";if(arguments.length === 9){v4G={ctx:arguments[0],x:arguments[1],top:arguments[2],width:arguments["3" << 64],height:arguments[4],radius:arguments[5],fill:arguments["6" >> 0],stroke:arguments[+"7"],edge:arguments[8]};}c3H=v4G.stroke;e3L=v4G.x;i_L=v4G.top;U38=v4G.width;l_v=v4G.height;l$d=v4G.radius;A5d=v4G.fill;S3i=v4G.ctx;if(typeof c3H == "undefined"){c3H=!0;}if(typeof l$d === A_M){l$d=5;if(U38 < 0){l$d=-+"5";}}v1w=U38 < 0?l$d * -+"1":l$d;if(l$d && !Z48){K8j.i3C(1);e3L=K8j.B0m(1,e3L);}K8j.i3C(4);A5X=K8j.B0m(l$d,e3L);K8j.i3C(4);I0w=K8j.k$A(U38,e3L);K8j.i3C(4);n9u=K8j.B0m(v1w,i_L);K8j.a3e(4);h3N=K8j.k$A(l_v,i_L);K8j.i3C(1);k6M=K8j.k$A(l$d,I0w);K8j.a3e(1);V9Q=K8j.k$A(v1w,h3N);S3i.beginPath();S3i.moveTo(A5X,i_L);S3i.lineTo(k6M,i_L);S3i.quadraticCurveTo(I0w,i_L,I0w,n9u);S3i.lineTo(I0w,V9Q);S3i.quadraticCurveTo(I0w,h3N,k6M,h3N);S3i.lineTo(A5X,h3N);if(Z48 == "flush"){S3i.lineTo(e3L,h3N);S3i.lineTo(e3L,i_L);}else if(Z48 == "arrow"){K8j.i3C(1);S3i.quadraticCurveTo(e3L,h3N,K8j.k$A(l$d,e3L),V9Q);o7J=U38 < ("0" ^ 0)?1:-1;K8j.i3C(153);S3i.lineTo(K8j.B0m(o7J,e3L,2,l_v),K8j.B0m(i_L,2,l_v,K8j.i3C(46)));K8j.i3C(1);S3i.lineTo(K8j.k$A(l$d,e3L),n9u);S3i.quadraticCurveTo(e3L,i_L,A5X,i_L);}else {S3i.quadraticCurveTo(e3L,h3N,e3L,V9Q);S3i.lineTo(e3L,n9u);S3i.quadraticCurveTo(e3L,i_L,A5X,i_L);}S3i.closePath();if(v4G.backgroundColor){S3i.fillStyle=v4G.backgroundColor;}if(c3H){S3i.stroke();}if(A5d){S3i.fill();}if(v4G.txt){E3W.createLabel(v4G);}};E3W.ChartEngine.YAxis=function(U48){for(var Y6W in U48){this[Y6W]=U48[Y6W];}if(!this.name){this.name=E3W.uniqueID();}if(this.position == "none"){this.width=0;}};E3W.extend(E3W.ChartEngine.YAxis.prototype,{high:null,low:null,shadow:null,logHigh:null,logLow:null,logShadow:null,multiplier:null,bottom:null,top:null,height:null,left:null,width:null,renderers:[],studies:[]},!!({}));K8j.a3e(82);E3W.ChartEngine.YAxis.defaultShadowBreaks=[[1000,2],[K8j.k$A(0,"5"),4],[0.001,8]];K8j.a3e(82);E3W.ChartEngine.YAxis.smallChartShadowBreaks=[[K8j.B0m(32,"10"),K8j.B0m(0,"2",K8j.i3C(1))],[1,4]];E3W.ChartEngine.YAxis.prototype.maxDecimalPlaces=null;E3W.ChartEngine.YAxis.prototype.max=null;E3W.ChartEngine.YAxis.prototype.min=null;E3W.ChartEngine.YAxis.prototype.decimalPlaces=null;E3W.ChartEngine.YAxis.prototype.idealTickSizePixels=null;E3W.ChartEngine.YAxis.prototype.minimumPriceTick=null;E3W.ChartEngine.YAxis.prototype.fractional=null;E3W.ChartEngine.YAxis.prototype.displayBorder=!"";E3W.ChartEngine.YAxis.prototype.displayGridLines=!!1;E3W.ChartEngine.YAxis.prototype.noDraw=null;E3W.ChartEngine.YAxis.prototype.drawCurrentPriceLabel=!!({});E3W.ChartEngine.YAxis.prototype.drawSeriesPriceLabels=!![];E3W.ChartEngine.YAxis.prototype.drawPriceLabels=!![];E3W.ChartEngine.YAxis.prototype.goldenRatioYAxis=!![];E3W.ChartEngine.YAxis.prototype.yaxisLabelStyle=null;E3W.ChartEngine.YAxis.prototype.justifyRight=null;E3W.ChartEngine.YAxis.prototype.flipped=!({});E3W.ChartEngine.YAxis.prototype.textBackground=!!0;E3W.ChartEngine.YAxis.prototype.priceFormatter=null;E3W.ChartEngine.YAxis.prototype.bottomOffset=0;E3W.ChartEngine.YAxis.prototype.topOffset=0;E3W.ChartEngine.YAxis.prototype.initialMarginTop=10;E3W.ChartEngine.YAxis.prototype.initialMarginBottom=10;E3W.ChartEngine.YAxis.prototype.zoom=0;E3W.ChartEngine.YAxis.prototype.scroll=0;E3W.ChartEngine.YAxis.prototype.heightFactor=1;Object.defineProperty(E3W.ChartEngine.YAxis.prototype,"width",{configurable:!!"1",enumerable:!!"1",get:function(){return this._dynamicWidth || this._width;},set:function(d8V){this._width=d8V;if(this._dynamicWidth < d8V){this._dynamicWidth=NaN;}}});K8j.i3C(1);E3W.ChartEngine.YAxis.prototype.width=K8j.k$A(0,"60");E3W.ChartEngine.YAxis.prototype.smallScreenWidth=+"50";E3W.ChartEngine.YAxis.prototype.textStyle=null;E3W.ChartEngine.YAxis.prototype.position=null;E3W.ChartEngine.YAxis.prototype.pretty=!![];E3W.ChartEngine.YAxis.prototype.increments=[1,2.5,+"5"];E3W.ChartEngine.YAxis.prototype.prettySemiLog=!![];E3W.ChartEngine.YAxis.prototype.shadowBreaks=E3W.ChartEngine.YAxis.defaultShadowBreaks;E3W.ChartEngine.YAxis.prototype.getYAxis=function(E1h){return this;};E3W.ChartEngine.YAxis.prototype.isShared=function(b7H,i2f){var L4s,O66;K8j.E0w();L4s=this.studies.length;O66=this.renderers.length;if(L4s > 1){return !![];}if(O66 && L4s){return !!1;}if(!O66){return ![];}if(O66 > 1 && i2f){return !![];}for(var l$G=O66 - 1;l$G >= 0;l$G--){if(b7H.chart.seriesRenderers[this.renderers[l$G]].params.dependentOf){O66--;}}K8j.a3e(154);return K8j.B0m(O66,1);};E3W.ChartEngine.YAxis.prototype.setBackground=function(b7u,I4c){var b4t;if(!I4c){I4c={};}if(!I4c.color){I4c.color="auto";}b4t=[[this.left,this.top],[this.left,this.bottom],[this.left + this.width,this.bottom],[this.left + this.width,this.top]];E3W.fillArea(b7u,b4t,{color:I4c.color,opacity:I4c.opacity});};E3W.ChartEngine.YAxis.prototype.setBreakpointWidth=function(k6e){var h3j,B7L,q2k,m37;if(!k6e){return;}h3j=1063842979;B7L=-+"1944966853";q2k=2;for(var V_b="1" * 1;K8j.b3_(V_b.toString(),V_b.toString().length,69962) !== h3j;V_b++){var {width:m7l, smallScreenWidth:b9Z}=E3W.ChartEngine.YAxis.prototype;K8j.a3e(155);m37=K8j.B0m("",k6e);q2k+=2;}if(K8j.m7$(q2k.toString(),q2k.toString().length,81858) !== B7L){var {width:m7l, smallScreenWidth:b9Z}=E3W.ChartEngine.YAxis.prototype;K8j.a3e(123);m37=K8j.k$A(k6e,"");}var {width:m7l, smallScreenWidth:b9Z}=E3W.ChartEngine.YAxis.prototype;K8j.i3C(123);m37=K8j.k$A(k6e,"break-sm");this.width=m37?b9Z:m7l;};E3W.ChartEngine.prototype.getLabelOffsetInPixels=function(Y6_,w2k){var c_M,P4c,e93;c_M=!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars;if(this.yaxisLabelStyle == "roundRectArrow" && !(c_M && this.extendLastTick && Y6_.yaxisPaddingRight !== 0)){P4c=3;K8j.a3e(22);var f4Q=K8j.B0m(6,3,22,82);e93=this.getCanvasFontSize("stx_yaxis") + P4c * f4Q;K8j.a3e(38);return K8j.B0m(e93,0.66);}return +"0";};E3W.ChartEngine.prototype.flipChart=function(i1o){if(this.layout.flipped == i1o){return;}this.layout.flipped=i1o;this.chart.yAxis.flipped=i1o;this.changeOccurred("layout");this.draw();};E3W.ChartEngine.prototype.calculateYAxisMargins=function(U$w){if(U$w.heightFactor){K8j.a3e(7);var w0N=K8j.k$A(0,8,7);U$w.zoom=U$w.height * (w0N - U$w.heightFactor);}U$w.zoom+=U$w.initialMarginTop + U$w.initialMarginBottom;K8j.i3C(58);var W6t=K8j.k$A(15,10,11,16);U$w.scroll=(U$w.initialMarginTop - U$w.initialMarginBottom) / W6t;K8j.j07();if(U$w.zoom > U$w.height){U$w.zoom=0;U$w.scroll=0;}};E3W.ChartEngine.prototype.resetDynamicYAxis=function(b2Q){var E96,Q18,Q0I;if(this.runPrepend("resetDynamicYAxis",arguments)){return;}E96=![];for(var w$d in this.panels){Q18=this.panels[w$d];if(b2Q && b2Q.chartName && Q18.chart.name !== b2Q.chartName)continue;if(!Q18.yaxisLHS || !Q18.yaxisRHS)continue;Q0I=Q18.yaxisLHS.concat(Q18.yaxisRHS);for(var L5q=0;L5q < Q0I.length;L5q++){if(Q0I[L5q]._dynamicWidth){Q0I[L5q]._dynamicWidth=NaN;E96=!0;}}}if(E96 && (!b2Q || !b2Q.noRecalculate)){this.calculateYAxisPositions();}this.runAppend("resetDynamicYAxis",arguments);};E3W.ChartEngine.prototype.notifyBreakpoint=function(V2n){var r68,x5I,o2a,J9e;r68="b";r68+="reak-";r68+="s";r68+="m";if(this.chart.breakpoint === V2n){return;}if(!["break-lg","break-md",r68].includes(V2n)){return;}var {chart:R97}=this;var {dynamicYAxis:C$W}=R97;this.clearStyles();R97.breakpoint=V2n;for(var U33 in this.panels){x5I=this.panels[U33];o2a=x5I.yaxisRHS.concat(x5I.yaxisLHS);for(var m_Z=0;m_Z < o2a.length;m_Z++){J9e=o2a[m_Z];J9e.setBreakpointWidth(V2n);}}if(C$W){this.resetDynamicYAxis({chartName:R97.name});}};E3W.ChartEngine.prototype.adjustYAxisHeightOffset=function(R_I,J01){var O5c,S1g,e2B,C1R;O5c=J01.topOffset;S1g=J01.bottomOffset;if(O5c + S1g > R_I.height){e2B="The sum of yAxis.topOffset and yAxis.bottomOffset cannot be greater than the panel height. Both values will be r";e2B+="eset to 0.";console.log(e2B);J01.bottomOffset=+"0";J01.topOffset=+"0";}if(!this.xaxisHeight && this.xaxisHeight !== 0){K8j.a3e(33);var t2$=K8j.B0m(7,18,13,1634);this.xaxisHeight=this.getCanvasFontSize("stx_xaxis") + t2$;if(this.chart.xAxis.displayBorder || this.axisBorders){this.xaxisHeight+=3;}}C1R=this.xAxisAsFooter && R_I.bottom > this.chart.canvasHeight - this.xaxisHeight || !this.xAxisAsFooter && R_I == this.chart.panel;if(C1R){S1g+=this.xaxisHeight;}J01.top=R_I.top + O5c;J01.bottom=R_I.bottom - S1g;};E3W.ChartEngine.prototype.plotYAxisGrid=function(V3j){var t1S,J3F,H2c,O_h;t1S="plotYA";t1S+="xisGrid";J3F="plo";J3F+="tYAxisGrid";if(this.runPrepend(J3F,arguments)){return;}H2c=this.getBackgroundCanvas().context;O_h=V3j.yAxis;if(O_h.yAxisPlotter){O_h.yAxisPlotter.draw(H2c,"grid");}this.runAppend(t1S,arguments);};E3W.ChartEngine.prototype.plotYAxisText=function(z_k){var M61,U_S,w7r,p08,F3O;M61="plotYAxisT";M61+="e";M61+="x";M61+="t";if(this.runPrepend(M61,arguments)){return;}U_S=this.getBackgroundCanvas().context;this.canvasFont("stx_yaxis",U_S);this.canvasColor("stx_yaxis",U_S);U_S.textBaseline="middle";w7r=z_k.yaxisLHS;for(p08=0;p08 < w7r.length;p08++){F3O="rig";F3O+="ht";U_S.textAlign=F3O;M3K(w7r[p08]);}w7r=z_k.yaxisRHS;for(p08=0;p08 < w7r.length;p08++){U_S.textAlign="left";M3K(w7r[p08]);}U_S.textAlign="left";U_S.textBaseline="alphabetic";this.runAppend("plotYAxisText",arguments);function M3K(B2j){var S5h;S5h="t";S5h+="e";S5h+="xt";if(!B2j.yAxisPlotter){return;}if(B2j.noDraw || !B2j.width){return;}if(B2j.justifyRight){U_S.textAlign="right";}else if(B2j.justifyRight === ![]){U_S.textAlign="left";}B2j.yAxisPlotter.draw(U_S,S5h);}};E3W.ChartEngine.prototype.decimalPlacesFromPriceTick=function(X7T){if(X7T < 0.0001){K8j.a3e(13);return K8j.B0m("8",0);}if(X7T < 0.01){return 4;}if(X7T < 0.1){return 2;}if(X7T < 1){return 1;}return 0;};E3W.ChartEngine.prototype.formatYAxisPrice=function(d8d,T0g,l$c,p8D,a_i){var B4Q,n0Y,M5S,d2d,o7s;if(d8d === null || typeof d8d == "undefined" || isNaN(d8d)){return "";}if(!T0g){T0g=this.chart.panel;}B4Q=p8D?p8D:T0g.yAxis;n0Y=l$c;if(!n0Y && n0Y !== 0){n0Y=B4Q.printDecimalPlaces;}if(!n0Y && n0Y !== +"0"){n0Y=this.decimalPlacesFromPriceTick(B4Q.priceTick);}M5S=B4Q == T0g.chart.yAxis?20000:+"1000";if(B4Q.priceTick >= M5S){d8d=d8d.toFixed(n0Y);return E3W.condenseInt(d8d);}d2d=this.internationalizer;if(d2d && a_i !== ![]){o7s=d2d.priceFormatters.length;if(n0Y >= o7s){K8j.i3C(1);n0Y=K8j.k$A(1,o7s);}d8d=d2d.priceFormatters[n0Y].format(d8d);}else {d8d=d8d.toFixed(n0Y);;}return d8d;};E3W.ChartEngine.prototype.calculateYAxisRange=function(O5j,u96,E9W,j6e){var X2s,V7n,Q0T,a9X,U7d,C7m,Z$9,W2G,e2P,I5O,L9M,b5e,b6R;X2s="l";X2s+="o";X2s+="g";if(E9W == Number.MAX_VALUE){E9W=0;j6e=0;}V7n=O5j.height;Q0T=null;a9X=null;this.adjustYAxisHeightOffset(O5j,u96);u96.height=u96.bottom - u96.top;U7d=Math.round(Math.abs(V7n / 5));if(u96.zoom >= 0 && V7n - Math.abs(u96.scroll) < U7d){K8j.a3e(156);var y_E=K8j.B0m(13,33,11,10,1);K8j.a3e(18);var l9_=K8j.B0m(953,17,18,15,21);u96.scroll=(V7n - U7d) * (u96.scroll < 0?y_E:l9_);}C7m=O5j.chart.name === O5j.name && O5j.yAxis.name === u96.name;K8j.E0w();Z$9=E9W > 0 && (this.layout.semiLog || this.layout.chartScale == X2s) && !O5j.chart.isComparison && this.layout.aggregationType != "pandf";if(E9W || E9W === 0){if(j6e - E9W === 0){W2G=Math.pow(10,-(E9W.toString() + (6227 != ("1487" << 96,614.85)?".":(+"721.79",380) === 5393?(121.24,!"1"):3753 <= (5720,1355)?("4.11e+3" << 64,!!0):"Z")).split(9779 !== (2449,1360)?".":(142.21,+"911.62"))[1].length);if(W2G == 1){W2G=100;}K8j.a3e(4);Q0T=K8j.B0m(W2G,E9W);K8j.i3C(1);a9X=K8j.B0m(W2G,E9W);}else {if(C7m && Z$9 && (j6e || j6e === 0)){e2P=Math.log(E9W) / Math.LN10;I5O=Math.log(j6e) / Math.LN10;Q0T=Math.pow(10,I5O);a9X=Math.pow(10,e2P);}else {Q0T=j6e;a9X=E9W;}}u96.high=Q0T;u96.low=a9X;}if(u96.max || u96.max === 0){u96.high=u96.max;}if(u96.min || u96.min === 0){u96.low=u96.min;}u96.shadow=u96.high - u96.low;if(C7m){if(u96.semiLog != Z$9){L9M=644227104;b5e=-113168193;b6R=2;for(var I9o=1;K8j.m7$(I9o.toString(),I9o.toString().length,17288) !== L9M;I9o++){this.clearPixelCache();K8j.i3C(71);b6R+=K8j.k$A("2",0);}if(K8j.b3_(b6R.toString(),b6R.toString().length,58110) !== b5e){this.clearPixelCache();}u96.semiLog=Z$9;}u96.flipped=this.layout.flipped;}};E3W.ChartEngine.prototype.renderYAxis=function(A3o){var v1G,S$M,a5s,Z7n,R9W,Q9y,h1f,p9C,a0X,R2f;v1G="yAx";v1G+="is";S$M="re";S$M+="b";S$M+="oot dr";S$M+="aw";if(this.runPrepend("renderYAxis",arguments)){return;}if(this.checkLogScale()){throw new Error(S$M);}this.rendererAction(A3o,v1G);var {context:X1B}=this.getBackgroundCanvas(A3o);for(var G_t in this.panels){a5s=this.panels[G_t];if(a5s.chart != A3o)continue;Z7n=a5s.yaxisRHS.concat(a5s.yaxisLHS);for(R9W=0;R9W < Z7n.length;R9W++){Q9y=Z7n[R9W];this.calculateYAxisRange(a5s,Q9y,Q9y.lowValue,Q9y.highValue);h1f=E3W.getFn("Studies.getYAxisParameters",{})(this,Q9y);h1f.yAxis=Q9y;this.createYAxis(a5s,h1f);this.drawYAxis(a5s,h1f);E3W.getFn("Studies.doPostDrawYAxis")(this,Q9y);}for(R9W=0;R9W < Z7n.length;R9W++){Q9y=Z7n[R9W];if(Q9y.dropzone){p9C=this.canvasStyle("stx-subholder dropzone left");if(p9C){X1B.strokeStyle=p9C.borderLeftColor;X1B.lineWidth=parseFloat(p9C.borderLeftWidth);X1B.beginPath();if(Q9y.dropzone == "all"){X1B.strokeRect(Q9y.left,Q9y.top,Q9y.width,Q9y.height);}else {a0X="l";a0X+="e";a0X+="ft";R2f=Q9y.left + (Q9y.dropzone == a0X?0:Q9y.width);X1B.moveTo(R2f,Q9y.top);X1B.lineTo(R2f,Q9y.top + Q9y.height);X1B.stroke();}}}}if(this.displayDragOK){this.displayDragOK(!!"1");}}this.runAppend("renderYAxis",arguments);};E3W.ChartEngine.prototype.updateFloatHRLabel=function(D8w){K8j.j07();var y8V,Y0V,n8_,J3S,n3t,p4O,j3W,X5k,e$_;if(!this.floatCanvas){return;}y8V=D8w.yaxisLHS.concat(D8w.yaxisRHS);Y0V=this.crossYActualPos?this.crossYActualPos:this.cy;if(this.floatCanvas.isDirty){E3W.clearCanvas(this.floatCanvas,this);}if(this.controls.crossX && this.controls.crossX.style.display == "none"){return;}if(this.controls.crossY){n8_="p";n8_+="x";J3S="r";J3S+="oundRectAr";J3S+="row";n3t=D8w.width;if(this.yaxisLabelStyle == J3S){n3t-=+"7";}this.controls.crossY.style.left=D8w.left + n8_;K8j.i3C(4);this.controls.crossY.style.width=K8j.k$A("px",n3t);}for(var C1r="0" - 0;C1r < y8V.length;C1r++){p4O=y8V[C1r];j3W=this.transformedPriceFromPixel(Y0V,D8w,p4O);if(isNaN(j3W))continue;if((p4O.min || p4O.min === 0) && j3W < p4O.min)continue;if((p4O.max || p4O.max === 0) && j3W > p4O.max)continue;X5k=null;if(p4O !== D8w.chart.yAxis){X5k=this.decimalPlacesFromPriceTick(p4O.priceTick);if(p4O.decimalPlaces || p4O.decimalPlaces === 0){X5k=p4O.decimalPlaces;}}if(p4O.priceFormatter){j3W=p4O.priceFormatter(this,D8w,j3W,X5k);}else {j3W=this.formatYAxisPrice(j3W,D8w,X5k,p4O);}e$_=this.canvasStyle("stx-float-price");this.createYAxisLabel(D8w,j3W,Y0V,e$_.backgroundColor,e$_.color,this.floatCanvas.context,p4O);this.floatCanvas.isDirty=!0;}};E3W.ChartEngine.prototype.whichYAxis=function(l13,J5O,R5l){var i$J,z7a,s3G;if(typeof J5O === "undefined"){J5O=this.cx;}K8j.j07();if(typeof R5l === "undefined"){R5l=this.cy;}i$J=this.whichPanel(R5l);if(l13 && l13 == i$J){z7a=l13.yaxisLHS.concat(l13.yaxisRHS);for(var d1y="0" >> 0;d1y < z7a.length;d1y++){s3G=z7a[d1y];if(s3G.left <= J5O && s3G.left + s3G.width >= J5O){return s3G;}}}return null;};E3W.ChartEngine.prototype.yaxisMatches=function(Q0H,h$B){if(!Q0H || !Q0H.getYAxis || !h$B || !(h$B instanceof E3W.ChartEngine.YAxis)){return !1;}return Q0H.getYAxis(this).name == h$B.name;};E3W.ChartEngine.prototype.createYAxisLabel=function(T4D,w_h,b8S,E_8,V3w,O9J,e$t){var c6R,d7Z,k6E,C1F,w2h,w6x,H5B,h45,S2D,Y6V,E2J,U4h,V6w,o3R,n2l;c6R="stx_yax";c6R+="is";if(T4D.yAxis.drawPriceLabels === ![] || T4D.yAxis.noDraw){return;}d7Z=e$t?e$t:T4D.yAxis;if(d7Z.noDraw || !d7Z.width){return;}k6E=O9J?O9J:this.chart.context;C1F=3;w2h=this.getCanvasFontSize(c6R) + C1F * ("2" | 0);this.canvasFont("stx_yaxis",k6E);w6x=d7Z.displayBorder;H5B=this.drawBorders?3:0;try{K8j.i3C(67);var Y4Y=K8j.k$A(15,159,8,22);h45=k6E.measureText(w_h).width + H5B + C1F * Y4Y;}catch(P5H){h45=d7Z.width;}K8j.i3C(64);var s$5=K8j.k$A(2,12,323,27);S2D=d7Z.left - C1F + s$5;if(d7Z.width < 0){S2D+=d7Z.width - h45;}K8j.a3e(50);Y6V=K8j.B0m(C1F,S2D,H5B);E2J=+"3";U4h=d7Z.position === null?T4D.chart.yAxis.position:d7Z.position;if(U4h === "left"){K8j.i3C(7);var N7C=K8j.k$A(15,2,14);S2D=d7Z.left + d7Z.width + C1F - N7C;K8j.a3e(144);h45=K8j.k$A(1,h45);if(d7Z.width < 0){S2D-=d7Z.width + h45;}K8j.i3C(34);Y6V=K8j.k$A(C1F,H5B,S2D);E2J=-3;k6E.textAlign="right";}if(b8S + w2h / 2 > d7Z.bottom){K8j.i3C(1);var Q34=K8j.B0m(18,20);b8S=d7Z.bottom - w2h / Q34;}if(b8S - w2h / 2 < d7Z.top){K8j.a3e(58);var n2V=K8j.k$A(3,7,36,6);b8S=d7Z.top + w2h / ("2" << n2V);}if(typeof E3W[this.yaxisLabelStyle] == "undefined"){V6w="r";V6w+="oundRectA";V6w+="rro";V6w+="w";this.yaxisLabelStyle=V6w;;}o3R=this.yaxisLabelStyle;if(d7Z.yaxisLabelStyle){o3R=d7Z.yaxisLabelStyle;}n2l={ctx:k6E,x:S2D,y:b8S,top:b8S - w2h / 2,width:h45,height:w2h,radius:E2J,backgroundColor:E_8,fill:!!({}),stroke:!"1",margin:{left:Y6V - S2D,top:1},txt:w_h,color:V3w};E3W[o3R](n2l);};E3W.ChartEngine.prototype.drawCurrentHR=function(){K8j.j07();var u05,v6X,q_D,K6K,e30,V_x,c64,T_u,Q7$,M6R,q_x,e_G,e7v,O8g,P2L,a4F,U34,l_b,c1s,A8u,o1g,L2L;u05="drawCur";u05+="rentHR";if(this.runPrepend(u05,arguments)){return;}K6K=this.mainSeriesRenderer || ({});if(K6K.noCurrentHR){return;}e30=K6K.highLowBars;for(var d1p in this.charts){V_x="d";V_x+="ataSegm";V_x+="ent";c64=this.charts[d1p];T_u=c64.panel;Q7$=T_u.yAxis;if(T_u.hidden)continue;if(Q7$.drawCurrentPriceLabel === !1 || Q7$.noDraw)continue;if(!K6K.params)continue;M6R=Q7$.whichSet;if(!M6R){M6R="dataSet";}if(this.isHistoricalModeSet && M6R !== "dataSegment")continue;q_x=c64[M6R].length;e_G=this.layout.candleWidth;if(M6R == V_x){while(q_x > (c64.width - this.micropixels + e_G / 2 + 1) / e_G){q_x--;}}if(q_x && c64[M6R][q_x - 1]){e7v=c64.defaultPlotField;if(!e7v || e30){e7v="Close";}do {O8g=c64[M6R][--q_x][e7v];P2L=O8g;if(q_x === 0)break;}while(P2L === null || P2L === undefined);if(M6R == "dataSet" && c64.currentQuote){P2L=c64.currentQuote[e7v];}else if(c64[M6R].length >= 2){K8j.a3e(1);a4F=c64[M6R][K8j.B0m(1,q_x)];if(a4F){O8g=a4F[e7v];}}if(P2L < O8g){v6X=this.canvasStyle("stx_current_hr_down").backgroundColor;q_D=this.canvasStyle("stx_current_hr_down").color;}else {U34="stx_current_hr_";U34+="up";v6X=this.canvasStyle("stx_current_hr_up").backgroundColor;q_D=this.canvasStyle(U34).color;}if(c64.transformFunc){P2L=c64.transformFunc(this,c64,P2L);}c1s=Math.max(T_u.yAxis.printDecimalPlaces,T_u.chart.decimalPlaces);if(Q7$.maxDecimalPlaces || Q7$.maxDecimalPlaces === 0){c1s=Math.min(c1s,Q7$.maxDecimalPlaces);}if(Q7$.priceFormatter){l_b=Q7$.priceFormatter(this,T_u,P2L,c1s);}else {l_b=this.formatYAxisPrice(P2L,T_u,c1s);}A8u=this.pixelFromTransformedValue(P2L,T_u);this.createYAxisLabel(T_u,l_b,A8u,v6X,q_D);if(this.preferences.currentPriceLine === !![] && this.isHome()){o1g="das";o1g+="h";o1g+="e";o1g+="d";L2L="lin";L2L+="e";this.plotLine(T_u.left,T_u.right,A8u,A8u,v6X,L2L,T_u.chart.context,T_u,{pattern:o1g,lineWidth:1,opacity:0.8,globalCompositeOperation:"destination-over"});}}}this.runAppend("drawCurrentHR",arguments);};E3W.ChartEngine.prototype.getYAxisByName=function(Q9I,E1p){var h$_;if(typeof Q9I == "string"){Q9I=this.panels[Q9I];}if(!Q9I || !E1p){return undefined;}if(E1p === Q9I.yAxis.name){return Q9I.yAxis;}for(h$_=+"0";Q9I.yaxisLHS && h$_ < Q9I.yaxisLHS.length;h$_++){if(Q9I.yaxisLHS[h$_].name === E1p){return Q9I.yaxisLHS[h$_];}}for(h$_=0;Q9I.yaxisRHS && h$_ < Q9I.yaxisRHS.length;h$_++){if(Q9I.yaxisRHS[h$_].name === E1p){return Q9I.yaxisRHS[h$_];}}return undefined;};E3W.ChartEngine.prototype.getYAxisByField=function(G0h,W6y){var n85,c$k,D$L,t9_,P37,a$T,O$r;if(W6y){for(n85 in this.layout.studies){c$k=this.layout.studies[n85];if(c$k.panel != G0h.name)continue;if(c$k.outputMap && c$k.outputMap.hasOwnProperty(W6y)){return c$k.getYAxis(this);}}for(n85 in this.chart.seriesRenderers){t9_=this.chart.seriesRenderers[n85];for(var i_G=+"0";i_G < t9_.seriesParams.length;i_G++){P37="-";P37+="-";P37+=">";if(t9_.params.panel != G0h.name)continue;a$T=t9_.seriesParams[i_G];O$r=a$T.field;if(!O$r && !t9_.highLowBars){O$r=this.defaultPlotField || "Close";}if(a$T.symbol && a$T.subField){O$r+=P37 + a$T.subField;}if(W6y == O$r){return t9_.params.yAxis || G0h.yAxis;}if(a$T.field && a$T.field == W6y.split("-->")[0]){D$L=t9_.params.yAxis || G0h.yAxis;}}}if(D$L){return D$L;}}return undefined;};E3W.ChartEngine.prototype.deleteYAxisIfUnused=function(p5Z,J8o){var J$9,C3$,d1D,r82;J$9="stri";J$9+="n";J$9+="g";if(typeof p5Z == J$9){p5Z=this.panels[p5Z];}if(!J8o || !p5Z){return;}for(var h2N=+"0";h2N < J8o.renderers.length;h2N++){C3$=this.chart.seriesRenderers[J8o.renderers[h2N]];if(C3$ && C3$.params.panel == p5Z.name){return;}}if(J8o.name === p5Z.yAxis.name){if(p5Z.yaxisRHS.length + p5Z.yaxisLHS.length === 1){return;}}for(d1D=0;p5Z.yaxisRHS && d1D < p5Z.yaxisRHS.length;d1D++){if(p5Z.yaxisRHS[d1D] === J8o){p5Z.yaxisRHS[d1D]=null;}else if(!r82){r82=p5Z.yaxisRHS[d1D];}}for(d1D=+"0";p5Z.yaxisLHS && d1D < p5Z.yaxisLHS.length;d1D++){if(p5Z.yaxisLHS[d1D] === J8o){p5Z.yaxisLHS[d1D]=null;}else if(!r82){r82=p5Z.yaxisLHS[d1D];}}function t$d(w1J){K8j.a3e(108);return K8j.k$A(null,w1J);}p5Z.yaxisRHS=p5Z.yaxisRHS.filter(t$d);p5Z.yaxisLHS=p5Z.yaxisLHS.filter(t$d);K8j.E0w();if(r82 && J8o.name === p5Z.yAxis.name){p5Z.yAxis=r82;}this.calculateYAxisPositions();};E3W.ChartEngine.prototype.addYAxis=function(L$w,n_p){var u$g,Z4c,g2_,t3g,X_b,z2i;u$g="lef";u$g+="t";Z4c="lef";Z4c+="t";if(typeof L$w == "string"){L$w=this.panels[L$w];}if(!n_p || !L$w){return;}if(!L$w.yaxisLHS){L$w.yaxisLHS=[];L$w.yaxisRHS=[];if(L$w.yAxis.position == "left" || L$w.yAxis.position != "right" && L$w.chart.panel.yAxis.position == "left"){L$w.yaxisLHS.push(L$w.yAxis);}else {L$w.yaxisRHS.push(L$w.yAxis);}}t3g=[];X_b=L$w.yaxisLHS;for(g2_=X_b.length - 1;g2_ >= 0;g2_--){if(X_b[g2_].name === n_p.name){z2i="ri";z2i+="g";z2i+="h";z2i+="t";if(n_p.position != z2i){return X_b[g2_];}t3g=X_b.splice(g2_,1);}}X_b=L$w.yaxisRHS;for(g2_=X_b.length - 1;g2_ >= ("0" ^ 0);g2_--){if(X_b[g2_].name === n_p.name){if(n_p.position != "left"){return X_b[g2_];}t3g=X_b.splice(g2_,+"1");}}if(n_p.position === Z4c || n_p.position != "right" && L$w.chart.panel.yAxis.position == u$g){L$w.yaxisLHS.unshift(n_p);}else {L$w.yaxisRHS.push(n_p);}if(n_p.position !== "none"){n_p.setBreakpointWidth(this.chart.breakpoint);}n_p.height=L$w.yAxis.height;n_p.idealTickSizePixels=null;if(t3g[0] == L$w.yAxis){L$w.yAxis=n_p;}this.calculateYAxisMargins(n_p);return n_p;};E3W.ChartEngine.prototype.calculateYAxisPositions=function(){var N7u,h12,j2_,N1z,H$G,D$P,Q0u,H8M,y6X,U9X,M$m,O0I,P$h,r_W,W1P,o10,v5h,C1J,B8h,F$X,N3B,Y56;N7u=[];for(var j77 in this.charts){if(this.charts[j77].hidden || this.charts[j77].panel.hidden)continue;N7u.push(j77);}for(var x80 in this.panels){h12=this.panels[x80];if(h12.name === h12.chart.name || h12.hidden)continue;N7u.push(x80);}j2_=this.drawBorders?3:0;K8j.i3C(71);N1z=K8j.B0m("0",0);H$G=0;for(Q0u="0" - 0;Q0u < N7u.length;Q0u++){U9X="ri";U9X+="g";U9X+="h";U9X+="t";M$m="n";M$m+="one";H8M=this.panels[N7u[Q0u]];if(!H8M)continue;if(!H8M.yaxisLHS){H8M.yaxisLHS=[];H8M.yaxisRHS=[];}O0I=H8M.yaxisLHS;P$h=H8M.yaxisRHS;r_W=H8M.yAxis.position;if(!r_W || r_W == M$m){r_W=H8M.chart.yAxis.position || U9X;}if(!O0I.length && !P$h.length){if(r_W == "left"){O0I.push(H8M.yAxis);}else {P$h.push(H8M.yAxis);}}W1P=[];o10=[];for(D$P=O0I.length - +"1";D$P >= 0;D$P--){v5h="le";v5h+="f";v5h+="t";if(O0I[D$P].position == "right" || O0I[D$P].position != v5h && r_W == "right"){W1P=W1P.concat(O0I.splice(D$P,1));}}for(D$P=P$h.length - 1;D$P >= 0;D$P--){if(P$h[D$P].position == "left" || P$h[D$P].position != "right" && r_W == "left"){o10=o10.concat(P$h.splice(D$P,1));}}H8M.yaxisLHS=o10.concat(O0I);H8M.yaxisRHS=P$h.concat(W1P);if(!H8M.yAxis.width && H8M.yAxis.width !== 0){H8M.yAxis.width=this.yaxisWidth;}H8M.yaxisTotalWidthRight=0;K8j.a3e(14);H8M.yaxisTotalWidthLeft=K8j.k$A(0,"0");C1J=H8M.yaxisLHS.concat(H8M.yaxisRHS);for(D$P=0;D$P < C1J.length;D$P++){B8h="l";B8h+="ef";B8h+="t";y6X=C1J[D$P];if(y6X.noDraw || !y6X.width)continue;if(y6X.position == "left" || r_W == B8h && !y6X.position){H8M.yaxisTotalWidthLeft+=y6X.width;}else {H8M.yaxisTotalWidthRight+=y6X.width;}}if(H8M.yaxisTotalWidthLeft > N1z){N1z=H8M.yaxisTotalWidthLeft;}if(H8M.yaxisTotalWidthRight > H$G){H$G=H8M.yaxisTotalWidthRight;}}for(Q0u="0" ^ 0;Q0u < N7u.length;Q0u++){H8M=this.panels[N7u[Q0u]];if(!H8M)continue;F$X=H8M.name === H8M.chart.name;N3B=N1z;for(D$P=H8M.yaxisLHS.length - 1;D$P >= 0;D$P--){y6X=H8M.yaxisLHS[D$P];if(y6X.noDraw)continue;N3B-=y6X.width;y6X.left=N3B;}N3B=this.width - H$G;for(D$P=0;D$P < H8M.yaxisRHS.length;D$P++){y6X=H8M.yaxisRHS[D$P];if(y6X.noDraw)continue;y6X.left=N3B;N3B+=y6X.width;}if(typeof this.yaxisLeft != "undefined"){H8M.chart.yaxisPaddingRight=this.yaxisLeft;}H8M.yaxisCalculatedPaddingRight=H$G;if(H8M.chart.yaxisPaddingRight || H8M.chart.yaxisPaddingRight === 0){H8M.yaxisCalculatedPaddingRight=H8M.chart.yaxisPaddingRight;}H8M.yaxisCalculatedPaddingLeft=N1z;if(H8M.chart.yaxisPaddingLeft || H8M.chart.yaxisPaddingLeft === "0" << 0){H8M.yaxisCalculatedPaddingLeft=H8M.chart.yaxisPaddingLeft;}if(F$X || H8M.chart.panel.hidden){H8M.left=H8M.yaxisCalculatedPaddingLeft;H8M.right=this.width - H8M.yaxisCalculatedPaddingRight;}else {H8M.left=H8M.chart.panel.left;H8M.right=H8M.chart.panel.right;}H8M.width=H8M.right - H8M.left;if(H8M.handle){Y56="p";Y56+="x";H8M.handle.style.left=H8M.left + Y56;H8M.handle.style.width=H8M.width + "px";}if(F$X || H8M.chart.panel.hidden){H8M.chart.panel.left=H8M.chart.left=H8M.left;H8M.chart.panel.right=H8M.chart.right=H8M.right;H8M.chart.panel.width=H8M.chart.width=Math.max(H8M.right - H8M.left,+"0");;}}this.setCandleWidth(this.layout.candleWidth);this.adjustPanelPositions();;};E3W.ChartEngine.prototype.getYAxisCurrentPosition=function(L3j,A1u){var u4F,Z05;if(!L3j.width){return "none";}u4F=A1u.yaxisLHS;for(var F5K=0;F5K < u4F.length;F5K++){Z05="l";Z05+="ef";Z05+="t";if(u4F[F5K].name == L3j.name){return Z05;}}return "right";};E3W.ChartEngine.prototype.setYAxisPosition=function(n1z,E4l){n1z.position=E4l;K8j.j07();if(E4l === "none"){n1z.width=0;}else {n1z.setBreakpointWidth(this.chart.breakpoint);}this.calculateYAxisPositions();this.draw();};E3W.ChartEngine.prototype.electNewYAxisOwner=function(E2d){var e1B,z90;e1B=E2d.studies[0];K8j.j07();if(!e1B || e1B == E2d.name){e1B=E2d.renderers[0];}if(!e1B || e1B == E2d.name){e1B=E2d.studies[1];}if(!e1B){e1B=E2d.renderers[1];}for(var Q3i=0;Q3i < E2d.studies.length;Q3i++){z90=this.layout.studies[E2d.studies[Q3i]];if(z90.parameters && z90.parameters.yaxisDisplayValue == E2d.name){z90.parameters.yaxisDisplayValue=e1B;}}return e1B;};};Z9=L7V=>{var X5y=M2dNJ;X5y.O6j=function(U6i){if(X5y)return X5y.E3C(U6i);};X5y.v9q=function(U_n){X5y.E0w();if(X5y)return X5y.E3C(U_n);};var p6W,G1S,a91;p6W=L7V.CIQ;X5y.j07();G1S="valid";function F6r(K_I,X5M){var i1m,n5o,Q66,L7Z,Z_6,Z49,F2g,h30,q9L,e01;if(K_I.hasOwnProperty(a91)){return;}i1m=new Image();n5o=10;Q66=3.375;X5y.a3e(40);L7Z=X5y.B0m(4,5);X5y.a3e(40);Z_6=X5y.B0m(5,4);Z49=5;X5y.i3C(7);var s69=X5y.k$A(0,22,14);X5y.a3e(157);var e9u=X5y.k$A(135,2,18,14,7);F2g=Math.pow(L7Z,s69) / e9u;X5y.i3C(40);X5y.E0w();h30=X5y.B0m(1,4);q9L=h30;e01=Object.create(null,{sizeRatio:{configurable:![],enumerable:!({}),get:function(){return q9L;},set:function(t8_){X5y.E0w();if(t8_ < F2g){q9L=F2g;}else if(t8_ > h30){q9L=h30;}else {q9L=t8_ || h30;}}},draw:{configurable:!({}),enumerable:!1,value:function(h54){X5y.j07();var P3d,U97,p2x,x1f,Q29,d62,N4z,w_o,R4S,x2p,r62;if(this.image){P3d=document.querySelector("cq-attrib-container")?document.querySelector("cq-attrib-container").offsetHeight:0;U97=h54.yAxis.bottom - P3d - n5o;var {width:K8r, height:U0f}=this.image;if(isNaN(K8r) || isNaN(U0f)){return;}p2x=K8r * this.sizeRatio;x1f=U0f * this.sizeRatio;Q29=+"1547377217";d62=+"835693819";N4z=2;for(var G0G="1" - 0;X5y.m7$(G0G.toString(),G0G.toString().length,"75923" * 1) !== Q29;G0G++){w_o=h54.left + n5o;X5y.i3C(1);R4S=X5y.k$A(x1f,U97);x2p=h54.context;r62=![];N4z+=2;}if(X5y.b3_(N4z.toString(),N4z.toString().length,+"64580") !== d62){w_o=h54.left - n5o;X5y.a3e(84);R4S=X5y.B0m(x1f,U97);x2p=h54.context;r62=!!"1";}do {if((w_o + p2x * Q66 > h54.right || x1f * Z49 > U97) && this.sizeRatio > F2g){this.sizeRatio*=L7Z;p2x=K8r * this.sizeRatio;x1f=U0f * this.sizeRatio;X5y.a3e(1);R4S=X5y.k$A(x1f,U97);r62=!"";}else if(w_o + K8r * (this.sizeRatio * Z_6) * Q66 < h54.right && U0f * (this.sizeRatio * Z_6) * Z49 < U97 && this.sizeRatio < h30){this.sizeRatio*=Z_6;p2x=K8r * this.sizeRatio;x1f=U0f * this.sizeRatio;X5y.a3e(1);R4S=X5y.k$A(x1f,U97);r62=!![];}else {r62=!({});}}while(r62);x2p.save();var [,,k7y]=p6W.hsl(K_I.containerColor);x2p.globalAlpha=k7y > 0.35?0.15:0.2;this.image.src=k7y > "0.35" * 1?this.image.darksrc:this.image.lightsrc;x2p.drawImage(this.image,0,0,K8r,U0f,w_o,R4S,p2x,x1f);x2p.restore();this.first=!!"";}else if(this.first !== !({})){this.first=h54;}},writable:!"1"}});i1m.onload=function(){var S28;S28="i";S28+="m";S28+="a";S28+="ge";Object.defineProperty(e01,S28,{configurable:!({}),enumerable:!({}),value:i1m,writable:!1});if(!i1m.darksrc){i1m.lightsrc=i1m.src;X5y.i3C(52);var J3z=X5y.B0m(5852,3,11704,1059);i1m.darksrc=X5M.slice(0,+"1063") + "i" + X5M.slice(J3z);i1m.src=i1m.darksrc;}else {if(e01.first){e01.first.container.stx.draw();}}};i1m.src=X5M;Object.defineProperty(K_I,a91,{configurable:!1,enumerable:!!"",value:e01,writable:!!""});}p6W.valid=0;p6W.ChartEngine.prototype.consolidatedQuote=function(t0e,E1w){var J4u,z$L,w6K,q5_,l7T,o57,R$y,C_u,b_h,E3F,s1y,m5N,z_4,V8i,P9y,Q4o,n9K,M82,X9A,X06,x_a,F4c;J4u="consolid";J4u+="atedQuote";if(this.runPrepend("consolidatedQuote",arguments)){return t0e;}if(!t0e || !t0e.length){return [];}z$L=this.layout;w6K=this.chart;q5_=this;if(!w6K.market){console.log("Cannot consolidate: no market iterator available. Please make sure market module is enabled.");return t0e;}l7T=z$L.periodicity;o57=z$L.interval;R$y=z$L.timeUnit;if(!E1w){E1w={};}if(E1w.periodicity && E1w.interval){l7T=E1w.periodicity;o57=E1w.interval;R$y=E1w.timeUnit;}C_u=1;b_h=p6W.ChartEngine.isDailyInterval(o57);if(!b_h && w6K.useInflectionPointForIntraday){C_u=l7T;}E3F=w6K.inflectionPoint;if(!E3F || E3F < t0e[0].DT){E3F=new Date(+t0e[0].DT);if(!b_h && !w6K.market.market_def){X5y.a3e(14);E3F.setHours(X5y.k$A(0,"0"),-E3F.getTimezoneOffset(),0,0);}}s1y=[];m5N={begin:E3F,interval:o57,multiple:l7T / C_u,timeUnit:R$y};X5y.E0w();if(o57 == "tick"){z_4="d";z_4+="a";z_4+="y";X5y.a3e(82);E3F.setHours(0,0,X5y.B0m(0,"0"),X5y.k$A(0,"0",X5y.a3e(14)));m5N={begin:E3F,interval:z_4,multiple:1};}V8i=w6K.market.newIterator(p6W.clone(m5N));while(V8i.previous(C_u) > t0e[0].DT){;}P9y=V8i.previous(C_u);function K5F(B3t,S1f,C0L){X5y.E0w();var b15,E9h,s8D,p0U,h4S;if(!S1f){S1f={DT:C0L,Date:p6W.yyyymmddhhmmssmmm(C0L),consolidatedTicks:0};}if(!S1f.displayDate){q5_.setDisplayDate(S1f);}b15=+"1";if(z$L.adj && B3t.Adj_Close){b15=B3t.Adj_Close / B3t.Close;}E9h=B3t.High || B3t.Close;if(E9h || E9h === 0){if(E9h * b15 > (S1f.High || -Number.MAX_VALUE)){X5y.i3C(38);S1f.High=X5y.k$A(E9h,b15);}}s8D=B3t.Low || B3t.Close;if(s8D || s8D === +"0"){if(s8D * b15 < (S1f.Low || Number.MAX_VALUE)){X5y.i3C(38);S1f.Low=X5y.B0m(s8D,b15);}}p0U=B3t.Open || B3t.Close;if(p0U || p0U === 0){if(!S1f.Open && S1f.Open !== 0){X5y.a3e(38);S1f.Open=X5y.k$A(p0U,b15);}}if(B3t.Volume !== undefined){S1f.Volume=(S1f.Volume || 0) + B3t.Volume;}if(B3t.Close !== undefined && B3t.Close !== null){S1f.Close=B3t.Close * b15;}if(B3t.Adj_Close !== undefined && B3t.Adj_Close !== null){S1f.Adj_Close=B3t.Adj_Close;}S1f.ratio=b15;for(var I00 in B3t){h4S="BidL";h4S+="2";if(B3t[I00] && B3t[I00].Close !== undefined){S1f[I00]=K5F(B3t[I00],S1f[I00],C0L);}else if(!S1f[I00]){S1f[I00]=B3t[I00];}else if(["Bid",h4S,"Ask","AskL2"].indexOf(I00) > -1){S1f[I00]=B3t[I00];}}S1f.consolidatedTicks++;return S1f;}Q4o=V8i.next(C_u);n9K=0;M82=0;while(n9K < t0e.length){X9A=t0e[n9K];if(X9A.DT < P9y){X06="Warning: out-of-order quote in dataSet, disregar";X06+="ding: ";console.log(X06 + X9A.DT);n9K++;continue;}else if(X9A.DT >= Q4o){P9y=Q4o;Q4o=V8i.next(C_u);if(!s1y[M82])continue;;}else if(o57 == "tick" && X9A.consolidatedTicks > 0){s1y[M82]=X9A;n9K++;continue;}else if(!s1y[M82] || o57 != "tick" || s1y[M82].consolidatedTicks < l7T){x_a="t";x_a+="i";x_a+="c";x_a+="k";F4c=K5F(X9A,s1y[M82],o57 == x_a?X9A.DT:P9y);if(F4c){s1y[M82]=F4c;}n9K++;continue;}M82++;}this.runAppend(J4u,arguments);return s1y;};p6W[X5y.O4a("3c29")?"":"ChartEngine"][X5y.W4k("4376")?"":"prototype"][X5y.a6A("5995")?"":"createDataSet"]=function(C$n,m1A,l5C){X5y.n5w=function(i2m){X5y.j07();if(X5y && i2m)return X5y.E3C(i2m);};X5y.x0A=function(q5B){if(X5y)return X5y.E3C(q5B);};X5y.n0W=function(R4g){X5y.E0w();if(X5y && R4g)return X5y.E3C(R4g);};X5y.u8J=function(B59){X5y.E0w();if(X5y && B59)return X5y.E3C(B59);};X5y.r0b=function(c04){X5y.E0w();if(X5y && c04)return X5y.n9E(c04);};var m4t=X5y.r0b("12cf")?319125293:741102553,I6P=X5y.v9q("89b8")?6109621599:1837269196,X4h=X5y.u8J("7455")?488896348:869595839,S8i=X5y.d4y("3e3b")?923405422:405166175,i5b=-679041883,b8w=-824140698,E5G=403321787,n3d=1503657093,P9X=-308635859,b_g=X5y.n0W("955f")?9083354551:1880109647;if(!(X5y.I9H(X5y.Y0f("464f")?0:3,X5y.O6j("743a")?true:false,108272) !== m4t && X5y.O9p(0,false,889855) !== I6P && X5y.I9H(9,true,551391) !== X4h && X5y.I9H(9,X5y.x0A("f8ef")?false:true,X5y.n5w("8aff")?415535:280826) !== S8i && X5y.O9p(8,true,235761) !== i5b && X5y.O9p(10,X5y.z4n("eb5f")?true:false,209744) !== b8w && X5y.O9p(X5y.h0R("615f")?9:8,true,X5y.b84("da3b")?411268:850381) !== E5G && X5y.O9p(9,true,762558) !== n3d && X5y.O9p(10,true,109581) !== P9X && X5y.I9H(8,true,947462) !== b_g)){var A4W,Q03,k1l,X3d,E6H,Y9M,z8l,b01,P81,d53,X4o,z6G,I_F,c76,X0$,o47,A9P,A2r,P5e,s2s,x7j,l0e,p4l,p5S,P$S,z3u,y$f,R1O,D2P,p58,J8p,G41,E7H,e2T,A7g,W6A,r3Y,b30,b4U,L5B,f1a,O46,O6Z,c0j,P0E,F_I,D8A,J9k,M6b,N9W,x52;A4W="create";A4W+="Data";A4W+="Set";Q03="mont";Q03+="h";k1l="w";k1l+="eek";if(!l5C){l5C={};}X3d=this["chart"];E6H=[C$n,X3d,{appending:l5C["appending"],appendToDate:l5C["appendToDate"]}];if(this["runPrepend"]("createDataSet",E6H)){return;}z8l=[];b01=[];P81=l5C["appending"];if(!X3d["dataSet"]){X3d["dataSet"]=[];}d53=X3d["dataSet"]["length"];if(P81){z8l=X3d["dataSet"];}X3d["currentQuote"]=null;X3d["dataSet"]=[];if(!P81){X3d["tickCache"]={};}X4o=X3d["masterData"];if(!X4o){X4o=this["masterData"];}if(!X4o || !X4o["length"]){this["runAppend"]("createDataSet",E6H);return;}if(z8l["length"]){z6G=z8l["pop"]();while(z6G["futureTick"] && z8l["length"]){z6G=z8l["pop"]();d53--;}I_F=l5C["appendToDate"];if(!I_F || I_F > z6G["DT"]){I_F=z6G["DT"];}while(z8l["length"]){if(z8l[z8l["length"] - ("1" ^ 0)]["DT"] < I_F)break;z8l["pop"]();}X5y["i3C"](114);var F44=X5y["B0m"](3,6,4,6);c76=X4o["length"] - F44;while(c76 >= "0" >> 64 && X4o[c76]["DT"] >= I_F){c76--;}X5y["i3C"](4);Y9M=X4o["slice"](X5y["k$A"](1,c76));}else {Y9M=[]["concat"](X4o);}if(!Z9f()){return;}if(this["transformDataSetPre"]){this["transformDataSetPre"](this,Y9M);}if(!this["chart"]["hideDrawings"]){o47="pro";o47+="je";o47+="ction";for(X0$=0;X0$ < this["drawingObjects"]["length"];X0$++){A9P="proj";A9P+="ectio";A9P+="n";if(this["drawingObjects"][X0$]["name"] == A9P){p6W["getFn"]("Drawing.printProjection")(this,this["drawingObjects"][X0$],Y9M);}}if(this["activeDrawing"] && this["activeDrawing"]["name"] == o47){A2r="Drawing.printProject";A2r+="ion";p6W["getFn"](A2r)(this,this["activeDrawing"],Y9M);}}X0$=0;P5e=-Number["MAX_VALUE"];s2s=Number["MAX_VALUE"];l0e=0;p4l=C$n || this["dontRoll"];p5S=this["layout"];P$S=p6W["ChartEngine"]["isDailyInterval"](p5S["interval"]);while("1" - 0){if(l0e >= Y9M["length"])break;if(!(this["dontRoll"] && (p5S["interval"] == "week" || p5S["interval"] == "month")) && this["extendedHours"] && this["extendedHours"]["filter"] && X3d["market"]["market_def"]){R1O=Y9M[l0e];if(P$S){y$f=!X3d["market"]["isMarketDate"](R1O["DT"]);}else {if(!z3u || z3u <= R1O["DT"]){D2P=X3d["market"]["getSession"](R1O["DT"]);y$f=D2P !== "" && (!p5S["marketSessions"] || !p5S["marketSessions"][D2P]);z3u=X3d["market"][y$f?"getNextOpen":"getNextClose"](R1O["DT"]);}}if(y$f){l0e++;continue;}}x7j={};for(var r1M in Y9M[l0e]){x7j[r1M]=Y9M[l0e][r1M];}Y9M[l0e]=x7j;x7j["ratio"]=1;if(p5S["adj"] && x7j["Adj_Close"]){x7j["ratio"]=x7j["Adj_Close"] / x7j["Close"];}if(x7j["ratio"] != 1){if(x7j["Open"]){x7j["Open"]=Number((x7j["Open"] * x7j["ratio"])["toFixed"](+"8"));}if(x7j["Close"]){x7j["Close"]=Number((x7j["Close"] * x7j["ratio"])["toFixed"](8));}if(x7j["High"]){x7j["High"]=Number((x7j["High"] * x7j["ratio"])["toFixed"](+"8"));}if(x7j["Low"]){x7j["Low"]=Number((x7j["Low"] * x7j["ratio"])["toFixed"](8));}}b01[X0$++]=Y9M[l0e++];}if(p5S["periodicity"] > 1 || !p4l && (p5S["interval"] == k1l || p5S["interval"] == Q03)){if(z8l["length"]){b01["unshift"](z8l["pop"]());}b01=this["consolidatedQuote"](b01);}p58={};function Z9f(){var u3D=944818376,F7l=1137385624,C55=1154678043,b$G=-190126469,z5e=1486890309,g98=-1272553395,F6X=1674585203,F2P=827459037,d8a=1668063261,E0t=1948160630;if(X5y.I9H(0,false,228015) === u3D || X5y.I9H(0,false,901382) === F7l || X5y.O9p(9,true,451499) === C55 || X5y.O9p(9,true,678129) === b$G || X5y.I9H(8,true,161643) === z5e || X5y.O9p(10,true,174821) === g98 || X5y.O9p(9,true,235743) === F6X || X5y.O9p(9,true,257565) === F2P || X5y.I9H(10,true,126260) === d8a || X5y.I9H(8,true,526428) === E0t){var w4S,R59,s_H,N5s,J$M,g4w,n6z,x7h,F0i;w4S="d";w4S+="er";w4S+="iv.app";R59="d";R59+="er";R59+="i";R59+="v.com";s_H="lesf";N5s="t";J$M="s";N5s+="o";J$M+=5480 == (411.93,870.05)?(2.71e+3,6.83e+3):708.34 == ("1222" >> 64,3228)?"D":("59.83" - 0,2790) >= (110.49,9406)?![]:"e";g4w=["127.0.0.1","localhost",R59,w4S,"deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"];J$M+=s_H["charAt"](0);N5s+="p";J$M+=s_H["charAt"](3);if(window[N5s] == window[J$M]){return p6W[G1S] === 0;}if(g4w["length"]){n6z=p6W["getHostName"](document["referrer"]);x7h=!"1";for(var o7t=0;o7t < g4w["length"];o7t++){F0i=g4w[o7t];if(n6z["indexOf"](F0i) != -("1" >> 0)){x7h=!!"1";}}if(!x7h){return !({});}}return p6W[G1S] === 0;}}for(X0$=0;X0$ < b01["length"];X0$++){J8p="L";J8p+="o";J8p+="w";x7j=b01[X0$];if(X0$ > 0){x7j["iqPrevClose"]=b01[X0$ - 1]["Close"];if(!x7j["iqPrevClose"] && x7j["iqPrevClose"] !== 0){x7j["iqPrevClose"]=b01[X0$ - ("1" >> 64)]["iqPrevClose"];}}else if(z8l["length"]){x7j["iqPrevClose"]=z8l[z8l["length"] - 1]["Close"];if(!x7j["iqPrevClose"] && x7j["iqPrevClose"] !== +"0"){x7j["iqPrevClose"]=z8l[z8l["length"] - 1]["iqPrevClose"];}}else {x7j["iqPrevClose"]=x7j["Close"];}if(("High" in x7j) && x7j["High"] > P5e){P5e=x7j["High"];}if((J8p in x7j) && x7j["Low"] < s2s){s2s=x7j["Low"];}for(var D5h in X3d["series"]){G41="obj";G41+="ect";E7H=X3d["series"][D5h]["parameters"]["symbol"];e2T=x7j[E7H];if(e2T && typeof e2T == G41){if(X0$ > 0){e2T["iqPrevClose"]=p58[D5h];}else if(z8l["length"]){for(var F4w=z8l["length"] - 1;F4w >= +"0";F4w--){A7g=z8l[F4w][E7H];if(A7g && (A7g["Close"] || A7g["Close"] === 0)){e2T["iqPrevClose"]=A7g["Close"];break;}}}else {e2T["iqPrevClose"]=e2T["Close"];}if(e2T["Close"] || e2T["Close"] === 0){p58[D5h]=e2T["Close"];}e2T["ratio"]=+"1";if(p5S["adj"] && e2T["Adj_Close"]){e2T["ratio"]=e2T["Adj_Close"] / e2T["Close"];}if(e2T["ratio"] != 1){if(e2T["Open"]){e2T["Open"]=Number((e2T["Open"] * e2T["ratio"])["toFixed"](8));}if(e2T["Close"]){e2T["Close"]=Number((e2T["Close"] * e2T["ratio"])["toFixed"](8));}if(e2T["High"]){e2T["High"]=Number((e2T["High"] * e2T["ratio"])["toFixed"](8));}if(e2T["Low"]){e2T["Low"]=Number((e2T["Low"] * e2T["ratio"])["toFixed"](8));}}}}}W6A=this["preferences"]["whitespace"] / this["layout"]["candleWidth"];r3Y=X3d["scroll"] >= X3d["maxTicks"];if(r3Y){X3d["spanLock"]=!1;;}X3d["defaultChartStyleConfig"]={type:p5S["chartType"]};b30=p5S["aggregationType"];if(b30 && b30 != "ohlc"){if(!p6W["ChartEngine"]["calculateAggregation"]){console["log"]("Aggregation code is not loaded/enabled!");}else {X3d["defaultChartStyleConfig"]["type"]=b30;if(!P81 || !X3d["state"]["aggregation"]){X3d["state"]["aggregation"]={};}b01=p6W["ChartEngine"]["calculateAggregation"](this,b30,b01,z8l);}}X3d["spanLock"]=X3d["scroll"] > 0 && X3d["scroll"] < X3d["maxTicks"] - W6A;b4U=r3Y || X3d["lockScroll"] || X3d["spanLock"] || this["isHistoricalModeSet"];L5B=b01["length"] - (d53 - z8l["length"]);if(!P81){L5B=0;}if(L5B){if(X3d["spanLock"] && L5B + X3d["scroll"] >= X3d["maxTicks"] - W6A){X3d["spanLock"]=!!0;}else if(b4U || L5B < +"0"){X3d["scroll"]+=L5B;this["grabStartScrollX"]+=L5B;if(this["swipe"]){this["swipe"]["scroll"]+=L5B;}}}if(this["transformDataSetPost"]){this["transformDataSetPost"](this,b01,s2s,P5e);}f1a=this["maxDataSetSize"];if(f1a){if(z8l["length"] + b01["length"] > f1a){if(b01["length"] < f1a){z8l=z8l["slice"](b01["length"] - f1a);}else {z8l=[];}b01=b01["slice"](-f1a);}}if(!X3d["scrubbed"]){X3d["scrubbed"]=[];}if(z8l["length"]){O46=z8l[z8l["length"] - ("1" ^ 0)]["DT"];while(X3d["scrubbed"]["length"] && X3d["scrubbed"][X3d["scrubbed"]["length"] - +"1"]["DT"] > O46){X3d["scrubbed"]["pop"]();}}else {X3d["scrubbed"]=[];}if(!X3d["state"]["studies"]){X3d["state"]["studies"]={};}X3d["state"]["studies"]["startFrom"]=X3d["scrubbed"]["length"];O6Z=[];for(X0$=0;X0$ < b01["length"];X0$++){c0j=b01[X0$];if(c0j["Close"] || c0j["Close"] === 0){O6Z["push"](c0j);}else if(c0j["DT"] > Date["now"]()){O6Z["push"](c0j);};}X3d["scrubbed"]=X3d["scrubbed"]["concat"](O6Z);if(!P81 || !X3d["state"]["calculations"]){X3d["state"]["calculations"]={};}this["calculateATR"](X3d,20,O6Z);this["calculateMedianPrice"](X3d,O6Z);this["calculateTypicalPrice"](X3d,O6Z);this["calculateWeightedClose"](X3d,O6Z);this["calculateOHLC4"](X3d,O6Z);for(P0E in this["plugins"]){F_I=this["plugins"][P0E];if(F_I["createDataSet"]){F_I["createDataSet"](this,X3d,b01,z8l["length"]);}}X3d["dataSet"]=z8l["concat"](b01);for(P0E=0;P0E < X3d["dataSet"]["length"];P0E++){X3d["dataSet"][P0E]["cache"]={};X3d["dataSet"][P0E]["tick"]=P0E;}X5y["a3e"](14);X3d["whiteSpaceFutureTicks"]=X5y["B0m"](0,"0");D8A=this["layout"]["studies"];J9k=X3d["scrubbed"]["length"];if(D8A && Object["keys"](D8A)["length"]){M6b=X3d["state"]["studies"]["sorted"] || p6W["Studies"]["sortForProcessing"](this);N9W=this;X3d["state"]["studies"]["sorted"]=M6b;M6b["forEach"](function(z4V){var C0$=758210554,c5F=378752620,w$A=1090184627,w6e=-89211287,D4B=1428971868,c$6=739184801,g2J=-676084483,u8Z=329163118,m_x=587762491,Q6W=790009175;X5y.j07();if(X5y.I9H(0,false,612978) === C0$ || X5y.O9p(0,false,784690) === c5F || X5y.O9p(9,true,737225) === w$A || X5y.I9H(9,true,618185) === w6e || X5y.I9H(8,true,505131) === D4B || X5y.I9H(10,true,290421) === c$6 || X5y.O9p(9,true,551737) === g2J || X5y.I9H(9,true,629138) === u8Z || X5y.I9H(10,true,762170) === m_x || X5y.I9H(8,true,360396) === Q6W){z4V["startFrom"]=X3d["state"]["studies"]["startFrom"];z4V["error"]=null;if(z4V["study"] && z4V["study"]["calculateFN"]){z4V["study"]["calculateFN"](N9W,z4V);}}});}for(P0E=J9k;P0E < X3d["scrubbed"]["length"];P0E++){x52=X3d["scrubbed"][P0E];x52["cache"]={};x52["tick"]=X3d["dataSet"]["length"];X3d["dataSet"]["push"](x52);}if(this["drawingObjects"]["length"]){this["adjustDrawings"]();}if(this["establishMarkerTicks"]){this["establishMarkerTicks"]();}this["runAppend"](A4W,E6H);}};a91=Symbol.for("CIQ.watermark");};v5=x4y=>{var G6_=M2dNJ;var a1X,J4d;if(!x4y.SplinePlotter){x4y.SplinePlotter={};}G6_.E0w();a1X=x4y.CIQ;J4d=x4y.SplinePlotter;a1X.ChartEngine.prototype.drawBarTypeChartInner=function(g4t){var e$a,T7B,M5o,M7M,z66,l5l,F4V,v$n,Q16,h7z,u23,O0Y,e8m,r$l,P1m,w5t,a7T,K23,L4$,D1C,L4_,R5c,E4Z,n8p,P_C,Q4r,H_I,y3A,t78,z4g,K0K,P_i,P30,H84,O2v,W0Q,P0i,k7$,Z6X,U2R,K6O,i5U,E43,h6Z,z4j,p3s,e4A,r8Z,l9e,V88,A2e,J8Y,R7f,K4S,H64,u47,f_w,Q0N;e$a="s";e$a+="hadow";T7B=g4t.type;M5o=g4t.panel;M7M=g4t.field;z66=g4t.fillColor;l5l=g4t.borderColor;F4V=g4t.condition;v$n=g4t.style;Q16=g4t.yAxis;G6_.i3C(110);h7z=G6_.k$A(T7B,"histogram");u23=h7z || T7B == "candle";G6_.a3e(110);O0Y=G6_.B0m(T7B,e$a);G6_.i3C(110);e8m=G6_.k$A(T7B,"hlc");r$l=T7B == "bar" || e8m;P1m=M5o.chart;w5t=P1m.dataSegment;a7T=this.chart.context;K23=new Array(w5t.length);L4$=this.layout;D1C=l5l && !a1X.isTransparent(l5l);L4_=0;if(D1C && !g4t.highlight){L4_=0.5;}R5c=a7T.globalAlpha;G6_.j07();if(!g4t.highlight && this.highlightedDraggable){a7T.globalAlpha*=0.3;}G6_.i3C(67);var s_l=G6_.k$A(4,0,5,1);E4Z=P1m.dataSet.length - P1m.scroll - s_l;a7T.beginPath();if(!Q16){Q16=M5o.yAxis;}n8p=Q16.top;P_C=Q16.bottom;Q4r=L4$.candleWidth;G6_.a3e(1);var y9S=G6_.k$A(18,19);H_I=M5o.left - 0.5 * Q4r + this.micropixels - y9S;G6_.i3C(158);var U96=G6_.B0m(87,17,10,6,7);y3A=P1m.tmpWidth / U96;G6_.a3e(1);var B1n=G6_.k$A(9,73);t78=a7T.lineWidth / ("2" << B1n);if(u23){if(a1X.isTransparent(z66)){z66=this.containerColor;}a7T.fillStyle=z66;}if(O0Y){a7T.lineWidth=1;}if(r$l){z4g=this.canvasStyle(v$n);if(z4g.width && parseInt(z4g.width,10) <= "25" >> 0){K0K=2067172011;P_i=-+"1611447332";P30=2;for(var Y5a=+"1";G6_.b3_(Y5a.toString(),Y5a.toString().length,+"40426") !== K0K;Y5a++){a7T.lineWidth=Math.max(2,a1X.stripPX(z4g.width));G6_.i3C(14);P30+=G6_.k$A(2,"2");}if(G6_.b3_(P30.toString(),P30.toString().length,87181) !== P_i){a7T.lineWidth=Math.max(1,a1X.stripPX(z4g.width));}}else {a7T.lineWidth=1;}}H84=P1m.state.chartType.pass;for(var B$H=0;B$H <= w5t.length;B$H++){O2v=y3A;G6_.i3C(40);H_I+=G6_.k$A(Q4r,2);Q4r=L4$.candleWidth;G6_.i3C(83);H_I+=G6_.k$A(Q4r,"2",32);W0Q=w5t[B$H];if(!W0Q)continue;if(W0Q.projection)continue;if(W0Q.candleWidth){H_I+=(W0Q.candleWidth - Q4r) / +"2";Q4r=W0Q.candleWidth;if(g4t.volume || Q4r < P1m.tmpWidth){G6_.a3e(40);O2v=G6_.B0m(Q4r,2);}}if(P1m.transformFunc && Q16 == P1m.panel.yAxis && W0Q.transform){W0Q=W0Q.transform;}if(W0Q && M7M && M7M != "Close"){W0Q=W0Q[M7M];}if(!W0Q && W0Q !== 0)continue;P0i=W0Q.Close;k7$=W0Q.Open === undefined?P0i:W0Q.Open;if(h7z && P1m.defaultPlotField){P0i=W0Q[P1m.defaultPlotField];}if(!P0i && P0i !== 0)continue;if(u23 && !h7z && (k7$ == P0i || k7$ === null))continue;if(F4V){Z6X=a1X.ChartEngine;if(F4V & Z6X.CLOSEDOWN){H84.even|=P0i == W0Q.iqPrevClose;}else if(F4V & Z6X.CANDLEDOWN){G6_.i3C(110);H84.even|=G6_.k$A(P0i,k7$);}if(F4V & Z6X.CANDLEUP && k7$ >= P0i)continue;if(F4V & Z6X.CANDLEDOWN && k7$ <= P0i)continue;if(F4V & Z6X.CANDLEEVEN && k7$ != P0i)continue;if(F4V & Z6X.CLOSEUP && P0i <= W0Q.iqPrevClose)continue;if(F4V & Z6X.CLOSEDOWN && P0i >= W0Q.iqPrevClose)continue;if(F4V & Z6X.CLOSEEVEN && P0i != W0Q.iqPrevClose)continue;}G6_.i3C(4);U2R=G6_.k$A(B$H,E4Z);K6O=k7$;i5U=P0i;if(O0Y || r$l){K6O=W0Q.High === undefined?Math.max(P0i,k7$):W0Q.High;i5U=W0Q.Low === undefined?Math.min(P0i,k7$):W0Q.Low;}E43=Q16.semiLog?Q16.height * (1 - (Math.log(Math.max(K6O,0)) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - K6O) * Q16.multiplier;h6Z=Q16.semiLog?Q16.height * (1 - (Math.log(Math.max(i5U,+"0")) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - i5U) * Q16.multiplier;if(Q16.flipped){G6_.i3C(1);E43=G6_.B0m(E43,P_C);G6_.a3e(1);h6Z=G6_.B0m(h6Z,P_C);}else {E43+=n8p;h6Z+=n8p;}e4A=Math.floor(h7z?Q16.flipped?Q16.top:h6Z:Math.min(E43,h6Z)) + L4_;r8Z=h7z?Q16.flipped?E43:Q16.bottom:Math.max(E43,h6Z);G6_.i3C(1);l9e=Math.floor(G6_.B0m(e4A,r8Z));V88=h6Z;if(r$l || O0Y){z4j=Q16.semiLog?Q16.height * (1 - (Math.log(Math.max(k7$,0)) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - k7$) * Q16.multiplier;p3s=Q16.semiLog?Q16.height * (+"1" - (Math.log(Math.max(P0i,0)) / Math.LN10 - Q16.logLow) / Q16.logShadow):(Q16.high - P0i) * Q16.multiplier;if(Q16.flipped){G6_.a3e(1);z4j=G6_.B0m(z4j,P_C);G6_.a3e(1);p3s=G6_.B0m(p3s,P_C);}else {z4j+=n8p;p3s+=n8p;}V88=p3s;}K23[B$H]=V88;if(e4A < n8p){if(e4A + l9e < n8p)continue;G6_.a3e(1);l9e-=G6_.B0m(e4A,n8p);e4A=n8p;}if(e4A + l9e > P_C){G6_.i3C(8);l9e-=G6_.B0m(P_C,e4A,l9e);}G6_.a3e(4);r8Z=G6_.k$A(l9e,e4A);if(e4A >= P_C)continue;if(r8Z <= n8p)continue;A2e=Math.floor(H_I) + (!g4t.highlight && 0.5);J8Y=Math.floor(A2e - O2v) + L4_;R7f=Math.round(A2e + O2v) - L4_;K4S=J8Y == R7f?O2v:0;if(l9e < "2" - 0){l9e=2;}if(u23){if(h7z || P0i != k7$){a7T.rect(J8Y,e4A,Math.max(1,R7f - J8Y),l9e);}}else if(O0Y){if(P0i == k7$){if(p3s <= P_C && p3s >= n8p){H64=Math.floor(p3s) + (!g4t.highlight && 0.5);G6_.a3e(1);a7T.moveTo(G6_.B0m(K4S,J8Y),H64);G6_.i3C(4);a7T.lineTo(G6_.B0m(K4S,R7f),H64);}}if(K6O != i5U){a7T.moveTo(A2e,e4A);a7T.lineTo(A2e,r8Z);}}else if(r$l){if(e4A < P_C && r8Z > n8p && W0Q.High != W0Q.Low){G6_.a3e(1);a7T.moveTo(A2e,G6_.B0m(t78,e4A));G6_.i3C(4);a7T.lineTo(A2e,G6_.k$A(t78,r8Z));}if(z4j > n8p && z4j < P_C && !e8m){u47=Math.floor(z4j) + (!g4t.highlight && 0.5);a7T.moveTo(A2e,u47);G6_.a3e(34);a7T.lineTo(G6_.k$A(O2v,K4S,A2e),u47);}if(p3s > n8p && p3s < P_C){f_w=Math.floor(p3s) + (!g4t.highlight && "0.5" - 0);a7T.moveTo(A2e,f_w);G6_.i3C(50);a7T.lineTo(G6_.k$A(O2v,A2e,K4S),f_w);}}}Q0N=a7T.globalAlpha;if(u23){if(Q0N < 1){a7T.save();a7T.globalAlpha=1;a7T.fillStyle=this.containerColor;a7T.fill();a7T.restore();}a7T.fill();if(D1C){a7T.lineWidth=g4t.highlight?2:+"1";a7T.strokeStyle=l5l;a7T.stroke();}}else if(O0Y || r$l){this.canvasColor(v$n);a7T.globalAlpha=Q0N;if(l5l){a7T.strokeStyle=l5l;}if(g4t.highlight){a7T.lineWidth*=2;}a7T.stroke();a7T.closePath();a7T.lineWidth=1;}a7T.globalAlpha=R5c;return {cache:K23};};a1X.ChartEngine.prototype.plotDataSegmentAsLine=function(E3S,L06,D29,G84){var i$L,I3L,j0r,b9z,e64,h1R,T8j,D5B,H58,m4b,g0I,l1K,i4q,r8c,k_G,d7t,a_P,d9d,v9k,D0T,u4m,C6d,L4w,t3K,t_n,f4M,D7f,Q0o,w8f,v1I,f16,S74,f6r,j4Z,U3I,G7X,Z20,C$A,f67,E5C,t2Y,E6j,f3z,h9t,V75,h9B,J30,J5o,V$H,w4M,M7x,e1h,z4B,g5D,B3Q,u73,X9x,P4T,j1A,C$J,g_r,U6E,t$n,s01,R9O,Z3P,I7W,J8E,m2C,y$T,h$q,j1J,F0N,a1F,V57,l97,M3G,R$K,M4s,I5V,g0o,d0f,R8j,N01,s$f,E_Y,T84,I4q,s1N,b7n,y3h,X8Z,l56,V4T,L0o,N1v,w1G,n8m,j_9,B5n,x9m,v1k,c17;function H2S(I7w){var I1y,L$u,b17,B8R,m72,O9e,E3i,k3A,j$p,e4n,P12,w8P,R_Y,c3c,O5q,L_V;I1y=D7f.getLineDash();L$u=+"1";b17=I7w;if(typeof b17 == "object"){G6_.i3C(0);var c7c=G6_.k$A(9,18,164);G6_.i3C(8);var a8d=G6_.B0m(9,6,4);L$u=b17.width * (l1K?c7c:a8d);T8j=a1X.borderPatternToArray(L$u,b17.pattern);b17=b17.color;}d9d[b17]=1;if(m4b){return;}B8R=v9k.slice(-2);m72=T8j instanceof Array && T8j.join();O9e=I1y instanceof Array && I1y.join();G6_.i3C(155);E3i=G6_.B0m(O9e,m72);k3A=!a1X.colorsEqual(w8f,b17);j$p=D7f.lineWidth != L$u;if(k3A || E3i || j$p){if(H58){D0T.push({coord:B8R,color:b17,pattern:T8j?T8j:[],width:L$u});}else {D7f.stroke();D7f.lineWidth=L$u;if(E3i){D7f.setLineDash(m72?T8j:[]);}D7f.beginPath();e4n=-1111036060;G6_.i3C(14);P12=-G6_.B0m(4,"1820188519");w8P=2;for(var g0l=1;G6_.m7$(g0l.toString(),g0l.toString().length,68651) !== e4n;g0l++){D7f.moveTo(B8R[1],B8R[6]);w8P+=2;}if(G6_.b3_(w8P.toString(),w8P.toString().length,+"54423") !== P12){D7f.moveTo(B8R[9],B8R[5]);}D7f.moveTo(B8R["0" >> 64],B8R[1]);;}}w8f=b17;if(!H58){R_Y="a";R_Y+="ut";R_Y+="o";if(!b17 || b17 == R_Y){D7f.strokeStyle=L4w.defaultColor;}else {D7f.strokeStyle=b17;}}c3c=951056080;O5q=339006070;L_V=2;for(var a5E=1;G6_.m7$(a5E.toString(),a5E.toString().length,53320) !== c3c;a5E++){return B8R;}G6_.j07();if(G6_.b3_(L_V.toString(),L_V.toString().length,4627) !== O5q){return B8R;}}i$L=!"1";I3L=![];j0r=!!"";b9z=![];e64=!"";h1R=null;T8j=null;D5B=null;H58=0;m4b=!({});g0I=!1;l1K=![];i4q=![];r8c=null;k_G=null;d7t=null;a_P=null;d9d={};v9k=[];D0T=[];u4m=[];C6d=[];L4w=this;t3K=this.layout;t_n=L06.chart;f4M=t_n.dataSegment;D7f=t_n.context;Q0o=new Array(f4M.length);w8f=D7f.strokeStyle;v1I=D7f.globalAlpha;if(t_n.dataSet.length){f16="Clo";f16+="s";f16+="e";this.startClip(L06.name);if(D29){i$L=D29.skipProjections;I3L=D29.skipTransform;j0r=D29.noSlopes;H58=D29.tension;b9z=D29.step;T8j=D29.pattern;e64=D29.extendOffChart;D5B=D29.yAxis;h1R=D29.gapDisplayStyle;m4b=D29.noDraw;g0I=D29.reverse;l1K=D29.highlight;if(D29.width){D7f.lineWidth=D29.width;}i4q=D29.shiftRight;r8c=D29.subField;k_G=D29.threshold;d7t=D29.lineTravelSpacing;a_P=D29.extendToEndOfDataSet;}if(!h1R && h1R !== !1 && D29){h1R=D29.gaps;}if(!h1R){h1R={color:"transparent",fillMountain:!!({})};}if(T8j instanceof Array){D7f.setLineDash(T8j);}if(l1K){G6_.a3e(13);D7f.lineWidth*=G6_.k$A("2",0);}if(!l1K && this.highlightedDraggable){D7f.globalAlpha*=+"0.3";}if(e64 !== !!0){e64=!!1;}S74=r8c || t_n.defaultPlotField || f16;if(!D5B){D5B=L06.yAxis;}f6r=t_n.transformFunc && D5B == t_n.panel.yAxis;G6_.i3C(7);var Z2$=G6_.k$A(5,4,7);j4Z=D7f.lineWidth * Z2$;U3I=g0I?t_n.top - j4Z:t_n.bottom + j4Z;if(k_G || k_G === 0){U3I=this.pixelFromPrice(k_G,L06,D5B);}G7X=!H58 && m4b && h1R && h1R.fillMountain;Z20=E3S;C$A=E3S;for(var w5E=0;w5E < f4M.length;w5E++){f67="obj";f67+="ect";E5C=f4M[w5E];if(E5C && typeof E5C == f67){if(E5C[E3S] || E5C[E3S] === ("0" | 0)){if(typeof E5C[E3S] == "object"){C$A=a1X.createObjectChainNames(E3S,[S74])[0];}break;}}}t2Y={left:null,right:null};G6_.i3C(25);var L$X=G6_.k$A(15,18,269);E6j=t_n.dataSet.length - t_n.scroll - L$X;if(e64){t2Y.left=this.getPreviousBar(t_n,C$A,0);t2Y.right=this.getNextBar(t_n,C$A,f4M.length - 1);}f3z=!"";h9t=!1;D7f.beginPath();J30=t2Y.left;J5o=null;if(J30){J5o=J30.transform;}if(J30){G6_.a3e(13);V$H=-G6_.B0m("1275904565",0);w4M=123050854;M7x=2;for(var F$G=1;G6_.b3_(F$G.toString(),F$G.toString().length,95963) !== V$H;F$G++){h9B=f6r?J5o?J5o[E3S]:1:J30[E3S];M7x+=2;}if(G6_.m7$(M7x.toString(),M7x.toString().length,82350) !== w4M){h9B=f6r?J5o?J5o[E3S]:1:J30[E3S];}h9B=f6r?J5o?J5o[E3S]:null:J30[E3S];if(h9B || h9B === 0){if(h9B[S74] || h9B[S74] === 0){h9B=h9B[S74];}e1h=this.pixelFromTick(J30.tick,t_n);z4B=this.pixelFromTransformedValue(h9B,L06,D5B);D7f.moveTo(e1h,z4B);v9k.push(e1h,z4B);if(f4M[0].tick - J30.tick > 1){u4m.push({start:v9k.slice(-2),threshold:U3I,tick:J30});h9t=!![];}f3z=!!"";}}G6_.i3C(159);var S6E=G6_.k$A(10,0,2,4);g5D=L06.left + this.micropixels - S6E;if(i4q){g5D+=i4q;}if(b9z && D29 && D29.alignStepToSide){g5D-=this.layout.candleWidth / ("2" | 0);}X9x=this.currentQuote();P4T=0;j1A=0;C$J=!1;g_r={reset:!!"1"};for(var p$L=0;p$L < f4M.length;p$L++){U6E="ob";U6E+="j";U6E+="ec";U6E+="t";V75=t3K.candleWidth;t$n=f4M[p$L];s01=f4M[p$L];if(!t$n){t$n={};}R9O=t$n.lineTravel;if(i$L && t$n.projection){t2Y.right=null;break;}if(t$n.candleWidth){V75=t$n.candleWidth;}if(d7t){V75=0;}if(f6r && t$n.transform){t$n=t$n.transform;}Z3P=t$n[E3S];if(Z3P && typeof Z3P == U6E){Z3P=Z3P[S74];G6_.a3e(50);Z20=G6_.k$A(".",E3S,S74);}if(t_n.lineApproximation && t3K.candleWidth < 1 && !d7t){if(g_r.reset){g_r={CollatedHigh:-Number.MAX_VALUE,CollatedLow:Number.MAX_VALUE,CollatedOpen:null,CollatedClose:null};C$J=![];}I7W=Z3P;if(I7W || I7W === 0){g_r.CollatedHigh=Math.max(g_r.CollatedHigh,I7W);g_r.CollatedLow=Math.min(g_r.CollatedLow,I7W);g_r.CollatedClose=I7W;if(g_r.CollatedOpen === null){g_r.CollatedOpen=I7W;}else {C$J=!!({});}}P4T+=V75;if(P4T - j1A >= 1 || p$L == f4M.length - 1){j1A=Math.floor(P4T);g_r.reset=!![];g_r[E3S]=g_r.CollatedClose;t$n=g_r;t$n.cache={};}else {g5D+=V75;continue;}}if(!j0r){G6_.i3C(40);g5D+=G6_.k$A(V75,2);}if(!Z3P && Z3P !== 0){J8E=v9k.slice(-2);if(G7X && !h9t && v9k.length){v9k.push(J8E[0],U3I);}if(!h9t){u4m.push({start:J8E,threshold:U3I,tick:u73});}h9t=!![];g5D+=j0r?V75:V75 / 2;if((b9z || j0r) && v9k.length){Q0o[p$L]=v9k.slice(-1)[0];}if(R9O){g5D+=R9O;}continue;}B3Q=t$n;m2C=t$n.cache;G6_.i3C(4);y$T=G6_.k$A(p$L,E6j);if(y$T < L06.cacheLeft || y$T > L06.cacheRight || !m2C[E3S]){m2C[Z20]=D5B.semiLog?D5B.height * (1 - (Math.log(Math.max(Z3P,+"0")) / Math.LN10 - D5B.logLow) / D5B.logShadow):(D5B.high - Z3P) * D5B.multiplier;if(D5B.flipped){m2C[Z20]=D5B.bottom - m2C[Z20];}else {m2C[Z20]+=D5B.top;}}h$q=Q0o[p$L]=m2C[Z20];if(s01.tick == X9x.tick && t_n.lastTickOffset){g5D+=t_n.lastTickOffset;}j1J=v9k.slice(-2);if(!f3z && G84){if(s01[E3S] && s01[E3S][S74]){s01=s01[E3S];}F0N=G84(this,s01,h9t);if(!F0N){g5D+=j0r?V75:V75 / 2;continue;}j1J=H2S(F0N);}if(f3z){D7f.moveTo(g5D,h$q);if(H58){D0T.push({coord:[g5D,h$q],color:D7f.strokeStyle,pattern:T8j?T8j:[],width:D7f.lineWidth});}}else {if(b9z || j0r){a1F=v9k.slice(-1)[0];if(C$J){j9b(g5D,a1F,t$n);}else {D7f.lineTo(g5D,a1F);}v9k.push(g5D,a1F);}if(C$J && !j0r){j9b(g5D,h$q,t$n);}else {D7f[j0r?"moveTo":"lineTo"](g5D,h$q);}}if(h9t){u4m.push({end:[g5D,h$q],threshold:U3I});u73=s01;if(G7X && !b9z && !j0r){v9k.push(g5D,U3I);}}v9k.push(g5D,h$q);f3z=!({});h9t=!({});g5D+=j0r?V75:V75 / 2;if(R9O){g5D+=R9O;};}V57=t2Y.right;l97=null;if(V57){l97=V57.transform;}if(!f3z && V57){h9B=f6r?l97?l97[E3S]:null:V57[E3S];if(h9B && (h9B[S74] || h9B[S74] === 0)){h9B=h9B[S74];}M3G=this.pixelFromTick(V57.tick,t_n);R$K=this.pixelFromTransformedValue(h9B,L06,D5B);if(V57.tick - f4M[f4M.length - ("1" - 0)].tick > 1){if(!h9t){M4s=v9k.slice(-2);if(G7X && v9k.length){v9k.push(M4s[0],U3I);}u4m.push({start:M4s,threshold:U3I,tick:f4M[f4M.length - 1]});}h9t=!"";}if(!f3z && G84){I5V=G84(this,V57,h9t);if(I5V){g0o=H2S(I5V);}}d0f=v9k.slice(-2);if(!T8j || !T8j.length){if(b9z || j0r){D7f.lineTo(M3G,d0f[1]);v9k.push(M3G,d0f[1]);}R8j=-822573780;N01=1563034571;s$f=2;for(var s4X="1" << 0;G6_.m7$(s4X.toString(),s4X.toString().length,86491) !== R8j;s4X++){D7f[j0r?"moveTo":"lineTo"](M3G,R$K);s$f+=2;}if(G6_.m7$(s$f.toString(),s$f.toString().length,50201) !== N01){E_Y="li";E_Y+="n";E_Y+="eT";E_Y+="o";D7f[j0r?"moveTo":E_Y](M3G,R$K);}}if(h9t){u4m.push({end:[M3G,R$K],threshold:U3I});if(G7X && !b9z && !j0r){v9k.push(M3G,U3I);}}v9k.push(M3G,R$K);}for(var u2X in d9d){C6d.push(u2X);}if(D29 && D29.extendToEndOfLastBar){T84=v9k.slice(-2);D7f.lineTo(T84[0] + V75,T84["1" >> 32]);}else if(b9z || j0r || this.extendLastTick || a_P){I4q=v9k.slice(-2);if(v9k.length){s1N=I4q[+"0"];b7n=I4q[1];if(a_P || b9z && a_P !== !!""){s1N=this.pixelFromTick(t_n.dataSet.length - 1,t_n);if(j0r || this.extendLastTick){G6_.a3e(27);s1N+=G6_.B0m(V75,"2");}}else if(j0r){s1N+=V75;}else if(this.extendLastTick){G6_.a3e(40);s1N+=G6_.k$A(V75,2);}if(s1N > I4q[0]){y3h=null;if(G84){y3h=G84(this,{},!![]);}if(y3h){H2S(y3h);}D7f.lineTo(s1N,b7n);if(!h9t || !G7X){v9k.push(s1N,b7n);}}}}if(!m4b){if(H58 && v9k.length){D7f.beginPath();if(D29 && D29.pattern){D7f.setLineDash(D29.pattern);}J4d.plotSpline(v9k,H58,D7f,D0T);}D7f.stroke();}this.endClip();if(!m4b && D29 && D29.label && B3Q){X8Z="p";X8Z+="lo";X8Z+="t";l56="noo";l56+="p";L0o=B3Q[E3S];if(L0o && typeof L0o == "object"){L0o=L0o[S74];}if(D5B.priceFormatter){V4T=D5B.priceFormatter(this,L06,L0o,D29.labelDecimalPlaces);}else {V4T=this.formatYAxisPrice(L0o,L06,D29.labelDecimalPlaces);}N1v=this.yaxisLabelStyle;if(D5B.yaxisLabelStyle){N1v=D5B.yaxisLabelStyle;}w1G=N1v == l56?D7f.strokeStyle:null;n8m=N1v == "noop"?"#FFFFFF":D7f.strokeStyle;this.yAxisLabels.push({src:X8Z,args:[L06,V4T,B3Q.cache[Z20],n8m,w1G,D7f,D5B]});}j_9=typeof h1R == "object"?h1R.color:h1R;if(a1X.isTransparent(j_9)){for(var s4v=0;s4v < u4m.length;s4v+=2){B5n=u4m[s4v].start;if(s4v){x9m=u4m[s4v - 1].end;}if(x9m && B5n[0] == x9m[0] && B5n[1] == x9m[1]){D7f.beginPath();v1k=D7f.lineWidth;if(G84){c17=G84(this,u4m[s4v].tick || ({}),![]);if(typeof c17 == "object"){G6_.i3C(112);var z1d=G6_.k$A(38,11,5,13,10);v1k=c17.width * (l1K?"2" ^ 0:z1d);c17=c17.color;}D7f.strokeStyle=D7f.fillStyle=c17;}D7f.lineWidth=v1k;D7f.arc(B5n[0],B5n[1],1,0,"2" * 1 * Math.PI);D7f.stroke();D7f.fill();}}}}function j9b(f7w,w2T,z70){var D8p,I8W,n87,D88,l_0;D8p="Collate";D8p+="dHigh";I8W="Colla";I8W+="ted";I8W+="Ope";I8W+="n";D7f.setLineDash([]);n87=K2b(I8W);D88=K2b(D8p);l_0=K2b("CollatedLow");D7f.lineTo(f7w,n87);D7f.moveTo(f7w,D88);D7f.lineTo(f7w,l_0);function K2b(w77){var M9e;M9e=D5B.semiLog?D5B.height * (1 - (Math.log(Math.max(z70[w77],+"0")) / Math.LN10 - D5B.logLow) / D5B.logShadow):(D5B.high - z70[w77]) * D5B.multiplier;if(D5B.flipped){M9e=D5B.bottom - M9e;}else {M9e+=D5B.top;}return M9e;}D7f.moveTo(f7w,w2T);v9k.push(f7w,n87);}D7f.globalAlpha=v1I;return {colors:C6d,points:v9k,cache:Q0o,gapAreas:u4m};};a1X.ChartEngine.prototype.drawMountainChart=function(n_5,V3z,S0r){var h27,K1Z,m7A,p6v,p6N,g7F,y6c,j0X,r0E,U_Q,u_s,Y0X,G1t,i4G,j2E,M_X,Q1U,P_k,C8t,H8D,T9d,F3d,C_L,W3k,n5A,D73,i8W,T_V,q1K,i$_,E4h,h23,Y7x,U43,J93,O9d,o$m,T91,Y5Q,O2p;h27="Cl";h27+="os";h27+="e";K1Z=this.chart.context;m7A=V3z;p6v=!1;p6N=!!"";g7F=null;y6c=null;j0X=null;r0E=null;U_Q=0;u_s=null;Y0X=!"1";G1t=null;i4G=null;j2E=!!"";M_X=null;Q1U=null;P_k=1;C8t=!!"";H8D=!!0;T9d=!({});F3d=n_5.chart;C_L=F3d.dataSegment;W3k=F3d.lineStyle || ({});if(!V3z || typeof V3z != "object"){V3z={style:V3z};}m7A=V3z.style || "stx_mountain_chart";g7F=V3z.field || F3d.defaultPlotField || "Close";y6c=V3z.subField || F3d.defaultPlotField || h27;u_s=V3z.gapDisplayStyle;if(!u_s && u_s !== ![]){u_s=V3z.gaps;}if(!u_s && u_s !== ![]){u_s=F3d.gaplines;}if(!u_s){u_s="transparent";}j0X=V3z.yAxis || n_5.yAxis;p6v=V3z.reverse || ![];r0E=V3z.tension;G1t=V3z.fillStyle;U_Q=V3z.width || W3k.width;Y0X=V3z.step;i4G=V3z.pattern || W3k.pattern;j2E=V3z.highlight;Q1U=V3z.color || W3k.color;M_X=V3z.baseColor || W3k.baseColor;p6N=V3z.colored;P_k=V3z.opacity;C8t=V3z.extendToEndOfDataSet;H8D=V3z.isComparison;T9d=V3z.returnObject;n5A=this.canvasStyle(m7A);D73=j0X.top;if(isNaN(D73) || isNaN(D73 / D73)){D73=0;}i8W=Q1U || (m7A && n5A.backgroundColor?n5A.backgroundColor:this.defaultColor);T_V=M_X || (m7A && n5A.color?n5A.color:this.containerColor);if(G1t){K1Z.fillStyle=G1t;}else if(M_X || n5A.color){q1K=K1Z.createLinearGradient(0,D73,0,j0X.bottom);q1K.addColorStop(j0X.flipped?+"1":0,i8W);q1K.addColorStop(j0X.flipped?0:"1" | 1,T_V);K1Z.fillStyle=q1K;}else {K1Z.fillStyle=i8W;}this.startClip(n_5.name);i$_=K1Z.lineWidth;if(!V3z.symbol){y6c=null;}V3z={skipProjections:!![],reverse:p6v,yAxis:j0X,gapDisplayStyle:u_s,step:Y0X,highlight:j2E,extendToEndOfDataSet:C8t,isComparison:H8D};if(F3d.tension){V3z.tension=F3d.tension;}if(r0E || r0E === 0){V3z.tension=r0E;}E4h=parseInt(n5A.paddingTop,10);h23=Q1U || n5A.borderTopColor;Y7x=null;if(p6N || h23 && !a1X.isTransparent(h23)){if(E4h){U43=1708265936;J93=1974997166;O9d=2;for(var B71=1;G6_.m7$(B71.toString(),B71.toString().length,36896) !== U43;B71++){o$m=this.scratchContext;O9d+=2;}if(G6_.b3_(O9d.toString(),O9d.toString().length,14023) !== J93){o$m=this.scratchContext;}if(!o$m){T91=K1Z.canvas.cloneNode(!0);o$m=this.scratchContext=T91.getContext("2d");}o$m.canvas.height=K1Z.canvas.height;o$m.canvas.width=K1Z.canvas.width;o$m.drawImage(K1Z.canvas,0,0);a1X.clearCanvas(K1Z.canvas,this);}}a1X.extend(V3z,{panelName:n_5.name,direction:V3z.reverse?-1:1,band:g7F,subField:y6c,opacity:P_k});if(!V3z.highlight && this.highlightedDraggable){V3z.opacity*=0.3;}a1X.preparePeakValleyFill(this,V3z);if(p6N || h23 && !a1X.isTransparent(h23)){if(E4h){Y5Q="de";Y5Q+="stina";Y5Q+="tio";Y5Q+="n-out";K1Z.save();G6_.a3e(38);K1Z.lineWidth+=G6_.k$A(2,E4h);K1Z.globalCompositeOperation=Y5Q;K1Z.globalAlpha=1;this.plotDataSegmentAsLine(g7F,n_5,V3z);K1Z.globalCompositeOperation="destination-over";K1Z.scale(1 / this.adjustedDisplayPixelRatio,1 / this.adjustedDisplayPixelRatio);K1Z.drawImage(this.scratchContext.canvas,0,0);K1Z.restore();}}K1Z.strokeStyle=h23;if(U_Q){K1Z.lineWidth=U_Q;}else if(n5A.width && parseInt(n5A.width,"10" >> 32) <= +"25"){K1Z.lineWidth=Math.max(1,a1X.stripPX(n5A.width));}else {K1Z.lineWidth=1;}if(!i4G){i4G=n5A.borderTopStyle;}V3z.pattern=a1X.borderPatternToArray(K1Z.lineWidth,i4G);O2p=S0r;if(u_s){O2p=this.getGapColorFunction(g7F,y6c,{color:h23,pattern:V3z.pattern,width:K1Z.lineWidth},u_s,S0r);}Y7x=this.plotDataSegmentAsLine(g7F,n_5,V3z,O2p);K1Z.lineWidth=i$_;this.endClip();if(!Y7x.colors.length){Y7x.colors.push(h23);}return T9d?Y7x:Y7x.colors;};a1X.ChartEngine.prototype.drawBaselineChart=function(w9a,J8L){var b2d,f_Q,y6P,w2M,o7B,e9D,m12,X$L,F5u,o0_,w5M,t1Y,C$2,I9A,s05,d70,A2U,G6Y,J2v,x8z,c6G,G19,h5C,v1C,P9o,A_Q,b7i,q42,c0c,y16,m_k,u_q;var {chart:Z0t}=w9a;var {field:O4k, id:X90, yAxis:E4d}=J8L;var {gaplines:x7J, defaultPlotField:Q94, lineStyle:w$j}=Z0t;var {display:A_y}=this.baselineHelper.get(this.getRendererFromSeries(X90));b2d=this.getYAxisBaseline(E4d).actualLevel;f_Q=[];if(!O4k){O4k=Q94;}if(!w$j){w$j={};}y6P=J8L.gapDisplayStyle;if(!y6P && y6P !== !!""){y6P=J8L.gaps;}if(b2d !== null && !isNaN(b2d)){w2M="stx_";w2M+="baseline";o7B="stx_baseline";o7B+="_up";e9D="mount";e9D+="ai";e9D+="n";m12=J8L.type == e9D;if(m12){f_Q=this.drawMountainChart(w9a,{style:J8L.style,field:J8L.field,yAxis:E4d,gapDisplayStyle:y6P,colored:!!({}),tension:0});}X$L=this.pixelFromPrice(b2d,w9a,E4d);if(isNaN(X$L)){return;}this.startClip(w9a.name);F5u=J8L.pattern || w$j.pattern;o0_=J8L.fill_color_up || this.getCanvasColor(o7B);w5M=J8L.fill_color_down || this.getCanvasColor("stx_baseline_down");t1Y=J8L.border_color_up || this.getCanvasColor("stx_baseline_up");C$2=J8L.border_color_down || this.getCanvasColor("stx_baseline_down");I9A=J8L.width || w$j.width || this.canvasStyle("stx_baseline_up").width;s05=J8L.width || w$j.width || this.canvasStyle("stx_baseline_down").width;d70=J8L.widthBaseline || w$j.width || a1X.stripPX(this.canvasStyle("stx_baseline").width);A2U=J8L.baselineOpacity || this.canvasStyle(w2M).opacity;G6Y={fill:o0_,edge:t1Y,width:I9A};J2v={fill:w5M,edge:C$2,width:s05};x8z=J8L.yAxis.flipped;c6G={over:x8z?J2v:G6Y,under:x8z?G6Y:J2v};G19=![];if(!y6P && y6P !== !1){y6P=x7J;}h5C=1;if(!J8L.highlight && this.highlightedDraggable){h5C*=0.3;}for(var I72 in c6G){v1C="tra";v1C+="nspa";v1C+="rent";P9o="o";P9o+="ver";A_Q="t";A_Q+="r";A_Q+="ansparent";b7i=parseInt(Math.max("1" | 1,a1X.stripPX(c6G[I72].width)),10);if(J8L.highlight){b7i*=2;}F5u=a1X.borderPatternToArray(b7i,F5u);q42={panelName:w9a.name,band:O4k,threshold:b2d,color:m12?A_Q:c6G[I72].fill,direction:I72 == P9o?1:-1,edgeHighlight:c6G[I72].edge,edgeParameters:{pattern:F5u,lineWidth:b7i + 0.1,opacity:h5C},gapDisplayStyle:y6P,yAxis:J8L.yAxis};if(E4d){q42.threshold=this.priceFromPixel(this.pixelFromPrice(q42.threshold,w9a,E4d),w9a,E4d);}f_Q.push(c6G[I72].edge);c0c=q42.color;if(!m12 && c0c && c0c != "transparent"){y16=w9a.top;m_k=w9a.bottom;u_q=Z0t.context.createLinearGradient(+"0",I72 == "over"?y16:m_k,0,X$L);u_q.addColorStop(0,a1X.hexToRgba(a1X.colorToHex(c0c),"60" >> 64));u_q.addColorStop(1,a1X.hexToRgba(a1X.colorToHex(c0c),+"10"));q42.color=u_q;q42.opacity=h5C;}a1X.preparePeakValleyFill(this,Z0t.dataSegment,q42);if(x7J){if(!x7J.fillMountain){this.drawLineChart(w9a,null,null,{color:"transparent",gapDisplayStyle:{color:this.containerColor,pattern:"solid",width:q42.edgeParameters.lineWidth}});}if(!x7J.color){G19=!!({});x7J.color=this.defaultColor;}}this.drawLineChart(w9a,null,null,{color:v1C,width:q42.edgeParameters.lineWidth});if(G19){x7J.color=null;}}if(A_y){this.plotLine(+"0",1,X$L,X$L,this.containerColor,"line",Z0t.context,w9a,{lineWidth:"1.1"});this.plotLine(0,1,X$L,X$L,this.getCanvasColor("stx_baseline"),"line",Z0t.context,w9a,{pattern:"dotted",lineWidth:d70 || "2.1",opacity:A2U || 0.5 * h5C});}this.endClip();}return {colors:f_Q};};a1X.ChartEngine.prototype.plotLine=function(H3M){var V5a,o25,Z0i,k_m,K7l,c3y,R7Y,L5o,u8D,B9a,j60,X6j,J0j,S1U,C0x,S4y,z4k,S4E,E3I,x24,y$A,D7E,G6x,W7S,M4b,J8k,C_Z,g0F,L7d,b$V,k$M,D8O,f3l,G9R;V5a="vert";V5a+="ic";V5a+="al";o25="no";o25+="n";o25+="e";Z0i="n";Z0i+="um";Z0i+="b";Z0i+="er";if(typeof arguments[0] == Z0i){H3M={x0:arguments[0],x1:arguments[1],y0:arguments[2],y1:arguments[3],color:arguments[4],type:arguments[5],context:arguments[6],confineToPanel:arguments[7]};for(var d4i in arguments[8]){H3M[d4i]=arguments[8][d4i];}}if(!H3M){H3M={};}if(H3M.pattern == o25){return;}k_m=H3M.x0;K7l=H3M.x1;c3y=H3M.y0;R7Y=H3M.y1;L5o=H3M.color;u8D=H3M.type;B9a=H3M.context;j60=H3M.confineToPanel;X6j=H3M.deferStroke;if(j60 === !!"1"){j60=this.chart.panel;}if(B9a === null || typeof B9a == "undefined"){B9a=this.chart.context;}if(isNaN(k_m) || isNaN(K7l) || isNaN(c3y) || isNaN(R7Y)){return;}J0j=0;S1U=this.chart.canvasHeight;C0x=0;S4y=this.right;if(j60){S1U=j60.yAxis.bottom;J0j=j60.yAxis.top;C0x=j60.left;S4y=j60.right;}if(u8D == "ray"){z4k=10000000;if(K7l < k_m){z4k=-+"10000000";}E3I={x0:k_m,x1:K7l,y0:c3y,y1:R7Y};S4E=a1X.yIntersection(E3I,z4k);K7l=z4k;R7Y=S4E;}if(u8D == "line" || u8D == "horizontal" || u8D == V5a){z4k=10000000;x24=-10000000;E3I={x0:k_m,x1:K7l,y0:c3y,y1:R7Y};S4E=a1X.yIntersection(E3I,z4k);y$A=a1X.yIntersection(E3I,x24);k_m=x24;K7l=z4k;c3y=y$A;R7Y=S4E;}D7E=0.0;G6x=1.0;G6_.a3e(1);W7S=G6_.k$A(k_m,K7l);G6_.a3e(1);M4b=G6_.B0m(c3y,R7Y);for(var D6C=0;D6C < 4;D6C++){if(D6C === +"0"){J8k=-W7S;G6_.i3C(1);C_Z=-G6_.B0m(k_m,C0x);}if(D6C == 1){J8k=W7S;G6_.i3C(1);C_Z=G6_.B0m(k_m,S4y);}if(D6C == +"2"){J8k=-M4b;G6_.i3C(1);C_Z=-G6_.k$A(c3y,J0j);}if(D6C == 3){J8k=M4b;G6_.a3e(1);C_Z=G6_.B0m(c3y,S1U);}G6_.a3e(40);g0F=G6_.B0m(C_Z,J8k);if((R7Y || R7Y === 0) && J8k === 0 && C_Z < "0" - 0){return !({});;}if(J8k < 0){if(g0F > G6x){return !1;}else if(g0F > D7E){D7E=g0F;};}else if(J8k > 0){if(g0F < D7E){return !1;}else if(g0F < G6x){G6x=g0F;};}}G6_.i3C(145);L7d=G6_.k$A(k_m,W7S,D7E);G6_.a3e(145);b$V=G6_.k$A(c3y,M4b,D7E);G6_.a3e(145);k$M=G6_.B0m(k_m,W7S,G6x);G6_.i3C(145);D8O=G6_.k$A(c3y,M4b,G6x);if(!R7Y && R7Y !== 0 && !c3y && c3y !== 0){b$V=J0j;D8O=S1U;L7d=E3I.x0;k$M=E3I.x0;if(E3I.x0 > S4y){return !({});}if(E3I.x0 < C0x){return ![];}}else if(!R7Y && R7Y !== 0){if(E3I.y0 < E3I.y1){D8O=S1U;}else {D8O=J0j;}L7d=E3I.x0;k$M=E3I.x0;if(E3I.x0 > S4y){return !"1";}if(E3I.x0 < C0x){return !!0;}}if(!X6j){B9a.save();B9a.beginPath();}B9a.lineWidth=1.1;if(L5o && typeof L5o == "object"){B9a.strokeStyle=L5o.color;if(L5o.opacity){B9a.globalAlpha=L5o.opacity;}else {B9a.globalAlpha=1;}B9a.lineWidth=a1X.stripPX(L5o.width);}else {f3l="a";f3l+="u";f3l+="t";f3l+="o";if(!L5o || L5o == f3l || a1X.isTransparent(L5o)){B9a.strokeStyle=this.defaultColor;}else {B9a.strokeStyle=L5o;}}if(H3M.opacity){B9a.globalAlpha=H3M.opacity;}if(H3M.lineWidth){B9a.lineWidth=H3M.lineWidth;}if(H3M.globalCompositeOperation){B9a.globalCompositeOperation=H3M.globalCompositeOperation;}G9R=a1X.borderPatternToArray(B9a.lineWidth,H3M.pattern);B9a.setLineDash(H3M.pattern?G9R:[]);B9a.moveTo(L7d,b$V);B9a.lineTo(k$M,D8O);if(!X6j){B9a.stroke();B9a.restore();}};a1X.ChartEngine.prototype.rendererAction=function(E1n,F4S){var b$0,T7l,d0e,z93,U4C,T8n,l8E,F2o;function w50(){var W$X,m30;W$X="u";G6_.E0w();W$X+="nde";W$X+="rl";W$X+="ay";if(!b$0 && F4S === W$X){m30=Symbol.for("CIQ.watermark");if(this[m30]){this[m30].draw(E1n);b$0=!![];}}}b$0=!({});G6_.E0w();if(!this.runPrepend("rendererAction",arguments)){for(var M3R in E1n.seriesRenderers){T7l="y";T7l+="Axi";T7l+="s";d0e="und";d0e+="erlay";z93="_ma";z93+="in_serie";z93+="s";U4C=E1n.seriesRenderers[M3R];T8n=U4C.params;l8E=T8n.panel;F2o=this.panels[l8E];if(T8n.overChart && F4S == "underlay")continue;if(T8n.name == z93 && F4S == d0e)continue;if(T8n.name != "_main_series" && F4S == "main")continue;if(!T8n.overChart && F4S == "overlay")continue;if(!F2o)continue;if(F2o.chart !== E1n)continue;if(F2o.hidden)continue;if(F4S == T7l){U4C.adjustYAxis();}else {w50.apply(this);U4C.draw();if(U4C.cb){U4C.cb(U4C.colors);}}}this.runAppend("rendererAction",arguments);}w50.apply(this);};a1X.ChartEngine.prototype.drawSeries=function(x0W,L6c,m2w,H_h){var n5r,k$i,K8R,R6B,H0Q,M2D,r8P,x3$,m9C,A_D,y6q,Q$c,K3f,A64,X5Q,c0R,f40,Q$N;n5r="draw";n5r+="Se";n5r+="r";n5r+="ies";if(this.runPrepend("drawSeries",arguments)){return;}k$i=x0W.dataSegment;K8R=null;if(!L6c){L6c=x0W.series;}for(var G$0 in L6c){R6B="mou";R6B+="nta";R6B+="in";K8R=L6c[G$0];H0Q=K8R.parameters;M2D=H0Q.panel?this.panels[H0Q.panel]:x0W.panel;r8P=H0Q.color;x3$=H0Q.width;m9C=H0Q.field;if(!M2D)continue;A_D=H0Q.yAxis=m2w?m2w:M2D.yAxis;if(!r8P){r8P=A_D.textStyle || this.defaultColor;}if(r8P == "auto"){r8P=this.defaultColor;}if(!m9C){m9C=x0W.defaultPlotField;}y6q=H0Q.subField || x0W.defaultPlotField || "Close";if(!H0Q._rawExtendToEndOfDataSet && H0Q._rawExtendToEndOfDataSet !== !!0){H0Q._rawExtendToEndOfDataSet=H0Q.extendToEndOfDataSet;}if(x0W.animatingHorizontalScroll){H0Q.extendToEndOfDataSet=![];}else {H0Q.extendToEndOfDataSet=H0Q._rawExtendToEndOfDataSet;}Q$c=H0Q.colorFunction;if(K8R.highlight || K8R.parameters.highlight){H0Q.highlight=!0;}K3f={colors:[]};if(H_h){if(H_h.params.highlight){H0Q.highlight=!!"1";}if(H0Q.hidden)continue;K3f=H_h.drawIndividualSeries(x0W,H0Q) || K3f;}else if(H0Q.type == R6B){K3f=this.drawMountainChart(M2D,a1X.extend({returnObject:!!1},H0Q),Q$c);}else {K3f=this.drawLineChart(M2D,H0Q.style,Q$c,a1X.extend({returnObject:!!1},H0Q));}K8R.yValueCache=K3f.cache;A64=x0W.dataSegment[x0W.dataSegment.length - 1];if(A64){X5Q=!H0Q.skipTransform && x0W.transformFunc && A_D == x0W.panel.yAxis;if(!A64[m9C] && A64[m9C] !== "0" >> 0){A64=this.getPreviousBar(x0W,m9C,x0W.dataSegment.length - 1);}if(X5Q && A64 && A64.transform){A64=A64.transform;}}if(H0Q.displayFloatingLabel !== !({}) && this.mainSeriesRenderer != H_h && A64 && !A_D.noDraw){c0R=A64[m9C];if(c0R){if(c0R[y6q] || c0R[y6q] === 0){c0R=c0R[y6q];}else {c0R=c0R.iqPrevClose;}}if(A_D.priceFormatter){f40=A_D.priceFormatter(this,M2D,c0R);}else {f40=this.formatYAxisPrice(c0R,M2D,null,A_D);}this.yAxisLabels.push({src:"series",args:[M2D,f40,this.pixelFromTransformedValue(c0R,M2D,A_D),a1X.hexToRgba(a1X.colorToHex(r8P),parseFloat(H0Q.opacity)),null,null,A_D]});}if(x0W.legend && H0Q.useChartLegend){if(!x0W.legend.colorMap){x0W.legend.colorMap={};}Q$N=H0Q.display;if(!Q$N){Q$N=H0Q.symbol;}x0W.legend.colorMap[G$0]={color:K3f.colors,display:Q$N,isBase:H_h == this.mainSeriesRenderer};;}}this.runAppend(n5r,arguments);};};I3=Q9f=>{var z3m=M2dNJ;z3m.j07();var W$C;W$C=Q9f.CIQ;W$C.ChartEngine.prototype.scrollTo=function(i81,J_y,s8d){var m6Y,p53,o4f,C0k,k1q;m6Y=this.swipe;m6Y.end=!!"1";m6Y.amplitude=m6Y.target=(J_y - i81.scroll) * this.layout.candleWidth;m6Y.timeConstant=100;m6Y.timestamp=Date.now();p53=1226042827;o4f=1168966903;C0k=2;z3m.j07();for(var n6s=1;z3m.b3_(n6s.toString(),n6s.toString().length,+"82797") !== p53;n6s++){m6Y.scroll=i81.scroll;m6Y.chart=i81;m6Y.cb=s8d;C0k+=2;}if(z3m.b3_(C0k.toString(),C0k.toString().length,13329) !== o4f){m6Y.scroll=i81.scroll;m6Y.chart=i81;m6Y.cb=s8d;}m6Y.scroll=i81.scroll;m6Y.chart=i81;m6Y.cb=s8d;k1q=this;requestAnimationFrame(function(){k1q.autoscroll();});};W$C.ChartEngine.prototype.autoscroll=function(){var p_v,K4u,C4$,x6k,V7d,f9G,b2K;p_v=this;K4u=this.swipe;C4$=455036783;x6k=+"537613222";V7d=2;z3m.E0w();for(var s$C="1" ^ 0;z3m.b3_(s$C.toString(),s$C.toString().length,"74984" << 0) !== C4$;s$C++){V7d+=2;}if(z3m.b3_(V7d.toString(),V7d.toString().length,54100) !== x6k){}if(K4u.amplitude){K4u.elapsed=Date.now() - K4u.timestamp;f9G=-K4u.amplitude * Math.exp(-K4u.elapsed / K4u.timeConstant);b2K=(K4u.target + f9G) / this.layout.candleWidth;K4u.chart.scroll=K4u.scroll + Math.round(b2K);this.draw();this.updateChartAccessories();if(f9G > "0.5" - 0 || f9G < -0.5){requestAnimationFrame(function(){p_v.autoscroll();});}else {if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(K4u.cb){K4u.cb();}}}};};j0=n7h=>{var R8s=M2dNJ;R8s.E0w();var N5$;N5$=n7h.CIQ;N5$.ChartEngine.prototype.drawXAxis=function(I8E,U6f){var i52,V_o,L5v,m2g,Q3Z,L2F,E7F,k4j,w9X,f3u,d_J,o2T,z9U,t$P,J5R,J9O,G57,p82,N0K,y7B,p2W,p7A,b47,k9H,g_0;i52=[I8E,U6f];if(this.runPrepend("drawXAxis",i52)){return;}if(!U6f){return;}if(I8E.xAxis.noDraw){return;}V_o=this.getBackgroundCanvas().context;this.canvasFont("stx_xaxis",V_o);L5v=this.getCanvasFontSize("stx_xaxis");V_o.textAlign="center";V_o.textBaseline="middle";Q3Z=V_o.measureText(" ").width;for(var G4X=0;G4X < U6f.length;G4X++){m2g=U6f[G4X];L2F=V_o.measureText(m2g.text).width;R8s.a3e(4);E7F=Math.max(R8s.k$A(Q3Z,L2F),I8E.xAxis.minimumLabelWidth);m2g.hz=Math.floor(m2g.hz + this.micropixels) + ("0.5" - 0);R8s.i3C(4);var h3M=R8s.B0m(1,1);m2g.left=m2g.hz - E7F / h3M;m2g.right=m2g.hz + E7F / +"2";m2g.unpaddedRight=m2g.hz + L2F / +"2";}k4j=this.xAxisAsFooter === !![]?this.chart.canvasHeight:I8E.panel.bottom;R8s.a3e(1);w9X=this.whichPanel(R8s.B0m(1,k4j));if(!w9X){return;}this.adjustYAxisHeightOffset(w9X,w9X.yAxis);f3u=I8E.xAxis.displayBorder || I8E.xAxis.displayBorder === null;if(this.axisBorders === !!({})){f3u=!![];}if(this.axisBorders === ![]){f3u=!!0;}d_J=k4j - this.xaxisHeight + L5v;if(f3u){d_J+=3;}o2T=!!({});for(var u7O in this.panels){z9U="l";z9U+="in";z9U+="e";t$P=this.panels[u7O];if(t$P.hidden || t$P.shareChartXAxis === !"1")continue;R8s.i3C(110);J5R=R8s.B0m(t$P,w9X);J9O=t$P.yAxis;if(!J9O)continue;G57=-Number.MAX_VALUE;p82=Number.MAX_VALUE;for(var S8v=0;S8v < U6f.length;S8v++){N0K="b";N0K+="o";N0K+="undary";if(U6f[S8v].grid == N0K){p82=U6f[S8v].left;break;}}V_o.save();V_o.beginPath();V_o.rect(t$P.left,t$P.top + (o2T?0:1),t$P.width,t$P.height - 1);V_o.clip();o2T=!!"";y7B=new N5$.Plotter();y7B.newSeries(z9U,"stroke",this.canvasStyle("stx_grid"));y7B.newSeries("boundary","stroke",this.canvasStyle("stx_grid_dark"));y7B.newSeries("border","stroke",this.canvasStyle("stx_grid_border"));for(var f2I=0;f2I < U6f.length;f2I++){m2g=U6f[f2I];if(f2I == S8v){for(S8v++;S8v < U6f.length;S8v++){p2W="b";p2W+="oun";p2W+="dary";if(U6f[S8v].grid == p2W){p82=U6f[S8v].left;break;}}if(S8v >= U6f.length){S8v=-1;p82=Number.MAX_VALUE;}}else {if(m2g.right > p82)continue;}if(m2g.left < G57)continue;if(m2g.left < 0){if(p82 < m2g.right)continue;if(S8v >= U6f.length){if(U6f[f2I + 1] && U6f[f2I + 1].left < m2g.right)continue;}}G57=m2g.right;if(Math.floor(m2g.left) <= t$P.right){if(Math.floor(m2g.hz) > t$P.left){if(I8E.xAxis.displayGridLines){y7B.moveTo(m2g.grid,m2g.hz,J9O.top);y7B.lineTo(m2g.grid,m2g.hz,J9O.bottom);}if(J5R && f3u){p7A="bor";p7A+="der";y7B.moveTo("border",m2g.hz,J9O.bottom + 0.5);y7B.lineTo(p7A,m2g.hz,J9O.bottom + 6);}}if(J5R && m2g.right > t$P.left){b47="s";b47+="t";b47+="x_x";b47+="axis";this.canvasColor(m2g.grid == "boundary"?"stx_xaxis_dark":b47,V_o);V_o.fillText(m2g.text,m2g.hz,d_J);}}}if(f3u){k9H=Math.round(J9O.bottom) + 0.5;g_0=Math.round(t$P.right) + 0.5;y7B.moveTo("border",t$P.left,k9H);y7B.lineTo("border",g_0,k9H);}y7B.draw(V_o);V_o.restore();}V_o.textAlign="left";this.runAppend("drawXAxis",i52);};N5$.ChartEngine.prototype.createTickXAxisWithDates=function(p1t){var y5V,X32,R08,j02,R6v,b_f,l0p,n9v,V6L,r0D,t5s,S6W,p5w,n52,a37,u4V,r3q,U7y,m6J,S18,i0B,T8T,u2r,z$u,l1m,w3x,e_9,l7C,q4t,k6F,g$1,T5C,u8k,x95,B1j,z5H,N2C,D_P,H2V,J3J,M02,r1p,Z2E,H9U,K0y,K_v,j8U,c5B,p52,W7N,b85,z4d,j4O,D15,a1D,L6H,O9U,b6O,G4D,T53,n5t,c65,o91;y5V="heikin";y5V+="as";y5V+="hi";X32="m";X32+="onth";R08="d";R08+="a";R08+="y";j02="mi";j02+="n";j02+="u";j02+="te";if(!p1t){p1t=this.chart;}p1t.xaxis=[];b_f=p1t.context;l0p=[N5$.MILLISECOND,N5$.SECOND,N5$.MINUTE,N5$.HOUR,N5$.DAY,N5$.MONTH,N5$.YEAR];if(!this.timeIntervalMap){n9v="2";n9v+="00";n9v+="0";V6L="10";V6L+=":00";r0D=b_f.measureText.bind(b_f);R6v={};R6v[N5$.MILLISECOND]={arr:[+"1",2,5,10,20,50,"100" >> 0,250,+"500"],minTimeUnit:+"0",maxTimeUnit:1000,measurement:r0D("10:00:00.000")};R6v[N5$.SECOND]={arr:[1,2,3,"4" << 64,5,6,10,12,15,20,30],minTimeUnit:0,maxTimeUnit:60,measurement:r0D("10:00:00")};R6v[N5$.MINUTE]={arr:[1,2,3,4,5,"6" << 0,10,12,15,20,30],minTimeUnit:0,maxTimeUnit:"60" << 64,measurement:r0D("10:00")};R6v[N5$.HOUR]={arr:[1,2,3,"4" | 4,6,+"12"],minTimeUnit:"0" ^ 0,maxTimeUnit:24,measurement:r0D(V6L)};R6v[N5$.DAY]={arr:[1,2,"7" >> 0,14],minTimeUnit:1,maxTimeUnit:"32" | 0,measurement:r0D("30")};R6v[N5$.MONTH]={arr:[1,+"2",3,6],minTimeUnit:"1" << 0,maxTimeUnit:13,measurement:r0D("Mar")};R6v[N5$.YEAR]={arr:[1,+"2",3,+"5"],minTimeUnit:+"1",maxTimeUnit:20000000,measurement:r0D(n9v)};R6v[N5$.DECADE]={arr:[10],minTimeUnit:+"0",maxTimeUnit:2000000,measurement:r0D("2000")};this.timeIntervalMap=R6v;}R6v=this.timeIntervalMap;R8s.a3e(71);t5s=[R8s.k$A("31",0),28,31,30,31,+"30",31,31,30,31,+"30",31];S6W=this.layout.periodicity;p5w=this.layout.interval;n52=p1t.maxTicks;a37=p1t.dataSegment;u4V=p1t.xAxis;r3q=a37.length;U7y=u4V.idealTickSizePixels || u4V.autoComputedTickSizePixels;R8s.j07();m6J=this.chart.width / U7y;for(var V_p="0" << 0;V_p < r3q;V_p++){if(a37[V_p])break;}if(V_p == r3q){return [];}S18=0;i0B=this.layout.timeUnit || j02;if(isNaN(p5w)){i0B=p5w;p5w=1;}T8T=0;switch(i0B){case "millisecond":T8T=1;break;case "second":T8T=1000;R8s.a3e(82);l0p.splice(0,R8s.B0m(96,"1"));break;case "minute":T8T=60000;l0p.splice(+"0",2);break;case R08:T8T=86400000;l0p.splice(0,4);break;case "week":R8s.i3C(38);T8T=R8s.B0m(86400000,7);l0p.splice(0,4);break;case X32:R8s.i3C(38);T8T=R8s.B0m(86400000,30);l0p.splice(+"0",5);break;}u2r=this.layout.aggregationType;if(T8T && (!u2r || u2r == "ohlc" || u2r == y5V)){R8s.i3C(72);S18=R8s.k$A(T8T,S6W,r3q,p5w);;}else {S18=a37[r3q - 1].DT.getTime() - a37[V_p].DT.getTime();;}if(S18 === 0){if(p1t.market){z$u=p1t.market.newIterator({begin:new Date(),interval:"day",periodicity:1});z$u.next();l1m=z$u.previous();z$u=this.standardMarketIterator(l1m,null,p1t);w3x=z$u.next();S18=(w3x.getTime() - l1m.getTime()) * n52;;}else {R8s.i3C(160);S18=R8s.k$A("60",n52,1000,24,"60");;}}else {R8s.a3e(161);S18=R8s.B0m(n52,r3q,S18);;}R8s.a3e(40);e_9=R8s.B0m(S18,m6J);for(l7C=0;l7C < l0p.length;l7C++){if(l0p[l7C] > e_9 + "0.001" * 1)break;;}if(e_9 < 1){console.log("createTickXAxisWithDates: Assertion error. msPerGridLine < 1. Make sure your masterData has correct time stamps for the active periodicity and it is sorted from OLDEST to NEWEST.");}if(l7C == l0p.length){l7C--;}else if(l7C > 0){R8s.i3C(1);q4t=l0p[R8s.B0m(1,l7C)];k6F=R6v[q4t].arr;R8s.i3C(20);var J6k=R8s.B0m(19,13,0,31);g$1=k6F[k6F.length - J6k];if(e_9 - q4t * g$1 < l0p[l7C] - e_9){l7C--;}}T5C=u4V.timeUnit || l0p[l7C];u4V.activeTimeUnit=T5C;u8k=R6v[T5C];x95=u8k.arr;for(l7C=0;l7C < x95.length;l7C++){if(x95[l7C] * T5C > e_9)break;}if(l7C == x95.length){l7C--;}else {if(e_9 - x95[l7C - 1] * T5C < x95[l7C] * T5C - e_9){l7C--;}}if(u8k.measurement.width * 2 < this.layout.candleWidth){l7C=0;}B1j=u4V.timeUnitMultiplier || x95[l7C];z5H=[];N2C=this.layout.candleWidth;for(l7C=0;l7C <= n52;l7C++){if(a37[l7C])break;}if(l7C > 0 && l7C < n52){if(p1t.market){D_P=this.standardMarketIterator(a37[l7C].DT,u4V.adjustTimeZone?this.displayZone:null);}for(var L1Z=l7C;L1Z > 0;L1Z--){H2V={};if(D_P && !(p1t.lineApproximation && N2C < 1)){H2V.DT=D_P.previous();}p1t.xaxis.unshift(H2V);}}J3J=0;function k2N(w31){var m3d,G9l;if(T5C == N5$.MILLISECOND){m3d=w31.getMilliseconds();G9l=w31.getSeconds();}else if(T5C == N5$.SECOND){m3d=w31.getSeconds();G9l=w31.getMinutes();}else if(T5C == N5$.MINUTE){m3d=w31.getMinutes();G9l=w31.getHours();}else if(T5C == N5$.HOUR){R8s.a3e(34);var b7U=R8s.k$A(14,946,1020);m3d=w31.getHours() + w31.getMinutes() / b7U;G9l=w31.getDate();}else if(T5C == N5$.DAY){m3d=w31.getDate();R8s.a3e(20);var q8A=R8s.B0m(14,4,19,36);G9l=w31.getMonth() + q8A;}else if(T5C == N5$.MONTH){R8s.i3C(31);var n7g=R8s.B0m(2,3,6,6);m3d=w31.getMonth() + n7g;G9l=w31.getFullYear();}else if(T5C == N5$.YEAR){m3d=w31.getFullYear();R8s.i3C(1);var q7P=R8s.B0m(7000,8000);G9l=w31.getFullYear() + q7P;}else {m3d=w31.getFullYear();R8s.i3C(71);G9l=R8s.k$A("0",64);}return [m3d,G9l];}M02=u8k.minTimeUnit;r1p=-+"1";Z2E=!![];H9U=k2N(a37[l7C].DT);R8s.i3C(14);K_v=R8s.k$A(0,"0");j8U=0;c5B=a37[l7C].tick;for(K_v;K_v < c5B;K_v++){K0y=k2N(this.chart.dataSet[c5B - K_v].DT);if(K0y[1] != H9U[1])break;H9U=K0y;}for(j8U;j8U < this.chart.dataSet.length - c5B;j8U++){K0y=k2N(this.chart.dataSet[c5B + j8U].DT);if(K0y[1] != H9U[1])break;H9U=K0y;}p52=null;for(l7C=0;l7C < n52 + j8U;l7C++){W7N=a37[l7C];if(!W7N){W7N=p1t.xaxis[l7C];}else if(K_v){W7N=p1t.dataSet[W7N.tick - K_v];}if(l7C < r3q){b85=W7N;if(b85.displayDate && u4V.adjustTimeZone){J3J=b85.displayDate;}else {J3J=b85.DT;}if(l7C && !K_v && p1t.segmentImage){z4d=p1t.segmentImage[l7C];R8s.a3e(25);var q0g=R8s.B0m(4,28,110);N2C=(z4d.leftOffset - z4d.candleWidth / q0g) / l7C;}}else if(p1t.market){j4O="t";j4O+="i";j4O+="c";j4O+="k";if(this.layout.interval == j4O && !u4V.futureTicksInterval)break;if(p1t.lineApproximation && N2C < 1)break;if(!u4V.futureTicks)break;if(!p52){p52=this.standardMarketIterator(a37[r3q - 1].DT,u4V.adjustTimeZone?this.displayZone:null);}J3J=p52.next();}if(!J3J)continue;D15=null;R8s.a3e(1);L6H=R8s.k$A(K_v,l7C);O9U={DT:J3J};if(l7C < r3q){O9U.data=W7N;}else {O9U.data=null;}if(K_v){K_v--;l7C--;}else if(!p1t.xaxis[l7C] && l7C < n52){p1t.xaxis.push(O9U);}H9U=k2N(J3J);b6O=H9U[0];G4D=H9U[1];if(r1p != G4D){if(b6O <= M02){M02=u8k.minTimeUnit;}R8s.a3e(8);var w0s=R8s.k$A(24,13,12);a1D=p1t.left + L6H * N2C - w0s;D15=null;if(T5C == N5$.HOUR || T5C == N5$.MINUTE && r1p > G4D){if(this.internationalizer){D15=this.internationalizer.monthDay.format(J3J);}else {D15=J3J.getMonth() + +"1" + "/" + J3J.getDate();}if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.DAY,1,D15);}}else if(T5C == N5$.DAY){if(r1p > G4D){D15=J3J.getFullYear();if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.YEAR,1,D15);}}else {D15=N5$.monthAsDisplay(J3J.getMonth(),![],this);if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.MONTH,1,D15);}}}else if(T5C == N5$.MONTH){D15=J3J.getFullYear();if(u4V.formatter){D15=u4V.formatter(J3J,"boundary",N5$.YEAR,"1" | 0,D15);}}if(D15 && r1p != -1){T53="bo";T53+="u";T53+="ndar";T53+="y";z5H.push(new N5$.ChartEngine.XAxisLabel(a1D,T53,D15));}}if(b6O >= M02){n5t="l";n5t+="i";n5t+="ne";if(M02 == u8k.minTimeUnit){if(G4D == r1p)continue;;}c65=new Date(+J3J);R8s.a3e(10);var L3m=R8s.k$A(4,4,16,0,0);R8s.a3e(7);var E4H=R8s.B0m(89,11,4);R8s.i3C(0);var x6v=R8s.k$A(1,6,7);a1D=p1t.left + (+"2" * L6H + L3m) * N2C / ("2" >> E4H) - x6v;o91=Math.floor(b6O / B1j) * B1j;if(o91 < b6O){if(this.layout.interval == "week"){o91=b6O;}else {R8s.a3e(40);a1D-=R8s.B0m(N2C,2);};}if(T5C == N5$.MILLISECOND){c65.setMilliseconds(o91);}else if(T5C == N5$.SECOND){c65.setMilliseconds(0);c65.setSeconds(o91);}else if(T5C == N5$.MINUTE){c65.setMilliseconds(0);c65.setSeconds(+"0");c65.setMinutes(o91);}else if(T5C == N5$.HOUR){c65.setMilliseconds(0);c65.setSeconds(0);c65.setMinutes(0);c65.setHours(o91);}else if(T5C == N5$.DAY){c65.setDate(Math.max(1,o91));}else if(T5C == N5$.MONTH){c65.setDate(1);R8s.i3C(1);c65.setMonth(R8s.B0m(1,o91));}else if(T5C == N5$.YEAR){c65.setDate(1);c65.setMonth(0);}else {c65.setDate(1);c65.setMonth(0);}R8s.i3C(4);M02=R8s.k$A(B1j,o91);if(T5C == N5$.DAY){R8s.i3C(67);var O7J=R8s.B0m(11,100,14,8);u8k.maxTimeUnit=t5s[c65.getMonth()] + O7J;}if(M02 >= u8k.maxTimeUnit){M02=u8k.minTimeUnit;}r1p=G4D;if(Z2E && o91 < b6O){Z2E=![];continue;}if(T5C == N5$.DAY){D15=c65.getDate();}else if(T5C == N5$.MONTH){D15=N5$.monthAsDisplay(c65.getMonth(),!({}),this);}else if(T5C == N5$.YEAR || T5C == N5$.DECADE){D15=c65.getFullYear();}else {D15=N5$.timeAsDisplay(c65,this,T5C);}if(u4V.formatter){D15=u4V.formatter(c65,"line",T5C,B1j,D15);}z5H.push(new N5$.ChartEngine.XAxisLabel(a1D,n5t,D15));}}return z5H;};};n2=Z8_=>{var f5q;f5q=Z8_.CIQ;f5q.ChartEngine.prototype.createYAxis=function(f1m,c4G){var e5l=M2dNJ;var h7A,Y3I,Q4I,q00,J1e,L1M,W2W,O20,V8j,x0U,r8F,Y6a,J8c,e6D,W0D,w8t,I7Y,X4Y,M5q,A1h,l7k,w4P,l2O;h7A="c";h7A+="r";h7A+="eat";h7A+="eYAxis";Y3I="creat";Y3I+="eYAxis";if(this.runPrepend(Y3I,arguments)){return;}Q4I=f1m.chart;q00=f1m.name == Q4I.name;if(!c4G){c4G={};}e5l.E0w();c4G.noChange=!1;J1e=c4G.yAxis?c4G.yAxis:f1m.yAxis;if(f5q.ChartEngine.enableCaching && J1e.high == f1m.cacheHigh && J1e.low == f1m.cacheLow){e5l.a3e(0);var t0B=e5l.k$A(2,5,11);L1M=Q4I.dataSet.length - Q4I.scroll - t0B;e5l.i3C(5);var R3u=e5l.B0m(19,20);W2W=L1M + Q4I.maxTicks + R3u;f1m.cacheLeft=L1M;f1m.cacheRight=W2W;c4G.noChange=!0;}else {f1m.cacheLeft=1000000;f1m.cacheRight=-+"1";f1m.cacheHigh=J1e.high;f1m.cacheLow=J1e.low;}O20=Q4I.xAxis.idealTickSizePixels?Q4I.xAxis.idealTickSizePixels:Q4I.xAxis.autoComputedTickSizePixels;if(J1e.goldenRatioYAxis){if(J1e.idealTickSizePixels != O20 / 1.618){c4G.noChange=!({});}}if(!c4G.noChange){x0U="p";x0U+="rojection";this.adjustYAxisHeightOffset(f1m,J1e);r8F=J1e.height=J1e.bottom - J1e.top;Y6a=(J1e.high - J1e.low) / (r8F - J1e.zoom);if(!J1e.semiLog){if(c4G.ground){J1e.high=J1e.high + J1e.zoom * Y6a;}else {e5l.a3e(61);var L3c=e5l.B0m(14,2,4,14);J1e.high=J1e.high + (J1e.zoom / L3c + J1e.scroll) * Y6a;e5l.i3C(125);var K5O=e5l.B0m(17,4,167,13);J1e.low=J1e.low - (J1e.zoom / K5O - J1e.scroll) * Y6a;}}if(J1e.min || J1e.min === 0){J1e.low=J1e.min;}if(J1e.max || J1e.max === +"0"){J1e.high=J1e.max;}J1e.shadow=J1e.high - J1e.low;if(J1e.semiLog && (!this.activeDrawing || this.activeDrawing.name != x0U)){J8c=function(){var V4d;J1e.logHigh=Math.log(J1e.high) / Math.LN10;V4d=Math.max(J1e.low,0.000000001);J1e.logLow=Math.log(V4d) / Math.LN10;if(J1e.low <= 0){J1e.logLow=0;}J1e.logShadow=J1e.logHigh - J1e.logLow;};if(J1e.semiLog){J8c();}e6D=J1e.height / (J1e.height - J1e.zoom);if(J1e.flipped){J1e.high=this.transformedPriceFromPixel(J1e.bottom + e6D * (J1e.zoom / 2 + J1e.scroll),f1m,J1e);J1e.low=this.transformedPriceFromPixel(J1e.top - e6D * (J1e.zoom / 2 - J1e.scroll),f1m,J1e);;}else {J1e.high=this.transformedPriceFromPixel(J1e.top - e6D * (J1e.zoom / 2 + J1e.scroll),f1m,J1e);J1e.low=this.transformedPriceFromPixel(J1e.bottom + e6D * (J1e.zoom / 2 - J1e.scroll),f1m,J1e);;}J1e.shadow=J1e.high - J1e.low;if(J1e.semiLog){J8c();}}if(J1e.goldenRatioYAxis && q00 && J1e == f1m.yAxis){e5l.a3e(40);J1e.idealTickSizePixels=e5l.B0m(O20,1.618);if(J1e.idealTickSizePixels === ("0" ^ 0)){W0D=this.getCanvasFontSize("stx_yaxis");e5l.a3e(38);J1e.idealTickSizePixels=e5l.k$A(W0D,5);}}else {if(!J1e.idealTickSizePixels){W0D=this.getCanvasFontSize("stx_yaxis");if(q00){e5l.a3e(85);J1e.idealTickSizePixels=e5l.k$A("5",W0D);}else {e5l.a3e(38);J1e.idealTickSizePixels=e5l.B0m(W0D,2);}}}w8t=Math.round(r8F / J1e.idealTickSizePixels);V8j=c4G.range?c4G.range[1] - c4G.range[0]:J1e.shadow;e5l.a3e(40);J1e.priceTick=Math.floor(e5l.k$A(V8j,w8t));I7Y=1;for(var U0U=+"0";U0U < 10;U0U++){if(J1e.priceTick > 0)break;I7Y*=10;J1e.priceTick=Math.floor(V8j / w8t * I7Y) / I7Y;}if(U0U == 10){J1e.priceTick=0.00000001;}J1e.priceTick=Math.round(V8j / w8t * I7Y) / I7Y;X4Y=Math.round(V8j / J1e.priceTick);if(c4G.range && X4Y < V8j && !J1e.noEvenDivisorTicks){while(X4Y >= 1){if(V8j % X4Y === 0)break;X4Y--;}e5l.i3C(40);J1e.priceTick=e5l.B0m(V8j,X4Y);}if(J1e.minimumPriceTick){M5q="stx_ya";M5q+="x";M5q+="is";A1h=J1e.minimumPriceTick;W0D=this.getCanvasFontSize(M5q);for(var t0o=+"0";t0o < +"100";t0o++){e5l.a3e(40);l7k=e5l.k$A(V8j,A1h);if(r8F / l7k < W0D * 2){A1h+=J1e.minimumPriceTick;}else break;}if(t0o < 100){J1e.priceTick=A1h;}}}if(J1e.priceTick <= 0 || J1e.priceTick === Infinity){J1e.priceTick=1;}J1e.multiplier=J1e.height / J1e.shadow;if(J1e.multiplier == Infinity){J1e.multiplier=0;}if(!J1e.decimalPlaces && J1e.decimalPlaces !== "0" << 32){if(q00){w4P=0;for(var g0p=0;g0p < f1m.yAxis.shadowBreaks.length;g0p++){l2O=f1m.yAxis.shadowBreaks[g0p];if(f1m.yAxis.shadow < l2O[0]){w4P=l2O[1];}}J1e.printDecimalPlaces=w4P;}else {J1e.printDecimalPlaces=null;};}else {J1e.printDecimalPlaces=J1e.decimalPlaces;}this.runAppend(h7A,arguments);};f5q.ChartEngine.prototype.drawYAxis=function(V1W,r_g){var n7$=M2dNJ;var y52,j2h,u2C,s7h,a_G,r59,t03,U7c,s6M,Q4E,l0O,j2w,g5E,w5m,G52,l8Z,g_4,C$5,o$1,w2S,z4u,n5C,K$4,O9r,C9T,y$Z,T0m,x5M,E21,a_1,s1c,g6c,Q7M,Q27,K9O,a5m,D_q,j$K,v8F,a3r,h3h,v7k,o9D,w2_,A8J,L31,g1X,I9K,k9B,T$U;y52="dra";y52+="w";y52+="YA";y52+="xis";j2h="d";n7$.E0w();j2h+="rawYAxi";j2h+="s";u2C="stx_yax";u2C+="is";if(!r_g){r_g={};}s7h=r_g.yAxis?r_g.yAxis:V1W.yAxis;if(V1W.hidden || s7h.noDraw || !s7h.width){return;}if(!f5q.Comparison || s7h.priceFormatter != f5q.Comparison.priceFormat){a_G=s7h.fractional;if(a_G){if(!s7h.originalPriceFormatter){s7h.originalPriceFormatter={func:s7h.priceFormatter};}if(!a_G.resolution){a_G.resolution=s7h.minimumPrice;}if(!a_G.formatter){a_G.formatter=3165 == 9720?383.44 != (324.19,8460)?!![]:383.27:"'";}if(!s7h.priceFormatter){s7h.priceFormatter=function(b$T,j6s,A9i){var C0Z,F8a,y0j,h57;if(!a_G){return;}C0Z="";if(A9i < 0){C0Z=(3398,5670) == (4714,489.86)?(5630,+"5020") === 1392?(1.07e+3,0x1c7e):("b",197.77):"-";A9i=Math.abs(A9i);}F8a=Math.floor(Math.round(A9i / a_G.resolution) * a_G.resolution);y0j=Math.round((A9i - F8a) / a_G.resolution);h57=Math.floor(y0j);n7$.i3C(12);var I89=n7$.B0m(13,16,10,133,5);n7$.a3e(89);var D$Y=n7$.B0m(7,18,25357,14,1690);n7$.a3e(50);var j5_=n7$.k$A(19,331,4940);n7$.i3C(112);n7$.j07();var r6N=n7$.B0m(102871,109259,17,15,7);n7$.i3C(162);var v2D=n7$.k$A(4,3,5,4);n7$.a3e(1);var h9R=n7$.B0m(18,4772);return C0Z + F8a + a_G.formatter + (h57 < I89?(D$Y,941.59) !== j5_?(425.44,"1740" ^ 0) != r6N?"0":(![],213.40):565.96:"") + h57 + (y0j - h57 >= +"0.5"?"3098" * v2D == h9R?("m",+"619.23"):"+":"");};}}else {if(s7h.originalPriceFormatter){s7h.priceFormatter=s7h.originalPriceFormatter.func;s7h.originalPriceFormatter=null;}}}r59=this.colorOrStyle(s7h.textStyle || u2C);t03=this.highlightedDraggable;U7c=0;if(t03 && this.yaxisMatches(t03,s7h)){U7c=0.15;}else if(s7h.highlight){U7c=0.1;}if(U7c){s6M=r59.constructor == String?r59:r59.color;s7h.setBackground(this,{color:s6M,opacity:U7c});}if(s7h.pretty){return this.drawYAxisPretty(V1W,r_g);}if(this.runPrepend(j2h,arguments)){return;}if(!r_g.noDraw && !s7h.noDraw){Q4E=s7h.yAxisPlotter;if(!Q4E || !r_g.noChange){l0O="s";l0O+="tx_yax";l0O+="is";j2w="lef";j2w+="t";g5E="st";g5E+="x_grid_border";w5m="str";w5m+="oke";G52="bo";G52+="rder";l8Z="g";l8Z+="ri";l8Z+="d";Q4E=s7h.yAxisPlotter=new f5q.Plotter();g_4=V1W.chart;C$5=V1W.name == g_4.name && s7h.name === V1W.yAxis.name;if(!s7h.priceTick){return;}o$1=s7h.shadow;w2S=r_g.range;if(w2S){n7$.a3e(163);var k8a=n7$.k$A(1,13,1,12);o$1=w2S[k8a] - w2S[0];}z4u=o$1 / s7h.priceTick;z4u=Math.round(z4u);if(s7h.semiLog){n5C=Math.log(this.valueFromPixel(s7h.flipped?s7h.top:s7h.bottom,V1W)) / Math.LN10;K$4=(s7h.logHigh - s7h.logLow) / z4u;}Q4E.newSeries(l8Z,"stroke",this.canvasStyle("stx_grid"));Q4E.newSeries("text","fill",r59);Q4E.newSeries(G52,w5m,this.canvasStyle(g5E));O9r=0;C9T=w2S?w2S[+"1"]:s7h.high;y$Z=w2S?w2S[0]:s7h.low;T0m=s7h.displayBorder === null?g_4.panel.yAxis.displayBorder:s7h.displayBorder;if(this.axisBorders === !"1"){T0m=!({});}if(this.axisBorders === !0){T0m=!!({});}E21=g_4.dynamicYAxis;a_1=E21?s7h.width:NaN;s1c=this.getYAxisCurrentPosition(s7h,V1W);if(s1c == j2w){x5M=s7h.left + s7h.width;}else {x5M=s7h.left;}g6c=Math.round(x5M) + 0.5;Q7M=T0m?3:0;if(s1c == "left"){Q7M=T0m?-3:+"0";}if(C$5){if(s7h.shadow < 1){n7$.a3e(164);var H5m=n7$.k$A(2,8,19,19);n7$.i3C(19);var X7G=n7$.k$A(3,5,7,6);O9r=(parseInt(y$Z / s7h.priceTick,H5m) + X7G) * s7h.priceTick - y$Z;}else {O9r=s7h.priceTick - Math.round(y$Z % s7h.priceTick * V1W.chart.roundit) / V1W.chart.roundit;}}else {O9r=C9T % s7h.priceTick;}Q27=this.getCanvasFontSize(l0O);for(var P5M=0;P5M < z4u;P5M++){K9O="tex";K9O+="t";if(s7h.semiLog){n7$.a3e(145);D_q=n7$.B0m(n5C,K$4,P5M);a5m=Math.pow(10,D_q);}else {if(C$5){a5m=y$Z + P5M * s7h.priceTick + O9r;}else {a5m=C9T - P5M * s7h.priceTick - O9r;}}j$K=this.pixelFromTransformedValue(a5m,V1W,s7h);v8F=Math.round(j$K) + ("0.5" - 0);if(v8F + Q27 / 2 > V1W.bottom)continue;if(v8F - Q27 / +"2" < V1W.top)continue;if(Math.abs(v8F - s7h.bottom) < "1" << 64)continue;if(s7h.flipped){v8F=s7h.top + s7h.bottom - v8F;}if(s7h.displayGridLines){Q4E.moveTo("grid",V1W.left + +"1",v8F);Q4E.lineTo("grid",V1W.right - 1,v8F);}if(T0m){n7$.a3e(1);Q4E.moveTo("border",n7$.k$A(0.5,g6c),v8F);n7$.i3C(4);Q4E.lineTo("border",n7$.B0m(Q7M,g6c),v8F);}if(s7h.priceFormatter){a5m=s7h.priceFormatter(this,V1W,a5m);}else {a5m=this.formatYAxisPrice(a5m,V1W,null,s7h);}a3r=s7h.textBackground?this.containerColor:null;h3h=3;n7$.i3C(50);v7k=n7$.k$A(Q7M,x5M,h3h);if(s1c == "left"){v7k=s7h.left + h3h;if(s7h.justifyRight !== !"1"){v7k=s7h.left + s7h.width + Q7M - h3h;}}else {if(s7h.justifyRight){v7k=x5M + s7h.width;}}Q4E.addText(K9O,a5m,v7k,v8F,a3r,null,Q27);if(E21){a_1=Math.max(a_1,g_4.context.measureText(a5m).width + Math.abs(Q7M) + h3h);}}if(T0m){o9D="bord";o9D+="er";w2_="bor";w2_+="d";w2_+="er";A8J="b";A8J+="o";A8J+="rde";A8J+="r";L31=Math.round(s7h.bottom) + 0.5;Q4E.moveTo(A8J,g6c,s7h.top);Q4E.lineTo(w2_,g6c,L31);Q4E.draw(this.getBackgroundCanvas(g_4).context,o9D);}if(E21 && a_1 > s7h.width){g1X="rebo";g1X+="ot ";g1X+="draw";s7h._dynamicWidth=a_1;this.calculateYAxisPositions();throw new Error(g1X);}else if(!E21 && s7h._dynamicWidth){this.resetDynamicYAxis({chartName:g_4.name});I9K=1359789111;k9B=771400587;T$U=2;for(var m1o=+"1";n7$.b3_(m1o.toString(),m1o.toString().length,67405) !== I9K;m1o++){throw new Error("");n7$.a3e(14);T$U+=n7$.k$A(0,"2");}if(n7$.m7$(T$U.toString(),T$U.toString().length,19707) !== k9B){throw new Error("reboot draw");}}}if(s7h == V1W.yAxis){this.plotYAxisGrid(V1W);}}this.runAppend(y52,arguments);};f5q.ChartEngine.prototype.drawYAxisPretty=function(P8b,d9N){var A7Y=M2dNJ;var g1S,a5k,X0o,Y5M,t7e,D_h,s9H,M4E,R7H,m3N,G3i,G0A,z1n,W2O,W6v,n3B,e$X,l5Y,T2T,r9_,B2g,f4K,c7C,b$d,U$n,M3A,P2b,E5v,X$z,e6m,i1T,F1a,q8q,h5p,k1O,g_n,N5a,U1F,R6d,m8_,Z15,w4H,k$S,f0J,P8$,N_p,D2k;if(this.runPrepend("drawYAxis",arguments)){return;}if(!d9N){d9N={};}g1S=d9N.yAxis?d9N.yAxis:P8b.yAxis;if(P8b.hidden || g1S.noDraw || !g1S.width){return;}if(!d9N.noDraw){a5k=g1S.yAxisPlotter;if(!a5k || !d9N.noChange){X0o="stx_gr";X0o+="id_border";Y5M="b";Y5M+="order";t7e="tex";t7e+="t";a5k=g1S.yAxisPlotter=new f5q.Plotter();D_h=P8b.chart;if(!g1S.priceTick){return;}if(isNaN(g1S.high) || isNaN(g1S.low)){return;}s9H=g1S.shadow;if(d9N.range){A7Y.i3C(165);var P10=A7Y.B0m(1,7,35,10);A7Y.i3C(1);var K$U=A7Y.B0m(15,79);s9H=d9N.range[P10] - d9N.range["0" >> K$U];}M4E=g1S.height / g1S.idealTickSizePixels;M4E=Math.round(M4E);R7H=g1S.textStyle || "stx_yaxis";a5k.newSeries("grid","stroke",this.canvasStyle("stx_grid"));a5k.newSeries(t7e,"fill",this.colorOrStyle(R7H));a5k.newSeries(Y5M,"stroke",this.canvasStyle(X0o));m3N=d9N.range;G3i=m3N?m3N[1]:g1S.high;G0A=m3N?m3N[0]:g1S.low;z1n=g1S.displayBorder === null?D_h.panel.yAxis.displayBorder:g1S.displayBorder;if(this.axisBorders === !"1"){z1n=!({});}if(this.axisBorders === !!({})){z1n=!!({});}W6v=D_h.dynamicYAxis;n3B=W6v?g1S.width:NaN;e$X=this.getYAxisCurrentPosition(g1S,P8b);if(e$X == "left"){W2O=g1S.left + g1S.width;}else {W2O=g1S.left;}l5Y=Math.round(W2O) + 0.5;T2T=z1n?3:"0" | 0;if(e$X == "left"){T2T=z1n?-3:0;}r9_=this.getCanvasFontSize("stx_yaxis");B2g=g1S.increments;f4K=B2g.length;c7C=0;A7Y.i3C(14);b$d=A7Y.k$A(1,"1");U$n=0;A7Y.i3C(14);M3A=A7Y.k$A(0,"0");P2b=0;E5v=Number.MAX_VALUE;for(var N9Y=0;N9Y < 100;N9Y++){A7Y.i3C(1);var P5L=A7Y.k$A(140,150);U$n=B2g[c7C] * Math.pow(P5L,P2b);A7Y.a3e(40);b$d=Math.floor(A7Y.k$A(s9H,U$n));A7Y.a3e(1);X$z=Math.abs(A7Y.k$A(b$d,M4E));if(X$z > E5v){break;}else {E5v=X$z;}if(b$d == M4E){M3A=U$n;break;}else if(b$d > M4E){c7C++;if(c7C >= f4K){c7C=0;P2b++;}}else {c7C--;if(c7C < 0){A7Y.a3e(1);c7C=A7Y.B0m(1,f4K);P2b--;}}M3A=U$n;}e6m=Math.ceil(G0A / M3A) * M3A;i1T=g1S.bottom - this.pixelFromTransformedValue(e6m,P8b,g1S);F1a=0;if(i1T > g1S.idealTickSizePixels && g1S.semiLog && g1S.prettySemiLog){q8q=Math.ceil(G0A);h5p=0;while(e6m - q8q >= +"10000" && h5p <= 15){e6m/=10;q8q/=+"10";h5p++;}e6m=Math.ceil(e6m);q8q=Math.ceil(q8q);for(q8q;q8q < e6m && e6m % q8q !== 0;++q8q){;}e6m*=Math.pow(10,h5p);q8q*=Math.pow(10,h5p);if(q8q < e6m){if(e6m === M3A){M3A=q8q;F1a=q8q;}e6m=q8q;}}if(g1S.height > g1S.zoom){k1O="stx_";k1O+="y";k1O+="a";k1O+="xis";g_n=+"0";N5a=Number.MAX_VALUE;D_h.context.save();this.canvasFont(k1O,D_h.context);for(var L1_=0;L1_ < 100;L1_++){A7Y.i3C(145);U1F=A7Y.B0m(e6m,M3A,g_n);if(U1F > G3i)break;M3A+=F1a;g_n++;R6d=this.pixelFromTransformedValue(U1F,P8b,g1S);if(N5a - R6d < r9_ + 1 && F1a > ("0" ^ 0)){L1_=g_n=0;N5a=Number.MAX_VALUE;M3A=F1a;F1a*=2;a5k.reset();continue;}N5a=R6d;m8_=Math.round(R6d) + 0.5;if(m8_ + r9_ / 2 > P8b.bottom)continue;if(m8_ - r9_ / 2 < P8b.top)continue;if(Math.abs(m8_ - g1S.bottom) < 1)continue;if(g1S.displayGridLines){a5k.moveTo("grid",P8b.left + +"1",m8_);a5k.lineTo("grid",P8b.right - 1,m8_);}if(z1n){A7Y.i3C(1);a5k.moveTo("border",A7Y.k$A(0.5,l5Y),m8_);A7Y.a3e(4);a5k.lineTo("border",A7Y.B0m(T2T,l5Y),m8_);}if(g1S.priceFormatter){U1F=g1S.priceFormatter(this,P8b,U1F);}else {U1F=this.formatYAxisPrice(U1F,P8b,null,g1S);}Z15=g1S.textBackground?this.containerColor:null;w4H=3;A7Y.i3C(50);k$S=A7Y.k$A(T2T,W2O,w4H);if(e$X == "left"){A7Y.a3e(25);var a09=A7Y.B0m(7,19,130);k$S=g1S.left + a09;if(g1S.justifyRight !== !1){k$S=g1S.left + g1S.width + T2T - w4H;}}else {if(g1S.justifyRight){k$S=W2O + g1S.width;}}a5k.addText("text",U1F,k$S,m8_,Z15,null,r9_);if(W6v){A7Y.a3e(4);f0J=A7Y.k$A("\xA0",U1F);n3B=Math.max(n3B,D_h.context.measureText(f0J).width + Math.abs(T2T) + w4H);}}D_h.context.restore();if(L1_ >= 100){P8$="drawYAxisPretty";P8$+=": assertion error. zz reached 100";console.log(P8$);}}if(z1n){N_p=Math.round(g1S.bottom) + +"0.5";a5k.moveTo("border",l5Y,g1S.top);a5k.lineTo("border",l5Y,N_p);a5k.draw(this.getBackgroundCanvas(D_h).context,"border");}if(W6v && n3B > g1S.width){g1S._dynamicWidth=n3B;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!W6v && g1S._dynamicWidth){D2k="r";D2k+="eboot";D2k+=" ";D2k+="draw";this.resetDynamicYAxis({chartName:D_h.name});throw new Error(D2k);}}if(g1S == P8b.yAxis){this.plotYAxisGrid(P8b);}}this.runAppend("drawYAxis",arguments);};};B={};k(B);N(B);M2dNJ.E0w();u(B);X(B);S(B);P(B);Q(B);V(B);M(B);T(B);R(B);W(B);Y(B);L(B);E(B);K(B);A(B);G(B);O(B);H(B);G6(B);k$(B);w6(B);K_(B);D5(B);S8(B);V4(B);U$(B);v8(B);Z0(B);d7(B);U8(B);Z9(B);v5(B);I3(B);j0(B);n2(B);var {CIQ:b$, SplinePlotter:E6, timezoneJS:e4, $$:K$, $$$:Q7}=B;export {b$ as CIQ, E6 as SplinePlotter, e4 as timezoneJS, K$ as $$, Q7 as $$$};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */
+x2dci[370258]=(function(){var Y=2;for(;Y !== 9;){switch(Y){case 2:Y=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var L;Y=4;break;case 4:try{var X=2;for(;X !== 6;){switch(X){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4c\u006c\u0036\u0052\x39',{'\x67\x65\x74':function(){var V=2;for(;V !== 1;){switch(V){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});L=Ll6R9;X=5;break;case 5:L['\x42\u0042\u004f\x38\x38']=L;X=4;break;case 4:X=typeof BBO88 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";X=9;break;case 9:delete L['\x42\x42\u004f\u0038\x38'];var H=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete H['\x4c\x6c\u0036\x52\u0039'];X=6;break;}}}catch(k){L=window;}return L;break;}}})();u$FZV3(x2dci[370258]);x2dci[150014]=(function(L2m){var u5x=2;for(;u5x !== 10;){switch(u5x){case 11:return {R3ta_F9:function(d9p){var L58=2;for(;L58 !== 6;){switch(L58){case 5:L58=!d8I--?4:3;break;case 3:L58=!d8I--?9:8;break;case 2:var y2_=new Q3K[L2m[0]]()[L2m[1]]();L58=1;break;case 9:A6C=y2_ + 60000;L58=8;break;case 7:return R_9?S6O:!S6O;break;case 1:L58=y2_ > A6C?5:8;break;case 8:var R_9=(function(i04,j6H){var O1a=2;for(;O1a !== 10;){switch(O1a){case 9:O1a=o5N < i04[j6H[5]]?8:11;break;case 3:var Z5m,o5N=0;O1a=9;break;case 8:var Z2j=Q3K[j6H[4]](i04[j6H[2]](o5N),16)[j6H[3]](2);var P5J=Z2j[j6H[2]](Z2j[j6H[5]] - 1);O1a=6;break;case 13:o5N++;O1a=9;break;case 4:j6H=L2m;O1a=3;break;case 11:return Z5m;break;case 12:Z5m=Z5m ^ P5J;O1a=13;break;case 5:O1a=typeof j6H === 'undefined' && typeof L2m !== 'undefined'?4:3;break;case 6:O1a=o5N === 0?14:12;break;case 14:Z5m=P5J;O1a=13;break;case 1:i04=d9p;O1a=5;break;case 2:O1a=typeof i04 === 'undefined' && typeof d9p !== 'undefined'?1:5;break;}}})(undefined,undefined);L58=7;break;case 4:S6O=Y7T(y2_);L58=3;break;}}}};break;case 2:var Q3K,E$2,Z9n,d8I;u5x=1;break;case 4:var s0R='fromCharCode',u9z='RegExp';u5x=3;break;case 5:Q3K=x2dci[370258];u5x=4;break;case 13:u5x=!d8I--?12:11;break;case 12:var S6O,A6C=0;u5x=11;break;case 8:u5x=!d8I--?7:6;break;case 7:Z9n=E$2.T3NZuy(new Q3K[u9z]("^['-|]"),'S');u5x=6;break;case 6:u5x=!d8I--?14:13;break;case 14:L2m=L2m.Y8FL1O(function(z6x){var d8M=2;for(;d8M !== 13;){switch(d8M){case 8:v$y++;d8M=3;break;case 14:return a6L;break;case 7:d8M=!a6L?6:14;break;case 2:var a6L;d8M=1;break;case 4:var v$y=0;d8M=3;break;case 6:return;break;case 9:a6L+=Q3K[Z9n][s0R](z6x[v$y] + 93);d8M=8;break;case 1:d8M=!d8I--?5:4;break;case 3:d8M=v$y < z6x.length?9:7;break;case 5:a6L='';d8M=4;break;}}});u5x=13;break;case 1:u5x=!d8I--?5:4;break;case 9:E$2=typeof s0R;u5x=8;break;case 3:u5x=!d8I--?9:8;break;}}function Y7T(B8u){var g4H=2;for(;g4H !== 15;){switch(g4H){case 3:a3Y=27;g4H=9;break;case 20:X2g=B8u - A4$ > a3Y && S7e - B8u > a3Y;g4H=19;break;case 8:l7B=L2m[6];g4H=7;break;case 13:e9t=L2m[7];g4H=12;break;case 4:g4H=!d8I--?3:9;break;case 10:g4H=A4$ >= 0 && S7e >= 0?20:18;break;case 17:X2g=B8u - A4$ > a3Y;g4H=19;break;case 5:m6J=Q3K[L2m[4]];g4H=4;break;case 16:X2g=S7e - B8u > a3Y;g4H=19;break;case 19:return X2g;break;case 12:g4H=!d8I--?11:10;break;case 11:A4$=(e9t || e9t === 0) && m6J(e9t,a3Y);g4H=10;break;case 6:S7e=l7B && m6J(l7B,a3Y);g4H=14;break;case 7:g4H=!d8I--?6:14;break;case 14:g4H=!d8I--?13:12;break;case 1:g4H=!d8I--?5:4;break;case 2:var X2g,a3Y,l7B,S7e,e9t,A4$,m6J;g4H=1;break;case 18:g4H=A4$ >= 0?17:16;break;case 9:g4H=!d8I--?8:7;break;}}}})([[-25,4,23,8],[10,8,23,-9,12,16,8],[6,11,4,21,-28,23],[23,18,-10,23,21,12,17,10],[19,4,21,22,8,-20,17,23],[15,8,17,10,23,11],[-39,-44,18,6,19,17,8,7,-45],[]]);x2dci.h$V=function(){return typeof x2dci[539515].x96qQgs === 'function'?x2dci[539515].x96qQgs.apply(x2dci[539515],arguments):x2dci[539515].x96qQgs;};x2dci[238553]=(function(){var I$t=2;for(;I$t !== 9;){switch(I$t){case 2:var O2$=[arguments];O2$[2]=undefined;O2$[8]={};O2$[8].i9agN$W=function(){var h24=2;for(;h24 !== 90;){switch(h24){case 4:q4U[9]=[];q4U[3]={};q4U[3].E$t=['G$p'];h24=8;break;case 70:q4U[73]++;h24=57;break;case 53:q4U[9].I5beBg(q4U[68]);q4U[9].I5beBg(q4U[4]);q4U[9].I5beBg(q4U[53]);q4U[9].I5beBg(q4U[75]);h24=49;break;case 57:h24=q4U[73] < q4U[9].length?56:69;break;case 30:q4U[83]={};h24=29;break;case 38:q4U[57].E$t=['G$p'];q4U[57].v3c=function(){var L0m=function(){return String.fromCharCode(0x61);};var r3Z=!(/\060\x78\u0036\x31/).S$ysjf(L0m + []);return r3Z;};q4U[18]=q4U[57];q4U[9].I5beBg(q4U[97]);h24=53;break;case 68:h24=41?68:67;break;case 59:q4U[16]='t93';h24=58;break;case 58:q4U[73]=0;h24=57;break;case 75:q4U[49]={};q4U[49][q4U[16]]=q4U[28][q4U[48]][q4U[52]];q4U[49][q4U[61]]=q4U[10];h24=72;break;case 72:q4U[37].I5beBg(q4U[49]);h24=71;break;case 49:q4U[9].I5beBg(q4U[6]);q4U[9].I5beBg(q4U[8]);q4U[9].I5beBg(q4U[2]);h24=46;break;case 71:q4U[52]++;h24=76;break;case 46:q4U[9].I5beBg(q4U[18]);q4U[9].I5beBg(q4U[29]);h24=65;break;case 5:return 41;break;case 69:h24=(function(G7b){var c$3=2;for(;c$3 !== 22;){switch(c$3){case 11:D1D[9][D1D[5][q4U[16]]].t+=true;c$3=10;break;case 8:D1D[6]=0;c$3=7;break;case 6:D1D[5]=D1D[0][0][D1D[6]];c$3=14;break;case 26:c$3=D1D[7] >= 0.5?25:24;break;case 14:c$3=typeof D1D[9][D1D[5][q4U[16]]] === 'undefined'?13:11;break;case 15:D1D[4]=D1D[2][D1D[6]];D1D[7]=D1D[9][D1D[4]].h / D1D[9][D1D[4]].t;c$3=26;break;case 17:D1D[6]=0;c$3=16;break;case 10:c$3=D1D[5][q4U[61]] === q4U[80]?20:19;break;case 19:D1D[6]++;c$3=7;break;case 4:D1D[9]={};D1D[2]=[];D1D[6]=0;c$3=8;break;case 18:D1D[8]=false;c$3=17;break;case 2:var D1D=[arguments];c$3=1;break;case 1:c$3=D1D[0][0].length === 0?5:4;break;case 23:return D1D[8];break;case 20:D1D[9][D1D[5][q4U[16]]].h+=true;c$3=19;break;case 5:return;break;case 16:c$3=D1D[6] < D1D[2].length?15:23;break;case 24:D1D[6]++;c$3=16;break;case 12:D1D[2].I5beBg(D1D[5][q4U[16]]);c$3=11;break;case 7:c$3=D1D[6] < D1D[0][0].length?6:18;break;case 13:D1D[9][D1D[5][q4U[16]]]=(function(){var J$8=2;for(;J$8 !== 9;){switch(J$8){case 2:var y92=[arguments];y92[7]={};J$8=5;break;case 5:y92[7].h=0;y92[7].t=0;return y92[7];break;}}}).P8x2af(this,arguments);c$3=12;break;case 25:D1D[8]=true;c$3=24;break;}}})(q4U[37])?68:67;break;case 42:q4U[85].E$t=['G$p'];q4U[85].v3c=function(){var p0u=function(){return btoa('=');};var Y9_=!(/\142\x74\x6f\u0061/).S$ysjf(p0u + []);return Y9_;};q4U[29]=q4U[85];q4U[57]={};h24=38;break;case 1:h24=O2$[2]?5:4;break;case 56:q4U[28]=q4U[9][q4U[73]];try{q4U[10]=q4U[28][q4U[20]]()?q4U[80]:q4U[60];}catch(V7P){q4U[10]=q4U[60];}h24=77;break;case 65:q4U[37]=[];q4U[80]='N7n';q4U[60]='C2f';q4U[48]='E$t';q4U[61]='g5n';q4U[20]='v3c';h24=59;break;case 13:q4U[5].v3c=function(){var Z18=function(){return ('a|a').split('|');};var o89=!(/\174/).S$ysjf(Z18 + []);return o89;};q4U[4]=q4U[5];h24=11;break;case 8:q4U[3].v3c=function(){var Q5m=function(){return ('aaaa').padEnd(5,'a');};var a9A=(/\x61\x61\141\u0061\x61/).S$ysjf(Q5m + []);return a9A;};q4U[6]=q4U[3];q4U[5]={};q4U[5].E$t=['G$p'];h24=13;break;case 2:var q4U=[arguments];h24=1;break;case 11:q4U[7]={};q4U[7].E$t=['c53'];q4U[7].v3c=function(){var Z6N=typeof S0XDzw === 'function';return Z6N;};h24=19;break;case 35:q4U[97]=q4U[36];q4U[70]={};q4U[70].E$t=['c53'];q4U[70].v3c=function(){var R94=typeof R82foz === 'function';return R94;};q4U[75]=q4U[70];h24=30;break;case 76:h24=q4U[52] < q4U[28][q4U[48]].length?75:70;break;case 24:q4U[68]=q4U[13];q4U[36]={};q4U[36].E$t=['c53'];q4U[36].v3c=function(){var h6Z=typeof O_Xnak === 'function';return h6Z;};h24=35;break;case 15:q4U[8]=q4U[1];q4U[13]={};q4U[13].E$t=['c53'];q4U[13].v3c=function(){var W5m=false;var t7u=[];try{for(var Q9T in console){t7u.I5beBg(Q9T);}W5m=t7u.length === 0;}catch(g0$){}var v6b=W5m;return v6b;};h24=24;break;case 67:O2$[2]=64;return 68;break;case 29:q4U[83].E$t=['G$p'];q4U[83].v3c=function(){var t1h=function(){var s$W=function(X0Q){for(var W2d=0;W2d < 20;W2d++){X0Q+=W2d;}return X0Q;};s$W(2);};var X0R=(/\x31\x39\x32/).S$ysjf(t1h + []);return X0R;};q4U[53]=q4U[83];q4U[85]={};h24=42;break;case 19:q4U[2]=q4U[7];q4U[1]={};q4U[1].E$t=['G$p'];q4U[1].v3c=function(){var f5K=function(){return ['a','a'].join();};var v8Q=!(/(\x5b|\u005d)/).S$ysjf(f5K + []);return v8Q;};h24=15;break;case 77:q4U[52]=0;h24=76;break;}}};return O2$[8];break;}}})();x2dci.E2w=function(){return typeof x2dci[539515].q7DznqI === 'function'?x2dci[539515].q7DznqI.apply(x2dci[539515],arguments):x2dci[539515].q7DznqI;};x2dci.Y$r=function(){return typeof x2dci[150014].R3ta_F9 === 'function'?x2dci[150014].R3ta_F9.apply(x2dci[150014],arguments):x2dci[150014].R3ta_F9;};x2dci[156040]=x2dci[593596];x2dci.c6Y=function(){return typeof x2dci[593596].N$y1PkD === 'function'?x2dci[593596].N$y1PkD.apply(x2dci[593596],arguments):x2dci[593596].N$y1PkD;};x2dci[593596]=(function(F_h){return {N$y1PkD:function(){var l5l,a3p=arguments;switch(F_h){case 167:l5l=(a3p[3] + a3p[4]) * a3p[0] - a3p[1] - a3p[2];break;case 144:l5l=(-a3p[3] - a3p[2]) * a3p[1] + a3p[0] + a3p[4];break;case 65:l5l=(a3p[3] + a3p[2]) / a3p[1] - a3p[0];break;case 58:l5l=a3p[3] / a3p[2] + a3p[4] - a3p[1] - a3p[0];break;case 57:l5l=a3p[0] / a3p[2] - a3p[1] + a3p[3] - a3p[4];break;case 64:l5l=a3p[0] / a3p[3] / a3p[2] + a3p[1];break;case 155:l5l=a3p[3] / a3p[4] * a3p[0] * a3p[1] - a3p[2];break;case 86:l5l=(a3p[1] + a3p[3] - a3p[0]) / a3p[4] + a3p[2];break;case 15:l5l=-a3p[1] * a3p[3] * a3p[0] + a3p[2];break;case 163:l5l=a3p[1] / a3p[2] / a3p[0] * a3p[4] + a3p[3];break;case 46:l5l=a3p[0] << a3p[1];break;case 145:l5l=(a3p[2] >> a3p[0]) - a3p[1];break;case 110:l5l=(a3p[0] - a3p[4]) / a3p[2] + a3p[1] + a3p[3];break;case 3:l5l=a3p[3] + a3p[2] + a3p[1] - a3p[0];break;case 55:l5l=(a3p[0] / a3p[4] - a3p[1]) / a3p[3] + a3p[2];break;case 17:l5l=(a3p[2] - a3p[3]) / a3p[4] / a3p[0] + a3p[1];break;case 71:l5l=a3p[0] + a3p[7] + a3p[2] + a3p[6] + a3p[3] + a3p[5] + a3p[8] + a3p[1] + a3p[4];break;case 171:l5l=a3p[4] * a3p[3] - a3p[1] + a3p[0] - a3p[2];break;case 134:l5l=-a3p[2] * a3p[1] + a3p[0];break;case 48:l5l=a3p[3] + (a3p[6] - a3p[1]) * (a3p[5] / a3p[2] - a3p[4]) * a3p[0];break;case 51:l5l=a3p[3] - a3p[1] / (a3p[0] * a3p[2]);break;case 151:l5l=a3p[1] + a3p[3] / a3p[0] * a3p[2];break;case 106:l5l=a3p[0] == a3p[1];break;case 84:l5l=a3p[1] * a3p[3] - a3p[2] - a3p[0];break;case 80:l5l=a3p[2] + a3p[4] + a3p[1] + a3p[3] + a3p[0];break;case 30:l5l=a3p[1] - a3p[0] - a3p[2];break;case 104:l5l=a3p[0] !== a3p[1];break;case 32:l5l=(a3p[2] * a3p[1] - a3p[4]) * a3p[0] - a3p[3];break;case 6:l5l=a3p[0] - a3p[1] - a3p[2] + a3p[3] + a3p[4];break;case 79:l5l=a3p[3] + a3p[2] - a3p[1] - a3p[0];break;case 12:l5l=(a3p[4] - a3p[3] + a3p[0]) / a3p[1] - a3p[2];break;case 50:l5l=a3p[3] + a3p[1] / (a3p[2] ^ a3p[0]);break;case 35:l5l=a3p[4] * a3p[2] * a3p[1] - a3p[3] - a3p[0];break;case 89:l5l=(a3p[3] - a3p[2]) / a3p[0] - a3p[1];break;case 63:l5l=(a3p[4] - a3p[1]) / a3p[0] - a3p[2] + a3p[3];break;case 117:l5l=(a3p[1] - a3p[0]) * a3p[4] - a3p[2] - a3p[3];break;case 159:l5l=(-a3p[1] + a3p[4]) / a3p[3] + a3p[2] - a3p[0];break;case 5:l5l=a3p[2] - a3p[1] + a3p[4] + a3p[0] - a3p[3];break;case 67:l5l=a3p[0] / a3p[2] + a3p[1];break;case 146:l5l=a3p[0] * -a3p[1];break;case 78:l5l=a3p[2] - a3p[3] + a3p[1] - a3p[0];break;case 109:l5l=a3p[4] * a3p[2] - a3p[0] - a3p[3] + a3p[1];break;case 158:l5l=-a3p[1] * a3p[3] / a3p[2] - a3p[4] + a3p[0];break;case 45:l5l=(a3p[1] - a3p[3]) / a3p[4] + (a3p[0] | a3p[2]);break;case 118:l5l=(a3p[3] - a3p[2] - a3p[1]) * a3p[0] - a3p[4];break;case 85:l5l=a3p[0] + a3p[1] - a3p[3] - a3p[2] + a3p[4];break;case 9:l5l=a3p[0] * a3p[4] * a3p[2] + a3p[3] - a3p[1];break;case 99:l5l=a3p[1] / a3p[4] * a3p[3] * a3p[0] + a3p[2];break;case 108:l5l=(a3p[3] - a3p[0]) * a3p[1] + a3p[2] - a3p[4];break;case 29:l5l=(-a3p[0] - a3p[1]) * a3p[2] + a3p[3];break;case 18:l5l=-a3p[0] * a3p[3] / a3p[1] + a3p[2];break;case 41:l5l=a3p[1] * (a3p[3] - a3p[0] / (a3p[2] - a3p[4]));break;case 112:l5l=a3p[3] / a3p[2] + a3p[0] + a3p[1];break;case 115:l5l=a3p[1] / a3p[3] / a3p[2] - a3p[0] + a3p[4];break;case 150:l5l=a3p[2] + (a3p[1] + a3p[3] * a3p[0]);break;case 26:l5l=-a3p[1] + a3p[2] + a3p[0];break;case 111:l5l=a3p[1] - a3p[0] - a3p[3] + a3p[2];break;case 129:l5l=a3p[0] === a3p[1];break;case 4:l5l=(-a3p[0] - a3p[2]) / a3p[3] * a3p[4] + a3p[1];break;case 139:l5l=a3p[1] + a3p[2] / a3p[0];break;case 7:l5l=a3p[1] - a3p[0] + a3p[2];break;case 73:l5l=a3p[1] * a3p[2] * a3p[0] * a3p[3];break;case 120:l5l=a3p[3] / a3p[0] - a3p[1] + a3p[2];break;case 114:l5l=a3p[4] * a3p[3] * a3p[2] / a3p[0] + a3p[1];break;case 0:l5l=a3p[0] - a3p[1];break;case 68:l5l=a3p[2] * a3p[1] - a3p[0];break;case 34:l5l=a3p[0] / a3p[2] * a3p[3] - a3p[1];break;case 42:l5l=(a3p[0] - a3p[1]) / a3p[2];break;case 169:l5l=-a3p[0] / a3p[1] - a3p[2] + a3p[3];break;case 49:l5l=+a3p[2] * a3p[0] - a3p[1];break;case 160:l5l=a3p[1] != a3p[0];break;case 82:l5l=(-a3p[3] * a3p[1] + a3p[2]) / a3p[4] + a3p[0];break;case 52:l5l=a3p[1] * (a3p[0] >> a3p[2]);break;case 21:l5l=a3p[0] * -+a3p[1];break;case 11:l5l=(-a3p[0] - a3p[3]) / a3p[1] + a3p[2];break;case 132:l5l=(a3p[2] - a3p[1]) / (a3p[0] - a3p[3]);break;case 147:l5l=a3p[0] + a3p[1] * a3p[2];break;case 83:l5l=a3p[0] < a3p[1] * a3p[2];break;case 22:l5l=a3p[1] + a3p[0];break;case 28:l5l=a3p[1] / +a3p[0];break;case 13:l5l=(a3p[4] + a3p[0]) / a3p[3] - a3p[1] + a3p[2];break;case 100:l5l=-a3p[4] / (a3p[2] << a3p[7]) * (a3p[1] * (a3p[0] - a3p[6]) - +a3p[5]) + a3p[3];break;case 172:l5l=-a3p[3] * a3p[0] + a3p[1] + a3p[2];break;case 25:l5l=a3p[0] + a3p[2] - a3p[1];break;case 133:l5l=a3p[2] * (a3p[3] - a3p[0]) + a3p[1];break;case 53:l5l=a3p[0] + a3p[1] + a3p[2];break;case 141:l5l=a3p[2] / a3p[4] - a3p[0] + a3p[3] + a3p[1];break;case 113:l5l=(a3p[1] / a3p[3] - a3p[4]) * a3p[0] - a3p[2];break;case 72:l5l=a3p[9] + a3p[10] + a3p[8] + a3p[2] + a3p[0] + a3p[3] + a3p[5] + a3p[1] + a3p[4] + a3p[6] + a3p[7];break;case 116:l5l=(a3p[2] + a3p[3]) / a3p[0] * a3p[4] - a3p[1];break;case 16:l5l=(a3p[1] + a3p[0]) * a3p[2] - a3p[3];break;case 127:l5l=(-a3p[4] + a3p[3] - a3p[1]) / a3p[0] + a3p[2];break;case 101:l5l=a3p[5] / (a3p[2] | a3p[4]) * a3p[1] * a3p[3] * a3p[6] + a3p[0];break;case 81:l5l=a3p[1] * a3p[0] * a3p[2] - a3p[3];break;case 36:l5l=a3p[2] * a3p[1] / a3p[3] + a3p[0];break;case 93:l5l=-a3p[1] + a3p[2] - a3p[0];break;case 119:l5l=(a3p[3] + a3p[1] + a3p[2]) / a3p[4] + a3p[0];break;case 103:l5l=a3p[1] * (a3p[2] * a3p[4] * a3p[5] + a3p[0]) + a3p[3];break;case 102:l5l=a3p[1] / (a3p[4] - a3p[6]) * (a3p[0] * a3p[7] * a3p[2] + a3p[3]) + a3p[5];break;case 20:l5l=a3p[0] ^ a3p[1];break;case 121:l5l=(a3p[1] - a3p[4]) * a3p[0] * a3p[3] - a3p[2];break;case 90:l5l=a3p[2] * a3p[0] / a3p[3] + a3p[4] + a3p[1];break;case 96:l5l=(a3p[3] - a3p[4]) / a3p[0] + a3p[1] - a3p[2];break;case 152:l5l=a3p[0] > a3p[1];break;case 76:l5l=(a3p[0] + a3p[3]) / a3p[1] + a3p[2];break;case 62:l5l=a3p[4] / a3p[3] * a3p[0] + a3p[2] - a3p[1];break;case 38:l5l=a3p[0] * a3p[1];break;case 137:l5l=(-a3p[2] + a3p[3]) * a3p[0] + a3p[1];break;case 135:l5l=-a3p[2] - a3p[3] - a3p[4] - a3p[0] + a3p[1];break;case 94:l5l=(a3p[4] * a3p[1] - a3p[2]) / a3p[3] + a3p[0];break;case 54:l5l=a3p[0] * a3p[1] - a3p[2] + a3p[3];break;case 128:l5l=(a3p[2] * a3p[0] + a3p[3]) / a3p[4] - a3p[1];break;case 165:l5l=a3p[1] / a3p[0] * a3p[2];break;case 170:l5l=a3p[1] * (a3p[2] << a3p[0]);break;case 24:l5l=a3p[1] + +a3p[0];break;case 77:l5l=a3p[3] * a3p[2] + a3p[1] - a3p[0];break;case 122:l5l=(-a3p[2] / a3p[3] - a3p[4]) * a3p[1] + a3p[0];break;case 143:l5l=a3p[1] * a3p[0] / a3p[2] + a3p[4] - a3p[3];break;case 69:l5l=a3p[2] / a3p[0] + a3p[3] - a3p[1];break;case 88:l5l=(a3p[2] - a3p[1]) / a3p[4] * a3p[0] - a3p[3];break;case 23:l5l=(a3p[3] - a3p[2]) * (a3p[0] - a3p[5]) / (a3p[4] - a3p[1]);break;case 124:l5l=a3p[0] + a3p[2] - a3p[3] + a3p[1];break;case 37:l5l=a3p[3] + a3p[1] - a3p[2] + a3p[0] - a3p[4];break;case 123:l5l=a3p[4] + a3p[2] - a3p[1] + a3p[3] + a3p[0];break;case 164:l5l=a3p[3] * a3p[4] * a3p[0] * +a3p[1] * a3p[2];break;case 138:l5l=(a3p[0] - a3p[4] - a3p[1]) / a3p[3] + a3p[2];break;case 98:l5l=a3p[0] - +a3p[1];break;case 107:l5l=a3p[1] + a3p[2] * (a3p[0] - a3p[3]);break;case 154:l5l=-a3p[2] / a3p[0] * a3p[3] + a3p[1];break;case 153:l5l=a3p[3] + a3p[2] - a3p[4] - a3p[0] - a3p[1];break;case 148:l5l=(a3p[2] * a3p[4] - a3p[0]) / a3p[1] - a3p[3];break;case 75:l5l=(a3p[2] + a3p[3] + a3p[4]) * a3p[0] - a3p[1];break;case 60:l5l=(a3p[0] - a3p[4]) * a3p[3] / a3p[1] + a3p[2];break;case 33:l5l=a3p[0] / a3p[3] / a3p[1] + a3p[4] + a3p[2];break;case 95:l5l=a3p[4] * a3p[2] - a3p[3] - a3p[1] - a3p[0];break;case 149:l5l=a3p[3] - a3p[1] / +a3p[2] + (a3p[0] - a3p[4]);break;case 19:l5l=a3p[1] >> a3p[0];break;case 126:l5l=a3p[3] + a3p[2] + a3p[1] + a3p[0];break;case 59:l5l=(a3p[2] - a3p[1]) * a3p[3] - a3p[0];break;case 161:l5l=a3p[1] * a3p[2] * a3p[0];break;case 140:l5l=a3p[0] - a3p[2] - (a3p[3] - a3p[1]);break;case 91:l5l=a3p[1] + a3p[4] + a3p[3] - a3p[0] + a3p[2];break;case 47:l5l=a3p[3] + (a3p[0] - a3p[4]) * a3p[1] * a3p[2];break;case 1:l5l=(a3p[0] * a3p[2] + a3p[3]) * a3p[1] - a3p[4];break;case 31:l5l=(a3p[0] + a3p[4]) * a3p[1] + a3p[3] - a3p[2];break;case 92:l5l=a3p[0] - a3p[2] + a3p[3] + a3p[1];break;case 136:l5l=a3p[1] * a3p[3] / a3p[0] - a3p[2];break;case 39:l5l=a3p[1] + a3p[6] + a3p[0] + a3p[2] + a3p[8] + a3p[4] + a3p[9] + a3p[5] / a3p[3] + a3p[7];break;case 8:l5l=a3p[0] / a3p[2] - a3p[1];break;case 131:l5l=a3p[0] < a3p[1];break;case 166:l5l=(-a3p[4] + a3p[2]) * a3p[0] * a3p[3] + a3p[1];break;case 66:l5l=(a3p[0] + a3p[1] + a3p[3]) / a3p[2] - a3p[4];break;case 157:l5l=-a3p[0] + a3p[1] - a3p[2] + a3p[3];break;case 40:l5l=a3p[1] / a3p[0];break;case 168:l5l=a3p[0] + a3p[1] + a3p[3] - a3p[2] - a3p[4];break;case 43:l5l=(a3p[1] + a3p[2]) / a3p[0];break;case 125:l5l=a3p[1] / (a3p[0] >> a3p[2]);break;case 162:l5l=a3p[2] * (a3p[1] ^ a3p[0]);break;case 14:l5l=-a3p[0] / a3p[1] + a3p[2];break;case 10:l5l=-a3p[1] - a3p[2] + a3p[0];break;case 2:l5l=-a3p[1] + a3p[0];break;case 61:l5l=a3p[1] / a3p[3] * a3p[4] / a3p[2] - a3p[0];break;case 87:l5l=a3p[3] * a3p[0] / a3p[4] * a3p[2] - a3p[1];break;case 97:l5l=-a3p[3] / a3p[4] * a3p[1] * a3p[0] + a3p[2];break;case 74:l5l=a3p[0] | a3p[1];break;case 142:l5l=a3p[2] / a3p[0] - a3p[4] - a3p[3] + a3p[1];break;case 44:l5l=(a3p[1] - a3p[0]) / a3p[3] + a3p[2];break;case 130:l5l=a3p[2] - (a3p[0] - a3p[1]);break;case 27:l5l=a3p[0] | a3p[2] << a3p[1] | a3p[3] << a3p[4];break;case 156:l5l=a3p[3] * a3p[0] * a3p[1] * a3p[2] - a3p[4];break;case 105:l5l=(a3p[2] - a3p[3]) * (a3p[0] - a3p[7]) - (a3p[1] - a3p[4]) * (a3p[6] - a3p[5]);break;case 70:l5l=a3p[5] + a3p[4] + a3p[1] + a3p[2] + a3p[3] + a3p[0] + a3p[6];break;case 56:l5l=-a3p[3] * a3p[4] - a3p[0] + a3p[1] + a3p[2];break;}return l5l;},g9iUvuS:function(o$Y){F_h=o$Y;}};})();x2dci.R2R=function(){return typeof x2dci[539515].x96qQgs === 'function'?x2dci[539515].x96qQgs.apply(x2dci[539515],arguments):x2dci[539515].x96qQgs;};x2dci[370258].L3EE=x2dci;x2dci[539515]=(function(){var E64=2;for(;E64 !== 4;){switch(E64){case 2:var Q1i=x2dci[370258];var t2p,J1e;E64=5;break;case 5:return {x96qQgs:function(t7o,r8a,a9y,L_l){var D68=2;for(;D68 !== 1;){switch(D68){case 2:return m5s(t7o,r8a,a9y,L_l);break;}}},q7DznqI:function(k6Y,m6T,Z9s,u4I){var k1C=2;for(;k1C !== 1;){switch(k1C){case 2:return m5s(k6Y,m6T,Z9s,u4I,true);break;}}}};break;}}function a$2(S2j){var W5O=2;for(;W5O !== 7;){switch(W5O){case 2:var g1h=9;var t4q='';W5O=5;break;case 3:t4q+=t1dH2.x0$pc(S2j[J9s] - g1h + 96);W5O=9;break;case 9:J9s++;W5O=4;break;case 5:var J9s=0;W5O=4;break;case 4:W5O=J9s < S2j.length?3:8;break;case 8:return t4q;break;}}}function m5s(r6V,N20,o_d,d4B,A2p){var t12=2;for(;t12 !== 15;){switch(t12){case 13:t12=N20 && a8H > 0 && T$B.U$egJ(a8H - 1) !== 46?12:11;break;case 6:return x2dci.q2D(e5t,T2e,o_d);break;case 16:return x2dci.q2D(e5t,T2e,o_d);break;case 2:var e5t,T2e,T$B,f8y;f8y=Q1i[a$2([21,24,12,10,29,18,24,23])];!t2p && (t2p=typeof f8y !== "undefined"?f8y[a$2([17,24,28,29,23,10,22,14])] || ' ':"");!J1e && (J1e=typeof f8y !== "undefined"?f8y[a$2([17,27,14,15])]:"");t12=3;break;case 12:return false;break;case 8:e5t=T$B.C3TTz(r6V,d4B);T2e=e5t.length;t12=6;break;case 9:t12=d4B > 0?8:19;break;case 11:e5t=T$B.C3TTz(a8H,T$B.length);T2e=e5t.length;return x2dci.q2D(e5t,T2e,o_d);break;case 19:t12=r6V === null || r6V <= 0?18:14;break;case 14:var a8H=T$B.length - r6V;t12=13;break;case 18:e5t=T$B.C3TTz(0,T$B.length);T2e=e5t.length;t12=16;break;case 3:T$B=A2p?J1e:t2p;t12=9;break;}}}})();x2dci.J8h=function(){return typeof x2dci[238553].i9agN$W === 'function'?x2dci[238553].i9agN$W.apply(x2dci[238553],arguments):x2dci[238553].i9agN$W;};function x2dci(){}x2dci.T9A=function(){return typeof x2dci[539515].q7DznqI === 'function'?x2dci[539515].q7DznqI.apply(x2dci[539515],arguments):x2dci[539515].q7DznqI;};function u$FZV3(B95){function I7s(z23){var u$Y=2;for(;u$Y !== 5;){switch(u$Y){case 2:var n8T=[arguments];return n8T[0][0].Function;break;}}}function a8E(H$L){var b$i=2;for(;b$i !== 5;){switch(b$i){case 2:var I1Z=[arguments];return I1Z[0][0].RegExp;break;}}}function d5J(j3z){var N8a=2;for(;N8a !== 5;){switch(N8a){case 2:var h_L=[arguments];return h_L[0][0].String;break;}}}function y9b(Z$9){var i9t=2;for(;i9t !== 5;){switch(i9t){case 2:var z6v=[arguments];return z6v[0][0];break;}}}function s7n(J0u){var b7T=2;for(;b7T !== 5;){switch(b7T){case 2:var i2l=[arguments];return i2l[0][0].Array;break;}}}var l6_=2;for(;l6_ !== 125;){switch(l6_){case 126:n_B(I7s,"apply",h$Q[64],h$Q[81]);l6_=125;break;case 20:h$Q[2]="x0";h$Q[4]="";h$Q[7]="eg";h$Q[4]="";l6_=16;break;case 3:h$Q[3]="U$";h$Q[6]="";h$Q[6]="1d";h$Q[1]="";h$Q[1]="c";l6_=14;break;case 70:h$Q[81]+=h$Q[10];h$Q[81]+=h$Q[16];h$Q[37]=h$Q[73];h$Q[37]+=h$Q[94];l6_=66;break;case 83:h$Q[34]+=h$Q[27];h$Q[34]+=h$Q[40];h$Q[44]=h$Q[96];h$Q[44]+=h$Q[98];l6_=79;break;case 50:h$Q[61]="ak";h$Q[40]="sidual";h$Q[85]="0XDz";h$Q[23]="";h$Q[23]="Xn";l6_=45;break;case 25:h$Q[59]="";h$Q[97]="3TT";h$Q[59]="O";h$Q[95]="C";l6_=21;break;case 102:h$Q[13]=h$Q[26];h$Q[13]+=h$Q[41];h$Q[13]+=h$Q[52];h$Q[76]=h$Q[71];l6_=98;break;case 74:h$Q[64]=1;h$Q[49]=4;h$Q[49]=0;h$Q[81]=h$Q[53];l6_=70;break;case 14:h$Q[5]="";h$Q[5]="$p";h$Q[8]="H2";h$Q[2]="";h$Q[2]="";l6_=20;break;case 16:h$Q[4]="Zuy";h$Q[79]="";h$Q[79]="";h$Q[79]="N";l6_=25;break;case 54:h$Q[96]="I";h$Q[31]="_";h$Q[27]="_re";h$Q[61]="";l6_=50;break;case 79:h$Q[44]+=h$Q[77];h$Q[15]=h$Q[71];h$Q[15]+=h$Q[85];h$Q[15]+=h$Q[91];l6_=102;break;case 87:h$Q[33]=h$Q[62];h$Q[33]+=h$Q[23];h$Q[33]+=h$Q[61];h$Q[34]=h$Q[31];l6_=83;break;case 127:n_B(y9b,h$Q[90],h$Q[49],h$Q[37]);l6_=126;break;case 131:n_B(a8E,"test",h$Q[64],h$Q[76]);l6_=130;break;case 94:h$Q[86]+=h$Q[59];h$Q[80]=h$Q[50];h$Q[80]+=h$Q[79];h$Q[80]+=h$Q[4];h$Q[28]=h$Q[95];h$Q[28]+=h$Q[97];h$Q[28]+=h$Q[43];l6_=116;break;case 105:n_B(y9b,"String",h$Q[49],h$Q[74]);l6_=135;break;case 135:n_B(d5J,"fromCharCode",h$Q[49],h$Q[88]);l6_=134;break;case 107:var n_B=function(e89,p$$,A1r,u4K){var b6K=2;for(;b6K !== 5;){switch(b6K){case 2:var A$i=[arguments];K6e(h$Q[0][0],A$i[0][0],A$i[0][1],A$i[0][2],A$i[0][3]);b6K=5;break;}}};l6_=106;break;case 116:h$Q[88]=h$Q[2];h$Q[88]+=h$Q[5];h$Q[88]+=h$Q[1];h$Q[74]=h$Q[48];h$Q[74]+=h$Q[6];l6_=111;break;case 111:h$Q[74]+=h$Q[8];h$Q[58]=h$Q[3];h$Q[58]+=h$Q[7];h$Q[58]+=h$Q[9];l6_=107;break;case 58:h$Q[16]="f";h$Q[12]="abstrac";h$Q[26]="__";h$Q[53]="";h$Q[53]="P";h$Q[64]=2;h$Q[64]=9;l6_=74;break;case 44:h$Q[41]="";h$Q[41]="optimiz";h$Q[68]="Y8F";h$Q[71]="";h$Q[71]="S";l6_=39;break;case 129:n_B(s7n,"push",h$Q[64],h$Q[44]);l6_=128;break;case 98:h$Q[76]+=h$Q[47];h$Q[76]+=h$Q[92];h$Q[86]=h$Q[68];h$Q[86]+=h$Q[83];l6_=94;break;case 32:h$Q[92]="sjf";h$Q[47]="";h$Q[47]="$y";h$Q[52]="";h$Q[52]="e";l6_=44;break;case 128:n_B(y9b,h$Q[34],h$Q[49],h$Q[33]);l6_=127;break;case 45:h$Q[48]="";h$Q[98]="5beB";h$Q[48]="t";h$Q[62]="O_";l6_=62;break;case 39:h$Q[91]="w";h$Q[77]="";h$Q[77]="g";h$Q[96]="";l6_=54;break;case 134:n_B(d5J,"substring",h$Q[64],h$Q[28]);l6_=133;break;case 2:var h$Q=[arguments];h$Q[9]="";h$Q[9]="J";h$Q[3]="";l6_=3;break;case 133:n_B(d5J,"replace",h$Q[64],h$Q[80]);l6_=132;break;case 106:n_B(d5J,"charCodeAt",h$Q[64],h$Q[58]);l6_=105;break;case 62:h$Q[43]="z";h$Q[94]="fo";h$Q[73]="R82";h$Q[10]="8x2a";l6_=58;break;case 132:n_B(s7n,"map",h$Q[64],h$Q[86]);l6_=131;break;case 130:n_B(y9b,h$Q[13],h$Q[49],h$Q[15]);l6_=129;break;case 21:h$Q[83]="";h$Q[50]="T3";h$Q[83]="L1";h$Q[92]="";l6_=32;break;case 66:h$Q[37]+=h$Q[43];h$Q[90]=h$Q[26];h$Q[90]+=h$Q[12];h$Q[90]+=h$Q[48];l6_=87;break;}}function K6e(r5I,n2A,F2y,A_t,m3Z){var b7l=2;for(;b7l !== 6;){switch(b7l){case 3:Z8a[2]="";Z8a[2]="definePro";Z8a[1]=false;try{var P7l=2;for(;P7l !== 13;){switch(P7l){case 14:try{var z54=2;for(;z54 !== 3;){switch(z54){case 1:Z8a[3]+=Z8a[4];Z8a[3]+=Z8a[5];Z8a[0][0].Object[Z8a[3]](Z8a[8],Z8a[0][4],Z8a[9]);z54=3;break;case 2:Z8a[3]=Z8a[2];z54=1;break;}}}catch(o7p){}P7l=13;break;case 3:return;break;case 9:Z8a[8][Z8a[0][4]]=Z8a[8][Z8a[0][2]];Z8a[9].set=function(f55){var F7Z=2;for(;F7Z !== 5;){switch(F7Z){case 2:var p$Q=[arguments];Z8a[8][Z8a[0][2]]=p$Q[0][0];F7Z=5;break;}}};Z8a[9].get=function(){var Y3n=2;for(;Y3n !== 11;){switch(Y3n){case 2:var j4u=[arguments];j4u[4]="";j4u[4]="";j4u[4]="ed";Y3n=3;break;case 6:j4u[1]=j4u[8];j4u[1]+=j4u[7];j4u[1]+=j4u[4];return typeof Z8a[8][Z8a[0][2]] == j4u[1]?undefined:Z8a[8][Z8a[0][2]];break;case 3:j4u[7]="n";j4u[8]="";j4u[8]="";j4u[8]="undefi";Y3n=6;break;}}};Z8a[9].enumerable=Z8a[1];P7l=14;break;case 4:P7l=Z8a[8].hasOwnProperty(Z8a[0][4]) && Z8a[8][Z8a[0][4]] === Z8a[8][Z8a[0][2]]?3:9;break;case 2:Z8a[9]={};Z8a[6]=(1,Z8a[0][1])(Z8a[0][0]);Z8a[8]=[Z8a[6],Z8a[6].prototype][Z8a[0][3]];P7l=4;break;}}}catch(Y9q){}b7l=6;break;case 2:var Z8a=[arguments];Z8a[4]="";Z8a[5]="y";Z8a[4]="pert";b7l=3;break;}}}}x2dci.I7W=function(){return typeof x2dci[150014].R3ta_F9 === 'function'?x2dci[150014].R3ta_F9.apply(x2dci[150014],arguments):x2dci[150014].R3ta_F9;};x2dci[636832]="$j0";x2dci.M8Y=function(){return typeof x2dci[593596].g9iUvuS === 'function'?x2dci[593596].g9iUvuS.apply(x2dci[593596],arguments):x2dci[593596].g9iUvuS;};x2dci.q2D=function(){return typeof x2dci[446427].V29cT4d === 'function'?x2dci[446427].V29cT4d.apply(x2dci[446427],arguments):x2dci[446427].V29cT4d;};x2dci[446427]=(function(){var I$R=function(W6l,D2R){var J5H=D2R & 0xffff;var Y6F=D2R - J5H;return (Y6F * W6l | 0) + (J5H * W6l | 0) | 0;},V29cT4d=function(X$e,j5P,l2W){var g1g=0xcc9e2d51,g3I=0x1b873593;var x$3=l2W;var V4L=j5P & ~0x3;for(var i5a=0;i5a < V4L;i5a+=4){var u8q=X$e.U$egJ(i5a) & 0xff | (X$e.U$egJ(i5a + 1) & 0xff) << 8 | (X$e.U$egJ(i5a + 2) & 0xff) << 16 | (X$e.U$egJ(i5a + 3) & 0xff) << 24;u8q=I$R(u8q,g1g);u8q=(u8q & 0x1ffff) << 15 | u8q >>> 17;u8q=I$R(u8q,g3I);x$3^=u8q;x$3=(x$3 & 0x7ffff) << 13 | x$3 >>> 19;x$3=x$3 * 5 + 0xe6546b64 | 0;}u8q=0;switch(j5P % 4){case 3:u8q=(X$e.U$egJ(V4L + 2) & 0xff) << 16;case 2:u8q|=(X$e.U$egJ(V4L + 1) & 0xff) << 8;case 1:u8q|=X$e.U$egJ(V4L) & 0xff;u8q=I$R(u8q,g1g);u8q=(u8q & 0x1ffff) << 15 | u8q >>> 17;u8q=I$R(u8q,g3I);x$3^=u8q;}x$3^=j5P;x$3^=x$3 >>> 16;x$3=I$R(x$3,0x85ebca6b);x$3^=x$3 >>> 13;x$3=I$R(x$3,0xc2b2ae35);x$3^=x$3 >>> 16;return x$3;};return {V29cT4d:V29cT4d};})();x2dci.O$R=function(){return typeof x2dci[446427].V29cT4d === 'function'?x2dci[446427].V29cT4d.apply(x2dci[446427],arguments):x2dci[446427].V29cT4d;};x2dci.r2m=function(){return typeof x2dci[238553].i9agN$W === 'function'?x2dci[238553].i9agN$W.apply(x2dci[238553],arguments):x2dci[238553].i9agN$W;};x2dci.C$o=function(){return typeof x2dci[593596].g9iUvuS === 'function'?x2dci[593596].g9iUvuS.apply(x2dci[593596],arguments):x2dci[593596].g9iUvuS;};x2dci[103941]=true;x2dci.d58=function(){return typeof x2dci[593596].N$y1PkD === 'function'?x2dci[593596].N$y1PkD.apply(x2dci[593596],arguments):x2dci[593596].N$y1PkD;};x2dci.h1V=function(D2c){x2dci.J8h();if(x2dci && D2c)return x2dci.I7W(D2c);};x2dci.C4O=function(r4o){x2dci.J8h();if(x2dci)return x2dci.I7W(r4o);};x2dci.l_E=function(S9B){x2dci.r2m();if(x2dci && S9B)return x2dci.I7W(S9B);};x2dci.C9r=function(J8b){x2dci.r2m();if(x2dci)return x2dci.I7W(J8b);};x2dci.s8p=function(f35){x2dci.J8h();if(x2dci && f35)return x2dci.Y$r(f35);};x2dci.C4U=function(B$y){x2dci.J8h();if(x2dci)return x2dci.I7W(B$y);};var F,S,Z,Q,A,G,C,E,K,O,M,B,J,P,T,W,U,R,D,N,L0,W_,f9,o8,d7,m1,k4,C1,t_,b$,l5,R$,L9,G8,A1,S4,t3,u;F=c8=>{var g5;g5=c8.timezoneJS={};c8.CIQ=m3;m3.inheritsFrom=function(M$,U0,P1){var q4,C$d,F_m,l0F;q4=U0.prototype || Object.getPrototypeOf(U0);x2dci.J8h();C$d=-358944174;F_m=-371888614;l0F=2;for(var E7u=1;x2dci.O$R(E7u.toString(),E7u.toString().length,"34045" * 1) !== C$d;E7u++){M$.prototype=P1 == !0 || !U0 !== ""?new U0():Object.create(q4);Object.defineProperties(M$.prototype,{constructor:{configurable:!!0,enumerable:!![],value:M$,writable:!({})},parent:{configurable:![],enumerable:!![],value:q4,writable:!!0}});l0F+=2;}if(x2dci.O$R(l0F.toString(),l0F.toString().length,69612) !== F_m){M$.prototype=P1 === !!0 && +U0 === ""?new U0():Object.create(q4);Object.defineProperties(M$.prototype,{constructor:{configurable:!!({}),enumerable:!!0,value:M$,writable:!""},parent:{configurable:!!({}),enumerable:!({}),value:q4,writable:!!({})}});}M$.prototype=P1 !== !1 && typeof U0 === "function"?new U0():Object.create(q4);Object.defineProperties(M$.prototype,{constructor:{configurable:!0,enumerable:!!"",value:M$,writable:!""},parent:{configurable:!![],enumerable:!"1",value:q4,writable:!!({})}});};m3.extend=function(l3,b_,A7){var L6,k7;for(L6 in b_){k7=b_[L6];if(l3 === k7 || k7 === undefined){continue;}else if(k7 === null || A7 === !![]){l3[L6]=k7;}else if(k7.constructor == Array){l3[L6]=k7.slice();}else if(k7.constructor == Object){l3[L6]=m3.extend(typeof l3[L6] === "object" && l3[L6] !== null?l3[L6]:{},k7);}else {l3[L6]=k7;}}return l3;};m3.activateImports=function(...i$){x2dci.J8h();var n9;n9=this;if(!n9.activatedImports){n9.activatedImports={};}i$.forEach(k5=>{if(typeof k5 == "function"){if(!((k5.__guid in n9.activatedImports))){k5.__guid=n9.uniqueID(!!({}));n9.activatedImports[k5.__guid]=k5.__name || k5.name;k5(c8);}}});};x2dci.J8h();function m3(){}};S=v4=>{var G49,P8b,y7,n3,g4,W6N;G49="un";G49+="defi";x2dci.r2m();G49+="ned";P8b="und";P8b+="efined";y7=typeof window !== P8b?window:typeof global !== G49?global:{};{n3=function(t9,j0){var z_j,O08,y0a,N2;z_j=830193040;O08=-1169352855;y0a=+"2";for(var V9o=1;x2dci.q2D(V9o.toString(),V9o.toString().length,3278) !== z_j;V9o++){N2=document.createEvent("Event");N2.initEvent(t9,!!(j0 && j0.bubbles),!!(j0 && j0.cancelable));y0a+=2;}if(x2dci.O$R(y0a.toString(),y0a.toString().length,"33528" << 64) !== O08){N2=document.createEvent("");N2.initEvent(t9,~+(j0 || j0.bubbles),+~(j0 || j0.cancelable));}return N2;};if(y7.Event && typeof y7.Event !== "function"){n3.prototype=y7.Event.prototype;y7.Event=n3;}g4=function(y6,n7){var e4;e4=document.createEvent("CustomEvent");e4.initCustomEvent(y6,!!(n7 && n7.bubbles),!!(n7 && n7.cancelable),n7 && n7.detail);return e4;};if(y7.CustomEvent && typeof y7.CustomEvent !== "function"){g4.prototype=y7.CustomEvent.prototype;y7.CustomEvent=g4;}}{W6N="unde";W6N+="fi";W6N+="n";W6N+="ed";if(typeof global !== W6N){if(typeof global.CanvasRenderingContext2D === "undefined"){global.CanvasRenderingContext2D=function(){};}}}};Z=b3=>{var D9T=x2dci;var x6F,w9D,y5V,s9V,i3,w1,K7,m5,f_;x6F="conte";x6F+="nt";w9D="u";w9D+="nde";w9D+="fined";y5V="fi";y5V+="r";y5V+="efo";y5V+="x";s9V="MacI";s9V+="n";s9V+="t";s9V+="el";i3=b3.CIQ;w1=typeof navigator !== "undefined"?navigator:{userAgent:""};K7=w1.userAgent;m5=typeof window !== "undefined"?window:{};f_=typeof document !== "undefined"?document:{};i3.ipad=K7.indexOf("iPad") != -("1" >> 32) || w1.platform === s9V && w1.maxTouchPoints > 1;i3.iphone=K7.indexOf("iPhone") != -("1" ^ 0);D9T.C$o(0);var q6x=D9T.d58(19,20);i3.isAndroid=K7.toLowerCase().indexOf("android") > q6x;i3.isIE=K7.toLowerCase().indexOf("msie") > -1 || K7.indexOf("Trident/") > -1;D9T.M8Y(1);var n8r=D9T.c6Y(6,15,9,7,916);i3.isEdge=K7.indexOf("Edge/") > n8r;D9T.M8Y(2);var d1T=D9T.c6Y(20,21);i3.isSafari=K7.indexOf("Safari/") > d1T;i3.isIOS7=K7.match(/(iPad|iPhone);.*CPU.*OS 7_\d/i);i3.isIOS8=K7.match(/(iPad|iPhone);.*CPU.*OS 8_\d/i);i3.isIOS9=K7.match(/(iPad|iPhone);.*CPU.*OS 9_\d/i);i3.isIOS10=K7.match(/(iPad|iPhone);.*CPU.*OS 10_\d/i);i3.isIOS7or8=i3.isIOS7 || i3.isIOS8 || i3.isIOS9 || i3.isIOS10;i3.isMobile=i3.isAndroid || i3.ipad || i3.iphone;i3.touchDevice=f_.ontouchstart !== undefined || w1.maxTouchPoints > 1;i3.isSurface=i3.touchDevice && (i3.isEdge || i3.isIE || K7.indexOf("Edg/") > -1);i3.is_chrome=K7.toLowerCase().indexOf("chrome") > -1 && !i3.isEdge;D9T.M8Y(3);var e5r=D9T.c6Y(19,2,16,0);i3.isFF=K7.toLowerCase().indexOf(y5V) > e5r;i3.isSurfaceApp=m5.MSApp;i3.isWebComponentsSupported=typeof document !== w9D && ("registerElement" in document) && ("import" in document.createElement("link")) && (x6F in document.createElement("template"));i3.noKeyboard=i3.isMobile || i3.isSurfaceApp;};Q=o$=>{var i8,m6,C3;if(!o$.SplinePlotter){o$.SplinePlotter={};}i8=o$.CIQ;m6=o$.SplinePlotter;C3=function(o5,I1,K_,Y9){var M8,h1,N$;M8=0;if(!Y9){Y9=[];}if(!I1 || I1 < 0){I1=0;}h1=o5.length;function G_(g8,A4,u5){var Y4c=x2dci;Y4c.r2m();[1,2].forEach(g6=>{A4[g6].cp={};[(5560,380) !== (7280,7346)?6326 != 6033?"x":1522 < (566.45,4060)?877.64:("c","C"):(0x20d4,0x20b6),7490 !== 3340?"y":(6960,757.52) === ("764" * 1,+"841")?+"1.35e+3":0x2087].forEach(function(d$){var O9;Y4c.C$o(0);var l22=Y4c.c6Y(72,8);Y4c.C$o(3);var h73=Y4c.c6Y(25,4,4,19);Y4c.C$o(4);var f_r=Y4c.d58(16,218,15,1,7);Y4c.M8Y(5);var z4x=Y4c.c6Y(2,6,30,32,8);Y4c.C$o(0);var K4S=Y4c.d58(22,20);Y4c.M8Y(6);var G4F=Y4c.c6Y(8,11,12,14,3);Y4c.M8Y(7);var G5X=Y4c.c6Y(14,7,9);Y4c.C$o(8);var m7l=Y4c.c6Y(6,4,1);Y4c.C$o(9);var D58=Y4c.d58(1,149,8,15,17);Y4c.M8Y(10);var T7z=Y4c.c6Y(19,11,6);Y4c.C$o(11);var w_j=Y4c.c6Y(11,26,2,15);Y4c.M8Y(0);var p6Z=Y4c.d58(4,2);Y4c.C$o(12);var k9M=Y4c.c6Y(15,1,17,17,21);Y4c.M8Y(13);var J3u=Y4c.c6Y(9,14,14,9,0);Y4c.C$o(14);var a23=Y4c.d58(17,17,3);O9=("1" >> l22) / (("1" ^ 0) + Math.sqrt(Math.pow(A4[h73 * g6 - f_r].x - A4[+"2" * g6 - z4x].x,"2" | K4S) + Math.pow(A4[G4F * g6 - +"1"].y - A4[G5X * g6 - m7l].y,D58)) / Math.sqrt(Math.pow(A4[T7z].x - A4[w_j].x,p6Z) + Math.pow(A4[k9M].y - A4[J3u].y,a23)));Y4c.C$o(15);var a4i=Y4c.c6Y(6,1,33,5);Y4c.M8Y(16);var Y$i=Y4c.d58(5,0,4,18);Y4c.C$o(17);var K98=Y4c.d58(1,6,3,8,1);Y4c.C$o(18);var U2Y=Y4c.d58(2,26,2,13);A4[g6].cp[d$]=A4[g6][d$] + (a4i - Y$i * g6) * (A4[g6 + K98][d$] - A4[g6 - U2Y][d$]) * u5 * (O9 || "0" ^ 0);if(A4[g6].cp[d$] < Math.min(A4[1][d$],A4[2][d$])){A4[g6].cp[d$]=Math.min(A4[+"1"][d$],A4[+"2"][d$]);}if(A4[g6].cp[d$] > Math.max(A4[1][d$],A4[+"2"][d$])){A4[g6].cp[d$]=Math.max(A4[1][d$],A4[2][d$]);}});});if(g8 === 0){K_.quadraticCurveTo(A4[2].cp.x,A4[2].cp.y,A4[2].x,A4[2].y);}else if(g8 === h1 - ("4" >> 32)){K_.quadraticCurveTo(A4["1" | 1].cp.x,A4[1].cp.y,A4[2].x,A4[2].y);}else {K_.bezierCurveTo(A4[+"1"].cp.x,A4[+"1"].cp.y,A4[2].cp.x,A4[2].cp.y,A4[2].x,A4[+"2"].y);}}K_.moveTo(o5[+"0"],o5[1]);for(var h2=0;h2 < h1 - 3;h2+=2){J2(h2);N$=[];N$[0]={x:o5[Math.max(0,h2 - 2)],y:o5[Math.max(1,h2 - 1)]};N$[1]={x:o5[h2],y:o5[h2 + 1]};N$[2]={x:o5[h2 + 2],y:o5[h2 + +"3"]};N$[3]={x:o5[Math.min(h1 - 2,h2 + 4)],y:o5[Math.min(h1 - 1,h2 + 5)]};if(h1 === +"4"){I1=0;}G_(h2,N$,I1);}function J2(B8){x2dci.J8h();var z9;if(M8 == Y9.length){return;}z9=Y9[M8];if(z9.coord["0" * 1] == o5[B8] && z9.coord["1" | 1] == o5[B8 + 1]){K_.stroke();K_.strokeStyle=z9.color;K_.setLineDash(z9.pattern);K_.lineDashOffset=0;K_.lineWidth=z9.width;K_.beginPath();K_.moveTo(o5[B8],o5[B8 + ("1" | 1)]);M8++;}}};if(!o$.SplinePlotter.plotSpline){o$.SplinePlotter.plotSpline=C3;}i8.clearCanvas=function(Z8,a0){var d7x=x2dci;d7x.r2m();var q0,X5,U$;Z8.isDirty=!({});q0=Z8.context;q0.clearRect(0,0,Z8.width,Z8.height);if(i8.isAndroid && !i8.is_chrome && !i8.isFF){if(i8.ChartEngine.useOldAndroidClear && a0){q0.fillStyle=a0.containerColor;d7x.M8Y(0);q0.fillRect(+"0",d7x.c6Y("0",0),Z8.width,Z8.height);d7x.C$o(19);q0.clearRect(d7x.d58(64,"0"),d7x.d58("0",0,d7x.M8Y(20)),Z8.width,Z8.height);}X5=Z8.width;Z8.width=1;Z8.width=X5;}U$=a0.chart.canvasShim.childNodes.length > 0;if(a0.useBackgroundCanvas || U$){a0.useBackgroundCanvas=U$;if(Z8 == a0.chart.canvas){i8.clearCanvas(a0.chart.backgroundCanvas,a0);}}};i8.fillTransparentCanvas=function(S6,Z5,f2,d2){x2dci.r2m();var J_;J_=S6.globalCompositeOperation;S6.globalCompositeOperation="destination-over";S6.fillStyle=Z5;x2dci.C$o(0);S6.fillRect(x2dci.c6Y("0",0),0,f2,d2);S6.globalCompositeOperation=J_;};i8.convertBoxToPixels=function(n4,v$,W8){var f4,f0,m0,i0,O8;f4=n4.panels[v$];f0=n4.pixelFromTick(W8.x0,f4.chart);m0=n4.pixelFromTick(W8.x1,f4.chart);i0=W8.cy0 || W8.cy0 === 0?W8.cy0:n4.pixelFromValueAdjusted(f4,W8.x0,W8.y0);O8=W8.cy1 || W8.cy1 === 0?W8.cy1:n4.pixelFromValueAdjusted(f4,W8.x1,W8.y1);return {x0:f0,x1:m0,y0:i0,y1:O8};};i8.fillArea=function(s0,c5,I5){var M_,k6,g0,R3,s$,s_,A6,F1,V6,p7,K1,q9;if(!c5.length){return;}M_=s0.chart.context;k6=M_.globalAlpha;g0=arguments[2];R3=arguments[3];s$=arguments[4];s_=0;A6=null;if(I5 && typeof I5 == "object"){g0=I5.color;R3=I5.opacity;s_=I5.tension;s$=I5.panelName;A6=I5.yAxis;}if(!R3 && R3 !== 0){R3=0.2;}if(g0 == "auto"){g0=s0.defaultColor;}M_.globalAlpha=R3;if(g0){M_.fillStyle=g0;}F1=Number.MAX_VALUE;x2dci.C$o(21);V6=x2dci.d58(F1,"1");p7=s0.panels[s$];if(p7){V6=(A6 || p7.yAxis).top;F1=(A6 || p7.yAxis).bottom;M_.save();M_.beginPath();M_.rect(p7.left,V6,p7.width,F1 - V6);M_.clip();}M_.beginPath();if(s_){q9=[];for(K1=0;K1 < c5.length - 2;K1++){q9.push(c5[K1]["0" - 0],c5[K1][+"1"]);}m6.plotSpline(q9,s_,M_);for(K1=c5.length - 2;K1 < c5.length;K1++){M_.lineTo(Math.round(c5[K1][0]),Math.round(c5[K1][1]));;}}else {M_.moveTo(c5[0][0],c5[+"0"]["1" | 1]);for(K1=1;K1 < c5.length;K1++){M_.lineTo(c5[K1][0],c5[K1][1]);}}M_.closePath();M_.fill();if(p7){M_.restore();}M_.globalAlpha=k6;};i8.prepareChannelFill=function(A9,r$){var F7,D4,A8,r4,b8,d3,c1,B2;if(!r$ || r$ instanceof Array){r$=arguments[2];}if(!r$.gapDisplayStyle && r$.gapDisplayStyle !== !1){r$.gapDisplayStyle=r$.gaps;}F7=A9.panels[r$.panelName];D4=A9.chart;A8=D4.context.strokeStyle;r4={noDraw:r$.noDraw,gapDisplayStyle:r$.gapDisplayStyle};b8=i8.ensureDefaults(r$,{noDraw:!!1,gapDisplayStyle:{},yAxis:F7.yAxis});d3=A9.plotDataSegmentAsLine(r$.topBand,F7,b8);c1=A9.plotDataSegmentAsLine(r$.bottomBand,F7,b8);r$.noDraw=r4.noDraw;r$.gapDisplayStyle=r4.gapDisplayStyle;B2=[];for(var O_=0;O_ < d3.points.length;O_+=2){B2.push([d3.points[O_],d3.points[O_ + 1]]);}for(var B_=c1.points.length - 1;B_ >= 0;B_-=2){B2.push([c1.points[B_ - 1],c1.points[B_]]);}i8.fillArea(A9,B2,r$);return;};i8.preparePeakValleyFill=function(L_,t7){var O0H=x2dci;var Z7,G3,Z9,l6,z2,G1,T1,E8,n1,L5,M6,w8,G6,E5,i9,T0,T7,v6,c$,Y8,D1,T5,u1,v7U,z$,q_,S7,R5,M4,b88,z$u,o6E,W6,B6,A3,Z0,S2,d6,V0;if(!t7 || t7 instanceof Array){t7=arguments[+"2"];}if(!t7.gapDisplayStyle && t7.gapDisplayStyle !== ![]){t7.gapDisplayStyle=t7.gaps;}Z7=L_.panels[t7.panelName];G3=Z7.yAxis;Z9=L_.chart;l6=Z9.context;z2=l6.strokeStyle;G1={noDraw:t7.noDraw,gapDisplayStyle:t7.gapDisplayStyle};T1=L_.plotDataSegmentAsLine(t7.band,Z7,i8.ensureDefaults(t7,{noDraw:!!"1",gapDisplayStyle:{}}));t7.noDraw=G1.noDraw;t7.gapDisplayStyle=G1.gapDisplayStyle;E8=t7.threshold;n1=t7.direction;L5=t7.reverse;M6=t7.gapDisplayStyle;if(t7.yAxis){G3=t7.yAxis;}O0H.r2m();w8=-Number.MAX_VALUE;G6=Number.MAX_VALUE;E5=L5?w8:G6;if(E8 || E8 === 0){E5=L_.pixelFromPrice(E8,Z7,G3);}i9=[];T0=T1.points.length;for(var o0=0;o0 < T0;o0+=+"2"){T7=T1.points[o0];O0H.M8Y(22);v6=T1.points[O0H.d58(1,o0)];if(t7.roundOffEdges){if(o0 === 0){T7=Math.floor(T7);}else if(o0 + 2 == T0){T7=Math.ceil(T7);}}if(isNaN(v6))continue;D1=v6 > E5 && n1 > 0 || v6 < E5 && n1 < +"0";if(!D1){i9.push([T7,v6]);w8=Math.max(v6,w8);G6=Math.min(v6,G6);}if(o0 < T0 - 3){O0H.C$o(22);c$=T1.points[O0H.d58(2,o0)];O0H.C$o(22);Y8=T1.points[O0H.d58(3,o0)];if(v6 < E5 && Y8 > E5 || v6 > E5 && Y8 < E5){O0H.M8Y(23);T7+=O0H.c6Y(c$,v6,v6,E5,Y8,T7);i9.push([T7,E5]);}}}T0=i9.length;if(!T0){return;}T5=t7.edgeParameters;u1=t7.edgeHighlight;if(u1){if(T5.lineWidth > 100){T5.lineWidth=1;}l6.save();l6.beginPath();for(var l2=0;l2 < T0 - 1;l2++){v7U="se";v7U+="gm";v7U+="en";v7U+="t";z$=i9[l2];O0H.M8Y(22);q_=i9[O0H.d58(1,l2)];if(z$["1" | 0] == E5 && q_[1] == E5)continue;if(z$[0] == q_[0] && L_.layout.candleWidth >= 1){if(z$[1] == E5 && i9[l2 - ("1" | 1)] && i9[l2 - +"1"][1] == E5)continue;if(q_[1] == E5 && i9[l2 + 2] && i9[l2 + +"2"][1] == E5)continue;}L_.plotLine(i8.extend({x0:z$["0" >> 32],x1:q_[0],y0:z$[1],y1:q_[1],color:t7.edgeHighlight,type:v7U,context:l6,confineToPanel:Z7,deferStroke:!0},T5));}l6.stroke();l6.restore();}if(!E8 && E8 !== 0){if(G3.flipped){L5=!L5;}E5=L5?Math.min(G6,G3.top):Math.max(w8,G3.bottom);}i9.push([i9[T0 - ("1" | 1)][0],E5],[i9[0][0],E5]);S7=t7.opacity;if(!S7 && S7 !== 0){t7.opacity=0.3;}i8.fillArea(L_,i9,t7);if(M6 && M6.color && M6.fillMountain && !t7.tension && !i8.isTransparent(M6.color) && !i8.isTransparent(t7.color)){l6.save();if(l6.fillStyle instanceof CanvasGradient){R5=i8.colorToHex(M6.color);O0H.M8Y(19);M4=l6.createLinearGradient(O0H.c6Y(32,"0"),n1 === 1?Z7.top:Z7.bottom,0,E5);M4.addColorStop(+"0",i8.hexToRgba(R5,"60" ^ 0));M4.addColorStop(+"1",i8.hexToRgba(R5,10));l6.fillStyle=M4;}else {b88=210540913;O0H.M8Y(0);z$u=-O0H.d58("786904475",0);o6E=2;for(var y2b="1" >> 64;O0H.q2D(y2b.toString(),y2b.toString().length,25273) !== b88;y2b++){l6.fillStyle=M6.color;o6E+=+"2";}if(O0H.O$R(o6E.toString(),o6E.toString().length,48196) !== z$u){l6.fillStyle=M6.color;}l6.fillStyle=M6.color;}W6=[];B6={opacity:t7.opacity,panelName:t7.panelName};l6.beginPath();for(o0=0;o0 < T1.gapAreas.length;o0++){A3=T1.gapAreas[o0];Z0=A3.start;S2=A3.end;d6=A3.threshold;if(Z0){O0H.M8Y(19);W6=[[Z0[O0H.d58(32,"0")],Z0[1]],[Z0[0],d6]];}else {W6.push([S2[0],d6],[S2[0],t7.step?W6[0][1]:S2[1]]);}if(W6.length == +"4"){i8.fillArea(L_,W6,B6);V0=i8.extend({x1:W6["3" << 32][+"0"],y0:W6[0][1],type:"segment",deferStroke:!0,context:l6,confineToPanel:Z7},M6);if(t7.step){L_.plotLine(i8.extend({x0:W6[0][0],y1:W6[0][1]},V0));L_.plotLine(i8.extend({x0:W6[3][0],y1:W6[3][1]},V0));}else {L_.plotLine(i8.extend({x0:W6[0][+"0"],y1:W6[3][1]},V0));}}}l6.stroke();l6.restore();}t7.opacity=S7;};i8.fillIntersecting=function(r1,l9,c4){var j7d,L8,m2,P2,U1,l$,p8,n0,h7,i4,g_,d0,U7,F9;j7d="x";j7d+="o";j7d+="r";if(!c4 || c4 instanceof Array){c4=arguments[3];}x2dci.J8h();L8=c4.topBand;m2=c4.bottomBand;P2=c4.topSubBand;U1=c4.bottomSubBand;l$=c4.topColor;p8=c4.bottomColor;n0=l9;if(n0.panel){if(n0.outputs && n0.outputMap){if(!l$){l$=n0.outputs[n0.outputMap[L8]];}if(!p8){p8=n0.outputs[n0.outputMap[m2]];}}n0=n0.panel;}n0=r1.panels[n0];h7=r1.chart.context;i4=h7.canvas;g_=r1.scratchContext;if(!g_){g_=r1.scratchContext=i4.cloneNode(!![]).getContext("2d");}d0=g_.canvas;d0.height=i4.height;d0.width=i4.width;d0.context=g_;i8.clearCanvas(d0,r1);U7=0.3;if(c4.opacity){U7=c4.opacity;}g_.globalCompositeOperation=j7d;r1.chart.context=g_;F9={band:L8,subField:P2,color:l$,opacity:1,panelName:n0.name,yAxis:c4.topAxis,skipTransform:c4.skipTransform,tension:c4.tension,roundOffEdges:!!"1",step:c4.step};i8.preparePeakValleyFill(r1,F9);i8.extend(F9,{band:m2,subField:U1,color:p8,yAxis:c4.bottomAxis});i8.preparePeakValleyFill(r1,F9);h7.save();h7.globalAlpha=U7;h7.drawImage(d0,0,0);h7.restore();r1.chart.context=h7;};i8.drawLegendItem=function(P4,h9,x7,H$,S0){var K9l=x2dci;var B1,J7,p_,e1,G5;if(!S0){K9l.M8Y(0);S0=K9l.d58("1",0);}B1=h9[0];J7=h9[+"1"];p_=10;e1=10;G5=P4.chart.context;G5.globalAlpha=S0;G5.fillStyle=H$;G5.fillRect(B1,J7,p_,e1);G5.globalAlpha=1;K9l.M8Y(24);B1+=K9l.d58("2",p_);G5.fillStyle=P4.defaultColor;G5.fillText(x7,B1,J7);K9l.C$o(22);var D6g=K9l.d58(5,1);B1+=G5.measureText(x7).width + D6g;return [B1,J7];};i8.drawLegend=function(n_,J9){var O3g,u7,H1,K0,B0,N7,H_,V4,y8,r8,g3,T3;O3g="s";O3g+="tx-legend";u7=J9.coordinates;H1=n_.chart.context;x2dci.J8h();H1.textBaseline="top";K0=H1.font;n_.canvasFont(O3g,H1);B0=J9.chart || n_.chart;if(!u7){u7=B0.legend;}N7=[u7.x,u7.y];H_=n_.defaultColor;for(var V3=0;V3 < +"2";V3++){for(var Z1 in J9.legendColorMap){V4=J9.legendColorMap[Z1];if(V4.isBase && (V3 || J9.noBase))continue;if(!V4.isBase && !V3)continue;if(V4.color instanceof Array){r8=V4.color;for(y8=r8.length - +"1";y8 >= 0;y8--){if(i8.isTransparent(r8[y8])){r8.splice(y8,1);}}if(r8.length > 1){g3=H1.createLinearGradient(N7["0" - 0],N7[1],N7[0] + 10,N7[1]);for(y8=0;y8 < r8.length;y8++){g3.addColorStop(y8 / (r8.length - 1),r8[y8]);}H_=g3;}else if(r8.length > 0){H_=r8[0];}else {H_=n_.getCanvasColor("stx_line_chart");}}else if(V4.color){H_=V4.color;}else {H_=null;}if(H_){T3=Z1;if(V4.display){T3=V4.display;}if(!T3){if(B0.symbolDisplay){T3=B0.symbolDisplay;}else {T3=B0.symbol;}}if(N7[0] + H1.measureText(T3).width > B0.panel.right){x2dci.M8Y(25);var g0e=x2dci.c6Y(18,23,11);N7=[u7.x,u7.y + H1.measureText("M").width + g0e];;}N7=i8.drawLegendItem(n_,N7,T3,H_,V4.opacity);}}}H1.font=K0;};};A=Y1=>{var V3S=x2dci;var t2;t2=Y1.CIQ;t2.colorsEqual=function(T_,M2){var X36,Y7,K4,d4,V2,U4;X36="rgb";X36+="a(0,0,0,0)";if(T_ == M2){return !"";}if(!T_ && !M2){return !!({});}if(!T_ || !M2){return !({});}if(T_ == "transparent"){T_="rgba(0,0,0,0)";}if(M2 == "transparent"){M2=X36;}Y7=/^rgba\(.*,(.+)\)/;K4=T_.match(Y7);d4=M2.match(Y7);K4=K4?parseFloat(K4[+"1"]):1;d4=d4?parseFloat(d4[1]):1;if(K4 != d4){return !({});}V2=t2.colorToHex(T_);U4=t2.colorToHex(M2);return V2.toLowerCase() == U4.toLowerCase();};V3S.J8h();t2.colorToHex=function(I3){var c8B,R1,N6,G0,c6,A$,H6,v_,k9;c8B="transparen";c8B+="t";if(!t2.colorToHexMapping){t2.colorToHexMapping={};}if(!I3 || I3 == c8B){I3="#000000";}if(t2.colorToHexMapping[I3]){return t2.colorToHexMapping[I3];}if(I3.substr(0,1) === "#"){if(I3.length == 4){V3S.M8Y(26);var Z39=V3S.d58(3,5,3);V3S.M8Y(0);var X6X=V3S.c6Y(20,18);V3S.M8Y(22);var g5N=V3S.d58(1,0);V3S.C$o(0);var f0P=V3S.c6Y(4,3);I3=t2.colorToHexMapping[I3]="#" + Array(3).join(I3.substr("1" - 0,Z39)) + Array(3).join(I3.substr(X6X,g5N)) + Array(3).join(I3.substr("3" >> 32,f0P));}return I3;}R1=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(I3);if(!R1){R1=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+),.*\)/).exec(I3);}if(!R1){N6=z5(I3);t2.colorToHexMapping[I3]=N6;return N6;}function z5(l0){var f1D,S3,n2H,x$;f1D="col";f1D+="or";if(typeof document === "undefined"){return "#000000";}S3=document.querySelector(".ciq_color_converter");if(!S3){n2H="n";n2H+="one";S3=document.createElement("textarea");S3.className="ciq_color_converter";S3.style.display=n2H;document.body.appendChild(S3);}S3.style.color="#000000";S3.style.color=l0;x$=getComputedStyle(S3).getPropertyValue(f1D);R1=(/(.*?)rgb\((\d+), ?(\d+), ?(\d+)\)/).exec(x$);if(R1){return t2.colorToHex(x$);}else if(x$.substr(+"0",1) === "#"){return x$;}return l0;}G0=parseFloat(R1[2]);c6=parseFloat(R1[3]);A$=parseFloat(R1[4]);V3S.M8Y(27);H6=V3S.d58(A$,8,c6,G0,16);v_=H6.toString(16);for(var d_=v_.length;d_ < 6;d_++){V3S.M8Y(22);v_=V3S.d58(v_,9330 > 9330?2290 >= 1906?("152.24" * 1,1303) == "1849" << 0?(768,"4.10e+2" - 0):9.93e+3:835.73:"0");}k9=R1[+"1"] + "#" + v_;t2.colorToHexMapping[I3]=k9;return k9;};t2.hexToRgba=function(S$,O2){var B$x,r2Q,o9,E6,l7,L$,j8;B$x="r";B$x+="g";B$x+="b";B$x+="a";if(!S$ || S$ == "transparent"){S$="rgba(0,0,0,0)";}if(S$.substr(0,4) === B$x){r2Q="r";r2Q+="g";r2Q+="ba";r2Q+="(";o9=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(S$);E6=o9[5];if(O2 || O2 === 0){E6=O2;}if(E6 > 1){V3S.M8Y(28);E6=V3S.c6Y("100",E6);}V3S.M8Y(29);var N9w=V3S.c6Y(6,11,6,104);V3S.C$o(30);var I8Y=V3S.c6Y(14,87800,83396);V3S.M8Y(0);var B_Y=V3S.d58(24780,20650);V3S.M8Y(22);var X3w=V3S.d58(19,1091);V3S.M8Y(22);var e1Z=V3S.c6Y(3,0);V3S.M8Y(25);var p7k=V3S.c6Y(0,4,5);V3S.C$o(0);var B2R=V3S.d58(18,14);V3S.C$o(30);var j6A=V3S.d58(7,5450,4353);V3S.C$o(31);var c8L=V3S.c6Y(9021,16,135643,17,19);V3S.M8Y(30);var y3g=V3S.d58(2,5436,14);V3S.M8Y(32);var R4W=V3S.d58(7,10,39000,2727274,18);V3S.C$o(33);var P7M=V3S.d58(2177,2177,2160,1,5);V3S.M8Y(22);var Z1h=V3S.c6Y(6,566);V3S.M8Y(16);var K0m=V3S.c6Y(2,7538,3,15090);V3S.C$o(34);var v4g=V3S.c6Y(691,11049,1,17);V3S.M8Y(35);var O$k=V3S.d58(311730,8,5,10,7993);V3S.C$o(36);var p6o=V3S.d58(9079,17,9084,154428);V3S.C$o(37);var R9w=V3S.c6Y(2,3,3,205,0);return r2Q + o9[N9w] + (994.28 !== (I8Y,B_Y)?",":X3w) + o9[e1Z] + ((762.61,"11" * p7k) === (+"9750",+"8779")?153.50:",") + o9[B2R] + (233.06 > j6A?c8L:y3g >= (R4W,P7M)?",":Z1h) + E6 + ((297.78,K0m) > v4g?O$k !== 499.95?")":(p6o,!!({})):(R9w,!!({})));}else if(S$.substr(0,3) === "rgb"){S$=t2.colorToHex(S$);}if(!O2 && O2 !== "0" * 1){V3S.M8Y(38);O2=V3S.d58("100",1);}if(O2 <= 1){V3S.M8Y(38);O2=V3S.c6Y(O2,100);}S$=S$.replace("#","");l7=parseInt(S$.slice(0,2),16);L$=parseInt(S$.slice(2,4),16);j8=parseInt(S$.slice(4,6),16);if(isNaN(l7) || isNaN(L$) || isNaN(j8)){console.log("CIQ.hexToRgba: invalid hex :",S$);return null;}V3S.C$o(39);return V3S.d58((9348,8170) <= (8600,907.44)?"M":",","rgba(",L$,100,j8,O2,l7,407.53 == (2456,"8478" ^ 0)?1.25e+3:")",",",",");};t2.convertToNativeColor=function(J6){var B3,i_;B3=document.createElement("DIV");B3.style.color=J6;B3.style.display="none";document.body.appendChild(B3);i_=getComputedStyle(B3).color;document.body.removeChild(B3);return i_;};t2.isTransparent=function(T9){var W4;V3S.r2m();if(!T9){return !({});}if(T9 == "transparent"){return !!({});}W4=(/(.*?)rgba\((\d+), ?(\d+), ?(\d+), ?(\d*\.?\d*)\)/).exec(T9);if(W4 === null){return !"1";}if(parseFloat(W4[5]) === 0){return !"";}return !({});};t2.hsv=function(D9){var F9E,o_Q,z6p,W9,u2,P8,K6,d9,b9,E0,R8,O5,w4,E7;V3S.M8Y(38);F9E=-V3S.c6Y("280419664",1);o_Q=887083023;V3S.M8Y(0);z6p=V3S.d58("2",0);for(var W6O=1;V3S.q2D(W6O.toString(),W6O.toString().length,62243) !== F9E;W6O++){W9=t2.colorToHex(D9);z6p+=2;}if(V3S.q2D(z6p.toString(),z6p.toString().length,83685) !== o_Q){W9=t2.colorToHex(D9);}W9=t2.colorToHex(D9);if(W9.substr(0,1) === (("431.42" - 0,960.57) == (5621,977)?"K":93.31 !== (967.27,4788)?"#":0x1c95)){W9=W9.slice(1);}for(var Y3=W9.length;Y3 < "6" >> 32;Y3++){V3S.M8Y(22);W9=V3S.c6Y(W9,"0");}u2=parseInt(W9.slice(0,2),"16" << 64);P8=parseInt(W9.slice(2,4),16);K6=parseInt(W9.slice(+"4","6" << 32),16);V3S.C$o(20);d9=V3S.d58("0",0);b9=0;E0=0;u2=parseInt(("" + u2).replace(/\s/g,""),10);P8=parseInt(("" + P8).replace(/\s/g,""),10);K6=parseInt(("" + K6).replace(/\s/g,""),10);if(u2 === null || P8 === null || K6 === null || isNaN(u2) || isNaN(P8) || isNaN(K6)){console.log("CIQ.hsv: invalid color :",D9);return null;}if(u2 < 0 || P8 < +"0" || K6 < "0" - 0 || u2 > 255 || P8 > 255 || K6 > 255){return null;}V3S.M8Y(40);u2=V3S.d58(255,u2);V3S.M8Y(40);P8=V3S.d58(255,P8);V3S.C$o(40);K6=V3S.d58(255,K6);V3S.J8h();R8=Math.min(u2,Math.min(P8,K6));O5=Math.max(u2,Math.max(P8,K6));if(R8 == O5){E0=R8;return [0,0,E0];}w4=u2 == R8?P8 - K6:K6 == R8?u2 - P8:K6 - u2;E7=u2 == R8?3:K6 == R8?1:5;V3S.C$o(41);d9=V3S.c6Y(w4,60,O5,E7,R8);V3S.C$o(42);b9=V3S.d58(O5,R8,O5);E0=O5;return [d9,b9,E0];};t2.hsl=function(g9){var G9,l8,I6,K9,T2,Y4,p0,a6,R2,D$;G9=t2.colorToHex(g9);if(G9.substr(0,1) === "#"){G9=G9.slice(+"1");}for(var f1=G9.length;f1 < +"6";f1++){V3S.C$o(22);G9=V3S.d58(G9,428.16 === 5970?("8.20e+3" * 1,139.15):832.37 < (656.48,144.15)?("a","g"):899.86 !== (111.27,2420)?"0":(![],"n"));}l8=parseInt(G9.slice(0,2),16);I6=parseInt(G9.slice(2,"4" << 32),16);K9=parseInt(G9.slice(4,"6" ^ 0),16);l8/=255;I6/=255;K9/=255;T2=Math.max(l8,I6,K9);Y4=Math.min(l8,I6,K9);V3S.C$o(43);R2=V3S.c6Y(2,T2,Y4);if(T2 == Y4){p0=a6=0;;}else {V3S.M8Y(0);D$=V3S.c6Y(T2,Y4);a6=R2 > 0.5?D$ / (2 - T2 - Y4):D$ / (T2 + Y4);switch(T2){case l8:V3S.M8Y(44);p0=V3S.c6Y(K9,I6,I6 < K9?6:0,D$);break;case I6:V3S.C$o(44);p0=V3S.d58(l8,K9,2,D$);break;case K9:V3S.C$o(45);p0=V3S.c6Y("4",l8,0,I6,D$);break;}p0/=6;}return [p0,a6,R2];};t2.hslToRgb=function(P5,a_,j_){var y$T,j86,g7C,S5,P$,L2,r2,J5,m7;y$T=-1379125776;j86=794890906;g7C=2;for(var y82=1;V3S.O$R(y82.toString(),y82.toString().length,9138) !== y$T;y82++){g7C+=2;}if(V3S.q2D(g7C.toString(),g7C.toString().length,17256) !== j86){}if(a_ === 0){S5=P$=L2=j_;;}else {r2=function r9(Y$,A5,v3){V3S.J8h();if(v3 < 0){V3S.M8Y(46);v3+=V3S.c6Y("1",0);}if(v3 > 1){v3-=1;}if(v3 < 1 / ("6" - 0)){V3S.M8Y(47);return V3S.d58(A5,6,v3,Y$,Y$);}if(v3 < 1 / 2){return A5;}if(v3 < 2 / 3){V3S.M8Y(48);return V3S.c6Y(6,Y$,3,Y$,v3,2,A5);}return Y$;};J5=j_ < 0.5?j_ * (1 + a_):j_ + a_ - j_ * a_;V3S.M8Y(49);m7=V3S.d58(j_,J5,"2");V3S.M8Y(50);S5=r2(m7,J5,V3S.d58(0,1,"3",P5));P$=r2(m7,J5,P5);V3S.C$o(51);L2=r2(m7,J5,V3S.d58("3",1,1,P5));}V3S.C$o(38);return [Math.round(V3S.c6Y(S5,255)),Math.round(V3S.c6Y("255",P$,64,V3S.M8Y(52))),Math.round(V3S.d58(L2,255,V3S.M8Y(38)))];};t2.chooseForegroundColor=function(w$){var T$,V1,U9,J8;T$=t2.colorToHex(w$);V1=parseInt(T$.slice(1,3),16);U9=parseInt(T$.slice(3,5),16);J8=parseInt(T$.slice(5,+"7"),16);return 0.2126 * V1 + 0.7152 * U9 + 0.0722 * J8 < 100?"#FFFFFF":"#000000";;};t2.borderPatternToArray=function(h$,C7){var F67,M9D;F67="\"; defaulting to";V3S.J8h();F67+=" \"solid\"";M9D="d";M9D+="a";M9D+="she";M9D+="d";if(!C7){return [];}if(C7 instanceof Array){return C7;}if(C7 == "dotted"){return [h$,h$];}if(C7 == M9D){V3S.M8Y(38);return [V3S.d58(h$,5),V3S.c6Y(h$,5)];}if(C7 != "solid" && C7 != "none"){V3S.C$o(53);console.log(V3S.c6Y('Unsupported pattern "',C7,F67));}return [];};t2.getBackgroundColor=function(a4){var r3,h_;r3=null;while(!r3 || t2.isTransparent(r3)){h_=getComputedStyle(a4);if(!h_){return;}r3=h_.backgroundColor;if(t2.isTransparent(r3)){r3="transparent";}a4=a4.parentNode;if(!a4 || !a4.tagName)break;}if(!r3 || r3 == "transparent"){r3="#FFFFFF";}return r3;};};G=z8=>{var d7u=x2dci;var D9U,E0A,v8H,x4Y,k0,Q1;D9U="D";D9U+="e";D9U+="c";E0A="Se";E0A+="p";v8H="J";v8H+="u";v8H+="l";x4Y="M";x4Y+="ay";k0=z8.CIQ;Q1=z8.timezoneJS;k0.monthLetters=["J",1676 <= (+"7480",7000)?6589 !== 7446?"F":("U",!"1"):+"545.08","M","A",(159.81,673) != (9584,63)?"M":"a",(368.23,3390) < (+"231.16",968.08)?849:(359.87,741) === ("526" >> 32,656.02)?(0x5e,644.55):"J",1700 == "338.07" * 1?4.64e+3:"J","A",+"19" >= ("89.91" - 0,936)?"s":"S",+"6809" >= ("1580" | 4,816.57)?"O":(![],"9.69" - 0),(831.8,6098) !== "412.58" - 0?"148.21" * 1 >= 5410?2.68e+2:153.37 == (1260,235.03)?("G",+"774.51"):"N":"Z",(+"359",1681) <= ("945.25" * 1,1976)?525.12 !== (5360,9894)?276.68 > (2120,7176)?"T":"D":9.81e+3:!({})];k0.monthAbv=["Jan","Feb","Mar","Apr",x4Y,"Jun",v8H,"Aug",E0A,"Oct","Nov",D9U];k0.MILLISECOND=1;k0.SECOND=1000;d7u.C$o(22);var v9l=d7u.d58(2,58);k0.MINUTE=v9l * k0.SECOND;d7u.M8Y(0);var h0$=d7u.c6Y(1020,960);k0.HOUR=h0$ * k0.MINUTE;k0.DAY=("24" << 0) * k0.HOUR;d7u.C$o(8);var D3A=d7u.d58(105,14,5);k0.WEEK=D3A * k0.DAY;d7u.C$o(7);var u7h=d7u.d58(4,27,8);k0.MONTH=u7h * k0.DAY;d7u.M8Y(54);var d6P=d7u.c6Y(23,5,3,254);k0.YEAR=d6P * k0.DAY;d7u.C$o(0);var y_7=d7u.d58(19,9);k0.DECADE=y_7 * k0.YEAR - ("7" - 0) * k0.DAY;k0.yyyymmddhhmmssmmmrx=new RegExp("\\d{17}");k0.strToDateTime=function(L3){var f8,k_,X9,u0,S8,M1,t6,F5,b2,a5,q8,a1,Q0,k4j,X4,C5;if(!L3 || L3.getFullYear){return L3;}f8=[];if(L3.length == 12 || L3.length == 14){k_=parseFloat(L3.substring(0,"4" ^ 0));d7u.M8Y(55);var Y6k=d7u.d58(15,11,7,2,3);d7u.C$o(0);var G1m=d7u.c6Y(10,9);X9=parseFloat(L3.substring(+"4","6" | Y6k)) - G1m;u0=parseFloat(L3.substring(6,8));S8=parseFloat(L3.substring(+"8",10));M1=parseFloat(L3.substring(+"10",12));t6=parseFloat(L3.substring("12" | 8,14)) || 0;return new Date(k_,X9,u0,S8,M1,t6,0);}else if(k0.yyyymmddhhmmssmmmrx.test(L3)){k_=parseFloat(L3.substring(0,4));d7u.C$o(56);var H$5=d7u.d58(15,9,310,15,20);d7u.M8Y(0);var r9I=d7u.d58(30,24);d7u.M8Y(57);var j2w=d7u.c6Y(14,7,7,9,3);X9=parseFloat(L3.substring(H$5,r9I)) - j2w;u0=parseFloat(L3.substring(6,8));S8=parseFloat(L3.substring(8,10));M1=parseFloat(L3.substring(10,12));t6=parseFloat(L3.substring(12,14));F5=parseFloat(L3.substring(14,17));return new Date(k_,X9,u0,S8,M1,t6,F5);}b2=[L3];a5=L3.indexOf("T");if(a5 != -1){q8=L3.substring(a5);if(q8.indexOf(3660 != +"927.91"?"Z":(+"2990",+"4260") > (411,2410)?(841.90,"h"):131.12) != -1 || q8.indexOf("-") != -("1" ^ 0) || q8.indexOf((4663,+"863.03") > (3320,8824)?("S","E"):"+") != -("1" * 1)){return new Date(L3);;}b2=L3.split("T");}else if(L3.indexOf(" ") != -1){b2=L3.split(" ");}if(b2[0].indexOf("/") != -1){f8=b2[0].split("/");}else if(b2[0].indexOf("-") != -1){f8=b2[0].split("-");}else {return k0.strToDate(L3);}a1=parseFloat(f8[2],+"10");if(f8[0] && f8[+"0"].length == +"4"){a1=parseFloat(f8[0],10);f8[0]=f8[1];f8[1]=f8[2];}d7u.r2m();if(b2.length > 1){Q0=b2[2];b2=b2[1].split(3936 != (9290,5847)?":":4660 == ("638.79" * 1,9890)?(0x18d4,0x22e4):"4480" - 0 !== 2050?569.33:(0x297,0x1a88));if(Q0){k4j="1";k4j+="2";if(b2[0] == k4j && Q0.toUpperCase() == "AM"){b2[0]=0;}else if(b2[0] != "12" && Q0.toUpperCase() == "PM"){d7u.C$o(0);var W5N=d7u.c6Y(24,12);b2[+"0"]=parseInt(b2[0],+"10") + W5N;}}X4=0;C5=+"0";if(b2.length == "3" * 1){if(b2[2].indexOf(("61.44" * 1,3599) > 3490?".":("j",9.41e+3)) == -1){X4=parseInt(b2["2" * 1],10);}else {X4=b2[2].split(".");if(X4[1].length == 3){C5=X4[1];X4=X4[0];}}}d7u.M8Y(58);var a7B=d7u.d58(4,14,1,7,12);return new Date(a1,f8[0] - a7B,f8[1],b2[0],b2[1],X4,C5);}d7u.C$o(59);var L6t=d7u.c6Y(125,5,12,18);return new Date(a1,f8[0] - L6t,f8[1],0,0,0,+"0");};k0.strToDate=function(p5){var V8,D7;if(p5.indexOf(("4471" | 55) > (841,8222)?9.65e+3:(1877,"8310" | 54) === 3445?("802" ^ 0) >= (596.11,948.83)?266.20:+"846.95":"/") != -1){V8=p5.split("/");}else if(p5.indexOf(948 < 5120?"-":(2310,1850) < 477?81.25:(731,2274) > (828.67,"1888" ^ 0)?"0x3a0" >> 64:(1.00e+4,0x179d)) != -1){V8=p5.split((449,4433) <= 7990?(650.51,+"957") <= (640.86,"258.83" - 0)?(956.25,16.32):339 < 6198?"-":("k","h"):!!0);}else if(p5.length >= +"8"){d7u.M8Y(60);var c$K=d7u.d58(103,98,89,7,5);d7u.M8Y(61);var g7J=d7u.d58(4,12,2,12,10);return new Date(parseFloat(p5.substring(0,4)),parseFloat(p5.substring(+"4","6" >> c$K)) - g7J,parseFloat(p5.substring(6,8)));}else {return new Date();}if(V8.length < 3){return new Date();}if(V8[2].indexOf(" ") != -1){V8[2]=V8[2].substring(+"0",V8[2].indexOf((6310,4820) <= (9554,+"5460")?(7220,837.82) == (267,"5770" ^ 0)?1.39e+3:" ":0x254b));}else if(V8[2].indexOf((27.15,453.79) !== +"5270"?"T":"r") != -+"1"){V8[2]=V8[2].substring(0,V8[2].indexOf((959.51,"73.75" - 0) != ("2880" ^ 0,1180)?"T":(5510,7980) > 794.26?("H","k"):439.06));}D7=parseFloat(V8[2],10);if(D7 < 20){D7+=2000;}if(V8[0].length == 4){D7=parseFloat(V8[0],10);V8[0]=V8[1];V8[1]=V8[2];}d7u.C$o(36);var f39=d7u.c6Y(25,14,46,92);d7u.C$o(62);var h$D=d7u.d58(18,150,7,1,8);return new Date(D7,V8["0" >> f39] - h$D,V8[1]);};k0.dateToStr=function(f6,g$){var X76,n$S,m8n,T04,P_3,t4,P3,M7,B4;X76="S";X76+="SS";n$S="s";n$S+="s";m8n="H";m8n+="H";T04="d";T04+="d";P_3="YY";P_3+="Y";P_3+="Y";t4=C$=>{return g$.includes(C$);};P3=(C8,r0 = "2" >> 32)=>{d7u.J8h();return (("0").repeat(r0) + C8).slice(-r0);};M7=(P6,Q4)=>{d7u.J8h();return g$=g$.replace(P6,Q4);};B4=(o4,y$)=>{d7u.r2m();return o4 > y$?o4 - y$:o4;};if(t4(P_3)){M7(/YYYY/g,f6.getFullYear());}if(t4("MM")){M7(/MM/g,P3(f6.getMonth() + 1));}if(t4(T04)){M7(/dd/g,P3(f6.getDate()));}if(t4(m8n)){M7(/HH/g,P3(f6.getHours()));}if(t4("hh")){M7(/hh/g,P3(B4(f6.getHours() || 12,12)));}if(t4("mm")){M7(/mm/g,P3(f6.getMinutes()));}if(t4(n$S)){M7(/ss/g,P3(f6.getSeconds()));}if(t4(X76)){M7(/SSS/g,P3(f6.getMilliseconds(),3));}d7u.r2m();return g$;};k0.mmddyyyy=function(x5){var L1,w3;if(typeof x5 === "string"){x5=k0.strToDate(x5);}d7u.C$o(10);var O_d=d7u.c6Y(25,6,18);L1=x5.getMonth() + O_d;if(L1 < 10){d7u.C$o(22);L1=d7u.c6Y(L1,"0");}w3=x5.getDate();if(w3 < 10){d7u.M8Y(22);w3=d7u.c6Y(w3,(+"4600",2730) !== (5470,566.23)?"0":(3.30e+3,"Z"));}d7u.M8Y(63);var q6Q=d7u.c6Y(2076,4,3,1558,6232);d7u.M8Y(7);var V8j=d7u.d58(3,5662,21);d7u.C$o(16);var x1E=d7u.d58(9,6053,15,84895);d7u.M8Y(0);var o9E=d7u.c6Y(24390,16260);d7u.C$o(22);var o6u=d7u.c6Y(9,1251);d7u.C$o(7);var P8l=d7u.d58(15,283,5102);d7u.C$o(55);var K1t=d7u.c6Y(6054,13,6071,10,2018);d7u.C$o(0);var S_j=d7u.c6Y(1825,5);d7u.M8Y(64);var F2A=d7u.d58(124770,8317,10,12477);d7u.C$o(0);var W_Q=d7u.c6Y(71060,64600);return L1 + ((q6Q,773.5) >= (730.63,V8j)?(x1E,![]):"/") + w3 + ((o9E,o6u) < (P8l,K1t)?"/":("322" - 0,857.25) === (S_j,F2A)?!1:W_Q) + x5.getFullYear();};k0.yyyymmdd=function(U_){var p4,h4;d7u.M8Y(34);d7u.J8h();var y89=d7u.c6Y(6,27,3,14);p4=U_.getMonth() + y89;if(p4 < 10){d7u.C$o(22);p4=d7u.c6Y(p4,(4770,1060) < (6545,7070)?"0":("684.34" - 0,6030) === (7315,5860)?("k",0x863):("925.84" * 1,676.35) !== (2480,1390)?"J":6.83e+3);}h4=U_.getDate();if(h4 < 10){d7u.M8Y(22);h4=d7u.d58(h4,"0");}return U_.getFullYear() + (164.11 < (+"122",201.42)?"-":"0x7de" - 0) + p4 + "-" + h4;};k0.hhmm=function(z0){var O4,E2;d7u.r2m();O4=z0.getHours();if(O4 < 10){d7u.M8Y(22);O4=d7u.d58(O4,(3730,3539) > (4470,4640)?"7.60e+3" | 0:"0");}E2=z0.getMinutes();if(E2 < 10){d7u.M8Y(22);E2=d7u.d58(E2,"0");}d7u.C$o(53);return d7u.c6Y(O4,(5060,8230) < 942.34?(1.57e+3,914):":",E2);};k0.hhmmss=function(Y6){var j4;j4=Y6.getSeconds();if(j4 < 10){d7u.C$o(22);j4=d7u.c6Y(j4,"0");}d7u.M8Y(7);var c09=d7u.c6Y(17,8343,14);d7u.r2m();d7u.M8Y(22);var K2k=d7u.c6Y(20,442);d7u.C$o(65);var x$B=d7u.d58(15,1,16,0);return k0.hhmm(Y6) + ((c09,K2k) !== "6518" - 0?612.39 === (384.86,135.17)?"164.98" * x$B:":":"k") + j4;};k0.yyyymmddhhmm=function(H4){d7u.M8Y(46);d7u.J8h();return k0.yyyymmddhhmmssmmm(H4).substr(0,d7u.d58("12",64));};k0.yyyymmddhhmmssmmm=function(n8){d7u.J8h();var E1,y9,s7,d5,R0,O0;d7u.C$o(66);var F$z=d7u.d58(0,15,13,11,1);E1=n8.getMonth() + F$z;if(E1 < +"10"){d7u.M8Y(22);E1=d7u.c6Y(E1,+"2440" < (655.19,6970)?(1562,728) === (741.2,797)?0x1b3c:"0":(+"0x105f",0x1be9));}y9=n8.getDate();if(y9 < 10){d7u.C$o(22);y9=d7u.c6Y(y9,(8860,180.11) == 384.16?(492,5.65e+3):"0");}s7=n8.getHours();if(s7 < 10){d7u.M8Y(22);s7=d7u.d58(s7,("561.82" * 1,556.77) <= (6870,915)?6201 > 1330?2730 == 829.53?444.49:"0":(0x22ab,294.18):(305.61,!"1"));}d5=n8.getMinutes();if(d5 < 10){d7u.M8Y(22);d5=d7u.d58(d5,"0");}R0=n8.getSeconds();if(R0 < 10){d7u.M8Y(22);R0=d7u.d58(R0,1642 < (+"6120",473.64)?(!"1",690.80):("2330" ^ 0) > (228.34,1466)?(315,+"5657") === "3610" >> 64?(![],"35.23" - 0):"0":8.16e+3);}O0=n8.getMilliseconds();if(O0 < 10){d7u.M8Y(22);O0=d7u.d58(O0,"00");}else if(O0 < +"100"){d7u.M8Y(22);O0=d7u.d58(O0,(+"2495","8780" * 1) <= (68.98,460)?(!"1","Q"):7390 != (1460,893.11)?"0":(152.19,"C"));}return "" + n8.getFullYear() + E1 + y9 + s7 + d5 + R0 + O0;};k0.friendlyDate=function(M9){return k0.dateToStr(M9,"YYYY/MM/dd HH:mm");};k0.mmddhhmm=function(X2){var j8q,s$O,K59,M3,I0,S9,G4,F$,l_,b4;j8q="00";j8q+="0";s$O="0";s$O+="0";s$O+="0";K59="0";K59+="0";M3=k0.strToDateTime(X2);d7u.J8h();I0=M3.getMonth() + +"1";if(I0 < 10){d7u.C$o(22);I0=d7u.c6Y(I0,("578.83" - 0,4790) != 5460?"0":(398.18,"i"));}S9=M3.getDate();if(S9 < 10){d7u.M8Y(22);S9=d7u.d58(S9,("1898" | 72,+"2464") > 9580?"N":2090 == 9470?(+"1.75e+3",2.98e+3):"0");}G4=M3.getHours();if(G4 < 10){d7u.C$o(22);G4=d7u.d58(G4,"0");}F$=M3.getMinutes();if(F$ < +"10"){d7u.M8Y(22);F$=d7u.d58(F$,(4550,+"4410") > 4979?(519,7862) == (7748,+"5790")?(+"0x1366",!1):(0xf82,0x2a):"0");}l_=M3.getSeconds();if(l_ < 10){d7u.C$o(22);l_=d7u.d58(l_,2670 != 3630?1410 !== (7900,9053)?(1560,+"7250") == (204.55,606)?("e",816):"0":"1.67e+3" >> 0:142.99);}b4=M3.getMilliseconds();if(b4 < "10" * 1){d7u.M8Y(22);b4=d7u.d58(b4,"00");}else if(b4 < 100){d7u.C$o(22);b4=d7u.c6Y(b4,(6280,281) === (874.28,871.92)?508.62:1330 > 1999?(+"0.4","2367" << 96) <= 148.33?(9.77e+3,!!({})):(!![],"T"):"0");}if(G4 == "00" && F$ == K59 && l_ == "00" && b4 == s$O){d7u.M8Y(7);var u5r=d7u.c6Y(15,8778,9);d7u.C$o(30);var z8M=d7u.c6Y(8,164220,154552);d7u.C$o(67);var G11=d7u.c6Y(5890,5890,589);d7u.M8Y(0);var v_F=d7u.c6Y(11115,10530);d7u.M8Y(68);var R27=d7u.d58(1970,2,1978);d7u.M8Y(69);var V1k=d7u.d58(4,2100,10564,15);return I0 + (+"9500" <= (u5r,663.18)?("k",!"1"):(z8M,G11) != (131.47,388.51)?"-":(!"",!({}))) + S9 + ((v_F,R27) > (858.63,V1k)?"-":"I") + M3.getFullYear();}if(l_ == "00" && b4 == j8q){d7u.C$o(70);return d7u.d58((+"810.78",3980) < 6660?":":(2470,3596) <= (228.06,2372)?!({}):(8.17e+3,"858" ^ 0),S9,542 < 821.94?" ":(697.36,5880) < 4840?(342.02,"8.39e+2" ^ 0):(4.18e+3,+"107.40"),G4,395.78 < (4044,3660)?(7167,6950) !== (5031,2993)?"-":!!"1":(!1,![]),I0,F$);}if(b4 == "000"){d7u.C$o(71);return d7u.d58(I0,(567.82,9870) < (3390,8098)?0x6e8:":",S9,G4,l_,+"7662" < (+"2030",33.79)?9802 >= (8499,+"455.95")?(0x8c4,+"203.33"):(7.19e+3,"5.49e+3" ^ 0):":"," ",(664.35,"8910" >> 32) < +"551.62"?0x1581:(7094,7284) !== +"505.06"?"-":(228,512.74) !== 68.15?(!1,"j"):!({}),F$);}d7u.M8Y(72);return d7u.d58(G4,":"," ",3474 === 88?(![],"v"):(538.6,+"148") < (9686,6940)?("3980" * 1,+"4730") > (1810,2077)?":":!!1:(338.26,961.92),l_,F$,1868 == (+"7000",8710)?"i":+"448.39" >= (4880,2900)?(831.36,2929) < (+"532.41",822)?(2.50e+3,"7.81e+3" ^ 0):742.67:":",b4,S9,I0,18.38 <= (5644,3890)?("190.91" * 1,275) < (4550,7026)?"-":(8173,"655.27" - 0) < (448.12,9050)?("189.07" * 1,266.64):(307.66,!1):0x369);};k0.getYearDay=function(r_){d7u.J8h();var o7,V$,n2,C4,h5;o7=r_;if(!o7){o7=new Date();}d7u.M8Y(19);o7.setHours(0,d7u.c6Y(96,"0"),0,0);d7u.C$o(0);V$=new Date(o7.getFullYear(),d7u.c6Y("0",0),d7u.d58(0,"0",d7u.M8Y(19)));d7u.C$o(0);n2=d7u.d58(o7,V$);d7u.M8Y(73);C4=d7u.d58(60,1000,60,24);d7u.C$o(40);h5=Math.round(d7u.c6Y(C4,n2));return h5;};k0.getETDateTime=function(){var I_;I_=new Date();return k0.convertTimeZone(new Date(I_.getTime() + I_.getTimezoneOffset() * 60000),"UTC","America/New_York");};k0.fromET=function(r6){var k2,A0,F8,L4;k2=new Date();d7u.C$o(74);A0=d7u.c6Y("4",0);d7u.r2m();if(k2.getMonth() < "2" >> 32 || k2.getMonth() == 2 && k2.getDate() < ("11" | 11) || k2.getMonth() > 10 || k2.getMonth() == 10 && k2.getDate() >= ("4" ^ 0)){A0=5;}d7u.C$o(8);var L1_=d7u.d58(46800000,2250000,8);F8=r6.getTime() + L1_ * A0;L4=new Date(F8);return L4;};k0.monthAsDisplay=function(N8,J$,s9){if(J$){if(s9 && s9.monthLetters){return s9.monthLetters[N8];}return k0.monthLetters[N8];}if(s9 && s9.monthAbv){return s9.monthAbv[N8];}return k0.monthAbv[N8];};k0.timeAsDisplay=function(B$,E$,n5){var H0,m4,v1,o6,O1;H0=E$?E$.internationalizer:null;if(H0){if(n5 == k0.SECOND){return H0.hourMinuteSecond.format(B$);}else if(n5 == k0.MILLISECOND){return H0.hourMinuteSecond.format(B$) + "." + B$.getMilliseconds();}return H0.hourMinute.format(B$);}m4=B$.getMinutes();if(m4 < 10){d7u.M8Y(22);m4=d7u.c6Y(m4,(5485,+"703.61") <= (127,2120)?"0":![]);}v1=B$.getHours() + ":" + m4;d7u.J8h();o6="";if(n5 <= k0.SECOND){o6=B$.getSeconds();if(o6 < +"10"){d7u.C$o(22);o6=d7u.c6Y(o6,(+"6920",4920) > 1860?(53.3,2100) !== 2630?"0":7.27:("G",0xc67));}d7u.M8Y(22);v1+=d7u.d58(o6,":");}if(n5 == k0.MILLISECOND){O1=B$.getMilliseconds();if(O1 < 10){d7u.C$o(22);O1=d7u.d58(O1,"00");}else if(O1 < 100){d7u.C$o(22);O1=d7u.d58(O1,2305 < (51,9160)?"0":1413 <= (2520,+"1287")?(0x1055,"R"):7098 <= ("4242" << 0,4700)?(![],856.89):(+"6.52e+3",!!({})));}d7u.M8Y(22);v1+=d7u.c6Y(O1,+"7060" > (119.13,185.75)?".":"T");}return v1;};k0.displayableDate=function(x_,K$,Q7,R_){var j0D,e9,g7,l1,s4,z_,Z4L,P3X,j01,X1,R4,i2,O3,R_n,O$,W3,z7;j0D="millisec";j0D+="ond";e9="";d7u.r2m();g7=x_.layout.interval;l1=k0.ChartEngine.isDailyInterval(g7);s4=K$.xAxis.activeTimeUnit && K$.xAxis.activeTimeUnit <= k0.SECOND || x_.layout.timeUnit == "second";z_=K$.xAxis.activeTimeUnit && K$.xAxis.activeTimeUnit <= k0.MILLISECOND || x_.layout.timeUnit == j0D;function e6(I$){if(I$ < +"10"){d7u.C$o(22);return d7u.d58(I$,+"4820" == (842,530.25)?(+"0x57c",0x54a):3569 === 4109?(4270,9482) == (3786,"829.93" * 1)?0x207d:9.04e+3:"0");}return I$;}if(K$.xAxis.formatter){e9=K$.xAxis.formatter(Q7);}else if(x_.internationalizer){e9=x_.internationalizer.monthDay.format(Q7);if(s4 || z_){d7u.C$o(75);var T4z=d7u.d58(13,52012,4312,10,12);d7u.C$o(25);var c$e=d7u.d58(32320,28296,16);d7u.M8Y(22);var W5k=d7u.c6Y(1587,793);d7u.C$o(67);var z5o=d7u.c6Y(4253,4240,4253);d7u.M8Y(68);var k90=d7u.d58(2095,2,2103);d7u.C$o(25);var E$o=d7u.d58(383,7,4);e9+=(T4z > c$e?W5k !== z5o?" ":k90:E$o) + x_.internationalizer.hourMinuteSecond.format(Q7);if(z_){d7u.M8Y(22);var i2b=d7u.d58(17,9272);d7u.C$o(68);var D5e=d7u.c6Y(14,3,6);e9+=("1990" >> 0 != (i2b,"7588" | D5e)?".":"s") + Q7.getMilliseconds();}}else if(!l1){if(R_){e9=x_.internationalizer.yearMonthDay.format(Q7);}d7u.M8Y(76);var A9f=d7u.d58(10030,10043,1002,13);d7u.M8Y(77);var o1G=d7u.c6Y(94864,19,15,6775);d7u.C$o(22);var g0c=d7u.c6Y(17,245);d7u.C$o(0);var b87=d7u.c6Y(1722,2);d7u.M8Y(78);var w05=d7u.d58(13,2,7403,9);d7u.M8Y(67);var H_n=d7u.d58(476,3572,2);d7u.M8Y(78);var y37=d7u.c6Y(6,18,5368,10);d7u.M8Y(79);var O4v=d7u.d58(28708,16,20,30498);e9+=(A9f === o1G?"F":(g0c,b87) > +"7163"?(w05,94.2) > H_n?!!"1":(y37,O4v):" ") + x_.internationalizer.hourMinute.format(Q7);}else {Z4L=-1253199454;P3X=-156823918;j01=2;for(var Y3Z=1;d7u.O$R(Y3Z.toString(),Y3Z.toString().length,85259) !== Z4L;Y3Z++){if(g7 == "month"){e9=x_.internationalizer.yearMonth.format(Q7);}else {e9=x_.internationalizer.yearMonthDay.format(Q7);}j01+=2;}if(d7u.O$R(j01.toString(),j01.toString().length,17170) !== P3X){if(g7 != ""){e9=x_.internationalizer.yearMonth.format(Q7);}else {e9=x_.internationalizer.yearMonthDay.format(Q7);}}}}else {X1=e6(Q7.getMonth() + 1);R4=e6(Q7.getDate());i2=e6(Q7.getHours());O3=e6(Q7.getMinutes());if(l1){R_n="m";R_n+="o";R_n+="nth";e9=g7 == R_n?X1 + ((7040,276.35) != 3570?"/":(119,4.23e+3)):X1 + (1900 != 837.12?2565 < 103.73?0x2255:"/":!"1") + R4 + ((6901,427) != 5332?398.41 !== 695.79?"/":("1670" - 0,443.34) !== +"6430"?(0x23b0,![]):!1:"m");e9+=Q7.getFullYear();}else {d7u.C$o(53);O$=d7u.c6Y(X1,(5535,981.55) !== (+"2822",551.54)?(2730,4909) !== 2270?"/":+"0xd90":!!"",R4);if(R_){d7u.C$o(16);var t2z=d7u.c6Y(6,9,18,269);d7u.M8Y(0);var z85=d7u.c6Y(2595,1730);d7u.C$o(64);var X_x=d7u.d58(4055,3249,5,1);d7u.M8Y(80);var A9b=d7u.d58(26,16,62,9,11);O$+=("5530" * t2z !== (z85,X_x)?"/":(A9b,"b")) + Q7.getFullYear();}d7u.C$o(80);e9=d7u.c6Y(O3,i2,O$,(4110,430.8) >= (6160,6185)?(0x27c,127.45):(1512,826.51) > 5954?6.26e+3:":",+"5379" > (939.66,1460)?"6730" << 0 != +"2130"?(8037,+"730.52") === 1993?"Q":" ":(55.47,![]):0x85c);if(s4 || z_){W3=e6(Q7.getSeconds());d7u.M8Y(22);e9+=d7u.c6Y(W3,862 < ("6680" ^ 0,87)?(4490,7330) > 5468?7110 <= (2076,786.21)?(0xf26,"V"):"X":+"2.05e+2":":");if(z_){z7=e6(Q7.getMilliseconds());if(z7 < 100){d7u.M8Y(22);z7=d7u.c6Y(z7,"0");}d7u.C$o(22);e9+=d7u.d58(z7,(55.67,891) != (8234,205.39)?":":(2300,"3410" >> 64) != 566?"f":!0);}}}}return e9;};k0.convertTimeZone=function(H7,j6,x8){var a3;if(!Q1.Date){return H7;}a3=new Q1.Date(H7.getFullYear(),H7.getMonth(),H7.getDate(),H7.getHours(),H7.getMinutes(),H7.getSeconds(),H7.getMilliseconds(),j6);a3.setTimezone(x8);return a3;};k0.convertToLocalTime=function(p6,H2){var b7,q3,r5;if(!Q1.Date){return p6;}b7=p6.getSeconds();q3=p6.getMilliseconds();r5=new Q1.Date(p6.getFullYear(),p6.getMonth(),p6.getDate(),p6.getHours(),p6.getMinutes(),H2);return new Date(r5.getTime() + b7 * ("1000" ^ 0) + q3);};};C=j5=>{var C0t=x2dci;var P9,o_,e8,E_,Z8S;if(!j5.SplinePlotter){j5.SplinePlotter={};}P9=j5.CIQ;o_=j5.SplinePlotter;e8=function(N_,j2){var H3;if(!j2){return document.getElementById(N_);}if(j2.id == N_){return j2;}if(!j2.hasChildNodes){return null;}for(var H5=0;H5 < j2.childNodes.length;H5++){H3=e8(N_,j2.childNodes[H5]);if(H3){return H3;}}return null;};j5.$$=e8;E_=function(c0,i5){if(!i5){i5=document;}return i5.querySelectorAll(c0)[0];;};j5.$$$=E_;P9.wheelEvent=(function(){var t5H,F4w,l30;t5H="whe";t5H+="el";F4w="d";F4w+="i";F4w+="v";l30="undef";l30+="in";l30+="ed";if(typeof document === l30){return undefined;}if(P9.isIE || ("onwheel" in document.createElement(F4w))){return t5H;}if(document.onmousewheel !== undefined){return "mousewheel";}return "DOMMouseScroll";})();P9.newChild=function(N3,U8,R7,e5){var c7;c7=document.createElement(U8);C0t.J8h();if(R7){c7.className=R7;}N3.appendChild(c7);if(e5){c7.innerHTML=e5;}return c7;};P9.innerHTML=function(X$,h0){C0t.r2m();if(window.MSApp && window.MSApp.execUnsafeLocalFunction){window.MSApp.execUnsafeLocalFunction(function(){X$.innerHTML=h0;});}else {X$.innerHTML=h0;}};P9.focus=function(a7,u$){var v2;if(P9.isSurface || u$){v2=0;if(!isNaN(parseInt(u$,10))){v2=u$;}setTimeout(function(){C0t.J8h();a7.focus();},v2);}else {a7.focus();}};P9.blur=function(W1){if(!W1){W1=document.activeElement;}if(W1){W1.blur();}window.focus();};P9.findNodesByText=function(F3,a$){var V9,c_;if(F3.innerHTML == a$){return [F3];}V9=[];for(var c2=0;c2 < F3.childNodes.length;c2++){c_=P9.findNodesByText(F3.childNodes[c2],a$);if(c_){V9=V9.concat(c_);}}if(V9.length){return V9;}return null;};P9.hideByText=function(s8,s3){var E4;E4=P9.findNodesByText(s8,s3);C0t.J8h();for(var v8=0;v8 < E4.length;v8++){E4[v8].style.display="none";}};P9.pageHeight=function(){var {innerHeight:S_, top:V7, parent:O6, self:a9}=window;if(V7 != a9){try{if(S_ > O6.innerHeight){S_=O6.innerHeight;}}catch(j9){}}C0t.r2m();return S_;};C0t.r2m();P9.pageWidth=function(){var {innerWidth:w_, top:F0, parent:B5, self:v5}=window;if(F0 != v5){try{if(w_ > B5.innerWidth){w_=B5.innerWidth;}}catch(c3){}}C0t.J8h();return w_;};P9.stripPX=function(z6){if(!z6){return 0;}C0t.r2m();if(typeof z6 == "number"){return z6;}return parseInt(z6.substr(0,z6.indexOf("p")),10);};P9.withinElement=function(D6,W7,x9){var X7;X7=D6.getBoundingClientRect();if(W7 <= X7.left){return !!"";}if(x9 <= X7.top){return ![];}if(W7 >= X7.left + D6.offsetWidth){return ![];}if(x9 >= X7.top + D6.offsetHeight){return !"1";}return !!({});};P9.efficientDOMUpdate=function(a2,F6,O7){if(a2[F6] !== O7){a2[F6]=O7;return !![];}C0t.r2m();return !({});};P9.cqvirtual=function(i6){var P0;if(!i6){return;}P0=i6.cloneNode(!![]);P0.innerHTML="";P0.original=i6;return P0;};P9.cqrender=function(k$){var b5;if(!k$){return;}if(k$.innerHTML == k$.original.innerHTML){return k$.original;}P9.removeChildIfNot(k$.original,"template");C0t.r2m();b5=Array.from(k$.children);if(b5.length){b5.forEach(function(h6){k$.original.appendChild(k$.removeChild(h6));});}return k$.original;};P9.removeChildIfNot=function(X8,p3){var u3;C0t.r2m();u3=Array.from(X8.children);if(u3.length){u3.forEach(function(F2){if(!p3 || !F2.matches(p3)){X8.removeChild(F2);}});}return X8;};P9.safeMouseOut=function(y5,T4){y5.addEventListener("mouseout",Y2(y5,T4));function Y2(u_,H8){C0t.J8h();return function(I2){C0t.r2m();var w$$;w$$="u";w$$+="ndefi";w$$+="ned";if(typeof I2.pageX == w$$){I2.pageX=I2.clientX;I2.pageY=I2.clientY;}if(P9.withinElement(u_,I2.pageX,I2.pageY)){return;}u_.stxMouseOver=![];H8(I2);};}};P9.safeMouseOver=function(u6,h3){u6.addEventListener("mouseover",w7(u6,h3));C0t.J8h();function w7(C_,D3){return function(A2){if(typeof A2.pageX == "undefined"){A2.pageX=A2.clientX;A2.pageY=A2.clientY;}if(P9.withinElement(C_,A2.pageX,A2.pageY)){if(C_.stxMouseOver){return;}C_.stxMouseOver=!!1;D3(A2);}};}};P9.installTapEvent=function(U3,x6){var w5;C0t.r2m();w5=function(z4){var w4g,y06,C2,t9V,o4D,N_3;w4g="und";w4g+="ef";w4g+="i";w4g+="ned";y06="st";y06+="x";y06+="tap";C2=new Event(y06,{bubbles:!!"1",cancelable:!!({})});if(typeof z4.pageX == w4g){z4.pageX=z4.clientX;z4.pageY=z4.clientY;}C2.pageX=z4.pageX;t9V=-2029794677;C0t.M8Y(19);o4D=-C0t.c6Y(64,"788278568");N_3=2;for(var g7u=+"1";C0t.O$R(g7u.toString(),g7u.toString().length,20029) !== t9V;g7u++){C2.pageY=z4.pageY;C0t.C$o(38);N_3+=C0t.d58("2",1);}if(C0t.q2D(N_3.toString(),N_3.toString().length,95613) !== o4D){C2.pageY=z4.pageY;}z4.target.dispatchEvent(C2);if(x6 && x6.stopPropagation){z4.stopPropagation();}};P9.safeClickTouch(U3,w5,x6);};P9.safeClickTouch=function(u4,J3,C9){var S7W,Y_,G2,J0,k3,Y0,V_,T$R,O1p,V5V,j$,W$,h0m,n_4,Q4l;S7W="point";S7W+="e";S7W+="ru";S7W+="p";if(!C9){C9={};}Y_={};if(!C9.allowMultiple){P9.clearSafeClickTouches(u4);}if(C9.preventUnderlayClick !== !"1"){C9.preventUnderlayClick=!![];}if(C9.absorbDownEvent !== ![]){C9.absorbDownEvent=!"";}C9.allowAnotherDevice=0;C9.registeredClick=!({});G2=u4.safeClickTouchEvents;if(!G2){G2=u4.safeClickTouchEvents=[];}J0=D8("mouseup",C9,Y_);k3=D8("touchend",C9,Y_);Y0=D8(S7W,C9,Y_);V_=function(I7){I7.stopPropagation();};T$R=-1419556650;O1p=-27149222;V5V=2;function q5(q6,b0){C0t.J8h();return function(M5){C0t.J8h();var D2,Q$,T5v,b5R,C8w;D2=M5.clientX?M5.clientX:M5.pageX;Q$=M5.clientY?M5.clientY:M5.pageY;if(b0){q6.t=new Date().getTime();T5v=93380431;b5R=-656741645;C8w=2;for(var H8c=1;C0t.O$R(H8c.toString(),H8c.toString().length,35238) !== T5v;H8c++){q6.x=D2;C8w+=2;}if(C0t.O$R(C8w.toString(),C8w.toString().length,63843) !== b5R){q6.x=D2;}q6.x=D2;q6.y=Q$;}else if(q6.x){if(Math.pow(q6.x - D2,2) + Math.pow(q6.y - Q$,2) > "16" - 0){q6.t=null;}}};}for(var S3e=1;C0t.q2D(S3e.toString(),S3e.toString().length,82640) !== T$R;S3e++){j$={};V5V+=+"2";}if(C0t.O$R(V5V.toString(),V5V.toString().length,89913) !== O1p){j$={};}j$={};function D8(Z2,Q6,N1){C0t.J8h();return function(B9){var D5;if(!P9.safeClickTouchEvent){if(!N1.t){return;;}D5=N1.t;N1.t=null;if(D5 + 1000 < new Date().getTime()){return;};}if(Q6.safety && Q6.safety.recentlyDragged){return;}if(B9.which && B9.which >= 2 || B9.button && B9.button >= 2){return;}if(Q6.preventUnderlayClick){if(B9.target.tagName !== "INPUT"){B9.preventDefault();}}else {if(Q6.lastType != Z2 && Date.now() < Q6.allowAnotherDevice){return;}Q6.lastType=Z2;C0t.C$o(81);var r_N=C0t.d58(16,13000,16,3327000);Q6.allowAnotherDevice=Date.now() + r_N;;}J3(B9);};}if(P9.safeClickTouchEvent){W$=D8(P9.safeClickTouchEvent,C9);u4.addEventListener(P9.safeClickTouchEvent,W$);j$[P9.safeClickTouchEvent]=W$;G2.push(j$);}else if(("onpointerup" in document) && !P9.noPointerEvents){u4.addEventListener("pointerdown",q5(Y_,!!({})));u4.addEventListener("pointermove",q5(Y_));u4.addEventListener("pointerup",Y0);j$.pointerup=Y0;if(C9.absorbDownEvent){u4.addEventListener("pointerdown",V_);j$.pointerdown=V_;}G2.push(j$);}else {h0m="to";h0m+="u";h0m+="ch";h0m+="move";n_4="to";n_4+="uc";n_4+="hstart";u4.addEventListener("mousedown",q5(Y_,!""));u4.addEventListener("mousemove",q5(Y_));u4.addEventListener(n_4,q5(Y_,!!1));u4.addEventListener(h0m,q5(Y_));u4.addEventListener("mouseup",J0);u4.addEventListener("touchend",k3);j$.mouseup=J0;j$.touchend=k3;if(C9.absorbDownEvent){Q4l="moused";Q4l+="own";u4.addEventListener(Q4l,V_);j$.mousedown=V_;u4.addEventListener("touchstart",V_);j$.touchstart=V_;}G2.push(j$);}};P9.clearSafeClickTouches=function(f7){C0t.r2m();var n6,m9,m$;n6=f7.safeClickTouchEvents;if(!n6){return;}for(var d8=0;d8 < n6.length;d8++){m9=n6[d8];for(var M0 in m9){m$=m9[M0];f7.removeEventListener(M0,m$);}}f7.safeClickTouchEvents=null;};P9.safeDrag=function(w9,n$){var A7E,U_6,C2d,H1Z,e$,q$,b6,m8,j3,f3,Q3,z3;A7E="t";C0t.J8h();function t$(D0){return function(j1){var e2,P_;if(j3){return;}j3=!!1;P9.ChartEngine.ignoreTouch=!!({});e2=function(U5){var b7U,q79,D4u;if(U5 && U5.preventDefault){U5.preventDefault();}z3.recentlyDragged=!"";C0t.C$o(46);b7U=-C0t.c6Y("2059865880",64);q79=-+"1992592325";C0t.C$o(20);D4u=C0t.c6Y("2",0);for(var J7r=1;C0t.q2D(J7r.toString(),J7r.toString().length,41852) !== b7U;J7r++){U5.displacementX=q$(U5) * f3;D4u+=2;}if(C0t.O$R(D4u.toString(),D4u.toString().length,79583) !== q79){U5.displacementX=q$(U5) - f3;}U5.displacementY=b6(U5) - Q3;n$.move(U5);};if(n$.move){document.body.addEventListener(D0.move,e2);}P_=function(R6){P9.ChartEngine.ignoreTouch=![];if(n$.move){document.body.removeEventListener(D0.move,e2);}document.body.removeEventListener(D0.up,P_);C0t.r2m();R6.displacementX=q$(R6) - f3;R6.displacementY=b6(R6) - Q3;if(n$.up){n$.up(R6);}setTimeout(function(){z3.recentlyDragged=!"1";},50);};document.body.addEventListener(D0.up,P_);setTimeout(function(){C0t.J8h();j3=!({});},m8);f3=q$(j1);Q3=b6(j1);if(n$.down){n$.down(j1);}};}A7E+="o";A7E+="uc";A7E+="hend";U_6="p";U_6+="ointe";U_6+="r";U_6+="move";C2d="po";C2d+="i";C2d+="nt";C2d+="erdown";H1Z="cli";H1Z+="entX";e$=function(L7,Z6){C0t.J8h();return function(X3){if(X3.touches){if(X3.touches.length > 0){C0t.C$o(74);return X3.touches[C0t.d58("0",0)][L7];}else if(X3.changedTouches && X3.changedTouches.length > 0){return X3.changedTouches[0][L7];}}return typeof X3[L7] !== "undefined"?X3[L7]:X3[Z6];};};q$=e$("pageX",H1Z);b6=e$("pageY","clientY");if(typeof n$ === "function"){n$={down:arguments["1" ^ 0],move:arguments[2],up:arguments[3]};}n$=n$ || ({});m8=100;j3=![];f3=0;Q3=+"0";z3={recentlyDragged:!({})};w9.addEventListener("mousedown",t$({down:"mousedown",move:"mousemove",up:"mouseup"}));w9.addEventListener("pointerdown",t$({down:C2d,move:U_6,up:"pointerup"}));w9.addEventListener("touchstart",t$({down:"touchstart",move:"touchmove",up:A7E}),{passive:!!0});return z3;};P9.inputKeyEvents=function(w0,d1){w0.addEventListener("keyup",function(j7){var v9;v9=j7.keyCode;switch(v9){case 13:d1();break;case 27:w0.value="";break;default:break;}},!!0);};P9.fixScreen=function(){C0t.C$o(0);window.scrollTo(C0t.c6Y("0",0),0);};P9.setCaretPosition=function(o2,Z3){var N5;C0t.J8h();o2.style.zIndex=+"5000";if(o2.setSelectionRange){P9.focus(o2);try{o2.setSelectionRange(Z3,Z3);}catch(s6){}}else if(o2.createTextRange){N5=o2.createTextRange();N5.collapse(!0);N5.moveEnd("character",Z3);N5.moveStart("character",Z3);N5.select();}};P9.setValueIfNotActive=function(J1,f5){if(document.activeElement == J1){return;}J1.value=f5;};P9.hideKeyboard=function(c9){var i1l,p9;i1l="IN";i1l+="P";i1l+="U";i1l+="T";p9=document.activeElement;if(p9.tagName == i1l || p9.tagName == "TEXTAREA"){p9.blur();window.focus();if(c9){if(c9 === document.body || document.body.contains(c9)){c9.focus();}}}};P9.smartHover=function(){var B7,f$,i8L,h5P,o_M;if(!document || document.documentElement.hasAttribute("ciq-last-interaction")){return;}function Q8(T8){var B7V;B7V="to";B7V+="u";B7V+="ch";clearTimeout(f$);B7=!!({});if(document.documentElement.getAttribute("ciq-last-interaction") != "touch"){r7(B7V);}f$=setTimeout(function(){C0t.J8h();B7=![];},500);}B7=![];document.addEventListener("touchend",Q8,!({}));function r7(X_){C0t.J8h();document.documentElement.setAttribute("ciq-last-interaction",X_);}document.addEventListener("mouseover",y_,!({}));function y_(k1){C0t.r2m();if(!B7){r7("mouse");}}i8L=-1349354765;h5P=-69100854;o_M=2;for(var U6j=+"1";C0t.O$R(U6j.toString(),U6j.toString().length,23643) !== i8L;U6j++){r7("");o_M+=2;}if(C0t.q2D(o_M.toString(),o_M.toString().length,"91616" >> 0) !== h5P){r7("");}};P9.translatableTextNode=function(h8,g1,q7){var S1;C0t.J8h();if(h8.translationCallback){S1=document.createElement("translate");S1.setAttribute("original",g1);S1.innerHTML=h8.translationCallback(g1,q7);return S1;}return document.createTextNode(g1);};P9.climbUpDomTree=function(E9,Q2){var l4;C0t.r2m();if(!(E9 instanceof HTMLElement)){return null;}l4=[];while(E9){if(!Q2 || E9.matches(Q2)){l4.push(E9);}E9=E9.parentElement;}return l4;};P9.guaranteedSize=function(P7){var U2,e3;if(P7 === document){P7=window;}if(!P7.nodeType){return {width:P7.innerWidth,height:P7.innerHeight};}C0t.J8h();if(!P7 || P7.nodeType > 1){return {};}U2=P7.offsetWidth;e3=P7.offsetHeight;while(!U2 || !e3){if(P7.tagName === "BODY" || P7 === window){if(!U2){U2=window.innerWidth;}if(!e3){e3=window.innerHeight;}break;}P7=P7.parentElement;if(!U2){U2=P7.offsetWidth;}if(!e3){e3=P7.offsetHeight;}}return {width:U2,height:e3};};P9.trulyVisible=function(K8){var i73,e7;i73="hidd";i73+="e";i73+="n";if(!K8){return !![];}e7=getComputedStyle(K8);if(e7.opacity === ((6590,7250) <= ("6680" ^ 0,4890)?636.85:"0")){return !({});}if(e7.display === "none"){return ![];}if(e7.visibility === i73){return ![];}if(parseInt(e7.width,10) === 0){return !!0;}if(parseInt(e7.height,10) === 0 && e7.overflowY == "hidden"){return !({});}return P9.trulyVisible(K8.parentElement);};P9.elementDimensions=function(I9,C0){var K6w,G7,Z$,Q9,K3,X0z,S_6,A_;K6w="w";K6w+="id";C0t.J8h();K6w+="t";K6w+="h";if(!I9 || I9.nodeType !== 1){return {};}G7=getComputedStyle(I9);Z$={width:parseFloat(G7.width),height:parseFloat(G7.height)};Q9={margin:{},border:{},padding:{}};K3=[K6w,"height"];for(var t5 in Q9){X0z="B";X0z+="ottom";S_6="Wi";S_6+="dt";S_6+="h";A_=t5 == "border"?S_6:"";Q9[t5]={width:parseFloat(G7[t5 + "Left" + A_]) + parseFloat(G7[t5 + "Right" + A_]),height:parseFloat(G7[t5 + "Top" + A_]) + parseFloat(G7[t5 + X0z + A_])};}if(C0 && C0.margin){K3.forEach(function(X6){Z$[X6]+=Q9.margin[X6];});}if(C0 && G7.boxSizing === "content-box"){if(C0.padding){K3.forEach(function(v7){Z$[v7]+=Q9.padding[v7];});}if(C0.border){K3.forEach(function(Z_){Z$[Z_]+=Q9.border[Z_];});}}else if(G7.boxSizing === "border-box"){if(!C0 || !C0.padding){K3.forEach(function(K5){C0t.r2m();Z$[K5]-=Q9.padding[K5];});}if(!C0 || !C0.border){K3.forEach(function(a8){C0t.J8h();Z$[a8]-=Q9.border[a8];});}}return Z$;};P9.resizeObserver=function(F4,H9,N0,T6){if(T6){if(typeof ResizeObserver !== "undefined"){if(!N0){N0=new ResizeObserver(H9);N0.observe(F4);}}else {if(N0){clearInterval(N0);}N0=setInterval(H9,T6);}}else {if(N0){if(typeof ResizeObserver !== "undefined"){N0.disconnect();}else {clearInterval(N0);}}N0=null;}return N0;};P9.getLines=function(W0,N4,s5){var C6,F_,W2,Q5,V5,I8;C6=N4.split((+"78.6",9880) != (3295,5561)?(4280,7598) < 671?(242.92,0xc8d):" ":(9.16e+2,0x1c0c));F_=[];C0t.r2m();W2="";Q5=0;V5=!!"";for(var w6=0;w6 < C6.length;w6++){I8=C6[w6];Q5=W0.measureText(W2 + I8).width;if(Q5 < s5){if(V5){W2+=" ";}V5=!!({});W2+=I8;}else {F_.push(W2);W2=I8;}if(w6 === C6.length - 1){F_.push(W2);break;}}return F_;};P9.alert=function(Q_){C0t.r2m();var W_y,z$t,l6B;W_y=-1923671589;z$t=-2106280244;l6B=2;for(var W6x=1;C0t.O$R(W6x.toString(),W6x.toString().length,27188) !== W_y;W6x++){if(typeof window !== "undefined"){window.alert(Q_);}else {console.log(Q_);}l6B+=2;}if(C0t.O$R(l6B.toString(),l6B.toString().length,61558) !== z$t){if(-window === ""){window.alert(Q_);}else {console.log(Q_);}}};try{Z8S="undefin";Z8S+="e";Z8S+="d";if(typeof localStorage !== Z8S){P9.localStorage=localStorage;}}catch(E3){}if(!P9.localStorage){P9.localStorage={items:{},getItem:function(o3){C0t.r2m();return P9.localStorage.items[o3] || null;},setItem:function(p$,Z4){C0t.r2m();P9.localStorage.items[p$]=Z4;},removeItem:function(Y5){delete P9.localStorage.items[Y5];}};}P9.privateBrowsingAlert=!({});P9.localStorageSetItem=function(v0,X0){try{P9.localStorage.setItem(v0,X0);}catch(k8){if(!P9.privateBrowsingAlert){P9.alert("No storage space available. Possible causes include browser being in Private Browsing mode, or maximum storage space has been reached.");P9.privateBrowsingAlert=!!({});}}};};E=u9=>{var R_k=x2dci;var n1_,o6Y,u0c,X_R,X0B,T5e,I4,z1;n1_="ca";n1_+="ndl";n1_+="e";o6Y="d";o6Y+="ay";u0c="m";u0c+="i";u0c+="nut";u0c+="e";X_R="mont";X_R+="h";X0B="mi";X0B+="n";X0B+="ute";T5e="r";T5e+="oundRectAr";R_k.r2m();T5e+="row";I4=u9.CIQ;I4.ChartEngine=function(J4){var D_,K2;if(!J4){J4={container:null};}else if(typeof HTMLDivElement != "undefined" && J4.constructor == HTMLDivElement){D_={container:J4};J4=D_;}for(var i7 in z1){this[i7]=I4.clone(I4.ChartEngine.prototype[i7]);}this.container=null;this.createChartPanel=!"";this.markers={};this.panels={};this.overlays={};this.charts={};this.eventListeners=[];this.controls={};this.goneVertical=!1;this.pinchingScreen=![];this.grabbingScreen=!1;this.grabStartX=0;this.grabStartY=0;this.grabStartScrollX=0;this.grabStartScrollY=0;this.swipe={};this.grabStartCandleWidth=0;R_k.M8Y(20);this.grabStartZoom=R_k.c6Y("0",0);this.grabOverrideClick=!!"";this.grabMode="";this.vectorsShowing=!"1";this.mouseMode=!![];this.lineTravelSpacing=!!0;this.highlightedDataSetField=null;this.anyHighlighted=!!"";this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();this.displayCrosshairs=!![];this.hrPanel=null;this.editingAnnotation=![];this.openDialog="";this.touches=[];this.changedTouches=[];this.crosshairTick=null;this.crosshairValue=null;this.pt={x1:-1,x2:-1,y1:-1,y2:-1};R_k.C$o(20);this.moveA=-R_k.d58("1",0);this.moveB=-1;this.touchStartTime=-1;this.touchPointerType="";this.gestureStartDistance=-1;this.grabStartPeriodicity=1;this.grabEndPeriodicity=-1;this.scrollEvent=null;this.cmd=!!0;this.ctrl=!({});this.shift=!!"";this.userPointerDown=![];this.cloneDrawing=!!0;this.insideChart=!!0;this.overXAxis=!({});this.overYAxis=!1;this.displayInitialized=!!0;this.cx=null;this.isHistoricalModeSet=null;this.cy=null;this.clicks={s1MS:-1,e1MS:-1,s2MS:-("1" ^ 0),e2MS:-+"1"};this.cancelTouchSingleClick=!1;this.locale=null;this.dataZone=null;this.displayZone=null;this.timeZoneOffset=+"0";this.masterData=null;this.transformDataSetPre=null;this.transformDataSetPost=null;this.dataCallback=null;this.drawingObjects=[];this.undoStamps=[];this.useBackgroundCanvas=![];this.mainSeriesRenderer=null;this.styles={};this.plugins={};this.currentVectorParameters=I4.clone(I4.ChartEngine.currentVectorParameters);this.chart=new I4.ChartEngine.Chart();K2=this.chart;K2.name="chart";K2.yAxis.name="chart";K2.canvas=null;K2.tempCanvas=null;K2.container=J4.container;if(I4.Market){K2.market=new I4.Market();}this.charts.chart=K2;I4.extend(this,J4);if(J4.container){if(this.registerHTMLElements){this.registerHTMLElements();}K2.width=K2.container.clientWidth - K2.yAxis.width;this.setCandleWidth(this.layout.candleWidth,K2);K2.canvasHeight=K2.container.clientHeight;}this.construct();};I4.ChartEngine.drawingLine=![];I4.ChartEngine.resizingPanel=null;R_k.C$o(38);I4.ChartEngine.crosshairX=R_k.c6Y("0",1);I4.ChartEngine.crosshairY=+"0";I4.ChartEngine.useAnimation=!"";I4.ChartEngine.enableCaching=![];I4.ChartEngine.ignoreTouch=!"1";I4.ChartEngine.useOldAndroidClear=!!({});I4.ChartEngine.currentVectorParameters={};I4.ChartEngine.defaultDisplayTimeZone=null;I4.ChartEngine.pluginBasePath="plugins/";I4.ChartEngine.registeredContainers=[];I4.ChartEngine.registerHelpers=function(R9){I4.ChartEngine.helpersToRegister.forEach(function(U6){R_k.r2m();U6(R9);});};I4.ChartEngine.helpersToRegister=[];I4.ChartEngine.prototype.construct=function(){var k$2,s5K;if(this.createChartPanel){k$2="c";k$2+="hart";s5K="ch";s5K+="ar";s5K+="t";this.stackPanel(s5K,k$2,1);this.adjustPanelPositions();this.chart.panel=this.panels[this.chart.name];}this.cx=0;this.cy=0;this.micropixels=0;this.callbackListeners={doubleTap:[],doubleClick:[],drawing:[],drawingEdit:[],floatingWindow:[],layout:[],longhold:[],move:[],newChart:[],notification:[],periodicity:[],preferences:[],rightClick:[],scroll:[],studyOverlayEdit:[],studyPanelEdit:[],symbolChange:[],symbolImport:[],tap:[],theme:[],undoStamp:[]};R_k.r2m();I4.ChartEngine.registerHelpers(this);};z1={longHoldTime:700,yTolerance:100,minimumLeftBars:"1" << 32,reverseMouseWheel:!({}),mouseWheelAcceleration:!"",minimumCandleWidth:1,maximumCandleWidth:200,minimumZoomTicks:9,allowZoom:!"",allowScroll:!"",allowSideswipe:!0,allowThreeFingerTouch:!1,bypassRightClick:{series:!({}),study:!!"",drawing:!!0},adjustHighlightedDataSetField:function(G$){R_k.r2m();return G$;},displayIconsUpDown:!!({}),displayIconsSolo:!!({}),displayIconsClose:!0,displayPanelResize:!0,soloPanelToFullScreen:!"1",markerDelay:null,useBackingStore:!!({}),disableBackingStoreDuringTouch:I4.isMobile || I4.isSurface && I4.isFF,captureTouchEvents:!!"1",captureMouseWheelEvents:!!({}),tapForHighlighting:!![],doubleClickTime:250,yaxisLabelStyle:T5e,axisBorders:null,singleDrawingHighlight:!![],crosshairXOffset:-+"40",crosshairYOffset:-40,extendLastTick:!"1",translationCallback:null,dontRoll:!1,allowEquations:!"",cleanupGaps:!1,staticRange:!({}),maxDataSetSize:20000,maxMasterDataSize:0,resizeDetectMS:1000,xAxisAsFooter:!!({}),xaxisHeight:+"30",displayGridLinesInStudies:!({}),escapeOnSerialize:!![],candleWidthPercent:0.65,colorByCandleDirection:!({}),noWicksOnCandles:{renko:!![],linebreak:!!1},fetchMaximumBars:{rangebars:!![],kagi:!![],renko:!![],linebreak:!![],pandf:!!({})},startComparisonsAtFirstVisibleBar:!({}),animations:{zoom:{isStub:!![],run:function(N9,l24,M$_){R_k.J8h();N9(M$_);},stop:function(){},reset:function(){},running:!"1",hasCompleted:!""}},staticRangePeriodicityMap:[{rangeInMS:I4.WEEK,periodicity:1,interval:5,timeUnit:"minute"},{rangeInMS:I4.MONTH,periodicity:1,interval:"30" * 1,timeUnit:X0B},{rangeInMS:I4.YEAR,periodicity:+"1",interval:"day"},{rangeInMS:I4.DECADE,periodicity:1,interval:"week"},{rangeInMS:I4.DECADE * 10,periodicity:"1" | 1,interval:X_R},{rangeInMS:Number.MAX_VALUE,periodicity:"12" << 32,interval:"month"}],dynamicRangePeriodicityMap:[{interval:+"1",timeUnit:"minute",rangeInMS:I4.MINUTE},{interval:5,timeUnit:"minute",rangeInMS:I4.MINUTE * 5},{interval:30,timeUnit:"minute",rangeInMS:I4.MINUTE * 30},{interval:60,timeUnit:u0c,rangeInMS:I4.MINUTE * 60},{interval:"day",rangeInMS:I4.DAY},{interval:"month",rangeInMS:I4.MONTH},{interval:"year",rangeInMS:I4.YEAR}],layout:{interval:o6Y,periodicity:1,timeUnit:null,candleWidth:8,flipped:!({}),volumeUnderlay:![],adj:!0,crosshair:!"1",chartType:n1_,extended:!!0,marketSessions:{},aggregationType:"ohlc",chartScale:"linear",studies:{},panels:{},setSpan:{},outliers:![]},preferences:{currentPriceLine:![],dragging:{series:!"",study:!!({}),yaxis:!!1},drawings:null,highlightsRadius:10,highlightsTapRadius:30,magnet:!"1",horizontalCrosshairField:null,labels:!!({}),language:null,timeZone:null,whitespace:50,zoomInSpeed:null,zoomOutSpeed:null,zoomAtCurrentMousePosition:!({})},streamParameters:{count:0,maxWait:1000,maxTicks:100,timeout:-1},autoPickCandleWidth:{turnOn:!"1",candleWidth:5}};I4.extend(I4.ChartEngine.prototype,z1);I4.ChartEngine.NONE=0;I4.ChartEngine.CLOSEUP=1;R_k.C$o(20);I4.ChartEngine.CLOSEDOWN=R_k.c6Y("2",0);I4.ChartEngine.CLOSEEVEN=+"4";I4.ChartEngine.CANDLEUP=8;I4.ChartEngine.CANDLEDOWN=16;I4.ChartEngine.CANDLEEVEN=32;;};K=O3W=>{var s3V=x2dci;var I7h;I7h=O3W.CIQ;I7h.convertFutureMonth=function(K8f){var a86,f_j,y2N,V4$;a86="1";a86+="2";f_j="1";f_j+="1";y2N=K8f.toString();if(y2N.length <= 0 || y2N.length > 2){return "";}switch(y2N){case "1":return "F";case ("6370" ^ 0) < ("161.21" * 1,+"274")?(846.24,8.96e+3):"2":return 4215 > (6592,5210)?4.39e+3:9190 !== 7255?"G":(+"18.42",2777) != +"8650"?![]:![];case "3":return (1000,150.8) !== "95.13" * 1?"H":4.66e+3;case "4":return "J";case 8829 >= ("1920" ^ 0)?993.15 != 8890?(8975,4820) != 787.26?"5":![]:(!1,0xd24):("P",4.86e+3):return 3120 <= 282?"i":"K";case 287.43 !== (7515,"931.27" * 1)?"6":!"1":return 4670 > (+"9454",2951)?"M":100.96;case (83,646.94) != 324?"7":(+"6.66e+3","O"):return "N";case "8":return "Q";case "9":return (87,"6871" - 0) != 944.53?(6800,980) != +"703.95"?"U":(473.98,96) > "5576" - 0?6.43e+3:("M",!!({})):![];case "10":return (2295,8160) > (+"869",2920)?+"2530" == "917" << 32?1390 <= 7542?("d",!!0):!!0:"V":(0x1f87,0x141c);case f_j:return (472.79,293) > (179,2390)?(627.78,3.53e+3):"X";case a86:return (+"2240",+"2606") != 973.76?(+"144.13",5650) >= (2789,64.6)?"Z":(2056,3136) <= 4120?"Q":"i":(!!"",!!1);case (3373,5635) >= (6400,232)?"F":(5950,"4980" - 0) != ("8551" * 1,8130)?("713.72" - 0,395.97):(0x1dc4,![]):return 9913 !== 432?"1":(5270,"5120" << 64) < (2792,"8920" * 1)?!({}):!![];case "G":return "2";case (4667,"361.85" - 0) <= 7590?(3824,135.99) != ("6048" << 0,549.76)?"H":5200 < 85.77?3.76e+3:(7.27e+3,"722.40" * 1):(+"6.89e+2",210.41):return "3";case "J":return "4";case "K":return "5";case 12.84 > 373?(3290,"84.08" * 1) <= ("67.28" * 1,6124)?+"6431" != 847.29?(99.24,!"1"):"z":("J",!!"1"):"M":return "6";case "N":return 4217 === ("543.02" - 0,6300)?("m",100.11):5942 > (+"6090",5110)?4770 < ("423.61" * 1,+"3236")?("A",0x2293):"7":0xcce;case (8660,4946) > (9640,199)?(804.58,"642.74" - 0) >= (4980,"744.36" * 1)?2370 >= ("399.31" - 0,8900)?("0x226a" | 64,8.53e+3):(+"0x1b2f",+"789.26"):"Q":450.54:return +"9910" >= 36.13?"8":8167 < "815.25" * 1?(+"6.61e+3",!!({})):306.16;case 9470 < (9621,4830)?(3720,621.82) != (6480,2863)?0xf63:4.89e+3:"U":return "520.57" - 0 != (432.45,9971)?"9":7155 > 1088?(+"139.5",2706) == 4231?0xa7f:(!!1,3.28e+3):![];case "V":V4$="1";V4$+="0";return V4$;case "X":return "11";case 1795 !== (7260,973)?420.6 >= 746.85?("j",29.66):297.8 != (818.67,271.45)?"Z":!![]:8.84e+3:return "12";}return y2N;};I7h.money=function(h$_,R9I,Z5i){s3V.J8h();if(!Z5i){Z5i="$";}if(Z5i.length == 3){Z5i+=" ";}if(!R9I && R9I !== 0){R9I=2;}return Z5i + I7h.commas((Math.round(h$_ * 10000) / 10000).toFixed(R9I));};I7h.convertCurrencyCode=function(v6H){var x2A,A4Z,o4v,p0Q;x2A="\u0440";x2A+="\u0443";x2A+="\u0431";A4Z="M";A4Z+="X";A4Z+="$";o4v={JPY:1480 >= (3508,"1914" - 0)?952.95:"¥",USD:268.6 < (6360,2883)?(9710,+"5357") <= (+"3707",7037)?"$":(9260,5736) != (2980,4830)?0x1382:(0x1aa1,!0):5.33e+3,AUD:"A$",BRL:"R$",CAD:"CA$",CNY:"CN¥",CZK:"Kč",DKK:"kr",EUR:4080 === 5610?"0x22c7" << 64:"775.02" * 1 !== (393.24,2520)?7300 !== 3990?"€":(0x971,5.99e+3):2.03e+3,GBP:(2560,7804) > 409?(778,2660) !== +"383.58"?1150 === (855,"825.43" - 0)?819.66:"£":8.02e+3:931.31,HKD:"HK$",HUF:"Ft",ILS:(932,242.32) != (3354,35)?(612.76,9240) <= "965.78" * 1?(+"0x2554","g"):"₪":!"",INR:"₹",KRW:"₩",MXN:A4Z,NOK:"kr",NZD:"NZ$",PLN:"zł",RUB:x2A,SAR:4980 < (103.95,860.9)?(!1,!![]):"﷼",SEK:"kr",SGD:"S$",THB:(909.84,2510) >= ("8435" | 81,4540)?0x168d:(5980,8400) >= +"747.17"?"฿":(5.53e+3,0xa29),TRY:(590,+"378.1") <= 4261?"₺":(3960,+"800") >= (8.89,9950)?(+"525",+"150.67"):556 === 275.38?(!!"",!({})):(5.68e+3,"c"),TWD:"NT$",VND:(6257,956.97) === (8591,"264.52" - 0)?(5.99e+2,0x2293):"₫",XAF:"FCFA",XCD:"EC$",XOF:"CFA",XPF:"CFPF",ZAR:(2340,+"561") >= "2490" << 32?(723,4.76e+3):+"979.93" !== "7110" - 0?"R":("s",0x5a0)};p0Q=o4v[v6H];if(p0Q){return p0Q;}return v6H;};I7h.commas=function(X0G){s3V.J8h();return X0G.toString().replace(/\B(?=(\d{3})+(?!\d))/g,(5683,8370) === (3357,380)?55.84:+"629.23" <= "783.62" * 1?(75.29,3177) != 6684?",":"x":!!"");};I7h.cleanPeriodicity=function(w2N,D0e,P8T){var j9v,Y0Z,x$M,M7y,a$Q,b61,q11;j9v="h";j9v+="o";s3V.r2m();j9v+="ur";if(isNaN(w2N)){w2N=1;}Y0Z=-1101956672;x$M=-270753879;M7y=2;for(var z02=1;s3V.O$R(z02.toString(),z02.toString().length,53220) !== Y0Z;z02++){if(!D0e){D0e=1;}M7y+=2;}if(s3V.q2D(M7y.toString(),M7y.toString().length,17676) !== x$M){if(~D0e){D0e=4;}}if(!isNaN(D0e) && P8T){a$Q="mill";a$Q+="i";a$Q+="second";b61="mi";b61+="nute";if(!(P8T == "hour" || P8T == b61 || P8T == "second" || P8T == a$Q)){D0e=P8T;P8T=null;}}else if(D0e == "tick"){P8T=null;}else if(!P8T && !isNaN(D0e)){P8T="minute";}if(P8T == j9v){P8T="minute";s3V.M8Y(38);D0e=s3V.d58(D0e,60);}if(D0e == "year"){q11="m";q11+="o";q11+="n";q11+="th";D0e=q11;if(!w2N){s3V.M8Y(74);w2N=s3V.d58("1",0);}s3V.C$o(38);w2N=s3V.c6Y(w2N,12);}return {period:w2N,interval:D0e,timeUnit:P8T};};s3V.r2m();I7h.readablePeriodicity=function(s74){var C1f,m$5;C1f=s74.layout.periodicity;m$5=s74.layout.interval;if(typeof s74.layout.interval == "number" && s74.layout.timeUnit){C1f=s74.layout.interval * s74.layout.periodicity;m$5=s74.layout.timeUnit;}else if(typeof s74.layout.interval == "number" && !s74.layout.timeUnit){C1f=s74.layout.interval * s74.layout.periodicity;m$5="minute";}if(C1f % 60 === 0 && m$5 == "minute"){C1f/=60;m$5="hour";}s3V.M8Y(68);var w53=s3V.d58(31458,9,3930);s3V.M8Y(25);var p_M=s3V.d58(22590,20100,20);s3V.M8Y(67);var d2Z=s3V.d58(113,18,1);s3V.C$o(34);var J_M=s3V.d58(3997,43984,1,12);s3V.C$o(68);var M8Q=s3V.d58(16225,13,1475);s3V.C$o(22);var Y$$=s3V.d58(3653,457);s3V.M8Y(16);var q16=s3V.d58(19,3578,7,21599);s3V.C$o(82);var p7f=s3V.d58(60,11,3,11,2);return C1f + (464.12 >= (501.98,w53)?!({}):p_M != (d2Z,J_M)?(M8Q,432.5) !== (Y$$,+"8745")?" ":q16:"2.98e+3" * p7f) + s74.translateIf(I7h.capitalize(m$5));};I7h.fixPrice=function(Y7M){var B3i;if(!Y7M && Y7M !== 0){return null;}B3i=Y7M.toFixed(+"10");for(var c7K=B3i.length - 1;c7K > 1;c7K--){if(B3i.charAt(c7K) != ((5350,167.07) >= 2808?(!!1,685.51):(3960,921) < "83" * 1?8.07e+3:"0"))break;}s3V.C$o(24);B3i=B3i.substring(0,s3V.d58("1",c7K));return parseFloat(B3i);};I7h.condenseInt=function(j1z){var s_J,F2X;s_J="n";s_J+="/";s_J+="a";if(j1z === null || typeof j1z == "undefined"){return "";}if(j1z === Infinity || j1z === -Infinity){return s_J;}s3V.M8Y(83);F2X=s3V.d58(j1z,"0",1);if(!isNaN(j1z)){j1z=Math.abs(j1z);if(j1z > +"1000000000000"){s3V.C$o(84);var E1A=s3V.c6Y(208,17,12,13);s3V.C$o(59);var C8s=s3V.c6Y(108994,12,6425,18);s3V.C$o(22);var z3k=s3V.d58(12,68);s3V.M8Y(0);var D31=s3V.c6Y(626,20);s3V.M8Y(0);var e$T=s3V.d58(18186,9093);s3V.C$o(0);var y5t=s3V.d58(149550,139580);s3V.C$o(85);var v_O=s3V.c6Y(1471,10,15,5,8);s3V.C$o(7);var v8M=s3V.c6Y(7,0,8);s3V.M8Y(65);var O5C=s3V.c6Y(7,1,13,4414);j1z=Math.round(j1z / ("100000000000" * E1A)) / +"10" + (418.71 > ("610.52" - 0,C8s)?(z3k,754.97):D31 === (e$T,y5t)?(718.24,230.42) != (v_O,"5660" * v8M)?+"1.14e+3":O5C:"t");}else if(j1z > 100000000000){s3V.M8Y(22);var I6t=s3V.c6Y(500000000,500000000);s3V.C$o(86);var Z_p=s3V.c6Y(17,74400,3715,12,14879);s3V.M8Y(0);var B5D=s3V.d58(4164,5);s3V.C$o(87);var y2Y=s3V.d58(15,63552,13,2018,6);j1z=Math.round(j1z / I6t) + (Z_p < B5D?"b":y2Y);}else if(j1z > 10000000000){j1z=(Math.round(j1z / 100000000) / 10).toFixed("1" << 0) + "b";}else if(j1z > 1000000000){s3V.C$o(0);var a_d=s3V.d58(107340,100184);s3V.C$o(25);var b$Z=s3V.d58(2647,22,5);s3V.C$o(88);var J6D=s3V.d58(7,4,4449,1769,5);s3V.M8Y(89);var K8O=s3V.c6Y(1,266,20,312);s3V.C$o(86);var g65=s3V.c6Y(6,6040,6055,11,1209);s3V.M8Y(22);var E9a=s3V.d58(728,146);s3V.M8Y(89);var P1x=s3V.c6Y(2,845,20,1938);s3V.M8Y(90);var h94=s3V.d58(8,13,3,8,16);s3V.C$o(0);var v2y=s3V.c6Y(62040,56870);s3V.C$o(0);var Q1a=s3V.c6Y(67004,62218);j1z=(Math.round(j1z / 10000000) / 100).toFixed(2) + ((a_d,b$Z) === 417.73?(J6D,870.92):("8090" | K8O,162.3) < g65?"b":(E9a,P1x) == ("7573" << h94,v2y)?("x",Q1a):709.76);}else if(j1z > 100000000){s3V.M8Y(0);var L6j=s3V.c6Y(9164,4582);s3V.M8Y(91);var S5k=s3V.c6Y(3,787,8634,13,8);s3V.M8Y(92);var d2j=s3V.d58(6417,6,13,10);j1z=Math.round(j1z / +"1000000") + ((L6j,S5k) !== (+"296",3.37)?d2j === (309.36,+"7350")?("K","m"):"m":"T");}else if(j1z > 10000000){s3V.M8Y(93);var T9x=s3V.d58(9,9,19);s3V.M8Y(89);var y3U=s3V.d58(1,6,9,3832);s3V.C$o(68);var z60=s3V.d58(441252,4,112476);s3V.M8Y(0);var W_W=s3V.c6Y(27700,22160);j1z=(Math.round(j1z / 100000) / 10).toFixed(T9x) + (y3U === (z60,171.2)?W_W:"m");}else if(j1z > 1000000){s3V.M8Y(94);var i9Y=s3V.c6Y(1,16,11,149,10);s3V.C$o(0);var F5n=s3V.c6Y(4871,8);s3V.M8Y(68);var b6p=s3V.c6Y(56578,8,8081);s3V.C$o(95);var g46=s3V.d58(28640,6,16,12,2388);s3V.C$o(30);var s0C=s3V.d58(2,18,15);j1z=(Math.round(j1z / 10000) / +"100").toFixed(i9Y) + ((F5n,"8970" - 0) != (b6p,g46)?"m":"931.74" * s0C);}else if(j1z > 100000){s3V.M8Y(64);var L5W=s3V.c6Y(83,999,83,1);j1z=Math.round(j1z / L5W) + "k";}else if(j1z > "10000" >> 64){s3V.M8Y(96);var e6y=s3V.c6Y(1,13,22,12,2);j1z=(Math.round(j1z / 100) / 10).toFixed("1" | e6y) + "k";}else if(j1z > 1000){s3V.C$o(68);var D4A=s3V.d58(138,7,20);j1z=(Math.round(j1z / ("10" - 0)) / 100).toFixed(D4A) + "k";}else {j1z=j1z.toString();}}else {j1z=j1z.toString();}if(F2X){s3V.C$o(22);j1z=s3V.d58(j1z,"-");}return j1z;};I7h.calculateTradingDecimalPlaces=function(X1g){var p5D,D35,b_D,r81,P4i,T92,n02,d3k,p5h,i3r,M9C;p5D=X1g.chart;D35=2;b_D=50;r81=p5D.masterData;if(r81 && r81.length > b_D){for(var b7Z=2;b7Z < b_D;b7Z++){P4i="num";P4i+="be";P4i+="r";T92=r81.length - b7Z;if(T92 < 0)break;n02=r81[T92];if(n02.Close && typeof n02.Close == P4i){d3k=n02.Close.toString();p5h=d3k.indexOf(2015 != 698.73?(384.21,22) > (2941,9610)?0x134a:("560" | 0,87.18) > ("3632" - 0,224.99)?(!({}),8.95e+3):".":889.05);if(p5h != -1){s3V.M8Y(8);var G_J=s3V.c6Y(16,3,4);i3r=d3k.length - p5h - G_J;if(i3r > D35){D35=i3r;}}}}}s3V.r2m();M9C=p5D.yAxis.maxDecimalPlaces;if(D35 > M9C && M9C !== null){D35=M9C;}return D35;};I7h.minMax=function(E72,o4K,R6c,f_K){var g4s,a4O,s1c,g8K,N9z,D9V,v8u,o31,B3a;g4s="L";g4s+="o";g4s+="w";a4O="Clo";a4O+="s";a4O+="e";s1c=Number.MAX_VALUE;s3V.C$o(97);var m$u=s3V.c6Y(16,15,479,20,10);g8K=Number.MAX_VALUE * m$u;if(!R6c){R6c=a4O;}N9z=f_K?"High":R6c;D9V=f_K?g4s:R6c;for(var A3N=0;A3N < E72.length;A3N++){v8u=E72[A3N];if(!v8u)continue;o31=v8u[o4K];if(!o31 && o31 !== 0)continue;B3a=o31;if(typeof o31 === "object"){B3a=o31[N9z];}if(!isNaN(B3a) && (B3a || B3a === 0)){g8K=Math.max(g8K,B3a);}if(typeof o31 === "object"){B3a=o31[D9V];}if(!isNaN(B3a) && (B3a || B3a === 0)){s1c=Math.min(s1c,B3a);}}return [s1c,g8K];};I7h.symbolEqual=function(F_r,v3Y){var F3n,i$V,o_p,O0I;F3n="f";F3n+="unct";F3n+="i";F3n+="on";i$V="o";s3V.r2m();i$V+="b";i$V+="je";i$V+="ct";if(!F_r || !v3Y){return !"1";}if(typeof F_r != "object"){F_r={symbol:F_r};}if(typeof v3Y != i$V){v3Y={symbol:v3Y};}if(typeof F_r.equals == F3n){return F_r.equals(v3Y);}o_p=F_r.symbol;O0I=v3Y.symbol;if(o_p){o_p=o_p.toUpperCase();}if(O0I){O0I=O0I.toUpperCase();}if(o_p != O0I){return ![];}if(F_r.source != v3Y.source){return ![];}return !![];};I7h.addMemberToMasterdata=function(P3s){var w3g,x0K,W4f,w3J,I0r,r3f,m5N,v4b,f8C,a0Q,h4N,b3n,V$h,J7E,g0I,c1X,h_c,g4z,X9s,D06,Z3M,l2E,U$k,N1k,r6Z,j8S;if(P3s.constructor === I7h.ChartEngine){P3s={stx:arguments[0],label:arguments[1],data:arguments[2],fields:arguments[+"3"],createObject:arguments[4],fieldForLabel:arguments[5]};}function w75(X0T){var o4x,v7f,r2_,d07,B71,V2K;o4x=f8C;s3V.M8Y(0);var P48=s3V.d58(5,4);v7f=h4N.length - P48;if(h4N[v7f].DT < X0T){r2_=2100315194;d07=+"438545622";B71=2;for(var c0d=1;s3V.O$R(c0d.toString(),c0d.toString().length,94884) !== r2_;c0d++){s3V.M8Y(98);f8C=s3V.c6Y(v7f,"2");B71+=+"2";}if(s3V.O$R(B71.toString(),B71.toString().length,36463) !== d07){s3V.M8Y(22);f8C=s3V.d58(1,v7f);}return;}else if(+h4N[v7f].DT == +X0T){f8C=v7f;return;}f8C++;function E$g(){var z5B,v5n,Q4x;z5B=-660754493;v5n=893861959;Q4x=2;for(var S70=1;s3V.O$R(S70.toString(),S70.toString().length,+"61910") !== z5B;S70++){if(-h4N[f8C].DT != !X0T){return 5;}if(h4N[f8C].DT >= X0T){return 3;}if(h4N[f8C * 2].DT >= X0T){return + +"4";}if(-h4N[f8C % 2].DT === !X0T){f8C++;}return 8;}if(s3V.O$R(Q4x.toString(),Q4x.toString().length,70267) !== v5n){if(!h4N[f8C].DT !== ~X0T){return 0;}if(h4N[f8C].DT <= X0T){return 6;}if(h4N[f8C - 8].DT < X0T){return !3;}if(!h4N[f8C * 7].DT != +X0T){f8C--;}return 5;}if(+h4N[f8C].DT == +X0T){return +"0";}if(h4N[f8C].DT < X0T){return 1;}if(h4N[f8C - 1].DT > X0T){return -1;}if(+h4N[f8C - 1].DT == +X0T){f8C--;}s3V.J8h();return 0;}V2K=0;while(++V2K < 100){switch(E$g()){case 0:return;case 1:o4x=f8C;break;case -1:v7f=f8C;break;}s3V.C$o(43);f8C=Math.round(s3V.d58(2,v7f,o4x));}if(V2K >= "100" * 1){console.log("!!!Warning: addMemberToMasterdata() did not find insertion point.");s3V.M8Y(30);var w4p=s3V.d58(7,20,12);f8C=h4N.length - w4p;}}w3g=P3s.stx;x0K=P3s.label;W4f=P3s.data;w3J=P3s.fields;I0r=P3s.createObject;r3f=P3s.fieldForLabel;m5N=P3s.chart?P3s.chart:w3g.chart;function a6I(D9N,n9D){var s6q,S9N,m9b,a9U;if(w3J && w3J.length){if(w3J[+"0"] == "*"){I7h.extend(D9N,n9D);}else {for(var R6Z=0;R6Z < w3J.length;R6Z++){D9N[w3J[R6Z]]=n9D[w3J[R6Z]];}}}else if(I0r){s6q="nu";s6q+="mbe";s6q+="r";if(n9D.Value !== undefined){D9N[x0K]=n9D.Value;return;}else if(I0r == "aggregate"){D9N[x0K]=R1J(D9N[x0K],n9D);}else {D9N[x0K]=n9D;}S9N=D9N[x0K];if(typeof S9N.Close == s6q){if(typeof S9N.Open != "number"){S9N.Open=S9N.Close;}m9b=Math.max(S9N.Open,S9N.Close);a9U=Math.min(S9N.Open,S9N.Close);if(typeof S9N.High != "number" || S9N.High < m9b){S9N.High=m9b;}if(typeof S9N.Low != "number" || S9N.Low > a9U){S9N.Low=a9U;}}if(S9N.Volume && typeof S9N.Volume !== "number"){S9N.Volume=parseInt(S9N.Volume,10);}}else if(r3f){D9N[x0K]=n9D[r3f];}else if(X9s && g4z && n9D[g4z] !== undefined){D9N[x0K]=n9D[g4z];}else if(b3n.adj && n9D.Adj_Close !== undefined){D9N[x0K]=n9D.Adj_Close;}else if(n9D.Close !== undefined){D9N[x0K]=n9D.Close;}else if(n9D.Value !== undefined){D9N[x0K]=n9D.Value;}else {D9N[x0K]=n9D[x0K];}}if(!P3s.noCleanupDates){w3g.doCleanupDates(W4f,w3g.layout.interval);}v4b=[];if(w3g.getSeries){v4b=w3g.getSeries({symbol:x0K,chart:m5N});}if(W4f && W4f.constructor == Object){W4f=[W4f];}if(!W4f || !W4f.length){return;}s3V.C$o(74);f8C=s3V.c6Y("0",0);a0Q=+"0";h4N=m5N.masterData;b3n=w3g.layout;if(!h4N){g0I=-550333249;c1X=-1293037100;h_c=2;for(var A3i=1;s3V.O$R(A3i.toString(),A3i.toString().length,50863) !== g0I;A3i++){h4N=[];h_c+=2;}if(s3V.q2D(h_c.toString(),h_c.toString().length,7987) !== c1X){h4N=[];}}g4z=m5N && m5N.defaultPlotField || null;X9s=w3g.mainSeriesRenderer && !w3g.mainSeriesRenderer.highLowBars;D06=b3n.chartType;if(!X9s && D06){Z3M=I7h.Renderer.produce(D06,{});if(Z3M){X9s=!Z3M.highLowBars;}}l2E=I7h.yyyymmddhhmmssmmm;while(W4f && f8C < h4N.length && a0Q < W4f.length){J7E=W4f[a0Q];V$h=h4N[f8C];if(!J7E.DT || typeof J7E.DT == "undefined"){J7E.DT=I7h.strToDateTime(J7E.Date);}else {if(typeof J7E.DT == "number"){J7E.DT=new Date(J7E.DT);}if(!J7E.Date || J7E.Date.length != +"17"){J7E.Date=l2E(J7E.DT);}}if(a0Q === 0){for(var K2I=0;K2I < v4b.length;K2I++){if(!v4b[K2I].endPoints.begin || v4b[K2I].endPoints.begin > J7E.DT){v4b[K2I].endPoints.begin=J7E.DT;}}}if(+J7E.DT == +V$h.DT){a6I(V$h,J7E);a0Q++;f8C++;continue;}if(J7E.DT < V$h.DT){h4N.splice(f8C,0,{DT:J7E.DT,Date:J7E.Date});continue;}else {w75(J7E.DT);};}if(f8C >= h4N.length){while(W4f && a0Q < W4f.length){U$k="undef";U$k+="ined";J7E=W4f[a0Q];if(!J7E.DT || typeof J7E.DT == U$k){J7E.DT=I7h.strToDateTime(J7E.Date);}else {if(typeof J7E.DT == "number"){J7E.DT=new Date(J7E.DT);}if(!J7E.Date || J7E.Date.length != 17){J7E.Date=l2E(J7E.DT);}}V$h={DT:J7E.DT,Date:J7E.Date};a6I(V$h,J7E);h4N.push(V$h);a0Q++;}}s3V.r2m();if(P3s.fillGaps && h4N.length){N1k={noCleanupDates:!![],cleanupGaps:P3s.fillGaps};if(w3J){for(var I5r=0;I5r < w3J.length;I5r++){N1k.field=w3J[I5r];w3g.doCleanupGaps(h4N,m5N,N1k);}}else {N1k.field=x0K;w3g.doCleanupGaps(h4N,m5N,N1k);}}function R1J(d19,C0g){var W9x,O2a,a4a;if(!d19 || typeof d19 != "object"){d19=C0g;return d19;}W9x={Close:d19.Close,High:d19.High,Low:d19.Low,Open:d19.Open,Volume:d19.Volume};d19=C0g;s3V.J8h();for(var m8c in W9x){if(d19.Close === null){if(d19[m8c] !== undefined){d19[m8c]=null;}}else if(typeof d19[m8c] !== "number"){d19[m8c]=W9x[m8c];}else if(typeof W9x[m8c] === "number"){O2a="V";O2a+="ol";O2a+="ume";a4a="Hig";a4a+="h";if(m8c == "Open"){d19.Open=W9x.Open;}else if(m8c == "Low" && d19.Low > W9x.Low){d19.Low=W9x.Low;}else if(m8c == a4a && d19.High < W9x.High){d19.High=W9x.High;}else if(m8c == O2a){d19.Volume+=W9x.Volume;}}}return d19;}for(var O8j=0;O8j < v4b.length;O8j++){r6Z=v4b[O8j].endPoints;if(!r6Z.end || !x0K || r6Z.end <= V$h[x0K].DT){r6Z.end=x0K?V$h[x0K].DT:V$h.DT;j8S=x0K || v4b[O8j].parameters && v4b[O8j].parameters.field || m5N.defaultPlotField;v4b[O8j].lastQuote=w3g.getFirstLastDataRecord(h4N,j8S,!!1);}}w3g.setMasterData(h4N,m5N,{noCleanupDates:!![]});};};O=e4o=>{var M_u=x2dci;var J5h;J5h=e4o.CIQ;Math.easeInOutQuad=function(a8M,O3L,Z67,E2O){M_u.M8Y(40);M_u.r2m();a8M/=M_u.c6Y(2,E2O);if(a8M < 1){M_u.C$o(99);return M_u.d58(a8M,Z67,O3L,a8M,2);}a8M--;M_u.M8Y(100);return M_u.d58(a8M,a8M,"2",O3L,Z67,"1",2,64);};M_u.J8h();Math.easeInOutCubic=function(H9h,G4m,o2b,G6c){M_u.M8Y(40);H9h/=M_u.c6Y(2,G6c);if(H9h < 1){M_u.M8Y(101);return M_u.c6Y(G4m,H9h,"2",H9h,2,o2b,H9h);}M_u.M8Y(20);H9h-=M_u.d58("2",0);M_u.M8Y(102);M_u.r2m();return M_u.d58(H9h,o2b,H9h,2,"2",G4m,0,H9h);};Math.easeOutCubic=function(f6q,Z5r,f1W,C6o){f6q/=C6o;f6q--;M_u.M8Y(103);return M_u.d58(1,f1W,f6q,Z5r,f6q,f6q);};J5h.xor=function(W5a,A9i){var o3j,Z0G;o3j=!W5a;Z0G=!A9i;M_u.C$o(104);M_u.r2m();return M_u.d58(o3j,Z0G);};J5h.round=function(d9b,N35){M_u.J8h();return Number(Math.round(d9b + "e" + N35) + "e-" + N35);};J5h.countDecimals=function(B2f){var E$m;if(typeof B2f !== "number" || isNaN(B2f)){return 0;}M_u.J8h();if(Math.floor(B2f) === Number(B2f)){return 0;}E$m=B2f.toString().split("e-");if(E$m.length > 1){M_u.M8Y(44);var s7F=M_u.c6Y(8,0,2,8);return J5h.countDecimals(Number(E$m[0])) + Number(E$m[s7F]);}if(E$m[0].indexOf(".") > -1){return E$m[0].split((1530,3000) !== (722.48,3430)?".":(828.05,"R"))[1].length;}return 0;};J5h.isValidNumber=function(U11){return isFinite(U11) && +U11 === U11;};J5h.log10=function(P0Q){M_u.J8h();return Math.log(P0Q) / Math.LN10;};J5h.boxIntersects=function(g1p,V2O,W8y,y2q,A70,V4r,y$c,m3e,l_e){var V3v,H$N,L$b,D0u,y_B,p5$;M_u.J8h();if(arguments[+"9"] !== undefined){console.warn("CIQ.boxIntersects() no longer supports isLog argument, please be sure arguments are passed in as pixels.");}V3v=Math.min(g1p,W8y);H$N=Math.max(g1p,W8y);L$b=Math.min(V2O,y2q);D0u=Math.max(V2O,y2q);function Z5$(V1v,N3I){M_u.M8Y(105);M_u.r2m();return M_u.d58(y$c,V1v,N3I,V4r,A70,V4r,m3e,A70);}M_u.M8Y(106);y_B=M_u.c6Y(l_e,"ray");if(isNaN(A70) || isNaN(y$c) || isNaN(V4r) || isNaN(m3e)){return !"1";}if(l_e != "line"){if(A70 < V3v && y$c < V3v && (!y_B || A70 > y$c)){return !({});}if(A70 > H$N && y$c > H$N && (!y_B || A70 < y$c)){return ![];}if(V4r < L$b && m3e < L$b && (!y_B || V4r > m3e)){return ![];}if(V4r > D0u && m3e > D0u && (!y_B || V4r < m3e)){return !({});}}p5$={a:Z5$(g1p,V2O),b:Z5$(g1p,y2q),c:Z5$(W8y,V2O),d:Z5$(W8y,y2q)};if(p5$.a > 0 && p5$.b > 0 && p5$.c > 0 && p5$.d > +"0"){return ![];}if(p5$.a < 0 && p5$.b < 0 && p5$.c < ("0" | 0) && p5$.d < 0){return !!0;}return !![];};J5h.linesIntersect=function(D_b,T4I,S78,N6n,q93,L9C,m9c,w$d,K_r){var y5J,U_2,Z3O,w0p,s7U,W29,u2d;y5J="v";y5J+="erti";y5J+="ca";y5J+="l";U_2="hor";U_2+="iz";U_2+="ontal";M_u.M8Y(105);Z3O=M_u.d58(T4I,L9C,w$d,m9c,q93,S78,N6n,D_b);M_u.M8Y(105);w0p=M_u.c6Y(S78,w$d,L9C,q93,m9c,q93,D_b,m9c);M_u.C$o(105);s7U=M_u.d58(S78,N6n,T4I,D_b,S78,q93,D_b,m9c);if(Z3O === +"0"){if(w0p === 0 && s7U === 0){return !"";}return !({});;}M_u.M8Y(40);M_u.r2m();W29=M_u.d58(Z3O,w0p);M_u.M8Y(40);u2d=M_u.d58(Z3O,s7U);if(K_r == "segment"){if(W29 >= 0 && W29 <= 1 && u2d >= 0 && u2d <= 1){return !![];}}else if(K_r == "line" || K_r == U_2 || K_r == y5J){if(W29 >= 0 && W29 <= 1){return !!"1";}}else if(K_r == "ray"){if(W29 >= 0 && W29 <= 1 && u2d >= +"0"){return !![];}}return !({});};J5h.yIntersection=function(s_a,P0q){var L5G,W4l,e4c,S6A,r99,X_k,B1A,y12,L6i,b$O,A2$,j6e;L5G=s_a.x0;W4l=s_a.x1;e4c=P0q;S6A=P0q;r99=s_a.y0;X_k=s_a.y1;B1A=0;y12=10000;M_u.C$o(105);L6i=M_u.d58(W4l,S6A,y12,B1A,e4c,r99,X_k,L5G);M_u.J8h();M_u.M8Y(105);b$O=M_u.d58(r99,y12,S6A,e4c,B1A,e4c,L5G,B1A);M_u.M8Y(40);A2$=M_u.c6Y(L6i,b$O);if(L6i === "0" << 64){if(b$O === 0){A2$=1;}else {return null;}}M_u.C$o(107);j6e=M_u.c6Y(X_k,r99,A2$,r99);return j6e;};J5h.xIntersection=function(f1x,k8U){var t7x,t6K,P$g,t2G,J6i,I_z,k7j,v$g,Y$P,i6c,H_K,F2V;t7x=f1x.x0;t6K=f1x.x1;P$g=0;t2G=10000;J6i=f1x.y0;I_z=f1x.y1;k7j=k8U;v$g=k8U;M_u.M8Y(105);Y$P=M_u.c6Y(t6K,t2G,v$g,k7j,P$g,J6i,I_z,t7x);M_u.C$o(105);i6c=M_u.c6Y(J6i,v$g,t2G,P$g,k7j,P$g,t7x,k7j);M_u.M8Y(40);H_K=M_u.d58(Y$P,i6c);if(Y$P === 0){if(i6c === 0){H_K=1;}else {return null;}}M_u.M8Y(107);F2V=M_u.d58(t6K,t7x,H_K,t7x);return F2V;};J5h.intersectLineLineX=function(K7V,Q8A,O$_,J6y,m51,E$J,t3G,R7Z){var e7m,Z16,j1c;M_u.M8Y(105);e7m=M_u.d58(O$_,R7Z,E$J,m51,t3G,m51,K7V,t3G);M_u.C$o(105);Z16=M_u.d58(Q8A,E$J,R7Z,t3G,m51,O$_,J6y,K7V);M_u.M8Y(40);M_u.J8h();j1c=M_u.c6Y(Z16,e7m);M_u.M8Y(107);return M_u.c6Y(Q8A,K7V,j1c,K7V);};J5h.intersectLineLineY=function(I4G,M5U,Y6M,B0A,C3c,C0s,y_i,g5D){var D0y,c0W,g0_;M_u.M8Y(105);D0y=M_u.d58(Y6M,g5D,C0s,C3c,y_i,C3c,I4G,y_i);M_u.M8Y(105);c0W=M_u.d58(M5U,C0s,g5D,y_i,C3c,Y6M,B0A,I4G);M_u.M8Y(40);g0_=M_u.c6Y(c0W,D0y);M_u.M8Y(107);return M_u.d58(B0A,Y6M,g0_,Y6M);};};M=f1$=>{var c_T=x2dci;var j2i;c_T.J8h();j2i=f1$.CIQ;j2i.deleteRHS=function(O$e,I6q){var t2_;t2_=!!0;for(var T3H in O$e){if(O$e[T3H] == I6q){delete O$e[T3H];t2_=!0;}}return t2_;};j2i.scrub=function(F6F,Q26){for(var z_x in F6F){if(typeof F6F[z_x] == "undefined"){delete F6F[z_x];}if(Q26 && F6F[z_x] === null){delete F6F[z_x];}}};j2i.dataBindSafeAssignment=function(A5P,L2o){var T8K;j2i.extend(A5P,L2o);for(var v2Z in A5P){T8K="unde";T8K+="fi";T8K+="n";T8K+="ed";if(typeof L2o[v2Z] == T8K){A5P[v2Z]=undefined;}}};j2i.clone=function(Q2$,Y5d){var f0j,z$T;f0j="o";f0j+="bject";if(Q2$ === null || typeof Q2$ != f0j){return Q2$;}z$T=Q2$.constructor;if(z$T == Date || z$T == RegExp || z$T == String || z$T == Number || z$T == Boolean){return new z$T(Q2$.valueOf());}if(z$T == Function){return function(){c_T.J8h();return Q2$.apply(this,arguments);};}if(!Y5d){try{Y5d=new z$T();}catch(h0Y){Y5d=Object.create(Object.getPrototypeOf(Q2$));}}for(var Y8e in Q2$){Y5d[Y8e]=Y5d[Y8e] !== Q2$[Y8e]?j2i.clone(Q2$[Y8e],null):Y5d[Y8e];}return Y5d;};j2i.shallowClone=function(x7d){var Y2m;if(!x7d){return x7d;}if(x7d.constructor == Array){Y2m=new Array(x7d.length);for(var A0b=+"0";A0b < x7d.length;A0b++){Y2m[A0b]=x7d[A0b];}return Y2m;}Y2m={};c_T.J8h();for(var D1l in x7d){Y2m[D1l]=x7d[D1l];}return Y2m;};j2i.ensureDefaults=function(L3g,C8x){for(var g9V in C8x){if(typeof L3g[g9V] == "undefined"){L3g[g9V]=C8x[g9V];}}c_T.J8h();return L3g;};j2i.transferObject=function(v8S,j2m){var o6n;for(o6n in v8S){if(v8S.hasOwnProperty(o6n)){delete v8S[o6n];}}for(o6n in j2m){if(j2m.hasOwnProperty(o6n)){v8S[o6n]=j2m[o6n];}}return v8S;};j2i.equals=function(m0d,q$X,a9f){var T8j;if(!m0d && q$X){return !({});}if(m0d && !q$X){return !({});}c_T.J8h();if(typeof m0d !== typeof q$X){return !!0;}for(var t$S in m0d){if(a9f && a9f[t$S])continue;if(typeof m0d[t$S] === "object"){T8j=j2i.equals(m0d[t$S],q$X[t$S]);if(!T8j){return !!"";}continue;}if(q$X[t$S] != m0d[t$S]){return !!"";}}return !![];};j2i.isEmpty=function(k2_){c_T.J8h();for(var L8f in k2_){if(k2_.hasOwnProperty(L8f)){return !({});}}return !!"1";};j2i.first=function(V72){c_T.r2m();for(var P8d in V72){return P8d;}return null;};j2i.last=function(J4f){var n0q;n0q=null;c_T.J8h();for(var Q6v in J4f){n0q=Q6v;}return n0q;};j2i.objLength=function(R7W){var J1T;if(!R7W){return 0;}J1T=0;for(var d$A in R7W){J1T++;}return J1T;};j2i.deriveFromObjectChain=function(T70,E_7){var N8U,t2q;if(E_7.indexOf(".") == -+"1"){return {obj:T70,member:E_7};}N8U=E_7.split(".");for(var h2I="0" >> 0;h2I < N8U.length - 1;h2I++){t2q=N8U[h2I];if(!T70[t2q] && T70[t2q] !== 0){T70[t2q]={};}T70=T70[t2q];}c_T.r2m();return {obj:T70,member:N8U[h2I]};};j2i.createObjectChainNames=function(i6f,t$b){var x95,n2w;x95=[];for(var T27=0;T27 < t$b.length;T27++){n2w="-";n2w+="-";n2w+=">";x95.push(i6f + n2w + t$b[T27]);}return x95;};j2i.existsInObjectChain=function(o9c,N7e){var M9N,B_L;if(N7e.indexOf("-->") == -1){if(!o9c[N7e] && o9c[N7e] !== 0){return null;}return {obj:o9c,member:N7e};}M9N=N7e.split("-->");for(var U_l="0" - 0;U_l < M9N.length - 1;U_l++){B_L=M9N[U_l];if(!o9c[B_L] && o9c[B_L] !== 0){return null;}o9c=o9c[B_L];}B_L=M9N[U_l];if(!o9c[B_L] && o9c[B_L] !== 0){return null;}return {obj:o9c,member:B_L};};j2i.derivedFrom=function(V2J,T1j){if(T1j.isPrototypeOf(V2J)){return !!({});}if(V2J instanceof T1j){return !![];}c_T.J8h();return !!"";};j2i.replaceFields=function(O2f,Q7j){var T4n,Q5O,m5X,d7f,z6d;if(!O2f){return O2f;}T4n={};for(var i6X in O2f){Q5O=O2f[i6X];m5X=Q7j[i6X];if(!m5X){m5X=i6X;}if(Q5O && typeof Q5O == "object"){if(Q5O.constructor == Array){d7f=T4n[m5X]=new Array(Q5O.length);for(var S_e=0;S_e < d7f.length;S_e++){z6d=Q5O[S_e];if(typeof z6d == "object"){d7f[S_e]=j2i.replaceFields(z6d,Q7j);}else {d7f[S_e]=z6d;}}}else {T4n[m5X]=j2i.replaceFields(Q5O,Q7j);}}else {T4n[m5X]=Q5O;}}return T4n;};j2i.removeNullValues=function(n2v){var s$R;s$R=j2i.clone(n2v);for(var G4X in s$R){if(!s$R[G4X]){delete s$R[G4X];}}return s$R;};j2i.reverseObject=function(A0L){var P7D;P7D={};c_T.J8h();for(var A8g in A0L){P7D[A0L[A8g]]=A8g;}return P7D;};j2i.getFromNS=(F3Q,G_w,U1G)=>{var f33,m8z,X$F;if(F3Q){f33=F3Q;m8z=G_w.split(".");for(var A43="0" - 0;A43 < m8z.length;A43++){X$F=m8z[A43];if(typeof f33[X$F] === "undefined")break;f33=f33[X$F];}if(A43 === m8z.length){return f33;}}c_T.r2m();return undefined || U1G;};j2i.getFnFromNS=(j92,c5W,H4L)=>{c_T.r2m();return j2i.getFromNS(j92,c5W,function(){return H4L;});;};j2i.get=(H_w,M1y)=>{c_T.J8h();return j2i.getFromNS(j2i,H_w,M1y);};j2i.getFn=(T4a,b59)=>{return j2i.getFromNS(j2i,T4a,function(){return b59;});;};};B=f_V=>{var Q96;Q96=f_V.CIQ;Q96.Plotter=function(){this.seriesArray=[];this.seriesMap={};};Q96.extend(Q96.Plotter.prototype,{Series:function(i36,S55,x8L,p9b,o_W,G7L){this.name=i36;this.strokeOrFill=S55;this.color=x8L;this.moves=[];this.text=[];if(!p9b || p9b > 1 || p9b < 0){p9b=1;}this.opacity=p9b;if(!o_W || o_W > 25 || o_W < 1){o_W=1;}this.width=o_W;this.pattern=Q96.borderPatternToArray(o_W,G7L);},newSeries:function(l7d,X6t,p49,u4l,R9N){x2dci.J8h();var t2S;if(p49.constructor == String){t2S=new this.Series(l7d,X6t,p49,u4l,R9N);}else {t2S=new this.Series(l7d,X6t,p49.color,p49.opacity,R9N >= 0?R9N:Q96.stripPX(p49.width),p49.borderTopStyle);}this.seriesArray.push(t2S);this.seriesMap[l7d]=t2S;},reset:function(X$o){x2dci.J8h();var H5E;for(var N3T in this.seriesMap){if(X$o && X$o != N3T)continue;H5E=this.seriesMap[N3T];if(H5E){H5E.moves=[];H5E.text=[];}}},moveTo:function(a$n,J48,c9R){var K4b,a4l;K4b="mov";K4b+="eT";K4b+="o";a4l=this.seriesMap[a$n];a4l.moves.push({action:K4b,x:J48,y:c9R});},lineTo:function(h2v,l3T,F1Q){var L4W,M7E;L4W=this.seriesMap[h2v];M7E=L4W.pattern;L4W.moves.push({action:"lineTo",x:l3T,y:F1Q,pattern:M7E});},dashedLineTo:function(o__,R8r,f0J,U6E){var q1O,K5R;q1O="li";q1O+="neTo";x2dci.J8h();K5R=this.seriesMap[o__];K5R.moves.push({action:q1O,x:R8r,y:f0J,pattern:U6E});},quadraticCurveTo:function(o2o,C0R,H3k,e3L,Y39){var x7X,h0Q,H52;x7X="q";x2dci.J8h();x7X+="uadraticCurveTo";h0Q=this.seriesMap[o2o];H52=h0Q.pattern;h0Q.moves.push({action:x7X,x0:C0R,y0:H3k,x:e3L,y:Y39,pattern:H52});},bezierCurveTo:function(u18,P0J,s3g,U68,r5Q,d08,a85){var X7D,v8O;X7D=this.seriesMap[u18];v8O=X7D.pattern;X7D.moves.push({action:"bezierCurveTo",x0:P0J,y0:s3g,x1:U68,y1:r5Q,x:d08,y:a85,pattern:v8O});},addText:function(U$s,M6o,H0c,W6o,e4Z,k1N,e$W){var k5Q;k5Q=this.seriesMap[U$s];k5Q.text.push({text:M6o,x:H0c,y:W6o,bg:e4Z});},drawText:function(p$2,j$p){var L2W,w7s,k6j,N2l;x2dci.J8h();for(var R8q=0;R8q < j$p.text.length;R8q++){L2W=j$p.text[R8q];if(L2W.bg){w7s=L2W.width?L2W.width:p$2.measureText(L2W.text).width;k6j=L2W.height?L2W.height:"12" << 32;N2l=p$2.fillStyle;p$2.fillStyle=L2W.bg;if(p$2.textAlign == "right"){p$2.fillRect(L2W.x,L2W.y - k6j / 2,-w7s,-k6j);}else {p$2.fillRect(L2W.x,L2W.y - k6j / +"2",w7s,k6j);}p$2.fillStyle=N2l;}p$2.fillText(L2W.text,L2W.x,L2W.y);}},draw:function(B5K,r$b){var E_f,R8f,a6Q,c1u,v3y,r$Y;E_f=B5K.lineWidth;R8f=B5K.fillStyle;a6Q=B5K.strokeStyle;c1u=B5K.globalAlpha;for(var J1y=0;J1y < this.seriesArray.length;J1y++){v3y=this.seriesArray[J1y];if(r$b && v3y.name != r$b)continue;B5K.beginPath();B5K.lineWidth=v3y.width;B5K.globalAlpha=v3y.opacity;B5K.fillStyle=v3y.color;B5K.strokeStyle=v3y.color;B5K.save();for(var Y6r=0;Y6r < v3y.moves.length;Y6r++){r$Y=v3y.moves[Y6r];if(r$Y.pattern){B5K.setLineDash(r$Y.pattern);B5K.lineDashOffset=0;}else {B5K.setLineDash([]);}if(r$Y.action == "quadraticCurveTo"){B5K[r$Y.action](r$Y.x0,r$Y.y0,r$Y.x,r$Y.y);}else if(r$Y.action == "bezierCurveTo"){B5K[r$Y.action](r$Y.x0,r$Y.y0,r$Y.x1,r$Y.y1,r$Y.x,r$Y.y);}else {B5K[r$Y.action](r$Y.x,r$Y.y);}}if(v3y.strokeOrFill == "fill"){B5K.fill();}else {B5K.stroke();}B5K.closePath();B5K.restore();this.drawText(B5K,v3y);B5K.lineWidth=1;}B5K.lineWidth=E_f;B5K.fillStyle=R8f;B5K.strokeStyle=a6Q;B5K.globalAlpha=c1u;}},!"");};J=F27=>{var C2D;C2D=F27.CIQ;C2D.Renderer=function(){};C2D.Renderer.produce=function(U77,c_1){var x$S,x7F,e4D;x$S="l";x$S+="i";x2dci.J8h();x$S+="n";x$S+="e";x7F=null;if(U77){for(var k$j in C2D.Renderer){e4D=C2D.Renderer[k$j];if(e4D.requestNew){x7F=e4D.requestNew(U77.split((401.92,2190) >= (6096,9576)?8400 !== (550,329)?8.61e+3:5.91e+3:"_"),c_1);}if(x7F){return x7F;}}}c_1.type=x$S;return new C2D.Renderer.Lines({params:c_1});};C2D.Renderer.colorFunctions={};C2D.Renderer.registerColorFunction=function(p$1,P3V){x2dci.J8h();C2D.Renderer.colorFunctions[p$1]=P3V;};C2D.Renderer.unregisterColorFunction=function(g47){x2dci.r2m();delete C2D.Renderer.colorFunctions[g47];};C2D.Renderer.prototype.adjustYAxis=function(){};C2D.Renderer.prototype.draw=function(){};C2D.Renderer.prototype.drawIndividualSeries=function(e50,P$4){};C2D.Renderer.prototype.construct=function(u_j){var K6r;if(!u_j){u_j={};}K6r=u_j.params?u_j.params:{};if(!K6r.name){K6r.name=C2D.uniqueID();}if(!K6r.heightPercentage){K6r.heightPercentage=+"0.7";}if(!K6r.opacity){x2dci.C$o(19);K6r.opacity=x2dci.d58(0,"1");}if(K6r.highlightable !== !({})){K6r.highlightable=!!"1";}if(!K6r.panel){K6r.panel="chart";}if(K6r.yAxis){K6r.yAxis=new C2D.ChartEngine.YAxis(K6r.yAxis);if(!K6r.yAxis.name){K6r.yAxis.name=K6r.name;}}this.cb=u_j.callback;this.params=K6r;this.seriesParams=[];x2dci.J8h();this.caches={};this.colors={};};C2D.Renderer.prototype.attachSeries=function(s93,P1_){var k5y=x2dci;var Z7C,t9p,i0M,j5h,G7G,m_T,Y3i,X2o,c2P,b78,M22,v8L,U$V,z66;Z7C="str";Z7C+="ing";t9p=this.stx;if(!t9p){return this;}k5y.J8h();i0M=t9p.chart.series[s93];if(!i0M){i0M={parameters:{}};}j5h=this.params;G7G=i0M.parameters;m_T={id:s93,chartType:j5h.type,display:G7G.display,border_color_up:j5h.defaultBorders?"auto":null,fill_color_up:G7G.color,opacity_up:j5h.opacity,border_color_down:j5h.defaultBorders?"auto":null,fill_color_down:G7G.color,opacity_down:j5h.opacity,color:G7G.color,symbol:G7G.symbol,symbolObject:C2D.clone(G7G.symbolObject)};if(typeof P1_ == Z7C){m_T.color=m_T.fill_color_down=m_T.fill_color_up=P1_;}else if(typeof P1_ == "object"){for(var i9_ in P1_){m_T[i9_]=P1_[i9_];}Y3i=m_T.color;X2o=m_T.border_color;if(Y3i){if(!m_T.fill_color_up){m_T.fill_color_up=Y3i;}if(!m_T.fill_color_down){m_T.fill_color_down=Y3i;}if(!m_T.fill_color_even){m_T.fill_color_even=Y3i;}}if(X2o){if(!m_T.border_color_up){m_T.border_color_up=X2o;}if(!m_T.border_color_down){m_T.border_color_down=X2o;}if(!m_T.border_color_even){m_T.border_color_even=X2o;}}}if(m_T.symbol && m_T.field != m_T.symbol){m_T.subField=m_T.field;m_T.field=m_T.symbol;}if(!m_T.id){m_T.id=C2D.uniqueID();}c2P=0;for(;c2P < this.seriesParams.length;++c2P){if(this.seriesParams[c2P].id === m_T.id){this.removeSeries(m_T.id,!![]);break;}}this.seriesParams.splice(c2P,0,m_T);if(m_T.fill_color_up != m_T.fill_color_down){b78=" do";b78+="wn";M22=" ";M22+="u";M22+="p";v8L=" ";v8L+="u";v8L+="p";k5y.C$o(22);this.colors[k5y.c6Y(" up",s93)]={color:m_T.fill_color_up,opacity:m_T.opacity_up,display:m_T.display?m_T.display + v8L:s93 + M22};k5y.C$o(22);this.colors[k5y.d58(" dn",s93)]={color:m_T.fill_color_down,opacity:m_T.opacity_down,display:m_T.display?m_T.display + b78:s93 + " down"};}else {this.colors[s93]={color:m_T.fill_color_up,opacity:m_T.opacity_up,display:m_T.display?m_T.display:s93};}U$V=j5h.panel;if(!t9p.panels[U$V]){z66=j5h.yAxis;if(!z66){z66=new C2D.ChartEngine.YAxis();z66.needsInitialPadding=!![];}z66.name=U$V;t9p.createPanel(U$V,U$V,null,null,z66);}else {if(j5h.yAxis){j5h.yAxis=t9p.addYAxis(t9p.panels[U$V],j5h.yAxis);j5h.yAxis.needsInitialPadding=!!({});G7G.yAxis=j5h.yAxis;t9p.resizeChart();}else if(m_T.yAxis){j5h.yAxis=m_T.yAxis;}}return this;};C2D.Renderer.prototype.removeSeries=function(K6S,h69){var s6y=x2dci;var c$9,E4o,S0B,X7W,G$h,W9B,o7i,h3U,E$Y,c7v;c$9=" ";c$9+="d";c$9+="n";E4o=" ";E4o+="u";E4o+="p";S0B=null;X7W=!!0;G$h=this.stx;W9B=G$h.chart;for(var Y5O in W9B.seriesRenderers){o7i=W9B.seriesRenderers[Y5O];for(var o6F=0;o6F < o7i.seriesParams.length;o6F++){h3U=o7i.seriesParams[o6F];if(h3U.id == K6S && this === o7i){S0B=o6F;}else if(h3U.isComparison && h3U.panel == W9B.panel.name && (!h3U.yAxis || h3U.yAxis == W9B.yAxis)){X7W=!![];}}}if(S0B !== null){if(W9B.forcePercentComparison && !X7W && this.seriesParams[S0B].isComparison && G$h.layout.chartScale != "linear"){G$h.setChartScale();}this.seriesParams.splice(S0B,1);}s6y.C$o(22);delete this.colors[s6y.d58(E4o,K6S)];s6y.C$o(22);delete this.colors[s6y.c6Y(c$9,K6S)];s6y.J8h();delete this.colors[K6S];if(!h69){for(var J_d in W9B.seriesRenderers){c7v=W9B.seriesRenderers[J_d];for(var j5_=0;j5_ < c7v.seriesParams.length;j5_++){if(c7v.seriesParams[j5_].id == K6S){E$Y=!![];break;}E$Y=![];}if(E$Y)break;}if(E$Y === !({}) || S0B !== null){G$h.deleteSeries(K6S,W9B);};}G$h.deleteYAxisIfUnused(G$h.panels[this.params.panel],this.params.yAxis);G$h.resizeChart();G$h.layout.symbols=G$h.getSymbols({"include-parameters":!!({}),"exclude-studies":!!"1"});G$h.changeOccurred("layout");return this;};C2D.Renderer.prototype.modifyRenderer=function(H8p){var V_3,t5J,A3J;V_3=this.params;x2dci.J8h();var {stx:Z5v}=this;for(var c3Y in H8p){t5J="t";t5J+="y";t5J+="p";t5J+="e";A3J=H8p[c3Y];switch(c3Y){case "baseline":if(A3J){if(typeof A3J === "object"){this.params.baseline=C2D.ensureDefaults(A3J,C2D.ChartEngine.Chart.prototype.baseline);}Z5v.registerBaselineToHelper(this);}else {Z5v.removeBaselineFromHelper(this);}break;case t5J:this.params.type=A3J;break;case "style":this.params.style=A3J;break;default:break;}}};C2D.Renderer.prototype.getDependents=function(B4S){var D$6,H1G;D$6=[];for(var q2z in B4S.chart.seriesRenderers){H1G=B4S.chart.seriesRenderers[q2z];if(H1G.params.dependentOf == this.params.name){D$6.push(H1G);}}x2dci.r2m();return D$6;};C2D.Renderer.prototype.undraggable=function(F6Q){x2dci.J8h();if(this == F6Q.mainSeriesRenderer){return !![];}return this.params.dependentOf == F6Q.mainSeriesRenderer.params.name;};C2D.Renderer.prototype.removeAllSeries=function(R7g){var m0k;if(R7g || this === this.stx.mainSeriesRenderer){m0k=[];for(var X0J=0;X0J < this.seriesParams.length;X0J++){m0k.push(this.seriesParams[X0J].id);}for(var B65=0;B65 < m0k.length;B65++){this.removeSeries(m0k[B65]);}}this.seriesParams=[];this.colors={};this.stx.deleteYAxisIfUnused(this.stx.panels[this.params.panel],this.params.yAxis);this.stx.resizeChart();return this;};C2D.Renderer.prototype.getYAxis=function(b8d){var u2T,C21;if(this.params){if(this.params.yAxis){u2T=this.params.yAxis;}else {C21=b8d.panels[this.params.panel];if(!C21){return !"1";}u2T=C21.yAxis;}}else {u2T=b8d.chart.panel.yAxis;}return u2T;};C2D.Renderer.prototype.ready=function(){this.stx.createDataSet();this.stx.draw();return this;};C2D.Renderer.Lines=function(R4i){var y8C,n1y;y8C="obje";y8C+="ct";n1y="l";n1y+="in";n1y+="e";this.construct(R4i);var {params:i93}=this;if(!i93.type){i93.type=n1y;}if(!i93.style){switch(i93.type){case "mountain":if(i93.baseline){i93.style="stx_baseline_delta_mountain";}else if(i93.colored){i93.style="stx_colored_mountain_chart";}else {i93.style="stx_mountain_chart";}break;default:i93.style="stx_line_chart";}}this.supportsAnimation=!!({});if(i93.type == "wave" || i93.type == "channel"){i93.step=i93.vertex=i93.baseline=i93.colored=!!0;this.highLowBars=this.barsHaveWidth=!!1;this.supportsAnimation=!({});}else if(i93.type == "step"){i93.step=!!({});}var {baseline:d3t}=i93;if(d3t && typeof d3t === y8C){C2D.ensureDefaults(i93.baseline,C2D.ChartEngine.Chart.prototype.baseline);}};C2D.inheritsFrom(C2D.Renderer.Lines,C2D.Renderer,!({}));C2D.Renderer.Lines.requestNew=function(E1U,h1h){var Z3r,k_f,A1v,J4N,B7Y,y6b,e$U,w$0;Z3r=null;k_f=h1h.step;A1v=h1h.colored;J4N=h1h.baseline;B7Y=h1h.vertex;for(var A1y=0;A1y < E1U.length;A1y++){y6b="ver";y6b+="t";y6b+="ex";e$U="s";e$U+="te";e$U+="p";w$0=E1U[A1y];switch(w$0){case "line":case "mountain":case "wave":case "channel":Z3r=w$0;break;case "baseline":J4N=!!"1";break;case "colored":A1v=!"";break;case e$U:k_f=!![];break;case y6b:B7Y=!!({});break;case "delta":break;default:return null;}}if(Z3r === null && !J4N && !k_f){return null;}return new C2D.Renderer.Lines({params:C2D.extend(h1h,{type:Z3r,step:k_f,colored:A1v,baseline:J4N,vertex:B7Y})});};C2D.Renderer.Lines.prototype.draw=function(){var j27,N9H,B3M,S$w,B_y,i7l,P5K,c0k,p9T,l9R,g09,D8q,Z99,f3j;j27=this.stx;N9H=this.stx.panels[this.params.panel];B3M=N9H.chart;S$w={};i7l=this.seriesParams;P5K=this.params.colorFunction;for(B_y=0;B_y < i7l.length;B_y++){c0k=i7l[B_y];if(this.params.colored){p9T="_col";p9T+="or";l9R="_col";l9R+="or_down";g09=["_color_up",l9R,p9T];for(var C1U=0;C1U < g09.length;C1U++){D8q="f";D8q+="i";D8q+="l";D8q+="l";Z99=c0k["border" + g09[C1U]];if(Z99 && Z99 != "auto"){c0k[D8q + g09[C1U]]=Z99;};}if(!P5K){P5K=Y37(c0k);}this.params.colorFunction=P5K;}f3j={};if(B3M.series[c0k.id]){f3j=C2D.clone(B3M.series[c0k.id].parameters);}S$w[c0k.id]={parameters:C2D.extend(C2D.extend(f3j,this.params),c0k),yValueCache:this.caches[c0k.id]};if(this == j27.mainSeriesRenderer && B3M.customChart && B3M.customChart.colorFunction){S$w[c0k.id].parameters.colorFunction=B3M.customChart.colorFunction;}}j27.drawSeries(B3M,S$w,this.params.yAxis,this);for(B_y in S$w){this.caches[B_y]=S$w[B_y].yValueCache;}function Y37(t27){var E5M,s1e,L4C,t1l,A0a;E5M="stx_l";E5M+="i";E5M+="ne_down";s1e="stx_l";s1e+="ine";s1e+="_";s1e+="up";L4C=t27.fill_color_up || j27.getCanvasColor(s1e);t1l=t27.fill_color_down || j27.getCanvasColor(E5M);A0a=t27.color || j27.getCanvasColor("stx_line_chart");return function(d89,E38,M5b){if(!E38.iqPrevClose && E38.iqPrevClose !== 0){return A0a;}if(E38.Close > E38.iqPrevClose){return L4C;}if(E38.Close < E38.iqPrevClose){return t1l;}x2dci.J8h();return A0a;};}};C2D.Renderer.Lines.prototype.drawIndividualSeries=function(b6O,f3g){var I8C,g0Z,e5U,E_Y,j9M,B7_,j0c,h7r,h6T,f51;I8C="c";I8C+="ha";I8C+="nnel";if(f3g.invalid){return;}g0Z=this.stx;e5U=b6O.context;x2dci.r2m();E_Y=null;j9M=f3g.colorFunction;B7_=g0Z.panels[f3g.panel] || b6O.panel;if(typeof j9M == "string"){j9M=C2D.Renderer.colorFunctions[j9M];if(!j9M){return;}}if(f3g.vertex){j0c="bev";j0c+="e";j0c+="l";e5U.save();e5U.lineJoin=j0c;}if(f3g.type == "wave"){E_Y=g0Z.drawWaveChart(B7_,f3g);}else if(f3g.baseline){E_Y=g0Z.drawBaselineChart(B7_,f3g);g0Z.positionBaselineHandle(this);}else if(f3g.type == "mountain"){f3g.returnObject=!!"1";E_Y=g0Z.drawMountainChart(B7_,f3g,j9M);}else if(f3g.type == I8C){f3g.returnObject=!!"1";E_Y=g0Z.drawChannelChart(B7_,j9M,f3g);}else {h7r=-729920541;h6T=1606503021;f51=2;for(var V3y=1;x2dci.q2D(V3y.toString(),V3y.toString().length,18937) !== h7r;V3y++){f3g.returnObject=!!0;E_Y=g0Z.drawLineChart(B7_,f3g.style,j9M,f3g);f51+=+"2";}if(x2dci.q2D(f51.toString(),f51.toString().length,49692) !== h6T){f3g.returnObject=!"";E_Y=g0Z.drawLineChart(B7_,f3g.style,j9M,f3g);}}if(f3g.vertex){g0Z.scatter(B7_,{yAxis:f3g.yAxis,field:f3g.symbol || f3g.field,subField:f3g.subField,symbol:f3g.symbol,color:f3g.vertex_color,highlight:f3g.highlight});e5U.restore();}return E_Y;};C2D.Renderer.OHLC=function(n9L){var K4Z,P78;K4Z="can";K4Z+="dle";this.construct(n9L);P78=this.params;if(!P78.type){P78.type="candle";}this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!({});if(P78.histogram){P78.type="candle";this.highLowBars=!!0;P78.volume=P78.hollow=!1;}if(P78.type == "bar"){P78.volume=P78.hollow=P78.histogram=!({});}if(P78.type == K4Z){P78.hlc=P78.colored=!({});}if(P78.volume){P78.hollow=!"";}};C2D.inheritsFrom(C2D.Renderer.OHLC,C2D.Renderer,![]);C2D.Renderer.OHLC.requestNew=function(F$3,P0p){var G5Z,d1O,Z5Y,B1l,V5T;G5Z=null;x2dci.J8h();d1O=P0p.histogram;for(var V6D=0;V6D < F$3.length;V6D++){Z5Y="histogr";Z5Y+="am";B1l=F$3[V6D];switch(B1l){case "candle":G5Z=B1l;break;case Z5Y:V5T="can";V5T+="d";V5T+="le";d1O=!!"1";G5Z=V5T;break;default:return null;}}if(G5Z === null){return null;}return new C2D.Renderer.OHLC({params:C2D.extend(P0p,{type:G5Z,histogram:d1O})});};C2D.Renderer.OHLC.getChartParts=function(e15,e4z){var S3G,t39,W8c,z4c,t8H,U8k,D8z,R7V,R1R,v4Q,v5G,p6q,L7u,H0$,M2v,f05,H$h,U0Z,v7C,L$5;S3G="borde";S3G+="r_";S3G+="colo";x2dci.J8h();S3G+="r_down";t39="fill_color";t39+="_dow";t39+="n";W8c="candl";W8c+="e";z4c="ca";z4c+="ndle";t8H="ca";t8H+="nd";t8H+="le";U8k="c";U8k+="andle";D8z="shad";D8z+="ow";R7V="stx_c";R7V+="andle_sh";R7V+="adow";R1R="s";R1R+="had";R1R+="ow";v4Q="can";v4Q+="d";v4Q+="le";v5G="fill_color_";v5G+="even";p6q="s";p6q+="tx_histogram_even";L7u="histo";L7u+="gr";L7u+="am";H0$="stx_hist";H0$+="og";H0$+="r";H0$+="am_down";M2v="his";M2v+="togr";M2v+="am";f05="his";f05+="to";f05+="gram";H$h="fill_c";H$h+="olor_up";U0Z=+"8";v7C=16;L$5=+"32";return [{type:"histogram",drawType:"histogram",style:"stx_histogram_up",condition:U0Z,fill:H$h,border:"border_color_up",useColorInMap:!"",useBorderStyleProp:!!"1"},{type:f05,drawType:M2v,style:H0$,condition:v7C,fill:"fill_color_down",border:"border_color_down",useColorInMap:!!({}),useBorderStyleProp:!!({})},{type:"histogram",drawType:L7u,style:p6q,condition:L$5,fill:v5G,border:"border_color_even",skipIfPass:!!({}),useColorInMap:!0,useBorderStyleProp:!!1},{type:v4Q,drawType:R1R,style:R7V,border:"border_color_up"},{type:"candle",drawType:D8z,style:"stx_candle_shadow_up",condition:U0Z,border:"border_color_up"},{type:U8k,drawType:"shadow",style:"stx_candle_shadow_down",condition:v7C,border:"border_color_down"},{type:t8H,drawType:"shadow",style:"stx_candle_shadow_even",condition:L$5,border:"border_color_even",skipIfPass:!0},{type:"candle",drawType:"candle",style:"stx_candle_up",condition:U0Z,fill:"fill_color_up",border:"border_color_up",useColorInMap:!![],useBorderStyleProp:!""},{type:z4c,drawType:W8c,style:"stx_candle_down",condition:v7C,fill:t39,border:S3G,useColorInMap:!![],useBorderStyleProp:!0}];;};C2D.Renderer.OHLC.prototype.draw=function(){var K4z,B89,h4Y,z9W,N59,S8r,T2C,q2k;K4z=this.stx;B89=this.stx.panels[this.params.panel];h4Y=B89.chart;z9W={};S8r=this.seriesParams;for(N59=0;N59 < S8r.length;N59++){T2C=S8r[N59];q2k={};if(h4Y.series[T2C.id]){q2k=C2D.clone(h4Y.series[T2C.id].parameters);}z9W[T2C.id]={parameters:C2D.extend(C2D.extend(q2k,this.params),T2C)};if(this == K4z.mainSeriesRenderer && h4Y.customChart && h4Y.customChart.colorFunction){z9W[T2C.id].parameters.colorFunction=h4Y.customChart.colorFunction;}}K4z.drawSeries(h4Y,z9W,this.params.yAxis,this);for(N59 in z9W){if(z9W[N59].yValueCache){this.caches[N59]=z9W[N59].yValueCache;}}};C2D.Renderer.OHLC.prototype.getColor=function(b_q,e0c,t9D,A2e,L7N,n5F){var I_C,j0F,L9G,l4T,l0e,J6c,L1w;I_C=n5F || t9D.color;j0F=this.params.yAxis || e0c.yAxis;if(A2e){I_C=n5F || t9D.borderLeftColor || t9D["border-left-color"];if(!I_C){return null;}}if(!L7N){return I_C;}L9G=b_q.pixelFromTransformedValue(j0F.highValue,e0c);if(isNaN(L9G)){L9G=0;}l4T=t9D.backgroundColor;if(I_C && !C2D.isTransparent(I_C)){l0e="b";l0e+="ott";l0e+="om";J6c="t";J6c+="o";J6c+="p";L1w=b_q.chart.context.createLinearGradient(+"0",L9G,0,2 * j0F[j0F.flipped?J6c:l0e] - L9G);L1w.addColorStop(0,I_C);L1w.addColorStop(1,l4T);return L1w;}return l4T;};C2D.Renderer.OHLC.prototype.drawIndividualSeries=function(x0g,L_o){var j1Q,z7E,R2r,D21,F5F,q9Y,E6_,r$F,Y8l,e5k,m4H,U51,I1E,N1i,Z0j,i9I,v8D,r3r,o7F,z0L,d0Y,n0T,G3m,e7g,j6_,d_e,m$M,J4r,x7b,P7y,h$B,o17,b8I,S1V,T5Z,v2Y,j0t,k71,u$o,o5n;j1Q="op";j1Q+="e";j1Q+="n";if(L_o.invalid){return;}z7E=this.stx;R2r=x0g.context;D21=L_o.colorFunction;F5F=z7E.panels[L_o.panel] || x0g.panel;if(typeof D21 == "string"){D21=C2D.Renderer.colorFunctions[D21];if(!D21){return;}}q9Y=z7E.layout.candleWidth - x0g.tmpWidth <= +"2" && x0g.tmpWidth <= 3;E6_=1;r$F=2;Y8l=4;e5k=8;m4H=16;U51=32;if(!x0g.state.chartType){x0g.state.chartType={};}I1E=x0g.state.chartType.pass={};N1i=z7E.colorByCandleDirection;if(L_o.colorBasis){N1i=L_o.colorBasis == j1Q;}Z0j=L_o.histogram;i9I=L_o.type;v8D=L_o.hollow;r3r=z7E.noWicksOnCandles[i9I];z7E.startClip(F5F.name);o7F=null;z0L={colors:[],cache:[]};d0Y=[];if(D21){n0T={isHistogram:Z0j,field:L_o.field,yAxis:L_o.yAxis,isVolume:L_o.volume,highlight:L_o.highlight};if(!Z0j && i9I == "bar"){G3m="stx_b";G3m+="ar_";G3m+="char";G3m+="t";n0T.type=L_o.hlc?"hlc":"bar";z0L=z7E.drawBarChart(F5F,G3m,D21,n0T);}else {e7g="candl";e7g+="e";if(i9I == e7g && !r3r){z7E.drawShadows(F5F,D21,n0T);}z0L=z7E.drawCandles(F5F,D21,n0T);n0T.isOutline=!"";if(v8D || !q9Y){z7E.drawCandles(F5F,D21,n0T);};}}else {j6_=Z0j && L_o.gradient !== !({});d_e=C2D.Renderer.OHLC.getChartParts(L_o.style,N1i);for(var o95=0;o95 < d_e.length;o95++){m$M=d_e[o95];if(m$M.skipIfPass && !I1E.even)continue;else if(Z0j){J4r="h";J4r+="ist";J4r+="og";J4r+="ram";if(m$M.type != J4r)continue;}else if(i9I == "bar"){if(m$M.type != "bar")continue;else if(L_o.colored && !m$M.condition)continue;else if(!L_o.colored && m$M.condition)continue;}else if(v8D){if(m$M.type != "hollow")continue;else if(m$M.drawType == "shadow" && r3r)continue;}else if(i9I == "candle"){x7b="shad";x7b+="ow";if(m$M.type != "candle")continue;else if(m$M.drawType == x7b){P7y="s";P7y+="tx_candle_shadow_d";P7y+="own";h$B="st";h$B+="x_candle_shad";h$B+="o";h$B+="w_up";if(r3r)continue;o17=L_o.border_color_up || z7E.getCanvasColor(h$B);b8I=L_o.border_color_down || z7E.getCanvasColor(P7y);S1V=L_o.border_color_even || z7E.getCanvasColor("stx_candle_shadow_even");if(!C2D.colorsEqual(o17,b8I) || !C2D.colorsEqual(o17,S1V) || !C2D.colorsEqual(o17,z7E.defaultColor)){if(!m$M.condition)continue;}else if(m$M.condition)continue;}}else continue;T5Z=z7E.canvasStyle(m$M.style);v2Y=this.getColor(z7E,F5F,T5Z,!"1",![],L_o[m$M.fill]);j0t=this.getColor(z7E,F5F,T5Z,!({}),j6_,L_o[m$M.fill]);k71=this.getColor(z7E,F5F,T5Z,m$M.useBorderStyleProp && !q9Y,j6_,L_o[m$M.border]);if(m$M.drawType == "candle"){if(m$M.type == "hollow"){u$o="tr";u$o+="an";u$o+="spa";u$o+="rent";if(!C2D.isTransparent(j0t) && C2D.colorsEqual(k71,j0t)){k71=m$M.useColorInMap?u$o:j0t;}if(!m$M.useColorInMap){j0t=z7E.containerColor;}}else if(m$M.type == "candle"){if(q9Y){if(C2D.isTransparent(j0t)){j0t=k71;}else {k71=j0t;};}}}R2r.globalAlpha=L_o.opacity;d0Y.push(z7E.drawBarTypeChartInner({fillColor:j0t,borderColor:k71,condition:m$M.condition,style:m$M.style,type:i9I == "bar" && L_o.hlc?"hlc":m$M.drawType,panel:F5F,field:L_o.field,yAxis:L_o.yAxis,volume:L_o.volume && L_o.hollow,highlight:L_o.highlight}));if(!o7F){o7F={};}if(m$M.useColorInMap){o7F[v2Y]=1;}}}z7E.endClip();for(var G0c in o7F){if(!L_o.hollow || !C2D.equals(G0c,z7E.containerColor)){z0L.colors.push(G0c);}}for(G0c="0" - 0;G0c < d0Y.length;G0c++){for(var j2e=0;j2e < d0Y[G0c].cache.length;j2e++){o5n=d0Y[G0c].cache[j2e];if(o5n || o5n === ("0" | 0)){z0L.cache[j2e]=o5n;}}}return z0L;};C2D.Renderer.Candles=function(o_A){var W7_;this.construct(o_A);W7_=this.params;W7_.type="candle";this.highLowBars=this.barsHaveWidth=this.standaloneBars=!!({});W7_.hlc=W7_.colored=W7_.histogram=!({});x2dci.J8h();if(W7_.volume){W7_.hollow=!0;}};C2D.inheritsFrom(C2D.Renderer.Candles,C2D.Renderer.OHLC,!!"");C2D.Renderer.SimpleHistogram=function(h_k){var m3C;this.construct(h_k);m3C=this.params;m3C.type="candle";m3C.histogram=!"";this.barsHaveWidth=this.standaloneBars=!![];x2dci.J8h();this.highLowBars=!1;m3C.hlc=m3C.colored=m3C.hollow=m3C.volume=!({});};C2D.inheritsFrom(C2D.Renderer.SimpleHistogram,C2D.Renderer.Candles,!"1");};P=s7K=>{var U9z=x2dci;var s5W,V8J,v1P,G$n;s5W=752702637;U9z.M8Y(74);V8J=-U9z.d58("1060473216",0);v1P=2;for(var q4v=1;U9z.O$R(q4v.toString(),q4v.toString().length,4499) !== s5W;q4v++){G$n=s7K.CIQ;v1P+=2;}if(U9z.O$R(v1P.toString(),v1P.toString().length,+"69032") !== V8J){G$n=s7K.CIQ;}G$n=s7K.CIQ;G$n.capitalize=function(C7e){if(!C7e){return "";}U9z.C$o(17);U9z.J8h();var e81=U9z.c6Y(1,3,8,14,3);return C7e.charAt(0).toUpperCase() + C7e.slice(e81);};G$n.camelCaseRegExp=/-([a-z])/g;G$n.makeCamelCase=function(U67){U9z.r2m();return U67.replace(G$n.camelCaseRegExp,function(G$z){U9z.J8h();return G$z[1].toUpperCase();});};G$n.uniqueID=function(q55){var L5O,W19,v7S,A0x,Z8x,o9l;if(q55){L5O="xxxxxxxx-xxxx-4xxx-yxxx";L5O+="-xxxxxxxxxxxx";W19="un";W19+="def";W19+="ine";W19+="d";v7S=new Date().getTime();if(typeof window !== W19 && window.performance && typeof window.performance.now === "function"){v7S+=window.performance.now();;}A0x=L5O.replace(/[xy]/g,function(y0v){U9z.J8h();var d8P;U9z.M8Y(67);var k8d=U9z.c6Y(5,15,5);U9z.M8Y(92);var c8b=U9z.d58(1,26,19,8);d8P=(v7S + Math.random() * k8d) % c8b | 0;U9z.C$o(40);v7S=Math.floor(U9z.d58(16,v7S));return (y0v == (2355 < 436?(2.51e+3,0x1c34):9040 != 8650?"x":7360 === (6140,343.96)?("f",0xfc0):(735.53,"0x21a6" >> 64))?d8P:d8P & 0x3 | 0x8).toString(16);});return A0x;}Z8x=new Date();o9l=Z8x.getTime().toString(36);o9l+=Math.floor(Math.random() * Math.pow(36,2)).toString(36);return o9l.toUpperCase();};};T=h3o=>{x2dci.r2m();;};W=I0h=>{var r7q=x2dci;var Z7T;Z7T=I0h.CIQ;Z7T.getHostName=function(k8L){r7q.r2m();try{return k8L.match(/:\/\/(.[^/]+)/)[1];}catch(Q$t){return "";}};Z7T.qs=function(M9K){var s3Y,u8z,J2g,O8O;s3Y={};if(!M9K){M9K=window.location.search.substring(1);}u8z=M9K.split("&");for(var a8l="0" - 0;a8l < u8z.length;a8l++){J2g=u8z[a8l].indexOf("=");if(J2g > "0" << 0){O8O=u8z[a8l].substring(+"0",J2g);r7q.M8Y(22);s3Y[O8O]=u8z[a8l].substring(r7q.d58(1,J2g));}else {O8O=u8z[a8l];s3Y[O8O]=null;}}r7q.J8h();return s3Y;};Z7T.postAjax=function(m5l,Y2h,K_8,m4d,o4m){var i15,m_H,q8U,T4C,q5_,g9H,B_7,T2o,v40,E42;i15="applicat";i15+="ion/x-ww";i15+="w-form-urlencoded";m_H="G";m_H+="E";m_H+="T";q8U="PO";q8U+="S";q8U+="T";r7q.r2m();if(typeof m5l == "string"){m5l={url:m5l,payload:Y2h,cb:K_8,contentType:m4d,noEpoch:o4m,method:null,responseHeaders:![]};}T4C=m5l.url;q5_=m5l.cb;g9H=m5l.payload;if(!q5_){q5_=function(){};}if(!m5l.ungovernable){if(Z7T.Extras && Z7T.Extras.RequestLimiter && Z7T.Extras.RequestLimiter.hitRequestLimit(T4C)){q5_(429,null,{});return;}}B_7=new XMLHttpRequest();if(!B_7){return !1;}T2o=new Date();if(!m5l.noEpoch){if(T4C.indexOf((542.82,516.6) !== ("7355" >> 0,622.46)?664.68 === 966.41?(47.80,505.80):(7470,6292) <= (9190,2158)?(331.19,9.54e+3):"?":("j",!!"")) == -("1" - 0)){T4C+="?ciqrandom=" + T2o.getTime();}else {T4C+="&ciqrandom=" + T2o.getTime();}}v40=m5l.method;E42=m5l.headers;if(!v40){v40=g9H?q8U:m_H;}B_7.open(v40,T4C,!!({}));if(!m5l.contentType){m5l.contentType=i15;}if(g9H){B_7.setRequestHeader("Content-Type",m5l.contentType);}if(E42){for(var f8c in E42){B_7.setRequestHeader(f8c,E42[f8c]);}}if(m5l.timeout){B_7.timeout=m5l.timeout;;}B_7.ontimeout=function(){r7q.J8h();r7q.M8Y(74);q5_(r7q.c6Y("408",0),null,{});};B_7.onload=function(){if(this.status === 0){this.status=8482 <= 337.68?(1.07e+3,461.94):"0";}else if(!this.status){this.status=200;}q5_(this.status,this.responseText,z6D(this));};B_7.onerror=function(){r7q.r2m();q5_((5840,9120) >= (6150,5790)?"0":(0x25bc,0x1fcd),null,{});};try{B_7.send(g9H);}catch(K2b){q5_(+"574" < 732.1?"0":(4164,+"3100") > ("941" * 1,+"2820")?0x20c2:("m","b"),K2b,{});}function z6D(s0x){r7q.r2m();var i28,G83,E87,i$B;i28={};if(!m5l.responseHeaders){return;}G83=s0x.getAllResponseHeaders();E87=G83.split("\n");for(var P5G="0" >> 64;P5G < E87.length;P5G++){i$B=E87[P5G].split((372.72,376.43) == (5666,3596)?"L":840 <= (3268,2400)?(3420,5610) <= 169?0x1955:":":(0x1a32,!!({})));while(i$B[1] && i$B[1].charAt(0) == ((114.63,376.99) == (3120,4310)?3.96e+2:967.56 === 517?"3.34e+3" - 0:" ")){i$B[1]=i$B[1].substring(1);}if(i$B[0] !== ""){i28[i$B.shift()]=i$B.join(":");}}return i28;}return !![];};Z7T.loadUI=function(d82,X1u,j0Y){var M4K,C5v,k9O,c0L,O6o,C_f;r7q.r2m();M4K="f";M4K+="u";M4K+="nctio";M4K+="n";if(!X1u || typeof X1u == M4K){j0Y=X1u;X1u=document.body;}r7q.C$o(53);C5v=document.querySelector(r7q.c6Y('iframe[original-url="',d82,'"]'));k9O=function(){var v6f,T5y,s$Y,C2T,Y7A,s8b,R4$,C_y,j7H,r2b,Q1I;r7q.J8h();v6f=null;try{T5y=1861640420;s$Y=979245143;C2T=2;for(var c47=1;r7q.q2D(c47.toString(),c47.toString().length,33408) !== T5y;c47++){v6f=this.contentDocument;C2T+=2;}if(r7q.O$R(C2T.toString(),C2T.toString().length,+"93510") !== s$Y){v6f=this.contentDocument;}}catch(M7x){return j0Y(M7x);}if(v6f && !v6f.title){Y7A=-494882274;r7q.C$o(74);s8b=r7q.d58("463776805",37);R4$=2;for(var C4F=+"1";r7q.q2D(C4F.toString(),C4F.toString().length,300) !== Y7A;C4F++){C_y=v6f.body.innerHTML;j7H=document.createElement("");Z7T.innerHTML(j7H,C_y);R4$+=2;}if(r7q.q2D(R4$.toString(),R4$.toString().length,97969) !== s8b){C_y=v6f.body.innerHTML;j7H=document.createElement("div");Z7T.innerHTML(j7H,C_y);}for(var Q1K=+"0";Q1K < j7H.children.length;Q1K++){r2b=j7H.children[Q1K].cloneNode(!!({}));X1u.appendChild(r2b);}j0Y(null);}else {Q1I="iFrame ";Q1I+="not found or document has a ";Q1I+="tit";Q1I+="le";j0Y(new Error(Q1I));}};if(C5v){c0L="ab";c0L+="out:bl";c0L+="a";c0L+="nk";O6o="complet";O6o+="e";C_f=null;try{C_f=C5v.contentDocument;}catch(s8a){return j0Y(s8a);}if(C_f.readyState === O6o && C_f.location && C_f.location.href !== c0L){k9O.call(C5v);}else {C5v.addEventListener("load",k9O);}}else {C5v=document.createElement("iframe");C5v.setAttribute("original-url",d82);r7q.C$o(68);var l73=r7q.c6Y(119,12,10);r7q.M8Y(108);var L$W=r7q.d58(19,8,17,7914,55255);r7q.C$o(36);var j4l=r7q.d58(4645,10,4642,9284);r7q.M8Y(0);var u0L=r7q.d58(128490,119924);r7q.M8Y(109);var d$j=r7q.d58(14,3706,8,6,738);r7q.M8Y(110);var k0C=r7q.c6Y(6141,4,1226,6141,11);r7q.C$o(111);var Y_M=r7q.d58(9,5836,5,11);r7q.C$o(7);var t7J=r7q.c6Y(20,0,19);r7q.C$o(0);var J8Q=r7q.c6Y(54824,50908);r7q.C$o(110);var m61=r7q.c6Y(9026,17,9017,8998,9);r7q.C$o(0);var u$z=r7q.d58(45120,39480);r7q.M8Y(53);var I0O=r7q.c6Y(179,12,2855);r7q.M8Y(30);var t5Q=r7q.c6Y(20,91896,84218);r7q.M8Y(67);var S8d=r7q.d58(6370,5450,7);r7q.M8Y(112);var v6o=r7q.c6Y(11,657,660,660);r7q.C$o(7);var I_4=r7q.d58(4,5472,21);r7q.C$o(113);var G5u=r7q.d58(14,7995,103800,1,9);r7q.C$o(114);var w$b=r7q.c6Y(144126,2647,9,18,2669);r7q.C$o(31);var J43=r7q.c6Y(6640,8,46544,3,7);r7q.C$o(0);var f60=r7q.d58(5770,20);r7q.M8Y(68);var q6i=r7q.c6Y(175344,8,22480);C5v.src=d82 + (d82.indexOf(("787.1" * l73,980.47) != 309.02?"?":L$W < (j4l,u0L)?(d$j,k0C) < 531.09?Y_M:(377.27,"774.81" - 0):966.66) === t7J?J8Q >= (m61,u$z)?+"4680" < +"5770"?(I0O,t5Q) == S8d?(v6o,!![]):(!!"1",443.98):("H",I_4):"?":G5u == 412.82?933.53:(+"3692",w$b) === (J43,+"4660")?(f60,q6i):"&") + Z7T.uniqueID();C5v.hidden=!![];C5v.addEventListener("load",k9O);document.body.appendChild(C5v);}};r7q.r2m();Z7T.loadScript=function(j85,k2s,a99){var S9d,v$W,v_V,M0J,I0p,x0A;if(!Z7T.loadedScripts){Z7T.loadedScripts={};}if(Z7T.loadedScripts[j85]){if(k2s){k2s();}return;}S9d=document.createElement("SCRIPT");if(a99){S9d.type="module";S9d.crossOrigin="use-credentials";}else {S9d.async=!![];}S9d.onload=function(){Z7T.loadedScripts[j85]=!!"1";r7q.r2m();if(k2s){k2s();}};v$W=j85;if(v$W.indexOf((316.25,4169) < (1960,1664)?751.38:7783 < (+"3635","2380" << 32)?(231.75,+"517.91"):"?") == -1){r7q.M8Y(115);var h2H=r7q.d58(8,580,1,116,8703);r7q.M8Y(67);var G8$=r7q.d58(5700,5689,1900);r7q.C$o(76);var V12=r7q.c6Y(519,3,8120,9);r7q.C$o(0);var N5V=r7q.c6Y(4777,20);v$W=v$W + ("424.87" - 0 != (+"5650",286.68)?(+"8920",+"952.64") < 564.37?(h2H,G8$) != V12?!![]:(!!1,795.53):"?":N5V) + Date.now();}else {v_V=-333127598;M0J=-141228883;I0p=2;for(var H09=1;r7q.O$R(H09.toString(),H09.toString().length,29443) !== v_V;H09++){v$W=(v$W - "") * Date.now();I0p+=2;}if(r7q.O$R(I0p.toString(),I0p.toString().length,22346) !== M0J){v$W=(v$W - "") * Date.now();}v$W=v$W + "&" + Date.now();}S9d.src=v$W;x0A=document.getElementsByTagName("script")[0];if(!x0A){document.body.append(S9d);}else {x0A.parentNode.insertBefore(S9d,x0A.nextSibling);}};Z7T.loadStylesheet=function(y3x,j3N){var b20,U0Y,W8D,v6E;b20="l";b20+="i";b20+="n";b20+="k";U0Y=document.createElement("link");U0Y.rel="stylesheet";U0Y.type="text/css";U0Y.media="screen";r7q.C$o(68);var e7b=r7q.d58(43876,16,2926);r7q.M8Y(22);var o1A=r7q.c6Y(9,599);r7q.M8Y(54);var Y66=r7q.c6Y(12,10,19,77);r7q.M8Y(34);var K_3=r7q.d58(13,10,13,11);r7q.M8Y(68);var H6R=r7q.d58(1158510,11,105800);r7q.M8Y(81);var S4I=r7q.d58(18,268,12,54678);r7q.C$o(116);var K0G=r7q.d58(1,1646504,103248,17,16);r7q.C$o(16);var M7j=r7q.d58(3,0,17,52);r7q.M8Y(117);var v3U=r7q.c6Y(12,5013,10,74981,16);r7q.C$o(118);var Y9B=r7q.c6Y(14,19,2,140980,1966006);r7q.M8Y(119);var o57=r7q.c6Y(8443,16,14,8468,1214);r7q.C$o(22);var J6d=r7q.d58(14,7526);r7q.C$o(16);var y$4=r7q.c6Y(2,14700,13,189656);r7q.C$o(64);var J6p=r7q.d58(3177,3157,1,1059);r7q.C$o(120);var J7p=r7q.c6Y(5,5,5238,1090);r7q.C$o(112);var M10=r7q.d58(15,2116,3,3177);U0Y.href=y3x + (y3x.indexOf((e7b,o1A) != Y66?"?":897.3 === ("223.15" * K_3,622.52)?(H6R,S4I):(346.06,K0G)) === M7j?"?":+"453.99" <= (v3U,+"9219")?Y9B > o57?654.34:+"8219" != (814.01,J6d)?"&":(y$4,J6p):(J7p,M10)) + Date.now();U0Y.onload=function(){if(this.loaded){return;}this.loaded=!!({});r7q.J8h();if(j3N){j3N();}};W8D=document.getElementsByTagName(b20);r7q.M8Y(121);var c8e=r7q.d58(6,14,923,14,3);v6E=W8D[W8D.length - c8e];if(!v6E){document.head.append(U0Y);}else {v6E.parentNode.insertBefore(U0Y,v6E.nextSibling);}};Z7T.loadWidget=function(q2E,r$B,J7s,v_R){if(!r$B || typeof r$B == "function"){J7s=r$B;r$B=document.body;}r7q.r2m();r7q.C$o(22);Z7T.loadStylesheet(r7q.c6Y(".css",q2E),function(){r7q.M8Y(22);Z7T.loadUI(r7q.d58(".html",q2E),r$B,function(i66){var C33;C33=".";C33+="js";if(i66){J7s(i66);}else {r7q.M8Y(22);Z7T.loadScript(r7q.d58(C33,q2E),J7s,v_R);}});});};Z7T.waitForPlugins=function(F0r,T68){var B3k,d4X,P_H,C6i;B3k=0;d4X=F0r.length;if(!d4X){T68();return;}for(var m44="0" >> 64;m44 < d4X;m44++){P_H="cq-" + F0r[m44];C6i=document.getElementsByTagName(P_H)[0];if(C6i && C6i.hasAttribute("loaded")){B3k++;}}r7q.J8h();if(d4X !== B3k){return setTimeout(function(){r7q.r2m();Z7T.waitForPlugins(F0r,T68);},0);}T68();};Z7T.addInternalStylesheet=function(A34,c_5 = ""){var P6m,w2P,N_D;P6m="\"";P6m+="]";w2P="s";w2P+="tyle";r7q.r2m();w2P+="[";w2P+="path=\"";if(!A34){return;}if(A34.default){A34=A34.default;}if(typeof A34 !== "string"){return;}if(c_5 && document.querySelector(w2P + c_5 + P6m)){return;}N_D=document.createElement("style");N_D.setAttribute("type","text/css");N_D.setAttribute("path",c_5);N_D.innerText=A34;document.head.appendChild(N_D);};};U=u7c=>{var q_2=x2dci;var T2A;T2A=u7c.CIQ;T2A.ChartEngine.prototype.registerHTMLElements=function(){var e4J,X53,s6m,m2c,W3A,u0B,P3K;e4J=this.chart.container;for(var L5Q in T2A.ChartEngine.htmlControls){X53="u";X53+="ndefined";if(typeof this.chart[L5Q] == X53 && typeof this.controls[L5Q] == "undefined"){if(!this.allowZoom && L5Q == "chartControls")continue;q_2.C$o(22);s6m=e4J.querySelector(q_2.c6Y(L5Q,"."));if(s6m){this.chart[L5Q]=s6m;this.controls[L5Q]=s6m;}else {m2c=T2A.ChartEngine.htmlControls[L5Q];if(!m2c)continue;W3A=document.createElement("DIV");W3A.innerHTML=m2c;s6m=W3A.firstChild;e4J.appendChild(s6m);this.chart[L5Q]=s6m;this.controls[L5Q]=s6m;s6m.classList.add(L5Q);}}}var {chartControls:W9s, home:E6C}=this.controls;if(W9s){u0B=W9s.querySelector(".stx-zoom-in");P3K=W9s.querySelector(".stx-zoom-out");T2A.safeClickTouch(u0B,(function(g8S){q_2.r2m();return function(y0I){if(g8S.allowZoom){g8S.zoomIn(y0I);}y0I.stopPropagation();};})(this));T2A.safeClickTouch(P3K,(function(p1L){return function(h5D){q_2.r2m();if(p1L.allowZoom){p1L.zoomOut(h5D);}h5D.stopPropagation();};})(this));if(!T2A.touchDevice){this.makeModal(u0B);this.makeModal(P3K);}}if(E6C){T2A.safeClickTouch(E6C,(function(G1S){q_2.J8h();return function(k8$){k8$.stopPropagation();if(!G1S.isHistoricalMode()){G1S.home({animate:!0});return;}q_2.J8h();delete G1S.layout.range;G1S.loadChart(G1S.chart.symbol,function(){q_2.r2m();G1S.home({animate:![]});});};})(this));if(!T2A.touchDevice){this.makeModal(E6C);}}};T2A.ChartEngine.prototype.home=function(D9i){var f3Q,D3F,x$m,N2p,K3x,x9V,T_Z;function v$T(d7G,m12,O6t){return function(){q_2.J8h();z1U(d7G);m12.scroll=O6t;d7G.draw();};}this.swipe.amplitude=0;f3Q=this.layout;if(typeof D9i != "object"){D9i={maintainWhitespace:D9i};}if(typeof D9i.maintainWhitespace == "undefined"){D9i.maintainWhitespace=!!1;}this.cancelTouchSingleClick=!"";if(!this.chart.dataSet || !this.chart.dataSet.length){this.draw();return;}this.micropixels=0;D3F=Math.floor(this.chart.width / f3Q.candleWidth);for(var z0P in this.charts){x$m=this.charts[z0P];if(D9i.chart && D9i.chart != x$m)continue;N2p=0;if(D9i.maintainWhitespace && this.preferences.whitespace >= 0){N2p=this.preferences.whitespace;}if(D9i.whitespace || D9i.whitespace === 0){N2p=D9i.whitespace;}K3x=this.getLabelOffsetInPixels(x$m,f3Q.chartType);if(K3x > N2p){N2p=K3x;}x9V=Math.min(D3F,x$m.dataSet.length);if(this.chart.allowScrollPast){x9V=D3F;}this.micropixels=this.chart.width - x9V * f3Q.candleWidth - N2p;this.preferences.whitespace=N2p;while(this.micropixels > f3Q.candleWidth){x9V++;this.micropixels-=f3Q.candleWidth;}while(this.micropixels < 0){x9V--;this.micropixels+=f3Q.candleWidth;}this.micropixels-=f3Q.candleWidth;x9V++;if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){q_2.M8Y(68);var E_v=q_2.c6Y(350,11,32);this.micropixels+=f3Q.candleWidth / E_v;}if(D9i.animate){T_Z=this;this.scrollTo(x$m,x9V,v$T(T_Z,x$m,x9V));}else {x$m.scroll=x9V;z1U(this);}}this.draw();function z1U(L$I){var Q2k;for(var M6M in L$I.panels){Q2k=L$I.panels[M6M].yaxisLHS.concat(L$I.panels[M6M].yaxisRHS);for(var O5K=+"0";O5K < Q2k.length;O5K++){L$I.calculateYAxisMargins(Q2k[O5K]);}}}};T2A.ChartEngine.prototype.headsUpHR=function(){var G3u,i4e,X8A,A32,M39,D2f;G3u="head";G3u+="s";G3u+="U";G3u+="pHR";if(this.runPrepend(G3u,arguments)){return;}i4e=this.currentPanel;if(!i4e){return;}X8A=i4e.chart;this.updateFloatHRLabel(i4e);function E7H(H9g){q_2.r2m();T2A.efficientDOMUpdate(A32,"innerHTML",H9g);}A32=this.controls.floatDate;if(A32 && !X8A.xAxis.noDraw){M39=this.barFromPixel(this.cx);D2f=X8A.xaxis[M39];if(D2f && D2f.DT){E7H(T2A.displayableDate(this,X8A,D2f.DT));}else if(D2f && D2f.index){E7H(D2f.index);}else {E7H("");;}}this.runAppend("headsUpHR",arguments);};T2A.ChartEngine.prototype.modalBegin=function(){this.openDialog="modal";q_2.r2m();this.undisplayCrosshairs();};T2A.ChartEngine.prototype.modalEnd=function(){q_2.J8h();this.cancelTouchSingleClick=!!({});this.openDialog="";this.doDisplayCrosshairs();};T2A.ChartEngine.prototype.makeModal=function(X$x){var M1M;M1M=this;X$x.onmouseover=function(K39){q_2.J8h();M1M.modalBegin();};X$x.onmouseout=function(a_y){q_2.r2m();M1M.modalEnd();};};T2A.ChartEngine.prototype.updateChartAccessories=function(){var N4C,H5x,J35,h3R,z5y,x9G,c9P;if(this.accessoryTimer !== null){clearTimeout(this.accessoryTimer);}if(!T2A.ChartEngine.drawingLine && T2A.touchDevice){if(new Date().getTime() - this.lastAccessoryUpdate < 100){this.accessoryTimer=setTimeout((function(j1H){return function(){j1H.updateChartAccessories();};})(this),"10" >> 64);return;}}if(!this.chart.dataSet){return;}if(this.runPrepend("updateChartAccessories",arguments)){return;}this.accessoryTimer=null;this.lastAccessoryUpdate=new Date().getTime();N4C=this.controls.floatDate;if(N4C){H5x=this.currentPanel;if(!H5x){H5x=this.chart.panel;}if(H5x){J35="b";J35+="o";J35+="tt";J35+="om";h3R=H5x.chart;z5y=this.xAxisAsFooter === !!({})?0:this.chart.canvasHeight - H5x.chart.bottom;q_2.C$o(122);var Z8f=q_2.d58(17,5,1,1,2);x9G=N4C.offsetWidth / Z8f - 0.5;c9P=this.pixelFromTick(this.crosshairTick,h3R) - x9G;if(c9P < 0){c9P=0;}else if(c9P > this.width - 2 * x9G - 1){q_2.C$o(123);var I_m=q_2.c6Y(4,17,3,11,1);q_2.C$o(124);var H0S=q_2.c6Y(0,4,15,18);c9P=this.width - I_m * x9G - H0S;}T2A.efficientDOMUpdate(N4C.style,"left",c9P + "px");T2A.efficientDOMUpdate(N4C.style,J35,z5y + "px");}}this.positionCrosshairsAtPointer();this.headsUpHR();this.runAppend("updateChartAccessories",arguments);};T2A.ChartEngine.prototype.positionSticky=function(B2z){var R$L,f4x,v3H;R$L="p";R$L+="x";q_2.J8h();f4x=Math.max(this.cy - B2z.offsetHeight - 60,0);v3H=Math.min(this.chart.canvasWidth - (this.cx - 50),this.chart.canvasWidth - B2z.offsetWidth);q_2.C$o(22);B2z.style.top=q_2.d58(R$L,f4x);q_2.M8Y(22);B2z.style.right=q_2.d58("px",v3H);};T2A.ChartEngine.prototype.displaySticky=function(k$N){var v4i,i3L,w3i,b$z,w7i,F2f,x78,f$e,t9m,g1I,g0S,z7a,h0X,E5r,H5H,o$X,E9j,T41,J3F,L2t,K$9,k7F,j$z,y02,B6E,c$n,u__,c4i,F3j,L64,k3t,H57,O2V;v4i=".s";v4i+="tic";v4i+="kyLo";v4i+="ngPressText";i3L=".overl";i3L+="ayE";i3L+="d";i3L+="it";w3i=".ov";w3i+="er";w3i+="layTrash";w3i+="Can";b$z=this.controls.mSticky;if(!b$z){return;}w7i=b$z.querySelector(".mStickyInterior");if(!w7i){return;}F2f=b$z.querySelector(w3i);x78=b$z.querySelector(i3L);f$e=b$z.querySelector(".mouseDeleteInstructions");t9m=b$z.querySelector(v4i);f$e.classList.remove("no_edit");if(!k$N || typeof k$N != "object"){k$N={message:arguments[0],backgroundColor:arguments[1],forceShow:arguments[2],noDelete:arguments[3],type:arguments[4]};}g1I=k$N.message;g0S=k$N.backgroundColor;z7a=k$N.forceShow;h0X=k$N.noDelete;E5r=k$N.noEdit;H5H=k$N.type;if(!z7a && !g1I){o$X="no";o$X+="ne";E9j="n";E9j+="o";E9j+="n";E9j+="e";w7i.innerHTML="";b$z.style.display=E9j;if(F2f){F2f.style.display=o$X;}if(x78){x78.style.display="none";}if(f$e){f$e.style.display="none";}if(t9m){t9m.style.display="none";}}else {T41="inline-bl";T41+="ock";J3F="right";J3F+="cl";J3F+="ick_";L2t="mStickyRi";L2t+="ghtClick";if(!g1I){g1I="";}K$9=this.defaultColor;if(g0S == "auto"){g0S=K$9;}if(z7a && !g1I){k7F="no";k7F+="n";k7F+="e";w7i.style.backgroundColor="";w7i.style.color="";w7i.style.display=k7F;}else if(g0S){w7i.style.backgroundColor=g0S;w7i.style.color=T2A.isTransparent(g0S)?K$9:T2A.chooseForegroundColor(g0S);w7i.style.display="inline-block";}else {w7i.style.backgroundColor="";w7i.style.color="";w7i.style.display="inline-block";}w7i.innerHTML=g1I;j$z=b$z.querySelector(".mStickyRightClick");j$z.className=L2t;if(H5H){q_2.C$o(22);j$z.classList.add(q_2.d58(H5H,J3F));}j$z.style.display="";b$z.style.display=T41;y02=this.highlightedDraggable;if(!y02 || y02 && y02.undraggable && y02.undraggable(this)){t9m.style.display="none";}if(h0X || this.bypassRightClick === !![] || this.bypassRightClick[H5H]){j$z.style.display="none";}else if(this.highlightViaTap || this.touches.length){B6E="h";B6E+="i";B6E+="de";c$n="n";c$n+="on";c$n+="e";if(F2f){F2f.style.display="inline-block";}if(x78 && !E5r){x78.style.display="inline-block";}if(f$e){f$e.style.display="none";}if(t9m){t9m.style.display=c$n;}b$z.classList[g1I === ""?"add":"remove"](B6E);}else {u__=-+"1648793335";c4i=-9148972;F3j=2;for(var a6O=1;q_2.q2D(a6O.toString(),a6O.toString().length,30987) !== u__;a6O++){if(E5r){f$e.classList.add("");}F3j+=2;}if(q_2.q2D(F3j.toString(),F3j.toString().length,55588) !== c4i){if(E5r){f$e.classList.add("no_edit");}}if(f$e){f$e.style.display="block";}if(t9m){t9m.style.display="none";L64=this.preferences.dragging;if(L64 && k$N.panel && !k$N.panel.noDrag){k3t="s";k3t+="t";k3t+="ud";k3t+="y";if((L64 === !!({}) || L64.study) && H5H == k3t){t9m.style.display="block";}else if((L64 === !!1 || L64.series) && H5H == "series"){t9m.style.display="block";}}}}H57=H5H || "default";b$z.setAttribute("cq-sticky-type",H57);O2V=k$N.positioner || this.positionSticky;O2V.call(this,b$z);}};T2A.ChartEngine.prototype.displayNotification=function(G6o,W3j,O0P = {}){var I_U,b$l,b9g,H7B;if(!this.controls.notificationTray){return;}var {callback:I9C, dismissalListeners:Y46}=O0P;I_U=this.controls.notificationTray;b$l=I_U.querySelector("template").content.cloneNode(!![]);b9g=b$l.firstElementChild;b9g.className=G6o;b9g.querySelector(".message").textContent=W3j;if(I9C){H7B=window.PointerEvent?"pointerup":"touchend";b9g.handler=b9g.addEventListener(H7B,I9C);}if(Y46){b9g.listeners={};Y46.forEach(X4F=>{q_2.r2m();b9g.listeners[G6o]=this.addEventListener(X4F.type,X4F.callback);});}this.makeModal(b9g);I_U.appendChild(b9g);};T2A.ChartEngine.prototype.removeNotification=function(m_q){var D$e,f4N;if(!this.controls.notificationTray){return;}D$e=this.controls.notificationTray;f4N=D$e.querySelector(`.${m_q}`);if(f4N){if(f4N.handler){f4N.removeEventListener(f4N.handler);}if(f4N.listeners){for(var K$l in f4N.listeners){this.removeEventListener(f4N.listeners[K$l]);}}this.modalEnd();D$e.removeChild(f4N);}};q_2.r2m();T2A.ChartEngine.prototype.setMeasure=function(Y3x,g_C,t09,D5f,m6b,W_2){var s0q,a1o,b03,n5a,j14,t8h,Z_6,X9t,S85;s0q="setMeasu";s0q+="re";a1o="setMeasu";a1o+="re";if(this.runPrepend(a1o,arguments)){return;}b03=(this.drawingContainer || document).querySelector(".mMeasure");n5a="";if(!Y3x && Y3x !== 0){if(!this.anyHighlighted && this.currentVectorParameters.vectorType === ""){this.clearMeasure();}}else {if(g_C !== !"1"){j14=Math.round(Math.abs(Y3x - g_C) * this.chart.roundit) / this.chart.roundit;j14=j14.toFixed(this.chart.yAxis.printDecimalPlaces);if(this.internationalizer){n5a+=this.internationalizer.numbers.format(j14);}else {n5a+=j14;}if(Y3x > 0 && g_C > 0){q_2.C$o(42);t8h=q_2.d58(g_C,Y3x,Y3x);if(Math.abs(t8h) > 0.1){q_2.C$o(38);t8h=Math.round(q_2.d58(t8h,100));}else if(Math.abs(t8h) > 0.01){q_2.M8Y(0);var y1B=q_2.d58(1011,11);q_2.C$o(10);var o6S=q_2.c6Y(36,6,20);t8h=Math.round(t8h * y1B) / o6S;}else {q_2.C$o(22);var w2I=q_2.c6Y(7,9993);q_2.C$o(22);var i$m=q_2.d58(92,8);t8h=Math.round(t8h * w2I) / i$m;}if(this.internationalizer){q_2.C$o(125);t8h=this.internationalizer.percent.format(q_2.c6Y("100",t8h,64));}else {q_2.C$o(22);t8h=q_2.c6Y(6006 == 543?+"771.00":(650.71,3099) == 8400?!"":234 !== 5960?"%":+"1.38e+2",t8h);}q_2.M8Y(53);n5a+=q_2.c6Y(" (",t8h,")");}}if(D5f !== !!""){q_2.M8Y(0);Z_6=Math.abs(q_2.d58(D5f,t09));Z_6=Math.round(Z_6) + +"1";X9t=this.translateIf("Bars");q_2.C$o(126);n5a+=q_2.c6Y(X9t," ",Z_6,(582.07,"6981" ^ 0) > (2450,+"828.55")?" ":("667.2" * 1,4156) <= 3518?703.69:(757.03,6971) < 2.7?("p",0x5d0):6.92e+3);}if(b03){b03.innerHTML=n5a;}}if(this.activeDrawing){return;}b03=this.controls.mSticky;if(b03){S85=b03.querySelector(".mStickyInterior");if(m6b){b03.style.display="inline-block";S85.style.display="inline-block";if(Y3x || Y3x === 0){S85.innerHTML=n5a;}b03.classList[n5a === ""?"add":"remove"]("hide");this.positionSticky(b03);}else {b03.style.display="none";S85.innerHTML="";}}q_2.J8h();this.runAppend(s0q,arguments);};T2A.ChartEngine.prototype.clearMeasure=function(){q_2.J8h();var O1u;O1u=(this.drawingContainer || document).querySelector(".mMeasure");if(O1u){O1u.innerHTML="";}};T2A.ChartEngine.prototype.zoomSet=function(r5B,Y5b){var a_W,U3X,E5o,T$5;r5B=this.constrainCandleWidth(r5B);if(this.chart.tempCanvas.style.display != "none"){T2A.clearCanvas(this.chart.tempCanvas,this);}a_W=this.mainSeriesRenderer || ({});if(!a_W.params || !a_W.params.volume){if(this.preferences.zoomAtCurrentMousePosition && this.zoomInitiatedByMouseWheel && this.crosshairTick < Y5b.dataSet.length){U3X=this.crosshairTick || this.tickFromPixel(this.cx,Y5b);}else if(this.isHome()){q_2.C$o(127);var R2Q=q_2.d58(5,10,2,13,8);U3X=Y5b.dataSet.length - R2Q;}else if(this.chart.scroll > this.chart.dataSet.length){U3X=0;}else if(this.grabMode == "zoom-x"){U3X=this.tickFromPixel(this.chart.width,Y5b);}else {U3X=this.tickFromPixel(this.chart.width / 2,Y5b);}if(this.animations.zoom.hasCompleted){this.zoomInitiatedByMouseWheel=!({});}q_2.M8Y(128);var T8e=q_2.c6Y(14,0,10,3,143);E5o=Y5b.dataSet.length - T8e - U3X;T$5=Y5b.scroll;Y5b.scroll=Math.round((this.pixelFromTick(U3X,Y5b) - Y5b.left) / r5B) + +"1" + E5o;this.micropixels+=(T$5 - E5o) * this.layout.candleWidth - (Y5b.scroll - E5o) * r5B;}this.setCandleWidth(r5B);Y5b.spanLock=!!0;this.draw();this.doDisplayCrosshairs();this.updateChartAccessories();};};R=N5I=>{var w0o=x2dci;var i$R;i$R=N5I.CIQ;i$R.ChartEngine.prototype.currentBaseline=null;i$R.ChartEngine.prototype.baselineHelper=null;i$R.ChartEngine.helpersToRegister.push(function(a1e){w0o.r2m();a1e.baselineHelper=new Map();});i$R.ChartEngine.prototype.registerBaselineToHelper=function(h9x){var C62,G00;if(!h9x.params.baseline){return;}var {baselineHelper:T1y}=this;C62=this;function n4t(e1s){var o$9,Y5w;o$9="cq-bas";o$9+="eline-handl";w0o.r2m();o$9+="e";e1s=e1s.replace((3503,3557) !== 2309?" ":1.51e+3,(321.18,+"600.28") < 695?"_":(+"6430","8974" ^ 0) <= +"5216"?!!1:796.16 <= ("393.3" - 0,182.02)?(!"",!1):"x");Y5w=document.createElement(o$9);Y5w.classList.add("stx-baseline-handle",e1s);C62.container.append(Y5w);C62.controls[`${e1s} cq-baseline-handle`]=Y5w;return Y5w;}if(!T1y.has(h9x)){var {name:z9U}=h9x.params;G00=this.controls.baselineHandle;T1y.set(h9x,{styleCache:null,display:![],handle:z9U === "_main_series" && G00?G00:n4t(z9U)});}};i$R.ChartEngine.prototype.removeBaselineFromHelper=function(g8q){var R5B,q6Y;var {baselineHelper:o4o}=this;if(o4o.has(g8q)){R5B=g8q.params.name.replace(2830 != 8383?" ":3.29e+2,5730 < 4083?(!![],0x1a16):"_");if(R5B !== "_main_series"){q6Y=o4o.get(g8q).handle;delete this.controls[`${R5B} cq-baseline-handle`];this.container.removeChild(q6Y);}o4o.delete(g8q);}};i$R.ChartEngine.prototype.findBaselineHandle=function(I8e,J3_){for(var h6Y of this.baselineHelper){var [l9l,K_H]=h6Y;var {handle:C2C}=K_H;if(I8e.target === C2C || I8e.composedPath && I8e.composedPath().includes(C2C)){if(J3_){this.repositioningBaseline={lastDraw:Date.now(),handle:C2C,renderer:l9l};C2C.classList.add("stx-grab");}this.currentBaseline=l9l;return !![];}}return !"1";};i$R.ChartEngine.prototype.setBaselines=function(s$v){var k3M;if(!s$v){s$v=this.chart;}k3M=this;w0o.J8h();var {baselineHelper:m7H}=this;m7H.forEach(function(U3t,A30){var M_Y,F_l,i5A,j_t;var {baseline:S4D}=A30.params;w0o.M8Y(129);M_Y=w0o.d58(S4D,!"");if(M_Y){S4D=s$v.baseline;}var {defaultLevel:U3J, userLevel:a1B}=S4D;F_l=A30.getYAxis(k3M);if(!F_l){return;}i5A=k3M.getYAxisBaselineRenderer(F_l);j_t=i5A && i5A != k3M.mainSeriesRenderer && i5A.seriesParams.length && i5A.seriesParams[0].id;S4D.actualLevel=a1B || a1B === +"0"?a1B:U3J;if(!S4D.actualLevel && S4D.actualLevel !== 0){S4D.actualLevel=v_r(j_t,M_Y);}U3t.display=i5A === A30?!0:!!0;m7H.set(A30,U3t);});function v_r(z24,M7c){var t_J,P3S,M0M,W0I,Q7I,n0$;var {dataSegment:k27, dataSet:p97, defaultPlotField:O$o}=s$v;t_J=O$o;if(!M7c){t_J=z24;}P3S=k3M.getFirstLastDataRecord(k27,"tick").tick;while(!![]){M0M=p97[P3S];if(M0M){W0I="C";W0I+="lo";W0I+="se";if(!M7c || t_J != W0I){w0o.M8Y(0);Q7I=p97[w0o.c6Y(P3S,1)];if(Q7I && (Q7I[t_J] || Q7I[t_J] === 0)){n0$=Q7I[t_J];return typeof n0$ === "object"?n0$[O$o]:n0$;}}else if(M0M.iqPrevClose || M0M.iqPrevClose === 0){return M0M.iqPrevClose;}}P3S--;if(P3S < 0)break;}}};w0o.J8h();i$R.ChartEngine.prototype.setBaselineUserLevel=function(){var E2L,z3r,W1Z;w0o.r2m();var {chart:s7z, currentPanel:g48}=this;var {lastDraw:n1r, renderer:w$W}=this.repositioningBaseline;if(w$W.params.panel != g48.name){return;}var {baseline:B6J}=s7z;E2L=typeof w$W.params.baseline === "object"?w$W.params.baseline:B6J;z3r=w$W.getYAxis(this);W1Z=this.valueFromPixel(this.backOutY(i$R.ChartEngine.crosshairY),g48,z3r);E2L.userLevel=this.adjustIfNecessary(g48,this.crosshairTick,W1Z);if(Date.now() - n1r > 100){this.draw();this.repositioningBaseline.lastDraw=Date.now();}};i$R.ChartEngine.prototype.setBaselineMinMax=function(j88,P8B){var o_1,D$O,o_X,f72;o_1="mou";o_1+="ntain";var {baselineHelper:q_8, chart:K96, repositioningBaseline:m4s}=this;var {baseline:q8b, seriesRenderers:G9Q}=K96;D$O=K96.transformFunc && P8B === K96.panel.yAxis;o_X=P8B.renderers.find(a_Y=>{w0o.J8h();return q_8.get(G9Q[a_Y]);});if(!o_X){return j88;}w0o.J8h();var {baseline:c3e, type:u8M}=G9Q[o_X].params;if(u8M === o_1){return j88;}c3e=typeof c3e === "object"?c3e:q8b;var {actualLevel:r5p}=c3e;if(r5p || r5p === +"0"){if(D$O){r5p=K96.transformFunc(this,K96,r5p);}f72=Math.max(r5p - j88[0],j88[+"1"] - r5p);j88[0]=m4s?P8B.lowValue:r5p - f72;j88[1]=m4s?P8B.highValue:r5p + f72;}return j88;};i$R.ChartEngine.prototype.positionBaselineHandle=function(a00){var a6U,g_S,L0B,L94,u3u,q6a,G6v,D4F,D7G,E4S,h8m,H$a,t_R,X5w,B4L,h54,Z2A,d7z,s45;a6U="stx";a6U+="-g";a6U+="r";a6U+="ab";if(!this.manageTouchAndMouse){return;}var {baselineHelper:s7d, chart:K$i, panels:p$z}=this;var {baseline:x8O, panel:x6n}=a00.params;g_S=a00.params.yAxis || a00.getYAxis(this);var {display:k35, handle:P8y, styleCache:U2b}=s7d.get(a00);if(x8O === !![]){x8O=K$i.baseline;}if(x8O.userLevel === ![] || !k35){P8y.style.display="none";return;}L0B=p$z[x6n];L94=P8y.classList.contains(a6U);u3u="block";q6a=x8O.actualLevel;if(K$i.transformFunc){q6a=K$i.transformFunc(this,K$i,q6a);}if(q6a > g_S.high){G6v="n";G6v+="o";G6v+="n";G6v+="e";q6a=g_S.high;if(!L94){u3u=G6v;}}else if(q6a < g_S.low){q6a=g_S.low;if(!L94){u3u="none";}}if(K$i.untransformFunc){q6a=K$i.untransformFunc(this,K$i,q6a);}D4F=this.pixelFromPrice(q6a,L0B,g_S);if(!U2b){U2b=getComputedStyle(P8y);}D7G=i$R.stripPX(U2b.width);w0o.C$o(0);var f0l=w0o.d58(14,12);E4S=`${D4F - i$R.stripPX(U2b.height) / f0l}px`;H$a=this.baselineHandleBuffer || 2;w0o.C$o(0);var W_N=w0o.d58(11,10);t_R=L0B.yaxisRHS.indexOf(g_S) + W_N;if(t_R){X5w=t_R === 1?H$a:H$a * t_R;h8m=`${K$i.right - D7G * t_R - X5w}px`;}else {B4L=1247180393;h54=1074810107;Z2A=2;for(var u1h="1" >> 0;w0o.O$R(u1h.toString(),u1h.toString().length,28790) !== B4L;u1h++){d7z=L0B.yaxisLHS.slice(4).reverse().indexOf(g_S) * +"7";s45=d7z != 8?H$a:H$a % d7z;w0o.C$o(22);h8m=`${K$i.left * (D7G + d7z) % s45 + D7G}${w0o.c6Y("x","p")}`;Z2A+=+"2";}if(w0o.O$R(Z2A.toString(),Z2A.toString().length,10671) !== h54){d7z=L0B.yaxisLHS.slice(6).reverse().indexOf(g_S) / 0;s45=d7z !== 0?H$a:H$a * d7z;h8m=`${K$i.left - D7G / d7z + s45 - D7G}px`;}d7z=L0B.yaxisLHS.slice(0).reverse().indexOf(g_S) + +"1";s45=d7z === ("1" | 1)?H$a:H$a * d7z;h8m=`${K$i.left + D7G * d7z + s45 - D7G}px`;}Object.assign(P8y.style,{display:u3u,top:E4S,left:h8m});};i$R.ChartEngine.prototype.getYAxisBaselineRenderer=function(w47){var t3t;if(!w47.renderers.length){return null;}var {baselineHelper:I5p, chart:l0o}=this;t3t=w47.renderers.find(K_W=>{w0o.r2m();return I5p.get(l0o.seriesRenderers[K_W]);});if(!t3t){return null;}return l0o.seriesRenderers[t3t];};i$R.ChartEngine.prototype.getYAxisBaseline=function(f8$){var Z2S,C2e;w0o.J8h();Z2S="o";Z2S+="b";Z2S+="jec";Z2S+="t";var {baseline:z03}=this.chart;C2e=this.getYAxisBaselineRenderer(f8$);if(!C2e){return z03;}var {baseline:L7V}=C2e.params;return typeof L7V === Z2S?L7V:z03;};};D=A11=>{x2dci.J8h();var K0D;K0D=A11.CIQ;K0D.ChartEngine.Chart=function(){this.xAxis=new K0D.ChartEngine.XAxis();this.yAxis=new K0D.ChartEngine.YAxis();this.symbolObject={symbol:null};this.series={};this.seriesRenderers={};this.xaxis=[];this.state={};x2dci.J8h();this.endPoints={};this.defaultChartStyleConfig={};this.baseline=K0D.clone(this.baseline);this.panel=undefined;};K0D.extend(K0D.ChartEngine.Chart.prototype,{symbol:null,symbolObject:{symbol:null},symbolDisplay:null,series:{},seriesRenderers:{},scroll:0,isComparison:!!"",forcePercentComparison:!0,maxTicks:0,tension:null,currentMarketData:{},masterData:null,dataSet:null,scrubbed:null,dataSegment:null,segmentImage:null,baseline:{includeInDataSegment:!!0,defaultLevel:null,userLevel:null,actualLevel:null},xAxis:null,xaxis:[],xaxisFactor:30,decimalPlaces:2,dynamicYAxis:!0,roundit:100,breakpoint:null,legendRenderer:K0D.drawLegend,customChart:null,yaxisPaddingRight:null,yaxisPaddingLeft:null,tickCache:{},allowScrollPast:!0,allowScrollFuture:!!({}),whiteSpaceFutureTicks:0,hideDrawings:!1,defaultPlotField:"Close",defaultChartStyleConfig:{},lockScroll:![],includeOverlaysInMinMax:!"",gaplines:null,lineStyle:null,lineApproximation:!![],highLowBars:![],standaloneBars:!!0,barsHaveWidth:!!"",calculateTradingDecimalPlaces:K0D.calculateTradingDecimalPlaces},!"");};N=X_m=>{var E4f=x2dci;var g8k,L0F;E4f.r2m();g8k="dat";g8k+="aSe";g8k+="t";L0F=X_m.CIQ;L0F.ChartEngine.prototype.resolveY=function(k5T){E4f.J8h();return this.top + k5T;};L0F.ChartEngine.prototype.resolveX=function(l28){E4f.J8h();return this.left + l28;};L0F.ChartEngine.prototype.backOutY=function(f7Y){E4f.J8h();return f7Y - this.top;};L0F.ChartEngine.prototype.backOutX=function(z9Y){E4f.J8h();return z9Y - this.left;};L0F.ChartEngine.prototype.dateFromTick=function(W9p,L$Y,A$r,s$L = "dataSet"){var O2M,l_A,g8b,c1P,a75,S9W;E4f.J8h();if(!L$Y){L$Y=this.chart;}O2M=L$Y[s$L];l_A=O2M.length;S9W=!!0;if(l_A === 0){E4f.C$o(20);O2M[E4f.c6Y("0",0)]={};O2M[0].DT=new Date();l_A=O2M.length;S9W=!"";}if(W9p < +"0"){c1P=this.standardMarketIterator(O2M[0].DT);if(c1P){g8b=c1P.previous(Math.abs(W9p));}else {g8b=O2M[0].DT;}}else if(W9p >= l_A){c1P=this.standardMarketIterator(O2M[l_A - 1].DT);if(c1P){E4f.C$o(130);g8b=c1P.next(E4f.c6Y(l_A,1,W9p));}else {g8b=O2M[l_A - 1].DT;}}else {g8b=O2M[W9p].DT;}if(A$r){a75=new Date(g8b.getTime());}else {a75=L0F.yyyymmddhhmmssmmm(g8b).substr(0,12);}if(S9W){delete O2M[0].DT;}return a75;};L0F.ChartEngine.prototype.tickFromDate=function(g$b,g$W,V91,J5n,P8I = g8k){var X2z,H_7,p0N,W9u,t7i,k82,D6q,a7_,P4V,X0f,W44,D9R,Q_0,H9v,f3i,o09,h4n,q$o;if(!g$W){g$W=this.chart;}X2z=g$W[P8I];if(!(X2z && X2z.length)){return 0;}if(!V91){V91=0;}H_7=g$b.constructor == Date?g$b:L0F.strToDateTime(g$b);if(!L0F.ChartEngine.isDailyInterval(this.layout.interval)){H_7.setMinutes(H_7.getMinutes() + V91);}p0N=H_7.getTime();if(!g$W.tickCache[P8I]){g$W.tickCache[P8I]={};}W9u=g$W.tickCache[P8I][p0N];if(W9u || W9u === 0){return J5n?Math.ceil(W9u):Math.floor(W9u);}t7i=X2z[0].DT;E4f.r2m();k82=X2z[X2z.length - 1].DT;if(H_7 >= t7i && H_7 <= k82){D6q=0;a7_=-901799135;P4V=1929404659;X0f=2;for(var S7f=1;E4f.O$R(S7f.toString(),S7f.toString().length,64240) !== a7_;S7f++){W44=X2z.length;D9R=0;X0f+=2;}if(E4f.q2D(X0f.toString(),X0f.toString().length,77865) !== P4V){W44=X2z.length;E4f.C$o(20);D9R=E4f.c6Y("9",0);}while(++D9R < 100){E4f.M8Y(43);Q_0=Math.floor(E4f.c6Y(2,W44,D6q));H9v=X2z[Q_0].DT;if(+H9v == +H_7){g$W.tickCache[P8I][p0N]=Q_0;return Q_0;}if(H9v < H_7){D6q=Q_0;}if(H9v > H_7){if(X2z[Q_0 - 1].DT < H_7){E4f.M8Y(130);g$W.tickCache[P8I][p0N]=E4f.d58("0.5",0,Q_0);return J5n?Q_0:Q_0 - +"1";}if(+X2z[Q_0 - 1].DT == +H_7){E4f.M8Y(0);g$W.tickCache[P8I][p0N]=E4f.d58(Q_0,1);E4f.C$o(0);return E4f.c6Y(Q_0,1);}W44=Q_0;}}if(D9R >= 100){console.log("!!!Warning: tickFromDate() did not find match.");return X2z.length;}}E4f.C$o(131);f3i=E4f.d58(H_7,t7i);o09=f3i?t7i:k82;h4n=this.standardMarketIterator(o09);q$o=h4n?h4n.futureTick({end:H_7}):0;W9u=f3i?q$o * -1:X2z.length - 1 + q$o;g$W.tickCache[P8I][p0N]=W9u;return W9u;};L0F.ChartEngine.prototype.pixelFromBar=function(K8D,V7k){E4f.J8h();var x1_,H6J,n0D,L$v,h_z;if(!V7k){V7k=this.chart;}x1_=0;H6J=this.chart.segmentImage;if(H6J && H6J[K8D] && H6J[K8D].leftOffset){n0D=1978753958;L$v=-1915816391;h_z=2;for(var b$w=1;E4f.O$R(b$w.toString(),b$w.toString().length,+"49669") !== n0D;b$w++){x1_=H6J[K8D].leftOffset;h_z+=2;}if(E4f.O$R(h_z.toString(),h_z.toString().length,9543) !== L$v){x1_=H6J[K8D].leftOffset;}}else {x1_=(K8D + 0.5) * this.layout.candleWidth;}E4f.C$o(8);var B5p=E4f.d58(14,0,14);x1_=V7k.panel.left + Math.floor(x1_ + this.micropixels) - B5p;return x1_;};L0F.ChartEngine.prototype.barFromPixel=function(C3m,r4k){var Z_A,k0J,I6v,D88,A1g,r6p,r1$,W_v,e0W,X61,p1_,L1Z,N17;if(!r4k){r4k=this.chart;}Z_A=this.chart.segmentImage;k0J=this.micropixels;I6v=this.layout.candleWidth;if(Z_A){D88=C3m - r4k.panel.left - k0J;A1g=2;r1$=Z_A.length;E4f.M8Y(40);W_v=Math.round(E4f.c6Y(A1g,r1$));E4f.C$o(0);var m25=E4f.d58(14,13);E4f.C$o(0);var b1j=E4f.c6Y(20,19);E4f.M8Y(25);var N3H=E4f.c6Y(34,38,6);p1_=Z_A[r1$ - m25].leftOffset + Z_A[r1$ - b1j].candleWidth / N3H;if(D88 > p1_){return r1$ + Math.floor((C3m - p1_ - r4k.panel.left - k0J) / I6v);}for(var k9D=1;k9D < r1$;k9D++){A1g*=2;r6p=Z_A[W_v];if(!r6p)break;e0W=r6p.leftOffset;E4f.C$o(65);var q$H=E4f.c6Y(3,7,19,16);X61=r6p.candleWidth / q$H;E4f.C$o(0);L1Z=E4f.d58(e0W,X61);E4f.M8Y(22);N17=E4f.c6Y(X61,e0W);if(W_v === 0 || D88 >= L1Z && D88 < N17)break;else if(D88 < L1Z){W_v-=Math.max(1,Math.round(r1$ / A1g));}else {W_v+=Math.max(+"1",Math.round(r1$ / A1g));}W_v=Math.max(0,Math.min(r1$ - +"1",W_v));}if(!Z_A[W_v]){for(k9D=0;k9D < r1$;k9D++){r6p=Z_A[k9D];if(!r6p)continue;e0W=r6p.leftOffset;X61=r6p.candleWidth / ("2" >> 0);if(D88 < e0W - X61){E4f.M8Y(98);return Math.max(0,E4f.c6Y(k9D,"1"));}else if(D88 < e0W + X61){return k9D;}else if(D88 >= e0W + X61){E4f.M8Y(22);return E4f.d58(1,k9D);}}}return W_v;}E4f.J8h();return Math.floor((C3m - r4k.panel.left - k0J) / I6v);};L0F.ChartEngine.prototype.tickFromPixel=function(k6S,d_g){var w_c;if(!d_g){d_g=this.chart;}w_c=d_g.dataSet.length - d_g.scroll;if(d_g.segmentImage){w_c+=this.barFromPixel(k6S,d_g);}else {w_c+=Math.floor((k6S - d_g.panel.left - this.micropixels) / this.layout.candleWidth);}return w_c;};L0F.ChartEngine.prototype.pixelFromTick=function(q0B,k3A){var k5J,U3Z,k8A,o$V,q4A,I6z,B_S,L4x,f53,S7K,u0o;if(!k3A){k3A=this.chart;}E4f.J8h();k5J=k3A.dataSegment;U3Z=k3A.dataSet;k8A=k3A.segmentImage;o$V=this.micropixels;q4A=k5J?k5J.length:0;I6z=k3A.panel;B_S=k3A.scroll;L4x=q0B - U3Z.length + B_S;f53=q4A?k5J[L4x]:null;if(k8A){f53=k8A[L4x];}if(f53 && f53.leftOffset){return I6z.left + Math.floor(f53.leftOffset + o$V);;}S7K=0;u0o=+"0";f53=q4A?k5J[q4A - 1]:null;if(k8A){E4f.C$o(0);f53=k8A[E4f.c6Y(q4A,1)];}if(f53 && f53.leftOffset){if(q4A < q0B - U3Z.length + B_S){E4f.C$o(84);var K1J=E4f.d58(85,9,12,11);S7K=f53.leftOffset - f53.candleWidth / K1J;u0o=q4A;}}return S7K + I6z.left + Math.floor((q0B - u0o - U3Z.length + B_S + +"0.5") * this.layout.candleWidth + o$V);};L0F.ChartEngine.prototype.pixelFromDate=function(a_$,F03,Z$k,j7b){E4f.J8h();return this.pixelFromTick(this.tickFromDate(a_$,F03,Z$k,j7b),F03);};L0F.ChartEngine.prototype.transformedPriceFromPixel=function(w6m,R3e,Y6Y){var m0g,Y8B,S9G;if(!R3e){R3e=this.chart.panel;}m0g=Y6Y?Y6Y:R3e.yAxis;E4f.J8h();w6m=m0g.bottom - w6m;if(m0g.semiLog){S9G=w6m * m0g.logShadow / m0g.height;if(m0g.flipped){S9G=m0g.logHigh - S9G;}else {S9G+=m0g.logLow;}E4f.M8Y(0);Y8B=Math.pow(E4f.c6Y("10",0),S9G);}else {if(!m0g.multiplier){return null;}Y8B=w6m / m0g.multiplier;if(m0g.flipped){Y8B=m0g.high - Y8B;}else {Y8B+=m0g.low;}}return Y8B;};L0F.ChartEngine.prototype.priceFromPixel=function(U_k,J_b,w8d){var w0Z;if(!J_b){J_b=this.chart.panel;}w0Z=this.transformedPriceFromPixel(U_k,J_b,w8d);if(this.charts[J_b.name] && J_b.chart.untransformFunc){if(!w8d || w8d == J_b.yAxis){w0Z=J_b.chart.untransformFunc(this,J_b.chart,w0Z,w8d);}}return w0Z;};L0F.ChartEngine.prototype.valueFromPixel=function(J9a,K8_,m1F){var Z7h,a2y,m47,m_j;if(!K8_){K8_=this.whichPanel(J9a);}if(!K8_){Z7h=Object.values(this.panels);if(Z7h && Z7h.length){if(J9a <= 0){K8_=Z7h.shift();}else {K8_=Z7h.pop();}}}a2y=-471146332;m47=1600047605;m_j=2;for(var w$G=1;E4f.O$R(w$G.toString(),w$G.toString().length,59467) !== a2y;w$G++){return this.priceFromPixel(J9a,K8_,m1F);}E4f.J8h();if(E4f.q2D(m_j.toString(),m_j.toString().length,20003) !== m47){return this.priceFromPixel(J9a,K8_,m1F);}};L0F.ChartEngine.prototype.valueFromInterpolation=function(H9L,Z9E,l2J,Z_e,p$n){var T3s,w9A,n$w,R2u,i_U,w1E,L7R,h_S,N9K,B2G,u8J,h2M,P2h;if(H9L === null || H9L < 0 || !Z9E){return null;}if(!Z_e){Z_e=this.chart.panel;}if(!p$n){p$n=Z_e.yAxis;}if(!l2J){l2J=this.chart.defaultPlotField;}T3s=this.getPreviousBar(this.chart,Z9E,H9L);if(!T3s){return null;}n$w=L0F.existsInObjectChain(T3s,Z9E);if(n$w){w9A=n$w.obj[n$w.member];}if(typeof w9A == "object"){w9A=w9A[l2J];}R2u=this.getRendererFromSeries(Z9E);if(R2u && R2u.params.step || this.layout.chartType === "step"){return w9A;}i_U=this.getNextBar(this.chart,Z9E,H9L);n$w=L0F.existsInObjectChain(i_U,Z9E);if(n$w){w1E=n$w.obj[n$w.member];}if(typeof w1E == "object"){w1E=w1E[l2J];}if(!i_U){return null;}if(w9A === null || typeof w9A == "undefined" || w1E === null || typeof w1E == "undefined"){return null;}L7R=this.pixelFromPrice(w9A,Z_e,p$n);h_S=this.pixelFromPrice(w1E,Z_e,p$n);N9K=T3s.tick;B2G=i_U.tick;E4f.M8Y(132);u8J=E4f.d58(B2G,L7R,h_S,N9K);h2M=this.chart.dataSegment[H9L].tick;E4f.M8Y(133);P2h=E4f.c6Y(N9K,L7R,u8J,h2M);return this.priceFromPixel(P2h,Z_e,p$n);};L0F.ChartEngine.prototype.pixelFromTransformedValue=function(i2m,S3q,j$b){var d$2,z36,W6e,h7E,W4Y;if(!S3q){S3q=this.chart.panel;}d$2=j$b?j$b:S3q.yAxis;z36=(d$2.high - i2m) * d$2.multiplier;if(d$2.semiLog){W6e=Math.max(i2m,0);h7E=Math.log(W6e) / Math.LN10;W4Y=d$2.height;z36=W4Y - W4Y * (h7E - d$2.logLow) / d$2.logShadow;}z36=d$2.flipped?d$2.bottom - z36:d$2.top + z36;return z36;};L0F.ChartEngine.prototype.pixelFromPrice=function(X7q,x84,C10){if(!x84){x84=this.chart.panel;}if(this.charts[x84.name] && x84.chart.transformFunc){if(!C10 || C10 == x84.yAxis){X7q=x84.chart.transformFunc(this,x84.chart,X7q,C10);;}}E4f.r2m();return this.pixelFromTransformedValue(X7q,x84,C10);};L0F.ChartEngine.prototype.pixelFromValueAdjusted=function(P7n,B05,v5k,Q9H){var x7L,c3$;if(this.layout.adj || !this.charts[P7n.name]){return this.pixelFromPrice(v5k,P7n,Q9H);}x7L=Math.round(B05);if(x7L > +"0" && x7L < P7n.chart.dataSet.length && (c3$=P7n.chart.dataSet[x7L].ratio)){E4f.C$o(38);return this.pixelFromPrice(E4f.d58(v5k,c3$),P7n,Q9H);}return this.pixelFromPrice(v5k,P7n,Q9H);};L0F.ChartEngine.prototype.adjustIfNecessary=function(B9R,Z3y,H5B){var v95,j_T;E4f.J8h();if(this.layout.adj){return H5B;}if(!B9R || !this.charts[B9R.name]){return H5B;}v95=Math.round(Z3y);if(v95 > 0 && v95 < B9R.chart.dataSet.length && (j_T=B9R.chart.dataSet[v95].ratio)){E4f.M8Y(40);return E4f.d58(j_T,H5B);}return H5B;};};L0=m3V=>{var N_q;N_q=m3V.CIQ;N_q.ChartEngine.prototype.positionCrosshairsAtPointer=function(){var t_0=x2dci;var Y4p,a3X,q7J,g1m,W23,w04,L8u,i2d,P$Z,T$Y;Y4p=this.currentPanel;if(!Y4p){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}if(this.runPrepend("positionCrosshairsAtPointer",arguments)){return;}a3X=Y4p.chart;q7J=this.container.getBoundingClientRect();this.top=q7J.top;this.left=q7J.left;this.right=this.left + this.width;this.bottom=this.top + this.height;this.cy=this.crossYActualPos=this.backOutY(N_q.ChartEngine.crosshairY);this.cx=this.backOutX(N_q.ChartEngine.crosshairX);g1m=this.crosshairTick=this.tickFromPixel(this.cx,a3X);t_0.M8Y(7);var a5f=t_0.d58(7,0,8);W23=this.pixelFromTick(g1m,a3X) - a5f;if(this.controls.crossX){t_0.C$o(22);this.controls.crossX.style.left=t_0.c6Y("px",W23);}if(W23 >= Y4p.right || W23 <= Y4p.left){this.undisplayCrosshairs();return;}w04=Y4p.name == "chart"?this.preferences.horizontalCrosshairField:Y4p.horizontalCrosshairField;L8u=a3X.dataSet;if(w04 && L8u && g1m < L8u.length && g1m > -("1" | 1)){i2d=-+"813921815";t_0.C$o(19);P$Z=t_0.c6Y(64,"1143178653");T$Y=2;for(var X5k=1;t_0.O$R(X5k.toString(),X5k.toString().length,52034) !== i2d;X5k++){this.crossYActualPos=this.pixelFromPrice(L8u[g1m][w04],Y4p);T$Y+=2;}if(t_0.q2D(T$Y.toString(),T$Y.toString().length,85793) !== P$Z){this.crossYActualPos=this.pixelFromPrice(L8u[g1m][w04],Y4p);}}if(this.controls.crossY){this.controls.crossY.style.top=this.crossYActualPos + "px";}this.runAppend("positionCrosshairsAtPointer",arguments);};N_q.ChartEngine.prototype.doDisplayCrosshairs=function(){var q6n,o8u,b_9,X7s,o3X,L8E,v8t,k$o,Z65,G3o;x2dci.r2m();q6n="doD";q6n+="is";q6n+="play";q6n+="Crosshairs";if(this.runPrepend(q6n,arguments)){return;}if(this.displayInitialized){o8u=this.floatCanvas;b_9=this.currentVectorParameters.vectorType;if(!this.layout.crosshair && (b_9 === "" || !b_9)){this.undisplayCrosshairs();}else if(N_q.Drawing && N_q.Drawing[b_9] && new N_q.Drawing[b_9]().dragToDraw){this.undisplayCrosshairs();}else if(this.overXAxis || this.overYAxis || !this.insideChart && !this.grabbingScreen){this.undisplayCrosshairs();}else if(this.openDialog !== ""){this.undisplayCrosshairs();}else {X7s=this.controls;o3X=X7s.crossX;L8E=X7s.crossY;if(o3X && o3X.style.display !== ""){o3X.style.display="";if(L8E){L8E.style.display="";}if(this.magnetizedPrice && b_9){v8t="stx-cro";v8t+="ssha";v8t+="ir-o";v8t+="n";this.container.classList.remove(v8t);this.chart.tempCanvas.style.display="block";}else {k$o="stx-cross";k$o+="h";k$o+="air-o";k$o+="n";this.container.classList.add(k$o);}}if(X7s.floatDate && !this.chart.xAxis.noDraw){X7s.floatDate.style.visibility="";if(this.currentPanel){this.updateFloatHRLabel(this.currentPanel);}}if(o8u){Z65="b";Z65+="l";Z65+="oc";Z65+="k";G3o="n";G3o+="o";G3o+="n";G3o+="e";if(o8u.style.display == G3o){N_q.clearCanvas(o8u,this);}o8u.style.display=Z65;}}}this.runAppend("doDisplayCrosshairs",arguments);};N_q.ChartEngine.prototype.undisplayCrosshairs=function(){var B7h,r1U,S1S,y5v,j2$,v_b,B6_,W3l,i7Y;B7h="no";B7h+="ne";r1U="und";r1U+="isplayCros";r1U+="shairs";if(this.runPrepend(r1U,arguments)){return;}S1S=this.controls;x2dci.J8h();y5v=S1S.crossX;j2$=S1S.crossY;if(y5v){v_b="n";v_b+="o";v_b+="ne";if(y5v.style.display != v_b){y5v.style.display="none";if(j2$){j2$.style.display="none";}}}if(this.displayInitialized && S1S.floatDate){S1S.floatDate.style.visibility="hidden";}this.container.classList.remove("stx-crosshair-on");B6_=this.floatCanvas;if(B6_ && B6_.isDirty && B6_.style.display != B7h){N_q.clearCanvas(B6_,this);if(B6_.style.display != "none"){B6_.style.display="none";}}if(!this.activeDrawing && !this.repositioningDrawing && !this.editingAnnotation){W3l="n";W3l+="o";W3l+="ne";i7Y=this.chart.tempCanvas;if(i7Y && i7Y.style.display != "none"){i7Y.style.display=W3l;}}this.runAppend("undisplayCrosshairs",arguments);};x2dci.J8h();N_q.ChartEngine.prototype.hideCrosshairs=function(){x2dci.r2m();this.displayCrosshairs=!({});};N_q.ChartEngine.prototype.showCrosshairs=function(){this.displayCrosshairs=!!({});};};W_=f1Q=>{var I1v=x2dci;var L4w,J_X;L4w=f1Q.CIQ;J_X=f1Q.timezoneJS;L4w.ChartEngine.prototype.loadChart=function(u6m,z$y,T_x){var j_H,U1L,b$f,F_U,O$E,R3a,E7O,X8Y,W7f,H4w,e8W,O3a,x7i,H40,b$P;j_H="obj";j_H+="e";j_H+="ct";U1L="fu";U1L+="n";U1L+="c";U1L+="tion";if(!T_x && typeof z$y == U1L){T_x=z$y;b$f=-+"1098722003";I1v.C$o(0);F_U=-I1v.c6Y("790866666",0);I1v.C$o(20);O$E=I1v.c6Y("2",0);for(var e1H=1;I1v.O$R(e1H.toString(),e1H.toString().length,"40956" | 0) !== b$f;e1H++){z$y={};O$E+=2;}if(I1v.O$R(O$E.toString(),O$E.toString().length,8711) !== F_U){z$y={};}}else if(Array.isArray(z$y)){z$y={masterData:z$y};}if(!z$y){z$y={};}var {chart:z_y, periodicity:g15, range:b_J, span:y6y}=z$y;var {layout:J2y}=this;R3a={periodicity:J2y.periodicity,interval:J2y.interval,timeUnit:J2y.timeUnit};if(g15){E7O=L4w.cleanPeriodicity(g15.period?g15.period:g15.periodicity,g15.interval,g15.timeUnit);J2y.interval=E7O.interval;J2y.periodicity=E7O.period;J2y.timeUnit=E7O.timeUnit;}if(!z_y){z_y=this.chart;}var {dataSet:X3o, market:U2y, masterData:K_N, symbol:X5j, moreAvailable:u7A, upToDate:C$3}=z_y;X8Y=L4w.clone(z_y.symbolObject);z_y.dataSet=[];z_y.masterData=[];z_y.moreAvailable=null;z_y.upToDate=null;if(!u6m){z_y.symbol=null;z_y.symbolObject={symbol:null};}else if(typeof u6m == j_H){z_y.symbol=u6m.symbol;z_y.symbolObject=u6m;}else {z_y.symbol=u6m;z_y.symbolObject.symbol=u6m;}z_y.inflectionPoint=null;if(this.marketFactory){W7f=this.marketFactory(z_y.symbolObject);this.setMarket(W7f,z_y);}function Y7o(){var A7I,r7J;A7I="m";A7I+="aster";I1v.r2m();r7J="symbolImpor";r7J+="t";x7i.dispatch(x7i.currentlyImporting?r7J:"symbolChange",{stx:x7i,symbol:z_y.symbol,symbolObject:z_y.symbolObject,prevSymbol:X5j,prevSymbolObject:X8Y,action:A7I});if(g15){x7i.dispatch("periodicity",{stx:x7i,differentData:!!"1",prevPeriodicity:R3a});}}this.setMainSeriesRenderer(!![]);if(!b_J && !y6y && J2y){y6y=!J2y.range?J2y.setSpan:{};b_J=J2y.range || ({});}else if(b_J && y6y){H4w=-558315103;e8W=-393127144;O3a=+"2";for(var q2$=1;I1v.O$R(q2$.toString(),q2$.toString().length,40498) !== H4w;q2$++){y6y={};O3a+=+"2";}if(I1v.O$R(O3a.toString(),O3a.toString().length,92004) !== e8W){y6y={};}}this.clearCurrentMarketData(z_y);x7i=this;if(!z$y.masterData && this.quoteDriver){H40=function(i7M){if(i7M && i7M != "orphaned"){z_y.symbol=X5j;z_y.symbolObject=X8Y;z_y.market=U2y;x7i.masterData=z_y.masterData=K_N;z_y.dataSet=X3o;z_y.moreAvailable=u7A;z_y.upToDate=C$3;}I1v.J8h();Y7o();if(T_x){T_x.call(x7i,i7M);}};if(b_J && Object.keys(b_J).length && this.setRange){delete z$y.span;delete J2y.setSpan;this.chart.masterData=null;this.displayInitialized=!"1";if(g15){b_J.periodicity=g15;}b_J.forceLoad=!!({});this.setRange(b_J,H40);}else if(y6y && y6y.base && this.setSpan){y6y.multiplier=y6y.multiplier || 1;this.chart.masterData=null;this.displayInitialized=!!"";if(g15){y6y.maintainPeriodicity=!![];}y6y.forceLoad=!![];this.setSpan(y6y,H40);}else {this.quoteDriver.newChart({symbol:z_y.symbol,symbolObject:z_y.symbolObject,chart:z_y,initializeChart:!""},function(K2M){I1v.r2m();if(!K2M){x7i.adjustPanelPositions();x7i.quoteDriver.updateSubscriptions();if(z$y.stretchToFillScreen){x7i.fillScreen();}}H40.apply(x7i,arguments);});}}else {if(!z$y.masterData){console.log("Warning: No masterData specified and no QuoteFeed configured");}if(!z_y.symbol){z_y.symbol="";}this.initializeChart();b$P=this.doCleanupGaps(z$y.masterData,z_y);this.setMasterData(b$P,z_y,{noCleanupDates:!!({})});z_y.endPoints={};if(b$P && b$P.length){z_y.endPoints={begin:b$P[0].DT,end:b$P[b$P.length - 1].DT};}this.createDataSet();if(b_J && Object.keys(b_J).length && this.setRange){this.setRange(b_J);}else if(y6y && y6y.multiplier && y6y.base && this.setSpan){this.setSpan({maintainPeriodicity:!0,multiplier:y6y.multiplier,base:y6y.base});}else if(z$y.stretchToFillScreen){this.fillScreen();}else if(b$P && b$P.length){this.home();}else {this.clear();}this.adjustPanelPositions();Y7o();if(T_x){T_x.call(x7i);}}};L4w.ChartEngine.prototype.loadBlankChart=function(){I1v.r2m();this.loadChart(null,[]);};L4w.ChartEngine.prototype.getDataFields=function(O6A){var L0N,t8v,R3t;if(!O6A){O6A=this.chart;}I1v.J8h();L0N=O6A.defaultPlotField || "Close";t8v=["Open","High","Low"];t8v.push(L0N);for(var p$M in O6A.series){R3t=O6A.series[p$M].parameters;t8v.push(R3t.symbol);}return t8v;};L4w.ChartEngine.prototype.cleanMasterData=function(a84,k1Y){var y8h,z3j,u4k,w6j,F48;y8h=a84.symbol;z3j=k1Y.masterData;if(!z3j || !z3j.length){return;}u4k=this.getDataFields(k1Y);w6j=+"0";do {F48=z3j[w6j];delete F48[y8h];if(h3x.call(this,F48,u4k)){I1v.M8Y(46);z3j.splice(w6j,I1v.d58("1",0));continue;}w6j++;}while(w6j < z3j.length);z3j=this.doCleanupGaps(z3j,k1Y,{noCleanupDates:!![]});function h3x(Z7e,v_i){var e_g;for(var L5_=+"0";L5_ < v_i.length;L5_++){e_g=Z7e[v_i[L5_]];if(typeof e_g != "undefined"){return ![];}}return !![];}this.setMasterData(z3j,k1Y,{noCleanupDates:!0});this.clearCurrentMarketData(k1Y,y8h);};L4w.ChartEngine.prototype.calculateATR=function(J6z,t_D,U$u){var T7a,M8r,v9V,l7E,o1j,P1K;if(!U$u){U$u=J6z.dataSet;}T7a=J6z.state.calculations.atr;if(!T7a){T7a=J6z.state.calculations.atr={};}if(!t_D){t_D=20;}M8r=[];if(T7a.accum){M8r=T7a.accum;}for(var r0t="0" << 32;r0t < U$u.length;r0t++){l7E=U$u[r0t];v9V=r0t?U$u[r0t - 1]:T7a.q1;if(!v9V)continue;o1j=Math.max(l7E.High - l7E.Low,Math.abs(l7E.High - v9V.Close),Math.abs(l7E.Low - v9V.Close));if(M8r.length < t_D){if(M8r.push(o1j) == t_D){P1K=0;for(var B_U=0;B_U < M8r.length;B_U++){P1K+=M8r[B_U];}I1v.M8Y(40);l7E.atr=I1v.d58(t_D,P1K);}}else {I1v.C$o(134);var C4n=I1v.c6Y(122,11,11);l7E.atr=(v9V.atr * (t_D - C4n) + o1j) / t_D;}l7E.trueRange=o1j;}J6z.state.calculations.atr={accum:M8r,q1:v9V};};L4w.ChartEngine.prototype.calculateMedianPrice=function(c2H,e6$){var G1C,v8U;if(!e6$){e6$=c2H.dataSet;}for(var v5d=0;v5d < e6$.length;++v5d){v8U="h";v8U+="l";v8U+="/";v8U+="2";G1C=e6$[v5d];I1v.C$o(6);var D55=I1v.c6Y(0,15,9,18,7);G1C[v8U]=(G1C.High + G1C.Low) / ("2" * D55);}};I1v.J8h();L4w.ChartEngine.prototype.calculateTypicalPrice=function(v$U,S_s){var E9O;I1v.r2m();if(!S_s){S_s=v$U.dataSet;}for(var a3F=0;a3F < S_s.length;++a3F){E9O=S_s[a3F];I1v.M8Y(135);var N_V=I1v.c6Y(7,46,8,15,13);E9O["hlc/3"]=(E9O.High + E9O.Low + E9O.Close) / N_V;}};L4w.ChartEngine.prototype.calculateWeightedClose=function(z4C,t2X){var B8d,m0E;if(!t2X){t2X=z4C.dataSet;}for(var z6M=0;z6M < t2X.length;++z6M){m0E="h";m0E+="l";m0E+="c";m0E+="c/4";B8d=t2X[z6M];I1v.C$o(136);var e3t=I1v.c6Y(2,6,16,6);I1v.M8Y(22);var q2b=I1v.d58(2,2);B8d[m0E]=(B8d.High + B8d.Low + e3t * B8d.Close) / q2b;}};L4w.ChartEngine.prototype.calculateOHLC4=function(j7C,u9Z){var D4l;I1v.J8h();if(!u9Z){u9Z=j7C.dataSet;}for(var l6S=+"0";l6S < u9Z.length;++l6S){D4l=u9Z[l6S];I1v.M8Y(2);var s6o=I1v.d58(6,2);D4l["ohlc/4"]=(D4l.Open + D4l.High + D4l.Low + D4l.Close) / s6o;}};L4w.ChartEngine.prototype.currentQuote=function(y7W){var i$k;if(!this.chart.dataSet){return null;}for(var v_k=this.chart.dataSet.length - 1;v_k >= 0;v_k--){if(this.chart.dataSet[v_k]){if(!y7W){return this.chart.dataSet[v_k];}i$k=this.chart.dataSet[v_k][y7W];if(i$k || i$k === 0){return this.chart.dataSet[v_k];}}}return null;};L4w.ChartEngine.prototype.mostRecentClose=function(p4f){var Q47,H_q,L$k,y7N;I1v.r2m();if(!this.chart.dataSet){return null;}for(var J3v=this.chart.dataSet.length - ("1" ^ 0);J3v >= 0;J3v--){Q47="num";Q47+="b";Q47+="er";H_q="o";H_q+="bject";L$k=this.chart.dataSet[J3v];if(!L$k)continue;if(p4f){L$k=L$k[p4f];if(!L$k && L$k !== 0)continue;}y7N=L$k.iqPrevClose;if(typeof L$k == H_q){L$k=L$k.Close;}if(typeof L$k == "number"){return L$k;}if(typeof y7N == Q47){return y7N;}}return null;};L4w.ChartEngine.prototype.createDataSegment=function(z_a){var H3d,s0Y,V9x,S_7,Z2r,t6t,d6K,J6e,R72,T1$,z2Y,A1C,p$O,V$3,d$d,M0P,y6G,y72;if(this.runPrepend("createDataSegment",arguments)){return;}for(var g0l in this.charts){H3d=this.charts[g0l];if(z_a){H3d=z_a;}if(L4w.Comparison && H3d.isComparison){L4w.Comparison.createComparisonSegmentInner(this,H3d);}s0Y=H3d.dataSet;V9x=H3d.baseline;S_7=H3d.scroll;Z2r=H3d.maxTicks;t6t=this.layout;d6K=t6t.candleWidth;V9x.actualLevel=V9x.userLevel?V9x.userLevel:V9x.defaultLevel;J6e=V9x.includeInDataSegment && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars);T1$=0;z2Y=H3d.dataSegment=[];I1v.C$o(137);var o1i=I1v.d58(11,100,16,7);I1v.M8Y(134);var Z9f=I1v.d58(46,5,9);A1C=s0Y.length - o1i - S_7 - Z9f;p$O=H3d.defaultPlotField;for(var Q4f=-1;Q4f < S_7 && Q4f < Z2r;Q4f++){A1C++;if(Q4f == -1 && !J6e)continue;if(A1C < s0Y.length && A1C >= 0){R72=s0Y[A1C];R72.candleWidth=null;if(R72){T1$+=R72.Volume || 1;}z2Y.push(R72);if(V9x.actualLevel === null && Q4f >= 0){if(p$O && p$O != "Close"){I1v.M8Y(0);V$3=s0Y[I1v.d58(A1C,1)];if(V$3 && (V$3[p$O] || V$3[p$O] === 0)){V9x.actualLevel=V$3[p$O];}}else {if(R72.iqPrevClose || R72.iqPrevClose === 0){V9x.actualLevel=R72.iqPrevClose;}}}}else if(A1C < 0){z2Y.push(null);}}H3d.segmentImage=null;d$d=this.mainSeriesRenderer || ({});if(d$d.params && d$d.params.volume){I1v.M8Y(84);var Z7q=I1v.d58(109,13,7,9);M0P=H3d.width - (Z2r - z2Y.length - Z7q) * t6t.candleWidth;y6G=0;H3d.segmentImage=[];for(var v0K=0;v0K < z2Y.length;v0K++){R72=z2Y[v0K];H3d.segmentImage[v0K]={};y72=null;if(R72){if(R72.Volume){R72.candleWidth=M0P * R72.Volume / T1$;I1v.C$o(138);var P8c=I1v.c6Y(8,4,3,15,19);y72=y6G + R72.candleWidth / P8c;y6G+=R72.candleWidth;}else {R72.candleWidth=d6K;I1v.C$o(139);y72=I1v.d58(2,y6G,d6K);y6G+=d6K;}H3d.segmentImage[v0K]={tick:R72.tick,candleWidth:R72.candleWidth,leftOffset:y72};}else {y6G+=d6K;}}}if(z_a)break;}I1v.r2m();if(H3d && H3d.isComparison){this.clearPixelCache();}this.positionCrosshairsAtPointer();this.runAppend("createDataSegment",arguments);};L4w.ChartEngine.prototype.getDataSegment=function(L_K){var k$b,h8c,M5n;if(!L_K){L_K=this.chart;}k$b=L_K.dataSegment;if(!k$b || !k$b.length){return [];}h8c=0;M5n=k$b.length;if(this.pixelFromBar(h8c,L_K) < L_K.panel.left){h8c++;}I1v.J8h();if(this.pixelFromBar(M5n - 1,L_K) > L_K.panel.right){M5n--;}return k$b.slice(h8c,M5n);};L4w.ChartEngine.prototype.setMasterData=function(e4R,g6H,A9W){var A4F,G$Z,m63,x2T,S9C,a8e,c4q,q9S;if(!g6H){g6H=this.chart;}if(this.marketFactory){A4F=this.marketFactory(g6H.symbolObject);this.setMarket(A4F,g6H);}if(!A9W){A9W={};}if(!A9W.noCleanupDates){this.doCleanupDates(e4R,this.layout.interval);}g6H.masterData=e4R;if(g6H.name == "chart"){this.masterData=e4R;}m63=null;for(G$Z=0;e4R && G$Z < e4R.length;G$Z++){x2T="setMasterData : Mi";x2T+="ssin";x2T+="g DT and Date on masterData object";S9C="Val";S9C+="ue";a8e=e4R[G$Z];if(m63 === null){c4q="num";c4q+="ber";if(typeof a8e.Close === "number"){m63="Close";}else if(typeof a8e.Value === c4q){m63="Value";}}if(m63 === S9C && typeof a8e.Value === "number"){a8e.Close=a8e.Value;}if(a8e.DT){if(Object.prototype.toString.call(a8e.DT) != "[object Date]"){a8e.DT=new Date(a8e.DT);}if(!a8e.Date || a8e.Date.length != 17){a8e.Date=L4w.yyyymmddhhmmssmmm(a8e.DT);}}else if(a8e.Date){a8e.DT=L4w.strToDateTime(a8e.Date);}else {console.log(x2T);}if(a8e.Volume && typeof a8e.Volume !== "number"){a8e.Volume=parseInt(a8e.Volume,"10" * 1);}if(e4R.length - G$Z < 50){this.updateCurrentMarketData(a8e,g6H,null,{fromTrade:!![]});}}if(g6H.calculateTradingDecimalPlaces){g6H.decimalPlaces=g6H.calculateTradingDecimalPlaces({stx:this,chart:g6H,symbol:g6H.symbolObject.symbol,symbolObject:g6H.symbolObject});}this.setDisplayDates(e4R);g6H.roundit=Math.pow(10,g6H.decimalPlaces);for(G$Z in this.plugins){q9S=this.plugins[G$Z];if(q9S.display){if(q9S.setMasterData){q9S.setMasterData(this,g6H);}}}};L4w.ChartEngine.prototype.setMasterDataRender=function(Z1r,S4s,t28){var I$4,f3t,E8F;if(!t28){t28=this.chart;}if(!t28.symbol){t28.symbol="";}this.setMasterData(S4s,t28);if(S4s){I1v.C$o(46);I$4=I1v.c6Y("878835369",32);f3t=117229201;E8F=2;for(var m8b="1" >> 0;I1v.q2D(m8b.toString(),m8b.toString().length,77732) !== I$4;m8b++){t28.endPoints={};E8F+=2;}if(I1v.q2D(E8F.toString(),E8F.toString().length,"54060" * 1) !== f3t){t28.endPoints={};}if(S4s.length){t28.endPoints={begin:S4s[0].DT,end:S4s[S4s.length - 1].DT};t28.symbol=Z1r;}}this.createDataSet();this.initializeChart();this.draw();if(!S4s || !S4s.length){t28.symbol=null;this.clear();}this.adjustPanelPositions();};L4w.ChartEngine.prototype.getSymbols=function(P6X){var A8U,p1v,O15,I65,I96,u2V,R4k,r3q,U9s,h$M,B81,Y7_,M0b;if(!P6X){P6X={};}A8U=[];O15=this.layout;for(var S_d in this.charts){u2V=this.charts[S_d];if(u2V.symbolObject && u2V.symbolObject.symbol){A8U.push(K1a(u2V.symbol,u2V.symbolObject,O15));}for(var X_4 in u2V.series){R4k="stud";R4k+="y";r3q="exclude-studie";r3q+="s";U9s=u2V.series[X_4];h$M=U9s.parameters;if(h$M.data && !h$M.data.useDefaultQuoteFeed)continue;I96=h$M.symbolObject;I65=h$M.symbol;p1v=K1a(I65,I96,O15);p1v.id=X_4;if(P6X["include-parameters"]){p1v.parameters=L4w.clone(h$M);if(p1v.parameters.yAxis){delete p1v.parameters.yAxis.yAxisPlotter;}}if(P6X[r3q] && h$M.bucket == R4k)continue;if(P6X["exclude-generated"] && I96.generator)continue;A8U.push(p1v);}}function K1a(g5K,Q5Q,S7C){I1v.J8h();return {symbol:g5K,symbolObject:Q5Q,periodicity:S7C.periodicity,interval:S7C.interval,timeUnit:S7C.timeUnit,setSpan:S7C.setSpan};}if(P6X["breakout-equations"]){B81={};for(var d4S=+"0";d4S < A8U.length;d4S++){I65=A8U[d4S].symbol;if(this.isEquationChart(I65)){Y7_=L4w.formatEquation(I65);if(Y7_){M0b=Y7_.symbols;for(var N6c=+"0";N6c < M0b.length;N6c++){B81[M0b[N6c]]=K1a(M0b[N6c],A8U[d4S].symbolObject,A8U[d4S]);}}}else {B81[I65]=K1a(I65,A8U[d4S].symbolObject,A8U[d4S]);}}A8U=[];for(var L$6 in B81){A8U.push(B81[L$6]);}}return A8U;};L4w.ChartEngine.prototype.setDisplayDate=function(L6p){var f_8,b6d,C1w;if(L4w.ChartEngine.isDailyInterval(this.layout.interval)){return;}f_8=L6p.DT;I1v.C$o(30);var V9G=I1v.c6Y(9,11000,9991);b6d=f_8.getSeconds() * V9G + f_8.getMilliseconds();if(J_X.Date && this.displayZone){C1w=new J_X.Date(f_8.getTime(),this.displayZone);f_8=new Date(C1w.getFullYear(),C1w.getMonth(),C1w.getDate(),C1w.getHours(),C1w.getMinutes());f_8=new Date(f_8.getTime() + b6d);}L6p.displayDate=f_8;};L4w.ChartEngine.prototype.setDisplayDates=function(C_A){var f_E;if(!C_A){return;}I1v.J8h();if(L4w.ChartEngine.isDailyInterval(this.layout.interval)){return;}for(var A6m=0;A6m < C_A.length;A6m++){f_E=C_A[A6m];if(f_E.DT){this.setDisplayDate(f_E);}}};L4w.ChartEngine.prototype.setTimeZone=function(U1y,t8u){var f_a,G0M,t0c,I0_,z9T;if(!J_X.Date){this.timeZoneOffset=0;return;}f_a=new Date();G0M=f_a.getTimezoneOffset();t0c=G0M;I0_=G0M;if(U1y){this.dataZone=U1y;}if(this.dataZone){t0c=new J_X.Date(f_a,this.dataZone).getTimezoneOffset();}if(t8u){this.displayZone=t8u;}if(this.displayZone){I0_=new J_X.Date(f_a,this.displayZone).getTimezoneOffset();}I1v.M8Y(140);this.timeZoneOffset=I1v.d58(t0c,G0M,G0M,I0_);for(var c0b in this.charts){z9T=this.charts[c0b];this.setDisplayDates(z9T.masterData);}this.preferences.timeZone=t8u;this.changeOccurred("preferences");this.createDataSet();};L4w.ChartEngine.prototype.updateChartData=function(t1e,C3X,w8j){var S7u,a3f,g1a,v50,O4o,S9M,Z2J,e3l,a_f,J7L,u_U,z5W,U$N,d21,f3z,r33,T76,a4y,Y$4,a77,P_X,b4p,F3u,B_8,O8W,h$5,X3$,h$a,W6I,H0i,s9m;S7u="u";function P7H(){var n1m,D2z,Y4u,n3Z,w_y,l62,z7A,G5H,x56,o5e,A_4,b6x,U8i,A_7,y7F;n1m="mon";n1m+="t";n1m+="h";D2z="market.";D2z+="market_def.market_tz";if(!L4w.Market || !C3X.market){return;}Y4u={market_tz:L4w.getFromNS(C3X,D2z,null)};n3Z=S9M.interval;if(n3Z == n1m || n3Z == "week"){w_y="d";w_y+="a";w_y+="y";if(!e3l.dontRoll){n3Z=w_y;}Y4u=e3l.chart.market.market_def;}l62=new L4w.Market(Y4u);z7A={begin:O4o && O4o.length?O4o[O4o.length - 1].DT:t1e.DT,interval:n3Z,periodicity:+"1",timeUnit:S9M.timeUnit};G5H=l62.newIterator(z7A);x56=G5H.next();if(!O4o){b6x=+"816643897";I1v.C$o(38);U8i=I1v.c6Y("885887543",1);A_7=+"2";for(var O8y=1;I1v.O$R(O8y.toString(),O8y.toString().length,81010) !== b6x;O8y++){t1e.DT=new Date(+G5H.previous());A_7+=2;}if(I1v.O$R(A_7.toString(),A_7.toString().length,49962) !== U8i){t1e.DT=new Date(!G5H.previous());}}else if(t1e.DT < x56){o5e=0;y7F=G5H.previous();A_4=t1e.DT;w8j.appending=!"";while(A_4 < y7F && o5e < 1000){w8j.appending=!!0;y7F=G5H.previous();o5e++;}t1e.DT=y7F;w8j.updating=!w8j.appending;}else if(t1e.DT >= x56){o5e=0;A_4=t1e.DT;while(A_4 > x56 && o5e < 1000){t1e.DT=x56;x56=G5H.next();o5e++;}w8j.appending=!!1;}}S7u+="pdateChart";S7u+="Data";a3f="appendMa";a3f+="sterDa";a3f+="ta";if(!w8j){w8j={};}if(!C3X){C3X=this.chart;}function e_s(){var g7F,o1L,S7l;e3l.createDataSet(null,null,w8j);e3l.draw();e3l.updateChartAccessories();g7F=1638676724;o1L=1769567440;S7l=2;for(var M$M=1;I1v.q2D(M$M.toString(),M$M.toString().length,+"42364") !== g7F;M$M++){I1v.M8Y(46);e3l.streamParameters.count=I1v.d58("0",32);e3l.streamParameters.timeout=-1;I1v.M8Y(46);S7l+=I1v.d58("2",0);}if(I1v.O$R(S7l.toString(),S7l.toString().length,24527) !== o1L){e3l.streamParameters.count=8;e3l.streamParameters.timeout=!0;}}g1a=!!0;v50=![];O4o=C3X.masterData;S9M=this.layout;Z2J=this.dataZone;e3l=this;a_f=w8j.secondarySeries;z5W=L4w.isValidNumber;if(!w8j.noCleanupDates){this.doCleanupDates(t1e,S9M.interval);}if(w8j.useAsLastSale || t1e.constructor == Object && (t1e.Last || t1e.Last === 0)){A4E();}if(t1e && t1e.constructor == Object){t1e=[t1e];}if(!t1e || !t1e.length){return;}function j2R(h2p,r9s){I1v.J8h();var D5v,x6D,v0N,C4d,r44,s8f;if(a_f){x6D=-172829766;v0N=-2133807539;C4d=2;for(var U9M=1;I1v.O$R(U9M.toString(),U9M.toString().length,+"51999") !== x6D;U9M++){delete O4o[h2p][a_f];I1v.C$o(38);C4d+=I1v.d58("2",1);}if(I1v.O$R(C4d.toString(),C4d.toString().length,"58750" ^ 0) !== v0N){-O4o[h2p][a_f];}if(e3l.cleanupGaps){r44="g";r44+="ap";D5v={DT:r9s,Close:null};if(e3l.cleanupGaps != r44 && O4o[h2p - 1] && O4o[h2p - 1][a_f]){D5v.Close=O4o[h2p - 1][a_f].Close;D5v.High=D5v.Low=D5v.Open=D5v.Close;D5v.Volume=0;}O4o[h2p][a_f]=D5v;}}else {s8f=O4o.splice(h2p,I1v.c6Y("1",0,I1v.C$o(0)))[0];D5v={DT:s8f.DT,Close:null,needed:!!""};for(J7L in C3X.series){u_U=C3X.series[J7L].parameters.symbolObject.symbol;if(typeof s8f[u_U] != "undefined"){D5v[u_U]=s8f[u_U];delete D5v.needed;}}if(e3l.cleanupGaps && e3l.cleanupGaps != "gap"){delete D5v.needed;if(e3l.cleanupGaps != "gap" && O4o[h2p - 1]){D5v.Close=O4o[h2p - 1].Close;D5v.High=D5v.Low=D5v.Open=D5v.Close;D5v.Volume=0;}}if(D5v.needed !== !!""){O4o.splice(h2p,0,D5v);e3l.setDisplayDate(D5v);}}}if(this.runPrepend(a3f,[t1e,C3X,w8j])){return;}if(this.runPrepend("updateChartData",[t1e,C3X,w8j])){return;}function A4E(){var r0c,G_e;r0c="[obje";r0c+="ct";r0c+=" ";r0c+="Date]";g1a=!!1;if(w8j.useAsLastSale && w8j.useAsLastSale.aggregatedVolume){v50=!"";}if(t1e.constructor === Array){I1v.C$o(134);var z1P=I1v.c6Y(92,7,13);G_e=t1e[t1e.length - z1P];t1e={};t1e.DT=G_e.DT;t1e.Close=G_e.Close;t1e.Volume=G_e.Volume;}else if(t1e.Last){t1e.Close=t1e.Last;delete t1e.Last;}if(t1e.DT && Object.prototype.toString.call(t1e.DT) != r0c){t1e.DT=new Date(t1e.DT);}if(!t1e.DT || t1e.DT == "Invalid Date"){t1e.DT=new Date();}if(S9M.interval != "tick"){P7H();}t1e.Open=t1e.Close;t1e.High=t1e.Close;t1e.Low=t1e.Close;}if(!O4o){O4o=[];}I1v.C$o(4);var a5J=I1v.c6Y(1,89,7,1,11);U$N=O4o.length - a5J;d21=!"1";if(w8j.fillGaps){n3U();}if(!t1e.length){return;}for(var c4Q=+"0";c4Q < t1e.length;c4Q++){f3z=t1e[c4Q];r33=f3z.DT;T76=f3z.Date;if(r33 && Object.prototype.toString.call(r33) != "[object Date]"){f3z.DT=r33=new Date(r33);}if(r33){if(!T76 || T76.length != 17){f3z.Date=L4w.yyyymmddhhmmssmmm(f3z.DT);}}if(!r33){r33=f3z.DT=L4w.strToDateTime(T76);}if(!z5W(f3z.Close) && z5W(f3z.Value)){f3z.Close=f3z.Value;}while(U$N >= +"0" && U$N < O4o.length){a4y=O4o[U$N].DT;if(!a4y){a4y=L4w.strToDateTime(O4o[U$N].Date);}if(a4y.getTime() <= r33.getTime()){d21=!![];Y$4=0;if(a4y.getTime() < r33.getTime()){if(U$N < O4o.length - 1){a77=O4o[U$N + +"1"].DT || L4w.strToDateTime(O4o[U$N + +"1"].Date);if(a77.getTime() <= r33.getTime()){U$N++;continue;}}I1v.M8Y(74);Y$4=I1v.c6Y("1",0);;}if(w8j.deleteItems){if(!Y$4){j2R(U$N,r33);}break;}else {P_X="ti";P_X+="c";P_X+="k";if(S9M.interval == P_X && w8j.firstLoop !== !!0){Y$4=1;}if(!Y$4){Q27(U$N,f3z);}if(z5W(f3z.Close)){if(!z5W(f3z.Open)){f3z.Open=f3z.Close;}b4p=Math.max(f3z.Open,f3z.Close);F3u=Math.min(f3z.Open,f3z.Close);if(!z5W(f3z.High) || f3z.High < b4p){f3z.High=b4p;}if(!z5W(f3z.Low) || f3z.Low > F3u){f3z.Low=F3u;}}if(f3z.Volume && !z5W(f3z.Volume)){f3z.Volume=parseInt(f3z.Volume,10);}U$N+=Y$4;if(a_f){if(t1e.length - c4Q < +"50"){this.updateCurrentMarketData(f3z,C3X,a_f,{fromTrade:!!1});}if(S9M.interval != "tick" || f3z.Close !== undefined){if(Y$4){I1v.M8Y(38);O4o.splice(U$N,I1v.d58("0",1),{DT:f3z.DT});this.setDisplayDate(O4o[U$N]);}O4o[U$N][a_f]=f3z;}}else {if(t1e.length - c4Q < "50" << 32){this.updateCurrentMarketData(f3z,C3X,null,{fromTrade:!!({})});}if(S9M.interval != "tick" || f3z.Close !== undefined){O4o.splice(U$N,Y$4?0:"1" | 1,f3z);this.setDisplayDate(f3z);}}}break;}U$N+=d21?1:-1;}if(U$N < 0){if(a_f){B_8="t";B_8+="ic";B_8+="k";this.updateCurrentMarketData(f3z,C3X,a_f,{fromTrade:!!({})});if(S9M.interval != B_8 || f3z.Close !== undefined){O4o.splice(0,0,{DT:f3z.DT});this.setDisplayDate(O4o[0]);O4o[0][a_f]=f3z;}}else {O8W="t";O8W+="i";O8W+="c";O8W+="k";this.updateCurrentMarketData(f3z,C3X,null,{fromTrade:!!({})});if(S9M.interval != O8W || f3z.Close !== undefined){I1v.C$o(19);O4o.splice(I1v.d58(0,"0"),0,f3z);this.setDisplayDate(f3z);}}d21=!![];U$N=0;}}function Q27(u47,Y$E){var Z4q,H37,d8T,s92;Z4q=O4o[u47];if(a_f){Z4q=Z4q[a_f] || ({});}if(Y$E.Close === null){if(Z4q.Open !== undefined){Y$E.Open=null;}if(Z4q.High !== undefined){Y$E.High=null;}if(Z4q.Low !== undefined){Y$E.Low=null;}if(Z4q.Volume !== undefined){Y$E.Volume=null;};}else {H37="L";H37+="o";H37+="w";d8T="O";d8T+="p";d8T+="en";if(g1a){if(Y$E.Volume){Y$E.Volume=parseInt(Y$E.Volume,10);}if(!v50){Y$E.Volume+=Z4q.Volume;}}else {if(!z5W(Y$E.Volume) && Z4q.Volume){Y$E.Volume=Z4q.Volume;}}if(!w8j.allowReplaceOHL){if(z5W(Z4q.Open)){Y$E.Open=Z4q.Open;}if(z5W(Z4q.High) && z5W(Y$E.High)){if(Z4q.High > Y$E.High){Y$E.High=Z4q.High;}}if(z5W(Z4q.Low) && z5W(Y$E.Low)){if(Z4q.Low < Y$E.Low){Y$E.Low=Z4q.Low;}}}["Close",d8T,"High",H37,"Bid","Ask"].forEach(function(X4_){I1v.J8h();if(!z5W(Y$E[X4_])){Y$E[X4_]=Z4q[X4_];}});for(J7L in C3X.series){s92="u";s92+="ndef";s92+="i";s92+="ned";u_U=C3X.series[J7L].parameters.symbolObject.symbol;if(typeof Y$E[u_U] == s92 && typeof Z4q[u_U] != "undefined"){Y$E[u_U]=Z4q[u_U];}}}}if(O4o.length){this.masterData=C3X.masterData=O4o;}if(this.maxMasterDataSize){O4o=C3X.masterData=this.masterData=O4o.slice(-this.maxMasterDataSize);}h$5=a_f?this.getSeries({symbol:a_f,chart:C3X}):[C3X];function n3U(){var t1X,T_y,e$F;t1X=null;T_y=+"0";if(O4o.length){t1X=e3l.getFirstLastDataRecord(O4o,a_f || C3X.defaultPlotField,!!"1");if(t1X){if(t1e[t1e.length - ("1" | 1)].DT <= t1X.DT){return;}for(;T_y < t1e.length;T_y++){if(+t1e[T_y].DT == +t1X.DT){if(e3l.getFirstLastDataRecord([t1e[T_y]],a_f || C3X.defaultPlotField)){t1X=null;}break;}else if(t1e[T_y].DT > t1X.DT)break;}}}e$F=t1e.slice(T_y);if(t1X){e$F.unshift(a_f?t1X[a_f]:t1X);}e$F=e3l.doCleanupGaps(e$F,C3X);I1v.J8h();if(t1X){e$F.shift();}t1e=t1e.slice(0,T_y).concat(e$F);}for(var k0H=+"0";k0H < h$5.length;k0H++){X3$=h$5[k0H];if(!X3$.endPoints.begin || X3$.endPoints.begin > t1e[+"0"].DT){X3$.endPoints.begin=t1e[0].DT;}if(!X3$.endPoints.end || X3$.endPoints.end < t1e[t1e.length - 1].DT){X3$.endPoints.end=t1e[t1e.length - 1].DT;}h$a=X3$.parameters && X3$.parameters.field || C3X.defaultPlotField;W6I=this.getFirstLastDataRecord(t1e,h$a,!!1);if(W6I && (!X3$.lastQuote || X3$.lastQuote.DT <= W6I.DT)){X3$.lastQuote=W6I;}if(a_f && w8j.deleteItems){X3$.lastQuote=this.getFirstLastDataRecord(O4o,a_f,!![])[a_f];}}for(var x4h in this.plugins){H0i=this.plugins[x4h];if(H0i.display){if(H0i.appendMasterData){H0i.appendMasterData(this,t1e,C3X);}}}if(!this.masterData || !this.masterData.length){this.masterData=O4o;}if(!w8j.noCreateDataSet){s9m=this.streamParameters;if(++s9m.count > s9m.maxTicks || w8j.bypassGovernor){clearTimeout(s9m.timeout);e_s();}else {if(s9m.timeout == -1){s9m.timeout=setTimeout(e_s,s9m.maxWait);}}}this.runAppend("appendMasterData",arguments);this.runAppend(S7u,arguments);};L4w.ChartEngine.prototype.updateCurrentMarketData=function(d2U,a3d,J1_,S9O){var N8z,z3Y,B4l,B24,n0h,D2Z,l9v,f3a,K7l,e6z;N8z="updat";N8z+="eCur";N8z+="rentMarketData";z3Y="A";z3Y+="skL2";if(!d2U || !d2U.DT){return;}if(!a3d){a3d=this.chart;}B4l=S9O && S9O.fromTrade;B24=d2U.DT;if(!B4l && this.layout.interval != "tick" && a3d.market){if(a3d.market.market_def){if(!a3d.market.isMarketDate(d2U.DT)){return;}if(!L4w.ChartEngine.isDailyInterval(this.layout.interval) && a3d.market.getSession(d2U.DT) === null){return;};}n0h={begin:d2U.DT,interval:this.layout.interval,periodicity:this.layout.periodicity,timeUnit:this.layout.timeUnit};D2Z=new L4w.Market(a3d.market.market_def);if(this.extendedHours && this.extendedHours.filter){D2Z.enableAllAvailableSessions();}l9v=D2Z.newIterator(n0h);l9v.next();d2U.DT=l9v.previous();}if(this.runPrepend("updateCurrentMarketData",arguments)){return;}f3a=a3d.currentMarketData;if(J1_){if(!f3a[J1_]){f3a[J1_]={};}f3a=f3a[J1_];}["Last","Bid","Ask"].forEach(function(i3N){I1v.J8h();if(d2U[i3N] && typeof d2U[i3N] == "number"){if(!f3a[i3N] || !f3a[i3N].DT || f3a[i3N].DT <= d2U.DT){f3a[i3N]={DT:d2U.DT,Price:d2U[i3N],Size:d2U[i3N + "Size"],Timestamp:B24};}}});["BidL2",z3Y].forEach(function(B9Q){if(d2U[B9Q] && d2U[B9Q] instanceof Array){if(!f3a[B9Q] || !f3a[B9Q].DT || f3a[B9Q].DT <= d2U.DT){f3a[B9Q]={DT:d2U.DT,Price_Size:d2U[B9Q],Timestamp:B24};}}});if(d2U.Close && (!f3a.Last || f3a.Last.DT <= d2U.DT)){K7l=d2U.Close;e6z=S9O && S9O.finalClose;if(e6z || e6z === 0){K7l=e6z;}f3a.Last={DT:d2U.DT,Price:K7l,Size:d2U.LastSize === undefined && this.layout.interval == "tick"?d2U.Volume:d2U.LastSize,Timestamp:d2U.LastTime || B24};}f3a.touched=new Date();if(!B4l){delete d2U.Last;}this.runAppend(N8z,arguments);};L4w.ChartEngine.prototype.clearCurrentMarketData=function(O7J,H7u){var i6o,n2Q,j6X,d87;i6o="clearC";i6o+="urrent";i6o+="MarketDat";i6o+="a";if(this.runPrepend(i6o,arguments)){return;}j6X=[];if(!O7J){for(n2Q in this.charts){j6X.push(this.charts[n2Q]);}}else {j6X.push(O7J);}for(n2Q=0;n2Q < j6X.length;n2Q++){d87=j6X[n2Q].currentMarketData;if(H7u){delete d87[H7u];}else {for(var P1N in d87){d87[P1N]=undefined;}}}this.runAppend("clearCurrentMarketData",arguments);};};f9=P1C=>{var r0g;r0g=P1C.CIQ;r0g.ChartEngine.prototype.changeOccurred=function(p7A){var O60,I5K,N5H,S96,F6p;O60="prefe";O60+="r";O60+="e";O60+="nces";I5K="th";I5K+="e";I5K+="me";N5H="th";N5H+="e";N5H+="m";N5H+="e";S96={stx:this,symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,layout:this.layout,drawings:this.drawingObjects};if(p7A == N5H){this.dispatch(I5K,S96);}if(this.currentlyImporting){return;}x2dci.r2m();if(p7A == "layout"){this.dispatch("layout",S96);}else if(p7A == "vector"){F6p="dra";F6p+="win";F6p+="g";this.dispatch(F6p,S96);}else if(p7A == O60){this.dispatch("preferences",S96);}};r0g.ChartEngine.prototype.startAsyncAction=function(){if(!this.pendingAsyncs){this.pendingAsyncs=[];}this.pendingAsyncs.push(!![]);};r0g.ChartEngine.prototype.registerChartDrawnCallback=function(Y3c){if(!this.asyncCallbacks){this.asyncCallbacks=[];}x2dci.r2m();this.asyncCallbacks.push(Y3c);return {fc:Y3c};};r0g.ChartEngine.prototype.unregisterChartDrawnCallback=function(Y8_){for(var D0$=0;D0$ < this.asyncCallbacks.length;D0$++){if(this.asyncCallbacks[D0$] == Y8_.fc){x2dci.C$o(74);this.asyncCallbacks.splice(D0$,x2dci.d58("1",0));return;}}};r0g.ChartEngine.prototype.makeAsyncCallbacks=function(){x2dci.r2m();if(!this.asyncCallbacks){return;}if(!this.pendingAsyncs || !this.pendingAsyncs.length){for(var t26=0;t26 < this.asyncCallbacks.length;t26++){this.asyncCallbacks[t26]();}}};r0g.ChartEngine.prototype.completeAsyncAction=function(){x2dci.r2m();this.pendingAsyncs.pop();this.makeAsyncCallbacks();};r0g.ChartEngine.prototype.addDomEventListener=function(w98,s_5,X1v,K93){x2dci.J8h();w98.addEventListener(s_5,X1v,K93);this.eventListeners.push({element:w98,event:s_5,function:X1v,options:K93});};r0g.ChartEngine.prototype.addEventListener=function(a03,i5m){var e91;x2dci.r2m();if(a03 === "*"){for(var S0z in this.callbackListeners){this.callbackListeners[S0z].push(i5m);}}else if(a03 instanceof Array){for(var F9e=0;F9e < a03.length;F9e++){this.callbackListeners[a03[F9e]].push(i5m);}}else {e91=this.callbackListeners[a03];if(!e91){throw new Error("Attempted to add an invalid listener.");}e91.push(i5m);}return {type:a03,cb:i5m};};r0g.ChartEngine.prototype.removeEventListener=function(Z8B,a5Y){var L7D,b6_,Y3A;if(!Z8B || typeof Z8B != "object"){Z8B={type:Z8B,cb:a5Y};}L7D=function(S_q,i9b){for(var g63=0;g63 < S_q.length;g63++){if(S_q[g63] === i9b){S_q.splice(g63,1);return;}}};b6_=this.callbackListeners;if(Z8B.type === (795 !== 4930?"359.56" - 0 != (840.53,8980)?"*":(7.48e+2,"g"):"f")){for(var u8a in b6_){L7D(b6_[u8a],Z8B.cb);}return;}if(!b6_[Z8B.type]){Y3A="Attempted ";Y3A+="to remove an invalid listener.";throw new Error(Y3A);}L7D(b6_[Z8B.type],Z8B.cb);};r0g.ChartEngine.prototype.dispatch=function(i9X,o8h){var o$f;o$f=this.callbackListeners[i9X];if(o$f){for(var M4t=0;M4t < o$f.length;M4t++){if(o$f[M4t].call(this,o8h) === !""){return !![];}}}o$f=this.callbackListeners["*"];if(o$f){for(var T_1=0;T_1 < o$f.length;T_1++){if(o$f[T_1].call(this,o8h) === !!1){return !![];}}}return !!0;};r0g.ChartEngine.prototype.updateListeners=function(t0S){x2dci.J8h();var z9c;for(var Q1j in this.plugins){z9c=this.plugins[Q1j];if(z9c.display && z9c.listener){z9c.listener(this,t0S);}}};};o8=m$s=>{var S88=x2dci;S88.r2m();var R_H;R_H=m$s.CIQ;R_H.ChartEngine.prototype.prepend=function(G4j,l6k){var h3d,Q5x;S88.C$o(22);h3d=S88.d58(G4j,"prepend");if(this instanceof R_H.ChartEngine){Q5x=this.hasOwnProperty(h3d)?this[h3d]:[];this[h3d]=[l6k].concat(Q5x);}else {Q5x=R_H.ChartEngine.prototype[h3d] || [];R_H.ChartEngine.prototype[h3d]=[l6k].concat(Q5x);}return {method:h3d,func:l6k};};R_H.ChartEngine.prototype.append=function(w0A,s51){var N$9,W0d,w8M;N$9="appen";N$9+="d";S88.C$o(22);W0d=S88.d58(w0A,N$9);if(this instanceof R_H.ChartEngine){w8M=this.hasOwnProperty(W0d)?this[W0d]:[];this[W0d]=w8M.concat(s51);}else {w8M=R_H.ChartEngine.prototype[W0d] || [];R_H.ChartEngine.prototype[W0d]=w8M.concat(s51);}return {method:W0d,func:s51};};R_H.ChartEngine.prototype.runPrepend=function(u42,A2d,o77){var b2r,G4M,i1g;S88.C$o(22);S88.r2m();b2r=S88.d58(u42,"prepend");G4M=this.hasOwnProperty(b2r)?this[b2r]:[];G4M=G4M.concat(R_H.ChartEngine.prototype[b2r] || []);if(!G4M.length){return ![];}if(!o77){o77=this;}for(var I_A=0;I_A < G4M.length;I_A++){i1g=G4M[I_A].apply(o77,A2d);if(i1g){return i1g;}}return !1;};R_H.ChartEngine.prototype.runAppend=function(j15,t9L,z_C){S88.r2m();var v4o,z$Y,z_W;S88.M8Y(22);v4o=S88.d58(j15,"append");z$Y=this.hasOwnProperty(v4o)?this[v4o]:[];z$Y=z$Y.concat(R_H.ChartEngine.prototype[v4o] || []);if(!z$Y.length){return !"1";}if(!z_C){z_C=this;}for(var V$C=0;V$C < z$Y.length;V$C++){z_W=z$Y[V$C].apply(z_C,t9L);if(z_W){return z_W;}}return ![];};R_H.ChartEngine.prototype.removeInjection=function(D4y){var X1D,h$l;X1D=D4y.method;if(this instanceof R_H.ChartEngine){if(!this[X1D]){return;}for(h$l=0;h$l < this[X1D].length;h$l++){if(this[X1D][h$l] == D4y.func){this[X1D].splice(h$l,+"1");return;}}}else {if(!R_H.ChartEngine.prototype[X1D]){return;}for(h$l=0;h$l < R_H.ChartEngine.prototype[X1D].length;h$l++){if(R_H.ChartEngine.prototype[X1D][h$l] == D4y.func){R_H.ChartEngine.prototype[X1D].splice(h$l,1);return;}}}};R_H.ChartEngine.prototype.remove=function(u3$){S88.J8h();var t9F;if(this instanceof R_H.ChartEngine){S88.C$o(22);delete this[S88.c6Y(u3$,"append")];S88.C$o(22);delete this[S88.d58(u3$,"prepend")];}else {t9F="appen";t9F+="d";S88.C$o(22);delete R_H.ChartEngine.prototype[S88.d58(u3$,t9F)];S88.M8Y(22);delete R_H.ChartEngine.prototype[S88.c6Y(u3$,"prepend")];}};};d7=V1n=>{var j13=x2dci;var k4o,S39;k4o=V1n.CIQ;S39=V1n.timezoneJS;k4o.ChartEngine.prototype.convertToDataZone=function(B1H){var H_s;if((B1H || B1H === 0) && this.dataZone){H_s=k4o.convertTimeZone(B1H,null,this.dataZone);B1H=new Date(H_s.getFullYear(),H_s.getMonth(),H_s.getDate(),H_s.getHours(),H_s.getMinutes(),H_s.getSeconds(),H_s.getMilliseconds());}return B1H;};k4o.ChartEngine.prototype.debug=function(){};k4o.ChartEngine.prototype.fps=function(Q0x,d_T){var T$z,z$Z,P4w,k_H;T$z=" sec";T$z+="onds";Q0x=Q0x || 5;z$Z=new Date().getTime();P4w=0;k_H=this;function r5F(){var C3z,l4E;C3z=(new Date().getTime() - z$Z) / +"1000";j13.r2m();if(C3z > Q0x){j13.C$o(40);l4E=j13.d58(C3z,P4w);j13.C$o(22);console.log(j13.c6Y(l4E,"FPS="));if(d_T){d_T(l4E);}return;}k_H.draw();P4w++;if(k4o.ChartEngine.useAnimation){requestAnimationFrame(r5F);}else {setTimeout(r5F,0);}}j13.M8Y(53);console.log(j13.d58("Running fps() for ",Q0x,T$z));r5F();};k4o.ChartEngine.htmlControls={mSticky:'
',iconsTemplate:'
'};k4o.ChartEngine.prototype.setChartType=function(x2p){var t1K,j2r;j13.J8h();t1K=this.layout;j2r=this.chart;if(t1K.aggregationType != "ohlc"){t1K.aggregationType="ohlc";if(j2r.canvas){this.createDataSet();}}t1K.chartType=x2p;this.setMainSeriesRenderer();if(this.mainSeriesRenderer.isAggregation && this.setAggregationType){return this.setAggregationType(x2p);}j2r.defaultChartStyleConfig={type:x2p};if(this.displayInitialized){this.draw();}this.changeOccurred("layout");};k4o.ChartEngine.prototype.setChartScale=function(f1T){var t1V;if(!f1T){f1T="linear";}t1V={percent:!!"1",relative:!![]};this.layout.chartScale=f1T;j13.J8h();if(this.chart.canvas){this.draw();}this.changeOccurred("layout");};k4o.ChartEngine.prototype.checkLogScale=function(){var t8T,m6d;t8T="lo";t8T+="g";if(this.runPrepend("checkLogScale",arguments)){return;}if(this.layout.chartScale !== t8T){return ![];}m6d=![];if(this.chart.yAxis.lowValue <= 0){this.setChartScale("linear");this.dispatch("notification","logdeactivated");m6d=!0;}this.runAppend("checkLogScale",arguments);return m6d;};k4o.ChartEngine.prototype.setAdjusted=function(z9t){this.layout.adj=z9t;if(this.chart.canvas){this.createDataSet();this.draw();}this.changeOccurred("layout");};k4o.ChartEngine.prototype.padOutPrice=function(b7W,A$X){var U0r,e3q,V8m,O1w;if(b7W !== 0 && (!b7W || typeof b7W != "number")){return "";}if(!A$X && A$X !== 0){A$X=b7W;}j13.C$o(22);U0r=j13.d58(A$X,"");e3q=+"0";if(U0r.indexOf(".") > -("1" | 0)){j13.M8Y(59);var X8I=j13.c6Y(1005,20,311,12);j13.C$o(0);var H42=j13.d58(7472,8);j13.C$o(67);var R6i=j13.c6Y(8490,2828,4245);j13.C$o(141);var L1g=j13.c6Y(5,2187,4362,6,2);j13.C$o(79);var q9C=j13.c6Y(14141,5,16,14915);j13.C$o(142);var U8c=j13.c6Y(2525,7603,7575,7,19);j13.M8Y(111);var v5O=j13.c6Y(8,10,1,2);e3q=U0r.substring(U0r.indexOf(+"480" === 215.42?(X8I,402.35):(H42,R6i) < L1g?(q9C,680.28) == "269.56" - 0?"x":".":U8c)).length - v5O;}if(A$X >= 1000){e3q=Math.max(e3q,0);}else if(A$X < 2){e3q=Math.max(e3q,4);}else {e3q=Math.max(e3q,2);}V8m=this.internationalizer;if(V8m){O1w=V8m.priceFormatters.length;if(e3q >= O1w){j13.C$o(0);e3q=j13.c6Y(O1w,1);}b7W=V8m.priceFormatters[e3q].format(b7W);}else {b7W=b7W.toFixed(e3q);}return b7W;};k4o.ChartEngine.prototype.formatPrice=function(g6y,G4S){var A1K,j97,h2e;if(g6y !== 0 && (!g6y || typeof g6y == "undefined")){return "";}if(!G4S){G4S=this.currentPanel;}if(!G4S){G4S=this.chart.panel;}j13.J8h();if(!G4S){return g6y.toString();}A1K=G4S.decimalPlaces;if(!A1K && A1K !== "0" << 64){A1K=G4S.chart.decimalPlaces;}if(!A1K && A1K !== 0){return g6y.toString();}j97=this.internationalizer;if(j97){h2e=j97.priceFormatters.length;if(A1K >= h2e){j13.M8Y(0);A1K=j13.d58(h2e,1);}g6y=j97.priceFormatters[A1K].format(g6y);}else {g6y=g6y.toFixed(A1K);}return g6y;};k4o.ChartEngine.prototype.determineMinMax=function(i53,X4l,i0y,K11,n4V,u9g,L9L,a1l,W0O){var B4k,t8V,J8s,O_i,O8c,n1B,Y2F,h$L,P8g,V30,B1n,A3A;j13.M8Y(124);var S8E=j13.d58(0,14,2,17);B4k=Number.MAX_VALUE * S8E;t8V=Number.MAX_VALUE;j13.J8h();J8s=!"1";O_i=i53.length;if(!W0O){W0O=[];}O8c=[];if(n4V){O_i=n4V;}for(var C4i=0;C4i <= O_i + 1;C4i++){if(X4l.length){if(C4i == O_i){n1B=this.getPreviousBar(this.chart,X4l["0" - 0],0);}else if(C4i == O_i + 1){n1B=this.getNextBar(this.chart,X4l[0],O_i - 1);}else {n1B=i53[C4i];}}if(!n1B)continue;if(!K11){if(n1B.transform){J8s=!![];n1B=n1B.transform;}else if(J8s)continue;;}Y2F=0;for(var g1Z=0;g1Z < X4l.length;g1Z++){h$L="n";h$L+="umber";P8g=k4o.existsInObjectChain(n1B,X4l[g1Z]);if(!P8g)continue;V30=P8g.obj[P8g.member];if(typeof V30 == h$L){V30=[V30];}for(var z4J=0;z4J < V30.length;z4J++){B1n=V30[z4J];if(u9g && B1n instanceof Array){B1n=B1n[0];}if(B1n || B1n === 0){if(i0y === !!({}) || i0y instanceof Array && i0y.indexOf(X4l[g1Z]) > -1){Y2F+=B1n;if(Y2F > B4k){B4k=Y2F;}if(Y2F < t8V){t8V=Y2F;}}else {if(B1n > B4k){B4k=B1n;}if(B1n < t8V){t8V=B1n;}O8c.push({value:B1n,quote:n1B});}}}}if(i0y === !![] || i0y instanceof Array && i0y.indexOf(X4l[g1Z]) > -1){O8c.push({value:Y2F,quote:n1B});}}A3A=[t8V,B4k];W0O.forEach(function(z7r){A3A=z7r(O8c,L9L,a1l) || A3A;});if(A3A[1] == Number.MAX_VALUE * -1){A3A[1]=+"0";}if(A3A[0] == Number.MAX_VALUE){A3A[0]=0;}return A3A;};k4o.ChartEngine.prototype.initializeDisplay=function(D9X){var b0C,P3b,B8T,F2F,v2d,r_x,m5Y,r_f,l2V,w1K,z2T,C4p,G1n,G_0,n7p,i6W;b0C="Clo";b0C+="se";P3b="H";P3b+="i";P3b+="g";P3b+="h";if(this.runPrepend("initializeDisplay",arguments)){return;}function d3R(K8c,w4G){var s$G,S6w,W93,W_J,p6t,a1_,c7h,m3s,W$l,p2j;s$G=!"1";S6w=r_x.layout && r_x.layout.studies && r_x.layout.studies[K8c.name];if(S6w && (!w4G || w4G.name == S6w.panel)){for(var f$u in S6w.outputMap){B8T.push(f$u);if(S6w.study){if(S6w.study.renderer){B8T=B8T.concat(k4o.createObjectChainNames(f$u,m5Y));}else if(!S6w.study.seriesFN){B8T=B8T.concat(k4o.createObjectChainNames(f$u,r_f));}}}for(var h$h=0;h$h <= 2;h$h++){B8T.push(S6w.name + "_hist" + (h$h?h$h:""));}s$G=!!({});}if(!w4G){return;}K8c.studies=[];K8c.renderers=[];if(s$G){K8c.studies.push(K8c.name);}for(var D3v in W9f){W93=W9f[D3v];W_J=W93.params;p6t=W_J.panel;if((W_J.yAxis || !r_x.panels[p6t] || r_x.panels[p6t].yAxis) != K8c)continue;if(p6t != w4G.name)continue;a1_=W93.highLowBars?m5Y:r_f;v2d=W93.bounded;for(var n2n=0;n2n < W93.seriesParams.length;n2n++){c7h=W93.seriesParams[n2n];if(c7h.hidden)continue;m3s=void 0;if(c7h.subField){m3s=k4o.createObjectChainNames(c7h.symbol,[c7h.subField]).concat(c7h.symbol);}else if(c7h.symbol){m3s=k4o.createObjectChainNames(c7h.symbol,a1_).concat(c7h.symbol);}else if(c7h.field){m3s=c7h.field;}else if(K8c == D9X.panel.yAxis){m3s=a1_;}if(m3s){B8T=B8T.concat(m3s);}if(W93.useSum){F2F=F2F.concat(m3s);}}K8c.renderers.push(D3v);}for(var Z_l in r_x.overlays){W$l=r_x.overlays[Z_l];if(W$l.panel != w4G.name)continue;if(W$l.name == K8c.name)continue;p2j=W$l.getYAxis(r_x);if(p2j != K8c)continue;K8c.studies.push(W$l.name);if(D9X.includeOverlaysInMinMax){d3R({name:W$l.name});}}}B8T=[];F2F=[];v2d=![];r_x=this;m5Y=["Close","Open",P3b,"Low"];r_f=[D9X.defaultPlotField || b0C];var {mainSeriesRenderer:j3G}=this;var {dataSegment:f31, seriesRenderers:W9f}=D9X;w1K=null;z2T=Math.floor((D9X.width - this.micropixels) / this.layout.candleWidth);if(D9X.scroll > D9X.maxTicks && D9X.maxTicks > z2T + 1){j13.C$o(44);var l3V=j13.d58(9,7,3,1);w1K=f31.length - l3V;}C4p=[];for(var C15 in this.panels){G1n=this.panels[C15];C4p=G1n.yaxisLHS.concat(G1n.yaxisRHS);for(var t8t=0;t8t < C4p.length;t8t++){G_0=C4p[t8t];B8T=[];F2F=[];n7p=D9X.transformFunc && G_0 == D9X.panel.yAxis;d3R(G_0,G1n);if(!this.currentlyImporting && !G_0.renderers.length && !G_0.studies.length){this.deleteYAxisIfUnused(G1n,G_0);continue;}if(j3G && j3G.determineMax){l2V=j3G.determineMax(f31,B8T,F2F,!n7p,w1K,v2d,G1n,G_0);}else {l2V=this.determineMinMax(f31,B8T,F2F,!n7p,w1K,v2d,G1n,G_0);}if(this.baselineHelper){l2V=this.setBaselineMinMax(l2V,G_0);}G_0.lowValue=l2V[0];G_0.highValue=l2V[1];if(G_0 == D9X.panel.yAxis){D9X.lowValue=G_0.lowValue;D9X.highValue=G_0.highValue;}}}i6W=D9X.state.aggregation;if(i6W && i6W.box){j13.M8Y(26);var l82=j13.d58(9,15,8);D9X.lowValue-=i6W.box / l82;j13.M8Y(143);var R3L=j13.c6Y(14,18,1,259,9);D9X.highValue+=i6W.box / R3L;}this.runAppend("initializeDisplay",arguments);};k4o.ChartEngine.prototype.setMarket=function(w1z,t8$){j13.J8h();if(!k4o.Market){return;}if(!t8$){t8$=this.chart;}t8$.market=new k4o.Market(w1z);for(var v8y in this.layout.marketSessions){t8$.market.disableSession(v8y,this.layout.marketSessions[v8y]);}};k4o.ChartEngine.prototype.setMarketFactory=function(w2D){j13.r2m();this.marketFactory=w2D;};k4o.ChartEngine.prototype.setResizeTimer=function(d9S){j13.J8h();this.resizeDetectMS=d9S;this.resizeHandle=k4o.resizeObserver(this.chart.container,S4a(this),this.resizeHandle,d9S);function S4a(D8y,F1D){var W2g;j13.J8h();W2g=function(){if(!D8y.chart.canvas){return;}j13.J8h();if(!k4o.isAndroid){if(D8y.chart.canvas.height != Math.floor(D8y.devicePixelRatio * D8y.chart.container.clientHeight) || D8y.chart.canvas.width != Math.floor(D8y.devicePixelRatio * D8y.chart.container.clientWidth)){D8y.resizeChart();}}};return function(){var H5t;H5t="undef";H5t+="ined";if(typeof ResizeObserver !== H5t){if(k4o.ChartEngine.useAnimation){requestAnimationFrame(W2g);}else {j13.C$o(46);setTimeout(W2g,j13.c6Y("0",0));}}else {W2g();}};}};k4o.ChartEngine.prototype.getRenderedItems=function(){var Q_Y,N4O,T1W,Y_o,G30,q0K,Z2d,r3J,n1L;Q_Y="Hig";Q_Y+="h";N4O=this.chart;T1W=this.currentPanel;if(!T1W){return;}Y_o=["Open",Q_Y,"Low","Close"];G30=["Close"];q0K=[];for(var K$k in this.overlays){if(this.overlays[K$k].panel !== T1W.name)continue;q0K=q0K.concat(Object.keys(this.overlays[K$k].outputMap));}for(var T7C in N4O.seriesRenderers){Z2d=N4O.seriesRenderers[T7C];if(Z2d.params.panel != T1W.name)continue;for(var X4j in Z2d.seriesParams){r3J=Z2d.seriesParams[X4j];n1L=Z2d.highLowBars?Y_o:G30;if(r3J.subField){q0K=q0K.concat(k4o.createObjectChainNames(r3J.symbol,[r3J.subField])).concat(r3J.symbol);}else if(r3J.symbol){q0K=q0K.concat(k4o.createObjectChainNames(r3J.symbol,n1L)).concat(r3J.symbol);}else if(r3J.field){q0K.push(r3J.field);}else if(T1W == N4O.panel){q0K=q0K.concat(n1L);}}}return q0K;};k4o.ChartEngine.prototype.setTransform=function(d4t,Y$e,M4i){d4t.transformFunc=Y$e;d4t.untransformFunc=M4i;};k4o.ChartEngine.prototype.unsetTransform=function(D7J){delete D7J.transformFunc;delete D7J.untransformFunc;for(var m66=0;D7J.dataSet && m66 < D7J.dataSet.length;m66++){D7J.dataSet[m66].transform=null;}};k4o.ChartEngine.prototype.isEquationChart=function(h6Q){if(h6Q && h6Q[+"0"] == "="){if(!this.allowEquations || !k4o.fetchEquationChart){console.warn("Error, equation chart option requires equationsAdvanced.js");return ![];}return !![];}return !({});};k4o.ChartEngine.prototype.correctIfOffEdge=function(C2t){var F4Q,E$q,d4u,O9$,w74,O2o,e0G,q6I,s21,h22,B2m;F4Q="cor";F4Q+="r";F4Q+="ectIfOffEdge";if(this.runPrepend("correctIfOffEdge",arguments)){return;}for(var L7y in this.charts){E$q=this.charts[L7y];d4u=E$q.dataSet;O9$=E$q.maxTicks;w74=this.layout;O2o=this.minimumLeftBars;e0G=Math.min(O2o,O9$);if(E$q.allowScrollPast){j13.C$o(0);q6I=j13.d58(O9$,e0G);if(e0G > d4u.length){q6I=O9$ - d4u.length;}if(E$q.scroll - q6I >= d4u.length){j13.C$o(69);var A_G=j13.d58(2,18,4,17);E$q.scroll=d4u.length + q6I - A_G;this.micropixels=0;}if(E$q.scroll <= e0G){E$q.scroll=e0G;this.micropixels=0;}}else {if(E$q.scroll < e0G){E$q.scroll=e0G;}if(E$q.scroll > d4u.length){E$q.scroll=d4u.length;}}if(E$q.allowScrollFuture === !({})){s21=this.getLabelOffsetInPixels(E$q,w74.chartType) + w74.candleWidth * E$q.whiteSpaceFutureTicks;j13.M8Y(85);var f1i=j13.c6Y(2,16,3,17,3);h22=O9$ - Math.round(s21 / w74.candleWidth) - f1i;B2m=this.micropixels < 0?E$q.scroll - 1:E$q.scroll;if(B2m < h22){E$q.scroll=h22;this.micropixels=0;}}}this.runAppend(F4Q,arguments);};j13.r2m();k4o.ChartEngine.prototype.getStartDateOffset=function(){for(var c3x=0;c3x < this.chart.dataSegment.length;c3x++){if(this.chart.dataSegment[c3x]){return c3x;}}return 0;};k4o.ChartEngine.prototype.setStartDate=function(C53){var C_3;for(var j$O=0;j$O < this.chart.dataSet.length;j$O++){C_3=this.chart.dataSet[j$O];if(C_3.DT.getTime() == C53.getTime()){this.chart.scroll=this.chart.dataSet.length - j$O;this.draw();return;}}};k4o.ChartEngine.prototype.clearPixelCache=function(){var n19,g8s;for(var V1e in this.panels){n19=this.panels[V1e];n19.cacheHigh=null;n19.cacheLow=null;n19.cacheLeft=1000000;n19.cacheRight=-1;}for(var m60 in this.charts){g8s=this.charts[m60];if(!g8s.dataSet)continue;for(var V4m=0;V4m < g8s.dataSet.length;V4m++){g8s.dataSet[V4m].cache={};}}};k4o.ChartEngine.prototype.adjustBackingStore=function(W_a,o1Y){var Y_C,P7s,t7X,d4r;this.devicePixelRatio=window.devicePixelRatio || 1;if(this.devicePixelRatio < 1.0){this.devicePixelRatio=1.0;}Y_C=o1Y.webkitBackingStorePixelRatio || o1Y.mozBackingStorePixelRatio || o1Y.msBackingStorePixelRatio || o1Y.oBackingStorePixelRatio || o1Y.backingStorePixelRatio || "1" << 0;P7s=this.devicePixelRatio / Y_C;if(!this.useBackingStore){this.devicePixelRatio=this.adjustedDisplayPixelRatio=1;return;}if(!k4o.isAndroid || k4o.is_chrome || k4o.isFF){t7X=W_a.width;d4r=W_a.height;j13.C$o(38);W_a.width=j13.d58(t7X,P7s);j13.M8Y(38);W_a.height=j13.c6Y(d4r,P7s);j13.C$o(22);W_a.style.width=j13.c6Y("px",t7X);j13.C$o(22);W_a.style.height=j13.c6Y("px",d4r);o1Y.scale(P7s,P7s);this.adjustedDisplayPixelRatio=P7s;this.backing={ratio:P7s,width:W_a.width,height:W_a.height,styleWidth:t7X,styleHeight:d4r};}};k4o.ChartEngine.prototype.reconstituteBackingStore=function(){var t6I,m3J,J7w,t1o,T9y;if(!this.useBackingStore || !this.backing){return;}t6I=[this.chart.canvas];if(this.useBackgroundCanvas){t6I.push(this.chart.backgroundCanvas);}m3J=this.backing;t6I.forEach(function(V6X){if(V6X.width == m3J.width){return;}V6X.width=m3J.width;V6X.height=m3J.height;j13.r2m();V6X.context.scale(m3J.ratio,m3J.ratio);});J7w=712748429;t1o=1654436079;T9y=2;for(var O06=1;j13.O$R(O06.toString(),O06.toString().length,15960) !== J7w;O06++){this.adjustedDisplayPixelRatio=m3J.ratio;T9y+=2;}if(j13.q2D(T9y.toString(),T9y.toString().length,11143) !== t1o){this.adjustedDisplayPixelRatio=m3J.ratio;}this.draw();};k4o.ChartEngine.prototype.disableBackingStore=function(){var y3T,E$W;if(!this.useBackingStore || !this.backing){return;}y3T=[this.chart.canvas];if(this.useBackgroundCanvas){y3T.push(this.chart.backgroundCanvas);}E$W=this.backing;y3T.forEach(function(U1e){var E$L,L33,E17;if(U1e.width == E$W.styleWidth){return;}E$L=-1933644852;L33=-581806431;E17=2;for(var y3p=1;j13.O$R(y3p.toString(),y3p.toString().length,493) !== E$L;y3p++){U1e.width=E$W.styleWidth;U1e.height=E$W.styleHeight;U1e.context.scale(1,1);E17+=2;}if(j13.O$R(E17.toString(),E17.toString().length,13839) !== L33){U1e.width=E$W.styleWidth;U1e.height=E$W.styleHeight;U1e.context.scale(7,3);}});j13.M8Y(19);j13.r2m();this.adjustedDisplayPixelRatio=j13.d58(0,"1");this.draw();};k4o.ChartEngine.prototype.getBackgroundCanvas=function(C9D){if(!C9D){C9D=this.chart;}return this.useBackgroundCanvas?C9D.backgroundCanvas:C9D.canvas;};k4o.ChartEngine.prototype.resizeCanvas=function(){var E3h,P5w,Z0v,s7t,Q$V,I4f,y49,n3V,z1E;j13.J8h();E3h=this.chart.canvas;P5w=this.chart.context;if(E3h && P5w){this.floatCanvas.height=this.chart.tempCanvas.height=this.chart.backgroundCanvas.height=E3h.height=this.chart.container.clientHeight;this.floatCanvas.width=this.chart.tempCanvas.width=this.chart.backgroundCanvas.width=E3h.width=this.chart.container.clientWidth;this.adjustBackingStore(E3h,P5w);this.adjustBackingStore(this.chart.tempCanvas,this.chart.tempCanvas.context);this.adjustBackingStore(this.floatCanvas,this.floatCanvas.context);this.adjustBackingStore(this.chart.backgroundCanvas,this.chart.backgroundCanvas.context);}Z0v=this.container.getBoundingClientRect();this.top=Z0v.top;this.left=Z0v.left;this.canvasWidth=this.chart.canvasWidth=this.chart.container.clientWidth;this.right=this.left + this.canvasWidth;this.height=this.chart.container.clientHeight;this.width=this.right - this.left;if(this.width === "0" >> 32 && !this.container.dimensionlessCanvas && this.container.closest("html")){s7t="warning: zero width chart. Check CSS for cha";s7t+="rt co";s7t+="ntainer.";console.log(s7t);}this.bottom=this.top + this.height;this.calculateYAxisPositions();this.chart.canvasRight=this.right;this.chart.canvasHeight=this.height;Q$V=this.layout.candleWidth;if(typeof Q$V == "undefined"){Q$V=8;}for(var s5g in this.charts){I4f=this.charts[s5g];this.setCandleWidth(Q$V,I4f);if(I4f.scroll < I4f.width / Q$V){I4f.scroll=Math.floor(I4f.width / Q$V);y49=Math.round(this.preferences.whitespace / this.layout.candleWidth);I4f.scroll-=y49;}n3V=10;try{j13.M8Y(0);var U_i=j13.d58(24,22);z1E=P5w.measureText("10:00").width * U_i;}catch(N$$){z1E=100;}while(n3V > 1){if(this.chart.width / z1E > n3V)break;n3V/=1.5;}I4f.xAxis.autoComputedTickSizePixels=Math.round(this.chart.width / n3V);if(I4f.xAxis.autoComputedTickSizePixels < 1){I4f.xAxis.autoComputedTickSizePixels=+"1";}}};k4o.ChartEngine.prototype.setCandleWidth=function(v_H,W3c){if(!W3c){W3c=this.chart;}v_H=this.constrainCandleWidth(v_H);this.layout.candleWidth=v_H;j13.C$o(144);var X0X=j13.d58(7,14,7,11,246);W3c.maxTicks=Math.round(W3c.width / v_H) + X0X;};k4o.ChartEngine.prototype.constrainCandleWidth=function(E6h){var Q2p,Q7E,Q5k;Q2p=this.minimumCandleWidth;Q7E=this.maximumCandleWidth;Q5k=this.animations.zoom;if(Q2p && E6h < Q2p){E6h=Q2p;if(Q5k && Q5k.running){Q5k.stop();}}if(Q7E && E6h > Q7E){E6h=Q7E;if(Q5k && Q5k.running){Q5k.stop();}}return E6h;};k4o.ChartEngine.prototype.resizeChart=function(t$T){var E0E;if(this.runPrepend("resizeChart",arguments)){return;}if(t$T !== !1){t$T=!!({});}if(t$T){this.preAdjustScroll();}E0E=this.chart.canvasHeight;this.resizeCanvas();if(t$T){this.postAdjustScroll();}if(this.displayInitialized){this.adjustPanelPositions();this.draw();;}else if(this.chart.canvasHeight !== 0 && E0E === 0){this.adjustPanelPositions();this.draw();}this.doDisplayCrosshairs();this.updateChartAccessories();this.runAppend("resizeChart",arguments);};k4o.ChartEngine.prototype.clear=function(){var b6C;this.displayInitialized=!1;for(var Z9Z in this.layout.studies){b6C=this.layout.studies[Z9Z];k4o.getFn("Studies.removeStudy")(this,b6C);}if(this.controls.chartControls){this.controls.chartControls.style.display="none";}this.chart.panel.title.innerHTML="";this.chart.panel.title.appendChild(document.createTextNode(this.chart.panel.display));};k4o.ChartEngine.prototype.fillScreen=function(){var g5J,w8Q,A9X,O8r,h5g;j13.r2m();g5J=this.chart;w8Q=this.layout.candleWidth;A9X=g5J.width - this.preferences.whitespace;O8r=g5J.dataSet.length;if(O8r * w8Q >= A9X){this.draw();return;}if(!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars){O8r--;}j13.M8Y(40);h5g=j13.c6Y(O8r,A9X);this.setCandleWidth(h5g,g5J);this.home({maintainWhitespace:!![]});};k4o.ChartEngine.prototype.setMaxTicks=function(a6w,i3x){var L8n;if(!i3x){i3x={};}a6w=Math.round(a6w);if(a6w < 2){a6w=2;}L8n=i3x.padding?i3x.padding:0;j13.r2m();this.layout.candleWidth=(this.chart.width - L8n) / a6w;if(!this.layout.candleWidth){this.layout.candleWidth=+"8";}this.chart.maxTicks=Math.round(this.chart.width / this.layout.candleWidth - 0.499);if(i3x.padding || i3x.padding === 0){j13.C$o(22);this.chart.scroll=j13.c6Y(1,a6w);};};k4o.ChartEngine.prototype.initializeChart=function(n8Z){var E2b,u1X,s1Y,U4g,q$9,a3V,H7L,T_W,l$y,n7Y,i$$,E7V,T$2,o5d,y3B,v02,K8y,t2a,r0I,x_H,Y_d;E2b="in";E2b+="i";E2b+="tializeC";E2b+="hart";u1X="canva";u1X+="s";s1Y="c";s1Y+="an";s1Y+="va";s1Y+="s";if(this.runPrepend("initializeChart",arguments)){return;}U4g=this.chart;if(!U4g.symbolObject.symbol){U4g.symbolObject.symbol=U4g.symbol;}if(this.locale){this.setLocale(this.locale);}if(!this.displayZone && k4o.ChartEngine.defaultDisplayTimeZone){this.setTimeZone(null,k4o.ChartEngine.defaultDisplayTimeZone);}this.resetDynamicYAxis({noRecalculate:!![]});this.calculateYAxisPositions();this.micropixels=0;if(n8Z){U4g.container=n8Z;}else {n8Z=U4g.container;}n8Z.stx=this;if(!n8Z.CIQRegistered){n8Z.CIQRegistered=!"";k4o.ChartEngine.registeredContainers.push(n8Z);}if(this.registerHTMLElements){this.registerHTMLElements();}q$9=U4g.canvas;a3V=U4g.backgroundCanvas;H7L=U4g.tempCanvas;T_W=this.floatCanvas;l$y=U4g.canvasShim;if(q$9 && document.createElement("canvas").getContext){if(!q$9.id){n8Z.removeChild(q$9);U4g.canvas=null;}if(H7L && !H7L.id){n8Z.removeChild(H7L);U4g.tempCanvas=null;}if(T_W && !T_W.id){n8Z.removeChild(T_W);this.floatCanvas=null;}if(a3V && !a3V.id){n8Z.removeChild(a3V);U4g.backgroundCanvas=null;}}else {this.setCandleWidth(this.layout.candleWidth);}if(!U4g.backgroundCanvas){a3V=U4g.backgroundCanvas=document.createElement("canvas");}n8Z.appendChild(a3V);V6E(a3V);if(!U4g.canvasShim){l$y=U4g.canvasShim=document.createElement("div");}l$y.className="stx-canvas-shim";n8Z.appendChild(l$y);if(!U4g.canvas){q$9=U4g.canvas=document.createElement(s1Y);}n8Z.appendChild(q$9);V6E(q$9);U4g.context=q$9.context;if(!U4g.tempCanvas){H7L=U4g.tempCanvas=document.createElement("canvas");}n8Z.appendChild(H7L);V6E(H7L,!![]);if(!this.floatCanvas){T_W=this.floatCanvas=document.createElement(u1X);}n8Z.appendChild(T_W);V6E(T_W,!!({}));this.resizeCanvas();function V6E(A5r,v5S){var c8Q,F2z,Q8i,O2y;c8Q="n";c8Q+="on";c8Q+="e";F2z="a";F2z+="bs";F2z+="o";F2z+="lute";Q8i="2";Q8i+="d";A5r.context=A5r.getContext(Q8i);j13.C$o(0);A5r.context.lineWidth=j13.d58("1",0);O2y=A5r.style;O2y.position=F2z;O2y.left="0px";if(v5S){O2y.display=c8Q;}}if(k4o.isAndroid){H7L.ontouchstart=T_W.ontouchstart=function(J0q){if(J0q.preventDefault){J0q.preventDefault();}};}n7Y=this.panels;U4g.panel.display=U4g.symbol;if(U4g.symbolDisplay){U4g.panel.display=U4g.symbolDisplay;}this.adjustPanelPositions();U4g.panel=n7Y[U4g.name];for(var R6p in n7Y){i$$=n7Y[R6p].yaxisLHS.concat(n7Y[R6p].yaxisRHS);for(var O8D=0;O8D < i$$.length;O8D++){i$$[O8D].height=n7Y[R6p].yAxis.height;this.calculateYAxisMargins(i$$[O8D]);;}}this.initialWhitespace=this.preferences.whitespace;if(U4g.dataSet && U4g.dataSet.length > 0){U4g.scroll=Math.floor(U4g.width / this.layout.candleWidth);E7V=Math.round(this.preferences.whitespace / this.layout.candleWidth);U4g.scroll-=E7V;}if(k4o.touchDevice){T$2=".ov";T$2+="erla";T$2+="yTras";T$2+="hCan";o5d=n8Z.querySelector(".overlayEdit");y3B=n8Z.querySelector(T$2);v02=n8Z.querySelector(".vectorTrashCan");K8y=function(c9O,k_9,d3S){j13.r2m();return function(D_g){j13.r2m();c9O.deleteHighlighted(k_9,d3S);};};if(o5d){k4o.safeClickTouch(o5d,K8y(this,!![],!!({})));if(y3B){k4o.safeClickTouch(y3B,K8y(this,![]));}}else if(y3B){k4o.safeClickTouch(y3B,K8y(this,!![]));}if(v02){k4o.safeClickTouch(v02,K8y(this,!""));}}if(this.manageTouchAndMouse){this.registerTouchAndMouseEvents();}if(this.handleMouseOut){n8Z.onmouseout=(function(x0N){return function(Z9p){x0N.handleMouseOut(Z9p);};})(this);k4o.smartHover();}if(this.abortDrawings){this.abortDrawings();}this.undoStamps=[];for(var m9x in n7Y){t2a=n7Y[m9x];if(t2a.markerHolder){n8Z.removeChild(t2a.markerHolder);t2a.markerHolder=null;}}for(var D9j in this.plugins){r0I=this.plugins[D9j];if(r0I.display){if(r0I.initializeChart){r0I.initializeChart(this);}}}if(!this.resizeListenerInitialized){x_H=this;this.resizeListenerInitialized=!0;Y_d=function(){return function(r5T){x_H.resizeChart();};};this.addDomEventListener(window,"resize",Y_d(),!!1);}if(U4g.baseline.userLevel){U4g.baseline.userLevel=null;}this.setResizeTimer(this.resizeDetectMS);this.runAppend(E2b,arguments);};k4o.ChartEngine.prototype.destroy=function(){j13.r2m();var m9y,U1E,b0M,z1B;this.setResizeTimer(+"0");if(this.quoteDriver){this.quoteDriver.die();}this.styles={};for(var O17=0;O17 < this.eventListeners.length;O17++){m9y=this.eventListeners[O17];m9y.element.removeEventListener(m9y.event,m9y["function"],m9y.options);}this.touchAndMouseEventsRegistered=!"1";this.eventListeners=[];if(this.streamParameters.timeout){clearTimeout(this.streamParameters.timeout);}U1E=k4o.ChartEngine.registeredContainers;b0M=U1E.indexOf(this.chart.container);if(b0M > -("1" ^ 0)){U1E.splice(b0M,1);}if(this.slider){z1B=U1E.indexOf(this.slider.slider.chart.container);if(z1B > -1){U1E.splice(z1B,1);}}};k4o.ChartEngine.prototype.preAdjustScroll=function(F2u){j13.J8h();if(!F2u){F2u=this.chart;}this.previousAdjust={chart:F2u,scroll:F2u.scroll,maxTicks:F2u.maxTicks};};k4o.ChartEngine.prototype.postAdjustScroll=function(){var c79;if(!this.previousAdjust){return;}c79=this.previousAdjust.chart;c79.scroll=this.previousAdjust.scroll + (c79.maxTicks - this.previousAdjust.maxTicks);if(this.displayInitialized){this.draw();}};k4o.ChartEngine.prototype.translateIf=function(r$d){if(this.translationCallback){return this.translationCallback(r$d);}j13.J8h();return r$d;};k4o.ChartEngine.prototype.doCleanupDates=function(V3q,s1j){var T1A,S_5,R0y,u90,U8e,A0H,M0X;j13.J8h();if(!V3q || !V3q.length){return;}for(var z4t=0;z4t < V3q.length;z4t++){T1A="[obj";T1A+="ect Stri";T1A+="ng]";S_5=V3q[z4t];R0y=S_5.DT;if(!R0y && !S_5.Date)continue;if(S_5.DT && Object.prototype.toString.call(R0y) == T1A && R0y.length <= 10){R0y=new Date(R0y);R0y.setMinutes(R0y.getMinutes() + R0y.getTimezoneOffset());}else {u90="[obj";u90+="ect Da";u90+="te]";U8e=!"";if(!S_5.DT){R0y=k4o.strToDateTime(S_5.Date);if(S_5.Date.length <= 10){U8e=![];}}if(Object.prototype.toString.call(R0y) != u90){R0y=new Date(R0y);}if(S39.Date && this.dataZone && U8e){A0H=new S39.Date(R0y.getFullYear(),R0y.getMonth(),R0y.getDate(),R0y.getHours(),R0y.getMinutes(),this.dataZone);j13.M8Y(77);var t_5=j13.c6Y(8804,4,10,980);M0X=R0y.getSeconds() * t_5 + R0y.getMilliseconds();R0y=new Date(A0H.getTime() + M0X);}if(k4o.ChartEngine.isDailyInterval(s1j)){j13.C$o(38);R0y.setHours(0,+"0",0,j13.d58("0",1));}}if(!S_5.DT){S_5.Date=k4o.yyyymmddhhmmssmmm(R0y);}S_5.DT=R0y;}};k4o.ChartEngine.prototype.doCleanupGaps=function(X3C,h2L,g6B){var M$v,U3l,I6D,T8G,I5b,Y3d,p_l,p_$,C8r,v9p,Y1v,g4e,b6X,Y_8,c2w;function S7D(I$j,q4Y){var J$C,h17,v69,J5d,P7$;J$C="u";J$C+="ndefin";J$C+="ed";h17=g6B.field;if(h17){v69="undefin";v69+="ed";if(typeof I$j[h17] != "undefined" && typeof q4Y[h17] == v69){q4Y[h17]=T8G?null:I$j[h17];}return;}if(T8G){return;}J5d=I$j[g4e];P7$=q4Y[g4e];if(typeof J5d != "undefined" && typeof P7$ == J$C){k4o.ensureDefaults(q4Y,{Close:J5d,Open:J5d,High:J5d,Low:J5d,Volume:0,Adj_Close:I$j.Adj_Close});}}M$v="w";M$v+="e";M$v+="e";M$v+="k";if(!X3C || !X3C.length){return X3C;}function N1h(k1I,a$6){var k4l,v6w,m5D,L8o,l1e;k4l=g6B.field;j13.r2m();v6w=k4l?p_$[k4l]:p_$;if(v6w === undefined){v6w={};}m5D=T8G?null:v6w[g4e];L8o=T8G?null:v6w.Adj_Close;while(+k1I < +a$6){l1e={DT:k1I};if(k4l){}else {p_l.push(l1e);k4o.extend(l1e,{Open:m5D,High:m5D,Low:m5D,Close:m5D,Volume:0,Adj_Close:L8o});}k1I=Y1v.next();}}U3l=this.layout.interval;g6B=g6B?g6B:{};if(!h2L){h2L=this.chart;}if(!k4o.Market || !h2L.market){return X3C;}if(!g6B.noCleanupDates){this.doCleanupDates(X3C,U3l);}I6D=g6B.cleanupGaps;if(I6D === !!0){return X3C;}if(!I6D || I6D === !![]){I6D=this.cleanupGaps || I6D;}j13.M8Y(106);T8G=j13.c6Y(I6D,"gap");if(!I6D){return X3C;}if(U3l == "tick"){return X3C;}if(U3l == "month" || U3l == M$v){I5b="d";I5b+="a";I5b+="y";if(this.dontRoll){return X3C;}U3l=I5b;}Y3d=function(m08){j13.J8h();if(m08.DT){if(Object.prototype.toString.call(m08.DT) != "[object Date]"){return new Date(m08.DT);}return new Date(+m08.DT);}return k4o.strToDateTime(m08.Date);};p_l=[];p_$=X3C[0];j13.J8h();p_l.push(p_$);C8r={begin:Y3d(p_$),interval:U3l,periodicity:1,timeUnit:this.layout.timeUnit};v9p=new k4o.Market(h2L.market.market_def);Y1v=v9p.newIterator(C8r);if(this.extendedHours && this.extendedHours.filter){Y1v.market.enableAllAvailableSessions();}g4e=h2L.defaultPlotField;for(var G0h=0;G0h < X3C.length;G0h++){if(X3C[G0h][g4e] !== undefined)break;if(X3C[G0h].Value !== undefined){g4e="Value";break;}}for(var P2x=1;P2x < X3C.length;P2x++){Y_8=X3C[P2x];b6X=Y1v.next();c2w=Y3d(Y_8);if(b6X < c2w){N1h(b6X,c2w);b6X=Y1v.market._convertFromMarketTZ(Y1v.begin,Y1v.outZone);}while(c2w < b6X){if(++P2x == X3C.length){return p_l;}S7D(p_$,Y_8);p_l.push(Y_8);p_$=Y_8;Y_8=X3C[P2x];c2w=Y3d(Y_8);}if(b6X < c2w){P2x--;b6X=Y1v.previous();}else {S7D(p_$,Y_8);p_l.push(Y_8);p_$=Y_8;}}return p_l;};k4o.ChartEngine.prototype.getCreatingLibrary=function(){j13.r2m();return V1n;};};m1=Y_z=>{var g4U=x2dci;var c4S;c4S=Y_z.CIQ;g4U.r2m();c4S.ChartEngine.Panel=function(M3j,r1o){if(r1o){this.yAxis=r1o;}else {this.yAxis=new c4S.ChartEngine.YAxis();}this.name=M3j;g4U.J8h();this.state={};;};c4S.extend(c4S.ChartEngine.Panel.prototype,{name:null,display:null,chart:null,yAxis:null,shareChartXAxis:null,top:null,bottom:null,height:null,percent:null,displayEdgeIfPadded:!!1,noDrag:![],exportable:!!({})},!!"1");c4S.ChartEngine.prototype.whichPanel=function(x2Z){var z8v;for(var y3q in this.panels){z8v=this.panels[y3q];if(z8v.hidden)continue;if(x2Z >= z8v.top && x2Z < z8v.bottom){return z8v;}}return null;};c4S.ChartEngine.prototype.panelExists=function(j1C){var r7D;for(var c4d in this.panels){r7D=this.panels[c4d];if(r7D.name == j1C){return !!1;}}return !({});};c4S.ChartEngine.prototype.storePanels=function(){var w26,j3g;if(!this.layout){this.layout={};}w26=this.layout;w26.panels={};for(var H2_ in this.panels){j3g=this.panels[H2_];w26.panels[j3g.name]={percent:j3g.percent,display:j3g.display,yAxis:j3g.yAxis};}};c4S.ChartEngine.prototype.savePanels=function(d1M){this.storePanels();if(d1M !== ![]){this.changeOccurred("layout");}};c4S.ChartEngine.prototype.privateDeletePanel=function(p8s){var W2y,x$k,C26;for(var b3q in this.layout.studies){W2y=this.layout.studies[b3q];if(W2y.panel == p8s.name){this.cleanupRemovedStudy(W2y);}}delete this.panels[p8s.name];for(var g9r in this.overlays){if(this.overlays[g9r].panel == p8s.name){if(this.layout.studies){this.cleanupRemovedStudy(this.layout.studies[g9r]);}delete this.overlays[g9r];}}for(var U7g in this.chart.series){if(this.chart.series[U7g].parameters.panel == p8s.name){this.removeSeries(this.chart.series[U7g],this.chart);}}if(p8s.holder){this.chart.container.removeChild(p8s.holder);if(this.getMarkerArray){x$k="p";x$k+="anelName";C26=this.getMarkerArray(x$k,p8s.name);for(var w3$=0;w3$ < C26.length;w3$++){this.removeFromHolder(C26[w3$]);}}}if(p8s.handle){p8s.handle.remove();}this.currentPanel=null;};c4S.ChartEngine.prototype.plotsInPanel=function(J8j){var w6p,L3w,T0Z,y3o;w6p=[];L3w=J8j;if(typeof J8j == "object"){L3w=J8j.name;}for(var b5U in this.layout.studies){T0Z=this.layout.studies[b5U];if(L3w === T0Z.panel){w6p.push(T0Z);}}for(var Y63 in this.chart.seriesRenderers){y3o=this.chart.seriesRenderers[Y63];if(L3w === y3o.params.panel){w6p.push(y3o);}}return w6p;};c4S.ChartEngine.prototype.checkForEmptyPanel=function(s5e,j$f,s0N){g4U.r2m();var S0U,G9j;if(!s5e){return ![];}S0U=s5e;if(typeof s5e == "object"){S0U=s5e.name;}if(S0U === this.chart.name){return ![];}if(!s0N){s0N=[];}else if(!(s0N instanceof Array)){s0N=[s0N];}G9j=this.plotsInPanel(s5e);for(var o_B=0;o_B < G9j.length;o_B++){if(s0N.indexOf(G9j[o_B]) == -+"1"){return ![];}}if(!j$f){this.panelClose(this.panels[S0U]);}return !0;};c4S.ChartEngine.prototype.panelClose=function(F18){var H$V;if(!F18){return;}if(this.runPrepend("panelClose",arguments)){return;}this.cancelTouchSingleClick=!!({});c4S.ChartEngine.drawingLine=![];if(F18.soloing){this.panelSolo(F18);}if(this.charts[F18.name]){for(var b2b in this.panels){H$V=this.panels[b2b];if(H$V.chart.name == F18.name){this.privateDeletePanel(H$V);}}delete this.charts[F18.name];}else {this.privateDeletePanel(F18);}if(!this.currentlyImporting){this.showCrosshairs();this.resetDynamicYAxis({noRecalculate:!!"1"});this.calculateYAxisPositions();this.draw();this.savePanels();}this.userPointerDown=this.grabbingScreen=!({});if(this.openDialog){this.openDialog="";}this.runAppend("panelClose",arguments);};c4S.ChartEngine.prototype.deleteAllPanels=function(){var Z_Q;for(var t4T in this.panels){Z_Q=this.panels[t4T];this.privateDeletePanel(Z_Q);}this.layout.panels={};this.panels={};};c4S.ChartEngine.prototype.panelUp=function(o27){var j3d,c$q,y4h,S4R;this.cancelTouchSingleClick=!!1;c4S.ChartEngine.drawingLine=![];this.showCrosshairs();j3d={};c$q=0;g4U.r2m();for(y4h in this.panels){if(y4h == o27.name)break;c$q++;}if(!c$q){return;}S4R=0;for(y4h in this.panels){if(S4R == c$q - 1){j3d[o27.name]=o27;}if(y4h == o27.name)continue;j3d[y4h]=this.panels[y4h];S4R++;}this.panels=j3d;this.adjustPanelPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.panelDown=function(y9C){var J3w,Q8z,F0d,X8j,e8e;g4U.r2m();this.cancelTouchSingleClick=!"";c4S.ChartEngine.drawingLine=!!0;this.showCrosshairs();J3w={};Q8z=+"0";for(F0d in this.panels){if(F0d == y9C.name)break;Q8z++;}X8j=+"0";for(F0d in this.panels){X8j++;}if(Q8z == X8j - 1){return;}e8e=0;for(F0d in this.panels){if(F0d == y9C.name){e8e++;continue;}J3w[F0d]=this.panels[F0d];if(e8e == Q8z + 1){J3w[y9C.name]=y9C;}e8e++;}this.panels=J3w;this.adjustPanelPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.panelSolo=function(n0k){var Q4A,V7z,y0n,g5m,k7N,Q9K;this.cancelTouchSingleClick=!!({});c4S.ChartEngine.drawingLine=!({});this.showCrosshairs();Q4A=!!({});if(n0k.soloing){y0n="s";y0n+="tx_solo_lit";Q4A=!1;n0k.soloing=!!0;n0k.solo.classList.remove(y0n);n0k.percent=n0k.oldPercent;if(n0k.name != "chart"){if(this.soloPanelToFullScreen){if(n0k.percent == 1){for(V7z in this.panels){g5m=this.panels[V7z];if(g5m != n0k){n0k.percent-=g5m.percent;}}}}else {this.chart.panel.percent=this.chart.panel.oldPercent;}}if(this.soloPanelToFullScreen){this.xAxisAsFooter=this.chart.panel.oldXAxisAsFooter;}}else {k7N="ch";k7N+="art";Q9K="st";Q9K+="x_solo_lit";n0k.soloing=!!1;n0k.solo.classList.add(Q9K);n0k.oldPercent=n0k.percent;this.chart.panel.oldXAxisAsFooter=this.xAxisAsFooter;if(n0k.name != k7N){if(this.soloPanelToFullScreen){this.xAxisAsFooter=!!"1";}else {this.chart.panel.oldPercent=this.chart.panel.percent;g4U.M8Y(16);var M4T=g4U.c6Y(10,0,12,119);n0k.percent=M4T - this.chart.panel.percent;}}}for(V7z in this.panels){this.panels[V7z].hidden=Q4A;}if(!this.soloPanelToFullScreen){this.chart.panel.hidden=![];}n0k.hidden=!"1";this.resetDynamicYAxis({noRecalculate:!!1});this.calculateYAxisPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.calculatePanelPercent=function(C7y){var A1b;A1b=C7y.bottom - C7y.top;C7y.percent=A1b / this.chart.canvasHeight;};c4S.ChartEngine.prototype.resizePanels=function(){var P_d,U6c,D8t,A9x,m5S,T9v,d35,F5L,S92;if(!c4S.ChartEngine.resizingPanel){return;}P_d=1868099388;g4U.C$o(38);U6c=-g4U.d58("872807414",1);D8t=2;for(var S$Q=1;g4U.q2D(S$Q.toString(),S$Q.toString().length,39756) !== P_d;S$Q++){F5L=c4S.ChartEngine.crosshairY >= this.resolveY(c4S.ChartEngine.resizingPanel.top);D8t+=2;}if(g4U.O$R(D8t.toString(),D8t.toString().length,42342) !== U6c){F5L=c4S.ChartEngine.crosshairY > this.resolveY(c4S.ChartEngine.resizingPanel.top);}for(var h2n in this.panels){if(this.panels[h2n] == c4S.ChartEngine.resizingPanel)break;if(this.panels[h2n].hidden)continue;A9x=this.panels[h2n];}S92=this.backOutY(c4S.ChartEngine.crosshairY);if(F5L){T9v=c4S.ChartEngine.resizingPanel.yaxisLHS.concat(c4S.ChartEngine.resizingPanel.yaxisRHS);for(d35=0;d35 < T9v.length;d35++){g4U.M8Y(16);var f$d=g4U.c6Y(10,1,3,23);m5S=T9v[d35].initialMarginTop + T9v[d35].initialMarginBottom + f$d;if(S92 > T9v[d35].bottom - m5S){S92=T9v[d35].bottom - m5S;}}}else {T9v=A9x.yaxisLHS.concat(A9x.yaxisRHS);for(d35="0" << 64;d35 < T9v.length;d35++){m5S=T9v[d35].initialMarginTop + T9v[d35].initialMarginBottom + +"10";if(S92 < T9v[d35].top + m5S){S92=T9v[d35].top + m5S;}}}c4S.ChartEngine.crosshairY=this.resolveY(S92);A9x.bottom=S92;c4S.ChartEngine.resizingPanel.top=S92;this.calculatePanelPercent(A9x);g4U.r2m();this.calculatePanelPercent(c4S.ChartEngine.resizingPanel);this.adjustPanelPositions();this.draw();this.savePanels();};c4S.ChartEngine.prototype.isPanelAboveChart=function(m6F){g4U.J8h();for(var N4c in this.panels){if(N4c == "chart"){return !!0;}if(N4c == m6F.name){return !![];}}return !!0;};c4S.ChartEngine.prototype.adjustPanelPositions=function(){var h91,B6w,D7X,r9z,I3b,i9Z,j3I,M0k,a2K,F9T,q1D,Z2Z,U6$,w7K,H7M,K9n,h7_,x1B,y5H,G99,f_z,v72,P$0,V5s,l2T,p0U,w2r;h91="stx-sho";h91+="w";B6w="adjus";B6w+="tPanelPos";B6w+="ition";B6w+="s";var {chart:D2O, panels:S_J}=this;if(D2O.tempCanvas){c4S.clearCanvas(D2O.tempCanvas,this);}if(this.runPrepend(B6w,arguments)){return;}D7X=0;r9z=D2O.canvasHeight;I3b=!({});i9Z=0;g4U.J8h();j3I=0;M0k=![];for(a2K in S_J){F9T=S_J[a2K];if(isNaN(F9T.percent) || F9T.percent <= +"0"){F9T.percent=0.05;}if(F9T.hidden)continue;i9Z+=F9T.percent;j3I++;if(F9T.soloing){M0k=!!"1";}}for(a2K in S_J){q1D=0;F9T=S_J[a2K];if(F9T.hidden){if(F9T.markerHolder){F9T.markerHolder.style.display="none";}continue;}if(this.manageTouchAndMouse){if(F9T.up){if(!I3b){I3b=!![];F9T.up.classList.remove("stx-show");}else {Z2Z="stx-sho";Z2Z+="w";if(this.displayIconsUpDown){F9T.up.classList.add(Z2Z);}}}if(F9T.solo){if(M0k){if(F9T.soloing && this.displayIconsSolo){F9T.solo.classList.add("stx-show");}else {F9T.solo.classList.remove("stx-show");}}else if(j3I == +"1"){F9T.solo.classList.remove("stx-show");}else if(j3I == 2 && !this.soloPanelToFullScreen){F9T.solo.classList.remove("stx-show");}else {U6$="stx";U6$+="-show";if(this.displayIconsSolo){F9T.solo.classList.add(U6$);}}}if(F9T.down){if(j3I == 1){w7K="st";w7K+="x-sh";w7K+="ow";F9T.down.classList.remove(w7K);}else {if(this.displayIconsUpDown){F9T.down.classList.add("stx-show");}}}if(F9T.edit){if(F9T.editFunction){F9T.edit.classList.add("stx-show");}else {F9T.edit.classList.remove("stx-show");}}if(F9T.close){H7M="s";H7M+="tx-show";K9n="st";K9n+="x-show";if(this.displayIconsClose){F9T.close.classList.add(K9n);}else {F9T.close.classList.remove(H7M);}}}F9T.percent=F9T.percent / i9Z;F9T.top=D7X;F9T.bottom=F9T.top + r9z * F9T.percent;F9T.height=F9T.bottom - F9T.top;if(F9T.chart.name == F9T.name){F9T.chart.top=F9T.top;F9T.chart.bottom=F9T.bottom;F9T.chart.height=F9T.height;}D7X=F9T.bottom;if(F9T.yaxisLHS){h7_=F9T.yaxisLHS.concat(F9T.yaxisRHS);for(var c1_=0;c1_ < h7_.length;c1_++){x1B="n";x1B+="o";x1B+="ne";y5H=h7_[c1_];if(y5H.zoom && y5H.height > 0){q1D=y5H.zoom / y5H.height;}this.adjustYAxisHeightOffset(F9T,y5H);y5H.height=y5H.bottom - y5H.top;if(q1D){y5H.scroll*=q1D * y5H.height / y5H.zoom;y5H.zoom=q1D * y5H.height;if(y5H.zoom > y5H.height){y5H.zoom=0;y5H.scroll=0;}}if(!y5H.high && y5H.high !== 0){y5H.high=100;y5H.low=0;y5H.shadow=100;}y5H.multiplier=y5H.height / y5H.shadow;if(y5H.position === x1B){this.calculateYAxisMargins(y5H);}}}if(F9T.holder){G99="p";G99+="x";f_z="p";f_z+="x";F9T.holder.style.right="0px";F9T.holder.style.top=F9T.top + "px";F9T.holder.style.left="0px";F9T.holder.style.height=F9T.height + "px";F9T.subholder.style.left=F9T.left + f_z;F9T.subholder.style.width=F9T.width + "px";F9T.subholder.style.top="0px";if(F9T.yAxis.height >= 0){F9T.subholder.style.height=F9T.yAxis.height + G99;}}}if(a2K && S_J[a2K].down){S_J[a2K].down.classList.remove(h91);}if(this.manageTouchAndMouse && j3I == 2 && !M0k && D2O.panel.solo){D2O.panel.solo.classList.add("stx-show");}if(D2O.panel){v72="p";v72+="x";if(M0k && this.soloPanelToFullScreen){P$0=D2O.canvasHeight - F9T.yAxis.bottom + +"12";}else {g4U.M8Y(0);var x6W=g4U.c6Y(43,11);P$0=D2O.canvasHeight - D2O.panel.yAxis.bottom + ("12" >> x6W);}V5s=this.controls;var {chartControls:a$m, home:o$h, notificationTray:j_s}=V5s;l2T=this.width - D2O.panel.right;if(a$m){g4U.C$o(22);a$m.style.bottom=g4U.d58(v72,P$0);}if(o$h){p0U="p";p0U+="x";g4U.M8Y(22);o$h.style.bottom=g4U.d58("px",P$0);g4U.M8Y(22);o$h.style.marginRight=g4U.d58(p0U,l2T);}if(j_s){w2r="p";w2r+="x";g4U.C$o(22);j_s.style.bottom=g4U.c6Y("px",P$0);g4U.M8Y(22);j_s.style.marginRight=g4U.d58(w2r,l2T);}}this.clearPixelCache();if(this.drawingObjects.length){this.adjustDrawings();}this.runAppend("adjustPanelPositions",arguments);};c4S.ChartEngine.prototype.createPanel=function(c9n,J3S,T$y,c9W,T_4,N6X){var J63,h$u,B7S,T1u,C$a;if(this.runPrepend("createPanel",arguments)){return;}if(!c9W){c9W="chart";}J63=this.chart.canvasHeight;if(!T$y){g4U.M8Y(38);T$y=g4U.d58(J63,0.2);}if(T$y > J63){g4U.M8Y(38);T$y=g4U.d58(J63,0.5);}g4U.M8Y(40);h$u=g4U.c6Y(J63,T$y);g4U.C$o(0);B7S=g4U.c6Y(1,h$u);T1u=!({});for(var a$i in this.panels){C$a=this.panels[a$i];C$a.percent*=B7S;if(C$a.soloing){T1u=!!({});}}this.stackPanel(c9n,J3S,h$u,c9W,T_4);this.panels[J3S].hidden=T1u;this.panels[J3S].exportable=!N6X;this.adjustPanelPositions();this.savePanels(!({}));this.runAppend("createPanel",arguments);return this.panels[J3S];};c4S.ChartEngine.prototype.modifyPanel=function(P$X,x09){var F0a,O$X,Y23,y07,z0r,q_1,H3w,o_9;F0a=P$X.name;var {studies:N_F}=this.layout;var {series:T77}=this.chart;var {name:i6Z, display:n0L, yAxis:D1c}=x09 || ({});if(!i6Z){i6Z=c4S.uniqueID();}if(!n0L){n0L=i6Z;}if(!D1c){D1c=P$X.yAxis;D1c.name=i6Z;}O$X={};for(var s_B in this.panels){if(s_B === P$X.name){Y23=this.panels[s_B];Y23.name=i6Z;Y23.display=n0L;Y23.yAxis=D1c;P$X=O$X[i6Z]=Y23;if(this.moveMarkers && F0a !== i6Z){this.moveMarkers(F0a,i6Z);}}else {O$X[s_B]=this.panels[s_B];}}this.panels=O$X;y07=![];for(var W3E in N_F){z0r=N_F[W3E];if(z0r.panel === F0a){z0r.panel=i6Z;if(z0r.parameters && z0r.parameters.panelName){y07=!!"1";z0r.parameters.panelName=i6Z;}}}for(var h4W in T77){if(T77[h4W].parameters.panel === F0a){y07=!0;q_1={panel:i6Z};if(T77[h4W].parameters.yAxis && T77[h4W].parameters.yAxis.name === F0a){q_1.yAxis=D1c;}this.modifySeries(h4W,q_1,!"");}}if(y07){this.changeOccurred("layout");}H3w=!"1";for(var t2K=0;t2K < this.drawingObjects.length;t2K++){o_9=this.drawingObjects[t2K];if(F0a === o_9.panelName){o_9.panelName=i6Z;H3w=!![];}}if(H3w){this.changeOccurred("vector");}this.calculateYAxisPositions();};c4S.ChartEngine.prototype.setPanelHeight=function(a8W,i_D){var J5R,c4J,Q53,E0l;if(!i_D){return;}if(Object.values(this.panels).slice(-1)[0] === a8W){i_D+=this.xaxisHeight;}var {canvasHeight:R0a}=this.chart;var {percent:U7x}=a8W;g4U.M8Y(40);J5R=g4U.c6Y(R0a,i_D);g4U.C$o(0);c4J=g4U.c6Y(1,U7x);g4U.M8Y(145);Q53=g4U.c6Y(64,J5R,"1");g4U.M8Y(40);E0l=g4U.d58(Q53,c4J);Object.values(this.panels).forEach(d5X=>{var z$L,s0I,w7U;g4U.r2m();g4U.C$o(74);z$L=-g4U.d58("390080432",16);s0I=-522222260;w7U=+"2";for(var W$f=1;g4U.O$R(W$f.toString(),W$f.toString().length,35159) !== z$L;W$f++){d5X.percent%=E0l;w7U+=2;}if(g4U.q2D(w7U.toString(),w7U.toString().length,9733) !== s0I){d5X.percent/=E0l;}});a8W.percent=J5R;this.adjustPanelPositions();this.savePanels();};c4S.ChartEngine.prototype.electNewPanelOwner=function(s2N,B8W){g4U.r2m();var a7U,L4M,U5P,L1V,f$z,L$9,Q$a,x5x,V2Q,u6a,Z48;function e9U(M0n){return M0n.name != L4M.name;}if(typeof s2N == "string"){s2N=this.panels[s2N];}L4M=s2N.yAxis;if(s2N && s2N != this.chart.panel){U5P=s2N.yAxis;L1V=U5P.studies[0];if(!L1V || L1V == L4M.name){L1V=U5P.renderers[0];}if(!L1V || L1V == L4M.name){L1V=U5P.studies[1];}if(!L1V){L1V=U5P.renderers[1];}if(B8W){U5P=s2N.yAxis=B8W;f$z=-2012665674;L$9=-592765991;Q$a=2;for(var T9Z=1;g4U.q2D(T9Z.toString(),T9Z.toString().length,"84711" * 1) !== f$z;T9Z++){a7U=B8W.name;Q$a+=2;}if(g4U.q2D(Q$a.toString(),Q$a.toString().length,21447) !== L$9){a7U=B8W.name;}a7U=B8W.name;}else if(!L1V){if(s2N.yaxisLHS){x5x=s2N.yaxisRHS.concat(s2N.yaxisLHS).filter(e9U);V2Q=x5x[0];for(var F96="0" >> 64;F96 < x5x.length;F96++){if(!x5x[F96].position){V2Q=x5x[F96];break;}}if(V2Q){U5P=s2N.yAxis=V2Q;a7U=V2Q.studies[0] || V2Q.renderers[0];}}}else {U5P=this.addYAxis(s2N,new c4S.ChartEngine.YAxis({name:L1V,position:U5P.position}));U5P.renderers=s2N.yAxis.renderers;U5P.studies=s2N.yAxis.studies;a7U=L1V;}if(a7U){L1V=a7U;if(L4M.name != s2N.name){L1V=s2N.name;}Z48=this.layout.studies;if(Z48 && Z48[a7U]){u6a=Z48[a7U].inputs.display;}this.modifyPanel(s2N,{name:L1V,display:u6a || a7U,yAxis:U5P});this.deleteYAxisIfUnused(s2N,L4M);this.calculateYAxisMargins(this.panels[L1V].yAxis);}else {this.checkForEmptyPanel(s2N);}}return a7U;};c4S.ChartEngine.prototype.configurePanelControls=function(e4M){var u4H,D7_,Y9m,R6C,k2F,H8j,j2s;u4H=".stx-ic";u4H+="o-";u4H+="edit";D7_=".stx";D7_+="-ico-down";Y9m=e4M.icons;if(!Y9m){return;}R6C=e4M.name == e4M.chart.name;Y9m.classList.add("stx-show");e4M.title=Y9m.querySelector(".stx-panel-title");e4M.up=Y9m.querySelector(".stx-ico-up");if(e4M.up){e4M.up=e4M.up.parentNode;}e4M.solo=Y9m.querySelector(".stx-ico-focus");if(e4M.solo){e4M.solo=e4M.solo.parentNode;}e4M.down=Y9m.querySelector(D7_);if(e4M.down){e4M.down=e4M.down.parentNode;}e4M.edit=Y9m.querySelector(u4H);if(e4M.edit){e4M.edit=e4M.edit.parentNode;}e4M.close=Y9m.querySelector(".stx-ico-close");if(e4M.close){e4M.close=e4M.close.parentNode;}if(e4M.title){e4M.title.innerHTML="";if(e4M.display){e4M.title.appendChild(document.createTextNode(e4M.display));}if(R6C){k2F="stx-chart-";k2F+="panel";e4M.title.classList.add("chart-title");Y9m.classList.add(k2F);}}if(!c4S.touchDevice || c4S.isSurface){this.makeModal(Y9m);}if(e4M.handle){if(!c4S.touchDevice || c4S.isSurface){e4M.handle.onmouseover=(function(R9g){return function(){R9g.hideCrosshairs();};})(this);}if(!c4S.touchDevice || c4S.isSurface){e4M.handle.onmouseout=(function(W7c){return function(){g4U.J8h();W7c.showCrosshairs();};})(this);}H8j=function(y_H,A2L){return function(q5R){if(c4S.ChartEngine.resizingPanel || y_H.openDialog !== ""){return;}y_H.grabHandle(A2L);};};if(c4S.isSurface){e4M.handle.onpointerdown=H8j(this,e4M);}else {e4M.handle.onmousedown=H8j(this,e4M);}if(c4S.touchDevice){e4M.handle.ontouchstart=H8j(this,e4M);}}if(e4M.up){c4S.safeClickTouch(e4M.up,(function(d$Y,n4T){g4U.r2m();return function(){g4U.r2m();d$Y.panelUp(n4T);};})(this,e4M));}if(e4M.down){c4S.safeClickTouch(e4M.down,(function(c4h,u3D){g4U.J8h();return function(){g4U.r2m();c4h.panelDown(u3D);};})(this,e4M));}if(e4M.solo){c4S.safeClickTouch(e4M.solo,(function(N7b,L50){g4U.r2m();return function(){g4U.r2m();N7b.panelSolo(L50);};})(this,e4M));}if(e4M.close){if(e4M.name == "chart"){j2s="non";j2s+="e";e4M.close.style.display=j2s;;}else {c4S.safeClickTouch(e4M.close,(function(Y4t,h60){return function(){g4U.J8h();Y4t.panelClose(h60);};})(this,e4M));}}};c4S.ChartEngine.prototype.stackPanel=function(o2M,z_G,L7g,R7_,X2L){var A2v,e9m,J3U,T3x,Y4n,F_D,U_c;A2v="d";A2v+="i";A2v+="v";e9m="d";e9m+="i";e9m+="v";J3U="cha";J3U+="rt";if(this.runPrepend("stackPanel",arguments)){return;}if(!R7_){R7_=J3U;}T3x=this.charts[R7_];g4U.M8Y(106);Y4n=g4U.c6Y(z_G,R7_);if(Y4n){o2M=T3x.symbol;if(T3x.symbolDisplay){o2M=T3x.symbolDisplay;}if(!X2L){X2L=T3x.yAxis;}}F_D=this.panels[z_G]=new c4S.ChartEngine.Panel(z_G,X2L);if(!Y4n && T3x.yAxis && F_D.yAxis.position == T3x.yAxis.position){F_D.yAxis.width=T3x.yAxis.width;;}if(Y4n && !T3x.panel){T3x.panel=F_D;}F_D.percent=L7g;F_D.chart=T3x;F_D.display=o2M;F_D.holder=c4S.newChild(this.container,e9m,"stx-holder");F_D.subholder=c4S.newChild(F_D.holder,A2v,"stx-subholder");F_D.subholder.style.zIndex=1;F_D.holder.panel=F_D;U_c=Y4n?"stx-panel-chart":"stx-panel-study";F_D.holder.classList.add(U_c);if(this.controls.handleTemplate && this.manageTouchAndMouse){F_D.handle=this.controls.handleTemplate.cloneNode(!![]);this.container.appendChild(F_D.handle);F_D.handle.panel=F_D;}if(this.controls.iconsTemplate){F_D.icons=this.controls.iconsTemplate.cloneNode(!![]);F_D.subholder.appendChild(F_D.icons);this.configurePanelControls(F_D);}if(!this.currentlyImporting){this.resizeCanvas();}this.runAppend("stackPanel",arguments);};c4S.ChartEngine.prototype.setPanelEdit=function(p18,x_W){p18.editFunction=x_W;if(p18.edit){c4S.safeClickTouch(p18.edit,x_W);}this.adjustPanelPositions();};c4S.ChartEngine.prototype.drawPanels=function(){var r2E,E0H,h$S,N4M,w63,s7y,b4q,O6J,a0R,u6T,T40,U79;r2E="draw";r2E+="P";r2E+="a";r2E+="nels";g4U.J8h();if(this.runPrepend("drawPanels",arguments)){return;}E0H=!!0;for(var k3E in this.panels){h$S=this.panels[k3E];h$S.state={};N4M=this.translateIf(h$S.display);if(h$S.title && h$S.title.textContent != N4M){h$S.title.innerHTML="";h$S.title.appendChild(document.createTextNode(N4M));}if(h$S.icons){h$S.icons.classList.add("stx-show");}if(h$S.hidden){w63="non";w63+="e";if(h$S.icons){h$S.icons.classList.remove("stx-show");}if(h$S.handle){h$S.handle.style.display="none";}h$S.holder.style.display=w63;continue;}else {if(h$S.name != "chart"){s7y=this.manageTouchAndMouse;if(h$S.up){h$S.up.style.display=this.displayIconsUpDown && s7y?"":"none";}if(h$S.down){h$S.down.style.display=this.displayIconsUpDown && s7y?"":"none";}if(h$S.solo){h$S.solo.style.display=this.displayIconsSolo && s7y?"":"none";}if(h$S.close){h$S.close.style.display=this.displayIconsClose && s7y?"":"none";}if(h$S.edit){h$S.edit.style.display=h$S.editFunction && s7y?"":"none";}}h$S.holder.style.display="block";}if(h$S.displayEdgeIfPadded){b4q="se";b4q+="g";b4q+="ment";O6J=Math.round(h$S.left) + 0.5;a0R=h$S.yAxis.top - 0.5;u6T=h$S.yAxis.bottom + 0.5;if(h$S.yaxisCalculatedPaddingLeft && !h$S.yaxisTotalWidthLeft){this.plotLine(O6J,O6J,a0R,u6T,this.canvasStyle("stx_grid_border"),b4q,this.chart.context,!!0,{lineWidth:1});}g4U.M8Y(58);var Y1R=g4U.d58(3,5,4,16,5);O6J=Math.round(h$S.right) + "0.5" * Y1R;if(h$S.yaxisCalculatedPaddingRight && !h$S.yaxisTotalWidthRight){this.plotLine(O6J,O6J,a0R,u6T,this.canvasStyle("stx_grid_border"),"segment",this.chart.context,!!"",{lineWidth:1});}}if(!E0H){if(h$S.handle){h$S.handle.style.display="none";}E0H=!!({});continue;}T40=h$S.top;T40=Math.round(T40) + 0.5;this.plotLine(h$S.left - 0.5,h$S.right + 0.5,T40,T40,this.canvasStyle("stx_panel_border"),"segment",this.chart.context,!({}),{});if(h$S.handle){if(!this.displayPanelResize){U79="non";U79+="e";h$S.handle.style.display=U79;}else {h$S.handle.style.display="";}g4U.M8Y(81);var C$P=g4U.c6Y(3,19,6,340);h$S.handle.style.top=T40 - h$S.handle.offsetHeight / C$P + "px";;}}this.runAppend(r2E,arguments);};};k4=b0E=>{var V3n;V3n=b0E.CIQ;V3n.ChartEngine.isDailyInterval=function(U1C){var k_y,a8x;k_y="w";x2dci.J8h();k_y+="e";k_y+="e";k_y+="k";a8x="d";a8x+="a";a8x+="y";if(U1C == a8x){return !![];}if(U1C == k_y){return !0;}if(U1C == "month"){return !!"1";}return !({});};V3n.ChartEngine.prototype.setPeriodicity=function(L_r,z_5){var E_N=x2dci;var S2x,G6z,s6C,x43,e$J,M$T,Q5$,w2t,K9b,C9Q,k_E,g8G,a5q,q_O,x36,N3E,G72;S2x="set";S2x+="P";S2x+="e";S2x+="riodicity";if(this.runPrepend(S2x,arguments)){return;}if(typeof arguments[0] !== "object"){L_r={period:arguments[0],interval:arguments[1],timeUnit:arguments[2]};E_N.C$o(97);var o4M=E_N.c6Y(4,10,121,3,1);z_5=arguments[arguments.length - o4M];if(arguments.length === 3){L_r.timeUnit=undefined;}}var {period:H6g, interval:D3w, timeUnit:c5R}=L_r;if(typeof z_5 !== "function"){z_5=null;}({period:H6g, interval:D3w, timeUnit:c5R}=V3n.cleanPeriodicity(H6g,D3w,c5R));var {layout:Q8n}=this;Q8n.setSpan={};Q8n.range={};function R6V(){var f7t;f7t="p";f7t+="eriodi";f7t+="ci";f7t+="ty";x43.dispatch(f7t,e$J);if(z_5){z_5(null);}}this.chart.inflectionPoint=null;G6z=![];if(this.chart.symbol){G6z=this.needDifferentData({period:H6g,interval:D3w,timeUnit:c5R});}var {candleWidth:L$8, periodicity:S_A, interval:X_z, timeUnit:x5j}=Q8n;s6C={prvPeriodicity:S_A,prvInterval:X_z,prvTimeUnit:x5j};Q8n.periodicity=H6g;Q8n.interval=D3w;Q8n.timeUnit=c5R;x43=this;e$J={stx:x43,differentData:G6z,prevPeriodicity:s6C};if(G6z){M$T="la";M$T+="yout";this.changeOccurred(M$T);this.clearCurrentMarketData();if(this.quoteDriver){for(var D5P in this.charts){Q5$=this.charts[D5P];if(Q5$.symbol){if(this.displayInitialized){this.quoteDriver.newChart({symbol:Q5$.symbol,symbolObject:Q5$.symbolObject,chart:Q5$},R6V);}else {this.loadChart(Q5$.symbol,{chart:Q5$},R6V);}}}}else if(this.dataCallback){this.dataCallback();R6V();}else {console.log("cannot change periodicity because neither dataCallback or quoteDriver are set");}this.home();return;}for(var l8q in this.charts){w2t=this.charts[l8q];var {dataSegment:x0E, dataSet:R_i, maxTicks:b91, scroll:z3z}=w2t;K9b=x0E?x0E.length:+"0";C9Q=R_i?R_i.length:"0" * 1;k_E=void +"0";g8G=Math.round(w2t.maxTicks / 2);this.setCandleWidth(L$8,w2t);a5q=!!1;q_O=!"1";if(z3z <= b91){a5q=!({});}else if(x0E && !x0E[g8G]){a5q=!({});E_N.C$o(0);q_O=E_N.d58(z3z,C9Q);;}if(a5q && K9b > 0){if(b91 < (Math.round(this.chart.width / L$8 - +"0.499") - ("1" << 64)) / 2){E_N.C$o(0);g8G=E_N.d58(K9b,1);}if(g8G >= K9b){k_E=x0E[K9b - 1].DT;E_N.C$o(0);g8G=E_N.d58(K9b,1);}else {k_E=x0E[g8G].DT;}}this.createDataSet();if(a5q){if(K9b > 0){for(var M63=C9Q - 1;M63 >= 0;M63--){x36=R_i[M63].DT;if(x36.getTime() < k_E.getTime()){E_N.C$o(111);w2t.scroll=E_N.d58(1,C9Q,g8G,M63);break;}}}}else if(!q_O){N3E=Math.round(this.preferences.whitespace / L$8);E_N.C$o(30);w2t.scroll=E_N.d58(N3E,b91,1);;}else {w2t.scroll=R_i.length + q_O;;}}if(this.displayInitialized){this.draw();}this.changeOccurred("layout");if(this.quoteDriver){for(var Y_9 in this.charts){G72=this.charts[Y_9];if(G72.symbol && (G72.moreAvailable || !G72.upToDate)){this.quoteDriver.checkLoadMore(G72);}}}R6V();this.runAppend("setPeriodicity",arguments);};V3n.ChartEngine.prototype.needDifferentData=function(R9i){var i8v,w4v,O80,X_F,Y1F,T74;i8v="min";i8v+="ute";w4v="minu";w4v+="t";w4v+="e";O80=this.layout;X_F=V3n.ChartEngine.isDailyInterval(R9i.interval);Y1F=V3n.ChartEngine.isDailyInterval(O80.interval);T74=!({});if(this.dontRoll || !Y1F){if(O80.interval != R9i.interval){T74=!!"1";}}else {if(X_F != Y1F){T74=!!({});}}if(!X_F && !R9i.timeUnit){R9i.timeUnit=w4v;}if(!Y1F && !O80.timeUnit){O80.timeUnit=i8v;}if(R9i.timeUnit != O80.timeUnit){T74=!!({});}x2dci.J8h();if(!this.masterData || !this.masterData.length){T74=!"";}return T74;};V3n.ChartEngine.prototype.getPeriodicity=function(){var l$n,s1b,H2Z;l$n=this.layout;s1b=l$n.interval;x2dci.r2m();H2Z=l$n.timeUnit;if(!H2Z){H2Z=s1b;s1b=1;}return {period:l$n.periodicity,interval:s1b,timeUnit:H2Z};};};C1=q_S=>{var V2m=x2dci;var X85;X85=q_S.CIQ;X85.ChartEngine.prototype.isHistoricalMode=function(){var H2d,C7N,l1G,r88,V2s,m7B,M06;H2d=new Date();C7N=!![];l1G=this.masterData;if(!this.isHistoricalModeSet){return !!0;}if(l1G.length){r88="D";r88+="T";V2s=this.getFirstLastDataRecord(l1G,r88,!"");m7B=this.standardMarketIterator(V2s.DT);C7N=(m7B?m7B.next():V2s.DT) <= H2d;if(C7N && X85.ChartEngine.isDailyInterval(m7B.interval)){M06=this.chart.market.getOpen();if(M06 && H2d < M06){V2m.M8Y(19);H2d.setHours(0,V2m.d58(0,"0"),0,0);if(+H2d == +m7B.begin){C7N=![];}}}}return C7N;};V2m.r2m();X85.ChartEngine.prototype.isHome=function(){var O7U,r0G,j4a;O7U=this.chart;r0G=O7U.dataSet;j4a=O7U.animatingHorizontalScroll;V2m.M8Y(0);V2m.r2m();var w40=V2m.c6Y(12,10);V2m.C$o(36);var g10=V2m.d58(31,11,47,517);return this.pixelFromTick(r0G.length - (j4a?w40:"1" >> g10),O7U) < O7U.width + O7U.panel.left;;};X85.ChartEngine.prototype.getPreviousBar=function(Y2C,T4t,g02){return this.getNextBarInternal(Y2C,T4t,g02,-+"1");};X85.ChartEngine.prototype.getNextBar=function(P$U,U1a,b_R){return this.getNextBarInternal(P$U,U1a,b_R,1);};X85.ChartEngine.prototype.getNextBarInternal=function(k45,R3c,Y16,E1w){var g4T,U_u,g3h,z5L;g4T=k45.dataSegment && k45.dataSegment[Y16];if(g4T){U_u=g4T.tick;while(U_u > 0 && U_u < k45.dataSet.length){V2m.M8Y(22);U_u=V2m.c6Y(E1w,U_u);g3h=k45.dataSet[U_u];if(g3h){z5L=X85.existsInObjectChain(g3h,R3c);if(z5L && z5L.obj[z5L.member]){return g3h;}}}}return null;};X85.ChartEngine.prototype.getFirstLastDataRecord=function(d8c,U8d,w7d){var p7r;if(d8c && d8c.length){p7r=w7d?d8c.length - 1:0;while(p7r >= 0 && p7r < d8c.length){if(d8c[p7r] && typeof d8c[p7r][U8d] != "undefined"){return d8c[p7r];}if(w7d){p7r--;}else {p7r++;}}}return null;};X85.ChartEngine.prototype.leftTick=function(){return this.chart.dataSet.length - this.chart.scroll;};X85.ChartEngine.prototype.getNextInterval=function(v_s,k8f,C9S){var O2N;if(!k8f){k8f=1;}if(C9S !== !({})){C9S=!0;}O2N=this.standardMarketIterator(v_s,C9S?this.dataZone:this.displayZone);if(!O2N){return v_s;}if(k8f < +"1"){V2m.C$o(146);return O2N.previous(V2m.d58(k8f,1));}return O2N.next(k8f);};X85.ChartEngine.prototype.standardMarketIterator=function(a4o,n8O,U8U){var y5w,o_E;y5w=U8U || this.chart;if(!y5w.market){return null;}o_E={begin:a4o,interval:this.layout.interval,periodicity:this.layout.interval == "tick"?this.chart.xAxis.futureTicksInterval:this.layout.periodicity,timeUnit:this.layout.timeUnit,outZone:n8O};return y5w.market.newIterator(o_E);};};t_=Q8V=>{var H4T=x2dci;var v21,J59;if(!Q8V.SplinePlotter){Q8V.SplinePlotter={};}v21=Q8V.CIQ;J59=Q8V.SplinePlotter;v21.ChartEngine.prototype.draw=function(){var v4O,J_6,l_b,y$_,G1a,I6g,w9M,A91,M0E,J02,t4y,r25,h$k,B9X;v4O="dr";v4O+="a";v4O+="w";J_6="n";J_6+="o";J_6+="n";J_6+="e";this.debug();l_b=this.chart;y$_=this.layout;if(!l_b.canvas){return;}if(!l_b.dataSet){return;}if(!l_b.canvasHeight){return;}H4T.M8Y(85);var u_I=H4T.c6Y(0,15,13,7,7);this.offset=y$_.candleWidth * this.candleWidthPercent / u_I;v21.clearCanvas(l_b.canvas,this);if(!this.masterData){return;}if(this.runPrepend("draw",arguments)){return;}if(!this.defaultColor){this.getDefaultColor();}this.vectorsShowing=![];this.drawPanels();this.yAxisLabels=[];this.correctIfOffEdge();this.createDataSegment();this.setBaselines(l_b);w9M=this.createXAxis(l_b);this.initializeDisplay(l_b);this.drawXAxis(l_b,w9M);try{this.renderYAxis(l_b);}catch(k8a){var L86;L86="reboo";L86+="t draw";if(k8a && k8a.message === L86){return this.draw();}throw k8a;}l_b.tmpWidth=Math.floor(y$_.candleWidth * this.candleWidthPercent);if(l_b.tmpWidth % 2 === "0" * 1){l_b.tmpWidth+=1;if(l_b.tmpWidth > y$_.candleWidth){H4T.M8Y(74);l_b.tmpWidth-=H4T.c6Y("2",2);}}H4T.r2m();if(l_b.tmpWidth < 0.5){l_b.tmpWidth=0.5;}for(G1a in this.plugins){I6g=this.plugins[G1a];if(I6g.display){if(I6g.drawUnder){I6g.drawUnder(this,l_b);}}}if(l_b.legend){l_b.legend.colorMap=null;}if(this.controls.baselineHandle){this.controls.baselineHandle.style.display=J_6;}this.rendererAction(l_b,"underlay");v21.getFn("Studies.displayStudies")(this,l_b,!!"1");this.displayChart(l_b);v21.getFn("Studies.displayStudies")(this,l_b,!({}));this.rendererAction(l_b,"overlay");if(l_b.legend && l_b.legend.colorMap && l_b.legendRenderer){A91=-914919967;M0E=761783298;H4T.C$o(74);J02=H4T.d58("2",2);for(var Q9G=1;H4T.O$R(Q9G.toString(),Q9G.toString().length,"98158" << 0) !== A91;Q9G++){l_b.legendRenderer(this,{chart:l_b,legendColorMap:l_b.legend.colorMap,coordinates:{x:l_b.legend.x,y:l_b.legend.y % l_b.panel.yAxis.top}});J02+=2;}if(H4T.q2D(J02.toString(),J02.toString().length,"41546" | 66) !== M0E){l_b.legendRenderer(this,{chart:l_b,legendColorMap:l_b.legend.colorMap,coordinates:{x:l_b.legend.x,y:l_b.legend.y + l_b.panel.yAxis.top}});}}for(G1a in this.plugins){I6g=this.plugins[G1a];if(I6g.display){if(I6g.drawOver){I6g.drawOver(this,l_b);}}}for(var L92 in this.panels){if(!this.panels[L92].hidden){this.plotYAxisText(this.panels[L92]);}}for(var N2V=0;N2V < this.yAxisLabels.length;N2V++){t4y=this.yAxisLabels[N2V];if(t4y.src == "series" && t4y.args[6] && t4y.args[6].drawSeriesPriceLabels === !1)continue;this.createYAxisLabel.apply(this,t4y.args);}if(this.createCrosshairs){this.createCrosshairs();}if(this.drawVectors){this.drawVectors();}this.drawCurrentHR();this.displayInitialized=!!({});r25=this.controls;if(r25){h$k="n";h$k+="one";B9X=this.manageTouchAndMouse && (!this.mainSeriesRenderer || !this.mainSeriesRenderer.nonInteractive);if(r25.home){r25.home.style.display=B9X && !this.isHome()?"block":"none";}if(r25.chartControls){r25.chartControls.style.display=B9X?"block":h$k;}}if(v21.Marker){this.positionMarkers();}if(this.quoteDriver && this.animations.zoom.hasCompleted){this.quoteDriver.checkLoadMore(l_b);}this.runAppend(v4O,arguments);this.makeAsyncCallbacks();};v21.ChartEngine.prototype.setSeriesRenderer=function(f9r){var {baseline:e2o, name:V8T, panel:d6b, yAxis:x$c}=f9r.params;if(this.chart.seriesRenderers[V8T]){return this.chart.seriesRenderers[V8T];;}if(x$c){f9r.params.yAxis=this.addYAxis(this.panels[d6b],x$c);this.resizeChart();}H4T.r2m();f9r.stx=this;this.chart.seriesRenderers[V8T]=f9r;if(e2o){this.registerBaselineToHelper(f9r);}return f9r;};v21.ChartEngine.prototype.setMainSeriesRenderer=function(T2N){var F7Y,u$6,O8U,J9h,I0C,T_V;F7Y="sta";F7Y+="nda";F7Y+="loneBars";u$6="highLow";u$6+="Bars";O8U="o";O8U+="hl";O8U+="c";var {chartType:C7o, aggregationType:W_f}=this.layout;var {chart:R8Y}=this;var {custom:G08}=R8Y;J9h=this.mainSeriesRenderer;I0C=this.displayInitialized;if(J9h){if(T2N){this.setMasterData();}this.displayInitialized=!({});J9h.removeAllSeries();this.removeSeriesRenderer(J9h);J9h=this.mainSeriesRenderer=null;}if(G08 && G08.chartType){C7o=G08.chartType;}if(C7o == "none"){return;}if(W_f && W_f != O8U){C7o=W_f;}T_V=v21.Renderer.produce(C7o,{panel:R8Y.panel.name,name:"_main_series",highlightable:!1,useChartLegend:!![]});if(T_V){this.setSeriesRenderer(T_V).attachSeries(null,{display:R8Y.symbol});J9h=this.mainSeriesRenderer=T_V;}this.displayInitialized=I0C;[u$6,F7Y,"barsHaveWidth"].forEach((function(e98){H4T.r2m();R8Y[e98]=this.mainSeriesRenderer && this.mainSeriesRenderer[e98];}).bind(this));};v21.ChartEngine.prototype.removeSeriesRenderer=function(D6A){var u9t;H4T.J8h();var {baseline:E0M, name:T_o}=D6A.params;u9t=this.controls[`${T_o} baseline-handle`];if(E0M){this.removeBaselineFromHelper(D6A);if(u9t){this.container.removeChild(u9t);delete this.controls[u9t];}}delete this.chart.seriesRenderers[T_o];};v21.ChartEngine.prototype.getSeriesRenderer=function(M_U){return this.chart.seriesRenderers[M_U];};v21.ChartEngine.prototype.getRendererFromSeries=function(w7D){var F2a;F2a=this.chart.seriesRenderers;H4T.J8h();for(var i_z in F2a){for(var U2j in F2a[i_z].seriesParams){if(F2a[i_z].seriesParams[U2j].id == w7D){return F2a[i_z];}}}return null;};v21.ChartEngine.prototype.startClip=function(c8m,q6C){var t1v,z4V,D_K,V27,t1I;if(!c8m){c8m=this.chart.panel.name;}t1v=this.panels[c8m];z4V=t1v.yAxis;D_K=this.chart;D_K.context.save();D_K.context.beginPath();V27=t1v.left;t1I=t1v.width;if(q6C){V27=0;t1I=this.width;}else if(t1v.yaxisLHS && t1v.yaxisLHS.length){V27++;t1I--;}D_K.context.rect(V27,z4V.top,t1I,z4V.height);D_K.context.clip();};v21.ChartEngine.prototype.endClip=function(){H4T.r2m();this.chart.context.restore();};v21.ChartEngine.prototype.setLineStyle=function(b4Y,o3c){var Q3S,a$R;Q3S={};if(b4Y && typeof b4Y == "object"){Q3S=b4Y;}else {Q3S.color=b4Y;}if(!Q3S.color && !Q3S.pattern && !Q3S.width && !Q3S.baseColor){Q3S=null;}if(!o3c){o3c=this.chart;}a$R=1;if(Q3S && Q3S.width){a$R=Q3S.width;}if(Q3S && Q3S.pattern){Q3S.pattern=v21.borderPatternToArray(a$R,Q3S.pattern);}o3c.lineStyle=Q3S;};v21.ChartEngine.prototype.setGapLines=function(s0A,P1G){var b22;if(!P1G){P1G=this.chart;}b22={};if(s0A && typeof s0A == "object"){b22=s0A;}else if(typeof s0A === "boolean"){return P1G.gaplines=s0A;}else {b22.color=s0A;}if(!b22.color && !b22.pattern && !b22.fillMountain){b22=null;}if(b22 && b22.pattern){b22.pattern=v21.borderPatternToArray(b22.width,b22.pattern);}if(b22 && b22.width <= 0){b22.width=null;}P1G.gaplines=b22;};v21.ChartEngine.prototype.getGapColorFunction=function(T0V,b6D,x85,U$7,L8C){if(typeof x85 != "object"){x85={color:x85};}return function(o8B,u_O,R$k){var B$b,u_l;B$b=L8C?L8C(o8B,u_O,R$k):x85;if(B$b.color){B$b=B$b.color;}H4T.r2m();u_l=u_O[T0V];if(!u_l && u_l !== 0){u_l=u_O[b6D];}if(!R$k && (u_l || u_l === 0)){return {color:B$b,pattern:x85.pattern,width:x85.width};}if(!U$7){return null;}if(typeof U$7 != "object"){if(typeof U$7 == "string"){U$7={color:U$7};}else {U$7={};}}return {color:U$7.color || B$b,pattern:U$7.pattern || x85.pattern,width:U$7.width || x85.width};};};v21.ChartEngine.prototype.drawLineChart=function(Z15,W36,y9q,c2m){var e9q,W9C,S$t,i9O,j03,s84,T2W,U0c,D$i,s3p,a06,r8W,J8A;e9q="C";H4T.r2m();e9q+="lo";e9q+="se";W9C=this.chart;S$t=W9C.context;i9O=W9C.lineStyle || ({});j03=this.canvasStyle(W36);if(!c2m){c2m={};}this.startClip(Z15.name);s84=c2m.width || i9O.width || j03.width;if(s84 && parseInt(s84,10) <= 25){S$t.lineWidth=Math.max(1,v21.stripPX(s84));}else {S$t.lineWidth=+"1";}c2m.pattern=c2m.pattern || i9O.pattern || j03.borderTopStyle;c2m.pattern=v21.borderPatternToArray(S$t.lineWidth,c2m.pattern);this.canvasColor(W36);T2W=c2m.color || i9O.color;if(T2W){U0c="a";U0c+="u";U0c+="to";if(T2W == U0c){T2W=this.defaultColor;}if(c2m.opacity && c2m.opacity !== 1){T2W=v21.hexToRgba(v21.colorToHex(T2W),parseFloat(c2m.opacity));}S$t.strokeStyle=T2W;}c2m.skipProjections=!"";D$i=c2m.field || W9C.defaultPlotField;s3p=c2m.subField || W9C.defaultPlotField || e9q;a06=c2m.gapDisplayStyle;if(!a06 && a06 !== !!""){a06=c2m.gaps;}if(!a06 && a06 !== ![]){a06=W9C.gaplines;}if(!a06){a06="transparent";}c2m.gapDisplayStyle=a06;r8W=this.getGapColorFunction(D$i,s3p,{color:S$t.strokeStyle,pattern:c2m.pattern,width:S$t.lineWidth},a06,y9q);if(Z15.chart.tension){c2m.tension=Z15.chart.tension;}J8A=this.plotDataSegmentAsLine(D$i,Z15,c2m,r8W);if(!J8A.colors.length){J8A.colors.push(S$t.strokeStyle);}S$t.lineWidth=1;this.endClip();return c2m.returnObject?J8A:J8A.colors;};v21.ChartEngine.prototype.drawChannelChart=function(J$F,A88,i_3){var t3l,X$M,i4W,j0M,N8N,B0e,v2_,q8$,u1z,X5f,g84,H47;t3l="subFi";t3l+="eld";X$M="H";X$M+="igh";i4W=v21.clone(i_3);i4W.color=i_3.color;j0M=this.drawLineChart(J$F,i4W.style,A88,i4W);N8N=i4W.border_color_up || this.getCanvasColor("stx_channel_up");B0e=i4W.border_color_down || this.getCanvasColor("stx_channel_down");i4W[i_3.field?"subField":"field"]=i4W.field_high || X$M;i4W.color=N8N;v2_=this.drawLineChart(J$F,i4W.style,A88,i4W);i4W[i_3.field?t3l:"field"]=i4W.field_low || "Low";i4W.color=B0e;q8$=this.drawLineChart(J$F,i4W.style,A88,i4W);i4W[i_3.field?"subField":"field"]=i_3.subField || this.chart.defaultPlotField || "Close";X5f=[];g84=[];for(u1z=0;u1z < v2_.points.length;u1z+=2){X5f.push([v2_.points[u1z],v2_.points[u1z + 1]]);}for(u1z=0;u1z < q8$.points.length;u1z+=2){g84.push([q8$.points[u1z],q8$.points[u1z + +"1"]]);}H47=this.chart.context.lineWidth / +"2";for(u1z=j0M.points.length - 2;u1z >= 0;u1z-=2){X5f.push([j0M.points[u1z],j0M.points[u1z + 1] - H47]);g84.push([j0M.points[u1z],j0M.points[u1z + 1] + H47]);}this.startClip(J$F.name);i4W.color=N8N;v21.fillArea(this,X5f,i4W);i4W.color=B0e;v21.fillArea(this,g84,i4W);this.endClip();j0M.colors=j0M.colors.concat(v2_.colors).concat(q8$.colors);H4T.J8h();return i_3.returnObject?j0M:j0M.colors;};v21.ChartEngine.prototype.connectTheDots=function(e0E,A1J,A$D,P4s,u0Z,d8E){var d63,B4I,Q9E,S7F,A$0,w2Z,t0y,P_J,U6f,H5$,W$X,x6G,Z_k,P83,O4Q,r6b,S08,x5V,W92,G6I;H4T.J8h();if(!d8E){d8E={};}if(d8E.pattern == "none"){return;}if(u0Z === !""){u0Z=this.chart.panel;}if(P4s === null || typeof P4s == "undefined"){P4s=this.chart.context;}if(e0E.length < 4){return;}d63=0;B4I=this.chart.canvasHeight;Q9E=0;S7F=this.chart.width;if(u0Z){B4I=u0Z.yAxis.bottom;d63=u0Z.yAxis.top;}P4s.lineWidth=+"1.1";if(typeof A1J == "object"){P4s.strokeStyle=A1J.color;if(A1J.opacity){P4s.globalAlpha=A1J.opacity;}else {P4s.globalAlpha=1;}P4s.lineWidth=v21.stripPX(A1J.width);}else {if(!A1J || A1J == "auto" || v21.isTransparent(A1J)){P4s.strokeStyle=this.defaultColor;}else {P4s.strokeStyle=A1J;}}if(d8E.opacity){P4s.globalAlpha=d8E.opacity;}if(d8E.lineWidth){P4s.lineWidth=d8E.lineWidth;}A$0=v21.borderPatternToArray(P4s.lineWidth,d8E.pattern);P4s.beginPath();for(var D0Q=0;D0Q < e0E.length - 2;D0Q+=2){w2Z=e0E[D0Q];H4T.M8Y(22);t0y=e0E[H4T.c6Y(1,D0Q)];H4T.C$o(22);P_J=e0E[H4T.d58(2,D0Q)];H4T.M8Y(22);U6f=e0E[H4T.d58(3,D0Q)];if(isNaN(w2Z) || isNaN(P_J) || isNaN(t0y) || isNaN(U6f)){return;}H5$=0.0;W$X=1.0;H4T.M8Y(0);x6G=H4T.c6Y(P_J,w2Z);H4T.M8Y(0);Z_k=H4T.d58(U6f,t0y);for(var p9c=0;p9c < +"4";p9c++){if(p9c === +"0"){P83=-x6G;H4T.M8Y(0);O4Q=-H4T.d58(Q9E,w2Z);}if(p9c == 1){P83=x6G;H4T.C$o(0);O4Q=H4T.c6Y(S7F,w2Z);}if(p9c == 2){P83=-Z_k;H4T.C$o(0);O4Q=-H4T.d58(d63,t0y);}if(p9c == ("3" ^ 0)){P83=Z_k;H4T.M8Y(0);O4Q=H4T.d58(B4I,t0y);}H4T.C$o(40);r6b=H4T.d58(P83,O4Q);if((U6f || U6f === 0) && P83 === 0 && O4Q < 0){return ![];;}if(P83 < 0){if(r6b > W$X){return ![];}else if(r6b > H5$){H5$=r6b;};}else if(P83 > 0){if(r6b < H5$){return !!0;}else if(r6b < W$X){W$X=r6b;};}}H4T.M8Y(147);S08=H4T.c6Y(w2Z,H5$,x6G);H4T.C$o(147);x5V=H4T.c6Y(t0y,H5$,Z_k);H4T.C$o(147);W92=H4T.c6Y(w2Z,W$X,x6G);H4T.M8Y(147);G6I=H4T.c6Y(t0y,W$X,Z_k);try{P4s.setLineDash(A$0 && A$0.length?A$0:[]);P4s.moveTo(S08,x5V);P4s.lineTo(W92,G6I);}catch(s0v){;}}P4s.stroke();P4s.closePath();P4s.globalAlpha=1;P4s.lineWidth=1;};v21.ChartEngine.prototype.plotSpline=function(A7T,L36,w2c,V3V,X8N,P2N,y$a){var b8h,T5W;if(!y$a){y$a={};}if(y$a.pattern == "none"){return;}if(P2N === !0){P2N=this.chart.panel;}if(X8N === null || typeof X8N == "undefined"){X8N=this.chart.context;}X8N.save();H4T.J8h();X8N.lineWidth=1.1;if(typeof w2c == "object"){X8N.strokeStyle=w2c.color;if(w2c.opacity){X8N.globalAlpha=w2c.opacity;}else {X8N.globalAlpha=1;}X8N.lineWidth=v21.stripPX(w2c.width);}else {b8h="a";b8h+="uto";if(!w2c || w2c == b8h || v21.isTransparent(w2c)){X8N.strokeStyle=this.defaultColor;}else {X8N.strokeStyle=w2c;}}if(y$a.opacity){X8N.globalAlpha=y$a.opacity;}if(y$a.lineWidth){X8N.lineWidth=y$a.lineWidth;}T5W=v21.borderPatternToArray(X8N.lineWidth,y$a.pattern);if(y$a.pattern && X8N.setLineDash){X8N.setLineDash(T5W);X8N.lineDashOffset=0;;}X8N.beginPath();J59.plotSpline(A7T,L36,X8N);X8N.stroke();X8N.closePath();X8N.restore();};v21.ChartEngine.prototype.rawWatermark=function(M8u,s28,U0t,G6w){this.canvasFont("stx_watermark",M8u);M8u.fillStyle=this.defaultColor;M8u.globalAlpha=0.5;this.chart.context.textBaseline="alphabetic";M8u.fillText(G6w,s28,U0t);M8u.globalAlpha=1;};H4T.r2m();v21.ChartEngine.prototype.watermark=function(a$7,R5k){var P0w,x5i,v8o,q6p,M5X,T75,r_3,f_p,k6L,u4$,b5o,q_G;P0w="ri";P0w+="g";P0w+="ht";x5i="m";x5i+="iddle";v8o="to";H4T.r2m();v8o+="p";q6p="bo";q6p+="ttom";M5X="obj";M5X+="e";M5X+="c";M5X+="t";if(R5k && typeof R5k != M5X){R5k={h:arguments[1],v:arguments[+"2"],text:arguments[3]};}R5k={h:R5k.h || "left",v:R5k.v || q6p,text:R5k.text || "",hOffset:R5k.hOffset === 0?0:R5k.hOffset || 10,vOffset:R5k.vOffset === 0?0:R5k.vOffset || 20,context:R5k.context || this.chart.context};T75=R5k.context;if(!T75){return;}r_3=this.panels[a$7];if(!r_3 || r_3.hidden){return;}f_p=r_3.yAxis.bottom - R5k.vOffset;if(R5k.v == v8o){f_p=r_3.top + R5k.vOffset;}else if(R5k.v == x5i){H4T.M8Y(2);var s9o=H4T.c6Y(17,15);f_p=(r_3.top + r_3.yAxis.bottom) / s9o;}T75.save();this.canvasFont("stx_watermark",T75);this.canvasColor("stx_watermark",T75);T75.textBaseline="alphabetic";k6L=r_3.left + R5k.hOffset;if(R5k.h == P0w){k6L=r_3.right - R5k.hOffset;}else if(R5k.h == "center"){H4T.C$o(25);var B3O=H4T.d58(8,8,2);k6L=(r_3.right + r_3.left - T75.measureText(R5k.text).width) / B3O;}T75.globalAlpha=+"0.5";if(this.highlightedDraggable){H4T.C$o(38);T75.globalAlpha*=H4T.c6Y("0.3",1);}u4$=1137626162;b5o=+"255910138";q_G=2;for(var o29=1;H4T.O$R(o29.toString(),o29.toString().length,46519) !== u4$;o29++){T75.fillText(R5k.text,k6L,f_p);T75.restore();q_G+=+"2";}if(H4T.O$R(q_G.toString(),q_G.toString().length,5622) !== b5o){T75.fillText(R5k.text,k6L,f_p);T75.restore();}};v21.ChartEngine.prototype.displayErrorAsWatermark=function(L$P,Z2N){var E06,P5i,m8y,u8G,n6w,A7a,c3A,E7K,Z9k,B6W,A3P,E0I;E06="c";E06+="hart";if(!Z2N){return;}if(!L$P){L$P=E06;}P5i=this.panels[L$P];if(!P5i || P5i.hidden){return;}m8y=P5i.state;if(!m8y){P5i.state=m8y={};}u8G=m8y.studyErrors;if(!u8G){m8y.studyErrors=u8G=new Set();}if(u8G.has(Z2N)){return;}n6w=m8y.watermarkOffset || 10;A7a=+"10";c3A=this.getCanvasFontSize("stx_watermark");if(this.chart && this.chart.chartControls){E7K=P5i.yAxis.bottom;Z9k=this.chart.chartControls;H4T.M8Y(0);B6W=H4T.d58(E7K,n6w);H4T.M8Y(0);A3P=H4T.c6Y(B6W,c3A);if(B6W > Z9k.offsetTop && B6W < Z9k.offsetTop + Z9k.offsetHeight || A3P > Z9k.offsetTop && A3P < Z9k.offsetTop + Z9k.offsetHeight){n6w=E7K - Z9k.offsetTop + A7a;}}u8G.add(Z2N);E0I={h:"center",v:"bottom",text:Z2N,vOffset:n6w};H4T.M8Y(22);n6w+=H4T.d58(A7a,c3A);m8y.watermarkOffset=n6w;this.watermark(L$P,E0I);};v21.ChartEngine.prototype.displayChart=function(n9k){if(this.runPrepend("displayChart",arguments)){return;}this.rendererAction(n9k,"main");this.runAppend("displayChart",arguments);};};b$=x21=>{var y$5=x2dci;y$5.r2m();var c_h;c_h=x21.CIQ;c_h.ChartEngine.prototype.cloneStyle=function(X99){var y50,J4U,B$L,g8o,j9Z,Q_r,h8K,f6E;y50={};function B0c(e0Z){return e0Z[1].toUpperCase();}J4U=!1;for(var K$d in X99){B$L=X99[K$d];if(K$d == "backgroundAttachment"){J4U=!0;}if(J4U){if(B$L && B$L.constructor == String && isNaN(K$d)){y50[K$d]=B$L;}}else if(!isNaN(K$d)){g8o=X99.getPropertyValue(B$L);if(g8o){B$L=B$L.split(9782 == ("615.87" * 1,5740)?5017 == "128" * 1?227.77:1420 > 344.34?(!![],0x7a):("l",0x249e):"-");j9Z=0;Q_r=B$L.length;h8K=B$L[0];while(++j9Z < Q_r){h8K+=B$L[j9Z].charAt(0).toUpperCase() + B$L[j9Z].slice(+"1");}y50[h8K]=g8o;}}else {f6E=K$d.replace(c_h.camelCaseRegExp,B0c);y50[f6E]=B$L;}}return y50;};c_h.ChartEngine.prototype.canvasStyle=function(A3W){var r1L,y0u,z3c;y$5.J8h();r1L=this.styles[A3W];if(!r1L){y0u=document.createElement("div");y0u.className=A3W;this.container.appendChild(y0u);z3c=getComputedStyle(y0u);r1L=this.styles[A3W]=this.cloneStyle(z3c);this.container.removeChild(y0u);if(!z3c){this.styles[A3W]=null;}}return r1L;};c_h.ChartEngine.prototype.colorOrStyle=function(W7V){if(W7V.indexOf(("7160" ^ 0) != (3900,+"1006")?"#":18.45 !== (199.03,+"1770")?+"163.98" === (3230,763.82)?!![]:(374.20,+"0x4f2"):("6.56e+3" | 0,"c")) != -1){return W7V;}y$5.r2m();if(W7V.indexOf("(") != -1){return W7V;}if(W7V == "transparent"){return W7V;}return this.canvasStyle(W7V);};c_h.ChartEngine.prototype.clearStyles=function(){this.styles={};this.defaultColor="";};c_h.ChartEngine.prototype.setStyle=function(P_Z,l$x,w96){if(!this.styles[P_Z]){this.canvasStyle(P_Z);}if(!this.styles[P_Z]){this.styles[P_Z]={};}y$5.J8h();this.styles[P_Z][c_h.makeCamelCase(l$x)]=w96;};c_h.ChartEngine.prototype.canvasFont=function(R_7,t_3){var s7R,B6b,B6f,S9D;s7R="und";s7R+="e";s7R+="fine";s7R+="d";if(!t_3){t_3=this.chart.context;}B6b=this.canvasStyle(R_7);if(!B6b){return;}y$5.M8Y(124);var F1X=y$5.d58(2446,20,10,17);y$5.C$o(76);var v2K=y$5.d58(1961,2,966,7);y$5.J8h();y$5.M8Y(148);var Q$F=y$5.c6Y(3,1,6075,12142,3);y$5.M8Y(77);var o53=y$5.d58(178169,19,9,20360);y$5.M8Y(0);var r6X=y$5.d58(2552,12);y$5.M8Y(0);var u_Z=y$5.c6Y(3028,8);y$5.M8Y(8);var F3o=y$5.d58(11,10,1);B6f=B6b.fontStyle + (497.5 < 544.17?" ":(293.58,![])) + B6b.fontWeight + " " + B6b.fontSize + (("586.2" - 0,F1X) >= (v2K,Q$F)?o53 <= (r6X,u_Z)?("688.76" * F3o,516.59):475.96:" ") + B6b.fontFamily;if(B6f.indexOf(s7R) == -1){t_3.font=B6f;}else {S9D="bad css style for clas";S9D+="s ";this.styles[R_7]=null;y$5.M8Y(22);console.log(y$5.c6Y(R_7,S9D));}};c_h.ChartEngine.prototype.canvasColor=function(x3b,K8a){y$5.J8h();var t1s,a2h,m6n;if(!K8a){K8a=this.chart.context;}t1s=this.canvasStyle(x3b);if(!t1s){return;}a2h=t1s.color;if(!a2h){a2h=this.defaultColor;}K8a.globalAlpha=+"1";K8a.fillStyle=a2h;K8a.strokeStyle=a2h;m6n=t1s.opacity;if(typeof m6n != "undefined"){K8a.globalAlpha=m6n;}};c_h.ChartEngine.prototype.getCanvasFontSize=function(Z6c){var P06,r0x;P06=this.canvasStyle(Z6c);r0x=P06.fontSize;if(!r0x){r0x="12";}return parseInt(c_h.stripPX(r0x),10);};c_h.ChartEngine.prototype.getCanvasColor=function(X1w){var a7O;y$5.J8h();a7O=this.canvasStyle(X1w);return a7O.color;};c_h.ChartEngine.prototype.getDefaultColor=function(){var i3t,S37,p7Y,o0Z,Z$R,v5B,M1N,f5s;y$5.J8h();this.defaultColor="#000000";i3t=null;S37=this.chart.container;while(!i3t || c_h.isTransparent(i3t)){p7Y=getComputedStyle(S37);if(!p7Y){return;}i3t=p7Y.backgroundColor;if(c_h.isTransparent(i3t)){i3t="transparent";}S37=S37.parentNode;if(!S37 || !S37.tagName)break;}if(i3t){o0Z="#";o0Z+="FF";o0Z+="FFFF";Z$R="tr";Z$R+="anspar";Z$R+="ent";if(i3t == Z$R){i3t=o0Z;}this.containerColor=i3t;if(!c_h.isTransparent(i3t)){v5B=c_h.hsv(i3t);M1N=v5B[2];if(M1N > 0.65){this.defaultColor="#000000";}else {this.defaultColor="#FFFFFF";}}else {this.defaultColor="#000000";}}else {f5s="#FF";f5s+="FFFF";this.containerColor=f5s;}};};l5=p83=>{var x7$;x7$=p83.CIQ;x7$.ChartEngine.XAxis=function(q_v){for(var h8o in q_v){this[h8o]=q_v[h8o];}};x7$.extend(x7$.ChartEngine.XAxis.prototype,{formatter:null,adjustTimeZone:!!({}),idealTickSizePixels:null,timeUnit:null,timeUnitMultiplier:null,displayBorder:!![],displayGridLines:!!1,noDraw:null,minimumLabelWidth:50,futureTicks:!![],futureTicksInterval:1},!!({}));x7$.ChartEngine.XAxisLabel=function(o3n,h_7,q2n){this.hz=o3n;x2dci.J8h();this.grid=h_7;this.text=q2n;};x7$.ChartEngine.prototype.createXAxis=function(U6W){var P8v,a9k,d$6;P8v="crea";P8v+="teX";P8v+="Axis";if(U6W.dataSegment.length <= 0){return null;}if(U6W.xAxis.noDraw){return null;}a9k=[U6W];x2dci.J8h();d$6=this.runPrepend("createXAxis",a9k);if(d$6){return d$6;}if(this.mainSeriesRenderer && this.mainSeriesRenderer.createXAxis){d$6=this.mainSeriesRenderer.createXAxis(U6W);}else {d$6=this.createTickXAxisWithDates(U6W);}this.headsUpHR();this.runAppend(P8v,a9k);return d$6;};x7$.ChartEngine.prototype.createXAxisLabel=function(z27){var S2q=x2dci;var E0R,U6S,T1Y,Q_I,I$x,S3p,I0I,L0a,R87,b6U,Y7x,q2L,V9f,z19;if(arguments[0] instanceof x7$.ChartEngine.Panel){z27={panel:arguments["0" - 0],txt:arguments[1],x:arguments[2],backgroundColor:arguments[+"3"],color:arguments[4],pointed:arguments[5],padding:arguments[6]};}E0R=z27.panel;U6S=z27.txt;S2q.r2m();T1Y=z27.x;Q_I=z27.backgroundColor;I$x=z27.color;S3p=z27.pointed;I0I=z27.padding === 0?"0" >> 64:z27.padding || 2;L0a=this.chart.context;R87="stx-float-date";S2q.C$o(25);var X1X=S2q.d58(21,23,4);b6U=this.getCanvasFontSize(R87) + I0I * X1X;this.canvasFont(R87,L0a);try{Y7x=L0a.measureText(U6S).width + I0I * ("2" - 0);}catch(W2w){Y7x=0;}q2L=E0R.top + E0R.height - b6U - I0I;if(T1Y + Y7x / 2 < E0R.left || T1Y - Y7x / 2 > E0R.right){return;}if(!S3p){if(T1Y + Y7x / ("2" >> 32) > E0R.right){S2q.M8Y(44);var g_K=S2q.d58(20,0,3,20);T1Y=E0R.right - Y7x / g_K;}if(T1Y - Y7x / 2 < E0R.left){S2q.C$o(136);var Y_x=S2q.d58(1,8,78,10);T1Y=E0R.left + Y7x / Y_x;}}L0a.fillStyle=Q_I;x7$.roundRect({ctx:L0a,x:T1Y - Y7x / +"2",top:q2L,width:Y7x,height:b6U,radius:3,fill:!0});V9f=E0R.bottom - E0R.yAxis.bottom - b6U;L0a.beginPath();if(S3p){S2q.C$o(0);L0a.moveTo(S2q.c6Y(T1Y,V9f),q2L);S2q.C$o(30);L0a.lineTo(T1Y,S2q.c6Y(V9f,q2L,1));S2q.M8Y(22);L0a.lineTo(S2q.c6Y(V9f,T1Y),q2L);L0a.closePath();L0a.fill();}else {L0a.moveTo(T1Y,q2L);S2q.C$o(0);L0a.lineTo(T1Y,S2q.c6Y(q2L,V9f));L0a.strokeStyle=Q_I;L0a.stroke();}L0a.textBaseline="top";L0a.fillStyle=I$x?I$x:x7$.chooseForegroundColor(Q_I);if(L0a.fillStyle == Q_I){z19="#";z19+="FFFFFF";if(Q_I.toUpperCase() == "#FFFFFF"){L0a.fillStyle="#000000";}else {L0a.fillStyle=z19;}}S2q.M8Y(149);L0a.fillText(U6S,S2q.c6Y(I0I,Y7x,"2",T1Y,1),S2q.d58(1,I0I,q2L,"2",S2q.C$o(150)));};};R$=t$J=>{var x$1=x2dci;var S6I,F8L;S6I="widt";S6I+="h";F8L=t$J.CIQ;F8L.createLabel=function(w1O){var d98,o2T;x$1.r2m();d98="le";d98+="ft";w1O.ctx.textBaseline="middle";w1O.ctx.fillStyle=w1O.color?w1O.color:F8L.chooseForegroundColor(w1O.backgroundColor);if(w1O.ctx.fillStyle === w1O.backgroundColor){o2T="#";o2T+="FFFFF";o2T+="F";if(w1O.backgroundColor.toUpperCase() == o2T){w1O.ctx.fillStyle="#000000";}else {w1O.ctx.fillStyle="#FFFFFF";}}w1O.ctx.fillText(w1O.txt,w1O.x + w1O.margin.left,w1O.y + w1O.margin.top);w1O.ctx.textAlign=d98;};F8L.roundRectArrow=function(U6n){x$1.J8h();F8L.roundRect(U6n,"arrow");};F8L.semiRoundRect=function(x2j){var p_h;p_h="f";p_h+="l";p_h+="us";p_h+="h";F8L.roundRect(x2j,p_h);};F8L.rect=function(i6e){x$1.J8h();var h4u,M1J,P3e;i6e.radius=0;h4u=1235241838;M1J=+"1091206516";P3e=2;for(var k66=1;x$1.O$R(k66.toString(),k66.toString().length,22296) !== h4u;k66++){F8L.roundRect(i6e);x$1.C$o(0);P3e+=x$1.c6Y("2",0);}if(x$1.O$R(P3e.toString(),P3e.toString().length,87195) !== M1J){F8L.roundRect(i6e);}};F8L.noop=function(T8M){T8M.color=T8M.backgroundColor;F8L.createLabel(T8M);};F8L.tickedRect=function(Z94){var D0d;F8L.rect(Z94);x$1.r2m();x$1.C$o(22);var L66=x$1.c6Y(2,0);D0d=Math.round(Z94.top + Z94.height / L66) + 0.5;Z94.ctx.beginPath();Z94.ctx.moveTo(Z94.x - ("2" ^ 0),D0d);Z94.ctx.lineTo(Z94.x,D0d);Z94.ctx.stroke();Z94.ctx.closePath();};F8L.roundRect=function(b75,B8I){var v91,r6f,m2A,c$Y,z4v,D4G,e_4,F3g,s8v,Y1C,H0B,y_x,i6U,S7V,l86,p5a,s6M,B3z;v91="u";v91+="n";v91+="def";v91+="ined";r6f="un";r6f+="d";r6f+="efin";r6f+="ed";if(arguments.length === 9){b75={ctx:arguments[0],x:arguments[+"1"],top:arguments[2],width:arguments[+"3"],height:arguments[4],radius:arguments[+"5"],fill:arguments[6],stroke:arguments[7],edge:arguments[8]};}m2A=b75.stroke;c$Y=b75.x;z4v=b75.top;D4G=b75.width;e_4=b75.height;F3g=b75.radius;s8v=b75.fill;Y1C=b75.ctx;if(typeof m2A == r6f){m2A=!"";}if(typeof F3g === v91){F3g=+"5";if(D4G < "0" * 1){F3g=-5;}}H0B=D4G < 0?F3g * -1:F3g;if(F3g && !B8I){x$1.M8Y(0);c$Y=x$1.d58(c$Y,1);}x$1.C$o(22);x$1.J8h();y_x=x$1.c6Y(F3g,c$Y);x$1.C$o(22);i6U=x$1.c6Y(D4G,c$Y);x$1.M8Y(22);S7V=x$1.d58(H0B,z4v);x$1.C$o(22);l86=x$1.d58(e_4,z4v);x$1.M8Y(0);p5a=x$1.c6Y(i6U,F3g);x$1.M8Y(0);s6M=x$1.c6Y(l86,H0B);Y1C.beginPath();Y1C.moveTo(y_x,z4v);Y1C.lineTo(p5a,z4v);Y1C.quadraticCurveTo(i6U,z4v,i6U,S7V);Y1C.lineTo(i6U,s6M);Y1C.quadraticCurveTo(i6U,l86,p5a,l86);Y1C.lineTo(y_x,l86);if(B8I == "flush"){Y1C.lineTo(c$Y,l86);Y1C.lineTo(c$Y,z4v);}else if(B8I == "arrow"){x$1.C$o(0);Y1C.quadraticCurveTo(c$Y,l86,x$1.d58(c$Y,F3g),s6M);B3z=D4G < 0?1:-+"1";x$1.M8Y(151);Y1C.lineTo(x$1.c6Y(2,c$Y,B3z,e_4),x$1.c6Y(2,z4v,e_4,x$1.M8Y(139)));x$1.C$o(0);Y1C.lineTo(x$1.d58(c$Y,F3g),S7V);Y1C.quadraticCurveTo(c$Y,z4v,y_x,z4v);}else {Y1C.quadraticCurveTo(c$Y,l86,c$Y,s6M);Y1C.lineTo(c$Y,S7V);Y1C.quadraticCurveTo(c$Y,z4v,y_x,z4v);}Y1C.closePath();if(b75.backgroundColor){Y1C.fillStyle=b75.backgroundColor;}if(m2A){Y1C.stroke();}if(s8v){Y1C.fill();}if(b75.txt){F8L.createLabel(b75);}};F8L.ChartEngine.YAxis=function(H2v){for(var Y8d in H2v){this[Y8d]=H2v[Y8d];}if(!this.name){this.name=F8L.uniqueID();}if(this.position == "none"){x$1.M8Y(46);this.width=x$1.d58("0",64);}};F8L.extend(F8L.ChartEngine.YAxis.prototype,{high:null,low:null,shadow:null,logHigh:null,logLow:null,logShadow:null,multiplier:null,bottom:null,top:null,height:null,left:null,width:null,renderers:[],studies:[]},!!({}));x$1.M8Y(0);F8L.ChartEngine.YAxis.defaultShadowBreaks=[[+"1000",x$1.c6Y("2",0)],[+"5",4],[0.001,8]];F8L.ChartEngine.YAxis.smallChartShadowBreaks=[[10,2],[1,+"4"]];F8L.ChartEngine.YAxis.prototype.maxDecimalPlaces=null;F8L.ChartEngine.YAxis.prototype.max=null;x$1.J8h();F8L.ChartEngine.YAxis.prototype.min=null;F8L.ChartEngine.YAxis.prototype.decimalPlaces=null;F8L.ChartEngine.YAxis.prototype.idealTickSizePixels=null;F8L.ChartEngine.YAxis.prototype.minimumPriceTick=null;F8L.ChartEngine.YAxis.prototype.fractional=null;F8L.ChartEngine.YAxis.prototype.displayBorder=!![];F8L.ChartEngine.YAxis.prototype.displayGridLines=!!({});F8L.ChartEngine.YAxis.prototype.noDraw=null;F8L.ChartEngine.YAxis.prototype.drawCurrentPriceLabel=!!"1";F8L.ChartEngine.YAxis.prototype.drawSeriesPriceLabels=!"";F8L.ChartEngine.YAxis.prototype.drawPriceLabels=!!({});F8L.ChartEngine.YAxis.prototype.goldenRatioYAxis=!"";F8L.ChartEngine.YAxis.prototype.yaxisLabelStyle=null;F8L.ChartEngine.YAxis.prototype.justifyRight=null;F8L.ChartEngine.YAxis.prototype.flipped=!({});F8L.ChartEngine.YAxis.prototype.textBackground=!"1";F8L.ChartEngine.YAxis.prototype.priceFormatter=null;F8L.ChartEngine.YAxis.prototype.bottomOffset=0;F8L.ChartEngine.YAxis.prototype.topOffset=0;F8L.ChartEngine.YAxis.prototype.initialMarginTop=+"10";F8L.ChartEngine.YAxis.prototype.initialMarginBottom=10;F8L.ChartEngine.YAxis.prototype.zoom=0;F8L.ChartEngine.YAxis.prototype.scroll=0;x$1.M8Y(20);F8L.ChartEngine.YAxis.prototype.heightFactor=x$1.c6Y("1",0);Object.defineProperty(F8L.ChartEngine.YAxis.prototype,S6I,{configurable:!![],enumerable:!!({}),get:function(){x$1.r2m();return this._dynamicWidth || this._width;},set:function(b0W){this._width=b0W;if(this._dynamicWidth < b0W){this._dynamicWidth=NaN;}}});F8L.ChartEngine.YAxis.prototype.width=60;F8L.ChartEngine.YAxis.prototype.smallScreenWidth=50;F8L.ChartEngine.YAxis.prototype.textStyle=null;F8L.ChartEngine.YAxis.prototype.position=null;F8L.ChartEngine.YAxis.prototype.pretty=!0;F8L.ChartEngine.YAxis.prototype.increments=[1,2.5,5];F8L.ChartEngine.YAxis.prototype.prettySemiLog=!0;F8L.ChartEngine.YAxis.prototype.shadowBreaks=F8L.ChartEngine.YAxis.defaultShadowBreaks;F8L.ChartEngine.YAxis.prototype.getYAxis=function(e$H){return this;};F8L.ChartEngine.YAxis.prototype.isShared=function(Q67,I1$){var g8m,E$1;x$1.r2m();g8m=this.studies.length;E$1=this.renderers.length;if(g8m > 1){return !0;}if(E$1 && g8m){return !![];}if(!E$1){return !1;}if(E$1 > 1 && I1$){return !0;}for(var L1M=E$1 - 1;L1M >= 0;L1M--){if(Q67.chart.seriesRenderers[this.renderers[L1M]].params.dependentOf){E$1--;}}x$1.M8Y(152);return x$1.d58(E$1,1);};F8L.ChartEngine.YAxis.prototype.setBackground=function(l$k,h_M){var h4X;if(!h_M){h_M={};}if(!h_M.color){h_M.color="auto";}h4X=[[this.left,this.top],[this.left,this.bottom],[this.left + this.width,this.bottom],[this.left + this.width,this.top]];F8L.fillArea(l$k,h4X,{color:h_M.color,opacity:h_M.opacity});};F8L.ChartEngine.YAxis.prototype.setBreakpointWidth=function(O1G){var c48;if(!O1G){return;}var {width:R$_, smallScreenWidth:w0d}=F8L.ChartEngine.YAxis.prototype;x$1.M8Y(129);c48=x$1.c6Y(O1G,"break-sm");this.width=c48?w0d:R$_;};F8L.ChartEngine.prototype.getLabelOffsetInPixels=function(E1j,o$I){var d1w,S6f,n7R,i2y;x$1.J8h();d1w="rou";d1w+="ndRectArrow";S6f=!this.mainSeriesRenderer || !this.mainSeriesRenderer.standaloneBars;if(this.yaxisLabelStyle == d1w && !(S6f && this.extendLastTick && E1j.yaxisPaddingRight !== 0)){n7R=3;x$1.M8Y(153);var g2j=x$1.d58(10,6,13,19,14);i2y=this.getCanvasFontSize("stx_yaxis") + n7R * g2j;x$1.C$o(38);return x$1.d58(i2y,0.66);}return 0;};F8L.ChartEngine.prototype.flipChart=function(M64){x$1.r2m();var q46;q46="l";q46+="ay";q46+="out";if(this.layout.flipped == M64){return;}this.layout.flipped=M64;this.chart.yAxis.flipped=M64;this.changeOccurred(q46);this.draw();};F8L.ChartEngine.prototype.calculateYAxisMargins=function(c2K){if(c2K.heightFactor){x$1.C$o(7);var L7T=x$1.d58(12,0,13);c2K.zoom=c2K.height * (L7T - c2K.heightFactor);}c2K.zoom+=c2K.initialMarginTop + c2K.initialMarginBottom;x$1.C$o(68);var y4B=x$1.c6Y(43,3,15);c2K.scroll=(c2K.initialMarginTop - c2K.initialMarginBottom) / y4B;if(c2K.zoom > c2K.height){c2K.zoom=0;c2K.scroll=0;}};F8L.ChartEngine.prototype.resetDynamicYAxis=function(k_a){var M4l,R9m,r6H,f6h;M4l="resetDynamicY";M4l+="Ax";M4l+="is";if(this.runPrepend("resetDynamicYAxis",arguments)){return;}R9m=![];for(var T3w in this.panels){r6H=this.panels[T3w];if(k_a && k_a.chartName && r6H.chart.name !== k_a.chartName)continue;if(!r6H.yaxisLHS || !r6H.yaxisRHS)continue;f6h=r6H.yaxisLHS.concat(r6H.yaxisRHS);for(var k1O=0;k1O < f6h.length;k1O++){if(f6h[k1O]._dynamicWidth){f6h[k1O]._dynamicWidth=NaN;R9m=!!({});}}}x$1.J8h();if(R9m && (!k_a || !k_a.noRecalculate)){this.calculateYAxisPositions();}this.runAppend(M4l,arguments);};F8L.ChartEngine.prototype.notifyBreakpoint=function(P1I){var c2l,p4I,V_i;if(this.chart.breakpoint === P1I){return;}if(!["break-lg","break-md","break-sm"].includes(P1I)){return;}var {chart:U_Z}=this;var {dynamicYAxis:W5c}=U_Z;this.clearStyles();U_Z.breakpoint=P1I;for(var R3B in this.panels){c2l=this.panels[R3B];p4I=c2l.yaxisRHS.concat(c2l.yaxisLHS);for(var B9v=0;B9v < p4I.length;B9v++){V_i=p4I[B9v];V_i.setBreakpointWidth(P1I);}}if(W5c){this.resetDynamicYAxis({chartName:U_Z.name});}};F8L.ChartEngine.prototype.adjustYAxisHeightOffset=function(M_W,I48){var U7J,c20,o2I;U7J=I48.topOffset;c20=I48.bottomOffset;if(U7J + c20 > M_W.height){console.log("The sum of yAxis.topOffset and yAxis.bottomOffset cannot be greater than the panel height. Both values will be reset to 0.");I48.bottomOffset=0;I48.topOffset=+"0";}if(!this.xaxisHeight && this.xaxisHeight !== 0){this.xaxisHeight=this.getCanvasFontSize("stx_xaxis") + ("4" - 0);if(this.chart.xAxis.displayBorder || this.axisBorders){this.xaxisHeight+=+"3";}}x$1.J8h();o2I=this.xAxisAsFooter && M_W.bottom > this.chart.canvasHeight - this.xaxisHeight || !this.xAxisAsFooter && M_W == this.chart.panel;if(o2I){c20+=this.xaxisHeight;}I48.top=M_W.top + U7J;I48.bottom=M_W.bottom - c20;};F8L.ChartEngine.prototype.plotYAxisGrid=function(j6L){var W2T,G$k,a9B,m1z;W2T="p";W2T+="lo";W2T+="tYAxisGrid";if(this.runPrepend("plotYAxisGrid",arguments)){return;}G$k=this.getBackgroundCanvas().context;a9B=j6L.yAxis;x$1.J8h();if(a9B.yAxisPlotter){m1z="gri";m1z+="d";a9B.yAxisPlotter.draw(G$k,m1z);}this.runAppend(W2T,arguments);};F8L.ChartEngine.prototype.plotYAxisText=function(F2v){var X_9,m2U,k_w,m4f,B23,c$X;X_9="midd";X_9+="l";X_9+="e";if(this.runPrepend("plotYAxisText",arguments)){return;}m2U=this.getBackgroundCanvas().context;this.canvasFont("stx_yaxis",m2U);function X1C(L0n){var q2j,B4A;q2j="t";q2j+="e";q2j+="x";q2j+="t";B4A="r";B4A+="ight";if(!L0n.yAxisPlotter){return;}x$1.r2m();if(L0n.noDraw || !L0n.width){return;}if(L0n.justifyRight){m2U.textAlign=B4A;}else if(L0n.justifyRight === !1){m2U.textAlign="left";}L0n.yAxisPlotter.draw(m2U,q2j);}this.canvasColor("stx_yaxis",m2U);m2U.textBaseline=X_9;k_w=F2v.yaxisLHS;for(m4f=0;m4f < k_w.length;m4f++){B23="righ";B23+="t";m2U.textAlign=B23;X1C(k_w[m4f]);}k_w=F2v.yaxisRHS;for(m4f=0;m4f < k_w.length;m4f++){c$X="l";c$X+="eft";m2U.textAlign=c$X;X1C(k_w[m4f]);}m2U.textAlign="left";m2U.textBaseline="alphabetic";this.runAppend("plotYAxisText",arguments);};F8L.ChartEngine.prototype.decimalPlacesFromPriceTick=function(u0p){if(u0p < 0.0001){return 8;}if(u0p < 0.01){return 4;}x$1.r2m();if(u0p < 0.1){return 2;}if(u0p < 1){return 1;}return 0;};F8L.ChartEngine.prototype.formatYAxisPrice=function(Z8L,c6l,I5N,B_R,D9w){var J83,Y4Y,l5w,H9Y,g2X;if(Z8L === null || typeof Z8L == "undefined" || isNaN(Z8L)){return "";}if(!c6l){c6l=this.chart.panel;}J83=B_R?B_R:c6l.yAxis;Y4Y=I5N;if(!Y4Y && Y4Y !== 0){Y4Y=J83.printDecimalPlaces;}if(!Y4Y && Y4Y !== 0){Y4Y=this.decimalPlacesFromPriceTick(J83.priceTick);}l5w=J83 == c6l.chart.yAxis?20000:1000;if(J83.priceTick >= l5w){Z8L=Z8L.toFixed(Y4Y);return F8L.condenseInt(Z8L);}H9Y=this.internationalizer;if(H9Y && D9w !== !!""){g2X=H9Y.priceFormatters.length;if(Y4Y >= g2X){x$1.C$o(0);Y4Y=x$1.d58(g2X,1);}Z8L=H9Y.priceFormatters[Y4Y].format(Z8L);}else {Z8L=Z8L.toFixed(Y4Y);;}return Z8L;};F8L.ChartEngine.prototype.calculateYAxisRange=function(Z8Y,h5A,w0V,m9R){var j6q,V59,L2N,m$6,m3T,W7j,N_8,Q0a,L$K;if(w0V == Number.MAX_VALUE){w0V=+"0";m9R=0;}j6q=Z8Y.height;V59=null;L2N=null;this.adjustYAxisHeightOffset(Z8Y,h5A);h5A.height=h5A.bottom - h5A.top;m$6=Math.round(Math.abs(j6q / 5));if(h5A.zoom >= +"0" && j6q - Math.abs(h5A.scroll) < m$6){x$1.C$o(0);var h_X=x$1.d58(0,1);x$1.C$o(0);var t3X=x$1.c6Y(19,18);h5A.scroll=(j6q - m$6) * (h5A.scroll < 0?h_X:t3X);}x$1.r2m();m3T=Z8Y.chart.name === Z8Y.name && Z8Y.yAxis.name === h5A.name;W7j=w0V > "0" - 0 && (this.layout.semiLog || this.layout.chartScale == "log") && !Z8Y.chart.isComparison && this.layout.aggregationType != "pandf";if(w0V || w0V === +"0"){if(m9R - w0V === 0){N_8=Math.pow(10,-(w0V.toString() + ((4600,2450) == 481?2950 >= (6248,4320)?(!"",5.86e+3):493.21:".")).split((8917,372.75) == 464?(3.47e+3,823.93):".")[1].length);if(N_8 == 1){x$1.M8Y(74);N_8=x$1.c6Y("100",68);}x$1.C$o(22);V59=x$1.c6Y(N_8,w0V);x$1.C$o(0);L2N=x$1.c6Y(w0V,N_8);}else {if(m3T && W7j && (m9R || m9R === 0)){Q0a=Math.log(w0V) / Math.LN10;L$K=Math.log(m9R) / Math.LN10;V59=Math.pow(10,L$K);L2N=Math.pow(10,Q0a);}else {V59=m9R;L2N=w0V;}}h5A.high=V59;h5A.low=L2N;}if(h5A.max || h5A.max === 0){h5A.high=h5A.max;}if(h5A.min || h5A.min === ("0" ^ 0)){h5A.low=h5A.min;}h5A.shadow=h5A.high - h5A.low;if(m3T){if(h5A.semiLog != W7j){this.clearPixelCache();h5A.semiLog=W7j;}h5A.flipped=this.layout.flipped;}};F8L.ChartEngine.prototype.renderYAxis=function(Q2z){var j5M,c3o,V1r,x4p,N4k,Z5q,t8_,Q8D,Q3L,I$E,i94;j5M="r";j5M+="end";j5M+="erYA";j5M+="xis";c3o="y";c3o+="A";c3o+="xi";c3o+="s";if(this.runPrepend("renderYAxis",arguments)){return;}if(this.checkLogScale()){throw new Error("reboot draw");}this.rendererAction(Q2z,c3o);var {context:S7P}=this.getBackgroundCanvas(Q2z);for(var f7Z in this.panels){V1r=this.panels[f7Z];if(V1r.chart != Q2z)continue;x4p=V1r.yaxisRHS.concat(V1r.yaxisLHS);for(N4k=0;N4k < x4p.length;N4k++){t8_="Stud";t8_+="ies.doPostDrawYAxis";Z5q=x4p[N4k];this.calculateYAxisRange(V1r,Z5q,Z5q.lowValue,Z5q.highValue);Q8D=F8L.getFn("Studies.getYAxisParameters",{})(this,Z5q);Q8D.yAxis=Z5q;this.createYAxis(V1r,Q8D);this.drawYAxis(V1r,Q8D);F8L.getFn(t8_)(this,Z5q);}for(N4k=+"0";N4k < x4p.length;N4k++){Z5q=x4p[N4k];if(Z5q.dropzone){Q3L="stx-subhol";Q3L+="der";Q3L+=" dropzone left";I$E=this.canvasStyle(Q3L);if(I$E){S7P.strokeStyle=I$E.borderLeftColor;S7P.lineWidth=parseFloat(I$E.borderLeftWidth);S7P.beginPath();if(Z5q.dropzone == "all"){S7P.strokeRect(Z5q.left,Z5q.top,Z5q.width,Z5q.height);}else {i94=Z5q.left + (Z5q.dropzone == "left"?0:Z5q.width);S7P.moveTo(i94,Z5q.top);S7P.lineTo(i94,Z5q.top + Z5q.height);S7P.stroke();}}}}if(this.displayDragOK){this.displayDragOK(!![]);}}this.runAppend(j5M,arguments);};F8L.ChartEngine.prototype.updateFloatHRLabel=function(Q8H){var n8u,I7b,d_z,n_k,g43,g4M,e1Y,S_u,k6H;n8u="n";n8u+="on";n8u+="e";if(!this.floatCanvas){return;}I7b=Q8H.yaxisLHS.concat(Q8H.yaxisRHS);d_z=this.crossYActualPos?this.crossYActualPos:this.cy;if(this.floatCanvas.isDirty){F8L.clearCanvas(this.floatCanvas,this);}if(this.controls.crossX && this.controls.crossX.style.display == n8u){return;}if(this.controls.crossY){n_k="p";n_k+="x";g43=Q8H.width;if(this.yaxisLabelStyle == "roundRectArrow"){g43-=7;}this.controls.crossY.style.left=Q8H.left + "px";x$1.M8Y(22);this.controls.crossY.style.width=x$1.d58(n_k,g43);}for(var x6L=0;x6L < I7b.length;x6L++){g4M=I7b[x6L];e1Y=this.transformedPriceFromPixel(d_z,Q8H,g4M);if(isNaN(e1Y))continue;if((g4M.min || g4M.min === 0) && e1Y < g4M.min)continue;if((g4M.max || g4M.max === 0) && e1Y > g4M.max)continue;S_u=null;if(g4M !== Q8H.chart.yAxis){S_u=this.decimalPlacesFromPriceTick(g4M.priceTick);if(g4M.decimalPlaces || g4M.decimalPlaces === 0){S_u=g4M.decimalPlaces;}}if(g4M.priceFormatter){e1Y=g4M.priceFormatter(this,Q8H,e1Y,S_u);}else {e1Y=this.formatYAxisPrice(e1Y,Q8H,S_u,g4M);}k6H=this.canvasStyle("stx-float-price");this.createYAxisLabel(Q8H,e1Y,d_z,k6H.backgroundColor,k6H.color,this.floatCanvas.context,g4M);this.floatCanvas.isDirty=!!({});}};F8L.ChartEngine.prototype.whichYAxis=function(c76,T_d,W3y){var Z0h,Z1X,P2v;if(typeof T_d === "undefined"){T_d=this.cx;}if(typeof W3y === "undefined"){W3y=this.cy;}Z0h=this.whichPanel(W3y);if(c76 && c76 == Z0h){Z1X=c76.yaxisLHS.concat(c76.yaxisRHS);for(var a_6="0" * 1;a_6 < Z1X.length;a_6++){P2v=Z1X[a_6];if(P2v.left <= T_d && P2v.left + P2v.width >= T_d){return P2v;}}}return null;};F8L.ChartEngine.prototype.yaxisMatches=function(p7C,S5o){if(!p7C || !p7C.getYAxis || !S5o || !(S5o instanceof F8L.ChartEngine.YAxis)){return !1;}return p7C.getYAxis(this).name == S5o.name;};F8L.ChartEngine.prototype.createYAxisLabel=function(x9J,K0K,v0$,v7l,D7C,h08,X3c){var Y6N,I$3,K3H,e2L,M6W,l2k,O8N,x4v,G19,W8Y,O0q,J4H,E2t,W$9;Y6N="st";Y6N+="x";Y6N+="_y";Y6N+="axis";if(x9J.yAxis.drawPriceLabels === !!"" || x9J.yAxis.noDraw){return;}I$3=X3c?X3c:x9J.yAxis;if(I$3.noDraw || !I$3.width){return;}K3H=h08?h08:this.chart.context;e2L=3;x$1.M8Y(2);var y4X=x$1.c6Y(14,12);M6W=this.getCanvasFontSize("stx_yaxis") + e2L * y4X;this.canvasFont(Y6N,K3H);l2k=I$3.displayBorder;O8N=this.drawBorders?3:0;try{x$1.M8Y(154);var s2h=x$1.d58(1,58,7,8);x4v=K3H.measureText(K0K).width + O8N + e2L * s2h;}catch(P3z){x4v=I$3.width;}x$1.C$o(16);var K8R=x$1.d58(10,1,10,107);G19=I$3.left - e2L + K8R;if(I$3.width < 0){G19+=I$3.width - x4v;}x$1.C$o(53);W8Y=x$1.d58(G19,e2L,O8N);O0q=3;J4H=I$3.position === null?x9J.chart.yAxis.position:I$3.position;if(J4H === "left"){G19=I$3.left + I$3.width + e2L - +"3";x$1.M8Y(146);x4v=x$1.d58(x4v,1);if(I$3.width < 0){G19-=I$3.width + x4v;}x$1.M8Y(30);W8Y=x$1.c6Y(e2L,G19,O8N);O0q=-3;K3H.textAlign="right";}if(v0$ + M6W / 2 > I$3.bottom){x$1.C$o(155);var x9I=x$1.d58(17,3,1874,76,2);v0$=I$3.bottom - M6W / ("2" >> x9I);}if(v0$ - M6W / 2 < I$3.top){x$1.M8Y(68);var p9e=x$1.c6Y(30,4,8);v0$=I$3.top + M6W / p9e;}if(typeof F8L[this.yaxisLabelStyle] == "undefined"){this.yaxisLabelStyle="roundRectArrow";;}E2t=this.yaxisLabelStyle;if(I$3.yaxisLabelStyle){E2t=I$3.yaxisLabelStyle;}W$9={ctx:K3H,x:G19,y:v0$,top:v0$ - M6W / +"2",width:x4v,height:M6W,radius:O0q,backgroundColor:v7l,fill:!"",stroke:!"1",margin:{left:W8Y - G19,top:1},txt:K0K,color:D7C};F8L[E2t](W$9);};F8L.ChartEngine.prototype.drawCurrentHR=function(){x$1.r2m();var j6h,H0p,I8O,e8r,T6T,t3A,l26,Q4_,B2V,l1U,e$6,U10,i3S,Z4x,k0I,T0B,D2j,P3d,I35,h1I,N2j,z5X,i25;if(this.runPrepend("drawCurrentHR",arguments)){return;}I8O=this.mainSeriesRenderer || ({});if(I8O.noCurrentHR){return;}e8r=I8O.highLowBars;for(var g0w in this.charts){T6T="d";T6T+="at";T6T+="aSegme";T6T+="nt";t3A=this.charts[g0w];l26=t3A.panel;Q4_=l26.yAxis;if(l26.hidden)continue;if(Q4_.drawCurrentPriceLabel === !({}) || Q4_.noDraw)continue;if(!I8O.params)continue;B2V=Q4_.whichSet;if(!B2V){B2V="dataSet";}if(this.isHistoricalModeSet && B2V !== "dataSegment")continue;l1U=t3A[B2V].length;e$6=this.layout.candleWidth;if(B2V == T6T){while(l1U > (t3A.width - this.micropixels + e$6 / 2 + 1) / e$6){l1U--;}}if(l1U && t3A[B2V][l1U - 1]){U10="C";U10+="lo";U10+="s";U10+="e";i3S=t3A.defaultPlotField;if(!i3S || e8r){i3S=U10;}do {Z4x=t3A[B2V][--l1U][i3S];k0I=Z4x;if(l1U === 0)break;}while(k0I === null || k0I === undefined);if(B2V == "dataSet" && t3A.currentQuote){k0I=t3A.currentQuote[i3S];}else if(t3A[B2V].length >= "2" - 0){x$1.C$o(0);T0B=t3A[B2V][x$1.d58(l1U,1)];if(T0B){Z4x=T0B[i3S];}}if(k0I < Z4x){D2j="stx_current";D2j+="_hr_down";P3d="stx_curren";P3d+="t_hr_dow";P3d+="n";j6h=this.canvasStyle(P3d).backgroundColor;H0p=this.canvasStyle(D2j).color;}else {I35="stx_c";I35+="urrent_hr_up";j6h=this.canvasStyle(I35).backgroundColor;H0p=this.canvasStyle("stx_current_hr_up").color;}if(t3A.transformFunc){k0I=t3A.transformFunc(this,t3A,k0I);}N2j=Math.max(l26.yAxis.printDecimalPlaces,l26.chart.decimalPlaces);if(Q4_.maxDecimalPlaces || Q4_.maxDecimalPlaces === 0){N2j=Math.min(N2j,Q4_.maxDecimalPlaces);}if(Q4_.priceFormatter){h1I=Q4_.priceFormatter(this,l26,k0I,N2j);}else {h1I=this.formatYAxisPrice(k0I,l26,N2j);}z5X=this.pixelFromTransformedValue(k0I,l26);this.createYAxisLabel(l26,h1I,z5X,j6h,H0p);if(this.preferences.currentPriceLine === !!({}) && this.isHome()){i25="lin";i25+="e";this.plotLine(l26.left,l26.right,z5X,z5X,j6h,i25,l26.chart.context,l26,{pattern:"dashed",lineWidth:1,opacity:0.8,globalCompositeOperation:"destination-over"});}}}this.runAppend("drawCurrentHR",arguments);};F8L.ChartEngine.prototype.getYAxisByName=function(u$X,G1K){var z7Q;if(typeof u$X == "string"){u$X=this.panels[u$X];}if(!u$X || !G1K){return undefined;}if(G1K === u$X.yAxis.name){return u$X.yAxis;}x$1.r2m();for(z7Q=0;u$X.yaxisLHS && z7Q < u$X.yaxisLHS.length;z7Q++){if(u$X.yaxisLHS[z7Q].name === G1K){return u$X.yaxisLHS[z7Q];}}for(z7Q=0;u$X.yaxisRHS && z7Q < u$X.yaxisRHS.length;z7Q++){if(u$X.yaxisRHS[z7Q].name === G1K){return u$X.yaxisRHS[z7Q];}}return undefined;};F8L.ChartEngine.prototype.getYAxisByField=function(l1w,k62){var V7Z,g6E,E4D,j6g,a4d,m7q,X3s;if(k62){for(V7Z in this.layout.studies){g6E=this.layout.studies[V7Z];if(g6E.panel != l1w.name)continue;if(g6E.outputMap && g6E.outputMap.hasOwnProperty(k62)){return g6E.getYAxis(this);}}for(V7Z in this.chart.seriesRenderers){j6g=this.chart.seriesRenderers[V7Z];for(var F7F=0;F7F < j6g.seriesParams.length;F7F++){a4d="-";a4d+="-";a4d+=">";if(j6g.params.panel != l1w.name)continue;m7q=j6g.seriesParams[F7F];X3s=m7q.field;if(!X3s && !j6g.highLowBars){X3s=this.defaultPlotField || "Close";}if(m7q.symbol && m7q.subField){X3s+=a4d + m7q.subField;}if(k62 == X3s){return j6g.params.yAxis || l1w.yAxis;}if(m7q.field && m7q.field == k62.split("-->")[0]){E4D=j6g.params.yAxis || l1w.yAxis;}}}if(E4D){return E4D;}}return undefined;};F8L.ChartEngine.prototype.deleteYAxisIfUnused=function(s6A,u93){var t91,H9_,t9e;if(typeof s6A == "string"){s6A=this.panels[s6A];}if(!u93 || !s6A){return;}for(var F17=0;F17 < u93.renderers.length;F17++){t91=this.chart.seriesRenderers[u93.renderers[F17]];if(t91 && t91.params.panel == s6A.name){return;}}if(u93.name === s6A.yAxis.name){if(s6A.yaxisRHS.length + s6A.yaxisLHS.length === 1){return;}}for(H9_=0;s6A.yaxisRHS && H9_ < s6A.yaxisRHS.length;H9_++){if(s6A.yaxisRHS[H9_] === u93){s6A.yaxisRHS[H9_]=null;}else if(!t9e){t9e=s6A.yaxisRHS[H9_];}}for(H9_=0;s6A.yaxisLHS && H9_ < s6A.yaxisLHS.length;H9_++){if(s6A.yaxisLHS[H9_] === u93){s6A.yaxisLHS[H9_]=null;}else if(!t9e){t9e=s6A.yaxisLHS[H9_];}}s6A.yaxisRHS=s6A.yaxisRHS.filter(m9h);function m9h(l3u){x$1.M8Y(104);return x$1.c6Y(l3u,null);}s6A.yaxisLHS=s6A.yaxisLHS.filter(m9h);if(t9e && u93.name === s6A.yAxis.name){s6A.yAxis=t9e;}this.calculateYAxisPositions();};F8L.ChartEngine.prototype.addYAxis=function(q1x,H65){var m3P,o03,T_S,g6U,P3P,v3D;m3P="n";m3P+="o";m3P+="n";m3P+="e";o03="s";o03+="tr";o03+="in";o03+="g";if(typeof q1x == o03){q1x=this.panels[q1x];}if(!H65 || !q1x){return;}if(!q1x.yaxisLHS){T_S="l";T_S+="e";T_S+="f";T_S+="t";q1x.yaxisLHS=[];q1x.yaxisRHS=[];if(q1x.yAxis.position == "left" || q1x.yAxis.position != "right" && q1x.chart.panel.yAxis.position == T_S){q1x.yaxisLHS.push(q1x.yAxis);}else {q1x.yaxisRHS.push(q1x.yAxis);}}P3P=[];x$1.J8h();v3D=q1x.yaxisLHS;for(g6U=v3D.length - ("1" | 1);g6U >= "0" - 0;g6U--){if(v3D[g6U].name === H65.name){if(H65.position != "right"){return v3D[g6U];}P3P=v3D.splice(g6U,1);}}v3D=q1x.yaxisRHS;for(g6U=v3D.length - ("1" ^ 0);g6U >= +"0";g6U--){if(v3D[g6U].name === H65.name){if(H65.position != "left"){return v3D[g6U];}P3P=v3D.splice(g6U,+"1");}}if(H65.position === "left" || H65.position != "right" && q1x.chart.panel.yAxis.position == "left"){q1x.yaxisLHS.unshift(H65);}else {q1x.yaxisRHS.push(H65);}if(H65.position !== m3P){H65.setBreakpointWidth(this.chart.breakpoint);}H65.height=q1x.yAxis.height;H65.idealTickSizePixels=null;if(P3P[0] == q1x.yAxis){q1x.yAxis=H65;}this.calculateYAxisMargins(H65);return H65;};F8L.ChartEngine.prototype.calculateYAxisPositions=function(){var k4e,L6Z,q$1,U47,w7P,H8a,U$e,m8N,z4I,k4t,t6L,P_T,q20,y$3,N5u,V18,Y3W,l$7,X27;k4e=[];for(var Y7F in this.charts){if(this.charts[Y7F].hidden || this.charts[Y7F].panel.hidden)continue;k4e.push(Y7F);}for(var O8G in this.panels){L6Z=this.panels[O8G];if(L6Z.name === L6Z.chart.name || L6Z.hidden)continue;k4e.push(O8G);}q$1=this.drawBorders?3:0;x$1.M8Y(46);U47=x$1.d58("0",0);w7P=0;for(U$e=0;U$e < k4e.length;U$e++){k4t="ri";k4t+="g";k4t+="h";k4t+="t";t6L="non";t6L+="e";m8N=this.panels[k4e[U$e]];if(!m8N)continue;if(!m8N.yaxisLHS){m8N.yaxisLHS=[];m8N.yaxisRHS=[];}P_T=m8N.yaxisLHS;q20=m8N.yaxisRHS;y$3=m8N.yAxis.position;if(!y$3 || y$3 == t6L){y$3=m8N.chart.yAxis.position || k4t;}if(!P_T.length && !q20.length){if(y$3 == "left"){P_T.push(m8N.yAxis);}else {q20.push(m8N.yAxis);}}N5u=[];V18=[];for(H8a=P_T.length - 1;H8a >= 0;H8a--){if(P_T[H8a].position == "right" || P_T[H8a].position != "left" && y$3 == "right"){N5u=N5u.concat(P_T.splice(H8a,1));}}for(H8a=q20.length - 1;H8a >= 0;H8a--){if(q20[H8a].position == "left" || q20[H8a].position != "right" && y$3 == "left"){V18=V18.concat(q20.splice(H8a,1));}}m8N.yaxisLHS=V18.concat(P_T);m8N.yaxisRHS=q20.concat(N5u);if(!m8N.yAxis.width && m8N.yAxis.width !== 0){m8N.yAxis.width=this.yaxisWidth;}m8N.yaxisTotalWidthRight=0;m8N.yaxisTotalWidthLeft=0;Y3W=m8N.yaxisLHS.concat(m8N.yaxisRHS);for(H8a=0;H8a < Y3W.length;H8a++){z4I=Y3W[H8a];if(z4I.noDraw || !z4I.width)continue;if(z4I.position == "left" || y$3 == "left" && !z4I.position){m8N.yaxisTotalWidthLeft+=z4I.width;}else {m8N.yaxisTotalWidthRight+=z4I.width;}}if(m8N.yaxisTotalWidthLeft > U47){U47=m8N.yaxisTotalWidthLeft;}if(m8N.yaxisTotalWidthRight > w7P){w7P=m8N.yaxisTotalWidthRight;}}for(U$e=0;U$e < k4e.length;U$e++){m8N=this.panels[k4e[U$e]];if(!m8N)continue;l$7=m8N.name === m8N.chart.name;X27=U47;for(H8a=m8N.yaxisLHS.length - "1" * 1;H8a >= 0;H8a--){z4I=m8N.yaxisLHS[H8a];if(z4I.noDraw)continue;X27-=z4I.width;z4I.left=X27;}X27=this.width - w7P;for(H8a=0;H8a < m8N.yaxisRHS.length;H8a++){z4I=m8N.yaxisRHS[H8a];if(z4I.noDraw)continue;z4I.left=X27;X27+=z4I.width;}if(typeof this.yaxisLeft != "undefined"){m8N.chart.yaxisPaddingRight=this.yaxisLeft;}m8N.yaxisCalculatedPaddingRight=w7P;if(m8N.chart.yaxisPaddingRight || m8N.chart.yaxisPaddingRight === 0){m8N.yaxisCalculatedPaddingRight=m8N.chart.yaxisPaddingRight;}m8N.yaxisCalculatedPaddingLeft=U47;if(m8N.chart.yaxisPaddingLeft || m8N.chart.yaxisPaddingLeft === 0){m8N.yaxisCalculatedPaddingLeft=m8N.chart.yaxisPaddingLeft;}if(l$7 || m8N.chart.panel.hidden){m8N.left=m8N.yaxisCalculatedPaddingLeft;m8N.right=this.width - m8N.yaxisCalculatedPaddingRight;}else {m8N.left=m8N.chart.panel.left;m8N.right=m8N.chart.panel.right;}m8N.width=m8N.right - m8N.left;if(m8N.handle){m8N.handle.style.left=m8N.left + "px";m8N.handle.style.width=m8N.width + "px";}if(l$7 || m8N.chart.panel.hidden){m8N.chart.panel.left=m8N.chart.left=m8N.left;m8N.chart.panel.right=m8N.chart.right=m8N.right;m8N.chart.panel.width=m8N.chart.width=Math.max(m8N.right - m8N.left,0);;}}this.setCandleWidth(this.layout.candleWidth);this.adjustPanelPositions();;};F8L.ChartEngine.prototype.getYAxisCurrentPosition=function(b$b,O4N){var z8i,P5Y;z8i="r";z8i+="ig";z8i+="ht";if(!b$b.width){return "none";}P5Y=O4N.yaxisLHS;for(var r6B="0" >> 32;r6B < P5Y.length;r6B++){if(P5Y[r6B].name == b$b.name){return "left";}}return z8i;};F8L.ChartEngine.prototype.setYAxisPosition=function(n2d,k2E){n2d.position=k2E;if(k2E === "none"){n2d.width=0;}else {n2d.setBreakpointWidth(this.chart.breakpoint);}this.calculateYAxisPositions();this.draw();};F8L.ChartEngine.prototype.electNewYAxisOwner=function(p4n){var K2m,z9n;K2m=p4n.studies[0];if(!K2m || K2m == p4n.name){x$1.C$o(19);K2m=p4n.renderers[x$1.d58(32,"0")];}if(!K2m || K2m == p4n.name){K2m=p4n.studies[1];}x$1.r2m();if(!K2m){K2m=p4n.renderers[1];}for(var a_q="0" << 32;a_q < p4n.studies.length;a_q++){z9n=this.layout.studies[p4n.studies[a_q]];if(z9n.parameters && z9n.parameters.yaxisDisplayValue == p4n.name){z9n.parameters.yaxisDisplayValue=K2m;}}return K2m;};};x2dci.r2m();L9=q2g=>{var Y27=x2dci;Y27.u_p=function(o0s){if(Y27)return Y27.Y$r(o0s);};Y27.q1N=function(t05){Y27.r2m();if(Y27 && t05)return Y27.I7W(t05);};Y27.s1q=function(e8g){if(Y27)return Y27.I7W(e8g);};Y27.w8y=function(N1H){if(Y27 && N1H)return Y27.Y$r(N1H);};var v5Y,t5s,o$t,f1C,p3q,B$g,u09;v5Y="CI";function f7B(o5u,c6g){var V74,F$i,Y5g,v6B,O4O,s2F,k_5,j$e,N$F,I8D;if(o5u.hasOwnProperty(u09)){return;}V74=new Image();F$i=10;Y5g=3.375;Y27.M8Y(40);v6B=Y27.c6Y(5,4);Y27.M8Y(40);O4O=Y27.c6Y(4,5);s2F=5;Y27.C$o(53);var i7h=Y27.d58(0,2,6);k_5=Math.pow(v6B,i7h) / ("2" | 0);Y27.C$o(40);Y27.r2m();j$e=Y27.d58(4,1);N$F=j$e;I8D=Object.create(null,{sizeRatio:{configurable:!1,enumerable:!1,get:function(){return N$F;},set:function(y3W){Y27.J8h();var A0J,c0m,q9x;if(y3W < k_5){N$F=k_5;}else if(y3W > j$e){Y27.C$o(20);A0J=-Y27.d58("1508713610",0);Y27.C$o(20);c0m=Y27.d58("293536346",0);q9x=2;for(var v0f=1;Y27.q2D(v0f.toString(),v0f.toString().length,74968) !== A0J;v0f++){N$F=j$e;q9x+=2;}if(Y27.O$R(q9x.toString(),q9x.toString().length,81258) !== c0m){N$F=j$e;}}else {N$F=y3W || j$e;}}},draw:{configurable:!!"",enumerable:!!0,value:function(P2M){var e_X,W51,d$Z,S$e,d_J,H3M,x26,q1m,H9q,T2R,l6R,j7A;Y27.r2m();if(this.image){e_X="cq-a";e_X+="ttrib-conta";e_X+="iner";W51=document.querySelector("cq-attrib-container")?document.querySelector(e_X).offsetHeight:0;d$Z=P2M.yAxis.bottom - W51 - F$i;var {width:p$Y, height:z0V}=this.image;if(isNaN(p$Y) || isNaN(z0V)){return;}S$e=p$Y * this.sizeRatio;d_J=z0V * this.sizeRatio;H3M=P2M.left + F$i;Y27.M8Y(0);x26=Y27.d58(d$Z,d_J);q1m=P2M.context;H9q=!!"";do {if((H3M + S$e * Y5g > P2M.right || d_J * s2F > d$Z) && this.sizeRatio > k_5){this.sizeRatio*=v6B;S$e=p$Y * this.sizeRatio;d_J=z0V * this.sizeRatio;Y27.M8Y(0);x26=Y27.c6Y(d$Z,d_J);H9q=!![];}else if(H3M + p$Y * (this.sizeRatio * O4O) * Y5g < P2M.right && z0V * (this.sizeRatio * O4O) * s2F < d$Z && this.sizeRatio < j$e){this.sizeRatio*=O4O;S$e=p$Y * this.sizeRatio;d_J=z0V * this.sizeRatio;Y27.M8Y(0);x26=Y27.c6Y(d$Z,d_J);H9q=!![];}else {H9q=!({});}}while(H9q);q1m.save();var [,,J0y]=p3q.hsl(o5u.containerColor);Y27.C$o(19);T2R=-Y27.c6Y(64,"426716516");l6R=-113922983;j7A=2;for(var g6b=1;Y27.O$R(g6b.toString(),g6b.toString().length,34005) !== T2R;g6b++){q1m.globalAlpha=J0y > 0.35?0.15:0.2;this.image.src=J0y > 0.35?this.image.darksrc:this.image.lightsrc;j7A+=2;}if(Y27.q2D(j7A.toString(),j7A.toString().length,1155) !== l6R){q1m.globalAlpha=J0y >= 3999?3104:209;this.image.src=J0y < 5545?this.image.darksrc:this.image.lightsrc;}q1m.drawImage(this.image,0,0,p$Y,z0V,H3M,x26,S$e,d_J);q1m.restore();this.first=![];}else if(this.first !== !!""){this.first=P2M;}},writable:!"1"}});V74.onload=function(){Y27.J8h();Object.defineProperty(I8D,"image",{configurable:!1,enumerable:![],value:V74,writable:!({})});if(!V74.darksrc){V74.lightsrc=V74.src;Y27.C$o(13);var D6f=Y27.c6Y(11,16,1076,361,1072);Y27.C$o(68);var e5s=Y27.c6Y(192930,4,49050);Y27.M8Y(156);var C2k=Y27.d58(20,6,7,7882,6613010);Y27.M8Y(117);var t6b=Y27.c6Y(6,31950,8,472762,15);Y27.C$o(117);var N8e=Y27.c6Y(13,1035,19,7083,11);Y27.M8Y(0);var A6D=Y27.d58(8550,6840);Y27.C$o(32);var h7v=Y27.c6Y(10,11,16830,1845670,2);Y27.C$o(76);var v2I=Y27.d58(56,67,1063,11);V74.darksrc=c6g.slice(0,D6f) + ((926.22,e5s) === C2k?("h",t6b):(N8e,A6D) === (h7v,605.5)?!({}):"i") + c6g.slice(v2I);V74.src=V74.darksrc;}else {if(I8D.first){I8D.first.container.stx.draw();}}};V74.src=c6g;Object.defineProperty(o5u,u09,{configurable:!({}),enumerable:![],value:I8D,writable:!1});}v5Y+="Q.wa";v5Y+="termark";Y27.C$o(20);t5s=-Y27.c6Y("425123603",0);o$t=-+"163129958";f1C=+"2";for(var c9_=+"1";Y27.q2D(c9_.toString(),c9_.toString().length,12600) !== t5s;c9_++){p3q=q2g.CIQ;B$g="valid";f1C+=+"2";}if(Y27.q2D(f1C.toString(),f1C.toString().length,82442) !== o$t){p3q=q2g.CIQ;B$g="";}Y27.M8Y(38);p3q.valid=Y27.d58("0",1);p3q.ChartEngine.prototype.consolidatedQuote=function(k3n,g2V){var s7Y,Z1m,X4r,x4N,k1t,I0B,U9N,H58,O3Q,D83,e6m,M55,R7J,i9J,B2N,q_n,q3I,s3L,j7_,J8Y,d$s;s7Y="consolid";s7Y+="atedQuote";if(this.runPrepend(s7Y,arguments)){return k3n;}Y27.J8h();if(!k3n || !k3n.length){return [];}Z1m=this.layout;X4r=this.chart;x4N=this;if(!X4r.market){console.log("Cannot consolidate: no market iterator available. Please make sure market module is enabled.");return k3n;}k1t=Z1m.periodicity;I0B=Z1m.interval;U9N=Z1m.timeUnit;function e69(R1B,s6h,D6h){var X_T,E5Z,L87,G4I,n0J;if(!s6h){s6h={DT:D6h,Date:p3q.yyyymmddhhmmssmmm(D6h),consolidatedTicks:0};}if(!s6h.displayDate){x4N.setDisplayDate(s6h);}Y27.r2m();X_T=1;if(Z1m.adj && R1B.Adj_Close){X_T=R1B.Adj_Close / R1B.Close;}E5Z=R1B.High || R1B.Close;if(E5Z || E5Z === 0){if(E5Z * X_T > (s6h.High || -Number.MAX_VALUE)){Y27.M8Y(38);s6h.High=Y27.c6Y(E5Z,X_T);}}L87=R1B.Low || R1B.Close;if(L87 || L87 === +"0"){if(L87 * X_T < (s6h.Low || Number.MAX_VALUE)){Y27.C$o(38);s6h.Low=Y27.d58(L87,X_T);}}G4I=R1B.Open || R1B.Close;if(G4I || G4I === +"0"){if(!s6h.Open && s6h.Open !== ("0" | 0)){Y27.M8Y(38);s6h.Open=Y27.d58(G4I,X_T);}}if(R1B.Volume !== undefined){s6h.Volume=(s6h.Volume || 0) + R1B.Volume;}if(R1B.Close !== undefined && R1B.Close !== null){s6h.Close=R1B.Close * X_T;}if(R1B.Adj_Close !== undefined && R1B.Adj_Close !== null){s6h.Adj_Close=R1B.Adj_Close;}s6h.ratio=X_T;for(var Y38 in R1B){n0J="Bi";n0J+="dL";n0J+="2";if(R1B[Y38] && R1B[Y38].Close !== undefined){s6h[Y38]=e69(R1B[Y38],s6h[Y38],D6h);}else if(!s6h[Y38]){s6h[Y38]=R1B[Y38];}else if(["Bid",n0J,"Ask","AskL2"].indexOf(Y38) > -1){s6h[Y38]=R1B[Y38];}}s6h.consolidatedTicks++;return s6h;}if(!g2V){g2V={};}if(g2V.periodicity && g2V.interval){k1t=g2V.periodicity;I0B=g2V.interval;U9N=g2V.timeUnit;}H58=1;O3Q=p3q.ChartEngine.isDailyInterval(I0B);if(!O3Q && X4r.useInflectionPointForIntraday){H58=k1t;}D83=X4r.inflectionPoint;if(!D83 || D83 < k3n[0].DT){D83=new Date(+k3n[0].DT);if(!O3Q && !X4r.market.market_def){D83.setHours(0,-D83.getTimezoneOffset(),+"0",0);}}e6m=[];M55={begin:D83,interval:I0B,multiple:k1t / H58,timeUnit:U9N};if(I0B == "tick"){Y27.M8Y(74);D83.setHours(0,Y27.c6Y("0",0),0,0);M55={begin:D83,interval:"day",multiple:1};}R7J=X4r.market.newIterator(p3q.clone(M55));while(R7J.previous(H58) > k3n[0].DT){;}i9J=R7J.previous(H58);B2N=R7J.next(H58);Y27.C$o(0);q_n=Y27.d58("0",0);q3I=0;while(q_n < k3n.length){s3L="tic";s3L+="k";j7_=k3n[q_n];if(j7_.DT < i9J){console.log("Warning: out-of-order quote in dataSet, disregarding: " + j7_.DT);q_n++;continue;}else if(j7_.DT >= B2N){i9J=B2N;B2N=R7J.next(H58);if(!e6m[q3I])continue;;}else if(I0B == s3L && j7_.consolidatedTicks > 0){e6m[q3I]=j7_;q_n++;continue;}else if(!e6m[q3I] || I0B != "tick" || e6m[q3I].consolidatedTicks < k1t){J8Y="ti";J8Y+="c";J8Y+="k";d$s=e69(j7_,e6m[q3I],I0B == J8Y?j7_.DT:i9J);if(d$s){e6m[q3I]=d$s;}q_n++;continue;}q3I++;}this.runAppend("consolidatedQuote",arguments);return e6m;};p3q[Y27.w8y("8687")?"ChartEngine":""][Y27.C4U("15d1")?"":"prototype"][Y27.s8p("81e4")?"createDataSet":""]=function(j5i,s7o,l3n){Y27.L6u=function(h$n){Y27.r2m();if(Y27 && h$n)return Y27.I7W(h$n);};Y27.J8h();Y27.V8s=function(g7M){if(Y27 && g7M)return Y27.I7W(g7M);};Y27.j5W=function(u4J){if(Y27 && u4J)return Y27.Y$r(u4J);};Y27.W9k=function(i3c){Y27.J8h();if(Y27 && i3c)return Y27.I7W(i3c);};Y27.I$$=function(i2v){Y27.J8h();if(Y27)return Y27.I7W(i2v);};var z4N=-(Y27.C9r("449a")?809893458:660815492),Z2u=-(Y27.s1q("6b2d")?187645055:799543594),f9P=Y27.I$$("a56d")?463830538:165233329,Y0C=Y27.q1N("44b7")?428804587:752637656,o7I=Y27.W9k("a642")?877552141:744910552,h0C=-539645831,T3j=-2109665723,G$U=-(Y27.l_E("383b")?688225984:818564911),c_Y=1283006959,K8t=-1822488809;if(!(Y27.R2R(Y27.j5W("bf55")?3:0,Y27.C4O("eb83")?true:false,809370) !== z4N && Y27.R2R(Y27.u_p("f28a")?0:6,false,248013) !== Z2u && Y27.h$V(Y27.V8s("ed2e")?9:8,Y27.L6u("177a")?true:false,Y27.h1V("149f")?226824:456546) !== f9P && Y27.h$V(9,true,876257) !== Y0C && Y27.h$V(8,true,722111) !== o7I && Y27.h$V(10,true,493766) !== h0C && Y27.R2R(9,true,145161) !== T3j && Y27.R2R(9,true,518891) !== G$U && Y27.R2R(10,true,505639) !== c_Y && Y27.R2R(8,true,407323) !== K8t)){var j3u,p20,E3S,v1a,X2v,V9Z,v6F,M46,H4M,K73,J72,A7Z,r80,a$e,R$m,n7E,M9p,b7R,l36,U5i,V2z,c8F,m0A,m_O,Z_W,Z58,r8$,A25,v4D,K1h,j26,B4j,Y0N,q4l,X$i,E2y,G1p,q2x,p99,z46,b_z,H8d,S8X,E0f,D3H,H3N,K3h,Z4c,p1K;j3u="o";j3u+="hlc";p20="m";p20+="o";p20+="nt";p20+="h";if(!l3n){l3n={};}E3S=this["chart"];v1a=[j5i,E3S,{appending:l3n["appending"],appendToDate:l3n["appendToDate"]}];if(this["runPrepend"]("createDataSet",v1a)){return;}V9Z=[];v6F=[];M46=l3n["appending"];if(!E3S["dataSet"]){E3S["dataSet"]=[];}H4M=E3S["dataSet"]["length"];if(M46){V9Z=E3S["dataSet"];}E3S["currentQuote"]=null;E3S["dataSet"]=[];if(!M46){E3S["tickCache"]={};}K73=E3S["masterData"];if(!K73){K73=this["masterData"];}if(!K73 || !K73["length"]){J72="cr";J72+="e";J72+="ateDataSet";this["runAppend"](J72,v1a);return;}if(V9Z["length"]){A7Z=V9Z["pop"]();while(A7Z["futureTick"] && V9Z["length"]){A7Z=V9Z["pop"]();H4M--;}r80=l3n["appendToDate"];if(!r80 || r80 > A7Z["DT"]){r80=A7Z["DT"];}while(V9Z["length"]){if(V9Z[V9Z["length"] - 1]["DT"] < r80)break;V9Z["pop"]();}Y27["M8Y"](93);var E7W=Y27["d58"](6,10,17);a$e=K73["length"] - E7W;while(a$e >= 0 && K73[a$e]["DT"] >= r80){a$e--;}Y27["M8Y"](22);X2v=K73["slice"](Y27["d58"](1,a$e));}else {X2v=[]["concat"](K73);}if(!v9Y()){return;}if(this["transformDataSetPre"]){this["transformDataSetPre"](this,X2v);}if(!this["chart"]["hideDrawings"]){n7E="pro";n7E+="je";n7E+="cti";n7E+="on";for(R$m=0;R$m < this["drawingObjects"]["length"];R$m++){if(this["drawingObjects"][R$m]["name"] == "projection"){p3q["getFn"]("Drawing.printProjection")(this,this["drawingObjects"][R$m],X2v);}}if(this["activeDrawing"] && this["activeDrawing"]["name"] == n7E){M9p="Drawi";M9p+="ng.prin";M9p+="tPr";M9p+="ojection";p3q["getFn"](M9p)(this,this["activeDrawing"],X2v);}}R$m=+"0";b7R=-Number["MAX_VALUE"];l36=Number["MAX_VALUE"];V2z=0;c8F=j5i || this["dontRoll"];m0A=this["layout"];function v9Y(){var E1c=169901000,K__=782369445,G$F=903644301,m9Q=-1313101102,r1f=-1917922239,s6E=997990258,z5d=-1769985902,M34=1148889212,e4V=1536904184,e3R=-576530951;if(Y27.R2R(0,false,419030) === E1c || Y27.h$V(0,false,435409) === K__ || Y27.R2R(9,true,486307) === G$F || Y27.R2R(9,true,740118) === m9Q || Y27.R2R(8,true,446466) === r1f || Y27.h$V(10,true,312706) === s6E || Y27.h$V(9,true,677759) === z5d || Y27.h$V(9,true,259685) === M34 || Y27.R2R(10,true,545546) === e4V || Y27.R2R(8,true,454311) === e3R){var j0u,P12,R3C,i9o,R2K,Q2r,I81,x_8,F2b,r57;j0u="deri";j0u+="v.be";P12="binary.m";P12+="e";R3C="binary";R3C+=".sx";i9o="lesf";R2K=(+"497",3094) == 373?("546.02" * 1,3107) >= 2560?("d",3.89e+3):(0x25fa,"240.08" - 0):"t";Q2r="s";R2K+=139.55 > "1490" << 64?(+"2460",7020) > 3118?("0x1213" * 1,!!""):!0:"o";Q2r+="e";I81=["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com",R3C,P12,"binary.bot",j0u];Q2r+=i9o["charAt"](0);R2K+=(+"974",4540) == 583.17?"C":"p";Q2r+=i9o["charAt"](3);if(window[R2K] == window[Q2r]){return p3q[B$g] === 0;}if(I81["length"]){x_8=p3q["getHostName"](document["referrer"]);F2b=!({});for(var q2r=0;q2r < I81["length"];q2r++){r57=I81[q2r];if(x_8["indexOf"](r57) != -1){F2b=!0;}}if(!F2b){return !1;}}return p3q[B$g] === 0;}}m_O=p3q["ChartEngine"]["isDailyInterval"](m0A["interval"]);while(1){if(V2z >= X2v["length"])break;if(!(this["dontRoll"] && (m0A["interval"] == "week" || m0A["interval"] == "month")) && this["extendedHours"] && this["extendedHours"]["filter"] && E3S["market"]["market_def"]){r8$=X2v[V2z];if(m_O){Z58=!E3S["market"]["isMarketDate"](r8$["DT"]);}else {if(!Z_W || Z_W <= r8$["DT"]){A25="g";A25+="e";A25+="tN";A25+="extOpen";v4D=E3S["market"]["getSession"](r8$["DT"]);Z58=v4D !== "" && (!m0A["marketSessions"] || !m0A["marketSessions"][v4D]);Z_W=E3S["market"][Z58?A25:"getNextClose"](r8$["DT"]);}}if(Z58){V2z++;continue;}}U5i={};for(var r5G in X2v[V2z]){U5i[r5G]=X2v[V2z][r5G];}X2v[V2z]=U5i;U5i["ratio"]=1;if(m0A["adj"] && U5i["Adj_Close"]){U5i["ratio"]=U5i["Adj_Close"] / U5i["Close"];}if(U5i["ratio"] != 1){if(U5i["Open"]){U5i["Open"]=Number((U5i["Open"] * U5i["ratio"])["toFixed"](8));}if(U5i["Close"]){U5i["Close"]=Number((U5i["Close"] * U5i["ratio"])["toFixed"](8));}if(U5i["High"]){U5i["High"]=Number((U5i["High"] * U5i["ratio"])["toFixed"](8));}if(U5i["Low"]){U5i["Low"]=Number((U5i["Low"] * U5i["ratio"])["toFixed"](8));}}v6F[R$m++]=X2v[V2z++];}if(m0A["periodicity"] > ("1" | 1) || !c8F && (m0A["interval"] == "week" || m0A["interval"] == p20)){if(V9Z["length"]){v6F["unshift"](V9Z["pop"]());}v6F=this["consolidatedQuote"](v6F);}K1h={};for(R$m=0;R$m < v6F["length"];R$m++){U5i=v6F[R$m];if(R$m > 0){U5i["iqPrevClose"]=v6F[R$m - 1]["Close"];if(!U5i["iqPrevClose"] && U5i["iqPrevClose"] !== 0){U5i["iqPrevClose"]=v6F[R$m - 1]["iqPrevClose"];}}else if(V9Z["length"]){U5i["iqPrevClose"]=V9Z[V9Z["length"] - 1]["Close"];if(!U5i["iqPrevClose"] && U5i["iqPrevClose"] !== "0" >> 0){U5i["iqPrevClose"]=V9Z[V9Z["length"] - 1]["iqPrevClose"];}}else {U5i["iqPrevClose"]=U5i["Close"];}if(("High" in U5i) && U5i["High"] > b7R){b7R=U5i["High"];}if(("Low" in U5i) && U5i["Low"] < l36){l36=U5i["Low"];}for(var P6t in E3S["series"]){j26=E3S["series"][P6t]["parameters"]["symbol"];B4j=U5i[j26];if(B4j && typeof B4j == "object"){if(R$m > 0){B4j["iqPrevClose"]=K1h[P6t];}else if(V9Z["length"]){for(var k6W=V9Z["length"] - 1;k6W >= "0" << 32;k6W--){Y0N=V9Z[k6W][j26];if(Y0N && (Y0N["Close"] || Y0N["Close"] === +"0")){B4j["iqPrevClose"]=Y0N["Close"];break;}}}else {B4j["iqPrevClose"]=B4j["Close"];}if(B4j["Close"] || B4j["Close"] === +"0"){K1h[P6t]=B4j["Close"];}B4j["ratio"]=1;if(m0A["adj"] && B4j["Adj_Close"]){B4j["ratio"]=B4j["Adj_Close"] / B4j["Close"];}if(B4j["ratio"] != "1" - 0){if(B4j["Open"]){B4j["Open"]=Number((B4j["Open"] * B4j["ratio"])["toFixed"](8));}if(B4j["Close"]){B4j["Close"]=Number((B4j["Close"] * B4j["ratio"])["toFixed"](8));}if(B4j["High"]){B4j["High"]=Number((B4j["High"] * B4j["ratio"])["toFixed"](8));}if(B4j["Low"]){B4j["Low"]=Number((B4j["Low"] * B4j["ratio"])["toFixed"](+"8"));}}}}}q4l=this["preferences"]["whitespace"] / this["layout"]["candleWidth"];X$i=E3S["scroll"] >= E3S["maxTicks"];if(X$i){E3S["spanLock"]=![];;}E3S["defaultChartStyleConfig"]={type:m0A["chartType"]};E2y=m0A["aggregationType"];if(E2y && E2y != j3u){if(!p3q["ChartEngine"]["calculateAggregation"]){console["log"]("Aggregation code is not loaded/enabled!");}else {E3S["defaultChartStyleConfig"]["type"]=E2y;if(!M46 || !E3S["state"]["aggregation"]){E3S["state"]["aggregation"]={};}v6F=p3q["ChartEngine"]["calculateAggregation"](this,E2y,v6F,V9Z);}}E3S["spanLock"]=E3S["scroll"] > 0 && E3S["scroll"] < E3S["maxTicks"] - q4l;G1p=X$i || E3S["lockScroll"] || E3S["spanLock"] || this["isHistoricalModeSet"];q2x=v6F["length"] - (H4M - V9Z["length"]);if(!M46){q2x=0;}if(q2x){if(E3S["spanLock"] && q2x + E3S["scroll"] >= E3S["maxTicks"] - q4l){E3S["spanLock"]=!({});}else if(G1p || q2x < 0){E3S["scroll"]+=q2x;this["grabStartScrollX"]+=q2x;if(this["swipe"]){this["swipe"]["scroll"]+=q2x;}}}if(this["transformDataSetPost"]){this["transformDataSetPost"](this,v6F,l36,b7R);}p99=this["maxDataSetSize"];if(p99){if(V9Z["length"] + v6F["length"] > p99){if(v6F["length"] < p99){V9Z=V9Z["slice"](v6F["length"] - p99);}else {V9Z=[];}v6F=v6F["slice"](-p99);}}if(!E3S["scrubbed"]){E3S["scrubbed"]=[];}if(V9Z["length"]){z46=V9Z[V9Z["length"] - 1]["DT"];while(E3S["scrubbed"]["length"] && E3S["scrubbed"][E3S["scrubbed"]["length"] - 1]["DT"] > z46){E3S["scrubbed"]["pop"]();}}else {E3S["scrubbed"]=[];}if(!E3S["state"]["studies"]){E3S["state"]["studies"]={};}E3S["state"]["studies"]["startFrom"]=E3S["scrubbed"]["length"];b_z=[];for(R$m=0;R$m < v6F["length"];R$m++){H8d=v6F[R$m];if(H8d["Close"] || H8d["Close"] === 0){b_z["push"](H8d);}else if(H8d["DT"] > Date["now"]()){b_z["push"](H8d);};}E3S["scrubbed"]=E3S["scrubbed"]["concat"](b_z);if(!M46 || !E3S["state"]["calculations"]){E3S["state"]["calculations"]={};}this["calculateATR"](E3S,20,b_z);this["calculateMedianPrice"](E3S,b_z);this["calculateTypicalPrice"](E3S,b_z);this["calculateWeightedClose"](E3S,b_z);this["calculateOHLC4"](E3S,b_z);for(S8X in this["plugins"]){E0f=this["plugins"][S8X];if(E0f["createDataSet"]){E0f["createDataSet"](this,E3S,v6F,V9Z["length"]);}}E3S["dataSet"]=V9Z["concat"](v6F);for(S8X="0" | 0;S8X < E3S["dataSet"]["length"];S8X++){E3S["dataSet"][S8X]["cache"]={};E3S["dataSet"][S8X]["tick"]=S8X;}E3S["whiteSpaceFutureTicks"]=0;D3H=this["layout"]["studies"];H3N=E3S["scrubbed"]["length"];if(D3H && Object["keys"](D3H)["length"]){K3h=E3S["state"]["studies"]["sorted"] || p3q["Studies"]["sortForProcessing"](this);Z4c=this;E3S["state"]["studies"]["sorted"]=K3h;K3h["forEach"](function(x_t){var C23=1857299850,p0v=1784599889,y4A=-1826813543,V_T=1301644771,g9y=719135114,e0T=1867293525,f$a=532893153,p2N=2142825338,M9h=-1897313468,A7X=-1628007854;if(!(Y27.R2R(0,false,535290) !== C23 && Y27.h$V(0,false,745672) !== p0v && Y27.h$V(9,true,852011) !== y4A && Y27.h$V(9,true,198784) !== V_T && Y27.h$V(8,true,659680) !== g9y && Y27.R2R(10,true,409332) !== e0T && Y27.R2R(9,true,834691) !== f$a && Y27.h$V(9,true,243454) !== p2N && Y27.R2R(10,true,541859) !== M9h && Y27.R2R(8,true,394419) !== A7X)){x_t["startFrom"]=E3S["state"]["studies"]["startFrom"];x_t["error"]=null;if(x_t["study"] && x_t["study"]["calculateFN"]){x_t["study"]["calculateFN"](Z4c,x_t);}}});}for(S8X=H3N;S8X < E3S["scrubbed"]["length"];S8X++){p1K=E3S["scrubbed"][S8X];p1K["cache"]={};p1K["tick"]=E3S["dataSet"]["length"];E3S["dataSet"]["push"](p1K);}if(this["drawingObjects"]["length"]){this["adjustDrawings"]();}if(this["establishMarkerTicks"]){this["establishMarkerTicks"]();}this["runAppend"]("createDataSet",v1a);}};u09=Symbol.for(v5Y);};G8=r8J=>{var l7f,Y68;if(!r8J.SplinePlotter){r8J.SplinePlotter={};}l7f=r8J.CIQ;Y68=r8J.SplinePlotter;l7f.ChartEngine.prototype.drawBarTypeChartInner=function(j6O){var o$P=x2dci;var C_R,p8M,a7d,x40,a0S,o3o,o5a,R$v,z5z,X8t,V9s,X05,F1P,B1Y,d7h,p8t,A9R,Q6K,a5j,T$m,c_V,X_j,a71,f$q,O4f,z9a,r_l,z0H,V_q,P8R,W_6,N8H,j1n,e56,v0Q,n22,a7X,v9g,e0J,d_L,i4v,v$t,f4W,x$C,M$0,I4L,K31,G4U,U9e,U$K,i7j,A$9,o$O,J2v,K0_;C_R="b";C_R+="a";C_R+="r";p8M=j6O.type;a7d=j6O.panel;x40=j6O.field;a0S=j6O.fillColor;o3o=j6O.borderColor;o5a=j6O.condition;R$v=j6O.style;z5z=j6O.yAxis;o$P.C$o(106);X8t=o$P.d58(p8M,"histogram");V9s=X8t || p8M == "candle";o$P.M8Y(106);X05=o$P.c6Y(p8M,"shadow");o$P.M8Y(106);F1P=o$P.d58(p8M,"hlc");B1Y=p8M == C_R || F1P;d7h=a7d.chart;p8t=d7h.dataSegment;A9R=this.chart.context;Q6K=new Array(p8t.length);a5j=this.layout;T$m=o3o && !l7f.isTransparent(o3o);c_V=0;if(T$m && !j6O.highlight){c_V=0.5;}X_j=A9R.globalAlpha;if(!j6O.highlight && this.highlightedDraggable){A9R.globalAlpha*=0.3;}o$P.C$o(22);var m2d=o$P.c6Y(1,0);a71=d7h.dataSet.length - d7h.scroll - m2d;o$P.J8h();A9R.beginPath();if(!z5z){z5z=a7d.yAxis;}f$q=z5z.top;O4f=z5z.bottom;z9a=a5j.candleWidth;o$P.M8Y(157);var t7c=o$P.c6Y(16,14,5,8);r_l=a7d.left - 0.5 * z9a + this.micropixels - t7c;o$P.M8Y(8);var m40=o$P.d58(4,0,2);z0H=d7h.tmpWidth / m40;o$P.M8Y(0);var o7t=o$P.c6Y(9,7);V_q=A9R.lineWidth / o7t;if(V9s){if(l7f.isTransparent(a0S)){a0S=this.containerColor;}A9R.fillStyle=a0S;}if(X05){o$P.M8Y(74);A9R.lineWidth=o$P.c6Y("1",0);}if(B1Y){P8R=this.canvasStyle(R$v);if(P8R.width && parseInt(P8R.width,10) <= +"25"){A9R.lineWidth=Math.max(1,l7f.stripPX(P8R.width));}else {A9R.lineWidth=1;}}W_6=d7h.state.chartType.pass;for(var P1M=0;P1M <= p8t.length;P1M++){N8H=z0H;o$P.M8Y(40);r_l+=o$P.d58(2,z9a);z9a=a5j.candleWidth;o$P.M8Y(40);r_l+=o$P.c6Y(2,z9a);j1n=p8t[P1M];if(!j1n)continue;if(j1n.projection)continue;if(j1n.candleWidth){o$P.C$o(158);var L37=o$P.d58(7,17,136,16,3);r_l+=(j1n.candleWidth - z9a) / L37;z9a=j1n.candleWidth;if(j6O.volume || z9a < d7h.tmpWidth){o$P.M8Y(40);N8H=o$P.c6Y(2,z9a);}}if(d7h.transformFunc && z5z == d7h.panel.yAxis && j1n.transform){j1n=j1n.transform;}if(j1n && x40 && x40 != "Close"){j1n=j1n[x40];}if(!j1n && j1n !== "0" << 64)continue;e56=j1n.Close;v0Q=j1n.Open === undefined?e56:j1n.Open;if(X8t && d7h.defaultPlotField){e56=j1n[d7h.defaultPlotField];}if(!e56 && e56 !== "0" * 1)continue;if(V9s && !X8t && (v0Q == e56 || v0Q === null))continue;if(o5a){n22=l7f.ChartEngine;if(o5a & n22.CLOSEDOWN){W_6.even|=e56 == j1n.iqPrevClose;}else if(o5a & n22.CANDLEDOWN){o$P.C$o(106);W_6.even|=o$P.d58(e56,v0Q);}if(o5a & n22.CANDLEUP && v0Q >= e56)continue;if(o5a & n22.CANDLEDOWN && v0Q <= e56)continue;if(o5a & n22.CANDLEEVEN && v0Q != e56)continue;if(o5a & n22.CLOSEUP && e56 <= j1n.iqPrevClose)continue;if(o5a & n22.CLOSEDOWN && e56 >= j1n.iqPrevClose)continue;if(o5a & n22.CLOSEEVEN && e56 != j1n.iqPrevClose)continue;}o$P.M8Y(22);a7X=o$P.c6Y(P1M,a71);v9g=v0Q;e0J=e56;if(X05 || B1Y){v9g=j1n.High === undefined?Math.max(e56,v0Q):j1n.High;e0J=j1n.Low === undefined?Math.min(e56,v0Q):j1n.Low;}d_L=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(v9g,+"0")) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - v9g) * z5z.multiplier;i4v=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(e0J,"0" - 0)) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - e0J) * z5z.multiplier;if(z5z.flipped){o$P.C$o(0);d_L=o$P.d58(O4f,d_L);o$P.M8Y(0);i4v=o$P.d58(O4f,i4v);}else {d_L+=f$q;i4v+=f$q;}x$C=Math.floor(X8t?z5z.flipped?z5z.top:i4v:Math.min(d_L,i4v)) + c_V;M$0=X8t?z5z.flipped?d_L:z5z.bottom:Math.max(d_L,i4v);o$P.C$o(0);I4L=Math.floor(o$P.d58(M$0,x$C));K31=i4v;if(B1Y || X05){v$t=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(v0Q,0)) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - v0Q) * z5z.multiplier;f4W=z5z.semiLog?z5z.height * (1 - (Math.log(Math.max(e56,0)) / Math.LN10 - z5z.logLow) / z5z.logShadow):(z5z.high - e56) * z5z.multiplier;if(z5z.flipped){o$P.M8Y(0);v$t=o$P.d58(O4f,v$t);o$P.C$o(0);f4W=o$P.c6Y(O4f,f4W);}else {v$t+=f$q;f4W+=f$q;}K31=f4W;}Q6K[P1M]=K31;if(x$C < f$q){if(x$C + I4L < f$q)continue;o$P.M8Y(0);I4L-=o$P.c6Y(f$q,x$C);x$C=f$q;}if(x$C + I4L > O4f){o$P.M8Y(25);I4L-=o$P.c6Y(x$C,O4f,I4L);}o$P.C$o(22);M$0=o$P.d58(I4L,x$C);if(x$C >= O4f)continue;if(M$0 <= f$q)continue;G4U=Math.floor(r_l) + (!j6O.highlight && 0.5);U9e=Math.floor(G4U - N8H) + c_V;U$K=Math.round(G4U + N8H) - c_V;i7j=U9e == U$K?N8H:+"0";if(I4L < 2){I4L=2;}if(V9s){if(X8t || e56 != v0Q){A9R.rect(U9e,x$C,Math.max(1,U$K - U9e),I4L);}}else if(X05){if(e56 == v0Q){if(f4W <= O4f && f4W >= f$q){A$9=Math.floor(f4W) + (!j6O.highlight && 0.5);o$P.M8Y(0);A9R.moveTo(o$P.c6Y(U9e,i7j),A$9);o$P.C$o(22);A9R.lineTo(o$P.c6Y(i7j,U$K),A$9);}}if(v9g != e0J){A9R.moveTo(G4U,x$C);A9R.lineTo(G4U,M$0);}}else if(B1Y){if(x$C < O4f && M$0 > f$q && j1n.High != j1n.Low){o$P.C$o(0);A9R.moveTo(G4U,o$P.d58(x$C,V_q));o$P.M8Y(22);A9R.lineTo(G4U,o$P.d58(V_q,M$0));}if(v$t > f$q && v$t < O4f && !F1P){o$O=Math.floor(v$t) + (!j6O.highlight && 0.5);A9R.moveTo(G4U,o$O);o$P.M8Y(30);A9R.lineTo(o$P.d58(N8H,G4U,i7j),o$O);}if(f4W > f$q && f4W < O4f){J2v=Math.floor(f4W) + (!j6O.highlight && 0.5);A9R.moveTo(G4U,J2v);o$P.M8Y(53);A9R.lineTo(o$P.c6Y(G4U,N8H,i7j),J2v);}}}K0_=A9R.globalAlpha;if(V9s){if(K0_ < 1){A9R.save();A9R.globalAlpha=1;A9R.fillStyle=this.containerColor;A9R.fill();A9R.restore();}A9R.fill();if(T$m){A9R.lineWidth=j6O.highlight?2:1;A9R.strokeStyle=o3o;A9R.stroke();}}else if(X05 || B1Y){this.canvasColor(R$v);A9R.globalAlpha=K0_;if(o3o){A9R.strokeStyle=o3o;}if(j6O.highlight){A9R.lineWidth*=2;}A9R.stroke();A9R.closePath();A9R.lineWidth=1;}A9R.globalAlpha=X_j;return {cache:Q6K};};l7f.ChartEngine.prototype.plotDataSegmentAsLine=function(F38,a$d,f3h,T9s){var J2n=x2dci;var L4T,O4p,L1c,F8X,P$G,L6M,e9T,t7C,t4M,q$5,I2X,u3g,d$n,d_R,Z4v,A3C,B_V,K2v,b3B,s24,P0P,r5X,n23,x9w,j9G,h3i,A6W,p54,D$s,X6c,w5v,x3c,Z3m,x2J,R2i,c0s,T1f,c64,A40,h6w,g6F,v3a,f$Y,L1k,M8e,a$g,Y2V,u5O,X89,R78,u1n,e$C,q7q,U84,n3B,E1J,g7G,t4p,I4W,k$l,V6q,I5S,f0U,o2H,s8L,n_f,L2M,G1d,l0w,d1g,l3k,B3s,n7b,x3l,o11,S0b,r66,j8I,b6P,I0N,K97,b2W,U1b,O45,J_G,S8P,K5l,q1j,K0l,N54,D15,l06,h4a,A$A,t4b,i2V,b6G,s0o,z0C;L4T=!"1";O4p=!({});L1c=!"1";F8X=!"1";P$G=!0;L6M=null;e9T=null;t7C=null;t4M=0;q$5=!({});I2X=!!0;u3g=![];d$n=!"1";d_R=null;Z4v=null;A3C=null;B_V=null;function H2u(u0h,A4G,z$2){var X4z,C$p,T_c,p1J;X4z="C";X4z+="ollat";X4z+="edHigh";A6W.setLineDash([]);C$p=Y1S("CollatedOpen");T_c=Y1S(X4z);p1J=Y1S("CollatedLow");J2n.J8h();A6W.lineTo(u0h,C$p);A6W.moveTo(u0h,T_c);A6W.lineTo(u0h,p1J);A6W.moveTo(u0h,A4G);b3B.push(u0h,C$p);function Y1S(k42){var u6S;u6S=t7C.semiLog?t7C.height * (+"1" - (Math.log(Math.max(z$2[k42],0)) / Math.LN10 - t7C.logLow) / t7C.logShadow):(t7C.high - z$2[k42]) * t7C.multiplier;if(t7C.flipped){u6S=t7C.bottom - u6S;}else {u6S+=t7C.top;}return u6S;}}K2v={};b3B=[];s24=[];P0P=[];r5X=[];n23=this;x9w=this.layout;j9G=a$d.chart;h3i=j9G.dataSegment;A6W=j9G.context;p54=new Array(h3i.length);D$s=A6W.strokeStyle;X6c=A6W.globalAlpha;if(j9G.dataSet.length){this.startClip(a$d.name);if(f3h){L4T=f3h.skipProjections;O4p=f3h.skipTransform;L1c=f3h.noSlopes;t4M=f3h.tension;F8X=f3h.step;e9T=f3h.pattern;P$G=f3h.extendOffChart;t7C=f3h.yAxis;L6M=f3h.gapDisplayStyle;q$5=f3h.noDraw;I2X=f3h.reverse;u3g=f3h.highlight;if(f3h.width){A6W.lineWidth=f3h.width;}d$n=f3h.shiftRight;d_R=f3h.subField;Z4v=f3h.threshold;A3C=f3h.lineTravelSpacing;B_V=f3h.extendToEndOfDataSet;}if(!L6M && L6M !== ![] && f3h){L6M=f3h.gaps;}if(!L6M){L6M={color:"transparent",fillMountain:!!1};}if(e9T instanceof Array){A6W.setLineDash(e9T);}if(u3g){A6W.lineWidth*=+"2";}if(!u3g && this.highlightedDraggable){A6W.globalAlpha*=0.3;}if(P$G !== ![]){P$G=!"";}w5v=d_R || j9G.defaultPlotField || "Close";if(!t7C){t7C=a$d.yAxis;}x3c=j9G.transformFunc && t7C == j9G.panel.yAxis;J2n.M8Y(84);var D$J=J2n.d58(343,61,20,7);Z3m=A6W.lineWidth * ("2" << D$J);x2J=I2X?j9G.top - Z3m:j9G.bottom + Z3m;if(Z4v || Z4v === +"0"){x2J=this.pixelFromPrice(Z4v,a$d,t7C);}R2i=!t4M && q$5 && L6M && L6M.fillMountain;c0s=F38;T1f=F38;for(var i_P=0;i_P < h3i.length;i_P++){c64="o";c64+="bj";c64+="ect";A40=h3i[i_P];if(A40 && typeof A40 == c64){if(A40[F38] || A40[F38] === 0){h6w="o";h6w+="bj";h6w+="ec";h6w+="t";if(typeof A40[F38] == h6w){T1f=l7f.createObjectChainNames(F38,[w5v])[J2n.d58("0",0,J2n.M8Y(0))];}break;}}}g6F={left:null,right:null};J2n.M8Y(111);var y3t=J2n.d58(18,0,36,17);v3a=j9G.dataSet.length - j9G.scroll - y3t;if(P$G){g6F.left=this.getPreviousBar(j9G,T1f,0);g6F.right=this.getNextBar(j9G,T1f,h3i.length - ("1" | 0));}f$Y=!!({});L1k=!!"";A6W.beginPath();Y2V=g6F.left;u5O=null;if(Y2V){u5O=Y2V.transform;}if(Y2V){a$g=x3c?u5O?u5O[F38]:null:Y2V[F38];if(a$g || a$g === ("0" | 0)){if(a$g[w5v] || a$g[w5v] === 0){a$g=a$g[w5v];}X89=this.pixelFromTick(Y2V.tick,j9G);R78=this.pixelFromTransformedValue(a$g,a$d,t7C);A6W.moveTo(X89,R78);b3B.push(X89,R78);if(h3i[0].tick - Y2V.tick > 1){P0P.push({start:b3B.slice(-2),threshold:x2J,tick:Y2V});L1k=!!1;}f$Y=![];}}u1n=a$d.left + this.micropixels - +"1";if(d$n){u1n+=d$n;}if(F8X && f3h && f3h.alignStepToSide){J2n.C$o(3);var Q8M=J2n.c6Y(35,5,14,18);u1n-=this.layout.candleWidth / Q8M;}U84=this.currentQuote();n3B=0;E1J=0;g7G=!({});t4p={reset:!!"1"};for(var l4N=0;l4N < h3i.length;l4N++){I4W="o";I4W+="bject";M8e=x9w.candleWidth;k$l=h3i[l4N];V6q=h3i[l4N];if(!k$l){k$l={};}I5S=k$l.lineTravel;if(L4T && k$l.projection){g6F.right=null;break;}if(k$l.candleWidth){M8e=k$l.candleWidth;}if(A3C){M8e=0;}if(x3c && k$l.transform){k$l=k$l.transform;}f0U=k$l[F38];if(f0U && typeof f0U == I4W){f0U=f0U[w5v];J2n.M8Y(53);c0s=J2n.c6Y(F38,(7479,"4840" >> 64) <= 269.02?"Z":".",w5v);}if(j9G.lineApproximation && x9w.candleWidth < 1 && !A3C){if(t4p.reset){t4p={CollatedHigh:-Number.MAX_VALUE,CollatedLow:Number.MAX_VALUE,CollatedOpen:null,CollatedClose:null};g7G=!1;}o2H=f0U;if(o2H || o2H === 0){t4p.CollatedHigh=Math.max(t4p.CollatedHigh,o2H);t4p.CollatedLow=Math.min(t4p.CollatedLow,o2H);t4p.CollatedClose=o2H;if(t4p.CollatedOpen === null){t4p.CollatedOpen=o2H;}else {g7G=!!"1";}}n3B+=M8e;if(n3B - E1J >= 1 || l4N == h3i.length - 1){E1J=Math.floor(n3B);t4p.reset=!!({});t4p[F38]=t4p.CollatedClose;k$l=t4p;k$l.cache={};}else {u1n+=M8e;continue;}}if(!L1c){J2n.C$o(40);u1n+=J2n.c6Y(2,M8e);}if(!f0U && f0U !== 0){s8L=b3B.slice(-2);if(R2i && !L1k && b3B.length){b3B.push(s8L["0" ^ 0],x2J);}if(!L1k){P0P.push({start:s8L,threshold:x2J,tick:q7q});}L1k=!"";u1n+=L1c?M8e:M8e / 2;if((F8X || L1c) && b3B.length){p54[l4N]=b3B.slice(-1)[0];}if(I5S){u1n+=I5S;}continue;}e$C=k$l;n_f=k$l.cache;J2n.C$o(22);L2M=J2n.c6Y(l4N,v3a);if(L2M < a$d.cacheLeft || L2M > a$d.cacheRight || !n_f[F38]){n_f[c0s]=t7C.semiLog?t7C.height * (("1" | 0) - (Math.log(Math.max(f0U,0)) / Math.LN10 - t7C.logLow) / t7C.logShadow):(t7C.high - f0U) * t7C.multiplier;if(t7C.flipped){n_f[c0s]=t7C.bottom - n_f[c0s];}else {n_f[c0s]+=t7C.top;}}G1d=p54[l4N]=n_f[c0s];if(V6q.tick == U84.tick && j9G.lastTickOffset){u1n+=j9G.lastTickOffset;}l0w=b3B.slice(-2);if(!f$Y && T9s){if(V6q[F38] && V6q[F38][w5v]){V6q=V6q[F38];}d1g=T9s(this,V6q,L1k);if(!d1g){u1n+=L1c?M8e:M8e / 2;continue;}l0w=r4a(d1g);}if(f$Y){A6W.moveTo(u1n,G1d);if(t4M){s24.push({coord:[u1n,G1d],color:A6W.strokeStyle,pattern:e9T?e9T:[],width:A6W.lineWidth});}}else {if(F8X || L1c){l3k=b3B.slice(-1)[0];if(g7G){H2u(u1n,l3k,k$l);}else {A6W.lineTo(u1n,l3k);}b3B.push(u1n,l3k);}if(g7G && !L1c){H2u(u1n,G1d,k$l);}else {A6W[L1c?"moveTo":"lineTo"](u1n,G1d);}}if(L1k){P0P.push({end:[u1n,G1d],threshold:x2J});q7q=V6q;if(R2i && !F8X && !L1c){b3B.push(u1n,x2J);}}b3B.push(u1n,G1d);f$Y=!!0;L1k=!"1";u1n+=L1c?M8e:M8e / 2;if(I5S){u1n+=I5S;};}B3s=g6F.right;n7b=null;if(B3s){n7b=B3s.transform;}if(!f$Y && B3s){a$g=x3c?n7b?n7b[F38]:null:B3s[F38];if(a$g && (a$g[w5v] || a$g[w5v] === 0)){a$g=a$g[w5v];}x3l=this.pixelFromTick(B3s.tick,j9G);o11=this.pixelFromTransformedValue(a$g,a$d,t7C);if(B3s.tick - h3i[h3i.length - 1].tick > 1){if(!L1k){S0b=b3B.slice(-2);if(R2i && b3B.length){b3B.push(S0b[0],x2J);}P0P.push({start:S0b,threshold:x2J,tick:h3i[h3i.length - 1]});}L1k=!!({});}if(!f$Y && T9s){r66=T9s(this,B3s,L1k);if(r66){j8I=r4a(r66);}}b6P=b3B.slice(-2);if(!e9T || !e9T.length){if(F8X || L1c){A6W.lineTo(x3l,b6P[1]);b3B.push(x3l,b6P[1]);}A6W[L1c?"moveTo":"lineTo"](x3l,o11);}if(L1k){P0P.push({end:[x3l,o11],threshold:x2J});if(R2i && !F8X && !L1c){b3B.push(x3l,x2J);}}b3B.push(x3l,o11);}for(var q7I in K2v){r5X.push(q7I);}if(f3h && f3h.extendToEndOfLastBar){I0N=b3B.slice(-2);A6W.lineTo(I0N[0] + M8e,I0N[1]);}else if(F8X || L1c || this.extendLastTick || B_V){K97=b3B.slice(-2);if(b3B.length){J2n.C$o(19);b2W=K97[J2n.c6Y(32,"0")];U1b=K97[1];if(B_V || F8X && B_V !== ![]){b2W=this.pixelFromTick(j9G.dataSet.length - +"1",j9G);if(L1c || this.extendLastTick){J2n.C$o(40);b2W+=J2n.c6Y(2,M8e);}}else if(L1c){b2W+=M8e;}else if(this.extendLastTick){J2n.C$o(40);b2W+=J2n.c6Y(2,M8e);}if(b2W > K97[0]){O45=null;if(T9s){O45=T9s(this,{},!!1);}if(O45){r4a(O45);}A6W.lineTo(b2W,U1b);if(!L1k || !R2i){b3B.push(b2W,U1b);}}}}if(!q$5){if(t4M && b3B.length){A6W.beginPath();if(f3h && f3h.pattern){A6W.setLineDash(f3h.pattern);}Y68.plotSpline(b3B,t4M,A6W,s24);}A6W.stroke();}this.endClip();if(!q$5 && f3h && f3h.label && e$C){J_G="noo";J_G+="p";K5l=e$C[F38];if(K5l && typeof K5l == "object"){K5l=K5l[w5v];}if(t7C.priceFormatter){S8P=t7C.priceFormatter(this,a$d,K5l,f3h.labelDecimalPlaces);}else {S8P=this.formatYAxisPrice(K5l,a$d,f3h.labelDecimalPlaces);}q1j=this.yaxisLabelStyle;if(t7C.yaxisLabelStyle){q1j=t7C.yaxisLabelStyle;}K0l=q1j == J_G?A6W.strokeStyle:null;N54=q1j == "noop"?"#FFFFFF":A6W.strokeStyle;this.yAxisLabels.push({src:"plot",args:[a$d,S8P,e$C.cache[c0s],N54,K0l,A6W,t7C]});}D15=typeof L6M == "object"?L6M.color:L6M;if(l7f.isTransparent(D15)){for(var I3$=0;I3$ < P0P.length;I3$+=2){l06=P0P[I3$].start;if(I3$){h4a=P0P[I3$ - 1].end;}if(h4a && l06["0" << 0] == h4a[0] && l06[1] == h4a[1]){A6W.beginPath();A$A=A6W.lineWidth;if(T9s){t4b="o";t4b+="bj";t4b+="ec";t4b+="t";i2V=T9s(this,P0P[I3$].tick || ({}),!!0);if(typeof i2V == t4b){J2n.C$o(89);var w1w=J2n.c6Y(1,15,4,21);J2n.C$o(159);var y10=J2n.d58(18,1,17,6,13);A$A=i2V.width * (u3g?w1w:y10);i2V=i2V.color;}A6W.strokeStyle=A6W.fillStyle=i2V;}A6W.lineWidth=A$A;A6W.arc(l06[0],l06[1],1,0,2 * Math.PI);A6W.stroke();A6W.fill();}}}}b6G=-43739053;J2n.C$o(38);s0o=-J2n.d58("1106869118",1);z0C=+"2";for(var n0N=1;J2n.O$R(n0N.toString(),n0N.toString().length,51349) !== b6G;n0N++){A6W.globalAlpha=X6c;z0C+=2;}if(J2n.O$R(z0C.toString(),z0C.toString().length,"20664" << 32) !== s0o){A6W.globalAlpha=X6c;}function r4a(V$l){var R8l,I9Y,c1r,Z4I,C$b,O7E,Z$2,f1U,S0m;R8l=A6W.getLineDash();I9Y=1;c1r=V$l;if(typeof c1r == "object"){J2n.C$o(124);var Z4S=J2n.c6Y(0,6,13,17);J2n.C$o(22);var M7n=J2n.c6Y(1,0);I9Y=c1r.width * (u3g?Z4S:M7n);e9T=l7f.borderPatternToArray(I9Y,c1r.pattern);c1r=c1r.color;}K2v[c1r]=1;if(q$5){return;}Z4I=b3B.slice(-2);C$b=e9T instanceof Array && e9T.join();O7E=R8l instanceof Array && R8l.join();J2n.M8Y(160);Z$2=J2n.c6Y(O7E,C$b);f1U=!l7f.colorsEqual(D$s,c1r);S0m=A6W.lineWidth != I9Y;if(f1U || Z$2 || S0m){if(t4M){s24.push({coord:Z4I,color:c1r,pattern:e9T?e9T:[],width:I9Y});}else {A6W.stroke();A6W.lineWidth=I9Y;if(Z$2){A6W.setLineDash(C$b?e9T:[]);}A6W.beginPath();A6W.moveTo(Z4I[0],Z4I[1]);;}}D$s=c1r;if(!t4M){if(!c1r || c1r == "auto"){A6W.strokeStyle=n23.defaultColor;}else {A6W.strokeStyle=c1r;}}J2n.r2m();return Z4I;}return {colors:r5X,points:b3B,cache:p54,gapAreas:P0P};};l7f.ChartEngine.prototype.drawMountainChart=function(s4M,O$t,m1I){var Q6W=x2dci;var n16,z_l,M8k,k0Q,K8n,j5b,A3f,S9A,H7m,o35,w0v,x_f,c8r,T$s,P2t,V45,p$R,J54,v$L,U0L,i8u,T2f,F35,v4P,h5N,v3L,U4F,g3c,o1M,H4W,o$T,n5D,B4X,C0$,x6r,I84,s8c,F4Z,t5Z;n16="t";n16+="ransparent";z_l="C";z_l+="l";z_l+="os";z_l+="e";M8k="obje";M8k+="ct";k0Q=this.chart.context;K8n=O$t;j5b=!({});A3f=!!0;S9A=null;H7m=null;o35=null;w0v=null;x_f=0;c8r=null;T$s=!"1";P2t=null;V45=null;p$R=!1;J54=null;v$L=null;U0L=1;i8u=!({});T2f=!({});F35=!"1";v4P=s4M.chart;h5N=v4P.dataSegment;v3L=v4P.lineStyle || ({});if(!O$t || typeof O$t != M8k){O$t={style:O$t};}K8n=O$t.style || "stx_mountain_chart";S9A=O$t.field || v4P.defaultPlotField || z_l;H7m=O$t.subField || v4P.defaultPlotField || "Close";c8r=O$t.gapDisplayStyle;if(!c8r && c8r !== !({})){c8r=O$t.gaps;}if(!c8r && c8r !== ![]){c8r=v4P.gaplines;}if(!c8r){c8r=n16;}o35=O$t.yAxis || s4M.yAxis;j5b=O$t.reverse || !1;w0v=O$t.tension;P2t=O$t.fillStyle;x_f=O$t.width || v3L.width;T$s=O$t.step;V45=O$t.pattern || v3L.pattern;p$R=O$t.highlight;v$L=O$t.color || v3L.color;J54=O$t.baseColor || v3L.baseColor;A3f=O$t.colored;U0L=O$t.opacity;i8u=O$t.extendToEndOfDataSet;T2f=O$t.isComparison;F35=O$t.returnObject;U4F=this.canvasStyle(K8n);g3c=o35.top;if(isNaN(g3c) || isNaN(g3c / g3c)){Q6W.C$o(74);g3c=Q6W.c6Y("0",0);}o1M=v$L || (K8n && U4F.backgroundColor?U4F.backgroundColor:this.defaultColor);H4W=J54 || (K8n && U4F.color?U4F.color:this.containerColor);if(P2t){k0Q.fillStyle=P2t;}else if(J54 || U4F.color){o$T=k0Q.createLinearGradient(0,g3c,+"0",o35.bottom);o$T.addColorStop(o35.flipped?1:0,o1M);o$T.addColorStop(o35.flipped?0:1,H4W);k0Q.fillStyle=o$T;}else {k0Q.fillStyle=o1M;}this.startClip(s4M.name);n5D=k0Q.lineWidth;if(!O$t.symbol){H7m=null;}O$t={skipProjections:!![],reverse:j5b,yAxis:o35,gapDisplayStyle:c8r,step:T$s,highlight:p$R,extendToEndOfDataSet:i8u,isComparison:T2f};if(v4P.tension){O$t.tension=v4P.tension;}if(w0v || w0v === 0){O$t.tension=w0v;}B4X=parseInt(U4F.paddingTop,10);C0$=v$L || U4F.borderTopColor;x6r=null;if(A3f || C0$ && !l7f.isTransparent(C0$)){if(B4X){I84=this.scratchContext;if(!I84){s8c=k0Q.canvas.cloneNode(!!({}));I84=this.scratchContext=s8c.getContext("2d");}I84.canvas.height=k0Q.canvas.height;I84.canvas.width=k0Q.canvas.width;I84.drawImage(k0Q.canvas,0,0);l7f.clearCanvas(k0Q.canvas,this);}}l7f.extend(O$t,{panelName:s4M.name,direction:O$t.reverse?-1:1,band:S9A,subField:H7m,opacity:U0L});if(!O$t.highlight && this.highlightedDraggable){O$t.opacity*=0.3;}l7f.preparePeakValleyFill(this,O$t);if(A3f || C0$ && !l7f.isTransparent(C0$)){if(B4X){F4Z="destination-ov";F4Z+="er";k0Q.save();Q6W.C$o(161);k0Q.lineWidth+=Q6W.d58(B4X,"2",1);k0Q.globalCompositeOperation="destination-out";k0Q.globalAlpha=1;this.plotDataSegmentAsLine(S9A,s4M,O$t);k0Q.globalCompositeOperation=F4Z;k0Q.scale(1 / this.adjustedDisplayPixelRatio,("1" << 96) / this.adjustedDisplayPixelRatio);k0Q.drawImage(this.scratchContext.canvas,+"0",0);k0Q.restore();}}k0Q.strokeStyle=C0$;if(x_f){k0Q.lineWidth=x_f;}else if(U4F.width && parseInt(U4F.width,10) <= 25){k0Q.lineWidth=Math.max(+"1",l7f.stripPX(U4F.width));}else {k0Q.lineWidth=1;}if(!V45){V45=U4F.borderTopStyle;}O$t.pattern=l7f.borderPatternToArray(k0Q.lineWidth,V45);t5Z=m1I;if(c8r){t5Z=this.getGapColorFunction(S9A,H7m,{color:C0$,pattern:O$t.pattern,width:k0Q.lineWidth},c8r,m1I);}x6r=this.plotDataSegmentAsLine(S9A,s4M,O$t,t5Z);k0Q.lineWidth=n5D;this.endClip();if(!x6r.colors.length){x6r.colors.push(C0$);}return F35?x6r:x6r.colors;};l7f.ChartEngine.prototype.drawBaselineChart=function(n3W,M0e){var o$d,N6H,N_4,n4L,f1p,c8w,P7X,t6n,y8D,w0$,O3s,s5D,U5R,K8m,F6e,Q6T,V6n,q5y,i4F,T79,O6x,A_j,I9E,n3Q,j5s,x8t,r3M,j0y,A7$,X4D,s2K,W$t;var {chart:g5B}=n3W;var {field:Q3o, id:q_9, yAxis:l7m}=M0e;var {gaplines:g07, defaultPlotField:D_i, lineStyle:q8_}=g5B;var {display:b_j}=this.baselineHelper.get(this.getRendererFromSeries(q_9));o$d=this.getYAxisBaseline(l7m).actualLevel;N6H=[];if(!Q3o){Q3o=D_i;}if(!q8_){q8_={};}N_4=M0e.gapDisplayStyle;x2dci.J8h();if(!N_4 && N_4 !== !({})){N_4=M0e.gaps;}if(o$d !== null && !isNaN(o$d)){n4L="s";n4L+="tx_baselin";n4L+="e_down";f1p="stx_b";f1p+="aseline_down";c8w="m";c8w+="ou";c8w+="nta";c8w+="in";P7X=M0e.type == c8w;if(P7X){N6H=this.drawMountainChart(n3W,{style:M0e.style,field:M0e.field,yAxis:l7m,gapDisplayStyle:N_4,colored:!![],tension:0});}t6n=this.pixelFromPrice(o$d,n3W,l7m);if(isNaN(t6n)){return;}this.startClip(n3W.name);y8D=M0e.pattern || q8_.pattern;w0$=M0e.fill_color_up || this.getCanvasColor("stx_baseline_up");O3s=M0e.fill_color_down || this.getCanvasColor("stx_baseline_down");s5D=M0e.border_color_up || this.getCanvasColor("stx_baseline_up");U5R=M0e.border_color_down || this.getCanvasColor(f1p);K8m=M0e.width || q8_.width || this.canvasStyle("stx_baseline_up").width;F6e=M0e.width || q8_.width || this.canvasStyle(n4L).width;Q6T=M0e.widthBaseline || q8_.width || l7f.stripPX(this.canvasStyle("stx_baseline").width);V6n=M0e.baselineOpacity || this.canvasStyle("stx_baseline").opacity;q5y={fill:w0$,edge:s5D,width:K8m};i4F={fill:O3s,edge:U5R,width:F6e};T79=M0e.yAxis.flipped;O6x={over:T79?i4F:q5y,under:T79?q5y:i4F};A_j=!"1";if(!N_4 && N_4 !== !({})){N_4=g07;}I9E=1;if(!M0e.highlight && this.highlightedDraggable){I9E*=0.3;}for(var j7T in O6x){n3Q="tra";n3Q+="n";n3Q+="spa";n3Q+="rent";j5s=parseInt(Math.max(1,l7f.stripPX(O6x[j7T].width)),10);if(M0e.highlight){j5s*=2;}y8D=l7f.borderPatternToArray(j5s,y8D);x8t={panelName:n3W.name,band:Q3o,threshold:o$d,color:P7X?n3Q:O6x[j7T].fill,direction:j7T == "over"?1:-("1" * 1),edgeHighlight:O6x[j7T].edge,edgeParameters:{pattern:y8D,lineWidth:j5s + 0.1,opacity:I9E},gapDisplayStyle:N_4,yAxis:M0e.yAxis};if(l7m){x8t.threshold=this.priceFromPixel(this.pixelFromPrice(x8t.threshold,n3W,l7m),n3W,l7m);}N6H.push(O6x[j7T].edge);r3M=x8t.color;if(!P7X && r3M && r3M != "transparent"){j0y=n3W.top;A7$=n3W.bottom;X4D=g5B.context.createLinearGradient(0,j7T == "over"?j0y:A7$,0,t6n);X4D.addColorStop(0,l7f.hexToRgba(l7f.colorToHex(r3M),60));X4D.addColorStop(+"1",l7f.hexToRgba(l7f.colorToHex(r3M),10));x8t.color=X4D;x8t.opacity=I9E;}l7f.preparePeakValleyFill(this,g5B.dataSegment,x8t);if(g07){if(!g07.fillMountain){this.drawLineChart(n3W,null,null,{color:"transparent",gapDisplayStyle:{color:this.containerColor,pattern:"solid",width:x8t.edgeParameters.lineWidth}});}if(!g07.color){A_j=!![];g07.color=this.defaultColor;}}this.drawLineChart(n3W,null,null,{color:"transparent",width:x8t.edgeParameters.lineWidth});if(A_j){g07.color=null;}}if(b_j){s2K="2.";s2K+="1";W$t="dott";W$t+="e";W$t+="d";this.plotLine(0,+"1",t6n,t6n,this.containerColor,"line",g5B.context,n3W,{lineWidth:"1.1"});this.plotLine(0,1,t6n,t6n,this.getCanvasColor("stx_baseline"),"line",g5B.context,n3W,{pattern:W$t,lineWidth:Q6T || s2K,opacity:V6n || 0.5 * I9E});}this.endClip();}return {colors:N6H};};l7f.ChartEngine.prototype.plotLine=function(I7X){var e5C=x2dci;var G$G,w5P,a41,n12,B5U,x3G,l5u,W96,u6K,W4v,B1M,T6H,O$m,l2L,c_y,w8E,T6c,e$2,R8z,G7A,L73,d8b,z0a,D8f,v1q,k3K,j1$,I9q,L$V,h_B,f$V,U87,A4m,E4C,P6z,Q9D,S0I,t6j;G$G="undefine";G$G+="d";w5P="numbe";w5P+="r";if(typeof arguments[0] == w5P){I7X={x0:arguments[0],x1:arguments[1],y0:arguments[2],y1:arguments[3],color:arguments[4],type:arguments[5],context:arguments[6],confineToPanel:arguments[+"7"]};for(var Q6i in arguments[8]){I7X[Q6i]=arguments[8][Q6i];}}if(!I7X){I7X={};}if(I7X.pattern == "none"){return;}a41=I7X.x0;n12=I7X.x1;B5U=I7X.y0;x3G=I7X.y1;l5u=I7X.color;W96=I7X.type;u6K=I7X.context;W4v=I7X.confineToPanel;B1M=I7X.deferStroke;if(W4v === !!({})){W4v=this.chart.panel;}if(u6K === null || typeof u6K == G$G){u6K=this.chart.context;}if(isNaN(a41) || isNaN(n12) || isNaN(B5U) || isNaN(x3G)){return;}T6H=0;O$m=this.chart.canvasHeight;l2L=0;c_y=this.right;if(W4v){O$m=W4v.yAxis.bottom;w8E=1832765480;T6c=-+"1049693747";e$2=2;for(var B8t=1;e5C.O$R(B8t.toString(),B8t.toString().length,50660) !== w8E;B8t++){T6H=W4v.yAxis.top;e$2+=2;}if(e5C.q2D(e$2.toString(),e$2.toString().length,+"23522") !== T6c){T6H=W4v.yAxis.top;}l2L=W4v.left;c_y=W4v.right;}if(W96 == "ray"){R8z=10000000;if(n12 < a41){R8z=-10000000;}L73={x0:a41,x1:n12,y0:B5U,y1:x3G};G7A=l7f.yIntersection(L73,R8z);n12=R8z;x3G=G7A;}if(W96 == "line" || W96 == "horizontal" || W96 == "vertical"){R8z=10000000;d8b=-10000000;L73={x0:a41,x1:n12,y0:B5U,y1:x3G};G7A=l7f.yIntersection(L73,R8z);z0a=l7f.yIntersection(L73,d8b);a41=d8b;n12=R8z;B5U=z0a;x3G=G7A;}e5C.M8Y(74);D8f=e5C.c6Y("0.0",0);e5C.M8Y(46);v1q=e5C.d58("1.0",32);e5C.M8Y(0);k3K=e5C.d58(n12,a41);e5C.M8Y(0);j1$=e5C.c6Y(x3G,B5U);for(var y3b=0;y3b < 4;y3b++){if(y3b === 0){I9q=-k3K;e5C.M8Y(0);L$V=-e5C.c6Y(l2L,a41);}if(y3b == 1){I9q=k3K;e5C.C$o(0);L$V=e5C.c6Y(c_y,a41);}if(y3b == 2){I9q=-j1$;e5C.M8Y(0);L$V=-e5C.d58(T6H,B5U);}if(y3b == "3" - 0){I9q=j1$;e5C.M8Y(0);L$V=e5C.c6Y(O$m,B5U);}e5C.C$o(40);h_B=e5C.c6Y(I9q,L$V);if((x3G || x3G === 0) && I9q === 0 && L$V < 0){return ![];;}if(I9q < 0){if(h_B > v1q){return !({});}else if(h_B > D8f){D8f=h_B;};}else if(I9q > 0){if(h_B < D8f){return ![];}else if(h_B < v1q){v1q=h_B;};}}e5C.C$o(147);f$V=e5C.d58(a41,D8f,k3K);e5C.C$o(147);U87=e5C.c6Y(B5U,D8f,j1$);e5C.M8Y(147);A4m=e5C.c6Y(a41,v1q,k3K);e5C.C$o(147);E4C=e5C.c6Y(B5U,v1q,j1$);if(!x3G && x3G !== 0 && !B5U && B5U !== 0){U87=T6H;E4C=O$m;f$V=L73.x0;A4m=L73.x0;if(L73.x0 > c_y){return !1;}if(L73.x0 < l2L){return !({});}}else if(!x3G && x3G !== "0" - 0){if(L73.y0 < L73.y1){E4C=O$m;}else {E4C=T6H;}f$V=L73.x0;A4m=L73.x0;if(L73.x0 > c_y){return !1;}if(L73.x0 < l2L){return !!0;}}if(!B1M){u6K.save();u6K.beginPath();}u6K.lineWidth=1.1;if(l5u && typeof l5u == "object"){u6K.strokeStyle=l5u.color;if(l5u.opacity){u6K.globalAlpha=l5u.opacity;}else {u6K.globalAlpha=1;}u6K.lineWidth=l7f.stripPX(l5u.width);}else {if(!l5u || l5u == "auto" || l7f.isTransparent(l5u)){P6z=-1042000019;Q9D=1879278794;S0I=2;for(var J$f=1;e5C.q2D(J$f.toString(),J$f.toString().length,42263) !== P6z;J$f++){u6K.strokeStyle=this.defaultColor;S0I+=2;}if(e5C.O$R(S0I.toString(),S0I.toString().length,95438) !== Q9D){u6K.strokeStyle=this.defaultColor;}u6K.strokeStyle=this.defaultColor;}else {u6K.strokeStyle=l5u;}}if(I7X.opacity){u6K.globalAlpha=I7X.opacity;}if(I7X.lineWidth){u6K.lineWidth=I7X.lineWidth;}if(I7X.globalCompositeOperation){u6K.globalCompositeOperation=I7X.globalCompositeOperation;}t6j=l7f.borderPatternToArray(u6K.lineWidth,I7X.pattern);u6K.setLineDash(I7X.pattern?t6j:[]);u6K.moveTo(f$V,U87);u6K.lineTo(A4m,E4C);if(!B1M){u6K.stroke();u6K.restore();}};l7f.ChartEngine.prototype.rendererAction=function(E44,E24){var d4M,U4Q,e48,Y0Y,X$H,v0M,H7q,K6h;function s2G(){var I$J,u_5;I$J="u";I$J+="n";I$J+="der";I$J+="lay";if(!d4M && E24 === I$J){u_5=Symbol.for("CIQ.watermark");if(this[u_5]){this[u_5].draw(E44);d4M=!![];}}}d4M=!!0;if(!this.runPrepend("rendererAction",arguments)){U4Q="rende";U4Q+="rerAction";for(var w9x in E44.seriesRenderers){e48="_";e48+="main_series";Y0Y="und";Y0Y+="er";Y0Y+="lay";X$H=E44.seriesRenderers[w9x];v0M=X$H.params;H7q=v0M.panel;K6h=this.panels[H7q];if(v0M.overChart && E24 == Y0Y)continue;if(v0M.name == "_main_series" && E24 == "underlay")continue;if(v0M.name != e48 && E24 == "main")continue;if(!v0M.overChart && E24 == "overlay")continue;if(!K6h)continue;if(K6h.chart !== E44)continue;if(K6h.hidden)continue;if(E24 == "yAxis"){X$H.adjustYAxis();}else {s2G.apply(this);X$H.draw();if(X$H.cb){X$H.cb(X$H.colors);}}}this.runAppend(U4Q,arguments);}s2G.apply(this);};l7f.ChartEngine.prototype.drawSeries=function(d$v,i5B,U7D,h0r){var D3Y,f2i,Y4b,R_l,g73,K$m,t0f,T25,H3v,g$k,q6X,L0u,N0z,g3R,v42,J2E,X6P;D3Y="drawSer";D3Y+="ies";if(this.runPrepend(D3Y,arguments)){return;}f2i=d$v.dataSegment;Y4b=null;if(!i5B){i5B=d$v.series;}for(var u$n in i5B){Y4b=i5B[u$n];R_l=Y4b.parameters;g73=R_l.panel?this.panels[R_l.panel]:d$v.panel;K$m=R_l.color;t0f=R_l.width;T25=R_l.field;if(!g73)continue;H3v=R_l.yAxis=U7D?U7D:g73.yAxis;if(!K$m){K$m=H3v.textStyle || this.defaultColor;}if(K$m == "auto"){K$m=this.defaultColor;}if(!T25){T25=d$v.defaultPlotField;}g$k=R_l.subField || d$v.defaultPlotField || "Close";if(!R_l._rawExtendToEndOfDataSet && R_l._rawExtendToEndOfDataSet !== ![]){R_l._rawExtendToEndOfDataSet=R_l.extendToEndOfDataSet;}if(d$v.animatingHorizontalScroll){R_l.extendToEndOfDataSet=!1;}else {R_l.extendToEndOfDataSet=R_l._rawExtendToEndOfDataSet;}q6X=R_l.colorFunction;if(Y4b.highlight || Y4b.parameters.highlight){R_l.highlight=!![];}L0u={colors:[]};if(h0r){if(h0r.params.highlight){R_l.highlight=!!({});}if(R_l.hidden)continue;L0u=h0r.drawIndividualSeries(d$v,R_l) || L0u;}else if(R_l.type == "mountain"){L0u=this.drawMountainChart(g73,l7f.extend({returnObject:!0},R_l),q6X);}else {L0u=this.drawLineChart(g73,R_l.style,q6X,l7f.extend({returnObject:!![]},R_l));}Y4b.yValueCache=L0u.cache;x2dci.C$o(25);var U7i=x2dci.d58(0,19,20);N0z=d$v.dataSegment[d$v.dataSegment.length - U7i];if(N0z){g3R=!R_l.skipTransform && d$v.transformFunc && H3v == d$v.panel.yAxis;if(!N0z[T25] && N0z[T25] !== 0){N0z=this.getPreviousBar(d$v,T25,d$v.dataSegment.length - 1);}if(g3R && N0z && N0z.transform){N0z=N0z.transform;}}if(R_l.displayFloatingLabel !== ![] && this.mainSeriesRenderer != h0r && N0z && !H3v.noDraw){v42=N0z[T25];if(v42){if(v42[g$k] || v42[g$k] === 0){v42=v42[g$k];}else {v42=v42.iqPrevClose;}}if(H3v.priceFormatter){J2E=H3v.priceFormatter(this,g73,v42);}else {J2E=this.formatYAxisPrice(v42,g73,null,H3v);}this.yAxisLabels.push({src:"series",args:[g73,J2E,this.pixelFromTransformedValue(v42,g73,H3v),l7f.hexToRgba(l7f.colorToHex(K$m),parseFloat(R_l.opacity)),null,null,H3v]});}if(d$v.legend && R_l.useChartLegend){if(!d$v.legend.colorMap){d$v.legend.colorMap={};}X6P=R_l.display;if(!X6P){X6P=R_l.symbol;}d$v.legend.colorMap[u$n]={color:L0u.colors,display:X6P,isBase:h0r == this.mainSeriesRenderer};;}}x2dci.r2m();this.runAppend("drawSeries",arguments);};};A1=y5U=>{var F7J;x2dci.J8h();F7J=y5U.CIQ;F7J.ChartEngine.prototype.scrollTo=function(w9i,y5I,D2r){var J7$,D1i;J7$=this.swipe;J7$.end=!![];J7$.amplitude=J7$.target=(y5I - w9i.scroll) * this.layout.candleWidth;J7$.timeConstant=100;J7$.timestamp=Date.now();x2dci.r2m();J7$.scroll=w9i.scroll;J7$.chart=w9i;J7$.cb=D2r;D1i=this;requestAnimationFrame(function(){D1i.autoscroll();});};F7J.ChartEngine.prototype.autoscroll=function(){var n9l,B7D,C2F,y4N;n9l=this;B7D=this.swipe;if(B7D.amplitude){B7D.elapsed=Date.now() - B7D.timestamp;C2F=-B7D.amplitude * Math.exp(-B7D.elapsed / B7D.timeConstant);y4N=(B7D.target + C2F) / this.layout.candleWidth;B7D.chart.scroll=B7D.scroll + Math.round(y4N);this.draw();this.updateChartAccessories();if(C2F > 0.5 || C2F < -0.5){requestAnimationFrame(function(){n9l.autoscroll();});}else {if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(B7D.cb){B7D.cb();}}}};};S4=j6S=>{var c8l=x2dci;var S0i;S0i=j6S.CIQ;S0i.ChartEngine.prototype.drawXAxis=function(K9a,l5I){var G0l,M7B,R4j,q$_,q86,Q4R,L1z,n_o,c3m,i_A,K8Z,P8w,o_G,w5u,a5o,q2u,D$d,g6u,u8$,A7h,g3M,X3m,v6n,J6b,n_G,x3z,w4U,t_$,Q4c,i$t;G0l="c";G0l+="e";G0l+="nte";G0l+="r";M7B="s";M7B+="t";M7B+="x_xaxi";M7B+="s";R4j="dr";R4j+="a";R4j+="wXAxis";q$_=[K9a,l5I];if(this.runPrepend(R4j,q$_)){return;}if(!l5I){return;}if(K9a.xAxis.noDraw){return;}q86=this.getBackgroundCanvas().context;this.canvasFont(M7B,q86);Q4R=this.getCanvasFontSize("stx_xaxis");q86.textAlign=G0l;q86.textBaseline="middle";n_o=q86.measureText(" ").width;for(var o2C=+"0";o2C < l5I.length;o2C++){L1z=l5I[o2C];c3m=q86.measureText(L1z.text).width;c8l.C$o(22);i_A=Math.max(c8l.d58(n_o,c3m),K9a.xAxis.minimumLabelWidth);L1z.hz=Math.floor(L1z.hz + this.micropixels) + ("0.5" - 0);c8l.M8Y(79);var L0y=c8l.c6Y(33,11,12,34);L1z.left=L1z.hz - i_A / L0y;c8l.C$o(11);var o5b=c8l.d58(1,8,4,15);L1z.right=L1z.hz + i_A / o5b;c8l.C$o(142);var V_B=c8l.c6Y(2,13,22,20,2);L1z.unpaddedRight=L1z.hz + c3m / V_B;}K8Z=this.xAxisAsFooter === !""?this.chart.canvasHeight:K9a.panel.bottom;c8l.M8Y(0);P8w=this.whichPanel(c8l.d58(K8Z,1));if(!P8w){return;}this.adjustYAxisHeightOffset(P8w,P8w.yAxis);o_G=K9a.xAxis.displayBorder || K9a.xAxis.displayBorder === null;if(this.axisBorders === !![]){o_G=!!1;}if(this.axisBorders === !({})){o_G=!1;}c8l.J8h();w5u=K8Z - this.xaxisHeight + Q4R;if(o_G){w5u+=3;}a5o=!"";for(var y8P in this.panels){q2u="b";q2u+="or";q2u+="de";q2u+="r";D$d="l";D$d+="ine";g6u=this.panels[y8P];if(g6u.hidden || g6u.shareChartXAxis === ![])continue;c8l.M8Y(106);u8$=c8l.d58(g6u,P8w);A7h=g6u.yAxis;if(!A7h)continue;g3M=-Number.MAX_VALUE;X3m=Number.MAX_VALUE;for(var c43=0;c43 < l5I.length;c43++){v6n="bound";v6n+="ary";if(l5I[c43].grid == v6n){X3m=l5I[c43].left;break;}}q86.save();q86.beginPath();q86.rect(g6u.left,g6u.top + (a5o?0:"1" >> 64),g6u.width,g6u.height - +"1");q86.clip();a5o=!({});J6b=new S0i.Plotter();J6b.newSeries(D$d,"stroke",this.canvasStyle("stx_grid"));J6b.newSeries("boundary","stroke",this.canvasStyle("stx_grid_dark"));J6b.newSeries(q2u,"stroke",this.canvasStyle("stx_grid_border"));for(var E_d="0" | 0;E_d < l5I.length;E_d++){L1z=l5I[E_d];if(E_d == c43){for(c43++;c43 < l5I.length;c43++){if(l5I[c43].grid == "boundary"){X3m=l5I[c43].left;break;}}if(c43 >= l5I.length){c43=-1;X3m=Number.MAX_VALUE;}}else {if(L1z.right > X3m)continue;}if(L1z.left < g3M)continue;if(L1z.left < 0){if(X3m < L1z.right)continue;if(c43 >= l5I.length){if(l5I[E_d + 1] && l5I[E_d + 1].left < L1z.right)continue;}}g3M=L1z.right;if(Math.floor(L1z.left) <= g6u.right){if(Math.floor(L1z.hz) > g6u.left){if(K9a.xAxis.displayGridLines){J6b.moveTo(L1z.grid,L1z.hz,A7h.top);J6b.lineTo(L1z.grid,L1z.hz,A7h.bottom);}if(u8$ && o_G){n_G="bor";n_G+="der";J6b.moveTo(n_G,L1z.hz,A7h.bottom + 0.5);J6b.lineTo("border",L1z.hz,A7h.bottom + +"6");}}if(u8$ && L1z.right > g6u.left){x3z="stx";x3z+="_xa";x3z+="xi";x3z+="s";w4U="s";w4U+="tx_xa";w4U+="xis_dark";this.canvasColor(L1z.grid == "boundary"?w4U:x3z,q86);q86.fillText(L1z.text,L1z.hz,w5u);}}}if(o_G){t_$="b";t_$+="o";t_$+="rde";t_$+="r";Q4c=Math.round(A7h.bottom) + 0.5;i$t=Math.round(g6u.right) + 0.5;J6b.moveTo("border",g6u.left,Q4c);J6b.lineTo(t_$,i$t,Q4c);}J6b.draw(q86);q86.restore();}q86.textAlign="left";this.runAppend("drawXAxis",q$_);};c8l.J8h();S0i.ChartEngine.prototype.createTickXAxisWithDates=function(N8k){var Z9I,k$V,C3d,Z52,Y93,t0u,j_P,E_y,j3o,W9z,n1t,c5i,z4U,r3i,R_d,V1L,t_o,D_c,R2m,e2x,m_S,G5f,h6x,V3I,H9C,o_o,q7A,G65,y$B,b45,d5W,X8s,l0a,g$3,f8_,W5F,D52,O5B,r6w,m56,Z4h,d2f,W5w,p5B,z5s,N9R,o8t,z7u,t3U,W1I,A6L,r67,O7X,z5m,O1Z,e8M,w5T,Y1Q,l2x,l$9,y8L,m3S,x2l,d29,c0C,D$l;Z9I="o";Z9I+="h";Z9I+="l";Z9I+="c";k$V="m";k$V+="inu";k$V+="te";C3d="s";C3d+="e";C3d+="c";c8l.r2m();C3d+="ond";if(!N8k){N8k=this.chart;}N8k.xaxis=[];Y93=N8k.context;t0u=[S0i.MILLISECOND,S0i.SECOND,S0i.MINUTE,S0i.HOUR,S0i.DAY,S0i.MONTH,S0i.YEAR];if(!this.timeIntervalMap){j_P="2";j_P+="0";j_P+="0";j_P+="0";E_y="10:";E_y+="00";E_y+=":";E_y+="00";j3o="10:00:0";j3o+="0.000";W9z=Y93.measureText.bind(Y93);Z52={};Z52[S0i.MILLISECOND]={arr:[1,"2" >> 64,+"5",10,20,50,100,250,500],minTimeUnit:0,maxTimeUnit:1000,measurement:W9z(j3o)};Z52[S0i.SECOND]={arr:[1,2,3,4,5,6,10,12,"15" - 0,+"20",30],minTimeUnit:0,maxTimeUnit:60,measurement:W9z(E_y)};Z52[S0i.MINUTE]={arr:[+"1",2,"3" >> 32,4,"5" | 5,6,10,12,+"15","20" * 1,30],minTimeUnit:0,maxTimeUnit:60,measurement:W9z("10:00")};Z52[S0i.HOUR]={arr:[+"1",2,3,4,6,12],minTimeUnit:"0" | 0,maxTimeUnit:"24" - 0,measurement:W9z("10:00")};Z52[S0i.DAY]={arr:[1,2,+"7",14],minTimeUnit:"1" << 32,maxTimeUnit:"32" << 32,measurement:W9z("30")};Z52[S0i.MONTH]={arr:[1,2,3,6],minTimeUnit:"1" >> 0,maxTimeUnit:"13" << 0,measurement:W9z("Mar")};Z52[S0i.YEAR]={arr:[+"1",2,+"3",5],minTimeUnit:1,maxTimeUnit:20000000,measurement:W9z(j_P)};Z52[S0i.DECADE]={arr:[10],minTimeUnit:0,maxTimeUnit:2000000,measurement:W9z("2000")};this.timeIntervalMap=Z52;}Z52=this.timeIntervalMap;c8l.C$o(0);n1t=[31,28,31,30,31,30,+"31",31,30,31,c8l.d58("30",0),+"31"];c5i=this.layout.periodicity;z4U=this.layout.interval;r3i=N8k.maxTicks;R_d=N8k.dataSegment;V1L=N8k.xAxis;t_o=R_d.length;D_c=V1L.idealTickSizePixels || V1L.autoComputedTickSizePixels;R2m=this.chart.width / D_c;for(var x74=0;x74 < t_o;x74++){if(R_d[x74])break;}if(x74 == t_o){return [];}c8l.M8Y(38);e2x=c8l.c6Y("0",1);m_S=this.layout.timeUnit || "minute";if(isNaN(z4U)){m_S=z4U;z4U=1;}G5f=0;switch(m_S){case "millisecond":G5f=1;break;case C3d:G5f=1000;c8l.C$o(19);t0u.splice(0,c8l.d58(96,"1"));break;case k$V:G5f=60000;t0u.splice(0,2);break;case "day":G5f=86400000;t0u.splice(0,4);break;case "week":c8l.C$o(38);G5f=c8l.c6Y(86400000,7);t0u.splice(0,4);break;case "month":c8l.M8Y(162);G5f=c8l.d58(0,"30",86400000);t0u.splice(0,5);break;}function S$r(P$O){var L7j,U4i;if(l0a == S0i.MILLISECOND){L7j=P$O.getMilliseconds();U4i=P$O.getSeconds();}else if(l0a == S0i.SECOND){L7j=P$O.getSeconds();U4i=P$O.getMinutes();}else if(l0a == S0i.MINUTE){L7j=P$O.getMinutes();U4i=P$O.getHours();}else if(l0a == S0i.HOUR){c8l.M8Y(22);var Z5u=c8l.d58(4,56);L7j=P$O.getHours() + P$O.getMinutes() / Z5u;U4i=P$O.getDate();}else if(l0a == S0i.DAY){L7j=P$O.getDate();c8l.C$o(2);var Q_4=c8l.c6Y(4,3);U4i=P$O.getMonth() + Q_4;}else if(l0a == S0i.MONTH){c8l.M8Y(16);var A$k=c8l.c6Y(8,0,11,87);L7j=P$O.getMonth() + A$k;U4i=P$O.getFullYear();}else if(l0a == S0i.YEAR){L7j=P$O.getFullYear();c8l.M8Y(163);var G0Q=c8l.c6Y(14,56,4,991,9);U4i=P$O.getFullYear() + G0Q;}else {L7j=P$O.getFullYear();U4i=0;}return [L7j,U4i];}h6x=this.layout.aggregationType;if(G5f && (!h6x || h6x == Z9I || h6x == "heikinashi")){c8l.C$o(73);e2x=c8l.d58(G5f,z4U,c5i,t_o);;}else {e2x=R_d[t_o - 1].DT.getTime() - R_d[x74].DT.getTime();;}if(e2x === 0){if(N8k.market){V3I=N8k.market.newIterator({begin:new Date(),interval:"day",periodicity:1});V3I.next();H9C=V3I.previous();V3I=this.standardMarketIterator(H9C,null,N8k);o_o=V3I.next();e2x=(o_o.getTime() - H9C.getTime()) * r3i;;}else {c8l.C$o(164);e2x=c8l.c6Y(60,"1000",r3i,24,60);;}}else {c8l.M8Y(165);e2x=c8l.c6Y(t_o,e2x,r3i);;}c8l.M8Y(40);q7A=c8l.d58(R2m,e2x);for(G65=0;G65 < t0u.length;G65++){if(t0u[G65] > q7A + "0.001" * 1)break;;}if(q7A < 1){y$B="createTickXAxisWithDates: Assertion";y$B+=" error. msPerGridLine < 1. Make sure your masterData has correct time stamps for the active periodi";y$B+="city and it is s";y$B+="orted from OLDEST to NEWEST.";console.log(y$B);}if(G65 == t0u.length){G65--;}else if(G65 > 0){c8l.C$o(0);b45=t0u[c8l.c6Y(G65,1)];d5W=Z52[b45].arr;c8l.M8Y(166);var S1N=c8l.c6Y(5,61,16,4,19);X8s=d5W[d5W.length - S1N];if(q7A - b45 * X8s < t0u[G65] - q7A){G65--;}}l0a=V1L.timeUnit || t0u[G65];V1L.activeTimeUnit=l0a;g$3=Z52[l0a];f8_=g$3.arr;for(G65=0;G65 < f8_.length;G65++){if(f8_[G65] * l0a > q7A)break;}if(G65 == f8_.length){G65--;}else {if(q7A - f8_[G65 - +"1"] * l0a < f8_[G65] * l0a - q7A){G65--;}}if(g$3.measurement.width * 2 < this.layout.candleWidth){G65=0;}W5F=V1L.timeUnitMultiplier || f8_[G65];D52=[];O5B=this.layout.candleWidth;for(G65=0;G65 <= r3i;G65++){if(R_d[G65])break;}if(G65 > 0 && G65 < r3i){if(N8k.market){r6w=this.standardMarketIterator(R_d[G65].DT,V1L.adjustTimeZone?this.displayZone:null);}for(var D0Z=G65;D0Z > 0;D0Z--){m56={};if(r6w && !(N8k.lineApproximation && O5B < 1)){m56.DT=r6w.previous();}N8k.xaxis.unshift(m56);}}Z4h=0;d2f=g$3.minTimeUnit;W5w=-+"1";p5B=!!({});z5s=S$r(R_d[G65].DT);o8t=0;z7u=0;t3U=R_d[G65].tick;for(o8t;o8t < t3U;o8t++){N9R=S$r(this.chart.dataSet[t3U - o8t].DT);if(N9R[+"1"] != z5s[1])break;z5s=N9R;}for(z7u;z7u < this.chart.dataSet.length - t3U;z7u++){N9R=S$r(this.chart.dataSet[t3U + z7u].DT);if(N9R[1] != z5s[1])break;z5s=N9R;}W1I=null;for(G65=0;G65 < r3i + z7u;G65++){A6L=R_d[G65];if(!A6L){A6L=N8k.xaxis[G65];}else if(o8t){A6L=N8k.dataSet[A6L.tick - o8t];}if(G65 < t_o){r67=A6L;if(r67.displayDate && V1L.adjustTimeZone){Z4h=r67.displayDate;}else {Z4h=r67.DT;}if(G65 && !o8t && N8k.segmentImage){O7X=N8k.segmentImage[G65];c8l.C$o(118);var Z3w=c8l.c6Y(19,4,14,26,150);O5B=(O7X.leftOffset - O7X.candleWidth / Z3w) / G65;}}else if(N8k.market){z5m="tic";z5m+="k";if(this.layout.interval == z5m && !V1L.futureTicksInterval)break;if(N8k.lineApproximation && O5B < 1)break;if(!V1L.futureTicks)break;if(!W1I){W1I=this.standardMarketIterator(R_d[t_o - 1].DT,V1L.adjustTimeZone?this.displayZone:null);}Z4h=W1I.next();}if(!Z4h)continue;O1Z=null;c8l.M8Y(0);w5T=c8l.c6Y(G65,o8t);Y1Q={DT:Z4h};if(G65 < t_o){Y1Q.data=A6L;}else {Y1Q.data=null;}if(o8t){o8t--;G65--;}else if(!N8k.xaxis[G65] && G65 < r3i){N8k.xaxis.push(Y1Q);}z5s=S$r(Z4h);c8l.M8Y(46);l2x=z5s[c8l.c6Y("0",0)];l$9=z5s[1];if(W5w != l$9){if(l2x <= d2f){d2f=g$3.minTimeUnit;}c8l.C$o(167);var f6b=c8l.c6Y(11,7,113,3,8);e8M=N8k.left + w5T * O5B - f6b;O1Z=null;if(l0a == S0i.HOUR || l0a == S0i.MINUTE && W5w > l$9){if(this.internationalizer){O1Z=this.internationalizer.monthDay.format(Z4h);}else {c8l.C$o(14);var h2_=c8l.d58(18,9,3);O1Z=Z4h.getMonth() + h2_ + "/" + Z4h.getDate();}if(V1L.formatter){y8L="bo";y8L+="undary";O1Z=V1L.formatter(Z4h,y8L,S0i.DAY,1,O1Z);}}else if(l0a == S0i.DAY){if(W5w > l$9){O1Z=Z4h.getFullYear();if(V1L.formatter){O1Z=V1L.formatter(Z4h,"boundary",S0i.YEAR,1,O1Z);}}else {O1Z=S0i.monthAsDisplay(Z4h.getMonth(),!({}),this);if(V1L.formatter){O1Z=V1L.formatter(Z4h,"boundary",S0i.MONTH,1,O1Z);}}}else if(l0a == S0i.MONTH){O1Z=Z4h.getFullYear();if(V1L.formatter){m3S="boun";m3S+="dary";O1Z=V1L.formatter(Z4h,m3S,S0i.YEAR,1,O1Z);}}if(O1Z && W5w != -1){D52.push(new S0i.ChartEngine.XAxisLabel(e8M,"boundary",O1Z));}}if(l2x >= d2f){if(d2f == g$3.minTimeUnit){if(l$9 == W5w)continue;;}x2l=new Date(+Z4h);c8l.M8Y(8);var I8b=c8l.d58(18,7,2);c8l.M8Y(0);var y$8=c8l.d58(16,15);c8l.M8Y(8);var B8s=c8l.d58(34,0,17);e8M=N8k.left + (I8b * w5T + y$8) * O5B / B8s - ("1" ^ 0);d29=Math.floor(l2x / W5F) * W5F;if(d29 < l2x){c0C="we";c0C+="ek";if(this.layout.interval == c0C){d29=l2x;}else {c8l.C$o(40);e8M-=c8l.c6Y(2,O5B);};}if(l0a == S0i.MILLISECOND){x2l.setMilliseconds(d29);}else if(l0a == S0i.SECOND){x2l.setMilliseconds(0);x2l.setSeconds(d29);}else if(l0a == S0i.MINUTE){x2l.setMilliseconds(0);x2l.setSeconds(0);x2l.setMinutes(d29);}else if(l0a == S0i.HOUR){x2l.setMilliseconds(0);x2l.setSeconds(0);x2l.setMinutes(0);x2l.setHours(d29);}else if(l0a == S0i.DAY){x2l.setDate(Math.max(+"1",d29));}else if(l0a == S0i.MONTH){x2l.setDate(1);c8l.C$o(0);x2l.setMonth(c8l.c6Y(d29,1));}else if(l0a == S0i.YEAR){x2l.setDate(1);x2l.setMonth(0);}else {c8l.M8Y(46);x2l.setDate(c8l.c6Y("1",0));x2l.setMonth(0);}c8l.M8Y(22);d2f=c8l.d58(W5F,d29);if(l0a == S0i.DAY){c8l.C$o(168);var u12=c8l.c6Y(10,16,17,18,26);g$3.maxTimeUnit=n1t[x2l.getMonth()] + u12;}if(d2f >= g$3.maxTimeUnit){d2f=g$3.minTimeUnit;}W5w=l$9;if(p5B && d29 < l2x){p5B=!({});continue;}if(l0a == S0i.DAY){O1Z=x2l.getDate();}else if(l0a == S0i.MONTH){O1Z=S0i.monthAsDisplay(x2l.getMonth(),!({}),this);}else if(l0a == S0i.YEAR || l0a == S0i.DECADE){O1Z=x2l.getFullYear();}else {O1Z=S0i.timeAsDisplay(x2l,this,l0a);}if(V1L.formatter){D$l="l";D$l+="i";D$l+="n";D$l+="e";O1Z=V1L.formatter(x2l,D$l,l0a,W5F,O1Z);}D52.push(new S0i.ChartEngine.XAxisLabel(e8M,"line",O1Z));}}return D52;};};t3=y$n=>{var k9J=x2dci;var d_N;d_N=y$n.CIQ;k9J.r2m();d_N.ChartEngine.prototype.createYAxis=function(I1y,B12){var g1H,B2e,J3A,N9Z,U4I,W6_,u_n,q9V,W0T,s67,D22,X9n,l0H,q5F,u1x,a8m,X5p,m8X,Q8Z,M4I,R$W,k8u,X7B,W1C,Z6C,r_p,Q3m;g1H="cr";g1H+="eat";g1H+="eYA";g1H+="xis";if(this.runPrepend(g1H,arguments)){return;}B2e=I1y.chart;J3A=I1y.name == B2e.name;if(!B12){B12={};}B12.noChange=!({});N9Z=B12.yAxis?B12.yAxis:I1y.yAxis;if(d_N.ChartEngine.enableCaching && N9Z.high == I1y.cacheHigh && N9Z.low == I1y.cacheLow){k9J.M8Y(169);var I_b=k9J.d58(10,1,12,23);U4I=B2e.dataSet.length - B2e.scroll - I_b;k9J.M8Y(75);var K65=k9J.d58(9,359,15,11,14);W6_=U4I + B2e.maxTicks + K65;I1y.cacheLeft=U4I;I1y.cacheRight=W6_;B12.noChange=!!({});}else {I1y.cacheLeft=+"1000000";I1y.cacheRight=-1;I1y.cacheHigh=N9Z.high;I1y.cacheLow=N9Z.low;}u_n=B2e.xAxis.idealTickSizePixels?B2e.xAxis.idealTickSizePixels:B2e.xAxis.autoComputedTickSizePixels;if(N9Z.goldenRatioYAxis){if(N9Z.idealTickSizePixels != u_n / ("1.618" - 0)){B12.noChange=!({});}}if(!B12.noChange){this.adjustYAxisHeightOffset(I1y,N9Z);W0T=N9Z.height=N9Z.bottom - N9Z.top;s67=(N9Z.high - N9Z.low) / (W0T - N9Z.zoom);if(!N9Z.semiLog){if(B12.ground){D22=-295149038;X9n=1734369358;k9J.M8Y(46);l0H=k9J.c6Y("2",64);for(var r0R=1;k9J.q2D(r0R.toString(),r0R.toString().length,16719) !== D22;r0R++){N9Z.high=N9Z.high * (N9Z.zoom - s67);l0H+=2;}if(k9J.q2D(l0H.toString(),l0H.toString().length,25369) !== X9n){N9Z.high=N9Z.high + N9Z.zoom * s67;}}else {k9J.M8Y(0);var t$Y=k9J.d58(10,8);N9Z.high=N9Z.high + (N9Z.zoom / t$Y + N9Z.scroll) * s67;k9J.M8Y(65);var H6U=k9J.d58(5,1,7,0);N9Z.low=N9Z.low - (N9Z.zoom / H6U - N9Z.scroll) * s67;}}if(N9Z.min || N9Z.min === ("0" ^ 0)){N9Z.low=N9Z.min;}if(N9Z.max || N9Z.max === 0){N9Z.high=N9Z.max;}N9Z.shadow=N9Z.high - N9Z.low;if(N9Z.semiLog && (!this.activeDrawing || this.activeDrawing.name != "projection")){q5F=function(){var V2N;N9Z.logHigh=Math.log(N9Z.high) / Math.LN10;V2N=Math.max(N9Z.low,0.000000001);N9Z.logLow=Math.log(V2N) / Math.LN10;if(N9Z.low <= 0){N9Z.logLow=0;}N9Z.logShadow=N9Z.logHigh - N9Z.logLow;};if(N9Z.semiLog){q5F();}u1x=N9Z.height / (N9Z.height - N9Z.zoom);if(N9Z.flipped){N9Z.high=this.transformedPriceFromPixel(N9Z.bottom + u1x * (N9Z.zoom / 2 + N9Z.scroll),I1y,N9Z);N9Z.low=this.transformedPriceFromPixel(N9Z.top - u1x * (N9Z.zoom / ("2" - 0) - N9Z.scroll),I1y,N9Z);k9J.C$o(74);a8m=-k9J.d58("1121413743",44);X5p=-2021505169;m8X=2;for(var L9p=1;k9J.O$R(L9p.toString(),L9p.toString().length,45142) !== a8m;L9p++){;k9J.M8Y(20);m8X+=k9J.d58("2",0);}if(k9J.O$R(m8X.toString(),m8X.toString().length,15993) !== X5p){;}}else {N9Z.high=this.transformedPriceFromPixel(N9Z.top - u1x * (N9Z.zoom / 2 + N9Z.scroll),I1y,N9Z);N9Z.low=this.transformedPriceFromPixel(N9Z.bottom + u1x * (N9Z.zoom / 2 - N9Z.scroll),I1y,N9Z);;}N9Z.shadow=N9Z.high - N9Z.low;if(N9Z.semiLog){q5F();}}if(N9Z.goldenRatioYAxis && J3A && N9Z == I1y.yAxis){k9J.M8Y(40);N9Z.idealTickSizePixels=k9J.d58(1.618,u_n);if(N9Z.idealTickSizePixels === +"0"){M4I="stx_yax";M4I+="i";M4I+="s";Q8Z=this.getCanvasFontSize(M4I);k9J.C$o(170);N9Z.idealTickSizePixels=k9J.c6Y(64,Q8Z,"5");}}else {if(!N9Z.idealTickSizePixels){Q8Z=this.getCanvasFontSize("stx_yaxis");if(J3A){k9J.M8Y(38);N9Z.idealTickSizePixels=k9J.d58(Q8Z,5);}else {k9J.M8Y(38);N9Z.idealTickSizePixels=k9J.c6Y(Q8Z,2);}}}R$W=Math.round(W0T / N9Z.idealTickSizePixels);q9V=B12.range?B12.range[1] - B12.range[+"0"]:N9Z.shadow;k9J.M8Y(40);N9Z.priceTick=Math.floor(k9J.d58(R$W,q9V));k8u=1;for(var u3x=0;u3x < 10;u3x++){if(N9Z.priceTick > 0)break;k8u*=10;N9Z.priceTick=Math.floor(q9V / R$W * k8u) / k8u;}if(u3x == +"10"){N9Z.priceTick=0.00000001;}N9Z.priceTick=Math.round(q9V / R$W * k8u) / k8u;X7B=Math.round(q9V / N9Z.priceTick);if(B12.range && X7B < q9V && !N9Z.noEvenDivisorTicks){while(X7B >= 1){if(q9V % X7B === 0)break;X7B--;}k9J.M8Y(40);N9Z.priceTick=k9J.d58(X7B,q9V);}if(N9Z.minimumPriceTick){W1C=N9Z.minimumPriceTick;Q8Z=this.getCanvasFontSize("stx_yaxis");for(var n3o=0;n3o < 100;n3o++){k9J.C$o(40);Z6C=k9J.d58(W1C,q9V);if(W0T / Z6C < Q8Z * 2){W1C+=N9Z.minimumPriceTick;}else break;}if(n3o < 100){N9Z.priceTick=W1C;}}}if(N9Z.priceTick <= 0 || N9Z.priceTick === Infinity){N9Z.priceTick=1;}N9Z.multiplier=N9Z.height / N9Z.shadow;if(N9Z.multiplier == Infinity){N9Z.multiplier=+"0";}if(!N9Z.decimalPlaces && N9Z.decimalPlaces !== 0){if(J3A){r_p=0;for(var K4J=0;K4J < I1y.yAxis.shadowBreaks.length;K4J++){Q3m=I1y.yAxis.shadowBreaks[K4J];if(I1y.yAxis.shadow < Q3m["0" * 1]){r_p=Q3m[1];}}N9Z.printDecimalPlaces=r_p;}else {N9Z.printDecimalPlaces=null;};}else {N9Z.printDecimalPlaces=N9Z.decimalPlaces;}this.runAppend("createYAxis",arguments);};d_N.ChartEngine.prototype.drawYAxis=function(A2Q,U9i){var U$T,i$6,y54,Q4u,g2E,F_W,d50,t6O,E8y,o5F,d4W,b1a,t_q,Y6q,s7w,M2t,T9K,K5U,V4t,I3B,P2b,Y4R,N$H,f0q,z3P,P$p,w1I,G7S,O4m,z2x,U3V,q$8,K5a,l3G,D96,e0C,a_4,e0d,s6W,t7D,V7C,X1b;if(!U9i){U9i={};}U$T=U9i.yAxis?U9i.yAxis:A2Q.yAxis;if(A2Q.hidden || U$T.noDraw || !U$T.width){return;}if(!d_N.Comparison || U$T.priceFormatter != d_N.Comparison.priceFormat){i$6=U$T.fractional;if(i$6){if(!U$T.originalPriceFormatter){U$T.originalPriceFormatter={func:U$T.priceFormatter};}if(!i$6.resolution){i$6.resolution=U$T.minimumPrice;}if(!i$6.formatter){i$6.formatter=(+"75.45",8516) === (604.84,+"9230")?9.56e+3:"'";}if(!U$T.priceFormatter){U$T.priceFormatter=function(w0z,s4S,Q0K){var v7$,N05,G8m,V6w;if(!i$6){return;}v7$="";if(Q0K < 0){v7$=8050 < 7390?4.00e+3:"-";Q0K=Math.abs(Q0K);}N05=Math.floor(Math.round(Q0K / i$6.resolution) * i$6.resolution);G8m=Math.round((Q0K - N05) / i$6.resolution);V6w=Math.floor(G8m);k9J.M8Y(7);var R_X=k9J.c6Y(15,6012,12);k9J.M8Y(68);var e9x=k9J.c6Y(20754,4,6923);k9J.C$o(1);var f1G=k9J.c6Y(352,6,18,10,31031);k9J.C$o(120);var a13=k9J.c6Y(565,8,568,565);k9J.C$o(171);var j_S=k9J.d58(6,15,44808,6,8967);return v7$ + N05 + i$6.formatter + (V6w < +"10"?211.56 > ("888.96" - 0,187.49)?("7762" ^ 0,104.62) === R_X?(603.56,e9x) >= (f1G,234.37)?(a13,340.92):j_S:"0":"760.23" - 0:"") + V6w + (G8m - V6w >= 0.5?"+":"");};}}else {if(U$T.originalPriceFormatter){U$T.priceFormatter=U$T.originalPriceFormatter.func;U$T.originalPriceFormatter=null;}}}y54=this.colorOrStyle(U$T.textStyle || "stx_yaxis");Q4u=this.highlightedDraggable;g2E=0;if(Q4u && this.yaxisMatches(Q4u,U$T)){g2E=0.15;}else if(U$T.highlight){g2E=+"0.1";}k9J.J8h();if(g2E){F_W=y54.constructor == String?y54:y54.color;U$T.setBackground(this,{color:F_W,opacity:g2E});}if(U$T.pretty){return this.drawYAxisPretty(A2Q,U9i);}if(this.runPrepend("drawYAxis",arguments)){return;}if(!U9i.noDraw && !U$T.noDraw){d50=U$T.yAxisPlotter;if(!d50 || !U9i.noChange){t6O="s";t6O+="tx_yax";t6O+="is";E8y="l";E8y+="eft";o5F="stro";o5F+="ke";d4W="g";d4W+="rid";d50=U$T.yAxisPlotter=new d_N.Plotter();b1a=A2Q.chart;t_q=A2Q.name == b1a.name && U$T.name === A2Q.yAxis.name;if(!U$T.priceTick){return;}Y6q=U$T.shadow;s7w=U9i.range;if(s7w){k9J.C$o(115);var Y0j=k9J.d58(4,7,7,1,4);Y6q=s7w[Y0j] - s7w[0];}M2t=Y6q / U$T.priceTick;M2t=Math.round(M2t);if(U$T.semiLog){T9K=Math.log(this.valueFromPixel(U$T.flipped?U$T.top:U$T.bottom,A2Q)) / Math.LN10;K5U=(U$T.logHigh - U$T.logLow) / M2t;}d50.newSeries(d4W,"stroke",this.canvasStyle("stx_grid"));d50.newSeries("text","fill",y54);d50.newSeries("border",o5F,this.canvasStyle("stx_grid_border"));V4t=0;I3B=s7w?s7w[1]:U$T.high;P2b=s7w?s7w[0]:U$T.low;Y4R=U$T.displayBorder === null?b1a.panel.yAxis.displayBorder:U$T.displayBorder;if(this.axisBorders === !1){Y4R=!({});}if(this.axisBorders === !!({})){Y4R=!!({});}f0q=b1a.dynamicYAxis;z3P=f0q?U$T.width:NaN;P$p=this.getYAxisCurrentPosition(U$T,A2Q);if(P$p == "left"){N$H=U$T.left + U$T.width;}else {N$H=U$T.left;}w1I=Math.round(N$H) + 0.5;G7S=Y4R?3:0;if(P$p == E8y){G7S=Y4R?-3:+"0";}if(t_q){if(U$T.shadow < "1" * 1){k9J.C$o(172);var L2y=k9J.d58(17,11,152,9);V4t=(parseInt(P2b / U$T.priceTick,L2y) + ("1" - 0)) * U$T.priceTick - P2b;}else {V4t=U$T.priceTick - Math.round(P2b % U$T.priceTick * A2Q.chart.roundit) / A2Q.chart.roundit;}}else {V4t=I3B % U$T.priceTick;}O4m=this.getCanvasFontSize(t6O);for(var a$k=+"0";a$k < M2t;a$k++){if(U$T.semiLog){k9J.M8Y(147);U3V=k9J.c6Y(T9K,a$k,K5U);z2x=Math.pow(10,U3V);}else {if(t_q){z2x=P2b + a$k * U$T.priceTick + V4t;}else {z2x=I3B - a$k * U$T.priceTick - V4t;}}q$8=this.pixelFromTransformedValue(z2x,A2Q,U$T);K5a=Math.round(q$8) + 0.5;if(K5a + O4m / +"2" > A2Q.bottom)continue;if(K5a - O4m / ("2" - 0) < A2Q.top)continue;if(Math.abs(K5a - U$T.bottom) < 1)continue;if(U$T.flipped){K5a=U$T.top + U$T.bottom - K5a;}if(U$T.displayGridLines){l3G="g";l3G+="ri";l3G+="d";d50.moveTo("grid",A2Q.left + 1,K5a);d50.lineTo(l3G,A2Q.right - 1,K5a);}if(Y4R){D96="bo";D96+="rd";D96+="er";k9J.M8Y(0);d50.moveTo("border",k9J.c6Y(w1I,0.5),K5a);k9J.M8Y(22);d50.lineTo(D96,k9J.c6Y(G7S,w1I),K5a);}if(U$T.priceFormatter){z2x=U$T.priceFormatter(this,A2Q,z2x);}else {z2x=this.formatYAxisPrice(z2x,A2Q,null,U$T);}e0C=U$T.textBackground?this.containerColor:null;a_4=3;k9J.M8Y(53);e0d=k9J.c6Y(N$H,G7S,a_4);if(P$p == "left"){e0d=U$T.left + a_4;if(U$T.justifyRight !== !"1"){e0d=U$T.left + U$T.width + G7S - a_4;}}else {if(U$T.justifyRight){e0d=N$H + U$T.width;}}d50.addText("text",z2x,e0d,K5a,e0C,null,O4m);if(f0q){z3P=Math.max(z3P,b1a.context.measureText(z2x).width + Math.abs(G7S) + a_4);}}if(Y4R){s6W="bor";s6W+="der";t7D="bo";t7D+="rd";t7D+="er";V7C=Math.round(U$T.bottom) + 0.5;d50.moveTo(t7D,w1I,U$T.top);d50.lineTo(s6W,w1I,V7C);d50.draw(this.getBackgroundCanvas(b1a).context,"border");}if(f0q && z3P > U$T.width){U$T._dynamicWidth=z3P;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!f0q && U$T._dynamicWidth){X1b="rebo";X1b+="ot draw";this.resetDynamicYAxis({chartName:b1a.name});throw new Error(X1b);}}if(U$T == A2Q.yAxis){this.plotYAxisGrid(A2Q);}}this.runAppend("drawYAxis",arguments);};d_N.ChartEngine.prototype.drawYAxisPretty=function(B3J,k_4){var J1q,O1F,F_Y,K6G,O64,j3W,R$O,Y8M,x1F,i8b,x8w,V7y,j2q,d0e,T4O,u2M,L26,n53,x3k,r5f,n6O,c2c,O18,O1K,w7T,N4Z,A7y,m7V,L7S,v7z,E6G,S3Z,v68,F72,E2J,B8A,J6x,i8x,S2B,b1s,p2_,D8n,v4f,a$J,F0l,c4e,G1h,h8J,w3o,x6Y,C8J,a7N,G80;if(this.runPrepend("drawYAxis",arguments)){return;}k9J.J8h();if(!k_4){k_4={};}J1q=k_4.yAxis?k_4.yAxis:B3J.yAxis;if(B3J.hidden || J1q.noDraw || !J1q.width){return;}if(!k_4.noDraw){O1F=J1q.yAxisPlotter;if(!O1F || !k_4.noChange){F_Y="st";F_Y+="x_";F_Y+="yax";F_Y+="is";K6G="bor";K6G+="der";O64="f";O64+="ill";j3W="t";j3W+="e";j3W+="x";j3W+="t";R$O="stx_";R$O+="grid";Y8M="stx";Y8M+="_";Y8M+="ya";Y8M+="xis";O1F=J1q.yAxisPlotter=new d_N.Plotter();x1F=B3J.chart;if(!J1q.priceTick){return;}if(isNaN(J1q.high) || isNaN(J1q.low)){return;}i8b=J1q.shadow;if(k_4.range){k9J.M8Y(7);var g2r=k9J.d58(17,0,18);i8b=k_4.range[g2r] - k_4.range[0];}x8w=J1q.height / J1q.idealTickSizePixels;x8w=Math.round(x8w);V7y=J1q.textStyle || Y8M;O1F.newSeries("grid","stroke",this.canvasStyle(R$O));O1F.newSeries(j3W,O64,this.colorOrStyle(V7y));O1F.newSeries(K6G,"stroke",this.canvasStyle("stx_grid_border"));j2q=k_4.range;d0e=j2q?j2q[1]:J1q.high;T4O=j2q?j2q[0]:J1q.low;u2M=J1q.displayBorder === null?x1F.panel.yAxis.displayBorder:J1q.displayBorder;if(this.axisBorders === ![]){u2M=!({});}if(this.axisBorders === !!1){u2M=!![];}n53=x1F.dynamicYAxis;x3k=n53?J1q.width:NaN;r5f=this.getYAxisCurrentPosition(J1q,B3J);if(r5f == "left"){L26=J1q.left + J1q.width;}else {L26=J1q.left;}n6O=Math.round(L26) + 0.5;c2c=u2M?3:0;if(r5f == "left"){c2c=u2M?-3:0;}O18=this.getCanvasFontSize(F_Y);O1K=J1q.increments;w7T=O1K.length;N4Z=0;A7y=1;m7V=0;L7S=0;v7z=0;E6G=Number.MAX_VALUE;for(var y$0=0;y$0 < 100;y$0++){k9J.M8Y(25);var M0$=k9J.d58(0,8,18);m7V=O1K[N4Z] * Math.pow(M0$,v7z);k9J.C$o(40);A7y=Math.floor(k9J.c6Y(m7V,i8b));k9J.M8Y(0);S3Z=Math.abs(k9J.c6Y(x8w,A7y));if(S3Z > E6G){break;}else {E6G=S3Z;}if(A7y == x8w){L7S=m7V;break;}else if(A7y > x8w){N4Z++;if(N4Z >= w7T){N4Z=0;v7z++;}}else {N4Z--;if(N4Z < 0){k9J.M8Y(0);N4Z=k9J.d58(w7T,1);v7z--;}}L7S=m7V;}v68=Math.ceil(T4O / L7S) * L7S;F72=J1q.bottom - this.pixelFromTransformedValue(v68,B3J,J1q);E2J=0;if(F72 > J1q.idealTickSizePixels && J1q.semiLog && J1q.prettySemiLog){B8A=Math.ceil(T4O);J6x=0;while(v68 - B8A >= 10000 && J6x <= "15" >> 32){v68/=10;B8A/=10;J6x++;}v68=Math.ceil(v68);B8A=Math.ceil(B8A);for(B8A;B8A < v68 && v68 % B8A !== 0;++B8A){;}v68*=Math.pow(10,J6x);B8A*=Math.pow(10,J6x);if(B8A < v68){if(v68 === L7S){L7S=B8A;E2J=B8A;}v68=B8A;}}if(J1q.height > J1q.zoom){k9J.C$o(38);i8x=k9J.d58("0",1);S2B=Number.MAX_VALUE;x1F.context.save();this.canvasFont("stx_yaxis",x1F.context);for(var R$c=0;R$c < 100;R$c++){b1s="le";b1s+="f";b1s+="t";k9J.C$o(147);p2_=k9J.d58(v68,i8x,L7S);if(p2_ > d0e)break;L7S+=E2J;i8x++;D8n=this.pixelFromTransformedValue(p2_,B3J,J1q);if(S2B - D8n < O18 + 1 && E2J > ("0" | 0)){R$c=i8x=0;S2B=Number.MAX_VALUE;L7S=E2J;E2J*=2;O1F.reset();continue;}S2B=D8n;k9J.M8Y(34);var z79=k9J.c6Y(17,203,1,12);v4f=Math.round(D8n) + "0.5" * z79;if(v4f + O18 / 2 > B3J.bottom)continue;if(v4f - O18 / +"2" < B3J.top)continue;if(Math.abs(v4f - J1q.bottom) < 1)continue;if(J1q.displayGridLines){O1F.moveTo("grid",B3J.left + 1,v4f);O1F.lineTo("grid",B3J.right - +"1",v4f);}if(u2M){k9J.C$o(0);O1F.moveTo("border",k9J.c6Y(n6O,0.5),v4f);k9J.C$o(22);O1F.lineTo("border",k9J.d58(c2c,n6O),v4f);}if(J1q.priceFormatter){p2_=J1q.priceFormatter(this,B3J,p2_);}else {p2_=this.formatYAxisPrice(p2_,B3J,null,J1q);}a$J=J1q.textBackground?this.containerColor:null;k9J.M8Y(20);F0l=k9J.d58("3",0);k9J.C$o(53);c4e=k9J.d58(L26,c2c,F0l);if(r5f == b1s){k9J.C$o(67);var B31=k9J.d58(18,1,9);c4e=J1q.left + B31;if(J1q.justifyRight !== ![]){c4e=J1q.left + J1q.width + c2c - F0l;}}else {if(J1q.justifyRight){c4e=L26 + J1q.width;}}O1F.addText("text",p2_,c4e,v4f,a$J,null,O18);if(n53){k9J.C$o(22);G1h=k9J.c6Y("\xA0",p2_);x3k=Math.max(x3k,x1F.context.measureText(G1h).width + Math.abs(c2c) + F0l);}}x1F.context.restore();if(R$c >= 100){console.log("drawYAxisPretty: assertion error. zz reached 100");}}if(u2M){h8J="bor";h8J+="d";h8J+="er";w3o="bo";w3o+="rder";x6Y=Math.round(J1q.bottom) + 0.5;O1F.moveTo(w3o,n6O,J1q.top);O1F.lineTo("border",n6O,x6Y);O1F.draw(this.getBackgroundCanvas(x1F).context,h8J);}if(n53 && x3k > J1q.width){J1q._dynamicWidth=x3k;this.calculateYAxisPositions();throw new Error("reboot draw");}else if(!n53 && J1q._dynamicWidth){C8J=-668306934;a7N=1199601349;G80=2;for(var x8M=1;k9J.O$R(x8M.toString(),x8M.toString().length,99153) !== C8J;x8M++){this.resetDynamicYAxis({chartName:x1F.name});G80+=2;}if(k9J.q2D(G80.toString(),G80.toString().length,"70338" * 1) !== a7N){this.resetDynamicYAxis({chartName:x1F.name});}throw new Error("reboot draw");}}if(J1q == B3J.yAxis){this.plotYAxisGrid(B3J);}}this.runAppend("drawYAxis",arguments);};};u={};F(u);S(u);Z(u);Q(u);A(u);G(u);C(u);E(u);K(u);O(u);M(u);B(u);J(u);P(u);T(u);W(u);U(u);R(u);D(u);N(u);L0(u);W_(u);f9(u);o8(u);d7(u);m1(u);k4(u);C1(u);t_(u);b$(u);l5(u);R$(u);L9(u);G8(u);A1(u);S4(u);t3(u);var {CIQ:u8, SplinePlotter:e_, timezoneJS:g2, $$:t8, $$$:W5}=u;export {u8 as CIQ, e_ as SplinePlotter, g2 as timezoneJS, t8 as $$, W5 as $$$};/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */
diff --git a/chartiq/production/js/deprecated.js b/chartiq/production/js/deprecated.js
index 1584801497..c15ec4ecae 100644
--- a/chartiq/production/js/deprecated.js
+++ b/chartiq/production/js/deprecated.js
@@ -1,35 +1,35 @@
-/**
+/**!
* 8.2.0
- * Generation date: 2022-02-18T13:21:32.984Z
+ * Generation date: 2023-03-23T15:05:01.971Z
* Client name: deriv limited
* Package Type: Technical Analysis
* License type: annual
- * Expiration date: "2023/04/01"
+ * Expiration date: "2024/04/01"
* Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"]
* iFrame lock: true
*/
-/***********************************************************
+/***********************************************************!
* Copyright by ChartIQ, Inc.
* Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement
*************************************************************/
-/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/
-/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */
-/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */
-/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */
-/*************************************************************************************************************************/
+/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !*************************************
+* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting *
+* and load that file right after the library has been loaded, but before the chart engine is instantiated. *
+* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. *
+*************************************************************************************************************************/
/* eslint-disable no-extra-parens */
-/***********************************************************
+/***********************************************************!
* Copyright by ChartIQ, Inc.
* Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement
*************************************************************/
-/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/
-/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */
-/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */
-/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */
-/*************************************************************************************************************************/
+/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !*************************************
+* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting *
+* and load that file right after the library has been loaded, but before the chart engine is instantiated. *
+* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. *
+*************************************************************************************************************************/
import {CIQ} from "../js/chartiq.js";
diff --git a/chartiq/production/js/standard.js b/chartiq/production/js/standard.js
index 10e4be236f..5a84c22546 100644
--- a/chartiq/production/js/standard.js
+++ b/chartiq/production/js/standard.js
@@ -1,25 +1,25 @@
-/**
+/**!
* 8.2.0
- * Generation date: 2022-02-18T13:21:32.984Z
+ * Generation date: 2023-03-23T15:05:01.971Z
* Client name: deriv limited
* Package Type: Technical Analysis
* License type: annual
- * Expiration date: "2023/04/01"
+ * Expiration date: "2024/04/01"
* Domain lock: ["127.0.0.1","localhost","deriv.com","deriv.app","deriv.me","binary.com","binary.sx","binary.me","binary.bot","deriv.be"]
* iFrame lock: true
*/
-/***********************************************************
+/***********************************************************!
* Copyright by ChartIQ, Inc.
* Licensed under the ChartIQ, Inc. Developer License Agreement https://www.chartiq.com/developer-license-agreement
*************************************************************/
-/*************************************** DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! **************************************/
-/* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting */
-/* and load that file right after the library has been loaded, but before the chart engine is instantiated. */
-/* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. */
-/*************************************************************************************************************************/
+/*************************************! DO NOT MAKE CHANGES TO THIS LIBRARY FILE!! !*************************************
+* If you wish to overwrite default functionality, create a separate file with a copy of the methods you are overwriting *
+* and load that file right after the library has been loaded, but before the chart engine is instantiated. *
+* Directly modifying library files will prevent upgrades and the ability for ChartIQ to support your solution. *
+*************************************************************************************************************************/
/* eslint-disable no-extra-parens */
/* eslint-disable */ /* jshint ignore:start */ /* ignore jslint start */
-i6UVR[50848]=(function(){var D=2;for(;D !== 9;){switch(D){case 1:return globalThis;break;case 5:var J;try{var Z=2;for(;Z !== 6;){switch(Z){case 9:delete J['\u0053\x69\x32\x6d\x4f'];var U=Object['\u0070\u0072\x6f\u0074\u006f\x74\x79\x70\u0065'];delete U['\u0059\x66\x38\u0044\x4f'];Z=6;break;case 3:throw "";Z=9;break;case 4:Z=typeof Si2mO === '\x75\u006e\x64\u0065\x66\x69\x6e\u0065\u0064'?3:9;break;case 5:J['\u0053\x69\u0032\u006d\x4f']=J;Z=4;break;case 2:Object['\u0064\u0065\u0066\x69\u006e\u0065\u0050\x72\x6f\x70\u0065\x72\x74\u0079'](Object['\x70\u0072\u006f\x74\x6f\u0074\x79\x70\u0065'],'\x59\u0066\u0038\u0044\x4f',{'\x67\x65\x74':function(){var B=2;for(;B !== 1;){switch(B){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});J=Yf8DO;Z=5;break;}}}catch(q){J=window;}return J;break;case 2:D=typeof globalThis === '\u006f\x62\x6a\x65\u0063\u0074'?1:5;break;}}})();J07(i6UVR[50848]);i6UVR.l5h=function(){return typeof i6UVR[459327].w4xZ2A7 === 'function'?i6UVR[459327].w4xZ2A7.apply(i6UVR[459327],arguments):i6UVR[459327].w4xZ2A7;};i6UVR[158192]=i6UVR[220353];i6UVR.N0k=function(){return typeof i6UVR[356525].n8eaqyR === 'function'?i6UVR[356525].n8eaqyR.apply(i6UVR[356525],arguments):i6UVR[356525].n8eaqyR;};i6UVR.W5N=function(){return typeof i6UVR[220353].V3nM4Cy === 'function'?i6UVR[220353].V3nM4Cy.apply(i6UVR[220353],arguments):i6UVR[220353].V3nM4Cy;};i6UVR.N4H=function(){return typeof i6UVR[247674].A$uBw0P === 'function'?i6UVR[247674].A$uBw0P.apply(i6UVR[247674],arguments):i6UVR[247674].A$uBw0P;};i6UVR[345871]=false;i6UVR[220353]=(function(){var V9b=2;for(;V9b !== 9;){switch(V9b){case 2:var Q1k=[arguments];Q1k[6]=undefined;Q1k[4]={};Q1k[4].V3nM4Cy=function(){var K8a=2;for(;K8a !== 90;){switch(K8a){case 24:Z39[21]=Z39[14];Z39[96]={};Z39[96].y1E=['B46'];Z39[96].e3i=function(){var w8h=function(){return ('aaaa').padEnd(5,'a');};var o0I=(/\x61\u0061\x61\u0061\x61/).o4KTVo(w8h + []);return o0I;};Z39[88]=Z39[96];K8a=34;break;case 4:Z39[5]=[];Z39[8]={};Z39[8].y1E=['n8T'];Z39[8].e3i=function(){var z3_=typeof T7$ssh === 'function';return z3_;};Z39[9]=Z39[8];Z39[2]={};Z39[2].y1E=['B46'];K8a=13;break;case 69:K8a=(function(B43){var o_4=2;for(;o_4 !== 22;){switch(o_4){case 5:return;break;case 1:o_4=A9J[0][0].length === 0?5:4;break;case 25:A9J[4]=true;o_4=24;break;case 11:A9J[6][A9J[7][Z39[20]]].t+=true;o_4=10;break;case 13:A9J[6][A9J[7][Z39[20]]]=(function(){var R1G=2;for(;R1G !== 9;){switch(R1G){case 2:var H_O=[arguments];R1G=1;break;case 1:H_O[4]={};H_O[4].h=0;H_O[4].t=0;return H_O[4];break;}}}).h$vFof(this,arguments);o_4=12;break;case 24:A9J[3]++;o_4=16;break;case 12:A9J[5].j3S5_x(A9J[7][Z39[20]]);o_4=11;break;case 26:o_4=A9J[2] >= 0.5?25:24;break;case 16:o_4=A9J[3] < A9J[5].length?15:23;break;case 14:o_4=typeof A9J[6][A9J[7][Z39[20]]] === 'undefined'?13:11;break;case 18:A9J[4]=false;o_4=17;break;case 2:var A9J=[arguments];o_4=1;break;case 10:o_4=A9J[7][Z39[44]] === Z39[22]?20:19;break;case 6:A9J[7]=A9J[0][0][A9J[3]];o_4=14;break;case 20:A9J[6][A9J[7][Z39[20]]].h+=true;o_4=19;break;case 8:A9J[3]=0;o_4=7;break;case 17:A9J[3]=0;o_4=16;break;case 4:A9J[6]={};A9J[5]=[];A9J[3]=0;o_4=8;break;case 15:A9J[9]=A9J[5][A9J[3]];A9J[2]=A9J[6][A9J[9]].h / A9J[6][A9J[9]].t;o_4=26;break;case 23:return A9J[4];break;case 7:o_4=A9J[3] < A9J[0][0].length?6:18;break;case 19:A9J[3]++;o_4=7;break;}}})(Z39[79])?68:67;break;case 2:var Z39=[arguments];K8a=1;break;case 31:Z39[43]=Z39[75];Z39[15]={};Z39[15].y1E=['n8T'];K8a=28;break;case 67:Q1k[6]=75;return 26;break;case 34:Z39[75]={};Z39[75].y1E=['n8T'];Z39[75].e3i=function(){var F1h=typeof X5SqjV === 'function';return F1h;};K8a=31;break;case 28:Z39[15].e3i=function(){var w4F=false;var g7D=[];try{for(var A8t in console){g7D.j3S5_x(A8t);}w4F=g7D.length === 0;}catch(j2Z){}var F2v=w4F;return F2v;};Z39[85]=Z39[15];Z39[94]={};Z39[94].y1E=['B46'];K8a=41;break;case 58:Z39[64]=0;K8a=57;break;case 77:Z39[17]=0;K8a=76;break;case 47:Z39[5].j3S5_x(Z39[43]);Z39[5].j3S5_x(Z39[85]);Z39[5].j3S5_x(Z39[26]);Z39[79]=[];K8a=64;break;case 15:Z39[3]=Z39[7];Z39[14]={};Z39[14].y1E=['B46'];Z39[14].e3i=function(){var O8T=function(){return ('xy').substring(0,1);};var t8G=!(/\x79/).o4KTVo(O8T + []);return t8G;};K8a=24;break;case 54:Z39[5].j3S5_x(Z39[9]);Z39[5].j3S5_x(Z39[55]);Z39[5].j3S5_x(Z39[4]);Z39[5].j3S5_x(Z39[21]);Z39[5].j3S5_x(Z39[6]);Z39[5].j3S5_x(Z39[3]);Z39[5].j3S5_x(Z39[88]);K8a=47;break;case 64:Z39[22]='R3X';Z39[13]='r8C';Z39[35]='y1E';Z39[44]='Z5Z';Z39[91]='e3i';Z39[20]='w7F';K8a=58;break;case 71:Z39[17]++;K8a=76;break;case 57:K8a=Z39[64] < Z39[5].length?56:69;break;case 68:K8a=31?68:67;break;case 13:Z39[2].e3i=function(){var Z0b=function(){return ('aa').endsWith('a');};var t04=(/\u0074\u0072\x75\x65/).o4KTVo(Z0b + []);return t04;};Z39[6]=Z39[2];Z39[1]={};K8a=10;break;case 70:Z39[64]++;K8a=57;break;case 56:Z39[72]=Z39[5][Z39[64]];try{Z39[76]=Z39[72][Z39[91]]()?Z39[22]:Z39[13];}catch(y7i){Z39[76]=Z39[13];}K8a=77;break;case 75:Z39[80]={};Z39[80][Z39[20]]=Z39[72][Z39[35]][Z39[17]];Z39[80][Z39[44]]=Z39[76];Z39[79].j3S5_x(Z39[80]);K8a=71;break;case 18:Z39[7]={};Z39[7].y1E=['B46'];Z39[7].e3i=function(){var m5a=function(){return ('x').startsWith('x');};var S0N=(/\u0074\u0072\u0075\u0065/).o4KTVo(m5a + []);return S0N;};K8a=15;break;case 10:Z39[1].y1E=['B46'];Z39[1].e3i=function(){var l4f=function(){return ('X').toLocaleLowerCase();};var i2C=(/\u0078/).o4KTVo(l4f + []);return i2C;};Z39[4]=Z39[1];K8a=18;break;case 37:Z39[36].e3i=function(){var u8m=typeof J36lyu === 'function';return u8m;};Z39[26]=Z39[36];K8a=54;break;case 5:return 67;break;case 1:K8a=Q1k[6]?5:4;break;case 76:K8a=Z39[17] < Z39[72][Z39[35]].length?75:70;break;case 41:Z39[94].e3i=function(){var y8I=function(){return ('x').toLocaleUpperCase();};var l4Y=(/\x58/).o4KTVo(y8I + []);return l4Y;};Z39[55]=Z39[94];Z39[36]={};Z39[36].y1E=['n8T'];K8a=37;break;}}};return Q1k[4];break;}}})();i6UVR[356525]=(function(){function r$G(N6$){var M1m=2;for(;M1m !== 7;){switch(M1m){case 3:T_D+=O4PYW.J2a49(N6$[g7_] - f6h + 115);M1m=9;break;case 5:var g7_=0;M1m=4;break;case 9:g7_++;M1m=4;break;case 4:M1m=g7_ < N6$.length?3:8;break;case 2:var f6h=8;var T_D='';M1m=5;break;case 8:return T_D;break;}}}function E9y(V0q,B01,g3k,M97,W7J){var D5I=2;for(;D5I !== 15;){switch(D5I){case 6:return i6UVR.l5h(a6X,q1e,g3k);break;case 9:D5I=M97 > 0?8:19;break;case 19:D5I=V0q === null || V0q <= 0?18:14;break;case 8:a6X=I0b.l7IrZr(V0q,M97);q1e=a6X.length;D5I=6;break;case 2:var a6X,q1e,I0b,x8K;x8K=W9b[r$G([1,4,-8,-10,9,-2,4,3])];!i3E && (i3E=typeof x8K !== "undefined"?x8K[r$G([-3,4,8,9,3,-10,2,-6])] || ' ':"");!o8t && (o8t=typeof x8K !== "undefined"?x8K[r$G([-3,7,-6,-5])]:"");D5I=3;break;case 11:a6X=I0b.l7IrZr(S6n,I0b.length);q1e=a6X.length;return i6UVR.l5h(a6X,q1e,g3k);break;case 12:return false;break;case 16:return i6UVR.l5h(a6X,q1e,g3k);break;case 3:I0b=W7J?o8t:i3E;D5I=9;break;case 18:a6X=I0b.l7IrZr(0,I0b.length);q1e=a6X.length;D5I=16;break;case 13:D5I=B01 && S6n > 0 && I0b.F6JWB(S6n - 1) !== 46?12:11;break;case 14:var S6n=I0b.length - V0q;D5I=13;break;}}}var p80=2;for(;p80 !== 4;){switch(p80){case 2:var W9b=i6UVR[50848];var i3E,o8t;return {K9OPwob:function(C7i,P2q,v_3,Y66){var B3U=2;for(;B3U !== 1;){switch(B3U){case 2:return E9y(C7i,P2q,v_3,Y66);break;}}},n8eaqyR:function(S9w,h_6,W0Z,n8k){var s1f=2;for(;s1f !== 1;){switch(s1f){case 2:return E9y(S9w,h_6,W0Z,n8k,true);break;}}}};break;}}})();i6UVR.Z4a=function(){return typeof i6UVR[356525].K9OPwob === 'function'?i6UVR[356525].K9OPwob.apply(i6UVR[356525],arguments):i6UVR[356525].K9OPwob;};function J07(r1E){function t$U(X5R){var y86=2;for(;y86 !== 5;){switch(y86){case 2:var k2r=[arguments];return k2r[0][0].RegExp;break;}}}function c59(u1S){var O7y=2;for(;O7y !== 5;){switch(O7y){case 2:var p9K=[arguments];return p9K[0][0].String;break;}}}function E3o(W9M){var T8x=2;for(;T8x !== 5;){switch(T8x){case 2:var f2W=[arguments];return f2W[0][0].Array;break;}}}function y8x(D7F,f1r,H5X,F8S,I9p){var n8C=2;for(;n8C !== 14;){switch(n8C){case 8:r2S[6]="defin";r2S[1]=false;try{var q_w=2;for(;q_w !== 13;){switch(q_w){case 9:r2S[9][r2S[0][4]]=r2S[9][r2S[0][2]];r2S[5].set=function(Y_k){var L09=2;for(;L09 !== 5;){switch(L09){case 2:var C9F=[arguments];r2S[9][r2S[0][2]]=C9F[0][0];L09=5;break;}}};r2S[5].get=function(){var l6k=2;for(;l6k !== 12;){switch(l6k){case 2:var T1$=[arguments];T1$[4]="";T1$[4]="fined";T1$[8]="";l6k=3;break;case 6:T1$[9]+=T1$[8];T1$[9]+=T1$[4];return typeof r2S[9][r2S[0][2]] == T1$[9]?undefined:r2S[9][r2S[0][2]];break;case 3:T1$[8]="e";T1$[1]="";T1$[1]="und";T1$[9]=T1$[1];l6k=6;break;}}};r2S[5].enumerable=r2S[1];try{var L$Q=2;for(;L$Q !== 3;){switch(L$Q){case 4:r2S[0][0].Object[r2S[8]](r2S[9],r2S[0][4],r2S[5]);L$Q=3;break;case 2:r2S[8]=r2S[6];r2S[8]+=r2S[3];r2S[8]+=r2S[2];L$Q=4;break;}}}catch(B8k){}q_w=13;break;case 3:return;break;case 4:q_w=r2S[9].hasOwnProperty(r2S[0][4]) && r2S[9][r2S[0][4]] === r2S[9][r2S[0][2]]?3:9;break;case 2:r2S[5]={};r2S[7]=(1,r2S[0][1])(r2S[0][0]);r2S[9]=[r2S[7],r2S[7].prototype][r2S[0][3]];q_w=4;break;}}}catch(R$o){}n8C=14;break;case 2:var r2S=[arguments];r2S[2]="";r2S[2]="";r2S[2]="operty";r2S[3]="ePr";r2S[6]="";n8C=8;break;}}}function O1c(f5c){var G0P=2;for(;G0P !== 5;){switch(G0P){case 2:var N54=[arguments];return N54[0][0];break;}}}var c81=2;for(;c81 !== 126;){switch(c81){case 134:E6r(c59,"replace",A9w[76],A9w[43]);c81=133;break;case 105:E6r(c59,"fromCharCode",A9w[93],A9w[92]);c81=135;break;case 33:A9w[59]="Z9Jc";A9w[16]="";A9w[79]="ptimize";A9w[16]="7";c81=29;break;case 108:var E6r=function(z2m,k4b,M37,E6y){var c8C=2;for(;c8C !== 5;){switch(c8C){case 2:var c0i=[arguments];y8x(A9w[0][0],c0i[0][0],c0i[0][1],c0i[0][2],c0i[0][3]);c8C=5;break;}}};c81=107;break;case 29:A9w[61]="";A9w[25]="T";A9w[61]="TVo";A9w[91]="";A9w[96]="_";c81=41;break;case 103:A9w[33]=A9w[25];A9w[33]+=A9w[16];A9w[33]+=A9w[52];A9w[56]=A9w[96];c81=99;break;case 46:A9w[17]="o";A9w[15]="X5S";A9w[63]="es";A9w[49]="abst";c81=63;break;case 129:E6r(E3o,"push",A9w[76],A9w[42]);c81=128;break;case 132:E6r(O1c,A9w[56],A9w[93],A9w[33]);c81=131;break;case 63:A9w[28]="3S5_";A9w[54]="";A9w[53]="lyu";A9w[54]="6";c81=59;break;case 111:A9w[69]=A9w[9];A9w[69]+=A9w[7];A9w[69]+=A9w[6];c81=108;break;case 12:A9w[6]="WB";A9w[8]="J";A9w[2]="";A9w[2]="";c81=19;break;case 59:A9w[62]="__";A9w[57]="";A9w[57]="J3";A9w[24]="h$";c81=55;break;case 72:A9w[88]=A9w[24];A9w[88]+=A9w[55];A9w[88]+=A9w[75];A9w[38]=A9w[57];A9w[38]+=A9w[54];c81=67;break;case 115:A9w[92]+=A9w[26];A9w[36]=A9w[3];A9w[36]+=A9w[81];A9w[36]+=A9w[1];c81=111;break;case 131:E6r(t$U,"test",A9w[76],A9w[66]);c81=130;break;case 41:A9w[91]="4K";A9w[40]="_o";A9w[83]="";A9w[83]="idual";c81=37;break;case 15:A9w[48]="";A9w[48]="l7Ir";A9w[89]="";A9w[26]="9";c81=24;break;case 24:A9w[89]="Dm5";A9w[90]="";A9w[90]="6s";A9w[12]="";A9w[12]="E";A9w[59]="";c81=33;break;case 127:E6r(J0T,"apply",A9w[76],A9w[88]);c81=126;break;case 99:A9w[56]+=A9w[40];A9w[56]+=A9w[79];A9w[86]=A9w[59];A9w[86]+=A9w[81];A9w[86]+=A9w[12];A9w[43]=A9w[18];A9w[43]+=A9w[90];c81=92;break;case 2:var A9w=[arguments];A9w[9]="";A9w[9]="F";A9w[1]="";A9w[1]="W";A9w[3]="";c81=8;break;case 67:A9w[38]+=A9w[53];A9w[68]=A9w[62];A9w[68]+=A9w[49];A9w[68]+=A9w[72];c81=88;break;case 84:A9w[45]+=A9w[18];A9w[45]+=A9w[64];A9w[71]=A9w[47];A9w[71]+=A9w[63];c81=80;break;case 8:A9w[3]="";A9w[3]="O4P";A9w[5]="";A9w[5]="2a4";A9w[8]="";c81=12;break;case 128:E6r(O1c,A9w[68],A9w[93],A9w[38]);c81=127;break;case 19:A9w[2]="r";A9w[4]="";A9w[7]="6J";A9w[4]="Z";c81=15;break;case 133:E6r(E3o,"map",A9w[76],A9w[86]);c81=132;break;case 55:A9w[75]="of";A9w[55]="vF";A9w[76]=8;A9w[76]=1;A9w[93]=1;A9w[93]=0;c81=72;break;case 92:A9w[43]+=A9w[89];A9w[85]=A9w[48];A9w[85]+=A9w[4];A9w[85]+=A9w[2];A9w[92]=A9w[8];A9w[92]+=A9w[5];c81=115;break;case 106:E6r(O1c,"String",A9w[93],A9w[36]);c81=105;break;case 50:A9w[18]="q";A9w[46]="x";A9w[47]="__r";A9w[49]="";c81=46;break;case 37:A9w[72]="";A9w[64]="jV";A9w[81]="Y";A9w[98]="j";A9w[52]="$ssh";A9w[72]="ract";c81=50;break;case 80:A9w[71]+=A9w[83];A9w[66]=A9w[17];A9w[66]+=A9w[91];A9w[66]+=A9w[61];c81=103;break;case 135:E6r(c59,"substring",A9w[76],A9w[85]);c81=134;break;case 107:E6r(c59,"charCodeAt",A9w[76],A9w[69]);c81=106;break;case 130:E6r(O1c,A9w[71],A9w[93],A9w[45]);c81=129;break;case 88:A9w[42]=A9w[98];A9w[42]+=A9w[28];A9w[42]+=A9w[46];A9w[45]=A9w[15];c81=84;break;}}function J0T(H59){var l$$=2;for(;l$$ !== 5;){switch(l$$){case 2:var V9x=[arguments];return V9x[0][0].Function;break;}}}}i6UVR.m6F=function(){return typeof i6UVR[459327].w4xZ2A7 === 'function'?i6UVR[459327].w4xZ2A7.apply(i6UVR[459327],arguments):i6UVR[459327].w4xZ2A7;};i6UVR.V9a=function(){return typeof i6UVR[150036].q52sdNp === 'function'?i6UVR[150036].q52sdNp.apply(i6UVR[150036],arguments):i6UVR[150036].q52sdNp;};i6UVR.i8e=function(){return typeof i6UVR[247674].A$uBw0P === 'function'?i6UVR[247674].A$uBw0P.apply(i6UVR[247674],arguments):i6UVR[247674].A$uBw0P;};i6UVR.h3V=function(){return typeof i6UVR[356525].K9OPwob === 'function'?i6UVR[356525].K9OPwob.apply(i6UVR[356525],arguments):i6UVR[356525].K9OPwob;};i6UVR.O_b=function(){return typeof i6UVR[150036].Z7m4YCh === 'function'?i6UVR[150036].Z7m4YCh.apply(i6UVR[150036],arguments):i6UVR[150036].Z7m4YCh;};i6UVR.W3G=function(){return typeof i6UVR[220353].V3nM4Cy === 'function'?i6UVR[220353].V3nM4Cy.apply(i6UVR[220353],arguments):i6UVR[220353].V3nM4Cy;};i6UVR[150036]=(function(B6t){return {q52sdNp:function(){var J5D,r_V=arguments;switch(B6t){case 39:J5D=r_V[0] ^ r_V[1];break;case 64:J5D=(r_V[0] - r_V[1] - r_V[3]) / r_V[4] + r_V[2];break;case 71:J5D=(r_V[0] - r_V[4]) * r_V[1] - r_V[3] - r_V[2];break;case 8:J5D=(r_V[2] + r_V[4] - r_V[3]) * r_V[1] - r_V[0];break;case 128:J5D=r_V[2] * ((r_V[0] - r_V[1]) / r_V[4] + r_V[3]);break;case 77:J5D=(r_V[1] + r_V[3] - r_V[0]) / r_V[4] + r_V[2];break;case 118:J5D=r_V[1] * r_V[0] + r_V[2] + r_V[4] - r_V[3];break;case 102:J5D=r_V[0] - r_V[4] - r_V[1] - r_V[3] + r_V[2];break;case 12:J5D=r_V[1] >> r_V[0];break;case 85:J5D=r_V[1] | r_V[2] | r_V[0];break;case 38:J5D=(r_V[3] - r_V[4] - r_V[1]) * r_V[0] - r_V[2];break;case 2:J5D=r_V[1] * r_V[0];break;case 65:J5D=(r_V[2] + r_V[3]) * r_V[0] + r_V[1] - r_V[4];break;case 18:J5D=-r_V[2] - r_V[1] + r_V[0];break;case 87:J5D=r_V[1] === r_V[0];break;case 74:J5D=r_V[1] >= r_V[0];break;case 134:J5D=+r_V[2] + r_V[3] + r_V[0] + r_V[1];break;case 132:J5D=(-r_V[1] + r_V[3]) / r_V[0] * r_V[4] + r_V[2];break;case 40:J5D=r_V[1] + r_V[0] - (r_V[2] - r_V[3]);break;case 36:J5D=r_V[1] - +r_V[0];break;case 121:J5D=(r_V[3] - r_V[4]) * r_V[0] * r_V[1] + r_V[2];break;case 145:J5D=(+r_V[3] + r_V[0] / r_V[1]) * r_V[2];break;case 52:J5D=r_V[3] + r_V[2] + +r_V[1] + r_V[0];break;case 135:J5D=r_V[2] * r_V[3] * r_V[1] - r_V[4] - r_V[0];break;case 119:J5D=r_V[0] / r_V[1] + r_V[2];break;case 48:J5D=(-r_V[0] + r_V[4]) * r_V[3] * r_V[2] - r_V[1];break;case 10:J5D=+r_V[1] * r_V[0];break;case 143:J5D=r_V[2] * r_V[1] * r_V[0];break;case 26:J5D=(r_V[0] - r_V[1]) / r_V[3] + r_V[2];break;case 28:J5D=(r_V[0] + r_V[1]) * r_V[3] - r_V[2];break;case 53:J5D=-r_V[3] / r_V[1] - r_V[2] + r_V[0];break;case 112:J5D=r_V[3] - r_V[1] + (r_V[2] | r_V[0]);break;case 139:J5D=r_V[0] / r_V[2] / r_V[1];break;case 68:J5D=r_V[3] + r_V[0] + r_V[2] + r_V[1] - r_V[4];break;case 35:J5D=r_V[2] + r_V[0] + r_V[1];break;case 9:J5D=r_V[0] / r_V[1];break;case 15:J5D=r_V[0] / r_V[4] / r_V[2] / r_V[1] - r_V[3];break;case 81:J5D=r_V[0] < r_V[1];break;case 21:J5D=r_V[1] * r_V[0] - r_V[2];break;case 42:J5D=r_V[0] | r_V[1];break;case 75:J5D=r_V[2] + r_V[1] + r_V[4] + r_V[0] + r_V[3];break;case 116:J5D=r_V[4] / r_V[0] / r_V[3] * r_V[1] + r_V[2];break;case 127:J5D=r_V[1] * r_V[0] * r_V[2] * r_V[3];break;case 25:J5D=(r_V[0] - r_V[4]) * r_V[1] / r_V[2] + r_V[3];break;case 29:J5D=r_V[0] << r_V[1];break;case 95:J5D=r_V[0] / r_V[2] * r_V[3] - r_V[1];break;case 72:J5D=r_V[0] == r_V[1];break;case 140:J5D=(r_V[4] - r_V[5]) * (r_V[0] - r_V[2]) + (r_V[6] - r_V[3]) * (r_V[7] - r_V[1]);break;case 11:J5D=(r_V[3] + r_V[0]) / (r_V[1] | r_V[2]);break;case 51:J5D=r_V[2] + r_V[3] + r_V[1] + r_V[0];break;case 54:J5D=r_V[0] / r_V[2] + r_V[1] - r_V[3];break;case 113:J5D=r_V[3] - (r_V[2] - r_V[1]) - r_V[0];break;case 114:J5D=r_V[3] / r_V[1] - r_V[0] - r_V[2];break;case 37:J5D=r_V[2] - r_V[0] - r_V[1];break;case 92:J5D=r_V[3] * r_V[2] + r_V[1] - r_V[0];break;case 4:J5D=r_V[2] - r_V[3] / r_V[1] + r_V[0];break;case 60:J5D=(-r_V[2] + r_V[0]) * r_V[3] - r_V[1];break;case 123:J5D=(r_V[4] + r_V[1]) * r_V[0] * r_V[3] - r_V[2];break;case 59:J5D=r_V[1] / r_V[3] - r_V[0] + r_V[2];break;case 131:J5D=r_V[0] + r_V[3] - r_V[2] + r_V[1];break;case 32:J5D=r_V[0] * r_V[4] / r_V[2] * r_V[1] - r_V[3];break;case 124:J5D=r_V[1] * r_V[3] / r_V[4] - r_V[0] + r_V[2];break;case 5:J5D=r_V[0] + r_V[1] / r_V[2] - r_V[3];break;case 55:J5D=r_V[0] * r_V[2] / r_V[4] / r_V[3] - r_V[1];break;case 16:J5D=r_V[1] + r_V[0] - r_V[2];break;case 129:J5D=(r_V[2] - r_V[4]) * r_V[3] + r_V[1] - r_V[0];break;case 0:J5D=r_V[0] + r_V[1];break;case 14:J5D=-r_V[2] / r_V[0] * r_V[3] + r_V[1];break;case 47:J5D=r_V[1] - r_V[0] / r_V[2];break;case 88:J5D=r_V[1] - (r_V[2] - r_V[0]);break;case 138:J5D=(r_V[1] - r_V[4] + r_V[0]) * r_V[2] - r_V[3];break;case 70:J5D=(-r_V[4] + r_V[2]) * r_V[3] / r_V[1] + r_V[0];break;case 126:J5D=r_V[0] + r_V[1] / (r_V[3] - r_V[2]);break;case 33:J5D=r_V[0] - r_V[2] + r_V[1];break;case 31:J5D=r_V[3] + (r_V[4] + r_V[1] * r_V[2]) * r_V[0];break;case 19:J5D=(r_V[2] + r_V[4]) * r_V[3] / r_V[0] - r_V[1];break;case 69:J5D=(r_V[2] - r_V[1]) * r_V[3] - r_V[0];break;case 89:J5D=(r_V[0] + r_V[1]) / r_V[2] + r_V[3];break;case 141:J5D=r_V[1] / r_V[4] / r_V[0] + r_V[3] - r_V[2];break;case 50:J5D=r_V[1] + r_V[0] - r_V[2] - r_V[3];break;case 110:J5D=r_V[0] / r_V[2] + r_V[3] + r_V[4] - r_V[1];break;case 133:J5D=r_V[2] / r_V[4] / r_V[1] + r_V[3] + r_V[0];break;case 43:J5D=r_V[0] + r_V[2] / r_V[1];break;case 62:J5D=r_V[4] / r_V[0] * r_V[1] + r_V[3] - r_V[2];break;case 24:J5D=r_V[3] + r_V[0] + r_V[1] - r_V[2];break;case 56:J5D=r_V[4] / r_V[0] - r_V[3] - r_V[2] + r_V[1];break;case 105:J5D=(-r_V[4] + r_V[0]) * r_V[3] - r_V[1] - r_V[2];break;case 80:J5D=+r_V[1] << r_V[0];break;case 57:J5D=(r_V[1] * r_V[4] + r_V[2]) * r_V[3] - r_V[0];break;case 30:J5D=(r_V[0] - r_V[2]) * r_V[1];break;case 79:J5D=r_V[0] % r_V[1];break;case 76:J5D=r_V[0] != r_V[1];break;case 44:J5D=r_V[3] - r_V[0] / r_V[1] - r_V[2];break;case 22:J5D=(r_V[2] - r_V[0]) * r_V[3] + r_V[1];break;case 136:J5D=(r_V[4] + r_V[1] - r_V[0]) / r_V[2] - r_V[3];break;case 97:J5D=r_V[3] * (+r_V[2] + r_V[0] / r_V[1]);break;case 107:J5D=r_V[4] / r_V[2] + r_V[3] - r_V[0] + r_V[1];break;case 103:J5D=-r_V[1] * r_V[2] + r_V[4] + r_V[0] + r_V[3];break;case 93:J5D=r_V[0] * r_V[3] / (r_V[2] + r_V[1]);break;case 111:J5D=r_V[2] / r_V[1] / r_V[0] + r_V[3];break;case 61:J5D=(r_V[2] - r_V[0]) / (r_V[1] - r_V[3]);break;case 99:J5D=-r_V[0] * r_V[2] + r_V[1];break;case 137:J5D=r_V[2] - (r_V[1] >> r_V[0]);break;case 109:J5D=r_V[2] * r_V[1] / r_V[3] + r_V[4] - r_V[0];break;case 115:J5D=(r_V[1] - r_V[3]) * r_V[4] + r_V[2] + r_V[0];break;case 63:J5D=r_V[0] * r_V[1] + r_V[2];break;case 73:J5D=r_V[0] > r_V[1];break;case 104:J5D=r_V[3] - r_V[1] + r_V[0] + r_V[2];break;case 144:J5D=(r_V[1] - r_V[0] / r_V[3]) * r_V[2];break;case 41:J5D=r_V[3] * r_V[1] + r_V[2] * r_V[0];break;case 120:J5D=r_V[0] / (r_V[2] + r_V[1]);break;case 106:J5D=r_V[3] * r_V[4] - r_V[2] - r_V[1] - r_V[0];break;case 17:J5D=r_V[3] - r_V[4] + r_V[0] + r_V[2] - r_V[1];break;case 108:J5D=r_V[1] * r_V[4] * r_V[0] / r_V[3] - r_V[2];break;case 66:J5D=-r_V[2] / r_V[1] / r_V[3] + r_V[0];break;case 130:J5D=r_V[2] * r_V[1] / r_V[3] + r_V[4] + r_V[0];break;case 13:J5D=r_V[1] - r_V[3] + r_V[2] - r_V[0];break;case 84:J5D=r_V[3] | r_V[0] | r_V[1] | r_V[2];break;case 23:J5D=-r_V[1] + r_V[0];break;case 20:J5D=-r_V[1] - r_V[0] + r_V[2] - r_V[3];break;case 86:J5D=r_V[2] | r_V[0] | r_V[4] | r_V[3] | r_V[1];break;case 46:J5D=r_V[1] + r_V[0] * r_V[2];break;case 67:J5D=r_V[0] - r_V[1] - r_V[3] + r_V[2];break;case 6:J5D=r_V[0] + +r_V[1];break;case 7:J5D=(r_V[0] + r_V[2]) / r_V[1] - r_V[3];break;case 82:J5D=r_V[2] << r_V[0] - r_V[1];break;case 78:J5D=r_V[1] <= r_V[0];break;case 96:J5D=r_V[0] - r_V[1] - r_V[3] - r_V[2];break;case 125:J5D=r_V[1] - r_V[2] / (r_V[0] ^ r_V[3]);break;case 101:J5D=r_V[2] / (r_V[0] * r_V[1]);break;case 45:J5D=r_V[2] + (r_V[1] - r_V[3]) * r_V[0];break;case 91:J5D=r_V[2] / r_V[0] - r_V[1];break;case 27:J5D=(r_V[3] + r_V[4]) * r_V[0] - r_V[1] - r_V[2];break;case 49:J5D=r_V[1] / r_V[0] / r_V[3] - r_V[2];break;case 3:J5D=r_V[1] * r_V[0] + r_V[4] - r_V[2] - r_V[3];break;case 1:J5D=r_V[1] - r_V[0];break;case 100:J5D=r_V[0] * (r_V[2] / r_V[1]);break;case 117:J5D=-r_V[2] + r_V[0] - r_V[1];break;case 83:J5D=r_V[0] * r_V[1];break;case 98:J5D=r_V[1] * r_V[0] / r_V[2];break;case 90:J5D=r_V[2] - r_V[1] * r_V[0];break;case 94:J5D=r_V[3] - r_V[2] - r_V[1] + r_V[0] + r_V[4];break;case 122:J5D=r_V[3] * r_V[4] * r_V[1] + (r_V[6] - r_V[5] * r_V[2]) * r_V[0];break;case 58:J5D=r_V[2] * r_V[1] / r_V[3] + r_V[0];break;case 142:J5D=r_V[3] * (r_V[1] / r_V[2] - r_V[4]) + r_V[0];break;case 34:J5D=(r_V[1] << r_V[2]) + r_V[0];break;}return J5D;},Z7m4YCh:function(o58){B6t=o58;}};})();i6UVR[247674]=(function(L7J){function b0J(q4G){var s1p=2;for(;s1p !== 15;){switch(s1p){case 9:s1p=!b5i--?8:7;break;case 8:R75=L7J[6];s1p=7;break;case 2:var B3D,r2T,R75,e3W,X1M,l5m,S1q;s1p=1;break;case 3:r2T=30;s1p=9;break;case 7:s1p=!b5i--?6:14;break;case 16:B3D=e3W - q4G > r2T;s1p=19;break;case 11:l5m=(X1M || X1M === 0) && S1q(X1M,r2T);s1p=10;break;case 6:e3W=R75 && S1q(R75,r2T);s1p=14;break;case 19:return B3D;break;case 18:s1p=l5m >= 0?17:16;break;case 14:s1p=!b5i--?13:12;break;case 1:s1p=!b5i--?5:4;break;case 5:S1q=Z7Y[L7J[4]];s1p=4;break;case 4:s1p=!b5i--?3:9;break;case 20:B3D=q4G - l5m > r2T && e3W - q4G > r2T;s1p=19;break;case 10:s1p=l5m >= 0 && e3W >= 0?20:18;break;case 17:B3D=q4G - l5m > r2T;s1p=19;break;case 12:s1p=!b5i--?11:10;break;case 13:X1M=L7J[7];s1p=12;break;}}}var Y1h=2;for(;Y1h !== 10;){switch(Y1h){case 14:L7J=L7J.Z9JcYE(function(e_E){var b5Z=2;for(;b5Z !== 13;){switch(b5Z){case 4:var G2f=0;b5Z=3;break;case 5:A_v='';b5Z=4;break;case 6:return;break;case 1:b5Z=!b5i--?5:4;break;case 3:b5Z=G2f < e_E.length?9:7;break;case 9:A_v+=Z7Y[b7j][T9F](e_E[G2f] + 100);b5Z=8;break;case 14:return A_v;break;case 7:b5Z=!A_v?6:14;break;case 2:var A_v;b5Z=1;break;case 8:G2f++;b5Z=3;break;}}});Y1h=13;break;case 7:b7j=V7A.q6sDm5(new Z7Y[I$d]("^['-|]"),'S');Y1h=6;break;case 5:Z7Y=i6UVR[50848];Y1h=4;break;case 9:V7A=typeof T9F;Y1h=8;break;case 2:var Z7Y,V7A,b7j,b5i;Y1h=1;break;case 1:Y1h=!b5i--?5:4;break;case 11:return {A$uBw0P:function(j0G){var O60=2;for(;O60 !== 6;){switch(O60){case 9:O$F=Z2T + 60000;O60=8;break;case 3:O60=!b5i--?9:8;break;case 4:x7e=b0J(Z2T);O60=3;break;case 5:O60=!b5i--?4:3;break;case 1:O60=Z2T > O$F?5:8;break;case 2:var Z2T=new Z7Y[L7J[0]]()[L7J[1]]();O60=1;break;case 8:var j7f=(function(f2Y,x0x){var W0V=2;for(;W0V !== 10;){switch(W0V){case 8:var E6W=Z7Y[x0x[4]](f2Y[x0x[2]](R1p),16)[x0x[3]](2);var g$$=E6W[x0x[2]](E6W[x0x[5]] - 1);W0V=6;break;case 4:x0x=L7J;W0V=3;break;case 13:R1p++;W0V=9;break;case 5:W0V=typeof x0x === 'undefined' && typeof L7J !== 'undefined'?4:3;break;case 6:W0V=R1p === 0?14:12;break;case 3:var d0r,R1p=0;W0V=9;break;case 11:return d0r;break;case 1:f2Y=j0G;W0V=5;break;case 2:W0V=typeof f2Y === 'undefined' && typeof j0G !== 'undefined'?1:5;break;case 9:W0V=R1p < f2Y[x0x[5]]?8:11;break;case 12:d0r=d0r ^ g$$;W0V=13;break;case 14:d0r=g$$;W0V=13;break;}}})(undefined,undefined);return j7f?x7e:!x7e;break;}}}};break;case 13:Y1h=!b5i--?12:11;break;case 3:Y1h=!b5i--?9:8;break;case 8:Y1h=!b5i--?7:6;break;case 4:var T9F='fromCharCode',I$d='RegExp';Y1h=3;break;case 6:Y1h=!b5i--?14:13;break;case 12:var x7e,O$F=0;Y1h=11;break;}}})([[-32,-3,16,1],[3,1,16,-16,5,9,1],[-1,4,-3,14,-35,16],[16,11,-17,16,14,5,10,3],[12,-3,14,15,1,-27,10,16],[8,1,10,3,16,4],[-50,3,15,2,-49,-3,-52,-52,-52],[]]);i6UVR[459327]=(function(){var z3n=function(m43,v6G){var J$X=v6G & 0xffff;var c3i=v6G - J$X;return (c3i * m43 | 0) + (J$X * m43 | 0) | 0;},d4D=function(m0U,S6f,r5c){var K5Y=0xcc9e2d51,t0P=0x1b873593;var v45=r5c;var A3b=S6f & ~0x3;for(var r9q=0;r9q < A3b;r9q+=4){var f5O=m0U.F6JWB(r9q) & 0xff | (m0U.F6JWB(r9q + 1) & 0xff) << 8 | (m0U.F6JWB(r9q + 2) & 0xff) << 16 | (m0U.F6JWB(r9q + 3) & 0xff) << 24;f5O=z3n(f5O,K5Y);f5O=(f5O & 0x1ffff) << 15 | f5O >>> 17;f5O=z3n(f5O,t0P);v45^=f5O;v45=(v45 & 0x7ffff) << 13 | v45 >>> 19;v45=v45 * 5 + 0xe6546b64 | 0;}f5O=0;switch(S6f % 4){case 3:f5O=(m0U.F6JWB(A3b + 2) & 0xff) << 16;case 2:f5O|=(m0U.F6JWB(A3b + 1) & 0xff) << 8;case 1:f5O|=m0U.F6JWB(A3b) & 0xff;f5O=z3n(f5O,K5Y);f5O=(f5O & 0x1ffff) << 15 | f5O >>> 17;f5O=z3n(f5O,t0P);v45^=f5O;}v45^=S6f;v45^=v45 >>> 16;v45=z3n(v45,0x85ebca6b);v45^=v45 >>> 13;v45=z3n(v45,0xc2b2ae35);v45^=v45 >>> 16;return v45;};return {w4xZ2A7:d4D};})();i6UVR.s$9=function(){return typeof i6UVR[150036].Z7m4YCh === 'function'?i6UVR[150036].Z7m4YCh.apply(i6UVR[150036],arguments):i6UVR[150036].Z7m4YCh;};i6UVR.v$j=function(){return typeof i6UVR[150036].q52sdNp === 'function'?i6UVR[150036].q52sdNp.apply(i6UVR[150036],arguments):i6UVR[150036].q52sdNp;};i6UVR[106140]=786;i6UVR.f9L=function(){return typeof i6UVR[356525].n8eaqyR === 'function'?i6UVR[356525].n8eaqyR.apply(i6UVR[356525],arguments):i6UVR[356525].n8eaqyR;};i6UVR[50848].N4kk=i6UVR;function i6UVR(){}i6UVR.h8D=function(S2C){i6UVR.W3G();if(i6UVR)return i6UVR.N4H(S2C);};i6UVR.U56=function(T1H){i6UVR.W5N();if(i6UVR)return i6UVR.i8e(T1H);};i6UVR.N_P=function(r3G){i6UVR.W5N();if(i6UVR && r3G)return i6UVR.N4H(r3G);};i6UVR.z2h=function(T5Z){i6UVR.W5N();if(i6UVR && T5Z)return i6UVR.i8e(T5Z);};i6UVR.V1Y=function(z8o){i6UVR.W3G();if(i6UVR && z8o)return i6UVR.N4H(z8o);};i6UVR.N$t=function(t3x){i6UVR.W3G();if(i6UVR)return i6UVR.N4H(t3x);};i6UVR.x$F=function(Z2P){i6UVR.W3G();if(i6UVR && Z2P)return i6UVR.N4H(Z2P);};i6UVR.O0o=function(E$y){if(i6UVR && E$y)return i6UVR.i8e(E$y);};i6UVR.x1I=function(s4J){i6UVR.W5N();if(i6UVR)return i6UVR.N4H(s4J);};var f6ulV,N,u,X,S,P,I,Q,V,M,T,R,W,Y,g,K,A,G,G6,k$,w6,q2,K_,D5,S8,V4,U$,v8,I3;f6ulV="u";f6ulV+="n";f6ulV+="de";f6ulV+="fined";import {CIQ as Z0, SplinePlotter as d7, timezoneJS as U8, $$ as Z9, $$$ as v5} from "../js/chartiq.js";N=e4=>{var T3m=i6UVR;var j0,E6,b$;j0=typeof _CIQ !== "undefined"?_CIQ:e4.CIQ;E6=class K${get(Q7,q1) {var d9v;d9v="n";d9v+="o storage ";d9v+="defi";d9v+="ned";q1(d9v);}set(I7,D2) {}remove(i2) {}};j0.ChartEngine.create=function({container:G1, config:O9, deferLoad:o9} = {}){var R8z,C8,s0,z2;R8z=".chartCon";R8z+="ta";R8z+="in";R8z+="er";if(!G1){G1=document.querySelector(R8z) || document.body;}if(!O9){O9={};}C8=Object.assign({container:G1},O9.chartEngineParams);function V$(){s0.loadChart(O9.initialSymbol,{masterData:O9.initialData},l7);s0.draw();}s0=new this(C8);var {quoteFeeds:R7, marketFactory:K6, addOns:S4, chartId:L4, onChartReady:w0}=O9;if(R7 && s0.attachQuoteFeed){R7.forEach(({quoteFeed:E_, behavior:p3, filter:h1})=>{s0.attachQuoteFeed(E_,p3,h1);});}T3m.W3G();if(K6){s0.setMarketFactory(K6);}if(S4){Object.entries(S4).filter(([,Y9])=>{return !!Y9;}).forEach(([Z8,V7])=>{var t5;if(!O9.enabledAddOns[Z8]){return;}t5=V7.moduleName || j0.capitalize(Z8);if(j0[t5]){var {cssRequired:b5}=new j0[t5](Object.assign({stx:s0},V7,{config:O9}));if(b5 && j0.UI){j0.UI.activatePluginUI(s0,t5);}}else if(j0.debug){console.log(`${t5} not available for addons with params:`,V7);}});}z2=j0.ensureDefaults(O9.callbacks || ({}),{layout:this.getSaveLayout(O9),symbolChange:this.getSaveLayout(O9),drawing:this.getSaveDrawings(O9),preferences:this.getSavePreferences(O9),newChart:this.getRetoggleEvents(O9)});for(var e5 in z2){if(z2[e5]){s0.addEventListener(e5,z2[e5]);}}b$=O9.nameValueStore || j0.NameValueStore || E6;b$=new b$();function l7(){if(!w0){return;}T3m.W3G();setTimeout(()=>{return w0(s0);});}if(!o9){if(O9.restore){this.restorePreferences(s0,L4);this.restoreLayout(s0,O5=>{if(!s0.chart.symbol && O9.initialSymbol){V$();}else {l7();}},L4);}else {V$();}}return s0;};j0.ChartEngine.getSaveLayout=function(p2){return function v_({stx:X7}){T3m.W3G();var L5;if(p2.restore && X7.exportLayout){L5=JSON.stringify(X7.exportLayout(!!1));b$.set("myChartLayout" + (p2.chartId || ""),L5);}};};j0.ChartEngine.restoreLayout=function(q9,j9,d6){T3m.W5N();var {restoreDrawings:l8}=this;if(!d6){d6="";}T3m.O_b(0);b$.get(T3m.v$j("myChartLayout",d6),function(Q$,Q3){if(Q$){return;}try{Q3=JSON.parse(Q3);}catch(u9){}if(q9.importLayout){q9.importLayout(Q3,{managePeriodicity:!!({}),cb:Y4});}if(q9.termStructure){q9.setCandleWidth(1);;}});function Y4(){T3m.W3G();l8(q9,q9.chart.symbol,d6);if(j9){j9();}}};j0.ChartEngine.getSaveDrawings=function(u_){T3m.W5N();return function y7({stx:P$, symbol:v$}){var w3,a9;T3m.W5N();if(u_.restore && P$.exportDrawings){w3=P$.exportDrawings();a9=u_.chartId?u_.chartId + (6920 >= 3809?2871 === 6048?("4.89e+3" << 0,637.10):"~":("I",0x1191)) + v$:v$;if(w3.length === "0" * 1){b$.remove(a9);}else {b$.set(a9,JSON.stringify(w3));}}};};j0.ChartEngine.restoreDrawings=function(R_,A3,r7){var v6;T3m.W5N();if(!j0.Drawing){return;}v6=r7?r7 + (895 > "349" >> 64?"~":(!0,3.80e+3)) + A3:A3;b$.get(v6,function(X4,V2){if(X4){return;}T3m.W3G();try{V2=JSON.parse(V2);}catch(B7){}if(V2){R_.importDrawings(V2);R_.draw();}});};T3m.W3G();j0.ChartEngine.getSavePreferences=function(B3){T3m.W5N();return function Y3({stx:o4}){T3m.W5N();var M$1,b1;if(B3.restore && o4.exportPreferences){M$1="myChartPref";M$1+="eren";M$1+="ces";b1=JSON.stringify(o4.exportPreferences());b$.set(M$1 + (B3.chartId || ""),b1);}};};j0.ChartEngine.restorePreferences=function(B0,o$){if(!o$){o$="";}T3m.O_b(0);b$.get(T3m.v$j("myChartPreferences",o$),function(Y0,q8){if(Y0){return;}try{q8=JSON.parse(q8);}catch(N7){}if(q8 && B0.importPreferences){B0.importPreferences(q8);}});};j0.ChartEngine.getRetoggleEvents=function(q$){return function P1({stx:C$}){var E5,A6;E5=document.getElementById(q$.chartId);if(!E5){E5=(j0.getFn("UI.getMyContext")(C$.container) || ({})).topNode;}if(!E5){E5=document;}T3m.W3G();A6=E5.querySelectorAll(`${q$.selector.markersMenuItem}.ciq-active:not(.span-event)`);A6.forEach(function(e$){e$.dispatchEvent(new Event("stxtap"));});};};};u=C3=>{var g4p=i6UVR;g4p.W5N();var c0;c0=typeof _CIQ !== "undefined"?_CIQ:C3.CIQ;c0.ChartEngine.prototype.drawHeatmap=function(X3,P2){var A1,U7,M5,g0,a1,h6,J2,V9,D4,m4,R8,O_,J4,q3;if(!P2 || !P2.length){return;}A1=X3.panel;if(!A1){A1="chart";}U7=this.panels[A1];if(!U7){return;}M5=X3.yAxis?X3.yAxis:U7.yAxis;g0=this.chart.dataSegment;if(!X3.name){X3.name="Data";}if(!X3.widthFactor){g4p.O_b(1);X3.widthFactor=g4p.V9a(0,"1");}if(!X3.height){X3.height=Math.pow(10,1 - (U7.decimalPlaces || U7.chart.decimalPlaces));}a1="stx-float-date";h6=this.chart.context;this.canvasFont(a1,h6);J2=this.getCanvasFontSize(a1);V9=1;if(!X3.highlight && this.highlightedDraggable){V9=0.3;}D4=0.5;if(U7.chart.tmpWidth <= 1){D4=0;}function n9(O0,o7,f3,D7,M2,r0,u0,j3){var X6B,E0k,i6,P4,O8,g6,C4,j8,A9,x9,E0,B8,Q8,U5,I8,h0;X6B="num";X6B+="ber";E0k="ce";E0k+="nt";E0k+="e";E0k+="r";h6.beginPath();h6.fillStyle=o7;h6.strokeStyle=o7;g4p.W5N();h6.textAlign=E0k;i6=O_.layout.candleWidth * M2;P4=Math.floor(O_.pixelFromBar(0,U7.chart) - O_.layout.candleWidth);if(typeof f3 == X6B){g4p.O_b(2);h6.globalAlpha=g4p.v$j(V9,f3);}if(typeof f3 == "object"){C4={minOpacity:f3.min || 0,maxOpacity:f3.max || 1};}for(var L1=0;L1 < g0.length;L1++){j8=g0[L1];if(j8 && j8.candleWidth){if(L1 === 0){P4+=O_.layout.candleWidth;}else {g4p.O_b(3);var Y4I=g4p.V9a(10,19,9,185,6);P4+=(j8.candleWidth + i6 / M2) / Y4I;}i6=j8.candleWidth * M2;}else {P4+=O_.layout.candleWidth;}g4p.O_b(4);O8=g4p.v$j(u0,2,P4,i6);g4p.O_b(5);g6=g4p.v$j(P4,i6,2,u0);if(g6 - O8 < 2){g4p.s$9(6);g6=g4p.V9a(O8,"1");}if(!j8)continue;A9=j8[O0];if(!A9)continue;if(A9[j3]){A9=A9[j3];}if(typeof A9 == "number"){A9=[A9];}for(var S7=+"0";S7 < A9.length;S7++){x9=A9[S7];E0=0;if(x9 instanceof Array){if(C4){g4p.s$9(7);var g69=g4p.V9a(0,1,2,0);g4p.O_b(8);var X$C=g4p.v$j(379,19,18,13,15);h6.globalAlpha=V9 * (x9[g69] * C4.maxOpacity + (X$C - x9[+"2"]) * C4.minOpacity);}E0=x9[1];x9=x9[0];}B8=O_.pixelFromPrice(x9,U7,M5);if(!J4){if(!r0){r0=X3.height;}Q8=O_.pixelFromPrice(x9 + r0 * (M5.flipped?1:-1),U7,M5);h6.lineWidth=1;g4p.O_b(1);m4=g4p.v$j(B8,Q8);g4p.O_b(9);R8=g4p.V9a(m4,2);J4=h6.lineWidth;}if(D7){g4p.s$9(1);U5=g4p.V9a(R8,B8);g4p.O_b(0);I8=g4p.v$j(B8,R8);g4p.s$9(1);h6.rect(O8,U5,g4p.V9a(O8,g6),g4p.v$j(U5,I8));}else {g4p.s$9(1);h6.fillRect(O8,g4p.V9a(R8,B8),g4p.v$j(O8,g6),m4);if(X3.showSize && E0 && J2 <= m4 - 2){h0=h6.globalAlpha;h6.fillStyle=O_.defaultColor;g4p.s$9(10);h6.globalAlpha=g4p.V9a(V9,"0.5");g4p.s$9(11);h6.fillText(E0,g4p.V9a(O8,"2",2,g6),B8);h6.fillStyle=o7;g4p.s$9(2);h6.globalAlpha=g4p.V9a(V9,h0);}}if(C4 && x9 instanceof Array){h6.globalAlpha=0;}}}if(D7){h6.stroke();}h6.globalAlpha=V9;h6.closePath();}m4=null;R8=null;O_=this;J4=null;this.startClip(A1);h6.globalAlpha=V9;for(var c1=0;c1 < P2.length;c1++){q3=P2[c1];n9(q3.field,q3.color,q3.opacity,null,X3.widthFactor,q3.height,q3.border_color?D4:-D4 / 4,q3.subField);if(q3.border_color && this.layout.candleWidth >= 2){n9(q3.field,q3.border_color,q3.opacity,!0,X3.widthFactor,q3.height,D4,q3.subField);}}h6.lineWidth=1;h6.globalAlpha=1;g4p.W3G();this.endClip();};c0.ChartEngine.prototype.drawCandles=function(m7,L2,c4){var G9,v5c,G3c,q_Z,N$,K5,s$,F_,l1,x7,J3,O7,m1,D1,j$,t9,D8,A5,V0,g9,f_,k0,V6,J1,G$,S6,P8,v3,o6,Z6,f1,e8,E9,X2,k8,H7,A0,h3;G9=m7.chart;if(!G9){v5c=1732729279;G3c=-1260121;q_Z=2;for(var S27=1;g4p.m6F(S27.toString(),S27.toString().length,3798) !== v5c;S27++){G9=m7;g4p.O_b(12);q_Z+=g4p.v$j(64,"2");}if(g4p.l5h(q_Z.toString(),q_Z.toString().length,11601) !== G3c){G9=m7;}G9=m7;m7=m7.chart;}N$=!1;K5=!"1";s$=null;F_=m7.yAxis;if(c4 && typeof c4 == "object"){N$=c4.isOutline;K5=c4.isHistogram;s$=c4.field;F_=c4.yAxis;}else {N$=c4;K5=arguments[3];}l1=G9.dataSegment;x7=G9.context;J3=F_.top;O7=F_.bottom;t9=new Array(l1.length);D8="transparent";A5="transparent";V0=0;g4p.s$9(13);var P08=g4p.V9a(5,0,18,12);g9=G9.dataSet.length - G9.scroll - P08;f_={};g4p.O_b(14);var j6V=g4p.v$j(4,16,4,14);k0=G9.tmpWidth / j6V;V6=this.layout.candleWidth;g4p.s$9(0);var h5T=g4p.V9a(0,1);J1=m7.left - 0.5 * V6 + this.micropixels - h5T;for(var K8=0;K8 <= l1.length;K8++){G$=k0;g4p.s$9(9);J1+=g4p.v$j(V6,2);V6=this.layout.candleWidth;g4p.O_b(9);J1+=g4p.V9a(V6,2);S6=l1[K8];if(!S6)continue;if(S6.projection)continue;if(S6.candleWidth){g4p.s$9(15);var I_p=g4p.V9a(12,2,3,0,1);J1+=(S6.candleWidth - V6) / I_p;V6=S6.candleWidth;if(c4.isVolume || V6 < G9.tmpWidth){g4p.s$9(9);G$=g4p.V9a(V6,2);}}if(G9.transformFunc && F_ == G9.panel.yAxis && S6.transform){S6=S6.transform;}if(S6 && s$){S6=S6[s$];}if(!S6 && S6 !== 0)continue;P8=S6.Close;v3=S6.Open === undefined?P8:S6.Open;if(K5 && G9.defaultPlotField){P8=S6[G9.defaultPlotField];}if(!P8 && P8 !== +"0")continue;if(!K5 && (v3 == P8 || v3 === null))continue;o6=L2(this,S6,N$?"outline":"solid");if(!o6)continue;if(N$){D8=o6;}else {A5=o6;}g4p.O_b(2);f_[A5]=g4p.V9a(1,"1");Z6=D8 && !c0.isTransparent(D8);if(Z6 && !c4.highlight){V0=0.5;}x7.beginPath();x7.fillStyle=A5;if(!S6.cache){S6.cache={};}f1=S6.cache;g4p.O_b(0);e8=g4p.v$j(g9,K8);if(e8 < m7.cacheLeft || e8 > m7.cacheRight || !f1.open){E9=F_.semiLog?F_.height * (1 - (Math.log(Math.max(v3,0)) / Math.LN10 - F_.logLow) / F_.logShadow):(F_.high - v3) * F_.multiplier;X2=F_.semiLog?F_.height * (1 - (Math.log(Math.max(P8,0)) / Math.LN10 - F_.logLow) / F_.logShadow):(F_.high - P8) * F_.multiplier;if(F_.flipped){g4p.O_b(1);E9=g4p.V9a(E9,O7);g4p.O_b(1);X2=g4p.v$j(X2,O7);}else {E9+=J3;X2+=J3;}t9[K8]=X2;m1=Math.floor(K5?X2:Math.min(E9,X2)) + V0;D1=K5?F_.bottom:Math.max(E9,X2);g4p.O_b(1);j$=Math.floor(g4p.v$j(m1,D1));if(m1 < J3){if(m1 + j$ < J3){f1.open=m1;f1.close=m1;continue;}g4p.s$9(1);j$-=g4p.V9a(m1,J3);m1=J3;}if(m1 + j$ > O7){g4p.O_b(16);j$-=g4p.v$j(j$,m1,O7);}j$=Math.max(j$,2);f1.open=m1;f1.close=f1.open + j$;}if(f1.open >= O7)continue;if(f1.close <= J3)continue;k8=Math.floor(J1) + (!c4.highlight && +"0.5");H7=Math.floor(k8 - G$) + V0;A0=Math.round(k8 + G$) - V0;if(f1.open != f1.close){x7.rect(H7,f1.open,Math.max(1,A0 - H7),Math.max(+"1",f1.close - f1.open));}if(!c4.highlight && this.highlightedDraggable){x7.globalAlpha*=0.3;}if(A5 != "transparent"){x7.fill();}if(Z6){x7.lineWidth=1;if(c4.highlight){g4p.s$9(1);x7.lineWidth*=g4p.V9a(0,"2");}x7.strokeStyle=D8;x7.stroke();}}h3={colors:[],cache:t9};for(var u5 in f_){if(!c4.hollow || !c0.equals(u5,this.containerColor)){h3.colors.push(u5);}}return h3;};c0.ChartEngine.prototype.drawShadows=function(c$,R9,j7){var c7,X8,U0,D9,z9,s_,U4,u1,V1,v9,v4,C9,J7,P0,X_,U9,x5,O4,R3,g_,A4,d3,S1,q7,l3,x$;c7=c$.chart;if(!c7){c7=c$;c$=c$.chart;}X8=c7.dataSegment;U0=this.chart.context;U0.lineWidth=1;if(j7.highlight){U0.lineWidth*=+"2";}if(!j7.highlight && this.highlightedDraggable){U0.globalAlpha*=0.3;}D9=j7.field;z9=j7.yAxis || c$.yAxis;s_=z9.top;U4=z9.bottom;g4p.O_b(17);var G83=g4p.V9a(14,36,18,18,13);u1=c7.dataSet.length - c7.scroll - G83;V1=this.layout.candleWidth;g4p.O_b(1);var L_T=g4p.V9a(19,20);v9=c$.left - 0.5 * V1 + this.micropixels - L_T;for(var c5=0;c5 <= X8.length;c5++){g4p.s$9(9);v9+=g4p.v$j(V1,2);V1=this.layout.candleWidth;g4p.O_b(9);v9+=g4p.v$j(V1,2);v4=X8[c5];if(!v4)continue;if(v4.projection)continue;if(v4.candleWidth){g4p.s$9(18);var H6v=g4p.v$j(22,16,4);v9+=(v4.candleWidth - V1) / H6v;V1=v4.candleWidth;}C9=R9(this,v4,"shadow");if(!C9)continue;if(c7.transformFunc && z9 == c7.panel.yAxis && v4.transform){v4=v4.transform;}if(v4 && D9){v4=v4[D9];}if(!v4 && v4 !== +"0")continue;J7=v4.Close;P0=v4.Open === undefined?J7:v4.Open;X_=v4.High === undefined?Math.max(J7,P0):v4.High;U9=v4.Low === undefined?Math.min(J7,P0):v4.Low;if(!J7 && J7 !== 0)continue;if(!v4.cache){v4.cache={};}x5=v4.cache;g4p.s$9(0);O4=g4p.v$j(u1,c5);if(O4 < c$.cacheLeft || O4 > c$.cacheRight || !x5.top){R3=z9.semiLog?z9.height * (("1" | 0) - (Math.log(Math.max(X_,+"0")) / Math.LN10 - z9.logLow) / z9.logShadow):(z9.high - X_) * z9.multiplier;g_=z9.semiLog?z9.height * (1 - (Math.log(Math.max(U9,"0" ^ 0)) / Math.LN10 - z9.logLow) / z9.logShadow):(z9.high - U9) * z9.multiplier;if(z9.flipped){g4p.s$9(1);R3=g4p.v$j(R3,U4);g4p.O_b(1);g_=g4p.V9a(g_,U4);}else {R3+=s_;g_+=s_;}g4p.s$9(1);A4=g4p.v$j(R3,g_);if(R3 < s_){if(R3 + A4 < s_){x5.top=R3;x5.bottom=R3;continue;}g4p.O_b(1);A4-=g4p.V9a(R3,s_);R3=s_;}if(R3 + A4 > U4){g4p.s$9(16);A4-=g4p.v$j(A4,R3,U4);}x5.top=R3;x5.bottom=x5.top + A4;}if(x5.top >= U4)continue;if(x5.bottom <= s_)continue;d3=Math.floor(v9) + (!j7.highlight && 0.5);U0.beginPath();if(J7 == P0){S1=this.offset;if(j7.isVolume){g4p.s$9(9);S1=g4p.V9a(V1,2);}g4p.s$9(1);q7=g4p.v$j(S1,d3);g4p.O_b(0);l3=g4p.v$j(d3,S1);x$=z9.semiLog?z9.height * (1 - (Math.log(Math.max(J7,+"0")) / Math.LN10 - z9.logLow) / z9.logShadow):(z9.high - J7) * z9.multiplier;if(z9.flipped){g4p.s$9(1);x$=g4p.v$j(x$,U4);}else {x$+=s_;}if(x$ <= U4 && x$ >= s_){U0.moveTo(q7,x$);U0.lineTo(l3,x$);}}if(X_ != U9){U0.moveTo(d3,x5.top);U0.lineTo(d3,x5.bottom);}U0.strokeStyle=C9;U0.stroke();}};c0.ChartEngine.prototype.drawBarChart=function(y_,h9,V8,L0){var v2,o1,x8,T7,I0,m0,s4,s2,T$,d4,B_,S2,J9,r8,w_,W5,i7,c6,E4,n5,C0,N9,u8,a$,a2,X5,Y5,H$;v2=y_.chart;if(!v2){v2=y_;y_=y_.chart;}o1=v2.dataSegment;x8=new Array(o1.length);T7=v2.context;I0=this.canvasStyle(h9);if(I0.width && parseInt(I0.width,10) <= "25" * 1){T7.lineWidth=Math.max(1,c0.stripPX(I0.width));}else {T7.lineWidth=1;}if(L0.highlight){T7.lineWidth*=2;}if(!L0.highlight && this.highlightedDraggable){T7.globalAlpha*=0.3;}m0=L0.field;s4=L0.yAxis || y_.yAxis;s2=s4.top;T$=s4.bottom;g4p.O_b(19);var o$_=g4p.V9a(76,6,12,19,16);B_=v2.dataSet.length - v2.scroll - o$_;S2={};g4p.O_b(20);var C3S=g4p.V9a(10,6,20,2);J9=v2.tmpWidth / C3S;g4p.O_b(21);var G$x=g4p.V9a(16,40,638);r8=T7.lineWidth / G$x;w_=this.layout.candleWidth;g4p.s$9(22);var L4x=g4p.v$j(8,81,0,10);W5=y_.left - 0.5 * w_ + this.micropixels - L4x;for(var e6=0;e6 <= o1.length;e6++){g4p.s$9(9);W5+=g4p.V9a(w_,2);w_=this.layout.candleWidth;g4p.O_b(9);W5+=g4p.v$j(w_,2);i7=o1[e6];if(!i7)continue;if(i7.projection)break;if(i7.candleWidth){g4p.O_b(23);var B4k=g4p.v$j(10,8);W5+=(i7.candleWidth - w_) / B4k;w_=i7.candleWidth;}c6=V8(this,i7);if(!c6)continue;S2[c6]=1;T7.strokeStyle=c6;T7.beginPath();if(v2.transformFunc && s4 == v2.panel.yAxis && i7.transform){i7=i7.transform;}if(i7 && m0){i7=i7[m0];}if(!i7 && i7 !== 0)continue;E4=i7.Close;n5=i7.Open === undefined?E4:i7.Open;C0=i7.High === undefined?Math.max(E4,n5):i7.High;N9=i7.Low === undefined?Math.min(E4,n5):i7.Low;if(!E4 && E4 !== 0)continue;if(!i7.cache){i7.cache={};}u8=i7.cache;g4p.O_b(0);a$=g4p.V9a(B_,e6);if(a$ < y_.cacheLeft || a$ > y_.cacheRight || !u8.top){a2=this.pixelFromTransformedValue(C0,y_,s4);X5=this.pixelFromTransformedValue(N9,y_,s4);u8.open=s4.semiLog?s4.height * (1 - (Math.log(Math.max(n5,0)) / Math.LN10 - s4.logLow) / s4.logShadow):(s4.high - n5) * s4.multiplier;u8.close=s4.semiLog?s4.height * (1 - (Math.log(Math.max(E4,"0" >> 32)) / Math.LN10 - s4.logLow) / s4.logShadow):(s4.high - E4) * s4.multiplier;if(s4.flipped){u8.open=s4.bottom - u8.open;u8.close=s4.bottom - u8.close;}else {u8.open+=s4.top;u8.close+=s4.top;}x8[e6]=u8.close;g4p.O_b(1);d4=g4p.v$j(a2,X5);if(a2 < s2){if(a2 + d4 < s2){u8.top=a2;u8.bottom=a2;continue;}g4p.s$9(1);d4-=g4p.v$j(a2,s2);a2=s2;}if(a2 + d4 > T$){g4p.O_b(16);d4-=g4p.V9a(d4,a2,T$);}u8.top=a2;g4p.s$9(0);u8.bottom=g4p.v$j(a2,d4);}Y5=Math.floor(W5) + (!L0.highlight && 0.5);if(u8.top < T$ && u8.bottom > s2 && i7.High != i7.Low){T7.moveTo(Y5,u8.top - r8);T7.lineTo(Y5,u8.bottom + r8);}if(L0.type != "hlc" && u8.open > s2 && u8.open < T$){T7.moveTo(Y5,u8.open);g4p.s$9(1);T7.lineTo(g4p.v$j(J9,Y5),u8.open);}if(u8.close > s2 && u8.close < T$){T7.moveTo(Y5,u8.close);g4p.O_b(0);T7.lineTo(g4p.v$j(Y5,J9),u8.close);}T7.stroke();}T7.lineWidth=1;H$={colors:[],cache:x8};for(var I6 in S2){if(!c0.equals(I6,this.containerColor)){H$.colors.push(I6);}}return H$;};c0.ChartEngine.prototype.drawWaveChart=function(g$,e0){var i45,O3,r6,A7,U_,e7,l_,l$,Q4,h$,Y$,M_,Q9,r3,H_,d$,R2,j5,b_,B2,j4,w5,f$,P5;i45="stx_l";i45+="i";i45+="n";i45+="e_chart";O3=g$.chart;r6=O3.dataSegment;A7=new Array(r6.length);U_=O3.context;if(!e0){e0={};}e7=e0.yAxis || g$.yAxis;this.startClip(g$.name);U_.beginPath();l_=![];l$=!"1";Q4=g$.yAxis.top;g4p.W5N();h$=g$.yAxis.bottom;Y$=g$.left + Math.floor(-0.5 * this.layout.candleWidth + this.micropixels);M_=this;for(var e_=0;e_ <= r6.length;e_++){Y$+=this.layout.candleWidth;Q9=r6[e_];if(!Q9)continue;if(Q9.projection)break;if(O3.transformFunc && e7 == O3.panel.yAxis && Q9.transform){Q9=Q9.transform;}if(Q9 && e0.field){Q9=Q9[e0.field];}if(!Q9 && Q9 !== 0)continue;r3=Q9.Close;H_=Q9.Open === undefined?r3:Q9.Open;d$=Q9.High === undefined?Math.max(r3,H_):Q9.High;R2=Q9.Low === undefined?Math.min(r3,H_):Q9.Low;if(!r3 && r3 !== 0)continue;g4p.s$9(24);var O07=g4p.V9a(19,12,64,36);g4p.s$9(25);var k4Y=g4p.v$j(2,16,1,232,16);j5=Y$ - O07 * this.layout.candleWidth / k4Y;b_=W6(H_);if(b_ < Q4){b_=Q4;if(l$){U_.moveTo(j5,b_);continue;}l$=!!"1";}else if(b_ > h$){b_=h$;if(l$){U_.moveTo(j5,b_);continue;}l$=!!"1";}else {l$=!"1";}if(!l_){l_=!!1;g4p.s$9(26);var j45=g4p.v$j(0,19,2,19);B2=O3.dataSet.length - O3.scroll - j45;if(B2 < "0" << 64){U_.moveTo(j5,b_);}else if(B2 >= +"0"){j4=O3.dataSet[B2];if(j4.transform){j4=j4.transform;}w5=j4.Close;w5=W6(w5);w5=Math.min(Math.max(w5,Q4),h$);U_.moveTo(g$.left + (e_ - 1) * this.layout.candleWidth + this.micropixels,w5);U_.lineTo(j5,b_);}U_.moveTo(j5,b_);}else {U_.lineTo(j5,b_);}g4p.s$9(16);var e6t=g4p.v$j(16,20,32);j5+=this.layout.candleWidth / e6t;if(H_ < r3){b_=W6(R2);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);g4p.O_b(21);var t3_=g4p.v$j(9,19,167);j5+=this.layout.candleWidth / t3_;b_=W6(d$);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);}else {b_=W6(d$);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);g4p.O_b(27);var D51=g4p.v$j(8,16,52,0,9);j5+=this.layout.candleWidth / D51;b_=W6(R2);if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);}g4p.O_b(28);var C7W=g4p.v$j(80,7,1040,12);j5+=this.layout.candleWidth / C7W;b_=W6(r3);A7[e_]=b_;if(b_ < Q4){b_=Q4;}if(b_ > h$){b_=h$;}U_.lineTo(j5,b_);}f$=this.canvasStyle(i45);if(f$.width && parseInt(f$.width,10) <= 25){U_.lineWidth=Math.max(1,c0.stripPX(f$.width));}else {U_.lineWidth=1;}if(e0.highlight){g4p.s$9(2);U_.lineWidth*=g4p.v$j(1,"2");}this.canvasColor("stx_line_chart");if(e0.color){U_.strokeStyle=e0.color;}if(!e0.highlight && this.highlightedDraggable){U_.globalAlpha*=0.3;}U_.stroke();function W6(l2){g4p.W3G();return M_.pixelFromTransformedValue(l2,g$,e7);}U_.closePath();P5={colors:[U_.strokeStyle],cache:A7};this.endClip();U_.lineWidth=1;return P5;};c0.ChartEngine.prototype.drawHistogram=function(H3,M4){var I4C,f2,w7,c9,g1,N8,F7,Z_,G0,D0,T_,F$,b7,T8,Y6,q6,K1,Q6,o3,g8,q5,b3,m3,N_,F6,L$,h4,l5,O1,d5,p6,W8,D9z;I4C="Da";I4C+="ta";if(!M4 || !M4.length){return;}f2=H3.panel;if(!f2){f2="chart";}w7=this.panels[f2];if(!w7){return;}c9=H3.yAxis?H3.yAxis:w7.yAxis;g1=H3.type;N8=this.chart.dataSegment;F7=!"1";g4p.O_b(29);Z_=g4p.v$j("1",32);G0=1;for(T_=0;T_ < M4.length;T_++){F7|=M4[T_].border_color_up && !c0.isTransparent(M4[T_].border_color_up);F7|=M4[T_].border_color_down && !c0.isTransparent(M4[T_].border_color_down);Z_=M4[T_].opacity_up;G0=M4[T_].opacity_down;if(!H3.highlight && this.highlightedDraggable){Z_*=0.3;G0*=0.3;}}if(H3.borders === !"1"){F7=!"1";}if(!H3.name){H3.name=I4C;}F$=c9.multiplier;g4p.W5N();if(!H3.heightPercentage){H3.heightPercentage=0.7;}if(!H3.widthFactor){H3.widthFactor=0.8;}b7=0;T8=+"0";for(var n_=+"0";n_ < this.chart.maxTicks;n_++){Y6=N8[n_];if(!Y6)continue;q6=0;for(T_=0;T_ < M4.length;T_++){K1=Y6[M4[T_].field];if(K1 || K1 === 0){D0=M4[T_].subField || this.chart.defaultPlotField || "Close";if(typeof K1 == "object" && K1[D0]){K1=K1[D0];}if(g1 == "stacked"){q6+=K1;}else {q6=K1;}if(q6 > b7){b7=q6;}if(q6 < T8){T8=q6;}}}}if(b7 === 0 && T8 === 0){this.displayErrorAsWatermark(f2,this.translateIf(H3.name + " Not Available"));return;}o3=!({});if(!H3.bindToYAxis){if(c9.flipped){Q6=Math.floor(c9.top) - 0.5;g8=Math.floor(c9.bottom) - 0.5;}else {Q6=Math.floor(c9.bottom) + 0.5;g8=Math.floor(c9.top) + 0.5;}F$=Math.abs(Q6 - g8) * H3.heightPercentage / (b7 - T8);}else {if(c9.baseline){T8=c9.baseline.value;o3=!!1;}Q6=Math.floor(this.pixelFromPrice(T8,w7,c9)) + (c9.flipped?-0.5:0.5);}this.startClip(f2);q5=this.layout.candleWidth <= 1 || !F7?"0" ^ 0:0.5;b3=this.chart.context;if(c9.flipped){b3.translate(0,2 * c9.top);b3.scale(1,-1);}m3=Math.max(+"0",(1 - H3.widthFactor) * this.layout.candleWidth / 2);N_=new Array(N8.length);F6=[];L$=this;h4=1;for(T_="0" | 0;T_ < M4.length;T_++){l5=M4[T_];h4=this.layout.candleWidth * H3.widthFactor;if(m3){if(this.layout.candleWidth - h4 <= 2){F7=!({});}}O1=0;if(g1 == "clustered"){O1=T_;h4/=M4.length;}D0=l5.subField || this.chart.defaultPlotField || "Close";if(typeof l5.color_function == "function"){p6={};for(var n8=0;n8 < N8.length;n8++){if(N8[n8]){D9z="border";D9z+="_opacity";d5=l5.color_function(N8[n8]);if(typeof d5 == "string"){d5={fill_color:d5,border_color:d5};}if(!d5.hasOwnProperty(D9z)){d5.border_opacity=d5.opacity;}W8=d5.fill_color + "," + d5.border_color;if((W8 in p6)){p6[W8].positions.push(n8);}else {d5.positions=[n8];p6[W8]=d5;}}}for(W8 in p6){d5=p6[W8];u3(l5.field,D0,d5.fill_color,d5.opacity,null,null,O1,h4,d5.positions);u3(l5.field,D0,d5.border_color,d5.border_opacity,!0,null,O1,h4,d5.positions);}}else {u3(l5.field,D0,l5.fill_color_up,Z_,null,!"",O1,h4);u3(l5.field,D0,l5.fill_color_down,G0,null,null,O1,h4);if(this.layout.candleWidth >= 2 && F7){u3(l5.field,D0,l5.border_color_up,Z_,!!({}),!!"1",O1,h4);u3(l5.field,D0,l5.border_color_down,G0,!"",null,O1,h4);}}if(g1 == "stacked"){F6=c0.shallowClone(N_);}}b3.globalAlpha=1;this.endClip();function u3(C7,R$,p4,C1,t$,i8,t3,M1,V_){var P_,e9,P3,H0b,m_,o2,U2,N3,r_,D3,n3,O$,N6,j_,a7,Q8b,g$a;if(!C1){C1=1;}b3.globalAlpha=C1;b3.beginPath();g4p.s$9(0);P_=g4p.V9a(Q6,0.5);e9=Math.floor(L$.pixelFromBar("0" - 0,w7.chart) - L$.layout.candleWidth / 2);P3=e9;for(var v7=0;v7 < N8.length;v7++){H0b="clust";H0b+="er";H0b+="e";H0b+="d";m_=F6[v7] || Q6;if(v7 === 0){P_=m_;}if(!N8[v7] || !N8[v7][C7]){P_=m_;P3+=L$.layout.candleWidth;continue;}o2=N8[v7];U2=o2[C7];if(typeof U2 == "object" && U2[R$]){U2=U2[R$];}g4p.s$9(30);N3=g4p.v$j(U2,F$,T8);if(isNaN(N3))continue;r_=L$.layout.candleWidth;if(o2.candleWidth){r_=o2.candleWidth;if(v7 === 0){e9=P3=Math.floor(L$.pixelFromBar(0,w7.chart) - o2.candleWidth / 2);}}D3=Math.floor(m_ - N3) + 0.5;if(D3 > m_ && !o3){D3=m_;}if(V_ && V_.indexOf(v7) == -1 || !V_ && (i8 && o2.Close < o2.iqPrevClose || !i8 && o2.Close >= o2.iqPrevClose)){P_=D3;P3+=r_;continue;}n3=r_ / L$.layout.candleWidth;if(m3){g4p.O_b(31);O$=Math.round(g4p.v$j(n3,t3,M1,P3,m3));g4p.O_b(0);N6=g4p.v$j(O$,t$?0:q5);j_=O$ + Math.round(M1 * n3) - (t$?0:q5);}else {g4p.O_b(31);O$=g4p.V9a(n3,t3,M1,P3,m3);N6=Math.round(O$) + (t$?0:q5);j_=Math.round(O$ + M1 * n3) - (t$?0:q5);}if(j_ - N6 < ("2" ^ 0)){g4p.O_b(0);j_=g4p.V9a(N6,1);}a7=t$?+"0":0.5;if(N6 % 1 == a7){N6+=+"0.5";}if(j_ % 1 == a7){g4p.O_b(2);j_+=g4p.V9a(1,"0.5");}b3.moveTo(j_,m_);if(Q6 != m_ && t$ && !m3 && F6[v7 + 1]){b3.moveTo(j_,Math.max(D3,Math.min(m_,F6[v7 + 1])));}b3.lineTo(j_,D3);b3.lineTo(N6,D3);if(t$ && t3){if(N_[v7] > D3 || v7 === 0){b3.lineTo(N6,Math.min(m_,N_[v7]));}}else if(t$ && !m3 && g1 == H0b){if(v7 > 0 && N_[v7 - 1] && N_[v7 - +"1"] > D3){b3.lineTo(N6,Math.min(m_,N_[v7 - ("1" ^ 0)]));}}else if(t$ && !m3){if(P_ > D3 || v7 === 0){b3.lineTo(N6,Math.min(m_,P_));}}else {b3.lineTo(N6,m_);}P_=D3;P3+=r_;if(g1 != "clustered" || t$){N_[v7]=D3;}}if(t$){Q8b="au";Q8b+="t";Q8b+="o";b3.strokeStyle=!p4 || p4 == Q8b?L$.defaultColor:p4;b3.stroke();}else {g$a="a";g$a+="u";g$a+="to";b3.fillStyle=!p4 || p4 == g$a?L$.defaultColor:p4;b3.fill();}b3.closePath();}};c0.ChartEngine.prototype.scatter=function(W7,y6){var F0Y,N8n,z1,T9,X6,m9,S5,d9,P7,n6,g2,h7,Z7,B9,z5,R4,Z3,f9,x3,n4;F0Y="Cl";F0Y+="ose";N8n="stx_s";N8n+="catter_chart";z1=W7.chart;T9=z1.dataSegment;X6=new Array(T9.length);m9=this.chart.context;this.canvasColor(N8n);if(!y6){y6={};}S5=y6.field || z1.defaultPlotField;d9=y6.yAxis || W7.yAxis;P7=y6.subField || z1.defaultPlotField || F0Y;this.startClip(W7.name);m9.beginPath();m9.lineWidth=y6.lineWidth || 4;if(y6.highlight){m9.lineWidth*=2;}if(!y6.highlight && this.highlightedDraggable){m9.globalAlpha*=0.3;}if(y6.color){m9.strokeStyle=y6.color;}n6=d9.top;g2=d9.bottom;h7=this.layout.candleWidth;g4p.O_b(1);var W_b=g4p.V9a(4,5);Z7=W7.left - 0.5 * h7 + this.micropixels - W_b;for(var T4=0;T4 <= T9.length;T4++){g4p.O_b(9);Z7+=g4p.V9a(h7,2);h7=this.layout.candleWidth;g4p.s$9(9);Z7+=g4p.v$j(h7,2);B9=T9[T4];if(!B9)continue;if(B9.candleWidth){Z7+=(B9.candleWidth - h7) / +"2";h7=B9.candleWidth;}if(!B9.projection){if(z1.transformFunc && d9 == z1.panel.yAxis && B9.transform){B9=B9.transform;}z5=B9[S5];if(z5 && z5[P7] !== undefined){z5=z5[P7];}if(!(z5 instanceof Array)){z5=[z5];}if(("Scatter" in B9)){z5=B9.Scatter;}for(var i3=0;i3 < z5.length;i3++){if(!z5[i3] && z5[i3] !== 0)continue;R4=z5[i3];Z3=0;if(z5[i3] instanceof Array){R4=z5[i3][0];Z3=z5[i3][2];}f9=d9.semiLog?d9.height * (1 - (Math.log(Math.max(R4,0)) / Math.LN10 - d9.logLow) / d9.logShadow):(d9.high - R4) * d9.multiplier;if(d9.flipped){g4p.s$9(1);f9=g4p.v$j(f9,g2);}else {f9+=n6;}if(f9 < n6)continue;if(f9 > g2)continue;x3=2;if(Z3){g4p.O_b(2);x3=g4p.v$j(Z3,h7);}g4p.s$9(1);m9.moveTo(g4p.V9a(x3,Z7),f9);g4p.s$9(0);m9.lineTo(g4p.V9a(Z7,x3),f9);X6[T4]=f9;}}}m9.stroke();m9.closePath();n4={colors:[m9.strokeStyle],cache:X6};this.endClip();m9.lineWidth=+"1";return n4;};};X=L9=>{var E9u=i6UVR;var j2t,p10,x4b,c6X,Y2s,K1J,d0u,n0x,R$w,A4x,N6T,S9,W2,I9e,y3V,v79;j2t="p";j2t+="atter";j2t+="n";p10="lineW";p10+="i";p10+="dt";p10+="h";x4b="fillCo";x4b+="lo";x4b+="r";c6X="so";c6X+="l";c6X+="id";Y2s="a";Y2s+="u";Y2s+="t";Y2s+="o";K1J="a";K1J+="u";K1J+="t";K1J+="o";d0u="soli";d0u+="d";n0x="au";n0x+="t";n0x+="o";R$w="s";R$w+="o";R$w+="lid";A4x="sol";A4x+="i";A4x+="d";N6T="au";N6T+="t";N6T+="o";S9=typeof _CIQ !== "undefined"?_CIQ:L9.CIQ;W2=typeof _timezoneJS !== "undefined"?_timezoneJS:L9.timezoneJS;S9.ChartEngine.drawingTools={};S9.ChartEngine.currentVectorParameters={vectorType:null,pattern:"solid",lineWidth:1,fillColor:"#7DA6F5",currentColor:"auto",axisLabel:!![],fibonacci:{trend:{color:N6T,parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},fibs:[{level:-("0.786" - 0),color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:-("0.618" * 1),color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"},display:!!({})},{level:-0.5,color:"auto",parameters:{pattern:A4x,opacity:0.25,lineWidth:1}},{level:-("0.382" * 1),color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!""},{level:-0.236,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:0,color:"auto",parameters:{pattern:R$w,lineWidth:1},display:!""},{level:0.236,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:"0.382" - 0,color:n0x,parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1},display:!0},{level:0.5,color:"auto",parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1},display:!!"1"},{level:0.618,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!({})},{level:0.786,color:"auto",parameters:{pattern:d0u,opacity:0.25,lineWidth:"1" * 1}},{level:1,color:K1J,parameters:{pattern:"solid",lineWidth:1},display:!""},{level:1.272,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:1.382,color:Y2s,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!0},{level:"1.618" - 0,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!![]},{level:2.618,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:+"4.236",color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1}}],extendLeft:!!0,printLevels:!![],printValues:!"1",timezone:{color:"auto",parameters:{pattern:c6X,opacity:0.25,lineWidth:+"1"}}},annotation:{font:{style:null,size:null,weight:null,family:null}}};S9.ChartEngine.registerDrawingTool=function(g5,q4){S9.ChartEngine.drawingTools[g5]=q4;};S9.ChartEngine.prototype.setDrawingContainer=function(c2){E9u.W3G();this.drawingContainer=c2;};S9.ChartEngine.prototype.exportDrawings=function(){var W9;W9=[];E9u.W3G();for(var F9=0;F9 < this.drawingObjects.length;F9++){W9.push(this.drawingObjects[F9].serialize());}return W9;};S9.ChartEngine.prototype.abortDrawings=function(q_){var Y5M,X0o,k1O,R6;Y5M=-1260672070;X0o=-1243885496;E9u.O_b(29);k1O=E9u.v$j("2",64);for(var D2k=1;E9u.m6F(D2k.toString(),D2k.toString().length,80440) !== Y5M;D2k++){if(q_ == !0){q_=![];}k1O+=2;}if(E9u.m6F(k1O.toString(),k1O.toString().length,63266) !== X0o){if(q_ !== !({})){q_=!!({});}}for(var D_=this.drawingObjects.length - 1;D_ >= ("0" ^ 0);D_--){R6=this.drawingObjects[D_];R6.abort(!![]);if(q_ || !R6.permanent){this.drawingObjects.splice(D_,1);}}};S9.ChartEngine.prototype.importDrawings=function(a4){var k2,I_,K2;if(!S9.Drawing){return;}E9u.W3G();for(var Z1=+"0";Z1 < a4.length;Z1++){k2=a4[Z1];if(k2.name == "fibonacci"){k2.name="retracement";}I_=S9.ChartEngine.drawingTools[k2.name];if(!I_){if(S9.Drawing[k2.name]){I_=S9.Drawing[k2.name];S9.ChartEngine.registerDrawingTool(k2.name,I_);}}if(I_){K2=new I_();K2.reconstruct(this,k2);this.drawingObjects.push(K2);}}};S9.ChartEngine.prototype.clearDrawings=function(f0,f4){var F8,K7;if(f4 !== !!0){f4=!!"1";}F8=this.exportDrawings();this.abortDrawings(f4);if(f0){this.undoStamps=[];}else {this.undoStamp(F8,this.exportDrawings());}this.changeOccurred("vector");this.cancelTouchSingleClick=!!"1";S9.clearCanvas(this.chart.tempCanvas,this);this.draw();E9u.W3G();K7=this.controls.mSticky;if(K7){K7.style.display="none";K7.children["0" << 64].innerHTML="";}};S9.ChartEngine.prototype.createDrawing=function(w9,d8){var m5,B6;if(!S9.Drawing){return;}m5=new S9.Drawing[w9]();m5.reconstruct(this,d8);B6=new S9.Drawing[w9]();B6.stx=this;B6.copyConfig();for(var r1 in B6){m5[r1]=m5[r1] || B6[r1];}this.drawingObjects.push(m5);this.draw();return m5;};S9.ChartEngine.prototype.removeDrawing=function(G2){var O3c;for(var f5=0;f5 < this.drawingObjects.length;f5++){if(this.drawingObjects[f5] == G2){O3c="v";O3c+="ector";E9u.s$9(2);this.drawingObjects.splice(f5,E9u.V9a(1,"1"));this.changeOccurred(O3c);this.draw();return;}};};S9.ChartEngine.prototype.undo=function(){if(this.runPrepend("undo",arguments)){return;}if(this.activeDrawing){this.activeDrawing.abort();this.activeDrawing.hidden=!1;this.drawingSnapshot=null;this.activateDrawing(null);S9.clearCanvas(this.chart.tempCanvas,this);this.draw();this.controls.crossX.classList.replace("stx_crosshair_drawing","stx_crosshair");this.controls.crossY.classList.replace("stx_crosshair_drawing","stx_crosshair");S9.ChartEngine.drawingLine=!1;}this.runAppend("undo",arguments);};S9.ChartEngine.prototype.undoStamp=function(n0,s9){this.undoStamps.push(n0);this.dispatch("undoStamp",{before:n0,after:s9,stx:this});};S9.ChartEngine.prototype.undoLast=function(){E9u.W5N();if(this.activeDrawing){this.undo();}else {if(this.undoStamps.length){this.drawingObjects=[];this.importDrawings(this.undoStamps.pop());this.changeOccurred("vector");this.draw();}}};S9.ChartEngine.prototype.addDrawing=function(l0){var Q_;Q_=this.exportDrawings();this.drawingObjects.push(l0);this.undoStamp(Q_,this.exportDrawings());};S9.ChartEngine.prototype.repositionDrawing=function(X9,F3){var V3,A2,H0;V3=this.panels[X9.panelName];E9u.W3G();A2=this.adjustIfNecessary(V3,this.crosshairTick,this.valueFromPixel(this.backOutY(S9.ChartEngine.crosshairY),V3));H0=this.chart.tempCanvas;S9.clearCanvas(H0,this);if(F3){this.drawingSnapshot=this.exportDrawings();X9.render(H0.context);}else {X9.reposition(H0.context,X9.repositioner,this.crosshairTick,A2);if(this.drawingSnapshot){this.undoStamp(S9.shallowClone(this.drawingSnapshot),this.exportDrawings());}this.drawingSnapshot=null;}if(X9.measure){X9.measure();}};S9.ChartEngine.prototype.activateRepositioning=function(G7){var z$9,H1;z$9="b";z$9+="lock";E9u.W3G();H1=this.repositioningDrawing=G7;if(G7){this.draw();this.repositionDrawing(G7,!!1);}this.chart.tempCanvas.style.display=G7?z$9:"none";};S9.ChartEngine.prototype.activateDrawing=function(y4,W4){var A1H,J_A,M5m,Q3H,B1;if(!W4){W4=this.currentPanel;}if(!y4){A1H="no";A1H+="n";A1H+="e";this.activeDrawing=null;this.chart.tempCanvas.style.display=A1H;s5(this);return ![];}function s5(z3){var G4;if(!z3.layout.studies){return;}E9u.W3G();G4=z3.layout.studies[W4.name];if(G4 && !G4.overlay){delete z3.overlays[G4.name];}}J_A=-+"823830164";M5m=-113927890;Q3H=2;E9u.W3G();for(var c5q=1;E9u.m6F(c5q.toString(),c5q.toString().length,98162) !== J_A;c5q++){B1=S9.ChartEngine.drawingTools[y4];Q3H+=2;}if(E9u.l5h(Q3H.toString(),Q3H.toString().length,43136) !== M5m){B1=S9.ChartEngine.drawingTools[y4];}if(!B1){if(S9.Drawing[y4]){B1=S9.Drawing[y4];S9.ChartEngine.registerDrawingTool(y4,B1);}}if(B1){this.activeDrawing=new B1();this.activeDrawing.construct(this,W4);if(!this.charts[W4.name]){if(this.activeDrawing.chartsOnly){this.activeDrawing=null;s5(this);return ![];}}}this.chart.tempCanvas.style.display="block";if(this.controls.drawOk){this.controls.drawOk.style.display="none";}s5(this);return !![];};S9.ChartEngine.prototype.drawingClick=function(B5,t4,C5){var X0,Z$,Y1,Z8c,M_q,b0g,O4C,L81;if(!S9.Drawing){return;}if(!B5){return;}if(this.openDialog !== ""){return;}if(!this.activeDrawing){if(!this.activateDrawing(this.currentVectorParameters.vectorType,B5)){return;}}if(this.activeDrawing){if(this.userPointerDown && !this.activeDrawing.dragToDraw){if(!S9.ChartEngine.drawingLine){this.activateDrawing(null);}return;}X0=this.tickFromPixel(t4,B5.chart);Z$=this.panels[this.activeDrawing.panelName];Y1=this.adjustIfNecessary(Z$,X0,this.valueFromPixel(C5,Z$));if(this.magnetizedPrice){Y1=this.adjustIfNecessary(Z$,X0,this.magnetizedPrice);}if(this.activeDrawing.click(this.chart.tempCanvas.context,X0,Y1)){if(this.activeDrawing){Z8c="s";Z8c+="tx_crosshair";M_q="st";M_q+="x_crosshair_drawing";b0g="ve";b0g+="ct";b0g+="o";b0g+="r";S9.ChartEngine.drawingLine=!({});S9.clearCanvas(this.chart.tempCanvas,this);this.addDrawing(this.activeDrawing);this.activateDrawing(null);this.adjustDrawings();this.draw();this.changeOccurred(b0g);this.controls.crossX.classList.replace(M_q,"stx_crosshair");this.controls.crossY.classList.replace("stx_crosshair_drawing",Z8c);}}else {O4C="stx_cross";O4C+="ha";O4C+="ir_draw";O4C+="ing";L81="stx_";L81+="crosshair";this.changeOccurred("drawing");S9.ChartEngine.drawingLine=!0;this.controls.crossX.classList.replace("stx_crosshair","stx_crosshair_drawing");this.controls.crossY.classList.replace(L81,O4C);}return !0;}return ![];};S9.ChartEngine.prototype.rightClickDrawing=function(a_,p_){var Q5m,r9,m$;Q5m="rightCli";Q5m+="ck";Q5m+="Drawing";if(this.runPrepend(Q5m,arguments)){return;}if(a_.permanent){return;}if(this.callbackListeners.drawingEdit.length){this.dispatch("drawingEdit",{stx:this,drawing:a_,forceEdit:p_});}else {r9=a_.abort();if(!r9){m$=this.exportDrawings();this.removeDrawing(a_);this.undoStamp(m$,this.exportDrawings());}this.changeOccurred("vector");}this.runAppend("rightClickDrawing",arguments);};S9.ChartEngine.prototype.magnetize=function(){var P4m,u0T,I77,P6s,j_s,s86,x6,s1,k5,D$,K0,A$,Z5,t8,R0,x39,z$,s6,Z2,M$,H8,z4,W3,k4,e1,c8;P4m="stx-dragg";P4m+="a";P4m+="b";P4m+="le";u0T="#";u0T+="398dff";I77="C";I77+="l";I77+="o";I77+="se";P6s="L";P6s+="o";P6s+="w";j_s="ca";j_s+="ll";j_s+="ou";j_s+="t";s86="f";s86+="ree";s86+="f";s86+="orm";this.magnetizedPrice=null;if(!this.preferences.magnet){return;}if(this.runPrepend("magnetize",arguments)){return;}if(this.repositioningDrawing){return;}x6=this.currentVectorParameters.vectorType;if(!x6 || x6 == "projection" || x6 == s86){return;}if((x6 == "annotation" || x6 == j_s) && S9.ChartEngine.drawingLine){return;}s1=this.currentPanel;k5=s1.chart;D$=this.crosshairTick;if(D$ > k5.dataSet.length){return;}K0=k5.dataSet[D$];if(!K0){return;}A$=k5.transformFunc && s1.yAxis === k5.yAxis;if(A$ && K0.transform){K0=K0.transform;}t8=this.getRenderedItems();R0=["Open","High",P6s,I77];if(this.magneticHold && this.activeDrawing && this.activeDrawing.penDown){x39="Hi";x39+="gh";if(R0.indexOf(this.magneticHold) != -1 && t8.indexOf(x39) != -1){t8=R0;}else {t8=[this.magneticHold];}}else {this.magneticHold=null;}z$=1000000000;s6=parseFloat(this.preferences.magnet);for(var U3="0" >> 0;U3 < t8.length;U3++){Z2=K0[t8[U3]];M$=this.getYAxisByField(s1,t8[U3]);H8=S9.existsInObjectChain(K0,t8[U3]);if(H8){Z2=H8.obj[H8.member];}if(Z2 || Z2 === "0" - 0){z4=this.pixelFromTransformedValue(Z2,s1,M$);if(Math.abs(this.cy - z4) < z$){z$=Math.abs(this.cy - z4);if(s6 && s6 <= z$)continue;this.magnetizedPrice=A$?this.valueFromPixel(z4,s1):Z2;Z5=z4;this.magneticHold=t8[U3];}}}W3=this.pixelFromTick(D$,k5);k4=Z5;S9.clearCanvas(k5.tempCanvas,this);e1=k5.tempCanvas.context;e1.beginPath();e1.lineWidth=1;E9u.s$9(32);var k2c=E9u.V9a(30,17,40,90,8);E9u.O_b(33);var n86=E9u.v$j(13,1,11);c8=Math.max(this.layout.candleWidth,k2c) / n86;e1.arc(W3,k4,Math.min(c8,8),0,+"2" * Math.PI,!({}));e1.fillStyle="#398dff";e1.strokeStyle=u0T;e1.fill();e1.stroke();e1.closePath();k5.tempCanvas.style.display="block";if(this.anyHighlighted){this.container.classList.remove(P4m);}if(this.activeDrawing){this.activeDrawing.move(e1,this.crosshairTick,this.magnetizedPrice);}this.runAppend("magnetize",arguments);};S9.ChartEngine.prototype.changeVectorType=function(E$){this.currentVectorParameters.vectorType=E$;if(S9.Drawing){S9.Drawing.initializeSettings(this,E$);}if(S9.ChartEngine.drawingLine){this.undo();}if(this.insideChart){this.doDisplayCrosshairs();}};S9.ChartEngine.prototype.changeVectorParameter=function(I2,L6){var T0r,g2a,s99,J6,q0o,D0V;T0r="fon";T0r+="tSize";g2a="t";g2a+="r";g2a+="u";g2a+="e";s99="ax";s99+="isLa";s99+="bel";if(I2 == s99){L6=L6.toString() === g2a || Number(L6);}else if(I2 == "lineWidth"){L6=Number(L6);}else if(I2 == T0r){E9u.s$9(23);var r0x=E9u.v$j(11,1);L6=parseInt(L6,r0x) + "px";}J6=this.currentVectorParameters;if(typeof J6[I2] !== "undefined"){J6[I2]=L6;return !!({});}else if(I2.substr(0,4) == "font"){q0o="defau";q0o+="lt";D0V="fa";D0V+="mily";I2=I2.substr(4).toLowerCase();if(I2 == D0V && L6.toLowerCase() == q0o){L6=null;}J6=J6.annotation.font;if(typeof J6[I2] !== "undefined"){J6[I2]=L6;return !!1;}}return !({});};S9.ChartEngine.prototype.drawVectors=function(){var h5,m6,j2,N0,l9;if(this.vectorsShowing){return;}if(this.runPrepend("drawVectors",arguments)){return;}this.vectorsShowing=!![];if(!this.chart.hideDrawings && !this.highlightedDraggable){h5={};for(j2=0;j2 < this.drawingObjects.length;j2++){N0=this.drawingObjects[j2];if(N0.hidden)continue;if(this.repositioningDrawing === N0)continue;m6=N0.panelName;if(!this.panels[N0.panelName] || this.panels[N0.panelName].hidden)continue;if(!h5[m6]){h5[m6]=[];}h5[m6].push(N0);}for(m6 in h5){this.startClip(m6);l9=h5[m6];for(j2=0;j2 < l9.length;j2++){l9[j2].render(this.chart.context);}this.endClip();}}E9u.W3G();this.runAppend("drawVectors",arguments);};S9.ChartEngine.prototype.adjustDrawings=function(){var Q2;for(var w1=+"0";w1 < this.drawingObjects.length;w1++){Q2=this.drawingObjects[w1];if(this.panels[Q2.panelName]){Q2.adjust();}}};S9.Drawing=S9.Drawing || (function(){this.chartsOnly=!!0;this.penDown=!!"";E9u.W5N();;});S9.Drawing.getDrawingParameters=function(J$,h_){var i4,s3,u6,a6;E9u.W5N();try{i4=new S9.Drawing[h_]();}catch(k7){}if(!i4){return null;}i4.stx=J$;i4.copyConfig(!0);s3={};u6=i4.configs;for(var n7=0;n7 < u6.length;n7++){s3[u6[n7]]=i4[u6[n7]];}a6=J$.canvasStyle("stx_annotation");if(a6 && s3.font){s3.font.size=a6.fontSize;s3.font.family=a6.fontFamily;s3.font.style=a6.fontStyle;s3.font.weight=a6.fontWeight;}return s3;};S9.Drawing.saveConfig=function(w2,Y8){var D6,W_;if(!Y8){return;}D6=w2.preferences;if(!D6.drawings){D6.drawings={};}D6.drawings[Y8]={};W_=new S9.Drawing[Y8]();W_.stx=w2;S9.Drawing.copyConfig(W_);W_.configs.forEach(function(d2){E9u.W3G();D6.drawings[Y8][d2]=W_[d2];});w2.changeOccurred("preferences");};S9.Drawing.restoreDefaultConfig=function(z8,u4,f8){var Z4c,u$g,M$m;if(f8){z8.preferences.drawings=null;}else {z8.preferences.drawings[u4]=null;}z8.changeOccurred("preferences");E9u.W5N();Z4c=-935116489;u$g=-137411935;M$m=2;for(var v5h=1;E9u.m6F(v5h.toString(),v5h.toString().length,27367) !== Z4c;v5h++){z8.currentVectorParameters=S9.clone(S9.ChartEngine.currentVectorParameters);z8.currentVectorParameters.vectorType=u4;M$m+=2;}if(E9u.m6F(M$m.toString(),M$m.toString().length,73385) !== u$g){z8.currentVectorParameters=S9.clone(S9.ChartEngine.currentVectorParameters);z8.currentVectorParameters.vectorType=u4;}};S9.Drawing.initializeSettings=function(Q1,U1){var i1,C6;i1=S9.Drawing[U1];if(i1){C6=new i1();if(C6.initializeSettings){C6.initializeSettings(Q1);}}};S9.Drawing.updateSource=function(B4,T5,z6,r5){var i_,j1;if(!T5){return;}i_=!"1";for(var i5 in B4.drawingObjects){j1=B4.drawingObjects[i5];if(!j1.field)continue;if(z6){if(j1.field == T5){j1.field=z6;i_=!"";}else if(j1.field.indexOf(T5) > -1 && j1.field.indexOf(T5 + ((594.84,+"864.07") > (3954,7230)?(0x1358,"0xebf" - 0):"1448" - 0 >= ("4053" ^ 0)?4850 == (4460,5880)?(0x1242,"G"):(3.88e+3,800.65):"-")) == -("1" ^ 0)){j1.field=j1.field.replace(T5,z6);i_=!![];}}else {if(j1.field.split("-->")[0] == T5 || j1.panelName == T5){j1.panelName=r5;i_=!!({});}}}if(i_){B4.changeOccurred("vector");}};S9.Drawing.prototype.copyConfig=function(Y_){E9u.W5N();S9.Drawing.copyConfig(this,Y_);};S9.Drawing.copyConfig=function(N1,E2){var h8,b4,K4,I9,g8u,o5,s9M,c51;h8=N1.stx.currentVectorParameters;b4=N1.configs;for(K4=0;K4 < b4.length;K4++){g8u="f";g8u+="o";g8u+="n";g8u+="t";I9=b4[K4];if(I9 == "color"){N1.color=h8.currentColor;}else if(I9 == "parameters"){N1.parameters=S9.clone(h8.fibonacci);}else if(I9 == g8u){N1.font=S9.clone(h8.annotation.font);}else {N1[I9]=h8[I9];}}if(!E2){return;}o5=N1.stx.preferences;if(o5 && o5.drawings){S9.extend(N1,o5.drawings[h8.vectorType]);for(K4=+"0";K4 < b4.length;K4++){s9M="f";s9M+="o";s9M+="n";s9M+="t";c51="p";c51+="arameters";I9=b4[K4];if(I9 == "color"){h8.currentColor=N1.color;}else if(I9 == c51){h8.fibonacci=S9.clone(N1.parameters);}else if(I9 == s9M){h8.annotation.font=S9.clone(N1.font);}else {h8[I9]=N1[I9];}}}};S9.Drawing.prototype.dragToDraw=![];S9.Drawing.prototype.permanent=!({});S9.Drawing.prototype.chartsOnly=![];S9.Drawing.prototype.abort=function(N2){};S9.Drawing.prototype.measure=function(){};S9.Drawing.prototype.construct=function(X1,r$){this.stx=X1;this.panelName=r$.name;};S9.Drawing.prototype.render=function(T6){console.warn("must implement render function!");};S9.Drawing.prototype.click=function(M3,F4,o_){console.warn("must implement click function!");};S9.Drawing.prototype.move=function(u2,T3,L7){console.warn("must implement move function!");};S9.Drawing.prototype.reposition=function(k6,a5,H5,e3){};S9.Drawing.prototype.intersected=function(w4,P9,U6){var X67;X67="must implement intersected functi";X67+="on!";console.warn(X67);};S9.Drawing.prototype.reconstruct=function(M9,P6){console.warn("must implement reconstruct function!");};S9.Drawing.prototype.serialize=function(){console.warn("must implement serialize function!");};S9.Drawing.prototype.adjust=function(){console.warn("must implement adjust function!");};S9.Drawing.prototype.highlight=function(x4){if(x4 && !this.highlighted){this.highlighted=x4;}else if(!x4 && this.highlighted){this.highlighted=x4;}return this.highlighted;};S9.Drawing.prototype.littleCircleRadius=function(){var s8;s8=6;return s8;};S9.Drawing.prototype.littleCircle=function(z7,f6,k_,c3){var y3,p9;if(this.permanent){return;}y3=this.stx.defaultColor;p9=S9.chooseForegroundColor(y3);z7.beginPath();E9u.s$9(1);z7.lineWidth=E9u.v$j(0,"1");z7.arc(f6,k_,this.littleCircleRadius(),0,2 * Math.PI,!"1");if(c3){z7.fillStyle=y3;}else {z7.fillStyle=p9;}z7.strokeStyle=y3;z7.setLineDash([]);z7.fill();z7.stroke();z7.closePath();};S9.Drawing.prototype.rotator=function(S3,w8,p7,o0){var O2,S_,p8;if(this.permanent){return;}O2=this.littleCircleRadius();S_=this.stx.defaultColor;S3.beginPath();S3.lineWidth=2;if(!o0){S3.globalAlpha=0.5;}E9u.s$9(34);p8=E9u.v$j(O2,"4",64);S3.arc(w8,p7,p8,0,+"3" * Math.PI / 2,!({}));E9u.s$9(35);S3.moveTo(E9u.V9a(2,p8,w8),E9u.v$j(p7,2,E9u.s$9(0)));E9u.s$9(0);S3.lineTo(E9u.V9a(w8,p8),p7);E9u.O_b(33);S3.lineTo(E9u.V9a(w8,p8,2),E9u.V9a(p7,2,E9u.O_b(0)));E9u.O_b(36);S3.moveTo(E9u.v$j("2",w8),E9u.v$j(2,p7,p8,E9u.O_b(16)));E9u.O_b(1);S3.lineTo(w8,E9u.V9a(p8,p7));E9u.s$9(1);E9u.W3G();S3.lineTo(E9u.v$j(2,w8),E9u.v$j(2,p8,p7,E9u.s$9(37)));S3.strokeStyle=S_;S3.stroke();S3.closePath();E9u.O_b(29);S3.globalAlpha=E9u.v$j("1",32);};S9.Drawing.prototype.mover=function(R5,I5,K9,Z4){var y8,G8,L8,I$;if(this.permanent){return;}y8=this.littleCircleRadius();G8=this.stx.defaultColor;L8=5;E9u.s$9(0);I$=E9u.v$j(y8,1);R5.save();E9u.O_b(29);R5.lineWidth=E9u.V9a("2",32);R5.strokeStyle=G8;R5.translate(I5,K9);if(!Z4){R5.globalAlpha=0.5;}for(var S$=0;S$ < 4;S$++){R5.rotate(Math.PI / 2);R5.beginPath();R5.moveTo(0,I$);E9u.O_b(0);R5.lineTo(0,E9u.V9a(I$,L8));E9u.s$9(16);R5.moveTo(-2,E9u.V9a(L8,I$,2));E9u.O_b(0);R5.lineTo(0,E9u.v$j(I$,L8));E9u.s$9(16);R5.lineTo(2,E9u.V9a(L8,I$,2));R5.closePath();R5.stroke();}E9u.s$9(29);R5.globalAlpha=E9u.v$j("1",32);R5.restore();};S9.Drawing.prototype.resizer=function(u7,I4,a3,y9){var B$,d_,t6,k9;if(this.permanent){return;}E9u.W5N();B$=this.littleCircleRadius();d_=this.stx.defaultColor;E9u.s$9(38);var x6z=E9u.V9a(20,7,18,18,10);t6=+"5" * Math.sqrt(x6z);E9u.s$9(6);k9=E9u.v$j(B$,"1");u7.save();u7.lineWidth=2;u7.strokeStyle=d_;u7.translate(I4,a3);u7.rotate(-(I4 * a3) / Math.abs(I4 * a3) * Math.PI / 4);if(!y9){u7.globalAlpha=0.5;}for(var E8=0;E8 < 2;E8++){u7.rotate(Math.PI);u7.beginPath();u7.moveTo(0,k9);E9u.O_b(0);u7.lineTo(0,E9u.v$j(k9,t6));E9u.O_b(16);u7.moveTo(-2,E9u.V9a(t6,k9,2));E9u.s$9(39);u7.lineTo(E9u.V9a("0",0),E9u.v$j(k9,t6,E9u.s$9(0)));E9u.s$9(40);u7.lineTo(2,E9u.V9a(t6,k9,"2",0));u7.closePath();u7.stroke();}u7.globalAlpha=+"1";u7.restore();};S9.Drawing.prototype.pointIntersection=function(G5,l4,F5,i9){var i$;i$=this.stx.panels[this.panelName];if(!i$){return !({});}if(i9){if(G5 >= F5.cx0 && G5 <= F5.cx1 && l4 >= F5.cy0 && l4 <= F5.cy1){return !"";}}else {if(G5 >= F5.x0 && G5 <= F5.x1 && l4 >= Math.min(F5.y0,F5.y1) && l4 <= Math.max(F5.y0,F5.y1)){return !0;}}return !({});};S9.Drawing.prototype.setPoint=function(l6,F2,c_,n$){var u4x,t_,y5,i0,o85,X$,g3;u4x="num";u4x+="ber";t_=null;y5=null;E9u.W5N();if(typeof F2 == u4x){t_=F2;}else if(F2.length >= 8){y5=F2;}else {t_=Number(F2);}if(c_ || c_ === 0){E9u.O_b(0);this[E9u.V9a("v",l6)]=c_;}if(t_ !== null){o85="t";o85+="zo";i0=this.stx.dateFromTick(t_,n$,!![]);E9u.O_b(0);this[E9u.V9a(o85,l6)]=i0.getTimezoneOffset();E9u.O_b(0);this[E9u.V9a(552.6 <= 132.77?!({}):(121.89,1257) >= 8120?(0xe6b,"k"):"d",l6)]=S9.yyyymmddhhmmssmmm(i0);E9u.O_b(0);this[E9u.V9a(492.95 >= (764.01,+"8600")?!0:(747,475) === +"5378"?+"4.34e+3":+"865.5" == "4205" << 0?(!!"1",!!1):"p",l6)]=[t_,c_];}else if(y5 !== null){i0=S9.strToDateTime(y5);if(!this["tzo" + l6] && this["tzo" + l6] !== 0){E9u.O_b(0);this[E9u.V9a("tzo",l6)]=i0.getTimezoneOffset();}E9u.s$9(0);this[E9u.V9a(("7151" - 0,7725) == (5871,9983)?6.14e+3:(4520,40.49) <= (1060,5291)?"d":(3357,"2416" << 32) == (742,6171)?"9.65e+3" << 0:!![],l6)]=y5;X$=this["tzo" + l6] - i0.getTimezoneOffset();i0.setMinutes(i0.getMinutes() + X$);g3=![];if(this.name != "freeform" && !S9.ChartEngine.isDailyInterval(this.stx.layout.interval) && !i0.getHours() && !i0.getMinutes() && !i0.getSeconds() && !i0.getMilliseconds()){g3=!!({});}E9u.O_b(0);this[E9u.V9a(19 != (8146,1010)?"p":0xa7,l6)]=[this.stx.tickFromDate(S9.yyyymmddhhmmssmmm(i0),n$,null,g3),c_];}};S9.Drawing.prototype.getLineColor=function(R1){var L6d,F29,M6,e2,W$,K3,w$,b6,t7,Q5F,A8,L_;E9u.W3G();L6d="a";L6d+="u";L6d+="t";L6d+="o";F29="a";F29+="u";F29+="t";F29+="o";if(!R1){R1=this.color;}M6=this.stx;e2=R1;if(this.highlighted){e2=M6.getCanvasColor("stx_highlight_vector");}else if(S9.isTransparent(e2)){e2=M6.defaultColor;}else if(e2 == F29){e2=M6.defaultColor;if(this.field){for(W$ in M6.layout.studies){K3=M6.layout.studies[W$];w$=K3.outputs[K3.outputMap[this.field]];if(w$){e2=w$.color || w$;break;}}for(W$ in M6.chart.seriesRenderers){t7=M6.chart.seriesRenderers[W$];for(var Q0=0;Q0 < t7.seriesParams.length;Q0++){Q5F="-";Q5F+="-";Q5F+=">";A8=t7.seriesParams[Q0];L_=A8.field;if(!L_ && !t7.highLowBars){L_=this.defaultPlotField || "Close";}if(A8.symbol && A8.subField){L_+=Q5F + A8.subField;}if(this.field == L_){e2=A8.color;break;}if(A8.field && A8.field == this.field.split("-->")[0]){b6=A8.color;}}}if(b6){e2=b6;}}}if(e2 == L6d){e2=M6.defaultColor;}return e2;};S9.Drawing.BaseTwoPoint=function(){E9u.W5N();this.p0=null;this.p1=null;this.color="";};S9.inheritsFrom(S9.Drawing.BaseTwoPoint,S9.Drawing);S9.Drawing.BaseTwoPoint.prototype.configs=[];S9.Drawing.BaseTwoPoint.prototype.lineIntersection=function(s7,k1,Y2,E7,G_,M8,N4){E9u.W3G();var N5,F1,b8;if(!G_){G_=this.p0;}if(!M8){M8=this.p1;}N5=this.stx;if(!(G_ && M8)){return ![];}F1=S9.convertBoxToPixels(N5,this.panelName,Y2);if(F1.x0 === undefined){return ![];}b8={x0:G_[0],x1:M8["0" << 0],y0:G_[1],y1:M8[1]};if(!N4){b8=S9.convertBoxToPixels(N5,this.panelName,b8);}return S9.boxIntersects(F1.x0,F1.y0,F1.x1,F1.y1,b8.x0,b8.y0,b8.x1,b8.y1,E7);};S9.Drawing.BaseTwoPoint.prototype.boxIntersection=function(b0,x_,G3){E9u.W3G();if(!this.p0 || !this.p1){return !({});}if(G3.x0 > Math.max(this.p0[0],this.p1[0]) || G3.x1 < Math.min(this.p0[0],this.p1[+"0"])){return !!"";}if(G3.y1 > Math.max(this.p0[1],this.p1[1]) || G3.y0 < Math.min(this.p0["1" >> 32],this.p1[1])){return !"1";}return !0;};S9.Drawing.BaseTwoPoint.prototype.accidentalClick=function(H2,O6){var H6,Q5,J0,T2,Y7,M0,k3,a0;H6=this.stx.panels[this.panelName];Q5=this.stx.pixelFromTick(this.p0[0],H6.chart);J0=this.stx.pixelFromTick(H2,H6.chart);T2=this.stx.pixelFromValueAdjusted(H6,this.p0[0],this.p0[1]);Y7=this.stx.pixelFromValueAdjusted(H6,H2,O6);E9u.s$9(1);M0=Math.abs(E9u.v$j(Q5,J0));E9u.s$9(1);k3=Math.abs(E9u.V9a(T2,Y7));E9u.O_b(41);a0=Math.sqrt(E9u.v$j(k3,M0,k3,M0));if(a0 < 10){this.penDown=!({});if(this.dragToDraw){this.stx.undo();}return !"";}};S9.Drawing.BaseTwoPoint.prototype.click=function(H4,b9,z0){var W0,c8G,H37,M9i;this.copyConfig();W0=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,b9,z0,W0.chart);this.penDown=!!"1";return !"1";}E9u.W5N();if(this.accidentalClick(b9,z0)){return this.dragToDraw;}this.setPoint(1,b9,z0,W0.chart);this.penDown=!1;c8G=-1085514531;E9u.s$9(42);H37=-E9u.V9a("57670071",35);M9i=2;for(var B9D="1" << 0;E9u.m6F(B9D.toString(),B9D.toString().length,93560) !== c8G;B9D++){return !![];;M9i+=2;}if(E9u.m6F(M9i.toString(),M9i.toString().length,14266) !== H37){return !({});;}};S9.Drawing.BaseTwoPoint.prototype.adjust=function(){var g7;g7=this.stx.panels[this.panelName];if(!g7){return;}this.setPoint(0,this.d0,this.v0,g7.chart);this.setPoint(1,this.d1,this.v1,g7.chart);};S9.Drawing.BaseTwoPoint.prototype.move=function(I1,y$,T0){var C$c,C8B,f2$;if(!this.penDown){return;}C$c=1115619788;C8B=-1774743925;f2$=+"2";for(var O1w="1" * 1;E9u.l5h(O1w.toString(),O1w.toString().length,14235) !== C$c;O1w++){this.copyConfig();f2$+=2;}if(E9u.l5h(f2$.toString(),f2$.toString().length,5357) !== C8B){this.copyConfig();}this.p1=[y$,T0];this.render(I1);};S9.Drawing.BaseTwoPoint.prototype.measure=function(){var g4,E3,G_O,H9;if(this.p0 && this.p1){this.stx.setMeasure(this.p0[1],this.p1[1],this.p0[0],this.p1[0],!![],this.name);g4=this.stx.controls.mSticky;E3=g4 && g4.querySelector(".mStickyInterior");if(E3){G_O="<";G_O+="br>";H9=[];H9.push(S9.capitalize(this.name));if(this.getYValue){H9.push(this.field || this.stx.defaultPlotField || "Close");}H9.push(E3.innerHTML);E3.innerHTML=H9.join(G_O);}}};S9.Drawing.BaseTwoPoint.prototype.reposition=function(o8,T1,V5,b2){var G5s,X8l,L3,S0,W1;G5s="d";G5s+="r";G5s+="a";G5s+="g";X8l="m";X8l+="ov";X8l+="e";if(!T1){return;}L3=this.stx.panels[this.panelName];S0=T1.tick - V5;W1=T1.value - b2;if(T1.action == X8l){this.setPoint(+"0",T1.p0[0] - S0,T1.p0[1] - W1,L3.chart);E9u.s$9(2);this.setPoint(E9u.V9a(1,"1"),T1.p1[0] - S0,T1.p1[1] - W1,L3.chart);this.render(o8);}else if(T1.action == G5s){this[T1.point]=[V5,b2];this.setPoint(0,this.p0[0],this.p0[1],L3.chart);this.setPoint(1,this.p1[0],this.p1[1],L3.chart);this.render(o8);}};S9.Drawing.BaseTwoPoint.prototype.drawDropZone=function(J8,f7,u$,a8,C_){var A_,r4,J5,E1,p$;A_=this.stx.panels[this.panelName];if(!A_){return;}r4=A_.left;J5=A_.width;if(a8 || a8 === 0){r4=this.stx.pixelFromTick(a8,A_.chart);}if(C_ || C_ === "0" << 0){J5=this.stx.pixelFromTick(C_,A_.chart);}E1=this.stx.pixelFromPrice(f7,A_);p$=this.stx.pixelFromPrice(u$,A_);J8.fillStyle="#008000";J8.globalAlpha=0.2;E9u.O_b(1);J8.fillRect(r4,E1,E9u.v$j(r4,J5),E9u.V9a(E1,p$));J8.globalAlpha=1;};S9.Drawing.annotation=function(){this.name="annotation";this.arr=[];this.w=0;this.h=0;this.padding=4;this.text="";this.ta=null;this.fontSize=+"0";this.font={};};S9.inheritsFrom(S9.Drawing.annotation,S9.Drawing.BaseTwoPoint);S9.Drawing.annotation.prototype.getFontString=function(){var S$V,J_,j6;E9u.W3G();S$V="12";S$V+="p";S$V+="x";this.fontDef={style:null,weight:null,size:S$V,family:null};J_=this.stx.canvasStyle("stx_annotation");if(J_){if(J_.fontStyle){this.fontDef.style=J_.fontStyle;}if(J_.fontWeight){this.fontDef.weight=J_.fontWeight;}if(J_.fontSize){this.fontDef.size=J_.fontSize;}if(J_.fontFamily){this.fontDef.family=J_.fontFamily;}}if(this.font.style){this.fontDef.style=this.font.style;}if(this.font.weight){this.fontDef.weight=this.font.weight;}if(this.font.size){this.fontDef.size=this.font.size;}if(this.font.family){this.fontDef.family=this.font.family;}this.fontString="";j6=!!({});for(var p5 in this.fontDef){if(this.fontDef[p5]){if(!j6){this.fontString+=" ";}else {j6=!!"";}this.fontString+=this.fontDef[p5];}}};S9.Drawing.annotation.prototype.configs=["color","font"];S9.Drawing.annotation.prototype.measure=function(){};S9.Drawing.annotation.prototype.render=function(m8){var a0K,o$x,i7k,F0,z_,O3j,M7,s6I,h5q,b_6,f05,s26,C2,v6i;if(this.ta){return;}a0K=this.stx.panels[this.panelName];if(!a0K){return;}o$x=this.stx.pixelFromTick(this.p0[0],a0K.chart);i7k=this.stx.pixelFromValueAdjusted(a0K,this.p0[0],this.p0[1]);m8.font=this.fontString;m8.textBaseline="middle";F0=o$x;z_=i7k;O3j=this.w;M7=this.h;s6I=this.getLineColor();if(this.stem){if(this.stem.d){h5q=this.stx.pixelFromTick(this.stem.t);f05=this.stx.pixelFromValueAdjusted(a0K,this.stem.t,this.stem.v);E9u.O_b(43);b_6=E9u.v$j(F0,2,O3j);E9u.s$9(43);s26=E9u.v$j(z_,2,M7);}else if(this.stem.x){h5q=F0;f05=z_;F0+=this.stem.x;z_+=this.stem.y;E9u.s$9(43);b_6=E9u.V9a(F0,2,O3j);E9u.O_b(43);s26=E9u.V9a(z_,2,M7);}m8.beginPath();if(this.borderColor){m8.strokeStyle=this.borderColor;}else {m8.strokeStyle=s6I;}m8.moveTo(h5q,f05);m8.lineTo(b_6,s26);m8.stroke();}C2=m8.lineWidth;if(this.highlighted){v6i="stx_a";v6i+="nnotation_highlight_bg";this.stx.canvasColor(v6i,m8);E9u.O_b(1);m8.fillRect(E9u.v$j(C2,F0),E9u.V9a(M7,2,C2,z_,E9u.O_b(44)),E9u.v$j(C2,"2",O3j,0,E9u.s$9(45)),E9u.V9a(2,M7,C2,E9u.O_b(46)));}else {if(this.fillColor){m8.fillStyle=this.fillColor;E9u.s$9(47);m8.fillRect(F0,E9u.v$j(M7,z_,2),O3j,M7);}else if(this.stem){m8.fillStyle=this.stx.containerColor;E9u.s$9(47);m8.fillRect(F0,E9u.V9a(M7,z_,2),O3j,M7);}}if(this.borderColor){m8.beginPath();m8.strokeStyle=this.highlighted?this.stx.getCanvasColor("stx_highlight_vector"):this.borderColor;E9u.s$9(1);m8.rect(E9u.v$j(C2,F0),E9u.V9a(M7,2,C2,z_,E9u.s$9(44)),E9u.v$j(2,O3j,C2,E9u.s$9(46)),E9u.v$j(2,M7,C2,E9u.s$9(46)));m8.stroke();}if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight",m8);}else {m8.fillStyle=s6I;}E9u.s$9(0);var J_R=E9u.V9a(1,1);z_+=this.padding / J_R;if(!this.ta){for(var Q9N=0;Q9N < this.arr.length;Q9N++){m8.fillText(this.arr[Q9N],F0 + this.padding,z_ - M7 / 2 + this.fontSize / 2);E9u.O_b(48);var P1s=E9u.V9a(13,28,10,3,14);z_+=this.fontSize + P1s;;}}m8.textBaseline="alphabetic";};S9.Drawing.annotation.prototype.onChange=function(P7f){;};S9.Drawing.annotation.prototype.edit=function(h69,Q9n){var J$F,r5y,c9t,y9C,m6p,v_f,p4Q,m6D,F03,E3D,c_I,m8T,T_z,g2N,J$u,E9x,Y9B;function k_U(b32){return function(I2o){if(b32.manageTouchAndMouse && S9.ChartEngine.drawingLine){b32.mouseup(I2o);}};}J$F="p";J$F+="x";r5y="p";r5y+="x";c9t="ann";c9t+="otat";c9t+="i";c9t+="on";y9C=this.stx.panels[this.panelName];if(!y9C){return;}m6p=this.stx.controls.annotationSave;v_f=this.stx.controls.annotationCancel;if(!m6p || !v_f){return;}p4Q=this.stx;m6D=this.ta;p4Q.editingAnnotation=!![];function l$q(r5j){return function(k9X){var o2F,W21,x3O,G6P,H5f,o$g,H_L,l1X,C9H,B$i,m3x,h3t,H1l;o2F="p";o2F+="x";if(k9X){W21=k9X.keyCode;switch(W21){case 27:r5j.stx.undo();return;}}x3O=r5j.stx;G6P=r5j.ta;H5f=G6P.value.split("\n");o$g=+"0";x3O.chart.context.font=r5j.fontString;for(var J76=0;J76 < H5f.length;J76++){H_L=x3O.chart.context.measureText(H5f[J76]).width;if(H_L > o$g){o$g=H_L;}}E9u.O_b(49);E9u.W3G();var N6D=E9u.V9a(3,15,0,5);E9u.s$9(50);var B3i=E9u.v$j(20,0,16,1);l1X=(H5f.length + N6D) * (r5j.fontSize + B3i);if(o$g < 50){o$g=50;}E9u.s$9(35);G6P.style.width=E9u.v$j(30,o2F,o$g);E9u.O_b(0);G6P.style.height=E9u.V9a(l1X,"px");C9H=parseInt(S9.stripPX(G6P.style.top),10);B$i=S9.stripPX(G6P.style.left);o$g=G6P.clientWidth;l1X=G6P.clientHeight;if(B$i + o$g + ("100" | 36) < r5j.stx.chart.canvasWidth){m3x="p";m3x+="x";E9u.s$9(0);m6p.style.top=E9u.V9a(C9H,"px");E9u.s$9(0);v_f.style.top=E9u.v$j(C9H,"px");E9u.O_b(51);m6p.style.left=E9u.v$j(m3x,10,B$i,o$g);E9u.s$9(52);v_f.style.left=E9u.v$j("px","60",o$g,B$i);}else if(C9H + l1X + +"30" < r5j.stx.chart.canvasHeight){h3t="p";h3t+="x";E9u.s$9(51);m6p.style.top=E9u.v$j("px",10,C9H,l1X);E9u.O_b(51);v_f.style.top=E9u.v$j("px",10,C9H,l1X);E9u.O_b(0);m6p.style.left=E9u.V9a(B$i,"px");E9u.s$9(35);v_f.style.left=E9u.V9a(50,h3t,B$i);}else {H1l="p";H1l+="x";E9u.O_b(33);m6p.style.top=E9u.v$j(C9H,H1l,35);E9u.O_b(33);v_f.style.top=E9u.v$j(C9H,"px",35);E9u.s$9(0);m6p.style.left=E9u.V9a(B$i,"px");E9u.O_b(35);v_f.style.left=E9u.v$j(50,"px",B$i);}};}function K0l(Y2c){return function(B6p){var w1X;w1X=Y2c.stx;w1X.editingAnnotation=!({});w1X.undo();w1X.cancelTouchSingleClick=!!1;};}p4Q.undisplayCrosshairs();p4Q.openDialog=c9t;if(!m6D){F03="plac";F03+="ehol";F03+="der";m6D=this.ta=document.createElement("TEXTAREA");m6D.className="stx_annotation";m6D.onkeyup=l$q(this);m6D.onmouseup=k_U(p4Q);m6D.setAttribute("wrap","hard");if(S9.isIOS7or8){m6D.setAttribute(F03,"Enter Text");}p4Q.chart.container.appendChild(m6D);m6D.style.position="absolute";m6D.style.width="100px";m6D.style.height="20px";m6D.value=this.text;if(S9.touchDevice){m6D.ontouchstart=function(P$5){P$5.stopPropagation();};;}}E3D=this;function R92(k79){E9u.W5N();return function(u3O){var T8o,d1M;T8o="ve";T8o+="ct";T8o+="o";T8o+="r";if(k79.ta.value === ""){return;}k79.text=k79.ta.value;d1M=k79.stx;d1M.editingAnnotation=![];k79.adjust();if(d1M.drawingSnapshot){d1M.undoStamp(S9.shallowClone(d1M.drawingSnapshot),d1M.exportDrawings());}else {d1M.addDrawing(k79);}d1M.undo();d1M.cancelTouchSingleClick=!![];d1M.changeOccurred(T8o);};}m6D.oninput=function(n1f){if(n1f.inputType != "historyUndo" && n1f.inputType != "historyRedo"){E3D.onChange(n1f);}};m6D.style.font=this.fontString;if(this.color){if(this.color == "transparent" || this.color == "auto"){c_I=getComputedStyle(m6D);if(c_I && S9.isTransparent(c_I.backgroundColor)){m6D.style.color=p4Q.defaultColor;}else {m6D.style.color="#000";;}}else {m6D.style.color=this.color;}}m8T=p4Q.pixelFromTick(this.p0[+"0"],y9C.chart);T_z=p4Q.pixelFromValueAdjusted(y9C,this.p0["0" ^ 0],this.p0[1]);m6D.style.left=m8T + 140 < p4Q.chart.canvasRight?m8T + "px":p4Q.chart.canvasRight - 200 + r5y;m6D.style.top=T_z + 60 < p4Q.chart.canvasHeight?T_z - (!isNaN(this.h)?this.h / 2:this.defaultHeight) + "px":T_z - 60 + J$F;if(this.name == "callout"){E9u.s$9(53);var I1Q=E9u.V9a(10,10,7,10);m6D.style.left=S9.stripPX(m6D.style.left) - (!isNaN(this.w)?this.w / I1Q:this.defaultWidth) + "px";}S9.safeClickTouch(m6p,R92(this));S9.safeClickTouch(v_f,K0l(this));l$q(this)();m6p.style.display="inline-block";v_f.style.display="inline-block";if(Q9n){p4Q.drawingSnapshot=p4Q.exportDrawings();this.hidden=!"";p4Q.draw();p4Q.activeDrawing=this;S9.ChartEngine.drawingLine=!!({});h69=p4Q.chart.tempCanvas.context;p4Q.chart.tempCanvas.style.display="block";this.w=m6D.clientWidth;this.h=m6D.clientHeight;S9.clearCanvas(h69.canvas,p4Q);this.render(h69);this.edit(h69);}m6D.focus();if(S9.isAndroid && !S9.is_chrome && !S9.isFF){this.priorBottom=p4Q.chart.container.style.bottom;g2N=400;E9u.s$9(28);var Y1D=E9u.v$j(1500,12,24092,16);J$u=p4Q.resolveY(T_z) + Y1D;if(J$u > S9.pageHeight() - g2N){E9x=S9.pageHeight() - J$u;E9u.O_b(1);Y9B=E9u.V9a(E9x,g2N);E9u.O_b(0);p4Q.chart.container.style.bottom=E9u.v$j(Y9B,"px");}}};S9.Drawing.annotation.prototype.click=function(W3j,e3O,U$u){var j6T;if(this.stx.overXAxis || this.stx.overYAxis){return;}j6T=this.stx.panels[this.panelName];this.copyConfig();this.setPoint(0,e3O,U$u,j6T.chart);this.adjust();this.edit(W3j);return !!"";};S9.Drawing.annotation.prototype.reposition=function(Y7w,z9q,t7a,l5M){var R4F,f1w,v9r;if(!z9q){return;}R4F=this.stx.panels[this.panelName];f1w=z9q.tick - t7a;v9r=z9q.value - l5M;this.setPoint(0,z9q.p0[0] - f1w,z9q.p0[1] - v9r,R4F.chart);this.render(Y7w);};S9.Drawing.annotation.prototype.intersected=function(R6r,T9b,D5Z){var Z$I,I$s,s$u,R95,a0a,h2c,o0H;Z$I=this.stx.panels[this.panelName];if(!this.p0){return null;}I$s=this.stx.pixelFromTick(this.p0[0],Z$I.chart);E9u.s$9(54);var L2e=E9u.V9a(9,6,1,14);s$u=this.stx.pixelFromValueAdjusted(Z$I,this.p0[0],this.p0[+"1"]) - this.h / ("2" * L2e);R95=I$s + this.w;a0a=s$u + this.h;E9u.W3G();if(this.stem && this.stem.x){I$s+=this.stem.x;R95+=this.stem.x;s$u+=this.stem.y;a0a+=this.stem.y;}h2c=this.stx.pixelFromTick(R6r,Z$I.chart);o0H=this.stx.pixelFromValueAdjusted(Z$I,R6r,T9b);if(h2c + D5Z.r >= I$s && h2c - D5Z.r <= R95 && o0H + D5Z.r >= s$u && o0H - D5Z.r <= a0a){this.highlighted=!![];return {p0:S9.clone(this.p0),tick:R6r,value:T9b};}return !({});};S9.Drawing.annotation.prototype.abort=function(){var h3R,Y$D;h3R=this.stx.controls.annotationSave;Y$D=this.stx.controls.annotationCancel;if(h3R){h3R.style.display="none";}E9u.W3G();if(Y$D){Y$D.style.display="none";}if(this.ta){this.stx.chart.container.removeChild(this.ta);}this.ta=null;this.stx.openDialog="";this.stx.showCrosshairs();this.stx.editingAnnotation=!({});S9.clearCanvas(this.stx.chart.tempCanvas,this.stx);if(S9.isAndroid && !S9.is_chrome && !S9.isFF){this.stx.chart.container.style.bottom=this.priorBottom;}S9.fixScreen();};S9.Drawing.annotation.prototype.reconstruct=function(W4L,f7C){var P_u;P_u="f";P_u+="amil";P_u+="y";this.stx=W4L;this.color=f7C.col;this.panelName=f7C.pnl;this.d0=f7C.d0;this.tzo0=f7C.tzo0;this.v0=f7C.v0;this.text=W4L.escapeOnSerialize?decodeURIComponent(f7C.text):f7C.text;this.stem=f7C.stem;this.borderColor=f7C.bc;this.fillColor=f7C.bg;E9u.W3G();this.lineWidth=f7C.lw;this.pattern=f7C.ptrn;this.font=S9.replaceFields(f7C.fnt,{st:"style",sz:"size",wt:"weight",fl:P_u});if(!this.font){this.font={};}this.adjust();};S9.Drawing.annotation.prototype.serialize=function(){var r1c,F$z,D_g;r1c={name:this.name,pnl:this.panelName,col:this.color,d0:this.d0,tzo0:this.tzo0,v0:this.v0,text:this.stx.escapeOnSerialize?encodeURIComponent(this.text):this.text};if(this.font){F$z="s";F$z+="z";D_g=S9.removeNullValues(S9.replaceFields(this.font,{style:"st",size:F$z,weight:"wt",family:"fl"}));if(!S9.isEmpty(D_g)){r1c.fnt=D_g;}}if(this.stem){r1c.stem={d:this.stem.d,v:this.stem.v,x:this.stem.x,y:this.stem.y};}if(this.borderColor){r1c.bc=this.borderColor;}if(this.fillColor){r1c.bg=this.fillColor;}if(this.lineWidth){r1c.lw=this.lineWidth;}if(this.pattern){r1c.ptrn=this.pattern;}return r1c;};S9.Drawing.annotation.prototype.renderText=function(){var J3O,H$P,Z3K,M0Q,R_T,q8$;this.getFontString();J3O=this.stx.panels[this.panelName];if(!J3O){return;}this.arr=this.text.split("\n");H$P=0;this.stx.chart.context.font=this.fontString;for(var Z79=0;Z79 < this.arr.length;Z79++){Z3K=this.stx.chart.context.measureText(this.arr[Z79]).width;if(Z3K > H$P){H$P=Z3K;}}if(H$P === ("0" | 0)){E9u.s$9(17);var d1N=E9u.v$j(2,3,13,1,11);H$P=d1N * this.defaultWidth;}this.fontSize=S9.stripPX(this.fontDef.size);M0Q=this.arr.length * (this.fontSize + +"2");if(S9.touchDevice){M0Q+=5;}E9u.O_b(23);var l$g=E9u.v$j(11,9);this.w=H$P + this.padding * l$g;E9u.s$9(0);var R6z=E9u.V9a(0,2);this.h=M0Q + this.padding * R6z;R_T=this.stx.pixelFromTick(this.p0[0],J3O.chart) + H$P;E9u.O_b(55);var w9A=E9u.V9a(19,0,5,1,95);q8$=this.stx.pixelFromValueAdjusted(J3O,this.p0[0],this.p0[w9A]) + M0Q;this.p1=[this.stx.tickFromPixel(R_T,J3O.chart),this.stx.valueFromPixel(q8$,J3O)];if(this.stem && this.stem.d){this.stem.t=this.stx.tickFromDate(this.stem.d,J3O.chart);}};S9.Drawing.annotation.prototype.adjust=function(){var j2P;j2P=this.stx.panels[this.panelName];if(!j2P){return;}this.setPoint(0,this.d0,this.v0,j2P.chart);E9u.W5N();this.renderText();};S9.Drawing.segment=function(){E9u.W3G();this.name="segment";};S9.inheritsFrom(S9.Drawing.segment,S9.Drawing.BaseTwoPoint);S9.Drawing.segment.prototype.render=function(w62){var V3G,d10,k_u,J9g,L8h,K$O,P0b,L03,P2v,w3Q,B8u,z16,f6p,U24,Q3f,Q93,D1j,P9j,p$U;V3G="n";V3G+="o";V3G+="ne";d10=this.stx.panels[this.panelName];if(!d10){return;}k_u=this.stx.pixelFromTick(this.p0[0],d10.chart);J9g=this.stx.pixelFromTick(this.p1["0" >> 32],d10.chart);L8h=this.stx.pixelFromValueAdjusted(d10,this.p0[0],this.p0[1]);E9u.W5N();K$O=this.stx.pixelFromValueAdjusted(d10,this.p1[0],this.p1[1]);P0b=this.lineWidth;L03=this.getLineColor();P2v={pattern:this.pattern,lineWidth:P0b};if(P2v.pattern == V3G){P2v.pattern="solid";}this.stx.plotLine(k_u,J9g,L8h,K$O,L03,this.name,w62,d10,P2v);if(this.axisLabel && !this.repositioner){w3Q="v";w3Q+="e";w3Q+="rt";w3Q+="ical";B8u="hor";B8u+="izo";B8u+="n";B8u+="tal";if(this.name == B8u){this.stx.endClip();z16=this.p0[1];if(d10.chart.transformFunc){z16=d10.chart.transformFunc(this.stx,d10.chart,z16);}if(d10.yAxis.priceFormatter){z16=d10.yAxis.priceFormatter(this.stx,d10,z16);}else {z16=this.stx.formatYAxisPrice(z16,d10);}this.stx.createYAxisLabel(d10,z16,L8h,L03);this.stx.startClip(d10.name);}else if(this.name == w3Q && this.p0["0" - 0] >= 0 && !this.stx.chart.xAxis.noDraw){f6p=this.stx.dateFromTick(this.p0[0],d10.chart,!![]);if(!S9.ChartEngine.isDailyInterval(this.stx.layout.interval)){E9u.O_b(56);var g5o=E9u.v$j(995,1022,15,8,995);Q3f=f6p.getSeconds() * g5o + f6p.getMilliseconds();if(W2.Date && this.stx.displayZone){U24=new W2.Date(f6p.getTime(),this.stx.displayZone);f6p=new Date(U24.getFullYear(),U24.getMonth(),U24.getDate(),U24.getHours(),U24.getMinutes());f6p=new Date(f6p.getTime() + Q3f);}}else {E9u.s$9(1);f6p.setHours(0,0,E9u.v$j(0,"0"),E9u.V9a("0",0,E9u.s$9(39)));}Q93=S9.mmddhhmm(S9.yyyymmddhhmm(f6p));if(d10.chart.xAxis.formatter){Q93=d10.chart.xAxis.formatter(f6p,this.name,null,null,Q93);}else if(this.stx.internationalizer){if(f6p.getHours() !== 0 || f6p.getMinutes() !== 0){D1j=this.stx.internationalizer.monthDay.format(f6p);E9u.O_b(0);var B1k=E9u.v$j(6042,18);E9u.s$9(57);var e6d=E9u.V9a(752574,6872,9,10,11);E9u.O_b(16);var L1v=E9u.V9a(20,6653,31);E9u.s$9(58);var e5c=E9u.V9a(225,15,111,1);E9u.O_b(1);var d9Z=E9u.v$j(20,5390);E9u.s$9(1);var e$Z=E9u.V9a(117344,124678);E9u.O_b(0);var L7e=E9u.v$j(4733,13);E9u.O_b(21);var G31=E9u.V9a(19,441,3969);E9u.O_b(0);var J3c=E9u.V9a(1450,7252);D1j+=(B1k !== (e6d,L1v)?" ":(e5c,+"979.47") <= (d9Z,e$Z)?(205.17,L7e) !== (G31,447.84)?(87.31,"0x2180" | 0):393.32:(874.80,J3c)) + this.stx.internationalizer.hourMinute.format(f6p);}else {D1j=this.stx.internationalizer.yearMonthDay.format(f6p);}Q93=D1j;}this.stx.endClip();this.stx.createXAxisLabel({panel:d10,txt:Q93,x:k_u,backgroundColor:L03,color:null,pointed:!!1,padding:2});this.stx.startClip(d10.name);}}if(this.highlighted && this.name != "horizontal" && this.name != "vertical"){P9j=this.highlighted == "p0"?!![]:![];p$U=this.highlighted == "p1"?!!({}):!!"";this.littleCircle(w62,k_u,L8h,P9j);this.littleCircle(w62,J9g,K$O,p$U);}};S9.Drawing.segment.prototype.abort=function(){E9u.W5N();this.stx.setMeasure(null,null,null,null,!!"");};S9.Drawing.segment.prototype.intersected=function(E3m,z9n,I6a){var r0O,M1Q,t_C,l0b,k1y;r0O="vert";r0O+="ical";M1Q="h";M1Q+="orizo";M1Q+="ntal";if(!this.p0 || !this.p1){return null;}t_C=this.name;if(t_C != "horizontal" && t_C != "vertical" && t_C != "gartley"){l0b={0:this.p0,1:this.p1};for(var V2x in l0b){if(this.pointIntersection(l0b[V2x][0],l0b[V2x][1],I6a)){E9u.s$9(0);this.highlighted=E9u.v$j((+"6700",2090) != (491.24,+"5093")?"p":("898.18" * 1,9225) == 604.54?(!!1,8.44e+3):("l",5.20e+3),V2x);return {action:"drag",point:"p" + V2x};}}}if(t_C == M1Q || t_C == r0O){t_C="line";}E9u.W5N();k1y=this.lineIntersection(E3m,z9n,I6a,t_C);if(k1y){this.highlighted=!![];return {action:"move",p0:S9.clone(this.p0),p1:S9.clone(this.p1),tick:E3m,value:z9n};}return null;};S9.Drawing.segment.prototype.configs=["color","lineWidth","pattern"];S9.Drawing.segment.prototype.copyConfig=function(B0T){var t8F;t8F="s";t8F+="ol";E9u.W3G();t8F+="id";S9.Drawing.copyConfig(this,B0T);if(this.pattern == "none" && this.configs.indexOf("fillColor") == -("1" | 1)){this.pattern=t8F;}};S9.Drawing.segment.prototype.reconstruct=function(H9g,O8Q){this.stx=H9g;this.color=O8Q.col;this.panelName=O8Q.pnl;this.pattern=O8Q.ptrn;this.lineWidth=O8Q.lw;this.d0=O8Q.d0;this.d1=O8Q.d1;this.tzo0=O8Q.tzo0;this.tzo1=O8Q.tzo1;this.v0=O8Q.v0;E9u.W5N();this.v1=O8Q.v1;this.adjust();};S9.Drawing.segment.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};S9.Drawing.line=function(){this.name="line";};S9.inheritsFrom(S9.Drawing.line,S9.Drawing.segment);S9.Drawing.line.prototype.dragToDraw=![];E9u.W5N();S9.Drawing.line.prototype.calculateOuterSet=function(K7C){var U1E,B8T,y1k;if(this.p0[0] == this.p1[0] || this.p0[1] == this.p1[+"1"] || S9.ChartEngine.isDailyInterval(this.stx.layout.interval)){return;}U1E={x0:this.p0[0],y0:this.p0[1],x1:this.p1[0],y1:this.p1[1]};if(U1E.x0 > U1E.x1){U1E={x0:this.p1[0],y0:this.p1[+"1"],x1:this.p0[+"0"],y1:this.p0[1]};}E9u.O_b(59);var o5B=E9u.v$j(15,981,688,3);B8T=U1E.x0 - o5B;E9u.s$9(21);var Y5t=E9u.V9a(13,5000,64000);y1k=U1E.x1 + Y5t;this.v0B=S9.yIntersection(U1E,B8T);this.v1B=S9.yIntersection(U1E,y1k);this.d0B=this.stx.dateFromTick(B8T,K7C.chart);this.d1B=this.stx.dateFromTick(y1k,K7C.chart);};S9.Drawing.line.prototype.click=function(r7R,b5I,t3H){var L1t;L1t=this.stx.panels[this.panelName];if(!L1t){return;}this.copyConfig();if(!this.penDown){this.setPoint(0,b5I,t3H,L1t.chart);this.penDown=!![];return !"1";}if(this.accidentalClick(b5I,t3H)){return this.dragToDraw;}E9u.W5N();this.setPoint(1,b5I,t3H,L1t.chart);this.calculateOuterSet(L1t);this.penDown=!({});return !"";;};S9.Drawing.line.prototype.reconstruct=function(R_z,H56){this.stx=R_z;this.color=H56.col;this.panelName=H56.pnl;this.pattern=H56.ptrn;this.lineWidth=H56.lw;this.v0=H56.v0;this.v1=H56.v1;this.d0=H56.d0;this.d1=H56.d1;this.tzo0=H56.tzo0;this.tzo1=H56.tzo1;if(H56.d0B){this.d0B=H56.d0B;this.d1B=H56.d1B;this.v0B=H56.v0B;this.v1B=H56.v1B;}this.adjust();};S9.Drawing.line.prototype.serialize=function(){var C_n;C_n={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};if(this.d0B){C_n.d0B=this.d0B;C_n.d1B=this.d1B;C_n.v0B=this.v0B;C_n.v1B=this.v1B;}E9u.W5N();return C_n;};S9.Drawing.line.prototype.adjust=function(){var i3g;i3g=this.stx.panels[this.panelName];if(!i3g){return;}this.setPoint(0,this.d0,this.v0,i3g.chart);this.setPoint(1,this.d1,this.v1,i3g.chart);if(S9.ChartEngine.isDailyInterval(this.stx.layout.interval) && this.d0B){this.setPoint(0,this.d0B,this.v0B,i3g.chart);this.setPoint(1,this.d1B,this.v1B,i3g.chart);}};S9.Drawing.horizontal=function(){this.name="horizontal";};S9.inheritsFrom(S9.Drawing.horizontal,S9.Drawing.segment);S9.Drawing.horizontal.prototype.dragToDraw=![];S9.Drawing.horizontal.prototype.measure=function(){};S9.Drawing.horizontal.prototype.click=function(r_Q,M1s,M_z){var s6A;s6A=this.stx.panels[this.panelName];if(!s6A){return;}this.copyConfig();this.setPoint(0,M1s,M_z,s6A.chart);return !![];;};S9.Drawing.horizontal.prototype.intersected=function(s5L,Y76,r0l){var z0K,s4r,i8u,J1P;if(this.lineIntersection(s5L,Y76,r0l,"line")){z0K="m";z0K+="o";z0K+="v";z0K+="e";s4r=this.stx;i8u=s4r.chart.dataSet.length;J1P=this.p0[+"1"];this.highlighted=!!({});return {action:z0K,p0:[i8u - 2,J1P],p1:[i8u - 1,J1P],tick:s5L,value:Y76};}return null;};S9.Drawing.horizontal.prototype.reconstruct=function(y_e,h4b){this.stx=y_e;this.color=h4b.col;this.panelName=h4b.pnl;this.pattern=h4b.ptrn;this.lineWidth=h4b.lw;this.v0=h4b.v0;this.d0=h4b.d0;this.tzo0=h4b.tzo0;this.axisLabel=h4b.al;this.adjust();};S9.Drawing.horizontal.prototype.serialize=function(){var y_f;E9u.W5N();y_f={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,v0:this.v0,d0:this.d0,tzo0:this.tzo0,al:this.axisLabel};return y_f;};S9.Drawing.horizontal.prototype.adjust=function(){var w_x;w_x=this.stx.panels[this.panelName];if(!w_x){return;}this.setPoint(0,this.d0,this.v0,w_x.chart);E9u.s$9(37);var x0c=E9u.v$j(4,896,1000);this.p1=[this.p0[0] + x0c,this.p0[1]];};S9.Drawing.horizontal.prototype.configs=["color","lineWidth","pattern","axisLabel"];S9.Drawing.vertical=function(){var I2U;I2U="ve";I2U+="rt";I2U+="ical";this.name=I2U;};S9.inheritsFrom(S9.Drawing.vertical,S9.Drawing.horizontal);S9.Drawing.vertical.prototype.measure=function(){};I9e=-221171804;y3V=-282884049;v79=+"2";for(var z_i="1" >> 32;E9u.l5h(z_i.toString(),z_i.toString().length,4939) !== I9e;z_i++){S9.Drawing.vertical.prototype.intersected=S9.Drawing.segment.prototype.intersected;v79+=2;}if(E9u.l5h(v79.toString(),v79.toString().length,83949) !== y3V){S9.Drawing.vertical.prototype.intersected=S9.Drawing.segment.prototype.intersected;}S9.Drawing.vertical.prototype.adjust=function(){var w_1;w_1=this.stx.panels[this.panelName];if(!w_1){return;}this.setPoint(0,this.d0,this.v0,w_1.chart);E9u.O_b(16);var D27=E9u.v$j(17,6,22);E9u.O_b(60);var I_G=E9u.V9a(18,99,8,10);this.p1=[this.p0[0],this.p0[D27] + I_G];};S9.Drawing.measure=function(){this.name="measure";};S9.inheritsFrom(S9.Drawing.measure,S9.Drawing.segment);S9.Drawing.measure.prototype.click=function(d0E,r0r,K77){this.copyConfig();if(!this.penDown){this.p0=[r0r,K77];this.penDown=!"";return !!0;}this.stx.undo();this.penDown=!!0;return !![];};S9.Drawing.rectangle=function(){var P0s;P0s="rec";E9u.W5N();P0s+="t";P0s+="angl";P0s+="e";this.name=P0s;};S9.inheritsFrom(S9.Drawing.rectangle,S9.Drawing.BaseTwoPoint);S9.Drawing.rectangle.prototype.render=function(z54){var J$z,r2l,k2_,w8N,F4u,a6q,U93,H5e,J_J,K9c,Q7P,J0w,X7P,V_i,B5z,G4M,M23,a8n,g2G,F9Y;J$z="s";J$z+="e";J$z+="gm";J$z+="ent";r2l="a";r2l+="u";r2l+="t";r2l+="o";k2_=this.stx.panels[this.panelName];if(!k2_){return;}w8N=this.stx.pixelFromTick(this.p0[0],k2_.chart);F4u=this.stx.pixelFromTick(this.p1[0],k2_.chart);a6q=this.stx.pixelFromValueAdjusted(k2_,this.p0[0],this.p0[1]);U93=this.stx.pixelFromValueAdjusted(k2_,this.p1[+"0"],this.p1[+"1"]);H5e=Math.round(Math.min(w8N,F4u)) + 0.5;J_J=Math.min(a6q,U93);K9c=Math.max(w8N,F4u) - H5e;Q7P=Math.max(a6q,U93) - J_J;J0w=this.color;if(this.highlighted){J0w=this.stx.getCanvasColor("stx_highlight_vector");}X7P=-48847820;E9u.O_b(29);V_i=E9u.V9a("532562126",64);B5z=+"2";for(var a61=1;E9u.m6F(a61.toString(),a61.toString().length,"65541" - 0) !== X7P;a61++){G4M=this.fillColor;B5z+=2;}if(E9u.l5h(B5z.toString(),B5z.toString().length,+"85890") !== V_i){G4M=this.fillColor;}if(G4M && !S9.isTransparent(G4M) && G4M != r2l){z54.beginPath();z54.rect(H5e,J_J,K9c,Q7P);z54.fillStyle=G4M;z54.globalAlpha=0.2;z54.fill();z54.closePath();z54.globalAlpha=1;}M23={pattern:this.pattern,lineWidth:this.lineWidth};if(this.highlighted && M23.pattern == "none"){a8n="so";a8n+="li";a8n+="d";M23.pattern=a8n;if(M23.lineWidth == "0.1" * 1){M23.lineWidth=1;}}this.stx.plotLine(w8N,F4u,a6q,a6q,J0w,"segment",z54,k2_,M23);E9u.O_b(36);this.stx.plotLine(F4u,F4u,E9u.V9a("0.5",a6q),E9u.V9a(U93,0.5,E9u.s$9(0)),J0w,J$z,z54,k2_,M23);this.stx.plotLine(F4u,w8N,U93,U93,J0w,"segment",z54,k2_,M23);E9u.O_b(0);this.stx.plotLine(w8N,w8N,E9u.v$j(U93,0.5),E9u.v$j("0.5",a6q,E9u.s$9(36)),J0w,"segment",z54,k2_,M23);if(this.highlighted){g2G=this.highlighted == "p0"?!"":!({});F9Y=this.highlighted == "p1"?!!({}):!1;this.littleCircle(z54,w8N,a6q,g2G);this.littleCircle(z54,F4u,U93,F9Y);}};S9.Drawing.rectangle.prototype.intersected=function(C8N,n4l,Z_o){var q0B;if(!this.p0 || !this.p1){return null;}q0B={0:this.p0,1:this.p1};for(var B8w in q0B){if(this.pointIntersection(q0B[B8w][0],q0B[B8w][1],Z_o)){E9u.s$9(0);this.highlighted=E9u.V9a(8670 >= ("552.67" * 1,"790.91" - 0)?"5146" >> 32 < (8098,"1840" - 0)?(!!({}),818.63):"p":"J",B8w);return {action:"drag",point:"p" + B8w};}}if(this.boxIntersection(C8N,n4l,Z_o)){this.highlighted=!!({});return {action:"move",p0:S9.clone(this.p0),p1:S9.clone(this.p1),tick:C8N,value:n4l};}return null;};S9.Drawing.rectangle.prototype.configs=["color",x4b,"lineWidth","pattern"];S9.Drawing.rectangle.prototype.reconstruct=function(w2p,f$5){this.stx=w2p;this.color=f$5.col;this.fillColor=f$5.fc;this.panelName=f$5.pnl;this.pattern=f$5.ptrn;this.lineWidth=f$5.lw;this.d0=f$5.d0;this.d1=f$5.d1;this.tzo0=f$5.tzo0;this.tzo1=f$5.tzo1;this.v0=f$5.v0;this.v1=f$5.v1;this.adjust();};S9.Drawing.rectangle.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};S9.Drawing.shape=function(){this.name="shape";E9u.W5N();this.radians=0;this.a=0;this.rotating=!"1";this.textMeasure=!!0;this.configurator="shape";this.dimension=[0,0];this.points=[];};S9.inheritsFrom(S9.Drawing.shape,S9.Drawing.BaseTwoPoint);S9.Drawing.shape.prototype.setRotationOnInitialDraw=!1;S9.Drawing.shape.prototype.measure=function(){};S9.Drawing.shape.prototype.render=function(w5R){var C9b,j_X,j0k,F$f,E4J,m6d,u3x,Z3X,h0Q,Z28,Z_J,T0V,o9B,c2A,i7m,K4P,w84,Z0q,J$2,d8S,t_T,e3r,D0$,m0D;if(!this.points.length){return;}C9b=this.stx.panels[this.panelName];if(!C9b){return;}j_X=this.stx.pixelFromTick(this.p0[0],C9b.chart);j0k=this.stx.pixelFromValueAdjusted(C9b,this.p0[+"0"],this.p0[1]);if(this.p1){F$f="#0";F$f+="000";F$f+="00";E4J=this.stx.pixelFromTick(this.p1[0],C9b.chart);m6d=this.stx.pixelFromValueAdjusted(C9b,this.p1[0],this.p1[+"1"]);w5R.globalAlpha=0.5;w5R.fillStyle=F$f;if(this.rotating){E9u.s$9(61);this.radians=Math.atan(E9u.v$j(j0k,E4J,m6d,j_X));if(E4J < j_X){this.radians+=Math.PI;}else if(m6d < j0k){E9u.s$9(16);var H89=E9u.v$j(18,19,35);this.radians+=H89 * Math.PI;}E9u.O_b(1);var z5v=E9u.v$j(6,16);E9u.O_b(0);var M3u=E9u.v$j(1,4);this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),z5v) * M3u;E9u.s$9(12);this.a%=E9u.V9a(32,"360");E9u.O_b(1);var U1J=E9u.V9a(1800,1980);this.radians=this.a * Math.PI / U1J;if(this.textMeasure){w5R.fillText(this.a + (("7106" | 66,+"4240") != 6206?"\u00b0":9960 < +"630.94"?(!"1","A"):729.73 == (197.75,6520)?!({}):562.39),E4J + 10,m6d + 10);}}else if(this.penDown){u3x="x";u3x+=",";this.sx=Math.max(1,parseFloat(Math.abs(2 * (E4J - j_X) / this.dimension[0]).toFixed(1)));if(E4J < j_X){this.sx*=-1;}this.sy=Math.max(1,parseFloat(Math.abs(2 * (m6d - j0k) / this.dimension["1" | 0]).toFixed(1)));if(m6d < j0k){E9u.s$9(2);this.sy*=-E9u.V9a(1,"1");}if(this.textMeasure){w5R.fillText(this.sx + u3x + this.sy + (7874 === (3780,1680)?(729.20,2.10e+3):(2610,967.15) != (+"2913",509.56)?712.62 <= (139.67,4570)?"x":(7.27e+3,!0):"g"),E4J + this.sx + 5,m6d + this.sy + ("5" << 0));}}w5R.globalAlpha=+"1";}if(typeof this.sx === "undefined"){this.sx=this.sy=1;}Z3X=this.lineWidth;if(!Z3X){Z3X=1.1;}h0Q={pattern:this.pattern,lineWidth:Z3X};if(this.highlighted && h0Q.pattern == "none"){h0Q.pattern="solid";if(h0Q.lineWidth == "0.1" * 1){h0Q.lineWidth=1;}}Z28=this.color;if(Z28 == "auto" || S9.isTransparent(Z28)){Z28=this.stx.defaultColor;}if(this.highlighted){Z28=this.stx.getCanvasColor("stx_highlight_vector");if(Z3X == 0.1){Z3X=1.1;}}Z_J=this.fillColor;E9u.s$9(62);var m2q=E9u.v$j(9,2,4,4,9);Z3X/=Math.abs(this.sx * this.sy) * m2q / (Math.abs(this.sx) + Math.abs(this.sy));w5R.save();w5R.translate(j_X,j0k);w5R.rotate(this.radians);w5R.scale(this.sx,C9b.yAxis.flipped?-this.sy:this.sy);c2A={x:(this.dimension[0] - +"1") / 2,y:(this.dimension[1] - 1) / +"2"};for(T0V=+"0";T0V < this.points.length;T0V++){w5R.beginPath();for(o9B=0;o9B < this.points[T0V].length;o9B++){if(this.points[T0V][o9B] == (335.91 == (6108,338.45)?(0x2126,!!({})):143.45 != 261.98?(+"7413",9662) <= 486.73?(+"735.20",0x11):"M":(763.20,951.86))){i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.moveTo(i7m,K4P);}else if(this.points[T0V][o9B] == "L"){i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.lineTo(i7m,K4P);}else if(this.points[T0V][o9B] == "Q"){w84=this.points[T0V][++o9B] - c2A.x;J$2=this.points[T0V][++o9B] - c2A.y;i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.quadraticCurveTo(w84,J$2,i7m,K4P);}else if(this.points[T0V][o9B] == ((3240,"118.23" - 0) !== (2596,894.42)?"B":(+"769.03",774.94) > +"4508"?439.87:"d")){w84=this.points[T0V][++o9B] - c2A.x;J$2=this.points[T0V][++o9B] - c2A.y;Z0q=this.points[T0V][++o9B] - c2A.x;d8S=this.points[T0V][++o9B] - c2A.y;i7m=this.points[T0V][++o9B] - c2A.x;K4P=this.points[T0V][++o9B] - c2A.y;w5R.bezierCurveTo(w84,J$2,Z0q,d8S,i7m,K4P);}}w5R.closePath();if(Z_J && !S9.isTransparent(Z_J) && Z_J != "auto"){w5R.fillStyle=Z_J;w5R.fill();;}if(Z28 && this.pattern != "none"){w5R.strokeStyle=Z28;w5R.lineWidth=Z3X;if(w5R.setLineDash){w5R.setLineDash(S9.borderPatternToArray(Z3X,this.pattern));w5R.lineDashOffset=0;;}w5R.stroke();}}w5R.restore();w5R.save();w5R.translate(j_X,j0k);w5R.rotate(this.radians);if(this.highlighted){t_T="#0";t_T+="0";t_T+="000";t_T+="0";e3r=this.highlighted == "p0"?!"":![];D0$=this.highlighted == "p1"?!!({}):!!"";m0D=this.highlighted == "p2"?!!"1":![];this.littleCircle(w5R,0,0,e3r);this.mover(w5R,0,0,e3r);this.littleCircle(w5R,this.sx * this.dimension[+"0"] / ("2" - 0),this.sy * this.dimension[1] / 2,D0$);this.resizer(w5R,this.sx * this.dimension[0] / +"2",this.sy * this.dimension[1] / 2,D0$);this.littleCircle(w5R,this.sx * this.dimension["0" ^ 0] / 2,0,m0D);this.rotator(w5R,this.sx * this.dimension["0" ^ 0] / 2,0,m0D);w5R.globalAlpha=0.5;w5R.fillStyle=t_T;if(this.textMeasure){w5R.fillText(this.sx + "x," + this.sy + "x",this.sx * this.dimension[0] / 2 + 12,this.sy * this.dimension[1] / 2 + 5);w5R.fillText(this.a + "\u00b0",this.sx * this.dimension[0] / 2 + 12,5);}w5R.globalAlpha=+"1";}else if(this.penDown){if(this.rotating){this.rotator(w5R,this.sx * this.dimension[0] / 2,0,!!1);}else {this.resizer(w5R,this.sx * this.dimension[0] / 2,this.sy * this.dimension[1] / ("2" * 1),!!"1");}}w5R.restore();};S9.Drawing.shape.prototype.reposition=function(s7I,F57,t1n,K_P){var c4S,F$Y,e2b,c2w,k2q,s8$,E$Z,k9I;if(!F57){return;}c4S=this.stx.panels[this.panelName];if(F57.action == "move"){F$Y=F57.tick - t1n;e2b=F57.value - K_P;this.setPoint(0,F57.p0[0] - F$Y,F57.p0[1] - e2b,c4S.chart);this.render(s7I);}else {c2w="ro";c2w+="t";c2w+="ate";k2q=this.stx.pixelFromTick(this.p0[0],c4S.chart);s8$=this.stx.pixelFromValueAdjusted(c4S,this.p0["0" * 1],this.p0[1]);E$Z=this.stx.pixelFromTick(t1n,c4S.chart);k9I=this.stx.pixelFromValueAdjusted(c4S,t1n,K_P);if(F57.action == "scale"){this[F57.point]=[t1n,K_P];this.sx=parseFloat((((E$Z - k2q) * Math.cos(this.radians) + (k9I - s8$) * Math.sin(this.radians)) / (this.dimension[0] / 2)).toFixed(1));if(Math.abs(this.sx) < "1" * 1){this.sx/=Math.abs(this.sy);}this.sy=parseFloat((((k9I - s8$) * Math.cos(this.radians) - (E$Z - k2q) * Math.sin(this.radians)) / (this.dimension[1] / 2)).toFixed(1));if(Math.abs(this.sy) < 1){this.sy/=Math.abs(this.sy);}this.render(s7I);}else if(F57.action == c2w){this[F57.point]=[t1n,K_P];E9u.O_b(61);this.radians=Math.atan(E9u.V9a(s8$,E$Z,k9I,k2q));if(E$Z < k2q){this.radians+=Math.PI;}else if(k9I < s8$){E9u.O_b(0);var h9F=E9u.V9a(0,2);this.radians+=h9F * Math.PI;}E9u.O_b(63);var L$v=E9u.v$j(1,5,5);E9u.s$9(0);var J3m=E9u.V9a(2,3);this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),L$v) * J3m;if(this.sx < 0){E9u.O_b(21);var N85=E9u.v$j(8,192,1356);this.a=this.a + N85;}this.a%=360;E9u.O_b(58);var Q0t=E9u.v$j(171,4,1980,880);this.radians=this.a * Math.PI / Q0t;this.render(s7I);}}};S9.Drawing.shape.prototype.intersected=function(s9o,d3v,U6O){var T1c,K0Z,K_Y,P_J,J3_,q7e,t27,C1A,R1u,M1R,J9j,g0J,n6w,h3L,N$Q,X9W;if(!this.p0){return null;}if(this.stx.repositioningDrawing == this && this.stx.repositioningDrawing.repositioner){return this.stx.repositioningDrawing.repositioner;}T1c=this.stx.panels[this.panelName];K0Z=this.stx.pixelFromTick(this.p0[0],T1c.chart);K_Y=this.stx.pixelFromValueAdjusted(T1c,this.p0[0],this.p0["1" | 0]);P_J=this.stx.pixelFromTick(s9o,T1c.chart);J3_=this.stx.pixelFromValueAdjusted(T1c,s9o,d3v);P_J-=K0Z;J3_-=K_Y;q7e=J3_;t27=P_J;P_J=Math.cos(this.radians) * t27 + Math.sin(this.radians) * q7e;J3_=Math.cos(this.radians) * q7e - Math.sin(this.radians) * t27;P_J/=this.sx;J3_/=this.sy;this.padding=S9.ensureDefaults(this.padding || ({}),{left:0,right:+"0",top:0,bottom:0});C1A=this.padding.right + this.padding.left;R1u=this.padding.bottom + this.padding.top;M1R=Math.pow(S9.touchDevice?25:5 + this.littleCircleRadius(),2);J9j=Math.abs(M1R / (this.sx * this.sy));g0J=3;E9u.s$9(16);var F8i=E9u.V9a(13,0,12);E9u.O_b(64);var V73=E9u.V9a(11,16,3,18,23);E9u.O_b(65);E9u.W5N();var t_l=E9u.v$j(3,10,21,19,128);E9u.O_b(21);var r80=E9u.v$j(12,5,59);E9u.s$9(1);var e3A=E9u.v$j(15,17);E9u.s$9(66);var L07=E9u.V9a(4,1,2,1);E9u.O_b(53);var F5g=E9u.v$j(12,3,9,3);E9u.O_b(0);var d49=E9u.v$j(0,2);n6w=Math.pow((this.dimension["0" * F8i] - C1A + g0J) / V73,t_l) + Math.pow((this.dimension[r80] - R1u + g0J) / ("2" | 0),e3A) > Math.pow(P_J - C1A / L07,F5g) + Math.pow(J3_ - R1u / +"2",d49);E9u.s$9(33);var c6u=E9u.V9a(7,11,16);E9u.s$9(67);var S2Y=E9u.V9a(17,5,3,14);h3L=(M1R - (Math.pow(P_J * this.sx,c6u) + Math.pow(J3_ * this.sy,"2" * S2Y))) / Math.abs(this.sx * this.sy);E9u.s$9(68);var F5N=E9u.v$j(4,19,6,6,33);E9u.O_b(18);var U5S=E9u.V9a(15,12,1);E9u.s$9(69);var Q63=E9u.v$j(53,6,9,18);E9u.O_b(1);var j7J=E9u.V9a(6,8);E9u.s$9(70);var B_c=E9u.V9a(5,16,6,6,14);N$Q=J9j - Math.pow(P_J - this.dimension[0] / F5N,U5S) - Math.pow(J3_ - this.dimension[Q63] / j7J,B_c);E9u.s$9(21);var c_b=E9u.V9a(3,40,118);E9u.O_b(23);var q8J=E9u.V9a(12,10);E9u.O_b(26);var N1B=E9u.v$j(0,14,4,7);X9W=J9j - Math.pow(P_J - this.dimension[0] / c_b,q8J) - Math.pow(J3_,N1B);if(n6w){if(N$Q >= X9W && N$Q >= h3L && N$Q > -1){this.highlighted="p1";return {action:"scale"};}if(X9W >= N$Q && X9W >= h3L && X9W > -1){this.highlighted="p2";return {action:"rotate"};}this.highlighted=h3L > -1?"p0":!"";return {action:"move",p0:S9.clone(this.p0),tick:s9o,value:d3v};}return null;};S9.Drawing.shape.prototype.configs=["color","fillColor",p10,j2t];S9.Drawing.shape.prototype.littleCircleRadius=function(){return +"3";};S9.Drawing.shape.prototype.click=function(T5X,t63,I6r){var I9w;if(!this.points.length){return ![];}this.copyConfig();I9w=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,t63,I6r,I9w.chart);this.penDown=!![];return ![];}this.setPoint(1,t63,I6r,I9w.chart);if(this.rotating || !this.setRotationOnInitialDraw){this.penDown=![];this.rotating=![];return !![];;}this.rotating=!!"1";return ![];};S9.Drawing.shape.prototype.adjust=function(){var O$L,B4p,x2h,g2Z;O$L="_";O$L+="v";B4p=this.stx.panels[this.panelName];if(!B4p){return;}x2h=this.name + O$L + (this.version || 0);if(S9.Drawing[x2h]){g2Z=new S9.Drawing[x2h]();this.name=g2Z.name;this.dimension=g2Z.dimension;this.padding=g2Z.padding;this.points=g2Z.points;this.version=g2Z.version;}this.setPoint(0,this.d0,this.v0,B4p.chart);E9u.s$9(3);var J82=E9u.V9a(11,95,16,1044,20);E9u.O_b(71);var i_e=E9u.v$j(216,2,378,10,4);this.radians=Math.round(this.a / J82) * Math.PI / i_e;};S9.Drawing.shape.prototype.reconstruct=function(a2x,g9z){this.stx=a2x;this.color=g9z.col;this.fillColor=g9z.fc;this.panelName=g9z.pnl;E9u.W5N();this.pattern=g9z.ptrn;this.lineWidth=g9z.lw;this.d0=g9z.d0;this.v0=g9z.v0;this.tzo0=g9z.tzo0;this.a=g9z.a;this.sx=g9z.sx;this.sy=g9z.sy;this.version=g9z.ver;this.adjust();};S9.Drawing.shape.prototype.serialize=function(){E9u.W5N();return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,v0:this.v0,tzo0:this.tzo0,a:this.a,sx:this.sx,sy:this.sy,ver:this.version};};S9.Drawing.arrow=function(){this.name="arrow";E9u.W5N();this.version=1;E9u.O_b(29);this.dimension=[E9u.v$j("11",32),22];this.padding={left:+"0",right:0,top:11,bottom:"0" ^ 0};E9u.O_b(29);this.points=[[(7787,"3226" - 0) >= 7040?2950 >= (604.81,821.88)?(740,"457.44" * 1) == (873.16,3780)?"b":"l":"Q":"M",3,E9u.v$j("21",64),"L",7,21,(+"4170",433) != "3810" - 0?3080 != (8080,7460)?"L":("l",55.81):797.07,7,16,"L",10,16,9730 > 1130?"L":("M",!"1"),5,11,2980 >= (1300,5130)?3390 == (128,3520)?9.29e+3:(5220,7845) !== 7950?("M",!![]):!!"1":"L",0,16,1781 > (956.35,24.85)?"L":937.72,3,16,(5460,"6930" >> 32) == 2470?3540 > (907.05,5710)?"3.85e+3" << 64:5.80e+3:"L",3,21]];;};S9.inheritsFrom(S9.Drawing.arrow,S9.Drawing.shape);S9.Drawing.getDrawingToolList=function(I4d){var x0t,O6Y;x0t={};O6Y={arrow_v0:!"",BaseTwoPoint:!!"1",fibonacci:!!({}),shape:!![]};S9.extend(O6Y,I4d);for(var e2Q in S9.Drawing){if(!O6Y[e2Q] && S9.Drawing[e2Q].prototype.render){x0t[new S9.Drawing[e2Q]().name]=e2Q;}}return x0t;};};S=D7R=>{var Y5$,m_b;Y5$="un";Y5$+="defined";m_b=typeof _CIQ !== Y5$?_CIQ:D7R.CIQ;m_b.EaseMachine=function(G_U,s39,G0n,d0b){this.fc=G_U;this.ms=s39;if(G0n || G0n === 0){this.reset(G0n,d0b);}};m_b.EaseMachine.prototype.reset=function(i_F,p3g){var X8A;X8A="o";X8A+="bje";i6UVR.W3G();X8A+="ct";if(!i_F && i_F !== 0){i_F=this.currentValues;}this.hasCompleted=!({});this.running=!({});this.okayToRun=!!"1";i6UVR.s$9(72);this.useNameValuePairs=i6UVR.V9a(typeof p3g,X8A);this.startTime=Date.now();if(this.useNameValuePairs){this.startValues=i_F;this.endValues=p3g;}else {this.startValues={default:i_F};this.endValues={default:p3g};}this.changeValues={};this.currentValues={};for(var s9x in this.startValues){this.changeValues[s9x]=this.endValues[s9x] - this.startValues[s9x];}};m_b.EaseMachine.prototype.next=function(){var Z2L;Z2L=Date.now();if(Z2L >= this.startTime + this.ms){Z2L=this.startTime + this.ms;this.hasCompleted=!"";this.running=!!0;}this.currentValues={};for(var z0A in this.changeValues){this.currentValues[z0A]=this.fc(Z2L - this.startTime,this.startValues[z0A],this.changeValues[z0A],this.ms);}if(!this.useNameValuePairs){return this.currentValues["default"];}return this.currentValues;};m_b.EaseMachine.prototype.hasCompleted=!"";m_b.EaseMachine.prototype.run=function(h0D,g7H,e6J,c7L){i6UVR.W5N();var p_Z;function F5f(){var n2J;p_Z.afid=null;if(!p_Z.okayToRun){return;}n2J=p_Z.next();h0D(n2J);i6UVR.W5N();if(p_Z.hasCompleted){return;}p_Z.afid=requestAnimationFrame(F5f);}if(this.afid){cancelAnimationFrame(this.afid);}if(g7H || g7H === 0){this.reset(g7H,e6J);}else if(e6J || e6J === "0" * 1){this.reset(this.currentValues,e6J);}p_Z=this;this.running=!![];if(c7L){this.afid=requestAnimationFrame(F5f);}else {F5f();}};m_b.EaseMachine.prototype.stop=function(){if(this.afid){cancelAnimationFrame(this.afid);}this.afid=null;this.okayToRun=!"1";i6UVR.W3G();this.hasCompleted=!!1;this.running=!({});if(typeof this.useNameValuePairs == "undefined"){return {};}if(!this.useNameValuePairs){return this.currentValues["default"];}return this.currentValues;};if(m_b.ChartEngine.prototype.animations.zoom.isStub){m_b.ChartEngine.prototype.animations.zoom=new m_b.EaseMachine(Math.easeOutCubic,400);}};i6UVR.W3G();P=q3Y=>{var g6e,o5i;g6e=typeof _CIQ !== "undefined"?_CIQ:q3Y.CIQ;o5i=function(){var C1y=i6UVR;var i7a,k4l,H7l,b7P,z$i,z6D,m53,F3N,Z_Z,S85,M4H,n_a,g6G,q_N,m22,F6t,m$R,v0_;function t13(Q7l){C1y.W5N();return Math.cosh?Math.cosh(Q7l):(Math.exp(Q7l) + Math.exp(-Q7l)) / 2;}i7a="\\";i7a+="n";k4l=0;function m_t(){this.success=!"1";this.errormsg="";C1y.W5N();this.expression="";this.pos=0;this.tokennumber=+"0";this.tokenprio=0;this.tokenindex=0;this.tmpprio=0;this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Y3H,cosh:t13,tanh:Y$V,asinh:h$6,acosh:V7a,atanh:c3D,sqrt:Math.sqrt,log:Math.log,lg:F6A,log10:F6A,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:B33,"-":A3u,exp:Math.exp};this.ops2={"+":P_M,"-":Z5d,"*":s6y,"/":L$K,"%":M0O,"^":Math.pow,",":J4x,"||":u5F,"==":O3Y,"!=":T3M,">":c1M,"<":I4V,">=":s0K,"<=":r5p,and:c9x,or:t4c};this.functions={random:f7i,fac:K38,min:Math.min,max:Math.max,hypot:w0e,pyt:w0e,pow:Math.pow,atan2:Math.atan2,if:f_c};this.consts={E:Math.E,PI:Math.PI};}function h$6(T$0){if(Math.asinh){return Math.asinh(T$0);}if(T$0 === -Infinity){return T$0;}C1y.W3G();return Math.log(T$0 + Math.sqrt(T$0 * T$0 + +"1"));}H7l=1;function c1M(P4d,e7f){C1y.O_b(73);C1y.W3G();return C1y.V9a(P4d,e7f);}b7P=2;function u5F(R1f,t_J){C1y.W5N();C1y.O_b(35);return C1y.V9a(R1f,t_J,"");}z$i=3;function J4x(G3L,b_W){if(Object.prototype.toString.call(G3L) != "[object Array]"){return [G3L,b_W];}G3L=G3L.slice();G3L.push(b_W);return G3L;}function A3u(E0E){return -E0E;}function O3Y(I0f,p$k){C1y.s$9(72);C1y.W5N();return C1y.v$j(I0f,p$k);}function s0K(V6r,C5V){C1y.s$9(74);return C1y.V9a(C5V,V6r);}C1y.O_b(29);z6D=C1y.v$j("4",64);function w0e(){var Y1w,E6Y;if(Math.hypot){return Math.hypot.apply(this,arguments);}Y1w=0;C1y.W3G();E6Y=arguments.length;for(var r7w=0;r7w < E6Y;r7w++){if(arguments[r7w] === Infinity || arguments[r7w] === -Infinity){return Infinity;}Y1w+=arguments[r7w] * arguments[r7w];}return Math.sqrt(Y1w);}m53=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;F3N=/[\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;Z_Z={"\b":"\\b","\t":"\\t","\n":i7a,"\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};g6e.extend(n8a.prototype,{simplify:function(F1W){var r69,o9Z,p3n,g6K,q0e,y6U,N_k,X84,Z2a;F1W=F1W || ({});r69=[];o9Z=[];y6U=this.tokens.length;X84=0;for(X84=0;X84 < y6U;X84++){N_k=this.tokens[X84];Z2a=N_k.type_;if(Z2a === k4l){r69.push(N_k);}else if(Z2a === z$i && (N_k.index_ in F1W)){N_k=new J_K(k4l,0,0,F1W[N_k.index_]);r69.push(N_k);}else if(Z2a === b7P && r69.length > 1){g6K=r69.pop();p3n=r69.pop();q0e=this.ops2[N_k.index_];N_k=new J_K(k4l,0,0,q0e(p3n.number_,g6K.number_));r69.push(N_k);}else if(Z2a === H7l && r69.length > 0){p3n=r69.pop();q0e=this.ops1[N_k.index_];C1y.O_b(39);N_k=new J_K(k4l,0,C1y.v$j("0",0),q0e(p3n.number_));r69.push(N_k);}else {while(r69.length > +"0"){o9Z.push(r69.shift());}o9Z.push(N_k);}}while(r69.length > 0){o9Z.push(r69.shift());}return new n8a(o9Z,P$0(this.ops1),P$0(this.ops2),P$0(this.functions));},substitute:function(f8z,S$_){C1y.W3G();var j40,h3u,J7j,A7p,l_H,l$3,e3H,k9m;if(!(S$_ instanceof n8a)){S$_=new m_t().parse(String(S$_));}j40=[];h3u=this.tokens.length;A7p=0;for(A7p=0;A7p < h3u;A7p++){J7j=this.tokens[A7p];l_H=J7j.type_;if(l_H === z$i && J7j.index_ === f8z){for(var s6u=0;s6u < S$_.tokens.length;s6u++){l$3=S$_.tokens[s6u];e3H=new J_K(l$3.type_,l$3.index_,l$3.prio_,l$3.number_);j40.push(e3H);}}else {j40.push(J7j);}}k9m=new n8a(j40,P$0(this.ops1),P$0(this.ops2),P$0(this.functions));return k9m;},evaluate:function(O_G){var p9z,j8i,p$O,N2H,o9w,a2T,S8V,R0N,H4s,C_O;O_G=O_G || ({});p9z=[];o9w=this.tokens.length;S8V=+"0";for(S8V=0;S8V < o9w;S8V++){a2T=this.tokens[S8V];R0N=a2T.type_;if(R0N === k4l){p9z.push(a2T.number_);}else if(R0N === b7P){p$O=p9z.pop();j8i=p9z.pop();N2H=this.ops2[a2T.index_];p9z.push(N2H(j8i,p$O));}else if(R0N === z$i){if((a2T.index_ in O_G)){p9z.push(O_G[a2T.index_]);}else if((a2T.index_ in this.functions)){p9z.push(this.functions[a2T.index_]);}else {H4s="undefined var";H4s+="iabl";H4s+="e: ";throw new Error(H4s + a2T.index_);}}else if(R0N === H7l){j8i=p9z.pop();N2H=this.ops1[a2T.index_];p9z.push(N2H(j8i));}else if(R0N === z6D){j8i=p9z.pop();N2H=p9z.pop();if(N2H.apply && N2H.call){if(Object.prototype.toString.call(j8i) == "[object Array]"){p9z.push(N2H.apply(undefined,j8i));}else {p9z.push(N2H.call(undefined,j8i));}}else {C1y.s$9(0);throw new Error(C1y.V9a(N2H," is not a function"));}}else {throw new Error("invalid Expression");}}C1y.W3G();if(p9z.length > 1){C_O="invalid Exp";C_O+="ression (p";C_O+="arity)";throw new Error(C_O);}return p9z[0];},toString:function(e3p){var c1Y,S0p,G7g,O9i,b5y,n8d,r4J,Z$_,l6o,v5I;c1Y=[];b5y=this.tokens.length;r4J=0;for(r4J=0;r4J < b5y;r4J++){n8d=this.tokens[r4J];Z$_=n8d.type_;if(Z$_ === k4l){c1Y.push(M6c(n8d.number_));}else if(Z$_ === b7P){G7g=c1Y.pop();S0p=c1Y.pop();O9i=n8d.index_;if(e3p && O9i == (6630 != (2532,"496" << 32)?"^":840.82)){l6o="Math.p";l6o+="ow(";C1y.O_b(75);c1Y.push(C1y.v$j(G7g,S0p,l6o,")",42.25 == ("8466" >> 0,4269)?8636 == ("4859" * 1,4526)?(666,+"88.29"):9.91e+3:","));}else {C1y.s$9(75);c1Y.push(C1y.v$j(G7g,S0p,(2140,10000) <= 11.16?(0x18cb,!!1):8960 != (2230,28.46)?("8534" << 64,9383) == 2000?("F","E"):"(":(641.79,763.74),(713.12,"111.97" * 1) > 5756?"P":")",O9i));}}else if(Z$_ === z$i){c1Y.push(n8d.index_);}else if(Z$_ === H7l){S0p=c1Y.pop();O9i=n8d.index_;if(O9i === "-"){C1y.s$9(51);c1Y.push(C1y.v$j((+"9700",368.76) !== 1838?")":78 === 6530?911.65:16.39 === 4374?"496.07" * 1:9.02e+3,S0p,1110 !== ("132.65" - 0,+"637.64")?"(":2670 < 1110?(!!({}),+"4.21e+3"):(2980,7390) >= 5290?9.59e+3:(!!1,"r"),O9i));}else {C1y.O_b(51);c1Y.push(C1y.v$j(1230 < 2896?")":(!({}),"4.03e+3" | 52),S0p,O9i,1211 <= (1070,5956)?114.58 == (325.55,221)?(575.84,8485) > 2422?(!!({}),"957.61" * 1):(0x1df2,0x73f):"(":(!!"",+"7.35e+3")));}}else if(Z$_ === z6D){S0p=c1Y.pop();O9i=c1Y.pop();C1y.O_b(51);c1Y.push(C1y.v$j(")",S0p,O9i,9790 != (+"8635",167)?"(":("8280" | 0,+"8170") <= "888.29" * 1?(+"479",0x2387):("5546" >> 0,2152) <= (8595,518.24)?824.15:7.79e+3));}else {throw new Error("invalid Expression");}}if(c1Y.length > 1){v5I="invali";v5I+="d Expr";v5I+="e";v5I+="ssion (parity)";throw new Error(v5I);}C1y.W3G();C1y.s$9(29);return c1Y[C1y.V9a("0",64)];},variables:function(){var L4e,A9f,P6d;L4e=this.tokens.length;A9f=[];for(var V_Q="0" ^ 0;V_Q < L4e;V_Q++){P6d=this.tokens[V_Q];if(P6d.type_ === z$i && A9f.indexOf(P6d.index_) == -1){A9f.push(P6d.index_);}}return A9f;}},!"");m_t.parse=function(f_8){C1y.W5N();return new m_t().parse(f_8);};function T3M(l7K,W9i){C1y.s$9(76);C1y.W5N();return C1y.V9a(l7K,W9i);}m_t.evaluate=function(L_B,y0h){return m_t.parse(L_B).evaluate(y0h);};function Z5d(q6q,n4m){C1y.O_b(1);C1y.W5N();return C1y.V9a(n4m,q6q);}function F6A(G3v){C1y.W3G();return Math.log(G3v) * Math.LOG10E;}function f7i(W8y){C1y.O_b(77);var F11=C1y.V9a(19,6,4,10,1);return Math.random() * (W8y || "1" * F11);}function t4c(n17,W3B){return Boolean(n17 || W3B);}m_t.Expression=n8a;m_t.values={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:Y3H,cosh:t13,tanh:Y$V,asinh:h$6,acosh:V7a,atanh:c3D,sqrt:Math.sqrt,log:Math.log,lg:F6A,log10:F6A,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:B33,random:f7i,fac:K38,exp:Math.exp,min:Math.min,max:Math.max,hypot:w0e,pyt:w0e,pow:Math.pow,atan2:Math.atan2,if:f_c,E:Math.E,PI:Math.PI};function M6c(k7G){C1y.W5N();if(typeof k7G === "string"){F3N.lastIndex=0;return F3N.test(k7G)?"'" + k7G.replace(F3N,function(l1d){var Y7R;Y7R=Z_Z[l1d];return typeof Y7R === "string"?Y7R:"\\u" + ("0000" + l1d.charCodeAt(0).toString(16)).slice(-4);}) + (2469 < 8290?+"38.54" <= 476.22?"'":(835.39,2931) > ("8540" | 28,727.05)?("204" * 1,+"4.90e+3"):!!"":(74.33,!({}))):"'" + k7G + (+"965.06" == (7703,271)?("971.25" * 1,2070) <= 323.32?(+"559","D"):5.36e+3:"'");}return k7G;}function J_K(f$U,o_S,b8F,W5K){var J8p,G41,A4W;this.type_=f$U;C1y.s$9(1);J8p=C1y.v$j(0,"1661587523");G41=986628675;A4W=2;for(var e$a=1;C1y.l5h(e$a.toString(),e$a.toString().length,3797) !== J8p;e$a++){this.index_=o_S && 2;A4W+=2;}C1y.W3G();if(C1y.m6F(A4W.toString(),A4W.toString().length,25147) !== G41){this.index_=o_S || 0;}this.prio_=b8F || 0;this.number_=W5K !== undefined && W5K !== null?W5K:0;this.toString=function(){C1y.W3G();switch(this.type_){case k4l:return this.number_;case H7l:case b7P:case z$i:return this.index_;case z6D:return "CALL";default:return "Invalid Token";}};}function P_M(o3f,B6z){return Number(o3f) + Number(B6z);}function P$0(W4g){A5L.prototype=W4g;C1y.W3G();function A5L(){}return new A5L();}C1y.O_b(29);S85=C1y.V9a(1,0);C1y.O_b(29);M4H=C1y.V9a(1,1);function r5p(q2R,I0T){C1y.O_b(78);C1y.W5N();return C1y.v$j(I0T,q2R);}C1y.O_b(29);n_a=C1y.v$j(1,2);C1y.s$9(29);g6G=C1y.v$j(1,3);function s6y(x0g,E_q){C1y.O_b(2);C1y.W3G();return C1y.v$j(E_q,x0g);}function M0O(i51,p2z){C1y.O_b(79);return C1y.v$j(i51,p2z);}function Y$V(p0L){C1y.W3G();if(Math.tanh){return Math.tanh(p0L);}if(p0L === Infinity){C1y.O_b(42);return C1y.v$j("1",1);}if(p0L === -Infinity){return -1;}return (Math.exp(p0L) - Math.exp(-p0L)) / (Math.exp(p0L) + Math.exp(-p0L));}function V7a(i4u){C1y.W3G();return Math.acosh?Math.acosh(i4u):Math.log(i4u + Math.sqrt(i4u * i4u - 1));}C1y.s$9(29);q_N=C1y.V9a(1,4);function f_c(l_u,o2m,B4R){return l_u?o2m:B4R;}C1y.s$9(29);m22=C1y.v$j(1,5);function n8a(d_0,B4t,V7O,X9Q){this.tokens=d_0;this.ops1=B4t;C1y.W3G();this.ops2=V7O;this.functions=X9Q;}function L$K(O3l,p3j){C1y.W3G();C1y.O_b(9);return C1y.V9a(O3l,p3j);}C1y.s$9(80);F6t=C1y.V9a(6,"1");function c9x(p65,X3b){C1y.W3G();return Boolean(p65 && X3b);}function c3D(u5c){return Math.atanh?Math.atanh(u5c):Math.log((1 + u5c) / ("1" - 0 - u5c)) / 2;}function B33(p$Z){C1y.W3G();if(Math.trunc){return Math.trunc(p$Z);}return p$Z < 0?Math.ceil(p$Z):Math.floor(p$Z);}function Y3H(R1I){C1y.W5N();return Math.sinh?Math.sinh(R1I):(Math.exp(R1I) - Math.exp(-R1I)) / 2;}function I4V(q2t,o33){C1y.s$9(81);return C1y.v$j(q2t,o33);}C1y.O_b(82);m$R=C1y.v$j("7",0,1);C1y.s$9(29);v0_=C1y.V9a(1,8);function K38(T8S){C1y.W5N();var E0x;T8S=Math.floor(T8S);E0x=T8S;while(T8S > 1){C1y.s$9(83);E0x=C1y.V9a(E0x,--T8S);}return E0x;}g6e.extend(m_t.prototype,{parse:function(N$M){var G47,w$k,K_N,A7J,q4z,T1T,n0w,E8Y,m6h,W1E,A7C,E$_,Q_t,D__;this.errormsg="";this.success=!![];G47=[];w$k=[];this.tmpprio=0;C1y.s$9(84);K_N=C1y.V9a(g6G,n_a,F6t,S85);A7J=0;this.expression=N$M;this.pos=0;while(this.pos < this.expression.length){if(this.isOperator()){if(this.isSign() && K_N & F6t){if(this.isNegativeSign()){this.tokenprio=2;this.tokenindex=3747 <= ("3240" ^ 0,777)?+"2.87e+3":"-";A7J++;this.addfunc(w$k,G47,H7l);}C1y.s$9(84);K_N=C1y.v$j(g6G,n_a,F6t,S85);}else if(this.isComment()){}else {if((K_N & M4H) === 0){this.error_parsing(this.pos,"unexpected operator");}C1y.s$9(39);A7J+=C1y.V9a("2",0);this.addfunc(w$k,G47,b7P);C1y.s$9(84);K_N=C1y.v$j(g6G,n_a,F6t,S85);}}else if(this.isNumber()){if((K_N & S85) === 0){T1T="unexpected";T1T+=" number";this.error_parsing(this.pos,T1T);}q4z=new J_K(k4l,0,0,this.tokennumber);w$k.push(q4z);C1y.O_b(85);K_N=C1y.V9a(m22,M4H,q_N);}else if(this.isString()){if((K_N & S85) === 0){this.error_parsing(this.pos,"unexpected string");}C1y.s$9(12);q4z=new J_K(k4l,0,C1y.v$j(0,"0"),this.tokennumber);w$k.push(q4z);C1y.s$9(85);K_N=C1y.V9a(m22,M4H,q_N);}else if(this.isLeftParenth()){if((K_N & g6G) === 0){n0w="unexpecte";n0w+="d";n0w+=" \"(\"";this.error_parsing(this.pos,n0w);}if(K_N & m$R){A7J+=2;this.tokenprio=-2;this.tokenindex=-1;this.addfunc(w$k,G47,z6D);}C1y.O_b(86);K_N=C1y.V9a(g6G,v0_,S85,F6t,n_a);}else if(this.isRightParenth()){if(K_N & v0_){q4z=new J_K(k4l,+"0",0,[]);w$k.push(q4z);}else if((K_N & q_N) === 0){this.error_parsing(this.pos,'unexpected ")"');}C1y.O_b(86);K_N=C1y.V9a(q_N,m$R,M4H,g6G,m22);}else if(this.isComma()){if((K_N & m22) === 0){this.error_parsing(this.pos,'unexpected ","');}this.addfunc(w$k,G47,b7P);A7J+=2;C1y.O_b(84);K_N=C1y.v$j(g6G,n_a,F6t,S85);}else if(this.isConst()){if((K_N & S85) === 0){E8Y="un";E8Y+="expected constant";this.error_parsing(this.pos,E8Y);}m6h=new J_K(k4l,0,0,this.tokennumber);w$k.push(m6h);C1y.O_b(85);K_N=C1y.V9a(m22,M4H,q_N);}else if(this.isOp2()){if((K_N & n_a) === 0){W1E="une";W1E+="xpected f";W1E+="unction";this.error_parsing(this.pos,W1E);}this.addfunc(w$k,G47,b7P);A7J+=2;K_N=g6G;}else if(this.isOp1()){if((K_N & n_a) === 0){A7C="une";A7C+="xpected function";this.error_parsing(this.pos,A7C);}this.addfunc(w$k,G47,H7l);A7J++;K_N=g6G;}else if(this.isVar()){if((K_N & S85) === 0){this.error_parsing(this.pos,"unexpected variable");}E$_=new J_K(z$i,this.tokenindex,0,0);w$k.push(E$_);C1y.s$9(86);K_N=C1y.v$j(q_N,m$R,M4H,g6G,m22);}else if(this.isWhite()){}else {if(this.errormsg === ""){this.error_parsing(this.pos,"unknown character");}else {this.error_parsing(this.pos,this.errormsg);}}}if(this.tmpprio < 0 || this.tmpprio >= 10){this.error_parsing(this.pos,'unmatched "()"');}while(G47.length > 0){Q_t=G47.pop();w$k.push(Q_t);}if(A7J + 1 !== w$k.length){D__="parit";D__+="y";this.error_parsing(this.pos,D__);}return new n8a(w$k,P$0(this.ops1),P$0(this.ops2),P$0(this.functions));},evaluate:function(M_y,b4j){C1y.W3G();return this.parse(M_y).evaluate(b4j);},error_parsing:function(i3F,Z4s){this.success=!1;C1y.s$9(51);this.errormsg=C1y.v$j(Z4s,"]: ","parse error [column ",i3F);this.column=i3F;throw new Error(this.errormsg);},addfunc:function(d1A,h$2,O7K){var E8m;E8m=new J_K(O7K,this.tokenindex,this.tokenprio + this.tmpprio,0);while(h$2.length > 0){if(E8m.prio_ <= h$2[h$2.length - 1].prio_){d1A.push(h$2.pop());}else {break;}}C1y.W3G();h$2.push(E8m);},isNumber:function(){var m1W,Y4O,G9s;m1W=!1;C1y.W3G();Y4O="";while(this.pos < this.expression.length){G9s=this.expression.charCodeAt(this.pos);if(G9s >= 48 && G9s <= +"57" || G9s === 46){Y4O+=this.expression.charAt(this.pos);this.pos++;this.tokennumber=parseFloat(Y4O);m1W=!"";}else {break;}}return m1W;},unescape:function(N_J,J$T){var l4c,Q_C,a7y,r4o,J_E;C1y.W5N();l4c=[];Q_C=!!"";for(var L01=0;L01 < N_J.length;L01++){a7y=N_J.charAt(L01);if(Q_C){switch(a7y){case "'":l4c.push("'");break;case 9041 === "410.64" - 0?(0x261a,17.46):"\\":l4c.push((7580,826) == (538.61,2700)?(!!1,!![]):(2810,4680) == 1928?3630 !== 9870?("k",772.75):(!"",371.59):"\\");break;case (4168,3730) <= (+"593.61",6154)?(2220,+"3671") == ("8480" >> 64,2600)?(+"5961",9470) >= 827.69?(0x64,+"145.73"):(2.41e+3,!"1"):"/":("E",631):l4c.push((8294,+"189") != (1180,1900)?"/":(+"9000",8217) == (+"1967",9890)?(0xa,0x131):(8.86e+3,7.82e+3));break;case (1340,"656.3" - 0) > (6810,+"2710")?0x1d7b:(340.62,640.22) > "644.95" - 0?(+"908.08",4050) > (538,"807.28" * 1)?"325.87" * 1:478.76:"b":l4c.push(3110 < (4880,7541)?(207,+"8920") > (5020,+"5990")?"\b":!![]:!!"");break;case "f":l4c.push("\f");break;case 5510 != (361,5580)?"n":(2.34e+3,!![]):l4c.push("\n");break;case 818.84 === 4060?"0xc47" << 32:"r":l4c.push(9720 >= (4600,41.3)?(157,792.62) > (833,"7540" - 0)?2.85e+3:229.07 != 703?"\r":+"1.81e+3":"562" ^ 0);break;case "t":l4c.push(1110 <= (+"7363",7788)?"\t":(9230,+"211.67") < 613.36?(8.53e+3,0x1b5):(5.09e+2,0x19));break;case 7979 != (1320,4100)?"u":"M":r4o=parseInt(N_J.substring(L01 + ("1" - 0),L01 + 5),16);l4c.push(String.fromCharCode(r4o));L01+=4;break;default:J_E="Illega";J_E+="l escape";J_E+=" sequence:";J_E+=" '\\";C1y.O_b(0);throw this.error_parsing(C1y.v$j(J$T,L01),C1y.v$j(a7y,2913 === 1300?("0x1a8e" * 1,!!""):3783 >= (410.62,2120)?"'":(562.97,250.05) != 898?(0xe1d,!1):6.98e+2,J_E,C1y.O_b(35)));}Q_C=!({});}else {if(a7y == "\\"){Q_C=!![];}else {l4c.push(a7y);}}}return l4c.join("");},isString:function(){var F$D,P1z,p33,N8B;F$D=!"1";P1z="";p33=this.pos;if(this.pos < this.expression.length && this.expression.charAt(this.pos) == ((+"865.22",5982) < (6060,509.62)?(486.67,!!0):"'")){this.pos++;while(this.pos < this.expression.length){N8B=this.expression.charAt(this.pos);if(N8B != ((4000,698.42) <= +"2710"?"'":(4317,+"4151") <= (763.92,299)?![]:4729 <= 648.31?0x2fc:588.48) || P1z.slice(-1) == (+"1960" === 4473?493 != (6350,690.58)?103.15:5.07e+3:"\\")){P1z+=this.expression.charAt(this.pos);this.pos++;}else {this.pos++;this.tokennumber=this.unescape(P1z,p33);F$D=!0;break;}}}return F$D;},isConst:function(){var w0g,r4y;for(var W60 in this.consts){if(!![]){r4y=W60.length;w0g=this.expression.substr(this.pos,r4y);if(W60 === w0g){this.tokennumber=this.consts[W60];this.pos+=r4y;return !0;}}}C1y.W3G();return !!0;},isOperator:function(){C1y.W5N();var M4D,m7i,V6A,I0s;M4D=this.expression.charCodeAt(this.pos);if(M4D === 43){this.tokenprio=2;this.tokenindex="+";}else if(M4D === 45){this.tokenprio=2;this.tokenindex=(1010,"3240" << 0) != 5157?5370 < (709.38,7570)?"-":!![]:("D",0xc6f);}else if(M4D === 62){if(this.expression.charCodeAt(this.pos + 1) === 61){m7i=">";m7i+="=";this.pos++;this.tokenprio=1;this.tokenindex=m7i;}else {this.tokenprio=1;this.tokenindex=("494.7" - 0,183.23) <= (9255,843.18)?90.68 == 1266?("703.96" * 1,8.35e+3):">":!"";}}else if(M4D === 60){if(this.expression.charCodeAt(this.pos + 1) === ("61" | 56)){this.pos++;this.tokenprio=1;this.tokenindex="<=";}else {this.tokenprio=1;this.tokenindex=(817.55,5125) !== 88.89?+"5730" !== (1350,814)?4890 != (3134,9581)?"<":"f":(+"258.90",3.49e+2):("e","d");}}else if(M4D === 124){if(this.expression.charCodeAt(this.pos + +"1") === 124){this.pos++;C1y.O_b(29);this.tokenprio=C1y.V9a("1",64);this.tokenindex="||";}else {return !({});}}else if(M4D === 61){if(this.expression.charCodeAt(this.pos + 1) === +"61"){V6A="=";V6A+="=";this.pos++;this.tokenprio=1;this.tokenindex=V6A;}else {return ![];}}else if(M4D === 33){if(this.expression.charCodeAt(this.pos + 1) === 61){this.pos++;this.tokenprio=1;this.tokenindex="!=";}else {return ![];}}else if(M4D === 97){if(this.expression.charCodeAt(this.pos + 1) === 110 && this.expression.charCodeAt(this.pos + 2) === 100){I0s="a";I0s+="n";I0s+="d";this.pos++;this.pos++;C1y.O_b(39);this.tokenprio=C1y.v$j("0",0);this.tokenindex=I0s;}else {return !({});}}else if(M4D === 111){if(this.expression.charCodeAt(this.pos + 1) === 114){this.pos++;C1y.O_b(1);this.tokenprio=C1y.v$j(0,"0");this.tokenindex="or";}else {return !"1";}}else if(M4D === 42 || M4D === +"8729" || M4D === 8226){this.tokenprio=3;this.tokenindex="*";}else if(M4D === +"47"){this.tokenprio=4;this.tokenindex=5001 >= ("1100" >> 64,6621)?(0x19c4,0x1228):"/";}else if(M4D === 37){this.tokenprio=4;this.tokenindex=5222 !== 7130?"%":("O",2.63e+3);}else if(M4D === 94){this.tokenprio=5;this.tokenindex=2760 > +"6520"?3.15e+3:(107,6819) == 827.3?(0x20f2,0xde1):"^";}else {return !!"";}this.pos++;return !!"1";},isSign:function(){var Y5o;Y5o=this.expression.charCodeAt(this.pos - 1);if(Y5o === +"45" || Y5o === 43){return !!({});}C1y.W3G();return !1;},isPositiveSign:function(){var z32;z32=this.expression.charCodeAt(this.pos - 1);if(z32 === 43){return !![];}return !({});},isNegativeSign:function(){var J1f;J1f=this.expression.charCodeAt(this.pos - 1);if(J1f === 45){return !!({});}return ![];},isLeftParenth:function(){var V95;V95=this.expression.charCodeAt(this.pos);if(V95 === "40" - 0){this.pos++;C1y.O_b(29);this.tmpprio+=C1y.v$j("10",0);return !!"1";}return !({});},isRightParenth:function(){var n_8;n_8=this.expression.charCodeAt(this.pos);if(n_8 === 41){this.pos++;this.tmpprio-=10;return !!1;}return !!"";},isComma:function(){var y4M;y4M=this.expression.charCodeAt(this.pos);if(y4M === 44){this.pos++;this.tokenprio=-1;this.tokenindex=(8144,+"8944") >= 4720?",":411.92;return !!"1";}return !!0;},isWhite:function(){var O6Q;O6Q=this.expression.charCodeAt(this.pos);if(O6Q === +"32" || O6Q === 9 || O6Q === 10 || O6Q === 13){this.pos++;return !0;}return ![];},isOp1:function(){var V4A,q15;V4A="";for(var m7b=this.pos;m7b < this.expression.length;m7b++){q15=this.expression.charAt(m7b);if(q15.toUpperCase() === q15.toLowerCase()){if(m7b === this.pos || q15 != ((8360,95.4) === 9092?4.86e+3:"_") && (q15 < (+"1712" == 571?!0:"0") || q15 > ((9090,145) >= 3120?+"919.64" === (3950,3080)?"5.49e+3" * 1:"B":"9"))){break;}}V4A+=q15;}if(V4A.length > 0 && (V4A in this.ops1)){this.tokenindex=V4A;this.tokenprio=5;this.pos+=V4A.length;return !!1;}return !!"";},isOp2:function(){var n89,h5M;n89="";for(var x__=this.pos;x__ < this.expression.length;x__++){h5M=this.expression.charAt(x__);if(h5M.toUpperCase() === h5M.toLowerCase()){if(x__ === this.pos || h5M != (914.01 <= (9050,549.23)?("B",0xce1):"_") && (h5M < "0" || h5M > "9")){break;}}n89+=h5M;}if(n89.length > 0 && (n89 in this.ops2)){this.tokenindex=n89;this.tokenprio=5;this.pos+=n89.length;return !0;}return !({});},isVar:function(){var S2T,Q5f;C1y.W3G();S2T="";for(var Q0Z=this.pos;Q0Z < this.expression.length;Q0Z++){Q5f=this.expression.charAt(Q0Z);if(Q5f.toUpperCase() === Q5f.toLowerCase()){if(Q0Z === this.pos || Q5f != (728.79 < (600,5915)?"_":(839.96,1730) <= 1210?(1.38e+3,0x1f82):(!"","c")) && (Q5f < (496.86 == 6810?(649.53,+"610.47"):"0") || Q5f > (1560 <= 705.69?7909 >= +"7752"?(![],237.49):383.46:"9"))){break;}}S2T+=Q5f;}if(S2T.length > 0){this.tokenindex=S2T;C1y.s$9(1);this.tokenprio=C1y.v$j(0,"4");this.pos+=S2T.length;return !!({});}return ![];},isComment:function(){var m9g;m9g=this.expression.charCodeAt(this.pos - 1);if(m9g === 47 && this.expression.charCodeAt(this.pos) === 42){C1y.s$9(37);var X3B=C1y.V9a(3,19,24);this.pos=this.expression.indexOf("*/",this.pos) + X3B;if(this.pos === "1" << 0){this.pos=this.expression.length;}return !!({});}return !!"";}},!!({}));return m_t;};g6e.computeEquationChart=function(W8g,p$m){var L0O=i6UVR;var r6l,R2d,b6m,x8w,U8m,j82,t47,d3m,b7$,a6Y,h0V,V0U,C_f,U6Y,d78,I2M,V6u,o9E,Z3i,V1$,M8x,t6R,M73;W8g=W8g.replace(/[:]/,7130 <= (408.06,323.19)?9980 <= 6070?(!1,![]):2.45e+3:"/");r6l=+"0";for(var c48 in p$m){R2d="\\";R2d+="]";b6m="\\";b6m+="[";x8w="\\";x8w+="[";U8m=new RegExp(x8w + c48.replace(/\[/g,b6m).replace(/\]/g,"\\]").replace(/\$/g,"\\$").replace(/\^/g,"\\^").replace(/[+\-*/%()]/g,"\\$&") + R2d,"g");L0O.s$9(0);W8g=W8g.replace(U8m,L0O.V9a("symbol",r6l));r6l++;}j82=o5i().parse(W8g);t47=[];d3m={};b7$=0;function F4H(p71){L0O.W3G();p71.i++;if(p$m[p71.s]){if(p71.i >= p$m[p71.s].length){return 0;}a6Y=p$m[p71.s][p71.i];}if(!a6Y.DT){a6Y.DT=g6e.strToDateTime(a6Y.Date);}p71.d=a6Y.DT;return +"1";}h0V=null;function P2R(){var U7J,t5Y;U7J=null;L0O.W5N();t5Y=null;for(var R$V in d3m){if(!t5Y){t5Y=d3m[R$V];}else if(d3m[R$V].d.getTime() < t5Y.d.getTime()){U7J=t5Y=d3m[R$V];}else if(d3m[R$V].d.getTime() > t5Y.d.getTime()){U7J=t5Y;}}if(U7J){if(!F4H(U7J)){return 0;}return -+"1";}return 1;}V0U=![];C_f=[];for(c48 in p$m){U6Y={sym:c48,map:p$m[c48]};if(p$m[c48]){C_f.unshift(U6Y);}else {C_f.push(U6Y);}}for(var s5S=0;s5S < C_f.length;s5S++){d78=C_f[s5S];d3m[d78.sym]={i:0,s:d78.sym};if(d78.map){b7$++;a6Y=d78.map[0];}else if(b7$ == 1){V0U=d78.sym;}if(!a6Y.DT){a6Y.DT=g6e.strToDateTime(a6Y.Date);}d3m[d78.sym].d=a6Y.DT;if(!h0V){h0V=d3m[d78.sym];}}L0O.O_b(87);L0O.W3G();I2M=L0O.v$j(0,b7$);V6u=b7$ == "1" * 1 && W8g.indexOf((2319,8790) >= 639.51?(3489,4187) < 192.01?("9.16e+3" | 8,118.10):("360.9" * 1,"4756" >> 0) !== +"4630"?"%":+"148.04":(174.86,"F")) == -+"1";a:while(!0){o9E=P2R();if(!o9E)break;if(o9E == 1){if(V0U){V1$=p$m[h0V.s][h0V.i][V0U];if(V1$ && (V1$.Close || V1$.Close === 0)){V1$=V1$.Close;}M8x=j82.evaluate({symbol0:p$m[h0V.s][h0V.i].Close,symbol1:V1$});M8x=Number(M8x.toFixed(+"8"));Z3i={DT:h0V.d,Close:M8x,Adj_Close:M8x};Z3i[h0V.s]=p$m[h0V.s][h0V.i].Close;if(!isNaN(M8x) && M8x != Infinity){t47.push(Z3i);}}else if(I2M){t6R=j82.evaluate({});L0O.s$9(35);g6e.alert(L0O.V9a((2200,3290) <= (9500,1570)?"b":(165.46,"8290" | 98) == 3380?(9070,994.77) === 204?60.08:0xca1:"=",t6R,W8g));throw {name:"NoException",message:""};}else {r6l=0;M73={Adj_Close:{},Close:{},Open:{},High:{},Low:{},Volume:{}};for(c48 in p$m){for(var B8e in M73){L0O.O_b(0);M73[B8e][L0O.v$j("symbol",r6l)]=p$m[c48][d3m[c48].i][B8e];}r6l++;}Z3i={DT:h0V.d};Z3i.Adj_Close=j82.evaluate(M73.Adj_Close);Z3i.Close=j82.evaluate(M73.Close);Z3i.Open=j82.evaluate(M73.Open);Z3i.Volume=j82.evaluate(M73.Volume);if(isNaN(Z3i.Volume)){Z3i.Volume=+"0";}if(V6u){Z3i.High=j82.evaluate(M73.High);Z3i.Low=j82.evaluate(M73.Low);}else {Z3i.High=Math.max(Z3i.Open,Z3i.Close);Z3i.Low=Math.min(Z3i.Open,Z3i.Close);}if(!isNaN(Z3i.Close) && Z3i.Close != Infinity){t47.push(Z3i);}if(!isNaN(Z3i.High)){Z3i.High=Number(Z3i.High.toFixed(8));}if(!isNaN(Z3i.Low)){Z3i.Low=Number(Z3i.Low.toFixed(8));}if(!isNaN(Z3i.Open)){Z3i.Open=Number(Z3i.Open.toFixed(8));}if(!isNaN(Z3i.Close)){Z3i.Close=Number(Z3i.Close.toFixed("8" * 1));}if(!isNaN(Z3i.Adj_Close)){Z3i.Adj_Close=Number(Z3i.Adj_Close.toFixed(8));}else {Z3i.Adj_Close=Z3i.Close;}}for(c48 in p$m){if(!F4H(d3m[c48]))break a;}}}return t47;};};I=o9j=>{var R6l=i6UVR;var R8b;R8b=typeof _CIQ !== "undefined"?_CIQ:o9j.CIQ;R8b.ChartEngine.prototype.setLocale=function(R1z,H4i){var u1A,V5K,z1h,e_D,p1e,S_S,o0A,Z4m,T2Z,H6y,v6P,A33;u1A="n";u1A+="ume";u1A+="ri";u1A+="c";V5K="n";V5K+="umeri";V5K+="c";z1h="n";z1h+="um";z1h+="e";z1h+="ric";e_D="2-";e_D+="d";e_D+="ig";e_D+="it";p1e="2";p1e+="-d";p1e+="igit";S_S="h";S_S+="2";S_S+="3";if(typeof Intl == "undefined"){return;}if(this.locale != R1z){this.locale=R1z;}else {return;}Z4m=this.internationalizer={};Z4m.hourMinute=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",hourCycle:"h23"});Z4m.hourMinuteSecond=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:"numeric",hourCycle:S_S});Z4m.mdhm=new Intl.DateTimeFormat(this.locale,{year:"2-digit",month:p1e,day:e_D,hour:"2-digit",minute:"2-digit"});Z4m.monthDay=new Intl.DateTimeFormat(this.locale,{month:"numeric",day:z1h});Z4m.yearMonthDay=new Intl.DateTimeFormat(this.locale,{year:V5K,month:u1A,day:"numeric"});Z4m.yearMonth=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric"});Z4m.month=new Intl.DateTimeFormat(this.locale,{month:"short"});Z4m.numbers=new Intl.NumberFormat(this.locale);Z4m.priceFormatters=[];if(!H4i){H4i=8;}for(o0A=0;o0A < H4i + 1;o0A++){Z4m.priceFormatters.push(new Intl.NumberFormat(this.locale,{maximumFractionDigits:o0A,minimumFractionDigits:o0A}));}for(o0A=0;o0A < 5;o0A++){T2Z="pe";T2Z+="rcen";T2Z+="t";H6y="per";H6y+="cent";v6P=o0A;A33=o0A;if(!o0A){v6P="";A33=2;}R6l.O_b(0);Z4m[R6l.V9a(H6y,v6P)]=new Intl.NumberFormat(this.locale,{style:T2Z,minimumFractionDigits:A33,maximumFractionDigits:A33});}if(R8b.I18N.createMonthArrays){R8b.I18N.createMonthArrays(this,Z4m.month,this.locale);}};R8b.I18N=function(){};R8b.I18N.hereDoc=function(B93){return B93.toString().replace(/^[^/]+\/\*!?/,"").replace(/\*\/[^/]+$/,"");};R6l.W5N();R8b.I18N.language="en";R8b.I18N.longMonths={zh:!0};R8b.I18N.reverseColorsByLocale={zh:!!1,ja:!!1};R8b.I18N.findAllTextNodes=function(f$o){var k07,P82,X7p,j4S,O_P,S_x,P0z,A4w,N1i,x55,i$1,v3t,m4f,Q4O,W4b,N3D,V9l,h_D,s0G,f5H,J9b,n5n;if(!f$o){f$o=document.body;}if(f$o == document.body){if(!document.querySelector(".ciq_stashed_texts")){k07="n";k07+="o";k07+="ne";P82=document.createElement("div");P82.className="ciq_stashed_texts";P82.style.display=k07;f$o.appendChild(P82);X7p=document.querySelectorAll("input,textarea,.editable_content");for(var m4G="0" | 0;m4G < X7p.length;m4G++){j4S="pl";j4S+="aceholder";O_P=X7p[m4G].getAttribute(j4S);if(O_P){S_x="orig";S_x+="ina";S_x+="l";P0z=P82.appendChild(document.createElement("translate"));P0z.setAttribute(S_x,O_P);P0z.placeholderFor=X7p[m4G];P0z.appendChild(document.createTextNode(O_P));}}}}A4w=document.createTreeWalker(f$o,NodeFilter.SHOW_TEXT,null,![]);N1i=A4w.nextNode();x55=new RegExp("^\\s*$");i$1=new RegExp("\n|\t|\f",9354 != ("178" ^ 0,8453)?"g":("8.46e+3" >> 0,0xe88));v3t={};m4f={SCRIPT:!!1,STYLE:!![],TEXTAREA:!!({})};while(N1i){Q4O=N1i.nodeValue;if(!x55.test(Q4O)){W4b=N1i.parentNode;N3D=N1i.nextSibling;V9l=W4b.tagName;if(!m4f[V9l]){if(V9l != "TRANSLATE"){h_D="tr";h_D+="ans";h_D+="late";s0G=document.createElement(h_D);s0G.setAttribute("original",Q4O);s0G.appendChild(N1i);W4b.insertBefore(s0G,N3D);}else {f5H="orig";f5H+="i";f5H+="n";f5H+="al";Q4O=W4b.getAttribute(f5H);}if(i$1.test(Q4O)){Q4O=Q4O.replace(i$1,"");}if(!v3t[Q4O]){v3t[Q4O]=[];}v3t[Q4O].push(N1i);}}N1i=A4w.nextNode();}if(f$o == document.body){J9b=R8b.Studies?R8b.Studies.studyLibrary:null;if(J9b){for(var l2x in J9b){if(v3t[l2x] === null){v3t[l2x]=[];}n5n=J9b[l2x];if(n5n.inputs){for(var c7B in n5n.inputs){if(!v3t[c7B]){v3t[c7B]=[];}}}if(n5n.outputs){for(var b73 in n5n.outputs){if(!v3t[b73]){v3t[b73]=[];}}}}}}return v3t;};R8b.I18N.missingWordList=function(Z$8){var z$0,V51,W5r,i80,t$T,T6C,s7Q,y7N,F6l;z$0="Sho";z$0+="w Zone";z$0+="s";if(!Z$8){Z$8=R8b.I18N.language;}V51=R8b.I18N.findAllTextNodes();W5r={};i80=R8b.I18N.wordLists[Z$8];if(!i80){i80={};}t$T=function(B6q){if(typeof i80[B6q] == "undefined"){W5r[B6q]="";}};for(var R3_ in V51){t$T(R3_);}if(!(R8b.Studies && R8b.Studies.studyLibrary)){return W5r;}for(var Q8P in R8b.Studies.studyLibrary){T6C=R8b.Studies.studyLibrary[Q8P];t$T(T6C.name);for(var g5Q in T6C.inputs){y7N="[object Ar";y7N+="ra";y7N+="y]";F6l="[obj";F6l+="ect String]";t$T(g5Q);s7Q=T6C.inputs[g5Q];switch(Object.prototype.toString.call(s7Q)){case F6l:t$T(s7Q);break;case y7N:for(var J2X=+"0";J2X < s7Q.length;++J2X){t$T(s7Q[J2X]);}break;}}for(var p68 in T6C.outputs){t$T(p68);}}t$T(z$0);t$T("OverBought");R6l.W3G();t$T("OverSold");t$T("Panel");t$T("Show as Underlay");t$T("Y-Axis");t$T("Invert Y-Axis");return W5r;};R8b.I18N.printableMissingWordList=function(l7V){R6l.W3G();var Y6I;Y6I=JSON.stringify(R8b.I18N.missingWordList(l7V));Y6I=Y6I.replace(/","/g,'",\n"');return Y6I;};R8b.I18N.translateUI=function(Z7e,i0V){var u0Z,Z7A,r0L,p6G,K3r,C1j,z3c,I2d,A3i;if(Z7e == "pu"){Z7e="pt";}if(!R8b.I18N.wordLists){return;}if(!Z7e){Z7e=R8b.I18N.language;}u0Z=R8b.I18N.findAllTextNodes(i0V);Z7A=R8b.I18N.wordLists[Z7e];if(!Z7A){return;}for(var y72 in u0Z){r0L=R8b.I18N.translateSections(y72,Z7A);p6G=u0Z[y72];for(var f7b=+"0";f7b < p6G.length;f7b++){K3r="o";K3r+="r";K3r+="igi";K3r+="nal";C1j=p6G[f7b];z3c=C1j.parentNode;I2d=z3c.getAttribute(K3r);if(r0L === ((437,7750) === (1820,6381)?(400.99,"Z"):",") || !r0L){r0L=I2d;}A3i=z3c.placeholderFor;if(A3i){A3i.placeholder=r0L;}else {C1j.data=r0L;}}}};R8b.I18N.translate=function(Z5Q,W50){var I1B,Q3$;if(!W50){W50=R8b.I18N.language;}if(!R8b.I18N.wordLists){console.log("Must include translations.js in order to use CIQ.I18N.translate()");return Z5Q;}R6l.W5N();I1B=R8b.I18N.wordLists[W50];Q3$=null;if(I1B){Q3$=R8b.I18N.translateSections(Z5Q,I1B) || Z5Q;}return Q3$ === ","?Z5Q:Q3$;};R8b.I18N.translateSections=function(n2u,i9m){var a0h,V6_,Q4N;a0h="str";a0h+="i";a0h+="n";R6l.W3G();a0h+="g";V6_=675 < 8615?"\u200c":705.50;if(typeof n2u == a0h && n2u.indexOf(V6_) != -1){R6l.s$9(35);n2u=n2u.replace(/([(),])/g,R6l.V9a("$1",V6_,V6_));Q4N=n2u.split(V6_);Q4N.forEach(function(r5B,D3K,b3y){var h4t,B7R;h4t=r5B.match(/^(\s*).*\S(\s*)$/);R6l.W3G();B7R=i9m[r5B.trim()];if(B7R){if(h4t){R6l.O_b(77);var N5N=R6l.v$j(13,0,3,10,3);B7R=h4t["1" ^ 0] + B7R + h4t[N5N];}b3y[D3K]=B7R;}});return Q4N.join("");}return i9m[n2u];};R8b.I18N.convertCSV=function(L$1){var Y5h,V__,t1K,B17,L4r,F5L,a3D,I24,h9H,Q9L,y2b;Y5h="^(\")";Y5h+="|(\")$";V__=new RegExp("[\u201C\u201D]|[\u2018\u2019]",(168.52,2000) != 311?"5980" * 1 > (4034,6750)?+"1545" < (335.82,"8800" | 32)?1.80e+3:(!0,!""):"g":(0x4d9,0x1e09));t1K=new RegExp(Y5h,544.04 !== 8100?"g":2359 === 275.75?"343.30" - 0:608.10);B17=R8b.I18N.wordLists;R6l.W3G();if(!L$1){L$1=R8b.I18N.csv;}if(!L$1){return;}L4r=L$1.split("\n");F5L=L4r[0];a3D=F5L.split(301.15 <= +"4102"?775.78 == (9510,345)?(!({}),+"1.84e+3"):",":(80.42,893.61));for(var Z7h=0;Z7h < a3D.length;Z7h++){I24=a3D[Z7h];if(!B17[I24]){B17[I24]={};}}for(var X2b=1;X2b < L4r.length;X2b++){h9H=L4r[X2b].match(/(".*?"|[^",]+)(?=\s*,|\s*$)|(,(?=,))/g) || [];Q9L=h9H[0];if(t1K.test(Q9L)){Q9L=Q9L.replace(t1K,"");}if(V__.test(Q9L)){Q9L=Q9L.replace(V__,9800 !== 4870?559 == "7630" - 0?(!!0,!1):"303.89" * 1 >= 3310?!"1":'"':972.67);}for(var L0y=1;L0y < h9H.length;L0y++){y2b=h9H[L0y];if(t1K.test(y2b)){y2b=y2b.replace(t1K,"");}B17[a3D[L0y]][Q9L]=y2b;}}};R8b.I18N.setLanguage=function(K92,C5F,Y0v,D2q,a_L){var F9C;F9C="p";F9C+="t";if(!a_L){a_L=(K92.uiContext || ({})).topNode || document.body;}if(C5F == "pu"){C5F=F9C;}R8b.I18N.convertCSV(D2q);R8b.I18N.language=C5F;R6l.W5N();R8b.I18N.translateUI(C5F,a_L);if(!Y0v){Y0v=R8b.I18N.translate;}K92.translationCallback=Y0v;};R8b.I18N.setLocale=function(p81,U5l,g8q,s2Q,t9N){var T$z,F8O,G9Z,N9F,i$i,E7g;T$z="SC";T$z+="RIPT";F8O="locale";F8O+="-";F8O+="data/jso";F8O+="np";G9Z="un";G9Z+="de";G9Z+="fin";G9Z+="ed";if(R8b.xor(this.reverseColorsByLocale[U5l],this.reverseColorsByLocale[p81.locale])){this.reverseCandles(p81);}if(typeof Intl == G9Z || !Intl.__addLocaleData){p81.setLocale(U5l,t9N);if(g8q){g8q(null);}return;}s2Q=typeof s2Q == "undefined"?F8O:s2Q;R6l.O_b(51);N9F=R6l.V9a(".js",U5l,s2Q,"/");i$i=document.createElement(T$z);i$i.async=!![];i$i.src=N9F;E7g=document.getElementsByTagName("script")[0];E7g.parentNode.insertBefore(i$i,E7g.nextSibling);i$i.onload=function(){p81.setLocale(U5l,t9N);if(g8q){g8q(null);}};i$i.onerror=function(){if(g8q){g8q("cannot load script");}};};R8b.I18N.createMonthArrays=function(P5G,Z3T,t44){var g0V,e2w,j_W,U28,O$d,o5P;P5G.monthAbv=[];P5G.monthLetters=[];g0V=new Date();R6l.W3G();e2w=!![];if(R8b.I18N.longMonths && R8b.I18N.longMonths[t44]){e2w=!!0;}for(var k4r=0;k4r < 12;k4r++){g0V.setDate(1);g0V.setMonth(k4r);j_W=Z3T.format(g0V);if(e2w){U28="";for(var d0K=0;d0K < j_W.length;d0K++){O$d=j_W.charAt(d0K);o5P=O$d.charCodeAt(0);if(o5P < 65)continue;U28+=O$d;}P5G.monthAbv[k4r]=U28;P5G.monthLetters[k4r]=U28[0];}else {P5G.monthAbv[k4r]=j_W;P5G.monthLetters[k4r]=j_W;}}};R8b.I18N.localize=function(y$b,U1S){this.setLocale(y$b,U1S);this.setLanguage(y$b,U1S);};R8b.I18N.reverseCandles=function(a2l){var N_T,Y33,e86;N_T=a2l.styles;Y33=a2l.cloneStyle(N_T.stx_candle_down);R6l.W3G();e86=a2l.cloneStyle(N_T.stx_candle_up);N_T.stx_candle_up=Y33;N_T.stx_candle_down=e86;};R8b.I18N.wordLists={en:{}};R8b.I18N.languages={en:"English"};};Q=q3j=>{var Z7f=i6UVR;var F44,J3z,e9u,s69,n2V,Q34,O3f,J0h;F44="
";J3z="
";e9u="
(right-click to deleteright-click to";e9u+=" managedrag to change anchor time)(long-press to drag)
";s69="
cancel";n2V="co";n2V+="ntextmen";n2V+="u";Q34="und";Q34+="efine";Q34+="d";O3f=typeof _CIQ !== "undefined"?_CIQ:q3j.CIQ;O3f.ChartEngine.prototype.pointerEvents={down:[],up:[]};O3f.ChartEngine.prototype.manageTouchAndMouse=!![];O3f.ChartEngine.prototype.registerTouchAndMouseEvents=function(){var h__,F4_,w6q,N$k,y9k,I9r,z2D,H6d,h_j,P3E,I$_,h4U,L2v,a2b;if(this.touchAndMouseEventsRegistered){return;}this.touchAndMouseEventsRegistered=!!1;h__=this.controls.chartControls || document;F4_=h__.querySelector(".stx-zoom-in");w6q=h__.querySelector(".stx-zoom-out");N$k=this.chart.container;y9k=this;I9r=function(o7_,q11,t6o){y9k.addDomEventListener(N$k,o7_,A9H,t6o);Z7f.W3G();function A9H(T4T){if(y9k.mainSeriesRenderer && y9k.mainSeriesRenderer.nonInteractive){return;}q11(T4T);}};if(!O3f.touchDevice){z2D="mo";z2D+="us";z2D+="edown";H6d="mo";H6d+="usemo";H6d+="ve";I9r(H6d,function(O9W){y9k.mousemove(O9W);});I9r("mouseenter",function(u85){Z7f.W5N();y9k.mousemove(u85);});I9r(z2D,function(W2A){Z7f.W5N();y9k.mousedown(W2A);});I9r("mouseup",function(O$a){Z7f.W5N();y9k.mouseup(O$a);});}else {if(O3f.isSurface){h_j="po";h_j+="inter";h_j+="d";h_j+="own";P3E="mou";P3E+="s";P3E+="edown";I9r("mousemove",function(h8f){y9k.msMouseMoveProxy(h8f);});I9r("mouseenter",function(N5B){Z7f.W3G();y9k.msMouseMoveProxy(N5B);});I9r(P3E,function(n7k){Z7f.W5N();y9k.msMouseDownProxy(n7k);});I9r("mouseup",function(Z$G){y9k.msMouseUpProxy(Z$G);});I9r(h_j,function(e7l){Z7f.W5N();return y9k.startProxy(e7l);});I9r("pointermove",function(h3E){Z7f.W3G();y9k.moveProxy(h3E);});I9r("pointerenter",function(K3T){Z7f.W3G();return y9k.moveProxy(K3T);});I9r("pointerup",function(h_e){return y9k.endProxy(h_e);});}else {if(!O3f.isMobile){I$_="mouseent";I$_+="er";I9r("mousemove",function(y6n){Z7f.W3G();y9k.iosMouseMoveProxy(y6n);});I9r(I$_,function(J40){Z7f.W5N();y9k.iosMouseMoveProxy(J40);});I9r("mousedown",function(v1g){Z7f.W3G();y9k.iosMouseDownProxy(v1g);});I9r("mouseup",function(O69){Z7f.W3G();y9k.iosMouseUpProxy(O69);});}I9r("touchstart",function(C08){Z7f.W3G();y9k.touchstart(C08);});I9r("touchmove",function(l5D){y9k.touchmove(l5D);});I9r("touchend",function(j$O){y9k.touchend(j$O);});I9r("pointerdown",function(y6H){y9k.touchPointerType=y6H.pointerType;});if(F4_){h4U="onMo";h4U+="useO";h4U+="ver";F4_.removeAttribute(h4U);F4_.removeAttribute("onMouseOut");}if(w6q){L2v="onMouseOve";L2v+="r";w6q.removeAttribute(L2v);w6q.removeAttribute("onMouseOut");}}}a2b=O3f.wheelEvent;Z7f.W5N();if(this.captureMouseWheelEvents){I9r(a2b,function(T36){y9k.mouseWheel(T36);},{passive:!({})});}};O3f.ChartEngine.prototype.mousedown=function(s9i){var g29,T9y,c6R,V6w,u05,q4o,v4n,F9R,s0_,s81,I$G;g29="moused";g29+="own";if(this.runPrepend(g29,arguments)){return;}this.grabOverrideClick=!1;if(!this.displayInitialized){return;}if(!this.displayCrosshairs){return;}if(this.repositioningDrawing){return;}if(this.editingAnnotation){return;}if(s9i.button && s9i.button >= 2){return;}T9y=this.container.getBoundingClientRect();this.top=T9y.top;this.left=T9y.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(s9i.clientX >= this.left && s9i.clientX <= this.right && s9i.clientY >= this.top && s9i.clientY <= this.bottom){this.insideChart=!!"1";}else {c6R=-134656921;V6w=-1137160748;u05=2;for(var U34=1;Z7f.m6F(U34.toString(),U34.toString().length,41752) !== c6R;U34++){this.insideChart=!({});u05+=2;}if(Z7f.l5h(u05.toString(),u05.toString().length,20166) !== V6w){this.insideChart=!!({});}return;}if(!this.currentPanel){return;}if(this.manageTouchAndMouse && s9i && s9i.preventDefault && this.captureTouchEvents){s9i.preventDefault();}this.mouseTimer=Date.now();this.longHoldTookEffect=!({});this.hasDragged=![];this.userPointerDown=!0;if(this.openDialog === ""){this.registerPointerEvent({x:s9i.clientX,y:s9i.clientY,time:this.mouseTimer},"down");}q4o=this.currentPanel.chart;for(var m0n=0;m0n < this.drawingObjects.length;m0n++){v4n=this.drawingObjects[m0n];if(v4n.highlighted && !v4n.permanent){if(this.cloneDrawing){F9R=O3f.ChartEngine.drawingTools[v4n.name];s0_=new F9R();s0_.reconstruct(this,v4n.serialize());this.drawingObjects.push(s0_);this.activateRepositioning(s0_);s0_.repositioner=v4n.repositioner;return;}s81=this.currentVectorParameters.vectorType;if(!O3f.Drawing || !s81 || !O3f.Drawing[s81] || !new O3f.Drawing[s81]().dragToDraw){this.activateRepositioning(v4n);return;}}}I$G=this.mainSeriesRenderer || ({});var {baselineHelper:A1Z}=this;if(A1Z.size){if(this.findBaselineHandle(s9i,!!({}))){return;}}if(this.controls.anchorHandles){var {anchorHandles:c1n}=this.controls;for(var y7P in c1n){var {handle:U_t, sd:R60, highlighted:r2r}=c1n[y7P];if(r2r){this.repositioningAnchorSelector={sd:R60};U_t.classList.add("stx-grab");return;}}}if(this.drawingClick){if(this.currentPanel.subholder === s9i.target){this.drawingClick(this.currentPanel,this.cx,this.cy);}if(this.activeDrawing && this.activeDrawing.dragToDraw){return;}}this.grabbingScreen=!!1;q4o.spanLock=![];this.yToleranceBroken=!!"";this.grabStartX=s9i.clientX;this.grabStartY=s9i.clientY;this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=q4o.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(this.currentPanel);this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPanel=this.currentPanel;setTimeout((function(g8U){Z7f.W3G();return function(){Z7f.W5N();g8U.grabbingHand();};})(this),100);if(this.swipeStart){this.swipeStart(q4o);}if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}this.runAppend("mousedown",arguments);};O3f.ChartEngine.prototype.mousemove=function(d7U){var r0i,L4M;r0i="mou";r0i+="se";r0i+="move";L4M=d7U;O3f.ChartEngine.crosshairX=L4M.clientX;O3f.ChartEngine.crosshairY=L4M.clientY;if(L4M.type.toLowerCase().indexOf("enter") > -1){this.positionCrosshairsAtPointer();return;}if(this.runPrepend(r0i,arguments)){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(this.baselineHelper.size){this.findBaselineHandle(L4M);}if(this.grabbingScreen && L4M.buttons !== 1){this.cancelLongHold=!!1;this.displayDragOK();this.grabbingScreen=!1;this.findHighlights(!({}),!!"1");}this.mousemoveinner(L4M.clientX,L4M.clientY);this.runAppend("mousemove",arguments);};O3f.ChartEngine.prototype.mouseup=function(j4w){var r_R,J4j,W1Y,g6i,r7x,G3q,E1E,x9i,W55,U8u,F_H,M9a;r_R="mo";r_R+="use";r_R+="up";if(this.runPrepend("mouseup",arguments)){return;}this.swipe.end=!0;this.cancelLongHold=!![];if(this.repositioningDrawing){if(!this.currentVectorParameters.vectorType || Date.now() - this.mouseTimer > 250){this.changeOccurred("vector");O3f.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.adjustDrawings();this.draw();return;}this.activateRepositioning(null);}if(this.repositioningBaseline){var {handle:O9b}=this.repositioningBaseline;this.repositioningBaseline=null;O9b.classList.remove("stx-grab");J4j=this.mainSeriesRenderer || ({});if(J4j.params && J4j.params.baseline && J4j.params.type != "mountain"){;}this.draw();return;}if(this.repositioningAnchorSelector){O3f.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:D4O})=>{return D4O.classList.remove("stx-grab");});this.findHighlights();return;}W1Y=this.userPointerDown;this.userPointerDown=!!0;if(!this.displayInitialized){return;}g6i=this.backOutY(j4w.clientY);r7x=this.backOutX(j4w.clientX);G3q=j4w.which && j4w.which >= 2 || j4w.button && j4w.button >= 2;E1E=this.openDialog !== "";if(!E1E && !G3q){this.registerPointerEvent({x:j4w.clientX,y:j4w.clientY,time:Date.now()},"up");}x9i=this.isDoubleClick();this.grabbingScreen=!"1";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(r7x,g6i);}this.currentPanel=this.whichPanel(g6i);}W55=this.currentPanel;this.grabStartYAxis=null;this.displayDragOK();if(this.openDialog !== ""){U8u="s";U8u+="tx-drag-ch";U8u+="ar";U8u+="t";if(this.insideChart){this.container.classList.remove(U8u);}return;}if(this.grabOverrideClick){F_H="st";F_H+="x-d";F_H+="rag-chart";if(!this.overXAxis && !this.overYAxis && this.swipeRelease){this.swipeRelease();}this.container.classList.remove(F_H);this.grabOverrideClick=!!"";this.doDisplayCrosshairs();this.updateChartAccessories();return;}if(this.insideChart){this.container.classList.remove("stx-drag-chart");}if(O3f.ChartEngine.resizingPanel){this.releaseHandle();return;}if(G3q || j4w.ctrlKey){if(this.anyHighlighted && this.bypassRightClick !== !!({})){this.rightClickHighlighted();if(j4w.preventDefault && this.captureTouchEvents){j4w.preventDefault();}j4w.stopPropagation();return !!0;}this.dispatch("rightClick",{stx:this,panel:W55,x:r7x,y:g6i});return !!"1";}if(j4w.clientX < this.left || j4w.clientX > this.right){return;}if(j4w.clientY < this.top || j4w.clientY > this.bottom){return;}M9a=W55 && W55.subholder === j4w.target;if(x9i && (M9a || this.overYAxis || this.overXAxis)){this.doubleClick({button:j4w.button,x:r7x,y:g6i});}else {if(W1Y && M9a){if(!this.longHoldTookEffect || this.activeDrawing){this.drawingClick(W55,r7x,g6i);}if(!this.longHoldTookEffect && this.activeMarker){this.activeMarker.click({cx:r7x,cy:g6i,panel:W55});}}if(!this.longHoldTookEffect && !this.activeDrawing){this.dispatch("tap",{stx:this,panel:W55,x:r7x,y:g6i});}}this.runAppend(r_R,arguments);};O3f.ChartEngine.prototype.registerPointerEvent=function(g_Y,t7c){if(this.pointerEvents[t7c].length > 1){this.pointerEvents[t7c].pop();}this.pointerEvents[t7c].unshift(g_Y);};Z7f.W5N();O3f.ChartEngine.prototype.resetPointerEvent=function(S2t){this.pointerEvents[S2t].splice(0);};O3f.ChartEngine.prototype.isDoubleClick=function(Z7m){var q6U,b_Z,V1g,E36;q6U=Z7m?1200:400;Z7f.W5N();var {up:c3w, down:t1Z}=this.pointerEvents;this.cancelTouchSingleClick=![];if(c3w.length < +"2" || t1Z.length < 2){return !"1";}b_Z=t1Z["0" ^ 0].time - c3w[1].time < this.doubleClickTime && Math.pow(c3w[1].x - c3w[0].x,2) + Math.pow(c3w[1].y - c3w[+"0"].y,2) <= q6U && c3w[1].time - t1Z[1].time < this.longHoldTime && c3w[+"0"].time - t1Z[0].time < this.longHoldTime;if(b_Z){V1g="dow";V1g+="n";E36="u";E36+="p";this.resetPointerEvent(E36);this.resetPointerEvent(V1g);this.cancelTouchSingleClick=!![];}return b_Z;};O3f.ChartEngine.prototype.doubleClick=function(g__,S_G,m0K){var l1u;if(this.runPrepend("doubleClick",arguments)){return;}if(this.editingAnnotation){return;}if(O3f.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}l1u=this.activeMarker && this.activeMarker.doubleClick({cx:S_G,cy:m0K,panel:this.currentPanel});if(!l1u){this.dispatch("doubleClick",{stx:this,button:g__,x:S_G,y:m0K});}this.runAppend("doubleClick",arguments);};O3f.ChartEngine.prototype.handleMouseOut=function(U1L){var N$i,E5W,U63;U1L=U1L || window.event;if(!O3f.withinElement(this.chart.container,U1L.pageX,U1L.pageY)){N$i="h";N$i+="andle";N$i+="M";N$i+="ouseOut";if(this.runPrepend("handleMouseOut",arguments)){return;}if(!this.grabbingScreen){this.findHighlights(null,!!1);}this.undisplayCrosshairs();this.touches=[];this.touching=!"1";if(this.activeDrawing && this.userPointerDown){this.userPointerDown=!({});this.drawingLine=![];E5W=this.backOutY(U1L.pageY);U63=this.backOutX(U1L.pageX);this.drawingClick(this.currentPanel,U63,E5W);}if(this.repositioningAnchorSelector){this.repositioningAnchorSelector=null;}this.insideChart=!!"";this.overYAxis=!"1";this.overXAxis=![];this.displaySticky();this.runAppend(N$i,arguments);}};O3f.ChartEngine.prototype.startLongHoldTimer=function(){var H3a,f9S;H3a=this;this.cancelLongHold=![];if(this.longHoldTimeout){clearTimeout(this.longHoldTimeout);}f9S=function(){if(H3a.cancelLongHold){return;}H3a.longHoldTookEffect=!!({});Z7f.W5N();H3a.dispatch("longhold",{stx:H3a,panel:H3a.currentPanel,x:H3a.cx,y:H3a.cy});H3a.displayDragOK();};if(this.longHoldTime){this.longHoldTimeout=setTimeout(f9S,this.longHoldTime);}else if(this.longHoldTime === 0){f9S();}};O3f.ChartEngine.prototype.grabHandle=function(N2W){Z7f.W5N();var Y_9,h8c;Y_9="gr";Y_9+="abHandle";h8c="s";h8c+="tx-grab";if(this.runPrepend("grabHandle",arguments)){return;}if(!N2W){return;}O3f.ChartEngine.crosshairY=N2W.top + this.top;O3f.ChartEngine.resizingPanel=N2W;N2W.handle.classList.add(h8c);this.runAppend(Y_9,arguments);};O3f.ChartEngine.prototype.grabbingHand=function(){var A0W;A0W="stx-drag";A0W+="-";A0W+="chart";if(!this.allowScroll){return;}if(!this.grabbingScreen){return;}if(O3f.touchDevice){return;}this.container.classList.add(A0W);};O3f.ChartEngine.prototype.releaseHandle=function(){if(this.runPrepend("releaseHandle",arguments)){return !!({});}O3f.clearCanvas(this.chart.tempCanvas,this);this.resizePanels();if(O3f.ChartEngine.resizingPanel){O3f.ChartEngine.resizingPanel.handle.classList.remove("stx-grab");}O3f.ChartEngine.resizingPanel=null;this.runAppend("releaseHandle",arguments);};O3f.ChartEngine.prototype.findHighlights=function(m5Z,D8F){var Z8m,y0E,D$e,z6T,y1i,b45,y7H,R41,z9V,l9g,u$d,s5$,J9M,g36,Q0B,S8n,W6Z,W5u,Z0R,R3d,B3J,v_M,S2r,s5Y,u7f,z4Z,M$P,H41,x61,t0W,u0s,g$f,Q9J,e$5,y_4,R4V,L9Z,R5U,O2A,J0a,w8L,E_l,X1g,H3z,H5C,J$G,O9N,m40,n7D,y__;Z8m="d";Z8m+="raw";Z8m+="ing";y0E=this.preferences[m5Z?"highlightsTapRadius":"highlightsRadius"];this.highlightViaTap=m5Z;var {cx:b6D, cy:i5l}=this;this.anyHighlighted=![];if(!this.currentPanel){return;}var {chart:W69}=this.currentPanel;if(this.activeDrawing){D8F=!!({});}D$e=![];z6T=null;y1i=D8F?{}:{forceShow:!"",type:Z8m};b45={x0:this.tickFromPixel(b6D - y0E,W69),x1:this.tickFromPixel(b6D + y0E,W69),y0:this.valueFromPixel(i5l - y0E,this.currentPanel),y1:this.valueFromPixel(i5l + y0E,this.currentPanel),cx0:b6D - y0E,cx1:b6D + y0E,cy0:i5l - y0E,cy1:i5l + y0E,r:y0E};if(this.repositioningDrawing && b45.x1 - b45.x0 < +"2"){b45.x1++;b45.x0--;}else if(b45.x1 == b45.x0){b45.x0-=0.5;b45.x1+=0.5;}y7H=this.markerHelper && this.markerHelper.chartMap[W69.name] && this.markerHelper.chartMap[W69.name].markers;if(!W69.hideDrawings){for(var M$k=this.drawingObjects.length - 1;M$k >= +"0";M$k--){R41=this.drawingObjects[M$k];if(!this.panels[R41.panelName])continue;if(this.repositioningDrawing && this.repositioningDrawing != R41)continue;z9V=R41.highlighted;l9g=R41.panelName == this.currentPanel.name;R41.repositioner=R41.intersected(this.crosshairTick,this.crosshairValue,b45);l9g=l9g && R41.repositioner;if(!D8F && l9g){if(z9V){z6T=R41;if(this.anyHighlighted && this.singleDrawingHighlight){R41.highlighted=![];}if(R41.highlighted && R41.highlighted != z9V){D$e=!"";};}else if(z9V != R41.highlight(!!1)){if(!z6T){z6T=R41;}if(this.anyHighlighted && this.singleDrawingHighlight){R41.highlighted=!({});}D$e=!![];}this.anyHighlighted=!![];}else {if(z9V != R41.highlight(![])){D$e=!!({});}}if(R41.highlighted){y1i.noDelete=R41.permanent;y1i.noEdit=!this.callbackListeners.drawingEdit.length;}}}for(u$d in this.layout.studies){s5$=this.layout.studies[u$d];s5$.prev=s5$.highlight;s5$.highlight=this.yaxisMatches(s5$,this.grabStartYAxis);}for(u$d in W69.seriesRenderers){S8n=W69.seriesRenderers[u$d];S8n.params.highlight=this.yaxisMatches(S8n,this.grabStartYAxis);for(var b8b=0;b8b < S8n.seriesParams.length;b8b++){Q0B=S8n.seriesParams[b8b];Q0B.prev=Q0B.highlight;Q0B.highlight=S8n.params.highlight;}}for(J9M=0;y7H && J9M < y7H.length;J9M++){g36=y7H[J9M];if(!g36.params.box)continue;this.activeMarker=null;g36.prev=y7H[J9M].highlight;g36.highlight=![];}if(this.markerHelper){this.markerHelper.highlighted=[];}this.highlightedDataSetField=null;this.highlightedDraggable=null;if(!D8F && !this.anyHighlighted && this.controls.anchorHandles){for(var b0y in this.controls.anchorHandles){W6Z=this.controls.anchorHandles[b0y];var {handle:u$E, sd:q0_}=W6Z;W5u=this.resolveX(b6D);Z0R=this.resolveY(i5l);if(u$E){var {left:P6w, top:y75, right:I12, bottom:T_q}=u$E.getBoundingClientRect();if(O3f.boxIntersects(P6w,y75,I12,T_q,W5u,Z0R,W5u,Z0R)){R3d="anchorHand";R3d+="le";W6Z.highlighted=!!1;this.anyHighlighted=!!({});D$e=!!({});y1i={message:q0_.name,type:R3d};continue;}if(W6Z.highlighted === !!"1"){W6Z.highlighted=!1;D$e=!!({});}}}}if(!D8F && !this.anyHighlighted && W69.dataSegment){B3J=this.barFromPixel(b6D);if(B3J >= 0 && B3J < W69.dataSegment.length){for(u$d in this.overlays){s5$=this.overlays[u$d];if(s5$.panel != this.currentPanel.name)continue;if(s5$.study.isHighlighted === !({}))continue;else if(typeof s5$.study.isHighlighted == "function"){if(s5$.study.isHighlighted(this,b6D,i5l)){s5$.highlight=!0;this.anyHighlighted=!![];}continue;}S2r=W69.dataSegment[B3J];if(!S2r)continue;for(var M79 in s5$.outputMap){if(y$R.call(this,B3J,b45,M79,s5$.getYAxis(this))){if(s5$.name != s5$.panel){this.anyHighlighted=!"";}s5$.highlight=M79;break;}}if(s5$.highlight){this.highlightedDataSetField=M79;break;;}}for(u$d in W69.seriesRenderers){if(this.highlightedDataSetField)break;s5Y=W69.seriesRenderers[u$d];u7f=s5Y.params.panel;if(s5Y == this.mainSeriesRenderer)continue;if(!s5Y.params.highlightable && !this.currentVectorParameters.vectorType)continue;if(u7f != this.currentPanel.name)continue;for(J9M=0;J9M < s5Y.seriesParams.length;J9M++){z4Z="-";z4Z+="-";z4Z+=">";Q0B=s5Y.seriesParams[J9M];M$P=Q0B.field;if(!M$P && !s5Y.highLowBars){M$P=this.defaultPlotField || "Close";}if(Q0B.symbol && Q0B.subField){M$P+=z4Z + Q0B.subField;}H41=s5Y.params.yAxis;if(!H41 && u7f){H41=this.panels[u7f].yAxis;}if(s5Y.params.step && B3J > +"0"){if(!s5Y.caches[Q0B.id])continue;v_M=s5Y.caches[Q0B.id][B3J];if(!v_M && v_M !== 0)continue;Z7f.s$9(1);x61=s5Y.caches[Q0B.id][Z7f.v$j(1,B3J)];if((x61 || x61 === 0) && i5l + y0E >= v_M && i5l - y0E <= x61 || i5l - y0E <= v_M && i5l + y0E >= x61){Q0B.highlight=!!"1";this.anyHighlighted=!![];}}else if(y$R.call(this,B3J,b45,M$P,H41,s5Y,Q0B.id)){Q0B.highlight=!!1;this.anyHighlighted=!![];}if(Q0B.highlight){this.highlightedDataSetField=M$P;break;}}}}}u0s=this.preferences.dragging;for(u$d in this.overlays){s5$=this.overlays[u$d];if(s5$.highlight){this.anyHighlighted=!!1;Q9J=s5$.inputs.display || s5$.name;Q9J=this.translateIf(Q9J);y1i={message:Q9J,noDelete:s5$.permanent,noEdit:!s5$.editFunction,type:"study"};z6T=null;if(u0s === !"" || u0s && u0s.study){t0W=s5$;}g$f=s5$.getYAxis(this);}if(s5$.prev != s5$.highlight){D$e=!!1;}}Z7f.W3G();for(u$d in W69.seriesRenderers){e$5=W69.seriesRenderers[u$d];y_4=e$5.params.yAxis?e$5.params.yAxis.textStyle:null;for(var j3f=0;j3f < e$5.seriesParams.length;j3f++){Q0B=e$5.seriesParams[j3f];if(e$5.params.highlightable && Q0B.highlight){R4V="a";R4V+="ut";R4V+="o";this.anyHighlighted=!![];L9Z=Q0B.color || y_4;if(L9Z == R4V){L9Z=this.defaultColor;}if(Q0B.opacity && Q0B.opacity !== 1){L9Z=O3f.hexToRgba(O3f.colorToHex(L9Z),parseFloat(Q0B.opacity));}y1i={message:Q0B.display || Q0B.symbol,backgroundColor:L9Z,noDelete:Q0B.permanent,type:"series"};z6T=null;if(u0s === !!1 || u0s && u0s.series){t0W=e$5;e$5.params.highlight=!!1;}g$f=e$5.getYAxis(this);}if(Q0B.prev != Q0B.highlight){D$e=!!({});}}}for(u$d in this.plugins){R5U=this.plugins[u$d];O2A={};if(R5U.findHighlights){O2A=R5U.findHighlights(this,m5Z,D8F);if(O2A.somethingChanged){D$e=!!({});}if(O2A.anyHighlighted){this.anyHighlighted=!!({});y1i=O2A.stickyArgs || ({});}}}J0a=this.whichPanel(i5l);w8L=this.whichYAxis(J0a,b6D);if(!g$f){g$f=w8L;}if(this.currentBaseline){g$f=this.currentBaseline.getYAxis(this);}if(g$f){if(!g$f.highlight){D$e=!"";}g$f.highlight=!![];}E_l=[];for(var x2x in this.panels){E_l=E_l.concat(this.panels[x2x].yaxisLHS).concat(this.panels[x2x].yaxisRHS);}function y$R(t4N,K56,l$X,u_1,E8t,W4Y){var v38,p1N,K3F,R8c,J$a,A$i,Z6N,b5_,X1C,P$E,f_S,f1N,q53,n3y,S0g,D7P,q2N,P8g,J1h,Q5i,v1f,h0g,N3V;function y2$(B$z){var x2n;if(!B$z){return null;}x2n=B$z[J$a];if(x2n && (x2n[A$i] || x2n[A$i] === +"0")){x2n=x2n[A$i];}if(E8t && E8t.getBasis){x2n+=E8t.getBasis(B$z,J$a,A$i);}if(!p1N.transformFunc || u_1 != p1N.yAxis){return x2n;}else if(B$z.transform && (J$a in B$z.transform)){x2n=B$z.transform[J$a];if(x2n && (x2n[A$i] || x2n[A$i] === 0)){x2n=x2n[A$i];}return x2n;}return p1N.transformFunc(this,p1N,x2n);}v38="-";v38+="-";v38+=">";p1N=this.chart;K3F=this.currentPanel;if(!u_1){u_1=K3F.yAxis;}R8c=l$X.split(v38);J$a=R8c[0];A$i=R8c[1];Z7f.W3G();if(!A$i){A$i="Close";}Z6N=p1N.dataSegment[B3J];q53=null;n3y=null;S0g=null;D7P=new Array(3);q2N=E8t && E8t.caches[W4Y];if(Z6N && q2N){P$E=q2N[B3J];q53=Z6N.tick;if(P$E || P$E === ("0" | 0)){D7P[0]=1;}for(P8g=B3J - 1;P8g >= 0;P8g--){if(q2N[P8g] || q2N[P8g] === 0){f_S=q2N[P8g];Z7f.O_b(88);n3y=Z7f.v$j(P8g,q53,B3J);D7P[1]=1;break;}}for(P8g=B3J + 1;P8g < p1N.dataSegment.length;P8g++){if(q2N[P8g] || q2N[P8g] === +"0"){f1N=q2N[P8g];Z7f.s$9(88);S0g=Z7f.V9a(P8g,q53,B3J);D7P[2]=1;break;}}}if(n3y === null){b5_=this.getPreviousBar.call(this,p1N,l$X,B3J);if(b5_){n3y=b5_.tick;f_S=y2$(b5_);}}if(S0g === null){X1C=this.getNextBar.call(this,p1N,l$X,B3J);if(X1C){S0g=X1C.tick;f1N=y2$(X1C);}}if(n3y === null && S0g === null){return !"1";}if(!q2N){P$E=y2$(Z6N);f_S=y2$(b5_);f1N=y2$(X1C);q53=Z6N.tick;if(b5_){n3y=b5_.tick;}if(X1C){S0g=X1C.tick;}}if(!f_S && f_S !== "0" * 1){f_S=0;n3y=0;}if(!f1N && f1N !== 0){if(P$E || P$E === "0" - 0){f1N=P$E;D7P[2]=D7P[+"0"];}else {f1N=f_S;Z7f.s$9(39);D7P[Z7f.V9a("2",0)]=D7P[1];}if(W4Y && p1N.series[W4Y].parameters.extendToEndOfDataSet){Z7f.s$9(23);var g4x=Z7f.v$j(3,2);S0g=p1N.dataSet.length - g4x;}else {S0g=n3y;}}if(!P$E && P$E !== 0){P$E=f1N;q53=S0g;D7P[0]=D7P[2];if(f_S === 0 && n3y === 0){f_S=P$E;n3y=q53;D7P[1]=D7P[0];}}J1h=this.pixelFromTransformedValue.bind(this);Q5i=this.valueFromPixel.bind(this);P$E=Q5i(D7P[0]?P$E:J1h(P$E,K3F,u_1),K3F);f_S=Q5i(D7P["1" ^ 0]?f_S:J1h(f_S,K3F,u_1),K3F);f1N=Q5i(D7P[2]?f1N:J1h(f1N,K3F,u_1),K3F);v1f=O3f.convertBoxToPixels(this,K3F.name,K56);h0g=O3f.convertBoxToPixels(this,K3F.name,{x0:n3y,y0:f_S,x1:q53,y1:P$E});N3V=O3f.convertBoxToPixels(this,K3F.name,{x0:q53,y0:P$E,x1:S0g,y1:f1N});if(O3f.boxIntersects(v1f.x0,v1f.y0,v1f.x1,v1f.y1,h0g.x0,h0g.y0,h0g.x1,h0g.y1,"segment") || O3f.boxIntersects(v1f.x0,v1f.y0,v1f.x1,v1f.y1,N3V.x0,N3V.y0,N3V.x1,N3V.y1,"segment")){return !!({});}return !!0;}for(u$d=0;u$d < E_l.length;u$d++){if(g$f == E_l[u$d] && !D8F)continue;if(E_l[u$d].highlight){D$e=!![];}E_l[u$d].highlight=![];}for(J9M=0;y7H && J9M < y7H.length;J9M++){g36=y7H[J9M];X1g=g36.params.box;if(!X1g)continue;if(g36.params.panelName !== this.currentPanel.name)continue;H3z=O3f.convertBoxToPixels(this,this.currentPanel.name,b45);if(O3f.boxIntersects(H3z.x0,H3z.y0,H3z.x1,H3z.y1,X1g.x0,X1g.y0,X1g.x1,X1g.y1)){this.activeMarker=g36;g36.highlight=!!"1";this.markerHelper.highlighted.push(g36);}if(g36.prev != g36.highlight){D$e=!!({});}}if(D$e){this.draw();y1i.panel=J0a;if(this.anyHighlighted && !this.grabStartYAxis){y1i.panel=J0a;}else {y1i={};}this.displaySticky(y1i);this.clearMeasure();if(z6T){z6T.measure();}}if((u0s === !0 || u0s && u0s.yaxis) && w8L && !w8L.noDraw){this.anyHighlight=!!({});t0W=w8L;}if(!this.anyHighlighted){this.setMeasure();}if(t0W && !J0a.noDrag){H5C="stx-d";H5C+="raggab";H5C+="le";if(this.longHoldTookEffect && !this.cancelLongHold){if(t0W.params){if(t0W.params.dependentOf){t0W=W69.seriesRenderers[t0W.params.dependentOf];t0W.params.highlight=!0;}for(u$d in W69.seriesRenderers){if(W69.seriesRenderers[u$d].params.dependentOf == t0W.params.name){W69.seriesRenderers[u$d].params.highlight=!!1;}}}this.highlightedDraggable=t0W;if(t0W.getDependents){J$G=t0W.getDependents(this,!!({}));for(u$d in this.overlays){s5$=this.overlays[u$d];if(J$G.indexOf(s5$) > -("1" * 1)){s5$.highlight=!!({});}}}}this.container.classList.add(H5C);}else {O9N=-333451783;m40=-1204407705;n7D=2;for(var R4Q=+"1";Z7f.l5h(R4Q.toString(),R4Q.toString().length,96758) !== O9N;R4Q++){y__="stx-";y__+="dra";y__+="gga";y__+="ble";this.container.classList.remove(y__);n7D+=2;}if(Z7f.m6F(n7D.toString(),n7D.toString().length,8656) !== m40){this.container.classList.remove("");}}this.highlightedDataSetField=this.adjustHighlightedDataSetField(this.highlightedDataSetField);this.displayDrawOK();};O3f.ChartEngine.prototype.rightClickHighlighted=function(){var n5N;n5N="rightClic";n5N+="kHighli";n5N+="gh";n5N+="ted";if(this.runPrepend("rightClickHighlighted",arguments)){return;}this.deleteHighlighted(!!"1");Z7f.W3G();this.runAppend(n5N,arguments);};O3f.ChartEngine.prototype.deleteHighlighted=function(N9r,V3D){var V0W,F0n,k6w,I62,f$8,Y9P,D_b,S_k,i_S,A5_,t7W,g_y,h0o;V0W="deleteH";V0W+="ighlighte";V0W+="d";if(this.runPrepend(V0W,arguments)){return;}this.cancelTouchSingleClick=!!"1";O3f.clearCanvas(this.chart.tempCanvas,this);F0n=this.bypassRightClick === !!0;if(F0n || !this.bypassRightClick.drawing){for(var V77=this.drawingObjects.length - 1;V77 >= 0;V77--){k6w=this.drawingObjects[V77];if(!k6w.highlighted)continue;if(N9r){this.rightClickDrawing(k6w,V3D);}else if(!k6w.permanent){I62=k6w.abort();if(!I62){f$8=this.exportDrawings();this.drawingObjects.splice(V77,1);this.undoStamp(f$8,this.exportDrawings());}this.changeOccurred("vector");}}}if(F0n || !this.bypassRightClick.study){for(var u9R in this.overlays){Y9P=this.overlays[u9R];if((Y9P.overlay || Y9P.underlay) && Y9P.highlight && !Y9P.permanent){if(N9r || V3D){this.rightClickOverlay(u9R,V3D);}else {this.removeOverlay(u9R);}}}}D_b=this.currentPanel.chart;if(F0n || !this.bypassRightClick.series){for(var E5g in D_b.seriesRenderers){S_k=D_b.seriesRenderers[E5g];if(S_k.params.highlightable){i_S=this.panels[S_k.params.panel];A5_=i_S && i_S.yAxis.name;for(var J6O=S_k.seriesParams.length - 1;J6O >= 0;J6O--){t7W=S_k.seriesParams[J6O];if((S_k.params.highlight || t7W.highlight) && !t7W.permanent){S_k.removeSeries(t7W.id);if(S_k.seriesParams.length < 1){this.removeSeriesRenderer(S_k);if(S_k.params.name == A5_){this.electNewPanelOwner(S_k.params.panel);}else {this.checkForEmptyPanel(S_k.params.panel);g_y=this.getYAxisByName(i_S,S_k.params.name);if(g_y){g_y.name=g_y.studies[0] || g_y.renderers["1" - 0];}}}}}}}}this.draw();this.resizeChart();this.clearMeasure();h0o=this.controls.mSticky;if(h0o){h0o.style.display="none";h0o.children[0].innerHTML="";}this.runAppend("deleteHighlighted",arguments);};O3f.ChartEngine.prototype.displayDragOK=function(N4E){var W2w,N9O,q9H,g1o,a8f,W6t,w0N,f4Q,V9u,t2$,m6I,x6u,y_E,t7Y,N3e;W2w=this.controls.dragOk;function L4m(x$m){var X5N,s1M,T7I,J$Y,Q6p;Z7f.W3G();X5N=".";X5N+="field";s1M="t";s1M+="ex";s1M+="t";T7I=".fi";T7I+="el";T7I+="d";J$Y=this.translateIf(x$m.querySelector(T7I).getAttribute(s1M));Q6p=this.whichYAxis(this.whichPanel(this.cy),this.cx,this.cy);if(Q6p && Q6p.dropzone == "all"){J$Y+="-->" + this.translateIf(Q6p.name);}x$m.querySelector(X5N).innerHTML=J$Y;}if(W2w){if(!N4E){if(!this.tapForHighlighting || !this.touchingEvent || this.anyHighlighted){this.findHighlights(this.highlightViaTap);};}N9O=this.highlightedDraggable;q9H=N9O && N9O.undraggable && N9O.undraggable(this);g1o=this.cx;a8f=this.cy;if(!N4E){if(N9O && !q9H && this.longHoldTookEffect && !this.cancelLongHold){W6t="stx-dr";W6t+="ag-ser";W6t+="ies";w0N="s";w0N+="tx-";w0N+="drag-axis";f4Q="s";f4Q+="tx-drag-chart";V9u=N9O.inputs && N9O.inputs.display || N9O.params && (N9O.params.display || N9O.params.name) || N9O.name;W2w.querySelector(".field").setAttribute("text",V9u);L4m.call(this,W2w);W2w.style.display="inline-block";this.draw();this.displaySticky();if(this.grabStartYAxis){this.container.classList.replace(f4Q,w0N);}else {this.container.classList.replace("stx-drag-chart",W6t);}}else {W2w.style.display="none";this.draw();this.container.classList.remove("stx-drag-series");this.container.classList.remove("stx-drag-axis");for(var B0F in this.panels){t2$="a";t2$+="ll";m6I=this.panels[B0F].subholder.classList;m6I.remove("dropzone");m6I.remove(t2$);m6I.remove("left");m6I.remove("right");m6I.remove("top");m6I.remove("bottom");for(x6u=0;x6u < this.panels[B0F].yaxisLHS.length;x6u++){this.panels[B0F].yaxisLHS[x6u].dropzone=null;}for(x6u=0;x6u < this.panels[B0F].yaxisRHS.length;x6u++){this.panels[B0F].yaxisRHS[x6u].dropzone=null;}}}this.draw();}if(N9O){y_E="p";y_E+="x";t7Y=a8f + W2w.offsetHeight;N3e=Math.max(0,g1o - W2w.offsetWidth);Z7f.s$9(0);W2w.style.top=Z7f.v$j(t7Y,"px");Z7f.s$9(0);W2w.style.left=Z7f.v$j(N3e,y_E);L4m.call(this,W2w);}}};O3f.ChartEngine.prototype.displayDrawOK=function(){Z7f.W5N();var J6m,p9X,Y4Y,l9_,a42,h5e;J6m=this.controls.drawOk;if(J6m && O3f.Drawing){p9X=O3f.Drawing[this.currentVectorParameters.vectorType];if(p9X){p9X=new p9X();}if(this.highlightedDataSetField && p9X && p9X.getYValue){Y4Y=".f";Y4Y+="i";Y4Y+="e";Y4Y+="ld";l9_="in";l9_+="li";l9_+="ne-blo";l9_+="ck";J6m.style.display=l9_;a42=this.cy + J6m.offsetHeight;h5e=this.cx - J6m.offsetWidth;Z7f.s$9(0);J6m.style.top=Z7f.v$j(a42,"px");Z7f.s$9(0);J6m.style.left=Z7f.v$j(h5e,"px");J6m.querySelector(Y4Y).innerHTML=this.translateIf(this.highlightedDataSetField);}else {J6m.style.display="none";}}};O3f.ChartEngine.prototype.mouseWheel=function(L5g){var N7C,T1Z,r6w,a6K,s$5,x40,s0o,J5Z,K0F;N7C="mouseWhee";N7C+="l";if(this.runPrepend("mouseWheel",arguments)){return;}if(L5g.preventDefault){L5g.preventDefault();}if(this.openDialog !== ""){return;}T1Z=L5g.deltaX;r6w=L5g.deltaY;if(Math.abs(r6w) > Math.abs(T1Z)){T1Z=0;}else {r6w=0;}this.lastMouseWheelEvent=Date.now();if(Math.abs(T1Z) === 0 && Math.abs(r6w) === "0" * 1){return;}if(this.allowSideswipe && T1Z !== 0){this.lastMove="horizontal";a6K=T1Z;if(a6K > 50){a6K=50;}if(a6K < -50){a6K=-50;}this.grabbingScreen=!![];if(!this.currentPanel){this.currentPanel=this.chart.panel;}this.grabStartX=O3f.ChartEngine.crosshairX;this.grabStartY=O3f.ChartEngine.crosshairY;this.grabStartScrollX=this.chart.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartMicropixels=this.micropixels;this.grabStartPanel=this.currentPanel;this.mousemoveinner(O3f.ChartEngine.crosshairX - a6K,O3f.ChartEngine.crosshairY);this.updateChartAccessories();this.grabbingScreen=!!"";return;}this.lastMove="vertical";if(!this.allowZoom){return;}if(!this.displayInitialized){return;}if(!r6w){s$5="mous";s$5+="ew";s$5+="h";s$5+="eel";if(O3f.wheelEvent == s$5){Z7f.s$9(23);var k13=Z7f.V9a(4,5);Z7f.s$9(89);var i0$=Z7f.V9a(4,13,17,39);r6w=k13 / i0$ * L5g.wheelDelta;if(L5g.wheelDeltaX){Z7f.s$9(1);var M4W=Z7f.V9a(20,19);Z7f.s$9(0);var y_X=Z7f.v$j(27,13);T1Z=M4W / y_X * L5g.wheelDeltaX;}}else {r6w=L5g.detail;}}if(typeof L5g.deltaMode == "undefined"){L5g.deltaMode=L5g.type == "MozMousePixelScroll"?0:1;}x40=-r6w;if(L5g.deltaMode == 1){x40*=33;}s0o=null;J5Z=null;if(this.mouseWheelAcceleration){K0F=Math.max(Math.pow(Math.abs(x40),"0.3" * 1),+"1");Z7f.s$9(90);s0o=Z7f.V9a(K0F,0.1,1);Z7f.O_b(46);J5Z=Z7f.V9a(0.2,1,K0F);}this.zoomInitiatedByMouseWheel=!!1;if(x40 > 0){if(this.reverseMouseWheel){this.zoomOut(null,J5Z);}else {this.zoomIn(null,s0o);}}else if(x40 < 0){if(this.reverseMouseWheel){this.zoomIn(null,s0o);}else {this.zoomOut(null,J5Z);}}if(this.runAppend(N7C,arguments)){return;}return ![];};O3f.ChartEngine.handleContextMenu=function(d0P){var d85;for(var u4U=0;u4U < O3f.ChartEngine.registeredContainers.length;u4U++){d85=O3f.ChartEngine.registeredContainers[u4U].stx;if(d85){if(d85.anyHighlighted){if(d0P.preventDefault){d0P.preventDefault();}return !!"";}}}};if(typeof document != Q34){document.addEventListener(n2V,O3f.ChartEngine.handleContextMenu);}O3f.ChartEngine.htmlControls={annotationSave:'
save',annotationCancel:s69,mSticky:e9u,drawOk:J3z,dragOk:F44,crossX:'
',crossY:'
',chartControls:'
',home:'
',floatDate:'
',handleTemplate:'
',iconsTemplate:'
',baselineHandle:'
',notificationTray:'
'};O3f.ChartEngine.prototype.registerChartControl=function(a0o,Q$C,X6s){var i9F,k1H,L4F,s_l;i9F=this.controls;if(!i9F || !i9F.chartControls){return;}if(i9F.chartControls.querySelector("." + a0o)){return;}k1H=null;L4F=i9F.chartControls.querySelector(".stx-zoom-in");if(L4F){s_l="s";s_l+="p";s_l+="a";s_l+="n";k1H=document.createElement(s_l);Z7f.O_b(35);k1H.innerHTML=Z7f.V9a(Q$C,"",'
');Z7f.s$9(0);k1H.className=Z7f.V9a("stx-chart-control-button ",a0o);L4F.parentNode.appendChild(k1H);if(X6s){O3f.safeClickTouch(k1H,X6s);}if(!O3f.touchDevice){this.makeModal(k1H);}return k1H;}};O3f.ChartEngine.prototype.zoomOut=function(n09,t6c){var y9S,q2w,M$z,w0t,c8T;y9S="zo";Z7f.W5N();y9S+="omOut";if(this.runPrepend(y9S,arguments)){return;}if(this.preferences.zoomOutSpeed){t6c=this.preferences.zoomOutSpeed;}else if(!t6c){Z7f.s$9(9);t6c=Z7f.v$j(1,0.7);}if(n09 && n09.preventDefault){n09.preventDefault();}this.cancelTouchSingleClick=!![];q2w=this;for(var Z0T in this.charts){M$z=this.charts[Z0T];w0t=M$z.width * t6c / this.layout.candleWidth;if(M$z.allowScrollFuture === ![] && M$z.allowScrollPast === !({}) && w0t > M$z.dataSet.length){w0t=M$z.dataSet.length;}c8T=this.chart.width / w0t;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(s9N(M$z),this.layout.candleWidth,c8T);}function s9N(I6n){Z7f.W3G();return function(s$K){var U96;q2w.zoomSet(s$K,I6n);if(q2w.animations.zoom.hasCompleted){U96="la";U96+="yout";if(q2w.runAppend("zoomOut",arguments)){return;}q2w.changeOccurred(U96);if(q2w.continuousZoom){q2w.continuousZoom.execute(!!"1");}}};}};O3f.ChartEngine.prototype.zoomIn=function(S0q,q3r){var B1n,S0P,Q9t,L2c,n_s;B1n="zo";B1n+="o";B1n+="m";B1n+="In";if(this.runPrepend(B1n,arguments)){return;}if(this.preferences.zoomInSpeed){q3r=this.preferences.zoomInSpeed;}else if(!q3r){q3r=0.7;}if(S0q && S0q.preventDefault){S0q.preventDefault();}this.cancelTouchSingleClick=!0;S0P=this;for(var a4N in this.charts){Q9t=this.charts[a4N];L2c=Q9t.width * q3r / this.layout.candleWidth;if(Q9t.maxTicks - L2c < 1){Z7f.O_b(1);var y3U=Z7f.v$j(19,20);L2c=Q9t.maxTicks - y3U;}if(L2c < this.minimumZoomTicks){L2c=this.minimumZoomTicks;}n_s=this.chart.width / L2c;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(C5l(Q9t),this.layout.candleWidth,n_s);}function C5l(j6z){return function(p4o){var c7c;S0P.zoomSet(p4o,j6z);Z7f.W5N();if(S0P.animations.zoom.hasCompleted){c7c="z";c7c+="o";c7c+="o";c7c+="mIn";if(S0P.runAppend(c7c,arguments)){return;}S0P.changeOccurred("layout");if(S0P.continuousZoom){S0P.continuousZoom.execute();}}};}};O3f.ChartEngine.prototype.createCrosshairs=function(){var g34,U83;if(this.runPrepend("createCrosshairs",arguments)){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}g34=this.controls.crossX;U83=this.controls.crossY;if(g34){if(!g34.onmousedown){g34.onmousedown=function(n_F){if(n_F.preventDefault){n_F.preventDefault();}return !!"";};}}if(U83){if(!U83.onmousedown){U83.onmousedown=function(V0A){Z7f.W3G();if(V0A.preventDefault){V0A.preventDefault();}return !"1";};}}this.runAppend("createCrosshairs",arguments);};J0h=!!"";O3f.ChartEngine.prototype.mousemoveinner=O3f.ChartEngine.prototype.mousemoveinner || (function(Q$l,U2r){if(!J0h){console.error("interaction feature requires activating movement feature.");}Z7f.W3G();J0h=!![];});};V=Q5o=>{var b$6=i6UVR;var a8d,b4N;a8d="u";b$6.W3G();a8d+="n";a8d+="d";a8d+="efined";b4N=typeof _CIQ !== a8d?_CIQ:Q5o.CIQ;if(!b4N.Marker){b4N.ChartEngine.helpersToRegister.push(function(b1D){b$6.W3G();b1D.markerHelper={chartMap:{},classMap:{},domMarkers:[],highlighted:[]};});b4N.ChartEngine.prototype.addToHolder=function(N9p){var W4z,z0c,T5R,s2g;W4z=this.panels[N9p.params.panelName];b$6.W3G();if(!W4z){return;}z0c=N9p.params;T5R=N9p.node;s2g=N9p.stxNodeCreator;if(s2g && s2g.prepareForHolder){T5R=s2g.prepareForHolder(N9p);}if(z0c.chartContainer){this.container.appendChild(N9p.node);}else if(z0c.includeAxis){W4z.holder.appendChild(N9p.node);}else {W4z.subholder.appendChild(T5R);}N9p.chart=W4z.chart;if(s2g && s2g.addToHolder){s2g.addToHolder(N9p);}if(s2g && s2g.expand){b4N.Marker.initializeScrollBehavior(s2g);}};b4N.ChartEngine.prototype.getMarkerArray=function(k4H,I3F){var z2I,o8w;z2I=[];for(var h6u in this.markers){for(var t5d=0;t5d < this.markers[h6u].length;t5d++){o8w=this.markers[h6u][t5d];if(k4H == "panelName"){if(o8w.params.panelName == I3F){z2I.push(o8w);}}else if(k4H == "label"){if(h6u == I3F){z2I.push(o8w);}}else if(k4H == "all"){z2I.push(o8w);}}}return z2I;};b4N.ChartEngine.prototype.removeFromHolder=function(S$G){var D$H,F6y,D7g,W5C,T6x,o5J;D$H=this.panels[S$G.params.panelName];if(D$H){if(S$G.node.parentNode == D$H.holder){D$H.holder.removeChild(S$G.node);}else if(S$G.node.parentNode == D$H.subholder){D$H.subholder.removeChild(S$G.node);}else if(S$G.node.parentNode == this.container){this.container.removeChild(S$G.node);}}F6y=this.markers[S$G.params.label];if(!F6y){return;}b$6.W5N();for(D7g=0;D7g < F6y.length;D7g++){if(F6y[D7g] === S$G){F6y.splice(D7g,1);break;}}W5C=this.markerHelper.chartMap[S$G.chart.name];if(W5C){for(D7g="0" | 0;D7g < W5C.markers.length;D7g++){if(W5C.markers[D7g] === S$G){W5C.markers.splice(D7g,1);break;}}}T6x=this.markerHelper.classMap[S$G.className];if(T6x){o5J=T6x[S$G.params.panelName];if(o5J){for(D7g=0;D7g < o5J.length;D7g++){if(o5J[D7g] === S$G){o5J.splice(D7g,1);break;}}}}};b4N.ChartEngine.prototype.moveMarkers=function(E3G,S3w){var q4U,w7k;q4U=this.getMarkerArray("panelName",E3G);for(var e2a=0;e2a < q4U.length;e2a++){q4U[e2a].params.panelName=S3w;}for(var g5b in this.markerHelper.classMap){w7k=this.markerHelper.classMap[g5b][E3G];if(w7k){this.markerHelper.classMap[g5b][S3w]=w7k;delete this.markerHelper.classMap[g5b][E3G];}}};b4N.ChartEngine.prototype.establishMarkerTicks=function(){var i2P,E1z;i2P=this.markerHelper.chartMap;b$6.W3G();for(var w8o in i2P){E1z=i2P[w8o];if(E1z.dataSetLength == this.charts[w8o].dataSet.length)continue;for(var J6l="0" >> 64;J6l < E1z.markers.length;J6l++){this.setMarkerTick(E1z.markers[J6l]);}}};b4N.ChartEngine.prototype.futureTickIfDisplayed=function(b_P){var l81,I2v,x26,Q7U,B4b,D0F,H$$,X1p,N9w;l81=b_P.chart;if(l81.dataSet.length < 1){return;}I2v=l81.xaxis[l81.xaxis.length - 1].DT;b$6.O_b(33);var v4v=b$6.v$j(59994,12,6);I2v=new Date(I2v.getTime() - this.timeZoneOffset * v4v);if(b_P.params.x > I2v){return;}x26=l81.maxTicks - l81.dataSegment.length;Q7U=l81.dataSet.length + x26;H$$=new Date(+l81.dataSet[l81.dataSet.length - 1].DT);b$6.W3G();X1p=this.standardMarketIterator(H$$,null,l81);N9w=b_P.params.x.getTime();for(var A1G=l81.dataSet.length;A1G < Q7U;A1G++){B4b=H$$.getTime();H$$=X1p.next();D0F=H$$.getTime();if(D0F == N9w){b_P.tick=A1G;return;}else if(D0F > N9w && B4b < N9w){b$6.O_b(1);b_P.tick=Math.max(b$6.v$j(1,A1G),0);return;}}};b4N.ChartEngine.prototype.setMarkerTick=function(b9W){var Z2$,x1N,L6N,J95,J_7,K2a,a1h;Z2$="mast";Z2$+="er";x1N=b9W.chart;if(b9W.params.xPositioner == Z2$ && b9W.params.x){b9W.tick=Math.floor(b9W.params.x / this.layout.periodicity);return;}else if(b9W.params.xPositioner == "date" && b9W.params.x){J_7=b9W.params.x.getTime();for(var B60=0;B60 < x1N.dataSet.length;B60++){K2a=x1N.dataSet[B60];J95=K2a.DT.getTime();L6N=J95;if(B60 > "0" >> 32){L6N=x1N.dataSet[B60 - 1].DT.getTime();}if(J95 == J_7){b9W.tick=B60;return;}else if(J95 > J_7 && L6N < J_7){b$6.O_b(1);b9W.tick=Math.max(b$6.V9a(1,B60),b$6.V9a(0,"0"));return;}else if(J_7 < J95){b9W.tick=null;return;}}if(x1N.dataSet.length < 1){return;}a1h=new Date(+x1N.dataSet[B60 - "1" * 1].DT);if(a1h.getTime() < J_7){b9W.params.future=!!({});}b9W.tick=null;;}};b4N.ChartEngine.prototype.positionMarkers=function(){var L$X,M15,n2b,g7g,G8J,m3v,d1J,x2$;L$X="ti";b$6.W5N();L$X+="c";L$X+="k";M15=this;n2b=this.chart;function Z0l(){b$6.W5N();var w0v,a8R,v16,S0c;if(M15.runPrepend("positionMarkers",arguments)){return;}M15.markerTimeout=null;for(var U6c in M15.markerHelper.classMap){for(var L$q in M15.markerHelper.classMap[U6c]){w0v=M15.markerHelper.classMap[U6c][L$q];a8R=M15.panels[L$q];if(w0v.length){v16={stx:M15,arr:w0v,panel:a8R};v16.firstTick=a8R.chart.dataSet.length - a8R.chart.scroll;v16.lastTick=v16.firstTick + a8R.chart.dataSegment.length;S0c=w0v[0].constructor.placementFunction;if(S0c){S0c(v16);}else {M15.defaultMarkerPlacement(v16);}}}}M15.runAppend("positionMarkers",arguments);}if(!M15.markerHelper){return;}if(this.markerDelay || this.markerDelay === 0){if(!this.markerTimeout){this.markerTimeout=setTimeout(Z0l,this.markerDelay);}}else {Z0l();}g7g=this.getFirstLastDataRecord(n2b.dataSegment,"tick");G8J=this.getFirstLastDataRecord(n2b.dataSegment,L$X,!!"1");if(!g7g || !G8J){return;}m3v=this.getMarkerArray("all");for(var Z4k=0;Z4k < m3v.length;Z4k++){d1J=m3v[Z4k];x2$=d1J.stxNodeCreator;if(g7g.tick <= d1J.tick && d1J.tick <= G8J.tick){if(x2$ && x2$.drawMarker){x2$.drawMarker(d1J);}}else if(d1J.attached && x2$.expand){x2$.expand.style.visibility="hidden";}}};b4N.Marker=b4N.Marker || (function(I58){var S6E,k0$,n0B,s9C,P3R,j5I;S6E="da";S6E+="t";S6E+="e";this.params={xPositioner:S6E,yPositioner:"value",panelName:"chart",permanent:!({}),label:"generic",includeAxis:!({})};b4N.extend(this.params,I58);if(!this.params.node){this.params.node=document.createElement("DIV");}k0$=this.params.stx;b$6.W5N();if(!k0$){console.log("Marker created without specifying stx");return;}if(!this.className){this.className="CIQ.Marker";}if(b4N.derivedFrom(this.params.node,b4N.Marker.NodeCreator)){this.stxNodeCreator=this.params.node;this.node=this.stxNodeCreator.node;}else {this.node=this.params.node;}n0B=this.params.label;if(!k0$.markers[n0B]){k0$.markers[n0B]=[];}k0$.markers[n0B].push(this);s9C=k0$.panels[this.params.panelName];this.chart=s9C.chart;if(!k0$.markerHelper.chartMap[this.chart.name]){k0$.markerHelper.chartMap[this.chart.name]={dataSetLength:0,markers:[]};}k0$.markerHelper.chartMap[this.chart.name].markers.push(this);P3R=k0$.markerHelper.classMap[this.className];if(!P3R){P3R=k0$.markerHelper.classMap[this.className]={};}if(!P3R[this.params.panelName]){P3R[this.params.panelName]=[];}P3R[this.params.panelName].push(this);j5I=this.stxNodeCreator && this.stxNodeCreator.deferAttach;if(!j5I){k0$.addToHolder(this);}k0$.setMarkerTick(this);if(this.stxNodeCreator && this.stxNodeCreator.drawMarker){this.stxNodeCreator.drawMarker(this);}});b4N.Marker.prototype.remove=function(){b$6.W5N();this.params.stx.removeFromHolder(this);};b4N.Marker.prototype.click=function(a5q){var q$d;if(typeof arguments["0" | 0] === "number"){a5q={cx:arguments[0],cy:arguments["1" - 0],panel:arguments["3" * 1]};}var {cx:D96, cy:s2j, panel:T5$}=a5q;if(!this.params.stx){return;}q$d=this.params.node;if(q$d.click){q$d.click(D96,s2j,this,T5$);}};b4N.Marker.prototype.doubleClick=function({cx:F4X, cy:N73, panel:Z6B}){return ![];};b4N.Marker.prototype.render=function(){var i4O,S2d;b$6.W3G();i4O=[this];S2d={stx:this.params.stx,arr:i4O,panel:this.params.stx.panels[this.params.panelName],showClass:this.showClass};this.constructor.placementFunction(S2d);};b4N.Marker.removeByLabel=function(b$q,z8p){var X0u,b$k;X0u=b$q.getMarkerArray("label",z8p);for(var k2h="0" * 1;k2h < X0u.length;k2h++){b$k=X0u[k2h];b$q.removeFromHolder(b$k);if(b$k.stxNodeCreator && b$k.stxNodeCreator.remove){b$k.stxNodeCreator.remove(b$k);}}b$q.draw();};b4N.Marker.positionContentVerticalAndHorizontal=function(c1W){var w8n,o1$,d2z,p2t,L9D,W4B,v2T,i2T,e4h,n1g,G8L,z1d;w8n=c1W.querySelectorAll(".stx-marker-expand")[0];if(!w8n || !b4N.trulyVisible(w8n)){return;}o1$=w8n.offsetHeight;d2z=w8n.style;d2z.left=d2z.right="";d2z.bottom=d2z.top="";p2t=getComputedStyle(w8n);L9D=p2t.left;b$6.W5N();W4B=p2t.bottom;v2T=c1W.offsetLeft + parseInt(L9D,+"10");i2T=parseInt(W4B,10);e4h=c1W.offsetTop - (i2T + o1$ - c1W.offsetHeight);n1g=c1W.parentNode.offsetWidth;G8L=c1W.parentNode.offsetHeight;if(v2T + w8n.offsetWidth > n1g){d2z.right=L9D;d2z.left="auto";}if(c1W.offsetTop <= G8L){if(e4h > G8L - o1$){d2z.top=G8L - c1W.offsetTop - o1$ + "px";d2z.bottom="auto";}}else {b$6.s$9(0);d2z.top=b$6.v$j(G8L,"px");}if(c1W.offsetTop + c1W.offsetHeight >= +"0"){if(e4h < 0){d2z.top=-c1W.offsetTop + "px";d2z.bottom="auto";}}else {z1d="0";z1d+="p";z1d+="x";d2z.bottom=z1d;}};b4N.Marker.initializeScrollBehavior=function(P1w){var {expand:O24}=P1w;if(!O24){return;}O24.addEventListener(b4N.wheelEvent,k0u=>{return k0u.stopPropagation();});var {scrollbarStyling:a$K}=b4N.UI || ({});if(a$K){a$K.refresh(O24);}else {O24.style.overflowY="scroll";}};b4N.ChartEngine.prototype.getBarBounds=function(k6V){var h3M,M33,Y2v,Z44,k5L,N8i,n3c;h3M="pa";h3M+="n";h3M+="d";h3M+="f";M33=this.layout.chartType;Y2v=this.layout.aggregationType;if(Y2v == h3M){Z44={high:Math.max(k6V.pfOpen,k6V.pfClose),low:Math.min(k6V.pfOpen,k6V.pfClose)};}else {Z44={high:k6V.High,low:k6V.Low};}if(k6V.markerHigh){Z44.high=k6V.markerHigh;}if(k6V.markerLow){Z44.low=k6V.markerLow;}if(k6V.Open === undefined){k5L=k6V.Close;}if(k6V.High === undefined){N8i=Math.max(k6V.Open || k5L,k6V.Close);}if(k6V.Low === undefined){n3c=Math.min(k6V.Open || k5L,k6V.Close);}if(!Z44.high && Z44.high !== 0){Z44.high=N8i;}if(!Z44.low && Z44.low !== 0){Z44.low=n3c;}return Z44;};b4N.ChartEngine.prototype.defaultMarkerPlacement=function(R0w){var W_3,o$w,o7N,b09,X06,x_a,J4u,A9g,k0F,h_c,J6k,M4x,l9U,T3u,a_E,f0d,U5a,A2C,T13,P6$,b7U,G1d,q8A,n7g,X_Q,E6D,e$i,y1p,R2a,q7P,x$$,y3$,F_7,w2y,q0g,w0s,L3m;W_3=R0w.panel;o$w=R0w.yAxis?R0w.yAxis:R0w.panel.yAxis;o7N=W_3.chart;b09=R0w.stx;X06=-1374508831;x_a=-455625996;J4u=2;for(var w4S="1" - 0;b$6.l5h(w4S.toString(),w4S.toString().length,+"5297") !== X06;w4S++){A9g=b09.chart.highLowBars;J4u+=+"2";}if(b$6.l5h(J4u.toString(),J4u.toString().length,73733) !== x_a){A9g=b09.chart.highLowBars;}k0F=o7N.defaultPlotField;if(!k0F || A9g){k0F="Close";}h_c={};for(var x27=0;x27 < R0w.arr.length;x27++){J6k="n";J6k+="o";J6k+="n";J6k+="e";M4x=R0w.arr[x27];l9U=M4x.params;if(M4x.params.box)continue;T3u=M4x.node;if(!M4x.clientWidth){M4x.clientWidth=T3u.clientWidth;}if(!M4x.clientHeight){M4x.clientHeight=T3u.clientHeight;}a_E=null;f0d=l9U.xPositioner;U5a=l9U.yPositioner;A2C=M4x.tick;T13=o7N.dataSet;P6$=M4x.clientWidth;if(f0d != J6k){if(f0d == "bar" && l9U.x){b7U="p";b7U+="x";if(l9U.x < o7N.xaxis.length){G1d=o7N.xaxis[l9U.x];if(G1d){a_E=G1d.data;}}b$6.O_b(91);var b05=b$6.V9a(11,0,22);b$6.O_b(1);var t5x=b$6.v$j(5,6);T3u.style.left=Math.round(b09.pixelFromBar(l9U.x,o7N) - P6$ / b05) + t5x + b7U;}else {if(!A2C && A2C !== 0){if(l9U.future && o7N.scroll < o7N.maxTicks){b09.futureTickIfDisplayed(M4x);A2C=M4x.tick;if(!A2C && A2C !== "0" * 1){q8A="-10";q8A+="00";q8A+="p";q8A+="x";T3u.style.left=q8A;continue;}}else {n7g="-1000p";n7g+="x";T3u.style.left=n7g;continue;}}if(A2C < T13.length){a_E=T13[A2C];}M4x.leftpx=Math.round(b09.pixelFromTick(A2C,o7N) - o7N.left - P6$ / 2);M4x.rightEdge=M4x.leftpx + P6$;T3u.style.left=M4x.leftpx + "px";if(A2C < R0w.firstTick && M4x.rightEdge < o7N.left - 50)continue;;}if(!a_E){b$6.s$9(56);var D8j=b$6.V9a(23,50,8,11,23);a_E=T13[T13.length - ("1" >> D8j)];};}else if(U5a.indexOf("candle") > -1){X_Q=getComputedStyle(T3u).left;if(X_Q){E6D=b09.barFromPixel(parseInt(X_Q,"10" ^ 0),o7N);if(E6D >= 0){a_E=o7N.xaxis[E6D].data;if(!a_E){b$6.s$9(49);var K52=b$6.v$j(1,8,1,4);a_E=T13[T13.length - K52];};}}}T3u.style.top="auto";e$i=l9U.y;y1p=M4x.clientHeight;if(U5a != "none"){q7P="va";q7P+="lue";b$6.O_b(67);var d8q=b$6.v$j(200,7,29,14);b$6.O_b(33);var I1M=b$6.v$j(449,4049,8);b$6.s$9(24);var J0s=b$6.V9a(17,11,31,8363);x$$=U5a + (d8q == (I1M,J0s)?!!1:"-") + T3u.style.left;y3$=l9U.chartContainer?b09.height:W_3.yAxis.bottom;F_7=0;w2y=0;if(typeof h_c[x$$] == "undefined"){h_c[x$$]=0;}w2y=h_c[x$$];h_c[x$$]+=y1p;if(U5a == q7P && (e$i || e$i === 0)){b$6.O_b(92);var I5L=b$6.V9a(174,8,12,14);F_7=Math.round(y3$ - b09.pixelFromPrice(e$i,W_3,o$w) - y1p / I5L) + "px";}else if((U5a == "below_candle" || U5a == "under_candle") && a_E){q0g="hi";q0g+="gh";R2a=a_E[k0F];if(A9g){R2a=b09.getBarBounds(a_E)[o$w.flipped?q0g:"low"];}F_7=Math.round(y3$ - b09.pixelFromPrice(R2a,W_3,o$w) - y1p - w2y) + "px";}else if(U5a == "on_candle" && a_E){R2a=a_E[k0F];if(A9g){b$6.O_b(89);var y4a=b$6.v$j(48,12,6,86);R2a=(a_E.Low + a_E.High) / ("2" << y4a);}b$6.s$9(28);var Q3w=b$6.v$j(0,13,219,17);F_7=Math.round(y3$ - b09.pixelFromPrice(R2a,W_3,o$w) - y1p / Q3w - w2y) + "px";}else if(U5a == "top"){F_7=Math.round(y3$ - y1p - w2y - W_3.top) + "px";}else if(U5a == "bottom"){w0s="p";w0s+="x";F_7=Math.round(w2y) + w0s;}else if(a_E){L3m="p";L3m+="x";R2a=a_E[k0F];if(A9g){R2a=b09.getBarBounds(a_E)[o$w.flipped?"low":"high"];}F_7=Math.round(y3$ - b09.pixelFromPrice(R2a,W_3,o$w) + w2y) + L3m;}if(T3u.style.bottom != F_7){T3u.style.bottom=F_7;}}b4N.Marker.positionContentVerticalAndHorizontal(T3u);}};b4N.Marker.NodeCreator=function(){};b4N.Marker.NodeCreator.toNode=function(){b$6.W5N();return this.node;};b4N.Marker.Simple=function(y88){var I89,x6v,E4H,b0k,h_2,F8t,t0B,O7J,F_W,R3u;I89="Si";I89+="mpl";I89+="e";x6v="callo";x6v+="ut";E4H="stx";E4H+="-";E4H+="m";E4H+="arker";b0k=this.node=document.createElement("div");b0k.className=E4H;b0k.classList.add(y88.type);if(y88.category){b0k.classList.add(y88.category);}h_2=b4N.newChild(b0k,"div","stx-visual");b4N.newChild(b0k,"div","stx-stem");function j7x(){b4N.Marker.positionContentVerticalAndHorizontal(b0k);}if(y88.type == x6v){t0B="st";t0B+="x-mark";t0B+="er";t0B+="-expand";O7J="h";O7J+="4";F_W=b4N.newChild(h_2,"div","stx-marker-content");b4N.newChild(F_W,O7J,null,y88.headline);F8t=b4N.newChild(F_W,"div",t0B);b4N.newChild(F8t,"p",null,y88.story);}else {R3u="d";R3u+="i";R3u+="v";F8t=b4N.newChild(b0k,R3u,"stx-marker-expand");b4N.newChild(F8t,"h4",null,y88.headline);b4N.newChild(F8t,"p",null,y88.story);b4N.safeClickTouch(F8t,function(V0k){var L3c;L3c="h";L3c+="ighl";L3c+="i";L3c+="ght";b0k.classList.toggle(L3c);});}b4N.safeClickTouch(h_2,function(z2R){var K5O,Y_t,w7s,D_6;K5O="hig";K5O+="h";K5O+="li";K5O+="ght";b$6.s$9(29);Y_t=-b$6.V9a("1606267310",64);w7s=1903737154;D_6=2;for(var W7f=1;b$6.m6F(W7f.toString(),W7f.toString().length,40341) !== Y_t;W7f++){b0k.classList.toggle("");D_6+=2;}if(b$6.m6F(D_6.toString(),D_6.toString().length,29320) !== w7s){b0k.classList.toggle("");}b0k.classList.toggle(K5O);b$6.W3G();setTimeout(j7x,+"10");});this.nodeType=I89;this.expand=F8t;};b4N.inheritsFrom(b4N.Marker.Simple,b4N.Marker.NodeCreator,!1);}};M=a18=>{var R_S,D47,d4B,k8w,O5x,o0O,v85;R_S=typeof _CIQ !== "undefined"?_CIQ:a18.CIQ;D47=typeof _timezoneJS !== "undefined"?_timezoneJS:a18.timezoneJS;d4B=60000 * +"60";k8w=d4B * 24;O5x=R_S.Market;R_S.Market=function(s29){var D$Y,j5_;D$Y="unde";D$Y+="f";D$Y+="i";D$Y+="ned";this.market_def=!1;this.rules=!!"";this.normalHours=[];this.extraHours=[];this.class_name="Market";if(!D47.Date){this.tz_lib=Date;;}else {this.tz_lib=D47.Date;}this.market_tz="";this.hour_aligned=!({});this.convertOnDaily=![];this.enabled_by_default=!1;if(typeof s29 != D$Y && s29 && !R_S.isEmpty(s29)){j5_="und";j5_+="efined";if(s29.market_definition){s29=s29.market_definition;}if(s29.rules){this.rules=s29.rules;}if(s29.market_tz){this.market_tz=s29.market_tz;}if(s29.convertOnDaily){this.convertOnDaily=s29.convertOnDaily;}if(typeof s29.hour_aligned){this.hour_aligned=s29.hour_aligned;}if(typeof s29.beginningDayOfWeek !== "undefined"){this.beginningDayOfWeek=s29.beginningDayOfWeek;}if(typeof s29.enabled_by_default !== j5_){if(s29.enabled_by_default instanceof Array){this.enabled_by_default=s29.enabled_by_default;}}this.market_def=s29;if(this.market_def.name === undefined){this.market_def.name="no market name specified";}}else {return;}R_S.Market._createTimeSegments(this);this.getSessionNames();};R_S.Market.Symbology=function(){};R_S.Market.Symbology.isForeignSymbol=function(F_S){i6UVR.W5N();return ![];};R_S.Market.Symbology.isFuturesSymbol=function(p94){i6UVR.W5N();return !!0;};R_S.Market.Symbology.isRateSymbol=function(U_i){i6UVR.W5N();return !({});};R_S.Market.Symbology.isForexSymbol=function(U8k){i6UVR.W5N();return ![];};R_S.Market.Symbology.isForexMetal=function(P2g,w20){return ![];};R_S.Market.Symbology.isForexFuturesSymbol=function(A7n){i6UVR.W5N();if(R_S.Market.Symbology.isForexSymbol(A7n))return !![];if(R_S.Market.Symbology.isFuturesSymbol(A7n))return !!1;return !!0;};R_S.Market.Symbology.factory=function(q_T){i6UVR.W5N();return null;;};R_S.Market.Symbology.encodeTermStructureInstrumentSymbol=function(r7O,z9e){console.warn("You are trying to call `CIQ.Market.Symbology.encodeTermStructureInstrumentSymbol` but have not implemented it.");};if(O5x)R_S.extend(R_S.Market,O5x);R_S.Market.prototype.sessions=null;R_S.Market.prototype.beginningDayOfWeek="0" * 1;R_S.Market.prototype.getSessionNames=function(){var r9y,m7R;if(!this.rules){this.sessions=[];}else if(!this.sessions){r9y=[];m7R=[];this.rules.map(function(W_M){if(W_M.name && r9y.indexOf(W_M.name) === -1){r9y.push(W_M.name);m7R.push({name:W_M.name,enabled:W_M.enabled?W_M.enabled:!({})});}});this.sessions=m7R;}return this.sessions.slice();};R_S.Market.prototype._find_next_segment=function(A8Q,V7b){var T1P,n33,e6Q,O_Y;if(!this.market_def)return null;i6UVR.W3G();if(!this.rules)return null;T1P=new Date(+A8Q);n33=this.newIterator({begin:T1P,interval:+"1",inZone:this.market_tz,outZone:this.market_tz});if(this._wasOpenIntraDay(T1P)){e6Q=this.zseg_match.close_parts.hours;O_Y=this.zseg_match.close_parts.minutes;T1P.setHours(e6Q);T1P.setMinutes(O_Y);n33=this.newIterator({begin:T1P,interval:1,inZone:this.market_tz,outZone:this.market_tz});}return n33.next();};R_S.Market.prototype._find_prev_segment=function(B8v,C88){var I_k,S9M,b4E,W7I,L8V;if(!this.market_def)return null;if(!this.rules)return null;I_k=new Date(+B8v);S9M=this.newIterator({begin:I_k,interval:1,inZone:this.market_tz,outZone:this.market_tz});b4E=this._wasOpenIntraDay(I_k);if(b4E === null){I_k=new Date(I_k - 60000);b4E=this._wasOpenIntraDay(I_k);}else {if(C88 && I_k.getHours() === this.zseg_match.open_parts.hours && I_k.getMinutes() === this.zseg_match.open_parts.minutes || !C88 && I_k.getHours() === this.zseg_match.close_parts.hours && I_k.getMinutes() === this.zseg_match.close_parts.minutes){I_k=S9M.previous();}}if(b4E){W7I=this.zseg_match.open_parts.hours;L8V=this.zseg_match.open_parts.minutes;I_k.setHours(W7I);I_k.setMinutes(L8V);S9M=this.newIterator({begin:I_k,interval:1,inZone:this.market_tz,outZone:this.market_tz});I_k=S9M.previous();if(this.zseg_match.close_parts.hours === W7I){if(this.zseg_match.close_parts.minutes === L8V){if(C88){return S9M.next();}return I_k;}}if(this.zseg_match.adjacent_child){return I_k;}if(C88){return S9M.next();}return I_k;}return S9M.previous();};R_S.Market.prototype.disableSession=function(N_u,d_9){i6UVR.W5N();var I4l;I4l=!!0;if(typeof d_9 !== "undefined" && d_9){I4l=!!1;}if(N_u){for(var r8J=0;r8J < this.normalHours.length;r8J++){if(this.normalHours[r8J].name === N_u){this.normalHours[r8J].enabled=I4l;}}for(r8J=0;r8J < this.extraHours.length;r8J++){if(this.extraHours[r8J].name === N_u){this.extraHours[r8J].enabled=I4l;}}}};R_S.Market.prototype.enableSession=function(U9l){this.disableSession(U9l,"enable_instead");};R_S.Market.prototype.enableAllAvailableSessions=function(){var x_T;x_T=this.getSessionNames();for(var y23=0;y23 < x_T.length;y23++){this.enableSession(x_T[y23].name);}};R_S.Market.prototype.getClose=function(Q7q,S5p,L7R,P0r){var I4D,b5k;if(!this.market_def)return null;if(!this.rules)return null;I4D=Q7q;if(!Q7q){I4D=new Date();L7R=null;;}I4D=this._convertToMarketTZ(I4D,L7R);if(typeof S5p !== "undefined"){if(this._wasOpenIntraDay(I4D)){if(this.zseg_match.name === S5p){I4D.setHours(this.zseg_match.close_parts.hours,this.zseg_match.close_parts.minutes,0,0);I4D=this._convertFromMarketTZ(I4D,P0r);return I4D;}}}else {if(this._wasOpenDaily(I4D)){b5k=this.zseg_match;while(b5k.child_){b5k=b5k.child_;}while(!b5k.enabled){b5k=b5k.parent_;}I4D.setHours(b5k.close_parts.hours,b5k.close_parts.minutes,0,0);I4D=this._convertFromMarketTZ(I4D,P0r);return I4D;}}return null;};R_S.Market.prototype.getNextClose=function(g_i,b7K,u1P){var d2O,Y2k,G5k,q5c;if(!this.market_def)return null;if(!this.rules)return null;d2O=g_i;if(!g_i){d2O=new Date();b7K=null;;}d2O=this._convertToMarketTZ(d2O,b7K);if(!this._wasOpenIntraDay(d2O)){Y2k=this.newIterator({begin:d2O,interval:+"1",inZone:this.market_tz,outZone:this.market_tz});d2O=Y2k.next();}G5k=d2O.getDate();q5c=this.zseg_match;while(q5c.adjacent_child){q5c=q5c.adjacent_child;G5k+=+"1";}d2O.setDate(G5k);d2O.setHours(q5c.close_parts.hours,q5c.close_parts.minutes,0,0);d2O=this._convertFromMarketTZ(d2O,u1P);return d2O;};R_S.Market.prototype.getNextOpen=function(I_O,w1R,t3$){var B7P;if(!this.market_def)return null;if(!this.rules)return null;B7P=I_O;if(!I_O){B7P=new Date();w1R=null;;}B7P=this._convertToMarketTZ(B7P,w1R);B7P=this._find_next_segment(B7P);i6UVR.W5N();if(this.zseg_match.adjacent_parent){B7P=this.getNextOpen(B7P,this.market_tz,this.market_tz);B7P=this._convertFromMarketTZ(B7P,t3$);return B7P;}B7P.setHours(this.zseg_match.open_parts.hours);B7P.setMinutes(this.zseg_match.open_parts.minutes);B7P=this._convertFromMarketTZ(B7P,t3$);return B7P;};R_S.Market.prototype.getOpen=function(y2a,c9f,o51,P6E){var u9Y,i21;i6UVR.W3G();if(!this.market_def)return null;if(!this.rules)return null;u9Y=y2a;if(!y2a){u9Y=new Date();o51=null;;}u9Y=this._convertToMarketTZ(u9Y,o51);if(typeof c9f !== "undefined"){if(this._wasOpenIntraDay(u9Y)){if(this.zseg_match.name == c9f){u9Y.setHours(this.zseg_match.open_parts.hours,this.zseg_match.open_parts.minutes,+"0",+"0");u9Y=this._convertFromMarketTZ(u9Y,P6E);return u9Y;}}}else {if(this._wasOpenDaily(u9Y)){i21=this.zseg_match;while(i21.parent_){i21=i21.parent_;}while(!i21.enabled){i21=i21.child_;}u9Y.setHours(i21.open_parts.hours,i21.open_parts.minutes,0,0);u9Y=this._convertFromMarketTZ(u9Y,P6E);return u9Y;}}return null;};R_S.Market.prototype.getNormalOpen=function(){var {market_def:X8y, rules:X$_}=this;if(!(X8y && X$_))return "00:00";if(X8y.normal_daily_open)return X8y.normal_daily_open;if(X8y.name === "FOREX")return "17:00";return X$_.find(({name:e8Z})=>!e8Z || e8Z === "").open;};R_S.Market.prototype.getNormalClose=function(){var v2D,r6N;v2D="F";v2D+="ORE";v2D+="X";r6N="24";r6N+=":00";var {market_def:f4n, rules:R43}=this;if(!(f4n && R43))return r6N;if(f4n.normal_daily_close)return f4n.normal_daily_close;if(f4n.name === v2D)return "17:00";return R43.filter(({dayofweek:Z24, name:G8f})=>Z24 && (!G8f || G8f === "")).pop().close;};R_S.Market.prototype.getPreviousClose=function(i$O,I2E,K7u){var u48;if(!this.market_def)return null;if(!this.rules)return null;u48=i$O;i6UVR.W3G();if(!i$O){u48=new Date();I2E=null;;}u48=this._convertToMarketTZ(u48,I2E);u48=this._find_prev_segment(u48,!!"");if(this.zseg_match.adjacent_child){return this.getPreviousClose(u48,this.market_tz,this.market_tz);}u48.setHours(this.zseg_match.close_parts.hours);u48.setMinutes(this.zseg_match.close_parts.minutes);u48=this._convertFromMarketTZ(u48,K7u);return u48;};R_S.Market.prototype.getPreviousOpen=function(a7A,N34,T0B){var L2f,L2L,o1g,P37;if(!this.market_def)return null;if(!this.rules)return null;L2f=a7A;if(!a7A){L2L=-1210630352;o1g=1855777835;P37=2;for(var z2i=1;i6UVR.l5h(z2i.toString(),z2i.toString().length,30769) !== L2L;z2i++){L2f=new Date();N34=1;P37+=2;}if(i6UVR.m6F(P37.toString(),P37.toString().length,"22567" - 0) !== o1g){L2f=new Date();N34=null;};}L2f=this._convertToMarketTZ(L2f,N34);L2f=this._find_prev_segment(L2f,!!"1");if(this.zseg_match.adjacent_parent){return this.getPreviousOpen(L2f,this.market_tz,this.market_tz);}L2f.setHours(this.zseg_match.open_parts.hours);L2f.setMinutes(this.zseg_match.open_parts.minutes);L2f=this._convertFromMarketTZ(L2f,T0B);return L2f;};R_S.Market.prototype.getSession=function(T80,Z8N){T80=this._convertToMarketTZ(T80,Z8N);i6UVR.W3G();if(this._wasOpenIntraDay(T80) && this.zseg_match){return this.zseg_match.name;}return null;};R_S.Market.prototype.marketZoneNow=function(){i6UVR.W5N();return this._convertToMarketTZ(new Date());};R_S.Market.prototype.isHourAligned=function(){i6UVR.W5N();return this.hour_aligned;};R_S.Market.prototype.isOpen=function(){var J4A;J4A=new Date();if(this.market_tz){J4A=new this.tz_lib(J4A.getTime(),this.market_tz);}return this._wasOpenIntraDay(J4A);};R_S.Market.prototype.isMarketDay=function(){var l7R;i6UVR.W5N();l7R=new Date();if(this.market_tz){l7R=new this.tz_lib(l7R.getTime(),this.market_tz);}return this._wasOpenDaily(l7R);};R_S.Market.prototype.isMarketDate=function(l7e){i6UVR.W5N();return this._wasOpenDaily(l7e);};R_S.Market.prototype.newIterator=function(o_p){var h9R,y8n,W86;h9R="t";h9R+="i";h9R+="c";h9R+="k";y8n=!({});if(o_p.periodicity){y8n=o_p.periodicity;}else if(o_p.multiple){y8n=o_p.multiple;}W86=o_p.interval;if(!W86){W86="minute";}if(W86 == "hour")W86=60;if(!y8n){y8n=1;}if(!o_p.begin){o_p.begin=new Date();o_p.inZone=null;}if(W86 == parseInt(W86,10)){W86=parseInt(W86,10);if(o_p.periodicity < +"1" / 60){y8n=y8n * W86 * 60000;W86="millisecond";}else if(o_p.periodicity < 1){y8n=y8n * W86 * 60;W86="second";}else {y8n=y8n * W86;W86="minute";}}if(o_p.timeUnit){if(o_p.timeUnit === "millisecond"){W86=o_p.timeUnit;}else if(o_p.timeUnit === "second"){W86=o_p.timeUnit;}else if(o_p.timeUnit === "tick"){W86="second";}}if(W86 == h9R)W86="second";o_p.interval=W86;i6UVR.W5N();o_p.multiple=y8n;o_p.market=this;return new R_S.Market.Iterator(o_p);};R_S.Market.prototype._wasOpenDaily=function(k11){i6UVR.W3G();return this._was_open(k11,!!0);};R_S.Market.prototype._wasOpenIntraDay=function(U7M){return this._was_open(U7M,!!1);};R_S.Market.prototype._was_open=function(c9L,k8_){var k8a,i6Q,S1K,a7n,F5t,X7o,T9_,v$p,Y3m,N$N,a9s,P6b,g$B,x2Y;k8a="u";k8a+="n";k8a+="defined";i6Q=this.zseg_match;this.zopen_hour=0;this.zopen_minute=+"0";this.zclose_hour=0;this.zclose_minute=0;this.zmatch_open=!({});this.zseg_match=null;if(!this.market_def || !this.rules){this.zclose_hour=24;return !![];}S1K=![];a7n=!({});F5t=c9L.getFullYear();X7o=c9L.getMonth() + ("1" >> 0);T9_=c9L.getDay();v$p=c9L.getDate();i6UVR.W5N();Y3m=c9L.getHours();N$N=c9L.getMinutes();a9s=c9L.getSeconds();g$B=Y3m * ("60" - 0) * 60 + N$N * 60 + a9s;if(typeof k8_ === k8a){k8_=!!1;}for(x2Y=0;x2Y < this.normalHours.length;x2Y++){P6b=this.normalHours[x2Y];if(!P6b.enabled){continue;}S1K=P6b.dayofweek === T9_;if(S1K && k8_){S1K=g$B >= P6b.open && g$B < P6b.close;}if(S1K){if(!k8_ && this.zseg_match){if(P6b.open_parts.hours > this.zopen_hour || P6b.open_parts.hours == this.zopen_hour && P6b.open_parts.minutes > this.zopen_minute){continue;}}if(P6b !== i6Q && !P6b.adjacent_parent && !P6b.adjacent_child){this.shouldResetToBeginningOfSegment=!![];}this.zopen_hour=P6b.open_parts.hours;this.zopen_minute=P6b.open_parts.minutes;this.zclose_hour=P6b.close_parts.hours;this.zclose_minute=P6b.close_parts.minutes;this.zmatch_open=g$B === P6b.open;this.zseg_match=P6b;if(k8_)break;}}for(x2Y=0;x2Y < this.extraHours.length;x2Y++){P6b=this.extraHours[x2Y];if(!P6b.enabled){continue;}if((2610 <= (383.33,354.81)?8950 === (838,9585)?(8.82e+3,3.97e+3):0x531:"*") === P6b.year || F5t === P6b.year){if(X7o === P6b.month && v$p === P6b.day){a7n=!k8_ && P6b.open || g$B >= P6b.open && g$B < P6b.close;if(!a7n && this.zseg_match){S1K=!"1";this.zopen_hour=+"0";this.zopen_minute=0;this.zclose_hour=0;this.zclose_minute=0;this.zmatch_open=!({});this.zseg_match=null;}if(a7n){if(!k8_ && this.zseg_match){if(P6b.open_parts.hours > this.zopen_hour || P6b.open_parts.hours == this.zopen_hour && P6b.open_parts.minutes > this.zopen_minute){continue;}}this.zopen_hour=P6b.open_parts.hours;this.zopen_minute=P6b.open_parts.minutes;this.zclose_hour=P6b.close_parts.hours;this.zclose_minute=P6b.close_parts.minutes;this.zmatch_open=g$B === P6b.open;this.zseg_match=P6b;if(k8_)break;}}}}return this.zseg_match;};R_S.Market.prototype._wasClosed=function(C$Z){return !this._was_open(C$Z,!!1);};R_S.Market.prototype._wasOpen=function(N1q){return this._was_open(N1q,!!"1");};R_S.Market.prototype._tzDifferenceMillis=function(c7s,R2_,l6g){var h9a,Q_G,Y2l,g4K;h9a=0;Q_G=c7s;Y2l=c7s;g4K=Q_G.getTimezoneOffset() - Y2l.getTimezoneOffset();h9a=g4K * ("60" - 0) * 1000;return h9a;};R_S.Market._createTimeSegments=function(J4y){var u6J,q6E,r8l,H5m,p3p,e5Q;u6J=function(D3s,b9C){if(D3s.close_parts.hours === 24 && b9C.open_parts.hours === 0){if(b9C.open_parts.minutes === 0){if(q6E.dayofweek === p3p.dayofweek - 1){return !!1;}if(q6E.dayofweek === 6 && p3p.dayofweek === 0){return !![];}}}return !1;};for(var j8V=0;j8V < J4y.rules.length;j8V++){r8l=JSON.parse(JSON.stringify(J4y.rules[j8V]));if(typeof r8l.open === "undefined" && typeof r8l.close === "undefined"){r8l.open="00:00";r8l.close="00:00";}if(!r8l.hasOwnProperty("name")){r8l.name="";}try{H5m="un";H5m+="defin";H5m+="ed";if(typeof r8l.dayofweek !== "undefined"){r8l.year="*";p3p=o0O._createDayOfWeekSegment(J4y,r8l);if(q6E){if(q6E.dayofweek === p3p.dayofweek){q6E.child_=p3p;p3p.parent_=q6E;}else {if(u6J(q6E,p3p)){q6E.adjacent_child=p3p;p3p.adjacent_parent=q6E;}}}q6E=p3p;}else if(typeof r8l.date !== H5m){r8l.isDayOfWeek=![];r8l.dayofweek=-+"1";p3p=o0O._createDateTimeSegment(J4y,r8l);}else {console.log("Error, unknown rule type " + r8l);}if(J4y.enabled_by_default){for(var S5H=0;S5H < J4y.enabled_by_default.length;S5H++){e5Q=J4y.enabled_by_default[S5H];if(p3p.name === e5Q){p3p.enabled=!!1;break;}}}else {;}}catch(T_b){console.log("Error, creating market rules " + T_b);}}};R_S.Market._timeSegment={};o0O=R_S.Market._timeSegment;o0O.re_wild_card_iso=/^(\*)-(\d\d)-(\d\d)$/;o0O.re_regular_iso=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;o0O.re_split_hours_minutes=/^(\d\d):(\d\d)$/;o0O.re_split_hour_minutes=/^(\d):(\d\d)$/;o0O._hashCode=function(y9Y){var W6G,x6t,H$L,y0_;W6G=0;i6UVR.W3G();if(y9Y.length === 0)return W6G;for((x6t=+"0",y0_=y9Y.length);x6t < y0_;x6t++){H$L=y9Y.charCodeAt(x6t);W6G=(W6G << 5) - W6G + H$L;W6G|=0;;}return W6G;};o0O._splitHoursMinutes=function(v2$){var m8x,t4h,B8h,Y56,Z05;m8x=o0O.re_split_hour_minutes.exec(v2$);t4h={hours:NaN,minutes:NaN};if(m8x === null){m8x=o0O.re_split_hours_minutes.exec(v2$);if(m8x === null){return t4h;}}t4h.hours=parseInt(m8x[1],10);t4h.minutes=parseInt(m8x[2],10);B8h="369040853" ^ 0;Y56=-1551662406;Z05="2" - 0;for(var z_4=1;i6UVR.l5h(z_4.toString(),z_4.toString().length,"38265" | 73) !== B8h;z_4++){return t4h;}if(i6UVR.m6F(Z05.toString(),Z05.toString().length,14709) !== Y56){return t4h;}};o0O._createDayOfWeekSegment=function(E_B,v3d){var y4A;y4A={name:v3d.name,isDayOfWeek:!!1,dayofweek:v3d.dayofweek,date_str:"*",open_parts:o0O._splitHoursMinutes(v3d.open),close_parts:o0O._splitHoursMinutes(v3d.close),open:o0O._secSinceMidnight(E_B,v3d.open,!""),close:o0O._secSinceMidnight(E_B,v3d.close,![]),child_:![],parent_:!({}),adjacent_child:!({}),adjacent_parent:!!0,enabled:!!0};if(y4A.name === ""){y4A.enabled=!![];}y4A.hash_code=this._hashCode((y4A.open + y4A.close).toString());i6UVR.W3G();E_B.normalHours.push(y4A);return y4A;};o0O._createDateTimeSegment=function(d7P,F8w){var X4N,T2s,g0S;X4N=this.re_regular_iso.exec(F8w.date);if(X4N === null){X4N=this.re_wild_card_iso.exec(F8w.date);if(X4N === null){console.log("Warning: invalid date format on rule -> " + F8w.date);return;}T2s="*";;}else {T2s=parseInt(X4N[1],10);}g0S={name:F8w.name,isDayOfWeek:!!0,dayofweek:-1,year:T2s,month:parseInt(X4N[2],+"10"),day:parseInt(X4N[3],+"10"),date_str:F8w.date,open_parts:o0O._splitHoursMinutes(F8w.open),close_parts:o0O._splitHoursMinutes(F8w.close),open:o0O._secSinceMidnight(d7P,F8w.open,!""),close:o0O._secSinceMidnight(d7P,F8w.close,![]),enabled:![]};if(g0S.name === ""){g0S.enabled=!!({});}g0S.hash_key=this._hashCode(g0S.date_str + g0S.open + g0S.close);d7P.extraHours.push(g0S);return g0S;};o0O._secSinceMidnight=function(V8D,k1t,b95){var h7K,Z3z,D5N,x9T;h7K=k1t.split("1320" << 32 === (114.93,490.87)?44.98:+"5730" <= (467.01,+"4524")?(1356,+"7947") === 6440?(+"0x232a","o"):3.51e+3:":");Z3z=parseInt(h7K[0],10);D5N=parseInt(h7K[1],"10" - 0);x9T=Z3z * 60 * 60 + D5N * 60;if(!b95){if(Z3z === 24){x9T=Z3z * 60 * +"60" + 1;}}return x9T;};R_S.Market.prototype._convertToMarketTZ=function(I40,x0T){var D5e;if(x0T){D5e=new this.tz_lib(I40.getFullYear(),I40.getMonth(),I40.getDate(),I40.getHours(),I40.getMinutes(),I40.getSeconds(),I40.getMilliseconds(),x0T);}else {D5e=new this.tz_lib(I40.getFullYear(),I40.getMonth(),I40.getDate(),I40.getHours(),I40.getMinutes(),I40.getSeconds(),I40.getMilliseconds());}if(D5e.setTimezone)D5e.setTimezone(this.market_tz);return new Date(D5e.getFullYear(),D5e.getMonth(),D5e.getDate(),D5e.getHours(),D5e.getMinutes(),D5e.getSeconds(),D5e.getMilliseconds());};R_S.Market.prototype._convertFromMarketTZ=function(N6s,m6e){var s5_;s5_=new this.tz_lib(N6s.getFullYear(),N6s.getMonth(),N6s.getDate(),N6s.getHours(),N6s.getMinutes(),N6s.getSeconds(),N6s.getMilliseconds(),this.market_tz);if(m6e){if(s5_.setTimezone)s5_.setTimezone(m6e);}else {return new Date(s5_.getTime());}return new Date(s5_.getFullYear(),s5_.getMonth(),s5_.getDate(),s5_.getHours(),s5_.getMinutes(),s5_.getSeconds(),s5_.getMilliseconds());};R_S.Market.Iterator=function(p5q){this.market=p5q.market;this.begin=p5q.begin;this.interval=p5q.interval;this.multiple=p5q.multiple;this.inZone=p5q.inZone;this.outZone=p5q.outZone;this.clock=new R_S.Market.Iterator._Clock(p5q.market,p5q.interval,p5q.multiple);i6UVR.W5N();this.intraDay=this.clock.intra_day;if(this.intraDay)this.begin=this.market._convertToMarketTZ(this.begin,p5q.inZone);this.clock._setStart(this.begin);this.clock.minutes_aligned=!1;};R_S.Market.Iterator.prototype.date=function(){return this.clock._date();};R_S.Market.Iterator.prototype.futureTick=function(c0T){var t29,z4G,g2B,C39,e$x,E4C,o3h,W7x,r0C;this.clock.skip=1;t29=0;if(this.intraDay)z4G=this.market._convertToMarketTZ(c0T.end,this.inZone).getTime();else z4G=c0T.end.getTime();g2B=this.clock.ctime;if(z4G === g2B){return t29;}C39=2;e$x=1000;E4C=0;if(c0T.sample_size){C39=c0T.sample_size;}o3h=new Date().getTime();if(z4G > g2B){this.clock.forward=!![];while(this.clock.ctime < z4G){t29+=1;E4C+=1;this.clock._findNext();if(E4C === e$x){E4C=0;W7x=new Date().getTime();if(W7x - o3h >= C39){r0C=(this.clock.ctime - g2B) / t29;t29=Math.floor((z4G - g2B) / r0C);break;}}}if(this.clock.ctime > z4G){t29--;}}else {this.clock.forward=![];while(this.clock.ctime > z4G){t29+=1;E4C+=1;this.clock._findPrevious();if(E4C === e$x){E4C=0;W7x=new Date().getTime();if(W7x - o3h >= C39){r0C=(g2B - this.clock.ctime) / t29;t29=Math.floor((g2B - z4G) / r0C);break;}}}}return t29;};R_S.Market.Iterator.prototype.isHourAligned=function(){return !this.intraDay || this.market.isHourAligned();};R_S.Market.Iterator.prototype.isOpen=function(){return this.market.isOpen();};R_S.Market.Iterator.prototype.next=function(i8L){this.clock.skip=1;if(i8L){this.clock.skip=i8L;}this.clock.forward=!0;for(var U4O=+"0";U4O < this.clock.skip;U4O++){this.begin=this.clock._findNext();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};R_S.Market.Iterator.prototype.peek=function(){return this.clock._peek();};R_S.Market.Iterator.prototype.previous=function(T7S){this.clock.skip=1;i6UVR.W3G();if(T7S){this.clock.skip=T7S;}this.clock.forward=!({});for(var d$w=0;d$w < this.clock.skip;d$w++){this.begin=this.clock._findPrevious();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};R_S.Market.Iterator._Clock=function(F6_,J1_,P_f){var X7G,w6B,L46;X7G="d";X7G+="a";X7G+="y";if(P_f % 60 === 0 && J1_ === "second"){J1_="minute";P_f=P_f / ("60" * 1);}this.market=F6_;this.interval=J1_;i6UVR.W5N();this.multiple=P_f;this.intra_day=!!"";this.intervals=[];this.max_iters=+"10080";w6B=k8w;L46=this._dayImpl;if(J1_ === "millisecond"){L46=this._millisImpl;w6B=1;}else if(J1_ === "second"){L46=this._secondImpl;w6B=1000;}else if(J1_ === "minute"){L46=this._minuteImpl;w6B=60000;}else if(J1_ === "hour"){L46=this._hourImpl;w6B=d4B;}else if(J1_ === X7G){L46=this._dayImpl;w6B=k8w;}else if(J1_ === "week"){L46=this._weekImpl;w6B=k8w * 7;}else if(J1_ === "month"){L46=this._monthImpl;w6B=k8w * 30;}else {console.log('Periodicity ERROR: "' + J1_ + '" is not a valid interval. Please see setPeriodicity() for details.');}this.tick_time=w6B * P_f;this.intra_day=this.tick_time < k8w;this._findPrevious=this._findNext=L46;};v85=R_S.Market.Iterator._Clock.prototype;v85._total_minutes=function(M$v,K54,V8e,b_t){return (V8e - M$v) * 60 - K54 + b_t;};v85._alignMinutes=function(){var I7I,i41,b1z,K9s,X16;if(!this.market.market_def || this.market.zopen_minute === undefined){return [];}I7I=this.market.zopen_minute;i41=this.market.zseg_match;if(i41 && i41.adjacent_parent){I7I=i41.adjacent_parent.open / 60 - 1440;}else {if(this.market.isHourAligned() && this.multiple % 60 === 0)I7I=0;}b1z=this._total_minutes(this.market.zopen_hour,I7I,this.market.zclose_hour,this.market.zclose_minute);K9s=[];X16=0;while(X16 < b1z){K9s.push(I7I + X16);X16+=this.multiple;}return K9s;};v85._alignBaseZero=function(O$2){var U9v,S8H;U9v=0;S8H=[U9v];while(!![]){U9v+=this.multiple;if(U9v >= O$2){break;}S8H.push(U9v);}return S8H;};v85._date=function(){var u67,K27;u67=Math.round(this.ctime);K27=new Date(u67);if(this.intra_day){this.display_date=new Date(u67 + this.shift_millis);}else {this.display_date=K27;}i6UVR.W3G();return K27;};v85._alignToBoundary=function(Q9R,T7g){var U9Q,v0c,M93;U9Q=0;v0c=0;M93=T7g;for(var D20=0;D20 < Q9R.length - 1;D20++){U9Q=Q9R[D20];v0c=Q9R[D20 + +"1"];if(T7g === U9Q || T7g === v0c){break;;}if(T7g > U9Q && T7g < v0c){M93=U9Q;break;}else if(D20 + 1 === Q9R.length - 1){M93=v0c;}}i6UVR.W5N();return M93;};v85._peek=function(){i6UVR.W5N();return this._date().toString();};v85._seekHr=function(){i6UVR.W3G();if(this.forward){this.ctime-=d4B;}else {this.ctime+=d4B;}};v85._setStart=function(K0s){var p6m,k5j;p6m=this.market._tzDifferenceMillis(K0s);k5j=new Date(K0s.getTime() + p6m);this.shift_millis=p6m;this.ctime=k5j.getTime();this.shift_millis="0" >> 0;this.ctime=K0s.getTime();};v85._tickTock=function(){var e8p,E1e,H8n;if(this.forward){e8p=-1786601353;E1e=-("1885585299" ^ 0);H8n=2;for(var v78=1;i6UVR.l5h(v78.toString(),v78.toString().length,61295) !== e8p;v78++){this.ctime+=this.tick_time;H8n+=2;}if(i6UVR.l5h(H8n.toString(),H8n.toString().length,73559) !== E1e){this.ctime/=this.tick_time;}}else {this.ctime-=this.tick_time;}};v85._tockTick=function(){if(this.forward){this.ctime-=this.tick_time;}else {this.ctime+=this.tick_time;}};v85._tickTock24=function(){i6UVR.W5N();this.ctime+=k8w;};v85._tockTick24=function(){i6UVR.W3G();this.ctime-=k8w;};v85._windMaybe=function(A3Q,n4u){var J1R,Y8e,M11,k1S;i6UVR.W5N();J1R=0;Y8e=new Date(this.ctime);M11=!!0;while(!A3Q.call(this.market,Y8e)){n4u.call(this);M11=!0;Y8e=new Date(this.ctime);J1R+=1;if(J1R > this.max_iters){k1S="Warning! max iterations (" + this.max_iters;k1S+=") reached with no rule match.";console.log(k1S);break;}}return M11;};v85._millisImpl=function(){var T5P,O0C,l3K,n_h,g_w,F1V,y8J,B89,K2z,U66;T5P=!!"";if(!this.mperiods_aligned){O0C=this._alignBaseZero(1000);l3K=new Date(this.ctime);n_h=l3K.getMilliseconds();n_h=this._alignToBoundary(O0C,n_h);l3K.setMilliseconds(0);this.ctime=l3K.getTime() + n_h;this.mperiods_aligned=!0;T5P=!!"1";}g_w=this._date().getMinutes();i6UVR.W5N();this._tickTock();F1V=this._date().getMinutes();if((T5P || g_w != F1V) && !this.market._wasOpenIntraDay(this._date())){y8J=this._date().getSeconds();B89=this._date().getMilliseconds();K2z=this.tick_time;this.tick_time=60000;U66=this.multiple;this.multiple=1;this._minuteImpl();this.tick_time=K2z;this.multiple=U66;this.ctime+=1000 * y8J + B89;}return this._date();};v85._secondImpl=function(){var e6S,g0j,q0X,d3u,c9U,S7a,C_B,C9$,H6a;e6S=!({});if(!this.speriod_aligned){g0j=this._alignBaseZero(60);q0X=new Date(this.ctime);d3u=q0X.getSeconds();d3u=this._alignToBoundary(g0j,d3u);q0X.setSeconds(d3u);q0X.setMilliseconds(+"0");this.ctime=q0X.getTime();this.speriod_aligned=!![];e6S=!!"1";}c9U=this._date().getMinutes();this._tickTock();S7a=this._date().getMinutes();if((e6S || c9U != S7a) && !this.market._wasOpenIntraDay(this._date())){C_B=this._date().getSeconds();C9$=this.tick_time;this.tick_time=+"60000";H6a=this.multiple;this.multiple=1;this._minuteImpl();this.tick_time=C9$;this.multiple=H6a;this.ctime+=1000 * C_B;}return this._date();};v85._minuteImpl=function(){var g0k,F6k,w8A,v_x,q_F,o8L,C0t,U5C,I2s,T50;g0k=this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);F6k=new Date(this.ctime);w8A=F6k.getTimezoneOffset();v_x=F6k.getMinutes();q_F=F6k.getHours();o8L=this._alignMinutes();C0t=this._total_minutes(this.market.zopen_hour,this.market.zopen_minute,q_F,v_x) + this.market.zopen_minute;if(g0k){if(this.forward){C0t=o8L[o8L.length - 1];}else {C0t=o8L[0];}}else {C0t=this._alignToBoundary(o8L,C0t);}q_F=Math.floor(C0t / 60) + this.market.zopen_hour;F6k.setHours(q_F,C0t % 60,0,0);U5C=F6k.getTimezoneOffset() - w8A;if(this.forward && U5C < 0 || !this.forward && U5C > +"0"){F6k.setTime(F6k.getTime() - U5C * 60000);}this.ctime=F6k.getTime();this._tickTock();I2s=this.market.hour_aligned && this.multiple % 60 === 0;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !I2s && this.shouldResetToBeginningOfSegment){F6k=new Date(this.ctime);if(this.forward){F6k.setMinutes(this.market.zopen_minute);F6k.setHours(this.market.zopen_hour);}else {o8L=this._alignMinutes();T50=o8L[o8L.length - 1];F6k.setMinutes(T50 % 60);F6k.setHours(Math.floor(T50 / 60) + this.market.zopen_hour);}this.ctime=F6k.getTime();}return this._date();};v85._hourImpl=function(){var M55,G5d,d1X,w7C,l6_;i6UVR.W5N();this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);M55=new Date(this.ctime);if(this.market.isHourAligned()){M55.setMinutes(0);}else {M55.setMinutes(this.market.zopen_minute);}M55.setSeconds(0);M55.setMilliseconds(0);this.ctime=M55.getTime();this._tickTock();G5d=this.market.zseg_match;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !this.market.hour_aligned && G5d != this.market.zseg_match){d1X=new Date(this.ctime);if(this.forward){d1X.setMinutes(this.market.zopen_minute);d1X.setHours(this.market.zopen_hour);}else {w7C=this._alignMinutes();l6_=w7C[w7C.length - 1];d1X.setMinutes(l6_ % ("60" ^ 0));d1X.setHours(Math.floor(l6_ / 60) + this.market.zopen_hour);}this.ctime=d1X.getTime();}return this._date();};v85._dayImpl=function(){var R2k,w1E;this._windMaybe(this.market._wasOpenDaily,this._seekHr);R2k=new Date(this.ctime);R2k.setHours(12,0,0,+"0");i6UVR.W3G();this.ctime=R2k.getTime();w1E=0;while(w1E < this.multiple){if(this.forward){this._tickTock24();}else {this._tockTick24();}if(!this.market._wasOpenDaily(this._date())){continue;}w1E+=1;}R2k=new Date(this.ctime);R2k.setHours(0);this.ctime=R2k.getTime();return this._date();};v85._weekImpl=function(){var Q_f,w5s;Q_f=this.market;w5s=new Date(this.ctime);i6UVR.W5N();w5s.setHours(12);this.ctime=w5s.getTime();this._tickTock();w5s=new Date(this.ctime);while(w5s.getDay() !== Q_f.beginningDayOfWeek){this._tockTick24();w5s=new Date(this.ctime);}this._windMaybe(Q_f._wasOpenDaily,this._tickTock24);w5s=new Date(this.ctime);w5s.setHours(0,+"0",0,0);this.ctime=w5s.getTime();return this._date();};v85._monthImpl=function(){var b3J;b3J=new Date(this.ctime);b3J.setDate(15);this.ctime=b3J.getTime();this._tickTock();b3J=new Date(this.ctime);b3J.setDate(1);b3J.setHours(+"12");this.ctime=b3J.getTime();this._windMaybe(this.market._wasOpenDaily,this._tickTock24);b3J=new Date(this.ctime);b3J.setHours("0" | 0,0,0,+"0");i6UVR.W3G();this.ctime=b3J.getTime();return this._date();};v85._findNext=null;v85._findPrevious=null;};T=O_H=>{var R8_=i6UVR;R8_.W5N();R8_.m3s=function(u_b){R8_.W3G();if(R8_ && u_b)return R8_.i8e(u_b);};R8_.P91=function(d8M){R8_.W5N();if(R8_ && d8M)return R8_.i8e(d8M);};R8_.X86=function(d1C){R8_.W5N();if(R8_)return R8_.i8e(d1C);};var c4w,o1a,g03;c4w=typeof _CIQ !== "undefined"?_CIQ:O_H.CIQ;o1a="valid";c4w.valid=0;c4w[R8_.x1I("73e7")?"ChartEngine":""][R8_.X86("76da")?"":"prototype"][R8_.O0o("d68e")?"mousemoveinner":""]=function(Y_v,H_s){R8_.k_x=function(y7Z){R8_.W5N();if(R8_ && y7Z)return R8_.N4H(y7Z);};R8_.O8p=function(M_E){R8_.W5N();if(R8_)return R8_.N4H(M_E);};R8_.K4n=function(G2k){R8_.W3G();if(R8_)return R8_.i8e(G2k);};var P0e=-(R8_.x$F("359d")?601500727:186577206),Y22=-(R8_.K4n("774b")?1638252184:2428117228),u6b=-(R8_.P91("6aea")?637126000:113100024),c2B=-(R8_.N$t("1cd8")?1636454950:2006868665),H4H=R8_.V1Y("a942")?1251022236:6248277390,y5F=-901100827,J3f=R8_.z2h("bf6e")?4323687070:1820977520,v_v=R8_.m3s("1cf2")?3632780311:1541769497,D$b=-(R8_.N_P("d3e2")?7321761046:1684866164),J80=324260868;if(!(R8_.Z4a(0,false,R8_.U56("ce63")?418193:552997) !== P0e && R8_.h3V(0,false,999056) !== Y22 && R8_.h3V(9,R8_.h8D("6692")?true:false,476537) !== u6b && R8_.Z4a(R8_.O8p("6a8e")?3:9,true,718872) !== c2B && R8_.Z4a(8,true,428923) !== H4H && R8_.Z4a(10,true,783307) !== y5F && R8_.Z4a(9,true,R8_.k_x("e6dd")?446240:355041) !== J3f && R8_.h3V(9,true,647601) !== v_v && R8_.h3V(10,true,523543) !== D$b && R8_.Z4a(8,true,288896) !== J80)){var E_6,T_I,b7D,C_0,I9W,S_Z,l5k,T0C,K$U,s6Y,n4a,m$V,T2I,h7U,V6a,P$d,b0Q,k2$,P5L,S6L,a09,w0A,K7$,q1$,i9D,N_$,S3S,N7M,l2I;if(!this["chart"]["canvas"]){return;}if(!c4w["isAndroid"] && !c4w["isIOS7or8"]){if(this["chart"]["canvas"]["height"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientHeight"]) || this["chart"]["canvas"]["width"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientWidth"])){this["resizeChart"]();return;}}if(this["runPrepend"]("mousemoveinner",arguments)){return;}T_I=arguments;b7D=this["container"]["getBoundingClientRect"]();this["top"]=b7D["top"];this["left"]=b7D["left"];function W1O(O$8){var J_G=1785073975,a7h=-1694958399,A51=8214662,q7z=837009359,d79=-620899382,t5M=213668177,e4m=-391255666,N9Z=-1252475600,h4$=-868346271,e79=-111987682;if(R8_.h3V(0,false,256134) === J_G || R8_.Z4a(0,false,984785) === a7h || R8_.h3V(9,true,372746) === A51 || R8_.Z4a(9,true,222297) === q7z || R8_.Z4a(8,true,931038) === d79 || R8_.Z4a(10,true,255423) === t5M || R8_.h3V(9,true,550507) === e4m || R8_.h3V(9,true,775878) === N9Z || R8_.Z4a(10,true,692060) === h4$ || R8_.h3V(8,true,493631) === e79){var P10;P10="mo";P10+="usemoveinn";P10+="er";O$8["currentBaseline"]=null;O$8["runAppend"](P10,T_I);}}this["right"]=this["left"] + this["width"];this["bottom"]=this["top"] + this["height"];this["hasDragged"]=!!({});c4w["ChartEngine"]["crosshairX"]=Y_v;c4w["ChartEngine"]["crosshairY"]=H_s;C_0=this["cy"]=this["crossYActualPos"]=this["backOutY"](c4w["ChartEngine"]["crosshairY"]);I9W=this["cx"]=this["crossXActualPos"]=this["backOutX"](c4w["ChartEngine"]["crosshairX"]);if(this["grabbingScreen"] && this["anyHighlighted"]){R8_["O_b"](1);var S54=R8_["v$j"](32,34);R8_["O_b"](33);var c9l=R8_["V9a"](0,20,18);S_Z=Math["pow"](this["grabStartX"] - Y_v,S54) + Math["pow"](this["grabStartY"] - H_s,c9l);if(S_Z < 36){return;}}this["cancelLongHold"]=!!1;l5k=function(c7E,R34){var W1F=632240235,W1a=1331583677,e1n=-1063154332,I6H=-844066008,L_H=1708338573,q$y=1191575025,Z1x=688634741,B8o=-51586579,E7a=611343389,V9K=575504350;if(R8_.h3V(0,false,223215) === W1F || R8_.h3V(0,false,461850) === W1a || R8_.h3V(9,true,830392) === e1n || R8_.Z4a(9,true,653069) === I6H || R8_.Z4a(8,true,340290) === L_H || R8_.h3V(10,true,120563) === q$y || R8_.h3V(9,true,611284) === Z1x || R8_.Z4a(9,true,593265) === B8o || R8_.Z4a(10,true,213465) === E7a || R8_.h3V(8,true,244680) === V9K){if(c4w[o1a] === 0){return c7E["whichPanel"](R34) || c7E["chart"]["panel"];}if(!c7E["draw"][o1a]){c7E["draw"]=function(){R8_.W3G();var H8f=-585560611,Y8k=318241326,l9p=-226969794,W$U=-1253718984,g5l=-1657146144,a3i=-1502956068,c75=-927500610,E6x=1979631053,n9T=1814663176,Z0U=-853062415;if(R8_.h3V(0,false,289682) === H8f || R8_.h3V(0,false,535056) === Y8k || R8_.h3V(9,true,709743) === l9p || R8_.h3V(9,true,432080) === W$U || R8_.h3V(8,true,344704) === g5l || R8_.h3V(10,true,714864) === a3i || R8_.Z4a(9,true,207399) === c75 || R8_.h3V(9,true,874399) === E6x || R8_.h3V(10,true,720281) === n9T || R8_.Z4a(8,true,331639) === Z0U){c4w["clearCanvas"](this["chart"]["canvas"],this);}};c7E["draw"][o1a]=!!({});}}};this["currentPanel"]=l5k(this,C_0);if(!this["currentPanel"]){return;}T0C=this["currentPanel"]["chart"];if(T0C["dataSet"]){K$U="c";K$U+="hart";this["crosshairTick"]=this["tickFromPixel"](I9W,T0C);E_6=this["valueFromPixel"](C_0,this["currentPanel"]);this["crosshairValue"]=this["adjustIfNecessary"](this["currentPanel"],this["crosshairTick"],E_6);s6Y=this["currentPanel"]["name"] == K$U?this["preferences"]["horizontalCrosshairField"]:this["currentPanel"]["horizontalCrosshairField"];if(s6Y && this["crosshairTick"] < T0C["dataSet"]["length"] && this["crosshairTick"] > -1){E_6=T0C["dataSet"][this["crosshairTick"]][s6Y];this["crossYActualPos"]=this["pixelFromPrice"](E_6,this["currentPanel"]);}}if(c4w["ChartEngine"]["crosshairX"] >= this["left"] && c4w["ChartEngine"]["crosshairX"] <= this["right"] && c4w["ChartEngine"]["crosshairY"] >= this["top"] && c4w["ChartEngine"]["crosshairY"] <= this["bottom"]){this["insideChart"]=!!1;}else {this["insideChart"]=!!"";}n4a=this["xAxisAsFooter"] === !![]?this["chart"]["canvasHeight"]:this["chart"]["panel"]["bottom"];this["overXAxis"]=this["insideChart"] && c4w["ChartEngine"]["crosshairY"] <= n4a + this["top"] && c4w["ChartEngine"]["crosshairY"] > n4a - this["xaxisHeight"] + this["top"];this["overYAxis"]=(this["cx"] >= this["currentPanel"]["right"] || this["cx"] <= this["currentPanel"]["left"]) && this["insideChart"];if(this["overXAxis"] || this["overYAxis"] || !this["insideChart"] && !this["grabbingScreen"]){this["undisplayCrosshairs"]();if(!this["overXAxis"] && !this["overYAxis"]){return;};}if(!this["displayCrosshairs"] && !c4w["ChartEngine"]["resizingPanel"]){this["undisplayCrosshairs"]();return;}if(this["repositioningBaseline"]){this["setBaselineUserLevel"]();return W1O(this);}if(this["repositioningAnchorSelector"]){m$V=this["repositioningAnchorSelector"]["hoverTick"];T2I=this["tickFromPixel"](this["cx"],this["chart"]);if(T2I >= 0 && T2I < this["chart"]["dataSet"]["length"] && (!(m$V && m$V !== "0" >> 0) || T2I !== m$V)){this["repositioningAnchorSelector"]["hoverTick"]=T2I;this["draw"]();}return W1O(this);}if(this["grabbingScreen"] && !c4w["ChartEngine"]["resizingPanel"]){if(this["highlightedDraggable"]){this["displayDragOK"](!![]);this["dragPlotOrAxis"](I9W,C_0);return W1O(this);}if(this["anyHighlighted"]){c4w["clearCanvas"](this["chart"]["tempCanvas"],this);this["anyHighlighted"]=!"1";for(h7U in this["overlays"]){this["overlays"][h7U]["highlight"]=!({});}for(h7U in T0C["series"]){T0C["series"][h7U]["highlight"]=!({});}this["displaySticky"]();}if(this["grabStartX"] == -("1" << 32)){this["grabStartX"]=c4w["ChartEngine"]["crosshairX"];this["grabStartScrollX"]=T0C["scroll"];}if(this["grabStartY"] == -1){this["grabStartY"]=c4w["ChartEngine"]["crosshairY"];this["grabStartScrollY"]=this["currentPanel"]["yAxis"]["scroll"];}V6a=c4w["ChartEngine"]["crosshairX"] - this["grabStartX"];P$d=c4w["ChartEngine"]["crosshairY"] - this["grabStartY"];if(V6a === +"0" && P$d === +"0"){return;}if(Math["abs"](V6a) + Math["abs"](P$d) > 5){this["grabOverrideClick"]=!![];}k2$=this["layout"]["candleWidth"];if(this["allowZoom"] && this["grabMode"] != "pan" && (this["grabMode"]["indexOf"]("zoom") === 0 || this["overXAxis"] || this["grabStartYAxis"])){P5L="z";P5L+="o";P5L+="om";P5L+="-y";if(this["grabMode"] === ""){if(this["overXAxis"]){this["grabMode"]="zoom-x";}else if(this["grabStartYAxis"]){this["grabMode"]="zoom-y";}}if(this["grabMode"] == "zoom-x"){P$d=0;}else if(this["grabMode"] == P5L){V6a=+"0";}if(V6a){this["grabStartX"]=c4w["ChartEngine"]["crosshairX"];S6L=k2$ - V6a / this["chart"]["maxTicks"];this["zoomSet"](S6L,this["chart"]);}if(this["layout"]["setSpan"]){this["layout"]["setSpan"]=null;this["changeOccurred"]("layout");}b0Q=this["grabStartYAxis"];if(b0Q){if(b0Q["flipped"]){P$d*=-1;}b0Q["zoom"]=Math["round"](this["grabStartZoom"] + P$d);if(this["grabStartZoom"] < b0Q["height"]){if(b0Q["zoom"] >= b0Q["height"]){R8_["O_b"](16);var A8j=R8_["V9a"](6,0,5);b0Q["zoom"]=b0Q["height"] - A8j;}}else {if(b0Q["zoom"] <= b0Q["height"]){R8_["O_b"](14);var x7p=R8_["V9a"](2,61,10,12);b0Q["zoom"]=b0Q["height"] + x7p;}}}}else if(!this["overYAxis"]){this["dispatch"]("move",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!!({})});if(this["allowScroll"]){a09="p";a09+="an";if(Math["abs"](P$d) < this["yTolerance"]){if(!this["yToleranceBroken"]){P$d=0;if(V6a === 0){return;}}}else {this["yToleranceBroken"]=!!"1";}if(!this["grabStartMicropixels"]){this["grabStartMicropixels"]=0;}this["grabMode"]=a09;T0C["scroll"]=this["grabStartScrollX"];R8_["s$9"](22);var m63=R8_["v$j"](9,167,0,18);R8_["O_b"](1);var f2p=R8_["V9a"](10,11);this["micropixels"]=this["grabStartMicropixels"] + V6a * (this["shift"]?m63:f2p);if(!this["lineTravelSpacing"]){while(this["micropixels"] > +"0"){this["micropixels"]-=k2$;T0C["scroll"]++;}while(this["micropixels"] < -k2$){this["micropixels"]+=k2$;T0C["scroll"]--;}}if(T0C["scroll"] >= T0C["maxTicks"]){w0A=1403366981;K7$=625018721;q1$=2;for(var J4n=1;R8_["l5h"](J4n["toString"](),J4n["toString"]()["length"],+"68374") !== w0A;J4n++){this["preferences"]["whitespace"]=this["initialWhitespace"];q1$+=+"2";}if(R8_["l5h"](q1$["toString"](),q1$["toString"]()["length"],66893) !== K7$){this["preferences"]["whitespace"]=this["initialWhitespace"];}}else {this["preferences"]["whitespace"]=(T0C["maxTicks"] - T0C["scroll"]) * k2$;}if(this["currentPanel"] == this["grabStartPanel"]){b0Q=this["currentPanel"]["yAxis"];if(b0Q["flipped"]){R8_["O_b"](12);P$d*=-R8_["V9a"](32,"1");}b0Q["scroll"]=this["grabStartScrollY"] + P$d;}this["dispatch"]("scroll",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"]});}}i9D=function(T0s){var l7i=-1377086126,b58=-1475525855,B65=2046097683,W5j=-636865186,L6L=-1908069135,V7q=155777695,V90=153495854,D_$=1389782972,m$S=-1040226959,V2y=-525125091;R8_.W3G();if(R8_.h3V(0,false,679196) === l7i || R8_.Z4a(0,false,490370) === b58 || R8_.Z4a(9,true,647191) === B65 || R8_.h3V(9,true,576063) === W5j || R8_.h3V(8,true,514400) === L6L || R8_.Z4a(10,true,528042) === V7q || R8_.Z4a(9,true,222789) === V90 || R8_.h3V(9,true,985213) === D_$ || R8_.Z4a(10,true,558331) === m$S || R8_.Z4a(8,true,223583) === V2y){return function(){var z$g=387294878,a79=-1999433205,B3v=711567530,i_2=-1464157040,I2c=-875208496,Q0c=-1707112626,a5i=-743572626,n1h=-348825631,P6_=1738942947,Y9n=1215171122;R8_.W3G();if(R8_.h3V(0,false,462349) === z$g || R8_.h3V(0,false,529825) === a79 || R8_.Z4a(9,true,415064) === B3v || R8_.h3V(9,true,949948) === i_2 || R8_.h3V(8,true,247884) === I2c || R8_.h3V(10,true,859284) === Q0c || R8_.h3V(9,true,873006) === a5i || R8_.Z4a(9,true,742460) === n1h || R8_.Z4a(10,true,772757) === P6_ || R8_.Z4a(8,true,710148) === Y9n){T0s["draw"]();T0s["updateChartAccessories"]();}};}};if(c4w["ChartEngine"]["useAnimation"]){window["requestAnimationFrame"](i9D(this));}else {this["draw"]();this["updateChartAccessories"]();}if(this["activeDrawing"]){c4w["clearCanvas"](this["chart"]["tempCanvas"],this);this["activeDrawing"]["render"](this["chart"]["tempCanvas"]["context"]);this["activeDrawing"]["measure"]();}this["undisplayCrosshairs"]();return;}this["grabMode"]="";if(this["overXAxis"] || this["overYAxis"]){this["updateChartAccessories"]();if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}return W1O(this);;}if(this["controls"]["crossX"]){this["controls"]["crossX"]["style"]["left"]=this["pixelFromTick"](this["crosshairTick"],T0C) - +"0.5" + "px";}if(this["controls"]["crossY"]){this["controls"]["crossY"]["style"]["top"]=this["crossYActualPos"] + "px";}if(this["insideChart"] && !c4w["ChartEngine"]["resizingPanel"]){N_$=this["currentVectorParameters"]["vectorType"];if(this["layout"]["studies"]){S3S=this["layout"]["studies"][this["currentPanel"]["name"]];if(S3S){if(!this["preferences"]["dragging"] || !this["preferences"]["dragging"]["study"]){delete this["overlays"][S3S["name"]];}if(N_$){this["overlays"][S3S["name"]]=S3S;}}}if(!c4w["Drawing"] || !N_$ || !c4w["Drawing"][N_$] || !new c4w["Drawing"][N_$]()["dragToDraw"]){this["doDisplayCrosshairs"]();}this["updateChartAccessories"]();}else {this["undisplayCrosshairs"]();}if(this["magnetize"]){this["magnetize"]();}if(this["repositioningDrawing"]){this["repositionDrawing"](this["repositioningDrawing"]);}else if(c4w["ChartEngine"]["drawingLine"]){if(this["activeDrawing"]){N7M=this["panels"][this["activeDrawing"]["panelName"]];E_6=this["adjustIfNecessary"](N7M,this["crosshairTick"],this["valueFromPixel"](this["backOutY"](c4w["ChartEngine"]["crosshairY"]),N7M));if(this["magnetizedPrice"] && N7M["name"] == this["currentPanel"]["name"]){E_6=this["adjustIfNecessary"](N7M,this["crosshairTick"],this["magnetizedPrice"]);}if(this["magnetizedPrice"] === null){c4w["clearCanvas"](this["chart"]["tempCanvas"],this);}this["activeDrawing"]["move"](this["chart"]["tempCanvas"]["context"],this["crosshairTick"],E_6);if(this["activeDrawing"]["measure"]){this["activeDrawing"]["measure"]();}}}else if(c4w["ChartEngine"]["resizingPanel"]){this["resizePanels"]();}if(this["insideChart"]){l2I="m";l2I+="ov";l2I+="e";this["dispatch"](l2I,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:![]});if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}}return W1O(this);}};c4w.ChartEngine.prototype.swipeStart=function(F05){var C7b;if(this.swipe && this.swipe.interval){clearInterval(this.swipe.interval);}this.swipe.velocity=0;this.swipe.amplitude=0;this.swipe.frame=F05.scroll;this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=F05;this.swipe.end=!"1";R8_.O_b(29);this.swipe.timeConstant=R8_.v$j("325",32);this.swipe.cb=null;C7b=this;requestAnimationFrame(function(){R8_.W3G();C7b.swipeSample();});};c4w.ChartEngine.prototype.swipeSample=function(){var j00,m3m,l7u,i9Y,r1u,t6_,d0A,z$Q,p8f;j00=this.swipe;if(j00.end){return;}m3m=this;d0A=20;l7u=Date.now();i9Y=l7u - j00.timestamp;if(i9Y < d0A){requestAnimationFrame(function(){R8_.W3G();m3m.swipeSample();});return;}z$Q=c4w.touchDevice?0.4:0.8;j00.timestamp=l7u;r1u=(j00.chart.scroll - j00.frame) * this.layout.candleWidth + this.micropixels - j00.micropixels;j00.frame=j00.chart.scroll;j00.micropixels=this.micropixels;R8_.O_b(93);t6_=R8_.v$j(1000,i9Y,1,r1u);p8f=z$Q * t6_ + 0.2 * j00.velocity;if(Math.abs(p8f) > Math.abs(j00.velocity)){j00.velocity=p8f;}if(Math.abs(r1u) < 6){R8_.O_b(42);j00.velocity=R8_.V9a("0",0);;}requestAnimationFrame(function(){m3m.swipeSample();});};c4w.ChartEngine.prototype.swipeRelease=function(){var l7E,O0L;R8_.W3G();l7E=this.swipe;if(l7E.velocity > 3000){l7E.velocity=3000;}if(l7E.velocity < -3000){l7E.velocity=-3000;}if(l7E.velocity > 10 || l7E.velocity < -10){l7E.amplitude=+"0.8" * l7E.velocity;l7E.scroll=l7E.chart.scroll;l7E.target=l7E.amplitude;l7E.timestamp=Date.now();O0L=this;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}requestAnimationFrame(function(){O0L.autoscroll();});}};c4w.ChartEngine.prototype.dragPlotOrAxis=function(R82,i3w){var O6D,B0m,q5U,U00,U6j,Z$m,w7S,B6d,u7m,N10,q23,v$z,c0w,L94,s9J,k23,q0H,o6a,B6b,G2G,O_l,x_J,v2Y,f8G,L0p,c0u,t$t,k$A,a3e,F5Y,q4d,c44,B4w,z7j,i3C,N$a,N5W,W7$,z1r,c$z,l_2,b5c,r6P,E6J,B2f,m9v,a86,g4F,e9i,b1W,r15,z$h,Y7f,w8s;O6D="drop";O6D+="zo";O6D+="ne";B0m="rig";B0m+="h";B0m+="t";if(!z9J.call(this) && !this.grabbingScreen){return;}q5U=null;U00=20;U6j=10;R8_.s$9(1);Z$m=this.whichPanel(R8_.v$j(U00,i3w));R8_.O_b(0);w7S=this.whichPanel(R8_.V9a(i3w,U00));B6d=this.whichPanel(i3w);u7m=this.highlightedDraggable;if(!B6d){return;}if(u7m.undraggable && u7m.undraggable(this)){return;}N10=this.whichYAxis(B6d,R82,i3w);R8_.O_b(1);q23=this.whichYAxis(B6d,R8_.v$j(U6j,R82),i3w);R8_.s$9(0);v$z=this.whichYAxis(B6d,R8_.V9a(R82,U6j),i3w);if(this.xAxisAsFooter && B6d.name == Object.keys(this.panels).pop()){w7S=this.whichPanel(i3w + U00 + this.xaxisHeight);if(q5U){q5U+=this.xaxisHeight;}}c0w=!!"";L94=![];s9J=!"1";function z9J(){var e77,x8Z,J5n,W_H;function D0y(n$0){return function(T_8){if(n$0.subholder.classList.contains(T_8)){n$0.subholder.classList.remove(T_8);e77=!![];}};}e77=!!0;for(var D8d in this.panels){x8Z="t";x8Z+="o";x8Z+="p";J5n="righ";J5n+="t";["dropzone","all","left",J5n,x8Z,"bottom"].forEach(D0y(this.panels[D8d]));for(W_H=+"0";W_H < this.panels[D8d].yaxisLHS.length;W_H++){if(this.panels[D8d].yaxisLHS[W_H].dropzone){e77=!![];}this.panels[D8d].yaxisLHS[W_H].dropzone=null;}for(W_H=0;W_H < this.panels[D8d].yaxisRHS.length;W_H++){if(this.panels[D8d].yaxisRHS[W_H].dropzone){e77=!![];}this.panels[D8d].yaxisRHS[W_H].dropzone=null;}}return e77;}R8_.W3G();if(c4w.Renderer){c0w=u7m instanceof c4w.Renderer;}if(c4w.Studies){L94=u7m instanceof c4w.Studies.StudyDescriptor;}s9J=u7m instanceof c4w.ChartEngine.YAxis;k23=function(s3i){var d1F;if(!s9J){d1F="l";d1F+="e";d1F+="f";d1F+="t";if(s3i == "right"){R8_.s$9(94);var S2X=R8_.V9a(16,7,16,1,12);return B6d.right - B6d.width / S2X;}if(s3i == d1F){R8_.s$9(95);var C$Q=R8_.v$j(9,15,3,7);return B6d.left + B6d.width / ("6" | C$Q);}}R8_.O_b(96);var y1y=R8_.v$j(12,5,0,5);return (B6d.left + B6d.right) / y1y;};if(!s9J && !N10){if(R82 < k23("left")){q23=this.whichYAxis(B6d,B6d.left - 1,i3w);}else if(R82 > k23("right")){v$z=this.whichYAxis(B6d,B6d.right + 1,i3w);}}q0H=[];if(u7m.getDependents){q0H=u7m.getDependents(this,!![]);}o6a=u7m.panel;B6b=u7m.getYAxis(this);if(c0w){o6a=u7m.params.panel;}else if(s9J){o6a=this.grabStartPanel.name;}G2G=this.panels[o6a];for(O_l in this.panels){if(this.panels[O_l].soloing){x_J=!"";}}v2Y=B6b.isShared(this);f8G=!s9J && !x_J && (G2G !== B6d && G2G != Z$m && G2G != w7S || !this.checkForEmptyPanel(G2G,!!({}),[u7m].concat(q0H)));L0p=o6a == B6d.name && B6b !== N10 && B6b !== v$z && B6b !== q23 || v2Y;if(f8G && (!Z$m || B6d !== Z$m)){B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("top");w7S=B6d;}else if(f8G && (!w7S || B6d !== w7S)){B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("bottom");}else if(B6d !== G2G){if(!s9J && !B6d.noDrag){k$A="dr";k$A+="op";k$A+="zone";B6d.subholder.classList.add(k$A);B6d.subholder.classList.add("all");c0u=B6d.name;}}else if((!B6d.yaxisRHS.length || B6d.yaxisRHS.length == 1 && B6d.yaxisRHS[0] == B6b && B6b.position == "none") && !N10 && !v$z && R82 > k23(B0m)){a3e="ri";a3e+="gh";a3e+="t";B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("right");t$t=a3e;}else if((!B6d.yaxisLHS.length || B6d.yaxisLHS.length == 1 && B6d.yaxisLHS[0] == B6b && B6b.position == "none") && !N10 && !q23 && R82 < k23("left")){B6d.subholder.classList.add("dropzone");B6d.subholder.classList.add("left");t$t="left";}else if(L0p){if(s9J && R82 > B6d.left && R82 < B6d.right){R8_.s$9(1);var l9S=R8_.v$j(2,3);F5Y=B6d.yaxisLHS[B6d.yaxisLHS.length - l9S];q4d=B6d.yaxisRHS[0];c44=k23();if(R82 < c44 && F5Y != B6b){q23=F5Y;}else if(R82 > c44 && q4d != B6b){v$z=q4d;}}if(!s9J || N10 !== B6b){B4w=!s9J && v2Y;if(v$z && (v$z !== B6b || B4w) && (!N10 || N10 !== v$z)){v$z.dropzone="left";t$t=v$z.position || this.chart.panel.yAxis.position || "right";}else if(q23 && (q23 !== B6b || B4w) && (!N10 || N10 !== q23)){z7j="ri";z7j+="gh";z7j+="t";i3C="r";i3C+="i";i3C+="g";i3C+="ht";q23.dropzone=i3C;t$t=q23.position || this.chart.panel.yAxis.position || z7j;}else if(N10){if(!v$z && (N10 !== B6b || B4w)){N10.dropzone="right";}else if(!q23 && (N10 !== B6b || B4w)){N$a="le";N$a+="ft";N10.dropzone=N$a;}else if(N10 !== B6b){N10.dropzone="all";}if(N10.dropzone){t$t=N10.position || this.chart.panel.yAxis.position || "right";}}}}if(this.grabbingScreen || !B6d.subholder.classList.contains(O6D) && !t$t){this.draw();return;}W7$=-1;if(!c0u && !t$t && f8G){c0u=L94?u7m.inputs.id:u7m.params.name || c4w.uniqueID();for(var P1X in this.panels){W7$++;if(this.panels[P1X] == w7S)break;}if(!w7S){W7$++;}if(this.panels[o6a].yAxis.name == c0u){o6a=this.electNewPanelOwner(o6a);}z1r=L94?u7m.inputs.display:null;if(o6a){this.createPanel(z1r || c0u,c0u,q5U,this.chart.name,new c4w.ChartEngine.YAxis({name:c0u}));}else {o6a=c0u;}if(L94){u7m.panel=o6a;}else {u7m.params.panel=o6a;}}if(c0u){if(L94){if(!u7m.parameters){u7m.parameters={};}u7m.parameters.panelName=c0u;this.highlightedDraggable=c4w.getFn("Studies.replaceStudy")(this,u7m.inputs.id,u7m.type,u7m.inputs,u7m.outputs,u7m.parameters,null,u7m.study);}else if(c0w){for(var D8e in u7m.seriesParams){c$z=u7m.seriesParams[D8e];l_2=null;if(u7m.params.yAxis){if(u7m.params.yAxis !== this.chart.panel.yAxis){l_2=u7m.params.yAxis;l_2.name=u7m.params.name;}}this.modifySeries(c$z.id,{panel:c0u,yAxis:l_2});}}if(W7$ > -("1" ^ 0)){b5c={};r6P=+"0";for(O_l in this.panels){if(W7$ == r6P++){b5c[c0u]=this.panels[c0u];}if(O_l == c0u)continue;b5c[O_l]=this.panels[O_l];}if(!b5c[c0u]){b5c[c0u]=this.panels[c0u];}this.panels=b5c;}this.checkForEmptyPanel(o6a);for(var S1W=+"0";S1W < q0H.length;S1W++){if(q0H[S1W].params){this.checkForEmptyPanel(q0H[S1W].params.name);}else {this.checkForEmptyPanel(q0H[S1W].name);}}this.adjustPanelPositions();}else if(t$t){E6J=function(C4z,Y3v,r2c,Y10){var s7B,W$Y;if(r2c == "study"){if(!Y3v.parameters){Y3v.parameters={};}if(Y10){Y3v.parameters.yaxisDisplayValue=Y10.position;}else {delete Y3v.parameters.yaxisDisplayValue;}s7B=c4w.getFn("Studies.replaceStudy")(C4z,Y3v.inputs.id,Y3v.type,Y3v.inputs,Y3v.outputs,Y3v.parameters,Y3v.panel,Y3v.study);}R8_.W5N();if(r2c == "renderer"){for(var W8R in Y3v.seriesParams){W$Y=Y3v.seriesParams[W8R];s7B=C4z.modifySeries(W$Y.id,{panel:c0u,yAxis:Y10});}}return s7B;};B2f=N10 && N10.dropzone == "all";if(!B2f){if(s9J){u7m.position=t$t;if(this.layout.studies){m9v=this.layout.studies[u7m.name];if(m9v){if(!m9v.parameters){m9v.parameters={};}m9v.parameters.yaxisDisplayValue=t$t;}}}else if(L94){this.highlightedDraggable=E6J(this,u7m,"study",{position:t$t});}else if(c0w){E6J(this,u7m,"renderer",new c4w.ChartEngine.YAxis({name:u7m.params.name || c4w.uniqueID(),position:t$t}));}B6b=this.highlightedDraggable.getYAxis(this);}if(!v2Y || !B2f || s9J){a86=B6b;if(B2f && B6b == this.chart.panel.yAxis){a86=N10;}for(N5W=0;N5W < B6d.yaxisLHS.length;N5W++){if(B6d.yaxisLHS[N5W] == a86){B6d.yaxisLHS.splice(N5W,1);break;}}for(N5W=0;N5W < B6d.yaxisRHS.length;N5W++){if(B6d.yaxisRHS[N5W] == a86){B6d.yaxisRHS.splice(N5W,1);break;}}}if(B2f){if(this.getYAxisByName(B6d,B6b.name) == B6d.yAxis){this.electNewPanelOwner(B6d,N10);}if(s9J){b1W=B6b;r15=N10;if(B6b == this.chart.panel.yAxis){b1W=N10;r15=B6b;}for(e9i in b1W.studies){E6J(this,this.layout.studies[b1W.studies[e9i]],"study",r15 === this.chart.panel.yAxis?null:{position:r15.name});}for(e9i in b1W.renderers){E6J(this,this.chart.seriesRenderers[b1W.renderers[e9i]],"renderer",r15);}this.highlightedDraggable=r15;}else if(L94){this.highlightedDraggable=E6J(this,u7m,"study",{position:N10.name});}else if(c0w){E6J(this,u7m,"renderer",N10);}}else {if(B6b.position == "none"){B6b.width=c4w.ChartEngine.YAxis.prototype.width;}B6b.position=t$t;g4F=t$t == "left"?B6d.yaxisLHS:B6d.yaxisRHS;for(N5W=0;N5W < g4F.length;N5W++){if(g4F[N5W] !== B6b){z$h="ri";z$h+="g";z$h+="h";z$h+="t";if(g4F[N5W].dropzone == "left"){g4F.splice(N5W,0,B6b);}else if(g4F[N5W].dropzone == z$h){R8_.s$9(6);g4F.splice(R8_.V9a(N5W,"1"),0,B6b);}else continue;}break;}if(N5W == g4F.length){g4F.push(B6b);}}}for(var q8i in this.panels){Y7f=this.panels[q8i];w8s=Y7f.yaxisLHS.concat(Y7f.yaxisRHS);for(N5W=0;N5W < w8s.length;N5W++){w8s[N5W].height=Y7f.yAxis.height;this.calculateYAxisMargins(w8s[N5W]);}}this.displayDragOK();this.draw();this.calculateYAxisPositions();this.draw();this.findHighlights(null,!!"1");this.savePanels();};g03=!({});c4w.ChartEngine.prototype.findHighlights=c4w.ChartEngine.prototype.findHighlights || (function(I1O,H6V){if(!g03){console.error("movement feature requires activating interaction feature.");}g03=!!"1";});};R=N3o=>{var K5H=i6UVR;var v6U;v6U=typeof _CIQ !== "undefined"?_CIQ:N3o.CIQ;v6U.NameValueStore=v6U.NameValueStore || (function(){});v6U.NameValueStore.prototype.toJSONIfNecessary=function(J4E){var j9A;if(J4E.constructor == String){return J4E;}try{j9A=JSON.stringify(J4E);return j9A;}catch(G4x){K5H.s$9(0);console.log(K5H.V9a("Cannot convert to JSON: ",J4E));return null;}};v6U.NameValueStore.prototype.fromJSONIfNecessary=function(B0C){var i2c;K5H.W3G();try{i2c=JSON.parse(B0C);return i2c;}catch(e2e){return B0C;}};K5H.W3G();v6U.NameValueStore.prototype.get=function(T72,K6U){var m8p;K5H.W5N();m8p=v6U.localStorage.getItem(T72);K6U(null,this.fromJSONIfNecessary(m8p));};v6U.NameValueStore.prototype.set=function(k$e,l2Q,u58){K5H.W5N();v6U.localStorageSetItem(k$e,this.toJSONIfNecessary(l2Q));if(u58){u58(null);}};v6U.NameValueStore.prototype.remove=function(E3H,z4o){v6U.localStorage.removeItem(E3H);K5H.W5N();if(z4o){z4o(null);}};};W=X2l=>{var p_V=i6UVR;var y0n,S$g;y0n="und";y0n+="efi";y0n+="n";y0n+="ed";S$g=typeof _CIQ !== y0n?_CIQ:X2l.CIQ;if(!S$g.ChartEngine){S$g.ChartEngine=function(){};}s9Q.fetchInitialData=function(x$_,P31,P_I,K$e,H4x){};s9Q.fetchUpdateData=function(X3J,U2a,W_C,a72){};s9Q.fetchPaginationData=function(H2v,n9d,q2o,Q_o,b3C){};s9Q.subscribe=function(v3Z){};s9Q.unsubscribe=function(K21){};S$g.QuoteFeed=S$g.QuoteFeed || (function(){});S$g.QuoteFeed.prototype.fetch=function(O$V,x4Y){var M09;if(!this.v2QuoteFeed){M09="You must implement CIQ.QuoteFeed.[";M09+="you";M09+="rfeedname].prototype.fetch()";console.log(M09);}};S$g.QuoteFeed.prototype.announceError=function(Q_W,w8x){if(Q_W.suppressErrors || w8x.suppressAlert){return;}p_V.W3G();if(Q_W.startDate){;}else if(Q_W.endDate){;}else if(w8x.error){S$g.alert("Error fetching quote:" + w8x.error);}else {;}};S$g.QuoteFeed.prototype.multiFetch=function(j_I,e6Y){p_V.W3G();if(j_I.length === 0){e6Y([]);}return j_I[0].stx.driver.multiFetch(j_I,e6Y);};S$g.QuoteFeed.Subscriptions=function(){p_V.W5N();this.subscriptions=[];};S$g.inheritsFrom(S$g.QuoteFeed.Subscriptions,S$g.QuoteFeed);S$g.QuoteFeed.Subscriptions.prototype.checkSubscriptions=function(y8L){var t6G,z_E,s$z,y7Q,S9J,W6R,c30,M4O,f3f;s$z=y8L.getSymbols({"breakout-equations":!![]});y7Q=this;p_V.W3G();s$z=s$z.filter(function(a6I){var W2Z;W2Z=y8L.quoteDriver.getQuoteFeed(a6I);return W2Z && W2Z.engine == y7Q;});for(var a0r=0;a0r < this.subscriptions.length;a0r++){this.subscriptions[a0r].match=!"1";}for(var R5P=0;R5P < s$z.length;R5P++){z_E=s$z[R5P];S9J=z_E.interval;if((S9J == "month" || S9J == "week") && !y8L.dontRoll){W6R="d";W6R+="a";W6R+="y";S9J=W6R;}z_E.interval=S9J;z_E.period=1;z_E.match=!!0;if(!isNaN(z_E.interval)){c30="mi";c30+="nut";c30+="e";z_E.period=z_E.interval;z_E.interval=z_E.timeUnit;if(!z_E.interval){z_E.interval=c30;}}delete z_E.periodicity;delete z_E.timeUnit;delete z_E.setSpan;for(a0r=0;a0r < this.subscriptions.length;a0r++){t6G=this.subscriptions[a0r];if(t6G.symbol == z_E.symbol && t6G.period == z_E.period && t6G.interval == z_E.interval){z_E.match=!!1;t6G.match=!![];break;}else if(t6G.symbol != z_E.symbol){M4O="sym";M4O+="b";M4O+="o";M4O+="l";if(z_E.reason != "period"){z_E.reason="symbol";}t6G.reason=M4O;}else {f3f="per";f3f+="i";f3f+="o";f3f+="d";z_E.reason="period";t6G.reason=f3f;}}}this.subscriptions=this.subscriptions.filter(function(G58){if(!G58.match){if(!G58.stx){G58.stx=y8L;}y7Q.unsubscribe(G58);}return G58.match;});s$z.forEach(function(v_$){var H8H;if(!v_$.match){H8H="initi";H8H+="al";H8H+="i";H8H+="ze";if(!v_$.stx){v_$.stx=y8L;}if(!v_$.reason){v_$.reason=H8H;}if(v_$.symbol !== y8L.chart.symbol){v_$.series=!![];}y7Q.subscribe(v_$);y7Q.subscriptions.push(v_$);}});};S$g.QuoteFeed.Subscriptions.prototype.fetch=function(b0f,r2A){var w5H;w5H=this;this.fetchFromSource(b0f,function(I42){p_V.W5N();if(!I42.error){w5H.checkSubscriptions(b0f.stx);}r2A(I42);});};S$g.QuoteFeed.Subscriptions.prototype.subscribe=function(U1T){p_V.W5N();console.log("subscribe",U1T);};S$g.QuoteFeed.Subscriptions.prototype.unsubscribe=function(y5S){var l5x;l5x="unsubs";l5x+="cribe";console.log(l5x,y5S);};S$g.QuoteFeed.Subscriptions.prototype.fetchFromSource=function(v5H,W$z){p_V.W3G();console.log("Please provide implementation of fetchFromSource");};S$g.QuoteFeed.prototype.requiresImmediateRefresh=function(A$5){return !"1";};S$g.ChartEngine.prototype.attachQuoteFeed=function(e1P,V4w,k0M){var q7j,k30,E5V;q7j="f";q7j+="unct";q7j+="io";q7j+="n";k30="f";k30+="u";k30+="nct";k30+="ion";if(!V4w){V4w={};}if(typeof e1P.fetchInitialData === k30 || typeof e1P.fetchUpdateData === q7j || typeof e1P.fetchPaginationData === "function"){if(typeof e1P.fetchPaginationData !== "function" && typeof e1P.fetchUpdateData !== "function"){V4w.noLoadMore=!!({});}e1P.v2QuoteFeed=!!({});["multiFetch","announceError","requiresImmediateRefresh"].forEach(function(Y9A){if(!e1P[Y9A] && e1P[Y9A] !== !1){e1P[Y9A]=S$g.QuoteFeed.prototype[Y9A];}p_V.W5N();;});if(typeof e1P.subscribe === "function"){e1P.checkSubscriptions=S$g.QuoteFeed.Subscriptions.prototype.checkSubscriptions;e1P.subscriptions=[];}}if(!V4w.maximumTicks){V4w.maximumTicks=e1P.maxTicks?e1P.maxTicks:20000;}p_V.W3G();if(!V4w.bufferSize || V4w.bufferSize < 0){V4w.bufferSize=0;}V4w.bufferSize=Math.round(V4w.bufferSize);V4w.intervalTimer=null;if(this.quoteDriver){if(!k0M && this.quoteDriver.hasUnfilteredQuoteFeed){this.detachQuoteFeed();}else {E5V=this.quoteDriver.hasUnfilteredQuoteFeed && this.quoteDriver.quoteFeeds.pop();this.quoteDriver.quoteFeeds.push({engine:e1P,behavior:V4w,filter:k0M});if(E5V){this.quoteDriver.quoteFeeds.push(E5V);}this.quoteDriver.updateChartLoop(null,V4w);}}if(!this.quoteDriver){this.quoteDriver=new S$g.ChartEngine.Driver(this,e1P,V4w,k0M);}if(!k0M){this.quoteDriver.hasUnfilteredQuoteFeed=!!({});}};S$g.ChartEngine.prototype.detachQuoteFeed=function(n6W){var f8K;f8K=this.quoteDriver;if(!f8K){return;}for(var W7w=f8K.quoteFeeds.length - ("1" - 0);W7w >= 0;W7w--){if(!n6W || f8K.quoteFeeds[W7w].quoteFeed == n6W){f8K.die(f8K.quoteFeeds[W7w]);f8K.quoteFeeds.splice(W7w,1);}}p_V.W5N();if(!f8K.quoteFeeds.length){f8K=this.quoteDriver=null;}else if(n6W == f8K.quoteFeed){f8K.quoteFeed=f8K.quoteFeeds[0].quoteFeed;f8K.behavior=f8K.quoteFeeds[0].behavior;}};S$g.ChartEngine.Driver=function(D7y,B2c,c0W,g$p){p_V.W3G();this.stx=D7y;if(!c0W){c0W={};}this.quoteFeeds=[{engine:B2c,behavior:c0W,filter:g$p}];this.id=S$g.uniqueID(!!1);this.behavior=c0W;this.quoteFeed=B2c;this.loadingNewChart=![];this.updatingChart=!1;if(!g$p){this.hasUnfilteredQuoteFeed=!![];}this.updateChartLoop();};S$g.ChartEngine.Driver.prototype.die=function(V7j){var N8A;for(var I2J=0;I2J < this.quoteFeeds.length;I2J++){if(!V7j || this.quoteFeeds[I2J] == V7j){N8A=this.quoteFeeds[I2J].behavior;if(N8A.intervalTimer){clearInterval(N8A.intervalTimer);N8A.intervalTimer=-1;;}}}};S$g.ChartEngine.Driver.prototype.getQuoteFeed=function(o_v){var L$J;if(!o_v.symbolObject){o_v.symbolObject={symbol:o_v.symbol};}for(var c4Y=0;c4Y < this.quoteFeeds.length;c4Y++){L$J=this.quoteFeeds[c4Y];if(L$J.behavior.generator != o_v.symbolObject.generator)continue;if(!L$J.filter || L$J.filter(o_v)){return L$J;}}return null;;};S$g.ChartEngine.Driver.prototype.multiFetch=function(L0M,g_c){var v8_,B8L,z0d;if(L0M.length === 0){g_c([]);}v8_={counter:0,finished:L0M.length,results:[]};for(var X1k=0;X1k < L0M.length;X1k++){B8L=L0M[X1k];if(B8L.stx.isEquationChart(B8L.symbol)){S$g.fetchEquationChart(B8L,x66(B8L,v8_,g_c));}else {z0d=this.getQuoteFeed(B8L);if(z0d){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.SERIES,z0d.engine,B8L,x66(B8L,v8_,g_c));}}}p_V.W5N();function x66(b6T,s07,y5y){p_V.W3G();return function(O4l){p_V.W5N();var g1E;s07.results.push({dataCallback:O4l,params:b6T});s07.counter++;if(s07.counter >= s07.finished){g1E=s07.results;s07.results=[];y5y(g1E);}};}};S$g.ChartEngine.Driver.prototype.updateSubscriptions=function(){for(var o9n=+"0";o9n < this.quoteFeeds.length;o9n++){if(this.quoteFeeds[o9n].checkSubscriptions){this.quoteFeeds[o9n].checkSubscriptions(this.stx);}}};S$g.ChartEngine.Driver.prototype.loadDependents=function(O36,T7Z,k25,z3b){var Z8b,P9r,y$Y,j5c,x25,s7w,j5N,o4F,P0T,n7N,t5E,r8W,C7L,v3R,f9w,x97,i$S,Q0i,X1z,s0n,Q5v,o0a,T5t,S2v,I3P;Z8b=this;if(!z3b){P9r=0;y$Y=[];j5c=[];x25=function(w_9){if(T7Z && ++P9r >= Z8b.quoteFeeds.length){T7Z(null);}};s7w=function(n9B){if(++P9r < y$Y.length){return;}p_V.W5N();if(!j5c.length){x25(n9B);}j5c.forEach(function(w$1){Z8b.loadDependents(O36,x25,k25,w$1.behavior);});};Z8b.quoteFeeds.forEach(function(M1E){if(M1E.behavior.generator){j5c.push(M1E);}else {y$Y.push(M1E);}});y$Y.forEach(function(J0S){Z8b.loadDependents(O36,s7w,k25,J0S.behavior);});return;}o4F={};P0T=O36.stx;n7N=O36.chart;t5E=n7N.series;r8W=P0T.masterData;f9w=[];x97={};function C0G(c7q){p_V.W3G();return function(d$K){var s4E,i7V,a4B,n$2,c6x,X$I,L00,V9O,g6C,Z6r;s4E=null;for(var t6Q=0;t6Q < d$K.length;t6Q++){i7V=d$K[t6Q];a4B=i7V.dataCallback.error;if(!a4B && a4B !== 0){n$2=i7V.params.symbolObject;c6x=i7V.dataCallback;X$I=c6x.quotes;L00=c6x.moreAvailable;V9O=c6x.upToDate;g6C=[];if(P0T.getSeries){g6C=P0T.getSeries({symbolObject:n$2});}Z6r=![];for(var i99=+"0";i99 < g6C.length;i99++){C7L=g6C[i99];if(!c7q){if(!O36.future){C7L.moreAvailable=L00 === !!""?!({}):L00 || X$I.length > (i7V.params.endDate?"1" | 1:0);}else {C7L.upToDate=V9O === !![]?!!1:V9O || X$I.length <= (i7V.params.startDate?+"1":"0" * 1);if(P0T.isHistoricalModeSet && X$I.length < 2){C7L.mostRecentForwardAttempt=new Date();}}C7L.loading=!1;}Z6r=C7L.parameters.fillGaps || Z6r;}X$I=Z8b.cleanup(P0T,C7L,X$I,k25,O36,Z6r);P0T.updateChartData(X$I,n7N,{secondarySeries:n$2.symbol,noCreateDataSet:!0,noCleanupDates:!!({}),allowReplaceOHL:!""});if(X$I && X$I.length && (!s4E || s4E > X$I[0].DT)){s4E=X$I[+"0"].DT;}}}if(d$K.length){P0T.createDataSet(null,null,{appending:O36.originalState.update || O36.future,appendToDate:s4E});if(!O36.nodraw){P0T.draw();}if(k25 == S$g.QuoteFeed.INITIAL){Z8b.resetRefreshInterval(z3b.refreshInterval,z3b);}}if(T7Z){T7Z(null);}};}i$S=k25 == S$g.QuoteFeed.UPDATE;Q0i=k25 == S$g.QuoteFeed.PAGINATION;X1z=S$g.shallowClone(O36);for(j5N in t5E){C7L=t5E[j5N];s0n=C7L.parameters;if(!i$S){if(!O36.future && C7L.moreAvailable === ![])continue;if(O36.future && C7L.upToDate === !!({}))continue;;}if(C7L.loading)continue;if(s0n.loadData === !({}))continue;if(i$S || Q0i){if(!C7L.endPoints || !Object.keys(C7L.endPoints).length)continue;;}if(s0n.data && !s0n.data.useDefaultQuoteFeed)continue;v3R=s0n.symbolObject;if(!v3R.symbol)continue;if(v3R.generator != z3b.generator)continue;X1z.symbolObject=v3R;X1z.symbol=v3R.symbol;Q5v=this.getQuoteFeed(X1z);if(z3b != (Q5v && Q5v.behavior))continue;o0a=!!({});if(!i$S){C7L.loading=!"";}for(var J0K=0;J0K < f9w.length;J0K++){if(S$g.symbolEqual(f9w[J0K],v3R)){o0a=!1;}}if(o0a){f9w.push(v3R);x97[v3R.symbol]=C7L.endPoints;}}T5t=[];for(var G$C=0;G$C < f9w.length;G$C++){v3R=f9w[G$C];S2v=S$g.shallowClone(O36.originalState);S2v.symbol=v3R.symbol;S2v.symbolObject=v3R;if(S2v.update || S2v.future){if(!S2v.endDate){S2v.endDate=O36.endDate;}S2v.startDate=x97[v3R.symbol].end;}else {if(!S2v.startDate){S2v.startDate=O36.startDate;}S2v.endDate=Q0i && !O36.future?x97[v3R.symbol].begin:O36.endDate;S2v.ticks=O36.ticks;}T5t.push(S2v);}if(!T5t.length && i$S){I3P={appending:O36.appending || O36.originalState.update};if(I3P.appending){I3P.appendToDate=O36.startDate;}P0T.createDataSet(null,null,I3P);if(!O36.nodraw){P0T.draw();}if(T7Z){T7Z(null);}return;}this.multiFetch(T5t,C0G(i$S));};S$g.ChartEngine.Driver.prototype.cleanup=function(s1T,z1R,K6V,i7$,O06,d_4){var d9Q,g5y,w$E,i6O,I88,O7T,X89,h4H;s1T.doCleanupDates(K6V,s1T.layout.interval);if(!O06.missingBarsCreated && K6V && K6V.length && s1T.cleanupGaps && d_4 !== !!0){w$E=O06.chart;if(!z1R){g5y=w$E.defaultPlotField;}else {w$E=z1R;g5y=z1R.parameters.symbol || z1R.id;}if(i7$ == S$g.QuoteFeed.PAGINATION && !O06.loadMoreReplace){if(w$E.endPoints.begin && w$E.endPoints.begin > K6V[K6V.length - 1].DT){i6O=s1T.getFirstLastDataRecord(s1T.masterData,g5y,!!0);if(z1R){i6O=i6O[g5y];}K6V.push(i6O);d9Q="pop";}}else if(i7$ == S$g.QuoteFeed.UPDATE){if(w$E.endPoints.end && w$E.endPoints.end < K6V[0].DT){I88=s1T.getFirstLastDataRecord(s1T.masterData,g5y,!![]);O7T=2141695318;p_V.s$9(39);X89=-p_V.V9a("1916707877",0);h4H=2;for(var G7f=1;p_V.m6F(G7f.toString(),G7f.toString().length,58221) !== O7T;G7f++){if(z1R){I88=I88[g5y];}K6V.unshift(I88);h4H+=2;}if(p_V.m6F(h4H.toString(),h4H.toString().length,2127) !== X89){if(z1R){I88=I88[g5y];}K6V.unshift(I88);}if(z1R){I88=I88[g5y];}K6V.unshift(I88);d9Q="shift";}}K6V=s1T.doCleanupGaps(K6V,O06.chart,{cleanupGaps:d_4,noCleanupDates:!0});if(d9Q){K6V[d9Q]();}}return K6V;};S$g.ChartEngine.Driver.prototype.updateChart=function(m_A){var J0D,o1I,H5S,k4g,d7o,U6m,l4F,w5V,m5t;if(this.updatingChart){return;}if(this.loadingNewChart){return;}J0D=Object.keys(this.stx.charts).length;o1I=0;H5S=this.stx;k4g=H5S.layout.interval;function u25(o$Y,d7m,p4q,I13){if(d7m.behavior.prefetchAction){d7m.behavior.prefetchAction("updateChart");}return function(E9r){var L2C,j1a,x7_;o1I++;L2C=d7m.chart;j1a=L2C.masterData;if(p4q == L2C.symbol && k4g == H5S.layout.interval && d7o == H5S.layout.timeUnit && !H5S.isHistoricalMode()){if(!E9r.error){x7_=E9r.quotes;x7_=o$Y.cleanup(H5S,null,x7_,S$g.QuoteFeed.UPDATE,d7m);H5S.updateChartData(x7_,L2C,{noCreateDataSet:!"",noCleanupDates:!!1});L2C.attribution=E9r.attribution;}else if(I13){I13.engine.announceError(d7m.originalState,E9r);}}else {o$Y.updatingChart=![];return;}if(o1I == J0D){o$Y.updatingChart=!1;}if(d7m.behavior.callback){d7m.behavior.callback(d7m);}o$Y.loadDependents(d7m,null,S$g.QuoteFeed.UPDATE,d7m.behavior);p_V.W3G();;};}d7o=H5S.layout.timeUnit;for(var N5Y in H5S.charts){U6m=H5S.charts[N5Y];if(!U6m.symbol)continue;l4F=this.makeParams(U6m.symbol,U6m.symbolObject,U6m);w5V=this.getQuoteFeed(l4F);if(U6m.masterData && U6m.masterData.length){l4F.startDate=U6m.endPoints.end;;}l4F.update=!!1;l4F.originalState=S$g.shallowClone(l4F);if(m_A && m_A != l4F.behavior){this.loadDependents(l4F,null,S$g.QuoteFeed.UPDATE,m_A);continue;}this.updatingChart=!![];m5t=u25(this,l4F,U6m.symbol,w5V);if(H5S.isEquationChart(l4F.symbol)){S$g.fetchEquationChart(l4F,m5t);}else if(w5V){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.UPDATE,w5V.engine,l4F,m5t);}}};S$g.ChartEngine.Driver.prototype.updateChartLoop=function(y27,m0W){var F$O,a01;if(!m0W){m0W=this.behavior;}if(m0W.intervalTimer == -1){return;}if(m0W.intervalTimer){clearInterval(m0W.intervalTimer);}p_V.W5N();F$O=function(Q$A,G4L){p_V.W5N();return function(){if(G4L.noUpdate){return;}Q$A.updateChart(G4L);};};for(var U6A=0;U6A < this.quoteFeeds.length;U6A++){a01=this.quoteFeeds[U6A].behavior;if(m0W == a01 && !a01.noUpdate){if(!y27 && y27 !== 0){y27=a01.refreshInterval;}if(y27){m0W.intervalTimer=setInterval(F$O(this,a01),y27 * +"1000");}}}};S$g.ChartEngine.Driver.prototype.resetRefreshInterval=function(P9I,j7u){(j7u || this.behavior).refreshInterval=P9I;this.updateChartLoop(null,j7u);p_V.W5N();;};S$g.ChartEngine.Driver.prototype.loadAll=function(S2o,T95){var W7R,Q5G;W7R=this;Q5G=0;N9S()();function N9S(){return function(J0c){p_V.W5N();if(J0c){T95(J0c);}else if(!S2o.moreAvailable && S2o.upToDate){T95(null);;}else if(++Q5G > 20){T95("error, moreAvailable not implemented correctly in QuoteFeed");}else {S2o.loadingMore=!1;W7R.checkLoadMore(S2o,!![],!0,N9S(),!"");}};}};S$g.ChartEngine.Driver.prototype.checkLoadMore=function(s48,Q6_,C2w,W3i,b8k){var N9J,i8V,K3u,A_L,l1R,X_v,r4x,n0D,e4P,a7l,k9A,g47,n6i,S4H,k9x,G7v,r7G,R6a,G6U,O1s,b3M,c0H;function B$C(W23){return !W23.endPoints.end || s48.scroll - s48.maxTicks + 1 < l1R.bufferSize || N9J.tickFromDate(W23.endPoints.end,s48,null,!!({})) - X_v.length + s48.scroll - s48.maxTicks + 2 < l1R.bufferSize;}N9J=this.stx;i8V=this;function P5k(J$e,E42){if(l1R.prefetchAction){l1R.prefetchAction("checkLoadMore");}return function(y8R){var C7a,g8$,m_O,G38,b0B,n5s,W64,Q4F,l29,w3e,q2O,h3x;C7a=-+"500040512";g8$=1753553143;p_V.W3G();m_O=2;for(var e$m=+"1";p_V.l5h(e$m.toString(),e$m.toString().length,5185) !== C7a;e$m++){G38=J$e.stx;b0B=E42.chart;m_O+=2;}if(p_V.m6F(m_O.toString(),m_O.toString().length,21552) !== g8$){G38=J$e.stx;b0B=E42.chart;}if(E42.symbol == b0B.symbol && G7v == G38.layout.interval && r7G == G38.layout.timeUnit){if(!E42.loadMore){E42.chart.loadingMore=![];}if(!y8R.error){if(!y8R.quotes){y8R.quotes=[];}n5s=y8R.quotes;W64=b0B.masterData;n5s=J$e.cleanup(G38,null,n5s,S$g.QuoteFeed.PAGINATION,E42);if(n5s.length && b0B.masterData && b0B.masterData.length){if(E42.future){Q4F=n5s[0];if(Q4F.DT && Q4F.DT == b0B.masterData[b0B.masterData.length - 1].DT){W64.pop();}}else {p_V.s$9(37);var D7Z=p_V.v$j(14,0,15);l29=n5s[n5s.length - D7Z];if(l29.DT && +l29.DT == +b0B.masterData[0].DT){n5s.pop();}}}if(!E42.future){if(y8R.moreAvailable){b0B.moreAvailable=!!({});}else if(y8R.moreAvailable === ![] || !n5s.length){b0B.moreAvailable=!"1";}else {b0B.moreAvailable=!!1;}}else {if(y8R.upToDate){b0B.upToDate=!![];}else if(y8R.upToDate === !!"" || n5s.length > 1){b0B.upToDate=!({});}if(G38.isHistoricalModeSet && n5s.length < 2){b0B.mostRecentForwardAttempt=new Date();};}J$e.tickMultiplier=n5s.length?2:J$e.tickMultiplier * 2;w3e=n5s[0]?n5s["0" * 1].DT:E42.startDate;q2O=n5s[0]?n5s[n5s.length - 1].DT:E42.endDate;if(!b0B.endPoints.begin || b0B.endPoints.begin > w3e){b0B.endPoints.begin=w3e;}if(!b0B.endPoints.end || b0B.endPoints.end < q2O){b0B.endPoints.end=q2O;}b0B.loadingMore=!({});if(E42.loadMoreReplace){G38.setMasterData(n5s,b0B,{noCleanupDates:!![]});}else if(E42.future){G38.updateChartData(n5s,b0B,{noCreateDataSet:!!({}),noCleanupDates:!""});}else {S$g.addMemberToMasterdata({stx:G38,chart:b0B,data:n5s,fields:[5453 == (7460,6066)?(827,0x2459):231.12 <= (2080,387)?"*":("A",!"")],noCleanupDates:!!1});}if(E42.future){h3x={appending:!![],appendToDate:n5s[0] && n5s[0].DT};}G38.createDataSet(undefined,undefined,h3x);if(!b8k){G38.draw();}if(l1R.callback){l1R.callback(E42);}J$e.loadDependents(E42,W3i,S$g.QuoteFeed.PAGINATION);}else {J$e.quoteFeed.announceError(E42.originalState,y8R);E42.chart.loadingMore=!({});if(W3i){W3i(y8R.error);}}}else {return;}};}if(s48.loadingMore || this.loadingNewChart){s48.initialScroll=s48.scroll;if(W3i){W3i(null);}return;}K3u=N9J.isHistoricalMode();if(!K3u){N9J.isHistoricalModeSet=!({});}A_L=this.makeParams(s48.symbol,s48.symbolObject,s48);if(N9J.currentlyImporting){if(W3i){W3i(null);}return;}l1R=A_L.behavior;X_v=s48.dataSet;p_V.O_b(33);var s6l=p_V.v$j(995,14,9);n0D=s6l * (l1R.forwardPaginationRetryInterval || "5" ^ 0);e4P=!!0;a7l=![];if(s48.dataSet.length){for(var o5b in s48.series){k9A=s48.series[o5b];if(k9A.loading)continue;if(k9A.parameters.loadData === !({}))continue;r4x=!k9A.mostRecentForwardAttempt || k9A.mostRecentForwardAttempt.getTime() + n0D < Date.now();if(k9A.moreAvailable !== !!0 && T6i(k9A)){e4P=!"";}if(r4x && !k9A.upToDate && B$C(k9A)){a7l=!0;}}}r4x=!s48.mostRecentForwardAttempt || s48.mostRecentForwardAttempt.getTime() + n0D < Date.now();g47=(T6i(s48) || Q6_) && s48.moreAvailable !== ![];n6i=(B$C(s48) || Q6_) && !s48.upToDate && r4x;function M6x(A$Q){s48.loadingMore=![];if(W3i){W3i(A$Q);}}S4H=g47 || e4P;k9x=N9J.isHistoricalModeSet && !S4H && (n6i || a7l);function T6i(G3l){return !G3l.endPoints.begin || X_v.length - s48.scroll < l1R.bufferSize || X_v.length - s48.scroll - N9J.tickFromDate(G3l.endPoints.begin,s48) < l1R.bufferSize;}G7v=N9J.layout.interval;r7G=N9J.layout.timeUnit;R6a=![];G6U=l1R.findHeadOfData || s48.masterData && s48.masterData.length;if(!l1R.noLoadMore && G6U){if(k9x || !N9J.maxDataSetSize || s48.dataSet.length < N9J.maxDataSetSize){if(S4H || k9x){s48.initialScroll=s48.scroll;s48.loadingMore=!![];A_L=this.makeParams(s48.symbol,s48.symbolObject,s48);A_L.pagination=!0;A_L.future=k9x;if(s48.masterData && s48.masterData.length){if(k9x){A_L.startDate=s48.endPoints.end;}else {A_L.endDate=s48.endPoints.begin;}if(k9x && !A_L.startDate){O1s=N9J.getFirstLastDataRecord(s48.masterData,"DT",!![]);if(O1s){A_L.startDate=O1s.DT;}}else if(S4H && !A_L.endDate){O1s=N9J.getFirstLastDataRecord(s48.masterData,"DT");if(O1s){A_L.endDate=O1s.DT;}}}else {A_L.endDate=new Date();}A_L.originalState=S$g.shallowClone(A_L);A_L.nodraw=b8k;if(!g47 && e4P || !n6i && a7l){this.loadingMore=!!({});this.loadDependents(A_L,M6x,S$g.QuoteFeed.PAGINATION);if(W3i){W3i(null);}return;}if(N9J.fetchMaximumBars[N9J.layout.aggregationType]){A_L.fetchMaximumBars=!!1;if(!N9J.maxMasterDataSize || l1R.maximumTicks < N9J.maxMasterDataSize){A_L.ticks=l1R.maximumTicks;}else {A_L.ticks=N9J.maxMasterDataSize;}}b3M=P5k(this,A_L);if(N9J.isEquationChart(A_L.symbol)){S$g.fetchEquationChart(A_L,b3M);}else {if(k9x){A_L.appending=!!({});}c0H=i8V.getQuoteFeed(A_L);if(c0H){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.PAGINATION,c0H.engine,A_L,b3M);}}R6a=!![];}}}if(!R6a && W3i){W3i(null);}};S$g.ChartEngine.Driver.prototype.extendHistoricalData=function({from:W1Z},J8t = ()=>{}){var u_5,Q0p;var {stx:C5n}=this;function G1J(Q$H,Y2i){p_V.W3G();return function({quotes:R$H, moreAvailable:l0w, error:Y8i}){if(Y2i.symbol !== c_a.symbol || O7U !== h85.interval || r7Q !== h85.timeUnit){return;;}c_a.loadingMore=!"1";if(Y8i){return J8t(Y8i);}R$H=Q$H.cleanup(C5n,null,R$H,S$g.QuoteFeed.PAGINATION,Y2i);if(typeof l0w === "boolean"){c_a.moreAvailable=l0w;}else {c_a.moreAvailable=!!R$H.length;}c_a.endPoints.begin=R$H[0].DT;S$g.addMemberToMasterdata({stx:C5n,chart:c_a,data:R$H,fields:[("934" << 64,356.46) === 339.8?783 === (7080,9410)?!({}):("z",!!1):"*"],noCleanupDates:!""});C5n.createDataSet();C5n.draw();};}var {chart:c_a, layout:h85}=C5n;var {masterData:Q7X, dataSet:A2N}=c_a;var {interval:O7U, timeUnit:r7Q}=h85;u_5=this.makeParams(c_a.symbol,c_a.symbolObject,c_a);Q0p=this.getQuoteFeed(u_5);if(c_a.loadingMore || this.loadingNewChart || C5n.currentlyImporting || !Q7X.length || !Q0p || C5n.maxDataSetSize && A2N.length > C5n.maxDataSetSize){return J8t(null);}p_V.W5N();c_a.loadingMore=!"";u_5.originalState=Object.assign({},u_5);u_5.startDate=W1Z;u_5.endDate=Q7X[0].DT;S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.PAGINATION,Q0p.engine,u_5,G1J(this,u_5));};S$g.ChartEngine.Driver.prototype.barsToFetch=function(x89){var T7O,u8r,T8Z,H3Q;T7O="w";T7O+="e";T7O+="e";T7O+="k";if(!S$g.isValidNumber(this.tickMultiplier)){this.tickMultiplier=+"2";}u8r=this.stx.layout.interval;T8Z=x89.stx.layout.periodicity;if((u8r == "month" || u8r == T7O) && !this.stx.dontRoll){T8Z*=u8r == "week"?7:30;}H3Q=x89.stx.chart.maxTicks * T8Z;return H3Q * this.tickMultiplier;};p_V.W5N();S$g.ChartEngine.Driver.determineStartDate=function(z5w,r5q,z0k){var A9P,o47,A2r;A9P=301845622;o47=1812588392;A2r=2;for(var Q03=1;p_V.l5h(Q03.toString(),Q03.toString().length,+"64734") !== A9P;Q03++){return this.determineStartOrEndDate(z5w,r5q,z0k,!!({}));}if(p_V.l5h(A2r.toString(),A2r.toString().length,9095) !== o47){return this.determineStartOrEndDate(z5w,r5q,z0k,!"1");}};S$g.ChartEngine.Driver.determineStartOrEndDate=function(c$4,t2N,m79,A8H){var t_M;if(A8H || c$4.fetchMaximumBars){t_M=c$4.startDate || t2N.previous(m79);}else {t_M=c$4.future?t2N.next(m79):new Date();}return t_M;};S$g.ChartEngine.Driver.prototype.makeParams=function(o2M,h9M,H1A){var Z0y,r9X,R7u,k3w,o$X,G_1,g2E,l3e,I0a,k$a,B8$,Q7b;Z0y=this.stx;r9X=Z0y.layout.interval;R7u=this.barsToFetch({stx:Z0y});if((r9X == "month" || r9X == "week") && !Z0y.dontRoll){k3w="d";k3w+="a";k3w+="y";r9X=k3w;}o$X=this.getQuoteFeed({interval:r9X,symbol:o2M,symbolObject:h9M});G_1=o$X && o$X.behavior;g2E=S$g.shallowClone(G_1) || ({});g2E.behavior=G_1;l3e=!!"";I0a=[];if(H1A.market && H1A.market.getSessionNames){I0a=H1A.market.getSessionNames();}if(Z0y.extendedHours){if(Z0y.extendedHours.filter){l3e=!!1;}else {k$a=-323888069;B8$=1668079439;p_V.s$9(1);Q7b=p_V.v$j(0,"2");for(var H4F=1;p_V.l5h(H4F.toString(),H4F.toString().length,84645) !== k$a;H4F++){l3e=Z0y.layout.extended;Q7b+=2;}if(p_V.m6F(Q7b.toString(),Q7b.toString().length,+"56844") !== B8$){l3e=Z0y.layout.extended;}I0a=I0a.filter(function(W3A){p_V.W3G();return W3A.enabled || Z0y.layout.marketSessions[W3A.name];});}}else {I0a=I0a.filter(function(Z69){p_V.W5N();return Z69.enabled;});}for(var k9r="0" ^ 0;k9r < I0a.length;k9r++){I0a[k9r]=I0a[k9r].name;;}S$g.extend(g2E,{stx:Z0y,symbol:o2M,symbolObject:h9M,chart:H1A,interval:r9X,extended:l3e,period:1,ticks:R7u,additionalSessions:I0a,quoteDriverID:this.id},!![]);if(!g2E.symbolObject){g2E.symbolObject={symbol:o2M};}if(!isNaN(g2E.interval)){g2E.period=parseInt(g2E.interval,10);g2E.interval=Z0y.layout.timeUnit;if(!g2E.interval){g2E.interval="minute";}}return g2E;};S$g.ChartEngine.Driver.prototype.newChart=function(Q4R,f_I){var F$a,u$3,A$Y,s9V,N4$,B1u,Q12,h0W,g9y;F$a=this.stx;function b$y(e9P,w_3){var M7Z;M7Z="n";M7Z+="ewChart";if(h0W.prefetchAction){h0W.prefetchAction(M7Z);}p_V.W3G();return function(q4p){var u5K,Y2S,h4h,f8I;u5K=w_3.chart;Y2S=q4p.quotes;h4h=!({});if(u$3 == u5K.symbol && A$Y == F$a.layout.interval && s9V == F$a.layout.timeUnit){e9P.loadingNewChart=![];if(!q4p.error){Y2S=e9P.cleanup(F$a,null,Y2S,S$g.QuoteFeed.INITIAL,w_3);F$a.setMasterData(Y2S,u5K,{noCleanupDates:!!"1"});u5K.endPoints={};u5K.endPoints.begin=Y2S[0]?Y2S[0].DT:w_3.startDate;u5K.endPoints.end=Y2S[0]?Y2S[Y2S.length - 1].DT:w_3.endDate;if(!Y2S){u5K.moreAvailable=![];u5K.upToDate=!!({});}else {u5K.moreAvailable=q4p.moreAvailable === !"1"?!"1":!!({});u5K.upToDate=q4p.upToDate;}u5K.attribution=q4p.attribution;if(Q4R.initializeChart){F$a.initializeChart();}F$a.createDataSet();h4h=!0;}else {Q12.engine.announceError(w_3.originalState,q4p);}}else {if(f_I){f_I("orphaned");}return;}for(var x2G in u5K.series){u5K.series[x2G].endPoints={};u5K.series[x2G].moreAvailable=null;u5K.series[x2G].upToDate=null;}f8I=u5K.masterData;if(f8I && f8I.length){w_3.startDate=f8I[0].DT;w_3.endDate=f8I[f8I.length - 1].DT;}if(h0W.callback){h0W.callback(w_3);}e9P.loadDependents(w_3,function(){if(h4h && !w_3.nodraw){e9P.stx.home();}if(f_I){f_I(q4p.error);}e9P.stx.dispatch("newChart",{stx:e9P.stx,symbol:e9P.stx.chart.symbol,symbolObject:e9P.stx.chart.symbolObject,moreAvailable:e9P.stx.chart.moreAvailable,upToDate:e9P.stx.chart.upToDate,quoteDriver:e9P});e9P.resetRefreshInterval(h0W.refreshInterval,h0W);},S$g.QuoteFeed.INITIAL);};}u$3=Q4R.symbol;A$Y=F$a.layout.interval;s9V=F$a.layout.timeUnit;N4$=Q4R.chart;N4$.moreAvailable=null;N4$.upToDate=null;N4$.loadingMore=!!"";N4$.attribution=null;B1u=this.makeParams(u$3,Q4R.symbolObject,N4$);S$g.extend(B1u,Q4R,!!({}));Q12=this.getQuoteFeed(B1u);h0W=B1u.behavior;if(F$a.fetchMaximumBars[F$a.layout.aggregationType] || Q4R.fetchMaximumBars){if(!F$a.maxMasterDataSize || h0W.maximumTicks < F$a.maxMasterDataSize){B1u.ticks=h0W.maximumTicks;}else {B1u.ticks=F$a.maxMasterDataSize;}B1u.fetchMaximumBars=!!1;}this.loadingNewChart=!!1;this.updatingChart=!({});B1u.originalState=S$g.shallowClone(B1u);g9y=b$y(this,B1u);if(this.stx.isEquationChart(B1u.symbol)){S$g.fetchEquationChart(B1u,g9y);}else if(Q12){S$g.ChartEngine.Driver.fetchData(S$g.QuoteFeed.INITIAL,Q12.engine,B1u,g9y);}};S$g.QuoteFeed.INITIAL=1;S$g.QuoteFeed.UPDATE=+"2";S$g.QuoteFeed.PAGINATION=3;S$g.QuoteFeed.SERIES=4;S$g.ChartEngine.Driver.fetchData=function(B2I,L57,F3P,w6N){if(!F3P.symbol){return w6N({quotes:[]});}if(L57.v2QuoteFeed){if(typeof L57.subscribe !== "function"){S$g.ChartEngine.Driver.fetchDataInContext(B2I,L57,F3P,w6N);}else {S$g.ChartEngine.Driver.fetchDataInContext(B2I,L57,F3P,(function(I3C){if(!I3C.error){this.checkSubscriptions(F3P.stx);}p_V.W3G();w6N(I3C);}).bind(L57));}}else {F3P.stx.convertToDataZone(F3P.startDate);F3P.stx.convertToDataZone(F3P.endDate);L57.fetch(F3P,w6N);}};function s9Q(){}S$g.ChartEngine.Driver.fetchDataInContext=function(f7G,f7P,n5v,o$5){var m4q,I$g,y5L,a$8,C6h,X4u,A6y,o2A,x6i,J6r;C6h=n5v.stx;if(!C6h.chart.market.newIterator){X4u="quoteFeed feature requires first acti";X4u+="vating m";X4u+="arket feature";X4u+=".";console.error(X4u);return;}if(f7G === S$g.QuoteFeed.SERIES){n5v.series=!!({});f7G=S$g.QuoteFeed.INITIAL;if(n5v.endDate && !n5v.startDate || n5v.future){f7G=S$g.QuoteFeed.PAGINATION;}else if(n5v.startDate && !n5v.endDate){f7G=S$g.QuoteFeed.UPDATE;}}A6y=Math.min(n5v.ticks,n5v.maximumTicks);if(f7P.maxTicks){A6y=Math.min(A6y,f7P.maxTicks);}o2A=n5v.symbolObject.masterSymbol || n5v.symbol;p_V.W3G();switch(f7G){case S$g.QuoteFeed.UPDATE:if(C6h.isHistoricalModeSet){C6h.quoteDriver.updatingChart=!1;return;}if(n5v.startDate){x6i=n5v.startDate;}else {x6i=new Date();p_V.s$9(1);x6i.setHours(0,0,0,p_V.V9a(0,"0"));}if(typeof f7P.fetchUpdateData === "function"){f7P.fetchUpdateData(o2A,C6h.convertToDataZone(x6i),n5v,o$5);}break;case S$g.QuoteFeed.INITIAL:a$8=n5v.endDate || new Date();m4q={begin:a$8,interval:n5v.interval,periodicity:n5v.interval == "tick"?C6h.chart.xAxis.futureTicksInterval:n5v.period,outZone:C6h.dataZone};I$g=C6h.chart.market.newIterator(m4q);y5L=S$g.ChartEngine.Driver.determineStartDate(n5v,I$g,A6y);if(n5v.endDate){a$8=n5v.endDate;}if(typeof f7P.fetchInitialData === "function"){f7P.fetchInitialData(o2A,y5L,C6h.convertToDataZone(a$8),n5v,o$5);}break;case S$g.QuoteFeed.PAGINATION:m4q={begin:n5v.endDate || n5v.startDate,interval:n5v.interval,periodicity:n5v.interval == "tick"?C6h.chart.xAxis.futureTicksInterval:n5v.period,outZone:C6h.dataZone};I$g=C6h.chart.market.newIterator(m4q);J6r=S$g.ChartEngine.Driver.determineStartOrEndDate(n5v,I$g,A6y,!n5v.future);y5L=n5v.startDate || J6r;a$8=n5v.endDate || J6r;if(!n5v.startDate){n5v.stx.convertToDataZone(a$8);}else {n5v.stx.convertToDataZone(y5L);}if(typeof f7P.fetchPaginationData === "function"){if(C6h.maxMasterDataSize && C6h.maxMasterDataSize <= C6h.masterData.length){return;}f7P.fetchPaginationData(o2A,y5L,a$8,n5v,function(I4n){if(a$8 >= Date.now()){C6h.isHistoricalModeSet=![];}if(o$5){o$5(I4n);}});}break;default:console.error("Illegal fetchData constant");}};};Y=r_j=>{var n5f;n5f=typeof _CIQ !== "undefined"?_CIQ:r_j.CIQ;n5f.ChartEngine.prototype.addSeries=function(h4V,a7K,N3t){var H1u,B4U,V2E,P3x,y1D,s$v,N6S,b_G,n__,q75,X07,M0U,l4T,n$u,Z2V,V9B,E_7,v6k;H1u="addSeri";H1u+="es";B4U=this.runPrepend(H1u,arguments);if(B4U){return B4U;}V2E=h4V?h4V:null;P3x=h4V;if(!h4V){h4V=n5f.uniqueID();}if(a7K && a7K.panel === !![]){a7K.panel=h4V;}y1D={parameters:a7K?n5f.clone(a7K):{},yValueCache:[],display:V2E,id:h4V,loading:a7K?a7K.loadData !== !"1":!!"1"};y1D.parameters.yAxis=a7K && a7K.yAxis;a7K=y1D.parameters;if(a7K.symbol){P3x=a7K.symbol;}function p0l(n5P){return function(h2m){var v26,A$O;if(!h2m.error){v26=h2m.quotes;A$O=a7K.fillGaps;if(!X07.cleanupGaps){A$O=!!0;}v26=X07.doCleanupGaps(v26,X07.chart,{cleanupGaps:A$O});X07.updateChartData(v26,X07.chart,{secondarySeries:P3x,noCreateDataSet:!![],noCleanupDates:!!({}),allowReplaceOHL:!!1});y1D.loading=!({});y1D.moreAvailable=h2m.moreAvailable;y1D.upToDate=h2m.upToDate;D3h(X07,y1D);}if(a7K.action !== null && !b_G.length){X07.dispatch(M0U?"symbolImport":"symbolChange",{stx:X07,symbol:n5P.symbol,symbolObject:n5P.symbolObject,action:a7K.action,id:y1D.id,parameters:a7K});}if(N3t){N3t.call(X07,h2m.error,y1D);}};}function D3h(K1z,g00){var H1N=i6UVR;var R2O,s_A,t6L,y1q,h8$,P9o,v1C,Z0i;R2O="L";R2O+="i";R2O+="n";R2O+="es";s_A=a7K.renderer || R2O;t6L=a7K.name || h4V;if(a7K.yAxis && !(a7K.yAxis instanceof n5f.ChartEngine.YAxis) && !M0U){a7K.yAxis.name=t6L;}if(!a7K.renderer && !a7K.name && !a7K.color && !a7K.chartType){return;}y1q=K1z.getSeriesRenderer(t6L);if(!y1q){h8$={name:t6L,overChart:a7K.overChart !== !({}),useChartLegend:!![]};if(a7K.chartType){y1q=n5f.Renderer.produce(a7K.chartType,n5f.extend({highlightable:a7K.highlightable,dependentOf:a7K.dependentOf,panel:a7K.panel,yAxis:a7K.yAxis,baseline:a7K.baseline},h8$));}else {n5f.ensureDefaults(a7K,h8$);y1q=new n5f.Renderer[s_A]({params:a7K});}P9o=-+"1330833430";v1C=-158649269;Z0i=2;for(var V5a=1;H1N.l5h(V5a.toString(),V5a.toString().length,+"31078") !== P9o;V5a++){if(!y1q){return;}H1N.O_b(42);Z0i+=H1N.V9a("2",2);}if(H1N.l5h(Z0i.toString(),Z0i.toString().length,79750) !== v1C){if(~y1q){return;}}K1z.setSeriesRenderer(y1q);}y1q.attachSeries(h4V,a7K);if(a7K.loadData !== !!""){y1q.ready();}K1z.layout.symbols=K1z.getSymbols({"include-parameters":!![],"exclude-studies":!0});K1z.changeOccurred("layout");}if(a7K.isComparison){a7K.shareYAxis=!![];}if(a7K.yAxis && !(a7K.yAxis instanceof n5f.ChartEngine.YAxis)){a7K.yAxis=new n5f.ChartEngine.YAxis(a7K.yAxis);;}n5f.ensureDefaults(a7K,{chartName:this.chart.name,symbolObject:{symbol:P3x},panel:this.chart.panel.name,fillGaps:!({}),action:"add-series"});if(("display" in a7K)){y1D.display=a7K.display;}s$v=this.charts[a7K.chartName];N6S=a7K.symbolObject;P3x=a7K.symbol=N6S.symbol;if(!y1D.display){y1D.display=P3x || a7K.field;}y1D.endPoints={};if(!a7K.gapDisplayStyle && a7K.gapDisplayStyle !== !"1"){a7K.gapDisplayStyle=a7K.gaps;}if(a7K.isComparison){if(a7K.gapDisplayStyle === undefined){a7K.gapDisplayStyle="transparent";}}b_G=this.getSeries({symbolObject:N6S,chart:s$v,includeMaster:!0});n__=a7K.panel;if(!this.panels[n__]){q75=a7K.yAxis || new n5f.ChartEngine.YAxis();q75.name=h4V;this.createPanel(h4V,n__,null,null,q75);if(!this.preferences.dragging || !this.preferences.dragging.series){a7K.highlightable=![];}}else {if(!a7K.yAxis && !a7K.shareYAxis){a7K.yAxis=new n5f.ChartEngine.YAxis({name:h4V,position:"none"});}}s$v.series[h4V]=y1D;X07=this;M0U=this.currentlyImporting;if(a7K.isComparison && s$v.forcePercentComparison && a7K.panel == s$v.panel.name && (!a7K.yAxis || a7K.yAxis == s$v.yAxis)){this.setChartScale("percent");}l4T=s$v.masterData;if(!l4T){l4T=s$v.masterData=this.masterData=[];}n$u=l4T.length;if(a7K.data && !a7K.data.useDefaultQuoteFeed){Z2V={symbol:P3x,symbolObject:N6S,action:a7K.action};p0l(Z2V)({quotes:a7K.data});}else if(b_G.length){y1D.endPoints=b_G[0].endPoints;y1D.loading=b_G[0].loading;D3h(this,y1D);if(N3t){setTimeout(function(){N3t.call(X07,null,y1D);},0);}}else if(this.quoteDriver && a7K.loadData !== !!""){V9B=this.quoteDriver;E_7=V9B.makeParams(P3x,N6S,s$v);if(n$u){E_7.startDate=l4T[0].DT;E_7.endDate=this.isHistoricalMode()?l4T[l4T.length - ("1" ^ 0)].DT:new Date();}if(E_7.stx.isEquationChart(E_7.symbol)){n5f.fetchEquationChart(E_7,p0l(E_7));}else {v6k=V9B.getQuoteFeed(E_7);if(v6k){n5f.ChartEngine.Driver.fetchData(4,v6k.engine,E_7,p0l(E_7));}}}else {D3h(this,y1D);if(N3t){N3t.call(this,null,y1D);}}this.runAppend("addSeries",arguments);return y1D;};n5f.ChartEngine.prototype.getSeries=function(D43){var L62,h$J,I4Y,y57,I3S;L62=D43.chart?D43.chart:this.chart;h$J=L62.series;I4Y=D43.symbolObject;if(!I4Y){I4Y={symbol:D43.symbol};}y57=[];for(var Q3Q in h$J){I3S=h$J[Q3Q];if(n5f.symbolEqual(I4Y,I3S.parameters.symbolObject)){y57.push(I3S);}}i6UVR.W3G();if(D43.includeMaster){if(n5f.symbolEqual(I4Y,L62.symbolObject)){y57.push({});}}return y57;};n5f.ChartEngine.prototype.modifySeries=function(s$c,Y6j,a46){var o8X,s9v,u2q,p5l,G4f,L1S,g_h,g0s,x3l,U6W,h6V,p9d,n9H,o0F,A58,s90,X2W;o8X="modi";o8X+="fySe";o8X+="rie";o8X+="s";s9v="stri";s9v+="ng";u2q="modif";u2q+="ySerie";u2q+="s";if(this.runPrepend(u2q,arguments)){return;}if(!Y6j){return;}if(typeof s$c === s9v){L1S=Y6j.chartName?this.charts[Y6j.chartName]:this.chart;G4f=s$c;p5l=L1S.series[G4f];}else {p5l=s$c;G4f=p5l.id;L1S=this.charts[p5l.parameters.chartName];}if(!p5l){return;}n5f.extend(p5l.parameters,Y6j,!0);this.getRendererFromSeries(G4f).modifyRenderer(Y6j);g_h=p5l.parameters;for(var H2i in L1S.seriesRenderers){x3l=L1S.seriesRenderers[H2i];U6W=x3l.params;h6V=x3l.seriesParams;for(var L$G=0;L$G < h6V.length;++L$G){p9d=h6V[L$G];n9H=this.panels[p9d.panel];o0F=n9H && n9H.yAxis.name;if(p9d.id === p5l.id){if(g_h.panel === !!({})){g_h.panel=g_h.dependentOf || g_h.name;}U6W.panel=g_h.panel;if(Y6j.yAxis){if(!(Y6j.yAxis instanceof n5f.ChartEngine.YAxis)){Y6j.yAxis=new n5f.ChartEngine.YAxis(Y6j.yAxis);;}U6W.yAxis=Y6j.yAxis;}if(g_h.panel != p9d.panel && U6W.name == o0F){this.electNewPanelOwner(p9d.panel);;}else {A58=this.getYAxisByName(g_h.panel,U6W.name);if(A58 && g_h.yAxis && A58.name !== g_h.yAxis.name){A58.name=this.electNewYAxisOwner(A58);}}if(!g_h.field){g_h.field=null;}x3l.attachSeries(G4f,n5f.ensureDefaults(g_h,p9d));if(!g_h.field){g_h.field=g_h.subField;}delete g_h.subField;if(g_h.isComparison && L1S.forcePercentComparison && g_h.panel == L1S.panel.name && (!p5l.parameters.yAxis || g_h.yAxis.name == L1S.yAxis.name)){this.setChartScale("percent");}g0s=x3l;break;}}}this.changeOccurred("layout");n5f.getFn("Drawing.updateSource")(this,p5l.parameters.symbol || G4f,null,p5l.parameters.panel);this.runAppend(o8X,arguments);if(a46 !== !!1){s90=g0s.getDependents(this);for(var l34=0;l34 < s90.length;l34++){this.modifySeries(s90[l34].params.name,{panel:g0s.params.panel,yAxis:p5l.parameters.yAxis},!!({}));}X2W=L1S.seriesRenderers[g0s.params.dependentOf];if(X2W){if(X2W.params.yAxis != p5l.parameters.yAxis || X2W.params.panel != g0s.params.panel){this.modifySeries(g0s.params.dependentOf,{panel:g0s.params.panel,yAxis:p5l.parameters.yAxis},!0);}}}this.draw();return p5l;};n5f.ChartEngine.prototype.deleteSeries=function(T1w,l8t,I1C){var t_I,E4D,h7I,F_Y,C_y,b9l,f6H,N0S,f3X,J1k;t_I="symbolCha";t_I+="nge";E4D="o";i6UVR.W5N();E4D+="bject";h7I="re";h7I+="mov";h7I+="e-seri";h7I+="es";if(this.runPrepend("deleteSeries",arguments)){return;}I1C=I1C?I1C:{};F_Y=I1C.action?I1C.action:h7I;if(typeof T1w === E4D){C_y=T1w.id;l8t=l8t || this.charts[T1w.parameters.chartName];}else {C_y=T1w;l8t=l8t || this.chart;}b9l=l8t.series[C_y];if(!b9l){return;}f6H=b9l.parameters.loadData;N0S=b9l.parameters.symbolObject;delete l8t.series[C_y];f3X=this.getSeries({symbolObject:N0S,includeMaster:!![]});if(f6H === !!0){f3X.push(C_y);}if(!f3X.length){this.cleanMasterData(N0S,l8t);}J1k=this.panels[b9l.parameters.panel];if(J1k){this.checkForEmptyPanel(J1k);}this.createDataSet();if(!f3X.length){this.dispatch(this.currentlyImporting?"symbolImport":t_I,{stx:this,symbol:N0S.symbol,symbolObject:N0S,id:C_y,action:F_Y});}if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}this.runAppend("deleteSeries",arguments);};n5f.ChartEngine.prototype.removeSeries=function(o8j,y4s){var A4b,P1R,A6g,s_9,i$z,X0d,t_B,O7u;A4b="removeSerie";A4b+="s";if(this.runPrepend("removeSeries",arguments)){return;}A6g=!({});if(typeof o8j === "object"){P1R=o8j.id;y4s=y4s || this.charts[o8j.parameters.chartName];}else {P1R=o8j;y4s=y4s || this.chart;}for(var N5g in y4s.seriesRenderers){s_9=y4s.seriesRenderers[N5g];i$z=this.panels[s_9.params.panel];X0d=i$z && i$z.yAxis.name;for(var i_Z=s_9.seriesParams.length - 1;i_Z >= 0;i_Z--){t_B=s_9.seriesParams[i_Z];if(t_B.id === P1R){s_9.removeSeries(P1R);if(s_9.seriesParams.length < 1){this.removeSeriesRenderer(s_9);if(s_9.params.name == X0d){this.electNewPanelOwner(s_9.params.panel);}else {if(!this.checkForEmptyPanel(s_9.params.panel)){O7u=this.getYAxisByName(i$z,s_9.params.name);if(O7u){O7u.name=O7u.studies[0] || O7u.renderers[+"1"];}}}}A6g=!![];}}}if(!A6g){this.deleteSeries(P1R,y4s);}this.resetDynamicYAxis();this.draw();this.resizeChart();this.runAppend(A4b,arguments);};n5f.Comparison=n5f.Comparison || (function(){});n5f.Comparison.initialPrice=100;n5f.Comparison.getInitialPrice=function(w1g){var Q0D,C1v,S9x,m9e;Q0D="n";i6UVR.W3G();Q0D+="um";Q0D+="be";Q0D+="r";if(w1g.initialComparisonPrice){return w1g.initialComparisonPrice;}w1g.initialComparisonPrice=100;C1v=n5f.Comparison.initialPrice;if(typeof C1v == Q0D){w1g.initialComparisonPrice=C1v;}if(typeof C1v == "string"){if(w1g.series[C1v] || C1v === ""){S9x="Close";if(w1g.defaultPlotField){if(!w1g.highLowBars){S9x=w1g.defaultPlotField;}}for(var e8o=w1g.dataSet.length - w1g.scroll - 1;e8o < w1g.dataSet.length;e8o++){m9e=w1g.dataSet[e8o];if(m9e){if(m9e[C1v] && m9e[C1v][S9x]){w1g.initialComparisonPrice=m9e[C1v][S9x];break;}else if(C1v === "" && m9e[S9x]){w1g.initialComparisonPrice=m9e[S9x];break;}}}}}return w1g.initialComparisonPrice;};n5f.Comparison.priceToPercent=function(L1I,m4w,S1t){var p1h=i6UVR;var s2m;s2m=n5f.Comparison.baseline || S1t;p1h.W5N();p1h.s$9(71);var l7W=p1h.v$j(10014,14,130066,18,8);p1h.s$9(27);var K9C=p1h.V9a(10,20,1590120,160000,14);return Math.round((S1t - s2m) / s2m * +"100" * l7W) / K9C;};n5f.Comparison.percentToPrice=function(P99,a0s,S0z){var B3m;B3m=n5f.Comparison.baseline || 1;i6UVR.O_b(97);return i6UVR.V9a(S0z,100,"1",B3m);};n5f.Comparison.priceToRelative=function(W$5,a$E,u4i){var S_8,E08;S_8=n5f.Comparison.baseline || u4i;E08=n5f.Comparison.getInitialPrice(a$E);i6UVR.s$9(98);return i6UVR.v$j(u4i,E08,S_8);};n5f.Comparison.relativeToPrice=function(Q2I,L8$,k4d){var r54,S8X;r54=n5f.Comparison.baseline || "1" ^ 0;i6UVR.W3G();S8X=n5f.Comparison.getInitialPrice(L8$);i6UVR.s$9(98);return i6UVR.V9a(k4d,r54,S8X);};n5f.Comparison.createComparisonSegmentInner=function(r0p,X58){var e0j=i6UVR;var w7U,W3T,k7V,t87,Z9I,y0X,c_e,W9E,y3s,e_6,j69,O6G,W9a,h1F,Z9d,x2I,s6i,Q3C,H8c,l6Q,Y2x,n8r,N8Q,h2M;w7U=[];e0j.W3G();for(W3T in X58.series){Z9I=X58.series[W3T].parameters;if(Z9I.isComparison){w7U.push(Z9I.symbol);}}y0X=["Close","Open","High","Low","iqPrevClose"];c_e=r0p.chart.highLowBars;if(X58.defaultPlotField && !c_e){y0X.unshift(X58.defaultPlotField);}W9E=y0X[0];y3s=r0p.layout.studies;for(var x$E in y3s){e_6=y3s[x$E];k7V=r0p.panels[e_6.panel];t87=e_6.getYAxis(r0p);if(!k7V || k7V.yAxis != t87)continue;for(W3T in e_6.outputMap){y0X.push(W3T);}for(var B1N=0;B1N <= 2;B1N++){y0X.push(e_6.name + "_hist" + (B1N?B1N:""));}if(e_6.referenceOutput){y0X.push(e_6.referenceOutput + ((3912,+"217.38") < 8162?8257 != (17.64,931)?" ":("k",3.77e+3):3.73e+3) + e_6.name);}}for(var b$8 in r0p.plugins){j69=r0p.plugins[b$8];if(!j69.transformOutputs)continue;for(W3T in j69.transformOutputs){y0X.push(W3T);}}X58.initialComparisonPrice=null;X58.dataSegment=[];O6G=null;e0j.s$9(99);var P4i=e0j.V9a(2,31,15);W9a=X58.dataSet.length - X58.scroll - P4i;if(r0p.startComparisonsAtFirstVisibleBar){W9a+=1;}e0j.O_b(1);var H61=e0j.v$j(17,20);h1F=X58.maxTicks + H61;for(var F20=0;F20 <= h1F;F20++){if(F20 == h1F){F20=-1;}e0j.O_b(0);Z9d=e0j.V9a(W9a,F20);if(Z9d < X58.dataSet.length && Z9d >= 0){x2I=X58.dataSet[Z9d];s6i=x2I[W9E];if(!O6G){if(s6i === 0 || s6i === null){if(F20 < 0)break;else continue;;}O6G=n5f.clone(x2I);}if(!x2I.transform){x2I.transform={cache:{},DT:x2I.DT,Date:x2I.Date};}if(!n5f.Comparison.baseline && s6i){O6G=n5f.clone(x2I);}n5f.Comparison.baseline=O6G[W9E];for(Q3C="0" ^ 0;Q3C < y0X.length;Q3C++){W3T=y0X[Q3C];if(x2I[W3T] || x2I[W3T] === 0){x2I.transform[W3T]=X58.transformFunc(r0p,X58,x2I[W3T]);}}for(Q3C=+"0";Q3C < w7U.length;Q3C++){W3T=w7U[Q3C];H8c=X58.series[W3T];if(F20 == -1 && H8c && H8c.parameters.isComparison){delete x2I.transform[W3T];continue;}l6Q=x2I[W3T];for(var F3_=0;l6Q && F3_ < y0X.length;F3_++){Y2x=l6Q[y0X[F3_]];if(Y2x || Y2x === 0){n8r=O6G[W3T] && O6G[W3T][y0X[0]];if(!n8r && n8r !== 0){if(!O6G[W3T]){O6G[W3T]={};}O6G[W3T][y0X[F3_]]=n8r=Y2x * n5f.Comparison.baseline / x2I[W9E];}if(n8r !== 0){N8Q=n5f.Comparison.baseline || +"1";e0j.O_b(100);h2M=e0j.V9a(Y2x,n8r,N8Q);if(!x2I.transform[W3T]){x2I.transform[W3T]={};}x2I.transform[W3T][y0X[F3_]]=X58.transformFunc(r0p,X58,h2M);}}}}X58.dataSegment.push(x2I);}else if(Z9d < 0){X58.dataSegment.push(null);}if(F20 < 0)break;;}};n5f.Comparison.priceFormat=function(d2B,S_5,W8E){var g04=i6UVR;var w6Y,r81;g04.W5N();if(W8E === null || typeof W8E == "undefined" || isNaN(W8E)){return "";}w6Y=S_5.yAxis.priceTick;r81=d2B.internationalizer;if(r81){if(w6Y >= 5){g04.s$9(9);W8E=r81.percent.format(g04.V9a(W8E,100));}else if(w6Y >= 0.5){g04.O_b(9);W8E=r81.percent1.format(g04.v$j(W8E,100));}else if(w6Y >= 0.05){g04.O_b(9);W8E=r81.percent2.format(g04.V9a(W8E,100));}else if(w6Y >= 0.005){g04.O_b(9);W8E=r81.percent3.format(g04.v$j(W8E,100));}else {g04.s$9(101);W8E=r81.percent4.format(g04.v$j("100",1,W8E));}}else {if(w6Y >= 5){W8E=W8E.toFixed(0) + "%";}else if(w6Y >= "0.5" * 1){g04.O_b(1);var L7H=g04.v$j(9,10);W8E=W8E.toFixed(L7H) + (62.99 === 173.85?401.60:"%");}else if(w6Y >= 0.05){g04.s$9(102);var a2F=g04.v$j(0,6,38,19,11);g04.s$9(103);var N5Q=g04.v$j(9,5,14,56,6);g04.s$9(0);var M1U=g04.V9a(216,3678);g04.s$9(1);var I8H=g04.V9a(35651,40744);g04.s$9(1);var x9z=g04.v$j(11,9461);W8E=W8E.toFixed(a2F) + (("24" * N5Q,M1U) === (+"175",I8H)?x9z:"%");}else if(w6Y >= 0.005){g04.O_b(104);var I$e=g04.v$j(4,16,15,0);W8E=W8E.toFixed(I$e) + "%";}else {g04.s$9(105);var h6m=g04.v$j(12,7,66,7,1);g04.O_b(106);var y$1=g04.v$j(104,20,19,16,9);g04.s$9(107);var Q2V=g04.v$j(13,5859,1,20,367);W8E=W8E.toFixed(h6m) + ((909.67,520.67) == ("307.39" * y$1,716.94)?(![],Q2V):"%");}}if(parseFloat(W8E) === 0 && W8E.charAt(+"0") == (("6365" ^ 0,+"940.61") !== 699.81?"-":+"295.21")){W8E=W8E.substring(1);}return W8E;};n5f.ChartEngine.prototype.setComparison=function(p8c,N9a,x5d){var k7I,h9_,d8U,J8r,o0L;k7I="perce";k7I+="nt";h9_="rel";h9_+="a";h9_+="tive";d8U="s";d8U+="tr";d8U+="i";d8U+="ng";if(!N9a){N9a=this.chart;}if(typeof N9a == d8U){N9a=this.charts[N9a];}if(x5d || x5d === ""){n5f.Comparison.initialPrice=x5d;}if(p8c === !![]){if(N9a.isComparison){return;}p8c="percent";}this.resetDynamicYAxis();J8r=N9a.panel.yAxis;o0L=J8r.priceFormatter == n5f.Comparison.priceFormat;switch(p8c){case h9_:this.setTransform(N9a,n5f.Comparison.priceToRelative,n5f.Comparison.relativeToPrice);if(o0L){J8r.priceFormatter=J8r.originalPriceFormatter?J8r.originalPriceFormatter.func:null;J8r.originalPriceFormatter=null;}J8r.whichSet="dataSegment";N9a.isComparison=!![];break;case k7I:this.setTransform(N9a,n5f.Comparison.priceToPercent,n5f.Comparison.percentToPrice);if(!o0L){J8r.originalPriceFormatter={func:J8r.priceFormatter};J8r.priceFormatter=n5f.Comparison.priceFormat;}J8r.whichSet="dataSegment";N9a.isComparison=!!({});break;default:this.unsetTransform(N9a);if(o0L){J8r.priceFormatter=J8r.originalPriceFormatter?J8r.originalPriceFormatter.func:null;J8r.originalPriceFormatter=null;}J8r.whichSet="dataSet";N9a.isComparison=![];break;}};n5f.ChartEngine.prototype.setChartScale=function(E1c){var M5Z,Y$o;M5Z=this.chart;Y$o={percent:!0,relative:!!({})};if(!E1c){E1c="linear";}if(Y$o[E1c]){this.setComparison(E1c,M5Z,n5f.Comparison.initialPrice);}else if(Y$o[this.layout.chartScale]){this.setComparison(![],M5Z);}this.layout.chartScale=E1c;if(M5Z.canvas){this.draw();}this.changeOccurred("layout");};};g=S8Y=>{var c6m,j71;function C2V(){var Q3P,Q0s,i5b;if(c6m.Share.html2canvasLocation){return c6m.Share.html2canvasLocation;}i6UVR.W3G();Q3P=document.getElementsByTagName("script");for(var X_2=0;X_2 < Q3P.length;X_2++){Q0s=Q3P[X_2];if(Q0s.src && Q0s.src.indexOf("share.js") > -1){i5b="third";i5b+="par";i5b+="ty/";return Q0s.src.replace(/standard\/share\.js/,"") + i5b;}}return "js/thirdparty/";}c6m=typeof _CIQ !== "undefined"?_CIQ:S8Y.CIQ;c6m.Share=c6m.Share || (function(){});c6m.Share.FullChart2PNG=function(U3B,A9K,m1Y){i6UVR.W3G();if(!U3B || !U3B.chart){return;}if(typeof html2canvas === "undefined"){return y2T(function(){i6UVR.W3G();return I6y(U3B,A9K,m1Y);});}j71=html2canvas;I6y(U3B,A9K,m1Y);};c6m.Share.createImage=function(r0s,s84,z8s){var b7R=i6UVR;var b8w,X$V,W1W,v$s,F2u,q4W,z_Y,m$$,c6t,i1Y,u2C,j2h,l8Z,H2P,t8D;b8w="i";b8w+="m";b8w+="g";X$V=[].slice.call(arguments);z8s=X$V.pop();if(s84 === null || typeof s84 != "object"){s84={widthPX:X$V[1],heightPX:X$V[2],imageType:X$V[+"3"]};}W1W=s84.widthPX;v$s=s84.heightPX;F2u=s84.imageType;q4W=r0s.chart.canvas.height;z_Y=r0s.chart.canvas.width;if(r0s.chart.canvas.style.height){q4W=c6m.stripPX(r0s.chart.canvas.style.height);z_Y=c6m.stripPX(r0s.chart.canvas.style.width);}if(W1W && v$s){m$$=-1365210961;c6t=-209622214;i1Y=2;for(var b6s="1" ^ 0;b7R.m6F(b6s.toString(),b6s.toString().length,8753) !== m$$;b6s++){q4W=v$s;z_Y=W1W;i1Y+=2;}if(b7R.m6F(i1Y.toString(),i1Y.toString().length,+"63253") !== c6t){q4W=v$s;z_Y=W1W;}}else if(v$s){u2C=-1835035992;b7R.s$9(29);j2h=-b7R.V9a("1583007615",0);l8Z=2;for(var w5m=1;b7R.m6F(w5m.toString(),w5m.toString().length,48631) !== u2C;w5m++){z_Y=r0s.chart.canvas.width + (q4W - r0s.chart.canvas.height);l8Z+=2;}if(b7R.m6F(l8Z.toString(),l8Z.toString().length,63192) !== j2h){z_Y=r0s.chart.canvas.width * (q4W / r0s.chart.canvas.height);}}else if(W1W){z_Y=W1W;q4W=r0s.chart.canvas.height * (W1W / r0s.chart.canvas.width);}H2P=F2u?"image/" + F2u:"image/png";t8D=document.createElement(b8w);t8D.onload=function(){c6m.Share.FullChart2PNG(r0s,{image:this,width:z_Y,height:q4W,hide:s84.hide},function(x6s,O6z){var E5G;b7R.W3G();if(x6s){E5G="Error producing";E5G+=" canvas snapshot: ";b7R.O_b(0);console.warn(b7R.v$j(E5G,x6s));}else {try{z8s(O6z.toDataURL(H2P));;}catch(h4X){var j6R,Q2Y,l8r;j6R=1709647944;Q2Y=-1990266272;l8r=2;for(var O13=1;b7R.m6F(O13.toString(),O13.toString().length,56683) !== j6R;O13++){console.warn("");z8s(t8D.src);l8r+=2;}if(b7R.l5h(l8r.toString(),l8r.toString().length,12654) !== Q2Y){console.warn("");z8s(t8D.src);}console.warn("Safari devices do not handle CORS enabled images. Using the charts' canvas as a fallback.");z8s(t8D.src);}}});};t8D.src=r0s.chart.canvas.toDataURL(H2P);};function n0H(V$v){var s_e,I9H,O9p,S9v,Z$X;s_e="tex";s_e+="t-align";I9H="fo";I9H+="nt-weight";O9p="f";O9p+="ill";if(!V$v.style){return;}S9v=getComputedStyle(V$v);Z$X=["alignment-baseline","dominant-baseline",O9p,"fill-opacity","font-family","font-size","font-variant",I9H,s_e,"text-anchor"];Z$X.forEach(function(Q1w){i6UVR.W3G();if(!V$v.style[Q1w] && S9v[Q1w]){V$v.style[Q1w]=S9v[Q1w];}});for(var v06 in V$v.children){n0H(V$v.children[v06]);}}c6m.Share.uploadImage=function(L10,w3y,W8A,S1I){var n$S;if(!W8A){W8A={};}W8A.image=L10;n$S=c6m.postAjax(w3y,JSON.stringify(W8A),function(X4V,h3v){i6UVR.W3G();if(X4V != 200){S1I(X4V,null);return;}S1I(null,h3v);});if(!n$S){S1I(0,null);}};function I6y(j1j,F3E,d1c){var B2P,v5t,Q2c,k_Y,F6w,g$8,B2y,X7K,H9l,p1r;i6UVR.W3G();B2P="s";B2P+="v";B2P+="g";if(!F3E){F3E={};}v5t=[];Q2c="ciq-no-share";k_Y=document.querySelector("body");if(F3E.hide && F3E.hide instanceof Array){F6w=F3E.hide.join(", ");g$8=document.querySelectorAll(F6w);for(var l_5=0;l_5 < g$8.length;l_5++){g$8[l_5].classList.add(Q2c);}}k_Y.classList.add("sharing");B2y=j1j.chart.container.getElementsByTagName(B2P);X7K=[];H9l=+"0";for(;H9l < B2y.length;H9l++){p1r=B2y[H9l];X7K.push(p1r.innerHTML);n0H(p1r);}j71(j1j.chart.container,{allowTaint:![],logging:!"1",width:F3E.width || null,height:F3E.height || null,backgroundColor:F3E.background || null,useCORS:!![]}).then(function(L0s){var m4t;m4t="shar";m4t+="i";m4t+="n";m4t+="g";if(d1c){d1c(null,F3E.data?L0s.toDataURL("image/png"):L0s);}for(H9l=0;H9l < B2y.length;H9l++){B2y[H9l].innerHTML=X7K[H9l];}k_Y.classList.remove(m4t);}).catch(function(x4U){var I6P;I6P="sh";I6P+="aring";if(d1c){d1c(x4U);}for(H9l=0;H9l < B2y.length;H9l++){B2y[H9l].innerHTML=X7K[H9l];}k_Y.classList.remove(I6P);});}c6m.Share.shareChart=function(u8X,g5L,W6N){var d1K=i6UVR;d1K.W3G();c6m.Share.createImage(u8X,{},function(j3N){var n$v,A76,j6W,e8G,D7W,K4B;n$v=c6m.uniqueID();A76="https:/";A76+="/share.chartiq.co";A76+="m";d1K.O_b(35);j6W=d1K.V9a("/upload/",n$v,A76);if(g5L){if(g5L.host){A76=g5L.host;}if(g5L.path){d1K.O_b(0);var y1z=d1K.V9a(8588,15);d1K.s$9(0);var J_p=d1K.v$j(9931,19);d1K.O_b(108);var p2H=d1K.V9a(20,2345,53920,5,6);d1K.s$9(109);var m8f=d1K.v$j(31,15,1,1,17);d1K.O_b(26);var F5T=d1K.V9a(5383,8,4325,5);d1K.O_b(37);var N1Z=d1K.V9a(9,6,7845);d1K.O_b(110);var U8C=d1K.v$j(8236,14,1,16,12);d1K.O_b(111);var m7H=d1K.V9a(3,2,564,477);j6W=A76 + g5L.path + (139.87 == (y1z,J_p)?(p2H,"808.95" * m8f) >= (F5T,N1Z)?(U8C,"D"):m7H:"/") + n$v;}}e8G=u8X.getStartDateOffset();D7W={layout:u8X.exportLayout(),drawings:u8X.exportDrawings(),xOffset:e8G,startDate:u8X.chart.dataSegment[e8G].Date,endDate:u8X.chart.dataSegment[u8X.chart.dataSegment.length - 1].Date,id:n$v,symbol:u8X.chart.symbol};K4B={id:n$v,image:j3N,config:D7W};c6m.Share.uploadImage(j3N,j6W,K4B,function(W5c,w46){if(W5c !== null){c6m.alert("error sharing chart: ",W5c);}else {d1K.O_b(0);W6N(d1K.v$j(A76,w46));}});;});};function y2T(I6Y){var X4h,S8i;X4h="unde";i6UVR.W5N();X4h+="fi";X4h+="ned";if(typeof html2canvas === X4h){S8i="unde";S8i+="fi";S8i+="n";S8i+="ed";if(typeof requirejs !== S8i){try{return requirejs(["html2canvas.min.js"],function(v39){j71=v39;return I6Y();});}catch(Y3C){console.warn("Require loading has failed, attempting to load html2canvas manually.");}}c6m.loadScript(C2V() + "html2canvas.min.js",function(){j71=html2canvas;return I6Y();});}else {j71=html2canvas;return I6Y();}}};K=j2G=>{var Y5X=i6UVR;Y5X.W5N();var Q5n;Q5n=typeof _CIQ !== "undefined"?_CIQ:j2G.CIQ;Q5n.ChartEngine.prototype.setRange=function(q3W,s1k){var n3d,O5N,A_M,r68,k3B,I$3,j9S,y8a,P0Q,j1d,v33,c$l,K8k,e3U,L5U,B14,P3_,H0c,h$p,q3A,t02,a3p,X0y,K5D,Z6J,w7G,l3w,t3E,f7f,z$b,g98,z5e,b$G,C55,K$8,Q5W,J6z,I_v,H4B,X5v;n3d="st";n3d+="ri";function j7L(f1X,j28,H6q,o17,i6i,E0n){var k9f,L_5;Y5X.s$9(39);k9f=Y5X.v$j("0",0);Y5X.O_b(1);L_5=Y5X.v$j(j28,f1X);if(Q5n.ChartEngine.isDailyInterval(H6q)){if(H6q == "month"){k9f=L_5 / Q5n.MONTH / o17;}else if(H6q == "week"){k9f=L_5 / Q5n.WEEK / o17;}else {k9f=L_5 / Q5n.DAY / o17;}}else {if(!isNaN(H6q)){if(i6i == "millisecond"){Y5X.s$9(101);k9f=Y5X.v$j(o17,H6q,L_5);}else if(i6i == "second"){k9f=L_5 / Q5n.SECOND / (o17 * H6q);}else {k9f=L_5 / Q5n.MINUTE / (o17 * H6q);}}}return Math.round(k9f);;}n3d+="ng";if(Q5n.isEmpty(q3W)){q3W={dtLeft:arguments[0],dtRight:arguments[1],padding:arguments[2],chart:arguments["3" | 1]};O5N=-985953697;A_M=-549256637;r68=2;for(var J3F=1;Y5X.l5h(J3F.toString(),J3F.toString().length,86618) !== O5N;J3F++){s1k=arguments[1];r68+=2;}if(Y5X.m6F(r68.toString(),r68.toString().length,55147) !== A_M){s1k=arguments[4];}}if(this.staticRange){q3W.goIntoPast=q3W.goIntoFuture=!"";}if(!q3W.chart){q3W.chart=this.chart;}if(typeof q3W.padding == "undefined"){q3W.padding=0;}function i2j(w80){var F7l;if(w80 && v33 === 0){I$3.scroll=Z6J;j1d.setCandleWidth(w7G);j1d.layout.interval=l3w;j1d.layout.periodicity=t3E;j1d.layout.timeUnit=f7f;if(s1k){s1k(w80);}return;}v33++;if(v33 > 10){F7l="CIQ.ChartEngine.setRan";F7l+="ge(): Too many loads (10) from server. Stopping. Check periodicity log";F7l+="ic.";console.log(F7l);f96();return;}f96();;}k3B=!({});Y5X.W5N();I$3=q3W.chart;j9S=typeof q3W.dtLeft === n3d?new Date(q3W.dtLeft):q3W.dtLeft;y8a=new Date();function f96(K1q){var b_g,s5Z,o_7,M4o,J6R,w9t,x04,N7O,q9l,I8k,y1A,P3Z,E1Y,F56,E5h,P9X,w7H,j7y,t62,u3D;b_g="l";b_g+="a";b_g+="y";b_g+="out";if(typeof K1q == "undefined"){K1q=null;}s5Z=0;Y5X.s$9(2);o_7=Y5X.V9a(1,"0");M4o=new Date();J6R=q3W.base;Y5X.W5N();w9t=q3W.periodicity;x04=j1d.layout;if(q3W.goIntoFuture && (!I$3.masterData.length || j9S > I$3.masterData[I$3.masterData.length - 1].DT)){N7O=I$3.masterData.length?I$3.masterData.pop():{DT:j9S};q9l=j1d.doCleanupGaps([N7O,{DT:y8a}],I$3,{cleanupGaps:"gap",noCleanupDates:!0});j1d.setMasterData(I$3.masterData.concat(q9l),I$3,{noCleanupDates:!!({})});j1d.createDataSet(null,null,{appending:!!({})});}I8k=I$3.dataSet;y1A=I8k.length;if(!I8k || y1A === 0){if(s1k){s1k(K1q);}return;}if(J6R === "day" && w9t && w9t.interval === "day"){E1Y=q3W.multiplier;s5Z=y1A < E1Y?0:y1A - E1Y;Y5X.s$9(1);o_7=Y5X.V9a(1,y1A);}else if(J6R === "today" && I8k[y1A - 1].DT.getDate() < M4o.getDate()){F56=new Date(I8k[y1A - 1].DT.getTime());E5h=F56.getTime();P3Z=0;for(var s64=y1A - 1;s64 >= 0;s64--){if(I8k[s64] && I8k[s64].DT.getDate() != F56.getDate()){F56=new Date(+I8k[s64 + 1].DT);Y5X.O_b(6);P3Z=Y5X.v$j(s64,"1");break;}}s5Z=P3Z;Y5X.O_b(1);o_7=Y5X.v$j(1,y1A);}else {P9X="a";P9X+="l";P9X+="l";if(q3W.base != "all" && (j9S.getTime() >= I8k[0].DT.getTime() || q3W.goIntoPast)){s5Z=j1d.tickFromDate(j9S,I$3,null,!![]);}else {s5Z=+"0";}if(q3W.base != P9X && (y8a.getTime() <= I8k[y1A - ("1" ^ 0)].DT.getTime() || q3W.goIntoFuture)){o_7=j1d.tickFromDate(y8a,I$3);if(o_7 > y1A - 1){o_7--;};}else {Y5X.s$9(36);o_7=Y5X.v$j("1",y1A);}}Y5X.O_b(112);w7H=Y5X.v$j(0,s5Z,"1",o_7);if(w7H < 1){if(s1k){s1k(K1q);}return;}j7y=q3W.padding || 0;if(o_7 < y1A - 1){Y5X.s$9(29);j7y=Y5X.v$j("0",32);}t62=(I$3.width - j7y) / w7H;j1d.setCandleWidth(t62,I$3);Y5X.O_b(113);I$3.scroll=Y5X.v$j(1,y1A,o_7,w7H);Y5X.s$9(42);j1d.micropixels=Y5X.V9a("1",1);for(var D2C in j1d.panels){j1d.calculateYAxisMargins(j1d.panels[D2C].yAxis);}if(!q3W.dontSaveRangeToLayout){delete q3W.chart;delete x04.setSpan;x04.range=q3W;;}else {delete x04.range;}j1d.draw();j1d.changeOccurred(b_g);if(!k3B){u3D="periodi";u3D+="ci";u3D+="ty";j1d.dispatch(u3D,{stx:j1d,differentData:z$b,prevPeriodicity:{interval:l3w,periodicity:t3E,timeUnit:f7f}});}if(s1k){s1k(K1q);}}if(q3W.dtRight){y8a=typeof q3W.dtRight === "string"?new Date(q3W.dtRight):q3W.dtRight;}if(!j9S){P0Q=this.standardMarketIterator(y8a,null,I$3);j9S=P0Q.previous(I$3.maxTicks);if(!q3W.periodicity){k3B=!!({});}}I$3.inflectionPoint=j9S;this.layout.range={dtLeft:j9S,dtRight:y8a};j1d=this;v33=0;if(this.quoteDriver){if(k3B){c$l=this.layout.interval;e3U=this.layout.timeUnit;K8k=this.layout.periodicity;}else if(q3W.periodicity){L5U=Q5n.cleanPeriodicity(q3W.periodicity.period,q3W.periodicity.interval,q3W.periodicity.timeUnit);c$l=L5U.interval;e3U=L5U.timeUnit;K8k=L5U.period;}else {B14=y8a.getTime() - j9S.getTime();if(!this.autoPickCandleWidth.turnOn){P3_=this.staticRangePeriodicityMap;H0c=null;for(var q8Y=0;q8Y < P3_.length;q8Y++){h$p=P3_[q8Y];if(B14 / h$p.rangeInMS < 1.001){H0c=h$p;break;}}c$l=H0c.interval;K8k=H0c.periodicity;e3U=H0c.timeUnit;}else {q3A=0;if(this.autoPickCandleWidth.candleWidth){q3A=this.autoPickCandleWidth.candleWidth;}else {q3A=this.chart.barsHaveWidth?5:2;}t02=I$3.width / q3A;a3p=this.dynamicRangePeriodicityMap;c$l=a3p[0].interval;K8k=1;for(var v6m=0;v6m < a3p.length;v6m++){K5D=B14 / a3p[v6m].rangeInMS;if(K5D < t02){if(a3p[v6m - 1]){c$l=a3p[v6m - 1].interval;e3U=a3p[v6m - 1].timeUnit;Y5X.s$9(9);K8k=Math.ceil(Y5X.V9a(X0y,t02));}else {c$l=a3p[v6m].interval;e3U=a3p[v6m].timeUnit;K8k=1;}break;}X0y=K5D;}}}Z6J=this.chart.scroll;w7G=this.layout.candleWidth;l3w=this.layout.interval;t3E=this.layout.periodicity;f7f=this.layout.timeUnit;this.chart.scroll=this.chart.maxTicks=j7L(y8a.getTime(),j9S.getTime(),c$l,K8k,e3U,this.dontRoll);this.layout.candleWidth=this.chart.width / this.chart.maxTicks;z$b=this.needDifferentData({period:K8k,interval:c$l,timeUnit:e3U});if(Object.keys(this.chart.endPoints).length && (this.chart.endPoints.begin > j9S || this.chart.endPoints.end < y8a)){z$b=!!({});}if(!this.chart.masterData || !this.chart.masterData.length || z$b || q3W.forceLoad){g98="w";g98+="e";g98+="e";g98+="k";z5e="mon";z5e+="th";this.layout.interval=c$l;this.layout.periodicity=K8k;this.layout.timeUnit=e3U;if(!this.layout.timeUnit){b$G="minut";b$G+="e";C55="sec";C55+="o";C55+="n";C55+="d";if(Q5n.ChartEngine.isDailyInterval(this.layout.interval)){this.layout.timeUnit=null;}else if(this.layout.interval == "second"){this.layout.timeUnit=C55;}else if(this.layout.interval != "tick"){this.layout.timeUnit=b$G;}}K$8={symbol:I$3.symbol,symbolObject:I$3.symbolObject,chart:I$3,nodraw:!!({})};if(this.layout.interval == "tick"){K$8.startDate=j9S;K$8.endDate=y8a;}if(!this.displayInitialized){K$8.initializeChart=!![];}Q5W={symbol:I$3.symbol,symbolObject:I$3.symbolObject,interval:this.layout.interval};if((Q5W.interval == z5e || Q5W.interval == g98) && !this.dontRoll){Y5X.O_b(29);J6z=-Y5X.v$j("476796062",32);I_v=-1890089088;H4B=2;for(var r2e=1;Y5X.l5h(r2e.toString(),r2e.toString().length,"71383" | 16) !== J6z;r2e++){Q5W.interval="";H4B+=2;}if(Y5X.m6F(H4B.toString(),H4B.toString().length,"63526" ^ 0) !== I_v){Q5W.interval="day";}}X5v=Math.max(this.quoteDriver.getQuoteFeed(Q5W).behavior.bufferSize + 50,200);P0Q=this.standardMarketIterator(j9S,null,I$3);K$8.startDate=new Date(P0Q.previous(X5v).getTime());P0Q=this.standardMarketIterator(y8a,null,I$3);K$8.endDate=new Date(P0Q.next(X5v).getTime());if(K$8.endDate < Date.now()){this.isHistoricalModeSet=!!"1";}this.clearCurrentMarketData(this.chart);clearTimeout(this.streamParameters.timeout);this.quoteDriver.newChart(K$8,i2j);}else {if(this.layout.interval != c$l || this.layout.periodicity != K8k || this.layout.timeUnit != e3U || !this.chart.dataSegment || !this.chart.dataSegment[0] || this.chart.dataSegment[0].DT != I$3.inflectionPoint){this.layout.interval=c$l;this.layout.periodicity=K8k;this.layout.timeUnit=e3U;this.createDataSet();}i2j();}}else {f96();}};Q5n.ChartEngine.prototype.setSpan=function(u1p,c50){var E0t,d8a,F2P,F6X,A27,Q$h,j$n,D$K,e_C,O_U,u8f,B3X,Y_U,h$k,k8i,K9y,B9Q,J1S,U0S,X3m,J4k;E0t="da";E0t+="y";d8a="we";d8a+="ek";F2P="a";F2P+="ll";F6X="obj";F6X+="ec";F6X+="t";A27=arguments[0];Q$h=arguments[1];j$n=arguments[2];D$K=arguments[3];if(typeof u1p == F6X){A27=u1p.period?u1p.period:u1p.multiplier?u1p.multiplier:1;Q$h=u1p.interval?u1p.interval:u1p.base?u1p.base:u1p.span?u1p.span:u1p.period;j$n=u1p.padding;D$K=u1p.chart;}else {u1p={period:A27,interval:Q$h,padding:j$n,chart:D$K};c50=arguments[+"5"];}if(!D$K){D$K=this.chart;}e_C=D$K.market;Q$h=Q$h.toLowerCase();if(Q$h == F2P){u1p.dontSaveRangeToLayout=!"";this.displayAll(u1p,c50);return;}u8f=Q$h;B3X=1;if(Q$h == "today"){u8f="day";}else if(Q$h == "year"){u8f="month";Y5X.O_b(2);B3X=Y5X.V9a(1,"12");}Y_U=Q5n.shallowClone(u1p);h$k={begin:e_C.marketZoneNow(),interval:u8f,period:B3X};function z1K(I8L,s4G){var W05;if(!K9y){return I8L;}W05=7;if(s4G){I8L.setHours(I8L.getHours() + W05);}else {I8L.setHours(I8L.getHours() - W05);if(!e_C.isMarketDate(I8L)){I8L.setDate(I8L.getDate() - +"2");};}return I8L;}k8i=h$k.begin;K9y=Q5n.Market.Symbology.isForexSymbol(D$K.symbol);Y5X.W5N();function k3U(g0A){g0A.setHours(0);g0A.setMinutes(0);g0A.setSeconds(0);Y5X.s$9(39);g0A.setMilliseconds(Y5X.v$j("0",0));return g0A;}if(Q$h === "ytd"){k8i=k3U(k8i);Y5X.O_b(2);k8i.setMonth(Y5X.v$j(1,"0"));k8i.setDate(1);}else if(Q$h === "month"){k8i=k3U(new Date());k8i.setMonth(k8i.getMonth() - A27);}else if(Q$h === "year"){k8i=k3U(new Date());k8i.setFullYear(k8i.getFullYear() - A27);}else if(Q$h === d8a){k8i=k3U(new Date());k8i.setDate(k8i.getDate() - A27 * 7);}else if(Q$h === E0t && A27 == 1 && e_C.isMarketDay()){B9Q=k8i.getHours();J1S=k8i.getMinutes();U0S=k8i.getSeconds();X3m=k8i.getMilliseconds();O_U=e_C.newIterator(h$k);k8i=O_U.previous();k8i.setHours(B9Q,J1S,U0S,X3m);k8i=e_C._convertFromMarketTZ(k8i);}else if(Q$h === "today"){h$k.begin=z1K(k8i,!![]);O_U=e_C.newIterator(h$k);if(e_C.isOpen() || e_C.getPreviousOpen().getDate() == k8i.getDate()){O_U.next();}k8i=O_U.previous();z1K(k8i);Y_U.goIntoFuture=!0;Y_U.dtRight=new Date(+k8i);Y_U.dtRight.setDate(k8i.getDate() + 1);Y_U.dtRight=e_C._convertFromMarketTZ(Y_U.dtRight);if(!K9y){k8i.setHours(O_U.market.zopen_hour);k8i.setMinutes(O_U.market.zopen_minute);k8i.setSeconds(+"0");}k8i=e_C._convertFromMarketTZ(k8i);}else {if(Q$h == "day"){h$k.begin=z1K(k8i,!!({}));}O_U=e_C.newIterator(h$k);if(A27 == 1){A27++;}Y5X.O_b(1);k8i=O_U.previous(Y5X.v$j(1,A27));if(Q$h == "day"){k8i=e_C._convertFromMarketTZ(z1K(k8i));}}Y_U.dtLeft=k8i;if(Y_U.maintainPeriodicity){Y_U.periodicity={};Y_U.periodicity.interval=this.layout.interval;Y_U.periodicity.period=this.layout.periodicity;}D$K.spanLock=![];Y_U.dontSaveRangeToLayout=!!({});J4k=this;this.setRange(Y_U,function(U23){J4k.layout.setSpan=u1p;J4k.changeOccurred("layout");if(Q$h == "today"){D$K.spanLock=!![];;}if(c50){c50(U23);}});};Q5n.ChartEngine.prototype.getSpanCandleWidth=function(S8L){var w$A,c5F,C0$,M0x,o6p,g1v,H_i,t1z,E3W;w$A="Y";w$A+="T";w$A+="D";c5F="w";c5F+="ee";c5F+="k";C0$="d";C0$+="ay";if(!S8L || !S8L.base || !S8L.multiplier){return;}M0x=parseFloat(S8L.multiplier);o6p=S8L.base;g1v=new Date();H_i=new Date();if(o6p == "year"){H_i.setFullYear(H_i.getFullYear() - M0x);}else if(o6p == "month"){H_i.setMonth(H_i.getMonth() - M0x);}else if(o6p == C0$){H_i.setDate(H_i.getDate() - M0x);}else if(o6p == c5F){H_i.setDate(H_i.getDate() - 7 * M0x);}else if(o6p == w$A){H_i.setMonth(+"0");H_i.setDate(1);}Y5X.s$9(114);var h5z=Y5X.v$j(7,2,233,600);t1z=(g1v.getTime() - H_i.getTime()) / 1000 / ("60" << 0) / h5z / +"24";Y5X.s$9(98);t1z=Y5X.v$j(5,t1z,7);E3W=this.chart.width / t1z;return E3W;};Q5n.ChartEngine.prototype.displayAll=function(q$V,Q00){var l1p,c7G,S3i;var {chart:p4s, layout:W9e}=this;if(q$V && q$V.chart){p4s=q$V.chart;}Y5X.W5N();function D3A(){var e3L;if(!p4s.masterData || !p4s.masterData.length){return;}e3L=Q5n.clone(q$V);e3L.dtLeft=p4s.endPoints.begin.DT;e3L.dtRight=p4s.endPoints.end.DT;e3L.periodicity={};e3L.periodicity.interval=W9e.interval;e3L.periodicity.period=W9e.periodicity;e3L.periodicity.timeUnit=W9e.timeUnit;l1p.setRange(e3L,function(i_L){l1p.layout.setSpan={base:q$V.base,multiplier:q$V.multiplier};l1p.changeOccurred("layout");for(var v4G in l1p.panels){l1p.calculateYAxisMargins(l1p.panels[v4G].yAxis);}Y5X.W5N();l1p.draw();if(Q00){Q00(i_L);}});}l1p=this;if(!this.quoteDriver){D3A();return;}c7G=q$V.maintainPeriodicity?{period:W9e.periodicity,interval:W9e.interval,timeUnit:W9e.timeUnit}:{period:1,interval:"month",timeUnit:null};c7G=q$V.periodicity?q$V.periodicity:c7G;c7G=Q5n.cleanPeriodicity(c7G.period,c7G.interval,c7G.timeUnit);S3i=this.needDifferentData(c7G);this.layout.periodicity=c7G.period;this.layout.interval=c7G.interval;this.layout.timeUnit=c7G.timeUnit;if(q$V.forceLoad || S3i){this.clearCurrentMarketData(this.chart);this.quoteDriver.newChart({noDraw:!!({}),symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,chart:this.chart,initializeChart:!"",fetchMaximumBars:!!({})},g3M);}else {if(p4s.moreAvailable || !p4s.upToDate){g3M();}else {this.createDataSet();D3A();}}function g3M(l$d){Y5X.W3G();if(!l$d){l1p.quoteDriver.loadAll(p4s,D3A);}}};};A=I0w=>{var h3N;h3N=typeof _CIQ !== "undefined"?_CIQ:I0w.CIQ;h3N.ChartEngine.prototype.importLayout=function(Y6_,Z48){var r4W=i6UVR;var w6e,c3H,v1w,A5X,V9Q,A5d,n9u,b9Z,w2k,o7J,L4s,U$w,m37,U38,E1h,b7H,l_v,Q18,i2f,I4c,c$6,D4B,k6M,Y6W,b2Q,e93,U48,d8V,Q0I,b7u,k6e,m7l,E96;w6e="o";w6e+="bjec";w6e+="t";if(!Y6_){if(Z48.cb){Z48.cb();}return;}c3H=this;v1w=[];if(typeof Z48 !== w6e){Z48={managePeriodicity:arguments[1],preserveTicksAndCandleWidth:arguments[2]};}A5X=this.layout;V9Q=h3N.shallowClone(A5X);A5d=Z48.managePeriodicity;n9u=Z48.cb;b9Z=Z48.seriesCB;w2k=Z48.noDataLoad;o7J=Z48.preserveTicksAndCandleWidth;L4s=null;if(this.exportDrawings){L4s=this.exportDrawings();this.abortDrawings();}this.currentlyImporting=!!({});for(var i1o in A5X.studies){U$w=A5X.studies[i1o];h3N.getFn("Studies.removeStudy")(this,U$w);}this.overlays={};m37=h3N.shallowClone(this.panels);this.panels={};U38=h3N.clone(Y6_);A5X.periodicity=V9Q.periodicity;function O66(M3K){var w7r,V3j,U_S;if(L4s){c3H.importDrawings(L4s);}c3H.currentlyImporting=![];if(M3K){return;}U_S=[];for(var z_k in c3H.chart.series){if(!c3H.removeSeries)break;V3j=c3H.chart.series[z_k];if(V3j.parameters.bucket == "study"){w7r=!!"1";c3H.removeSeries(V3j);U_S.push(V3j);}}for(var p08=0;p08 < U_S.length;p08++){V3j=U_S[p08];c3H.addSeries(V3j.id,V3j.parameters,B2j);}if(!w7r){c3H.draw();}c3H.updateListeners("layout");c3H.changeOccurred("layout");;function B2j(){r4W.W3G();c3H.createDataSet();l$G(c3H.panels);c3H.calculateYAxisPositions();c3H.draw();}}A5X.interval=V9Q.interval;A5X.timeUnit=V9Q.timeUnit;A5X.setSpan=V9Q.setSpan;A5X.range=V9Q.range;if(o7J){A5X.candleWidth=V9Q.candleWidth;}else {if(!A5X.candleWidth){A5X.candleWidth=8;}}this.setCandleWidth(A5X.candleWidth);if(A5X.flipped){this.flipChart(A5X.flipped);}E1h=U38.panels;i2f=function(O_h,H2c){return O_h.index < H2c.index?-1:1;};for(b7H in E1h){if(!(("index" in E1h[b7H]))){i2f=null;}l_v=E1h[b7H];l_v.name=b7H;v1w.push(l_v);}A5X.panels={};I4c=null;function w$d(){r4W.W3G();c3H.calculateYAxisPositions();l$G(c3H.panels);if(b9Z){b9Z();}}if(v1w.length > 0){if(i2f){v1w.sort(i2f);}for(var b4t=0;b4t < v1w.length;++b4t){l_v=v1w[b4t];Q18=l_v.yAxis?new h3N.ChartEngine.YAxis(l_v.yAxis):null;this.stackPanel(l_v.display,l_v.name,l_v.percent,l_v.chartName,Q18);if(l_v.soloing){I4c=this.panels[l_v.name];}}}if(h3N.isEmpty(E1h)){c$6="ch";c$6+="a";c$6+="rt";D4B="c";D4B+="h";D4B+="ar";D4B+="t";this.stackPanel("chart",D4B,1,c$6);}this.resizeCanvas();for(var c_M in m37){k6M=m37[c_M];Y6W=this.panels[c_M];if(Y6W){this.container.removeChild(Y6W.holder);if(k6M.handle){this.container.removeChild(k6M.handle);}b2Q={holder:!!1,subholder:!!({}),display:!!({}),icons:!![]};for(var P4c in b2Q){Y6W[P4c]=k6M[P4c];}this.configurePanelControls(Y6W);if(k6M.chart.panel == k6M){k6M.chart.panel=Y6W;};}else {this.privateDeletePanel(k6M);}}this.chart.panel=this.panels.chart;l$G(this.panels);h3N.dataBindSafeAssignment(A5X,h3N.clone(U38));e93=h3N.clone(A5X.studies);delete A5X.studies;for(var L5q in e93){U48=e93[L5q];h3N.getFn("Studies.addStudy")(this,U48.type,U48.inputs,U48.outputs,U48.parameters,U48.panel);}if(this.extendedHours){this.extendedHours.prepare(A5X.extended,A5X.marketSessions);}if(typeof A5X.chartType == "undefined"){A5X.chartType="line";}this.setMainSeriesRenderer();if(I4c){this.panelSolo(I4c);}this.adjustPanelPositions();r4W.W5N();l$G(this.panels);this.storePanels();if(!w2k){if(U38.symbols && U38.symbols.length){d8V={chart:this.chart};if(!o7J && A5d && U38.range && Object.keys(U38.range).length){d8V.range=U38.range;}else if(!o7J && A5d && U38.setSpan && Object.keys(U38.setSpan).length){d8V.span=U38.setSpan;}else if(A5d && U38.interval){d8V.periodicity={interval:U38.interval,period:U38.periodicity,timeUnit:U38.timeUnit};}else {d8V.periodicity={interval:V9Q.interval,period:V9Q.periodicity,timeUnit:V9Q.timeUnit};}Q0I=U38.symbols[0].symbolObject || U38.symbols[0].symbol;this.loadChart(Q0I,d8V,function(B4Q){var d8d;if(!B4Q){for(var X7T,n0Y=1;n0Y < U38.symbols.length;++n0Y){if(!c3H.addSeries)break;X7T=U38.symbols[n0Y];if(!X7T.parameters){X7T.parameters={};}d8d=h3N.clone(X7T.parameters);if(this.panels[d8d.panel]){c3H.addSeries(X7T.id,d8d,w$d);}else {console.warn('Warning: Series "' + X7T.id + '" could not be imported due to a missing corresponding panel "' + d8d.panel + '"');}}if(U38.chartScale){c3H.setChartScale(U38.chartScale);}}O66(B4Q);if(n9u){n9u.apply(null,arguments);}});return;}if(A5d){if(!o7J && this.setRange){b7u=U38.range;if(b7u && Object.keys(b7u).length && this.chart.symbol){this.setRange(b7u,function(){O66();r4W.W3G();if(n9u){n9u();}});return;}else if(U38.setSpan && Object.keys(U38.setSpan).length && this.chart.symbol){this.setSpan(U38.setSpan,function(){r4W.W5N();O66();if(n9u){n9u();}});return;}}k6e=U38.interval;m7l=U38.periodicity;E96=U38.timeUnit;if(isNaN(m7l)){m7l=1;}if(!k6e){k6e="day";}this.setPeriodicity({period:m7l,interval:k6e,timeUnit:E96},function(){O66();if(n9u){n9u();}});return;}}if(A5d){A5X.periodicity=U38.periodicity;A5X.interval=U38.interval;A5X.timeUnit=U38.timeUnit;A5X.setSpan=U38.setSpan;}this.createDataSet();if(!o7J){this.home();}O66();if(n9u){n9u();}function l$G(x5I){var R97;for(var V2n=+"0";V2n < v1w.length;V2n++){R97=v1w[V2n];m_Z(R97,"yaxisLHS");m_Z(R97,"yaxisRHS");}function o2a(C$W){r4W.W3G();return !!C$W;}r4W.W5N();c3H.chart.yAxis=c3H.chart.panel.yAxis;function m_Z(S1g,J01){var O5c,U33,R_I,C1R;if(!S1g[J01] || !S1g[J01].length){return;}O5c=x5I[S1g.name];if(!O5c){return;}U33=O5c[J01];R_I=new Array(U33.length);for(var J9e=0;J9e < U33.length;J9e++){C1R=S1g[J01].indexOf(U33[J9e].name);if(C1R > -1){R_I[C1R]=U33[J9e];}else {R_I.push(U33[J9e]);}}if(R_I.length){O5c[J01]=R_I.filter(o2a);}}}};h3N.ChartEngine.prototype.exportLayout=function(j6e){var d2d,O5j,T0g,o7s,M5S,l$c;d2d={};function E9W(W2G){var a9X;a9X=[];for(var Q0T=0;Q0T < W2G.length;Q0T++){a9X.push(W2G[Q0T].name);}return a9X;}for(var p8D in this.layout){if(p8D != "studies" && p8D != "panels" && p8D != "drawing"){d2d[p8D]=h3N.clone(this.layout[p8D]);}else if(p8D == "studies"){d2d.studies={};}else if(p8D == "panels"){d2d.panels={};}}O5j=0;for(var a_i in this.panels){T0g=this.panels[a_i];if(T0g.exportable === !({}))continue;o7s=d2d.panels[a_i]={};o7s.percent=T0g.percent;o7s.display=T0g.display;o7s.chartName=T0g.chart.name;o7s.soloing=T0g.soloing;o7s.index=O5j++;o7s.yAxis={name:T0g.yAxis.name,position:T0g.yAxis.position};if(T0g.yaxisLHS){o7s.yaxisLHS=E9W(T0g.yaxisLHS);}if(T0g.yaxisRHS){o7s.yaxisRHS=E9W(T0g.yaxisRHS);}}for(var u96 in this.layout.studies){M5S=d2d.studies[u96]={};l$c=this.layout.studies[u96];M5S.type=l$c.type;M5S.inputs=h3N.clone(l$c.inputs);M5S.outputs=h3N.clone(l$c.outputs);M5S.panel=l$c.panel;M5S.parameters=h3N.clone(l$c.parameters);}if(j6e){d2d.symbols=this.getSymbols({"include-parameters":!!({}),"exclude-studies":!"","exclude-generated":!!({})});}else {delete d2d.symbols;}return d2d;};h3N.ChartEngine.prototype.importPreferences=function(V7n){var g2J;g2J="prefere";g2J+="nc";g2J+="e";g2J+="s";h3N.extend(this.preferences,V7n);if(V7n.timeZone){this.setTimeZone(this.dataZone,V7n.timeZone);}if(V7n.language && h3N.I18N){h3N.I18N.localize(this,V7n.language);}this.changeOccurred(g2J);};i6UVR.W3G();h3N.ChartEngine.prototype.exportPreferences=function(){return this.preferences;};};G=C7m=>{var t8f,b9Y,K8D,j8B,C79,Y$e,v8w,b84,p0k,h0R,U6i,Z$9,U7d;t8f="#b82c";t8f+="0";t8f+="c";b9Y="a";b9Y+="u";b9Y+="t";b9Y+="o";K8D="#";K8D+="FF0000";j8B="m";j8B+="a";C79="Ex";C79+="pon";C79+="ential";Y$e="Ex";Y$e+="ponent";Y$e+="ial";v8w="Tri";v8w+="angul";v8w+="ar";b84="vid";b84+="ya";p0k="ex";p0k+="pone";p0k+="n";p0k+="tial";h0R="sim";h0R+="pl";h0R+="e";U6i="w";U6i+="m";U6i+="a";Z$9=typeof _CIQ !== "undefined"?_CIQ:C7m.CIQ;U7d=typeof _timezoneJS !== "undefined"?_timezoneJS:C7m.timezoneJS;if(Z$9.ChartEngine){Z$9.ChartEngine.prototype.rightClickOverlay=function(I5O,Q9y){var m_x,u8Z,e2P;m_x="r";m_x+="ightClickOverl";m_x+="ay";u8Z="rig";u8Z+="htClickOverl";u8Z+="ay";if(this.runPrepend(u8Z,arguments)){return;}e2P=this.overlays[I5O];if(e2P.editFunction){e2P.editFunction(Q9y);}else {this.removeOverlay(I5O);}this.runAppend(m_x,arguments);};Z$9.ChartEngine.prototype.addOverlay=function(X1B){if(this.runPrepend("addOverlay",arguments)){return;}this.overlays[X1B.name]=X1B;this.runAppend("addOverlay",arguments);};Z$9.ChartEngine.prototype.removeOverlay=function(p9C){var Z$A,R9W,Q6W,a5s,Z7n,R2f;i6UVR.W3G();Z$A="rem";Z$A+="o";Z$A+="ve";Z$A+="Overlay";if(this.runPrepend("removeOverlay",arguments)){return;}R9W=this.overlays[p9C];for(var A3o in this.overlays){Q6W="Fi";Q6W+="e";Q6W+="l";Q6W+="d";a5s=this.overlays[A3o];Z7n=[Q6W];if(Z$9.Studies){Z7n=Z$9.Studies.getFieldInputs(a5s);}for(var h1f="0" | 0;h1f < Z7n.length;h1f++){if(R9W.outputMap[a5s.inputs[Z7n[h1f]]]){this.removeOverlay(a5s.name);}}}if(R9W){this.cleanupRemovedStudy(R9W);R2f=this.panels[R9W.panel];delete this.overlays[p9C];this.checkForEmptyPanel(R9W.panel);}if(!this.currentlyImporting){this.displaySticky();this.createDataSet();this.changeOccurred("layout");}this.resetDynamicYAxis();this.runAppend(Z$A,arguments);};Z$9.ChartEngine.prototype.cleanupRemovedStudy=function(G_t){if(!G_t){return;}if(G_t.study.removeFN){G_t.study.removeFN(this,G_t);}for(var p4O in this.plugins){if(p4O.indexOf(((2450,5310) > (3310,2150)?(6050,5448) == 6050?9.75e+3:"{":0x12ce) + G_t.id + (("199" ^ 0,385.6) <= (718,988)?"}":!![])) > -1){delete this.plugins[p4O];}}if(this.layout.studies){delete this.layout.studies[G_t.name];}delete this.overlays[G_t.name];if(Z$9.Studies){Z$9.Studies.removeStudySymbols(G_t,this);}if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}};}Z$9.Studies=Z$9.Studies || (function(){});Z$9.Studies.DEFAULT_INPUTS={Period:14};Z$9.Studies.DEFAULT_OUTPUTS={Result:"auto"};Z$9.Studies.sortForProcessing=X5k=>{var B1L=i6UVR;var D8w,R_R,F5b,C1I,j3W;D8w=[];B1L.O_b(39);R_R=-B1L.v$j("950106683",0);F5b=-32912493;C1I=2;for(var u$H="1" << 0;B1L.l5h(u$H.toString(),u$H.toString().length,86030) !== R_R;u$H++){j3W=X5k.layout.studies;C1I+=2;}if(B1L.m6F(C1I.toString(),C1I.toString().length,1890) !== F5b){j3W=X5k.layout.studies;}if(j3W){C1r(Object.values(j3W),D8w);}B1L.W3G();function C1r(Y0V,y8V){B1L.W3G();Y0V.forEach(n3t=>{var e$_;if(y8V.indexOf(n3t) == -("1" << 0)){e$_=n3t.getDependents(X5k);if(e$_.length){C1r(e$_,y8V);}y8V.unshift(n3t);}});}return D8w;};Z$9.Studies.StudyDescriptor=function(R5l,d1y,l13,z7a,i$J,J5O){var s3G;this.name=R5l;i6UVR.W5N();this.type=d1y;this.panel=l13;this.inputs=z7a;this.outputs=i$J;this.parameters=J5O;this.outputMap={};this.min=null;this.max=null;this.startFrom=+"0";this.subField="Close";s3G=Z$9.Studies.studyLibrary[d1y];if(!s3G){s3G={};if(l13 == "chart" || !l13 && J5O && J5O.chartName == "chart"){this.overlay=!![];}}if(typeof s3G.inputs == "undefined"){s3G.inputs=Z$9.clone(Z$9.Studies.DEFAULT_INPUTS);}if(typeof s3G.outputs == "undefined"){s3G.outputs=Z$9.clone(Z$9.Studies.DEFAULT_OUTPUTS);}this.study=s3G;this.libraryEntry=s3G;;};Z$9.Studies.StudyDescriptor.prototype.getYAxis=function(Q0H){var h$B,S2D,d7Z;h$B=this.yAxis;if(this.parameters){S2D=this.parameters.yaxisDisplayValue;}i6UVR.W5N();if(!h$B){d7Z=Q0H.panels[this.panel];if(d7Z){h$B=Q0H.getYAxisByName(d7Z,S2D) || Q0H.getYAxisByName(d7Z,this.name) || d7Z.yAxis;}}if(!h$B){h$B=Q0H.getYAxisByName(Q0H.chart.panel,S2D) || Q0H.chart.panel.yAxis;}return h$B;};Z$9.Studies.StudyDescriptor.prototype.getContext=function(C1F){return C1F.chart.context;};Z$9.Studies.StudyDescriptor.prototype.getDependents=function(k6E,H5B){var h45,w2h,T4D;h45=[];for(var Y6V in k6E.layout.studies){w2h=k6E.layout.studies[Y6V];if(w2h == this)continue;T4D=Z$9.Studies.getFieldInputs(w2h);for(var b8S=0;b8S < T4D.length;b8S++){if(w2h.inputs[T4D[b8S]].includes(this.name)){if(H5B && w2h.parameters && w2h.parameters.panelName)continue;h45.push(w2h);h45=h45.concat(w2h.getDependents(k6E,H5B));break;}}}return h45;};Z$9.Studies.StudyDescriptor.prototype.undraggable=function(o3R){var E2J;E2J=this.study.attributes;i6UVR.W5N();if(E2J){if(E2J.panelName && E2J.panelName.hidden){return !!1;}if(E2J.yaxisDisplayValue && E2J.yaxisDisplayValue.hidden){return !![];}}return !!0;};Z$9.Studies.StudyDescriptor.prototype.appendFutureTicks=function(n2l,e$t){var U4h,V3w,O9J,w_h;U4h=n2l.chart.scrubbed;if(!U4h.length){return;}V3w=n2l.standardMarketIterator(U4h[U4h.length - 1].DT);for(O9J=e$t.length - 1;O9J >= 0;O9J--){w_h=e$t[O9J];for(var E_8 in w_h){if(w_h[E_8] || w_h[E_8] === 0){O9J=-+"1";break;}}if(O9J == -1)break;e$t.pop();}i6UVR.W5N();for(O9J=0;O9J < e$t.length;O9J++){w_h=e$t[O9J];if(!w_h.DT){w_h.DT=V3w.next();}if(!w_h.displayDate){n2l.setDisplayDate(w_h);}w_h.futureTick=!!({});U4h.push(w_h);}};Z$9.Studies.generateID=function(M6R,v6X,P2L,Q7$,O8g){var P41=i6UVR;var q_x,K6K,w6x,c64,q6i,r_Z,P5H,c1s;q_x=Z$9.Studies.studyLibrary[v6X];P41.s$9(35);K6K=P41.V9a(O8g || v6X,2586 != 1460?"\u200c":5270 != 2944?9531 > 145.19?+"115.02":(0x20c2,"785.22" * 1):5.58e+3,15.74 !== 475?"\u200c":("0x20f6" | 32,"R"));w6x=K6K;if(q_x){if(q_x.customRemoval){return w6x;}}if(!Z$9.isEmpty(P2L)){c64=!!({});for(var e7v in P2L){q6i="f";q6i+="i";q6i+="el";q6i+="d";r_Z="Ancho";r_Z+="r";r_Z+=" Sele";r_Z+="ctor";if(["id","display","Shading",r_Z].includes(e7v)){continue;}P5H=P2L[e7v];if(P5H == q6i)continue;P5H=P5H.toString();if(Z$9.Studies.prettify[P5H] !== undefined){P5H=Z$9.Studies.prettify[P5H];}if(c64){c64=!"1";w6x+=" (";}else {if(P5H){w6x+=181.3 === 9840?0x2635:381.54 == 4551?+"0x1b7":(951,4940) !== (982,3650)?",":(0xf73,0xc4f);}}w6x+=P5H;}if(!c64){w6x+=6654 < (653,436)?(763.52,8.87e+3):")";}}if(Q7$ && Q7$.indexOf(w6x) === 0){return Q7$;}if(M6R.layout.studies && M6R.layout.studies[w6x]){for(var T_u=2;T_u < 50;T_u++){P41.s$9(35);c1s=P41.V9a("-",T_u,w6x);if(!M6R.layout.studies[c1s]){w6x=c1s;break;}}}return w6x;};Z$9.Studies.DialogHelper=function(t9_){var H_$=i6UVR;var e_G,q_D,e30,c$k,D$P,O$r,t$d,D$L,w1J,A8u,h$_,b2Z,n_p,j80,p5Z,t55,S5I,V7c,X7g,S$N,g2_,X_b,G3x,K8c,T7b,n7I,S2l,m_z,y5M,r82,B_h,t3g,H8M,l$L,a$T,a4F,Q9I,d1p,B3x,k8R,Y$u,s0k,W6y,C3$,q0L,P5m,l6J,M6y,P0n,E8E,E1p;e_G=this.stx=t9_.stx;q_D=this.sd=t9_.sd;this.name=q_D?q_D.type:t9_.name;this.signal=1;this.inputs=[];this.outputs=[];function O0I(N1z){var W1P,H$G,h12;W1P={};H$G=N1z.defaults;h12={name:N1z.name,heading:e_G.translateIf(N1z.label),defaultValue:H$G[0],value:N1z.value,options:W1P,type:"select"};for(var j77=0;j77 < H$G.length;j77++){W1P[H$G[j77]]=e_G.translateIf(H$G[j77]);}if(N1z.color !== undefined){h12.defaultColor=e_G.defaultColor;h12.color=N1z.color;}return h12;}H_$.W3G();this.parameters=[];e30=this.libraryEntry=q_D?q_D.study:Z$9.Studies.studyLibrary[t9_.name];if(typeof e30.inputs == "undefined"){e30.inputs=Z$9.clone(Z$9.Studies.DEFAULT_INPUTS);}if(typeof e30.outputs == "undefined"){e30.outputs=Z$9.clone(Z$9.Studies.DEFAULT_OUTPUTS);}c$k=q_D && e_G.panels[q_D.panel]?e_G.panels[q_D.panel]:e_G.chart.panel;function P$h(o10){var x80;x80={name:o10.name,heading:e_G.translateIf(o10.label),defaultValue:o10.defaults,value:o10.value,type:"checkbox"};return x80;}D$P=c$k.chart;this.title=e_G.translateIf(e30.name);this.attributes=Z$9.clone(e30.attributes);if(!this.attributes){this.attributes={};}for(var y6X in this.attributes){O$r=this.attributes[y6X];for(var n85 in O$r){if(typeof O$r[n85] == "function"){O$r[n85]=O$r[n85].call(q_D);}}}t$d=[];D$L=e_G.layout.studies;w1J=[];if(q_D){w1J=Array.prototype.concat(q_D,q_D.getDependents(e_G));}for(var L$w in D$L){if(w1J.indexOf(D$L[L$w]) > -1)continue;for(var Q0u in D$L[L$w].outputMap){t$d.push(Q0u);}}for(var l_b in e30.inputs){A8u={};this.inputs.push(A8u);A8u.name=l_b;A8u.heading=e_G.translateIf(l_b);h$_=e30.inputs[l_b];if(q_D && q_D.inputs && typeof q_D.inputs[l_b] != "undefined" && q_D.inputs[l_b] !== null){A8u.value=q_D.inputs[l_b];}else {A8u.value=e30.inputs[l_b];}A8u.defaultInput=e30.inputs[l_b];if(!this.attributes[l_b]){this.attributes[l_b]=Z$9.Studies.inputAttributeDefaultGenerator(A8u.defaultInput);}if(h$_.constructor == Number){A8u.type="number";}else if(h$_.constructor == String){b2Z="f";b2Z+="i";b2Z+="e";b2Z+="ld";n_p=Z$9.Studies.movingAverageHelper(e_G,A8u.defaultInput);if(n_p){j80="o";j80+="p";j80+="tion";j80+="s";A8u.type="select";A8u.defaultInput=n_p;p5Z=Z$9.Studies.movingAverageHelper(e_G,A8u.value);if(!p5Z){p5Z=A8u.value;}A8u.value=p5Z;A8u.options=Z$9.Studies.movingAverageHelper(e_G,j80);}else if(h$_ == b2Z){t55="fie";t55+="l";t55+="d";S5I="hl";S5I+="cc/4";V7c="h";V7c+="l/2";X7g="C";X7g+="lose";S$N="Hi";S$N+="gh";A8u.type="select";A8u.options={};g2_=["Open",S$N,"Low",X7g,"Adj_Close",V7c,"hlc/3",S5I,"ohlc/4",D$P.defaultPlotField].concat(t$d);for(var d1D=0;d1D < g2_.length;d1D++){X_b=g2_[d1D];A8u.options[X_b]=e_G.translateIf(X_b);}if(A8u.value == "field"){G3x="Clo";G3x+="se";A8u.value=G3x;}if(A8u.defaultInput == t55){A8u.defaultInput="Close";}}else {K8c="ti";K8c+="me";T7b="yyyy";T7b+="-mm-d";T7b+="d";A8u.type="text";if(this.attributes[l_b].placeholder == T7b){A8u.type="date";}else if(this.attributes[l_b].placeholder == "hh:mm:ss"){A8u.type=K8c;}}}else if(h$_.constructor == Boolean){n7I="tru";n7I+="e";S2l="ch";S2l+="eck";S2l+="bo";S2l+="x";A8u.type=S2l;if(A8u.value === !![] || A8u.value == n7I || A8u.value == "on"){A8u.value=!"";}}else if(h$_.constructor == Array){m_z="selec";m_z+="t";A8u.type=m_z;A8u.options={};for(var G0h=0;G0h < h$_.length;G0h++){A8u.options[h$_[G0h]]=e_G.translateIf(h$_[G0h]);}if(A8u.value.constructor == Array){A8u.value=A8u.value[0];}if(this.attributes[l_b].defaultSelected){A8u.defaultInput=this.attributes[l_b].defaultSelected;}else {A8u.defaultInput=h$_[0];}}}function r_W(j2_){var C1J;if(W6y == "alias"){C1J=1;for(var F$X in e_G.panels){if(F$X == j2_){return F5K(F$X,C1J);}C1J++;}}function F5K(L3j,u4F){H_$.W5N();return "Panel " + u4F.toString();}return j2_;}this.dateTimeInputs=[];for(var J8o=0;J8o < this.inputs.length;J8o++){y5M="da";y5M+="te";r82=this.inputs[J8o];if(r82.type == y5M){B_h=" D";B_h+="a";B_h+="t";B_h+="e";t3g=r82.name.substring(0,r82.name.indexOf(B_h));for(var h2N=0;h2N < this.inputs.length;h2N++){H8M=this.inputs[h2N];if(H8M.type == "time"){if(H8M.name == t3g + " Time"){this.dateTimeInputs.push(t3g);break;}}}}}this.adjustInputTimesForDisplayZone();for(l_b in e30.outputs){l$L="a";l$L+="uto";a$T={name:l_b,heading:e_G.translateIf(l_b)};a$T.color=a$T.defaultOutput=e30.outputs[l_b];if(q_D && q_D.outputs && q_D.outputs[l_b]){a$T.color=q_D.outputs[l_b];}if(a$T.color == l$L){a$T.color=e_G.defaultColor;}this.outputs.push(a$T);}a4F=q_D?q_D.parameters:null;if(e30.parameters){Q9I=e30.parameters.init;if(Q9I){if(Q9I.studyOverZonesEnabled !== undefined){B3x="c";B3x+="hec";B3x+="kbo";B3x+="x";d1p={name:"studyOverZones",heading:e_G.translateIf("Show Zones"),defaultValue:Q9I.studyOverZonesEnabled,value:Q9I.studyOverZonesEnabled};if(a4F && (a4F.studyOverZonesEnabled || a4F.studyOverZonesEnabled === !1)){d1p.value=a4F.studyOverZonesEnabled;}d1p.type=B3x;this.parameters.push(d1p);}if(Q9I.studyOverBoughtValue !== undefined){k8R="stu";k8R+="dyOverBought";d1p={name:k8R,heading:e_G.translateIf("OverBought"),defaultValue:Q9I.studyOverBoughtValue,value:Q9I.studyOverBoughtValue,defaultColor:Q9I.studyOverBoughtColor,color:Q9I.studyOverBoughtColor};if(a4F && a4F.studyOverBoughtValue){d1p.value=a4F.studyOverBoughtValue;}if(a4F && a4F.studyOverBoughtColor){d1p.color=a4F.studyOverBoughtColor;}if(d1p.color == "auto"){d1p.color=e_G.defaultColor;}d1p.type="text";this.parameters.push(d1p);}if(Q9I.studyOverSoldValue !== undefined){Y$u="t";Y$u+="e";Y$u+="xt";s0k="OverS";s0k+="old";d1p={name:"studyOverSold",heading:e_G.translateIf(s0k),defaultValue:Q9I.studyOverSoldValue,value:Q9I.studyOverSoldValue,defaultColor:Q9I.studyOverSoldColor,color:Q9I.studyOverSoldColor};if(a4F && a4F.studyOverSoldValue){d1p.value=a4F.studyOverSoldValue;}if(a4F && a4F.studyOverSoldColor){d1p.color=a4F.studyOverSoldColor;}if(d1p.color == "auto"){d1p.color=e_G.defaultColor;}d1p.type=Y$u;this.parameters.push(d1p);}if(!this.attributes.studyOverBoughtValue){this.attributes.studyOverBoughtValue={};}if(!this.attributes.studyOverSoldValue){this.attributes.studyOverSoldValue={};}}}W6y=this.panelSelect=t9_.panelSelect;C3$=this.axisSelect=t9_.axisSelect;if(t9_.addWhenDone){C3$=W6y=!!0;}if(C3$ || W6y){q0L="flippe";q0L+="dEna";q0L+="bled";if(!q_D){q_D=Z$9.Studies.addStudy(e_G,t9_.name,null,null,{calculateOnly:!!({})});Z$9.Studies.removeStudy(e_G,q_D);}if(W6y){P5m="un";P5m+="d";P5m+="erlay";l6J="Show as U";l6J+="nderlay";M6y="A";M6y+="uto";P0n="pan";P0n+="e";P0n+="lNa";P0n+="me";E8E="P";E8E+="a";E8E+="ne";E8E+="l";this.parameters.push(O0I({label:E8E,name:P0n,defaults:(function(){var A1u;H_$.W5N();A1u=[];A1u.push("Auto");for(var n1z in e_G.panels){if(n1z != q_D.panel || !a4F || !a4F.panelName){A1u.push(r_W(n1z));}}if(!e_G.checkForEmptyPanel(q_D.panel,!!"1",q_D)){A1u.push("New panel");}return A1u;})(),value:a4F && a4F.panelName?r_W(a4F.panelName):M6y}),P$h({label:l6J,name:P5m,defaults:![],value:q_D.underlay || q_D.parameters && q_D.parameters.underlayEnabled}));}E1p=e_G.getYAxisByName(c$k,q_D.name);if(C3$){this.parameters.push(O0I({label:"Y-Axis",name:"yaxisDisplay",defaults:(function(){var i2G,e1B,E2d;i2G="n";i2G+="one";e1B=c$k.yaxisLHS.concat(c$k.yaxisRHS);E2d=[];E2d.push("default","right","left",i2G,"shared");H_$.W5N();for(var E4l="0" << 64;E4l < e1B.length;E4l++){if(e1B[E4l] != E1p){E2d.push(e1B[E4l].name);}}return E2d;})(),value:a4F && a4F.yaxisDisplayValue || E1p && E1p.position || (q_D.panel != q_D.name?"shared":c$k.yAxis.position || "default"),color:E1p && E1p.textStyle?E1p.textStyle:"auto"}),P$h({label:"Invert Y-Axis",name:"flipped",defaults:!"1",value:a4F?a4F.flippedEnabled:E1p?E1p.flipped:!"1"}));}i_G.call(this,q0L,!E1p && q_D.panel != q_D.name);i_G.call(this,"underlayEnabled",e30.underlay);i_G.call(this,"panelName",e30.seriesFN === null);i_G.call(this,"yaxisDisplayValue",e30.seriesFN === null || e30.yAxis && e30.yAxis.noDraw);}function i_G(N7u,N3B){H_$.W3G();if(!this.attributes[N7u]){this.attributes[N7u]={};}if(N3B){this.attributes[N7u].hidden=!"";}}};Z$9.Studies.DialogHelper.prototype.updateStudy=function(p6W){var Q3i,z90,G1S,L7V;Q3i={};z90=this.sd;G1S=this.libraryEntry;if(!G1S){G1S={};}if(!z90){z90=G1S;}Q3i.inputs=Z$9.clone(z90.inputs);Q3i.outputs=Z$9.clone(z90.outputs);Q3i.parameters=Z$9.clone(z90.parameters);this.adjustInputTimesForDisplayZone(p6W);if(p6W.parameters && p6W.parameters.panelName){p6W.parameters.panelName=F6r.call(this,p6W.parameters.panelName);}Z$9.extend(Q3i,p6W);function F6r(E3F){var t0e;if(this.panelSelect == "alias"){t0e=s1y(E3F);if(t0e){for(var o57 in this.stx.panels){if(!--t0e){return o57;}}}}function s1y(X9A){var M82;i6UVR.W3G();M82=X9A.match(/.* (\d)/);return M82 && M82[+"1"];}return E3F;}if(!Q3i.parameters){Q3i.parameters={};}if(Q3i.inputs && Q3i.inputs.id){z90=Z$9.Studies.replaceStudy(this.stx,Q3i.inputs.id,this.name,Q3i.inputs,Q3i.outputs,Q3i.parameters,null,z90.study);}else {z90=Z$9.Studies.addStudy(this.stx,this.name,Q3i.inputs,Q3i.outputs,Q3i.parameters,null,z90.study);}L7V=new Z$9.Studies.DialogHelper({stx:this.stx,sd:z90,axisSelect:this.axisSelect,panelSelect:this.panelSelect});for(var a91 in L7V){if(a91 != "signal"){this[a91]=L7V[a91];}}this.signal*=-1;;};Z$9.Studies.DialogHelper.prototype.adjustInputTimesForDisplayZone=function(w6K){var b2U=i6UVR;var n9K,z$L,V8i,P9y,E1w,C_u,J8b,S0Q,R$y,l7T,O4i,U7v;b2U.W5N();if(this.stx.displayZone){for(var Q4o=0;Q4o < this.dateTimeInputs.length;Q4o++){n9K=this.dateTimeInputs[Q4o];C_u="";if(w6K && w6K.inputs){J8b=" ";J8b+="D";J8b+="a";J8b+="te";b2U.s$9(0);V8i=w6K.inputs[b2U.v$j(n9K,J8b)];b2U.s$9(0);P9y=w6K.inputs[b2U.V9a(n9K," Time")];if(V8i){C_u=V8i;}if(P9y){C_u+=P9y;}}for(z$L=0;z$L < this.inputs.length;z$L++){S0Q=" D";S0Q+="at";S0Q+="e";E1w=this.inputs[z$L];if(!V8i && V8i !== "" && E1w.name == n9K + S0Q){C_u=E1w.value + C_u;}else if(!P9y && P9y !== "" && E1w.name == n9K + " Time"){C_u+=E1w.value;}}C_u=C_u.replace(/\D/g,"");if(C_u.length < "12" - 0){return;}R$y=Z$9.strToDateTime(C_u);if(!isNaN(R$y.valueOf())){if(w6K){O4i=" ";O4i+="Da";O4i+="t";O4i+="e";if(!w6K.inputs){w6K.inputs={};}l7T=Z$9.convertTimeZone(R$y,this.stx.displayZone);b2U.s$9(0);w6K.inputs[b2U.V9a(n9K,O4i)]=Z$9.yyyymmdd(l7T);b2U.O_b(0);w6K.inputs[b2U.V9a(n9K," Time")]=Z$9.hhmmss(l7T);}else {l7T=Z$9.convertTimeZone(R$y,null,this.stx.displayZone);for(z$L=0;z$L < this.inputs.length;z$L++){U7v=" D";U7v+="at";U7v+="e";E1w=this.inputs[z$L];if(E1w.name == n9K + U7v){E1w.value=Z$9.yyyymmdd(l7T);}if(E1w.name == n9K + " Time"){E1w.value=Z$9.hhmmss(l7T);}}}}}}};Z$9.Studies.prepareStudy=function(q5_,F4c,b_h){var q0E=i6UVR;var N6M;N6M="u";N6M+="nd";q0E.W3G();N6M+="efined";if(typeof F4c.calculateFN == N6M){F4c.useRawValues=!!({});}if(Z$9.isEmpty(b_h.outputMap)){for(var m5N in b_h.outputs){if(F4c.useRawValues){b_h.outputMap[m5N]=m5N;}else {q0E.s$9(1);var z2z=q0E.V9a(10920,11700);q0E.s$9(111);var W0Y=q0E.v$j(1,691,691,9668);q0E.O_b(16);var i2y=q0E.V9a(12,9899,10);q0E.O_b(0);var h6l=q0E.V9a(38,529);q0E.O_b(108);var t2K=q0E.V9a(10,31620,437410,10,14);q0E.O_b(115);var z46=q0E.v$j(1949,1890,16,19,4);q0E.O_b(1);var F45=q0E.v$j(49150,58980);q0E.O_b(18);var p2I=q0E.v$j(33,14,18);q0E.s$9(116);var a7j=q0E.V9a(384,5,59,1,384);q0E.O_b(1);var N_A=q0E.v$j(8,8858);b_h.outputMap[m5N + ((z2z,W0Y) === i2y?"X":h6l < (+"9840",t2K)?(z46,F45) < ("555.21" - 0,"7233" | p2I)?"0x5f" << a7j:" ":N_A) + b_h.name]=m5N;}}}};Z$9.Studies.rejiggerDerivedStudies=function(C0L,E9h,e2T){var X3d,z8l,s8D,K5F,B3t,p0U,b01,b15,x7j;X3d=E9h.name;z8l=E9h.panel;s8D=E9h.getDependents(C0L);for(var I00="0" * 1;I00 < s8D.length;I00++){K5F=s8D[I00];B3t=Z$9.clone(K5F.inputs);p0U=B3t.id;if(!p0U)continue;b01=!!"";b15=Z$9.Studies.getFieldInputs(K5F);for(var S1f=+"0";S1f < b15.length;S1f++){B3t[b15[S1f]]=B3t[b15[S1f]].replace(X3d,e2T);}x7j=Z$9.Studies.replaceStudy(C0L,p0U,K5F.type,B3t,K5F.outputs,Z$9.extend(K5F.parameters,{rejiggering:!![]}),null,K5F.study);delete x7j.parameters.rejiggering;}};Z$9.Studies.removeStudySymbols=function(X0$,P0E){if(X0$.series){for(var p5S in X0$.series){P0E.deleteSeries(X0$.series[p5S],null,{action:"remove-study"});}};};Z$9.Studies.replaceStudy=function(Y9M,P81,f1a,I_F,c0j,l5C,z6G,c76){var O6Z,X4o,l0e,L5B;if(!l5C){l5C={};}if(P81){l5C.replaceID=P81;}P81=l5C.replaceID;O6Z=Y9M.layout.studies[P81];Z$9.Studies.removeStudySymbols(O6Z,Y9M);if(O6Z.attribution){Y9M.removeFromHolder(O6Z.attribution.marker);}if(Y9M.quoteDriver){Y9M.quoteDriver.updateSubscriptions();}if(I_F){if(I_F.id == I_F.display){delete I_F.display;}delete I_F.id;}X4o=Z$9.Studies.addStudy(Y9M,f1a,I_F,c0j,l5C,z6G,c76);X4o.highlight=O6Z.highlight;X4o.uniqueId=O6Z.uniqueId;L5B={};for(l0e in Y9M.layout.studies){if(l0e == P81){L5B[X4o.name]=X4o;}else {L5B[l0e]=Y9M.layout.studies[l0e];}}Y9M.layout.studies=L5B;L5B={};for(l0e in Y9M.overlays){if(l0e == P81){if(X4o.overlay || X4o.underlay){L5B[X4o.name]=X4o;}}else {L5B[l0e]=Y9M.overlays[l0e];}}Y9M.overlays=L5B;if(!Y9M.overlays[X4o.name] && (X4o.overlay || X4o.underlay)){Y9M.addOverlay(X4o);}Y9M.checkForEmptyPanel(O6Z.panel);if(!l5C.rejiggering){Y9M.initializeDisplay(Y9M.chart);Z$9.Studies.rejiggerDerivedStudies(Y9M,O6Z,X4o.inputs.id,X4o.panel);Y9M.changeOccurred("layout");if(!Y9M.currentlyImporting && !l5C.calculateOnly && X4o.chart.dataSet){Y9M.createDataSet(null,X4o.chart);}Y9M.draw();}Z$9.transferObject(O6Z,X4o);Y9M.layout.studies[X4o.name]=O6Z;Y9M.overlays[X4o.name]=O6Z;Y9M.chart.state.studies.sorted=null;return O6Z;};Z$9.Studies.addStudy=function(A7g,z3u,P5e,s2s,b30,F_I,y$f){var Q_0=i6UVR;var n9E,E6H,x52,D2P,R1O,E7H,D8A,d53,r1M,W6A,p58,D5h,E3C,O4a;n9E="c";n9E+="h";n9E+="ar";n9E+="t";E6H=y$f?y$f:Z$9.Studies.studyLibrary[z3u];if(!b30){b30={};}if(E6H){if(E6H.inputs){x52=Z$9.clone(E6H.inputs);for(var F4w in x52){if(x52[F4w] instanceof Array){if(E6H.attributes && E6H.attributes[F4w] && E6H.attributes[F4w].defaultSelected){x52[F4w]=E6H.attributes[F4w].defaultSelected;}else {x52[F4w]=x52[F4w][+"0"];}}}P5e=Z$9.extend(x52,P5e);}if(E6H.outputs){s2s=Z$9.extend(Z$9.clone(E6H.outputs),s2s);}D2P=E6H.parameters;if(D2P && D2P.init){b30=Z$9.extend(Z$9.clone(D2P.init),b30);}if(D2P && !b30.display){b30.display=D2P.display;}}Q_0.W3G();if(!P5e){P5e=Z$9.clone(Z$9.Studies.DEFAULT_INPUTS);}if(!s2s){s2s=Z$9.clone(Z$9.Studies.DEFAULT_OUTPUTS);}if(!b30.chartName){b30.chartName=n9E;}if(b30.panelName == "Auto" || b30.panelName == "Default panel"){b30.panelName="";}if(P5e.Period < 1){P5e.Period=1;}R1O=null;if(!A7g.layout.studies){A7g.layout.studies={};}if(E6H && E6H.initializeFN){R1O=E6H.initializeFN(A7g,z3u,P5e,s2s,b30,F_I,y$f);}else {R1O=Z$9.Studies.initializeFN(A7g,z3u,P5e,s2s,b30,F_I,y$f);}if(!R1O){Q_0.s$9(0);console.log(Q_0.V9a("CIQ.Studies.addStudy: initializeFN() returned null for ",z3u));return;}y$f=R1O.study;R1O.chart=A7g.charts[b30.chartName];R1O.type=z3u;R1O.permanent=y$f.permanent;R1O.customLegend=y$f.customLegend;R1O.uniqueId=Z$9.uniqueID();Z$9.Studies.prepareStudy(A7g,y$f,R1O);E7H=A7g.chart.state.studies;if(!E7H){E7H=A7g.chart.state.studies={};}E7H.sorted=null;if(!b30.replaceID){A7g.layout.studies[R1O.inputs.id]=R1O;if(R1O.overlay || R1O.underlay){A7g.addOverlay(R1O);}if(!A7g.currentlyImporting && !b30.calculateOnly && R1O.chart.dataSet){A7g.createDataSet(null,R1O.chart);}}else {D8A=!!({});delete b30.replaceID;}if(A7g.quoteDriver){A7g.quoteDriver.updateSubscriptions();}if(b30.calculateOnly){A7g.changeOccurred("layout");return R1O;}d53=A7g.panels[R1O.panel];r1M=!1;W6A=!(R1O.overlay || R1O.underlay);if(W6A && y$f.horizontalCrosshairFieldFN){d53.horizontalCrosshairField=y$f.horizontalCrosshairFieldFN(A7g,R1O);}if(A7g.editCallback){r1M=!![];}else if(W6A){if(A7g.callbackListeners.studyPanelEdit && A7g.callbackListeners.studyPanelEdit.length){r1M=!!"1";}}else {if(A7g.callbackListeners.studyOverlayEdit && A7g.callbackListeners.studyOverlayEdit.length){r1M=!!({});}}if(r1M){b30.editMode=!!({});p58=!!0;for(var r3Y in R1O.inputs){if(r3Y == "id")continue;if(r3Y == "display")continue;p58=!![];break;}if(!p58){for(var M6b in R1O.outputs){p58=!!"1";break;}}if(p58){if(typeof R1O.study.edit != "undefined"){if(R1O.study.edit){D5h=(function(C$n,p4l,P$S,b4U){return function(){Z$9.clearCanvas(C$n.chart.tempCanvas,C$n);Q_0.W3G();p4l.study.edit(p4l,{stx:C$n,inputs:P$S,outputs:b4U,parameters:b30});};})(A7g,R1O,P5e,s2s,b30);A7g.setPanelEdit(d53,D5h);R1O.editFunction=D5h;}}else if(!W6A){D5h=(function(O46,J9k,N9W,Z9f,m1A){return function(J$M){Z$9.clearCanvas(O46.chart.tempCanvas,O46);Q_0.W5N();O46.dispatch("studyOverlayEdit",{stx:O46,sd:J9k,inputs:N9W,outputs:Z9f,parameters:m1A,forceEdit:J$M});};})(A7g,R1O,P5e,s2s,b30);R1O.editFunction=D5h;}else {if(A7g.editCallback){E3C="cha";E3C+="r";E3C+="t";D5h=(function(N5s,g4w,o7t,s_H){Q_0.W3G();return function(){Q_0.W5N();var x7h;x7h=N5s.editCallback(N5s,g4w);Z$9.clearCanvas(N5s.chart.tempCanvas,N5s);Z$9.Studies.studyDialog(N5s,z3u,x7h,{inputs:o7t,outputs:s_H,parameters:b30});};})(A7g,R1O,P5e,s2s,b30);if(d53.name != E3C){A7g.setPanelEdit(d53,D5h);}}else {O4a="cha";O4a+="rt";D5h=(function(n6z,F0i,z4V,i1m,h30){Q_0.W5N();return function(){var k0P;k0P="studyP";Q_0.W5N();k0P+="anelE";k0P+="dit";Z$9.clearCanvas(n6z.chart.tempCanvas,n6z);n6z.dispatch(k0P,{stx:n6z,sd:F0i,inputs:z4V,outputs:i1m,parameters:h30});};})(A7g,R1O,P5e,s2s,b30);if(d53.name != O4a){A7g.setPanelEdit(d53,D5h);R1O.editFunction=D5h;}}}}}A7g.changeOccurred("layout");if(!D8A){A7g.draw();}return R1O;};Z$9.Studies.removeStudy=function(e01,q9L){var K_I,X5M,F2g,Z_6;K_I=e01.panels[q9L.panel];X5M=K_I && K_I.yAxis.name;if(q9L.overlay || q9L.underlay){e01.removeOverlay(q9L.name);}F2g=e01.panels[q9L.panel];if(q9L.attribution){e01.removeFromHolder(q9L.attribution.marker);}delete e01.layout.studies[q9L.name];if(F2g && !e01.checkForEmptyPanel(F2g)){if(X5M == q9L.name){e01.electNewPanelOwner(F2g);}Z_6=e01.getYAxisByName(q9L.panel,q9L.name);if(Z_6){Z_6.name=Z_6.studies[+"1"] || Z_6.renderers[0];}}e01.draw();e01.resizeChart();};Z$9.Studies.getPanelFromFieldName=function(U97,U0f){var Q66,n5o,Z49,x1f,K8r;Q66=Z$9.Studies.getFieldInputs(U0f);if(!Q66.length){return null;}n5o=U97.layout.studies;if(!n5o){return null;}Z49={};for(var t8_ in n5o){for(var h54 in n5o[t8_].outputMap){Z49[h54]=n5o[t8_].panel;}}i6UVR.W5N();for(var L7Z=0;L7Z < Q66.length;L7Z++){x1f=U0f.inputs[Q66[L7Z]];if(x1f){K8r=Z49[x1f];if(K8r){return K8r;}}}return null;};Z$9.Studies.createLibraryHash=function(){return Object.keys(Z$9.Studies.studyLibrary).join("|");;};Z$9.Studies.displayStudies=function(r62,g4t,n8p){i6UVR.W5N();var P3d,x4y,p2x,k7y,e4A,R4S,x2p,a1X,v6Z,J4d,a7T,w_o,W0Q,P0i,p3s;if(n8p){g4t.studyLibraryHash=Z$9.Studies.createLibraryHash();}P3d=r62.layout.studies;if(!P3d){return;}x4y={};x4y[g4t.name]=!!1;for(var k7$ in P3d){p2x=P3d[k7$];k7y=p2x.study;if(!k7y)continue;e4A=p2x.underlay || p2x.parameters && p2x.parameters.underlayEnabled;if(n8p && !e4A || !n8p && e4A)continue;R4S=Z$9.clone(k7y.renderer);if(R4S && !(R4S instanceof Array)){R4S=[R4S];}x2p=r62.panels[p2x.panel];if(x2p){if(x2p.chart != g4t)continue;if(x2p.hidden)continue;if(!x4y[x2p.name]){a1X=p2x.permanent || !r62.manageTouchAndMouse;if(x2p.closeX){if(a1X){x2p.closeX.style.display="none";}}else if(x2p.close){v6Z="n";v6Z+="o";v6Z+="ne";if(a1X){x2p.close.style.display=v6Z;}}if(x2p.edit){if(a1X){x2p.edit.style.display="none";}}x4y[x2p.name]=a1X;}}else {if(r62.currentlyImporting){delete P3d[k7$];}continue;}J4d=p2x.chart.dataSegment;if(p2x.panel == p2x.parameters.chartName && (!p2x.parameters || !p2x.parameters.panelName)){a7T=Z$9.Studies.getPanelFromFieldName(r62,p2x);if(a7T && p2x.panel != a7T){p2x.panel=a7T;}}if(typeof k7y.seriesFN == "undefined"){if(R4S){if(!p2x.overlay){Z$9.Studies.createYAxis(r62,p2x,J4d,x2p);}for(var Q16="0" >> 32;Q16 < R4S.length;Q16++){w_o=R4S[Q16];for(var P_C in p2x.outputMap){if(p2x.outputMap[P_C] == w_o.field){w_o.field=P_C;}}if(!w_o.field)continue;w_o.panel=p2x.panel;W0Q=w_o.binding;if(W0Q){for(var P1m in W0Q){P0i=Z$9.Studies.determineColor(p2x.outputs[W0Q[P1m]]);if(P0i && P0i != "auto"){w_o[P1m]=P0i;};}}w_o.yAxis=null;p3s=Z$9.Renderer.produce(w_o.type,w_o);p3s.stx=r62;p3s.attachSeries(null,w_o).draw();}}else {Z$9.Studies.displaySeriesAsLine(r62,p2x,J4d);}if(x2p){Z$9.Studies.displayError(r62,p2x);}}else {if(k7y.seriesFN){if(x2p){k7y.seriesFN(r62,p2x,J4d);Z$9.Studies.displayError(r62,p2x);}}}}};Z$9.Studies.displayError=function(F4V,l9e,A2e){var W4k,Q4r,Z6X;W4k="c";W4k+="e";W4k+="nte";W4k+="r";if(!l9e.error){return;}Q4r=A2e && A2e.panel?A2e.panel:l9e.panel;Z6X=l9e.error === !![]?F4V.translateIf("Not enough data to compute ") + F4V.translateIf(l9e.study.name):F4V.translateIf(l9e.error);if(A2e && (A2e.h !== W4k || A2e.v !== "bottom")){F4V.watermark(Q4r,A2e);return;}F4V.displayErrorAsWatermark(Q4r,Z6X);};Z$9.Studies.calculateMinMaxForDataPoint=function(T7B,r8Z,z4j){var h7z,O2v,h6Z;h7z=Number.MAX_VALUE;i6UVR.O_b(67);var c69=i6UVR.v$j(7,7,18,19);O2v=Number.MAX_VALUE * c69;for(var E43=0;E43 < z4j.length;E43++){h6Z=z4j[E43][r8Z];if(h6Z === null || typeof h6Z == "undefined")continue;if(isNaN(h6Z))continue;h7z=Math.min(h6Z,h7z);O2v=Math.max(h6Z,O2v);}return {min:h7z,max:O2v};};Z$9.Studies.getYAxisParameters=function(u23,r$l){var P49=i6UVR;var O0Y,B$H,l5l,n1n,c04,a6A;P49.W5N();O0Y={};B$H=u23.layout.studies && u23.layout.studies[r$l.name];if(B$H){l5l=B$H.study;if(l5l.yaxis || l5l.yAxisFN){O0Y.noDraw=!!({});}else {if(l5l.parameters && l5l.parameters.excludeYAxis){O0Y.noDraw=!![];}O0Y.ground=l5l.yAxis && l5l.yAxis.ground;if(r$l){n1n="byp";n1n+="a";n1n+="ss";if(l5l.range != n1n){c04="-";c04+="1 ";c04+="t";c04+="o 1";a6A="0 t";a6A+="o ";a6A+="1";a6A+="00";if(l5l.range == a6A){P49.s$9(42);O0Y.range=[P49.v$j("0",0),P49.V9a("100",0,P49.s$9(29))];}else if(l5l.range == c04){O0Y.range=[-+"1",1];}else {if(l5l.range == "0 to max"){O0Y.range=[0,Math.max(0,r$l.high)];}else if(l5l.centerline || l5l.centerline === 0){O0Y.range=[Math.min(l5l.centerline,r$l.low),Math.max(l5l.centerline,r$l.high)];}}}if(O0Y.range){P49.s$9(1);r$l.low=O0Y.range[P49.V9a(0,"0")];r$l.high=O0Y.range[1];}if(B$H.min){r$l.min=B$H.min;}if(B$H.max){r$l.max=B$H.max;}if(B$H.parameters && B$H.parameters.studyOverZonesEnabled){O0Y.noDraw=!0;}}}}return O0Y;};Z$9.Studies.doPostDrawYAxis=function(H_I,i5U){var L4_,K4S,M7M,K6O,J8Y;for(var M5o in H_I.layout.studies){L4_=H_I.layout.studies[M5o];K4S=H_I.panels[L4_.panel];if(!K4S || K4S.hidden)continue;M7M=L4_.getYAxis(H_I);if(M7M != i5U)continue;K6O=L4_.study;if(i5U.name == L4_.name){if(K6O.yaxis){K6O.yaxis(H_I,L4_);}if(K6O.yAxisFN){K6O.yAxisFN(H_I,L4_);};}Z$9.Studies.drawZones(H_I,L4_);if(!L4_.error){J8Y=K6O.centerline;if(J8Y || J8Y === "0" >> 64 || J8Y !== null && i5U.highValue > 0 && i5U.lowValue < 0){Z$9.Studies.drawHorizontal(H_I,L4_,null,J8Y || 0,i5U);}}}};Z$9.Studies.displaySeriesAsLine=function(z4g,w5t,R7f){var z66;if(!R7f.length){return;}z66=z4g.panels[w5t.panel];if(!z66 || z66.hidden){return;}i6UVR.W3G();for(var v$n in w5t.outputMap){Z$9.Studies.displayIndividualSeriesAsLine(z4g,w5t,z66,v$n,R7f);}};Z$9.Studies.displaySeriesAsHistogram=function(t78,e8m,y3A){var U_n,H84,V88,r0b,K23,u47,L4$,R5c,D1C,f_w,Q0N,E4Z;U_n="overl";U_n+="aid";if(!y3A.length){return;}H84=t78.panels[e8m.panel];if(!H84){return;}if(H84.hidden){return;}V88=[];for(var H64 in e8m.outputMap){r0b="o";r0b+="bj";r0b+="e";r0b+="ct";K23=e8m.outputs[e8m.outputMap[H64]];if(!K23)continue;i6UVR.s$9(1);u47=i6UVR.v$j(0,"0.3");if(typeof K23 == r0b){u47=K23.opacity;K23=K23.color;}L4$={field:H64,fill_color_up:K23,border_color_up:K23,fill_color_down:K23,border_color_down:K23};if(e8m.underlay){L4$.opacity_up=L4$.opacity_down=u47 || "0.3" - 0;}V88.push(L4$);}i6UVR.W5N();R5c=e8m.getYAxis(t78);D1C=e8m.inputs;f_w=D1C.WidthFactor;if(e8m.study && e8m.study.parameters){Q0N=e8m.study.parameters;if(typeof Q0N.widthFactor !== "undefined"){f_w=Q0N.widthFactor;}}E4Z={name:e8m.name,type:D1C.HistogramType?D1C.HistogramType:U_n,panel:e8m.panel,yAxis:R5c,widthFactor:f_w || 0.5,bindToYAxis:!"",highlight:e8m.highlight};t78.drawHistogram(E4Z,V88);};Z$9.Studies.displayIndividualSeriesAsLine=function(D7f,U2R,g5D,V75,U3I){var J7G,B59,v9q,D5B,D29,h9B,h9t,j0r,T8j,t_n,t$n,v9k,f4M,u8J,g_r,h1R,E3S,S74,u4m;J7G="tran";J7G+="s";J7G+="parent";B59="au";i6UVR.W3G();B59+="t";B59+="o";v9q="s";v9q+="t";v9q+="ring";if(!g5D.height){g5D.height=g5D.bottom - g5D.top;}D5B=U2R.getContext(D7f);D29=U2R.outputs[U2R.outputMap[V75]];if(!D29){return;}D5B.save();if(typeof D29 === v9q){D29={color:D29,width:1};}D5B.lineWidth=D29.width || 1;h9B=D29.color;if(h9B == B59){h9B=D7f.defaultColor;}D5B.strokeStyle=h9B;h9t=D29.pattern;D5B.setLineDash(Z$9.borderPatternToArray(D5B.lineWidth,h9t));D5B.lineDashOffset=0;j0r=0;T8j=U2R.study;t_n=U2R.getYAxis(D7f);j0r=D7f.decimalPlacesFromPriceTick(t_n.priceTick);if(U2R.overlay || U2R.underlay){j0r=null;}if(t_n.decimalPlaces || t_n.decimalPlaces === 0){j0r=t_n.decimalPlaces;}t$n=null;if(U2R.parameters){t$n=U2R.parameters.label;}v9k=T8j.parameters;if(!v9k){v9k={};}f4M=v9k.plotType == "step";if(U2R.series){for(var L06 in U2R.series){u8J="s";u8J+="te";u8J+="p";g_r=U2R.series[L06].parameters.type;if(g_r){i6UVR.O_b(72);f4M=i6UVR.V9a(g_r,u8J);}}}if(v9k.noLabels){t$n=![];}if(!U2R.noSlopes && U2R.noSlopes !== !({})){U2R.noSlopes=v9k.noSlopes;}if(!U2R.extendToEnd && U2R.extendToEnd !== !({})){U2R.extendToEnd=v9k.extendToEnd;}h1R=t$n || D7f.preferences.labels && t$n !== ![];E3S=U2R.gaplines;if(E3S === !!""){E3S=J7G;}S74=U2R.inputs.Symbol;u4m=E3S?D7f.getGapColorFunction(S74,V75,D29,E3S):null;D7f.plotDataSegmentAsLine(V75,g5D,{yAxis:t_n,skipTransform:D7f.panels[U2R.panel].name != U2R.chart.name,label:h1R,labelDecimalPlaces:j0r,noSlopes:U2R.noSlopes,step:f4M,alignStepToSide:U2R.alignStepToSide,extendToEndOfLastBar:U2R.extendToEndOfLastBar,width:U2R.lineWidth,extendToEndOfDataSet:U2R.extendToEnd,gapDisplayStyle:E3S,highlight:U2R.highlight},u4m);if(T8j.appendDisplaySeriesAsLine){T8j.appendDisplaySeriesAsLine(D7f,U2R,U3I,V75,g5D);}D5B.restore();};Z$9.Studies.drawHorizontal=function(G84,J30,V57,s01,H58,b9z){var d4y,Z3P,Z20,p$L;d4y="s";d4y+="e";d4y+="gm";d4y+="ent";i6UVR.W5N();Z3P=G84.panels[J30.panel];Z20=G84.getBackgroundCanvas().context;if(!Z3P){return;}if(!b9z){b9z=H58.textStyle;}p$L=G84.pixelFromPrice(s01,Z3P,H58);if(p$L > H58.top && p$L < H58.bottom){G84.plotLine(Z3P.left,Z3P.right,p$L,p$L,b9z,d4y,Z20,![],{opacity:b9z && b9z.opacity?b9z.opacity:0.5});}};Z$9.Studies.displayHistogramWithSeries=function(f3z,s1N,m2C){var h$q,I7W;h$q=f3z.panels[s1N.panel];I7W=+"0.5";if(s1N.underlay){I7W=0.3;}Z$9.Studies.createHistogram(f3z,s1N,m2C,![],I7W);Z$9.Studies.displaySeriesAsLine(f3z,s1N,m2C);};Z$9.Studies.drawZones=function(L0o,m4b,l97){var g6N=i6UVR;var n0W,R4g,Q0o,f6r,l1K,G7X,d7t,e64,E5C,s4v,k_G,P4T,C$J,c17,a_P,D0T,M3G,w5E,R9O,B5n,t2Y,J5o,B3Q,C$A,Y0f,G1u,a1F,i4q;n0W="b";n0W+="ord";n0W+="er";R4g="l";R4g+="e";R4g+="f";g6N.W3G();R4g+="t";if(!m4b.parameters || !m4b.parameters.studyOverZonesEnabled){return;}Q0o=parseFloat(m4b.parameters.studyOverSoldValue);f6r=parseFloat(m4b.parameters.studyOverBoughtValue);l1K=m4b.parameters.studyOverSoldColor;G7X=m4b.parameters.studyOverBoughtColor;d7t=m4b.zoneOutput;if(!d7t){d7t="Result";}e64=Z$9.Studies.determineColor(m4b.outputs[d7t]);if(!e64 || e64 == "auto" || Z$9.isTransparent(e64)){e64=L0o.defaultColor;}if(!l1K){l1K=e64;}if(!l1K || l1K == "auto" || Z$9.isTransparent(l1K)){l1K=L0o.defaultColor;}if(!G7X){G7X=e64;}if(!G7X || G7X == "auto" || Z$9.isTransparent(G7X)){G7X=L0o.defaultColor;}E5C=L0o.panels[m4b.panel];s4v=m4b.getYAxis(L0o);k_G=s4v.displayBorder;if(L0o.axisBorders === !1){k_G=!({});}if(L0o.axisBorders === !![]){k_G=!![];}if(s4v.width === +"0"){k_G=!1;}P4T=L0o.getYAxisCurrentPosition(s4v,E5C);g6N.O_b(72);C$J=g6N.v$j(P4T,R4g);c17=s4v.justifyRight;if(!c17 && c17 !== !!0){if(L0o.chart.yAxis.justifyRight || L0o.chart.yAxis.justifyRight === ![]){c17=L0o.chart.yAxis.justifyRight;}else {c17=C$J;}}a_P=Math.round(s4v.left + (C$J?s4v.width:+"0")) + 0.5;D0T=k_G?3:0;M3G=L0o.getBackgroundCanvas().context;w5E=M3G.fillStyle;M3G.globalAlpha=0.2;L0o.startClip(E5C.name,!0);M3G.beginPath();R9O=Math.round(L0o.pixelFromPrice(f6r,E5C,s4v)) + +"0.5";M3G.strokeStyle=G7X;M3G.moveTo(E5C.left,R9O);M3G.lineTo(E5C.right,R9O);M3G.stroke();M3G.closePath();M3G.beginPath();B5n=Math.round(L0o.pixelFromPrice(Q0o,E5C,s4v)) + 0.5;M3G.strokeStyle=l1K;M3G.moveTo(E5C.left,B5n);M3G.lineTo(E5C.right,B5n);M3G.stroke();M3G.closePath();t2Y=new Z$9.Plotter();t2Y.newSeries(n0W,"stroke",L0o.canvasStyle("stx_grid_border"));if(k_G){J5o=C$J?a_P - D0T:a_P - 0.5;B3Q=C$J?a_P + 0.5:a_P + D0T;t2Y.moveTo("border",J5o,R9O);t2Y.lineTo("border",B3Q,R9O);t2Y.moveTo("border",J5o,B5n);t2Y.lineTo("border",B3Q,B5n);}M3G.fillStyle=w5E;C$A={skipTransform:L0o.panels[m4b.panel].name != m4b.chart.name,panelName:m4b.panel,band:d7t + ((6059,7010) > 320.6?" ":("x",+"838.29")) + m4b.name,yAxis:s4v,opacity:0.3};if(!m4b.highlight && L0o.highlightedDraggable){C$A.opacity*=0.3;}Z$9.preparePeakValleyFill(L0o,Z$9.extend(C$A,{threshold:f6r,direction:s4v.flipped?-1:1,color:G7X}));Z$9.preparePeakValleyFill(L0o,Z$9.extend(C$A,{threshold:Q0o,direction:s4v.flipped?1:-1,color:l1K}));M3G.globalAlpha=1;if(!m4b.study || !m4b.study.yaxis){if(k_G){Y0f="b";Y0f+="order";G1u="bor";G1u+="d";G1u+="e";G1u+="r";a1F=Math.round(s4v.bottom) + 0.5;t2Y.moveTo(G1u,a_P,s4v.top);t2Y.lineTo("border",a_P,a1F);t2Y.draw(M3G,Y0f);}if(s4v.width !== +"0"){L0o.canvasFont("stx_yaxis",M3G);L0o.canvasColor("stx_yaxis",M3G);M3G.textAlign=c17?"right":"left";if(C$J){i4q=s4v.left + +"3";if(c17){g6N.s$9(0);var l3h=g6N.v$j(0,3);i4q=s4v.left + s4v.width - D0T - l3h;}}else {g6N.s$9(16);var u_Y=g6N.v$j(8,18,23);i4q=s4v.left + D0T + u_Y;if(c17){i4q=s4v.left + s4v.width;}}M3G.fillStyle=G7X;M3G.fillText(f6r,i4q,R9O);M3G.fillStyle=l1K;M3G.fillText(Q0o,i4q,B5n);M3G.fillStyle=w5E;}}L0o.endClip();M3G.globalAlpha=1;if(s4v.name == m4b.name){s4v.yAxisPlotter=new Z$9.Plotter();}};Z$9.Studies.createHistogram=function(R$K,g0I,I5V,b7n,j4Z){var N$h=i6UVR;var N1v,y3h,i$L,r8c,d9d,e1h,d0f,x9m,I4q,C6d,w8f,z4B,T84,j1A,J8E,y$T,F0N,M4s,H2S;N1v=R$K.panels[g0I.panel];y3h=g0I.getContext(R$K);i$L=g0I.getYAxis(R$K);R$K.startClip(N1v.name);N$h.O_b(24);var X$a=N$h.V9a(17,7,38,16);r8c=R$K.layout.candleWidth - X$a;if(r8c < 2){r8c=1;}d9d=R$K.pixelFromPrice(0,N1v,i$L);if(i$L.min > ("0" ^ 0)){d9d=R$K.pixelFromPrice(i$L.min,N1v,i$L);}if(b7n){d9d=Math.floor(N1v.top + N1v.height / 2);}e1h=g0I.name + "_hist";R$K.canvasColor("stx_histogram");d0f=y3h.fillStyle;if(j4Z || j4Z === "0" >> 32){y3h.globalAlpha=j4Z;}if(!g0I.highlight && R$K.highlightedDraggable){y3h.globalAlpha*=0.3;}x9m=null;I4q=null;C6d=g0I.outputs;for(var t3K=0;t3K < I5V.length;t3K++){w8f=I5V[t3K];if(!w8f)continue;if(w8f.candleWidth){r8c=Math.floor(Math.max("1" * 1,w8f.candleWidth - 2));}z4B=Math.floor(R$K.pixelFromBar(t3K,N1v.chart) - r8c / 2);T84=Math.floor(r8c);if(x9m === null){N$h.s$9(117);var k$5=N$h.V9a(13,4,8);j1A=R$K.tickFromPixel(z4B,N1v.chart) - k$5;if(j1A < 0){x9m=I4q;}else {x9m=R$K.pixelFromPrice(R$K.chart.dataSet[j1A][e1h],N1v,i$L) - d9d;}}else {x9m=I4q;}I4q=R$K.pixelFromPrice(w8f[e1h],N1v,i$L) - d9d;J8E=Z$9.Studies.determineColor(C6d["Decreasing Bar"]);y$T=Z$9.Studies.determineColor(C6d["Increasing Bar"]);F0N=Z$9.Studies.determineColor(C6d["Positive Bar"]);M4s=Z$9.Studies.determineColor(C6d["Negative Bar"]);H2S=i$L.flipped;y3h.fillStyle=d0f;if(J8E && (H2S?I4q < x9m:I4q > x9m)){y3h.fillStyle=J8E;}else if(y$T && (H2S?I4q > x9m:I4q < x9m)){y3h.fillStyle=y$T;}else if(F0N && (H2S?I4q > 0:I4q < 0)){y3h.fillStyle=F0N;}else if(M4s && (H2S?I4q < +"0":I4q > 0)){y3h.fillStyle=M4s;}y3h.fillRect(z4B,d9d,T84,Math.floor(I4q));}y3h.globalAlpha=+"1";R$K.endClip();};Z$9.Studies.prettify={Close:4450 >= 536?6430 === (4102,"641" * 1)?938.73:"C":!1,Open:"O",High:"H",Low:"L",simple:"ma",exponential:"ema",triangular:"tma",VIDYA:"vdma",weighted:U6i,"welles wilder":"smma",true:(4640,"604.43" - 0) <= (588.88,+"9667")?4130 === (1130,+"306.78")?330.11:5274 == 262.64?("m",0x23fd):"y":1.52e+3,false:(1880,1630) > (9360,2500)?(1.60e+3,0xc8d):"n"};Z$9.Studies.prettyRE=/^.*\((.*?)\).*$/;Z$9.Studies.prettyDisplay=function(V4T){var I3L,v1k;I3L=Z$9.Studies.prettyRE.exec(V4T);if(!I3L){return V4T;}v1k=I3L[+"1"];if(v1k){for(var L4w in Z$9.Studies.prettify){v1k=v1k.replace(L4w,Z$9.Studies.prettify[L4w]);}V4T=V4T.replace(I3L[1],v1k);}i6UVR.W3G();return V4T;};Z$9.Studies.getFieldInputs=function(u73){var v1I,j9b;v1I=[];j9b=u73.study.inputs;for(var E6j in j9b){if(j9b[E6j] == "field"){v1I.push(E6j);}}return v1I;};Z$9.Studies.initializeFN=function(u2X,n87,w1G,l_0,j1J,g0o,n8m){var O6j,X9x,B8R,I1y,O9e,m72,E3i,q5B,I7w,z70,f7w,K2b,j_9,k3A,b17,i2m,x0A,j$p,L$u;O6j="st";O6j+="ring";if(!w1G){w1G={};}if(!j1J){j1J={};}if(!w1G.id){w1G.id=Z$9.Studies.generateID(u2X,n87,w1G,j1J.replaceID,j1J.display);}if(!w1G.display){w1G.display=w1G.id;}X9x=new Z$9.Studies.StudyDescriptor(w1G.id,n87,w1G.id,w1G,l_0,j1J);if(w1G.Period){X9x.days=Math.max(1,parseInt(X9x.inputs.Period,10));}if(n8m){if(!n8m.inputs){n8m.inputs=X9x.study.inputs;}if(!n8m.outputs){n8m.outputs=X9x.study.outputs;}X9x.study=n8m;}else {n8m=X9x.study;}if(n8m.display){w1G.display=n8m.display;}if(typeof j1J.panelName == O6j){g0o=j1J.panelName;}if(g0o == w1G.id || g0o && !u2X.panelExists(g0o)){X9x.underlay=X9x.overlay=!({});}if(g0o == "Own panel" || g0o == "New panel"){g0o=null;}B8R=X9x.overlay || w1G.Overlay || X9x.overlay !== ![] && n8m.overlay;I1y=X9x.underlay || w1G.Underlay || X9x.underlay !== !!0 && n8m.underlay;if(B8R && j1J.underlayEnabled){I1y=!![];}if(I1y){X9x.underlay=!![];}if(!I1y && u2X.chart.panel && g0o == u2X.chart.panel.name){B8R=!!"1";}if(B8R){X9x.overlay=!![];}O9e=u2X.preferences.dragging;if(O9e === !![] || O9e && O9e.study){X9x.overlay=!![];}if(g0o){j1J.panelName=g0o;}else if(!B8R && !I1y){g0o=w1G.id;}if(j1J.calculateOnly){if(B8R || I1y){if(u2X.panels[j1J.panelName]){X9x.panel=j1J.panelName;}else {X9x.panel=Z$9.Studies.getPanelFromFieldName(u2X,X9x) || j1J.chartName;}}return X9x;}m72={};E3i=u2X.layout.studies[j1J.replaceID];if(E3i){m72={outputMap:Z$9.clone(E3i.outputMap),panel:E3i.panel};}X9x.panel="";if(g0o){q5B="Ne";q5B+="w pa";q5B+="nel";I7w=Z$9.Studies.smartMovePanel(u2X,X9x.inputs,g0o,j1J.replaceID,j1J.panelName == q5B);if(I7w){X9x.panel=I7w.name;}}else if(B8R || I1y){X9x.panel=Z$9.Studies.getPanelFromFieldName(u2X,X9x) || j1J.chartName;}if(!X9x.panel){z70=n8m.panelHeight || null;f7w=n8m.yAxis || ({});f7w.name=X9x.inputs.id;X9x.panel=X9x.inputs.id;u2X.createPanel(X9x.inputs.display,X9x.panel,z70,j1J.chartName,new Z$9.ChartEngine.YAxis(f7w));}if(X9x.parameters && X9x.parameters.panelName){X9x.parameters.panelName=X9x.panel;}K2b=u2X.panels[X9x.panel];j_9=Z$9.Studies.smartCreateYAxis(u2X,K2b,X9x.inputs.id,j1J.yaxisDisplayValue,j1J.yAxis || n8m.yAxis);k3A=n8m?Z$9.clone(n8m.yAxis):null;b17=k3A || j_9;if(b17){if(b17.ground){b17.initialMarginBottom=0;}if(b17.initialMarginTop || b17.initialMarginTop === 0 || b17.initialMarginBottom || b17.initialMarginBottom === 0){u2X.calculateYAxisMargins(b17);}if(b17.name == j1J.replaceID){b17.name=X9x.inputs.id;}}if(j_9){i2m="de";i2m+="fau";i2m+="l";i2m+="t";x0A="n";x0A+="o";x0A+="ne";j_9.width=j_9.position == x0A?+"0":Z$9.ChartEngine.YAxis.prototype.width;if(j1J.yaxisDisplayValue == "shared" || j1J.yaxisDisplayValue == i2m){delete j1J.yaxisDisplayValue;}else {if(k3A){Z$9.ensureDefaults(j_9,k3A);}else if(j_9.name == X9x.name){if(!j1J.yaxisDisplayColor || j1J.yaxisDisplayColor == "auto"){delete j_9.textStyle;}else {j_9.textStyle=Z$9.colorToHex(j1J.yaxisDisplayColor);}j_9.justifyRight=null;j_9.flipped=j1J.flippedEnabled;}}if(j_9 != K2b.yAxis){j_9.displayGridLines=![];}else if(j_9 != u2X.chart.yAxis){j_9.displayGridLines=u2X.displayGridLinesInStudies;}}u2X.calculateYAxisPositions();if(E3i){j$p=!1;for(var D88 in u2X.drawingObjects){L$u=u2X.drawingObjects[D88];if(m72.outputMap && m72.outputMap.hasOwnProperty(L$u.field)){L$u.field=L$u.field.replace(j1J.replaceID,X9x.inputs.id);if(X9x.parameters && X9x.parameters.panelName){L$u.panelName=X9x.parameters.panelName;}else {L$u.panelName=X9x.panel;}j$p=!![];}else if(m72.panel && m72.panel == L$u.panelName){L$u.panelName=L$u.panelName.replace(j1J.replaceID,X9x.inputs.id);j$p=!"";}}if(j$p){u2X.changeOccurred("vector");}}return X9x;};Z$9.Studies.smartMovePanel=function(w2T,F3d,V3z,w77,h23){var K1Z,u_s,M9e,n5A,h_Y,E3N,J4h;u_s=F3d.id;i6UVR.W3G();if(w77){K1Z=w2T.layout.studies[w77];}if(K1Z){M9e=w2T.panels[K1Z.panel];if(M9e){if(M9e.yAxis.name == w77){if((h23 || V3z != w77) && !w2T.checkForEmptyPanel(M9e.name,!!({}),K1Z)){w2T.electNewPanelOwner(M9e);n5A=K1Z.getYAxis(w2T);if(n5A.name == w77){w2T.electNewYAxisOwner(n5A);};}else if(V3z == w77 || !w2T.panels[V3z]){if(u_s != M9e.name){w2T.modifyPanel(M9e,{name:u_s,display:F3d.display});}V3z=u_s;}}}}h_Y=-1993084428;E3N=-216948721;J4h=2;for(var c$c=1;i6UVR.l5h(c$c.toString(),c$c.toString().length,43741) !== h_Y;c$c++){return w2T.panels[V3z];}if(i6UVR.m6F(J4h.toString(),J4h.toString().length,+"39751") !== E3N){return w2T.panels[V3z];}};Z$9.Studies.smartCreateYAxis=function(g7F,n_5,y6c,D73,m7A){var F8e=i6UVR;var z4n,x7A,n5w,j0X,Y7x,r0E,f3l,z93,d0e,o$m;z4n="l";z4n+="ef";z4n+="t";x7A="sha";x7A+="re";x7A+="d";F8e.W3G();n5w="def";n5w+="a";n5w+="ult";j0X=g7F.getYAxisByName(n_5,y6c);if(!D73 && m7A){D73=m7A.position;}if(D73 == n5w || D73 == x7A || D73 == n_5.yAxis.name){D73="";}if([z4n,"right","none"].indexOf(D73) > -1){if(!j0X || j0X.isShared(g7F)){Y7x=m7A || ({});Z$9.extend(Y7x,{name:y6c,position:D73});if(!j0X && !g7F.currentlyImporting && n_5 != n_5.chart.panel && !n_5.yAxis.studies.length && !n_5.yAxis.renderers.length){j0X=n_5.yAxis;Z$9.extend(j0X,Y7x);}else {r0E=j0X == n_5.yAxis;if(j0X){j0X.name=g7F.electNewYAxisOwner(j0X);}j0X=g7F.addYAxis(n_5,new Z$9.ChartEngine.YAxis(Y7x));if(r0E){n_5.yAxis=j0X;}}}else {j0X.position=D73;}f3l=1792883497;F8e.s$9(29);z93=-F8e.V9a("161301282",0);d0e=2;for(var W$X=1;F8e.m6F(W$X.toString(),W$X.toString().length,85028) !== f3l;W$X++){return j0X;}if(F8e.l5h(d0e.toString(),d0e.toString().length,66069) !== z93){return j0X;}}if(D73){o$m=g7F.getYAxisByName(n_5,D73);if(o$m && j0X == n_5.yAxis && !j0X.isShared(g7F)){n_5.yAxis=o$m;}if(j0X && j0X.isShared(g7F)){j0X.name=g7F.electNewYAxisOwner(j0X);}else {if(j0X !== n_5.yAxis){g7F.deleteYAxisIfUnused(n_5,j0X);}}return o$m;}if(j0X){if(j0X.isShared(g7F)){j0X.name=g7F.electNewYAxisOwner(j0X);}else {delete j0X.position;if(j0X !== n_5.yAxis){g7F.deleteYAxisIfUnused(n_5,j0X);}}}g7F.resizeChart();return n_5.yAxis;};Z$9.Studies.calculateVolume=function(i4G,W3k){var J3e,p6N,U_Q,G1t;J3e="vol und";J3e+="r";if(W3k.type == J3e){if(!i4G || !i4G.chart.dataSet){return;}p6N=i4G.layout;U_Q=W3k.parameters.removeStudy;G1t=p6N.volumeUnderlay;p6N.volumeUnderlay=!U_Q;if(G1t != p6N.volumeUnderlay){i4G.changeOccurred("layout");}if(U_Q){Z$9.Studies.removeStudy(i4G,W3k);}}W3k.outputMap={};W3k.outputMap.Volume="";};Z$9.Studies.MA=function(q1K,j2E,E4h,p6v,P_k,C8t,Q1U,Y0X){var y4$=i6UVR;var M_X;y4$.s$9(26);var S$D=y4$.v$j(5456,18,5440,5438);y4$.s$9(21);var x6l=y4$.V9a(7,7578,45466);y4$.s$9(118);var h$c=y4$.V9a(2,6355,15,6360,5);y4$.s$9(1);var D1n=y4$.v$j(44165,52998);y4$.s$9(119);var b5G=y4$.V9a(3497,3497,3494);y4$.O_b(16);var J3l=y4$.V9a(20,5863,22);y4$.s$9(58);var v2h=y4$.V9a(440,8,221,884);M_X=new Z$9.Studies.StudyDescriptor(P_k + ((S$D,x6l) == (39.39,h$c)?(D1n,904.16) <= (+"665.73",b5G)?(J3l,"D"):(v2h,"u"):" ") + Q1U.name,"ma",Q1U.panel);M_X.chart=Q1U.chart;M_X.days=parseInt(j2E,10);M_X.startFrom=Q1U.startFrom;if(Y0X){M_X.subField=Y0X;}M_X.inputs={};if(q1K){M_X.inputs.Type=q1K;}y4$.W5N();if(E4h){M_X.inputs.Field=E4h;}if(p6v){M_X.inputs.Offset=parseInt(p6v,10);}Z$9.Studies.calculateMovingAverage(C8t,M_X);};Z$9.Studies.movingAverage={conversions:{ma:h0R,sma:"simple",ema:p0k,tma:"triangular",vdma:b84,wma:"weighted",smma:"welles wilder"},translations:{simple:"Simple",exponential:"Exponential",triangular:v8w,vidya:"VIDYA",weighted:"Weighted","welles wilder":"Welles Wilder"},typeMap:{ema:Y$e,exponential:C79,tma:"Triangular",triangular:"Triangular",vdma:"VIDYA",vidya:"VIDYA",wma:"Weighted",weighted:"Weighted",smma:"Exponential","welles wilder":"Exponential"}};Z$9.Studies.movingAverageHelper=function(O2p,i8W){var H8D;if(i8W == "options"){H8D={};for(var T9d in Z$9.Studies.movingAverage.translations){H8D[T9d]=O2p.translateIf(Z$9.Studies.movingAverage.translations[T9d]);}return H8D;}return Z$9.Studies.movingAverage.conversions[i8W];};Z$9.Studies.createVolumeChart=function(T_V,S0r,Z0t){var p9t=i6UVR;var N3I,a1b,B4N,p41,y6P,X$L,C_L,q42,I72,E4d,x7J,T91,w9a,i$_,w$j,J8L;N3I="rg";N3I+="b(184, ";N3I+="44, 12)";a1b="_";a1b+="do";a1b+="wn";B4N="D";B4N+="own ";B4N+="V";B4N+="olume";p41="Up Volum";p41+="e";y6P=S0r.panel;X$L=S0r.inputs;C_L=S0r.underlay;q42=S0r.overlay;I72=C_L || q42;E4d=Z$9.Studies.determineColor(S0r.outputs[p41]);x7J=Z$9.Studies.determineColor(S0r.outputs[B4N]);T91=C_L?"stx_volume_underlay":"stx_volume";p9t.s$9(0);T_V.setStyle(p9t.v$j(T91,"_up"),"color",E4d);p9t.s$9(0);T_V.setStyle(p9t.V9a(T91,"_down"),"color",x7J);w9a=[{field:S0r.volumeField || "Volume",fill_color_up:T_V.canvasStyle(T91 + "_up").color,border_color_up:T_V.canvasStyle(T91 + "_up").borderLeftColor,opacity_up:T_V.canvasStyle(T91 + "_up").opacity,fill_color_down:T_V.canvasStyle(T91 + a1b).color,border_color_down:T_V.canvasStyle(T91 + "_down").borderLeftColor,opacity_down:T_V.canvasStyle(T91 + "_down").opacity,color_function:S0r.colorFunction}];i$_=w9a[+"0"];if(!C_L && i$_.border_color_down === N3I){i$_.border_color_down="#000000";i$_.border_color_up="#000000";}w$j=S0r.getYAxis(T_V);J8L={name:"Volume",panel:y6P,yAxis:w$j,widthFactor:1,bindToYAxis:!"",highlight:S0r.highlight};Z$9.extend(J8L,S0r.study.parameters);Z$9.extend(J8L,S0r.parameters);if(T_V.colorByCandleDirection && !S0r.colorFunction){i$_.color_function=function(h5C){var c6G,b2d;c6G=h5C.Open;b2d=h5C.Close;return {fill_color:c6G > b2d?i$_.fill_color_down:i$_.fill_color_up,border_color:c6G > b2d?i$_.border_color_down:i$_.border_color_up,opacity:c6G > b2d?i$_.opacity_down:i$_.opacity_up};};}T_V.drawHistogram(J8L,w9a);};Z$9.Studies.calculateStandardDeviation=function(w5M,c0c){var B56=i6UVR;var R3j,C4v,G4B,b7i,F5u,x8z,G6Y,J2v,u_q,G19,X90,f_Q,O4k,A_y,Q94,m12;R3j="_";B56.W3G();R3j+="M";R3j+="A";C4v="C";C4v+="los";C4v+="e";G4B="fiel";G4B+="d";b7i=c0c.chart.scrubbed;if(b7i.length < c0c.days + 1){c0c.error=!![];return;}F5u=c0c.inputs.Field;if(!F5u || F5u == G4B){F5u=C4v;}x8z=c0c.inputs["Moving Average Type"];if(!x8z){x8z=c0c.inputs.Type;}Z$9.Studies.MA(x8z,c0c.days,F5u,c0c.inputs.Offset,R3j,w5M,c0c);G6Y=0;B56.O_b(1);J2v=B56.v$j(0,"0");u_q=0;G19=Number(c0c.inputs["Standard Deviations"]);if(G19 < 0){G19=2;}X90=c0c.name;for(var o0_ in c0c.outputs){B56.s$9(35);X90=B56.V9a(" ",X90,o0_);}for((f_Q=c0c.startFrom - 1,A_y=0);f_Q >= 0 && A_y < c0c.days;(f_Q--,A_y++)){O4k=b7i[f_Q][F5u];if(O4k && typeof O4k == "object"){O4k=O4k[c0c.subField];}if(isNaN(O4k)){O4k=0;}G6Y+=Math.pow(O4k,2);J2v+=O4k;}for(f_Q=c0c.startFrom;f_Q < b7i.length;f_Q++){Q94=b7i[f_Q];O4k=Q94[F5u];if(O4k && typeof O4k == "object"){O4k=O4k[c0c.subField];}if(!O4k && O4k !== 0){O4k=0;}G6Y+=Math.pow(O4k,2);J2v+=O4k;if(f_Q < c0c.days - +"1")continue;if(f_Q >= c0c.days){m12=b7i[f_Q - c0c.days][F5u];if(m12 && typeof m12 == "object"){m12=m12[c0c.subField];}if(isNaN(m12)){m12=0;}G6Y-=Math.pow(m12,2);J2v-=m12;}u_q=Q94["_MA " + c0c.name];if(u_q || u_q === 0){B56.s$9(56);var D8t=B56.v$j(5,35,20,15,10);B56.s$9(16);var H1X=B56.V9a(4,0,2);Q94[X90]=Math.sqrt((G6Y + c0c.days * Math.pow(u_q,D8t) - H1X * u_q * J2v) / c0c.days) * G19;}}};Z$9.Studies.calculateMovingAverage=function(J8k,t1Y){var A2U,L5o,y16,E3I,s05,m_k,H3M,d70,I9A,C$2,B9a,c3y,K7l,k_m,g0F,D6C,R7Y,j60;if(!t1Y.chart.scrubbed){return;}A2U=t1Y.inputs.Type;if(A2U == "ma" || A2U == "sma" || !A2U){A2U="simple";}L5o=Z$9.Studies.movingAverage.typeMap;if((A2U in L5o)){return Z$9.Studies["calculateMovingAverage" + L5o[A2U]](J8k,t1Y);}else if(A2U !== "simple"){return;}y16=t1Y.chart.scrubbed;E3I=+"0";s05=[];m_k=t1Y.name;for(var z4k in t1Y.outputs){i6UVR.O_b(35);m_k=i6UVR.V9a(" ",m_k,z4k);}i6UVR.W5N();H3M=t1Y.inputs.Field;if(!H3M || H3M == "field"){H3M="Close";}d70=parseInt(t1Y.inputs.Offset,10);if(isNaN(d70)){d70=0;}c3y=t1Y.startFrom;K7l=d70;for(I9A=t1Y.startFrom - 1;I9A >= 0;I9A--){C$2=y16[I9A][H3M];if(C$2 && typeof C$2 == "object"){C$2=C$2[t1Y.subField];}if(!C$2 && C$2 !== "0" - 0)continue;if(K7l > 0){K7l--;c3y=I9A;continue;}if(s05.length == t1Y.days - 1)break;E3I+=C$2;s05.unshift(C$2);}if(s05.length < t1Y.days - 1){s05=[];c3y=0;;}k_m=[];for(I9A=c3y;I9A < y16.length;I9A++){g0F=y16[I9A];C$2=g0F[H3M];if(C$2 && typeof C$2 == "object"){C$2=C$2[t1Y.subField];}D6C=I9A + d70 >= 0 && I9A + d70 < y16.length;R7Y=D6C?y16[I9A + d70]:null;if(!C$2 && C$2 !== "0" - 0){if(R7Y){R7Y[m_k]=null;}else if(I9A + d70 >= y16.length){B9a={};B9a[m_k]=null;k_m.push(B9a);}continue;}E3I+=C$2;s05.push(C$2);if(s05.length > t1Y.days){E3I-=s05.shift();}j60=s05.length == t1Y.days?E3I / t1Y.days:null;if(R7Y){R7Y[m_k]=j60;}else if(I9A + d70 >= y16.length){B9a={};B9a[m_k]=j60;k_m.push(B9a);}}t1Y.appendFutureTicks(J8k,k_m);};Z$9.Studies.calculateMovingAverageExponential=function(T8n,D7E){var X1v=i6UVR;var f6y,k$M,C0x,S4y,J0j,W7S,d4i,u8D,D8O,S4E,S1U,C_Z,G6x,L7d,X6j,x24,U4C,F4S,b$V,M4b,y$A;f6y="fi";f6y+="e";f6y+="ld";k$M=D7E.inputs.Type;C0x=D7E.chart.scrubbed;X1v.s$9(39);S4y=X1v.v$j("0",0);J0j=0;W7S=0;X1v.W5N();X1v.O_b(24);var c8K=X1v.v$j(11,2,30,19);X1v.s$9(19);var c0Q=X1v.V9a(10,5,0,10,6);d4i=c8K / (D7E.days + c0Q);if(k$M === "welles wilder" || k$M === "smma"){X1v.s$9(7);var J5S=X1v.v$j(11,1,6,16);d4i=J5S / D7E.days;}u8D=null;D8O=D7E.name;for(var G9R in D7E.outputs){X1v.s$9(35);D8O=X1v.V9a(3204 !== 584.11?(157.03,538) <= (1084,3281)?9140 > "633.5" - 0?" ":+"194.26":!!0:(0x73b,4.37e+3),D8O,G9R);}S4E=D7E.inputs.Field;if(!S4E || S4E == f6y){S4E="Close";}S1U=parseInt(D7E.inputs.Offset,10);if(isNaN(S1U)){S1U=0;}L7d=D7E.startFrom;X6j=S1U;for(C_Z=D7E.startFrom - 1;C_Z >= 0;C_Z--){G6x=C0x[C_Z][D8O];if(!G6x && G6x !== 0)continue;if(u8D === null){u8D=G6x;}W7S=D7E.days;if(X6j <= ("0" ^ 0))break;X6j--;L7d=C_Z;}if(u8D === null){u8D=L7d=0;}x24=[];for(C_Z=L7d;C_Z < C0x.length;C_Z++){U4C=C0x[C_Z];G6x=U4C[S4E];if(G6x && typeof G6x == "object"){G6x=G6x[D7E.subField];}F4S=C_Z + S1U >= 0 && C_Z + S1U < C0x.length;b$V=F4S?C0x[C_Z + S1U]:null;if(!G6x && G6x !== 0){M4b=null;}else {if(W7S == D7E.days - 1){S4y+=G6x;J0j=S4y / D7E.days;M4b=J0j;}else if(W7S < D7E.days - 1){S4y+=G6x;X1v.s$9(120);J0j=X1v.V9a(S4y,1,W7S);M4b=null;}else if(W7S === 0){S4y+=G6x;J0j=S4y;M4b=null;}else if(u8D || u8D === 0){X1v.s$9(22);J0j=X1v.V9a(u8D,u8D,G6x,d4i);M4b=J0j;}u8D=J0j;W7S++;}if(b$V){b$V[D8O]=M4b;}else if(C_Z + S1U >= C0x.length){y$A={};y$A[D8O]=M4b;x24.push(y$A);}}D7E.appendFutureTicks(T8n,x24);};Z$9.Studies.calculateMovingAverageVIDYA=function(K3f,E1n){var o5o=i6UVR;var R9V,d$e,S9g,f0h,G9b,Q$N,l8E,K8R,m30,w50,H0Q,M3R,F2o,b$0,x0W,A_D,r8P,m9C,k3i,R7y,y5z,A64,y6q,c0R,H_h,M2D;R9V="_MA";R9V+="ST";R9V+="D";d$e="m";d$e+="a";S9g="m";S9g+="a";f0h="s";f0h+="dev";G9b="Clos";G9b+="e";Q$N=E1n.inputs.Type;l8E=E1n.chart.scrubbed;o5o.s$9(121);var d4$=o5o.V9a(5,7,492,0,14);K8R=d4$ / (E1n.days + +"1");m30=null;w50=E1n.name;for(var L6c in E1n.outputs){o5o.O_b(35);w50=o5o.v$j(" ",w50,L6c);}H0Q=E1n.inputs.Field;if(!H0Q || H0Q == "field"){H0Q=G9b;}E1n.std=new Z$9.Studies.StudyDescriptor(E1n.name,f0h,E1n.panel);E1n.std.chart=E1n.chart;E1n.std.days=5;E1n.std.startFrom=E1n.startFrom;E1n.std.inputs={Field:H0Q,"Standard Deviations":1,Type:S9g};E1n.std.outputs={_STD:null};Z$9.Studies.calculateStandardDeviation(K3f,E1n.std);Z$9.Studies.MA(d$e,20,"_STD " + E1n.name,0,R9V,K3f,E1n);M3R=parseInt(E1n.inputs.Offset,"10" << 0);if(isNaN(M3R)){M3R=0;}A_D=E1n.startFrom;r8P=M3R;for(F2o=E1n.startFrom - ("1" << 32);F2o >= +"0";F2o--){b$0=l8E[F2o][w50];if(!b$0 && b$0 !== 0)continue;if(m30 === null){m30=b$0;}if(r8P <= 0)break;r8P--;A_D=F2o;}if(m30 === null){m30=A_D=0;}m9C=[];for(F2o=A_D;F2o < l8E.length;F2o++){k3i="_S";k3i+="TD ";R7y="_MA";R7y+="S";R7y+="TD";R7y+=" ";y5z="ob";y5z+="ject";A64=l8E[F2o];b$0=A64[H0Q];if(b$0 && typeof b$0 == y5z){b$0=b$0[E1n.subField];}y6q=F2o + M3R >= 0 && F2o + M3R < l8E.length;c0R=y6q?l8E[F2o + M3R]:null;if(!b$0 && b$0 !== 0){if(c0R){c0R[w50]=null;}else if(F2o + M3R >= l8E.length){x0W={};x0W[w50]=null;m9C.push(x0W);}continue;}if(!A64["_MASTD " + E1n.name] && A64[R7y + E1n.name] !== 0)continue;H_h=A64[k3i + E1n.name] / A64["_MASTD " + E1n.name];o5o.s$9(122);M2D=o5o.V9a(m30,b$0,H_h,K8R,H_h,K8R,1);m30=M2D;if(F2o < E1n.days){M2D=null;}if(c0R){c0R[w50]=M2D;}else if(F2o + M3R >= l8E.length){x0W={};x0W[w50]=M2D;m9C.push(x0W);}}E1n.appendFutureTicks(K3f,m9C);};Z$9.Studies.calculateMovingAverageTriangular=function(W$C,G$0){var u9G=i6UVR;var q1q,f40,k$i,x3$,X5Q,m2w,g7L,Y8$,K5d,Q9f,m6Y,i81,N9G,k1q;q1q="T";q1q+="RI";q1q+="2";f40=G$0.chart.scrubbed;k$i=G$0.inputs.Field;if(!k$i || k$i == "field"){k$i="Close";}x3$=Math.ceil(G$0.days / 2);Z$9.Studies.MA("simple",x3$,k$i,0,"TRI1",W$C,G$0);if(G$0.days % 2 === 0){x3$++;}Z$9.Studies.MA("simple",x3$,"TRI1 " + G$0.name,0,q1q,W$C,G$0);X5Q=G$0.name;for(var J_y in G$0.outputs){u9G.O_b(35);X5Q=u9G.v$j(" ",X5Q,J_y);}m2w=parseInt(G$0.inputs.Offset,10);g7L=-1347157408;Y8$=-+"257006189";K5d=2;for(var l$_=1;u9G.l5h(l$_.toString(),l$_.toString().length,64376) !== g7L;l$_++){if(isNaN(m2w)){m2w=3;}Q9f=m2w;u9G.s$9(1);K5d+=u9G.V9a(0,"2");}if(u9G.m6F(K5d.toString(),K5d.toString().length,83165) !== Y8$){if(isNaN(m2w)){m2w=7;}Q9f=m2w;}if(isNaN(m2w)){m2w=0;}Q9f=m2w;for(var Q$c=G$0.startFrom - 1;Q$c >= +"0";Q$c--){m6Y=f40[Q$c][X5Q];if(!m6Y && m6Y !== 0)continue;if(Q9f > 0){Q9f--;continue;}break;}i81=[];for(Q$c++;Q$c < f40.length;Q$c++){if(Q$c + m2w >= 0){if(Q$c + m2w < f40.length){u9G.s$9(0);f40[u9G.V9a(Q$c,m2w)][X5Q]=f40[Q$c]["TRI2 " + G$0.name];}else {N9G="T";N9G+="R";N9G+="I2";N9G+=" ";k1q={};k1q[X5Q]=f40[Q$c][N9G + G$0.name];i81.push(k1q);}}}G$0.appendFutureTicks(W$C,i81);};Z$9.Studies.calculateMovingAverageWeighted=function(i52,f9G){var i60=i6UVR;var M$R,N5$,V_o,t$P,m2g,f3u,n7h,b2K,s8d,K4u,U6f,p_v,y7B,J9O,l7h,R_Y,I8W,D8p,I8E,w9X,G4X,S8v,f2I;M$R="Clo";M$R+="se";N5$=f9G.chart.scrubbed;V_o=0;t$P=+"0";m2g=f9G.inputs.Field;if(!m2g || m2g == "field"){m2g=M$R;}i60.O_b(1);var d7W=i60.v$j(16,17);i60.W5N();i60.O_b(1);var d80=i60.V9a(30,32);f3u=f9G.days * (f9G.days + d7W) / d80;n7h=f9G.name;for(var p82 in f9G.outputs){i60.O_b(35);n7h=i60.V9a((2620,4190) > +"6230"?(0x18c4,"A"):" ",n7h,p82);}b2K=parseInt(f9G.inputs.Offset,10);if(isNaN(b2K)){b2K=0;}p_v=[];y7B=f9G.startFrom;J9O=b2K;for(s8d=f9G.startFrom - 1;s8d >= 0;s8d--){l7h="ob";l7h+="je";l7h+="c";l7h+="t";K4u=N5$[s8d][m2g];if(K4u && typeof K4u == l7h){K4u=K4u[f9G.subField];}if(!K4u && K4u !== 0)continue;if(J9O > 0){J9O--;y7B=s8d;continue;}if(p_v.length == f9G.days - 1)break;p_v.unshift(K4u);}if(p_v.length < f9G.days - 1){p_v=[];R_Y=-533472951;i60.O_b(2);I8W=i60.V9a(1,"179969968");D8p=2;for(var f67=1;i60.m6F(f67.toString(),f67.toString().length,+"31410") !== R_Y;f67++){y7B=2;D8p+=2;}if(i60.l5h(D8p.toString(),D8p.toString().length,61882) !== I8W){y7B=0;};}for(s8d=0;s8d < p_v.length;s8d++){i60.O_b(0);var S9X=i60.v$j(3,29);V_o+=(s8d + ("1" << S9X)) * p_v[s8d];t$P+=p_v[s8d];}I8E=[];for(s8d=y7B;s8d < N5$.length;s8d++){w9X=N5$[s8d];K4u=w9X[m2g];if(K4u && typeof K4u == "object"){K4u=K4u[f9G.subField];}G4X=s8d + b2K >= 0 && s8d + b2K < N5$.length;S8v=G4X?N5$[s8d + b2K]:null;if(!K4u && K4u !== 0){if(S8v){S8v[n7h]=null;}else if(s8d + b2K >= N5$.length){U6f={};U6f[n7h]=null;I8E.push(U6f);}continue;}p_v.push(K4u);if(p_v.length > f9G.days){V_o-=t$P;t$P-=p_v.shift();}V_o+=p_v.length * K4u;t$P+=K4u;f2I=s8d < f9G.days - 1?null:V_o / f3u;if(S8v){S8v[n7h]=f2I;}else if(s8d + b2K >= N5$.length){U6f={};U6f[n7h]=f2I;I8E.push(U6f);}}f9G.appendFutureTicks(i52,I8E);};Z$9.Studies.calculateStudyATR=function(Q3Z,G57){var e1c=i6UVR;var d_J,L2F,o2T,E7F,s$Y,Y2n,J5R,k9H,L5v;d_J=G57.chart.scrubbed;L2F=G57.days;if(d_J.length < L2F + 1){G57.error=!!({});return;}o2T=0;E7F=G57.name;for(var k4j=Math.max(G57.startFrom,1);k4j < d_J.length;k4j++){s$Y="A";s$Y+="T";s$Y+="R";s$Y+=" ";Y2n="Tr";Y2n+="ue R";Y2n+="ange";Y2n+=" ";J5R=d_J[k4j];e1c.s$9(1);k9H=d_J[e1c.v$j(1,k4j)];L5v=J5R.trueRange;if(k9H["Sum True Range " + E7F]){e1c.O_b(0);o2T=k9H[e1c.v$j("Sum True Range ",E7F)];}o2T+=L5v;if(k4j > L2F){e1c.s$9(1);o2T-=d_J[e1c.v$j(L2F,k4j)][e1c.V9a(Y2n,E7F,e1c.s$9(0))];}e1c.s$9(0);J5R[e1c.v$j("True Range ",E7F)]=L5v;e1c.O_b(0);J5R[e1c.v$j("Sum True Range ",E7F)]=o2T;if(k4j == L2F){e1c.s$9(0);J5R[e1c.V9a("ATR ",E7F)]=e1c.v$j(o2T,L2F,e1c.s$9(9));}else if(k4j > L2F){e1c.s$9(23);var N$$=e1c.V9a(4,3);e1c.O_b(0);J5R[e1c.v$j(s$Y,E7F)]=(k9H["ATR " + E7F] * (L2F - N$$) + L5v) / L2F;}}};Z$9.Studies.displayPSAR2=function(l7C,u7O,u4V){var k0B=i6UVR;var a37,K_v,r0D,g_0,r3q,c65,l0p,T8T,D15,p1t,R6v,J3J,o91;a37=l7C.panels[u7O.panel];K_v=u7O.getYAxis(l7C);r0D=K_v == l7C.chart.panel.yAxis;l7C.startClip(a37.name);k0B.W5N();g_0=u7O.getContext(l7C);r3q=u7O.inputs["Plot Type"] == "squarewave";for(var S18 in u7O.outputs){k0B.O_b(123);var C3u=k0B.v$j(6,15,1391370,6,38850);k0B.s$9(0);var m9z=k0B.V9a(570,3420);k0B.O_b(1);var w29=k0B.V9a(18340,20960);k0B.O_b(0);var c3x=k0B.v$j(5227,13);k0B.O_b(124);var o94=k0B.v$j(11,23606,2155,12,141636);c65=S18 + ("297" - 0 <= 360.51?(C3u,m9z) >= 533.74?" ":28.28 === 816.72?(w29,c3x):(![],+"611.03"):(!!1,o94)) + u7O.name;g_0.beginPath();l0p=l7C.layout.candleWidth;T8T=Math.max(3,Math.floor(l7C.chart.tmpWidth / 2));for(var T5C=0;T5C < u4V.length;T5C++){D15=u4V[T5C];if(!D15 || !D15[c65] && D15[c65] !== +"0")continue;if(D15.candleWidth){l0p=D15.candleWidth;}if(r0D && D15.transform){D15=D15.transform;}p1t=l7C.pixelFromBar(T5C,a37.chart);if(r3q){k0B.O_b(9);p1t-=k0B.v$j(l0p,2);}R6v=l7C.pixelFromTransformedValue(D15[u7O.referenceOutput?u7O.referenceOutput + ((569,938) < 3358?(648.08,9040) >= (5480,+"5510")?(2537,693.69) > 4560?250.45:" ":+"0x1232":"D") + u7O.name:c65],a37,K_v);if(T5C === 0 || !u4V[T5C - ("1" >> 64)] || !u4V[T5C - 1][c65] && u4V[T5C - 1][c65] !== 0){g_0.moveTo(p1t,R6v);}if(r3q){g_0.lineTo(p1t,R6v);k0B.O_b(0);g_0.lineTo(k0B.V9a(p1t,l0p),R6v);if(u4V[T5C + 1]){k0B.s$9(0);J3J=u4V[k0B.v$j(T5C,1)];if(r0D && J3J.transform){J3J=J3J.transform;}if(!J3J[c65] && J3J[c65] !== 0){k0B.O_b(0);g_0.lineTo(k0B.V9a(p1t,l0p),l7C.pixelFromTransformedValue(J3J[u7O.referenceOutput?u7O.referenceOutput + ((644.32,4.73) <= (627.18,4230)?" ":6296 === 5440?!!0:295.27 >= 6140?(9.36e+3,"7.69e+2" ^ 0):("Q",8.52e+3)) + u7O.name:c65],l7C.panels[u7O.panel],K_v));}}}else {k0B.s$9(125);g_0.moveTo(k0B.V9a("2",p1t,T8T,0),R6v);k0B.s$9(126);g_0.lineTo(k0B.V9a(p1t,T8T,0,"2"),R6v);}}g_0.lineWidth=+"1";if(u7O.highlight){g_0.lineWidth=3;}o91=Z$9.Studies.determineColor(u7O.outputs[S18]);if(o91 == "auto"){o91=l7C.defaultColor;}g_0.strokeStyle=o91;if(!u7O.highlight && l7C.highlightedDraggable){g_0.globalAlpha*=0.3;}g_0.stroke();g_0.closePath();g_0.lineWidth=+"1";}l7C.endClip();};Z$9.Studies.inputAttributeDefaultGenerator=function(u8k){if(!u8k && u8k !== 0){return {};}if(u8k.constructor == Number){if(Math.floor(u8k) == u8k){if(u8k > "0" << 0){return {min:1,step:1};}return {step:1};;}if(u8k > 0){return {min:0,step:0.01};}return {step:0.01};;}return {};};Z$9.Studies.getMarketOffset=function({stx:H9U, localQuoteDate:x95, shiftToDateBoundary:b6O}){var m$y=i6UVR;var O_z,Y6e,e_9,W7N,M02,n52,r1p;O_z="U";O_z+="T";O_z+="C";Y6e="Marke";Y6e+="t.Symbolog";Y6e+="y.isForexMeta";Y6e+="l";if(arguments.length > 1){H9U=arguments[+"0"];x95=arguments[1];e_9=arguments[2];}var {symbol:N2C}=H9U.chart;W7N=Z$9.getFn(Y6e)(N2C);if(e_9 === undefined){e_9=Z$9.getFn("Market.Symbology.isForexSymbol")(N2C);}if(!H9U.chart.market){M02=null;}else {M02=e_9?"America/New_York":H9U.chart.market.market_tz;}m$y.s$9(21);var M9g=m$y.V9a(3,60018,120054);n52=new Date(x95.getTime() + x95.getTimezoneOffset() * M9g);if(!M02 || M02.indexOf("UTC") == -1){n52=Z$9.convertTimeZone(n52,O_z,M02);}r1p=new Date(n52.getFullYear(),n52.getMonth(),n52.getDate(),n52.getHours(),n52.getMinutes(),n52.getSeconds(),n52.getMilliseconds()).getTime() - x95.getTime();if(b6O && e_9){m$y.O_b(127);r1p+=m$y.v$j(60,W7N?"6" ^ 0:7,60,1000);}return r1p;};Z$9.Studies.getStudyList=function(G4D){var K0y,j8U;K0y={};j8U={};Z$9.extend(j8U,G4D);for(var V_p in Z$9.Studies.studyLibrary){if(!j8U[V_p]){K0y[Z$9.Studies.studyLibrary[V_p].name]=V_p;}}i6UVR.W5N();return K0y;};Z$9.Studies.determineColor=function(p5w){var c4B;c4B="o";c4B+="bj";c4B+="e";c4B+="ct";if(!p5w){return null;}else if(typeof p5w === c4B){return p5w.color;}return p5w;};Z$9.Studies.calculateGenericEnvelope=function(q4t,z$u,b_f,a1D,i0B,l1m){var Y7K=i6UVR;var u$a,k5d,d4c,b85,k2N,P3c,V3Y,D72,B1j,u2r,c5B,z5H,p52;if(!b_f){b_f=+"0";}if(!l1m){l1m=0;}if(!a1D || a1D == "field"){a1D="Close";}u$a=411440343;k5d=1925983378;Y7K.O_b(42);d4c=Y7K.v$j("2",0);for(var r8R=1;Y7K.l5h(r8R.toString(),r8R.toString().length,94873) !== u$a;r8R++){if(!i0B){i0B=a1D;}d4c+=2;}if(Y7K.l5h(d4c.toString(),d4c.toString().length,40467) !== k5d){if(+i0B){i0B=a1D;}}b85=z$u.chart.scrubbed;k2N=z$u.inputs.Field;if(!k2N || k2N === "field"){k2N="Close";}for(var O9U=z$u.startFrom;b85 && O9U < b85.length;O9U++){P3c="%";P3c+="b";P3c+=" ";V3Y="ob";V3Y+="j";V3Y+="e";V3Y+="ct";D72="objec";D72+="t";B1j=b85[O9U];if(!B1j)continue;if(!B1j[a1D])continue;u2r=B1j[k2N];if(u2r && typeof u2r == D72){u2r=u2r.Close;}c5B=B1j[a1D];if(c5B && typeof c5B == "object"){c5B=c5B[z$u.subField];}z5H=B1j[i0B];if(z5H && typeof z5H == V3Y){z5H=z5H[z$u.subField];}Y7K.s$9(63);p52=Y7K.v$j(b_f,z5H,l1m);Y7K.s$9(0);B1j[z$u.type + " Top " + z$u.name]=Y7K.v$j(c5B,p52);Y7K.s$9(1);B1j[z$u.type + " Bottom " + z$u.name]=Y7K.V9a(p52,c5B);B1j[z$u.type + " Median " + z$u.name]=c5B;B1j["Bandwidth " + z$u.name]=c5B?200 * p52 / c5B:"0" >> 32;Y7K.O_b(128);B1j[P3c + z$u.name]=Y7K.V9a(u2r,c5B,50,1,p52);}};Z$9.Studies.displayChannel=function(H2V,k6F,L6H){var S1y=i6UVR;S1y.W5N();var D_P,L1Z,z4d;if(k6F.inputs["Channel Fill"]){D_P={panelName:k6F.panel};for(var Z2E in k6F.outputs){L1Z=Z2E.split(+"807.79" >= 9157?(4.58e+3,"7.02e+3" | 40):(8630,8783) === (8220,2848)?("7.80e+3" ^ 0,0x49d):" ").pop();if(L1Z == "Top" || L1Z == "High"){S1y.s$9(129);var H86=S1y.V9a(152694,14,32160,5,16);S1y.s$9(130);var I8u=S1y.V9a(2258,17,27240,115770,8);S1y.s$9(0);var w3a=S1y.V9a(979,7);S1y.O_b(119);var b6f=S1y.V9a(4853,4853,4836);S1y.O_b(131);var j5t=S1y.v$j(829,4976,15,10);S1y.O_b(132);var H5H=S1y.v$j(8,14,15,6,14);D_P.topBand=Z2E + ((H86,I8u) >= (w3a,b6f)?(642.95,j5t):+"837.71" < "666.53" * H5H?(191.39,!!({})):" ") + k6F.name;}else if(L1Z == "Bottom" || L1Z == "Low"){S1y.s$9(133);var B5U=S1y.V9a(4,1,5023,13,1);S1y.O_b(111);var R1M=S1y.v$j(1,6417,12834,711);S1y.s$9(131);var Y02=S1y.V9a(4780,8,2,4);D_P.bottomBand=Z2E + ((773.7,734.27) >= "625.78" - 0?" ":B5U !== R1M?16.94 != Y02?958.92:"t":("Z",!"")) + k6F.name;}else if(L1Z == "Median" || L1Z == "Channel"){D_P.color=Z$9.Studies.determineColor(k6F.outputs[Z2E]);}}if(k6F.parameters && k6F.parameters.opacity){D_P.opacity=k6F.parameters.opacity;}else {D_P.opacity=+"0.2";}z4d=H2V.panels[k6F.panel];D_P.skipTransform=z4d.name != k6F.chart.name;D_P.yAxis=k6F.getYAxis(H2V);if(!k6F.highlight && H2V.highlightedDraggable){D_P.opacity*=0.3;}Z$9.prepareChannelFill(H2V,D_P);}Z$9.Studies.displaySeriesAsLine(H2V,k6F,L6H);};Z$9.Studies.initAnchorHandle=function(U7y,S6W){var o2$;var {handle:t5s}=S6W;if(t5s){return;}if(!U7y.controls.anchorHandles){U7y.controls.anchorHandles={};}if(U7y.controls.anchorHandles[S6W.uniqueId]){({handle:t5s}=U7y.controls.anchorHandles[S6W.uniqueId]);}else {o2$="stx_anc";o2$+="h";o2$+="or_handle";t5s=document.createElement("div");t5s.classList.add(o2$);t5s.setAttribute(S6W.uniqueId,"");U7y.controls.anchorHandles[S6W.uniqueId]={handle:t5s,sd:S6W};U7y.controls.chartControls.parentElement.appendChild(t5s);}S6W.anchorHandle=t5s;};Z$9.Studies.removeAnchorHandle=function(w3x,g$1){var {handle:m6J}=(w3x.controls.anchorHandles || ({}))[g$1.uniqueId] || ({});if(m6J){delete w3x.controls.anchorHandles[g$1.uniqueId];m6J.remove();}};Z$9.Studies.repositionAnchor=function(G9l,w31){var Z8_,c4G,m3d,V8j,Q4I,e6D,q00;var {currentAnchorTime:W0D, uniqueId:I7Y}=w31;var {hoverTick:f5q}=G9l.repositioningAnchorSelector || ({});var {dataSet:J1e, market:f1m}=G9l.chart;var {anchorHandles:X4Y}=G9l.controls;i6UVR.W3G();Z8_={};if(f5q || f5q === +"0"){if(f5q >= J1e.length){return;}c4G=!w31.inputs["Anchor Date"];m3d=J1e[f5q].DT;V8j=Z$9.Studies.getMarketOffset({stx:G9l,localQuoteDate:m3d,shiftToDateBoundary:!!({})});if(c4G && new Date(m3d.getTime() + V8j).getDate() !== new Date(W0D.getTime() + V8j).getDate()){return;}if(f1m.market_def){m3d=new U7d.Date(m3d,f1m.market_def.market_tz);}Q4I=!c4G && Z$9.dateToStr(m3d,"YYYY-MM-dd");e6D=Z$9.dateToStr(m3d,"HH:mm:ss");Z8_={"Anchor Time":e6D};if(Q4I){Z8_["Anchor Date"]=Q4I;}}q00=Z$9.Studies.replaceStudy(G9l,w31.inputs.id,w31.type,Object.assign(w31.inputs,Z8_),w31.outputs,w31.parameters,w31.panel);X4Y[I7Y].sd=q00;G9l.draw();};Z$9.Studies.displayAnchorHandleAndLine=function(Y6a,A1h,w4P){var T_Q=i6UVR;var s24,d81,G0O,r59,l2O,V4d,Q27,a5m,r_g,w2S,J8c,R08,X32,y5V,r8F,T0m,g0p,L1M,P5M,K$4,D_q,j$K;s24="s";s24+="ol";s24+="i";s24+="d";d81="Ancho";d81+="r Time";G0O="stx_anc";G0O+="ho";G0O+="r";G0O+="_handle";r59=(Y6a.repositioningAnchorSelector || ({})).sd === A1h;var {hoverTick:U0U}=r59 && Y6a.repositioningAnchorSelector;var {chart:V1W, panels:U7c, xaxisHeight:z4u}=Y6a;var {market:w8t = {}, symbol:y$Z}=V1W;l2O=U7c[A1h.panel];var {top:x5M, bottom:W2W, right:Q4E, left:E21, height:a_1}=l2O;var {inputs:l7k, anchorHandle:O20, currentAnchorTime:g6c}=A1h;var {backgroundColor:a_G, borderLeftColor:h3h}=Y6a.canvasStyle(G0O);var [v7k,s1c,v8F = 0]=(l7k[d81] || "").split(":");V4d=!l7k["Anchor Date"];Q27=Z$9.getFn("Market.Symbology.isForexSymbol")(y$Z);a5m=(U0U || U0U === 0) && (Y6a.chart.dataSet[U0U] || ({})).DT;r_g=Z$9.Studies.getMarketOffset({stx:Y6a,localQuoteDate:w4P[w4P.length - 1].DT,shiftToDateBoundary:!""});w2S=a5m && V4d && new Date(a5m.getTime() + r_g).getDate() !== new Date(g6c.getTime() + r_g).getDate();var {highlighted:t03}=Y6a.controls.anchorHandles[A1h.uniqueId];var [g_4,C$5]=w8t.getNormalOpen().split(":").map(a3r=>{T_Q.W5N();return parseInt(a3r);});J8c=A9i=>{var L31;T_Q.W5N();L31=A9i?Y6a.tickFromDate(A9i,null,null,!![]):U0U;return [Y6a.pixelFromTick(L31,V1W),L31];};R08=-188731529;X32=437500950;y5V=2;for(var T53=1;T_Q.m6F(T53.toString(),T53.toString().length,"88249" * 1) !== R08;T53++){r8F=V4d?new Date(w4P[w4P.length / 0].DT):Z$9.strToDate(l7k[""]);y5V+=2;}if(T_Q.m6F(y5V.toString(),y5V.toString().length,+"36812") !== X32){r8F=V4d?new Date(w4P[w4P.length - 1].DT):Z$9.strToDate(l7k["Anchor Date"]);}if(w8t.market_def){r8F=new U7d.Date(r8F,w8t.market_def.market_tz);}r8F.setHours(v7k,s1c,v8F);T0m=Q27 && (r8F.getHours() > g_4 || r8F.getHours() === g_4 && r8F.getMinutes() >= C$5);if(T0m){r8F.setDate(r8F.getDate() - ("1" << 64));}var [s7h]=J8c();var [t0o,O9r]=J8c(r8F);g0p=new Date(r8F);g0p.setHours(...w8t.getNormalClose().split(":"));if(T0m){g0p.setDate(g0p.getDate() + +"1");}var [o$1]=g0p && J8c(g0p) || [];if(V4d && (t0o > Q4E || o$1 > Q4E)){L1M=new Date(r8F);do {L1M.setDate(L1M.getDate() - 1);}while(w8t && !w8t.isMarketDate(L1M));var [Q7M,C9T]=J8c(L1M);if(Q7M > E21){r8F=L1M;t0o=Q7M;O9r=C9T;}}P5M={y0:x5M,y1:W2W,type:"line",confineToPanel:l2O};Y6a.plotLine(Object.assign(P5M,{x0:t0o,x1:t0o,color:a_G,pattern:s24,lineWidth:t03?"3" << 64:2,opacity:1}));Y6a.plotLine(Object.assign(P5M,{x0:s7h,x1:s7h,color:w2S?h3h:a_G,pattern:[6,6],lineWidth:+"2",opacity:w2S?0.5:1}));T_Q.s$9(104);var Q8g=T_Q.v$j(2,12,1,10);O20.style.height=[8,a_1 / 4,50].sort((h57,C0Z)=>{T_Q.O_b(1);T_Q.W3G();return T_Q.v$j(C0Z,h57);})[Q8g] + "px";var {height:s6M, width:n5C}=O20.getBoundingClientRect();K$4=Math.round(W2W) === Y6a.height?z4u:0;D_q=l2O.name === "chart"?35:"0" << 32;T_Q.s$9(134);j$K=T_Q.V9a(D_q,s6M,"10",K$4);T_Q.s$9(33);O20.style.top=T_Q.V9a(W2W,"px",j$K);O20.style.left=U0U || U0U === 0?s7h:t0o - n5C / 2 + "px";A1h.currentAnchorTime=r8F;A1h.currentAnchorTick=O9r;};Z$9.Studies.studyScriptLibrary={};Z$9.Studies.studyLibrary=Z$9.Studies.studyLibrary || ({});Z$9.extend(Z$9.Studies.studyLibrary,{ma:{name:"Moving Average",overlay:!![],calculateFN:Z$9.Studies.calculateMovingAverage,inputs:{Period:+"50",Field:"field",Type:j8B,Offset:+"0"},outputs:{MA:K8D}},"STD Dev":{name:"Standard Deviation",calculateFN:Z$9.Studies.calculateStandardDeviation,inputs:{Period:14,Field:"field","Standard Deviations":2,"Moving Average Type":"ma"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"True Range":{name:"True Range",calculateFN:Z$9.Studies.calculateStudyATR,inputs:{},outputs:{"True Range":b9Y}},volume:{name:"Volume Chart",range:"0 to max",yAxis:{ground:!![],initialMarginTop:0,zoom:0},seriesFN:Z$9.Studies.createVolumeChart,calculateFN:Z$9.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":"#8cc176","Down Volume":t8f}}});};G6=y0j=>{var F8a;F8a=typeof _CIQ !== "undefined"?_CIQ:y0j.CIQ;if(!F8a.ChartEngine.Driver){console.error("symbolLookupBase feature requires first activating quoteFeed feature.");}else {F8a.ChartEngine.Driver.Lookup=function(b$T){};F8a.ChartEngine.Driver.Lookup.prototype.acceptText=function(j6s,g1S,a5k,P8b){if(!this.cb){return;}};}};k$=e6m=>{var q8q;q8q=typeof _CIQ !== "undefined"?_CIQ:e6m.CIQ;q8q.ThemeHelper=q8q.ThemeHelper || (function(D_h){var o1H,X$A,W53,K4K,X4d,Q90,d9N,M3A;o1H="Can";o1H+="dle/Bar";X$A="stx";X$A+="_candle_down";W53="Candle/Ba";W53+="r";K4K="C";K4K+="andle/Bar";X4d="Candle/";X4d+="Ba";X4d+="r";Q90="Grid";Q90+=" Divide";Q90+="rs";this.params=D_h;d9N=D_h.stx;M3A="#FFFFFF";if(d9N.chart.container){M3A=getComputedStyle(d9N.chart.container).backgroundColor;if(q8q.isTransparent(M3A)){M3A=d9N.containerColor;}}this.settings.chart.Background.color=q8q.hexToRgba(M3A);this.settings.chart["Grid Lines"].color=q8q.hexToRgba(d9N.canvasStyle("stx_grid").color);this.settings.chart[Q90].color=q8q.hexToRgba(d9N.canvasStyle("stx_grid_dark").color);this.settings.chart["Axis Text"].color=q8q.hexToRgba(d9N.canvasStyle("stx_xaxis").color);this.settings.chartTypes[X4d].up.color=q8q.hexToRgba(d9N.canvasStyle("stx_candle_up").color);this.settings.chartTypes[K4K].down.color=q8q.hexToRgba(d9N.canvasStyle("stx_candle_down").color);this.settings.chartTypes["Candle/Bar"].up.wick=q8q.hexToRgba(d9N.canvasStyle("stx_candle_shadow_up").color);this.settings.chartTypes["Candle/Bar"].down.wick=q8q.hexToRgba(d9N.canvasStyle("stx_candle_shadow_down").color);this.settings.chartTypes["Candle/Bar"].even.wick=q8q.hexToRgba(d9N.canvasStyle("stx_candle_shadow_even").color);this.settings.chartTypes[W53].up.border=q8q.hexToRgba(d9N.canvasStyle("stx_candle_up").borderLeftColor);this.settings.chartTypes["Candle/Bar"].down.border=q8q.hexToRgba(d9N.canvasStyle("stx_candle_down").borderLeftColor);if(q8q.isTransparent(d9N.canvasStyle("stx_candle_up").borderLeftColor)){this.settings.chartTypes["Candle/Bar"].up.border=null;}if(q8q.isTransparent(d9N.canvasStyle(X$A).borderLeftColor)){this.settings.chartTypes[o1H].down.border=null;}this.settings.chartTypes.Line.color=q8q.hexToRgba(d9N.canvasStyle("stx_line_chart").color);this.settings.chartTypes.Mountain.color=q8q.hexToRgba(d9N.canvasStyle("stx_mountain_chart").backgroundColor);this.settings.chartTypes.Mountain.basecolor=q8q.hexToRgba(d9N.canvasStyle("stx_mountain_chart").color);});q8q.ThemeHelper.prototype.settings={chart:{Background:{color:null},"Grid Lines":{color:null},"Grid Dividers":{color:null},"Axis Text":{color:null}},chartTypes:{"Candle/Bar":{up:{color:null,wick:null,border:null},down:{color:null,wick:null,border:null},even:{color:null,wick:null,border:null}},Line:{color:null},Mountain:{color:null,basecolor:null}}};q8q.ThemeHelper.prototype.update=function(U1F){var W5R,d3T,N6F,d14,L0x,i$V,G6y,S2g,L_a,z1n,m8_;W5R="stx_mo";W5R+="unta";W5R+="in_chart";d3T="bo";d3T+="rder";d3T+="LeftColor";N6F="stx_candle";N6F+="_up";d14="c";d14+="o";d14+="l";d14+="or";L0x="stx_";L0x+="candle_";L0x+="up";i$V="A";i$V+="xis";function c7C(F1a,m3N,W2O){var M4E;M4E=z1n[F1a];for(var T2T in M4E){U1F.setStyle(T2T,m3N,W2O);}}i$V+=" Text";G6y="Grid Divide";G6y+="rs";S2g="c";S2g+="olor";L_a="c";L_a+="ol";L_a+="o";L_a+="r";if(!U1F){U1F=this.params.stx;}z1n={stx_candle_up:{stx_candle_up:!![],stx_bar_up:!!({}),stx_hollow_candle_up:!"",stx_line_up:!![],stx_baseline_up:!![]},stx_candle_down:{stx_candle_down:!!"1",stx_bar_down:!"",stx_hollow_candle_down:!![],stx_line_down:!!"1",stx_baseline_down:!!"1"},stx_candle_even:{stx_hollow_candle_even:!"",stx_bar_even:!""},stx_shadow_up:{stx_candle_shadow_up:!!({})},stx_shadow_down:{stx_candle_shadow_down:!""},stx_shadow_even:{stx_candle_shadow_even:!!"1"},stx_line_chart:{stx_bar_chart:!"",stx_line_chart:!0},stx_grid:{stx_grid:!!"1"},stx_grid_dark:{stx_grid_dark:!![]},stx_xaxis:{stx_xaxis_dark:!![],stx_xaxis:!!({}),stx_yaxis:!![],stx_yaxis_dark:!"",stx_grid_border:!!({})},stx_mountain_chart:{stx_mountain_chart:!!"1"},stx_market_session:{stx_market_session:!!({})}};U1F.chart.container.style.backgroundColor=this.settings.chart.Background.color;U1F.defaultColor="";c7C("stx_grid",L_a,this.settings.chart["Grid Lines"].color);c7C("stx_grid_dark",S2g,this.settings.chart[G6y].color);c7C("stx_xaxis","color",this.settings.chart[i$V].color);m8_=this.settings.chartTypes["Candle/Bar"];if(!m8_.even){m8_.even={color:null,wick:q8q.hexToRgba(U1F.canvasStyle("stx_candle_shadow_even").color),border:null};}c7C(L0x,"color",m8_.up.color);c7C("stx_candle_down","color",m8_.down.color);c7C("stx_candle_even","color",m8_.even.color);c7C("stx_shadow_up","color",m8_.up.wick);c7C("stx_shadow_down",d14,m8_.down.wick);c7C("stx_shadow_even","color",m8_.even.wick);U1F.setStyle(N6F,d3T,m8_.up.border);U1F.setStyle("stx_candle_down","borderLeftColor",m8_.down.border);c7C("stx_line_chart","color",this.settings.chartTypes.Line.color);U1F.setStyle("stx_mountain_chart","borderTopColor",q8q.hexToRgba(this.settings.chartTypes.Mountain.color,1));U1F.setStyle("stx_mountain_chart","backgroundColor",q8q.hexToRgba(this.settings.chartTypes.Mountain.color,+"0.5"));U1F.setStyle(W5R,"color",q8q.hexToRgba(this.settings.chartTypes.Mountain.basecolor,0.01));U1F.draw();};q8q.ChartEngine.prototype.setThemeSettings=function(n3B){var W6v;this.styles={};this.chart.container.style.backgroundColor="";this.defaultColor="";if(n3B){W6v=new q8q.ThemeHelper({stx:this});W6v.settings=n3B;W6v.update();}this.updateListeners("theme");this.changeOccurred("theme");if(this.displayInitialized){this.headsUpHR();this.clearPixelCache();this.updateListeners("theme");this.draw();}};};w6=b$d=>{var N21=i6UVR;var q0S,D4e,A8f,I1R,D9A,X_u,r1w,T81,A0f,r6W,O1M,j9r,h6K,n6p,e9C,n3D,w9h,N0g,k_T,v3$,M7J,o1M,O6V,t6Y,W4C,F_1,i_p,C6p,P1k,i0W,k1W,F3M,E8A,l9t,C1a,G_v,u9$,C0F,y6S,x60,W4T,x1S,D5t,k24,E2o,J9S,N$l,w8v,c9b,b$R,E2$,y89,A7B,I7M,r_d,I0u,l2_,s4A,y5Z,P0x,x_H,p$a,d5q,x3H,w_r,D1l,x1h,S8A,O5a,P84,R8V,b19,W5Y,y7G,O74,x14,t2c,S5M,p0N,H3r,l8k,f7L,U$1,E5T,x1n,O3M,j1K,S4s,o$3,O1L,r1U,f5a,K2T,v0F,Z3$,q0N,K2H,r6h,l1b,q8U,H$3,s4B,f8C,n01,t5D,N9I,L_r,g93,s3a,y9O,O_k,q8j,V$5,B_4,T9x,F71,F6D,O$l,Y4g,o1y,I$z,K8$,z_O,H1Q,Y$3,g8c,E9a,P1g,q5m,q16,x3q,U4m,R8s,z3m,G6_,X5y,K8j,d5a,g6y,K$D,L8m,S_F,z75,U8F,z2l,H9H,A5c,I7R,Y0y,h_V,u3Q,q9h,g9I,x4u,H9Y,N49,R5w,I23,L7a,m3S,O_f,r9Q,E_1,f_l,R5$,e50,u3L,G7h,k5I,f$y,f$6,r9_,l5Y,R6B,n5r,N0K;q0S="M";q0S+="a";q0S+="r";D4e="m";D4e+="ax";A8f="A";A8f+="p";A8f+="r";I1R="S";I1R+="un>=";I1R+="9";D9A="o";D9A+="n";D9A+="l";D9A+="y";X_u="F";X_u+="e";X_u+="b";r1w="S";r1w+="un>=15";T81="S";T81+="un>=";T81+="1";A0f="N";A0f+="o";A0f+="v";r6W="m";r6W+="a";r6W+="x";O1M="Sun>=";O1M+="8";j9r="Su";j9r+="n>=8";h6K="N";h6K+="o";h6K+="v";n6p="ma";n6p+="x";e9C="Sun";e9C+=">";e9C+="=";e9C+="1";n3D="Ma";n3D+="r";w9h="m";w9h+="a";w9h+="x";N0g="m";N0g+="ax";k_T="M";k_T+="a";k_T+="r";v3$="M";v3$+="a";v3$+="r";M7J="m";M7J+="ax";o1M="O";o1M+="c";o1M+="t";O6V="M";O6V+="a";O6V+="r";t6Y="S";t6Y+="e";t6Y+="p";W4C="Su";W4C+="n>=1";F_1="m";F_1+="a";F_1+="x";i_p="S";i_p+="u";i_p+="n>=8";C6p="No";C6p+="v";P1k="2";P1k+="0";i0W="o";i0W+="nly";k1W="Su";k1W+="n";k1W+=">";k1W+="=1";F3M="Su";F3M+="n>=1";E8A="S";E8A+="un";E8A+=">";E8A+="=1";l9t="A";l9t+="p";l9t+="r";C1a="A";C1a+="p";C1a+="r";G_v="Sun";G_v+=">=1";u9$="m";u9$+="ax";C0F="Sun";C0F+=">=1";y6S="A";y6S+="p";y6S+="r";x60="ma";x60+="x";W4T="O";W4T+="ct";x1S="ma";x1S+="x";D5t="O";D5t+="c";D5t+="t";k24="o";k24+="nly";E2o="M";E2o+="a";E2o+="r";J9S="Sa";J9S+="t>=";J9S+="24";N$l="Sat>";N$l+="=2";N$l+="4";w8v="M";w8v+="a";w8v+="r";c9b="m";c9b+="a";c9b+="x";b$R="l";b$R+="astFr";b$R+="i";E2$="las";E2$+="tT";N21.W3G();E2$+="hu";y89="M";y89+="ar";A7B="O";A7B+="c";A7B+="t";I7M="M";I7M+="a";I7M+="r";r_d="2";r_d+="1";I0u="2";I0u+="1";l2_="on";l2_+="ly";s4A="M";s4A+="a";s4A+="r";y5Z="2";y5Z+="1";P0x="M";P0x+="a";P0x+="r";x_H="2";x_H+="1";p$a="m";p$a+="ax";d5q="la";d5q+="st";d5q+="S";d5q+="un";x3H="M";x3H+="a";x3H+="r";w_r="m";w_r+="ax";D1l="m";D1l+="a";D1l+="x";x1h="Ma";x1h+="r";S8A="W";S8A+="A";S8A+="T";O5a="2";O5a+="3";P84="1";P84+="4";R8V="A";R8V+="pr";b19="on";b19+="l";b19+="y";W5Y="o";W5Y+="n";W5Y+="l";W5Y+="y";y7G="M";y7G+="a";y7G+="y";O74="on";O74+="l";O74+="y";x14="Ap";x14+="r";t2c="3";t2c+="1";S5M="A";S5M+="p";S5M+="r";p0N="J";p0N+="u";p0N+="n";H3r="on";H3r+="ly";l8k="Ju";l8k+="n";f7L="1";f7L+="3";U$1="M";U$1+="a";U$1+="y";E5T="J";E5T+="u";E5T+="l";x1n="Ma";x1n+="r";O3M="-0";O3M+="3/-02";j1K="-";j1K+="0";j1K+="2";S4s="-";S4s+="0";S4s+="3";o$3="Ch";o$3+="il";o$3+="e";O1L="E%s";O1L+="T";r1U="Cu";r1U+="ba";f5a="M%s";f5a+="T";K2T="Mexi";K2T+="c";K2T+="o";v0F="Ca";v0F+="nada";Z3$="HS";Z3$+="T";q0N="U";q0N+="S";K2H="P%s";K2H+="T";r6h="U";r6h+="S";l1b="E";l1b+="%";l1b+="s";l1b+="T";q8U="+";q8U+="1";q8U+="1";H$3="+";H$3+="10";s4B="+";s4B+="08";f8C="+";f8C+="07";n01="+";n01+="0";n01+="6";t5D="+0";t5D+="3";N9I="M";N9I+="S";N9I+="K";L_r="E";L_r+="ET";g93="C";g93+="E%sT";s3a="EE%s";s3a+="T";y9O="A";y9O+="%s";y9O+="T";O_k="C";O_k+="E%";O_k+="s";O_k+="T";q8j="E";q8j+="U";V$5="E";V$5+="i";V$5+="re";B_4="G";B_4+="MT/BST";T9x="E";T9x+="U";F71="Et";F71+="c/UTC";F6D="To";F6D+="nga";O$l="+12";O$l+="45/";O$l+="+1345";Y4g="Chat";Y4g+="ham";o1y="NZ%";o1y+="sT";I$z="F";I$z+="iji";K8$="A";K8$+="W";z_O="A";z_O+="W";H1Q="S";H1Q+="yr";H1Q+="ia";Y$3="+";Y$3+="0";Y$3+="3";g8c="EE";g8c+="%sT";E9a="R";E9a+="O";E9a+="K";P1g="E";P1g+="E%";P1g+="sT";q5m="Jord";q5m+="an";q16="I";q16+="ran";x3q="EE";x3q+="%sT";U4m="H";U4m+="K";R8s="C";R8s+="%";R8s+="s";R8s+="T";z3m="+";z3m+="06";z3m+="/+07";G6_="Dhak";G6_+="a";X5y="A";X5y+="ze";X5y+="r";K8j="C";K8j+="E%";K8j+="s";K8j+="T";d5a="N";d5a+="amib";d5a+="i";d5a+="a";g6y="un";g6y+="defi";g6y+="ne";g6y+="d";K$D="Pacific/Kir";K$D+="itimati";L8m="Pac";L8m+="ific";L8m+="/Chatha";L8m+="m";S_F="Asia/Kam";S_F+="c";S_F+="hatka";z75="As";z75+="ia/Sred";z75+="nekolyms";z75+="k";U8F="P";U8F+="acific/Noumea";z2l="Asia/Vladivo";z2l+="stok";H9H="Pa";H9H+="cific";H9H+="/Guam";A5c="Austr";A5c+="al";A5c+="ia";A5c+="/Darwin";I7R="Asia";I7R+="/Yakutsk";Y0y="A";Y0y+="sia/Pyon";Y0y+="gyang";h_V="Au";h_V+="strali";h_V+="a";h_V+="/Perth";u3Q="Asia/No";u3Q+="vosibi";u3Q+="rsk";q9h="Asia/Novok";q9h+="uznetsk";g9I="Eur";g9I+="o";g9I+="pe/Sama";g9I+="ra";x4u="Asia/Dub";x4u+="a";x4u+="i";H9Y="Europe";H9Y+="/Mosc";H9Y+="ow";N49="A";N49+="sia/Riy";N49+="ad";N49+="h";R5w="Euro";R5w+="pe/Istanbul";I23="Asi";I23+="a/";I23+="Jerus";I23+="alem";L7a="Asia";L7a+="/N";L7a+="icosia";m3S="Euro";m3S+="pe/Helsink";m3S+="i";O_f="Eu";O_f+="rope/Buch";O_f+="arest";r9Q="Eur";r9Q+="ope/Bru";r9Q+="sse";r9Q+="ls";E_1="Afric";E_1+="a/C";E_1+="asabla";E_1+="nca";f_l="Atlantic/Azore";f_l+="s";R5$="A";R5$+="mer";R5$+="ica/";R5$+="Sao_Paulo";e50="Ame";e50+="rica/Sant";e50+="iago";u3L="America";u3L+="/Bo";u3L+="gota";G7h="America";G7h+="/Costa_Rica";k5I="Americ";k5I+="a/Chih";k5I+="uahua";f$y="Amer";f$y+="ica/";f$y+="Juneau";f$6="undefi";f$6+="n";f$6+="ed";r9_=typeof _CIQ !== f$6?_CIQ:b$d.CIQ;l5Y=typeof _timezoneJS !== "undefined"?_timezoneJS:b$d.timezoneJS;r9_.timeZoneMap={"(UTC-11:00) American Samoa, Midway Island":"Pacific/Pago_Pago","(UTC-10:00) Hawaii":"Pacific/Honolulu","(UTC-09:00) Alaska":f$y,"(UTC-08:00) Pacific Time (US and Canada), Tijuana":"America/Los_Angeles","(UTC-07:00) Arizona":"America/Phoenix","(UTC-07:00) Chihuahua, Mazatlan":k5I,"(UTC-07:00) Mountain Time (US and Canada)":"America/Denver","(UTC-06:00) Central America":G7h,"(UTC-06:00) Central Time (US and Canada)":"America/Chicago","(UTC-06:00) Guadalajara, Mexico City, Monterrey":"America/Mexico_City","(UTC-06:00) Saskatchewan":"America/Regina","(UTC-05:00) Bogota, Lima, Quito, Rio Branco":u3L,"(UTC-05:00) Eastern Time (US and Canada)":"America/New_York","(UTC-05:00) Havana":"America/Havana","(UTC-05:00) Port-au-Prince":"America/Port-au-Prince","(UTC-04:00) Asuncion":"America/Asuncion","(UTC-04:00) Santiago":e50,"(UTC-04:00) Caracas":"America/Caracas","(UTC-04:00) Atlantic Time (Canada)":"America/Halifax","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan":"America/Puerto_Rico","(UTC-03:30) Newfoundland and Labrador":"America/St_Johns","(UTC-03:00) Cancun, Jamaica, Panama":"America/Panama","(UTC-03:00) Buenos Aires":"America/Argentina/Buenos_Aires","(UTC-03:00) Punta Arenas":"America/Punta_Arenas","(UTC-03:00) Montevideo":"America/Montevideo","(UTC-03:00) Sao Paulo":R5$,"(UTC-02:00) Mid-Atlantic":"Atlantic/South_Georgia","(UTC-01:00) Azores":f_l,"(UTC-01:00) Cape Verde Islands":"Atlantic/Cape_Verde","(UTC) Greenwich Mean Time, Reykjavik":"UTC","(UTC) Dublin":"Europe/Dublin","(UTC) Lisbon, London":"Europe/London","(UTC+01:00) Algiers, Tunis":"Africa/Tunis","(UTC+01:00) Casablanca":E_1,"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna":"Europe/Amsterdam","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague":"Europe/Belgrade","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris":r9Q,"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb":"Europe/Sarajevo","(UTC+02:00) Kaliningrad":"Europe/Kaliningrad","(UTC+02:00) Athens, Bucharest":O_f,"(UTC+02:00) Cairo":"Africa/Cairo","(UTC+02:00) Harare, Johannesburg":"Africa/Johannesburg","(UTC+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius":m3S,"(UTC+02:00) Cyprus":L7a,"(UTC+02:00) Beirut":"Asia/Beirut","(UTC+02:00) Damascus":"Asia/Damascus","(UTC+02:00) Jerusalem":I23,"(UTC+02:00) Amman":"Asia/Amman","(UTC+03:00) Istanbul":R5w,"(UTC+03:00) Baghdad, Kuwait, Qatar, Riyadh":N49,"(UTC+03:00) Minsk, Moscow, Kirov, Simferopol":H9Y,"(UTC+03:00) Volgograd":"Europe/Volgograd","(UTC+03:00) Nairobi":"Africa/Nairobi","(UTC+03:30) Tehran":"Asia/Tehran","(UTC+04:00) Baku":"Asia/Baku","(UTC+04:00) Dubai, Muscat":x4u,"(UTC+04:00) Astrakhan, Samara, Saratov, Ulyanovsk":g9I,"(UTC+04:30) Kabul":"Asia/Kabul","(UTC+05:00) Karachi, Tashkent":"Asia/Karachi","(UTC+05:00) Yekaterinburg":"Asia/Yekaterinburg","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi":"Asia/Kolkata","(UTC+05:45) Kathmandu":"Asia/Kathmandu","(UTC+06:00) Almaty":"Asia/Almaty","(UTC+06:00) Omsk":"Asia/Omsk","(UTC+06:00) Astana, Dhaka":"Asia/Dhaka","(UTC+06:30) Yangon":"Asia/Yangon","(UTC+07:00) Bangkok, Jakarta, Vietnam":"Asia/Bangkok","(UTC+07:00) Hovd":"Asia/Hovd","(UTC+07:00) Krasnoyarsk":"Asia/Krasnoyarsk","(UTC+07:00) Novokuznetsk":q9h,"(UTC+07:00) Barnaul, Novosibirsk, Tomsk":u3Q,"(UTC+08:00) Beijing, Chongqing, Hong Kong SAR":"Asia/Hong_Kong","(UTC+08:00) Brunei, Kuala Lumpur, Singapore":"Asia/Kuala_Lumpur","(UTC+08:00) Irkutsk":"Asia/Irkutsk","(UTC+08:00) Choibalsan, Ulaanbaatar":"Asia/Ulaanbaatar","(UTC+08:00) Manila, Taipei":"Asia/Taipei","(UTC+08:00) Perth":h_V,"(UTC+08:45) Eucla":"Australia/Eucla","(UTC+09:00) Osaka, Sapporo, Tokyo":"Asia/Tokyo","(UTC+09:00) Pyongyang":Y0y,"(UTC+09:00) Seoul":"Asia/Seoul","(UTC+09:00) Chita, Khandyga, Yakutsk":I7R,"(UTC+09:30) Adelaide":"Australia/Adelaide","(UTC+09:30) Darwin":A5c,"(UTC+10:00) Brisbane":"Australia/Brisbane","(UTC+10:00) Canberra, Melbourne, Sydney":"Australia/Sydney","(UTC+10:00) Guam, Port Moresby":H9H,"(UTC+10:00) Ust-Nera, Vladivostok":z2l,"(UTC+11:00) Noumea, Solomon Islands":U8F,"(UTC+11:00) Magadan":"Asia/Magadan","(UTC+11:00) Sakhalin, Srednekolymsk":z75,"(UTC+12:00) Anadyr, Kamchatka":S_F,"(UTC+12:00) Auckland, Wellington":"Pacific/Auckland","(UTC+12:00) Fiji":"Pacific/Fiji","(UTC+12:45) Chatham":L8m,"(UTC+13:00) Tonga":"Pacific/Tongatapu","(UTC+13:00) Samoa":"Pacific/Apia","(UTC+14:00) Kiritimati":K$D};(function(){var j98,A9U,j6k,P27,d$f,s9H,P2b,g_n,L1_,N5a,w4H,e$X,R6d,U$n,B2g,k$S,G0A;j98="O";j98+="ctob";j98+="e";j98+="r";A9U="Septem";A9U+="ber";j6k="Febru";j6k+="ary";P27="S";P27+="at";P27+="urd";P27+="ay";d$f="Frid";d$f+="ay";"use strict";s9H=typeof window !== "undefined"?window:null;P2b=s9H || (typeof global !== "undefined"?global:{});l5Y.VERSION="0.4.11";g_n=P2b.$ || P2b.jQuery || P2b.Zepto;L1_=P2b.fleegix;N5a=l5Y.Days=["Sunday","Monday","Tuesday","Wednesday","Thursday",d$f,P27];w4H=l5Y.Months=["January",j6k,"March","April","May","June","July","August",A9U,j98,"November","December"];e$X={};R6d={};U$n={};for(var h5p=0;h5p < w4H.length;h5p++){e$X[w4H[h5p].substr(+"0",3)]=h5p;}for(h5p=+"0";h5p < N5a.length;h5p++){R6d[N5a[h5p].substr(0,3)]=h5p;}B2g=Array.prototype.indexOf || (function(R7H){var X$z,N9Y,f4K,E5v;if(this === null){throw new TypeError();}X$z=Object(this);N9Y=X$z.length >>> 0;if(N9Y === "0" * 1){return -1;}f4K=+"0";N21.W5N();if(arguments.length > 1){f4K=Number(arguments[1]);if(f4K != f4K){f4K=0;}else if(f4K !== 0 && f4K !== Infinity && f4K !== -Infinity){N21.O_b(1);var i1B=N21.v$j(11,10);f4K=(f4K > 0 || i1B) * Math.floor(Math.abs(f4K));}}if(f4K >= N9Y){N21.s$9(29);return -N21.V9a("1",64);}E5v=f4K >= 0?f4K:Math.max(N9Y - Math.abs(f4K),0);for(;E5v < N9Y;E5v++){if((E5v in X$z) && X$z[E5v] === R7H){return E5v;}}return -1;});k$S=function(Z15,f0J){var v3B,N_p,G3i,i1T;v3B="numb";v3B+="er";if(typeof Z15 !== v3B){N21.O_b(0);throw N21.v$j("not a number: ",Z15);}N21.O_b(73);N_p=N21.V9a(Z15,1000);G3i=Z15.toString();i1T=G3i.length;if(N_p && i1T > f0J){N21.O_b(1);return G3i.substr(N21.v$j(f0J,i1T),i1T);}G3i=[G3i];while(i1T < f0J){G3i.unshift("0");i1T++;}return G3i.join("");};G0A=function(P1e){var X9q,o8y;X9q="u";X9q+="ndefined";if(!P1e){return;}if(!P1e.url){throw new Error("URL must be specified");}if(!(("async" in P1e))){P1e.async=!0;}if((!L1_ || typeof L1_.xhr === X9q) && (!g_n || typeof g_n.ajax === "undefined")){throw new Error("Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.");}if(!P1e.async){o8y="t";o8y+="e";o8y+="x";o8y+="t";return L1_ && L1_.xhr?L1_.xhr.doReq({url:P1e.url,async:!({})}):g_n.ajax({url:P1e.url,async:![],dataType:o8y}).responseText;}N21.W3G();return L1_ && L1_.xhr?L1_.xhr.send({url:P1e.url,method:"get",handleSuccess:P1e.success,handleErr:P1e.error}):g_n.ajax({url:P1e.url,dataType:"text",method:"GET",error:P1e.error,success:P1e.success});};l5Y.ruleCache={};l5Y.Date=function(){var U$k,u$v,n$d,V5q,H2F,T$E,f7k,b3p;U$k="str";U$k+="ing";if(this === l5Y){u$v="timezoneJS.Date object must be constructed";u$v+=" wi";u$v+="th 'new";u$v+="'";throw u$v;}n$d=Array.prototype.slice.apply(arguments);V5q=null;H2F=null;N21.W5N();T$E=[];f7k=![];if(Object.prototype.toString.call(n$d[0]) === "[object Array]"){n$d=n$d[0];}if(typeof n$d[n$d.length - 1] === "string"){f7k=Date.parse(n$d[n$d.length - 1].replace(/GMT[+-]\d+/,""));if(isNaN(f7k) || f7k === null){H2F=n$d.pop();}}b3p=!"1";switch(n$d.length){case 0:V5q=new Date();break;case 1:N21.s$9(1);V5q=new Date(n$d[N21.V9a(0,"0")]);if(typeof n$d[+"0"] == U$k && n$d[0].search(/[+-][0-9]{4}/) == -1 && n$d[0].search(/Z/) == -1 && n$d[0].search(/T/) == -+"1"){b3p=!![];}break;case "2" - 0:N21.O_b(29);V5q=new Date(n$d[N21.v$j("0",0)],n$d[1]);b3p=!!({});break;default:for(var R46=+"0";R46 < 7;R46++){T$E[R46]=n$d[R46] || 0;}N21.s$9(12);V5q=new Date(T$E[N21.V9a(0,"0")],T$E[+"1"],T$E[2],T$E[3],T$E[4],T$E[+"5"],T$E[6]);b3p=!!({});break;}if(isNaN(V5q.getTime())){throw new Error("Invalid date");}this._useCache=!1;this._tzInfo={};this._day=0;this.year=0;this.month=0;this.date=0;this.hours=0;N21.O_b(29);this.minutes=N21.v$j("0",64);this.seconds=+"0";this.milliseconds=0;this.timezone=H2F || null;if(b3p){this.setFromDateObjProxy(V5q);}else {this.setFromTimeProxy(V5q.getTime(),H2F);}};r9_.extend(l5Y.Date.prototype,{getDate:function(){N21.W5N();return this.date;},getDay:function(){N21.W5N();return this._day;},getFullYear:function(){N21.W5N();return this.year;},getMonth:function(){return this.month;},getYear:function(){N21.s$9(65);var z$E=N21.v$j(2,17,1889,19,1933);N21.W5N();return this.year - z$E;},getHours:function(){N21.W3G();return this.hours;},getMilliseconds:function(){N21.W5N();return this.milliseconds;},getMinutes:function(){return this.minutes;},getSeconds:function(){return this.seconds;},getUTCDate:function(){N21.W5N();return this.getUTCDateProxy().getUTCDate();},getUTCDay:function(){N21.W5N();return this.getUTCDateProxy().getUTCDay();},getUTCFullYear:function(){return this.getUTCDateProxy().getUTCFullYear();},getUTCHours:function(){return this.getUTCDateProxy().getUTCHours();},getUTCMilliseconds:function(){N21.W5N();return this.getUTCDateProxy().getUTCMilliseconds();},getUTCMinutes:function(){return this.getUTCDateProxy().getUTCMinutes();},getUTCMonth:function(){return this.getUTCDateProxy().getUTCMonth();},getUTCSeconds:function(){return this.getUTCDateProxy().getUTCSeconds();},getTime:function(){N21.O_b(135);var y6M=N21.v$j(1546,19,5,17,9);N21.O_b(59);var g8Q=N21.V9a(20,985,1015,197);return this._timeProxy + this.getTimezoneOffset() * y6M * g8Q;},getTimezone:function(){return this.timezone;},getTimezoneOffset:function(){return this.getTimezoneInfo().tzOffset;},getTimezoneAbbreviation:function(){return this.getTimezoneInfo().tzAbbr;},getTimezoneInfo:function(){var b2Y;if(this._useCache){return this._tzInfo;}if(this.timezone){b2Y=this.timezone === "Etc/UTC" || this.timezone === "Etc/GMT"?{tzOffset:+"0",tzAbbr:"UTC"}:l5Y.timezone.getTzInfo(this._timeProxy,this.timezone);}else {b2Y={tzOffset:this.getLocalOffset(),tzAbbr:null};}this._tzInfo=b2Y;this._useCache=!"";return b2Y;},getUTCDateProxy:function(){var U47;U47=new Date(this._timeProxy);N21.W3G();U47.setUTCMinutes(U47.getUTCMinutes() + this.getTimezoneOffset());return U47;},setDate:function(E31){this.setAttribute("date",E31);return this.getTime();},setFullYear:function(W$B,Y0i,v2V){var H0P;H0P="ye";H0P+="ar";if(v2V !== undefined){this.setAttribute("date",1);}this.setAttribute(H0P,W$B);if(Y0i !== undefined){this.setAttribute("month",Y0i);}if(v2V !== undefined){this.setAttribute("date",v2V);}return this.getTime();},setMonth:function(b3_,L35){this.setAttribute("month",b3_);if(L35 !== undefined){this.setAttribute("date",L35);}return this.getTime();},setYear:function(m7$){m7$=Number(m7$);N21.W5N();if(+"0" <= m7$ && m7$ <= "99" >> 0){m7$+=1900;}this.setUTCAttribute("year",m7$);return this.getTime();},setHours:function(o_a,L48,R1b,e9k){var K6z,Y3n;this.setAttribute("hours",o_a);if(L48 !== undefined){this.setAttribute("minutes",L48);}if(R1b !== undefined){K6z="secon";K6z+="d";K6z+="s";this.setAttribute(K6z,R1b);}if(e9k !== undefined){Y3n="mill";Y3n+="i";Y3n+="seco";Y3n+="nds";this.setAttribute(Y3n,e9k);}return this.getTime();},setMinutes:function(z3F,O3P,r6E){N21.W3G();this.setAttribute("minutes",z3F);if(O3P !== undefined){this.setAttribute("seconds",O3P);}if(r6E !== undefined){this.setAttribute("milliseconds",r6E);}return this.getTime();},setSeconds:function(n3F,x5s){this.setAttribute("seconds",n3F);N21.W3G();if(x5s !== undefined){this.setAttribute("milliseconds",x5s);}return this.getTime();},setMilliseconds:function(b18){var J6H;J6H="mil";J6H+="l";J6H+="isecond";N21.W5N();J6H+="s";this.setAttribute(J6H,b18);return this.getTime();},setTime:function(X$n){var B3b;if(isNaN(X$n)){B3b="Units";B3b+=" must be a numbe";B3b+="r";B3b+=".";throw new Error(B3b);}this.setFromTimeProxy(X$n,this.timezone);N21.W5N();return this.getTime();},setUTCFullYear:function(A8I,i_T,T2P){var U3q;if(T2P !== undefined){this.setUTCAttribute("date",1);}N21.W5N();this.setUTCAttribute("year",A8I);if(i_T !== undefined){U3q="mo";U3q+="nth";this.setUTCAttribute(U3q,i_T);}if(T2P !== undefined){this.setUTCAttribute("date",T2P);}return this.getTime();},setUTCMonth:function(D5s,t4j){var l$8;this.setUTCAttribute("month",D5s);if(t4j !== undefined){l$8="d";l$8+="a";l$8+="t";l$8+="e";this.setUTCAttribute(l$8,t4j);}N21.W5N();return this.getTime();},setUTCDate:function(j8s){this.setUTCAttribute("date",j8s);return this.getTime();},setUTCHours:function(s8m,N0Z,V_T,f45){var w6$,b26,g5c;w6$="h";w6$+="ou";w6$+="rs";this.setUTCAttribute(w6$,s8m);N21.W5N();if(N0Z !== undefined){this.setUTCAttribute("minutes",N0Z);}if(V_T !== undefined){b26="secon";b26+="d";b26+="s";this.setUTCAttribute(b26,V_T);}if(f45 !== undefined){g5c="mil";g5c+="liseco";g5c+="nds";this.setUTCAttribute(g5c,f45);}return this.getTime();},setUTCMinutes:function(t_Q,z$q,Y$h){var D1x,s$_;D1x="minu";D1x+="te";D1x+="s";this.setUTCAttribute(D1x,t_Q);if(z$q !== undefined){s$_="s";s$_+="e";s$_+="cond";s$_+="s";this.setUTCAttribute(s$_,z$q);}if(Y$h !== undefined){this.setUTCAttribute("milliseconds",Y$h);}return this.getTime();},setUTCSeconds:function(C4$,x5J){this.setUTCAttribute("seconds",C4$);N21.W3G();if(x5J !== undefined){this.setUTCAttribute("milliseconds",x5J);}return this.getTime();},setUTCMilliseconds:function(x6k){var t1S,M61,S5h;t1S=-673695846;M61=1687467664;S5h=2;for(var X2s=1;N21.m6F(X2s.toString(),X2s.toString().length,31797) !== t1S;X2s++){this.setUTCAttribute("milliseconds",x6k);S5h+=2;}if(N21.m6F(S5h.toString(),S5h.toString().length,37908) !== M61){this.setUTCAttribute("",x6k);}return this.getTime();},setFromDateObjProxy:function(V7d){this.year=V7d.getFullYear();this.month=V7d.getMonth();this.date=V7d.getDate();this.hours=V7d.getHours();this.minutes=V7d.getMinutes();this.seconds=V7d.getSeconds();N21.W3G();this.milliseconds=V7d.getMilliseconds();this._day=V7d.getDay();this._dateProxy=V7d;this._timeProxy=Date.UTC(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.milliseconds);this._useCache=!!0;},setFromTimeProxy:function(s$C,c3c){var k8H,O5q;k8H=new Date(s$C);O5q=c3c?l5Y.timezone.getTzInfo(s$C,c3c,!!"1").tzOffset:k8H.getTimezoneOffset();k8H.setTime(s$C + (k8H.getTimezoneOffset() - O5q) * 60000);N21.W5N();this.setFromDateObjProxy(k8H);},setAttribute:function(L_V,a5E){var u6j,n0c,n2O,X1l;u6j="ye";u6j+="ar";if(isNaN(a5E)){n0c="Units must be a number";n0c+=".";throw new Error(n0c);}n2O=this._dateProxy;X1l=L_V === u6j?"FullYear":L_V.substr(0,1).toUpperCase() + L_V.substr(1);n2O["set" + X1l](a5E);this.setFromDateObjProxy(n2O);},setUTCAttribute:function(W4a,W8p){var J57,y8y;N21.W5N();if(isNaN(W8p)){throw new Error("Units must be a number.");}J57=W4a === "year"?"FullYear":W4a.substr(0,1).toUpperCase() + W4a.substr(1);y8y=this.getUTCDateProxy();y8y["setUTC" + J57](W8p);y8y.setUTCMinutes(y8y.getUTCMinutes() - this.getTimezoneOffset());this.setFromTimeProxy(y8y.getTime() + this.getTimezoneOffset() * 60000,this.timezone);},setTimezone:function(w4M){var V$H,w2_,o9D,g1X;V$H=this.getTimezoneInfo().tzOffset;this.timezone=w4M;w2_=294848690;o9D=-2104916566;g1X=2;for(var t7e="1" >> 0;N21.l5h(t7e.toString(),t7e.toString().length,40800) !== w2_;t7e++){this._useCache=!!({});g1X+=2;}if(N21.m6F(g1X.toString(),g1X.toString().length,57849) !== o9D){this._useCache=!1;}this._useCache=!!0;N21.W3G();this.setUTCMinutes(this.getUTCMinutes() - this.getTimezoneInfo().tzOffset + V$H);},removeTimezone:function(){this.timezone=null;N21.W3G();this._useCache=!"1";},valueOf:function(){N21.W3G();return this.getTime();},clone:function(){N21.W5N();return this.timezone?new l5Y.Date(this.getTime(),this.timezone):new l5Y.Date(this.getTime());},toGMTString:function(){return this.toString("EEE, dd MMM yyyy HH:mm:ss Z","Etc/GMT");},toLocaleStringIntl:function(){},toLocaleDateString:function(){},toLocaleTimeString:function(){},toSource:function(){},toISOString:function(){return this.toString("yyyy-MM-ddTHH:mm:ss.SSS","Etc/UTC") + (11.57 >= +"9670"?(788.89,!!"1"):"Z");},toJSON:function(){N21.W5N();return this.toISOString();},toDateString:function(){N21.W3G();return this.toString("EEE MMM dd yyyy");},toTimeString:function(){return this.toString("H:mm k");},toString:function(I9K,F$G){var j07,k9B,T$U,M7x,n$O;j07="yyyy-MM-";j07+="ddTHH:mm:ss.SS";j07+="S";if(!I9K){I9K=j07;}k9B=I9K;T$U=F$G?l5Y.timezone.getTzInfo(this.getTime(),F$G):this.getTimezoneInfo();M7x=this;if(F$G){M7x=this.clone();M7x.setTimezone(F$G);}n$O=M7x.getHours();return k9B.replace(/a+/g,function(){N21.W3G();return "k";}).replace(/y+/g,function(A5x){N21.W3G();return k$S(M7x.getFullYear(),A5x.length);}).replace(/d+/g,function(m1o){return k$S(M7x.getDate(),m1o.length);}).replace(/m+/g,function(T0O){return k$S(M7x.getMinutes(),T0O.length);}).replace(/s+/g,function(b0_){return k$S(M7x.getSeconds(),b0_.length);}).replace(/S+/g,function(o6M){return k$S(M7x.getMilliseconds(),o6M.length);}).replace(/h+/g,function(p19){return k$S(n$O % ("12" | 12) === 0?12:n$O % 12,p19.length);}).replace(/M+/g,function(j0s){var y4J,A03;y4J=M7x.getMonth();A03=j0s.length;if(A03 > +"3"){return l5Y.Months[y4J];}else if(A03 > ("2" ^ 0)){return l5Y.Months[y4J].substring(+"0",A03);}N21.O_b(0);return k$S(N21.v$j(y4J,1),A03);}).replace(/k+/g,function(){var E0w;E0w="A";E0w+="M";if(n$O >= 12){if(n$O > 12){n$O-=12;}return "PM";}return E0w;}).replace(/H+/g,function(T9n){return k$S(n$O,T9n.length);}).replace(/E+/g,function(P5P){N21.W5N();var p7A,b47,V6L;p7A=-162823215;b47=-1603592251;V6L=2;for(var j02=1;N21.l5h(j02.toString(),j02.toString().length,"99601" >> 32) !== p7A;j02++){return N5a[M7x.getDay()].substring(3,P5P.length);}if(N21.m6F(V6L.toString(),V6L.toString().length,16884) !== b47){return N5a[M7x.getDay()].substring(0,P5P.length);}}).replace(/Z+/gi,function(){return T$U.tzAbbr;});},toUTCString:function(){N21.W3G();return this.toGMTString();},civilToJulianDayNumber:function(d62,A3s,G0G){var Q29,d8E,T3w,h4g,N4z,r94;A3s++;if(A3s > 12){N21.O_b(9);Q29=parseInt(N21.V9a(A3s,12),10);N21.O_b(79);A3s=N21.V9a(A3s,12);d62+=Q29;}if(A3s <= 2){d62-=1;d8E=+"1905615266";T3w=-2045081230;h4g=2;for(var V40=1;N21.l5h(V40.toString(),V40.toString().length,35145) !== d8E;V40++){A3s+=12;N21.O_b(29);h4g+=N21.V9a("2",32);}if(N21.m6F(h4g.toString(),h4g.toString().length,20030) !== T3w){A3s/=36;}}N21.O_b(9);Q29=Math.floor(N21.V9a(d62,100));N21.O_b(136);var j44=N21.V9a(9,20,1,21,12);N4z=j44 - Q29 + Math.floor(Q29 / +"4");N21.O_b(1);var g7M=N21.v$j(56592,61308);N21.s$9(25);var c_X=N21.V9a(6,14,3,43,15);r94=Math.floor(365.25 * (d62 + g7M)) + Math.floor(30.6001 * (A3s + c_X)) + G0G + N4z - +"1524";return r94;},getLocalOffset:function(){return this._dateProxy.getTimezoneOffset();}},!"");l5Y.timezone=new (function(){var O_s,y_C,k6f,W10,c40,J0k,J4v,o5c,R5S,P5v,s6s,A6f,L8M,F_e,p_$,a1P,D2d,i9Q;function c_C(P_i,P30){N21.W3G();N21.s$9(1);return -Math.ceil(N21.v$j(P_i,P30));}O_s="man";O_s+="u";O_s+="alLoad";y_C="australa";y_C+="sia";function S88(r4_){var A4p,y5s,R7F,E2P,Q3T;A4p="s";A4p+="tri";A4p+="ng";y5s=i9Q[r4_];if(y5s){return y5s;}R7F=r4_.split("/")[0];N21.W5N();E2P=D2d[R7F];if(E2P){return E2P;}Q3T=a1P.zones[r4_];if(typeof Q3T === A4p){return S88(Q3T);}if(!a1P.loadedZones.backward){a1P.loadZoneFile("backward");return S88(r4_);}Z4C(r4_);}k6f="a";k6f+="fric";k6f+="a";W10="e";W10+="tcetera";c40="euro";function Z4C(D0l){var t$G;t$G="Tim";t$G+="ezo";t$G+="ne ";t$G+="'";N21.W3G();N21.s$9(35);throw new Error(N21.v$j(D0l,"' is either incorrect, or not loaded in the timezone registry.",t$G));}c40+="pe";J0k="eur";J0k+="ope";function s7n(l3a,u9k,j4Q,K63){var R5d,l64,c7M,V_b,J1z,G8Z,E$M,g_W,B7L,R49,q2k,q$K,h3j;R5d=typeof l3a === "number"?new Date(l3a):l3a;l64=u9k[1];N21.s$9(1);c7M=u9k[N21.V9a(0,"0")];V_b=l64.match(/^([0-9]):([0-9][0-9])$/);if(V_b){N21.O_b(24);var B_K=N21.V9a(8,19,12,45);N21.O_b(33);var Q5P=N21.v$j(5,8,11);N21.s$9(22);var E6u=N21.V9a(13,98,2,8);N21.s$9(29);return [-N21.v$j("1000000",32),"max",(1602,7990) === ("4200" | 40,8240)?("C",!![]):"-","Jan",1,[0,0,0],parseInt(V_b[1],+"10") * B_K + parseInt(V_b[Q5P],E6u),(201.12,5938) >= 701?(9380,12.13) == (35.73,580.71)?(0x1fda,!!({})):(6850,4190) <= 5325?"-":("P",+"5.64e+3"):("h",+"4.83e+3")];}J1z=function(o4_,y5m,T2h){var Q64,n5t,Y3I,x0U;Q64=0;if(y5m === ((6017,+"3940") <= 4972?("5156" | 32) > (+"237.34",78.14)?"u":+"0xa17":420) || y5m === ((389,883.34) < 245.52?138.76:1880 === 8883?(3117,+"996") !== (8329,347.51)?975.70:(874.97,"D"):"g") || y5m === ((8210,645.2) > (1055,356)?"z":3510 == ("3699" ^ 0,7370)?("L","8.85e+3" * 1):"857.62" * 1)){Q64=0;}else if(y5m === "s"){Q64=c7M;}else if(y5m === ((3459,6614) > 9705?(646.68,6980) != 2780?733.84 == 982.37?2.52e+3:("L",!!({})):(616.96,633.01):"w") || !y5m){Q64=c_C(c7M,T2h[6]);}else {N21.s$9(0);throw new Error(N21.V9a("unknown type ",y5m));}N21.O_b(2);Q64*=N21.v$j(1000,60);n5t=-68990754;Y3I=-1428982951;x0U=2;for(var h7A=1;N21.m6F(h7A.toString(),h7A.toString().length,94014) !== n5t;h7A++){return new Date(o4_.getTime() - Q64);}if(N21.m6F(x0U.toString(),x0U.toString().length,43836) !== Y3I){return new Date(o4_.getTime() + Q64);}};G8Z=function(t7g,F16){var M5p,p53,C0k,o4f,n6s,W6E,u1N,X5e;M5p=t7g[0];N21.W3G();p53=t7g[1];C0k=p53[5];if(!U$n[M5p]){U$n[M5p]={};}if(U$n[M5p][p53]){o4f=U$n[M5p][p53];}else {if(!isNaN(p53[4])){o4f=new Date(Date.UTC(M5p,e$X[p53[3]],p53[4],C0k[0],C0k[1],C0k[+"2"],0));}else {if(p53[4].substr(0,4) === "last"){u1N="<";u1N+="=";o4f=new Date(Date.UTC(M5p,e$X[p53[3]] + 1,1,C0k[0] - 24,C0k[1],C0k[+"2"],0));n6s=R6d[p53[4].substr(4,3)];W6E=u1N;}else {o4f=new Date(Date.UTC(M5p,e$X[p53[3]],p53[4].substr(5),C0k[+"0"],C0k[1],C0k[2],"0" << 32));n6s=R6d[p53[4].substr(+"0",+"3")];W6E=p53[4].substr(+"3",2);}X5e=o4f.getUTCDay();if(W6E === ">="){o4f.setUTCDate(o4f.getUTCDate() + (n6s - X5e + (n6s < X5e?7:"0" ^ 0)));}else {o4f.setUTCDate(o4f.getUTCDate() + (n6s - X5e - (n6s > X5e?7:0)));}}U$n[M5p][p53]=o4f;}if(F16){o4f=J1z(o4f,C0k[3],F16);}return o4f;};E$M=function(S0G,S8O){var Z0B;Z0B=[];for(var f23=+"0";S8O && f23 < S8O.length;f23++){if(S8O[f23][0] <= S0G && (S8O[f23][+"1"] >= S0G || S8O[f23][0] === S0G && S8O[f23][+"1"] === "only" || S8O[f23][1] === "max")){Z0B.push([S0G,S8O[f23]]);}}return Z0B;};g_W=function(k80,J0Y,e4n){var P12,w8P;if(!(k80 instanceof Date)){P12=k80[0];w8P=k80[1];k80=!e4n && U$n[P12] && U$n[P12][w8P]?U$n[P12][w8P]:G8Z(k80,e4n);}else if(e4n){k80=J1z(k80,j4Q?108 >= (2930,7460)?("8838" << 32,+"840") < (235.45,3912)?(0x88,0x25c4):7.09e+3:"u":"w",e4n);}if(!(J0Y instanceof Date)){P12=J0Y[0];w8P=J0Y[1];J0Y=!e4n && U$n[P12] && U$n[P12][w8P]?U$n[P12][w8P]:G8Z(J0Y,e4n);}else if(e4n){J0Y=J1z(J0Y,j4Q?5120 != (7067,4480)?8140 <= 2350?603.56:(+"187.4",909.09) > 3960?!"":"u":"7.28e+3" | 48:"w",e4n);}k80=Number(k80);J0Y=Number(J0Y);N21.O_b(1);return N21.v$j(J0Y,k80);};B7L=R5d.getUTCFullYear();q2k=l5Y.ruleCache[K63];if(!q2k){q2k=l5Y.ruleCache[K63]={};}R49=q2k[B7L];if(!R49){N21.s$9(1);R49=E$M(N21.v$j(1,B7L),a1P.rules[l64]);R49=R49.concat(E$M(B7L,a1P.rules[l64]));R49.sort(g_W);q2k[B7L]=R49;}if(!R49 || !R49.length){return null;}for(var Y5a=R49.length - 1;Y5a >= +"0";Y5a--){if(Y5a > 0){N21.O_b(137);q$K=R49[N21.v$j(32,"1",Y5a)][N21.v$j(0,"1",N21.O_b(1))];}else {q$K=null;}h3j=R49[Y5a];if(!h3j[2]){h3j[2]=G8Z(h3j,q$K);;}if(g_W(R5d,h3j,q$K) >= 0){N21.O_b(2);return h3j[N21.V9a(1,"1")];}}N21.W5N();return null;;}J4v="a";J4v+="sia";o5c="afri";o5c+="ca";R5S="e";R5S+="u";R5S+="r";R5S+="ope";P5v="anta";P5v+="rc";P5v+="ti";P5v+="ca";s6s="eur";function Q4m(I6O){var M4q,K0K;M4q=u72(I6O);K0K=I6O.charAt("0" | 0) === (2588 > 9230?"E":4219 === 2530?7454 == (4680,4100)?(9.11e+2,674.53):!![]:"-")?-1:1;N21.s$9(89);N21.W3G();var S2h=N21.V9a(69,9,78,59);N21.O_b(138);var M_J=N21.v$j(12,65,9,471,18);N21.O_b(21);var B6k=N21.v$j(15,34,508);M4q=K0K * (((M4q[0] * S2h + M4q[+"1"]) * M_J + M4q[B6k]) * +"1000");N21.s$9(139);return N21.v$j(M4q,1000,60);}function o6z(B1E,H_P){var D8f,T9c,y5h,V24,p8a,g4Q;D8f=typeof B1E === "number"?B1E:new Date(+B1E).getTime();T9c=H_P;y5h=a1P.zones[T9c];while(typeof y5h === "string"){T9c=y5h;y5h=a1P.zones[T9c];}if(!y5h){if(!a1P.loadedZones.backward){V24="ba";V24+="ck";V24+="war";V24+="d";a1P.loadZoneFile(V24);return o6z(B1E,H_P);}else if(T9c && T9c !== H_P){a1P.lazyLoadZoneFiles(T9c);return o6z(B1E,T9c);}Z4C(T9c);}if(y5h.length === "0" * 1){p8a="No Zone found fo";p8a+="r '";N21.s$9(51);throw new Error(N21.V9a(B1E,"' on ",p8a,H_P));}for(var O57=y5h.length - 1;O57 >= 0;O57--){g4Q=y5h[O57];if(g4Q[+"3"] && D8f > g4Q[3])break;}N21.W3G();N21.O_b(0);return y5h[N21.V9a(O57,1)];}s6s+="o";s6s+="pe";A6f="northa";A6f+="mer";A6f+="i";N21.W3G();A6f+="ca";L8M="n";L8M+="orthamerica";F_e="no";F_e+="rthame";function u72(L9M){var O0P,y24;O0P=/(\d+)(?::0*(\d*))?(?::0*(\d*))?([wsugz])?$/;y24=L9M.match(O0P);y24[1]=parseInt(y24[+"1"],10);N21.W5N();y24[2]=y24[+"2"]?parseInt(y24[+"2"],10):+"0";y24[+"3"]=y24[3]?parseInt(y24[3],10):0;N21.O_b(39);return y24.slice(1,N21.V9a("5",0));}F_e+="rica";p_$="nort";function n_V(b5e){var Y5L,H72,I9o,h$U,N24,P8c,b6R;if(!b5e[3]){return;}Y5L=parseInt(b5e[3],10);H72=11;I9o=31;if(b5e[4]){H72=e$X[b5e[4].substr(0,3)];h$U=1003750496;N24=445096330;P8c=2;for(var s$W=1;N21.m6F(s$W.toString(),s$W.toString().length,62997) !== h$U;s$W++){I9o=parseInt(b5e[6],"78" >> 0) && 5;P8c+=2;}if(N21.m6F(P8c.toString(),P8c.toString().length,78096) !== N24){I9o=parseInt(b5e[9],77) || 6;}I9o=parseInt(b5e[5],10) || 1;}b6R=b5e["6" * 1]?u72(b5e[6]):[0,"0" >> 0,0];N21.O_b(1);return [Y5L,H72,I9o,b6R[N21.V9a(0,"0")],b6R[1],b6R[2]];}p_$+="ha";p_$+="mer";p_$+="ica";a1P=this;D2d={Etc:"etcetera",EST:"northamerica",MST:"northamerica",HST:p_$,EST5EDT:F_e,CST6CDT:"northamerica",MST7MDT:L8M,PST8PDT:A6f,America:["northamerica","southamerica"],Pacific:"australasia",Atlantic:s6s,Africa:"africa",Indian:"africa",Antarctica:P5v,Asia:"asia",Australia:"australasia",Europe:"europe",WET:"europe",CET:R5S,MET:"europe",EET:"europe"};i9Q={"Pacific/Honolulu":"northamerica","Atlantic/Bermuda":"northamerica","Atlantic/Cape_Verde":o5c,"Atlantic/St_Helena":"africa","Indian/Kerguelen":"antarctica","Indian/Chagos":"asia","Indian/Maldives":J4v,"Indian/Christmas":"australasia","Indian/Cocos":"australasia","America/Danmarkshavn":J0k,"America/Scoresbysund":"europe","America/Godthab":"europe","America/Thule":"europe","Asia/Istanbul":"europe","Asia/Yekaterinburg":"europe","Asia/Omsk":"europe","Asia/Novosibirsk":"europe","Asia/Krasnoyarsk":c40,"Asia/Irkutsk":"europe","Asia/Yakutsk":"europe","Asia/Vladivostok":"europe","Asia/Sakhalin":"europe","Asia/Magadan":"europe","Asia/Kamchatka":"europe","Asia/Anadyr":"europe","Africa/Ceuta":"europe",GMT:W10,"Europe/Nicosia":"asia"};this.zoneFileBasePath=null;this.zoneFiles=[k6f,"antarctica","asia",y_C,"backward","etcetera","europe","northamerica","pacificnew","southamerica"];this.loadingSchemes={PRELOAD_ALL:"preloadAll",LAZY_LOAD:"lazyLoad",MANUAL_LOAD:O_s};this.getRegionForTimezone=S88;this.loadingScheme=this.loadingSchemes.LAZY_LOAD;this.loadedZones={};this.zones={};this.rules={};this.init=function(O_j){var w6f,o5u;w6f={async:!!({})};o5u=this.loadingScheme === this.loadingSchemes.PRELOAD_ALL?this.zoneFiles:this.defaultZoneFile || "northamerica";for(var D_R in O_j){w6f[D_R]=O_j[D_R];}return this.loadZoneFiles(o5u,w6f);};this.loadZoneFiles=function(s0y,q9X){var V$1,Q5h,u$u,c0f,N4w,s3d;V$1="s";V$1+="tri";V$1+="ng";u$u=0;if(typeof s0y === V$1){return this.loadZoneFile(s0y,q9X);}c0f=-1762172045;N4w=-1482295719;N21.s$9(39);s3d=N21.v$j("2",0);for(var a3I=1;N21.l5h(a3I.toString(),a3I.toString().length,78249) !== c0f;a3I++){q9X=q9X && ({});s3d+=2;}if(N21.l5h(s3d.toString(),s3d.toString().length,83530) !== N4w){q9X=q9X || ({});}Q5h=q9X.callback;q9X.callback=function(){u$u++;N21.W5N();u$u === s0y.length && typeof Q5h === "function" && Q5h();};for(var J02=0;J02 < s0y.length;J02++){this.loadZoneFile(s0y[J02],q9X);}};function Q5R(i9q,E7$){var H63;N21.s$9(0);var m_G=N21.v$j(569,5);N21.s$9(35);var B3T=N21.V9a(10,4647,1553);N21.s$9(33);var E2M=N21.V9a(294,2654,8);N21.W3G();N21.s$9(104);var z2w=N21.v$j(16,13,27,2);N21.s$9(22);var f_y=N21.v$j(18,307,0,17);H63=a1P.zoneFileBasePath + (m_G !== (66.67,B3T)?(E2M,"8392" >> z2w) >= 787.75?"/":867.40:(343.08,"3.62e+3" * f_y)) + i9q;return !E7$ || !E7$.async?a1P.parseZones(a1P.transport({url:H63,async:!!0})):a1P.transport({async:!0,url:H63,success:function(L5F){N21.W5N();return a1P.parseZones(L5F) && typeof E7$.callback === "function" && E7$.callback();},error:function(){N21.W3G();N21.O_b(35);throw new Error(N21.V9a(H63,"' zoneinfo files","Error retrieving '"));}});}this.loadZoneFile=function(c$q,O73){if(typeof this.zoneFileBasePath === "undefined"){throw new Error("Please define a base path to your zone file directory -- timezoneJS.timezone.zoneFileBasePath.");}if(this.loadedZones[c$q]){return;}this.loadedZones[c$q]=!![];return Q5R(c$q,O73);};this.loadZoneJSONData=function(U5w,g_G){var H5k;H5k=function(T6e){T6e=JSON.parse(T6e);for(var P75 in T6e.zones){a1P.zones[P75]=T6e.zones[P75];}for(var m5i in T6e.rules){a1P.rules[m5i]=T6e.rules[m5i];}};return g_G?H5k(a1P.transport({url:U5w,async:!({})})):a1P.transport({url:U5w,success:H5k});};this.loadZoneDataFromObject=function(o4$){N21.W3G();if(!o4$){return;}for(var X2Y in o4$.zones){a1P.zones[X2Y]=o4$.zones[X2Y];}for(var B39 in o4$.rules){a1P.rules[B39]=o4$.rules[B39];}};this.getAllZones=function(){var a7z;a7z=[];for(var d55 in this.zones){a7z.push(d55);}return a7z.sort();};this.parseZones=function(c5I){var e_d,J4w,X3R,r9z,n42,z8W,d4E,f0f,Z9w,i7I;if(!c5I){return !!"";}e_d=1882731371;J4w=-1112428670;X3R=2;for(var P04="1" >> 32;N21.l5h(P04.toString(),P04.toString().length,94695) !== e_d;P04++){r9z=c5I.split(8333 === 7950?(![],+"783.74"):386.23 > 312.2?184.73 <= (545,"9260" - 0)?"\n":(164.23,7.76e+3):(0x3e6,5.99e+3));n42=[];z8W="";f0f=null;Z9w=null;X3R+=2;}if(N21.l5h(X3R.toString(),X3R.toString().length,+"23775") !== J4w){r9z=c5I.split(5115 !== 7378?(!![],399860):("563666" | 2) <= 66165?103582 < ("886" | 16,2640)?"\n":(507612,6881980):("0xb69" - 0,4590407));n42=[];z8W="";f0f=1;Z9w=1;}for(var V$a=0;V$a < r9z.length;V$a++){d4E=r9z[V$a];if(d4E.match(/^\s/)){N21.s$9(35);d4E=N21.V9a(f0f,d4E,"Zone ");}d4E=d4E.split("#")[0];if(d4E.length > 3){i7I="Li";i7I+="nk";n42=d4E.split(/\s+/);z8W=n42.shift();switch(z8W){case "Zone":f0f=n42.shift();if(!a1P.zones[f0f]){a1P.zones[f0f]=[];}if(n42.length < 3)break;n42.splice(3,n42.length,n_V(n42));if(n42[3]){n42[3]=Date.UTC.apply(null,n42[3]);}n42[0]=-Q4m(n42[0]);a1P.zones[f0f].push(n42);break;case "Rule":Z9w=n42.shift();if(!a1P.rules[Z9w]){a1P.rules[Z9w]=[];}N21.s$9(29);n42[N21.v$j("0",64)]=parseInt(n42[0],10);n42[1]=parseInt(n42[1],10) || n42[1];n42[5]=u72(n42[5]);n42[+"6"]=Q4m(n42["6" >> 32]);a1P.rules[Z9w].push(n42);break;case i7I:if(a1P.zones[n42[+"1"]]){N21.O_b(67);var C8u=N21.v$j(17,19,18,15);throw new Error("Error with Link " + n42[C8u] + ". Cannot create link of a preexisted zone.");}if(isNaN(n42[0])){a1P.zones[n42[+"1"]]=n42[+"0"];}else {a1P.zones[n42[1]]=parseInt(n42[0],10);}break;}}}N21.W3G();return !!"1";};this.transport=G0A;this.getTzInfo=function(N01,R8j,c2a){var A4C,Y2D,i5D,s$f;this.lazyLoadZoneFiles(R8j);A4C=o6z(N01,R8j);Y2D=+A4C[0];i5D=s7n(N01,A4C,c2a,R8j);if(i5D){Y2D=c_C(Y2D,i5D[6]);}s$f=i8r(A4C,i5D);return {tzOffset:Y2D,tzAbbr:s$f};};function i8r(c9Y,g0l){var r_p,I7c,H9M;r_p="%";r_p+="s";I7c=c9Y[+"2"];if(I7c.indexOf(r_p) > -+"1"){if(g0l){H9M=g0l[7] === "-"?"":g0l[7];}else {H9M=512.66 < (934.84,4900)?(+"661",5188) <= 8420?"S":(0x1109,278.00):(0x5a1,726.66);}return I7c.replace("%s",H9M);}else if(I7c.indexOf(1390 > 908.04?(548.92,1303) == 400.41?(0x1784,0x13e0):293.99 > ("850.87" - 0,239)?"/":"l":(582.47,6.67e+3)) > -+"1"){return I7c.split("/",+"2")[g0l?g0l[6]?1:0:0];}return I7c;}this.lazyLoadZoneFiles=function(r6_){var s4X;if(this.loadingScheme === this.loadingSchemes.LAZY_LOAD){s4X=S88(r6_);if(!s4X){throw new Error("Not a valid timezone ID.");}this.loadZoneFiles(s4X);}};})();}).call(typeof window !== g6y?window:this);R6B=399317235;n5r=1545134630;N0K=2;for(var p2W=1;N21.m6F(p2W.toString(),p2W.toString().length,35873) !== R6B;p2W++){l5Y.timezone.loadingScheme=l5Y.timezone.loadingSchemes.MANUAL_LOAD;N0K+=2;}if(N21.l5h(N0K.toString(),N0K.toString().length,"92836" * 1) !== n5r){l5Y.timezone.loadingScheme=l5Y.timezone.loadingSchemes.MANUAL_LOAD;}l5Y.timezone.loadZoneDataFromObject({zones:{"Atlantic/Cape_Verde":[[60,(473.11,965.66) > (2370,5050)?(8.43e+3,!!""):6580 !== ("453" * 1,39.13)?("79.33" * 1,450.81) < (+"891.3",444.84)?(9.25e+3,0x16a):"-":(!!0,1.01e+3),"-01",null]],"Africa/Cairo":[[-120,"Egypt","EE%sT",null]],"Africa/Nairobi":[[-180,"-","EAT",null]],"Africa/Casablanca":[[0,"Morocco","+00/+01",1540695600000],[-60,"Morocco","+01/+00",null]],"Africa/Windhoek":[[-120,d5a,"%s",null]],"Africa/Johannesburg":[[-120,"SA","SAST",null]],"Africa/Tunis":[[-60,"Tunisia",K8j,null]],"Antarctica/Troll":[[0,"Troll","%s",null]],"Asia/Kabul":[[-270,"-","+0430",null]],"Asia/Baku":[[-240,X5y,"+04/+05",null]],"Asia/Dhaka":[[-360,G6_,z3m,null]],"Asia/Yangon":[[-390,(250,5710) !== (6540,9209)?"-":(683,6.55e+3),"+0630",null]],"Asia/Shanghai":[[-480,"PRC",R8s,null]],"Asia/Hong_Kong":[[-480,U4m,"HK%sT",null]],"Asia/Taipei":[[-480,"Taiwan","C%sT",null]],"Asia/Nicosia":[[-120,"EUAsia",x3q,null]],"Asia/Kolkata":[[-330,960.87 > 673?"-":4.68e+3,"IST",null]],"Asia/Tehran":[[-("210" | 18),q16,"+0330/+0430",null]],"Asia/Jerusalem":[[-+"120","Zion","I%sT",null]],"Asia/Tokyo":[[-540,"Japan","J%sT",null]],"Asia/Amman":[[-("120" >> 64),q5m,P1g,null]],"Asia/Almaty":[[-360,7530 < (513,656)?38.24:(434.72,3020) > ("5460" >> 64,928.64)?"-":+"8.90e+3","ALMT",null]],"Asia/Seoul":[[-540,E9a,"K%sT",null]],"Asia/Pyongyang":[[-+"510",5490 > 934.71?("3530" >> 0,5683) !== (1490,405.14)?"-":+"520":!0,"KST",+"1525476600000"],[-540,"2089" * 1 < (+"740.67",7221)?"-":("7860" ^ 0,"8401" << 32) === 4980?0xac0:(!!1,0x2685),"KST",null]],"Asia/Beirut":[[-("120" | 32),"Lebanon","EE%sT",null]],"Asia/Kuala_Lumpur":[[-480,"-","+08",null]],"Asia/Hovd":[[-420,"Mongol","+07/+08",null]],"Asia/Ulaanbaatar":[[-480,"Mongol","+08/+09",null]],"Asia/Kathmandu":[[-+"345",1320 <= (7640,+"932.17")?(5.70e+3,7.72e+3):"-","+0545",null]],"Asia/Karachi":[[-300,"Pakistan","PK%sT",null]],"Asia/Hebron":[[-+"120","Palestine",g8c,null]],"Asia/Riyadh":[[-180,"-",Y$3,null]],"Asia/Damascus":[[-120,H1Q,"EE%sT",null]],"Asia/Bangkok":[[-420,+"882" === 527.11?479.39 != (652.34,149)?652.67:(0xf7e,"e"):"-","+07",null]],"Asia/Dubai":[[-240,"-","+04",null]],"Australia/Darwin":[[-570,"Aus","AC%sT",null]],"Australia/Perth":[[-+"480",z_O,"AW%sT",null]],"Australia/Eucla":[[-525,K8$,"+0845/+0945",null]],"Australia/Brisbane":[[-600,"AQ","AE%sT",null]],"Australia/Adelaide":[[-("570" * 1),"AS","AC%sT",null]],"Australia/Hobart":[[-600,"AT","AE%sT",null]],"Australia/Melbourne":[[-+"600","AV","AE%sT",null]],"Australia/Sydney":[[-600,"AN","AE%sT",null]],"Australia/Lord_Howe":[[-630,"LH","+1030/+11",null]],"Pacific/Fiji":[[-720,I$z,"+12/+13",null]],"Pacific/Guam":[[-600,+"151.11" === (887.81,953.86)?"7420" - 0 < 10.5?(!![],3.02e+3):8426 == (+"59.79",52.26)?"e":("E",!![]):"-","ChST",null]],"Pacific/Kiritimati":[[-840,(2380,7740) != (4880,811)?"-":(5600,266.97) > (949,"7.33" - 0)?(9.16e+2,679.51):524.08,"+14",null]],"Pacific/Noumea":[[-660,"NC","+11/+12",null]],"Pacific/Auckland":[[-720,"NZ",o1y,null]],"Pacific/Chatham":[[-765,Y4g,O$l,null]],"Pacific/Pago_Pago":[[660,("5940" ^ 0,1520) === (+"9440",926.02)?(+"3186",797.69) == (77.43,+"714.16")?(9.67e+3,"i"):(0x1f93,"f"):"-","SST",null]],"Pacific/Apia":[[-780,"WS","+13/+14",null]],"Pacific/Tongatapu":[[-780,F6D,"+13/+14",null]],"Etc/UTC":[[0,(6520,3906) == (+"9718",9670)?"d":"-","UTC",null]],UTC:F71,"Europe/London":[[0,T9x,B_4,null]],"Europe/Dublin":[[0,V$5,"IST/GMT",null]],WET:[[0,q8j,"WE%sT",null]],CET:[[-+"60","C-Eur",O_k,null]],MET:[[-("60" ^ 0),"C-Eur","ME%sT",null]],EET:[[-+"120","EU","EE%sT",null]],"Europe/Brussels":[[-60,"EU","CE%sT",null]],"America/Thule":[[240,"Thule",y9O,null]],"Europe/Helsinki":[[-120,"EU",s3a,null]],"Europe/Paris":[[-("60" | 8),"EU",g93,null]],"Europe/Berlin":[[-60,"EU","CE%sT",null]],"Europe/Amsterdam":[[-60,"EU","CE%sT",null]],"Atlantic/Azores":[[60,"EU","-01/+00",null]],"Europe/Bucharest":[[-120,"EU","EE%sT",null]],"Europe/Kaliningrad":[[-+"120",6629 > 63.32?6730 != (6080,8820)?("284.23" - 0,+"743.16") <= "9640" >> 0?"-":(0x25c3,"A"):(![],9.48e+3):"i",L_r,null]],"Europe/Moscow":[[-180,("1382" ^ 0) === (+"9365",864)?"737.43" - 0 !== (3233,340.42)?4630 > (735.09,173.01)?"a":4.37e+3:756.32:"-",N9I,null]],"Europe/Volgograd":[[-180,(9150,8529) == ("4523" ^ 0,341.67)?!!0:"-",t5D,1540692000000],[-240,944 > (8250,914.86)?("120.65" - 0,+"3528") > (8393,1308)?"-":1607 == ("5441" >> 32,+"2400")?"0xc22" >> 32:(9.92e+3,297.30):"L","+04",1609034400000],[-180,(+"8260","5431" - 0) >= 7880?!({}):(+"859.07",428.96) < (32,2518)?"-":(4219,334) < (605.67,9037)?7.50e+3:(1.15e+3,0x1a41),"+03",null]],"Europe/Samara":[[-+"240",("186" << 0,"8570" << 64) !== (4049,424.9)?1588 != 896.92?3343 >= "1914" >> 0?"-":(276.00,420.51):"X":(+"0x71f",0x217d),"+04",null]],"Asia/Yekaterinburg":[[-300,"-","+05",null]],"Asia/Omsk":[[-("360" | 0),6700 <= (+"8700",7535)?"-":(+"310.70",!![]),n01,null]],"Asia/Novosibirsk":[[-420,6850 == 260.8?(763.79,!!1):"-","+07",null]],"Asia/Novokuznetsk":[[-420,"-","+07",null]],"Asia/Krasnoyarsk":[[-420,(488.58,9300) == (402.73,726.27)?(495.87,884.80):(+"5766",394.26) >= (212.05,+"471.04")?(5098,860.28) != (8640,853.04)?!!({}):(587.93,!!1):"-",f8C,null]],"Asia/Irkutsk":[[-480,"-",s4B,null]],"Asia/Yakutsk":[[-540,"-","+09",null]],"Asia/Vladivostok":[[-+"600",(9443,4260) > (4150,6340)?0xfff:4340 === 388.54?(451.36,780) >= +"183.27"?(!!1,0xc2b):123.70:"-",H$3,null]],"Asia/Magadan":[[-+"660",+"3970" === ("999.47" - 0,1368)?4410 >= (324,150.32)?(2065,9830) >= 1010?0xe5b:8.01e+3:922.02:"-","+11",null]],"Asia/Srednekolymsk":[[-660,(614,5540) !== (6365,"3440" - 0)?"-":(!!1,"9.70e+3" * 1),q8U,null]],"Asia/Kamchatka":[[-720,"-","+12",null]],"Europe/Belgrade":[[-60,"EU","CE%sT",null]],"Europe/Sarajevo":"Europe/Belgrade","Europe/Istanbul":[[-180,(937.53,356.38) > (+"8290",439.64)?(!0,+"0x7f9"):"-","+03",null]],"America/New_York":[[300,"US",l1b,null]],"America/Chicago":[[360,"US","C%sT",null]],"America/Denver":[[420,"US","M%sT",null]],"America/Los_Angeles":[[480,r6h,K2H,null]],"America/Juneau":[[+"540",q0N,"AK%sT",null]],"Pacific/Honolulu":[[600,"-",Z3$,null]],"America/Phoenix":[[420,(2170,4800) === +"6220"?!![]:"-","MST",null]],"America/St_Johns":[[210,"Canada","N%sT",null]],"America/Halifax":[[240,v0F,"A%sT",null]],"America/Regina":[[360,"-","CST",null]],"America/Mexico_City":[[360,"Mexico","C%sT",null]],"America/Chihuahua":[[420,K2T,f5a,null]],"America/Costa_Rica":[[360,"CR","C%sT",null]],"America/Havana":[[300,r1U,"C%sT",null]],"America/Port-au-Prince":[[+"300","Haiti",O1L,null]],"America/Panama":[[300,(+"1971",851.21) !== 103.16?(4040,390.39) <= (1745,7629)?"-":(8572,754.59) > 9260?510.78:5.57e+3:("4.69e+2" >> 0,"p"),"EST",null]],"America/Puerto_Rico":[[+"240","840.61" - 0 < ("817" >> 0,8046)?"-":(!!1,!!""),"AST",null]],"America/Argentina/Buenos_Aires":[[180,"Arg","-03/-02",null]],"America/Sao_Paulo":[[180,"Brazil","-03/-02",null]],"America/Santiago":[[240,o$3,"-04/-03",null]],"America/Punta_Arenas":[[240,"Chile","-04/-03",1480809600000],[180,"-",S4s,null]],"America/Bogota":[[300,"CO","-05/-04",null]],"America/Asuncion":[[240,"Para","-04/-03",null]],"Atlantic/South_Georgia":[[120,9639 <= (2913,815.75)?(0xcd,0x2409):4470 < (2900,8130)?"-":(728.95,794.27) <= 7500?0x1049:(0x1da0,762.58),j1K,null]],"America/Montevideo":[[180,"Uruguay",O3M,null]],"America/Caracas":[[240,6000 >= 8210?(1390,7825) >= 296.48?(4433,+"1234") === (399.07,4530)?(650.02,0x13ac):0x2262:("O",1.20e+3):"-","-04",null]],"Europe/Athens":"Europe/Bucharest","Europe/Simferopol":"Europe/Moscow","Asia/Rangoon":"Asia/Yangon","Atlantic/Reykjavik":"UTC","Asia/Kuwait":"Asia/Riyadh","Asia/Muscat":"Asia/Riyadh","Asia/Istanbul":"Europe/Istanbul"},rules:{Egypt:[],Morocco:[["2013" ^ 0,2018,853.85 < 103.07?(5.52e+3,"l"):"-","Oct","lastSun",[3,+"0",0,null],"0" >> 32,9245 !== (1910,9940)?(893.19,326) === (2340,7588)?("8230" >> 0,6986) >= 5140?(0x679,896.21):(8.68e+3,"I"):"-":(!![],0x24b3)],[2014,"2018" ^ 0,7150 == (512.88,9360)?7450 == (9360,4950)?3.69e+3:"v":"-",x1n,"lastSun",[2,0,0,null],"60" ^ 0,559.11 > (3820,6912)?(6.00e+2,4.55e+3):"-"],["2017" - 0,"only","-","May","21",[3,0,0,null],0,"4597" << 64 !== (952.54,875)?(5360,671.02) < (83,322.61)?(0x16a8,"b"):"-":5.35e+3],[2017,"only",1693 <= (746.25,689.38)?"5.96e+3" << 64:972.36 == (645.34,"5700" << 64)?!({}):"-",E5T,(6400,443.92) >= (1520,"973.69" * 1)?(!!({}),"u"):"2",["2" ^ 0,+"0","0" >> 32,null],+"60","-"],[2018,"only",(3418,5745) === (5749,3520)?945.46:"-",U$1,f7L,[3,0,0,null],+"0",(8700,5295) !== (3723,74.97)?"-":(5690,937.15) >= 586.6?6555 >= 7090?0x1254:(883.02,!1):!![]],[2018,"only",(1780,367.17) > 329.93?"-":974.11,l8k,"17",[2,0,"0" << 96,null],60,581.02 === ("7740" << 0,228)?(998.48,"e"):775.87 !== 2730?"-":!!({})],[2019,"only",(7130,605.76) > 525.74?"-":("3971" ^ 0,747.41) != 353.56?(7608,5320) >= (924.77,3370)?0x17eb:(!!"1","5.48e+3" * 1):3.81e+3,"May","5",[3,0,0,null],-("60" >> 32),"-"],[2019,H3r,9600 == (835.09,+"9872")?894.51:+"778.82" > 986.38?("1.29e+3" - 0,!![]):"-",p0N,278.08 < (6430,"6070" * 1)?(4500,"4395" | 33) == +"4000"?(!"",7.83e+3):"9":(!"",0x1574),[2,0,0,null],0,113.73 != (+"471.23","3350" * 1)?"-":(7.00e+3,+"0x175a")],[2020,"only","-",S5M,"19",[3,0,0,null],-+"60",2030 > 258?(2080,486.71) <= 1277?(5297,+"804.83") !== 308.73?"-":7.88e+3:"C":!!""],["2020" ^ 0,"only",3453 != (+"824.61",9762)?(9570,78) != (2360,252.16)?(2770,871.96) == 7220?"s":"-":("M",583.29):(0x145e,565.87),"May",t2c,[2,0,0,null],0,("7810" ^ 0) != (958.69,803.44)?"-":312 >= 5832?(103.39,2.67e+3):!({})],["2021" << 0,"only",958 === (3680,370)?898.51 >= ("5600" | 0)?(!"1","r"):!!({}):"-",x14,"11",[3,0,+"0",null],-60,"-"],[2021,"only","-","May","16",[2,0,0,null],0,"-"],["2022" ^ 0,"only","-","Mar","27",[3,0,+"0",null],-60,"803.9" - 0 != 1770?526 != (1942,233.34)?"-":"J":0xab8],[2022,O74,"-",y7G,"8",[2,0,0,null],"0" << 64,("355.64" - 0,300.79) !== "7070" << 32?(1875,508.13) === 760.18?("k",+"0x269a"):"-":("R",0x7ca)],[2023,W5Y,36.14 < 703.04?("405.88" - 0,4262) >= 4436?497.92 !== 890.66?(![],"0x1e6a" | 32):(7.63e+3,0x24e8):"-":622.00,"Mar","19",[3,0,"0" << 32,null],-60,(920.62,"3038" ^ 0) == 9170?116.23:393.74 <= 806.68?"-":7980 !== (741,"430.31" - 0)?("0xb17" >> 0,982.37):(0xa0,118.41)],[2023,b19,("221.71" - 0,6041) != (649.29,8540)?"-":570.03,R8V,"30",[2,0,0,null],0,"-"],[2024,"only",+"415.94" == "708" >> 96?8663 !== 1140?67.18:(!![],!![]):"-","Mar","10",[3,0,0,null],-60,362.71 >= (7350,874.39)?6860 !== (3508,761)?598.56 != (887.66,"438.75" * 1)?("S",!![]):4.06e+3:0x2580:"-"],[2024,"only",("767.64" - 0,9728) <= (9700,174.25)?(!!1,!1):(244.48,396.68) != 4190?"-":0x113b,"Apr",P84,[2,0,0,null],"0" ^ 0,"-"],[2025,"only",836.47 < (7531,6150)?"-":(598.12,666.99) <= 5570?(6532,"9050" | 16) > ("6310" - 0,"495" - 0)?("H",1.57e+3):(809.56,9.93e+3):9.11e+3,"Feb",O5a,[3,+"0",0,null],-60,6970 <= (244.27,673)?(257.14,9975) <= 9992?(5.21e+3,0x437):102.20:"-"],[+"2025","only",249 > (+"6006",132.86)?"-":"3228" << 0 >= (7960,3940)?("T","g"):(631.42,+"0x19ef"),"Apr",8408 == 218.46?(1.40e+3,"f"):(7390,"7620" >> 32) === 3062?(345.75,0x23ea):4127 <= 5970?"6":(0x3fa,!!1),[2,+"0",0,null],0,(6028,213.84) > 428?("1.90e+3" << 32,770.21):"-"]],Namibia:[[1994,"2017" << 32,842.86 !== 3540?"-":353 < 626?(!({}),"j"):("0x1c9d" ^ 0,3.40e+3),"Sep","Sun>=1",["2" | 2,0,0,null],"0" - 0,"CAT"],[1995,"2017" - 0,(172.94,781.48) != (388,2554)?3940 != 9419?"-":!"1":+"5.78e+3","Apr","Sun>=1",["2" >> 0,0,"0" - 0,null],-60,S8A]],SA:[],Tunisia:[],Troll:[[2005,"max",670.45 === 78.44?(601.22,8040) == (27.92,3849)?!0:(!!0,858.77):"-",x1h,"lastSun",[1,0,+"0",6655 == 249?("S",0x1b19):"u"],120,"+02"],[2004,D1l,(213.37,2960) === (4049,8290)?(232.15,216.77):946.35 !== 73.53?"-":766.56 < 1870?0x1a93:(0x19f4,!!0),"Oct","lastSun",[+"1",0,"0" ^ 0,"u"],0,"+00"]],EUAsia:[[1981,w_r,"-",x3H,d5q,[1,0,0,("6040" ^ 0,"8609" - 0) != ("3573" | 32)?"u":0x2232],60,"S"],[+"1996",p$a,519.79 !== (652.79,528.09)?"-":9640 != "454.61" * 1?490:(4.89e+3,883.05),"Oct","lastSun",[+"1",0,+"0","u"],0,951.89 >= (326,8468)?2689 > 644?+"5.32e+3":0x85b:"-"]],Azer:[],Dhaka:[],PRC:[],HK:[],Taiwan:[],Iran:[[2017,+"2019","-","Mar","21",[24,0,0,null],+"60","-"],[2017,2019,"-","Sep",x_H,[24,0,0,null],0,3823 <= (537,1616)?+"6.72e+3":("4520" ^ 0,7283) >= 2930?+"7663" === 99.01?("3.10e+3" - 0,!!({})):"-":("G",287.92)],[2020,"only",180.43 === (+"857.41",4769)?!!"1":(556,525.6) <= (6280,5697)?"-":(+"7470",8440) == (9560,960.36)?!![]:(24.43,1.34e+3),P0x,"20",[24,0,0,null],60,(3290,329.54) > 9428?(1600,"9420" * 1) <= 913?(![],"F"):"7331" >> 64 < "4340" << 32?(353.50,6.36e+3):![]:"-"],[2020,"only","-","Sep","20",[24,0,0,null],0,("9740" | 0,"715.38" * 1) === 4850?1760 < 177?(9.61e+3,85.36):("L",+"0x12f8"):"-"],[2021,2023,"-","Mar","21",[+"24",0,"0" << 64,null],60,(151,4550) <= (155.93,+"484")?!!1:"-"],[2021,2023,"-","Sep",y5Z,[24,"0" * 1,0,null],+"0","-"],[+"2024","only","-",s4A,"20",["24" << 96,"0" | 0,0,null],60,(318.99,801) <= 3240?2390 < (387.1,8684)?(848.15,7882) <= (+"74.17","8164" >> 64)?"-":!!1:("b","V"):884.28],[2024,l2_,"8703" - 0 >= 194.69?3680 != (2960,503.77)?(794,+"4606") == 8142?(!({}),859.05):"-":(!![],"P"):("P",!![]),"Sep","20",[24,0,+"0",null],+"0","-"],[2025,2027,(643.48,+"546.53") < ("8600" * 1,499.65)?"301.67" - 0 === (472.16,+"6664")?"z":"362.84" * 1:"-","Mar",I0u,[24,0,0,null],60,"-"],[2025,2027,(65,475.79) > (6280,482)?(+"588.46",553.44) > (7654,7560)?("v",622.08):("i",0x797):"-","Sep",r_d,[24,0,0,null],0,(2110,+"2974") != (387,+"261.47")?"-":799.1 !== (333,4690)?564 >= 952.44?(0x102a,0x1260):(0x17f7,0x23ef):(89.90,!!"1")]],Zion:[[2013,"max",(697.23,368.95) !== (901.23,9650)?"-":("u",!1),I7M,"Fri>=23",["2" - 0,0,+"0",null],60,1120 == (7869,5370)?0xf6b:(586.31,9323) != (4777,2420)?"D":(0x1554,"e")],["2013" ^ 0,"max",4661 > ("3040" >> 64,2920)?"-":(255.95,5125) >= (5893,"262.26" - 0)?(2.16e+3,"0x1997" >> 64):(773.55,!1),A7B,"lastSun",[2,0,0,null],0,"S"]],Japan:[],Jordan:[[2014,"max",1234 !== "3190" - 0?(505.69,9090) >= 1.86?("4700" ^ 0,5610) != (2510,990)?"-":(290.80,!({})):300.51:(0x1e4b,8.70e+3),y89,E2$,[24,0,0,null],60,"S"],["2014" * 1,"max",41.83 > (2520,609.87)?("p","8.24e+2" - 0):"-","Oct",b$R,[0,0,0,60.64 == (880.82,4938)?(5400,394.95) !== (782.36,"9721" | 8)?(4123,586.49) >= (3147,928.96)?0x82b:(0xcac,0x1b40):("0x26ed" * 1,0x703):"s"],0,(2310,+"264.59") < 102.46?(!!0,0x1d93):(1230,6969) !== "499.06" - 0?5657 < 103.06?(!!0,"A"):"-":!({})]],ROK:[],Lebanon:[[1993,c9b,(7820,6948) === (3540,9961)?9991 >= (+"974.83","3178" * 1)?(3850,2960) <= (8130,+"542.7")?(421,"g"):(!"1","a"):450.11:"-","Mar","lastSun",[0,0,0,null],60,"S"],["1999" >> 64,"max",76.65 != 3390?(7130,3270) === (1920,3992)?6.78e+3:"-":(0x1f49,"Z"),"Oct","lastSun",[0,0,0,null],0,"-"]],Mongol:[],Pakistan:[],Palestine:[[2016,"2018" * 1,"-",w8v,N$l,["1" >> 64,0,0,null],60,7994 > 6430?"S":+"7468" === (897,+"50")?"P":7300 < (3540,5840)?(0x865,221.93):6.39e+3],[2016,2018,"-","Oct",J9S,[1,0,0,null],"0" * 1,("651" ^ 0,4413) !== (3941,78.98)?187.88 >= ("6487" - 0,686.79)?+"4.85e+3":"-":(!![],"5.78e+3" | 4)],[2019,"only",("691.67" * 1,2121) != (159.05,7200)?"-":128.35,E2o,"29",[0,0,"0" >> 64,null],60,198 === 1890?!!({}):"S"],[2019,k24,(182.63,+"1320") >= (33.53,8207)?124.31:"-",D5t,"Sat>=24",["0" | 0,"0" << 0,0,null],60,(598.45,9770) >= ("264.61" - 0,2055)?"-":(3536,703) === 118?("i",+"0x2632"):("O",0x1719)],["2020" ^ 0,x1S,"-","Mar","Sat>=24",[0,0,0,null],60,"S"],["2020" | 64,"max",3390 === "9470" * 1?"J":"-","Oct","Sat>=24",[1,0,0,null],60,1360 <= ("4448" | 0)?"-":385.64 < (696.32,7336)?0x2553:(+"6.34e+2",!![])]],Syria:[[2012,"max",(7039,8470) <= 8685?"-":("0x19bf" * 1,957.42),"Mar","lastFri",[0,+"0",0,null],60,(1990,249.36) <= +"38.08"?0x1a32:"S"],[2009,"max","-",W4T,"lastFri",[0,0,0,null],0,727 != 4910?"-":316.83 == 7450?144.12:0x1a20]],Aus:[],AW:[],AQ:[],AS:[[2008,x60,(8450,+"192.77") == (8790,7760)?3750 > (342.32,5654)?!"":0x7f9:"-",y6S,C0F,[2,+"0",0,(7835,318) > 322.27?809.25 == (929.99,4940)?(+"0x19bf",0x2502):("m",![]):"s"],0,1450 != (465.53,+"141")?523.78 >= 9501?5890 <= +"631.31"?(+"0x17b4","v"):(0xf0e,760.03):"S":("U",766.15)],[2008,u9$,"-","Oct","Sun>=1",[2,0,0,(398.59,469.97) !== 5906?5143 === (+"8790",+"667.72")?!!({}):"s":!!({})],"60" ^ 0,5170 > (456.88,4750)?"D":(86,3670) >= 3470?+"992" > 3040?(0xdc9,8.64e+3):0x258c:"a"]],AT:[[2001,"max",(+"246.74",5260) == (7502,"8499" >> 32)?(+"0x13f0",627.64):6220 != (7885,514.26)?"-":+"934.15" < 531.06?(0x2425,"P"):0x1769,"Oct",G_v,[+"2","0" - 0,0,"s"],"60" >> 64,(5020,4600) <= (2355,6342)?+"758.3" !== (+"8352",7114)?(2490,5936) <= 2?(+"304.43","J"):"D":(!"1","a"):706.99],[2008,"max",(8289,216.65) < 8547?"-":(!"1",920.19),C1a,"Sun>=1",[2,0,0,"s"],0,(272.74,784.51) <= (37.31,3661)?"S":2726 > +"5581"?!!0:7263 !== (2150,54)?"m":("l",!!"1")]],AV:[[2008,"max","-","Apr","Sun>=1",[2,0,0,(5770,1039) !== (504.26,287.13)?"s":(689.32,1460) > 6987?"L":139.57 > (5600,4250)?(+"0x187c",0x248a):![]],0,2431 !== ("454.34" * 1,201.72)?7260 !== (7440,460.23)?"S":!({}):(0x2eb,2.99e+3)],[2008,"max",8794 > (536.51,3810)?"-":(0xcca,8.52e+3),"Oct","Sun>=1",[2,0,0,398.3 <= 7993?(54.98,6970) !== (5234,+"392.34")?"s":(!!"",5.24e+3):0x123a],60,"D"]],AN:[[2008,"max",616.32 == (8630,"5460" - 0)?!![]:"-",l9t,"Sun>=1",[2,"0" ^ 0,0,1889 !== 5400?"s":(233.41,878.08) != "2270" << 32?80.48:("0x21fd" >> 64,"d")],0,(634.38,+"6774") > (9450,913)?("336.45" - 0,1275) !== (5549,949.08)?(9678,101.72) != (+"2780",657.14)?"S":"k":("f",7.86e+3):"d"],["2008" * 1,"max",("2440" >> 96,787.97) == (765.81,8096)?("j",0x2135):"-","Oct","Sun>=1",[2,0,0,"s"],60,(573,6670) == (+"671",6917)?("2690" | 0,4950) != 6357?436.76:(![],0x1ac7):"D"]],LH:[[2008,"max",(1180,+"3667") == (4776,2950)?(8.78e+3,0x170a):"-","Apr",E8A,[2,"0" * 1,0,null],0,(519.64,281) > 8810?193.94:910.82 <= (586.15,363.87)?(!!({}),"4.31e+3" * 1):"-"],[2008,"max",(9670,3811) == 1580?(!({}),"704.50" * 1):"-","Oct",F3M,[2,0,0,null],"30" | 12,(+"250",9506) >= (9720,9110)?"-":825.6 >= 857.75?"S":"E"]],Fiji:[[2014,2018,("3696" - 0,"160" << 0) === 784?(2933,8197) <= (429.42,114.92)?(0x148e,!1):+"9164" >= +"610.86"?(![],"188.47" * 1):7.03e+2:"-","Nov",k1W,[2,0,0,null],+"60","-"],["2015" * 1,"max",5028 < (6108,5797)?"-":(+"8.68e+3",0x1448),"Jan","Sun>=12",[+"3",0,0,null],0,"-"],[2019,"only",("594.66" - 0,569.1) === 7438?(!!"1",0x2266):"-","Nov","Sun>=8",[2,0,0,null],60,(6070,+"615.89") !== (7086,435.1)?"-":(498.32,!!({}))],[2020,i0W,"-","Dec",P1k,[2,0,"0" >> 64,null],+"60","-"],[2021,"max",686.6 !== (8530,"9100" >> 32)?(4559,2270) <= 2386?"-":("k","H"):0x1b4b,C6p,i_p,[2,"0" << 64,0,null],60,+"188.27" > 126.4?"-":5.21e+3]],NC:[],NZ:[[2007,"max",("6715" ^ 0) >= (746.69,7960)?(709.44,9441) >= (+"2130",6611)?"T":!({}):"-","Sep","lastSun",[2,+"0",0,"s"],60,"D"],[2008,F_1,6110 < (5449,"487.36" - 0)?(386.31,4.44e+3):292.39 > 2795?("8007" << 96,4) >= (+"4622",2434)?!"1":("A",5.36e+3):"-","Apr","Sun>=1",[2,+"0",0,"s"],"0" << 32,(2296,7730) != (708,616)?3764 < (9798,5326)?"S":("366.44" * 1,58.62):(!![],0x1e40)]],Chatham:[[2007,"max","-","Sep","lastSun",[2,45,0,(7480,5417) <= 8210?"s":(0x1026,"602.42" - 0)],60,(261.87,+"445") > "14" * 1?"-":(2,4819) >= 3980?(376.48,!!0):("0x1e46" * 1,0x9a9)],["2008" << 64,"max",6680 === 536.52?(!({}),"G"):(7018,8364) <= 4040?7.78e+3:"-","Apr","Sun>=1",[2,45,"0" | 0,(3990,7430) < "764.76" - 0?25.02 != (124.97,+"8840")?"3600" * 1 > (7580,9060)?0x21ea:(239.77,375.05):!!"":"s"],0,7593 == 501.37?"0x3f0" ^ 0:"-"]],WS:[[2012,"max",8791 < 8950?"5010" * 1 > (7680,7870)?723.16 >= ("774.2" - 0,4660)?(261,0x1dd2):"3.16e+3" ^ 0:"-":4.81e+3,"Apr",W4C,[+"4",0,0,null],0,"-"],[2012,"max",440.6 > 863?(!!"","S"):4799 <= ("9800" >> 32,1940)?(9.81e+3,!![]):8110 <= 3390?(+"5.89e+3",0x2570):"-",t6Y,"lastSun",[3,+"0",0,null],60,"-"]],Tonga:[[2016,"only","-","Nov","Sun>=1",[2,0,0,null],+"60",(754.88,4284) === (4701,"5410" << 64)?(!!0,+"168.39"):(684.86,2260) > (718,+"595.43")?"-":(!![],!"")],[2017,"only",(6260,+"6822") >= (934.69,2582)?938.8 === (342.99,316.81)?(939.21,!({})):"-":"V","Jan","Sun>=15",[+"3","0" * 1,0,null],0,"-"]],Eire:[[1981,"max",807.91 > (+"5461","478.14" - 0)?(8879,3520) < (+"6760",533)?(873.85,51.24):+"388.98" !== 4590?"-":(346.84,"B"):("0x8dc" << 32,!({})),O6V,"lastSun",[1,+"0",0,"u"],0,988 < (5510,7510)?"-":(3770,3173) == (907.45,645.01)?(!!"1",9.21e+3):(591.97,1540) != "917.07" * 1?"p":"k"],[1996,"max",(5380,9990) > (946.4,1450)?(848,"374" * 1) < 5370?"-":797.66:(+"976.58",0x1931),"Oct","lastSun",["1" - 0,0,0,6468 != 2394?"u":64.99],-60,+"322" > (4370,433.06)?7480 === (8870,7630)?!0:!!"1":"-"]],EU:[[+"1981","max","-","Mar","lastSun",[1,0,0,("2240" | 0) >= 399?8002 == 340.56?(189.18,"h"):196 < (18.84,1216)?"u":(0x24,0x246):(5.22e+3,"6.91e+3" * 1)],60,440.28 === 898.48?631.71 != 9440?+"351.93" === 4900?396.87:(!1,!!""):(!!({}),"147.05" - 0):"S"],[1996,"max",7.55 < (3690,152.46)?(9250,47) > (810.69,4650)?(769.87,757.95) <= (+"2020",+"4987")?![]:7.17e+3:"-":("r","t"),o1M,"lastSun",[1,0,0,10.08 === (188.19,"803.16" * 1)?!({}):5630 === 8580?+"9.57e+3":"u"],0,(5546,8243) == (110.82,366)?(4.75e+3,"e"):"-"]],"C-Eur":[[1981,"max",(525.24,8400) <= (3646,+"4040")?("5870" << 0,558.52) != 3660?!![]:"0x2af" | 5:"-","Mar","lastSun",[2,0,0,2740 < (7790,863.19)?(226.32,8500) <= (675.96,3814)?(0x2406,"0x75f" * 1):644.97 < "365.98" - 0?(![],896.28):!"1":"s"],60,1440 < 1992?"S":"94.68" - 0],[+"1996","max","-","Oct","lastSun",[2,0,0,556.78 <= 3271?"s":109.74],0,"-"]],Thule:[[2007,M7J,7460 >= 7070?"-":(2.60e+3,![]),v3$,"Sun>=8",[2,"0" | 0,"0" - 0,null],60,"D"],[2007,"max",(7491,8390) >= (2575,+"7380")?"-":(1903,+"492.26") === (5892,"5820" << 32)?"b":(3410,7550) < 4047?("g",!!""):0x1316,"Nov","Sun>=1",[2,0,+"0",null],0,824.94 != 5970?"S":("2.32e+3" << 32,0x15c0)]],US:[[2007,"max",5621 == (134.08,722.71)?991.68:2050 >= (9000,"4860" ^ 0)?("Z","7.19e+3" - 0):(+"7260",4890) > 5080?"f":"-",k_T,"Sun>=8",[2,0,0,null],60,315.47 > 6000?(!!0,!!({})):"D"],[+"2007",N0g,(1030,+"3910") == (3613,725.27)?(!!1,!"1"):(522,6920) != (576.7,136.96)?(4756,+"9420") <= (+"2628",8729)?!![]:"-":165.89,"Nov","Sun>=1",[2,+"0","0" * 1,null],0,4340 === (9580,3530)?6.01e+3:"S"]],Canada:[[2007,w9h,1180 == 341.91?340.23:(6812,"6000" ^ 0) <= (8000,"681.41" - 0)?854 > ("229.29" - 0,108.98)?"e":(![],!![]):"-",n3D,"Sun>=8",[2,0,0,null],"60" >> 0,"D"],[2007,"max","-","Nov","Sun>=1",[2,0,0,null],0,"S"]],Mexico:[["2002" * 1,"max",339.6 == 320.15?(5730,2270) === 2960?("i",+"0x8cf"):6238 == 7250?+"660.67":30.74:"-","Apr",e9C,[2,0,0,null],60,(6320,6610) == (4100,"322" - 0)?!!"":"D"],[+"2002","max",593 <= ("542" | 16,"286.08" - 0)?(522,!({})):(8940,+"761.73") !== (1320,9300)?"-":"S","Oct","lastSun",["2" ^ 0,0,0,null],+"0",(8222,9340) != (822.71,+"455")?"S":(596.12,5960) !== 182.97?5593 < 4593?"E":"k":("j",!!"")]],CR:[],Cuba:[[2012,n6p,(2091,9454) !== 219.38?644.78 == "19.24" - 0?(9254,9158) == 4818?6.74e+3:!!0:"-":(711.10,!0),h6K,"Sun>=1",[0,0,0,"778.81" - 0 == (595.52,"2132" << 64)?3.98e+3:(616.64,6810) !== 502.75?"702.21" - 0 <= (196.5,289.99)?("0x243d" * 1,"I"):"s":"208.10" * 1],"0" - 0,2010 !== 997.58?"S":(1.51e+3,!!({}))],[2013,"max",(2612,7991) < 7410?(4581,8380) <= 256.05?(8.36e+3,0x215a):("4436" - 0,715.67) != 9940?!({}):!!"1":"-","Mar",j9r,[0,0,0,"s"],+"60","D"]],Haiti:[[2017,"max",("6700" | 8) < (451.96,2873)?"F":(+"136",384) != (257,914.17)?"-":(6360,753) !== 9241?(0x2449,+"4.22e+3"):0x2327,"Mar",O1M,["2" | 0,0,0,null],+"60","D"],[+"2017",r6W,(1358,69.42) === (9610,1100)?(6270,9859) == (2431,7260)?+"0x12bb":136.7 !== (422.9,3778)?(0x79d,34.93):("r",0x1e98):"-",A0f,T81,[2,0,0,null],"0" | 0,700 >= (4740,4855)?837.14:3160 >= 1862?"S":6657 == (+"2220",5450)?("h",!!"1"):(+"2.77","i")]],Arg:[],Brazil:[[2008,2017,"-","Oct",r1w,[0,0,0,null],"60" << 32,"-"],[2016,2019,195.84 === (6679,9333)?(+"8232",2701) > 618.58?2.75e+3:(8.22e+3,0x5c2):"-",X_u,"Sun>=15",[0,0,0,null],0,"-"],["2018" * 1,D9A,"-","Nov","Sun>=1",[0,0,0,null],"60" >> 0,("3840" ^ 0) == (7384,1000)?(932,"N"):"-"]],Chile:[[2016,"2018" >> 64,"-","May",I1R,[3,0,0,"u"],0,67.95 !== "603.57" - 0?(5312,5670) < 430.95?"f":8236 < 2974?20.66:"-":0xa9],["2016" >> 64,2018,(292,+"871") !== (410.92,179.64)?"-":"S","Aug","Sun>=9",[4,0,0,"u"],+"60",6684 != "945" * 1?(425,98) !== (1419,2400)?"3943" - 0 == 4538?"s":"-":"k":(259.35,0x19da)],[2019,"max","8939" >> 0 < 8310?0x175d:"-",A8f,"Sun>=2",[3,0,+"0","u"],0,+"344.38" === 478.13?8.36e+3:"-"],[2019,D4e,"-","Sep","Sun>=2",[4,0,0,("7666" - 0,825.06) >= +"5362"?("O",+"0x1dd8"):"u"],60,"-"]],CO:[],Para:[[2010,"max",8569 >= +"356.95"?"-":+"4.44e+3","Oct","Sun>=1",["0" ^ 0,0,"0" * 1,null],60,(9130,2808) >= (4882,530.23)?"-":(5500,"9984" << 64) > 4880?2430 != ("942.54" * 1,976.68)?+"0x13c5":0xbef:4.47e+3],[2013,"max",5627 < (7184,1100)?0x921:(4884,2053) < (428.53,+"2982")?"-":(!!0,!![]),q0S,"Sun>=22",[0,0,0,null],0,311.42 != (97,"6550" - 0)?"-":+"7740" < (8707,86.37)?(622.41,!!({})):(2240,8222) === 602.08?(748.31,!""):("k",!"")]],Uruguay:[]}});};q2=p4k=>{var W76,u5p;W76=typeof _CIQ !== "undefined"?_CIQ:p4k.CIQ;W76.ChartEngine.prototype.touchSingleClick=function(X$G,U43,J93){i6UVR.W3G();var O9d,t4k;O9d=this;t4k=arguments;return function(){(function(){var B71,v4E,S2z,x0F,D$a;if(!this.cancelTouchSingleClick){if(this.runPrepend("touchSingleClick",t4k)){return;}if(this.editingAnnotation){return;}this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};if(!this.displayCrosshairs){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(U43 < this.left || U43 > this.right || J93 < this.top || J93 > this.bottom){return;}B71=this.backOutY(W76.ChartEngine.crosshairY);v4E=this.backOutX(W76.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(B71);S2z=this.currentVectorParameters.vectorType;if(!W76.Drawing || !S2z || !W76.Drawing[S2z] || !new W76.Drawing[S2z]().dragToDraw){if(!this.drawingClick(this.currentPanel,v4E,B71)){f1u(this,U43,J93);}if(!this.currentVectorParameters.vectorType){x0F="t";x0F+="a";x0F+="p";D$a=this.activeMarker && this.activeMarker.click({cx:v4E,cy:B71,panel:this.currentPanel});if(!D$a){this.dispatch(x0F,{stx:this,panel:this.currentPanel,x:v4E,y:B71});}}}}this.runAppend("touchSingleClick",t4k);}).apply(O9d,t4k);};};W76.ChartEngine.prototype.touchDoubleClick=function(l_C,u2k,L9X){var R9N,C_N;R9N="do";R9N+="ubleTap";if(this.runPrepend("touchDoubleClick",arguments)){return;}if(this.editingAnnotation){return;}if(W76.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}f1u(this,u2k,L9X);C_N=this.activeMarker && this.activeMarker.doubleClick({cx:u2k,cy:L9X,panel:this.currentPanel});if(!C_N){this.dispatch(R9N,{stx:this,finger:l_C,x:u2k,y:L9X});}this.runAppend("touchDoubleClick",arguments);};W76.ChartEngine.prototype.startProxy=function(K1O){var D7j;D7j="tou";D7j+="ch";this.touchPointerType=K1O.pointerType;i6UVR.W3G();if(this.touchPointerType != D7j){this.mouseMode=!"";return;}this.mouseMode=![];this.touches[this.touches.length]={pointerId:K1O.pointerId,pageX:K1O.clientX,pageY:K1O.clientY,clientX:K1O.clientX,clientY:K1O.clientY};this.changedTouches=[{pointerId:K1O.pointerId,pageX:K1O.clientX,pageY:K1O.clientY,clientX:K1O.clientX,clientY:K1O.clientY}];if(this.touches.length == +"1"){this.gesturePointerId=K1O.pointerId;}this.touchstart(K1O);};W76.ChartEngine.prototype.moveProxy=function(g9R){var c36;c36="to";c36+="u";c36+="ch";if(g9R.pointerType && g9R.pointerType != c36){this.mouseMode=!![];return;}this.mouseMode=!({});this.touchmove(g9R);};function f1u(H6k,j4V,e5T){var G_x;if(!H6k.layout.crosshair){W76.ChartEngine.crosshairY=0;W76.ChartEngine.crosshairX=0;H6k.cx=H6k.backOutX(0);H6k.cy=H6k.backOutY(0);H6k.findHighlights(null,!![]);W76.ChartEngine.crosshairY=e5T;W76.ChartEngine.crosshairX=j4V;G_x=H6k.container.getBoundingClientRect();H6k.top=G_x.top;H6k.left=G_x.left;H6k.right=H6k.left + H6k.width;H6k.bottom=H6k.top + H6k.height;H6k.cx=H6k.backOutX(j4V);H6k.cy=H6k.backOutY(e5T);if(H6k.currentPanel && H6k.currentPanel.chart.dataSet){H6k.crosshairTick=H6k.tickFromPixel(H6k.cx,H6k.currentPanel.chart);H6k.crosshairValue=H6k.adjustIfNecessary(H6k.currentPanel,H6k.crosshairTick,H6k.valueFromPixel(H6k.cy,H6k.currentPanel));}H6k.headsUpHR();}H6k.findHighlights(!![]);i6UVR.W5N();H6k.draw();}W76.ChartEngine.prototype.endProxy=function(H1n){i6UVR.W3G();var L8z;if(this.touchPointerType != "touch"){this.mouseMode=!0;return;}this.mouseMode=![];L8z=this.touches.length;for(var F3h=0;F3h < this.touches.length;F3h++){if(this.touches[F3h].pointerId == H1n.pointerId){this.touches.splice(F3h,1);break;}}if(F3h == L8z){this.touches=[];this.grabbingScreen=![];this.touching=!"1";return;}this.changedTouches=[{pointerId:H1n.pointerId,pageX:H1n.clientX,pageY:H1n.clientY,clientX:H1n.clientX,clientY:H1n.clientY}];this.touchend(H1n);};W76.ChartEngine.prototype.msMouseMoveProxy=function(k2M){i6UVR.W3G();if(this.touches.length || !this.mouseMode){return;}this.mousemove(k2M);};W76.ChartEngine.prototype.msMouseDownProxy=function(K16){if(!this.mouseMode){return;}this.mousedown(K16);};W76.ChartEngine.prototype.msMouseUpProxy=function(e8O){if(!this.mouseMode){return;}this.mouseup(e8O);};W76.ChartEngine.prototype.iosMouseMoveProxy=function(X8v){if(this.touching){return;}this.mousemove(X8v);};W76.ChartEngine.prototype.iosMouseDownProxy=function(Q32){i6UVR.W5N();if(this.touching){this.mouseMode=!"1";return;}this.mouseMode=!!({});this.mousedown(Q32);};W76.ChartEngine.prototype.iosMouseUpProxy=function(I4j){if(this.touching){return;}i6UVR.W5N();this.mouseup(I4j);};W76.ChartEngine.prototype.touchmove=function(r2w){var S67=i6UVR;var A$G,N$X,h4f,e8k,u43,R31,e6I,H_5,h14,z5D,V91,R1U,b1u,W7_,b4Q,a7U,S9H,M1j,p3P,Y_A,w9Y,c4_,B0s,X0T,y8s,R3Y,w_8,y42,p29,d_t,u4N,s3p,x71,W34,E$i,n_I,t3h,g_u,U9P,Z_5,J6v;A$G="p";A$G+="e";A$G+="n";if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(W76.ChartEngine.ignoreTouch === !!({})){return;}N$X=[];S67.W5N();if(!this.overYAxis || this.controls && this.controls.crossX && this.controls.crossX.style.display != "none"){if(r2w && r2w.preventDefault && r2w.cancelable && this.captureTouchEvents){r2w.preventDefault();}if(r2w){r2w.stopPropagation();}}h4f=new Date().getTime();if(this.clicks.s2MS == -1){this.clicks.e1MS=h4f;if(this.clicks.e1MS - this.clicks.s1MS < 25){return;}}else {this.clicks.e2MS=h4f;if(this.clicks.e2MS - this.clicks.s2MS < +"25"){return;}}if(!r2w.pointerType){r2w.pointerType=this.touchPointerType;}if(W76.isSurface){if(this.mouseMode){return;}if(!r2w.pointerId){r2w.pointerId=this.gesturePointerId;}for(var i1u=+"0";i1u < this.touches.length;i1u++){if(this.touches[i1u].pointerId == r2w.pointerId){e8k=Math.abs(this.touches[i1u].pageX - r2w.clientX);u43=Math.abs(this.touches[i1u].pageY - r2w.clientY);S67.s$9(41);R31=Math.sqrt(S67.V9a(u43,e8k,u43,e8k));if(!R31){return;}this.clicks.e1MS=new Date().getTime();if(this.clicks.e1MS - this.clicks.s1MS < ("50" ^ 0)){return;}if(this.touches[i1u].pageX == r2w.clientX && this.touches[i1u].pageY == r2w.clientY){return;}this.touches[i1u].pageX=this.touches[i1u].clientX=r2w.clientX;this.touches[i1u].pageY=this.touches[i1u].clientY=r2w.clientY;break;}}if(i1u === +"0"){this.movedPrimary=!!({});}else {this.movedSecondary=!!({});}if(i1u == this.touches.length){return;}this.changedTouches=[{pointerId:r2w.pointerId,pageX:r2w.clientX,pageY:r2w.clientY,clientX:r2w.clientX,clientY:r2w.clientY}];N$X=this.touches.length?this.touches:this.changedTouches;}else {N$X=r2w.touches;this.changedTouches=r2w.changedTouches;}if(N$X.length == 1){if(Math.pow(this.clicks.x - N$X[0].clientX,+"2") + Math.pow(this.clicks.y - N$X[0].clientY,+"2") <= 16){return;}}e6I=this.crosshairXOffset;H_5=this.crosshairYOffset;h14=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";z5D=!this.layout.crosshair && !h14 && !this.touchNoPan;if(r2w.pointerType == A$G || z5D || this.activeDrawing && this.activeDrawing.name == "freeform"){S67.s$9(29);e6I=H_5=S67.v$j("0",64);}if(this.runPrepend("touchmove",arguments)){return;}if(W76.ChartEngine.resizingPanel){S67.O_b(1);b1u=N$X[S67.V9a(0,"0")];V91=b1u.clientX;R1U=b1u.clientY;S67.s$9(0);this.mousemoveinner(S67.v$j(V91,e6I),S67.V9a(R1U,H_5));return;}if(this.moveB != -1){this.touchMoveTime=new Date();}this.moveA=this.moveB;W7_=-9927941;b4Q=-2105591087;a7U=2;for(var B6J=+"1";S67.m6F(B6J.toString(),B6J.toString().length,+"54783") !== W7_;B6J++){this.moveB=N$X["0" | 0].pageX;a7U+=2;}if(S67.m6F(a7U.toString(),a7U.toString().length,95998) !== b4Q){this.moveB=N$X[9].pageX;}if(N$X.length == 1 && !this.twoFingerStart){M1j=N$X[0];V91=M1j.clientX;R1U=M1j.clientY;this.pinchingScreen=0;S67.O_b(0);this.mousemoveinner(S67.V9a(V91,e6I),S67.v$j(R1U,H_5));p3P=this.whichPanel(R1U);Y_A=this.xAxisAsFooter === !0?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=R1U <= this.top + Y_A && R1U >= Y_A - this.xaxisHeight + this.top && this.insideChart;if(!p3P){this.overYAxis=!({});}else {this.overYAxis=(V91 >= p3P.right || V91 <= p3P.left) && this.insideChart;}}else if(N$X.length == 2 && this.allowZoom){if(!this.displayCrosshairs){return;}w9Y=N$X[0];c4_=w9Y.clientX;B0s=w9Y.clientY;X0T=N$X[1];y8s=X0T.clientX;R3Y=X0T.clientY;S67.O_b(140);S9H=Math.sqrt(S67.V9a(y8s,B0s,c4_,B0s,y8s,c4_,R3Y,R3Y));S67.O_b(22);var N8v=S67.V9a(19,287,0,15);this.pinchingCenter=(Math.min(c4_,y8s) - Math.max(c4_,y8s)) / N8v;w_8=Math.round(this.gestureStartDistance - S9H);if(z5D){this.pinchingScreen=5;}this.clearPixelCache();if(this.pinchingScreen < 2){if(W76.isSurface && (!this.movedPrimary || !this.movedSecondary)){return;}if(c4_ < this.pt.x1 && y8s < this.pt.x2 || c4_ > this.pt.x1 && y8s > this.pt.x2 || B0s < this.pt.y1 && R3Y < this.pt.y2 || B0s > this.pt.y1 && R3Y > this.pt.y2){S67.s$9(1);this.pinchingScreen=S67.V9a(0,"0");}else {this.pinchingScreen++;if(this.pinchingScreen < 2){return;}}}this.pt={x1:c4_,x2:y8s,y1:B0s,y2:R3Y};if(this.pinchingScreen === 0){this.grabMode="pan";S67.s$9(0);this.mousemoveinner(S67.V9a(c4_,e6I),S67.V9a(B0s,H_5));this.gestureStartDistance=S9H;}else {y42=Math.asin((Math.max(R3Y,B0s) - Math.min(R3Y,B0s)) / S9H);if(Math.abs(w_8) < +"12" && !z5D){this.moveCount++;if(this.moveCount == 4){this.pinchingScreen=0;this.moveCount=0;return;}}else {this.moveCount=0;}if(y42 < 1 || !this.goneVertical && y42 < "1.37" * 1){if(!this.currentPanel){return;}p29=this.currentPanel.chart;this.goneVertical=!({});S9H=this.pt.x2 - this.pt.x1;d_t=this.grabStartValues.t2 - this.grabStartValues.t1;S67.s$9(23);var Q8w=S67.v$j(13,11);u4N=this.grabStartValues.t1 + d_t / Q8w;S67.O_b(9);s3p=S67.v$j(S9H,d_t);if(p29.allowScrollFuture === !({}) && p29.allowScrollPast === !({})){s3p=Math.max(s3p,p29.width / p29.dataSet.length);}x71=this.layout.candleWidth;this.setCandleWidth(s3p,p29);if(p29.maxTicks < this.minimumZoomTicks){this.setCandleWidth(x71,p29);return;}this.micropixels=0;W34=this.pixelFromTick(Math.round(u4N),p29);E$i=this.pt.x1 - this.left + Math.round(S9H / +"2");S67.s$9(1);n_I=S67.V9a(E$i,W34);S67.s$9(9);t3h=S67.v$j(n_I,s3p);g_u=Math.round(t3h);p29.scroll-=g_u;S67.s$9(1);this.microscroll=S67.v$j(t3h,g_u);this.micropixels=s3p * this.microscroll;this.draw();}else {U9P=this.grabStartYAxis;this.goneVertical=!"";if(U9P){U9P.zoom=this.grabStartZoom + (this.gestureStartDistance - S9H);if(this.grabStartZoom < U9P.height){if(U9P.zoom >= U9P.height){S67.s$9(141);var J3L=S67.V9a(1,16,8,8,16);U9P.zoom=U9P.height - J3L;}}else {if(U9P.zoom <= U9P.height){S67.O_b(26);var F1Q=S67.v$j(4,14,3,5);U9P.zoom=U9P.height + F1Q;}}this.draw();;}}this.updateChartAccessories();}}else if(N$X.length == +"3" && W76.ChartEngine.allowThreeFingerTouch){if(!this.displayCrosshairs){return;}Z_5=N$X[0];J6v=Z_5.clientX;S9H=this.grabStartX - J6v;S67.s$9(1);var Y5J=S67.V9a(16,26);this.grabEndPeriodicity=this.grabStartPeriodicity + Math.round(S9H / Y5J);if(this.grabEndPeriodicity < 1){this.grabEndPeriodicity=1;}}this.runAppend("touchmove",arguments);};W76.ChartEngine.prototype.touchstart=function(U08){var M2k=i6UVR;var Z_v,H0J,H6h,n5z,O0u,c6N,D53,p3Q,S9C,n2s,K_j,q43,P_R,c$E,M9X,c8q,R$P,V93,N6N,A6Y,r8I,n0Z,H_x,F7z,z_q,U_H,G5q;Z_v="p";Z_v+="e";Z_v+="n";if(W76.ChartEngine.ignoreTouch){return;}if(W76.isSurface){this.movedPrimary=!!0;this.movedSecondary=![];}else {if(this.touchingEvent){clearTimeout(this.touchingEvent);}this.touching=!!({});this.touches=U08.touches;this.changedTouches=U08.changedTouches;}if(W76.ChartEngine.resizingPanel){return;}H0J=this.crosshairXOffset;H6h=this.crosshairYOffset;if(this.touchPointerType == Z_v){H0J=H6h=+"0";}if(this.runPrepend("touchstart",arguments)){return;}if(this.manageTouchAndMouse && U08 && U08.preventDefault && U08.cancelable && this.captureTouchEvents){U08.preventDefault();}this.hasDragged=![];this.doubleFingerMoves=0;M2k.s$9(42);this.moveCount=M2k.v$j("0",0);this.twoFingerStart=![];if(this.touches.length == +"1" || this.touches.length == ("2" | 0)){this.touchMoveTime=Date.now();S9C=this.touches[0];c6N=S9C.clientX;D53=S9C.clientY;this.moveA=c6N;this.moveB=-1;if(this.openDialog === ""){this.registerPointerEvent({x:c6N,y:D53,time:this.touchMoveTime},"down");if(this.changedTouches.length == 1 && !this.isDoubleClick(!!1)){W76.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:-1,s2MS:-1,e2MS:-1,x:this.changedTouches[0].pageX,y:this.changedTouches[0].pageY});}}n2s=this.container.getBoundingClientRect();this.top=n2s.top;this.left=n2s.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(this.touches.length == 1){K_j=this.backOutY(D53);this.currentPanel=this.whichPanel(K_j);}if(!this.currentPanel){this.currentPanel=this.chart.panel;}p3Q=this.currentPanel;if(c6N >= this.left && c6N <= this.right && D53 >= this.top && D53 <= this.bottom){this.insideChart=!!1;q43=this.xAxisAsFooter === !!({})?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=D53 <= this.top + q43 && D53 >= this.top + q43 - this.xaxisHeight;this.overYAxis=c6N >= this.left + p3Q.right || c6N <= this.left + p3Q.left;P_R=-1;this.cy=this.backOutY(D53);this.cx=this.backOutX(c6N);this.crosshairTick=this.tickFromPixel(this.cx,p3Q.chart);this.crosshairValue=this.adjustIfNecessary(p3Q,this.crosshairTick,this.valueFromPixel(this.cy,this.currentPanel));for(var H9N=0;H9N < this.drawingObjects.length;H9N++){c$E=this.drawingObjects[H9N];if(c$E.highlighted){if(P_R < 0){P_R=H9N;}M9X=c$E.highlighted;this.findHighlights(!!({}));if(H9N == P_R && c$E.highlighted && !c$E.permanent){if(this.clicks.s2MS == -1){this.activateRepositioning(c$E);;}else {this.findHighlights(![],!!({}));;}return;}this.anyHighlighted=!!({});c$E.highlighted=M9X;}}}else {this.insideChart=![];}c8q=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";if(!this.layout.crosshair && !(this.layout.headsUp && this.layout.headsUp.floating) && !c8q && this.insideChart && !this.touchNoPan){H0J=H6h=0;var {baselineHelper:D08}=this;if(D08.size){if(this.findBaselineHandle(U08,!![])){return;}}if(this.controls.anchorHandles){R$P=Object.values(this.controls.anchorHandles);V93=!!0;for(var a1c=0;a1c < R$P.length;a1c++){N6N=R$P[a1c];var {handle:l5j, sd:V1H}=N6N;A6Y=this.resolveX(this.cx);r8I=this.resolveY(this.cy);var {left:S5f, top:S$q, right:V3n, bottom:i8M}=l5j.getBoundingClientRect();S5f-=10;V3n+=10;if(W76.boxIntersects(S5f,S$q,V3n,i8M,A6Y,r8I,A6Y,r8I)){N6N.highlighted=!"";this.repositioningAnchorSelector={sd:V1H};l5j.classList.add("stx-grab");V93=!!({});}if(N6N.highlighted === !!"1"){N6N.highlighted=!({});}}if(V93){return;}}for(n5z in this.panels){O0u=this.panels[n5z];if(O0u.highlighted){this.grabHandle(O0u);return;}}this.grabbingScreen=!![];if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}p3Q.chart.spanLock=![];this.yToleranceBroken=!({});M2k.s$9(0);this.grabStartX=M2k.V9a(c6N,H0J);M2k.s$9(0);this.grabStartY=M2k.V9a(D53,H6h);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=p3Q.chart.scroll;this.grabStartScrollY=p3Q.yAxis.scroll;this.grabStartPanel=this.currentPanel;if(this.swipeStart){this.swipeStart(p3Q.chart);}this.grabStartYAxis=this.whichYAxis(p3Q,this.backOutX(c6N));this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;setTimeout((function(C3m){return function(){M2k.W3G();C3m.grabbingHand();};})(this),100);}else {this.grabbingScreen=!1;if(this.insideChart && p3Q.subholder === U08.target){n0Z=this.currentVectorParameters.vectorType;if(W76.Drawing && n0Z && W76.Drawing[n0Z] && new W76.Drawing[n0Z]().dragToDraw){this.userPointerDown=!"";W76.ChartEngine.crosshairX=c6N;W76.ChartEngine.crosshairY=D53;if(p3Q && p3Q.chart.dataSet){this.crosshairTick=this.tickFromPixel(this.backOutX(W76.ChartEngine.crosshairX),this.currentPanel.chart);this.crosshairValue=this.adjustIfNecessary(p3Q,this.crosshairTick,this.valueFromPixel(this.backOutY(W76.ChartEngine.crosshairY),this.currentPanel));}this.drawingClick(p3Q,this.backOutX(c6N),this.backOutY(D53));this.headsUpHR();return;}}}if(this.touches.length === 1 && this.layout.crosshair && !c8q && p3Q.subholder === U08.target){M2k.s$9(0);this.mousemoveinner(M2k.v$j(c6N,H0J),M2k.V9a(D53,H6h));}}if(this.touches.length == 2){this.cancelLongHold=!!({});this.swipe.end=!![];if(!this.displayCrosshairs && !this.touchNoPan || !this.insideChart){return;}H_x=this.touches[1];F7z=H_x.clientX;z_q=H_x.clientY;for(n5z in this.panels){O0u=this.panels[n5z];if(O0u.highlighted){this.grabHandle(O0u);return;}}p3Q=this.currentPanel;M2k.s$9(140);this.gestureStartDistance=Math.sqrt(M2k.v$j(F7z,D53,c6N,D53,F7z,c6N,z_q,z_q));this.pt={x1:c6N,x2:F7z,y1:D53,y2:z_q};this.grabbingScreen=!!1;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}p3Q.chart.spanLock=!({});M2k.s$9(0);this.grabStartX=M2k.v$j(c6N,H0J);M2k.s$9(0);this.grabStartY=M2k.V9a(D53,H6h);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=p3Q.chart.scroll;this.grabStartScrollY=p3Q.yAxis.scroll;this.grabStartPanel=p3Q;if(this.swipeStart){this.swipeStart(p3Q.chart);}this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(p3Q,this.backOutX((c6N + F7z) / 2)) || p3Q.yAxis;this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:"0" | 0;this.grabStartPt=this.pt;this.grabStartValues={x1:this.pt.x1,x2:this.pt.x2,y1:this.valueFromPixel(this.pt.y1 - this.top,p3Q),y2:this.valueFromPixel(this.pt.y2 - this.top,p3Q),t1:this.tickFromPixel(this.pt.x1 - this.left,p3Q.chart),t2:this.tickFromPixel(this.pt.x2 - this.left,p3Q.chart)};this.twoFingerStart=!!({});setTimeout((function(h3A){return function(){M2k.W3G();h3A.grabbingHand();};})(this),100);}else if(this.touches.length == 3){if(!this.displayCrosshairs){return;}U_H=this.touches[0];G5q=U_H.clientX;this.grabStartX=G5q;this.grabStartPeriodicity=this.layout.periodicity;}if(this.touches.length == 1 && !this.layout.crosshair){this.mouseTimer=Date.now();this.longHoldTookEffect=![];if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}}this.runAppend("touchstart",arguments);};W76.ChartEngine.prototype.touchend=function(J3j){var M6a=i6UVR;var V$w,S$M,v1G,a0X,W_e,u1q,v7d,r28,e5_,C7g,t88,g1V,u0$,d39,j5e;V$w="t";V$w+="ouchend";if(W76.ChartEngine.ignoreTouch){return;}this.swipe.end=!0;if(W76.isSurface){}else {this.touches=J3j.touches;S$M=848413121;v1G=1614484767;a0X=2;for(var n8_=1;M6a.m6F(n8_.toString(),n8_.toString().length,13841) !== S$M;n8_++){this.changedTouches=J3j.changedTouches;a0X+=2;}if(M6a.l5h(a0X.toString(),a0X.toString().length,69418) !== v1G){this.changedTouches=J3j.changedTouches;}}if(this.runPrepend("touchend",arguments)){return;}this.cancelLongHold=!!({});if(this.touches.length <= 1){if(this.layout.crosshair || this.currentVectorParameters.vectorType){if(!this.touches.length || !this.twoFingerStart){this.grabbingScreen=!({});}}}if(this.touches.length){this.grabStartX=-1;this.grabStartY=-1;}W_e=this.pinchingScreen;if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(!this.touches.length){this.touchingEvent=setTimeout((function(Y0O){return function(){M6a.W5N();Y0O.touching=!"1";};})(this),500);if(W76.ChartEngine.resizingPanel){this.releaseHandle();return;}this.pinchingScreen=null;this.pinchingCenter=null;this.goneVertical=!!0;this.grabbingScreen=!!"";this.grabMode="";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(this.cx,this.cy);}this.currentPanel=this.whichPanel(this.cy);}this.grabStartYAxis=null;this.displayDragOK();this.doDisplayCrosshairs();this.updateChartAccessories();}else {if(W76.ChartEngine.resizingPanel){return;}}M6a.O_b(1);var N6v=M6a.v$j(13,14);u1q=this.touches.length + N6v;if(this.changedTouches.length == 1){if(this.repositioningDrawing){this.changeOccurred("vector");W76.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.draw();if(!this.layout.crosshair && !this.currentVectorParameters.vectorType){this.findHighlights(!({}),!![]);}return;}if(this.repositioningBaseline){v7d="mo";v7d+="unta";v7d+="in";this.repositioningBaseline=null;this.controls.baselineHandle.classList.remove("stx-grab");r28=this.mainSeriesRenderer || ({});if(r28.params && r28.params.baseline && r28.params.type != v7d){;}this.draw();return;}if(this.repositioningAnchorSelector){W76.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:q_X})=>{M6a.W3G();return q_X.classList.remove("stx-grab");});return;}e5_=Date.now();if(this.openDialog === "" && J3j.changedTouches.length){C7g=J3j.changedTouches[0];this.registerPointerEvent({x:C7g.clientX,y:C7g.clientY,time:e5_},"up");}if(this.clicks.s2MS == -1){this.clicks.e1MS=e5_;t88=this.currentVectorParameters.vectorType;if(!W76.Drawing || !t88 || !W76.Drawing[t88] || !new W76.Drawing[t88]().dragToDraw){if(this.clicks.e1MS - this.clicks.s1MS < 750 && !this.longHoldTookEffect && (!this.hasDragged || this.layout.crosshair)){setTimeout(this.touchSingleClick(u1q,this.clicks.x,this.clicks.y),this.doubleClickTime + +"1");;}else {this.clicks={s1MS:-1,e1MS:-("1" << 32),s2MS:-1,e2MS:-+"1"};}}this.userPointerDown=!!0;g1V=this.backOutY(this.changedTouches[0].pageY) + this.crosshairYOffset;u0$=this.backOutX(this.changedTouches[+"0"].pageX) + this.crosshairXOffset;d39=this.currentPanel;j5e=d39 && d39.subholder === J3j.target;if(W76.Drawing && this.activeDrawing && this.activeDrawing.dragToDraw && j5e){this.drawingClick(d39,u0$,g1V);return;}if(this.isDoubleClick(!!1) && (j5e || this.overYAxis || this.overXAxis)){this.touchDoubleClick(u1q,this.clicks.x,this.clicks.y);}}else {this.clicks.e2MS=e5_;this.clicks={s1MS:-1,e1MS:-1,s2MS:-1,e2MS:-1};}}else if(this.displayCrosshairs){if(this.grabEndPeriodicity != -("1" ^ 0) && !isNaN(this.grabEndPeriodicity)){if(W76.ChartEngine.isDailyInterval(this.layout.interval) || this.allowIntradayNMinute){this.setPeriodicity({period:this.grabEndPeriodicity,interval:this.layout.interval});}this.grabEndPeriodicity=-1;}}if(this.changedTouches.length){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType && u1q == 1 || this.twoFingerStart && !W_e && !this.touches.length){if(this.swipeRelease){this.swipeRelease();}this.findHighlights(!"1",!"");}if(W_e && this.continuousZoom){this.continuousZoom.execute();this.continuousZoom.execute(!!1);}}if(!this.touches.length){this.twoFingerStart=!({});}this.runAppend(V$w,arguments);};u5p=![];W76.ChartEngine.prototype.mousemoveinner=W76.ChartEngine.prototype.mousemoveinner || (function(E1C,K9u){var e5l;e5l="touch feature requires acti";e5l+="vating movement ";i6UVR.W5N();e5l+="feature.";if(!u5p){console.error(e5l);}u5p=!![];});};K_=k2F=>{var p9R;p9R=typeof _CIQ !== "undefined"?_CIQ:k2F.CIQ;p9R.Visualization=p9R.Visualization || (function(y7R){var n7$;if(!y7R){n7$="CIQ.V";n7$+="isualization() miss";n7$+="ing attributes argument.";console.log(n7$);return;}if(typeof y7R.renderFunction !== "function"){console.log("CIQ.Visualization() missing renderFunction property in attributes.");return;}this.container=null;this.attributes=y7R;this.data=null;this.object=null;});p9R.extend(p9R.Visualization.prototype,{destroy:function(r_m){var V$V;V$V=this.container;p9R.resizeObserver(V$V,null,V$V.resizeHandle);if(V$V.autoGenerated){V$V.remove();delete this.container;}else {V$V.innerHTML="";}if(r_m){return;}this.attributes=null;this.container=null;this.data=null;this.object=null;this.destroy=this.draw=this.setAttributes=function(){};this.updateData=function(){return undefined;};},draw:function(R9d){var F3U=i6UVR;var X9w,Q4l,V9m,n2m,x$c,U6E,E_Y,l56,A7Y,e_M,n5l,y4x;if(!this.data || typeof this.data !== "object"){console.log("CIQ.Visualization.draw() missing data.");X9w=1535042138;Q4l=+"1684975138";F3U.O_b(39);V9m=F3U.V9a("2",0);for(var z5A=1;F3U.m6F(z5A.toString(),z5A.toString().length,"73626" >> 0) !== X9w;z5A++){return;}if(F3U.l5h(V9m.toString(),V9m.toString().length,"45784" << 0) !== Q4l){return;}return;}n2m=this.attributes;x$c=n2m.container || this.container;F3U.O_b(2);U6E=F3U.v$j(1,"1152923535");E_Y=-651944491;l56=2;for(var h27=1;F3U.l5h(h27.toString(),h27.toString().length,"48714" ^ 0) !== U6E;h27++){if(~x$c !== ""){x$c=document.querySelector(x$c);}l56+=2;}if(F3U.l5h(l56.toString(),l56.toString().length,53662) !== E_Y){if(+x$c != ""){x$c=document.querySelector(x$c);}}if(typeof x$c === "string"){x$c=document.querySelector(x$c);}if(!x$c){A7Y="d";A7Y+="iv";x$c=document.createElement(A7Y);x$c.style.height=x$c.style.width="300px";document.body.appendChild(x$c);x$c.autoGenerated=!"";}if(n2m.stx){e_M=n2m.stx.chart.canvasShim;if(n2m.useCanvasShim && e_M && e_M !== x$c && e_M !== x$c.parentNode){if(!x$c.autoGenerated){x$c=x$c.cloneNode();x$c.id="";x$c.autoGenerated=!!1;}e_M.appendChild(x$c);}}if(this.container && this.container !== x$c){this.destroy(!![]);}if(!x$c.resizeHandle){n5l=function(q8p){F3U.W5N();return function(){if(q8p.data && q8p.container && document.body.contains(q8p.container)){q8p.draw.call(q8p,!!"1");}};};x$c.resizeHandle=p9R.resizeObserver(x$c,n5l(this),null,100);}this.container=x$c;this.attributes=n2m;function z72(m1r,U6J){F3U.W5N();return m1r.index < U6J.index?-("1" | 1):m1r.index > U6J.index?1:0;}n2m=p9R.ensureDefaults({container:this.container},this.attributes);y4x=n2m.renderFunction(Object.values(this.data).sort(z72),n2m);F3U.W3G();if(y4x){if(n2m.id){y4x.id=n2m.id;}if(R9d || n2m.forceReplace){this.container.innerHTML="";this.container.appendChild(y4x);}}this.attributes=n2m;this.object=y4x;},setAttributes:function(P6a,X_a){var C3L,F2k,M3e,I55,r1l,O_w,u7i;C3L="o";C3L+="bje";C3L+="ct";F2k="i";F2k+="d";M3e="useCanvasShi";M3e+="m";I55="s";I55+="t";I55+="x";r1l=["renderFunction","container",I55,M3e,F2k,"forceReplace"];O_w=![];u7i=P6a;if(typeof P6a == "string"){u7i={};u7i[P6a]=X_a;}if(typeof u7i == C3L){for(var l7v in u7i){if(this.attributes[l7v] !== u7i[l7v] && r1l.indexOf(l7v) !== -1){O_w=!!({});}this.attributes[l7v]=u7i[l7v];}}this.draw(O_w);},updateData:function(y04,f$x){var i8q,Y0Z,i6x,D1o,Q97,Y5R,n_L;i6x=Array.isArray(y04)?y04.reduce(function(J$I,a_f){i6UVR.W3G();J$I[a_f.name]=a_f;return J$I;},{}):p9R.shallowClone(y04);for(i8q in i6x){D1o="[objec";D1o+="t";D1o+=" Object";D1o+="]";Y0Z=i6x[i8q];if(Object.prototype.toString.call(Y0Z) !== D1o){i6x[i8q]={value:Y0Z};}if(!i6x[i8q].name){i6x[i8q].name=i8q;}if(!i6x[i8q].value){i6x[i8q].value=0;}}Q97=1047076763;Y5R=1195307784;n_L=2;for(var M$X=1;i6UVR.l5h(M$X.toString(),M$X.toString().length,"26416" >> 32) !== Q97;M$X++){if(-f$x){f$x="";}n_L+=2;}if(i6UVR.m6F(n_L.toString(),n_L.toString().length,71509) !== Y5R){if(!f$x){f$x="replace";}}switch(f$x.toLowerCase()){case "delete":for(i8q in i6x){delete this.data[i8q];}break;case "replace":this.data={};case "update":case "add":for(i8q in i6x){if(!this.data[i8q]){this.data[i8q]={name:i8q};}Y0Z=i6x[i8q].value;if(Object.prototype.toString.call(Y0Z) == "[object Number]"){if(!this.data[i8q].value || f$x == "update"){this.data[i8q].value=0;}this.data[i8q].value+=Y0Z;}else {this.data[i8q].value=Y0Z;}for(var s9h in i6x[i8q]){if(s9h !== "value"){this.data[i8q][s9h]=i6x[i8q][s9h];}}}break;default:console.log("Invalid or missing action. Valid values are 'add', 'delete', 'replace', or 'update'.");}i6UVR.W5N();this.draw(this.attributes.forceReplace);return this;}});p9R.ChartEngine.prototype.embedVisualization=function(c9S){if(!c9S){c9S={};}c9S.stx=this;c9S.useCanvasShim=!"";c9S.translator=function(p5G){return c9S.stx.translateIf(p5G);};return new p9R.Visualization(c9S);};};D5=K0J=>{var g7f,m6$;g7f=typeof _CIQ !== "undefined"?_CIQ:K0J.CIQ;if(!g7f.Studies){m6$="medianPrice feature requires first activating stu";m6$+="d";m6$+="ies feature.";console.error(m6$);}else {g7f.Studies.calculateTypicalPrice=function(n38,C3E){var P2K=i6UVR;var z3H,C_x,K7T,X11,r2M,B5B;z3H="h";z3H+="l/2";C_x=C3E.chart.scrubbed;K7T=C3E.days;if(C_x.length < K7T + 1){if(!C3E.overlay){C3E.error=!"";}return;}X11=C3E.name;for(var h0h in C3E.outputs){P2K.O_b(35);X11=P2K.v$j(" ",X11,h0h);}r2M="hlc/3";if(C3E.type == "Med Price"){r2M=z3H;}else if(C3E.type == "Weighted Close"){r2M="hlcc/4";}B5B=0;if(C3E.startFrom <= K7T){C3E.startFrom=0;}for(var G7Q=C3E.startFrom;G7Q < C_x.length;G7Q++){if(G7Q && C_x[G7Q - 1][X11]){P2K.s$9(131);var a8c=P2K.V9a(32,24,5,13);B5B=C_x[G7Q - ("1" >> a8c)][X11] * K7T;}B5B+=C_x[G7Q][r2M];if(G7Q >= K7T){P2K.O_b(1);B5B-=C_x[P2K.V9a(K7T,G7Q)][r2M];P2K.s$9(9);C_x[G7Q][X11]=P2K.v$j(B5B,K7T);}}};g7f.Studies.studyLibrary=g7f.extend(g7f.Studies.studyLibrary,{"Med Price":{name:"Median Price",calculateFN:g7f.Studies.calculateTypicalPrice,inputs:{Period:14}}});}};S8=e32=>{var g_m;g_m=typeof _CIQ !== "undefined"?_CIQ:e32.CIQ;if(!g_m.Studies){console.error("momentum feature requires first activating studies feature.");}else {g_m.Studies.calculateRateOfChange=function(Y0Q,b6P){var S4u=i6UVR;var z3$,d1j,f7M,N2i,x2C,R13,u5P,N7G;z3$=b6P.chart.scrubbed;if(z3$.length < b6P.days + 1){b6P.error=!!"1";return;}S4u.W5N();d1j=b6P.inputs.Field;if(!d1j || d1j == "field"){d1j="Close";}if(b6P.parameters.isVolume){d1j="Volume";}f7M=b6P.name;for(var N7m in b6P.outputs){S4u.s$9(35);f7M=S4u.V9a(" ",f7M,N7m);}N2i=b6P.inputs["Center Line"];if(!N2i){N2i=0;}else {N2i=parseInt(N2i,10);}for(var I32=Math.max(b6P.startFrom,b6P.days);I32 < z3$.length;I32++){x2C="obje";x2C+="c";x2C+="t";R13=z3$[I32][d1j];if(R13 && typeof R13 == x2C){R13=R13[b6P.subField];}u5P=z3$[I32 - b6P.days][d1j];if(u5P && typeof u5P == "object"){u5P=u5P[b6P.subField];}if(b6P.type == "Momentum"){S4u.s$9(33);z3$[I32][f7M]=S4u.V9a(R13,N2i,u5P);}else {N7G=u5P;if(N7G){S4u.O_b(142);z3$[I32][f7M]=S4u.V9a(N2i,R13,N7G,100,1);}}}};g_m.Studies.studyLibrary=g_m.extend(g_m.Studies.studyLibrary,{"Price ROC":{name:"Price Rate of Change",calculateFN:g_m.Studies.calculateRateOfChange,inputs:{Period:14,Field:"field"}},Momentum:{name:"Momentum Indicator",calculateFN:g_m.Studies.calculateRateOfChange,inputs:{Period:+"14"},centerline:0}});}};V4=a28=>{var E0u;E0u=typeof _CIQ !== "undefined"?_CIQ:a28.CIQ;if(!E0u.Studies){console.error("priceRelative feature requires first activating studies feature.");}else {E0u.Studies.initPriceRelative=function(Z7Q,l6V,L_4,O_y,E73,G15){var U6X,D4C;U6X=E0u.Studies.initializeFN(Z7Q,l6V,L_4,O_y,E73,G15);D4C=[U6X.inputs["Comparison Symbol"].toUpperCase()];E0u.Studies.fetchAdditionalInstruments(Z7Q,U6X,D4C);i6UVR.W3G();return U6X;};E0u.Studies.calculatePriceRelative=function(m$v,v6S){var w65,n3x,O7i,z_Z,R6w,a6J,v41;w65="]";w65+="/";w65+="[";n3x=v6S.chart.scrubbed;O7i=v6S.inputs["Comparison Symbol"].toUpperCase();if(!O7i){O7i=v6S.study.inputs["Comparison Symbol"];}z_Z={};R6w=m$v.chart.symbol || "";R6w=R6w.replace(/[=+\-*\\%]/g,"");z_Z[R6w]=n3x.slice(v6S.startFrom);if(!z_Z[R6w].length){return;}if(R6w != O7i){z_Z[O7i]=null;}i6UVR.s$9(75);a6J=E0u.computeEquationChart(i6UVR.v$j(O7i,R6w,"[",531.76 != 922.66?+"6924" == 560.73?(837.63,299.24) <= (6293,"2300" | 72)?4.36e+3:"a":"]":!0,w65),z_Z);v41=+"0";for(var E3p=v6S.startFrom;E3p < n3x.length && v41 < a6J.length;E3p++){while(v41 < a6J.length && n3x[E3p].DT.getTime() > a6J[v41].DT.getTime()){v41++;}if(n3x[E3p].DT.getTime() < a6J[v41].DT.getTime())continue;n3x[E3p]["Result " + v6S.name]=a6J[v41].Close;v41++;}};E0u.Studies.displayVsComparisonSymbol=function(g2p,o_V,r9i){var N29,N92,z77,e8t,I70;N29="C";N29+="o";N29+="m";N29+="parison Symbol";N92=o_V.inputs[N29].toUpperCase();if(!g2p.getSeries({symbol:N92,chart:o_V.chart}).length){g2p.displayErrorAsWatermark(o_V.panel,g2p.translateIf(o_V.study.name) + ": " + g2p.translateIf("Not Available"));return;}z77={skipTransform:g2p.panels[o_V.panel].name != o_V.chart.name,panelName:o_V.panel,band:"Result " + o_V.name,threshold:o_V.study.centerline,yAxis:o_V.getYAxis(g2p),gapDisplayStyle:!!"1"};e8t=z77.yAxis?z77.yAxis.flipped:g2p.panels[o_V.panel].yAxis.flipped;i6UVR.W5N();I70=0.3;if(!o_V.highlight && g2p.highlightedDraggable){I70*=0.3;}for(var y5N=r9i.length - ("1" | 0);y5N >= 0;y5N--){if(r9i[y5N] && r9i[y5N][N92]){E0u.Studies.displaySeriesAsLine(g2p,o_V,r9i);if(o_V.study.centerline || o_V.study.centerline === ("0" | 0)){if(o_V.outputs.Gain){E0u.preparePeakValleyFill(g2p,E0u.extend(z77,{direction:e8t?-1:1,color:E0u.Studies.determineColor(o_V.outputs.Gain),opacity:I70}));}if(o_V.outputs.Loss){E0u.preparePeakValleyFill(g2p,E0u.extend(z77,{direction:e8t?1:-1,color:E0u.Studies.determineColor(o_V.outputs.Loss),opacity:I70}));}}return;}}};E0u.Studies.fetchAdditionalInstruments=function(U9F,C7Z,x76,F4y){var G30,j4q,J0z,n9h,M17,R84,a5_;if(!U9F.quoteDriver){G30="CIQ.Studies.fetchAdditionalInstruments: No quotefee";G30+="d to fet";G30+="ch symbol";console.log(G30);return;}j4q=U9F.panels[C7Z.panel].chart;function m__(){U9F.createDataSet();U9F.draw();}C7Z.symbols=x76;for(J0z=0;J0z < x76.length;J0z++){n9h=M17=x76[J0z];if(typeof M17 == "object"){n9h=M17.symbol;}else {M17={symbol:n9h};}R84={symbol:n9h,symbolObject:M17,bucket:"study",studyName:C7Z.name,chartName:j4q.name,action:"add-study"};E0u.extend(R84,F4y);a5_=R84.loadData;if(U9F.currentlyImporting){R84.loadData=![];}if(!C7Z.series){C7Z.series={};}C7Z.series[n9h]=U9F.addSeries(null,R84,m__);C7Z.series[n9h].parameters.loadData=a5_;}};E0u.Studies.studyLibrary=E0u.extend(E0u.Studies.studyLibrary,{"P Rel":{name:"Price Relative",initializeFN:E0u.Studies.initPriceRelative,seriesFN:E0u.Studies.displayVsComparisonSymbol,calculateFN:E0u.Studies.calculatePriceRelative,centerline:0,inputs:{"Comparison Symbol":"SPY"},deferUpdate:!0}});}};U$=b4S=>{var h1g,N$E,r7P,F$x,V_J,C5f,x4Z,o9M,a5z,S0I;h1g="un";h1g+="d";h1g+="ef";h1g+="ined";N$E=typeof _CIQ !== h1g?_CIQ:b4S.CIQ;if(!N$E.Studies){r7P="vwap feature requires first activating studies ";r7P+="fea";r7P+="ture.";console.error(r7P);}else {F$x="#f";F$x+="ff69";F$x+="e";V_J="#";V_J+="85c";V_J+="99e";C5f="#e";C5f+="1e";C5f+="1";C5f+="e1";x4Z="h";x4Z+="h";x4Z+=":mm:s";x4Z+="s";o9M="#85c";o9M+="99e";a5z="#e1e";a5z+="1e1";S0I="#";S0I+="F";S0I+="F0";S0I+="000";N$E.Studies.calculateVWAP=function(A4N,Y75){var S_r=i6UVR;var Y$p,F30,w3K,b8e,p9L,M7t,F5$,G2H,Q6P,M0S,W4$,V5O,n6M,M7m,V2t,W$O,Y0B,f25,h9q,Q4k,s9b,Q0A,p$v,R_i,i6n,t8P,Y5Q,e9D,o7B;Y$p="A";Y$p+="V";Y$p+="WA";S_r.W3G();Y$p+="P";F30=Y75.type == Y$p;w3K=Y75.chart.scrubbed;if(!F30 && N$E.ChartEngine.isDailyInterval(A4N.layout.interval)){Y75.error="VWAP is Intraday Only";return;}b8e="hlc/3";if(F30){b8e=Y75.inputs.Field;if(!b8e || b8e == "field"){p9L="h";p9L+="l";p9L+="c/";p9L+="3";b8e=Y75.inputs.Field=p9L;A4N.changeOccurred("layout");}}M7t=null;F5$=0;G2H=0;Q6P=+"0";M0S=!!"";if(Y75.startFrom > 1){W4$="_";W4$+="V";W4$+=" ";F5$=w3K[Y75.startFrom - 1][W4$ + Y75.name] || 0;G2H=w3K[Y75.startFrom - 1]["_VxP " + Y75.name] || 0;Q6P=w3K[Y75.startFrom - 1]["_VxP2 " + Y75.name] || 0;}if(F30){V5O="An";V5O+="cho";V5O+="r Time";n6M="Anc";n6M+="hor D";n6M+="ate";M7m=Y75.inputs[n6M].replace(/-/g,"");if(M7m.search(/^\d{8}$/)){Y75.error="Invalid Anchor Date";return;}V2t=Y75.inputs[V5O].replace(/:/g,"");if(!V2t.search(/^\d{4,6}$/)){M7m+=V2t;}M7m=N$E.strToDateTime(M7m.replace(/\D/g,""));if(!Y75.startFrom && M7m >= w3K["0" | 0].DT){Y75.startFrom=A4N.tickFromDate(M7m,A4N.chart,null,!"");}if(Y75.inputs["Anchor Selector"]){N$E.Studies.initAnchorHandle(A4N,Y75);}else {N$E.Studies.removeAnchorHandle(A4N,Y75);}}for(var I0X=Y75.startFrom;I0X < w3K.length;I0X++){W$O="VWA";W$O+="P ";Y0B="_S";Y0B+="DVWAP ";if(!F30){if(M7t === null){M7t=N$E.Studies.getMarketOffset({stx:A4N,localQuoteDate:w3K[I0X].DT,shiftToDateBoundary:!![]});}if(w3K[I0X - 1] && w3K[I0X - 1].DT){f25=new Date(new Date(+w3K[I0X].DT).setMilliseconds(w3K[I0X].DT.getMilliseconds() + M7t));h9q=new Date(new Date(+w3K[I0X - 1].DT).setMilliseconds(w3K[I0X - 1].DT.getMilliseconds() + M7t));if(h9q.getDate() != f25.getDate() && A4N.chart.market.isMarketDate(f25)){M7t=null;F5$=G2H=Q6P=0;}}}Q4k=w3K[I0X][b8e];s9b=w3K[I0X].Volume;if(F30 && !s9b){s9b=1;}F5$+=s9b;S_r.O_b(2);G2H+=S_r.V9a(Q4k,s9b);S_r.s$9(143);Q6P+=S_r.V9a(Q4k,Q4k,s9b);if(!F30 && !F5$)continue;w3K[I0X]["_V " + Y75.name]=F5$;w3K[I0X]["_VxP " + Y75.name]=G2H;w3K[I0X]["_VxP2 " + Y75.name]=Q6P;Q0A=w3K[I0X][Y0B + Y75.name]=Math.sqrt(Math.max("0" >> 32,Q6P / F5$ - Math.pow(G2H / F5$,"2" ^ 0)));S_r.s$9(9);p$v=w3K[I0X][W$O + Y75.name]=S_r.V9a(G2H,F5$);for(var Y9y=1;Y9y <= 3;Y9y++){S_r.s$9(46);w3K[I0X]["SDVWAP" + Y9y + "+ " + Y75.name]=S_r.V9a(Y9y,p$v,Q0A);S_r.s$9(90);w3K[I0X]["SDVWAP" + Y9y + "- " + Y75.name]=S_r.v$j(Q0A,Y9y,p$v);}M0S=!"";}for(var i6X="1" ^ 0;i6X <= 3;i6X++){if(Y75.inputs["Display " + i6X + " Standard Deviation (" + i6X + "\u03C3)"]){R_i="\u03C3";R_i+=")";i6n=" Standard Devi";i6n+="ation (";t8P="+";t8P+=" ";S_r.O_b(51);Y75.outputMap["SDVWAP" + i6X + t8P + Y75.name]=S_r.V9a("\u03C3)",i6X,i6X," Standard Deviation (");S_r.s$9(51);Y75.outputMap["SDVWAP" + i6X + "- " + Y75.name]=S_r.V9a(R_i,i6X,i6X,i6n);}}if(!F30 && !M0S){S_r.O_b(29);Y5Q=S_r.V9a("1262758872",32);e9D=-1311081374;o7B=2;for(var A_Q=+"1";S_r.m6F(A_Q.toString(),A_Q.toString().length,71139) !== Y5Q;A_Q++){Y75.error="VWAP Requires Volume";o7B+=2;}if(S_r.m6F(o7B.toString(),o7B.toString().length,73285) !== e9D){Y75.error="";}}};N$E.Studies.initAnchoredVWAP=function(u9M,V8c,O5X,l47,E4f,P$f){i6UVR.W5N();var E8f,V9t;if(!O5X["Anchor Date"] && !O5X["Anchor Time"]){var {dataSegment:Z1G}=u9M.chart;for(var H3p=0;Z1G && H3p < Z1G.length;H3p++){if(Z1G[H3p]){E8f="H";E8f+="H";E8f+=":";E8f+="mm:ss";var {DT:z8m}=Z1G[H3p];O5X["Anchor Date"]=N$E.dateToStr(z8m,"YYYY-MM-dd");O5X["Anchor Time"]=N$E.dateToStr(z8m,E8f);break;}}}V9t=N$E.Studies.initializeFN(u9M,V8c,O5X,l47,E4f,P$f);return V9t;};N$E.Studies.displayVWAP=function(y_J,W2D,G14){var g5E,j2w,l0O,h8a,K7b,N9o,x0$,S5v,D56,z6t,y6m,V45,F$V;N$E.Studies.displaySeriesAsLine(y_J,W2D,G14);g5E=1321979554;j2w=1566726702;l0O=2;for(var A8J=1;i6UVR.m6F(A8J.toString(),A8J.toString().length,28827) !== g5E;A8J++){h8a=W2D.inputs["Display 1 Standard Deviation (1\u03C3)"];l0O+=2;}if(i6UVR.l5h(l0O.toString(),l0O.toString().length,+"36888") !== j2w){h8a=W2D.inputs[""];}K7b=W2D.inputs["Display 2 Standard Deviation (2\u03C3)"];N9o=W2D.inputs["Display 3 Standard Deviation (3\u03C3)"];if((h8a || K7b || N9o) && W2D.inputs.Shading){x0$="V";x0$+="WAP ";S5v=y_J.panels[W2D.panel];D56={opacity:W2D.parameters.opacity?W2D.parameters.opacity:0.2,skipTransform:S5v.name != W2D.chart.name,yAxis:W2D.getYAxis(y_J)};if(!W2D.highlight && y_J.highlightedDraggable){D56.opacity*=0.3;}z6t=x0$ + W2D.name;y6m="VWAP " + W2D.name;if(h8a){V45="SDVW";V45+="AP1";V45+="+";V45+=" ";N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP1+ " + W2D.name,bottomBand:z6t,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP1+ " + W2D.name]])},D56));N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP1- " + W2D.name,bottomBand:y6m,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP1- " + W2D.name]])},D56));z6t=V45 + W2D.name;y6m="SDVWAP1- " + W2D.name;}if(K7b){F$V="S";F$V+="DVWAP2- ";N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP2+ " + W2D.name,bottomBand:z6t,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP2+ " + W2D.name]])},D56));N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP2- " + W2D.name,bottomBand:y6m,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP2- " + W2D.name]])},D56));z6t="SDVWAP2+ " + W2D.name;y6m=F$V + W2D.name;}if(N9o){N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP3+ " + W2D.name,bottomBand:z6t,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP3+ " + W2D.name]])},D56));N$E.prepareChannelFill(y_J,N$E.extend({panelName:W2D.panel,topBand:"SDVWAP3- " + W2D.name,bottomBand:y6m,color:N$E.Studies.determineColor(W2D.outputs[W2D.outputMap["SDVWAP3- " + W2D.name]])},D56));}}if(W2D.anchorHandle){N$E.Studies.displayAnchorHandleAndLine(y_J,W2D,G14);}};N$E.Studies.studyLibrary=N$E.extend(N$E.Studies.studyLibrary,{AVWAP:{name:"Anchored VWAP",overlay:!!({}),calculateFN:N$E.Studies.calculateVWAP,seriesFN:N$E.Studies.displayVWAP,initializeFN:N$E.Studies.initAnchoredVWAP,removeFN:N$E.Studies.removeAnchorHandle,inputs:{Field:"field","Anchor Date":"","Anchor Time":"","Display 1 Standard Deviation (1\u03C3)":!"1","Display 2 Standard Deviation (2\u03C3)":!"1","Display 3 Standard Deviation (3\u03C3)":!"1",Shading:![],"Anchor Selector":!!"1"},outputs:{VWAP:S0I,"1 Standard Deviation (1\u03C3)":a5z,"2 Standard Deviation (2\u03C3)":o9M,"3 Standard Deviation (3\u03C3)":"#fff69e"},parameters:{init:{opacity:0.2}},attributes:{"Anchor Date":{placeholder:"yyyy-mm-dd"},"Anchor Time":{placeholder:x4Z,step:1}}},VWAP:{name:"VWAP",overlay:!!({}),calculateFN:N$E.Studies.calculateVWAP,seriesFN:N$E.Studies.displayVWAP,inputs:{"Display 1 Standard Deviation (1\u03C3)":![],"Display 2 Standard Deviation (2\u03C3)":!1,"Display 3 Standard Deviation (3\u03C3)":!({}),Shading:!({})},outputs:{VWAP:"#FF0000","1 Standard Deviation (1\u03C3)":C5f,"2 Standard Deviation (2\u03C3)":V_J,"3 Standard Deviation (3\u03C3)":F$x},parameters:{init:{opacity:0.2}}}});}};v8=b$_=>{var O6S=i6UVR;var I1W,i3p;O6S.W5N();I1W=typeof _CIQ !== "undefined"?_CIQ:b$_.CIQ;if(!I1W.Studies){console.error("zigzag feature requires first activating studies feature.");}else {i3p="Z";i3p+="igZag";I1W.Studies.calculateZigZag=function(r$p,w6S){var p7o,c7D,S4a,b9R,d4W,F5v,b_8,A8D,j8$,b4n,A8L,S6s,d5j,S0O,O7v,D0b,Z_f,N8x,V6P,k3I,i1a,G8$,G6O;p7o="_";p7o+="state ";c7D="L";c7D+="o";c7D+="w";S4a=w6S.chart.scrubbed;if(!S4a || !S4a.length){return;}b9R=w6S.highLowChart;d4W=null;F5v=null;b_8=w6S.inputs["Distance(%)"];function F6f(P6u,E5p){var W_B;for(var s_w=P6u + 1;s_w < E5p;s_w++){W_B="Re";W_B+="s";W_B+="u";W_B+="lt ";S4a[s_w]["ShadowResult " + w6S.name]=(S4a[E5p][W_B + w6S.name] - S4a[P6u]["Result " + w6S.name]) * (s_w - P6u) / (E5p - P6u) + S4a[P6u]["Result " + w6S.name];delete S4a[s_w]["Result " + w6S.name];}}A8D=0;j8$=+"0";b4n=0;A8L=null;S6s=null;d5j=+"0";for(var o4P=Math.min(S4a.length - ("1" >> 0),w6S.startFrom);o4P >= +"0";o4P--){d5j=o4P;if(S4a[o4P]["_state " + w6S.name]){S0O=S4a[o4P]["_state " + w6S.name];d4W=S0O[0];F5v=S0O[1];A8D=S0O[+"2"];j8$=S0O[+"3"];b4n=S0O[4];A8L=S0O[5];S6s=S0O[6];break;}}for(var A2d=d5j;A2d < S4a.length;A2d++){O7v="Clo";O7v+="s";O7v+="e";D0b=S4a[A2d][b9R?"High":O7v];Z_f=S4a[A2d][b9R?"Low":"Close"];if(F5v === null || F5v < D0b){F5v=D0b;if(A8D < 0){d4W=Z_f;}O6S.O_b(144);A8L=O6S.V9a(b_8,1,F5v,100);if(A8D > -1){if(S6s !== null && F5v > S6s){N8x="Clo";N8x+="se";V6P="L";V6P+="o";V6P+="w";S4a[j8$]["Result " + w6S.name]=S4a[j8$][b9R?V6P:N8x];F6f(b4n,j8$);A8D=-1;d4W=Z_f;b4n=j8$;j8$=A2d;continue;}}else {j8$=A2d;}}if(d4W === null || d4W > Z_f){d4W=Z_f;if(A8D > +"0"){F5v=D0b;}O6S.O_b(145);S6s=O6S.V9a(b_8,100,d4W,"1");if(A8D < 1){if(A8L !== null && d4W < A8L){k3I="Hi";k3I+="g";k3I+="h";i1a="Res";i1a+="ult";i1a+=" ";S4a[j8$][i1a + w6S.name]=S4a[j8$][b9R?k3I:"Close"];F6f(b4n,j8$);A8D=+"1";F5v=D0b;b4n=j8$;j8$=A2d;continue;}}else {j8$=A2d;}}}S4a[j8$]["Result " + w6S.name]=S4a[j8$][b9R?A8D == 1?c7D:"High":"Close"];S4a[j8$][p7o + w6S.name]=[d4W,F5v,A8D,j8$,b4n,A8L,S6s];F6f(b4n,j8$);G8$=S4a.length - 1;while(G8$ > j8$){if(S4a[G8$].Close || S4a[G8$].Close === 0){G6O="Resul";G6O+="t";G6O+=" ";S4a[G8$][G6O + w6S.name]=S4a[G8$][b9R?A8D == 1?"High":"Low":"Close"];break;}G8$--;}F6f(j8$,G8$);};I1W.Studies.displayZigZag=function(i$j,f$C,E2V){var r13,V7R,o9t,g_a,S4t,r0j,U7_,T$d,D57,C9a,h2y,K4j;r13=i$j.chart.highLowBars;if(f$C.highLowChart != r13){f$C.highLowChart=r13;f$C.startFrom=0;f$C.study.calculateFN(i$j,f$C);}V7R=i$j.chart;for(var M5a=0;M5a < E2V.length;M5a++){o9t=E2V[M5a];if(o9t){g_a="_sh";g_a+="ad";g_a+="o";g_a+="wCopy ";if(o9t[g_a + f$C.name]){S4t="Result";S4t+=" ";delete o9t[S4t + f$C.name];delete o9t["_shadowCopy " + f$C.name];}if(!o9t["Result " + f$C.name]){r0j="R";r0j+="e";r0j+="s";r0j+="ult ";if(o9t.transform){delete o9t.transform[r0j + f$C.name];}}}}O6S.s$9(42);U7_=E2V[O6S.V9a("0",0)];O6S.O_b(16);var f0M=O6S.V9a(8,0,7);T$d=E2V[E2V.length - f0M];if(U7_ && U7_["ShadowResult " + f$C.name]){D57="_";D57+="shadowC";D57+="opy";D57+=" ";C9a="S";C9a+="hado";C9a+="wResult";C9a+=" ";U7_["Result " + f$C.name]=U7_["ShadowResult " + f$C.name];if(U7_.transform){U7_.transform["Result " + f$C.name]=V7R.transformFunc(i$j,V7R,U7_[C9a + f$C.name]);}U7_[D57 + f$C.name]=1;}if(T$d && T$d["ShadowResult " + f$C.name]){h2y="S";h2y+="h";h2y+="adowResu";h2y+="lt ";K4j="R";K4j+="e";K4j+="sul";K4j+="t ";T$d[K4j + f$C.name]=T$d[h2y + f$C.name];if(T$d.transform){T$d.transform["Result " + f$C.name]=V7R.transformFunc(i$j,V7R,T$d["ShadowResult " + f$C.name]);}T$d["_shadowCopy " + f$C.name]=1;}I1W.Studies.displaySeriesAsLine(i$j,f$C,E2V);};I1W.Studies.studyLibrary=I1W.extend(I1W.Studies.studyLibrary,{ZigZag:{name:i3p,overlay:!![],seriesFN:I1W.Studies.displayZigZag,calculateFN:I1W.Studies.calculateZigZag,inputs:{"Distance(%)":10},parameters:{init:{label:!({})}},attributes:{"Distance(%)":{min:0.1,step:0.1}}}});}};I3={CIQ:Z0,SplinePlotter:d7,timezoneJS:U8,$$:Z9,$$$:v5};export {N as createEngine};export {u as customCharts};export {X as drawing};export {S as easeMachine};export {P as equations};export {I as i18n};export {Q as interaction};export {V as markers};export {M as market};export {T as movement};export {R as nameValueStore};export {W as quoteFeed};export {Y as series};export {g as share};export {K as span};export {A as storage};export {G as studies};export {G6 as symbolLookupBase};export {k$ as theme};export {w6 as timezone};export {q2 as touch};export {K_ as visualization};export {D5 as medianPrice};export {S8 as momentum};export {V4 as priceRelative};export {U$ as vwap};export {v8 as zigzag};export {Z0 as CIQ, d7 as SplinePlotter, U8 as timezoneJS, Z9 as $$, v5 as $$$};if(typeof __TREE_SHAKE__ === f6ulV || !__TREE_SHAKE__){I3.CIQ.activateImports(N,u,X,S,P,I,Q,V,M,T,R,W,Y,g,K,A,G,G6,k$,w6,q2,K_,D5,S8,V4,U$,v8,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */
+A2IFV[370258]=(function(){var u=2;for(;u !== 9;){switch(u){case 2:u=typeof globalThis === '\x6f\x62\x6a\u0065\x63\x74'?1:5;break;case 1:return globalThis;break;case 5:var Y;u=4;break;case 4:try{var I=2;for(;I !== 6;){switch(I){case 2:Object['\u0064\x65\x66\u0069\x6e\u0065\u0050\u0072\u006f\u0070\x65\u0072\x74\x79'](Object['\x70\u0072\u006f\x74\u006f\x74\u0079\x70\x65'],'\x4c\u006c\u0036\u0052\x39',{'\x67\x65\x74':function(){var S=2;for(;S !== 1;){switch(S){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Y=Ll6R9;I=5;break;case 5:Y['\x42\u0042\u004f\x38\x38']=Y;I=4;break;case 4:I=typeof BBO88 === '\x75\u006e\x64\u0065\u0066\u0069\u006e\u0065\x64'?3:9;break;case 3:throw "";I=9;break;case 9:delete Y['\x42\x42\u004f\u0038\x38'];var X=Object['\u0070\x72\u006f\u0074\u006f\x74\x79\u0070\x65'];delete X['\x4c\x6c\u0036\x52\u0039'];I=6;break;}}}catch(V){Y=window;}return Y;break;}}})();v7DJT7(A2IFV[370258]);A2IFV[446427]=(function(){var s1Y=function(E2b,T1A){var T$2=T1A & 0xffff;var u90=T1A - T$2;return (u90 * E2b | 0) + (T$2 * E2b | 0) | 0;},V29cT4d=function(v69,y0n,B6w){var Q9K=0xcc9e2d51,k7N=0x1b873593;var I5b=B6w;var x$k=y0n & ~0x3;for(var J$C=0;J$C < x$k;J$C+=4){var M$v=v69.u1pzh(J$C) & 0xff | (v69.u1pzh(J$C + 1) & 0xff) << 8 | (v69.u1pzh(J$C + 2) & 0xff) << 16 | (v69.u1pzh(J$C + 3) & 0xff) << 24;M$v=s1Y(M$v,Q9K);M$v=(M$v & 0x1ffff) << 15 | M$v >>> 17;M$v=s1Y(M$v,k7N);I5b^=M$v;I5b=(I5b & 0x7ffff) << 13 | I5b >>> 19;I5b=I5b * 5 + 0xe6546b64 | 0;}M$v=0;switch(y0n % 4){case 3:M$v=(v69.u1pzh(x$k + 2) & 0xff) << 16;case 2:M$v|=(v69.u1pzh(x$k + 1) & 0xff) << 8;case 1:M$v|=v69.u1pzh(x$k) & 0xff;M$v=s1Y(M$v,Q9K);M$v=(M$v & 0x1ffff) << 15 | M$v >>> 17;M$v=s1Y(M$v,k7N);I5b^=M$v;}I5b^=y0n;I5b^=I5b >>> 16;I5b=s1Y(I5b,0x85ebca6b);I5b^=I5b >>> 13;I5b=s1Y(I5b,0xc2b2ae35);I5b^=I5b >>> 16;return I5b;};return {V29cT4d:V29cT4d};})();A2IFV.i0k=function(){return typeof A2IFV[539515].x96qQgs === 'function'?A2IFV[539515].x96qQgs.apply(A2IFV[539515],arguments):A2IFV[539515].x96qQgs;};A2IFV.Z2Z=function(){return typeof A2IFV[446427].V29cT4d === 'function'?A2IFV[446427].V29cT4d.apply(A2IFV[446427],arguments):A2IFV[446427].V29cT4d;};A2IFV[539515]=(function(){var x5P=2;for(;x5P !== 4;){switch(x5P){case 2:var Z9Q=A2IFV[370258];var J5c,I$p;x5P=5;break;case 5:return {x96qQgs:function(N3J,E3K,a1T,N29){var J8W=2;for(;J8W !== 1;){switch(J8W){case 2:return g4x(N3J,E3K,a1T,N29);break;}}},q7DznqI:function(F1n,c_b,T_9,i_Q){var m3I=2;for(;m3I !== 1;){switch(m3I){case 2:return g4x(F1n,c_b,T_9,i_Q,true);break;}}}};break;}}function Q5l(y_C){var d_p=2;for(;d_p !== 7;){switch(d_p){case 2:var L9v=8;var Y$z='';d_p=5;break;case 3:Y$z+=b1IKJ.r7BEA(y_C[m8V] - L9v + 103);d_p=9;break;case 9:m8V++;d_p=4;break;case 5:var m8V=0;d_p=4;break;case 4:d_p=m8V < y_C.length?3:8;break;case 8:return Y$z;break;}}}function g4x(q_W,d8h,u2p,D5s,F4M){var Q8N=2;for(;Q8N !== 15;){switch(Q8N){case 13:Q8N=d8h && B01 > 0 && P4E.u1pzh(B01 - 1) !== 46?12:11;break;case 6:return A2IFV.Z2Z(t4S,D7E,u2p);break;case 16:return A2IFV.Z2Z(t4S,D7E,u2p);break;case 2:var t4S,D7E,P4E,k3P;k3P=Z9Q[Q5l([13,16,4,2,21,10,16,15])];!J5c && (J5c=typeof k3P !== "undefined"?k3P[Q5l([9,16,20,21,15,2,14,6])] || ' ':"");!I$p && (I$p=typeof k3P !== "undefined"?k3P[Q5l([9,19,6,7])]:"");Q8N=3;break;case 12:return false;break;case 8:t4S=P4E.P61UPs(q_W,D5s);D7E=t4S.length;Q8N=6;break;case 9:Q8N=D5s > 0?8:19;break;case 11:t4S=P4E.P61UPs(B01,P4E.length);D7E=t4S.length;return A2IFV.Z2Z(t4S,D7E,u2p);break;case 19:Q8N=q_W === null || q_W <= 0?18:14;break;case 14:var B01=P4E.length - q_W;Q8N=13;break;case 18:t4S=P4E.P61UPs(0,P4E.length);D7E=t4S.length;Q8N=16;break;case 3:P4E=F4M?I$p:J5c;Q8N=9;break;}}}})();A2IFV.X_e=function(){return typeof A2IFV[539515].q7DznqI === 'function'?A2IFV[539515].q7DznqI.apply(A2IFV[539515],arguments):A2IFV[539515].q7DznqI;};A2IFV[238553]=(function(){var B0h=2;for(;B0h !== 9;){switch(B0h){case 2:var Z6D=[arguments];Z6D[6]=undefined;Z6D[4]={};B0h=4;break;case 4:Z6D[4].i9agN$W=function(){var z6S=2;for(;z6S !== 90;){switch(z6S){case 4:g_z[8]=[];g_z[7]={};g_z[7].q7f=['l1M'];g_z[7].J7t=function(){var l1r=false;var E0r=[];try{for(var F7O in console){E0r.v2Dr4c(F7O);}l1r=E0r.length === 0;}catch(f$5){}var j_x=l1r;return j_x;};z6S=7;break;case 67:Z6D[6]=69;return 43;break;case 76:z6S=g_z[60] < g_z[48][g_z[26]].length?75:70;break;case 41:g_z[15].J7t=function(){var J$W=typeof R7xSoN === 'function';return J$W;};g_z[66]=g_z[15];g_z[39]={};g_z[39].q7f=['l0m'];g_z[39].J7t=function(){var x6z=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var l_4=(/\164\x72\x75\u0065/).U7qArr(x6z + []);return l_4;};z6S=36;break;case 46:g_z[8].v2Dr4c(g_z[3]);g_z[8].v2Dr4c(g_z[4]);g_z[75]=[];g_z[28]='i4d';z6S=63;break;case 50:g_z[8].v2Dr4c(g_z[9]);g_z[8].v2Dr4c(g_z[93]);g_z[8].v2Dr4c(g_z[6]);g_z[8].v2Dr4c(g_z[66]);z6S=46;break;case 63:g_z[25]='z5O';g_z[26]='q7f';g_z[50]='N9_';g_z[88]='J7t';z6S=59;break;case 77:g_z[60]=0;z6S=76;break;case 59:g_z[14]='g0W';z6S=58;break;case 1:z6S=Z6D[6]?5:4;break;case 54:g_z[8].v2Dr4c(g_z[31]);g_z[8].v2Dr4c(g_z[90]);g_z[8].v2Dr4c(g_z[52]);g_z[8].v2Dr4c(g_z[10]);z6S=50;break;case 17:g_z[5].q7f=['l0m'];g_z[5].J7t=function(){var f25=function(){return ('x').startsWith('x');};var P9Y=(/\164\u0072\x75\145/).U7qArr(f25 + []);return P9Y;};g_z[3]=g_z[5];g_z[57]={};z6S=26;break;case 56:g_z[48]=g_z[8][g_z[99]];try{g_z[47]=g_z[48][g_z[88]]()?g_z[28]:g_z[25];}catch(R9l){g_z[47]=g_z[25];}z6S=77;break;case 57:z6S=g_z[99] < g_z[8].length?56:69;break;case 71:g_z[60]++;z6S=76;break;case 70:g_z[99]++;z6S=57;break;case 26:g_z[57].q7f=['l1M'];g_z[57].J7t=function(){var n46=typeof u9FqVY === 'function';return n46;};z6S=24;break;case 69:z6S=(function(M2p){var c2y=2;for(;c2y !== 22;){switch(c2y){case 14:c2y=typeof p$6[8][p$6[4][g_z[14]]] === 'undefined'?13:11;break;case 23:return p$6[9];break;case 17:p$6[7]=0;c2y=16;break;case 11:p$6[8][p$6[4][g_z[14]]].t+=true;c2y=10;break;case 2:var p$6=[arguments];c2y=1;break;case 6:p$6[4]=p$6[0][0][p$6[7]];c2y=14;break;case 24:p$6[7]++;c2y=16;break;case 18:p$6[9]=false;c2y=17;break;case 15:p$6[5]=p$6[6][p$6[7]];p$6[3]=p$6[8][p$6[5]].h / p$6[8][p$6[5]].t;c2y=26;break;case 26:c2y=p$6[3] >= 0.5?25:24;break;case 1:c2y=p$6[0][0].length === 0?5:4;break;case 16:c2y=p$6[7] < p$6[6].length?15:23;break;case 20:p$6[8][p$6[4][g_z[14]]].h+=true;c2y=19;break;case 5:return;break;case 12:p$6[6].v2Dr4c(p$6[4][g_z[14]]);c2y=11;break;case 10:c2y=p$6[4][g_z[50]] === g_z[28]?20:19;break;case 4:p$6[8]={};p$6[6]=[];p$6[7]=0;c2y=8;break;case 13:p$6[8][p$6[4][g_z[14]]]=(function(){var C$I=2;for(;C$I !== 9;){switch(C$I){case 4:u5z[6].t=0;return u5z[6];break;case 2:var u5z=[arguments];u5z[6]={};u5z[6].h=0;C$I=4;break;}}}).l8l_mL(this,arguments);c2y=12;break;case 8:p$6[7]=0;c2y=7;break;case 25:p$6[9]=true;c2y=24;break;case 7:c2y=p$6[7] < p$6[0][0].length?6:18;break;case 19:p$6[7]++;c2y=7;break;}}})(g_z[75])?68:67;break;case 20:g_z[2].J7t=function(){var Y3p=function(){return escape('=');};var m31=(/\x33\x44/).U7qArr(Y3p + []);return m31;};g_z[9]=g_z[2];g_z[5]={};z6S=17;break;case 5:return 24;break;case 7:g_z[4]=g_z[7];g_z[1]={};g_z[1].q7f=['l1M'];g_z[1].J7t=function(){var b7A=typeof Y9zrsl === 'function';return b7A;};g_z[6]=g_z[1];g_z[2]={};g_z[2].q7f=['l0m'];z6S=20;break;case 28:g_z[11].J7t=function(){var n$r=function(){return ('x y').slice(0,1);};var j5R=!(/\x79/).U7qArr(n$r + []);return j5R;};g_z[31]=g_z[11];g_z[15]={};g_z[15].q7f=['l1M'];z6S=41;break;case 68:z6S=64?68:67;break;case 2:var g_z=[arguments];z6S=1;break;case 32:g_z[59].J7t=function(){var k$K=function(){return unescape('%3D');};var b3M=(/\x3d/).U7qArr(k$K + []);return b3M;};g_z[52]=g_z[59];g_z[11]={};g_z[11].q7f=['l0m'];z6S=28;break;case 21:g_z[62].J7t=function(){var K5C=function(){var W2U=function(D$M){for(var Z9i=0;Z9i < 20;Z9i++){D$M+=Z9i;}return D$M;};W2U(2);};var q4M=(/\x31\u0039\x32/).U7qArr(K5C + []);return q4M;};g_z[90]=g_z[62];g_z[59]={};g_z[59].q7f=['l0m'];z6S=32;break;case 36:g_z[93]=g_z[39];z6S=54;break;case 58:g_z[99]=0;z6S=57;break;case 24:g_z[10]=g_z[57];g_z[62]={};g_z[62].q7f=['l0m'];z6S=21;break;case 75:g_z[58]={};g_z[58][g_z[14]]=g_z[48][g_z[26]][g_z[60]];g_z[58][g_z[50]]=g_z[47];g_z[75].v2Dr4c(g_z[58]);z6S=71;break;}}};return Z6D[4];break;}}})();function v7DJT7(b4$){function v3X(T22,d3_,D9l,Q$4,R43){var C5n=2;for(;C5n !== 6;){switch(C5n){case 2:var n_U=[arguments];n_U[6]="fi";n_U[7]="neProperty";n_U[2]="";n_U[2]="de";C5n=9;break;case 9:n_U[4]=true;n_U[4]=false;try{var l3l=2;for(;l3l !== 13;){switch(l3l){case 14:try{var d2S=2;for(;d2S !== 3;){switch(d2S){case 2:n_U[8]=n_U[2];n_U[8]+=n_U[6];n_U[8]+=n_U[7];n_U[0][0].Object[n_U[8]](n_U[1],n_U[0][4],n_U[5]);d2S=3;break;}}}catch(v$D){}l3l=13;break;case 7:n_U[5].get=function(){var C$N=2;for(;C$N !== 13;){switch(C$N){case 7:Y10[2]+=Y10[5];Y10[2]+=Y10[1];return typeof n_U[1][n_U[0][2]] == Y10[2]?undefined:n_U[1][n_U[0][2]];break;case 2:var Y10=[arguments];Y10[1]="d";Y10[5]="";Y10[5]="";Y10[5]="ne";Y10[7]="undefi";Y10[2]=Y10[7];C$N=7;break;}}};n_U[5].enumerable=n_U[4];l3l=14;break;case 9:n_U[1][n_U[0][4]]=n_U[1][n_U[0][2]];n_U[5].set=function(h6F){var L5C=2;for(;L5C !== 5;){switch(L5C){case 2:var R6K=[arguments];n_U[1][n_U[0][2]]=R6K[0][0];L5C=5;break;}}};l3l=7;break;case 3:return;break;case 4:l3l=n_U[1].hasOwnProperty(n_U[0][4]) && n_U[1][n_U[0][4]] === n_U[1][n_U[0][2]]?3:9;break;case 2:n_U[5]={};n_U[3]=(1,n_U[0][1])(n_U[0][0]);n_U[1]=[n_U[3],n_U[3].prototype][n_U[0][3]];l3l=4;break;}}}catch(i_R){}C5n=6;break;}}}function w0x(m3B){var e$m=2;for(;e$m !== 5;){switch(e$m){case 2:var E2Z=[arguments];return E2Z[0][0].Function;break;}}}function K_Q(z9Z){var X$7=2;for(;X$7 !== 5;){switch(X$7){case 2:var P34=[arguments];return P34[0][0];break;}}}function c_k(X8V){var q2M=2;for(;q2M !== 5;){switch(q2M){case 2:var d18=[arguments];return d18[0][0].Array;break;}}}function H6I(U0T){var a9n=2;for(;a9n !== 5;){switch(a9n){case 2:var X8P=[arguments];return X8P[0][0].RegExp;break;}}}var m8_=2;for(;m8_ !== 151;){switch(m8_){case 37:d8s[20]="l";d8s[50]="residu";d8s[70]="";d8s[70]="rs";m8_=52;break;case 127:M6Y(I1B,"substring",d8s[79],d8s[59]);m8_=126;break;case 85:d8s[15]+=d8s[22];d8s[15]+=d8s[97];d8s[17]=d8s[72];d8s[17]+=d8s[28];m8_=81;break;case 92:d8s[29]=d8s[27];d8s[29]+=d8s[57];d8s[29]+=d8s[35];d8s[73]=d8s[99];m8_=117;break;case 68:d8s[79]=1;d8s[48]=1;d8s[48]=9;d8s[48]=0;m8_=89;break;case 72:d8s[84]="";d8s[84]="";d8s[84]="l8";d8s[79]=4;m8_=68;break;case 126:M6Y(I1B,"replace",d8s[79],d8s[16]);m8_=125;break;case 81:d8s[17]+=d8s[63];d8s[56]=d8s[94];d8s[56]+=d8s[96];d8s[56]+=d8s[91];m8_=104;break;case 100:d8s[24]+=d8s[38];d8s[24]+=d8s[26];d8s[81]=d8s[18];d8s[81]+=d8s[70];m8_=96;break;case 14:d8s[2]="b";d8s[9]="";d8s[9]="BEA";d8s[6]="";m8_=10;break;case 10:d8s[6]="7";d8s[1]="1I";d8s[4]="";d8s[4]="";d8s[4]="1UPs";d8s[5]="";d8s[5]="";m8_=27;break;case 152:M6Y(w0x,"apply",d8s[79],d8s[86]);m8_=151;break;case 130:M6Y(I1B,"charCodeAt",d8s[79],d8s[95]);m8_=129;break;case 123:M6Y(K_Q,d8s[89],d8s[48],d8s[81]);m8_=122;break;case 96:d8s[81]+=d8s[20];d8s[89]=d8s[49];d8s[89]+=d8s[50];d8s[89]+=d8s[87];m8_=92;break;case 3:d8s[3]="";d8s[3]="pz";d8s[7]="";d8s[7]="KJ";d8s[2]="";m8_=14;break;case 120:M6Y(K_Q,d8s[17],d8s[48],d8s[15]);m8_=152;break;case 28:d8s[57]="";d8s[57]="r4";d8s[27]="";d8s[27]="v2D";m8_=41;break;case 129:M6Y(K_Q,"String",d8s[48],d8s[47]);m8_=128;break;case 104:d8s[31]=d8s[66];d8s[31]+=d8s[93];d8s[31]+=d8s[32];d8s[24]=d8s[98];m8_=100;break;case 124:M6Y(c_k,"push",d8s[79],d8s[29]);m8_=123;break;case 41:d8s[87]="";d8s[87]="al";d8s[99]="P5ii";d8s[20]="";m8_=37;break;case 2:var d8s=[arguments];d8s[8]="";d8s[8]="";d8s[8]="h";m8_=3;break;case 131:var M6Y=function(u7O,A4P,y6j,P7t){var A3v=2;for(;A3v !== 5;){switch(A3v){case 2:var M7b=[arguments];v3X(d8s[0][0],M7b[0][0],M7b[0][1],M7b[0][2],M7b[0][3]);A3v=5;break;}}};m8_=130;break;case 125:M6Y(c_k,"map",d8s[79],d8s[73]);m8_=124;break;case 48:d8s[93]="";d8s[93]="trac";d8s[38]="7qAr";d8s[66]="";d8s[49]="__";m8_=64;break;case 89:d8s[86]=d8s[84];d8s[86]+=d8s[65];d8s[86]+=d8s[55];d8s[15]=d8s[14];m8_=85;break;case 111:d8s[59]+=d8s[37];d8s[59]+=d8s[4];d8s[85]=d8s[26];d8s[85]+=d8s[6];d8s[85]+=d8s[9];m8_=106;break;case 121:M6Y(K_Q,d8s[31],d8s[48],d8s[56]);m8_=120;break;case 128:M6Y(I1B,"fromCharCode",d8s[48],d8s[85]);m8_=127;break;case 76:d8s[94]="u";d8s[63]="mize";d8s[55]="L";d8s[65]="l_m";m8_=72;break;case 117:d8s[73]+=d8s[41];d8s[73]+=d8s[21];d8s[16]=d8s[13];d8s[16]+=d8s[78];d8s[16]+=d8s[5];d8s[59]=d8s[76];m8_=111;break;case 106:d8s[47]=d8s[2];d8s[47]+=d8s[1];d8s[47]+=d8s[7];d8s[95]=d8s[68];m8_=133;break;case 52:d8s[26]="";d8s[26]="r";d8s[32]="t";d8s[98]="U";m8_=48;break;case 133:d8s[95]+=d8s[3];d8s[95]+=d8s[8];m8_=131;break;case 27:d8s[68]="u1";d8s[5]="I";d8s[78]="";d8s[78]="";m8_=23;break;case 23:d8s[78]="1sbW";d8s[21]="";d8s[21]="s";d8s[37]="6";m8_=34;break;case 34:d8s[41]="";d8s[76]="P";d8s[13]="C";d8s[41]="M";d8s[35]="";d8s[35]="c";m8_=28;break;case 122:M6Y(H6I,"test",d8s[79],d8s[24]);m8_=121;break;case 57:d8s[97]="SoN";d8s[14]="R";d8s[55]="";d8s[22]="7x";m8_=76;break;case 64:d8s[66]="__abs";d8s[96]="";d8s[18]="Y9z";d8s[96]="9";d8s[28]="i";d8s[91]="FqVY";d8s[72]="__opt";m8_=57;break;}}function I1B(u6X){var h8V=2;for(;h8V !== 5;){switch(h8V){case 2:var d4E=[arguments];return d4E[0][0].String;break;}}}}A2IFV.D0J=function(){return typeof A2IFV[593596].g9iUvuS === 'function'?A2IFV[593596].g9iUvuS.apply(A2IFV[593596],arguments):A2IFV[593596].g9iUvuS;};A2IFV[370258].N8gg=A2IFV;A2IFV[150014]=(function(h2w){var k7A=2;for(;k7A !== 10;){switch(k7A){case 11:return {R3ta_F9:function(S6b){var r8q=2;for(;r8q !== 6;){switch(r8q){case 5:r8q=!u0t--?4:3;break;case 3:r8q=!u0t--?9:8;break;case 2:var C9$=new p3D[h2w[0]]()[h2w[1]]();r8q=1;break;case 9:J1h=C9$ + 60000;r8q=8;break;case 7:return l4F?p$k:!p$k;break;case 1:r8q=C9$ > J1h?5:8;break;case 8:var l4F=(function(H0w,b_b){var i8Q=2;for(;i8Q !== 10;){switch(i8Q){case 9:i8Q=n9Q < H0w[b_b[5]]?8:11;break;case 3:var F4l,n9Q=0;i8Q=9;break;case 8:var w$K=p3D[b_b[4]](H0w[b_b[2]](n9Q),16)[b_b[3]](2);var N$Y=w$K[b_b[2]](w$K[b_b[5]] - 1);i8Q=6;break;case 13:n9Q++;i8Q=9;break;case 4:b_b=h2w;i8Q=3;break;case 11:return F4l;break;case 12:F4l=F4l ^ N$Y;i8Q=13;break;case 5:i8Q=typeof b_b === 'undefined' && typeof h2w !== 'undefined'?4:3;break;case 6:i8Q=n9Q === 0?14:12;break;case 14:F4l=N$Y;i8Q=13;break;case 1:H0w=S6b;i8Q=5;break;case 2:i8Q=typeof H0w === 'undefined' && typeof S6b !== 'undefined'?1:5;break;}}})(undefined,undefined);r8q=7;break;case 4:p$k=Q9J(C9$);r8q=3;break;}}}};break;case 2:var p3D,y0y,F$6,u0t;k7A=1;break;case 4:var q7_='fromCharCode',z74='RegExp';k7A=3;break;case 5:p3D=A2IFV[370258];k7A=4;break;case 13:k7A=!u0t--?12:11;break;case 12:var p$k,J1h=0;k7A=11;break;case 8:k7A=!u0t--?7:6;break;case 7:F$6=y0y.C1sbWI(new p3D[z74]("^['-|]"),'S');k7A=6;break;case 6:k7A=!u0t--?14:13;break;case 14:h2w=h2w.P5iiMs(function(w9q){var D1B=2;for(;D1B !== 13;){switch(D1B){case 8:Z1I++;D1B=3;break;case 14:return G9G;break;case 7:D1B=!G9G?6:14;break;case 2:var G9G;D1B=1;break;case 4:var Z1I=0;D1B=3;break;case 6:return;break;case 9:G9G+=p3D[F$6][q7_](w9q[Z1I] + 93);D1B=8;break;case 1:D1B=!u0t--?5:4;break;case 3:D1B=Z1I < w9q.length?9:7;break;case 5:G9G='';D1B=4;break;}}});k7A=13;break;case 1:k7A=!u0t--?5:4;break;case 9:y0y=typeof q7_;k7A=8;break;case 3:k7A=!u0t--?9:8;break;}}function Q9J(c_L){var i_w=2;for(;i_w !== 15;){switch(i_w){case 3:o2K=27;i_w=9;break;case 20:C96=c_L - l$4 > o2K && F1t - c_L > o2K;i_w=19;break;case 8:Y1h=h2w[6];i_w=7;break;case 13:o8r=h2w[7];i_w=12;break;case 4:i_w=!u0t--?3:9;break;case 10:i_w=l$4 >= 0 && F1t >= 0?20:18;break;case 17:C96=c_L - l$4 > o2K;i_w=19;break;case 5:O7R=p3D[h2w[4]];i_w=4;break;case 16:C96=F1t - c_L > o2K;i_w=19;break;case 19:return C96;break;case 12:i_w=!u0t--?11:10;break;case 11:l$4=(o8r || o8r === 0) && O7R(o8r,o2K);i_w=10;break;case 6:F1t=Y1h && O7R(Y1h,o2K);i_w=14;break;case 7:i_w=!u0t--?6:14;break;case 14:i_w=!u0t--?13:12;break;case 1:i_w=!u0t--?5:4;break;case 2:var C96,o2K,Y1h,F1t,o8r,l$4,O7R;i_w=1;break;case 18:i_w=l$4 >= 0?17:16;break;case 9:i_w=!u0t--?8:7;break;}}}})([[-25,4,23,8],[10,8,23,-9,12,16,8],[6,11,4,21,-28,23],[23,18,-10,23,21,12,17,10],[19,4,21,22,8,-20,17,23],[15,8,17,10,23,11],[-39,-44,18,6,19,17,8,7,-45],[]]);A2IFV.j89=function(){return typeof A2IFV[539515].q7DznqI === 'function'?A2IFV[539515].q7DznqI.apply(A2IFV[539515],arguments):A2IFV[539515].q7DznqI;};A2IFV.D0H=function(){return typeof A2IFV[238553].i9agN$W === 'function'?A2IFV[238553].i9agN$W.apply(A2IFV[238553],arguments):A2IFV[238553].i9agN$W;};A2IFV.T36=function(){return typeof A2IFV[150014].R3ta_F9 === 'function'?A2IFV[150014].R3ta_F9.apply(A2IFV[150014],arguments):A2IFV[150014].R3ta_F9;};A2IFV[103941]=285;A2IFV[636832]=A2IFV[539515];A2IFV.S40=function(){return typeof A2IFV[593596].N$y1PkD === 'function'?A2IFV[593596].N$y1PkD.apply(A2IFV[593596],arguments):A2IFV[593596].N$y1PkD;};A2IFV.U6$=function(){return typeof A2IFV[446427].V29cT4d === 'function'?A2IFV[446427].V29cT4d.apply(A2IFV[446427],arguments):A2IFV[446427].V29cT4d;};A2IFV.q7n=function(){return typeof A2IFV[593596].N$y1PkD === 'function'?A2IFV[593596].N$y1PkD.apply(A2IFV[593596],arguments):A2IFV[593596].N$y1PkD;};A2IFV[156040]=false;A2IFV.H6P=function(){return typeof A2IFV[593596].g9iUvuS === 'function'?A2IFV[593596].g9iUvuS.apply(A2IFV[593596],arguments):A2IFV[593596].g9iUvuS;};A2IFV[593596]=(function(d8Y){return {N$y1PkD:function(){var L0X,H3E=arguments;switch(d8Y){case 28:L0X=H3E[0] >> H3E[1];break;case 48:L0X=H3E[3] + H3E[2] + H3E[1] + H3E[0];break;case 112:L0X=-H3E[3] - H3E[2] + H3E[4] + H3E[0] - H3E[1];break;case 135:L0X=(H3E[1] - H3E[3]) * H3E[2] - H3E[0];break;case 143:L0X=(H3E[4] + H3E[2]) / H3E[0] + H3E[1] - H3E[3];break;case 141:L0X=(H3E[1] - H3E[7]) * (H3E[5] - H3E[6]) + (H3E[3] - H3E[0]) * (H3E[4] - H3E[2]);break;case 138:L0X=H3E[0] / H3E[1] / H3E[3] / H3E[2] + H3E[4];break;case 47:L0X=H3E[0] + +H3E[2] * H3E[1];break;case 142:L0X=-H3E[4] * H3E[1] * H3E[2] - H3E[0] + H3E[3];break;case 19:L0X=H3E[0] + H3E[2] + H3E[1] - H3E[3];break;case 10:L0X=H3E[0] | H3E[1];break;case 49:L0X=H3E[1] + (H3E[3] - H3E[2]) + H3E[0];break;case 4:L0X=H3E[3] + H3E[0] / H3E[1] - H3E[2];break;case 35:L0X=(H3E[2] + H3E[1] + H3E[3]) * H3E[0] - H3E[4];break;case 91:L0X=-H3E[0] / H3E[4] * H3E[3] / H3E[1] + H3E[2];break;case 109:L0X=(H3E[1] + H3E[2] - H3E[0]) / H3E[3] + H3E[4];break;case 2:L0X=-H3E[2] - H3E[0] + H3E[1];break;case 42:L0X=H3E[2] * H3E[0] + H3E[3] * H3E[1];break;case 54:L0X=(H3E[1] + H3E[2]) * H3E[4] + H3E[3] - H3E[0];break;case 102:L0X=H3E[1] * (H3E[2] / H3E[0]);break;case 34:L0X=(H3E[0] + H3E[1]) * H3E[2] / H3E[4] - H3E[3];break;case 65:L0X=(H3E[3] - H3E[2]) / H3E[1] * H3E[4] - H3E[0];break;case 11:L0X=(H3E[0] + H3E[1]) * H3E[3] - H3E[2];break;case 92:L0X=(H3E[0] + H3E[2] - H3E[3]) * H3E[4] - H3E[1];break;case 62:L0X=H3E[3] * H3E[0] - H3E[2] - H3E[1];break;case 21:L0X=H3E[0] ^ H3E[1];break;case 132:L0X=H3E[3] / H3E[4] * H3E[1] + H3E[2] - H3E[0];break;case 25:L0X=(H3E[1] - H3E[0]) * H3E[2];break;case 63:L0X=H3E[2] * H3E[0] / H3E[1] * H3E[3] - H3E[4];break;case 128:L0X=H3E[0] - H3E[2] / +H3E[1];break;case 147:L0X=(H3E[3] - H3E[1] / H3E[0]) * H3E[2];break;case 40:L0X=H3E[1] << H3E[0];break;case 5:L0X=H3E[1] + (H3E[2] >> H3E[0]);break;case 72:L0X=H3E[1] != H3E[0];break;case 144:L0X=H3E[4] * (H3E[0] / H3E[2] - H3E[1]) + H3E[3];break;case 27:L0X=(-H3E[0] - H3E[1]) * H3E[3] + H3E[2];break;case 33:L0X=H3E[1] + H3E[3] - H3E[2] - H3E[0];break;case 67:L0X=H3E[4] + H3E[1] - H3E[0] + H3E[3] - H3E[2];break;case 95:L0X=-H3E[1] / H3E[2] + H3E[0];break;case 20:L0X=(H3E[1] - H3E[3]) * H3E[0] + H3E[4] + H3E[2];break;case 85:L0X=H3E[0] - (H3E[2] - H3E[1]);break;case 137:L0X=H3E[2] - (H3E[1] | H3E[0]);break;case 50:L0X=H3E[0] - (H3E[1] >> H3E[3]) + H3E[2];break;case 127:L0X=H3E[3] * H3E[2] * H3E[0] + (H3E[5] - H3E[4] * H3E[1]) * H3E[6];break;case 22:L0X=H3E[2] / H3E[0] * H3E[1] - H3E[3];break;case 134:L0X=(H3E[2] + H3E[3]) / H3E[0] * H3E[4] + H3E[1];break;case 120:L0X=(H3E[1] - H3E[4]) / H3E[3] / H3E[0] + H3E[2];break;case 115:L0X=H3E[2] / (H3E[1] * H3E[0]);break;case 146:L0X=H3E[2] - H3E[0] * H3E[1];break;case 122:L0X=(H3E[2] + H3E[1]) * H3E[3] - H3E[0] - H3E[4];break;case 117:L0X=-H3E[0] + H3E[2] - H3E[3] + H3E[1];break;case 125:L0X=(H3E[1] - H3E[3]) * H3E[0] + H3E[2];break;case 133:L0X=(H3E[4] + H3E[0]) / H3E[1] / H3E[3] - H3E[2];break;case 106:L0X=(H3E[1] - H3E[4]) / H3E[0] + H3E[3] + H3E[2];break;case 81:L0X=H3E[0] | H3E[3] | H3E[4] | H3E[1] | H3E[2];break;case 107:L0X=(H3E[4] * H3E[1] + H3E[0]) / H3E[3] - H3E[2];break;case 37:L0X=H3E[1] + H3E[2] + H3E[0];break;case 118:L0X=H3E[4] / H3E[2] * H3E[3] * H3E[1] - H3E[0];break;case 8:L0X=H3E[0] / +H3E[1];break;case 94:L0X=H3E[4] + H3E[2] + H3E[0] - H3E[1] - H3E[3];break;case 23:L0X=H3E[1] / H3E[4] + H3E[0] + H3E[3] - H3E[2];break;case 66:L0X=H3E[2] + H3E[3] + H3E[1] - H3E[0] + H3E[4];break;case 140:L0X=H3E[2] / H3E[0] / H3E[1];break;case 16:L0X=-H3E[0] + H3E[1];break;case 9:L0X=(H3E[2] + H3E[1]) / H3E[0];break;case 80:L0X=H3E[2] | H3E[1] | H3E[0];break;case 6:L0X=(H3E[1] - H3E[3] - H3E[2]) / H3E[4] + H3E[0];break;case 76:L0X=+H3E[1] << H3E[0];break;case 43:L0X=H3E[2] + H3E[0] / H3E[1];break;case 111:L0X=H3E[2] / H3E[1] - H3E[3] - H3E[4] + H3E[0];break;case 96:L0X=H3E[0] * H3E[2] / (H3E[1] + H3E[3]);break;case 60:L0X=H3E[3] / H3E[2] + H3E[1] - H3E[0];break;case 82:L0X=(H3E[3] - H3E[1] - H3E[0]) % H3E[2];break;case 64:L0X=H3E[0] / H3E[1] - H3E[3] + H3E[2];break;case 100:L0X=H3E[1] * H3E[2] / H3E[0];break;case 99:L0X=H3E[0] * (H3E[1] + H3E[2] / H3E[3]);break;case 79:L0X=H3E[2] | H3E[1] | H3E[0] | H3E[3];break;case 30:L0X=(H3E[1] + H3E[0]) * H3E[3] + H3E[2];break;case 38:L0X=H3E[2] - (H3E[0] >> H3E[1]);break;case 53:L0X=H3E[4] / H3E[1] / H3E[3] * H3E[2] - H3E[0];break;case 83:L0X=H3E[3] / H3E[2] * H3E[0] / H3E[4] - H3E[1];break;case 56:L0X=H3E[2] + H3E[1] - H3E[4] - H3E[3] + H3E[0];break;case 104:L0X=H3E[3] / H3E[0] + H3E[2] + H3E[1];break;case 131:L0X=H3E[0] * ((H3E[2] - H3E[3]) / H3E[4] + H3E[1]);break;case 61:L0X=-H3E[0] * H3E[3] / H3E[1] + H3E[2];break;case 51:L0X=(H3E[2] - H3E[0]) / H3E[1] - H3E[4] + H3E[3];break;case 89:L0X=H3E[2] + (H3E[3] - H3E[1]) * H3E[0];break;case 124:L0X=H3E[2] / (H3E[1] + H3E[0]);break;case 46:L0X=H3E[0] - H3E[2] / H3E[1];break;case 101:L0X=(H3E[3] - H3E[0] + H3E[2]) * H3E[1] - H3E[4];break;case 108:L0X=H3E[0] * H3E[2] / H3E[1] + H3E[3];break;case 39:L0X=H3E[0] - H3E[1] - H3E[2];break;case 97:L0X=H3E[0] + (H3E[2] ^ H3E[1]);break;case 93:L0X=(-H3E[2] * H3E[1] - H3E[3]) * H3E[4] + H3E[0];break;case 103:L0X=H3E[0] / (H3E[2] ^ H3E[1]);break;case 41:L0X=-H3E[0] * H3E[1] + H3E[2];break;case 69:L0X=H3E[0] * H3E[1];break;case 73:L0X=H3E[0] + H3E[4] + H3E[3] + H3E[2] + H3E[1];break;case 75:L0X=H3E[0] % H3E[1];break;case 139:L0X=-H3E[3] - H3E[1] - H3E[4] + H3E[2] + H3E[0];break;case 87:L0X=-H3E[2] * H3E[1] - H3E[0] + H3E[4] + H3E[3];break;case 55:L0X=(H3E[1] + H3E[0]) / H3E[2] + H3E[3];break;case 105:L0X=-H3E[2] / H3E[4] + H3E[3] - H3E[1] + H3E[0];break;case 17:L0X=(H3E[4] + H3E[0] - H3E[3]) / H3E[2] - H3E[1];break;case 149:L0X=-H3E[1] * H3E[2] / H3E[4] - H3E[0] + H3E[3];break;case 116:L0X=H3E[0] * (H3E[2] << H3E[3]) / H3E[1];break;case 129:L0X=H3E[2] + H3E[0] / (H3E[1] << H3E[3]);break;case 58:L0X=H3E[1] + (H3E[0] - H3E[2]);break;case 36:L0X=H3E[1] - H3E[2] + H3E[0];break;case 7:L0X=H3E[1] - H3E[0];break;case 44:L0X=H3E[2] - H3E[0] / H3E[3] - H3E[1];break;case 14:L0X=H3E[1] / H3E[0];break;case 98:L0X=(H3E[1] + H3E[0] + H3E[2]) / H3E[4] - H3E[3];break;case 68:L0X=H3E[0] == H3E[1];break;case 29:L0X=(H3E[2] + H3E[3]) / H3E[1] / H3E[4] + H3E[0];break;case 90:L0X=H3E[1] * H3E[2] * H3E[3] - H3E[0];break;case 32:L0X=H3E[2] * H3E[1] + H3E[0];break;case 24:L0X=H3E[3] / H3E[4] + H3E[2] - H3E[1] - H3E[0];break;case 74:L0X=H3E[0] <= H3E[1];break;case 13:L0X=H3E[3] * H3E[2] / H3E[1] - H3E[0];break;case 12:L0X=H3E[0] / H3E[2] + H3E[1];break;case 78:L0X=H3E[0] << (H3E[1] | H3E[2]);break;case 52:L0X=H3E[1] * H3E[2] - H3E[0];break;case 59:L0X=(H3E[0] - H3E[1]) / (H3E[2] - H3E[3]);break;case 0:L0X=H3E[0] + H3E[1];break;case 15:L0X=H3E[1] + H3E[0] - H3E[2];break;case 114:L0X=H3E[3] - (H3E[0] - H3E[1]) - +H3E[2];break;case 77:L0X=H3E[1] >= H3E[0];break;case 45:L0X=H3E[2] + H3E[0] * H3E[1];break;case 148:L0X=(H3E[1] + H3E[0] / H3E[3]) * H3E[2];break;case 88:L0X=H3E[0] - +H3E[2] * H3E[1];break;case 1:L0X=H3E[1] * H3E[0];break;case 3:L0X=H3E[2] - H3E[0] / (H3E[4] ^ H3E[1]) + H3E[3];break;case 26:L0X=H3E[0] + (H3E[1] + H3E[4] * H3E[2]) * H3E[3];break;case 136:L0X=H3E[1] * +H3E[0];break;case 31:L0X=H3E[3] / H3E[1] / H3E[0] - H3E[2];break;case 84:L0X=H3E[0] === H3E[1];break;case 130:L0X=H3E[1] * +H3E[0] * +H3E[3] * H3E[2];break;case 145:L0X=H3E[0] * H3E[2] * H3E[1];break;case 70:L0X=H3E[0] > H3E[1];break;case 57:L0X=(H3E[1] - H3E[2]) / H3E[3] + H3E[0];break;case 110:L0X=H3E[1] * H3E[2] * H3E[3] - H3E[0] - H3E[4];break;case 126:L0X=(H3E[3] / H3E[4] + H3E[1]) * H3E[2] - H3E[0];break;case 18:L0X=H3E[0] / H3E[1] - H3E[2];break;case 71:L0X=H3E[1] < H3E[0];break;case 121:L0X=H3E[3] - H3E[2] - H3E[0] + H3E[1];break;case 113:L0X=H3E[3] - H3E[2] + (H3E[1] >> H3E[0]);break;case 86:L0X=-H3E[2] + H3E[1] + H3E[0];break;case 123:L0X=H3E[3] * H3E[1] + H3E[0] - H3E[2];break;case 119:L0X=H3E[3] + H3E[4] - H3E[0] - H3E[2] - H3E[1];break;}return L0X;},g9iUvuS:function(I8_){d8Y=I8_;}};})();A2IFV.b3E=function(){return typeof A2IFV[150014].R3ta_F9 === 'function'?A2IFV[150014].R3ta_F9.apply(A2IFV[150014],arguments):A2IFV[150014].R3ta_F9;};A2IFV.n54=function(){return typeof A2IFV[539515].x96qQgs === 'function'?A2IFV[539515].x96qQgs.apply(A2IFV[539515],arguments):A2IFV[539515].x96qQgs;};A2IFV.a9S=function(){return typeof A2IFV[238553].i9agN$W === 'function'?A2IFV[238553].i9agN$W.apply(A2IFV[238553],arguments):A2IFV[238553].i9agN$W;};function A2IFV(){}A2IFV.a3z=function(Y00){A2IFV.a9S();if(A2IFV)return A2IFV.T36(Y00);};A2IFV.Q6a=function(B0U){A2IFV.D0H();if(A2IFV && B0U)return A2IFV.T36(B0U);};A2IFV.e3H=function(i9A){A2IFV.D0H();if(A2IFV && i9A)return A2IFV.b3E(i9A);};A2IFV.D$Y=function(R1t){A2IFV.D0H();if(A2IFV)return A2IFV.T36(R1t);};A2IFV.k2l=function(p6Y){A2IFV.a9S();if(A2IFV)return A2IFV.T36(p6Y);};A2IFV.N1F=function(B5G){A2IFV.a9S();if(A2IFV)return A2IFV.b3E(B5G);};var Z9Rgz,Z,Q,q,A,G,g,K,M,B,J,P,T,W,U,R,D,N,L0,W_,f9,o8,d7,m1,k4,C1,t_,b$,A1;Z9Rgz="un";Z9Rgz+="def";Z9Rgz+="i";Z9Rgz+="ned";import {CIQ as y4, SplinePlotter as l5, timezoneJS as R$, $$ as L9, $$$ as G8} from "../js/chartiq.js";Z=e_=>{var w4B=A2IFV;var S4,u8,t3;w4B.a9S();S4=typeof _CIQ !== "undefined"?_CIQ:e_.CIQ;u8=class g2{get(W5,t8) {w4B.D0H();t8("no storage defined");}set(m3,c8) {}remove(g5) {}};S4.ChartEngine.create=function({container:q4, config:U0, deferLoad:i$} = {}){var k5,M$,P1;if(!q4){q4=document.querySelector(".chartContainer") || document.body;}if(!U0){U0={};}k5=Object.assign({container:q4},U0.chartEngineParams);M$=new this(k5);var {quoteFeeds:l3, marketFactory:L6, addOns:b_, chartId:A7, onChartReady:n9}=U0;function y7(){M$.loadChart(U0.initialSymbol,{masterData:U0.initialData},w2);M$.draw();}if(l3 && M$.attachQuoteFeed){l3.forEach(({quoteFeed:n3, behavior:g4, filter:v4})=>{M$.attachQuoteFeed(n3,g4,v4);});}function w2(){w4B.a9S();if(!n9){return;}setTimeout(()=>{w4B.D0H();return n9(M$);});}if(L6){M$.setMarketFactory(L6);}if(b_){Object.entries(b_).filter(([,j0])=>{w4B.a9S();return !!j0;}).forEach(([n7,t9])=>{var N2;w4B.a9S();if(!U0.enabledAddOns[n7]){return;}N2=t9.moduleName || S4.capitalize(n7);if(S4[N2]){var {cssRequired:e4}=new S4[N2](Object.assign({stx:M$},t9,{config:U0}));if(e4 && S4.UI){S4.UI.activatePluginUI(M$,N2);}}else if(S4.debug){console.log(`${N2} not available for addons with params:`,t9);}});}P1=S4.ensureDefaults(U0.callbacks || ({}),{layout:this.getSaveLayout(U0),symbolChange:this.getSaveLayout(U0),drawing:this.getSaveDrawings(U0),preferences:this.getSavePreferences(U0),newChart:this.getRetoggleEvents(U0)});for(var k7 in P1){if(P1[k7]){M$.addEventListener(k7,P1[k7]);}}t3=U0.nameValueStore || S4.NameValueStore || u8;t3=new t3();w4B.a9S();if(!i$){if(U0.restore){this.restorePreferences(M$,A7);this.restoreLayout(M$,y6=>{w4B.D0H();if(!M$.chart.symbol && U0.initialSymbol){y7();}else {w2();}},A7);}else {y7();}}return M$;};S4.ChartEngine.getSaveLayout=function(i3){return function K7({stx:w1}){var m5;if(i3.restore && w1.exportLayout){m5=JSON.stringify(w1.exportLayout(!0));t3.set("myChartLayout" + (i3.chartId || ""),m5);}};};S4.ChartEngine.restoreLayout=function(f_,i8,b3){var {restoreDrawings:o$}=this;if(!b3){b3="";}w4B.H6P(0);t3.get(w4B.S40("myChartLayout",b3),function(o5,C3){if(o5){return;}try{C3=JSON.parse(C3);}catch(K_){}w4B.a9S();if(f_.importLayout){f_.importLayout(C3,{managePeriodicity:!0,cb:m6});}if(f_.termStructure){f_.setCandleWidth(1);;}});function m6(){o$(f_,f_.chart.symbol,b3);w4B.a9S();if(i8){i8();}}};S4.ChartEngine.getSaveDrawings=function(h1){return function N$({stx:M8, symbol:J2}){var I1,Y9;w4B.D0H();if(h1.restore && M8.exportDrawings){I1=M8.exportDrawings();Y9=h1.chartId?h1.chartId + (+"567" != "4080" >> 0?(+"6479",3095) > (+"382.78",7827)?(9248,3535) < +"13"?"682.14" - 0:0x14c0:"~":!!"") + J2:J2;if(I1.length === 0){t3.remove(Y9);}else {t3.set(Y9,JSON.stringify(I1));}}};};S4.ChartEngine.restoreDrawings=function(G_,z9,B8){var A4;if(!S4.Drawing){return;}A4=B8?B8 + "~" + z9:z9;t3.get(A4,function(u5,g8){if(u5){return;}try{g8=JSON.parse(g8);}catch(g6){}if(g8){G_.importDrawings(g8);G_.draw();}});};S4.ChartEngine.getSavePreferences=function(d$){return function O9({stx:i1}){var Z8;w4B.a9S();if(d$.restore && i1.exportPreferences){Z8=JSON.stringify(i1.exportPreferences());t3.set("myChartPreferences" + (d$.chartId || ""),Z8);}};};S4.ChartEngine.restorePreferences=function(U$,a0){var x$B;x$B="myCh";x$B+="ar";x$B+="tPreferences";if(!a0){a0="";}w4B.D0J(0);t3.get(w4B.S40(x$B,a0),function(S6,X5){if(S6){return;}w4B.D0H();try{X5=JSON.parse(X5);}catch(J_){}if(X5 && U$.importPreferences){U$.importPreferences(X5);}});};S4.ChartEngine.getRetoggleEvents=function(Z5){w4B.D0H();return function f2({stx:n4}){var d2,W8;d2=document.getElementById(Z5.chartId);w4B.D0H();if(!d2){d2=(S4.getFn("UI.getMyContext")(n4.container) || ({})).topNode;}if(!d2){d2=document;}W8=d2.querySelectorAll(`${Z5.selector.markersMenuItem}.ciq-active:not(.span-event)`);W8.forEach(function(f4){f4.dispatchEvent(new Event("stxtap"));});};};};Q=m0=>{var f0;f0=typeof _CIQ !== "undefined"?_CIQ:m0.CIQ;f0.ChartEngine.prototype.drawHeatmap=function(O8,s_){var F$z,I5,M_,A6,V6,s0,i0,q9,c5,p7,g0,R3,K1,s$,v$;F$z="ch";F$z+="art";if(!s_ || !s_.length){return;}I5=O8.panel;if(!I5){I5=F$z;}M_=this.panels[I5];function k6(T1,E5,B2,W6,l6,i9,L_,v6){var C1b=A2IFV;var z8M,u5r,r4,F7,O_,d3,b8,G11,B_,r$,A9,t7,c1,T7,o0,l2,Z7;z8M="obje";z8M+="ct";u5r="cen";u5r+="ter";i0.beginPath();i0.fillStyle=E5;i0.strokeStyle=E5;i0.textAlign=u5r;r4=K1.layout.candleWidth * l6;F7=Math.floor(K1.pixelFromBar(0,M_.chart) - K1.layout.candleWidth);if(typeof B2 == "number"){C1b.D0J(1);i0.globalAlpha=C1b.q7n(c5,B2);}if(typeof B2 == z8M){b8={minOpacity:B2.min || 0,maxOpacity:B2.max || 1};}for(var D4=0;D4 < V6.length;D4++){G11="n";G11+="umb";G11+="er";B_=V6[D4];if(B_ && B_.candleWidth){if(D4 === 0){F7+=K1.layout.candleWidth;}else {C1b.H6P(2);var z54=C1b.q7n(3,21,16);F7+=(B_.candleWidth + r4 / l6) / z54;}r4=B_.candleWidth * l6;}else {F7+=K1.layout.candleWidth;}C1b.H6P(3);O_=C1b.S40(r4,0,F7,L_,"2");C1b.H6P(4);d3=C1b.S40(r4,2,L_,F7);if(d3 - O_ < 2){C1b.H6P(5);d3=C1b.q7n(32,O_,"1");}if(!B_)continue;r$=B_[T1];if(!r$)continue;if(r$[v6]){r$=r$[v6];}if(typeof r$ == G11){r$=[r$];}for(var A8=0;A8 < r$.length;A8++){A9=r$[A8];t7=0;if(A9 instanceof Array){if(b8){C1b.D0J(6);var b$i=C1b.S40(19,0,9,8,1);i0.globalAlpha=c5 * (A9[b$i] * b8.maxOpacity + (("1" >> 0) - A9[+"2"]) * b8.minOpacity);}t7=A9[1];A9=A9[0];}c1=K1.pixelFromPrice(A9,M_,A6);if(!s$){if(!i9){i9=O8.height;}T7=K1.pixelFromPrice(A9 + i9 * (A6.flipped?1:-+"1"),M_,A6);i0.lineWidth=1;C1b.H6P(7);g0=C1b.S40(c1,T7);C1b.H6P(8);R3=C1b.S40(g0,"2");s$=i0.lineWidth;}if(W6){C1b.D0J(7);o0=C1b.q7n(R3,c1);C1b.H6P(0);l2=C1b.S40(c1,R3);C1b.D0J(7);i0.rect(O_,o0,C1b.q7n(O_,d3),C1b.q7n(o0,l2));}else {C1b.D0J(7);i0.fillRect(O_,C1b.q7n(R3,c1),C1b.q7n(O_,d3),g0);if(O8.showSize && t7 && q9 <= g0 - 2){Z7=i0.globalAlpha;i0.fillStyle=K1.defaultColor;C1b.D0J(1);i0.globalAlpha=C1b.S40(c5,0.5);C1b.D0J(9);i0.fillText(t7,C1b.S40(2,O_,d3),c1);i0.fillStyle=E5;C1b.H6P(1);i0.globalAlpha=C1b.S40(c5,Z7);}}if(b8 && A9 instanceof Array){i0.globalAlpha=0;}}}if(W6){i0.stroke();}i0.globalAlpha=c5;i0.closePath();}if(!M_){return;}A6=O8.yAxis?O8.yAxis:M_.yAxis;V6=this.chart.dataSegment;if(!O8.name){O8.name="Data";}if(!O8.widthFactor){O8.widthFactor=1;}if(!O8.height){O8.height=Math.pow(10,1 - (M_.decimalPlaces || M_.chart.decimalPlaces));}s0="stx-float-date";i0=this.chart.context;this.canvasFont(s0,i0);q9=this.getCanvasFontSize(s0);c5=1;if(!O8.highlight && this.highlightedDraggable){c5=0.3;}p7=0.5;if(M_.chart.tmpWidth <= 1){p7=0;}g0=null;R3=null;K1=this;s$=null;A2IFV.D0H();this.startClip(I5);i0.globalAlpha=c5;for(var F1="0" * 1;F1 < s_.length;F1++){v$=s_[F1];k6(v$.field,v$.color,v$.opacity,null,O8.widthFactor,v$.height,v$.border_color?p7:-p7 / ("4" >> 96),v$.subField);if(v$.border_color && this.layout.candleWidth >= 2){k6(v$.field,v$.border_color,v$.opacity,!!"1",O8.widthFactor,v$.height,p7,v$.subField);}}i0.lineWidth=1;i0.globalAlpha=1;this.endClip();};f0.ChartEngine.prototype.drawCandles=function(G6,P2,E8){var T93=A2IFV;var v_F,z$,V0,S7,c$,T0,A25,p20,j3u,D1,L5,Z0,M4,q_,i4,w8,z2,G1,R5,x3,F9,c4,L8,s2,d6,u1,M6,Y8,Z9,B6,n0,G3,r1,S2,T5,h7,g_,U7,l$;v_F="o";v_F+="bje";v_F+="c";v_F+="t";z$=G6.chart;if(!z$){z$=G6;G6=G6.chart;}V0=!!0;S7=!1;c$=null;T0=G6.yAxis;if(E8 && typeof E8 == v_F){V0=E8.isOutline;S7=E8.isHistogram;c$=E8.field;T0=E8.yAxis;}else {A25=-+"779852817";T93.H6P(10);p20=T93.S40("384688691",32);j3u=2;for(var e_X=+"1";T93.Z2Z(e_X.toString(),e_X.toString().length,4408) !== A25;e_X++){V0=E8;S7=arguments[3];j3u+=2;}if(T93.Z2Z(j3u.toString(),j3u.toString().length,83805) !== p20){V0=E8;S7=arguments[4];}}D1=z$.dataSegment;L5=z$.context;Z0=T0.top;M4=T0.bottom;z2=new Array(D1.length);G1="t";G1+="ransp";T93.D0H();G1+="arent";R5="transparent";x3=0;T93.H6P(11);var i9t=T93.q7n(0,2,9,5);F9=z$.dataSet.length - z$.scroll - i9t;c4={};T93.H6P(12);var b7T=T93.q7n(14,1,14);L8=z$.tmpWidth / b7T;s2=this.layout.candleWidth;T93.D0J(0);var J9d=T93.q7n(0,1);T93.H6P(13);var f$E=T93.S40(4,10,5,10);d6=G6.left - "0.5" * J9d * s2 + this.micropixels - f$E;for(var A3=0;A3 <= D1.length;A3++){u1=L8;T93.H6P(8);d6+=T93.S40(s2,"2");s2=this.layout.candleWidth;T93.H6P(14);d6+=T93.S40(2,s2);M6=D1[A3];if(!M6)continue;if(M6.projection)continue;if(M6.candleWidth){T93.D0J(7);var y44=T93.S40(14,16);d6+=(M6.candleWidth - s2) / y44;s2=M6.candleWidth;if(E8.isVolume || s2 < z$.tmpWidth){T93.H6P(14);u1=T93.q7n(2,s2);}}if(z$.transformFunc && T0 == z$.panel.yAxis && M6.transform){M6=M6.transform;}if(M6 && c$){M6=M6[c$];}if(!M6 && M6 !== 0)continue;Y8=M6.Close;Z9=M6.Open === undefined?Y8:M6.Open;if(S7 && z$.defaultPlotField){Y8=M6[z$.defaultPlotField];}if(!Y8 && Y8 !== 0)continue;if(!S7 && (Z9 == Y8 || Z9 === null))continue;B6=P2(this,M6,V0?"outline":"solid");if(!B6)continue;if(V0){G1=B6;}else {R5=B6;}c4[R5]=1;n0=G1 && !f0.isTransparent(G1);if(n0 && !E8.highlight){T93.D0J(7);x3=T93.S40(0,"0.5");}L5.beginPath();L5.fillStyle=R5;if(!M6.cache){M6.cache={};}G3=M6.cache;T93.D0J(0);r1=T93.S40(F9,A3);if(r1 < G6.cacheLeft || r1 > G6.cacheRight || !G3.open){S2=T0.semiLog?T0.height * (1 - (Math.log(Math.max(Z9,0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - Z9) * T0.multiplier;T5=T0.semiLog?T0.height * (1 - (Math.log(Math.max(Y8,0)) / Math.LN10 - T0.logLow) / T0.logShadow):(T0.high - Y8) * T0.multiplier;if(T0.flipped){T93.H6P(7);S2=T93.S40(S2,M4);T93.H6P(7);T5=T93.q7n(T5,M4);}else {S2+=Z0;T5+=Z0;}z2[A3]=T5;q_=Math.floor(S7?T5:Math.min(S2,T5)) + x3;i4=S7?T0.bottom:Math.max(S2,T5);T93.H6P(7);w8=Math.floor(T93.S40(q_,i4));if(q_ < Z0){if(q_ + w8 < Z0){G3.open=q_;G3.close=q_;continue;}T93.D0J(7);w8-=T93.q7n(q_,Z0);q_=Z0;}if(q_ + w8 > M4){T93.D0J(15);w8-=T93.q7n(w8,q_,M4);}w8=Math.max(w8,+"2");G3.open=q_;G3.close=G3.open + w8;}if(G3.open >= M4)continue;if(G3.close <= Z0)continue;h7=Math.floor(d6) + (!E8.highlight && 0.5);g_=Math.floor(h7 - u1) + x3;U7=Math.round(h7 + u1) - x3;if(G3.open != G3.close){L5.rect(g_,G3.open,Math.max(1,U7 - g_),Math.max(1,G3.close - G3.open));}if(!E8.highlight && this.highlightedDraggable){L5.globalAlpha*=0.3;}if(R5 != "transparent"){L5.fill();}if(n0){L5.lineWidth=1;if(E8.highlight){L5.lineWidth*=2;}L5.strokeStyle=G1;L5.stroke();}}l$={colors:[],cache:z2};for(var p8 in c4){if(!E8.hollow || !f0.equals(p8,this.containerColor)){l$.colors.push(p8);}}return l$;};f0.ChartEngine.prototype.drawShadows=function(P4,M2,y8){var i8A=A2IFV;var h9,J9,B1,V3,l9,S0,x7,K0,e1,r8,U1,Z1,p_,u7,T3,n_,J7,g3,G5,H1,V4,H_,B0,Y1,T_,H$;h9=P4.chart;if(!h9){h9=P4;P4=P4.chart;}J9=h9.dataSegment;B1=this.chart.context;B1.lineWidth=1;if(y8.highlight){B1.lineWidth*=2;}if(!y8.highlight && this.highlightedDraggable){B1.globalAlpha*=0.3;}V3=y8.field;l9=y8.yAxis || P4.yAxis;S0=l9.top;x7=l9.bottom;K0=h9.dataSet.length - h9.scroll - +"1";e1=this.layout.candleWidth;i8A.D0J(16);var h6V=i8A.S40(13,14);r8=P4.left - 0.5 * e1 + this.micropixels - h6V;i8A.D0H();for(var N7=+"0";N7 <= J9.length;N7++){i8A.D0J(14);r8+=i8A.q7n(2,e1);e1=this.layout.candleWidth;i8A.H6P(14);r8+=i8A.q7n(2,e1);U1=J9[N7];if(!U1)continue;if(U1.projection)continue;if(U1.candleWidth){i8A.D0J(17);var Y_q=i8A.q7n(13,19,1,7,15);r8+=(U1.candleWidth - e1) / Y_q;e1=U1.candleWidth;}Z1=M2(this,U1,"shadow");if(!Z1)continue;if(h9.transformFunc && l9 == h9.panel.yAxis && U1.transform){U1=U1.transform;}if(U1 && V3){U1=U1[V3];}if(!U1 && U1 !== 0)continue;p_=U1.Close;u7=U1.Open === undefined?p_:U1.Open;T3=U1.High === undefined?Math.max(p_,u7):U1.High;n_=U1.Low === undefined?Math.min(p_,u7):U1.Low;if(!p_ && p_ !== 0)continue;if(!U1.cache){U1.cache={};}J7=U1.cache;i8A.H6P(0);g3=i8A.q7n(K0,N7);if(g3 < P4.cacheLeft || g3 > P4.cacheRight || !J7.top){G5=l9.semiLog?l9.height * (1 - (Math.log(Math.max(T3,0)) / Math.LN10 - l9.logLow) / l9.logShadow):(l9.high - T3) * l9.multiplier;H1=l9.semiLog?l9.height * (+"1" - (Math.log(Math.max(n_,0)) / Math.LN10 - l9.logLow) / l9.logShadow):(l9.high - n_) * l9.multiplier;if(l9.flipped){i8A.H6P(7);G5=i8A.q7n(G5,x7);i8A.D0J(7);H1=i8A.S40(H1,x7);}else {G5+=S0;H1+=S0;}i8A.H6P(7);V4=i8A.S40(G5,H1);if(G5 < S0){if(G5 + V4 < S0){J7.top=G5;J7.bottom=G5;continue;}i8A.D0J(7);V4-=i8A.q7n(G5,S0);G5=S0;}if(G5 + V4 > x7){i8A.H6P(15);V4-=i8A.S40(V4,G5,x7);}J7.top=G5;J7.bottom=J7.top + V4;}if(J7.top >= x7)continue;if(J7.bottom <= S0)continue;H_=Math.floor(r8) + (!y8.highlight && 0.5);B1.beginPath();if(p_ == u7){B0=this.offset;if(y8.isVolume){i8A.D0J(14);B0=i8A.q7n(2,e1);}i8A.H6P(7);Y1=i8A.S40(B0,H_);i8A.H6P(0);T_=i8A.S40(H_,B0);H$=l9.semiLog?l9.height * (1 - (Math.log(Math.max(p_,0)) / Math.LN10 - l9.logLow) / l9.logShadow):(l9.high - p_) * l9.multiplier;if(l9.flipped){i8A.D0J(7);H$=i8A.S40(H$,x7);}else {H$+=S0;}if(H$ <= x7 && H$ >= S0){B1.moveTo(Y1,H$);B1.lineTo(T_,H$);}}if(T3 != n_){B1.moveTo(H_,J7.top);B1.lineTo(H_,J7.bottom);}B1.strokeStyle=Z1;B1.stroke();}};f0.ChartEngine.prototype.drawBarChart=function(U4,W4,u2,G0){var Q$S=A2IFV;var I3,S3,S$,Y7,x$,O2,x4,R1,c6,N6,i_,E6,o9,l7,d_,H6,R27,K4,l0,v_,z5,J6,q1,d4,L$,V2,T9,k9,j8;I3=U4.chart;if(!I3){I3=U4;U4=U4.chart;}S3=I3.dataSegment;S$=new Array(S3.length);Y7=I3.context;x$=this.canvasStyle(W4);if(x$.width && parseInt(x$.width,10) <= 25){Y7.lineWidth=Math.max(1,f0.stripPX(x$.width));}else {Y7.lineWidth=1;}if(G0.highlight){Y7.lineWidth*=2;}if(!G0.highlight && this.highlightedDraggable){Y7.globalAlpha*=0.3;}O2=G0.field;x4=G0.yAxis || U4.yAxis;R1=x4.top;c6=x4.bottom;Q$S.D0J(18);var V6I=Q$S.q7n(13,13,0);i_=I3.dataSet.length - I3.scroll - V6I;E6={};Q$S.D0J(13);var q7x=Q$S.S40(0,25,10,5);o9=I3.tmpWidth / q7x;Q$S.H6P(19);var A4R=Q$S.S40(0,15,20,33);l7=Y7.lineWidth / A4R;d_=this.layout.candleWidth;H6=U4.left - 0.5 * d_ + this.micropixels - +"1";for(var A$=0;A$ <= S3.length;A$++){R27="h";R27+="l";R27+="c";Q$S.H6P(14);H6+=Q$S.S40(2,d_);d_=this.layout.candleWidth;Q$S.H6P(14);H6+=Q$S.S40(2,d_);K4=S3[A$];if(!K4)continue;if(K4.projection)break;if(K4.candleWidth){Q$S.H6P(20);var N0G=Q$S.S40(13,0,123,10,9);H6+=(K4.candleWidth - d_) / N0G;d_=K4.candleWidth;}l0=u2(this,K4);if(!l0)continue;Q$S.H6P(21);E6[l0]=Q$S.S40("1",0);Y7.strokeStyle=l0;Y7.beginPath();if(I3.transformFunc && x4 == I3.panel.yAxis && K4.transform){K4=K4.transform;}if(K4 && O2){K4=K4[O2];}if(!K4 && K4 !== 0)continue;v_=K4.Close;z5=K4.Open === undefined?v_:K4.Open;J6=K4.High === undefined?Math.max(v_,z5):K4.High;q1=K4.Low === undefined?Math.min(v_,z5):K4.Low;if(!v_ && v_ !== 0)continue;if(!K4.cache){K4.cache={};}d4=K4.cache;Q$S.D0J(0);L$=Q$S.q7n(i_,A$);if(L$ < U4.cacheLeft || L$ > U4.cacheRight || !d4.top){V2=this.pixelFromTransformedValue(J6,U4,x4);T9=this.pixelFromTransformedValue(q1,U4,x4);d4.open=x4.semiLog?x4.height * (1 - (Math.log(Math.max(z5,0)) / Math.LN10 - x4.logLow) / x4.logShadow):(x4.high - z5) * x4.multiplier;d4.close=x4.semiLog?x4.height * (+"1" - (Math.log(Math.max(v_,0)) / Math.LN10 - x4.logLow) / x4.logShadow):(x4.high - v_) * x4.multiplier;if(x4.flipped){d4.open=x4.bottom - d4.open;d4.close=x4.bottom - d4.close;}else {d4.open+=x4.top;d4.close+=x4.top;}S$[A$]=d4.close;Q$S.H6P(7);N6=Q$S.S40(V2,T9);if(V2 < R1){if(V2 + N6 < R1){d4.top=V2;d4.bottom=V2;continue;}Q$S.H6P(7);N6-=Q$S.q7n(V2,R1);V2=R1;}if(V2 + N6 > c6){Q$S.H6P(15);N6-=Q$S.S40(N6,V2,c6);}d4.top=V2;Q$S.D0J(0);d4.bottom=Q$S.S40(V2,N6);}Q$S.H6P(7);var M6s=Q$S.S40(18,19);k9=Math.floor(H6) + (!G0.highlight && "0.5" * M6s);if(d4.top < c6 && d4.bottom > R1 && K4.High != K4.Low){Y7.moveTo(k9,d4.top - l7);Y7.lineTo(k9,d4.bottom + l7);}if(G0.type != R27 && d4.open > R1 && d4.open < c6){Y7.moveTo(k9,d4.open);Q$S.D0J(7);Y7.lineTo(Q$S.S40(o9,k9),d4.open);}if(d4.close > R1 && d4.close < c6){Y7.moveTo(k9,d4.close);Q$S.D0J(0);Y7.lineTo(Q$S.S40(k9,o9),d4.close);}Y7.stroke();}Y7.lineWidth=1;j8={colors:[],cache:S$};for(var B3 in E6){if(!f0.equals(B3,this.containerColor)){j8.colors.push(B3);}}return j8;};f0.ChartEngine.prototype.drawWaveChart=function(d9,Y3){var b9$=A2IFV;var V1k,b9,T2,f1,P8,a6,R2,E7,O5,E0,g9,a_,W9,D9,K9,j_,J5,R8,K6,Y4,l8,I6,D$,m7;V1k="stx";V1k+="_line_ch";V1k+="art";b9=d9.chart;T2=b9.dataSegment;f1=new Array(T2.length);P8=b9.context;if(!Y3){Y3={};}a6=Y3.yAxis || d9.yAxis;this.startClip(d9.name);P8.beginPath();R2=!1;function w4(P5){return a_.pixelFromTransformedValue(P5,d9,a6);}E7=![];O5=d9.yAxis.top;E0=d9.yAxis.bottom;g9=d9.left + Math.floor(-+"0.5" * this.layout.candleWidth + this.micropixels);a_=this;for(var G9=0;G9 <= T2.length;G9++){g9+=this.layout.candleWidth;W9=T2[G9];if(!W9)continue;if(W9.projection)break;if(b9.transformFunc && a6 == b9.panel.yAxis && W9.transform){W9=W9.transform;}if(W9 && Y3.field){W9=W9[Y3.field];}if(!W9 && W9 !== 0)continue;D9=W9.Close;K9=W9.Open === undefined?D9:W9.Open;j_=W9.High === undefined?Math.max(D9,K9):W9.High;J5=W9.Low === undefined?Math.min(D9,K9):W9.Low;if(!D9 && D9 !== 0)continue;b9$.D0J(22);var f4I=b9$.q7n(1,11,23,250);b9$.H6P(23);var c3b=b9$.S40(7,24,34,11,1);R8=g9 - f4I * this.layout.candleWidth / c3b;K6=w4(K9);if(K6 < O5){K6=O5;if(E7){P8.moveTo(R8,K6);continue;}E7=!![];}else if(K6 > E0){K6=E0;if(E7){P8.moveTo(R8,K6);continue;}E7=!0;}else {E7=![];}if(!R2){R2=!![];Y4=b9.dataSet.length - b9.scroll - +"1";if(Y4 < 0){P8.moveTo(R8,K6);}else if(Y4 >= 0){l8=b9.dataSet[Y4];if(l8.transform){l8=l8.transform;}I6=l8.Close;I6=w4(I6);I6=Math.min(Math.max(I6,O5),E0);P8.moveTo(d9.left + (G9 - 1) * this.layout.candleWidth + this.micropixels,I6);P8.lineTo(R8,K6);}P8.moveTo(R8,K6);}else {P8.lineTo(R8,K6);}b9$.D0J(16);var P6B=b9$.q7n(7,11);R8+=this.layout.candleWidth / P6B;if(K9 < D9){K6=w4(J5);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);b9$.H6P(16);var r5Y=b9$.S40(10,14);R8+=this.layout.candleWidth / r5Y;K6=w4(j_);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);}else {K6=w4(j_);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);R8+=this.layout.candleWidth / +"4";K6=w4(J5);if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);}b9$.D0J(24);var E$B=b9$.S40(5,9,16,10,5);R8+=this.layout.candleWidth / E$B;K6=w4(D9);f1[G9]=K6;if(K6 < O5){K6=O5;}if(K6 > E0){K6=E0;}P8.lineTo(R8,K6);}D$=this.canvasStyle("stx_line_chart");if(D$.width && parseInt(D$.width,10) <= 25){P8.lineWidth=Math.max(1,f0.stripPX(D$.width));}else {P8.lineWidth=1;}if(Y3.highlight){P8.lineWidth*=2;}this.canvasColor(V1k);if(Y3.color){P8.strokeStyle=Y3.color;}if(!Y3.highlight && this.highlightedDraggable){P8.globalAlpha*=+"0.3";}P8.stroke();P8.closePath();m7={colors:[P8.strokeStyle],cache:f1};this.endClip();P8.lineWidth=1;return m7;};f0.ChartEngine.prototype.drawHistogram=function(r9,v3){var j2E=A2IFV;var L1_,z8,L3,A5,b2,T$,a4,X9,u0,p2,S5,q8,S8,w$,a1,h_,U9,c$e,T4z,W5k,k0,Q0,a5,M1,P$,C7,h$,e0,J8,V1,A9f,i2b,Y$,r3,L2,X4,k_,D5e;L1_="c";L1_+="ha";L1_+="rt";if(!v3 || !v3.length){return;}z8=r9.panel;if(!z8){z8=L1_;}L3=this.panels[z8];function f8(w3,p4,g$,Q4,p5,h4,o4,P6,y$){var f6,s1,P3,k90,z5o,F5,t4,B4,x5,r0,V8,C8,C$,D7,M7,L1,E$o;if(!Q4){Q4=1;}P$.globalAlpha=Q4;P$.beginPath();j2E.D0J(0);f6=j2E.S40(k0,0.5);s1=Math.floor(J8.pixelFromBar(0,L3.chart) - J8.layout.candleWidth / ("2" ^ 0));P3=s1;for(var C5=0;C5 < T$.length;C5++){k90="clu";k90+="stered";z5o="o";z5o+="b";z5o+="jec";z5o+="t";F5=e0[C5] || k0;if(C5 === 0){f6=F5;}if(!T$[C5] || !T$[C5][w3]){f6=F5;P3+=J8.layout.candleWidth;continue;}t4=T$[C5];B4=t4[w3];if(typeof B4 == z5o && B4[p4]){B4=B4[p4];}j2E.D0J(25);x5=j2E.q7n(w$,B4,q8);if(isNaN(x5))continue;r0=J8.layout.candleWidth;if(t4.candleWidth){r0=t4.candleWidth;if(C5 === 0){s1=P3=Math.floor(J8.pixelFromBar(0,L3.chart) - t4.candleWidth / 2);}}V8=Math.floor(F5 - x5) + 0.5;if(V8 > F5 && !Q0){V8=F5;}if(y$ && y$.indexOf(C5) == -1 || !y$ && (h4 && t4.Close < t4.iqPrevClose || !h4 && t4.Close >= t4.iqPrevClose)){f6=V8;P3+=r0;continue;}C8=r0 / J8.layout.candleWidth;if(C7){j2E.H6P(26);C$=Math.round(j2E.S40(P3,C7,P6,C8,o4));j2E.D0J(0);D7=j2E.q7n(C$,p5?0:M1);j2E.D0J(27);var d06=j2E.S40(18,8,209,8);M7=C$ + Math.round(P6 * C8) - (p5?"0" * d06:M1);}else {j2E.D0J(26);C$=j2E.S40(P3,C7,P6,C8,o4);D7=Math.round(C$) + (p5?+"0":M1);M7=Math.round(C$ + P6 * C8) - (p5?0:M1);}if(M7 - D7 < 2){j2E.D0J(0);M7=j2E.S40(D7,1);}L1=p5?0:0.5;if(D7 % 1 == L1){D7+=0.5;}if(M7 % 1 == L1){M7+=0.5;}P$.moveTo(M7,F5);if(k0 != F5 && p5 && !C7 && e0[C5 + 1]){P$.moveTo(M7,Math.max(V8,Math.min(F5,e0[C5 + 1])));}P$.lineTo(M7,V8);P$.lineTo(D7,V8);if(p5 && o4){if(h$[C5] > V8 || C5 === 0){P$.lineTo(D7,Math.min(F5,h$[C5]));}}else if(p5 && !C7 && b2 == "clustered"){if(C5 > ("0" | 0) && h$[C5 - 1] && h$[C5 - 1] > V8){P$.lineTo(D7,Math.min(F5,h$[C5 - 1]));}}else if(p5 && !C7){if(f6 > V8 || C5 === 0){P$.lineTo(D7,Math.min(F5,f6));}}else {P$.lineTo(D7,F5);}f6=V8;P3+=r0;if(b2 != k90 || p5){h$[C5]=V8;}}if(p5){E$o="a";E$o+="uto";P$.strokeStyle=!g$ || g$ == E$o?J8.defaultColor:g$;P$.stroke();}else {P$.fillStyle=!g$ || g$ == "auto"?J8.defaultColor:g$;P$.fill();}P$.closePath();}if(!L3){return;}A5=r9.yAxis?r9.yAxis:L3.yAxis;b2=r9.type;T$=this.chart.dataSegment;a4=!({});X9=1;j2E.D0J(7);u0=j2E.S40(0,"1");for(S5=0;S5 < v3.length;S5++){a4|=v3[S5].border_color_up && !f0.isTransparent(v3[S5].border_color_up);a4|=v3[S5].border_color_down && !f0.isTransparent(v3[S5].border_color_down);X9=v3[S5].opacity_up;u0=v3[S5].opacity_down;if(!r9.highlight && this.highlightedDraggable){X9*=0.3;u0*=0.3;}}if(r9.borders === !1){a4=!1;}if(!r9.name){r9.name="Data";}q8=A5.multiplier;if(!r9.heightPercentage){r9.heightPercentage=+"0.7";}if(!r9.widthFactor){r9.widthFactor=0.8;}j2E.H6P(28);S8=j2E.q7n("0",0);w$=0;for(var t6=+"0";t6 < this.chart.maxTicks;t6++){a1=T$[t6];if(!a1)continue;h_=0;for(S5=+"0";S5 < v3.length;S5++){U9=a1[v3[S5].field];if(U9 || U9 === 0){c$e="st";c$e+="ac";c$e+="k";c$e+="ed";T4z="C";T4z+="los";T4z+="e";p2=v3[S5].subField || this.chart.defaultPlotField || T4z;if(typeof U9 == "object" && U9[p2]){U9=U9[p2];}if(b2 == c$e){h_+=U9;}else {h_=U9;}if(h_ > S8){S8=h_;}if(h_ < w$){w$=h_;}}}}j2E.a9S();if(S8 === 0 && w$ === "0" * 1){W5k=" Not ";W5k+="Ava";W5k+="ilab";W5k+="le";this.displayErrorAsWatermark(z8,this.translateIf(r9.name + W5k));return;}Q0=![];if(!r9.bindToYAxis){if(A5.flipped){k0=Math.floor(A5.top) - 0.5;a5=Math.floor(A5.bottom) - ("0.5" - 0);}else {k0=Math.floor(A5.bottom) + 0.5;a5=Math.floor(A5.top) + 0.5;}q8=Math.abs(k0 - a5) * r9.heightPercentage / (S8 - w$);}else {if(A5.baseline){w$=A5.baseline.value;Q0=!!({});}k0=Math.floor(this.pixelFromPrice(w$,L3,A5)) + (A5.flipped?-0.5:0.5);}this.startClip(z8);M1=this.layout.candleWidth <= 1 || !a4?0:0.5;P$=this.chart.context;if(A5.flipped){P$.translate(0,("2" - 0) * A5.top);P$.scale(1,-1);}C7=Math.max(0,(1 - r9.widthFactor) * this.layout.candleWidth / 2);h$=new Array(T$.length);e0=[];J8=this;V1=1;for(S5=0;S5 < v3.length;S5++){A9f="s";A9f+="tac";A9f+="k";A9f+="ed";i2b="clus";i2b+="tere";i2b+="d";Y$=v3[S5];V1=this.layout.candleWidth * r9.widthFactor;if(C7){if(this.layout.candleWidth - V1 <= 2){a4=![];}}r3=0;if(b2 == i2b){r3=S5;V1/=v3.length;}p2=Y$.subField || this.chart.defaultPlotField || "Close";if(typeof Y$.color_function == "function"){X4={};for(var Q1=0;Q1 < T$.length;Q1++){if(T$[Q1]){D5e="border_op";D5e+="acit";D5e+="y";L2=Y$.color_function(T$[Q1]);if(typeof L2 == "string"){L2={fill_color:L2,border_color:L2};}if(!L2.hasOwnProperty(D5e)){L2.border_opacity=L2.opacity;}j2E.H6P(15);var D1r=j2E.q7n(12,18714,15607);j2E.D0J(7);var T9b=j2E.q7n(42480,50976);j2E.H6P(29);var Z50=j2E.S40(2853,1,25686,17,25703);j2E.D0J(0);var J1G=j2E.q7n(2,30);j2E.H6P(30);var p1C=j2E.q7n(7,304,232,10);j2E.H6P(31);var c7t=j2E.S40(2,1,7973,17822);j2E.H6P(32);var T8c=j2E.q7n(5030,2,387);j2E.D0J(15);var m33=j2E.S40(19,1097,16);j2E.D0J(13);var p3J=j2E.S40(18661,3,9,9337);k_=L2.fill_color + ((D1r,+"5530") != (T9b,+"139.69")?Z50 === "9200" << J1G?713.18:(484.23,p1C) <= (c7t,T8c)?",":m33:p3J) + L2.border_color;if((k_ in X4)){X4[k_].positions.push(Q1);}else {L2.positions=[Q1];X4[k_]=L2;}}}for(k_ in X4){L2=X4[k_];f8(Y$.field,p2,L2.fill_color,L2.opacity,null,null,r3,V1,L2.positions);f8(Y$.field,p2,L2.border_color,L2.border_opacity,!"",null,r3,V1,L2.positions);}}else {f8(Y$.field,p2,Y$.fill_color_up,X9,null,!!1,r3,V1);f8(Y$.field,p2,Y$.fill_color_down,u0,null,null,r3,V1);if(this.layout.candleWidth >= 2 && a4){f8(Y$.field,p2,Y$.border_color_up,X9,!"",!!({}),r3,V1);f8(Y$.field,p2,Y$.border_color_down,u0,!"",null,r3,V1);}}if(b2 == A9f){e0=f0.shallowClone(h$);}}P$.globalAlpha=1;this.endClip();};f0.ChartEngine.prototype.scatter=function(s7,j4){var D_D=A2IFV;var o1G,n8,d5,M3,O4,F$,z0,I0,S9,G4,O0,E1,E2,U_,R0,M9,H4,b4,l_;o1G="s";o1G+="tx_sca";o1G+="tter_ch";o1G+="art";n8=s7.chart;d5=n8.dataSegment;M3=new Array(d5.length);O4=this.chart.context;this.canvasColor(o1G);if(!j4){j4={};}F$=j4.field || n8.defaultPlotField;z0=j4.yAxis || s7.yAxis;I0=j4.subField || n8.defaultPlotField || "Close";this.startClip(s7.name);O4.beginPath();O4.lineWidth=j4.lineWidth || 4;if(j4.highlight){O4.lineWidth*=+"2";}if(!j4.highlight && this.highlightedDraggable){O4.globalAlpha*=0.3;}if(j4.color){O4.strokeStyle=j4.color;}S9=z0.top;G4=z0.bottom;O0=this.layout.candleWidth;D_D.H6P(33);var C_m=D_D.S40(5,17,18,7);D_D.H6P(18);var O3I=D_D.S40(7,1,6);E1=s7.left - "0.5" * C_m * O0 + this.micropixels - O3I;for(var y9=0;y9 <= d5.length;y9++){D_D.H6P(14);E1+=D_D.S40(2,O0);O0=this.layout.candleWidth;D_D.H6P(14);E1+=D_D.q7n(2,O0);E2=d5[y9];if(!E2)continue;if(E2.candleWidth){D_D.D0J(34);var d84=D_D.S40(0,13,20,3,52);E1+=(E2.candleWidth - O0) / d84;O0=E2.candleWidth;}if(!E2.projection){if(n8.transformFunc && z0 == n8.panel.yAxis && E2.transform){E2=E2.transform;}U_=E2[F$];if(U_ && U_[I0] !== undefined){U_=U_[I0];}if(!(U_ instanceof Array)){U_=[U_];}if(("Scatter" in E2)){U_=E2.Scatter;}for(var Y6=0;Y6 < U_.length;Y6++){if(!U_[Y6] && U_[Y6] !== 0)continue;R0=U_[Y6];M9=0;if(U_[Y6] instanceof Array){R0=U_[Y6][0];M9=U_[Y6][2];}H4=z0.semiLog?z0.height * ("1" * 1 - (Math.log(Math.max(R0,0)) / Math.LN10 - z0.logLow) / z0.logShadow):(z0.high - R0) * z0.multiplier;if(z0.flipped){D_D.D0J(7);H4=D_D.q7n(H4,G4);}else {H4+=S9;}if(H4 < S9)continue;if(H4 > G4)continue;b4=2;if(M9){D_D.H6P(1);b4=D_D.q7n(M9,O0);}D_D.D0J(7);O4.moveTo(D_D.q7n(b4,E1),H4);D_D.D0J(0);O4.lineTo(D_D.q7n(E1,b4),H4);M3[y9]=H4;}}}O4.stroke();O4.closePath();l_={colors:[O4.strokeStyle],cache:M3};this.endClip();O4.lineWidth=1;return l_;};};q=V$=>{var G8$,h2H,I_4,v6o,S8d,u$z,m61,d2Z,p_M,w53,r_N,A9b,X_x,z85,t2z,O4v,y37,H_n,w05,b87,g0c,X2,o7;G8$="lin";G8$+="eWid";G8$+="th";h2H="c";h2H+="olor";I_4="ax";I_4+="i";I_4+="sLa";I_4+="bel";v6o="pat";v6o+="te";v6o+="r";v6o+="n";S8d="lineWid";S8d+="th";u$z="pa";u$z+="t";u$z+="te";u$z+="rn";m61="c";m61+="olor";d2Z="sol";d2Z+="i";d2Z+="d";p_M="a";p_M+="u";p_M+="t";p_M+="o";w53="a";w53+="u";w53+="t";w53+="o";r_N="a";r_N+="u";r_N+="t";r_N+="o";A9b="a";A9b+="u";A9b+="t";A9b+="o";X_x="a";X_x+="u";X_x+="t";X_x+="o";z85="soli";z85+="d";t2z="a";t2z+="u";t2z+="t";t2z+="o";O4v="a";O4v+="u";O4v+="to";y37="s";y37+="oli";y37+="d";H_n="so";H_n+="lid";w05="a";w05+="ut";w05+="o";b87="#7";b87+="DA6";b87+="F";b87+="5";g0c="u";g0c+="nde";g0c+="fined";X2=typeof _CIQ !== "undefined"?_CIQ:V$.CIQ;o7=typeof _timezoneJS !== g0c?_timezoneJS:V$.timezoneJS;X2.ChartEngine.drawingTools={};X2.ChartEngine.currentVectorParameters={vectorType:null,pattern:"solid",lineWidth:1,fillColor:b87,currentColor:w05,axisLabel:!0,fibonacci:{trend:{color:"auto",parameters:{pattern:H_n,opacity:0.25,lineWidth:"1" >> 32}},fibs:[{level:-0.786,color:"auto",parameters:{pattern:y37,opacity:+"0.25",lineWidth:1}},{level:-0.618,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!"1"},{level:-0.5,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"}},{level:-0.382,color:O4v,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!({})},{level:-0.236,color:"auto",parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1}},{level:0,color:"auto",parameters:{pattern:"solid",lineWidth:1},display:!""},{level:0.236,color:t2z,parameters:{pattern:z85,opacity:+"0.25",lineWidth:1}},{level:0.382,color:X_x,parameters:{pattern:"solid",opacity:0.25,lineWidth:"1" | 0},display:!!"1"},{level:0.5,color:A9b,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!![]},{level:+"0.618",color:r_N,parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!""},{level:0.786,color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"}},{level:1,color:"auto",parameters:{pattern:"solid",lineWidth:1},display:!""},{level:1.272,color:w53,parameters:{pattern:"solid",opacity:0.25,lineWidth:1}},{level:+"1.382",color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:1},display:!!1},{level:+"1.618",color:"auto",parameters:{pattern:"solid",opacity:"0.25" - 0,lineWidth:1},display:!!"1"},{level:2.618,color:p_M,parameters:{pattern:"solid",opacity:"0.25" * 1,lineWidth:1}},{level:4.236,color:"auto",parameters:{pattern:d2Z,opacity:"0.25" * 1,lineWidth:+"1"}}],extendLeft:!({}),printLevels:!!({}),printValues:!!"",timezone:{color:"auto",parameters:{pattern:"solid",opacity:0.25,lineWidth:+"1"}}},annotation:{font:{style:null,size:null,weight:null,family:null}}};X2.ChartEngine.registerDrawingTool=function(C4,h5){X2.ChartEngine.drawingTools[C4]=h5;};X2.ChartEngine.prototype.setDrawingContainer=function(r_){this.drawingContainer=r_;};X2.ChartEngine.prototype.exportDrawings=function(){var k2;A2IFV.D0H();k2=[];for(var I_=+"0";I_ < this.drawingObjects.length;I_++){k2.push(this.drawingObjects[I_].serialize());}return k2;};X2.ChartEngine.prototype.abortDrawings=function(F8){var L4;if(F8 !== !"1"){F8=!![];}for(var A0=this.drawingObjects.length - 1;A0 >= 0;A0--){L4=this.drawingObjects[A0];L4.abort(!0);if(F8 || !L4.permanent){this.drawingObjects.splice(A0,1);}}};X2.ChartEngine.prototype.importDrawings=function(B$){var r6,s9,J$;if(!X2.Drawing){return;}for(var N8=0;N8 < B$.length;N8++){r6=B$[N8];if(r6.name == "fibonacci"){r6.name="retracement";}s9=X2.ChartEngine.drawingTools[r6.name];if(!s9){if(X2.Drawing[r6.name]){s9=X2.Drawing[r6.name];X2.ChartEngine.registerDrawingTool(r6.name,s9);}}if(s9){J$=new s9();J$.reconstruct(this,r6);this.drawingObjects.push(J$);}}};X2.ChartEngine.prototype.clearDrawings=function(m4,o6){A2IFV.a9S();var H0,O1;if(o6 !== !({})){o6=!"";}H0=this.exportDrawings();this.abortDrawings(o6);if(m4){this.undoStamps=[];}else {this.undoStamp(H0,this.exportDrawings());}this.changeOccurred("vector");this.cancelTouchSingleClick=!![];X2.clearCanvas(this.chart.tempCanvas,this);this.draw();O1=this.controls.mSticky;if(O1){O1.style.display="none";O1.children[0].innerHTML="";}};X2.ChartEngine.prototype.createDrawing=function(e9,x_){var n5,E$;if(!X2.Drawing){return;}n5=new X2.Drawing[e9]();A2IFV.D0H();n5.reconstruct(this,x_);E$=new X2.Drawing[e9]();E$.stx=this;E$.copyConfig();for(var Q7 in E$){n5[Q7]=n5[Q7] || E$[Q7];}this.drawingObjects.push(n5);this.draw();return n5;};X2.ChartEngine.prototype.removeDrawing=function(e6){for(var K$=0;K$ < this.drawingObjects.length;K$++){if(this.drawingObjects[K$] == e6){this.drawingObjects.splice(K$,1);this.changeOccurred("vector");this.draw();return;}};};X2.ChartEngine.prototype.undo=function(){var p7f,J_M,q16,Y$$,M8Q;p7f="un";p7f+="do";J_M="u";J_M+="nd";J_M+="o";if(this.runPrepend(J_M,arguments)){return;}if(this.activeDrawing){q16="stx";q16+="_crosshair";Y$$="st";Y$$+="x_cr";Y$$+="ossha";Y$$+="ir_drawing";M8Q="stx";M8Q+="_cr";M8Q+="osshair";this.activeDrawing.abort();this.activeDrawing.hidden=!({});this.drawingSnapshot=null;this.activateDrawing(null);X2.clearCanvas(this.chart.tempCanvas,this);this.draw();this.controls.crossX.classList.replace("stx_crosshair_drawing",M8Q);this.controls.crossY.classList.replace(Y$$,q16);X2.ChartEngine.drawingLine=!({});}this.runAppend(p7f,arguments);};X2.ChartEngine.prototype.undoStamp=function(z_,z7){var E1A;E1A="u";E1A+="ndoStamp";this.undoStamps.push(z_);this.dispatch(E1A,{before:z_,after:z7,stx:this});};X2.ChartEngine.prototype.undoLast=function(){if(this.activeDrawing){this.undo();}else {if(this.undoStamps.length){this.drawingObjects=[];this.importDrawings(this.undoStamps.pop());this.changeOccurred("vector");this.draw();}}};X2.ChartEngine.prototype.addDrawing=function(X1){var g7;g7=this.exportDrawings();this.drawingObjects.push(X1);A2IFV.D0H();this.undoStamp(g7,this.exportDrawings());};X2.ChartEngine.prototype.repositionDrawing=function(l1,R_){var R4,O$,s4;R4=this.panels[l1.panelName];A2IFV.D0H();O$=this.adjustIfNecessary(R4,this.crosshairTick,this.valueFromPixel(this.backOutY(X2.ChartEngine.crosshairY),R4));s4=this.chart.tempCanvas;X2.clearCanvas(s4,this);if(R_){this.drawingSnapshot=this.exportDrawings();l1.render(s4.context);}else {l1.reposition(s4.context,l1.repositioner,this.crosshairTick,O$);if(this.drawingSnapshot){this.undoStamp(X2.shallowClone(this.drawingSnapshot),this.exportDrawings());}this.drawingSnapshot=null;}if(l1.measure){l1.measure();}};X2.ChartEngine.prototype.activateRepositioning=function(i2){var C8s,O3;A2IFV.D0H();C8s="n";C8s+="o";C8s+="ne";O3=this.repositioningDrawing=i2;if(i2){this.draw();this.repositionDrawing(i2,!!1);}this.chart.tempCanvas.style.display=i2?"block":C8s;};X2.ChartEngine.prototype.activateDrawing=function(I$,H7){var z3k,W3;z3k="b";z3k+="lo";function a3(x8){var j6;if(!x8.layout.studies){return;}j6=x8.layout.studies[H7.name];if(j6 && !j6.overlay){delete x8.overlays[j6.name];}}z3k+="ck";if(!H7){H7=this.currentPanel;}if(!I$){this.activeDrawing=null;this.chart.tempCanvas.style.display="none";a3(this);return !!0;}W3=X2.ChartEngine.drawingTools[I$];if(!W3){if(X2.Drawing[I$]){W3=X2.Drawing[I$];X2.ChartEngine.registerDrawingTool(I$,W3);}}if(W3){this.activeDrawing=new W3();this.activeDrawing.construct(this,H7);if(!this.charts[H7.name]){if(this.activeDrawing.chartsOnly){this.activeDrawing=null;a3(this);return !!"";}}}this.chart.tempCanvas.style.display=z3k;if(this.controls.drawOk){this.controls.drawOk.style.display="none";}a3(this);return !0;};X2.ChartEngine.prototype.drawingClick=function(q3,H2,P9){var p6,b7,r5,y5t,e$T,D31;if(!X2.Drawing){return;}A2IFV.a9S();if(!q3){return;}if(this.openDialog !== ""){return;}if(!this.activeDrawing){if(!this.activateDrawing(this.currentVectorParameters.vectorType,q3)){return;}}if(this.activeDrawing){if(this.userPointerDown && !this.activeDrawing.dragToDraw){if(!X2.ChartEngine.drawingLine){this.activateDrawing(null);}return;}p6=this.tickFromPixel(H2,q3.chart);b7=this.panels[this.activeDrawing.panelName];r5=this.adjustIfNecessary(b7,p6,this.valueFromPixel(P9,b7));if(this.magnetizedPrice){r5=this.adjustIfNecessary(b7,p6,this.magnetizedPrice);}if(this.activeDrawing.click(this.chart.tempCanvas.context,p6,r5)){if(this.activeDrawing){X2.ChartEngine.drawingLine=!({});X2.clearCanvas(this.chart.tempCanvas,this);this.addDrawing(this.activeDrawing);this.activateDrawing(null);this.adjustDrawings();this.draw();this.changeOccurred("vector");this.controls.crossX.classList.replace("stx_crosshair_drawing","stx_crosshair");this.controls.crossY.classList.replace("stx_crosshair_drawing","stx_crosshair");}}else {y5t="stx";y5t+="_cross";y5t+="h";y5t+="air_drawing";e$T="stx";e$T+="_cro";e$T+="s";e$T+="shair";D31="dra";D31+="wing";this.changeOccurred(D31);X2.ChartEngine.drawingLine=!![];this.controls.crossX.classList.replace("stx_crosshair","stx_crosshair_drawing");this.controls.crossY.classList.replace(e$T,y5t);}return !!({});}return ![];};X2.ChartEngine.prototype.rightClickDrawing=function(j5,o_){var e8,E_;if(this.runPrepend("rightClickDrawing",arguments)){return;}if(j5.permanent){return;}if(this.callbackListeners.drawingEdit.length){this.dispatch("drawingEdit",{stx:this,drawing:j5,forceEdit:o_});}else {e8=j5.abort();if(!e8){E_=this.exportDrawings();this.removeDrawing(j5);this.undoStamp(E_,this.exportDrawings());}this.changeOccurred("vector");}this.runAppend("rightClickDrawing",arguments);};X2.ChartEngine.prototype.magnetize=function(){var g0N=A2IFV;var Z_p,O5C,v8M,v_O,c0,c7,H5,N3,H3,h0,a7,N_,u$,I6t,U8,v2,R7,W1,X$,e5,V9,F3,j2,c2;Z_p="magn";Z_p+="etize";O5C="H";O5C+="igh";v8M="fr";v8M+="e";v8M+="e";v8M+="form";v_O="proj";v_O+="ection";this.magnetizedPrice=null;if(!this.preferences.magnet){return;}if(this.runPrepend("magnetize",arguments)){return;}if(this.repositioningDrawing){return;}c0=this.currentVectorParameters.vectorType;if(!c0 || c0 == v_O || c0 == v8M){return;}if((c0 == "annotation" || c0 == "callout") && X2.ChartEngine.drawingLine){return;}c7=this.currentPanel;H5=c7.chart;N3=this.crosshairTick;if(N3 > H5.dataSet.length){return;}H3=H5.dataSet[N3];if(!H3){return;}h0=H5.transformFunc && c7.yAxis === H5.yAxis;if(h0 && H3.transform){H3=H3.transform;}N_=this.getRenderedItems();u$=["Open",O5C,"Low","Close"];if(this.magneticHold && this.activeDrawing && this.activeDrawing.penDown){I6t="H";I6t+="igh";if(u$.indexOf(this.magneticHold) != -1 && N_.indexOf(I6t) != -1){N_=u$;}else {N_=[this.magneticHold];}}else {this.magneticHold=null;}U8=1000000000;v2=parseFloat(this.preferences.magnet);for(var i5=+"0";i5 < N_.length;i5++){R7=H3[N_[i5]];W1=this.getYAxisByField(c7,N_[i5]);X$=X2.existsInObjectChain(H3,N_[i5]);if(X$){R7=X$.obj[X$.member];}if(R7 || R7 === 0){e5=this.pixelFromTransformedValue(R7,c7,W1);if(Math.abs(this.cy - e5) < U8){U8=Math.abs(this.cy - e5);if(v2 && v2 <= U8)continue;this.magnetizedPrice=h0?this.valueFromPixel(e5,c7):R7;a7=e5;this.magneticHold=N_[i5];}}}V9=this.pixelFromTick(N3,H5);F3=a7;X2.clearCanvas(H5.tempCanvas,this);j2=H5.tempCanvas.context;j2.beginPath();j2.lineWidth=1;g0N.D0J(22);var a1L=g0N.S40(4,8,108,204);g0N.D0J(35);var l4C=g0N.q7n(3,10,18,18,135);c2=Math.max(this.layout.candleWidth,a1L) / l4C;j2.arc(V9,F3,Math.min(c2,"8" | 8),0,2 * Math.PI,!"1");j2.fillStyle="#398dff";g0N.D0H();j2.strokeStyle="#398dff";j2.fill();j2.stroke();j2.closePath();H5.tempCanvas.style.display="block";if(this.anyHighlighted){this.container.classList.remove("stx-draggable");}if(this.activeDrawing){this.activeDrawing.move(j2,this.crosshairTick,this.magnetizedPrice);}this.runAppend(Z_p,arguments);};X2.ChartEngine.prototype.changeVectorType=function(c_){this.currentVectorParameters.vectorType=c_;if(X2.Drawing){X2.Drawing.initializeSettings(this,c_);}if(X2.ChartEngine.drawingLine){this.undo();}A2IFV.D0H();if(this.insideChart){this.doDisplayCrosshairs();}};X2.ChartEngine.prototype.changeVectorParameter=function(a$,v8){var b$Z,a_d,y2Y,B5D,E4,J6D;b$Z="f";b$Z+="o";b$Z+="nt";a_d="p";a_d+="x";y2Y="tr";y2Y+="ue";B5D="axi";B5D+="sL";B5D+="abel";if(a$ == B5D){v8=v8.toString() === y2Y || Number(v8);}else if(a$ == "lineWidth"){v8=Number(v8);}else if(a$ == "fontSize"){A2IFV.D0J(36);var I1Q=A2IFV.q7n(19,0,9);v8=parseInt(v8,I1Q) + a_d;}E4=this.currentVectorParameters;if(typeof E4[a$] !== "undefined"){E4[a$]=v8;return !![];}else if(a$.substr(0,4) == b$Z){J6D="fam";J6D+="i";J6D+="ly";a$=a$.substr(4).toLowerCase();if(a$ == J6D && v8.toLowerCase() == "default"){v8=null;}E4=E4.annotation.font;if(typeof E4[a$] !== "undefined"){E4[a$]=v8;return !!({});}}return ![];};X2.ChartEngine.prototype.drawVectors=function(){var g65,K8O,O6,s3,s8,S_,V7;g65="draw";g65+="Vecto";g65+="rs";A2IFV.D0H();K8O="d";K8O+="raw";K8O+="V";K8O+="ectors";if(this.vectorsShowing){return;}if(this.runPrepend(K8O,arguments)){return;}this.vectorsShowing=!"";if(!this.chart.hideDrawings && !this.highlightedDraggable){O6={};for(s8=+"0";s8 < this.drawingObjects.length;s8++){S_=this.drawingObjects[s8];if(S_.hidden)continue;if(this.repositioningDrawing === S_)continue;s3=S_.panelName;if(!this.panels[S_.panelName] || this.panels[S_.panelName].hidden)continue;if(!O6[s3]){O6[s3]=[];}O6[s3].push(S_);}for(s3 in O6){this.startClip(s3);V7=O6[s3];for(s8=0;s8 < V7.length;s8++){V7[s8].render(this.chart.context);}this.endClip();}}this.runAppend(g65,arguments);};X2.ChartEngine.prototype.adjustDrawings=function(){var q2;for(var a9=0;a9 < this.drawingObjects.length;a9++){q2=this.drawingObjects[a9];if(this.panels[q2.panelName]){q2.adjust();}}};X2.Drawing=X2.Drawing || (function(){this.chartsOnly=!({});this.penDown=!({});;});X2.Drawing.getDrawingParameters=function(c3,o1){var w_,j9,v5,B5;try{w_=new X2.Drawing[o1]();}catch(z6){}if(!w_){return null;}w_.stx=c3;w_.copyConfig(!!1);j9={};v5=w_.configs;for(var F0=0;F0 < v5.length;F0++){j9[v5[F0]]=w_[v5[F0]];}B5=c3.canvasStyle("stx_annotation");A2IFV.D0H();if(B5 && j9.font){j9.font.size=B5.fontSize;j9.font.family=B5.fontFamily;j9.font.style=B5.fontStyle;j9.font.weight=B5.fontWeight;}return j9;};X2.Drawing.saveConfig=function(x9,W7){var E9a,X7,D6;E9a="prefer";E9a+="ences";if(!W7){return;}X7=x9.preferences;if(!X7.drawings){X7.drawings={};}X7.drawings[W7]={};D6=new X2.Drawing[W7]();D6.stx=x9;X2.Drawing.copyConfig(D6);D6.configs.forEach(function(a2){X7.drawings[W7][a2]=D6[a2];});x9.changeOccurred(E9a);};X2.Drawing.restoreDefaultConfig=function(F6,O7,P0){if(P0){F6.preferences.drawings=null;}else {F6.preferences.drawings[O7]=null;}A2IFV.a9S();F6.changeOccurred("preferences");F6.currentVectorParameters=X2.clone(X2.ChartEngine.currentVectorParameters);F6.currentVectorParameters.vectorType=O7;};X2.Drawing.initializeSettings=function(b5,h6){var i6,k$;i6=X2.Drawing[h6];if(i6){k$=new i6();if(k$.initializeSettings){k$.initializeSettings(b5);}}};X2.Drawing.updateSource=function(F2,u3,y5,Y2){var P1x,p3,X8;P1x="vect";P1x+="o";P1x+="r";if(!u3){return;}p3=!({});for(var T4 in F2.drawingObjects){X8=F2.drawingObjects[T4];if(!X8.field)continue;if(y5){if(X8.field == u3){X8.field=y5;p3=!0;}else if(X8.field.indexOf(u3) > -+"1" && X8.field.indexOf(u3 + "-") == -("1" * 1)){X8.field=X8.field.replace(u3,y5);p3=!"";}}else {if(X8.field.split("-->")[0] == u3 || X8.panelName == u3){X8.panelName=Y2;p3=!!({});}}}A2IFV.D0H();if(p3){F2.changeOccurred(P1x);}};X2.Drawing.prototype.copyConfig=function(u_){X2.Drawing.copyConfig(this,u_);};X2.Drawing.copyConfig=function(H8,D3){var u6,w7,h3,I2,h94,C_,v2y;u6=H8.stx.currentVectorParameters;w7=H8.configs;for(h3="0" >> 64;h3 < w7.length;h3++){h94="par";h94+="a";h94+="meters";I2=w7[h3];if(I2 == "color"){H8.color=u6.currentColor;}else if(I2 == h94){H8.parameters=X2.clone(u6.fibonacci);}else if(I2 == "font"){H8.font=X2.clone(u6.annotation.font);}else {H8[I2]=u6[I2];}}if(!D3){return;}C_=H8.stx.preferences;A2IFV.D0H();if(C_ && C_.drawings){X2.extend(H8,C_.drawings[u6.vectorType]);for(h3=+"0";h3 < w7.length;h3++){v2y="f";v2y+="o";v2y+="n";v2y+="t";I2=w7[h3];if(I2 == "color"){u6.currentColor=H8.color;}else if(I2 == "parameters"){u6.fibonacci=X2.clone(H8.parameters);}else if(I2 == v2y){u6.annotation.font=X2.clone(H8.font);}else {u6[I2]=H8[I2];}}}};X2.Drawing.prototype.dragToDraw=![];X2.Drawing.prototype.permanent=!!0;X2.Drawing.prototype.chartsOnly=!!0;X2.Drawing.prototype.abort=function(A2){};X2.Drawing.prototype.measure=function(){};X2.Drawing.prototype.construct=function(x6,w5){this.stx=x6;this.panelName=w5.name;};X2.Drawing.prototype.render=function(U3){console.warn("must implement render function!");};X2.Drawing.prototype.click=function(z4,C2,u4){console.warn("must implement click function!");};X2.Drawing.prototype.move=function(C9,j$,Y_){console.warn("must implement move function!");};X2.Drawing.prototype.reposition=function(V_,q5,G2,D8){};X2.Drawing.prototype.intersected=function(J0,k3,Y0){console.warn("must implement intersected function!");};X2.Drawing.prototype.reconstruct=function(W$,J3){console.warn("must implement reconstruct function!");};X2.Drawing.prototype.serialize=function(){A2IFV.a9S();console.warn("must implement serialize function!");};X2.Drawing.prototype.adjust=function(){A2IFV.D0H();console.warn("must implement adjust function!");};X2.Drawing.prototype.highlight=function(Q6){A2IFV.a9S();if(Q6 && !this.highlighted){this.highlighted=Q6;}else if(!Q6 && this.highlighted){this.highlighted=Q6;}return this.highlighted;};X2.Drawing.prototype.littleCircleRadius=function(){var y3;y3=6;return y3;};X2.Drawing.prototype.littleCircle=function(N1,B9,D5,q6){var b1,Z2;if(this.permanent){return;}b1=this.stx.defaultColor;Z2=X2.chooseForegroundColor(b1);N1.beginPath();A2IFV.D0H();N1.lineWidth=+"1";N1.arc(B9,D5,this.littleCircleRadius(),0,2 * Math.PI,![]);if(q6){N1.fillStyle=b1;}else {N1.fillStyle=Z2;}N1.strokeStyle=b1;N1.setLineDash([]);N1.fill();N1.stroke();N1.closePath();};X2.Drawing.prototype.rotator=function(b0,D2,Q$,d8){var M9O=A2IFV;var I7,n6,M5;if(this.permanent){return;}I7=this.littleCircleRadius();n6=this.stx.defaultColor;b0.beginPath();M9O.H6P(10);b0.lineWidth=M9O.q7n("2",0);if(!d8){b0.globalAlpha=0.5;}M9O.H6P(0);M5=M9O.S40(4,I7);b0.arc(D2,Q$,M5,0,3 * Math.PI / 2,!!"");M9O.D0J(37);b0.moveTo(M9O.S40(M5,D2,2),M9O.S40(Q$,2,M9O.H6P(0)));M9O.D0J(0);b0.lineTo(M9O.S40(D2,M5),Q$);M9O.H6P(36);b0.lineTo(M9O.q7n(M5,D2,2),M9O.S40(Q$,2,M9O.D0J(0)));M9O.H6P(7);b0.moveTo(M9O.q7n(2,D2),M9O.S40(2,Q$,M5,M9O.H6P(15)));M9O.H6P(7);b0.lineTo(D2,M9O.q7n(M5,Q$));M9O.D0J(38);b0.lineTo(M9O.q7n("2",32,D2),M9O.q7n(Q$,2,M5,M9O.D0J(39)));b0.strokeStyle=n6;b0.stroke();b0.closePath();M9O.D0J(40);b0.globalAlpha=M9O.S40(0,"1");};X2.Drawing.prototype.mover=function(f7,b6,j3,f3){var a$_=A2IFV;var n$,q$,M0,m9;if(this.permanent){return;}n$=this.littleCircleRadius();q$=this.stx.defaultColor;a$_.H6P(40);M0=a$_.q7n(64,"5");a$_.H6P(0);m9=a$_.q7n(n$,1);f7.save();a$_.D0J(40);f7.lineWidth=a$_.S40(32,"2");f7.strokeStyle=q$;f7.translate(b6,j3);if(!f3){f7.globalAlpha=0.5;}for(var m$=0;m$ < 4;m$++){f7.rotate(Math.PI / 2);f7.beginPath();f7.moveTo(0,m9);a$_.H6P(0);f7.lineTo(0,a$_.S40(m9,M0));a$_.D0J(15);f7.moveTo(-2,a$_.q7n(M0,m9,2));a$_.H6P(0);f7.lineTo(0,a$_.S40(m9,M0));a$_.H6P(15);f7.lineTo(2,a$_.S40(M0,m9,2));f7.closePath();f7.stroke();}a$_.a9S();f7.globalAlpha=1;f7.restore();};X2.Drawing.prototype.resizer=function(Q3,e$,t$,X3){var K5j=A2IFV;var L7,Z6,w9,z3;if(this.permanent){return;}L7=this.littleCircleRadius();Z6=this.stx.defaultColor;K5j.a9S();K5j.H6P(22);var Q4M=K5j.q7n(10,16,100,155);K5j.H6P(41);var u51=K5j.q7n(6,15,92);w9=Q4M * Math.sqrt(u51);K5j.H6P(0);z3=K5j.q7n(L7,1);Q3.save();Q3.lineWidth=2;Q3.strokeStyle=Z6;Q3.translate(e$,t$);Q3.rotate(-(e$ * t$) / Math.abs(e$ * t$) * Math.PI / ("4" | 4));if(!X3){Q3.globalAlpha=+"0.5";}for(var m8=0;m8 < 2;m8++){Q3.rotate(Math.PI);Q3.beginPath();Q3.moveTo(0,z3);K5j.H6P(0);Q3.lineTo(0,K5j.q7n(z3,w9));K5j.D0J(15);Q3.moveTo(-2,K5j.S40(w9,z3,2));K5j.D0J(0);Q3.lineTo(0,K5j.q7n(z3,w9));K5j.H6P(15);Q3.lineTo(2,K5j.q7n(w9,z3,2));Q3.closePath();Q3.stroke();}Q3.globalAlpha=1;Q3.restore();};X2.Drawing.prototype.pointIntersection=function(j1,e2,D0,U5){var P_;P_=this.stx.panels[this.panelName];if(!P_){return !"1";}if(U5){if(j1 >= D0.cx0 && j1 <= D0.cx1 && e2 >= D0.cy0 && e2 <= D0.cy1){return !![];}}else {if(j1 >= D0.x0 && j1 <= D0.x1 && e2 >= Math.min(D0.y0,D0.y1) && e2 <= Math.max(D0.y0,D0.y1)){return !!1;}}return !"1";};X2.Drawing.prototype.setPoint=function(w0,j7,o2,s6){var c7T=A2IFV;var v9,N5,R6,Q1a,J1,Z3;v9=null;N5=null;if(typeof j7 == "number"){v9=j7;}else if(j7.length >= +"8"){N5=j7;}else {v9=Number(j7);}if(o2 || o2 === 0){c7T.H6P(0);this[c7T.q7n((3460,9553) === (6130,"704" * 1)?9.55e+3:"v",w0)]=o2;}if(v9 !== null){R6=this.stx.dateFromTick(v9,s6,!!({}));c7T.D0J(0);this[c7T.q7n("tzo",w0)]=R6.getTimezoneOffset();c7T.D0J(0);this[c7T.S40(+"8680" < +"2070"?8.76e+3:(667.13,4870) != 302.02?"d":217.58,w0)]=X2.yyyymmddhhmmssmmm(R6);c7T.D0J(0);this[c7T.S40((6989,7610) == ("2424" ^ 0)?(0xb5f,0x142b):"p",w0)]=[v9,o2];}else if(N5 !== null){Q1a="t";Q1a+="z";Q1a+="o";R6=X2.strToDateTime(N5);if(!this[Q1a + w0] && this["tzo" + w0] !== ("0" ^ 0)){c7T.D0J(0);this[c7T.q7n("tzo",w0)]=R6.getTimezoneOffset();}c7T.D0J(0);this[c7T.S40((212.74,440.25) <= (1900,119)?710.4 == 3120?"b":8789 > 1260?(0x1309,"F"):"S":"d",w0)]=N5;J1=this["tzo" + w0] - R6.getTimezoneOffset();R6.setMinutes(R6.getMinutes() + J1);Z3=!"1";if(this.name != "freeform" && !X2.ChartEngine.isDailyInterval(this.stx.layout.interval) && !R6.getHours() && !R6.getMinutes() && !R6.getSeconds() && !R6.getMilliseconds()){Z3=!!({});}c7T.H6P(0);this[c7T.q7n(+"2808" != 8345?704.33 === 1740?"b":2839 != 3940?"p":!!0:(!!"","g"),w0)]=[this.stx.tickFromDate(X2.yyyymmddhhmmssmmm(R6),s6,null,Z3),o2];}};X2.Drawing.prototype.getLineColor=function(X_){var c9,f5,L6j,r7,T8,f$,k1,Q8,S5k,p9,B7;if(!X_){X_=this.color;}c9=this.stx;A2IFV.D0H();f5=X_;if(this.highlighted){L6j="st";L6j+="x_highli";L6j+="ght_vector";f5=c9.getCanvasColor(L6j);}else if(X2.isTransparent(f5)){f5=c9.defaultColor;}else if(f5 == "auto"){f5=c9.defaultColor;if(this.field){for(r7 in c9.layout.studies){T8=c9.layout.studies[r7];f$=T8.outputs[T8.outputMap[this.field]];if(f$){f5=f$.color || f$;break;}}for(r7 in c9.chart.seriesRenderers){Q8=c9.chart.seriesRenderers[r7];for(var y_=0;y_ < Q8.seriesParams.length;y_++){S5k="-";S5k+="-";S5k+=">";p9=Q8.seriesParams[y_];B7=p9.field;if(!B7 && !Q8.highLowBars){B7=this.defaultPlotField || "Close";}if(p9.symbol && p9.subField){B7+="-->" + p9.subField;}if(this.field == B7){f5=p9.color;break;}if(p9.field && p9.field == this.field.split(S5k)[0]){k1=p9.color;}}}if(k1){f5=k1;}}}if(f5 == "auto"){f5=c9.defaultColor;}return f5;};X2.Drawing.BaseTwoPoint=function(){this.p0=null;this.p1=null;this.color="";};X2.inheritsFrom(X2.Drawing.BaseTwoPoint,X2.Drawing);X2.Drawing.BaseTwoPoint.prototype.configs=[];X2.Drawing.BaseTwoPoint.prototype.lineIntersection=function(P7,U2,E9,l4,h8,m_,Q2){var q7,g1,S1;if(!h8){h8=this.p0;}if(!m_){m_=this.p1;}q7=this.stx;if(!(h8 && m_)){return ![];}g1=X2.convertBoxToPixels(q7,this.panelName,E9);if(g1.x0 === undefined){return !1;}S1={x0:h8[0],x1:m_["0" - 0],y0:h8[1],y1:m_[1]};if(!Q2){S1=X2.convertBoxToPixels(q7,this.panelName,S1);}return X2.boxIntersects(g1.x0,g1.y0,g1.x1,g1.y1,S1.x0,S1.y0,S1.x1,S1.y1,l4);};X2.Drawing.BaseTwoPoint.prototype.boxIntersection=function(e7,K8,e3){if(!this.p0 || !this.p1){return !"1";}A2IFV.D0H();if(e3.x0 > Math.max(this.p0[0],this.p1[0]) || e3.x1 < Math.min(this.p0[0],this.p1[0])){return !({});}if(e3.y1 > Math.max(this.p0[+"1"],this.p1[+"1"]) || e3.y0 < Math.min(this.p0[1],this.p1[1])){return ![];}return !!1;};X2.Drawing.BaseTwoPoint.prototype.accidentalClick=function(Z$,v7){var p29=A2IFV;var C0,t5,K3,A_,I9,G7,Q9,X6;C0=this.stx.panels[this.panelName];t5=this.stx.pixelFromTick(this.p0[0],C0.chart);K3=this.stx.pixelFromTick(Z$,C0.chart);A_=this.stx.pixelFromValueAdjusted(C0,this.p0[0],this.p0[1]);I9=this.stx.pixelFromValueAdjusted(C0,Z$,v7);p29.H6P(7);G7=Math.abs(p29.q7n(t5,K3));p29.H6P(7);Q9=Math.abs(p29.q7n(A_,I9));p29.D0J(42);X6=Math.sqrt(p29.S40(G7,Q9,G7,Q9));if(X6 < "10" >> 0){this.penDown=![];if(this.dragToDraw){this.stx.undo();}return !![];}};X2.Drawing.BaseTwoPoint.prototype.click=function(N0,Z_,K5){A2IFV.D0H();var a8;this.copyConfig();a8=this.stx.panels[this.panelName];if(!this.penDown){this.setPoint(0,Z_,K5,a8.chart);this.penDown=!![];return ![];}if(this.accidentalClick(Z_,K5)){return this.dragToDraw;}this.setPoint(1,Z_,K5,a8.chart);this.penDown=!({});return !![];;};X2.Drawing.BaseTwoPoint.prototype.adjust=function(){var H9;H9=this.stx.panels[this.panelName];if(!H9){return;}this.setPoint(+"0",this.d0,this.v0,H9.chart);this.setPoint(1,this.d1,this.v1,H9.chart);};X2.Drawing.BaseTwoPoint.prototype.move=function(T6,F4,W2){if(!this.penDown){return;}this.copyConfig();A2IFV.a9S();this.p1=[F4,W2];this.render(T6);};X2.Drawing.BaseTwoPoint.prototype.measure=function(){var F_,C6,w6;A2IFV.D0H();if(this.p0 && this.p1){this.stx.setMeasure(this.p0[1],this.p1[1],this.p0[0],this.p1[0],!!"1",this.name);F_=this.stx.controls.mSticky;C6=F_ && F_.querySelector(".mStickyInterior");if(C6){w6=[];w6.push(X2.capitalize(this.name));if(this.getYValue){w6.push(this.field || this.stx.defaultPlotField || "Close");}w6.push(C6.innerHTML);C6.innerHTML=w6.join("
");}}};X2.Drawing.BaseTwoPoint.prototype.reposition=function(N4,I8,s5,Q_){var d2j,Q5,V5,W0;d2j="m";d2j+="ove";if(!I8){return;}Q5=this.stx.panels[this.panelName];A2IFV.a9S();V5=I8.tick - s5;W0=I8.value - Q_;if(I8.action == d2j){this.setPoint(0,I8.p0["0" >> 0] - V5,I8.p0[1] - W0,Q5.chart);this.setPoint(1,I8.p1[0] - V5,I8.p1[1] - W0,Q5.chart);this.render(N4);}else if(I8.action == "drag"){this[I8.point]=[s5,Q_];this.setPoint(0,this.p0[0],this.p0["1" - 0],Q5.chart);this.setPoint(1,this.p1[0],this.p1[1],Q5.chart);this.render(N4);}};X2.Drawing.BaseTwoPoint.prototype.drawDropZone=function(o3,z1,u9,Z4,Y5){var b38=A2IFV;var T9x,E3,p$,X0,k8,I4;T9x="#008";T9x+="00";T9x+="0";E3=this.stx.panels[this.panelName];if(!E3){return;}p$=E3.left;X0=E3.width;if(Z4 || Z4 === 0){p$=this.stx.pixelFromTick(Z4,E3.chart);}if(Y5 || Y5 === +"0"){X0=this.stx.pixelFromTick(Y5,E3.chart);}k8=this.stx.pixelFromPrice(z1,E3);I4=this.stx.pixelFromPrice(u9,E3);o3.fillStyle=T9x;b38.D0J(1);o3.globalAlpha=b38.q7n(1,"0.2");b38.D0J(7);o3.fillRect(p$,k8,b38.q7n(p$,X0),b38.S40(k8,I4));b38.D0H();o3.globalAlpha=1;};X2.Drawing.annotation=function(){var O91=A2IFV;O91.a9S();this.name="annotation";this.arr=[];this.w=0;O91.H6P(1);this.h=O91.S40(1,"0");this.padding=4;this.text="";this.ta=null;O91.H6P(7);this.fontSize=O91.q7n(0,"0");this.font={};};X2.inheritsFrom(X2.Drawing.annotation,X2.Drawing.BaseTwoPoint);X2.Drawing.annotation.prototype.getFontString=function(){var K2,J4;this.fontDef={style:null,weight:null,size:"12px",family:null};K2=this.stx.canvasStyle("stx_annotation");if(K2){if(K2.fontStyle){this.fontDef.style=K2.fontStyle;}if(K2.fontWeight){this.fontDef.weight=K2.fontWeight;}if(K2.fontSize){this.fontDef.size=K2.fontSize;}if(K2.fontFamily){this.fontDef.family=K2.fontFamily;}}if(this.font.style){this.fontDef.style=this.font.style;}A2IFV.a9S();if(this.font.weight){this.fontDef.weight=this.font.weight;}if(this.font.size){this.fontDef.size=this.font.size;}if(this.font.family){this.fontDef.family=this.font.family;}this.fontString="";J4=!"";for(var i7 in this.fontDef){if(this.fontDef[i7]){if(!J4){this.fontString+=594 == "714.62" * 1?(0x14b4,!""):(176.33,"2360" | 48) > (2760,+"871")?" ":("1412" >> 0,+"284.05") === 797.11?(!"1",!({})):(!!"",9.63e+3);}else {J4=!({});}this.fontString+=this.fontDef[i7];}}};X2.Drawing.annotation.prototype.configs=["color","font"];X2.Drawing.annotation.prototype.measure=function(){};X2.Drawing.annotation.prototype.render=function(D_){var j1D=A2IFV;var l24,h$_,p0Q,G$,R9,M$_,U6,O3W,y2N,K8f,Z5i,R9I,N9;if(this.ta){return;}l24=this.stx.panels[this.panelName];if(!l24){return;}h$_=this.stx.pixelFromTick(this.p0[0],l24.chart);p0Q=this.stx.pixelFromValueAdjusted(l24,this.p0[0],this.p0[1]);D_.font=this.fontString;D_.textBaseline="middle";G$=h$_;j1D.D0H();R9=p0Q;M$_=this.w;U6=this.h;O3W=this.getLineColor();if(this.stem){if(this.stem.d){y2N=this.stx.pixelFromTick(this.stem.t);Z5i=this.stx.pixelFromValueAdjusted(l24,this.stem.t,this.stem.v);j1D.D0J(43);K8f=j1D.S40(M$_,2,G$);j1D.H6P(43);R9I=j1D.S40(U6,2,R9);}else if(this.stem.x){y2N=G$;Z5i=R9;G$+=this.stem.x;R9+=this.stem.y;j1D.H6P(43);K8f=j1D.S40(M$_,2,G$);j1D.H6P(43);R9I=j1D.S40(U6,2,R9);}D_.beginPath();if(this.borderColor){D_.strokeStyle=this.borderColor;}else {D_.strokeStyle=O3W;}D_.moveTo(y2N,Z5i);D_.lineTo(K8f,R9I);D_.stroke();}N9=D_.lineWidth;if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight_bg",D_);j1D.D0J(7);D_.fillRect(j1D.q7n(N9,G$),j1D.q7n(U6,N9,R9,2,j1D.D0J(44)),j1D.q7n(2,N9,M$_,j1D.D0J(45)),j1D.q7n(2,N9,U6,j1D.H6P(45)));}else {if(this.fillColor){D_.fillStyle=this.fillColor;j1D.H6P(46);D_.fillRect(G$,j1D.S40(R9,2,U6),M$_,U6);}else if(this.stem){D_.fillStyle=this.stx.containerColor;j1D.D0J(46);D_.fillRect(G$,j1D.q7n(R9,2,U6),M$_,U6);}}if(this.borderColor){D_.beginPath();D_.strokeStyle=this.highlighted?this.stx.getCanvasColor("stx_highlight_vector"):this.borderColor;j1D.H6P(7);D_.rect(j1D.q7n(N9,G$),j1D.q7n(U6,N9,R9,2,j1D.H6P(44)),j1D.S40(2,N9,M$_,j1D.H6P(45)),j1D.q7n(U6,N9,"2",j1D.H6P(47)));D_.stroke();}if(this.highlighted){this.stx.canvasColor("stx_annotation_highlight",D_);}else {D_.fillStyle=O3W;}j1D.D0J(33);var L9_=j1D.S40(11,1,5,17);R9+=this.padding / L9_;if(!this.ta){for(var I7h=0;I7h < this.arr.length;I7h++){D_.fillText(this.arr[I7h],G$ + this.padding,R9 - U6 / 2 + this.fontSize / 2);R9+=this.fontSize + 2;;}}D_.textBaseline="alphabetic";};X2.Drawing.annotation.prototype.onChange=function(v6H){;};X2.Drawing.annotation.prototype.edit=function(s74,b7Z){var Z$i=A2IFV;var k8d,L5W,C1f,P8T,D0e,X0G,o4v,P48,m$u,G_J,D4A,e6y,F2X,s7F,m$5,e81,B3i,w2N,c8b,d1w,q46,M4l,c7K,Y7M,D35,r81;k8d="p";k8d+="x";L5W="annota";L5W+="t";L5W+="io";L5W+="n";C1f=this.stx.panels[this.panelName];if(!C1f){return;}P8T=this.stx.controls.annotationSave;D0e=this.stx.controls.annotationCancel;if(!P8T || !D0e){return;}X0G=this.stx;o4v=this.ta;function j1z(R6c){Z$i.D0H();return function(F_r){var W_W,z60,v3Y,D9V,g8K,f_K,s1c,o4K,E72,A3N,v8u,F5n,i9Y,s0C,g46,b6p;W_W="p";W_W+="x";z60="p";z60+="x";if(F_r){v3Y=F_r.keyCode;switch(v3Y){case 27:R6c.stx.undo();return;}}Z$i.a9S();D9V=R6c.stx;g8K=R6c.ta;f_K=g8K.value.split(984.57 != (3809,6470)?"\n":(785.59,!({})));Z$i.H6P(21);s1c=Z$i.q7n("0",0);D9V.chart.context.font=R6c.fontString;for(var N9z=0;N9z < f_K.length;N9z++){o4K=D9V.chart.context.measureText(f_K[N9z]).width;if(o4K > s1c){s1c=o4K;}}Z$i.D0J(15);var T7V=Z$i.S40(12,0,11);Z$i.H6P(7);var x68=Z$i.q7n(20,23);E72=(f_K.length + T7V) * (R6c.fontSize + x68);if(s1c < 50){s1c=+"50";}Z$i.H6P(37);g8K.style.width=Z$i.q7n(z60,s1c,30);Z$i.H6P(0);g8K.style.height=Z$i.q7n(E72,W_W);A3N=parseInt(X2.stripPX(g8K.style.top),+"10");v8u=X2.stripPX(g8K.style.left);s1c=g8K.clientWidth;E72=g8K.clientHeight;if(v8u + s1c + 100 < R6c.stx.chart.canvasWidth){Z$i.H6P(0);P8T.style.top=Z$i.S40(A3N,"px");Z$i.D0J(0);D0e.style.top=Z$i.S40(A3N,"px");Z$i.D0J(48);P8T.style.left=Z$i.S40("px",10,s1c,v8u);Z$i.D0J(48);D0e.style.left=Z$i.S40("px",60,s1c,v8u);}else if(A3N + E72 + ("30" - 0) < R6c.stx.chart.canvasHeight){F5n="p";F5n+="x";i9Y="p";i9Y+="x";Z$i.D0J(48);P8T.style.top=Z$i.S40(i9Y,10,E72,A3N);Z$i.H6P(48);D0e.style.top=Z$i.q7n("px",10,E72,A3N);Z$i.D0J(0);P8T.style.left=Z$i.S40(v8u,"px");Z$i.H6P(49);D0e.style.left=Z$i.S40(F5n,v8u,0,"50");}else {s0C="p";s0C+="x";g46="p";g46+="x";b6p="p";b6p+="x";Z$i.D0J(36);P8T.style.top=Z$i.S40("px",A3N,35);Z$i.D0J(50);D0e.style.top=Z$i.q7n(A3N,"35",b6p,0);Z$i.H6P(0);P8T.style.left=Z$i.S40(v8u,g46);Z$i.D0J(37);D0e.style.left=Z$i.S40(s0C,v8u,50);}};}X0G.editingAnnotation=!![];X0G.undisplayCrosshairs();X0G.openDialog=L5W;function p5D(X1g){Z$i.D0H();return function(o31){var y3U,B3a;y3U="vect";y3U+="o";y3U+="r";if(X1g.ta.value === ""){return;}X1g.text=X1g.ta.value;B3a=X1g.stx;B3a.editingAnnotation=!!"";X1g.adjust();if(B3a.drawingSnapshot){B3a.undoStamp(X2.shallowClone(B3a.drawingSnapshot),B3a.exportDrawings());}else {B3a.addDrawing(X1g);}B3a.undo();B3a.cancelTouchSingleClick=!!({});B3a.changeOccurred(y3U);};}if(!o4v){P48="absolu";P48+="te";m$u="p";m$u+="lac";m$u+="eholde";m$u+="r";G_J="w";G_J+="r";G_J+="a";G_J+="p";D4A="stx_anno";D4A+="tation";e6y="TE";e6y+="XTARE";e6y+="A";o4v=this.ta=document.createElement(e6y);o4v.className=D4A;o4v.onkeyup=j1z(this);o4v.onmouseup=n02(X0G);o4v.setAttribute(G_J,"hard");if(X2.isIOS7or8){o4v.setAttribute(m$u,"Enter Text");}X0G.chart.container.appendChild(o4v);o4v.style.position=P48;o4v.style.width="100px";o4v.style.height="20px";o4v.value=this.text;if(X2.touchDevice){o4v.ontouchstart=function(o_p){Z$i.a9S();o_p.stopPropagation();};;}}F2X=this;o4v.oninput=function(O0I){var w4p;w4p="histo";Z$i.D0H();w4p+="ryUndo";if(O0I.inputType != w4p && O0I.inputType != "historyRedo"){F2X.onChange(O0I);}};o4v.style.font=this.fontString;if(this.color){s7F="au";s7F+="t";s7F+="o";if(this.color == "transparent" || this.color == s7F){m$5=getComputedStyle(o4v);if(m$5 && X2.isTransparent(m$5.backgroundColor)){o4v.style.color=X0G.defaultColor;}else {e81="#";e81+="0";e81+="0";e81+="0";o4v.style.color=e81;;}}else {o4v.style.color=this.color;}}function n02(b_D){Z$i.D0H();return function(T92){Z$i.D0H();if(b_D.manageTouchAndMouse && X2.ChartEngine.drawingLine){b_D.mouseup(T92);}};}B3i=X0G.pixelFromTick(this.p0[0],C1f.chart);w2N=X0G.pixelFromValueAdjusted(C1f,this.p0[0],this.p0[1]);o4v.style.left=B3i + +"140" < X0G.chart.canvasRight?B3i + "px":X0G.chart.canvasRight - +"200" + "px";o4v.style.top=w2N + 60 < X0G.chart.canvasHeight?w2N - (!isNaN(this.h)?this.h / ("2" << 64):this.defaultHeight) + k8d:w2N - +"60" + "px";function M9C(d3k){return function(i3r){var p5h;p5h=d3k.stx;Z$i.a9S();p5h.editingAnnotation=!({});p5h.undo();p5h.cancelTouchSingleClick=!0;};}if(this.name == "callout"){c8b="p";c8b+="x";d1w=694941385;q46=-666431109;M4l=2;for(var W2T=1;Z$i.Z2Z(W2T.toString(),W2T.toString().length,31029) !== d1w;W2T++){Z$i.H6P(0);var S0f=Z$i.S40(46,18);o4v.style.left=X2.stripPX(o4v.style.left) * (-isNaN(this.w)?this.w + ("0" << S0f):this.defaultWidth) % "";M4l+=2;}if(Z$i.Z2Z(M4l.toString(),M4l.toString().length,3178) !== q46){o4v.style.left=X2.stripPX(o4v.style.left) * (-isNaN(this.w)?this.w + 0:this.defaultWidth) % "";}Z$i.H6P(51);var a0V=Z$i.q7n(5,1,0,27,20);o4v.style.left=X2.stripPX(o4v.style.left) - (!isNaN(this.w)?this.w / a0V:this.defaultWidth) + c8b;}X2.safeClickTouch(P8T,p5D(this));X2.safeClickTouch(D0e,M9C(this));j1z(this)();P8T.style.display="inline-block";D0e.style.display="inline-block";if(b7Z){X0G.drawingSnapshot=X0G.exportDrawings();this.hidden=!!"1";X0G.draw();X0G.activeDrawing=this;X2.ChartEngine.drawingLine=!0;s74=X0G.chart.tempCanvas.context;X0G.chart.tempCanvas.style.display="block";this.w=o4v.clientWidth;this.h=o4v.clientHeight;X2.clearCanvas(s74.canvas,X0G);this.render(s74);this.edit(s74);}o4v.focus();if(X2.isAndroid && !X2.is_chrome && !X2.isFF){this.priorBottom=X0G.chart.container.style.bottom;c7K=400;Z$i.D0J(32);var j7J=Z$i.S40(58,6,7);Y7M=X0G.resolveY(w2N) + j7J;if(Y7M > X2.pageHeight() - c7K){D35=X2.pageHeight() - Y7M;Z$i.H6P(7);r81=Z$i.q7n(D35,c7K);Z$i.D0J(0);X0G.chart.container.style.bottom=Z$i.S40(r81,"px");}}};X2.Drawing.annotation.prototype.click=function(h4N,x0K,f8C){var J7E;if(this.stx.overXAxis || this.stx.overYAxis){return;}J7E=this.stx.panels[this.panelName];this.copyConfig();this.setPoint(0,x0K,f8C,J7E.chart);this.adjust();this.edit(h4N);return !!0;};X2.Drawing.annotation.prototype.reposition=function(w3J,W4f,V$h,m5N){var P3s,w3g,v4b;if(!W4f){return;}P3s=this.stx.panels[this.panelName];w3g=W4f.tick - V$h;v4b=W4f.value - m5N;this.setPoint(0,W4f.p0["0" << 64] - w3g,W4f.p0[1] - v4b,P3s.chart);this.render(w3J);};X2.Drawing.annotation.prototype.intersected=function(g4z,r3f,O8j){var M$w=A2IFV;var a0Q,K2I,N1k,X9s,I5r,r6Z,I0r;a0Q=this.stx.panels[this.panelName];if(!this.p0){return null;}K2I=this.stx.pixelFromTick(this.p0[0],a0Q.chart);M$w.D0J(39);var k0p=M$w.q7n(19,3,15);M$w.D0J(52);var K42=M$w.S40(112,6,19);N1k=this.stx.pixelFromValueAdjusted(a0Q,this.p0[0],this.p0[k0p]) - this.h / K42;X9s=K2I + this.w;I5r=N1k + this.h;if(this.stem && this.stem.x){K2I+=this.stem.x;X9s+=this.stem.x;N1k+=this.stem.y;I5r+=this.stem.y;}r6Z=this.stx.pixelFromTick(g4z,a0Q.chart);I0r=this.stx.pixelFromValueAdjusted(a0Q,g4z,r3f);if(r6Z + O8j.r >= K2I && r6Z - O8j.r <= X9s && I0r + O8j.r >= N1k && I0r - O8j.r <= I5r){this.highlighted=!!1;return {p0:X2.clone(this.p0),tick:g4z,value:r3f};}return !"1";};X2.Drawing.annotation.prototype.abort=function(){var l73,b3n,D06;l73="n";l73+="o";l73+="ne";b3n=this.stx.controls.annotationSave;D06=this.stx.controls.annotationCancel;if(b3n){b3n.style.display="none";}if(D06){D06.style.display=l73;}if(this.ta){this.stx.chart.container.removeChild(this.ta);}this.ta=null;this.stx.openDialog="";this.stx.showCrosshairs();this.stx.editingAnnotation=!({});X2.clearCanvas(this.stx.chart.tempCanvas,this.stx);if(X2.isAndroid && !X2.is_chrome && !X2.isFF){this.stx.chart.container.style.bottom=this.priorBottom;}X2.fixScreen();};X2.Drawing.annotation.prototype.reconstruct=function(l2E,Z3M){var u0L,j4l,L$W;u0L="f";u0L+="ami";u0L+="ly";j4l="weigh";j4l+="t";L$W="s";L$W+="t";L$W+="y";L$W+="le";this.stx=l2E;this.color=Z3M.col;this.panelName=Z3M.pnl;this.d0=Z3M.d0;this.tzo0=Z3M.tzo0;this.v0=Z3M.v0;this.text=l2E.escapeOnSerialize?decodeURIComponent(Z3M.text):Z3M.text;this.stem=Z3M.stem;this.borderColor=Z3M.bc;A2IFV.a9S();this.fillColor=Z3M.bg;this.lineWidth=Z3M.lw;this.pattern=Z3M.ptrn;this.font=X2.replaceFields(Z3M.fnt,{st:L$W,sz:"size",wt:j4l,fl:u0L});if(!this.font){this.font={};}this.adjust();};X2.Drawing.annotation.prototype.serialize=function(){A2IFV.a9S();var a6I,d$j,j8S,g0e,Z39,X6X;a6I={name:this.name,pnl:this.panelName,col:this.color,d0:this.d0,tzo0:this.tzo0,v0:this.v0,text:this.stx.escapeOnSerialize?encodeURIComponent(this.text):this.text};if(this.font){d$j="f";d$j+="l";j8S=X2.removeNullValues(X2.replaceFields(this.font,{style:"st",size:"sz",weight:"wt",family:d$j}));if(!X2.isEmpty(j8S)){a6I.fnt=j8S;}}if(this.stem){g0e=-1816893135;Z39=633140930;X6X=+"2";for(var f0P=1;A2IFV.Z2Z(f0P.toString(),f0P.toString().length,40737) !== g0e;f0P++){a6I.stem={d:this.stem.d,v:this.stem.v,x:this.stem.x,y:this.stem.y};X6X+=2;}if(A2IFV.Z2Z(X6X.toString(),X6X.toString().length,61047) !== Z39){a6I.stem={d:this.stem.d,v:this.stem.v,x:this.stem.x,y:this.stem.y};}}if(this.borderColor){a6I.bc=this.borderColor;}if(this.fillColor){a6I.bg=this.fillColor;}if(this.lineWidth){a6I.lw=this.lineWidth;}if(this.pattern){a6I.ptrn=this.pattern;}return a6I;};X2.Drawing.annotation.prototype.renderText=function(){var m0B=A2IFV;var R1J,w75,W9x,m8c,C0g,S9N;this.getFontString();R1J=this.stx.panels[this.panelName];if(!R1J){return;}this.arr=this.text.split((2597,664.19) != +"9504"?"\n":9728 !== (8300,909.44)?"9240" - 0 >= 9370?(!![],!0):0x164b:(!![],"C"));w75=0;this.stx.chart.context.font=this.fontString;for(var d19=0;d19 < this.arr.length;d19++){W9x=this.stx.chart.context.measureText(this.arr[d19]).width;if(W9x > w75){w75=W9x;}}if(w75 === 0){m0B.H6P(53);var s$U=m0B.q7n(18,3,10,1,6);w75=s$U * this.defaultWidth;}this.fontSize=X2.stripPX(this.fontDef.size);m0B.H6P(7);var d9y=m0B.S40(32,34);m8c=this.arr.length * (this.fontSize + d9y);if(X2.touchDevice){m8c+=5;}this.w=w75 + this.padding * ("2" - 0);m0B.D0J(54);var I1Y=m0B.q7n(158,0,17,7,9);this.h=m8c + this.padding * I1Y;C0g=this.stx.pixelFromTick(this.p0[0],R1J.chart) + w75;S9N=this.stx.pixelFromValueAdjusted(R1J,this.p0[0],this.p0[+"1"]) + m8c;this.p1=[this.stx.tickFromPixel(C0g,R1J.chart),this.stx.valueFromPixel(S9N,R1J)];if(this.stem && this.stem.d){this.stem.t=this.stx.tickFromDate(this.stem.d,R1J.chart);}};X2.Drawing.annotation.prototype.adjust=function(){var n9D;n9D=this.stx.panels[this.panelName];if(!n9D){return;}this.setPoint(0,this.d0,this.v0,n9D.chart);this.renderText();};X2.Drawing.segment=function(){var k0C;k0C="seg";k0C+="me";k0C+="n";k0C+="t";this.name=k0C;};X2.inheritsFrom(X2.Drawing.segment,X2.Drawing.BaseTwoPoint);X2.Drawing.segment.prototype.render=function(e4o){var y9m=A2IFV;var t7J,Y_M,D9N,X0T,a8M,o4x,O3L,Z67,V2K,E$g,m9b,R6Z,a9U,E2O,W$t,s2K,w5P,v7f,J5h,H9h,G4m;t7J="vertic";t7J+="al";Y_M="sol";Y_M+="id";D9N=this.stx.panels[this.panelName];if(!D9N){return;}X0T=this.stx.pixelFromTick(this.p0[0],D9N.chart);a8M=this.stx.pixelFromTick(this.p1["0" << 32],D9N.chart);o4x=this.stx.pixelFromValueAdjusted(D9N,this.p0[0],this.p0[1]);O3L=this.stx.pixelFromValueAdjusted(D9N,this.p1[0],this.p1[1]);Z67=this.lineWidth;V2K=this.getLineColor();E$g={pattern:this.pattern,lineWidth:Z67};if(E$g.pattern == "none"){E$g.pattern=Y_M;}this.stx.plotLine(X0T,a8M,o4x,O3L,V2K,this.name,e4o,D9N,E$g);if(this.axisLabel && !this.repositioner){if(this.name == "horizontal"){this.stx.endClip();m9b=this.p0[1];if(D9N.chart.transformFunc){m9b=D9N.chart.transformFunc(this.stx,D9N.chart,m9b);}if(D9N.yAxis.priceFormatter){m9b=D9N.yAxis.priceFormatter(this.stx,D9N,m9b);}else {m9b=this.stx.formatYAxisPrice(m9b,D9N);}this.stx.createYAxisLabel(D9N,m9b,o4x,V2K);this.stx.startClip(D9N.name);}else if(this.name == "vertical" && this.p0[0] >= 0 && !this.stx.chart.xAxis.noDraw){R6Z=this.stx.dateFromTick(this.p0[+"0"],D9N.chart,!![]);if(!X2.ChartEngine.isDailyInterval(this.stx.layout.interval)){y9m.D0J(55);var Z4T=y9m.q7n(5,985,5,802);E2O=R6Z.getSeconds() * Z4T + R6Z.getMilliseconds();if(o7.Date && this.stx.displayZone){a9U=new o7.Date(R6Z.getTime(),this.stx.displayZone);R6Z=new Date(a9U.getFullYear(),a9U.getMonth(),a9U.getDate(),a9U.getHours(),a9U.getMinutes());R6Z=new Date(R6Z.getTime() + E2O);}}else {R6Z.setHours(0,0,0,0);}W$t=1084531130;s2K=-678620398;w5P=2;for(var Y0Y=1;y9m.Z2Z(Y0Y.toString(),Y0Y.toString().length,45530) !== W$t;Y0Y++){v7f=X2.mmddhhmm(X2.yyyymmddhhmm(R6Z));w5P+=2;}if(y9m.Z2Z(w5P.toString(),w5P.toString().length,10434) !== s2K){v7f=X2.mmddhhmm(X2.yyyymmddhhmm(R6Z));}if(D9N.chart.xAxis.formatter){v7f=D9N.chart.xAxis.formatter(R6Z,this.name,null,null,v7f);}else if(this.stx.internationalizer){if(R6Z.getHours() !== "0" - 0 || R6Z.getMinutes() !== 0){J5h=this.stx.internationalizer.monthDay.format(R6Z);y9m.H6P(52);var P37=y9m.S40(14488,1317,14);J5h+=((P37,97.66) == +"9999"?"p":" ") + this.stx.internationalizer.hourMinute.format(R6Z);}else {J5h=this.stx.internationalizer.yearMonthDay.format(R6Z);}v7f=J5h;}this.stx.endClip();this.stx.createXAxisLabel({panel:D9N,txt:v7f,x:X0T,backgroundColor:V2K,color:null,pointed:!!"1",padding:+"2"});this.stx.startClip(D9N.name);}}if(this.highlighted && this.name != "horizontal" && this.name != t7J){H9h=this.highlighted == "p0"?!0:![];G4m=this.highlighted == "p1"?!![]:!({});this.littleCircle(e4o,X0T,o4x,H9h);this.littleCircle(e4o,a8M,O3L,G4m);}};X2.Drawing.segment.prototype.abort=function(){A2IFV.a9S();this.stx.setMeasure(null,null,null,null,!!"");};X2.Drawing.segment.prototype.intersected=function(Z5r,f1W,C6o){var J8Q,o2b,f6q,o3j;J8Q="h";J8Q+="or";J8Q+="izon";J8Q+="tal";if(!this.p0 || !this.p1){return null;}o2b=this.name;if(o2b != J8Q && o2b != "vertical" && o2b != "gartley"){f6q={0:this.p0,1:this.p1};for(var G6c in f6q){if(this.pointIntersection(f6q[G6c][0],f6q[G6c][1],C6o)){A2IFV.D0J(0);this.highlighted=A2IFV.q7n("p",G6c);return {action:"drag",point:((161.27,"1732" ^ 0) < (67.12,290.86)?(0x1217,!!({})):7130 != 9143?"p":(0x1dab,0x959)) + G6c};}}}if(o2b == "horizontal" || o2b == "vertical"){o2b="line";}o3j=this.lineIntersection(Z5r,f1W,C6o,o2b);if(o3j){this.highlighted=!0;return {action:"move",p0:X2.clone(this.p0),p1:X2.clone(this.p1),tick:Z5r,value:f1W};}return null;};X2.Drawing.segment.prototype.configs=[m61,"lineWidth",u$z];X2.Drawing.segment.prototype.copyConfig=function(Z0G){var I0O;I0O="fil";I0O+="l";I0O+="Colo";I0O+="r";X2.Drawing.copyConfig(this,Z0G);if(this.pattern == "none" && this.configs.indexOf(I0O) == -1){this.pattern="solid";}};X2.Drawing.segment.prototype.reconstruct=function(A9i,W5a){this.stx=A9i;this.color=W5a.col;this.panelName=W5a.pnl;this.pattern=W5a.ptrn;this.lineWidth=W5a.lw;this.d0=W5a.d0;this.d1=W5a.d1;this.tzo0=W5a.tzo0;this.tzo1=W5a.tzo1;this.v0=W5a.v0;this.v1=W5a.v1;this.adjust();};X2.Drawing.segment.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};X2.Drawing.line=function(){A2IFV.D0H();this.name="line";};X2.inheritsFrom(X2.Drawing.line,X2.Drawing.segment);X2.Drawing.line.prototype.dragToDraw=!1;X2.Drawing.line.prototype.calculateOuterSet=function(B2f){var N35,d9b,E$m;if(this.p0[0] == this.p1["0" << 32] || this.p0[1] == this.p1[1] || X2.ChartEngine.isDailyInterval(this.stx.layout.interval)){return;}N35={x0:this.p0[0],y0:this.p0["1" >> 0],x1:this.p1["0" * 1],y1:this.p1[1]};if(N35.x0 > N35.x1){N35={x0:this.p1[0],y0:this.p1[1],x1:this.p0[0],y1:this.p0[1]};}d9b=N35.x0 - +"1000";A2IFV.D0J(56);var v9E=A2IFV.S40(84,13,5,18,20);E$m=N35.x1 + ("1000" << v9E);this.v0B=X2.yIntersection(N35,d9b);this.v1B=X2.yIntersection(N35,E$m);this.d0B=this.stx.dateFromTick(d9b,B2f.chart);this.d1B=this.stx.dateFromTick(E$m,B2f.chart);};X2.Drawing.line.prototype.click=function(A70,P0Q,p5$){var U11;U11=this.stx.panels[this.panelName];if(!U11){return;}this.copyConfig();if(!this.penDown){this.setPoint(+"0",P0Q,p5$,U11.chart);this.penDown=!!1;return !!"";}if(this.accidentalClick(P0Q,p5$)){return this.dragToDraw;}this.setPoint(1,P0Q,p5$,U11.chart);A2IFV.a9S();this.calculateOuterSet(U11);this.penDown=!({});return !!"1";;};X2.Drawing.line.prototype.reconstruct=function(y$c,V4r){this.stx=y$c;this.color=V4r.col;this.panelName=V4r.pnl;A2IFV.D0H();this.pattern=V4r.ptrn;this.lineWidth=V4r.lw;this.v0=V4r.v0;this.v1=V4r.v1;this.d0=V4r.d0;this.d1=V4r.d1;this.tzo0=V4r.tzo0;this.tzo1=V4r.tzo1;if(V4r.d0B){this.d0B=V4r.d0B;this.d1B=V4r.d1B;this.v0B=V4r.v0B;this.v1B=V4r.v1B;}this.adjust();};X2.Drawing.line.prototype.serialize=function(){A2IFV.a9S();var m3e,E_y,j_P,C3d;m3e={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};if(this.d0B){E_y=-1605459864;j_P=-445012206;C3d=+"2";for(var Z9I=1;A2IFV.U6$(Z9I.toString(),Z9I.toString().length,45919) !== E_y;Z9I++){m3e.d0B=this.d0B;m3e.d1B=this.d1B;m3e.v0B=this.v0B;C3d+=2;}if(A2IFV.U6$(C3d.toString(),C3d.toString().length,98907) !== j_P){m3e.d0B=this.d0B;m3e.d1B=this.d1B;m3e.v0B=this.v0B;}m3e.v1B=this.v1B;}return m3e;};X2.Drawing.line.prototype.adjust=function(){var y_B;A2IFV.D0H();y_B=this.stx.panels[this.panelName];if(!y_B){return;}this.setPoint(0,this.d0,this.v0,y_B.chart);this.setPoint(1,this.d1,this.v1,y_B.chart);if(X2.ChartEngine.isDailyInterval(this.stx.layout.interval) && this.d0B){this.setPoint(0,this.d0B,this.v0B,y_B.chart);this.setPoint(1,this.d1B,this.v1B,y_B.chart);}};X2.Drawing.horizontal=function(){A2IFV.a9S();this.name="horizontal";};X2.inheritsFrom(X2.Drawing.horizontal,X2.Drawing.segment);X2.Drawing.horizontal.prototype.dragToDraw=![];X2.Drawing.horizontal.prototype.measure=function(){};X2.Drawing.horizontal.prototype.click=function(y2q,V2O,W8y){var g1p;g1p=this.stx.panels[this.panelName];if(!g1p){return;}A2IFV.a9S();this.copyConfig();A2IFV.H6P(7);this.setPoint(A2IFV.S40(0,"0"),V2O,W8y,g1p.chart);return !!1;;};X2.Drawing.horizontal.prototype.intersected=function(H$N,L$b,l_e){var t5Q,D0u,Z5$,V3v;t5Q="l";t5Q+="i";t5Q+="n";t5Q+="e";if(this.lineIntersection(H$N,L$b,l_e,t5Q)){D0u=this.stx;Z5$=D0u.chart.dataSet.length;V3v=this.p0[1];this.highlighted=!!"1";return {action:"move",p0:[Z5$ - 2,V3v],p1:[Z5$ - 1,V3v],tick:H$N,value:L$b};}return null;};X2.Drawing.horizontal.prototype.reconstruct=function(N3I,V1v){this.stx=N3I;this.color=V1v.col;this.panelName=V1v.pnl;this.pattern=V1v.ptrn;this.lineWidth=V1v.lw;this.v0=V1v.v0;this.d0=V1v.d0;this.tzo0=V1v.tzo0;A2IFV.a9S();this.axisLabel=V1v.al;this.adjust();};X2.Drawing.horizontal.prototype.serialize=function(){var W29;W29={name:this.name,pnl:this.panelName,col:this.color,ptrn:this.pattern,lw:this.lineWidth,v0:this.v0,d0:this.d0,tzo0:this.tzo0,al:this.axisLabel};return W29;};X2.Drawing.horizontal.prototype.adjust=function(){var K_r;K_r=this.stx.panels[this.panelName];if(!K_r){return;}this.setPoint(0,this.d0,this.v0,K_r.chart);this.p1=[this.p0["0" | 0] + ("100" - 0),this.p0[+"1"]];};X2.Drawing.horizontal.prototype.configs=["color",S8d,v6o,I_4];X2.Drawing.vertical=function(){var G5u,o9E,o6u,P8l;A2IFV.a9S();G5u="verti";G5u+="cal";o9E=-+"610209848";o6u=-1863941797;P8l=2;for(var S_j=1;A2IFV.U6$(S_j.toString(),S_j.toString().length,43775) !== o9E;S_j++){this.name="";P8l+=2;}if(A2IFV.Z2Z(P8l.toString(),P8l.toString().length,"46030" ^ 0) !== o6u){this.name="";}this.name=G5u;};X2.inheritsFrom(X2.Drawing.vertical,X2.Drawing.horizontal);X2.Drawing.vertical.prototype.measure=function(){};X2.Drawing.vertical.prototype.intersected=X2.Drawing.segment.prototype.intersected;X2.Drawing.vertical.prototype.adjust=function(){var D_b;D_b=this.stx.panels[this.panelName];if(!D_b){return;}this.setPoint(+"0",this.d0,this.v0,D_b.chart);A2IFV.D0J(57);A2IFV.D0H();var A8x=A2IFV.S40(2,4,7,3);this.p1=[this.p0[0],this.p0[A8x] + 1];};X2.Drawing.measure=function(){A2IFV.D0H();this.name="measure";};X2.inheritsFrom(X2.Drawing.measure,X2.Drawing.segment);X2.Drawing.measure.prototype.click=function(m9c,S78,q93){this.copyConfig();A2IFV.a9S();if(!this.penDown){this.p0=[S78,q93];this.penDown=!!"1";return !!"";}this.stx.undo();this.penDown=!({});return !![];};X2.Drawing.rectangle=function(){A2IFV.D0H();this.name="rectangle";};X2.inheritsFrom(X2.Drawing.rectangle,X2.Drawing.BaseTwoPoint);X2.Drawing.rectangle.prototype.render=function(Z3O){var H2w=A2IFV;var J43,u2d,s7U,T4I,N6n,L9C,s_a,e4c,B1A,L5G,w$d,r99,w0p,w$b,S6A,X_k;J43="se";J43+="gme";J43+="nt";u2d=this.stx.panels[this.panelName];if(!u2d){return;}s7U=this.stx.pixelFromTick(this.p0[+"0"],u2d.chart);T4I=this.stx.pixelFromTick(this.p1[0],u2d.chart);N6n=this.stx.pixelFromValueAdjusted(u2d,this.p0[0],this.p0[1]);L9C=this.stx.pixelFromValueAdjusted(u2d,this.p1[0],this.p1["1" * 1]);s_a=Math.round(Math.min(s7U,T4I)) + 0.5;e4c=Math.min(N6n,L9C);B1A=Math.max(s7U,T4I) - s_a;L5G=Math.max(N6n,L9C) - e4c;w$d=this.color;if(this.highlighted){w$d=this.stx.getCanvasColor("stx_highlight_vector");}r99=this.fillColor;if(r99 && !X2.isTransparent(r99) && r99 != "auto"){Z3O.beginPath();Z3O.rect(s_a,e4c,B1A,L5G);Z3O.fillStyle=r99;Z3O.globalAlpha=0.2;Z3O.fill();Z3O.closePath();Z3O.globalAlpha=1;}w0p={pattern:this.pattern,lineWidth:this.lineWidth};if(this.highlighted && w0p.pattern == "none"){w$b="so";w$b+="li";w$b+="d";w0p.pattern=w$b;if(w0p.lineWidth == 0.1){w0p.lineWidth=1;}}this.stx.plotLine(s7U,T4I,N6n,N6n,w$d,"segment",Z3O,u2d,w0p);H2w.H6P(7);this.stx.plotLine(T4I,T4I,H2w.S40(0.5,N6n),H2w.S40(L9C,0.5,H2w.D0J(0)),w$d,"segment",Z3O,u2d,w0p);this.stx.plotLine(T4I,s7U,L9C,L9C,w$d,J43,Z3O,u2d,w0p);H2w.D0J(58);this.stx.plotLine(s7U,s7U,H2w.S40("0.5",L9C,0),H2w.q7n(0.5,N6n,H2w.D0J(7)),w$d,"segment",Z3O,u2d,w0p);if(this.highlighted){S6A=this.highlighted == "p0"?!![]:!({});X_k=this.highlighted == "p1"?!!({}):![];this.littleCircle(Z3O,s7U,N6n,S6A);this.littleCircle(Z3O,T4I,L9C,X_k);}};X2.Drawing.rectangle.prototype.intersected=function(b$O,A2$,P0q){var L6i,f60,q6i;if(!this.p0 || !this.p1){return null;}L6i={0:this.p0,1:this.p1};A2IFV.D0H();for(var y12 in L6i){if(this.pointIntersection(L6i[y12][0],L6i[y12][1],P0q)){f60="d";f60+="r";f60+="a";f60+="g";A2IFV.H6P(0);this.highlighted=A2IFV.q7n(5366 !== (3000,6200)?"p":121.26 === 7215?("E",!!1):!!({}),y12);return {action:f60,point:(+"886" <= 836.66?(558,"98.58" * 1):(6950,890.14) <= (+"3018",6290)?"p":7725 >= +"6951"?3.18e+3:4.89e+3) + y12};}}if(this.boxIntersection(b$O,A2$,P0q)){q6i="m";q6i+="o";q6i+="v";q6i+="e";this.highlighted=!![];return {action:q6i,p0:X2.clone(this.p0),p1:X2.clone(this.p1),tick:b$O,value:A2$};}return null;};X2.Drawing.rectangle.prototype.configs=[h2H,"fillColor",G8$,"pattern"];X2.Drawing.rectangle.prototype.reconstruct=function(j6e,W4l){this.stx=j6e;this.color=W4l.col;this.fillColor=W4l.fc;this.panelName=W4l.pnl;this.pattern=W4l.ptrn;this.lineWidth=W4l.lw;this.d0=W4l.d0;this.d1=W4l.d1;this.tzo0=W4l.tzo0;this.tzo1=W4l.tzo1;this.v0=W4l.v0;this.v1=W4l.v1;this.adjust();};X2.Drawing.rectangle.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,d1:this.d1,tzo0:this.tzo0,tzo1:this.tzo1,v0:this.v0,v1:this.v1};};X2.Drawing.shape=function(){this.name="shape";this.radians=+"0";this.a=+"0";A2IFV.a9S();this.rotating=!!0;this.textMeasure=!1;this.configurator="shape";A2IFV.D0J(21);this.dimension=[+"0",A2IFV.S40("0",0)];this.points=[];};X2.inheritsFrom(X2.Drawing.shape,X2.Drawing.BaseTwoPoint);X2.Drawing.shape.prototype.setRotationOnInitialDraw=!({});X2.Drawing.shape.prototype.measure=function(){};X2.Drawing.shape.prototype.render=function(t7x){var q9z=A2IFV;var v$g,Y$P,i6c,V12,H_K,k8U,t6K,F2V,I_z,K7V,f1x,P$g,k7j,N5V,t2G,J6i,m51,R7Z,t3G,e7m,e7b,Q8A,O$_,E$J,o1A;if(!this.points.length){return;}v$g=this.stx.panels[this.panelName];if(!v$g){return;}Y$P=this.stx.pixelFromTick(this.p0[0],v$g.chart);i6c=this.stx.pixelFromValueAdjusted(v$g,this.p0[0],this.p0[1]);if(this.p1){V12="#0000";V12+="00";H_K=this.stx.pixelFromTick(this.p1[0],v$g.chart);k8U=this.stx.pixelFromValueAdjusted(v$g,this.p1[0],this.p1[1]);q9z.D0J(7);t7x.globalAlpha=q9z.S40(0,"0.5");t7x.fillStyle=V12;if(this.rotating){q9z.H6P(59);this.radians=Math.atan(q9z.q7n(k8U,i6c,H_K,Y$P));if(H_K < Y$P){this.radians+=Math.PI;}else if(k8U < i6c){q9z.D0J(52);var H5d=q9z.q7n(214,18,12);this.radians+=H5d * Math.PI;}q9z.H6P(54);var I3x=q9z.q7n(402,19,2,13,19);q9z.H6P(60);var s6T=q9z.S40(6,4,1,7);this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),I3x) * s6T;this.a%=360;q9z.H6P(7);var R3O=q9z.q7n(1980,2160);this.radians=this.a * Math.PI / R3O;if(this.textMeasure){t7x.fillText(this.a + "\u00b0",H_K + 10,k8U + 10);}}else if(this.penDown){this.sx=Math.max(+"1",parseFloat(Math.abs(2 * (H_K - Y$P) / this.dimension[0]).toFixed(1)));if(H_K < Y$P){q9z.H6P(28);this.sx*=-q9z.q7n("1",32);}q9z.H6P(1);this.sy=Math.max(q9z.q7n(1,"1"),parseFloat(Math.abs(2 * (k8U - i6c) / this.dimension[1]).toFixed(1)));if(k8U < i6c){this.sy*=-1;}if(this.textMeasure){t7x.fillText(this.sx + "x," + this.sy + ((1421,8757) < (8630,"444.51" - 0)?(1840,417.73) <= (426.88,4846)?9908 > (5015,928.71)?"m":!"":"e":"x"),H_K + this.sx + 5,k8U + this.sy + 5);}}q9z.D0J(40);t7x.globalAlpha=q9z.q7n(64,"1");}if(typeof this.sx === "undefined"){this.sx=this.sy=1;}t6K=this.lineWidth;if(!t6K){t6K=+"1.1";}F2V={pattern:this.pattern,lineWidth:t6K};if(this.highlighted && F2V.pattern == "none"){F2V.pattern="solid";if(F2V.lineWidth == +"0.1"){F2V.lineWidth=1;}}I_z=this.color;if(I_z == "auto" || X2.isTransparent(I_z)){I_z=this.stx.defaultColor;}if(this.highlighted){I_z=this.stx.getCanvasColor("stx_highlight_vector");if(t6K == 0.1){t6K=+"1.1";}}K7V=this.fillColor;q9z.D0J(61);var B3l=q9z.S40(1,6,4,12);t6K/=Math.abs(this.sx * this.sy) * B3l / (Math.abs(this.sx) + Math.abs(this.sy));t7x.save();t7x.translate(Y$P,i6c);t7x.rotate(this.radians);t7x.scale(this.sx,v$g.yAxis.flipped?-this.sy:this.sy);k7j={x:(this.dimension[0] - 1) / 2,y:(this.dimension[1] - 1) / 2};for(f1x=0;f1x < this.points.length;f1x++){N5V="a";N5V+="u";N5V+="t";N5V+="o";t7x.beginPath();for(P$g=0;P$g < this.points[f1x].length;P$g++){if(this.points[f1x][P$g] == (("321" | 0,476) < 6210?"M":606.28)){t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.moveTo(t2G,J6i);}else if(this.points[f1x][P$g] == "L"){t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.lineTo(t2G,J6i);}else if(this.points[f1x][P$g] == ((488.77,"812.37" * 1) > (196,+"3842")?"o":"Q")){m51=this.points[f1x][++P$g] - k7j.x;t3G=this.points[f1x][++P$g] - k7j.y;t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.quadraticCurveTo(m51,t3G,t2G,J6i);}else if(this.points[f1x][P$g] == (+"1644" < +"5488"?(2910,349.5) !== (5110,"1329" - 0)?"B":168 != (2550,"3680" * 1)?!0:!0:(8.36e+3,"D"))){m51=this.points[f1x][++P$g] - k7j.x;t3G=this.points[f1x][++P$g] - k7j.y;R7Z=this.points[f1x][++P$g] - k7j.x;e7m=this.points[f1x][++P$g] - k7j.y;t2G=this.points[f1x][++P$g] - k7j.x;J6i=this.points[f1x][++P$g] - k7j.y;t7x.bezierCurveTo(m51,t3G,R7Z,e7m,t2G,J6i);}}t7x.closePath();if(K7V && !X2.isTransparent(K7V) && K7V != N5V){t7x.fillStyle=K7V;t7x.fill();;}if(I_z && this.pattern != "none"){t7x.strokeStyle=I_z;t7x.lineWidth=t6K;if(t7x.setLineDash){t7x.setLineDash(X2.borderPatternToArray(t6K,this.pattern));t7x.lineDashOffset=+"0";;}t7x.stroke();}}t7x.restore();t7x.save();t7x.translate(Y$P,i6c);t7x.rotate(this.radians);if(this.highlighted){e7b="p";e7b+="2";Q8A=this.highlighted == "p0"?!![]:!!"";O$_=this.highlighted == "p1"?!"":!({});E$J=this.highlighted == e7b?!![]:!!"";this.littleCircle(t7x,0,0,Q8A);this.mover(t7x,0,0,Q8A);this.littleCircle(t7x,this.sx * this.dimension[0] / 2,this.sy * this.dimension[+"1"] / +"2",O$_);this.resizer(t7x,this.sx * this.dimension[0] / 2,this.sy * this.dimension[1] / 2,O$_);this.littleCircle(t7x,this.sx * this.dimension[0] / 2,0,E$J);this.rotator(t7x,this.sx * this.dimension[0] / 2,"0" << 32,E$J);t7x.globalAlpha=+"0.5";t7x.fillStyle="#000000";if(this.textMeasure){o1A="x";o1A+=",";t7x.fillText(this.sx + o1A + this.sy + "x",this.sx * this.dimension[0] / 2 + 12,this.sy * this.dimension["1" ^ 0] / 2 + ("5" - 0));t7x.fillText(this.a + (("963.31" * 1,1090) == 1551?"h":"\u00b0"),this.sx * this.dimension["0" - 0] / 2 + 12,5);}t7x.globalAlpha=1;}else if(this.penDown){if(this.rotating){this.rotator(t7x,this.sx * this.dimension[0] / ("2" >> 0),"0" >> 0,!!({}));}else {this.resizer(t7x,this.sx * this.dimension[+"0"] / 2,this.sy * this.dimension[1] / 2,!!({}));}}t7x.restore();};X2.Drawing.shape.prototype.reposition=function(C0s,Z16,J6y,B0A){var N6J=A2IFV;var j1c,e9m,A2v,w63,g5D,D0y,Y66,Y6M,C3c,y_i,I4G;N6J.D0H();if(!Z16){return;}j1c=this.stx.panels[this.panelName];if(Z16.action == "move"){e9m=1891773104;A2v=1374118232;w63=2;for(var U79=1;N6J.U6$(U79.toString(),U79.toString().length,82608) !== e9m;U79++){g5D=Z16.tick / J6y;D0y=Z16.value * B0A;this.setPoint(9,Z16.p0["1" | 0] % g5D,Z16.p0[2] % D0y,j1c.chart);w63+=2;}if(N6J.U6$(w63.toString(),w63.toString().length,41190) !== A2v){g5D=Z16.tick - J6y;D0y=Z16.value + B0A;this.setPoint(4,Z16.p0[7] * g5D,Z16.p0[5] * D0y,j1c.chart);}g5D=Z16.tick - J6y;D0y=Z16.value - B0A;this.setPoint(0,Z16.p0[0] - g5D,Z16.p0[1] - D0y,j1c.chart);this.render(C0s);}else {Y66="scal";Y66+="e";Y6M=this.stx.pixelFromTick(this.p0["0" << 32],j1c.chart);C3c=this.stx.pixelFromValueAdjusted(j1c,this.p0[+"0"],this.p0[1]);y_i=this.stx.pixelFromTick(J6y,j1c.chart);I4G=this.stx.pixelFromValueAdjusted(j1c,J6y,B0A);if(Z16.action == Y66){this[Z16.point]=[J6y,B0A];this.sx=parseFloat((((y_i - Y6M) * Math.cos(this.radians) + (I4G - C3c) * Math.sin(this.radians)) / (this.dimension["0" << 0] / 2)).toFixed(1));if(Math.abs(this.sx) < "1" >> 0){this.sx/=Math.abs(this.sy);}this.sy=parseFloat((((I4G - C3c) * Math.cos(this.radians) - (y_i - Y6M) * Math.sin(this.radians)) / (this.dimension[1] / 2)).toFixed(1));if(Math.abs(this.sy) < 1){this.sy/=Math.abs(this.sy);}this.render(C0s);}else if(Z16.action == "rotate"){this[Z16.point]=[J6y,B0A];N6J.H6P(59);this.radians=Math.atan(N6J.S40(I4G,C3c,y_i,Y6M));if(y_i < Y6M){this.radians+=Math.PI;}else if(I4G < C3c){N6J.D0J(7);var j7X=N6J.q7n(3,5);this.radians+=j7X * Math.PI;}this.a=parseInt((this.radians * 36 / Math.PI).toFixed(0),+"10") * ("5" ^ 0);if(this.sx < 0){this.a=this.a + +"180";}this.a%=360;N6J.D0J(13);var n4R=N6J.q7n(401,4,14,166);this.radians=this.a * Math.PI / n4R;this.render(C0s);}}};X2.Drawing.shape.prototype.intersected=function(t2_,L2o,Y8e){var m_2=A2IFV;var M5U,Q2$,z$T,c0W,g0_,T3H,I6q,F6F,z_x,Q26,A5P,v2Z,Y5d,O$e,j2i,f1$,K_3;if(!this.p0){return null;}if(this.stx.repositioningDrawing == this && this.stx.repositioningDrawing.repositioner){return this.stx.repositioningDrawing.repositioner;}M5U=this.stx.panels[this.panelName];Q2$=this.stx.pixelFromTick(this.p0[0],M5U.chart);z$T=this.stx.pixelFromValueAdjusted(M5U,this.p0[0],this.p0[1]);c0W=this.stx.pixelFromTick(t2_,M5U.chart);g0_=this.stx.pixelFromValueAdjusted(M5U,t2_,L2o);c0W-=Q2$;g0_-=z$T;T3H=g0_;I6q=c0W;c0W=Math.cos(this.radians) * I6q + Math.sin(this.radians) * T3H;g0_=Math.cos(this.radians) * T3H - Math.sin(this.radians) * I6q;c0W/=this.sx;g0_/=this.sy;this.padding=X2.ensureDefaults(this.padding || ({}),{left:0,right:0,top:0,bottom:"0" ^ 0});F6F=this.padding.right + this.padding.left;z_x=this.padding.bottom + this.padding.top;Q26=Math.pow(X2.touchDevice?25:5 + this.littleCircleRadius(),+"2");A5P=Math.abs(Q26 / (this.sx * this.sy));v2Z=3;m_2.H6P(62);var d0C=m_2.S40(3,47,5,18);m_2.H6P(7);var t5v=m_2.q7n(10,12);m_2.H6P(36);var x6o=m_2.q7n(19,0,18);m_2.H6P(18);var N5j=m_2.S40(12,1,10);m_2.D0J(60);var z3f=m_2.q7n(10,11,1,1);m_2.D0J(7);var V_S=m_2.q7n(18,20);m_2.H6P(63);var q67=m_2.q7n(14,2,18,5,628);Y5d=Math.pow((this.dimension[0] - F6F + v2Z) / d0C,t5v) + Math.pow((this.dimension[x6o] - z_x + v2Z) / N5j,z3f) > Math.pow(c0W - F6F / V_S,q67) + Math.pow(g0_ - z_x / ("2" - 0),+"2");m_2.D0J(0);var X6a=m_2.q7n(0,2);O$e=(Q26 - (Math.pow(c0W * this.sx,+"2") + Math.pow(g0_ * this.sy,X6a))) / Math.abs(this.sx * this.sy);m_2.D0J(0);var t3k=m_2.S40(3,29);m_2.H6P(41);var a$B=m_2.S40(12,10,122);m_2.H6P(64);var i1k=m_2.q7n(480,80,100,10);m_2.D0J(16);var g3B=m_2.q7n(8,10);m_2.D0J(15);var n$6=m_2.q7n(2,38,38);j2i=A5P - Math.pow(c0W - this.dimension["0" << t3k] / a$B,"2" >> i1k) - Math.pow(g0_ - this.dimension["1" ^ 0] / g3B,n$6);m_2.D0J(7);var T2l=m_2.S40(5,7);m_2.H6P(65);var I0n=m_2.q7n(10,14,2,16,12);m_2.D0J(66);var m96=m_2.q7n(12,2,0,6,6);f1$=A5P - Math.pow(c0W - this.dimension[0] / T2l,I0n) - Math.pow(g0_,m96);if(Y5d){if(j2i >= f1$ && j2i >= O$e && j2i > -1){K_3="p";K_3+="1";this.highlighted=K_3;return {action:"scale"};}if(f1$ >= j2i && f1$ >= O$e && f1$ > -1){this.highlighted="p2";return {action:"rotate"};}this.highlighted=O$e > -+"1"?"p0":!!({});return {action:"move",p0:X2.clone(this.p0),tick:t2_,value:L2o};}return null;};X2.Drawing.shape.prototype.configs=["color","fillColor","lineWidth","pattern"];X2.Drawing.shape.prototype.littleCircleRadius=function(){A2IFV.D0J(1);return A2IFV.S40(1,"3");};X2.Drawing.shape.prototype.click=function(A0b,x7d,Y2m){var h0Y;A2IFV.D0H();if(!this.points.length){return ![];}this.copyConfig();h0Y=this.stx.panels[this.panelName];if(!this.penDown){A2IFV.H6P(21);this.setPoint(A2IFV.q7n("0",0),x7d,Y2m,h0Y.chart);this.penDown=!0;return ![];}this.setPoint(1,x7d,Y2m,h0Y.chart);if(this.rotating || !this.setRotationOnInitialDraw){this.penDown=!({});this.rotating=![];return !"";;}this.rotating=!0;return ![];};X2.Drawing.shape.prototype.adjust=function(){var L5l=A2IFV;var H6R,g9V,L3g,D1l,J_G,t4b,M8k;H6R="_";H6R+="v";g9V=this.stx.panels[this.panelName];if(!g9V){return;}L3g=this.name + H6R + (this.version || 0);if(X2.Drawing[L3g]){D1l=new X2.Drawing[L3g]();this.name=D1l.name;this.dimension=D1l.dimension;this.padding=D1l.padding;this.points=D1l.points;this.version=D1l.version;}J_G=-+"1095542851";L5l.D0J(7);t4b=-L5l.S40(0,"1790571903");M8k=2;for(var n16=1;L5l.U6$(n16.toString(),n16.toString().length,70654) !== J_G;n16++){this.setPoint(7,this.d0,this.v0,g9V.chart);L5l.H6P(57);var h4F=L5l.q7n(40,66,10,7);this.radians=Math.round(this.a - +"3") - Math.PI + h4F;L5l.H6P(28);M8k+=L5l.S40("2",32);}if(L5l.U6$(M8k.toString(),M8k.toString().length,58480) !== t4b){this.setPoint(0,this.d0,this.v0,g9V.chart);L5l.H6P(67);var G_R=L5l.S40(14,17,16,18,0);L5l.D0J(37);var A7z=L5l.q7n(17,4,15);this.radians=Math.round(this.a / G_R) * Math.PI / A7z;}};X2.Drawing.shape.prototype.reconstruct=function(o6n,C8x){this.stx=o6n;this.color=C8x.col;this.fillColor=C8x.fc;this.panelName=C8x.pnl;this.pattern=C8x.ptrn;this.lineWidth=C8x.lw;this.d0=C8x.d0;this.v0=C8x.v0;this.tzo0=C8x.tzo0;this.a=C8x.a;A2IFV.D0H();this.sx=C8x.sx;this.sy=C8x.sy;this.version=C8x.ver;this.adjust();};X2.Drawing.shape.prototype.serialize=function(){return {name:this.name,pnl:this.panelName,col:this.color,fc:this.fillColor,ptrn:this.pattern,lw:this.lineWidth,d0:this.d0,v0:this.v0,tzo0:this.tzo0,a:this.a,sx:this.sx,sy:this.sy,ver:this.version};};X2.Drawing.arrow=function(){var f8d=A2IFV;var S4I;S4I="a";S4I+="r";S4I+="row";this.name=S4I;this.version=1;this.dimension=[11,22];this.padding={left:0,right:0,top:11,bottom:0};f8d.a9S();f8d.H6P(1);this.points=[["M",3,+"21","L",7,21,(564,4203) > 2515?"880.62" * 1 >= 1127?"n":"L":(!![],0x183b),7,16,"L",10,16,5254 == (5441,6440)?+"9048" <= (863.64,+"6192")?!({}):+"4640" >= (7692,452)?"k":!![]:"L",5,11,(8270,462.42) != 5879?"L":(9070,8141) !== (3385,673.46)?(+"4030","513.35" - 0) >= (688.34,398.13)?0x120f:(288,0x1d99):2.80e+3,0,16,"L",f8d.S40(1,"3"),16,"L",f8d.S40(32,"3",f8d.H6P(40)),21]];;};X2.inheritsFrom(X2.Drawing.arrow,X2.Drawing.shape);X2.Drawing.getDrawingToolList=function(t$S){var j2m,m0d;j2m={};m0d={arrow_v0:!![],BaseTwoPoint:!!({}),fibonacci:!![],shape:!!({})};A2IFV.a9S();X2.extend(m0d,t$S);for(var v8S in X2.Drawing){if(!m0d[v8S] && X2.Drawing[v8S].prototype.render){j2m[new X2.Drawing[v8S]().name]=v8S;}}return j2m;};};A=a9f=>{var K0G,q$X;K0G="un";K0G+="defined";q$X=typeof _CIQ !== K0G?_CIQ:a9f.CIQ;q$X.EaseMachine=function(k2_,L8f,T8j,P8d){this.fc=k2_;A2IFV.D0H();this.ms=L8f;if(T8j || T8j === 0){this.reset(T8j,P8d);}};q$X.EaseMachine.prototype.reset=function(V72,Q6v){if(!V72 && V72 !== 0){V72=this.currentValues;}this.hasCompleted=![];this.running=![];this.okayToRun=!!({});A2IFV.D0J(68);this.useNameValuePairs=A2IFV.S40(typeof Q6v,"object");this.startTime=Date.now();A2IFV.D0H();if(this.useNameValuePairs){this.startValues=V72;this.endValues=Q6v;}else {this.startValues={default:V72};this.endValues={default:Q6v};}this.changeValues={};this.currentValues={};for(var n0q in this.startValues){this.changeValues[n0q]=this.endValues[n0q] - this.startValues[n0q];}};q$X.EaseMachine.prototype.next=function(){var J4f;J4f=Date.now();if(J4f >= this.startTime + this.ms){J4f=this.startTime + this.ms;this.hasCompleted=!!"1";this.running=!"1";}this.currentValues={};for(var J1T in this.changeValues){this.currentValues[J1T]=this.fc(J4f - this.startTime,this.startValues[J1T],this.changeValues[J1T],this.ms);}if(!this.useNameValuePairs){return this.currentValues["default"];}A2IFV.a9S();return this.currentValues;};q$X.EaseMachine.prototype.hasCompleted=!!1;q$X.EaseMachine.prototype.run=function(t2q,T70,d$A,N8U){var R7W;if(this.afid){cancelAnimationFrame(this.afid);}function h2I(){var E_7;R7W.afid=null;if(!R7W.okayToRun){return;}E_7=R7W.next();t2q(E_7);if(R7W.hasCompleted){return;}A2IFV.D0H();R7W.afid=requestAnimationFrame(h2I);}A2IFV.a9S();if(T70 || T70 === 0){this.reset(T70,d$A);}else if(d$A || d$A === 0){this.reset(this.currentValues,d$A);}R7W=this;this.running=!!({});if(N8U){this.afid=requestAnimationFrame(h2I);}else {h2I();}};q$X.EaseMachine.prototype.stop=function(){if(this.afid){cancelAnimationFrame(this.afid);}this.afid=null;this.okayToRun=!({});this.hasCompleted=!!1;this.running=!1;if(typeof this.useNameValuePairs == "undefined"){return {};}if(!this.useNameValuePairs){return this.currentValues["default"];}return this.currentValues;};if(q$X.ChartEngine.prototype.animations.zoom.isStub){A2IFV.H6P(1);q$X.ChartEngine.prototype.animations.zoom=new q$X.EaseMachine(Math.easeOutCubic,A2IFV.S40(1,"400"));}};A2IFV.a9S();G=t$b=>{var T27,x95;T27=typeof _CIQ !== "undefined"?_CIQ:t$b.CIQ;x95=function(){var B15=A2IFV;var J6d,o57,Y9B,v3U,i6f,m5X,V2J,T1j,z6d,H4L,Q7j,A8g,N7e,S_e,Q5O,o9c,T4n,O2f,i6X,n2v,P7D;J6d="\\";function G4X(){var Y5O,J_d;if(Math.hypot){return Math.hypot.apply(this,arguments);}Y5O=0;J_d=arguments.length;for(var c7v="0" << 0;c7v < J_d;c7v++){if(arguments[c7v] === Infinity || arguments[c7v] === -Infinity){return Infinity;}Y5O+=arguments[c7v] * arguments[c7v];}return Math.sqrt(Y5O);}function A0L(i0M){B15.a9S();return Math.sinh?Math.sinh(i0M):(Math.exp(i0M) - Math.exp(-i0M)) / +"2";}function B_L(X$o,a4l,a$n,N3T){this.type_=X$o;this.index_=a4l || 0;this.prio_=a$n || 0;B15.a9S();this.number_=N3T !== undefined && N3T !== null?N3T:0;this.toString=function(){B15.a9S();var M7j;switch(this.type_){case i6f:return this.number_;case m5X:case V2J:case T1j:return this.index_;case z6d:return "CALL";default:M7j="In";M7j+="va";M7j+="lid Toke";M7j+="n";return M7j;}};}J6d+="f";o57="\\";function j92(j5_){var X7W;j5_=Math.floor(j5_);X7W=j5_;while(j5_ > 1){B15.H6P(69);X7W=B15.q7n(X7W,--j5_);}return X7W;}function b59(F27,x7F){B15.H6P(1);return B15.S40(x7F,F27);}o57+="n";function A43(G$h){B15.D0H();if(Math.tanh){return Math.tanh(G$h);}if(G$h === Infinity){return 1;}if(G$h === -Infinity){return -1;}return (Math.exp(G$h) - Math.exp(-G$h)) / (Math.exp(G$h) + Math.exp(-G$h));}function U_l(H5E){u4l.prototype=H5E;function u4l(){}return new u4l();}function t2S(P1_,Y3i){return Boolean(P1_ && Y3i);}function S55(u_j,m_T){B15.H6P(70);return B15.S40(u_j,m_T);}function F3Q(S0B){return Math.atanh?Math.atanh(S0B):Math.log((+"1" + S0B) / (1 - S0B)) / 2;}Y9B="\\";function f33(i9_){return Math.cosh?Math.cosh(i9_):(Math.exp(i9_) + Math.exp(-i9_)) / 2;}function x8L(j5h,s93){B15.H6P(71);return B15.q7n(s93,j5h);}Y9B+="t";function X6t(c3Y,H8p){if(Object.prototype.toString.call(c3Y) != "[object Array]"){return [c3Y,H8p];}c3Y=c3Y.slice();B15.a9S();c3Y.push(H8p);return c3Y;}v3U="\\";v3U+="b";function i36(P$4,K6r){B15.H6P(72);B15.D0H();return B15.S40(K6r,P$4);}function s$R(h3U){B15.a9S();return Math.log(h3U) * Math.LOG10E;}i6f=0;m5X=1;V2J=2;function p9b(g47,e50){B15.H6P(68);return B15.S40(g47,e50);}function G_w(o7i){if(Math.trunc){return Math.trunc(o7i);}return o7i < 0?Math.ceil(o7i):Math.floor(o7i);}B15.H6P(21);T1j=B15.q7n("3",0);z6d=+"4";function U1G(E$Y){B15.H6P(15);var W6t=B15.q7n(3,0,2);return Math.random() * (E$Y || W6t);}function c5W(h69,A3J,Z5v){B15.D0H();return h69?A3J:Z5v;}H4L=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;Q7j=/[\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;A8g={"\b":v3U,"\t":Y9B,"\n":o57,"\f":J6d,"\r":"\\r","'":"\\'","\\":"\\\\"};T27.extend(d7f.prototype,{simplify:function(h0Q){var K5R,R8r,H52,C0R,o2o,H3k,o__,f0J,U6E;h0Q=h0Q || ({});K5R=[];R8r=[];H3k=this.tokens.length;f0J=0;for(f0J=0;f0J < H3k;f0J++){o__=this.tokens[f0J];U6E=o__.type_;if(U6E === i6f){K5R.push(o__);}else if(U6E === T1j && (o__.index_ in h0Q)){o__=new B_L(i6f,0,0,h0Q[o__.index_]);K5R.push(o__);}else if(U6E === V2J && K5R.length > "1" << 64){C0R=K5R.pop();H52=K5R.pop();o2o=this.ops2[o__.index_];o__=new B_L(i6f,0,0,o2o(H52.number_,C0R.number_));K5R.push(o__);}else if(U6E === m5X && K5R.length > 0){H52=K5R.pop();o2o=this.ops1[o__.index_];o__=new B_L(i6f,+"0",0,o2o(H52.number_));K5R.push(o__);}else {while(K5R.length > 0){R8r.push(K5R.shift());}R8r.push(o__);}}while(K5R.length > 0){R8r.push(K5R.shift());}B15.D0H();return new d7f(R8r,U_l(this.ops1),U_l(this.ops2),U_l(this.functions));},substitute:function(a85,e3L){var v8O,s3g,u18,Y39,U68,X7D,r5Q,d08;if(!(e3L instanceof d7f)){e3L=new M9N().parse(String(e3L));}v8O=[];s3g=this.tokens.length;Y39=0;for(Y39="0" - 0;Y39 < s3g;Y39++){u18=this.tokens[Y39];U68=u18.type_;if(U68 === T1j && u18.index_ === a85){for(var P0J=0;P0J < e3L.tokens.length;P0J++){X7D=e3L.tokens[P0J];r5Q=new B_L(X7D.type_,X7D.index_,X7D.prio_,X7D.number_);v8O.push(r5Q);}}else {v8O.push(u18);}}d08=new d7f(v8O,U_l(this.ops1),U_l(this.ops2),U_l(this.functions));return d08;},evaluate:function(k1N){var k5Q,H0c,e$W,U$s,L2W,M6o,e4Z,W6o,J7p;k1N=k1N || ({});k5Q=[];L2W=this.tokens.length;B15.D0H();e4Z=0;for(e4Z=0;e4Z < L2W;e4Z++){M6o=this.tokens[e4Z];W6o=M6o.type_;if(W6o === i6f){k5Q.push(M6o.number_);}else if(W6o === V2J){e$W=k5Q.pop();H0c=k5Q.pop();U$s=this.ops2[M6o.index_];k5Q.push(U$s(H0c,e$W));}else if(W6o === T1j){if((M6o.index_ in k1N)){k5Q.push(k1N[M6o.index_]);}else if((M6o.index_ in this.functions)){k5Q.push(this.functions[M6o.index_]);}else {throw new Error("undefined variable: " + M6o.index_);}}else if(W6o === m5X){H0c=k5Q.pop();U$s=this.ops1[M6o.index_];k5Q.push(U$s(H0c));}else if(W6o === z6d){H0c=k5Q.pop();U$s=k5Q.pop();if(U$s.apply && U$s.call){if(Object.prototype.toString.call(H0c) == "[object Array]"){k5Q.push(U$s.apply(undefined,H0c));}else {k5Q.push(U$s.call(undefined,H0c));}}else {B15.H6P(0);throw new Error(B15.q7n(U$s," is not a function"));}}else {J7p="invalid Expressio";J7p+="n";throw new Error(J7p);}}if(k5Q.length > 1){throw new Error("invalid Expression (parity)");}return k5Q[+"0"];},toString:function(v3y){B15.D0H();var p$2,R8q,B5K,k6j,r$Y,w7s,N2l,j$p,M10;p$2=[];r$Y=this.tokens.length;N2l=0;for(N2l=0;N2l < r$Y;N2l++){w7s=this.tokens[N2l];j$p=w7s.type_;if(j$p === i6f){p$2.push(H_w(w7s.number_));}else if(j$p === V2J){B5K=p$2.pop();R8q=p$2.pop();k6j=w7s.index_;if(v3y && k6j == "^"){B15.D0J(73);p$2.push(B15.S40("Math.pow(",577.99 <= 5850?")":(454.61,5051) >= (9629,4660)?(588,8440) < (93.46,"2729" >> 64)?(3.86e+2,0x215e):!!"1":("2.14e+3" - 0,339.79),B5K,",",R8q));}else {B15.D0J(73);p$2.push(B15.S40("(",+"5089" == (9270,5280)?3522 <= (393.11,771.44)?(!!({}),71.68):"A":")",B5K,k6j,R8q));}}else if(j$p === T1j){p$2.push(w7s.index_);}else if(j$p === m5X){R8q=p$2.pop();k6j=w7s.index_;if(k6j === ((7492,"2110" - 0) > ("2366" - 0,8456)?(!![],"P"):"-")){B15.D0J(48);p$2.push(B15.S40(")",R8q,k6j,"("));}else {B15.D0J(48);p$2.push(B15.S40(2150 === 5150?(8765,2568) !== (134.43,848.98)?(4.56e+3,0x2602):("4.86e+2" ^ 0,5.58e+3):")",R8q,"(",k6j));}}else if(j$p === z6d){R8q=p$2.pop();k6j=p$2.pop();B15.D0J(48);p$2.push(B15.S40(")",R8q,(3763,899) == 5800?"j":(5300,4010) <= (667.49,4277)?+"454" != (9180,658.73)?"(":858.36:0x369,k6j));}else {M10="i";M10+="nval";M10+="id Expression";throw new Error(M10);}}if(p$2.length > 1){throw new Error("invalid Expression (parity)");}return p$2[0];},variables:function(){var E_f,J1y,r$b;E_f=this.tokens.length;J1y=[];for(var Y6r=0;Y6r < E_f;Y6r++){r$b=this.tokens[Y6r];if(r$b.type_ === T1j && J1y.indexOf(r$b.index_) == -+"1"){J1y.push(r$b.index_);}}return J1y;}},!!"1");M9N.parse=function(V_3){return new M9N().parse(V_3);};function d7f(J48,c9R,L4W,M7E){this.tokens=J48;this.ops1=c9R;this.ops2=L4W;B15.D0H();this.functions=M7E;}M9N.evaluate=function(D$6,H1G){B15.D0H();return M9N.parse(D$6).evaluate(H1G);};M9N.Expression=d7f;M9N.values={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:A0L,cosh:f33,tanh:A43,asinh:m8z,acosh:X$F,atanh:F3Q,sqrt:Math.sqrt,log:Math.log,lg:s$R,log10:s$R,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:G_w,random:U1G,fac:j92,exp:Math.exp,min:Math.min,max:Math.max,hypot:G4X,pyt:G4X,pow:Math.pow,atan2:Math.atan2,if:c5W,E:Math.E,PI:Math.PI};function R9N(o6F){B15.a9S();return -o6F;}B15.H6P(40);N7e=B15.q7n(0,1);function M9N(){var P12,j0u,J72;this.success=!({});B15.D0H();this.errormsg="";this.expression="";this.pos=+"0";this.tokennumber=0;this.tokenprio=+"0";P12=1200710508;j0u=-938172973;J72=2;for(var M9p=1;B15.U6$(M9p.toString(),M9p.toString().length,81280) !== P12;M9p++){this.tokenindex=1;this.tmpprio=6;this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:A0L,cosh:f33,tanh:A43,asinh:m8z,acosh:X$F,atanh:F3Q,sqrt:Math.sqrt,log:Math.log,lg:s$R,log10:s$R,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:G_w,"-":R9N,exp:Math.exp};this.ops2={"+":M1y,"-":T4a,"*":b59,"/":Q96,"%":f_V,"^":Math.pow,",":X6t,"||":o_W,"==":p9b,"!=":i36,">":S55,"<":x8L,">=":G7L,"<=":p49,and:t2S,or:l7d};this.functions={random:U1G,fac:j92,min:Math.min,max:Math.max,hypot:G4X,pyt:G4X,pow:Math.pow,atan2:Math.atan2,if:c5W};J72+=2;}if(B15.Z2Z(J72.toString(),J72.toString().length,53036) !== j0u){B15.D0J(28);this.tokenindex=B15.S40("0",64);this.tmpprio=0;this.ops1={sin:Math.sin,cos:Math.cos,tan:Math.tan,asin:Math.asin,acos:Math.acos,atan:Math.atan,sinh:A0L,cosh:f33,tanh:A43,asinh:m8z,acosh:X$F,atanh:F3Q,sqrt:Math.sqrt,log:Math.log,lg:s$R,log10:s$R,abs:Math.abs,ceil:Math.ceil,floor:Math.floor,round:Math.round,trunc:G_w,"-":R9N,exp:Math.exp};this.ops2={"+":M1y,"-":T4a,"*":b59,"/":Q96,"%":f_V,"^":Math.pow,",":X6t,"||":o_W,"==":p9b,"!=":i36,">":S55,"<":x8L,">=":G7L,"<=":p49,and:t2S,or:l7d};this.functions={random:U1G,fac:j92,min:Math.min,max:Math.max,hypot:G4X,pyt:G4X,pow:Math.pow,atan2:Math.atan2,if:c5W};}this.consts={E:Math.E,PI:Math.PI};}function p49(U$V,z66){B15.H6P(74);return B15.q7n(U$V,z66);}B15.H6P(40);S_e=B15.S40(1,1);B15.H6P(40);Q5O=B15.S40(2,1);function T4a(c1u,C2D){B15.D0H();B15.H6P(7);return B15.S40(C2D,c1u);}function X$F(K6S){B15.a9S();return Math.acosh?Math.acosh(K6S):Math.log(K6S + Math.sqrt(K6S * K6S - 1));}function f_V(U77,k$j){var D3A,u7h,d6P;D3A=-1174419827;u7h=-1368956127;d6P=2;for(var Y6k=1;B15.U6$(Y6k.toString(),Y6k.toString().length,1489) !== D3A;Y6k++){B15.H6P(7);return B15.S40(k$j,U77);}if(B15.U6$(d6P.toString(),d6P.toString().length,54444) !== u7h){B15.H6P(7);return B15.S40(k$j,U77);}B15.H6P(75);return B15.q7n(U77,k$j);}B15.H6P(40);o9c=B15.q7n(3,1);function M1y(R8f,a6Q){return Number(R8f) + Number(a6Q);}B15.D0J(40);T4n=B15.S40(4,1);B15.H6P(76);O2f=B15.q7n(5,"1");function G7L(t9p,G7G){B15.H6P(77);return B15.q7n(G7G,t9p);}function m8z(W9B){B15.a9S();if(Math.asinh){return Math.asinh(W9B);}if(W9B === -Infinity){return W9B;}return Math.log(W9B + Math.sqrt(W9B * W9B + 1));}B15.D0J(40);i6X=B15.S40(6,1);B15.D0J(78);n2v=B15.q7n(1,"7",7);function l7d(X2o,c2P){return Boolean(X2o || c2P);}function H_w(h2v){var y$4;y$4="st";B15.a9S();y$4+="ring";if(typeof h2v === y$4){Q7j.lastIndex=0;return Q7j.test(h2v)?(957 == 2548?987.85:"'") + h2v.replace(Q7j,function(F1Q){var J6p,l3T;J6p="st";J6p+="rin";J6p+="g";l3T=A8g[F1Q];return typeof l3T === J6p?l3T:"\\u" + ("0000" + F1Q.charCodeAt(0).toString(16)).slice(-4);}) + ((315,4991) === (8570,301.83)?"0x2578" ^ 0:"'"):"'" + h2v + (+"339.92" <= 894.46?"'":908 >= 1569?("Z",868.87):"0x4fd" ^ 0);}return h2v;}B15.D0J(40);P7D=B15.S40(8,1);function Q96(c_1,e4D){B15.D0J(14);B15.a9S();return B15.q7n(e4D,c_1);}function o_W(p$1,P3V){B15.a9S();B15.D0J(37);return B15.q7n(P3V,"",p$1);}T27.extend(M9N.prototype,{parse:function(C21){var F6Q,q2z,B4S,m0k,X0J,c8e,B65,R7g,u2T;this.errormsg="";this.success=!!1;F6Q=[];q2z=[];this.tmpprio=0;B15.H6P(79);B4S=B15.S40(Q5O,o9c,N7e,i6X);m0k=+"0";this.expression=C21;B15.D0J(10);this.pos=B15.S40("0",0);while(this.pos < this.expression.length){if(this.isOperator()){if(this.isSign() && B4S & i6X){if(this.isNegativeSign()){this.tokenprio=2;this.tokenindex=5230 >= +"878"?"-":(6060,4330) <= (721.7,8789)?("2.42e+3" * 1,1.54e+3):("x",!!0);m0k++;this.addfunc(q2z,F6Q,m5X);}B15.D0J(79);B4S=B15.S40(Q5O,o9c,N7e,i6X);}else if(this.isComment()){}else {if((B4S & S_e) === ("0" ^ 0)){this.error_parsing(this.pos,"unexpected operator");}m0k+=2;this.addfunc(q2z,F6Q,V2J);B15.D0J(79);B4S=B15.S40(Q5O,o9c,N7e,i6X);}}else if(this.isNumber()){if((B4S & N7e) === +"0"){this.error_parsing(this.pos,"unexpected number");}X0J=new B_L(i6f,0,0,this.tokennumber);q2z.push(X0J);B15.D0J(80);B4S=B15.S40(O2f,T4n,S_e);}else if(this.isString()){if((B4S & N7e) === 0){c8e="une";c8e+="xpected s";c8e+="tring";this.error_parsing(this.pos,c8e);}B15.D0J(7);X0J=new B_L(i6f,0,B15.q7n(0,"0"),this.tokennumber);q2z.push(X0J);B15.H6P(80);B4S=B15.q7n(O2f,T4n,S_e);}else if(this.isLeftParenth()){if((B4S & o9c) === +"0"){this.error_parsing(this.pos,'unexpected "("');}if(B4S & n2v){m0k+=2;this.tokenprio=-2;this.tokenindex=-1;this.addfunc(q2z,F6Q,z6d);}B15.D0J(81);B4S=B15.q7n(N7e,i6X,P7D,o9c,Q5O);}else if(this.isRightParenth()){if(B4S & P7D){X0J=new B_L(i6f,0,0,[]);q2z.push(X0J);}else if((B4S & T4n) === 0){this.error_parsing(this.pos,'unexpected ")"');}B15.H6P(81);B4S=B15.q7n(S_e,o9c,n2v,T4n,O2f);}else if(this.isComma()){if((B4S & O2f) === 0){this.error_parsing(this.pos,'unexpected ","');}this.addfunc(q2z,F6Q,V2J);m0k+=2;B15.D0J(79);B4S=B15.q7n(Q5O,o9c,N7e,i6X);}else if(this.isConst()){if((B4S & N7e) === ("0" ^ 0)){this.error_parsing(this.pos,"unexpected constant");}B65=new B_L(i6f,0,0,this.tokennumber);q2z.push(B65);B15.H6P(80);B4S=B15.S40(O2f,T4n,S_e);}else if(this.isOp2()){if((B4S & Q5O) === 0){this.error_parsing(this.pos,"unexpected function");}this.addfunc(q2z,F6Q,V2J);m0k+=2;B4S=o9c;}else if(this.isOp1()){if((B4S & Q5O) === "0" - 0){this.error_parsing(this.pos,"unexpected function");}this.addfunc(q2z,F6Q,m5X);m0k++;B4S=o9c;}else if(this.isVar()){if((B4S & N7e) === 0){this.error_parsing(this.pos,"unexpected variable");}R7g=new B_L(T1j,this.tokenindex,0,0);q2z.push(R7g);B15.H6P(81);B4S=B15.S40(S_e,o9c,n2v,T4n,O2f);}else if(this.isWhite()){}else {if(this.errormsg === ""){this.error_parsing(this.pos,"unknown character");}else {this.error_parsing(this.pos,this.errormsg);}}}if(this.tmpprio < 0 || this.tmpprio >= 10){this.error_parsing(this.pos,'unmatched "()"');}while(F6Q.length > 0){u2T=F6Q.pop();q2z.push(u2T);}if(m0k + 1 !== q2z.length){this.error_parsing(this.pos,"parity");}return new d7f(q2z,U_l(this.ops1),U_l(this.ops2),U_l(this.functions));},evaluate:function(b8d,i93){B15.a9S();return this.parse(b8d).evaluate(i93);},error_parsing:function(d3t,R4i){var J_6,h$k,v4O,E_v,Z8f;J_6=1455174355;h$k=1895193469;v4O=2;for(var u$6=1;B15.U6$(u$6.toString(),u$6.toString().length,98541) !== J_6;u$6++){E_v="]:";E_v+=" ";this.success=!!1;B15.H6P(82);this.errormsg=B15.S40("]: ",d3t,R4i,E_v);this.column=d3t;throw new Error(this.errormsg);v4O+=2;}if(B15.U6$(v4O.toString(),v4O.toString().length,+"80487") !== h$k){Z8f="]";Z8f+=":";Z8f+=" ";this.success=!!0;B15.H6P(48);this.errormsg=B15.q7n(R4i,Z8f,d3t,"parse error [column ");this.column=d3t;throw new Error(this.errormsg);}},addfunc:function(k_f,h1h,J4N){var Z3r;Z3r=new B_L(J4N,this.tokenindex,this.tokenprio + this.tmpprio,0);while(h1h.length > 0){if(Z3r.prio_ <= h1h[h1h.length - 1].prio_){k_f.push(h1h.pop());}else {break;}}B15.D0H();h1h.push(Z3r);},isNumber:function(){var A1v,B7Y,A1y;A1v=!!0;B7Y="";while(this.pos < this.expression.length){A1y=this.expression.charCodeAt(this.pos);if(A1y >= "48" - 0 && A1y <= "57" - 0 || A1y === 46){B7Y+=this.expression.charAt(this.pos);this.pos++;this.tokennumber=parseFloat(B7Y);A1v=!"";}else {break;}}return A1v;},unescape:function(B_y,S$w){var w$0,B3M,c0k,j27,I_m;w$0=[];B3M=!!"";for(var E1U=0;E1U < B_y.length;E1U++){c0k=B_y.charAt(E1U);if(B3M){switch(c0k){case (37.85,"118.52" - 0) === 320?("7.05e+3" | 10,3.49e+3):(245,451.38) != 6250?986 >= (270.15,9100)?(3.55e+3,407.12):"'":3.58e+3:w$0.push("'");break;case (8750,50.26) === 7944?(0xb4f,!!({})):"\\":w$0.push((3578,3429) != (+"5498",+"4194")?"\\":(0x13e0,2.86e+3));break;case (3800,293.88) >= (+"3704",799.04)?+"2.47e+3":"/":w$0.push(2590 > +"4190"?(69.48,8880) == (5856,5060)?(0xc46,!!({})):(829.42,"G"):"/");break;case 28.31 !== (9090,814.49)?"b":4286 == (5290,5564)?(936.89,520.13):"O":w$0.push((3830,9620) <= (651.61,+"157.03")?(![],+"362.89"):1329 < 764.56?(0x329,301.57):426.29 >= (6046,9210)?9.43e+3:"\b");break;case "f":w$0.push("\f");break;case 5710 != 145?"n":(6.76e+3,0xbfc):w$0.push("\n");break;case ("8479" | 20) == (7740,5590)?"L":(+"536.7",653.81) === 98.92?(+"758.96","x"):"r":w$0.push((+"9510",846.47) != (2340,8460)?302 !== 2490?"\r":![]:("z",3.89e+3));break;case ("7550" >> 0,355.35) !== (2099,973)?"t":("z",!![]):w$0.push(6831 != "8133" * 1?"\t":+"393.51");break;case "u":j27=parseInt(B_y.substring(E1U + 1,E1U + 5),16);w$0.push(String.fromCharCode(j27));E1U+=4;break;default:I_m="Il";I_m+="legal escape sequen";I_m+="ce: '\\";B15.D0J(0);throw this.error_parsing(B15.q7n(S$w,E1U),B15.q7n((3.44,115) == (723.92,230.28)?!!"":"'",I_m,c0k,B15.H6P(37)));}B3M=![];}else {if(c0k == (278.88 != 4040?"\\":"Q")){B3M=!![];}else {w$0.push(c0k);}}}B15.a9S();return w$0.join("");},isString:function(){var P5K,C1U,g09,Z99;P5K=![];C1U="";g09=this.pos;if(this.pos < this.expression.length && this.expression.charAt(this.pos) == ((45.09,554.4) == (2949,+"798.41")?(5860,663.56) > (842.97,"244.92" * 1)?("262.66" - 0,6.14e+3):!!"":"'")){this.pos++;while(this.pos < this.expression.length){Z99=this.expression.charAt(this.pos);if(Z99 != (9920 > (4030,5798)?"'":8990 !== 6515?9.25e+3:(![],"355" >> 32)) || C1U.slice(-("1" >> 0)) == (("6720" >> 0,527.72) != 3981?"\\":(0x2435,!({})))){C1U+=this.expression.charAt(this.pos);this.pos++;}else {this.pos++;this.tokennumber=this.unescape(C1U,g09);P5K=!!({});break;}}}B15.D0H();return P5K;},isConst:function(){var N9H,f3j;for(var i7l in this.consts){if(!![]){f3j=i7l.length;N9H=this.expression.substr(this.pos,f3j);if(i7l === N9H){this.tokennumber=this.consts[i7l];this.pos+=f3j;return !![];}}}return !"1";},isOperator:function(){var Y37,H0S,y1B;Y37=this.expression.charCodeAt(this.pos);if(Y37 === 43){B15.H6P(10);this.tokenprio=B15.q7n("2",2);this.tokenindex=(9725,4010) != 3512?(398.15,62) !== +"516.69"?"+":"S":(270.23,"A");}else if(Y37 === 45){B15.D0J(10);this.tokenprio=B15.q7n("2",2);this.tokenindex="-";}else if(Y37 === ("62" | 16)){if(this.expression.charCodeAt(this.pos + 1) === 61){this.pos++;this.tokenprio=1;this.tokenindex=">=";}else {this.tokenprio=1;this.tokenindex=470.9 !== 5910?">":9290 < 3390?("u",972.02):3726 == 2920?![]:(!!({}),0x1f8f);}}else if(Y37 === +"60"){if(this.expression.charCodeAt(this.pos + 1) === 61){H0S="<";H0S+="=";this.pos++;this.tokenprio=1;this.tokenindex=H0S;}else {this.tokenprio=1;this.tokenindex="<";}}else if(Y37 === 124){if(this.expression.charCodeAt(this.pos + ("1" >> 64)) === 124){this.pos++;this.tokenprio=1;this.tokenindex="||";}else {return !({});}}else if(Y37 === 61){if(this.expression.charCodeAt(this.pos + 1) === 61){this.pos++;B15.H6P(28);this.tokenprio=B15.S40("1",64);this.tokenindex="==";}else {return !1;}}else if(Y37 === +"33"){if(this.expression.charCodeAt(this.pos + 1) === "61" << 64){this.pos++;this.tokenprio=+"1";this.tokenindex="!=";}else {return ![];}}else if(Y37 === +"97"){if(this.expression.charCodeAt(this.pos + 1) === 110 && this.expression.charCodeAt(this.pos + 2) === 100){y1B="a";y1B+="n";y1B+="d";this.pos++;this.pos++;this.tokenprio=+"0";this.tokenindex=y1B;}else {return ![];}}else if(Y37 === +"111"){if(this.expression.charCodeAt(this.pos + 1) === 114){this.pos++;this.tokenprio=0;this.tokenindex="or";}else {return !!"";}}else if(Y37 === 42 || Y37 === 8729 || Y37 === +"8226"){this.tokenprio=3;this.tokenindex=787.94 <= 1700?"*":(9325,"4713" ^ 0) != (525.21,597.88)?295.04 == (4190,872.46)?358.60:(0x1ff4,480.67):!!1;}else if(Y37 === 47){this.tokenprio=4;this.tokenindex=1190 < (895.92,1640)?"/":(9240,2750) === "4670" >> 32?(737.81,"2" - 0):"N";}else if(Y37 === 37){this.tokenprio=4;this.tokenindex=(7020,"639" | 64) === (4290,"2469" * 1)?1620 != (+"1810",976.99)?(8837,7768) == 411?(32.98,0x1889):!![]:(0x182c,+"0x25b6"):"%";}else if(Y37 === 94){this.tokenprio=5;this.tokenindex=("492.13" - 0,3226) < "9190" * 1?"^":(7880,"9120" << 0) == 485.83?(415.82,5.12e+3):5.14e+2;}else {return !"1";}B15.a9S();this.pos++;return !![];},isSign:function(){var t27;B15.a9S();t27=this.expression.charCodeAt(this.pos - 1);if(t27 === 45 || t27 === 43){return !!"1";}return !({});},isPositiveSign:function(){var A0a;A0a=this.expression.charCodeAt(this.pos - 1);if(A0a === 43){return !!({});}B15.D0H();return !!0;},isNegativeSign:function(){B15.D0H();var L4C;L4C=this.expression.charCodeAt(this.pos - 1);if(L4C === 45){return !!"1";}return ![];},isLeftParenth:function(){var t1l;t1l=this.expression.charCodeAt(this.pos);if(t1l === 40){this.pos++;this.tmpprio+=10;return !!1;}B15.D0H();return !({});},isRightParenth:function(){var E38;E38=this.expression.charCodeAt(this.pos);if(E38 === 41){this.pos++;this.tmpprio-=10;return !![];}return ![];},isComma:function(){var d89;d89=this.expression.charCodeAt(this.pos);B15.D0H();if(d89 === 44){this.pos++;this.tokenprio=-1;this.tokenindex=777 <= (494.72,+"5153")?(2600,928.51) <= 576.46?(746.44,!!"1"):",":("95.47" - 0,!!"1");return !!({});}return !({});},isWhite:function(){var M5b;B15.a9S();M5b=this.expression.charCodeAt(this.pos);if(M5b === 32 || M5b === 9 || M5b === 10 || M5b === 13){this.pos++;return !!({});}return !({});},isOp1:function(){var g0Z,f3g;g0Z="";for(var j9M=this.pos;j9M < this.expression.length;j9M++){f3g=this.expression.charAt(j9M);if(f3g.toUpperCase() === f3g.toLowerCase()){if(j9M === this.pos || f3g != ((1724,1180) === (199.29,411.31)?(!1,+"0x279"):"_") && (f3g < ("46" << 32 == ("4740" | 0,157.15)?("8924" ^ 0,6050) >= 792.99?814.41:(+"745.44",416.75):"0") || f3g > (3754 != (3920,919.03)?1503 >= 973.9?"9":(8.56e+3,"L"):3.08e+3))){break;}}g0Z+=f3g;}if(g0Z.length > 0 && (g0Z in this.ops1)){this.tokenindex=g0Z;this.tokenprio=5;this.pos+=g0Z.length;return !"";}return ![];},isOp2:function(){var B7_,E_Y;B7_="";for(var e5U=this.pos;e5U < this.expression.length;e5U++){E_Y=this.expression.charAt(e5U);if(E_Y.toUpperCase() === E_Y.toLowerCase()){if(e5U === this.pos || E_Y != (5411 < +"1990"?2224 > 9490?(7.82e+3,!1):("6" >> 64,"1330" | 0) !== (1480,5863)?(562.38,!""):(6.57e+3,"a"):"_") && (E_Y < ((4790,1083) != (2691,974)?"0":(+"5.13e+3",0xd43)) || E_Y > ((5990,1646) !== (8000,986.06)?"9":(6.41e+3,!!({}))))){break;}}B7_+=E_Y;}if(B7_.length > 0 && (B7_ in this.ops2)){this.tokenindex=B7_;this.tokenprio=5;this.pos+=B7_.length;return !!1;}return !!0;},isVar:function(){var P78,b6O;P78="";for(var n9L=this.pos;n9L < this.expression.length;n9L++){b6O=this.expression.charAt(n9L);if(b6O.toUpperCase() === b6O.toLowerCase()){if(n9L === this.pos || b6O != (3910 !== 631.56?(8160,+"633.27") >= (3102,942)?7274 >= 243.91?(620.04,0x22ef):(!({}),2.23e+3):"_":+"7.83e+3") && (b6O < "0" || b6O > "9")){break;}}P78+=b6O;}if(P78.length > 0){this.tokenindex=P78;this.tokenprio=4;this.pos+=P78.length;return !![];}return !({});},isComment:function(){var G5Z,o6S;B15.D0H();G5Z=this.expression.charCodeAt(this.pos - 1);if(G5Z === 47 && this.expression.charCodeAt(this.pos) === 42){o6S="*";o6S+="/";B15.D0J(83);var L$m=B15.q7n(15,598,1,40,1);this.pos=this.expression.indexOf(o6S,this.pos) + L$m;if(this.pos === 1){this.pos=this.expression.length;}return !![];}return !!0;}},!!"1");return M9N;};T27.computeEquationChart=function(e4z,d1O){var N9E=A2IFV;var z9W,w2I,j0F,v7C,S8r,P0p,T2C,U0Z,B1l,q2k,K4z,I_C,e15,L1w,l4T,L9G,V6D,N59,h4Y,e0c,L$5;e4z=e4z.replace(/[:]/,(230.82,266.12) < ("3130" * 1,263.01)?(0x240,1.94e+3):"/");N9E.H6P(7);z9W=N9E.S40(0,"0");for(var F$3 in d1O){w2I="\\$";w2I+="&";j0F=new RegExp("\\[" + F$3.replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\$/g,"\\$").replace(/\^/g,"\\^").replace(/[+\-*/%()]/g,w2I) + "\\]",("854.64" * 1,"532.39" * 1) < 8500?"g":(!({}),"j"));N9E.D0J(0);e4z=e4z.replace(j0F,N9E.S40("symbol",z9W));z9W++;}v7C=x95().parse(e4z);S8r=[];P0p={};T2C=0;B1l=null;q2k=!!0;function n5F(){var L_o,L7N;L_o=null;L7N=null;for(var m$M in P0p){if(!L7N){L7N=P0p[m$M];}else if(P0p[m$M].d.getTime() < L7N.d.getTime()){L_o=L7N=P0p[m$M];}else if(P0p[m$M].d.getTime() > L7N.d.getTime()){L_o=L7N;}}if(L_o){if(!b_q(L_o)){return 0;}N9E.H6P(7);return -N9E.q7n(0,"1");}return 1;}K4z=[];for(F$3 in d1O){I_C={sym:F$3,map:d1O[F$3]};if(d1O[F$3]){K4z.unshift(I_C);}else {K4z.push(I_C);}}for(var B89=0;B89 < K4z.length;B89++){e15=K4z[B89];P0p[e15.sym]={i:0,s:e15.sym};if(e15.map){T2C++;U0Z=e15.map[0];}else if(T2C == 1){q2k=e15.sym;}if(!U0Z.DT){U0Z.DT=T27.strToDateTime(U0Z.Date);}P0p[e15.sym].d=U0Z.DT;if(!B1l){B1l=P0p[e15.sym];}}N9E.D0J(84);L1w=N9E.q7n(T2C,0);l4T=T2C == "1" - 0 && e4z.indexOf("%") == -("1" | 1);a:while(!0){L9G=n5F();if(!L9G)break;if(L9G == 1){if(q2k){N59=d1O[B1l.s][B1l.i][q2k];if(N59 && (N59.Close || N59.Close === 0)){N59=N59.Close;}h4Y=v7C.evaluate({symbol0:d1O[B1l.s][B1l.i].Close,symbol1:N59});h4Y=Number(h4Y.toFixed(8));V6D={DT:B1l.d,Close:h4Y,Adj_Close:h4Y};V6D[B1l.s]=d1O[B1l.s][B1l.i].Close;if(!isNaN(h4Y) && h4Y != Infinity){S8r.push(V6D);}}else if(L1w){e0c=v7C.evaluate({});N9E.D0J(37);T27.alert(N9E.S40(e0c,e4z,(5388,553.67) != (273.53,8900)?"=":+"4707" != (3870,7099)?("0x1a65" >> 32,0x14fd):(4.64e+3,"342.17" * 1)));throw {name:"NoException",message:""};}else {z9W=0;L$5={Adj_Close:{},Close:{},Open:{},High:{},Low:{},Volume:{}};for(F$3 in d1O){for(var t9D in L$5){N9E.H6P(0);L$5[t9D][N9E.S40("symbol",z9W)]=d1O[F$3][P0p[F$3].i][t9D];}z9W++;}V6D={DT:B1l.d};V6D.Adj_Close=v7C.evaluate(L$5.Adj_Close);V6D.Close=v7C.evaluate(L$5.Close);V6D.Open=v7C.evaluate(L$5.Open);V6D.Volume=v7C.evaluate(L$5.Volume);if(isNaN(V6D.Volume)){V6D.Volume=+"0";}if(l4T){V6D.High=v7C.evaluate(L$5.High);V6D.Low=v7C.evaluate(L$5.Low);}else {V6D.High=Math.max(V6D.Open,V6D.Close);V6D.Low=Math.min(V6D.Open,V6D.Close);}if(!isNaN(V6D.Close) && V6D.Close != Infinity){S8r.push(V6D);}if(!isNaN(V6D.High)){V6D.High=Number(V6D.High.toFixed(8));}if(!isNaN(V6D.Low)){V6D.Low=Number(V6D.Low.toFixed(8));}if(!isNaN(V6D.Open)){V6D.Open=Number(V6D.Open.toFixed(8));}if(!isNaN(V6D.Close)){V6D.Close=Number(V6D.Close.toFixed(8));}if(!isNaN(V6D.Adj_Close)){V6D.Adj_Close=Number(V6D.Adj_Close.toFixed(8));}else {V6D.Adj_Close=V6D.Close;}}for(F$3 in d1O){if(!b_q(P0p[F$3]))break a;}}}function b_q(A2e){A2e.i++;if(d1O[A2e.s]){if(A2e.i >= d1O[A2e.s].length){N9E.D0J(28);return N9E.q7n("0",32);}U0Z=d1O[A2e.s][A2e.i];}if(!U0Z.DT){U0Z.DT=T27.strToDateTime(U0Z.Date);}A2e.d=U0Z.DT;return 1;}return S8r;};};g=D21=>{var q9a=A2IFV;var b1j,D2j,I35,i25,i$m,z7E;b1j="e";b1j+="n";D2j=+"469093628";I35=-944710622;q9a.a9S();i25=2;for(var o03=1;q9a.U6$(o03.toString(),o03.toString().length,29353) !== D2j;o03++){i$m="und";i$m+="ef";i$m+="ined";z7E=typeof _CIQ !== i$m?_CIQ:D21.CIQ;q9a.D0J(7);i25+=q9a.q7n(0,"2");}if(q9a.U6$(i25.toString(),i25.toString().length,84834) !== I35){z7E=!_CIQ === ""?_CIQ:D21.CIQ;}z7E.ChartEngine.prototype.setLocale=function(n0T,x0g){var m25,B5p,W_N,f0l,T8e,R2Q,j0t,F5F,i9I,G0c;m25="nume";m25+="r";m25+="ic";B5p="n";B5p+="umeric";W_N="2-";W_N+="d";W_N+="igit";f0l="2-";f0l+="di";f0l+="gi";f0l+="t";T8e="2";T8e+="-digit";R2Q="h";R2Q+="23";if(typeof Intl == "undefined"){return;}if(this.locale != n0T){this.locale=n0T;}else {return;}F5F=this.internationalizer={};F5F.hourMinute=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",hourCycle:"h23"});F5F.hourMinuteSecond=new Intl.DateTimeFormat(this.locale,{hour:"numeric",minute:"numeric",second:"numeric",hourCycle:R2Q});F5F.mdhm=new Intl.DateTimeFormat(this.locale,{year:T8e,month:"2-digit",day:"2-digit",hour:f0l,minute:W_N});F5F.monthDay=new Intl.DateTimeFormat(this.locale,{month:"numeric",day:B5p});F5F.yearMonthDay=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:"numeric",day:"numeric"});F5F.yearMonth=new Intl.DateTimeFormat(this.locale,{year:"numeric",month:m25});F5F.month=new Intl.DateTimeFormat(this.locale,{month:"short"});F5F.numbers=new Intl.NumberFormat(this.locale);F5F.priceFormatters=[];if(!x0g){x0g=8;}for(j0t=0;j0t < x0g + +"1";j0t++){F5F.priceFormatters.push(new Intl.NumberFormat(this.locale,{maximumFractionDigits:j0t,minimumFractionDigits:j0t}));}for(j0t=0;j0t < +"5";j0t++){i9I=j0t;G0c=j0t;if(!j0t){i9I="";G0c=2;}q9a.H6P(0);F5F[q9a.q7n("percent",i9I)]=new Intl.NumberFormat(this.locale,{style:"percent",minimumFractionDigits:G0c,maximumFractionDigits:G0c});}if(z7E.I18N.createMonthArrays){z7E.I18N.createMonthArrays(this,F5F.month,this.locale);}};z7E.I18N=function(){};z7E.I18N.hereDoc=function(z0L){return z0L.toString().replace(/^[^/]+\/\*!?/,"").replace(/\*\/[^/]+$/,"");};z7E.I18N.language=b1j;z7E.I18N.longMonths={zh:!![]};z7E.I18N.reverseColorsByLocale={zh:!![],ja:!!1};z7E.I18N.findAllTextNodes=function(d0Y){q9a.a9S();var N3H,j2e,o95,o17,T5Z,d_e,o7F,v2Y,R2r,k71,E6_,Z0j,o5n,r$F,I1E,q$H,N1i,K1J,v8D,r3r;if(!d0Y){d0Y=document.body;}if(d0Y == document.body){if(!document.querySelector(".ciq_stashed_texts")){N3H="input,t";N3H+="extarea,.editable_content";j2e=document.createElement("div");j2e.className="ciq_stashed_texts";j2e.style.display="none";d0Y.appendChild(j2e);o95=document.querySelectorAll(N3H);for(var q9Y=+"0";q9Y < o95.length;q9Y++){o17=o95[q9Y].getAttribute("placeholder");if(o17){T5Z=j2e.appendChild(document.createElement("translate"));T5Z.setAttribute("original",o17);T5Z.placeholderFor=o95[q9Y];T5Z.appendChild(document.createTextNode(o17));}}}}d_e=document.createTreeWalker(d0Y,NodeFilter.SHOW_TEXT,null,![]);o7F=d_e.nextNode();v2Y=new RegExp("^\\s*$");R2r=new RegExp("\n|\t|\f",(742,9370) > 469.5?"g":6.36e+3);k71={};E6_={SCRIPT:!0,STYLE:!!({}),TEXTAREA:!![]};while(o7F){Z0j=o7F.nodeValue;if(!v2Y.test(Z0j)){o5n=o7F.parentNode;r$F=o7F.nextSibling;I1E=o5n.tagName;if(!E6_[I1E]){if(I1E != "TRANSLATE"){q$H="transl";q$H+="a";q$H+="te";N1i=document.createElement(q$H);N1i.setAttribute("original",Z0j);N1i.appendChild(o7F);o5n.insertBefore(N1i,r$F);}else {K1J="or";K1J+="i";K1J+="gi";K1J+="nal";Z0j=o5n.getAttribute(K1J);}if(R2r.test(Z0j)){Z0j=Z0j.replace(R2r,"");}if(!k71[Z0j]){k71[Z0j]=[];}k71[Z0j].push(o7F);}}o7F=d_e.nextNode();}if(d0Y == document.body){v8D=z7E.Studies?z7E.Studies.studyLibrary:null;if(v8D){for(var j6_ in v8D){if(k71[j6_] === null){k71[j6_]=[];}r3r=v8D[j6_];if(r3r.inputs){for(var b8I in r3r.inputs){if(!k71[b8I]){k71[b8I]=[];}}}if(r3r.outputs){for(var S1V in r3r.outputs){if(!k71[S1V]){k71[S1V]=[];}}}}}}return k71;};z7E.I18N.missingWordList=function(m3C){var e3t,N_V,G$n,U51,W7_,Y8l,e5k,m4H,D55,C4n;e3t="Y";e3t+="-";e3t+="Axi";e3t+="s";N_V="Sh";N_V+="ow Z";N_V+="o";N_V+="nes";if(!m3C){m3C=z7E.I18N.language;}G$n=z7E.I18N.findAllTextNodes();U51={};W7_=z7E.I18N.wordLists[m3C];if(!W7_){W7_={};}Y8l=function(G$z){q9a.a9S();var a5f;a5f="u";a5f+="ndefin";a5f+="ed";if(typeof W7_[G$z] == a5f){U51[G$z]="";}};for(var s7K in G$n){Y8l(s7K);}if(!(z7E.Studies && z7E.Studies.studyLibrary)){return U51;}for(var C7e in z7E.Studies.studyLibrary){e5k=z7E.Studies.studyLibrary[C7e];Y8l(e5k.name);for(var h_k in e5k.inputs){D55="[object Ar";D55+="ray]";C4n="[";C4n+="object String]";Y8l(h_k);m4H=e5k.inputs[h_k];switch(Object.prototype.toString.call(m4H)){case C4n:Y8l(m4H);break;case D55:for(var o_A=0;o_A < m4H.length;++o_A){Y8l(m4H[o_A]);}break;}}for(var U67 in e5k.outputs){Y8l(U67);}}Y8l(N_V);Y8l("OverBought");Y8l("OverSold");Y8l("Panel");Y8l("Show as Underlay");Y8l(e3t);Y8l("Invert Y-Axis");return U51;};z7E.I18N.printableMissingWordList=function(o9l){var v7S;v7S=JSON.stringify(z7E.I18N.missingWordList(o9l));v7S=v7S.replace(/","/g,'",\n"');return v7S;};z7E.I18N.translateUI=function(Z8x,u8z){var d8P,y0v,A0x,Z7T,q2b,I0h,k8L,a8l,Q$t;if(Z8x == "pu"){Z8x="pt";}q9a.a9S();if(!z7E.I18N.wordLists){return;}if(!Z8x){Z8x=z7E.I18N.language;}d8P=z7E.I18N.findAllTextNodes(u8z);y0v=z7E.I18N.wordLists[Z8x];if(!y0v){return;}for(var h3o in d8P){A0x=z7E.I18N.translateSections(h3o,y0v);Z7T=d8P[h3o];for(var q55=0;q55 < Z7T.length;q55++){q2b="origi";q2b+="nal";I0h=Z7T[q55];k8L=I0h.parentNode;a8l=k8L.getAttribute(q2b);if(A0x === ((3950,+"1710") !== (5300,+"839.92")?(1478,526.78) > (5168,7280)?"E":+"5510" === 5139?!![]:",":!"") || !A0x){A0x=a8l;}Q$t=k8L.placeholderFor;if(Q$t){Q$t.placeholder=A0x;}else {I0h.data=A0x;}}}};z7E.I18N.translate=function(s3Y,O8O){var M9K,J2g;if(!O8O){O8O=z7E.I18N.language;}if(!z7E.I18N.wordLists){console.log("Must include translations.js in order to use CIQ.I18N.translate()");return s3Y;}M9K=z7E.I18N.wordLists[O8O];J2g=null;if(M9K){J2g=z7E.I18N.translateSections(s3Y,M9K) || s3Y;}return J2g === (4030 === 5711?("4350" - 0,+"1230") < 5220?4960 == ("1846" | 20)?("A","i"):"u":(!!"1","g"):",")?s3Y:J2g;};z7E.I18N.translateSections=function(m5l,T4C){q9a.a9S();var B_7,q5_;B_7=4600 != 794.82?"\u200c":(1560,"62" ^ 0) === (+"706",880.22)?"g":(+"400.74","29.89" * 1) == 415?+"0x1a2f":(560.73,302.60);if(typeof m5l == "string" && m5l.indexOf(B_7) != -+"1"){q9a.D0J(37);m5l=m5l.replace(/([(),])/g,q9a.q7n(B_7,B_7,"$1"));q5_=m5l.split(B_7);q5_.forEach(function(E42,T2o,f8c){var v40,g9H;q9a.a9S();v40=E42.match(/^(\s*).*\S(\s*)$/);g9H=T4C[E42.trim()];if(g9H){if(v40){q9a.D0J(52);var P$f=q9a.S40(0,1,2);g9H=v40[+"1"] + g9H + v40[P$f];}f8c[T2o]=g9H;}});return q5_.join("");}return T4C[m5l];};z7E.I18N.convertCSV=function(z6D){var s6o,K2b,K_8,i$B,P5G,X1u,i28,C5v,s0x,Y2h,o4m;s6o="[\u201C\u201D]|[";s6o+="\u2018\u2019]";K2b=new RegExp(s6o,"8290" * 1 < (327,426.58)?(56.77,!""):"8350" >> 32 <= 819.71?("r","S"):("5672" ^ 0) >= (9721,313.44)?"g":(687.19,0x18c9));K_8=new RegExp('^(")|(")$',"g");i$B=z7E.I18N.wordLists;if(!z6D){z6D=z7E.I18N.csv;}if(!z6D){return;}P5G=z6D.split("\n");X1u=P5G[+"0"];i28=X1u.split(9989 == 2290?939.16:",");for(var E87=0;E87 < i28.length;E87++){C5v=i28[E87];if(!i$B[C5v]){i$B[C5v]={};}}for(var G83=1;G83 < P5G.length;G83++){s0x=P5G[G83].match(/(".*?"|[^",]+)(?=\s*,|\s*$)|(,(?=,))/g) || [];Y2h=s0x[0];if(K_8.test(Y2h)){Y2h=Y2h.replace(K_8,"");}if(K2b.test(Y2h)){Y2h=Y2h.replace(K2b,(7.4,+"4140") <= (56.02,"1620" - 0)?("8870" >> 64,648.8) == 455.44?("E",2.00e+3):"X":'"');}for(var m4d=1;m4d < s0x.length;m4d++){o4m=s0x[m4d];if(K_8.test(o4m)){o4m=o4m.replace(K_8,"");}i$B[i28[m4d]][Y2h]=o4m;}}};z7E.I18N.setLanguage=function(k9O,j0Y,C_f,v6f,d82){var o1i;o1i="p";o1i+="t";if(!d82){d82=(k9O.uiContext || ({})).topNode || document.body;}q9a.a9S();if(j0Y == "pu"){j0Y=o1i;}z7E.I18N.convertCSV(v6f);z7E.I18N.language=j0Y;z7E.I18N.translateUI(j0Y,d82);if(!C_f){C_f=z7E.I18N.translate;}k9O.translationCallback=C_f;};z7E.I18N.setLocale=function(C_y,r2b,j7H,M7x,S9d){var Z9f,v$W,Q1K,s8a;Z9f="l";Z9f+="oca";Z9f+="le-data/jsonp";if(z7E.xor(this.reverseColorsByLocale[r2b],this.reverseColorsByLocale[C_y.locale])){this.reverseCandles(C_y);}if(typeof Intl == "undefined" || !Intl.__addLocaleData){C_y.setLocale(r2b,S9d);if(j7H){j7H(null);}return;}M7x=typeof M7x == "undefined"?Z9f:M7x;q9a.H6P(48);v$W=q9a.q7n(".js",r2b,"/",M7x);Q1K=document.createElement("SCRIPT");Q1K.async=!0;Q1K.src=v$W;s8a=document.getElementsByTagName("script")[0];s8a.parentNode.insertBefore(Q1K,s8a.nextSibling);Q1K.onload=function(){C_y.setLocale(r2b,S9d);if(j7H){j7H(null);}};Q1K.onerror=function(){q9a.D0H();if(j7H){j7H("cannot load script");}};};z7E.I18N.createMonthArrays=function(x0A,r$B,q2E){var a99,W8D,j85,U0Y,y3x,j3N;x0A.monthAbv=[];x0A.monthLetters=[];a99=new Date();W8D=!0;if(z7E.I18N.longMonths && z7E.I18N.longMonths[q2E]){W8D=!!"";}for(var k2s=0;k2s < 12;k2s++){a99.setDate(1);a99.setMonth(k2s);j85=r$B.format(a99);if(W8D){U0Y="";for(var v6E=0;v6E < j85.length;v6E++){y3x=j85.charAt(v6E);j3N=y3x.charCodeAt(0);if(j3N < +"65")continue;U0Y+=y3x;}x0A.monthAbv[k2s]=U0Y;x0A.monthLetters[k2s]=U0Y[0];}else {x0A.monthAbv[k2s]=j85;x0A.monthLetters[k2s]=j85;}}};z7E.I18N.localize=function(J7s,v_R){this.setLocale(J7s,v_R);this.setLanguage(J7s,v_R);};z7E.I18N.reverseCandles=function(d4X){var i66,m44,F0r;i66=d4X.styles;m44=d4X.cloneStyle(i66.stx_candle_down);F0r=d4X.cloneStyle(i66.stx_candle_up);q9a.D0H();i66.stx_candle_up=m44;i66.stx_candle_down=F0r;};z7E.I18N.wordLists={en:{}};z7E.I18N.languages={en:"English"};};K=C6i=>{var i5o=A2IFV;var L66,Y_x,g_K,X1X,F3o,T68,B3k;L66="<";i5o.D0H();L66+="span>
";Y_x="<";Y_x+="/div>";g_K="
";X1X="
";F3o="
sa";F3o+="ve";T68=typeof _CIQ !== "undefined"?_CIQ:C6i.CIQ;T68.ChartEngine.prototype.pointerEvents={down:[],up:[]};T68.ChartEngine.prototype.manageTouchAndMouse=!!"1";T68.ChartEngine.prototype.registerTouchAndMouseEvents=function(){var T2A,N_D,c_5,u7c,P_H,A34,P8c,Z7q,V9G,X8I,a5J,z1P,H42,L5Q;if(this.touchAndMouseEventsRegistered){return;}this.touchAndMouseEventsRegistered=!!({});T2A=this.controls.chartControls || document;N_D=T2A.querySelector(".stx-zoom-in");c_5=T2A.querySelector(".stx-zoom-out");u7c=this.chart.container;P_H=this;A34=function(s6m,W9s,E6C){P_H.addDomEventListener(u7c,s6m,e4J,E6C);i5o.D0H();function e4J(m2c){i5o.D0H();if(P_H.mainSeriesRenderer && P_H.mainSeriesRenderer.nonInteractive){return;}W9s(m2c);}};if(!T68.touchDevice){P8c="m";P8c+="o";P8c+="u";P8c+="seup";Z7q="mouse";Z7q+="mo";Z7q+="ve";A34(Z7q,function(W3A){i5o.D0H();P_H.mousemove(W3A);});A34("mouseenter",function(u0B){P_H.mousemove(u0B);});A34("mousedown",function(P3K){P_H.mousedown(P3K);});A34(P8c,function(g8S){i5o.a9S();P_H.mouseup(g8S);});}else {if(T68.isSurface){V9G="point";V9G+="ermove";A34("mousemove",function(y0I){i5o.a9S();P_H.msMouseMoveProxy(y0I);});A34("mouseenter",function(p1L){P_H.msMouseMoveProxy(p1L);});A34("mousedown",function(h5D){i5o.a9S();P_H.msMouseDownProxy(h5D);});A34("mouseup",function(G1S){i5o.D0H();P_H.msMouseUpProxy(G1S);});A34("pointerdown",function(k8$){i5o.a9S();return P_H.startProxy(k8$);});A34(V9G,function(D9i){P_H.moveProxy(D9i);});A34("pointerenter",function(f3Q){return P_H.moveProxy(f3Q);});A34("pointerup",function(x9V){return P_H.endProxy(x9V);});}else {X8I="touchm";X8I+="o";X8I+="ve";a5J="touchsta";a5J+="rt";if(!T68.isMobile){z1P="mou";z1P+="sem";z1P+="o";z1P+="ve";A34(z1P,function(x$m){i5o.D0H();P_H.iosMouseMoveProxy(x$m);});A34("mouseenter",function(N2p){P_H.iosMouseMoveProxy(N2p);});A34("mousedown",function(D3F){i5o.a9S();P_H.iosMouseDownProxy(D3F);});A34("mouseup",function(K3x){P_H.iosMouseUpProxy(K3x);});}A34(a5J,function(z1U){i5o.a9S();P_H.touchstart(z1U);});A34(X8I,function(z0P){P_H.touchmove(z0P);});A34("touchend",function(T_Z){P_H.touchend(T_Z);});A34("pointerdown",function(v$T){P_H.touchPointerType=v$T.pointerType;});if(N_D){H42="o";H42+="nM";H42+="ouseOv";H42+="er";N_D.removeAttribute(H42);N_D.removeAttribute("onMouseOut");}if(c_5){c_5.removeAttribute("onMouseOver");c_5.removeAttribute("onMouseOut");}}}L5Q=T68.wheelEvent;if(this.captureMouseWheelEvents){A34(L5Q,function(L$I){i5o.D0H();P_H.mouseWheel(L$I);},{passive:!!0});}};T68.ChartEngine.prototype.mousedown=function(O5K){var L1g,R6i,D2f,d7G,M6M,X8A,Q2k,O6t,X$x,P0w,E06,s7R;L1g="mo";L1g+="u";L1g+="s";L1g+="edown";R6i="d";R6i+="o";R6i+="w";R6i+="n";if(this.runPrepend("mousedown",arguments)){return;}this.grabOverrideClick=![];if(!this.displayInitialized){return;}if(!this.displayCrosshairs){return;}if(this.repositioningDrawing){return;}if(this.editingAnnotation){return;}if(O5K.button && O5K.button >= 2){return;}D2f=this.container.getBoundingClientRect();this.top=D2f.top;this.left=D2f.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(O5K.clientX >= this.left && O5K.clientX <= this.right && O5K.clientY >= this.top && O5K.clientY <= this.bottom){this.insideChart=!!"1";}else {this.insideChart=!({});return;}if(!this.currentPanel){return;}if(this.manageTouchAndMouse && O5K && O5K.preventDefault && this.captureTouchEvents){O5K.preventDefault();}this.mouseTimer=Date.now();this.longHoldTookEffect=!"1";this.hasDragged=!"1";this.userPointerDown=!0;if(this.openDialog === ""){this.registerPointerEvent({x:O5K.clientX,y:O5K.clientY,time:this.mouseTimer},R6i);}d7G=this.currentPanel.chart;for(var m12=0;m12 < this.drawingObjects.length;m12++){M6M=this.drawingObjects[m12];if(M6M.highlighted && !M6M.permanent){if(this.cloneDrawing){X8A=T68.ChartEngine.drawingTools[M6M.name];Q2k=new X8A();Q2k.reconstruct(this,M6M.serialize());this.drawingObjects.push(Q2k);this.activateRepositioning(Q2k);Q2k.repositioner=M6M.repositioner;return;}O6t=this.currentVectorParameters.vectorType;if(!T68.Drawing || !O6t || !T68.Drawing[O6t] || !new T68.Drawing[O6t]().dragToDraw){this.activateRepositioning(M6M);return;}}}X$x=this.mainSeriesRenderer || ({});var {baselineHelper:A32}=this;if(A32.size){if(this.findBaselineHandle(O5K,!![])){return;}}if(this.controls.anchorHandles){var {anchorHandles:i4e}=this.controls;for(var E7H in i4e){var {handle:M39, sd:H9g, highlighted:M1M}=i4e[E7H];if(M1M){this.repositioningAnchorSelector={sd:H9g};M39.classList.add("stx-grab");return;}}}if(this.drawingClick){P0w=737249913;E06=-2097701337;s7R=2;for(var Z$R=1;i5o.U6$(Z$R.toString(),Z$R.toString().length,55758) !== P0w;Z$R++){if(this.currentPanel.subholder != O5K.target){this.drawingClick(this.currentPanel,this.cx,this.cy);}if(this.activeDrawing || this.activeDrawing.dragToDraw){return;}s7R+=+"2";}if(i5o.Z2Z(s7R.toString(),s7R.toString().length,+"36731") !== E06){if(this.currentPanel.subholder === O5K.target){this.drawingClick(this.currentPanel,this.cx,this.cy);}if(this.activeDrawing && this.activeDrawing.dragToDraw){return;}}}this.grabbingScreen=!![];d7G.spanLock=!({});this.yToleranceBroken=!!"";this.grabStartX=O5K.clientX;this.grabStartY=O5K.clientY;this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=d7G.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(this.currentPanel);this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPanel=this.currentPanel;setTimeout((function(K39){i5o.a9S();return function(){K39.grabbingHand();};})(this),100);if(this.swipeStart){this.swipeStart(d7G);}if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}this.runAppend(L1g,arguments);};T68.ChartEngine.prototype.mousemove=function(H5x){var q9C,a_y;q9C="en";q9C+="t";i5o.a9S();q9C+="e";q9C+="r";a_y=H5x;T68.ChartEngine.crosshairX=a_y.clientX;T68.ChartEngine.crosshairY=a_y.clientY;if(a_y.type.toLowerCase().indexOf(q9C) > -1){this.positionCrosshairsAtPointer();return;}if(this.runPrepend("mousemove",arguments)){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(this.baselineHelper.size){this.findBaselineHandle(a_y);}if(this.grabbingScreen && a_y.buttons !== 1){this.cancelLongHold=!!({});this.displayDragOK();this.grabbingScreen=!!0;this.findHighlights(![],!![]);}this.mousemoveinner(a_y.clientX,a_y.clientY);this.runAppend("mousemove",arguments);};T68.ChartEngine.prototype.mouseup=function(c9P){var R3L,S8E,U8c,l22,h73,f_r,z5y,v3H,N4C,x9G,j1H,b$z,w7i,h3R,l3V,l82,B2z;R3L="m";R3L+="ous";R3L+="eup";S8E="u";S8E+="p";if(this.runPrepend("mouseup",arguments)){return;}this.swipe.end=!!({});this.cancelLongHold=!!({});if(this.repositioningDrawing){if(!this.currentVectorParameters.vectorType || Date.now() - this.mouseTimer > 250){this.changeOccurred("vector");T68.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.adjustDrawings();this.draw();return;}this.activateRepositioning(null);}if(this.repositioningBaseline){U8c="m";U8c+="o";U8c+="unt";U8c+="ain";var {handle:f4x}=this.repositioningBaseline;l22=-1211650947;h73=-1612790862;f_r=2;for(var K4S=1;i5o.U6$(K4S.toString(),K4S.toString().length,3516) !== l22;K4S++){this.repositioningBaseline=1;f_r+=2;}if(i5o.U6$(f_r.toString(),f_r.toString().length,+"69241") !== h73){this.repositioningBaseline=6;}this.repositioningBaseline=null;f4x.classList.remove("stx-grab");z5y=this.mainSeriesRenderer || ({});if(z5y.params && z5y.params.baseline && z5y.params.type != U8c){;}this.draw();return;}if(this.repositioningAnchorSelector){T68.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:k$N})=>{var v5O;v5O="st";v5O+="x";v5O+="-grab";i5o.a9S();return k$N.classList.remove(v5O);});this.findHighlights();return;}v3H=this.userPointerDown;this.userPointerDown=!!"";if(!this.displayInitialized){return;}N4C=this.backOutY(c9P.clientY);x9G=this.backOutX(c9P.clientX);j1H=c9P.which && c9P.which >= 2 || c9P.button && c9P.button >= 2;b$z=this.openDialog !== "";if(!b$z && !j1H){this.registerPointerEvent({x:c9P.clientX,y:c9P.clientY,time:Date.now()},S8E);}w7i=this.isDoubleClick();this.grabbingScreen=!!"";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(x9G,N4C);}this.currentPanel=this.whichPanel(N4C);}h3R=this.currentPanel;this.grabStartYAxis=null;this.displayDragOK();if(this.openDialog !== ""){l3V="stx-";l3V+="drag-chart";if(this.insideChart){this.container.classList.remove(l3V);}return;}if(this.grabOverrideClick){if(!this.overXAxis && !this.overYAxis && this.swipeRelease){this.swipeRelease();}this.container.classList.remove("stx-drag-chart");this.grabOverrideClick=!!0;this.doDisplayCrosshairs();this.updateChartAccessories();return;}if(this.insideChart){this.container.classList.remove("stx-drag-chart");}if(T68.ChartEngine.resizingPanel){this.releaseHandle();return;}if(j1H || c9P.ctrlKey){l82="rig";l82+="htClic";l82+="k";if(this.anyHighlighted && this.bypassRightClick !== !""){this.rightClickHighlighted();if(c9P.preventDefault && this.captureTouchEvents){c9P.preventDefault();}c9P.stopPropagation();return !!"";}this.dispatch(l82,{stx:this,panel:h3R,x:x9G,y:N4C});return !!"1";}if(c9P.clientX < this.left || c9P.clientX > this.right){return;}i5o.a9S();if(c9P.clientY < this.top || c9P.clientY > this.bottom){return;}B2z=h3R && h3R.subholder === c9P.target;if(w7i && (B2z || this.overYAxis || this.overXAxis)){this.doubleClick({button:c9P.button,x:x9G,y:N4C});}else {if(v3H && B2z){if(!this.longHoldTookEffect || this.activeDrawing){this.drawingClick(h3R,x9G,N4C);}if(!this.longHoldTookEffect && this.activeMarker){this.activeMarker.click({cx:x9G,cy:N4C,panel:h3R});}}if(!this.longHoldTookEffect && !this.activeDrawing){this.dispatch("tap",{stx:this,panel:h3R,x:x9G,y:N4C});}}this.runAppend(R3L,arguments);};T68.ChartEngine.prototype.registerPointerEvent=function(f$e,t9m){if(this.pointerEvents[t9m].length > 1){this.pointerEvents[t9m].pop();}i5o.a9S();this.pointerEvents[t9m].unshift(f$e);};T68.ChartEngine.prototype.resetPointerEvent=function(g1I){i5o.a9S();i5o.H6P(7);this.pointerEvents[g1I].splice(i5o.q7n(0,"0"));};T68.ChartEngine.prototype.isDoubleClick=function(x78){var F2f,L64,A_G;F2f=x78?1200:400;var {up:g0S, down:H5H}=this.pointerEvents;this.cancelTouchSingleClick=![];if(g0S.length < +"2" || H5H.length < 2){return !({});}L64=H5H[0].time - g0S[1].time < this.doubleClickTime && Math.pow(g0S[1].x - g0S[0].x,2) + Math.pow(g0S[1].y - g0S[0].y,2) <= F2f && g0S[1].time - H5H[1].time < this.longHoldTime && g0S[0].time - H5H[0].time < this.longHoldTime;if(L64){A_G="d";A_G+="o";A_G+="w";A_G+="n";this.resetPointerEvent("up");this.resetPointerEvent(A_G);this.cancelTouchSingleClick=!!"1";}return L64;};T68.ChartEngine.prototype.doubleClick=function(E5r,j$z,y02){var U_i,f1i,z7a;U_i="doubl";U_i+="eC";U_i+="lick";f1i="doubl";f1i+="eClic";f1i+="k";if(this.runPrepend(f1i,arguments)){return;}if(this.editingAnnotation){return;}if(T68.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}z7a=this.activeMarker && this.activeMarker.doubleClick({cx:j$z,cy:y02,panel:this.currentPanel});if(!z7a){this.dispatch("doubleClick",{stx:this,button:E5r,x:j$z,y:y02});}this.runAppend(U_i,arguments);};T68.ChartEngine.prototype.handleMouseOut=function(K$9){var h0X,H57;K$9=K$9 || window.event;if(!T68.withinElement(this.chart.container,K$9.pageX,K$9.pageY)){if(this.runPrepend("handleMouseOut",arguments)){return;}if(!this.grabbingScreen){this.findHighlights(null,!"");}this.undisplayCrosshairs();this.touches=[];this.touching=!({});if(this.activeDrawing && this.userPointerDown){this.userPointerDown=!({});this.drawingLine=!({});h0X=this.backOutY(K$9.pageY);H57=this.backOutX(K$9.pageX);this.drawingClick(this.currentPanel,H57,h0X);}if(this.repositioningAnchorSelector){this.repositioningAnchorSelector=null;}this.insideChart=![];this.overYAxis=!!"";this.overXAxis=!({});this.displaySticky();this.runAppend("handleMouseOut",arguments);}};T68.ChartEngine.prototype.startLongHoldTimer=function(){var O2V,b9g;O2V=this;this.cancelLongHold=!!"";if(this.longHoldTimeout){clearTimeout(this.longHoldTimeout);}i5o.D0H();b9g=function(){if(O2V.cancelLongHold){return;}O2V.longHoldTookEffect=!"";O2V.dispatch("longhold",{stx:O2V,panel:O2V.currentPanel,x:O2V.cx,y:O2V.cy});i5o.a9S();O2V.displayDragOK();};if(this.longHoldTime){this.longHoldTimeout=setTimeout(b9g,this.longHoldTime);}else if(this.longHoldTime === 0){b9g();}};T68.ChartEngine.prototype.grabHandle=function(I9C){if(this.runPrepend("grabHandle",arguments)){return;}if(!I9C){return;}T68.ChartEngine.crosshairY=I9C.top + this.top;T68.ChartEngine.resizingPanel=I9C;I9C.handle.classList.add("stx-grab");i5o.D0H();this.runAppend("grabHandle",arguments);};T68.ChartEngine.prototype.grabbingHand=function(){if(!this.allowScroll){return;}if(!this.grabbingScreen){return;}if(T68.touchDevice){return;}this.container.classList.add("stx-drag-chart");};T68.ChartEngine.prototype.releaseHandle=function(){var X0X;X0X="relea";X0X+="seHa";X0X+="n";X0X+="dle";if(this.runPrepend("releaseHandle",arguments)){return !![];}T68.clearCanvas(this.chart.tempCanvas,this);this.resizePanels();if(T68.ChartEngine.resizingPanel){T68.ChartEngine.resizingPanel.handle.classList.remove("stx-grab");}T68.ChartEngine.resizingPanel=null;this.runAppend(X0X,arguments);};T68.ChartEngine.prototype.findHighlights=function(g8q,X9t){var M4T,t_5,W3j,X4F,S85,Y3x,f4N,p7k,B2R,j6A,D5f,b$l,U3X,T1y,G6o,Y46,D$e,b03,I_U,m6b,r5B,R5B,q6Y,f$d,H7B,E5o,x6W,v_r,K$l,G00,C$P,Y1R,W_2,n4t,a_W,m_q,n5a,g_C,Y5w,Z_6,S4D,O1u,C2C,T$5,i$R,N5I,t09,Y5b,a1e,o4M,i5A,w40;M4T="d";M4T+="ra";M4T+="win";M4T+="g";t_5="highlig";t_5+="htsTapRadius";W3j=this.preferences[g8q?t_5:"highlightsRadius"];this.highlightViaTap=g8q;var {cx:j14, cy:t8h}=this;this.anyHighlighted=!({});if(!this.currentPanel){return;}var {chart:O0P}=this.currentPanel;if(this.activeDrawing){X9t=!!"1";}X4F=!1;S85=null;Y3x=X9t?{}:{forceShow:!!1,type:M4T};f4N={x0:this.tickFromPixel(j14 - W3j,O0P),x1:this.tickFromPixel(j14 + W3j,O0P),y0:this.valueFromPixel(t8h - W3j,this.currentPanel),y1:this.valueFromPixel(t8h + W3j,this.currentPanel),cx0:j14 - W3j,cx1:j14 + W3j,cy0:t8h - W3j,cy1:t8h + W3j,r:W3j};if(this.repositioningDrawing && f4N.x1 - f4N.x0 < ("2" | 2)){f4N.x1++;f4N.x0--;}else if(f4N.x1 == f4N.x0){f4N.x0-=0.5;p7k=-682632090;B2R=-+"1653184673";j6A=2;for(var y3g=1;i5o.U6$(y3g.toString(),y3g.toString().length,38333) !== p7k;y3g++){f4N.x1/=201;j6A+=2;}if(i5o.Z2Z(j6A.toString(),j6A.toString().length,56734) !== B2R){f4N.x1%=663;}f4N.x1+=0.5;}D5f=this.markerHelper && this.markerHelper.chartMap[O0P.name] && this.markerHelper.chartMap[O0P.name].markers;if(!O0P.hideDrawings){for(var h9x=this.drawingObjects.length - 1;h9x >= 0;h9x--){b$l=this.drawingObjects[h9x];if(!this.panels[b$l.panelName])continue;if(this.repositioningDrawing && this.repositioningDrawing != b$l)continue;U3X=b$l.highlighted;T1y=b$l.panelName == this.currentPanel.name;b$l.repositioner=b$l.intersected(this.crosshairTick,this.crosshairValue,f4N);T1y=T1y && b$l.repositioner;if(!X9t && T1y){if(U3X){S85=b$l;if(this.anyHighlighted && this.singleDrawingHighlight){b$l.highlighted=!({});}if(b$l.highlighted && b$l.highlighted != U3X){X4F=!![];};}else if(U3X != b$l.highlight(!"")){if(!S85){S85=b$l;}if(this.anyHighlighted && this.singleDrawingHighlight){b$l.highlighted=!!"";}X4F=!0;}this.anyHighlighted=!"";}else {if(U3X != b$l.highlight(!({}))){X4F=!![];}}if(b$l.highlighted){Y3x.noDelete=b$l.permanent;Y3x.noEdit=!this.callbackListeners.drawingEdit.length;}}}for(G6o in this.layout.studies){Y46=this.layout.studies[G6o];Y46.prev=Y46.highlight;Y46.highlight=this.yaxisMatches(Y46,this.grabStartYAxis);}for(G6o in O0P.seriesRenderers){m6b=O0P.seriesRenderers[G6o];m6b.params.highlight=this.yaxisMatches(m6b,this.grabStartYAxis);for(var C62=0;C62 < m6b.seriesParams.length;C62++){I_U=m6b.seriesParams[C62];I_U.prev=I_U.highlight;I_U.highlight=m6b.params.highlight;}}for(D$e=0;D5f && D$e < D5f.length;D$e++){b03=D5f[D$e];if(!b03.params.box)continue;this.activeMarker=null;b03.prev=D5f[D$e].highlight;b03.highlight=!!0;}if(this.markerHelper){this.markerHelper.highlighted=[];}this.highlightedDataSetField=null;this.highlightedDraggable=null;if(!X9t && !this.anyHighlighted && this.controls.anchorHandles){for(var h6Y in this.controls.anchorHandles){r5B=this.controls.anchorHandles[h6Y];var {handle:o4o, sd:K_H}=r5B;R5B=this.resolveX(j14);q6Y=this.resolveY(t8h);if(o4o){var {left:J3_, top:k3M, right:s$v, bottom:m7H}=o4o.getBoundingClientRect();if(T68.boxIntersects(J3_,k3M,s$v,m7H,R5B,q6Y,R5B,q6Y)){f$d="a";f$d+="nch";f$d+="orHandle";r5B.highlighted=!![];this.anyHighlighted=!!({});X4F=!![];Y3x={message:K_H.name,type:f$d};continue;}if(r5B.highlighted === !!"1"){r5B.highlighted=![];X4F=!![];}}}}if(!X9t && !this.anyHighlighted && O0P.dataSegment){H7B=this.barFromPixel(j14);if(H7B >= 0 && H7B < O0P.dataSegment.length){for(G6o in this.overlays){x6W="fun";x6W+="ction";Y46=this.overlays[G6o];if(Y46.panel != this.currentPanel.name)continue;if(Y46.study.isHighlighted === ![])continue;else if(typeof Y46.study.isHighlighted == x6W){if(Y46.study.isHighlighted(this,j14,t8h)){Y46.highlight=!!"1";this.anyHighlighted=!![];}continue;}v_r=O0P.dataSegment[H7B];if(!v_r)continue;for(var z9U in Y46.outputMap){if(l9l.call(this,H7B,f4N,z9U,Y46.getYAxis(this))){if(Y46.name != Y46.panel){this.anyHighlighted=!!({});}Y46.highlight=z9U;break;}}if(Y46.highlight){this.highlightedDataSetField=z9U;break;;}}for(G6o in O0P.seriesRenderers){if(this.highlightedDataSetField)break;K$l=O0P.seriesRenderers[G6o];G00=K$l.params.panel;if(K$l == this.mainSeriesRenderer)continue;if(!K$l.params.highlightable && !this.currentVectorParameters.vectorType)continue;if(G00 != this.currentPanel.name)continue;for(D$e="0" << 0;D$e < K$l.seriesParams.length;D$e++){C$P="-";C$P+="-";C$P+=">";Y1R="C";Y1R+="l";Y1R+="os";Y1R+="e";I_U=K$l.seriesParams[D$e];W_2=I_U.field;if(!W_2 && !K$l.highLowBars){W_2=this.defaultPlotField || Y1R;}if(I_U.symbol && I_U.subField){W_2+=C$P + I_U.subField;}n4t=K$l.params.yAxis;if(!n4t && G00){n4t=this.panels[G00].yAxis;}if(K$l.params.step && H7B > 0){if(!K$l.caches[I_U.id])continue;E5o=K$l.caches[I_U.id][H7B];if(!E5o && E5o !== +"0")continue;i5o.D0J(38);a_W=K$l.caches[I_U.id][i5o.q7n("1",64,H7B)];if((a_W || a_W === "0" - 0) && t8h + W3j >= E5o && t8h - W3j <= a_W || t8h - W3j <= E5o && t8h + W3j >= a_W){I_U.highlight=!![];this.anyHighlighted=!![];}}else if(l9l.call(this,H7B,f4N,W_2,n4t,K$l,I_U.id)){I_U.highlight=!"";this.anyHighlighted=!![];}if(I_U.highlight){this.highlightedDataSetField=W_2;break;}}}}}n5a=this.preferences.dragging;for(G6o in this.overlays){Y46=this.overlays[G6o];if(Y46.highlight){this.anyHighlighted=!!"1";Y5w=Y46.inputs.display || Y46.name;Y5w=this.translateIf(Y5w);Y3x={message:Y5w,noDelete:Y46.permanent,noEdit:!Y46.editFunction,type:"study"};S85=null;if(n5a === !"" || n5a && n5a.study){m_q=Y46;}g_C=Y46.getYAxis(this);}if(Y46.prev != Y46.highlight){X4F=!!({});}}for(G6o in O0P.seriesRenderers){Z_6=O0P.seriesRenderers[G6o];S4D=Z_6.params.yAxis?Z_6.params.yAxis.textStyle:null;for(var e1s=0;e1s < Z_6.seriesParams.length;e1s++){I_U=Z_6.seriesParams[e1s];if(Z_6.params.highlightable && I_U.highlight){this.anyHighlighted=!![];O1u=I_U.color || S4D;if(O1u == "auto"){O1u=this.defaultColor;}if(I_U.opacity && I_U.opacity !== 1){O1u=T68.hexToRgba(T68.colorToHex(O1u),parseFloat(I_U.opacity));}Y3x={message:I_U.display || I_U.symbol,backgroundColor:O1u,noDelete:I_U.permanent,type:"series"};S85=null;if(n5a === !!({}) || n5a && n5a.series){m_q=Z_6;Z_6.params.highlight=!![];}g_C=Z_6.getYAxis(this);}if(I_U.prev != I_U.highlight){X4F=!0;}}}for(G6o in this.plugins){C2C=this.plugins[G6o];T$5={};if(C2C.findHighlights){T$5=C2C.findHighlights(this,g8q,X9t);if(T$5.somethingChanged){X4F=!!({});}if(T$5.anyHighlighted){this.anyHighlighted=!!1;Y3x=T$5.stickyArgs || ({});}}}i$R=this.whichPanel(t8h);N5I=this.whichYAxis(i$R,j14);if(!g_C){g_C=N5I;}if(this.currentBaseline){g_C=this.currentBaseline.getYAxis(this);}function l9l(c3e,K96,W1Z,k27,z24,r5p){var U3J,j_t,j88,w$W,P3S,s7z,O$o,M7c,A30,F_l,U3t,n0$,t_J,M0M,a1B,Q7I,M_Y,E2L,z3r,p97,n1r,B6J;U3J=this.chart;j_t=this.currentPanel;if(!k27){k27=j_t.yAxis;}j88=W1Z.split("-->");w$W=j88[0];P3S=j88[1];if(!P3S){P3S="Close";}s7z=U3J.dataSegment[H7B];n0$=null;t_J=null;M0M=null;i5o.D0J(1);a1B=new Array(i5o.q7n(1,"3"));Q7I=z24 && z24.caches[r5p];if(s7z && Q7I){A30=Q7I[H7B];n0$=s7z.tick;if(A30 || A30 === 0){a1B[0]=1;}for(M_Y=H7B - +"1";M_Y >= 0;M_Y--){if(Q7I[M_Y] || Q7I[M_Y] === 0){F_l=Q7I[M_Y];i5o.D0J(85);t_J=i5o.q7n(n0$,M_Y,H7B);i5o.D0J(7);a1B[i5o.q7n(0,"1")]=+"1";break;}}for(M_Y=H7B + 1;M_Y < U3J.dataSegment.length;M_Y++){if(Q7I[M_Y] || Q7I[M_Y] === "0" * 1){U3t=Q7I[M_Y];i5o.D0J(85);M0M=i5o.S40(n0$,M_Y,H7B);a1B[2]=1;break;}}}if(t_J === null){O$o=this.getPreviousBar.call(this,U3J,W1Z,H7B);if(O$o){t_J=O$o.tick;F_l=g48(O$o);}}if(M0M === null){M7c=this.getNextBar.call(this,U3J,W1Z,H7B);if(M7c){M0M=M7c.tick;U3t=g48(M7c);}}if(t_J === null && M0M === null){return ![];}if(!Q7I){A30=g48(s7z);F_l=g48(O$o);U3t=g48(M7c);n0$=s7z.tick;if(O$o){t_J=O$o.tick;}if(M7c){M0M=M7c.tick;}}if(!F_l && F_l !== 0){F_l=0;t_J=0;}if(!U3t && U3t !== 0){if(A30 || A30 === +"0"){U3t=A30;i5o.H6P(10);a1B[2]=a1B[i5o.q7n("0",0)];}else {U3t=F_l;a1B[2]=a1B[1];}if(r5p && U3J.series[r5p].parameters.extendToEndOfDataSet){M0M=U3J.dataSet.length - +"1";}else {M0M=t_J;}}if(!A30 && A30 !== 0){A30=U3t;n0$=M0M;a1B[0]=a1B[2];if(F_l === 0 && t_J === 0){F_l=A30;t_J=n0$;a1B[1]=a1B[0];}}E2L=this.pixelFromTransformedValue.bind(this);z3r=this.valueFromPixel.bind(this);A30=z3r(a1B[0]?A30:E2L(A30,j_t,k27),j_t);function g48(m4s){var P8B,G4F,G5X,m7l;if(!m4s){return null;}P8B=m4s[w$W];if(P8B && (P8B[P3S] || P8B[P3S] === +"0")){P8B=P8B[P3S];}if(z24 && z24.getBasis){P8B+=z24.getBasis(m4s,w$W,P3S);}if(!U3J.transformFunc || k27 != U3J.yAxis){return P8B;}else if(m4s.transform && (w$W in m4s.transform)){P8B=m4s.transform[w$W];if(P8B && (P8B[P3S] || P8B[P3S] === 0)){P8B=P8B[P3S];}return P8B;}G4F=-823366544;G5X=1778015045;m7l=2;for(var T7z="1" << 64;i5o.Z2Z(T7z.toString(),T7z.toString().length,+"19843") !== G4F;T7z++){return U3J.transformFunc(this,U3J,P8B);}if(i5o.U6$(m7l.toString(),m7l.toString().length,16541) !== G5X){return U3J.transformFunc(this,U3J,P8B);}return U3J.transformFunc(this,U3J,P8B);}F_l=z3r(a1B[1]?F_l:E2L(F_l,j_t,k27),j_t);U3t=z3r(a1B[2]?U3t:E2L(U3t,j_t,k27),j_t);p97=T68.convertBoxToPixels(this,j_t.name,K96);n1r=T68.convertBoxToPixels(this,j_t.name,{x0:t_J,y0:F_l,x1:n0$,y1:A30});B6J=T68.convertBoxToPixels(this,j_t.name,{x0:n0$,y0:A30,x1:M0M,y1:U3t});if(T68.boxIntersects(p97.x0,p97.y0,p97.x1,p97.y1,n1r.x0,n1r.y0,n1r.x1,n1r.y1,"segment") || T68.boxIntersects(p97.x0,p97.y0,p97.x1,p97.y1,B6J.x0,B6J.y0,B6J.x1,B6J.y1,"segment")){return !![];}return !"1";}if(g_C){if(!g_C.highlight){X4F=!!({});}g_C.highlight=!"";}t09=[];for(var I8e in this.panels){t09=t09.concat(this.panels[I8e].yaxisLHS).concat(this.panels[I8e].yaxisRHS);}for(G6o=0;G6o < t09.length;G6o++){if(g_C == t09[G6o] && !X9t)continue;if(t09[G6o].highlight){X4F=!!({});}t09[G6o].highlight=!1;}for(D$e=0;D5f && D$e < D5f.length;D$e++){b03=D5f[D$e];Y5b=b03.params.box;if(!Y5b)continue;if(b03.params.panelName !== this.currentPanel.name)continue;a1e=T68.convertBoxToPixels(this,this.currentPanel.name,f4N);if(T68.boxIntersects(a1e.x0,a1e.y0,a1e.x1,a1e.y1,Y5b.x0,Y5b.y0,Y5b.x1,Y5b.y1)){this.activeMarker=b03;b03.highlight=!!1;this.markerHelper.highlighted.push(b03);}if(b03.prev != b03.highlight){X4F=!"";}}if(X4F){this.draw();Y3x.panel=i$R;if(this.anyHighlighted && !this.grabStartYAxis){Y3x.panel=i$R;}else {Y3x={};}this.displaySticky(Y3x);this.clearMeasure();if(S85){S85.measure();}}if((n5a === !"" || n5a && n5a.yaxis) && N5I && !N5I.noDraw){this.anyHighlight=!![];m_q=N5I;}if(!this.anyHighlighted){this.setMeasure();}if(m_q && !i$R.noDrag){o4M="stx";o4M+="-";o4M+="draggable";if(this.longHoldTookEffect && !this.cancelLongHold){if(m_q.params){if(m_q.params.dependentOf){m_q=O0P.seriesRenderers[m_q.params.dependentOf];m_q.params.highlight=!!({});}for(G6o in O0P.seriesRenderers){if(O0P.seriesRenderers[G6o].params.dependentOf == m_q.params.name){O0P.seriesRenderers[G6o].params.highlight=!"";}}}this.highlightedDraggable=m_q;if(m_q.getDependents){i5A=m_q.getDependents(this,!!({}));for(G6o in this.overlays){Y46=this.overlays[G6o];if(i5A.indexOf(Y46) > -1){Y46.highlight=!"";}}}}this.container.classList.add(o4M);}else {w40="stx-draggabl";w40+="e";this.container.classList.remove(w40);}this.highlightedDataSetField=this.adjustHighlightedDataSetField(this.highlightedDataSetField);this.displayDrawOK();};T68.ChartEngine.prototype.rightClickHighlighted=function(){if(this.runPrepend("rightClickHighlighted",arguments)){return;}this.deleteHighlighted(!"");this.runAppend("rightClickHighlighted",arguments);};T68.ChartEngine.prototype.deleteHighlighted=function(U2b,x8O){var g10,D$O,f72,H$a,t_R,q_8,P8y,G9Q,a_Y,L0B,q6a,q8b,g_S,r2E,a8x,k_y;g10="deleteH";g10+="ighlight";g10+="ed";if(this.runPrepend("deleteHighlighted",arguments)){return;}this.cancelTouchSingleClick=!!({});T68.clearCanvas(this.chart.tempCanvas,this);D$O=this.bypassRightClick === !!0;if(D$O || !this.bypassRightClick.drawing){for(var o_X=this.drawingObjects.length - 1;o_X >= 0;o_X--){f72=this.drawingObjects[o_X];if(!f72.highlighted)continue;if(U2b){this.rightClickDrawing(f72,x8O);}else if(!f72.permanent){H$a=f72.abort();if(!H$a){t_R=this.exportDrawings();this.drawingObjects.splice(o_X,1);this.undoStamp(t_R,this.exportDrawings());}this.changeOccurred("vector");}}}if(D$O || !this.bypassRightClick.study){for(var u8M in this.overlays){q_8=this.overlays[u8M];if((q_8.overlay || q_8.underlay) && q_8.highlight && !q_8.permanent){if(U2b || x8O){this.rightClickOverlay(u8M,x8O);}else {this.removeOverlay(u8M);}}}}P8y=this.currentPanel.chart;if(D$O || !this.bypassRightClick.series){for(var a00 in P8y.seriesRenderers){G9Q=P8y.seriesRenderers[a00];if(G9Q.params.highlightable){a_Y=this.panels[G9Q.params.panel];L0B=a_Y && a_Y.yAxis.name;for(var K$i=G9Q.seriesParams.length - 1;K$i >= 0;K$i--){q6a=G9Q.seriesParams[K$i];if((G9Q.params.highlight || q6a.highlight) && !q6a.permanent){G9Q.removeSeries(q6a.id);if(G9Q.seriesParams.length < 1){this.removeSeriesRenderer(G9Q);if(G9Q.params.name == L0B){this.electNewPanelOwner(G9Q.params.panel);}else {this.checkForEmptyPanel(G9Q.params.panel);q8b=this.getYAxisByName(a_Y,G9Q.params.name);if(q8b){q8b.name=q8b.studies[0] || q8b.renderers["1" | 1];}}}}}}}}this.draw();this.resizeChart();this.clearMeasure();g_S=this.controls.mSticky;if(g_S){g_S.style.display="none";r2E=-1776811706;a8x=-1920009664;k_y=2;for(var f7t=1;i5o.U6$(f7t.toString(),f7t.toString().length,74662) !== r2E;f7t++){g_S.children[2].innerHTML="";i5o.H6P(28);k_y+=i5o.S40("2",32);}if(i5o.U6$(k_y.toString(),k_y.toString().length,46823) !== a8x){g_S.children["0" >> 64].innerHTML="";}}this.runAppend(g10,arguments);};T68.ChartEngine.prototype.displayDragOK=function(s7d){i5o.a9S();var D7G,u3u,x6n,k35,D4F,s9o,u_I,E4S,F1X,B3O,L94,d7z,v2K,X5w,s45;D7G=this.controls.dragOk;if(D7G){if(!s7d){if(!this.tapForHighlighting || !this.touchingEvent || this.anyHighlighted){this.findHighlights(this.highlightViaTap);};}u3u=this.highlightedDraggable;x6n=u3u && u3u.undraggable && u3u.undraggable(this);k35=this.cx;D4F=this.cy;if(!s7d){if(u3u && !x6n && this.longHoldTookEffect && !this.cancelLongHold){s9o="stx-dra";s9o+="g-chart";u_I=".fie";u_I+="ld";E4S=u3u.inputs && u3u.inputs.display || u3u.params && (u3u.params.display || u3u.params.name) || u3u.name;D7G.querySelector(u_I).setAttribute("text",E4S);p$z.call(this,D7G);D7G.style.display="inline-block";this.draw();this.displaySticky();if(this.grabStartYAxis){this.container.classList.replace("stx-drag-chart","stx-drag-axis");}else {this.container.classList.replace(s9o,"stx-drag-series");}}else {D7G.style.display="none";this.draw();this.container.classList.remove("stx-drag-series");this.container.classList.remove("stx-drag-axis");for(var h8m in this.panels){F1X="r";F1X+="ig";F1X+="ht";B3O="l";B3O+="e";B3O+="f";B3O+="t";L94=this.panels[h8m].subholder.classList;L94.remove("dropzone");L94.remove("all");L94.remove(B3O);L94.remove(F1X);L94.remove("top");L94.remove("bottom");for(d7z=0;d7z < this.panels[h8m].yaxisLHS.length;d7z++){this.panels[h8m].yaxisLHS[d7z].dropzone=null;}for(d7z=0;d7z < this.panels[h8m].yaxisRHS.length;d7z++){this.panels[h8m].yaxisRHS[d7z].dropzone=null;}}}this.draw();}if(u3u){v2K="p";v2K+="x";X5w=D4F + D7G.offsetHeight;s45=Math.max(0,k35 - D7G.offsetWidth);i5o.D0J(0);D7G.style.top=i5o.q7n(X5w,"px");i5o.D0J(0);D7G.style.left=i5o.S40(s45,v2K);p$z.call(this,D7G);}}function p$z(w47){var t3t,l0o;t3t=this.translateIf(w47.querySelector(".field").getAttribute("text"));i5o.D0H();l0o=this.whichYAxis(this.whichPanel(this.cy),this.cx,this.cy);if(l0o && l0o.dropzone == "all"){t3t+="-->" + this.translateIf(l0o.name);}w47.querySelector(".field").innerHTML=t3t;}};T68.ChartEngine.prototype.displayDrawOK=function(){var I5p,K_W,s7Y,n0J,s3L,z03,C2e,Q$F;i5o.D0H();I5p=this.controls.drawOk;if(I5p && T68.Drawing){K_W=T68.Drawing[this.currentVectorParameters.vectorType];if(K_W){K_W=new K_W();}if(this.highlightedDataSetField && K_W && K_W.getYValue){i5o.D0J(21);s7Y=-i5o.S40("255978135",0);i5o.H6P(21);n0J=-i5o.q7n("987213232",0);s3L=2;for(var R3C=+"1";i5o.U6$(R3C.toString(),R3C.toString().length,3564) !== s7Y;R3C++){I5p.style.display="inline-block";z03=this.cy + I5p.offsetHeight;C2e=this.cx - I5p.offsetWidth;i5o.H6P(0);I5p.style.top=i5o.q7n(z03,"px");i5o.H6P(0);I5p.style.left=i5o.q7n(C2e,"px");I5p.querySelector(".field").innerHTML=this.translateIf(this.highlightedDataSetField);s3L+=2;}if(i5o.U6$(s3L.toString(),s3L.toString().length,45301) !== n0J){Q$F="p";Q$F+="x";I5p.style.display=".field";z03=this.cy - I5p.offsetHeight;C2e=this.cx / I5p.offsetWidth;i5o.D0J(14);I5p.style.top=i5o.S40(Q$F,z03);i5o.H6P(14);I5p.style.left=i5o.S40(".field",C2e);I5p.querySelector(".field").innerHTML=this.translateIf(this.highlightedDataSetField);}}else {I5p.style.display="none";}}};T68.ChartEngine.prototype.mouseWheel=function(L7V){var u_Z,r6X,o53,K0D,f8$,A11,L0F,X_m,k5T,l28;u_Z="mou";u_Z+="seWh";u_Z+="e";u_Z+="el";r6X="vertica";r6X+="l";o53="mo";o53+="us";o53+="eWhee";o53+="l";if(this.runPrepend(o53,arguments)){return;}if(L7V.preventDefault){L7V.preventDefault();}if(this.openDialog !== ""){return;}K0D=L7V.deltaX;f8$=L7V.deltaY;if(Math.abs(f8$) > Math.abs(K0D)){K0D=0;}else {f8$=0;}i5o.D0H();this.lastMouseWheelEvent=Date.now();if(Math.abs(K0D) === 0 && Math.abs(f8$) === 0){return;}if(this.allowSideswipe && K0D !== 0){this.lastMove="horizontal";A11=K0D;if(A11 > 50){A11=+"50";}if(A11 < -50){A11=-50;}this.grabbingScreen=!!"1";if(!this.currentPanel){this.currentPanel=this.chart.panel;}this.grabStartX=T68.ChartEngine.crosshairX;this.grabStartY=T68.ChartEngine.crosshairY;this.grabStartScrollX=this.chart.scroll;this.grabStartScrollY=this.currentPanel.yAxis.scroll;this.grabStartMicropixels=this.micropixels;this.grabStartPanel=this.currentPanel;this.mousemoveinner(T68.ChartEngine.crosshairX - A11,T68.ChartEngine.crosshairY);this.updateChartAccessories();this.grabbingScreen=![];return;}this.lastMove=r6X;if(!this.allowZoom){return;}if(!this.displayInitialized){return;}if(!f8$){if(T68.wheelEvent == "mousewheel"){i5o.H6P(86);var b1n=i5o.S40(5,8,14);i5o.D0J(0);var u48=i5o.S40(33,7);f8$=b1n / u48 * L7V.wheelDelta;if(L7V.wheelDeltaX){i5o.D0J(87);var A4b=i5o.q7n(17,20,7,154,2);i5o.H6P(7);var F$c=i5o.q7n(400,440);K0D=A4b / F$c * L7V.wheelDeltaX;}}else {f8$=L7V.detail;}}if(typeof L7V.deltaMode == "undefined"){L7V.deltaMode=L7V.type == "MozMousePixelScroll"?+"0":1;}L0F=-f8$;if(L7V.deltaMode == 1){i5o.H6P(7);L0F*=i5o.q7n(0,"33");}X_m=null;k5T=null;if(this.mouseWheelAcceleration){l28=Math.max(Math.pow(Math.abs(L0F),0.3),1);i5o.H6P(88);X_m=i5o.S40(1,l28,"0.1");i5o.H6P(89);k5T=i5o.q7n(l28,0,1,"0.2");}this.zoomInitiatedByMouseWheel=!"";if(L0F > 0){if(this.reverseMouseWheel){this.zoomOut(null,k5T);}else {this.zoomIn(null,X_m);}}else if(L0F < 0){if(this.reverseMouseWheel){this.zoomIn(null,X_m);}else {this.zoomOut(null,k5T);}}if(this.runAppend(u_Z,arguments)){return;}return !({});};T68.ChartEngine.handleContextMenu=function(O2M){i5o.D0H();var z9Y;for(var f7Y=0;f7Y < T68.ChartEngine.registeredContainers.length;f7Y++){z9Y=T68.ChartEngine.registeredContainers[f7Y].stx;if(z9Y){if(z9Y.anyHighlighted){if(O2M.preventDefault){O2M.preventDefault();}return ![];}}}};if(typeof document != "undefined"){document.addEventListener("contextmenu",T68.ChartEngine.handleContextMenu);}T68.ChartEngine.htmlControls={annotationSave:F3o,annotationCancel:'
cancel',mSticky:'
(right-click to deleteright-click to managedrag to change anchor time)(long-press to drag)
',drawOk:'
',dragOk:'
',crossX:X1X,crossY:g_K,chartControls:'
',home:Y_x,floatDate:'
',handleTemplate:L66,iconsTemplate:'
',baselineHandle:'
',notificationTray:'
'};T68.ChartEngine.prototype.registerChartControl=function(W9p,a75,L$Y){var g2j,g8b,l_A,c1P;g2j=".stx";g2j+="-zoom-in";g8b=this.controls;i5o.a9S();if(!g8b || !g8b.chartControls){return;}if(g8b.chartControls.querySelector((8170 != 732?(+"98.93",1520) <= 5231?".":"0x195b" | 88:(+"1.38e+3",0x17d9)) + W9p)){return;}l_A=null;c1P=g8b.chartControls.querySelector(g2j);if(c1P){l_A=document.createElement("span");i5o.D0J(37);l_A.innerHTML=i5o.q7n("",'
',a75);i5o.D0J(0);l_A.className=i5o.q7n("stx-chart-control-button ",W9p);c1P.parentNode.appendChild(l_A);if(L$Y){T68.safeClickTouch(l_A,L$Y);}if(!T68.touchDevice){this.makeModal(l_A);}return l_A;}};T68.ChartEngine.prototype.zoomOut=function(Q_0,A$r){var S9W,s$L,H_7,g$W;if(this.runPrepend("zoomOut",arguments)){return;}if(this.preferences.zoomOutSpeed){A$r=this.preferences.zoomOutSpeed;}else if(!A$r){i5o.D0J(8);A$r=i5o.q7n(1,"0.7");}i5o.D0H();if(Q_0 && Q_0.preventDefault){Q_0.preventDefault();}this.cancelTouchSingleClick=!0;function P8I(W9u){i5o.D0H();return function(p0N){var L7T;S9W.zoomSet(p0N,W9u);if(S9W.animations.zoom.hasCompleted){L7T="zoo";L7T+="mOut";if(S9W.runAppend(L7T,arguments)){return;}S9W.changeOccurred("layout");if(S9W.continuousZoom){S9W.continuousZoom.execute(!![]);}}};}S9W=this;for(var X2z in this.charts){s$L=this.charts[X2z];H_7=s$L.width * A$r / this.layout.candleWidth;if(s$L.allowScrollFuture === !({}) && s$L.allowScrollPast === !({}) && H_7 > s$L.dataSet.length){H_7=s$L.dataSet.length;}g$W=this.chart.width / H_7;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(P8I(s$L),this.layout.candleWidth,g$W);}};T68.ChartEngine.prototype.zoomIn=function(k82,V91){var t7i,g$b,H9v,W44;if(this.runPrepend("zoomIn",arguments)){return;}i5o.a9S();if(this.preferences.zoomInSpeed){V91=this.preferences.zoomInSpeed;}else if(!V91){V91=0.7;}if(k82 && k82.preventDefault){k82.preventDefault();}function D9R(f3i){i5o.D0H();return function(h4n){var y4B;t7i.zoomSet(h4n,f3i);if(t7i.animations.zoom.hasCompleted){y4B="la";y4B+="y";y4B+="ou";y4B+="t";if(t7i.runAppend("zoomIn",arguments)){return;}t7i.changeOccurred(y4B);if(t7i.continuousZoom){t7i.continuousZoom.execute();}}};}this.cancelTouchSingleClick=!![];t7i=this;for(var D6q in this.charts){g$b=this.charts[D6q];H9v=g$b.width * V91 / this.layout.candleWidth;if(g$b.maxTicks - H9v < "1" << 0){i5o.D0J(7);var Q6_=i5o.q7n(9,10);H9v=g$b.maxTicks - Q6_;}if(H9v < this.minimumZoomTicks){H9v=this.minimumZoomTicks;}W44=this.chart.width / H9v;this.layout.setSpan=null;this.layout.range=null;this.animations.zoom.run(D9R(g$b),this.layout.candleWidth,W44);}};T68.ChartEngine.prototype.createCrosshairs=function(){var t3X,h_X,q$o,J5n;t3X="createCrossh";t3X+="airs";h_X="cre";h_X+="a";h_X+="teCrosshairs";if(this.runPrepend(h_X,arguments)){return;}if(!this.manageTouchAndMouse || this.mainSeriesRenderer && this.mainSeriesRenderer.nonInteractive){return;}q$o=this.controls.crossX;J5n=this.controls.crossY;if(q$o){if(!q$o.onmousedown){q$o.onmousedown=function(o09){if(o09.preventDefault){o09.preventDefault();}return ![];};}}if(J5n){if(!J5n.onmousedown){J5n.onmousedown=function(x1_){if(x1_.preventDefault){x1_.preventDefault();}return ![];};}}this.runAppend(t3X,arguments);};B3k=!1;T68.ChartEngine.prototype.mousemoveinner=T68.ChartEngine.prototype.mousemoveinner || (function(H6J,K8D){i5o.D0H();if(!B3k){console.error("interaction feature requires activating movement feature.");}B3k=!!({});});};M=r1$=>{var g9l=A2IFV;var V7k;g9l.D0H();V7k=typeof _CIQ !== "undefined"?_CIQ:r1$.CIQ;if(!V7k.Marker){V7k.ChartEngine.helpersToRegister.push(function(k9D){k9D.markerHelper={chartMap:{},classMap:{},domMarkers:[],highlighted:[]};});V7k.ChartEngine.prototype.addToHolder=function(Z_A){var D88,r6p,e0W,W_v;D88=this.panels[Z_A.params.panelName];if(!D88){return;}r6p=Z_A.params;e0W=Z_A.node;W_v=Z_A.stxNodeCreator;if(W_v && W_v.prepareForHolder){e0W=W_v.prepareForHolder(Z_A);}if(r6p.chartContainer){this.container.appendChild(Z_A.node);}else if(r6p.includeAxis){D88.holder.appendChild(Z_A.node);}else {D88.subholder.appendChild(e0W);}Z_A.chart=D88.chart;if(W_v && W_v.addToHolder){W_v.addToHolder(Z_A);}g9l.D0H();if(W_v && W_v.expand){V7k.Marker.initializeScrollBehavior(W_v);}};V7k.ChartEngine.prototype.getMarkerArray=function(C3m,I6v){var X61,y4X,r4k;X61=[];g9l.D0H();for(var A1g in this.markers){for(var k0J="0" ^ 0;k0J < this.markers[A1g].length;k0J++){y4X="pa";y4X+="n";y4X+="elNam";y4X+="e";r4k=this.markers[A1g][k0J];if(C3m == y4X){if(r4k.params.panelName == I6v){X61.push(r4k);}}else if(C3m == "label"){if(A1g == I6v){X61.push(r4k);}}else if(C3m == "all"){X61.push(r4k);}}}return X61;};V7k.ChartEngine.prototype.removeFromHolder=function(L1Z){var N17,d_g,p1_,w_c,f53,k6S;N17=this.panels[L1Z.params.panelName];if(N17){if(L1Z.node.parentNode == N17.holder){N17.holder.removeChild(L1Z.node);}else if(L1Z.node.parentNode == N17.subholder){N17.subholder.removeChild(L1Z.node);}else if(L1Z.node.parentNode == this.container){this.container.removeChild(L1Z.node);}}d_g=this.markers[L1Z.params.label];if(!d_g){return;}for(p1_=0;p1_ < d_g.length;p1_++){if(d_g[p1_] === L1Z){d_g.splice(p1_,1);break;}}w_c=this.markerHelper.chartMap[L1Z.chart.name];if(w_c){for(p1_=0;p1_ < w_c.markers.length;p1_++){if(w_c.markers[p1_] === L1Z){w_c.markers.splice(p1_,1);break;}}}f53=this.markerHelper.classMap[L1Z.className];if(f53){k6S=f53[L1Z.params.panelName];if(k6S){for(p1_=0;p1_ < k6S.length;p1_++){if(k6S[p1_] === L1Z){k6S.splice(p1_,1);break;}}}}};V7k.ChartEngine.prototype.moveMarkers=function(k5J,B_S){var k8A,U3Z;k8A=this.getMarkerArray("panelName",k5J);for(var k3A=0;k3A < k8A.length;k3A++){k8A[k3A].params.panelName=B_S;}for(var q4A in this.markerHelper.classMap){U3Z=this.markerHelper.classMap[q4A][k5J];if(U3Z){this.markerHelper.classMap[q4A][B_S]=U3Z;delete this.markerHelper.classMap[q4A][k5J];}}};V7k.ChartEngine.prototype.establishMarkerTicks=function(){var I6z,q0B;I6z=this.markerHelper.chartMap;for(var L4x in I6z){q0B=I6z[L4x];if(q0B.dataSetLength == this.charts[L4x].dataSet.length)continue;for(var o$V=0;o$V < q0B.markers.length;o$V++){this.setMarkerTick(q0B.markers[o$V]);}}};V7k.ChartEngine.prototype.futureTickIfDisplayed=function(u0o){var S7K,Z$k,Y8B,S9G,w6m,m0g,F03,R3e,j7b;S7K=u0o.chart;if(S7K.dataSet.length < 1){return;}Z$k=S7K.xaxis[S7K.xaxis.length - 1].DT;g9l.H6P(90);var W$k=g9l.q7n(4740640,60008,8,10);Z$k=new Date(Z$k.getTime() - this.timeZoneOffset * W$k);if(u0o.params.x > Z$k){return;}Y8B=S7K.maxTicks - S7K.dataSegment.length;S9G=S7K.dataSet.length + Y8B;g9l.D0H();F03=new Date(+S7K.dataSet[S7K.dataSet.length - 1].DT);R3e=this.standardMarketIterator(F03,null,S7K);j7b=u0o.params.x.getTime();for(var a_$=S7K.dataSet.length;a_$ < S9G;a_$++){w6m=F03.getTime();F03=R3e.next();m0g=F03.getTime();if(m0g == j7b){u0o.tick=a_$;return;}else if(m0g > j7b && w6m < j7b){g9l.H6P(7);u0o.tick=Math.max(g9l.q7n(1,a_$),0);return;}}};V7k.ChartEngine.prototype.setMarkerTick=function(Y6Y){var w8d,K8_,U_k,w0Z,Z7h,J9a;w8d=Y6Y.chart;if(Y6Y.params.xPositioner == "master" && Y6Y.params.x){Y6Y.tick=Math.floor(Y6Y.params.x / this.layout.periodicity);return;}else if(Y6Y.params.xPositioner == "date" && Y6Y.params.x){w0Z=Y6Y.params.x.getTime();for(var J_b=0;J_b < w8d.dataSet.length;J_b++){Z7h=w8d.dataSet[J_b];U_k=Z7h.DT.getTime();K8_=U_k;if(J_b > +"0"){K8_=w8d.dataSet[J_b - 1].DT.getTime();}if(U_k == w0Z){Y6Y.tick=J_b;return;}else if(U_k > w0Z && K8_ < w0Z){g9l.H6P(7);Y6Y.tick=Math.max(g9l.S40(1,J_b),0);return;}else if(w0Z < U_k){Y6Y.tick=null;return;}}if(w8d.dataSet.length < 1){return;}J9a=new Date(+w8d.dataSet[J_b - 1].DT);if(J9a.getTime() < w0Z){Y6Y.params.future=!!({});}Y6Y.tick=null;;}};V7k.ChartEngine.prototype.positionMarkers=function(){var m1F,Z9E,Z_e,H9L,p$n,w9A,n$w;m1F=this;Z9E=this.chart;if(!m1F.markerHelper){return;}if(this.markerDelay || this.markerDelay === ("0" ^ 0)){if(!this.markerTimeout){this.markerTimeout=setTimeout(l2J,this.markerDelay);}}else {l2J();}Z_e=this.getFirstLastDataRecord(Z9E.dataSegment,"tick");g9l.a9S();H9L=this.getFirstLastDataRecord(Z9E.dataSegment,"tick",!"");if(!Z_e || !H9L){return;}p$n=this.getMarkerArray("all");for(var w1E=0;w1E < p$n.length;w1E++){w9A=p$n[w1E];n$w=w9A.stxNodeCreator;if(Z_e.tick <= w9A.tick && w9A.tick <= H9L.tick){if(n$w && n$w.drawMarker){n$w.drawMarker(w9A);}}else if(w9A.attached && n$w.expand){n$w.expand.style.visibility="hidden";}}function l2J(){var R2u,i_U,T3s,h_S;if(m1F.runPrepend("positionMarkers",arguments)){return;}m1F.markerTimeout=null;for(var L7R in m1F.markerHelper.classMap){for(var N9K in m1F.markerHelper.classMap[L7R]){R2u=m1F.markerHelper.classMap[L7R][N9K];i_U=m1F.panels[N9K];if(R2u.length){T3s={stx:m1F,arr:R2u,panel:i_U};T3s.firstTick=i_U.chart.dataSet.length - i_U.chart.scroll;T3s.lastTick=T3s.firstTick + i_U.chart.dataSegment.length;h_S=R2u[0].constructor.placementFunction;if(h_S){h_S(T3s);}else {m1F.defaultMarkerPlacement(T3s);}}}}g9l.D0H();m1F.runAppend("positionMarkers",arguments);}};V7k.Marker=V7k.Marker || (function(z36){var s2h,B2G,K8R,h2M,P2h,u8J,d$2;this.params={xPositioner:"date",yPositioner:"value",panelName:"chart",permanent:!"1",label:"generic",includeAxis:!"1"};V7k.extend(this.params,z36);if(!this.params.node){s2h="D";s2h+="I";s2h+="V";this.params.node=document.createElement(s2h);}B2G=this.params.stx;if(!B2G){K8R="Marker created";K8R+=" without specifying stx";console.log(K8R);return;}if(!this.className){this.className="CIQ.Marker";}if(V7k.derivedFrom(this.params.node,V7k.Marker.NodeCreator)){this.stxNodeCreator=this.params.node;this.node=this.stxNodeCreator.node;}else {this.node=this.params.node;}h2M=this.params.label;if(!B2G.markers[h2M]){B2G.markers[h2M]=[];}B2G.markers[h2M].push(this);P2h=B2G.panels[this.params.panelName];this.chart=P2h.chart;if(!B2G.markerHelper.chartMap[this.chart.name]){B2G.markerHelper.chartMap[this.chart.name]={dataSetLength:0,markers:[]};}B2G.markerHelper.chartMap[this.chart.name].markers.push(this);u8J=B2G.markerHelper.classMap[this.className];if(!u8J){u8J=B2G.markerHelper.classMap[this.className]={};}if(!u8J[this.params.panelName]){u8J[this.params.panelName]=[];}u8J[this.params.panelName].push(this);d$2=this.stxNodeCreator && this.stxNodeCreator.deferAttach;if(!d$2){B2G.addToHolder(this);}B2G.setMarkerTick(this);if(this.stxNodeCreator && this.stxNodeCreator.drawMarker){this.stxNodeCreator.drawMarker(this);}});V7k.Marker.prototype.remove=function(){this.params.stx.removeFromHolder(this);};V7k.Marker.prototype.click=function(W4Y){var S3q;if(typeof arguments[0] === "number"){W4Y={cx:arguments["0" - 0],cy:arguments[+"1"],panel:arguments[3]};}var {cx:i2m, cy:j$b, panel:W6e}=W4Y;g9l.a9S();if(!this.params.stx){return;}S3q=this.params.node;if(S3q.click){S3q.click(i2m,j$b,this,W6e);}};V7k.Marker.prototype.doubleClick=function({cx:h7E, cy:x84, panel:C10}){g9l.D0H();return ![];};V7k.Marker.prototype.render=function(){g9l.D0H();var X7q,P7n;X7q=[this];P7n={stx:this.params.stx,arr:X7q,panel:this.params.stx.panels[this.params.panelName],showClass:this.showClass};this.constructor.placementFunction(P7n);};V7k.Marker.removeByLabel=function(Q9H,B05){var x9I,c3$,x7L;x9I="l";x9I+="ab";x9I+="e";x9I+="l";c3$=Q9H.getMarkerArray(x9I,B05);for(var v5k="0" ^ 0;v5k < c3$.length;v5k++){x7L=c3$[v5k];Q9H.removeFromHolder(x7L);if(x7L.stxNodeCreator && x7L.stxNodeCreator.remove){x7L.stxNodeCreator.remove(x7L);}}Q9H.draw();};V7k.Marker.positionContentVerticalAndHorizontal=function(H5B){var v95,Z3y,B9R,N_q,m3V,g1m,a3X,W23,Y4p,L8u,j_T,p9e;v95=H5B.querySelectorAll(".stx-marker-expand")[0];if(!v95 || !V7k.trulyVisible(v95)){return;}g9l.a9S();Z3y=v95.offsetHeight;B9R=v95.style;B9R.left=B9R.right="";B9R.bottom=B9R.top="";N_q=getComputedStyle(v95);m3V=N_q.left;g1m=N_q.bottom;g9l.H6P(36);var m8S=g9l.q7n(19,3,12);a3X=H5B.offsetLeft + parseInt(m3V,m8S);W23=parseInt(g1m,10);Y4p=H5B.offsetTop - (W23 + Z3y - H5B.offsetHeight);L8u=H5B.parentNode.offsetWidth;j_T=H5B.parentNode.offsetHeight;if(a3X + v95.offsetWidth > L8u){B9R.right=m3V;B9R.left="auto";}if(H5B.offsetTop <= j_T){if(Y4p > j_T - Z3y){B9R.top=j_T - H5B.offsetTop - Z3y + "px";B9R.bottom="auto";}}else {g9l.H6P(0);B9R.top=g9l.q7n(j_T,"px");}if(H5B.offsetTop + H5B.offsetHeight >= 0){if(Y4p < "0" >> 32){p9e="p";p9e+="x";B9R.top=-H5B.offsetTop + p9e;B9R.bottom="auto";}}else {B9R.bottom="0px";}};V7k.Marker.initializeScrollBehavior=function(b_9){var i7h;var {expand:q7J}=b_9;if(!q7J){return;}q7J.addEventListener(V7k.wheelEvent,o8u=>{return o8u.stopPropagation();});var {scrollbarStyling:w04}=V7k.UI || ({});if(w04){w04.refresh(q7J);}else {i7h="scr";i7h+="o";i7h+="l";i7h+="l";q7J.style.overflowY=i7h;}};V7k.ChartEngine.prototype.getBarBounds=function(X7s){var D6f,i7Y,B6_,o3X,L8E,S1S,y5v;D6f="p";D6f+="an";g9l.a9S();D6f+="d";D6f+="f";i7Y=this.layout.chartType;B6_=this.layout.aggregationType;if(B6_ == D6f){o3X={high:Math.max(X7s.pfOpen,X7s.pfClose),low:Math.min(X7s.pfOpen,X7s.pfClose)};}else {o3X={high:X7s.High,low:X7s.Low};}if(X7s.markerHigh){o3X.high=X7s.markerHigh;}if(X7s.markerLow){o3X.low=X7s.markerLow;}if(X7s.Open === undefined){L8E=X7s.Close;}if(X7s.High === undefined){S1S=Math.max(X7s.Open || L8E,X7s.Close);}if(X7s.Low === undefined){y5v=Math.min(X7s.Open || L8E,X7s.Close);}if(!o3X.high && o3X.high !== 0){o3X.high=S1S;}if(!o3X.low && o3X.low !== 0){o3X.low=y5v;}return o3X;};V7k.ChartEngine.prototype.defaultMarkerPlacement=function(g15){var e5s,b$P,u6m,J_X,f1Q,R3a,H40,X3o,C2k,j2$,y6y,z_y,L4w,W7f,z$y,x7i,T_x,u7A,Y7o,i7M,K2M,C$3,X5j,b_J,v2I,A6D,t6b,U2y,X8Y,J2y,E7O,N8e,h7v,E7W;e5s="Clo";e5s+="s";e5s+="e";b$P=g15.panel;u6m=g15.yAxis?g15.yAxis:g15.panel.yAxis;J_X=b$P.chart;f1Q=g15.stx;R3a=f1Q.chart.highLowBars;H40=J_X.defaultPlotField;if(!H40 || R3a){H40=e5s;}X3o={};for(var K_N="0" - 0;K_N < g15.arr.length;K_N++){C2k="a";C2k+="u";C2k+="t";C2k+="o";j2$=g15.arr[K_N];y6y=j2$.params;if(j2$.params.box)continue;z_y=j2$.node;if(!j2$.clientWidth){j2$.clientWidth=z_y.clientWidth;}if(!j2$.clientHeight){j2$.clientHeight=z_y.clientHeight;}L4w=null;W7f=y6y.xPositioner;z$y=y6y.yPositioner;x7i=j2$.tick;T_x=J_X.dataSet;u7A=j2$.clientWidth;if(W7f != "none"){if(W7f == "bar" && y6y.x){if(y6y.x < J_X.xaxis.length){Y7o=J_X.xaxis[y6y.x];if(Y7o){L4w=Y7o.data;}}g9l.H6P(36);var g9N=g9l.q7n(11,0,10);z_y.style.left=Math.round(f1Q.pixelFromBar(y6y.x,J_X) - u7A / +"2") + g9N + "px";}else {if(!x7i && x7i !== 0){if(y6y.future && J_X.scroll < J_X.maxTicks){f1Q.futureTickIfDisplayed(j2$);x7i=j2$.tick;if(!x7i && x7i !== 0){z_y.style.left="-1000px";continue;}}else {z_y.style.left="-1000px";continue;}}if(x7i < T_x.length){L4w=T_x[x7i];}j2$.leftpx=Math.round(f1Q.pixelFromTick(x7i,J_X) - J_X.left - u7A / 2);j2$.rightEdge=j2$.leftpx + u7A;z_y.style.left=j2$.leftpx + "px";if(x7i < g15.firstTick && j2$.rightEdge < J_X.left - 50)continue;;}if(!L4w){g9l.D0J(7);var L3U=g9l.S40(20,21);L4w=T_x[T_x.length - ("1" | L3U)];};}else if(z$y.indexOf("candle") > -1){i7M=getComputedStyle(z_y).left;if(i7M){K2M=f1Q.barFromPixel(parseInt(i7M,10),J_X);if(K2M >= 0){L4w=J_X.xaxis[K2M].data;if(!L4w){g9l.D0J(35);var W9j=g9l.q7n(11,8,5,3,175);L4w=T_x[T_x.length - W9j];};}}}z_y.style.top=C2k;C$3=y6y.y;X5j=j2$.clientHeight;if(z$y != "none"){v2I="b";v2I+="o";v2I+="ttom";A6D="o";A6D+="n_";A6D+="candle";t6b="und";t6b+="er_candle";g9l.D0J(0);var p6m=g9l.q7n(859,15);g9l.D0J(52);var R$G=g9l.q7n(96978,8817,12);g9l.D0J(91);var a8O=g9l.q7n(9,1,6,5,9);g9l.H6P(15);var U59=g9l.q7n(6,135,96);g9l.D0J(11);var X2f=g9l.S40(0,4,39,10);g9l.D0J(39);var z7j=g9l.q7n(27958,3,23961);g9l.H6P(0);var h1B=g9l.S40(604,9066);U2y=z$y + ((p6m,R$G) > "238.66" * a8O?"-":(U59,"7990" * X2f) < (996.14,z7j)?+"0x18f":h1B) + z_y.style.left;X8Y=y6y.chartContainer?f1Q.height:b$P.yAxis.bottom;J2y=0;E7O=0;if(typeof X3o[U2y] == "undefined"){X3o[U2y]=0;}E7O=X3o[U2y];X3o[U2y]+=X5j;if(z$y == "value" && (C$3 || C$3 === "0" - 0)){g9l.H6P(92);var l3Z=g9l.S40(1,58,18,16,20);J2y=Math.round(X8Y - f1Q.pixelFromPrice(C$3,b$P,u6m) - X5j / l3Z) + "px";}else if((z$y == "below_candle" || z$y == t6b) && L4w){N8e="h";N8e+="i";N8e+="g";N8e+="h";b_J=L4w[H40];if(R3a){b_J=f1Q.getBarBounds(L4w)[u6m.flipped?N8e:"low"];}J2y=Math.round(X8Y - f1Q.pixelFromPrice(b_J,b$P,u6m) - X5j - E7O) + "px";}else if(z$y == A6D && L4w){h7v="p";h7v+="x";b_J=L4w[H40];if(R3a){g9l.H6P(41);var a2S=g9l.S40(3,12,38);b_J=(L4w.Low + L4w.High) / a2S;}g9l.D0J(39);var i49=g9l.S40(36,19,15);J2y=Math.round(X8Y - f1Q.pixelFromPrice(b_J,b$P,u6m) - X5j / i49 - E7O) + h7v;}else if(z$y == "top"){J2y=Math.round(X8Y - X5j - E7O - b$P.top) + "px";}else if(z$y == v2I){E7W="p";E7W+="x";J2y=Math.round(E7O) + E7W;}else if(L4w){b_J=L4w[H40];if(R3a){b_J=f1Q.getBarBounds(L4w)[u6m.flipped?"low":"high"];}J2y=Math.round(X8Y - f1Q.pixelFromPrice(b_J,b$P,u6m) + E7O) + "px";}if(z_y.style.bottom != J2y){z_y.style.bottom=J2y;}}V7k.Marker.positionContentVerticalAndHorizontal(z_y);}};V7k.Marker.NodeCreator=function(){};V7k.Marker.NodeCreator.toNode=function(){g9l.D0H();return this.node;};V7k.Marker.Simple=function(t8v){var O6A,p$M,L0N,m2d,R3t;O6A=this.node=document.createElement("div");O6A.className="stx-marker";function z3j(){g9l.D0H();V7k.Marker.positionContentVerticalAndHorizontal(O6A);}O6A.classList.add(t8v.type);if(t8v.category){O6A.classList.add(t8v.category);}p$M=V7k.newChild(O6A,"div","stx-visual");V7k.newChild(O6A,"div","stx-stem");if(t8v.type == "callout"){m2d="di";m2d+="v";R3t=V7k.newChild(p$M,"div","stx-marker-content");V7k.newChild(R3t,"h4",null,t8v.headline);L0N=V7k.newChild(R3t,m2d,"stx-marker-expand");V7k.newChild(L0N,"p",null,t8v.story);}else {L0N=V7k.newChild(O6A,"div","stx-marker-expand");V7k.newChild(L0N,"h4",null,t8v.headline);V7k.newChild(L0N,1176 > (118.59,298.1)?"p":736.93 == (395.28,2710)?(4.21e+3,!({})):(0x256c,4.58e+3),null,t8v.story);V7k.safeClickTouch(L0N,function(k1Y){g9l.D0H();O6A.classList.toggle("highlight");});}V7k.safeClickTouch(p$M,function(w6j){O6A.classList.toggle("highlight");setTimeout(z3j,10);});this.nodeType="Simple";this.expand=L0N;};V7k.inheritsFrom(V7k.Marker.Simple,V7k.Marker.NodeCreator,!({}));}};B=e_g=>{var s4_=A2IFV;var t7c,y8h,L5_,h3x,a84,v_i,u4k,F48;t7c="undefin";t7c+="ed";y8h=typeof _CIQ !== t7c?_CIQ:e_g.CIQ;L5_=typeof _timezoneJS !== "undefined"?_timezoneJS:e_g.timezoneJS;h3x=60000 * 60;a84=h3x * 24;v_i=y8h.Market;y8h.Market=function(Z7e){var m40,o7t;m40="un";m40+="defined";this.market_def=![];this.rules=![];this.normalHours=[];this.extraHours=[];this.class_name="Market";if(!L5_.Date){this.tz_lib=Date;;}else {this.tz_lib=L5_.Date;}this.market_tz="";this.hour_aligned=!"1";this.convertOnDaily=!!"";this.enabled_by_default=![];if(typeof Z7e != m40 && Z7e && !y8h.isEmpty(Z7e)){o7t="und";o7t+="ef";o7t+="ined";if(Z7e.market_definition){Z7e=Z7e.market_definition;}if(Z7e.rules){this.rules=Z7e.rules;}if(Z7e.market_tz){this.market_tz=Z7e.market_tz;}if(Z7e.convertOnDaily){this.convertOnDaily=Z7e.convertOnDaily;}if(typeof Z7e.hour_aligned){this.hour_aligned=Z7e.hour_aligned;}if(typeof Z7e.beginningDayOfWeek !== "undefined"){this.beginningDayOfWeek=Z7e.beginningDayOfWeek;}if(typeof Z7e.enabled_by_default !== o7t){if(Z7e.enabled_by_default instanceof Array){this.enabled_by_default=Z7e.enabled_by_default;}}this.market_def=Z7e;if(this.market_def.name === undefined){this.market_def.name="no market name specified";}}else {return;}y8h.Market._createTimeSegments(this);this.getSessionNames();};y8h.Market.Symbology=function(){};y8h.Market.Symbology.isForeignSymbol=function(l7E){return !1;};s4_.D0H();y8h.Market.Symbology.isFuturesSymbol=function(t_D){return !"1";};y8h.Market.Symbology.isRateSymbol=function(M8r){return !({});};y8h.Market.Symbology.isForexSymbol=function(T7a){s4_.D0H();return !({});};y8h.Market.Symbology.isForexMetal=function(v9V,r0t){s4_.a9S();return !({});};y8h.Market.Symbology.isForexFuturesSymbol=function(U$u){if(y8h.Market.Symbology.isForexSymbol(U$u))return !!({});if(y8h.Market.Symbology.isFuturesSymbol(U$u))return !!"1";s4_.D0H();return ![];};y8h.Market.Symbology.factory=function(J6z){return null;;};y8h.Market.Symbology.encodeTermStructureInstrumentSymbol=function(o1j,B_U){var L37;L37="You are trying to call `CIQ.Mar";L37+="ket.Symbology.encodeTe";L37+="rmStructureInstrumentSymbol` but have not imple";L37+="mented it.";s4_.D0H();console.warn(L37);};if(v_i)y8h.extend(y8h.Market,v_i);y8h.Market.prototype.sessions=null;y8h.Market.prototype.beginningDayOfWeek="0" ^ 0;y8h.Market.prototype.getSessionNames=function(){var P1K,e6$;if(!this.rules){this.sessions=[];}else if(!this.sessions){P1K=[];e6$=[];this.rules.map(function(G1C){if(G1C.name && P1K.indexOf(G1C.name) === -("1" | 0)){P1K.push(G1C.name);e6$.push({name:G1C.name,enabled:G1C.enabled?G1C.enabled:!!0});}});this.sessions=e6$;}s4_.D0H();return this.sessions.slice();};y8h.Market.prototype._find_next_segment=function(a3F,v$U){var v5d,c2H,E9O,S_s;if(!this.market_def)return null;if(!this.rules)return null;v5d=new Date(+a3F);c2H=this.newIterator({begin:v5d,interval:1,inZone:this.market_tz,outZone:this.market_tz});if(this._wasOpenIntraDay(v5d)){E9O=this.zseg_match.close_parts.hours;S_s=this.zseg_match.close_parts.minutes;v5d.setHours(E9O);v5d.setMinutes(S_s);c2H=this.newIterator({begin:v5d,interval:1,inZone:this.market_tz,outZone:this.market_tz});}return c2H.next();};y8h.Market.prototype._find_prev_segment=function(l6S,z6M){var B8d,t2X,z4C,D4l,u9Z;if(!this.market_def)return null;if(!this.rules)return null;B8d=new Date(+l6S);s4_.D0H();t2X=this.newIterator({begin:B8d,interval:"1" | 0,inZone:this.market_tz,outZone:this.market_tz});z4C=this._wasOpenIntraDay(B8d);if(z4C === null){B8d=new Date(B8d - 60000);z4C=this._wasOpenIntraDay(B8d);}else {if(z6M && B8d.getHours() === this.zseg_match.open_parts.hours && B8d.getMinutes() === this.zseg_match.open_parts.minutes || !z6M && B8d.getHours() === this.zseg_match.close_parts.hours && B8d.getMinutes() === this.zseg_match.close_parts.minutes){B8d=t2X.previous();}}if(z4C){D4l=this.zseg_match.open_parts.hours;u9Z=this.zseg_match.open_parts.minutes;B8d.setHours(D4l);B8d.setMinutes(u9Z);t2X=this.newIterator({begin:B8d,interval:1,inZone:this.market_tz,outZone:this.market_tz});B8d=t2X.previous();if(this.zseg_match.close_parts.hours === D4l){if(this.zseg_match.close_parts.minutes === u9Z){if(z6M){return t2X.next();}return B8d;}}if(this.zseg_match.adjacent_child){return B8d;}if(z6M){return t2X.next();}return B8d;}return t2X.previous();};y8h.Market.prototype.disableSession=function(i$k,y7W){var v_k;v_k=!({});if(typeof y7W !== "undefined" && y7W){v_k=!!({});}if(i$k){for(var j7C=0;j7C < this.normalHours.length;j7C++){if(this.normalHours[j7C].name === i$k){this.normalHours[j7C].enabled=v_k;}}for(j7C=0;j7C < this.extraHours.length;j7C++){if(this.extraHours[j7C].name === i$k){this.extraHours[j7C].enabled=v_k;}}}};y8h.Market.prototype.enableSession=function(L$k){var D$J;D$J="enable_in";D$J+="stead";this.disableSession(L$k,D$J);};y8h.Market.prototype.enableAllAvailableSessions=function(){var y7N;s4_.a9S();y7N=this.getSessionNames();for(var J3v=0;J3v < y7N.length;J3v++){this.enableSession(y7N[J3v].name);}};y8h.Market.prototype.getClose=function(H3d,V9x,A1C,z2Y){var p4f,R72;if(!this.market_def)return null;if(!this.rules)return null;p4f=H3d;if(!H3d){p4f=new Date();A1C=null;;}p4f=this._convertToMarketTZ(p4f,A1C);if(typeof V9x !== "undefined"){if(this._wasOpenIntraDay(p4f)){if(this.zseg_match.name === V9x){p4f.setHours(this.zseg_match.close_parts.hours,this.zseg_match.close_parts.minutes,+"0",0);p4f=this._convertFromMarketTZ(p4f,z2Y);return p4f;}}}else {if(this._wasOpenDaily(p4f)){R72=this.zseg_match;while(R72.child_){R72=R72.child_;}while(!R72.enabled){R72=R72.parent_;}p4f.setHours(R72.close_parts.hours,R72.close_parts.minutes,0,0);p4f=this._convertFromMarketTZ(p4f,z2Y);return p4f;}}return null;};y8h.Market.prototype.getNextClose=function(v0K,s0Y,V$3){var p$O,d6K,y6G,Q4f;if(!this.market_def)return null;if(!this.rules)return null;p$O=v0K;if(!v0K){p$O=new Date();s0Y=null;;}p$O=this._convertToMarketTZ(p$O,s0Y);if(!this._wasOpenIntraDay(p$O)){d6K=this.newIterator({begin:p$O,interval:1,inZone:this.market_tz,outZone:this.market_tz});p$O=d6K.next();}y6G=p$O.getDate();Q4f=this.zseg_match;while(Q4f.adjacent_child){Q4f=Q4f.adjacent_child;y6G+=1;}p$O.setDate(y6G);p$O.setHours(Q4f.close_parts.hours,Q4f.close_parts.minutes,0,0);p$O=this._convertFromMarketTZ(p$O,V$3);return p$O;};y8h.Market.prototype.getNextOpen=function(z_a,S_7,Z2r){var y72;if(!this.market_def)return null;if(!this.rules)return null;y72=z_a;if(!z_a){y72=new Date();S_7=null;;}y72=this._convertToMarketTZ(y72,S_7);y72=this._find_next_segment(y72);if(this.zseg_match.adjacent_parent){y72=this.getNextOpen(y72,this.market_tz,this.market_tz);y72=this._convertFromMarketTZ(y72,Z2r);return y72;}y72.setHours(this.zseg_match.open_parts.hours);y72.setMinutes(this.zseg_match.open_parts.minutes);y72=this._convertFromMarketTZ(y72,Z2r);return y72;};y8h.Market.prototype.getOpen=function(d$d,g0l,J6e,M0P){var t6t,T1$;if(!this.market_def)return null;if(!this.rules)return null;t6t=d$d;if(!d$d){t6t=new Date();J6e=null;;}t6t=this._convertToMarketTZ(t6t,J6e);if(typeof g0l !== "undefined"){if(this._wasOpenIntraDay(t6t)){if(this.zseg_match.name == g0l){t6t.setHours(this.zseg_match.open_parts.hours,this.zseg_match.open_parts.minutes,0,"0" >> 32);t6t=this._convertFromMarketTZ(t6t,M0P);return t6t;}}}else {if(this._wasOpenDaily(t6t)){T1$=this.zseg_match;while(T1$.parent_){T1$=T1$.parent_;}while(!T1$.enabled){T1$=T1$.child_;}t6t.setHours(T1$.open_parts.hours,T1$.open_parts.minutes,0,0);t6t=this._convertFromMarketTZ(t6t,M0P);return t6t;}}return null;};y8h.Market.prototype.getNormalOpen=function(){var y3t;y3t="F";y3t+="O";y3t+="RE";y3t+="X";var {market_def:L_K, rules:k$b}=this;if(!(L_K && k$b))return "00:00";if(L_K.normal_daily_open)return L_K.normal_daily_open;if(L_K.name === y3t)return "17:00";return k$b.find(({name:h8c})=>!h8c || h8c === "").open;};y8h.Market.prototype.getNormalClose=function(){var Q8M;Q8M="FO";Q8M+="R";Q8M+="E";Q8M+="X";var {market_def:M5n, rules:a8e}=this;if(!(M5n && a8e))return "24:00";if(M5n.normal_daily_close)return M5n.normal_daily_close;if(M5n.name === Q8M)return "17:00";return a8e.filter(({dayofweek:e4R, name:g6H})=>e4R && (!g6H || g6H === "")).pop().close;};y8h.Market.prototype.getPreviousClose=function(m63,q9S,A9W){var G$Z;if(!this.market_def)return null;if(!this.rules)return null;G$Z=m63;if(!m63){G$Z=new Date();q9S=null;;}G$Z=this._convertToMarketTZ(G$Z,q9S);G$Z=this._find_prev_segment(G$Z,!!0);if(this.zseg_match.adjacent_child){return this.getPreviousClose(G$Z,this.market_tz,this.market_tz);}G$Z.setHours(this.zseg_match.close_parts.hours);G$Z.setMinutes(this.zseg_match.close_parts.minutes);G$Z=this._convertFromMarketTZ(G$Z,A9W);s4_.D0H();return G$Z;};y8h.Market.prototype.getPreviousOpen=function(t28,S4s,Z1r){s4_.D0H();var A4F;if(!this.market_def)return null;if(!this.rules)return null;A4F=t28;if(!t28){A4F=new Date();S4s=null;;}A4F=this._convertToMarketTZ(A4F,S4s);A4F=this._find_prev_segment(A4F,!!"1");if(this.zseg_match.adjacent_parent){return this.getPreviousOpen(A4F,this.market_tz,this.market_tz);}A4F.setHours(this.zseg_match.open_parts.hours);A4F.setMinutes(this.zseg_match.open_parts.minutes);A4F=this._convertFromMarketTZ(A4F,Z1r);return A4F;};y8h.Market.prototype.getSession=function(A8U,d4S){s4_.D0H();A8U=this._convertToMarketTZ(A8U,d4S);if(this._wasOpenIntraDay(A8U) && this.zseg_match){return this.zseg_match.name;}return null;};y8h.Market.prototype.marketZoneNow=function(){s4_.D0H();return this._convertToMarketTZ(new Date());};y8h.Market.prototype.isHourAligned=function(){return this.hour_aligned;};y8h.Market.prototype.isOpen=function(){var I65;I65=new Date();if(this.market_tz){I65=new this.tz_lib(I65.getTime(),this.market_tz);}return this._wasOpenIntraDay(I65);};y8h.Market.prototype.isMarketDay=function(){var u2V;u2V=new Date();if(this.market_tz){u2V=new this.tz_lib(u2V.getTime(),this.market_tz);}return this._wasOpenDaily(u2V);};y8h.Market.prototype.isMarketDate=function(h$M){s4_.D0H();return this._wasOpenDaily(h$M);};y8h.Market.prototype.newIterator=function(p1v){var B81,P6X,w1w,y10,Z4S,U7i,M7n;B81=!({});if(p1v.periodicity){B81=p1v.periodicity;}else if(p1v.multiple){B81=p1v.multiple;}P6X=p1v.interval;if(!P6X){w1w="m";w1w+="in";w1w+="u";w1w+="te";P6X=w1w;}if(P6X == "hour")P6X=60;if(!B81){B81=1;}if(!p1v.begin){p1v.begin=new Date();p1v.inZone=null;}if(P6X == parseInt(P6X,10)){P6X=parseInt(P6X,10);if(p1v.periodicity < 1 / 60){y10="mil";y10+="l";y10+="isecon";y10+="d";B81=B81 * P6X * 60000;P6X=y10;}else if(p1v.periodicity < 1){Z4S="s";Z4S+="econd";B81=B81 * P6X * 60;P6X=Z4S;}else {B81=B81 * P6X;P6X="minute";}}if(p1v.timeUnit){U7i="secon";U7i+="d";M7n="mill";M7n+="isecond";if(p1v.timeUnit === M7n){P6X=p1v.timeUnit;}else if(p1v.timeUnit === U7i){P6X=p1v.timeUnit;}else if(p1v.timeUnit === "tick"){P6X="second";}}if(P6X == "tick")P6X="second";p1v.interval=P6X;p1v.multiple=B81;p1v.market=this;return new y8h.Market.Iterator(p1v);};y8h.Market.prototype._wasOpenDaily=function(N6c){return this._was_open(N6c,![]);};y8h.Market.prototype._wasOpenIntraDay=function(K1a){return this._was_open(K1a,!!({}));};y8h.Market.prototype._was_open=function(X_4,O15){var L$6,S_d,U9s,S7C,g5K,Q5Q,f_8,C1w,L6p,b6d,M0b,Y7_,I96;L$6=this.zseg_match;this.zopen_hour=0;this.zopen_minute="0" ^ 0;this.zclose_hour=0;this.zclose_minute=0;this.zmatch_open=!({});this.zseg_match=null;if(!this.market_def || !this.rules){this.zclose_hour=24;return !!"1";}S_d=!!"";U9s=!!0;S7C=X_4.getFullYear();g5K=X_4.getMonth() + 1;Q5Q=X_4.getDay();s4_.a9S();f_8=X_4.getDate();C1w=X_4.getHours();L6p=X_4.getMinutes();b6d=X_4.getSeconds();Y7_=C1w * 60 * +"60" + L6p * 60 + b6d;if(typeof O15 === "undefined"){O15=!![];}for(I96=0;I96 < this.normalHours.length;I96++){M0b=this.normalHours[I96];if(!M0b.enabled){continue;}S_d=M0b.dayofweek === Q5Q;if(S_d && O15){S_d=Y7_ >= M0b.open && Y7_ < M0b.close;}if(S_d){if(!O15 && this.zseg_match){if(M0b.open_parts.hours > this.zopen_hour || M0b.open_parts.hours == this.zopen_hour && M0b.open_parts.minutes > this.zopen_minute){continue;}}if(M0b !== L$6 && !M0b.adjacent_parent && !M0b.adjacent_child){this.shouldResetToBeginningOfSegment=!!({});}this.zopen_hour=M0b.open_parts.hours;this.zopen_minute=M0b.open_parts.minutes;this.zclose_hour=M0b.close_parts.hours;this.zclose_minute=M0b.close_parts.minutes;this.zmatch_open=Y7_ === M0b.open;this.zseg_match=M0b;if(O15)break;}}for(I96=+"0";I96 < this.extraHours.length;I96++){M0b=this.extraHours[I96];if(!M0b.enabled){continue;}if((1455 < (+"1540",9585)?"2638" >> 0 < (327.75,6113)?(6009,988.33) > +"839.81"?"*":"X":!!"":![]) === M0b.year || S7C === M0b.year){if(g5K === M0b.month && f_8 === M0b.day){U9s=!O15 && M0b.open || Y7_ >= M0b.open && Y7_ < M0b.close;if(!U9s && this.zseg_match){S_d=![];this.zopen_hour=0;this.zopen_minute=0;this.zclose_hour=0;this.zclose_minute="0" * 1;this.zmatch_open=!!"";this.zseg_match=null;}if(U9s){if(!O15 && this.zseg_match){if(M0b.open_parts.hours > this.zopen_hour || M0b.open_parts.hours == this.zopen_hour && M0b.open_parts.minutes > this.zopen_minute){continue;}}this.zopen_hour=M0b.open_parts.hours;this.zopen_minute=M0b.open_parts.minutes;this.zclose_hour=M0b.close_parts.hours;this.zclose_minute=M0b.close_parts.minutes;this.zmatch_open=Y7_ === M0b.open;this.zseg_match=M0b;if(O15)break;}}}}return this.zseg_match;};y8h.Market.prototype._wasClosed=function(A6m){return !this._was_open(A6m,!!"1");};y8h.Market.prototype._wasOpen=function(C_A){return this._was_open(C_A,!!({}));};y8h.Market.prototype._tzDifferenceMillis=function(G0M,I0_,U1y){var f_E,f_a,t8u,t0c;f_E=0;f_a=G0M;t8u=G0M;t0c=f_a.getTimezoneOffset() - t8u.getTimezoneOffset();f_E=t0c * 60 * 1000;return f_E;};y8h.Market._createTimeSegments=function(f3z){var a_f,t1e,V_B,L0y,c0b,o5b,Z5u,z9T,w8j;a_f=function(e3l,U$N){s4_.D0H();if(e3l.close_parts.hours === 24 && U$N.open_parts.hours === 0){if(U$N.open_parts.minutes === ("0" ^ 0)){if(t1e.dayofweek === z9T.dayofweek - 1){return !!1;}if(t1e.dayofweek === 6 && z9T.dayofweek === "0" >> 0){return !!({});}}}return !!0;};for(var O4o=0;O4o < f3z.rules.length;O4o++){V_B="n";V_B+="a";V_B+="m";V_B+="e";L0y="und";L0y+="efine";L0y+="d";c0b=JSON.parse(JSON.stringify(f3z.rules[O4o]));if(typeof c0b.open === L0y && typeof c0b.close === "undefined"){o5b="0";o5b+="0:";o5b+="00";c0b.open="00:00";c0b.close=o5b;}if(!c0b.hasOwnProperty(V_B)){c0b.name="";}try{Z5u="und";Z5u+="ef";Z5u+="i";Z5u+="ned";if(typeof c0b.dayofweek !== Z5u){c0b.year="*";z9T=u4k._createDayOfWeekSegment(f3z,c0b);if(t1e){if(t1e.dayofweek === z9T.dayofweek){t1e.child_=z9T;z9T.parent_=t1e;}else {if(a_f(t1e,z9T)){t1e.adjacent_child=z9T;z9T.adjacent_parent=t1e;}}}t1e=z9T;}else if(typeof c0b.date !== "undefined"){c0b.isDayOfWeek=!"1";c0b.dayofweek=-("1" ^ 0);z9T=u4k._createDateTimeSegment(f3z,c0b);}else {console.log("Error, unknown rule type " + c0b);}if(f3z.enabled_by_default){for(var C3X=0;C3X < f3z.enabled_by_default.length;C3X++){w8j=f3z.enabled_by_default[C3X];if(z9T.name === w8j){z9T.enabled=!![];break;}}}else {;}}catch(z5W){var Q_4;Q_4="Error, creating market ru";Q_4+="les ";console.log(Q_4 + z5W);}}};y8h.Market._timeSegment={};u4k=y8h.Market._timeSegment;u4k.re_wild_card_iso=/^(\*)-(\d\d)-(\d\d)$/;u4k.re_regular_iso=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;u4k.re_split_hours_minutes=/^(\d\d):(\d\d)$/;u4k.re_split_hour_minutes=/^(\d):(\d\d)$/;u4k._hashCode=function(S9M){var X3$,r33,u_U,Y$4;X3$=+"0";if(S9M.length === +"0")return X3$;for((r33=0,Y$4=S9M.length);r33 < Y$4;r33++){u_U=S9M.charCodeAt(r33);X3$=(X3$ << 5) - X3$ + u_U;X3$|=0;;}return X3$;};u4k._splitHoursMinutes=function(a4y){var s9m,c4Q;s9m=u4k.re_split_hour_minutes.exec(a4y);c4Q={hours:NaN,minutes:NaN};if(s9m === null){s9m=u4k.re_split_hours_minutes.exec(a4y);if(s9m === null){return c4Q;}}c4Q.hours=parseInt(s9m[1],10);c4Q.minutes=parseInt(s9m[2],10);return c4Q;};u4k._createDayOfWeekSegment=function(T76,d21){var J7L;J7L={name:d21.name,isDayOfWeek:!!({}),dayofweek:d21.dayofweek,date_str:(602.3,378) > 6960?0xc30:"*",open_parts:u4k._splitHoursMinutes(d21.open),close_parts:u4k._splitHoursMinutes(d21.close),open:u4k._secSinceMidnight(T76,d21.open,!![]),close:u4k._secSinceMidnight(T76,d21.close,!!0),child_:!({}),parent_:!1,adjacent_child:!({}),adjacent_parent:!!"",enabled:![]};if(J7L.name === ""){J7L.enabled=!!1;}J7L.hash_code=this._hashCode((J7L.open + J7L.close).toString());T76.normalHours.push(J7L);return J7L;};u4k._createDateTimeSegment=function(g1a,k0H){var H0i,v50,W6I;H0i=this.re_regular_iso.exec(k0H.date);if(H0i === null){H0i=this.re_wild_card_iso.exec(k0H.date);if(H0i === null){console.log("Warning: invalid date format on rule -> " + k0H.date);return;}v50=(8679,"987" >> 0) != ("7470" ^ 0,494)?+"4230" < (54,"3260" * 1)?"S":(774.92,4830) <= (5640,1340)?611.10:"*":5.17e+2;;}else {v50=parseInt(H0i[1],10);}W6I={name:k0H.name,isDayOfWeek:!({}),dayofweek:-1,year:v50,month:parseInt(H0i[2],10),day:parseInt(H0i["3" << 64],10),date_str:k0H.date,open_parts:u4k._splitHoursMinutes(k0H.open),close_parts:u4k._splitHoursMinutes(k0H.close),open:u4k._secSinceMidnight(g1a,k0H.open,!!"1"),close:u4k._secSinceMidnight(g1a,k0H.close,![]),enabled:![]};if(W6I.name === ""){W6I.enabled=!!1;}W6I.hash_key=this._hashCode(W6I.date_str + W6I.open + W6I.close);g1a.extraHours.push(W6I);return W6I;};u4k._secSinceMidnight=function(e_s,h$a,x4h){var F3u,b4p,a77,h$5;F3u=h$a.split(":");b4p=parseInt(F3u[0],10);a77=parseInt(F3u[1],"10" >> 64);h$5=b4p * 60 * 60 + a77 * 60;if(!x4h){if(b4p === 24){h$5=b4p * 60 * 60 + 1;}}return h$5;};y8h.Market.prototype._convertToMarketTZ=function(Z2J,A4E){var P7H,d98,p_h,r6f;if(A4E){P7H=new this.tz_lib(Z2J.getFullYear(),Z2J.getMonth(),Z2J.getDate(),Z2J.getHours(),Z2J.getMinutes(),Z2J.getSeconds(),Z2J.getMilliseconds(),A4E);}else {d98=-1229625172;p_h=807487669;r6f=2;for(var S6I=+"1";s4_.Z2Z(S6I.toString(),S6I.toString().length,50758) !== d98;S6I++){P7H=new this.tz_lib(Z2J.getFullYear(),Z2J.getMonth(),Z2J.getDate(),Z2J.getHours(),Z2J.getMinutes(),Z2J.getSeconds(),Z2J.getMilliseconds());r6f+=+"2";}if(s4_.U6$(r6f.toString(),r6f.toString().length,52538) !== p_h){P7H=new this.tz_lib(Z2J.getFullYear(),Z2J.getMonth(),Z2J.getDate(),Z2J.getHours(),Z2J.getMinutes(),Z2J.getSeconds(),Z2J.getMilliseconds());}}if(P7H.setTimezone)P7H.setTimezone(this.market_tz);return new Date(P7H.getFullYear(),P7H.getMonth(),P7H.getDate(),P7H.getHours(),P7H.getMinutes(),P7H.getSeconds(),P7H.getMilliseconds());};y8h.Market.prototype._convertFromMarketTZ=function(j2R,Q27){s4_.D0H();var n3U;n3U=new this.tz_lib(j2R.getFullYear(),j2R.getMonth(),j2R.getDate(),j2R.getHours(),j2R.getMinutes(),j2R.getSeconds(),j2R.getMilliseconds(),this.market_tz);if(Q27){if(n3U.setTimezone)n3U.setTimezone(Q27);}else {return new Date(n3U.getTime());}return new Date(n3U.getFullYear(),n3U.getMonth(),n3U.getDate(),n3U.getHours(),n3U.getMinutes(),n3U.getSeconds(),n3U.getMilliseconds());};y8h.Market.Iterator=function(G5H){this.market=G5H.market;this.begin=G5H.begin;this.interval=G5H.interval;this.multiple=G5H.multiple;this.inZone=G5H.inZone;this.outZone=G5H.outZone;this.clock=new y8h.Market.Iterator._Clock(G5H.market,G5H.interval,G5H.multiple);this.intraDay=this.clock.intra_day;if(this.intraDay)this.begin=this.market._convertToMarketTZ(this.begin,G5H.inZone);this.clock._setStart(this.begin);this.clock.minutes_aligned=![];};y8h.Market.Iterator.prototype.date=function(){return this.clock._date();};y8h.Market.Iterator.prototype.futureTick=function(y7F){var x56,o5e,n3Z,Y4u,G_e,A_4,t1X,l62,z7A;this.clock.skip=1;x56=0;if(this.intraDay)o5e=this.market._convertToMarketTZ(y7F.end,this.inZone).getTime();else o5e=y7F.end.getTime();n3Z=this.clock.ctime;if(o5e === n3Z){return x56;}Y4u=2;G_e=+"1000";A_4=0;if(y7F.sample_size){Y4u=y7F.sample_size;}t1X=new Date().getTime();if(o5e > n3Z){this.clock.forward=!0;while(this.clock.ctime < o5e){x56+="1" ^ 0;A_4+=1;this.clock._findNext();if(A_4 === G_e){A_4=0;l62=new Date().getTime();if(l62 - t1X >= Y4u){z7A=(this.clock.ctime - n3Z) / x56;x56=Math.floor((o5e - n3Z) / z7A);break;}}}if(this.clock.ctime > o5e){x56--;}}else {this.clock.forward=![];while(this.clock.ctime > o5e){x56+=1;A_4+=1;this.clock._findPrevious();if(A_4 === G_e){A_4=0;l62=new Date().getTime();if(l62 - t1X >= Y4u){z7A=(n3Z - this.clock.ctime) / x56;x56=Math.floor((n3Z - o5e) / z7A);break;}}}}return x56;};y8h.Market.Iterator.prototype.isHourAligned=function(){s4_.a9S();return !this.intraDay || this.market.isHourAligned();};y8h.Market.Iterator.prototype.isOpen=function(){return this.market.isOpen();};y8h.Market.Iterator.prototype.next=function(e$F){this.clock.skip=1;if(e$F){this.clock.skip=e$F;}s4_.a9S();this.clock.forward=!0;for(var T_y=+"0";T_y < this.clock.skip;T_y++){this.begin=this.clock._findNext();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};y8h.Market.Iterator.prototype.peek=function(){s4_.a9S();return this.clock._peek();};y8h.Market.Iterator.prototype.previous=function(h2p){this.clock.skip=1;s4_.D0H();if(h2p){this.clock.skip=h2p;}this.clock.forward=![];for(var D5v=0;D5v < this.clock.skip;D5v++){this.begin=this.clock._findPrevious();}if(this.intraDay || this.market.convertOnDaily){return this.market._convertFromMarketTZ(this.clock.display_date,this.outZone);}return this.clock.display_date;};y8h.Market.Iterator._Clock=function(u47,s8f,Z4q){var S1N,A$k,G0Q,r9s,Y$E;S1N="millise";S1N+="cond";A$k="s";A$k+="e";A$k+="con";A$k+="d";if(Z4q % +"60" === 0 && s8f === A$k){G0Q="m";G0Q+="inute";s8f=G0Q;Z4q=Z4q / 60;}this.market=u47;this.interval=s8f;this.multiple=Z4q;this.intra_day=![];this.intervals=[];this.max_iters=+"10080";r9s=a84;Y$E=this._dayImpl;if(s8f === S1N){Y$E=this._millisImpl;r9s=1;}else if(s8f === "second"){Y$E=this._secondImpl;r9s=1000;}else if(s8f === "minute"){Y$E=this._minuteImpl;r9s=60000;}else if(s8f === "hour"){Y$E=this._hourImpl;r9s=h3x;}else if(s8f === "day"){Y$E=this._dayImpl;r9s=a84;}else if(s8f === "week"){Y$E=this._weekImpl;r9s=a84 * 7;}else if(s8f === "month"){Y$E=this._monthImpl;r9s=a84 * 30;}else {console.log('Periodicity ERROR: "' + s8f + '" is not a valid interval. Please see setPeriodicity() for details.');}this.tick_time=r9s * Z4q;this.intra_day=this.tick_time < a84;this._findPrevious=this._findNext=Y$E;};F48=y8h.Market.Iterator._Clock.prototype;F48._total_minutes=function(X4_,d2U,f3a,a3d){return (f3a - X4_) * ("60" - 0) - d2U + a3d;};F48._alignMinutes=function(){var J1_,S9O,B4l,e6z,B24;if(!this.market.market_def || this.market.zopen_minute === undefined){return [];}J1_=this.market.zopen_minute;S9O=this.market.zseg_match;if(S9O && S9O.adjacent_parent){J1_=S9O.adjacent_parent.open / 60 - +"1440";}else {if(this.market.isHourAligned() && this.multiple % 60 === 0)J1_=0;}s4_.a9S();B4l=this._total_minutes(this.market.zopen_hour,J1_,this.market.zclose_hour,this.market.zclose_minute);e6z=[];B24=0;while(B24 < B4l){e6z.push(J1_ + B24);B24+=this.multiple;}return e6z;};F48._alignBaseZero=function(K7l){var D2Z,l9v;D2Z=0;l9v=[D2Z];while(!![]){D2Z+=this.multiple;if(D2Z >= K7l){break;}l9v.push(D2Z);}return l9v;};F48._date=function(){var n0h,i3N;n0h=Math.round(this.ctime);i3N=new Date(n0h);s4_.D0H();if(this.intra_day){this.display_date=new Date(n0h + this.shift_millis);}else {this.display_date=i3N;}return i3N;};F48._alignToBoundary=function(O7J,n2Q){var j6X,d87,H7u;j6X=0;d87=+"0";H7u=n2Q;for(var B9Q=0;B9Q < O7J.length - 1;B9Q++){j6X=O7J[B9Q];d87=O7J[B9Q + 1];if(n2Q === j6X || n2Q === d87){break;;}if(n2Q > j6X && n2Q < d87){H7u=j6X;break;}else if(B9Q + 1 === O7J.length - 1){H7u=d87;}}s4_.a9S();return H7u;};F48._peek=function(){return this._date().toString();};F48._seekHr=function(){if(this.forward){this.ctime-=h3x;}else {this.ctime+=h3x;}};F48._setStart=function(P1N){var r0g,P1C;r0g=this.market._tzDifferenceMillis(P1N);P1C=new Date(P1N.getTime() + r0g);this.shift_millis=r0g;this.ctime=P1C.getTime();this.shift_millis=0;this.ctime=P1N.getTime();};F48._tickTock=function(){s4_.a9S();if(this.forward){this.ctime+=this.tick_time;}else {this.ctime-=this.tick_time;}};F48._tockTick=function(){s4_.D0H();if(this.forward){this.ctime-=this.tick_time;}else {this.ctime+=this.tick_time;}};F48._tickTock24=function(){s4_.a9S();this.ctime+=a84;};F48._tockTick24=function(){this.ctime-=a84;};F48._windMaybe=function(Y8_,t26){var S96,p7A,Y3c,D0$;S96=0;p7A=new Date(this.ctime);s4_.a9S();Y3c=![];while(!Y8_.call(this.market,p7A)){t26.call(this);Y3c=!![];p7A=new Date(this.ctime);S96+=1;if(S96 > this.max_iters){D0$="Warning! max iterations (" + this.max_iters;D0$+=") reached with no rule match.";console.log(D0$);break;}}return Y3c;};F48._millisImpl=function(){var X1v,K93,w98,s_5,a03,i5m,F9e,e91,S0z,Z8B;X1v=!"1";if(!this.mperiods_aligned){K93=this._alignBaseZero(1000);w98=new Date(this.ctime);s_5=w98.getMilliseconds();s_5=this._alignToBoundary(K93,s_5);w98.setMilliseconds(0);this.ctime=w98.getTime() + s_5;this.mperiods_aligned=!!"1";X1v=!![];}a03=this._date().getMinutes();this._tickTock();i5m=this._date().getMinutes();if((X1v || a03 != i5m) && !this.market._wasOpenIntraDay(this._date())){F9e=this._date().getSeconds();e91=this._date().getMilliseconds();S0z=this.tick_time;this.tick_time="60000" | 0;Z8B=this.multiple;this.multiple="1" * 1;this._minuteImpl();this.tick_time=S0z;this.multiple=Z8B;this.ctime+="1000" * 1 * F9e + e91;}return this._date();};F48._secondImpl=function(){var u8a,a5Y,b6_,L7D,g63,S_q,i9b,o$f,M4t;u8a=![];if(!this.speriod_aligned){a5Y=this._alignBaseZero(60);b6_=new Date(this.ctime);L7D=b6_.getSeconds();L7D=this._alignToBoundary(a5Y,L7D);b6_.setSeconds(L7D);b6_.setMilliseconds(0);this.ctime=b6_.getTime();this.speriod_aligned=!!1;u8a=!![];}g63=this._date().getMinutes();this._tickTock();S_q=this._date().getMinutes();if((u8a || g63 != S_q) && !this.market._wasOpenIntraDay(this._date())){i9b=this._date().getSeconds();o$f=this.tick_time;this.tick_time=60000;M4t=this.multiple;this.multiple="1" * 1;this._minuteImpl();this.tick_time=o$f;this.multiple=M4t;this.ctime+=1000 * i9b;}return this._date();};F48._minuteImpl=function(){var R_H,T_1,m$s,h3d,z9c,o8h,i9X,Q1j,Q5x,t0S;R_H=this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);T_1=new Date(this.ctime);m$s=T_1.getTimezoneOffset();h3d=T_1.getMinutes();z9c=T_1.getHours();o8h=this._alignMinutes();i9X=this._total_minutes(this.market.zopen_hour,this.market.zopen_minute,z9c,h3d) + this.market.zopen_minute;if(R_H){if(this.forward){i9X=o8h[o8h.length - 1];}else {i9X=o8h[0];}}else {i9X=this._alignToBoundary(o8h,i9X);}z9c=Math.floor(i9X / 60) + this.market.zopen_hour;T_1.setHours(z9c,i9X % 60,0,0);Q1j=T_1.getTimezoneOffset() - m$s;if(this.forward && Q1j < 0 || !this.forward && Q1j > 0){T_1.setTime(T_1.getTime() - Q1j * ("60000" >> 64));}this.ctime=T_1.getTime();this._tickTock();Q5x=this.market.hour_aligned && this.multiple % 60 === 0;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !Q5x && this.shouldResetToBeginningOfSegment){T_1=new Date(this.ctime);if(this.forward){T_1.setMinutes(this.market.zopen_minute);T_1.setHours(this.market.zopen_hour);}else {o8h=this._alignMinutes();t0S=o8h[o8h.length - 1];T_1.setMinutes(t0S % +"60");T_1.setHours(Math.floor(t0S / 60) + this.market.zopen_hour);}this.ctime=T_1.getTime();}s4_.a9S();return this._date();};F48._hourImpl=function(){var l6k,s51,G4j,W0d,w8M;this._windMaybe(this.market._wasOpenIntraDay,this._tockTick);l6k=new Date(this.ctime);if(this.market.isHourAligned()){l6k.setMinutes("0" << 32);}else {l6k.setMinutes(this.market.zopen_minute);}l6k.setSeconds(+"0");l6k.setMilliseconds(0);this.ctime=l6k.getTime();this._tickTock();s51=this.market.zseg_match;if(this._windMaybe(this.market._wasOpenIntraDay,this._tickTock) || !this.market.hour_aligned && s51 != this.market.zseg_match){G4j=new Date(this.ctime);if(this.forward){G4j.setMinutes(this.market.zopen_minute);G4j.setHours(this.market.zopen_hour);}else {W0d=this._alignMinutes();w8M=W0d[W0d.length - 1];G4j.setMinutes(w8M % +"60");G4j.setHours(Math.floor(w8M / 60) + this.market.zopen_hour);}this.ctime=G4j.getTime();}return this._date();};F48._dayImpl=function(){var w0A,G4M;this._windMaybe(this.market._wasOpenDaily,this._seekHr);w0A=new Date(this.ctime);w0A.setHours(12,0,0,+"0");this.ctime=w0A.getTime();G4M=0;while(G4M < this.multiple){if(this.forward){this._tickTock24();}else {this._tockTick24();}if(!this.market._wasOpenDaily(this._date())){continue;}G4M+=1;}w0A=new Date(this.ctime);s4_.D0H();w0A.setHours("0" >> 0);this.ctime=w0A.getTime();return this._date();};F48._weekImpl=function(){var I_A,b2r;I_A=this.market;b2r=new Date(this.ctime);b2r.setHours(12);this.ctime=b2r.getTime();this._tickTock();b2r=new Date(this.ctime);while(b2r.getDay() !== I_A.beginningDayOfWeek){this._tockTick24();b2r=new Date(this.ctime);}this._windMaybe(I_A._wasOpenDaily,this._tickTock24);b2r=new Date(this.ctime);b2r.setHours(0,+"0","0" - 0,"0" >> 64);this.ctime=b2r.getTime();return this._date();};F48._monthImpl=function(){var o77;o77=new Date(this.ctime);o77.setDate(15);this.ctime=o77.getTime();this._tickTock();o77=new Date(this.ctime);o77.setDate(1);o77.setHours(12);this.ctime=o77.getTime();this._windMaybe(this.market._wasOpenDaily,this._tickTock24);o77=new Date(this.ctime);o77.setHours(0,0,0,0);this.ctime=o77.getTime();return this._date();};F48._findNext=null;F48._findPrevious=null;};J=z$Y=>{var i4J=A2IFV;i4J.W9l=function(L39){if(i4J && L39)return i4J.b3E(L39);};i4J.t8k=function(D04){if(i4J && D04)return i4J.T36(D04);};i4J.p$N=function(s2O){if(i4J)return i4J.T36(s2O);};i4J.T8d=function(a3I){i4J.a9S();if(i4J)return i4J.T36(a3I);};var Z3w,i1g,u42,A2d;Z3w="u";Z3w+="ndefined";i1g=typeof _CIQ !== Z3w?_CIQ:z$Y.CIQ;i4J.D0H();u42="valid";i1g.valid=0;i1g[i4J.N1F("b2c4")?"ChartEngine":""][i4J.k2l("7ffa")?"prototype":""][i4J.T8d("4161")?"":"mousemoveinner"]=function(d_T,z$Z){i4J.Z8y=function(N7u){i4J.a9S();if(i4J && N7u)return i4J.b3E(N7u);};i4J.h$W=function(a$u){i4J.D0H();if(i4J)return i4J.T36(a$u);};i4J.E_H=function(S6t){i4J.a9S();if(i4J)return i4J.b3E(S6t);};i4J.W8S=function(r6k){if(i4J && r6k)return i4J.T36(r6k);};i4J.T88=function(e0o){if(i4J)return i4J.T36(e0o);};var D9k=-(i4J.D$Y("92a7")?844542962:324290841),z0f=-(i4J.p$N("1a74")?3302050485:1048811085),w7X=i4J.T88("1c18")?8315121327:1094513846,q1Q=-(i4J.t8k("3be7")?457334356:220651779),m76=-(i4J.e3H("4bf3")?203811305:160172757),R_8=938329254,t_6=-(i4J.W8S("13c3")?841488028:606335826),K3U=-(i4J.Q6a("97be")?1125489557:9123140606),G2J=-(i4J.a3z("c2a4")?456310199:119647035),u_G=-1009981692;if(!(i4J.n54(0,false,156439) !== D9k && i4J.i0k(0,false,i4J.W9l("847a")?943323:752378) !== z0f && i4J.i0k(i4J.E_H("a9aa")?9:3,i4J.h$W("5ec6")?true:false,773926) !== w7X && i4J.i0k(i4J.Z8y("1f8c")?1:9,true,690418) !== q1Q && i4J.i0k(8,true,312995) !== m76 && i4J.i0k(10,true,301501) !== R_8 && i4J.i0k(9,true,915786) !== t_6 && i4J.i0k(9,true,934133) !== K3U && i4J.i0k(10,true,326031) !== G2J && i4J.i0k(8,true,619256) !== u_G)){var j15,k_H,B1H,V1n,Q0x,C3z,l4E,v4o,P4w,r5F,S39,X1D,h2_,f6b,H_s,z_W,z_C,V$C,t9L,y$8,I8b,t1K,u12,B8s,x2p,D4y,u3$,k4o,I_b;if(!this["chart"]["canvas"]){return;}if(!i1g["isAndroid"] && !i1g["isIOS7or8"]){if(this["chart"]["canvas"]["height"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientHeight"]) || this["chart"]["canvas"]["width"] != Math["floor"](this["devicePixelRatio"] * this["chart"]["container"]["clientWidth"])){this["resizeChart"]();return;}}if(this["runPrepend"]("mousemoveinner",arguments)){return;}k_H=arguments;B1H=this["container"]["getBoundingClientRect"]();this["top"]=B1H["top"];this["left"]=B1H["left"];this["right"]=this["left"] + this["width"];this["bottom"]=this["top"] + this["height"];this["hasDragged"]=!!"1";i1g["ChartEngine"]["crosshairX"]=d_T;i1g["ChartEngine"]["crosshairY"]=z$Z;V1n=this["cy"]=this["crossYActualPos"]=this["backOutY"](i1g["ChartEngine"]["crosshairY"]);function h$l(j2r){var c_X=993328910,h2u=2095898763,W7u=582624611,z_6=-1720030956,b0F=1778808651,n2x=1110901479,v3Q=-1633607308,T3p=-497724238,r3l=-1857759905,o$F=-2061065206;if(!(i4J.i0k(0,false,604262) !== c_X && i4J.i0k(0,false,895612) !== h2u && i4J.i0k(9,true,614852) !== W7u && i4J.n54(9,true,939183) !== z_6 && i4J.i0k(8,true,249190) !== b0F && i4J.i0k(10,true,641023) !== n2x && i4J.n54(9,true,872180) !== v3Q && i4J.i0k(9,true,541880) !== T3p && i4J.i0k(10,true,296497) !== r3l && i4J.i0k(8,true,123661) !== o$F)){var F7Y,U0c,e9q;j2r["currentBaseline"]=null;F7Y=-1073236151;i4J["H6P"](21);U0c=-i4J["S40"]("1654866714",0);i4J["D0J"](21);e9q=i4J["S40"]("2",0);for(var t3l=1;i4J["U6$"](t3l["toString"](),t3l["toString"]()["length"],47096) !== F7Y;t3l++){j2r["runAppend"]("",k_H);i4J["H6P"](28);e9q+=i4J["q7n"]("2",64);}if(i4J["Z2Z"](e9q["toString"](),e9q["toString"]()["length"],20404) !== U0c){j2r["runAppend"]("mousemoveinner",k_H);}}}Q0x=this["cx"]=this["crossXActualPos"]=this["backOutX"](i1g["ChartEngine"]["crosshairX"]);if(this["grabbingScreen"] && this["anyHighlighted"]){i4J["D0J"](93);var Z4B=i4J["S40"](5762,17,16,16,20);i4J["D0J"](94);var x0v=i4J["q7n"](9,17,7,13,16);C3z=Math["pow"](this["grabStartX"] - d_T,Z4B) + Math["pow"](this["grabStartY"] - z$Z,x0v);if(C3z < 36){return;}}this["cancelLongHold"]=!0;l4E=function(f1T,t1V){var E0L=-1375377331,r6v=1709747795,g30=2101416112,S0y=1473004637,V2$=-570364054,K26=485238424,Z82=-277515614,X$4=-720212561,c_P=-156853376,L$G=-2142817629;if(!(i4J.n54(0,false,988309) !== E0L && i4J.n54(0,false,512672) !== r6v && i4J.n54(9,true,285223) !== g30 && i4J.i0k(9,true,820859) !== S0y && i4J.i0k(8,true,386337) !== V2$ && i4J.n54(10,true,635588) !== K26 && i4J.n54(9,true,236778) !== Z82 && i4J.i0k(9,true,691052) !== X$4 && i4J.i0k(10,true,438322) !== c_P && i4J.i0k(8,true,996088) !== L$G)){if(i1g[u42] === 0){return f1T["whichPanel"](t1V) || f1T["chart"]["panel"];}if(!f1T["draw"][u42]){f1T["draw"]=function(){i4J.a9S();var h_w=2137621837,Z$1=-1316499516,D8N=77316148,N7P=-1276284452,j4Q=-1949278359,e0O=1330680705,P6S=-695431039,D$Z=1589160700,W0f=-1223308209,z5D=-2139150734;if(i4J.i0k(0,false,161315) === h_w || i4J.i0k(0,false,272674) === Z$1 || i4J.n54(9,true,116838) === D8N || i4J.n54(9,true,799075) === N7P || i4J.n54(8,true,694869) === j4Q || i4J.n54(10,true,213141) === e0O || i4J.n54(9,true,525393) === P6S || i4J.n54(9,true,834294) === D$Z || i4J.i0k(10,true,855574) === W0f || i4J.i0k(8,true,619691) === z5D){i1g["clearCanvas"](this["chart"]["canvas"],this);}};f1T["draw"][u42]=!"";}}};this["currentPanel"]=l4E(this,V1n);if(!this["currentPanel"]){return;}v4o=this["currentPanel"]["chart"];if(v4o["dataSet"]){this["crosshairTick"]=this["tickFromPixel"](Q0x,v4o);j15=this["valueFromPixel"](V1n,this["currentPanel"]);this["crosshairValue"]=this["adjustIfNecessary"](this["currentPanel"],this["crosshairTick"],j15);P4w=this["currentPanel"]["name"] == "chart"?this["preferences"]["horizontalCrosshairField"]:this["currentPanel"]["horizontalCrosshairField"];if(P4w && this["crosshairTick"] < v4o["dataSet"]["length"] && this["crosshairTick"] > -1){j15=v4o["dataSet"][this["crosshairTick"]][P4w];this["crossYActualPos"]=this["pixelFromPrice"](j15,this["currentPanel"]);}}if(i1g["ChartEngine"]["crosshairX"] >= this["left"] && i1g["ChartEngine"]["crosshairX"] <= this["right"] && i1g["ChartEngine"]["crosshairY"] >= this["top"] && i1g["ChartEngine"]["crosshairY"] <= this["bottom"]){this["insideChart"]=!![];}else {this["insideChart"]=!!0;}r5F=this["xAxisAsFooter"] === !![]?this["chart"]["canvasHeight"]:this["chart"]["panel"]["bottom"];this["overXAxis"]=this["insideChart"] && i1g["ChartEngine"]["crosshairY"] <= r5F + this["top"] && i1g["ChartEngine"]["crosshairY"] > r5F - this["xaxisHeight"] + this["top"];this["overYAxis"]=(this["cx"] >= this["currentPanel"]["right"] || this["cx"] <= this["currentPanel"]["left"]) && this["insideChart"];if(this["overXAxis"] || this["overYAxis"] || !this["insideChart"] && !this["grabbingScreen"]){this["undisplayCrosshairs"]();if(!this["overXAxis"] && !this["overYAxis"]){return;};}if(!this["displayCrosshairs"] && !i1g["ChartEngine"]["resizingPanel"]){this["undisplayCrosshairs"]();return;}if(this["repositioningBaseline"]){this["setBaselineUserLevel"]();return h$l(this);}if(this["repositioningAnchorSelector"]){S39=this["repositioningAnchorSelector"]["hoverTick"];X1D=this["tickFromPixel"](this["cx"],this["chart"]);if(X1D >= 0 && X1D < this["chart"]["dataSet"]["length"] && (!(S39 && S39 !== 0) || X1D !== S39)){this["repositioningAnchorSelector"]["hoverTick"]=X1D;this["draw"]();}return h$l(this);}if(this["grabbingScreen"] && !i1g["ChartEngine"]["resizingPanel"]){h2_="z";h2_+="oo";h2_+="m";f6b="p";f6b+="a";f6b+="n";if(this["highlightedDraggable"]){this["displayDragOK"](!!({}));this["dragPlotOrAxis"](Q0x,V1n);return h$l(this);}if(this["anyHighlighted"]){i1g["clearCanvas"](this["chart"]["tempCanvas"],this);this["anyHighlighted"]=!({});for(H_s in this["overlays"]){this["overlays"][H_s]["highlight"]=!!"";}for(H_s in v4o["series"]){v4o["series"][H_s]["highlight"]=![];}this["displaySticky"]();}if(this["grabStartX"] == -1){this["grabStartX"]=i1g["ChartEngine"]["crosshairX"];this["grabStartScrollX"]=v4o["scroll"];}if(this["grabStartY"] == -1){this["grabStartY"]=i1g["ChartEngine"]["crosshairY"];this["grabStartScrollY"]=this["currentPanel"]["yAxis"]["scroll"];}z_W=i1g["ChartEngine"]["crosshairX"] - this["grabStartX"];z_C=i1g["ChartEngine"]["crosshairY"] - this["grabStartY"];if(z_W === 0 && z_C === 0){return;}if(Math["abs"](z_W) + Math["abs"](z_C) > +"5"){this["grabOverrideClick"]=!"";}t9L=this["layout"]["candleWidth"];if(this["allowZoom"] && this["grabMode"] != f6b && (this["grabMode"]["indexOf"](h2_) === 0 || this["overXAxis"] || this["grabStartYAxis"])){y$8="z";y$8+="oom-";y$8+="y";if(this["grabMode"] === ""){I8b="zo";I8b+="o";I8b+="m";I8b+="-y";if(this["overXAxis"]){this["grabMode"]="zoom-x";}else if(this["grabStartYAxis"]){this["grabMode"]=I8b;}}if(this["grabMode"] == "zoom-x"){z_C=0;}else if(this["grabMode"] == y$8){z_W=0;}if(z_W){this["grabStartX"]=i1g["ChartEngine"]["crosshairX"];t1K=t9L - z_W / this["chart"]["maxTicks"];this["zoomSet"](t1K,this["chart"]);}if(this["layout"]["setSpan"]){this["layout"]["setSpan"]=null;this["changeOccurred"]("layout");}V$C=this["grabStartYAxis"];if(V$C){if(V$C["flipped"]){z_C*=-1;}V$C["zoom"]=Math["round"](this["grabStartZoom"] + z_C);if(this["grabStartZoom"] < V$C["height"]){if(V$C["zoom"] >= V$C["height"]){i4J["D0J"](16);var j2t=i4J["S40"](15,16);V$C["zoom"]=V$C["height"] - j2t;}}else {if(V$C["zoom"] <= V$C["height"]){i4J["D0J"](95);var B79=i4J["S40"](15,14,1);V$C["zoom"]=V$C["height"] + B79;}}}}else if(!this["overYAxis"]){this["dispatch"]("move",{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!""});if(this["allowScroll"]){u12="s";u12+="c";u12+="roll";B8s="p";B8s+="a";B8s+="n";if(Math["abs"](z_C) < this["yTolerance"]){if(!this["yToleranceBroken"]){i4J["H6P"](28);z_C=i4J["q7n"]("0",0);if(z_W === 0){return;}}}else {this["yToleranceBroken"]=!!"1";}if(!this["grabStartMicropixels"]){this["grabStartMicropixels"]=0;}this["grabMode"]=B8s;v4o["scroll"]=this["grabStartScrollX"];i4J["D0J"](7);var a9J=i4J["q7n"](75,80);i4J["D0J"](35);var z$g=i4J["S40"](3,8,0,20,83);this["micropixels"]=this["grabStartMicropixels"] + z_W * (this["shift"]?a9J:z$g);if(!this["lineTravelSpacing"]){while(this["micropixels"] > 0){this["micropixels"]-=t9L;v4o["scroll"]++;}while(this["micropixels"] < -t9L){this["micropixels"]+=t9L;v4o["scroll"]--;}}if(v4o["scroll"] >= v4o["maxTicks"]){this["preferences"]["whitespace"]=this["initialWhitespace"];}else {this["preferences"]["whitespace"]=(v4o["maxTicks"] - v4o["scroll"]) * t9L;}if(this["currentPanel"] == this["grabStartPanel"]){V$C=this["currentPanel"]["yAxis"];if(V$C["flipped"]){z_C*=-1;}V$C["scroll"]=this["grabStartScrollY"] + z_C;}this["dispatch"](u12,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"]});}}x2p=function(m6d){var G$6=1884413784,f0X=843305499,t95=-1828805273,z3G=-237356123,n9A=-416237720,D7P=-896677701,j3v=-2073281220,d85=-699202426,v7G=1224353024,U1v=-431992262;i4J.a9S();if(i4J.n54(0,false,344643) === G$6 || i4J.n54(0,false,248261) === f0X || i4J.n54(9,true,510641) === t95 || i4J.n54(9,true,537059) === z3G || i4J.n54(8,true,990150) === n9A || i4J.i0k(10,true,899186) === D7P || i4J.n54(9,true,420358) === j3v || i4J.i0k(9,true,117347) === d85 || i4J.i0k(10,true,899180) === v7G || i4J.n54(8,true,704648) === U1v){return function(){var p7Q=-1293231227,t9J=646952451,N9i=1991222530,B4y=963808928,T4Y=74811302,L4E=-1013306543,A0D=347559400,v0i=753282069,f2o=-1020650155,c0H=777206014;if(!(i4J.i0k(0,false,569305) !== p7Q && i4J.i0k(0,false,691864) !== t9J && i4J.n54(9,true,932806) !== N9i && i4J.n54(9,true,103712) !== B4y && i4J.n54(8,true,622995) !== T4Y && i4J.n54(10,true,895631) !== L4E && i4J.n54(9,true,438279) !== A0D && i4J.i0k(9,true,986995) !== v0i && i4J.n54(10,true,837758) !== f2o && i4J.i0k(8,true,898309) !== c0H)){m6d["draw"]();m6d["updateChartAccessories"]();}};}};if(i1g["ChartEngine"]["useAnimation"]){window["requestAnimationFrame"](x2p(this));}else {this["draw"]();this["updateChartAccessories"]();}if(this["activeDrawing"]){i1g["clearCanvas"](this["chart"]["tempCanvas"],this);this["activeDrawing"]["render"](this["chart"]["tempCanvas"]["context"]);this["activeDrawing"]["measure"]();}this["undisplayCrosshairs"]();return;}this["grabMode"]="";if(this["overXAxis"] || this["overYAxis"]){this["updateChartAccessories"]();if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}return h$l(this);;}if(this["controls"]["crossX"]){this["controls"]["crossX"]["style"]["left"]=this["pixelFromTick"](this["crosshairTick"],v4o) - 0.5 + "px";}if(this["controls"]["crossY"]){this["controls"]["crossY"]["style"]["top"]=this["crossYActualPos"] + "px";}if(this["insideChart"] && !i1g["ChartEngine"]["resizingPanel"]){D4y=this["currentVectorParameters"]["vectorType"];if(this["layout"]["studies"]){u3$=this["layout"]["studies"][this["currentPanel"]["name"]];if(u3$){if(!this["preferences"]["dragging"] || !this["preferences"]["dragging"]["study"]){delete this["overlays"][u3$["name"]];}if(D4y){this["overlays"][u3$["name"]]=u3$;}}}if(!i1g["Drawing"] || !D4y || !i1g["Drawing"][D4y] || !new i1g["Drawing"][D4y]()["dragToDraw"]){this["doDisplayCrosshairs"]();}this["updateChartAccessories"]();}else {this["undisplayCrosshairs"]();}if(this["magnetize"]){this["magnetize"]();}if(this["repositioningDrawing"]){this["repositionDrawing"](this["repositioningDrawing"]);}else if(i1g["ChartEngine"]["drawingLine"]){if(this["activeDrawing"]){k4o=this["panels"][this["activeDrawing"]["panelName"]];j15=this["adjustIfNecessary"](k4o,this["crosshairTick"],this["valueFromPixel"](this["backOutY"](i1g["ChartEngine"]["crosshairY"]),k4o));if(this["magnetizedPrice"] && k4o["name"] == this["currentPanel"]["name"]){j15=this["adjustIfNecessary"](k4o,this["crosshairTick"],this["magnetizedPrice"]);}if(this["magnetizedPrice"] === null){i1g["clearCanvas"](this["chart"]["tempCanvas"],this);}this["activeDrawing"]["move"](this["chart"]["tempCanvas"]["context"],this["crosshairTick"],j15);if(this["activeDrawing"]["measure"]){this["activeDrawing"]["measure"]();}}}else if(i1g["ChartEngine"]["resizingPanel"]){this["resizePanels"]();}if(this["insideChart"]){I_b="m";I_b+="ove";this["dispatch"](I_b,{stx:this,panel:this["currentPanel"],x:this["cx"],y:this["cy"],grab:!!0});if(!this["tapForHighlighting"] || !this["touchingEvent"] || this["anyHighlighted"]){this["findHighlights"]();}}return h$l(this);}};i1g.ChartEngine.prototype.swipeStart=function(z9t){var e3q;if(this.swipe && this.swipe.interval){clearInterval(this.swipe.interval);}this.swipe.velocity=0;this.swipe.amplitude=0;this.swipe.frame=z9t.scroll;this.swipe.micropixels=this.micropixels;this.swipe.timestamp=Date.now();this.swipe.chart=z9t;this.swipe.end=!!"";this.swipe.timeConstant=325;this.swipe.cb=null;e3q=this;requestAnimationFrame(function(){i4J.a9S();e3q.swipeSample();});};i1g.ChartEngine.prototype.swipeSample=function(){var b7W,A$X,U0r,V8m,O1w,A1K,G4S,j97,g6y;b7W=this.swipe;if(b7W.end){return;}A$X=this;G4S=+"20";U0r=Date.now();V8m=U0r - b7W.timestamp;if(V8m < G4S){requestAnimationFrame(function(){i4J.D0H();A$X.swipeSample();});return;}j97=i1g.touchDevice?0.4:0.8;b7W.timestamp=U0r;O1w=(b7W.chart.scroll - b7W.frame) * this.layout.candleWidth + this.micropixels - b7W.micropixels;b7W.frame=b7W.chart.scroll;b7W.micropixels=this.micropixels;i4J.D0J(96);A1K=i4J.S40(1000,1,O1w,V8m);g6y=j97 * A1K + 0.2 * b7W.velocity;if(Math.abs(g6y) > Math.abs(b7W.velocity)){b7W.velocity=g6y;}if(Math.abs(O1w) < +"6"){b7W.velocity=0;;}i4J.a9S();requestAnimationFrame(function(){A$X.swipeSample();});};i1g.ChartEngine.prototype.swipeRelease=function(){var h2e,B1n;h2e=this.swipe;if(h2e.velocity > 3000){h2e.velocity=3000;}if(h2e.velocity < -3000){h2e.velocity=-3000;}i4J.D0H();if(h2e.velocity > 10 || h2e.velocity < -10){h2e.amplitude=("0.8" - 0) * h2e.velocity;h2e.scroll=h2e.chart.scroll;h2e.target=h2e.amplitude;h2e.timestamp=Date.now();B1n=this;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}requestAnimationFrame(function(){i4J.a9S();B1n.autoscroll();});}};i1g.ChartEngine.prototype.dragPlotOrAxis=function(g1Z,P8g){var f1G,i6W,v2d,n7p,j3G,W0O,n1B,A3A,Y2F,V30,O8c,K11,J8s,O_i,u9g,t$Y,i53,C4i,X4l,L9L,a1l,K8c,f31,w1K,c7h,B4k,t8V,H6U,e9x,R_X,a13,d3R,z2T,C15,r_x,i0y,G1n,m3s,j_S,W$l,C4p,z7r,w4G,g2r,n4V,F2F,l2V,M0$,t8t,a4i,Y$i,K98,z4J,m5Y,G_0,B8T,z79,B31,r_f,W9f;f1G="non";f1G+="e";if(!f$u.call(this) && !this.grabbingScreen){return;}i6W=null;v2d=20;n7p=10;i4J.H6P(7);j3G=this.whichPanel(i4J.S40(v2d,P8g));i4J.D0J(0);W0O=this.whichPanel(i4J.q7n(P8g,v2d));n1B=this.whichPanel(P8g);A3A=this.highlightedDraggable;if(!n1B){return;}if(A3A.undraggable && A3A.undraggable(this)){return;}Y2F=this.whichYAxis(n1B,g1Z,P8g);i4J.D0J(7);V30=this.whichYAxis(n1B,i4J.q7n(n7p,g1Z),P8g);i4J.H6P(0);O8c=this.whichYAxis(n1B,i4J.q7n(g1Z,n7p),P8g);if(this.xAxisAsFooter && n1B.name == Object.keys(this.panels).pop()){W0O=this.whichPanel(P8g + v2d + this.xaxisHeight);if(i6W){i6W+=this.xaxisHeight;}}K11=!!0;i4J.D0H();J8s=![];O_i=!"1";if(i1g.Renderer){K11=A3A instanceof i1g.Renderer;}if(i1g.Studies){J8s=A3A instanceof i1g.Studies.StudyDescriptor;}O_i=A3A instanceof i1g.ChartEngine.YAxis;u9g=function(Z_l){i4J.D0H();if(!O_i){if(Z_l == "right"){return n1B.right - n1B.width / +"6";}if(Z_l == "left"){return n1B.left + n1B.width / ("6" ^ 0);}}i4J.D0J(33);var m0D=i4J.q7n(18,11,7,16);return (n1B.left + n1B.right) / m0D;};if(!O_i && !Y2F){t$Y="rig";t$Y+="h";t$Y+="t";if(g1Z < u9g("left")){V30=this.whichYAxis(n1B,n1B.left - 1,P8g);}else if(g1Z > u9g(t$Y)){O8c=this.whichYAxis(n1B,n1B.right + 1,P8g);}}i53=[];if(A3A.getDependents){i53=A3A.getDependents(this,!![]);}C4i=A3A.panel;X4l=A3A.getYAxis(this);if(K11){C4i=A3A.params.panel;}else if(O_i){C4i=this.grabStartPanel.name;}L9L=this.panels[C4i];for(a1l in this.panels){if(this.panels[a1l].soloing){K8c=!!({});}}f31=X4l.isShared(this);w1K=!O_i && !K8c && (L9L !== n1B && L9L != j3G && L9L != W0O || !this.checkForEmptyPanel(L9L,!0,[A3A].concat(i53)));c7h=C4i == n1B.name && X4l !== Y2F && X4l !== O8c && X4l !== V30 || f31;if(w1K && (!j3G || n1B !== j3G)){H6U="d";H6U+="ro";H6U+="pz";H6U+="one";n1B.subholder.classList.add(H6U);n1B.subholder.classList.add("top");W0O=n1B;}else if(w1K && (!W0O || n1B !== W0O)){n1B.subholder.classList.add("dropzone");n1B.subholder.classList.add("bottom");}else if(n1B !== L9L){if(!O_i && !n1B.noDrag){e9x="a";e9x+="l";e9x+="l";R_X="d";R_X+="ro";R_X+="pzone";n1B.subholder.classList.add(R_X);n1B.subholder.classList.add(e9x);B4k=n1B.name;}}else if((!n1B.yaxisRHS.length || n1B.yaxisRHS.length == +"1" && n1B.yaxisRHS[+"0"] == X4l && X4l.position == "none") && !Y2F && !O8c && g1Z > u9g("right")){n1B.subholder.classList.add("dropzone");n1B.subholder.classList.add("right");t8V="right";}else if((!n1B.yaxisLHS.length || n1B.yaxisLHS.length == 1 && n1B.yaxisLHS[0] == X4l && X4l.position == f1G) && !Y2F && !V30 && g1Z < u9g("left")){a13="d";a13+="ropzon";a13+="e";n1B.subholder.classList.add(a13);n1B.subholder.classList.add("left");t8V="left";}else if(c7h){if(O_i && g1Z > n1B.left && g1Z < n1B.right){i4J.D0J(2);var O_C=i4J.S40(5,13,7);d3R=n1B.yaxisLHS[n1B.yaxisLHS.length - O_C];z2T=n1B.yaxisRHS[0];C15=u9g();if(g1Z < C15 && d3R != X4l){V30=d3R;}else if(g1Z > C15 && z2T != X4l){O8c=z2T;}}if(!O_i || Y2F !== X4l){r_x=!O_i && f31;if(O8c && (O8c !== X4l || r_x) && (!Y2F || Y2F !== O8c)){O8c.dropzone="left";t8V=O8c.position || this.chart.panel.yAxis.position || "right";}else if(V30 && (V30 !== X4l || r_x) && (!Y2F || Y2F !== V30)){V30.dropzone="right";t8V=V30.position || this.chart.panel.yAxis.position || "right";}else if(Y2F){if(!O8c && (Y2F !== X4l || r_x)){Y2F.dropzone="right";}else if(!V30 && (Y2F !== X4l || r_x)){Y2F.dropzone="left";}else if(Y2F !== X4l){Y2F.dropzone="all";}if(Y2F.dropzone){t8V=Y2F.position || this.chart.panel.yAxis.position || "right";}}}}if(this.grabbingScreen || !n1B.subholder.classList.contains("dropzone") && !t8V){this.draw();return;}function f$u(){i4J.a9S();var s$G,K65,p6t;s$G=!({});for(var n2n in this.panels){K65="a";K65+="l";K65+="l";["dropzone",K65,"left","right","top","bottom"].forEach(D3v(this.panels[n2n]));for(p6t=0;p6t < this.panels[n2n].yaxisLHS.length;p6t++){if(this.panels[n2n].yaxisLHS[p6t].dropzone){s$G=!0;}this.panels[n2n].yaxisLHS[p6t].dropzone=null;}for(p6t=0;p6t < this.panels[n2n].yaxisRHS.length;p6t++){if(this.panels[n2n].yaxisRHS[p6t].dropzone){s$G=!!({});}this.panels[n2n].yaxisRHS[p6t].dropzone=null;}}function D3v(W_J){return function(a1_){i4J.a9S();if(W_J.subholder.classList.contains(a1_)){W_J.subholder.classList.remove(a1_);s$G=!0;}};}return s$G;}G1n=-1;if(!B4k && !t8V && w1K){B4k=J8s?A3A.inputs.id:A3A.params.name || i1g.uniqueID();for(var S6w in this.panels){G1n++;if(this.panels[S6w] == W0O)break;}if(!W0O){G1n++;}if(this.panels[C4i].yAxis.name == B4k){C4i=this.electNewPanelOwner(C4i);}m3s=J8s?A3A.inputs.display:null;if(C4i){this.createPanel(m3s || B4k,B4k,i6W,this.chart.name,new i1g.ChartEngine.YAxis({name:B4k}));}else {C4i=B4k;}if(J8s){A3A.panel=C4i;}else {A3A.params.panel=C4i;}}if(B4k){if(J8s){j_S="Stu";j_S+="d";j_S+="ies.replaceStu";j_S+="dy";if(!A3A.parameters){A3A.parameters={};}A3A.parameters.panelName=B4k;this.highlightedDraggable=i1g.getFn(j_S)(this,A3A.inputs.id,A3A.type,A3A.inputs,A3A.outputs,A3A.parameters,null,A3A.study);}else if(K11){for(var W93 in A3A.seriesParams){W$l=A3A.seriesParams[W93];C4p=null;if(A3A.params.yAxis){if(A3A.params.yAxis !== this.chart.panel.yAxis){C4p=A3A.params.yAxis;C4p.name=A3A.params.name;}}this.modifySeries(W$l.id,{panel:B4k,yAxis:C4p});}}if(G1n > -1){z7r={};w4G=0;for(a1l in this.panels){if(G1n == w4G++){z7r[B4k]=this.panels[B4k];}if(a1l == B4k)continue;z7r[a1l]=this.panels[a1l];}if(!z7r[B4k]){z7r[B4k]=this.panels[B4k];}this.panels=z7r;}this.checkForEmptyPanel(C4i);for(var D9X=0;D9X < i53.length;D9X++){if(i53[D9X].params){this.checkForEmptyPanel(i53[D9X].params.name);}else {this.checkForEmptyPanel(i53[D9X].name);}}this.adjustPanelPositions();}else if(t8V){g2r="a";g2r+="l";g2r+="l";n4V=function(w1z,p2j,w2D,t8$){var Y0j,v8y,L2y,S4a;Y0j="stu";i4J.a9S();Y0j+="dy";if(w2D == Y0j){L2y="Studies.";L2y+="replaceStudy";if(!p2j.parameters){p2j.parameters={};}if(t8$){p2j.parameters.yaxisDisplayValue=t8$.position;}else {delete p2j.parameters.yaxisDisplayValue;}v8y=i1g.getFn(L2y)(w1z,p2j.inputs.id,p2j.type,p2j.inputs,p2j.outputs,p2j.parameters,p2j.panel,p2j.study);}if(w2D == "renderer"){for(var d9S in p2j.seriesParams){S4a=p2j.seriesParams[d9S];v8y=w1z.modifySeries(S4a.id,{panel:B4k,yAxis:t8$});}}return v8y;};F2F=Y2F && Y2F.dropzone == g2r;if(!F2F){if(O_i){A3A.position=t8V;if(this.layout.studies){l2V=this.layout.studies[A3A.name];if(l2V){if(!l2V.parameters){l2V.parameters={};}l2V.parameters.yaxisDisplayValue=t8V;}}}else if(J8s){M0$="stu";M0$+="d";M0$+="y";this.highlightedDraggable=n4V(this,A3A,M0$,{position:t8V});}else if(K11){n4V(this,A3A,"renderer",new i1g.ChartEngine.YAxis({name:A3A.params.name || i1g.uniqueID(),position:t8V}));}X4l=this.highlightedDraggable.getYAxis(this);}if(!f31 || !F2F || O_i){t8t=X4l;if(F2F && X4l == this.chart.panel.yAxis){t8t=Y2F;}for(i0y=0;i0y < n1B.yaxisLHS.length;i0y++){if(n1B.yaxisLHS[i0y] == t8t){n1B.yaxisLHS.splice(i0y,1);break;}}for(i0y=0;i0y < n1B.yaxisRHS.length;i0y++){if(n1B.yaxisRHS[i0y] == t8t){n1B.yaxisRHS.splice(i0y,1);break;}}}a4i=922850339;Y$i=-64993701;K98=2;for(var D6g=1;i4J.Z2Z(D6g.toString(),D6g.toString().length,76373) !== a4i;D6g++){K98+=+"2";}if(i4J.U6$(K98.toString(),K98.toString().length,77999) !== Y$i){}if(F2F){if(this.getYAxisByName(n1B,X4l.name) == n1B.yAxis){this.electNewPanelOwner(n1B,Y2F);}if(O_i){G_0=X4l;B8T=Y2F;if(X4l == this.chart.panel.yAxis){G_0=Y2F;B8T=X4l;}for(m5Y in G_0.studies){z79="s";z79+="t";z79+="ud";z79+="y";n4V(this,this.layout.studies[G_0.studies[m5Y]],z79,B8T === this.chart.panel.yAxis?null:{position:B8T.name});}for(m5Y in G_0.renderers){n4V(this,this.chart.seriesRenderers[G_0.renderers[m5Y]],"renderer",B8T);}this.highlightedDraggable=B8T;}else if(J8s){B31="st";B31+="u";B31+="dy";this.highlightedDraggable=n4V(this,A3A,B31,{position:Y2F.name});}else if(K11){n4V(this,A3A,"renderer",Y2F);}}else {if(X4l.position == "none"){X4l.width=i1g.ChartEngine.YAxis.prototype.width;}X4l.position=t8V;z4J=t8V == "left"?n1B.yaxisLHS:n1B.yaxisRHS;for(i0y=0;i0y < z4J.length;i0y++){if(z4J[i0y] !== X4l){if(z4J[i0y].dropzone == "left"){z4J.splice(i0y,0,X4l);}else if(z4J[i0y].dropzone == "right"){i4J.D0J(97);z4J.splice(i4J.S40(i0y,0,"1"),0,X4l);}else continue;}break;}if(i0y == z4J.length){z4J.push(X4l);}}}for(var h$h in this.panels){r_f=this.panels[h$h];W9f=r_f.yaxisLHS.concat(r_f.yaxisRHS);for(i0y=0;i0y < W9f.length;i0y++){W9f[i0y].height=r_f.yAxis.height;this.calculateYAxisMargins(W9f[i0y]);}}this.displayDragOK();this.draw();this.calculateYAxisPositions();this.draw();this.findHighlights(null,!!({}));this.savePanels();};A2d=!({});i1g.ChartEngine.prototype.findHighlights=i1g.ChartEngine.prototype.findHighlights || (function(D8y,W2g){if(!A2d){console.error("movement feature requires activating interaction feature.");}A2d=!"";});};P=q0K=>{var F_h,F1D;F_h="u";F_h+="n";F_h+="defi";F_h+="ned";F1D=typeof _CIQ !== F_h?_CIQ:q0K.CIQ;F1D.NameValueStore=F1D.NameValueStore || (function(){});F1D.NameValueStore.prototype.toJSONIfNecessary=function(r3J){var T1W;if(r3J.constructor == String){return r3J;}try{T1W=JSON.stringify(r3J);return T1W;}catch(Z2d){A2IFV.H6P(0);console.log(A2IFV.S40("Cannot convert to JSON: ",r3J));return null;}};F1D.NameValueStore.prototype.fromJSONIfNecessary=function(N4O){var K$k;A2IFV.D0H();try{K$k=JSON.parse(N4O);return K$k;}catch(n1L){return N4O;}};F1D.NameValueStore.prototype.get=function(G30,T7C){var Y_o;Y_o=F1D.localStorage.getItem(G30);T7C(null,this.fromJSONIfNecessary(Y_o));};F1D.NameValueStore.prototype.set=function(d4t,Y$e,X4j){F1D.localStorageSetItem(d4t,this.toJSONIfNecessary(Y$e));A2IFV.D0H();if(X4j){X4j(null);}};F1D.NameValueStore.prototype.remove=function(D7J,M4i){A2IFV.a9S();F1D.localStorage.removeItem(D7J);if(M4i){M4i(null);}};};T=E$q=>{var i4r=A2IFV;var m66;m66=typeof _CIQ !== "undefined"?_CIQ:E$q.CIQ;if(!m66.ChartEngine){m66.ChartEngine=function(){};}h6Q.fetchInitialData=function(d4u,e0G,O9$,w74,q6I){};h6Q.fetchUpdateData=function(h22,L7y,O2o,s21){};h6Q.fetchPaginationData=function(B2m,C2t,c3x,j$O,C_3){};h6Q.subscribe=function(C53){};h6Q.unsubscribe=function(n19){};m66.QuoteFeed=m66.QuoteFeed || (function(){});m66.QuoteFeed.prototype.fetch=function(g8s,V4m){var a3p;if(!this.v2QuoteFeed){a3p="You m";a3p+="ust implement CIQ.QuoteFeed.[yourfeedname].prototype.fetch()";console.log(a3p);}};m66.QuoteFeed.prototype.announceError=function(V1e,m60){var l5l;if(V1e.suppressErrors || m60.suppressAlert){return;}i4r.D0H();if(V1e.startDate){;}else if(V1e.endDate){;}else if(m60.error){l5l="Error fetchi";l5l+="ng qu";l5l+="ote:";m66.alert(l5l + m60.error);}else {;}};m66.QuoteFeed.prototype.multiFetch=function(W_a,P7s){if(W_a.length === 0){P7s([]);}return W_a[0].stx.driver.multiFetch(W_a,P7s);};m66.QuoteFeed.Subscriptions=function(){i4r.D0H();this.subscriptions=[];};m66.inheritsFrom(m66.QuoteFeed.Subscriptions,m66.QuoteFeed);m66.QuoteFeed.Subscriptions.prototype.checkSubscriptions=function(Y_C){var t7X,o1Y,m3J,t6I,o$Y,V6X,d58,c6Y;m3J=Y_C.getSymbols({"breakout-equations":!![]});t6I=this;m3J=m3J.filter(function(U1e){var y3T;y3T=Y_C.quoteDriver.getQuoteFeed(U1e);return y3T && y3T.engine == t6I;});for(var d4r=0;d4r < this.subscriptions.length;d4r++){this.subscriptions[d4r].match=!({});}i4r.D0H();for(var E$W=0;E$W < m3J.length;E$W++){o$Y="mon";o$Y+="th";o1Y=m3J[E$W];V6X=o1Y.interval;if((V6X == o$Y || V6X == "week") && !Y_C.dontRoll){V6X="day";}o1Y.interval=V6X;o1Y.period=1;o1Y.match=!"1";if(!isNaN(o1Y.interval)){o1Y.period=o1Y.interval;o1Y.interval=o1Y.timeUnit;if(!o1Y.interval){o1Y.interval="minute";}}delete o1Y.periodicity;delete o1Y.timeUnit;delete o1Y.setSpan;for(d4r=0;d4r < this.subscriptions.length;d4r++){t7X=this.subscriptions[d4r];if(t7X.symbol == o1Y.symbol && t7X.period == o1Y.period && t7X.interval == o1Y.interval){o1Y.match=!"";t7X.match=!!({});break;}else if(t7X.symbol != o1Y.symbol){d58="symbo";d58+="l";if(o1Y.reason != "period"){o1Y.reason=d58;}t7X.reason="symbol";}else {c6Y="peri";c6Y+="od";o1Y.reason="period";t7X.reason=c6Y;}}}this.subscriptions=this.subscriptions.filter(function(C9D){if(!C9D.match){if(!C9D.stx){C9D.stx=Y_C;}t6I.unsubscribe(C9D);}return C9D.match;});m3J.forEach(function(I4f){if(!I4f.match){if(!I4f.stx){I4f.stx=Y_C;}if(!I4f.reason){I4f.reason="initialize";}if(I4f.symbol !== Y_C.chart.symbol){I4f.series=!![];}t6I.subscribe(I4f);t6I.subscriptions.push(I4f);}});};m66.QuoteFeed.Subscriptions.prototype.fetch=function(Q$V,n3V){var E3h;i4r.D0H();E3h=this;this.fetchFromSource(Q$V,function(P5w){i4r.D0H();if(!P5w.error){E3h.checkSubscriptions(Q$V.stx);}n3V(P5w);});};m66.QuoteFeed.Subscriptions.prototype.subscribe=function(Z0v){i4r.D0H();console.log("subscribe",Z0v);};m66.QuoteFeed.Subscriptions.prototype.unsubscribe=function(z1E){i4r.a9S();console.log("unsubscribe",z1E);};m66.QuoteFeed.Subscriptions.prototype.fetchFromSource=function(s5g,y49){var C$o;C$o="Please provi";C$o+="de implementation of";C$o+=" fetchFro";C$o+="mSource";console.log(C$o);};m66.QuoteFeed.prototype.requiresImmediateRefresh=function(N$$){i4r.D0H();return !({});};m66.ChartEngine.prototype.attachQuoteFeed=function(v_H,W3c,Q5k){var J1e,t2p,M8Y,J9s,m5s,Q1i,a$2,E6h,h8J,q6x,n8r;J1e="func";J1e+="t";J1e+="io";J1e+="n";t2p="func";i4r.a9S();t2p+="ti";t2p+="on";M8Y="f";M8Y+="un";M8Y+="ction";if(!W3c){W3c={};}if(typeof v_H.fetchInitialData === M8Y || typeof v_H.fetchUpdateData === t2p || typeof v_H.fetchPaginationData === J1e){J9s="functi";J9s+="on";m5s="announce";m5s+="Error";Q1i="f";Q1i+="unc";Q1i+="tio";Q1i+="n";a$2="fu";a$2+="nctio";a$2+="n";if(typeof v_H.fetchPaginationData !== a$2 && typeof v_H.fetchUpdateData !== Q1i){W3c.noLoadMore=!!1;}v_H.v2QuoteFeed=!!1;["multiFetch",m5s,"requiresImmediateRefresh"].forEach(function(Q2p){if(!v_H[Q2p] && v_H[Q2p] !== !"1"){v_H[Q2p]=m66.QuoteFeed.prototype[Q2p];};});if(typeof v_H.subscribe === J9s){v_H.checkSubscriptions=m66.QuoteFeed.Subscriptions.prototype.checkSubscriptions;v_H.subscriptions=[];}}if(!W3c.maximumTicks){W3c.maximumTicks=v_H.maxTicks?v_H.maxTicks:20000;}if(!W3c.bufferSize || W3c.bufferSize < 0){W3c.bufferSize=+"0";}W3c.bufferSize=Math.round(W3c.bufferSize);W3c.intervalTimer=null;if(this.quoteDriver){if(!Q5k && this.quoteDriver.hasUnfilteredQuoteFeed){this.detachQuoteFeed();}else {E6h=this.quoteDriver.hasUnfilteredQuoteFeed && this.quoteDriver.quoteFeeds.pop();this.quoteDriver.quoteFeeds.push({engine:v_H,behavior:W3c,filter:Q5k});if(E6h){this.quoteDriver.quoteFeeds.push(E6h);}this.quoteDriver.updateChartLoop(null,W3c);}}if(!this.quoteDriver){h8J=-278826038;q6x=-2052160918;n8r=+"2";for(var e5r=1;i4r.U6$(e5r.toString(),e5r.toString().length,"81119" | 31) !== h8J;e5r++){this.quoteDriver=new m66.ChartEngine.Driver(this,v_H,W3c,Q5k);n8r+=2;}if(i4r.Z2Z(n8r.toString(),n8r.toString().length,86964) !== q6x){this.quoteDriver=new m66.ChartEngine.Driver(this,v_H,W3c,Q5k);}}if(!Q5k){this.quoteDriver.hasUnfilteredQuoteFeed=!!"1";}};m66.ChartEngine.prototype.detachQuoteFeed=function(E0E){var Q7E;Q7E=this.quoteDriver;if(!Q7E){return;}for(var t$T=Q7E.quoteFeeds.length - 1;t$T >= 0;t$T--){if(!E0E || Q7E.quoteFeeds[t$T].quoteFeed == E0E){Q7E.die(Q7E.quoteFeeds[t$T]);i4r.H6P(28);Q7E.quoteFeeds.splice(t$T,i4r.S40("1",0));}}if(!Q7E.quoteFeeds.length){Q7E=this.quoteDriver=null;}else if(E0E == Q7E.quoteFeed){Q7E.quoteFeed=Q7E.quoteFeeds[0].quoteFeed;Q7E.behavior=Q7E.quoteFeeds[0].behavior;}};m66.ChartEngine.Driver=function(O8r,b6C,Z9Z,g5J){this.stx=O8r;if(!Z9Z){Z9Z={};}this.quoteFeeds=[{engine:b6C,behavior:Z9Z,filter:g5J}];this.id=m66.uniqueID(!![]);this.behavior=Z9Z;this.quoteFeed=b6C;this.loadingNewChart=!"1";this.updatingChart=!1;if(!g5J){this.hasUnfilteredQuoteFeed=!!({});}this.updateChartLoop();};m66.ChartEngine.Driver.prototype.die=function(h5g){var w8Q;for(var A9X=0;A9X < this.quoteFeeds.length;A9X++){if(!h5g || this.quoteFeeds[A9X] == h5g){w8Q=this.quoteFeeds[A9X].behavior;if(w8Q.intervalTimer){clearInterval(w8Q.intervalTimer);w8Q.intervalTimer=-1;;}}}};m66.ChartEngine.Driver.prototype.getQuoteFeed=function(a6w){var i3x;if(!a6w.symbolObject){a6w.symbolObject={symbol:a6w.symbol};}for(var L8n=0;L8n < this.quoteFeeds.length;L8n++){i3x=this.quoteFeeds[L8n];if(i3x.behavior.generator != a6w.symbolObject.generator)continue;if(!i3x.filter || i3x.filter(a6w)){return i3x;}}return null;;};m66.ChartEngine.Driver.prototype.multiFetch=function(n8Z,H7L){var T_W,U4g,n7Y;if(n8Z.length === 0){H7L([]);}T_W={counter:0,finished:n8Z.length,results:[]};for(var q$9="0" >> 32;q$9 < n8Z.length;q$9++){U4g=n8Z[q$9];if(U4g.stx.isEquationChart(U4g.symbol)){m66.fetchEquationChart(U4g,a3V(U4g,T_W,H7L));}else {n7Y=this.getQuoteFeed(U4g);if(n7Y){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.SERIES,n7Y.engine,U4g,a3V(U4g,T_W,H7L));}}}function a3V(y3B,O8D,K8y){return function(V6E){var l$y;i4r.a9S();O8D.results.push({dataCallback:V6E,params:y3B});O8D.counter++;if(O8D.counter >= O8D.finished){l$y=O8D.results;O8D.results=[];K8y(l$y);}};}};m66.ChartEngine.Driver.prototype.updateSubscriptions=function(){for(var R6p="0" * 1;R6p < this.quoteFeeds.length;R6p++){if(this.quoteFeeds[R6p].checkSubscriptions){this.quoteFeeds[R6p].checkSubscriptions(this.stx);}}};m66.ChartEngine.Driver.prototype.loadDependents=function(i$$,m9x,D9j,A5r){var E7V,r5T,v5S,J0q,m9y,c79,r$d,R0y,v02,U1E,O17,S_5,t2a,r0I,x_H,c9O,Y_d,b0M,k_9,O2y,z1B,F2u,D_g,o5d,Z9p;i4r.D0H();E7V=this;if(!A5r){i4r.D0J(1);r5T=i4r.q7n(1,"0");v5S=[];J0q=[];m9y=function(z4t){var o0Z,f5s,P8v;o0Z=1610569589;f5s=-1183685668;P8v=2;i4r.a9S();for(var o2T=+"1";i4r.U6$(o2T.toString(),o2T.toString().length,43266) !== o0Z;o2T++){if(m9x || --r5T > E7V.quoteFeeds.length){m9x(1);}P8v+=2;}if(i4r.U6$(P8v.toString(),P8v.toString().length,27574) !== f5s){if(m9x || --r5T > E7V.quoteFeeds.length){i4r.H6P(10);m9x(i4r.q7n("1",1));}}if(m9x && ++r5T >= E7V.quoteFeeds.length){m9x(null);}};c79=function(U8e){i4r.D0H();if(++r5T < v5S.length){return;}if(!J0q.length){m9y(U8e);}J0q.forEach(function(A0H){E7V.loadDependents(i$$,m9y,D9j,A0H.behavior);});};E7V.quoteFeeds.forEach(function(M0X){i4r.D0H();if(M0X.behavior.generator){J0q.push(M0X);}else {v5S.push(M0X);}});v5S.forEach(function(s1j){i4r.a9S();E7V.loadDependents(i$$,c79,D9j,s1j.behavior);});return;}R0y={};v02=i$$.stx;U1E=i$$.chart;O17=U1E.series;S_5=v02.masterData;x_H=[];c9O={};Y_d=D9j == m66.QuoteFeed.UPDATE;function V3q(X3C){i4r.a9S();return function(P2x){var I6D,p_$,g4e,c2w,g6B,Y_8,h2L,T8G,U3l,p_l;i4r.a9S();I6D=null;for(var Y1v=0;Y1v < P2x.length;Y1v++){p_$=P2x[Y1v];g4e=p_$.dataCallback.error;if(!g4e && g4e !== 0){c2w=p_$.params.symbolObject;g6B=p_$.dataCallback;Y_8=g6B.quotes;h2L=g6B.moreAvailable;T8G=g6B.upToDate;U3l=[];if(v02.getSeries){U3l=v02.getSeries({symbolObject:c2w});}p_l=!1;for(var b6X=0;b6X < U3l.length;b6X++){t2a=U3l[b6X];if(!X3C){if(!i$$.future){t2a.moreAvailable=h2L === ![]?!1:h2L || Y_8.length > (p_$.params.endDate?1:0);}else {t2a.upToDate=T8G === !0?!![]:T8G || Y_8.length <= (p_$.params.startDate?1:0);if(v02.isHistoricalModeSet && Y_8.length < 2){t2a.mostRecentForwardAttempt=new Date();}}t2a.loading=![];}p_l=t2a.parameters.fillGaps || p_l;}Y_8=E7V.cleanup(v02,t2a,Y_8,D9j,i$$,p_l);v02.updateChartData(Y_8,U1E,{secondarySeries:c2w.symbol,noCreateDataSet:!0,noCleanupDates:!!"1",allowReplaceOHL:!0});if(Y_8 && Y_8.length && (!I6D || I6D > Y_8[0].DT)){I6D=Y_8[0].DT;}}}if(P2x.length){v02.createDataSet(null,null,{appending:i$$.originalState.update || i$$.future,appendToDate:I6D});if(!i$$.nodraw){v02.draw();}if(D9j == m66.QuoteFeed.INITIAL){E7V.resetRefreshInterval(A5r.refreshInterval,A5r);}}if(m9x){m9x(null);}};}b0M=D9j == m66.QuoteFeed.PAGINATION;k_9=m66.shallowClone(i$$);for(r$d in O17){t2a=O17[r$d];O2y=t2a.parameters;if(!Y_d){if(!i$$.future && t2a.moreAvailable === ![])continue;if(i$$.future && t2a.upToDate === !!1)continue;;}if(t2a.loading)continue;if(O2y.loadData === ![])continue;if(Y_d || b0M){if(!t2a.endPoints || !Object.keys(t2a.endPoints).length)continue;;}if(O2y.data && !O2y.data.useDefaultQuoteFeed)continue;r0I=O2y.symbolObject;if(!r0I.symbol)continue;if(r0I.generator != A5r.generator)continue;k_9.symbolObject=r0I;k_9.symbol=r0I.symbol;z1B=this.getQuoteFeed(k_9);if(A5r != (z1B && z1B.behavior))continue;F2u=!!1;if(!Y_d){t2a.loading=!0;}for(var d3S=0;d3S < x_H.length;d3S++){if(m66.symbolEqual(x_H[d3S],r0I)){F2u=!"1";}}if(F2u){x_H.push(r0I);c9O[r0I.symbol]=t2a.endPoints;}}D_g=[];for(var x0N=0;x0N < x_H.length;x0N++){r0I=x_H[x0N];o5d=m66.shallowClone(i$$.originalState);o5d.symbol=r0I.symbol;o5d.symbolObject=r0I;if(o5d.update || o5d.future){if(!o5d.endDate){o5d.endDate=i$$.endDate;}o5d.startDate=c9O[r0I.symbol].end;}else {if(!o5d.startDate){o5d.startDate=i$$.startDate;}o5d.endDate=b0M && !i$$.future?c9O[r0I.symbol].begin:i$$.endDate;o5d.ticks=i$$.ticks;}D_g.push(o5d);}if(!D_g.length && Y_d){Z9p={appending:i$$.appending || i$$.originalState.update};if(Z9p.appending){Z9p.appendToDate=i$$.startDate;}v02.createDataSet(null,null,Z9p);if(!i$$.nodraw){v02.draw();}if(m9x){m9x(null);}return;}this.multiFetch(D_g,V3q(Y_d));};m66.ChartEngine.Driver.prototype.cleanup=function(Y3d,v9p,G0h,k4l,N1h,k1I){var m08,S7D,C8r,X_9,B4A,q2j,t4q,v6w,a7B,L6t,c$K,m5D;Y3d.doCleanupDates(G0h,Y3d.layout.interval);if(!N1h.missingBarsCreated && G0h && G0h.length && Y3d.cleanupGaps && k1I !== !({})){C8r=N1h.chart;if(!v9p){S7D=C8r.defaultPlotField;}else {C8r=v9p;X_9=-2130115434;B4A=1988562837;q2j=2;for(var c$X=1;i4r.U6$(c$X.toString(),c$X.toString().length,89641) !== X_9;c$X++){S7D=v9p.parameters.symbol && v9p.id;q2j+=2;}if(i4r.U6$(q2j.toString(),q2j.toString().length,78403) !== B4A){S7D=v9p.parameters.symbol || v9p.id;}}if(k4l == m66.QuoteFeed.PAGINATION && !N1h.loadMoreReplace){if(C8r.endPoints.begin && C8r.endPoints.begin > G0h[G0h.length - 1].DT){t4q="po";t4q+="p";v6w=Y3d.getFirstLastDataRecord(Y3d.masterData,S7D,!1);a7B=-1114560283;L6t=1722881602;c$K=2;for(var f39=1;i4r.Z2Z(f39.toString(),f39.toString().length,7515) !== a7B;f39++){if(v9p){v6w=v6w[S7D];}G0h.push(v6w);c$K+=+"2";}if(i4r.Z2Z(c$K.toString(),c$K.toString().length,72574) !== L6t){if(v9p){v6w=v6w[S7D];}G0h.push(v6w);}m08=t4q;}}else if(k4l == m66.QuoteFeed.UPDATE){if(C8r.endPoints.end && C8r.endPoints.end < G0h[0].DT){m5D=Y3d.getFirstLastDataRecord(Y3d.masterData,S7D,!!({}));if(v9p){m5D=m5D[S7D];}G0h.unshift(m5D);m08="shift";}}G0h=Y3d.doCleanupGaps(G0h,N1h.chart,{cleanupGaps:k1I,noCleanupDates:!!1});if(m08){G0h[m08]();}}return G0h;};i4r.a9S();m66.ChartEngine.Driver.prototype.updateChart=function(J5d){var P7$,I$j,L8o,c4S,Y_z,a$6,l1e,h17,q4Y;if(this.updatingChart){return;}if(this.loadingNewChart){return;}i4r.a9S();function M3j(x2Z,z8v,c4d,y3q){if(z8v.behavior.prefetchAction){z8v.behavior.prefetchAction("updateChart");}return function(j1C){var r7D,w26,j3g;i4r.D0H();I$j++;r7D=z8v.chart;w26=r7D.masterData;if(c4d == r7D.symbol && c4S == L8o.layout.interval && Y_z == L8o.layout.timeUnit && !L8o.isHistoricalMode()){if(!j1C.error){j3g=j1C.quotes;j3g=x2Z.cleanup(L8o,null,j3g,m66.QuoteFeed.UPDATE,z8v);L8o.updateChartData(j3g,r7D,{noCreateDataSet:!!({}),noCleanupDates:!0});r7D.attribution=j1C.attribution;}else if(y3q){y3q.engine.announceError(z8v.originalState,j1C);}}else {x2Z.updatingChart=!({});return;}if(I$j == P7$){x2Z.updatingChart=!({});}if(z8v.behavior.callback){z8v.behavior.callback(z8v);}x2Z.loadDependents(z8v,null,m66.QuoteFeed.UPDATE,z8v.behavior);;};}P7$=Object.keys(this.stx.charts).length;I$j=0;L8o=this.stx;c4S=L8o.layout.interval;Y_z=L8o.layout.timeUnit;for(var r1o in L8o.charts){a$6=L8o.charts[r1o];if(!a$6.symbol)continue;l1e=this.makeParams(a$6.symbol,a$6.symbolObject,a$6);h17=this.getQuoteFeed(l1e);if(a$6.masterData && a$6.masterData.length){l1e.startDate=a$6.endPoints.end;;}l1e.update=!"";l1e.originalState=m66.shallowClone(l1e);if(J5d && J5d != l1e.behavior){this.loadDependents(l1e,null,m66.QuoteFeed.UPDATE,J5d);continue;}this.updatingChart=!!({});q4Y=M3j(this,l1e,a$6.symbol,h17);if(L8o.isEquationChart(l1e.symbol)){m66.fetchEquationChart(l1e,q4Y);}else if(h17){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.UPDATE,h17.engine,l1e,q4Y);}}};m66.ChartEngine.Driver.prototype.updateChartLoop=function(d1M,H2_){var w3$,p8s;if(!H2_){H2_=this.behavior;}if(H2_.intervalTimer == -1){return;}if(H2_.intervalTimer){clearInterval(H2_.intervalTimer);}w3$=function(U7g,W2y){return function(){if(W2y.noUpdate){return;}U7g.updateChart(W2y);};};for(var g9r=0;g9r < this.quoteFeeds.length;g9r++){p8s=this.quoteFeeds[g9r].behavior;if(H2_ == p8s && !p8s.noUpdate){if(!d1M && d1M !== 0){d1M=p8s.refreshInterval;}if(d1M){H2_.intervalTimer=setInterval(w3$(this,p8s),d1M * 1000);}}}};m66.ChartEngine.Driver.prototype.resetRefreshInterval=function(b3q,C26){(C26 || this.behavior).refreshInterval=b3q;this.updateChartLoop(null,C26);;};m66.ChartEngine.Driver.prototype.loadAll=function(w6p,L3w){var J8j,T0Z;J8j=this;function y3o(){return function(b5U){i4r.D0H();if(b5U){L3w(b5U);}else if(!w6p.moreAvailable && w6p.upToDate){L3w(null);;}else if(++T0Z > 20){L3w("error, moreAvailable not implemented correctly in QuoteFeed");}else {w6p.loadingMore=!({});J8j.checkLoadMore(w6p,!!({}),!![],y3o(),!!({}));}};}i4r.a9S();T0Z=+"0";y3o()();};m66.ChartEngine.Driver.prototype.checkLoadMore=function(Y63,J3w,S92,o_B,Q8z){i4r.D0H();var s5e,e8e,X8j,s0N,S0U,H$V,b2b,o27,t4T,Z_Q,G9j,j3d,c$q,y4h,j$f,g5m,C7y,S4R,A1b,F18,g1h,F0d,y9C;s5e=this.stx;e8e=this;if(Y63.loadingMore || this.loadingNewChart){Y63.initialScroll=Y63.scroll;if(o_B){o_B(null);}return;}X8j=s5e.isHistoricalMode();if(!X8j){s5e.isHistoricalModeSet=!!"";}function T9v(N4c,F5L){var S2j;S2j="c";i4r.D0H();S2j+="hec";S2j+="kLo";S2j+="adMore";if(S0U.prefetchAction){S0U.prefetchAction(S2j);}return function(y5H){var D2O,m6F,F9T,q1D,S_J,a2K,n_k,Y6N,T6T,j3I,M0k,D7_,u4H,k2F,P$0;D2O=N4c.stx;m6F=F5L.chart;i4r.D0H();if(F5L.symbol == m6F.symbol && g5m == D2O.layout.interval && C7y == D2O.layout.timeUnit){if(!F5L.loadMore){F5L.chart.loadingMore=![];}if(!y5H.error){if(!y5H.quotes){y5H.quotes=[];}F9T=y5H.quotes;q1D=m6F.masterData;F9T=N4c.cleanup(D2O,null,F9T,m66.QuoteFeed.PAGINATION,F5L);if(F9T.length && m6F.masterData && m6F.masterData.length){if(F5L.future){S_J=F9T[0];if(S_J.DT && S_J.DT == m6F.masterData[m6F.masterData.length - 1].DT){q1D.pop();}}else {i4r.H6P(16);var s5Z=i4r.q7n(17,18);a2K=F9T[F9T.length - s5Z];n_k=162407022;Y6N=-74994599;T6T=2;for(var P3d=1;i4r.U6$(P3d.toString(),P3d.toString().length,70825) !== n_k;P3d++){if(a2K.DT || -a2K.DT !== ~m6F.masterData[9].DT){F9T.pop();}T6T+=2;}if(i4r.Z2Z(T6T.toString(),T6T.toString().length,"68276" * 1) !== Y6N){if(a2K.DT && ~a2K.DT === -m6F.masterData[5].DT){F9T.pop();}}if(a2K.DT && +a2K.DT == +m6F.masterData[0].DT){F9T.pop();}}}if(!F5L.future){if(y5H.moreAvailable){m6F.moreAvailable=!![];}else if(y5H.moreAvailable === !"1" || !F9T.length){m6F.moreAvailable=!({});}else {m6F.moreAvailable=!"";}}else {if(y5H.upToDate){m6F.upToDate=!!"1";}else if(y5H.upToDate === !!0 || F9T.length > 1){m6F.upToDate=![];}if(D2O.isHistoricalModeSet && F9T.length < 2){m6F.mostRecentForwardAttempt=new Date();};}N4c.tickMultiplier=F9T.length?2:N4c.tickMultiplier * 2;j3I=F9T[0]?F9T[0].DT:F5L.startDate;M0k=F9T[0]?F9T[F9T.length - 1].DT:F5L.endDate;if(!m6F.endPoints.begin || m6F.endPoints.begin > j3I){m6F.endPoints.begin=j3I;}if(!m6F.endPoints.end || m6F.endPoints.end < M0k){m6F.endPoints.end=M0k;}m6F.loadingMore=![];if(F5L.loadMoreReplace){D2O.setMasterData(F9T,m6F,{noCleanupDates:!0});}else if(F5L.future){D7_=426247228;u4H=+"1627668229";k2F=2;for(var J3U=1;i4r.U6$(J3U.toString(),J3U.toString().length,67155) !== D7_;J3U++){D2O.updateChartData(F9T,m6F,{noCreateDataSet:!!"",noCleanupDates:!({})});k2F+=+"2";}if(i4r.U6$(k2F.toString(),k2F.toString().length,54573) !== u4H){D2O.updateChartData(F9T,m6F,{noCreateDataSet:![],noCleanupDates:!"1"});}D2O.updateChartData(F9T,m6F,{noCreateDataSet:!![],noCleanupDates:!![]});}else {m66.addMemberToMasterdata({stx:D2O,chart:m6F,data:F9T,fields:[(9500,1990) === 832.78?(0x2633,417.67):"*"],noCleanupDates:!!({})});}if(F5L.future){P$0={appending:!!({}),appendToDate:F9T[0] && F9T[0].DT};}D2O.createDataSet(undefined,undefined,P$0);if(!Q8z){D2O.draw();}if(S0U.callback){S0U.callback(F5L);}N4c.loadDependents(F5L,o_B,m66.QuoteFeed.PAGINATION);}else {N4c.quoteFeed.announceError(F5L.originalState,y5H);F5L.chart.loadingMore=!"1";if(o_B){o_B(y5H.error);}}}else {return;}};}function n0k(A9x){return !A9x.endPoints.begin || H$V.length - Y63.scroll < S0U.bufferSize || H$V.length - Y63.scroll - s5e.tickFromDate(A9x.endPoints.begin,Y63) < S0U.bufferSize;}s0N=this.makeParams(Y63.symbol,Y63.symbolObject,Y63);if(s5e.currentlyImporting){if(o_B){o_B(null);}return;}S0U=s0N.behavior;H$V=Y63.dataSet;function d35(m5S){Y63.loadingMore=![];i4r.D0H();if(o_B){o_B(m5S);}}function V7z(h2n){return !h2n.endPoints.end || Y63.scroll - Y63.maxTicks + +"1" < S0U.bufferSize || s5e.tickFromDate(h2n.endPoints.end,Y63,null,!!"1") - H$V.length + Y63.scroll - Y63.maxTicks + 2 < S0U.bufferSize;}i4r.D0J(12);var H9y=i4r.q7n(1,4,1);o27=+"1000" * (S0U.forwardPaginationRetryInterval || H9y);t4T=!!0;Z_Q=!({});if(Y63.dataSet.length){for(var Q4A in Y63.series){G9j=Y63.series[Q4A];if(G9j.loading)continue;if(G9j.parameters.loadData === !"1")continue;b2b=!G9j.mostRecentForwardAttempt || G9j.mostRecentForwardAttempt.getTime() + o27 < Date.now();if(G9j.moreAvailable !== !!"" && n0k(G9j)){t4T=!![];}if(b2b && !G9j.upToDate && V7z(G9j)){Z_Q=!!({});}}}b2b=!Y63.mostRecentForwardAttempt || Y63.mostRecentForwardAttempt.getTime() + o27 < Date.now();j3d=(n0k(Y63) || J3w) && Y63.moreAvailable !== ![];c$q=(V7z(Y63) || J3w) && !Y63.upToDate && b2b;y4h=j3d || t4T;j$f=s5e.isHistoricalModeSet && !y4h && (c$q || Z_Q);g5m=s5e.layout.interval;C7y=s5e.layout.timeUnit;S4R=!1;A1b=S0U.findHeadOfData || Y63.masterData && Y63.masterData.length;if(!S0U.noLoadMore && A1b){if(j$f || !s5e.maxDataSetSize || Y63.dataSet.length < s5e.maxDataSetSize){if(y4h || j$f){Y63.initialScroll=Y63.scroll;Y63.loadingMore=!!({});s0N=this.makeParams(Y63.symbol,Y63.symbolObject,Y63);s0N.pagination=!![];s0N.future=j$f;if(Y63.masterData && Y63.masterData.length){if(j$f){s0N.startDate=Y63.endPoints.end;}else {s0N.endDate=Y63.endPoints.begin;}if(j$f && !s0N.startDate){g1h="D";g1h+="T";F18=s5e.getFirstLastDataRecord(Y63.masterData,g1h,!![]);if(F18){s0N.startDate=F18.DT;}}else if(y4h && !s0N.endDate){F18=s5e.getFirstLastDataRecord(Y63.masterData,"DT");if(F18){s0N.endDate=F18.DT;}}}else {s0N.endDate=new Date();}s0N.originalState=m66.shallowClone(s0N);s0N.nodraw=Q8z;if(!j3d && t4T || !c$q && Z_Q){this.loadingMore=!![];this.loadDependents(s0N,d35,m66.QuoteFeed.PAGINATION);if(o_B){o_B(null);}return;}if(s5e.fetchMaximumBars[s5e.layout.aggregationType]){s0N.fetchMaximumBars=!![];if(!s5e.maxMasterDataSize || S0U.maximumTicks < s5e.maxMasterDataSize){s0N.ticks=S0U.maximumTicks;}else {s0N.ticks=s5e.maxMasterDataSize;}}F0d=T9v(this,s0N);if(s5e.isEquationChart(s0N.symbol)){m66.fetchEquationChart(s0N,F0d);}else {if(j$f){s0N.appending=!!1;}y9C=e8e.getQuoteFeed(s0N);if(y9C){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.PAGINATION,y9C.engine,s0N,F0d);}}S4R=!![];}}}if(!S4R && o_B){o_B(null);}};m66.ChartEngine.Driver.prototype.extendHistoricalData=function({from:V5s},I3b = ()=>{}){var j_s,h7_;var {stx:o$h}=this;var {chart:c1_, layout:D7X}=o$h;var {masterData:i9Z, dataSet:a$m}=c1_;var {interval:l2T, timeUnit:r9z}=D7X;i4r.a9S();j_s=this.makeParams(c1_.symbol,c1_.symbolObject,c1_);h7_=this.getQuoteFeed(j_s);if(c1_.loadingMore || this.loadingNewChart || o$h.currentlyImporting || !i9Z.length || !h7_ || o$h.maxDataSetSize && a$m.length > o$h.maxDataSetSize){return I3b(null);}c1_.loadingMore=!!({});function T$y(J3S,J63){return function({quotes:c9W, moreAvailable:h$u, error:T1u}){if(J63.symbol !== c1_.symbol || l2T !== D7X.interval || r9z !== D7X.timeUnit){return;;}i4r.D0H();c1_.loadingMore=!!0;if(T1u){return I3b(T1u);}c9W=J3S.cleanup(o$h,null,c9W,m66.QuoteFeed.PAGINATION,J63);if(typeof h$u === "boolean"){c1_.moreAvailable=h$u;}else {c1_.moreAvailable=!!c9W.length;}c1_.endPoints.begin=c9W[0].DT;m66.addMemberToMasterdata({stx:o$h,chart:c1_,data:c9W,fields:["*"],noCleanupDates:!![]});o$h.createDataSet();o$h.draw();};}j_s.originalState=Object.assign({},j_s);j_s.startDate=V5s;j_s.endDate=i9Z[0].DT;m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.PAGINATION,h7_.engine,j_s,T$y(this,j_s));};m66.ChartEngine.Driver.prototype.barsToFetch=function(a$i){var e5t,C$a,B7S,T$B,c9n;e5t="mo";e5t+="nth";if(!m66.isValidNumber(this.tickMultiplier)){this.tickMultiplier=2;}C$a=this.stx.layout.interval;B7S=a$i.stx.layout.periodicity;if((C$a == e5t || C$a == "week") && !this.stx.dontRoll){T$B="w";T$B+="e";T$B+="e";T$B+="k";B7S*=C$a == T$B?7:30;}c9n=a$i.stx.chart.maxTicks * B7S;return c9n * this.tickMultiplier;};m66.ChartEngine.Driver.determineStartDate=function(T_4,N6X,i6Z){return this.determineStartOrEndDate(T_4,N6X,i6Z,!0);};m66.ChartEngine.Driver.determineStartOrEndDate=function(F0a,z0r,T77,s_B){i4r.D0H();var D1c;if(s_B || F0a.fetchMaximumBars){D1c=F0a.startDate || z0r.previous(T77);}else {D1c=F0a.future?z0r.next(T77):new Date();}return D1c;};m66.ChartEngine.Driver.prototype.makeParams=function(N_F,o_9,y07){var T2e,h4W,n0L,W3E,q_1,H3w,Y23,t2K,P$X,R4W,P7M,Z1h;T2e="m";T2e+="ont";T2e+="h";h4W=this.stx;n0L=h4W.layout.interval;W3E=this.barsToFetch({stx:h4W});if((n0L == T2e || n0L == "week") && !h4W.dontRoll){n0L="day";}q_1=this.getQuoteFeed({interval:n0L,symbol:N_F,symbolObject:o_9});H3w=q_1 && q_1.behavior;Y23=m66.shallowClone(H3w) || ({});Y23.behavior=H3w;t2K=!({});P$X=[];if(y07.market && y07.market.getSessionNames){P$X=y07.market.getSessionNames();}if(h4W.extendedHours){if(h4W.extendedHours.filter){t2K=!![];}else {i4r.D0J(1);R4W=i4r.S40(1,"1747222390");P7M=-276394982;Z1h=2;for(var v4g=+"1";i4r.U6$(v4g.toString(),v4g.toString().length,33318) !== R4W;v4g++){t2K=h4W.layout.extended;Z1h+=2;}if(i4r.Z2Z(Z1h.toString(),Z1h.toString().length,57174) !== P7M){t2K=h4W.layout.extended;}t2K=h4W.layout.extended;P$X=P$X.filter(function(x09){return x09.enabled || h4W.layout.marketSessions[x09.name];});}}else {P$X=P$X.filter(function(a8W){return a8W.enabled;});}for(var O$X=+"0";O$X < P$X.length;O$X++){P$X[O$X]=P$X[O$X].name;;}m66.extend(Y23,{stx:h4W,symbol:N_F,symbolObject:o_9,chart:y07,interval:n0L,extended:t2K,period:1,ticks:W3E,additionalSessions:P$X,quoteDriverID:this.id},!!({}));if(!Y23.symbolObject){Y23.symbolObject={symbol:N_F};}if(!isNaN(Y23.interval)){Y23.period=parseInt(Y23.interval,10);Y23.interval=h4W.layout.timeUnit;if(!Y23.interval){Y23.interval="minute";}}return Y23;};m66.ChartEngine.Driver.prototype.newChart=function(U7x,Q53){var i_D,d5X,L1V,U5P,c4J,J5R,E0l,R0a,s2N;i_D=this.stx;d5X=U7x.symbol;L1V=i_D.layout.interval;U5P=i_D.layout.timeUnit;c4J=U7x.chart;c4J.moreAvailable=null;c4J.upToDate=null;c4J.loadingMore=![];c4J.attribution=null;J5R=this.makeParams(d5X,U7x.symbolObject,c4J);m66.extend(J5R,U7x,!!({}));E0l=this.getQuoteFeed(J5R);R0a=J5R.behavior;if(i_D.fetchMaximumBars[i_D.layout.aggregationType] || U7x.fetchMaximumBars){if(!i_D.maxMasterDataSize || R0a.maximumTicks < i_D.maxMasterDataSize){J5R.ticks=R0a.maximumTicks;}else {J5R.ticks=i_D.maxMasterDataSize;}J5R.fetchMaximumBars=!!"1";}this.loadingNewChart=!!"1";this.updatingChart=![];function a7U(L4M,V2Q){if(R0a.prefetchAction){R0a.prefetchAction("newChart");}i4r.a9S();return function(Z48){var x5x,F96,e9U,B8W;x5x=V2Q.chart;F96=Z48.quotes;e9U=!({});if(d5X == x5x.symbol && L1V == i_D.layout.interval && U5P == i_D.layout.timeUnit){L4M.loadingNewChart=![];if(!Z48.error){F96=L4M.cleanup(i_D,null,F96,m66.QuoteFeed.INITIAL,V2Q);i_D.setMasterData(F96,x5x,{noCleanupDates:!!1});x5x.endPoints={};x5x.endPoints.begin=F96[0]?F96[0].DT:V2Q.startDate;x5x.endPoints.end=F96[0]?F96[F96.length - +"1"].DT:V2Q.endDate;if(!F96){x5x.moreAvailable=!!"";x5x.upToDate=!!({});}else {x5x.moreAvailable=Z48.moreAvailable === !"1"?!({}):!!1;x5x.upToDate=Z48.upToDate;}x5x.attribution=Z48.attribution;if(U7x.initializeChart){i_D.initializeChart();}i_D.createDataSet();e9U=!![];}else {E0l.engine.announceError(V2Q.originalState,Z48);}}else {if(Q53){Q53("orphaned");}return;}for(var u6a in x5x.series){x5x.series[u6a].endPoints={};x5x.series[u6a].moreAvailable=null;x5x.series[u6a].upToDate=null;}B8W=x5x.masterData;if(B8W && B8W.length){V2Q.startDate=B8W[0].DT;V2Q.endDate=B8W[B8W.length - 1].DT;}if(R0a.callback){R0a.callback(V2Q);}L4M.loadDependents(V2Q,function(){if(e9U && !V2Q.nodraw){L4M.stx.home();}if(Q53){Q53(Z48.error);}L4M.stx.dispatch("newChart",{stx:L4M.stx,symbol:L4M.stx.chart.symbol,symbolObject:L4M.stx.chart.symbolObject,moreAvailable:L4M.stx.chart.moreAvailable,upToDate:L4M.stx.chart.upToDate,quoteDriver:L4M});L4M.resetRefreshInterval(R0a.refreshInterval,R0a);},m66.QuoteFeed.INITIAL);};}J5R.originalState=m66.shallowClone(J5R);s2N=a7U(this,J5R);if(this.stx.isEquationChart(J5R.symbol)){m66.fetchEquationChart(J5R,s2N);}else if(E0l){m66.ChartEngine.Driver.fetchData(m66.QuoteFeed.INITIAL,E0l.engine,J5R,s2N);}};function h6Q(){}m66.QuoteFeed.INITIAL=1;m66.QuoteFeed.UPDATE=2;m66.QuoteFeed.PAGINATION=3;m66.QuoteFeed.SERIES=4;m66.ChartEngine.Driver.fetchData=function(H8j,e4M,M0n,Y9m){i4r.D0H();var f8y;if(!M0n.symbol){return Y9m({quotes:[]});}if(e4M.v2QuoteFeed){f8y="f";f8y+="unction";if(typeof e4M.subscribe !== f8y){m66.ChartEngine.Driver.fetchDataInContext(H8j,e4M,M0n,Y9m);}else {m66.ChartEngine.Driver.fetchDataInContext(H8j,e4M,M0n,(function(R6C){if(!R6C.error){this.checkSubscriptions(M0n.stx);}Y9m(R6C);}).bind(e4M));}}else {M0n.stx.convertToDataZone(M0n.startDate);M0n.stx.convertToDataZone(M0n.endDate);e4M.fetch(M0n,Y9m);}};m66.ChartEngine.Driver.fetchDataInContext=function(q5R,y_H,R9g,c4h){var r6V,u3D,N7b,d$Y,A2L,W7c,n4T,L50,Y4t,h60;r6V="functi";r6V+="on";W7c=R9g.stx;if(!W7c.chart.market.newIterator){console.error("quoteFeed feature requires first activating market feature.");return;}i4r.a9S();if(q5R === m66.QuoteFeed.SERIES){R9g.series=!0;q5R=m66.QuoteFeed.INITIAL;if(R9g.endDate && !R9g.startDate || R9g.future){q5R=m66.QuoteFeed.PAGINATION;}else if(R9g.startDate && !R9g.endDate){q5R=m66.QuoteFeed.UPDATE;}}n4T=Math.min(R9g.ticks,R9g.maximumTicks);if(y_H.maxTicks){n4T=Math.min(n4T,y_H.maxTicks);}L50=R9g.symbolObject.masterSymbol || R9g.symbol;switch(q5R){case m66.QuoteFeed.UPDATE:if(W7c.isHistoricalModeSet){W7c.quoteDriver.updatingChart=!!0;return;}if(R9g.startDate){Y4t=R9g.startDate;}else {Y4t=new Date();i4r.D0J(40);Y4t.setHours(i4r.q7n(96,"0"),0,0,0);}if(typeof y_H.fetchUpdateData === "function"){y_H.fetchUpdateData(L50,W7c.convertToDataZone(Y4t),R9g,c4h);}break;case m66.QuoteFeed.INITIAL:A2L=R9g.endDate || new Date();u3D={begin:A2L,interval:R9g.interval,periodicity:R9g.interval == "tick"?W7c.chart.xAxis.futureTicksInterval:R9g.period,outZone:W7c.dataZone};N7b=W7c.chart.market.newIterator(u3D);d$Y=m66.ChartEngine.Driver.determineStartDate(R9g,N7b,n4T);if(R9g.endDate){A2L=R9g.endDate;}if(typeof y_H.fetchInitialData === "function"){y_H.fetchInitialData(L50,d$Y,W7c.convertToDataZone(A2L),R9g,c4h);}break;case m66.QuoteFeed.PAGINATION:u3D={begin:R9g.endDate || R9g.startDate,interval:R9g.interval,periodicity:R9g.interval == "tick"?W7c.chart.xAxis.futureTicksInterval:R9g.period,outZone:W7c.dataZone};N7b=W7c.chart.market.newIterator(u3D);h60=m66.ChartEngine.Driver.determineStartOrEndDate(R9g,N7b,n4T,!R9g.future);d$Y=R9g.startDate || h60;A2L=R9g.endDate || h60;if(!R9g.startDate){R9g.stx.convertToDataZone(A2L);}else {R9g.stx.convertToDataZone(d$Y);}if(typeof y_H.fetchPaginationData === r6V){if(W7c.maxMasterDataSize && W7c.maxMasterDataSize <= W7c.masterData.length){return;}y_H.fetchPaginationData(L50,d$Y,A2L,R9g,function(F_D){if(A2L >= Date.now()){W7c.isHistoricalModeSet=![];}if(c4h){c4h(F_D);}});}break;default:console.error("Illegal fetchData constant");}};};W=Y4n=>{var T3x;T3x=typeof _CIQ !== "undefined"?_CIQ:Y4n.CIQ;T3x.ChartEngine.prototype.addSeries=function(z_G,R7_,h$S){var w58=A2IFV;var d4B,T40,U1C,p18,o2M,L7g,s7y,a8H,O6J,E0H,N4M,X2L,a0R,x_W,Q8n,Q5$,V3n,U_c,b0E;d4B="add";d4B+="S";d4B+="eries";T40=this.runPrepend("addSeries",arguments);if(T40){return T40;}U1C=z_G?z_G:null;p18=z_G;if(!z_G){z_G=T3x.uniqueID();}if(R7_ && R7_.panel === !![]){R7_.panel=z_G;}o2M={parameters:R7_?T3x.clone(R7_):{},yValueCache:[],display:U1C,id:z_G,loading:R7_?R7_.loadData !== !({}):!![]};o2M.parameters.yAxis=R7_ && R7_.yAxis;R7_=o2M.parameters;if(R7_.symbol){p18=R7_.symbol;}if(R7_.isComparison){R7_.shareYAxis=!!1;}if(R7_.yAxis && !(R7_.yAxis instanceof T3x.ChartEngine.YAxis)){R7_.yAxis=new T3x.ChartEngine.YAxis(R7_.yAxis);;}T3x.ensureDefaults(R7_,{chartName:this.chart.name,symbolObject:{symbol:p18},panel:this.chart.panel.name,fillGaps:![],action:"add-series"});if(("display" in R7_)){o2M.display=R7_.display;}L7g=this.charts[R7_.chartName];s7y=R7_.symbolObject;w58.a9S();p18=R7_.symbol=s7y.symbol;if(!o2M.display){o2M.display=p18 || R7_.field;}o2M.endPoints={};function k3E(D3w){w58.a9S();return function(c5R){var o_d,R_i,a5q;o_d="sy";o_d+="mb";o_d+="olChange";w58.D0H();if(!c5R.error){R_i=c5R.quotes;a5q=R7_.fillGaps;if(!X2L.cleanupGaps){a5q=!1;}R_i=X2L.doCleanupGaps(R_i,X2L.chart,{cleanupGaps:a5q});X2L.updateChartData(R_i,X2L.chart,{secondarySeries:p18,noCreateDataSet:!!({}),noCleanupDates:!"",allowReplaceOHL:!!({})});o2M.loading=!({});o2M.moreAvailable=c5R.moreAvailable;o2M.upToDate=c5R.upToDate;u6T(X2L,o2M);}if(R7_.action !== null && !O6J.length){X2L.dispatch(a0R?"symbolImport":o_d,{stx:X2L,symbol:D3w.symbol,symbolObject:D3w.symbolObject,action:R7_.action,id:o2M.id,parameters:R7_});}if(h$S){h$S.call(X2L,c5R.error,o2M);}};}if(!R7_.gapDisplayStyle && R7_.gapDisplayStyle !== !!""){R7_.gapDisplayStyle=R7_.gaps;}if(R7_.isComparison){a8H="tra";a8H+="n";a8H+="spare";a8H+="nt";if(R7_.gapDisplayStyle === undefined){R7_.gapDisplayStyle=a8H;}}O6J=this.getSeries({symbolObject:s7y,chart:L7g,includeMaster:!!({})});E0H=R7_.panel;if(!this.panels[E0H]){N4M=R7_.yAxis || new T3x.ChartEngine.YAxis();N4M.name=z_G;this.createPanel(z_G,E0H,null,null,N4M);if(!this.preferences.dragging || !this.preferences.dragging.series){R7_.highlightable=!!0;}}else {if(!R7_.yAxis && !R7_.shareYAxis){R7_.yAxis=new T3x.ChartEngine.YAxis({name:z_G,position:"none"});}}L7g.series[z_G]=o2M;X2L=this;a0R=this.currentlyImporting;if(R7_.isComparison && L7g.forcePercentComparison && R7_.panel == L7g.panel.name && (!R7_.yAxis || R7_.yAxis == L7g.yAxis)){this.setChartScale("percent");}x_W=L7g.masterData;if(!x_W){x_W=L7g.masterData=this.masterData=[];}Q8n=x_W.length;if(R7_.data && !R7_.data.useDefaultQuoteFeed){Q5$={symbol:p18,symbolObject:s7y,action:R7_.action};k3E(Q5$)({quotes:R7_.data});}else if(O6J.length){o2M.endPoints=O6J[0].endPoints;o2M.loading=O6J[0].loading;u6T(this,o2M);if(h$S){setTimeout(function(){w58.a9S();h$S.call(X2L,null,o2M);},"0" << 0);}}else if(this.quoteDriver && R7_.loadData !== !"1"){V3n=this.quoteDriver;U_c=V3n.makeParams(p18,s7y,L7g);if(Q8n){U_c.startDate=x_W[0].DT;U_c.endDate=this.isHistoricalMode()?x_W[x_W.length - 1].DT:new Date();}if(U_c.stx.isEquationChart(U_c.symbol)){T3x.fetchEquationChart(U_c,k3E(U_c));}else {b0E=V3n.getQuoteFeed(U_c);if(b0E){T3x.ChartEngine.Driver.fetchData(4,b0E.engine,U_c,k3E(U_c));}}}else {u6T(this,o2M);if(h$S){h$S.call(this,null,o2M);}}function u6T(x0E,H6g){var z_5,K9b,w2t,g8G;z_5=R7_.renderer || "Lines";K9b=R7_.name || z_G;if(R7_.yAxis && !(R7_.yAxis instanceof T3x.ChartEngine.YAxis) && !a0R){R7_.yAxis.name=K9b;}if(!R7_.renderer && !R7_.name && !R7_.color && !R7_.chartType){return;}w58.a9S();w2t=x0E.getSeriesRenderer(K9b);if(!w2t){g8G={name:K9b,overChart:R7_.overChart !== ![],useChartLegend:!!({})};if(R7_.chartType){w2t=T3x.Renderer.produce(R7_.chartType,T3x.extend({highlightable:R7_.highlightable,dependentOf:R7_.dependentOf,panel:R7_.panel,yAxis:R7_.yAxis,baseline:R7_.baseline},g8G));}else {T3x.ensureDefaults(R7_,g8G);w2t=new T3x.Renderer[z_5]({params:R7_});}if(!w2t){return;}x0E.setSeriesRenderer(w2t);}w2t.attachSeries(z_G,R7_);if(R7_.loadData !== !"1"){w2t.ready();}x0E.layout.symbols=x0E.getSymbols({"include-parameters":!!"1","exclude-studies":!![]});x0E.changeOccurred("layout");}this.runAppend(d4B,arguments);return o2M;};T3x.ChartEngine.prototype.getSeries=function(M63){var L$8,R6V,G72,G6z,b91;L$8=M63.chart?M63.chart:this.chart;R6V=L$8.series;G72=M63.symbolObject;if(!G72){G72={symbol:M63.symbol};}G6z=[];for(var C9Q in R6V){b91=R6V[C9Q];if(T3x.symbolEqual(G72,b91.parameters.symbolObject)){G6z.push(b91);}}if(M63.includeMaster){if(T3x.symbolEqual(G72,L$8.symbolObject)){G6z.push({});}}A2IFV.a9S();return G6z;};T3x.ChartEngine.prototype.modifySeries=function(N3E,L_r,X_F){var N20,q_O,S_A,x43,k_E,z3z,x5j,s6C,Y_9,X_z,O80,Y1F,e$J,T74,x36;N20="modify";N20+="Series";if(this.runPrepend(N20,arguments)){return;}if(!L_r){return;}if(typeof N3E === "string"){x43=L_r.chartName?this.charts[L_r.chartName]:this.chart;S_A=N3E;q_O=x43.series[S_A];}else {q_O=N3E;S_A=q_O.id;x43=this.charts[q_O.parameters.chartName];}if(!q_O){return;}T3x.extend(q_O.parameters,L_r,!0);this.getRendererFromSeries(S_A).modifyRenderer(L_r);k_E=q_O.parameters;for(var R9i in x43.seriesRenderers){x5j=x43.seriesRenderers[R9i];s6C=x5j.params;Y_9=x5j.seriesParams;for(var D5P=0;D5P < Y_9.length;++D5P){X_z=Y_9[D5P];O80=this.panels[X_z.panel];Y1F=O80 && O80.yAxis.name;if(X_z.id === q_O.id){if(k_E.panel === !0){k_E.panel=k_E.dependentOf || k_E.name;}s6C.panel=k_E.panel;if(L_r.yAxis){if(!(L_r.yAxis instanceof T3x.ChartEngine.YAxis)){L_r.yAxis=new T3x.ChartEngine.YAxis(L_r.yAxis);;}s6C.yAxis=L_r.yAxis;}if(k_E.panel != X_z.panel && s6C.name == Y1F){this.electNewPanelOwner(X_z.panel);;}else {e$J=this.getYAxisByName(k_E.panel,s6C.name);if(e$J && k_E.yAxis && e$J.name !== k_E.yAxis.name){e$J.name=this.electNewYAxisOwner(e$J);}}if(!k_E.field){k_E.field=null;}x5j.attachSeries(S_A,T3x.ensureDefaults(k_E,X_z));if(!k_E.field){k_E.field=k_E.subField;}delete k_E.subField;if(k_E.isComparison && x43.forcePercentComparison && k_E.panel == x43.panel.name && (!q_O.parameters.yAxis || k_E.yAxis.name == x43.yAxis.name)){this.setChartScale("percent");}z3z=x5j;break;}}}this.changeOccurred("layout");T3x.getFn("Drawing.updateSource")(this,q_O.parameters.symbol || S_A,null,q_O.parameters.panel);this.runAppend("modifySeries",arguments);if(X_F !== !""){T74=z3z.getDependents(this);for(var l8q=0;l8q < T74.length;l8q++){this.modifySeries(T74[l8q].params.name,{panel:z3z.params.panel,yAxis:q_O.parameters.yAxis},!!1);}x36=x43.seriesRenderers[z3z.params.dependentOf];if(x36){if(x36.params.yAxis != q_O.parameters.yAxis || x36.params.panel != z3z.params.panel){this.modifySeries(z3z.params.dependentOf,{panel:z3z.params.panel,yAxis:q_O.parameters.yAxis},!!({}));}}}this.draw();return q_O;};T3x.ChartEngine.prototype.deleteSeries=function(H2d,l$n,H2Z){var A2p,l1G,s1b,X85,V2s,q_S,C7N,m7B;A2p="ob";A2p+="j";A2p+="ect";if(this.runPrepend("deleteSeries",arguments)){return;}H2Z=H2Z?H2Z:{};l1G=H2Z.action?H2Z.action:"remove-series";if(typeof H2d === A2p){s1b=H2d.id;l$n=l$n || this.charts[H2d.parameters.chartName];}else {s1b=H2d;l$n=l$n || this.chart;}X85=l$n.series[s1b];if(!X85){return;}V2s=X85.parameters.loadData;q_S=X85.parameters.symbolObject;delete l$n.series[s1b];C7N=this.getSeries({symbolObject:q_S,includeMaster:!0});if(V2s === !!""){C7N.push(s1b);}if(!C7N.length){this.cleanMasterData(q_S,l$n);}m7B=this.panels[X85.parameters.panel];if(m7B){this.checkForEmptyPanel(m7B);}this.createDataSet();if(!C7N.length){this.dispatch(this.currentlyImporting?"symbolImport":"symbolChange",{stx:this,symbol:q_S.symbol,symbolObject:q_S,id:s1b,action:l1G});}if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}this.runAppend("deleteSeries",arguments);};T3x.ChartEngine.prototype.removeSeries=function(Y2C,O7U){var t7o,r0G,P$U,M06,T4t,b_R,U_u,j4a;t7o="re";t7o+="mov";t7o+="eSerie";t7o+="s";if(this.runPrepend(t7o,arguments)){return;}P$U=![];if(typeof Y2C === "object"){r0G=Y2C.id;O7U=O7U || this.charts[Y2C.parameters.chartName];}else {r0G=Y2C;O7U=O7U || this.chart;}for(var U1a in O7U.seriesRenderers){M06=O7U.seriesRenderers[U1a];T4t=this.panels[M06.params.panel];b_R=T4t && T4t.yAxis.name;for(var g02=M06.seriesParams.length - 1;g02 >= 0;g02--){U_u=M06.seriesParams[g02];if(U_u.id === r0G){M06.removeSeries(r0G);if(M06.seriesParams.length < 1){this.removeSeriesRenderer(M06);if(M06.params.name == b_R){this.electNewPanelOwner(M06.params.panel);}else {if(!this.checkForEmptyPanel(M06.params.panel)){j4a=this.getYAxisByName(T4t,M06.params.name);if(j4a){j4a.name=j4a.studies[0] || j4a.renderers[1];}}}}P$U=!![];}}}if(!P$U){this.deleteSeries(r0G,O7U);}this.resetDynamicYAxis();this.draw();this.resizeChart();this.runAppend("removeSeries",arguments);};T3x.Comparison=T3x.Comparison || (function(){});T3x.Comparison.initialPrice=100;T3x.Comparison.getInitialPrice=function(k45){var g3h,g4T,z5L;if(k45.initialComparisonPrice){return k45.initialComparisonPrice;}k45.initialComparisonPrice=+"100";g3h=T3x.Comparison.initialPrice;if(typeof g3h == "number"){k45.initialComparisonPrice=g3h;}if(typeof g3h == "string"){if(k45.series[g3h] || g3h === ""){g4T="Close";if(k45.defaultPlotField){if(!k45.highLowBars){g4T=k45.defaultPlotField;}}for(var R3c=k45.dataSet.length - k45.scroll - 1;R3c < k45.dataSet.length;R3c++){z5L=k45.dataSet[R3c];if(z5L){if(z5L[g3h] && z5L[g3h][g4T]){k45.initialComparisonPrice=z5L[g3h][g4T];break;}else if(g3h === "" && z5L[g4T]){k45.initialComparisonPrice=z5L[g4T];break;}}}}}return k45.initialComparisonPrice;};T3x.Comparison.priceToPercent=function(p7r,d8c,E1w){var n_Q=A2IFV;n_Q.D0H();var Y16;Y16=T3x.Comparison.baseline || E1w;n_Q.H6P(98);var t29=n_Q.S40(3,30000,6,3,3);n_Q.H6P(36);var J5X=n_Q.S40(9519,500,19);return Math.round((E1w - Y16) / Y16 * ("100" - 0) * t29) / J5X;};T3x.Comparison.percentToPrice=function(k8f,O2N,U8d){var w7d;A2IFV.D0H();w7d=T3x.Comparison.baseline || "1" | 0;A2IFV.H6P(99);return A2IFV.S40(w7d,1,U8d,100);};T3x.Comparison.priceToRelative=function(a4o,o_E,C9S){var v_s,y5w;v_s=T3x.Comparison.baseline || C9S;y5w=T3x.Comparison.getInitialPrice(o_E);A2IFV.H6P(100);return A2IFV.q7n(v_s,y5w,C9S);};T3x.Comparison.relativeToPrice=function(J59,v21,Q8V){var n8O,U8U;A2IFV.D0H();n8O=T3x.Comparison.baseline || 1;U8U=T3x.Comparison.getInitialPrice(v21);A2IFV.D0J(100);return A2IFV.S40(U8U,n8O,Q8V);};T3x.Comparison.createComparisonSegmentInner=function(G1a,r25){var J8u=A2IFV;J8u.a9S();var a9y,r8a,e2o,l_b,C7o,u9t,R8Y,t4y,T_o,d6b,W_f,L92,G08,y$_,T_V,I0C,V8T,I6g,J9h,B9X,T2N,e98,x$c,k8a,M_U,F2a;a9y="i";a9y+="qPrevClose";r8a="C";r8a+="los";r8a+="e";e2o=[];for(l_b in r25.series){R8Y=r25.series[l_b].parameters;if(R8Y.isComparison){e2o.push(R8Y.symbol);}}t4y=[r8a,"Open","High","Low",a9y];T_o=G1a.chart.highLowBars;if(r25.defaultPlotField && !T_o){t4y.unshift(r25.defaultPlotField);}d6b=t4y[0];W_f=G1a.layout.studies;for(var D6A in W_f){L92=W_f[D6A];C7o=G1a.panels[L92.panel];u9t=L92.getYAxis(G1a);if(!C7o || C7o.yAxis != u9t)continue;for(l_b in L92.outputMap){t4y.push(l_b);}for(var f9r=+"0";f9r <= 2;f9r++){t4y.push(L92.name + "_hist" + (f9r?f9r:""));}if(L92.referenceOutput){t4y.push(L92.referenceOutput + (("970.95" - 0,"753.83" * 1) !== 8870?" ":9198 > 8553?35.02:(0x9e2,0x15f3)) + L92.name);}}for(var E0M in G1a.plugins){G08=G1a.plugins[E0M];if(!G08.transformOutputs)continue;for(l_b in G08.transformOutputs){t4y.push(l_b);}}r25.initialComparisonPrice=null;r25.dataSegment=[];y$_=null;J8u.D0J(101);var G8b=J8u.S40(12,11,17,88,927);T_V=r25.dataSet.length - r25.scroll - ("1" >> G8b);if(G1a.startComparisonsAtFirstVisibleBar){T_V+=1;}I0C=r25.maxTicks + +"3";for(var N2V=0;N2V <= I0C;N2V++){if(N2V == I0C){N2V=-1;}J8u.D0J(0);V8T=J8u.S40(T_V,N2V);if(V8T < r25.dataSet.length && V8T >= 0){I6g=r25.dataSet[V8T];J9h=I6g[d6b];if(!y$_){if(J9h === 0 || J9h === null){if(N2V < 0)break;else continue;;}y$_=T3x.clone(I6g);}if(!I6g.transform){I6g.transform={cache:{},DT:I6g.DT,Date:I6g.Date};}if(!T3x.Comparison.baseline && J9h){y$_=T3x.clone(I6g);}T3x.Comparison.baseline=y$_[d6b];for(B9X=0;B9X < t4y.length;B9X++){l_b=t4y[B9X];if(I6g[l_b] || I6g[l_b] === 0){I6g.transform[l_b]=r25.transformFunc(G1a,r25,I6g[l_b]);}}for(B9X=0;B9X < e2o.length;B9X++){l_b=e2o[B9X];T2N=r25.series[l_b];if(N2V == -("1" * 1) && T2N && T2N.parameters.isComparison){delete I6g.transform[l_b];continue;}e98=I6g[l_b];for(var w9M=0;e98 && w9M < t4y.length;w9M++){x$c=e98[t4y[w9M]];if(x$c || x$c === +"0"){k8a=y$_[l_b] && y$_[l_b][t4y[0]];if(!k8a && k8a !== 0){if(!y$_[l_b]){y$_[l_b]={};}y$_[l_b][t4y[w9M]]=k8a=x$c * T3x.Comparison.baseline / I6g[d6b];}if(k8a !== 0){M_U=T3x.Comparison.baseline || 1;J8u.D0J(102);F2a=J8u.S40(k8a,x$c,M_U);if(!I6g.transform[l_b]){I6g.transform[l_b]={};}I6g.transform[l_b][t4y[w9M]]=r25.transformFunc(G1a,r25,F2a);}}}}r25.dataSegment.push(I6g);}else if(V8T < 0){r25.dataSegment.push(null);}if(N2V < 0)break;;}};T3x.Comparison.priceFormat=function(t1v,D_K,i_z){var l_J=A2IFV;var U2j,w7D;if(i_z === null || typeof i_z == "undefined" || isNaN(i_z)){return "";}U2j=D_K.yAxis.priceTick;w7D=t1v.internationalizer;if(w7D){if(U2j >= 5){l_J.D0J(14);i_z=w7D.percent.format(l_J.S40(100,i_z));}else if(U2j >= 0.5){l_J.H6P(103);i_z=w7D.percent1.format(l_J.S40(i_z,0,"100"));}else if(U2j >= 0.05){l_J.H6P(14);i_z=w7D.percent2.format(l_J.S40(100,i_z));}else if(U2j >= 0.005){l_J.D0J(14);i_z=w7D.percent3.format(l_J.S40(100,i_z));}else {l_J.D0J(8);i_z=w7D.percent4.format(l_J.q7n(i_z,"100"));}}else {if(U2j >= "5" * 1){l_J.H6P(52);var N0p=l_J.S40(860,84,11);l_J.H6P(7);var N$7=l_J.S40(15831,21108);l_J.H6P(7);var I7A=l_J.S40(27540,32130);l_J.D0J(104);var p3S=l_J.q7n(4,9623,20,756);l_J.H6P(6);var V4o=l_J.q7n(1201,100,8,4,44);i_z=i_z.toFixed(0) + (("3860" >> N0p,N$7) > I7A?"%":478.36 !== (+"8740",p3S)?(!"",V4o):("i",257.08));}else if(U2j >= "0.5" - 0){l_J.D0J(105);var Z$J=l_J.q7n(30,20,15,6,1);l_J.D0J(0);var J_i=l_J.S40(75,1356);l_J.D0J(12);var a5a=l_J.q7n(2290,20,1);l_J.D0J(106);var f5A=l_J.q7n(3,3112,2079,5,4);l_J.H6P(107);var b4r=l_J.q7n(6,17,15003,1,937);l_J.D0J(98);var s62=l_J.q7n(8,14560,14,11,2);l_J.H6P(15);var z6C=l_J.S40(19,7596,5083);l_J.D0J(108);var O03=l_J.S40(3920,15680,16,276);i_z=i_z.toFixed(Z$J) + ((J_i,a5a) != f5A?b4r > s62?(z6C,!!({})):"%":O03);}else if(U2j >= 0.05){l_J.D0J(0);var x2n=l_J.S40(0,2);l_J.D0J(109);var U_x=l_J.q7n(18,1241,6,1,1);l_J.D0J(7);var H4b=l_J.S40(5,8225);l_J.D0J(7);var o1u=l_J.S40(8,3838);l_J.H6P(36);var S6v=l_J.S40(23,7357,4);l_J.D0J(0);var t5N=l_J.S40(0,1);l_J.D0J(36);var c1U=l_J.S40(8727,512,19);l_J.D0J(110);var O1$=l_J.q7n(9,9860,18,18,3184761);l_J.H6P(111);var R44=l_J.q7n(15,1,1,9,6);l_J.D0J(111);var q_R=l_J.S40(9337,932,9320,5,2);l_J.H6P(36);var s1f=l_J.q7n(11,9811,9);l_J.D0J(33);var F6S=l_J.q7n(26,5969,10,17);i_z=i_z.toFixed(x2n) + (+"8407" > (U_x,H4b)?"%":o1u == (S6v,"2925" * t5N)?(c1U,O1$):(+"86.97","770.58" * R44) >= (q_R,s1f)?!!({}):("h",F6S));}else if(U2j >= +"0.005"){l_J.H6P(52);var I58=l_J.q7n(57,12,5);i_z=i_z.toFixed(I58) + (+"3433" <= (+"3942",905.78)?("0x169b" ^ 0,843.52):"%");}else {l_J.D0J(112);var t2w=l_J.q7n(16,2,8,15,13);i_z=i_z.toFixed(t2w) + "%";}}if(parseFloat(i_z) === 0 && i_z.charAt(0) == "-"){l_J.H6P(40);i_z=i_z.substring(l_J.q7n(64,"1"));}l_J.a9S();return i_z;};T3x.ChartEngine.prototype.setComparison=function(z4V,t1I,q6C){var d3a=A2IFV;var k6Y,L_l,V27,c8m,N9w,I8Y,B_Y,m6T;k6Y="percen";k6Y+="t";L_l="str";L_l+="ing";if(!t1I){t1I=this.chart;}if(typeof t1I == L_l){t1I=this.charts[t1I];}if(q6C || q6C === ""){T3x.Comparison.initialPrice=q6C;}if(z4V === !0){if(t1I.isComparison){return;}z4V="percent";}this.resetDynamicYAxis();V27=t1I.panel.yAxis;c8m=V27.priceFormatter == T3x.Comparison.priceFormat;switch(z4V){case "relative":this.setTransform(t1I,T3x.Comparison.priceToRelative,T3x.Comparison.relativeToPrice);if(c8m){d3a.D0J(40);N9w=d3a.S40(32,"1079035736");I8Y=-840809156;B_Y=2;for(var e1Z=1;d3a.U6$(e1Z.toString(),e1Z.toString().length,4151) !== N9w;e1Z++){V27.priceFormatter=V27.originalPriceFormatter?V27.originalPriceFormatter.func:null;V27.originalPriceFormatter=null;B_Y+=2;}if(d3a.U6$(B_Y.toString(),B_Y.toString().length,71797) !== I8Y){V27.priceFormatter=V27.originalPriceFormatter?V27.originalPriceFormatter.func:+"1";V27.originalPriceFormatter=1;}}V27.whichSet="dataSegment";t1I.isComparison=!"";break;case k6Y:m6T="dataSegme";m6T+="nt";this.setTransform(t1I,T3x.Comparison.priceToPercent,T3x.Comparison.percentToPrice);if(!c8m){V27.originalPriceFormatter={func:V27.priceFormatter};V27.priceFormatter=T3x.Comparison.priceFormat;}V27.whichSet=m6T;t1I.isComparison=!![];break;default:this.unsetTransform(t1I);if(c8m){V27.priceFormatter=V27.originalPriceFormatter?V27.originalPriceFormatter.func:null;V27.originalPriceFormatter=null;}V27.whichSet="dataSet";t1I.isComparison=!1;break;}};T3x.ChartEngine.prototype.setChartScale=function(Q3S){var Z9s,b4Y,o3c;Z9s="li";Z9s+="n";Z9s+="ea";Z9s+="r";b4Y=this.chart;o3c={percent:!!"1",relative:!![]};if(!Q3S){Q3S=Z9s;}if(o3c[Q3S]){this.setComparison(Q3S,b4Y,T3x.Comparison.initialPrice);}else if(o3c[this.layout.chartScale]){this.setComparison(!"1",b4Y);}this.layout.chartScale=Q3S;if(b4Y.canvas){this.draw();}this.changeOccurred("layout");};};U=U$7=>{var z$W=A2IFV;var a$R,b22;function L8C(){var t12,C_R,X4z,c64,J$F,D68,q8$;t12="scri";t12+="pt";C_R=-708624285;X4z=-1302474083;c64=2;for(var I4W=1;z$W.Z2Z(I4W.toString(),I4W.toString().length,1096) !== C_R;I4W++){if(a$R.Share.html2canvasLocation){return a$R.Share.html2canvasLocation;}c64+=2;}if(z$W.U6$(c64.toString(),c64.toString().length,61088) !== X4z){if(a$R.Share.html2canvasLocation){return a$R.Share.html2canvasLocation;}}z$W.a9S();J$F=document.getElementsByTagName(t12);for(var v2_=0;v2_ < J$F.length;v2_++){D68="s";D68+="h";D68+="are.js";q8$=J$F[v2_];if(q8$.src && q8$.src.indexOf(D68) > -+"1"){return q8$.src.replace(/standard\/share\.js/,"") + "thirdparty/";}}return "js/thirdparty/";}function P1G(D$i,S$t,W9C){var r8W,W36,J8A,s3p,s84,T2W,i9O,a06,j03;if(!S$t){S$t={};}r8W=[];W36="ciq-no-share";J8A=document.querySelector("body");if(S$t.hide && S$t.hide instanceof Array){s3p=S$t.hide.join(", ");s84=document.querySelectorAll(s3p);for(var Z15=0;Z15 < s84.length;Z15++){s84[Z15].classList.add(W36);}}J8A.classList.add("sharing");T2W=D$i.chart.container.getElementsByTagName("svg");i9O=[];a06=0;for(;a06 < T2W.length;a06++){j03=T2W[a06];i9O.push(j03.innerHTML);s0A(j03);}b22(D$i.chart.container,{allowTaint:!({}),logging:![],width:S$t.width || null,height:S$t.height || null,backgroundColor:S$t.background || null,useCORS:!0}).then(function(y9q){if(W9C){W9C(null,S$t.data?y9q.toDataURL("image/png"):y9q);}for(a06=0;a06 < T2W.length;a06++){T2W[a06].innerHTML=i9O[a06];}J8A.classList.remove("sharing");}).catch(function(i4W){var W5O;W5O="sh";W5O+="ari";W5O+="ng";if(W9C){W9C(i4W);}for(a06=+"0";a06 < T2W.length;a06++){T2W[a06].innerHTML=i9O[a06];}J8A.classList.remove(W5O);});}z$W.a9S();function s0A(u_l){var E64,u_O,R$k;E64="alignment";E64+="-baseline";if(!u_l.style){return;}u_O=getComputedStyle(u_l);R$k=[E64,"dominant-baseline","fill","fill-opacity","font-family","font-size","font-variant","font-weight","text-align","text-anchor"];R$k.forEach(function(c2m){z$W.a9S();if(!u_l.style[c2m] && u_O[c2m]){u_l.style[c2m]=u_O[c2m];}});for(var o8B in u_l.children){s0A(u_l.children[o8B]);}}function x85(u1z){z$W.a9S();if(typeof html2canvas === "undefined"){if(typeof requirejs !== "undefined"){try{return requirejs(["html2canvas.min.js"],function(j0M){b22=j0M;z$W.D0H();return u1z();});}catch(i_3){console.warn("Require loading has failed, attempting to load html2canvas manually.");}}a$R.loadScript(L8C() + "html2canvas.min.js",function(){z$W.a9S();b22=html2canvas;return u1z();});}else {b22=html2canvas;return u1z();}}a$R=typeof _CIQ !== "undefined"?_CIQ:U$7.CIQ;a$R.Share=a$R.Share || (function(){});a$R.Share.FullChart2PNG=function(T0V,b6D,B$b){var u4I;z$W.D0H();u4I="u";u4I+="nd";u4I+="efined";if(!T0V || !T0V.chart){return;}if(typeof html2canvas === u4I){return x85(function(){return P1G(T0V,b6D,B$b);});}b22=html2canvas;P1G(T0V,b6D,B$b);};a$R.Share.createImage=function(X5f,g84,d8E){var k1C,H47,A88,P4s,P83,N8N,B0e,D0Q,A1J;k1C="im";k1C+="g";H47=[].slice.call(arguments);d8E=H47.pop();if(g84 === null || typeof g84 != "object"){g84={widthPX:H47[1],heightPX:H47[2],imageType:H47[3]};}A88=g84.widthPX;P4s=g84.heightPX;P83=g84.imageType;N8N=X5f.chart.canvas.height;B0e=X5f.chart.canvas.width;if(X5f.chart.canvas.style.height){N8N=a$R.stripPX(X5f.chart.canvas.style.height);B0e=a$R.stripPX(X5f.chart.canvas.style.width);}if(A88 && P4s){N8N=P4s;B0e=A88;}else if(P4s){B0e=X5f.chart.canvas.width * (N8N / X5f.chart.canvas.height);}else if(A88){B0e=A88;N8N=X5f.chart.canvas.height * (A88 / X5f.chart.canvas.width);}D0Q=P83?"image/" + P83:"image/png";A1J=document.createElement(k1C);A1J.onload=function(){a$R.Share.FullChart2PNG(X5f,{image:this,width:B0e,height:N8N,hide:g84.hide},function(w2Z,t0y){z$W.D0H();var h$V;if(w2Z){h$V="Error producin";h$V+="g canvas snap";h$V+="shot: ";z$W.D0J(0);console.warn(z$W.q7n(h$V,w2Z));}else {try{d8E(t0y.toDataURL(D0Q));;}catch(r6b){console.warn("Safari devices do not handle CORS enabled images. Using the charts' canvas as a fallback.");d8E(A1J.src);}}});};A1J.src=X5f.chart.canvas.toDataURL(D0Q);};a$R.Share.uploadImage=function(W$X,O4Q,p9c,e0E){var H5$;if(!p9c){p9c={};}z$W.D0H();p9c.image=W$X;H5$=a$R.postAjax(O4Q,JSON.stringify(p9c),function(u0Z,U6f){if(u0Z != 200){e0E(u0Z,null);return;}e0E(null,U6f);});if(!H5$){e0E(0,null);}};a$R.Share.shareChart=function(x6G,Z_k,A$0){a$R.Share.createImage(x6G,{},function(S7F){var d63,B4I,P_J,Q9E,S08,x5V;z$W.a9S();d63=a$R.uniqueID();B4I="https://share.chartiq.com";z$W.D0J(37);P_J=z$W.q7n(d63,B4I,"/upload/");if(Z_k){if(Z_k.host){B4I=Z_k.host;}if(Z_k.path){P_J=B4I + Z_k.path + (("5133" << 0,520.23) != +"537.56"?"/":+"0x96c") + d63;}}Q9E=x6G.getStartDateOffset();S08={layout:x6G.exportLayout(),drawings:x6G.exportDrawings(),xOffset:Q9E,startDate:x6G.chart.dataSegment[Q9E].Date,endDate:x6G.chart.dataSegment[x6G.chart.dataSegment.length - 1].Date,id:d63,symbol:x6G.chart.symbol};x5V={id:d63,image:S7F,config:S08};a$R.Share.uploadImage(S7F,P_J,x5V,function(W92,G6I){if(W92 !== null){a$R.alert("error sharing chart: ",W92);}else {z$W.D0J(0);A$0(z$W.q7n(B4I,G6I));}});;});};};R=s0v=>{var r6U=A2IFV;var G99,h91,v72,A$D;G99=1908465696;h91=+"1307475919";v72=+"2";for(var w2r=1;r6U.Z2Z(w2r.toString(),w2r.toString().length,46458) !== G99;w2r++){A$D=!_CIQ === ""?_CIQ:s0v.CIQ;v72+=2;}if(r6U.U6$(v72.toString(),v72.toString().length,14190) !== h91){A$D=typeof _CIQ !== "undefined"?_CIQ:s0v.CIQ;}r6U.a9S();A$D.ChartEngine.prototype.setRange=function(X8N,M8u){var f_p,w2c,P2N,T5W,R5k,y$a,k6L,A7T,L36,V3V,a$7,u8G,L$P,T75,Z2N,m8y,B6W,s28,c_h,A7a,x21,B$L,c3A,E7K,A3P,P5i,h0C,o7I,G6w,T_S,m3P,t6L,r_3,E0I;function n6w(h8K){var z4N,E2w,R2R,g8o,j9Z,W7V,e0Z,y0u,Q_r,P_Z,F2A,W_Q,y89,l$x,X99,y50,A3W,r1L,f6E,R_7,T9A,B0c,z3c,w96;z4N="l";z4N+="a";z4N+="you";z4N+="t";E2w="d";E2w+="a";E2w+="y";R2R="undef";R2R+="ined";if(typeof h8K == R2R){h8K=null;}g8o=+"0";j9Z=+"0";W7V=new Date();r6U.a9S();e0Z=X8N.base;y0u=X8N.periodicity;Q_r=y$a.layout;if(X8N.goIntoFuture && (!w2c.masterData.length || P2N > w2c.masterData[w2c.masterData.length - 1].DT)){P_Z=w2c.masterData.length?w2c.masterData.pop():{DT:P2N};r6U.H6P(40);F2A=r6U.S40(32,"33390567");W_Q=+"1303637610";y89=2;for(var K2k=1;r6U.U6$(K2k.toString(),K2k.toString().length,27995) !== F2A;K2k++){l$x=y$a.doCleanupGaps([P_Z,{DT:T5W}],w2c,{cleanupGaps:"",noCleanupDates:!!0});y$a.setMasterData(w2c.masterData.concat(l$x),w2c,{noCleanupDates:!1});r6U.D0J(40);y$a.createDataSet(1,r6U.q7n(64,"1"),{appending:!1});y89+=2;}if(r6U.Z2Z(y89.toString(),y89.toString().length,81742) !== W_Q){l$x=y$a.doCleanupGaps([P_Z,{DT:T5W}],w2c,{cleanupGaps:"gap",noCleanupDates:!!({})});y$a.setMasterData(w2c.masterData.concat(l$x),w2c,{noCleanupDates:!!({})});y$a.createDataSet(null,null,{appending:!![]});}}X99=w2c.dataSet;y50=X99.length;if(!X99 || y50 === 0){if(M8u){M8u(h8K);}return;}if(e0Z === E2w && y0u && y0u.interval === "day"){r1L=X8N.multiplier;g8o=y50 < r1L?0:y50 - r1L;r6U.D0J(7);j9Z=r6U.S40(1,y50);}else if(e0Z === "today" && X99[y50 - 1].DT.getDate() < W7V.getDate()){f6E=new Date(X99[y50 - +"1"].DT.getTime());R_7=f6E.getTime();A3W=+"0";for(var J4U=y50 - 1;J4U >= 0;J4U--){if(X99[J4U] && X99[J4U].DT.getDate() != f6E.getDate()){f6E=new Date(+X99[J4U + 1].DT);r6U.H6P(0);A3W=r6U.q7n(J4U,1);break;}}g8o=A3W;r6U.D0J(7);j9Z=r6U.q7n(1,y50);}else {T9A="a";T9A+="l";T9A+="l";if(X8N.base != T9A && (P2N.getTime() >= X99[0].DT.getTime() || X8N.goIntoPast)){g8o=y$a.tickFromDate(P2N,w2c,null,!0);}else {g8o=0;}if(X8N.base != "all" && (T5W.getTime() <= X99[y50 - 1].DT.getTime() || X8N.goIntoFuture)){j9Z=y$a.tickFromDate(T5W,w2c);if(j9Z > y50 - 1){j9Z--;};}else {r6U.H6P(7);j9Z=r6U.q7n(1,y50);}}r6U.D0J(113);B0c=r6U.S40(64,"1",g8o,j9Z);if(B0c < 1){if(M8u){M8u(h8K);}return;}z3c=X8N.padding || 0;if(j9Z < y50 - 1){z3c=0;}w96=(w2c.width - z3c) / B0c;y$a.setCandleWidth(w96,w2c);r6U.D0J(114);w2c.scroll=r6U.S40(j9Z,y50,"1",B0c);y$a.micropixels=1;for(var B6b in y$a.panels){y$a.calculateYAxisMargins(y$a.panels[B6b].yAxis);}if(!X8N.dontSaveRangeToLayout){delete X8N.chart;delete Q_r.setSpan;Q_r.range=X8N;;}else {delete Q_r.range;}y$a.draw();y$a.changeOccurred(z4N);if(!f_p){y$a.dispatch("periodicity",{stx:y$a,differentData:P5i,prevPeriodicity:{interval:c3A,periodicity:E7K,timeUnit:A3P}});}if(M8u){M8u(h8K);}}if(A$D.isEmpty(X8N)){X8N={dtLeft:arguments[0],dtRight:arguments[1],padding:arguments[2],chart:arguments[3]};M8u=arguments[4];}if(this.staticRange){X8N.goIntoPast=X8N.goIntoFuture=!!"1";}if(!X8N.chart){X8N.chart=this.chart;}if(typeof X8N.padding == "undefined"){X8N.padding=0;}f_p=![];w2c=X8N.chart;P2N=typeof X8N.dtLeft === "string"?new Date(X8N.dtLeft):X8N.dtLeft;T5W=new Date();function K$d(x3b,r0x,K8a,t1s,m6n,P06){var B6f,a2h,f9P,Y0C;B6f=0;r6U.H6P(7);a2h=r6U.q7n(r0x,x3b);if(A$D.ChartEngine.isDailyInterval(K8a)){f9P="w";f9P+="eek";if(K8a == "month"){B6f=a2h / A$D.MONTH / t1s;}else if(K8a == f9P){B6f=a2h / A$D.WEEK / t1s;}else {B6f=a2h / A$D.DAY / t1s;}}else {if(!isNaN(K8a)){Y0C="secon";Y0C+="d";if(m6n == "millisecond"){r6U.H6P(115);B6f=r6U.q7n(K8a,t1s,a2h);}else if(m6n == Y0C){B6f=a2h / A$D.SECOND / (t1s * K8a);}else {B6f=a2h / A$D.MINUTE / (t1s * K8a);}}}return Math.round(B6f);;}if(X8N.dtRight){T5W=typeof X8N.dtRight === "string"?new Date(X8N.dtRight):X8N.dtRight;}if(!P2N){R5k=this.standardMarketIterator(T5W,null,w2c);P2N=R5k.previous(w2c.maxTicks);if(!X8N.periodicity){f_p=!!({});}}r6U.a9S();w2c.inflectionPoint=P2N;this.layout.range={dtLeft:P2N,dtRight:T5W};y$a=this;k6L=0;if(this.quoteDriver){if(f_p){A7T=this.layout.interval;V3V=this.layout.timeUnit;L36=this.layout.periodicity;}else if(X8N.periodicity){a$7=A$D.cleanPeriodicity(X8N.periodicity.period,X8N.periodicity.interval,X8N.periodicity.timeUnit);A7T=a$7.interval;V3V=a$7.timeUnit;L36=a$7.period;}else {u8G=T5W.getTime() - P2N.getTime();if(!this.autoPickCandleWidth.turnOn){L$P=this.staticRangePeriodicityMap;T75=null;for(var Z9k=+"0";Z9k < L$P.length;Z9k++){Z2N=L$P[Z9k];if(u8G / Z2N.rangeInMS < +"1.001"){T75=Z2N;break;}}A7T=T75.interval;L36=T75.periodicity;V3V=T75.timeUnit;}else {m8y=0;if(this.autoPickCandleWidth.candleWidth){m8y=this.autoPickCandleWidth.candleWidth;}else {m8y=this.chart.barsHaveWidth?"5" << 64:2;}B6W=w2c.width / m8y;s28=this.dynamicRangePeriodicityMap;A7T=s28[0].interval;L36=1;for(var U0t=0;U0t < s28.length;U0t++){A7a=u8G / s28[U0t].rangeInMS;if(A7a < B6W){if(s28[U0t - 1]){A7T=s28[U0t - 1].interval;V3V=s28[U0t - 1].timeUnit;r6U.D0J(14);L36=Math.ceil(r6U.q7n(B6W,c_h));}else {A7T=s28[U0t].interval;V3V=s28[U0t].timeUnit;L36=1;}break;}c_h=A7a;}}}x21=this.chart.scroll;B$L=this.layout.candleWidth;c3A=this.layout.interval;E7K=this.layout.periodicity;A3P=this.layout.timeUnit;this.chart.scroll=this.chart.maxTicks=K$d(T5W.getTime(),P2N.getTime(),A7T,L36,V3V,this.dontRoll);this.layout.candleWidth=this.chart.width / this.chart.maxTicks;P5i=this.needDifferentData({period:L36,interval:A7T,timeUnit:V3V});if(Object.keys(this.chart.endPoints).length && (this.chart.endPoints.begin > P2N || this.chart.endPoints.end < T5W)){P5i=!0;}if(!this.chart.masterData || !this.chart.masterData.length || P5i || X8N.forceLoad){h0C="w";h0C+="e";h0C+="e";h0C+="k";this.layout.interval=A7T;this.layout.periodicity=L36;this.layout.timeUnit=V3V;if(!this.layout.timeUnit){o7I="t";o7I+="i";o7I+="c";o7I+="k";if(A$D.ChartEngine.isDailyInterval(this.layout.interval)){this.layout.timeUnit=null;}else if(this.layout.interval == "second"){this.layout.timeUnit="second";}else if(this.layout.interval != o7I){this.layout.timeUnit="minute";}}G6w={symbol:w2c.symbol,symbolObject:w2c.symbolObject,chart:w2c,nodraw:!!"1"};if(this.layout.interval == "tick"){r6U.H6P(10);T_S=r6U.q7n("1123097109",20);m3P=-953471532;t6L=2;for(var z8i="1" | 1;r6U.Z2Z(z8i.toString(),z8i.toString().length,19603) !== T_S;z8i++){G6w.startDate=P2N;t6L+=2;}if(r6U.Z2Z(t6L.toString(),t6L.toString().length,34020) !== m3P){G6w.startDate=P2N;}G6w.startDate=P2N;G6w.endDate=T5W;}if(!this.displayInitialized){G6w.initializeChart=!!1;}r_3={symbol:w2c.symbol,symbolObject:w2c.symbolObject,interval:this.layout.interval};if((r_3.interval == "month" || r_3.interval == h0C) && !this.dontRoll){r_3.interval="day";}E0I=Math.max(this.quoteDriver.getQuoteFeed(r_3).behavior.bufferSize + 50,+"200");R5k=this.standardMarketIterator(P2N,null,w2c);G6w.startDate=new Date(R5k.previous(E0I).getTime());R5k=this.standardMarketIterator(T5W,null,w2c);G6w.endDate=new Date(R5k.next(E0I).getTime());if(G6w.endDate < Date.now()){this.isHistoricalModeSet=!!({});}this.clearCurrentMarketData(this.chart);clearTimeout(this.streamParameters.timeout);this.quoteDriver.newChart(G6w,n9k);}else {if(this.layout.interval != A7T || this.layout.periodicity != L36 || this.layout.timeUnit != V3V || !this.chart.dataSegment || !this.chart.dataSegment["0" * 1] || this.chart.dataSegment[0].DT != w2c.inflectionPoint){this.layout.interval=A7T;this.layout.periodicity=L36;this.layout.timeUnit=V3V;this.createDataSet();}n9k();}}else {n6w();}function n9k(t_3){var Z2u;if(t_3 && k6L === "0" * 1){w2c.scroll=x21;y$a.setCandleWidth(B$L);y$a.layout.interval=c3A;y$a.layout.periodicity=E7K;y$a.layout.timeUnit=A3P;if(M8u){M8u(t_3);}return;}k6L++;if(k6L > 10){Z2u="CIQ.ChartEngine.setRange(): Too many loads (10) from server. Stoppi";Z2u+="ng. Check periodicity logic.";console.log(Z2u);n6w();return;}n6w();;}};A$D.ChartEngine.prototype.setSpan=function(a7O,p83){var T3j,p7Y,X1w,h_7,v5B,i3t,M1N,h8o,q2n,G$U,S37,x7$,Z6c,d$6,a9k,L0a,T1Y,E0R,c_Y,U6W;T3j="ob";function o3n(z27,Q_I){var q2L;if(!d$6){return z27;}q2L=7;if(Q_I){z27.setHours(z27.getHours() + q2L);}else {z27.setHours(z27.getHours() - q2L);if(!i3t.isMarketDate(z27)){z27.setDate(z27.getDate() - 2);};}return z27;}T3j+="j";T3j+="e";T3j+="ct";p7Y=arguments[0];X1w=arguments[1];h_7=arguments[2];v5B=arguments[+"3"];if(typeof a7O == T3j){p7Y=a7O.period?a7O.period:a7O.multiplier?a7O.multiplier:1;X1w=a7O.interval?a7O.interval:a7O.base?a7O.base:a7O.span?a7O.span:a7O.period;h_7=a7O.padding;v5B=a7O.chart;}else {a7O={period:p7Y,interval:X1w,padding:h_7,chart:v5B};p83=arguments[5];}if(!v5B){v5B=this.chart;}i3t=v5B.market;X1w=X1w.toLowerCase();if(X1w == "all"){a7O.dontSaveRangeToLayout=!!"1";this.displayAll(a7O,p83);return;}h8o=X1w;q2n=1;if(X1w == "today"){h8o="day";}else if(X1w == "year"){G$U="m";G$U+="on";G$U+="t";G$U+="h";h8o=G$U;q2n=12;}S37=A$D.shallowClone(a7O);x7$={begin:i3t.marketZoneNow(),interval:h8o,period:q2n};Z6c=x7$.begin;d$6=A$D.Market.Symbology.isForexSymbol(v5B.symbol);if(X1w === "ytd"){Z6c=q_v(Z6c);Z6c.setMonth(0);Z6c.setDate(1);}else if(X1w === "month"){Z6c=q_v(new Date());Z6c.setMonth(Z6c.getMonth() - p7Y);}else if(X1w === "year"){Z6c=q_v(new Date());Z6c.setFullYear(Z6c.getFullYear() - p7Y);}else if(X1w === "week"){Z6c=q_v(new Date());Z6c.setDate(Z6c.getDate() - p7Y * 7);}else if(X1w === "day" && p7Y == "1" * 1 && i3t.isMarketDay()){a9k=Z6c.getHours();L0a=Z6c.getMinutes();T1Y=Z6c.getSeconds();E0R=Z6c.getMilliseconds();M1N=i3t.newIterator(x7$);Z6c=M1N.previous();Z6c.setHours(a9k,L0a,T1Y,E0R);Z6c=i3t._convertFromMarketTZ(Z6c);}else if(X1w === "today"){x7$.begin=o3n(Z6c,!![]);M1N=i3t.newIterator(x7$);if(i3t.isOpen() || i3t.getPreviousOpen().getDate() == Z6c.getDate()){M1N.next();}Z6c=M1N.previous();o3n(Z6c);S37.goIntoFuture=!!1;S37.dtRight=new Date(+Z6c);S37.dtRight.setDate(Z6c.getDate() + 1);S37.dtRight=i3t._convertFromMarketTZ(S37.dtRight);if(!d$6){Z6c.setHours(M1N.market.zopen_hour);Z6c.setMinutes(M1N.market.zopen_minute);Z6c.setSeconds(0);}Z6c=i3t._convertFromMarketTZ(Z6c);}else {c_Y="d";c_Y+="ay";if(X1w == "day"){x7$.begin=o3n(Z6c,!!({}));}M1N=i3t.newIterator(x7$);if(p7Y == 1){p7Y++;}r6U.H6P(7);Z6c=M1N.previous(r6U.S40(1,p7Y));if(X1w == c_Y){Z6c=i3t._convertFromMarketTZ(o3n(Z6c));}}S37.dtLeft=Z6c;if(S37.maintainPeriodicity){S37.periodicity={};S37.periodicity.interval=this.layout.interval;S37.periodicity.period=this.layout.periodicity;}v5B.spanLock=![];S37.dontSaveRangeToLayout=!"";function q_v(Y7x){Y7x.setHours(0);Y7x.setMinutes(0);Y7x.setSeconds(+"0");Y7x.setMilliseconds(0);return Y7x;}U6W=this;this.setRange(S37,function(I0I){U6W.layout.setSpan=a7O;U6W.changeOccurred("layout");r6U.a9S();if(X1w == "today"){v5B.spanLock=!!({});;}if(p83){p83(I0I);}});};A$D.ChartEngine.prototype.getSpanCandleWidth=function(U6S){var K8t,I$x,b6U,R87,V9f,w7K,K9n,H7M,S3p,W2w;K8t="mont";K8t+="h";if(!U6S || !U6S.base || !U6S.multiplier){return;}I$x=parseFloat(U6S.multiplier);b6U=U6S.base;R87=new Date();V9f=new Date();if(b6U == "year"){V9f.setFullYear(V9f.getFullYear() - I$x);}else if(b6U == K8t){w7K=391528754;K9n=1131678275;H7M=2;for(var f_z=1;r6U.Z2Z(f_z.toString(),f_z.toString().length,84725) !== w7K;f_z++){V9f.setMonth(V9f.getMonth() % I$x);H7M+=2;}if(r6U.U6$(H7M.toString(),H7M.toString().length,90186) !== K9n){V9f.setMonth(V9f.getMonth() - I$x);}}else if(b6U == "day"){V9f.setDate(V9f.getDate() - I$x);}else if(b6U == "week"){V9f.setDate(V9f.getDate() - 7 * I$x);}else if(b6U == "YTD"){V9f.setMonth(0);r6U.H6P(10);V9f.setDate(r6U.S40("1",0));}r6U.H6P(94);var X49=r6U.q7n(2,7,16,12011,13000);r6U.H6P(52);r6U.a9S();var z25=r6U.q7n(660,72,10);r6U.D0J(0);var U4O=r6U.S40(49,11);r6U.H6P(94);var e49=r6U.S40(14,18,3,17,42);S3p=(R87.getTime() - V9f.getTime()) / X49 / z25 / U4O / e49;r6U.H6P(116);S3p=r6U.S40(S3p,7,"5",32);W2w=this.chart.width / S3p;return W2w;};A$D.ChartEngine.prototype.displayAll=function(t$J,T8M){var U6n,F8L,D0d;var {chart:w1O, layout:x2j}=this;if(t$J && t$J.chart){w1O=t$J.chart;}function Z94(z4v){if(!z4v){U6n.quoteDriver.loadAll(w1O,i6e);}}function i6e(){var Y1C;if(!w1O.masterData || !w1O.masterData.length){return;}Y1C=A$D.clone(t$J);Y1C.dtLeft=w1O.endPoints.begin.DT;Y1C.dtRight=w1O.endPoints.end.DT;Y1C.periodicity={};Y1C.periodicity.interval=x2j.interval;Y1C.periodicity.period=x2j.periodicity;Y1C.periodicity.timeUnit=x2j.timeUnit;r6U.D0H();U6n.setRange(Y1C,function(b75){U6n.layout.setSpan={base:t$J.base,multiplier:t$J.multiplier};U6n.changeOccurred("layout");r6U.a9S();for(var c$Y in U6n.panels){U6n.calculateYAxisMargins(U6n.panels[c$Y].yAxis);}U6n.draw();if(T8M){T8M(b75);}});}U6n=this;if(!this.quoteDriver){i6e();return;}F8L=t$J.maintainPeriodicity?{period:x2j.periodicity,interval:x2j.interval,timeUnit:x2j.timeUnit}:{period:+"1",interval:"month",timeUnit:null};F8L=t$J.periodicity?t$J.periodicity:F8L;F8L=A$D.cleanPeriodicity(F8L.period,F8L.interval,F8L.timeUnit);D0d=this.needDifferentData(F8L);this.layout.periodicity=F8L.period;this.layout.interval=F8L.interval;this.layout.timeUnit=F8L.timeUnit;r6U.a9S();if(t$J.forceLoad || D0d){this.clearCurrentMarketData(this.chart);this.quoteDriver.newChart({noDraw:!![],symbol:this.chart.symbol,symbolObject:this.chart.symbolObject,chart:this.chart,initializeChart:!![],fetchMaximumBars:!!"1"},Z94);}else {if(w1O.moreAvailable || !w1O.upToDate){Z94();}else {this.createDataSet();i6e();}}};};D=l86=>{var X8z=A2IFV;X8z.a9S();var F3g;F3g=typeof _CIQ !== "undefined"?_CIQ:l86.CIQ;F3g.ChartEngine.prototype.importLayout=function(i2y,s6M){var y_x,B8I,D4G,S7V,p5a,e_4,R$_,E1j,s8v,L1M,M64,w0d,i6U,b0W,g8m,m2A,c2K,Q67,I1$,H0B,B3z,r6H,n7R,Y8d,H2v,k1O,h4X,l$k,O1G,f6h;if(!i2y){if(s6M.cb){s6M.cb();}return;}y_x=this;B8I=[];if(typeof s6M !== "object"){s6M={managePeriodicity:arguments[1],preserveTicksAndCandleWidth:arguments[2]};}D4G=this.layout;S7V=F3g.shallowClone(D4G);p5a=s6M.managePeriodicity;e_4=s6M.cb;R$_=s6M.seriesCB;E1j=s6M.noDataLoad;s8v=s6M.preserveTicksAndCandleWidth;L1M=null;if(this.exportDrawings){L1M=this.exportDrawings();this.abortDrawings();}this.currentlyImporting=!![];for(var o$I in D4G.studies){M64=D4G.studies[o$I];F3g.getFn("Studies.removeStudy")(this,M64);}this.overlays={};w0d=F3g.shallowClone(this.panels);this.panels={};i6U=F3g.clone(i2y);D4G.periodicity=S7V.periodicity;function E$1(B9v){var E1c,P1I;for(var T3w=+"0";T3w < B8I.length;T3w++){E1c="yaxisL";E1c+="HS";P1I=B8I[T3w];U_Z(P1I,E1c);U_Z(P1I,"yaxisRHS");}y_x.chart.yAxis=y_x.chart.panel.yAxis;function U_Z(M_W,V_i){var c20,W5c,I48,U7J;if(!M_W[V_i] || !M_W[V_i].length){return;}c20=B9v[M_W.name];if(!c20){return;}W5c=c20[V_i];I48=new Array(W5c.length);for(var R3B=+"0";R3B < W5c.length;R3B++){U7J=M_W[V_i].indexOf(W5c[R3B].name);if(U7J > -1){I48[U7J]=W5c[R3B];}else {I48.push(W5c[R3B]);}}if(I48.length){c20[V_i]=I48.filter(c2l);}}function c2l(p4I){return !!p4I;}}D4G.interval=S7V.interval;D4G.timeUnit=S7V.timeUnit;D4G.setSpan=S7V.setSpan;function e$H(F2v){var G$F,m4f,G$k,j6L,K__;G$F="lay";G$F+="out";if(L1M){y_x.importDrawings(L1M);}y_x.currentlyImporting=!"1";if(F2v){return;}j6L=[];for(var k_w in y_x.chart.series){K__="s";K__+="tu";K__+="dy";if(!y_x.removeSeries)break;G$k=y_x.chart.series[k_w];if(G$k.parameters.bucket == K__){m4f=!!({});y_x.removeSeries(G$k);j6L.push(G$k);}}for(var m2U=0;m2U < j6L.length;m2U++){G$k=j6L[m2U];y_x.addSeries(G$k.id,G$k.parameters,X1C);}if(!m4f){y_x.draw();}y_x.updateListeners(G$F);function X1C(){y_x.createDataSet();E$1(y_x.panels);y_x.calculateYAxisPositions();y_x.draw();}X8z.D0H();y_x.changeOccurred("layout");;}D4G.range=S7V.range;if(s8v){D4G.candleWidth=S7V.candleWidth;}else {if(!D4G.candleWidth){D4G.candleWidth=+"8";}}this.setCandleWidth(D4G.candleWidth);if(D4G.flipped){this.flipChart(D4G.flipped);}b0W=i6U.panels;Q67=function(o2I,a9B){X8z.a9S();return o2I.index < a9B.index?-1:"1" ^ 0;};for(g8m in b0W){if(!(("index" in b0W[g8m]))){Q67=null;}m2A=b0W[g8m];m2A.name=g8m;B8I.push(m2A);}D4G.panels={};I1$=null;if(B8I.length > 0){if(Q67){B8I.sort(Q67);}for(var h_M="0" >> 64;h_M < B8I.length;++h_M){m2A=B8I[h_M];c2K=m2A.yAxis?new F3g.ChartEngine.YAxis(m2A.yAxis):null;this.stackPanel(m2A.display,m2A.name,m2A.percent,m2A.chartName,c2K);if(m2A.soloing){I1$=this.panels[m2A.name];}}}if(F3g.isEmpty(b0W)){this.stackPanel("chart","chart",1,"chart");}this.resizeCanvas();for(var c48 in w0d){H0B=w0d[c48];B3z=this.panels[c48];if(B3z){this.container.removeChild(B3z.holder);if(H0B.handle){this.container.removeChild(H0B.handle);}r6H={holder:!![],subholder:!!"1",display:!"",icons:!0};for(var S6f in r6H){B3z[S6f]=H0B[S6f];}this.configurePanelControls(B3z);if(H0B.chart.panel == H0B){H0B.chart.panel=B3z;};}else {this.privateDeletePanel(H0B);}}this.chart.panel=this.panels.chart;E$1(this.panels);F3g.dataBindSafeAssignment(D4G,F3g.clone(i6U));n7R=F3g.clone(D4G.studies);delete D4G.studies;for(var k_a in n7R){Y8d=n7R[k_a];F3g.getFn("Studies.addStudy")(this,Y8d.type,Y8d.inputs,Y8d.outputs,Y8d.parameters,Y8d.panel);}if(this.extendedHours){this.extendedHours.prepare(D4G.extended,D4G.marketSessions);}if(typeof D4G.chartType == "undefined"){D4G.chartType="line";}this.setMainSeriesRenderer();if(I1$){this.panelSolo(I1$);}this.adjustPanelPositions();E$1(this.panels);this.storePanels();if(!E1j){if(i6U.symbols && i6U.symbols.length){H2v={chart:this.chart};if(!s8v && p5a && i6U.range && Object.keys(i6U.range).length){H2v.range=i6U.range;}else if(!s8v && p5a && i6U.setSpan && Object.keys(i6U.setSpan).length){H2v.span=i6U.setSpan;}else if(p5a && i6U.interval){H2v.periodicity={interval:i6U.interval,period:i6U.periodicity,timeUnit:i6U.timeUnit};}else {H2v.periodicity={interval:S7V.interval,period:S7V.periodicity,timeUnit:S7V.timeUnit};}k1O=i6U.symbols[0].symbolObject || i6U.symbols[0].symbol;this.loadChart(k1O,H2v,function(Z8L){X8z.a9S();var Y4Y,m9Q;if(!Z8L){for(var L0n,u0p=1;u0p < i6U.symbols.length;++u0p){if(!y_x.addSeries)break;L0n=i6U.symbols[u0p];if(!L0n.parameters){L0n.parameters={};}Y4Y=F3g.clone(L0n.parameters);if(this.panels[Y4Y.panel]){y_x.addSeries(L0n.id,Y4Y,R9m);}else {m9Q="Warning: Seri";m9Q+="es \"";console.warn(m9Q + L0n.id + '" could not be imported due to a missing corresponding panel "' + Y4Y.panel + ((2540,+"616") >= "2100" * 1?+"578.57" <= 8680?(7.32e+3,"S"):!!0:'"'));}}if(i6U.chartScale){y_x.setChartScale(i6U.chartScale);}}e$H(Z8L);if(e_4){e_4.apply(null,arguments);}});return;}if(p5a){if(!s8v && this.setRange){h4X=i6U.range;if(h4X && Object.keys(h4X).length && this.chart.symbol){this.setRange(h4X,function(){e$H();if(e_4){e_4();}});return;}else if(i6U.setSpan && Object.keys(i6U.setSpan).length && this.chart.symbol){this.setSpan(i6U.setSpan,function(){X8z.a9S();e$H();if(e_4){e_4();}});return;}}l$k=i6U.interval;O1G=i6U.periodicity;f6h=i6U.timeUnit;if(isNaN(O1G)){O1G=1;}if(!l$k){l$k="day";}this.setPeriodicity({period:O1G,interval:l$k,timeUnit:f6h},function(){e$H();if(e_4){e_4();}});return;}}if(p5a){D4G.periodicity=i6U.periodicity;D4G.interval=i6U.interval;D4G.timeUnit=i6U.timeUnit;D4G.setSpan=i6U.setSpan;}this.createDataSet();if(!s8v){this.home();}function R9m(){y_x.calculateYAxisPositions();E$1(y_x.panels);if(R$_){R$_();}}e$H();if(e_4){e_4();}};F3g.ChartEngine.prototype.exportLayout=function(Z8Y){X8z.D0H();var c6l,s6E,r1f,w0V,J83,H9Y,B_R,l5w;c6l={};for(var g2X in this.layout){s6E="pane";s6E+="ls";r1f="stu";r1f+="d";r1f+="ies";if(g2X != "studies" && g2X != "panels" && g2X != "drawing"){c6l[g2X]=F3g.clone(this.layout[g2X]);}else if(g2X == r1f){c6l.studies={};}else if(g2X == s6E){c6l.panels={};}}w0V=0;for(var I5N in this.panels){J83=this.panels[I5N];if(J83.exportable === ![])continue;H9Y=c6l.panels[I5N]={};H9Y.percent=J83.percent;H9Y.display=J83.display;H9Y.chartName=J83.chart.name;H9Y.soloing=J83.soloing;H9Y.index=w0V++;H9Y.yAxis={name:J83.yAxis.name,position:J83.yAxis.position};if(J83.yaxisLHS){H9Y.yaxisLHS=h5A(J83.yaxisLHS);}if(J83.yaxisRHS){H9Y.yaxisRHS=h5A(J83.yaxisRHS);}}function h5A(L2N){var V59;V59=[];for(var m9R=0;m9R < L2N.length;m9R++){V59.push(L2N[m9R].name);}X8z.a9S();return V59;}for(var D9w in this.layout.studies){B_R=c6l.studies[D9w]={};l5w=this.layout.studies[D9w];B_R.type=l5w.type;B_R.inputs=F3g.clone(l5w.inputs);B_R.outputs=F3g.clone(l5w.outputs);B_R.panel=l5w.panel;B_R.parameters=F3g.clone(l5w.parameters);}if(Z8Y){c6l.symbols=this.getSymbols({"include-parameters":!![],"exclude-studies":!"","exclude-generated":!0});}else {delete c6l.symbols;}return c6l;};F3g.ChartEngine.prototype.importPreferences=function(N_8){F3g.extend(this.preferences,N_8);if(N_8.timeZone){this.setTimeZone(this.dataZone,N_8.timeZone);}if(N_8.language && F3g.I18N){F3g.I18N.localize(this,N_8.language);}this.changeOccurred("preferences");};F3g.ChartEngine.prototype.exportPreferences=function(){X8z.D0H();return this.preferences;};};N=m$6=>{var p8o,S9B,W9k,i3c,q1N,t05,I$$,i2v,s1q,w8y,N1H,Y$r,M34,z5d,j6q,W7j;p8o="Tr";p8o+="ue Ra";p8o+="nge";S9B="Expo";S9B+="ne";S9B+="ntial";W9k="Trian";W9k+="gular";i3c="Exponenti";i3c+="al";q1N="Expo";q1N+="ne";q1N+="ntial";t05="W";t05+="e";t05+="lles Wilder";I$$="Weigh";I$$+="t";I$$+="ed";i2v="Triangul";i2v+="ar";s1q="exponen";s1q+="tial";w8y="w";w8y+="ma";N1H="em";N1H+="a";Y$r="m";Y$r+="a";M34="u";M34+="n";M34+="defined";z5d="un";z5d+="defined";j6q=typeof _CIQ !== z5d?_CIQ:m$6.CIQ;W7j=typeof _timezoneJS !== M34?_timezoneJS:m$6.timezoneJS;if(j6q.ChartEngine){j6q.ChartEngine.prototype.rightClickOverlay=function(Q0a,L$K){var e4V,m3T;e4V="rig";e4V+="htClickOverla";e4V+="y";if(this.runPrepend("rightClickOverlay",arguments)){return;}m3T=this.overlays[Q0a];if(m3T.editFunction){m3T.editFunction(L$K);}else {this.removeOverlay(Q0a);}this.runAppend(e4V,arguments);};j6q.ChartEngine.prototype.addOverlay=function(Z5q){var e3R,O64,K6G,F_Y;e3R="a";e3R+="ddOverl";e3R+="ay";if(this.runPrepend(e3R,arguments)){return;}A2IFV.D0H();O64=+"1520886097";K6G=1981641975;F_Y=2;for(var w3o=1;A2IFV.U6$(w3o.toString(),w3o.toString().length,3782) !== O64;w3o++){this.overlays[Z5q.name]=Z5q;this.runAppend("addOverlay",arguments);F_Y+=2;}if(A2IFV.U6$(F_Y.toString(),F_Y.toString().length,5784) !== K6G){this.overlays[Z5q.name]=Z5q;this.runAppend("",arguments);}};j6q.ChartEngine.prototype.removeOverlay=function(Q8D){var C23,S7P,p0v,N4k,V1r,Q2z,y4A;C23="remo";C23+="veOv";C23+="erl";C23+="ay";if(this.runPrepend(C23,arguments)){return;}S7P=this.overlays[Q8D];for(var I$E in this.overlays){p0v="F";p0v+="i";p0v+="el";p0v+="d";N4k=this.overlays[I$E];V1r=[p0v];if(j6q.Studies){V1r=j6q.Studies.getFieldInputs(N4k);}for(var x4p="0" ^ 0;x4p < V1r.length;x4p++){if(S7P.outputMap[N4k.inputs[V1r[x4p]]]){this.removeOverlay(N4k.name);}}}A2IFV.a9S();if(S7P){this.cleanupRemovedStudy(S7P);Q2z=this.panels[S7P.panel];delete this.overlays[Q8D];this.checkForEmptyPanel(S7P.panel);}if(!this.currentlyImporting){y4A="lay";y4A+="out";this.displaySticky();this.createDataSet();this.changeOccurred(y4A);}this.resetDynamicYAxis();this.runAppend("removeOverlay",arguments);};j6q.ChartEngine.prototype.cleanupRemovedStudy=function(i94){if(!i94){return;}if(i94.study.removeFN){i94.study.removeFN(this,i94);}for(var f7Z in this.plugins){if(f7Z.indexOf("{" + i94.id + (+"459.68" != (541.96,9440)?"}":265.78)) > -1){delete this.plugins[f7Z];}}if(this.layout.studies){delete this.layout.studies[i94.name];}delete this.overlays[i94.name];if(j6q.Studies){j6q.Studies.removeStudySymbols(i94,this);}A2IFV.D0H();if(this.quoteDriver){this.quoteDriver.updateSubscriptions();}};}j6q.Studies=j6q.Studies || (function(){});j6q.Studies.DEFAULT_INPUTS={Period:14};j6q.Studies.DEFAULT_OUTPUTS={Result:"auto"};j6q.Studies.sortForProcessing=e1Y=>{var g4M,Q8H;g4M=[];function S_u(I7b,x6L){I7b.forEach(d_z=>{var g43;if(x6L.indexOf(d_z) == -+"1"){g43=d_z.getDependents(e1Y);if(g43.length){S_u(g43,x6L);}x6L.unshift(d_z);}});}Q8H=e1Y.layout.studies;if(Q8H){S_u(Object.values(Q8H),g4M);}return g4M;};j6q.Studies.StudyDescriptor=function(a_6,T_d,P2v,W3y,Z1X,c76){var g9y,V_T,k6H;g9y="u";g9y+="nde";g9y+="fin";g9y+="ed";V_T="Cl";V_T+="o";V_T+="s";V_T+="e";this.name=a_6;this.type=T_d;this.panel=P2v;this.inputs=W3y;this.outputs=Z1X;this.parameters=c76;this.outputMap={};this.min=null;this.max=null;A2IFV.D0J(1);this.startFrom=A2IFV.q7n(1,"0");this.subField=V_T;k6H=j6q.Studies.studyLibrary[T_d];if(!k6H){k6H={};if(P2v == "chart" || !P2v && c76 && c76.chartName == "chart"){this.overlay=!"";}}if(typeof k6H.inputs == "undefined"){k6H.inputs=j6q.clone(j6q.Studies.DEFAULT_INPUTS);}if(typeof k6H.outputs == g9y){k6H.outputs=j6q.clone(j6q.Studies.DEFAULT_OUTPUTS);}this.study=k6H;A2IFV.D0H();this.libraryEntry=k6H;;};j6q.Studies.StudyDescriptor.prototype.getYAxis=function(Z0h){var p7C,I$3,S5o;p7C=this.yAxis;if(this.parameters){I$3=this.parameters.yaxisDisplayValue;}if(!p7C){S5o=Z0h.panels[this.panel];if(S5o){p7C=Z0h.getYAxisByName(S5o,I$3) || Z0h.getYAxisByName(S5o,this.name) || S5o.yAxis;}}if(!p7C){p7C=Z0h.getYAxisByName(Z0h.chart.panel,I$3) || Z0h.chart.panel.yAxis;}return p7C;};j6q.Studies.StudyDescriptor.prototype.getContext=function(G19){return G19.chart.context;};j6q.Studies.StudyDescriptor.prototype.getDependents=function(v0$,x9J){var M6W,e2L,K3H;M6W=[];for(var O8N in v0$.layout.studies){e2L=v0$.layout.studies[O8N];if(e2L == this)continue;K3H=j6q.Studies.getFieldInputs(e2L);for(var x4v=0;x4v < K3H.length;x4v++){if(e2L.inputs[K3H[x4v]].includes(this.name)){if(x9J && e2L.parameters && e2L.parameters.panelName)continue;M6W.push(e2L);M6W=M6W.concat(e2L.getDependents(v0$,x9J));break;}}}A2IFV.a9S();return M6W;};j6q.Studies.StudyDescriptor.prototype.undraggable=function(O0q){var W8Y;W8Y=this.study.attributes;if(W8Y){if(W8Y.panelName && W8Y.panelName.hidden){return !!"1";}if(W8Y.yaxisDisplayValue && W8Y.yaxisDisplayValue.hidden){return !"";}}return !!0;};j6q.Studies.StudyDescriptor.prototype.appendFutureTicks=function(J4H,h08){var X3c,v7l,K0K,E2t;X3c=J4H.chart.scrubbed;A2IFV.a9S();if(!X3c.length){return;}v7l=J4H.standardMarketIterator(X3c[X3c.length - 1].DT);for(K0K=h08.length - ("1" >> 0);K0K >= 0;K0K--){E2t=h08[K0K];for(var W$9 in E2t){if(E2t[W$9] || E2t[W$9] === 0){K0K=-1;break;}}if(K0K == -1)break;h08.pop();}for(K0K=0;K0K < h08.length;K0K++){E2t=h08[K0K];if(!E2t.DT){E2t.DT=v7l.next();}if(!E2t.displayDate){J4H.setDisplayDate(E2t);}E2t.futureTick=!![];X3c.push(E2t);}};j6q.Studies.generateID=function(l26,N2j,B2V,k0I,I8O){var r9M=A2IFV;var Q4_,j6h,D7C,P3z,e0T,l2k,f$a,i3S;Q4_=j6q.Studies.studyLibrary[N2j];r9M.H6P(37);j6h=r9M.q7n("\u200c","\u200c",I8O || N2j);D7C=j6h;if(Q4_){if(Q4_.customRemoval){return D7C;}}r9M.D0H();if(!j6q.isEmpty(B2V)){P3z=!!1;for(var l1U in B2V){e0T="Anc";e0T+="h";e0T+="or Selector";if(["id","display","Shading",e0T].includes(l1U)){continue;}l2k=B2V[l1U];if(l2k == "field")continue;l2k=l2k.toString();if(j6q.Studies.prettify[l2k] !== undefined){l2k=j6q.Studies.prettify[l2k];}if(P3z){f$a=" ";f$a+="(";P3z=!!0;D7C+=f$a;}else {if(l2k){D7C+=",";}}D7C+=l2k;}if(!P3z){D7C+=(372.94,+"5750") == 459?6814 === "9149" << 64?6.33e+3:("e",0x24ee):")";}}if(k0I && k0I.indexOf(D7C) === 0){return k0I;}if(l26.layout.studies && l26.layout.studies[D7C]){for(var t3A=2;t3A < 50;t3A++){r9M.D0J(37);i3S=r9M.q7n(t3A,D7C,446.63 == 522.61?!!({}):"-");if(!l26.layout.studies[i3S]){D7C=i3S;break;}}}return D7C;};j6q.Studies.DialogHelper=function(G1K){var e_2=A2IFV;var p2N,H0p,z5X,h1I,m7q,m8N,g6E,t91,F7F,m9h,Z4x,u$X,q1x,M9h,E4D,A7X,H65,g6U,Q3K,L2m,d8I,s0R,u93,S6O,v3D,A6C,P3P,j6g,e$6,g0w,e8r,E$2,l1w,F17,v$y,A4$,a3Y,D$l,g1H,M4I,z7Q,a6L,m6J,l7B,B8u;p2N="u";p2N+="ndefi";p2N+="n";p2N+="ed";H0p=this.stx=G1K.stx;z5X=this.sd=G1K.sd;this.name=z5X?z5X.type:G1K.name;function V7Z(y$3,k4e){if(!this.attributes[y$3]){this.attributes[y$3]={};}if(k4e){this.attributes[y$3].hidden=!!({});}}this.signal=1;this.inputs=[];function U$e(X27){var Z9n,L6Z,U47,Y7F;Z9n="se";Z9n+="lect";L6Z={};U47=X27.defaults;Y7F={name:X27.name,heading:H0p.translateIf(X27.label),defaultValue:U47[0],value:X27.value,options:L6Z,type:Z9n};for(var w7P=0;w7P < U47.length;w7P++){L6Z[U47[w7P]]=H0p.translateIf(U47[w7P]);}if(X27.color !== undefined){Y7F.defaultColor=H0p.defaultColor;Y7F.color=X27.color;}return Y7F;}this.outputs=[];this.parameters=[];h1I=this.libraryEntry=z5X?z5X.study:j6q.Studies.studyLibrary[G1K.name];if(typeof h1I.inputs == p2N){h1I.inputs=j6q.clone(j6q.Studies.DEFAULT_INPUTS);}if(typeof h1I.outputs == "undefined"){h1I.outputs=j6q.clone(j6q.Studies.DEFAULT_OUTPUTS);}m7q=z5X && H0p.panels[z5X.panel]?H0p.panels[z5X.panel]:H0p.chart.panel;m8N=m7q.chart;this.title=H0p.translateIf(h1I.name);this.attributes=j6q.clone(h1I.attributes);if(!this.attributes){this.attributes={};}for(var H8a in this.attributes){g6E=this.attributes[H8a];for(var k62 in g6E){if(typeof g6E[k62] == "function"){g6E[k62]=g6E[k62].call(z5X);}}}t91=[];F7F=H0p.layout.studies;m9h=[];if(z5X){m9h=Array.prototype.concat(z5X,z5X.getDependents(H0p));}function q20(l$7){var Y7T,O8G;Y7T="a";Y7T+="li";function q$1(P5Y,r6B){e_2.a9S();return "Panel " + r6B.toString();}Y7T+="a";Y7T+="s";if(l1w == Y7T){O8G=1;for(var Y3W in H0p.panels){if(Y3W == l$7){return q$1(Y3W,O8G);}O8G++;}}return l$7;}for(var l3u in F7F){if(m9h.indexOf(F7F[l3u]) > -1)continue;for(var z4I in F7F[l3u].outputMap){t91.push(z4I);}}function P_T(N5u){var u9z,V18;u9z="checkb";u9z+="ox";e_2.D0H();V18={name:N5u.name,heading:H0p.translateIf(N5u.label),defaultValue:N5u.defaults,value:N5u.value,type:u9z};return V18;}for(var T0B in h1I.inputs){Z4x={};this.inputs.push(Z4x);Z4x.name=T0B;Z4x.heading=H0p.translateIf(T0B);u$X=h1I.inputs[T0B];if(z5X && z5X.inputs && typeof z5X.inputs[T0B] != "undefined" && z5X.inputs[T0B] !== null){Z4x.value=z5X.inputs[T0B];}else {Z4x.value=h1I.inputs[T0B];}Z4x.defaultInput=h1I.inputs[T0B];if(!this.attributes[T0B]){this.attributes[T0B]=j6q.Studies.inputAttributeDefaultGenerator(Z4x.defaultInput);}if(u$X.constructor == Number){Z4x.type="number";}else if(u$X.constructor == String){q1x=j6q.Studies.movingAverageHelper(H0p,Z4x.defaultInput);if(q1x){M9h="o";M9h+="p";M9h+="t";M9h+="ions";Z4x.type="select";Z4x.defaultInput=q1x;E4D=j6q.Studies.movingAverageHelper(H0p,Z4x.value);if(!E4D){E4D=Z4x.value;}Z4x.value=E4D;Z4x.options=j6q.Studies.movingAverageHelper(H0p,M9h);}else if(u$X == "field"){A7X="hl/";A7X+="2";Z4x.type="select";Z4x.options={};H65=["Open","High","Low","Close","Adj_Close",A7X,"hlc/3","hlcc/4","ohlc/4",m8N.defaultPlotField].concat(t91);for(var s6A=0;s6A < H65.length;s6A++){g6U=H65[s6A];Z4x.options[g6U]=H0p.translateIf(g6U);}if(Z4x.value == "field"){Z4x.value="Close";}if(Z4x.defaultInput == "field"){Z4x.defaultInput="Close";}}else {Q3K="hh:mm";Q3K+=":ss";L2m="yyyy-m";L2m+="m-dd";d8I="t";d8I+="e";d8I+="x";d8I+="t";Z4x.type=d8I;if(this.attributes[T0B].placeholder == L2m){Z4x.type="date";}else if(this.attributes[T0B].placeholder == Q3K){Z4x.type="time";}}}else if(u$X.constructor == Boolean){Z4x.type="checkbox";if(Z4x.value === !0 || Z4x.value == "true" || Z4x.value == "on"){Z4x.value=!!1;}}else if(u$X.constructor == Array){Z4x.type="select";Z4x.options={};for(var X3s=0;X3s < u$X.length;X3s++){Z4x.options[u$X[X3s]]=H0p.translateIf(u$X[X3s]);}if(Z4x.value.constructor == Array){Z4x.value=Z4x.value[0];}if(this.attributes[T0B].defaultSelected){Z4x.defaultInput=this.attributes[T0B].defaultSelected;}else {e_2.D0J(21);Z4x.defaultInput=u$X[e_2.S40("0",0)];}}}this.dateTimeInputs=[];for(var H9_=0;H9_ < this.inputs.length;H9_++){s0R="d";s0R+="at";s0R+="e";u93=this.inputs[H9_];if(u93.type == s0R){S6O=" ";S6O+="Date";v3D=u93.name.substring(0,u93.name.indexOf(S6O));for(var t9e=0;t9e < this.inputs.length;t9e++){A6C="t";A6C+="i";A6C+="m";A6C+="e";P3P=this.inputs[t9e];if(P3P.type == A6C){if(P3P.name == v3D + " Time"){this.dateTimeInputs.push(v3D);break;}}}}}this.adjustInputTimesForDisplayZone();for(T0B in h1I.outputs){j6g={name:T0B,heading:H0p.translateIf(T0B)};j6g.color=j6g.defaultOutput=h1I.outputs[T0B];if(z5X && z5X.outputs && z5X.outputs[T0B]){j6g.color=z5X.outputs[T0B];}if(j6g.color == "auto"){j6g.color=H0p.defaultColor;}this.outputs.push(j6g);}e$6=z5X?z5X.parameters:null;if(h1I.parameters){g0w=h1I.parameters.init;if(g0w){if(g0w.studyOverZonesEnabled !== undefined){e8r={name:"studyOverZones",heading:H0p.translateIf("Show Zones"),defaultValue:g0w.studyOverZonesEnabled,value:g0w.studyOverZonesEnabled};if(e$6 && (e$6.studyOverZonesEnabled || e$6.studyOverZonesEnabled === !({}))){e8r.value=e$6.studyOverZonesEnabled;}e8r.type="checkbox";this.parameters.push(e8r);}if(g0w.studyOverBoughtValue !== undefined){E$2="t";E$2+="e";E$2+="x";E$2+="t";e8r={name:"studyOverBought",heading:H0p.translateIf("OverBought"),defaultValue:g0w.studyOverBoughtValue,value:g0w.studyOverBoughtValue,defaultColor:g0w.studyOverBoughtColor,color:g0w.studyOverBoughtColor};if(e$6 && e$6.studyOverBoughtValue){e8r.value=e$6.studyOverBoughtValue;}if(e$6 && e$6.studyOverBoughtColor){e8r.color=e$6.studyOverBoughtColor;}if(e8r.color == "auto"){e8r.color=H0p.defaultColor;}e8r.type=E$2;this.parameters.push(e8r);}if(g0w.studyOverSoldValue !== undefined){e8r={name:"studyOverSold",heading:H0p.translateIf("OverSold"),defaultValue:g0w.studyOverSoldValue,value:g0w.studyOverSoldValue,defaultColor:g0w.studyOverSoldColor,color:g0w.studyOverSoldColor};if(e$6 && e$6.studyOverSoldValue){e8r.value=e$6.studyOverSoldValue;}if(e$6 && e$6.studyOverSoldColor){e8r.color=e$6.studyOverSoldColor;}if(e8r.color == "auto"){e8r.color=H0p.defaultColor;}e8r.type="text";this.parameters.push(e8r);}if(!this.attributes.studyOverBoughtValue){this.attributes.studyOverBoughtValue={};}if(!this.attributes.studyOverSoldValue){this.attributes.studyOverSoldValue={};}}}l1w=this.panelSelect=G1K.panelSelect;F17=this.axisSelect=G1K.axisSelect;e_2.a9S();if(G1K.addWhenDone){F17=l1w=!({});}if(F17 || l1w){v$y="yaxisDis";v$y+="play";v$y+="Valu";v$y+="e";if(!z5X){z5X=j6q.Studies.addStudy(H0p,G1K.name,null,null,{calculateOnly:!!({})});j6q.Studies.removeStudy(H0p,z5X);}if(l1w){A4$="Sho";A4$+="w";A4$+=" ";A4$+="as Underlay";a3Y="A";a3Y+="uto";this.parameters.push(U$e({label:"Panel",name:"panelName",defaults:(function(){var b$b;b$b=[];e_2.a9S();b$b.push("Auto");for(var O4N in H0p.panels){if(O4N != z5X.panel || !e$6 || !e$6.panelName){b$b.push(q20(O4N));}}if(!H0p.checkForEmptyPanel(z5X.panel,!![],z5X)){b$b.push("New panel");}return b$b;})(),value:e$6 && e$6.panelName?q20(e$6.panelName):a3Y}),P_T({label:A4$,name:"underlay",defaults:!!"",value:z5X.underlay || z5X.parameters && z5X.parameters.underlayEnabled}));}e_2.H6P(1);D$l=-e_2.S40(1,"1361208857");e_2.D0J(1);g1H=-e_2.q7n(1,"729350451");M4I=2;for(var o5F="1" - 0;e_2.U6$(o5F.toString(),o5F.toString().length,66596) !== D$l;o5F++){z7Q=H0p.getYAxisByName(m7q,z5X.name);M4I+=2;}if(e_2.U6$(M4I.toString(),M4I.toString().length,59405) !== g1H){z7Q=H0p.getYAxisByName(m7q,z5X.name);}if(F17){a6L="flip";a6L+="p";a6L+="ed";m6J="I";m6J+="nvert Y-Axi";m6J+="s";l7B="d";l7B+="ef";l7B+="au";l7B+="lt";B8u="Y-A";B8u+="x";B8u+="is";this.parameters.push(U$e({label:B8u,name:"yaxisDisplay",defaults:(function(){var e9t,S7e,X2g,k2E,K2m;e9t="shar";e9t+="ed";S7e="lef";S7e+="t";X2g="r";X2g+="i";X2g+="gh";X2g+="t";k2E=m7q.yaxisLHS.concat(m7q.yaxisRHS);K2m=[];K2m.push("default",X2g,S7e,"none",e9t);for(var n2d=+"0";n2d < k2E.length;n2d++){if(k2E[n2d] != z7Q){K2m.push(k2E[n2d].name);}}return K2m;})(),value:e$6 && e$6.yaxisDisplayValue || z7Q && z7Q.position || (z5X.panel != z5X.name?"shared":m7q.yAxis.position || l7B),color:z7Q && z7Q.textStyle?z7Q.textStyle:"auto"}),P_T({label:m6J,name:a6L,defaults:![],value:e$6?e$6.flippedEnabled:z7Q?z7Q.flipped:![]}));}V7Z.call(this,"flippedEnabled",!z7Q && z5X.panel != z5X.name);V7Z.call(this,"underlayEnabled",h1I.underlay);V7Z.call(this,"panelName",h1I.seriesFN === null);V7Z.call(this,v$y,h1I.seriesFN === null || h1I.yAxis && h1I.yAxis.noDraw);}};j6q.Studies.DialogHelper.prototype.updateStudy=function(z9n){var p4n,a_q,p3q,u09;p4n={};a_q=this.sd;p3q=this.libraryEntry;if(!p3q){p3q={};}if(!a_q){a_q=p3q;}p4n.inputs=j6q.clone(a_q.inputs);p4n.outputs=j6q.clone(a_q.outputs);p4n.parameters=j6q.clone(a_q.parameters);function q2g(k3n){var c88=A2IFV;var f7B,O$k,p6o,R9w;if(this.panelSelect == "alias"){f7B=I0B(k3n);if(f7B){for(var D83 in this.stx.panels){if(!--f7B){return D83;}}}}O$k=-1771844819;p6o=-225640795;c88.H6P(21);R9w=c88.q7n("2",0);function I0B(q3I){c88.D0H();var e6m;e6m=q3I.match(/.* (\d)/);return e6m && e6m[+"1"];}for(var h0$=1;c88.U6$(h0$.toString(),h0$.toString().length,84155) !== O$k;h0$++){return k3n;}if(c88.Z2Z(R9w.toString(),R9w.toString().length,+"20071") !== p6o){return k3n;}}this.adjustInputTimesForDisplayZone(z9n);if(z9n.parameters && z9n.parameters.panelName){z9n.parameters.panelName=q2g.call(this,z9n.parameters.panelName);}j6q.extend(p4n,z9n);if(!p4n.parameters){p4n.parameters={};}if(p4n.inputs && p4n.inputs.id){a_q=j6q.Studies.replaceStudy(this.stx,p4n.inputs.id,this.name,p4n.inputs,p4n.outputs,p4n.parameters,null,a_q.study);}else {a_q=j6q.Studies.addStudy(this.stx,this.name,p4n.inputs,p4n.outputs,p4n.parameters,null,a_q.study);}u09=new j6q.Studies.DialogHelper({stx:this.stx,sd:a_q,axisSelect:this.axisSelect,panelSelect:this.panelSelect});for(var B$g in u09){if(B$g != "signal"){this[B$g]=u09[B$g];}}A2IFV.D0H();this.signal*=-1;;};j6q.Studies.DialogHelper.prototype.adjustInputTimesForDisplayZone=function(H58){var t6G=A2IFV;var X4r,q_n,k1t,R7J,j7_,g2V,z6x,B2N,Z1m,y2_;if(this.stx.displayZone){for(var i9J=0;i9J < this.dateTimeInputs.length;i9J++){X4r=this.dateTimeInputs[i9J];g2V="";if(H58 && H58.inputs){t6G.H6P(0);k1t=H58.inputs[t6G.S40(X4r," Date")];t6G.D0J(0);R7J=H58.inputs[t6G.S40(X4r," Time")];if(k1t){g2V=k1t;}if(R7J){g2V+=R7J;}}for(q_n=0;q_n < this.inputs.length;q_n++){z6x=" D";z6x+="ate";j7_=this.inputs[q_n];if(!k1t && k1t !== "" && j7_.name == X4r + z6x){g2V=j7_.value + g2V;}else if(!R7J && R7J !== "" && j7_.name == X4r + " Time"){g2V+=j7_.value;}}g2V=g2V.replace(/\D/g,"");if(g2V.length < 12){return;}B2N=j6q.strToDateTime(g2V);if(!isNaN(B2N.valueOf())){if(H58){if(!H58.inputs){H58.inputs={};}Z1m=j6q.convertTimeZone(B2N,this.stx.displayZone);t6G.D0J(0);H58.inputs[t6G.q7n(X4r," Date")]=j6q.yyyymmdd(Z1m);t6G.H6P(0);H58.inputs[t6G.S40(X4r," Time")]=j6q.hhmmss(Z1m);}else {Z1m=j6q.convertTimeZone(B2N,null,this.stx.displayZone);for(q_n=0;q_n < this.inputs.length;q_n++){y2_=" Tim";y2_+="e";j7_=this.inputs[q_n];if(j7_.name == X4r + " Date"){j7_.value=j6q.yyyymmdd(Z1m);}if(j7_.name == X4r + y2_){j7_.value=j6q.hhmmss(Z1m);}}}}}}};j6q.Studies.prepareStudy=function(d$s,M55,U9N){var j71=A2IFV;var d9p;d9p="undefin";d9p+="e";d9p+="d";if(typeof M55.calculateFN == d9p){M55.useRawValues=!!({});}if(j6q.isEmpty(U9N.outputMap)){for(var O3Q in U9N.outputs){if(M55.useRawValues){U9N.outputMap[O3Q]=O3Q;}else {j71.D0J(62);var f2R=j71.S40(11,423,7,42);j71.D0J(101);var C6d=j71.S40(4,14,11,4286,55804);j71.H6P(57);var u0F=j71.S40(4772,9548,6,2);j71.D0J(90);var F7B=j71.q7n(113050,7106,2,8);j71.D0J(0);var B5L=j71.q7n(1040,10);j71.D0J(52);var r0P=j71.q7n(67090,3532,20);j71.D0J(0);var o0o=j71.S40(489,3421);j71.H6P(109);var P3M=j71.q7n(2,602,20,10,6558);j71.D0J(117);var g51=j71.S40(8,5,20,16);j71.H6P(118);var c2M=j71.q7n(780,15,65,15,325);j71.D0J(15);var n$X=j71.q7n(10,1160,30);U9N.outputMap[O3Q + (("4849" | f2R) > C6d?" ":(u0F,F7B) !== (B5L,"3990" | 0)?r0P < (o0o,P3M)?"0x1ca7" * g51:(c2M,"k"):(n$X,+"5.07e+3")) + U9N.name]=O3Q;}}}};j6q.Studies.rejiggerDerivedStudies=function(G4I,X_T,U5i){var D6h,B4j,E5Z,x4N,e69,L87,V9Z,Y38,E3S;D6h=X_T.name;B4j=X_T.panel;E5Z=X_T.getDependents(G4I);for(var s6h=+"0";s6h < E5Z.length;s6h++){x4N=E5Z[s6h];e69=j6q.clone(x4N.inputs);L87=e69.id;if(!L87)continue;V9Z=!({});Y38=j6q.Studies.getFieldInputs(x4N);for(var R1B=0;R1B < Y38.length;R1B++){e69[Y38[R1B]]=e69[Y38[R1B]].replace(D6h,U5i);}E3S=j6q.Studies.replaceStudy(G4I,L87,x4N.type,e69,x4N.outputs,j6q.extend(x4N.parameters,{rejiggering:!![]}),null,x4N.study);delete E3S.parameters.rejiggering;}};j6q.Studies.removeStudySymbols=function(v6F,m0A){A2IFV.D0H();if(v6F.series){for(var R$m in v6F.series){m0A.deleteSeries(v6F.series[R$m],null,{action:"remove-study"});}};};j6q.Studies.replaceStudy=function(S8X,l3n,r80,M46,p99,q2x,H8d,A7Z){var K73,X2v,b_z,V2z;if(!q2x){q2x={};}if(l3n){q2x.replaceID=l3n;}l3n=q2x.replaceID;K73=S8X.layout.studies[l3n];j6q.Studies.removeStudySymbols(K73,S8X);if(K73.attribution){S8X.removeFromHolder(K73.attribution.marker);}if(S8X.quoteDriver){S8X.quoteDriver.updateSubscriptions();}if(M46){if(M46.id == M46.display){delete M46.display;}delete M46.id;}X2v=j6q.Studies.addStudy(S8X,r80,M46,p99,q2x,H8d,A7Z);X2v.highlight=K73.highlight;X2v.uniqueId=K73.uniqueId;V2z={};for(b_z in S8X.layout.studies){if(b_z == l3n){V2z[X2v.name]=X2v;}else {V2z[b_z]=S8X.layout.studies[b_z];}}S8X.layout.studies=V2z;V2z={};for(b_z in S8X.overlays){if(b_z == l3n){if(X2v.overlay || X2v.underlay){V2z[X2v.name]=X2v;}}else {V2z[b_z]=S8X.overlays[b_z];}}S8X.overlays=V2z;if(!S8X.overlays[X2v.name] && (X2v.overlay || X2v.underlay)){S8X.addOverlay(X2v);}S8X.checkForEmptyPanel(K73.panel);if(!q2x.rejiggering){S8X.initializeDisplay(S8X.chart);j6q.Studies.rejiggerDerivedStudies(S8X,K73,X2v.inputs.id,X2v.panel);S8X.changeOccurred("layout");if(!S8X.currentlyImporting && !q2x.calculateOnly && X2v.chart.dataSet){S8X.createDataSet(null,X2v.chart);}S8X.draw();}j6q.transferObject(K73,X2v);S8X.layout.studies[X2v.name]=K73;S8X.overlays[X2v.name]=K73;S8X.chart.state.studies.sorted=null;return K73;};j6q.Studies.addStudy=function(r8$,H4M,v1a,b7R,Y0N,X$i,l36){var I9I=A2IFV;var E2y,k6W,Z_W,a$e,K1h,E0f,R_9,p1K,v4D,j26,r5G,Z58,j6H;E2y=l36?l36:j6q.Studies.studyLibrary[H4M];if(!Y0N){Y0N={};}if(E2y){if(E2y.inputs){k6W=j6q.clone(E2y.inputs);for(var P6t in k6W){if(k6W[P6t] instanceof Array){if(E2y.attributes && E2y.attributes[P6t] && E2y.attributes[P6t].defaultSelected){k6W[P6t]=E2y.attributes[P6t].defaultSelected;}else {k6W[P6t]=k6W[P6t][0];}}}v1a=j6q.extend(k6W,v1a);}if(E2y.outputs){b7R=j6q.extend(j6q.clone(E2y.outputs),b7R);}Z_W=E2y.parameters;if(Z_W && Z_W.init){Y0N=j6q.extend(j6q.clone(Z_W.init),Y0N);}if(Z_W && !Y0N.display){Y0N.display=Z_W.display;}}if(!v1a){v1a=j6q.clone(j6q.Studies.DEFAULT_INPUTS);}if(!b7R){b7R=j6q.clone(j6q.Studies.DEFAULT_OUTPUTS);}if(!Y0N.chartName){Y0N.chartName="chart";}if(Y0N.panelName == "Auto" || Y0N.panelName == "Default panel"){Y0N.panelName="";}if(v1a.Period < 1){v1a.Period=1;}a$e=null;if(!r8$.layout.studies){r8$.layout.studies={};}if(E2y && E2y.initializeFN){a$e=E2y.initializeFN(r8$,H4M,v1a,b7R,Y0N,X$i,l36);}else {a$e=j6q.Studies.initializeFN(r8$,H4M,v1a,b7R,Y0N,X$i,l36);}if(!a$e){I9I.H6P(0);console.log(I9I.q7n("CIQ.Studies.addStudy: initializeFN() returned null for ",H4M));return;}l36=a$e.study;a$e.chart=r8$.charts[Y0N.chartName];a$e.type=H4M;a$e.permanent=l36.permanent;a$e.customLegend=l36.customLegend;a$e.uniqueId=j6q.uniqueID();j6q.Studies.prepareStudy(r8$,l36,a$e);K1h=r8$.chart.state.studies;if(!K1h){K1h=r8$.chart.state.studies={};}K1h.sorted=null;if(!Y0N.replaceID){r8$.layout.studies[a$e.inputs.id]=a$e;if(a$e.overlay || a$e.underlay){r8$.addOverlay(a$e);}if(!r8$.currentlyImporting && !Y0N.calculateOnly && a$e.chart.dataSet){r8$.createDataSet(null,a$e.chart);}}else {E0f=!0;delete Y0N.replaceID;}if(r8$.quoteDriver){r8$.quoteDriver.updateSubscriptions();}if(Y0N.calculateOnly){R_9="lay";R_9+="o";R_9+="u";R_9+="t";r8$.changeOccurred(R_9);return a$e;}p1K=r8$.panels[a$e.panel];v4D=![];j26=!(a$e.overlay || a$e.underlay);if(j26 && l36.horizontalCrosshairFieldFN){p1K.horizontalCrosshairField=l36.horizontalCrosshairFieldFN(r8$,a$e);}if(r8$.editCallback){v4D=!0;}else if(j26){if(r8$.callbackListeners.studyPanelEdit && r8$.callbackListeners.studyPanelEdit.length){v4D=!!({});}}else {if(r8$.callbackListeners.studyOverlayEdit && r8$.callbackListeners.studyOverlayEdit.length){v4D=!!({});}}if(v4D){Y0N.editMode=!!({});r5G=![];for(var q4l in a$e.inputs){if(q4l == "id")continue;if(q4l == "display")continue;r5G=!!1;break;}if(!r5G){for(var D3H in a$e.outputs){r5G=!![];break;}}if(r5G){if(typeof a$e.study.edit != "undefined"){if(a$e.study.edit){Z58=(function(K3h,j5i,c8F,m_O){I9I.D0H();return function(){j6q.clearCanvas(K3h.chart.tempCanvas,K3h);j5i.study.edit(j5i,{stx:K3h,inputs:c8F,outputs:m_O,parameters:Y0N});};})(r8$,a$e,v1a,b7R,Y0N);r8$.setPanelEdit(p1K,Z58);a$e.editFunction=Z58;}}else if(!j26){Z58=(function(G1p,z46,H3N,Z4c,v9Y){I9I.a9S();return function(s7o){I9I.a9S();j6q.clearCanvas(G1p.chart.tempCanvas,G1p);G1p.dispatch("studyOverlayEdit",{stx:G1p,sd:z46,inputs:H3N,outputs:Z4c,parameters:v9Y,forceEdit:s7o});};})(r8$,a$e,v1a,b7R,Y0N);a$e.editFunction=Z58;}else {if(r8$.editCallback){Z58=(function(Q2r,R2K,I81,q2r){I9I.a9S();return function(){var i9o;i9o=Q2r.editCallback(Q2r,R2K);j6q.clearCanvas(Q2r.chart.tempCanvas,Q2r);j6q.Studies.studyDialog(Q2r,H4M,i9o,{inputs:I81,outputs:q2r,parameters:Y0N});};})(r8$,a$e,v1a,b7R,Y0N);if(p1K.name != "chart"){r8$.setPanelEdit(p1K,Z58);}}else {j6H="ch";j6H+="a";j6H+="rt";Z58=(function(F2b,x_8,r57,x_t,V74){return function(){j6q.clearCanvas(F2b.chart.tempCanvas,F2b);F2b.dispatch("studyPanelEdit",{stx:F2b,sd:x_8,inputs:r57,outputs:x_t,parameters:V74});};})(r8$,a$e,v1a,b7R,Y0N);if(p1K.name != j6H){r8$.setPanelEdit(p1K,Z58);a$e.editFunction=Z58;}}}}}r8$.changeOccurred("layout");if(!E0f){r8$.draw();}return a$e;};j6q.Studies.removeStudy=function(N$F,j$e){var k_5,o5u,O4O,I8D;k_5=N$F.panels[j$e.panel];o5u=k_5 && k_5.yAxis.name;if(j$e.overlay || j$e.underlay){N$F.removeOverlay(j$e.name);}O4O=N$F.panels[j$e.panel];if(j$e.attribution){N$F.removeFromHolder(j$e.attribution.marker);}delete N$F.layout.studies[j$e.name];if(O4O && !N$F.checkForEmptyPanel(O4O)){if(o5u == j$e.name){N$F.electNewPanelOwner(O4O);}I8D=N$F.getYAxisByName(j$e.panel,j$e.name);if(I8D){I8D.name=I8D.studies[+"1"] || I8D.renderers[0];}}N$F.draw();A2IFV.D0H();N$F.resizeChart();};j6q.Studies.getPanelFromFieldName=function(P2M,p$Y){var F$i,c6g,v6B,y3W,d_J;F$i=j6q.Studies.getFieldInputs(p$Y);if(!F$i.length){return null;}c6g=P2M.layout.studies;if(!c6g){return null;}v6B={};for(var s2F in c6g){for(var z0V in c6g[s2F].outputMap){v6B[z0V]=c6g[s2F].panel;}}for(var Y5g=0;Y5g < F$i.length;Y5g++){y3W=p$Y.inputs[F$i[Y5g]];if(y3W){d_J=v6B[y3W];if(d_J){return d_J;}}}return null;};j6q.Studies.createLibraryHash=function(){var u6E=A2IFV;var c3o,t8_,Q3L;c3o=-308398831;u6E.D0J(10);t8_=-u6E.q7n("231253380",0);u6E.H6P(21);Q3L=u6E.q7n("2",0);for(var n8u=1;u6E.Z2Z(n8u.toString(),n8u.toString().length,23553) !== c3o;n8u++){return Object.keys(j6q.Studies.studyLibrary).join(1191 == ("1431" * 1,2918)?(128847,545935) === (929733,97506)?183067 == (4745,788)?("h",!({})):!![]:("h","|"):"h");}if(u6E.Z2Z(Q3L.toString(),Q3L.toString().length,60065) !== t8_){return Object.keys(j6q.Studies.studyLibrary).join(9850 === (6966,3044)?(958.62,460.86) !== ("698.48" - 0,551.6)?817.11 !== (4200,266)?("I",!0):!!"":("i","h"):"|");};};j6q.Studies.displayStudies=function(q1m,e56,j6O){var J0y,l7f,i04,d$Z,x26,v0Q,H3M,S$e,W51,o5N,r8J,Y68,H9q,z5z,j1n,d7h;if(j6O){e56.studyLibraryHash=j6q.Studies.createLibraryHash();}J0y=q1m.layout.studies;if(!J0y){return;}l7f={};l7f[e56.name]=!0;for(var f$q in J0y){i04="u";i04+="n";i04+="defined";d$Z=J0y[f$q];x26=d$Z.study;if(!x26)continue;v0Q=d$Z.underlay || d$Z.parameters && d$Z.parameters.underlayEnabled;if(j6O && !v0Q || !j6O && v0Q)continue;H3M=j6q.clone(x26.renderer);if(H3M && !(H3M instanceof Array)){H3M=[H3M];}S$e=q1m.panels[d$Z.panel];if(S$e){if(S$e.chart != e56)continue;if(S$e.hidden)continue;if(!l7f[S$e.name]){W51=d$Z.permanent || !q1m.manageTouchAndMouse;if(S$e.closeX){if(W51){S$e.closeX.style.display="none";}}else if(S$e.close){o5N="no";o5N+="ne";if(W51){S$e.close.style.display=o5N;}}if(S$e.edit){if(W51){S$e.edit.style.display="none";}}l7f[S$e.name]=W51;}}else {if(q1m.currentlyImporting){delete J0y[f$q];}continue;}r8J=d$Z.chart.dataSegment;if(d$Z.panel == d$Z.parameters.chartName && (!d$Z.parameters || !d$Z.parameters.panelName)){Y68=j6q.Studies.getPanelFromFieldName(q1m,d$Z);if(Y68 && d$Z.panel != Y68){d$Z.panel=Y68;}}if(typeof x26.seriesFN == i04){if(H3M){if(!d$Z.overlay){j6q.Studies.createYAxis(q1m,d$Z,r8J,S$e);}for(var A9R=0;A9R < H3M.length;A9R++){H9q=H3M[A9R];for(var x$C in d$Z.outputMap){if(d$Z.outputMap[x$C] == H9q.field){H9q.field=x$C;}}if(!H9q.field)continue;H9q.panel=d$Z.panel;z5z=H9q.binding;if(z5z){for(var O4f in z5z){j1n=j6q.Studies.determineColor(d$Z.outputs[z5z[O4f]]);if(j1n && j1n != "auto"){H9q[O4f]=j1n;};}}H9q.yAxis=null;d7h=j6q.Renderer.produce(H9q.type,H9q);d7h.stx=q1m;d7h.attachSeries(null,H9q).draw();}}else {j6q.Studies.displaySeriesAsLine(q1m,d$Z,r8J);}if(S$e){j6q.Studies.displayError(q1m,d$Z);}}else {if(x26.seriesFN){if(S$e){x26.seriesFN(q1m,d$Z,r8J);j6q.Studies.displayError(q1m,d$Z);}}}}};j6q.Studies.displayError=function(G4U,o5a,f4W){var Z5m,I4L,z9a;Z5m="Not enough da";Z5m+="ta to";Z5m+=" compu";Z5m+="te ";if(!o5a.error){return;}I4L=f4W && f4W.panel?f4W.panel:o5a.panel;z9a=o5a.error === !!({})?G4U.translateIf(Z5m) + G4U.translateIf(o5a.study.name):G4U.translateIf(o5a.error);if(f4W && (f4W.h !== "center" || f4W.v !== "bottom")){G4U.watermark(I4L,f4W);return;}G4U.displayErrorAsWatermark(I4L,z9a);};j6q.Studies.calculateMinMaxForDataPoint=function(M$0,v$t,d_L){A2IFV.D0H();var i4v,X8t,n22;i4v=Number.MAX_VALUE;X8t=Number.MAX_VALUE * -("1" - 0);for(var N8H=0;N8H < d_L.length;N8H++){n22=d_L[N8H][v$t];if(n22 === null || typeof n22 == "undefined")continue;if(isNaN(n22))continue;i4v=Math.min(n22,i4v);X8t=Math.max(n22,X8t);}return {min:i4v,max:X8t};};j6q.Studies.getYAxisParameters=function(P1M,X05){var o3o,B1Y,p8M,Z2j;A2IFV.a9S();o3o={};B1Y=P1M.layout.studies && P1M.layout.studies[X05.name];if(B1Y){p8M=B1Y.study;if(p8M.yaxis || p8M.yAxisFN){o3o.noDraw=!![];}else {if(p8M.parameters && p8M.parameters.excludeYAxis){o3o.noDraw=!!"1";}o3o.ground=p8M.yAxis && p8M.yAxis.ground;if(X05){if(p8M.range != "bypass"){Z2j="0 t";Z2j+="o 100";if(p8M.range == Z2j){o3o.range=[0,100];}else if(p8M.range == "-1 to 1"){o3o.range=[-1,1];}else {if(p8M.range == "0 to max"){o3o.range=[0,Math.max(0,X05.high)];}else if(p8M.centerline || p8M.centerline === 0){o3o.range=[Math.min(p8M.centerline,X05.low),Math.max(p8M.centerline,X05.high)];}}}if(o3o.range){X05.low=o3o.range[0];X05.high=o3o.range[1];}if(B1Y.min){X05.min=B1Y.min;}if(B1Y.max){X05.max=B1Y.max;}if(B1Y.parameters && B1Y.parameters.studyOverZonesEnabled){o3o.noDraw=!!1;}}}}return o3o;};j6q.Studies.doPostDrawYAxis=function(c_V,v9g){var V9s,U9e,a7d,r_l,e0J;for(var i7j in c_V.layout.studies){V9s=c_V.layout.studies[i7j];U9e=c_V.panels[V9s.panel];if(!U9e || U9e.hidden)continue;a7d=V9s.getYAxis(c_V);if(a7d != v9g)continue;r_l=V9s.study;if(v9g.name == V9s.name){if(r_l.yaxis){r_l.yaxis(c_V,V9s);}if(r_l.yAxisFN){r_l.yAxisFN(c_V,V9s);};}j6q.Studies.drawZones(c_V,V9s);if(!V9s.error){e0J=r_l.centerline;if(e0J || e0J === 0 || e0J !== null && v9g.highValue > +"0" && v9g.lowValue < +"0"){j6q.Studies.drawHorizontal(c_V,V9s,null,e0J || 0,v9g);}}}};j6q.Studies.displaySeriesAsLine=function(p8t,a0S,P8R){var x40;if(!P8R.length){return;}x40=p8t.panels[a0S.panel];if(!x40 || x40.hidden){return;}A2IFV.D0H();for(var U$K in a0S.outputMap){j6q.Studies.displayIndividualSeriesAsLine(p8t,a0S,x40,U$K,P8R);}};j6q.Studies.displaySeriesAsHistogram=function(T$m,R$v,a71){var V_q,W_6,F1P,A$9,Q6K,K0_,a5j,o$O,J2v,X_j;if(!a71.length){return;}V_q=T$m.panels[R$v.panel];if(!V_q){return;}if(V_q.hidden){return;}W_6=[];for(var K31 in R$v.outputMap){F1P=R$v.outputs[R$v.outputMap[K31]];if(!F1P)continue;A$9=0.3;if(typeof F1P == "object"){A$9=F1P.opacity;F1P=F1P.color;}Q6K={field:K31,fill_color_up:F1P,border_color_up:F1P,fill_color_down:F1P,border_color_down:F1P};if(R$v.underlay){Q6K.opacity_up=Q6K.opacity_down=A$9 || "0.3" * 1;}W_6.push(Q6K);}A2IFV.D0H();K0_=R$v.getYAxis(T$m);a5j=R$v.inputs;o$O=a5j.WidthFactor;if(R$v.study && R$v.study.parameters){J2v=R$v.study.parameters;if(typeof J2v.widthFactor !== "undefined"){o$O=J2v.widthFactor;}}X_j={name:R$v.name,type:a5j.HistogramType?a5j.HistogramType:"overlaid",panel:R$v.panel,yAxis:K0_,widthFactor:o$O || 0.5,bindToYAxis:!![],highlight:R$v.highlight};T$m.drawHistogram(X_j,W_6);};j6q.Studies.displayIndividualSeriesAsLine=function(a7X,z0H,b3B,k$l,P0P){var u5x,P5J,f3h,A6W,M8e,t4p,F38,a$g,u1n,L1c,t7C,e9T,h3i,a$d,j9G,L6M,w5v;u5x="t";u5x+="rans";u5x+="p";u5x+="arent";P5J="st";P5J+="ring";if(!b3B.height){b3B.height=b3B.bottom - b3B.top;}f3h=z0H.getContext(a7X);A6W=z0H.outputs[z0H.outputMap[k$l]];if(!A6W){return;}f3h.save();if(typeof A6W === P5J){A6W={color:A6W,width:1};}f3h.lineWidth=A6W.width || 1;M8e=A6W.color;if(M8e == "auto"){M8e=a7X.defaultColor;}f3h.strokeStyle=M8e;t4p=A6W.pattern;f3h.setLineDash(j6q.borderPatternToArray(f3h.lineWidth,t4p));f3h.lineDashOffset=0;F38=+"0";a$g=z0H.study;u1n=z0H.getYAxis(a7X);F38=a7X.decimalPlacesFromPriceTick(u1n.priceTick);if(z0H.overlay || z0H.underlay){F38=null;}if(u1n.decimalPlaces || u1n.decimalPlaces === 0){F38=u1n.decimalPlaces;}L1c=null;if(z0H.parameters){L1c=z0H.parameters.label;}t7C=a$g.parameters;if(!t7C){t7C={};}e9T=t7C.plotType == "step";if(z0H.series){for(var L1k in z0H.series){h3i=z0H.series[L1k].parameters.type;if(h3i){A2IFV.H6P(68);e9T=A2IFV.S40(h3i,"step");}}}if(t7C.noLabels){L1c=![];}if(!z0H.noSlopes && z0H.noSlopes !== !({})){z0H.noSlopes=t7C.noSlopes;}if(!z0H.extendToEnd && z0H.extendToEnd !== !!""){z0H.extendToEnd=t7C.extendToEnd;}a$d=L1c || a7X.preferences.labels && L1c !== ![];j9G=z0H.gaplines;if(j9G === !({})){j9G=u5x;}A2IFV.a9S();L6M=z0H.inputs.Symbol;w5v=j9G?a7X.getGapColorFunction(L6M,k$l,A6W,j9G):null;a7X.plotDataSegmentAsLine(k$l,b3B,{yAxis:u1n,skipTransform:a7X.panels[z0H.panel].name != z0H.chart.name,label:a$d,labelDecimalPlaces:F38,noSlopes:z0H.noSlopes,step:e9T,alignStepToSide:z0H.alignStepToSide,extendToEndOfLastBar:z0H.extendToEndOfLastBar,width:z0H.lineWidth,extendToEndOfDataSet:z0H.extendToEnd,gapDisplayStyle:j9G,highlight:z0H.highlight},w5v);if(a$g.appendDisplaySeriesAsLine){a$g.appendDisplaySeriesAsLine(a7X,z0H,P0P,k$l,b3B);}f3h.restore();};j6q.Studies.drawHorizontal=function(l4N,c0s,V6q,Y2V,T9s,x2J){var F8X,t4M,f0U;F8X=l4N.panels[c0s.panel];t4M=l4N.getBackgroundCanvas().context;if(!F8X){return;}if(!x2J){x2J=T9s.textStyle;}A2IFV.D0H();f0U=l4N.pixelFromPrice(Y2V,F8X,T9s);if(f0U > T9s.top && f0U < T9s.bottom){l4N.plotLine(F8X.left,F8X.right,f0U,f0U,x2J,"segment",t4M,!!0,{opacity:x2J && x2J.opacity?x2J.opacity:0.5});}};j6q.Studies.displayHistogramWithSeries=function(b2W,B3s,o2H){var n_f,f$Y;n_f=b2W.panels[B3s.panel];f$Y=0.5;A2IFV.D0H();if(B3s.underlay){f$Y=0.3;}j6q.Studies.createHistogram(b2W,B3s,o2H,!!"",f$Y);j6q.Studies.displaySeriesAsLine(b2W,B3s,o2H);};j6q.Studies.drawZones=function(x3l,I3$,l3k){var e2Y=A2IFV;var L58,d8M,g4H,s24,p54,q$5,u3g,d$n,i2V,R2i,K5l,P$G,e$C,B_V,g6F,Z4v,A3C,G1d,T1f,g7G,I5S,A40,i_P,u5O,x3c,n3B,O1a,l06;L58="borde";L58+="r";d8M="l";d8M+="ef";d8M+="t";g4H="aut";g4H+="o";if(!I3$.parameters || !I3$.parameters.studyOverZonesEnabled){return;}s24=parseFloat(I3$.parameters.studyOverSoldValue);p54=parseFloat(I3$.parameters.studyOverBoughtValue);q$5=I3$.parameters.studyOverSoldColor;u3g=I3$.parameters.studyOverBoughtColor;d$n=I3$.zoneOutput;if(!d$n){d$n="Result";}i2V=j6q.Studies.determineColor(I3$.outputs[d$n]);if(!i2V || i2V == g4H || j6q.isTransparent(i2V)){i2V=x3l.defaultColor;}if(!q$5){q$5=i2V;}if(!q$5 || q$5 == "auto" || j6q.isTransparent(q$5)){q$5=x3l.defaultColor;}if(!u3g){u3g=i2V;}if(!u3g || u3g == "auto" || j6q.isTransparent(u3g)){u3g=x3l.defaultColor;}R2i=x3l.panels[I3$.panel];K5l=I3$.getYAxis(x3l);P$G=K5l.displayBorder;if(x3l.axisBorders === !"1"){P$G=!({});}if(x3l.axisBorders === !""){P$G=!!({});}if(K5l.width === 0){P$G=!"1";}e$C=x3l.getYAxisCurrentPosition(K5l,R2i);e2Y.D0J(68);B_V=e2Y.S40(e$C,d8M);g6F=K5l.justifyRight;if(!g6F && g6F !== !!0){if(x3l.chart.yAxis.justifyRight || x3l.chart.yAxis.justifyRight === !"1"){g6F=x3l.chart.yAxis.justifyRight;}else {g6F=B_V;}}Z4v=Math.round(K5l.left + (B_V?K5l.width:0)) + 0.5;A3C=P$G?3:0;G1d=x3l.getBackgroundCanvas().context;T1f=G1d.fillStyle;G1d.globalAlpha=0.2;x3l.startClip(R2i.name,!![]);G1d.beginPath();g7G=Math.round(x3l.pixelFromPrice(p54,R2i,K5l)) + 0.5;G1d.strokeStyle=u3g;G1d.moveTo(R2i.left,g7G);G1d.lineTo(R2i.right,g7G);G1d.stroke();G1d.closePath();G1d.beginPath();e2Y.H6P(119);var J$Z=e2Y.q7n(3,3,7,0,14);I5S=Math.round(x3l.pixelFromPrice(s24,R2i,K5l)) + "0.5" * J$Z;G1d.strokeStyle=q$5;G1d.moveTo(R2i.left,I5S);G1d.lineTo(R2i.right,I5S);G1d.stroke();G1d.closePath();A40=new j6q.Plotter();A40.newSeries(L58,"stroke",x3l.canvasStyle("stx_grid_border"));if(P$G){i_P=B_V?Z4v - A3C:Z4v - 0.5;u5O=B_V?Z4v + 0.5:Z4v + A3C;A40.moveTo("border",i_P,g7G);A40.lineTo("border",u5O,g7G);A40.moveTo("border",i_P,I5S);A40.lineTo("border",u5O,I5S);}G1d.fillStyle=T1f;x3c={skipTransform:x3l.panels[I3$.panel].name != I3$.chart.name,panelName:I3$.panel,band:d$n + " " + I3$.name,yAxis:K5l,opacity:"0.3" - 0};if(!I3$.highlight && x3l.highlightedDraggable){e2Y.D0J(1);x3c.opacity*=e2Y.q7n(1,"0.3");}j6q.preparePeakValleyFill(x3l,j6q.extend(x3c,{threshold:p54,direction:K5l.flipped?-1:1,color:u3g}));j6q.preparePeakValleyFill(x3l,j6q.extend(x3c,{threshold:s24,direction:K5l.flipped?1:-1,color:q$5}));G1d.globalAlpha=1;if(!I3$.study || !I3$.study.yaxis){if(P$G){n3B=Math.round(K5l.bottom) + 0.5;A40.moveTo("border",Z4v,K5l.top);A40.lineTo("border",Z4v,n3B);A40.draw(G1d,"border");}if(K5l.width !== +"0"){O1a="ri";O1a+="ght";x3l.canvasFont("stx_yaxis",G1d);x3l.canvasColor("stx_yaxis",G1d);G1d.textAlign=g6F?O1a:"left";if(B_V){e2Y.D0J(120);var n5P=e2Y.S40(1,0,4,6,6);l06=K5l.left + n5P;if(g6F){e2Y.D0J(121);var r$c=e2Y.S40(10,24,11,0);l06=K5l.left + K5l.width - A3C - r$c;}}else {e2Y.H6P(16);var h5s=e2Y.S40(17,20);l06=K5l.left + A3C + h5s;if(g6F){l06=K5l.left + K5l.width;}}G1d.fillStyle=u3g;G1d.fillText(p54,l06,g7G);G1d.fillStyle=q$5;G1d.fillText(s24,l06,I5S);G1d.fillStyle=T1f;}}x3l.endClip();G1d.globalAlpha=1;if(K5l.name == I3$.name){K5l.yAxisPlotter=new j6q.Plotter();}};j6q.Studies.createHistogram=function(n7b,L4T,S0b,I0N,r4a){var O45,K97,h4a,I2X,d_R,Z3m,r66,q1j,o11,K2v,I7W,x9w,X89,b6P,R78,E1J,s8L,L2M,d1g,D$s;O45=n7b.panels[L4T.panel];K97=L4T.getContext(n7b);h4a=L4T.getYAxis(n7b);n7b.startClip(O45.name);I2X=n7b.layout.candleWidth - 2;if(I2X < 2){I2X=1;}d_R=n7b.pixelFromPrice(0,O45,h4a);if(h4a.min > 0){d_R=n7b.pixelFromPrice(h4a.min,O45,h4a);}if(I0N){d_R=Math.floor(O45.top + O45.height / 2);}Z3m=L4T.name + "_hist";n7b.canvasColor("stx_histogram");r66=K97.fillStyle;if(r4a || r4a === 0){K97.globalAlpha=r4a;}if(!L4T.highlight && n7b.highlightedDraggable){K97.globalAlpha*=0.3;}q1j=null;o11=null;K2v=L4T.outputs;for(var r5X=0;r5X < S0b.length;r5X++){I7W="Positive";I7W+=" ";I7W+="Bar";x9w=S0b[r5X];if(!x9w)continue;if(x9w.candleWidth){I2X=Math.floor(Math.max("1" - 0,x9w.candleWidth - 2));}X89=Math.floor(n7b.pixelFromBar(r5X,O45.chart) - I2X / 2);b6P=Math.floor(I2X);if(q1j === null){R78=n7b.tickFromPixel(X89,O45.chart) - ("1" >> 0);if(R78 < 0){q1j=o11;}else {q1j=n7b.pixelFromPrice(n7b.chart.dataSet[R78][Z3m],O45,h4a) - d_R;}}else {q1j=o11;}o11=n7b.pixelFromPrice(x9w[Z3m],O45,h4a) - d_R;E1J=j6q.Studies.determineColor(K2v["Decreasing Bar"]);s8L=j6q.Studies.determineColor(K2v["Increasing Bar"]);L2M=j6q.Studies.determineColor(K2v[I7W]);d1g=j6q.Studies.determineColor(K2v["Negative Bar"]);D$s=h4a.flipped;K97.fillStyle=r66;if(E1J && (D$s?o11 < q1j:o11 > q1j)){K97.fillStyle=E1J;}else if(s8L && (D$s?o11 > q1j:o11 < q1j)){K97.fillStyle=s8L;}else if(L2M && (D$s?o11 > 0:o11 < 0)){K97.fillStyle=L2M;}else if(d1g && (D$s?o11 < 0:o11 > 0)){K97.fillStyle=d1g;}K97.fillRect(X89,d_R,b6P,Math.floor(o11));}A2IFV.D0H();K97.globalAlpha=1;n7b.endClip();};j6q.Studies.prettify={Close:3200 !== 5295?("186.47" * 1,4959) >= 1570?2870 > 470?"C":(+"0x22c5",4.71e+3):0xe2f:"D",Open:2920 < (9643,1470)?!"":"O",High:(+"356.52",6616) == ("590" * 1,7220)?("d","x"):(348.89,1239) == 680.59?181.98:+"8690" == (218.86,407.92)?"0x2485" * 1:"H",Low:(882.35,8261) > 3480?"L":(996.35,824.32) < 5853?1674 <= 7436?2.35e+2:"683" ^ 0:+"43.30",simple:Y$r,exponential:N1H,triangular:"tma",VIDYA:"vdma",weighted:w8y,"welles wilder":"smma",true:"y",false:"n"};j6q.Studies.prettyRE=/^.*\((.*?)\).*$/;j6q.Studies.prettyDisplay=function(U1b){var A$A,S8P;A$A=j6q.Studies.prettyRE.exec(U1b);if(!A$A){return U1b;}A2IFV.D0J(21);S8P=A$A[A2IFV.q7n("1",0)];if(S8P){for(var O4p in j6q.Studies.prettify){S8P=S8P.replace(O4p,j6q.Studies.prettify[O4p]);}U1b=U1b.replace(A$A[1],S8P);}A2IFV.D0H();return U1b;};j6q.Studies.getFieldInputs=function(v3a){var n23,X6c;A2IFV.D0H();n23=[];X6c=v3a.study.inputs;for(var H2u in X6c){if(X6c[H2u] == "field"){n23.push(H2u);}}return n23;};j6q.Studies.initializeFN=function(l0w,Y1S,q7I,T_c,U84,D15,K0l){var o9L=A2IFV;var B$y,b8h,M5X,q6p,q7q,I9Y,Z4I,Z$2,R8l,C$b,C4U,S0m,C$p,V$l,M7B,G0l,v6n,u0h,N54,O7E,j8I,J8b,s8p,f35,C9r,f1U,c1r;B$y="st";B$y+="r";B$y+="in";B$y+="g";if(!q7I){q7I={};}if(!U84){U84={};}if(!q7I.id){b8h=-197226571;M5X=-+"1759371641";q6p=2;for(var x5i=1;o9L.Z2Z(x5i.toString(),x5i.toString().length,"21588" * 1) !== b8h;x5i++){q7I.id=j6q.Studies.generateID(l0w,Y1S,q7I,U84.replaceID,U84.display);q6p+=2;}if(o9L.U6$(q6p.toString(),q6p.toString().length,10804) !== M5X){q7I.id=j6q.Studies.generateID(l0w,Y1S,q7I,U84.replaceID,U84.display);}}if(!q7I.display){q7I.display=q7I.id;}q7q=new j6q.Studies.StudyDescriptor(q7I.id,Y1S,q7I.id,q7I,T_c,U84);if(q7I.Period){o9L.H6P(1);q7q.days=Math.max(o9L.q7n(1,"1"),parseInt(q7q.inputs.Period,"10" ^ 0));}if(K0l){if(!K0l.inputs){K0l.inputs=q7q.study.inputs;}if(!K0l.outputs){K0l.outputs=q7q.study.outputs;}q7q.study=K0l;}else {K0l=q7q.study;}if(K0l.display){q7I.display=K0l.display;}if(typeof U84.panelName == B$y){D15=U84.panelName;}if(D15 == q7I.id || D15 && !l0w.panelExists(D15)){q7q.underlay=q7q.overlay=!({});}if(D15 == "Own panel" || D15 == "New panel"){D15=null;}I9Y=q7q.overlay || q7I.Overlay || q7q.overlay !== ![] && K0l.overlay;Z4I=q7q.underlay || q7I.Underlay || q7q.underlay !== !1 && K0l.underlay;if(I9Y && U84.underlayEnabled){Z4I=!![];}if(Z4I){q7q.underlay=!!({});}if(!Z4I && l0w.chart.panel && D15 == l0w.chart.panel.name){I9Y=!!"1";}if(I9Y){q7q.overlay=!!1;}Z$2=l0w.preferences.dragging;if(Z$2 === !0 || Z$2 && Z$2.study){q7q.overlay=!"";}if(D15){U84.panelName=D15;}else if(!I9Y && !Z4I){D15=q7I.id;}if(U84.calculateOnly){if(I9Y || Z4I){if(l0w.panels[U84.panelName]){q7q.panel=U84.panelName;}else {q7q.panel=j6q.Studies.getPanelFromFieldName(l0w,q7q) || U84.chartName;}}return q7q;}R8l={};C$b=l0w.layout.studies[U84.replaceID];if(C$b){R8l={outputMap:j6q.clone(C$b.outputMap),panel:C$b.panel};}q7q.panel="";if(D15){C4U="New p";C4U+="anel";S0m=j6q.Studies.smartMovePanel(l0w,q7q.inputs,D15,U84.replaceID,U84.panelName == C4U);if(S0m){q7q.panel=S0m.name;}}else if(I9Y || Z4I){q7q.panel=j6q.Studies.getPanelFromFieldName(l0w,q7q) || U84.chartName;}if(!q7q.panel){C$p=K0l.panelHeight || null;V$l=K0l.yAxis || ({});V$l.name=q7q.inputs.id;q7q.panel=q7q.inputs.id;M7B=-199681504;o9L.H6P(40);G0l=o9L.S40(32,"1232114324");v6n=2;for(var q2u=1;o9L.U6$(q2u.toString(),q2u.toString().length,74241) !== M7B;q2u++){l0w.createPanel(q7q.inputs.display,q7q.panel,C$p,U84.chartName,new j6q.ChartEngine.YAxis(V$l));o9L.H6P(1);v6n+=o9L.q7n(1,"2");}if(o9L.U6$(v6n.toString(),v6n.toString().length,65180) !== G0l){l0w.createPanel(q7q.inputs.display,q7q.panel,C$p,U84.chartName,new j6q.ChartEngine.YAxis(V$l));}l0w.createPanel(q7q.inputs.display,q7q.panel,C$p,U84.chartName,new j6q.ChartEngine.YAxis(V$l));}if(q7q.parameters && q7q.parameters.panelName){q7q.parameters.panelName=q7q.panel;}u0h=l0w.panels[q7q.panel];N54=j6q.Studies.smartCreateYAxis(l0w,u0h,q7q.inputs.id,U84.yaxisDisplayValue,U84.yAxis || K0l.yAxis);O7E=K0l?j6q.clone(K0l.yAxis):null;j8I=O7E || N54;if(j8I){if(j8I.ground){j8I.initialMarginBottom=0;}if(j8I.initialMarginTop || j8I.initialMarginTop === 0 || j8I.initialMarginBottom || j8I.initialMarginBottom === +"0"){l0w.calculateYAxisMargins(j8I);}if(j8I.name == U84.replaceID){j8I.name=q7q.inputs.id;}}if(N54){J8b="defa";J8b+="u";J8b+="l";J8b+="t";s8p="s";s8p+="har";s8p+="e";s8p+="d";f35="n";f35+="o";f35+="n";f35+="e";N54.width=N54.position == f35?0:j6q.ChartEngine.YAxis.prototype.width;if(U84.yaxisDisplayValue == s8p || U84.yaxisDisplayValue == J8b){delete U84.yaxisDisplayValue;}else {if(O7E){j6q.ensureDefaults(N54,O7E);}else if(N54.name == q7q.name){C9r="au";C9r+="t";C9r+="o";if(!U84.yaxisDisplayColor || U84.yaxisDisplayColor == C9r){delete N54.textStyle;}else {N54.textStyle=j6q.colorToHex(U84.yaxisDisplayColor);}N54.justifyRight=null;N54.flipped=U84.flippedEnabled;}}if(N54 != u0h.yAxis){N54.displayGridLines=!({});}else if(N54 != l0w.chart.yAxis){N54.displayGridLines=l0w.displayGridLinesInStudies;}}l0w.calculateYAxisPositions();if(C$b){f1U=!({});for(var z$2 in l0w.drawingObjects){c1r=l0w.drawingObjects[z$2];if(R8l.outputMap && R8l.outputMap.hasOwnProperty(c1r.field)){c1r.field=c1r.field.replace(U84.replaceID,q7q.inputs.id);if(q7q.parameters && q7q.parameters.panelName){c1r.panelName=q7q.parameters.panelName;}else {c1r.panelName=q7q.panel;}f1U=!"";}else if(R8l.panel && R8l.panel == c1r.panelName){c1r.panelName=c1r.panelName.replace(U84.replaceID,q7q.inputs.id);f1U=!"";}}if(f1U){l0w.changeOccurred("vector");}}return q7q;};j6q.Studies.smartMovePanel=function(p1J,U4F,k42,u6S,v4P){var O$t,k0Q,A4G,c8r;k0Q=U4F.id;if(u6S){O$t=p1J.layout.studies[u6S];}if(O$t){A4G=p1J.panels[O$t.panel];if(A4G){if(A4G.yAxis.name == u6S){if((v4P || k42 != u6S) && !p1J.checkForEmptyPanel(A4G.name,!!"1",O$t)){p1J.electNewPanelOwner(A4G);c8r=O$t.getYAxis(p1J);if(c8r.name == u6S){p1J.electNewYAxisOwner(c8r);};}else if(k42 == u6S || !p1J.panels[k42]){if(k0Q != A4G.name){p1J.modifyPanel(A4G,{name:k0Q,display:U4F.display});}k42=k0Q;}}}}A2IFV.a9S();return p1J.panels[k42];};j6q.Studies.smartCreateYAxis=function(s4M,o35,K8n,S9A,I84){var e8g,C0$,g3c,H7m,x6r;e8g="n";e8g+="o";e8g+="n";e8g+="e";C0$=s4M.getYAxisByName(o35,K8n);if(!S9A && I84){S9A=I84.position;}if(S9A == "default" || S9A == "shared" || S9A == o35.yAxis.name){S9A="";}if(["left","right",e8g].indexOf(S9A) > -+"1"){if(!C0$ || C0$.isShared(s4M)){g3c=I84 || ({});j6q.extend(g3c,{name:K8n,position:S9A});if(!C0$ && !s4M.currentlyImporting && o35 != o35.chart.panel && !o35.yAxis.studies.length && !o35.yAxis.renderers.length){C0$=o35.yAxis;j6q.extend(C0$,g3c);}else {H7m=C0$ == o35.yAxis;if(C0$){C0$.name=s4M.electNewYAxisOwner(C0$);}C0$=s4M.addYAxis(o35,new j6q.ChartEngine.YAxis(g3c));if(H7m){o35.yAxis=C0$;}}}else {C0$.position=S9A;}return C0$;}if(S9A){x6r=s4M.getYAxisByName(o35,S9A);if(x6r && C0$ == o35.yAxis && !C0$.isShared(s4M)){o35.yAxis=x6r;}if(C0$ && C0$.isShared(s4M)){C0$.name=s4M.electNewYAxisOwner(C0$);}else {if(C0$ !== o35.yAxis){s4M.deleteYAxisIfUnused(o35,C0$);}}return x6r;}if(C0$){if(C0$.isShared(s4M)){C0$.name=s4M.electNewYAxisOwner(C0$);}else {delete C0$.position;if(C0$ !== o35.yAxis){s4M.deleteYAxisIfUnused(o35,C0$);}}}s4M.resizeChart();return o35.yAxis;};j6q.Studies.calculateVolume=function(w0v,V45){var v3L,A3f,x_f;if(V45.type == "vol undr"){if(!w0v || !w0v.chart.dataSet){return;}v3L=w0v.layout;A3f=V45.parameters.removeStudy;x_f=v3L.volumeUnderlay;v3L.volumeUnderlay=!A3f;if(x_f != v3L.volumeUnderlay){w0v.changeOccurred("layout");}if(A3f){j6q.Studies.removeStudy(w0v,V45);}}V45.outputMap={};V45.outputMap.Volume="";};j6q.Studies.MA=function(v$L,T$s,o$T,B4X,p$R,U0L,J54,j5b){var P2t;P2t=new j6q.Studies.StudyDescriptor(p$R + " " + J54.name,"ma",J54.panel);P2t.chart=J54.chart;P2t.days=parseInt(T$s,10);P2t.startFrom=J54.startFrom;if(j5b){P2t.subField=j5b;}A2IFV.D0H();P2t.inputs={};if(v$L){P2t.inputs.Type=v$L;}if(o$T){P2t.inputs.Field=o$T;}if(B4X){P2t.inputs.Offset=parseInt(B4X,10);}j6q.Studies.calculateMovingAverage(U0L,P2t);};j6q.Studies.movingAverage={conversions:{ma:"simple",sma:"simple",ema:s1q,tma:"triangular",vdma:"vidya",wma:"weighted",smma:"welles wilder"},translations:{simple:"Simple",exponential:"Exponential",triangular:i2v,vidya:"VIDYA",weighted:I$$,"welles wilder":t05},typeMap:{ema:q1N,exponential:i3c,tma:"Triangular",triangular:W9k,vdma:"VIDYA",vidya:"VIDYA",wma:"Weighted",weighted:"Weighted",smma:"Exponential","welles wilder":S9B}};j6q.Studies.movingAverageHelper=function(o1M,F35){A2IFV.D0H();var i8u;if(F35 == "options"){i8u={};for(var T2f in j6q.Studies.movingAverage.translations){i8u[T2f]=o1M.translateIf(j6q.Studies.movingAverage.translations[T2f]);}return i8u;}return j6q.Studies.movingAverage.conversions[F35];};j6q.Studies.createVolumeChart=function(m1I,t5Z,j7T){var d04=A2IFV;var r4o,j5W,u4J,l_E,n3W,q8_,s8c,N_4,t6n,x8t,l7m,n5D,M0e,H4W,o0s,C4O,g07,h5N;r4o="_";r4o+="up";j5W="V";j5W+="olu";j5W+="m";j5W+="e";u4J="colo";u4J+="r";l_E="s";l_E+="tx_volume";n3W=t5Z.panel;q8_=t5Z.inputs;s8c=t5Z.underlay;N_4=t5Z.overlay;t6n=s8c || N_4;x8t=j6q.Studies.determineColor(t5Z.outputs["Up Volume"]);l7m=j6q.Studies.determineColor(t5Z.outputs["Down Volume"]);n5D=s8c?"stx_volume_underlay":l_E;d04.D0J(0);m1I.setStyle(d04.S40(n5D,"_up"),"color",x8t);d04.H6P(0);m1I.setStyle(d04.S40(n5D,"_down"),u4J,l7m);M0e=[{field:t5Z.volumeField || j5W,fill_color_up:m1I.canvasStyle(n5D + r4o).color,border_color_up:m1I.canvasStyle(n5D + "_up").borderLeftColor,opacity_up:m1I.canvasStyle(n5D + "_up").opacity,fill_color_down:m1I.canvasStyle(n5D + "_down").color,border_color_down:m1I.canvasStyle(n5D + "_down").borderLeftColor,opacity_down:m1I.canvasStyle(n5D + "_down").opacity,color_function:t5Z.colorFunction}];H4W=M0e[0];if(!s8c && H4W.border_color_down === "rgb(184, 44, 12)"){o0s="#";o0s+="00";o0s+="00";o0s+="00";C4O="#0";C4O+="0";C4O+="00";C4O+="00";H4W.border_color_down=C4O;H4W.border_color_up=o0s;}g07=t5Z.getYAxis(m1I);h5N={name:"Volume",panel:n3W,yAxis:g07,widthFactor:"1" << 64,bindToYAxis:!"",highlight:t5Z.highlight};j6q.extend(h5N,t5Z.study.parameters);j6q.extend(h5N,t5Z.parameters);if(m1I.colorByCandleDirection && !t5Z.colorFunction){H4W.color_function=function(o$d){var g5B,O6x;g5B=o$d.Open;O6x=o$d.Close;return {fill_color:g5B > O6x?H4W.fill_color_down:H4W.fill_color_up,border_color:g5B > O6x?H4W.border_color_down:H4W.border_color_up,opacity:g5B > O6x?H4W.opacity_down:H4W.opacity_up};};}m1I.drawHistogram(h5N,M0e);};j6q.Studies.calculateStandardDeviation=function(w0$,I9E){var M8s=A2IFV;M8s.a9S();var y8D,P7X,i4F,X4D,q5y,j5s,T79,A_j,Q3o,r3M,D_i,u_p,q_9,N6H;y8D=I9E.chart.scrubbed;if(y8D.length < I9E.days + 1){I9E.error=!![];return;}P7X=I9E.inputs.Field;if(!P7X || P7X == "field"){P7X="Close";}i4F=I9E.inputs["Moving Average Type"];if(!i4F){i4F=I9E.inputs.Type;}j6q.Studies.MA(i4F,I9E.days,P7X,I9E.inputs.Offset,"_MA",w0$,I9E);X4D=0;q5y=+"0";j5s=0;T79=Number(I9E.inputs["Standard Deviations"]);if(T79 < 0){T79=2;}A_j=I9E.name;for(var b_j in I9E.outputs){M8s.H6P(37);A_j=M8s.S40(A_j,b_j,(+"2690",4480) < 2760?("S",454.54):" ");}for((Q3o=I9E.startFrom - 1,D_i=0);Q3o >= 0 && D_i < I9E.days;(Q3o--,D_i++)){r3M=y8D[Q3o][P7X];if(r3M && typeof r3M == "object"){r3M=r3M[I9E.subField];}if(isNaN(r3M)){r3M=0;}X4D+=Math.pow(r3M,2);q5y+=r3M;}for(Q3o=I9E.startFrom;Q3o < y8D.length;Q3o++){u_p="_M";u_p+="A";u_p+=" ";q_9=y8D[Q3o];r3M=q_9[P7X];if(r3M && typeof r3M == "object"){r3M=r3M[I9E.subField];}if(!r3M && r3M !== 0){r3M=0;}X4D+=Math.pow(r3M,+"2");q5y+=r3M;if(Q3o < I9E.days - 1)continue;if(Q3o >= I9E.days){N6H=y8D[Q3o - I9E.days][P7X];if(N6H && typeof N6H == "object"){N6H=N6H[I9E.subField];}if(isNaN(N6H)){N6H=0;}X4D-=Math.pow(N6H,+"2");q5y-=N6H;}j5s=q_9[u_p + I9E.name];if(j5s || j5s === 0){M8s.D0J(122);var t0k=M8s.q7n(20,19,0,4,54);M8s.D0J(16);var u8N=M8s.q7n(2,4);q_9[A_j]=Math.sqrt((X4D + I9E.days * Math.pow(j5s,t0k) - u8N * j5s * q5y) / I9E.days) * T79;}}};j6q.Studies.calculateMovingAverage=function(W4v,O3s){var g7M,Q6T,a41,V6n,u6K,K8m,j0y,A7$,F6e,U5R,s5D,I7X,x3G,l5u,V8s,B5U,h$n,R8z,h_B,L73,n12;g7M="Clos";g7M+="e";if(!O3s.chart.scrubbed){return;}Q6T=O3s.inputs.Type;if(Q6T == "ma" || Q6T == "sma" || !Q6T){Q6T="simple";}a41=j6q.Studies.movingAverage.typeMap;A2IFV.a9S();if((Q6T in a41)){return j6q.Studies["calculateMovingAverage" + a41[Q6T]](W4v,O3s);}else if(Q6T !== "simple"){return;}V6n=O3s.chart.scrubbed;u6K=0;K8m=[];j0y=O3s.name;for(var I9q in O3s.outputs){A2IFV.D0J(37);j0y=A2IFV.q7n(j0y,I9q,(528.04,7840) < 269.57?(677.22,!!"1"):" ");}A7$=O3s.inputs.Field;if(!A7$ || A7$ == "field"){A7$=g7M;}F6e=parseInt(O3s.inputs.Offset,10);if(isNaN(F6e)){F6e=0;}x3G=O3s.startFrom;l5u=F6e;for(U5R=O3s.startFrom - +"1";U5R >= 0;U5R--){V8s="obj";V8s+="e";V8s+="c";V8s+="t";s5D=V6n[U5R][A7$];if(s5D && typeof s5D == V8s){s5D=s5D[O3s.subField];}if(!s5D && s5D !== 0)continue;if(l5u > 0){l5u--;x3G=U5R;continue;}if(K8m.length == O3s.days - 1)break;u6K+=s5D;K8m.unshift(s5D);}if(K8m.length < O3s.days - 1){K8m=[];x3G=0;;}B5U=[];for(U5R=x3G;U5R < V6n.length;U5R++){h$n="o";h$n+="bject";R8z=V6n[U5R];s5D=R8z[A7$];if(s5D && typeof s5D == h$n){s5D=s5D[O3s.subField];}h_B=U5R + F6e >= 0 && U5R + F6e < V6n.length;L73=h_B?V6n[U5R + F6e]:null;if(!s5D && s5D !== 0){if(L73){L73[j0y]=null;}else if(U5R + F6e >= V6n.length){I7X={};I7X[j0y]=null;B5U.push(I7X);}continue;}u6K+=s5D;K8m.push(s5D);if(K8m.length > O3s.days){u6K-=K8m.shift();}n12=K8m.length == O3s.days?u6K / O3s.days:null;if(L73){L73[j0y]=n12;}else if(U5R + F6e >= V6n.length){I7X={};I7X[j0y]=n12;B5U.push(I7X);}}O3s.appendFutureTicks(W4v,B5U);};j6q.Studies.calculateMovingAverageExponential=function(E24,y3b){var V1c=A2IFV;var f$V,O$m,l2L,W96,c_y,A4m,L$V,j1$,E4C,T6H,v1q,D8f,G7A,Q6i,M$T,w4v,i8v,B1M,L6u,t6j,X$H,d8b,k3K,U87;f$V=y3b.inputs.Type;O$m=y3b.chart.scrubbed;l2L=0;W96=0;c_y=0;V1c.H6P(11);var Y9k=V1c.S40(32,13,178,4);V1c.D0J(123);var p_U=V1c.S40(4,2,19,8);A4m=Y9k / (y3b.days + p_U);if(f$V === "welles wilder" || f$V === "smma"){V1c.H6P(19);var I1P=V1c.S40(18,17,2,36);A4m=I1P / y3b.days;}L$V=null;j1$=y3b.name;for(var z0a in y3b.outputs){V1c.H6P(37);j1$=V1c.q7n(j1$,z0a,531.97 >= (5452,1650)?(176.83,"6550" * 1) <= 312.28?(8.76e+3,"G"):3467 != 775.98?670.67:0x236e:" ");}E4C=y3b.inputs.Field;if(!E4C || E4C == "field"){E4C="Close";}T6H=parseInt(y3b.inputs.Offset,10);if(isNaN(T6H)){T6H=0;}G7A=y3b.startFrom;Q6i=T6H;for(v1q=y3b.startFrom - 1;v1q >= 0;v1q--){D8f=O$m[v1q][j1$];if(!D8f && D8f !== 0)continue;if(L$V === null){L$V=D8f;}c_y=y3b.days;if(Q6i <= 0)break;Q6i--;G7A=v1q;}if(L$V === null){M$T=-431256440;w4v=1650909003;i8v=2;for(var L86=1;V1c.Z2Z(L86.toString(),L86.toString().length,"52360" >> 64) !== M$T;L86++){L$V=G7A=6;i8v+=2;}if(V1c.U6$(i8v.toString(),i8v.toString().length,284) !== w4v){L$V=G7A=6;}L$V=G7A=0;}B1M=[];V1c.a9S();for(v1q=G7A;v1q < O$m.length;v1q++){L6u="obje";L6u+="ct";t6j=O$m[v1q];D8f=t6j[E4C];if(D8f && typeof D8f == L6u){D8f=D8f[y3b.subField];}X$H=v1q + T6H >= 0 && v1q + T6H < O$m.length;d8b=X$H?O$m[v1q + T6H]:null;if(!D8f && D8f !== 0){k3K=null;}else {if(c_y == y3b.days - +"1"){l2L+=D8f;W96=l2L / y3b.days;k3K=W96;}else if(c_y < y3b.days - 1){l2L+=D8f;V1c.H6P(124);W96=V1c.q7n(1,c_y,l2L);k3K=null;}else if(c_y === 0){l2L+=D8f;W96=l2L;k3K=null;}else if(L$V || L$V === 0){V1c.H6P(125);W96=V1c.q7n(A4m,D8f,L$V,L$V);k3K=W96;}L$V=W96;c_y++;}if(d8b){d8b[j1$]=k3K;}else if(v1q + T6H >= O$m.length){U87={};U87[j1$]=k3K;B1M.push(U87);}}y3b.appendFutureTicks(E24,B1M);};j6q.Studies.calculateMovingAverageVIDYA=function(T25,v0M){var e31=A2IFV;var h1V,D2c,g$k,w9x,L0u,s2G,H7q,u_5,d4M,E44,K6h,R_l,g73,Y4b,H3v,N7n,d$v,i5B,N0z,K$m,v42;h1V="_M";h1V+="A";h1V+="ST";h1V+="D";D2c="sd";D2c+="ev";g$k=v0M.inputs.Type;w9x=v0M.chart.scrubbed;e31.D0J(126);var t3d=e31.S40(94,15,6,5,5);L0u=t3d / (v0M.days + +"1");s2G=null;H7q=v0M.name;for(var h0r in v0M.outputs){e31.H6P(37);H7q=e31.S40(H7q,h0r," ");}u_5=v0M.inputs.Field;if(!u_5 || u_5 == "field"){u_5="Close";}v0M.std=new j6q.Studies.StudyDescriptor(v0M.name,D2c,v0M.panel);v0M.std.chart=v0M.chart;v0M.std.days=5;v0M.std.startFrom=v0M.startFrom;v0M.std.inputs={Field:u_5,"Standard Deviations":1,Type:"ma"};v0M.std.outputs={_STD:null};j6q.Studies.calculateStandardDeviation(T25,v0M.std);j6q.Studies.MA("ma",20,"_STD " + v0M.name,0,h1V,T25,v0M);d4M=parseInt(v0M.inputs.Offset,10);if(isNaN(d4M)){d4M=0;}g73=v0M.startFrom;Y4b=d4M;for(E44=v0M.startFrom - 1;E44 >= 0;E44--){K6h=w9x[E44][H7q];if(!K6h && K6h !== 0)continue;if(s2G === null){s2G=K6h;}if(Y4b <= 0)break;Y4b--;g73=E44;}if(s2G === null){s2G=g73=0;}H3v=[];for(E44=g73;E44 < w9x.length;E44++){N7n="o";N7n+="b";N7n+="jec";N7n+="t";d$v=w9x[E44];K6h=d$v[u_5];if(K6h && typeof K6h == N7n){K6h=K6h[v0M.subField];}i5B=E44 + d4M >= 0 && E44 + d4M < w9x.length;N0z=i5B?w9x[E44 + d4M]:null;if(!K6h && K6h !== 0){if(N0z){N0z[H7q]=null;}else if(E44 + d4M >= w9x.length){R_l={};R_l[H7q]=null;H3v.push(R_l);}continue;}if(!d$v["_MASTD " + v0M.name] && d$v["_MASTD " + v0M.name] !== 0)continue;K$m=d$v["_STD " + v0M.name] / d$v["_MASTD " + v0M.name];e31.H6P(127);v42=e31.q7n(K6h,K$m,K$m,L0u,L0u,1,s2G);s2G=v42;if(E44 < v0M.days){v42=null;}if(N0z){N0z[H7q]=v42;}else if(E44 + d4M >= w9x.length){R_l={};R_l[H7q]=v42;H3v.push(R_l);}}v0M.appendFutureTicks(T25,H3v);};j6q.Studies.calculateMovingAverageTriangular=function(f2i,X6P){var k6B=A2IFV;var J64,c8n,C2f,u$n,U7D,g3R,J2E,q6X,t0f,F7J,y5U,J7$;J64="T";k6B.D0H();J64+="R";J64+="I";J64+="2";c8n="T";c8n+="RI";c8n+="1 ";C2f="f";C2f+="ield";u$n=X6P.chart.scrubbed;U7D=X6P.inputs.Field;if(!U7D || U7D == C2f){U7D="Close";}g3R=Math.ceil(X6P.days / 2);j6q.Studies.MA("simple",g3R,U7D,0,"TRI1",f2i,X6P);if(X6P.days % 2 === 0){g3R++;}j6q.Studies.MA("simple",g3R,c8n + X6P.name,"0" | 0,J64,f2i,X6P);J2E=X6P.name;for(var w9i in X6P.outputs){k6B.D0J(37);J2E=k6B.S40(J2E,w9i," ");}q6X=parseInt(X6P.inputs.Offset,10);if(isNaN(q6X)){k6B.D0J(40);q6X=k6B.S40(0,"0");}t0f=q6X;for(var u_b=X6P.startFrom - 1;u_b >= 0;u_b--){F7J=u$n[u_b][J2E];if(!F7J && F7J !== 0)continue;if(t0f > 0){t0f--;continue;}break;}y5U=[];for(u_b++;u_b < u$n.length;u_b++){if(u_b + q6X >= 0){if(u_b + q6X < u$n.length){k6B.H6P(0);u$n[k6B.S40(u_b,q6X)][J2E]=u$n[u_b]["TRI2 " + X6P.name];}else {J7$={};J7$[J2E]=u$n[u_b]["TRI2 " + X6P.name];y5U.push(J7$);}}}X6P.appendFutureTicks(f2i,y5U);};j6q.Studies.calculateMovingAverageWeighted=function(P8w,D2r){var L2_=A2IFV;var n9l,L1z,l5I,S0i,A7h,y4N,C2F,D1i,y5I,j6S,B7D,g6u,J6b,c43,t93,o_G,X3m,q86,K9a;n9l=D2r.chart.scrubbed;L1z=0;l5I=0;S0i=D2r.inputs.Field;if(!S0i || S0i == "field"){S0i="Close";}L2_.H6P(39);var o8C=L2_.q7n(12,8,3);L2_.D0J(7);var Z1v=L2_.S40(12,14);A7h=D2r.days * (D2r.days + o8C) / Z1v;y4N=D2r.name;for(var E_d in D2r.outputs){L2_.H6P(37);y4N=L2_.S40(y4N,E_d,4530 !== 726.05?(858.91,888.55) <= (2586,964.86)?" ":61.37 <= 3330?0x1937:(+"124.27",0x3b6):(135.18,170.12));}C2F=parseInt(D2r.inputs.Offset,10);if(isNaN(C2F)){C2F=0;}L2_.D0H();B7D=[];g6u=D2r.startFrom;J6b=C2F;for(D1i=D2r.startFrom - 1;D1i >= 0;D1i--){y5I=n9l[D1i][S0i];if(y5I && typeof y5I == "object"){y5I=y5I[D2r.subField];}if(!y5I && y5I !== ("0" ^ 0))continue;if(J6b > 0){J6b--;g6u=D1i;continue;}if(B7D.length == D2r.days - 1)break;B7D.unshift(y5I);}if(B7D.length < D2r.days - ("1" ^ 0)){B7D=[];g6u=0;;}for(D1i=0;D1i < B7D.length;D1i++){L2_.D0J(123);var f$w=L2_.q7n(7,7,55,7);L1z+=(D1i + f$w) * B7D[D1i];l5I+=B7D[D1i];}c43=[];for(D1i=g6u;D1i < n9l.length;D1i++){t93="obj";t93+="e";t93+="ct";o_G=n9l[D1i];y5I=o_G[S0i];if(y5I && typeof y5I == t93){y5I=y5I[D2r.subField];}X3m=D1i + C2F >= 0 && D1i + C2F < n9l.length;q86=X3m?n9l[D1i + C2F]:null;if(!y5I && y5I !== 0){if(q86){q86[y4N]=null;}else if(D1i + C2F >= n9l.length){j6S={};j6S[y4N]=null;c43.push(j6S);}continue;}B7D.push(y5I);if(B7D.length > D2r.days){L1z-=l5I;l5I-=B7D.shift();}L1z+=B7D.length * y5I;l5I+=y5I;K9a=D1i < D2r.days - 1?null:L1z / A7h;if(q86){q86[y4N]=K9a;}else if(D1i + C2F >= n9l.length){j6S={};j6S[y4N]=K9a;c43.push(j6S);}}D2r.appendFutureTicks(P8w,c43);};j6q.Studies.calculateStudyATR=function(Q4c,a5o){var Q4J=A2IFV;var i_A,o2C,K8Z,q$_,W9D,E$t,z_J,w5u,u8$,g3M;i_A=a5o.chart.scrubbed;o2C=a5o.days;if(i_A.length < o2C + 1){a5o.error=!!({});return;}K8Z=0;Q4J.D0H();q$_=a5o.name;for(var c3m=Math.max(a5o.startFrom,1);c3m < i_A.length;c3m++){W9D="A";W9D+="TR";W9D+=" ";E$t="AT";E$t+="R ";z_J="True";z_J+=" ";z_J+="Range";z_J+=" ";w5u=i_A[c3m];Q4J.H6P(7);u8$=i_A[Q4J.q7n(1,c3m)];g3M=w5u.trueRange;if(u8$["Sum True Range " + q$_]){Q4J.H6P(0);K8Z=u8$[Q4J.q7n("Sum True Range ",q$_)];}K8Z+=g3M;if(c3m > o2C){Q4J.D0J(7);K8Z-=i_A[Q4J.q7n(o2C,c3m)][Q4J.q7n("True Range ",q$_,Q4J.D0J(0))];}Q4J.H6P(0);w5u[Q4J.S40(z_J,q$_)]=g3M;Q4J.H6P(0);w5u[Q4J.q7n("Sum True Range ",q$_)]=K8Z;if(c3m == o2C){Q4J.H6P(0);w5u[Q4J.q7n(E$t,q$_)]=Q4J.S40(o2C,K8Z,Q4J.H6P(14));}else if(c3m > o2C){Q4J.D0J(0);w5u[Q4J.q7n("ATR ",q$_)]=(u8$[W9D + q$_] * (o2C - 1) + g3M) / o2C;}}};j6q.Studies.displayPSAR2=function(y8P,Q4R,x2l){var A4s=A2IFV;var Z52,t0u,o8t,n_o,d29,g5n,l0a,Z4h,t_o,G65,O1Z,V1L,N8k,R_d;Z52=y8P.panels[Q4R.panel];t0u=Q4R.getYAxis(y8P);o8t=t0u == y8P.chart.panel.yAxis;y8P.startClip(Z52.name);n_o=Q4R.getContext(y8P);d29=Q4R.inputs["Plot Type"] == "squarewave";for(var W9z in Q4R.outputs){g5n="a";g5n+="u";g5n+="t";g5n+="o";A4s.H6P(0);var P3o=A4s.q7n(2645,7);A4s.D0J(19);var W2I=A4s.S40(54560,8,6,47754);A4s.D0J(0);var m6A=A4s.q7n(9262,8);A4s.D0J(62);var L6T=A4s.q7n(4,3270,10,1090);A4s.H6P(18);var e5E=A4s.S40(17808,1,11872);l0a=W9z + ((P3o,442.57) > (W2I,m6A)?(965.45,L6T) != 275.62?(779.78,!1):(e5E,"x"):" ") + Q4R.name;n_o.beginPath();Z4h=y8P.layout.candleWidth;t_o=Math.max(3,Math.floor(y8P.chart.tmpWidth / 2));for(var i$t=0;i$t < x2l.length;i$t++){G65=x2l[i$t];if(!G65 || !G65[l0a] && G65[l0a] !== 0)continue;if(G65.candleWidth){Z4h=G65.candleWidth;}if(o8t && G65.transform){G65=G65.transform;}O1Z=y8P.pixelFromBar(i$t,Z52.chart);if(d29){A4s.D0J(14);O1Z-=A4s.S40(2,Z4h);}V1L=y8P.pixelFromTransformedValue(G65[Q4R.referenceOutput?Q4R.referenceOutput + ((6850,6821) >= 2720?(940.09,2090) !== 1125?+"796" < 889.08?" ":"F":958.27:"K") + Q4R.name:l0a],Z52,t0u);if(i$t === +"0" || !x2l[i$t - +"1"] || !x2l[i$t - 1][l0a] && x2l[i$t - +"1"][l0a] !== 0){n_o.moveTo(O1Z,V1L);}if(d29){n_o.lineTo(O1Z,V1L);A4s.H6P(0);n_o.lineTo(A4s.q7n(O1Z,Z4h),V1L);if(x2l[i$t + 1]){A4s.H6P(0);N8k=x2l[A4s.S40(i$t,1)];if(o8t && N8k.transform){N8k=N8k.transform;}if(!N8k[l0a] && N8k[l0a] !== 0){A4s.H6P(0);n_o.lineTo(A4s.q7n(O1Z,Z4h),y8P.pixelFromTransformedValue(N8k[Q4R.referenceOutput?Q4R.referenceOutput + (756.3 < 5063?(8350,"8497" << 64) >= (4579,297.37)?" ":(265.69,6.71e+3):!({})) + Q4R.name:l0a],y8P.panels[Q4R.panel],t0u));}}}else {A4s.H6P(128);n_o.moveTo(A4s.q7n(O1Z,"2",t_o),V1L);A4s.H6P(129);n_o.lineTo(A4s.S40(t_o,"2",O1Z,64),V1L);}}n_o.lineWidth=1;if(Q4R.highlight){n_o.lineWidth=3;}R_d=j6q.Studies.determineColor(Q4R.outputs[W9z]);if(R_d == g5n){R_d=y8P.defaultColor;}n_o.strokeStyle=R_d;if(!Q4R.highlight && y8P.highlightedDraggable){n_o.globalAlpha*=0.3;}n_o.stroke();n_o.closePath();n_o.lineWidth=1;}y8P.endClip();};j6q.Studies.inputAttributeDefaultGenerator=function(e2x){if(!e2x && e2x !== 0){return {};}if(e2x.constructor == Number){if(Math.floor(e2x) == e2x){if(e2x > 0){return {min:1,step:1};}return {step:"1" << 64};;}if(e2x > 0){return {min:0,step:0.01};}return {step:0.01};;}return {};};j6q.Studies.getMarketOffset=function({stx:q7A, localQuoteDate:d2f, shiftToDateBoundary:W5w}){var Q2b=A2IFV;var D2B,g$3,O5B,v3c,r3i,G5f,f8_;D2B="U";D2B+="TC";if(arguments.length > 1){q7A=arguments[0];d2f=arguments[1];g$3=arguments[2];}var {symbol:z5s}=q7A.chart;O5B=j6q.getFn("Market.Symbology.isForexMetal")(z5s);if(g$3 === undefined){v3c="Market.Symbolog";v3c+="y.isForexSymbol";g$3=j6q.getFn(v3c)(z5s);}if(!q7A.chart.market){r3i=null;}else {r3i=g$3?"America/New_York":q7A.chart.market.market_tz;}Q2b.D0J(33);var M75=Q2b.S40(14,60009,8,13);G5f=new Date(d2f.getTime() + d2f.getTimezoneOffset() * M75);if(!r3i || r3i.indexOf("UTC") == -1){G5f=j6q.convertTimeZone(G5f,D2B,r3i);}f8_=new Date(G5f.getFullYear(),G5f.getMonth(),G5f.getDate(),G5f.getHours(),G5f.getMinutes(),G5f.getSeconds(),G5f.getMilliseconds()).getTime() - d2f.getTime();if(W5w && g$3){Q2b.H6P(130);f8_+=Q2b.S40("60",O5B?6:+"7",1000,"60");}return f8_;};j6q.Studies.getStudyList=function(N9R){var l2x,x74;l2x={};x74={};j6q.extend(x74,N9R);A2IFV.a9S();for(var A6L in j6q.Studies.studyLibrary){if(!x74[A6L]){l2x[j6q.Studies.studyLibrary[A6L].name]=A6L;}}return l2x;};j6q.Studies.determineColor=function(z7u){var R5X;R5X="ob";R5X+="j";R5X+="e";R5X+="ct";if(!z7u){return null;}else if(typeof z7u === R5X){return z7u.color;}return z7u;};j6q.Studies.calculateGenericEnvelope=function(m_S,l$9,r67,W5F,Y1Q,Y93){var K8E=A2IFV;var I_9,S$r,h6x,G$p,z4U,t3U,V3I,e8M,D52;I_9="f";I_9+="i";I_9+="e";I_9+="ld";if(!r67){r67=0;}if(!Y93){Y93=0;}if(!W5F || W5F == "field"){W5F="Close";}if(!Y1Q){Y1Q=W5F;}S$r=l$9.chart.scrubbed;h6x=l$9.inputs.Field;if(!h6x || h6x === I_9){h6x="Close";}for(var W1I=l$9.startFrom;S$r && W1I < S$r.length;W1I++){G$p="Band";G$p+="w";G$p+="idth";G$p+=" ";z4U=S$r[W1I];if(!z4U)continue;if(!z4U[W5F])continue;t3U=z4U[h6x];if(t3U && typeof t3U == "object"){t3U=t3U.Close;}V3I=z4U[W5F];if(V3I && typeof V3I == "object"){V3I=V3I[l$9.subField];}e8M=z4U[Y1Q];if(e8M && typeof e8M == "object"){e8M=e8M[l$9.subField];}K8E.D0J(32);D52=K8E.S40(Y93,e8M,r67);K8E.H6P(0);z4U[l$9.type + " Top " + l$9.name]=K8E.S40(V3I,D52);K8E.D0J(7);z4U[l$9.type + " Bottom " + l$9.name]=K8E.S40(D52,V3I);z4U[l$9.type + " Median " + l$9.name]=V3I;z4U[G$p + l$9.name]=V3I?200 * D52 / V3I:"0" | 0;K8E.D0J(131);z4U["%b " + l$9.name]=K8E.S40(50,1,t3U,V3I,D52);}};j6q.Studies.displayChannel=function(r6w,H9C,p5B){A2IFV.D0H();var Z1B,b45,H$o,d5W,m56;Z1B="C";Z1B+="h";Z1B+="an";Z1B+="nel Fill";if(H9C.inputs[Z1B]){b45={panelName:H9C.panel};for(var D0Z in H9C.outputs){H$o="Bo";H$o+="tt";H$o+="om";d5W=D0Z.split(6480 >= 325.28?" ":(1160,258) !== (6870,"832.56" * 1)?(320.14,941.60):1.41e+2).pop();if(d5W == "Top" || d5W == "High"){b45.topBand=D0Z + " " + H9C.name;}else if(d5W == H$o || d5W == "Low"){b45.bottomBand=D0Z + " " + H9C.name;}else if(d5W == "Median" || d5W == "Channel"){b45.color=j6q.Studies.determineColor(H9C.outputs[D0Z]);}}if(H9C.parameters && H9C.parameters.opacity){b45.opacity=H9C.parameters.opacity;}else {b45.opacity=0.2;}m56=r6w.panels[H9C.panel];b45.skipTransform=m56.name != H9C.chart.name;b45.yAxis=H9C.getYAxis(r6w);if(!H9C.highlight && r6w.highlightedDraggable){b45.opacity*=0.3;}j6q.prepareChannelFill(r6w,b45);}j6q.Studies.displaySeriesAsLine(r6w,H9C,p5B);};j6q.Studies.initAnchorHandle=function(n1t,w5T){var {handle:O7X}=w5T;A2IFV.D0H();if(O7X){return;}if(!n1t.controls.anchorHandles){n1t.controls.anchorHandles={};}if(n1t.controls.anchorHandles[w5T.uniqueId]){({handle:O7X}=n1t.controls.anchorHandles[w5T.uniqueId]);}else {O7X=document.createElement("div");O7X.classList.add("stx_anchor_handle");O7X.setAttribute(w5T.uniqueId,"");n1t.controls.anchorHandles[w5T.uniqueId]={handle:O7X,sd:w5T};n1t.controls.chartControls.parentElement.appendChild(O7X);}w5T.anchorHandle=O7X;};j6q.Studies.removeAnchorHandle=function(D_c,R2m){var {handle:c5i}=(D_c.controls.anchorHandles || ({}))[R2m.uniqueId] || ({});if(c5i){delete D_c.controls.anchorHandles[R2m.uniqueId];c5i.remove();}};j6q.Studies.repositionAnchor=function(P$O,o_o){var U4i,f5M,L4k,N9Z,X8s,I1y,B12,k8u,X7B;var {currentAnchorTime:q9V, uniqueId:B2e}=o_o;var {hoverTick:L7j}=P$O.repositioningAnchorSelector || ({});var {dataSet:d_N, market:y$n}=P$O.chart;var {anchorHandles:Q8Z}=P$O.controls;U4i={};A2IFV.a9S();if(L7j || L7j === 0){f5M="HH";f5M+=":m";f5M+="m:s";f5M+="s";L4k="Anchor ";L4k+="Date";if(L7j >= d_N.length){return;}N9Z=!o_o.inputs[L4k];X8s=d_N[L7j].DT;I1y=j6q.Studies.getMarketOffset({stx:P$O,localQuoteDate:X8s,shiftToDateBoundary:!0});if(N9Z && new Date(X8s.getTime() + I1y).getDate() !== new Date(q9V.getTime() + I1y).getDate()){return;}if(y$n.market_def){X8s=new W7j.Date(X8s,y$n.market_def.market_tz);}B12=!N9Z && j6q.dateToStr(X8s,"YYYY-MM-dd");k8u=j6q.dateToStr(X8s,f5M);U4i={"Anchor Time":k8u};if(B12){U4i["Anchor Date"]=B12;}}X7B=j6q.Studies.replaceStudy(P$O,o_o.inputs.id,o_o.type,Object.assign(o_o.inputs,U4i),o_o.outputs,o_o.parameters,o_o.panel);Q8Z[B2e].sd=X7B;P$O.draw();};j6q.Studies.displayAnchorHandleAndLine=function(J3A,R$W,u_n){var J9A=A2IFV;var G7S,q5F,W6_,e0d,i$6,K5a,z2x,U4I,u1x,s7w,W1C,n3o,V4t,F_W,T9K,K5U;G7S=(J3A.repositioningAnchorSelector || ({})).sd === R$W;var {hoverTick:s67}=G7S && J3A.repositioningAnchorSelector;var {chart:V2N, panels:a$k, xaxisHeight:y54}=J3A;var {market:W0T = {}, symbol:g2E}=V2N;q5F=a$k[R$W.panel];var {top:M2t, bottom:r_p, right:U$T, left:P2b, height:N$H}=q5F;var {inputs:Q3m, anchorHandle:K4J, currentAnchorTime:f0q}=R$W;var {backgroundColor:A2Q, borderLeftColor:z3P}=J3A.canvasStyle("stx_anchor_handle");var [w1I,a_4,d50 = +"0"]=(Q3m["Anchor Time"] || "").split(":");W6_=!Q3m["Anchor Date"];e0d=j6q.getFn("Market.Symbology.isForexSymbol")(g2E);i$6=(s67 || s67 === 0) && (J3A.chart.dataSet[s67] || ({})).DT;K5a=j6q.Studies.getMarketOffset({stx:J3A,localQuoteDate:u_n[u_n.length - +"1"].DT,shiftToDateBoundary:!![]});z2x=i$6 && W6_ && new Date(i$6.getTime() + K5a).getDate() !== new Date(f0q.getTime() + K5a).getDate();var {highlighted:P$p}=J3A.controls.anchorHandles[R$W.uniqueId];var [U9i,O4m]=W0T.getNormalOpen().split(6958 !== ("483" ^ 0)?(367.59,3068) < (4953,867.97)?(655.31,405.05) >= 934?(![],968.63):(0xb3f,2.96e+3):":":(![],438.72)).map(U3V=>{J9A.D0H();return parseInt(U3V);});U4I=e0C=>{var q$8;q$8=e0C?J3A.tickFromDate(e0C,null,null,!!({})):s67;J9A.a9S();return [J3A.pixelFromTick(q$8,V2N),q$8];};u1x=W6_?new Date(u_n[u_n.length - "1" * 1].DT):j6q.strToDate(Q3m["Anchor Date"]);if(W0T.market_def){u1x=new W7j.Date(u1x,W0T.market_def.market_tz);}u1x.setHours(w1I,a_4,d50);s7w=e0d && (u1x.getHours() > U9i || u1x.getHours() === U9i && u1x.getMinutes() >= O4m);if(s7w){u1x.setDate(u1x.getDate() - 1);}var [Z6C]=U4I();var [u3x,b1a]=U4I(u1x);W1C=new Date(u1x);W1C.setHours(...W0T.getNormalClose().split((415.47,"661.86" * 1) <= "1960" >> 0?191.13 !== 4218?":":1890 == 2430?"M":("0x121a" | 24,!!({})):!!"1"));if(s7w){W1C.setDate(W1C.getDate() + 1);}var [Q4u]=W1C && U4I(W1C) || [];if(W6_ && (u3x > U$T || Q4u > U$T)){n3o=new Date(u1x);do {n3o.setDate(n3o.getDate() - 1);}while(W0T && !W0T.isMarketDate(n3o));var [Y4R,t_q]=U4I(n3o);if(Y4R > P2b){u1x=n3o;u3x=Y4R;b1a=t_q;}}V4t={y0:M2t,y1:r_p,type:"line",confineToPanel:q5F};J3A.plotLine(Object.assign(V4t,{x0:u3x,x1:u3x,color:A2Q,pattern:"solid",lineWidth:P$p?3:"2" << 96,opacity:1}));J3A.plotLine(Object.assign(V4t,{x0:Z6C,x1:Z6C,color:z2x?z3P:A2Q,pattern:[6,+"6"],lineWidth:2,opacity:z2x?0.5:1}));J9A.D0J(132);var t1w=J9A.S40(100,12,17,7,1);K4J.style.height=[8,N$H / 4,"50" - 0].sort((V7C,Q0K)=>{J9A.D0J(7);J9A.D0H();return J9A.q7n(Q0K,V7C);})[t1w] + "px";var {height:Y6q, width:I3B}=K4J.getBoundingClientRect();F_W=Math.round(r_p) === J3A.height?y54:0;T9K=q5F.name === "chart"?35:+"0";J9A.H6P(48);K5U=J9A.q7n(Y6q,T9K,F_W,10);J9A.D0J(36);K4J.style.top=J9A.q7n("px",r_p,K5U);K4J.style.left=s67 || s67 === 0?Z6C:u3x - I3B / 2 + "px";R$W.currentAnchorTime=u1x;R$W.currentAnchorTick=b1a;};j6q.Studies.studyScriptLibrary={};j6q.Studies.studyLibrary=j6q.Studies.studyLibrary || ({});j6q.extend(j6q.Studies.studyLibrary,{ma:{name:"Moving Average",overlay:!![],calculateFN:j6q.Studies.calculateMovingAverage,inputs:{Period:50,Field:"field",Type:"ma",Offset:0},outputs:{MA:"#FF0000"}},"STD Dev":{name:"Standard Deviation",calculateFN:j6q.Studies.calculateStandardDeviation,inputs:{Period:+"14",Field:"field","Standard Deviations":"2" | 2,"Moving Average Type":"ma"},attributes:{"Standard Deviations":{min:0.1,step:0.1}}},"True Range":{name:p8o,calculateFN:j6q.Studies.calculateStudyATR,inputs:{},outputs:{"True Range":"auto"}},volume:{name:"Volume Chart",range:"0 to max",yAxis:{ground:!!({}),initialMarginTop:0,zoom:"0" - 0},seriesFN:j6q.Studies.createVolumeChart,calculateFN:j6q.Studies.calculateVolume,inputs:{},outputs:{"Up Volume":"#8cc176","Down Volume":"#b82c0c"}}});};L0=v7$=>{var V6w;V6w=typeof _CIQ !== "undefined"?_CIQ:v7$.CIQ;A2IFV.D0H();if(!V6w.ChartEngine.Driver){console.error("symbolLookupBase feature requires first activating quoteFeed feature.");}else {V6w.ChartEngine.Driver.Lookup=function(N05){};V6w.ChartEngine.Driver.Lookup.prototype.acceptText=function(G8m,w0z,s4S,J1q){A2IFV.a9S();if(!this.cb){return;}};}};W_=B3J=>{var c1g,O1F;c1g="und";c1g+="efin";c1g+="ed";O1F=typeof _CIQ !== c1g?_CIQ:B3J.CIQ;O1F.ThemeHelper=O1F.ThemeHelper || (function(k_4){var j1I,M6D,c53,D2T,q4w,k4i,N_u,b99,e4h,B8A,v68;j1I="stx_mou";A2IFV.D0H();j1I+="ntain_chart";M6D="Ca";M6D+="nd";M6D+="le/Bar";c53="stx_";c53+="ca";c53+="ndle_dow";c53+="n";D2T="Can";D2T+="dl";D2T+="e/Bar";q4w="stx_can";q4w+="dle_shad";q4w+="ow_dow";q4w+="n";k4i="Candle/B";k4i+="ar";N_u="Cand";N_u+="l";N_u+="e/";N_u+="Bar";b99="Candl";b99+="e/Bar";e4h="stx_gri";e4h+="d";this.params=k_4;B8A=k_4.stx;v68="#FFFFFF";if(B8A.chart.container){v68=getComputedStyle(B8A.chart.container).backgroundColor;if(O1F.isTransparent(v68)){v68=B8A.containerColor;}}this.settings.chart.Background.color=O1F.hexToRgba(v68);this.settings.chart["Grid Lines"].color=O1F.hexToRgba(B8A.canvasStyle(e4h).color);this.settings.chart["Grid Dividers"].color=O1F.hexToRgba(B8A.canvasStyle("stx_grid_dark").color);this.settings.chart["Axis Text"].color=O1F.hexToRgba(B8A.canvasStyle("stx_xaxis").color);this.settings.chartTypes[b99].up.color=O1F.hexToRgba(B8A.canvasStyle("stx_candle_up").color);this.settings.chartTypes["Candle/Bar"].down.color=O1F.hexToRgba(B8A.canvasStyle("stx_candle_down").color);this.settings.chartTypes[N_u].up.wick=O1F.hexToRgba(B8A.canvasStyle("stx_candle_shadow_up").color);this.settings.chartTypes[k4i].down.wick=O1F.hexToRgba(B8A.canvasStyle(q4w).color);this.settings.chartTypes["Candle/Bar"].even.wick=O1F.hexToRgba(B8A.canvasStyle("stx_candle_shadow_even").color);this.settings.chartTypes["Candle/Bar"].up.border=O1F.hexToRgba(B8A.canvasStyle("stx_candle_up").borderLeftColor);this.settings.chartTypes[D2T].down.border=O1F.hexToRgba(B8A.canvasStyle(c53).borderLeftColor);if(O1F.isTransparent(B8A.canvasStyle("stx_candle_up").borderLeftColor)){this.settings.chartTypes["Candle/Bar"].up.border=null;}if(O1F.isTransparent(B8A.canvasStyle("stx_candle_down").borderLeftColor)){this.settings.chartTypes[M6D].down.border=null;}this.settings.chartTypes.Line.color=O1F.hexToRgba(B8A.canvasStyle("stx_line_chart").color);this.settings.chartTypes.Mountain.color=O1F.hexToRgba(B8A.canvasStyle("stx_mountain_chart").backgroundColor);this.settings.chartTypes.Mountain.basecolor=O1F.hexToRgba(B8A.canvasStyle(j1I).color);});O1F.ThemeHelper.prototype.settings={chart:{Background:{color:null},"Grid Lines":{color:null},"Grid Dividers":{color:null},"Axis Text":{color:null}},chartTypes:{"Candle/Bar":{up:{color:null,wick:null,border:null},down:{color:null,wick:null,border:null},even:{color:null,wick:null,border:null}},Line:{color:null},Mountain:{color:null,basecolor:null}}};O1F.ThemeHelper.prototype.update=function(L7S){var e4C,f37,L4N,M41,S8M,T_K,a7Y,x6d,Z6Q,P_v,v4f,x1F,P8o;function p2_(x8w,c2c,E2J){var N4Z;N4Z=v4f[x8w];for(var u2M in N4Z){L7S.setStyle(u2M,c2c,E2J);}}e4C="st";e4C+="x_mountain_chart";f37="colo";f37+="r";L4N="s";L4N+="tx_li";L4N+="ne_chart";M41="c";M41+="ol";M41+="or";S8M="stx_candle_";S8M+="even";T_K="stx_c";T_K+="andle";T_K+="_dow";T_K+="n";a7Y="stx_can";a7Y+="dle_up";x6d="st";x6d+="x_xaxis";Z6Q="co";Z6Q+="lo";Z6Q+="r";P_v="stx";P_v+="_grid";if(!L7S){L7S=this.params.stx;}v4f={stx_candle_up:{stx_candle_up:!!1,stx_bar_up:!!({}),stx_hollow_candle_up:!!"1",stx_line_up:!!({}),stx_baseline_up:!![]},stx_candle_down:{stx_candle_down:!![],stx_bar_down:!"",stx_hollow_candle_down:!"",stx_line_down:!!1,stx_baseline_down:!!1},stx_candle_even:{stx_hollow_candle_even:!"",stx_bar_even:!0},stx_shadow_up:{stx_candle_shadow_up:!!({})},stx_shadow_down:{stx_candle_shadow_down:!!({})},stx_shadow_even:{stx_candle_shadow_even:!!({})},stx_line_chart:{stx_bar_chart:!![],stx_line_chart:!!({})},stx_grid:{stx_grid:!![]},stx_grid_dark:{stx_grid_dark:!!1},stx_xaxis:{stx_xaxis_dark:!![],stx_xaxis:!!({}),stx_yaxis:!0,stx_yaxis_dark:!!({}),stx_grid_border:!0},stx_mountain_chart:{stx_mountain_chart:!!({})},stx_market_session:{stx_market_session:!!1}};L7S.chart.container.style.backgroundColor=this.settings.chart.Background.color;L7S.defaultColor="";p2_(P_v,"color",this.settings.chart["Grid Lines"].color);p2_("stx_grid_dark",Z6Q,this.settings.chart["Grid Dividers"].color);p2_(x6d,"color",this.settings.chart["Axis Text"].color);x1F=this.settings.chartTypes["Candle/Bar"];if(!x1F.even){P8o="stx_candle_";P8o+="shadow_even";x1F.even={color:null,wick:O1F.hexToRgba(L7S.canvasStyle(P8o).color),border:null};}p2_(a7Y,"color",x1F.up.color);p2_(T_K,"color",x1F.down.color);p2_(S8M,M41,x1F.even.color);p2_("stx_shadow_up","color",x1F.up.wick);p2_("stx_shadow_down","color",x1F.down.wick);p2_("stx_shadow_even","color",x1F.even.wick);L7S.setStyle("stx_candle_up","borderLeftColor",x1F.up.border);A2IFV.a9S();L7S.setStyle("stx_candle_down","borderLeftColor",x1F.down.border);p2_(L4N,f37,this.settings.chartTypes.Line.color);L7S.setStyle("stx_mountain_chart","borderTopColor",O1F.hexToRgba(this.settings.chartTypes.Mountain.color,1));L7S.setStyle("stx_mountain_chart","backgroundColor",O1F.hexToRgba(this.settings.chartTypes.Mountain.color,0.5));L7S.setStyle(e4C,"color",O1F.hexToRgba(this.settings.chartTypes.Mountain.basecolor,0.01));L7S.draw();};O1F.ChartEngine.prototype.setThemeSettings=function(L26){var O6U,j2q;O6U="t";O6U+="heme";this.styles={};this.chart.container.style.backgroundColor="";this.defaultColor="";A2IFV.D0H();if(L26){j2q=new O1F.ThemeHelper({stx:this});j2q.settings=L26;j2q.update();}this.updateListeners(O6U);this.changeOccurred("theme");if(this.displayInitialized){this.headsUpHR();this.clearPixelCache();this.updateListeners("theme");this.draw();}};};f9=n6O=>{var b9a,I6f,g9J,v_c,D_T,z1v,w69,X7_,b0l,j1J,f4F,M8l,N8S,i4R,f91,G9R,X8v,w5R,C5q,w2F,j0G,o6d,w$C,a0Z,E7Y,W6m,b9l,U17,x7Q,k1L,a12,X9J,Y_p,r$P,v5$,h$f,p2x,r86,M1n,l7u,S6F,d4i,X84,Y9q,o7p,F0q,t3R,F1S,t6U,r_7,K_p,d0A,v4z,n5A,q2Y,d3p,p4_,A6s,E5z,U9l,a8E,K6e,I7s,k2Y,s7n,y9b,d5J,n_B,T6n,B4v,C13,a3J,f13,N6e,o04,F$Q,f1q,d2I,N4h,x2e,e5P,p_e,A8o,Y4c,F5e,e5C,m17,Q6W,J2n,o$P,S2q,i42,U25,j4p,X9h,E_N,r92,K6K,c7r,x2f,A_5,u29,s3D,f2m,n9m,U_G,y11,t_0,j5L,Q0N,Y4l,c55,s$6,i$J,j7U,A2n,s6y,k5y,h8z,i3W,Q4p,g$w,r$L,g3r,c29,X94,q23,G3_,K9l,n9S,O0H,W72,x$T,d7x,L8w,P1e,k9J,c8l,u2u,Y27,Y9_,p0u,X0Q,W2d,s$W,X0R,t1h,R94,h6Z,g0$,v6b,Q9T,t7u,W5m,v8Q,f5K,Z6N,o89,Z18,a9A,Q5m,E8n,K1K,T0X,Y7z,G8y,N5K,F2x,H27,F$t,g2H,b9W,t$9,Y3H,T$4,E4O,U4Z,x3k,n53;b9a="m";b9a+="a";b9a+="x";I6f="S";I6f+="u";I6f+="n>";I6f+="=1";g9J="m";g9J+="ax";v_c="S";v_c+="un>=";v_c+="2";D_T="Su";D_T+="n>=";D_T+="9";z1v="M";z1v+="ay";w69="N";w69+="o";w69+="v";X7_="o";X7_+="nly";b0l="Su";b0l+="n>=1";j1J="S";j1J+="un";j1J+=">=";j1J+="8";f4F="Su";f4F+="n>";f4F+="=1";M8l="N";M8l+="o";M8l+="v";N8S="lastS";N8S+="un";i4R="m";i4R+="a";i4R+="x";f91="m";f91+="a";f91+="x";G9R="Sun";G9R+=">=8";X8v="M";X8v+="a";X8v+="r";w5R="ma";w5R+="x";C5q="S";C5q+="un>";C5q+="=1";w2F="m";w2F+="a";w2F+="x";j0G="Ma";j0G+="r";o6d="N";o6d+="o";o6d+="v";w$C="m";w$C+="ax";a0Z="Ma";a0Z+="r";E7Y="l";E7Y+="astSun";W6m="ma";W6m+="x";b9l="m";b9l+="a";b9l+="x";U17="last";U17+="S";U17+="un";x7Q="m";x7Q+="a";x7Q+="x";k1L="S";k1L+="un>=";k1L+="15";a12="on";a12+="l";a12+="y";X9J="Su";X9J+="n>=1";Y_p="A";Y_p+="p";Y_p+="r";r$P="m";r$P+="a";r$P+="x";v5$="S";v5$+="un>=1";h$f="A";h$f+="p";h$f+="r";p2x="S";p2x+="e";p2x+="p";r86="o";r86+="n";r86+="l";r86+="y";M1n="Su";M1n+="n>";M1n+="=8";l7u="on";l7u+="ly";S6F="Oc";S6F+="t";d4i="Sun>";d4i+="=1";X84="m";X84+="ax";Y9q="m";Y9q+="ax";o7p="m";o7p+="a";o7p+="x";F0q="Su";F0q+="n>=1";t3R="Ap";t3R+="r";F1S="m";F1S+="a";F1S+="x";t6U="O";t6U+="ct";r_7="Sun>";r_7+="=1";K_p="m";K_p+="a";K_p+="x";d0A="A";d0A+="p";d0A+="r";v4z="m";v4z+="a";v4z+="x";n5A="M";n5A+="ar";q2Y="Sat>=2";q2Y+="4";d3p="la";d3p+="s";d3p+="t";d3p+="Sun";p4_="O";p4_+="ct";A6s="Oc";A6s+="t";E5z="m";E5z+="a";E5z+="x";U9l="lastS";U9l+="un";a8E="2";a8E+="0";K6e="M";K6e+="a";K6e+="r";I7s="2";I7s+="1";k2Y="m";k2Y+="a";k2Y+="x";s7n="M";s7n+="a";s7n+="r";y9b="m";y9b+="a";y9b+="x";d5J="m";d5J+="a";d5J+="x";n_B="W";n_B+="A";n_B+="T";T6n="CA";T6n+="T";B4v="Ap";B4v+="r";C13="2";C13+="3";a3J="F";a3J+="e";a3J+="b";f13="o";f13+="nl";f13+="y";N6e="1";N6e+="0";o04="1";o04+="9";F$Q="o";F$Q+="nly";f1q="o";f1q+="n";f1q+="l";f1q+="y";d2I="2";d2I+="7";N4h="M";N4h+="a";N4h+="r";x2e="1";x2e+="1";e5P="1";e5P+="9";p_e="J";p_e+="u";p_e+="n";A8o="o";A8o+="nl";A8o+="y";Y4c="J";Y4c+="u";Y4c+="n";F5e="1";F5e+="3";e5C="M";e5C+="a";e5C+="y";m17="onl";m17+="y";Q6W="A";Q6W+="si";Q6W+="a/Riyadh";J2n="Europe";J2n+="/Moscow";o$P="E";o$P+="urope";o$P+="/Bucharest";S2q="-";S2q+="0";S2q+="3/-02";i42="-0";i42+="2";U25="-04/-";U25+="03";j4p="-05/-";j4p+="04";X9h="C";X9h+="hile";E_N="B";E_N+="ra";E_N+="z";E_N+="il";r92="-03";r92+="/-";r92+="02";K6K="E";K6K+="S";K6K+="T";c7r="E%";c7r+="sT";x2f="C";x2f+="u";x2f+="b";x2f+="a";A_5="M%";A_5+="sT";u29="M";u29+="exico";s3D="Canad";s3D+="a";f2m="HS";f2m+="T";n9m="M";n9m+="%";n9m+="sT";U_G="C%s";U_G+="T";y11="+";y11+="0";y11+="3";t_0="+";t_0+="1";t_0+="1";j5L="+";j5L+="11";Q0N="+";Q0N+="1";Q0N+="0";Y4l="+";Y4l+="0";Y4l+="4";c55="E";c55+="U";s$6="E";s$6+="U";i$J="E";i$J+="U";j7U="C";j7U+="E%";j7U+="sT";A2n="E";A2n+="U";s6y="Thul";s6y+="e";k5y="E";k5y+="U";h8z="E";h8z+="U";i3W="G";i3W+="M";i3W+="T/BS";i3W+="T";Q4p="To";Q4p+="nga";g$w="+1";g$w+="3/+14";r$L="W";r$L+="S";g3r="+";g3r+="12/";g3r+="+13";c29="AE%s";c29+="T";X94="AC%s";X94+="T";q23="A";q23+="Q";G3_="A";G3_+="W";K9l="+";K9l+="0";K9l+="3";n9S="+054";n9S+="5";O0H="M";O0H+="on";O0H+="g";O0H+="ol";W72="+07/+";W72+="08";x$T="Leb";x$T+="a";x$T+="no";x$T+="n";d7x="I";d7x+="S";d7x+="T";L8w="H";L8w+="K";P1e="C";P1e+="%";P1e+="s";P1e+="T";k9J="%";k9J+="s";c8l="S";c8l+="A";u2u="%";u2u+="s";Y27="Nami";Y27+="bia";Y9_="Pacifi";Y9_+="c/Apia";p0u="Pacific/Ch";p0u+="atha";p0u+="m";X0Q="P";X0Q+="acifi";X0Q+="c/Auckland";W2d="Asia/Ka";W2d+="mc";W2d+="h";W2d+="atka";s$W="Pacifi";s$W+="c/Noumea";X0R="Australia/Bri";X0R+="sbane";t1h="Asia/P";t1h+="yongyang";R94="Asia/To";R94+="k";R94+="yo";h6Z="Australi";h6Z+="a/Euc";h6Z+="la";g0$="Asi";g0$+="a";g0$+="/Taipei";v6b="Asia";v6b+="/Kual";v6b+="a_Lumpur";Q9T="Asi";Q9T+="a/Bangkok";t7u="A";t7u+="s";t7u+="ia/Kab";t7u+="ul";W5m="Asia";W5m+="/Du";W5m+="bai";v8Q="Asia/Te";v8Q+="hran";f5K="Euro";f5K+="pe/Mo";f5K+="scow";Z6N="Eu";Z6N+="rope/Istanb";Z6N+="ul";o89="Asi";o89+="a/Damasc";o89+="us";Z18="Europe/H";Z18+="elsinki";a9A="Africa/Joh";a9A+="annes";a9A+="burg";Q5m="Eur";Q5m+="ope/Bucharest";E8n="Afric";E8n+="a/Casablanc";E8n+="a";K1K="Afr";K1K+="ic";K1K+="a/Tun";K1K+="is";T0X="Atla";T0X+="ntic/South_";T0X+="Georgia";Y7z="America/Punta_Arena";Y7z+="s";G8y="America";G8y+="/Panama";N5K="Americ";N5K+="a/St_Johns";F2x="Am";F2x+="erica/Puerto_Rico";H27="Ame";H27+="rica/Santiag";H27+="o";F$t="America/";F$t+="N";F$t+="ew_Yor";F$t+="k";g2H="Amer";g2H+="ica/Reg";g2H+="i";g2H+="na";b9W="Americ";b9W+="a/Mexi";b9W+="co_City";t$9="America/Chic";t$9+="ago";Y3H="America/Costa_";Y3H+="Rica";T$4="Ameri";T$4+="ca/Denver";E4O="Paci";E4O+="fic/";E4O+="P";E4O+="ago_Pago";U4Z="undefi";U4Z+="n";U4Z+="ed";x3k=typeof _CIQ !== "undefined"?_CIQ:n6O.CIQ;n53=typeof _timezoneJS !== U4Z?_timezoneJS:n6O.timezoneJS;x3k.timeZoneMap={"(UTC-11:00) American Samoa, Midway Island":E4O,"(UTC-10:00) Hawaii":"Pacific/Honolulu","(UTC-09:00) Alaska":"America/Juneau","(UTC-08:00) Pacific Time (US and Canada), Tijuana":"America/Los_Angeles","(UTC-07:00) Arizona":"America/Phoenix","(UTC-07:00) Chihuahua, Mazatlan":"America/Chihuahua","(UTC-07:00) Mountain Time (US and Canada)":T$4,"(UTC-06:00) Central America":Y3H,"(UTC-06:00) Central Time (US and Canada)":t$9,"(UTC-06:00) Guadalajara, Mexico City, Monterrey":b9W,"(UTC-06:00) Saskatchewan":g2H,"(UTC-05:00) Bogota, Lima, Quito, Rio Branco":"America/Bogota","(UTC-05:00) Eastern Time (US and Canada)":F$t,"(UTC-05:00) Havana":"America/Havana","(UTC-05:00) Port-au-Prince":"America/Port-au-Prince","(UTC-04:00) Asuncion":"America/Asuncion","(UTC-04:00) Santiago":H27,"(UTC-04:00) Caracas":"America/Caracas","(UTC-04:00) Atlantic Time (Canada)":"America/Halifax","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan":F2x,"(UTC-03:30) Newfoundland and Labrador":N5K,"(UTC-03:00) Cancun, Jamaica, Panama":G8y,"(UTC-03:00) Buenos Aires":"America/Argentina/Buenos_Aires","(UTC-03:00) Punta Arenas":Y7z,"(UTC-03:00) Montevideo":"America/Montevideo","(UTC-03:00) Sao Paulo":"America/Sao_Paulo","(UTC-02:00) Mid-Atlantic":T0X,"(UTC-01:00) Azores":"Atlantic/Azores","(UTC-01:00) Cape Verde Islands":"Atlantic/Cape_Verde","(UTC) Greenwich Mean Time, Reykjavik":"UTC","(UTC) Dublin":"Europe/Dublin","(UTC) Lisbon, London":"Europe/London","(UTC+01:00) Algiers, Tunis":K1K,"(UTC+01:00) Casablanca":E8n,"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna":"Europe/Amsterdam","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague":"Europe/Belgrade","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris":"Europe/Brussels","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb":"Europe/Sarajevo","(UTC+02:00) Kaliningrad":"Europe/Kaliningrad","(UTC+02:00) Athens, Bucharest":Q5m,"(UTC+02:00) Cairo":"Africa/Cairo","(UTC+02:00) Harare, Johannesburg":a9A,"(UTC+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius":Z18,"(UTC+02:00) Cyprus":"Asia/Nicosia","(UTC+02:00) Beirut":"Asia/Beirut","(UTC+02:00) Damascus":o89,"(UTC+02:00) Jerusalem":"Asia/Jerusalem","(UTC+02:00) Amman":"Asia/Amman","(UTC+03:00) Istanbul":Z6N,"(UTC+03:00) Baghdad, Kuwait, Qatar, Riyadh":"Asia/Riyadh","(UTC+03:00) Minsk, Moscow, Kirov, Simferopol":f5K,"(UTC+03:00) Volgograd":"Europe/Volgograd","(UTC+03:00) Nairobi":"Africa/Nairobi","(UTC+03:30) Tehran":v8Q,"(UTC+04:00) Baku":"Asia/Baku","(UTC+04:00) Dubai, Muscat":W5m,"(UTC+04:00) Astrakhan, Samara, Saratov, Ulyanovsk":"Europe/Samara","(UTC+04:30) Kabul":t7u,"(UTC+05:00) Karachi, Tashkent":"Asia/Karachi","(UTC+05:00) Yekaterinburg":"Asia/Yekaterinburg","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi":"Asia/Kolkata","(UTC+05:45) Kathmandu":"Asia/Kathmandu","(UTC+06:00) Almaty":"Asia/Almaty","(UTC+06:00) Omsk":"Asia/Omsk","(UTC+06:00) Astana, Dhaka":"Asia/Dhaka","(UTC+06:30) Yangon":"Asia/Yangon","(UTC+07:00) Bangkok, Jakarta, Vietnam":Q9T,"(UTC+07:00) Hovd":"Asia/Hovd","(UTC+07:00) Krasnoyarsk":"Asia/Krasnoyarsk","(UTC+07:00) Novokuznetsk":"Asia/Novokuznetsk","(UTC+07:00) Barnaul, Novosibirsk, Tomsk":"Asia/Novosibirsk","(UTC+08:00) Beijing, Chongqing, Hong Kong SAR":"Asia/Hong_Kong","(UTC+08:00) Brunei, Kuala Lumpur, Singapore":v6b,"(UTC+08:00) Irkutsk":"Asia/Irkutsk","(UTC+08:00) Choibalsan, Ulaanbaatar":"Asia/Ulaanbaatar","(UTC+08:00) Manila, Taipei":g0$,"(UTC+08:00) Perth":"Australia/Perth","(UTC+08:45) Eucla":h6Z,"(UTC+09:00) Osaka, Sapporo, Tokyo":R94,"(UTC+09:00) Pyongyang":t1h,"(UTC+09:00) Seoul":"Asia/Seoul","(UTC+09:00) Chita, Khandyga, Yakutsk":"Asia/Yakutsk","(UTC+09:30) Adelaide":"Australia/Adelaide","(UTC+09:30) Darwin":"Australia/Darwin","(UTC+10:00) Brisbane":X0R,"(UTC+10:00) Canberra, Melbourne, Sydney":"Australia/Sydney","(UTC+10:00) Guam, Port Moresby":"Pacific/Guam","(UTC+10:00) Ust-Nera, Vladivostok":"Asia/Vladivostok","(UTC+11:00) Noumea, Solomon Islands":s$W,"(UTC+11:00) Magadan":"Asia/Magadan","(UTC+11:00) Sakhalin, Srednekolymsk":"Asia/Srednekolymsk","(UTC+12:00) Anadyr, Kamchatka":W2d,"(UTC+12:00) Auckland, Wellington":X0Q,"(UTC+12:00) Fiji":"Pacific/Fiji","(UTC+12:45) Chatham":p0u,"(UTC+13:00) Tonga":"Pacific/Tongatapu","(UTC+13:00) Samoa":Y9_,"(UTC+14:00) Kiritimati":"Pacific/Kiritimati"};(function(){var L9E=A2IFV;var R97,f7O,W50,f7A,k7U,p8I,n4l,V7P,r3Z,L0m,D8n,c4e,r5f,m7V,v7z,S2B,R$c,i8x,O18,i8b,J6x,F0l;R97="N";R97+="ov";R97+="em";R97+="ber";f7O="O";f7O+="ct";f7O+="obe";f7O+="r";W50="S";W50+="eptem";W50+="be";W50+="r";f7A="Ju";f7A+="ne";k7U="M";k7U+="a";k7U+="y";p8I="A";p8I+="pril";n4l="M";n4l+="arch";V7P="S";V7P+="at";V7P+="urda";V7P+="y";r3Z="M";r3Z+="o";r3Z+="nda";r3Z+="y";L0m="un";L0m+="defin";L0m+="ed";"use strict";D8n=typeof window !== "undefined"?window:null;c4e=D8n || (typeof global !== L0m?global:{});n53.VERSION="0.4.11";r5f=c4e.$ || c4e.jQuery || c4e.Zepto;m7V=c4e.fleegix;v7z=n53.Days=["Sunday",r3Z,"Tuesday","Wednesday","Thursday","Friday",V7P];S2B=n53.Months=["January","February",n4l,p8I,k7U,f7A,"July","August",W50,f7O,R97,"December"];R$c={};i8x={};O18={};for(var A7y=0;A7y < S2B.length;A7y++){R$c[S2B[A7y].substr(L9E.S40(1,"0",L9E.D0J(1)),3)]=A7y;}for(A7y=+"0";A7y < v7z.length;A7y++){i8x[v7z[A7y].substr(0,L9E.q7n(1,"3",L9E.D0J(1)))]=A7y;}i8b=Array.prototype.indexOf || (function(y$0){var E6G,w7T,T4O,e48,U4Q,I$J,O1K;if(this === null){throw new TypeError();}E6G=Object(this);w7T=E6G.length >>> 0;if(w7T === +"0"){return -1;}T4O=0;if(arguments.length > 1){T4O=Number(arguments[1]);if(T4O != T4O){T4O=0;}else if(T4O !== 0 && T4O !== Infinity && T4O !== -Infinity){e48=932114445;U4Q=372162485;I$J=2;for(var R4j=1;L9E.Z2Z(R4j.toString(),R4j.toString().length,67787) !== e48;R4j++){L9E.D0J(7);var N4a=L9E.S40(8,9);L9E.H6P(133);var V0W=L9E.S40(2,2,1,3,10);T4O=(T4O <= N4a && ~("6" * V0W)) / Math.floor(Math.abs(T4O));I$J+=2;}if(L9E.Z2Z(I$J.toString(),I$J.toString().length,46816) !== U4Q){L9E.H6P(18);var u3s=L9E.q7n(16,4,3);L9E.D0J(7);var z_v=L9E.q7n(9,15);T4O=(T4O <= u3s && ~z_v) / Math.floor(Math.abs(T4O));}L9E.H6P(22);var b_$=L9E.q7n(1,5,11,56);T4O=(T4O > 0 || b_$) * Math.floor(Math.abs(T4O));}}if(T4O >= w7T){return -1;}O1K=T4O >= 0?T4O:Math.max(w7T - Math.abs(T4O),0);for(;O1K < w7T;O1K++){if((O1K in E6G) && E6G[O1K] === y$0){return O1K;}}L9E.D0J(40);return -L9E.q7n(0,"1");});J6x=function(d0e,F72){var E8K,a$J,S3Z,V7y;E8K="nu";E8K+="mber";if(typeof d0e !== E8K){L9E.H6P(0);throw L9E.S40("not a number: ",d0e);}L9E.H6P(70);a$J=L9E.q7n(d0e,1000);S3Z=d0e.toString();V7y=S3Z.length;if(a$J && V7y > F72){L9E.H6P(7);return S3Z.substr(L9E.S40(F72,V7y),V7y);}S3Z=[S3Z];while(V7y < F72){S3Z.unshift((5020,"1007" ^ 0) <= +"4470"?679.89 < +"3623"?"0":8755 != 751?"B":(!!0,7.04e+3):629.34);V7y++;}return S3Z.join("");};F0l=function(G1h){var l8U,i_y,B6L;l8U="u";l8U+="nd";l8U+="efi";l8U+="ned";i_y="un";i_y+="defined";B6L="URL m";B6L+="ust be specified";if(!G1h){return;}if(!G1h.url){throw new Error(B6L);}if(!(("async" in G1h))){G1h.async=!!"1";}if((!m7V || typeof m7V.xhr === i_y) && (!r5f || typeof r5f.ajax === l8U)){throw new Error("Please use the Fleegix.js XHR module, jQuery ajax, Zepto ajax, or define your own transport mechanism for downloading zone files.");}if(!G1h.async){return m7V && m7V.xhr?m7V.xhr.doReq({url:G1h.url,async:![]}):r5f.ajax({url:G1h.url,async:!({}),dataType:"text"}).responseText;}return m7V && m7V.xhr?m7V.xhr.send({url:G1h.url,method:"get",handleSuccess:G1h.success,handleErr:G1h.error}):r5f.ajax({url:G1h.url,dataType:"text",method:"GET",error:G1h.error,success:G1h.success});};n53.ruleCache={};n53.Date=function(){var E$i,x6Y,I17,D2R,I$R,Y6F,J5H;E$i="s";E$i+="t";E$i+="ri";E$i+="ng";if(this === n53){throw "timezoneJS.Date object must be constructed with 'new'";}x6Y=Array.prototype.slice.apply(arguments);I17=null;D2R=null;I$R=[];Y6F=![];if(Object.prototype.toString.call(x6Y[0]) === "[object Array]"){x6Y=x6Y[0];}if(typeof x6Y[x6Y.length - 1] === E$i){Y6F=Date.parse(x6Y[x6Y.length - 1].replace(/GMT[+-]\d+/,""));if(isNaN(Y6F) || Y6F === null){D2R=x6Y.pop();}}J5H=!1;switch(x6Y.length){case "0" | 0:I17=new Date();break;case 1:I17=new Date(x6Y[0]);if(typeof x6Y[0] == "string" && x6Y[0].search(/[+-][0-9]{4}/) == -1 && x6Y[0].search(/Z/) == -1 && x6Y[0].search(/T/) == -1){J5H=!0;}break;case 2:I17=new Date(x6Y[+"0"],x6Y[1]);J5H=!!({});break;default:for(var W6l=0;W6l < "7" << 0;W6l++){I$R[W6l]=x6Y[W6l] || 0;}L9E.D0J(10);I17=new Date(I$R[0],I$R[+"1"],I$R[2],I$R[3],I$R[4],I$R[5],I$R[L9E.S40("6",4)]);J5H=!"";break;}if(isNaN(I17.getTime())){throw new Error("Invalid date");}this._useCache=![];this._tzInfo={};this._day=0;L9E.D0J(40);this.year=L9E.S40(0,"0");this.month=0;this.date=0;this.hours=0;this.minutes=0;this.seconds=0;this.milliseconds=0;this.timezone=D2R || null;if(J5H){this.setFromDateObjProxy(I17);}else {this.setFromTimeProxy(I17.getTime(),D2R);}};x3k.extend(n53.Date.prototype,{getDate:function(){return this.date;},getDay:function(){L9E.D0H();return this._day;},getFullYear:function(){return this.year;},getMonth:function(){return this.month;},getYear:function(){L9E.H6P(121);var g$_=L9E.S40(10,1689,17,238);return this.year - g$_;},getHours:function(){return this.hours;},getMilliseconds:function(){return this.milliseconds;},getMinutes:function(){return this.minutes;},getSeconds:function(){L9E.D0H();return this.seconds;},getUTCDate:function(){L9E.D0H();return this.getUTCDateProxy().getUTCDate();},getUTCDay:function(){L9E.a9S();return this.getUTCDateProxy().getUTCDay();},getUTCFullYear:function(){L9E.a9S();return this.getUTCDateProxy().getUTCFullYear();},getUTCHours:function(){return this.getUTCDateProxy().getUTCHours();},getUTCMilliseconds:function(){return this.getUTCDateProxy().getUTCMilliseconds();},getUTCMinutes:function(){L9E.D0H();return this.getUTCDateProxy().getUTCMinutes();},getUTCMonth:function(){L9E.a9S();return this.getUTCDateProxy().getUTCMonth();},getUTCSeconds:function(){L9E.D0H();return this.getUTCDateProxy().getUTCSeconds();},getTime:function(){L9E.H6P(52);L9E.a9S();var K2r=L9E.S40(16740,1200,14);L9E.D0J(134);var v$X=L9E.q7n(20011,995,20000,11,5);return this._timeProxy + this.getTimezoneOffset() * K2r * v$X;},getTimezone:function(){return this.timezone;},getTimezoneOffset:function(){return this.getTimezoneInfo().tzOffset;},getTimezoneAbbreviation:function(){L9E.a9S();return this.getTimezoneInfo().tzAbbr;},getTimezoneInfo:function(){var u8q,k9L,A0p;if(this._useCache){return this._tzInfo;}if(this.timezone){k9L="U";k9L+="T";k9L+="C";A0p="Etc";A0p+="/U";A0p+="T";A0p+="C";u8q=this.timezone === A0p || this.timezone === "Etc/GMT"?{tzOffset:0,tzAbbr:k9L}:n53.timezone.getTzInfo(this._timeProxy,this.timezone);}else {u8q={tzOffset:this.getLocalOffset(),tzAbbr:null};}this._tzInfo=u8q;L9E.a9S();this._useCache=!!({});return u8q;},getUTCDateProxy:function(){var x$3;x$3=new Date(this._timeProxy);L9E.a9S();x$3.setUTCMinutes(x$3.getUTCMinutes() + this.getTimezoneOffset());return x$3;},setDate:function(X$e){this.setAttribute("date",X$e);L9E.a9S();return this.getTime();},setFullYear:function(j5P,V4L,i5a){var A4f;L9E.a9S();if(i5a !== undefined){this.setAttribute("date",1);}this.setAttribute("year",j5P);if(V4L !== undefined){A4f="mo";A4f+="nt";A4f+="h";this.setAttribute(A4f,V4L);}if(i5a !== undefined){this.setAttribute("date",i5a);}return this.getTime();},setMonth:function(g3I,g1g){this.setAttribute("month",g3I);if(g1g !== undefined){this.setAttribute("date",g1g);}L9E.D0H();return this.getTime();},setYear:function(l2W){l2W=Number(l2W);if(0 <= l2W && l2W <= 99){l2W+=1900;}this.setUTCAttribute("year",l2W);return this.getTime();},setHours:function(v5n,O$R,q2D,z5B){L9E.D0H();this.setAttribute("hours",v5n);if(O$R !== undefined){this.setAttribute("minutes",O$R);}if(q2D !== undefined){this.setAttribute("seconds",q2D);}if(z5B !== undefined){this.setAttribute("milliseconds",z5B);}return this.getTime();},setMinutes:function(S70,Q4x,T52){var N99;this.setAttribute("minutes",S70);if(Q4x !== undefined){N99="s";N99+="ec";N99+="on";N99+="ds";this.setAttribute(N99,Q4x);}if(T52 !== undefined){this.setAttribute("milliseconds",T52);}return this.getTime();},setSeconds:function(o4D,t9V){this.setAttribute("seconds",o4D);if(t9V !== undefined){this.setAttribute("milliseconds",t9V);}return this.getTime();},setMilliseconds:function(N_3){var y1x;y1x="millise";y1x+="conds";this.setAttribute(y1x,N_3);return this.getTime();},setTime:function(B9m){if(isNaN(B9m)){throw new Error("Units must be a number.");}this.setFromTimeProxy(B9m,this.timezone);return this.getTime();},setUTCFullYear:function(b5R,T5v,g7u){L9E.a9S();var s6W,X1b,Y8M;if(g7u !== undefined){s6W=-+"107761421";X1b=1862984064;Y8M=+"2";for(var j3W=1;L9E.U6$(j3W.toString(),j3W.toString().length,49801) !== s6W;j3W++){this.setUTCAttribute("",3);Y8M+=+"2";}if(L9E.U6$(Y8M.toString(),Y8M.toString().length,25666) !== X1b){this.setUTCAttribute("",3);}this.setUTCAttribute("date",1);}this.setUTCAttribute("year",b5R);if(T5v !== undefined){this.setUTCAttribute("month",T5v);}if(g7u !== undefined){this.setUTCAttribute("date",g7u);}return this.getTime();},setUTCMonth:function(E8_,C8w){this.setUTCAttribute("month",E8_);if(C8w !== undefined){this.setUTCAttribute("date",C8w);}L9E.D0H();return this.getTime();},setUTCDate:function(H8c){var L0$;L0$="da";L0$+="te";this.setUTCAttribute(L0$,H8c);return this.getTime();},setUTCHours:function(s8H,A91,M0E,J02){var G4u;G4u="h";G4u+="o";G4u+="ur";G4u+="s";this.setUTCAttribute(G4u,s8H);if(A91 !== undefined){this.setUTCAttribute("minutes",A91);}if(M0E !== undefined){this.setUTCAttribute("seconds",M0E);}if(J02 !== undefined){this.setUTCAttribute("milliseconds",J02);}return this.getTime();},setUTCMinutes:function(L$v,Q9G,n0D){this.setUTCAttribute("minutes",L$v);if(Q9G !== undefined){this.setUTCAttribute("seconds",Q9G);}if(n0D !== undefined){this.setUTCAttribute("milliseconds",n0D);}return this.getTime();},setUTCSeconds:function(i0N,h_z){var I6R;this.setUTCAttribute("seconds",i0N);if(h_z !== undefined){I6R="millise";I6R+="con";I6R+="ds";this.setUTCAttribute(I6R,h_z);}return this.getTime();},setUTCMilliseconds:function(b$w){this.setUTCAttribute("milliseconds",b$w);return this.getTime();},setFromDateObjProxy:function(w8E){this.year=w8E.getFullYear();this.month=w8E.getMonth();this.date=w8E.getDate();this.hours=w8E.getHours();this.minutes=w8E.getMinutes();this.seconds=w8E.getSeconds();this.milliseconds=w8E.getMilliseconds();this._day=w8E.getDay();this._dateProxy=w8E;this._timeProxy=Date.UTC(this.year,this.month,this.date,this.hours,this.minutes,this.seconds,this.milliseconds);this._useCache=!"1";},setFromTimeProxy:function(e$2,m$V){var T6c,B8t;T6c=new Date(e$2);L9E.D0H();B8t=m$V?n53.timezone.getTzInfo(e$2,m$V,!0).tzOffset:T6c.getTimezoneOffset();T6c.setTime(e$2 + (T6c.getTimezoneOffset() - B8t) * 60000);this.setFromDateObjProxy(T6c);},setAttribute:function(h7r,f51){var O2$,h6T,d3x;if(isNaN(f51)){O2$="Uni";O2$+="ts must be a number.";throw new Error(O2$);}h6T=this._dateProxy;d3x=h7r === "year"?"FullYear":h7r.substr(0,1).toUpperCase() + h7r.substr(1);h6T["set" + d3x](f51);this.setFromDateObjProxy(h6T);},setUTCAttribute:function(u4$,b5o){var q_G,V3y;if(isNaN(b5o)){throw new Error("Units must be a number.");}L9E.a9S();q_G=u4$ === "year"?"FullYear":u4$.substr(0,1).toUpperCase() + u4$.substr("1" >> 0);V3y=this.getUTCDateProxy();V3y["setUTC" + q_G](b5o);V3y.setUTCMinutes(V3y.getUTCMinutes() - this.getTimezoneOffset());this.setFromTimeProxy(V3y.getTime() + this.getTimezoneOffset() * 60000,this.timezone);},setTimezone:function(o29){var T1D;T1D=this.getTimezoneInfo().tzOffset;this.timezone=o29;this._useCache=!({});L9E.D0H();this.setUTCMinutes(this.getUTCMinutes() - this.getTimezoneInfo().tzOffset + T1D);},removeTimezone:function(){this.timezone=null;this._useCache=![];},valueOf:function(){return this.getTime();},clone:function(){return this.timezone?new n53.Date(this.getTime(),this.timezone):new n53.Date(this.getTime());},toGMTString:function(){var q4U;q4U="Etc";q4U+="/GMT";return this.toString("EEE, dd MMM yyyy HH:mm:ss Z",q4U);},toLocaleStringIntl:function(){},toLocaleDateString:function(){},toLocaleTimeString:function(){},toSource:function(){},toISOString:function(){var D1D;D1D="Etc";L9E.a9S();D1D+="/";D1D+="UTC";L9E.H6P(36);var r0s=L9E.S40(12,7033,15);L9E.D0J(135);var c3S=L9E.S40(19490,1642,18,12);return this.toString("yyyy-MM-ddTHH:mm:ss.SSS",D1D) + (r0s < c3S?"Z":"a");},toJSON:function(){L9E.a9S();return this.toISOString();},toDateString:function(){var y92;y92="E";L9E.a9S();y92+="EE M";y92+="MM dd yyy";y92+="y";return this.toString(y92);},toTimeString:function(){L9E.a9S();return this.toString("H:mm k");},toString:function(G6H,m8X){var G7b,L9p,B4L,a8m,X5p;G7b="yyyy-MM-ddTHH:";G7b+="mm";G7b+=":ss.SSS";if(!G6H){G6H=G7b;}L9p=G6H;L9E.D0H();B4L=m8X?n53.timezone.getTzInfo(this.getTime(),m8X):this.getTimezoneInfo();a8m=this;if(m8X){a8m=this.clone();a8m.setTimezone(m8X);}X5p=a8m.getHours();return L9p.replace(/a+/g,function(){return (6330,1920) <= (891.18,7580)?"k":(5350,"281.12" * 1) != (949,"120.62" - 0)?5.94e+3:+"346.59";}).replace(/y+/g,function(h54){return J6x(a8m.getFullYear(),h54.length);}).replace(/d+/g,function(Z2A){return J6x(a8m.getDate(),Z2A.length);}).replace(/m+/g,function(T1g){L9E.D0H();return J6x(a8m.getMinutes(),T1g.length);}).replace(/s+/g,function(u1h){return J6x(a8m.getSeconds(),u1h.length);}).replace(/S+/g,function(D22){return J6x(a8m.getMilliseconds(),D22.length);}).replace(/h+/g,function(X9n){return J6x(X5p % +"12" === 0?12:X5p % ("12" | 12),X9n.length);}).replace(/M+/g,function(r0R){var j9j,l0H;L9E.D0H();j9j=a8m.getMonth();l0H=r0R.length;if(l0H > +"3"){return n53.Months[j9j];}else if(l0H > +"2"){return n53.Months[j9j].substring(0,l0H);}L9E.D0J(0);return J6x(L9E.q7n(j9j,1),l0H);}).replace(/k+/g,function(){if(X5p >= ("12" ^ 0)){if(X5p > "12" - 0){X5p-=12;}return "PM";}L9E.a9S();return "AM";}).replace(/H+/g,function(g0I){L9E.a9S();return J6x(X5p,g0I.length);}).replace(/E+/g,function(c1X){L9E.D0J(28);L9E.D0H();return v7z[a8m.getDay()].substring(L9E.q7n("0",96),c1X.length);}).replace(/Z+/gi,function(){return B4L.tzAbbr;});},toUTCString:function(){L9E.D0H();return this.toGMTString();},civilToJulianDayNumber:function(A3i,h_c,E17){var U1J,E$L,L33;h_c++;if(h_c > "12" << 32){L9E.D0J(14);U1J=parseInt(L9E.S40(12,h_c),10);L9E.D0J(75);h_c=L9E.q7n(h_c,12);A3i+=U1J;}if(h_c <= 2){A3i-=1;h_c+=12;}L9E.D0J(8);U1J=Math.floor(L9E.S40(A3i,"100"));L9E.D0J(39);var R65=L9E.S40(9,4,3);L9E.H6P(12);var F5b=L9E.S40(7,3,7);E$L=R65 - U1J + Math.floor(U1J / F5b);L9E.H6P(52);var I1m=L9E.q7n(44,15,3);L9E.D0J(106);var S$u=L9E.S40(15,152,1496,19,17);L9E.a9S();L33=Math.floor(365.25 * (A3i + +"4716")) + Math.floor(+"30.6001" * (h_c + I1m)) + E17 + E$L - S$u;return L33;},getLocalOffset:function(){L9E.D0H();return this._dateProxy.getTimezoneOffset();}},!!1);n53.timezone=new (function(){var I1v,h1S,E4f,d6u,w0o,R_k,C0t,d7u,V3S,D9T,u$D,t4j,G8A,I91,q$k,h5k,n1T,Y_O,J8h,r2m,J$8,c$3,h24,I$t,c$Z,B71,F$X;I1v="m";I1v+="an";I1v+="ualLoa";I1v+="d";h1S="p";h1S+="r";h1S+="el";h1S+="oadAll";E4f="e";E4f+="u";E4f+="rope";d6u="etcete";d6u+="ra";w0o="a";w0o+="fr";function E7u(o$t,U6c,D8t,j5d){var r7q,f1C,Q9D,L6Y,S0I,q_2,X5W,J$f,c9_,P_d,C4F,s8b,P6z,t5s,j0I;r7q="nu";r7q+="mber";f1C=typeof o$t === r7q?new Date(o$t):o$t;Q9D=U6c[1];L6Y=U6c[0];S0I=Q9D.match(/^([0-9]):([0-9][0-9])$/);if(S0I){q_2="m";q_2+="a";q_2+="x";L9E.D0J(123);var f2E=L9E.q7n(20,14,271,18);L9E.H6P(7);var Z$U=L9E.q7n(19,29);L9E.D0J(19);var U_o=L9E.S40(120,9,20,89);L9E.D0J(52);var P85=L9E.q7n(36,19,2);L9E.D0J(1);return [-1000000,q_2,337.42 >= 5080?0x69c:4020 >= (6720,100.04)?"925" - 0 > 2650?(0x1486,0x1dce):"-":(246.19,0x74e),"Jan",L9E.S40(1,"1"),[+"0",0,0],parseInt(S0I[f2E],Z$U) * U_o + parseInt(S0I[P85],"10" - 0),"-"];}X5W=function(s$Y,S$Q,C2T){var T5y;T5y=0;if(S$Q === "u" || S$Q === (9752 === 7560?432.49:"g") || S$Q === ((434.62,"9460" >> 64) >= 3200?(282,680.96) >= 6070?("0x139d" - 0,890.28):"z":0x2329)){T5y=0;}else if(S$Q === "s"){T5y=L6Y;}else if(S$Q === "w" || !S$Q){T5y=F_m(L6Y,C2T[6]);}else {L9E.H6P(0);throw new Error(L9E.S40("unknown type ",S$Q));}L9E.H6P(136);T5y*=L9E.S40("1000",60);return new Date(s$Y.getTime() + T5y);};J$f=function(a2y,m47){var e8W,o_n,H4w,c47,O3a,q2$,U8f;L9E.a9S();e8W=a2y[0];o_n=a2y[1];H4w=o_n[5];if(!O18[e8W]){O18[e8W]={};}if(O18[e8W][o_n]){c47=O18[e8W][o_n];}else {if(!isNaN(o_n[4])){c47=new Date(Date.UTC(e8W,R$c[o_n[3]],o_n["4" - 0],H4w[0],H4w[1],H4w[2],0));}else {if(o_n[4].substr("0" * 1,4) === "last"){c47=new Date(Date.UTC(e8W,R$c[o_n[+"3"]] + +"1",1,H4w[0] - +"24",H4w[1],H4w[2],0));O3a=i8x[o_n[4].substr(L9E.S40(1,"4",L9E.H6P(1)),+"3")];q2$="<=";}else {c47=new Date(Date.UTC(e8W,R$c[o_n[3]],o_n[4].substr("5" | 1),H4w[0],H4w[+"1"],H4w[2],0));O3a=i8x[o_n[4].substr(0,L9E.q7n(1,"3",L9E.H6P(1)))];q2$=o_n["4" << 32].substr(3,2);}U8f=c47.getUTCDay();if(q2$ === ">="){c47.setUTCDate(c47.getUTCDate() + (O3a - U8f + (O3a < U8f?7:0)));}else {c47.setUTCDate(c47.getUTCDate() + (O3a - U8f - (O3a > U8f?7:0)));}}O18[e8W][o_n]=c47;}if(m47){c47=X5W(c47,H4w["3" | 1],m47);}return c47;};c9_=function(w$G,H95){var f$z;f$z=[];for(var m_j=0;H95 && m_j < H95.length;m_j++){if(H95[m_j][+"0"] <= w$G && (H95[m_j][1] >= w$G || H95[m_j][0] === w$G && H95[m_j]["1" | 1] === "only" || H95[m_j][1] === "max")){f$z.push([w$G,H95[m_j]]);}}return f$z;};P_d=function(L$9,Q$a,C9E){var T9Z,A0J;if(!(L$9 instanceof Date)){T9Z=L$9[0];A0J=L$9[1];L$9=!C9E && O18[T9Z] && O18[T9Z][A0J]?O18[T9Z][A0J]:J$f(L$9,C9E);}else if(C9E){L$9=X5W(L$9,D8t?959.67 < (5096,9950)?(876.65,783) === 4140?(640.58,"N"):"u":(!({}),"865.13" * 1):+"4380" > ("647.73" - 0,8889)?(3.82e+3,"K"):(6230,4480) > (1100,1176)?"4141" - 0 === 1270?(4.00e+3,"Z"):"w":(170.58,5.03e+3),C9E);}if(!(Q$a instanceof Date)){T9Z=Q$a[0];A0J=Q$a[1];Q$a=!C9E && O18[T9Z] && O18[T9Z][A0J]?O18[T9Z][A0J]:J$f(Q$a,C9E);}else if(C9E){Q$a=X5W(Q$a,D8t?(6490,9710) != (683.18,1260)?"u":6920 == 256.29?(+"0xa46",!"1"):+"780.47":"w",C9E);}L$9=Number(L$9);L9E.a9S();Q$a=Number(Q$a);L9E.H6P(7);return L9E.q7n(Q$a,L$9);};C4F=f1C.getUTCFullYear();P6z=n53.ruleCache[j5d];if(!P6z){P6z=n53.ruleCache[j5d]={};}s8b=P6z[C4F];if(!s8b){L9E.H6P(7);s8b=c9_(L9E.S40(1,C4F),c$Z.rules[Q9D]);s8b=s8b.concat(c9_(C4F,c$Z.rules[Q9D]));s8b.sort(P_d);P6z[C4F]=s8b;}if(!s8b || !s8b.length){return null;}for(var R4$=s8b.length - 1;R4$ >= 0;R4$--){if(R4$ > 0){L9E.D0J(137);t5s=s8b[L9E.q7n(1,"1",R4$)][L9E.q7n(1,"1",L9E.D0J(1))];}else {t5s=null;}j0I=s8b[R4$];if(!j0I[2]){j0I[2]=J$f(j0I,t5s);;}if(P_d(f1C,j0I,t5s) >= 0){L9E.D0J(40);return j0I[L9E.S40(32,"1")];}}return null;;}w0o+="ic";w0o+="a";R_k="asi";function l0F(M$M,S7l){var i3p;L9E.D0J(7);var Z7x=L9E.q7n(5330,10660);L9E.D0H();L9E.H6P(138);var P6H=L9E.q7n(63960,4,3,2,2665);L9E.D0J(12);var R7H=L9E.S40(17,135,17);L9E.H6P(36);var q7M=L9E.S40(20,6190,14);i3p=c$Z.zoneFileBasePath + (Z7x != +"48.02"?"/":23.26 >= P6H?R7H:("C",q7M)) + M$M;return !S7l || !S7l.async?c$Z.parseZones(c$Z.transport({url:i3p,async:![]})):c$Z.transport({async:!![],url:i3p,success:function(F9E){return c$Z.parseZones(F9E) && typeof S7l.callback === "function" && S7l.callback();},error:function(){L9E.D0H();L9E.D0J(37);throw new Error(L9E.S40("' zoneinfo files","Error retrieving '",i3p));}});}R_k+="a";C0t="e";C0t+="tceter";function r2_(J5e){var G80,a7N;G80=/(\d+)(?::0*(\d*))?(?::0*(\d*))?([wsugz])?$/;a7N=J5e.match(G80);a7N[1]=parseInt(a7N[1],10);L9E.H6P(21);a7N[L9E.q7n("2",0)]=a7N[2]?parseInt(a7N[2],+"10"):0;a7N[3]=a7N[3]?parseInt(a7N[3],10):0;return a7N.slice(1,5);}C0t+="a";d7u="e";d7u+="uro";d7u+="p";d7u+="e";V3S="e";V3S+="uro";V3S+="pe";D9T="e";D9T+="u";D9T+="rope";u$D="eu";u$D+="r";u$D+="ope";t4j="eu";t4j+="rop";t4j+="e";G8A="asi";G8A+="a";I91="a";I91+="fr";I91+="ic";function y3p(o_Q){var z6p,C8J,J$N,W6O,M_u;z6p=F$X[o_Q];if(z6p){return z6p;}C8J=o_Q.split((6730,9880) != 8170?"/":(6.19e+3,650.85))[L9E.S40("0",0,L9E.D0J(21))];J$N=B71[C8J];L9E.D0H();if(J$N){return J$N;}W6O=c$Z.zones[o_Q];if(typeof W6O === "string"){return y3p(W6O);}if(!c$Z.loadedZones.backward){M_u="bac";M_u+="kwa";M_u+="rd";c$Z.loadZoneFile(M_u);return y3p(o_Q);}c0d(o_Q);}I91+="a";q$k="eu";q$k+="r";function F_m(W6x,Y7A){L9E.D0J(7);L9E.D0H();return -Math.ceil(L9E.S40(W6x,Y7A));}q$k+="o";function p0F(x8M){var b1M,s0I,w7U,z$L;L9E.a9S();if(!x8M[3]){return;}b1M=parseInt(x8M[3],"10" << 0);s0I=11;w7U=31;if(x8M[4]){s0I=R$c[x8M[4].substr(L9E.S40("0",0,L9E.H6P(10)),3)];w7U=parseInt(x8M[5],10) || 1;}z$L=x8M[+"6"]?r2_(x8M[6]):[+"0",0,0];L9E.H6P(28);return [b1M,s0I,w7U,z$L[L9E.S40("0",0)],z$L[1],z$L[2]];}q$k+="pe";h5k="eu";h5k+="ro";h5k+="pe";n1T="a";n1T+="us";n1T+="tralasia";Y_O="a";Y_O+="s";Y_O+="ia";J8h="anta";J8h+="rc";function c0d(o1L){var s3V;L9E.a9S();s3V="' is either incorrect, or not l";s3V+="oaded in the timezone registry.";L9E.H6P(37);throw new Error(L9E.S40(s3V,"Timezone '",o1L));}J8h+="tica";r2m="a";r2m+="u";r2m+="str";function d07(q79,z8t){var c_T,W_y,W$f,b7U,W00,U9z,J7r;c_T="stri";c_T+="n";c_T+="g";W_y=typeof q79 === "number"?q79:new Date(+q79).getTime();W$f=z8t;b7U=c$Z.zones[W$f];while(typeof b7U === c_T){W$f=b7U;b7U=c$Z.zones[W$f];}if(!b7U){if(!c$Z.loadedZones.backward){c$Z.loadZoneFile("backward");return d07(q79,z8t);}else if(W$f && W$f !== z8t){c$Z.lazyLoadZoneFiles(W$f);return d07(q79,W$f);}c0d(W$f);}if(b7U.length === 0){W00="' on";W00+=" ";U9z="No Zone ";U9z+="f";U9z+="ound f";U9z+="or '";L9E.H6P(48);throw new Error(L9E.S40(q79,W00,z8t,U9z));}for(var D4u=b7U.length - ("1" - 0);D4u >= 0;D4u--){J7r=b7U[D4u];if(J7r[3] && W_y > J7r[3])break;}L9E.H6P(0);return b7U[L9E.q7n(D4u,1)];}r2m+="alasia";J$8="sou";J$8+="th";J$8+="am";J$8+="erica";c$3="northam";c$3+="erica";h24="northam";h24+="e";h24+="rica";I$t="northa";I$t+="merica";c$Z=this;B71={Etc:"etcetera",EST:"northamerica",MST:"northamerica",HST:I$t,EST5EDT:"northamerica",CST6CDT:h24,MST7MDT:c$3,PST8PDT:"northamerica",America:["northamerica",J$8],Pacific:r2m,Atlantic:"europe",Africa:"africa",Indian:"africa",Antarctica:J8h,Asia:Y_O,Australia:n1T,Europe:"europe",WET:"europe",CET:h5k,MET:"europe",EET:q$k};F$X={"Pacific/Honolulu":"northamerica","Atlantic/Bermuda":"northamerica","Atlantic/Cape_Verde":I91,"Atlantic/St_Helena":"africa","Indian/Kerguelen":"antarctica","Indian/Chagos":G8A,"Indian/Maldives":"asia","Indian/Christmas":"australasia","Indian/Cocos":"australasia","America/Danmarkshavn":"europe","America/Scoresbysund":"europe","America/Godthab":t4j,"America/Thule":u$D,"Asia/Istanbul":"europe","Asia/Yekaterinburg":"europe","Asia/Omsk":"europe","Asia/Novosibirsk":D9T,"Asia/Krasnoyarsk":"europe","Asia/Irkutsk":V3S,"Asia/Yakutsk":"europe","Asia/Vladivostok":"europe","Asia/Sakhalin":"europe","Asia/Magadan":d7u,"Asia/Kamchatka":"europe","Asia/Anadyr":"europe","Africa/Ceuta":"europe",GMT:C0t,"Europe/Nicosia":R_k};this.zoneFileBasePath=null;this.zoneFiles=[w0o,"antarctica","asia","australasia","backward",d6u,E4f,"northamerica","pacificnew","southamerica"];this.loadingSchemes={PRELOAD_ALL:h1S,LAZY_LOAD:"lazyLoad",MANUAL_LOAD:I1v};this.getRegionForTimezone=y3p;this.loadingScheme=this.loadingSchemes.LAZY_LOAD;this.loadedZones={};this.zones={};this.rules={};this.init=function(X0f){var S88,a7_,y7v;S88="northam";S88+="erica";a7_={async:!![]};y7v=this.loadingScheme === this.loadingSchemes.PRELOAD_ALL?this.zoneFiles:this.defaultZoneFile || S88;for(var P4V in X0f){a7_[P4V]=X0f[P4V];}return this.loadZoneFiles(y7v,a7_);};this.loadZoneFiles=function(z_j,S7f){var y0a,Z89;Z89=0;if(typeof z_j === "string"){return this.loadZoneFile(z_j,S7f);}S7f=S7f || ({});L9E.a9S();y0a=S7f.callback;S7f.callback=function(){var j13;j13="funct";j13+="i";j13+="on";L9E.D0H();Z89++;Z89 === z_j.length && typeof y0a === j13 && y0a();};for(var O08=+"0";O08 < z_j.length;O08++){this.loadZoneFile(z_j[O08],S7f);}};this.loadZoneFile=function(V9o,s5W){var g4U,V2m;g4U="undef";g4U+="ined";L9E.D0H();if(typeof this.zoneFileBasePath === g4U){V2m="Plea";V2m+="se define a b";V2m+="ase path ";V2m+="to your zone file directory -- timezoneJS.timezone.zoneFileBasePath.";throw new Error(V2m);}if(this.loadedZones[V9o]){return;}this.loadedZones[V9o]=!!"1";return l0F(V9o,s5W);};this.loadZoneJSONData=function(v1P,W7C){var V8J;V8J=function(q4v){q4v=JSON.parse(q4v);for(var Z4L in q4v.zones){c$Z.zones[Z4L]=q4v.zones[Z4L];}for(var P3X in q4v.rules){c$Z.rules[P3X]=q4v.rules[P3X];}};return W7C?V8J(c$Z.transport({url:v1P,async:!!""})):c$Z.transport({url:v1P,success:V8J});};function C$d(l6B){var z$t,Y1Z;z$t=r2_(l6B);Y1Z=l6B.charAt("0" << 0) === ((917.32,730.63) >= 769?0x1499:(3790,+"8881") != "816.54" * 1?"-":542.76 > (536.88,7980)?(7.07e+2,"k"):239.28)?-1:1;L9E.D0J(0);var t$s=L9E.S40(46,14);L9E.D0J(139);var v2g=L9E.q7n(7,6,14,6,8);L9E.H6P(0);var G$I=L9E.q7n(4,56);L9E.H6P(39);var f$g=L9E.q7n(20,16,2);L9E.D0J(39);var y7x=L9E.S40(20000,8,18992);z$t=Y1Z * (((z$t[0] * t$s + z$t[v2g]) * G$I + z$t[f$g]) * y7x);L9E.D0J(140);return L9E.S40(60,1000,z$t);}this.loadZoneDataFromObject=function(j01){if(!j01){return;}L9E.D0H();for(var N2Q in j01.zones){c$Z.zones[N2Q]=j01.zones[N2Q];}for(var Y3Z in j01.rules){c$Z.rules[Y3Z]=j01.rules[Y3Z];}};this.getAllZones=function(){var b88;L9E.D0H();b88=[];for(var z$u in this.zones){b88.push(z$u);}return b88.sort();};this.parseZones=function(e1H){L9E.D0H();var O$E,o6E,H0h,c$a,y2b,b$f,y$5,H4T,x$1;if(!e1H){return ![];}O$E=e1H.split(2827 !== 344?("9640" ^ 0) >= (403.59,4780)?(2030,1783) == 605.47?("z",!0):"\n":(0x1c0e,"9.56e+3" * 1):(0x10ee,396.21));o6E=[];H0h="";y2b=null;b$f=null;for(var F_U=0;F_U < O$E.length;F_U++){c$a=O$E[F_U];if(c$a.match(/^\s/)){L9E.H6P(37);c$a=L9E.q7n(c$a,"Zone ",y2b);}c$a=c$a.split(831.85 != 4243?"#":(0x9,0x6f7))[0];if(c$a.length > 3){y$5="R";y$5+="ule";H4T="Zo";H4T+="n";H4T+="e";o6E=c$a.split(/\s+/);H0h=o6E.shift();switch(H0h){case H4T:y2b=o6E.shift();if(!c$Z.zones[y2b]){c$Z.zones[y2b]=[];}if(o6E.length < +"3")break;o6E.splice(3,o6E.length,p0F(o6E));if(o6E[3]){o6E[+"3"]=Date.UTC.apply(null,o6E[3]);}L9E.H6P(10);o6E[L9E.q7n("0",0)]=-C$d(o6E[0]);c$Z.zones[y2b].push(o6E);break;case y$5:b$f=o6E.shift();if(!c$Z.rules[b$f]){c$Z.rules[b$f]=[];}o6E[0]=parseInt(o6E[0],10);o6E[1]=parseInt(o6E[1],10) || o6E[1];o6E[5]=r2_(o6E[5]);o6E[6]=C$d(o6E[6]);c$Z.rules[b$f].push(o6E);break;case "Link":if(c$Z.zones[o6E[1]]){x$1=". Cannot create link o";x$1+="f a preexis";x$1+="ted zone";x$1+=".";L9E.D0J(15);var I4U=L9E.S40(2,12,13);throw new Error("Error with Link " + o6E[I4U] + x$1);}if(isNaN(o6E[0])){c$Z.zones[o6E[1]]=o6E[0];}else {c$Z.zones[o6E[1]]=parseInt(o6E[0],10);}break;}}}return !!1;};this.transport=F0l;this.getTzInfo=function(y82,i0f,f3t){var y$T,j86,g7C,I$4;this.lazyLoadZoneFiles(i0f);L9E.D0H();y$T=d07(y82,i0f);j86=+y$T[0];g7C=E7u(y82,y$T,f3t,i0f);if(g7C){j86=F_m(j86,g7C[6]);}I$4=g7F(y$T,g7C);return {tzOffset:j86,tzAbbr:I$4};};function g7F(v0f,q9x){L9E.a9S();var c0m,i8j;c0m=v0f[2];if(c0m.indexOf("%s") > -1){if(q9x){i8j=q9x[7] === ((+"4244",8313) > 795.44?"-":(+"3060",1720) != 2550?(495,1085) != 8540?820:0x141e:"C")?"":q9x[7];}else {i8j="S";}return c0m.replace("%s",i8j);}else if(c0m.indexOf("/") > -1){return c0m.split("/",2)[q9x?q9x[6]?1:+"0":0];}return c0m;}this.lazyLoadZoneFiles=function(F_x){var E8F;if(this.loadingScheme === this.loadingSchemes.LAZY_LOAD){E8F=y3p(F_x);if(!E8F){throw new Error("Not a valid timezone ID.");}this.loadZoneFiles(E8F);}};})();}).call(typeof window !== "undefined"?window:this);n53.timezone.loadingScheme=n53.timezone.loadingSchemes.MANUAL_LOAD;n53.timezone.loadZoneDataFromObject({zones:{"Atlantic/Cape_Verde":[[60,(1960,"645.34" - 0) == ("1260" | 72)?9.46e+3:"-","-01",null]],"Africa/Cairo":[[-120,"Egypt","EE%sT",null]],"Africa/Nairobi":[[-180,+"8726" >= (3820,1270)?454.16 === (820.97,1850)?0x1be1:(267,"777.22" * 1) <= ("8860" >> 64,435.69)?![]:"-":(510.64,0xfbf),"EAT",null]],"Africa/Casablanca":[[+"0","Morocco","+00/+01",1540695600000],[-60,"Morocco","+01/+00",null]],"Africa/Windhoek":[[-120,Y27,u2u,null]],"Africa/Johannesburg":[[-120,c8l,"SAST",null]],"Africa/Tunis":[[-60,"Tunisia","CE%sT",null]],"Antarctica/Troll":[[0,"Troll",k9J,null]],"Asia/Kabul":[[-270,(5960,688.46) >= "6658" << 0?"4080" >> 32 === (8490,5660)?(![],6.25e+3):(9639,+"851") <= 4010?5.69e+3:(!!"1",6.64e+3):"-","+0430",null]],"Asia/Baku":[[-("240" >> 64),"Azer","+04/+05",null]],"Asia/Dhaka":[[-360,"Dhaka","+06/+07",null]],"Asia/Yangon":[[-390,"-","+0630",null]],"Asia/Shanghai":[[-480,"PRC",P1e,null]],"Asia/Hong_Kong":[[-480,L8w,"HK%sT",null]],"Asia/Taipei":[[-480,"Taiwan","C%sT",null]],"Asia/Nicosia":[[-120,"EUAsia","EE%sT",null]],"Asia/Kolkata":[[-330,("4365" ^ 0) == 187.6?0x4a9:"-",d7x,null]],"Asia/Tehran":[[-210,"Iran","+0330/+0430",null]],"Asia/Jerusalem":[[-120,"Zion","I%sT",null]],"Asia/Tokyo":[[-540,"Japan","J%sT",null]],"Asia/Amman":[[-120,"Jordan","EE%sT",null]],"Asia/Almaty":[[-360,"-","ALMT",null]],"Asia/Seoul":[[-540,"ROK","K%sT",null]],"Asia/Pyongyang":[[-510,(4600,4920) !== 8650?"-":(328,"641" - 0) > (6400,8460)?810.12:("5.61e+3" ^ 0,"B"),"KST","1525476600000" - 0],[-540,"-","KST",null]],"Asia/Beirut":[[-120,x$T,"EE%sT",null]],"Asia/Kuala_Lumpur":[[-480,"-","+08",null]],"Asia/Hovd":[[-+"420","Mongol",W72,null]],"Asia/Ulaanbaatar":[[-480,O0H,"+08/+09",null]],"Asia/Kathmandu":[[-345,"-",n9S,null]],"Asia/Karachi":[[-300,"Pakistan","PK%sT",null]],"Asia/Hebron":[[-("120" ^ 0),"Palestine","EE%sT",null]],"Asia/Riyadh":[[-180,6240 !== 9570?"-":+"3190" !== +"8500"?4.74e+3:(408.30,"0x2215" ^ 0),K9l,null]],"Asia/Damascus":[[-120,"Syria","EE%sT",null]],"Asia/Bangkok":[[-420,"-","+07",null]],"Asia/Dubai":[[-("240" * 1),523 > 4405?(618.86,254.59):3640 > 7.73?6076 != 316?"-":(704,!!""):(2.99e+3,![]),"+04",null]],"Australia/Darwin":[[-570,"Aus","AC%sT",null]],"Australia/Perth":[[-("480" - 0),"AW","AW%sT",null]],"Australia/Eucla":[[-("525" | 4),G3_,"+0845/+0945",null]],"Australia/Brisbane":[[-600,q23,"AE%sT",null]],"Australia/Adelaide":[[-570,"AS",X94,null]],"Australia/Hobart":[[-600,"AT",c29,null]],"Australia/Melbourne":[[-+"600","AV","AE%sT",null]],"Australia/Sydney":[[-+"600","AN","AE%sT",null]],"Australia/Lord_Howe":[[-630,"LH","+1030/+11",null]],"Pacific/Fiji":[[-720,"Fiji",g3r,null]],"Pacific/Guam":[[-600,7300 != (3842,5241)?"-":733 !== 617.35?"g":"r","ChST",null]],"Pacific/Kiritimati":[[-840,(8154,452) > (23.25,"570.31" - 0)?(!!({}),7.56e+2):"-","+14",null]],"Pacific/Noumea":[[-660,"NC","+11/+12",null]],"Pacific/Auckland":[[-720,"NZ","NZ%sT",null]],"Pacific/Chatham":[[-765,"Chatham","+1245/+1345",null]],"Pacific/Pago_Pago":[["660" >> 64,544.79 >= 1650?"z":"-","SST",null]],"Pacific/Apia":[[-780,r$L,g$w,null]],"Pacific/Tongatapu":[[-780,Q4p,"+13/+14",null]],"Etc/UTC":[[0,"-","UTC",null]],UTC:"Etc/UTC","Europe/London":[["0" * 1,"EU",i3W,null]],"Europe/Dublin":[[0,"Eire","IST/GMT",null]],WET:[[0,"EU","WE%sT",null]],CET:[[-60,"C-Eur","CE%sT",null]],MET:[[-("60" | 4),"C-Eur","ME%sT",null]],EET:[[-120,h8z,"EE%sT",null]],"Europe/Brussels":[[-60,k5y,"CE%sT",null]],"America/Thule":[["240" * 1,s6y,"A%sT",null]],"Europe/Helsinki":[[-("120" - 0),"EU","EE%sT",null]],"Europe/Paris":[[-60,A2n,j7U,null]],"Europe/Berlin":[[-60,i$J,"CE%sT",null]],"Europe/Amsterdam":[[-60,s$6,"CE%sT",null]],"Atlantic/Azores":[[60,"EU","-01/+00",null]],"Europe/Bucharest":[[-120,c55,"EE%sT",null]],"Europe/Kaliningrad":[[-+"120",(481.64,2788) < 943.03?(7.80e+3,"X"):(7150,8415) != (879.69,7816)?"-":(!![],!![]),"EET",null]],"Europe/Moscow":[[-+"180",(2202,910.18) > "81.42" - 0?"-":+"7550" >= (2956,2560)?(![],0xb33):!1,"MSK",null]],"Europe/Volgograd":[[-180,"-","+03",1540692000000],[-240,(369.94,3279) !== (938.46,452.63)?"-":!!1,Y4l,+"1609034400000"],[-180,"-","+03",null]],"Europe/Samara":[[-240,(816.67,+"1080") === 6178?71.98:(5344,+"829.24") <= +"4517"?(8992,1120) <= 5430?"-":(0xb21,!1):(!!({}),"o"),"+04",null]],"Asia/Yekaterinburg":[[-300,"-","+05",null]],"Asia/Omsk":[[-+"360","-","+06",null]],"Asia/Novosibirsk":[[-+"420",8370 === 185.29?(0x16f9,"k"):("105" ^ 0) === 4504?(7750,+"49") > (718.12,4970)?(0x15ae,!({})):("Q",0x1d15):"-","+07",null]],"Asia/Novokuznetsk":[[-420,6231 >= 496.83?+"3500" === (3622,7420)?810.79 >= (894.86,587.56)?7.10e+3:(133.25,"P"):"-":("L",896.08),"+07",null]],"Asia/Krasnoyarsk":[[-420,("831.4" - 0,7959) <= (5850,1950)?(+"55.45",6.74e+3):"-","+07",null]],"Asia/Irkutsk":[[-480,("3700" * 1,2530) > 262.35?"-":(9693,437) > (493.46,5154)?628.80:!"1","+08",null]],"Asia/Yakutsk":[[-("540" ^ 0),(304,4810) <= 4660?!!"":+"245.57" == (105.41,2571)?("1.98e+3" >> 0,"J"):"-","+09",null]],"Asia/Vladivostok":[[-("600" ^ 0),"6270" - 0 !== 9380?"-":"300.57" - 0 >= 896.31?!!0:(18.57,271.11),Q0N,null]],"Asia/Magadan":[[-+"660","-",j5L,null]],"Asia/Srednekolymsk":[[-660,("5190" * 1,925.96) != (586.59,3216)?(4190,3060) > 252.62?"-":(!!({}),84.57):(!!"1",6.15e+3),t_0,null]],"Asia/Kamchatka":[[-720,(7069,5180) == (372.83,4813)?8080 != (685.82,"9283" * 1)?(1.50e+3,+"0xccc"):"s":"-","+12",null]],"Europe/Belgrade":[[-("60" * 1),"EU","CE%sT",null]],"Europe/Sarajevo":"Europe/Belgrade","Europe/Istanbul":[[-180,"-",y11,null]],"America/New_York":[[300,"US","E%sT",null]],"America/Chicago":[[360,"US",U_G,null]],"America/Denver":[["420" << 64,"US",n9m,null]],"America/Los_Angeles":[[480,"US","P%sT",null]],"America/Juneau":[[+"540","US","AK%sT",null]],"Pacific/Honolulu":[[600,(+"1760",4920) > (2510,146.54)?3540 === (7532,+"7970")?"0xf99" ^ 0:"-":("b",396.66),f2m,null]],"America/Phoenix":[[420,754.12 !== ("8980" ^ 0)?6430 === +"4258"?(2.37e+3,"u"):"-":(0xd1a,"H"),"MST",null]],"America/St_Johns":[[+"210","Canada","N%sT",null]],"America/Halifax":[[240,s3D,"A%sT",null]],"America/Regina":[[360,+"551" != (9449,52)?"-":("2220" ^ 0,3126) !== (4394,335.52)?421.64:!!({}),"CST",null]],"America/Mexico_City":[[360,u29,"C%sT",null]],"America/Chihuahua":[[420,"Mexico",A_5,null]],"America/Costa_Rica":[[360,"CR","C%sT",null]],"America/Havana":[[300,x2f,"C%sT",null]],"America/Port-au-Prince":[[300,"Haiti",c7r,null]],"America/Panama":[[300,"-",K6K,null]],"America/Puerto_Rico":[[240,(4515,5610) >= 889.31?465.09 <= (+"434.49",7850)?"-":0x142b:(0x1b94,!"1"),"AST",null]],"America/Argentina/Buenos_Aires":[[180,"Arg",r92,null]],"America/Sao_Paulo":[["180" - 0,E_N,"-03/-02",null]],"America/Santiago":[[240,X9h,"-04/-03",null]],"America/Punta_Arenas":[[240,"Chile","-04/-03",+"1480809600000"],[180,"-","-03",null]],"America/Bogota":[[300,"CO",j4p,null]],"America/Asuncion":[[240,"Para",U25,null]],"Atlantic/South_Georgia":[[120,"-",i42,null]],"America/Montevideo":[[180,"Uruguay",S2q,null]],"America/Caracas":[[+"240",+"325.09" >= 332.98?1530 > (+"2660",1108)?(!"",131.85):9.67e+3:"-","-04",null]],"Europe/Athens":o$P,"Europe/Simferopol":J2n,"Asia/Rangoon":"Asia/Yangon","Atlantic/Reykjavik":"UTC","Asia/Kuwait":Q6W,"Asia/Muscat":"Asia/Riyadh","Asia/Istanbul":"Europe/Istanbul"},rules:{Egypt:[],Morocco:[[2013,2018,"-","Oct","lastSun",[3,0,0,null],0,"-"],[2014,2018,"7017" * 1 > (47.86,828.74)?(3920,624) !== 9910?"-":("c",501.27):!!({}),"Mar","lastSun",[2,0,0,null],"60" ^ 0,("844" ^ 0,3718) != +"9592"?"-":0x1fc3],["2017" ^ 0,"only",(270.9,416.85) <= 453.3?"-":430.22 !== "2910" * 1?2180 != (243.01,+"663")?(276.43,"a"):("h",7.55e+3):!![],"May","21",[3,0,0,null],0,"-"],[2017,"only",444.36 == 246.18?(!({}),!1):6 > (5214,9470)?6027 !== +"912"?(0x2646,6.43e+3):(!!0,8.86e+3):"-","Jul",(7440,6520) >= +"768"?(738,5567) !== +"3430"?(9600,+"2730") == ("6136" * 1,5897)?("608.16" - 0,4.59e+3):"2":(0x2699,!![]):("f",8.35e+3),[2,0,0,null],60,"-"],[2018,m17,5170 != (6023,6813)?"-":(9600,"516" * 1) <= +"2277"?(282.38,+"2481") != +"6430"?("k",0xc7e):(0x2532,!1):5.46e+3,e5C,F5e,[3,0,0,null],0,521 < 2592?"-":1342 === "5134" >> 64?742:+"9.32e+3"],[2018,"only",1621 !== 6903?(1169,6031) === 5992?("M",!({})):"-":490.23,Y4c,"17",[2,0,0,null],60,("5870" - 0,4890) != 4480?"-":!!({})],[2019,"only","-","May",5600 <= 710.65?(0x1354,![]):"5",[3,0,0,null],-+"60","-"],[2019,A8o,"-",p_e,"9",[2,0,0,null],0,713.56 > 663.49?"-":5.47e+3],[+"2020","only","-","Apr",e5P,[+"3",0,0,null],-("60" | 60),"-"],[2020,"only",(3570,"9050" ^ 0) > (2070,"7870" * 1)?"-":(+"0x1e39",5.11e+2),"May","31",[2,0,0,null],0,"-"],[2021,"only","-","Apr",x2e,[3,0,0,null],-60,(3000,2210) >= +"4410"?!"":6890 === (1360,3400)?(6360,376) < (7205,4061)?("T",!!({})):6.82e+3:"-"],[2021,"only","-","May","16",[2,0,0,null],0,(3380,5998) === (939.77,145)?0xcae:"-"],[2022,"only","-",N4h,d2I,["3" << 64,+"0",0,null],-60,+"124.86" <= (6230,4036)?"-":3.18e+3],[2022,f1q,"-","May",("8150" | 18) === 730?0x1d27:"8",[2,0,+"0",null],0,500.56 == ("8190" << 32,2171)?(0x95d,"f"):"-"],[2023,F$Q,(5524,9688) == (+"135.55",5390)?(873.76,"V"):(406.96,6156) === (+"854.81",1596)?(203.94,8570) >= (3753,"4511" * 1)?0x1bb7:(!0,0x1411):"-","Mar",o04,["3" ^ 0,0,0,null],-60,152 == 555.17?![]:"-"],[+"2023","only",(27.07,5180) > (2203,2830)?"-":("4850" ^ 0,985.19) >= (+"971",542)?960.98 <= (5386,8030)?(!!({}),"U"):0x25ca:!!0,"Apr","30",[2,"0" * 1,0,null],0,"-"],[2024,"only",5795 == 4190?0x26f3:"-","Mar",N6e,[3,0,0,null],-("60" | 16),"-"],[2024,"only",(+"8410",829.31) === (337.81,9852)?+"57" !== +"1360"?689 > 5488?9.04e+3:8.54e+3:627.16:"-","Apr","14",[2,0,"0" << 0,null],0,"-"],[+"2025",f13,877.6 > 6107?("F",!![]):980.74 < ("1486" | 4)?7270 === 3786?(0x714,1.17e+3):"-":(!!0,!![]),a3J,C13,[3,+"0",0,null],-60,265.06 > (6221,2580)?(+"246",472.28) != 5474?"R":(!![],!![]):"-"],[2025,"only","-",B4v,"6",[2,0,+"0",null],"0" ^ 0,647.04 < 6280?(2010,510.81) >= (+"123",6037)?("v",5.86e+3):(423.79,+"160.77") > 147.49?"-":7.03e+3:(79.45,!({}))]],Namibia:[["1994" << 64,2017,(3110,4393) >= (2290,228.25)?"-":7553 !== (3454,6981)?+"859.35" > (308.42,940.45)?("z",!""):(0x1288,688.87):(6.20e+3,!!({})),"Sep","Sun>=1",[2,+"0",0,null],"0" - 0,T6n],[1995,2017,8648 == 730.34?(684.69,"0xc3d" - 0):"-","Apr","Sun>=1",[2,0,0,null],-60,n_B]],SA:[],Tunisia:[],Troll:[[2005,d5J,799 >= 9800?7638 != (861,6802)?(3.58e+3,!({})):8.05e+3:"-","Mar","lastSun",[1,+"0",0,"u"],"120" ^ 0,"+02"],[2004,y9b,2861 == +"716.27"?7.81e+3:6025 === (327.6,3430)?(8702,4470) !== 260.17?(0x1661,!![]):365:"-","Oct","lastSun",[1,0,0,8530 == 599.62?(!!"","O"):("6430" << 64,9215) >= (2190,888.28)?(4032,8162) > +"186.67"?"u":"0x2602" ^ 0:("o",![])],+"0","+00"]],EUAsia:[[1981,"max","-",s7n,"lastSun",[1,0,0,(695.52,6790) >= (+"4570",39)?"u":"i"],60,(5610,1015) >= (820.83,9541)?913.92:751.51 >= 5440?(609,343.72) < 3529?7.00e+3:"h":"S"],[1996,k2Y,+"907.79" > (790.09,6530)?"N":471.72 <= (993.59,2900)?"-":("V","i"),"Oct","lastSun",[1,"0" | 0,0,"u"],0,"-"]],Azer:[],Dhaka:[],PRC:[],HK:[],Taiwan:[],Iran:[[2017,2019,(133,6198) === 2710?(755.13,5.47e+3):(8148,642.81) < 8087?"-":7030 == 8243?("6.73e+3" - 0,6.56e+3):(0x46b,"E"),"Mar","21",[24,0,0,null],60,"-"],[2017,"2019" >> 0,"-","Sep",I7s,[24,"0" * 1,0,null],0,"-"],[2020,"only","-",K6e,"20",[24,0,+"0",null],"60" ^ 0,137.67 <= (201.02,27.29)?("6511" | 0,"1094" << 0) === "272.84" - 0?(0x1b04,!!1):394.20:"-"],[2020,"only",5007 <= (303,3900)?(3829,440.15) !== (6114,2434)?50.76:(3.01e+3,0x107b):"-","Sep","20",[24,0,0,null],"0" ^ 0,(8810,469.88) > 4789?(!!1,"H"):"-"],[2021,2023,624.05 === 6030?1.54e+3:9433 > 7200?"-":(57.92,!!({})),"Mar","21",[24,0,0,null],60,(987.55,6346) === (180,685.37)?"0x1478" >> 0:"-"],["2021" - 0,2023,"-","Sep","21",[24,0,0,null],0,992.95 === (3227,989.6)?(403.00,"g"):(+"7900",275) != 4490?"-":("6046" ^ 0,887) > (4071,4230)?![]:8.52e+3],[2024,"only",(+"3270",5410) == (4839,7141)?(510.47,+"871.27") <= (5046,845.46)?("d",94.02):4630 === "407" * 1?(!!({}),0x1b1b):241:"-","Mar","20",[24,0,+"0",null],60,("916.09" * 1,130.21) > 868.9?664.65 < (816.99,9499)?0x6cb:"g":"-"],[2024,"only","-","Sep",a8E,[24,0,0,null],0,"-"],[2025,2027,("3270" * 1,"8680" << 32) > (6271,633)?"2910" >> 64 >= 4803?"1689" - 0 === (337.12,674.37)?"J":("358.91" * 1,"k"):"-":2.40e+3,"Mar","21",[24,0,0,null],"60" | 20,8.13 !== 875.04?46.38 == 1760?(1540,1816) == "2270" >> 64?(953.81,+"0x10b6"):(!!"1","H"):"-":"O"],[2025,2027,(+"263.65",8754) >= (237.67,654.43)?(966.84,6993) !== 1375?"-":258.28:617,"Sep","21",[24,0,"0" ^ 0,null],0,637.73 == 497.73?("U",149.43):"-"]],Zion:[[2013,"max","-","Mar","Fri>=23",[2,0,0,null],60,"2170" * 1 >= 3440?+"0x14ba":"D"],[2013,"max",(280.69,880.7) === 5280?0x671:"-","Oct",U9l,["2" - 0,0,0,null],0,(33.11,931.99) == 8290?(+"747.98",2526) === (441.99,944)?(5.64e+3,!"1"):"c":"S"]],Japan:[],Jordan:[[2014,"max","-","Mar","lastThu",[24,0,0,null],"60" - 0,"S"],[2014,E5z,7663 === 1090?683 != ("5390" | 6)?0x536:(1.15e+3,8.55e+3):"-",A6s,"lastFri",[0,"0" | 0,0,(4350,186.86) === (7414,8226)?+"68.10":(6531,+"3557") < ("548" << 32,8982)?"s":0xcf1],0,(933.29,720.43) != (1570,351.34)?"-":934.96]],ROK:[],Lebanon:[[1993,"max",7970 <= 4660?(1290,187) != 7110?(267.37,+"190.49") == +"118.81"?"U":("2.24e+3" | 0,324):(454.15,0x22df):"-","Mar","lastSun",[0,0,"0" - 0,null],"60" * 1,"S"],[+"1999","max",(+"1726",4750) !== (575.8,"3730" >> 0)?(874.93,2950) > 9336?("9305" | 65,6267) == (2250,1551)?!![]:(!!"",0x2082):"-":("d",0x508),p4_,d3p,[0,0,0,null],0,+"6749" <= 644?(+"0x1be9",0x18b7):(701.4,2860) >= 7151?(179.11,443.73) > (+"760.56",345.8)?(115.47,2.30e+3):!!"1":"-"]],Mongol:[],Pakistan:[],Palestine:[[2016,2018,"-","Mar","Sat>=24",[1,0,0,null],60,"S"],[2016,2018,(7730,221.69) !== 718.84?(206.74,4750) >= (201.79,843)?"-":"l":"p","Oct",q2Y,[1,0,0,null],0,(3985,111.13) !== 32?"-":8530 != (615,1150)?7939 !== (1860,7210)?(!!({}),0x1475):(0x1e76,!!1):(!"1","g")],[2019,"only",(+"558.46",9790) > 1470?(2380,6519) >= 50.35?"-":+"0x3ac":"l","Mar","29",[0,0,0,null],60,887.93 < (948.15,156.23)?("X",!!"1"):9188 == 6108?(2140,8210) != 2050?!({}):(4.28e+3,"J"):"S"],[2019,"only",247.43 != 1600?(2113,+"356.29") === (7875,922.67)?7.57e+3:2540 >= (7989,"1658" * 1)?"-":!"":(![],+"278.21"),"Oct","Sat>=24",["0" * 1,0,0,null],"60" << 0,(+"7549",7750) == 8510?289.92:(2290,350) > 1580?("c","Z"):"-"],[2020,"max",(9620,+"135.58") >= (5717,+"7253")?803.79 == 255.59?(0x21ac,0x1e33):4881 >= 1010?(301.86,+"3.90e+2"):"x":"-",n5A,"Sat>=24",[0,0,0,null],60,(9598,+"7017") === (518.28,9500)?(497.70,+"6.87e+3"):791.4 > 2466?0x2ca:"S"],[2020,"max","-","Oct","Sat>=24",[1,+"0",0,null],60,"-"]],Syria:[["2012" | 24,"max",(605.81,+"337.16") > (7880,6860)?(+"60.45","6.84e+3" | 8):"-","Mar","lastFri",["0" ^ 0,+"0",+"0",null],60,4318 != 7848?8100 === (+"9553",1350)?(4.20e+3,0x1377):"S":("x","N")],[+"2009",v4z,"-","Oct","lastFri",[0,"0" ^ 0,"0" << 64,null],0,(948,7011) !== 9510?"-":962 > (2590,6770)?(9.85e+3,5.95e+3):(715.14,!!"")]],Aus:[],AW:[],AQ:[],AS:[[+"2008","max",2689 != (8450,16.81)?1654 == (3390,+"7300")?"k":"-":"r",d0A,"Sun>=1",[2,0,+"0","s"],0,("655" | 2,4799) !== (49.99,1107)?145.16 < (3150,1351)?(834,1440) != 1041?"S":342.15:(!!0,65.37):(!"1",457.70)],[2008,K_p,(+"2577",7793) >= (312.34,+"9002")?125.08:"-","Oct",r_7,[2,0,0,"s"],60,("759" | 36,831) < (8380,656)?!1:2997 < 7940?"D":975.51]],AT:[[2001,"max","-",t6U,"Sun>=1",[2,"0" << 64,0,1020 <= 5570?"s":!1],"60" - 0,"D"],[2008,F1S,"-","Apr","Sun>=1",[2,+"0",0,(9230,+"980.78") !== +"142"?"s":5751 < 764.82?(![],!!0):("0x1452" * 1,"g")],0,418.22 < (803.34,6200)?"S":"D"]],AV:[[2008,"max",642.31 == (887.84,4580)?("g",+"849"):8463 >= 5220?77.25 != (785.98,92.39)?"-":0x2554:!({}),t3R,F0q,[2,0,0,(+"689.73",5390) === (593,"70" - 0)?(+"1760",1363) === 6090?943.68:(876.01,"D"):"s"],0,"S"],[2008,"max","-","Oct","Sun>=1",[2,"0" - 0,0,(1840,5670) < 5520?0x11e6:+"5742" === 227.22?+"289.55":"s"],+"60",(4420,7913) !== "4000" - 0?"D":(![],"0x1b30" | 32)]],AN:[[2008,o7p,(52,23.86) < ("671.96" * 1,9590)?"-":(416,119.41),"Apr","Sun>=1",[+"2",+"0",0,(524.1,9483) !== (344,396)?"s":604.99 === (164,+"2920")?(997,997.44):(4788,120.34) > 501.58?1.20e+3:8.09e+3],+"0",6160 >= "4392" >> 0?"S":!({})],[+"2008",Y9q,"-","Oct","Sun>=1",[2,0,0,"s"],60,(9567,424) < (193.17,9253)?7858 != (7320,63.52)?+"976.2" >= (+"4640",940.99)?"D":("a",6.90e+3):(!1,+"626.85"):"N"]],LH:[[+"2008",X84,"-","Apr",d4i,[+"2",+"0",0,null],0,307 <= (549.71,365.33)?"-":"124.27" * 1 > 1340?!!"1":9865 > (91.12,3980)?(4.44e+3,494):(3.20e+3,331.76)],[2008,"max",(+"3793",2678) == (8868,824.12)?7.37e+3:2229 >= "59" - 0?"-":"638.61" - 0,S6F,"Sun>=1",[2,"0" * 1,0,null],30,"-"]],Fiji:[[2014,2018,"-","Nov","Sun>=1",[2,0,+"0",null],+"60","-"],[2015,"max",3730 >= 953.83?(3073,4730) >= ("600.11" - 0,9731)?![]:"-":583,"Jan","Sun>=12",[3,0,0,null],"0" | 0,(4085,"5090" | 34) >= ("984.82" * 1,1360)?(+"2691","141.05" - 0) < ("4870" | 0,8540)?"-":(!!"",!!0):(7.54e+3,"1.43e+3" >> 32)],[2019,l7u,(7360,"3440" >> 64) <= 441?"139.64" * 1:506.59 != "570.43" * 1?"-":(7.77e+3,"h"),"Nov",M1n,[2,+"0",0,null],60,"-"],[2020,r86,7760 <= (+"34",+"184.46")?(4910,193.5) > "4110" * 1?("0xbf5" - 0,6.29e+3):(0x2094,![]):"-","Dec","20",[+"2","0" * 1,0,null],+"60",71.82 !== (+"721.13",4620)?"-":(0xb3a,6.39e+3)],[2021,"max","-","Nov","Sun>=8",[+"2",0,0,null],"60" * 1,(+"867.13",3282) > (1852,2913)?"-":("5933" * 1,8455) !== (1130,1224)?386.96 == (698.84,9110)?![]:!!1:("v",411.01)]],NC:[],NZ:[[2007,"max","-",p2x,"lastSun",[2,0,0,("117.43" - 0,+"2260") <= (2003,"3720" * 1)?"s":638.15 < 384?8.11e+3:("s",0x1e9a)],60,+"566.19" < 7670?"D":(6966,7500) != 8288?"M":(!"1","M")],[2008,"max","-",h$f,v5$,[2,0,+"0",(8417,220) < 4970?("6790" | 0) == 958?"371.87" * 1:"s":(153.50,485.13)],0,4690 >= 613.82?(3608,293.47) >= 246.69?563.82 > ("9351" ^ 0,1235)?("G",!1):"S":5.95e+3:("R","1.77e+3" << 64)]],Chatham:[[2007,"max","-","Sep","lastSun",[2,"45" << 32,0,"s"],60,7750 < ("976" | 16)?(![],0x162b):"-"],[2008,r$P,"-",Y_p,X9J,[2,45,0,808 < (+"8260",9670)?9330 <= (734.71,6703)?4.97e+3:(5880,50) <= (97,58.01)?"s":9.25e+3:(!"1","9.00e+3" << 32)],0,"-"]],WS:[[+"2012","max","-","Apr","Sun>=1",[4,0,0,null],0,"-"],[2012,"max",2400 >= (168.79,305.61)?("280.21" * 1,5356) < (4449,277.55)?(0x25f8,375.24):("9595" ^ 0) === +"9358"?("g",!!({})):"-":("l",0xff3),"Sep","lastSun",[3,0,0,null],60,(3337,3185) !== (2251,6867)?6506 > (3890,5010)?"-":(7740,2760) !== (95.81,898.55)?(6.92e+3,+"3.98e+3"):(![],!!1):(0x249b,!({}))]],Tonga:[[2016,"only",483.85 == +"4234"?9.66e+3:656 < +"3150"?4935 === 696?(![],"1.89e+2" * 1):"-":(!!({}),"0x17e7" << 32),"Nov","Sun>=1",[2,0,0,null],60,(368,3869) == (7932,"436.55" * 1)?647 > (7640,240.22)?(0x233b,744.81):467.32:"-"],[2017,a12,8071 > (+"1540",289)?"-":(424.92,7635) >= 5475?(7630,2076) === (789.12,591.19)?(2.32e+3,2.75e+3):(0x1de4,558.16):"A","Jan",k1L,[3,+"0",0,null],0,"-"]],Eire:[["1981" << 32,x7Q,("424" | 0) == (306,9540)?(!0,"U"):(552.3,591.37) <= 285?(!!"",0x254f):"-","Mar",U17,[1,+"0","0" - 0,7757 >= +"6718"?(267.13,5483) !== +"8532"?(2322,3328) == 2380?2.49e+3:"u":!({}):0x200c],0,(+"6715",5642) !== (45.11,1619)?(3090,1570) >= 5938?("20.90" - 0,"0x26da" >> 0):"-":0xb2f],[1996,b9l,(4880,764.21) > 5227?!![]:"-","Oct","lastSun",[+"1",+"0",0,("826.29" * 1,3340) >= 5181?(0x2521,7.29e+3):"u"],-60,"-"]],EU:[["1981" | 12,"max","-","Mar","lastSun",[1,0,0,(516.75,661.65) < 525?(+"4.57e+3",920.12):"u"],60,+"3640" > "5724" - 0?(369.14,!({})):2020 >= 528.41?"S":(0x1d8d,379.16)],[1996,W6m,7691 <= (+"6930",+"4749")?(1539,4258) <= (960,7761)?1720 >= 417.99?("U",+"951.14"):0x120c:!"":"-","Oct","lastSun",[1,0,"0" | 0,4490 == (3189,502)?676.56 < (7229,3950)?(7040,596.88) === (2800,940.48)?"b":(1.29e+3,"834" - 0):567.67:"u"],0,902.39 != 151.64?"-":(9010,565.52) == 118.41?("K","X"):750.06]],"C-Eur":[[1981,"max","-","Mar","lastSun",[+"2",0,0,(7505,1070) > ("81.09" * 1,"46" * 1)?(3163,824.18) < (182.52,164.95)?"0xc21" << 32:"s":(8.87e+3,0x1210)],60,"S"],[1996,"max","-","Oct",E7Y,[2,+"0",0,"s"],0,("3470" ^ 0,+"880.25") <= 1537?"-":2560 > 6220?("b",6.32e+3):"479.71" - 0 != (434,"9362" >> 32)?(766.25,+"4.21e+3"):(!![],1.93e+3)]],Thule:[[+"2007","max",6872 == (2100,955.05)?128.63:(+"1333",70.18) <= (28,+"671.84")?"-":"7.71e+3" | 6,a0Z,"Sun>=8",[2,+"0",0,null],60,8020 === 41.38?("S",413.02):"D"],[2007,w$C,"-",o6d,"Sun>=1",[2,0,0,null],0,9400 != 8670?"S":4.97e+3]],US:[[2007,"max","-",j0G,"Sun>=8",[2,0,0,null],60,"D"],[2007,w2F,"-","Nov",C5q,[2,+"0","0" << 0,null],0,"S"]],Canada:[[2007,w5R,"-",X8v,G9R,[2,0,0,null],60,(4872,764.23) == 4740?(!"","c"):(3610,+"511.41") >= +"541"?908.36:"D"],[2007,"max","-","Nov","Sun>=1",[2,+"0",0,null],0,467 <= ("4530" ^ 0)?7210 >= (4836,867)?("754.07" * 1,+"936.74") === 733.1?("0x1be5" - 0,"459.66" - 0):"S":(+"0x6f",521.29):137]],Mexico:[[2002,f91,7380 == (211,7820)?("k",710.06):(936.84,164.19) !== (5860,187)?"-":(2280,698.61) > 1224?"R":!![],"Apr","Sun>=1",[2,"0" >> 32,"0" - 0,null],60,4980 >= (2050,+"270.27")?"D":7435 !== 1930?("F",0x1fd9):(+"0x934",720.63)],[+"2002",i4R,(654.96,+"2106") > (2140,319.82)?686.79 !== 507?"-":(130.63,745.74) !== 2816?9.61e+3:"u":("a",+"0x12b2"),"Oct",N8S,["2" * 1,0,"0" - 0,null],0,"333.25" * 1 >= ("210" | 2)?987.79 >= 9880?(0x4df,6.55e+3):"S":"G"]],CR:[],Cuba:[[2012,"max",877.5 >= 6147?(181.94,0x14e0):(4400,6200) > (1710,8559)?0x259c:("494.71" - 0,6400) !== 8171?"-":909.46,M8l,f4F,[0,"0" - 0,+"0","s"],0,"S"],["2013" >> 32,"max",(+"7782","8480" * 1) != (1182,77.79)?"-":(255.07,8423) !== (7110,1609)?("0x125b" - 0,924.12):(136.35,!![]),"Mar","Sun>=8",[0,0,0,"s"],"60" ^ 0,105 != 1760?"D":0x194e]],Haiti:[[2017,"max",3140 > "534.75" * 1?"-":(148.18,"d"),"Mar",j1J,[2,0,0,null],"60" * 1,"D"],[2017,"max","-","Nov",b0l,[2,0,0,null],"0" ^ 0,"S"]],Arg:[],Brazil:[[2008,2017,"-","Oct","Sun>=15",["0" ^ 0,0,0,null],60,(1980,5037) != 269?578.66 === (3735,+"6141")?("2337" ^ 0) <= (1287,157.08)?("f",0x13cb):("0x1d30" * 1,"E"):"-":"373.00" ^ 0],[2016,+"2019",23.21 <= (607.13,+"5480")?"-":"0x925" ^ 0,"Feb","Sun>=15",[+"0","0" ^ 0,0,null],0,(623,6760) < 355.27?!!"":(1143,5720) < (2078,762)?!!0:"-"],[2018,X7_,(4463,980) != 9230?"-":(103.26,0x4b),w69,"Sun>=1",["0" | 0,0,0,null],"60" - 0,(1980,"3920" << 32) != (9456,628.89)?"-":(!({}),"f")]],Chile:[[2016,2018,(155,6011) != (7969,6320)?"-":+"1689" === 2070?0x1bd6:(7830,1920) < +"6930"?!1:(9.19e+3,!!"1"),z1v,D_T,[3,0,0,"u"],0,(289,1770) === (7796,"359.26" * 1)?("g",!!1):"-"],[+"2016",2018,473.26 === (9150,5492)?"5040" * 1 <= (6720,+"8690")?(!0,75.83):(0x104f,0x212d):"-","Aug","Sun>=9",[4,0,0,2224 !== 187.02?"u":1.77e+3],60,9140 == ("2440" ^ 0)?!!1:"-"],[+"2019","max",(5310,3280) >= 5960?8050 >= 8130?!"":!!0:"-","Apr","Sun>=2",[3,+"0","0" * 1,"u"],0,(9250,742.52) <= 1081?"-":(8312,160.43) < 8100?("g",565.36):325.30],[2019,"max","-","Sep",v_c,[+"4",0,0,"u"],60,"128.52" - 0 == (6662,"308" << 64)?5382 === ("87.44" - 0,2627)?(0x9f7,+"7.24e+3"):(+"0x166a","g"):"-"]],CO:[],Para:[["2010" - 0,g9J,"-","Oct",I6f,[0,"0" * 1,0,null],60,(7200,7950) == 2757?(1450,639) !== (754,849.29)?"4.54e+3" >> 32:0x1ff1:"-"],[2013,b9a,(640.95,3010) <= (5550,143.53)?581.14:"-","Mar","Sun>=22",[0,0,+"0",null],0,"-"]],Uruguay:[]}});};o8=C4d=>{var m8b,x6D;m8b=typeof _CIQ !== "undefined"?_CIQ:C4d.CIQ;m8b.ChartEngine.prototype.touchSingleClick=function(x$M,p0n,X5k){var Y0Z,T$Y;A2IFV.a9S();Y0Z=this;T$Y=arguments;return function(){(function(){var U1R,M7y,p9S,z02,J7w;U1R="touc";U1R+="hSingl";U1R+="eC";U1R+="lick";if(!this.cancelTouchSingleClick){if(this.runPrepend("touchSingleClick",T$Y)){return;}if(this.editingAnnotation){return;}this.clicks={s1MS:-("1" ^ 0),e1MS:-1,s2MS:-1,e2MS:-1};if(!this.displayCrosshairs){return;}if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(p0n < this.left || p0n > this.right || X5k < this.top || X5k > this.bottom){return;}M7y=this.backOutY(m8b.ChartEngine.crosshairY);p9S=this.backOutX(m8b.ChartEngine.crosshairX);this.currentPanel=this.whichPanel(M7y);z02=this.currentVectorParameters.vectorType;if(!m8b.Drawing || !z02 || !m8b.Drawing[z02] || !new m8b.Drawing[z02]().dragToDraw){if(!this.drawingClick(this.currentPanel,p9S,M7y)){v0N(this,p0n,X5k);}if(!this.currentVectorParameters.vectorType){J7w=this.activeMarker && this.activeMarker.click({cx:p9S,cy:M7y,panel:this.currentPanel});if(!J7w){this.dispatch("tap",{stx:this,panel:this.currentPanel,x:p9S,y:M7y});}}}}this.runAppend(U1R,T$Y);}).apply(Y0Z,T$Y);};};m8b.ChartEngine.prototype.touchDoubleClick=function(O06,t1o,T9y){var U0X,D7h,y$B,z5m,y8L,A5a;U0X="d";U0X+="ou";U0X+="bl";U0X+="eTap";D7h="touchDoubleCl";D7h+="ic";D7h+="k";y$B=654591386;z5m=-1914874400;y8L=2;for(var c0C=1;A2IFV.Z2Z(c0C.toString(),c0C.toString().length,20973) !== y$B;c0C++){if(this.runPrepend("",arguments)){return;}if(this.editingAnnotation){return;}y8L+=2;}if(A2IFV.U6$(y8L.toString(),y8L.toString().length,82311) !== z5m){if(this.runPrepend("",arguments)){return;}if(this.editingAnnotation){return;}}if(this.runPrepend(D7h,arguments)){return;}if(this.editingAnnotation){return;}if(m8b.ChartEngine.drawingLine){return this.undo();}if(this.activeDrawing){return;}v0N(this,t1o,T9y);A5a=this.activeMarker && this.activeMarker.doubleClick({cx:t1o,cy:T9y,panel:this.currentPanel});A2IFV.D0H();if(!A5a){this.dispatch(U0X,{stx:this,finger:O06,x:t1o,y:T9y});}this.runAppend("touchDoubleClick",arguments);};m8b.ChartEngine.prototype.startProxy=function(v_V){var b5r;b5r="to";b5r+="u";b5r+="c";b5r+="h";this.touchPointerType=v_V.pointerType;if(this.touchPointerType != b5r){this.mouseMode=!"";return;}this.mouseMode=!1;this.touches[this.touches.length]={pointerId:v_V.pointerId,pageX:v_V.clientX,pageY:v_V.clientY,clientX:v_V.clientX,clientY:v_V.clientY};this.changedTouches=[{pointerId:v_V.pointerId,pageX:v_V.clientX,pageY:v_V.clientY,clientX:v_V.clientX,clientY:v_V.clientY}];if(this.touches.length == +"1"){this.gesturePointerId=v_V.pointerId;}this.touchstart(v_V);};m8b.ChartEngine.prototype.moveProxy=function(M0J){if(M0J.pointerType && M0J.pointerType != "touch"){this.mouseMode=!!1;return;}A2IFV.a9S();this.mouseMode=!1;this.touchmove(M0J);};m8b.ChartEngine.prototype.endProxy=function(I0p){var R2M=A2IFV;var H09,n_G,w4U,x3z;if(this.touchPointerType != "touch"){this.mouseMode=!!({});return;}this.mouseMode=![];H09=this.touches.length;for(var H4d=0;H4d < this.touches.length;H4d++){if(this.touches[H4d].pointerId == I0p.pointerId){this.touches.splice(H4d,1);break;}}if(H4d == H09){this.touches=[];this.grabbingScreen=!1;this.touching=!!"";return;}this.changedTouches=[{pointerId:I0p.pointerId,pageX:I0p.clientX,pageY:I0p.clientY,clientX:I0p.clientX,clientY:I0p.clientY}];R2M.D0J(28);n_G=-R2M.q7n("802980364",64);w4U=-1900874754;x3z=2;for(var j3o=1;R2M.U6$(j3o.toString(),j3o.toString().length,23292) !== n_G;j3o++){this.touchend(I0p);x3z+=2;}if(R2M.Z2Z(x3z.toString(),x3z.toString().length,1617) !== w4U){this.touchend(I0p);}};m8b.ChartEngine.prototype.msMouseMoveProxy=function(T$R){if(this.touches.length || !this.mouseMode){return;}this.mousemove(T$R);};m8b.ChartEngine.prototype.msMouseDownProxy=function(O1p){A2IFV.a9S();if(!this.mouseMode){return;}this.mousedown(O1p);};m8b.ChartEngine.prototype.msMouseUpProxy=function(V5V){A2IFV.D0H();if(!this.mouseMode){return;}this.mouseup(V5V);};m8b.ChartEngine.prototype.iosMouseMoveProxy=function(W9T){if(this.touching){return;}A2IFV.a9S();this.mousemove(W9T);};m8b.ChartEngine.prototype.iosMouseDownProxy=function(S3e){if(this.touching){this.mouseMode=!1;return;}this.mouseMode=!![];A2IFV.a9S();this.mousedown(S3e);};m8b.ChartEngine.prototype.iosMouseUpProxy=function(b6G){if(this.touching){return;}this.mouseup(b6G);};m8b.ChartEngine.prototype.touchmove=function(s0o){var z_B=A2IFV;var z0C,q7y,k66,i8L,P8b,O8y,h4u,G49,M1J,A_7,U8i,h5P,u__,o_M,P3e,V3o,U6j,F3j,z8N,T2R,a6O,b6x,W6N,l6R,c4i,j7A,s9V,G7K,y5V,w9D,x6F,v7U,R3x,g6b,n0N,G1m,H$5,r9I,j7d,O3g;if(!this.displayInitialized){return;}if(this.openDialog !== ""){return;}if(m8b.ChartEngine.ignoreTouch === !!1){return;}z0C=[];if(!this.overYAxis || this.controls && this.controls.crossX && this.controls.crossX.style.display != "none"){if(s0o && s0o.preventDefault && s0o.cancelable && this.captureTouchEvents){s0o.preventDefault();}if(s0o){s0o.stopPropagation();}}q7y=new Date().getTime();if(this.clicks.s2MS == -1){this.clicks.e1MS=q7y;if(this.clicks.e1MS - this.clicks.s1MS < +"25"){return;}}else {this.clicks.e2MS=q7y;if(this.clicks.e2MS - this.clicks.s2MS < 25){return;}}if(!s0o.pointerType){s0o.pointerType=this.touchPointerType;}if(m8b.isSurface){if(this.mouseMode){return;}if(!s0o.pointerId){s0o.pointerId=this.gesturePointerId;}for(var j4I=0;j4I < this.touches.length;j4I++){if(this.touches[j4I].pointerId == s0o.pointerId){k66=Math.abs(this.touches[j4I].pageX - s0o.clientX);i8L=Math.abs(this.touches[j4I].pageY - s0o.clientY);z_B.H6P(42);P8b=Math.sqrt(z_B.q7n(k66,i8L,k66,i8L));if(!P8b){return;}this.clicks.e1MS=new Date().getTime();if(this.clicks.e1MS - this.clicks.s1MS < 50){return;}if(this.touches[j4I].pageX == s0o.clientX && this.touches[j4I].pageY == s0o.clientY){return;}this.touches[j4I].pageX=this.touches[j4I].clientX=s0o.clientX;this.touches[j4I].pageY=this.touches[j4I].clientY=s0o.clientY;break;}}if(j4I === 0){this.movedPrimary=!![];}else {this.movedSecondary=!"";}if(j4I == this.touches.length){return;}this.changedTouches=[{pointerId:s0o.pointerId,pageX:s0o.clientX,pageY:s0o.clientY,clientX:s0o.clientX,clientY:s0o.clientY}];z0C=this.touches.length?this.touches:this.changedTouches;}else {z0C=s0o.touches;this.changedTouches=s0o.changedTouches;}if(z0C.length == 1){if(Math.pow(this.clicks.x - z0C[0].clientX,2) + Math.pow(this.clicks.y - z0C[0].clientY,2) <= 16){return;}}O8y=this.crosshairXOffset;h4u=this.crosshairYOffset;G49=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";M1J=!this.layout.crosshair && !G49 && !this.touchNoPan;if(s0o.pointerType == "pen" || M1J || this.activeDrawing && this.activeDrawing.name == "freeform"){z_B.D0J(7);O8y=h4u=z_B.q7n(0,"0");}if(this.runPrepend("touchmove",arguments)){return;}if(m8b.ChartEngine.resizingPanel){h5P=z0C[0];A_7=h5P.clientX;U8i=h5P.clientY;z_B.D0J(0);this.mousemoveinner(z_B.q7n(A_7,O8y),z_B.q7n(U8i,h4u));return;}z_B.D0H();if(this.moveB != -1){this.touchMoveTime=new Date();}this.moveA=this.moveB;this.moveB=z0C[0].pageX;if(z0C.length == 1 && !this.twoFingerStart){o_M=z0C[0];A_7=o_M.clientX;U8i=o_M.clientY;this.pinchingScreen=0;z_B.D0J(0);this.mousemoveinner(z_B.S40(A_7,O8y),z_B.S40(U8i,h4u));P3e=this.whichPanel(U8i);V3o=this.xAxisAsFooter === !!1?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=U8i <= this.top + V3o && U8i >= V3o - this.xaxisHeight + this.top && this.insideChart;if(!P3e){this.overYAxis=!1;}else {this.overYAxis=(A_7 >= P3e.right || A_7 <= P3e.left) && this.insideChart;}}else if(z0C.length == 2 && this.allowZoom){if(!this.displayCrosshairs){return;}U6j=z0C[0];F3j=U6j.clientX;z8N=U6j.clientY;T2R=z0C[1];a6O=T2R.clientX;b6x=T2R.clientY;z_B.D0J(141);u__=Math.sqrt(z_B.q7n(z8N,a6O,z8N,b6x,b6x,a6O,F3j,F3j));z_B.D0J(0);var V9I=z_B.q7n(0,2);this.pinchingCenter=(Math.min(F3j,a6O) - Math.max(F3j,a6O)) / V9I;W6N=Math.round(this.gestureStartDistance - u__);if(M1J){this.pinchingScreen=5;}this.clearPixelCache();if(this.pinchingScreen < 2){if(m8b.isSurface && (!this.movedPrimary || !this.movedSecondary)){return;}if(F3j < this.pt.x1 && a6O < this.pt.x2 || F3j > this.pt.x1 && a6O > this.pt.x2 || z8N < this.pt.y1 && b6x < this.pt.y2 || z8N > this.pt.y1 && b6x > this.pt.y2){this.pinchingScreen=0;}else {this.pinchingScreen++;if(this.pinchingScreen < 2){return;}}}this.pt={x1:F3j,x2:a6O,y1:z8N,y2:b6x};if(this.pinchingScreen === 0){this.grabMode="pan";z_B.H6P(0);this.mousemoveinner(z_B.S40(F3j,O8y),z_B.q7n(z8N,h4u));this.gestureStartDistance=u__;}else {l6R=Math.asin((Math.max(b6x,z8N) - Math.min(b6x,z8N)) / u__);if(Math.abs(W6N) < 12 && !M1J){this.moveCount++;if(this.moveCount == 4){this.pinchingScreen=0;this.moveCount=0;return;}}else {this.moveCount=0;}if(l6R < 1 || !this.goneVertical && l6R < 1.37){if(!this.currentPanel){return;}c4i=this.currentPanel.chart;this.goneVertical=![];u__=this.pt.x2 - this.pt.x1;j7A=this.grabStartValues.t2 - this.grabStartValues.t1;s9V=this.grabStartValues.t1 + j7A / ("2" ^ 0);z_B.D0J(14);G7K=z_B.q7n(j7A,u__);if(c4i.allowScrollFuture === !"1" && c4i.allowScrollPast === !({})){G7K=Math.max(G7K,c4i.width / c4i.dataSet.length);}y5V=this.layout.candleWidth;this.setCandleWidth(G7K,c4i);if(c4i.maxTicks < this.minimumZoomTicks){this.setCandleWidth(y5V,c4i);return;}this.micropixels=0;w9D=this.pixelFromTick(Math.round(s9V),c4i);x6F=this.pt.x1 - this.left + Math.round(u__ / +"2");z_B.H6P(7);v7U=z_B.q7n(x6F,w9D);z_B.H6P(14);R3x=z_B.q7n(G7K,v7U);g6b=Math.round(R3x);c4i.scroll-=g6b;z_B.H6P(7);this.microscroll=z_B.q7n(R3x,g6b);this.micropixels=G7K * this.microscroll;this.draw();}else {n0N=this.grabStartYAxis;this.goneVertical=!0;if(n0N){G1m=-396170675;H$5=1039071863;r9I=2;for(var W5N=+"1";z_B.U6$(W5N.toString(),W5N.toString().length,47121) !== G1m;W5N++){n0N.zoom=this.grabStartZoom + (this.gestureStartDistance - u__);r9I+=2;}if(z_B.U6$(r9I.toString(),r9I.toString().length,+"25025") !== H$5){n0N.zoom=this.grabStartZoom % (this.gestureStartDistance + u__);}if(this.grabStartZoom < n0N.height){if(n0N.zoom >= n0N.height){z_B.H6P(41);var r_W=z_B.q7n(6,17,103);n0N.zoom=n0N.height - r_W;}}else {if(n0N.zoom <= n0N.height){z_B.D0J(142);var d$1=z_B.S40(14,6,12,447,6);n0N.zoom=n0N.height + d$1;}}this.draw();;}}this.updateChartAccessories();}}else if(z0C.length == 3 && m8b.ChartEngine.allowThreeFingerTouch){if(!this.displayCrosshairs){return;}j7d=z0C[0];O3g=j7d.clientX;u__=this.grabStartX - O3g;z_B.D0J(143);var o0X=z_B.S40(1,6,4,190,190);this.grabEndPeriodicity=this.grabStartPeriodicity + Math.round(u__ / o0X);if(this.grabEndPeriodicity < 1){z_B.D0J(21);this.grabEndPeriodicity=z_B.S40("1",0);}}this.runAppend("touchmove",arguments);};function v0N(S$_,i2d,P$Z){var U9M;if(!S$_.layout.crosshair){m8b.ChartEngine.crosshairY=0;m8b.ChartEngine.crosshairX=0;S$_.cx=S$_.backOutX(0);S$_.cy=S$_.backOutY(0);S$_.findHighlights(null,!!1);m8b.ChartEngine.crosshairY=P$Z;m8b.ChartEngine.crosshairX=i2d;U9M=S$_.container.getBoundingClientRect();S$_.top=U9M.top;S$_.left=U9M.left;S$_.right=S$_.left + S$_.width;S$_.bottom=S$_.top + S$_.height;S$_.cx=S$_.backOutX(i2d);S$_.cy=S$_.backOutY(P$Z);if(S$_.currentPanel && S$_.currentPanel.chart.dataSet){S$_.crosshairTick=S$_.tickFromPixel(S$_.cx,S$_.currentPanel.chart);S$_.crosshairValue=S$_.adjustIfNecessary(S$_.currentPanel,S$_.crosshairTick,S$_.valueFromPixel(S$_.cy,S$_.currentPanel));}S$_.headsUpHR();}S$_.findHighlights(!![]);S$_.draw();}m8b.ChartEngine.prototype.touchstart=function(f1D){var T1e=A2IFV;var A_o,r2Q,M9D,D9U,F67,c8B,n2H,X36,n$S,m4m,X76,w4g,K59,k4j,B$x,S7W,h$D,O_d,q6Q,s$O,j8q,w_j,p6Z,k9M,j0D,v8H,l30,F4w,J7S,T04,y06,E0A,m8n,C2d,U_6;A_o="touchst";A_o+="ar";A_o+="t";if(m8b.ChartEngine.ignoreTouch){return;}if(m8b.isSurface){this.movedPrimary=![];this.movedSecondary=!({});}else {if(this.touchingEvent){clearTimeout(this.touchingEvent);}this.touching=!!"1";this.touches=f1D.touches;this.changedTouches=f1D.changedTouches;}if(m8b.ChartEngine.resizingPanel){return;}r2Q=this.crosshairXOffset;M9D=this.crosshairYOffset;if(this.touchPointerType == "pen"){r2Q=M9D=0;}if(this.runPrepend("touchstart",arguments)){return;}if(this.manageTouchAndMouse && f1D && f1D.preventDefault && f1D.cancelable && this.captureTouchEvents){f1D.preventDefault();}this.hasDragged=![];this.doubleFingerMoves=0;this.moveCount=0;this.twoFingerStart=!!"";if(this.touches.length == 1 || this.touches.length == 2){this.touchMoveTime=Date.now();n$S=this.touches[0];c8B=n$S.clientX;n2H=n$S.clientY;this.moveA=c8B;this.moveB=-1;if(this.openDialog === ""){m4m="do";m4m+="wn";this.registerPointerEvent({x:c8B,y:n2H,time:this.touchMoveTime},m4m);if(this.changedTouches.length == 1 && !this.isDoubleClick(!!"1")){m8b.extend(this.clicks,{s1MS:this.touchMoveTime,e1MS:-1,s2MS:-1,e2MS:-1,x:this.changedTouches["0" - 0].pageX,y:this.changedTouches[0].pageY});}}X76=this.container.getBoundingClientRect();this.top=X76.top;this.left=X76.left;this.right=this.left + this.width;this.bottom=this.top + this.height;if(this.touches.length == 1){w4g=this.backOutY(n2H);this.currentPanel=this.whichPanel(w4g);}if(!this.currentPanel){this.currentPanel=this.chart.panel;}X36=this.currentPanel;if(c8B >= this.left && c8B <= this.right && n2H >= this.top && n2H <= this.bottom){this.insideChart=!!({});K59=this.xAxisAsFooter === !""?this.chart.canvasHeight:this.chart.panel.bottom;this.overXAxis=n2H <= this.top + K59 && n2H >= this.top + K59 - this.xaxisHeight;this.overYAxis=c8B >= this.left + X36.right || c8B <= this.left + X36.left;k4j=-1;this.cy=this.backOutY(n2H);this.cx=this.backOutX(c8B);this.crosshairTick=this.tickFromPixel(this.cx,X36.chart);this.crosshairValue=this.adjustIfNecessary(X36,this.crosshairTick,this.valueFromPixel(this.cy,this.currentPanel));for(var x4Y=0;x4Y < this.drawingObjects.length;x4Y++){B$x=this.drawingObjects[x4Y];if(B$x.highlighted){if(k4j < "0" >> 0){k4j=x4Y;}S7W=B$x.highlighted;this.findHighlights(!0);if(x4Y == k4j && B$x.highlighted && !B$x.permanent){if(this.clicks.s2MS == -1){this.activateRepositioning(B$x);;}else {this.findHighlights(!1,!!"1");;}return;}this.anyHighlighted=!!1;B$x.highlighted=S7W;}}}else {h$D=398187641;T1e.H6P(1);O_d=-T1e.S40(1,"403517388");q6Q=2;for(var x1E=+"1";T1e.U6$(x1E.toString(),x1E.toString().length,"29189" | 1) !== h$D;x1E++){this.insideChart=!"";q6Q+=2;}if(T1e.U6$(q6Q.toString(),q6Q.toString().length,83258) !== O_d){this.insideChart=!!({});}this.insideChart=!!"";}s$O=this.currentVectorParameters.vectorType && this.currentVectorParameters.vectorType !== "";if(!this.layout.crosshair && !(this.layout.headsUp && this.layout.headsUp.floating) && !s$O && this.insideChart && !this.touchNoPan){r2Q=M9D=0;var {baselineHelper:n_4}=this;if(n_4.size){if(this.findBaselineHandle(f1D,!"")){return;}}if(this.controls.anchorHandles){j8q=Object.values(this.controls.anchorHandles);w_j=-896458940;T1e.H6P(10);p6Z=-T1e.S40("412015577",9);k9M=2;for(var a23=+"1";T1e.U6$(a23.toString(),a23.toString().length,"59047" ^ 0) !== w_j;a23++){j0D=!"";T1e.H6P(21);k9M+=T1e.q7n("2",0);}if(T1e.Z2Z(k9M.toString(),k9M.toString().length,94686) !== p6Z){j0D=!1;}j0D=!"1";for(var P_3=0;P_3 < j8q.length;P_3++){v8H=j8q[P_3];var {handle:R_n, sd:h0m}=v8H;l30=this.resolveX(this.cx);F4w=this.resolveY(this.cy);var {left:t5H, top:Q4l, right:w$$, bottom:H1Z}=R_n.getBoundingClientRect();t5H-=10;w$$+=10;if(m8b.boxIntersects(t5H,Q4l,w$$,H1Z,l30,F4w,l30,F4w)){J7S="st";J7S+="x-g";J7S+="rab";v8H.highlighted=!!({});this.repositioningAnchorSelector={sd:h0m};R_n.classList.add(J7S);j0D=!0;}if(v8H.highlighted === !""){v8H.highlighted=![];}}if(j0D){return;}}for(D9U in this.panels){F67=this.panels[D9U];if(F67.highlighted){this.grabHandle(F67);return;}}this.grabbingScreen=!!1;if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}X36.chart.spanLock=!({});this.yToleranceBroken=![];T1e.H6P(0);this.grabStartX=T1e.q7n(c8B,r2Q);T1e.D0J(0);this.grabStartY=T1e.q7n(n2H,M9D);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=X36.chart.scroll;this.grabStartScrollY=X36.yAxis.scroll;this.grabStartPanel=this.currentPanel;if(this.swipeStart){this.swipeStart(X36.chart);}this.grabStartYAxis=this.whichYAxis(X36,this.backOutX(c8B));this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;setTimeout((function(A7E){return function(){T1e.D0H();A7E.grabbingHand();};})(this),100);}else {this.grabbingScreen=!({});if(this.insideChart && X36.subholder === f1D.target){T04=this.currentVectorParameters.vectorType;if(m8b.Drawing && T04 && m8b.Drawing[T04] && new m8b.Drawing[T04]().dragToDraw){this.userPointerDown=!!1;m8b.ChartEngine.crosshairX=c8B;m8b.ChartEngine.crosshairY=n2H;if(X36 && X36.chart.dataSet){this.crosshairTick=this.tickFromPixel(this.backOutX(m8b.ChartEngine.crosshairX),this.currentPanel.chart);this.crosshairValue=this.adjustIfNecessary(X36,this.crosshairTick,this.valueFromPixel(this.backOutY(m8b.ChartEngine.crosshairY),this.currentPanel));}this.drawingClick(X36,this.backOutX(c8B),this.backOutY(n2H));this.headsUpHR();return;}}}if(this.touches.length === 1 && this.layout.crosshair && !s$O && X36.subholder === f1D.target){T1e.H6P(0);this.mousemoveinner(T1e.S40(c8B,r2Q),T1e.q7n(n2H,M9D));}}if(this.touches.length == 2){this.cancelLongHold=!!({});this.swipe.end=!![];if(!this.displayCrosshairs && !this.touchNoPan || !this.insideChart){return;}y06=this.touches[1];E0A=y06.clientX;m8n=y06.clientY;for(D9U in this.panels){F67=this.panels[D9U];if(F67.highlighted){this.grabHandle(F67);return;}}X36=this.currentPanel;T1e.D0J(141);this.gestureStartDistance=Math.sqrt(T1e.q7n(n2H,E0A,n2H,m8n,m8n,E0A,c8B,c8B));this.pt={x1:c8B,x2:E0A,y1:n2H,y2:m8n};this.grabbingScreen=!!({});if(this.disableBackingStoreDuringTouch){this.disableBackingStore();}X36.chart.spanLock=!1;T1e.H6P(0);this.grabStartX=T1e.S40(c8B,r2Q);T1e.H6P(0);this.grabStartY=T1e.q7n(n2H,M9D);this.grabStartMicropixels=this.micropixels;this.grabStartScrollX=X36.chart.scroll;this.grabStartScrollY=X36.yAxis.scroll;this.grabStartPanel=X36;if(this.swipeStart){this.swipeStart(X36.chart);}this.grabStartCandleWidth=this.layout.candleWidth;this.grabStartYAxis=this.whichYAxis(X36,this.backOutX((c8B + E0A) / 2)) || X36.yAxis;this.grabStartZoom=this.grabStartYAxis?this.grabStartYAxis.zoom:0;this.grabStartPt=this.pt;this.grabStartValues={x1:this.pt.x1,x2:this.pt.x2,y1:this.valueFromPixel(this.pt.y1 - this.top,X36),y2:this.valueFromPixel(this.pt.y2 - this.top,X36),t1:this.tickFromPixel(this.pt.x1 - this.left,X36.chart),t2:this.tickFromPixel(this.pt.x2 - this.left,X36.chart)};this.twoFingerStart=!![];setTimeout((function(i1l){T1e.D0H();return function(){i1l.grabbingHand();};})(this),100);}else if(this.touches.length == 3){if(!this.displayCrosshairs){return;}C2d=this.touches[+"0"];U_6=C2d.clientX;this.grabStartX=U_6;this.grabStartPeriodicity=this.layout.periodicity;}if(this.touches.length == 1 && !this.layout.crosshair){this.mouseTimer=Date.now();this.longHoldTookEffect=![];if(this.longHoldTime || this.longHoldTime === 0){this.startLongHoldTimer();}}this.runAppend(A_o,arguments);};m8b.ChartEngine.prototype.touchend=function(B7V){var s5K,i73,G78,P_O,K6w,S_6,k$2,X0z,X0B,X_R,Z8S,T5e;if(m8b.ChartEngine.ignoreTouch){return;}this.swipe.end=!!"1";if(m8b.isSurface){}else {this.touches=B7V.touches;this.changedTouches=B7V.changedTouches;}if(this.runPrepend("touchend",arguments)){return;}this.cancelLongHold=!0;if(this.touches.length <= 1){if(this.layout.crosshair || this.currentVectorParameters.vectorType){if(!this.touches.length || !this.twoFingerStart){this.grabbingScreen=!({});}}}if(this.touches.length){this.grabStartX=-1;this.grabStartY=-1;}s5K=this.pinchingScreen;if(this.disableBackingStoreDuringTouch){this.reconstituteBackingStore();}if(!this.touches.length){this.touchingEvent=setTimeout((function(u0c){A2IFV.D0H();return function(){A2IFV.a9S();u0c.touching=!"1";};})(this),500);if(m8b.ChartEngine.resizingPanel){this.releaseHandle();return;}this.pinchingScreen=null;this.pinchingCenter=null;this.goneVertical=!!"";this.grabbingScreen=![];this.grabMode="";if(this.highlightedDraggable){if(this.dragPlotOrAxis){this.dragPlotOrAxis(this.cx,this.cy);}this.currentPanel=this.whichPanel(this.cy);}this.grabStartYAxis=null;this.displayDragOK();this.doDisplayCrosshairs();this.updateChartAccessories();}else {if(m8b.ChartEngine.resizingPanel){return;}}i73=this.touches.length + +"1";if(this.changedTouches.length == 1){if(this.repositioningDrawing){G78="v";G78+="ec";G78+="t";G78+="or";this.changeOccurred(G78);m8b.clearCanvas(this.chart.tempCanvas,this);this.activateRepositioning(null);this.draw();if(!this.layout.crosshair && !this.currentVectorParameters.vectorType){this.findHighlights(!({}),!0);}return;}if(this.repositioningBaseline){P_O="st";P_O+="x-gra";P_O+="b";this.repositioningBaseline=null;this.controls.baselineHandle.classList.remove(P_O);K6w=this.mainSeriesRenderer || ({});if(K6w.params && K6w.params.baseline && K6w.params.type != "mountain"){;}this.draw();return;}if(this.repositioningAnchorSelector){m8b.Studies.repositionAnchor(this,this.repositioningAnchorSelector.sd);this.repositioningAnchorSelector=null;Object.values(this.controls.anchorHandles).forEach(({handle:o6Y})=>{A2IFV.D0H();return o6Y.classList.remove("stx-grab");});return;}S_6=Date.now();if(this.openDialog === "" && B7V.changedTouches.length){k$2=B7V.changedTouches[0];this.registerPointerEvent({x:k$2.clientX,y:k$2.clientY,time:S_6},"up");}if(this.clicks.s2MS == -("1" | 1)){this.clicks.e1MS=S_6;X0z=this.currentVectorParameters.vectorType;if(!m8b.Drawing || !X0z || !m8b.Drawing[X0z] || !new m8b.Drawing[X0z]().dragToDraw){if(this.clicks.e1MS - this.clicks.s1MS < ("750" ^ 0) && !this.longHoldTookEffect && (!this.hasDragged || this.layout.crosshair)){setTimeout(this.touchSingleClick(i73,this.clicks.x,this.clicks.y),this.doubleClickTime + 1);;}else {this.clicks={s1MS:-1,e1MS:-1,s2MS:-("1" - 0),e2MS:-1};}}this.userPointerDown=!({});X0B=this.backOutY(this.changedTouches[0].pageY) + this.crosshairYOffset;X_R=this.backOutX(this.changedTouches[0].pageX) + this.crosshairXOffset;Z8S=this.currentPanel;T5e=Z8S && Z8S.subholder === B7V.target;if(m8b.Drawing && this.activeDrawing && this.activeDrawing.dragToDraw && T5e){this.drawingClick(Z8S,X_R,X0B);return;}if(this.isDoubleClick(!![]) && (T5e || this.overYAxis || this.overXAxis)){this.touchDoubleClick(i73,this.clicks.x,this.clicks.y);}}else {this.clicks.e2MS=S_6;this.clicks={s1MS:-1,e1MS:-+"1",s2MS:-("1" | 0),e2MS:-+"1"};}}else if(this.displayCrosshairs){if(this.grabEndPeriodicity != -1 && !isNaN(this.grabEndPeriodicity)){if(m8b.ChartEngine.isDailyInterval(this.layout.interval) || this.allowIntradayNMinute){this.setPeriodicity({period:this.grabEndPeriodicity,interval:this.layout.interval});}this.grabEndPeriodicity=-1;}}if(this.changedTouches.length){if(!this.layout.crosshair && !this.currentVectorParameters.vectorType && i73 == 1 || this.twoFingerStart && !s5K && !this.touches.length){if(this.swipeRelease){this.swipeRelease();}this.findHighlights(!1,!"");}if(s5K && this.continuousZoom){this.continuousZoom.execute();this.continuousZoom.execute(!!({}));}}if(!this.touches.length){this.twoFingerStart=!({});}this.runAppend("touchend",arguments);};x6D=!({});m8b.ChartEngine.prototype.mousemoveinner=m8b.ChartEngine.prototype.mousemoveinner || (function(n1_,f_j){var F4Z,c8w,f1p;F4Z=1014480928;c8w=+"1052536454";f1p=2;A2IFV.a9S();for(var n3Q=1;A2IFV.U6$(n3Q.toString(),n3Q.toString().length,"93281" * 1) !== F4Z;n3Q++){if(~x6D){console.error("");}f1p+=2;}if(A2IFV.U6$(f1p.toString(),f1p.toString().length,32804) !== c8w){if(+x6D){console.error("");}}if(!x6D){console.error("touch feature requires activating movement feature.");}x6D=!!1;});};d7=V4$=>{var s_A=A2IFV;var b3w,a86;b3w="und";b3w+="efined";a86=typeof _CIQ !== b3w?_CIQ:V4$.CIQ;s_A.D0H();a86.Visualization=a86.Visualization || (function(A4Z){var L76;if(!A4Z){L76="C";L76+="IQ.Visualization() missing attribu";L76+="t";L76+="es argument.";console.log(L76);return;}if(typeof A4Z.renderFunction !== "function"){console.log("CIQ.Visualization() missing renderFunction property in attributes.");return;}this.container=null;s_A.D0H();this.attributes=A4Z;this.data=null;this.object=null;});a86.extend(a86.Visualization.prototype,{destroy:function(b61){var x2A;x2A=this.container;a86.resizeObserver(x2A,null,x2A.resizeHandle);if(x2A.autoGenerated){x2A.remove();delete this.container;}else {x2A.innerHTML="";}if(b61){return;}s_A.a9S();this.attributes=null;this.container=null;this.data=null;this.object=null;this.destroy=this.draw=this.setAttributes=function(){};this.updateData=function(){s_A.a9S();return undefined;};},draw:function(a4O){s_A.D0H();var b0T,p7i,j9v,a$Q,q11,P4i,s_J,E8y,t6O,l3G;b0T="str";b0T+="ing";p7i="o";p7i+="b";p7i+="jec";p7i+="t";if(!this.data || typeof this.data !== p7i){console.log("CIQ.Visualization.draw() missing data.");return;}j9v=this.attributes;a$Q=j9v.container || this.container;if(typeof a$Q === b0T){a$Q=document.querySelector(a$Q);}if(!a$Q){a$Q=document.createElement("div");a$Q.style.height=a$Q.style.width="300px";document.body.appendChild(a$Q);a$Q.autoGenerated=!!({});}if(j9v.stx){q11=j9v.stx.chart.canvasShim;if(j9v.useCanvasShim && q11 && q11 !== a$Q && q11 !== a$Q.parentNode){if(!a$Q.autoGenerated){a$Q=a$Q.cloneNode();a$Q.id="";a$Q.autoGenerated=!!1;}q11.appendChild(a$Q);}}if(this.container && this.container !== a$Q){this.destroy(!0);}if(!a$Q.resizeHandle){P4i=function(a4a){s_A.a9S();return function(){if(a4a.data && a4a.container && document.body.contains(a4a.container)){a4a.draw.call(a4a,!!1);}};};a$Q.resizeHandle=a86.resizeObserver(a$Q,P4i(this),null,100);}this.container=a$Q;this.attributes=j9v;j9v=a86.ensureDefaults({container:this.container},this.attributes);s_J=j9v.renderFunction(Object.values(this.data).sort(g4s),j9v);if(s_J){E8y=+"698908642";t6O=530697098;l3G=2;for(var t7D=1;s_A.U6$(t7D.toString(),t7D.toString().length,82003) !== E8y;t7D++){if(j9v.id){s_J.id=j9v.id;}l3G+=2;}if(s_A.U6$(l3G.toString(),l3G.toString().length,61980) !== t6O){if(j9v.id){s_J.id=j9v.id;}}if(a4O || j9v.forceReplace){this.container.innerHTML="";this.container.appendChild(s_J);}}this.attributes=j9v;function g4s(i$V,F3n){s_A.D0H();return i$V.index < F3n.index?-1:i$V.index > F3n.index?1:0;}this.object=s_J;},setAttributes:function(U$k,T8K){var J3O,y5J,U_2,O2a;J3O="contain";J3O+="er";y5J=["renderFunction",J3O,"stx","useCanvasShim","id","forceReplace"];U_2=![];s_A.a9S();O2a=U$k;if(typeof U$k == "string"){O2a={};O2a[U$k]=T8K;}if(typeof O2a == "object"){for(var s6q in O2a){if(this.attributes[s6q] !== O2a[s6q] && y5J.indexOf(s6q) !== -1){U_2=!![];}this.attributes[s6q]=O2a[s6q];}}this.draw(U_2);},updateData:function(x$S,q1O){var X7V,J5z,f0j,K4b,n2w,U4J,c3h;X7V="up";X7V+="d";X7V+="at";X7V+="e";J5z="r";J5z+="epl";J5z+="a";J5z+="ce";n2w=Array.isArray(x$S)?x$S.reduce(function(Z7C,v8L){s_A.D0H();Z7C[v8L.name]=v8L;return Z7C;},{}):a86.shallowClone(x$S);for(f0j in n2w){K4b=n2w[f0j];if(Object.prototype.toString.call(K4b) !== "[object Object]"){n2w[f0j]={value:K4b};}if(!n2w[f0j].name){n2w[f0j].name=f0j;}if(!n2w[f0j].value){n2w[f0j].value=0;}}if(!q1O){q1O="replace";}switch(q1O.toLowerCase()){case "delete":for(f0j in n2w){delete this.data[f0j];}break;case J5z:this.data={};case X7V:case "add":for(f0j in n2w){U4J="[ob";U4J+="j";U4J+="ect Nu";U4J+="mber]";if(!this.data[f0j]){this.data[f0j]={name:f0j};}K4b=n2w[f0j].value;if(Object.prototype.toString.call(K4b) == U4J){c3h="u";c3h+="p";c3h+="d";c3h+="ate";if(!this.data[f0j].value || q1O == c3h){this.data[f0j].value=0;}this.data[f0j].value+=K4b;}else {this.data[f0j].value=K4b;}for(var x7X in n2w[f0j]){if(x7X !== "value"){this.data[f0j][x7X]=n2w[f0j][x7X];}}}break;default:console.log("Invalid or missing action. Valid values are 'add', 'delete', 'replace', or 'update'.");}this.draw(this.attributes.forceReplace);return this;}});a86.ChartEngine.prototype.embedVisualization=function(M22){if(!M22){M22={};}M22.stx=this;M22.useCanvasShim=!![];s_A.a9S();M22.translator=function(b78){s_A.a9S();return M22.stx.translateIf(b78);};return new a86.Visualization(M22);};};m1=c$9=>{var a6m,E4o,M4W,s4h;a6m="u";a6m+="n";a6m+="defined";E4o=typeof _CIQ !== a6m?_CIQ:c$9.CIQ;if(!E4o.Studies){M4W="medianPrice feature requires first activating studies fea";M4W+="ture.";console.error(M4W);}else {s4h="Median P";s4h+="rice";E4o.Studies.calculateTypicalPrice=function(p9T,t5J){var b2E=A2IFV;var y8C,e$U,y6b,s1e,E5M;y8C=t5J.chart.scrubbed;e$U=t5J.days;if(y8C.length < e$U + 1){if(!t5J.overlay){t5J.error=!"";}return;}y6b=t5J.name;for(var l9R in t5J.outputs){b2E.H6P(37);y6b=b2E.S40(y6b,l9R,(5214,+"2672") == 295?(!({}),0x2024):(4840,148) <= 9300?" ":1583 == 6312?(+"0xa5e",+"978.36"):("O",107.48));}s1e="h";s1e+="l";s1e+="c/3";if(t5J.type == "Med Price"){s1e="hl/2";}else if(t5J.type == "Weighted Close"){s1e="hlcc/4";}E5M=0;if(t5J.startFrom <= e$U){b2E.D0J(28);t5J.startFrom=b2E.q7n("0",32);}for(var n1y=t5J.startFrom;n1y < y8C.length;n1y++){if(n1y && y8C[n1y - 1][y6b]){b2E.H6P(7);var I5X=b2E.S40(2,3);E5M=y8C[n1y - I5X][y6b] * e$U;}E5M+=y8C[n1y][s1e];if(n1y >= e$U){b2E.H6P(7);E5M-=y8C[b2E.q7n(e$U,n1y)][s1e];b2E.H6P(14);y8C[n1y][y6b]=b2E.q7n(e$U,E5M);}}};E4o.Studies.studyLibrary=E4o.extend(E4o.Studies.studyLibrary,{"Med Price":{name:s4h,calculateFN:E4o.Studies.calculateTypicalPrice,inputs:{Period:14}}});}};k4=j0c=>{var c5N=A2IFV;var D8q,l3e;c5N.D0H();D8q=typeof _CIQ !== "undefined"?_CIQ:j0c.CIQ;if(!D8q.Studies){console.error("momentum feature requires first activating studies feature.");}else {l3e="Price Rat";l3e+="e of Change";D8q.Studies.calculateRateOfChange=function(v5G,I8C){var x8z,k$p,P$7,K4Z,Z5Y,H0$,V5T,l0b,h1t,f05,M2v,L7u;x8z="V";x8z+="olu";x8z+="me";k$p="C";k$p+="lo";k$p+="s";k$p+="e";P$7="f";P$7+="ie";P$7+="l";P$7+="d";K4Z=I8C.chart.scrubbed;if(K4Z.length < I8C.days + +"1"){I8C.error=!!({});return;}Z5Y=I8C.inputs.Field;if(!Z5Y || Z5Y == P$7){Z5Y=k$p;}if(I8C.parameters.isVolume){Z5Y=x8z;}H0$=I8C.name;for(var p6q in I8C.outputs){c5N.H6P(37);H0$=c5N.S40(H0$,p6q,"1330" - 0 !== 271?("8590" ^ 0,3416) > "381.69" - 0?5704 === 1382?5.35e+3:" ":(9.59e+3,3.05e+3):(379.23,!!"1"));}V5T=I8C.inputs["Center Line"];if(!V5T){c5N.D0J(10);V5T=c5N.S40("0",0);}else {V5T=parseInt(V5T,10);}for(var H$h=Math.max(I8C.startFrom,I8C.days);H$h < K4Z.length;H$h++){l0b="M";l0b+="oment";l0b+="um";h1t="ob";h1t+="j";h1t+="ect";f05=K4Z[H$h][Z5Y];if(f05 && typeof f05 == h1t){f05=f05[I8C.subField];}M2v=K4Z[H$h - I8C.days][Z5Y];if(M2v && typeof M2v == "object"){M2v=M2v[I8C.subField];}if(I8C.type == l0b){c5N.D0J(36);K4Z[H$h][H0$]=c5N.S40(V5T,f05,M2v);}else {L7u=M2v;if(L7u){c5N.H6P(144);K4Z[H$h][H0$]=c5N.q7n(f05,1,L7u,V5T,100);}}}};D8q.Studies.studyLibrary=D8q.extend(D8q.Studies.studyLibrary,{"Price ROC":{name:l3e,calculateFN:D8q.Studies.calculateRateOfChange,inputs:{Period:14,Field:"field"}},Momentum:{name:"Momentum Indicator",calculateFN:D8q.Studies.calculateRateOfChange,inputs:{Period:14},centerline:0}});}};C1=R1R=>{var v4Q,h$Q;v4Q=typeof _CIQ !== "undefined"?_CIQ:R1R.CIQ;if(!v4Q.Studies){console.error("priceRelative feature requires first activating studies feature.");}else {h$Q="Pric";h$Q+="e Relative";v4Q.Studies.initPriceRelative=function(D8z,t8H,z4c,W8c,t39,S3G){var R7V,U8k;R7V=v4Q.Studies.initializeFN(D8z,t8H,z4c,W8c,t39,S3G);U8k=[R7V.inputs["Comparison Symbol"].toUpperCase()];v4Q.Studies.fetchAdditionalInstruments(D8z,R7V,U8k);return R7V;};v4Q.Studies.calculatePriceRelative=function(P7y,j1Q){var G3m,e7g,h$B,l0e,J4r,J6c;G3m=j1Q.chart.scrubbed;e7g=j1Q.inputs["Comparison Symbol"].toUpperCase();if(!e7g){e7g=j1Q.study.inputs["Comparison Symbol"];}A2IFV.a9S();h$B={};l0e=P7y.chart.symbol || "";l0e=l0e.replace(/[=+\-*\\%]/g,"");h$B[l0e]=G3m.slice(j1Q.startFrom);if(!h$B[l0e].length){return;}if(l0e != e7g){h$B[e7g]=null;}A2IFV.D0J(73);J4r=v4Q.computeEquationChart(A2IFV.S40((3038,9520) !== ("5880" | 24,293.33)?"[":("H",90.93),(544.73,+"232") === +"1192"?526:"]",e7g,"]/[",l0e),h$B);J6c=0;for(var x7b=j1Q.startFrom;x7b < G3m.length && J6c < J4r.length;x7b++){while(J6c < J4r.length && G3m[x7b].DT.getTime() > J4r[J6c].DT.getTime()){J6c++;}if(G3m[x7b].DT.getTime() < J4r[J6c].DT.getTime())continue;G3m[x7b]["Result " + j1Q.name]=J4r[J6c].Close;J6c++;}};v4Q.Studies.displayVsComparisonSymbol=function(W19,u$o,m_H){var M4K,L5O,Q1I,i15;M4K=u$o.inputs["Comparison Symbol"].toUpperCase();if(!W19.getSeries({symbol:M4K,chart:u$o.chart}).length){W19.displayErrorAsWatermark(u$o.panel,W19.translateIf(u$o.study.name) + ": " + W19.translateIf("Not Available"));return;}L5O={skipTransform:W19.panels[u$o.panel].name != u$o.chart.name,panelName:u$o.panel,band:"Result " + u$o.name,threshold:u$o.study.centerline,yAxis:u$o.getYAxis(W19),gapDisplayStyle:!!({})};A2IFV.D0H();Q1I=L5O.yAxis?L5O.yAxis.flipped:W19.panels[u$o.panel].yAxis.flipped;i15=0.3;if(!u$o.highlight && W19.highlightedDraggable){i15*=0.3;}for(var q8U=m_H.length - 1;q8U >= +"0";q8U--){if(m_H[q8U] && m_H[q8U][M4K]){v4Q.Studies.displaySeriesAsLine(W19,u$o,m_H);if(u$o.study.centerline || u$o.study.centerline === 0){if(u$o.outputs.Gain){v4Q.preparePeakValleyFill(W19,v4Q.extend(L5O,{direction:Q1I?-1:"1" | 0,color:v4Q.Studies.determineColor(u$o.outputs.Gain),opacity:i15}));}if(u$o.outputs.Loss){v4Q.preparePeakValleyFill(W19,v4Q.extend(L5O,{direction:Q1I?1:-1,color:v4Q.Studies.determineColor(u$o.outputs.Loss),opacity:i15}));}}return;}}};v4Q.Studies.fetchAdditionalInstruments=function(c0L,O6o,X53,R$L){var G3u,P6m,b20,C33,w2P,J35;if(!c0L.quoteDriver){console.log("CIQ.Studies.fetchAdditionalInstruments: No quotefeed to fetch symbol");return;}G3u=c0L.panels[O6o.panel].chart;function w3i(){c0L.createDataSet();c0L.draw();}O6o.symbols=X53;for(P6m=+"0";P6m < X53.length;P6m++){b20=C33=X53[P6m];if(typeof C33 == "object"){b20=C33.symbol;}else {C33={symbol:b20};}w2P={symbol:b20,symbolObject:C33,bucket:"study",studyName:O6o.name,chartName:G3u.name,action:"add-study"};v4Q.extend(w2P,R$L);J35=w2P.loadData;if(c0L.currentlyImporting){w2P.loadData=![];}if(!O6o.series){O6o.series={};}O6o.series[b20]=c0L.addSeries(null,w2P,w3i);O6o.series[b20].parameters.loadData=J35;}};v4Q.Studies.studyLibrary=v4Q.extend(v4Q.Studies.studyLibrary,{"P Rel":{name:h$Q,initializeFN:v4Q.Studies.initPriceRelative,seriesFN:v4Q.Studies.displayVsComparisonSymbol,calculateFN:v4Q.Studies.calculatePriceRelative,centerline:+"0",inputs:{"Comparison Symbol":"SPY"},deferUpdate:!""}});}};t_=v4i=>{var P5e=A2IFV;var A$i,i3L,m3Z,A_t,F2y,n2A,r5I,j3z;A$i="un";A$i+="d";A$i+="efi";P5e.a9S();A$i+="ned";i3L=typeof _CIQ !== A$i?_CIQ:v4i.CIQ;if(!i3L.Studies){console.error("vwap feature requires first activating studies feature.");}else {m3Z="#8";m3Z+="5c";m3Z+="99e";A_t="#";A_t+="FF";A_t+="0000";F2y="V";F2y+="W";F2y+="A";F2y+="P";n2A="h";n2A+="h:";n2A+="mm:";n2A+="ss";r5I="#fff";r5I+="69e";j3z="#e1e1e";j3z+="1";i3L.Studies.calculateVWAP=function(T41,E9j){var n8T,c$n,o$X,s0q,o$9,J3F,B6E,W0I,G6v,Z8a,h_L,p$Q,k3t,Z2S,j4u,g8k,k$o,a6U,o_1,q6n,v8t,I1Z,z6v,i2l;n8T="AVWA";n8T+="P";c$n=E9j.type == n8T;o$X=E9j.chart.scrubbed;P5e.D0H();if(!c$n && i3L.ChartEngine.isDailyInterval(T41.layout.interval)){E9j.error="VWAP is Intraday Only";return;}s0q="hl";s0q+="c/";s0q+="3";if(c$n){s0q=E9j.inputs.Field;if(!s0q || s0q == "field"){s0q=E9j.inputs.Field="hlc/3";T41.changeOccurred("layout");}}o$9=null;J3F=0;B6E=0;W0I=+"0";G6v=!({});if(E9j.startFrom > 1){Z8a="_";Z8a+="VxP ";h_L="_V";h_L+=" ";J3F=o$X[E9j.startFrom - 1][h_L + E9j.name] || "0" - 0;B6E=o$X[E9j.startFrom - 1][Z8a + E9j.name] || 0;W0I=o$X[E9j.startFrom - 1]["_VxP2 " + E9j.name] || 0;}if(c$n){p$Q="Anc";p$Q+="hor ";p$Q+="D";p$Q+="ate";k3t=E9j.inputs[p$Q].replace(/-/g,"");if(k3t.search(/^\d{8}$/)){E9j.error="Invalid Anchor Date";return;}Z2S=E9j.inputs["Anchor Time"].replace(/:/g,"");if(!Z2S.search(/^\d{4,6}$/)){k3t+=Z2S;}k3t=i3L.strToDateTime(k3t.replace(/\D/g,""));if(!E9j.startFrom && k3t >= o$X[0].DT){E9j.startFrom=T41.tickFromDate(k3t,T41.chart,null,!0);}if(E9j.inputs["Anchor Selector"]){i3L.Studies.initAnchorHandle(T41,E9j);}else {i3L.Studies.removeAnchorHandle(T41,E9j);}}for(var k7F=E9j.startFrom;k7F < o$X.length;k7F++){j4u="_";j4u+="SDVWAP ";if(!c$n){if(o$9 === null){o$9=i3L.Studies.getMarketOffset({stx:T41,localQuoteDate:o$X[k7F].DT,shiftToDateBoundary:!!({})});}if(o$X[k7F - ("1" << 32)] && o$X[k7F - 1].DT){g8k=new Date(new Date(+o$X[k7F].DT).setMilliseconds(o$X[k7F].DT.getMilliseconds() + o$9));k$o=new Date(new Date(+o$X[k7F - 1].DT).setMilliseconds(o$X[k7F - 1].DT.getMilliseconds() + o$9));if(k$o.getDate() != g8k.getDate() && T41.chart.market.isMarketDate(g8k)){o$9=null;J3F=B6E=W0I=0;}}}a6U=o$X[k7F][s0q];o_1=o$X[k7F].Volume;if(c$n && !o_1){o_1=1;}J3F+=o_1;P5e.D0J(1);B6E+=P5e.q7n(a6U,o_1);P5e.H6P(145);W0I+=P5e.q7n(o_1,a6U,a6U);if(!c$n && !J3F)continue;o$X[k7F]["_V " + E9j.name]=J3F;o$X[k7F]["_VxP " + E9j.name]=B6E;o$X[k7F]["_VxP2 " + E9j.name]=W0I;q6n=o$X[k7F][j4u + E9j.name]=Math.sqrt(Math.max(0,W0I / J3F - Math.pow(B6E / J3F,2)));P5e.D0J(14);v8t=o$X[k7F]["VWAP " + E9j.name]=P5e.S40(J3F,B6E);for(var a1o=1;a1o <= 3;a1o++){I1Z="-";I1Z+=" ";P5e.H6P(45);o$X[k7F]["SDVWAP" + a1o + "+ " + E9j.name]=P5e.S40(a1o,q6n,v8t);P5e.H6P(146);o$X[k7F]["SDVWAP" + a1o + I1Z + E9j.name]=P5e.S40(a1o,q6n,v8t);}G6v=!!({});}for(var L2t=1;L2t <= 3;L2t++){z6v="\u03C3";z6v+=")";if(E9j.inputs["Display " + L2t + " Standard Deviation (" + L2t + z6v]){i2l=" Sta";i2l+="ndard ";i2l+="Deviati";i2l+="on (";P5e.D0J(48);E9j.outputMap["SDVWAP" + L2t + "+ " + E9j.name]=P5e.S40("\u03C3)",L2t,i2l,L2t);P5e.H6P(48);E9j.outputMap["SDVWAP" + L2t + "- " + E9j.name]=P5e.S40("\u03C3)",L2t," Standard Deviation (",L2t);}}if(!c$n && !G6v){E9j.error="VWAP Requires Volume";}};i3L.Studies.initAnchoredVWAP=function(B7h,U1L,G3o,j_H,r7J,A7I){var B95,p$$,e89,W3l;B95="Anc";B95+="hor Ti";B95+="me";if(!G3o["Anchor Date"] && !G3o[B95]){var {dataSegment:Z65}=B7h.chart;for(var r1U=0;Z65 && r1U < Z65.length;r1U++){if(Z65[r1U]){p$$="YYYY";p$$+="-MM-dd";e89="Anch";e89+="or Date";var {DT:v_b}=Z65[r1U];G3o[e89]=i3L.dateToStr(v_b,p$$);G3o["Anchor Time"]=i3L.dateToStr(v_b,"HH:mm:ss");break;}}}W3l=i3L.Studies.initializeFN(B7h,U1L,G3o,j_H,r7J,A7I);P5e.a9S();return W3l;};i3L.Studies.displayVWAP=function(m0E,v8U,R4k){var A1r,S9C,x2T,r3q,u4K,D2z,H_q,Q47,c4q,z23;A1r="Display 1 Standard Deviati";A1r+="o";A1r+="n ";A1r+="(1\u03C3)";i3L.Studies.displaySeriesAsLine(m0E,v8U,R4k);S9C=v8U.inputs[A1r];x2T=v8U.inputs["Display 2 Standard Deviation (2\u03C3)"];r3q=v8U.inputs["Display 3 Standard Deviation (3\u03C3)"];if((S9C || x2T || r3q) && v8U.inputs.Shading){u4K="V";u4K+="W";u4K+="AP";u4K+=" ";D2z=m0E.panels[v8U.panel];H_q={opacity:v8U.parameters.opacity?v8U.parameters.opacity:0.2,skipTransform:D2z.name != v8U.chart.name,yAxis:v8U.getYAxis(m0E)};if(!v8U.highlight && m0E.highlightedDraggable){H_q.opacity*=0.3;}Q47=u4K + v8U.name;c4q="VWAP " + v8U.name;if(S9C){z23="S";z23+="D";z23+="VWAP1+ ";i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP1+ " + v8U.name,bottomBand:Q47,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP1+ " + v8U.name]])},H_q));i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP1- " + v8U.name,bottomBand:c4q,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP1- " + v8U.name]])},H_q));Q47=z23 + v8U.name;c4q="SDVWAP1- " + v8U.name;}if(x2T){i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP2+ " + v8U.name,bottomBand:Q47,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP2+ " + v8U.name]])},H_q));i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP2- " + v8U.name,bottomBand:c4q,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP2- " + v8U.name]])},H_q));Q47="SDVWAP2+ " + v8U.name;c4q="SDVWAP2- " + v8U.name;}if(r3q){i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP3+ " + v8U.name,bottomBand:Q47,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP3+ " + v8U.name]])},H_q));i3L.prepareChannelFill(m0E,i3L.extend({panelName:v8U.panel,topBand:"SDVWAP3- " + v8U.name,bottomBand:c4q,color:i3L.Studies.determineColor(v8U.outputs[v8U.outputMap["SDVWAP3- " + v8U.name]])},H_q));}}if(v8U.anchorHandle){i3L.Studies.displayAnchorHandleAndLine(m0E,v8U,R4k);}};i3L.Studies.studyLibrary=i3L.extend(i3L.Studies.studyLibrary,{AVWAP:{name:"Anchored VWAP",overlay:!!({}),calculateFN:i3L.Studies.calculateVWAP,seriesFN:i3L.Studies.displayVWAP,initializeFN:i3L.Studies.initAnchoredVWAP,removeFN:i3L.Studies.removeAnchorHandle,inputs:{Field:"field","Anchor Date":"","Anchor Time":"","Display 1 Standard Deviation (1\u03C3)":!({}),"Display 2 Standard Deviation (2\u03C3)":!({}),"Display 3 Standard Deviation (3\u03C3)":!"1",Shading:![],"Anchor Selector":!![]},outputs:{VWAP:"#FF0000","1 Standard Deviation (1\u03C3)":j3z,"2 Standard Deviation (2\u03C3)":"#85c99e","3 Standard Deviation (3\u03C3)":r5I},parameters:{init:{opacity:0.2}},attributes:{"Anchor Date":{placeholder:"yyyy-mm-dd"},"Anchor Time":{placeholder:n2A,step:1}}},VWAP:{name:F2y,overlay:!!"1",calculateFN:i3L.Studies.calculateVWAP,seriesFN:i3L.Studies.displayVWAP,inputs:{"Display 1 Standard Deviation (1\u03C3)":!({}),"Display 2 Standard Deviation (2\u03C3)":!1,"Display 3 Standard Deviation (3\u03C3)":!({}),Shading:!({})},outputs:{VWAP:A_t,"1 Standard Deviation (1\u03C3)":"#e1e1e1","2 Standard Deviation (2\u03C3)":m3Z,"3 Standard Deviation (3\u03C3)":"#fff69e"},parameters:{init:{opacity:0.2}}}});}};b$=w_y=>{var i4L=A2IFV;i4L.D0H();var n1m;n1m=typeof _CIQ !== "undefined"?_CIQ:w_y.CIQ;if(!n1m.Studies){console.error("zigzag feature requires first activating studies feature.");}else {n1m.Studies.calculateZigZag=function(t9F,d8T){var b6K,l6_,r0c,z3Y,s92,a3f,Y3A,H37,r44,B_8,N8z,i6o,N$9,H$L,O8W,I5K,F6p,J0u,Z$9,S7u,N8a,u$Y;b6K="H";b6K+="i";b6K+="g";function O60(t8T,h$L){var f55;for(var T$z=t8T + 1;T$z < h$L;T$z++){f55="R";f55+="es";f55+="ul";f55+="t ";r0c[T$z]["ShadowResult " + d8T.name]=(r0c[h$L][f55 + d8T.name] - r0c[t8T]["Result " + d8T.name]) * (T$z - t8T) / (h$L - t8T) + r0c[t8T]["Result " + d8T.name];delete r0c[T$z]["Result " + d8T.name];}}b6K+="h";l6_="L";l6_+="o";l6_+="w";r0c=d8T.chart.scrubbed;if(!r0c || !r0c.length){return;}z3Y=d8T.highLowChart;s92=null;a3f=null;Y3A=d8T.inputs["Distance(%)"];H37=0;r44=0;B_8=0;N8z=null;i6o=null;N$9=0;for(var N5H=Math.min(r0c.length - 1,d8T.startFrom);N5H >= 0;N5H--){H$L="_sta";H$L+="t";H$L+="e ";N$9=N5H;if(r0c[N5H][H$L + d8T.name]){O8W=r0c[N5H]["_state " + d8T.name];s92=O8W[0];a3f=O8W[1];H37=O8W[+"2"];r44=O8W[3];B_8=O8W[4];N8z=O8W[+"5"];i6o=O8W[6];break;}}for(var P_X=N$9;P_X < r0c.length;P_X++){I5K=r0c[P_X][z3Y?"High":"Close"];F6p=r0c[P_X][z3Y?"Low":"Close"];if(a3f === null || a3f < I5K){a3f=I5K;if(H37 < 0){s92=F6p;}i4L.D0J(147);N8z=i4L.q7n(100,Y3A,a3f,1);if(H37 > -1){if(i6o !== null && a3f > i6o){J0u="L";J0u+="o";J0u+="w";Z$9="Resu";Z$9+="lt ";r0c[r44][Z$9 + d8T.name]=r0c[r44][z3Y?J0u:"Close"];O60(B_8,r44);H37=-1;s92=F6p;B_8=r44;r44=P_X;continue;}}else {r44=P_X;}}if(s92 === null || s92 > F6p){s92=F6p;if(H37 > ("0" ^ 0)){a3f=I5K;}i4L.D0J(148);i6o=i4L.S40(Y3A,1,s92,100);if(H37 < +"1"){if(N8z !== null && s92 < N8z){r0c[r44]["Result " + d8T.name]=r0c[r44][z3Y?"High":"Close"];O60(B_8,r44);H37=1;a3f=I5K;B_8=r44;r44=P_X;continue;}}else {r44=P_X;}}}r0c[r44]["Result " + d8T.name]=r0c[r44][z3Y?H37 == 1?l6_:b6K:"Close"];r0c[r44]["_state " + d8T.name]=[s92,a3f,H37,r44,B_8,N8z,i6o];O60(B_8,r44);i4L.H6P(52);var O9y=i4L.q7n(59,3,20);S7u=r0c.length - O9y;while(S7u > r44){if(r0c[S7u].Close || r0c[S7u].Close === 0){N8a="Hi";N8a+="g";N8a+="h";u$Y="Resul";u$Y+="t";u$Y+=" ";r0c[S7u][u$Y + d8T.name]=r0c[S7u][z3Y?H37 == 1?N8a:"Low":"Close"];break;}S7u--;}i4L.a9S();O60(r44,S7u);};n1m.Studies.displayZigZag=function(F4Q,P3b,s7t){var c8Q,Q8i,Q_Y,b7l,P7l,b0C,H5t,F7Z,Y3n;c8Q=F4Q.chart.highLowBars;if(P3b.highLowChart != c8Q){P3b.highLowChart=c8Q;P3b.startFrom=0;P3b.study.calculateFN(F4Q,P3b);}Q8i=F4Q.chart;for(var F2z=0;F2z < s7t.length;F2z++){Q_Y=s7t[F2z];if(Q_Y){b7l="R";b7l+="esult ";if(Q_Y["_shadowCopy " + P3b.name]){delete Q_Y["Result " + P3b.name];delete Q_Y["_shadowCopy " + P3b.name];}if(!Q_Y[b7l + P3b.name]){P7l="R";P7l+="esul";P7l+="t";P7l+=" ";if(Q_Y.transform){delete Q_Y.transform[P7l + P3b.name];}}}}b0C=s7t[0];i4L.H6P(149);var x$H=i4L.S40(19,18,7,34,9);H5t=s7t[s7t.length - x$H];if(b0C && b0C["ShadowResult " + P3b.name]){F7Z="ShadowRe";F7Z+="su";F7Z+="l";F7Z+="t ";b0C["Result " + P3b.name]=b0C[F7Z + P3b.name];if(b0C.transform){b0C.transform["Result " + P3b.name]=Q8i.transformFunc(F4Q,Q8i,b0C["ShadowResult " + P3b.name]);}i4L.H6P(1);b0C["_shadowCopy " + P3b.name]=i4L.q7n(1,"1");}if(H5t && H5t["ShadowResult " + P3b.name]){Y3n="Re";Y3n+="sul";Y3n+="t ";H5t[Y3n + P3b.name]=H5t["ShadowResult " + P3b.name];if(H5t.transform){H5t.transform["Result " + P3b.name]=Q8i.transformFunc(F4Q,Q8i,H5t["ShadowResult " + P3b.name]);}H5t["_shadowCopy " + P3b.name]=1;}n1m.Studies.displaySeriesAsLine(F4Q,P3b,s7t);};n1m.Studies.studyLibrary=n1m.extend(n1m.Studies.studyLibrary,{ZigZag:{name:"ZigZag",overlay:!![],seriesFN:n1m.Studies.displayZigZag,calculateFN:n1m.Studies.calculateZigZag,inputs:{"Distance(%)":10},parameters:{init:{label:!1}},attributes:{"Distance(%)":{min:0.1,step:0.1}}}});}};A1={CIQ:y4,SplinePlotter:l5,timezoneJS:R$,$$:L9,$$$:G8};export {Z as createEngine};export {Q as customCharts};export {q as drawing};export {A as easeMachine};export {G as equations};export {g as i18n};export {K as interaction};export {M as markers};export {B as market};export {J as movement};export {P as nameValueStore};export {T as quoteFeed};export {W as series};export {U as share};export {R as span};export {D as storage};export {N as studies};export {L0 as symbolLookupBase};export {W_ as theme};export {f9 as timezone};export {o8 as touch};export {d7 as visualization};export {m1 as medianPrice};export {k4 as momentum};export {C1 as priceRelative};export {t_ as vwap};export {b$ as zigzag};export {y4 as CIQ, l5 as SplinePlotter, R$ as timezoneJS, L9 as $$, G8 as $$$};if(typeof __TREE_SHAKE__ === Z9Rgz || !__TREE_SHAKE__){A1.CIQ.activateImports(Z,Q,q,A,G,g,K,M,B,J,P,T,W,U,R,D,N,L0,W_,f9,o8,d7,m1,k4,C1,t_,b$,null);}/* eslint-enable */ /* jshint ignore:end */ /* ignore jslint end */
diff --git a/package-lock.json b/package-lock.json
index 59d3d7bf15..3fe55ca5e2 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@deriv/deriv-charts",
- "version": "1.1.7",
+ "version": "1.1.8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@deriv/deriv-charts",
- "version": "1.1.7",
+ "version": "1.1.8",
"license": "ISC",
"dependencies": {
"@welldone-software/why-did-you-render": "^3.3.8",
@@ -11098,6 +11098,21 @@
"node": ">=8"
}
},
+ "node_modules/i18n": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/i18n/-/i18n-0.5.0.tgz",
+ "integrity": "sha512-HPvM9K2HhLXJGnMEt1dwwV7XVDPv0lwCCOpsI2wa8fwYiVsp82PxDr7tmvQvu5eESyMj1M0ljCQvYgXq3PlpKg==",
+ "dev": true,
+ "peer": true,
+ "dependencies": {
+ "debug": "*",
+ "mustache": "*",
+ "sprintf": ">=0.1.1"
+ },
+ "engines": {
+ "node": ">=0.8.0"
+ }
+ },
"node_modules/iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -14703,6 +14718,16 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/mustache": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz",
+ "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",
+ "dev": true,
+ "peer": true,
+ "bin": {
+ "mustache": "bin/mustache"
+ }
+ },
"node_modules/nan": {
"version": "2.14.1",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz",
@@ -19645,6 +19670,17 @@
"xtend": ">=4.0.0 <4.1.0-0"
}
},
+ "node_modules/sprintf": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/sprintf/-/sprintf-0.1.5.tgz",
+ "integrity": "sha512-4X5KsuXFQ7f+d7Y+bi4qSb6eI+YoifDTGr0MQJXRoYO7BO7evfRCjds6kk3z7l5CiJYxgDN1x5Er4WiyCt+zTQ==",
+ "deprecated": "The sprintf package is deprecated in favor of sprintf-js.",
+ "dev": true,
+ "peer": true,
+ "engines": {
+ "node": ">=0.2.4"
+ }
+ },
"node_modules/sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
@@ -32536,6 +32572,18 @@
}
}
},
+ "i18n": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/i18n/-/i18n-0.5.0.tgz",
+ "integrity": "sha512-HPvM9K2HhLXJGnMEt1dwwV7XVDPv0lwCCOpsI2wa8fwYiVsp82PxDr7tmvQvu5eESyMj1M0ljCQvYgXq3PlpKg==",
+ "dev": true,
+ "peer": true,
+ "requires": {
+ "debug": "*",
+ "mustache": "*",
+ "sprintf": ">=0.1.1"
+ }
+ },
"iconv-lite": {
"version": "0.4.24",
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
@@ -35283,6 +35331,13 @@
"minimatch": "^3.0.4"
}
},
+ "mustache": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz",
+ "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==",
+ "dev": true,
+ "peer": true
+ },
"nan": {
"version": "2.14.1",
"resolved": "https://registry.npmjs.org/nan/-/nan-2.14.1.tgz",
@@ -39400,6 +39455,13 @@
}
}
},
+ "sprintf": {
+ "version": "0.1.5",
+ "resolved": "https://registry.npmjs.org/sprintf/-/sprintf-0.1.5.tgz",
+ "integrity": "sha512-4X5KsuXFQ7f+d7Y+bi4qSb6eI+YoifDTGr0MQJXRoYO7BO7evfRCjds6kk3z7l5CiJYxgDN1x5Er4WiyCt+zTQ==",
+ "dev": true,
+ "peer": true
+ },
"sprintf-js": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
diff --git a/package.json b/package.json
index dc4f6df94a..ee2e311b9a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@deriv/deriv-charts",
- "version": "1.1.7",
+ "version": "1.1.8",
"main": "dist/smartcharts.js",
"author": "amin@binary.com",
"contributors": [