File Manager
Viewing File: symbolsearch.js
(window.webpackJsonp=window.webpackJsonp||[]).push([["symbolsearch"],{"/1d5":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><g fill="none" fill-rule="evenodd"><path fill="#F5F7FA" d="M8 6h8v-8H8z"/><path fill="#3089E3" d="M0 6h8v-8H0z"/><path fill="#F5F7FA" d="M5.29 5l-1.245-.889L2.8 5l.445-1.511L2 2.6h1.6L4.045 1l.445 1.6h1.6l-1.245.889z"/><path fill="#FF4A68" d="M0 14h16V6H0z"/></g></svg>'},"/o3e":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><circle fill="#bc002d" cx="8" cy="5.5" r="3.25"/><path fill="#000" fill-opacity=".15" d="M0 0v11h16V0zm.5.5h15v10H.5z" class="flag-shade"/></svg>'},"0Dev":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#74acdf" d="M0 8h16v3H0zM0 0h16v3H0z"/><circle fill="#f6b40e" fill-opacity=".5" cx="8" cy="5.5" r="2"/><circle fill="#f6b40e" cx="8" cy="5.5" r="1"/></svg>'},"1oxF":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#0d5eaf" d="M0 0v2h2V0H0zm4 0v2h2V1h10V0H4zm2 2.5v1h10v-1H6zM0 4v2h2V4H0zm4 0v2h12V5H6V4H4zM0 7.5v1h16v-1H0zM0 10v1h16v-1H0z"/></svg>'},"2dJg":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#00008b" d="M0 0h16v11H0z"/><path fill="#fff" d="M0 0v1.043l.5.357H0v2.2h.498L0 3.955V5h1.46l.94-.672V5h2.2v-.67l.94.67H7V3.957L6.5 3.6H7V1.4h-.5l.5-.357V0H5.537L4.6.67V0H2.4v.672L1.46 0H0z"/><path fill="red" d="M0 0v.307L1.67 1.5h.86L.43 0zm3 0v2H0v1h3v2h1V3h3V2H4V0zm3.57 0l-2.1 1.5h.86L7 .307V0zm-4.9 3.5L0 4.693V5h.43l2.1-1.5zm2.8 0L6.57 5H7v-.307L5.33 3.5z"/><circle fill="red" cx="12.5" cy="1.5" r="1"/><circle fill="red" cx="14.5" cy="3.5" r="1"/><circle fill="red" cx="9.5" cy="4.5" r="1"/><circle fill="red" cx="11.5" cy="9.5" r="1"/></svg>'},"3PGb":function(t,e,i){"use strict";i.r(e),i.d(e,"getSvgCodeByFlagId",(function(){return s}));var n={"flag-ae":i("qxQg"),"flag-ar":i("0Dev"),"flag-at":i("p75f"),"flag-au":i("91rQ"),"flag-be":i("Ceoh"),"flag-bh":i("xjTg"),"flag-br":i("hSJd"),"flag-btc":i("ZiPV"),"flag-ca":i("cGCG"),"flag-ch":i("KHq6"),"flag-cl":i("/1d5"),"flag-cn":i("9+Tu"),"flag-co":i("FXWx"),"flag-de":i("AIAx"),"flag-dk":i("Dywz"),"flag-ee":i("gTvK"),"flag-eg":i("dp3k"),"flag-es":i("gUHu"),"flag-eu":i("Y7l6"),"flag-fi":i("bZQm"),"flag-fr":i("g+h9"),"flag-fx":i("nndf"),"flag-gr":i("1oxF"),"flag-hk":i("oifD"),"flag-id":i("dMw+"),"flag-ie":i("E01z"),"flag-il":i("ISdH"),"flag-in":i("3TgC"),"flag-is":i("8CvF"),"flag-it":i("PbK8"),"flag-jp":i("/o3e"),"flag-kr":i("z00z"),"flag-lt":i("Ik+k"),"flag-lv":i("lyw5"),"flag-lu":i("eO+B"),"flag-my":i("b6e9"),"flag-mx":i("nWCO"),"flag-ng":i("QwfJ"),"flag-nl":i("5685"),"flag-no":i("d5hF"),"flag-nz":i("2dJg"),"flag-qa":i("tBbC"),"flag-pe":i("TR3Z"),"flag-pl":i("WW+A"),"flag-pt":i("UHaL"),
"flag-rs":i("viwS"),"flag-ru":i("9Xzd"),"flag-sa":i("Wz7c"),"flag-se":i("IoLV"),"flag-th":i("FH1x"),"flag-sg":i("8pbh"),"flag-tr":i("wlsa"),"flag-tw":i("YAqe"),"flag-uk":i("LOPq"),"flag-us":i("z9tB"),"flag-vn":i("YSaP"),"flag-za":i("u3ck")};function s(t){return n[t]||""}},"3TgC":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#f93" d="M0 0h16v3H0z"/><path fill="#128807" d="M0 8h16v3H0z"/><circle fill="#008" cx="8" cy="5.5" r="1.5"/><circle fill="#fff" cx="8" cy="5.5" opacity=".7" r="1.25"/><circle fill="#008" cx="8" cy="5.5" r=".4"/></svg>'},5685:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#ae1c28" d="M0 0h16v4H0z"/><path fill="#21468b" d="M0 7h16v4H0z"/></svg>'},"56W2":function(t,e,i){(function(e){var i;i=void 0!==e?e:this,t.exports=function(t){if(t.CSS&&t.CSS.escape)return t.CSS.escape;var e=function(t){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var e,i=String(t),n=i.length,s=-1,o="",r=i.charCodeAt(0);++s<n;)0!=(e=i.charCodeAt(s))?o+=e>=1&&e<=31||127==e||0==s&&e>=48&&e<=57||1==s&&e>=48&&e<=57&&45==r?"\\"+e.toString(16)+" ":0==s&&1==n&&45==e||!(e>=128||45==e||95==e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122)?"\\"+i.charAt(s):i.charAt(s):o+="�";return o};return t.CSS||(t.CSS={}),t.CSS.escape=e,e}(i)}).call(this,i("yLpj"))},"8CvF":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#4a89dc" d="m0 0h16v11H0z"/><path fill="#f5f7fa" d="m0 3h16v4H0m4-7h4v11H4"/><path fill="#ed5565" d="m0 4h16v2H0m5-6h2v11H5"/></svg>'},"8pbh":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><g fill="none" fill-rule="evenodd"><path fill="#F5F7FA" d="M0 0h16v11H0V0"/><path fill="#e62625" d="M0 0h16v6H0V0"/><g fill="#F5F7FA"><path d="M5.305 1.364c-1.259.271-2.054 1.48-1.775 2.7.196.86.889 1.532 1.775 1.722-1.242.403-2.587-.246-3.003-1.45-.417-1.205.253-2.508 1.495-2.912a2.36 2.36 0 0 1 .219-.06c.42-.12.869-.12 1.29 0"/><path d="M5.806 2.314l-.353-.25h.442l.132-.407.14.407h.443l-.361.25.147.407-.369-.25-.368.25.147-.407zm1.275.922l-.354-.25h.406l.132-.407.177.4h.428l-.354.25.147.407-.353-.243-.361.25.132-.407zm-.479 1.428l-.353-.3h.442l.132-.407.14.407h.442l-.353.25.132.407-.36-.25-.354.25.132-.357zm-1.613 0l-.354-.285h.435l.132-.408.148.4h.442l-.354.25.133.408-.361-.243-.354.25.133-.372zm-.487-1.428l-.353-.25h.442l.132-.415.14.408h.442l-.383.25.162.407-.36-.25-.354.25.132-.4z"/></g><path stroke="#E9E9E9" stroke-width=".5" d="M.25.25h15.5v10.5H.25z"/></g></svg>'},"8q1k":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 10l7-7M3 3l7 7"/></svg>'},"9+Tu":function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#de2910" d="M0 0h16v11H0z"/><circle fill="#ffde00" cx="5.5" cy="1.5" r=".5"/><circle fill="#ffde00" cx="5.5" cy="4.5" r=".5"/><circle fill="#ffde00" cx="6.5" cy="2.5" r=".5"/><circle fill="#ffde00" cx="6.5" cy="3.5" r=".5"/><path fill="#ffde00" d="M2.97 1.047l.587 1.19 1.314.192-.95.925.225 1.31-1.175-.62-1.177.62.225-1.31-.95-.927 1.313-.192z"/></svg>'},"91rQ":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#00008b" d="M0 0h16v11H0z"/><path fill="#fff" d="M0 0v1.043l.5.357H0v2.2h.498L0 3.955V5h1.46l.94-.672V5h2.2v-.67l.94.67H7V3.957L6.5 3.6H7V1.4h-.5l.5-.357V0H5.537L4.6.67V0H2.4v.672L1.46 0H0zm12 5h1v1h-1z"/><path fill="red" d="M0 0v.307L1.67 1.5h.86L.43 0H0zm3 0v2H0v1h3v2h1V3h3V2H4V0H3zm3.57 0l-2.1 1.5h.86L7 .307V0h-.43zm-4.9 3.5L0 4.693V5h.43l2.1-1.5h-.86zm2.8 0L6.57 5H7v-.307L5.33 3.5h-.86z"/><circle fill="#fff" cx="12.5" cy="1.5" r="1"/><circle fill="#fff" cx="14.5" cy="3.5" r="1"/><circle fill="#fff" cx="9.5" cy="4.5" r="1"/><circle fill="#fff" cx="11.5" cy="9.5" r="1"/><path fill="#fff" d="M3 6.5l-1 1v1l1 1h1l1-1v-1l-1-1H3z"/></svg>'},"9Xzd":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#0039a6" d="M0 0h16v11H0z"/><path fill="#d52b1e" d="M0 8h16v3H0z"/><path fill="#fff" d="M0 0h16v4H0z"/><path fill-opacity=".15" d="M0 0v4L.5.5h15L16 4V0z" class="flag-shade"/></svg>'},A6WY:function(t,e,i){"use strict";i.r(e),i.d(e,"LazyJqueryUI",(function(){return o})),i.d(e,"lazyJqueryUI",(function(){return r}));var n;i("P5fv");function s(t){return t in $.fn?Promise.resolve():(n||(n=new Promise((function(t){Promise.all([i.e(406),i.e("lazy-jquery-ui")]).then(function(e){i("BvgM"),t()}.bind(null,i)).catch(void 0)}))),n)}var o=function(){function t(t){this._$elem=t}return t.prototype.draggable=function(){var t=arguments,e=this._$elem;return s("draggable").then((function(){return e.draggable.apply(e,t)}))},t.prototype.resizable=function(){var t=arguments,e=this._$elem;return s("resizable").then((function(){return e.resizable.apply(e,t)}))},t.prototype.sortable=function(){var t=arguments,e=this._$elem;return s("sortable").then((function(){return e.sortable.apply(e,t)}))},t.prototype.datepicker=function(){var t=arguments,e=this._$elem;return s("datepicker").then((function(){return e.datepicker.apply(e,t)}))},t}();function r(t){return new o(t)}},AIAx:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ffce00" d="M0 0h16v11H0z"/><path fill="#d00" d="M0 4h16v3H0z"/><path d="M0 0h16v4H0z"/></svg>'},Ceoh:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fc0" d="m0 0h16v11H0z"/><path fill="#3f4a56" d="m0 0h5v11H0z"/><path fill="#ed5565" d="m11 0h5v11h-5z"/></svg>'},Dywz:function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ed5565" d="m0 0h16v11H0z"/><path fill="#f5f7fa" d="m0 4h16v2H0m5-6h2v11H5"/></svg>'},E01z:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#009A49" d="M0 0h5v11H0z"/><path fill="#FF7900" d="M11 0h5v11h-5z"/></svg>'},FH1x:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#ed1c24" d="M0 0v2h16V0H0zm0 9v2h16V9H0z"/><path fill="#241d4f" d="M0 4h16v3H0z"/></svg>'},FXWx:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ed5565" d="m0 8h16v3H0z"/><path fill="#4a89dc" d="m0 4h16v4H0z"/><path fill="#fc0" d="m0 0h16v5H0z"/></svg>'},Gs9W:function(t,e,i){},HBUj:function(t,e,i){},ISdH:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#0038b8" d="M0 1h16v2H0zM0 8h16v2H0z"/><path fill="#0038b8" color="#000" d="M5.834 4.25L8 8l.217-.375 1.95-3.375H5.833zm.867.5h2.6L8 7 6.7 4.75z"/><path fill="#0038b8" d="M8 3l-.217.375-1.95 3.375h4.333L8 3zm0 1l1.3 2.25H6.7L8 4z"/></svg>'},"Ik+k":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ed5565" d="m0 7h16v4H0z"/><path fill="#57a863" d="m0 3h16v4H0z"/><path fill="#fc0" d="m0 0h16v4H0z"/></svg>'},IoLV:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><rect width="16" height="10" fill="#006aa7"/><rect width="2" height="10" fill="#fecc00" x="5"/><rect width="16" height="2" fill="#fecc00" y="4"/></svg>'},KHq6:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#d52b1e" d="M0 0h16v11H0z"/><path fill="#fff" d="M7 2v2H5v3h2v2h3V7h2V4h-2V2H7z"/></svg>'},LOPq:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#00247d" d="M0 0h16v11H0z"/><path fill="#fff" d="M0 0v1.518L3.61 4H0v3h3.61L0 9.482V11h2.207L6 8.393V11h4V8.393L13.793 11H16V9.482L12.39 7H16V4h-3.61L16 1.518V0h-2.207L10 2.607V0H6v2.607L2.207 0H0z"/><path fill="#cf142b" d="M0 0v.91L4.494 4h1.324L0 0zm7 0v5H0v1h7v5h2V6h7V5H9V0H7zm7.676 0L10 3.215V4h.182L16 0h-1.324zM5.818 7L0 11h1.324L6 7.785V7h-.182zm4.364 0L16 11v-.91L11.506 7h-1.324z"/></svg>'},N22A:function(t,e,i){"use strict";i.r(e),i.d(e,"TRADING_SERVICE",(function(){return s})),i.d(e,"tradingService",(function(){return o})),i.d(e,"waitTradingService",(function(){return r}));var n=i("eqEH"),s={id:"TradingService"};function o(){return Object(n.a)(s)?Object(n.c)(s):null}function r(){return Object(n.e)(s)}},OWoh:function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M3 7l3.5-3.5L10 7"/></svg>'},OekH:function(t,e,i){"use strict";var n,s,o,r,l,a,h,c,p,d,f;i.r(e),i.d(e,"CONNECTSTATUSES",(function(){return n})),i.d(e,"ORDERTYPE",(function(){return s})),i.d(e,"SIDE",(function(){return o})),i.d(e,"ORDERSTATUS",(function(){return r})),i.d(e,"ORDERSTATUSFILTER",(function(){return l})),i.d(e,"PARENTTYPE",(function(){return a})),i.d(e,"TICKETFOCUS",(function(){return h})),i.d(e,"NOTIFICATION",(function(){return c})),i.d(e,"OrderOrPositionMessageType",(function(){return p})),i.d(e,"AccountType",(function(){return d})),i.d(e,"DisconnectType",(function(){return f})),function(t){t[t.CONNECTED=1]="CONNECTED",t[t.CONNECTING=2]="CONNECTING",t[t.DISCONNECTED=3]="DISCONNECTED",t[t.ERROR=4]="ERROR"}(n||(n={})),function(t){t[t.LIMIT=1]="LIMIT",t[t.MARKET=2]="MARKET",t[t.STOP=3]="STOP",t[t.STOPLIMIT=4]="STOPLIMIT"}(s||(s={})),function(t){t[t.BUY=1]="BUY",t[t.SELL=-1]="SELL"}(o||(o={})),function(t){t[t.CANCELED=1]="CANCELED",t[t.FILLED=2]="FILLED",t[t.INACTIVE=3]="INACTIVE",t[t.PLACING=4]="PLACING",t[t.REJECTED=5]="REJECTED",t[t.WORKING=6]="WORKING"}(r||(r={})),function(t){t[t.ALL=0]="ALL",t[t.CANCELED=1]="CANCELED",t[t.FILLED=2]="FILLED",t[t.INACTIVE=3]="INACTIVE",t[t.REJECTED=5]="REJECTED",t[t.WORKING=6]="WORKING"}(l||(l={})),function(t){t[t.ORDER=1]="ORDER",t[t.POSITION=2]="POSITION"}(a||(a={})),function(t){t[t.LIMITPRICE=1]="LIMITPRICE",t[t.STOPPRICE=2]="STOPPRICE",t[t.TAKEPROFIT=3]="TAKEPROFIT",t[t.STOPLOSS=4]="STOPLOSS"}(h||(h={})),function(t){t[t.ERROR=0]="ERROR",t[t.SUCCESS=1]="SUCCESS"}(c||(c={})),function(t){t.Information="information",t.Warning="warning",t.Error="error"}(p||(p={})),function(t){t.Demo="demo",t.Live="live"}(d||(d={})),function(t){t[t.LogOut=0]="LogOut",t[t.FailedRestoring=1]="FailedRestoring",t[t.Offline=2]="Offline",t[t.APIError=3]="APIError",t[t.TwoFactorRequired=4]="TwoFactorRequired"}(f||(f={}))},Owlf:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n="large"},P7QH:function(t,e,i){"use strict";var n={ae:"flag-ae",argentina:"flag-ar",canada:"flag-ca",colombia:"flag-co",bitcoin:"flag-btc",brasil:"flag-br",uk:"flag-uk",gb:"flag-uk",usa:"flag-us",egypt:"flag-eg",europe:"flag-eu",russia:"flag-ru",japan:"flag-jp",indonesia:"flag-id",india:"flag-in",forex:"flag-fx",luxembourg:"flag-lu",mexico:"flag-mx",germany:"flag-de",ireland:"flag-ie",italy:"flag-it",qatar:"flag-qa",peru:"flag-pe",spain:"flag-es",saudi_arabia:"flag-sa",serbia:"flag-rs",south_africa:"flag-za",sweden:"flag-se",switzerland:"flag-ch",turkey:"flag-tr",norway:"flag-no",austria:"flag-at",australia:"flag-au",new_zealand:"flag-nz",hong_kong:"flag-hk",taiwan:"flag-tw",thailand:"flag-th",singapore:"flag-sg",south_korea:"flag-kr",poland:"flag-pl",israel:"flag-il",chile:"flag-cl",china:"flag-cn",malaysia:"flag-my",bahrain:"flag-bh",nigeria:"flag-ng",finland:"flag-fi",iceland:"flag-is",denmark:"flag-dk",lithuania:"flag-lt",estonia:"flag-ee",
latvia:"flag-lv",vietnam:"flag-vn",netherlands:"flag-nl",belgium:"flag-be",portugal:"flag-pt",france:"flag-fr",greece:"flag-gr",korea:"flag-kr"},s={gb:"flag-uk"},o={FXCM:!0,OANDA:!0,FOREXCOM:!0,"FOREX.com":!0,FX_IDC:!0,FX:!0,IDC:!0};function r(t){return t?s[t]||"flag-"+t:""}t.exports.supportedFlags=function(){return Object.keys(n)},t.exports.getFlagIdByName=function(t){return t&&n[t]?n[t]:""},t.exports.getFlagIdBySymbolInfo=function(t){if(!t)return"";var e="";if(t.country)e=r(t.country&&t.country.toLowerCase());else if(t.rootItem){e=r(t.rootItem.country&&t.rootItem.country.toLowerCase())}else"forex"===t.type||!0===o[t.exchange]?e="flag-fx":"bitcoin"!==t.type&&"crypto"!==t.type||(e="flag-btc");return e}},PbK8:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#009246" d="M0 0h5v11H0z"/><path fill="#ce2b37" d="M11 0h5v11h-5z"/></svg>'},QwfJ:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path d="M0 0h16v11H0z" id="a"/></defs><g fill="none"><mask fill="#fff" id="b"><use xlink:href="#a"/></mask><use fill="#199D00" xlink:href="#a"/><g fill-rule="nonzero" mask="url(#b)"><path fill="#029246" d="M0 0h5v11H0z"/><path fill="#F7F8FA" d="M5 0h6v11H5z"/><path fill="#029246" d="M11 0h5v11h-5z"/></g></g></svg>'},SzKR:function(t,e,i){},TR3Z:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#f5f7fa" d="m0 0h16v11H0z"/><path fill="#ed5565" d="m7 5h2v1H7z"/><path fill="#4a89dc" d="m7 4h1v1H7z"/><path fill="#57a863" d="m7 6h2v1H7V6zM6 4h1v2H6V4zm3 0h1v2H9V4z"/><path fill="#ed5565" d="m0 0h5v11H0V0zm11 0h5v11h-5V0z"/></svg>'},UHaL:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ed5565" d="m0 0h16v11H0z"/><path fill="#57a863" d="m0 0h5v11H0z"/><path fill="#fc0" d="m3 4h4v2H3m1-3h2v4H4"/></svg>'},"WW+A":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#dc143c" d="M0 6h16v5H0z"/><path fill-opacity=".15" d="M0 0v6L.5.5h15L16 6V0z" class="flag-shade"/></svg>'},Wz7c:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#57a863" d="m0 0h16v11H0z"/><path fill="#fff" d="m5 7h6v2H9V8H6L5 7zm8-4h1v3h-2V5h1V3zM3 5V3h1v3H2V5h1zm8-2h1v2h-1V3zM8.5 4H9V3h1v2L9 6l-.5-.5L9 5H5V3h1v1h1V3h1v1h.5z"/></svg>'},XDHQ:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8"/></svg>'},Y7l6:function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#039" d="M0 0h16v11H0z"/><path fill="#fc0" d="M8 2h1v1H8zM6 3h1v1H6zM5 5h1v1H5zm1 2h1v1H6zm2 1h1v1H8zm2-1h1v1h-1zm1-2h1v1h-1zm-1-2h1v1h-1z"/></svg>'},Y8Rb:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h8m-4-4v8"/></svg>'},YAqe:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fe0000" d="M0 0h16v11H0z"/><path fill="#000095" d="M0 0h8v6H0z"/><circle fill="#fff" cx="4" cy="3" r="1"/><circle fill="#fff" fill-opacity=".3" cx="4" cy="3" r="2"/></svg>'},YSaP:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ed5565" d="m0 0h16v11H0z"/><path fill="#fc0" d="m8 6.885L6.146 8.206l.684-2.171L5 4.68l2.277-.02L8 2.5l.723 2.16L11 4.68 9.17 6.035l.684 2.171z"/></svg>'},ZiPV:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill="#f68f2d" d="M10.67 7.597c.617-.314 1.003-.868.913-1.79C11.463 4.547 10.375 4.12 9 4V2.258H8V4H7V2.258H6V4c-.23.005-.438.014-.66.014V4.01L3.873 4v1.144s.787-.015.774 0c.43 0 .572.25.612.466v4.787c-.02.135-.1.352-.4.352.013.01-.776 0-.776 0L3.874 12H6v1.793h1V12h1v1.793h1V12c1.79-.103 3.042-.524 3.197-2.204.126-1.352-.51-1.955-1.527-2.2zM7.013 5.22c.6 0 2.585-.19 2.585 1.063 0 1.202-1.984 1.06-2.585 1.06zm0 5.538V8.416c.722 0 3.08-.207 3.08 1.17 0 1.322-2.358 1.17-3.08 1.172z"/><path fill="#f68f2d" d="M8 0a8 8 0 0 0-8 8 8 8 0 0 0 8 8 8 8 0 0 0 8-8 8 8 0 0 0-8-8zm0 1.234A6.766 6.766 0 0 1 14.766 8 6.766 6.766 0 0 1 8 14.766 6.766 6.766 0 0 1 1.234 8 6.766 6.766 0 0 1 8 1.234z"/></svg>'},ZrzP:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path fill="none" stroke="currentColor" stroke-linecap="square" d="M2.5 6.5h9"/><circle fill="currentColor" cx="7" cy="3" r="1"/><circle fill="currentColor" cx="7" cy="10" r="1"/></svg>'},anmh:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><g fill="none" fill-rule="evenodd" stroke="currentColor"><path stroke-linecap="square" stroke-linejoin="round" d="M3.5 10V2.5L1 5"/><path stroke-linecap="square" d="M1.5 10.5h4"/><path d="M8 12l3-11"/></g></svg>'},b6e9:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#f5f7fa" d="m0 0h16v11H0z"/><path fill="#ed5565" d="m9 0h7v1H9V0zm0 2h7v1H9V2zm0 2h7v1H9V4zM0 6h16v1H0V6zm0 2h16v1H0V8zm0 2h16v1H0v-1z"/><path fill="#4a89dc" d="m0 0h9v6H0z"/><path fill="#fc0" d="m5 4V2h2v2H5zM1 4V2h1V1h2v1H3v2h1v1H2V4H1z"/></svg>'},bZQm:function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#f5f7fa" d="m0 0h16v11H0z"/><path fill="#4758a9" d="m0 4h16v2H0m5-6h2v11H5"/></svg>'},c2JX:function(t,e,i){"use strict";i.r(e),i.d(e,"renderSpinnerTemplate",(function(){return o})),i.d(e,"Spinner",(function(){return l}));i("SzKR");var n=i("gWrr"),s=i("Owlf");function o(t){return void 0===t&&(t=""),'\n\t\t<div class="tv-spinner" role="progressbar">\n\t\t\t<div class="tv-spinner__spinner-layer">\n\t\t\t\t<div class="tv-spinner__background tv-spinner__width_element"></div>\n\t\t\t\t<div class="tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--left"></div>\x3c!--\n\t\t\t\t--\x3e<div class="tv-spinner__circle-clipper tv-spinner__width_element tv-spinner__circle-clipper--right"></div>\n\t\t\t</div>\n\t\t</div>\n\t'}var r=Object(n.parseHtmlElement)(o()),l=function(){function t(t){this._shown=!1,this._el=r.cloneNode(!0),this.setSize(t||s.a)}return t.prototype.spin=function(t){return this._el.classList.add("tv-spinner--shown"),void 0===this._container&&(this._container=t,void 0!==t&&t.appendChild(this._el)),this._shown=!0,this},t.prototype.stop=function(t){return t&&void 0!==this._container&&this._container.removeChild(this._el),this._el.classList.remove("tv-spinner--shown"),this._shown=!1,this},t.prototype.setStyle=function(t){var e=this;return Object.keys(t).forEach((function(i){var n=t[i];void 0!==n&&e._el.style.setProperty(i,n)})),this},t.prototype.setSize=function(t){var e=void 0!==t?"tv-spinner--size_"+t:"";return this._el.className="tv-spinner "+e+" "+(this._shown?"tv-spinner--shown":""),this},t.prototype.getEl=function(){return this._el},t.prototype.destroy=function(){this.stop(),delete this._el,delete this._container},t}()},cGCG:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="red" d="M0 0h4v11H0zm12 0h4v11h-4zM6.75 2.5l.25 2L5.5 4l-1 .75L5 6l1 .5V7h1.5v1.877h1V7H10v-.5l1-.5.5-1.25-1-.75-1.5.5.2-2L8 1.75z"/></svg>'},d5hF:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ef2b2d" d="M0 0h16v11H0z"/><path fill="#fff" d="M4.1 0h3.4v11H4.1z"/><path fill="#fff" d="M0 4.1h16v3.4H0z"/><path fill="#002868" d="M5 0h1.6v11h-1.6z"/><path fill="#002868" d="M0 5h16v1.6H0z"/></svg>'},"dMw+":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#f5f7fa" d="m0 0h16v11H0z"/><path fill="#ed5565" d="m0 0h16v6H0z"/></svg>'},dp3k:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#3f4a56" d="m0 7h16v4H0z"/><path fill="#f5f7fa" d="m0 3h16v5H0z"/><path fill="#ed5565" d="m0 0h16v3H0z"/><path fill="#fc0" d="m9 5h2v1h-1v1H6V6H5V5h2V4h2v1z"/></svg>'},"eO+B":function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#4a89dc" d="m0 7h16v4H0z"/><path fill="#f5f7fa" d="m0 3h16v4H0z"/><path fill="#ed5565" d="m0 0h16v4H0z"/></svg>'},"g+h9":function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#002395" d="M0 0h5v11H0z"/><path fill="#ed2939" d="M11 0h5v11h-5z"/></svg>'},gTvK:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#f7f8fa" d="m0 7h16v4H0z"/><path fill="#3f4a56" d="m0 3h16v4H0z"/><path fill="#4758a9" d="m0 0h16v4H0z"/></svg>'},gUHu:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ffc400" d="M0 0h16v11H0z"/><path fill="#c60b1e" d="M0 8h16v3H0zm0-8h16v3H0zm7 5v2c0 .278-.446.5-1 .5S5 7.28 5 7V5z"/><path fill="#ffc400" fill-opacity=".5" d="M5 6h2v2H5z"/><path fill="#ccc" d="M6 5h1v1H6zM7.5 4.5H8v3h-.5zM4 4.5h.5v3H4z"/><path fill="#c60b1e" d="M6 4s-.9 0-1 .268c-.1.268.3.532 1 .632.7-.1 1.1-.364 1-.632C6.9 4 6 4 6 4z"/></svg>'},hSJd:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#009b3a" d="M0 0h16v11H0z"/><path fill="#fedf00" d="M8 1l7 4.5L8 10 1 5.5z"/><circle fill="#002776" cx="8" cy="5.5" r="3"/><path fill="#fff" d="M5.424 3.97c-.114.19-.207.394-.276.606 2.325-.12 4.046.182 5.635 2.037.086-.218.147-.445.18-.677C9.39 4.156 7.72 3.89 5.423 3.97z"/></svg>'},if5h:function(t,e,i){"use strict";var n=i("8woN"),s=i("JWMC").trackEvent,o=i("txPx").getLogger("Chart.SymbolSearchInputParseMixin");function r(t){this._search=t}r.prototype._isEntityToken=function(t){return t instanceof n.SymbolToken||t instanceof n.NumberToken},r.prototype.parse=function(){var t=this._search,e=t._state,i=$(t._inputElement);e.parsed=n.tokenize(t._state.value,{recover:!0}),i.removeClass("incomplete error");var s=n.validate(t._state.parsed);e.isError=!!s.errors,e.isIncomplete=!!s.warnings,e.isEmpty=!!s.isEmpty,e.isError?i.addClass("error"):e.isIncomplete&&!e.isEmpty&&i.addClass("incomplete"),s.errors||"var"===s.currentState||e.parsed.push(new n.IncompleteSymbolToken("")),t._onParse&&t._onParse(e.parsed,s)},r.prototype.onSelectionChanged=function(t){var e=this._search,i=this._getSelectedToken();if(this._isEntityToken(i)&&e.$list){var s,o;i instanceof n.SymbolToken?(s=i.ticker()||"",o=i.exchange()||e.getExchangeFilter()||""):(s=i.value||"",o=e.getExchangeFilter()||"");var r=e._state.typeFilter||"",l=e._state.tradableFilter;e._state.contextToken=i,s===e._state.contextTicker&&o===e._state.contextExchange&&r===e._state.contextType&&l===e._state.contextTradable||t(s,o,r,i.toString())}else e._state.contextToken&&(e._clearSuggestList(),e._clearSelectionState())},r.wrapSymbol=function(t){var e=new n.SymbolToken(t);return e.parse(),e.toString()},r.prototype.replaceCurrentSymbol=function(t){var e=this._search._state;if(!e.contextToken)return{ok:!1}
;var i="",n=0,s=e.contextToken;return t.full_name?(s.value=r.wrapSymbol(t.full_name),s.parse(),s.hasOwnProperty("_exchange")||o.logError("Can't find exchange in full_name ("+t.full_name+")"),s.hasOwnProperty("_ticker")||o.logError("Can't find ticker in full_name ("+t.full_name+")")):(s.exchange(t.exchange),s.ticker(t.symbol),s.value=s.toString()),e.parsed.forEach((function(t){i+=t.hasOwnProperty("value")?t.value:t.toString(),t===s&&(n=i.length)})),{ok:!0,newValue:i,newCaretPos:n,keepListFor:s.toString()}},r.prototype._getSelectedToken=function(){for(var t=this._search._state,e=0,i=0;i<t.parsed.length;i++){var n=t.parsed[i],s=e,o=e+=n.value.length;if(t.selectionStart>=s&&(t.selectionEnd<o||t.selectionEnd===o&&!this._isEntityToken(t.parsed[i+1])))return n}},r.prototype.parseSymbol=function(t){var e=this._search,i=n.tokenize(t,{recover:!0}),s=n.validate(i);return s.warnings||s.errors?(""===t.trim()&&e._onEmptyApply&&e._onEmptyApply(),""):(n.normalizeTokens(i),(i=n.factorOutBraces(i)).join(""))},r.addSpreadActions=function(t,e,o,r){var l=[{icon:i("ZrzP"),insert:"/",type:"binaryOp",name:"division"},{icon:i("XDHQ"),insert:"-",type:"binaryOp",name:"subtraction"},{icon:i("Y8Rb"),insert:"+",type:"binaryOp",name:"addition"},{icon:i("8q1k"),insert:"*",type:"binaryOp",name:"multiplication"},{icon:i("OWoh"),insert:"^",type:"binaryOp",name:"exponentiation"},{icon:i("anmh"),type:"complete",name:"1/x",callback:function(){var t=n.tokenize("function"==typeof o?o():e.value,{recover:!0}),i=n.validate(t);if(!i.errors&&!i.warnings){var s=n.flip(t).join("");"function"==typeof r?r(s):e.value=s,e.selectionStart=e.selectionEnd=s.length,$(e).trigger("sync")}}}];return l.forEach((function(i){i.button=$('<button class="disabled">').append($(i.icon).attr("class","action-icon")).appendTo(t),i.button.on("mousedown mouseup",(function(t){t&&t.preventDefault&&t.preventDefault()})).on("click",(function(t){var n,l;$(this).is(".disabled")||(i.insert&&(n=i.insert,l=("function"==typeof o?o():e.value)+n,"function"==typeof r?r(l):e.value=l,e.selectionStart=e.selectionEnd=l.length,$(e).trigger("sync")),i.callback&&i.callback(t),s("GUI","SS",i.name))}))})),function(t,e){l.forEach((function(t){var i=!1;if(!e.errors)switch(t.type){case"binaryOp":i="var"===e.currentState;break;case"openBrace":i="var"!==e.currentState;break;case"closeBrace":i="var"===e.currentState&&e.braceBalance>0;break;case"complete":i=!e.errors&&!e.warnings}t.button.toggleClass("disabled",!i)}))}},t.exports=r},jAh7:function(t,e,i){"use strict";i.r(e),i.d(e,"OverlapManager",(function(){return o})),i.d(e,"getRootOverlapManager",(function(){return l}));var n=i("Eyy1"),s=function(){function t(){this._storage=[]}return t.prototype.add=function(t){this._storage.push(t)},t.prototype.remove=function(t){this._storage=this._storage.filter((function(e){return t!==e}))},t.prototype.has=function(t){return this._storage.includes(t)},t.prototype.getItems=function(){return this._storage},t}(),o=function(){function t(t){void 0===t&&(t=document),this._storage=new s,this._windows=new Map,this._index=0,
this._document=t,this._container=t.createDocumentFragment()}return t.prototype.setContainer=function(t){var e=this._container,i=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach((function(t){t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)}))}(e,i),this._container=i},t.prototype.registerWindow=function(t){this._storage.has(t)||this._storage.add(t)},t.prototype.ensureWindow=function(t,e){void 0===e&&(e={position:"fixed",direction:"normal"});var i=this._windows.get(t);if(void 0!==i)return i;this.registerWindow(t);var n=this._document.createElement("div");if(n.style.position=e.position,n.style.zIndex=this._index.toString(),n.dataset.id=t,void 0!==e.index){var s=this._container.childNodes.length;if(e.index>=s)this._container.appendChild(n);else if(e.index<=0)this._container.insertBefore(n,this._container.firstChild);else{var o=this._container.childNodes[e.index];this._container.insertBefore(n,o)}}else"reverse"===e.direction?this._container.insertBefore(n,this._container.firstChild):this._container.appendChild(n);return this._windows.set(t,n),++this._index,n},t.prototype.unregisterWindow=function(t){this._storage.remove(t);var e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))},t.prototype.getZindex=function(t){var e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")},t.prototype.moveToTop=function(t){this.getZindex(t)!==this._index&&(this.ensureWindow(t).style.zIndex=(++this._index).toString())},t.prototype.removeWindow=function(t){this.unregisterWindow(t)},t}(),r=new WeakMap;function l(t){void 0===t&&(t=document);var e=t.getElementById("overlap-manager-root");if(null!==e)return Object(n.ensureDefined)(r.get(e));var i=new o(t),s=function(t){var e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return r.set(s,i),i.setContainer(s),t.body.appendChild(s),i}},lyw5:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#ac3b44" d="m0 0h16v11H0"/><path fill="#f5f7fa" d="m0 4h16v3H0"/></svg>'},m5UM:function(t,e,i){"use strict";(function(e,n,s){i("sZhh"),i("HBUj");var o=i("if5h"),r=i("P7QH"),l=i("3PGb"),a=i("zns4"),h=i("N22A").tradingService,c=i("OekH").CONNECTSTATUSES,p=i("i8i4"),d=i("q1tI"),f=i("PT1i").linking,u=(i("qdOW"),i("6et/")),g=i("w3Pp").marketType,v=i("c2JX").Spinner,m=i("+6II"),w=i("dTSQ").regExpEscape,_=i("ePL1"),y=i("wmOI"),x=i("+GxX").isFeatureEnabled,b=i("GAqT").TVOldDialogs,S=i("jAh7").getRootOverlapManager,H=i("e3/o").guid,z=i("LxhU").Interval,E=i("h24c"),C=E.canShowSpreadActions,k=E.skipAccept,M=E.syncSymbolSearch,T=E.setLinkingResolution,I=E.globalKeypressMatches,V=x("futures-descriptions");function L(){if(void 0===h)return null;var t=h();return t&&t.connectStatus()===c.CONNECTED?t.activeBroker():null}function O(){var t=L()
;if(t&&t.metainfo().configFlags.supportSymbolSearch)return t.metainfo().backendBrokerName||t.metainfo().id.toLowerCase()}function F(t){return R[{"EURONEXT AMSTERDAM":"EURONEXTAMS","EURONEXT BRUSSELS":"EURONEXTBRU","EURONEXT LISBON":"EURONEXTLIS","EURONEXT PARIS":"EURONEXTPAR"}[t.exchange]||t.prefix||t.exchange]||t.exchange||""}function A(t,e){return e in t||(t[e]="bitcoin"===e||"crypto"===e?window.t("crypto"):window.t(e)),t[e]}var D=0,R={},P=/^(\w{3,4}) (\d{4})$/,B=function(){var t=[{name:"input",immediate:!0},{name:"sync",immediate:!0},{name:"keypress"},{name:"keydown"},{name:"keyup"},{name:"mousedown"},{name:"mouseup"},{name:"cut"},{name:"paste"}],E=[/^e-m/i],B=/<\/?[^>]+(>|$)/g;function N(i){var n;if(!(this instanceof N))throw new TypeError("SymbolSearch is a constructor");if(n=!(i=i||{}).dontUseInputParser&&e.enabled("symbol_search_parser_mixin"),this._inputParserMixin=n?new o(this):void 0,this._inputElement=$(i.input).get(0),!this._inputElement)throw new TypeError("options.input must be a DOM element, jQuery object or selector");if(this.$list=$(i.list).eq(0),0===this.$list.size()&&delete this.$list,void 0!==i.callback){if("function"!=typeof i.callback)throw new TypeError("options.callback must be function");this._callback=i.callback}if(void 0!==i.onValueChanged){if("function"!=typeof i.onValueChanged)throw new TypeError("options.onValueChanged must be function");this._onValueChanged=i.onValueChanged}if(void 0!==i.onEmptyApply){if("function"!=typeof i.onEmptyApply)throw new TypeError("options.onEmptyApply must be function");this._onEmptyApply=i.onEmptyApply}if(i.ignoreInterval&&(this._ignoreInterval=!0),N.resetStoredInterval(),i.hidePro&&(this._hidePro=!0),i.allowMultipleSymbols&&(this._allowMultipleSymbols=!0),void 0!==i.onParse){if("function"!=typeof i.onParse)throw new TypeError("options.onParse must be function");this._onParse=i.onParse}this._state={},this._resolveViaSymbolSearchId=null,this.acceptEmpty=!!i.acceptEmpty,this._quandlFilter=new it(tt),$(this._inputElement).data("symbol-search-instance",this);for(var s=this._boundListener=this._eventListener.bind(this),r=this.boundTimeoutListener=function(t){setTimeout((function(){s(t)}),0)},l=0;l<t.length;l++)t[l].immediate?$(this._inputElement).on(t[l].name,s):$(this._inputElement).on(t[l].name,r);this._boundOnKeyDown=this._onKeyDown.bind(this),this._boundOnKeyPress=this._onKeyPress.bind(this),$(this._inputElement).on("keydown",this._boundOnKeyDown).on("keypress",this._boundOnKeyPress),this._eventListener(),i.autoFocus&&N.registerAutoFocus(this)}function W(t,e){var i=ChartApiInstance.supportedSymbolsTypes();O()&&(i=i.filter((function(t){return"quandl"!==t.value&&"economic"!==t.value})));var n=TVSettings.getValue("symboledit.filter");return!i.some((function(t){return t.value===n}))&&i.length>0&&(n=i[0].value),0!==i.length&&(i.forEach((function(i){var s=i.value,o=$('<a class="type-filter">').attr("href","#"+s).text($.t(i.name));s===n&&o.addClass("active"),o.on("click",(function(i){i.preventDefault(),e.find(".type-filter").removeClass("active"),
$(this).addClass("active"),t.typeFilter(s),TVSettings.setValue("symboledit.filter",s)})),o.appendTo(e)})),t.typeFilter(n),!0)}function U(t,e){var i=ChartApiInstance.supportedExchangesList();i.reduce((function(t,e){return t[e.value]=e.name,t}),R);var n,s=(n=TVSettings.getValue("symboledit.exchangefilter"),/_MINI$/.test(n)?"":n);if("bovespa"!==TradingView.widgetCustomer){if(0===i.length)return!1;var o=$('<div id="exchange-filter" class="exchange-filter">').appendTo(e);return G(t,i,s,o),t.setExchangeFilter(s),!0}}N.registerAutoFocus=function(t){if(t instanceof jQuery&&(t=t.data("symbol-search-instance")),!(t instanceof N))throw new TypeError("arg must be an SymbolSearch instance of jQuery input with bound SymbolSearch object");u.registerListener("symbolEdit",function(t){if(I(t)){t.preventDefault(),this.resetState(),this._skipAutoFocus=!0,this._inputElement.focus();var e=String.fromCharCode(t.charCode);"function"==typeof this._setInputValue?this._setInputValue(e):this._inputElement.value=e,this._eventListener()}}.bind(t))},N.prototype.searchRequestDelay=100,N.setSearchRequestDelay=function(t){N.prototype.searchRequestDelay=t},N.prototype.resetState=function(){this._state={}},N.prototype.typeFilter=function(t){if(!(arguments.length>0))return this._state.typeFilter;t!==this._state.typeFilter&&(null==t?delete this._state.typeFilter:this._state.typeFilter=t+"",delete this._state.keepListFor,this._onSelectionChanged(),this.selectExchangeFilter())},N.prototype.setExchangeFilter=function(t){t!==this._state.exchangeFilter&&(null==t?delete this._state.exchangeFilter:this._state.exchangeFilter=t+"",delete this._state.keepListFor,this._onSelectionChanged())},N.prototype.setTradableFilter=function(t){t!==this._state.tradableFilter&&(this._state.tradableFilter=t,this._onSelectionChanged())},N.prototype.getExchangeFilter=function(){return this._state.typeFilter===_.types.QUANDL?this._quandlFilter.getValue():this._state.exchangeFilter},N.prototype.destroy=function(){$(this._inputElement).off(),$(this._inputElement).removeData("symbol-search-instance")},N.prototype._moveSelection=function(t,e){if(this.$list){var i,n=this.$list.find("table.symbol-edit-popup"),s=n.find("tr:not(.hidden)"),o=n.find("tr.symbol-edit-popup-active").removeClass("symbol-edit-popup-active"),r=0!==o.length?s.index(o):-1;if(r!==(i=1===t?o.get(0)===s.get(-1)?0:r+t:Math.max(-1,r+t))){var l=s.get(i);if(l){var a=this._getItemByElement(l);if(Q.isRoot(a)){var h=l.getAttribute("data-root");l.classList.add("symbol-edit-popup-active"),this._scrollHighlightIntoView(),h?(this._state.highlightedItem=null,this._selectedGroupRoot=h):(this._state.highlightedItem=a,this._replaceCurrentSymbol(e))}else delete this._selectedGroupRoot,this._highlightItem(a,!0,e)}}}},N.prototype._groupToggleCollapsed=function(t,e){this._groupListHandler&&this._groupListHandler.toggleCollapsed(t,e)},N.prototype._onKeyDown=function(t){t.keyCode!==y.DOWN_ARROW&&t.keyCode!==y.UP_ARROW||(this._moveSelection(t.keyCode===y.DOWN_ARROW?1:-1,!0),t.preventDefault(),t.stopPropagation()),
t.keyCode===y.ENTER&&t.stopPropagation(),!this._selectedGroupRoot||t.keyCode!==y.LEFT_ARROW&&t.keyCode!==y.RIGHT_ARROW||(this._groupToggleCollapsed(this._selectedGroupRoot,t.keyCode===y.LEFT_ARROW),t.preventDefault())},N.prototype._onKeyPress=function(t){if(t.keyCode===y.DOWN_ARROW||t.keyCode===y.UP_ARROW){if(t.charCode)return;if(this._boundOnKeyDown)return $(this._inputElement).off("keydown",this._boundOnKeyDown),delete this._boundOnKeyDown,void t.preventDefault();this._moveSelection(t.keyCode===y.DOWN_ARROW?1:-1),t.preventDefault()}t.keyCode===y.ENTER&&(this._selectedGroupRoot?(this._groupToggleCollapsed(this._selectedGroupRoot,!1),t.preventDefault()):this.acceptTypeIn())},N.prototype._eventListener=function(t,i){var n=this._inputElement,s=this._getInputValue();e.enabled("uppercase_instrument_names")&&(s=s.toUpperCase());var o=!1,r=!1;this._state.value!==s&&(this._state.hasOwnProperty("value")&&this._onValueChanged&&this._onValueChanged(s),this._state.value=s,o=!0,this._inputParserMixin&&this._inputParserMixin.parse()),this._fixIntervalCase();var l=this._limitInputSelectionValue("selectionStart");this._state.selectionStart!==l&&(this._state.selectionStart=l,r=!0);var a=this._limitInputSelectionValue("selectionEnd");if(this._state.selectionEnd!==a&&(this._state.selectionEnd=a,r=!0),this._state.selectionDirection!==n.selectionDirection&&(this._state.selectionDirection=n.selectionDirection,r=!0),o||r&&this._inputParserMixin){this._onSelectionChanged(void 0,i);var h=!1;this._getInputValue()!==this._state.value&&(this._setInputValue(this._state.value),h=!0),(h||this._state.selectionStart!==this._limitInputSelectionValue("selectionStart")||this._state.selectionEnd!==this._limitInputSelectionValue("selectionEnd"))&&n.setSelectionRange&&n.setSelectionRange(this._state.selectionStart,this._state.selectionEnd,this._state.selectionDirection)}},N.prototype._fixIntervalCase=function(){if(this._selectionInsideInterval()){var t=N.detachInterval(this._inputElement.value);/[a-z]/.test(t.detached)&&(this._inputElement.value=t.rest+t.detached.toUpperCase())}},N.prototype._selectionInsideInterval=function(t){if(this._ignoreInterval)return!1;var e=N.detachInterval(this._inputElement.value);return!!e&&("string"==typeof t?this._inputElement[t]>e.rest.length:this._inputElement.selectionStart>e.rest.length&&this._inputElement.selectionEnd>e.rest.length)},N.prototype._limitInputSelectionValue=function(t){return this._selectionInsideInterval(t)?N.detachInterval(this._inputElement.value).rest.length:t in this._inputElement?this._inputElement[t]:this._inputElement.value.length},N.prototype._getInputValue=function(){if(this._ignoreInterval)return this._inputElement.value;var t=N.detachStoreInterval(this._inputElement.value);return $(this._inputElement).toggleClass("interval-error",N.intervalError()),t},N.prototype._setInputValue=function(t){this._ignoreInterval?this._inputElement.value=t:this._inputElement.value=N.recallAttachInterval(t)},N.prototype._onSelectionChanged=function(t,e){var i=this;function n(t,e,n,s,o){i._state.contextTicker=t,
i._state.contextExchange=e,i._state.contextType=n,i._state.contextTradable=o,i._state.keepListFor&&i._state.keepListFor===s||(i._getSuggestList(),delete i._state.keepListFor)}if(!E.some((function(t){return t.test(i._state.value)}))&&(this._isSpreadInInput()||this._inputParserMixin&&!0!==e))this._inputParserMixin.onSelectionChanged(n);else if(this.$list){this._state._selectedTicker=null;var s=this._state.value;this._isSpreadInInput()&&this._state.contextToken&&(s=this._state.contextToken.value),n(s,this.getExchangeFilter(),this._state.typeFilter,s,this._state.tradableFilter)}},N.prototype._clearSelectionState=function(){delete this._state.contextTicker,delete this._state.contextExchange,delete this._state.contextType,delete this._state.contextToken,delete this._state.keepListFor},N.prototype._clearSearchTimeout=function(){this._searchTimeout&&(clearTimeout(this._searchTimeout),this._searchTimeout=null)},N.prototype._doGetSuggestList=function(){this._clearSearchTimeout();var t=O(),e=this._state.contextTicker||"",i=this._state.contextExchange||this.getExchangeFilter()||"",n=this._state.typeFilter||"",s=t&&this._state.tradableFilter,o=this._getUnhideSymbolSearchGroups(),r=window.language||"";this._showLoading();var l=this;ChartApiInstance.searchSymbols(e,i,n,r,!0,!1,t,s,o,(function(t){e!==(l._state.contextTicker||"")||i!==(l._state.contextExchange||l.getExchangeFilter()||"")||n!==(l._state.typeFilter||"")||(n===_.types.QUANDL&&(t=l._processQuandlResponse(t)),l._renderSuggestList(t),l._onResponse(t))}))},N.prototype._getSuggestList=function(){this._clearSearchTimeout(),this._searchTimeout=setTimeout(this._doGetSuggestList.bind(this),N.prototype.searchRequestDelay)},N.prototype._showLoading=function(){if(this.$list&&!this._spinner){this._clearSuggestList();var t=$('<div class="symbol-search-loading">').appendTo(this.$list);this._spinner=new v("medium").spin(t.get(0))}},N.prototype._groupContracts=function(t){for(var e=ChartApiInstance.symbolsGrouping(),i={},n=[],s=0;s<t.length;++s){var o=t[s];if(o.prefix||Array.isArray(o.contracts))return t;var r=e[o.type];if(void 0!==r){var l=r.exec(o.symbol);if(l){var a,h=l[1];h in i?a=i[h]:(a=n.length,i[h]=a,n.push({type:o.type,symbol:h,exchange:o.exchange,description:o.description,full_name:o.exchange+":"+h,contracts:[]})),n[a].contracts.push(o)}else n.push(o)}else n.push(o)}return n},N.prototype._renderSuggestList=function(t){if(this.$list){t=this._groupContracts(t),V=x("futures-descriptions");var i=this,n=this._state;this._clearSuggestList();var s=w(n.contextTicker).trim(),o=new RegExp(s.replace(" ","|"),"i"+(s.length>1?"g":""));if(delete n.highlightedItem,this._hidePro&&(t=t.filter((function(t){return!t.params||-1===t.params.indexOf("pro")}))),0!==t.length){var r=document.createElement("table");r.setAttribute("class","symbol-edit-popup");var l=new N.GroupListHandler(r,o,{}),h=null;this._renderedResponse=[];for(var c=TVSettings.getBool("fxcm_cfd",!1),p=0;p<t.length;p++){var d=t[p];d=N.migrateItemFormat(d),
!c&&a.isFxmCfdSymbol(d.ticker)||(this._hidePro&&Array.isArray(d.params)&&~d.params.indexOf("pro")||(l.append(d),h||d.ticker!==n.contextTicker||d.exchange!==n.contextExchange||(h=d),this._renderedResponse.push(d)))}e.enabled("expand_symbolsearch_items")||l.collapse(),this._groupListHandler=l,h&&this._highlightItem(d),$(r).on("click","tr",(function(t){if(!t.isDefaultPrevented()){t.preventDefault();var e=i._getItemByElement(this);e&&e.full_name&&(i._isSpreadInInput()?i._highlightItem(e,!0,!1):i.accept(e.full_name,e.ticker))}})).appendTo(this.$list)}else this.$list.html('<div style="text-align: center; padding: 7px 0; font-style: italic;">'+$.t("No symbols matched your criteria")+"</div>")}},N.prototype._isEmptySuggestList=function(){return!Boolean(this._renderedResponse&&this._renderedResponse.length)},N.prototype._isSpreadInInput=function(){return this._inputParserMixin&&this._state.parsed&&this._state.parsed.length>1},N.prototype._getItemByElement=function(t){return this._renderedResponse&&this._groupListHandler?this._groupListHandler.getItemByTicker(t.getAttribute("data-item-ticker")):null},N.prototype._getElementByItem=function(t){if(!this._renderedResponse||!this.$list)return null;var e=Q.itemTicker(t);return this.$list.get(0).querySelector('tr[data-item-ticker="'+e+'"]')},N.prototype._highlightItem=function(t,e,i){var n=this._state;if(n.highlightedItem){var s=this._getElementByItem(n.highlightedItem);s&&$(s).removeClass("symbol-edit-popup-active")}n.highlightedItem=t;var o=this._getElementByItem(n.highlightedItem);o&&($(o).addClass("symbol-edit-popup-active"),this._scrollHighlightIntoView()),e&&this._replaceCurrentSymbol(i)},N.prototype._scrollHighlightIntoView=function(){var t=this.$list.find("tr.symbol-edit-popup-active");t.length&&(t.offset().top<this.$list.offset().top?this.$list.scrollTop(this.$list.scrollTop()-(this.$list.offset().top-t.offset().top)):t.offset().top+t.outerHeight()>this.$list.offset().top+this.$list.outerHeight()&&this.$list.scrollTop(this.$list.scrollTop()+(t.offset().top+t.outerHeight()-(this.$list.offset().top+this.$list.outerHeight()))))},N.prototype._clearSuggestList=function(){this._renderedResponse=null,this._spinner&&(this._spinner.stop(),delete this._spinner),this.$list&&this.$list.empty()},N.prototype._showErrorNotice=function(){this.$list&&(this._clearSuggestList(),this.$list.text("Invalid expression"))},N.prototype._replaceCurrentSymbol=function(t){var e=this._state;if(e.highlightedItem){var i=e.highlightedItem,n="",s=0;if(this._isSpreadInInput()||this._inputParserMixin&&!0!==t){var r=this._inputParserMixin.replaceCurrentSymbol(i);if(!r.ok)return;n=r.newValue,s=r.newCaretPos,e.keepListFor=r.keepListFor}else this._state._selectedTicker=i.ticker||i.symbol,e.keepListFor=this._state._selectedTicker,n=!0===t&&i.full_name&&this._inputParserMixin?i.full_name:i.symbol,n=o.wrapSymbol(n),e.keepListFor=o.wrapSymbol(this._state._selectedTicker),s=n.length;this._setInputValue(n.replace(B,"")),
this._inputElement.setSelectionRange?this._inputElement.setSelectionRange(s,s):this._inputElement.select(),this._eventListener(void 0,t)}},N.prototype.splitAndAcceptUserInput=function(){for(var t=this._getInputValue().split(","),e=0;e<t.length;e++)this.acceptSymbolIn(t[e])},N.prototype.acceptSymbolIn=function(t){var e,i;this._inputParserMixin?e=this._inputParserMixin.parseSymbol(t):(e=t,i=this._state._selectedTicker||t),this.accept(e,i)},N.prototype.acceptTypeIn=function(){this._allowMultipleSymbols?this.splitAndAcceptUserInput():this.acceptSymbolIn(this._getInputValue())},N.prototype.accept=function(t,e){var i=this,n=function(){if((e=e||t)||""===e&&i.acceptEmpty){delete i._state.keepListFor;var n=i._ignoreInterval?void 0:N.getInterval(!0);i._inputElement.value=t,i._eventListener(),i._callback&&i._callback(e,n),$(i._inputElement).trigger("accept-symbol",[e])}},s=this._state.contextExchange||this.getExchangeFilter()||"",o=this._state.typeFilter||"",r=O(),l=window.language||"",a=D++;this._resolveViaSymbolSearchId=a;if(!e&&-1===t.indexOf(":")&&r&&o!==_.types.QUANDL){var h=this._getUnhideSymbolSearchGroups();this._isEmptySuggestList()&&(o="",s=""),ChartApiInstance.searchSymbols(t,s,o,l,!0,!0,r,!0,h,(function(t){i._resolveViaSymbolSearchId===a&&(e=function(t){var e;if(t&&t.length>0){var n=t[0],s=n.prefix||n.exchange,o=n.hasOwnProperty("contracts")&&n.contracts.length>0?n.contracts[0].symbol:n.symbol;i._resolveViaSymbolSearchId=null,s&&o&&(e=s+":"+o)}return e}(t),n())}))}else n()},N.prototype.bindListWrapper=function(t){if(0===(t=$(t).eq(0)).size())throw new TypeError("element must be a DOM element, jQuery object or selector");this.$list=t,this._clearSelectionState(),this._eventListener()},N.prototype.removeListWrapper=function(){delete this.$list,this._clearSuggestList(),this._clearSelectionState(),this._eventListener()},N.prototype.selectExchangeFilter=function(){this.$filterContainer.find(".exchange-filter").hide(),this._state.typeFilter===_.types.QUANDL?this.$filterContainer.find("#quandl-filter").show():this._state.typeFilter!==_.types.ECONOMIC&&this.$filterContainer.find("#exchange-filter").show()},N.prototype._onResponse=function(t){t.length>0&&(this._state.typeFilter===_.types.QUANDL&&this._showNotification())},N.prototype._showNotification=function(){if(TVSettings.getBool("symboledit.show_quandl_notification",!0)){var t=$.t("Quandl is a huge financial database that we have connected to TradingView. Most of its data is EOD and is not updated in real-time, however the information may be extremely useful for fundamental analysis.")+' <a target="_blank" href="'+("ru"===window.locale?"http://blog.tradingview.com/?p=1530&lang=ru":"http://blog.tradingview.com/?p=1530")+'">'+$.t("Read our blog for more info!")+"</a>",e=$('<div class="symbol-edit-notification">').prependTo(this.$list);e.html(t),e.find("a").click((function(t){t.preventDefault();var e=$(this).attr("href");window.open(e,"_blank")})),$('<a class="close">').appendTo(e).click((function(){TVSettings.setValue("symboledit.show_quandl_notification",!1),e.remove()}))
}},N.prototype._processQuandlResponse=function(t){return t.datasets.filter((function(t){return!t.premium})).map((function(t){return{description:t.name,exchange:t.database_code,full_name:"QUANDL:"+t.database_code+"/"+t.dataset_code,params:["eod"],symbol:t.dataset_code,type:"quandl"}}))},N.prototype._getUnhideSymbolSearchGroups=function(){var t="",e=L();if(e){var i=e.metainfo().configFlags.supportUnhideSymbolSearchGroups;e.connectionStatus()===c.CONNECTED&&i&&(t=e.unhideSymbolSearchGroups().join(",")),h().trackEvent("Symbol Search Tradable checkbox",O()&&this._state.tradableFilter?"on":"off")}return t},N.prototype.forceFocus=function(){this._inputElement.focus()},N.migrateItemFormat=function(t,e){if(e&&(t.contractDescription=t.description||"",["type","exchange","description"].forEach((function(i){t[i]&&"description"!==i||!e[i]||(t[i]=e[i])})),t.rootItem=e),t.full_name||(t.prefix||t.exchange?t.full_name=(t.prefix||t.exchange)+":"+t.symbol:Array.isArray(t.contracts)&&t.contracts.length&&t.contracts[0].prefix?t.full_name=t.contracts[0].prefix+":"+t.symbol:t.full_name=t.symbol),t.full_name=t.full_name.replace(B,""),t.ticker||(t.ticker=t.full_name),Array.isArray(t.contracts))for(var i=0;i<t.contracts.length;++i)N.migrateItemFormat(t.contracts[i],t);return t},N.createSuggestListRow=function(t,e,i,n){n||(n={});var s=document.createElement("tr"),o="symbol-edit-popup";n.addClass&&(o+=" "+n.addClass),s.setAttribute("class",o);var r="quandl"===t.type,l=document.createElement("td");l.setAttribute("class","symbol-edit-popup-td name apply-overflow-tooltip apply-overflow-tooltip--allow-text");var a,h=r?t.symbol.replace(e,"<strong>$&</strong>"):t.symbol,c=n.nameContent||h;(a=L(),Boolean(a&&a.metainfo().configFlags.supportDisplayBrokerNameInSymbolSearch))&&t.broker_symbol&&(c=c+" ("+(r?t.broker_symbol.replace(e,"<strong>$&</strong>"):t.broker_symbol)+")"),l.innerHTML=c;var p=document.createElement("td");p.setAttribute("class","symbol-edit-popup-td desc apply-overflow-tooltip");var d=t.description.toUpperCase();if(V&&t.contractDescription){var f=P.exec(t.contractDescription);d+=f?" ("+A(i,f[1])+" "+f[2]+")":" ("+A(i,t.contractDescription)+")"}p.innerHTML=!r||e.test(t.symbol)?d:d.replace(e,"<strong>$&</strong>");var u=document.createElement("td");u.setAttribute("class","symbol-edit-popup-td type apply-overflow-tooltip");var v="";if(n.typeContent)v=n.typeContent;else{t.params&&~t.params.indexOf("eod")&&(v='<i class="eod">eod</i> ');var m=t.typespecs&&t.typespecs.includes("cfd"),w=g(t.type,m);if(t.exchange)v+=w+(w.length?" - ":"")+F(t);else v+=w}u.innerHTML=v;var _=document.createElement("td");_.setAttribute("class","symbol-edit-popup-td flag apply-overflow-tooltip"),_.innerHTML=N.getItemFlag(t);var y=_.getElementsByTagName("svg")[0];return y&&y.setAttribute("class","flag"),s.appendChild(l),s.appendChild(p),s.appendChild(u),s.appendChild(_),s},N.getItemFlag=function(t){var e=r.getFlagIdBySymbolInfo(t);return l.getSvgCodeByFlagId(e)};var q,X,G=function(t,e,n,s){var o=e.reduce((function(t,e){
return t[e.flag]=l.getSvgCodeByFlagId(r.getFlagIdByName(e.flag)),t}),{}),a=s.parent(".filter"),h=a.outerWidth(),c=parseInt(a.css("padding-right"),10);Promise.all([i.e("vendors_embed"),i.e(81),i.e(114),i.e(372),i.e(6),i.e(13),i.e(46),i.e(73),i.e("exchanges-select")]).then(function(r){var l=i("2XA6").ExchangesSelect,a=i("J5e7").getSymbolSearchExchanges;p.render(d.createElement(l,{exchanges:a(e),selected:n,oldFlags:o,width:h,offsetX:c,onSelect:function(e){t.setExchangeFilter(e),TVSettings.setValue("symboledit.exchangefilter",e)}}),s.get(0))}.bind(null,i)).catch(i.oe)};function j(t){t._quandlFilter.load(),new et(Z,t._quandlFilter).makeQuandlFilter(t,t.$filterContainer);var e=U(t,t.$filterContainer);return t.selectExchangeFilter(),e}function K(t,e){if(O()){var i,n=TVSettings.getBool("symboledit.tradable",!0),s=n?"checked":"",o=(i=L())&&i.metainfo().title,r=$('<span class="tradable-filter apply-common-tooltip" title="'+$.t("Show the markets you can place an order with {brokerName}").replace("{brokerName}",o)+'"><input class="tradable-checkbox" type="checkbox" '+s+'/><span class="tradable-text">'+o+"</span></span>"),l=r.find("input"),a=r.find("span");l.on("click",h),a.on("click",h),e.append(r),t.setTradableFilter(n)}function h(e){n=!n,setTimeout((function(){l.prop("checked",n)})),t.setTradableFilter(n),TVSettings.setValue("symboledit.tradable",n)}}function Q(t,e,i){this._container=t,this._tickerRegExp=e,this._translationCache=i,this._exchangeNameCache=this._roots={},this._itemsByTicker={}}N.showDialog=function(t){t=t||{};if(!b.get("Symbol Search")){var e=b.createDialog("Symbol Search",{hideTitle:!0,hideCloseCross:!0,dragHandle:".filter",width:"750px",dragOptions:{cancel:".sbOptions"},content:'<div class="symbol-block"><div class="spread-actions"></div><div class="symbol-block-inputspacer"><input maxlength="1000" /><div class="search-icon"></div></div></div><div class="filter"></div><div class="results"></div>',ownerDocument:t.ownerDocument});b.positionDialog(e);var i,n,s,r=e.find("._tv-dialog-content").addClass("symbol-search-dialog"),l=r.find(".results"),a=r.find("input").get(0);if(t.initialValue&&(a.value=t.initialValue),"selectionStart"in a&&(a.selectionStart=a.selectionEnd=a.value.length),a.focus(),C())t.ignoreInterval||(n=N.getInputValueGetter(a),s=N.getInputValueSetter(a)),i=o.addSpreadActions(r.find(".spread-actions"),a,n,s);var h=new N({input:a,list:r.find(".results").get(0),callback:function(e,i){t.callback&&t.callback(e,i),b.destroy("Symbol Search")},onParse:i,ignoreInterval:t.ignoreInterval}),c=r.find(".filter");h.$filterContainer=c;var p=W(h,c),d=j(h);return p||d||c.attr("style","display: none"),K(h,c),b.resizeContent(e.height(),l),b.applyHandlers(e),b.positionDialog(e),e.on("destroy",(function(){TVSettings.setValue("symboledit.dialog_last_entry",a.value)})),e}},N.bindToInput=function(t,i){i=i||{},t=$(t).eq(0);var n,s=H(),r=t.prop("ownerDocument"),l=i.overlapManager||S(r),a=i.callback,h=null,c=null,d=!1,u=null;function g(){if(b.$filterContainer){var t=b.$filterContainer.find("#exchange-filter")
;t.length&&p.unmountComponentAtNode(t.get(0))}u&&(l.removeWindow(s),b.removeListWrapper(),u.off(),u.remove(),u=null,m.hide(),"function"==typeof i.onPopupClose&&i.onPopupClose())}function v(t){t.preventDefault()}var w,_,x=i.spreadActions&&$(i.spreadActions).eq(0);x&&x.size()&&C()&&(i.ignoreInterval||(w=N.getInputValueGetter(t.get(0)),_=N.getInputValueSetter(t.get(0))),n=o.addSpreadActions(x,t.get(0),w,_));var b=new N({input:t,onValueChanged:function(){if(!u){var t=l.ensureWindow(s,{position:"relative"}),n=function(t,e,i){var n=$('<div class="symbol-edit-popup">').appendTo(e),s=$('<div class="filter">').appendTo(n);t.$filterContainer=s,W(t,s),j(t),K(t,s);var o=$('<div class="table-wrapper">').appendTo(n),r=$(t._inputElement),l=r.offset();if("relative"===i)var a=n.offset(),h=Math.min(0,$(window).width()-a.left-n.outerWidth()),c=1;else h=Math.max(0,Math.min(l.left,$(window).width()-n.outerWidth())),c=l.top+r.outerHeight()+1;n.css("left",h),n.css("top",c);var p=s.outerHeight(),d=$(window).scrollTop(),f=r.height(),u=(TradingView.isMobile.any()?parseInt(window.screen.height,10):parseInt($(window).height(),10))-(l.top-d)-f/2;return o.css("maxHeight",u-f-p+"px"),{popup:n,listWrapper:o}}(b,t,i.position);u=n.popup,b.bindListWrapper(n.listWrapper),u.on("focus",v),u.on("click",v),u.on("mousedown",v),u.on("focus","*",v),u.on("click","*",v),u.on("mousedown","*",v),"function"==typeof i.onPopupOpen&&i.onPopupOpen(n.popup)}if(e.enabled("charting_library_base")){var o=this._state;if(o.keepListFor)if(o.highlightedItem){var r=o.highlightedItem,a=this._getInputValue();e.enabled("uppercase_instrument_names")&&(a=a.toUpperCase()),r.symbol!==a&&delete this._state.keepListFor}else delete this._state.keepListFor}},callback:function(e,n){g(),"function"==typeof c&&c(e,n)||("function"==typeof a&&a(e,n),"function"==typeof h&&h(e,n)),i.clearAfterAccept&&t.val(""),i.keepFocus?t.get(0).focus():t.get(0).blur(),b.resetState()},hidePro:i.hidePro,autoFocus:i.autoFocus,onEmptyApply:i.onEmptyApply,onParse:n,acceptEmpty:i.acceptEmpty,dontUseInputParser:i.dontUseInputParser,allowMultipleSymbols:i.allowMultipleSymbols,ignoreInterval:i.ignoreInterval}),z=!1,E=!0;function I(e){M(t,e),b.resetState()}if(TradingView.isMobile.iOS()&&$("body").css("cursor","pointer"),t.on("focus",(function(e,i){z=!0,d=!0,b._skipAutoFocus?delete b._skipAutoFocus:setTimeout((function(){z&&t.get(0).select()}),0)})),t.on("blur",(function(e){var i,n,s,o=this;if(u&&(i=document.activeElement,n=u.is(i),s=u.has(i).length>0,(-1!==navigator.userAgent.indexOf("Trident")||-1!==navigator.userAgent.indexOf("MSIE"))&&(n||s)))return e.preventDefault(),e.stopImmediatePropagation(),void setTimeout((function(){t.focus()}),0);if(TradingView.isMobile.iOS()&&E&&(E=!1,z=!0),TradingView.isMobile.iOS()&&z&&null===e.relatedTarget){var r=function(t){$(t.target).closest(u).length||($(o).is($(t.target))?$(document).off("touchend","body",r):(z=!1,setTimeout((function(){g(),$(document).off("touchend","body",r)}),0)))};$(document).on("touchend","body",r)}else z=!1;setTimeout((function(){z||g()}),0)})),
i.syncWithChartWidget){I(!0),f.seriesShortSymbol.subscribe((function(){I(!0)})),h=function(t,e){d=!(t||e),t&&f.symbol.setValue(t),e&&T(e)},c=k,i.syncOnBlur&&t.on("blur",(function(){d&&(I(!0),d=!1)}));var V=function(){t.get(0).blur(),I(!1)};t.on("keypress",(function(t){t.keyCode===y.ESC&&V()})),t.on("keydown",(function(t){t.keyCode===y.ESC&&V()}))}return b},Q.isRoot=function(t){return!(!t||!Array.isArray(t.contracts))},Q.itemTicker=function(t){var e=Q.isRoot(t);return(t.ticker||t.full_name)+(e?"___root":"")},Q.prototype.addRoot=function(t,e){this._currentTbody=null;var i=document.createElement("tbody");this._container.appendChild(i);var n=this;e.addEventListener("click",(function(i){i.preventDefault(),e.classList.contains("collapsed")?n.expand(t):n.collapse(t)})),e.setAttribute("data-root",t),i.appendChild(e),this._roots[t]={titleRow:e,tbody:i}},Q.prototype.append=function(t){var e=null,i=null;if(Q.isRoot(t)){var n=t.symbol,s=(t.exchange||"unknown")+"_"+n;e=N.createSuggestListRow(t,this._tickerRegExp,this._translationCache,{nameContent:"<div>"+n+"</div>",typeContent:A(this._translationCache,t.type)+(t.exchange&&" - "+F(t)),addClass:"group-title"}),this._roots[s]||this.addRoot(s,e);for(var o,r,l=0;l<t.contracts.length;++l)o=t.contracts[l],r=N.createSuggestListRow(o,this._tickerRegExp,this._translationCache),i=o.ticker||o.full_name,this._itemsByTicker[i]=o,r.setAttribute("data-item-ticker",i),this._roots[s].tbody.appendChild(r)}else this._currentTbody||(this._currentTbody=document.createElement("tbody"),this._container.appendChild(this._currentTbody)),e=N.createSuggestListRow(t,this._tickerRegExp,this._translationCache),this._currentTbody.appendChild(e);i=Q.itemTicker(t),this._itemsByTicker[i]=t,e.setAttribute("data-item-ticker",i)},Q.prototype.toggleCollapsed=function(t,e){if(t){var i=this._roots[t];i&&($(i.titleRow).toggleClass("collapsed",!!e),$(i.tbody).find("tr:not(.group-title)").toggleClass("hidden",!!e))}else for(var t in this._roots)this.toggleCollapsed(t,e)},Q.prototype.collapse=function(t){this.toggleCollapsed(t,!0)},Q.prototype.expand=function(t){this.toggleCollapsed(t,!1)},Q.prototype.getItemByTicker=function(t){return this._itemsByTicker[t]||null},N.GroupListHandler=Q,N.detachInterval=function(t){var e=/,[^,]*$/i.exec(t)||[];if(e[0])return{rest:t.substr(0,t.length-e[0].length),detached:e[0]}},q="",X=null,N.resetStoredInterval=function(){q="",X=null},N.detachStoreInterval=function(t){var e=N.detachInterval(t);return e?(q=e.detached,X=z.normalize(q),e.rest):(N.resetStoredInterval(),t)},N.recallAttachInterval=function(t){return t+q},N.getInterval=function(t){var e=X;return!0===t&&N.resetStoredInterval(),e},N.getInputValueGetter=function(t){return function(){return N.detachStoreInterval(t.value)}},N.getInputValueSetter=function(t){return function(e){t.value=N.recallAttachInterval(e)}},N.intervalError=function(){return!(!q||/^,\s*$/.test(q)||X)};var J=n.Model.extend({defaults:{database_code:null,name:null},getName:function(){return 0===this.get("database_code").length?this.get("name"):this.get("database_code")
},getDesc:function(){return 0===this.get("database_code").length?this.get("name"):this.get("database_code")+" - "+this.get("name")}}),Y=function(){},Z=new(n.Collection.extend({url:"https://www.quandl.com/api/v3/databases.json",model:J,initialize:function(t){this.next_page=1,this.prev_page=null},parse:function(t){return this.next_page=t.meta.next_page,this.prev_page=t.meta.prev_page,s.where(t.databases,{premium:!1})},loadMore:function(){if(null==this.next_page)throw new Y("No bliny left.");return this.fetch({remove:!1,data:{page:this.next_page}})}})),tt=new J({database_code:"",name:"All providers",id:0});function et(t,e){this.databases=t,this.filter=e,this.request=null,this.start=0,this.renderCount=100}function it(t){this.model=t}return et.prototype.renderItem=function(t){var e=t.get("database_code"),i=t.getName(),n=t.getDesc(),s=$("<option>").addClass("filter-item").attr("value",e).text(i).data("custom-option-text",n).appendTo(this.$providerSelect);e===this.filter.getValue()&&s.attr("selected",!0)},et.prototype.renderListTip=function(){var t=this,e=[tt];""!==this.filter.getValue()&&e.push(this.filter.model),s.each(e,(function(e){t.renderItem(e)})),this.$providerSelect.selectbox("refresh",this.start),this.start+=e.length},et.prototype.renderList=function(){var t=this,e=this.databases.slice(this.start,this.start+this.renderCount);s.each(e,(function(e){e.get("database_code")!==t.filter.getValue()&&t.renderItem(e)})),this.$providerSelect.selectbox("refresh",this.start),this.start+=e.length},et.prototype.showSpinner=function(){var t=this.$providerSelect.selectbox("option","sbOptions"),e=$('<li class="spinner-container">').appendTo(t);new v("medium").spin(e.get(0))},et.prototype.hideSpinner=function(){$(this.$providerSelect.selectbox("option","sbOptions")).find(".spinner-container").remove()},et.prototype.loadMore=function(){var t=this;if(!(this.request||this.start<this.databases.length))try{this.request=this.databases.loadMore(),this.showSpinner(),this.request.done(this.renderList.bind(this)).always((function(){t.$providerSelect.selectbox("close").selectbox("open"),delete t.request,t.hideSpinner()}))}catch(e){if(!(e instanceof Y))throw e}},et.prototype.makeQuandlFilter=function(t,e){var i=$('<div id="quandl-filter" class="exchange-filter">').appendTo(e);this.$providerSelect=$("<select>").appendTo(i),this.$providerSelect.selectbox({speed:0,classHolder:"tv-unstyled-select-container tv-symbol-select",classOptions:"sbOptions tv-quandl-select",onOpen:this.onOpen.bind(this)});var n=this.$providerSelect.selectbox("option","sbOptions");this.addScrollListener(n),this.renderListTip(),this.renderList(),this.addChangeListener(t)},et.prototype.onOpen=function(){0===Z.length&&this.loadMore()},et.prototype.addScrollListener=function(t){var e=this,i=0;t.scroll((function(t){var n=$(this).scrollTop();n>i&&n>$(this).get(0).scrollHeight-$(this).height()-20&&(e.renderList(),e.loadMore()),i=n}))},et.prototype.addChangeListener=function(t){var e=this;this.$providerSelect.change((function(){var i=$(this).val()||""
;e.filter.model=""===i?tt:e.databases.findWhere({database_code:i}),e.filter.save(),t._onSelectionChanged()}))},it.prototype.getValue=function(){return this.model.get("database_code")},it.prototype.load=function(){var t=TVSettings.getJSON("symboledit.quandlprovider");return t&&(this.model=new J(t)),this.model},it.prototype.save=function(){TVSettings.setJSON("symboledit.quandlprovider",this.model)},N}();t.exports=B}).call(this,i("Kxc7"),i("q1z7"),i("F/us"))},nWCO:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><g fill="none"><path fill="#CE1126" d="M10.667 11H16V0h-5.333z"/><path fill="#F5F7FA" d="M5.333 11h5.333V0H5.333z"/><path fill="#006847" d="M0 11h5.333V0H0z"/><g transform="translate(6 3)"><path stroke="#8C9157" stroke-linecap="round" stroke-width=".933" d="M.222 2.222c0 .657.357 1.231.887 1.539m1.848-.04c.493-.316.82-.87.82-1.499"/><ellipse fill="#C59262" cx="2" cy="1.778" rx=".889" ry="1.333"/></g></g></svg>'},nndf:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 10" width="16" height="10"><path fill="#758696" d="M0 0v10h2.5V6H6V4H2.5V2H6V0H0zm12.64 4.4L15.5 0H13l-1.56 2.4L10 0H7l2.88 4.8L6.5 10H9l2.08-3.2L13 10h3l-3.36-5.6z"/></svg>'},oifD:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><g><path fill="#DE2910" d="M0 0h16v11H0z"/><path fill="#FFF" d="M8.77 1.506C6.4 1.342 5.3 4.56 7.78 5.61c-.55-.432-.407-1.246.275-1.552.408-.187.745-.947.44-1.424-.275-.423-.205-.885.274-1.128zM7.42 2.79l.188.172.235-.094-.102.235.158.204-.25-.03-.142.218-.047-.26-.252-.06.227-.127-.023-.258h.008zm-3.247.603c-.887 2.2 1.843 4.244 3.607 2.216-.572.39-1.31 0-1.388-.737-.055-.447-.674-1.002-1.223-.86-.496.132-.91-.08-.997-.612v-.007zm5.584.18c-.95.04-1.86.697-1.977 2.036.236-.65 1.06-.776 1.56-.22.307.336 1.138.414 1.49-.024.323-.39.786-.47 1.17-.086a2.203 2.203 0 0 0-2.243-1.7v-.007zm.157.728l.188.18.243-.093-.102.235.157.196-.25-.03-.142.218-.055-.25-.25-.063.234-.133-.023-.26zM5.2 4.694l.188.18.236-.094-.102.234.164.195-.26-.024-.14.22-.047-.26-.252-.062.228-.125L5.2 4.7v-.007zm3.06.837c-.16.013-.317.04-.472.08.683.014 1.06.758.683 1.408-.22.392-.046 1.206.487 1.41.47.18.682.594.44 1.072 1.88-1.174 1.12-4.11-1.146-3.97h.01zm-.48.08c.19.656-.4 1.236-1.13 1.087-.446-.094-1.176.33-1.2.893-.03.5-.352.837-.885.75C6.385 9.86 9.17 7.904 7.78 5.6v.01zm1.46 1.533l.195.18.236-.094-.1.234.155.196-.25-.03-.142.218-.047-.25-.25-.063.227-.125-.024-.26v-.007zm-2.91.243l.188.18.235-.094-.102.235.166.196-.26-.032-.132.22-.055-.258-.252-.062.227-.126-.016-.258z"/></g></svg>'},p75f:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#df0000" d="M0 0h16v11H0z"/><path fill="#fff" d="M0 4h16v3H0z"/></svg>'},qdOW:function(t,e,i){"use strict";var n,s=i("Kxc7"),o=i("P7QH");n=function(t,e){var i=new RegExp("country-([a-z*_]+)","i"),n=o.supportedFlags().filter((function(t){return"forex"!==t&&"bitcoin"!==t&&"crypto"!==t
})).sort(),s=["forex","country-usa","country-canada","country-ae","country-uk","country-europe","country-germany","country-ireland","country-italy","country-luxembourg","country-austria","country-norway","country-spain","country-poland","country-sweden","country-switzerland","country-turkey","country-israel","country-argentina","country-australia","country-brasil","country-mexico","country-peru","country-chile","country-colombia","country-new_zealand","country-brasil","country-india","country-japan","country-china","country-hong_kong","country-singapore","country-taiwan","country-russia","country-malaysia","country-bahrain","country-egypt","country-saudi_arabia","country-serbia","country-*","bitcoin","crypto"];e&&e.order&&(s=e.order);var r={};o.supportedFlags().forEach((function(t){r[t]=[]}));var l=[];function a(t){var e=r[t];e&&(l=l.concat(e.sort((function(t,e){return t.name.localeCompare(e.name)}))),delete r[t])}return t.forEach((function(t){t.flag&&r[t.flag].push(t),t.value||l.push(t)})),s.forEach((function(t){if("forex"===t||"bitcoin"===t||"crypto"===t)a(t);else{var e=i.exec(t),s=e&&e[1];"*"===s?n.forEach((function(t){a(t)})):a(s)}})),Object.keys(r).forEach((function(t){a(t)})),l},t.exports.displayedExchangesFilter=function(t){return s.enabled("symbol_search_limited_exchanges")&&(t=t.filter((function(t){return!("bitcoin"===t.flag||"crypto"===t.flag||t.hideInSymbolSearch)}))),t},t.exports.sortExchangesListByFlagIfNeeded=function(t){return s.enabled("symbol_search_flags")&&(t=n(t)),t}},qxQg:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#3f4a56" d="m0 7h16v4H0z"/><path fill="#57a863" d="m0 0h16v3H0z"/><path fill="#f5f7fa" d="m0 3h16v5H0z"/><path fill="#ed5565" d="m0 0h4v11H0z"/></svg>'},sZhh:function(t,e,i){"use strict";var n=i("56W2");i("Gs9W"),function(t,e){function i(){this._state=[],this._defaults={classHolder:"sbHolder",classHolderDisabled:"sbHolderDisabled",classHolderOpen:"sbHolderOpen",classSelector:"sbSelector",classOptions:"sbOptions",classGroup:"sbGroup",classSub:"sbSub",classDisabled:"sbDisabled",classToggleOpen:"sbToggleOpen",classToggle:"sbToggle",classSeparator:"sbSeparator",useCustomPrependWithSelector:"",customPrependSelectorClass:"",speed:200,slidesUp:!1,effect:"slide",onChange:null,beforeOpen:null,onOpen:null,onClose:null}}function s(e,i,n,s){function o(){i.removeClass(e.settings.customPrependSelectorClass),e._lastSelectorPrepend&&(e._lastSelectorPrepend.remove(),delete e._lastSelectorPrepend),n.data("custom-option-prepend")&&(e.settings.customPrependSelectorClass&&i.addClass(e.settings.customPrependSelectorClass),e._lastSelectorPrepend=t(n.data("custom-option-prepend")).clone(),i[e.settings.useCustomPrependWithSelector](e._lastSelectorPrepend))}e.settings.useCustomPrependWithSelector&&(s?e._onAttachCallback=o:o())}t.extend(i.prototype,{_refreshSelectbox:function(t,e){if(!t)return!1;var i=this._getInst(t);return null!=i&&(this._fillList(t,i,e),!0)},_isOpenSelectbox:function(t){return!!t&&this._getInst(t).isOpen},
_isDisabledSelectbox:function(t){return!!t&&this._getInst(t).isDisabled},_attachSelectbox:function(e,i){if(this._getInst(e))return!1;var s,o,r,l,a=t(e),h=this,c=h._newInst(a);a.find("optgroup"),a.find("option").length;function p(){var e,i=this.attr("id").split("_")[1];for(e in h._state)e!==i&&h._state.hasOwnProperty(e)&&t(":input[sb='"+e+"']")[0]&&h._closeSelectbox(t(":input[sb='"+e+"']")[0])}a.attr("sb",c.uid),t.extend(c.settings,h._defaults,i),h._state[c.uid]=!1,a.hide(),s=t("<div>",{id:"sbHolder_"+c.uid,class:c.settings.classHolder});var d=a.data("selectbox-css");function f(i){a.children().each((function(n){var s;if(t(this).is(":selected")){if(38==i&&n>0)return s=t(a.children()[n-1]),h._changeSelectbox(e,s.val(),s.text()),!1;if(40==i&&n<a.children().length-1)return s=t(a.children()[n+1]),h._changeSelectbox(e,s.val(),s.text()),!1}}))}d&&s.css(d),o=t("<a>",{id:"sbSelector_"+c.uid,href:"#",class:c.settings.classSelector,click:function(i){i.preventDefault(),i.stopPropagation(),p.apply(t(this),[]);var n=t(this).attr("id").split("_")[1];h._state[n]?h._closeSelectbox(e):(h._openSelectbox(e),r.focus())},keyup:function(t){f(t.keyCode)}}),r=t("<a>",{id:"sbToggle_"+c.uid,href:"#",class:c.settings.classToggle,click:function(i){i.preventDefault(),i.stopPropagation(),p.apply(t(this),[]);var n=t(this).attr("id").split("_")[1];h._state[n]?h._closeSelectbox(e):(h._openSelectbox(e),r.focus())},keyup:function(t){f(t.keyCode)}}),t('<div class="tv-caret"></div>').appendTo(r),r.appendTo(s),l=t("<ul>",{id:"sbOptions_"+c.uid,class:c.settings.classOptions,css:{display:"none"}}),c.sbOptions=l,c.sbToggle=r,c.sbSelector=o,this._fillList(e,c),t.data(e,"selectbox",c),o.appendTo(s),l.appendTo(s),s.insertAfter(a),c._onAttachCallback&&(c._onAttachCallback(),delete c._onAttachCallback),a.is(":disabled")&&t.selectbox._disableSelectbox(e),a.change((function(){var i=t(this).val(),s=a.find("option[value='"+n(i)+"']").text();h._changeSelectbox(e,i,s)}))},_detachSelectbox:function(e){var i=this._getInst(e);if(!i)return!1;t("#sbHolder_"+i.uid).remove(),delete this._state[i.uid],t.data(e,"selectbox",null),t(e).show()},_changeSelectbox:function(e,i,o){var r=t(e.ownerDocument),l=this._getInst(e),a=this._get(l,"onChange");if(!(r.find("#sbSelector_"+l.uid).text()===o&&r.find("#sbOptions_"+l.uid).find('a[rel="'+i+'"]').hasClass("active"))){var h=t(e).find("option[value='"+n(i)+"']"),c=r.find("#sbSelector_"+l.uid);c.text(o),s(l,c,h),r.find("#sbOptions_"+l.uid).find(".active").removeClass("active"),r.find("#sbOptions_"+l.uid).find('a[rel="'+i+'"]').addClass("active"),t(e).find("option").attr("selected",!1),h.attr("selected",!0),a?a.apply(l.input?l.input[0]:null,[i,l]):l.input&&l.input.trigger("change")}},_enableSelectbox:function(e){var i=this._getInst(e);if(!i||!i.isDisabled)return!1;t(e.ownerDocument).find("#sbHolder_"+i.uid).removeClass(i.settings.classHolderDisabled),i.isDisabled=!1,t.data(e,"selectbox",i)},_disableSelectbox:function(e){var i=this._getInst(e);if(!i||i.isDisabled)return!1
;t(e.ownerDocument).find("#sbHolder_"+i.uid).addClass(i.settings.classHolderDisabled),i.isDisabled=!0,t.data(e,"selectbox",i)},_optionSelectbox:function(e,i,n){var s=this._getInst(e);return!!s&&(null==n?s[i]:(s[i]=n,void t.data(e,"selectbox",s)))},_openSelectbox:function(e){var i=this._getInst(e),n=this;if(i&&!i.isOpen&&!i.isDisabled){var s=t(e.ownerDocument),o=t(e.ownerDocument.defaultView),r=s.find("#sbOptions_"+i.uid),l=parseInt(o.height(),10),a=parseInt(o.width(),10),h=s.find("#sbHolder_"+i.uid).offset(),c=o.scrollTop(),p=r.prev().height(),d=l-(h.top-c)-p/2,f=this._get(i,"onOpen"),u=this._get(i,"beforeOpen"),g=null;u&&(g=u()),"object"==typeof g&&null!==g?r.css(g):(d>50&&!i.settings.slidesUp?r.css({bottom:"auto",top:p+2+"px",maxHeight:d-p+"px"}):r.css({top:"auto",bottom:p+2+"px",maxHeight:h.top-c-p/2+"px"}),h.left+r.width()>a?r.css("left","-"+(r.width()-r.parent().width()+3)+"px"):r.css("left","-1px")),"fade"===i.settings.effect?r.fadeIn(i.settings.speed):r.slideDown(i.settings.speed),s.find("#sbToggle_"+i.uid).addClass(i.settings.classToggleOpen),s.find("#sbHolder_"+i.uid).addClass(i.settings.classHolderOpen),this._state[i.uid]=!0,i.isOpen=!0,f&&f.apply(i.input?i.input[0]:null,[i]),t.data(e,"selectbox",i),s.unbind("click.sbClose").one("click.sbClose",(function(){n._closeSelectbox(e)}))}},_closeSelectbox:function(e){var i=this._getInst(e);if(i&&i.isOpen){var n=t(e.ownerDocument),s=this._get(i,"onClose");n.find("#sbOptions_"+i.uid).hide(),n.find("#sbToggle_"+i.uid).removeClass(i.settings.classToggleOpen),n.find("#sbHolder_"+i.uid).removeClass(i.settings.classHolderOpen),this._state[i.uid]=!1,i.isOpen=!1,s&&s.apply(i.input?i.input[0]:null,[i]),t.data(e,"selectbox",i),n.unbind("click.sbClose")}},_newInst:function(t){return{id:t[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:t,uid:Math.floor(99999999*Math.random()),isOpen:!1,isDisabled:!1,isSelected:!1,settings:{}}},_getInst:function(e){try{return t.data(e,"selectbox")}catch(i){throw"Missing instance data for this selectbox"}},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_getOptions:function(e,i,n,o,r){var l=!(!arguments[1]||!arguments[1].sub),a=!(!arguments[1]||!arguments[1].disabled),h=this;arguments[0].each((function(e){var i,c=t(this),p=t("<li>");c.is(":selected")&&(n.sbSelector.text(c.text()),s(n,n.sbSelector,c,!0),n.isSelected=!0),e===o-1&&p.addClass("last"),function(){var e=c.text(),s=c.data("custom-option-text"),o=void 0!==s?s:e;"__separator__"===c.val()?(i=t("<span>").addClass(n.settings.classSeparator)).appendTo(p):c.is(":disabled")||a?(i=t("<span>",{text:o}).addClass(n.settings.classDisabled),l&&i.addClass(n.settings.classSub),i.appendTo(p)):(i=t("<a>",{href:"#"+c.val(),rel:c.val(),text:o,class:"filter",click:function(i){i.preventDefault();var s=n.sbToggle;s.attr("id").split("_")[1];h._closeSelectbox(r),h._changeSelectbox(r,t(this).attr("rel"),e),s.focus()}}),c.is(":selected")&&i.addClass("active"),l&&i.addClass(n.settings.classSub),i.appendTo(p));var d=c.data("custom-option-prepend");d&&i.prepend(d)}(),
p.addClass(c.attr("class")),p.appendTo(n.sbOptions)}))},_fillList:function(e,i,n){var o=this,r=t(e),l=(r.find("optgroup"),r.find("option")),a=l.length;n||(n=0),r.children().slice(n).each((function(n){var s,r=t(this),l={};r.is("option")?o._getOptions(r,null,i,a,e):r.is("optgroup")&&(s=t("<li>"),t("<span>",{text:r.attr("label")}).addClass(i.settings.classGroup).appendTo(s),s.appendTo(i.sbOptions),r.is(":disabled")&&(l.disabled=!0),l.sub=!0,o._getOptions(r.find("option"),l,i,a,e))})),i.isSelected||(i.sbSelector.text(l.first().text()),s(i,i.sbSelector,l.first(),!0),i.isSelected=!0)}}),t.fn.selectbox=function(e){var i=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&"isDisabled"==e||"option"==e&&2==arguments.length&&"string"==typeof arguments[1]?t.selectbox["_"+e+"Selectbox"].apply(t.selectbox,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.selectbox["_"+e+"Selectbox"].apply(t.selectbox,[this].concat(i)):t.selectbox._attachSelectbox(this,e)}))},t.selectbox=new i,t.selectbox.version="0.1.3"}(jQuery)},si6p:function(t,e,i){var n,s,o;s=[i("P5fv")],void 0===(o="function"==typeof(n=function(t){var e,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(t.event.fixHooks)for(var r=n.length;r;)t.event.fixHooks[n[--r]]=t.event.mouseHooks;var l=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=s.length;e;)this.addEventListener(s[--e],a,!1);else this.onmousewheel=a;t.data(this,"mousewheel-line-height",l.getLineHeight(this)),t.data(this,"mousewheel-page-height",l.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=s.length;e;)this.removeEventListener(s[--e],a,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function a(n){var s=n||window.event,r=o.call(arguments,1),a=0,p=0,d=0,f=0,u=0,g=0;if((n=t.event.fix(s)).type="mousewheel","detail"in s&&(d=-1*s.detail),"wheelDelta"in s&&(d=s.wheelDelta),"wheelDeltaY"in s&&(d=s.wheelDeltaY),"wheelDeltaX"in s&&(p=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(p=-1*d,d=0),a=0===d?p:d,"deltaY"in s&&(a=d=-1*s.deltaY),"deltaX"in s&&(p=s.deltaX,0===d&&(a=-1*p)),0!==d||0!==p){if(1===s.deltaMode){var v=t.data(this,"mousewheel-line-height");a*=v,d*=v,p*=v}else if(2===s.deltaMode){var m=t.data(this,"mousewheel-page-height");a*=m,d*=m,p*=m}if(f=Math.max(Math.abs(d),Math.abs(p)),(!i||f<i)&&(i=f,c(s,f)&&(i/=40)),c(s,f)&&(a/=40,p/=40,d/=40),a=Math[a>=1?"floor":"ceil"](a/i),p=Math[p>=1?"floor":"ceil"](p/i),d=Math[d>=1?"floor":"ceil"](d/i),l.settings.normalizeOffset&&this.getBoundingClientRect){
var w=this.getBoundingClientRect();u=n.clientX-w.left,g=n.clientY-w.top}return n.deltaX=p,n.deltaY=d,n.deltaFactor=i,n.offsetX=u,n.offsetY=g,n.deltaMode=0,r.unshift(n,a,p,d),e&&clearTimeout(e),e=setTimeout(h,200),(t.event.dispatch||t.event.handle).apply(this,r)}}function h(){i=null}function c(t,e){return l.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})?n.apply(e,s):n)||(t.exports=o)},tBbC:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path d="M0 0h16v11H0z" id="a"/></defs><g fill="none"><mask fill="#fff" id="b"><use xlink:href="#a"/></mask><use fill="#199D00" xlink:href="#a"/><g mask="url(#b)"><path fill="#B22333" d="M4 11h12V0H4z"/><path fill="#F7F8FA" d="M0 0v11.014h7.666L5 11v-1h1V9H5V8h1V7H5V6h1V5H5V4h1V3H5V2h1V1H5V0l2.666-.014z"/></g></g></svg>'},u3ck:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11"><g fill="none"><path fill="#199D00" d="M0 0h16v11H0z"/><path fill="#4758A9" d="M6 7l-4 4h14V7z"/><path fill="#ED5565" d="M2 0h14v4H6z"/><path fill="#FFF" d="M0 2.444V0h4l3 3h9v5H8s-.969-.031-1 0l-3 3H0V2.444z"/><path fill="#57A863" d="M0 2V0h2l4 4h10v3H6l-4 4H0V9l3.5-3.5z"/><path fill="#FC0" d="M0 10l4.5-4.5L0 1z"/><path fill="#3F4A56" d="M0 8l2.5-2.5L0 3z"/></g></svg>'},viwS:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path d="M0 0h16v11H0z" id="a"/></defs><g fill="none"><path fill="#199D00" d="M0 0h16v11H0z"/><mask fill="#fff" id="b"><use xlink:href="#a"/></mask><g mask="url(#b)"><path fill="#FFF" d="M0 7h16v4H0z"/><path fill="#0051BB" d="M0 3h16v4H0z"/><path fill="#F00" d="M0 0h16v4H0z"/><path fill="#338AF3" d="M4 4V3H3v1zM6 4V3H5v1z"/><path fill="#0052B4" d="M5 4H4V3l.492-.5L5 3z"/><path fill="#D0021B" d="M3 4h1v1H3z"/><path fill="#FFF" d="M3 5h1v1H3zM4 6h1v1H4zM4 4h1v1H4zM5 5h1v1H5z"/><path fill="#D0021B" d="M5 4h1v1H5zM4 5h1v1H4zM3 6h1v1H3zM5 6h1v1H5zM4 7h1v1H4z"/></g></g></svg>'},w3Pp:function(t,e,i){"use strict";i.r(e),i.d(e,"marketType",(function(){return r}));i("YFKU"),i("HbRj");var n=new Map,s={context:"market_type"},o={cfd:window.t("cfd",s),bitcoin:window.t("crypto",s),crypto:window.t("crypto",s),dr:window.t("dr",s),forex:window.t("forex",s),futures:window.t("futures",s),index:window.t("index",s),stock:window.t("stock",s)};function r(t,e){var i=t+"_"+e,r=n.get(i);if(void 0!==r)return r;var l=e?window.t("{market_type} cfd",s).format({market_type:t}):o[t]||t;return n.set(i,l),l}},wlsa:function(t,e){
t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#e30a17" d="M0 0h16v11H0z"/><path fill="#fff" d="M5.1 2a3.5 3.5 0 0 0-3.5 3.5A3.5 3.5 0 0 0 5.1 9a3.5 3.5 0 0 0 2.79-1.393A2.9 2.9 0 0 1 5.9 8.4 2.9 2.9 0 0 1 3 5.5a2.9 2.9 0 0 1 2.9-2.9 2.9 2.9 0 0 1 2 .804A3.5 3.5 0 0 0 5.1 2zM7.9 5.5l1.155-.373-.002-1.214.71.984 1.155-.378-.716.98.716.98-1.154-.377-.71.984V5.873z"/></svg>'},wmOI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.LEFT_ARROW=37,e.UP_ARROW=38,e.RIGHT_ARROW=39,e.DOWN_ARROW=40,e.ENTER=13,e.ESC=27,e.SPACE=32,e.SLASH=47},xjTg:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="11" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path d="M0 0h16v11H0z" id="a"/></defs><g fill="none"><mask fill="#fff" id="b"><use xlink:href="#a"/></mask><use fill="#199D00" xlink:href="#a"/><g mask="url(#b)"><path fill="#E10011" d="M4 11h12V0H4z"/><path fill="#F7F8FA" d="M0 0v11.014h7.666L5 11v-1h1V9H5V8h1V7H5V6h1V5H5V4h1V3H5V2h1V1H5V0l2.666-.014z"/></g></g></svg>'},z00z:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#c60c30" d="M9.27 2.782c-1.502-.7-3.287-.05-3.987 1.45-.35.752-.15 2.19.6 2.54l4.88-.1c.63-1.487-.03-3.207-1.493-3.89z"/><path fill="#003478" d="M6.73 8.218a3 3 0 0 0 3.987-1.45 1.5 1.5 0 0 0-.725-1.994 1.5 1.5 0 0 0-1.994.725 1.5 1.5 0 0 1-1.993.725 1.5 1.5 0 0 1-.767-1.896A3 3 0 0 0 6.73 8.217z"/><path fill-opacity=".5" d="M3.1 7.2l2 2-.8.8-2-2zM11.7 1l2 2-.8.8-2-2zM12.9 7.2l-2 2 .8.8 2-2zM4.3 1l-2 2 .8.8 2-2z"/><path fill-opacity=".15" d="M0 0v11h16V0zm.5.5l15 .1v9.9H.5z" class="flag-shade"/></svg>'},z9tB:function(t,e){t.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 11" width="16" height="11"><path fill="#fff" d="M0 0h16v11H0z"/><path fill="#b22234" d="M0 0v1h16V0H0zm0 2v1h16V2H0zm0 2v1h16V4H0zm0 2v1h16V6H0zm0 2v1h16V8H0zm0 2v1h16v-1H0z"/><path fill="#3c3b6e" d="M0 0h9v7H0z"/><path fill="#fff" d="M1 1v1h1V1H1zm2 0v1h1V1H3zm2 0v1h1V1H5zm2 0v1h1V1H7zM2 3v1h1V3H2zm2 0v1h1V3H4zm2 0v1h1V3H6zM1 5v1h1V5H1zm2 0v1h1V5H3zm2 0v1h1V5H5zm2 0v1h1V5H7z"/></svg>'},zns4:function(t,e,i){"use strict";i.r(e),i.d(e,"isFxmCfdSymbol",(function(){return s}));var n=["FX:AUS200","FX:BUND","FX:COPPER","FX:ESP35","FX:EUSTX50","FX:FRA40","FX:GER30","FX:HKG33","FX:JPN225","FX:NAS100","FX:NGAS","FX:SPX500","FX:UK100","FX:UKOIL","FX:US30","FX:USOIL","FX:XAGUSD","FX:XAUUSD"];function s(t){return-1===t.indexOf(":")&&(t="FX:"+t),-1!==n.indexOf(t)}}}]);