jh-componentj 0.2.3 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- /*! TVJS Std Extension Pack - v0.2.2 - Sat Nov 30 2024
1
+ /*! TVJS Std Extension Pack - v0.2.4 - Sat Nov 30 2024
2
2
  https://github.com/tvjsx/tvjs-xp
3
3
  Copyright (c) 2020 c451 Code's All Right;
4
4
  Licensed under the MIT license */
5
- !function(t,e){t["trading-vue-js"]||(t["trading-vue-js"]=t.TradingVueJs),t.vue||(t.vue=t.Vue),"object"==typeof exports&&"object"==typeof module?module.exports=e(require("trading-vue-js"),require("vue")):"function"==typeof define&&define.amd?define(["trading-vue-js","vue"],e):"object"==typeof exports?exports.TvjsXP=e(require("trading-vue-js"),require("vue")):t.TvjsXP=e(t["trading-vue-js"],t.vue)}(self,((t,e)=>(()=>{var n={364:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-std-input {\n margin: 5px;\n background-color: #161b27;\n border: 1px dotted #353940;\n height: 22px;\n border-radius: 3px;\n padding: 2px 0px 3px 10px;\n color: whitesmoke;\n font-size: 1.2em;\n outline: none;\n width: 100px;\n}\nselect.tvjs-std-input {\n height: 29px;\n -moz-appearance: none;\n}\nselect.tvjs-std-input {\n display: none; /*hide original SELECT element: */\n}\n.tvjs-std-input::placeholder {\n color: #8e909a;\n opacity: 0.25;\n}\n",""]),t.exports=e},120:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-x-window {\n position: absolute;\n background: #1b202def;\n border-radius: 3px;\n pointer-events: all;\n padding-left: 7px;\n z-index: 100;\n color: #dedddd;\n}\n.tvjs-x-window-head {\n font-size: 2em;\n user-select: none;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: center;\n align-items: center;\n height: 36px;\n padding: 10px;\n cursor: grab;\n}\n.tvjs-x-window-body {\n padding: 10px;\n font-size: 1.1em;\n}\n.tvjs-x-window-title {\n width: 300px;\n user-select: none;\n}\n.tvjs-x-window-close {\n width: 26px;\n cursor: pointer;\n margin: -1em;\n padding: 1em;\n font-size: 0.75em;\n}\n",""]),t.exports=e},75:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.h-splitter[data-v-868dc3e2] {\n position: absolute;\n left: 0;\n height: 5px;\n margin-top: -2px;\n width: 100%;\n z-index: 1;\n background-color: #3ee4afb5;\n opacity: 0;\n pointer-events: all;\n}\n.h-splitter[data-v-868dc3e2]:hover {\n cursor: row-resize;\n opacity: 1;\n}\n",""]),t.exports=e},844:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-x-window.add-win[data-v-2ed555ae] {\n padding-bottom: 30px;\n border: 1px solid #80808011;\n}\n.add-win-list[data-v-2ed555ae] {\n height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n user-select: none;\n}\n/* Hide scrollbar for Chrome, Safari and Opera */\n.add-win-list[data-v-2ed555ae]::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.add-win-list[data-v-2ed555ae] {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.add-win-item[data-v-2ed555ae] {\n color: #ffffff88;\n width: 100%;\n padding: 5px;\n cursor: pointer;\n}\n.add-win-item[data-v-2ed555ae]:hover {\n background: #88888822;\n color: #ffffffff;\n}\n.add-win-item-desc[data-v-2ed555ae] {\n color: #ffffff33;\n margin-left: 3px;\n}\n.add-win-item:hover .add-win-item-desc[data-v-2ed555ae] {\n color: #ffffff44;\n}\n.add-win-empty[data-v-2ed555ae] {\n opacity: 0.5;\n}\n",""]),t.exports=e},604:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-x-window.sett-win[data-v-182fbb4f] {\n padding-bottom: 30px;\n border: 1px solid #80808011;\n}\n.sett-win-item[data-v-182fbb4f] {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: center;\n align-items: center;\n}\n.sett-win-item label[data-v-182fbb4f] {\n min-width: 80px;\n color: #35a776;\n}\n.sett-win-empty[data-v-182fbb4f] {\n opacity: 0.5;\n}\n",""]),t.exports=e},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(o=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(d," */")),s=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(s).concat([i]).join("\n")}var o,a,d;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<t.length;a++){var d=[].concat(t[a]);r&&i[d[0]]||(n&&(d[2]?d[2]="".concat(n," and ").concat(d[2]):d[2]=n),e.push(d))}},e}},289:(t,e,n)=>{var r=n(364);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("5af204ff",r,!1,{})},353:(t,e,n)=>{var r=n(120);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("6d7a7200",r,!1,{})},754:(t,e,n)=>{var r=n(75);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("7abbfe46",r,!1,{})},735:(t,e,n)=>{var r=n(844);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("6131f4ea",r,!1,{})},429:(t,e,n)=>{var r=n(604);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("1561d58a",r,!1,{})},534:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var s=e[i],o=s[0],a={id:t+":"+i,css:s[1],media:s[2],sourceMap:s[3]};r[o]?r[o].parts.push(a):n.push(r[o]={id:o,parts:[a]})}return n}n.d(e,{A:()=>v});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var s={},o=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,d=0,u=!1,c=function(){},l=null,f="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,e,n,i){u=n,l=i||{};var o=r(t,e);return p(o),function(e){for(var n=[],i=0;i<o.length;i++){var a=o[i];(d=s[a.id]).refs--,n.push(d)}e?p(o=r(t,e)):o=[];for(i=0;i<n.length;i++){var d;if(0===(d=n[i]).refs){for(var u=0;u<d.parts.length;u++)d.parts[u]();delete s[d.id]}}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e],r=s[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(m(n.parts[i]));s[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var t=document.createElement("style");return t.type="text/css",o.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+f+'~="'+t.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(h){var i=d++;r=a||(a=g()),e=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=g(),e=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,w=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=w(e,i);else{var s=document.createTextNode(i),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(s,o[e]):t.appendChild(s)}}function _(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),l.ssrId&&t.setAttribute(f,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},724:e=>{"use strict";e.exports=t},380:t=>{"use strict";t.exports=e}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var s=r[t]={id:t,exports:{}};return n[t](s,s.exports,i),s.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,o(r.key),r)}}function d(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}i.r(s),i.d(s,{default:()=>F});const u=new(d((function t(){n(this,t),this.__id__=Math.random()})));function c(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,s=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const f=function(t,e){var n=JSON.parse(JSON.stringify(t));return Object.assign(n,e)},h=function(t,e){var n,r=[],i=c(e);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.includes(s)||r.push(s)}}catch(t){i.e(t)}finally{i.f()}return r};function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return p(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,s=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var g=function(){return d((function t(e,r,i){n(this,t),i.use_window?(window.xchartlink$||(window.xchartlink$={}),this.shared=window.xchartlink$):this.shared=u,this.tv=e,this.dc=r,this.sett=i,this.targets={},this.onsettings({"chart-link":i})}),[{key:"onsettings",value:function(t){var e=this;clearTimeout(this.reset_id),this.sett=t["chart-link"],this.shared.rules||(this.shared.rules={},this.shared.refs={},this.shared.meta={});var n=document.getElementById(this.tv.id);this.sett.rules&&n&&(this.shared.rules[this.tv.id]=this.sett.rules),this.shared.refs[this.tv.id]=this.tv,this.combine(),this.reset_id=setTimeout((function(){return e.reset()}))}},{key:"combine",value:function(){for(var t in this.shared.combined={},this.shared.rules)for(var e in this.shared.rules[t])this.shared.combined[e]=this.shared.rules[t][e]}},{key:"compile",value:function(){var t=e(document.getElementsByClassName("trading-vue"));this.targets={};var n,r=v(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.id!==this.tv.id&&(this.targets[i.id]={})}}catch(t){r.e(t)}finally{r.f()}var s,o=v(this.rank(this.shared.combined));try{for(o.s();!(s=o.n()).done;){var a=s.value,d=a.pair[1];if("*"===d&&(d=Object.keys(this.targets)),Array.isArray(d)){var u,c=v(d);try{for(c.s();!(u=c.n()).done;){var l=u.value;l in this.targets&&Object.assign(this.targets[l],a.r)}}catch(t){c.e(t)}finally{c.f()}}else{if(!(d in this.targets))continue;Object.assign(this.targets[d],a.r)}}}catch(t){o.e(t)}finally{o.f()}}},{key:"rank",value:function(t){var e=[];for(var n in t){var r=this.splitr(n);if(this.matches(r[0])){if("*"===r[0])var i=20;else i=Array.isArray(r[0])?10:0;"*"===r[1]?i+=2:Array.isArray(r[1])?i+=1:i+=0,e.push({pair:r,rank:i,r:t[n]})}}return e.sort((function(t,e){return e.rank-t.rank}))}},{key:"matches",value:function(t){return"*"===t||t===this.tv.id||Array.isArray(t)&&t.includes(this.tv.id)}},{key:"splitr",value:function(t){return"*"===t.trim()?["*","*"]:t.split("->").map((function(t){var e=t.split(",");return e.length>1?e.map((function(t){return t.trim()})):t.trim()}))}},{key:"reset",value:function(){var t=this;this.compile(),this.tv.$refs.chart.hooks("xchanged"),this.tv.$watch((function(e){return t.dc.get(".").filter((function(t){return t.settings.$state}))}),this.ontools.bind(this))}},{key:"update",value:function(t){switch(t.event){case"?x-changed":var e=t.args[0];if(e.preventDefault)return;var n=this.tv.$refs.chart._layout.grids[e.grid_id],r=this.tv.$refs.chart.cursor;for(var i in e.t=r.t,e.$=r.y$,this.targets){var s=this.targets[i].cursor;if(s){var o=this.shared.refs[i],a=o.$refs.chart._layout.grids[0],d=this.isX(s),u=a.id===n.id&&this.isY(s),c={preventDefault:!0,x:d?a.t2screen(e.t):-10,y:u?a.$2screen(e.$):-10,grid_id:0};o.$refs.chart.cursor_changed(c),o.$refs.chart.cursor.t=d?e.t:-10,o.$refs.chart.cursor.y$=u?e.$:-10}}break;case"range-changed":var l=(new Date).getTime(),f=this.shared.meta[this.tv.id];if(f&&f.position&&f.position.lock>l)return;var h=t.args[0];for(var i in this.targets){var v=this.targets[i].position,p=this.shared.refs[i],g=this.isX(v);this.isY(v);this.shared.meta[i]||(this.shared.meta[i]={}),this.shared.meta[i].position={lock:l+100},g&&p.goto(h[1])}}}},{key:"ontools",value:function(t,e){var n=this,r=h(t.map((function(t){return t.settings.$uuid})),e.map((function(t){return t.settings.$uuid}))),i=(new Date).getTime(),s=this.shared.meta[this.tv.id];if(!(s&&s.tools&&s.tools.lock>i)){var o=function(){var e=n.targets[a].tools,s=n.shared.refs[a];e&&(n.shared.meta[a]||(n.shared.meta[a]={}),n.shared.meta[a].tools={lock:i+100},n.copy_tools(t,s),r.forEach((function(t){return s.data.del("".concat(t))})))};for(var a in this.targets)o()}}},{key:"copy_tools",value:function(t,e){var n,r=v(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.id.includes("offchart")){var s=i.settings.$uuid,o=e.data.get_one("".concat(s));if(o){e.$set(o,"settings",f(i.settings,{$selected:!1,$state:"finished"}));var a,d=v(e.$refs.chart.$refs.sec[0].$refs.grid.$children.filter((function(t){return t.tool})));try{for(d.s();!(a=d.n()).done;){a.value.pins.forEach((function(t){return t.re_init()}))}}catch(t){d.e(t)}finally{d.f()}}else{var u=f(i);u.settings.$selected=!1,u.settings.$state="finished",e.data.add("onchart",u)}}}}catch(t){r.e(t)}finally{r.f()}}},{key:"isX",value:function(t){return!0===t||"string"==typeof t&&t.includes("X")}},{key:"isY",value:function(t){return!0===t||"string"==typeof t&&t.includes("Y")}}])}();g.__name__="chart-link";const m={widgets:{},components:{},overlays:{},colorpacks:{},skins:{},Main:g};var y=i(724),w=i(380),b=i.n(w),_=function(){var t=this;return(0,t._self._c)("span",{staticClass:"h-splitter",style:t.hs_style,on:{mousedown:t.hs_mousedown}})};_._withStripped=!0;const x=function(t,e){var n=document.getElementById(t);n&&n.parentNode.removeChild(n);var r=document.createElement("style");r.setAttribute("id",t),r.innerHTML=e,document.body.appendChild(r)},$=function(t,e){var n=document.getElementById(t);n&&n.parentNode.removeChild(n)},k={name:"Splitter",props:["id","main","dc","tv","data"],mounted:function(){this.MIN_HEIGHT=this.data.sett.min_height||20},methods:{hs_mousedown:function(t){this.drag={type:"hs",y:t.clientY,h1:this.data.grid1.height,h2:this.data.grid2.height},x("disable-user-select","body * {\n user-select: none;\n }\n .trading-vue-chart {\n pointer-events: none;\n }")},hs_mouseup:function(t){this.drag=null,$("disable-user-select")},hs_mousemove:function(t){if(this.drag){var e=t.clientY-this.drag.y,n=this.drag.h1+e,r=this.drag.h2-e;n>this.MIN_HEIGHT&&r>this.MIN_HEIGHT&&(this.data.grid1.height=n,this.data.grid2.height=r),this.main.calc_heights()}},hs_mouseleave:function(t){this.drag=null,$("disable-user-select")}},computed:{hs_style:function(){return{drag:null,top:this.data.grid2.offset+"px"}}}};i(754);function S(t,e,n,r,i,s,o,a){var d,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),s&&(u._scopeId="data-v-"+s),o?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=d):i&&(d=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),d)if(u.functional){u._injectStyles=d;var c=u.render;u.render=function(t,e){return d.call(e),c(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,d):[d]}return{exports:t,options:u}}const j=S(k,_,[],!1,null,"868dc3e2",null).exports;function A(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return C(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,s=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var I=function(){return d((function t(e,r,i){var s=this;n(this,t),this.widgets={},this.tv=e,this.dc=r,this.sett=i,setTimeout((function(){s.tv.$el.addEventListener("mousemove",s.onmousemove.bind(s)),s.tv.$el.addEventListener("mouseup",s.onmouseup.bind(s)),s.tv.$el.addEventListener("mouseleave",s.onmouseleave.bind(s)),s.place_splitters(),s.calc_heights(),s.tv.$watch((function(t){return s.dc.get(".").map((function(t){return t.id}))}),s.ongrids.bind(s))}))}),[{key:"update",value:function(t){t.event}},{key:"onsettings",value:function(t){}},{key:"ongrids",value:function(){var t=this;setTimeout((function(){t.remove_widgets(),t.place_splitters()}))}},{key:"onmousemove",value:function(t){var e,n=this,r=A(this.tv.$refs.widgets.$children.filter((function(t){return t.main===n})));try{for(r.s();!(e=r.n()).done;){e.value.hs_mousemove(t)}}catch(t){r.e(t)}finally{r.f()}}},{key:"onmouseup",value:function(t){var e,n=this,r=A(this.tv.$refs.widgets.$children.filter((function(t){return t.main===n})));try{for(r.s();!(e=r.n()).done;){e.value.hs_mouseup(t)}}catch(t){r.e(t)}finally{r.f()}}},{key:"onmouseleave",value:function(t){var e,n=this,r=A(this.tv.$refs.widgets.$children.filter((function(t){return t.main===n})));try{for(r.s();!(e=r.n()).done;){e.value.hs_mouseleave(t)}}catch(t){r.e(t)}finally{r.f()}}},{key:"place_splitters",value:function(){for(var t=this.tv.$refs.chart._layout.grids,e=1;e<t.length;e++){var n=t[e-1],r=t[e],i="Splitter-".concat(n.id,"-").concat(r.id,"-").concat(y.Utils.uuid2());b().set(this.widgets,i,{id:i,cls:j,data:{grid1:n,grid2:r,sett:this.sett}})}}},{key:"calc_heights",value:function(){var t,e=[],n=A(this.tv.$refs.chart._layout.grids);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push(r.height)}}catch(t){n.e(t)}finally{n.f()}var i=e.reduce((function(t,e){return t+e}),0);e=e.map((function(t){return t/i})),this.grid_ovs().forEach((function(t,n){t.grid||b().set(t,"grid",{}),b().set(t.grid,"height",e[n]||1)}))}},{key:"grid_ovs",value:function(){var t,e=[this.dc.data.chart],n=A(this.dc.data.offchart);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.grid&&void 0!==r.grid.id||e.push(r)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"remove_widgets",value:function(){for(var t in this.widgets)this.tv.$delete(this.widgets,t)}},{key:"destroy",value:function(){this.tv.$el.removeEventListener("mousemove",this.onmousemove),this.tv.$el.removeEventListener("mouseup",this.mouseup),this.tv.$el.removeEventListener("mouseleave",this.mouseleave)}}])}();I.__name__="grid-resize";const E={widgets:{},components:{},overlays:{},colorpacks:{},skins:{},Main:I};var T=function(){var t=this,e=t._self._c;return e("window",{staticClass:"add-win",attrs:{title:"Add Overlay",tv:t.tv},on:{close:t.on_close}},[e("div",{staticClass:"add-win-list"},t._l(t.ovs,(function(n){return e("div",{staticClass:"add-win-item",on:{click:function(e){return t.on_click(n.name)}}},[e("span",[t._v(t._s(n.name))]),t._v(" "),e("span",{staticClass:"add-win-item-desc"},[t._v("\n "+t._s(n.methods.meta_info().desc)+"\n ")])])})),0)])};T._withStripped=!0;var M=function(){var t=this,e=t._self._c;return e("div",{ref:"win",staticClass:"tvjs-x-window",style:t.style},[e("div",{staticClass:"tvjs-x-window-head"},[e("div",{staticClass:"tvjs-x-window-title",on:{mousedown:t.onMouseDown}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),e("div",{staticClass:"tvjs-x-window-close",on:{click:function(e){return t.$emit("close")}}},[t._v("\n ╳\n ")])]),t._v(" "),e("div",{staticClass:"tvjs-x-window-body"},[t._t("default")],2)])};M._withStripped=!0;const O={name:"Window",mixins:[{methods:{onMouseDown:function(t){(t=t||window.event).preventDefault(),this.drag.offset_x=t.clientX-this.x,this.drag.offset_y=t.clientY-this.y,document.onmouseup=this.stopdrag,document.onmousemove=this.ondrag},ondrag:function(t){(t=t||window.event).preventDefault(),this.x=t.clientX-this.drag.offset_x,this.y=t.clientY-this.drag.offset_y},stopdrag:function(){document.onmouseup=null,document.onmousemove=null}},data:function(){return{drag:{offset_x:0,offset_y:0}}}}],props:["title","tv"],mounted:function(){this.ww=this.$refs.win.clientWidth,this.wh=this.$refs.win.clientHeight,this.x=.5*this.tvw-.5*this.ww,this.y=.5*this.tvh-.5*this.wh},computed:{style:function(){return{top:"".concat(this.y,"px"),left:"".concat(this.x,"px")}},tvw:function(){return this.$props.tv.width},tvh:function(){return this.$props.tv.height}},data:function(){return{ww:0,wh:0,x:0,y:0}}};i(353);const N=S(O,M,[],!1,null,null,null).exports,U={name:"AddWin",props:["id","main","dc","tv","data"],components:{Window:N},mounted:function(){},methods:{on_close:function(){this.$props.main.remove_widget(this.$props.id)},on_click:function(t){this.on_close(),this.main.add_overlay({side:this.data.type,index:this.data.index,type:t})}},computed:{sett:function(){return this.$props.data.ov.settings}},data:function(){return{ovs:this.tv.overlays.filter((function(t){return t.methods.calc}))}}};i(735);const L=S(U,T,[],!1,null,"2ed555ae",null).exports;function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return R(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,s=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var W=function(){return d((function t(e,r,i){n(this,t),console.log(r,"usydfufgysdguydsguy"),this.widgets={},this.tv=e,this.dc=r,this.sett=i}),[{key:"update",value:function(t){if("legend-button-click"===t.event)this.onbutton(t.args[0])}},{key:"onbutton",value:function(t){var e=this.dc.get(t.type)[t.dataIndex],n=this.dc.data.onchart,r=this.dc.data.offchart;if(console.log(t.button),e)switch(t.button){case"display":if(void 0===e.settings.display)var i=!1;else i=!e.settings.display;this.tv.$set(e.settings,"display",i);break;case"up":if("offchart"===t.type)if(0===t.dataIndex)r.splice(t.dataIndex,1),n.push(e);else{var s=r,o=t.dataIndex,a=t.dataIndex-1;s[o]=s.splice(a,1,s[o])[0]}this.dc.update_ids();break;case"down":if("onchart"===t.type){var d=this.avg_grid_h(r);n.splice(t.dataIndex,1),r.unshift(e),this.tv.$set(e,"grid",{height:d})}else{var u=r.length,c=r;if(t.dataIndex<u-1){var l=t.dataIndex,f=t.dataIndex+1;c[l]=c.splice(f,1,c[l])[0]}}this.dc.update_ids();break;case"add":try{var h="AddWin-".concat(y.Utils.uuid2()),v=this.dc.data[t.type][t.dataIndex],p=Object.values(this.widgets).find((function(t){return t.data.ov===v}));if(console.log(" ov data",v),p){this.tv.$delete(this.widgets,p.id);break}this.tv.$set(this.widgets,h,{id:h,cls:L,data:{ov:v,type:t.type,index:t.dataIndex}})}catch(t){console.log(t)}break;case"remove":this.dc.data[t.type].splice(t.dataIndex,1),this.dc.update_ids()}}},{key:"add_overlay",value:function(t){var e=this.get_preset(t.type)||{};e.side&&(t.side=e.side);var n=this.dc.data.onchart,r=this.dc.data.offchart;if("onchart"===t.side)n.splice(t.index+1,0,{name:e.name,type:t.type,data:[],settings:e.settings||{}});else{var i=this.avg_grid_h(r);r.splice(t.index+1,0,{name:e.name,type:t.type,data:[],settings:e.settings||{},grid:{height:i}})}this.dc.update_ids()}},{key:"get_preset",value:function(t){var e=this.tv.overlays.find((function(e){return e.name===t}));if(e&&e.methods.meta_info)return e.methods.meta_info().preset}},{key:"onsettings",value:function(t){}},{key:"avg_grid_h",value:function(t){if(!t.length)return.25;var e,n=0,r=P(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.grid&&"number"==typeof i.grid.height&&(n+=i.grid.height)}}catch(t){r.e(t)}finally{r.f()}return n/t.length}},{key:"remove_widget",value:function(t){this.tv.$delete(this.widgets,t)}},{key:"destroy",value:function(){}}])}();W.__name__="legend-buttons";const z={widgets:{},components:{},overlays:{},colorpacks:{},skins:{},Main:W};var D=function(){var t=this,e=t._self._c;return e("window",{staticClass:"sett-win",attrs:{title:t.data.ov.name,tv:t.tv},on:{close:t.on_close}},[t._l(t.settlist,(function(n){return e("div",{staticClass:"sett-win-item"},[e("label",[t._v(t._s(t.s2d(n)))]),t._v(" "),e("std-input",{attrs:{value:t.sett[n]},on:{input:function(e){return t.update_sett(n,e)}}})],1)})),t._v(" "),t.settlist.length?t._e():e("span",{staticClass:"sett-win-empty"},[e("i",[t._v("No script settings")])])],2)};D._withStripped=!0;var H=function(){var t=this,e=t._self._c;return e("span",["text"!==t.type&&t.type?"select"===t.type?e("select",{staticClass:"tvjs-std-input",style:t.style,domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}},t._l(t.list,(function(n){return e("option",[t._v(t._s(n))])})),0):t._e():e("input",{staticClass:"tvjs-std-input",style:t.style,attrs:{placeholder:t.name},domProps:{value:t.value},on:{change:function(e){return t.$emit("change",e.target.value)},input:function(e){return t.$emit("input",e.target.value)}}})])};H._withStripped=!0;const X={name:"StdInput",props:["value","name","type","list","colors"],methods:{},computed:{style:function(){return{}}},data:function(){return{}}};i(289);const B=S(X,H,[],!1,null,null,null).exports,Y=function(t){var e=(t=(t=t.replace(/([^A-Z])([A-Z])/g,"$1 $2")).replace(/-|_/g," ")).split(" ");return(e=e.filter((function(t){return t.length})).map((function(t){return e=t,n=0,r=t[0].toUpperCase(),n>e.length-1?e:e.substring(0,n)+r+e.substring(n+1);var e,n,r}))).join(" ")},q={name:"SettingsWin",props:["id","main","dc","tv","data"],components:{Window:N,StdInput:B},mounted:function(){},methods:{s2d:function(t){return Y(t)},on_close:function(){this.$props.main.remove_widget(this.$props.id)},update_sett:function(t,e){var n,r,i,s=this.$props.data.ov.id,a=parseFloat(e);a!=a&&(a=e),this.$props.dc.merge("".concat(s,".settings"),(n={},i=a,(r=o(r=t))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))}},computed:{sett:function(){return this.$props.data.ov.settings},settlist:function(){var t=this;return Object.keys(this.sett).filter((function(e){return"$"!==e[0]&&t.sett.$props&&t.sett.$props.includes(e)}))}}};i(429);const G=S(q,D,[],!1,null,"182fbb4f",null).exports;var J=function(){return d((function t(e,r){n(this,t),this.widgets={},this.tv=e,this.dc=r}),[{key:"update",value:function(t){switch(t.event){case"legend-button-click":var e="SettingsWin-".concat(y.Utils.uuid2()),n=t.args[0];if("settings"!==n.button)break;try{var r=this.dc.data[n.type][n.dataIndex],i=Object.values(this.widgets).find((function(t){return t.data.ov===r}));if(i){this.tv.$delete(this.widgets,i.id);break}this.tv.$set(this.widgets,e,{id:e,cls:G,data:{ov:r}})}catch(t){console.log(t)}}}},{key:"remove_widget",value:function(t){this.tv.$delete(this.widgets,t)}}])}();J.__name__="settings-win";const F={"chart-link":m,"grid-resize":E,"legend-buttons":z,"settings-win":{widgets:{SettingsWin:G},SettingsWin:G,components:{},overlays:{},colorpacks:{},skins:{},Main:J}}})(),s})()));
5
+ !function(t,e){t["trading-vue-js"]||(t["trading-vue-js"]=t.TradingVueJs),t.vue||(t.vue=t.Vue),"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TvjsXP=e():t.TvjsXP=e()}(self,(()=>(()=>{var t={364:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-std-input {\n margin: 5px;\n background-color: #161b27;\n border: 1px dotted #353940;\n height: 22px;\n border-radius: 3px;\n padding: 2px 0px 3px 10px;\n color: whitesmoke;\n font-size: 1.2em;\n outline: none;\n width: 100px;\n}\nselect.tvjs-std-input {\n height: 29px;\n -moz-appearance: none;\n}\nselect.tvjs-std-input {\n display: none; /*hide original SELECT element: */\n}\n.tvjs-std-input::placeholder {\n color: #8e909a;\n opacity: 0.25;\n}\n",""]),t.exports=e},120:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-x-window {\n position: absolute;\n background: #1b202def;\n border-radius: 3px;\n pointer-events: all;\n padding-left: 7px;\n z-index: 100;\n color: #dedddd;\n}\n.tvjs-x-window-head {\n font-size: 2em;\n user-select: none;\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: center;\n align-items: center;\n height: 36px;\n padding: 10px;\n cursor: grab;\n}\n.tvjs-x-window-body {\n padding: 10px;\n font-size: 1.1em;\n}\n.tvjs-x-window-title {\n width: 300px;\n user-select: none;\n}\n.tvjs-x-window-close {\n width: 26px;\n cursor: pointer;\n margin: -1em;\n padding: 1em;\n font-size: 0.75em;\n}\n",""]),t.exports=e},75:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.h-splitter[data-v-868dc3e2] {\n position: absolute;\n left: 0;\n height: 5px;\n margin-top: -2px;\n width: 100%;\n z-index: 1;\n background-color: #3ee4afb5;\n opacity: 0;\n pointer-events: all;\n}\n.h-splitter[data-v-868dc3e2]:hover {\n cursor: row-resize;\n opacity: 1;\n}\n",""]),t.exports=e},844:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-x-window.add-win[data-v-2ed555ae] {\n padding-bottom: 30px;\n border: 1px solid #80808011;\n}\n.add-win-list[data-v-2ed555ae] {\n height: 300px;\n overflow-x: hidden;\n overflow-y: auto;\n user-select: none;\n}\n/* Hide scrollbar for Chrome, Safari and Opera */\n.add-win-list[data-v-2ed555ae]::-webkit-scrollbar {\n display: none;\n}\n\n/* Hide scrollbar for IE, Edge and Firefox */\n.add-win-list[data-v-2ed555ae] {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.add-win-item[data-v-2ed555ae] {\n color: #ffffff88;\n width: 100%;\n padding: 5px;\n cursor: pointer;\n}\n.add-win-item[data-v-2ed555ae]:hover {\n background: #88888822;\n color: #ffffffff;\n}\n.add-win-item-desc[data-v-2ed555ae] {\n color: #ffffff33;\n margin-left: 3px;\n}\n.add-win-item:hover .add-win-item-desc[data-v-2ed555ae] {\n color: #ffffff44;\n}\n.add-win-empty[data-v-2ed555ae] {\n opacity: 0.5;\n}\n",""]),t.exports=e},604:(t,e,n)=>{(e=n(314)(!1)).push([t.id,"\n.tvjs-x-window.sett-win[data-v-182fbb4f] {\n padding-bottom: 30px;\n border: 1px solid #80808011;\n}\n.sett-win-item[data-v-182fbb4f] {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: flex-start;\n align-content: center;\n align-items: center;\n}\n.sett-win-item label[data-v-182fbb4f] {\n min-width: 80px;\n color: #35a776;\n}\n.sett-win-empty[data-v-182fbb4f] {\n opacity: 0.5;\n}\n",""]),t.exports=e},314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(s=r,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var s,a,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},222:t=>{var e;self,e=function(){return(()=>{var t={757:(t,e,n)=>{t.exports=n(666)},546:t=>{t.exports={numcmp:function(t,e){return t-e},strcmp:function(t,e){return t<e?-1:t>e?1:0}}},678:(t,e,n)=>{var r=n(500),i=n(546),o=n(101);function s(t,e){if(!r.isSortableArrayLike(t))throw new Error("Invalid data");if(!e||t.length>0&&!(e in t[0]))throw new Error("Invalid index");this.data=t,this.index=e,this.setBoundaries(),this.compare="number"==typeof this.minv?i.numcmp:i.strcmp,this.search=o.search,this.valpos={},this.cursor=null,this.nextlow=null,this.nexthigh=null}t.exports=s,s.prototype.setCompare=function(t){if("function"!=typeof t)throw new Error("Invalid argument");return this.compare=t,this},s.prototype.setSearch=function(t){if("function"!=typeof t)throw new Error("Invalid argument");return this.search=t,this},s.prototype.sort=function(){var t=this,e=this.index;return this.data.sort((function(n,r){return t.compare(n[e],r[e])})),this.setBoundaries(),this},s.prototype.setBoundaries=function(){var t=this.data,e=this.index;return this.minv=t.length&&t[0][e],this.maxv=t.length&&t[t.length-1][e],this},s.prototype.fetch=function(t){if(0===this.data.length)return this.cursor=null,this.nextlow=null,this.nexthigh=null,this;if(-1===this.compare(t,this.minv))return this.cursor=null,this.nextlow=null,this.nexthigh=0,this;if(1===this.compare(t,this.maxv))return this.cursor=null,this.nextlow=this.data.length-1,this.nexthigh=null,this;var e=this.valpos[t];if(e)return e.found?(this.cursor=e.index,this.nextlow=null,this.nexthigh=null):(this.cursor=null,this.nextlow=e.prev,this.nexthigh=e.next),this;var n=this.search.call(this,t);return this.cursor=n.index,this.nextlow=n.prev,this.nexthigh=n.next,this},s.prototype.get=function(t){t&&this.fetch(t);var e=this.cursor;return null!==e?this.data[e]:null},s.prototype.getRange=function(t,e){if(1===this.compare(t,e))return[];this.fetch(t);var n=this.cursor||this.nexthigh;this.fetch(e);var r=this.cursor||this.nextlow;return null===n||null===r?[]:this.data.slice(n,r+1)}},101:t=>{function e(t,n,r,i,o){var s=r+n>>>1,a=this.compare(t[s][this.index],i);return a?n>=r?o[i]={found:!1,index:null,prev:a<0?r:r-1,next:a<0?r+1:r}:a>0?e.call(this,t,n,s-1,i,o):e.call(this,t,s+1,r,i,o):o[i]={found:!0,index:s,prev:null,next:null}}t.exports.search=function(t){var n=this.data;return e.call(this,n,0,n.length-1,t,this.valpos)}},500:t=>{t.exports.isSortableArrayLike=function(t){return function(t){return!!(t&&"object"==typeof t&&isFinite(t.length)&&t.length>=0&&t.length===Math.floor(t.length)&&t.length<4294967296)}(t)&&function(t){return!(!t||"object"!=typeof t||"function"!=typeof t.sort)}(t)}},851:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Candle:()=>Lt,Constants:()=>A,DataCube:()=>Ar,Interface:()=>_r,Overlay:()=>yt,Tool:()=>re,TradingVue:()=>Wn,Utils:()=>C,Volbar:()=>Ut,default:()=>wr,layout_cnv:()=>Rt,layout_vol:()=>Nt,primitives:()=>br});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"trading-vue",style:{color:this.chart_props.colors.text,font:this.font_comp,width:this.width+"px",height:this.height+"px"},attrs:{id:t.id},on:{mousedown:t.mousedown,mouseleave:t.mouseleave}},[t.toolbar?n("toolbar",t._b({ref:"toolbar",attrs:{config:t.chart_config},on:{"custom-event":t.custom_event}},"toolbar",t.chart_props,!1)):t._e(),t._v(" "),t.controllers.length?n("widgets",{ref:"widgets",attrs:{map:t.ws,width:t.width,height:t.height,tv:this,dc:t.data}}):t._e(),t._v(" "),n("chart",t._b({key:t.reset,ref:"chart",attrs:{tv_id:t.id,config:t.chart_config},on:{"custom-event":t.custom_event,"range-changed":t.range_changed,"legend-button-click":t.legend_button}},"chart",t.chart_props,!1)),t._v(" "),n("transition",{attrs:{name:"tvjs-drift"}},[t.tip?n("the-tip",{attrs:{data:t.tip},on:{"remove-me":function(e){t.tip=null}}}):t._e()],1)],1)};function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function s(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r._withStripped=!0;var a=1e3,c=6e4,u=3e5,l=9e5,h=18e5,d=36e5,f=4*d,p=24*d,v=7*p,g=4*v,m=365*p,y={SBMIN:60,SBMAX:1/0,TOOLBAR:57,TB_ICON:25,TB_ITEM_M:6,TB_ICON_BRI:1,TB_ICON_HOLD:420,TB_BORDER:1,TB_B_STYLE:"dotted",TOOL_COLL:7,EXPAND:.15,CANDLEW:.6,GRIDX:100,GRIDY:47,BOTBAR:28,PANHEIGHT:22,DEFAULT_LEN:50,MINIMUM_LEN:5,MIN_ZOOM:25,MAX_ZOOM:1e3,VOLSCALE:.15,UX_OPACITY:.9,ZOOM_MODE:"tv",L_BTN_SIZE:21,L_BTN_MARGIN:"-6px 0 -6px 0",SCROLL_WHEEL:"prevent",FONT:"11px -apple-system,BlinkMacSystemFont,\n Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,\n Fira Sans,Droid Sans,Helvetica Neue,\n sans-serif"};const A={SECOND:a,MINUTE:c,MINUTE5:u,MINUTE15:l,MINUTE30:h,HOUR:d,HOUR4:f,DAY:p,WEEK:v,MONTH:g,YEAR:m,MONTHMAP:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],TIMESCALES:[10*m,5*m,3*m,2*m,m,6*g,4*g,3*g,2*g,g,15*p,10*p,7*p,5*p,3*p,2*p,p,12*d,6*d,3*d,54e5,d,h,l,6e5,u,12e4,c],$SCALES:[.05,.1,.2,.25,.5,.8,1,2,5],ChartConfig:y,map_unit:{"1s":a,"5s":5e3,"10s":1e4,"20s":2e4,"30s":3e4,"1m":c,"3m":18e4,"5m":u,"15m":l,"30m":h,"1H":d,"2H":2*d,"3H":3*d,"4H":f,"12H":432e5,"1D":p,"1W":v,"1M":g,"1Y":m},IB_TF_WARN:"When using IB mode you should specify timeframe ('tf' filed in 'chart' object),otherwise you can get an unexpected behaviour"};var _=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"trading-vue-chart",style:t.styles},[n("keyboard",{ref:"keyboard"}),t._v(" "),t._l(this._layout.grids,(function(e,r){return n("grid-section",{key:e.id,ref:"sec",refInFor:!0,attrs:{common:t.section_props(r),grid_id:r},on:{"register-kb-listener":t.register_kb,"remove-kb-listener":t.remove_kb,"range-changed":t.range_changed,"cursor-changed":t.cursor_changed,"cursor-locked":t.cursor_locked,"sidebar-transform":t.set_ytransform,"layer-meta-props":t.layer_meta_props,"custom-event":t.emit_custom_event,"legend-button-click":t.legend_button_click}})})),t._v(" "),n("botbar",t._b({attrs:{shaders:t.shaders,timezone:t.timezone}},"botbar",t.botbar_props,!1))],2)};function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}_._withStripped=!0;const w=function(t){var e=document.createElement("canvas").getContext("2d");return e.font=t.font,e};var x=n(678),k=n.n(x);const C={clamp:function(t,e,n){return t<=e?e:t>=n?n:t},add_zero:function(t){return t<10&&(t="0"+t),t},day_start:function(t){return new Date(t).setUTCHours(0,0,0,0)},month_start:function(t){var e=new Date(t);return Date.UTC(e.getFullYear(),e.getMonth(),1)},year_start:function(t){return Date.UTC(new Date(t).getFullYear())},get_year:function(t){if(t)return new Date(t).getUTCFullYear()},get_month:function(t){if(t)return new Date(t).getUTCMonth()},nearest_a:function(t,e){for(var n=1/0,r=null,i=-1,o=0;o<e.length;o++){var s=e[o];Math.abs(s-t)<n&&(n=Math.abs(s-t),r=s,i=o)}return[i,r]},round:function(t,e){return void 0===e&&(e=8),parseFloat(t.toFixed(e))},strip:function(t){return parseFloat(parseFloat(t).toPrecision(12))},get_day:function(t){return t?new Date(t).getDate():null},overwrite:function(t,e){t.splice.apply(t,[0,t.length].concat(s(e)))},copy_layout:function(t,e){for(var n in t)if(Array.isArray(t[n])){if(t[n].length!==e[n].length){this.overwrite(t[n],e[n]);continue}for(var r in t[n])Object.assign(t[n][r],e[n][r])}else Object.assign(t[n],e[n])},detect_interval:function(t){var e=Math.min(t.length-1,99),n=1/0;return t.slice(0,e).forEach((function(e,r){var i=t[r+1][0]-e[0];i==i&&i<n&&(n=i)})),n>=A.MONTH&&n<=30*A.DAY?31*A.DAY:n},get_num_id:function(t){return parseInt(t.split("_").pop())},fast_filter:function(t,e,n){if(!t.length)return[t,void 0];try{var r=new(k())(t,"0");return[r.getRange(e,n),r.valpos[e].next]}catch(r){return[t.filter((function(t){return t[0]>=e&&t[0]<=n})),0]}},fast_filter_i:function(t,e,n){if(!t.length)return[t,void 0];var r=Math.floor(e);r<0&&(r=0);var i=Math.floor(n+1);return[t.slice(r,i),r]},fast_nearest:function(t,e){var n=new(k())(t,"0");return n.fetch(e),[n.nextlow,n.nexthigh]},now:function(){return(new Date).getTime()},pause:function(t){return new Promise((function(e,n){return setTimeout(e,t)}))},smart_wheel:function(t){var e=Math.abs(t);return e>500?(200+Math.log(e))*Math.sign(t):t},get_deltaX:function(t){return t.originalEvent.deltaX/12},get_deltaY:function(t){return t.originalEvent.deltaY/12},apply_opacity:function(t,e){if(7===t.length){var n=Math.floor(255*e);t+=(n=this.clamp(n,0,255)).toString(16)}return t},parse_tf:function(t){return"string"==typeof t?A.map_unit[t]:t},index_shift:function(t,e){if(!e.length)return 0;for(var n,r=e[0][0],i=1;i<e.length;i++)if(e[i][0]!==r){n=e[i][0];break}for(var o=0;o<t.length;o++)if(t[o][0]===n)return o-i;return 0},measureText:function(t,e,n){var r=t.measureTextOrg(e);if(0===r.width){var i=document,o="tvjs-measure-text",s=i.getElementById(o);if(!s){var a=i.getElementById(n);(s=i.createElement("div")).id=o,s.style.position="absolute",s.style.top="-1000px",a.appendChild(s)}return t.font&&(s.style.font=t.font),s.innerText=e.replace(/ /g,"."),{width:s.offsetWidth}}return r},uuid:function(t){return void 0===t&&(t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"),t.replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},uuid2:function(){return this.uuid("xxxxxxxxxxxx")},warn:function(t,e,n){void 0===n&&(n=0),setTimeout((function(){t()&&console.warn(e)}),n)},is_scr_props_upd:function(t,e){var n=e.find((function(e){return e.v.$uuid===t.v.$uuid}));if(!n)return!1;var r=t.p.settings.$props;return!!r&&r.some((function(e){return t.v[e]!==n.v[e]}))},delayed_exec:function(t){if(!t.script||!t.script.execInterval)return!0;var e=this.now(),n=t.script.execInterval;return(!t.settings.$last_exec||e>t.settings.$last_exec+n)&&(t.settings.$last_exec=e,!0)},format_name:function(t){if(t.name){var e=t.name;for(var n in t.settings||{}){var r=t.settings[n],i=new RegExp("\\$".concat(n),"g");e=e.replace(i,r)}return e}},xmode:function(){return this.is_mobile?"explore":"default"},default_prevented:function(t){return t.original?t.original.defaultPrevented:t.defaultPrevented},is_mobile:(S="undefined"!=typeof window?window:{},"onorientationchange"in S&&(!!navigator.maxTouchPoints||!!navigator.msMaxTouchPoints||"ontouchstart"in S||S.DocumentTouch&&document instanceof S.DocumentTouch))};var S;const E={point2line:function(t,e,n){var r=this.tri(t,e,n),i=r.area,o=r.base;return Math.abs(this.tri_h(i,o))},point2seg:function(t,e,n){var r=this.tri(t,e,n),i=r.area,o=r.base,s=this.dot_prod(t,e,n)/o,a=Math.max(-s,0),c=Math.max(s-o,0),u=Math.abs(this.tri_h(i,o));return Math.max(u,a,c)},point2ray:function(t,e,n){var r=this.tri(t,e,n),i=r.area,o=r.base,s=this.dot_prod(t,e,n)/o,a=Math.max(-s,0),c=Math.abs(this.tri_h(i,o));return Math.max(c,a)},tri:function(t,e,n){var r=this.area(t,e,n),i=n[0]-e[0],o=n[1]-e[1];return{area:r,base:Math.sqrt(i*i+o*o)}},area:function(t,e,n){return t[0]*(e[1]-n[1])+e[0]*(n[1]-t[1])+n[0]*(t[1]-e[1])},tri_h:function(t,e){return t/e},dot_prod:function(t,e,n){var r=[n[0]-e[0],n[1]-e[1]],i=[t[0]-e[0],t[1]-e[1]];return r[0]*i[0]+r[1]*i[1]},log:function(t){return Math.sign(t)*Math.log(Math.abs(t)+1)},exp:function(t){return Math.sign(t)*(Math.exp(Math.abs(t))-1)},log_mid:function(t,e){var n=this.log(t[0]),r=n-e/2*(n-this.log(t[1]))/e;return this.exp(r)},re_range:function(t,e,n){var r=this.log(t[0]),i=this.log(t[1]),o=this.log(e),s=this.log(n),a=(o-s)*(r-i)/(r-s);return this.exp(o-a)}},I=function(t,e,n,r){return{x:e,w:t.px_step*r.config.CANDLEW,o:Math.floor(E.log(n[1])*t.A+t.B),h:Math.floor(E.log(n[2])*t.A+t.B),l:Math.floor(E.log(n[3])*t.A+t.B),c:Math.floor(E.log(n[4])*t.A+t.B),raw:n}},B=function(t,e){var n=-e/(E.log(t.$_hi)-E.log(t.$_lo)),r=-E.log(t.$_hi)*n,i=.1*-e,o=1.1*e;t.$_hi=E.exp((i-r)/n),t.$_lo=E.exp((o-r)/n)};var O=A.TIMESCALES,T=A.$SCALES,M=A.WEEK,D=A.MONTH,j=A.YEAR,Q=A.HOUR,$=A.DAY,R=Number.MAX_SAFE_INTEGER;const N=function(t,e,n){void 0===n&&(n=null);var r=e.sub,i=e.interval,o=e.range,s=e.ctx,a=e.$p,c=e.layers_meta,u=e.height,l=e.y_t,h=e.ti_map,d=e.grid,f=e.timezone,p={ti_map:h},v=c[t],g=null,m=d.logScale;if(v&&Object.keys(v).length){var y=Object.values(v).filter((function(t){return t.y_range}));y.length&&(g=y[0].y_range)}function A(){var t=function(){var t=Math.min(p.B,u);if(t<a.config.GRIDY)return 1;var e=t/a.config.GRIDY,n=p.$_hi;if(p.$_lo>0)var r=p.$_hi/p.$_lo;else r=p.$_hi/1;return a.config.GRIDY,parseInt(n.toExponential().split("e")[1]),Math.pow(r,1/e)}(),e=function(){var t=Math.min(u-p.B,u);if(t<a.config.GRIDY)return 1;var e=t/a.config.GRIDY,n=Math.abs(p.$_lo);if(p.$_hi<0&&p.$_lo<0)var r=Math.abs(p.$_lo/p.$_hi);else r=Math.abs(p.$_lo)/1;return a.config.GRIDY,parseInt(n.toExponential().split("e")[1]),Math.pow(r,1/e)}();return Math.max(t,e)}function _(){if(n)p.t_step=n.t_step,p.px_step=n.px_step,p.startx=n.startx,p.xs=n.xs;else{p.t_step=(f=h.ib?6e4:1,v=(o[1]-o[0])*f*(a.config.GRIDX/a.width),g=O,C.nearest_a(v,g)[1]/f),p.xs=[];for(var t=o[1]-o[0],e=p.spacex/t,s=0;s<r.length;s++){var c=r[s],u=r[s-1]||[],l=p.xs[p.xs.length-1]||[0,[]];w(u,c,Math.floor((c[0]-o[0])*e));var d=p.xs[p.xs.length-1]||[0,[]];l!==d&&d[1][0]-l[1][0]<.8*p.t_step&&(d[2]<=l[2]?p.xs.pop():p.xs.splice(p.xs.length-2,1))}i<M&&e>0&&(function(t,e){if(p.xs.length&&isFinite(e))for(var n=p.xs[0][1][0];;){n-=p.t_step;var r=Math.floor((n-o[0])*e);if(r<0)break;n%i==0&&p.xs.unshift([r,[n],i])}}(0,e),function(t,e){if(p.xs.length&&isFinite(e))for(var n=p.xs[p.xs.length-1][1][0];;){n+=p.t_step;var r=Math.floor((n-o[0])*e);if(r>p.spacex)break;n%i==0&&p.xs.push([r,[n],i])}}(0,e))}var f,v,g}function w(t,e,n,r){var o=h.ib?h.i2t(t[0]):t[0],s=h.ib?h.i2t(e[0]):e[0];h.tf<$&&(o+=f*Q,s+=f*Q),!t[0]&&i!==j||C.get_year(s)===C.get_year(o)?t[0]&&C.get_month(s)!==C.get_month(o)?p.xs.push([n,e,D]):C.day_start(s)===s?p.xs.push([n,e,$]):e[0]%p.t_step==0&&p.xs.push([n,e,i]):p.xs.push([n,e,j])}function x(){var t=Math.pow(10,-p.prec);p.$_step=Math.max(t,function(){var t=p.$_hi-p.$_lo,e=t*(a.config.GRIDY/u),n=parseInt(t.toExponential().split("e")[1]),r=Math.pow(10,n),i=T.map((function(t){return t*r}));return C.strip(C.nearest_a(e,i)[1])}()),p.ys=[];for(var e=p.$_lo-p.$_lo%p.$_step;e<=p.$_hi;e+=p.$_step){var n=Math.floor(e*p.A+p.B);n>u||p.ys.push([n,C.strip(e)])}}function k(){if(p.$_mult=A(),p.ys=[],r.length){for(var t=Math.abs(r[r.length-1][1]||1),e=function(t){for(var e=u/a.config.GRIDY,n=1/0,r=t,i=0;n>0;)if(n=Math.floor(E.log(r)*p.A+p.B),r*=p.$_mult,i++>3*e)return 0;return r}(t),n=function(t){for(var e=u/a.config.GRIDY,n=-1/0,r=t,i=0;n<u&&(n=Math.floor(E.log(r)*p.A+p.B),r*=p.$_mult,!(i++>3*e)););return r}(-t),i=-1/0,o=u/a.config.GRIDY,s=1+(p.$_mult-1)/2,c=e;c>0;c/=p.$_mult){c=S(c,s);var l=Math.floor(E.log(c)*p.A+p.B);if(p.ys.push([l,C.strip(c)]),l>u)break;if(l-i<.7*a.config.GRIDY)break;if(p.ys.length>o+1)break;i=l}for(i=1/0,c=n;c<0;c/=p.$_mult){c=S(c,s);var h=Math.floor(E.log(c)*p.A+p.B);if(i-h<.7*a.config.GRIDY)break;if(p.ys.push([h,C.strip(c)]),h<0)break;if(p.ys.length>3*o+1)break;i=h}}}function S(t,e){var n=Math.sign(t);if((t=Math.abs(t))>10){for(var r=10;r<R&&!(t/(Math.floor(t/r)*r)>e);r*=10);return r/=10,n*Math.floor(t/r)*r}if(t<1){for(var i=10;i>=1&&!(t/C.round(t,i)>e);i--);return n*C.round(t,i+1)}return n*Math.floor(t)}return function(){if(n){for(c=-1/0,h=1/0,d=0;d<r.length;d++)for(var t=1;t<r[d].length;t++){var e=r[d][t];e>c&&(c=e),e<h&&(h=e)}if(g)var i=b(g(c,h),3),o=(c=i[0],h=i[1],i[2])}else if(g)var s=b(g(c,h),2),c=s[0],h=s[1];else{c=-1/0,h=1/0;for(var d=0,f=r.length;d<f;d++){var v=r[d];v[2]>c&&(c=v[2]),v[3]<h&&(h=v[3])}}l&&!l.auto&&l.range?(p.$_hi=l.range[0],p.$_lo=l.range[1]):(m?(p.$_hi=c,p.$_lo=h,B(p,u)):(o=!1===o?0:1,p.$_hi=c+(c-h)*a.config.EXPAND*o,p.$_lo=h-(c-h)*a.config.EXPAND*o),p.$_hi===p.$_lo&&(m?B(p,u):(p.$_hi*=1.05,p.$_lo*=.95)))}(),function(){if(r.length<2)return p.prec=0,void(p.sb=a.config.SBMIN);p.prec=function(t){for(var e=0,n=0,r=1/0,i=-1/0,o=0,s=t.length;o<s;o++){var a=t[o];a[1]>i?i=a[1]:a[1]<r&&(r=a[1])}[r,i].forEach((function(t){var r=null!=t?t.toString():"";if(t<1e-6){var i=b(r.split("e-"),2),o=i[0],s=i[1],a=b(o.split("."),2),c=a[0];(l=a[1])||(l=""),l={length:l.length+parseInt(s)||0}}else var u=b(r.split("."),2),l=(c=u[0],u[1]);l&&l.length>e&&(e=l.length),c&&c.length>n&&(n=c.length)}));var c=e-e%2+2;return 1===n?Math.min(8,Math.max(2,c)):n<=2?Math.min(4,Math.max(2,c)):2}(r);var t=[];t.push(p.$_hi.toFixed(p.prec).length),t.push(p.$_lo.toFixed(p.prec).length);var e="0".repeat(Math.max.apply(Math,t))+" ";p.sb=s.measureText(e).width,p.sb=Math.max(Math.floor(p.sb),a.config.SBMIN),p.sb=Math.min(p.sb,a.config.SBMAX)}(),{create:function(){return function(){if(!(r.length<2)){var t=o[1]-o[0];p.spacex=a.width-p.sb;var e=t/i;p.px_step=p.spacex/e;var n=p.spacex/t;p.startx=(r[0][0]-o[0])*n,d.logScale?(p.A=-u/(E.log(p.$_hi)-E.log(p.$_lo)),p.B=-E.log(p.$_hi)*p.A):(p.A=-u/(p.$_hi-p.$_lo),p.B=-p.$_hi*p.A)}}(),_(),d.logScale?k():x(),p.width=a.width-p.sb,p.height=u,n&&(p.master_grid=n),p.grid=d,function(t,e){var n=t.ti_map.ib,r=e[1]-e[0],i=t.spacex/r,o=t.grid.logScale||!1;return Object.assign(t,{t2screen:function(r){return n&&(r=t.ti_map.smth2i(r)),Math.floor((r-e[0])*i)-.5},$2screen:function(e){return o&&(e=E.log(e)),Math.floor(e*t.A+t.B)-.5},t_magnet:function(e){n&&(e=t.ti_map.smth2i(e));var r=t.candles||t.master_grid.candles,i=r.map((function(t){return t.raw[0]})),o=C.nearest_a(e,i)[0];if(r[o])return Math.floor(r[o].x)-.5},screen2$:function(e){return o?E.exp((e-t.B)/t.A):(e-t.B)/t.A},screen2t:function(t){return e[0]+t/i},$_magnet:function(t){},c_magnet:function(e){var n=t.candles||t.master_grid.candles,r=n.map((function(t){return t.raw[0]}));return n[C.nearest_a(e,r)[0]]},data_magnet:function(t){}}),t}(p,o)},get_layout:function(){return p},set_sidebar:function(t){return p.sb=t},get_sidebar:function(){return p.sb}}};function Y(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const U=function(t){var e=t.chart,n=t.sub,r=t.offsub,i=t.interval,o=t.range,a=t.ctx,c=t.layers_meta,u=t.ti_map,l=t.$props,h=t.y_transforms,d=e.grid||{};r=r.filter((function(t,e){return!(t.grid&&t.grid.id)}));var f,p=function(){var t=l.height-l.config.BOTBAR;if(d.height||r.find((function(t){return t.grid.height})))return function(t,e){var n=[{grid:t}].concat(s(r)).map((function(t){return t.grid.height||1})),i=n.reduce((function(t,e){return t+e}),0);n=n.map((function(t){return Math.floor(t/i*e)})),i=n.reduce((function(t,e){return t+e}),0);for(var o=0;o<e-i;o++)n[o%n.length]++;return n}(d,t);var e=r.length,n=2*Math.sqrt(e)/7/(e||1),i=Math.floor(t*n);return[t-i*e].concat(Array(e).fill(i))}(),v={sub:n,interval:i,range:o,ctx:a,$p:l,layers_meta:c,ti_map:u,height:p[0],y_t:h[0],grid:d,timezone:l.timezone},g=[new N(0,v)],m=Y(r.entries());try{for(m.s();!(f=m.n()).done;){var y=b(f.value,2),A=y[0],_=y[1],w=_.data,x=_.grid;v.sub=w,v.height=p[A+1],v.y_t=h[A+1],v.grid=x||{},g.push(new N(A+1,v,g[0].get_layout()))}}catch(t){m.e(t)}finally{m.f()}var k=Math.max.apply(Math,s(g.map((function(t){return t.get_sidebar()})))),C=[],S=0;for(A=0;A<g.length;A++)g[A].set_sidebar(k),C.push(g[A].create()),C[A].id=A,C[A].offset=S,S+=C[A].height;var E=C[0];return function(){E.candles=[],E.volume=[];for(var t,e,r,o=Math.max.apply(Math,s(n.map((function(t){return t[5]})))),a=l.config.VOLSCALE*l.height/o,c=void 0,u=E.px_step>5?1:0,h=.5*E.px_step,f=0;f<n.length;f++){var p=n[f];r=E.t2screen(p[0])+.5,E.candles.push(d.logScale?I(E,r,p,l):{x:r,w:E.px_step*l.config.CANDLEW,o:Math.floor(p[1]*E.A+E.B),h:Math.floor(p[2]*E.A+E.B),l:Math.floor(p[3]*E.A+E.B),c:Math.floor(p[4]*E.A+E.B),raw:p}),n[f-1]&&p[0]-n[f-1][0]>i&&(c=null),t=c||Math.floor(r-h),e=Math.floor(r+h)-.5,E.volume.push({x1:t,x2:e,h:p[5]*a,green:p[4]>=p[1],raw:p}),c=e+u}}(),{grids:C,botbar:{width:l.width,height:l.config.BOTBAR,offset:S,xs:C[0]?C[0].xs:[]}}};function F(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function G(t,e,n){return e&&P(t.prototype,e),n&&P(t,n),t}function H(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const z=function(){function t(e){F(this,t),this.comp=e,this.grids=e._layout.grids,this.cursor=e.cursor}return G(t,[{key:"sync",value:function(t){this.cursor.grid_id=t.grid_id;var e,n=!0,r=H(this.grids);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=this.cursor_data(i,t);this.cursor.locked||(n&&(this.cursor.t=this.cursor_time(i,t,o),this.cursor.t&&(n=!1)),o.values&&this.comp.$set(this.cursor.values,i.id,o.values)),i.id===t.grid_id&&(this.cursor.x=i.t2screen(this.cursor.t),this.cursor.y=o.y,this.cursor.y$=o.y$)}}catch(t){r.e(t)}finally{r.f()}}},{key:"overlay_data",value:function(t,e){var n=0===t.id?"main_section":"sub_section",r=this.comp[n].data;if(t.id>0){var i=r.filter((function(t){return void 0===t.grid.id})),o=r.filter((function(e){return e.grid.id===t.id}));r=[i[t.id-1]].concat(s(o))}var a,c=t.screen2t(e.x),u={},l={},h=H(r);try{for(h.s();!(a=h.n()).done;){var d=a.value,f=d.data.map((function(t){return t[0]})),p=C.nearest_a(c,f)[0];d.type in u?u[d.type]++:u[d.type]=0,l["".concat(d.type,"_").concat(u[d.type])]=d.data[p]}}catch(t){h.e(t)}finally{h.f()}return l}},{key:"cursor_data",value:function(t,e){var n=this.comp.main_section.sub,r=n.map((function(e){return t.t2screen(e[0])+.5})),i=C.nearest_a(e.x,r)[0];return r[i]?{x:Math.floor(r[i])-.5,y:Math.floor(e.y-2)-.5-t.offset,y$:t.screen2$(e.y-2-t.offset),t:(n[i]||[])[0],values:Object.assign({ohlcv:0===t.id?n[i]:void 0},this.overlay_data(t,e))}:{}}},{key:"cursor_time",value:function(t,e,n){var r=t.screen2t(e.x),i=Math.abs((r-n.t)/this.comp.interval),o=Math.sign(r-n.t);if(i>=.5){var s=Math.round(i);return n.t+s*this.comp.interval*o}return n.t}}]),t}();var J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"trading-vue-section"},[n("chart-legend",{ref:"legend",attrs:{values:t.section_values,grid_id:t.grid_id,common:t.legend_props,meta_props:t.get_meta_props},on:{"legend-button-click":t.button_click}}),t._v(" "),n("grid",t._b({ref:"grid",attrs:{grid_id:t.grid_id},on:{"register-kb-listener":t.register_kb,"remove-kb-listener":t.remove_kb,"range-changed":t.range_changed,"cursor-changed":t.cursor_changed,"cursor-locked":t.cursor_locked,"layer-meta-props":t.emit_meta_props,"custom-event":t.emit_custom_event,"sidebar-transform":t.sidebar_transform,"rezoom-range":t.rezoom_range}},"grid",t.grid_props,!1)),t._v(" "),n("sidebar",t._b({ref:"sb-"+t.grid_id,attrs:{grid_id:t.grid_id,rerender:t.rerender},on:{"sidebar-transform":t.sidebar_transform}},"sidebar",t.sidebar_props,!1))],1)};J._withStripped=!0;var W=function(){function t(e){var n=this;F(this,t),this.t0=this.t=C.now(),this.id=setInterval((function(){C.now()-n.t>100||(C.now()-n.t0>1200&&n.stop(),n.id&&e(n),n.t=C.now())}),16)}return G(t,[{key:"stop",value:function(){clearInterval(this.id),this.id=null}}]),t}(),q=n(840),V=n(981),X=n.n(V);function Z(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return tt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var et=function(){function t(e,n){F(this,t),this.MIN_ZOOM=n.config.MIN_ZOOM,this.MAX_ZOOM=n.config.MAX_ZOOM,C.is_mobile&&(this.MIN_ZOOM*=.5),this.canvas=e,this.ctx=e.getContext("2d"),this.comp=n,this.$p=n.$props,this.data=this.$p.sub,this.range=this.$p.range,this.id=this.$p.grid_id,this.layout=this.$p.layout.grids[this.id],this.interval=this.$p.interval,this.cursor=n.$props.cursor,this.offset_x=0,this.offset_y=0,this.deltas=0,this.wmode=this.$p.config.SCROLL_WHEEL,this.listeners(),this.overlays=[]}return G(t,[{key:"listeners",value:function(){var t=this;this.hm=X()(this.canvas),this.hm.wheel((function(e,n){return t.mousezoom(50*-n,e)}));var e=this.mc=new q.Manager(this.canvas),n=C.is_mobile?10:0;e.add(new q.Pan({threshold:n})),e.add(new q.Tap),e.add(new q.Pinch({threshold:0})),e.get("pinch").set({enable:!0}),C.is_mobile&&e.add(new q.Press),e.on("panstart",(function(e){if(!t.cursor.scroll_lock){if("aim"===t.cursor.mode)return t.emit_cursor_coord(e);var n=t.$p.y_transform;t.drug={x:e.center.x+t.offset_x,y:e.center.y+t.offset_y,r:t.range.slice(),t:t.range[1]-t.range[0],o:n&&n.offset||0,y_r:n&&n.range?n.range.slice():void 0,B:t.layout.B,t0:C.now()},t.comp.$emit("cursor-changed",{grid_id:t.id,x:e.center.x+t.offset_x,y:e.center.y+t.offset_y}),t.comp.$emit("cursor-locked",!0)}})),e.on("panmove",(function(e){C.is_mobile&&(t.calc_offset(),t.propagate("mousemove",t.touch2mouse(e))),t.drug?(t.mousedrag(t.drug.x+e.deltaX,t.drug.y+e.deltaY),t.comp.$emit("cursor-changed",{grid_id:t.id,x:e.center.x+t.offset_x,y:e.center.y+t.offset_y})):"aim"===t.cursor.mode&&t.emit_cursor_coord(e)})),e.on("panend",(function(e){C.is_mobile&&t.drug&&t.pan_fade(e),t.drug=null,t.comp.$emit("cursor-locked",!1)})),e.on("tap",(function(e){C.is_mobile&&(t.sim_mousedown(e),t.fade&&t.fade.stop(),t.comp.$emit("cursor-changed",{}),t.comp.$emit("cursor-changed",{mode:"explore"}),t.update())})),e.on("pinchstart",(function(){t.drug=null,t.pinch={t:t.range[1]-t.range[0],r:t.range.slice()}})),e.on("pinchend",(function(){t.pinch=null})),e.on("pinch",(function(e){t.pinch&&t.pinchzoom(e.scale)})),e.on("press",(function(e){C.is_mobile&&(t.fade&&t.fade.stop(),t.calc_offset(),t.emit_cursor_coord(e,{mode:"aim"}),setTimeout((function(){return t.update()})),t.sim_mousedown(e))}));var r=addEventListener;r("gesturestart",this.gesturestart),r("gesturechange",this.gesturechange),r("gestureend",this.gestureend)}},{key:"gesturestart",value:function(t){t.preventDefault()}},{key:"gesturechange",value:function(t){t.preventDefault()}},{key:"gestureend",value:function(t){t.preventDefault()}},{key:"mousemove",value:function(t){C.is_mobile||(this.comp.$emit("cursor-changed",{grid_id:this.id,x:t.layerX,y:t.layerY+this.layout.offset}),this.calc_offset(),this.propagate("mousemove",t))}},{key:"mouseout",value:function(t){C.is_mobile||(this.comp.$emit("cursor-changed",{}),this.propagate("mouseout",t))}},{key:"mouseup",value:function(t){this.drug=null,this.comp.$emit("cursor-locked",!1),this.propagate("mouseup",t)}},{key:"mousedown",value:function(t){C.is_mobile||(this.propagate("mousedown",t),this.comp.$emit("cursor-locked",!0),t.defaultPrevented||this.comp.$emit("custom-event",{event:"grid-mousedown",args:[this.id,t]}))}},{key:"sim_mousedown",value:function(t){var e=this;t.srcEvent.defaultPrevented||(this.comp.$emit("custom-event",{event:"grid-mousedown",args:[this.id,t]}),this.propagate("mousemove",this.touch2mouse(t)),this.update(),this.propagate("mousedown",this.touch2mouse(t)),setTimeout((function(){e.propagate("click",e.touch2mouse(t))})))}},{key:"touch2mouse",value:function(t){return this.calc_offset(),{original:t.srcEvent,layerX:t.center.x+this.offset_x,layerY:t.center.y+this.offset_y,preventDefault:function(){this.original.preventDefault()}}}},{key:"click",value:function(t){this.propagate("click",t)}},{key:"emit_cursor_coord",value:function(t,e){void 0===e&&(e={}),this.comp.$emit("cursor-changed",Object.assign({grid_id:this.id,x:t.center.x+this.offset_x,y:t.center.y+this.offset_y+this.layout.offset},e))}},{key:"pan_fade",value:function(t){var e=this,n=C.now()-this.drug.t0,r=42*(this.range[1]-this.drug.r[1])/n,i=Math.abs(.01*r);n>500||(this.fade&&this.fade.stop(),this.fade=new W((function(t){r*=.85,Math.abs(r)<i&&t.stop(),e.range[0]+=r,e.range[1]+=r,e.change_range()})))}},{key:"calc_offset",value:function(){var t=this.canvas.getBoundingClientRect();this.offset_x=-t.x,this.offset_y=-t.y}},{key:"new_layer",value:function(t){"crosshair"===t.name?this.crosshair=t:this.overlays.push(t),this.update()}},{key:"del_layer",value:function(t){this.overlays=this.overlays.filter((function(e){return e.id!==t})),this.update()}},{key:"show_hide_layer",value:function(t){var e=this.overlays.filter((function(e){return e.id===t.id}));e.length&&(e[0].display=t.display)}},{key:"update",value:function(){var t=this;if(this.layout=this.$p.layout.grids[this.id],this.interval=this.$p.interval,this.layout){this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.$p.shaders.length&&this.apply_shaders(),this.grid();var e=[];e.push.apply(e,s(this.overlays)),e.sort((function(t,e){return t.z-e.z})),e.forEach((function(e){if(e.display){t.ctx.save();var n=e.renderer;n.pre_draw&&n.pre_draw(t.ctx),n.draw(t.ctx),n.post_draw&&n.post_draw(t.ctx),t.ctx.restore()}})),this.crosshair&&this.crosshair.renderer.draw(this.ctx)}}},{key:"apply_shaders",value:function(){var t,e=this.$p.layout.grids[this.id],n={layout:e,range:this.range,interval:this.interval,tf:e.ti_map.tf,cursor:this.cursor,colors:this.$p.colors,sub:this.data,font:this.$p.font,config:this.$p.config,meta:this.$p.meta},r=Z(this.$p.shaders);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.ctx.save(),i.draw(this.ctx,n),this.ctx.restore()}}catch(t){r.e(t)}finally{r.f()}}},{key:"grid",value:function(){this.ctx.strokeStyle=this.$p.colors.grid,this.ctx.beginPath();var t,e=this.layout.height,n=Z(this.layout.xs);try{for(n.s();!(t=n.n()).done;){var r=b(t.value,2),i=r[0];r[1],this.ctx.moveTo(i-.5,0),this.ctx.lineTo(i-.5,e)}}catch(t){n.e(t)}finally{n.f()}var o,s=Z(this.layout.ys);try{for(s.s();!(o=s.n()).done;){var a=b(o.value,2),c=a[0];a[1],this.ctx.moveTo(0,c-.5),this.ctx.lineTo(this.layout.width,c-.5)}}catch(t){s.e(t)}finally{s.f()}this.ctx.stroke(),this.$p.grid_id&&this.upper_border()}},{key:"upper_border",value:function(){this.ctx.strokeStyle=this.$p.colors.scale,this.ctx.beginPath(),this.ctx.moveTo(0,.5),this.ctx.lineTo(this.layout.width,.5),this.ctx.stroke()}},{key:"mousezoom",value:function(t,e){if("pass"!==this.wmode){if("click"===this.wmode&&!this.$p.meta.activated)return;e.originalEvent.preventDefault(),e.preventDefault()}if(e.deltaX=e.deltaX||C.get_deltaX(e),e.deltaY=e.deltaY||C.get_deltaY(e),Math.abs(e.deltaX)>0&&(this.trackpad=!0,Math.abs(e.deltaX)>=Math.abs(e.deltaY)&&(t*=.1),this.trackpad_scroll(e)),this.trackpad&&(t*=.032),!((t=C.smart_wheel(t))<0&&this.data.length<=this.MIN_ZOOM||t>0&&this.data.length>this.MAX_ZOOM)){var n=t*(this.interval/1e3)*this.data.length,r="tl"===this.comp.config.ZOOM_MODE;if(e.originalEvent.ctrlKey||r){var i=e.originalEvent.offsetX/(this.canvas.width-1)*n,o=n-i;this.range[0]-=i,this.range[1]+=o}else this.range[0]-=n;if(r){var s=e.originalEvent.offsetY/(this.canvas.height-1)*2,a=2-s,c=n/(this.range[1]-this.range[0]);this.comp.$emit("rezoom-range",{grid_id:this.id,z:c,diff1:s,diff2:a})}this.change_range()}}},{key:"mousedrag",value:function(t,e){var n=this.drug.t*(this.drug.x-t)/this.layout.width,r=this.layout.$_hi-this.layout.$_lo;r*=(this.drug.y-e)/this.layout.height;var i=this.drug.o+r,o=this.layout.grid.logScale;if(o&&this.drug.y_r){var s=this.drug.y-e,a=this.drug.y_r.slice();a[0]=E.exp((0-this.drug.B+s)/this.layout.A),a[1]=E.exp((this.layout.height-this.drug.B+s)/this.layout.A)}this.drug.y_r&&this.$p.y_transform&&!this.$p.y_transform.auto&&this.comp.$emit("sidebar-transform",{grid_id:this.id,range:o?a||this.drug.y_r:[this.drug.y_r[0]-i,this.drug.y_r[1]-i]}),this.range[0]=this.drug.r[0]+n,this.range[1]=this.drug.r[1]+n,this.change_range()}},{key:"pinchzoom",value:function(t){if(!(t>1&&this.data.length<=this.MIN_ZOOM||t<1&&this.data.length>this.MAX_ZOOM)){var e=this.pinch.t,n=1*e/t;this.range[0]=this.pinch.r[0]-.5*(n-e),this.range[1]=this.pinch.r[1]+.5*(n-e),this.change_range()}}},{key:"trackpad_scroll",value:function(t){var e=this.range[1]-this.range[0];this.range[0]+=t.deltaX*e*.011,this.range[1]+=t.deltaX*e*.011,this.change_range()}},{key:"change_range",value:function(){if(this.range.length&&!(this.data.length<2)){var t=this.data.length-1,e=this.data,n=this.range;n[0]=C.clamp(n[0],-1/0,e[t][0]-5.5*this.interval),n[1]=C.clamp(n[1],e[0][0]+5.5*this.interval,1/0),this.comp.$emit("range-changed",n)}}},{key:"propagate",value:function(t,e){var n,r=Z(this.overlays);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.renderer[t]&&i.renderer[t](e);var o=i.renderer.mouse,s=i.renderer.keys;o.listeners&&o.emit(t,e),s&&s.listeners&&s.emit(t,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"destroy",value:function(){var t=removeEventListener;t("gesturestart",this.gesturestart),t("gesturechange",this.gesturechange),t("gestureend",this.gestureend),this.mc&&this.mc.destroy(),this.hm&&this.hm.unwheel()}}]),t}();const nt={methods:{setup:function(){var t=this,e="".concat(this.$props.tv_id,"-").concat(this._id,"-canvas"),n=document.getElementById(e),r=window.devicePixelRatio||1;n.style.width="".concat(this._attrs.width,"px"),n.style.height="".concat(this._attrs.height,"px"),r<1&&(r=1),this.$nextTick((function(){var e=n.getBoundingClientRect();n.width=e.width*r,n.height=e.height*r;var i=n.getContext("2d",{});i.scale(r,r),t.redraw(),i.measureTextOrg||(i.measureTextOrg=i.measureText),i.measureText=function(e){return C.measureText(i,e,t.$props.tv_id)}}))},create_canvas:function(t,e,n){var r=this;return this._id=e,this._attrs=n.attrs,t("div",{class:"trading-vue-".concat(e),style:{left:n.position.x+"px",top:n.position.y+"px",position:"absolute"}},[t("canvas",{on:{mousemove:function(t){return r.renderer.mousemove(t)},mouseout:function(t){return r.renderer.mouseout(t)},mouseup:function(t){return r.renderer.mouseup(t)},mousedown:function(t){return r.renderer.mousedown(t)}},attrs:Object.assign({id:"".concat(this.$props.tv_id,"-").concat(e,"-canvas")},n.attrs),ref:"canvas",style:n.style})].concat(n.hs||[]))},redraw:function(){this.renderer&&this.renderer.update()}},watch:{width:function(t){this._attrs.width=t,this.setup()},height:function(t){this._attrs.height=t,this.setup()}}};var rt=function(){function t(e){F(this,t),this.comp=e,this.$p=e.$props,this.data=this.$p.sub,this._visible=!1,this.locked=!1,this.layout=this.$p.layout}return G(t,[{key:"draw",value:function(t){this.layout=this.$p.layout;var e=this.comp.$props.cursor;(this.visible||"explore"!==e.mode)&&(this.x=this.$p.cursor.x,this.y=this.$p.cursor.y,t.save(),t.strokeStyle=this.$p.colors.cross,t.beginPath(),t.setLineDash([5]),this.$p.cursor.grid_id===this.layout.id&&(t.moveTo(0,this.y),t.lineTo(this.layout.width-.5,this.y)),t.moveTo(this.x,0),t.lineTo(this.x,this.layout.height),t.stroke(),t.restore())}},{key:"hide",value:function(){this.visible=!1,this.x=void 0,this.y=void 0}},{key:"visible",get:function(){return this._visible},set:function(t){this._visible=t}}]),t}();function it(t,e,n,r,i,o,s,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}var ot=it({name:"Crosshair",props:["cursor","colors","layout","sub"],methods:{create:function(){this.ch=new rt(this),this.$emit("new-grid-layer",{name:"crosshair",renderer:this.ch})}},watch:{cursor:{handler:function(){this.ch||this.create();var t=this.$props.cursor,e="explore"===t.mode;if(!t.x||!t.y)return this.ch.hide(),void this.$emit("redraw-grid");this.ch.visible=!e},deep:!0}},render:function(t){return t()}},void 0,void 0,!1,null,null,null);ot.options.__file="src/components/Crosshair.vue";const st=ot.exports;var at=it({name:"KeyboardListener",render:function(t){return t()},created:function(){this.$emit("register-kb-listener",{id:this._uid,keydown:this.keydown,keyup:this.keyup,keypress:this.keypress})},beforeDestroy:function(){this.$emit("remove-kb-listener",{id:this._uid})},methods:{keydown:function(t){this.$emit("keydown",t)},keyup:function(t){this.$emit("keyup",t)},keypress:function(t){this.$emit("keypress",t)}}},void 0,void 0,!1,null,null,null);at.options.__file="src/components/KeyboardListener.vue";const ct=at.exports;var ut=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:"trading-vue-grid-ux-"+t.id,style:t.style},t._l(t.uxs,(function(e){return n("ux-wrapper",{key:e.uuid,attrs:{ux:e,updater:t.updater,colors:t.colors,config:t.config},on:{"custom-event":t.on_custom_event}})})),1)};ut._withStripped=!0;var lt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"trading-vue-ux-wrapper",style:t.style,attrs:{id:"tvjs-ux-wrapper-"+t.ux.uuid}},[n(t.ux.component,{tag:"component",attrs:{ux:t.ux,updater:t.updater,wrapper:t.wrapper,colors:t.colors},on:{"custom-event":t.on_custom_event}}),t._v(" "),t.ux.show_pin?n("div",{staticClass:"tvjs-ux-wrapper-pin",style:t.pin_style}):t._e(),t._v(" "),!1!==t.ux.win_header?n("div",{staticClass:"tvjs-ux-wrapper-head"},[n("div",{staticClass:"tvjs-ux-wrapper-close",style:t.btn_style,on:{click:t.close}},[t._v("×")])]):t._e()],1):t._e()};lt._withStripped=!0;const ht={name:"UxWrapper",props:["ux","updater","colors","config"],mounted:function(){this.self=document.getElementById(this.uuid),this.w=this.self.offsetWidth,this.h=this.self.offsetHeight,this.update_position()},created:function(){this.mouse.on("mousemove",this.mousemove),this.mouse.on("mouseout",this.mouseout)},beforeDestroy:function(){this.mouse.off("mousemove",this.mousemove),this.mouse.off("mouseout",this.mouseout)},methods:{update_position:function(){if(!this.uxr.hidden){var t=this.layout.width,e=this.layout.height,n=this.uxr.pin;switch(n[0]){case"cursor":var r=this.uxr.overlay.cursor.x;break;case"mouse":r=this.mouse.x;break;default:r="string"==typeof n[0]?this.parse_coord(n[0],t):this.layout.t2screen(n[0])}switch(n[1]){case"cursor":var i=this.uxr.overlay.cursor.y;break;case"mouse":i=this.mouse.y;break;default:i="string"==typeof n[1]?this.parse_coord(n[1],e):this.layout.$2screen(n[1])}this.x=r+this.ox,this.y=i+this.oy}},parse_coord:function(t,e){if("0"===(t=t.trim())||""===t)return 0;var n=t.split("+");if(2===n.length)return this.parse_coord(n[0],e)+this.parse_coord(n[1],e);var r=t.split("-");if(2===r.length)return this.parse_coord(r[0],e)-this.parse_coord(r[1],e);var i=t.split("%");if(2===i.length)return e*parseInt(i[0])/100;var o=t.split("px");return 2===o.length?parseInt(o[0]):void 0},mousemove:function(){this.update_position(),this.visible=!0},mouseout:function(){(this.uxr.pin.includes("cursor")||this.uxr.pin.includes("mouse"))&&(this.visible=!1)},on_custom_event:function(t){this.$emit("custom-event",t),"modify-interface"===t.event&&(this.self&&(this.w=this.self.offsetWidth,this.h=this.self.offsetHeight),this.update_position())},close:function(){this.$emit("custom-event",{event:"close-interface",args:[this.$props.ux.uuid]})}},computed:{uxr:function(){return this.$props.ux},layout:function(){return this.$props.ux.overlay.layout},settings:function(){return this.$props.ux.overlay.settings},uuid:function(){return"tvjs-ux-wrapper-".concat(this.uxr.uuid)},mouse:function(){return this.uxr.overlay.mouse},style:function(){var t={display:this.uxr.hidden?"none":void 0,left:"".concat(this.x,"px"),top:"".concat(this.y,"px"),"pointer-events":this.uxr.pointer_events||"all","z-index":this.z_index};return!1!==this.uxr.win_styling&&(t=Object.assign(t,{border:"1px solid ".concat(this.$props.colors.grid),"border-radius":"3px",background:"".concat(this.background)})),t},pin_style:function(){return{left:"".concat(-this.ox,"px"),top:"".concat(-this.oy,"px"),"background-color":this.uxr.pin_color}},btn_style:function(){return{background:"".concat(this.inactive_btn_color),color:"".concat(this.inactive_btn_color)}},pin_pos:function(){return this.uxr.pin_position?this.uxr.pin_position.split(","):["0","0"]},ox:function(){if(2===this.pin_pos.length)return-this.parse_coord(this.pin_pos[0],this.w)},oy:function(){if(2===this.pin_pos.length)return-this.parse_coord(this.pin_pos[1],this.h)},z_index:function(){return(this.settings["z-index"]||this.settings.zIndex||0)+(this.uxr.z_index||0)},background:function(){var t=this.uxr.background||this.$props.colors.back;return C.apply_opacity(t,this.uxr.background_opacity||this.$props.config.UX_OPACITY)},inactive_btn_color:function(){return this.uxr.inactive_btn_color||this.$props.colors.grid},wrapper:function(){return{x:this.x,y:this.y,pin_x:this.x-this.ox,pin_y:this.y-this.oy}}},watch:{updater:function(){this.update_position()}},data:function(){return{x:0,y:0,w:0,h:0,visible:!0}}};n(565);var dt=it(ht,lt,[],!1,null,null,null);dt.options.__file="src/components/UxWrapper.vue";var ft=it({name:"UxLayer",props:["tv_id","id","uxs","updater","colors","config"],components:{UxWrapper:dt.exports},created:function(){},mounted:function(){},beforeDestroy:function(){},methods:{on_custom_event:function(t){this.$emit("custom-event",t)}},computed:{style:function(){return{top:0!==this.$props.id?"1px":0,left:0,width:"100%",height:"calc(100% - 2px)",position:"absolute","z-index":"1","pointer-events":"none",overflow:"hidden"}}}},ut,[],!1,null,null,null);ft.options.__file="src/components/UxLayer.vue";const pt=ft.exports;function vt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var mt=function(){function t(e){F(this,t),this.comp=e,this.map={},this.listeners=0,this.pressed=!1,this.x=e.$props.cursor.x,this.y=e.$props.cursor.y,this.t=e.$props.cursor.t,this.y$=e.$props.cursor.y$}return G(t,[{key:"on",value:function(t,e,n){void 0===n&&(n="unshift"),e&&(this.map[t]=this.map[t]||[],this.map[t][n](e),this.listeners++)}},{key:"off",value:function(t,e){if(this.map[t]){var n=this.map[t].indexOf(e);n<0||(this.map[t].splice(n,1),this.listeners--)}}},{key:"emit",value:function(t,e){var n=this.comp.layout;if(t in this.map){var r,i=vt(this.map[t]);try{for(i.s();!(r=i.n()).done;)(0,r.value)(e)}catch(t){i.e(t)}finally{i.f()}}"mousemove"===t&&(this.x=e.layerX,this.y=e.layerY,this.t=n.screen2t(this.x),this.y$=n.screen2$(this.y)),"mousedown"===t&&(this.pressed=!0),"mouseup"===t&&(this.pressed=!1)}}]),t}();const yt={props:["id","num","interval","cursor","colors","layout","sub","data","settings","grid_id","font","config","meta","tf","i0","last"],mounted:function(){this.draw||(this.draw=function(t){console.warn("EARLY ADOPTER BUG: reload the browser & enjoy")});var t=this.$props.sub===this.$props.data;this.meta_info();try{new Function("return "+this.$emit)(),this._$emit=this.$emit,this.$emit=this.custom_event}catch(t){return}this._$emit("new-grid-layer",{name:this.$options.name,id:this.$props.id,renderer:this,display:!("display"in this.$props.settings)||this.$props.settings.display,z:this.$props.settings["z-index"]||this.$props.settings.zIndex||(t?0:-1)}),this._$emit("layer-meta-props",{grid_id:this.$props.grid_id,layer_id:this.$props.id,legend:this.legend,data_colors:this.data_colors,y_range:this.y_range}),this.exec_script(),this.mouse=new mt(this),this.init_tool&&this.init_tool(),this.init&&this.init()},beforeDestroy:function(){this.destroy&&this.destroy(),this._$emit("delete-grid-layer",this.$props.id)},methods:{use_for:function(){console.warn("use_for() should be implemented"),console.warn("Format: use_for() {\n return ['type1', 'type2', ...]\n }")},meta_info:function(){var t=this.$props.id;console.warn("".concat(t," meta_info() is req. for publishing")),console.warn("Format: meta_info() {\n author: 'Satoshi Smith',\n version: '1.0.0',\n contact (opt) '<email>'\n github: (opt) '<GitHub Page>',\n }")},custom_event:function(t){if("hook"!==t.split(":")[0]){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];"change-settings"!==t&&"object-selected"!==t&&"new-shader"!==t&&"new-interface"!==t&&"remove-tool"!==t||(n.push(this.grid_id,this.id),this.$props.settings.$uuid&&n.push(this.$props.settings.$uuid)),"new-interface"===t&&(n[0].overlay=this,n[0].uuid=this.last_ux_id="".concat(this.grid_id,"-").concat(this.id,"-").concat(this.uxs_count++)),"custom-event"!==t&&this._$emit("custom-event",{event:t,args:n})}},exec_script:function(){this.calc&&this.$emit("exec-script",{grid_id:this.$props.grid_id,layer_id:this.$props.id,src:this.calc(),use_for:this.use_for()})}},watch:{settings:{handler:function(t,e){this.watch_uuid&&this.watch_uuid(t,e),this._$emit("show-grid-layer",{id:this.$props.id,display:!("display"in this.$props.settings)||this.$props.settings.display})},deep:!0}},data:function(){return{uxs_count:0,last_ux_id:null}},render:function(t){return t()}},At={name:"Spline",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.1.2"}},draw:function(t){t.lineWidth=this.line_width,t.strokeStyle=this.color,t.beginPath();var e=this.$props.layout,n=this.data_index,r=this.$props.data;if(this.skip_nan){var i=!1;for(c=0,u=r.length;c<u;c++){var o=r[c],s=e.t2screen(o[0]),a=e.$2screen(o[n]);null==o[n]||a!=a?i=!0:(i&&t.moveTo(s,a),t.lineTo(s,a),i=!1)}}else for(var c=0,u=r.length;c<u;c++){var l=r[c],h=e.t2screen(l[0]),d=e.$2screen(l[n]);t.lineTo(h,d)}t.stroke()},use_for:function(){return["Spline","EMA","SMA"]},data_colors:function(){return[this.color]}},computed:{sett:function(){return this.$props.settings},line_width:function(){return this.sett.lineWidth||.75},color:function(){var t=this.$props.num%5;return this.sett.color||this.COLORS[t]},data_index:function(){return this.sett.dataIndex||1},skip_nan:function(){return this.sett.skipNaN}},data:function(){return{COLORS:["#42b28a","#5691ce","#612ff9","#d50b90","#ff2316"]}}};var _t=it(At,void 0,void 0,!1,null,null,null);_t.options.__file="src/components/overlays/Spline.vue";const bt=_t.exports,wt={name:"Splines",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.1.0"}},draw:function(t){for(var e=0;e<this.lines_num;e++){var n=e%this.clrx.length;t.strokeStyle=this.clrx[n],t.lineWidth=this.widths[e]||this.line_width,t.beginPath(),this.draw_spline(t,e),t.stroke()}},draw_spline:function(t,e){var n=this.$props.layout,r=this.$props.data;if(this.skip_nan){var i=!1;for(c=0,u=r.length;c<u;c++){var o=r[c],s=n.t2screen(o[0]),a=n.$2screen(o[e+1]);null==o[e+1]||a!=a?i=!0:(i&&t.moveTo(s,a),t.lineTo(s,a),i=!1)}}else for(var c=0,u=r.length;c<u;c++){var l=r[c],h=n.t2screen(l[0]),d=n.$2screen(l[e+1]);t.lineTo(h,d)}},use_for:function(){return["Splines","DMI"]},data_colors:function(){return this.clrx}},computed:{sett:function(){return this.$props.settings},line_width:function(){return this.sett.lineWidth||.75},widths:function(){return this.sett.lineWidths||[]},clrx:function(){var t=this.sett.colors||[],e=this.$props.num;if(!t.length)for(var n=0;n<this.lines_num;n++)t.push(this.COLORS[(e+n)%5]);return t},lines_num:function(){return this.$props.data[0]?this.$props.data[0].length-1:0},skip_nan:function(){return this.sett.skipNaN}},data:function(){return{COLORS:["#42b28a","#5691ce","#612ff9","#d50b90","#ff2316"]}}};var xt=it(wt,void 0,void 0,!1,null,null,null);xt.options.__file="src/components/overlays/Splines.vue";const kt=xt.exports,Ct={name:"Range",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.0.1"}},draw:function(t){var e=this.$props.layout,n=e.$2screen(this.sett.upper||70),r=e.$2screen(this.sett.lower||30),i=this.$props.data;t.lineWidth=this.line_width,t.strokeStyle=this.color,t.beginPath();for(var o=0,s=i.length;o<s;o++){var a=i[o],c=e.t2screen(a[0]),u=e.$2screen(a[1]);t.lineTo(c,u)}t.stroke(),t.strokeStyle=this.band_color,t.setLineDash([5]),t.beginPath(),t.fillStyle=this.back_color,t.fillRect(0,n,e.width,r-n),t.moveTo(0,n),t.lineTo(e.width,n),t.moveTo(0,r),t.lineTo(e.width,r),t.stroke()},use_for:function(){return["Range","RSI"]},data_colors:function(){return[this.color]},y_range:function(t,e){return[Math.max(t,this.sett.upper||70),Math.min(e,this.sett.lower||30)]}},computed:{sett:function(){return this.$props.settings},line_width:function(){return this.sett.lineWidth||.75},color:function(){return this.sett.color||"#ec206e"},band_color:function(){return this.sett.bandColor||"#ddd"},back_color:function(){return this.sett.backColor||"#381e9c16"}}};var St=it(Ct,void 0,void 0,!1,null,null,null);St.options.__file="src/components/overlays/Range.vue";const Et=St.exports,It={name:"Trades",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.0.2"}},draw:function(t){var e=this.$props.layout,n=this.$props.data;t.lineWidth=1.5,t.strokeStyle="black";for(var r=0,i=n.length;r<i;r++){var o=n[r];t.fillStyle=o[1]?this.buy_color:this.sell_color,t.beginPath();var s=e.t2screen(o[0]),a=e.$2screen(o[2]);t.arc(s,a,this.marker_size+.5,0,2*Math.PI,!0),t.fill(),t.stroke(),this.show_label&&o[3]&&this.draw_label(t,s,a,o)}},draw_label:function(t,e,n,r){t.fillStyle=this.label_color,t.font=this.new_font,t.textAlign="center",t.fillText(r[3],e,n-25)},use_for:function(){return["Trades"]},legend:function(t){switch(t[1]){case 0:var e="Sell";break;case 1:e="Buy";break;default:e="Unknown"}return[{value:e},{value:t[2].toFixed(4),color:this.$props.colors.text}].concat(t[3]?[{value:t[3]}]:[])}},computed:{sett:function(){return this.$props.settings},default_font:function(){return"12px "+this.$props.font.split("px").pop()},buy_color:function(){return this.sett.buyColor||"#63df89"},sell_color:function(){return this.sett.sellColor||"#ec4662"},label_color:function(){return this.sett.labelColor||"#999"},marker_size:function(){return this.sett.markerSize||5},show_label:function(){return!1!==this.sett.showLabel},new_font:function(){return this.sett.font||this.default_font}}};var Bt=it(It,void 0,void 0,!1,null,null,null);Bt.options.__file="src/components/overlays/Trades.vue";const Ot=Bt.exports,Tt={name:"Channel",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.0.1"}},draw:function(t){var e=this.data,n=this.layout;t.beginPath(),t.fillStyle=this.back_color;for(var r=0;r<e.length;r++){var i=e[r],o=n.t2screen(i[0]),s=n.$2screen(i[1]||void 0);t.lineTo(o,s)}for(r=e.length-1;r>=0;r--){var a=e[r],c=n.t2screen(a[0]),u=n.$2screen(a[3]||void 0);t.lineTo(c,u)}for(t.fill(),t.lineWidth=this.line_width,t.strokeStyle=this.color,t.beginPath(),r=0;r<e.length;r++){var l=e[r],h=n.t2screen(l[0]),d=n.$2screen(l[1]||void 0);t.lineTo(h,d)}for(t.stroke(),t.beginPath(),r=0;r<e.length;r++){var f=e[r],p=n.t2screen(f[0]),v=n.$2screen(f[3]||void 0);t.lineTo(p,v)}if(t.stroke(),this.show_mid){for(t.beginPath(),r=0;r<e.length;r++){var g=e[r],m=n.t2screen(g[0]),y=n.$2screen(g[2]||void 0);t.lineTo(m,y)}t.stroke()}},mapp:function(t){var e=this.$props.layout;return t&&{x:e.t2screen(t[0]),y1:e.$2screen(t[1]),y2:e.$2screen(t[2]),y3:e.$2screen(t[3])}},use_for:function(){return["Channel","KC","BB"]},data_colors:function(){return[this.color,this.color,this.color]}},computed:{sett:function(){return this.$props.settings},line_width:function(){return this.sett.lineWidth||.75},color:function(){var t=this.$props.num%5;return this.sett.color||this.COLORS[t]},show_mid:function(){return!("showMid"in this.sett)||this.sett.showMid},back_color:function(){return this.sett.backColor||this.color+"11"}},data:function(){return{COLORS:["#42b28a","#5691ce","#612ff9","#d50b90","#ff2316"]}}};var Mt=it(Tt,void 0,void 0,!1,null,null,null);Mt.options.__file="src/components/overlays/Channel.vue";const Dt=Mt.exports,jt={name:"Segment",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.0.0"}},draw:function(t){if(this.p1&&this.p2){t.lineWidth=this.line_width,t.strokeStyle=this.color,t.beginPath();var e=this.$props.layout,n=e.t2screen(this.p1[0]),r=e.$2screen(this.p1[1]);t.moveTo(n,r);var i=e.t2screen(this.p2[0]),o=e.$2screen(this.p2[1]);t.lineTo(i,o),t.stroke()}},use_for:function(){return["Segment"]},data_colors:function(){return[this.color]}},computed:{sett:function(){return this.$props.settings},p1:function(){return this.$props.settings.p1},p2:function(){return this.$props.settings.p2},line_width:function(){return this.sett.lineWidth||.9},color:function(){var t=this.$props.num%5;return this.sett.color||this.COLORS[t]}},data:function(){return{COLORS:["#42b28a","#5691ce","#612ff9","#d50b90","#ff2316"]}}};var Qt=it(jt,void 0,void 0,!1,null,null,null);Qt.options.__file="src/components/overlays/Segment.vue";const $t=Qt.exports;function Rt(t){for(var e,n,r,i=t.$props,o=i.data,a=i.layout.t2screen,c=i.layout,u=[],l=[],h=Math.max.apply(Math,s(o.map((function(t){return t[5]})))),d=i.config.VOLSCALE*c.height/h,f=void 0,p=b(Yt(c,i,o),2),v=p[0],g=p[1],m=c.px_step*g,y=m>5?1:0,A=0;A<o.length;A++){var _=o[A];r=a(_[0])+1,o[A-1]&&_[0]-o[A-1][0]>v&&(f=null),e=f||Math.floor(r-.5*m),n=Math.floor(r+.5*m)-.5,u.push({x:r,w:c.px_step*i.config.CANDLEW*g,o:Math.floor(_[1]*c.A+c.B),h:Math.floor(_[2]*c.A+c.B),l:Math.floor(_[3]*c.A+c.B),c:Math.floor(_[4]*c.A+c.B),raw:_}),l.push({x1:e,x2:n,h:_[5]*d,green:_[4]>=_[1],raw:_}),f=n+y}return{candles:u,volume:l}}function Nt(t){var e=t.$props,n=e.data,r=e.layout.t2screen,i=e.layout,o=[],a=n[0]?n[0].length:0;t._i1=a<6?1:5,t._i2=a<6?function(t){return t[2]}:function(t){return t[4]>=t[1]};for(var c,u,l,h=Math.max.apply(Math,s(n.map((function(e){return e[t._i1]})))),d=(t.volscale||e.config.VOLSCALE)*i.height/h,f=void 0,p=b(Yt(i,e,n),2),v=p[0],g=p[1],m=i.px_step*g,y=m>5?1:0,A=0;A<n.length;A++){var _=n[A];l=r(_[0])+1,n[A-1]&&_[0]-n[A-1][0]>v&&(f=null),c=f||Math.floor(l-.5*m),u=Math.floor(l+.5*m)-.5,o.push({x1:c,x2:u,h:_[t._i1]*d,green:t._i2(_),raw:_}),f=u+y}return o}function Yt(t,e,n){if(t.ti_map.ib)e.tf?r=i=e.tf/t.ti_map.tf:i=(r=C.detect_interval(n))/e.interval;else var r,i=(r=e.tf||C.detect_interval(n))/e.interval;return[r,i]}var Lt=function(){function t(e,n,r){F(this,t),this.ctx=n,this.self=e,this.style=r.raw[6]||this.self,this.draw(r)}return G(t,[{key:"draw",value:function(t){var e=t.raw[4]>=t.raw[1],n=e?this.style.colorCandleUp:this.style.colorCandleDw,r=e?this.style.colorWickUp:this.style.colorWickDw,i=Math.max(t.w,1),o=Math.max(Math.floor(.5*i),1),s=Math.abs(t.o-t.c),a=t.c===t.o?1:2,c=Math.floor(t.x)-.5;if(this.ctx.strokeStyle=r,this.ctx.beginPath(),this.ctx.moveTo(c,Math.floor(t.h)),this.ctx.lineTo(c,Math.floor(t.l)),this.ctx.stroke(),t.w>1.5){this.ctx.fillStyle=n;var u=e?1:-1;this.ctx.fillRect(Math.floor(t.x-o-1),t.c,Math.floor(2*o+1),u*Math.max(s,a))}else this.ctx.strokeStyle=n,this.ctx.beginPath(),this.ctx.moveTo(c,Math.floor(Math.min(t.o,t.c))),this.ctx.lineTo(c,Math.floor(Math.max(t.o,t.c))+(t.o===t.c?1:0)),this.ctx.stroke()}}]),t}(),Ut=function(){function t(e,n,r){F(this,t),this.ctx=n,this.$p=e.$props,this.self=e,this.style=r.raw[6]||this.self,this.draw(r)}return G(t,[{key:"draw",value:function(t){var e=this.$p.layout.height,n=t.x2-t.x1,r=Math.floor(t.h);this.ctx.fillStyle=t.green?this.style.colorVolUp:this.style.colorVolDw,this.ctx.fillRect(Math.floor(t.x1),Math.floor(e-r-.5),Math.floor(n),Math.floor(r+1))}}]),t}(),Ft=function(){function t(e){F(this,t),this.comp=e}return G(t,[{key:"init_shader",value:function(){var t=this,e=this.comp.$props.layout,n=this.comp.$props.config,r=this.comp;this.comp.$emit("new-shader",{target:"sidebar",draw:function(i){var o=t.last_bar();if(o){var s=i.canvas.width,a=n.PANHEIGHT,c=o.price.toFixed(e.prec);i.fillStyle=o.color;var u=o.y-.5*a-.5;i.fillRect(-1,u,s+1,a),i.fillStyle=r.$props.colors.textHL,i.textAlign="left",i.fillText(c,7,u+15)}}}),this.shader=!0}},{key:"draw",value:function(t){if(this.comp.$props.meta.last){this.shader||this.init_shader();var e=this.comp.$props.layout,n=this.comp.$props.last,r=n[4]>=n[1],i=r?this.green():this.red(),o=e.$2screen(n[4])+(r?1:0);t.strokeStyle=i,t.setLineDash([1,1]),t.beginPath(),t.moveTo(0,o),t.lineTo(e.width,o),t.stroke(),t.setLineDash([])}}},{key:"last_bar",value:function(){if(this.comp.data.length){var t=this.comp.$props.layout,e=this.comp.data[this.comp.data.length-1];return{y:t.$2screen(e[4]),price:e[4],color:e[4]>=e[1]?this.green():this.red()}}}},{key:"last_price",value:function(){return this.comp.$props.meta.last?this.comp.$props.meta.last[4]:void 0}},{key:"green",value:function(){return this.comp.colorCandleUp}},{key:"red",value:function(){return this.comp.colorCandleDw}}]),t}(),Pt=it({name:"Candles",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.2.1"}},init:function(){this.price=new Ft(this)},draw:function(t){if(this.$props.sub===this.$props.data)var e={candles:this.$props.layout.candles,volume:this.$props.layout.volume};else e=Rt(this);if(this.show_volume)for(var n=e.volume,r=0,i=n.length;r<i;r++)new Ut(this,t,n[r]);var o=e.candles;for(r=0,i=o.length;r<i;r++)new Lt(this,t,o[r]);this.price_line&&this.price.draw(t)},use_for:function(){return["Candles"]},y_range:function(){for(var t=-1/0,e=1/0,n=0,r=this.sub.length;n<r;n++){var i=this.sub[n];i[2]>t&&(t=i[2]),i[3]<e&&(e=i[3])}return[t,e]}},computed:{sett:function(){return this.$props.settings},show_volume:function(){return!("showVolume"in this.sett)||this.sett.showVolume},price_line:function(){return!("priceLine"in this.sett)||this.sett.priceLine},colorCandleUp:function(){return this.sett.colorCandleUp||this.$props.colors.candleUp},colorCandleDw:function(){return this.sett.colorCandleDw||this.$props.colors.candleDw},colorWickUp:function(){return this.sett.colorWickUp||this.$props.colors.wickUp},colorWickDw:function(){return this.sett.colorWickDw||this.$props.colors.wickDw},colorWickSm:function(){return this.sett.colorWickSm||this.$props.colors.wickSm},colorVolUp:function(){return this.sett.colorVolUp||this.$props.colors.volUp},colorVolDw:function(){return this.sett.colorVolDw||this.$props.colors.volDw}},data:function(){return{price:{}}}},void 0,void 0,!1,null,null,null);Pt.options.__file="src/components/overlays/Candles.vue";const Gt=Pt.exports;function Ht(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var zt=it({name:"Volume",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.1.0"}},draw:function(t){var e,n=Ht(Nt(this));try{for(n.s();!(e=n.n()).done;){var r=e.value;new Ut(this,t,r)}}catch(t){n.e(t)}finally{n.f()}},use_for:function(){return["Volume"]},legend:function(t){var e=(this._i2?this._i2(t):t[2])?this.colorVolUpLegend:this.colorVolDwLegend;return[{value:t[this._i1||1],color:e}]},y_range:function(t,e){var n=this;if(5===this._i1){var r=this.$props.sub;return[Math.max.apply(Math,s(r.map((function(t){return t[n._i1]})))),Math.min.apply(Math,s(r.map((function(t){return t[n._i1]}))))]}return[t,e]}},computed:{sett:function(){return this.$props.settings},colorVolUp:function(){return this.sett.colorVolUp||this.$props.colors.volUp},colorVolDw:function(){return this.sett.colorVolDw||this.$props.colors.volDw},colorVolUpLegend:function(){return this.sett.colorVolUpLegend||this.$props.colors.candleUp},colorVolDwLegend:function(){return this.sett.colorVolDwLegend||this.$props.colors.candleDw},volscale:function(){return this.sett.volscale||this.$props.grid_id>0?.85:this.$props.config.VOLSCALE}},data:function(){return{}}},void 0,void 0,!1,null,null,null);zt.options.__file="src/components/overlays/Volume.vue";const Jt=zt.exports,Wt={name:"Splitters",mixins:[yt],methods:{meta_info:function(){return{author:"C451",version:"1.0.1"}},draw:function(t){var e=this,n=this.$props.layout;t.lineWidth=this.line_width,t.strokeStyle=this.line_color,this.$props.data.forEach((function(r,i){t.beginPath();var o=n.t2screen(r[0]);t.setLineDash([10,10]),t.moveTo(o,0),t.lineTo(o,e.layout.height),t.stroke(),r[1]&&e.draw_label(t,o,r)}))},draw_label:function(t,e,n){var r=n[2]?1:-1;e+=2.5*r,t.font=this.new_font;var i=n[4]||this.y_position,o=t.measureText(n[1]).width+10,s=this.layout.height*(1-i);s=Math.floor(s),t.fillStyle=n[3]||this.flag_color,t.beginPath(),t.moveTo(e,s),t.lineTo(e+10*r,s-10*r),t.lineTo(e+(o+10)*r,s-10*r),t.lineTo(e+(o+10)*r,s+10*r),t.lineTo(e+10*r,s+10*r),t.closePath(),t.fill(),t.fillStyle=this.label_color,t.textAlign=r<0?"right":"left",t.fillText(n[1],e+15*r,s+4)},use_for:function(){return["Splitters"]}},computed:{sett:function(){return this.$props.settings},new_font:function(){return this.sett.font||"12px "+this.$props.font.split("px").pop()},flag_color:function(){return this.sett.flagColor||"#4285f4"},label_color:function(){return this.sett.labelColor||"#fff"},line_color:function(){return this.sett.lineColor||"#4285f4"},line_width:function(){return this.sett.lineWidth||1},y_position:function(){return this.sett.yPosition||.9}},data:function(){return{}}};var qt=it(Wt,void 0,void 0,!1,null,null,null);qt.options.__file="src/components/overlays/Splitters.vue";const Vt=qt.exports;function Xt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var te=function(){function t(e){F(this,t),this.comp=e,this.map={},this.listeners=0,this.keymap={}}return G(t,[{key:"on",value:function(t,e){e&&(this.map[t]=this.map[t]||[],this.map[t].push(e),this.listeners++)}},{key:"emit",value:function(t,e){if(t in this.map){var n,r=Xt(this.map[t]);try{for(r.s();!(n=r.n()).done;)(0,n.value)(e)}catch(t){r.e(t)}finally{r.f()}}"keydown"===t&&(this.keymap[e.key]||this.emit(e.key),this.keymap[e.key]=!0),"keyup"===t&&(this.keymap[e.key]=!1)}},{key:"pressed",value:function(t){return this.keymap[t]}}]),t}();function ee(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ne(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ne(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const re={methods:{init_tool:function(){var t=this;this.collisions=[],this.pins=[],this.mouse.on("mousemove",(function(e){t.collisions.some((function(e){return e(t.mouse.x,t.mouse.y)}))?t.show_pins=!0:t.show_pins=!1,t.drag&&t.drag_update()})),this.mouse.on("mousedown",(function(e){C.default_prevented(e)||t.collisions.some((function(e){return e(t.mouse.x,t.mouse.y)}))&&(t.selected||t.$emit("object-selected"),t.start_drag(),e.preventDefault(),t.pins.forEach((function(t){return t.mousedown(e,!0)})))})),this.mouse.on("mouseup",(function(e){t.drag=null,t.$emit("scroll-lock",!1)})),this.keys=new te(this),this.keys.on("Delete",this.remove_tool),this.keys.on("Backspace",this.remove_tool),this.show_pins=!1,this.drag=null},render_pins:function(t){(this.selected||this.show_pins)&&this.pins.forEach((function(e){return e.draw(t)}))},set_state:function(t){this.$emit("change-settings",{$state:t})},watch_uuid:function(t,e){if(t.$uuid!==e.$uuid){var n,r=ee(this.pins);try{for(r.s();!(n=r.n()).done;)(e=n.value).re_init()}catch(t){r.e(t)}finally{r.f()}this.collisions=[],this.show_pins=!1,this.drag=null}},pre_draw:function(){this.collisions=[]},remove_tool:function(){this.selected&&this.$emit("remove-tool")},start_drag:function(){this.$emit("scroll-lock",!0);var t=this.$props.cursor;this.drag={t:t.t,y$:t.y$},this.pins.forEach((function(t){return t.rec_position()}))},drag_update:function(){var t=this.$props.cursor.t-this.drag.t,e=this.$props.cursor.y$-this.drag.y$;this.pins.forEach((function(n){return n.update_from([n.t1+t,n.y$1+e],!0)}))}},computed:{selected:function(){return this.$props.settings.$selected},state:function(){return this.$props.settings.$state}}},ie=JSON.parse('{"extended.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZAQMAAAD+JxcgAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAZQTFRFAAAATU1NkJ+rOQAAAAJ0Uk5TAP9bkSK1AAAANElEQVR4nGNggABGEMEEIlhABAeI+AASF0AlHmAqA4kzKAAx8wGQuAMKwd6AoYzBAWonAwAcLwTgNfJ3RQAAAABJRU5ErkJggg==","ray.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZAQMAAAD+JxcgAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAZQTFRFAAAATU1NkJ+rOQAAAAJ0Uk5TAP9bkSK1AAAAMklEQVR4nGNgQAJMIIIFRHCACAEQoQAiHICYvQEkjkrwYypjAIkzwk2zAREuqIQFzD4AE3kE4BEmGggAAAAASUVORK5CYII=","segment.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZAgMAAAC5h23wAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFAAAATU1NJCQkCxcHIQAAAAN0Uk5TAP8SmutI5AAAACxJREFUeJxjYMACGAMgNAsLdpoVKi8AVe8A1QblQlWRKt0AoULw2w1zGxoAABdiAviQhF/mAAAAAElFTkSuQmCC","add.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAH5QTFRFAAAAAAAAAAAAAAAAAAAAAAAAAAAACgoKBgYGGxsbKioqPz8/Pj4+BQUFCQkJAQEBZGRkh4eHAgICEBAQNjY2g4ODgYGBAAAAAwMDeXl5d3d3GBgYERERgICAgICANDQ0PDw8Y2NjCAgIhYWFGhoaJycnOjo6YWFhgICAdXV14Y16sQAAACp0Uk5TAAILDxIKESEnJiYoKCgTKSkpKCAnKSkFKCkpJiDl/ycpKSA2JyYpKSkpOkQ+xgAAARdJREFUeJzllNt2gyAQRTWiRsHLoDU0GpPYmMv//2BMS+sgl6Z9bM8bi73gnJkBz/sn8lcBIUHofwtG8TpJKUuTLI6cYF7QEqRKynP71VX9AkhNXVlsbMQrLLQVGyPZLsGHWgPrCxMJwHUPlXa79NBp2et5d9f3u3m1XxatQNn7SagOXCUjCjYUDuqxcWlHj4MSfw12FDJchFViRN8+1qcQoUH6lR1L1mEMEErofB6WzEUwylzomfzOQGiOJdXiWH7mQoUyMa4WXJQWOBvLFvPCGxt6FSr5kyH0qi0YddNG2/pgCsOjff4ZTizXPNwKIzl56OoGg9d9Z/+5cs6On+CFCfevFQ3ZaTycx1YMbvDdRvjkp/lHdAcPXzokxcwfDwAAAABJRU5ErkJggg==","cursor.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZAgMAAAC5h23wAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAxQTFRFAAAATU1NTU1NTU1NwlMHHwAAAAR0Uk5TAOvhxbpPrUkAAAAkSURBVHicY2BgYHBggAByabxg1WoGBq2pRCk9AKUbcND43AEAufYHlSuusE4AAAAASUVORK5CYII=","display_off.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAU1QTFRFAAAAh4eHh4eHAAAAAAAAAAAAAwMDAAAAAAAAhoaGGBgYgYGBAAAAPz8/AgICg4ODCQkJhISEh4eHh4eHPj4+NjY2gYGBg4ODgYGBgYGBgoKCAQEBJycngoKChYWFEBAQg4ODCAgIKioqZGRkCgoKBQUFERERd3d3gYGBGxsbNDQ0hISEgYGBPDw8gYGBgYGBh4eHh4eHhYWFh4eHgoKChYWFgYGBgYGBg4ODhoaGg4ODYWFhgoKCBgYGdXV1goK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4bxm6H5R+wLQYMSQXZNzbcAAAAASUVORK5CYII=","price_range.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZAQMAAAD+JxcgAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAZQTFRFAAAATU1NkJ+rOQAAAAJ0Uk5TAP9bkSK1AAAAIUlEQVR4nGNggAPm/w9gTA4QIQMitECEJ1yMEgLNDiAAADfgBMRu78GgAAAAAElFTkSuQmCC","price_time.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZAQMAAAD+JxcgAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAZQTFRFAAAATU1NkJ+rOQAAAAJ0Uk5TAP9bkSK1AAAAOklEQVR4nGNggAPm/w9gTA4QIQPEClpMQMITRHCACScQoQQihBgY9P//grKgYk5wdTACYhQHFjuAAABZFAlc4e1fcQAAAABJRU5ErkJggg==","remove.png":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAMAAADyHTlpAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAK5QTFRFAAAAh4eHgICAAAAAAAAAh4eHAAAAAwMDAAAAAAAAgICAGBgYAAAAPz8/AgICgICACQkJhoaGhoaGgICAPj4+NjY2gYGBg4ODgYGBAQEBJycngoKCEBAQgICAgICACAgIKioqZGRkCgoKBQUFERERd3d3gYGBGxsbNDQ0gICAPDw8YWFhBgYGdXV1gICAg4ODgICAAAAAOjo6GhoaeXl5gICAhYWFY2NjhYWFgICA9O0oCgAAADp0Uk5TACn/AhErBSgPEvEmCigowxMuMcgoJ7hWrCkmdCD6vSAmKSEoICkpJie6KSknKSkp0wspJynCMik11rrLte8AAAFwSURBVHic5ZTXkoIwFIZNAAPSpKkoRQV7Wcva3v/FFiRmEwise7t7bs7MP98k/ylJq/VPQjjKiiJrwo+gON0uxro7XiRTsRHs+voE4JjoRrf+6sD7AFTMvaDG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ga3VBezGuggFQAAAABJRU5ErkJggg=="}');function oe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var se=function(){function t(e,n,r){var i=this;void 0===r&&(r={}),F(this,t),this.RADIUS=e.$props.config.PIN_RADIUS||5.5,this.RADIUS_SQ=Math.pow(this.RADIUS+7,2),C.is_mobile&&(this.RADIUS+=2,this.RADIUS_SQ*=2.5),this.COLOR_BACK=e.$props.colors.back,this.COLOR_BR=e.$props.colors.text,this.comp=e,this.layout=e.layout,this.mouse=e.mouse,this.name=n,this.state=r.state||"settled",this.hidden=r.hidden||!1,this.mouse.on("mousemove",(function(t){return i.mousemove(t)})),this.mouse.on("mousedown",(function(t){return i.mousedown(t)})),this.mouse.on("mouseup",(function(t){return i.mouseup(t)})),"finished"===e.state?(this.state="settled",this.update_from(e.$props.settings[n])):this.update(),"settled"!==this.state&&this.comp.$emit("scroll-lock",!0)}return G(t,[{key:"re_init",value:function(){this.update_from(this.comp.$props.settings[this.name])}},{key:"draw",value:function(t){if(!this.hidden)switch(this.state){case"tracking":break;case"dragging":this.moved||this.draw_circle(t);break;case"settled":this.draw_circle(t)}}},{key:"draw_circle",value:function(t){if(this.layout=this.comp.layout,this.comp.selected)var e=this.RADIUS,n=1.5;else e=.95*this.RADIUS,n=1;t.lineWidth=n,t.strokeStyle=this.COLOR_BR,t.fillStyle=this.COLOR_BACK,t.beginPath(),t.arc(this.x=this.layout.t2screen(this.t),this.y=this.layout.$2screen(this.y$),e+.5,0,2*Math.PI,!0),t.fill(),t.stroke()}},{key:"update",value:function(){this.y$=this.comp.$props.cursor.y$,this.y=this.comp.$props.cursor.y,this.t=this.comp.$props.cursor.t,this.x=this.comp.$props.cursor.x,this.comp.$emit("change-settings",oe({},this.name,[this.t,this.y$]))}},{key:"update_from",value:function(t,e){void 0===e&&(e=!1),t&&(this.layout=this.comp.layout,this.y$=t[1],this.y=this.layout.$2screen(this.y$),this.t=t[0],this.x=this.layout.t2screen(this.t),e&&this.comp.$emit("change-settings",oe({},this.name,[this.t,this.y$])))}},{key:"rec_position",value:function(){this.t1=this.t,this.y$1=this.y$}},{key:"mousemove",value:function(t){switch(this.state){case"tracking":case"dragging":this.moved=!0,this.update()}}},{key:"mousedown",value:function(t,e){if(void 0===e&&(e=!1),!C.default_prevented(t)||e){switch(this.state){case"tracking":this.state="settled",this.on_settled&&this.on_settled(),this.comp.$emit("scroll-lock",!1);break;case"settled":if(this.hidden)return;this.hover()&&(this.state="dragging",this.moved=!1,this.comp.$emit("scroll-lock",!0),this.comp.$emit("object-selected"))}this.hover()&&t.preventDefault()}}},{key:"mouseup",value:function(t){"dragging"===this.state&&(this.state="settled",this.on_settled&&this.on_settled(),this.comp.$emit("scroll-lock",!1))}},{key:"on",value:function(t,e){"settled"===t&&(this.on_settled=e)}},{key:"hover",value:function(){var t=this.x,e=this.y;return(t-this.mouse.x)*(t-this.mouse.x)+(e-this.mouse.y)*(e-this.mouse.y)<this.RADIUS_SQ}}]),t}(),ae=function(){function t(e,n){F(this,t),this.ctx=n,this.comp=e,this.T=e.$props.config.TOOL_COLL,C.is_mobile&&(this.T*=2)}return G(t,[{key:"draw",value:function(t,e){var n=this.comp.$props.layout,r=n.t2screen(t[0]),i=n.$2screen(t[1]),o=n.t2screen(e[0]),s=n.$2screen(e[1]);this.ctx.moveTo(r,i),this.ctx.lineTo(o,s),this.comp.collisions.push(this.make([r,i],[o,s]))}},{key:"make",value:function(t,e){var n=this;return function(r,i){return E.point2seg([r,i],t,e)<n.T}}}]),t}(),ce=function(){function t(e,n){F(this,t),this.ctx=n,this.comp=e,this.T=e.$props.config.TOOL_COLL,C.is_mobile&&(this.T*=2)}return G(t,[{key:"draw",value:function(t,e){var n=this.comp.$props.layout,r=n.t2screen(t[0]),i=n.$2screen(t[1]),o=n.t2screen(e[0]),s=n.$2screen(e[1]);this.ctx.moveTo(r,i),this.ctx.lineTo(o,s);var a=n.width,c=n.height,u=(s-i)/(o-r),l=Math.sign(o-r||s-i),h=a*l*2,d=a*u*l*2;d===1/0&&(h=0,d=c*l),this.ctx.moveTo(o,s),this.ctx.lineTo(o+h,s+d),this.ray||(this.ctx.moveTo(r,i),this.ctx.lineTo(r-h,i-d)),this.comp.collisions.push(this.make([r,i],[o,s]))}},{key:"make",value:function(t,e){var n=this,r=this.ray?E.point2ray.bind(E):E.point2line.bind(E);return function(i,o){return r([i,o],t,e)<n.T}}}]),t}();function ue(t,e){return ue=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ue(t,e)}function le(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ue(t,e)}function he(t){return he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(t)}function de(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fe(t,e){return!e||"object"!==he(e)&&"function"!=typeof e?de(t):e}function pe(t){return pe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pe(t)}function ve(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pe(t);if(e){var i=pe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fe(this,n)}}var ge=function(t){le(n,t);var e=ve(n);function n(t,r){var i;return F(this,n),(i=e.call(this,t,r)).ray=!0,i}return n}(ce),me=it({name:"LineTool",mixins:[yt,re],methods:{meta_info:function(){return{author:"C451",version:"1.1.0"}},tool:function(){return{group:"Lines",icon:ie["segment.png"],type:"Segment",hint:"This hint will be shown on hover",data:[],settings:{},mods:{Extended:{settings:{extended:!0},icon:ie["extended.png"]},Ray:{settings:{ray:!0},icon:ie["ray.png"]}}}},init:function(){var t=this;this.pins.push(new se(this,"p1")),this.pins.push(new se(this,"p2",{state:"tracking"})),this.pins[1].on("settled",(function(){t.set_state("finished"),t.$emit("drawing-mode-off")}))},draw:function(t){this.p1&&this.p2&&(t.lineWidth=this.line_width,t.strokeStyle=this.color,t.beginPath(),this.sett.ray?new ge(this,t).draw(this.p1,this.p2):this.sett.extended?new ce(this,t).draw(this.p1,this.p2):new ae(this,t).draw(this.p1,this.p2),t.stroke(),this.render_pins(t))},use_for:function(){return["LineTool"]},data_colors:function(){return[this.color]}},computed:{sett:function(){return this.$props.settings},p1:function(){return this.$props.settings.p1},p2:function(){return this.$props.settings.p2},line_width:function(){return this.sett.lineWidth||.9},color:function(){return this.sett.color||"#42b28a"}},data:function(){return{}}},void 0,void 0,!1,null,null,null);me.options.__file="src/components/overlays/LineTool.vue";const ye=me.exports,Ae={name:"RangeTool",mixins:[yt,re],methods:{meta_info:function(){return{author:"C451",version:"2.0.1"}},tool:function(){return{group:"Measurements",icon:ie["price_range.png"],type:"Price",hint:"Price Range",data:[],settings:{},mods:{Time:{icon:ie["time_range.png"],settings:{price:!1,time:!0}},PriceTime:{icon:ie["price_time.png"],settings:{price:!0,time:!0}},ShiftMode:{settings:{price:!0,time:!0,shiftMode:!0},hidden:!0}}}},init:function(){var t=this;this.pins.push(new se(this,"p1",{hidden:this.shift})),this.pins.push(new se(this,"p2",{state:"tracking",hidden:this.shift})),this.pins[1].on("settled",(function(){t.set_state("finished"),t.$emit("drawing-mode-off"),t.shift&&t._$emit("custom-event",{event:"object-selected",args:[]})}))},draw:function(t){if(this.p1&&this.p2){var e=Math.sign(this.p2[1]-this.p1[1]),n=this.$props.layout,r=n.t2screen(.5*(this.p1[0]+this.p2[0]));t.lineWidth=this.line_width,t.strokeStyle=this.color,t.fillStyle=this.back_color;var i=n.t2screen(this.p1[0]),o=n.$2screen(this.p1[1]),s=n.t2screen(this.p2[0]),a=n.$2screen(this.p2[1]);t.fillRect(i,o,s-i,a-o),this.price&&this.vertical(t,i,o,s,a,r),this.time&&this.horizontal(t,i,o,s,a,r),this.draw_value(t,e,r,a),this.render_pins(t)}},vertical:function(t,e,n,r,i,o){this.$props.layout;var s=Math.sign(this.p2[1]-this.p1[1]);t.beginPath(),this.shift||(new ae(this,t).draw([this.p1[0],this.p2[1]],[this.p2[0],this.p2[1]]),new ae(this,t).draw([this.p1[0],this.p1[1]],[this.p2[0],this.p1[1]])),t.moveTo(o-4,i+5*s),t.lineTo(o,i),t.lineTo(o+4,i+5*s),t.stroke(),t.beginPath(),t.setLineDash([5,5]),new ae(this,t).draw([.5*(this.p1[0]+this.p2[0]),this.p2[1]],[.5*(this.p1[0]+this.p2[0]),this.p1[1]]),t.stroke(),t.setLineDash([])},horizontal:function(t,e,n,r,i,o){var s=this.$props.layout,a=Math.sign(this.p2[0]-this.p1[0]),c=(s.$2screen(this.p1[1])+s.$2screen(this.p2[1]))/2;t.beginPath(),this.shift||(new ae(this,t).draw([this.p1[0],this.p1[1]],[this.p1[0],this.p2[1]]),new ae(this,t).draw([this.p2[0],this.p1[1]],[this.p2[0],this.p2[1]])),t.moveTo(r-5*a,c-4),t.lineTo(r,c),t.lineTo(r-5*a,c+4),t.stroke(),t.beginPath(),t.setLineDash([5,5]),t.moveTo(e,c),t.lineTo(r,c),t.stroke(),t.setLineDash([])},draw_value:function(t,e,n,r){var i=this;t.font=this.new_font;var o=(this.p2[1]-this.p1[1]).toFixed(this.prec),a=(100*(this.p2[1]/this.p1[1]-1)).toFixed(this.prec),c=function(t){return i.layout.ti_map.smth2t(t)},u=c(this.p2[0])-c(this.p1[0]),l=(this.layout.ti_map.tf,function(t){var e=i.layout.c_magnet(t);return(i.layout.candles||i.layout.master_grid.candles).indexOf(e)}),h=l(this.p2[0])-l(this.p1[0]),d=this.t2str(u),f=[];this.price&&f.push("".concat(o," (").concat(a,"%)")),this.time&&f.push("".concat(h," bars, ").concat(d));var p=(f=f.join("\n")).split("\n"),v=Math.max.apply(Math,s(p.map((function(e){return t.measureText(e).width+20}))).concat([100])),g=p.length,m=20*g;t.fillStyle=this.value_back,t.fillRect(n-.5*v,r-(10+m)*e,v,m*e),t.fillStyle=this.value_color,t.textAlign="center",p.forEach((function(i,o){t.fillText(i,n,r+(e>0?20*o-20*g+5:20*o+25))}))},t2str:function(t){for(var e=Math.sign(t),n=Math.abs(t),r=[[1e3,"s",60],[6e4,"m",60],[36e5,"h",24],[864e5,"D",7],[6048e5,"W",4],[2592e6,"M",12],[31536e6,"Y",1/0],[1/0,"Eternity",1/0]],i=0;i<r.length;i++)if(r[i][0]=Math.floor(n/r[i][0]),0===r[i][0]){var o=r[i-1],s=r[i-2],a=e<0?"-":"";o&&(a+=o.slice(0,2).join(""));var c=s?s[0]-o[0]*s[2]:0;return s&&c&&(a+=" ",a+="".concat(c).concat(s[1])),a}},use_for:function(){return["RangeTool"]},data_colors:function(){return[this.color]}},computed:{sett:function(){return this.$props.settings},p1:function(){return this.$props.settings.p1},p2:function(){return this.$props.settings.p2},line_width:function(){return this.sett.lineWidth||.9},color:function(){return this.sett.color||this.$props.colors.cross},back_color:function(){return this.sett.backColor||"#9b9ba316"},value_back:function(){return this.sett.valueBack||"#9b9ba316"},value_color:function(){return this.sett.valueColor||this.$props.colors.text},prec:function(){return this.sett.precision||2},new_font:function(){return"12px "+this.$props.font.split("px").pop()},price:function(){return!("price"in this.sett)||this.sett.price},time:function(){return"time"in this.sett&&this.sett.time},shift:function(){return this.sett.shiftMode}},data:function(){return{}}};var _e=it(Ae,void 0,void 0,!1,null,null,null);_e.options.__file="src/components/overlays/RangeTool.vue";const be=_e.exports;function we(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return xe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}const ke={name:"Grid",props:["sub","layout","range","interval","cursor","colors","overlays","width","height","data","grid_id","y_transform","font","tv_id","config","meta","shaders"],mixins:[nt,{methods:{on_ux_event:function(t,e){if("new-interface"===t.event)t.args[0].target===e&&(t.args[0].vars=t.args[0].vars||{},t.args[0].grid_id=t.args[1],t.args[0].overlay_id=t.args[2],this.uxs.push(t.args[0]));else if("close-interface"===t.event)this.uxs=this.uxs.filter((function(e){return e.uuid!==t.args[0]}));else if("modify-interface"===t.event){var n=this.uxs.filter((function(e){return e.uuid===t.args[0]}));n.length&&this.modify(n[0],t.args[1])}else if("hide-interface"===t.event){var r=this.uxs.filter((function(e){return e.uuid===t.args[0]}));r.length&&(r[0].hidden=!0,this.modify(r[0],{hidden:!0}))}else{if("show-interface"!==t.event)return t;var i=this.uxs.filter((function(e){return e.uuid===t.args[0]}));i.length&&this.modify(i[0],{hidden:!1})}},modify:function(t,e){for(var n in void 0===e&&(e={}),e)n in t&&this.$set(t,n,e[n])},remove_all_ux:function(t){this.uxs=this.uxs.filter((function(e){return e.overlay.id!==t}))}},data:function(){return{uxs:[]}}}],components:{Crosshair:st,KeyboardListener:ct},created:function(){var t=this;this._list=[bt,kt,Et,Ot,Dt,$t,Gt,Jt,Vt,ye,be].concat(this.$props.overlays),this._registry={};var e=[];this._list.forEach((function(n,r){var i=n.methods.use_for();n.methods.tool&&e.push({use_for:i,info:n.methods.tool()}),i.forEach((function(e){t._registry[e]=r}))})),this.$emit("custom-event",{event:"register-tools",args:e}),this.$on("custom-event",(function(e){return t.on_ux_event(e,"grid")}))},beforeDestroy:function(){this.renderer&&this.renderer.destroy()},mounted:function(){var t=this,e=this.$refs.canvas;this.renderer=new et(e,this),this.setup(),this.$nextTick((function(){return t.redraw()}))},render:function(t){var e=this.$props.grid_id,n=this.$props.layout.grids[e];return this.create_canvas(t,"grid-".concat(e),{position:{x:0,y:n.offset||0},attrs:{width:n.width,height:n.height,overflow:"hidden"},style:{backgroundColor:this.$props.colors.back},hs:[t(st,{props:this.common_props(),on:this.layer_events}),t(ct,{on:this.keyboard_events}),t(pt,{props:{id:e,tv_id:this.$props.tv_id,uxs:this.uxs,colors:this.$props.colors,config:this.$props.config,updater:Math.random()},on:{"custom-event":this.emit_ux_event}})].concat(this.get_overlays(t))})},methods:{new_layer:function(t){var e=this;this.$nextTick((function(){return e.renderer.new_layer(t)}))},del_layer:function(t){var e=this;this.$nextTick((function(){return e.renderer.del_layer(t)}));var n=this.$props.grid_id;this.$emit("custom-event",{event:"remove-shaders",args:[n,t]}),this.$emit("custom-event",{event:"remove-layer-meta",args:[n,t]}),this.remove_all_ux(t)},get_overlays:function(t){var e,n=this,r=[],i={},o=we(this.$props.data);try{for(o.s();!(e=o.n()).done;){var s=e.value,a=this._list[this._registry[s.type]];a&&(a.methods.calc&&(a=this.inject_renderer(a)),r.push({cls:a,type:s.type,data:s.data,settings:s.settings,i0:s.i0,tf:s.tf,last:s.last}),i[s.type]=0)}}catch(t){o.e(t)}finally{o.f()}return r.map((function(e,r){return t(e.cls,{on:n.layer_events,attrs:Object.assign(n.common_props(),{id:"".concat(e.type,"_").concat(i[e.type]++),type:e.type,data:e.data,settings:e.settings,i0:e.i0,tf:e.tf,num:r,grid_id:n.$props.grid_id,meta:n.$props.meta,last:e.last})})}))},common_props:function(){return{cursor:this.$props.cursor,colors:this.$props.colors,layout:this.$props.layout.grids[this.$props.grid_id],interval:this.$props.interval,sub:this.$props.sub,font:this.$props.font,config:this.$props.config}},emit_ux_event:function(t){this.on_ux_event(t,"grid")&&this.$emit("custom-event",t)},inject_renderer:function(t){var e=t.methods.calc();if(!e.conf||!e.conf.renderer||t.__renderer__)return t;var n=this._list.find((function(t){return t.name===e.conf.renderer}));return n?(t.mixins.push(n),t.__renderer__=e.conf.renderer,t):t}},computed:{is_active:function(){return void 0!==this.$props.cursor.t&&this.$props.cursor.grid_id===this.$props.grid_id}},watch:{range:{handler:function(){var t=this;this.$nextTick((function(){return t.redraw()}))},deep:!0},cursor:{handler:function(){this.$props.cursor.locked||this.redraw()},deep:!0},overlays:{handler:function(t){var e,n=we(t);try{for(n.s();!(e=n.n()).done;){var r,i=e.value,o=we(this.$children);try{for(o.s();!(r=o.n()).done;){var s=r.value;if("string"==typeof s.id){var a=s.id.split("_");if(a.pop(),a.join("_")===i.name){if(s.calc=i.methods.calc,!s.calc)continue;var c=s.calc.toString();c!==i.__prevscript__&&s.exec_script(),i.__prevscript__=c}}}}catch(t){o.e(t)}finally{o.f()}}}catch(t){n.e(t)}finally{n.f()}},deep:!0},shaders:function(t,e){this.redraw()}},data:function(){var t=this;return{layer_events:{"new-grid-layer":this.new_layer,"delete-grid-layer":this.del_layer,"show-grid-layer":function(e){t.renderer.show_hide_layer(e),t.redraw()},"redraw-grid":this.redraw,"layer-meta-props":function(e){return t.$emit("layer-meta-props",e)},"custom-event":function(e){return t.$emit("custom-event",e)}},keyboard_events:{"register-kb-listener":function(e){t.$emit("register-kb-listener",e)},"remove-kb-listener":function(e){t.$emit("remove-kb-listener",e)},keyup:function(e){t.is_active&&t.renderer.propagate("keyup",e)},keydown:function(e){t.is_active&&t.renderer.propagate("keydown",e)},keypress:function(e){t.is_active&&t.renderer.propagate("keypress",e)}}}}};var Ce=it(ke,void 0,void 0,!1,null,null,null);Ce.options.__file="src/components/Grid.vue";const Se=Ce.exports;function Ee(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ie(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Be,Oe=function(){function t(e,n,r){void 0===r&&(r="right"),F(this,t),Be=n.config.PANHEIGHT,this.canvas=e,this.ctx=e.getContext("2d"),this.comp=n,this.$p=n.$props,this.data=this.$p.sub,this.range=this.$p.range,this.id=this.$p.grid_id,this.layout=this.$p.layout.grids[this.id],this.side=r,this.listeners()}return G(t,[{key:"listeners",value:function(){var t=this,e=this.mc=new q.Manager(this.canvas);e.add(new q.Pan({direction:q.DIRECTION_VERTICAL,threshold:0})),e.add(new q.Tap({event:"doubletap",taps:2,posThreshold:50})),e.on("panstart",(function(e){t.$p.y_transform?t.zoom=t.$p.y_transform.zoom:t.zoom=1,t.y_range=[t.layout.$_hi,t.layout.$_lo],t.drug={y:e.center.y,z:t.zoom,mid:E.log_mid(t.y_range,t.layout.height),A:t.layout.A,B:t.layout.B}})),e.on("panmove",(function(e){t.drug&&(t.zoom=t.calc_zoom(e),t.comp.$emit("sidebar-transform",{grid_id:t.id,zoom:t.zoom,auto:!1,range:t.calc_range(),drugging:!0}),t.update())})),e.on("panend",(function(){t.drug=null,t.comp.$emit("sidebar-transform",{grid_id:t.id,drugging:!1})})),e.on("doubletap",(function(){t.comp.$emit("sidebar-transform",{grid_id:t.id,zoom:1,auto:!0}),t.zoom=1,t.update()}))}},{key:"update",value:function(){this.layout=this.$p.layout.grids[this.id];var t,e,n,r,i=this.layout.ys,o=this.side,s=this.layout.sb;switch(this.ctx.font=this.$p.font,o){case"left":case"right":t=0,e=0,n=Math.floor(s),r=this.layout.height,this.ctx.clearRect(t,e,n,r),this.ctx.strokeStyle=this.$p.colors.scale,this.ctx.beginPath(),this.ctx.moveTo(t+.5,0),this.ctx.lineTo(t+.5,r),this.ctx.stroke()}this.ctx.fillStyle=this.$p.colors.text,this.ctx.beginPath();var a,c=Ee(i);try{for(c.s();!(a=c.n()).done;){var u=a.value;if(!(u[0]>this.layout.height)){var l="left"===o?n-.5:t-.5,h="left"===o?l-4.5:l+4.5;this.ctx.moveTo(l,u[0]-.5),this.ctx.lineTo(h,u[0]-.5);var d="left"===o?-10:10;this.ctx.textAlign="left"===o?"end":"start";var f=this.layout.prec;this.ctx.fillText(u[1].toFixed(f),l+d,u[0]+4)}}}catch(t){c.e(t)}finally{c.f()}this.ctx.stroke(),this.$p.grid_id&&this.upper_border(),this.apply_shaders(),this.$p.cursor.y&&this.$p.cursor.y$&&this.panel()}},{key:"apply_shaders",value:function(){var t,e={layout:this.$p.layout.grids[this.id],cursor:this.$p.cursor},n=Ee(this.$p.shaders);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.ctx.save(),r.draw(this.ctx,e),this.ctx.restore()}}catch(t){n.e(t)}finally{n.f()}}},{key:"upper_border",value:function(){this.ctx.strokeStyle=this.$p.colors.scale,this.ctx.beginPath(),this.ctx.moveTo(0,.5),this.ctx.lineTo(this.layout.width,.5),this.ctx.stroke()}},{key:"panel",value:function(){if(this.$p.cursor.grid_id===this.layout.id){var t=this.$p.cursor.y$.toFixed(this.layout.prec);this.ctx.fillStyle=this.$p.colors.panel;var e=this.layout.sb+1,n=this.$p.cursor.y-.5*Be-.5;this.ctx.fillRect(-1,n,e,Be),this.ctx.fillStyle=this.$p.colors.textHL,this.ctx.textAlign="left",this.ctx.fillText(t,7,n+15)}}},{key:"calc_zoom",value:function(t){var e=this.drug.y-t.center.y,n=1+(e>0?3:1)*e/this.layout.height;return C.clamp(this.drug.z*n,.005,100)}},{key:"calc_range",value:function(t,e){var n=this;void 0===t&&(t=1),void 0===e&&(e=1);var r=this.zoom/this.drug.z,i=(1/r-1)/2,o=this.y_range.slice(),s=o[0]-o[1];if(this.layout.grid.logScale){var a=this.layout.height/2,c=a-a*(1/r),u=a+a*(1/r),l=function(t){return E.exp((t-n.drug.B)/n.drug.A)};o.slice(),o[0]=l(c),o[1]=l(u)}else o[0]=o[0]+s*i*t,o[1]=o[1]-s*i*e;return o}},{key:"rezoom_range",value:function(t,e,n){this.$p.y_transform&&!this.$p.y_transform.auto&&(this.zoom=1,t<0&&(t/=3.75),t*=.25,this.y_range=[this.layout.$_hi,this.layout.$_lo],this.drug={y:0,z:this.zoom,mid:E.log_mid(this.y_range,this.layout.height),A:this.layout.A,B:this.layout.B},this.zoom=this.calc_zoom({center:{y:t*this.layout.height}}),this.comp.$emit("sidebar-transform",{grid_id:this.id,zoom:this.zoom,auto:!1,range:this.calc_range(e,n),drugging:!0}),this.drug=null,this.comp.$emit("sidebar-transform",{grid_id:this.id,drugging:!1}))}},{key:"destroy",value:function(){this.mc&&this.mc.destroy()}},{key:"mousemove",value:function(){}},{key:"mouseout",value:function(){}},{key:"mouseup",value:function(){}},{key:"mousedown",value:function(){}}]),t}();const Te={name:"Sidebar",props:["sub","layout","range","interval","cursor","colors","font","width","height","grid_id","rerender","y_transform","tv_id","config","shaders"],mixins:[nt],mounted:function(){var t=this.$refs.canvas;this.renderer=new Oe(t,this),this.setup(),this.redraw()},render:function(t){var e=this.$props.grid_id,n=this.$props.layout.grids[e];return this.create_canvas(t,"sidebar-".concat(e),{position:{x:n.width,y:n.offset||0},attrs:{rerender:this.$props.rerender,width:this.$props.width,height:n.height},style:{backgroundColor:this.$props.colors.back}})},watch:{range:{handler:function(){this.redraw()},deep:!0},cursor:{handler:function(){this.redraw()},deep:!0},rerender:function(){var t=this;this.$nextTick((function(){return t.redraw()}))}},beforeDestroy:function(){this.renderer&&this.renderer.destroy()}};var Me=it(Te,void 0,void 0,!1,null,null,null);Me.options.__file="src/components/Sidebar.vue";const De=Me.exports;var je=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"trading-vue-legend",style:t.calc_style},[0===t.grid_id?n("div",{staticClass:"trading-vue-ohlcv",style:{"max-width":t.common.width+"px"}},[n("span",{staticClass:"t-vue-title",style:{color:t.common.colors.title}},[t._v("\n "+t._s(t.common.title_txt)+"\n ")]),t._v(" "),t.show_values?n("span",[t._v("\n O"),n("span",{staticClass:"t-vue-lspan"},[t._v(t._s(t.ohlcv[0]))]),t._v("\n H"),n("span",{staticClass:"t-vue-lspan"},[t._v(t._s(t.ohlcv[1]))]),t._v("\n L"),n("span",{staticClass:"t-vue-lspan"},[t._v(t._s(t.ohlcv[2]))]),t._v("\n C"),n("span",{staticClass:"t-vue-lspan"},[t._v(t._s(t.ohlcv[3]))]),t._v("\n V"),n("span",{staticClass:"t-vue-lspan"},[t._v(t._s(t.ohlcv[4]))])]):t._e(),t._v(" "),t.show_values?t._e():n("span",{staticClass:"t-vue-lspan",style:{color:t.common.colors.text}},[t._v("\n "+t._s((t.common.meta.last||[])[4])+"\n ")])]):t._e(),t._v(" "),t._l(this.indicators,(function(e){return n("div",{staticClass:"t-vue-ind"},[n("span",{staticClass:"t-vue-iname"},[t._v(t._s(e.name))]),t._v(" "),n("button-group",{attrs:{buttons:t.common.buttons,config:t.common.config,ov_id:e.id,grid_id:t.grid_id,index:e.index,tv_id:t.common.tv_id,display:e.v},on:{"legend-button-click":t.button_click}}),t._v(" "),e.v?n("span",{staticClass:"t-vue-ivalues"},t._l(e.values,(function(e){return t.show_values?n("span",{staticClass:"t-vue-lspan t-vue-ivalue",style:{color:e.color}},[t._v("\n "+t._s(e.value)+"\n ")]):t._e()})),0):t._e(),t._v(" "),e.unk?n("span",{staticClass:"t-vue-unknown"},[t._v("\n (Unknown type)\n ")]):t._e(),t._v(" "),n("transition",{attrs:{name:"tvjs-appear"}},[e.loading?n("spinner",{attrs:{colors:t.common.colors}}):t._e()],1)],1)}))],2)};je._withStripped=!0;var Qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"t-vue-lbtn-grp"},t._l(t.buttons,(function(e,r){return n("legend-button",{key:r,attrs:{id:e.name||e,tv_id:t.tv_id,ov_id:t.ov_id,grid_id:t.grid_id,index:t.index,display:t.display,icon:e.icon,config:t.config},on:{"legend-button-click":t.button_click}})})),1)};Qe._withStripped=!0;var $e=function(){var t=this,e=t.$createElement;return(t._self._c||e)("img",{staticClass:"t-vue-lbtn",style:{width:t.config.L_BTN_SIZE+"px",height:t.config.L_BTN_SIZE+"px",margin:t.config.L_BTN_MARGIN},attrs:{src:t.base64,id:t.uuid},on:{click:t.onclick}})};$e._withStripped=!0;const Re={name:"LegendButton",props:["id","tv_id","grid_id","ov_id","index","display","icon","config"],mounted:function(){},computed:{base64:function(){return this.icon||ie[this.file_name]},file_name:function(){var t=this.$props.id;return"display"===this.$props.id&&(t=this.$props.display?"display_on":"display_off"),t+".png"},uuid:function(){var t=this.$props.tv_id,e=this.$props.grid_id,n=this.$props.ov_id;return"".concat(t,"-btn-g").concat(e,"-").concat(n)},data_type:function(){return 0===this.$props.grid_id?"onchart":"offchart"},data_index:function(){return this.$props.index}},methods:{onclick:function(){this.$emit("legend-button-click",{button:this.$props.id,type:this.data_type,dataIndex:this.data_index,grid:this.$props.grid_id,overlay:this.$props.ov_id})}}};n(169);var Ne=it(Re,$e,[],!1,null,null,null);Ne.options.__file="src/components/LegendButton.vue";const Ye={name:"ButtonGroup",props:["buttons","tv_id","ov_id","grid_id","index","display","config"],components:{LegendButton:Ne.exports},methods:{button_click:function(t){this.$emit("legend-button-click",t)}}};n(886);var Le=it(Ye,Qe,[],!1,null,null,null);Le.options.__file="src/components/ButtonGroup.vue";const Ue=Le.exports;var Fe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tvjs-spinner"},t._l(4,(function(e){return n("div",{key:e,style:{background:t.colors.text}})})),0)};Fe._withStripped=!0;const Pe={name:"Spinner",props:["colors"]};n(372);var Ge=it(Pe,Fe,[],!1,null,null,null);Ge.options.__file="src/components/Spinner.vue";const He={name:"ChartLegend",props:["common","values","grid_id","meta_props"],components:{ButtonGroup:Ue,Spinner:Ge.exports},computed:{ohlcv:function(){if(!this.$props.values||!this.$props.values.ohlcv)return Array(6).fill("n/a");var t=this.layout.prec,e=this.main_type+"_0",n=this.$props.meta_props[e]||{};return n.legend?(n.legend()||[]).map((function(t){return t.value})):[this.$props.values.ohlcv[1].toFixed(t),this.$props.values.ohlcv[2].toFixed(t),this.$props.values.ohlcv[3].toFixed(t),this.$props.values.ohlcv[4].toFixed(t),this.$props.values.ohlcv[5]?this.$props.values.ohlcv[5].toFixed(2):"n/a"]},indicators:function(){var t=this,e=this.$props.values,n=this.format,r={};return this.json_data.filter((function(t){return!1!==t.settings.legend&&!t.main})).map((function(i){i.type in r||(r[i.type]=0);var o=i.type+"_".concat(r[i.type]++);return{v:!("display"in i.settings)||i.settings.display,name:i.name||o,index:(t.off_data||t.json_data).indexOf(i),id:o,values:e?n(o,e):t.n_a(1),unk:!(o in(t.$props.meta_props||{})),loading:i.loading}}))},calc_style:function(){var t=this.layout.height>150?10:5,e=this.$props.common.layout.grids,n=e[0]?e[0].width:void 0;return{top:"".concat(this.layout.offset+t,"px"),width:"".concat(n-20,"px")}},layout:function(){var t=this.$props.grid_id;return this.$props.common.layout.grids[t]},json_data:function(){return this.$props.common.data},off_data:function(){return this.$props.common.offchart},main_type:function(){var t=this.common.data.find((function(t){return t.main}));return t?t.type:void 0},show_values:function(){return"explore"!==this.common.cursor.mode}},methods:{format:function(t,e){var n=this.$props.meta_props[t]||{};return e[t]?n.legend?n.legend(e[t]):e[t].slice(1).map((function(t,e){var r=n.data_colors?n.data_colors():[];return"number"==typeof t&&(t=t.toFixed(Math.abs(t)>.001?4:8)),{value:t,color:r?r[e%r.length]:void 0}})):this.n_a(1)},n_a:function(t){return Array(t).fill({value:"n/a"})},button_click:function(t){this.$emit("legend-button-click",t)}}},Ke=He;n(600);var ze=it(Ke,je,[],!1,null,null,null);function Je(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return We(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function We(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}ze.options.__file="src/components/Legend.vue";const qe={methods:{init_shaders:function(t,e){if(t!==e){e&&(this.shaders=this.shaders.filter((function(t){return t.owner!==e.id})));var n,r=Je(t.shaders);try{for(r.s();!(n=r.n()).done;){var i=new(0,n.value);i.owner=t.id,this.shaders.push(i)}}catch(t){r.e(t)}finally{r.f()}}},on_shader_event:function(t,e){if("new-shader"===t.event&&t.args[0].target===e&&(t.args[0].id="".concat(t.args[1],"-").concat(t.args[2]),this.shaders.push(t.args[0]),this.rerender++),"remove-shaders"===t.event){var n=t.args.join("-");this.shaders=this.shaders.filter((function(t){return t.id!==n}))}}},watch:{skin:function(t,e){this.init_shaders(t,e)}},data:function(){return{shaders:[]}}},Ve={name:"GridSection",props:["common","grid_id"],mixins:[qe],components:{Grid:Se,Sidebar:De,ChartLegend:ze.exports},mounted:function(){this.init_shaders(this.$props.common.skin)},methods:{range_changed:function(t){this.$emit("range-changed",t)},cursor_changed:function(t){t.grid_id=this.$props.grid_id,this.$emit("cursor-changed",t)},cursor_locked:function(t){this.$emit("cursor-locked",t)},sidebar_transform:function(t){this.$emit("sidebar-transform",t)},emit_meta_props:function(t){this.$set(this.meta_props,t.layer_id,t),this.$emit("layer-meta-props",t)},emit_custom_event:function(t){this.on_shader_event(t,"sidebar"),this.$emit("custom-event",t)},button_click:function(t){this.$emit("legend-button-click",t)},register_kb:function(t){this.$emit("register-kb-listener",t)},remove_kb:function(t){this.$emit("remove-kb-listener",t)},rezoom_range:function(t){var e="sb-"+t.grid_id;this.$refs[e]&&this.$refs[e].renderer.rezoom_range(t.z,t.diff1,t.diff2)},ghash:function(t){return t.layout.grids.map((function(t){return t.height})).reduce((function(t,e){return t+e}),"")}},computed:{grid_props:function(){var t=this.$props.grid_id,e=Object.assign({},this.$props.common);if(t>0){var n,r=e.data;e.data=[e.data[t-1]],(n=e.data).push.apply(n,s(r.filter((function(e){return e.grid&&e.grid.id===t}))))}return e.width=e.layout.grids[t].width,e.height=e.layout.grids[t].height,e.y_transform=e.y_ts[t],e.shaders=this.grid_shaders,e},sidebar_props:function(){var t=this.$props.grid_id,e=Object.assign({},this.$props.common);return e.width=e.layout.grids[t].sb,e.height=e.layout.grids[t].height,e.y_transform=e.y_ts[t],e.shaders=this.sb_shaders,e},section_values:function(){var t=this.$props.grid_id,e=Object.assign({},this.$props.common);return e.width=e.layout.grids[t].width,e.cursor.values[t]},legend_props:function(){var t=this.$props.grid_id,e=Object.assign({},this.$props.common);if(t>0){var n,r=e.data;e.offchart=r,e.data=[e.data[t-1]],(n=e.data).push.apply(n,s(r.filter((function(e){return e.grid&&e.grid.id===t}))))}return e},get_meta_props:function(){return this.meta_props},grid_shaders:function(){return this.shaders.filter((function(t){return"grid"===t.target}))},sb_shaders:function(){return this.shaders.filter((function(t){return"sidebar"===t.target}))}},watch:{common:{handler:function(t,e){var n=this.ghash(t);n!==this.last_ghash&&this.rerender++,t.data.length!==e.data.length&&this.rerender++,this.last_ghash=n},deep:!0}},data:function(){return{meta_props:{},rerender:0,last_ghash:""}}};n(11);var Xe=it(Ve,J,[],!1,null,null,null);Xe.options.__file="src/components/Section.vue";const Ze=Xe.exports;function tn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return en(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function en(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var nn=A.MINUTE15,rn=(A.MINUTE,A.HOUR),on=A.DAY,sn=A.WEEK,an=A.MONTH,cn=A.YEAR,un=A.MONTHMAP,ln=function(){function t(e,n){F(this,t),this.canvas=e,this.ctx=e.getContext("2d"),this.comp=n,this.$p=n.$props,this.data=this.$p.sub,this.range=this.$p.range,this.layout=this.$p.layout}return G(t,[{key:"update",value:function(){this.grid_0=this.layout.grids[0];var t=this.layout.botbar.width,e=this.layout.botbar.height,n=this.layout.grids[0].sb;this.ctx.font=this.$p.font,this.ctx.clearRect(0,0,t,e),this.ctx.strokeStyle=this.$p.colors.scale,this.ctx.beginPath(),this.ctx.moveTo(0,.5),this.ctx.lineTo(Math.floor(t+1),.5),this.ctx.stroke(),this.ctx.fillStyle=this.$p.colors.text,this.ctx.beginPath();var r,i=tn(this.layout.botbar.xs);try{for(i.s();!(r=i.n()).done;){var o=r.value,s=this.format_date(o);o[0]>t-n||(this.ctx.moveTo(o[0]-.5,0),this.ctx.lineTo(o[0]-.5,4.5),this.lbl_highlight(o[1][0])||(this.ctx.globalAlpha=.85),this.ctx.textAlign="center",this.ctx.fillText(s,o[0],18),this.ctx.globalAlpha=1)}}catch(t){i.e(t)}finally{i.f()}this.ctx.stroke(),this.apply_shaders(),this.$p.cursor.x&&void 0!==this.$p.cursor.t&&this.panel()}},{key:"apply_shaders",value:function(){var t,e={layout:this.layout.grids[0],cursor:this.$p.cursor},n=tn(this.comp.bot_shaders);try{for(n.s();!(t=n.n()).done;){var r=t.value;this.ctx.save(),r.draw(this.ctx,e),this.ctx.restore()}}catch(t){n.e(t)}finally{n.f()}}},{key:"panel",value:function(){var t=this.format_cursor_x();this.ctx.fillStyle=this.$p.colors.panel;var e=this.ctx.measureText(t+" "),n=Math.floor(e.width),r=this.$p.cursor.x,i=Math.floor(r-.5*n),o=this.comp.config.PANHEIGHT;this.ctx.fillRect(i,-.5,n,o+.5),this.ctx.fillStyle=this.$p.colors.textHL,this.ctx.textAlign="center",this.ctx.fillText(t,r,15.5)}},{key:"format_date",value:function(t){var e=t[1][0],n=(e=this.grid_0.ti_map.i2t(e))+(this.$p.layout.grids[0].ti_map.tf<on?1:0)*this.$p.timezone*rn,r=new Date(n);return t[2]===cn||C.year_start(e)===e?r.getUTCFullYear():t[2]===an||C.month_start(e)===e?un[r.getUTCMonth()]:C.day_start(n)===n?r.getUTCDate():C.add_zero(r.getUTCHours())+":"+C.add_zero(r.getUTCMinutes())}},{key:"format_cursor_x",value:function(){var t=this.$p.cursor.t;t=this.grid_0.ti_map.i2t(t);var e=this.$p.layout.grids[0].ti_map.tf,n=new Date(t+(e<on?1:0)*this.$p.timezone*rn);if(e===cn)return n.getUTCFullYear();if(e<cn)var r="`"+"".concat(n.getUTCFullYear()).slice(-2),i=un[n.getUTCMonth()],o="01";e<=sn&&(o=n.getUTCDate());var s="".concat(o," ").concat(i," ").concat(r),a="";return e<on&&(a=C.add_zero(n.getUTCHours())+":"+C.add_zero(n.getUTCMinutes())),"".concat(s," ").concat(a)}},{key:"lbl_highlight",value:function(t){var e=this.$p.interval;return 0===t||C.month_start(t)===t||C.day_start(t)===t||e<=nn&&t%rn==0}},{key:"mousemove",value:function(){}},{key:"mouseout",value:function(){}},{key:"mouseup",value:function(){}},{key:"mousedown",value:function(){}}]),t}();const hn={name:"Botbar",props:["sub","layout","range","interval","cursor","colors","font","width","height","rerender","tv_id","config","shaders","timezone"],mixins:[nt],mounted:function(){var t=this.$refs.canvas;this.renderer=new ln(t,this),this.setup(),this.redraw()},render:function(t){var e=this.$props.layout.botbar;return this.create_canvas(t,"botbar",{position:{x:0,y:e.offset||0},attrs:{rerender:this.$props.rerender,width:e.width,height:e.height},style:{backgroundColor:this.$props.colors.back}})},computed:{bot_shaders:function(){return this.$props.shaders.filter((function(t){return"botbar"===t.target}))}},watch:{range:{handler:function(){this.redraw()},deep:!0},cursor:{handler:function(){this.redraw()},deep:!0},rerender:function(){var t=this;this.$nextTick((function(){return t.redraw()}))}}};n(124);var dn=it(hn,void 0,void 0,!1,null,null,null);dn.options.__file="src/components/Botbar.vue";const fn=dn.exports;var pn=it({name:"Keyboard",created:function(){window.addEventListener("keydown",this.keydown),window.addEventListener("keyup",this.keyup),window.addEventListener("keypress",this.keypress),this._listeners={}},beforeDestroy:function(){window.removeEventListener("keydown",this.keydown),window.removeEventListener("keyup",this.keyup),window.removeEventListener("keypress",this.keypress)},render:function(t){return t()},methods:{keydown:function(t){for(var e in this._listeners){var n=this._listeners[e];n&&n.keydown?n.keydown(t):console.warn("No 'keydown' listener for ".concat(e))}},keyup:function(t){for(var e in this._listeners){var n=this._listeners[e];n&&n.keyup?n.keyup(t):console.warn("No 'keyup' listener for ".concat(e))}},keypress:function(t){for(var e in this._listeners){var n=this._listeners[e];n&&n.keypress?n.keypress(t):console.warn("No 'keypress' listener for ".concat(e))}},register:function(t){this._listeners[t.id]=t},remove:function(t){delete this._listeners[t.id]}}},void 0,void 0,!1,null,null,null);pn.options.__file="src/components/Keyboard.vue";const vn=pn.exports,gn={methods:{data_changed:function(){var t=this.ohlcv,e=!1;return this._data_n0!==t[0]&&this._data_len!==t.length&&(e=!0),this.check_all_data(e),this.ti_map.ib&&this.reindex_delta(t[0],this._data_n0),this._data_n0=t[0],this._data_len=t.length,this.save_data_t(),e},check_all_data:function(t){var e=this._data_len||0;(Math.abs(this.ohlcv.length-e)>1||this._data_n0!==this.ohlcv[0])&&this.$emit("custom-event",{event:"data-len-changed",args:[]})},reindex_delta:function(t,e){if(e=e||[[0]],0!=(t=t||[[0]])[0]-e[0]&&this._data_t)try{var n=this._data_t+.01,r=C.fast_nearest(this.ohlcv,n),i=(n-this.ohlcv[r[0]][0])/this.interval_ms;this.goto(r[0]+i)}catch(t){this.goto(this.ti_map.t2i(this._data_t))}},save_data_t:function(){this._data_t=this.ti_map.i2t(this.range[1])}},data:function(){return{_data_n0:null,_data_len:0,_data_t:0}}};var mn=Math.pow(2,32),yn=function(){function t(){F(this,t),this.ib=!1}return G(t,[{key:"init",value:function(t,e){t.sub,t.interval;var n=t.meta,r=(t.$props,t.interval_ms),i=t.sub_start,o=t.ib;this.ti_map=[],this.it_map=[],this.sub_i=[],this.ib=o,this.sub=e,this.ss=i,this.tf=r,n.sub_start,this.ib&&this.map_sub(e)}},{key:"map_sub",value:function(t){for(var e=0;e<t.length;e++){var n=t[e][0],r=this.ss+e;this.ti_map[n]=r,this.it_map[r]=n;var i=s(t[e]);i[0]=r,this.sub_i.push(i)}}},{key:"parse",value:function(t,e){if(!this.ib||!this.sub[0]||"data"===e)return t;var n=[],r=0;if("calc"===e){for(var i=C.index_shift(this.sub,t),o=0;o<t.length;o++){var a=this.ss+o,c=s(t[o]);c[0]=a+i,n.push(c)}return n}if(t.length)try{var u=C.fast_nearest(this.sub,t[0][0])[0];null!==u&&u>=0&&(r=u)}catch(t){}var l=this.sub[0][0],h=this.sub[this.sub.length-1][0];for(o=0;o<t.length;o++){var d=s(t[o]),f=this.sub[r][0],p=t[o][0],v=this.ti_map[p];if(void 0===v)if(p<l||p>h)v=this.ss+r-(f-p)/this.tf,p=t[o+1]?t[o+1][0]:void 0;else{var g=this.sub[r+1][0];v=f===g?this.ss+r:this.ss+r+(p-f)/(g-f),p=t[o+1]?t[o+1][0]:void 0}for(;r+1<this.sub.length-1&&p>this.sub[r+1][0];)r++,f=this.sub[r][0];d[0]=v,n.push(d)}return n}},{key:"i2t",value:function(t){if(!this.ib||!this.sub.length)return t;var e=this.it_map[t];if(void 0!==e)return e;if(t>=this.ss+this.sub_i.length){var n=t-(this.ss+this.sub_i.length)+1;return this.sub[this.sub.length-1][0]+n*this.tf}if(t<this.ss){var r=t-this.ss;return this.sub[0][0]+r*this.tf}var i=Math.floor(t)-this.ss,o=i+1,s=this.sub.length;o>=s&&(o=s-1);var a=this.sub[i],c=this.sub[o];if(a&&c){var u=a[0];return u+(c[0]-u)*(t-i-this.ss)}}},{key:"i2t_mode",value:function(t,e){return"data"===e?t:this.i2t(t)}},{key:"t2i",value:function(t){if(this.sub.length){var e=this.ti_map[t];if(void 0!==e)return e;var n=this.sub[0][0],r=this.sub[this.sub.length-1][0];if(t<n)return this.ss-(n-t)/this.tf;if(t>r){var i=this.sub.length-1;return this.ss+i-(r-t)/this.tf}try{var o=C.fast_nearest(this.sub,t),s=this.sub[o[0]][0],a=(t-s)/(this.sub[o[1]][0]-s);return this.ss+o[0]+a*(o[1]-o[0])}catch(t){}}}},{key:"smth2i",value:function(t){return t>mn?this.t2i(t):t}},{key:"smth2t",value:function(t){return t<mn?this.i2t(t):t}},{key:"gt2i",value:function(t,e){if(t>mn){var n=b(C.fast_nearest(e,t+.1),2),r=n[0];return n[1],"number"==typeof r?r:this.t2i(t)}return t}}]),t}();const An={name:"Chart",props:["title_txt","data","width","height","font","colors","overlays","tv_id","config","buttons","toolbar","ib","skin","timezone"],mixins:[qe,gn],components:{GridSection:Ze,Botbar:fn,Keyboard:vn},created:function(){this.ctx=new w(this.$props),this.init_range(),this.sub=this.subset(),C.overwrite(this.range,this.range),this._layout=new U(this),this.updater=new z(this),this.update_last_values(),this.init_shaders(this.skin)},methods:{range_changed:function(t){var e=this.subset(t);C.overwrite(this.range,t),C.overwrite(this.sub,e),this.update_layout(),this.$emit("range-changed",t),this.$props.ib&&this.save_data_t()},goto:function(t){var e=this.range[1]-this.range[0];this.range_changed([t-e,t])},setRange:function(t,e){this.range_changed([t,e])},cursor_changed:function(t){t.mode&&(this.cursor.mode=t.mode),"explore"!==this.cursor.mode&&this.updater.sync(t),this._hook_xchanged&&this.ce("?x-changed",t)},cursor_locked:function(t){this.cursor.scroll_lock&&t||(this.cursor.locked=t,this._hook_xlocked&&this.ce("?x-locked",t))},calc_interval:function(){var t=this,e=C.parse_tf(this.forced_tf);this.ohlcv.length<2&&!e||(this.interval_ms=e||C.detect_interval(this.ohlcv),this.interval=this.$props.ib?1:this.interval_ms,C.warn((function(){return t.$props.ib&&!t.chart.tf}),A.IB_TF_WARN,A.SECOND))},set_ytransform:function(t){var e=this.y_transforms[t.grid_id]||{};Object.assign(e,t),this.$set(this.y_transforms,t.grid_id,e),this.update_layout(),C.overwrite(this.range,this.range)},default_range:function(){var t=this.$props.config.DEFAULT_LEN,e=this.$props.config.MINIMUM_LEN+.5,n=this.ohlcv.length-1;if(!(this.ohlcv.length<2)){if(this.ohlcv.length<=t)var r=0,i=e;else r=n-t,i=.5;this.$props.ib?C.overwrite(this.range,[r-this.interval*i,n+this.interval*e]):C.overwrite(this.range,[this.ohlcv[r][0]-this.interval*i,this.ohlcv[n][0]+this.interval*e])}},subset:function(t){void 0===t&&(t=this.range);var e=b(this.filter(this.ohlcv,t[0]-this.interval,t[1]),2),n=e[0],r=e[1];return this.ti_map=new yn,n?(this.sub_start=r,this.ti_map.init(this,n),this.$props.ib?this.ti_map.sub_i:n||[]):[]},common_props:function(){return{title_txt:this.chart.name||this.$props.title_txt,layout:this._layout,sub:this.sub,range:this.range,interval:this.interval,cursor:this.cursor,colors:this.$props.colors,font:this.$props.font,y_ts:this.y_transforms,tv_id:this.$props.tv_id,config:this.$props.config,buttons:this.$props.buttons,meta:this.meta,skin:this.$props.skin}},overlay_subset:function(t,e){var n=this;return t.map((function(t,r){var i=C.fast_filter(t.data,n.ti_map.i2t_mode(n.range[0]-n.interval,t.indexSrc),n.ti_map.i2t_mode(n.range[1],t.indexSrc));return{type:t.type,name:C.format_name(t),data:n.ti_map.parse(i[0]||[],t.indexSrc||"map"),settings:t.settings||n.settings_ov,grid:t.grid||{},tf:C.parse_tf(t.tf),i0:i[1],loading:t.loading,last:(n.last_values[e]||[])[r]}}))},section_props:function(t){return 0===t?this.main_section:this.sub_section},init_range:function(){this.calc_interval(),this.default_range()},layer_meta_props:function(t){t.grid_id in this.layers_meta||this.$set(this.layers_meta,t.grid_id,{}),this.$set(this.layers_meta[t.grid_id],t.layer_id,t),this.update_layout()},remove_meta_props:function(t,e){t in this.layers_meta&&this.$delete(this.layers_meta[t],e)},emit_custom_event:function(t){this.on_shader_event(t,"botbar"),this.$emit("custom-event",t),"remove-layer-meta"===t.event&&this.remove_meta_props.apply(this,s(t.args))},update_layout:function(t){t&&this.calc_interval();var e=new U(this);C.copy_layout(this._layout,e),this._hook_update&&this.ce("?chart-update",e)},legend_button_click:function(t){this.$emit("legend-button-click",t)},register_kb:function(t){this.$refs.keyboard&&this.$refs.keyboard.register(t)},remove_kb:function(t){this.$refs.keyboard&&this.$refs.keyboard.remove(t)},update_last_values:function(){var t=this;this.last_candle=this.ohlcv?this.ohlcv[this.ohlcv.length-1]:void 0,this.last_values={onchart:[],offchart:[]},this.onchart.forEach((function(e,n){var r=e.data||[];t.last_values.onchart[n]=r[r.length-1]})),this.offchart.forEach((function(e,n){var r=e.data||[];t.last_values.offchart[n]=r[r.length-1]}))},ce:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this.emit_custom_event({event:t,args:n})},hooks:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach((function(e){return t["_hook_".concat(e)]=!0}))}},computed:{main_section:function(){var t=Object.assign({},this.common_props());return t.data=this.overlay_subset(this.onchart,"onchart"),t.data.push({type:this.chart.type||"Candles",main:!0,data:this.sub,i0:this.sub_start,settings:this.chart.settings||this.settings_ohlcv,grid:this.chart.grid||{},last:this.last_candle}),t.overlays=this.$props.overlays,t},sub_section:function(){var t=Object.assign({},this.common_props());return t.data=this.overlay_subset(this.offchart,"offchart"),t.overlays=this.$props.overlays,t},botbar_props:function(){var t=Object.assign({},this.common_props());return t.width=t.layout.botbar.width,t.height=t.layout.botbar.height,t.rerender=this.rerender,t},offsub:function(){return this.overlay_subset(this.offchart,"offchart")},ohlcv:function(){return this.$props.data.ohlcv||this.chart.data||[]},chart:function(){return this.$props.data.chart||{grid:{}}},onchart:function(){return this.$props.data.onchart||[]},offchart:function(){return this.$props.data.offchart||[]},filter:function(){return this.$props.ib?C.fast_filter_i:C.fast_filter},styles:function(){var t=this.$props.toolbar?this.$props.config.TOOLBAR:0;return{"margin-left":"".concat(t,"px")}},meta:function(){return{last:this.last_candle,sub_start:this.sub_start,activated:this.activated}},forced_tf:function(){return this.chart.tf}},data:function(){return{sub:[],range:[],interval:0,cursor:{x:null,y:null,t:null,y$:null,grid_id:null,locked:!1,values:{},scroll_lock:!1,mode:C.xmode()},rerender:0,layers_meta:{},y_transforms:{},settings_ohlcv:{},settings_ov:{},last_candle:[],last_values:{},sub_start:void 0,activated:!1}},watch:{width:function(){this.update_layout(),this._hook_resize&&this.ce("?chart-resize")},height:function(){this.update_layout(),this._hook_resize&&this.ce("?chart-resize")},ib:function(t){if(t)this.init_range(),C.overwrite(this.range,this.range),this.interval=1;else{var e=this.ti_map.i2t(this.range[0]),n=this.ti_map.i2t(this.range[1]);C.overwrite(this.range,[e,n]),this.interval=this.interval_ms}var r=this.subset();C.overwrite(this.sub,r),this.update_layout()},timezone:function(){this.update_layout()},colors:function(){C.overwrite(this.range,this.range)},forced_tf:function(t,e){this.update_layout(!0),this.ce("exec-all-scripts")},data:{handler:function(t,e){this.sub.length||this.init_range();var n=this.subset();(this.sub.length||n.length)&&C.overwrite(this.sub,n);var r=this.data_changed();this.update_layout(r),C.overwrite(this.range,this.range),this.cursor.scroll_lock=!!t.scrollLock,t.scrollLock&&this.cursor.locked&&(this.cursor.locked=!1),this._hook_data&&this.ce("?chart-data",r),this.update_last_values(),this.rerender++},deep:!0}}};var _n=it(An,_,[],!1,null,null,null);_n.options.__file="src/components/Chart.vue";const bn=_n.exports;var wn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{key:t.tool_count,staticClass:"trading-vue-toolbar",style:t.styles},t._l(t.groups,(function(e,r){return e.icon&&!e.hidden?n("toolbar-item",{key:r,attrs:{data:e,subs:t.sub_map,dc:t.data,config:t.config,colors:t.colors,selected:t.is_selected(e)},on:{"item-selected":t.selected}}):t._e()})),1)};wn._withStripped=!0;var xn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["trading-vue-tbitem",t.selected?"selected-item":""],style:t.item_style,on:{click:function(e){return t.emit_selected("click")},mousedown:t.mousedown,touchstart:t.mousedown,touchend:function(e){return t.emit_selected("touch")}}},[n("div",{staticClass:"trading-vue-tbicon tvjs-pixelated",style:t.icon_style}),t._v(" "),t.data.group?n("div",{staticClass:"trading-vue-tbitem-exp",style:t.exp_style,on:{click:t.exp_click,mousedown:t.expmousedown,mouseover:t.expmouseover,mouseleave:t.expmouseleave}},[t._v("\n ᐳ\n ")]):t._e(),t._v(" "),t.show_exp_list?n("item-list",{attrs:{config:t.config,items:t.data.items,colors:t.colors,dc:t.dc},on:{"close-list":t.close_list,"item-selected":t.emit_selected_sub}}):t._e()],1)};xn._withStripped=!0;var kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tvjs-item-list",style:t.list_style(),on:{mousedown:t.thismousedown}},t._l(t.items,(function(e){return e.hidden?t._e():n("div",{class:t.item_class(e),style:t.item_style(e),on:{click:function(n){return t.item_click(n,e)}}},[n("div",{staticClass:"trading-vue-tbicon tvjs-pixelated",style:t.icon_style(e)}),t._v(" "),n("div",[t._v(t._s(e.type))])])})),0)};kn._withStripped=!0;const Cn={name:"ItemList",props:["config","items","colors","dc"],mounted:function(){window.addEventListener("mousedown",this.onmousedown)},beforeDestroy:function(){window.removeEventListener("mousedown",this.onmousedown)},methods:{list_style:function(){var t=this.$props.config.TOOLBAR,e=this.colors.tbListBorder||this.colors.grid,n="1px solid ".concat(e);return{left:"".concat(t,"px"),background:this.colors.back,borderTop:n,borderRight:n,borderBottom:n}},item_class:function(t){return this.dc.tool===t.type?"tvjs-item-list-item selected-item":"tvjs-item-list-item"},item_style:function(t){var e=this.$props.config,n=e.TB_ICON+2*e.TB_ITEM_M+8,r=this.dc.tool===t.type;return{height:"".concat(n,"px"),color:r?void 0:"#888888"}},icon_style:function(t){var e=this.$props.config,n=e.TB_ICON_BRI,r=e.TB_ITEM_M;return{"background-image":"url(".concat(t.icon,")"),width:"25px",height:"25px",margin:"".concat(r,"px"),filter:"brightness(".concat(n,")")}},item_click:function(t,e){t.cancelBubble=!0,this.$emit("item-selected",e),this.$emit("close-list")},onmousedown:function(){this.$emit("close-list")},thismousedown:function(t){t.stopPropagation()}},computed:{},data:function(){return{}}},Sn=Cn;n(807);var En=it(Sn,kn,[],!1,null,null,null);En.options.__file="src/components/ItemList.vue";const In={name:"ToolbarItem",props:["data","selected","colors","tv_id","config","dc","subs"],components:{ItemList:En.exports},mounted:function(){if(this.data.group){var t=this.subs[this.data.group],e=this.data.items.find((function(e){return e.type===t}));e&&(this.sub_item=e)}},methods:{mousedown:function(t){var e=this;this.click_start=C.now(),this.click_id=setTimeout((function(){e.show_exp_list=!0}),this.config.TB_ICON_HOLD)},expmouseover:function(){this.exp_hover=!0},expmouseleave:function(){this.exp_hover=!1},expmousedown:function(t){this.show_exp_list&&t.stopPropagation()},emit_selected:function(t){if(!(C.now()-this.click_start>this.config.TB_ICON_HOLD))if(clearTimeout(this.click_id),this.data.group){var e=this.sub_item||this.data.items[0];this.$emit("item-selected",e)}else this.$emit("item-selected",this.data)},emit_selected_sub:function(t){this.$emit("item-selected",t),this.sub_item=t},exp_click:function(t){this.data.group&&(t.cancelBubble=!0,this.show_exp_list=!this.show_exp_list)},close_list:function(){this.show_exp_list=!1}},computed:{item_style:function(){if("System:Splitter"===this.$props.data.type)return this.splitter;var t=this.$props.config,e=t.TB_ITEM_M,n=.5*(t.TOOLBAR-t.TB_ICON)-e,r=t.TB_ICON+2*e,i=this.exp_hover?0:3;return{width:"".concat(r,"px"),height:"".concat(r,"px"),margin:"8px ".concat(n,"px 0px ").concat(n,"px"),"border-radius":"3px ".concat(i,"px ").concat(i,"px 3px")}},icon_style:function(){if("System:Splitter"===this.$props.data.type)return{};var t=this.$props.config,e=t.TB_ICON_BRI,n=t.TB_ICON,r=t.TB_ITEM_M,i=this.sub_item?this.sub_item.icon:this.$props.data.icon;return{"background-image":"url(".concat(i,")"),width:"".concat(n,"px"),height:"".concat(n,"px"),margin:"".concat(r,"px"),filter:"brightness(".concat(e,")")}},exp_style:function(){var t=this.$props.config,e=t.TB_ITEM_M,n=.5*t.TB_ICON+e,r=(t.TOOLBAR-2*n)/4;return{padding:"".concat(n,"px ").concat(r,"px"),transform:this.show_exp_list?"scale(-0.6, 1)":"scaleX(0.6)"}},splitter:function(){var t=this.$props.config,e=this.$props.colors.grid,n=t.TB_ITEM_M,r=.5*(t.TOOLBAR-t.TB_ICON)-n,i=t.TB_ICON+2*n;return{width:"".concat(i,"px"),height:"1px",margin:"8px ".concat(r,"px 8px ").concat(r,"px"),"background-color":e}}},data:function(){return{exp_hover:!1,show_exp_list:!1,sub_item:null}}};n(501);var Bn=it(In,xn,[],!1,null,null,null);function On(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Tn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Tn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Bn.options.__file="src/components/ToolbarItem.vue";const Mn={name:"Toolbar",props:["data","height","colors","tv_id","config"],components:{ToolbarItem:Bn.exports},mounted:function(){},methods:{selected:function(t){this.$emit("custom-event",{event:"tool-selected",args:[t.type]}),t.group&&(this.sub_map[t.group]=t.type)},is_selected:function(t){var e=this;return t.group?!!t.items.find((function(t){return t.type===e.data.tool})):t.type===this.data.tool}},computed:{styles:function(){var t=this.$props.colors,e=this.$props.config.TB_BORDER,n=this.$props.config.TOOLBAR-e,r=(t.grid,t.tbBack||t.back),i=t.tbBorder||t.scale,o=this.$props.config.TB_B_STYLE;return{width:"".concat(n,"px"),height:"".concat(this.$props.height-3,"px"),"background-color":r,"border-right":"".concat(e,"px ").concat(o," ").concat(i)}},groups:function(){var t,e=[],n=On(this.data.tools||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.group){var i=e.find((function(t){return t.group===r.group}));i?i.items.push(r):e.push({group:r.group,icon:r.icon,items:[r]})}else e.push(r)}}catch(t){n.e(t)}finally{n.f()}return e}},watch:{data:{handler:function(t){t.tools&&(this.tool_count=t.tools.length)},deep:!0}},data:function(){return{tool_count:0,sub_map:{}}}},Dn=Mn;n(153);var jn=it(Dn,wn,[],!1,null,null,null);jn.options.__file="src/components/Toolbar.vue";const Qn=jn.exports;var $n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tvjs-widgets",style:{width:t.width+"px",height:t.height+"px"}},t._l(Object.keys(t.map),(function(e){return n(t.initw(e),{key:e,tag:"component",attrs:{id:e,main:t.map[e].ctrl,data:t.map[e].data,tv:t.tv,dc:t.dc}})})),1)};$n._withStripped=!0;const Rn={name:"Widgets",props:["width","height","map","tv","dc"],methods:{initw:function(t){return this.$props.map[t].cls}}};n(5);var Nn=it(Rn,$n,[],!1,null,null,null);Nn.options.__file="src/components/Widgets.vue";const Yn=Nn.exports;var Ln=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"tvjs-the-tip",style:t.style,domProps:{innerHTML:t._s(t.data.text)},on:{mousedown:function(e){return t.$emit("remove-me")}}})};Ln._withStripped=!0;const Un={name:"TheTip",props:["data"],mounted:function(){var t=this;setTimeout((function(){return t.$emit("remove-me")}),3e3)},computed:{style:function(){return{background:this.data.color}}}};n(477);var Fn=it(Un,Ln,[],!1,null,null,null);function Pn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Gn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Gn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Hn(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Fn.options.__file="src/components/TheTip.vue";const zn={name:"TradingVue",components:{Chart:bn,Toolbar:Qn,Widgets:Yn,TheTip:Fn.exports},mixins:[{mounted:function(){this.ctrllist(),this.skin_styles()},methods:{ctrllist:function(){this.ctrl_destroy(),this.controllers=[];var t,e=Pn(this.$props.extensions);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n.Main.__name__;this.xSettings[r]||this.$set(this.xSettings,r,{});var i=new n.Main(this,this.data,this.xSettings[r]);i.name=r,this.controllers.push(i)}}catch(t){e.e(t)}finally{e.f()}return this.controllers},pre_dc:function(t){var e,n=Pn(this.controllers);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.update&&r.update(t)}}catch(t){n.e(t)}finally{n.f()}},post_dc:function(t){var e,n=Pn(this.controllers);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.post_update&&r.post_update(t)}}catch(t){n.e(t)}finally{n.f()}},ctrl_destroy:function(){var t,e=Pn(this.controllers);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.destroy&&n.destroy()}}catch(t){e.e(t)}finally{e.f()}},skin_styles:function(){var t="tvjs-skin-styles",e=document.getElementById(t);if(e&&e.parentNode.removeChild(e),this.skin_proto&&this.skin_proto.styles){var n=document.createElement("style");n.setAttribute("id",t),n.innerHTML=this.skin_proto.styles,this.$el.appendChild(n)}}},computed:{ws:function(){var t,e={},n=Pn(this.controllers);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.widgets)for(var i in r.widgets)e[i]=r.widgets[i],e[i].ctrl=r}}catch(t){n.e(t)}finally{n.f()}return e},skins:function(){var t,e={},n=Pn(this.$props.extensions);try{for(n.s();!(t=n.n()).done;){var r=t.value;for(var i in r.skins||{})e[i]=r.skins[i]}}catch(t){n.e(t)}finally{n.f()}return e},skin_proto:function(){return this.skins[this.$props.skin]},colorpack:function(){var t=this.skins[this.$props.skin];return t?t.colors:void 0}},watch:{skin:function(t,e){t!==e&&this.resetChart(),this.skin_styles()},extensions:function(){this.ctrllist()},xSettings:{handler:function(t,e){var n,r=Pn(this.controllers);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.onsettings&&i.onsettings(t,e)}}catch(t){r.e(t)}finally{r.f()}},deep:!0}},data:function(){return{controllers:[]}}}],props:{titleTxt:{type:String,default:"TradingVue.js"},id:{type:String,default:"trading-vue-js"},width:{type:Number,default:800},height:{type:Number,default:421},colorTitle:{type:String,default:"#42b883"},colorBack:{type:String,default:"#121826"},colorGrid:{type:String,default:"#2f3240"},colorText:{type:String,default:"#dedddd"},colorTextHL:{type:String,default:"#fff"},colorScale:{type:String,default:"#838383"},colorCross:{type:String,default:"#8091a0"},colorCandleUp:{type:String,default:"#23a776"},colorCandleDw:{type:String,default:"#e54150"},colorWickUp:{type:String,default:"#23a77688"},colorWickDw:{type:String,default:"#e5415088"},colorWickSm:{type:String,default:"transparent"},colorVolUp:{type:String,default:"#79999e42"},colorVolDw:{type:String,default:"#ef535042"},colorPanel:{type:String,default:"#565c68"},colorTbBack:{type:String},colorTbBorder:{type:String,default:"#8282827d"},colors:{type:Object},font:{type:String,default:A.ChartConfig.FONT},toolbar:{type:Boolean,default:!1},data:{type:Object,required:!0},overlays:{type:Array,default:function(){return[]}},chartConfig:{type:Object,default:function(){return{}}},legendButtons:{type:Array,default:function(){return[]}},indexBased:{type:Boolean,default:!1},extensions:{type:Array,default:function(){return[]}},xSettings:{type:Object,default:function(){return{}}},skin:{type:String},timezone:{type:Number,default:0}},computed:{chart_props:function(){var t=this.$props.toolbar?this.chart_config.TOOLBAR:0,e={title_txt:this.$props.titleTxt,overlays:this.$props.overlays.concat(this.mod_ovs),data:this.decubed,width:this.$props.width-t,height:this.$props.height,font:this.font_comp,buttons:this.$props.legendButtons,toolbar:this.$props.toolbar,ib:this.$props.indexBased||this.index_based||!1,colors:Object.assign({},this.$props.colors||this.colorpack),skin:this.skin_proto,timezone:this.$props.timezone};return this.parse_colors(e.colors),e},chart_config:function(){return Object.assign({},A.ChartConfig,this.$props.chartConfig)},decubed:function(){var t=this.$props.data;return void 0!==t.data?(t.init_tvjs(this),t.data):t},index_based:function(){var t=this.$props.data;return t.chart?t.chart.indexBased:!!t.data&&t.data.chart.indexBased},mod_ovs:function(){var t,e=[],n=Hn(this.$props.extensions);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push.apply(e,s(Object.values(r.overlays)))}}catch(t){n.e(t)}finally{n.f()}return e},font_comp:function(){return this.skin_proto&&this.skin_proto.font?this.skin_proto.font:this.font}},data:function(){return{reset:0,tip:null}},beforeDestroy:function(){this.custom_event({event:"before-destroy"}),this.ctrl_destroy()},methods:{resetChart:function(t){var e=this;void 0===t&&(t=!0),this.reset++;var n=this.getRange();!t&&n[0]&&n[1]&&this.$nextTick((function(){return e.setRange.apply(e,s(n))})),this.$nextTick((function(){return e.custom_event({event:"chart-reset",args:[]})}))},goto:function(t){this.chart_props.ib&&(t=this.$refs.chart.ti_map.gt2i(t,this.$refs.chart.ohlcv)),this.$refs.chart.goto(t)},setRange:function(t,e){if(this.chart_props.ib){var n=this.$refs.chart.ti_map,r=this.$refs.chart.ohlcv;t=n.gt2i(t,r),e=n.gt2i(e,r)}this.$refs.chart.setRange(t,e)},getRange:function(){if(this.chart_props.ib){var t=this.$refs.chart.ti_map;return this.$refs.chart.range.map((function(e){return t.i2t(e)}))}return this.$refs.chart.range},getCursor:function(){var t=this.$refs.chart.cursor;if(this.chart_props.ib){var e=this.$refs.chart.ti_map,n=Object.assign({},t);return n.i=n.t,n.t=e.i2t(n.t),n}return t},showTheTip:function(t,e){void 0===e&&(e="orange"),this.tip={text:t,color:e}},legend_button:function(t){this.custom_event({event:"legend-button-click",args:[t]})},custom_event:function(t){"args"in t?this.$emit.apply(this,[t.event].concat(s(t.args))):this.$emit(t.event);var e=this.$props.data,n=0!==this.controllers.length;n&&this.pre_dc(t),e.tv&&e.on_custom_event(t.event,t.args),n&&this.post_dc(t)},range_changed:function(t){if(this.chart_props.ib){var e=this.$refs.chart.ti_map;t=t.map((function(t){return e.i2t(t)}))}this.$emit("range-changed",t),this.custom_event({event:"range-changed",args:[t]}),this.onrange&&this.onrange(t)},set_loader:function(t){var e=this;this.onrange=function(n){var r=e.chart_props.ib?"_ms":"",i=e.$refs.chart["interval"+r];t.range_changed(n,i)}},parse_colors:function(t){for(var e in this.$props)if(0===e.indexOf("color")&&"colors"!==e){var n=e.replace("color","");if(t[n=n[0].toLowerCase()+n.slice(1)])continue;t[n]=this.$props[e]}},mousedown:function(){this.$refs.chart.activated=!0},mouseleave:function(){this.$refs.chart.activated=!1}}};n(863);var Jn=it(zn,r,[],!1,null,null,null);Jn.options.__file="src/TradingVue.vue";const Wn=Jn.exports;function qn(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}function Vn(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){qn(o,r,i,s,a,"next",t)}function a(t){qn(o,r,i,s,a,"throw",t)}s(void 0)}))}}var Xn=n(757),Zn=n.n(Xn);const tr=JSON.parse('["BTCUF4D4G8DcEMBOACALuaB2ArJgXMKgDQCmRAdhDKgHQkAeADgPaKoDO45wAbH6AF8i2ACw886anSasOGcgFcAtgGMljPADMF5FagCWzbsRKhoiEqgWJyaALQkh7VIjUbtug0cKkzFqzZoADwkAPx2AIwSkGFRAAwCiUQ8mAAcBCYUVHBIyIhcwNhxcaBE+gWiPKXwBRFxEaAA3B56hrbsPqbQ+prAAISINPrsAMqy8ABGADYkAIKIiPAAngAy+gDWJISgoKgAFojMAO7I5CQnAKILrMAARACS5AhT+gAmyK/wqPC3TT39JAAPoDaDNyABzfaQOIAMhhfWAJGQ+lsqAA2nEALo7faHE5nS7XRB3R7PN7I8ivBi/Rr7YY0T7fcDEOnsIaUhjgMismjsSwAIWYOk+iH0JA6pR5KmY6iQJHAt0USgmJEQt3AzKWjBIzE0aD29KUKNgoX0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17JjdcgAA=="]');var er=n(961),nr=n.n(er),rr=function(){function t(e){F(this,t),this.dc=e,this.tasks={},this.onevent=function(){},this.start()}var e,n;return G(t,[{key:"start",value:function(){var t=this;this.worker&&this.worker.terminate(),window.URL=window.URL||window.webkitURL;var e,n=nr().decompressFromBase64(tr[0]);try{e=new Blob([n],{type:"application/javascript"})}catch(t){window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,(e=new BlobBuilder).append(n),e=e.getBlob()}this.worker=new Worker(URL.createObjectURL(e)),this.worker.onmessage=function(e){return t.onmessage(e)}}},{key:"start_socket",value:function(){var t=this;this.dc.sett.node_url&&(this.socket=new WebSocket(this.dc.sett.node_url),this.socket.addEventListener("message",(function(e){t.onmessage({data:JSON.parse(e.data)})})),this.msg_queue=[])}},{key:"send",value:function(t,e){if(this.dc.sett.node_url)return this.send_node(t,e);if(e){var n=e.map((function(e){return t.data[e]}));this.worker.postMessage(t,n)}else this.worker.postMessage(t)}},{key:"send_node",value:function(t,e){if(this.socket||this.start_socket(),this.socket&&this.socket.readyState){for(;this.msg_queue.length;){var n=this.msg_queue.shift();this.socket.send(JSON.stringify(n))}this.socket.send(JSON.stringify(t))}else this.msg_queue.push(t)}},{key:"onmessage",value:function(t){t.data.id in this.tasks?(this.tasks[t.data.id](t.data.data),delete this.tasks[t.data.id]):this.onevent(t)}},{key:"exec",value:(n=Vn(Zn().mark((function t(e,n,r){var i=this;return Zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var s=C.uuid();i.send({type:e,id:s,data:n},r),i.tasks[s]=function(e){t(e)}})));case 1:case"end":return t.stop()}}),t)}))),function(t,e,r){return n.apply(this,arguments)})},{key:"just",value:function(t,e,n){var r=C.uuid();this.send({type:t,id:r,data:e},n)}},{key:"relay",value:(e=Vn(Zn().mark((function t(e,n){var r=this;return Zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===n&&(n=!1),t.abrupt("return",new Promise((function(t,i){r.send(e,e.tx_keys),n||(r.tasks[e.id]=function(e){t(e)})})));case 2:case"end":return t.stop()}}),t)}))),function(t,n){return e.apply(this,arguments)})},{key:"destroy",value:function(){this.worker&&this.worker.terminate()}}]),t}();const ir=rr;function or(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return sr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function sr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ar=function(){function t(e,n){F(this,t),this.type=n.type,this.id=n.id,this.dc=e,n.data&&(this.dc.ww.just("upload-data",oe({},this.id,n)),delete n.data);var r=Object.getPrototypeOf(this);Object.setPrototypeOf(n,r),Object.defineProperty(n,"dc",{get:function(){return e}})}var e;return G(t,[{key:"set",value:function(t,e){void 0===e&&(e=!0),this.dc.ww.just("dataset-op",{id:this.id,type:"set",data:t,exec:e})}},{key:"update",value:function(t){this.dc.ww.just("update-data",oe({},this.id,t))}},{key:"merge",value:function(t,e){void 0===e&&(e=!0),this.dc.ww.just("dataset-op",{id:this.id,type:"mrg",data:t,exec:e})}},{key:"remove",value:function(t){void 0===t&&(t=!0),this.dc.del("datasets.".concat(this.id)),this.dc.ww.just("dataset-op",{id:this.id,type:"del",exec:t}),delete this.dc.dss[this.id]}},{key:"data",value:(e=Vn(Zn().mark((function t(){var e;return Zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.dc.ww.exec("get-dataset",this.id);case 2:if(e=t.sent){t.next=5;break}return t.abrupt("return");case 5:return t.abrupt("return",e.data);case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}],[{key:"watcher",value:function(e,n){var r,i=e.map((function(t){return t.id})),o=n.map((function(t){return t.id})),s=or(i);try{for(s.s();!(r=s.n()).done;){var a=r.value;if(!o.includes(a)){var c=e.filter((function(t){return t.id===a}))[0];this.dss[a]=new t(this,c)}}}catch(t){s.e(t)}finally{s.f()}var u,l=or(o);try{for(l.s();!(u=l.n()).done;)a=u.value,!i.includes(a)&&this.dss[a]&&this.dss[a].remove()}catch(t){l.e(t)}finally{l.f()}}},{key:"make_tx",value:function(t,e){var n=t.data.chart.data,r={};return e.find((function(t){return"OHLCV"===t.type}))&&(r={ohlcv:n}),r}}]),t}();function cr(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ur(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function ur(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var lr=function(){function t(){var e=this;F(this,t),this.ww=new ir(this),this.ww.onevent=function(t){var n,r=cr(e.tv.controllers);try{for(r.s();!(n=r.n()).done;)(a=n.value).ww&&a.ww(t.data)}catch(t){r.e(t)}finally{r.f()}switch(t.data.type){case"request-data":if(e.ww._data_uploading)break;var i=ar.make_tx(e,t.data.data);e.send_meta_2_ww(),e.ww.just("upload-data",i),e.ww._data_uploading=!0;break;case"overlay-data":e.on_overlay_data(t.data.data);break;case"overlay-update":e.on_overlay_update(t.data.data);break;case"data-uploaded":e.ww._data_uploading=!1;break;case"engine-state":e.se_state=Object.assign(e.se_state||{},t.data.data);break;case"modify-overlay":e.modify_overlay(t.data.data);break;case"script-signal":e.tv.$emit("signal",t.data.data)}var o,s=cr(e.tv.controllers);try{for(s.s();!(o=s.n()).done;){var a;(a=o.value).post_ww&&a.post_ww(t.data)}}catch(t){s.e(t)}finally{s.f()}}}return G(t,[{key:"on_custom_event",value:function(t,e){switch(t){case"register-tools":this.register_tools(e);break;case"exec-script":this.exec_script(e);break;case"exec-all-scripts":this.exec_all_scripts();break;case"data-len-changed":this.data_changed(e);break;case"tool-selected":if(!e[0])break;if("System"===e[0].split(":")[0]){this.system_tool(e[0].split(":")[1]);break}this.tv.$set(this.data,"tool",e[0]),"Cursor"===e[0]&&this.drawing_mode_off();break;case"grid-mousedown":this.grid_mousedown(e);break;case"drawing-mode-off":this.drawing_mode_off();break;case"change-settings":this.change_settings(e);break;case"range-changed":this.scripts_onrange.apply(this,s(e));break;case"scroll-lock":this.on_scroll_lock(e[0]);break;case"object-selected":this.object_selected(e);break;case"remove-tool":this.system_tool("Remove");break;case"before-destroy":this.before_destroy()}}},{key:"on_settings",value:function(t,e){var n=this;if(this.sett.scripts){for(var r={},i=!1,o=function(){var o=t[s];if(!e.filter((function(t){return t.v===o.v})).length&&o.p.settings.$props){var a=o.p.settings.$uuid;C.is_scr_props_upd(o,e)&&C.delayed_exec(o.p)&&(r[a]=o.v,i=!0,n.tv.$set(o.p,"loading",!0))}},s=0;s<t.length;s++)o();if(i&&Object.keys(r).length){var a=this.tv.$refs.chart.interval_ms||this.data.chart.tf,c=this.tv.getRange();this.ww.just("update-ov-settings",{delta:r,tf:a,range:c})}}}},{key:"on_ids_changed",value:function(t,e){var n=e.filter((function(e){return void 0!==e&&!t.includes(e)}));n.length&&this.ww.just("remove-scripts",n)}},{key:"register_tools",value:function(t){var e,n={},r=cr(this.data.tools||[]);try{for(r.s();!(e=r.n()).done;)n[(a=e.value).type]=a,delete a.type}catch(t){r.e(t)}finally{r.f()}this.tv.$set(this.data,"tools",[]);var i,o=[{type:"Cursor",icon:ie["cursor.png"]}],s=cr(t);try{for(s.s();!(i=s.n()).done;){var a=i.value,c=Object.assign({},a.info),u=a.info.type||"Default";for(var l in c.type="".concat(a.use_for,":").concat(u),this.merge_presets(c,n[a.use_for]),this.merge_presets(c,n[c.type]),delete c.mods,o.push(c),a.info.mods){var h=Object.assign({},c);(h=Object.assign(h,a.info.mods[l])).type="".concat(a.use_for,":").concat(l),this.merge_presets(h,n[a.use_for]),this.merge_presets(h,n[h.type]),o.push(h)}}}catch(t){s.e(t)}finally{s.f()}this.tv.$set(this.data,"tools",o),this.tv.$set(this.data,"tool","Cursor")}},{key:"exec_script",value:function(t){if(t.length&&this.sett.scripts){var e=this.get_overlay(t[0]);if(!e||!1===e.scripts)return;e.script&&e.script.src&&(t[0].src=e.script.src);var n=e.settings,r=t[0].src.props||{};for(var i in n.$uuid||(n.$uuid="".concat(e.type,"-").concat(C.uuid2())),t[0].uuid=n.$uuid,t[0].sett=n,r||{}){var o=r[i];if(void 0===n[i]){if(void 0===o.def)return void console.error("Overlay ".concat(e.id,": script prop '").concat(i,"' ")+"doesn't have a default value");n[i]=o.val=o.def}else o.val=n[i]}if(n.$props)for(var i in n)n.$props.includes(i)&&!(i in r)&&delete n[i];n.$props=Object.keys(t[0].src.props||{}),this.tv.$set(e,"loading",!0);var s=this.tv.$refs.chart.interval_ms||this.data.chart.tf,a=this.tv.getRange();e.script&&null!=e.script.output&&(t[0].output=e.script.output),this.ww.just("exec-script",{s:t[0],tf:s,range:a})}}},{key:"exec_all_scripts",value:function(){if(this.sett.scripts){this.set_loading(!0);var t=this.tv.$refs.chart.interval_ms||this.data.chart.tf,e=this.tv.getRange();this.ww.just("exec-all-scripts",{tf:t,range:e})}}},{key:"scripts_onrange",value:function(t){if(this.sett.scripts){var e={};if(this.get(".").forEach((function(t){t.script&&t.script.execOnRange&&t.settings.$uuid&&C.delayed_exec(t)&&(e[t.settings.$uuid]=t.settings)})),Object.keys(e).length){var n=this.tv.$refs.chart.interval_ms||this.data.chart.tf,r=this.tv.getRange();this.ww.just("update-ov-settings",{delta:e,tf:n,range:r})}}}},{key:"modify_overlay",value:function(t){var e=this.get_overlay(t);if(e)for(var n in t.fields||{})"object"===he(e[n])?this.merge("".concat(t.uuid,".").concat(n),t.fields[n]):this.tv.$set(e,n,t.fields[n])}},{key:"data_changed",value:function(t){if(this.sett.scripts&&!1!==this.sett.data_change_exec){var e=this.data.chart.data;this.ww._data_uploading||this.se_state.scripts&&(this.send_meta_2_ww(),this.ww.just("upload-data",{ohlcv:e}),this.ww._data_uploading=!0,this.set_loading(!0))}}},{key:"set_loading",value:function(t){var e,n=cr(this.get(".").filter((function(t){return t.settings.$props})));try{for(n.s();!(e=n.n()).done;){var r=e.value;this.merge("".concat(r.id),{loading:t})}}catch(t){n.e(t)}finally{n.f()}}},{key:"send_meta_2_ww",value:function(){var t=this.tv.$refs.chart.interval_ms||this.data.chart.tf,e=this.tv.getRange();this.ww.just("send-meta-info",{tf:t,range:e})}},{key:"merge_presets",value:function(t,e){if(e)for(var n in e)"settings"===n?Object.assign(t[n],e[n]):t[n]=e[n]}},{key:"grid_mousedown",value:function(t){var e=this;this.object_selected([]);var n=function(){return e.get("RangeTool").filter((function(t){return t.settings.shiftMode})).forEach((function(t){return e.del(t.id)}))};this.data.tool&&"Cursor"!==this.data.tool&&!this.data.drawingMode?"tap"!==t[1].type?(this.tv.$set(this.data,"drawingMode",!0),this.build_tool(t[0])):this.tv.showTheTip("<b>Hodl</b>+<b>Drug</b> to create, <b>Tap</b> to finish a tool"):this.sett.shift_measure&&t[1].shiftKey?(n(),this.tv.$nextTick((function(){return e.build_tool(t[0],"RangeTool:ShiftMode")}))):n()}},{key:"drawing_mode_off",value:function(){this.tv.$set(this.data,"drawingMode",!1),this.tv.$set(this.data,"tool","Cursor")}},{key:"build_tool",value:function(t,e){var n=this.data.tools;e=e||this.data.tool;var r=n.find((function(t){return t.type===e}));if(r){var i=Object.assign({},r.settings||{}),o=(r.data||[]).slice();"legend"in i||(i.legend=!1),"z-index"in i||(i["z-index"]=100),i.$selected=!0,i.$state="wip";var s=t?"offchart":"onchart",a=this.add(s,{name:r.name,type:e.split(":")[0],settings:i,data:o,grid:{id:t}});i.$uuid="".concat(a,"-").concat(C.now()),this.tv.$set(this.data,"selected",i.$uuid),this.add_trash_icon()}}},{key:"system_tool",value:function(t){"Remove"===t&&this.data.selected&&(this.del(this.data.selected),this.remove_trash_icon(),this.drawing_mode_off(),this.on_scroll_lock(!1))}},{key:"change_settings",value:function(t){var e=t[0];delete e.id,t[1],this.merge("".concat(t[3],".settings"),e)}},{key:"on_scroll_lock",value:function(t){this.tv.$set(this.data,"scrollLock",t)}},{key:"object_selected",value:function(t){var e=this.data.selected;e&&(this.merge("".concat(e,".settings"),{$selected:!1}),this.remove_trash_icon()),this.tv.$set(this.data,"selected",null),t.length&&(this.tv.$set(this.data,"selected",t[2]),this.merge("".concat(t[2],".settings"),{$selected:!0}),this.add_trash_icon())}},{key:"add_trash_icon",value:function(){var t="System:Remove";this.data.tools.find((function(e){return e.type===t}))||this.data.tools.push({type:t,icon:ie["trash.png"]})}},{key:"remove_trash_icon",value:function(){C.overwrite(this.data.tools,this.data.tools.filter((function(t){return"System:Remove"!==t.type})))}},{key:"on_overlay_data",value:function(t){var e=this;this.get(".").forEach((function(t){t.settings.$synth&&e.del("".concat(t.id))}));var n,r=cr(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.get_one("".concat(i.id));if(o){if(this.tv.$set(o,"loading",!1),!i.data)continue;o.data=i.data}if(i.new_ovs){for(var s in i.new_ovs.onchart)this.get_one("onchart.".concat(s))||this.add("onchart",i.new_ovs.onchart[s]);for(var s in i.new_ovs.offchart)this.get_one("offchart.".concat(s))||this.add("offchart",i.new_ovs.offchart[s])}}}catch(t){r.e(t)}finally{r.f()}}},{key:"on_overlay_update",value:function(t){var e,n=cr(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.data){var i=this.get_one("".concat(r.id));i&&this.fast_merge(i.data,r.data,!1)}}}catch(t){n.e(t)}finally{n.f()}}},{key:"before_destroy",value:function(){var t=function(t){return!t.settings.$state||"finished"===t.settings.$state};this.data.onchart=this.data.onchart.filter(t),this.data.offchart=this.data.offchart.filter(t),this.drawing_mode_off(),this.on_scroll_lock(!1),this.object_selected([]),this.ww.destroy()}},{key:"get_overlay",value:function(t){var e=t.id||"g".concat(t.grid_id,"_").concat(t.layer_id),n=t.uuid||this.gldc[e];return this.get_one("".concat(n))}}]),t}();function hr(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return dr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pe(t);if(e){var i=pe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fe(this,n)}}var pr=function(t){le(r,t);var e,n=fr(r);function r(){return F(this,r),n.apply(this,arguments)}return G(r,[{key:"init_tvjs",value:function(t){var e=this;this.tv||(this.tv=t,this.init_data(),this.update_ids(),this.tv.$watch((function(){return e.get_by_query(".settings")}),(function(t,n){return e.on_settings(t,n)})),this.tv.$watch((function(){return e.get(".").map((function(t){return t.settings.$uuid}))}),(function(t,n){return e.on_ids_changed(t,n)})),this.tv.$watch((function(){return e.get("datasets")}),ar.watcher.bind(this)))}},{key:"init_data",value:function(t){"chart"in this.data||this.tv.$set(this.data,"chart",{type:"Candles",data:this.data.ohlcv||[]}),"onchart"in this.data||this.tv.$set(this.data,"onchart",[]),"offchart"in this.data||this.tv.$set(this.data,"offchart",[]),this.data.chart.settings||this.tv.$set(this.data.chart,"settings",{}),delete this.data.ohlcv,"datasets"in this.data||this.tv.$set(this.data,"datasets",[]);var e,n=hr(this.data.datasets);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.dss||(this.dss={}),this.dss[r.id]=new ar(this,r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"range_changed",value:(e=Vn(Zn().mark((function t(e,n,r){var i,o,s=this;return Zn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===r&&(r=!1),this.loader){t.next=3;break}return t.abrupt("return");case 3:if(this.loading){t.next=19;break}if(i=this.data.chart.data[0][0],!(e[0]<i)){t.next=19;break}return this.loading=!0,t.next=9,C.pause(250);case 9:if((e=e.slice())[0]=Math.floor(e[0]),e[1]=Math.floor(i),!(o=this.loader(e,n,(function(t){s.chunk_loaded(t)})))||!o.then){t.next=19;break}return t.t0=this,t.next=17,o;case 17:t.t1=t.sent,t.t0.chunk_loaded.call(t.t0,t.t1);case 19:r||(this.last_chunk=[e,n]);case 20:case"end":return t.stop()}}),t,this)}))),function(t,n,r){return e.apply(this,arguments)})},{key:"chunk_loaded",value:function(t){if(Array.isArray(t))this.merge("chart.data",t);else for(var e in t)this.merge(e,t[e]);this.loading=!1,this.last_chunk&&(this.range_changed.apply(this,s(this.last_chunk).concat([!0])),this.last_chunk=null)}},{key:"update_ids",value:function(){this.data.chart.id="chart.".concat(this.data.chart.type);var t={};this.gldc={},this.dcgl={};var e,n=hr(this.data.onchart);try{for(n.s();!(e=n.n()).done;){void 0===t[(c=e.value).type]&&(t[c.type]=0);var r=t[c.type]++;c.id="onchart.".concat(c.type).concat(r),c.name||(c.name=c.type+" ".concat(r)),c.settings||this.tv.$set(c,"settings",{}),this.gldc["g0_".concat(c.type,"_").concat(r)]=c.id,this.dcgl[c.id]="g0_".concat(c.type,"_").concat(r)}}catch(t){n.e(t)}finally{n.f()}t={};var i,o=[{}],s=0,a=hr(this.data.offchart);try{for(a.s();!(i=a.n()).done;){var c;void 0===t[(c=i.value).type]&&(t[c.type]=0);var u=t[c.type]++;c.id="offchart.".concat(c.type).concat(u),c.name||(c.name=c.type+" ".concat(u)),c.settings||this.tv.$set(c,"settings",{}),s++;var l=(c.grid||{}).id||s;(c.grid||{}).id&&s--,o[l]||(o[l]={}),void 0===o[l][c.type]&&(o[l][c.type]=0);var h=o[l][c.type]++;this.gldc["g".concat(l,"_").concat(c.type,"_").concat(h)]=c.id,this.dcgl[c.id]="g".concat(l,"_").concat(c.type,"_").concat(h)}}catch(t){a.e(t)}finally{a.f()}}},{key:"update_candle",value:function(t){var e=this.data.chart.data,n=e[e.length-1],r=t.candle,i=this.tv.$refs.chart.interval_ms,o=n[0]+i,a=t.t||C.now(),c=a>=o?a-a%i:n[0];return r.length>=6?c=r[0]:r=[c].concat(s(r)),this.agg.push("ohlcv",r),this.update_overlays(t,c,i),c>=o}},{key:"update_tick",value:function(t){var e=this.data.chart.data,n=e[e.length-1],r=t.price,i=t.volume||0,o=this.tv.$refs.chart.interval_ms;if(!o)return console.warn("Define the main timeframe");var s=t.t||C.now();n||(n=[s-s%o]);var a=n[0]+o,c=s>=a?s-s%o:n[0];if((c>=a||!e.length)&&void 0!==r){var u=[c,r,r,r,r,i];this.agg.push("ohlcv",u,o),e.push(u),this.scroll_to(c)}else void 0!==r&&(n[2]=Math.max(r,n[2]),n[3]=Math.min(r,n[3]),n[4]=r,n[5]+=i,this.agg.push("ohlcv",n,o));return this.update_overlays(t,c,o),c>=a}},{key:"update_overlays",value:function(t,e,n){for(var r in t)if("price"!==r&&"volume"!==r&&"candle"!==r&&"t"!==r)if(r.includes("datasets."))this.agg.push(r,t[r],n);else{if(Array.isArray(t[r]))i=t[r];else var i=[t[r]];r.includes(".data")||(r+=".data"),this.agg.push(r,[e].concat(s(i)),n)}}},{key:"get_by_query",value:function(t,e){var n=t.split(".");switch(n[0]){case"chart":var r=this.chart_as_piv(n);break;case"onchart":case"offchart":r=this.query_search(t,n);break;case"datasets":var i,o=hr(r=this.query_search(t,n));try{for(o.s();!(i=o.n()).done;){var a=i.value;"data"===a.i&&(a.v=this.dss[a.p.id].data())}}catch(t){o.e(t)}finally{o.f()}break;default:var c=this.query_search(t,["onchart",n[0],n[1]]),u=this.query_search(t,["offchart",n[0],n[1]]);r=[].concat(s(c),s(u))}return r.filter((function(t){return!(t.v||{}).locked||e}))}},{key:"chart_as_piv",value:function(t){var e=t[1];return e?[{p:this.data.chart,i:e,v:this.data.chart[e]}]:[{p:this.data,i:"chart",v:this.data.chart}]}},{key:"query_search",value:function(t,e){var n=this,r=e[0],i=e[1]||"",o=e[2],s=this.data[r].filter((function(e){return e.id===t||e.id&&e.id.includes(i)||e.name===t||e.name&&e.name.includes(i)||t.includes((e.settings||{}).$uuid)}));return o?s.map((function(t){return{p:t,i:o,v:t[o]}})):s.map((function(t,e){return{p:n.data[r],i:n.data[r].indexOf(t),v:t}}))}},{key:"merge_objects",value:function(t,e,n){void 0===n&&(n={}),Object.assign(n,t.v),Object.assign(n,e),this.tv.$set(t.p,t.i,n)}},{key:"merge_ts",value:function(t,e){if(!e.length)return t.v;var n=[t.v[0][0],t.v[t.v.length-1][0]],r=[e[0][0],e[e.length-1][0]],i=[Math.max(n[0],r[0]),Math.min(n[1],r[1])];if(i[1]>=i[0]){var o,a,c=this.ts_overlap(t.v,e,i),u=c.od,l=c.d1,h=c.d2;if((o=t.v).splice.apply(o,s(l)),(a=e).splice.apply(a,s(h)),!t.v.length&&!e.length)return this.tv.$set(t.p,t.i,u),t.v;e.length||(e=t.v.splice(l[0])),t.v.length||(t.v=e.splice(h[0])),this.tv.$set(t.p,t.i,this.combine(t.v,u,e))}else this.tv.$set(t.p,t.i,this.combine(t.v,[],e));return t.v}},{key:"ts_overlap",value:function(t,e,n){for(var r=n[0],i=n[1],o={},s=t.filter((function(t){return t[0]>=r&&t[0]<=i})),a=e.filter((function(t){return t[0]>=r&&t[0]<=i})),c=t.indexOf(s[0]),u=t.indexOf(s[s.length-1]),l=e.indexOf(a[0]),h=e.indexOf(a[a.length-1]),d=0;d<s.length;d++)o[s[d][0]]=s[d];for(d=0;d<a.length;d++)o[a[d][0]]=a[d];return{od:Object.keys(o).sort().map((function(t){return o[t]})),d1:[c,u-c+1],d2:[l,h-l+1]}}},{key:"combine",value:function(t,e,n){function r(t){return t[t.length-1][0]}return t.length||(t=e,e=[]),n.length||(n=e,e=[]),n[0][0]>=t[0][0]&&r(n)<=r(t)?Object.assign(t,e):r(n)>r(t)?e.length<1e5&&n.length<1e5?((i=t).push.apply(i,s(e).concat(s(n))),t):t.concat(e,n):n[0][0]<t[0][0]?e.length<1e5&&n.length<1e5?((o=n).push.apply(o,s(e).concat(s(t))),n):n.concat(e,t):[];var i,o}},{key:"fast_merge",value:function(t,e,n){if(void 0===n&&(n=!0),t){var r=(t[t.length-1]||[])[0],i=e[0];!t.length||i>r?(t.push(e),n&&this.sett.auto_scroll&&this.scroll_to(i)):i===r&&(n?this.tv.$set(t,t.length-1,e):t[t.length-1]=e)}}},{key:"scroll_to",value:function(t){if(!this.tv.$refs.chart.cursor.locked){var e=this.tv.$refs.chart.last_candle;if(e){var n=e[0],r=this.tv.getRange()[1]-n;r>0&&this.tv.goto(t+r)}}}}]),r}(lr),vr=function(){function t(e,n){void 0===n&&(n=100),F(this,t),this.symbols={},this.int=n,this.dc=e,this.st_id=null,this.data_changed=!1}return G(t,[{key:"push",value:function(t,e,n){var r=this;this.st_id||(this.st_id=setTimeout((function(){return r.update()}))),n=parseInt(n);var i=this.symbols[t],o=C.now(),s=t.includes("datasets.");this.data_changed=!0,i?e[0]>=i.upd[0]+n&&!s?(this.refine(t,i.upd.slice()),this.symbols[t]={upd:e,t:o,data:[]}):(this.symbols[t].upd=e,this.symbols[t].t=o):this.symbols[t]={upd:e,t:o,data:[]},s&&this.symbols[t].data.push(e)}},{key:"update",value:function(){var t=this,e={};for(var n in this.symbols){var r=this.symbols[n].upd;if("ohlcv"===n){var i=this.dc.data.chart.data;this.dc.fast_merge(i,r),e.ohlcv=i.slice(-2)}else{if(n.includes("datasets.")){this.update_ds(n,e);continue}if(!(i=this.dc.get_one("".concat(n))))continue;this.dc.fast_merge(i,r,!1)}}this.data_changed&&(this.dc.ww.just("update-data",e),this.data_changed=!1),setTimeout((function(){return t.update()}),this.int)}},{key:"refine",value:function(t,e){if("ohlcv"===t){var n=this.dc.data.chart.data;this.dc.fast_merge(n,e)}else{if(!(n=this.dc.get_one("".concat(t))))return;this.dc.fast_merge(n,e,!1)}}},{key:"update_ds",value:function(t,e){var n=this.symbols[t].data;n.length&&(e[t]=n,this.symbols[t].data=[])}},{key:"clear",value:function(){this.symbols={}}}]),t}();function gr(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return mr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mr(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yr(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=pe(t);if(e){var i=pe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fe(this,n)}}var Ar=function(t){le(n,t);var e=yr(n);function n(t,r){var i;return void 0===t&&(t={}),void 0===r&&(r={}),F(this,n),r=Object.assign({aggregation:100,script_depth:0,auto_scroll:!0,scripts:!0,ww_ram_limit:0,node_url:null,shift_measure:!0},r),(i=e.call(this)).sett=r,i.data=t,i.sett=function(t,e){var n={get:function(t,e){return t[e]},set:function(t,n,r){return t[n]=r,e.just("update-dc-settings",t),!0}};return e.just("update-dc-settings",t),new Proxy(t,n)}(r,i.ww),i.agg=new vr(de(i),r.aggregation),i.se_state={},i}return G(n,[{key:"add",value:function(t,e){if("onchart"===t||"offchart"===t||"datasets"===t)return this.data[t].push(e),this.update_ids(),e.id}},{key:"get",value:function(t){return this.get_by_query(t).map((function(t){return t.v}))}},{key:"get_one",value:function(t){return this.get_by_query(t).map((function(t){return t.v}))[0]}},{key:"set",value:function(t,e){var n,r=gr(this.get_by_query(t));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=void 0!==i.i?i.i:i.p.indexOf(i.v);-1!==o&&this.tv.$set(i.p,o,e)}}catch(t){r.e(t)}finally{r.f()}this.update_ids()}},{key:"merge",value:function(t,e){var n,r=gr(this.get_by_query(t));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Array.isArray(i.v)){if(!Array.isArray(e))continue;i.v[0]&&i.v[0].length>=2?this.merge_ts(i,e):this.merge_objects(i,e,[])}else"object"===he(i.v)&&this.merge_objects(i,e)}}catch(t){r.e(t)}finally{r.f()}this.update_ids()}},{key:"del",value:function(t){var e,n=gr(this.get_by_query(t));try{for(n.s();!(e=n.n()).done;){var r=e.value,i="number"!=typeof r.i?r.i:r.p.indexOf(r.v);-1!==i&&this.tv.$delete(r.p,i)}}catch(t){n.e(t)}finally{n.f()}this.update_ids()}},{key:"update",value:function(t){return t.candle?this.update_candle(t):this.update_tick(t)}},{key:"lock",value:function(t){this.get_by_query(t).forEach((function(t){t.v&&t.v.id&&t.v.type&&(t.v.locked=!0)}))}},{key:"unlock",value:function(t){this.get_by_query(t,!0).forEach((function(t){t.v&&t.v.id&&t.v.type&&(t.v.locked=!1)}))}},{key:"show",value:function(t){"offchart"===t||"onchart"===t?t+=".":"."===t&&(t=""),this.merge(t+".settings",{display:!0})}},{key:"hide",value:function(t){"offchart"===t||"onchart"===t?t+=".":"."===t&&(t=""),this.merge(t+".settings",{display:!1})}},{key:"onrange",value:function(t){var e=this;this.loader=t,setTimeout((function(){return e.tv.set_loader(t?e:null)}),0)}}]),n}(pr);const _r={props:["ux","updater","colors","wrapper"],mounted:function(){this._$emit=this.$emit,this.$emit=this.custom_event,this.init&&this.init()},methods:{close:function(){this.$emit("custom-event",{event:"close-interface",args:[this.$props.ux.uuid]})},modify:function(t){this.$emit("custom-event",{event:"modify-interface",args:[this.$props.ux.uuid,t]})},custom_event:function(t){if("hook"!==t.split(":")[0]){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];this._$emit("custom-event",{event:t,args:n})}}},computed:{overlay:function(){return this.$props.ux.overlay},layout:function(){return this.overlay.layout},uxr:function(){return this.$props.ux}},data:function(){return{}}};var br={Candle:Lt,Volbar:Ut,Line:ce,Pin:se,Price:Ft,Ray:ge,Seg:ae};Wn.install=function(t){t.component(Wn.name,Wn)},"undefined"!=typeof window&&window.Vue&&(window.Vue.use(Wn),window.TradingVueLib={TradingVue:Wn,Overlay:yt,Utils:C,Constants:A,Candle:Lt,Volbar:Ut,layout_cnv:Rt,layout_vol:Nt,DataCube:Ar,Tool:re,Interface:_r,primitives:br});const wr=Wn},418:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* Anit-boostrap tactix */\n.trading-vue *, ::after, ::before {\n box-sizing: content-box;\n}\n.trading-vue img {\n vertical-align: initial;\n}\n",""]),t.exports=e},976:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-botbar {\n position: relative !important;\n}\n",""]),t.exports=e},449:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.t-vue-lbtn-grp {\n margin-left: 0.5em;\n}\n",""]),t.exports=e},108:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-item-list {\n position: absolute;\n user-select: none;\n margin-top: -5px;\n}\n.tvjs-item-list-item {\n display: flex;\n align-items: center;\n padding-right: 20px;\n font-size: 1.15em;\n letter-spacing: 0.05em;\n}\n.tvjs-item-list-item:hover {\n background-color: #76878319;\n}\n.tvjs-item-list-item * {\n position: relative !important;\n}\n",""]),t.exports=e},988:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-legend {\n position: relative;\n z-index: 100;\n font-size: 1.25em;\n margin-left: 10px;\n pointer-events: none;\n text-align: left;\n user-select: none;\n font-weight: 300;\n}\n@media (min-resolution: 2x) {\n.trading-vue-legend {\n font-weight: 400;\n}\n}\n.trading-vue-ohlcv {\n pointer-events: none;\n margin-bottom: 0.5em;\n}\n.t-vue-lspan {\n font-variant-numeric: tabular-nums;\n font-size: 0.95em;\n color: #999999; /* TODO: move => params */\n margin-left: 0.1em;\n margin-right: 0.2em;\n}\n.t-vue-title {\n margin-right: 0.25em;\n font-size: 1.45em;\n}\n.t-vue-ind {\n margin-left: 0.2em;\n margin-bottom: 0.5em;\n font-size: 1.0em;\n margin-top: 0.3em;\n}\n.t-vue-ivalue {\n margin-left: 0.5em;\n}\n.t-vue-unknown {\n color: #999999; /* TODO: move => params */\n}\n.tvjs-appear-enter-active,\n.tvjs-appear-leave-active\n{\n transition: all .25s ease;\n}\n.tvjs-appear-enter, .tvjs-appear-leave-to\n{\n opacity: 0;\n}\n",""]),t.exports=e},423:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.t-vue-lbtn {\n z-index: 100;\n pointer-events: all;\n cursor: pointer;\n}\n",""]),t.exports=e},661:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-section {\n height: 0;\n position: absolute;\n}\n",""]),t.exports=e},168:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-spinner {\n display: inline-block;\n position: relative;\n width: 20px;\n height: 16px;\n margin: -4px 0px -1px 0px;\n opacity: 0.7;\n}\n.tvjs-spinner div {\n position: absolute;\n top: 8px;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n animation-timing-function: cubic-bezier(1, 1, 1, 1);\n}\n.tvjs-spinner div:nth-child(1) {\n left: 2px;\n animation: tvjs-spinner1 0.6s infinite;\n opacity: 0.9;\n}\n.tvjs-spinner div:nth-child(2) {\n left: 2px;\n animation: tvjs-spinner2 0.6s infinite;\n}\n.tvjs-spinner div:nth-child(3) {\n left: 9px;\n animation: tvjs-spinner2 0.6s infinite;\n}\n.tvjs-spinner div:nth-child(4) {\n left: 16px;\n animation: tvjs-spinner3 0.6s infinite;\n opacity: 0.9;\n}\n@keyframes tvjs-spinner1 {\n0% {\n transform: scale(0);\n}\n100% {\n transform: scale(1);\n}\n}\n@keyframes tvjs-spinner3 {\n0% {\n transform: scale(1);\n}\n100% {\n transform: scale(0);\n}\n}\n@keyframes tvjs-spinner2 {\n0% {\n transform: translate(0, 0);\n}\n100% {\n transform: translate(7px, 0);\n}\n}\n",""]),t.exports=e},29:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-drift-enter-active {\n transition: all .3s ease;\n}\n.tvjs-drift-leave-active {\n transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);\n}\n.tvjs-drift-enter, .tvjs-drift-leave-to\n{\n transform: translateX(10px);\n opacity: 0;\n}\n.tvjs-the-tip {\n position: absolute;\n width: 200px;\n text-align: center;\n z-index: 10001;\n color: #ffffff;\n font-size: 1.5em;\n line-height: 1.15em;\n padding: 10px;\n border-radius: 3px;\n right: 70px;\n top: 10px;\n text-shadow: 1px 1px black;\n}\n",""]),t.exports=e},935:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-toolbar {\n position: absolute;\n border-right: 1px solid black;\n z-index: 101;\n padding-top: 3px;\n user-select: none;\n}\n",""]),t.exports=e},379:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-tbitem {\n}\n.trading-vue-tbitem:hover {\n background-color: #76878319;\n}\n.trading-vue-tbitem-exp {\n position: absolute;\n right: -3px;\n padding: 18.5px 5px;\n font-stretch: extra-condensed;\n transform: scaleX(0.6);\n font-size: 0.6em;\n opacity: 0.0;\n user-select: none;\n line-height: 0;\n}\n.trading-vue-tbitem:hover\n.trading-vue-tbitem-exp {\n opacity: 0.5;\n}\n.trading-vue-tbitem-exp:hover {\n background-color: #76878330;\n opacity: 0.9 !important;\n}\n.trading-vue-tbicon {\n position: absolute;\n}\n.trading-vue-tbitem.selected-item > .trading-vue-tbicon,\n.tvjs-item-list-item.selected-item > .trading-vue-tbicon {\n filter: brightness(1.45) sepia(1) hue-rotate(90deg) saturate(4.5) !important;\n}\n.tvjs-pixelated {\n -ms-interpolation-mode: nearest-neighbor;\n image-rendering: -webkit-optimize-contrast;\n image-rendering: -webkit-crisp-edges;\n image-rendering: -moz-crisp-edges;\n image-rendering: -o-crisp-edges;\n image-rendering: pixelated;\n}\n\n",""]),t.exports=e},72:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-ux-wrapper {\n position: absolute;\n display: flex;\n}\n.tvjs-ux-wrapper-pin {\n position: absolute;\n width: 9px;\n height: 9px;\n z-index: 100;\n background-color: #23a776;\n border-radius: 10px;\n margin-left: -6px;\n margin-top: -6px;\n pointer-events: none;\n}\n.tvjs-ux-wrapper-head {\n position: absolute;\n height: 23px;\n width: 100%;\n}\n.tvjs-ux-wrapper-close {\n position: absolute;\n width: 11px;\n height: 11px;\n font-size: 1.5em;\n line-height: 0.5em;\n padding: 1px 1px 1px 1px;\n border-radius: 10px;\n right: 5px;\n top: 5px;\n user-select: none;\n text-align: center;\n z-index: 100;\n}\n.tvjs-ux-wrapper-close-hb {\n}\n.tvjs-ux-wrapper-close:hover {\n background-color: #FF605C !important;\n color: #692324 !important;\n}\n.tvjs-ux-wrapper-full {\n}\n",""]),t.exports=e},983:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-widgets {\n position: absolute;\n z-index: 1000;\n pointer-events: none;\n}\n",""]),t.exports=e},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n,r,i,o=t[1]||"",s=t[3];if(!s)return o;if(e&&"function"==typeof btoa){var a=(n=s,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),c=s.sources.map((function(t){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(t," */")}));return[o].concat(c).concat([a]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},840:(t,e,n)=>{var r;!function(i,o,s,a){"use strict";var c,u=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),h=Math.round,d=Math.abs,f=Date.now;function p(t,e,n){return setTimeout(b(t,n),e)}function v(t,e,n){return!!Array.isArray(t)&&(g(t,n[e],n),!0)}function g(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function m(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var y=m((function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===a)&&(t[r[i]]=e[r[i]]),i++;return t}),"extend","Use `assign`."),A=m((function(t,e){return y(t,e,!0)}),"merge","Use `assign`.");function _(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&c(r,n)}function b(t,e){return function(){return t.apply(e,arguments)}}function w(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function x(t,e){return t===a?e:t}function k(t,e,n){g(I(e),(function(e){t.addEventListener(e,n,!1)}))}function C(t,e,n){g(I(e),(function(e){t.removeEventListener(e,n,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function I(t){return t.trim().split(/\s+/g)}function B(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function O(t){return Array.prototype.slice.call(t,0)}function T(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];B(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function M(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<u.length;){if((r=(n=u[o])?n+i:e)in t)return r;o++}return a}var D=1;function j(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}var Q="ontouchstart"in i,$=M(i,"PointerEvent")!==a,R=Q&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),N="touch",Y="mouse",L=24,U=["x","y"],F=["clientX","clientY"];function P(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){w(t.options.enable,[t])&&n.handler(e)},this.init()}function G(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i==0,s=12&e&&r-i==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=H(e)),i>1&&!n.firstMultiple?n.firstMultiple=H(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,c=s?s.center:o.center,u=e.center=K(r);e.timeStamp=f(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=q(c,u),e.distance=W(c,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=J(e.deltaX,e.deltaY);var l,h,p=z(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=p.x,e.overallVelocityY=p.y,e.overallVelocity=d(p.x)>d(p.y)?p.x:p.y,e.scale=s?(l=s.pointers,W((h=r)[0],h[1],F)/W(l[0],l[1],F)):1,e.rotation=s?function(t,e){return q(e[1],e[0],F)+q(t[1],t[0],F)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,s=t.lastInterval||e,c=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(c>25||s.velocity===a)){var u=e.deltaX-s.deltaX,l=e.deltaY-s.deltaY,h=z(c,u,l);r=h.x,i=h.y,n=d(h.x)>d(h.y)?h.x:h.y,o=J(u,l),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var v=t.element;S(e.srcEvent.target,v)&&(v=e.srcEvent.target),e.target=v}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function H(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:f(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:h(n/e),y:h(r/e)}}function z(t,e,n){return{x:e/t||0,y:n/t||0}}function J(t,e){return t===e?1:d(t)>=d(e)?t<0?2:4:e<0?8:16}function W(t,e,n){n||(n=U);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function q(t,e,n){n||(n=U);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}P.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(j(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(j(this.element),this.evWin,this.domHandler)}};var V={mousedown:1,mousemove:2,mouseup:4},X="mousedown",Z="mousemove mouseup";function tt(){this.evEl=X,this.evWin=Z,this.pressed=!1,P.apply(this,arguments)}_(tt,P,{handler:function(t){var e=V[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:Y,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nt={2:N,3:"pen",4:Y,5:"kinect"},rt="pointerdown",it="pointermove pointerup pointercancel";function ot(){this.evEl=rt,this.evWin=it,P.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(rt="MSPointerDown",it="MSPointerMove MSPointerUp MSPointerCancel"),_(ot,P,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=et[r],o=nt[t.pointerType]||t.pointerType,s=o==N,a=B(e,t.pointerId,"pointerId");1&i&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&i&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function at(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,P.apply(this,arguments)}function ct(t,e){var n=O(t.touches),r=O(t.changedTouches);return 12&e&&(n=T(n.concat(r),"identifier",!0)),[n,r]}_(at,P,{handler:function(t){var e=st[t.type];if(1===e&&(this.started=!0),this.started){var n=ct.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}});var ut={touchstart:1,touchmove:2,touchend:4,touchcancel:8},lt="touchstart touchmove touchend touchcancel";function ht(){this.evTarget=lt,this.targetIds={},P.apply(this,arguments)}function dt(t,e){var n=O(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=O(t.changedTouches),a=[],c=this.target;if(o=n.filter((function(t){return S(t.target,c)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),12&e&&delete r[s[i].identifier],i++;return a.length?[T(o.concat(a),"identifier",!0),a]:void 0}function ft(){P.apply(this,arguments);var t=b(this.handler,this);this.touch=new ht(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function pt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,vt.call(this,e)):12&t&&vt.call(this,e)}function vt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function gt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}_(ht,P,{handler:function(t){var e=ut[t.type],n=dt.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:N,srcEvent:t})}}),_(ft,P,{handler:function(t,e,n){var r=n.pointerType==N,i=n.pointerType==Y;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)pt.call(this,e,n);else if(i&&gt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var mt=M(l.style,"touchAction"),yt=mt!==a,At="compute",_t="auto",bt="manipulation",wt="none",xt="pan-x",kt="pan-y",Ct=function(){if(!yt)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||i.CSS.supports("touch-action",n)})),t}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){t==At&&(t=this.compute()),yt&&this.manager.element.style&&Ct[t]&&(this.manager.element.style[mt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return g(this.manager.recognizers,(function(e){w(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,wt))return wt;var e=E(t,xt),n=E(t,kt);return e&&n?wt:e||n?e?xt:kt:E(t,bt)?bt:_t}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=E(r,wt)&&!Ct[wt],o=E(r,kt)&&!Ct[kt],s=E(r,xt)&&!Ct[xt];if(i){var a=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(a&&c&&u)return}if(!s||!o)return i||o&&6&n||s&&n&L?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Et=32;function It(t){this.options=c({},this.defaults,t||{}),this.id=D++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Bt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ot(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Tt(t,e){var n=e.manager;return n?n.get(t):t}function Mt(){It.apply(this,arguments)}function Dt(){Mt.apply(this,arguments),this.pX=null,this.pY=null}function jt(){Mt.apply(this,arguments)}function Qt(){It.apply(this,arguments),this._timer=null,this._input=null}function $t(){Mt.apply(this,arguments)}function Rt(){Mt.apply(this,arguments)}function Nt(){It.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Yt(t,e){return(e=e||{}).recognizers=x(e.recognizers,Yt.defaults.preset),new Lt(t,e)}function Lt(t,e){var n;this.options=c({},Yt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||($?ot:R?ht:Q?ft:tt))(n,G),this.touchAction=new St(this,this.options.touchAction),Ut(this,!0),g(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Ut(t,e){var n,r=t.element;r.style&&(g(t.options.cssProps,(function(i,o){n=M(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}It.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(v(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Tt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return v(t,"dropRecognizeWith",this)||(t=Tt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(v(t,"requireFailure",this))return this;var e=this.requireFail;return-1===B(e,t=Tt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(v(t,"dropRequireFailure",this))return this;t=Tt(t,this);var e=B(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Bt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Et},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!w(this.options.enable,[this,e]))return this.reset(),void(this.state=Et);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},_(Mt,It,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:Et}}),_(Dt,Mt,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(kt),t&L&&e.push(xt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?1:s<0?8:16,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Mt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ot(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),_(jt,Mt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),_(Qt,It,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[_t]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Et},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=f(),this.manager.emit(this.options.event,this._input)))}}),_($t,Mt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[wt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),_(Rt,Mt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Dt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&L&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&d(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Ot(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),_(Nt,It,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||W(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Et},failTimeout:function(){return this._timer=p((function(){this.state=Et}),this.options.interval,this),Et},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Yt.VERSION="2.0.7",Yt.defaults={domEvents:!1,touchAction:At,enable:!0,inputTarget:null,inputClass:null,preset:[[$t,{enable:!1}],[jt,{enable:!1},["rotate"]],[Rt,{direction:6}],[Dt,{direction:6},["swipe"]],[Nt],[Nt,{event:"doubletap",taps:2},["tap"]],[Qt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Lt.prototype={set:function(t){return c(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof It)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(v(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(v(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=B(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return g(I(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return g(I(t),(function(t){e?n[t]&&n[t].splice(B(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Ut(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Yt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Et,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:L,DIRECTION_ALL:30,Manager:Lt,Input:P,TouchAction:St,TouchInput:ht,MouseInput:tt,PointerEventInput:ot,TouchMouseInput:ft,SingleTouchInput:at,Recognizer:It,AttrRecognizer:Mt,Tap:Nt,Pan:Dt,Swipe:Rt,Pinch:jt,Rotate:$t,Press:Qt,on:k,off:C,each:g,merge:A,extend:y,assign:c,inherit:_,bindFn:b,prefixed:M}),(void 0!==i?i:"undefined"!=typeof self?self:{}).Hammer=Yt,(r=function(){return Yt}.call(e,n,e,t))===a||(t.exports=r)}(window,document)},981:t=>{!function(e,n){"use strict";var r,i,o=function(t){return new o.Instance(t)};o.SUPPORT="wheel",o.ADD_EVENT="addEventListener",o.REMOVE_EVENT="removeEventListener",o.PREFIX="",o.READY=!1,o.Instance=function(t){return o.READY||(o.normalise.browser(),o.READY=!0),this.element=t,this.handlers=[],this},o.Instance.prototype={wheel:function(t,e){return o.event.add(this,o.SUPPORT,t,e),"DOMMouseScroll"===o.SUPPORT&&o.event.add(this,"MozMousePixelScroll",t,e),this},unwheel:function(t,e){return void 0===t&&(t=this.handlers.slice(-1)[0])&&(t=t.original),o.event.remove(this,o.SUPPORT,t,e),"DOMMouseScroll"===o.SUPPORT&&o.event.remove(this,"MozMousePixelScroll",t,e),this}},o.event={add:function(t,n,r,i){var s=r;r=function(t){t||(t=e.event);var n=o.normalise.event(t),r=o.normalise.delta(t);return s(n,r[0],r[1],r[2])},t.element[o.ADD_EVENT](o.PREFIX+n,r,i||!1),t.handlers.push({original:s,normalised:r})},remove:function(t,e,n,r){for(var i,s=n,a={},c=0,u=t.handlers.length;c<u;++c)a[t.handlers[c].original]=t.handlers[c];for(var l in n=(i=a[s]).normalised,t.element[o.REMOVE_EVENT](o.PREFIX+e,n,r||!1),t.handlers)if(t.handlers[l]==i){t.handlers.splice(l,1);break}}},o.normalise={browser:function(){"onwheel"in n||n.documentMode>=9||(o.SUPPORT=void 0!==n.onmousewheel?"mousewheel":"DOMMouseScroll"),e.addEventListener||(o.ADD_EVENT="attachEvent",o.REMOVE_EVENT="detachEvent",o.PREFIX="on")},event:function(t){var e={originalEvent:t,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"===t.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){t.stopPropagation?t.stopPropagation():t.cancelBubble=!1}};return t.wheelDelta&&(e.deltaY=-1/40*t.wheelDelta),t.wheelDeltaX&&(e.deltaX=-1/40*t.wheelDeltaX),t.detail&&(e.deltaY=t.detail),e},delta:function(t){var e,n,o,s=0,a=0,c=0;return t.deltaY&&(s=c=-1*t.deltaY),t.deltaX&&(s=-1*(a=t.deltaX)),t.wheelDelta&&(s=t.wheelDelta),t.wheelDeltaY&&(c=t.wheelDeltaY),t.wheelDeltaX&&(a=-1*t.wheelDeltaX),t.detail&&(s=-1*t.detail),0===s?[0,0,0]:(e=Math.abs(s),(!r||e<r)&&(r=e),n=Math.max(Math.abs(c),Math.abs(a)),(!i||n<i)&&(i=n),o=s>0?"floor":"ceil",[s=Math[o](s/r),a=Math[o](a/i),c=Math[o](c/i)])}},"function"==typeof e.define&&e.define.amd?e.define("hamster",[],(function(){return o})):t.exports=o}(window,window.document)},961:(t,e,n)=>{var r,i=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(t,e){if(!r[t]){r[t]={};for(var n=0;n<t.length;n++)r[t][t.charAt(n)]=n}return r[t][e]}var o={compressToBase64:function(t){if(null==t)return"";var n=o._compress(t,6,(function(t){return e.charAt(t)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:o._decompress(t.length,32,(function(n){return i(e,t.charAt(n))}))},compressToUTF16:function(e){return null==e?"":o._compress(e,15,(function(e){return t(e+32)}))+" "},decompressFromUTF16:function(t){return null==t?"":""==t?null:o._decompress(t.length,16384,(function(e){return t.charCodeAt(e)-32}))},compressToUint8Array:function(t){for(var e=o.compress(t),n=new Uint8Array(2*e.length),r=0,i=e.length;r<i;r++){var s=e.charCodeAt(r);n[2*r]=s>>>8,n[2*r+1]=s%256}return n},decompressFromUint8Array:function(e){if(null==e)return o.decompress(e);for(var n=new Array(e.length/2),r=0,i=n.length;r<i;r++)n[r]=256*e[2*r]+e[2*r+1];var s=[];return n.forEach((function(e){s.push(t(e))})),o.decompress(s.join(""))},compressToEncodedURIComponent:function(t){return null==t?"":o._compress(t,6,(function(t){return n.charAt(t)}))},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),o._decompress(t.length,32,(function(e){return i(n,t.charAt(e))})))},compress:function(e){return o._compress(e,16,(function(e){return t(e)}))},_compress:function(t,e,n){if(null==t)return"";var r,i,o,s={},a={},c="",u="",l="",h=2,d=3,f=2,p=[],v=0,g=0;for(o=0;o<t.length;o+=1)if(c=t.charAt(o),Object.prototype.hasOwnProperty.call(s,c)||(s[c]=d++,a[c]=!0),u=l+c,Object.prototype.hasOwnProperty.call(s,u))l=u;else{if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)v<<=1,g==e-1?(g=0,p.push(n(v)),v=0):g++;for(i=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)v=v<<1|i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}0==--h&&(h=Math.pow(2,f),f++),delete a[l]}else for(i=s[l],r=0;r<f;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1;0==--h&&(h=Math.pow(2,f),f++),s[u]=d++,l=String(c)}if(""!==l){if(Object.prototype.hasOwnProperty.call(a,l)){if(l.charCodeAt(0)<256){for(r=0;r<f;r++)v<<=1,g==e-1?(g=0,p.push(n(v)),v=0):g++;for(i=l.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<f;r++)v=v<<1|i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i=0;for(i=l.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1}0==--h&&(h=Math.pow(2,f),f++),delete a[l]}else for(i=s[l],r=0;r<f;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1;0==--h&&(h=Math.pow(2,f),f++)}for(i=2,r=0;r<f;r++)v=v<<1|1&i,g==e-1?(g=0,p.push(n(v)),v=0):g++,i>>=1;for(;;){if(v<<=1,g==e-1){p.push(n(v));break}g++}return p.join("")},decompress:function(t){return null==t?"":""==t?null:o._decompress(t.length,32768,(function(e){return t.charCodeAt(e)}))},_decompress:function(e,n,r){var i,o,s,a,c,u,l,h=[],d=4,f=4,p=3,v="",g=[],m={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)h[i]=i;for(s=0,c=Math.pow(2,2),u=1;u!=c;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),s|=(a>0?1:0)*u,u<<=1;switch(s){case 0:for(s=0,c=Math.pow(2,8),u=1;u!=c;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),s|=(a>0?1:0)*u,u<<=1;l=t(s);break;case 1:for(s=0,c=Math.pow(2,16),u=1;u!=c;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),s|=(a>0?1:0)*u,u<<=1;l=t(s);break;case 2:return""}for(h[3]=l,o=l,g.push(l);;){if(m.index>e)return"";for(s=0,c=Math.pow(2,p),u=1;u!=c;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),s|=(a>0?1:0)*u,u<<=1;switch(l=s){case 0:for(s=0,c=Math.pow(2,8),u=1;u!=c;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),s|=(a>0?1:0)*u,u<<=1;h[f++]=t(s),l=f-1,d--;break;case 1:for(s=0,c=Math.pow(2,16),u=1;u!=c;)a=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),s|=(a>0?1:0)*u,u<<=1;h[f++]=t(s),l=f-1,d--;break;case 2:return g.join("")}if(0==d&&(d=Math.pow(2,p),p++),h[l])v=h[l];else{if(l!==f)return null;v=o+o.charAt(0)}g.push(v),h[f++]=o+v.charAt(0),o=v,0==--d&&(d=Math.pow(2,p),p++)}}};return o}();void 0===(r=function(){return i}.call(e,n,e,t))||(t.exports=r)},666:t=>{var e=function(t){"use strict";var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new I(r||[]);return o._invoke=function(t,e,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=C(s,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(t,n,s),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",v={};function g(){}function m(){}function y(){}var A={};A[o]=function(){return this};var _=Object.getPrototypeOf,b=_&&_(_(B([])));b&&b!==n&&r.call(b,o)&&(A=b);var w=y.prototype=g.prototype=Object.create(A);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(i,o,s,a){var c=l(t[i],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(h).then((function(t){u.value=t,s(u)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function C(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function B(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,s=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}return{next:O}}function O(){return{value:e,done:!0}}return m.prototype=w.constructor=y,y.constructor=m,m.displayName=c(y,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,a,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},x(k.prototype),k.prototype[s]=function(){return this},t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new k(u(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(w),c(w,a,"Generator"),w[o]=function(){return this},w.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=B,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return a.type="throw",a.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var c=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(c&&u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:B(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}},863:(t,e,n)=>{var r=n(418);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("550b47ab",r,!1,{})},124:(t,e,n)=>{var r=n(976);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("1b34bfeb",r,!1,{})},886:(t,e,n)=>{var r=n(449);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("9895d3a6",r,!1,{})},807:(t,e,n)=>{var r=n(108);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("8139036a",r,!1,{})},600:(t,e,n)=>{var r=n(988);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("1db01c0b",r,!1,{})},169:(t,e,n)=>{var r=n(423);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("68f243ea",r,!1,{})},11:(t,e,n)=>{var r=n(661);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("12d2309d",r,!1,{})},372:(t,e,n)=>{var r=n(168);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("5b620605",r,!1,{})},477:(t,e,n)=>{var r=n(29);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("143dffab",r,!1,{})},153:(t,e,n)=>{var r=n(935);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("f32fd36e",r,!1,{})},501:(t,e,n)=>{var r=n(379);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("604bf5ef",r,!1,{})},565:(t,e,n)=>{var r=n(72);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("21fde573",r,!1,{})},5:(t,e,n)=>{var r=n(983);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals),(0,n(346).Z)("fd83689e",r,!1,{})},346:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(e,{Z:()=>p});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,u=!1,l=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,h=i||{};var s=r(t,e);return v(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i];(c=o[a.id]).refs--,n.push(c)}for(e?v(s=r(t,e)):s=[],i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+d+'~="'+t.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(f){var i=c++;r=a||(a=g()),e=_.bind(null,r,i,!1),n=_.bind(null,r,i,!0)}else r=g(),e=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,A=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function _(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=A(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function b(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(d,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={id:r,exports:{}};return t[r](i,i.exports,n),i.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(851)})()},t.exports=e()},289:(t,e,n)=>{var r=n(364);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("5af204ff",r,!1,{})},353:(t,e,n)=>{var r=n(120);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("6d7a7200",r,!1,{})},754:(t,e,n)=>{var r=n(75);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("7abbfe46",r,!1,{})},735:(t,e,n)=>{var r=n(844);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("6131f4ea",r,!1,{})},429:(t,e,n)=>{var r=n(604);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.id,r,""]]),r.locals&&(t.exports=r.locals);(0,n(534).A)("1561d58a",r,!1,{})},534:(t,e,n)=>{"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}n.d(e,{A:()=>p});var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=i&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,u=!1,l=function(){},h=null,d="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,i){u=n,h=i||{};var s=r(t,e);return v(s),function(e){for(var n=[],i=0;i<s.length;i++){var a=s[i];(c=o[a.id]).refs--,n.push(c)}e?v(s=r(t,e)):s=[];for(i=0;i<n.length;i++){var c;if(0===(c=n[i]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function v(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(m(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(m(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function m(t){var e,n,r=document.querySelector("style["+d+'~="'+t.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(f){var i=c++;r=a||(a=g()),e=_.bind(null,r,i,!1),n=_.bind(null,r,i,!0)}else r=g(),e=b.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var y,A=(y=[],function(t,e){return y[t]=e,y.filter(Boolean).join("\n")});function _(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=A(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function b(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),h.ssrId&&t.setAttribute(d,e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,exports:{}};return t[r](o,o.exports,n),o.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function c(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.r(r),n.d(r,{default:()=>os});const u=new(c((function t(){i(this,t),this.__id__=Math.random()})));function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}const d=function(t,e){var n=JSON.parse(JSON.stringify(t));return Object.assign(n,e)},f=function(t,e){var n,r=[],i=l(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.includes(o)||r.push(o)}}catch(t){i.e(t)}finally{i.f()}return r};function p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return v(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var g=function(){return c((function t(e,n,r){i(this,t),r.use_window?(window.xchartlink$||(window.xchartlink$={}),this.shared=window.xchartlink$):this.shared=u,this.tv=e,this.dc=n,this.sett=r,this.targets={},this.onsettings({"chart-link":r})}),[{key:"onsettings",value:function(t){var e=this;clearTimeout(this.reset_id),this.sett=t["chart-link"],this.shared.rules||(this.shared.rules={},this.shared.refs={},this.shared.meta={});var n=document.getElementById(this.tv.id);this.sett.rules&&n&&(this.shared.rules[this.tv.id]=this.sett.rules),this.shared.refs[this.tv.id]=this.tv,this.combine(),this.reset_id=setTimeout((function(){return e.reset()}))}},{key:"combine",value:function(){for(var t in this.shared.combined={},this.shared.rules)for(var e in this.shared.rules[t])this.shared.combined[e]=this.shared.rules[t][e]}},{key:"compile",value:function(){var t=e(document.getElementsByClassName("trading-vue"));this.targets={};var n,r=p(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.id!==this.tv.id&&(this.targets[i.id]={})}}catch(t){r.e(t)}finally{r.f()}var o,s=p(this.rank(this.shared.combined));try{for(s.s();!(o=s.n()).done;){var a=o.value,c=a.pair[1];if("*"===c&&(c=Object.keys(this.targets)),Array.isArray(c)){var u,l=p(c);try{for(l.s();!(u=l.n()).done;){var h=u.value;h in this.targets&&Object.assign(this.targets[h],a.r)}}catch(t){l.e(t)}finally{l.f()}}else{if(!(c in this.targets))continue;Object.assign(this.targets[c],a.r)}}}catch(t){s.e(t)}finally{s.f()}}},{key:"rank",value:function(t){var e=[];for(var n in t){var r=this.splitr(n);if(this.matches(r[0])){if("*"===r[0])var i=20;else i=Array.isArray(r[0])?10:0;"*"===r[1]?i+=2:Array.isArray(r[1])?i+=1:i+=0,e.push({pair:r,rank:i,r:t[n]})}}return e.sort((function(t,e){return e.rank-t.rank}))}},{key:"matches",value:function(t){return"*"===t||t===this.tv.id||Array.isArray(t)&&t.includes(this.tv.id)}},{key:"splitr",value:function(t){return"*"===t.trim()?["*","*"]:t.split("->").map((function(t){var e=t.split(",");return e.length>1?e.map((function(t){return t.trim()})):t.trim()}))}},{key:"reset",value:function(){var t=this;this.compile(),this.tv.$refs.chart.hooks("xchanged"),this.tv.$watch((function(e){return t.dc.get(".").filter((function(t){return t.settings.$state}))}),this.ontools.bind(this))}},{key:"update",value:function(t){switch(t.event){case"?x-changed":var e=t.args[0];if(e.preventDefault)return;var n=this.tv.$refs.chart._layout.grids[e.grid_id],r=this.tv.$refs.chart.cursor;for(var i in e.t=r.t,e.$=r.y$,this.targets){var o=this.targets[i].cursor;if(o){var s=this.shared.refs[i],a=s.$refs.chart._layout.grids[0],c=this.isX(o),u=a.id===n.id&&this.isY(o),l={preventDefault:!0,x:c?a.t2screen(e.t):-10,y:u?a.$2screen(e.$):-10,grid_id:0};s.$refs.chart.cursor_changed(l),s.$refs.chart.cursor.t=c?e.t:-10,s.$refs.chart.cursor.y$=u?e.$:-10}}break;case"range-changed":var h=(new Date).getTime(),d=this.shared.meta[this.tv.id];if(d&&d.position&&d.position.lock>h)return;var f=t.args[0];for(var i in this.targets){var p=this.targets[i].position,v=this.shared.refs[i],g=this.isX(p);this.isY(p);this.shared.meta[i]||(this.shared.meta[i]={}),this.shared.meta[i].position={lock:h+100},g&&v.goto(f[1])}}}},{key:"ontools",value:function(t,e){var n=this,r=f(t.map((function(t){return t.settings.$uuid})),e.map((function(t){return t.settings.$uuid}))),i=(new Date).getTime(),o=this.shared.meta[this.tv.id];if(!(o&&o.tools&&o.tools.lock>i)){var s=function(){var e=n.targets[a].tools,o=n.shared.refs[a];e&&(n.shared.meta[a]||(n.shared.meta[a]={}),n.shared.meta[a].tools={lock:i+100},n.copy_tools(t,o),r.forEach((function(t){return o.data.del("".concat(t))})))};for(var a in this.targets)s()}}},{key:"copy_tools",value:function(t,e){var n,r=p(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.id.includes("offchart")){var o=i.settings.$uuid,s=e.data.get_one("".concat(o));if(s){e.$set(s,"settings",d(i.settings,{$selected:!1,$state:"finished"}));var a,c=p(e.$refs.chart.$refs.sec[0].$refs.grid.$children.filter((function(t){return t.tool})));try{for(c.s();!(a=c.n()).done;){a.value.pins.forEach((function(t){return t.re_init()}))}}catch(t){c.e(t)}finally{c.f()}}else{var u=d(i);u.settings.$selected=!1,u.settings.$state="finished",e.data.add("onchart",u)}}}}catch(t){r.e(t)}finally{r.f()}}},{key:"isX",value:function(t){return!0===t||"string"==typeof t&&t.includes("X")}},{key:"isY",value:function(t){return!0===t||"string"==typeof t&&t.includes("Y")}}])}();g.__name__="chart-link";const m={widgets:{},components:{},overlays:{},colorpacks:{},skins:{},Main:g};var y=n(222),A=Object.freeze({}),_=Array.isArray;function b(t){return null==t}function w(t){return null!=t}function x(t){return!0===t}function k(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function C(t){return"function"==typeof t}function S(t){return null!==t&&"object"==typeof t}var E=Object.prototype.toString;function I(t){return"[object Object]"===E.call(t)}function B(t){return"[object RegExp]"===E.call(t)}function O(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function T(t){return w(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function M(t){return null==t?"":Array.isArray(t)||I(t)&&t.toString===E?JSON.stringify(t,D,2):String(t)}function D(t,e){return e&&e.__v_isRef?e.value:e}function j(t){var e=parseFloat(t);return isNaN(e)?t:e}function Q(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}Q("slot,component",!0);var $=Q("key,ref,slot,slot-scope,is");function R(t,e){var n=t.length;if(n){if(e===t[n-1])return void(t.length=n-1);var r=t.indexOf(e);if(r>-1)return t.splice(r,1)}}var N=Object.prototype.hasOwnProperty;function Y(t,e){return N.call(t,e)}function L(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var U=/-(\w)/g,F=L((function(t){return t.replace(U,(function(t,e){return e?e.toUpperCase():""}))})),P=L((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),G=/\B([A-Z])/g,H=L((function(t){return t.replace(G,"-$1").toLowerCase()}));var K=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function z(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function J(t,e){for(var n in e)t[n]=e[n];return t}function W(t){for(var e={},n=0;n<t.length;n++)t[n]&&J(e,t[n]);return e}function q(t,e,n){}var V=function(t,e,n){return!1},X=function(t){return t};function Z(t,e){if(t===e)return!0;var n=S(t),r=S(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return Z(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every((function(n){return Z(t[n],e[n])}))}catch(t){return!1}}function tt(t,e){for(var n=0;n<t.length;n++)if(Z(t[n],e))return n;return-1}function et(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function nt(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var rt="data-server-rendered",it=["component","directive","filter"],ot=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],st={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:V,isReservedAttr:V,isUnknownElement:V,getTagNamespace:q,parsePlatformTagName:X,mustUseProp:V,async:!0,_lifecycleHooks:ot},at=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function ct(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function ut(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var lt=new RegExp("[^".concat(at.source,".$_\\d]"));var ht="__proto__"in{},dt="undefined"!=typeof window,ft=dt&&window.navigator.userAgent.toLowerCase(),pt=ft&&/msie|trident/.test(ft),vt=ft&&ft.indexOf("msie 9.0")>0,gt=ft&&ft.indexOf("edge/")>0;ft&&ft.indexOf("android");var mt=ft&&/iphone|ipad|ipod|ios/.test(ft);ft&&/chrome\/\d+/.test(ft),ft&&/phantomjs/.test(ft);var yt,At=ft&&ft.match(/firefox\/(\d+)/),_t={}.watch,bt=!1;if(dt)try{var wt={};Object.defineProperty(wt,"passive",{get:function(){bt=!0}}),window.addEventListener("test-passive",null,wt)}catch(t){}var xt=function(){return void 0===yt&&(yt=!dt&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),yt},kt=dt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ct(t){return"function"==typeof t&&/native code/.test(t.toString())}var St,Et="undefined"!=typeof Symbol&&Ct(Symbol)&&"undefined"!=typeof Reflect&&Ct(Reflect.ownKeys);St="undefined"!=typeof Set&&Ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var It=null;function Bt(t){void 0===t&&(t=null),t||It&&It._scope.off(),It=t,t&&t._scope.on()}var Ot=function(){function t(t,e,n,r,i,o,s,a){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),Tt=function(t){void 0===t&&(t="");var e=new Ot;return e.text=t,e.isComment=!0,e};function Mt(t){return new Ot(void 0,void 0,void 0,String(t))}function Dt(t){var e=new Ot(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}"function"==typeof SuppressedError&&SuppressedError;var jt=0,Qt=[],$t=function(){function t(){this._pending=!1,this.id=jt++,this.subs=[]}return t.prototype.addSub=function(t){this.subs.push(t)},t.prototype.removeSub=function(t){this.subs[this.subs.indexOf(t)]=null,this._pending||(this._pending=!0,Qt.push(this))},t.prototype.depend=function(e){t.target&&t.target.addDep(this)},t.prototype.notify=function(t){var e=this.subs.filter((function(t){return t}));for(var n=0,r=e.length;n<r;n++){0,e[n].update()}},t}();$t.target=null;var Rt=[];function Nt(t){Rt.push(t),$t.target=t}function Yt(){Rt.pop(),$t.target=Rt[Rt.length-1]}var Lt=Array.prototype,Ut=Object.create(Lt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=Lt[t];ut(Ut,t,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=e.apply(this,n),s=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&s.observeArray(i),s.dep.notify(),o}))}));var Ft=Object.getOwnPropertyNames(Ut),Pt={},Gt=!0;function Ht(t){Gt=t}var Kt={notify:q,depend:q,addSub:q,removeSub:q},zt=function(){function t(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),this.value=t,this.shallow=e,this.mock=n,this.dep=n?Kt:new $t,this.vmCount=0,ut(t,"__ob__",this),_(t)){if(!n)if(ht)t.__proto__=Ut;else for(var r=0,i=Ft.length;r<i;r++){ut(t,s=Ft[r],Ut[s])}e||this.observeArray(t)}else{var o=Object.keys(t);for(r=0;r<o.length;r++){var s;Wt(t,s=o[r],Pt,void 0,e,n)}}}return t.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Jt(t[e],!1,this.mock)},t}();function Jt(t,e,n){return t&&Y(t,"__ob__")&&t.__ob__ instanceof zt?t.__ob__:!Gt||!n&&xt()||!_(t)&&!I(t)||!Object.isExtensible(t)||t.__v_skip||ne(t)||t instanceof Ot?void 0:new zt(t,e,n)}function Wt(t,e,n,r,i,o,s){void 0===s&&(s=!1);var a=new $t,c=Object.getOwnPropertyDescriptor(t,e);if(!c||!1!==c.configurable){var u=c&&c.get,l=c&&c.set;u&&!l||n!==Pt&&2!==arguments.length||(n=t[e]);var h=i?n&&n.__ob__:Jt(n,!1,o);return Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=u?u.call(t):n;return $t.target&&(a.depend(),h&&(h.dep.depend(),_(e)&&Xt(e))),ne(e)&&!i?e.value:e},set:function(e){var r=u?u.call(t):n;if(nt(r,e)){if(l)l.call(t,e);else{if(u)return;if(!i&&ne(r)&&!ne(e))return void(r.value=e);n=e}h=i?e&&e.__ob__:Jt(e,!1,o),a.notify()}}}),a}}function qt(t,e,n){if(!ee(t)){var r=t.__ob__;return _(t)&&O(e)?(t.length=Math.max(t.length,e),t.splice(e,1,n),r&&!r.shallow&&r.mock&&Jt(n,!1,!0),n):e in t&&!(e in Object.prototype)?(t[e]=n,n):t._isVue||r&&r.vmCount?n:r?(Wt(r.value,e,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(t[e]=n,n)}}function Vt(t,e){if(_(t)&&O(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||ee(t)||Y(t,e)&&(delete t[e],n&&n.dep.notify())}}function Xt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)(e=t[n])&&e.__ob__&&e.__ob__.dep.depend(),_(e)&&Xt(e)}function Zt(t){return te(t,!0),ut(t,"__v_isShallow",!0),t}function te(t,e){if(!ee(t)){Jt(t,e,xt());0}}function ee(t){return!(!t||!t.__v_isReadonly)}function ne(t){return!(!t||!0!==t.__v_isRef)}function re(t,e,n){Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:function(){var t=e[n];if(ne(t))return t.value;var r=t&&t.__ob__;return r&&r.dep.depend(),t},set:function(t){var r=e[n];ne(r)&&!ne(t)?r.value=t:e[n]=t}})}var ie="watcher";"".concat(ie," callback"),"".concat(ie," getter"),"".concat(ie," cleanup");var oe;var se=function(){function t(t){void 0===t&&(t=!1),this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=oe,!t&&oe&&(this.index=(oe.scopes||(oe.scopes=[])).push(this)-1)}return t.prototype.run=function(t){if(this.active){var e=oe;try{return oe=this,t()}finally{oe=e}}else 0},t.prototype.on=function(){oe=this},t.prototype.off=function(){oe=this.parent},t.prototype.stop=function(t){if(this.active){var e=void 0,n=void 0;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].teardown();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},t}();function ae(t){var e=t._provided,n=t.$parent&&t.$parent._provided;return n===e?t._provided=Object.create(n):e}var ce=L((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function ue(t,e){function n(){var t=n.fns;if(!_(t))return We(t,null,arguments,e,"v-on handler");for(var r=t.slice(),i=0;i<r.length;i++)We(r[i],null,arguments,e,"v-on handler")}return n.fns=t,n}function le(t,e,n,r,i,o){var s,a,c,u;for(s in t)a=t[s],c=e[s],u=ce(s),b(a)||(b(c)?(b(a.fns)&&(a=t[s]=ue(a,o)),x(u.once)&&(a=t[s]=i(u.name,a,u.capture)),n(u.name,a,u.capture,u.passive,u.params)):a!==c&&(c.fns=a,t[s]=c));for(s in e)b(t[s])&&r((u=ce(s)).name,e[s],u.capture)}function he(t,e,n){var r;t instanceof Ot&&(t=t.data.hook||(t.data.hook={}));var i=t[e];function o(){n.apply(this,arguments),R(r.fns,o)}b(i)?r=ue([o]):w(i.fns)&&x(i.merged)?(r=i).fns.push(o):r=ue([i,o]),r.merged=!0,t[e]=r}function de(t,e,n,r,i){if(w(e)){if(Y(e,n))return t[n]=e[n],i||delete e[n],!0;if(Y(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function fe(t){return k(t)?[Mt(t)]:_(t)?ve(t):void 0}function pe(t){return w(t)&&w(t.text)&&!1===t.isComment}function ve(t,e){var n,r,i,o,s=[];for(n=0;n<t.length;n++)b(r=t[n])||"boolean"==typeof r||(o=s[i=s.length-1],_(r)?r.length>0&&(pe((r=ve(r,"".concat(e||"","_").concat(n)))[0])&&pe(o)&&(s[i]=Mt(o.text+r[0].text),r.shift()),s.push.apply(s,r)):k(r)?pe(o)?s[i]=Mt(o.text+r):""!==r&&s.push(Mt(r)):pe(r)&&pe(o)?s[i]=Mt(o.text+r.text):(x(t._isVList)&&w(r.tag)&&b(r.key)&&w(e)&&(r.key="__vlist".concat(e,"_").concat(n,"__")),s.push(r)));return s}function ge(t,e){var n,r,i,o,s=null;if(_(t)||"string"==typeof t)for(s=new Array(t.length),n=0,r=t.length;n<r;n++)s[n]=e(t[n],n);else if("number"==typeof t)for(s=new Array(t),n=0;n<t;n++)s[n]=e(n+1,n);else if(S(t))if(Et&&t[Symbol.iterator]){s=[];for(var a=t[Symbol.iterator](),c=a.next();!c.done;)s.push(e(c.value,s.length)),c=a.next()}else for(i=Object.keys(t),s=new Array(i.length),n=0,r=i.length;n<r;n++)o=i[n],s[n]=e(t[o],o,n);return w(s)||(s=[]),s._isVList=!0,s}function me(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=J(J({},r),n)),i=o(n)||(C(e)?e():e)):i=this.$slots[t]||(C(e)?e():e);var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function ye(t){return er(this.$options,"filters",t,!0)||X}function Ae(t,e){return _(t)?-1===t.indexOf(e):t!==e}function _e(t,e,n,r,i){var o=st.keyCodes[e]||n;return i&&r&&!st.keyCodes[e]?Ae(i,r):o?Ae(o,t):r?H(r)!==e:void 0===t}function be(t,e,n,r,i){if(n)if(S(n)){_(n)&&(n=W(n));var o=void 0,s=function(s){if("class"===s||"style"===s||$(s))o=t;else{var a=t.attrs&&t.attrs.type;o=r||st.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var c=F(s),u=H(s);c in o||u in o||(o[s]=n[s],i&&((t.on||(t.on={}))["update:".concat(s)]=function(t){n[s]=t}))};for(var a in n)s(a)}else;return t}function we(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||ke(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,this._c,this),"__static__".concat(t),!1),r}function xe(t,e,n){return ke(t,"__once__".concat(e).concat(n?"_".concat(n):""),!0),t}function ke(t,e,n){if(_(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Ce(t[r],"".concat(e,"_").concat(r),n);else Ce(t,e,n)}function Ce(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Se(t,e){if(e)if(I(e)){var n=t.on=t.on?J({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function Ee(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];_(o)?Ee(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ie(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Be(t,e){return"string"==typeof t?e+t:t}function Oe(t){t._o=xe,t._n=j,t._s=M,t._l=ge,t._t=me,t._q=Z,t._i=tt,t._m=we,t._f=ye,t._k=_e,t._b=be,t._v=Mt,t._e=Tt,t._u=Ee,t._g=Se,t._d=Ie,t._p=Be}function Te(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,c=n[a]||(n[a]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(Me)&&delete n[u];return n}function Me(t){return t.isComment&&!t.asyncFactory||" "===t.text}function De(t){return t.isComment&&t.asyncFactory}function je(t,e,n,r){var i,o=Object.keys(n).length>0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==A&&a===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=Qe(t,n,c,e[c]))}else i={};for(var u in n)u in i||(i[u]=$e(n,u));return e&&Object.isExtensible(e)&&(e._normalized=i),ut(i,"$stable",s),ut(i,"$key",a),ut(i,"$hasNormal",o),i}function Qe(t,e,n,r){var i=function(){var e=It;Bt(t);var n=arguments.length?r.apply(null,arguments):r({}),i=(n=n&&"object"==typeof n&&!_(n)?[n]:fe(n))&&n[0];return Bt(e),n&&(!i||1===n.length&&i.isComment&&!De(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function $e(t,e){return function(){return t[e]}}function Re(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};ut(e,"_v_attr_proxy",!0),Ne(e,t.$attrs,A,t,"$attrs")}return t._attrsProxy},get listeners(){t._listenersProxy||Ne(t._listenersProxy={},t.$listeners,A,t,"$listeners");return t._listenersProxy},get slots(){return function(t){t._slotsProxy||Le(t._slotsProxy={},t.$scopedSlots);return t._slotsProxy}(t)},emit:K(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return re(t,e,n)}))}}}function Ne(t,e,n,r,i){var o=!1;for(var s in e)s in t?e[s]!==n[s]&&(o=!0):(o=!0,Ye(t,s,r,i));for(var s in t)s in e||(o=!0,delete t[s]);return o}function Ye(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function Le(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}var Ue=null;function Fe(t,e){return(t.__esModule||Et&&"Module"===t[Symbol.toStringTag])&&(t=t.default),S(t)?e.extend(t):t}function Pe(t){if(_(t))for(var e=0;e<t.length;e++){var n=t[e];if(w(n)&&(w(n.componentOptions)||De(n)))return n}}var Ge=1,He=2;function Ke(t,e,n,r,i,o){return(_(n)||k(n))&&(i=r,r=n,n=void 0),x(o)&&(i=He),function(t,e,n,r,i){if(w(n)&&w(n.__ob__))return Tt();w(n)&&w(n.is)&&(e=n.is);if(!e)return Tt();0;_(r)&&C(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===He?r=fe(r):i===Ge&&(r=function(t){for(var e=0;e<t.length;e++)if(_(t[e]))return Array.prototype.concat.apply([],t);return t}(r));var o,s;if("string"==typeof e){var a=void 0;s=t.$vnode&&t.$vnode.ns||st.getTagNamespace(e),o=st.isReservedTag(e)?new Ot(st.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!w(a=er(t.$options,"components",e))?new Ot(e,n,r,void 0,void 0,t):Hn(a,n,t,r,e)}else o=Hn(e,n,t,r);return _(o)?o:w(o)?(w(s)&&ze(o,s),w(n)&&function(t){S(t.style)&&hn(t.style);S(t.class)&&hn(t.class)}(n),o):Tt()}(t,e,n,r,i)}function ze(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),w(t.children))for(var r=0,i=t.children.length;r<i;r++){var o=t.children[r];w(o.tag)&&(b(o.ns)||x(n)&&"svg"!==o.tag)&&ze(o,e,n)}}function Je(t,e,n){Nt();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){qe(t,r,"errorCaptured hook")}}qe(t,e,n)}finally{Yt()}}function We(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&T(o)&&!o._handled&&(o.catch((function(t){return Je(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Je(t,r,i)}return o}function qe(t,e,n){if(st.errorHandler)try{return st.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Ve(e,null,"config.errorHandler")}Ve(t,e,n)}function Ve(t,e,n){if(!dt||"undefined"==typeof console)throw t;console.error(t)}var Xe,Ze=!1,tn=[],en=!1;function nn(){en=!1;var t=tn.slice(0);tn.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&Ct(Promise)){var rn=Promise.resolve();Xe=function(){rn.then(nn),mt&&setTimeout(q)},Ze=!0}else if(pt||"undefined"==typeof MutationObserver||!Ct(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Xe="undefined"!=typeof setImmediate&&Ct(setImmediate)?function(){setImmediate(nn)}:function(){setTimeout(nn,0)};else{var on=1,sn=new MutationObserver(nn),an=document.createTextNode(String(on));sn.observe(an,{characterData:!0}),Xe=function(){on=(on+1)%2,an.data=String(on)},Ze=!0}function cn(t,e){var n;if(tn.push((function(){if(t)try{t.call(e)}catch(t){Je(t,e,"nextTick")}else n&&n(e)})),en||(en=!0,Xe()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}function un(t){return function(e,n){if(void 0===n&&(n=It),n)return function(t,e,n){var r=t.$options;r[e]=Vn(r[e],n)}(n,t,e)}}un("beforeMount"),un("mounted"),un("beforeUpdate"),un("updated"),un("beforeDestroy"),un("destroyed"),un("activated"),un("deactivated"),un("serverPrefetch"),un("renderTracked"),un("renderTriggered"),un("errorCaptured");var ln=new St;function hn(t){return dn(t,ln),ln.clear(),t}function dn(t,e){var n,r,i=_(t);if(!(!i&&!S(t)||t.__v_skip||Object.isFrozen(t)||t instanceof Ot)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)dn(t[n],e);else if(ne(t))dn(t.value,e);else for(n=(r=Object.keys(t)).length;n--;)dn(t[r[n]],e)}}var fn,pn=0,vn=function(){function t(t,e,n,r,i){var o,s;o=this,void 0===(s=oe&&!oe._vm?oe:t?t._scope:void 0)&&(s=oe),s&&s.active&&s.effects.push(o),(this.vm=t)&&i&&(t._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++pn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new St,this.newDepIds=new St,this.expression="",C(e)?this.getter=e:(this.getter=function(t){if(!lt.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=q)),this.value=this.lazy?void 0:this.get()}return t.prototype.get=function(){var t;Nt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Je(t,e,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&hn(t),Yt(),this.cleanupDeps()}return t},t.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},t.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},t.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Rn(this)},t.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||S(t)||this.deep){var e=this.value;if(this.value=t,this.user){var n='callback for watcher "'.concat(this.expression,'"');We(this.cb,this.vm,[t,e],this.vm,n)}else this.cb.call(this.vm,t,e)}}},t.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},t.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},t.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&R(this.vm._scope.effects,this),this.active){for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},t}();function gn(t,e){fn.$on(t,e)}function mn(t,e){fn.$off(t,e)}function yn(t,e){var n=fn;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function An(t,e,n){fn=t,le(e,n||{},gn,mn,yn,t),fn=void 0}var _n=null;function bn(t){var e=_n;return _n=t,function(){_n=e}}function wn(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function xn(t,e){if(e){if(t._directInactive=!1,wn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)xn(t.$children[n]);Cn(t,"activated")}}function kn(t,e){if(!(e&&(t._directInactive=!0,wn(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)kn(t.$children[n]);Cn(t,"deactivated")}}function Cn(t,e,n,r){void 0===r&&(r=!0),Nt();var i=It,o=oe;r&&Bt(t);var s=t.$options[e],a="".concat(e," hook");if(s)for(var c=0,u=s.length;c<u;c++)We(s[c],t,n||null,t,a);t._hasHookEvent&&t.$emit("hook:"+e),r&&(Bt(i),o&&o.on()),Yt()}var Sn=[],En=[],In={},Bn=!1,On=!1,Tn=0;var Mn=0,Dn=Date.now;if(dt&&!pt){var jn=window.performance;jn&&"function"==typeof jn.now&&Dn()>document.createEvent("Event").timeStamp&&(Dn=function(){return jn.now()})}var Qn=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function $n(){var t,e;for(Mn=Dn(),On=!0,Sn.sort(Qn),Tn=0;Tn<Sn.length;Tn++)(t=Sn[Tn]).before&&t.before(),e=t.id,In[e]=null,t.run();var n=En.slice(),r=Sn.slice();Tn=Sn.length=En.length=0,In={},Bn=On=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,xn(t[e],!0)}(n),function(t){var e=t.length;for(;e--;){var n=t[e],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Cn(r,"updated")}}(r),function(){for(var t=0;t<Qt.length;t++){var e=Qt[t];e.subs=e.subs.filter((function(t){return t})),e._pending=!1}Qt.length=0}(),kt&&st.devtools&&kt.emit("flush")}function Rn(t){var e=t.id;if(null==In[e]&&(t!==$t.target||!t.noRecurse)){if(In[e]=!0,On){for(var n=Sn.length-1;n>Tn&&Sn[n].id>t.id;)n--;Sn.splice(n+1,0,t)}else Sn.push(t);Bn||(Bn=!0,cn($n))}}function Nn(t,e){if(t){for(var n=Object.create(null),r=Et?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var s=t[o].from;if(s in e._provided)n[o]=e._provided[s];else if("default"in t[o]){var a=t[o].default;n[o]=C(a)?a.call(e):a}else 0}}return n}}function Yn(t,e,n,r,i){var o,s=this,a=i.options;Y(r,"_uid")?(o=Object.create(r))._original=r:(o=r,r=r._original);var c=x(a._compiled),u=!c;this.data=t,this.props=e,this.children=n,this.parent=r,this.listeners=t.on||A,this.injections=Nn(a.inject,r),this.slots=function(){return s.$slots||je(r,t.scopedSlots,s.$slots=Te(n,r)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return je(r,t.scopedSlots,this.slots())}}),c&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=je(r,t.scopedSlots,this.$slots)),a._scopeId?this._c=function(t,e,n,i){var s=Ke(o,t,e,n,i,u);return s&&!_(s)&&(s.fnScopeId=a._scopeId,s.fnContext=r),s}:this._c=function(t,e,n,r){return Ke(o,t,e,n,r,u)}}function Ln(t,e,n,r,i){var o=Dt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Un(t,e){for(var n in e)t[F(n)]=e[n]}function Fn(t){return t.name||t.__name||t._componentTag}Oe(Yn.prototype);var Pn={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;Pn.prepatch(n,n)}else{(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;w(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new t.componentOptions.Ctor(n)}(t,_n)).$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,r,i){var o=r.data.scopedSlots,s=t.$scopedSlots,a=!!(o&&!o.$stable||s!==A&&!s.$stable||o&&t.$scopedSlots.$key!==o.$key||!o&&t.$scopedSlots.$key),c=!!(i||t.$options._renderChildren||a),u=t.$vnode;t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=i;var l=r.data.attrs||A;t._attrsProxy&&Ne(t._attrsProxy,l,u.data&&u.data.attrs||A,t,"$attrs")&&(c=!0),t.$attrs=l,n=n||A;var h=t.$options._parentListeners;if(t._listenersProxy&&Ne(t._listenersProxy,n,h||A,t,"$listeners"),t.$listeners=t.$options._parentListeners=n,An(t,n,h),e&&t.$options.props){Ht(!1);for(var d=t._props,f=t.$options._propKeys||[],p=0;p<f.length;p++){var v=f[p],g=t.$options.props;d[v]=nr(v,g,e,t)}Ht(!0),t.$options.propsData=e}c&&(t.$slots=Te(i,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,Cn(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,En.push(e)):xn(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?kn(e,!0):e.$destroy())}},Gn=Object.keys(Pn);function Hn(t,e,n,r,i){if(!b(t)){var o=n.$options._base;if(S(t)&&(t=o.extend(t)),"function"==typeof t){var s;if(b(t.cid)&&(t=function(t,e){if(x(t.error)&&w(t.errorComp))return t.errorComp;if(w(t.resolved))return t.resolved;var n=Ue;if(n&&w(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),x(t.loading)&&w(t.loadingComp))return t.loadingComp;if(n&&!w(t.owners)){var r=t.owners=[n],i=!0,o=null,s=null;n.$on("hook:destroyed",(function(){return R(r,n)}));var a=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==o&&(clearTimeout(o),o=null),null!==s&&(clearTimeout(s),s=null))},c=et((function(n){t.resolved=Fe(n,e),i?r.length=0:a(!0)})),u=et((function(e){w(t.errorComp)&&(t.error=!0,a(!0))})),l=t(c,u);return S(l)&&(T(l)?b(t.resolved)&&l.then(c,u):T(l.component)&&(l.component.then(c,u),w(l.error)&&(t.errorComp=Fe(l.error,e)),w(l.loading)&&(t.loadingComp=Fe(l.loading,e),0===l.delay?t.loading=!0:o=setTimeout((function(){o=null,b(t.resolved)&&b(t.error)&&(t.loading=!0,a(!1))}),l.delay||200)),w(l.timeout)&&(s=setTimeout((function(){s=null,b(t.resolved)&&u(null)}),l.timeout)))),i=!1,t.loading?t.loadingComp:t.resolved}}(s=t,o),void 0===t))return function(t,e,n,r,i){var o=Tt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(s,e,n,r,i);e=e||{},gr(t),w(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),o=i[r],s=e.model.callback;w(o)?(_(o)?-1===o.indexOf(s):o!==s)&&(i[r]=[s].concat(o)):i[r]=s}(t.options,e);var a=function(t,e){var n=e.options.props;if(!b(n)){var r={},i=t.attrs,o=t.props;if(w(i)||w(o))for(var s in n){var a=H(s);de(r,o,s,a,!0)||de(r,i,s,a,!1)}return r}}(e,t);if(x(t.options.functional))return function(t,e,n,r,i){var o=t.options,s={},a=o.props;if(w(a))for(var c in a)s[c]=nr(c,a,e||A);else w(n.attrs)&&Un(s,n.attrs),w(n.props)&&Un(s,n.props);var u=new Yn(n,s,i,r,t),l=o.render.call(null,u._c,u);if(l instanceof Ot)return Ln(l,n,u.parent,o);if(_(l)){for(var h=fe(l)||[],d=new Array(h.length),f=0;f<h.length;f++)d[f]=Ln(h[f],n,u.parent,o);return d}}(t,a,e,n,r);var c=e.on;if(e.on=e.nativeOn,x(t.options.abstract)){var u=e.slot;e={},u&&(e.slot=u)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Gn.length;n++){var r=Gn[n],i=e[r],o=Pn[r];i===o||i&&i._merged||(e[r]=i?Kn(o,i):o)}}(e);var l=Fn(t.options)||i;return new Ot("vue-component-".concat(t.cid).concat(l?"-".concat(l):""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:a,listeners:c,tag:i,children:r},s)}}}function Kn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}var zn=q,Jn=st.optionMergeStrategies;function Wn(t,e,n){if(void 0===n&&(n=!0),!e)return t;for(var r,i,o,s=Et?Reflect.ownKeys(e):Object.keys(e),a=0;a<s.length;a++)"__ob__"!==(r=s[a])&&(i=t[r],o=e[r],n&&Y(t,r)?i!==o&&I(i)&&I(o)&&Wn(i,o):qt(t,r,o));return t}function qn(t,e,n){return n?function(){var r=C(e)?e.call(n,n):e,i=C(t)?t.call(n,n):t;return r?Wn(r,i):i}:e?t?function(){return Wn(C(e)?e.call(this,this):e,C(t)?t.call(this,this):t)}:e:t}function Vn(t,e){var n=e?t?t.concat(e):_(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function Xn(t,e,n,r){var i=Object.create(t||null);return e?J(i,e):i}Jn.data=function(t,e,n){return n?qn(t,e,n):e&&"function"!=typeof e?t:qn(t,e)},ot.forEach((function(t){Jn[t]=Vn})),it.forEach((function(t){Jn[t+"s"]=Xn})),Jn.watch=function(t,e,n,r){if(t===_t&&(t=void 0),e===_t&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in J(i,t),e){var s=i[o],a=e[o];s&&!_(s)&&(s=[s]),i[o]=s?s.concat(a):_(a)?a:[a]}return i},Jn.props=Jn.methods=Jn.inject=Jn.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return J(i,t),e&&J(i,e),i},Jn.provide=function(t,e){return t?function(){var n=Object.create(null);return Wn(n,C(t)?t.call(this):t),e&&Wn(n,C(e)?e.call(this):e,!1),n}:e};var Zn=function(t,e){return void 0===e?t:e};function tr(t,e,n){if(C(e)&&(e=e.options),function(t){var e=t.props;if(e){var n,r,i={};if(_(e))for(n=e.length;n--;)"string"==typeof(r=e[n])&&(i[F(r)]={type:null});else if(I(e))for(var o in e)r=e[o],i[F(o)]=I(r)?r:{type:r};t.props=i}}(e),function(t){var e=t.inject;if(e){var n=t.inject={};if(_(e))for(var r=0;r<e.length;r++)n[e[r]]={from:e[r]};else if(I(e))for(var i in e){var o=e[i];n[i]=I(o)?J({from:i},o):{from:o}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];C(r)&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=tr(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=tr(t,e.mixins[r],n);var o,s={};for(o in t)a(o);for(o in e)Y(t,o)||a(o);function a(r){var i=Jn[r]||Zn;s[r]=i(t[r],e[r],n,r)}return s}function er(t,e,n,r){if("string"==typeof n){var i=t[e];if(Y(i,n))return i[n];var o=F(n);if(Y(i,o))return i[o];var s=P(o);return Y(i,s)?i[s]:i[n]||i[o]||i[s]}}function nr(t,e,n,r){var i=e[t],o=!Y(n,t),s=n[t],a=sr(Boolean,i.type);if(a>-1)if(o&&!Y(i,"default"))s=!1;else if(""===s||s===H(t)){var c=sr(String,i.type);(c<0||a<c)&&(s=!0)}if(void 0===s){s=function(t,e,n){if(!Y(e,"default"))return;var r=e.default;0;if(t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n])return t._props[n];return C(r)&&"Function"!==ir(e.type)?r.call(t):r}(r,i,t);var u=Gt;Ht(!0),Jt(s),Ht(u)}return s}var rr=/^\s*function (\w+)/;function ir(t){var e=t&&t.toString().match(rr);return e?e[1]:""}function or(t,e){return ir(t)===ir(e)}function sr(t,e){if(!_(e))return or(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(or(e[n],t))return n;return-1}var ar={enumerable:!0,configurable:!0,get:q,set:q};function cr(t,e,n){ar.get=function(){return this[e][n]},ar.set=function(t){this[e][n]=t},Object.defineProperty(t,n,ar)}function ur(t){var e=t.$options;if(e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props=Zt({}),i=t.$options._propKeys=[],o=!t.$parent;o||Ht(!1);var s=function(o){i.push(o);var s=nr(o,e,n,t);Wt(r,o,s,void 0,!0),o in t||cr(t,"_props",o)};for(var a in e)s(a);Ht(!0)}(t,e.props),function(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=Re(t);Bt(t),Nt();var i=We(n,null,[t._props||Zt({}),r],t,"setup");if(Yt(),Bt(),C(i))e.render=i;else if(S(i))if(t._setupState=i,i.__sfc){var o=t._setupProxy={};for(var s in i)"__sfc"!==s&&re(o,i,s)}else for(var s in i)ct(s)||re(t,i,s)}}(t),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?q:K(e[n],t)}(t,e.methods),e.data)!function(t){var e=t.$options.data;e=t._data=C(e)?function(t,e){Nt();try{return t.call(e,e)}catch(t){return Je(t,e,"data()"),{}}finally{Yt()}}(e,t):e||{},I(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&Y(r,o)||ct(o)||cr(t,"_data",o)}var s=Jt(e);s&&s.vmCount++}(t);else{var n=Jt(t._data={});n&&n.vmCount++}e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=xt();for(var i in e){var o=e[i],s=C(o)?o:o.get;0,r||(n[i]=new vn(t,s||q,q,lr)),i in t||hr(t,i,o)}}(t,e.computed),e.watch&&e.watch!==_t&&function(t,e){for(var n in e){var r=e[n];if(_(r))for(var i=0;i<r.length;i++)pr(t,n,r[i]);else pr(t,n,r)}}(t,e.watch)}var lr={lazy:!0};function hr(t,e,n){var r=!xt();C(n)?(ar.get=r?dr(e):fr(n),ar.set=q):(ar.get=n.get?r&&!1!==n.cache?dr(e):fr(n.get):q,ar.set=n.set||q),Object.defineProperty(t,e,ar)}function dr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),$t.target&&e.depend(),e.value}}function fr(t){return function(){return t.call(this,this)}}function pr(t,e,n,r){return I(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var vr=0;function gr(t){var e=t.options;if(t.super){var n=gr(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&J(t.extendOptions,r),(e=t.options=tr(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function mr(t){this._init(t)}function yr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=Fn(t)||Fn(n.options);var s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=tr(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)cr(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,it.forEach((function(t){s[t]=n[t]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=J({},s.options),i[r]=s,s}}function Ar(t){return t&&(Fn(t.Ctor.options)||t.tag)}function _r(t,e){return _(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!B(t)&&t.test(e)}function br(t,e){var n=t.cache,r=t.keys,i=t._vnode,o=t.$vnode;for(var s in n){var a=n[s];if(a){var c=a.name;c&&!e(c)&&wr(n,s,r,i)}}o.componentOptions.children=void 0}function wr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,R(n,e)}mr.prototype._init=function(t){var e=this;e._uid=vr++,e._isVue=!0,e.__v_skip=!0,e._scope=new se(!0),e._scope.parent=void 0,e._scope._vm=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=tr(gr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._provided=n?n._provided:Object.create(null),t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&An(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=Te(e._renderChildren,r),t.$scopedSlots=n?je(t.$parent,n.data.scopedSlots,t.$slots):A,t._c=function(e,n,r,i){return Ke(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Ke(t,e,n,r,i,!0)};var i=n&&n.data;Wt(t,"$attrs",i&&i.attrs||A,null,!0),Wt(t,"$listeners",e._parentListeners||A,null,!0)}(e),Cn(e,"beforeCreate",void 0,!1),function(t){var e=Nn(t.$options.inject,t);e&&(Ht(!1),Object.keys(e).forEach((function(n){Wt(t,n,e[n])})),Ht(!0))}(e),ur(e),function(t){var e=t.$options.provide;if(e){var n=C(e)?e.call(t):e;if(!S(n))return;for(var r=ae(t),i=Et?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var s=i[o];Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(n,s))}}}(e),Cn(e,"created"),e.$options.el&&e.$mount(e.$options.el)},function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=qt,t.prototype.$delete=Vt,t.prototype.$watch=function(t,e,n){var r=this;if(I(e))return pr(r,t,e,n);(n=n||{}).user=!0;var i=new vn(r,t,e,n);if(n.immediate){var o='callback for immediate watcher "'.concat(i.expression,'"');Nt(),We(e,r,[i.value],r,o),Yt()}return function(){i.teardown()}}}(mr),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(_(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(_(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,s=n._events[t];if(!s)return n;if(!e)return n._events[t]=null,n;for(var a=s.length;a--;)if((o=s[a])===e||o.fn===e){s.splice(a,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?z(n):n;for(var r=z(arguments,1),i='event handler for "'.concat(t,'"'),o=0,s=n.length;o<s;o++)We(n[o],e,r,e,i)}return e}}(mr),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=bn(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var s=n;s&&s.$vnode&&s.$parent&&s.$vnode===s.$parent._vnode;)s.$parent.$el=s.$el,s=s.$parent},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Cn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||R(e.$children,t),t._scope.stop(),t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Cn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(mr),function(t){Oe(t.prototype),t.prototype.$nextTick=function(t){return cn(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e._parentVnode;r&&t._isMounted&&(t.$scopedSlots=je(t.$parent,r.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&Le(t._slotsProxy,t.$scopedSlots)),t.$vnode=r;var i,o=It,s=Ue;try{Bt(t),Ue=t,i=n.call(t._renderProxy,t.$createElement)}catch(e){Je(e,t,"render"),i=t._vnode}finally{Ue=s,Bt(o)}return _(i)&&1===i.length&&(i=i[0]),i instanceof Ot||(i=Tt()),i.parent=r,i}}(mr);var xr=[String,RegExp,Array],kr={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:xr,exclude:xr,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,i=t.keyToCache;if(r){var o=r.tag,s=r.componentInstance,a=r.componentOptions;e[i]={name:Ar(a),tag:o,componentInstance:s},n.push(i),this.max&&n.length>parseInt(this.max)&&wr(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)wr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){br(t,(function(t){return _r(e,t)}))})),this.$watch("exclude",(function(e){br(t,(function(t){return!_r(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Pe(t),n=e&&e.componentOptions;if(n){var r=Ar(n),i=this.include,o=this.exclude;if(i&&(!r||!_r(i,r))||o&&r&&_r(o,r))return e;var s=this.cache,a=this.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;s[c]?(e.componentInstance=s[c].componentInstance,R(a,c),a.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return st}};Object.defineProperty(t,"config",e),t.util={warn:zn,extend:J,mergeOptions:tr,defineReactive:Wt},t.set=qt,t.delete=Vt,t.nextTick=cn,t.observable=function(t){return Jt(t),t},t.options=Object.create(null),it.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,J(t.options.components,kr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=z(arguments,1);return n.unshift(this),C(t.install)?t.install.apply(t,n):C(t)&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=tr(this.options,t),this}}(t),yr(t),function(t){it.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&I(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&C(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(mr),Object.defineProperty(mr.prototype,"$isServer",{get:xt}),Object.defineProperty(mr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(mr,"FunctionalRenderContext",{value:Yn}),mr.version="2.7.16";var Cr=Q("style,class"),Sr=Q("input,textarea,option,select,progress"),Er=Q("contenteditable,draggable,spellcheck"),Ir=Q("events,caret,typing,plaintext-only"),Br=Q("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Or="http://www.w3.org/1999/xlink",Tr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Mr=function(t){return Tr(t)?t.slice(6,t.length):""},Dr=function(t){return null==t||!1===t};function jr(t){for(var e=t.data,n=t,r=t;w(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Qr(r.data,e));for(;w(n=n.parent);)n&&n.data&&(e=Qr(e,n.data));return function(t,e){if(w(t)||w(e))return $r(t,Rr(e));return""}(e.staticClass,e.class)}function Qr(t,e){return{staticClass:$r(t.staticClass,e.staticClass),class:w(t.class)?[t.class,e.class]:e.class}}function $r(t,e){return t?e?t+" "+e:t:e||""}function Rr(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)w(e=Rr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):S(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Nr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Yr=Q("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Lr=Q("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ur=function(t){return Yr(t)||Lr(t)};var Fr=Object.create(null);var Pr=Q("text,number,password,search,email,tel,url");var Gr=Object.freeze({__proto__:null,createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Nr[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Hr={create:function(t,e){Kr(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Kr(t,!0),Kr(e))},destroy:function(t){Kr(t,!0)}};function Kr(t,e){var n=t.data.ref;if(w(n)){var r=t.context,i=t.componentInstance||t.elm,o=e?null:i,s=e?void 0:i;if(C(n))We(n,r,[o],r,"template ref function");else{var a=t.data.refInFor,c="string"==typeof n||"number"==typeof n,u=ne(n),l=r.$refs;if(c||u)if(a){var h=c?l[n]:n.value;e?_(h)&&R(h,i):_(h)?h.includes(i)||h.push(i):c?(l[n]=[i],zr(r,n,l[n])):n.value=[i]}else if(c){if(e&&l[n]!==i)return;l[n]=s,zr(r,n,o)}else if(u){if(e&&n.value!==i)return;n.value=o}else 0}}}function zr(t,e,n){var r=t._setupState;r&&Y(r,e)&&(ne(r[e])?r[e].value=n:r[e]=n)}var Jr=new Ot("",{},[]),Wr=["create","activate","update","remove","destroy"];function qr(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&w(t.data)===w(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=w(n=t.data)&&w(n=n.attrs)&&n.type,i=w(n=e.data)&&w(n=n.attrs)&&n.type;return r===i||Pr(r)&&Pr(i)}(t,e)||x(t.isAsyncPlaceholder)&&b(e.asyncFactory.error))}function Vr(t,e,n){var r,i,o={};for(r=e;r<=n;++r)w(i=t[r].key)&&(o[i]=r);return o}var Xr={create:Zr,update:Zr,destroy:function(t){Zr(t,Jr)}};function Zr(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Jr,s=e===Jr,a=ei(t.data.directives,t.context),c=ei(e.data.directives,e.context),u=[],l=[];for(n in c)r=a[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,ri(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(ri(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)ri(u[n],"inserted",e,t)};o?he(e,"insert",h):h()}l.length&&he(e,"postpatch",(function(){for(var n=0;n<l.length;n++)ri(l[n],"componentUpdated",e,t)}));if(!o)for(n in a)c[n]||ri(a[n],"unbind",t,t,s)}(t,e)}var ti=Object.create(null);function ei(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++){if((r=t[n]).modifiers||(r.modifiers=ti),i[ni(r)]=r,e._setupState&&e._setupState.__sfc){var o=r.def||er(e,"_setupState","v-"+r.name);r.def="function"==typeof o?{bind:o,update:o}:o}r.def=r.def||er(e.$options,"directives",r.name)}return i}function ni(t){return t.rawName||"".concat(t.name,".").concat(Object.keys(t.modifiers||{}).join("."))}function ri(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Je(r,n.context,"directive ".concat(t.name," ").concat(e," hook"))}}var ii=[Hr,Xr];function oi(t,e){var n=e.componentOptions;if(!(w(n)&&!1===n.Ctor.options.inheritAttrs||b(t.data.attrs)&&b(e.data.attrs))){var r,i,o=e.elm,s=t.data.attrs||{},a=e.data.attrs||{};for(r in(w(a.__ob__)||x(a._v_attr_proxy))&&(a=e.data.attrs=J({},a)),a)i=a[r],s[r]!==i&&si(o,r,i,e.data.pre);for(r in(pt||gt)&&a.value!==s.value&&si(o,"value",a.value),s)b(a[r])&&(Tr(r)?o.removeAttributeNS(Or,Mr(r)):Er(r)||o.removeAttribute(r))}}function si(t,e,n,r){r||t.tagName.indexOf("-")>-1?ai(t,e,n):Br(e)?Dr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Er(e)?t.setAttribute(e,function(t,e){return Dr(e)||"false"===e?"false":"contenteditable"===t&&Ir(e)?e:"true"}(e,n)):Tr(e)?Dr(n)?t.removeAttributeNS(Or,Mr(e)):t.setAttributeNS(Or,e,n):ai(t,e,n)}function ai(t,e,n){if(Dr(n))t.removeAttribute(e);else{if(pt&&!vt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var ci={create:oi,update:oi};function ui(t,e){var n=e.elm,r=e.data,i=t.data;if(!(b(r.staticClass)&&b(r.class)&&(b(i)||b(i.staticClass)&&b(i.class)))){var o=jr(e),s=n._transitionClasses;w(s)&&(o=$r(o,Rr(s))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var li,hi={create:ui,update:ui},di="__r",fi="__c";function pi(t,e,n){var r=li;return function i(){null!==e.apply(null,arguments)&&mi(t,i,n,r)}}var vi=Ze&&!(At&&Number(At[1])<=53);function gi(t,e,n,r){if(vi){var i=Mn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}li.addEventListener(t,e,bt?{capture:n,passive:r}:n)}function mi(t,e,n,r){(r||li).removeEventListener(t,e._wrapper||e,n)}function yi(t,e){if(!b(t.data.on)||!b(e.data.on)){var n=e.data.on||{},r=t.data.on||{};li=e.elm||t.elm,function(t){if(w(t[di])){var e=pt?"change":"input";t[e]=[].concat(t[di],t[e]||[]),delete t[di]}w(t[fi])&&(t.change=[].concat(t[fi],t.change||[]),delete t[fi])}(n),le(n,r,gi,mi,pi,e.context),li=void 0}}var Ai,_i={create:yi,update:yi,destroy:function(t){return yi(t,Jr)}};function bi(t,e){if(!b(t.data.domProps)||!b(e.data.domProps)){var n,r,i=e.elm,o=t.data.domProps||{},s=e.data.domProps||{};for(n in(w(s.__ob__)||x(s._v_attr_proxy))&&(s=e.data.domProps=J({},s)),o)n in s||(i[n]="");for(n in s){if(r=s[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var a=b(r)?"":String(r);wi(i,a)&&(i.value=a)}else if("innerHTML"===n&&Lr(i.tagName)&&b(i.innerHTML)){(Ai=Ai||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var c=Ai.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;c.firstChild;)i.appendChild(c.firstChild)}else if(r!==o[n])try{i[n]=r}catch(t){}}}}function wi(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(w(r)){if(r.number)return j(n)!==j(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var xi={create:bi,update:bi},ki=L((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Ci(t){var e=Si(t.style);return t.staticStyle?J(t.staticStyle,e):e}function Si(t){return Array.isArray(t)?W(t):"string"==typeof t?ki(t):t}var Ei,Ii=/^--/,Bi=/\s*!important$/,Oi=function(t,e,n){if(Ii.test(e))t.style.setProperty(e,n);else if(Bi.test(n))t.style.setProperty(H(e),n.replace(Bi,""),"important");else{var r=Mi(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Ti=["Webkit","Moz","ms"],Mi=L((function(t){if(Ei=Ei||document.createElement("div").style,"filter"!==(t=F(t))&&t in Ei)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Ti.length;n++){var r=Ti[n]+e;if(r in Ei)return r}}));function Di(t,e){var n=e.data,r=t.data;if(!(b(n.staticStyle)&&b(n.style)&&b(r.staticStyle)&&b(r.style))){var i,o,s=e.elm,a=r.staticStyle,c=r.normalizedStyle||r.style||{},u=a||c,l=Si(e.data.style)||{};e.data.normalizedStyle=w(l.__ob__)?J({},l):l;var h=function(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Ci(i.data))&&J(r,n);(n=Ci(t.data))&&J(r,n);for(var o=t;o=o.parent;)o.data&&(n=Ci(o.data))&&J(r,n);return r}(e,!0);for(o in u)b(h[o])&&Oi(s,o,"");for(o in h)i=h[o],Oi(s,o,null==i?"":i)}}var ji={create:Di,update:Di},Qi=/\s+/;function $i(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Qi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Ri(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Qi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Ni(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&J(e,Yi(t.name||"v")),J(e,t),e}return"string"==typeof t?Yi(t):void 0}}var Yi=L((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),Li=dt&&!vt,Ui="transition",Fi="animation",Pi="transition",Gi="transitionend",Hi="animation",Ki="animationend";Li&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Pi="WebkitTransition",Gi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Hi="WebkitAnimation",Ki="webkitAnimationEnd"));var zi=dt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ji(t){zi((function(){zi(t)}))}function Wi(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),$i(t,e))}function qi(t,e){t._transitionClasses&&R(t._transitionClasses,e),Ri(t,e)}function Vi(t,e,n){var r=Zi(t,e),i=r.type,o=r.timeout,s=r.propCount;if(!i)return n();var a=i===Ui?Gi:Ki,c=0,u=function(){t.removeEventListener(a,l),n()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c<s&&u()}),o+1),t.addEventListener(a,l)}var Xi=/\b(transform|all)(,|$)/;function Zi(t,e){var n,r=window.getComputedStyle(t),i=(r[Pi+"Delay"]||"").split(", "),o=(r[Pi+"Duration"]||"").split(", "),s=to(i,o),a=(r[Hi+"Delay"]||"").split(", "),c=(r[Hi+"Duration"]||"").split(", "),u=to(a,c),l=0,h=0;return e===Ui?s>0&&(n=Ui,l=s,h=o.length):e===Fi?u>0&&(n=Fi,l=u,h=c.length):h=(n=(l=Math.max(s,u))>0?s>u?Ui:Fi:null)?n===Ui?o.length:c.length:0,{type:n,timeout:l,propCount:h,hasTransform:n===Ui&&Xi.test(r[Pi+"Property"])}}function to(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return eo(e)+eo(t[n])})))}function eo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function no(t,e){var n=t.elm;w(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=Ni(t.data.transition);if(!b(r)&&!w(n._enterCb)&&1===n.nodeType){for(var i=r.css,o=r.type,s=r.enterClass,a=r.enterToClass,c=r.enterActiveClass,u=r.appearClass,l=r.appearToClass,h=r.appearActiveClass,d=r.beforeEnter,f=r.enter,p=r.afterEnter,v=r.enterCancelled,g=r.beforeAppear,m=r.appear,y=r.afterAppear,A=r.appearCancelled,_=r.duration,x=_n,k=_n.$vnode;k&&k.parent;)x=k.context,k=k.parent;var E=!x._isMounted||!t.isRootInsert;if(!E||m||""===m){var I=E&&u?u:s,B=E&&h?h:c,O=E&&l?l:a,T=E&&g||d,M=E&&C(m)?m:f,D=E&&y||p,Q=E&&A||v,$=j(S(_)?_.enter:_);0;var R=!1!==i&&!vt,N=oo(M),Y=n._enterCb=et((function(){R&&(qi(n,O),qi(n,B)),Y.cancelled?(R&&qi(n,I),Q&&Q(n)):D&&D(n),n._enterCb=null}));t.data.show||he(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),M&&M(n,Y)})),T&&T(n),R&&(Wi(n,I),Wi(n,B),Ji((function(){qi(n,I),Y.cancelled||(Wi(n,O),N||(io($)?setTimeout(Y,$):Vi(n,o,Y)))}))),t.data.show&&(e&&e(),M&&M(n,Y)),R||N||Y()}}}function ro(t,e){var n=t.elm;w(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=Ni(t.data.transition);if(b(r)||1!==n.nodeType)return e();if(!w(n._leaveCb)){var i=r.css,o=r.type,s=r.leaveClass,a=r.leaveToClass,c=r.leaveActiveClass,u=r.beforeLeave,l=r.leave,h=r.afterLeave,d=r.leaveCancelled,f=r.delayLeave,p=r.duration,v=!1!==i&&!vt,g=oo(l),m=j(S(p)?p.leave:p);0;var y=n._leaveCb=et((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),v&&(qi(n,a),qi(n,c)),y.cancelled?(v&&qi(n,s),d&&d(n)):(e(),h&&h(n)),n._leaveCb=null}));f?f(A):A()}function A(){y.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),u&&u(n),v&&(Wi(n,s),Wi(n,c),Ji((function(){qi(n,s),y.cancelled||(Wi(n,a),g||(io(m)?setTimeout(y,m):Vi(n,o,y)))}))),l&&l(n,y),v||g||y())}}function io(t){return"number"==typeof t&&!isNaN(t)}function oo(t){if(b(t))return!1;var e=t.fns;return w(e)?oo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function so(t,e){!0!==e.data.show&&no(e)}var ao=function(t){var e,n,r={},i=t.modules,o=t.nodeOps;for(e=0;e<Wr.length;++e)for(r[Wr[e]]=[],n=0;n<i.length;++n)w(i[n][Wr[e]])&&r[Wr[e]].push(i[n][Wr[e]]);function s(t){var e=o.parentNode(t);w(e)&&o.removeChild(e,t)}function a(t,e,n,i,s,a,h){if(w(t.elm)&&w(a)&&(t=a[h]=Dt(t)),t.isRootInsert=!s,!function(t,e,n,i){var o=t.data;if(w(o)){var s=w(t.componentInstance)&&o.keepAlive;if(w(o=o.hook)&&w(o=o.init)&&o(t,!1),w(t.componentInstance))return c(t,e),u(n,t.elm,i),x(s)&&function(t,e,n,i){var o,s=t;for(;s.componentInstance;)if(w(o=(s=s.componentInstance._vnode).data)&&w(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Jr,s);e.push(s);break}u(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var p=t.data,v=t.children,g=t.tag;w(g)?(t.elm=t.ns?o.createElementNS(t.ns,g):o.createElement(g,t),f(t),l(t,v,e),w(p)&&d(t,e),u(n,t.elm,i)):x(t.isComment)?(t.elm=o.createComment(t.text),u(n,t.elm,i)):(t.elm=o.createTextNode(t.text),u(n,t.elm,i))}}function c(t,e){w(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,h(t)?(d(t,e),f(t)):(Kr(t),e.push(t))}function u(t,e,n){w(t)&&(w(n)?o.parentNode(n)===t&&o.insertBefore(t,e,n):o.appendChild(t,e))}function l(t,e,n){if(_(e)){0;for(var r=0;r<e.length;++r)a(e[r],n,t.elm,null,!0,e,r)}else k(t.text)&&o.appendChild(t.elm,o.createTextNode(String(t.text)))}function h(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return w(t.tag)}function d(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Jr,t);w(e=t.data.hook)&&(w(e.create)&&e.create(Jr,t),w(e.insert)&&n.push(t))}function f(t){var e;if(w(e=t.fnScopeId))o.setStyleScope(t.elm,e);else for(var n=t;n;)w(e=n.context)&&w(e=e.$options._scopeId)&&o.setStyleScope(t.elm,e),n=n.parent;w(e=_n)&&e!==t.context&&e!==t.fnContext&&w(e=e.$options._scopeId)&&o.setStyleScope(t.elm,e)}function p(t,e,n,r,i,o){for(;r<=i;++r)a(n[r],o,t,e,!1,n,r)}function v(t){var e,n,i=t.data;if(w(i))for(w(e=i.hook)&&w(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(w(e=t.children))for(n=0;n<t.children.length;++n)v(t.children[n])}function g(t,e,n){for(;e<=n;++e){var r=t[e];w(r)&&(w(r.tag)?(m(r),v(r)):s(r.elm))}}function m(t,e){if(w(e)||w(t.data)){var n,i=r.remove.length+1;for(w(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&s(t)}return n.listeners=e,n}(t.elm,i),w(n=t.componentInstance)&&w(n=n._vnode)&&w(n.data)&&m(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);w(n=t.data.hook)&&w(n=n.remove)?n(t,e):e()}else s(t.elm)}function y(t,e,n,r){for(var i=n;i<r;i++){var o=e[i];if(w(o)&&qr(t,o))return i}}function A(t,e,n,i,s,c){if(t!==e){w(e.elm)&&w(i)&&(e=i[s]=Dt(e));var u=e.elm=t.elm;if(x(t.isAsyncPlaceholder))w(e.asyncFactory.resolved)?E(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(x(e.isStatic)&&x(t.isStatic)&&e.key===t.key&&(x(e.isCloned)||x(e.isOnce)))e.componentInstance=t.componentInstance;else{var l,d=e.data;w(d)&&w(l=d.hook)&&w(l=l.prepatch)&&l(t,e);var f=t.children,v=e.children;if(w(d)&&h(e)){for(l=0;l<r.update.length;++l)r.update[l](t,e);w(l=d.hook)&&w(l=l.update)&&l(t,e)}b(e.text)?w(f)&&w(v)?f!==v&&function(t,e,n,r,i){var s,c,u,l=0,h=0,d=e.length-1,f=e[0],v=e[d],m=n.length-1,_=n[0],x=n[m],k=!i;for(;l<=d&&h<=m;)b(f)?f=e[++l]:b(v)?v=e[--d]:qr(f,_)?(A(f,_,r,n,h),f=e[++l],_=n[++h]):qr(v,x)?(A(v,x,r,n,m),v=e[--d],x=n[--m]):qr(f,x)?(A(f,x,r,n,m),k&&o.insertBefore(t,f.elm,o.nextSibling(v.elm)),f=e[++l],x=n[--m]):qr(v,_)?(A(v,_,r,n,h),k&&o.insertBefore(t,v.elm,f.elm),v=e[--d],_=n[++h]):(b(s)&&(s=Vr(e,l,d)),b(c=w(_.key)?s[_.key]:y(_,e,l,d))?a(_,r,t,f.elm,!1,n,h):qr(u=e[c],_)?(A(u,_,r,n,h),e[c]=void 0,k&&o.insertBefore(t,u.elm,f.elm)):a(_,r,t,f.elm,!1,n,h),_=n[++h]);l>d?p(t,b(n[m+1])?null:n[m+1].elm,n,h,m,r):h>m&&g(e,l,d)}(u,f,v,n,c):w(v)?(w(t.text)&&o.setTextContent(u,""),p(u,null,v,0,v.length-1,n)):w(f)?g(f,0,f.length-1):w(t.text)&&o.setTextContent(u,""):t.text!==e.text&&o.setTextContent(u,e.text),w(d)&&w(l=d.hook)&&w(l=l.postpatch)&&l(t,e)}}}function C(t,e,n){if(x(n)&&w(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var S=Q("attrs,class,staticClass,staticStyle,key");function E(t,e,n,r){var i,o=e.tag,s=e.data,a=e.children;if(r=r||s&&s.pre,e.elm=t,x(e.isComment)&&w(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(w(s)&&(w(i=s.hook)&&w(i=i.init)&&i(e,!0),w(i=e.componentInstance)))return c(e,n),!0;if(w(o)){if(w(a))if(t.hasChildNodes())if(w(i=s)&&w(i=i.domProps)&&w(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var u=!0,h=t.firstChild,f=0;f<a.length;f++){if(!h||!E(h,a[f],n,r)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else l(e,a,n);if(w(s)){var p=!1;for(var v in s)if(!S(v)){p=!0,d(e,n);break}!p&&s.class&&hn(s.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,i){if(!b(e)){var s,c=!1,u=[];if(b(t))c=!0,a(e,u);else{var l=w(t.nodeType);if(!l&&qr(t,e))A(t,e,u,null,null,i);else{if(l){if(1===t.nodeType&&t.hasAttribute(rt)&&(t.removeAttribute(rt),n=!0),x(n)&&E(t,e,u))return C(e,u,!0),t;s=t,t=new Ot(o.tagName(s).toLowerCase(),{},[],void 0,s)}var d=t.elm,f=o.parentNode(d);if(a(e,u,d._leaveCb?null:f,o.nextSibling(d)),w(e.parent))for(var p=e.parent,m=h(e);p;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](p);if(p.elm=e.elm,m){for(var _=0;_<r.create.length;++_)r.create[_](Jr,p);var k=p.data.hook.insert;if(k.merged)for(var S=k.fns.slice(1),I=0;I<S.length;I++)S[I]()}else Kr(p);p=p.parent}w(f)?g([t],0,0):w(t.tag)&&v(t)}}return C(e,u,c),e.elm}w(t)&&v(t)}}({nodeOps:Gr,modules:[ci,hi,_i,xi,ji,dt?{create:so,activate:so,remove:function(t,e){!0!==t.data.show?ro(t,e):e()}}:{}].concat(ii)});vt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&go(t,"input")}));var co={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?he(n,"postpatch",(function(){co.componentUpdated(t,e,n)})):uo(t,e,n.context),t._vOptions=[].map.call(t.options,fo)):("textarea"===n.tag||Pr(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",po),t.addEventListener("compositionend",vo),t.addEventListener("change",vo),vt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){uo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,fo);if(i.some((function(t,e){return!Z(t,r[e])})))(t.multiple?e.value.some((function(t){return ho(t,i)})):e.value!==e.oldValue&&ho(e.value,i))&&go(t,"change")}}};function uo(t,e,n){lo(t,e,n),(pt||gt)&&setTimeout((function(){lo(t,e,n)}),0)}function lo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,s,a=0,c=t.options.length;a<c;a++)if(s=t.options[a],i)o=tt(r,fo(s))>-1,s.selected!==o&&(s.selected=o);else if(Z(fo(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));i||(t.selectedIndex=-1)}}function ho(t,e){return e.every((function(e){return!Z(e,t)}))}function fo(t){return"_value"in t?t._value:t.value}function po(t){t.target.composing=!0}function vo(t){t.target.composing&&(t.target.composing=!1,go(t.target,"input"))}function go(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mo(t){return!t.componentInstance||t.data&&t.data.transition?t:mo(t.componentInstance._vnode)}var yo={model:co,show:{bind:function(t,e,n){var r=e.value,i=(n=mo(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,no(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mo(n)).data&&n.data.transition?(n.data.show=!0,r?no(n,(function(){t.style.display=t.__vOriginalDisplay})):ro(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Ao={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function _o(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?_o(Pe(e.children)):t}function bo(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var r in i)e[F(r)]=i[r];return e}function wo(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var xo=function(t){return t.tag||De(t)},ko=function(t){return"show"===t.name},Co={name:"transition",props:Ao,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(xo)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=_o(i);if(!o)return i;if(this._leaving)return wo(t,i);var s="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?s+"comment":s+o.tag:k(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var a=(o.data||(o.data={})).transition=bo(this),c=this._vnode,u=_o(c);if(o.data.directives&&o.data.directives.some(ko)&&(o.data.show=!0),u&&u.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,u)&&!De(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var l=u.data.transition=J({},a);if("out-in"===r)return this._leaving=!0,he(l,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),wo(t,i);if("in-out"===r){if(De(o))return c;var h,d=function(){h()};he(a,"afterEnter",d),he(a,"enterCancelled",d),he(l,"delayLeave",(function(t){h=t}))}}return i}}},So=J({tag:String,moveClass:String},Ao);function Eo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Io(t){t.data.newPos=t.elm.getBoundingClientRect()}function Bo(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}delete So.mode;var Oo={Transition:Co,TransitionGroup:{props:So,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=bn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],s=bo(this),a=0;a<i.length;a++){if((l=i[a]).tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(r){var c=[],u=[];for(a=0;a<r.length;a++){var l;(l=r[a]).data.transition=s,l.data.pos=l.elm.getBoundingClientRect(),n[l.key]?c.push(l):u.push(l)}this.kept=t(e,null,c),this.removed=u}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(Eo),t.forEach(Io),t.forEach(Bo),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Wi(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Gi,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Gi,t),n._moveCb=null,qi(n,e))})}})))},methods:{hasMove:function(t,e){if(!Li)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){Ri(n,t)})),$i(n,e),n.style.display="none",this.$el.appendChild(n);var r=Zi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};mr.config.mustUseProp=function(t,e,n){return"value"===n&&Sr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},mr.config.isReservedTag=Ur,mr.config.isReservedAttr=Cr,mr.config.getTagNamespace=function(t){return Lr(t)?"svg":"math"===t?"math":void 0},mr.config.isUnknownElement=function(t){if(!dt)return!0;if(Ur(t))return!1;if(t=t.toLowerCase(),null!=Fr[t])return Fr[t];var e=document.createElement(t);return t.indexOf("-")>-1?Fr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Fr[t]=/HTMLUnknownElement/.test(e.toString())},J(mr.options.directives,yo),J(mr.options.components,Oo),mr.prototype.__patch__=dt?ao:q,mr.prototype.$mount=function(t,e){return function(t,e,n){var r;t.$el=e,t.$options.render||(t.$options.render=Tt),Cn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new vn(t,r,q,{before:function(){t._isMounted&&!t._isDestroyed&&Cn(t,"beforeUpdate")}},!0),n=!1;var i=t._preWatchers;if(i)for(var o=0;o<i.length;o++)i[o].run();return null==t.$vnode&&(t._isMounted=!0,Cn(t,"mounted")),t}(this,t=t&&dt?function(t){if("string"==typeof t){return document.querySelector(t)||document.createElement("div")}return t}(t):void 0,e)},dt&&setTimeout((function(){st.devtools&&kt&&kt.emit("init",mr)}),0);var To=function(){var t=this;return(0,t._self._c)("span",{staticClass:"h-splitter",style:t.hs_style,on:{mousedown:t.hs_mousedown}})};To._withStripped=!0;const Mo=function(t,e){var n=document.getElementById(t);n&&n.parentNode.removeChild(n);var r=document.createElement("style");r.setAttribute("id",t),r.innerHTML=e,document.body.appendChild(r)},Do=function(t,e){var n=document.getElementById(t);n&&n.parentNode.removeChild(n)},jo={name:"Splitter",props:["id","main","dc","tv","data"],mounted:function(){this.MIN_HEIGHT=this.data.sett.min_height||20},methods:{hs_mousedown:function(t){this.drag={type:"hs",y:t.clientY,h1:this.data.grid1.height,h2:this.data.grid2.height},Mo("disable-user-select","body * {\n user-select: none;\n }\n .trading-vue-chart {\n pointer-events: none;\n }")},hs_mouseup:function(t){this.drag=null,Do("disable-user-select")},hs_mousemove:function(t){if(this.drag){var e=t.clientY-this.drag.y,n=this.drag.h1+e,r=this.drag.h2-e;n>this.MIN_HEIGHT&&r>this.MIN_HEIGHT&&(this.data.grid1.height=n,this.data.grid2.height=r),this.main.calc_heights()}},hs_mouseleave:function(t){this.drag=null,Do("disable-user-select")}},computed:{hs_style:function(){return{drag:null,top:this.data.grid2.offset+"px"}}}};n(754);function Qo(t,e,n,r,i,o,s,a){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=c):i&&(c=a?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}const $o=Qo(jo,To,[],!1,null,"868dc3e2",null).exports;function Ro(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return No(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?No(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function No(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Yo=function(){return c((function t(e,n,r){var o=this;i(this,t),this.widgets={},this.tv=e,this.dc=n,this.sett=r,setTimeout((function(){o.tv.$el.addEventListener("mousemove",o.onmousemove.bind(o)),o.tv.$el.addEventListener("mouseup",o.onmouseup.bind(o)),o.tv.$el.addEventListener("mouseleave",o.onmouseleave.bind(o)),o.place_splitters(),o.calc_heights(),o.tv.$watch((function(t){return o.dc.get(".").map((function(t){return t.id}))}),o.ongrids.bind(o))}))}),[{key:"update",value:function(t){t.event}},{key:"onsettings",value:function(t){}},{key:"ongrids",value:function(){var t=this;setTimeout((function(){t.remove_widgets(),t.place_splitters()}))}},{key:"onmousemove",value:function(t){var e,n=this,r=Ro(this.tv.$refs.widgets.$children.filter((function(t){return t.main===n})));try{for(r.s();!(e=r.n()).done;){e.value.hs_mousemove(t)}}catch(t){r.e(t)}finally{r.f()}}},{key:"onmouseup",value:function(t){var e,n=this,r=Ro(this.tv.$refs.widgets.$children.filter((function(t){return t.main===n})));try{for(r.s();!(e=r.n()).done;){e.value.hs_mouseup(t)}}catch(t){r.e(t)}finally{r.f()}}},{key:"onmouseleave",value:function(t){var e,n=this,r=Ro(this.tv.$refs.widgets.$children.filter((function(t){return t.main===n})));try{for(r.s();!(e=r.n()).done;){e.value.hs_mouseleave(t)}}catch(t){r.e(t)}finally{r.f()}}},{key:"place_splitters",value:function(){for(var t=this.tv.$refs.chart._layout.grids,e=1;e<t.length;e++){var n=t[e-1],r=t[e],i="Splitter-".concat(n.id,"-").concat(r.id,"-").concat(y.Utils.uuid2());mr.set(this.widgets,i,{id:i,cls:$o,data:{grid1:n,grid2:r,sett:this.sett}})}}},{key:"calc_heights",value:function(){var t,e=[],n=Ro(this.tv.$refs.chart._layout.grids);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push(r.height)}}catch(t){n.e(t)}finally{n.f()}var i=e.reduce((function(t,e){return t+e}),0);e=e.map((function(t){return t/i})),this.grid_ovs().forEach((function(t,n){t.grid||mr.set(t,"grid",{}),mr.set(t.grid,"height",e[n]||1)}))}},{key:"grid_ovs",value:function(){var t,e=[this.dc.data.chart],n=Ro(this.dc.data.offchart);try{for(n.s();!(t=n.n()).done;){var r=t.value;r.grid&&void 0!==r.grid.id||e.push(r)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"remove_widgets",value:function(){for(var t in this.widgets)this.tv.$delete(this.widgets,t)}},{key:"destroy",value:function(){this.tv.$el.removeEventListener("mousemove",this.onmousemove),this.tv.$el.removeEventListener("mouseup",this.mouseup),this.tv.$el.removeEventListener("mouseleave",this.mouseleave)}}])}();Yo.__name__="grid-resize";const Lo={widgets:{},components:{},overlays:{},colorpacks:{},skins:{},Main:Yo};var Uo=function(){var t=this,e=t._self._c;return e("window",{staticClass:"add-win",attrs:{title:"Add Overlay",tv:t.tv},on:{close:t.on_close}},[e("div",{staticClass:"add-win-list"},t._l(t.ovs,(function(n){return e("div",{staticClass:"add-win-item",on:{click:function(e){return t.on_click(n.name)}}},[e("span",[t._v(t._s(n.name))]),t._v(" "),e("span",{staticClass:"add-win-item-desc"},[t._v("\n "+t._s(n.methods.meta_info().desc)+"\n ")])])})),0)])};Uo._withStripped=!0;var Fo=function(){var t=this,e=t._self._c;return e("div",{ref:"win",staticClass:"tvjs-x-window",style:t.style},[e("div",{staticClass:"tvjs-x-window-head"},[e("div",{staticClass:"tvjs-x-window-title",on:{mousedown:t.onMouseDown}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),e("div",{staticClass:"tvjs-x-window-close",on:{click:function(e){return t.$emit("close")}}},[t._v("\n ╳\n ")])]),t._v(" "),e("div",{staticClass:"tvjs-x-window-body"},[t._t("default")],2)])};Fo._withStripped=!0;const Po={name:"Window",mixins:[{methods:{onMouseDown:function(t){(t=t||window.event).preventDefault(),this.drag.offset_x=t.clientX-this.x,this.drag.offset_y=t.clientY-this.y,document.onmouseup=this.stopdrag,document.onmousemove=this.ondrag},ondrag:function(t){(t=t||window.event).preventDefault(),this.x=t.clientX-this.drag.offset_x,this.y=t.clientY-this.drag.offset_y},stopdrag:function(){document.onmouseup=null,document.onmousemove=null}},data:function(){return{drag:{offset_x:0,offset_y:0}}}}],props:["title","tv"],mounted:function(){this.ww=this.$refs.win.clientWidth,this.wh=this.$refs.win.clientHeight,this.x=.5*this.tvw-.5*this.ww,this.y=.5*this.tvh-.5*this.wh},computed:{style:function(){return{top:"".concat(this.y,"px"),left:"".concat(this.x,"px")}},tvw:function(){return this.$props.tv.width},tvh:function(){return this.$props.tv.height}},data:function(){return{ww:0,wh:0,x:0,y:0}}};n(353);const Go=Qo(Po,Fo,[],!1,null,null,null).exports,Ho={name:"AddWin",props:["id","main","dc","tv","data"],components:{Window:Go},mounted:function(){},methods:{on_close:function(){this.$props.main.remove_widget(this.$props.id)},on_click:function(t){this.on_close(),this.main.add_overlay({side:this.data.type,index:this.data.index,type:t})}},computed:{sett:function(){return this.$props.data.ov.settings}},data:function(){return{ovs:this.tv.overlays.filter((function(t){return t.methods.calc}))}}};n(735);const Ko=Qo(Ho,Uo,[],!1,null,"2ed555ae",null).exports;function zo(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Jo(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jo(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Jo(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var Wo=function(){return c((function t(e,n,r){i(this,t),console.log(n,"usydfufgysdguydsguy"),this.widgets={},this.tv=e,this.dc=n,this.sett=r}),[{key:"update",value:function(t){if("legend-button-click"===t.event)this.onbutton(t.args[0])}},{key:"onbutton",value:function(t){var e=this.dc.get(t.type)[t.dataIndex],n=this.dc.data.onchart,r=this.dc.data.offchart;if(console.log(t.button),e)switch(t.button){case"display":if(void 0===e.settings.display)var i=!1;else i=!e.settings.display;this.tv.$set(e.settings,"display",i);break;case"up":if("offchart"===t.type)if(0===t.dataIndex)r.splice(t.dataIndex,1),n.push(e);else{var o=r,s=t.dataIndex,a=t.dataIndex-1;o[s]=o.splice(a,1,o[s])[0]}this.dc.update_ids();break;case"down":if("onchart"===t.type){var c=this.avg_grid_h(r);n.splice(t.dataIndex,1),r.unshift(e),this.tv.$set(e,"grid",{height:c})}else{var u=r.length,l=r;if(t.dataIndex<u-1){var h=t.dataIndex,d=t.dataIndex+1;l[h]=l.splice(d,1,l[h])[0]}}this.dc.update_ids();break;case"add":try{var f="AddWin-".concat(y.Utils.uuid2()),p=this.dc.data[t.type][t.dataIndex],v=Object.values(this.widgets).find((function(t){return t.data.ov===p}));if(console.log(" ov data",p),v){this.tv.$delete(this.widgets,v.id);break}this.tv.$set(this.widgets,f,{id:f,cls:Ko,data:{ov:p,type:t.type,index:t.dataIndex}})}catch(t){console.log(t)}break;case"remove":this.dc.data[t.type].splice(t.dataIndex,1),this.dc.update_ids()}}},{key:"add_overlay",value:function(t){var e=this.get_preset(t.type)||{};e.side&&(t.side=e.side);var n=this.dc.data.onchart,r=this.dc.data.offchart;if("onchart"===t.side)n.splice(t.index+1,0,{name:e.name,type:t.type,data:[],settings:e.settings||{}});else{var i=this.avg_grid_h(r);r.splice(t.index+1,0,{name:e.name,type:t.type,data:[],settings:e.settings||{},grid:{height:i}})}this.dc.update_ids()}},{key:"get_preset",value:function(t){var e=this.tv.overlays.find((function(e){return e.name===t}));if(e&&e.methods.meta_info)return e.methods.meta_info().preset}},{key:"onsettings",value:function(t){}},{key:"avg_grid_h",value:function(t){if(!t.length)return.25;var e,n=0,r=zo(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.grid&&"number"==typeof i.grid.height&&(n+=i.grid.height)}}catch(t){r.e(t)}finally{r.f()}return n/t.length}},{key:"remove_widget",value:function(t){this.tv.$delete(this.widgets,t)}},{key:"destroy",value:function(){}}])}();Wo.__name__="legend-buttons";const qo={widgets:{},components:{},overlays:{},colorpacks:{},skins:{},Main:Wo};var Vo=function(){var t=this,e=t._self._c;return e("window",{staticClass:"sett-win",attrs:{title:t.data.ov.name,tv:t.tv},on:{close:t.on_close}},[t._l(t.settlist,(function(n){return e("div",{staticClass:"sett-win-item"},[e("label",[t._v(t._s(t.s2d(n)))]),t._v(" "),e("std-input",{attrs:{value:t.sett[n]},on:{input:function(e){return t.update_sett(n,e)}}})],1)})),t._v(" "),t.settlist.length?t._e():e("span",{staticClass:"sett-win-empty"},[e("i",[t._v("No script settings")])])],2)};Vo._withStripped=!0;var Xo=function(){var t=this,e=t._self._c;return e("span",["text"!==t.type&&t.type?"select"===t.type?e("select",{staticClass:"tvjs-std-input",style:t.style,domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}},t._l(t.list,(function(n){return e("option",[t._v(t._s(n))])})),0):t._e():e("input",{staticClass:"tvjs-std-input",style:t.style,attrs:{placeholder:t.name},domProps:{value:t.value},on:{change:function(e){return t.$emit("change",e.target.value)},input:function(e){return t.$emit("input",e.target.value)}}})])};Xo._withStripped=!0;const Zo={name:"StdInput",props:["value","name","type","list","colors"],methods:{},computed:{style:function(){return{}}},data:function(){return{}}};n(289);const ts=Qo(Zo,Xo,[],!1,null,null,null).exports,es=function(t){var e=(t=(t=t.replace(/([^A-Z])([A-Z])/g,"$1 $2")).replace(/-|_/g," ")).split(" ");return(e=e.filter((function(t){return t.length})).map((function(t){return e=t,n=0,r=t[0].toUpperCase(),n>e.length-1?e:e.substring(0,n)+r+e.substring(n+1);var e,n,r}))).join(" ")},ns={name:"SettingsWin",props:["id","main","dc","tv","data"],components:{Window:Go,StdInput:ts},mounted:function(){},methods:{s2d:function(t){return es(t)},on_close:function(){this.$props.main.remove_widget(this.$props.id)},update_sett:function(t,e){var n,r,i,o=this.$props.data.ov.id,a=parseFloat(e);a!=a&&(a=e),this.$props.dc.merge("".concat(o,".settings"),(n={},i=a,(r=s(r=t))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))}},computed:{sett:function(){return this.$props.data.ov.settings},settlist:function(){var t=this;return Object.keys(this.sett).filter((function(e){return"$"!==e[0]&&t.sett.$props&&t.sett.$props.includes(e)}))}}};n(429);const rs=Qo(ns,Vo,[],!1,null,"182fbb4f",null).exports;var is=function(){return c((function t(e,n){i(this,t),this.widgets={},this.tv=e,this.dc=n}),[{key:"update",value:function(t){switch(t.event){case"legend-button-click":var e="SettingsWin-".concat(y.Utils.uuid2()),n=t.args[0];if("settings"!==n.button)break;try{var r=this.dc.data[n.type][n.dataIndex],i=Object.values(this.widgets).find((function(t){return t.data.ov===r}));if(i){this.tv.$delete(this.widgets,i.id);break}this.tv.$set(this.widgets,e,{id:e,cls:rs,data:{ov:r}})}catch(t){console.log(t)}}}},{key:"remove_widget",value:function(t){this.tv.$delete(this.widgets,t)}}])}();is.__name__="settings-win";const os={"chart-link":m,"grid-resize":Lo,"legend-buttons":qo,"settings-win":{widgets:{SettingsWin:rs},SettingsWin:rs,components:{},overlays:{},colorpacks:{},skins:{},Main:is}}})(),r})()));