From c7e18453cc557e966c1bf4dd4daa8563af419005 Mon Sep 17 00:00:00 2001 From: Yevhenii Molodyi Date: Thu, 26 Dec 2024 12:03:08 +0200 Subject: [PATCH] Improve details --- app/av-dialogs_60dc809321826d8b81ee.js | 1 + app/erc_4f3e407bbeaed81d8bab.js | 2 -- app/erc_d182f666990be07c8829.js | 2 ++ ...js.LICENSE.txt => erc_d182f666990be07c8829.js.LICENSE.txt} | 0 app/modal-dialogs_eca4ff64baba074fce5f.js | 1 + app/runtime_74b54385db326f9fffa3.js | 1 - app/runtime_9ea20ebdd15d6d0d1ac9.js | 1 + app/un-dialogs_63faf85441ac911c8aa7.js | 1 + data/build.json | 2 +- data/stock-markets/source-menu.json | 2 +- index.html | 4 ++-- js/components/AppErc.js | 2 +- src/components/AppErc.jsx | 2 +- 13 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 app/av-dialogs_60dc809321826d8b81ee.js delete mode 100644 app/erc_4f3e407bbeaed81d8bab.js create mode 100644 app/erc_d182f666990be07c8829.js rename app/{erc_4f3e407bbeaed81d8bab.js.LICENSE.txt => erc_d182f666990be07c8829.js.LICENSE.txt} (100%) create mode 100644 app/modal-dialogs_eca4ff64baba074fce5f.js delete mode 100644 app/runtime_74b54385db326f9fffa3.js create mode 100644 app/runtime_9ea20ebdd15d6d0d1ac9.js create mode 100644 app/un-dialogs_63faf85441ac911c8aa7.js diff --git a/app/av-dialogs_60dc809321826d8b81ee.js b/app/av-dialogs_60dc809321826d8b81ee.js new file mode 100644 index 0000000000..153888bfa6 --- /dev/null +++ b/app/av-dialogs_60dc809321826d8b81ee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb_app_erc=self.webpackChunkweb_app_erc||[]).push([[78],{7864:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ot});var a=o(4031),r=o(784),n=o(9550),i=o(7294);const s="EOD",l=(e,t)=>{const{_itemKey:o,itemCaption:a}=t,{id:r,dataSource:s}=e,l=o||r,d=((e,t)=>{let{data:o}=e;const{_itemKey:a,dfFn:r,dfSubId:i,items:s,dataSource:l}=t;return"EOD"===r?{_itemKey:a,...(0,n.B0)(t),...(0,n.TU)(o),items:[...s||[]],dfFn:r,dfSubId:i,dataSource:l}:void 0})(e,t);return{id:l,key:l,itemCaption:a,itemConf:d,legend:(0,i.$)(),dataSource:s||"Alpha Vantage"}},d=(e,t)=>({zhConfig:l(e,t),valueMoving:(0,r.Y1)(e.data)}),c=(e,t)=>`${(0,a.kV)(e)}&symbol=${t}`,p=e=>{const{items:t,itemCaption:o,dfFn:a}=e,n=(0,r._W)(t[0]);return(0,r.kp)(e,{itemCaption:o.replace((0,r.Ps)(t[0]),n),dfItem:(0,r._W)(t[1]),dfPeriod:(0,r._W)(t[2])}),c(a,n)},u=e=>t=>{const{items:o}=t,n=(0,r._W)(o[0]);return`${(0,a.kV)(e)}&symbol=${n}`},h=(0,r.vL)({CR:e=>{const{items:t}=e,o=(0,r._W)(t[0]),n=(0,r._W)(t[1]);return(0,r.kp)(e,{itemCaption:`${o}/${n}`}),`${(0,a.kV)("DIGITAL_CURRENCY_DAILY")}&symbol=${o}&market=${n}`},[s]:e=>{const{items:t}=e,[o,a]=t,[n,i]=(0,r.a3)(o),[s,l]=(0,r.a3)(a),[d,p]=(e=>{const t=(e.split("&")[0]||"").replace("TIME_SERIES_",""),o=t.split("_").map((e=>(0,r.Ob)(e.toLowerCase()))).join(" ");return[t,o]})(s);return(0,r.kp)(e,{itemCaption:n,ticket:n,title:i,subtitle:l,dfT:d,interval:p}),c(s,n)},GL:()=>(0,a.kV)("TOP_GAINERS_LOSERS"),TIME_SERIES_INTRADAY:e=>{const{dfFn:t,items:o}=e,a=(0,r._W)(o[0]),n=(0,r._W)(o[1]),i=`${a} (${n})`;return(0,r.kp)(e,{ticket:a,interval:n,title:i,itemCaption:i}),`${c(t,a)}&interval=${n}`},INCOME_STATEMENT:p,BALANCE_SHEET:p,CASH_FLOW:p,EARNINGS:e=>{const{items:t,dfFn:o}=e,a=(0,r._W)(t[0]);return(0,r.kp)(e,{itemCaption:a,dfPeriod:(0,r._W)(t[1])}),c(o,a)},ETF_PROFILE:u("ETF_PROFILE"),OVERVIEW:u("OVERVIEW")},(e=>{let{ticket:t="MSFT",period:o=50,indicator:a="SMA"}=e;return`${c(a,t)}&interval=daily&time_period=${o}&series_type=close`})),m=(0,a.Ec)((e=>h(e.dfFn)));var A=o(9026),y=o(9270),S=o(4999),g=o(5248);const f=501,$="MACD",C="MACD_Signal",b="MACD_Hist",v="STOCH",_="SlowK",T="SlowD",w="BBANDS",E="Real Upper Band",D="Real Middle Band",k="Real Lower Band",I={color:(0,r.Jq)()},L={color:"#f44336"},F={color:"rgb(47, 126, 216)"},x={color:"#4caf50"},M=e=>"AD"===e?"Chaikin A/D":e,R=(e,t)=>{const{indicator:o,forDays:a=f}=t,r=e[`Technical Analysis: ${M(o)}`],n=r?Object.keys(r).sort().reverse():[],i=n.length;return{value:r,dateKeys:n,max:i{let o,a,n,i,s,{dateKeys:l,value:d,max:c}=e;const p=[],u=t.length;for(a=0;a-1;o--)for(n=l[o],i=(0,r.cY)(n),s=d[n],a=0;a{let{data:o,name:a}=e;return(0,r.kp)((0,g.wo)(),{data:o,name:a,type:"spline",visible:!0,marker:{symbol:"circle"}},t)},N=(0,r.vL)({[$]:(e,t)=>{const o=P(R(e,t),[$,C,b]),a=O({data:o[0],name:$},I()),n=O({data:o[1],name:C},L);return[(0,r.kp)((0,g.wo)(),{color:"rgba(47, 126, 216, 0.75)",data:o[2],name:b,type:"column",visible:!1,shadow:!1,borderWidth:0,pointPlacement:"on",pointPadding:0,groupPadding:0,turboThreshold:2e4}),n,a]},[v]:(e,t)=>{const o=P(R(e,t),[_,T]);return[O({data:o[0],name:_},F),O({data:o[1],name:T},L)]},[w]:(e,t)=>{const o=P(R(e,t),[D,E,k]);return[O({data:o[0],name:D},F),O({data:o[1],name:E},x),O({data:o[2],name:k},L)]}},((e,t)=>{const{indicator:o}=t,a=((e,t)=>{const{indicator:o}=t,a=M(o),{value:n,dateKeys:i,max:s}=R(e,t),l=[];let d,c,p=s;for(;p>-1;p--)d=i[p],c=parseFloat(n[d][a]),l.push([(0,r.cY)(d),c]);return l})(e,t);return O({data:a,name:o})})),j=(e,t)=>N(t.indicator)(e,t),W={crKey:e=>e.chartId=`${e.ticket}-${e.value}`,toConfig(e,t){return{config:(0,y.A)((0,S.Fh)(`${t.ticket}: ${t.value}`),(0,S.$J)(j(e,t)),(0,S.YT)({zhConfig:(o=t.chartId,{id:o,key:o,itemCaption:o,dataSource:"Alpha Vantage"})}),S.qP),isDrawDeltaExtrems:!1,isNotZoomToMinMax:!1};var o},toSeries:j};var V=o(5153),Y=o(5355);const K=(e,t)=>({y:0,exValue:.5,marker:{symbol:"circle",fillColor:e,lineColor:e,radius:6,states:{hover:{enable:!0,fillColor:Y.ud,lineColor:e,lineWidth:2,radius:6}}},dataLabels:{enabled:!0,inside:!0,color:e,style:{fill:e,stroke:e,color:e,fontSize:"12px",fontWeight:"normal",textShadow:"none",textOutline:"0px transparent"},crop:!1,overflow:"none",y:32,formatter:function(){return this.point[t]}}});var B=o(353);const G=e=>{const t=(0,r.QD)(e,"09:30:00")?"#90ed7d":(0,r.QD)(e,"16:00:00")?"#f7a35c":"";return t?{marker:{radius:3,enabled:!0,fillColor:o=t},color:o}:void 0;var o},H=Object.keys,q=(e,t,o)=>{const a=o["7. dividend amount"],r=a&&parseFloat(a);r&&e.push({...K(Y.U,"exValue"),x:t,exValue:r,price:parseFloat(o["5. adjusted close"])})},U="Time Series",Q=e=>{let{interval:t}=e;return"Daily Adjusted"===t?`${U} (Daily)`:(o=t,(0,r.QD)(o,"Weekly")||(0,r.QD)(o,"Monthly")?`${t} ${U}`:`${U} (${t})`);var o},z=(e,t)=>{const o=((e,t)=>e[Q(t)])(e,t),a=o?H(o).sort():[],n=[],i=[],s=[],l=[],d=[],c=[],p=[],{notFilterZero:u,isDividend:h,toUTC:m,pnClose:A,pnVolume:y}=(e=>{let{isFilterZero:t,dfT:o}=e;const a=(0,r.QD)(o,"ADJUSTED");return{notFilterZero:!t,isDividend:a,toUTC:r.CA,pnClose:a?"5. adjusted close":"4. close",pnVolume:a?"6. volume":"5. volume"}})(t);let S,g,f,$,C,b,v,_,T,w=0,E=a.length,D=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY;for(;w_&&(D=_),k<_&&(k=_));var I;return{dC:n,dH:i,dL:s,dO:l,dDividend:d,minClose:D,maxClose:k,dVc:c,dV:p}},Z={crKey:r.as,toConfig(e,t){const{_itemKey:o,title:a,subtitle:r,dataSource:n}=t,i=z(e,t),{dC:s,minClose:l,maxClose:c,dDividend:p}=i;return{config:(0,y.A)((0,V.Ux)(o,{...t,...i}),(0,S.Kl)(a,r),(0,S.YT)(d({id:o,data:s,dataSource:n},t)),(0,V.p3)(p,l,c),S.qP)}},toSeries:(e,t)=>(0,S.j7)({adapter:Z,type:"line",json:e,option:t})},J=Z,X={crUrl:(e,t)=>{let{apiKey:o=""}=t;return`https://www.alphavantage.co/query/search?function=SYMBOL_SEARCH&keywords=${e}&apikey=${o}`},crOptions:e=>{if(!e||!Array.isArray(e.bestMatches))throw new Error("Response format is not valid");return e.bestMatches.map((e=>({value:e["1. symbol"],name:e["2. name"],type:e["3. type"],region:e["4. region"],currency:e["8. currency"]})))}};var ee=o(9876);const te=(e,t)=>{let{dfItem:o,dfPeriod:r}=t;return(0,a.e)(o,"fiscalDateEnding","10")(e["A"===r?"annualReports":"quarterlyReports"])};let oe;const ae=()=>oe||(oe=(0,ee.e$)({crData:te})),re=(0,a.e)("reportedEPS","fiscalDateEnding","round"),ne=(e,t)=>{const{dfPeriod:o}=t;return re(e["A"===o?"annualEarnings":"quarterlyEarnings"])};let ie;const se=()=>ie||(ie=(0,ee.e$)({crData:ne}));var le=o(4668);const de="alp_perf",ce={paddingTop:6},pe=(e,t,o)=>({...o,name:e,pn:t}),ue=[pe("Ticker","id"),pe("Price","p"),pe("1d Amount","cha",{isHide:!0}),pe("1d %","chp",{isR:!0}),pe("Volume","v",{...(0,le.wQ)(),isF:!0})],he=(e,t,o)=>({...(0,le.wC)(e,t,[...ue],o,"Alpha Vantage"),dsStyle:ce}),me=e=>(0,r.W7)(parseFloat(e),2),Ae=e=>(0,r.Ep)(e)?e.map((e=>({id:e.ticker,p:me(e.price),cha:me(e.change_amount),chp:me((e.change_percentage||"").replace("%")),v:parseInt(e.volume,10)}))):[],ye={crKey:()=>de,toConfig(e,t){const o=de,a=e.last_updated||"",[r,n,i]=(e=>[Ae(e.top_gainers),Ae(e.top_losers),Ae(e.most_actively_traded)])(e);return{config:{id:o,zhCompType:"ALPHA_PERF",zhConfig:{id:o,key:o},g:he(`${o}_g`,`Gainers ${a}`,r),l:he(`${o}_l`,`Losers ${a}`,n),m:he(`${o}_m`,`Most Active Traded ${a}`,i)}}}};var Se=o(3851),ge=o(6327),fe=o(8849);const $e=(e,t)=>(e||{})[t]||"n/a",Ce=(0,Se.A)(((e,t)=>{const{holdings:o,asset_allocation:a}=e||{},n=(o||{}).map((e=>(0,ge.eb)(parseFloat(e.weight),e.symbol)),[]);return(0,r.Co)(a).forEach((e=>{if("domestic_equities"!==e){const t=parseFloat(a[e]);(0,r.F5)(t)&&n.push((0,ge.eb)(t,"foreign_equities"===e?"For. Eq.":(0,r.Ob)(e)))}})),t.subtitle=`${t.itemCaption}, Net Expense Ratio ${$e(e,"net_expense_ratio")}`,t.title=`Portfolio Turnover ${$e(e,"portfolio_turnover")}, Dividend Yield ${$e(e,"dividend_yield")}`,(0,fe._u)(n)}),((e,t)=>{let{itemCaption:o}=e;return`${(0,r.hE)(o)} ${(0,r.jq)($e(t,"net_assets"),"")}`}));var be=o(7222);const ve={lineHeight:1.5,fontWeight:"bold"},_e="Analyst",Te=_e+"Rating",we=(e,t)=>t[e]||"",Ee=(e,t,o)=>`${e} ${o[t+e]}`,De=(e,t)=>`${e} ${(0,r.jq)(t[e])}`,ke=e=>[`${De("RevenueTTM",e)}`,`${De("RevenuePerShareTTM",e)}`,`${De("EBITDA",e)}`,`${De("EPS",e)}`,`${De("DilutedEPSTTM",e)}`,`Q RevenueGrowthYOY ${we("QuarterlyRevenueGrowthYOY",e)}`,`Q EarningsGrowthYOY ${we("QuarterlyEarningsGrowthYOY",e)}`],Ie=e=>[`${Ee("StrongBuy",Te,e)}`,`${Ee("Buy",Te,e)}`,`${Ee("Hold",Te,e)}`,`${Ee("Sell",Te,e)}`,`${Ee("StrongSell",Te,e)}`],Le=e=>[`50D MA ${e("50DayMovingAverage")}`,`200D MA ${e("200DayMovingAverage")}`,`52W Low ${e("52WeekLow")}`,`52W High ${e("52WeekHigh")}`],Fe=(e,t)=>({caption:e,tokens:t}),xe={toConfig(e,t){const o=t._itemKey,a=(e=>t=>we(t,e))(e);return{config:{zhCompType:be.eB,id:o,caption:`${a("Symbol")} ${a("CIK")} ${a("Country")} ${a("Currency")} ${a("AssetType")}`,items:[{caption:`${a("Sector")}, ${a("Industry")}`,style:ve,descr:a("Description"),links:[{href:a("OfficialSite")}]},Fe(`${De("SharesOutstanding",e)}, ${a("LatestQuarter")}`,ke(e)),Fe(`${De("MarketCapitalization",e)}`,Le(a)),Fe(`Analyst ${Ee("TargetPrice",_e,e)}, Beta ${a("Beta")}`,Ie(e))],zhConfig:{key:o,id:o}}}}},Me={api:m,adapter:(0,A.GT)({rAdapter:{DF:W,I:J,SR:X,F:ae,E:se,GL:ye,EP:Ce,OV:xe},isKey:!0})};var Re=o(1315),Pe=o(4575),Oe=o(4867),Ne=o(6134),je=o(4250),We=o(3941),Ve=o(2569),Ye=o(5668),Ke=o(4848);const Be=Number.isNaN,Ge=e=>""===(e+"").trim(),He=e=>!Ge(e),qe=(e,t)=>o=>{if(Ge(o))return!0;const a=parseInt((o+"").trim(),10);return!Be(a)&&a>e&&a{switch(e){case"MACD":return"MACD(12, 24, 9)";case"STOCH":return"STOCH(5, 3, 3, SMA)";default:return`${e} (${t})`}},Ze=(0,Pe.A)((e=>{let{isShow:t,caption:o,oneURI:a,oneJsonProp:r,oneCaption:n,toTopLayer:i,onAbout:s,loadId:l,onLoad:d,onShow:c,onClose:p}=e;const[u,h]=(0,We.A)(s),[m,A]=(0,Oe.A)(),[y,S]=(0,Oe.A)(!0),g=(0,Ve.A)({toggleLabels:S,toggleOptions:A,onAbout:s}),f=(0,Re.li)(),$=(0,Re.li)(),C=(0,Re.li)(),[b,v,_]=(0,Ne.A)(!1),[T,w]=(0,je.A)(),E=(0,Re.hb)((()=>{const e=(0,Re.Ek)($)||30,t=(0,Re.Ek)(C)||501,o=(0,Re.Ek)(f),a=(w()||{}).value||"SMA";d({loadId:l,indicator:a,ticket:o,period:e,forDays:t,value:ze(a,e),hasSecondYAxis:(0,Re.ZC)(b)})}),[]);return(0,Ke.jsxs)(Ye.A.DraggableDialog,{isShow:t,caption:o,menuModel:h,toTopLayer:i,onLoad:E,onShow:c,onClose:p,children:[(0,Ke.jsx)(Ye.A.Toolbar,{isShow:u,buttons:g}),(0,Ke.jsx)(Ye.A.RowPattern,{refEl:f,isShowLabels:y,caption:"Stock",placeholder:"Nyse or Nasdaq Symbol",onTest:He,errorMsg:"Not Empty"}),(0,Ke.jsx)(Ye.A.SelectWithLoad,{isShow:t,isShowLabels:y,uri:a,jsonProp:r,caption:n,optionNames:"Items",placeholder:"Default: SMA (30)",onSelect:T}),(0,Ke.jsxs)(Ye.A.ShowHide,{isShow:m,children:[(0,Ke.jsx)(Ye.A.RowPattern,{ref:$,isShowLabels:y,caption:"Period",placeholder:"Default: 30",onTest:Ue,errorMsg:"Number in range 1-200"}),(0,Ke.jsx)(Ye.A.RowPattern,{ref:C,isShowLabels:y,caption:"For Days",placeholder:"Default: 501 (2 Years)",onTest:Qe,errorMsg:"Number in range 250-2500"})]}),(0,Ke.jsx)(Ye.A.RowCheckBox1,{caption:"Add Seria with Second YAxis",onCheck:v,onUnCheck:_})]})})),Je={width:310},Xe={paddingRight:16},et=(0,Pe.A)((e=>{let{isShow:t,caption:o,toTopLayer:a,onAbout:r,loadId:n,onLoad:i,onShow:s,onClose:l}=e;const[d,c]=(0,We.A)(r),p=(0,Ve.A)({onAbout:r}),u=(0,Re.hb)((()=>{i({loadId:n,dfSubId:"GL",dfFn:"GL"})}),[]);return(0,Ke.jsxs)(Ye.A.DraggableDialog,{isShow:t,style:Je,caption:o,menuModel:c,toTopLayer:a,onLoad:u,onShow:s,onClose:l,children:[(0,Ke.jsx)(Ye.A.Toolbar,{isShow:d,buttons:p}),(0,Ke.jsx)(Ye.A.RowText,{style:Xe,caption:"AV:",text:"Top Gainers & Losers"})]})}));var tt=o(6984);const ot={_a:Me,Indicator:Ze,Top:et,Search:(0,Pe.A)((e=>{let{isShow:t,caption:o,getKey:a,loadId:r,toTopLayer:n,onAbout:i,onError:s,onClose:l}=e;const[d,c]=(0,We.A)(i),[p,u]=(0,Oe.A)(!0),h=(0,Ve.A)({toggleLabels:u,onAbout:i}),m=(0,tt.A)((()=>({...X,onError:s,crUrlOptions:()=>{const e=a(r);if(e)return{apiKey:e};s("API key from Alpha Vantage is required","Without API Key")}})));return(0,Ke.jsxs)(Ye.A.DraggableDialog,{isShow:t,caption:o,menuModel:c,toTopLayer:n,onClose:l,children:[(0,Ke.jsx)(Ye.A.Toolbar,{isShow:d,buttons:h}),(0,Ke.jsx)(Ye.A.RowInputSearch,{isShowLabels:p,caption:"Token",searchApi:m})]})}))}}}]); \ No newline at end of file diff --git a/app/erc_4f3e407bbeaed81d8bab.js b/app/erc_4f3e407bbeaed81d8bab.js deleted file mode 100644 index 28bbb88b55..0000000000 --- a/app/erc_4f3e407bbeaed81d8bab.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see erc_4f3e407bbeaed81d8bab.js.LICENSE.txt */ -(self.webpackChunkweb_app_erc=self.webpackChunkweb_app_erc||[]).push([[677],{784:(t,e,o)=>{"use strict";o.d(e,{QN:()=>A,Cx:()=>j,oF:()=>st,fP:()=>ot,ZD:()=>tt,kp:()=>S,Jr:()=>i.J,as:()=>$,EE:()=>et,UE:()=>F,go:()=>W,vL:()=>c.v,jD:()=>c.j,hE:()=>U,P0:()=>z,Kk:()=>X,cZ:()=>G,Ax:()=>a.A,Ay:()=>nt,K_:()=>B,Tq:()=>H,DF:()=>q,XR:()=>x.XR,D4:()=>x.D4,DZ:()=>x.DZ,qS:()=>f,Ps:()=>E,Jq:()=>n.Jq,hk:()=>h.hk,s2:()=>h.s2,vC:()=>h.vC,Co:()=>w,_W:()=>D,a3:()=>I,Cp:()=>h.Cp,O1:()=>h.O1,Ep:()=>m.Ep,Gu:()=>d.Gu,h$:()=>y.h$,yr:()=>m.yr,uj:()=>m.uj,Et:()=>m.Et,q_:()=>C,sA:()=>m.sA,F5:()=>m.F5,C4:()=>rt,O8:()=>m.O8,QD:()=>l.Q,Qv:()=>m.Qv,XB:()=>m.XB,Ro:()=>N,MZ:()=>d.MZ,L6:()=>h.L6,jq:()=>L,W7:()=>y.W7,Yp:()=>Y,e:()=>_,tK:()=>R,Ob:()=>g.O,Y1:()=>Z,cY:()=>h.cY,CA:()=>h.CA});var n=o(4558),s=o(704),r=o(7603),i=o(1852),a=o(55),l=o(3243),c=o(434),d=o(2823),p=o(3695),u=o(2401),h=o(8678),m=o(3730);const f=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n(t||((0,m.O8)(e)?{}:[]))[e]),t)};var g=o(9009),y=o(6559),x=o(9901),v=o(7441),b=o(3160);const C=t=>(0,m.Et)(t)||null===t,S=Object.assign,w=t=>(0,m.sA)(t)&&!(0,m.Ep)(t)?Object.keys(t):[],A=t=>t,j=()=>{},$=t=>{let{_itemKey:e}=t;return e},T=t=>(0,s.default)((0,b.g)(t)),k=t=>(0,h.Ch)((0,b.z)(t)),_=t=>(0,m.Et)(t)?(0,r.e)(t):"",E=u.eW,D=u.z,I=u.WO,L=p.A,N=(O="y",t=>(0,m.Qv)(t[O])&&isFinite(t[O]));var O;M="";var M;const F=function(t,e){return void 0===t&&(t=""),{errCaption:t,message:(0,m.O8)(e)?e:"No data available for request."}},W=t=>F("",t),R=t=>(0,m.O8)(t)&&t?`${t.slice(11,19)} ${t.slice(8,10)}-${t.slice(5,7)}-${t.slice(0,4)}`:"",P=t=>(t||{}).data,B=function(t){return void 0===t&&(t=P),e=>{if(!(0,m.Ep)(t(e)))throw F()}},U=t=>{if(!(0,m.O8)(t))return"";const e=t.indexOf("("),o=t.indexOf(")",e);return-1!==e&&e{let{bNowValue:e=(0,s.default)("0.0"),bPrevValue:o=(0,s.default)("0.0"),dfR:n}=t;return(0,y.P0)({nowValue:e,prevValue:o,fnFormat:p.A,dfR:n})},V=(t,e,o)=>t.reduce(((t,n)=>{const s=n[n.length-e];return o===k(s)?t.plus(""+(0,b.g)(s)):t}),(0,s.default)("0")).toString(),J=t=>{const e=t.length,o=t[e-1]||["",0];return[o,t[e-2]||o]},K=(t,e)=>(0,s.default)((0,y.W7)(t,e)),Z=(t,e)=>{if(!(0,m.Ep)(t))return{date:t,direction:v.zy};const[o,n,s,r]=rt(t)?((t,e)=>{const[o,n]=J(t[0]||[]),s=k(o),r=k(n);return[K(V(t,1,s),e),K(V(t,2,r),e),s,r]})(t,e):(t=>{const[e,o]=J(t);return[T(e),T(o),k(e),k(o)]})(t);return{...z({bNowValue:o,bPrevValue:n,dfR:e}),valueTo:(0,p.A)(n),date:s,dateTo:r}},q=(t,e)=>{const o=t._rt;return(0,m.Et)(o)?t=>(0,y.W7)(t,o):e||(t=>t)},Y=t=>t>-1&&t<1?t:(0,y.W7)(t,2),G=(t,e)=>{let{_itemKey:o,itemCaption:n,dataSource:s}=t;return{...e,id:o,key:o,itemCaption:n,dataSource:s}},H=t=>{let e;return()=>void 0===e?e=t():e};let Q;const X=t=>(Q||(Q=new window.DOMParser),Q.parseFromString(t,"text/xml")),tt=(t,e)=>{t.info={name:(0,d.MZ)(", ",e.title,e.subtitle)}},et=(t,e)=>({linkFn:"DF",item:{caption:t,href:e}}),ot=(t,e,o)=>{S(t.zhConfig,et(e,o))},nt=(t,e)=>(o,n,s)=>(tt(o,s),ot(o,`${t} Data Portal`,e(s)),o),st=t=>(t._type="sd",t),rt=t=>"sd"===(t||{})._type},1280:(t,e,o)=>{"use strict";o.d(e,{IQ:()=>s,Ou:()=>a,eT:()=>r,kZ:()=>i,oq:()=>n});const n="pb-8",s="pr-8",r="black",i="dark-blue",a=`fs-18 ${r}`},6327:(t,e,o)=>{"use strict";o.d(e,{Ge:()=>g,R0:()=>m,WG:()=>d,bW:()=>y,eb:()=>b,hQ:()=>h,lM:()=>x,mm:()=>v,vD:()=>c,vs:()=>u,yI:()=>C});var n=o(2823),s=o(6460),r=o(784);const i=t=>(0,r.sA)(t)?t.seriaType:t,a=t=>e=>t(i(e)),l=[s.uT,s.nQ],c=a((0,n.Gu)(l)),d=t=>i(t)===s.ET,p=[s.BG,s.zM,s.Sx,s.cx],u=a((0,n.Gu)(p)),h=t=>u(t)||c(t),m=t=>-1!==(t||"").indexOf("CLUSTER"),f=(t,e)=>(t[e.c]=e,t),g=(t,e)=>{const o=(t.data||[]).reduce(f,{});return t.data=e.map((t=>o[t]||null)),t},y=t=>((t.xAxis||[])[0]||{}).categories,x=(t,e)=>(0,r.Ep)((t.xAxis||{}).categories)&&(0,r.Ep)(e),v=t=>t.map((t=>(0,r.Ax)(t.c))),b=(t,e)=>{const o=(0,r.Ax)(e);return{y:t,name:o,c:o}},C=t=>{const e=(0,r.Ax)(t);return(t,o)=>({value:t,label:(0,r.Ax)(o),title:e})}},6106:(t,e,o)=>{"use strict";o.d(e,{S$:()=>y,SW:()=>v,$w:()=>x,qn:()=>A,yy:()=>w,gp:()=>$,ox:()=>j,yD:()=>_,Ng:()=>T,f7:()=>b,wJ:()=>S,cn:()=>C});const n=Date.UTC,s=t=>(e,o)=>{const s=o.split(e),r=parseInt(s[1],10)*t-1,i=1===r?28:30;return n(s[0],r,i)},r=s(1),i=s(3),a=s(6),l=(t,e)=>e?n(t,0,1):n(t,11,31),c={JANUARY:"01",FEBRUARY:"02",MARCH:"03",APRIL:"04",MAY:"05",JUNE:"06",JULY:"07",AUGUST:"08",SEPTEMBER:"09",OCTOBER:"10",NOVEMBER:"11",DECEMBER:"12"},d=(t,e)=>{t=t.toUpperCase().trim();const[o,s]=t.split(" "),d=s&&c[s];if(d)return r("M",`${o}M${d}`);const p=(t=>e=>-1!==t.indexOf(e))(t);return p("M")?p("D")?(t=>{const e=t.split("M"),o=e[1].split("D"),s=parseInt(o[0],10)-1;return n(e[0],s,o[1])})(t):r("M",t):p("Q")?i("Q",t):p("K")?i("K",t):p("H")?a("H",t):p("/")?l(t.slice(0,4)):l(t,e)},p=t=>{const e=d(t),o=new Date(e);return o.getUTCFullYear()+"-"+("0"+(o.getUTCMonth()+1)).slice(-2)+"-"+("0"+o.getUTCDate()).slice(-2)};var u=o(784),h=o(6327);const m=(t,e)=>e.y-t.y,f=t=>"dataset"===t.class&&"2.0"===t.version,g=(t,e)=>o=>(t=>{const e=t||{};return f(e)?e:e.dataset||{}})(o)[t]||e,y=g("dimension",{}),x=g("value",{}),v=g("status",{}),b=g("label"),C=g("updated"),S=g("source"),w=t=>{const e=t||{},o=f(e)?e:y(e);return[o.id||[],o.size||[]]},A=(t,e)=>e&&(t[e]||{}).category||{},j=(t,e)=>{const o=y(e),n=x(e),s=v(e),[r,i]=w(e),{index:a,label:l}=((t,e,o)=>{const n=e.findIndex((t=>1!==t)),s=-1!==n?t[n]:"";return A(o,s)})(r,i,o),c={};let d;return(0,u.sA)(a)&&(0,u.sA)(l)?(0,u.Co)(l).reduce(((e,o)=>{if(d=a[o],null!=d){const r=n[d],i=l[o];(0,u.Et)(r)&&(0,u.O8)(i)&&e.push(t(r,((t,e)=>{const o=e[t];return o?(++e[t],`${t} (${o+1})`):(e[t]=1,t)})(i,c),s[d]))}return e}),[]):[]},$=t=>j(h.eb,t).sort(m),T=t=>(e,o)=>{const n=o.length-1,s="*"===o[n],r=s?o.slice(0,n):o,i=d(r,t);return s?[i,e,"p"]:[i,e]},k=(t,e)=>[p(e),t],_=t=>j(k,t).reverse()},1031:(t,e,o)=>{"use strict";o.d(e,{FE:()=>y,KM:()=>w,b9:()=>S,zY:()=>C});var n=o(5856),s=o(784),r=o(8849),i=o(2908),a=o.n(i),l=o(5355);const c=(t,e,o)=>a().Color(t).brighten(e).setOpacity(o).get();const d=4/7,p=l.HF,u=l.ay,h=l.VV,m=function(t,e,o){return void 0===t&&(t=l.HF),void 0===e&&(e=0),void 0===o&&(o=.75),c(t,-.42857142857142855+e,o)};var f=o(1280);const g=(t,e,o,n,s)=>{const r=t.length;if(e>=r)return[r,o];let i=r,a=e;for(;a=n){i=a;break}return i{let{data:e,total:o,propName:n="value",level1:s=60,level2:r=90}=t;const[i,a]=((t,e,o,n,s)=>{const r=e/100,i=r*o,a=r*n,[l,c]=g(t,0,0,i,s),[d]=g(t,l,c,a,s);return[l,d]})(e,o,s,r,n);((t,e,o)=>{const n=o-e,s=t.length-o;let r;t.forEach(((t,i)=>{i(e,o,n)=>(0,s.Ax)(`${e}
${t(o,n)}`),v=x(((t,e)=>`${(0,n.A)(e)} (${t}%)`)),b=x((t=>t>=1?`${t}%`:`.${(""+t).split(".")[1]}%`)),C=t=>(t=>t.length>8&&t[0].value>1e3)(t)?b:v,S=x((t=>(0,s.Et)(t)?`${t}%`:"")),w=(t,e)=>{if(0!==e){const o=e/100;t.forEach((t=>{t.percent=(0,s.W7)(t.value/o),t.name=S(t.label,t.percent>1?t.percent:"")})),(0,r.GY)(t),y({data:t,total:e})}}},4031:(t,e,o)=>{"use strict";o.d(e,{O9:()=>l,kV:()=>i,Ec:()=>d,e:()=>p});const n=t=>null==t||0===Object.keys(t).length;var s=o(784),r=o(8849);const i=t=>`function=${t}`,a=t=>e=>{const{apiKey:o}=e,n=t(e)(e);return e.apiKey=void 0,`https://www.alphavantage.co/query?${n}&apikey=${o}`},l="Request Error",c=t=>{if(n(t))throw(0,s.UE)();const e=t["Error Message"]||t.Information;if(e)throw(0,s.UE)(l,e)},d=t=>({getRequestUrl:a(t),checkResponse:c}),p=(t,e,o)=>n=>{const i="10"===o?t=>parseInt(t,10):"round"===o?s.W7:parseFloat;return(n||[]).reduce((function(o,n){void 0===n&&(n={});const r=i(n[t]);return(0,s.yr)(r)||o.push([(0,s.cY)(n[e]),r]),o}),[]).sort(r.vJ)}},8849:(t,e,o)=>{"use strict";o.d(e,{vJ:()=>l,j4:()=>c,GY:()=>p,_u:()=>d});const n=t=>(e,o)=>(e||{})[t]<(o||{})[t]?-1:(e||{})[t]===(o||{})[t]?0:1,s=(t,e)=>(o,n)=>o[t]n[t]?1:o[e]n[e]?1:0,r=n("value"),i=s("y","name"),a=t=>e=>e.sort(t).reverse(),l=n(0),c=s("value","id"),d=a(i),p=a(r)},3851:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(784),s=o(2947),r=o(6777);const i=t=>{let{subtitle:e,title:o}=t;return(0,n.MZ)(": ",e,o)},a=function(t,e){void 0===e&&(e=i);const o={toConfig:(o,n)=>{const r=t(o,n),i=(0,s.A)(n.subtitle,n.title,n.seriaType,n.seriaColor,r,n.isAlg),{_itemKey:a}=n;return i.zhConfig={id:a,key:a,itemCaption:e(n,o),itemTime:n.time,dataSource:n.dataSource},{config:i}}};return o.toSeries=(0,r.A)(o.toConfig),o}},3317:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(784),s=o(4668),r=o(704);const i=(t,e,o)=>({name:t,pn:e,toN:[],...(0,s.wQ)({color:o})}),a=(t,e,o)=>{let n=(0,r.default)(0),s=0;for(;s{try{const n=parseInt((0,r.default)(e).div(t).toFixed(0),10),[s,i]=(t=>t?["to left","#184416"]:["to right","#6c3632"])(o);return{background:`linear-gradient(${s}, ${i} ${n}%, transparent ${n}% ${100-n}%)`}}catch(t){return}},c=(t,e,o)=>({b_p:t[0],b_q:t[1],a_p:e[0],a_q:e[1],style:{b_q:o(t[1],!0),a_q:o(e[1])}}),d=(t,e,o)=>{const n=c(t,e,o);return n.b_n=t[2],n.a_n=e[2],n},p=(t,e)=>{const{bids:o,asks:r}=t,p=(0,n.Et)(r[0][2]),u=e||o.length,h=[],m=a(o,1,u),f=a(r,1,u),g=m.add(f).div(100),y=(0,n.Jr)(l,g),x=p?d:c;let v,b,C=0;for(;C{let{crTitle:e,crLimit:o=n.Cx,crOrderBook:r=n.QN}=t;return{toConfig(t,n){const{_itemKey:i,dataSource:a}=n,l=e(n,t),c=r(t),d=o(n),[u,h]=p(c,d);return{config:(0,s.gO)({id:i,title:l,headers:u,rows:h,dataSource:a})}}}}},9026:(t,e,o)=>{"use strict";o.d(e,{GT:()=>d,T9:()=>p,Vc:()=>c,C_:()=>a,s4:()=>l});var n=o(6327);const s=(0,o(3317).A)({crTitle:t=>{let{items:e}=t;return e[0].c}}),r=t=>"function"==typeof t,i=(t,e,o)=>(0,n.hQ)(o)?t:e,a=(t,e)=>o=>i(t,e,o),l=(t,e,o)=>s=>(0,n.vD)(s)?r(t)?t(s):t:i(e,o,s),c=(t,e,o,s)=>{const r=l(e,o,s);return e=>(0,n.WG)(e.seriaType)?t:r(e)},d=t=>{let{rAdapter:e,getRoute:o,isKey:n,crDfKey:s}=t;const i=o||(t=>e=>{const{_pn:o="dfSubId"}=t,n=e[o];return n&&t[n]||t.DF})(e),a=(t=>e=>{const o=t(e);return r(o)?o():o})(i);return{crKey:n||s?t=>{const e=a(t).crKey||s;return r(e)?e(t):void 0}:void 0,toConfig:(t,e)=>a(e).toConfig(t,e),isAdd:t=>r(a(t).toSeries),toSeries:(t,e,o)=>a(e).toSeries(t,e,o)}},p=(t,e)=>d({rAdapter:{DF:t,OB:e||s}})},9876:(t,e,o)=>{"use strict";o.d(e,{e$:()=>d,w9:()=>l,x5:()=>c});var n=o(3956),s=o(4999),r=o(784);const i=t=>{let{_itemKey:e,itemCaption:o,dataSource:n}=t;return{id:e,key:e,itemCaption:o,dataSource:n}},a=t=>({zhConfig:i(t)}),l=function(t,e){return void 0===e&&(e="EXR"),o=>(o.dfCase===e&&(o.itemCaption=((t,e)=>`${(0,r.hE)((0,r.Ps)(t.items[0]))}/${e}`)(o,t)),a(o))},c=(t,e)=>(o,n)=>{const s=e(n);return t(o).reduce(((t,e)=>{const o=(0,r.sA)(e)?s(e):void 0;return o&&(0,r.Et)(o[0])&&(0,r.Et)(o[1])&&t.push(o),t}),[])},d=t=>{let{crKey:e=r.as,crData:o,crConfOption:i=a,addConfOption:l=r.Cx,trOption:c=r.Cx,addToConfig:d=r.QN}=t;const p={crKey:e,toConfig(t,e){const s=o(t,e),a=(0,r.Ep)(s)?s:(s||{}).data,p=(0,r.kp)(i(e,t,s),l(e,t));return c(e,t),{config:d((0,n.A)({option:e,data:a,confOption:p}),t,e,s)}},toSeries:(t,e)=>(0,s.j7)({adapter:p,json:t,option:e,type:"spline"})};return p}},2947:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(9270),s=o(4999);const r=function(t,e,o){const n=[];let s=o,r=t.length;for(n[o]=t[r-1];s>0;)n[s-1]=t[e[r][s]-1],r=e[r][s]-1,s--;return n};const i=function(t,e){const o=[],n=[];let s,r,i=0;for(s=0;s=i+n[d][r-1]&&(o[s][r]=u,n[s][r]=i+n[d][r-1])}o[s][1]=1,n[s][1]=i}return{lowerClassLimits:o,varianceCombinations:n}};const a=function(t,e){if(e>t.length)return null;t=t.slice().sort(((t,e)=>t-e));const o=i(t,e).lowerClassLimits;return r(t,o,e)},l=["#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b","#74c476"],c=Array.isArray,d=function(t,e,o){if(void 0===e&&(e=l),void 0===o&&(o=6),!c(t))return[];const n=t.length,s=o>n?n:o,r=a(t.map((t=>t.y)),s);return c(r)&&t.forEach((t=>{t.color=e[((t,e)=>{const o=t.length-1;if(e===t[o])return o-1;for(let n=0;n=t[n]&&e(0,n.A)((0,s.mw)((o||"").split("_")[0],(0,p.mm)(i),r,a?void 0:r),(0,s.Kl)(t,e),(0,s.vt)(0,{color:r,data:(0,p.R0)(o)?d(i):i}),s.Qs,s.qP)},9550:(t,e,o)=>{"use strict";o.d(e,{B0:()=>p,GI:()=>l,TU:()=>u,f7:()=>i,z:()=>c});var n=o(6559),s=o(784),r=o(3160);const i=()=>(0,n.f7)().toUpperCase(),a=(t,e,o)=>`${(t=>t?`

`:"

")(o)}${t}

`,l=t=>(0,s.Jr)(a,t),c=(t,e)=>(0,s.Jr)(a,t,e),d=["url","loadId","title","subtitle","itemCaption","seriaType","items"],p=t=>d.reduce(((e,o)=>{const n=t[o];return null!=n&&(e[o]=(0,s.Ep)(n)?n.map((t=>({...t}))):n),e}),(0,s.jD)()),u=t=>{const e=t[t.length-1];return{x:(0,r.z)(e),y:(0,r.g)(e)}}},3029:(t,e,o)=>{"use strict";o.d(e,{$Q:()=>R,be:()=>P,ox:()=>I,Xz:()=>B,E1:()=>S,Yq:()=>U,cZ:()=>O,DZ:()=>n.DZ,Jd:()=>D,cL:()=>M,x1:()=>F,TX:()=>N});var n=o(784),s=o(4850),r=o(4999),i=o(5121),a=o(6106),l=o(8849),c=o(9550),d=o(3730),p=o(8678);const u=(t,e,o)=>{const n=t.split(e),s=parseInt(n[1],10)*o,r=(0,p.wF)(n[0],s);return Date.UTC(n[0],s-1,r)},h=t=>Date.UTC(t,11,31),m=t=>{const e=t&&t[5];if(o=e,(0,d.Et)(parseInt(o,10)))return u(t,"-",1);var o;if("Q"===e)return u(t,"-Q",3);if("S"===e){const e=t.split("-S");return"1"===e[1]?Date.UTC(e[0],5,30):h(e[0])}return h(parseInt(t,10)>1970?t:1970)},f=["Austria","Belgium","Bulgaria","Croatia","Cyprus","Czechia","Denmark","Estonia","Finland","France","Germany","Greece","Hungary","Ireland","Italy","Latvia","Lithuania","Luxembourg","Malta","Netherlands","Poland","Portugal","Romania","Slovakia","Slovenia","Spain","Sweden"],g=Object.assign,y=Array.isArray,x=(t,e)=>{const o="string"==typeof t?`Updated: ${t.replace("T"," ")}`:"",n=e||{},{id:s,subTitle:r}=n,i=r?`Metric: ${r}`:"";return`

${o}

${`Dataset: ${(s||"").toLowerCase()}`}

${n.description||""} ${i}

`},v="OBS_PERIOD_OVERALL_",b=`${v}OLDEST`,C=`${v}LATEST`,S=t=>{let{label:e,updated:o,extension:n}=t;const[s,r]=(t=>{const{annotation:e}=t||{};let o,n,s="",r="";if(y(e))for(n=0;ne=>-1!==t.indexOf(e.c),A=w(["EU","EU28","EU27_2020","G20","Group of Twenty"]),j=w(["EA","EA11","EA12","EA13","EA15","EA16","EA17","EA18","EA19","EA20","EUROZONE"]),$=t=>-1===f.indexOf(t.c),T=(t,e,o)=>{t.series[0].data.forEach((t=>{!t.color&&e(t)&&(t.color=o)}))},k=t=>t&&":"!==t&&1===t.length?t:void 0,_=(t,e,o)=>[m(e),t,k(o)],E=t=>{let{dfId:e,dfTable:o}=t;return e||o},D=t=>"geo"!==t&&"reporter"!==t,I=function(t,e){let{isFilterZero:o}=void 0===e?{}:e,s=(0,a.ox)(_,t).sort(l.vJ);return o&&(s=(0,n.XR)(s)),[s,(0,n.DZ)(s),(0,n.D4)(s)]},L=(t,e,o)=>[e.replace("M","-"),t,k(o)],N=t=>(0,a.ox)(L,t),O=t=>{const{key:e,itemCaption:o,url:n}=t,s=B(t);return{id:e,key:e,itemCaption:o,itemConf:n?{_itemKey:e,...(0,c.B0)(t),dataSource:s}:void 0,dataSource:s,...U(t)}},M=t=>{let{config:e,data:o,json:n,option:r}=t;const{title:i,subtitle:a}=r;(0,s.M4)(e,i,a),e.zhConfig=O(r),e.info=S(n),e.series[0].data=o},F=t=>{let{config:e,json:o,option:n}=t;e.info=S(o)},W=t=>{let{title:e="EU"}=t;return e},R=(t,e)=>{let{json:o,option:n,data:s,categories:i,min:a}=e;const[l,c]=n.isFilterZero?((t,e)=>{const o=[],n=[];return t.forEach((t=>{0!==t.y?o.push(t):n.push(t.c)})),[o,0!==n.length?e.filter((t=>-1===n.indexOf(t))):e]})(s,i):[s,i];M({data:l,config:t,json:o,option:n}),(t=>{let{config:e,categories:o,min:n,option:s}=t;const{time:i}=s;e.xAxis.categories=o,((t,e,o)=>{const n=t.yAxis;e?n.zhNotZoomToMinMax=!0:n.min=o})(e,s.isNotZoomToMinMax,n),e.series[0].name=i,g(e.zhConfig,{itemCaption:W(s),itemTime:i}),(0,r.Qs)(e)})({categories:c,config:t,min:a,option:n}),(t=>{T(t,A,"#001489"),T(t,j,"#ffdd00"),T(t,$,"#8085e9")})(t)},P=()=>(0,s.Gs)(i.Gr),B=t=>{const e=t.dataSource;return`${e&&-1!==e.indexOf("Eurostat")?e:"Eurostat"} (${E(t)||""})`},U=t=>({linkFn:"ES",item:{dataset:E(t)}})},8876:(t,e,o)=>{"use strict";o.d(e,{Jd:()=>s.Jd,Wz:()=>p,_W:()=>n._W,hQ:()=>u,jh:()=>h,lC:()=>m,sS:()=>d});var n=o(784),s=o(3029),r=o(6460);const i=[r.$g,r.Sx,r.zM,r.Fm,r.bR],a="https://ec.europa.eu/eurostat/api",l="dissemination/statistics/1.0/data",c=`${a}/comext/${l}`,d=`${a}/${l}`,p="",u=(0,n.Gu)(i),h=t=>t===r.$g,m=function(t,e,o,n){return void 0===n&&(n="&sinceTimePeriod=1999-01"),`${t?c:d}/${e}?${o}${n}`}},6777:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(6327);const s=t=>(e,o,s)=>{const r=t(e,o).config,i=r.series[0],a=(0,n.bW)(s);return(0,n.lM)(r,a)?(0,n.Ge)(i,a):i}},3160:(t,e,o)=>{"use strict";o.d(e,{g:()=>r,z:()=>s});var n=o(784);const s=t=>(0,n.Ep)(t)?t[0]:(t||{}).x,r=t=>(0,n.Ep)(t)?(0,n.Et)(t[1])?t[1]:"0.0":t&&(0,n.Et)(t.y)?t.y:"0.0"},7294:(t,e,o)=>{"use strict";o.d(e,{$:()=>i,f:()=>r});var n=o(5355);const s=function(t,e,o,n){return void 0===n&&(n=!1),{index:t,color:e,name:o,isVisible:n}},r=s,i=()=>[s(0,n.wN,"Close",!0),s(1,n.lb,"High"),s(2,n.LW,"Low"),s(3,n.xp,"Open")]},353:(t,e,o)=>{"use strict";o.d(e,{$:()=>a,_:()=>i});var n=o(704),s=o(5355);const r=Object.assign,i=t=>{let{date:e,open:o,close:n,volume:i,option:a}=t;const l=o&&n>o?s.KG:o&&n{let{date:e,close:o,open:r}=t;const i=r&&o?(0,n.default)(o).minus(r):(0,n.default)("0.0"),a=o?i.times(100).div(o).abs().toFixed(2):(0,n.default)("0.0"),l=i.gt(0)?s.oH:i.gte(0)?r?s.Cj:s.uL:s.KG;return{x:e,y:parseFloat(a),close:o,open:r||"Unknown",color:l}}},4668:(t,e,o)=>{"use strict";o.d(e,{Ju:()=>p,SO:()=>a,b5:()=>l,gO:()=>d,mG:()=>u,tJ:()=>s,wC:()=>c,wQ:()=>i,zS:()=>m});var n=o(784);const s=(t,e,o)=>{const[s,r]=(0,n.O8)(e)?[e,o]:[t.toLowerCase(),e];return{name:t,pn:s,isHide:r}},r=t=>({style:t}),i=t=>r({fontWeight:"bold",...t}),a=t=>r({textAlign:"center",...t}),l=t=>({toN:[t],isF:!0,...i()}),c=(t,e,o,s,r,i,a)=>({id:t,title:e,headers:o,flatHeaders:s,rows:r,dataSource:i,tableFn:{numberFormat:n.jq,...a}}),d=t=>{let{id:e,title:o,headers:n,flatHeaders:s,rows:r,dataSource:i,fns:a}=t;return{...c(e,o,n,s,r,i,a),zhCompType:"TABLE",zhConfig:{id:e,key:e}}},p=function(t,e,o){return void 0===t&&(t=[]),void 0===e&&(e=[]),void 0===o&&(o="id"),e.map(((e,s)=>(t.forEach((t=>{e[t.pn]=((t,e)=>{const{pn:o,toN:s}=e,r=!!s,i=r&&s[0],a=t[o];return r?(0,n.Qv)(i)?(0,n.W7)(a,i):(l=parseFloat(a),void 0===c&&(c=""),l-l==0?l:c):a;var l,c})(e,t)})),e.id=e[o]||`id${s}`,e)))},u=(t,e)=>({caption:t,items:e}),h=(t,e,o)=>(t.push(((t,e)=>(0!==t&&(e.id=t),e))(o,e)),o+1),m=t=>{const e=[];let o=0;for(const s of t)if((0,n.Ep)(s.items))for(const t of s.items)o=h(e,t,o);else o=h(e,s,o);return e}},783:(t,e,o)=>{"use strict";o.d(e,{Gz:()=>c,PT:()=>a,Pv:()=>d,Wc:()=>p,ai:()=>l,wY:()=>i,zp:()=>r});const n="tp__",s=`${n}header`,r=`${s} ${o(4558).WE}`,i=`${s}__caption text-clip`,a=`${s}__close`,l=`${n}row`,c=`${n}title`,d=`${n}value`,p="hc-gl"},4850:(t,e,o)=>{"use strict";o.d(e,{G8:()=>f,Gs:()=>C,Lb:()=>A,M4:()=>b,Nv:()=>$,RM:()=>v,Te:()=>w,fb:()=>T,gU:()=>g,gj:()=>j,hN:()=>S,n7:()=>x});var n=o(4558),s=o(3730),r=o(55),i=o(5672),a=o(5355),l=o(5121);const c={fontSize:"16px",fontWeight:"bold"},d={text:"",floating:!0,align:"left",x:0,style:{...c,stroke:"transparent",color:a.yj,fill:a.yj}},p={endOnTick:!1,maxPadding:.15,startOnTick:!1,minPadding:.15,title:{text:""}},u=t=>((0,s.sA)(t)&&(t.text=(0,r.A)(t.text)),t),h=t=>(0,s.O8)(t)?{text:(0,r.A)(t)}:u(t),m=function(t){return void 0===t&&(t=!0),t?{color:a.PG,width:1,zIndex:2}:void 0},f=(t,e)=>t&&(0,s.O8)(t)?t.toLowerCase():e||"spline",g=t=>(0,i.A)(!1,{enabled:!0,position:{align:"right",verticalAlign:"bottom",x:-10,y:-5}},t),y=t=>e=>(0,i.A)(!1,{...d,y:t},u(e)),x=y(-10),v=y(10),b=(t,e,o)=>{t.chart.spacingTop=25,t.title=x({text:e}),t.subtitle=v({text:o})},C=t=>({pointFormatter:t,headerFormat:""}),S=function(t){let{title:e="",seriaType:o,seriaColor:n,seriaWidth:s=1,spacingTop:r,isCrosshair:i}=void 0===t?{}:t;return{zhSeries:{count:0},chart:{marginRight:50,spacingTop:r},title:h(e),legend:{enabled:!1},xAxis:{type:"datetime",labels:{},crosshair:m(i)},yAxis:{...p,crosshair:m(i),opposite:!0,showEmpty:!0},series:[{turboThreshold:2e4,type:f(o,"area"),color:n,tooltip:C(l.kd),lineWidth:s,states:{hover:{lineWidth:s}}}]}},w=t=>({enabled:t,color:(0,n.Jq)(),crop:!1,overflow:"allow",style:{fontSize:"15px"}}),A=t=>({events:{mouseOver:t}}),j=(t,e)=>({color:t,id:e,dashStyle:"solid",width:1,zIndex:4,label:{text:e,verticalAlign:"top",style:{color:t,fontWeight:"bold",fontSize:"medium"}}}),$=t=>(0,i.A)(!1,{opposite:!0,tickLength:0,tickPosition:"inside",labels:{y:-5}},t),T=(t,e)=>({...p,id:t,lineColor:e,tickColor:e,gridLineWidth:0,lineWidth:2,labels:{style:{color:e,fontWeight:"bold",fontSize:"15px"}}}),k=(t,e)=>o=>(0,i.A)(!1,{lineColor:t,lineWidth:0,marker:{enabled:!1,lineWidth:1,lineColor:e},state:{hover:{lineWidth:2}}},o||{});k(a.Yn,a._v),k(a.dM,a.F)},5248:(t,e,o)=>{"use strict";o.d(e,{M$:()=>u,Xk:()=>p,hN:()=>m,wo:()=>h});var n=o(5672),s=o(5355),r=o(4850),i=o(6882),a=o(5121),l=o(1509);const c=Object.assign,d=["spline","line","area"],p=t=>{return e=((t.series||[])[0]||{}).type,-1!==d.indexOf(e);var e},u=(t,e,o,n,s)=>{t.series[o]={type:"area",lineWidth:1,name:n,data:e,...s,point:(0,r.Lb)(l.A)}},h=function(t){let{seriaType:e,seriaWidth:o,seriaColor:n,...s}=void 0===t?{}:t;return{type:(0,r.G8)(e),lineWidth:o??1,color:n,tooltip:(0,r.Gs)(a.kd),...s}},m=t=>{const e=(0,n.A)((0,r.hN)(t),{chart:{zoomType:"xy",xDeltaCrossLabel:4,yDeltaCrossLabel:20},zhDetailCharts:[]});return e.xAxis=c((0,r.Nv)(e.xAxis),{events:{afterSetExtremes:i.ih}}),e.yAxis=c(e.yAxis,{lineWidth:0,tickLength:0,offset:4,labels:{x:8,y:5},events:{afterSetExtremes:i.GI}}),e.yAxis.plotLines=[(0,r.gj)(s.bX,"max"),(0,r.gj)(s.VU,"min")],e}},6882:(t,e,o)=>{"use strict";o.d(e,{GI:()=>$,H$:()=>s.H$,H1:()=>D,Jq:()=>n.Jq,P0:()=>T,PW:()=>L,RG:()=>_,Uq:()=>s.Uq,Wj:()=>k,eh:()=>A,f7:()=>r.f7,gj:()=>I,ih:()=>j,sP:()=>N,tm:()=>E});var n=o(4558),s=o(7603),r=o(6559),i=o(704),a=o(5856),l=o(3695),c=o(2823),d=o(8678),p=o(4850);const u=t=>"number"==typeof t&&t-t==0,h=Array.isArray,m=Object.assign,f=(0,c.Tg)("x"),g=Number.NEGATIVE_INFINITY,y=Number.POSITIVE_INFINITY,x=(t,e)=>{let{hasSecondYAxis:o,series:n,chart:s}=t;const r=s?.yAxis?.[0];if(!o&&(i=r?.update,"function"==typeof i)){const[t,o]=((t,e)=>{const{minY:o,maxY:n}=t||{},s=e?.yAxis?.[0],{min:r,max:i}=s||{},a=r>o?o:r,l=i`  Δ ${t}%`,C=t=>parseFloat(t.round(4).toString(),10),S=(t,e,o)=>(0,r.tM)({bValue:t.minus(e),bTotal:o}),w=(t,e)=>t!==e?(0,i.default)(t):(0,i.default)(0),A=t=>{const{chart:e}=t,o=(t=>{const{options:e}=t;return e.zhSeries=m({count:0,titleEls:[]},e.zhSeries),e})(e),n=(t=>{let e,{chart:o,series:n,label:s,hasSecondYAxis:r}=t;if(r&&(e=(t=>2===t.yAxis.length?"#f7a35c":"#f45b5b")(o),o.addAxis((0,p.fb)(s,e)),n.yAxis=s,n.color=e),h(n)){const t=n.length-1;n.forEach(((e,n)=>{r&&(e.yAxis=s);const i=n===t?[!0,!0]:[!1,!1];o.addSeries(e,i)}))}else o.addSeries(n,!0,!0);return e})(t),s=((l=t.label)||"").length>14?l.substring(0,14):l,{x:r,y:i}=(t=>{const e=t.zhSeries.count,o=Math.floor(e/3);return{x:120+125*e-375*o,y:95+20*o}})(o),a=((t,e,o,n,s)=>t.renderer.text(e,o,n).css({color:s,"font-size":"16px","font-weight":800}).add())(e,s,r,i,t.color||n||(t=>{const{series:e}=t,o=(e||[]).length;return o>0?e[o-1].color:void 0})(e));var l;o.zhSeries.count+=1,o.zhSeries.titleEls.push(a),x(t,o)},j=function(t){const[e,o]=(t=>{let{userMin:e,userMax:o,min:n,max:s}=t;return[e||n,e?o:s]})(t);(this.chart.options.zhDetailCharts||[]).forEach((t=>{t.xAxis[0].setExtremes(e,o,!0,!0)}))},$=function(t){const{trigger:e,userMax:o,userMin:n}=t;"zoom"===e&&o&&this.setExtremes(n,o+.05*(o-n),!0,!0)},T=(t,e,o)=>{const n=(t.userOptions.zhConfig||{}).id,s=t.series[0].data,i=(0,d.A4)(o),a=u(i)?f(s,i):-1,c=-1===a?void 0:s[a].y;return u(c)?m({},e,(0,r.P0)({nowValue:e.value,prevValue:c,fnFormat:l.A}),{valueTo:c,dateTo:o,_id:n}):void 0},k=a.A,_=l.A,E=()=>(0,r.f7)("TP_"),D=t=>{let{plotLines:e,min:o,max:n}=t;n>g&&v(e[0],n),o{let{plotLines:e,min:o,max:n,value:s}=t;const r=w(n,g),i=w(o,y),a=w(s,null),l=S(r,a,a),c=S(a,i,a);v(e[0],C(r),b(l)),v(e[1],C(i),b(c))},L=(t,e)=>e>g&&t{null!=e&&t.forEach((t=>t.y=e))}},2096:(t,e,o)=>{"use strict";o.d(e,{e:()=>h,v:()=>p});var n=o(2908),s=o.n(n),r=o(1509),i=o(5355);const a=function(t,e){let o;for(void 0===t&&(t=[]),o=0;o<4;o++)t.push(s().Color(e).brighten((o-3)/7).get())},l="#909090";var c=o(783);const d=["#7cb5ec","#8abb5d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"],p=t=>d[t%d.length],u=(t,e)=>({style:{color:t,fontSize:e,fontWeight:"bold"}}),h={credits:{enabled:!0,position:{align:"right",x:-25,verticalAlign:"bottom",y:-5},style:{fontSize:"11px",color:l,fill:l,textDecoration:"underline"}},chart:{alignTicks:!1,height:300,spacingTop:5,spacingBottom:20,marginRight:50,plotBackgroundColor:"transparent",backgroundColor:"transparent",reflow:!1,panning:!0,panKey:"shift",zoomType:"x",style:{fontFamily:"Roboto, Arial, Lato, sans-serif",fontSize:"15px"},resetZoomButton:{position:{align:"right",verticalAlign:"top",x:-10,y:0},theme:{fill:i.fc,stroke:i.fc,r:4,style:{color:i.bg},states:{hover:{fill:i.fc,stroke:i.t_,"stroke-width":2,style:{color:i.t_}}}},relativeTo:"chart"},events:{load:function(){this.zhTooltip=new(s().Tooltip)(this,this.options.tooltip),this.credits.element.onclick=function(){window.open("https://highcharts.com","_blank")}}}},title:{style:{overflow:"hidden",textOverflow:"ellipsis"}},colors:d,labels:{items:[]},exporting:{fallbackToExportServer:!1,chartOptions:{chart:{plotBackgroundColor:i.qN,backgroundColor:i.zu},title:{x:0,y:5},subtitle:{x:0,y:22},plotOptions:{area:{fillColor:i.Ev}},xAxis:{lineWidth:2,lineColor:i.HA,gridLineColor:i.MR},yAxis:{lineWidth:2,lineColor:i.HA,gridLineColor:i.MR}}},navigation:{buttonOptions:{enabled:!1}},plotOptions:{area:{point:{events:{mouseOver:r.A}}},spline:{point:{events:{mouseOver:r.A}}},column:{borderWidth:0,groupPadding:.1,pointPlacement:0},series:{turboThreshold:0,marker:{radius:3,symbol:"circle",states:{hover:{lineColor:"transparent",lineWidth:0,radius:2,radiusPlus:0}}},states:{hover:{enabled:!1},inactive:{enabled:!1}},stickyTracking:!1,events:{click:function(t){const e=this.chart.zhTooltip;e.options.enabled=!0,e.hide(!1),e.refresh(t.point,t),e.options.enabled=!1}}},pie:{colors:function(t){let{base1:e=i.HF,base2:o=i.ay}=void 0===t?{}:t;const n=[];return a(n,e),a(n,o),n}()}},tooltip:{useHTML:!0,enabled:!1,hideDelay:100,followPointer:!1,shared:!1,backgroundColor:i.gN,borderWidth:2,borderRadius:10,headerFormat:`{point.key}
'`,pointFormat:`Value: {point.y}
`},xAxis:{lineColor:i.gW,lineWidth:3,tickColor:i.vN,tickWidth:0,gridLineColor:i.H2,gridLineDashStyle:"Dot",gridLineWidth:1,labels:u(i.Yq,"15px")},yAxis:{lineColor:i.N3,lineWidth:3,tickColor:i.gJ,tickWidth:0,gridLineColor:i.oX,gridLineDashStyle:"Dot",labels:u(i.L5,"15px")}}},9479:(t,e,o)=>{"use strict";o.d(e,{i:()=>i,k:()=>c});var n=o(2908),s=o.n(n),r=o(5355);const i=t=>{const e=t?r.fX:r.mz;s().setOptions(((t,e)=>({plotOptions:{area:{fillColor:{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,t],[1,e]]}}}}))(r.tb,e))},a=t=>({labels:{style:{color:t}}}),l="grey",c=function(t,e){void 0===t&&(t=l),void 0===e&&(e=l),s().setOptions({xAxis:a(t),yAxis:a(e)})}},5121:(t,e,o)=>{"use strict";o.d(e,{jc:()=>st,MZ:()=>tt,Gr:()=>X,Gf:()=>et,x_:()=>rt,xl:()=>ot,uz:()=>it,BA:()=>H,kd:()=>Q,b:()=>nt});var n=o(6882);let s;const r={get once(){return s=!0,!0}},i=()=>{if("boolean"==typeof s)return s;try{window.addEventListener("test",r,r),window.removeEventListener("test",r,r)}catch(t){s=!1}return s},a="#2f7ed8",l="#fdb316";var c=o(783);const d=function(t,e){return void 0===e&&(e=""),`style="color:${t};${e}"`},p=function(t,e,o){void 0===e&&(e="");let{color:n=a,status:s}=void 0===o?{}:o;const r=d(n,"padding-right:5px;"),i=t?`${t}: `:"",l=null!==e?e:"",p=s?`(${s})`:"";return`\n ${i}\n ${l}${p}`},u=(t,e)=>(t=>"NoData"===t||""===t||null==t)(e)?"":p(t,(0,n.RG)(e)),h=function(t,e,o){return void 0===t&&(t=""),void 0===e&&(e=""),`
${p(t,e,o)}
`},m=function(t,e,o){return void 0===t&&(t=" "),void 0===o&&(o=""),`
\n ${t}\n X\n
`},f=(t,e,o)=>{((t,e)=>{const o=document.getElementById(t);o&&o.addEventListener("click",e,!!i&&{once:!0})})(t,function(t,e){return void 0===t&&(t={}),()=>{t.series&&t.series.chart.zhTooltip.hide(),(t=>"function"==typeof t)(e)&&e(t)}}(e,o))},g={fnTemplate:t=>{let{date:e,id:o,color:n,valueText:s="Value",value:r,point:i}=t;const a=(t=>{const{index:e,series:o}=t,{userOptions:n}=o||{},{data:s}=n||{},r=((s||[])[e]||[])[2];return r&&":"!==r?r:void 0})(i);return`${m(e,o)}\n
\n ${h(s,r,{color:n,status:a})}\n
`},isWithColor:!0,isWithValueText:!0,isWithValue:!0},y=g,x={...g,fnDateFormat:n.H$},v={fnTemplate:t=>{let{id:e,point:o}=t;const{y:s,status:r,d:i,category:a,c:l,series:c}=o,{name:d,color:p}=c||{},u=a||l;return`${m(i?`${u}-${i}`:u,e)}\n
\n ${h("Value",(0,n.RG)(s),{status:r})}\n ${h("Seria",d,{color:p})}\n
`}},b={fnTemplate:t=>{let{id:e,point:o}=t;const{y:s,c:r,category:i,status:a}=o;return`${m(r||i,e)}\n
\n ${h("Value",(0,n.RG)(s),{status:a})}\n
\n Remove\n
\n
`},onAfterRender:(t,e)=>{setTimeout((()=>((t,e)=>{f(t,e),f(t+"_R",e,(t=>t.series.chart.zhRemoveCategory(e.category)))})(t,e)),1)}},C={fnTemplate:t=>{let{date:e,id:o,valueText:n,value:s,point:r}=t;const{exValue:i,price:a}=r;return`${m(e,o)}\n
\n ${h("Ex-Dividend",i,{color:"#90ed7d"})}\n ${h("Close",a)}\n
`}},S={fnTemplate:t=>{let{date:e,id:o,valueText:n,value:s,point:r}=t;const{splitRatio:i,price:a}=r;return`${m(e,o)}\n
\n ${h("Split Ratio",i,{color:"#ed5813"})}\n ${h("Close",a)}\n
`}},w={fnTemplate:t=>{let{date:e,id:o,point:n}=t;const{exValue:s}=n;return`${m(e,o)}\n
\n ${h("Value",s)}\n
`}},A="tp__body",j="tp__row",$={fnTemplate:t=>{let{date:e,id:o,value:n,point:s}=t;const{_open:r,_close:i,_low:a,_high:l}=s;return`${m(e,o)}\n
\n ${h("Volume",n)}\n
\n ${u("Open",r)}\n ${u("Close",i)}\n
\n
\n ${u("Low",a)}\n ${u("High",l)}\n
\n
`},fnDateFormat:n.H$,isWithValue:!0},T={fnTemplate:t=>{let{date:e,id:o,value:n,point:s}=t;const{color:r,y:i,close:a,open:l}=s;return`${m(e,o)}\n
\n ${h("ATH",i+"%",{color:r})}\n ${h("Prev Close",a)}\n ${h("Next Open",l)}\n
`}};var k=o(6842),_=o(9073),E=o(983),D=o(4848);const{SparkView:I,Line:L,Spots:N,Spot:O,ReferenceLine:M,Bars:F}=E.A,W={stroke:"red",strokeOpacity:.75,strokeDasharray:"5, 3"},R={stroke:"black",strokeWidth:"1",fill:_.fN,fillOpacity:"0.9"},P="sparklines",B="sparklines_bar",U=(t,e)=>{const o=54+10*t.length,n=50+10*e.length,s=o>n?o:n;return[s+116,s]},z=t=>{let{fullWidth:e,width:o,year:n,value:s,total:r,percent:i,id:a}=t;const c=`style="float:left;padding-right:10px;width:${o}px;"`;return`
\n
\n
\n ${h("Year",n,{color:l})}\n ${h("Value",s)}\n
\n
\n
\n
\n
\n
\n ${h("Total",r)}\n ${h("Percent",i)}\n
\n
\n
\n
`},V=function(t,e){setTimeout((function(){f(t,e);const{sparkLinesData:o,sparkBarsData:n,pointIndex:s}=(t=>{const{sparkvalues:e,sparkpercent:o}=t;let n,s=[],r=[];e?(s=e,r=o,n=0===e.length?0:e.length-1):(t.series.data.forEach((t=>{s.push(t.y),r.push(t.percentage)})),n=t.index);return{sparkLinesData:s,sparkBarsData:r,pointIndex:n}})(e),r=((t,e)=>(0,D.jsxs)(I,{height:45,width:100,svgHeight:45,svgWidth:100,data:t,children:[(0,D.jsx)(L,{color:_.fN}),(0,D.jsx)(M,{style:W,type:"avg"}),(0,D.jsx)(N,{}),(0,D.jsx)(O,{pointIndex:e})]}))(o,s),i=((t,e)=>(0,D.jsx)(I,{height:45,width:100,svgHeight:45,svgWidth:100,data:t,min:0,max:100,children:(0,D.jsx)(F,{style:R,pointIndex:e})}))(n,s);(0,k.render)(r,document.getElementById(`${t}_${P}`)),(0,k.render)(i,document.getElementById(`${t}_${B}`))}),1)},J={fnTemplate:t=>{let{id:e,value:o,point:s}=t;const{nameFull:r,category:i,percent:a="0.0",total:l=0}=s,c=(0,n.Wj)(l),[d,p]=U(o,c);return m(r,e)+z({id:e,fullWidth:d,width:p,value:o,percent:a,year:i,total:c})},onAfterRender:V,isWithValue:!0},K={fnTemplate:t=>{let{id:e,point:o}=t;const{nameFull:s,year:r,value:i="0.0",percent:a="0.0",total:l=0}=o,c=(0,n.Wj)(i),d=(0,n.Wj)(l),[p,u]=U(c,d);return m(s,e)+z({id:e,fullWidth:p,width:u,year:r,percent:a,value:c,total:d})},onAfterRender:V,isWithValue:!0},Z={fnTemplate:t=>{let{id:e,point:o}=t;const{title:s,label:r,value:i,percent:a=""}=o,c=a?`(${a}%)`:"",d=`${(0,n.RG)(i)} ${c}`;return`${m(s,e)}\n
\n ${h("",r)}\n ${h("",d,{color:l})}\n
\n `}},q={fnTemplate:t=>{let{id:e,value:o,point:n}=t;return`${m(n.nameFull,e)}\n
\n ${h("Value",o)}\n
`},isWithValue:!0},Y=(t,e)=>{setTimeout((()=>f(t,e)),1)},G=t=>function(){const{fnTemplate:e,onAfterRender:o=Y,fnDateFormat:s=n.Uq,isWithColor:r,isWithValueText:i,isWithValue:a}=t,l=this,{series:c}=l,{zhValueText:d,name:p="Value"}=c.userOptions,u=s(l.x),h=r?l.color||c.color:void 0,m=i?d||p:"Value",f=a?(0,n.Wj)(l.y):null,g=(0,n.tm)();return o(g,l),e({id:g,date:u,color:h,valueText:m,value:f,point:l})},H=G({...y}),Q=G({...x}),X=G({...v}),tt=G({...b}),et=G({...C}),ot=G({...S}),nt=(G({...w}),G({...$})),st=G({...T}),rt=(G({...q}),G({...J}),G({...K})),it=G({...Z})},4020:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n=function(t){let e=0;return t.yAxis.forEach((t=>{if(!t.opposite){const{max:o}=t.getExtremes(),n=o?(""+o).length:0,s=t.maxLabelLength;e=0!==n?e+(0===e?25:15)+Math.round(s):e}})),e}},4999:(t,e,o)=>{"use strict";o.d(e,{E0:()=>M,sD:()=>P,Fh:()=>K,hN:()=>J,H7:()=>V,mw:()=>G,yx:()=>Y,wo:()=>n.wo,j7:()=>z,hl:()=>et,vb:()=>tt,Qn:()=>Q,YT:()=>I,Kl:()=>D,o4:()=>F,vt:()=>R,$J:()=>O,PK:()=>L,XL:()=>W,Qs:()=>H,bK:()=>E,qP:()=>U});var n=o(5248),s=o(784),r=o(9270),i=o(9901),a=o(3730),l=o(6882),c=o(4850),d=o(5121);const p={type:"treemap",layoutAlgorithm:"squarified",borderColor:"grey",dataLabels:{align:"left",verticalAlign:"top",style:{fontSize:"15px",fontWeight:"bold",color:(0,l.Jq)(),textShadow:"none"}},states:{hover:{borderColor:"yellow",brightness:0}}};var u=o(2096);const h=Object.assign,m=t=>({pointWidth:t,color:"#8085e9",minPointLength:5,pointPadding:0,borderWidth:0,groupPadding:.2,shadow:!1}),f=(t,e,o)=>{const n={x:t,y:e};return o&&(n.style={color:o}),n},g=(t,e)=>({chart:{panKey:void 0,panning:!1,spacingTop:25},title:{text:""},subtitle:{text:""},tooltip:(0,c.Gs)(d.MZ),xAxis:{type:"category",categories:[],crosshair:!0,gridLineWidth:0},yAxis:{opposite:!0,lineWidth:0,tickLength:0,gridLineDashStyle:"Dot",labels:f(3,0,e),title:{text:""}},legend:{enabled:!1,align:"right",verticalAlign:"top",layout:"horizontal",x:0,y:-25},plotOptions:{},series:[{name:"Series 1"}]}),y=(t,e,o)=>({type:t,marginTop:e,marginBottom:o}),x=(t,e)=>{const o=g(0,e);return h(o.chart,y("column",60,100)),h(o.plotOptions,{column:m(6)}),o},v=(t,e)=>{const o=g(0,e);return h(o.chart,y("bar",50,35),{height:450}),h(o.yAxis,{opposite:!1,gridLineDashStyle:"ShortDot",labels:f(0,14,e)}),h(o.plotOptions,{bar:m(4)}),o},b=(t,e,o)=>("BAR"===t?v:x)(e,o),C=Array.isArray,S=Object.assign,w=(t,e,o)=>{t[e]=(0,a.sA)(o)&&!C(o)?S(t[e]||{},o):o},A=t=>(e,o)=>(0,a.Et)(e)?e:t(o),j=A(i.DZ),$=A(i.D4),T=(t,e,o)=>o&&t>0?0:(0,l.PW)(t,e),k=Array.isArray,_=Object.assign,E=(t,e)=>(t.zhConfig.dataSource=e,t),D=(t,e)=>o=>(o.title=(0,c.n7)({text:t||e}),t&&e&&(o.subtitle=(0,c.RM)({text:e})),o),I=(t,e)=>o=>{if((0,a.O8)(t))w(o,t,e);else if((0,a.sA)(t)){let e;for(e in t)w(o,e,t[e])}return o},L=t=>e=>(e.tooltip=(0,c.Gs)(t),e),N=t=>e=>(0,a.uj)(t)?I("zhConfig",{legend:t})(e):e,O=function(t,e){return void 0===e&&(e=!1),o=>{const n=k(o.series)?o.series:o.series=[];if(k(t)){const s=((t,e)=>{const o=[];return e.forEach(((e,n)=>{const{color:s,zhValueText:r,name:i,visible:a}=e;t.push(e),o.push((t=>{let{index:e,color:o,name:n="",is:s=!1}=t;return{index:e,color:o,name:n,isVisible:s}})({index:n,color:s,name:r||i,is:a}))})),o})(n,t);e||N(s)(o)}else(0,a.sA)(t)&&(n[0]=t);return o}},M=(t,e,o,n)=>{return t&&t.length>0?(s=o(e),t=>{const e=t.zhMiniConfigs;return k(e)?e.push(s):t.zhMiniConfigs=[s],t})(n):n;var s},F=(t,e)=>o=>{const{isNotZoomToMinMax:s,isDrawDeltaExtrems:r,isFilterZero:a,isLogarithmic:c,minY:d,maxY:p}=e,u=a?(0,i.XR)(t):t,h=j(d,u),m=$(p,u);return((t,e,o,n)=>{(0,l.H1)({plotLines:n.yAxis.plotLines,min:t,max:e}),I("yAxis",{min:T(t,e,o),maxPadding:.15,minPadding:.15,endOnTick:!1,startOnTick:!1})(n)})(h,m,s,o),((t,e,o,n,s)=>{if(n){const n=o.length-1;n>0&&(0,l.gj)({plotLines:s.yAxis.plotLines,min:t,max:e,value:(r=o[n],C(r)?r[1]:r&&r.y||0)})}var r})(h,m,u,r,o),((t,e,o)=>{if(t){if(!(0,n.Xk)(o)||(0,i.so)(e))return;const{yAxis:t}=o;t.type="logarithmic",t.min<=0&&(t.min=null)}})(c,u,o),o},W=function(t,e){return void 0===e&&(e="zhIsMfi"),o=>t?I({zhPoints:t,[e]:!0})(o):o},R=(t,e)=>o=>(o.series[t]?_(o.series[t],e):o.series.push(e),o),P=(t,e,o,n)=>s=>{const{data:r}=t;if(k(r)&&r.length>0){const{series:i,chart:a,zhConfig:c}=s;(0,l.sP)(r,(0,l.PW)(o,n)),t.visible=!1,i.push(t),a.spacingBottom=40,c.legend.push({index:i.length-1,color:t.color,name:e})}return s},B=t=>{var e;(e={config:t},e.config?.series?.[0].data||[]).length>3e3&&(t=>{I({chart:{animation:!1},plotOptions:{series:{animation:!1}},zhConfig:{withoutAnimation:!0}})(t)})(t)},U=t=>(B(t),t),z=t=>{let{adapter:e,json:o,option:n,type:s}=t;const{config:r}=e.toConfig(o,n),a=r.series[0];return a.minY=(0,i.DZ)(a.data),s&&(a.type=s),a},V=n.hN,J=t=>(0,n.hN)({spacingTop:25,...t}),K=(t,e)=>{const o=D(t,e)(J());return o.series=[],o},Z={type:"category",categories:[],opposite:!1,crosshair:void 0,tickColor:"grey",tickWidth:3,tickLength:7,tickPosition:"outside",gridLineWidth:0,labels:{y:18}},q={lineWidth:0,tickLength:0,startOnTick:!0,endOnTick:!0,minPadding:.05,maxPadding:.05,plotLines:null,labels:{x:3}},Y=(t,e,o)=>I({xAxis:{...Z,categories:t},yAxis:q})(K(e,o)),G=function(t,e,o,n){return void 0===e&&(e=[]),I("xAxis",{categories:e})(b(t,o,n))},H=t=>{const e=t.chart;if("bar"===e.type){const o=t.xAxis.categories.length;o<16&&(e.height=85+22*o)}return t},Q=t=>{const e={credits:(0,c.gU)(),chart:{type:"treemap",spacingTop:25,marginTop:50,marginRight:5,height:500},title:(0,c.n7)(),subtitle:(0,c.RM)(),tooltip:(0,c.Gs)(d.x_),zhSeries:{count:0},zhDetailCharts:[]},o=(t=>({...p,data:t}))(t);return o.tooltip=(0,c.Gs)(d.uz),O(o)(e)},X={visible:!0,marker:{symbol:"circle"}},tt=t=>{let{data:e,...o}=t;return(0,s.C4)(e)?e.map(((t,e)=>(0,n.wo)({...X,...o,data:t,color:t.color||(0,u.v)(e),name:t.seriaName,visible:e<8}))):(0,n.wo)({...X,...o,data:e})},et=(t,e)=>{const{seriaType:o,seriaColor:n,seriaWidth:s}=e;return(0,r.A)(K(e.title,e.subtitle),O(tt({seriaType:o,seriaColor:n,seriaWidth:s,data:t})),U)}},3956:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(9270),s=o(784),r=o(4999);const i=t=>{let{option:e,data:o,confOption:i}=t;const{_rt:a}=e;return((t,e)=>{(0,s.Et)(t)&&(0,s.Ep)(e[0])&&e.forEach((e=>{e[1]=(0,s.W7)(e[1],t)}))})(a,o),(0,n.A)((0,r.hl)(o,e),(0,r.o4)(o,e),(0,r.YT)({valueMoving:(0,s.Y1)(o,a)}),(0,r.YT)(i),r.qP)}},9649:(t,e,o)=>{"use strict";o.d(e,{mE:()=>A,RW:()=>$,Ng:()=>S,V9:()=>j,xh:()=>w});var n=o(9901),s=o(9270),r=o(55),i=o(4850),a=o(5121),l=o(5355);const c=Object.assign,d=t=>({text:(0,r.A)(t),style:{color:l._G,fontSize:"16px",fontWeight:"bold"},floating:!0,align:"left",verticalAlign:"top",x:8,y:15}),p=t=>"number"==typeof t?t:10*t.length+8,u=function(t){return void 0===t&&(t=84),{enabled:!0,align:"left",verticalAlign:"top",x:p(t),y:-8,floating:!0,symbolHeight:12,symbolWidth:12,symbolRadius:6,itemStyle:{color:l.yj,fontSize:"16px"},itemHoverStyle:{color:l.D},itemHiddenStyle:{color:l.h5}}},h=(t,e,o)=>({name:t,color:e,data:o,zhValueText:t,type:"line",lineWidth:2,visible:!1,marker:{enabled:!1}}),m=t=>e=>c(e,t),f=(t,e)=>o=>{const n=o[t];return n?c(n,e):o[t]=e,o},g=(t,e)=>o=>(o.series[t]=c({},o.series[t],e),o),y=t=>e=>{const{series:o}=e,n=(t=>c({type:"column",visible:!0,tooltip:(0,i.Gs)(a.BA)},t))(t);return o[0].data?o.push(n):c(o[0],n),e},x=function(t){let{title:e,chartOption:o}=void 0===t?{}:t;return(0,s.A)((0,i.hN)({title:e}),f("navigation",{buttonOptions:{y:20},menuStyle:{position:"relative",top:"-24px",left:"28px"}}),f("chart",{height:160,spacingTop:8,spacingBottom:10,...o}),f("xAxis",{labels:{y:16}}),f("yAxis",{startOnTick:!0,endOnTick:!0,tickPixelInterval:60,offset:4,lineWidth:0,labels:{x:8,y:5}}))};var v=o(1509);const b="#2d7474",C={xDeltaCrossLabel:4,yDeltaCrossLabel:-10},S=(t,e,o)=>(0,s.A)(x({title:d(e),chartOption:C}),g(0,{name:"MFI",type:"spline",color:"#90ed7d",zhValueText:t,data:o,point:(0,i.Lb)(v.A)})),w=t=>{let{btTitle:e="Volume",title:o,data:r,dColumn:l=[],tooltipColumn:c}=t;const p=o||e,f=0!==l.length,y=(0,s.A)(x({chartOption:C}),m({title:d(p),legend:u(p)}),g(0,{data:r,zhValueText:"Volume",visible:!f,name:"Spline",point:(0,i.Lb)(v.A)})),{series:b}=y;return f&&(b.push({zhValueText:"Volume",turboThreshold:2e4,type:"column",name:"Column",data:l,borderWidth:0,pointPlacement:"on",groupPadding:.1,states:{hover:{enabled:!0,brightness:.07}},tooltip:c||(0,i.Gs)(a.b)}),b.push(h("Median","darkcyan",(0,n.JZ)(r))),b.push(h("Mean","#f7a35c",(0,n.i2)(r)))),{btTitle:e,config:y}},A=t=>{let{btTitle:e="ATH",data:o}=t;return{btTitle:e,config:(0,s.A)(x({title:d("ATH")}),y({name:"ATH",borderWidth:0,pointPlacement:"on",minPointLength:4,groupPadding:.1,data:o,tooltip:(0,i.Gs)(a.jc)}))}},j=t=>{let{dataMom:e,dataAth:o,dataSum:n}=t;return(0,s.A)(x(),m({title:d(),legend:u(),plotOptions:{column:{grouping:!1,shadow:!1,borderWidth:0,pointPlacement:"on",pointPadding:0,groupPadding:0,turboThreshold:2e4,tooltip:(0,i.Gs)(a.BA)}}}),f("yAxis",{startOnTick:!1,endOnTick:!1,tickPixelInterval:20}),y({zhValueText:"MOM(1)",name:"MOM(1)",color:"#f7a35c",pointPadding:.3,data:e}),y({name:"ATH",data:o}),y({name:"Close-Open",color:"rgba(144, 237, 125, 0.75)",visible:!1,data:n}))},$=t=>{let{btTitle:e="Daily HighLow",data:o}=t;const[n,r]=(t=>{const e=[],o=[];let n;for(n=0;n{"use strict";o.d(e,{H$:()=>l,Uq:()=>i,Yq:()=>r,e:()=>c});var n=o(2908);const s=o.n(n)().dateFormat,r=s,i=s.bind(null,"%A, %b %d, %Y"),a=s.bind(null,"%H:%M, %A, %b %d, %Y"),l=t=>"00:00"===s("%H:%M",t)?i(t):a(t),c=s.bind(null,"%H:%M:%S %d-%m-%Y")},1509:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(5856),s=o(7603),r=o(4020),i=o(783);const a={zIndex:100},l=function(t,e,o){void 0===e&&(e=0),void 0===o&&(o=0);const{xDeltaCrossLabel:n=0,yDeltaCrossLabel:s=0}=t.options.chart;return{dX:n-e,dY:s-o}},c=(t,e)=>{const o=(0,s.Yq)("%d-%m-%Y",t.x);return{y:t.y,date:"01-01-1970"!==o?o:"",...l(e)}},d=(t,e)=>({y:(0,n.A)(t.y),date:t.x,...l(e,40,32)}),p=(t,e,o,n)=>t.renderer.text(e,o,n).attr(a).addClass(i.Wc).add(),u=function(t){const{plotX:e,plotY:o,series:n}=this,s=n.chart,{xCrossLabel:i,yCrossLabel:a}=s,{y:l,date:u,dX:h,dY:m}=((t=>!t.isCategory||t.c)(this)?c:d)(this,s),f=((t,e)=>{const o=(0,r.A)(t);return o?e+o+-10:e})(s,e),g=((t,e)=>t.plotTop-e+1)(s,m),y=((t,e)=>t.yAxis[0].width+t.plotLeft+e+-4)(s,h),x=((t,e)=>e+t.plotTop+-1)(s,o);i?(i.attr({x:f,text:u}),a.attr({x:y,y:x,text:l})):(s.xCrossLabel=p(s,u,f,g),s.yCrossLabel=p(s,l,y,x))}},7759:(t,e,o)=>{"use strict";o.d(e,{A:()=>at,H:()=>lt});var n=o(2908),s=o.n(n),r=o(3940),i=o.n(r),a=o(3177),l=o.n(a);const c=(t,e,o)=>({plotOptions:{[t.options.chart.type]:{[e]:o}}}),d=(t,e)=>{try{t.update(e)}catch(t){console.log(t)}},p=function(t){const e=this.userOptions,{xAxis:o,series:n}=e,s=o.categories;if(s){const e=s.filter((e=>e!==t));e.lengthe.c!==t&&e.name!==t&&e.id!==t))}]})}};var u=o(6882);const h={display:"inline"},m={display:"none"},f={chart:{spacingTop:0,marginTop:18},exporting:{enabled:!1},subtitle:{style:{display:"none"}},title:{style:{display:"none"}}},g={chart:{spacingTop:25,marginTop:70},exporting:{enabled:!0},subtitle:{style:{display:"inline-block"}},title:{style:{display:"inline-block"}}},y="zhElTitle",x="zhElSubtitle",v=(t,e,o,n,s)=>{const r=t[s];if(r&&r.css)return void r.css({...h});const{text:i}=e||{};i&&(t[s]=t.renderer.text(i,o,n).css({color:(0,u.Jq)(),"font-size":"16px","font-weight":800}).add())},b=(t,e)=>{const o=t[e];o&&o.css&&o.css({...m})},C=t=>{t.prototype.zhHideCaption=function(){try{const t=this.chartHeight-40;this.update(f,!1),this.setSize(null,t,!0);const e=this.options;v(this,e.title,40,70,y),v(this,e.subtitle,40,90,x)}catch(t){console.log(t.msg)}},t.prototype.zhShowCaption=function(){try{const t=this.chartHeight+40;this.update(g,!1),this.setSize(null,t,!0),b(this,y),b(this,x)}catch(t){console.log(t.msg)}}},S=Array.isArray,w=(t,e)=>{const o=t.length;let n=0;for(;n=e)return n;return n},A=t=>{let{data:e,userMin:o,userMax:n}=t;if(!(S(e)&&S(e[0])&&o&&n))return e;const s=w(e,o),r=w(e,n);return s<=r?e.slice(s,r+1):e};var j=o(6559);const $=t=>void 0===t,T=()=>(0,j.f7)().toUpperCase(),k=t=>{const{userOptions:e}=t||{},{id:o}=e||{};return o},_=t=>{const{yAxis:e}=t;return e||[]},E=(t,e)=>{const o=_(t);let n=0;for(;n{if($(e)){const e="string"==typeof(n=o)&&n?o:T();return[E(t,e),e]}var n,s;if(0===e)return[!1,void 0];if("number"==typeof(s=e)&&s-s==0){const o=_(t),n=k(o[e]),s=$(n);return[s,s?T():n]}return[!0,T()]};var I=o(5248);const L=Array.isArray,N=Object.assign,O=(t,e)=>(t=>{const e=(t=>t?.userOptions?.chart?.type??void 0)(t);return"bar"===e||"column"===e})(t)&&(t=>L(t)&&t[0]&&t[0].c)(e),M=(t,e)=>{const o=(t=>t?.userOptions?.xAxis?.categories??void 0)(t);if(!L(o))return e;const n=(t=>t.reduce(((t,e)=>(t[e.c]=e,t)),{}))(e);return s=n,o.reduce(((t,e)=>(t.push(s[e]||{c:e,y:null}),t)),[]);var s},F=(t,e)=>{const{data:o}=e;return O(t,o)?N(e,{data:M(t,o),type:void 0,point:{events:{mouseOver:null}}}):"columnrange"===e.type?e:(0,I.wo)(e)},W=(t,e)=>{const[o,n]=D(t,e.yIndex,e.name);return o&&t.addAxis(((t,e)=>{let{color:o,min:n,max:s}=e;return{id:t,min:n,max:s,lineColor:o,tickColor:o,tickWidth:3,tickLenght:5,opossite:!0,title:{text:""},gridLineWidth:0,labels:{style:{color:o}},showEmpty:!1}})(n,e),!1,!0),n},R=function(t,e){void 0===t&&(t={});try{const{name:o,color:n}=t,s=this.addSeries(F(this,{color:n,name:o,...e,data:A(t),yAxis:W(this,t)}),!1);return this.redraw(),s}catch(t){console.log(t.message)}},P=function(t){try{const e=this.series[t];e&&(e.visible?e.hide():e.show())}catch(t){console.log(t.message)}},B=t=>{t.prototype.zhTogglePlotLine=function(t){try{const e=(t=>"zhPlotLine"+t)(t);this[e]?(this.yAxis[0].addPlotLine(this[e]),this[e]=null):(this[e]=((t,e)=>t.options.yAxis[0].plotLines.find((t=>t.id===e)))(this,t),this.yAxis[0].removePlotLine(t))}catch(t){console.log(t.message)}},t.prototype.zhToggleMinMaxLines=function(){this.zhTogglePlotLine("max"),this.zhTogglePlotLine("min")}},U="zhIs2H",z=function(){try{const t=this[U]?this.chartHeight/2:2*this.chartHeight;this.setSize(void 0,t,this.zhIsAnimation()),this[U]=!this[U]}catch(t){console.log(t.message)}};var V=o(4850);const J=function(t){d(this,c(this,"dataLabels",(0,V.Te)(t)))},K=function(t){d(this,c(this,"pointWidth",t))},Z=t=>"number"==typeof t&&t-t==0,q=function(t){let{seriaIndex:e=0,from:o,to:n}=t;try{if(!Z(o)||!Z(n))return!1;const t=this.xAxis[e];return!!(t&&o<=n)&&(t.setExtremes(o,n),this.resetZoomButton||this.showResetZoom(),!0)}catch(t){return console.log(t),!1}},Y={zhIsAnimation(){return!((this.userOptions||{}).zhConfig||{}).withoutAnimation},zhIsDaily(t){void 0===t&&(t=0);const e=this.series?.[0].data??[],o=e.length-1;if(o<2)return!1;const n=e[o].x-e[o-1].x;return n<6048e5&&n>36e5}},G={zhGetId(){return((this.options||{}).zhConfig||{}).id},zhGetFromToDates(t){let{seriaIndex:e=0,format:o=(t=>t)}=void 0===t?{}:t;try{const t=this.series&&this.series[e]?.points||[],n=t.length;return Array.isArray(t)&&n>0?{from:o(t[0].x),to:o(t[n-1].x)}:{}}catch(t){return console.log(t),{}}}},H=Array.isArray,Q={zhGetDetailCharts(){return(this.options||{}).zhDetailCharts},zhAddDetailChart(t){const e=this.zhGetDetailCharts();H(e)&&e.push(t)},zhRemoveDetailChart(t){const e=this.zhGetDetailCharts();H(e)&&(this.options.zhDetailCharts=e.filter((e=>e!==t)))}};var X=o(4020);const tt=Array.isArray;const et=function(t,e){const o=t&&this.zhIsAnimation(),n=this.zhGetDetailCharts();if(this.setSize(e,void 0,o),tt(n)){const t=(0,X.A)(this);n.forEach((n=>{t&&n.update({chart:{spacingLeft:t}},!1),n.setSize(e,void 0,o)}))}},ot=(t,e)=>{const o=(t=>{const{series:e}=t;for(let t=0;t0)return!0}return!1})(t);return e?(n=o?40:(t=>{const{chart:e}=t.userOptions,{marginBottom:o}=e||{};return o||20})(t),{chart:{marginBottom:n},credits:{enabled:!0}}):(t=>({chart:{spacingBottom:0,marginBottom:t},credits:{enabled:!1}}))(o?24:0);var n};const nt=function(t){this.update(ot(this,t))},st=t=>{const{Chart:e}=t;C(e),B(e),Object.assign(e.prototype,{zhAddSeriaToYAxis:R,zhReflowCharts:et,zhUpdateSpacing:nt,zhDataLabels:J,zhSetPointWidth:K,zhToggleSeria:P,zhToggle2H:z,zhRemoveCategory:p,zhZoomX:q,...Y,...G,...Q})};var rt=o(3289),it=o(2096);const at=()=>{i()(s()),l()(s()),st(s()),s().setOptions(it.e)},lt=()=>o.e(195).then(o.t.bind(o,9048,23)).then((t=>t.default(s()))).catch((t=>console.log(rt.UU)))},5153:(t,e,o)=>{"use strict";o.d(e,{Jn:()=>g,Ux:()=>b,_5:()=>m,mG:()=>C,p3:()=>x});var n=o(9270),s=o(5355),r=o(9901),i=o(4850),a=o(5248),l=o(5121),c=o(9649),d=o(4999);const p=(t,e,o)=>({type:"scatter",color:t,data:o,tooltip:(0,i.Gs)(e)}),u=(t,e)=>o=>n=>(0,d.E0)(o[t],o,e,n),h=u("data",c.xh),m=t=>e=>(t.forEach((t=>h(t)(e))),e),f=u("data",c.mE),g=u("data",c.RW),y=(t,e)=>(o,n,s)=>r=>(0,d.sD)(t(o),e,n,s)(r),x=y((t=>p(s.U,l.Gf,t)),"Dividend"),v=(y((t=>p(s.hb,l.xl,t)),"Split Ratio"),(t,e)=>({type:"line",visible:!1,color:t,lineWidth:e,marker:{radius:3,symbol:"circle"}})),b=(t,e)=>{const{isNotZoomToMinMax:o,isDrawDeltaExtrems:r,seriaType:c,seriaWidth:p,dC:u,dH:m,dL:g,dO:y,minClose:x,maxClose:b,dVc:C,dV:S,dATH:w}=e;return(0,n.A)((0,d.hN)(),(0,d.PK)(l.kd),(0,d.o4)(u,{minY:x,maxY:b,isNotZoomToMinMax:o,isDrawDeltaExtrems:r}),h({id:t,data:S,dColumn:C}),f({id:t,data:w}),((t,e,o,n,r,l)=>c=>{const d=(0,i.G8)(t,"area");return(0,a.M$)(c,o,0,"Close",{type:d,lineWidth:e}),(0,a.M$)(c,n,1,"High",v(s.lb,e)),(0,a.M$)(c,r,2,"Low",v(s.LW,e)),(0,a.M$)(c,l,3,"Open",v(s.xp,e)),c})(c,p,u,m,g,y))},C=(t,e)=>(0,a.wo)({data:e,minY:(0,r.DZ)(e),zhValueText:t})},7599:(t,e,o)=>{"use strict";o.d(e,{g3:()=>n,mw:()=>s,o$:()=>r});const n=t=>({role:"presentation",hidden:!t}),s=(t,e)=>({role:"dialog",tabIndex:"-1",hidden:!t,"aria-label":e}),r=(t,e)=>{let{ariaLabel:o}=t;return{ariaLabel:o||e}}},710:(t,e,o)=>{"use strict";o.d(e,{k:()=>n,o:()=>s});const n=(t,e)=>({"aria-expanded":t,"aria-controls":t?e:void 0}),s=t=>({role:"combobox","aria-autocomplete":"list","aria-labelledby":t})},9288:(t,e,o)=>{"use strict";o.d(e,{O:()=>I,y:()=>N});const n=t=>{if(!t)return t;const e=t.length-1;return"y"===t[e]?t.slice(0,e)+"ies":t+"s"};var s=o(2823),r=o(7222),i=o(6460),a=o(9410);const l=Array.isArray,c=[i.$g,i.Sx,i.cx,i.zM,i.BG,i.Fm,i.bR,i.uT,i.nQ,i.ET],d=["Spline",i.qv],p=["Line",i.Dn],u=["Area",i.mf],h=["Column",i.ly],m=["Yearly by Months",i.V],f=t=>{const e=[...t];return e[0]=`Default: ${t[0]}`,e},g=t=>({caption:t[0],value:t[1],dim:t[2],compType:t[3],id:t[4],cId:t[5]}),y=t=>t.filter(Boolean).map(g),x=t=>!t||"M"===t,v=(t,e)=>y([f(d),p,x(e)&&m,u,h,[`Bar: By ${t}`,i.zM],[`Bar+Labels: By ${t}`,i.Fm],[`Column: By ${t}`,i.Sx],[`Dots: By ${t}`,i.bR]]),b=(t,e)=>{const o=n(t[0])||"Dim";return v(o,e).concat(y([[`Map: By ${o}`,i.$g,void 0,r.uF]]))},C=()=>y([f(d),p,u]),S=()=>[...C(),g(h)],w=t=>x(t)&&g(m),A=(t,e)=>[...S(),w(e)],j=t=>y([[`Column: By ${t}`,i.Sx,t],[`Bar: By ${t}`,i.zM,t]]),$=t=>y([[`Column: By ${t}`,i.Sx,t],[`Column: By ${t}: Cluster`,i.cx,t],[`Bar: By ${t}`,i.zM,t],[`Bar: By ${t}: Cluster`,i.BG,t]]),T=t=>{let[e]=t;return[...S(),...$(e)]},k=t=>{let[e]=t;return[...S(),...j(e)]},_=(t,e)=>g([`TreeMap: By ${t}`,i.uT,t,void 0,e]),E=t=>{let[e]=t;return[...T([e]),_(e),g([`TreeMap: By ${e}: Cluster`,i.nQ,e])]},D={DF:b,tes:(t,e,o)=>{const s=b(t,e),r=t[1]||"Dim";return s.splice(7,0,g([`Bar: By ${n(r)}`,i.zM,r,void 0,void 0,(o[1]||{}).id])),s},tc:$,t1:C,t1a:()=>y([f(u),p,d]),t2:S,t2a:A,t2ae:(t,e)=>[...A(0,e),...$("Dim")],t3:T,t3a:E,t3a2:t=>{let[e]=t;return[...E([e])]},t3b:(t,e)=>{let[o]=t;return[...S(),w(e),...$(o)]},[a.o]:t=>{let[e,o]=t;return[...T([e]),_(o,a.o)]},t3ab2:t=>{let[e,o]=t;return[...T([e]),(n=o,s=a.o,g([`Bar: By ${n}`,i.ET,n,void 0,s])),_(o,a.o)];var n,s},t3ac:t=>{let[e]=t;return[...T([e]),g([`TreeMap (60, 90): By ${e}`,i.nQ,e])]},t3c:k,t3c2:t=>{let[e,o]=t;return[...k([e]),...j(o)]},t3ca:()=>k(["Dim"]),df3:v},I=(t,e,o)=>((t,e,o,n)=>(D[t]||D.DF)(e,o,n).filter(Boolean))(e,(t=>l(t)?t.map((t=>t.caption||"")):["",""])(t),o,t),L=(0,s.Gu)(c),N=t=>!!t&&L(t.value)},9410:(t,e,o)=>{"use strict";o.d(e,{o:()=>n});const n="t3ab"},3138:(t,e,o)=>{"use strict";o.d(e,{F:()=>n});const n={display:"inline-block",color:"#1b75bb",textAlign:"right",width:100,paddingRight:5,fontSize:16,fontWeight:"bold"}},5668:(t,e,o)=>{"use strict";o.d(e,{A:()=>Ee});var n=o(4558),s=o(972),r=o(1205),i=o(1327),a=o(66),l=o(8353),c=o(4848);const d={margin:"6px 0"},p={paddingRight:4,fontSize:"16px",fontWeight:"bold"},u=[["isNotZoomToMinMax","Not Zoom to Min-Max"],["isFilterZero","Filter-Trim Zeros"],["isLogarithmic","Logarithmic Scale"]],h=t=>{let{isShow:e,style:o,className:h=l.ND,dfRt:m,onRoundTo:f,toggleOption:g,onClose:y}=t;return(0,c.jsxs)(s.A,{isShow:e,style:{...l.lM,...o},className:h,onClose:y,children:[f&&(x=m,""===x||x>=0&&x<=3)&&(0,c.jsx)("div",{style:d,children:(0,c.jsxs)("label",{children:[(0,c.jsx)(i.W,{style:p,children:"Round Decimals to"}),(0,c.jsx)(r.A,{type:"number",initValue:m,min:0,max:3,step:1,maxLength:2,onChange:f,onEnter:y})]})}),u.map((t=>{let[e,o]=t;return(0,c.jsx)(a.A,{id:e,style:l.v$,chbCn:n.w_,btCn:n.eT,caption:o,onToggle:g},e)}))]});var x};var m=o(1315),f=o(7071),g=o(2089),y=o(6223);const x={...l.v$,display:"flex",justifyContent:"space-between"},v={maxWidth:150,textAlign:"left"},b={display:"inline-block",padding:void 0},C={display:"inline-block",padding:"0 0 0 40px"},S=(t,e,o)=>{let{onToggle:n,onCheckCaption:s,onUnCheckCaption:r}=o;return(0,c.jsxs)("div",{style:x,children:[(0,c.jsx)(a.A,{initialValue:(i=t.isRow,!(0,m.bj)(i)||i),style:b,color:l.Ic,caption:t.caption,captionStyle:v,onToggle:()=>n(t.id)}),(0,c.jsx)(g.A,{style:C,color:l.cP,initialValue:0===e,onCheck:()=>s(e),onUnCheck:()=>r(e)})]},t.id);var i},w={ModalOptions:h,ModalToggle:t=>{let{isShow:e,style:o,className:n=l.ND,selectProps:r,isFd:i,isShowFd:a,isCh:d,isShowChart:p,onToggle:u,onCheckCaption:h,onUnCheckCaption:m,onToggleFd:g,onToggleChart:x,onClose:v}=t;return(0,c.jsxs)(s.A,{isShow:e,style:{...l.lM,...o},className:n,onClose:v,children:[(0,c.jsx)(f.A,{items:r,crItem:S,onToggle:u,onCheckCaption:h,onUnCheckCaption:m}),i&&(0,c.jsx)(y.A,{style:l.v$,color:l.Ic,caption:"From Date",value:a,onToggle:g},"isShowFd"),d&&x&&(0,c.jsx)(y.A,{style:l.v$,color:l.Ic,caption:"Chart",value:p,onToggle:x},"isShowChart")]})}};var A=o(5317),j=o(2357);const $="zhn-search",T=`${$}__options`,k=`${$}__options__div`,_=`${$}__row`,E=`${$}__footer`,D={width:250},I={fontWeight:"bold"},L={color:"black",width:250,height:32,padding:"4px 0 4px 10px",fontWeight:"bold"},N=t=>{let{text:e=""}=t;return(0,c.jsx)("span",{style:I,children:e})},O=()=>(0,c.jsx)("span",{children:" - "}),M=t=>{let{text:e=""}=t;return(0,c.jsx)("span",{children:e})},F=t=>{let{item:e,onClick:o,onFocus:n}=t;const{value:s,name:r,type:i,region:a,currency:l}=e;return(0,c.jsxs)("button",{type:"button",className:_,onClick:o,onFocus:n,children:[(0,c.jsx)(N,{text:s}),(0,c.jsx)(O,{}),(0,c.jsx)(M,{text:r}),(0,c.jsx)(O,{}),(0,c.jsx)(N,{text:i}),(0,c.jsx)(O,{}),(0,c.jsx)(M,{text:a}),(0,c.jsx)(O,{}),(0,c.jsx)(N,{text:l})]})},W=(t,e,o)=>{let{onClick:n,onFocus:s}=o;return(0,c.jsx)(F,{item:t,onClick:(0,m.Jr)(n,t.value),onFocus:(0,m.Jr)(s,e+1)},t.value+e)},R=t=>{let{isShow:e,options:o,onClickItem:n}=t;const s=(0,m.li)(),[r,i]=(0,m.J0)("");(0,m.vJ)((()=>{(0,m.nl)(s,null),i("")}),[o]),(0,m.vJ)((()=>{e&&(0,m.ZI)(s)}),[e]);const a=o.length||"";return(0,c.jsxs)(j.A,{isShow:e,className:T,style:D,withoutAnimation:!0,children:[(0,c.jsx)("div",{className:k,style:D,children:(0,c.jsx)(f.A,{items:o,crItem:W,onClick:n,onFocus:(t,e)=>{(0,m.nl)(s,e.target),i(t)}})}),(0,c.jsxs)("div",{className:E,style:L,children:[(0,c.jsxs)("span",{children:[r,":"]}),(0,c.jsx)("span",{children:a})]})]})},P={top:0},B=t=>{let{arrowStyle:e,tabIndex:o="-1",onClick:s}=t;return(0,c.jsx)("button",{type:"button",tabIndex:o,className:"zhn-select__bt-arrow",style:P,onClick:s,children:(0,c.jsx)("span",{className:n.$N,style:e})})},U={borderColor:"#1b75bb transparent transparent"},z=(0,c.jsx)("span",{className:"zhn-search__spinner","data-loader":"circle"}),V=(0,c.jsx)("span",{style:{top:6},className:"zhn-select__spinner--failed","data-loader":"circle-failed"}),J=t=>{let{isLoading:e,isLoadingFailed:o,options:n,isOptions:s,toggleOptions:r}=t;return e?z:o?V:n&&n.length>0?(0,c.jsx)(B,{arrowStyle:s?U:null,onClick:r}):null},K={isLoadingFailed:!1,isLoading:!1,isOptions:!1,ticket:"",options:[]},Z="LOADING",q="LOADING_FAILED",Y="LOADED",G="SET_TICKET",H="SHOW_OPTIONS",Q="HIDE_OPTIONS",X="TOGGLE_OPTIONS",tt=(t,e)=>{switch(e.type){case Z:return{...t,isLoadingFailed:!1,isLoading:!0};case q:return{...t,isLoading:!1,isLoadingFailed:!0};case Y:return{...t,options:e.options,isOptions:!0,isLoading:!1};case G:return{...t,ticket:e.ticket,isOptions:!1};case H:return{...t,isOptions:!0};case Q:return{...t,isOptions:!1,isLoadingFailed:!1};case X:return{...t,isOptions:!t.isOptions};default:throw new TypeError("Not existed action: "+e.type)}},et=t=>({loading:()=>t({type:Z}),loadingFailed:()=>t({type:q}),loaded:e=>t({type:Y,options:e}),setTicket:e=>t({type:G,ticket:e}),showOptions:()=>t({type:H}),hideOptions:()=>t({type:Q}),toggleOptions:()=>t({type:X})}),ot=(t,e)=>{let o=null;return function n(){for(var s=arguments.length,r=new Array(s),i=0;i{t(...r),o=null}),e),n.cancel=function(){clearTimeout(o)}}},nt=t=>"function"==typeof t,st=(t,e,o)=>ot((o=>{if((t=>t&&t.length>1)(o)){t.loading();const n=(t=>!nt(t.crUrlOptions)||t.crUrlOptions())(e);n?(t=>{let{api:e,value:o,options:n,action:s}=t;fetch(e.crUrl(o,n)).then((t=>{const{status:e}=t;if(e>=200&&e<400)return t.json();throw new Error("Respond status: "+e)})).then((t=>{s.loaded(e.crOptions(t))})).catch((t=>{s.loadingFailed(),nt(e.onError)?e.onError(t.message):console.log(t)}))})({api:e,action:t,value:o,options:n}):t.loadingFailed()}}),o||5e3),rt={...n.xu,position:"relative",width:250,height:36,background:"none 0px 0px repeat scroll rgb(225, 225, 203)"},it={...n.xu,display:"block",width:"100%",height:30,paddingLeft:10,marginLeft:0,boxShadow:"none"},at=t=>{let{isSearch:e=!0,searchApi:o,crInputChange:n}=t;const s=(0,m.li)(),[i,a]=(0,m.J0)(0),[l,d]=(0,m.WO)(tt,K),{isLoading:p,isLoadingFailed:u,isOptions:h,options:f,ticket:g}=l,y=(0,m.Kr)((()=>et(d)),[]),x=(0,m.Kr)((()=>(n||st)(y,o)),[y,o,n]);(0,m.vJ)((()=>{(0,m.ZI)(s)}),[i]);const v=e?t=>{const{keyCode:e}=t;(t=>38===t||46===t||27===t)(e)?(y.hideOptions(),(0,m.ZI)(s)):((t,e)=>40===t&&e.length>0)(e,f)&&y.showOptions()}:null,b=e?x:null;return(0,c.jsxs)("div",{style:rt,tabIndex:"-1",role:"textbox",onKeyDown:v,children:[(0,c.jsx)(r.A,{refEl:s,style:it,initValue:g,onChange:b,onEnter:()=>{e&&x.cancel()}},i),(0,c.jsx)("hr",{className:"zhn-search__input__hr"}),e&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(J,{isLoading:p,isLoadingFailed:u,options:f,isOptions:h,toggleOptions:y.toggleOptions}),(0,c.jsx)(R,{isShow:h,options:f,onClickItem:t=>{y.setTicket(t),a((t=>t+1))}})]})]})};var lt=o(3608),ct=o(7927),dt=o(6912);const pt=t=>{const[e,o]=(0,lt.A)(t);return(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:(0,ct.A)(t),children:o}),(0,c.jsx)(at,{...e})]})};var ut=o(7591);const ht=t=>{let{refSeriaColor:e,chartType:o,isShowLabels:n,labelStyle:s,selectWidth:r,isShowChart:i,chartOptions:a,onSelectChart:l,isShowDate:d,noDate:p=!1,dateDefault:u,dateOptions:h,onSelectDate:m,isDim:f,dimOptions:g,onSelectDim:y}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.A,{isShow:i,children:(0,c.jsx)(ut.A,{refSeriaColor:e,chartType:o,isShowLabels:n,labelStyle:s,selectWidth:r,options:a,onSelectChart:l})}),f&&g&&(0,c.jsx)(j.A,{isShow:d,children:(0,c.jsx)(A.A,{isShowLabels:n,caption:"Dim",options:g,onSelect:y})}),!p&&(0,c.jsx)(j.A,{isShow:d,children:(0,c.jsx)(A.A,{isShowLabels:n,caption:"For Date",placeholder:u,options:h,onSelect:m})})]})};var mt=o(9842),ft=o(6204);const gt={display:"flex",margin:"5px 5px 5px 10px",lineHeight:2},yt={maxWidth:200,height:32,verticalAlign:"middle",fontWeight:"bold"},xt=t=>{let{isShowLabels:e=!0,caption:o,text:s,style:r,captionStyle:a,textStyle:l}=t;return s?(0,c.jsxs)("div",{style:{...gt,...r},children:[(0,c.jsx)(i.D4,{style:(0,ct.A)({captionStyle:a,isShowLabels:e}),children:o}),(0,c.jsx)(ft.A,{className:n.eT,style:{...yt,...l},text:s})]}):null};var vt=o(652);const bt=t=>{const{innerRef:e,title:o="",initialValue:n,errorMsg:s,onTest:r}=t,a=(0,m.li)(null);return(0,m.Yn)(e,(()=>({getValue:()=>(0,m.y5)(a),isValid:()=>(0,m.F5)(a)})),[]),(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:(0,ct.A)(t),children:o}),(0,c.jsx)(vt.A,{refEl:a,initialValue:n,errorMsg:s,onTest:r})]})},Ct="YYYY-MM-DD format must be",St=(t,e)=>t<=e,wt=function(t){return void 0===t&&(t="Date"),`${t} is not in valid format`},At=t=>((0,m.y5)(t)||"").trim(),jt=t=>{let{refEl:e,isShowLabels:o=!0,placeholder:n,fromCaption:s="From Date",initFromDate:r,toCaption:a="To Date",initToDate:l,dateStyle:d,errMsg:p=Ct,isPeriodValid:u=St,msgOnNotValidFormat:h=wt,onTestDate:f,onEnter:g}=t;const y=(0,m.li)(),x=(0,m.li)(),v=(0,ct.A)({isShowLabels:o});return(0,m.Yn)(e,(()=>({getValues:()=>({fromDate:(0,m.y5)(y),toDate:(0,m.y5)(x)}),getValidation:()=>{const t=[];return(0,m.F5)(y)||t.push(h("From Date")),(0,m.F5)(x)||t.push(h("To Date")),0!==t.length||u(At(y),At(x))||t.push("From Date is near that To Date"),t.length>0?{isValid:!1,datesMsg:t}:{isValid:!0}},focusInput:()=>(0,m.ZI)(y),setFromTo:(t,e)=>{(0,m.nl)(y,t),(0,m.nl)(x,e)}})),[u,h]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:v,children:s}),(0,c.jsx)(vt.A,{refEl:y,style:d,placeholder:n,initialValue:r,errorMsg:p,onTest:f,onEnter:g})]}),(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:v,children:a}),(0,c.jsx)(vt.A,{refEl:x,style:d,placeholder:n,initialValue:l,errorMsg:p,onTest:f,onEnter:g})]})]})};var $t=o(8248),Tt=o(4616);const kt=t=>null!=t,_t=t=>t.map((t=>{let{c:e,v:o,...n}=t;return{c:`${e} (${o})`,v:o,...n}})),Et=/\s/g,Dt=t=>t.map((t=>{let{c:e,v:o,id:n}=t;return{c:`${e} (${o})`,v:n||`${o}-${(e||"").replace(Et,"-")}`.toLowerCase()}})),It=t=>e=>e.map((e=>{const[o,n]=e.split("/");return{c:e,v:t(o,n)}})),Lt={vc:t=>t.map((t=>(0,m.sA)(t)?t:{c:t,v:t})),t1:It(((t,e)=>`${t}-${e}`)),t2:It(((t,e)=>`${t}${e}`)),t2l:It(((t,e)=>`${t}${e}`.toLowerCase())),t3:It(((t,e)=>`${t}_${e}`)),nbq:t=>{const e=[];return t.forEach((t=>{let{n:o,b:n,q:s}=t;(0,m.Ep)(s)&&s.forEach((t=>{const s=`${n}/${t}`;e.push({c:`${o} (${s})`,v:s})}))})),e}},Nt=(t,e)=>{const o=t[e||"items"],n=t.isCv?_t:t.isCp?Dt:Lt[t.type];return n?n(o):o[0]&&kt(o[0].s)?o.map((t=>{let{c:e,v:o,s:n}=t;return{c:`${e} (${n})`,v:o,s:n}})):(0,m.sA)(t.filters)?((t,e)=>t.map((t=>{const o=t.not;if((0,m.O8)(o)){const n=e[o];(0,m.Ep)(n)?(0,m.Ep)(t.nots)?(t.not=n.concat(t.nots),delete t.nots):t.not=n:delete t.not}return t})))(o,t.filters):o},Ot=(t,e)=>{if(!(0,m.sA)(t))return[];const o=((t,e)=>{const{prefix:o,suffix:n}=e;return(o||n)&&t.forEach((t=>{t.v=`${o||""}${t.v}${n||""}`})),t})(Nt(t,e),t);return[o,(n=o,(0,m.Ep)(n)&&0!==n.length&&kt(n[0].c)?"c":void 0)];var n},Mt=()=>({isLoading:!1,isLoadingFailed:!1}),Ft=t=>{const[e,o]=(0,m.J0)(Mt);return[e,(0,m.hb)((()=>{o({isLoading:!0,isLoadingFailed:!1})}),[]),(0,m.hb)(((t,e)=>{(t||e)&&(0,Tt.S7)({alertCaption:t,alertDescr:e}),o({isLoading:!1,isLoadingFailed:!0})}),[]),(0,m.hb)((e=>{const[n,s]=Ot(e||{},t);o({isLoading:!1,isLoadingFailed:!1,propCaption:s,options:n})}),[])]};var Wt=o(3289);const Rt="Client Error",Pt="Server Error",Bt=(t,e,o)=>t>=e&&t{const s=(0,m.li)(null),r=(0,m.li)(!1),i=(0,m.hb)((a=>{Ut>=3?o(Rt,"Too many requests"):(0,m.ZC)(r)||(Ut++,(0,m.nl)(r,!0),e(),fetch(t).then((t=>{const{status:e}=t;if(Bt(e,200,400))return t.json();throw o((t=>Bt(t,400,500)?Rt:Bt(t,500,600)?Pt:"")(e),((t,e)=>t+" "+e)(e,t.statusText)),e})).then(n).catch((t=>{if((0,m.nl)(r,!1),t instanceof SyntaxError)o(Pt,"Incorrect JSON");else if(!(0,m.Et)(t)){const e=a||{},{retryNetwork:n=0}=e;if(n<=0){const[e,n]=t instanceof TypeError?[Wt.j7.caption,Wt.j7.descr]:[];o(e,n)}else(0,m.nl)(s,setTimeout((()=>i({...e,retryNetwork:n-1})),2e3))}})).finally((()=>{Ut--})))}),[]);return[i,s]},Vt=(t,e,o)=>{const[n,s,r,i]=Ft(o),a=(0,$t.A)(t)&&!n.isLoading&&!(0,m.Ep)(n.options),[l,c]=zt(e,s,r,i);return(0,m.vJ)((()=>(a&&l(),()=>{clearTimeout(c.current)})),[a]),[n,l]},Jt=t=>`${t} is not selected`,Kt=()=>{},Zt=t=>(t||{}).caption||"",qt=t=>(t||{}).value||"",Yt=t=>{let{refEl:e,isShowLabels:o,isShow:n=!0,isHideTwo:s=!1,isAddTitle:r,oneOptionNames:i="Items",msgOnNotSelected:a=Jt,uri:l,oneJsonProp:d="items",oneCaption:p,twoCaption:u,propCaption:h,onSelectOne:f=Kt,onSelect:g=Kt}=t;const[y,x]=Vt(n,l,d),{isLoading:v,isLoadingFailed:b,options:C}=y,[S,w]=(0,m.J0)([]),$=(0,m.li)(null),T=(0,m.li)(null),k=(0,m.hb)((t=>{(0,m.nl)($,t),(0,m.nl)(T,null),w(t&&t.columns||[]),f(t)}),[]),_=(0,m.hb)((t=>{const e=r&&t?(o=(0,m.ZC)($),n=t,{caption:`${Zt(o)}: ${Zt(n)}`,value:qt(o)?`${qt(o)}${qt(n)}`:qt(n)}):t;var o,n;(0,m.nl)(T,e),g(e)}),[]);return(0,m.Yn)(e,(()=>({getValidation:()=>{const t=[];return(0,m.ZC)($)||t.push(a(p)),(0,m.ZC)(T)||t.push(a(u)),t.length>0?{isValid:!1,msg:t}:{isValid:!0}},getValues:()=>({one:(0,m.ZC)($),two:(0,m.ZC)(T)})})),[]),(0,c.jsxs)("div",{children:[(0,c.jsx)(A.A,{isShowLabels:o,caption:p,options:C,optionNames:i,propCaption:h,isLoading:v,isLoadingFailed:b,onLoadOption:x,onSelect:k}),(0,c.jsx)(j.A,{isShow:!s,children:(0,c.jsx)(A.A,{isShowLabels:o,caption:u,options:S,propCaption:h,onSelect:_})})]})},Gt={RowInputSelect:A.A,RowInputSearch:pt,RowChart:ut.A,RowChartDate:ht,InputPeriod:jt,SelectOneTwo:Yt,RowPattern:mt.A,RowDate:bt,RowCheckBox1:g.A,RowText:xt};var Ht=o(7599),Qt=o(6736),Xt=o(391);const te=Object.assign,[ee,oe,ne,se]=Xt.dY?["touchstart","touchmove","touchcancel","touchend"]:["mousedown","mousemove","mouseleave","mouseup"],re={passive:!0},ie={passive:!1},ae=t=>e=>parseInt(e[t],10),le=ae("top"),ce=ae("left"),de=(t,e,o)=>o-t>22&&e-o>22,pe=t=>"BUTTON"===t.tagName||t.dataset.scrollable,ue=(t,e,o,n)=>{const s=(t=>(0,m.fp)(t.composedPath)?t.composedPath():void 0)(t);if((0,m.Ep)(s))for(let t=0;t{(0,m.vJ)((()=>{let o,n,s=(0,m.ZC)(t),r=s.style,i=0,a=0;function l(){const t=le(r),e=ce(r),o=(l=e+i,c=window.innerWidth-s.clientWidth,l>0?l>c?c-16:l:8),n=(t=>{const e=window.innerHeight;return t<0?0:e-t<140?e-140:t})(t+a);var l,c;te(r,{top:`${n}px`,left:`${o}px`,webkitTransform:"",transform:""}),i=0,a=0}function c(t){t.cancelable&&(t.stopPropagation(),t.preventDefault()),0===i&&0===a&&(r.cursor="move"),i=(0,m.El)(t)-o,a=(0,m.xJ)(t)-n;const e=`translate(${i}px,${a}px)`;te(r,{webkitTransform:e,transform:e})}function d(){u(),l()}function p(t){e(t)||(o=(0,m.El)(t),n=(0,m.xJ)(t),ue(t,o,n,s)&&(s.addEventListener(oe,c,ie),s.addEventListener(ne,d,re),s.addEventListener(se,d,re)))}function u(){r.cursor="",s.removeEventListener(oe,c,ie),s.removeEventListener(ne,d,re),s.removeEventListener(se,d,re)}return s.addEventListener(ee,p,re),()=>{u(),s.removeEventListener(ee,p,re),r=null,s=null}}),[])};var me=o(7368),fe=o(6539),ge=o(6112),ye=o(694);const xe=(0,n.Z6)("draggable-dialog"),ve={...ye.z2,position:"absolute",top:30,left:50,zIndex:10},be=t=>{let{buttons:e,onLoad:o,onShow:n,onClose:s}=t;return(0,c.jsxs)(dt.t4,{children:[e,(0,m.fp)(o)&&(0,c.jsx)(fe.A,{style:ye.SF,caption:"Load",title:"Load item",onClick:o},"load"),(0,m.fp)(n)&&(0,c.jsx)(fe.A,{timeout:0,caption:"Show",title:"Show items",onClick:n},"show"),(0,c.jsx)(fe.A,{timeout:0,caption:"Close",title:"Close dialog",onClick:s},"close")]})},Ce=()=>{},Se=t=>((0,m.al)(t)[1]||{}).className===n.$N,we=t=>{let{isFocusBtMenu:e=!0,isShow:o,style:s,menuModel:r,caption:i,children:a,commandButtons:l,toTopLayer:d,onLoad:p,onShow:u,onClose:h=Ce}=t;const f=(0,m.li)(),g=(0,m.li)(),y=(0,Qt.iw)(h),[x,v]=(0,n.lS)(o,xe);return(0,me.A)(o,e?g:void 0),he(f,Se),(0,c.jsxs)("div",{...(0,Ht.mw)(o,i),ref:f,className:x,style:{...s,...ve,...v},onClick:d,onKeyDown:y,children:[(0,c.jsx)(ge.A,{refBtMenuMore:g,menuModel:r,caption:i,onClose:h}),a,(0,c.jsx)(be,{buttons:l,onLoad:p,onShow:u,onClose:h})]})};var Ae=o(9759),je=o(761);const $e=t=>{let{isShow:e,buttons:o}=t;return(0,c.jsx)(j.A,{isShow:e,withoutAnimation:!0,children:(0,c.jsx)(je.A,{buttons:o})})};var Te=o(4654),ke=o(6674);const _e=t=>{let{refEl:e,isShow:o=!0,jsonProp:n,uri:s,...r}=t;const[i,a]=Vt(o,s,n),{options:l}=i;return(0,m.Yn)(e,(()=>({getOptions:()=>l})),[l]),(0,c.jsx)(A.A,{isShow:o,...r,...i,onLoadOption:a})},Ee={DraggableDialog:we,ModalPopup:s.A,ShowHide:j.A,ValidationMessages:Ae.A,Toolbar:$e,RowInputText:Te.A,RowInputColor:ke.A,SelectWithLoad:_e,...Gt,...w}},4765:(t,e,o)=>{"use strict";o.d(e,{q:()=>uo,b:()=>ho});var n=o(434),s=o(2040),r=o(3597),i=o(1315),a=o(4575),l=o(6539),c=o(2400),d=o(9495),p=o(391),u=o(6559),h=o(4848);const m={position:"absolute",top:0,left:0,width:12,height:12,overflow:"visible"},f={position:"absolute",top:-12,left:-12,width:"300%",height:36,borderRadius:"50%",backgroundColor:"rgba(0, 188, 212, 0.16)"},g=t=>{let{is:e,circleStyle:o,emberStyle:n}=t;return(0,h.jsx)("div",{style:{...m,...o},children:e?(0,h.jsx)("div",{style:{...f,...n}}):null})},y={position:"relative",width:"100%",height:18,margin:"8px 0",userSelect:"none",cursor:"default"},x={position:"absolute",top:8,left:0,width:"100%",height:2},v={position:"absolute",left:0,width:"calc(15%)",height:"100%",marginRight:6,backgroundColor:"#00bcd4",transition:"margin 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},b={position:"absolute",right:0,width:"calc(85%)",height:"100%",marginLeft:6,backgroundColor:"#bdbdbd",transition:"margin 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},C={...b,backgroundColor:"#9e9e9e"},S={boxSizing:"border-box",zIndex:"1",position:"absolute",top:0,left:"15%",width:12,height:12,cursor:"pointer",pointerEvents:"inherit",margin:"1px 0px 0px",backgroundColor:"#00bcd4",backgroundClip:"padding-box",border:"0px solid transparent",borderRadius:"50%",transform:"translate(-50%, -50%)",overflow:"visible",outline:"none",transition:"background 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},w={width:20,height:20},A={top:-12,left:-12,width:"220%",height:44,border:"1px solid #4caf50"},j=Number.isNaN,$=()=>{},[T,k]=p.dY?["touchmove","touchend"]:["mousemove","mouseup"],_=t=>({width:`calc(${t}%)`}),E=t=>"number"==typeof t&&t-t==0,D=t=>t.current,I=t=>{let{initialValue:e=4,step:o=1,min:n=0,max:s=20,onChange:r=$}=t;const a=(0,i.li)(),[l,c,m]=(0,d.o)(!1),[f,I]=(0,i.J0)(e),L=t=>{const e=((t,e,o)=>o>e?e:o{const[e,o,n]=(0,d.o)(!1),s=(0,i.li)(!1),r=e=>{D(s)||(s.current=!0,requestAnimationFrame((()=>{s.current=!1,t(e)})))},a=()=>{document.removeEventListener(T,r),document.removeEventListener(k,a),n()};return[e,t=>{p.dY||t.preventDefault(),document.addEventListener(T,r),document.addEventListener(k,a),o()}]})((t=>{const e=D(a).clientWidth;let r=(t=>{const e=D(a).getBoundingClientRect().left;return E(e)?(0,i.El)(t)-e:NaN})(t);if(E(r)&&E(e)){let t;r<0?r=0:r>e&&(r=e),t=r/e*(s-n),t=Math.round(t/o)*o+n,t=(0,u.W7)(t,5),L(t)}})),[M,F]=p.dY?[{onTouchStart:O},void 0]:[{onMouseDown:O,onMouseEnter:c,onMouseLeave:m},{onFocus:c,onKeyDown:t=>{const{keyCode:e}=t,n=((t,e,o)=>(t=>39===t||38===t)(o)?t+e:(t=>37===t||40===t)(o)?t-e:void 0)(f,o,e);null!=n&&(t.preventDefault(),L(n))},onBlur:m}],W=l?C:b,[R,P]=N?[w,A]:[],B=((t,e,o)=>{const n=(t-e)/(o-e);return j(n)?0:100*n})(f,n,s),U=_(B),z=_(100-B),V={left:`${B}%`};return(0,h.jsx)("div",{style:y,...M,children:(0,h.jsxs)("div",{ref:a,style:x,children:[(0,h.jsx)("div",{style:{...v,...U}}),(0,h.jsx)("div",{style:{...W,...z}}),(0,h.jsx)("input",{type:"hidden",step:o,min:n,max:s,value:f,required:!0}),(0,h.jsx)("div",{role:"slider",tabIndex:0,"aria-valuenow":f,"aria-valuemin":n,"aria-valuemax":s,"aria-orientation":"horizontal","aria-labelledby":"discrete-slider-custom",style:{...S,...R,...V},...F,children:(0,h.jsx)(g,{is:l||N,circleStyle:R,emberStyle:P})})]})})},L={color:"grey",fontWeight:"bold"},N={paddingTop:4,textAlign:"center",fontSize:"22px"},O={color:"#4caf50"},M={color:"#f44336"},F=()=>(0,i.J0)((()=>{return void 0===(t=0)&&(t=0),void 0===(e=10)&&(e=10),t+Math.floor((e-t+1)*Math.random());var t,e}))[0],W=t=>{let{refEl:e,style:o}=t;const n=F(),s=F(),[{isOk:r,resultSum:a},l]=(0,i.J0)({isOk:!1,resultSum:""}),c=(0,i.hb)((t=>l({isOk:n+s===t,resultSum:t})),[]);(0,i.Yn)(e,(()=>({isOk:()=>r})),[r]);const d=r?O:M;return(0,h.jsxs)("div",{style:o,children:[(0,h.jsx)("p",{style:L,children:"Before loading, please, enter sum using slider"}),(0,h.jsxs)("p",{style:N,children:[(0,h.jsx)("span",{children:`${n} + ${s} = `}),(0,h.jsx)("span",{style:d,children:a})]}),(0,h.jsx)(I,{onChange:c})]})};var R=o(5952),P=o(2394);const B={position:"static",width:400,height:205,margin:"70px auto"},U={margin:5},z={color:"#a487d4",padding:"0 5px"},V={color:"gray",width:400,padding:"5px 0 0 10px",lineHeight:1.4,fontWeight:"bold",whiteSpace:"pre"},J={padding:"8px 8px 0 8px"},K={},Z=(0,a.A)((t=>{let{isShow:e,data:o=K,onClose:n}=t;const s=(0,i.li)(),r=(0,i.Kr)((()=>()=>{const t=(0,i.ZC)(s);if(t&&t.isOk()){const{options:t}=o;void 0===(e=t)&&(e={}),setTimeout((()=>{(0,R.Uv)(e)}),100),setTimeout((()=>{(0,P.X$)(e)}),800),n()}var e}),[o,n]),a=(0,i.Kr)((()=>[(0,h.jsx)(l.A,{caption:"Yes, Load",isPrimary:!0,onClick:r},"k1"),(0,h.jsx)(l.A,{caption:"No, Close",onClick:n},"k2")]),[r,n]),d=(t=>{const{options:e}=t,{name:o,title:n}=e||{};return o||n||""})(o);return(0,h.jsx)(c.A,{style:B,caption:"Confirm Load",isShow:e,commandButtons:a,withoutClose:!0,onClose:n,children:(0,h.jsxs)("div",{style:U,children:[(0,h.jsxs)("p",{style:V,children:["Would you like load item",(0,h.jsx)("span",{style:z,children:d}),"from url?"]}),(0,h.jsx)(W,{refEl:s,style:J})]})})})),q={position:"static",width:350,height:175,margin:"70px auto"},Y={color:"gray",padding:"8px 0 0 16px",lineHeight:1.7,fontWeight:"bold"},G={color:"#80c040"},H={color:"#232f3b"},Q=t=>{let{isShow:e,data:o,onClose:n}=t;const s=(0,i.hb)((()=>{document.cookie="erc=1",window.location.reload(!0)}),[]),r=(0,i.Kr)((()=>[(0,h.jsx)(l.A,{caption:"Yes, Reload",isPrimary:!0,onClick:s},"reload"),(0,h.jsx)(l.A,{style:H,caption:"No",onClick:n},"no")]),[n]),{buildDate:a=""}=o||{};return(0,h.jsx)(c.A,{style:q,caption:"Reload Web App",isShow:e,commandButtons:r,withoutClose:!0,onClose:n,children:(0,h.jsxs)("div",{style:Y,children:[(0,h.jsx)("p",{children:"Browser has loaded ERC from a cache."}),(0,h.jsx)("p",{children:"Reload web app ERC to the new build?"}),(0,h.jsx)("p",{style:G,children:`New build ${a} is available.`})]})})};var X=o(6912);const tt={color:"#a487d4",width:400,paddingLeft:10,lineHeight:2,fontSize:"18px",fontWeight:"bold"},et={color:"grey",width:400,paddingLeft:10,lineHeight:1.4,fontWeight:"bold",whiteSpace:"pre"},ot=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const{caption:s,descr:r}=o;return(0,h.jsxs)(c.A,{caption:"Information",isShow:e,onClose:n,children:[(0,h.jsx)(X.st,{children:(0,h.jsx)("p",{style:tt,children:s})}),(0,h.jsx)(X.st,{children:(0,h.jsx)("p",{style:et,children:r})})]})}));var nt=o(6204);const st={display:"flex",margin:5,lineHeight:2,fontSize:"18px",fontWeight:"bold"},rt={display:"inline-block",color:"#f44336",padding:"0 10px 0 8px"},it={display:"inline-block",color:"#a487d4",width:140},at={color:"grey",padding:"0 8px 0 12px",lineHeight:1.4,fontWeight:"bold",whiteSpace:"pre-line",wordWrap:"break-word"},lt=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const{alertCaption:s="Item",alertItemId:r="",alertDescr:i}=o,a=s+": ";return(0,h.jsxs)(c.A,{caption:"Alert",isShow:e,onClose:n,children:[(0,h.jsxs)("div",{style:st,children:[(0,h.jsx)("span",{style:rt,children:a}),(0,h.jsx)(nt.A,{style:it,text:r,title:r})]}),(0,h.jsx)("p",{style:at,children:i})]})})),ct=t=>{const e=(0,i.li)(t),o=(0,i.hb)((t=>e.current===t),[]),{current:n}=e;return e.current=t,[!(n===t),o]};var dt=o(124),pt=o(4246),ut=o(3375);const ht='

Description empty

',mt={top:54,left:20,width:"auto",maxWidth:"89%",marginLeft:0},ft={padding:16},gt=(t,e,o,n)=>({isLoading:t,isLoadFailed:e,errMsg:o,descrHtml:n}),yt=(0,a.A)((t=>{const{isShow:e,data:o,onClose:n}=t,{descrUrl:s}=o||{},[{isLoading:r,isLoadFailed:a,errMsg:l,descrHtml:d},p]=(0,i.J0)((()=>gt(!1,!1,"",""))),[u]=ct(t),[m,f]=ct(s),g=!r&&e&&s&&(""===d||m||u&&a);return(0,i.vJ)((()=>{g&&(p((t=>({...t,isLoading:!0}))),(0,dt.Z)({uri:s,onFetch:function(t){let{json:e}=void 0===t?{}:t;return f(s)&&p(gt(!1,!1,"",e||ht))},onCatch:function(t){let{error:e}=void 0===t?{}:t;return f(s)&&p(gt(!1,!0,e.message,ht))}}))}),[g,s,f]),(0,h.jsx)(c.A,{caption:"About Data Source",isShow:e,style:mt,onClose:n,children:r?(0,h.jsx)(ut.yX,{}):a?(0,h.jsx)(ut.n9,{errMsg:l}):(0,h.jsx)(pt.A,{style:ft,str:d})})}));var xt=o(6072),vt=o(8678),bt=o(5668);const Ct={paddingTop:8,paddingLeft:8},St={color:"#1b2836"},wt=t=>{let{onZoom1M:e,onZoom3M:o,onZoom6M:n,onZoomYTD:s,onZoom1Y:r}=t;return(0,h.jsxs)("div",{style:Ct,children:[(0,h.jsx)(l.A,{style:St,caption:"1M",onClick:e}),(0,h.jsx)(l.A,{style:St,caption:"3M",onClick:o}),(0,h.jsx)(l.A,{style:St,caption:"6M",onClick:n}),(0,h.jsx)(l.A,{style:St,caption:"YTD",onClick:s}),(0,h.jsx)(l.A,{style:St,caption:"1Y",onClick:r})]})},At={width:244,marginLeft:-122},jt={width:120},$t=t=>"function"==typeof t,Tt=t=>t.zhGetFromToDates?.({format:vt.Ch})??{},kt={},_t=(t,e,o)=>(0,i.hb)((()=>{const[n]=t();if($t(n.zhZoomX)){const{to:t}=Tt(n),s=o?(0,vt.zV)(t,o).getTime():(0,vt.m2)(t),r=(0,vt.A4)(t);n.zhZoomX({from:s,to:r})&&(0,i.ZC)(e).setFromTo((0,vt.Ch)(s),t)}}),[]),Et=(0,a.A)((t=>{let{isShow:e,data:o=kt,onClose:n}=t;const s=(0,i.li)(),r=(0,xt.A)((()=>{const{chart:t={}}=o;return[t,n]})),[a,d]=((t,e)=>{const o=(0,i.hb)((()=>{const[o,n]=t(),s=(0,i.ZC)(e);if($t(o.zhZoomX)&&s.getValidation().isValid){const{fromDate:t,toDate:e}=s.getValues();o.zhZoomX({from:(0,vt.A4)(t),to:(0,vt.A4)(e)})}n()}),[]),n=(0,i.Kr)((()=>[(0,h.jsx)(l.A,{caption:"Zoom",isPrimary:!0,onClick:o},"zoom")]),[]);return[o,n]})(r,s),p=_t(r,s,-1),u=_t(r,s,-3),m=_t(r,s,-6),f=_t(r,s,-12),g=_t(r,s),{chart:y={}}=o,{from:x,to:v}=Tt(y),[b,C]=(t=>{const e=t.split("-")[2];var o;return[t=>(0,vt.r$)(t,e),(o=e,`DD-MM-YYYY format must be, min 01-01-${o}`)]})(x),S=y.zhGetId?.(),w=y.zhIsDaily?.();return(0,h.jsxs)(c.A,{caption:"Zoom Chart",style:At,isShow:e,commandButtons:d,onClose:n,children:[(0,h.jsx)(bt.A.InputPeriod,{refEl:s,dateStyle:jt,placeholder:"DD-MM-YYYY",initFromDate:x,initToDate:v,errMsg:C,isPeriodValid:vt.KI,onTestDate:b,onEnter:a},S),w&&(0,h.jsx)(wt,{onZoom1M:p,onZoom3M:u,onZoom6M:m,onZoomYTD:g,onZoom1Y:f})]})}));var Dt=o(4558),It=o(4407),Lt=o(3986),Nt=o(4867),Ot=o(2543);const Mt=(0,p.WB)(),Ft=t=>{const[e,o]=(0,Nt.A)(Mt);return[e,(0,i.Kr)((()=>(0,Ot.W1)(t,190,1,{p0:[(0,Ot.VD)("Toggle Input Labels",o,!0,t)]})),[])]};var Wt=o(4218),Rt=o(701),Pt=o(2027);const Bt=(t,e,o)=>t&&"function"==typeof t[e]?t[e]:()=>o;var Ut=o(8203),zt=o(7144),Vt=o(7071),Jt=o(372);const Kt={...Dt.xu,display:"inline-block",width:275,backgroundColor:"#e1e1cb"},Zt={color:"green",width:"100%",height:30,paddingLeft:10,background:"transparent none repeat scroll 0 0",border:"medium none",outline:"medium none",fontSize:"16px",fontWeight:"bold"},qt=()=>{},Yt=t=>{let{refEl:e,name:o,placeholder:n,maxLength:s="32",onEnter:r=qt}=t;const a=(0,i.li)(),l=(0,i.li)((()=>"")),[c,d]=(0,i.J0)(""),p=(0,i.hb)((t=>{(0,i.CA)(t),d(t.target.value.trim())}),[]),u=(0,Jt.A)({onEnter:()=>l.current(),onDelete:()=>{r(""),d("")}},[r]);return l.current=()=>r(c),(0,i.Yn)(e,(()=>({getValue:()=>c,clear:()=>d("")})),[c]),(0,i.vJ)((()=>{setTimeout((()=>{const t=a.current;t&&t.hasAttribute("value")&&t.removeAttribute("value")}))})),(0,h.jsxs)("div",{style:Kt,children:[(0,h.jsx)("input",{hidden:!0,autoComplete:"username",value:o,readOnly:!0}),(0,h.jsx)("input",{ref:a,style:Zt,type:"password",autoComplete:"current-password",placeholder:n,maxLength:s,value:c,onChange:p,onKeyDown:u})]})};var Gt=o(1327);const Ht={display:"flex",margin:"5px 0"},Qt=t=>{let{refEl:e,isTitle:o,title:n,titleStyle:s,...r}=t;return(0,h.jsx)("form",{children:(0,h.jsxs)("label",{style:Ht,children:[o&&n&&(0,h.jsx)(Gt.D4,{style:s,children:n}),(0,h.jsx)(Yt,{refEl:e,...r})]})})},Xt={marginRight:0},te=t=>{let{style:e,children:o,setRefFocusLast:n,btStyle:s,onClose:r}=t;return(0,h.jsxs)(X.t4,{style:{...Xt,...e},children:[o,(0,h.jsx)(l.A,{refBt:n,style:s,caption:"Close",onClick:r})]})},ee={overflowY:"auto",maxHeight:360,paddingRight:10},oe={paddingLeft:8},ne={margLeft:0},se={margin:"0 2px"},re=[["AV","alpha-vantage","Alpha Vantage"],["FMP","fmp","Financial Modeling Prep","32"],["Intrinio","intrinio","Intrinio","32"],["Twelve","twelve","Twelve Data"]],ie=[["NDL","nasdaq-data-link","Nasdaq Data Link"],["WTO","wto","WTO","32"]],ae=[["BEA","bea","BEA","36"],["BLS","bls","BLS","32"],["EIA","eia","EIA","32"]],le=(t,e,o)=>{let{isShowLabels:n,titleStyle:s,i:r,comp:i}=o;const a=e+r;return(0,h.jsx)(Qt,{refEl:i["_ref"+a],isTitle:n,titleStyle:s,title:t[0],name:t[1],placeholder:`${t[2]} API Key`,maxLength:t[3],onEnter:i["_setKey"+a]},t[0])};class ce extends i.uA{constructor(t){super(t);const{data:e}=t;for(let t=1;t<10;t++)this["_setKey"+t]=Bt(e,"key"+t)}_hSetAll=()=>{for(let t=1;t<10;t++)this["_setKey"+t](this["iComp"+t].getValue())};_hClearAll=()=>{for(let t=1;t<10;t++)this["_setKey"+t](""),this["iComp"+t].clear()};_ref1=t=>this.iComp1=t;_ref2=t=>this.iComp2=t;_ref3=t=>this.iComp3=t;_ref4=t=>this.iComp4=t;_ref5=t=>this.iComp5=t;_ref6=t=>this.iComp6=t;_ref7=t=>this.iComp7=t;_ref8=t=>this.iComp8=t;_ref9=t=>this.iComp9=t;_ref10=t=>this.iComp10=t;render(){const{isVisible:t,isShowLabels:e,titleStyle:o,btStyle:n,onClose:s,setRefFocusLast:r}=this.props;return t?(0,h.jsxs)(Ut.A,{style:ee,children:[(0,h.jsx)(zt.A,{caption:"Economics",childStyle:oe,children:(0,h.jsx)(Vt.A,{items:ie,crItem:le,isShowLabels:e,titleStyle:o,i:1,comp:this})}),(0,h.jsx)(zt.A,{caption:"U.S. Economics",childStyle:oe,children:(0,h.jsx)(Vt.A,{items:ae,crItem:le,isShowLabels:e,titleStyle:o,i:3,comp:this})}),(0,h.jsx)(zt.A,{caption:"Stock Market",childStyle:oe,children:(0,h.jsx)(Vt.A,{items:re,crItem:le,isShowLabels:e,titleStyle:o,i:6,comp:this})}),(0,h.jsxs)(te,{style:ne,btStyle:n,onClose:s,setRefFocusLast:r,children:[(0,h.jsx)(l.A,{style:n,caption:"CLEAR ALL",onClick:this._hClearAll}),(0,h.jsx)(l.A,{style:{...n,...se},caption:"SET ALL",onClick:this._hSetAll})]})]}):null}}const de=ce;var pe=o(9466);const ue=(t,e)=>{const o=(0,i.li)(),n=Bt(t,e),s=t[e]();return[o,s,()=>{const t=(0,i.ZC)(o);t&&!n(t.getValue())&&t.showErrMsg()},()=>n("")]};var he=o(9842),me=o(5317),fe=o(2089);const ge=t=>{let{data:e,configs:o}=t;const n=(t,o)=>Bt(e,t)(o);return o.map((t=>{let[o,s]=t;return(0,h.jsx)(fe.A,{caption:o,initialValue:Bt(e,s,!1)(),chbCn:Dt.w_,btCn:Dt.eT,onCheck:(0,i.Jr)(n,s,!0),onUnCheck:(0,i.Jr)(n,s,!1)},o)}))},ye={marginRight:4},xe={marginRight:12},ve=t=>{let{isVisible:e,isShowLabels:o,titleStyle:n,btStyle:s,data:r,uiThemeOptions:i,onClose:a,setRefFocusLast:c,onChangeTheme:d}=t;const[p,u,m,f]=ue(r,"setProxy"),[g,y]=(t=>t?[]:[275,{width:275}])(o);return(0,h.jsxs)("div",{children:[(0,h.jsx)(he.A,{refEl:p,isShowLabels:o,style:y,captionStyle:n,caption:"Proxy",placeholder:"Local Http Proxy Server",initValue:u,onEnter:m,isClearBlank:!0,onClear:f,errorMsg:"Should start with http://127.0.0.1"}),(0,h.jsx)(me.A,{isShowLabels:o,width:g,caption:"UI Theme",captionStyle:n,propCaption:"c",options:i,onSelect:d}),(0,h.jsx)(ge,{data:r,configs:pe.ys}),(0,h.jsx)(te,{style:xe,btStyle:s,onClose:a,setRefFocusLast:e?c:void 0,children:(0,h.jsx)(l.A,{style:{...s,...ye},caption:"SET PROXY",onClick:m})})]})},be="User Settings",Ce={position:"static",width:380,maxHeight:446,margin:"70px auto 0px"},Se={width:295},we={width:82},Ae={width:100},je=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const[s,r]=(0,It.Ri)(),a=(0,Lt.A)(),l=(0,i.hb)((t=>{(0,Wt.Sr)(t),a()}),[]),[d,p]=Ft(Dt.aw),u=(0,Dt.FG)(Ce,!d&&Se);return(0,h.jsx)(c.A,{refFocusLast:s,style:u,caption:be,menuModel:p,isWithButton:!1,isShow:e,onClose:n,children:(0,h.jsxs)(Rt.A,{ariaLabel:be,id:"sd",isShow:e,setRefFocusLast:r,isShowLabels:d,data:o,onClose:n,children:[(0,h.jsx)(Pt.A,{title:"ApiKeys",children:(0,h.jsx)(de,{titleStyle:we})}),(0,h.jsx)(Pt.A,{title:"Options",children:(0,h.jsx)(ve,{titleStyle:Ae,uiThemeOptions:Wt.oP,onChangeTheme:l})})]})})}));var $e=o(8248),Te=o(4250),ke=o(2440),_e=o(8801),Ee=o(1990),De=o(9759);const Ie={width:300},Le={width:70},Ne=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const s=(0,$e.A)(e),[r,a]=(0,Te.A)(null),[d,p]=(0,Te.A)(null),[u,m]=(0,i.J0)([]),[f,g]=(0,i.J0)((()=>({groupOptions:(0,_e.QC)(),listOptions:[]}))),{groupOptions:y,listOptions:x}=f,v=(0,i.hb)((t=>{const{caption:e,lists:o}=t||{};e?(r(e),g((t=>({...t,listOptions:o||[]})))):r(null)}),[]),b=(0,i.hb)((t=>{const{caption:e}=t||{};d(e||null)}),[]),C=[(0,h.jsx)(l.A,{caption:"Add",title:"Add Item To Watch List",isPrimary:!0,onClick:()=>{const t=(()=>{const t=[];return a()||t.push((0,Ee.L2)("Group")),p()||t.push((0,Ee.L2)("List")),t})();if(0===t.length){const{caption:t,config:e}=o,n=a(),s=p();(0,_e.sT)({caption:t,groupCaption:n,listCaption:s,config:e}),m((t=>t.length>0?[]:t))}else m(t)}},"add")],S=(0,i.hb)((()=>{m((t=>t.length>0?[]:t)),n()}),[n]);(0,_e.w9)((t=>{t&&t.forActionType===ke.Xk&&(t.messages?m(t.messages):(m((t=>t.length>0?[]:t)),n()))})),(0,i.vJ)((()=>{if(s){const t=(0,_e.QC)(),e=a();t!==y?(r(null),d(null),g({groupOptions:t,listOptions:[]})):e&&g((t=>{const o=(0,_e.rF)(e);return x!==o?(d(null),{...t,listOptions:o}):t}))}}),[s]);const{caption:w}=o||{};return(0,h.jsxs)(c.A,{style:Ie,caption:"Add To Watch List",isShow:e,commandButtons:C,onClose:S,children:[(0,h.jsx)(bt.A.RowText,{captionStyle:Le,caption:"Item:",text:w}),(0,h.jsx)(bt.A.RowInputSelect,{caption:"Group",captionStyle:Le,width:"202",options:y,onSelect:v}),(0,h.jsx)(bt.A.RowInputSelect,{caption:"List",captionStyle:Le,width:"202",onSelect:b,options:x}),(0,h.jsx)(De.A,{validationMessages:u})]})})),Oe=(t,e)=>{const[o,n]=(0,Te.A)();o(t.toChart);const s=(0,i.li)(),r=(0,i.Kr)((()=>()=>{const t=n(),o=(0,i.ZC)(s);t&&o&&o.getValues().forEach((e=>{t.zhAddSeriaToYAxis(e)})),e()}),[]),a=(0,i.Kr)((()=>(0,h.jsx)(l.A,{caption:"Paste & Close",isPrimary:!0,onClick:r},"paste")),[r]);return[n(),s,a]},Me={paddingBottom:4,margin:"0 0 8px 16px",fontWeight:"bold",borderBottom:"2px solid black"},Fe={display:"inline-block",color:"#a487d4",width:200,verticalAlign:"bottom"},We=t=>{let{chartId:e}=t;return(0,h.jsxs)("div",{style:Me,children:[(0,h.jsx)(Gt.W,{children:"From Chart: "}),(0,h.jsx)(nt.A,{style:Fe,text:e})]})};var Re=o(6134),Pe=o(1569),Be=o(1853),Ue=o(7686),ze=o(2620);const Ve=t=>{let{className:e,model:o,color:n,setColor:s}=t;const[r,i,a]=(0,d.o)(!1);return(0,h.jsx)(Ue.A,{className:e,color:n,onClick:i,children:(0,h.jsx)(ze.A,{isShow:r,model:o,onClickCell:s,onClose:a})})};var Je=o(6476);const Ke=(0,Dt.PX)(Dt.eT,Dt.WE),Ze={padding:"0 0 16px 16px"},qe={verticalAlign:"middle"},Ye={...qe,display:"inline-block",width:100,padding:"0 16px 0 4px",textAlign:"right",fontSize:"16px",fontWeight:"bold"},Ge={...qe},He={...qe,marginLeft:24},Qe={minHeight:100},Xe=()=>{},to=t=>{const{seria:e,yAxisOptions:o,compIndex:n,onReg:s=Xe,onUnReg:r=Xe}=t,{color:a,name:l=""}=e,c=(0,i.li)(),d=(0,i.Bi)(),[p,u]=(0,Te.A)(),[m,f,g]=(0,Re.A)(!1),[y,x]=(0,i.J0)((()=>a||"#7cb5ec"));return(0,i.Yn)(c,(()=>({getValue:()=>{const{userOptions:t}=e,{data:o,name:n}=t||{};return{isChecked:(0,i.ZC)(m),color:y,yIndex:(u()||{}).value,data:o,name:n}}})),[y]),(0,i.vJ)((()=>(s(c,n),()=>r(n))),[]),(0,i.vJ)((()=>{p()}),[t]),(0,h.jsxs)("div",{style:Ze,children:[(0,h.jsx)(Be.A,{className:Dt.w_,style:Ge,labelId:d,onCheck:f,onUnCheck:g}),(0,h.jsx)(nt.A,{id:d,className:Ke,style:Ye,text:l}),(0,h.jsx)(Ve,{className:"p-r va-m",model:Pe.A.palette,color:y,setColor:x}),(0,h.jsx)(Je.A,{placeholder:"withYAxis",width:"135",style:He,optionsStyle:Qe,options:o,noFooterBts:!0,onSelect:p})]})},eo=t=>{let{chartId:e,series:o,options:n,onReg:s,onUnReg:r}=t;return(o||[]).filter((t=>t&&t.visible)).map(((t,o)=>(0,h.jsx)(to,{seria:t,compIndex:o,yAxisOptions:n,onReg:s,onUnReg:r},`${e}_${t.name||""}_${o}`)))},oo=(t,e)=>({caption:t,value:e}),no=t=>{let{refEl:e,style:o,toChart:n,fromChart:s}=t;const r=(0,i.li)([]),[a,l]=(0,i.Kr)((()=>[(t,e)=>{r.current[e]=t},t=>{r.current[t]=null}]),[]);(0,i.Yn)(e,(()=>({getValues:()=>{const[t,e]=(t=>{const{xAxis:e}=t||{},[o]=e||[],{dataMin:n,dataMax:s,userMin:r,userMax:i}=o&&o.getExtremes()||{};return[r||n,i||s]})(s);return(0,i.ZC)(r).map((t=>(0,i.y5)(t))).filter((t=>t&&t.isChecked)).map((o=>(o.userMin=t,o.userMax=e,o)))}})),[s]);const c=(t=>[oo("withYAxis")].concat((0,i.lZ)(t.yAxis,((t,e)=>oo(`toYAxis${e+1}`,e)))||[]))(n),{userOptions:d,series:p}=s||{},{zhConfig:u}=d||{},{id:m="id"}=u||{};return(0,h.jsxs)(Ut.A,{style:o,children:[(0,h.jsx)(We,{chartId:m}),(0,h.jsx)(eo,{chartId:m,series:p,options:c,onReg:a,onUnReg:l})]})},so={position:"static",width:365,height:340,margin:"70px auto 0px"},ro={overflowY:"auto",height:250,padding:"8px 10px 0 0"},io={},ao=(0,a.A)((t=>{let{isShow:e,data:o=io,onClose:n}=t;const[s,r,i]=Oe(o,n),{fromChart:a}=o;return(0,h.jsx)(c.A,{isShow:e,style:so,caption:"Paste Series To",commandButtons:i,onClose:n,children:(0,h.jsx)(no,{refEl:r,style:ro,fromChart:a,toChart:s})})})),lo="It seems you are offline",co=Promise.resolve.bind(Promise),po=(0,n.j)({[r.Ik]:Z,[r.mq]:Q,[r.$t]:ot,[r.XB]:lt,[r.jN]:yt,[r.qv]:Et,[r.gh]:je,[r.q0]:Ne,[r.oX]:ao,_loadMD(){return o.e(430).then(o.bind(o,299)).then((t=>this.MD=co(t.default))).catch((t=>console.log(lo)))},getMD(){return this.MD||this._loadMD()},get[r.Zf](){return this.getMD().then((t=>t.CeDialog))},get[r.lS](){return this.getMD().then((t=>t.SbsDialog))},get[r.XT](){return this.getMD().then((t=>t.CrDialog))},_loadWL(){return o.e(288).then(o.bind(o,6814)).then((t=>this.WL=co(t.default))).catch((t=>console.log(lo)))},getWL(){return this.WL||this._loadWL()},get[r.R0](){return this.getWL().then((t=>t.LoadItem))},get[r.VO](){return this.getWL().then((t=>t.EditGroup))},get[r.aF](){return this.getWL().then((t=>t.EditList))},loadDialogs(t){t===s.mU&&this._loadWL()}}),uo=t=>co(t?po[t]:void 0),ho=t=>{po.loadDialogs(t)}},6674:(t,e,o)=>{"use strict";o.d(e,{A:()=>f});var n=o(1315),s=o(1569),r=o(1205),i=o(7686),a=o(2620),l=o(1394),c=o(3138),d=o(4848);const p="#90ed7d",u={padding:"6px 6px 6px 0"},h={width:80,margin:"0 8px 2px 5px"},m=()=>{},f=t=>{let{style:e,captionStyle:o,inputStyle:f,caption:g,initValue:y=p,onEnter:x=m}=t;const v=(0,n.li)(),[b,C]=(0,n.J0)(y),[S,w]=(0,n.J0)(!1),A=(0,n.hb)((t=>{x(t),C(t)}),[x]),j=(0,n.hb)(((t,e)=>{e.target===v.current&&w((t=>!t))}),[]),$=(0,n.hb)((()=>{w(!1)}),[]);(0,n.vJ)((()=>C(y)),[y]);const T=(0,l.A)(g);return(0,d.jsxs)("div",{style:{...u,...e},children:[(0,d.jsxs)("label",{children:[T&&(0,d.jsx)("span",{style:{...c.F,...o},children:T}),(0,d.jsx)(r.A,{style:{...h,...f},initValue:b,maxLength:20,onEnter:A})]}),(0,d.jsx)(i.A,{refEl:v,className:"p-r va-b",color:b,onClick:j,children:(0,d.jsx)(a.A,{isShow:S,model:s.A.palette,onClickCell:A,onClose:$})})]})}},4654:(t,e,o)=>{"use strict";o.d(e,{A:()=>d});var n=o(1205),s=o(1394),r=o(3138),i=o(4848);const a={padding:"6px 0 6px 6px"},l={width:220},c=(t,e,o)=>t||{...e,...o},d=t=>{let{refEl:e,styleRoot:o,rootStyle:d,captionCn:p,captionStyle:u,styleCaption:h,caption:m,inputStyle:f,styleInput:g,...y}=t;return(0,i.jsx)("div",{style:c(d,a,o),children:(0,i.jsxs)("label",{children:[(0,i.jsx)("span",{className:p,style:c(u,r.F,h),children:(0,s.A)(m||"Input")}),(0,i.jsx)(n.A,{...y,refEl:e,style:c(f,l,g)})]})})}},1394:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n=t=>t&&-1===t.indexOf(":")?`${t}:`:t},4428:(t,e,o)=>{"use strict";o.d(e,{A:()=>g});var n=o(2190);const s=()=>new Date,r=t=>t.getUTCFullYear(),i=()=>r(s()),a=t=>t.getUTCMonth(),l=()=>a(s()),c=(t,e,o)=>{const n=[];for(let s=0;s"number"==typeof e&&(t[e]||{}).value||"",u=function(t,e){return void 0===t&&(t=[]),[t,p(t,e)]},h=function(t,e,o){void 0===e&&(e=1);const s=(0,n.o0)(t)?"-"+o:o,r=c(((t,e)=>{((t,e,o)=>{const n=l(),s=Math.floor((n+1)/3);let r=4===s?3:s;for(let n=0;n<4;n++)r<1&&(e-=1,r=4),t.push(d(`${e}${o}${r}`)),r-=1})(t,e,s)}),i(),8);return u(r,e)},m=function(t,e){void 0===e&&(e=1);const o=c(((t,e)=>{t.push(d(""+e))}),i()-1,12);return u(o,e-1)},f={M:function(t,e){void 0===e&&(e=2);const o=s(),i=(0,n.o0)(t)?"-":"M",p=c(((t,e)=>{((t,e,o)=>{let n,s,r=l();for(let i=0;i<12;i++)r-=1,r>-1?(n=r+1>9?r+1:"0"+(r+1),s=`${e}${o}${n}`):(r=11,s=`${e-=1}${o}12`),t.push(d(s))})(t,e,i)}),r(o),4);return(0,n.oS)(t)&&((t,e,o)=>{const n=a(e);e.setDate(e.getDate()+1);const s=a(e),i=s===n?void 0:d(`${r(e)}${o}${s}`);i&&t.unshift(i)})(p,o,i),u(p,e)},Q:h,K:h,S:function(t,e){void 0===e&&(e=3);const o=(0,n.oS)(t)?"-S":"S",s=c(((t,e)=>{t.push(d(`${e}${o}2`),d(`${e}${o}1`))}),i(),24);return u(s,e)},Y:m,EMPTY:u,DF:m},g=function(t,e,o){return void 0===t&&(t="M"),(f[t]||f.DF)(o,e,t)}},3057:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(4867),s=o(391),r=o(3941),i=o(2569),a=o(5286);const l=(0,s.WB)(),c=t=>{let{onAbout:e,onClose:o,...s}=t;const[c,d]=(0,n.A)(l),[p,u]=(0,r.A)(e);return[p,c,u,(0,i.A)({...s,toggleLabels:d,onAbout:e}),...(0,a.A)(o)]}},2783:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315),s=o(9495);const r=()=>{const t=(0,n.li)({}),[e,o,r]=(0,s.R)(),i=(0,n.Kr)((()=>(e,o)=>{t.current[o]=e}),[]);return[t,e,o,r,i]}},3941:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(4867),s=o(6984),r=o(4558),i=o(2543);const a=(t,e)=>(0,i.VD)(t,e,!0,r.aw),l=(t,e)=>(0,i.W1)(r.aw,185,1,{p0:[a("Toggle Toolbar",t),a("About Data Source",e)]}),c=t=>{const[e,o]=(0,n.A)(!0);return[e,(0,s.A)((()=>l(o,t)))]}},4066:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=()=>{const t=(0,n.li)([0]);return[t,...(0,n.Kr)((()=>[e=>{(0,n.ZC)(t).push(e)},e=>{t.current=(0,n.ZC)(t).filter((t=>t!==e))}]),[])]}},2569:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(6984);const s=(t,e,o)=>({caption:t,title:e,onClick:o}),r="Click to toggle",i=t=>{let{toggleLabels:e,toggleInputs:o,toggleOptions:i,toggleDate:a,onAbout:l}=t;return(0,n.A)((()=>[e?s("L",`${r} input labels`,e):void 0,o?s("T",`${r} inputs`,o):void 0,i?s("O",`${r} dialog options`,i):void 0,a?s("D",`${r} date input`,a):void 0,s("A","About data source",l)].filter(Boolean)))}},5286:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=Array.isArray,r=t=>{const[e,o]=(0,n.J0)([]),r=(0,n.hb)((t=>{s(t)&&o((e=>0===e.length&&0===t.length?e:t))}),[]),i=(0,n.hb)((()=>{t(),r([])}),[]);return[e,r,i]}},8353:(t,e,o)=>{"use strict";o.d(e,{Ic:()=>i,ND:()=>n,cP:()=>a,lM:()=>s,v$:()=>r});const n="popup-menu",s={left:5,zIndex:100,padding:"6px 14px 10px 12px"},r={padding:"3px 0 6px"},i="#1b75bb",a="#a487d4"},7591:(t,e,o)=>{"use strict";o.d(e,{A:()=>N});var n=o(4558),s=o(1327),r=o(7144),i=o(6476),a=o(3608),l=o(7927),c=o(6912),d=o(2505),p=o(4848);const u="#1b75bb",h=`${n.c5} ${s.sK}`,m={height:36,paddingTop:6,width:100},f={lineHeight:"unset"},g={color:u},y=t=>{let{children:e,...o}=t;const n=(0,d.A)(o),[s,y]=(0,a.A)(o),x={...m,...(0,l.A)(o),...o.labelStyle};return(0,p.jsx)(r.A,{labelId:n,caption:y,style:f,rowStyle:c.JK,className:h,ocStyle:x,captionStyle:g,openColor:u,CompAfter:(0,p.jsx)(i.A,{...s,labelId:n}),children:e})};var x=o(1315),v=o(7686),b=o(9073),C=o(1358);const S=t=>{let{refEl:e,isShow:o,style:n,title:s,initialValue:r=1,maxValue:i=4}=t;const[a,l]=(0,x.J0)(r),c=(0,x.hb)((()=>{l((t=>t({getValue:()=>a})),[a]),o?(0,p.jsx)(C.A,{style:n,title:s,caption:a,onClick:c}):null},w={marginRight:4},A=t=>{let{isLong:e,colors:o,onClick:n}=t;const s=e?o.length:5;return o.map(((t,e)=>e{let{refEl:e,isLong:o,chartType:s}=t;const r=(0,x.li)(),[i,a]=(0,x.J0)(b.fB),[l,c]=(0,x.Kr)((()=>[t=>{t&&a(t)},()=>{a(b.fB)}]),[]);(0,x.Yn)(e,(()=>({getValue:()=>({seriaColor:i!==b.fB?i:void 0,seriaWidth:I(s)?(0,x.y5)(r):void 0})})),[i,s]);const d=I(s),u=(0,n.FG)(k,!d&&_);return(0,p.jsxs)("div",{style:T,children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(v.A,{color:i,className:"va-b",style:D,onClick:c}),(0,p.jsx)(A,{isLong:o,colors:j,onClick:l})]}),(0,p.jsxs)("div",{style:u,children:[(0,p.jsx)(S,{refEl:r,isShow:d,style:E,title:"Line Width"}),(0,p.jsx)(A,{isLong:o,colors:$,onClick:l})]})]})},N=t=>{let{refSeriaColor:e,chartType:o,isShowLabels:n,labelStyle:s,placeholder:r,selectWidth:i,options:a,onSelectChart:l}=t;return(0,p.jsx)(y,{isShowLabels:n,labelStyle:s,caption:"Chart",placeholder:r||a[0].caption,width:i,options:a,onSelect:l,children:(0,p.jsx)(L,{refEl:e,isLong:n,chartType:o})})}},2089:(t,e,o)=>{"use strict";o.d(e,{A:()=>l});var n=o(1315),s=o(9495),r=o(1909),i=o(4848);const a=()=>{},l=t=>{let{initialValue:e,onCheck:o=a,onUnCheck:l=a,...c}=t;const[d,p,u]=(0,s.o)(e),h=(0,n.hb)((()=>{o(),p()}),[o,p]),m=(0,n.hb)((()=>{l(),u()}),[l,u]);return(0,i.jsx)(r.A,{...c,value:d,hCheck:h,hUnCheck:m})}},66:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315),s=o(2089),r=o(4848);const i=t=>{let{onToggle:e,id:o,...i}=t;const[a,l]=(0,n.Kr)((()=>[()=>e(!0,o),()=>e(!1,o)]),[e,o]);return(0,r.jsx)(s.A,{...i,onCheck:a,onUnCheck:l})}},6223:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315),s=o(1909),r=o(4848);const i=()=>{},a=t=>{let{onToggle:e=i,...o}=t;const[a,l]=(0,n.Kr)((()=>[()=>{e(!0)},()=>{e(!1)}]),[e]);return(0,r.jsx)(s.A,{...o,hCheck:a,hUnCheck:l})}},1909:(t,e,o)=>{"use strict";o.d(e,{A:()=>p});var n=o(1315),s=o(4558),r=o(4874),i=o(1853),a=o(4848);const l=(0,s.P5)("bt-chb"),c="#1b2836",d={padding:"6px 0 0 16px"},p=t=>{let{chbCn:e,btCn:o,style:p,value:u,caption:h,captionStyle:m,color:f=c,hCheck:g,hUnCheck:y}=t;const x=(0,n.Bi)(),v=(0,n.hb)((()=>{u?y():g()}),[u,g,y]),b=u?o:void 0,C=(0,s.FG)(m,!b&&u&&{color:f}),S=!!h;return(0,a.jsxs)("div",{style:{...d,...p},children:[(0,a.jsx)(i.A,{value:u,className:e,color:f,labelId:S?x:void 0,onCheck:g,onUnCheck:y}),S&&(0,a.jsx)(r.A,{id:x,tabIndex:"-1",className:(0,s.PX)(l,b),style:C,onClick:v,children:h})]})}},6912:(t,e,o)=>{"use strict";o.d(e,{JK:()=>i,st:()=>a,t4:()=>l});var n=o(4558),s=o(4848);const r=t=>e=>{let{style:o,children:r}=e;return(0,s.jsx)("div",{style:(0,n.FG)(t,o),children:r})},i={display:"flex",alignItems:"center",margin:5},a=r(i),l=r({display:"flex",justifyContent:"flex-end",flexWrap:"wrap",margin:"8px 4px 10px 0"})},5317:(t,e,o)=>{"use strict";o.d(e,{A:()=>d});var n=o(1327),s=o(6476),r=o(3608),i=o(7927),a=o(6912),l=o(2505),c=o(4848);const d=t=>{const e=(0,l.A)(t),[o,d]=(0,r.A)(t);return(0,c.jsxs)(a.st,{children:[(0,c.jsx)(n.D4,{id:e,style:(0,i.A)(t),children:d}),(0,c.jsx)(s.A,{...o,labelId:e})]})}},9842:(t,e,o)=>{"use strict";o.d(e,{A:()=>b});var n=o(1327),s=o(1315),r=o(372),i=o(9355),a=o(8862),l=o(9195),c=o(4848);const d={display:"flex"},p={...l.nd,width:"calc(100% - 50px)",paddingLeft:0,marginLeft:10,marginBottom:5},u={borderBottomStyle:"solid",borderBottomWidth:1},h={margin:"5px 8px 0 auto"},m=t=>({initValue:t,value:t,errorInput:void 0,isValid:!0}),f=()=>!0,g=()=>{},y=(t,e)=>{let{refEl:o,style:n,inputStyle:y,maxLength:x=64,initValue:v="",placeholder:b="Input Pattern",errorMsg:C,onTest:S=f,onEnter:w,isClearBlank:A=!1,onClear:j=g}=t;const $=(0,s.li)(),T=(0,s.li)(),k=(0,s.li)(),[_,E]=(0,s.J0)((()=>m(v))),{value:D,isValid:I,errorInput:L}=_,N=(0,s.hb)((t=>{const{value:e}=t.target;E((t=>({...t,value:e,errorInput:void 0,isValid:S(e)})))}),[S]),O=(0,r.A)({onEnter:w,onDelete:()=>E(m(v))},[v,w]),M=(0,s.hb)((()=>{j(),(0,s.ZI)($),E(m(A?"":v))}),[v,j,A]);(0,s.vJ)((()=>{_.initValue!==v&&E(m(v))}),[v]),T.current=()=>(D||"").trim(),k.current=()=>S(D),(0,s.Yn)(o,(()=>({getValue:()=>T.current(),isValid:()=>k.current(),focus:()=>(0,s.ZI)($),showErrMsg:()=>E((t=>({...t,isValid:!1,errorInput:C})))})),[C]);const F=(t=>({...u,borderBottomColor:(0,l.O3)(t)}))(I),W=(t=>({...h,stroke:(0,l.O3)(t)}))(I);return(0,c.jsxs)("div",{style:{...l.v$,...n},children:[(0,c.jsxs)("div",{style:d,children:[(0,c.jsx)("input",{type:"text",style:{...p,...y,...F},ref:$,name:"text-date",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,placeholder:b,value:D,maxLength:x,onChange:N,onKeyDown:O}),D||L?(0,c.jsx)(i.a,{style:W,onClick:M}):null]}),(0,c.jsx)(a.A,{msg:L})]})};var x=o(7927),v=o(6912);const b=t=>{let{refEl:e,isShowLabels:o,captionStyle:s,caption:r,...i}=t;return(0,c.jsxs)(v.st,{children:[(0,c.jsx)(n.D4,{style:(0,x.A)({isShowLabels:o,captionStyle:s}),children:r}),(0,c.jsx)(y,{refEl:e,...i})]})}},7927:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4558);const s=t=>{let{isShowLabels:e,captionStyle:o}=t;return e?o:n.JS}},3608:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});const n=(t,e,o)=>[t.slice(0,e)+o,t],s=t=>"string"!=typeof t?[]:(t=>t.length>11&&-1===t.indexOf(" "))(t)?n(t,11,"."):t.length>30?n(t,30,"..."):[t],r=t=>{let{isShowLabels:e,caption:o="",width:n=250,...r}=t;return[{width:n,...r,optionName:e?"":o},...s(o)]}},2505:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{let{isShowLabels:e}=t;const o=(0,n.Bi)();return e?o:void 0}},391:(t,e,o)=>{"use strict";o.d(e,{$O:()=>l,WB:()=>s,dY:()=>r,s:()=>a,zK:()=>n});const n=()=>window&&window.innerWidth,s=function(t){return void 0===t&&(t=700),(n()||t+1)>t},r=document&&"ontouchstart"in document.documentElement,i=s(),a=!r||i,l=(t,e)=>{if(s())return{width:t};const o=(t=>(n()||t+16)-16)(t);return{width:o>e?o:e}}},8376:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=()=>!0,r=function(t,e){return void 0===e&&(e=s),(0,n.ph)(t,e)}},4575:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=(t,e)=>t.isShow===e.isShow,r=t=>(0,n.ph)(t,s)},6736:(t,e,o)=>{"use strict";o.d(e,{Ly:()=>a,P0:()=>r,iw:()=>l});var n=o(1315),s=o(391);const r=t=>{let{keyCode:e}=t;return 13===e||32===e},i=t=>(e,o)=>(0,n.hb)((o=>{t(o)&&(o.preventDefault(),o.stopPropagation(),e(o))}),o||[]),a=i(r),l=s.s?i((t=>27===t.keyCode||"Escape"===t.key)):()=>{}},9495:(t,e,o)=>{"use strict";o.d(e,{R:()=>i,o:()=>r});var n=o(1315);const s=(t,e)=>t[0]!==e?[e,t[1],t[2]]:t,r=t=>{const[e,o]=(0,n.J0)((()=>[!!t,()=>o((t=>s(t,!0))),()=>o((t=>s(t,!1)))]));return e},i=t=>{const[e,o]=(0,n.J0)((()=>[!!t,()=>o((t=>s(t,!t[0]))),()=>o((t=>s(t,!1)))]));return e}},634:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(2291);const s=t=>{let{isInitShow:e,useMsBrowserShow:o,browserType:s}=t;const[r,i,a,l]=(0,n.A)(e);return o((t=>{t&&t.browserType===s&&i()})),[r,a,l]}},948:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=(t,e)=>{(0,n.ZC)(e)&&(document.removeEventListener("click",t,!0),(0,n.nl)(e,null))},r=(t,e)=>{const o=(0,n.li)(null),r=(0,n.li)(null),i=(0,n.hb)((t=>{const s=(0,n.ZC)(o);s&&s.contains&&!s.contains(t.target)&&(t.stopPropagation(),e(t))}),[]);return(0,n.vJ)((()=>{t&&!(0,n.ZC)(r)?(document.addEventListener("click",i,!0),(0,n.nl)(r,!0)):t||s(i,r)})),(0,n.vJ)((()=>()=>s(i,r)),[]),o}},6072:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{const e=(0,n.li)(null);return(0,n.Nf)((()=>{e.current=t})),(0,n.hb)((function(){return(0,e.current)(...arguments)}),[])}},4407:(t,e,o)=>{"use strict";o.d(e,{C:()=>i,Ri:()=>r,ay:()=>s,hT:()=>a});var n=o(1315);const s=t=>{const e=(0,n.li)();return[e,(0,n.hb)((()=>{t(),(0,n.ZI)(e)}),[])]},r=()=>{const t=(0,n.li)(),e=(0,n.hb)((e=>{(0,n.nl)(t,e)}),[]);return[t,e]},i=t=>{const e=(0,n.li)();return(0,n.vJ)((()=>{t&&(0,n.ZI)(e)}),[t]),e},a=(t,e,o)=>{(0,n.vJ)((()=>{t&&setTimeout((()=>(0,n.ZI)(e)),o||1e3)}),[t])}},8248:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=t=>{const e=(0,n.li)(),{current:o}=e;return e.current=t,o},r=t=>!s(t)&&t},4250:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=(t,e)=>{const o=(0,n.li)(t);return(0,n.Kr)((()=>[t=>{o.current=t},()=>o.current||e]),[])}},6134:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{const e=(0,n.li)(t),[o,s]=(0,n.Kr)((()=>[()=>e.current=!0,()=>e.current=!1]),[]);return[e,o,s]}},6984:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{const e=(0,n.li)(null);return null===e.current&&(e.current=t()),e.current}},3986:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=()=>({}),r=()=>(0,n.WO)(s)[1]},2291:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(9495),s=o(6736);const r=t=>{const[e,o,r]=(0,n.o)(t);return[e,o,r,(0,s.iw)(r)]}},5032:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315);const s=Date.now||(()=>new Date.getTime),r=function(t,e){void 0===e&&(e=800);let o=0;return function(){const n=s();if(n-o>e)return o=n,t(...arguments)}},i=(t,e,o)=>(0,n.hb)(r(t,o),e||[])},4867:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315);const s=t=>!!t,r=(t,e)=>(0,n.bj)(e)?e:!t,i=t=>(0,n.WO)(r,t,s)},330:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315);const s=Object.prototype.hasOwnProperty,r=t=>(0,n.fp)(t)?t():t,i=(t,e)=>(0,n.O8)(e)?{...t,[e]:!t[e]}:(0,n.sA)(e)&&((t,e)=>{let o;for(o in e)if(s.call(e,o)){if(!(0,n.bj)(e[o]))return;if(t[o]!==e[o])return!0}})(t,e)?{...t,...e}:t,a=t=>(0,n.WO)(i,t||{},r)},8358:(t,e,o)=>{"use strict";o.d(e,{SW:()=>s,Tp:()=>c,e3:()=>d,mz:()=>a,n4:()=>r,xp:()=>l});var n=o(1315);const s=!o(391).dY,r="keydown";let i=Object.create(null);const a=(t,e,o)=>i&&(i[t]=[e,o]),l=t=>i&&(i[t]=void 0),c=()=>{i=null},d=t=>{if((t=>(t.altKey||t.metaKey)&&t.key)(t)){const[e,o]=i[t.key.toUpperCase()]||[];"function"==typeof e&&(t.stopImmediatePropagation(),(0,n.ZI)(o),e(t))}}},2543:(t,e,o)=>{"use strict";o.d(e,{VD:()=>s,W1:()=>r,z7:()=>n});const n=(t,e,o)=>({type:"sub",id:t,name:e,cn:o}),s=function(t,e,o,n){return void 0===o&&(o=!0),{name:t,onClick:e,isClose:o,cn:n}},r=(t,e,o,n)=>({...n,titleCl:t,pageWidth:e,maxPages:o})},2019:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315),s=o(4848);const r={display:"inline-block",paddingTop:4},i=t=>{let{isHttp:e,className:o="native-link",style:i,href:a,caption:l}=t;const c=(0,n.jd)(a,e),d={...r,...i};return c&&l?(0,s.jsx)("a",{className:o,style:d,href:c,children:l}):null}},9517:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(2019),s=o(4848);const r="NASDAQ Link",i=t=>{let{item:e={},caption:o=r,style:i}=t;const{text:a="",value:l}=(d=e)&&"object"==typeof d?e:{value:e},c=(t=>"string"==typeof t)(l)?l.trim():a.split("-")[0].trim();var d;return(0,s.jsx)(n.A,{style:i,href:`https://www.nasdaq.com/symbol/${c}`,caption:`${o} ${c}`})}},4558:(t,e,o)=>{"use strict";o.d(e,{$N:()=>l,CQ:()=>E,DH:()=>S,Dq:()=>P,FG:()=>F,JS:()=>I,Jq:()=>s.Jq,KJ:()=>q,Ke:()=>N,P5:()=>f,PX:()=>i,Qd:()=>_,SX:()=>R,Sf:()=>Y,TY:()=>m,Th:()=>Z,WE:()=>u,Yo:()=>h,Z6:()=>z,_F:()=>Q,aM:()=>tt,ae:()=>k,aw:()=>A,c5:()=>T,d6:()=>et,eA:()=>j,eT:()=>d,fy:()=>c,hI:()=>X,lS:()=>M,lp:()=>O,mL:()=>D,mg:()=>g,nV:()=>B,tP:()=>y,vz:()=>G,w_:()=>p,x$:()=>H,xu:()=>L,zV:()=>C,zq:()=>V});var n=o(1315),s=o(4218);const r=t=>(0,n.Ep)(t)?t[0]?t[1]:"":t||"",i=(t,e)=>{const o=r(t),n=r(e);return o?n?`${o} ${n}`:o:n||void 0},a=t=>e=>i(e,t),l="toggle-arrow",c="show-popup",d="black",p="chb-bl",u="not-selected",h="text-ellipsis",m="w-100",f=a("bold-16"),g=a("with-scroll"),y=a(u),x=t=>e=>y(`${e} ${t}`),v=a("menuitem"),b=t=>y(f(v(t))),C=b("row__topic"),S=b("row__pane-topic"),w=x(d),A=w(S),j=w(b("row__type2-topic")),$="open-close",T=`${$} cfs-dark`,k=`${$}__exp`,_=`${$} cfs-black`,E={display:"block"},D={display:"inline-block"},I={display:"none"},L={borderRadius:2},N={marginLeft:8,paddingLeft:8,borderLeft:"solid 2px var(--btf-c)"},O=function(t,e){return void 0===e&&(e=26),{...D,color:t,width:e,height:e,textAlign:"center",border:`solid 2px ${t}`,borderRadius:"50%"}},M=(t,e,o,n)=>t?[i(e,[!o,n||c]),E]:[e,I],F=(t,e)=>e?{...t,...e}:t,W="c-bg",R=a(W),P=t=>R(i("bs-cont",t)),B=a("scroll-container-y"),U="el-b",z=a(`${W} ${U}`),V=a(U),J="el-bg",K="el-c",Z=a(`${K} ${J}`),q=a(J),Y=a(`${W} ${K} el-bb`),G=a("bt-circle-hf"),H=x("bt-circle"),Q=a("bold"),X=t=>`bt-svg-${t}`,tt=a("flex-row"),et=tt("hrz-container")},9073:(t,e,o)=>{"use strict";o.d(e,{fB:()=>r,fN:()=>n,ui:()=>s});const n="#f1d600",s="#80c040",r="rgba(0, 0, 0, 0)"},4218:(t,e,o)=>{"use strict";o.d(e,{oP:()=>j,Jq:()=>L,Sr:()=>W});const n="silver",s="#1b2836",r="grey",i="black",a="#8bc34a",l="#c0c0c0",c="b-bg",d="s-c2",p="c-bg",u="el-bg",h="btf-c",m="c-bl",f=[c,"s-c1",d,p,"bh-c","lb-bc",u,"el-c",h,m],g=["#5f5f5f",a,s,"#4d4d4d",l,s,s,n,s,i],y="#dce1e5",x="#64473d",v=["#9e9e9e",a,x,"#e8e0cb","#5b5b5b",r,x,n,"#785133",i],b="GREY",C="BLACK",S="WHITE",w="SAND",A="SANDL_L",j=[{c:"Grey",v:b},{c:"White",v:S},{c:"Sand",v:w},{c:"Sand Light",v:A},{c:"Black",v:C}],$=b,T={[b]:g,[C]:g,[S]:["#e1e1e1",a,y,"#f1f2f3",l,r,y,"#212020",r,i],[w]:v,[A]:v},k="#463222",_={[C]:{[c]:"#202328",[p]:i,[u]:"#292e37",[h]:"#009688",[m]:r},[w]:{[d]:k,[p]:"#e6d5a9",[u]:k}},E=t=>f.reduce(((e,o,n)=>(e[o]=t[n],e)),{}),D=Object.create(null);D[$]=E(T[$]);let I=D[$][m];const L=()=>I,N=t=>{const e=(t=>{if(!D[t]){const e=T[t];if(!e)return D[$];D[t]={...E(e),..._[t]||void 0}}return D[t]})(t),o=document.body.style,n=T[$];f.forEach(((t,s)=>{o.setProperty(`--${t}`,e[t]||n[s])})),I=e[m]};var O=o(9479);let M;const F=t=>{M=(t=>T[t]?t:$)(t),N(M),(0,O.i)(M!==$)};F($);const W=t=>{const e=(t||{}).v;M!==e&&F(e)}},1315:(t,e,o)=>{"use strict";o.d(e,{$:()=>j,Bi:()=>i.useId,CA:()=>b,Ek:()=>$,El:()=>N,Ep:()=>a.Ep,Et:()=>a.Et,F5:()=>w,HV:()=>v,J0:()=>i.useState,Jr:()=>s.J,Kj:()=>c,Kr:()=>i.useMemo,MZ:()=>r.MZ,NT:()=>i.useContext,Nf:()=>i.useLayoutEffect,O8:()=>a.O8,QD:()=>n.Q,RZ:()=>i.lazy,UU:()=>T,WO:()=>i.useReducer,Yn:()=>i.useImperativeHandle,ZC:()=>h,ZI:()=>x,_3:()=>i.createRef,al:()=>S,bj:()=>a.bj,fp:()=>a.fp,hC:()=>f,hb:()=>i.useCallback,i6:()=>u,jd:()=>M,jw:()=>p,k8:()=>g,lZ:()=>d,li:()=>i.useRef,nl:()=>m,ph:()=>i.memo,q6:()=>i.createContext,rz:()=>i.useSyncExternalStore,sA:()=>a.sA,tY:()=>i.Suspense,uA:()=>i.Component,vJ:()=>i.useEffect,w7:()=>F,xJ:()=>O,xS:()=>C,y5:()=>A});var n=o(3243),s=o(1852),r=o(2823),i=o(3569),a=o(3730),l=o(4848);const c=()=>Object.create(null),d=(t,e)=>(0,a.Ep)(t)&&t.length>0?t.map(e):null,p=(t,e)=>!(0,a.Ep)(t)&&(0,a.sA)(t)?e(t,0):d(t,e),u=function(t,e,o){return void 0===o&&(o=t.key),(0,l.jsx)(t.type,{...t.props,...e},o)},h=t=>(t||{}).current,m=(t,e)=>{t&&(t.current=e)},f=t=>(h(t)||{}).style,g=t=>{t&&(0,a.fp)(t.focus)&&t.focus()},y=t=>(0,a.fp)(t)?t():h(t),x=(t,e)=>{g(y(t)||y(e))},v=t=>{g(document.getElementById(t))},b=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},C=t=>{t.stopPropagation(),t.preventDefault()},S=t=>(0,a.fp)(t.composedPath)?t.composedPath():t.path||[],w=t=>{const e=h(t);return!(!e||!(0,a.fp)(e.isValid))&&e.isValid()},A=t=>{const e=h(t);return e&&(0,a.fp)(e.getValue)?e.getValue():void 0},j=t=>{const e=h(t);e&&(0,a.fp)(e.setValue)&&e.setValue("")},$=(t,e)=>w(t)?A(t):e,T=t=>{const e=h(t);return e&&(0,a.fp)(e.getOptions)?e.getOptions():void 0},k="clientX",_="clientY",E=t=>e=>(t=>t&&t[0]||{})(e)[t],D=E(k),I=E(_),L=(t,e)=>o=>o[t]||e(o.targetTouches)||e(o.changedTouches)||0,N=L(k,D),O=L(_,I),M=(t,e)=>{const o=(t||"").split("://")[0];return"https"===o||e&&"http"===o?t:void 0},F=t=>{const e=h(t);if(e){const t=e.querySelectorAll('input[role="combobox"]');let o,n=0;for(;n{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(9495),r=o(4848);const i={color:"#2f7ed8"},a={color:"#1b2836"},l=()=>(0,r.jsx)("div",{style:i,children:"Loading..."}),c=t=>{let{retry:e}=t;return(0,r.jsx)("button",{type:"button",className:"bt",style:a,onClick:e,children:"Retry"})},d=function(t,e,o){void 0===e&&(e=l),void 0===o&&(o=c);return i=>{const[a,l,c]=(0,s.o)(!0),d=(0,n.Kr)((()=>(0,n.RZ)((()=>t().catch((()=>(c(),{default:()=>(0,r.jsx)(o,{retry:l})})))))),[a]);return(0,r.jsx)(n.tY,{fallback:(0,r.jsx)(e,{}),children:(0,r.jsx)(d,{...i})})}},p=t=>()=>{return o.e(27).then(o.bind(o,2105)).then((e=t,t=>({default:t.default[e]})));var e},u={SparkView:d(p("SparkView")),Line:d(p("Line")),Bars:d(p("Bars")),ReferenceLine:d(p("ReferenceLine")),Spot:d(p("Spot")),Spots:d(p("Spot")),MaxLabel:d(p("MaxLabel")),MinLabel:d(p("MinLabel"))}},6539:(t,e,o)=>{"use strict";o.d(e,{A:()=>y});var n=o(4558),s=o(1315);const r=()=>{},i=function(t,e){void 0===t&&(t=0),void 0===e&&(e=r);const o=(0,s.li)(null);return(0,s.hb)((n=>{if(0===t)return void e(n);const s=o.current,{timeStamp:r}=n;(null==s||r-s>t)&&(e(n),o.current=r)}),[t,e])};var a=o(8358);const l=(t,e,o)=>{const n=(0,s.li)(null);return(0,s.vJ)((()=>a.SW&&t?((0,a.mz)(t,e,o||n),()=>(0,a.xp)(t)):void 0),[]),[a.SW&&t?t:"",o||n]};var c=o(4848);const d={textDecoration:"underline"},p=(t,e)=>{const o=t?e.toUpperCase().indexOf(t):-1;if(-1===o)return e;const n=e.slice(0,o),s=e.slice(o,o+1),r=e.slice(o+1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{children:n}),(0,c.jsx)("span",{style:d,children:s}),(0,c.jsx)("span",{children:r})]})},u=t=>{let{className:e,caption:o,hotKey:n,children:s}=t;return o?(0,c.jsxs)("span",{className:e,children:[p(n,o),s]}):null},h="bt-flat",m=(0,n.P5)(h),f=`${h}__caption`,g={color:"#607d8b"},y=t=>{let{refBt:e,isArrow:o,timeout:s=3e3,className:r,style:a,isPrimary:d,title:p="",caption:h,hotKey:y,children:x,onClick:v}=t;const b=i(s,v),C=(0,n.PX)(m,r),S=(0,n.FG)(a,d&&g),[w,A]=l(y,b,e),j=((t,e)=>e?`${t} [${e.toLowerCase()}]`:t)(p,w);return(0,c.jsxs)("button",{type:"button",ref:A,className:C,style:S,title:j,onClick:b,children:[(0,c.jsx)(u,{className:f,caption:h,hotKey:w,children:o&&(0,c.jsx)("span",{className:"arrow-down"})}),x]})}},509:(t,e,o)=>{"use strict";o.d(e,{A:()=>L});var n=o(1315);const s=(t,e)=>{const o=()=>({...t(e),_props:e}),[s,r]=(0,n.J0)(o);return e!==s._props&&r(o()),[s,r]};var r=o(5032),i=o(7438),a=o(2357);const l=Array.isArray,c=(t,e,o)=>{const s=(0,n.li)(),r=(0,n.li)(),i=e||s,a=o||r;return[(0,n.Kr)((()=>l(t)?e=>{const o=t.length-1;return((t,e,o,n)=>0===n?t:n===o?e:void 0)(i,a,o,e)}:void 0),[t,i,a]),a,i]},d=(t,e)=>(0,n.hb)((()=>(0,n.ZC)(t)||(0,n.ZC)(e)),[]);var p=o(4407),u=o(2054),h=o(6736),m=o(4848);const f=t=>{let{refEl:e,className:o,style:n,children:s,onClick:r}=t;const i=(0,h.Ly)(r);return(0,m.jsx)("div",{ref:e,className:o,style:n,role:"menuitem",tabIndex:"0",onClick:r,onKeyDown:i,children:s})},g={position:"relative"},y={position:"absolute",top:0,left:16},x={paddingLeft:22},v=t=>{let{refEl:e,titleCl:o,title:n,onClick:s}=t;return n?(0,m.jsxs)(f,{refEl:e,className:o,style:g,onClick:s,children:[(0,m.jsx)("span",{style:y,children:"<"}),(0,m.jsx)("span",{style:x,children:n})]}):null},b={position:"relative"},C={display:"inline-block",position:"absolute",top:0,right:4,color:"inherit",padding:"1px 16px 1px 0px",fontWeight:"bold"},S=t=>{let{type:e}=t;return"sub"===e?(0,m.jsx)("span",{style:C,children:">"}):null},w=t=>{let{getRefFocus:e,items:o,itemCl:s,pageNumber:r,onNextPage:i,onClose:a}=t;return(0,m.jsx)(m.Fragment,{children:(0,n.lZ)(o,((t,o)=>{const{cn:l,name:c,type:d,id:p,isClose:u,onClick:h}=t,g="sub"===d?(0,n.Jr)(i,p,c,r):(t=>{let{isClose:e,onClick:o,onClose:s}=t;return(0,n.fp)(o)?e?()=>{o(),s()}:o:void 0})({isClose:u,onClick:h,onClose:a});return(0,m.jsxs)(f,{refEl:e(o),className:l||s,style:b,onClick:g,children:[(0,m.jsx)("span",{children:c}),(0,m.jsx)(S,{type:d})]},c)}))})},A=[],j=t=>{let{isVisible:e,style:o,title:s,titleCl:r,itemCl:i,pageNumber:a,items:l=A,onNextPage:h,onPrevPage:f,onClose:g,children:y}=t;const x=(0,n.li)(),[b,C,S]=c(l),j=d(x,S),$=(0,n.hb)((()=>{f(a)}),[f,a]);return(0,p.hT)(e,j),(0,m.jsx)("div",{style:o,children:(0,m.jsxs)(u.A,{refFirst:j,refLast:C,children:[(0,m.jsx)(v,{refEl:x,titleCl:r,title:s,onClick:$}),(0,m.jsx)(w,{getRefFocus:b,items:l,itemCl:i||r,pageNumber:a,onNextPage:h,onClose:g}),y]})})},$=t=>{let{isShow:e,style:o,pages:s,pageCurrent:r,onNextPage:i,onPrevPage:a,onClose:l}=t;return(0,n.lZ)(s,((t,s)=>(0,n.i6)(t,{style:o,isVisible:e&&s+1===r,pageNumber:s+1,onNextPage:0===s?i:void 0,onPrevPage:0!==s?a:void 0,onClose:l})))},T={position:"absolute",overflow:"hidden"},k={pageWidth:100,maxPages:2,initId:"p0",p0:[]},_=t=>({width:t}),E=(t,e,o,n)=>{e.push((0,m.jsx)(j,{title:n,items:t[o],titleCl:t.titleCl,itemCl:t.itemCl},o))},D=t=>{const e=t.pageWidth,o=t.maxPages,s=t.initId||"p0";return{addPage:(0,n.Jr)(E,t),pageWidth:e,pagesStyle:_(o*e),pageStyle:_(e),pageCurrent:1,pages:[(0,m.jsx)(j,{items:t[s],titleCl:t.titleCl,itemCl:t.itemCl},s)]}},I=(t,e)=>({transform:`translateX(${-1*t*(e-1)+0}px)`}),L=t=>{let{model:e=k,isShow:o,className:n,rootStyle:l,style:c,onClose:d}=t;const[p,u]=s(D,e),{pageWidth:h,pagesStyle:f,pageStyle:g,pageCurrent:y,pages:x}=p,v=(0,r.A)((t=>{u((e=>(e.pageCurrent=t-1,{...e})))})),b=(0,r.A)(((t,e,o)=>{u((n=>{const{addPage:s,pages:r}=n;return r.length-1+1>o?r[o]&&r[o].key!==t&&(o>0?n.pages.splice(o):n.pages=[],s(n.pages,t,e)):s(r,t,e),n.pageCurrent=o+1,{...n}}))})),C={...c,...T,...g},S={...f,...I(h,y)};return(0,m.jsx)(i.A,{isShow:o,style:l,onClose:d,children:(0,m.jsx)(a.A,{className:n,style:C,isShow:o,children:(0,m.jsx)("div",{className:"slider-pages",style:S,children:(0,m.jsx)($,{isShow:o,style:g,pages:x,pageCurrent:y,onNextPage:b,onPrevPage:v,onClose:d})})})})}},7686:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(4558),s=o(6736),r=o(4848);const i=t=>{let{refEl:e,className:o,style:i,color:a,onClick:l,children:c}=t;const d=(0,n.PX)(o,"input-color"),p=a?{backgroundColor:a}:void 0,u=l?t=>l(a,t):void 0,h=(0,s.Ly)(u,[u]);return(0,r.jsx)("span",{ref:e,tabIndex:"0",role:"button",className:d,style:{...i,...p},onClick:u,onKeyDown:h,children:c})}},694:(t,e,o)=>{"use strict";o.d(e,{Qr:()=>i,RD:()=>s,SF:()=>r,z2:()=>n});const n={borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 6px"},s={position:"relative",padding:"5px 35px 5px 16px",textAlign:"center",fontSize:"18px",fontWeight:500},r={color:"#607d8b"},i={top:4}},6112:(t,e,o)=>{"use strict";o.d(e,{A:()=>m});var n=o(1315);const s=t=>{const[e,o]=(0,n.J0)(!1);return[e,(0,n.hb)((()=>{o((e=>(e&&(0,n.ZI)(t),!e)))}),[])]};var r=o(9355),i=o(5709),a=o(509),l=o(4848);const c={position:"absolute",top:1,left:2},d=t=>{let{refEl:e,isMore:o,menuModel:n,toggle:s}=t;return n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.A,{refEl:e,style:c,onClick:s}),(0,l.jsx)(a.A,{isShow:o,className:"popup-menu dialog__menu-more el-b",model:n,onClose:s})]}):null};var p=o(4558),u=o(694);const h=(0,p.Th)(),m=t=>{let{refBtMenuMore:e,menuModel:o,caption:n,onClose:i}=t;const[a,c]=s(e);return(0,l.jsxs)("div",{className:h,style:u.RD,children:[(0,l.jsx)(d,{refEl:e,isMore:a,menuModel:o,toggle:c}),(0,l.jsx)("span",{className:p.WE,children:n}),(0,l.jsx)(r.P,{style:u.Qr,onClick:i})]})}},7104:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315),s=o(4848);const r=t=>{let{is:e,children:o}=t;const r=(0,n.li)();return(0,n.vJ)((()=>{e&&setTimeout((()=>(0,n.k8)((0,n.w7)(r))),200)}),[e]),(0,s.jsx)("div",{ref:r,children:o})}},2054:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315),s=o(391),r=o(4848);const i=t=>{let{style:e,onFocus:o}=t;return(0,r.jsx)("div",{style:e,tabIndex:"0","aria-hidden":"true",onFocus:o})},a=t=>{let{refEl:e,refFirst:o,refLast:a,style:l,children:c}=t;return s.s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i,{style:l,onFocus:()=>{(0,n.ZI)(a,e)}}),c,(0,r.jsx)(i,{style:l,onFocus:()=>{(0,n.ZI)(o,e)}})]}):c}},2400:(t,e,o)=>{"use strict";o.d(e,{A:()=>v});var n=o(1315),s=o(7599),r=o(4558),i=o(6736),a=o(7368),l=o(6912),c=o(6539),d=o(2054),p=o(6112),u=o(694),h=o(4848);const m=(0,r.Z6)("modal-dialog"),f={...u.z2,display:"block",position:"absolute",top:"20%",left:"50%",width:380,marginLeft:-190,zIndex:10},g=t=>{let{refBtClose:e,commandButtons:o,withoutClose:n,onClose:s}=t;return(0,h.jsxs)(l.t4,{children:[o,!n&&(0,h.jsx)(c.A,{refBt:e,caption:"Close",title:"Close Modal Dialog",timeout:0,onClick:s},"close")]})},y=()=>{},x=t=>{t.stopPropagation()},v=t=>{let{refFocusLast:e,isShow:o,style:l,menuModel:c,caption:u,styleCaption:v,commandButtons:b,withoutClose:C,isWithButton:S=!0,children:w,timeout:A=450,onClose:j=y}=t;const $=(0,n.li)(),T=(0,n.li)(),k=(0,n.li)(),_=(0,i.iw)(j),[E,D]=(0,r.lS)(o,m);return(0,a.A)(o,k,$),(0,h.jsx)(d.A,{refEl:$,refFirst:k,refLast:e||T,style:D,children:(0,h.jsxs)("div",{...(0,s.mw)(o,u),ref:$,className:E,style:{...f,...l,...D},onClick:x,onKeyDown:_,children:[(0,h.jsx)(p.A,{refBtMenuMore:k,menuModel:c,caption:u,onClose:j}),(0,h.jsx)("div",{children:w}),S&&(0,h.jsx)(g,{refBtClose:!C&&o?T:void 0,commandButtons:b,withoutClose:C,onClose:j})]})})}},2620:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(972),s=o(1315),r=o(7686),i=o(4848);const a={margin:10},l={width:120},c={margin:4},d=(0,s.ph)((t=>{let{model:e,onClickCell:o}=t;const{rows:n,cols:d,colors:p}=e,u=[];let h,m,f,g;for(h=0;h{let{isShow:e,model:o,onClickCell:s,onClose:r}=t;return(0,i.jsx)(n.A,{style:p,isShow:e,onClose:r,children:(0,i.jsx)(d,{model:o,onClickCell:s})})}},7438:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(7599),s=o(4558),r=o(948),i=o(6736),a=o(4848);const l=(0,s.SX)(),c=t=>{let{isShow:e,style:o,children:s,onClose:c}=t;const d=(0,r.A)(e,c),p=(0,i.iw)(c);return(0,a.jsx)("div",{...(0,n.g3)(e),ref:d,className:l,style:o,onKeyDown:e?p:void 0,children:s})}},972:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(4558),s=o(2357),r=o(7438),i=o(4848);const a=t=>{let{isShow:e,className:o,style:a,children:l,onClose:c}=t;return(0,i.jsx)(r.A,{isShow:e,onClose:c,children:(0,i.jsx)(s.A,{className:(0,n.zq)(o),style:a,isShow:e,children:l})})}},7368:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=(t,e,o)=>{const s=(0,n.li)(),r=(0,n.li)();(0,n.vJ)((()=>{const i=(0,n.ZC)(r);t&&!i?((0,n.nl)(s,document.activeElement),(0,n.ZI)(e,o)):!t&&i&&((0,n.ZI)(s),(0,n.nl)(s,null)),(0,n.nl)(r,t)}),[t])}},6872:(t,e,o)=>{"use strict";o.d(e,{$A:()=>f,Hc:()=>b,N5:()=>g,NZ:()=>d,Su:()=>u,U3:()=>y,WE:()=>n.WE,bc:()=>S,cp:()=>C,oD:()=>s,op:()=>h,pL:()=>x,u4:()=>v,xO:()=>p,z_:()=>m});var n=o(4558);const s=(0,n.PX)(n.Yo,n.TY),r="zhn-select",i=r+"__spinner",a=r+"__options",l=r+"__row",c=r+"__footer",d=r,p=r+"__input",u=i,h=i+"--failed",m=r+"__bt-arrow",f=a,g=a+"__div",y=l,x=l+"--active",v=c,b=c+"__index",C=c+"__bts",S=(0,n.vz)(c+"__bt")},6476:(t,e,o)=>{"use strict";o.d(e,{A:()=>z});var n=o(1315),s=o(710),r=o(4867),i=o(4558),a=o(9355),l=o(8910),c=o(6872),d=o(4848);const p={borderColor:"#1b75bb transparent transparent"},u=t=>{let{isShowOption:e,labelId:o,controlsId:n,onClick:r}=t;return(0,d.jsx)("button",{...(0,s.k)(e,n),"aria-labelledby":o,"aria-label":"Toggle suggestions","aria-haspopup":"true",type:"button",tabIndex:"-1",className:c.z_,onClick:r,children:(0,d.jsx)("span",{style:e?p:void 0})})},h={position:"absolute",top:5,right:8,stroke:"#1b75bb"},m=(t,e,o,s,r,i,p,m,f,g,y,x,v)=>{const b=r||s||"";let C,S=null;if(t||e)t?(C=(0,n.MZ)(" ","Loading",b,"..."),S=(0,d.jsx)("span",{className:c.Su,"data-loader":"circle"})):e&&(C=(0,n.MZ)(" ","Loading",b,"Failed"),S=(0,d.jsx)(l.A,{className:c.op,dataLoader:"circle-failed",onClick:i}));else if(p)S=(0,d.jsx)(a.a,{style:h,onClick:y});else{const t=(v||[]).length,e=t>1e3?`(${t})`:"";C=o||(0,n.MZ)(" ","Select",s,e,"..."),S=(0,d.jsx)(u,{isShowOption:m,labelId:f,controlsId:g,onClick:x})}return[S,C]},f="No items found",g=f,y=(t,e)=>t?{...e,width:t+((0,n.QD)(""+t,"%")?"":"px")}:null,x="From input:",v=[],b=Array.isArray,C=(t,e)=>{const o=b(e)?e:v;return o.forEach((e=>{e._c=e[t].toLowerCase()})),{value:"",initialOptions:o,options:o,nAll:o.length}},S=t=>e=>-1===t.indexOf(e.v),w=(t,e,o)=>{const n=((t,e,o)=>{const n=e.toLowerCase(),s=t=>-1!==t._c.indexOf(n),r=o?S(o):void 0,i=r?t=>s(t)&&r(t):s;return t.filter(i)})(t,e,o.filters);return 0===n.length&&n.push(((t,e)=>{let{propCaption:o,isWithInput:n,maxInput:s}=e;const r=t.slice(0,s),i=n?`${x} ${r}`:f;return{[o]:i,_c:i,value:g,inputValue:r}})(e,o)),n},A=t=>{const{stateFilters:e,initialOptions:o}=t;return e?o.filter(S(e)):o},j=(t,e)=>t&&e?t.offsetTop-e.scrollTop:void 0,$=(t,e,o)=>{t&&(t.classList.add(c.pL),e&&(e.textContent=o+1))},T=t=>{t&&t.classList.remove(c.pL)},k=t=>t>70,_=t=>t<70,E=(t,e,o,n,s)=>{$(e,o,n);const r=j(e,s);t(r)&&(s.scrollTop+=r-70)},D=t=>t.childNodes.length,I=t=>{let{item:e,propCaption:o}=t;return(0,d.jsx)("span",{children:e[o]})};var L=o(948),N=o(7071);const O=(t,e,o)=>{let{selectedIndex:n,className:s,onClick:r,propCaption:i,ItemComp:a}=o;return(0,d.jsx)("div",{role:"option","aria-selected":n===e,tabIndex:"-1",className:s,onClick:()=>r(t,e),children:(0,d.jsx)(a,{item:t,propCaption:i})},e)},M=t=>{let{options:e,...o}=t;return(0,d.jsx)(N.A,{items:e,crItem:O,...o})},F=t=>{let{refIndexNode:e,noFooterBts:o,indexActiveOption:n,nFiltered:s,nAll:r,onClear:i}=t;return(0,d.jsxs)("div",{className:`${c.u4} ${c.WE}`,children:[(0,d.jsxs)("span",{className:c.Hc,children:[(0,d.jsx)("span",{ref:e,children:n}),(0,d.jsxs)("span",{children:[": ",s,": ",r]})]}),!o&&(0,d.jsx)("span",{className:c.cp,children:(0,d.jsx)(l.A,{className:c.bc,caption:"CL",onClick:i})})]})},W=t=>{let{id:e,widthStyle:o,optionsStyle:s,propCaption:r,ItemOptionComp:i,noFooterBts:a,options:l,nAll:p,refOptionsComp:u,refIndexNode:h,indexActive:m,onClickItem:f,onClear:y,onClickOutside:x}=t;const v=(0,n.Kr)((()=>(0,d.jsx)(M,{options:l,className:c.U3,selectedIndex:m,propCaption:r,onClick:f,ItemComp:i})),[l]),b=(t=>{const e=t[0];return e&&e.value!==g?t.length:0})(l),C=(0,L.A)(!0,x);return(0,d.jsxs)("div",{ref:C,id:e,className:c.$A,style:o,"data-scrollable":!0,children:[(0,d.jsx)("div",{ref:u,className:c.N5,style:{...s,...o},children:v}),(0,d.jsx)(F,{refIndexNode:h,noFooterBts:a,indexActiveOption:m,nAll:p,nFiltered:b,onClear:y})]})};var R=o(391);const P=()=>{const t=(0,n.li)(),[e,o]=(0,n.J0)();return(0,n.vJ)((()=>()=>{clearTimeout((0,n.ZC)(t))}),[]),[e,(0,n.Kr)((()=>R.dY?{onFocus:()=>{clearTimeout((0,n.ZC)(t)),o(!0)},onBlur:()=>{(0,n.nl)(t,setTimeout((()=>o(!1)),800))}}:void 0),[])]},B=()=>{},U="caption",z=t=>{let{labelId:e,propCaption:o=U,ItemOptionComp:a=I,options:l,optionName:p="",isWithInput:u=!1,maxInput:h=10,regInput:f=/[A-Za-z0-9()^ ]/,style:v,width:b,optionsStyle:L,noFooterBts:N,isLoading:O,isLoadingFailed:M,placeholder:F,optionNames:R,filters:z,onSelect:V=B,onLoadOption:J=B}=t;const K=(0,n.Bi)(),Z=(0,n.li)(),q=(0,n.li)(),Y=(0,n.li)(),G=(0,n.li)(0),[H,Q]=P(),[X,tt]=(0,r.A)(),[et,ot]=(0,n.J0)((()=>C(o,l))),{value:nt,options:st,initialOptions:rt,nAll:it}=et,at=(0,n.Kr)((()=>t=>((t||{})[o]||"").replace(x,"").trim()),[o]),[lt,ct,dt,pt,ut]=(0,n.Kr)((()=>[()=>tt(!1),()=>{const t=(0,n.ZC)(q);return t?t.childNodes.item((0,n.ZC)(G)):void 0},()=>{$(ct(),(0,n.ZC)(Y),(0,n.ZC)(G))},t=>{(0,n.Et)(t)&&t>-1&&(T(ct()),(0,n.nl)(G,t))},t=>{if(t)if(t.value!==g){const e={...t};delete e._c,V(e)}else V(u?(t=>t?{[U]:t,value:t,isInput:!0}:void 0)(t.inputValue.trim()):void 0);else V()}]),[]),ht=(0,n.Kr)((()=>()=>{pt(0),ut(),tt(!1),ot((t=>({...t,options:A(t),value:""})))}),[]),mt=(0,n.Kr)((()=>(t,e)=>{pt(e),tt(!1),ot((e=>({...e,value:at(t)}))),ut(t)}),[at]),[ft,gt]=(0,n.Kr)((()=>[()=>{(0,n.ZI)(Z)},()=>{ht(),ft()}]),[]);(0,n.vJ)((()=>{pt(0),tt(!1),ot(C(o,l))}),[l]),(0,n.vJ)((()=>{X&&(dt(),((t,e,o)=>{if(t){if(0===e)return;const n=j(t,o);n>70&&(o.scrollTop+=n-70),n<0&&(o.scrollTop=0)}})(ct(),(0,n.ZC)(G),(0,n.ZC)(q)))}),[X]),((t,e,o,n,s,r)=>{t.stateFilters!==o&&e((t=>{const{initialOptions:e}=t,i=o&&0!==o.length?e.filter(S(o)):e;let a=t.value;if(a){const t=t=>t[n]===a,l=e.find(t).v;o&&-1!==o.indexOf(l)&&(a=""),a?r(i.findIndex(t)):(r(0),setTimeout(s,200))}return{...t,stateFilters:o,options:i,value:a}}))})(et,ot,z,o,V,pt);const yt=y(b,v),[xt,vt]=m(O,M,F,p,R,J,H&&nt,X,e,K,gt,tt,l),bt=y(b,X?i.CQ:i.JS);return(0,d.jsxs)("div",{className:c.NZ,style:yt,children:[(0,d.jsx)("input",{...Q,...(0,s.k)(X,K),...(0,s.o)(e),ref:Z,className:c.xO,type:"text",autoComplete:"off",autoCorrect:"off",spellCheck:!1,value:nt,placeholder:vt,onChange:t=>{const e=t.target.value,s=e.length,r=nt.length;if((!(u&&s>0)||f.test(e[s-1]))&&s!==r){pt(0),dt();const t=(0,n.ZC)(q);t&&(t.scrollTop=0),ot((t=>({...t,value:e,options:w(s>r?st:rt,e,{propCaption:o,isWithInput:u,maxInput:h,filters:z})}))),tt(!0)}},onKeyDown:t=>{switch(t.keyCode){case 13:{const t=st[(0,n.ZC)(G)],e=at(t);e&&(tt(!1),ot((t=>({...t,value:e}))),ut(t));break}case 27:case 46:t.preventDefault(),X?tt():ht();break;case 40:X?(t.preventDefault(),((t,e,o,s)=>{const r=t();r&&(T(r),(0,n.nl)(e,(0,n.ZC)(e)+1),(0,n.ZC)(e)>=D(s)&&((0,n.nl)(e,0),s.scrollTop=0),E(k,t(),o,(0,n.ZC)(e),s))})(ct,G,(0,n.ZC)(Y),(0,n.ZC)(q))):tt();break;case 38:X&&(t.preventDefault(),((t,e,o,s)=>{const r=t();if(r){if(T(r),(0,n.nl)(e,(0,n.ZC)(e)-1),(0,n.ZC)(e)<0){(0,n.nl)(e,D(s)-1);const o=t();s.scrollTop=o.offsetTop}E(_,t(),o,(0,n.ZC)(e),s)}})(ct,G,(0,n.ZC)(Y),(0,n.ZC)(q)));break;default:return}}}),xt,X&&(0,d.jsx)(W,{id:K,widthStyle:bt,optionsStyle:L,propCaption:o,ItemOptionComp:a,noFooterBts:N,options:st,nAll:it,refOptionsComp:q,refIndexNode:Y,indexActive:(0,n.ZC)(G),onClickItem:mt,onClear:gt,onClickOutside:lt})]})}},2027:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{className:e,tabId:o,tabPanelId:s,title:r,isSelected:i,onClick:a,onKeyDown:l}=t;return(0,n.jsx)("button",{type:"button",role:"tab",className:e,id:o,tabIndex:i?"0":"-1","aria-selected":i,"aria-controls":s,onClick:a,onKeyDown:l,children:r})}},701:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(4558);const r=t=>(0,s.PX)("tab",[t,"tab--selected"]),i=(t,e)=>`tab-${t}-${e}`,a=(t,e)=>`tabpanel-${t}-${e}`;var l=o(4848);const c={margin:"5px 5px 10px 24px"},d={width:"100%",height:"100%"},p={...s.CQ,...d},u=t=>{let{ariaLabel:e,id:o,isShow:u,width:h,height:m,children:f,...g}=t;const[y,x]=(0,n.J0)(0),v=t=>t===y,b=(t,e)=>{const{keyCode:s}=e,r=39===s?1:37===s?-1:0;r&&((0,n.xS)(e),(t=>{const e=((t,e)=>-1===t?e-1:t===e?0:t)(t,f.length);(0,n.HV)(i(o,e)),x(e)})(t+r))};return(0,l.jsxs)("div",{style:{width:h,height:m},children:[(0,l.jsx)("div",{role:"tablist","aria-label":e,"aria-orientation":"horizontal",style:c,children:(0,n.jw)(f,((t,e)=>{const s=v(e);return(0,n.i6)(t,{isSelected:s,tabId:i(o,e),tabPanelId:a(o,e),className:r(s),onClick:()=>x(e),onKeyDown:t=>b(e,t)},e)}))}),(0,l.jsx)("div",{style:d,children:(0,n.jw)(f,((t,e)=>{const r=v(e);return(0,l.jsx)("div",{style:r?p:s.JS,role:"tabpanel",id:a(o,e),"aria-labelledby":i(o,e),children:(0,n.i6)(t.props.children,{isVisible:(0,n.bj)(u)?u&&r:r,...g})},e)}))})]})}},6752:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(7599),s=o(4558),r=o(4848);const i=(0,s.Dq)("browser-container"),a=t=>{let{isShow:e,style:o,onKeyDown:a,children:l}=t;const[c,d]=(0,s.lS)(e,i);return(0,r.jsx)("div",{...(0,n.g3)(e),className:c,style:{...o,...d},onKeyDown:a,children:l})}},2336:(t,e,o)=>{"use strict";o.d(e,{A:()=>f});var n=o(1315),s=o(4558),r=o(9073),i=o(5709),a=o(1853),l=o(9355),c=o(4848);const d="text-clip",p=(0,s.Th)(`br-caption ${d} gap-right`),u=`not-selected ${d}`,h={paddingRight:8,fontSize:"18px",fontWeight:"500"},m={position:"relative",top:-3,margin:"0 10px 0 6px"},f=t=>{let{style:e,captionStyle:o,caption:s,svgMoreStyle:d,children:f,onMore:g,onCheck:y,onUnCheck:x,onClose:v}=t;const b=(0,n.Bi)();return(0,c.jsxs)("div",{className:p,style:e,children:[(0,n.fp)(g)&&(0,c.jsx)(i.A,{style:d,onClick:g}),(0,n.fp)(y)&&(0,n.fp)(x)&&(0,c.jsx)(a.A,{style:m,color:r.ui,labelId:b,onCheck:y,onUnCheck:x}),(0,c.jsx)("span",{id:b,className:u,style:{...h,...o},children:s}),f,(0,c.jsx)(l.P,{onClick:v})]})}},9355:(t,e,o)=>{"use strict";o.d(e,{a:()=>p,P:()=>u});var n=o(7599),s=o(4558),r=o(4874),i=o(540),a=o(4848);const l={padding:3},c=()=>(0,a.jsxs)(i.A,{w:"12",style:l,strokeWidth:"2",strokeLinecap:"round",children:[(0,a.jsx)("path",{d:"M 0,0 L 12,12"}),(0,a.jsx)("path",{d:"M 12,0 L 0,12"})]}),d=(t,e)=>o=>(0,a.jsx)(r.A,{...(0,n.o$)(o,e),tabIndex:"-1",className:t,style:o.style,onClick:o.onClick,children:(0,a.jsx)(c,{})}),p=d((0,s.hI)("clear"),"Clear input"),u=d((0,s.hI)("close"),"Close")},4874:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{ariaLabel:e,dataLoader:o,children:s,...r}=t;return(0,n.jsx)("button",{...r,"data-loader":o,"aria-label":e,type:"button",children:s})}},1358:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(4558),s=o(4874),r=o(4848);const i=(0,n.x$)((0,n.vz)("bt-c1")),a=t=>{let{className:e=i,caption:o,...n}=t;return(0,r.jsx)(s.A,{...n,className:e,children:o})}},8910:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(4558),s=o(1358),r=o(4848);const i=(0,n.x$)("bt-c2"),a=t=>{let{className:e,caption:o="",...a}=t;return(0,r.jsx)(s.A,{...a,caption:o,className:(0,n.PX)(i,e)})}},652:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(372),r=o(9195),i=o(4848);const a=t=>{let{isValid:e}=t;return(0,i.jsx)("hr",{style:{...r.jf,borderColor:(0,r.O3)(e)}})};var l=o(8862);const c=(t,e,o)=>[t,e,o],d=t=>c(t,null,!0),p=()=>!0,u=t=>{let{refEl:e,style:o,inputStyle:u,initialValue:h="",placeholder:m="YYYY-MM-DD",inputmode:f="numeric",name:g="text-date",maxLength:y=10,errorMsg:x=null,onTest:v=p,onEnter:b}=t;const C=(0,n.li)(null),[S,w]=(0,n.J0)((()=>d(h))),[A,j,$]=S,T=(0,s.A)({onEnter:b,onDelete:()=>w(d(h))},[h]);return(0,n.vJ)((()=>w(d(h))),[h]),(0,n.Yn)(e,(()=>({getValue:()=>A,setValue:t=>{v(t)&&w(d(t))},isValid:()=>$,focus:()=>(0,n.ZI)(C)})),[A,$,v]),(0,i.jsxs)("div",{style:{...r.v$,...o},children:[(0,i.jsx)("input",{ref:C,style:{...r.nd,...u},name:g,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,type:"text",placeholder:m,inputMode:f,value:A,maxLength:y,onChange:t=>{const{value:e}=t.target;w(v(e)?d(e):c(e,null,!1))},onBlur:()=>{w(A===h||v(A)?c(A,null,!0):c(A,x,!1))},onKeyDown:T}),(0,i.jsx)(a,{isValid:$}),(0,i.jsx)(l.A,{msg:j})]})}},6204:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(4558),s=o(4848);const r=t=>{let{id:e,className:o,style:r,text:i,title:a}=t;return(0,s.jsx)("div",{id:e,className:(0,n.PX)(n.Yo,o),style:r,title:a,children:i})}},4246:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315),s=o(55),r=o(4848);const i=(0,n.ph)((t=>{let{str:e,className:o,style:n}=t;const i=(0,s.A)(e);return i?(0,r.jsx)("div",{className:o,style:n,dangerouslySetInnerHTML:{__html:i}}):null}));i.isHtml=t=>Boolean((0,s.A)(t));const a=i},8862:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(9195),s=o(4848);const r=t=>{let{msg:e}=t;return e?(0,s.jsx)("div",{style:n.ms,children:e}):null}},9195:(t,e,o)=>{"use strict";o.d(e,{KV:()=>d,O3:()=>l,jf:()=>c,le:()=>r,ms:()=>p,nd:()=>s,v$:()=>n});const n={...o(4558).xu,position:"relative",display:"inline-block",width:250,backgroundColor:"#e1e1cb"},s={background:"transparent none repeat scroll 0 0",color:"green",width:"100%",height:30,paddingLeft:10,border:"medium none",outline:"medium none",fontSize:"16px",fontWeight:"bold"},r={boxShadow:"0 2px 2px 0 rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.1)"},i="#1b75bb",a="#f44336",l=t=>t?i:a,c={width:"auto",margin:"0 10px 5px 10px",borderWidth:"medium medium 1px",borderStyle:"none none solid",borderColor:i,borderImage:"none"},d={color:a,fontWeight:"bold"},p={...d,padding:"0 0 5px 10px",fontSize:"12px"}},1205:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(372),r=o(4558),i=o(9195),a=o(4848);const l={...i.nd,...r.xu,...i.le,display:"inline",width:40,paddingLeft:5,marginLeft:5,marginRight:5,height:26,backgroundColor:"#e1e1cb"},c="text",d=()=>{},p=t=>null!=t?t:"",u=t=>{let{refEl:e,initValue:o,style:r,type:i,spellCheck:u,placeholder:h,maxLength:m=125,min:f,max:g,step:y,onChange:x=d,onEnter:v}=t;const[b,C]=(0,n.J0)((()=>p(o))),S=(0,n.li)(),w=(0,s.A)({onEnter:v,onDelete:()=>C("")},[v]);(0,n.vJ)((()=>C(p(o))),[o]),(0,n.Yn)(e,(()=>({getValue:()=>(""+b).trim(),setValue:C,focus:()=>(0,n.ZI)(S)})),[b]);const[A,j]=u?["on","true"]:["off","false"],$=((t,e,o)=>"number"===t&&(0,n.Et)(e)&&(0,n.Et)(o))(i,f,g)?"input-minmax-number":void 0;return(0,a.jsx)("input",{ref:S,className:$,style:{...l,...r},type:i||c,name:c,autoCapitalize:"off",autoComplete:"off",autoCorrect:A,spellCheck:j,translate:"false",value:b,placeholder:h,maxLength:m,min:f,max:g,step:y,onChange:t=>{const{value:e}=t.target;e.length<=m&&(C(e),x(e))},onKeyDown:w})}},7071:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=(0,n.ph)((t=>{let{items:e,crItem:o,...s}=t;return(0,n.lZ)(e,((t,e)=>o(t,e,s)))}))},7144:(t,e,o)=>{"use strict";o.d(e,{A:()=>m});var n=o(1315),s=o(710),r=o(4558),i=o(9073),a=o(4867),l=o(6736),c=o(6409),d=o(4848);const p={lineHeight:2},u={display:"inline-block",position:"relative",top:1},h={paddingLeft:4,fontWeight:"bold",fontSize:"16px",cursor:"pointer"},m=t=>{let{refItem:e,isClose:o=!0,role:m="button",labelId:f,className:g,style:y,rowStyle:x,ocStyle:v,caption:b,captionStyle:C,openColor:S,CompAfter:w,childStyle:A,dndHandlers:j,children:$}=t;const T=(0,n.Bi)(),[k,_]=(0,a.A)(!o),E=(0,l.Ly)(_),[D,I,L,N]=((t,e)=>t?["M 2,14 L 14,14 14,2 2,14",e,`${r.ae} ${r.fy}`,r.CQ]:["M 2,2 L 14,8 2,14 2,2",i.fB,r.ae,r.JS])(k,S);return(0,d.jsxs)("div",{style:{...p,...y},children:[(0,d.jsxs)("div",{className:r.WE,style:x,children:[(0,d.jsxs)("div",{...j,...(0,s.k)(k,T),role:m,tabIndex:"0",ref:e,className:g||r.c5,style:v,onClick:_,onKeyDown:E,children:[(0,d.jsx)(c.A,{w:"16",style:u,children:(0,d.jsx)("path",{fill:I,strokeWidth:"1",stroke:S,d:D})}),(0,d.jsx)("span",{id:f,style:{...h,...C},children:b})]}),w]}),(0,d.jsx)("div",{id:T,className:L,style:{...A,...N},children:$})]})}},8203:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(4558),s=o(4848);const r=(0,n.mg)(),i=t=>{let{refEl:e,className:o,style:i,children:a}=t;return(0,s.jsx)("div",{ref:e,className:(0,n.PX)(r,o),style:i,children:a})}},2357:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(7599),s=o(4558),r=o(4848);const i=t=>{let{isShow:e,className:o,style:i,withoutAnimation:a,animationClass:l,onKeyDown:c,children:d}=t;const[p,u]=(0,s.lS)(e,o,a,l);return(0,r.jsx)("div",{...(0,n.g3)(e),className:p,style:{...i,...u},onKeyDown:c,children:d})}},1327:(t,e,o)=>{"use strict";o.d(e,{D4:()=>p,Ll:()=>a,M_:()=>i,W:()=>u,sK:()=>d,t8:()=>c});var n=o(4558),s=o(4848);const r=t=>e=>{let{id:o,style:n,children:r}=e;return(0,s.jsx)("span",{id:o,className:t,style:n,children:r})},i=r((0,n._F)("sp-value")),a=r((0,n._F)("sp-date")),l=(0,n.tP)("sp-label"),c=r((0,n._F)(l)),d=`${l} sp-input`,p=r((0,n._F)(d)),u=r(n.eT)},3375:(t,e,o)=>{"use strict";o.d(e,{JF:()=>d,n9:()=>c,y$:()=>f,yX:()=>a});var n=o(1315),s=o(4848);const r=t=>{let{style:e}=t;return(0,s.jsx)("div",{style:e,"data-loader":"circle"})},i={position:"relative",width:32,height:32,margin:"32px auto 0"},a=t=>{let{style:e}=t;return(0,s.jsx)(r,{style:{...i,...e}})},l={padding:16},c=t=>{let{errMsg:e=""}=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"data-loader":"circle-failed",style:i}),(0,s.jsx)("p",{className:"err-msg",style:l,children:`${e}: Network error.`})]})},d=(t,e)=>t?"L":e?"F":void 0,p={transition:"opacity 800ms ease-out"},u={opacity:1},h={borderColor:"#f44336",animation:"none"},m={opacity:0},f=t=>{let{style:e,status:o}=t;const i=(t=>{const[e,o]=(0,n.J0)(!1);return(0,n.vJ)((()=>{t||setTimeout((()=>o(!0)),1e3)}),[t]),e})(o),a="L"===o?u:"F"===o?h:m;return i?null:(0,s.jsx)(r,{style:{...p,...e,...a}})}},8885:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(7071),s=o(4848),r=o(3569);const i={paddingBottom:4},a=t=>{let{step:e,stepStyle:o,title:n}=t;return(0,s.jsxs)("p",{style:i,children:[(0,s.jsx)("span",{style:o,children:e}),(0,s.jsxs)("span",{children:[" ",n,"."]})]})},l=(t,e,o)=>(0,r.createElement)(a,{...o,key:t,step:e+1,title:t}),c=t=>{let{className:e,style:o,stepStyle:r,titles:i}=t;return(0,s.jsx)("div",{className:e,style:o,children:(0,s.jsx)(n.A,{items:i,crItem:l,stepStyle:r})})}},1853:(t,e,o)=>{"use strict";o.d(e,{A:()=>g});var n=o(1315),s=o(4558),r=o(6984),i=o(6736),a=o(9073),l=o(540),c=o(4848);const d="chb-checked",p={display:"inline-block"},u="#777777",h=t=>{let{className:e}=t;return(0,c.jsx)("path",{className:e,d:"M 2,5 L 8,14 14,1",strokeWidth:"2",strokeLinecap:"round",fill:a.fB})},m=()=>{},f=t=>{let{labelId:e,ariaLabel:o}=t;return e?{"aria-labelledby":e}:{"aria-label":o||"Option"}},g=t=>{const{initialValue:e,value:o,className:g,style:y,color:x,cnChecked:v=d,onCheck:b=m,onUnCheck:C=m}=t,[S,w]=(0,n.J0)((()=>(0,n.bj)(o)?void 0:!!e)),A=(0,r.A)((()=>(0,n.bj)(S))),j=A?S:o,$=(0,n.Kr)((()=>({setUnchecked:()=>w(!1)})),[]),T=(0,n.hb)((t=>{t.preventDefault();(j?C:b)($),A&&w(!j)}),[j,b,C]),k=(0,i.Ly)(T,[T]),_=j?g:void 0,[E,D]=_?[]:j?[x||u,x||a.fB]:[u,a.fB];return(0,c.jsx)("div",{...f(t),role:"checkbox",tabIndex:"0","aria-checked":j,className:(0,s.PX)("chb",_),style:y,onClick:T,onKeyDown:k,children:(0,c.jsxs)(l.A,{w:"16",style:p,children:[(0,c.jsx)("rect",{x:"1",y:"1",height:"14",width:"14",strokeWidth:"2",rx:"3",stroke:E,fill:D}),j?(0,c.jsx)(h,{className:v}):null]})})}},5709:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(6409),s=o(4848);const r=t=>{let{refEl:e,style:o,svgStyle:r,onClick:i}=t;return(0,s.jsx)("button",{type:"button",ref:e,className:"bt-more",style:o,onClick:i,children:(0,s.jsxs)(n.A,{w:"6",h:"22",style:r,children:[(0,s.jsx)("circle",{cx:"3",cy:"4",r:"2"}),(0,s.jsx)("circle",{cx:"3",cy:"11",r:"2"}),(0,s.jsx)("circle",{cx:"3",cy:"18",r:"2"})]})})}},761:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(1358),s=o(7071),r=o(4848);const i={display:"flex",alignItems:"center",padding:"6px 5px"},a={marginLeft:20},l=(t,e)=>{let{caption:o,title:s,onClick:i}=t;return(0,r.jsx)(n.A,{style:a,caption:o,title:s,onClick:i},o+e)},c=t=>{let{buttons:e}=t;return(0,r.jsx)("div",{style:i,role:"toolbar",children:(0,r.jsx)(s.A,{items:e,crItem:l})})}},9759:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(4558),s=o(8885),r=o(4848);const i="#f44336",a={color:i,paddingLeft:10,paddingTop:4,fontWeight:"bold",lineHeight:1.4},l=(0,n.lp)(i),c=t=>{let{validationMessages:e}=t;return(0,r.jsx)(s.A,{style:a,stepStyle:l,titles:e})}},6409:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{w:e,h:o=e,children:s,...r}=t;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:`${e}px`,height:`${o}px`,viewBox:`0 0 ${e} ${o}`,...r,children:s})}},540:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{w:e,h:o=e,children:s,...r}=t;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:`0 0 ${e} ${o}`,preserveAspectRatio:"none",...r,children:s})}},372:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=function(t,e){let{onEnter:o,onDelete:s}=t;return void 0===e&&(e=[]),(0,n.hb)((t=>{(0,n.CA)(t);switch(t.code||t.keyCode){case"Delete":case 46:case"Escape":case 27:t.preventDefault(),s();break;case"Enter":case 13:"function"==typeof o&&o(t.target.value);break;default:return}}),e)}},3090:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(2040),s=o(3597);const r={maxWidth:275,lineHeight:1.3,paddingTop:6,paddingBottom:6},i={...r,whiteSpace:"unset"},a=t=>`./data/${t}/source-menu.json`,l=(t,e,o,n,s)=>({browserType:t,caption:e,sourceMenuUrl:a(o),itemStyle:n,topicStyle:s}),c={[n.Y5]:l(n.Y5,"Stock Markets","stock-markets"),[n.Vv]:l(n.Vv,"Eurostat Overview","eurostat"),[n.x7]:l(n.x7,"EU FIGARO","figaro"),[n.FJ]:l(n.FJ,"Euro Indicators / PEEIs","peeis"),[n.a]:l(n.a,"EU Comext","comext"),[n.aw]:l(n.aw,"EU SDG","eu-sdg",{...r},{...i}),[n.kQ]:l(n.kQ,"EU MIP","eu-mip",{...r},{...i}),[n.JL]:l(n.JL,"Circular economy indicators","eu-cei",{...r},{...i}),[n.vj]:l(n.vj,"UN Comtrade","uncomtrade"),[n.gH]:l(n.gH,"FAOSTAT","faostat"),[n.HY]:l(n.HY,"World Bank","world-bank"),[n.Mt]:l(n.Mt,"WTO","wto"),[n.yO]:l(n.yO,"DBnomics","db-nomics"),[n.iy]:l(n.iy,"Energy","energy"),[n.Q]:l(n.Q,"Blockchains","blockchain"),[n.dI]:l(n.dI,"Commodities","commodities"),[n.hc]:l(n.hc,"Central Banks","central-banks"),[n.Rx]:l(n.Rx,"Currencies","currency"),[n.VZ]:l(n.VZ,"OECD","oecd"),[n.RD]:l(n.RD,"INSEE: Statistics France","statistics-france"),[n.GD]:l(n.GD,"ONS: Statistics UK","statistics-uk"),[n.Os]:l(n.Os,"Statistics Norway (A)","statistics-norway"),[n.D3]:{browserType:n.D3,caption:"Statistics Norway",dfProps:{bT:n.D3,lT:"NST_2",sP:"Stat. Norway",dU:"./data/statistics-norway/statistics-norway.html",dS:"Statistics Norway",rootUrl:"https://data.ssb.no/api/v0/en/table"}},[n.V5]:l(n.V5,"Statistics Sweden (A)","statistics-sweden"),[n.zC]:{browserType:n.zC,caption:"Statistics Sweden",dfProps:{bT:n.zC,lT:"SWS",sP:"Stat. Sweden",dU:"./data/statistics-sweden/statistics-sweden.html",dS:"Statistics Sweden",rootUrl:"https://api.scb.se/OV0104/v1/doris/en/ssd"}},[n.MM]:l(n.MM,"FSO: Statistics Swiss","statistics-swiss"),[n.R5]:{browserType:n.R5,caption:"Statistics Finland",dfProps:{bT:n.R5,lT:"SFL",sP:"Stat. Finland",dU:"./data/statistics-finland/statistics-finland.html",dS:"Statistics Finland",noTime:!0,rootUrl:"https://statfin.stat.fi/PXWeb/api/v1/en/StatFin"}},[n.rJ]:{browserType:n.rJ,caption:"Statistics Denmark",dfProps:{bT:n.rJ,lT:"SDN",sP:"Stat. Denmark",dU:"./data/statistics-denmark/statistics-denmark.html",dS:"Statistics Denmark",rootUrl:"https://api.statbank.dk/v1/subjects",dfTi:"?lang=en&includeTables=true",rootDimUrl:"https://api.statbank.dk/v1/tableinfo",dfDimQuery:"?lang=en"}},[n.Wr]:{browserType:n.Wr,caption:"CSO: Statistics Ireland",dfProps:{bT:n.Wr,lT:"SIR",sP:"CSO Ireland",dU:"./data/statistics-ireland/statistics-ireland.html",dS:"CSO Ireland",rootUrl:"https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.PxAPIv1/en"}},[n.rv]:l(n.rv,"U.S. Economics","us-economics"),[n.vf]:{browserType:n.vf,caption:"NYSE by Sectors",sourceMenuUrl:"./data/nyse-stocks/source-menu.json",withoutItemCounter:!0,modalDialogType:s.lS,chartContainerType:n.vf+"_"+n.RM,contFullCaption:"NYSE by Sectors",itemOptionType:"ItemTopicOption",itemType:"ItemWithCap",descrUrl:"./data/nyse-stocks/nyse-stocks.html"},[n.G9]:{browserType:n.G9,caption:"NASDAQ by Sectors",sourceMenuUrl:"./data/nasdaq-stocks/source-menu.json",withoutItemCounter:!0,modalDialogType:s.lS,chartContainerType:n.G9+"_"+n.RM,contFullCaption:"NASDAQ by Sectors",itemOptionType:"ItemTopicOption",itemType:"ItemWithCap",descrUrl:"./data/nasdaq-stocks/nasdaq-stocks.html"},[n.mU]:{browserType:n.mU,withoutItemCounter:!0}}},2040:(t,e,o)=>{"use strict";o.d(e,{D3:()=>g,FJ:()=>k,G9:()=>j,GD:()=>m,HY:()=>p,JL:()=>l,MM:()=>S,Mt:()=>u,Os:()=>f,Q:()=>D,R5:()=>v,RD:()=>h,RM:()=>w,Rx:()=>N,V5:()=>y,VZ:()=>O,Vv:()=>s,Wr:()=>C,Y5:()=>n,a:()=>r,aw:()=>i,dI:()=>I,gH:()=>d,hc:()=>L,iy:()=>E,kQ:()=>a,mU:()=>M,rJ:()=>b,rv:()=>_,vf:()=>A,vj:()=>c,x7:()=>T,yO:()=>$,zC:()=>x});const n="SM",s="ES",r="CMX",i="SDG",a="MIP",l="CEI",c="UN",d="FAO",p="WB",u="WT",h="FS",m="UKS",f="NST",g="NST_ALL",y="SWS",x="SWS_ALL",v="SFL",b="SDN",C="SIR",S="FSO",w="STOCKS_BY_SECTORS",A="NS",j="NQS",$="DBN",T="FGR",k="PE",_="US",E="EN",D="BC",I="CM",L="CB",N="CR",O="OE",M="WL"},6460:(t,e,o)=>{"use strict";o.d(e,{$g:()=>x,BG:()=>d,Dn:()=>r,ET:()=>y,Fm:()=>u,QV:()=>c,Sx:()=>h,V:()=>b,bR:()=>v,cx:()=>m,ly:()=>i,mf:()=>n,nQ:()=>g,qv:()=>s,uT:()=>f,zM:()=>p});const n="AREA",s="SPLINE",r="LINE",i="COLUMN",a=t=>`${t}_CLUSTER`,l=t=>`${t}_SET`,c="BAR",d=a(c),p=l(c),u=`${c}_WITH_LABELS`,h=l(i),m=a(i),f="TREE_MAP",g=a(f),y=`BAR_${f}`,x="MAP",v="DOT_SET",b="AREA_YEARLY"},5355:(t,e,o)=>{"use strict";o.d(e,{Cj:()=>g,D:()=>Q,Ev:()=>C,F:()=>H,H2:()=>I,HA:()=>v,HF:()=>V,KG:()=>h,L5:()=>W,LW:()=>ot,MR:()=>b,N3:()=>O,PG:()=>Z,U:()=>U,VU:()=>B,VV:()=>K,Yn:()=>q,Yq:()=>N,_G:()=>E,_v:()=>Y,ay:()=>J,bX:()=>P,bg:()=>w,dM:()=>G,fX:()=>k,fc:()=>S,gJ:()=>F,gN:()=>R,gW:()=>D,h5:()=>X,hb:()=>z,lb:()=>et,mz:()=>T,oH:()=>m,oX:()=>M,qN:()=>x,t_:()=>A,tb:()=>$,uL:()=>f,ud:()=>j,vN:()=>L,wN:()=>nt,xp:()=>tt,yj:()=>_,zu:()=>y});const n="#4caf50",s="#f44336",r="#2f7ed8",i="#a487d4",a="#f1d600",l="grey",c="#4d4d4d",d="black",p="white",u="#fdb316",h="#80c040",m=s,f="white",g="#607d8b",y=p,x=p,v=d,b=l,C="transparent",S="#232f3b",w=i,A=a,j=c,$="rgba(69, 114, 167, 1)",T="rgba(2, 0, 0, 0)",k="rgba(254, 256, 256, 0)",_=d,E=i,D=l,I=l,L=u,N=u,O=l,M=l,F=r,W=r,R="rgba(0,0,0, 0.5)",P=n,B=s,U=n,z="#f7a35c",V="#7cb5ec",J="#90ed7d",K=i,Z=a,q=a,Y=i,G=a,H=i,Q=r,X=l,tt="#90ed7d",et=n,ot=s,nt="#7cb5ec"},7222:(t,e,o)=>{"use strict";o.d(e,{OD:()=>r,eB:()=>i,sW:()=>a,uF:()=>n,y_:()=>s});const n="EUROSTAT_MAP",s="TABLE",r="ALPHA_PERF",i="INFO_ITEM",a="TW_LIST"},7441:(t,e,o)=>{"use strict";o.d(e,{_l:()=>r,dj:()=>n,sW:()=>s,zy:()=>i});const n="up",s="down",r="equal",i="empty"},2190:(t,e,o)=>{"use strict";o.d(e,{$8:()=>M,Bs:()=>tt,D7:()=>n,G7:()=>c,Jm:()=>s,Kr:()=>L,M_:()=>J,Me:()=>Q,N2:()=>N,O2:()=>T,P:()=>D,PX:()=>C,Pj:()=>I,Pn:()=>B,QR:()=>E,T2:()=>i,TF:()=>S,Tq:()=>x,US:()=>A,WC:()=>R,Wl:()=>v,Wv:()=>d,XT:()=>m,YQ:()=>u,Z_:()=>H,Zh:()=>q,_0:()=>k,_D:()=>z,_M:()=>K,b$:()=>U,b2:()=>V,bE:()=>Z,bR:()=>b,cL:()=>p,ei:()=>Y,fU:()=>j,f_:()=>O,iN:()=>P,jd:()=>g,kw:()=>et,o0:()=>nt,oG:()=>X,oS:()=>ot,p1:()=>y,pO:()=>a,s1:()=>w,s5:()=>h,sd:()=>F,tI:()=>G,tz:()=>f,ur:()=>$,v$:()=>_,vq:()=>r,xv:()=>W,zO:()=>l});const n="Q",s="AV",r="AV_BLCH",i="AV_ECON",a="FMP",l="TW",c="DBN",d="OE",p="EI",u="EMB",h="IRE",m="EN",f="EU_STAT",g="FS",y="UKS",x="NST",v="NST_2",b="SWS",C="SFL",S="SDN",w="SIR",A="FSO",j="SNB",$="BOC",T="ECB",k="BIS",_="UN",E="FAO",D="WB",I="WT",L="BEA",N="BLS",O="EIA",M="INTR",F="CRC",W="CCI",R="CG",P="CM",B="CP",U="CL",z="BN",V="CB",J="BF",K="BT",Z="CR",q="KR",Y="KC",G="GT",H="KX",Q="BB",X="HT",tt="WL",et="WL_WATCH_LIST",ot=t=>t===f,nt=t=>ot(t)||t===u||t===O||t===T||t===k||t===d||t===n},3597:(t,e,o)=>{"use strict";o.d(e,{$t:()=>r,Ik:()=>n,R0:()=>u,VO:()=>m,XB:()=>i,XT:()=>d,Zf:()=>c,aF:()=>f,gh:()=>l,jN:()=>a,lS:()=>h,mq:()=>s,oX:()=>g,q0:()=>p,qv:()=>y});const n="ASK",s="RELOAD",r="info",i="alert",a="DESCRIPTION",l="settings",c="CUSTOMIZE_EXPORT",d="COLUMN_RANGE",p="addToWatch",u="loadItem",h="STOCKS_BY_SECTOR",m="editWatchGroup",f="editWatchList",g="pasteTo",y="zoom"},1569:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n={palette:{rows:3,cols:3,colors:["#7cb5ec","#8abb5d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}},3289:(t,e,o)=>{"use strict";o.d(e,{$d:()=>b,BH:()=>m,DC:()=>C,QW:()=>c,SE:()=>a,UU:()=>A,f0:()=>h,j6:()=>u,j7:()=>S,jo:()=>d,mA:()=>w,oV:()=>v,qq:()=>p,tS:()=>f,u1:()=>x});const n="Without Api Key",s=t=>["For this type of",t,"request"].filter(Boolean).join(" "),r="and then enter your API key in dialog SETTINGS [s].",i=(t,e)=>({caption:t,descr:e}),a=(t,e)=>{const{caption:o,descr:n}=e;t.alertCaption=o,t.alertDescr=n},l="Nasdaq Data Link",c=t=>`${t} is not selected`,d=t=>`${t} is not in valid format`,p="YYYY-MM-DD format must be OR Empty",u=i("Check Error","The chart for this code has already existed in a container. Please, close it and load again."),h=i("Loading In Progress Error","Loading the chart for this item-code in progress.\nIt seems several clicks on button Load repeatedly happend."),m=i("Double Load Meta Error","Meta data for this code already have been loaded."),f=i(n,`403 : Forbidden\n\nYou have attempted to view a premium database in anonymous mode, i.e., without providing a ${l} key. Please register for a free ${l} account, and then enter your API in dialog SETTINGS [s].`),g="API key is required",y="Please register for a free",x=i(n,`${s()} a ${l} ${g}. ${y} ${l} account, ${r}`),v=t=>i(n,`${s()} a ${t} ${g}. ${y} ${t} account, more top button A in dialog, ${r}`),b=t=>i("Without Proxy Server",`${s(t)} local HTTP proxy server is required. Could be set in dialog SETTINGS [s].`),C=i("Http Code 429","Too many request in a given amount of time (rate limiting)"),S=i("Network Error","Network error is encountered. Failed to fetch. Maybe you are offline or a DNS lookup failure or a data provider does not respond."),w={...i("Not Allowed to Add","This type of request isn't allowed to be added to selected chart. It can be loaded in his own chart or view item."),token:"ERR_10"},A="It seems you are offline"},1990:(t,e,o)=>{"use strict";o.d(e,{CO:()=>n,Iv:()=>s,L2:()=>p,N:()=>d,Px:()=>l,Wq:()=>c,si:()=>a,xu:()=>i,xw:()=>m,yJ:()=>h});const n="Watch List has been saved.",s="Watch List has not been edited\nfrom previous save.",r="is already existed.",i=(t,e)=>`The ${t} witn name ${e} not found.`,a=t=>`Group with name ${t} ${r}`,l=(t,e)=>`List with name ${t} in Group ${e} ${r}`,c=(t,e)=>`Item with name ${t} in List ${e} ${r}`,d=t=>`${t} name can not be empty.`,p=t=>`${t} is not selected.`,u=(t,e)=>({alertCaption:`Drag Drop ${t}`,alertDescr:`${e} ${r}`}),h=u("Item","Item in List"),m=u("List","List in Group")},4616:(t,e,o)=>{"use strict";o.d(e,{FW:()=>u,Jg:()=>h,Lm:()=>c,S7:()=>p,SZ:()=>l,hM:()=>m,l0:()=>a,qZ:()=>i,xI:()=>d});var n=o(7343),s=o(4427),r=o(3597);const i=(0,n.Jr)(s.BK,r.jN),a=(0,n.Jr)(s.BK,r.gh),l=(0,n.Jr)(s.BK,r.oX),c=(0,n.Jr)(s.BK,r.qv),d=(0,n.Jr)(s.BK,r.mq),p=(0,n.Jr)(s.BK,r.XB),u=(0,n.Jr)(s.BK,r.Ik),h=(0,n.Jr)(s.BK,r.Zf),m=(0,n.Jr)(s.BK,r.q0)},6136:(t,e,o)=>{"use strict";o.d(e,{Jy:()=>r,NR:()=>s,lX:()=>n});const n="LOADING",s="LOADING_COMPLETE",r="LOADING_FAILED"},2440:(t,e,o)=>{"use strict";o.d(e,{$H:()=>a,Nt:()=>l,Wb:()=>r,Xk:()=>n,dr:()=>i,fM:()=>s,yq:()=>c});const n="addItem",s="crGroup",r="renGroup",i="delGroup",a="crList",l="renList",c="delList"},240:(t,e,o)=>{"use strict";o.d(e,{is:()=>Rt,So:()=>Se});var n=o(3730),s=o(1852),r=o(2823),i=o(2040),a=o(4616),l=o(4427),c=o(2394),d=o(9466),p=o(5952),u=o(8801),h=o(434),m=o(6872),f=o(4848);const g=t=>{let{item:e,propCaption:o}=t;return(0,f.jsx)("div",{className:m.oD,children:(e||{})[o]})},y={color:"#a487d4"},x=t=>{const{item:e}=t;return(0,f.jsxs)("div",{children:[(0,f.jsx)(g,{...t}),(0,f.jsx)("div",{className:m.oD,style:y,children:e.topic})]})},v=(0,h.v)({DF:g,ItemOption:g,ItemTopicOption:x});var b=o(1315),C=o(6736),S=o(6204);const w={position:"relative",minWidth:350,padding:"5px 10px 5px 0",lineHeight:1.4},A={verticalAlign:"middle",width:"100%"},j=t=>{let{caption:e,className:o,item:n,onClickItem:s,children:r}=t;const i=(0,b.hb)((()=>s(n)),[]),a=(0,C.Ly)(i);return(0,f.jsxs)("div",{role:"menuitem",tabIndex:"0",className:o,style:w,onClick:i,onKeyDown:a,children:[(0,f.jsx)(S.A,{style:A,text:e}),r]})};var $=o(5856);let T;const k=t=>Intl&&Intl.NumberFormat?function(t){let{currency:e="USD",...o}=void 0===t?{}:t;return{_f:new Intl.NumberFormat(T||(T=Array.isArray(navigator.languages)?navigator.languages[0]:navigator.language||"en",T),{style:"currency",currency:e,...o}),format:function(t){return null==t?this._f.format(0):this._f.format(t)}}}(t):{format:$.A},_="n/a",E={paddingRight:8},D={display:"display-inline",color:"#2f7ed8",paddingRight:8,width:90,float:"right"},I={display:"display-inline",color:"#fdb316",width:70,float:"right"},L=k({minimumFractionDigits:0,maximumFractionDigits:0}),N=k(),O=t=>{let{cap:e,salePrice:o,ipo:n}=t;const s=0===e?_:L.format(e),r=e!==_&&0!==e?N.format(o):_;return(0,f.jsxs)("div",{children:[(0,f.jsx)("span",{style:E,children:s}),(0,f.jsx)("span",{style:I,children:`ipo ${n}`}),(0,f.jsx)("span",{style:D,children:r})]})},M=t=>{const{item:e}=t,{cap:o,salePrice:n,ipo:s}=e;return(0,f.jsx)(j,{...t,children:(0,f.jsx)(O,{cap:o,salePrice:n,ipo:s})})},F={paddingRight:8},W={display:"display-inline",color:"gray",width:35,float:"right"},R={display:"display-inline",color:"rgb(253, 179, 22)",width:85,float:"right"},P=k({currency:"GBP",minimumFractionDigits:3}),B=t=>{const{item:e}=t,{cap:o,c:n,date:s}=e||{},r=0===o?"n/a":P.format(o)+" ml";return(0,f.jsx)(j,{...t,children:(0,f.jsxs)("div",{children:[(0,f.jsx)("span",{style:F,children:r}),(0,f.jsx)("span",{style:R,children:s}),(0,f.jsx)("span",{style:W,children:n})]})})},U=(0,h.v)({Item:j,ItemWithCap:M,ItemLse:B});var z=o(7159),V=o(8376),J=o(4558),K=o(634),Z=o(4407),q=o(8248);const Y=(t,e,o,n)=>{const[s,r]=(0,b.J0)([]),[i,a]=s,l=(0,q.A)(t)&&!a&&!i;return o((t=>{if(t&&t.browserType===n){const{menuItems:e}=t;r(e?[!1,e]:[])}})),(0,b.vJ)((()=>{l&&(e(),r([!0]))}),[l]),s};var G=o(6752),H=o(2336),Q=o(8203),X=o(3375),tt=o(7144);const et={display:"inline-block",color:"#9e9e9e",margin:"0 16px",backgroundColor:"transparent"},ot=()=>(0,f.jsx)("span",{style:et,children:"New"});var nt=o(8910);const st=(0,J.KJ)("menu__badge"),rt={color:"#a487d4"},it=t=>{let{atomBadge:e,onOpen:o,onClose:n}=t;const{is:s,value:r}=e.useAtomValue(),i=(0,b.hb)((t=>{t.stopPropagation(),s?n():o()}),[s,o,n]);return 0===r?null:(0,f.jsx)(nt.A,{tabIndex:"-1",className:st,style:s?rt:void 0,caption:r,onClick:i})},at=t=>{let{refItem:e,isNew:o,style:n,title:s,atomBadge:r,onBadgeClick:i,onBadgeClose:a,onClick:l}=t;const c=(0,C.Ly)(l);return(0,f.jsxs)("div",{ref:e,tabIndex:"0",role:"menuitem",className:J.zV,style:n,onClick:l,onKeyDown:c,children:[s,null!=r&&(0,f.jsx)(it,{atomBadge:r,onOpen:i,onClose:a}),o?(0,f.jsx)(ot,{}):null]})};var lt=o(3569);const ct={paddingLeft:6},dt=t=>{let{items:e,itemStyle:o,topicStyle:n}=t;return(0,b.lZ)(e,((t,e)=>(0,b.Ep)(t.items)?(0,lt.createElement)(ht,{...t,key:e,style:ct,openColor:"#80c040",itemStyle:o,topicStyle:n}):(0,lt.createElement)(at,{...t,style:o,key:e})))},pt={paddingRight:12,whiteSpace:"nowrap"},ut={paddingLeft:4},ht=t=>{let{refFirstItem:e,style:o,openColor:n,itemStyle:s,topicStyle:r,caption:i,isInitOpen:a,items:l,...c}=t;return(0,b.Ep)(l)?(0,f.jsx)(tt.A,{refItem:e,role:"menuitem",isClose:!(!0===a),style:o,ocStyle:{...pt,...r},openColor:n,caption:i,children:(0,f.jsx)(dt,{items:l,itemStyle:s,topicStyle:r})}):(0,f.jsx)(at,{...c,style:{...ut,...s},refItem:e})},mt=t=>{let{refFirstItem:e,menu:o,itemStyle:n,topicStyle:s}=t;return(0,b.lZ)(o,((t,o)=>(0,f.jsx)(ht,{...t,itemStyle:n,topicStyle:s,refFirstItem:0===o?e:void 0},o)))},ft=(0,J.nV)("scroll-menu"),gt=t=>{const{caption:e,browserType:o,itemStyle:n,topicStyle:s,useMsBrowserLoad:r,onLoadMenu:i,children:a}=t,[l,c,d]=(0,K.A)(t),[p,u]=Y(l,i,r,o),h=(0,Z.C)(l&&u);return(0,f.jsxs)(G.A,{isShow:l,onKeyDown:d,children:[(0,f.jsx)(H.A,{caption:e,onClose:c}),(0,f.jsxs)(Q.A,{className:ft,children:[p&&(0,f.jsx)(X.yX,{}),(0,f.jsx)(mt,{refFirstItem:h,menu:u,itemStyle:n,topicStyle:s}),a]})]})},yt=(0,V.A)((t=>(0,f.jsx)(gt,{...t})));var xt=o(4867),vt=o(2357),bt=o(761);var Ct=o(6476);const St=(0,V.A)((t=>{let{style:e,placeholder:o="",data:n,ItemOptionComp:s,onSelect:r}=t;const i=(0,b.hb)((t=>{t&&r(t)}),[r]),{meta:a}=n||{},{caption:l}=a||{},c=(t=>{if(0===t.length)return[];const{meta:e}=t,{caption:o,level1:n,level2:s,level3:r}=e,i=[];let a,l,c,d,p,u;for(d=0;d{let{itemClassName:n,ItemComp:s,onClickItem:r}=o;return(0,b.lZ)(t,((t,o)=>(0,f.jsx)(s,{className:n,caption:t[e],item:t,onClickItem:r},o)))},jt=(t,e,o,n)=>(0,b.lZ)(t,((t,s)=>(0,f.jsx)(tt.A,{role:"menuitem",style:J.Ke,openColor:wt.ui,caption:t[e],children:At(t[o],e,n)},s))),$t=t=>{const{model:e}=t,{meta:o}=e,{caption:n,level1:s,level2:r,level3:i}=o||{},a=n||"caption",l=r||"lists",c=i||"items",d=e[s||"groups"];return(0,b.lZ)(d,((e,o)=>(0,f.jsx)(tt.A,{role:"menuitem",caption:e[a],children:jt(e[l],a,c,t)},o)))},Tt=(0,b.ph)((t=>(0,f.jsx)("div",{children:$t(t)})),((t,e)=>t.model===e.model)),kt="scroll-browser-by",_t=`${kt}--search`,Et={paddingBottom:4,minWidth:300},Dt={width:"100%",paddingBottom:8,paddingRight:24},It=(t,e,o)=>({caption:t,title:e,onClick:o}),Lt=t=>{const{browserType:e,useMsBrowserLoad:o,caption:n,onLoadMenu:s,descrUrl:r,onClickInfo:i,onShowLoadDialog:a,ItemOptionComp:l,ItemComp:c,children:d}=t,[p,u,h]=(0,K.A)(t),[m,g]=(0,xt.A)(),y=((t,e,o)=>(0,b.Kr)((()=>[It("S","Click to toggle input search",t),It("A","About Datasources",(()=>{e({descrUrl:o})}))]),[]))(g,i,r),[x,v]=Y(p,s,o,e),C=m?_t:kt;return(0,f.jsxs)(G.A,{isShow:p,style:Et,onKeyDown:h,children:[(0,f.jsx)(H.A,{caption:n,onClose:u}),(0,f.jsx)(bt.A,{buttons:y}),v&&(0,f.jsx)(vt.A,{isShow:m,children:(0,f.jsx)(St,{style:Dt,placeholder:"Search By Symbol Or Name",data:v,ItemOptionComp:l,onSelect:a})}),(0,f.jsxs)(Q.A,{className:C,children:[x&&(0,f.jsx)(X.yX,{}),v&&(0,f.jsx)(Tt,{model:v,ItemComp:c,itemClassName:J.eA,onClickItem:a}),d]})]})},Nt=(0,V.A)((t=>(0,f.jsx)(Lt,{...t}))),Ot=(0,z.vL)({[i.vf]:Nt,[i.G9]:Nt,get[i.mU](){return o.e(103).then(o.bind(o,6366)).then((t=>t.default))},get _BrowserSlider(){return o.e(577).then(o.bind(o,988)).then((t=>t.default))},get STAT_ALL(){return this._BrowserSlider}},yt),Mt=t=>(0,f.jsx)(t,{isInitShow:!0,browserType:i.mU,caption:"Watch List",useMsBrowserShow:p.J8,useWatchList:u.BB},i.mU),Ft=(t,e)=>{const{browserType:o,caption:r="Source Browser",itemStyle:i,topicStyle:u,sourceMenuUrl:h,chartContainerType:m,modalDialogType:g,itemOptionType:y,itemType:x,descrUrl:b,dfProps:C}=e,S=U(x);return(0,f.jsx)(t,{isInitShow:!0,dfProps:C,browserType:o,caption:r,descrUrl:b,itemStyle:i,topicStyle:u,ItemOptionComp:v(y),ItemComp:S,onClickInfo:(0,n.XB)(S)?void 0:a.qZ,useMsBrowserShow:p.J8,useMsBrowserLoad:p.GM,onLoadMenu:(0,s.J)(p.hJ,{browserType:o,caption:r,sourceMenuUrl:h}),onShowLoadDialog:m?t=>(0,l.BK)(g,{item:t,browserType:o,chartContainerType:m,onShow:(0,s.J)(c.Fb,m,o)}):void 0,getProxy:d.V_},o)},Wt=(0,r.Gu)([i.zC,i.D3,i.R5,i.rJ,i.Wr]),Rt=t=>{const e=t.browserType;return e===i.mU?Ot(i.mU).then(Mt):Wt(e)?Ot("STAT_ALL").then((e=>Ft(e,t))):Promise.resolve(Ft(Ot(e),t))};var Pt=o(8678),Bt=o(3289),Ut=o(2190),zt=o(391),Vt=o(2111),Jt=o(2401),Kt=o(9009);const Zt=Jt.eW,qt=Jt.z,Yt=t=>(0,Kt.O)(t&&t.sc||Zt(t)),Gt=Array.isArray,Ht=t=>t.filter(Boolean).join(": "),Qt=t=>(t||[]).map((t=>Yt(t))),Xt=function(t){const e=t.filter(Boolean).map((t=>qt(t)||Zt(t)||t)).join("_");for(var o=arguments.length,n=new Array(o>1?o-1:0),s=1;s{const o=((t,e)=>(Gt(e)&&0!==e.length||(e=[0]),e.map((e=>Yt(t[e]))).join(": ")))(t,e),n=t.filter(Zt),[s,r,i,a,...l]=n,c=Yt(s),d=Yt(r),p=Yt(i),u=Yt(a);let h,m=c;return u?(m=Ht([c,d]),h=Ht([p,u,...Qt(l)])):p?h=Ht([d,p]):d&&(h=d),[o,m||h,m?h:void 0,p]},ee=t=>{const e=parseInt(t,10);return e>-1&&e<4?e:void 0},oe=Object.assign,ne=(t,e)=>{const{loadId:o,linkFn:n,dataSource:s,dfProps:r}=t||{},{items:i=[],titles:a,dialogOptions:l,chartType:c,seriaColor:d,seriaWidth:p,fromDate:u,date:h,_rt:m}=e||{},[f,g,y,x]=te(i,a),{value:v,compType:b,cId:C}=c||{},S=Xt(i,v,h,u),w={...r};return((t,e)=>{const[o,n]=(t=>{let e,o,n;for(let s=0;s{const{loadId:o,dataSource:n,dfProps:s={}}=t||{},{isCategory:r,timeId:i,time:a,dfC:l,dfTitle:c,items:d=[],titles:p,dialogOptions:u,chartType:h,seriaColor:m,seriaWidth:f,selectOptions:g,_rt:y}=e||{},{value:x,compType:v}=h||{},[b,C,S]=te(d,p),w=((t,e)=>{let{dfId:o}=t;const n=[o];return e.forEach((function(t){let{slice:e,value:o}=void 0===t?{}:t;e?n.push(e[se(e)[0]]):o&&n.push(o)})),n})(s,d),A=Xt(w,x,a);return{dfC:l,dfTitle:c,...s,...u,_itemKey:A,_rt:ee(y),itemCaption:r&&c||b,loadId:o,title:C,subtitle:S,seriaType:x,seriaColor:m,seriaWidth:f,zhCompType:v,time:a,timeId:i,dataSource:n,items:d,selectOptions:g}},ie=(t,e,o)=>{const n=Zt(e),s=Zt(t)+": "+n,r=Zt(o);return r?`${s} ${i=n,-1!==i.indexOf("Export")?"to":"from"} ${r}`:s;var i},ae=t=>{const e=Zt(t);return e.length>60?e.substring(0,60)+"...":e},le=(t,e)=>{const{fnValue:o,loadId:n,dataSource:s}=t||{},{one:r,two:i,three:a,tradeFlow:l,tradePartner:c,freq:d,period:p,chart:u,chType:h,time:m,seriaColor:f,seriaWidth:g,tradePartners:y}=e||{},x=qt(r),v=qt(a)||qt(i);return{loadId:n,dataSource:s,value:"function"==typeof o?o(x,v):void 0,title:ie(r,l,c),subtitle:ae(a),oneC:Zt(r),one:x,two:v,...qt(l),tp:qt(c),freq:qt(d),period:qt(p),chart:qt(u),chType:h,time:m,seriaType:qt(u),seriaColor:f,seriaWidth:g,tradePartners:y}},ce=()=>{},de=(0,h.v)({DialogSelectN:ne,DialogQuery:ne,DialogStatN:re,UnDialog5:le,UnDialogAgg:le}),pe=(t,e)=>t?de(t)||ce:de(e)||ne,ue=(0,h.v)({ROne:t=>t,RTwo:(t,e)=>`${e}`,ROneTwo:(t,e)=>`${t}/${e}`,RPrefixOne:(t,e)=>`${t}/${e}`,RPrefixOneTwo:(t,e,o)=>`${t}/${e}_${o}`,RPrefixOneEmptyTwo:(t,e,o)=>`${t}/${o}`,RPrefixTwoOne:(t,e,o)=>`${t}/${o}_${e}`}),he=(0,zt.WB)(600),me=Object.assign,fe=(0,Pt.vC)(2),ge=(0,Pt.Gd)(),ye=(t,e)=>{const o=ue(t);return o?e?(0,s.J)(o,e):o:void 0},xe=t=>{let{isFdw:e,nInitFromDate:o}=t;return e&&!he?fe:(t=>t?"1y+1d"===t?(0,Pt.Cw)((0,Pt.vC)(1),1):(0,Pt.vC)(t):fe)(o)},ve=t=>{const e=t.isFd?{errNotYmdOrEmpty:Bt.qq,isYmdOrEmpty:Pt.nF}:void 0;return{initFromDate:xe(t),initToDate:ge,onTestDate:Pt.bX,...e}},be=function(t,e){void 0===e&&(e="Request Error"),(0,l.K$)({alertDescr:t,alertCaption:e})},Ce=t=>{let{rootUri:e,descr:o,descrUrl:n}=t;const r=o&&e?`${e}${o}.html`:n;return r?(0,s.J)(a.qZ,{descrUrl:r}):void 0},Se=(t,e)=>{const{type:o,dialogProps:r={},dialogType:i,dialogCaption:a,menuTitle:l}=e,{valueFn:p,valueFnPrefix:u,loadFnType:h,loadId:m,isGetKey:f}=r,g=((t,e)=>{let{selectProps:o,dims:s,dfProps:r}=e;return t||((0,n.Ep)(o)?"DialogSelectN":void 0)||((0,n.Ep)(s)||(r||{}).dfId?"DialogStatN":void 0)})(i,r);return((t,e)=>{if(e||(t.loadId=Ut.D7),e===Ut.tz){const{dfProps:e}=t,{mapFrequency:o}=e||{};t.dfProps=me({},e,{mapFrequency:o||"M"})}})(r,m),(0,Vt.r)(g).then((n=>(0,lt.createElement)(n,{...r,...ve(r),key:o,caption:a||l,msgOnNotSelected:Bt.QW,msgOnNotValidFormat:Bt.jo,fnValue:ye(p,u),getKey:f?d.i7:void 0,loadFn:pe(h,g),onAbout:Ce(r),onLoad:(0,s.J)(c.YM,{chartType:o,browserType:t,dialogConf:e}),onShow:(0,s.J)(c.Fb,o,t,e),onError:f?be:void 0})))}},7674:(t,e,o)=>{"use strict";o.d(e,{E:()=>up,Z:()=>hp});var n=o(2190),s=o(784),r=o(8876);const i=t=>Boolean(t)&&(0,r.Jd)(t.id),a=(t,e,o)=>{(0,r.hQ)(t)&&(o.zhMapSlice=((t,e)=>{let{dfTail:o}=e;const n={};var s;return t.forEach((t=>{n[t.id]=(0,r._W)(t)})),(s=o)&&"string"==typeof s&&((t,e)=>{e.split("&").forEach((e=>{const o=e.split("=");o[0]&&o[1]&&(t[o[0]]=o[1])}))})(n,o),n})(e,o))},l={crUrlN:t=>{const{seriaType:e,dfCmx:o,dfTable:n,dfId:s,dfTail:l}=t,c=n||s,d=(t=>{let{seriaType:e,dfC:o,dfCmx:n,items:s,time:a}=t;if((0,r.hQ)(e)){const t=o?t=>Boolean(t)&&t.id!==o:n?t=>t:i,l=s.filter(t);return(0,r.jh)(e)?l:l.concat([{id:"time",value:a}])}return s})(t),p=((t,e)=>{const o=t.map((t=>`${t.id}=${(0,r._W)(t)}`)).join("&");return e?`${o}&${e}`:o})(d,l);return a(e,d,t),(0,r.lC)(!!o,c,p,(0,r.hQ)(e)?r.Wz:void 0)}},c={getRequestUrl:t=>(t.resErrStatus=[400],t.url?t.url:t.url=l.crUrlN(t)),checkResponse(t,e,o){if(400===o)throw(0,s.UE)("","400: Bad request.\nDataset contains no data. One or more filtering elements (query parameters) are probably not valid.\nMaybe try to request this data set with older date or another country.");const{error:n}=t||{};if(n){const{label:t}=n,e=t?`${t}\n\nIf you use For Date input field in Dialog\ntry to use more late date.`:void 0;throw(0,s.UE)("",e)}}};var d=o(6460),p=o(3956),u=o(5248),h=o(3029);const m=function(t,e){return void 0===e&&(e="spline"),(t.seriaType||e).toLowerCase()},f=(t,e)=>{const[o,n,s]=(0,h.ox)(t,e);return e.seriaType=m(e),e.minY=n,e.maxY=s,(0,p.A)({option:e,data:o,confOption:{info:(0,h.E1)(t),zhConfig:(0,h.cZ)(e)}})},g=(t,e)=>{const[o,n]=(0,h.ox)(t),{itemCaption:s,seriaColor:r,seriaWidth:i}=e;return(0,u.wo)({name:s,seriaType:m(e),seriaColor:r,seriaWidth:i,data:o,minY:n})};var y=o(9270),x=o(4999),v=o(5121);const b=["01","02","03","04","05","06","07","08","09","10","11","12"],C="#008b8b",S={index:3,color:"#7cb5ec"},w={index:2,color:"#f45b5b"},A=t=>t.split("-")[0],j=t=>t.split("-")[1],$=(t,e)=>{let{type:o="spline",data:n,color:s,isVisible:r=!0}=e;return{type:o,name:t,data:n,color:s,visible:r}},T=t=>({c:j(t[0]),y:t[1],status:t[2]}),k=t=>t[1],_=t=>({v:t[1],y:A(t[0]),status:t[2]}),E=t=>{let e={v:Number.NEGATIVE_INFINITY,y:""},o={v:Number.POSITIVE_INFINITY,y:""};return t.forEach((t=>{t.v>e.v&&(e=t),t.v({c:t,...E(e)}),I=t=>{const e=t.reduce(((t,e)=>t+e),0);return 0!==t.length?(0,s.W7)(e/t.length,4):0},L=(t,e)=>({y:I(e),c:t}),N=function(t,e,o,n){void 0===n&&(n=T);const s=[],r=t.length;for(;eb.map((o=>e(o,t[o]))),M=function(t,e,o,n){void 0===n&&(n=k);const s=b.reduce(((t,e)=>(t[e]=[],t)),Object.create(null)),r=e.length;let i=!1;for(;t{const e=A(t[0][0]),o=parseFloat(e)-1,n=""+(parseFloat(e)-5),r=t.length,i=((t,e)=>{const o=t.length;let n=0;for(;n{const{value:e,itemCaption:o,dataSource:n,linkFn:s,item:r,key:i}=t,a=i||e+"_YEARLY";return{id:a,key:a,itemCaption:o,isWithoutIndicator:!0,dataSource:n,linkFn:s,item:r}},R=(t,e)=>{const{data:o=[],name:n}=t,{y:s,c:r}=o[e];return{value:s,date:`${r}-${n}`}},P=(t,e)=>{const{data:o=[]}=t,n=o.length-1,{value:r,date:i}=R(t,n),{value:a,date:l}=R(e,n);return{...(0,s.P0)({bNowValue:r,bPrevValue:a}),date:i,dateTo:l,valueTo:(0,s.jq)(a),isDenyToChange:!0}},B=(t,e)=>{(t=>{const e=t?.length;if(e<=12)throw{errCaption:"Data Error",message:`Not enough data for chart (${e})`}})(t);const{title:o,subtitle:n,seriaColor:s}=e,[r,i]=((t,e)=>{const o=t[0][0],n=A(o),{i:s,arr:r}=N(t,0,n),i=t[s][0],a=A(i),{arr:l}=N(t,s,a);return[$(n,{color:e,...S,data:r}),$(a,{...w,data:l})]})(t,s),[a,l]=(t=>{const e=parseFloat(A(t[0][0])),o=""+(e-5),{hm:n,isBreaked:s}=M(0,t,o,_),r=t.length,i=`${s?o:A(t[r-1][0])}:${e}`,a=O(n,D),l=[],c=[];return a.forEach((t=>{let{c:e,high:o,yHigh:n,low:s,yLow:r}=t;l.push({c:e,y:s,d:r}),c.push({c:e,y:o,d:n})})),[(0,x.vb)({name:`Min ${i}`,data:l,color:C,seriaWidth:2,tooltip:v.Gr}),$(`Max ${i}`,{data:c,color:C})]})(t);return(0,y.A)((0,x.yx)(b,o,n),(0,x.$J)([a,l,i,r,F(t)]),(0,x.PK)(v.Gr),(0,x.YT)({chart:{marginTop:45,marginBottom:38},zhConfig:W(e),valueMoving:P(r,i)}))};var U=o(6106),z=o(2947),V=o(9550);const J=t=>`Statisctics ${t}: All Items`,K=J("Norway"),Z=J("Sweden"),q=t=>`Statistics ${t} Search`,Y=["https://www.ssb.no/en/sok?sok=",q("Norway")],G=["https://www.scb.se/en/finding-statistics/search/?query=",q("Sweden")],H=["https://statfin.stat.fi/PXWeb/pxweb/en/StatFin/","Statistics Finland's PX-Web"],Q=["https://www.statbank.dk/statbank5a/default.asp",q("Denmark")],X=["https://data.cso.ie/","CSO Ireland Web PxStat"],tt=function(t,e){let[o,n]=t;return void 0===e&&(e=""),`${n}`},et=(t,e)=>{const o=((0,U.cn)(e)||"").replace("T"," ").replace("Z",""),{dfId:n}=t,s=((t,e)=>{const o=(t=>(t||"").toString().split(",")[0]||"")(t);switch(e.loadId){case"NST":case"NST_2":return tt(Y,o);case"SWS":return tt(G,o);case"SFL":return tt(H,(t=>{let{dfId:e}=t;const o=(""+e).split("/"),n=o.pop(),s=o.join("__");return s&&n?`StatFin__${s}/${n}`:""})(e));case"SDN":return tt(Q);case"SIR":return tt(X);case"FSO":return tt((t=>{let{dfId:e}=t;return[`https://www.pxweb.bfs.admin.ch/pxweb/en/${e}/-/${e}.px/`,"Statistics Swiss Stat-Tab"]})(e));default:return""}})((0,U.f7)(e),t),r=(0,U.wJ)(e);return n&&r?`TableId: ${n}
${r}: ${o}
${s}`:s},ot=t=>{let{dataSource:e,dfId:o}=t;return o&&(""+o).length<9?`${e} (${o})`:e},nt=t=>{switch(t.browserType){case"NST":case"NST_ALL":return K;case"SWS":case"SWS_ALL":return Z;case"ES":return(0,s.MZ)(": ",t.title,t.subtitle);default:return""}},st=(t,e)=>({name:(0,U.f7)(e)||"",description:et(t,e)}),rt=t=>{const{_itemKey:e,url:o,optionFetch:n,items:s,dataSource:r,dfId:i,timeId:a}=t,l=e||(0,V.f7)(),c=t.itemCaption||(t=>{let{items:e,dfId:o}=t;return`${o||"id"}_${(e[0]||{}).caption||"All Items"}`})(t);return{id:l,key:l,itemCaption:c,itemConf:o?{_itemKey:l,...(0,V.B0)(t),optionFetch:n,items:s,dataSource:r,dfId:i,timeId:a}:void 0,dataSource:ot(t)}},it=(t,e)=>({info:st(t,e),zhConfig:rt(t)}),at=(t,e,o)=>({valueMoving:(0,s.Y1)(t),...it(e,o)}),lt=Object.assign,ct=(t,e)=>lt((0,z.A)(((t,e)=>t?`${t}: All Items`:nt(e))(e.dfTitle,e),((t,e)=>{const o=[];return(t||[]).forEach((t=>{const{slice:n,caption:r}=t||{};n&&!n[e]&&r&&o.push((0,s.Ob)(r))})),o.join(": ")})(e.items,e.dfC),e.seriaType,e.seriaColor,(0,U.gp)(t),e.isAlg),at(e.time,e,t)),dt=t=>(e,o)=>ct(e,{...o,seriaType:t}),pt={[d.Sx]:dt(d.ly),[d.cx]:dt(d.cx),[d.zM]:dt(d.QV),[d.BG]:dt(d.BG)};var ut=o(4850);const ht=Object.assign,mt={height:600,marginTop:75,marginBottom:20},ft={...mt,type:"bar"},gt={...mt,type:"scatter",inverted:!0},yt=function(t){return void 0===t&&(t=10),{y:t,x:0,enabled:!0,align:"right",verticalAlign:"top",layout:"horizontal"}},xt={minPointLength:5,pointPadding:0,borderWidth:0,groupPadding:.2,shadow:!1},vt=t=>{let{seriaColor:e}=t;return{column:{color:e,pointPlacement:0,pointWidth:6,...xt}}},bt=t=>{let{seriaColor:e}=t;return{bar:{color:e,pointWidth:4,...xt}}},Ct=t=>{const e=(0,y.A)((0,x.mw)("BAR"),(0,x.YT)({chart:{...ft},yAxis:{opposite:!0,labels:{x:3}},legend:yt(28),plotOptions:bt(t)}),x.qP);return t.seriaType===d.Fm&&(e.plotOptions.bar.dataLabels=(0,ut.Te)(!0)),e},St={[d.Sx]:t=>(0,y.A)((0,x.mw)(),(0,x.YT)({legend:yt(),plotOptions:vt(t)}),x.qP),[d.zM]:Ct,[d.Fm]:Ct,[d.bR]:t=>{const{seriaColor:e}=t,o=(0,y.A)((0,x.mw)(),(0,x.YT)({chart:{...gt},legend:yt(28)}),x.qP);return ht(o.series[0],{color:e,marker:{symbol:"circle",radius:5}}),o}},wt={createConfig:t=>{const{seriaType:e}=t||{},o=e&&St[e];return o?o(t):{}}},At=wt;var jt=o(8849);let $t={},Tt=!1;const kt=t=>$t[t]||t,_t=t=>{const e=[],o=[];let n=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;return t.forEach((t=>{const{id:r,value:i,status:a}=t,l=kt(r);e.push(l),o.push({y:i,c:l,id:l,status:a}),i>=n&&(n=i),i<=s&&(s=i)})),{categories:e,data:o,min:s,max:n}},Et=(t,e,o)=>({id:e,value:t,status:o}),Dt=t=>(Tt?Promise.resolve($t):fetch("./data/eurostat/id-country.json").then((t=>t.json())).then((t=>($t=t.hm,Tt=!0,$t))).catch((t=>$t))).then((()=>(0,y.A)((0,U.ox)(Et,t),(t=>t.sort(jt.j4)),_t))),It=(t,e)=>(0,y.A)((t=>{const e={};return t.forEach((t=>{const{value:o,id:n}=t;null!=o&&(e[kt(n)]=o)})),e})((0,U.ox)(Et,t)),(t=>((t,e)=>e.map((e=>({y:t[e]||null,c:e}))))(t,e))),Lt=(t,e)=>{const{isFilterZero:o}=e,n=(0,s.DF)(e,s.QN),r=t=>(0,s.Et)(t&&t.y)?(t.y=n(t.y),t):t,i=o?t=>t&&0!==t.y?r(t):null:r;return i===s.QN?t:t.map(i)},Nt=(t,e)=>{const{dfC:o}=e;if(o&&(0,h.Jd)(o)){const{seriaType:o}=e,n=pt[o];if(!n)throw new Error((t=>`Chart ${t} route isn't exist`)(o));return n(t,e)}return Dt(t).then((o=>{let{categories:n,data:s,min:r}=o;const i=At.createConfig(e);return(0,h.$Q)(i,{json:t,option:e,data:Lt(s,e),categories:n,min:r}),i}))},Ot=(t,e)=>"DOT_SET"===t?(t=>({type:"scatter",marker:{fillColor:t,radius:5,symbol:"circle"}}))(e):void 0,Mt=(t,e,o)=>{const n=o.options.xAxis[0].categories,{zhMapSlice:s,time:r,seriaColor:i,seriaType:a}=e,l=((t,e,o)=>{const n=It(t,o);return Lt(n,e)})(t,e,n);return{data:l,minY:(0,h.DZ)(l),name:s.time||r,color:i,tooltip:(0,h.be)(),...Ot(a,i)}},Ft=Object.assign,Wt=d.qv,Rt={[d.mf]:f,[d.qv]:f,[d.ly]:f,[d.V]:(t,e)=>{const o=(0,h.TX)(t).reverse(),{title:n,subtitle:s}=e,r=B(o,{title:n,subtitle:s,itemCaption:n+": "+s,value:n+"_"+s,dataSource:(0,h.Xz)(e),...(0,h.Yq)(e)});return(0,h.x1)({config:r,json:t,option:e}),r},[d.$g]:(t,e)=>{const o=(0,h.ox)(t)[0],n=(0,u.hN)();return(t=>{t.itemCaption=t.itemCaption||t.subtitle})(e),(0,h.cL)({config:n,data:o,json:t,option:e}),Ft(n,{zhDialog:e,json:t,zhMapSlice:e.zhMapSlice}),n},[d.Sx]:Nt,[d.zM]:Nt,[d.Fm]:Nt,[d.bR]:Nt},Pt={[d.mf]:g,[d.qv]:g,[d.ly]:g,[d.Sx]:Mt,[d.zM]:Mt,[d.Fm]:Mt,[d.bR]:Mt},Bt=function(t,e,o){void 0===o&&(o=Wt);const{seriaType:n}=e;n&&t[n]||(e.seriaType=o)},Ut={toConfig(t,e){Bt(Rt,e);const{seriaType:o,zhCompType:n}=e,s=Rt[o],r=s?s(t,e):{};return r.zhCompType=n,{config:r}},toSeries(t,e,o){Bt(Rt,e);const{seriaType:n}=e,s=Pt[n];return s?s(t,e,o):void 0}},zt={api:c,adapter:Ut};var Vt=o(6327);const Jt="Dataset is empty",Kt=function(t,e,o){void 0===o&&(o="");const n=o?` (Code: ${o})`:"";return e?`
${s=t+":",s?`${s}`:""} ${(t=>t?`${t}`:"")(e)}${n}
`:"";var s},Zt=(t,e,o)=>{const{data:n}=t,r=n[n.length-1]||{},i=n[0]||{},a=r.Year||"",l=i.Year||"",c=((t,e)=>{const o=-1!==e.indexOf("> (List)"),{Area:n="",Domain:r="",Item:i="",Element:a="",Unit:l}=t,c=o?"":Kt("Area",n,t["Area Code"]),d=(0,s.Ob)(l);return`
\n ${c}\n ${Kt("Domain",r,t["Domain Code"])}\n ${Kt("Item",i,t["Item Code"])}\n ${Kt("Element",a,t["Element Code"])}\n ${Kt("Unit",d)}\n
${t["Flag Description"]||Jt}
\n
`})(r,e);return{description:c,frequency:"Annual",name:e+": "+o,toDate:a,fromDate:l}},qt=t=>{const{data:e}=t,o=e[e.length-1]||{},n=void 0===o.Unit?Jt:o.Unit||" ";return(0,s.Ob)(n)},Yt=t=>{let{Year:e,Months:o,Value:n}=t;const r=o?(0,s.L6)(o)+1:0,i=0!==r?`-${r}`:"-12-31";return{x:(0,s.cY)(""+e+i),y:parseFloat(n)}},Gt=(t,e)=>t.reduce(((t,o)=>{const n=o[e];return t[n]||(t[n]=[],t[n].seriaName=n),t[n].push(Yt(o)),t}),Object.create(null)),Ht=(t,e)=>e.y-t.y,Qt=(t,e)=>{const o=Gt(t,e),n=((t,e)=>e.map((e=>t[e.listPn])))(o,(i=o,(0,s.Co)(i).map((t=>{const e=i[t];return{...e[e.length-1],listPn:t}})).filter(s.Ro).sort(Ht))),r=(t=>{for(let e=0;et.x-e.x,te=t=>-1!==(0,s._W)(t).indexOf(">"),ee=t=>{let{items:e}=t;return te(e[0])?"Area":te(e[1])?"Item":void 0},oe=t=>{let{itemCaption:e}=t;return{isWithoutSma:!0,dataSource:"FAOSTAT",itemCaption:e}},ne=ee,se=t=>{let{items:e}=t;return te(e[0])&&te(e[1])},re=(t,e)=>{const o=(e.data[0]||{}).Unit;return(0,s.MZ)(", ",t,(0,s.O8)(o)?o.length>2?o:o.toUpperCase():"")};let ie=Object.create(null);const ae=t=>ie[t]||(t=>{const e=(new Date).getUTCFullYear(),o=[];for(;t",ce={getRequestUrl(t){(t=>{if(t._isTs&&ne(t))throw new Error("ERR_10");if(se(t))throw new Error("Query lists for lists is not allowed.");const e=t.items[2]||{};if((0,Vt.vD)(t)&&!e.isTm)throw new Error(`TreeMap for ${(0,s.Ps)(e)} is not exist.`)})(t);const{items:e,dfElement:o,dfDomain:n="QC",dfItemName:r="item"}=t,i=(0,s._W)(e[0]),a=(0,s._W)(e[1]),l=(0,s._W)(e[2])||o,[c,d]=i===le?[ae(2004),5e3]:[ae(1980),100],p=`https://faostatservices.fao.org/api/v1/en/data/${n}?element=${l}&${r}=${a}`,u=(0,Vt.hQ)(t),h=u?(m=i,(0,s.QD)(m,">")?m:le):i;var m;return`${p}&${u?`area=${h}&year=${t.time}&page_size=300`:`area=${h}&year=${c}&page_size=${d}`}&area_cs=M49&item_cs=CPC&show_codes=true&show_unit=true&show_flags=true&show_notes=true&null_values=false&page_number=1&datasource=PRODUCTION_AWS&output_type=objects`},checkResponse:(0,s.K_)(),addPropsTo(t){const{qA:e,qI:o,qE:n,qT:r=""}=t,i=(t=>(0,s.QD)(t,"World")&&t.length<22)(r)?r:"";(0,s.kp)(t,{items:[{v:e},{v:o},{v:n}],itemCaption:"Item",title:i})}};var de=o(9026),pe=o(1031),ue=o(5856);const he=t=>"Coal"===t||"Natural gas"===t||"Oil"===t||"Gas"===t||"Other Fossil"===t,me=t=>he(t)?"#658fb9":"#6ea3d7",fe=(xe="_perc",(t,e)=>t+e[xe]),ge=(ye=fe,t=>t.reduce(ye,0));var ye,xe;const ve=(t,e)=>t>=10?e:t>=.01?2:t>=1e-4?4:6,be=(t,e,o,n,r)=>{const{title:i}=e,a=(0,pe.zY)(t),l=[];return(t=>{t._ps60=0,t._ps90=0})(e),t.forEach((t=>{const{_level:c,value:d,label:p}=t,u=((t,e)=>(0,s.W7)(t,ve(t,e)))(d,o),h=(0,s.W7)(d/n,r);((t,e,o)=>{1===e?t._ps60+=o:2===e&&(t._ps90||(t._ps90=t._ps60),t._ps90+=o)})(e,c,h),l.push({color:t.color,value:u,_value:d,_perc:h,_label:(0,s.Ax)(p),title:(0,s.Ax)(i),label:(0,s.Ax)(`${p} (${h}%)`),name:3===c&&h<1?void 0:a(p,h,u)})})),((t,e)=>{t._ps60=(0,s.W7)(t._ps60,e),t._ps90=(0,s.W7)(t._ps90,e)})(e,r),l},Ce=(t,e,o)=>`${t} ${(0,ue.A)(e,!0)} (${o}%)`,Se=(t,e)=>(0,s.Et)(e)?ve(t,e):0,we=t=>(0,s.Et)(t)?t:0,Ae=(t,e)=>0===e&&0!==t,je=(t,e,o,n)=>{const r=we(t),i=we(e),a=Se(r,n),l=Se(i,n),c=(0,s.W7)(r,a),d=(0,s.W7)(i,l);return c+d>o||Ae(r,c)||Ae(i,d)?[(0,s.W7)(r,a+1),(0,s.W7)(i,l+1)]:[c,d]},$e=(t,e,o,n,r)=>{const i=t.reduce(((t,e)=>{let{_label:o,_value:n}=e;return t[he(o)?0:1]+=n,t}),[0,0]),[a,l]=je(i[0],i[1],o,n),[c,d]=je(a/r,l/r,100),p=Ce("Fossil Fuels",a,c),u=Ce("Not Fossil Fuels",l,d);return[(0,s.MZ)(": ",e.title,e.dfTmTitle),i[0]>i[1]?`${p}, ${u}`:`${u}, ${p}`]},Te=function(t,e){return void 0===e&&(e=$e),()=>{const o={toConfig:(o,n)=>{const[r,i]=t(o,n),{_itemKey:a}=n,[l,c,d]=(t=>{const e=t/100>1?0:2,o=(0,s.W7)(t,e);return[o,e,o/100]})(i),p=function(){for(var t=arguments.length,e=new Array(t),o=0;o{let o=0;const n=[],{time:r}=e;return t.data.forEach((t=>{const e=parseFloat(t.Value);(0,s.F5)(e)&&t.Area&&(o+=e,n.push({value:e,label:t.Area,title:r}))})),(0,pe.KM)(n,o),e.subtitle=re(e.subtitle,t),[n,o]}),((t,e)=>[e.subtitle,`${e.title} (${e._ps60}%, ${e._ps90}%)`]));var _e=o(3851);const Ee=(0,_e.A)(((t,e)=>{e.subtitle=re(e.subtitle,t);const o=(0,s.DF)(e);return(0,jt._u)(t.data.reduce(((t,e)=>{const{Value:n,Area:r}=e||{},i=o(parseFloat(n));return(0,s.Et)(i)&&0!==i&&r&&t.push((0,Vt.eb)(i,r)),t}),[]))})),De=Ee;var Ie=o(9876);const Le=(0,Ie.e$)({crData:(t,e)=>{const o=ee(e),n=(0,s._W)(e.items[1]),r=t.data.filter((t=>{const e=(t["Item Code (FAO)"]||"").trim();return!e||e===n}));return o?Qt(r,o):(i=r,(0,s.Ep)(i)?i.map(Yt).filter((t=>(0,s.Et)(t.y))).sort(Xt):[]);var i},trOption:(t,e)=>{t.title=((t,e)=>{const{title:o,dfTitle:n,dfSubtitle:r,subtitle:i}=e;if(r)return`${i} ${qt(t)}: ${o}`;if(o)return(0,s.MZ)(": ",n,o);const{data:a}=t,l=a[a.length-1];return(0,s.sA)(l)?(0,s.MZ)(" ",l.Area,l.Item,l.Element):"More about data on tab Info in Description"})(e,t),t.subtitle=((t,e)=>e.dfSubtitle||`${e.subtitle}: ${qt(t)}`)(e,t)},addToConfig:(t,e,o)=>(t.info=Zt(e,o.title,o.subtitle),t.zhConfig={...oe(o),...t.zhConfig},(0,s.fP)(t,"FAOSTAT",`https://www.fao.org/faostat/en/#data/${o.dfDomain||""}`),t)}),Ne={api:ce,adapter:(0,de.GT)({getRoute:(0,de.s4)(ke,De,Le)})},Oe=t=>{let{title:e,subtitle:o}=t;return{name:`${e}: ${o}`}},Me="https://api.worldbank.org/v2",Fe=(t,e)=>`countries/${t}/indicators/${e}`,We={getRequestUrl(t){const[e,o]=(t=>{let{items:e=[]}=t;return[(0,s._W)(e[0]),(0,s._W)(e[1])]})(t),n=(0,Vt.hQ)(t),r=n?"1W":e;return(0,s.kp)(t,{linkItem:{caption:"World Bank",href:`https://data.worldbank.org/indicator/${o}?locations=${r}`}}),n?`${Me}/${Fe("all",o)}?date=${t.time}&format=json&per_page=305`:`${Me}/${Fe(e,o)}?date=1990:2023&format=json`},checkResponse(t){if(!(0,s.Ep)(t))throw(0,s.UE)()}},Re=/\d/,Pe=(0,s.Gu)(["ZH","ZI","XC","EU","XD","XE","ZB","XF","ZT","XG","XH","XI","XY","XJ","ZJ","XL","XM","XN","XO","ZQ","XP","XQ","XU","OE","ZF","ZG","XT"]),Be=(0,_e.A)(((t,e)=>{const o=(0,s.DF)(e),n=t[1];return(0,s.Ep)(n)?(0,jt._u)(n.reduce(((t,e)=>{const{country:n,value:r}=e||{},{id:i}=n||{};return i&&!Re.test(i)&&!Pe(i)&&(0,s.Et)(r)&&t.push((0,Vt.eb)(o(e.value),n.value)),t}),[])):[]})),Ue=Be,ze=(0,Ie.e$)({crData:t=>{let[e,o]=t;return(0,s.Ep)(o)?o.reduce(((t,e)=>(e&&null!=e.value&&e.date&&t.push([(0,s.cY)(e.date),e.value]),t)),[]).reverse():[]},crConfOption:t=>{const{_itemKey:e,title:o,linkItem:n,dataSource:s}=t;return{info:Oe(t),zhConfig:{key:e,id:e,itemCaption:o,linkFn:"DF",item:{...n},dataSource:s}}}}),Ve={api:We,adapter:(0,de.GT)({getRoute:(0,de.C_)(Ue,ze)})},Je=t=>(t||{}).Dataset,Ke={getRequestUrl(t){const{items:e,dfPc:o,dfT:n}=t,r=(0,s._W)(e[0]),i=e[1],a=(0,s._W)(i)||o||"TO",l=(t=>{let{proxy:e,dfInd:o,apiKey:n}=t;return`${e}https://api.wto.org/timeseries/v1/data?i=${o}&p=000&subscription-key=${n}`})(t);if((0,Vt.hQ)(t)){const e=(0,s.Ps)(i);e?(t.title=e,t.subtitle=n):t.title=n;return`${l}&pc=${a}&ps=${(t.time||"").replace("M","")||2023}`}return`${l}&r=${r}&pc=${a}&ps=2005-2024`},checkResponse:(0,s.K_)(Je)},Ze=Ke,qe=(t,e)=>-1!==t.indexOf(e),Ye=(0,_e.A)(((t,e)=>(0,jt._u)(Je(t).reduce(((t,e)=>{const{Value:o,ReportingEconomy:n}=e||{};var r;return(0,s.Et)(o)&&(0,s.O8)(n)&&t.push((0,Vt.eb)(e.Value,(r=e.ReportingEconomy,qe(r,"rkiye")?"Türkiye":qe(r,"Ivoire")?"Côte d'Ivoire":qe(r,"Principe")?"Sao Tomé and Principe":r))),t}),[])))),Ge=(0,Ie.x5)(Je,(()=>t=>{return[(0,s.cY)(t.Year+(e=t.PeriodCode,"A"===e?"":(0,s.O8)(e)?"-"+e.replace("M",""):"-NN")),t.Value];var e})),He=(0,Ie.e$)({crData:t=>Ge(t).sort(jt.vJ),trOption:(t,e)=>{(0,s.kp)(t,((t,e)=>{const{items:o,dfT:n}=t,r=(0,s.Ps)(o[0]),i=(0,s.Ps)(o[1]),a=Je(e)[0]||{};return{title:(0,s.MZ)(": ",r,n),subtitle:(0,s.MZ)(": ",i,a.Unit)}})(t,e))}}),Qe={api:Ze,adapter:(0,de.GT)({getRoute:(0,de.C_)(Ye,He)})};var Xe=o(124);const to=t=>`https://bdm.insee.fr/series/sdmx/data/SERIES_BDM/${t.value}?startPeriod=${t.fromDate}`,eo={getRequestUrl(t){const{items:e}=t;if((0,s.Ep)(e)){const o=(0,s._W)(e[0]);return t.value=o,t.itemCaption=o,to(t)}return`${to(t)}&endPeriod=${t.toDate}`}};var oo=o(1280);const no=(t,e,o)=>`\n ${t}: \n ${null==o?e[(t=>t[0].toLowerCase()+t.slice(1))(t)]:o}\n`,so=(t,e,o)=>({name:e?t+": "+e:t,description:o.reduce(((t,e)=>`${t}\n
${e.title}
\n
\n ${no("IDBANK",e,e.id)}\n ${no("Frequency",e)}\n ${no("UpdatedOn",e)}\n
\n
\n ${no("UnitMeasure",e)}\n ${no("UnitMult",e)}\n
\n \n
\n `),"")}),ro=t=>{const e=t.getAttribute("OBS_STATUS");return e&&1===e.length&&"A"!==e?e.toLowerCase():void 0},io=t=>{const e=(0,s.Kk)(t).getElementsByTagName("Series"),o=[],n=[];let r,i,a,l,c=0,d=(e||[]).length;for(;c{l=parseFloat(t.getAttribute("OBS_VALUE")),(0,s.yr)(l)||o.push([(0,s.cY)(t.getAttribute("TIME_PERIOD")),l,ro(t)])}));return[o.sort(jt.vJ),n]},ao=(t,e)=>{return{info:so(t.title,t.subtitle,e),zhConfig:(o=t._itemKey||t.value,n=t.value,{id:o,key:o,itemCaption:n,dataSource:"INSEE"})};var o,n},lo={toConfig(t,e){const[o,n]=io(t);return{config:(0,p.A)({option:e,data:o,confOption:ao(e,n)})}},toSeries(t,e){const{value:o,title:n,subtitle:r}=e,i=io(t)[0];return(0,x.wo)({data:i,minY:(0,s.DZ)(i),zhValueText:r||n||o})}},co={fnFetch:Xe.Z,api:eo,adapter:lo},po="&time=*",uo="&time=*&geography=K02000001",ho=function(t,e){return void 0===e&&(e=1),"https://api.beta.ons.gov.uk/v1/datasets/"+t+"/editions/time-series/versions/"+e+"/observations?"},mo={21:t=>{let{items:e}=t;const o=(0,s._W)(e[0]),n=(0,s._W)(e[1]),r=(0,s._W)(e[2]);return`${ho("trade")}countriesandterritories=${o}&standardindustrialtradeclassification=${n}&direction=${r}${uo}`},34:t=>{let{items:e}=t;const o=(0,s._W)(e[0]);return`${ho("cpih01")}aggregate=${o}${uo}`},20:t=>{let{items:e}=t;const o=(0,s._W)(e[0]),n=(0,s._W)(e[1]);return`${ho("index-private-housing-rental-prices")}geography=${o}&indexandyearchange=${n}${po}`},5:t=>{let{items:e}=t;const o=(0,s._W)(e[0]),n=(0,s._W)(e[1]),r=(0,s._W)(e[2]);return`${ho("regional-gdp-by-quarter")}geography=${o}&unofficialstandardindustrialclassification=${n}&growthrate=${r}&prices=cvm${po}`}},fo={getRequestUrl:t=>mo[t.dfV]?.(t),checkResponse(t){if(!t||!(0,s.Ep)(t.observations))throw(0,s.UE)()}},go=(0,V.GI)("ONS Dataset Metadata"),yo={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"},xo={q1:"03",q2:"06",q3:"09",q4:"12"},vo=t=>(t||{}).Time||{},bo=t=>{const e=t.split("-"),o=yo[e[0].trim()],n=e[1].trim(),r=n<"30"?"20":"19";return(0,s.cY)(`${r}${n}-${o}`)},Co=t=>{const[e,o=""]=t&&t.split("-")||[],n=xo[o.trim().toLowerCase()];return e&&n?(0,s.cY)(`${e}-${n}`):NaN},So=(t,e)=>{let{unit_of_measure:o}=t,{title:n,subtitle:r}=e;return(0,s.MZ)(": ",r,n,o)},wo=t=>{let{links:e}=t;const{href:o}=(e||{}).dataset_metadata||{};return o?go(o):""},Ao=(t,e)=>({name:So(t,e),description:wo(t)}),jo={api:fo,adapter:(0,Ie.e$)({crData:t=>{const{observations:e}=t,o=(t=>{const e=t[0]||{},{href:o}=vo(e.dimensions);return-1!==(o||"").indexOf("yyyy-qq")?Co:bo})(e);return e.reduce(((t,e)=>{const{dimensions:n,observation:r}=e,{id:i}=vo(n),a=o(i),l=parseFloat(r);return(0,s.Et)(a)&&(0,s.Et)(l)&&t.push([a,l]),t}),[]).sort(jt.vJ)},addConfOption:(t,e)=>({info:Ao(e,t)})})},$o={getRequestUrl(t){const{dfId:e}=t;return`https://data.ssb.no/api/v0/dataset/${e}.json?lang=en`},checkResponse(t){const{error:e}=t||{};if(e)throw(0,s.go)(e)}},To=(t,e)=>{return(0,jt.GY)((0,U.ox)((0,Vt.yI)(e.time),t).filter((o=e.cTotal,(t=>{const e=Object.create(null);t.forEach((t=>{e[t.caption]=t}))})(e.selectOptions[0]),t=>(!o||t.label!==o)&&2===t.label.split(" ")[0].length&&null!==t.y&&0!==t.y)));var o},ko=(t,e)=>{const{time:o}=e,n=nt(e),r=((t,e)=>`${((t||[])[1]||{}).caption||""}: ${e}`)(e.items,o),i=To(t,e),[a,l]=(t=>{const e=t.reduce(((t,e)=>t+e.value),0),o=e/100;return[t.map((t=>(t.percent=(0,s.W7)(t.value/o),t.name=(0,pe.b9)(t.label,t.percent),t))),e]})(i);return e.isCluster&&(0,pe.FE)({data:a,total:l}),(0,y.A)((0,x.Qn)(a),(0,x.Kl)(n,r),(0,x.YT)(at(o,e,t)),x.qP)},_o=function(t){return void 0===t&&(t={}),(e,o)=>ko(e,{...o,...t})},Eo={[d.uT]:_o(),[d.nQ]:_o({isCluster:!0})},Do=(t,e)=>(0,y.A)(B((0,U.yD)(t),e),(0,x.YT)("chart",{spacingTop:25}),(0,x.Kl)(e.title,e.subtitle),(0,x.YT)("info",st(e,t)),(0,x.YT)("zhConfig",rt(e)),x.qP),Io=t=>{return(t=>t.length>2&&t[0][0]>t[1][0])(e=(0,U.ox)((0,U.Ng)(-1!==((0,U.f7)(t)||"").indexOf("per 1 January")),t))?e.reverse():e;var e},Lo=(t,e)=>(0,p.A)({option:e,data:Io(t),confOption:it(e,t)}),No={DF:Lo,[d.mf]:Lo,[d.qv]:Lo,[d.ly]:Lo,[d.V]:Do},Oo={...pt,...Eo,...No},Mo={getCrConfig:t=>Oo[t]||Oo.DF};const Fo=(t,e)=>({config:Mo.getCrConfig((e||{}).seriaType)(t,e)}),Wo={toConfig:Fo,toSeries:(0,o(6777).A)(Fo)},Ro=(t,e,o)=>({code:t,selection:{filter:e,values:[o]}}),Po=t=>{const e=[];return t.forEach((t=>{const{slice:o}=t||{};for(const t in o)e.push(Ro(t,"item",o[t]))})),e},Bo=(t,e,o)=>{t&&o.push(Ro("Tid","top",e))},Uo=t=>{const{items:e=[],isTop12:o,isTop6:n}=t,s=Po(e),{dfC:r}=t;if(r&&(0,Vt.hQ)(t)){const{time:e,timeId:o="Tid"}=t,n=s.filter((t=>t.code!==r));return n.unshift(Ro(r,"all","*")),n.unshift(Ro(o,"item",e)),n}return Bo(o,"12",s),Bo(n,"6",s),s},zo=t=>{let{loadId:e}=t;return e===n.PX?"json-stat2":"json-stat"},Vo=(t,e)=>({code:t,values:[e]}),Jo=t=>t.filter(Boolean).map((t=>{let{slice:e}=t;const o=Object.keys(e)[0];return Vo(o,e[o])})),Ko=(t,e,o)=>{const n=(0,Vt.hQ)(t),s=[Vo("Tid",n?e:"*")];return n&&s.push(Vo(o,"*")),s},Zo=t=>{let{dfId:e,items:o,seriaType:n,time:s,dfC:r}=t;return{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:"en",table:e,format:"JSONSTAT",valuePresentation:"Default",timeOrder:"Ascending",variables:[...Jo(o),...Ko(n,s,r)]})}},qo=t=>{(t=>{t.items=t.items.map((t=>{const{caption:e,slice:o}=t||{},n={caption:e,slice:{}};for(const t in o)n.slice[t.toUpperCase()]=o[t];return n}))})(t),(t=>{t.dfC&&(t.dfC=t.dfC.toUpperCase())})(t);const e=Uo(t);return{method:"POST",headers:{"Content-Type":"text/plain; charset=UTF-8"},body:JSON.stringify({query:e,response:{format:"json-stat2",pivot:null}})}},Yo={DF:t=>({method:"POST",body:JSON.stringify({query:Uo(t),response:{format:zo(t)}})}),[n.TF]:Zo,[n.s1]:qo},Go=t=>"/"+t.dfId,Ho=function(t,e){return void 0===e&&(e=Go),{getRequestUrl(o){if(o.resErrStatus=[400],o.url)return o.url;const n=e(o);return o.url=`${o.proxy||""}${t}${n}`},crOptionFetch(t){if(t.optionFetch)return t.optionFetch;const e=Yo[t.loadId]||Yo.DF;return t.optionFetch=e(t)},checkResponse(t){const{error:e}=t||{};if(e)throw(0,s.go)(e)}}},Qo=(t,e)=>{const o=Ho(t,e);return{api:o,optionFetch:o.crOptionFetch,adapter:Wo}},Xo={api:$o,adapter:Wo},tn=Qo("https://data.ssb.no/api/v0/en/table"),en=Qo("https://api.scb.se/OV0104/v1/doris/en/ssd"),on=Qo("https://statfin.stat.fi/PxWeb/api/v1/en/StatFin"),nn=Qo("https://api.statbank.dk/v1/data",(()=>"")),sn=Qo("https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset",(t=>{const{dfId:e}=t,o=e.split("/");return"/"+o[o.length-1]+"/JSON-stat/2.0/en"})),rn=Qo("https://www.pxweb.bfs.admin.ch/api/v1/en",(t=>{let{dfId:e}=t;return`/${e}/${e}.px`})),an=Object.assign,ln=(t,e)=>{const{itemCaption:o,dataSource:n,items:s,dfT:r,dfPn:i}=e;return{...(0,V.B0)(e),...(0,V.TU)(t),_itemKey:"FMP/"+o,dataSource:n,items:s,dfT:r,dfPn:i}},cn=(t,e)=>({...(0,s.cZ)(e),itemConf:ln(t,e)}),dn=t=>t.map(s.Ps).join(": "),pn=t=>{let{items:e,_itemUrl:o}=t;return{name:dn(e)}},un=t=>{let{items:e}=t;return{title:(0,s.Ps)(e[0]),subtitle:(0,s.MZ)(": ",(0,s.Ps)(e[1]),(0,s.Ps)(e[2]))}},hn="https://financialmodelingprep.com/api/v3",mn=Array.isArray,fn=t=>{let{dataSource:e,dialogConf:o}=t;return e||(o||{}).contFullCaption||""},gn=/\s/g,yn=(t,e)=>{const o=(0,s.Ps)(t);return"ratios"!==e?o:(n=o)[0].toLowerCase()+n.replace(gn,"").substring(1);var n},xn={DF:t=>{const{dfT:e,items:o=[]}=t,[n,r,i]=o,a=(0,s._W)(n,{isUpper:!0}),l=(0,s._W)(i),c=yn(r,e);an(t,{_symbol:a,_itemUrl:`${hn}/${e}/${a}?${l?`period=${l}`:""}`,_period:l,_propName:c,itemCaption:a+"_"+c,dataSource:fn(t)})},historical:t=>{const{dfT:e,items:o=[],fromDate:n}=t,r=n||(0,s.vC)(3),i=(0,s._W)(o[0],{isUpper:!0});an(t,{_symbol:i,_itemUrl:`${hn}/${e}/${i}?from=${r}`,_propName:"close",itemCaption:i,dataSource:fn(t)})},intraday:t=>{const{dfT:e,items:o=[]}=t,n=(0,s._W)(o[0],{isUpper:!0}),r=(0,s._W)(o[1]);an(t,{_symbol:n,_itemUrl:`${hn}/${e}/${r}/${n}`,_propName:"close",itemCaption:n,dataSource:fn(t)})}},vn={getRequestUrl(t){(xn[t.dfPn]||xn.DF)(t);const{apiKey:e}=t,o=-1===t._itemUrl.indexOf("?")?"?":"&";return`${t._itemUrl}${o}apikey=${e}`},checkResponse(t,e){const{dfPn:o,_symbol:n}=e,r=t||{};if(!o&&mn(t)&&r[0].symbol===n||"intraday"===o&&mn(r)||mn(r[o])&&r.symbol===n)return t;throw(0,s.UE)(n,r.Error)}},bn=(0,Ie.e$)({crData:(t,e)=>{const{dfPn:o,_propName:n}=e,r=o?t[o]:t,i=[];return r.forEach((t=>{const e=parseFloat(t[n]);(0,s.yr)(e)||i.push([(0,s.cY)(t.date),e])})),i.reverse().sort(jt.vJ)},addConfOption:t=>({info:pn(t)}),trOption:t=>an(t,un(t))});var Cn=o(5153),Sn=o(7294),wn=o(353);const An=t=>(0,s.uj)(t)?t:void 0,jn=t=>{let{isAth:e=!0,isVolume:o=!0,toDate:n=s.CA,arr:r,seriaOption:i,option:a}=t;const{isAllSeries:l=!0,pnDate:c="date"}=i||{},{isNotZoomToMinMax:d,isDrawDeltaExtrems:p,seriaType:u,seriaColor:h,seriaWidth:m}=a||{},f=[],g=[],y=[],x=[],v=[],b=[],C=[],S=[],w=e?(()=>{let t;return(e,o,n,r)=>{e.push((0,s.XB)(t)?(0,wn.$)({date:o,close:r,open:r}):(0,wn.$)({date:o,close:t,open:n})),t=r}})():s.Cx;let A=Number.POSITIVE_INFINITY,j=Number.NEGATIVE_INFINITY;return(r||[]).forEach((t=>{const{open:e,high:s,low:r,close:i,volume:a}=t,d=n(t[c]||"");f.push([d,i]),A>i&&(A=i),j{let{title:e,subtitle:o}=t;return{title:e,subtitle:o}},Tn=t=>{let{isAth:e,isVolume:o,seriaOption:n={},crCaption:r=$n,crId:i=s.as,getArr:a=s.QN,crAddConfig:l=s.Cx,toDate:c}=t;return{toConfig(t,d){const{title:p,subtitle:u}=r(d,t),h=i(d),m=jn({isAth:e,isVolume:o,arr:a(t,d),toDate:c,seriaOption:n,option:d}),{dC:f,dMfi:g}=m;return{config:(0,y.A)((0,Cn.Ux)(h,m),(0,x.Kl)(p,u),(0,x.YT)({valueMoving:(0,s.Y1)(f),...l({json:t,option:d,data:f,id:h,title:p,subtitle:u})}),(0,x.XL)(g),(0,x.YT)("zhConfig",{legend:(0,Sn.$)()}),x.qP)}},toSeries(t,e){const o=i(e),{data:s}=jn({arr:a(t,e),toDate:c,seriaOption:{...n,isAllSeries:!1},option:e});return(0,Cn.mG)(o,s)}}},kn=Tn({crCaption:un,getArr:(t,e)=>{let{dfPn:o}=e;return(t[o]||t).reverse()},crAddConfig:t=>{let{option:e,data:o}=t;return{info:pn(e),zhConfig:cn(o,e)}}}),_n={api:vn,adapter:(0,de.GT)({rAdapter:{_pn:"dfPn",DF:bn,historical:kn,intraday:kn}})},En=s.MZ.bind(null,": "),Dn=Array.isArray,In={api:{getRequestUrl(t){const{apiKey:e,items:o}=t,n=(0,s._W)(o[0],{isUpper:!0}),r=(0,s._W)(o[1]),i=(0,s._W)(o[2]);return t.itemCaption=n,`https://api.twelvedata.com/time_series?symbol=${n}&apikey=${e}&interval=${r}&outputsize=${i}&dp=2&order=ASC&timezone=UTC`},checkResponse(t,e){const{values:o,message:n}=t||{};if(!Dn(o))throw(0,s.UE)("",n)}},adapter:Tn({crCaption:(t,e)=>{let{meta:o}=e;const{exchange:n,symbol:s,type:r,currency:i}=o||{};return{title:En(n,s,r,i)}},getArr:t=>{let{values:e}=t;return e.map((t=>{let{datetime:e,volume:o,low:n,high:s,close:r,open:i}=t;return{date:e,volume:parseFloat(o),low:parseFloat(n),high:parseFloat(s),open:parseFloat(i),close:parseFloat(r)}}))},crAddConfig:t=>{let{option:e}=t;return{zhConfig:(0,s.cZ)(e)}}})},Ln="https://apps.bea.gov",Nn=`${Ln}/industry/factsheet/factsheet.html`,On=t=>-1===(0,s.Ps)(t,"").indexOf("(A,Q)")?"A":"Q",Mn=t=>(t||{}).BEAAPI||{},Fn=t=>Mn(t).Results,Wn=t=>(0,s.qS)(t,...(0,s.Ep)(t)?[0,"Data"]:["Data"]),Rn=t=>(t.Notes||[]).map((t=>{const{NoteRef:e="",NoteText:o=""}=t||{};return`

${e}: ${o}


`})).join(""),Pn=t=>{const e=(t=>(0,s.Ep)(t)?t[0]:t)(t)||{};return{name:(o=e,(0,s.MZ)(": ",o.Statistic,(o.UTCProductionTime||"").replace("T"," "))),description:Rn(e)};var o},Bn=(t,e)=>"Industry"===t&&"Q"===On(e)?(0,s.EE)(`BEA ${(0,s.Ps)(e)}`,`${Nn}#${(0,s._W)(e)}`):void 0,Un=t=>{let{ValueName:e,items:o,_itemKey:n,itemCaption:s,dataSource:r}=t;return{id:n,key:n,itemCaption:s,dataSource:r,...Bn(e,o[0])}},zn={DF:"-12-31",I:"-03-31",II:"-06-30",III:"-09-30"},Vn=`${Ln}/api/data/?Year=ALL&ResultFormat=JSON&method=GETDATA&UserID`,Jn={api:{getRequestUrl(t){const{TableID:e,DataSetName:o,apiKey:n,ValueName:r,items:i=[]}=t,a=(0,s._W)(i[0]),l=On(i[0]);return(t=>{const{title:e,subtitle:o,dfTitle:n}=t;(0,s.kp)(t,{itemCaption:e,title:n,subtitle:(0,s.MZ)(": ",e,o)})})(t),`${Vn}=${n}&TableID=${e}&DataSetName=${o}&Frequency=${l}&${r}=${a}`},checkResponse(t){const e=(t=>Mn(t).Error)(t);if(e)throw(0,s.UE)(e.APIErrorCode,(e.ErrorDetail||{}).Description||e.APIErrorDescription);const o=Fn(t);if(!o||o.Error||!(0,s.Ep)(Wn(o)))throw(0,s.UE)()}},adapter:(0,Ie.e$)({crData:(t,e)=>{const o=Fn(t),{dfFilterName:n,items:r}=e,i=(0,s._W)(r[1]),a=!!n;return(Wn(o)||[]).reduce(((t,e)=>{if((0,s.sA)(e)){const o=parseFloat(e.DataValue),r=(t=>{const e="Q"===t.Frequency&&zn[t.Quarter]||zn.DF;return(0,s.cY)(t.Year+e)})(e);!(0,s.Et)(r)||a&&e[n]!==i||t.push({x:r,y:(0,s.yr)(o)?null:o})}return t}),[])},crConfOption:(t,e)=>({zhConfig:Un(t),info:Pn(Fn(e))})})},Kn=t=>{let{_itemKey:e,itemCaption:o,dataSource:n,dfTitle:r,linkItem:i}=t;return{id:e,key:e,item:{...i},linkFn:"DF",itemCaption:o,dataSource:(0,s.MZ)(": ",n,r)}},Zn=t=>{let{itemCaption:e}=t;return{name:e}},qn=(0,Ie.e$)({crData:t=>t.Results.series[0].data.reduce(((t,e)=>{const{year:o,period:n="",value:r}=e,i=parseInt((""+n).replace("M",""),10);return(0,s.Qv)(i)&&i>0&&i<13&&t.push({x:(0,s.cY)(`${o}-${i}`),y:parseFloat(r)}),t}),[]).reverse(),crConfOption:t=>({zhConfig:Kn(t),info:Zn(t)})}),Yn=t=>e=>`${t}${e[2].v}R${e[1].v}${e[0].v}`,Gn={CU:Yn("CU"),CW:Yn("CW")},Hn=(0,s.vL)(Gn,(t=>t[0].v)),Qn=(t,e)=>({title:t,subtitle:e}),Xn=(t,e)=>Qn(`${t}, ${e[2].c}`,`${e[1].c}: ${e[0].c}`),ts={CU:Xn,CW:Xn},es=(0,s.vL)(ts,((t,e,o)=>Qn(t||o.subtitle,o.title))),os=t=>es(t.dfCode)(t.dfTitle,t.items,t),ns={adapter:qn,api:{getRequestUrl(t){const e=(t=>{let{items:e=[],dfCode:o}=t;return Hn(o)(e)})(t),o=(t=>{let{apiKey:e}=t;return e?`?registrationkey=${e}`:""})(t),n=o?"v2":"v1",r=((t,e)=>{let{fromDate:o}=e;if(!t)return"";const n=parseInt((0,s.Cp)(o),10),r=parseInt((0,s.hk)(),10);return(0,s.Et)(n)&&(0,s.Et)(r)&&r-n<21?`&startyear=${n}&endyear=${r}`:""})(o,t);return((t,e)=>{(0,s.kp)(t,{linkItem:{caption:"U.S. BLS Data Link",href:`https://data.bls.gov/timeseries/${e}`}})})(t,e),(t=>{const{title:e}=t;(0,s.kp)(t,{itemCaption:e,...os(t)})})(t),`https://api.bls.gov/publicAPI/${n}/timeseries/data/${e}${o}${r}`},checkResponse(t){const{Results:e,message:o=[]}=t||{},{series:n}=e||{},r=(n||[])[0];if(!r||!(0,s.Ep)(r.data))throw(0,s.UE)("",o[0])}}},ss=(t,e)=>{let{dataSource:o,key:n}=e;return{id:n,key:n,dataSource:o}},rs=(t,e)=>{let{response:o}=t;return{name:(0,s.MZ)(": ",e.title,e.subtitle),description:o.description||(o.data[0]||{})["series-description"]||""}},is=t=>{const e=parseFloat(t);return(0,s.Et)(e)?e:null},as=t=>((t||{}).response||{}).data,ls="sort[0][column]=period&sort[0][direction]=asc&offset=0&length=5000",cs=t=>"freq"===(t||{}).id,ds=t=>t.reduce(((t,e)=>(cs(e)||t.push(`facets[${e.id}][]=${e.v}`),t)),[]).join("&"),ps={getRequestUrl(t){const{dfRoute:e,dfSet:o,dfData:n,dfFreq:s,items:r,apiKey:i,time:a}=t,l=(r[0]||{}).dfSet||o,c=s||(t=>{const e=t.find(cs);return e?e.v:"monthly"})(r),d=`https://api.eia.gov/v2/${e}/${l}/data?frequency=${c}&data[0]=${n}&api_key=${i}`;return(0,Vt.hQ)(t)?`${d}&${ds(r.slice(1))}&start=${a}&end=${a}&${ls}`:`${d}&${ds(r)}&${ls}`},checkResponse:(0,s.K_)(as)},us=(0,_e.A)(((t,e)=>{const o=t.response.data;return(0,jt._u)(o.reduce(((t,e)=>{const{stateid:o,stateDescription:n}=e||{};return(t=>t&&2===t.length&&"US"!==t)(o)&&n&&t.push((0,Vt.eb)(parseFloat(e.price),`${n} (${o})`)),t}),[]))})),hs=Object.assign,ms=(0,Ie.e$)({crData:(t,e)=>{let{dfData:o}=e;return as(t).map((t=>[(0,s.cY)(t.period),is(t[o])]))},crConfOption:(t,e)=>({zhConfig:ss(0,t),info:rs(e,t)}),trOption:t=>hs(t,(t=>{let{items:e=[],dfTitle:o}=t;return{title:(0,s.MZ)(": ",(0,s.Ps)(e[0]),o),subtitle:(0,s.MZ)(": ",(0,s.Ps)(e[1]),(0,s.Ps)(e[2]))}})(t))}),fs={api:ps,adapter:(0,de.GT)({getRoute:(0,de.C_)(us,ms)})};var gs=o(8678);const ys=[401],xs=(0,gs.Gd)(),vs={crOptionFetch(t){const{apiKey:e}=t;return{headers:{"X-Authorization-Public-Key":e}}},getRequestUrl(t){const{fromDate:e,items:o}=t;t.one=(0,s._W)(o[0]),t.two=(0,s._W)(o[1]),t.three=(0,s._W)(o[0])||"QTR";const{one:n,two:r,three:i}=t;if(t.resErrStatus=ys,r)return`${((t,e)=>`https://api.intrinio.com/historical_data?identifier=${t}&start_date=${e}`)(n,e)}&item=${r}&end_date=${xs}&type=${i}`},checkResponse(t){const e=(t=>t&&(0,s.Ep)(t.errors)&&t.errors[0])(t);if(e)throw(0,s.UE)(e.human,e.message);if(!(0,s.Ep)(t.data))throw(0,s.UE)()}},bs=vs,Cs=t=>{const{title:e="",dataSource:o,linkFn:n}=t,s=(t=>{let{linkFn:e,one:o,dfArticle:n}=t;return"FRED"===e?{id:(o||"").replace("$",""),article:n}:o})(t),r=(t=>{let{one:e,two:o,three:n="",_itemKey:s}=t;return s||(o?`${e}_${o}_${n}`:e)})(t);return{id:r,key:r,itemCaption:e,linkFn:n,item:s,dataSource:o}},Ss=t=>{let{title:e=""}=t;return{name:e}},ws={toConfig(t,e){e.subtitle=(t=>{let{subtitle:e="",threeCaption:o}=t;return o?`${e}, ${o}`:e})(e);const o=(t=>t.data.reduce(((t,e)=>{const{date:o,value:n}=e;return(0,s.q_)(n)&&t.push({x:(0,s.cY)(o),y:n}),t}),[]).reverse())(t),n=(t=>({zhConfig:Cs(t),info:Ss(t)}))(e);return{config:(0,p.A)({option:e,data:o,confOption:n})}},toSeries:(t,e)=>(0,x.j7)({adapter:ws,json:t,option:e})},As=ws,js={optionFetch:bs.crOptionFetch,api:bs,adapter:As},$s=js,Ts=(0,s.vL)({s312:t=>{let{items:e,seriaType:o}=t;return(0,s.MZ)(".",(0,s._W)(e[2]),(0,Vt.hQ)(o)?"*":(0,s._W)(e[0]),(0,s._W)(e[1]))}},(t=>{let{dfPrefix:e,items:o,seriaType:n,dfSuffix:r}=t;return(0,s.MZ)(".",e,(0,Vt.hQ)(n)?"*":(0,s._W)(o[0]),(0,s._W)(o[1]),r)})),ks=t=>Ts(t.dfFn)(t),_s=t=>(0,s.Kk)(t).getElementsByTagName("Series")||[],Es=function(t,e){return void 0===e&&(e=s.QN),o=>o?e(o.getAttribute(t)):null},Ds=Es("OBS_VALUE",parseFloat),Is=Es("TIME_PERIOD",s.cY),Ls=Es("REF_AREA"),Ns={getRequestUrl(t){const e=(0,Vt.hQ)(t)?`c%5BTIME_PERIOD%5D=${t.time}`:`c%5BTIME_PERIOD%5D=ge%3A${t.fromDate}`;return`${t.proxy}https://stats.bis.org/api/v2/data/dataflow/BIS/${t.dfCase}/1.0/${ks(t)}?${e}`}},Os=Ns,Ms=(0,_e.A)(((t,e)=>{const o=_s(t),n=o.length,r=[],i=(0,s.DF)(e),a=(t=>{let{dfCategory:e}=t;return e?Es(e):Ls})(e);let l,c=0;for(;c{const o=_s(t)[0]||{},n=o.childElementCount,s=[];let r,i=0;for(;i`https://data.bis.org/topics/${t.dfTopic}/BIS,${t.dfCase},1.0/${ks(t)}`))}),Rs=Ws,Ps=(0,de.GT)({getRoute:(0,de.C_)(Fs,Rs)}),Bs=Ps,Us={fnFetch:Xe.Z,api:Os,adapter:Bs},zs=Us,Vs="ecb.europa.eu",Js=t=>(0,s.qS)(t,"dataSets",0,"series"),Ks=t=>{const e=Js(t);return(e[(0,s.Co)(e)[0]]||{}).observations},Zs=t=>(0,s.qS)(t,"structure","dimensions"),qs={s12:(t,e)=>`${(0,Vt.hQ)(e)?"":(0,s._W)(t[0])}.${(0,s._W)(t[1])}`,s312:t=>(0,s.MZ)(".",(0,s._W)(t[2]),(0,s._W)(t[0]),(0,s._W)(t[1]))},Ys=(0,s.vL)(qs,(t=>{const e=(0,s._W)(t[0]);return 2===t.length?`${(0,s._W)(t[1])}.${e}`:e})),Gs=t=>{const e=Ys(t.dfFnUrl);return(0,s.MZ)(".",t.dfPrefix,e(t.items,t.seriaType))},Hs=`https://data-api.${Vs}/service/data`,Qs={getRequestUrl(t){const e=(0,Vt.hQ)(t)?`startPeriod=${t.time}&endPeriod=${t.time}`:`startPeriod=${t.fromDate}`;return`${t.proxy}${Hs}/${t.dfR}/${Gs(t)}?format=jsondata&detail=dataonly&${e}`},checkResponse(t){if(!(0,s.sA)(Ks(t)))throw(0,s.UE)()}},Xs=Qs,tr=(0,_e.A)(((t,e)=>{const o=(0,s.qS)(Zs(t),"series",(t=>Gs(t).split(".").findIndex((t=>""===t)))(e),"values")||[],n=Js(t);return(0,jt._u)((0,s.Co)(n).reduce(((t,e,r)=>{const i=(0,s.qS)(n[e],"observations","0",0),a=(o[r]||{}).name;return null!==i&&(0,s.O8)(a)&&t.push((0,Vt.eb)(i,a)),t}),[]))})),er=tr,or=`https://data.${Vs}/data/datasets`,nr=(0,Ie.e$)({crData:(t,e)=>{const o=Ks(t),n=(t=>(0,s.qS)(Zs(t),"observation",0,"values"))(t);return(0,s.Co)(o).reduce(((t,e)=>{const r=(0,s.cY)((n[e]||{}).id),i=(o[e]||[])[0];return(0,s.Et)(r)&&(0,s.Et)(i)&&t.push([r,i]),t}),[]).sort(jt.vJ)},crConfOption:(0,Ie.w9)("EUR"),addToConfig:(0,s.Ay)("ECB",(t=>`${or}/${t.dfR}/${t.dfR}.${Gs(t)}`)),trOption:t=>{const{dfSubt:e}=t;e&&(t.subtitle=(0,s.MZ)(", ",t.subtitle,e))}}),sr=nr,rr=(0,de.GT)({getRoute:(0,de.C_)(er,sr)}),ir=rr,ar={api:Xs,adapter:ir},lr=ar,cr=t=>t.items[0].v,dr=(t,e)=>(t||{}).observations,pr={getRequestUrl:t=>`https://www.bankofcanada.ca/valet/observations/${cr(t)}/json?start_date=${t.fromDate}`,checkResponse:(0,s.K_)(dr)},ur=pr,hr=(0,Ie.x5)(dr,(t=>{const e=cr(t);return t=>[(0,s.cY)(t.d),parseFloat((t[e]||{}).v)]})),mr=(0,Ie.e$)({crData:hr,crConfOption:(0,Ie.w9)("CAD")}),fr=mr,gr={api:ur,adapter:fr},yr=gr,xr="https://data.snb.ch",vr=t=>(((t||{}).timeseries||[])[0]||{}).values,br=`${xr}/api/cube`,Cr=t=>{let{id:e,v:o}=t;return(t=>"D0"===t||"D1"===t)(e)?`${e}(${o})`:o},Sr={getRequestUrl:t=>`${t.proxy}${br}/${t.dfId}/data/json/en?dimSel=${(t=>t.items.map(Cr).sort().join(","))(t)}&fromDate=${t.fromDate}`,checkResponse:(0,s.K_)(vr)},wr=Sr,Ar=`${xr}/en/topics`,jr=(0,Ie.x5)(vr,(()=>t=>[(0,s.cY)(t.date),t.value])),$r=(0,Ie.e$)({crData:jr,trOption:t=>{t.subtitle=(0,s.MZ)(", ",t.subtitle,t.dfSubtitle)},addToConfig:(t,e,o)=>((0,s.ZD)(t,o),(0,s.fP)(t,"Swiss National Bank",`${Ar}/${o.dfSubId||"uvo"}/cube/${o.dfId}`),t),crConfOption:(0,Ie.w9)("CHF")}),Tr=$r,kr={api:wr,adapter:Tr},_r=kr,Er=(t,e)=>e?`${t}=${e}`:"",Dr=(t,e,o)=>`${t}=${(0,s._W)(o[0])}&${e}=${(0,s._W)(o[1])}`,Ir=(t,e)=>(0,Vt.hQ)(e)?Er("code",(0,s._W)(t[1])):Dr("country","code",t),Lr=(0,s.vL)({jo:t=>{let{items:e,seriaType:o}=t;return`energy=OIL&${Ir(e,o)}${(0,s._W)(e[2])}${(0,s._W)(e[3])}`},jg:t=>{let{items:e,seriaType:o}=t;return`energy=GAS&${Ir(e,o)}${(0,s._W)(e[2])}`},zl:t=>{let{items:e}=t;return`${Dr("indicator_id","region_id",e)}`}},(t=>{let{value:e}=t;return e})),Nr=t=>{const{proxy:e,dfTable:o}=t,n=Lr(t.dfIdFn)(t),r=Er("api_key",t.apiKey),i=(0,Vt.hQ)(t.seriaType)?Er("date",(t=>{const e=t.split("-");return`${t}-${(0,gs.wF)(e[0],e[1])}`})(t.time)):t.dfFromDate?Er("date.gte",t.fromDate):"";return t.apiKey=null,t.dataSource=(t=>{let{dataSource:e}=t;return(0,s.MZ)(" ","NDL",e)})(t),`${e}https://data.nasdaq.com/api/v3/datatables/${o}?${(0,s.MZ)("&",n,r,i)}`},Or={getRequestUrl:t=>Nr(t),getLimitRemaiming:t=>t.get("X-RateLimit-Remaining"),checkResponse(t){const{quandl_error:e,datatable:o}=t||{};if(e)throw(0,s.UE)("",e.message);if(!o)throw(0,s.UE)();(t=>{const{data:e,newest_available_date:o,oldest_available_date:n}=t;if(!(0,s.uj)(e))throw(0,s.UE)("",`Result dataset for request is empty:\n Newest Date: ${o||""}\n Oldest Date: ${n||""}`)})(o)}},Mr=Or,Fr=function(t,e){let{datatable:o}=t,{dfCi:n,seriaType:r}=void 0===e?{}:e;if(o){const[t,e]=(t=>{let e=0,o=1;const n=(0,s.Ep)(t)?t:[];for(let s=0;s[t[a],parseFloat(t[e])]))}var i;return[]},Wr=t=>{const{item:e,items:o,title:n,subtitle:r="",key:i,fromDate:a,dataSource:l}=t,c=(t=>{let{dfItemCaption:e,items:o,itemCaption:n}=t;return(0,s.Et)(e)&&(0,s.Ep)(o)&&o[e-1]&&o[e-1].caption||n})(t);return{item:(0,s.Ep)(o)?o[0]:e||{},title:n,subtitle:r,id:i,key:i,itemConf:{_itemKey:i,fromDate:a},itemCaption:c,dataSource:l}},Rr=(0,Ie.e$)({crData:(t,e)=>{const o=Fr(t).sort(jt.vJ),n=[];for(const t of o){const e=t[1];(0,s.Et)(e)&&n.push([(0,s.cY)(t[0]),e])}return n},crConfOption:t=>({zhConfig:Wr(t)})}),Pr={toConfig:(t,e)=>({config:B(Fr(t),e)}),isAdd:()=>!1},Br=(0,_e.A)(((t,e)=>{const o=[];return Fr(t,e).forEach((t=>{let[e,n]=t;n>0&&o.push((0,Vt.eb)(n,e))})),(0,jt._u)(o)})),Ur=(0,s.vL)({[d.V]:Pr},Rr),zr=(0,de.GT)({getRoute:t=>{let{seriaType:e}=t;return(0,Vt.hQ)(e)?Br:Ur(e)}}),Vr=zr,Jr={id:"Q",api:Mr,adapter:Vr},Kr=Jr,Zr=(t,e)=>Qr(t)[0][e]||"",qr=t=>e=>Zr(e,t),Yr=qr("dataset_name"),Gr=qr("series_name"),Hr=qr("indexed_at"),Qr=t=>((t||{}).series||{}).docs||{},Xr=(0,V.GI)("DBnomics Chart"),ti=(t,e)=>{const o=(t=>{let{dfProvider:e,dfCode:o,seriaId:n}=t;return(0,s.MZ)("/",e,o,n)})(e);return`

SeriaId: ${o}

\n ${(t=>{const e=Hr(t).split("T")[0];return e?`

Updated by DBnomics on ${e}

`:""})(t)}\n ${Xr("https://db.nomics.world/"+o)}`},ei=t=>{const{dataSource:e,_itemKey:o,dfProvider:n,dfCode:r,seriaId:i,title:a}=t;return{...(0,s.cZ)({itemCaption:a,_itemKey:o,dataSource:e}),itemConf:{_itemKey:o,...(0,V.B0)(t),dataSource:e,dfProvider:n,dfCode:r,seriaId:i}}},oi=(t,e)=>({name:Gr(t),description:ti(t,e)}),ni=t=>(0,s.QD)(t,"Q"),si=(t,e)=>[(0,s.cY)(t),e],ri=(t,e)=>ni(t)?si(t,e):[],ii=(t,e,o)=>`https://api.db.nomics.world/v22/series?series_ids=${t&&o?(0,s.MZ)("/",t,e,o):"ECB/EXR/A.USD.EUR.SP00.A"}&observations=1&format=json&metadata=false`,ai=(t,e)=>{const{dfProvider:o,dfCode:n}=e;return e.seriaId=t,ii(o,n,t)},li=t=>(t||"").trim(),ci=t=>e=>ai(((t,e)=>{let{dfPrefix:o,dfSufix:n}=t;return(0,s.MZ)(".",o,...e,n)})(e,t(e)),e),di=ci((t=>{let{items:e}=t;return[(0,s._W)(e[0])]})),pi=ci((t=>{let{items:e,df1Prefix:o,df2Prefix:n}=t;return[o,(0,s._W)(e[1]),n,(0,s._W)(e[0])]})),ui=t=>{let{items:e,df1Prefix:o,df2Prefix:n}=t;return[o,(0,s._W)(e[0]),n,(0,s._W)(e[1])]},hi=ci(ui),mi=t=>{let{items:e,df2Prefix:o}=t;return[(0,s._W)(e[0]),o,(0,s._W)(e[1]),(0,s._W)(e[2])]},fi=ci(mi),gi=ci((t=>{let{items:e}=t;return mi({items:e})})),yi=ci((t=>{let{items:e}=t;return[(0,s._W)(e[2]),(0,s._W)(e[0]),(0,s._W)(e[1])]})),xi=t=>{let{items:e}=t;return ui({items:e})},vi={DF:t=>(0,s.Ep)(t.items)?ai((0,s._W)(t.items[0]),t):ai("",t),id:t=>{const{items:e}=t,o=(0,s._W)(e[0]).split("/");return((t,e,o,n)=>((0,s.kp)(t,{seriaId:n,dfProvider:e,dfCode:o}),ii(e,o,n)))(t,li(o[0]),li(o[1]),li(o[2]))},s1:di,s12:hi,s21:pi,s123B:fi,s123:gi,s231:yi,s3S12:t=>{const{items:e,dfCode:o,subtitle:n}=t;return(0,s.kp)(t,{dfCode:`${o}:${(0,s._W)(e[2])}`,subtitle:(n||"").split(":")[0]||""}),ci(xi)(t)}},bi={getRequestUrl(t){if(t.url)return t.url;const{dfFnUrl:e}=t,o=e&&vi[e]||vi.DF;return t.url=o(t)},checkResponse(t){const{errors:e}=t||{};if((0,s.Ep)(e))throw(0,s.go)((e[0]||{}).message);const o=Qr(t),n=(0,s.Ep)(o)?o[0]:"";if(!n||!(0,s.Ep)(n.period)||!(0,s.Ep)(n.value))throw(0,s.go)()}},Ci={api:bi,adapter:(0,Ie.e$)({crData:(t,e)=>{const{fromDate:o}=e,n=o?(0,s.cY)(o):0,[r,i]=(t=>[Zr(t,"period"),Zr(t,"value")])(t),a=(t=>!ni(t[0])&&ni(t[1]))(r)?ri:si;let l;return r.reduce(((t,e,o)=>{var r;return l=a(e,i[o]),l[0]>n&&(0,s.Et)(l[1])&&l[0]!==(r=t,r[r.length-1]||[])[0]&&t.push(l),t}),[])},crConfOption:(t,e)=>({zhConfig:ei(t),info:oi(e,t)}),trOption:(t,e)=>{(0,s.kp)(t,((t,e)=>{let{title:o,subtitle:n}=t;const r=Gr(e);return{title:Yr(e),subtitle:r.length>60?(0,s.MZ)(": ",o,n):r}})(t,e))}})},Si=(t,e)=>t?"":(0,s._W)(e[0]),wi={mdf:(t,e)=>`${Si(t,e)}.Q......${(0,s._W)(e[1])}`,nvr:(t,e)=>`${Si(t,e)}.Q.....${(0,s._W)(e[1])}.`,mvt:(t,e)=>`${Si(t,e)}.Q......`,cpi:(t,e)=>`${Si(t,e)}.M.${(0,s._W)(e[1])}.CPI.IX._T.N._Z`,mtf:(t,e)=>`${Si(t,e)}..${(0,s._W)(e[1])}..${(0,s._W)(e[2])}.USD_EXC.N.N`,hhi:(t,e)=>`Q.${Si(t,e)}.${(0,s._W)(e[1])}`,gdpq:(t,e)=>`Q..${Si(t,e)}.S1..${(0,s._W)(e[1])}......${(0,s._W)(e[2])}.`,ep:(t,e)=>`${Si(t,e)}..${(0,s._W)(e[1])}._T`},Ai=(0,s.vL)(wi,((t,e)=>`${Si(t,e)}.Q.${(0,s._W)(e[1])}.IX`)),ji=t=>Ai(t.dfFn)((0,Vt.hQ)(t),t.items),$i=t=>(t||{}).data||{},Ti=t=>(0,s.qS)(t,"dataSets",0,"series")||{},ki=t=>(0,s.qS)(t,"structures",0,"dimensions"),_i={getRequestUrl(t){const{time:e}=t,o=(0,Vt.hQ)(t)?`startPeriod=${e}&endPeriod=${e}`:"startPeriod=2005";return`https://sdmx.oecd.org/public/rest/data/${t.dfDs}/${ji(t)}?${o}&format=jsondata`}},Ei=(0,_e.A)(((t,e)=>{const o=$i(t),n=Ti(o),r=ki(o),i=(t=>{const e=(t||{}).series||[];for(let t=0;t{const o=parseFloat(e.split(":")[i]),r=(0,s.qS)(n[e],"observations","0",0),c=(0,s.Et)(o)?(a[o]||{}).name:null;return(0,s.Et)(r)&&(0,s.O8)(c)&&t.push((0,Vt.eb)(l(r),c)),t}),[]);return(0,jt._u)(c)})),Di=Ei,Ii=(0,Ie.e$)({crData:(t,e)=>{const o=$i(t),n=(0,s.qS)(Ti(o),(t=>ji(t).split(".").reduce(((t,e)=>t+":0"),"").slice(1))(e),"observations")||{},r=(0,s.qS)(ki(o),"observation",0,"values")||[];return(0,s.Co)(n).reduce(((t,e)=>{const o=(0,s.cY)((r[e]||{}).id),i=parseFloat(n[e]);return(0,s.Et)(o)&&(0,s.Et)(i)&&t.push([o,i]),t}),[]).sort(jt.vJ)}}),Li={api:_i,adapter:(0,de.GT)({getRoute:(0,de.C_)(Di,Ii)})},Ni="./data/ei",Oi=t=>{const{items:e}=t,o=e[1].v;return`${Ni}/${o}`},Mi={getRequestUrl(t){const e=(0,Vt.vD)(t);return e||(0,Vt.WG)(t)?((t,e)=>{const{items:o,time:n,dfTmToken:r}=t,i=o[0].v;if(!(0,s.h$)(parseInt(n),2018,2024))throw{message:(e?"TreeMap":"Bar by metric")+" only available for 2019-2023"};return e||(t.subtitle=t.title,t.title=t.dfTmTitle),`${Ni}/${r}-tm/${i}-${n}.json`})(t,e):(0,Vt.hQ)(t)?(t=>{const{time:e}=t;return`${Oi(t)}/by-geo-${e}.json`})(t):(t=>{const{items:e}=t,o=e[0].v;return`${Oi(t)}/${o}.json`})(t)},checkResponse:(0,s.K_)()},Fi=()=>!0,Wi=(t,e)=>{const o=parseInt(t.fromYear,10),n=(0,s.cY)(e.fromDate),r=(0,s.Et)(n)?t=>t>n:Fi;return(0,s.Et)(o)?t.data.reduce(((t,e,n)=>{const i=(0,s.cY)(o+n);return r(i)&&t.push([i,e]),t}),[]):[]},Ri=(0,_e.A)(((t,e)=>{const o=(0,s.DF)(e);return t.data.map((t=>(0,Vt.eb)(o(t[1]),t[0])))})),Pi=Ri,Bi=Te((t=>t.data.reduce(((t,e)=>{const[o,n]=e||[];return(0,s.Et)(n)&&(t[0].push({label:o,value:n,color:me(o)}),t[1]+=n),t}),[[],0]))),Ui=(0,_e.A)(((t,e)=>(0,jt._u)(t.data.map((t=>{const e=(0,Vt.eb)(t[1],t[0]);return e.color=me(t[0]),e}))))),zi=(0,Ie.e$)({crData:Wi}),Vi={api:Mi,adapter:(0,de.GT)({getRoute:(0,de.Vc)(Ui,Bi,Pi,zi)})},Ji=t=>"EU"===t.dfId,Ki=t=>"US"===t.dfId,Zi=t=>t.country_code&&t.country_or_region||"",qi=t=>t.country&&"US Total"!==t.state&&t.state||"",Yi=t=>e=>o=>t((t=>t.items)(o)[e]),Gi=Yi(s.Ps),Hi=Yi(s._W),Qi=Gi(0),Xi=Hi(1),ta=Gi(2),ea=Hi(2),oa=t=>Ji(t)?"day_ahead_price_eur_per_mwh":ea(t),na=t=>"Total"===t,sa=t=>"Fossil"===t.variable||"Clean"===t.variable,ra=(t,e)=>e.reduce(t,Object.create(null)),ia=(t,e,o,n)=>{const r=n?(t,e)=>(0,s.Et)(t)&&n(e):s.Et;return t.reduce(((t,n)=>{const s=e(n);return r(s,n)&&t.push(o(s,n)),t}),[])},aa="https://ember-data-api-scg3n.ondigitalocean.app/ember",la="generation",ca="json",da=`yearly.${ca}`,pa=`monthly.${ca}`,ua=`${la}_${da}`,ha=`${la}_${pa}`,ma=`${la}_usa_${da}`,fa=`${la}_usa_${pa}`,ga=`${aa}/price_monthly.json`,ya="&_shape=array",xa="date",va=t=>(e,o)=>`${e}__${t}=${o}`,ba=va("exact"),Ca=va("gte"),Sa=t=>ba(t.pnDate,t.time),wa=t=>{const e=Xi(t);return na(e)?"":`&${ba("variable",e)}`},Aa=t=>(e,o)=>`${aa}/${e}?${ba(t,Qi(o))}${ya}`,ja=Aa("country_or_region"),$a=Aa("state"),Ta=(t,e)=>{const[o,n]=Ki(e)?[fa,ma]:[ha,ua];return t?o:n},ka=(t,e)=>{const o=Ta(t,e);return(Ki(e)?$a:ja)(o,e)},_a=(t,e)=>{const o=wa(e),n=`${Sa(e)}${ya}`,s=Ta(t,e);return Ji(e)?`${ga}?${n}`:`${aa}/${s}?${n}${o}`},Ea=(t,e)=>(e.dfTmTitle=ta(e),`${ka(t,e)}&${Sa(e)}`),Da=(t,e)=>{const o=t?`&${Ca(xa,e.fromDate)}`:"";return Ji(e)?`${ga}?${ba("country_or_region",Qi(e))}${o}${ya}`:`${ka(t,e)}${wa(e)}${o}`},Ia={getRequestUrl(t){const e="M"===t.dfRId,o=(0,Vt.vD)(t)?Ea:(0,Vt.hQ)(t)?_a:Da;return t.pnDate=e?xa:"year",e&&(t.time=t.time+"-01"),o(e,t)},checkResponse(t){if(!(0,s.Ep)(t))throw(0,s.UE)()}},La=Ia,Na=["Coal","Gas","Other Fossil","Nuclear","Other Renewables","Bioenergy","Hydro","Solar","Wind"],Oa=t=>{const e=oa(t);return Te((t=>t.reduce(((t,o)=>{const n=(t=>t.variable)(o),r=(t=>t[e])(o);return(t=>-1!==Na.indexOf(t))(n)&&(0,s.Et)(r)&&(o.label=n,o.value=r,o.color=me(n),t[0].push(o),t[1]+=r),t}),[[],0])))},Ma=Object.keys,Fa=t=>t,Wa=(t,e,o,n,s)=>ia(t,e,((t,e)=>(o,n)=>(0,Vt.eb)(t(o),e(n)))(n,o),s),Ra=(t,e,o)=>{const n=ra(((t,n)=>{const s=e(n);return s&&sa(n)&&(t[s]=(t[s]||0)+n[o]),t}),t);return Wa(Ma(n),(t=>n[t]),Fa,(t=>(0,s.W7)(t,2)))},Pa=(t,e,o)=>Wa(t,(t=>t[o]),e,Fa,(t=>!!e(t))),Ba=(0,_e.A)(((t,e)=>{const o=Xi(e),n=oa(e),s=Ki(e)?qi:Zi,r=na(o)?Ra:Pa;return(0,jt._u)(r(t,s,n))})),Ua=Ba,za=Object.keys,Va=(t,e,o,n)=>ia(t,e,(t=>(e,o)=>[(0,s.cY)(t(o)),e])(o),n),Ja=(t,e,o)=>{const n=ra(((t,n)=>{if(sa(n)){const s=""+n[o];t[s]=(t[s]||0)+n[e]}return t}),t);return Va(za(n),(t=>n[t]),(t=>t))},Ka=(t,e,o,n,s)=>Va(t,(t=>t[e]),(t=>t[o]),Ji(s)?void 0:t=>t.variable===n),Za=(0,Ie.e$)({crData:(t,e)=>{const o=Xi(e);return(na(o)?Ja:Ka)(t,oa(e),e.pnDate,o,e).sort(jt.vJ)}}),qa={api:La,adapter:(0,de.GT)({getRoute:(0,de.s4)(Oa,Ua,Za)})},Ya={getRequestUrl:t=>(t=>{const{items:e}=t;return`./data/environment/${(0,s._W)(e[0])}.json`})(t),checkResponse:(0,s.K_)()},Ga=(0,Ie.e$)({crData:Wi,addToConfig:(t,e)=>(0,x.bK)(t,e.source)}),Ha={api:Ya,adapter:(0,de.GT)({getRoute:()=>Ga})},Qa=t=>{const{items:e}=t;return`./data/irena/${e[1].v}/${e[2].v}`},Xa={getRequestUrl:t=>(0,Vt.hQ)(t)?(t=>{const{time:e}=t;return`${Qa(t)}/by-geo-${e}.json`})(t):(t=>{const{items:e}=t,o=e[0].v;return`${Qa(t)}/${o}.json`})(t),checkResponse:(0,s.K_)()},tl=(0,Ie.e$)({crData:Wi}),el={api:Xa,adapter:(0,de.GT)({getRoute:(0,de.C_)(Pi,tl)})};var ol=o(4031);const nl=t=>{const{items:e}=t,o=(0,s._W)(e[0]),n=(0,s._W)(e[1]);return(0,s.kp)(t,{itemCaption:`${o}/${n}`}),`${(0,ol.kV)("DIGITAL_CURRENCY_DAILY")}&symbol=${o}&market=${n}`},sl={api:(0,ol.Ec)((()=>nl)),adapter:(0,Ie.e$)({crData:(t,e)=>{const o=t["Time Series (Digital Currency Daily)"];return(0,s.Co)(o).map((t=>[(0,s.cY)(t),parseFloat(o[t]["4. close"])])).sort(jt.vJ)}})},rl=(0,s.Gu)(["daily","weekly"]),il=(0,s.Gu)(["quarterly","annual"]),al=(0,s.vL)({EC:t=>{const{items:e}=t,[o,n]=(0,s.a3)(e[0]);return(0,s.kp)(t,{itemCaption:n}),(0,ol.kV)(o)},CM:t=>{const{items:e}=t,[o,n]=e,[r,i,a]=((t,e)=>{const[o,n]=(0,s.a3)(t),[r,i]=(0,s.a3)(e);if(!t.dw&&rl(r)||t.dw&&il(r))throw(0,s.UE)(ol.O9,`Interval ${i} is absent for ${n}`);return[o,n,r]})(o,n);return(0,s.kp)(t,{itemCaption:i}),`${(0,ol.kV)(r)}&interval=${a}`}}),ll=(0,ol.Ec)((t=>al(t.dfFn))),cl=(0,ol.e)("value","date"),dl={api:ll,adapter:(0,Ie.e$)({crData:t=>{let{data:e}=t;return cl(e)},trOption:(t,e)=>{const{title:o}=t,{unit:n}=e;t.title=(0,s.MZ)(", ",o,n)}})},pl="cryptocompare.com",ul=`https://${pl}/coins`,hl="CryptoCompare Overview",ml=(t,e,o)=>{(0,s.Qv)(o)&&t.push([e,o])},fl=(t,e)=>`${t}: Values on ${"histoday"===(0,s._W)(e[2])?"00:00 GMT+0":"GMT+0"}`,gl=(t,e)=>{const{ConversionType:o}=t,{conversionSymbol:n,type:s=""}=o||{};return{tsym:n||e.tsym,type:s}},yl=(t,e)=>{const{value:o,exchange:n}=e,{tsym:s,type:r}=gl(t,e);return`${n}: ${o}/${s} ${r}`},xl=(t,e,o)=>({btTitle:`Volume ${t}`,dColumn:e,data:o}),vl=(0,Ie.e$)({crData:t=>{const e=[],o=[],n=[],r=[],i=[];return t.Data.forEach((t=>{if((0,s.Qv)(t.time)){const a=1e3*t.time;ml(e,a,t.close),ml(o,a,t.volumefrom),ml(r,a,t.volumeto),(t=>(0,s.Qv)(t.open)&&(0,s.Qv)(t.high)&&(0,s.Qv)(t.low)&&(0,s.Qv)(t.close))(t)&&(((t,e,o,n)=>{(0,s.Qv)(n)&&t.push((0,wn._)({date:e,open:o.open,close:o.close,volume:n,option:{_high:o.high,_low:o.low}}))})(n,a,t,t.volumefrom),((t,e,o)=>{t.push({x:e,high:(0,s.W7)(o.high-o.close,2),low:(0,s.W7)(o.low-o.close,2),open:o.open,dayHigh:o.high,dayLow:o.low,close:o.close})})(i,a,t))}})),{data:e,dVolume:o,dColumn:n,dToVolume:r,dHL:i}},crConfOption:t=>{return{zhConfig:(0,s.cZ)(t,(0,s.EE)(...(e=t.value,e&&(0,s.O8)(e)?[`${hl} (${e})`,`${ul}/${e.toLowerCase()}/overview`]:[hl,ul]))),info:{name:t.itemCaption}};var e},trOption:(t,e)=>{const{title:o,items:n}=t;(0,s.kp)(t,{itemCaption:o,title:fl(o,n),subtitle:yl(e,t)})},addToConfig:(t,e,o,n)=>{const s=((t,e)=>{const{tsym:o}=gl(t,e);return o})(e,o),{value:r}=o,{dVolume:i,dColumn:a,dToVolume:l,dHL:c}=n;return(0,Cn._5)([xl(r,a,i),xl(s,[],l)])(t),(0,Cn.Jn)({data:c})(t)}}),bl=(0,de.GT)({rAdapter:{DF:vl}}),Cl=`https://min-api.${pl}`,Sl=(t,e)=>o=>(0,s._W)(o[t],{dfValue:e}),wl=Sl(0,"BTC"),Al=Sl(1,"CCCAGG"),jl=Sl(2,"histoday"),$l=t=>{const{items:e=[]}=t,o=wl(e),n=Al(e),r=jl(e),i="Binance"===n?"USDT":"USD";return(0,s.kp)(t,{value:o,exchange:n,tsym:i}),`${Cl}/data/${r}?fsym=${o}&e=${n}&tsym=${i}&limit=600&extraParams=webapperc`},Tl={DF:$l,HD:$l},kl={api:{getRequestUrl(t){const{dfSubId:e}=t;return(Tl[e]||Tl.DF)(t)},checkResponse(t){if(!t||"Error"===t.Response)throw(0,s.UE)("",t&&t.Message)}},adapter:bl},_l={getRequestUrl(t){const{items:e}=t,o=(0,s._W)(e[0]),n=(0,s._W)(e[1]);return((t,e)=>{(0,s.kp)(t,{title:e})})(t,`By USD Market Cap Page: ${o} (${n})`),`https://api.coincap.io/v2/assets?limit=${n}&offset=${(parseInt(o)-1)*parseInt(n)}`},checkResponse(t){if(!(0,s.Ep)((t||{}).data))throw(0,s.UE)()}};var El=o(6559),Dl=o(4668);const Il=t=>(0,El.Nh)(parseFloat(t)),Ll=()=>({isF:!0,fn:Il,...(0,Dl.wQ)()}),Nl=()=>({toN:[0],isF:!0,...(0,Dl.wQ)()}),Ol=[{...(0,Dl.tJ)("Rank"),toN:[],style:{textAlign:"center"}},{...(0,Dl.tJ)("Sybmol","symbol"),...(0,Dl.wQ)()},(0,Dl.tJ)("Name",!0),{...(0,Dl.tJ)("Price","priceUsd"),...Ll()},{...(0,Dl.tJ)("Vwap 24h","vwap24Hr",!0),...Ll()},{...((t,e,o)=>({...(0,Dl.tJ)(t,e,o),toN:[2],isR:!0}))("% 24h","changePercent24Hr")},{...(0,Dl.tJ)("Supply",!0),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Max Supply","maxSupply",!0),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Market Cap","marketCapUsd",!0),...Nl()},{...(0,Dl.tJ)("Volume USD 24h","volumeUsd24Hr"),...Nl()}],Ml={api:_l,adapter:{toConfig(t,e){const{key:o,title:n}=e,r=(0,Dl.Ju)(Ol,t.data);return{config:(0,Dl.gO)({id:o,title:n,headers:Ol,rows:r,dataSource:`CoinCap ${(0,s.O1)()}`})}}}},Fl=t=>{const{items:e=[]}=t,o=(0,s._W)(e[0]),n=(0,s.h$)(o,0,11)?o:1,r=(0,s._W)(e[1]);return[n,(0,s.h$)(r,9,51)?r:10,(0,s._W)(e[2])||"USD"]},Wl="https://api.coingecko.com/api/v3",Rl=Wl+"/coins",Pl=Wl+"/exchanges",Bl=(t,e,o)=>(0,s.kp)(t,{title:e,_itemUrl:o}),Ul={DF:t=>{const[e,o]=t.items,{c:n,v:r,s:i}=e,{v:a}=o,l=`${i}/${a}`,c=Math.min(Math.max((0,s.s2)(t.fromDate),91),365);(0,s.kp)(t,{itemCaption:l,subtitle:"Values on 00:00 GMT",_currency:a,_nativeUrl:`https://www.coingecko.com/en/coins/${r}`}),Bl(t,n,`${Rl}/${r}/market_chart?vs_currency=${a}&days=${c}`)},MCL:t=>{const[e,o,n]=Fl(t);Bl(t,`By Market Cap Page: ${e} (${o})`,`${Rl}/markets?order=market_cap_desc&page=${e}&per_page=${o}&vs_currency=${n}&price_change_percentage=1h,7d,30d,1y`)},EL:t=>{const[e,o]=Fl(t);Bl(t,`By Exchages Page: ${e} (${o})`,`${Pl}?page=${e}&per_page=${o}`)},EV:t=>{const e=t.items;Bl(t,`${(0,s.Ps)(e[0])} historical trading volume in BTC`,`${Pl}/${(0,s._W)(e[0])}/volume_chart?days=${(0,s._W)(e[1])}`)}},zl={getRequestUrl:t=>((Ul[t.dfSubId]||Ul.DF)(t),t._itemUrl),checkResponse(t,e){const{dfSubId:o}=e;if(("MCL"===o||"EL"===o||"EV"===o)&&(0,s.Ep)(t)&&t.length>1)return t;if(t&&(0,s.Ep)(t.prices))return t;throw(0,s.UE)()}},Vl=(0,V.GI)("Coin Gecko"),Jl=t=>{let{title:e,_nativeUrl:o}=t;return{name:e,description:Vl(o)}},Kl=(t,e,o)=>({btTitle:t,title:`${t} ${e}`,data:o}),Zl=(0,Ie.e$)({crData:t=>{let{prices:e}=t;return e},addConfOption:t=>({info:Jl(t)}),addToConfig:(t,e,o)=>{const{total_volumes:n,market_caps:s}=e,{_currency:r}=o;return(0,Cn._5)([Kl("Volume",r,n),Kl("Market Cap",r,s)])(t)}}),ql=()=>({toN:[],...(0,Dl.SO)()}),Yl="trade_volume_24h_btc",Gl=`${Yl}_normalized`,Hl=[{...(0,Dl.tJ)("Trust Rank","trust_score_rank"),...ql()},(0,Dl.tJ)("Name"),{...(0,Dl.tJ)("24h BTC",Yl),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("24h BTC Norm.",Gl),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Trust Score","trust_score"),...ql()},{...(0,Dl.tJ)("Year Estb.","year_established",!0),...(0,Dl.SO)()},(0,Dl.tJ)("Country",!0),{...(0,Dl.tJ)("Link","url",!0),isHref:!0}],Ql={crKey:t=>(t.key=Fl(t).join("_"),t.key),toConfig(t,e){const{key:o,title:n}=e,r=(0,Dl.Ju)(Hl,t);return{config:(0,Dl.gO)({id:o,title:n,headers:Hl,rows:r,dataSource:`CoinGecko ${(0,s.O1)()}`,fns:{valueToHref:(t,e)=>e}})}}},Xl=(0,Ie.e$)({crData:t=>t.map((t=>[t[0],parseFloat(t[1])]))}),tc="change_percentage",ec={toN:[2],isR:!0},oc=(t,e,o)=>({...(0,Dl.tJ)(t,`price_${tc}_${e}`,o),...ec}),nc=(t,e)=>({...(0,Dl.tJ)(t,`${e}_${tc}`,!0),...ec}),sc=(t,e,o,n)=>({...(0,Dl.tJ)(t,e),...(0,Dl.b5)(n),isHide:!!o}),rc=t=>sc(t,`${t.split(" ")[0].toLowerCase()}_supply`,!0,0),ic=(t,e)=>({...(0,Dl.tJ)(t,e,!0),isF:!0,fn:s.tK}),ac=(0,s.Tq)((()=>{const t=[{...(0,Dl.SO)(),...(0,Dl.tJ)("Rank","market_cap_rank"),toN:[]},(0,Dl.tJ)("Name"),{...(0,Dl.tJ)("Symbol",!0),...(0,Dl.wQ)({textTransform:"uppercase"})},(0,Dl.mG)("Price Change %",[oc("1h %","1h_in_currency"),oc("24h %","24h"),oc("7d %","7d_in_currency"),oc("30d %","30d_in_currency",!0),oc("1y %","1y_in_currency",!0)]),(0,Dl.mG)("Price",[sc("High 24h","high_24h",!0),sc("Price","current_price"),sc("Low 24h","low_24h",!0)]),(0,Dl.mG)("ATH, ATL",[sc("ATH","ath",!0),nc("ATH %","ath"),ic("ATH Date UTC","ath_date"),sc("ATL","atl",!0),nc("ATL %","atl"),ic("ATL Date UTC","atl_date")]),(0,Dl.mG)("Supply",[rc("Circulating"),rc("Total Supply"),rc("Max Supply")]),sc("MarketCap","market_cap"),ic("Updated UTC","last_updated")];return[t,(0,Dl.zS)(t)]})),lc=t=>`CoinGecko ${(0,s.tK)((t[0]||{}).last_updated)} UTC`,cc={crKey:t=>(t.key=Fl(t).join("_"),t.key),toConfig(t,e){const[o,n]=ac(),s=(0,Dl.Ju)(n,t);return{config:(0,Dl.gO)({id:e.key,title:e.title,headers:o,flatHeaders:n,rows:s,dataSource:lc(s)})}}},dc={api:zl,adapter:(0,de.GT)({rAdapter:{DF:Zl,EL:Ql,EV:Xl,MCL:cc},isKey:!0})},pc=(t,e)=>{const{_itemKey:o,dataSource:n}=t,r=(0,s.cZ)(t);return r.itemConf={_itemKey:o,...(0,V.B0)(t),...(0,V.TU)(e),dataSource:n},r},uc=Array.isArray,hc={api:{getRequestUrl(t){const{items:e=[],fromDate:o}=t,{v:n}=e[0],{v:r}=e[1],[i,a]=o?[`&start_time=${o}`,(0,s.s2)(o)]:["",360];return t.metric=r,`https://community-api.coinmetrics.io/v4/timeseries/asset-metrics/?assets=${n.toLowerCase()}&metrics=${r}&frequency=1d&page_size=${a}${i}`},checkResponse(t){const{data:e}=t||{};if(!uc(e))throw(0,s.UE)("Server Response")}},adapter:(0,Ie.e$)({crData:(t,e)=>{let{metric:o}=e;return t.data.map((function(t){return void 0===t&&(t={}),[(0,s.CA)((t.time||"").replace("Z",""),"T"),parseFloat(t[o])]}))},crConfOption:(t,e,o)=>({zhConfig:pc(t,o)})})},mc=(0,V.GI)("Coinpaprika"),fc=t=>{let{items:e=[]}=t;return(0,s._W)(e[0],{dfValue:"btc-bitcoin"})},gc=t=>`https://coinpaprika.com/coin/${fc(t)}/`,yc=t=>({name:t.title||"",description:mc(gc(t))}),xc=fc,vc="https://api.coinpaprika.com/v1",bc=Array.isArray,Cc={DF:t=>{const{fromDate:e}=t,o=xc(t);return`${vc}/tickers/${o}/historical?start=${e}&interval=1d`},TW:t=>{const e=xc(t);return`${vc}/coins/${e}/twitter`},CI:t=>{const e=xc(t);return`${vc}/coins/${e}`}},Sc={getRequestUrl(t){const{dfSubId:e}=t,o=Cc[e]||Cc.DF;return t._itemUrl=o(t)},checkResponse(t,e){const{dfSubId:o}=e;if(bc(t)||"CI"===o&&t)return t;throw(0,s.UE)()}},wc=Sc,Ac=(t,e,o)=>({btTitle:t,title:`${t} USD`,data:e,dColumn:o}),jc=(0,Ie.e$)({crData:t=>{const e=[],o=[],n=[];return t.forEach((t=>{const{timestamp:r,price:i,volume_24h:a,market_cap:l}=t,c=r?(0,s.cY)(r.split("T")[0]):0;c&&(e.push([c,i]),o.push([c,a]),n.push([c,l]))})),{data:e,dVolume:o,dMarketCap:n}},addConfOption:t=>({info:yc(t)}),addToConfig:(t,e,o,n)=>{const{dVolume:s,dColumn:r,dMarketCap:i}=n;return(0,Cn._5)([Ac("Volume",s,r),Ac("Market Cap",i)])(t)}}),$c=t=>{const e=[];let o;for(o=0;o{let{name:e="",symbol:o="",rank:n=""}=t;return`${e} (${o}) (${n})`},_c=(t,e)=>e?`${t}: ${e}`:"",Ec=t=>{let{started_at:e,development_status:o,hardware_wallet:n,org_structure:s,hash_algorithm:r,proof_type:i,platform:a}=t;return[_c("Started At",(l=e,l?(""+l).split("T")[0]:"")),_c("Dev Status",o),_c("Org",s),_c("Hardware Wallet",n),_c("Hash Alg.",r),_c("Proof Type",i),_c("Platform",a)].filter(Boolean);var l},Dc=t=>{let{type:e,open_source:o,is_active:n}=t;return(0,s.MZ)(" ",(0,s.Ob)(e),o?"OpenSource":"not OpenSource",(t=>t?"Active":"not Active")(n))},Ic=t=>t.description||"",Lc=t=>{let{links:e,links_extended:o}=t;const{website:n}=e||{},s=(n||[])[0],r=s?[{href:s,caption:"Website"}]:[],i=(t=>(t||[]).filter((t=>"blog"===t.type)).map((t=>({href:t.url,caption:"Blog"}))))(o),a=r.concat(i);return a.length>0?a:void 0},Nc={crKey(t){const{items:e=[]}=t;return t._itemKey=(0,s._W)(e[0])},toConfig(t,e){const{_itemKey:o}=e;return{config:{zhCompType:"INFO_ITEM",id:o,caption:kc(t),items:[{caption:Dc(t),tokens:Ec(t)},{style:{fontWeight:"bold"},descr:Ic(t),links:Lc(t)}],zhConfig:{id:o,key:o}}}}},Oc={api:wc,adapter:(0,de.GT)({rAdapter:{DF:jc,TW:Tc,CI:Nc},isKey:!0})},Mc={getRequestUrl(t){const{items:e=[]}=t,{v:o}=e[0];return`https://api.coinlore.net/api/exchange/?id=${o}`},checkResponse(t,e){const{pairs:o}=t||{};if(!(0,s.Ep)(o))throw(0,s.UE)()}},Fc="turnover",Wc=[{...(0,Dl.tJ)("Rank","id"),...(0,Dl.SO)()},(0,Dl.tJ)("Base"),(0,Dl.tJ)("Quote"),{...(0,Dl.tJ)("Volume"),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Price"),...(0,Dl.b5)()},{...(0,Dl.tJ)("Price USD","price_usd",!0),...(0,Dl.b5)()},{...(0,Dl.tJ)("V*P USD",Fc,!0),...(0,Dl.b5)(0)},(0,Dl.tJ)("Time",!0),(0,Dl.tJ)("Date",!0)],Rc=t=>(0,s.e)(1e3*t).split(" "),Pc=t=>{let{base:e,quote:o,volume:n}=t;return e&&o&&0!==n},Bc=(t,e,o,n)=>{let{items:r}=e;const i=(t[0]||{}).name||r[0].c,a=((t,e)=>{const o=(0,s.e)(1e3*t),n=(0,s.e)(1e3*e),r=o.split(" "),i=n.split(" "),a=r[1]===i[1]?r[1]:void 0;return a?`${r[0]} - ${i[0]} ${a}`:`${o} ${n}`})(o,n);return`${i} ${a}`},Uc={api:Mc,adapter:{toConfig(t,e){const{_itemKey:o,dataSource:n}=e,{rows:r,tMin:i,tMax:a}=(t=>{const{pairs:e}=t,o=[],n=e.length;let r,i=NaN,a=NaN,l=0,c=1;for(;lt?a:t,c++}return{rows:(0,Dl.Ju)(Wc,o),tMin:i,tMax:a}})(t),l=Bc(t,e,i,a);return{config:(0,Dl.gO)({id:o,title:l,headers:Wc,rows:r,dataSource:n})}}}},zc=function(t){return void 0===t&&(t=s.Cx),e=>{let{option:o}=e;return{...t(o),zhConfig:(0,s.cZ)(o)}}},Vc=(t,e)=>t.date-e.date,Jc=t=>{let{d:e=0,o=1,h:n=3,l:r=4,c:i=2,v:a=5,crDate:l=s.QN,crValue:c=s.QN,crVolume:d=s.QN}=t;return(t,p)=>{try{return t.reduce(((t,p)=>{const u=l(p[e]);return(0,s.Qv)(u)&&t.push({date:u,open:c(p[o]),high:c(p[n]),low:c(p[r]),close:c(p[i]),volume:d(p[a])}),t}),[]).sort(Vc)}catch(t){throw(0,s.UE)()}}},Kc=parseFloat,Zc=function(t){void 0===t&&(t=!0);const e=t?1e3:1;return{crDate:t=>Kc(t)*e,crValue:t=>(0,s.Yp)(Kc(t)),crVolume:t=>Kc(t)}},qc=t=>Tn({isAth:!1,isVolume:!t.isNotVolume,getArr:t.getArr||Jc(t),toDate:s.QN,crAddConfig:zc(t.crAddConfig)}),Yc=(0,V.GI)("Binance Research"),Gc=(0,V.GI)("Binance Trade Chart"),Hc=t=>{let{_researchLink:e,_tradeLink:o}=t;return Yc(e,oo.oq)+Gc(o)},Qc=t=>({name:t.title,description:Hc(t)}),Xc=t=>parseFloat(t),td=qc({d:6,o:1,h:2,l:3,c:4,crValue:Xc,crVolume:Xc,crAddConfig:t=>({info:Qc(t)})});var ed=o(3317);const od=(0,ed.A)({crTitle:t=>{let{items:e}=t;return e[0].v}}),nd=(0,s.Gu)([n._D,n._M,n.b2]),sd=(t,e)=>{let{proxy:o,loadId:n}=e;return nd(n)?t:o?`${o}${t}`:`https://api.allorigins.win/get?url=${encodeURIComponent(t)}`},rd=t=>e=>{const{items:o=[]}=e,n=(0,s._W)(o[1]);return e.timeframe=n,sd(t((0,s._W)(o[0]),n,(0,s._W)(o[2]),e,o),e)},id=t=>e=>{const{items:o=[]}=e;return sd(t((0,s._W)(o[0]),(0,s._W)(o[1])),e)},ad=t=>(e,o)=>{try{const n=function(t,e,o){return void 0===o&&(o=s.QN),o(t&&(0,s.O8)(t.contents)?JSON.parse(t.contents):t,e)}(e,o,t);if((0,s.Ep)(n)||n&&(0,s.Ep)(n.asks)&&(0,s.Ep)(n.bids))return n;throw(0,s.UE)()}catch(t){throw(0,s.UE)()}},ld=t=>e=>{const{dfSubId:o}=e;return(o&&t[o]||t.DF)(e)},cd=(t,e,o)=>((t,e)=>({getRequestUrl:ld(t),checkResponse:ad(e)}))({DF:rd(t),OB:e?id(e):void 0},o),dd="https://",pd="binance.com",ud=`${dd}api.${pd}/api/v3`,hd=`${dd}research.${pd}/en/projects`,md=`${dd}${pd}/en/trade`,fd=/\s/g,gd=t=>(t||"").replace("/",""),yd={api:cd(((t,e,o,n,s)=>(function(t,e,o){void 0===e&&(e=""),void 0===o&&(o="");const n=e.indexOf("("),s=e.slice(0,n).trim().toLowerCase().replace(fd,"-"),r=o.replace("/","_");t._researchLink=`${hd}/${s}`,t._tradeLink=`${md}/${r}`}(n,s[0].c,t),`${ud}/klines?symbol=${gd(t)}&interval=${e}&limit=${o}`)),((t,e)=>`${ud}/depth?symbol=${gd(t)}&limit=${e}`)),adapter:(0,de.T9)(td,od)},xd=qc({o:3,h:2,l:1,c:4,crDate:t=>1e3*t}),vd={api:cd(((t,e)=>`https://api.exchange.coinbase.com/products/${t}/candles?granularity=${e}`)),adapter:(0,de.T9)(xd)},bd=qc({...Zc(),d:"timestamp",o:"open",h:"high",l:"low",c:"close",v:"volume"}),Cd=(0,ed.A)({crTitle:(t,e)=>{let{items:o}=t,{timestamp:n}=e;const r=(0,s.e)(1e3*parseInt(n,10));return`${o[0].c} ${r}`},crLimit:t=>{let{items:e}=t;return parseInt(e[1].v,10)}}),Sd="https://www.bitstamp.net/api/v2",wd={api:cd(((t,e,o)=>`${Sd}/ohlc/${t}?step=${e}&limit=${o}`),(t=>`${Sd}/order_book/${t}?order=0`),((t,e)=>{const{data:o,bids:n,asks:r}=t||{},{ohlc:i,pair:a}=o||{},{items:l=[]}=e,{c}=l[0];return c===a&&(0,s.Ep)(i)?i:(0,s.Ep)(n)&&(0,s.Ep)(r)?t:void 0})),adapter:(0,de.T9)(bd,Cd)},Ad=qc({crValue:t=>(0,s.Yp)(t)}),jd=(t,e)=>t[0]-e[0],$d=(0,ed.A)({crTitle:t=>{let{items:e}=t;return e[0].c+" P0"},crOrderBook:t=>{const e=[],o=[];return t.forEach((t=>{(0,s.Qv)(t[0])&&(t[2]>0?o.push([t[0],t[2],t[1]]):e.push([t[0],-1*t[2],t[1]]))})),{asks:e.sort(jd),bids:o.sort(jd).reverse()}}}),Td="https://api-pub.bitfinex.com/v2",kd={api:cd(((t,e,o)=>`${Td}/candles/trade:${e}:t${t}/hist?limit=${o}`),((t,e)=>`${Td}/book/t${t}/P0?len=${e}`)),adapter:(0,de.T9)(Ad,$d)},_d=qc({...Zc(!1),d:"t",o:"o",h:"h",l:"l",c:"c",v:"v"}),Ed="https://api.crypto.com/exchange/v1/public",Dd={api:cd(((t,e,o)=>`${Ed}/get-candlestick?instrument_name=${t}-PERP&timeframe=${e}&count=${o}`),((t,e)=>`${Ed}/get-book?instrument_name=${t}-PERP&depth=${e}`),(t=>{const{data:e}=(t||{}).result||{},o=(e||[])[0],{asks:n,bids:r}=o||{};return(0,s.Ep)(n)&&(0,s.Ep)(r)?{asks:n,bids:r}:(0,s.Ep)(e)?e:void 0})),adapter:(0,de.T9)(_d)},Id=qc({...Zc(),o:1,h:2,l:3,c:4,v:6}),Ld="https://api.kraken.com/0/public",Nd={api:cd(((t,e)=>`${Ld}/OHLC?pair=${t}&interval=${e}`),((t,e)=>`${Ld}/Depth?pair=${t}&count=${e}`),(t=>{const{result:e}=t||{};if(!(0,s.sA)(e))return;let o,n;for(o in e)if(n=e[o],(0,s.Ep)(n)||(0,s.sA)(n)&&(0,s.Ep)(n.asks)&&(0,s.Ep)(n.bids))return n})),adapter:(0,de.T9)(Id)},Od=qc(Zc()),Md="https://api.kucoin.com/api/v1/market",Fd={api:cd(((t,e)=>`${Md}/candles?symbol=${t}&type=${e}`),(t=>`${Md}/orderbook/level2_20?symbol=${t}`),(t=>(t||{}).data)),adapter:(0,de.T9)(Od)},Wd=qc({...Zc(),o:5,h:3,l:4,c:2,v:6}),Rd="https://api.gateio.ws/api/v4/spot",Pd={api:cd(((t,e,o)=>`${Rd}/candlesticks?currency_pair=${t}&interval=${e}&limit=${o}`),((t,e)=>`${Rd}/order_book?currency_pair=${t}&limit=${e}`)),adapter:(0,de.T9)(Wd)},Bd=qc({...Zc(),d:"id",o:"open",h:"high",l:"low",c:"close",v:"amount"}),Ud={api:cd(((t,e,o)=>`https://api.huobi.pro/market/history/kline?symbol=${t}&period=${e}&size=${o}`),(()=>{}),(t=>t&&(0,s.Ep)(t.data)?t.data:void 0)),adapter:(0,de.T9)(Bd)},zd=qc({...Zc(!1),isNotVolume:!0,h:2,l:3,c:4}),Vd={api:cd(((t,e,o)=>`https://www.okx.com/api/v5/market/mark-price-candles?instId=${t}&bar=${e}&limit=${o}`),void 0,(t=>(t||{}).data)),adapter:(0,de.T9)(zd)},Jd=qc({...Zc(!1),h:2,l:3,c:4}),Kd="https://api.bybit.com/v5/market",Zd="category=spot&symbol",qd={api:cd(((t,e,o)=>`${Kd}/kline?${Zd}=${t}&interval=${e}&limit=${o}`),((t,e)=>`${Kd}/orderbook?${Zd}=${t}&limit=${e}`),(t=>{const{list:e,a:o,b:n}=(t||{}).result||{};return(0,s.Ep)(e)?e:(0,s.Ep)(o)&&(0,s.Ep)(n)?{asks:o,bids:n}:void 0})),adapter:(0,de.T9)(Jd)},Yd={[n.Wv]:Li,[n._0]:zs,[n.O2]:lr,[n.ur]:yr,[n.fU]:_r,[n.D7]:Kr,[n.G7]:Ci,[n.cL]:Vi,[n.YQ]:qa,[n.s5]:el,[n.XT]:Ha,[n.QR]:Ne,[n.P]:Ve,[n.Pj]:Qe,[n.tz]:zt,[n.jd]:co,[n.p1]:jo,[n.Tq]:Xo,[n.Wl]:tn,[n.bR]:en,[n.PX]:on,[n.TF]:nn,[n.s1]:sn,[n.US]:rn,[n.pO]:_n,[n.zO]:In,[n.Kr]:Jn,[n.N2]:ns,[n.f_]:fs,[n.$8]:$s,[n.vq]:sl,[n.T2]:dl,[n.sd]:kl,[n.xv]:Ml,[n.WC]:dc,[n.iN]:hc,[n.Pn]:Oc,[n.b$]:Uc,[n._D]:yd,[n.b2]:vd,[n._M]:wd,[n.bE]:Dd,[n.M_]:kd,[n.Zh]:Nd,[n.ei]:Fd,[n.tI]:Pd,[n.oG]:Ud,[n.Z_]:Vd,[n.Me]:qd,[n.kw]:Kr,[n.Bs]:Kr};var Gd=o(3730),Hd=o(1852),Qd=o(7759),Xd=o(1778),tp=o(6882),ep=o(9288),op=o(2061);const np={alertCaption:"Series Error",alertDescr:"Adding category seria to not category isn't allowed."},sp=(t,e)=>{let{optionFetch:o}=t;return(0,Gd.fp)(o)?o(e):o},rp=(t,e)=>{let{json:o,option:n,onCompleted:s}=e;const{adapter:r}=t,{config:i}=r.toConfig(o,n),a=()=>{(0,Gd.fp)(i.then)?i.then((t=>{s(n,t)})):s(n,i)};(0,Vt.vD)(n)?(0,Qd.H)().then(a):a()},ip=(t,e,o)=>{try{return t.getRequestUrl(e)}catch(t){(0,op.A)({error:t,option:e,onFailed:o})}},ap=(t,e)=>{let{json:o,option:n,onCompleted:s}=e;const{adapter:r}=t,{itemCaption:i,value:a,hasSecondYAxis:l}=n,c=(0,Xd.jE)(),d=r.toSeries(o,n,c),{itemCaption:p,color:u,zhColor:h}=d||{};(0,tp.eh)({chart:c,series:d,label:p||i||a,color:u||h,hasSecondYAxis:!!l}),s(n)},lp=function(t,e){void 0===e&&(e=500),setTimeout(t,e)},cp=(t,e,o,n,s)=>{const r=(0,Xd.i8)();r?((t,e)=>{let{toSeries:o,isAdd:n}=t;return!(0,Gd.fp)(o)||(0,Gd.fp)(n)&&!n(e)})(t.adapter,e)?lp((()=>{(0,op.A)({error:new Error("ERR_10"),option:e,onFailed:s})})):(t=>{let{seriaType:e}=t;const o=(0,Xd.jE)();return e&&(0,ep.y)({value:e})&&o&&(0,Gd.Ep)(o.xAxis)&&!(0,Gd.Ep)(o.xAxis[0].categories)})(e)?lp((()=>s(np))):(e.parentId=r,((t,e,o,n)=>{const{fnFetch:s,api:r}=t,{getLimitRemaiming:i}=r||{},a=sp(t,e);s({uri:ip(r,e,n),option:e,optionFetch:a,getLimitRemaiming:i,onCheckResponse:r.checkResponse,onFetch:(0,Hd.J)(ap,t),onCompleted:o,onCatch:op.A,onFailed:n})})(t,e,n,s)):((t,e,o,n)=>{const{fnFetch:s,api:r}=t,{getLimitRemaiming:i}=r||{},a=sp(t,e);s({uri:ip(r,e,n),option:e,optionFetch:a,getLimitRemaiming:i,onCheckResponse:r.checkResponse,onFetch:(0,Hd.J)(rp,t),onCompleted:o,onCatch:op.A,onFailed:n})})(t,e,o,s)},dp=t=>{const{fnFetch:e=Xe.x,api:o,adapter:n}=t;return t.fnFetch=e,{loadItem:(0,Hd.J)(cp,t),addPropsTo:o.addPropsTo,crKey:n.crKey}},pp=Object.create(null),up=(t,e)=>{pp[t]||(pp[t]=dp(e))},hp=t=>pp[t];(()=>{for(let t in Yd)up(t,Yd[t])})()},7159:(t,e,o)=>{"use strict";o.d(e,{Q7:()=>a,jD:()=>n.j,vL:()=>n.v});var n=o(434),s=o(3730),r=o(2190),i=o(7674);const a=t=>{const{_itemKey:e}=t;switch(t.loadId){case r.D7:return e||(t=>{let{loadId:e,isLoadMeta:o,value:n,dataColumn:s,seriaType:r,viewKey:i}=t;return i||n})(t);case r.tz:case r.f_:case r.Bs:return e||t.id;default:return(t=>{const{loadId:e,value:o,_itemKey:n}=t,r=(0,i.Z)(e)||{},{crKey:a}=r;return(0,s.fp)(a)?a(t):n||o||"key"})(t)}}},2111:(t,e,o)=>{"use strict";o.d(e,{r:()=>P,A:()=>B});var n=o(7674),s=o(7159),r=o(2040),i=o(2190),a=o(3289),l=o(1315),c=o(4575),d=o(4867),p=o(9495),u=o(4250),h=o(6072),m=o(330);const f=t=>`is${t}Select`,g=t=>{const[e,o]=(0,m.A)((()=>(t=>t.reduce(((t,e)=>(t[f(e.id)]=!0,t)),Object.create(null)))(t)));return[(0,l.hb)((t=>o(f(t))),[o]),(0,l.hb)((t=>e[f(t)]),[e])]};var y=o(9288);const x=()=>{const[t,e]=(0,d.A)(),[o,n]=(0,l.J0)(),s=(0,l.hb)((t=>{n(t),(0,y.y)(t)&&e(!1)}),[]);return[t,e,o,s]};var v=o(4428);const b="EMPTY",C=(t,e,o,n,s)=>{const{mapFrequency:r=b,mapDateDf:i}=n||{},[a,c]=(0,l.J0)({_mapFrequency:r,_mapDateDf:i}),{_mapFrequency:d,_mapDateDf:p}=a;return[...(0,l.Kr)((()=>[(0,y.O)(t,e,d),...(0,v.A)(d,p,o)]),[d,p,t,e,o]),(0,l.Kr)((()=>t=>{if((t=>"table"===t.id||"Freq."===t.id&&t.mapFrequency)(t)){const[e,o]=((t,e,o)=>[t.mapFrequency||e,t.mapDateDf||o])(t,r,i);c((t=>((t,e,o)=>t._mapFrequency!==e||t._mapDateDf!==o)(t,e,o)?(s(),{_mapFrequency:e,_mapDateDf:o}):t))}}),[])]};var S=o(3057),w=o(2783),A=o(4066);const j=(t,e)=>t===e[0]&&(0,l.Ep)(e[1]),$=t=>{const e=(0,l.li)([]),[o,n]=(0,l.J0)([]),s=(0,l.hb)(((o,s,r)=>{(0,l.ZC)(e)[s]=r,r?(r.id=o,t(r),n((t=>(0,l.Ep)(r.not)?[o,r.not]:j(o,t)?[]:t))):n((t=>j(o,t)?[]:t))}),[t]);return[e,s,o]};var T=o(7104),k=o(5668),_=o(4848);const E=t=>{let{isShow:e,isShowLabels:o,selectProps:n,isShowById:s,hSelect:r,tupleFilter:i}=t;const[a,c]=i||[];return(0,l.lZ)(n,((t,n)=>{let{type:i,id:l,...d}=t;const p=i?"two"===i?k.A.SelectOneTwo:null:k.A.SelectWithLoad;return(0,_.jsx)(k.A.ShowHide,{isShow:s(l),children:p&&(0,_.jsx)(p,{...d,isShow:e,isShowLabels:o,onSelect:t=>r(l,n,t),filters:l===a?void 0:c})},l)}))};var D=o(9410);const I=()=>!0,L=(t,e)=>(t=>t&&t.id===D.o)(t)?t=>1!==t:(0,y.y)(t)?((t,e)=>{const o=t=>0!==t,{dim:n}=t;if(n){const t=e.findIndex((t=>t.caption===n));return-1!==t?e=>e!==t:o}return o})(t,e):void 0,N=(t,e,o,n)=>function(t,e,o,n){return void 0===n&&(n=I),e.reduce(((s,r,i)=>(n(i)&&!t[i]&&s.push(o(((t,e)=>t[e].caption)(e,i))),s)),[])}(e,o,n,L(t,o)),O=[],M=(0,c.A)((t=>{const{isCh:e=!0,isShow:o,isOpt:n,isFd:s,selectProps:r=O,dfProps:i,chartsType:a,msgOnNotSelected:c,caption:m,noDate:f,initFromDate:v,errNotYmdOrEmpty:b,isYmdOrEmpty:j,loadId:D,toTopLayer:I,onAbout:L,loadFn:M,onLoad:F,onShow:W,onClose:R}=t,{dfRt:P}=i||{},[B,U]=(0,d.A)(!0),[z,V]=g(r),[J,K,Z,q]=x(),[Y,G]=(0,u.A)(P),H=(0,l.li)(),Q=(0,l.li)(),[X,tt]=(0,u.A)(),et=(0,l.hb)((()=>{X(),q()}),[]),[ot,nt,st,rt]=C(r,a,D,i,et),[it,at,lt]=(0,p.R)(),[ct,dt,pt,ut,ht]=(0,w.A)(),[mt,ft,gt,yt,xt,vt,bt]=(0,S.A)({onAbout:L,onClose:R,toggleInputs:s||r.length>1?at:void 0,toggleOptions:n||e?pt:void 0}),[Ct,St,wt]=(0,A.A)(),[At,jt,$t]=$(rt),Tt=(0,h.A)((()=>{const e=N(Z,(0,l.ZC)(At),r,c);var o;0===e.length&&F(M(t,{...(0,l.y5)(Q),chartType:Z,isCategory:(0,y.y)(Z),items:[...(0,l.ZC)(At)],titles:(0,l.ZC)(Ct),dialogOptions:(0,l.ZC)(ct),fromDate:(0,l.Ek)(H,""),date:(o=tt(),(o||{}).value||st),_rt:G()})),vt(e)})),kt=(0,y.y)(Z),_t=s&&!kt,Et=_t&&J,Dt=s?v||"2010-01-01":void 0,It=B&&kt;return(0,_.jsxs)(k.A.DraggableDialog,{isFocusBtMenu:!1,isShow:o,caption:m,menuModel:gt,toTopLayer:I,onLoad:Tt,onShow:W,onClose:bt,children:[(0,_.jsx)(k.A.Toolbar,{isShow:mt,buttons:yt}),(0,_.jsx)(k.A.ModalOptions,{isShow:dt,dfRt:P,onRoundTo:Y,toggleOption:ht,onClose:ut}),(0,_.jsx)(k.A.ModalToggle,{isShow:it,selectProps:r,isFd:_t,isShowFd:J,isCh:e,isShowChart:B,onToggle:z,onCheckCaption:St,onUnCheckCaption:wt,onToggleFd:K,onToggleChart:U,onClose:lt}),(0,_.jsx)(T.A,{is:o,children:(0,_.jsx)(E,{isShow:o,isShowLabels:ft,selectProps:r,isShowById:V,hSelect:jt,tupleFilter:$t})}),(0,_.jsx)(k.A.ShowHide,{isShow:Et,children:(0,_.jsx)(k.A.RowDate,{innerRef:H,isShowLabels:ft,title:"From Date",initialValue:Dt,errorMsg:b,onTest:j})}),e&&(0,_.jsx)(k.A.RowChartDate,{refSeriaColor:Q,chartType:Z,isShowLabels:ft,isShowChart:B,chartOptions:ot,onSelectChart:q,noDate:f,isShowDate:It,dateDefault:st,dateOptions:nt,onSelectDate:X}),(0,_.jsx)(k.A.ValidationMessages,{validationMessages:xt})]})})),F=Promise.resolve.bind(Promise),W=(t,e,o)=>((0,n.E)(e,t._a),o[e]=F(t)),R=(0,s.jD)({DF:M,DialogSelectN:M,_loadD(){return o.e(890).then(o.bind(o,9060)).then((t=>this.D=F(t.default))).catch((t=>console.log(a.UU)))},getD(){return this.D||this._loadD()},get DialogQuery(){return this.getD().then((t=>t.Query))},_loadUN(){return o.e(538).then(o.bind(o,3442)).then((t=>{let{default:e}=t;return W(e,i.v$,this)})).catch((t=>console.log(a.UU)))},getUN(){return this[i.v$]||this._loadUN()},get UnDialog5(){return this.getUN().then((t=>t.UnDialog5))},get UnDialogAgg(){return this.getUN().then((t=>t.UnDialogAgg))},_loadSM(){return o.e(78).then(o.bind(o,7864)).then((t=>{let{default:e}=t;return W(e,i.Jm,this)})).catch((t=>console.log(a.UU)))},getSM(){return this[i.Jm]||this._loadSM()},get AlphaIndicatorDialog(){return this.getSM().then((t=>t.Indicator))},get AlphaTopDialog(){return this.getSM().then((t=>t.Top))},get AlphaSearchDialog(){return this.getSM().then((t=>t.Search))},_loadSD(){return o.e(301).then(o.bind(o,4965)).then((t=>this.SD=F(t.default))).catch((t=>console.log(a.UU)))},getSD(){return this.SD||this._loadSD()},get DialogStatN(){return this.getSD().then((t=>t.StatN))},_loadUS(){return o.e(378).then(o.bind(o,6815)).then((t=>this.US=F(t.default))).catch((t=>console.log(a.UU)))},getUS(){return this.US||this._loadUS()},get ZillowDialog(){return this.getUS().then((t=>t.Zillow))},loadDialogs(t){switch(t){case r.Y5:this._loadSM();break;case r.Os:case r.V5:this._loadSD();break;case r.vj:this._loadUN();break;default:return}}}),P=t=>F(t&&R[t]||R.DF),B=t=>{R.loadDialogs(t)}},2061:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(3289);const s=Object.assign,r=(t,e)=>-1!==t.message.indexOf(e),i=t=>{if(t instanceof TypeError){if(r(t,"429"))return n.DC;if(r(t,"fetch"))return n.j7}return(t=>{const{errCaption:e,message:o=""}=t||{},s=e||"ERROR";return-1!==o.indexOf(n.mA.token)?n.mA:{caption:s,descr:o}})(t)},a=function(t){let{error:e,option:o,onFailed:n}=t;((t,e)=>{const{caption:o,descr:n}=e;s(t,{alertCaption:o,alertDescr:n})})(o,i(e)),"function"==typeof n&&n(o)}},7343:(t,e,o)=>{"use strict";o.d(e,{eU:()=>x,Jr:()=>n.J,Nv:()=>h,Bu:()=>f,jo:()=>g,SV:()=>y,iC:()=>m,Ep:()=>s.Ep,fp:()=>s.fp,Et:()=>s.Et,O8:()=>s.O8,XB:()=>s.XB});var n=o(1852),s=o(3730),r=o(1315),i=o(6984);const a=(t,e,o)=>{(0,r.rz)(...(0,i.A)((()=>[()=>t.subscribe(e,o),()=>e(t.getState())])))},l=(t,e)=>(0,r.rz)(...(0,i.A)((()=>[o=>t.subscribe(e,o),()=>e(t.getState())])));var c=o(3986);const d=Object.is,p=Object.assign,u=t=>{let e;const o=new Set,n=(t,n)=>{const s="function"==typeof t?t(e):t;if(!d(s,e)){const t=e;e=(null!=n?n:"object"!=typeof s||null===s)?s:p({},e,s),o.forEach((o=>o(e,t)))}},s=()=>e,r={getState:s,setState:n,subscribe:t=>(o.add(t),()=>o.delete(t))};return e=t(n,s,r),r},h=t=>{return o=t,(e=(t,e,n)=>{const s=n.subscribe;return n.subscribe=(t,e,o)=>{let r=t;if(e){const s=(null==o?void 0:o.equalityFn)||d;let i=t(n.getState());r=o=>{const n=t(o);if(!s(i,n)){const t=i;e(i=n,t)}},null!=o&&o.fireImmediately&&e(i,i)}return s(r)},o(t,e,n)})?u(e):u;var e,o},m=t=>[t.setState,t.getState],f=(t,e)=>[o=>({[t]:e?{[e]:o}:o}),e=>e[t]],g=(t,e)=>(0,n.J)(a,t,e),y=(t,e)=>(0,n.J)(l,t,e),x=t=>{const e=Object.create(null);return e.value=t,{useAtomValue:()=>(e.rerender=(0,c.A)(),e.value),setValue:t=>{const o=e.value,n=e.rerender;e.value=((t,e)=>(0,s.fp)(e)?e(t):e)(o,t),o!==e.value&&(0,s.fp)(n)&&n()}}}},1579:(t,e,o)=>{"use strict";o.d(e,{g3:()=>$,az:()=>S,Mv:()=>D,j3:()=>T,ET:()=>k,_H:()=>w,rJ:()=>j,fG:()=>A,cG:()=>E});var n=o(7343),s=o(3090),r=o(2040);const i={WL_WATCH_LIST:{type:"WL_WATCH_LIST",menuTitle:"Watch List",dialogCaption:"Watch List"}};var a=o(2481);const l=(t,e)=>{if((0,n.Ep)(t.items)){for(const o of t.items)if(o.id===e)return o}else if(t.id===e)return t};let c,d,p;const u=(t,e)=>(t===p&&e===d||(p=t,d=e,c=((((t,e)=>{if((0,n.Ep)(t))for(const o of t){const t=o.items;if((0,n.Ep)(t))for(const o of t){const t=l(o,e);if(t)return t}else{const t=l(o,e);if(t)return t}}})(t,e)||{}).atomBadge||{}).setValue),c),h=t=>(e,o,n,s)=>{const r=((t,e,o)=>(0,a.A)(e)?u(t[e],o):void 0)(o,n,s);r&&t(r,e)},m=h(((t,e)=>{t((t=>({...t,is:e})))})),f=h(((t,e)=>{t((t=>({value:t.value+e,is:!0})))})),g=h(((t,e)=>{t((t=>({...t,value:e})))})).bind(null,0),y={},x=(0,n.Jr)(m,!0),v=(0,n.Jr)(m,!1),b=(0,n.Jr)(f,1),C=(0,n.Jr)(f,-1),S=t=>y[t],w=(t,e)=>{y[t]=e},A=(t,e)=>{x(y,e,t)},j=(t,e)=>{v(y,e,t)},$=(t,e)=>{b(y,e,t)},T=(t,e)=>{C(y,e,t)},k=(t,e)=>{g(y,e,t)},_={WL:i},E=(t,e)=>{_[t]=e},D=(t,e)=>{if(e.indexOf(r.RM)>0)return s.A[t];const o=(t=>_[t])(t);return o?o[e]:void 0}},5952:(t,e,o)=>{"use strict";o.d(e,{hJ:()=>J,Uv:()=>G,oB:()=>Q,xf:()=>H,LS:()=>X,GM:()=>B,J8:()=>K,sS:()=>Z});var n=o(124),s=o(2061),r=o(7343),i=o(4427),a=o(2481),l=o(2394);const c=t=>"boolean"==typeof t?t:void 0,d=(t,e,o)=>{let{id:n,isNew:s=!1}=t;return{id:n,title:e[n].menuTitle,isNew:s,atomBadge:(0,r.eU)({is:!1,value:0}),...(a=n,c=o,{onClick:(0,r.Jr)(i.ui,a,c),onBadgeClick:(0,r.Jr)(l.Fb,a,c),onBadgeClose:(0,r.Jr)(l.S3,a)})};var a,c},p=function(t,e,o){return void 0===t&&(t=[]),t.map((t=>t.id?d(t,e,o):{isInitOpen:c(t.isInitOpen),caption:t.caption,items:p(t.items,e,o)}))},u=function(t,e,o){return void 0===t&&(t=[]),t.map((t=>(0,r.Ep)(t.items)?{caption:t.caption,isInitOpen:c(t.isInitOpen),items:p(t.items,e,o)}:d(t,e,o)))},h=Object.assign,m=function(t){let{selectProps:e}=void 0===t?{}:t;return(0,r.Ep)(e)?e:[]},f=function(t){let{dialogProps:e}=void 0===t?{}:t;return e},g=(t,e,o)=>{const n=f(e),s=f(o),r=[...m(t),...m(s),...m(n)];return h(t,s,n),r.length>0&&(t.selectProps=r),t},y=(t,e)=>{const o=t[e],n=o.extends,s=(0,r.O8)(n)?((t,e)=>{const o=e.extends,n=(0,r.O8)(o)?t[o]:void 0;return g({},e,n)})(t,t[n]):{};return[o.dialogType,g(s,o)]},x=t=>(0,r.O8)(t)?t:void 0,v=(t,e,o,n)=>({id:t,caption:e,uri:`${o}${n}.json`}),b=(t,e)=>({...v(t[0],t[1],e,t[2]),jsonProp:x(t[3])}),C={df:b,id:(t,e)=>({...v(t[0],t[0],e,t[1]),jsonProp:x(t[2]),isWithInput:Boolean(t[3])}),id3:(t,e)=>({...v(t[2],t[0],e,t[1])}),s2:(t,e)=>3===t.length?b(t,e):{...v(t[0],t[2],e,t[3]),type:"two",oneCaption:t[1],twoCaption:t[2],isAddTitle:t[4]}},S=(t,e)=>{const{selectProps:o,rootUri:n,spT:s}=t||{},i=(0,r.Ep)(o)?((t,e)=>{const o=[...t];return(e.selectProps||[]).forEach((t=>{const e=t[t.length-1];(0,r.Et)(e)?o.splice(e-1,0,t):o.push(t)})),o.length>0?o:void 0})(o,e):e.selectProps,a=e.rootUri||n,l=e.spT||s;return((t,e,o)=>(0,r.Ep)(t)?{selectProps:t.reduce(((t,n)=>(t.push((0,r.Ep)(n)&&e?o(n,e):n),t)),[])}:void 0)(i,a,l&&C[l]||C.df)},w=Array.isArray,A=Object.keys,j=(t,e)=>{const{dfAddProps:o,tuples:n}=e||{};((t,e)=>{w(e)&&e.forEach((e=>{t[e[0]]={type:e[0],menuTitle:e[1],dfId:e[2]}}))})(t,n),A(t).forEach((e=>{const n=t[e],s=n.addProps||o;if(s&&n.type){const e=(t=>((t=>{const{dfId:e,mapDateDf:o,mapFrequency:n}=t;if(e){const s=o?{mapDateDf:o}:{};n&&(s.mapFrequency=n),t.dialogProps={dfProps:{...s,dfId:e}}}})(t),t.dialogProps))(n),[o,r]=y(t,s),i=S(r,e);n.dialogType=n.dialogType||o,n.dialogProps={...r,...e,...i},n.dialogProps.dfProps={...r.dfProps,...e.dfProps}}}))},$=(t,e,o)=>{const{json:n,browserType:s}=o,{menu:r,items:i,df:a}=n;j(i,a),e(s,i);const l=u(r,i,s);return t(s,l),l};var T=o(1579),k=o(240),_=o(3090),E=o(2040),D=o(4765),I=o(2111);const[L,N]=(0,r.Bu)("msBrowserLoad"),[O,M]=(0,r.Bu)("msBrowserShow"),[F,W]=(0,r.Bu)("msInitBrowser"),R=(0,r.Nv)((()=>({...L(),...O(),...F()}))),[P]=(0,r.iC)(R),B=(0,r.jo)(R,N),U=t=>{let{json:e,option:o,onCompleted:n}=t;const{browserType:s}=o;n({json:e,browserType:s})},z=t=>{const{json:e,browserType:o}=t;((t,e)=>{P(L({browserType:t,menuItems:e}))})(o,(0,a.A)(o)?$(T._H,T.cG,t):e)},V=t=>{const{alertItemId:e,caption:o,browserType:n}=t;t.alertItemId=e||o,(0,i.K$)(t),(t=>{P(L({browserType:t}))})(n)},J=t=>{(0,n.x)({option:t,uri:t.sourceMenuUrl,onFetch:U,onCompleted:z,onFailed:V,onCatch:s.A})},K=(0,r.jo)(R,M),Z=(0,r.jo)(R,W),q=(t,e)=>({alertDescr:t,alertItemId:e}),Y=t=>{(0,i.K$)(t)},G=function(t){void 0===t&&(t={});const e="string"==typeof t?{browserType:t}:t,{browserType:o}=e,n=_.A[o];o&&n?(0,T.az)(o)?P(O({browserType:e.browserType})):Promise.all([(0,D.b)(o),(0,I.A)(o)]).then((()=>(0,k.is)(n))).then((t=>{((t,e)=>{const{browserType:o}=e;(0,T.az)(o)||((0,T._H)(o,[]),P(F({elBrowser:t})))})(t,n)})).catch((()=>{Y({...e,...q("Failed to load browser.",n.caption)})})):Y({...e,...q("Browser hasn't found.","Browser")})},H=(0,r.Jr)(G,E.Vv),Q=(0,r.Jr)(G,E.yO),X=(0,r.Jr)(G,E.mU)},2481:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(3090);const s=t=>{const e=n.A[t];return void 0!==e&&!e.withoutItemCounter}},1778:(t,e,o)=>{"use strict";o.d(e,{PL:()=>a,Sf:()=>l,i8:()=>s,jE:()=>r,k5:()=>i});const n={chb:null,chart:null},s=()=>!!n.chart&&n.chart.options.zhConfig.id,r=()=>n.chart,i=(t,e,o)=>{if(t){const t=n.chb;t&&t!==e&&t.setUnchecked(),n.chb=e,n.chart=o}else n.chb=null,n.chart=null},a=t=>{const e=n.chb;!e||t&&e.chartType!==t||(e.setUnchecked(),n.chb=null,n.chart=null)},l=t=>{const e=s();e&&e==t&&(n.chart=null)}},4427:(t,e,o)=>{"use strict";o.d(e,{BK:()=>j,CM:()=>w,HP:()=>b,K$:()=>$,XJ:()=>C,i6:()=>A,ql:()=>S,ts:()=>k,ui:()=>_,uq:()=>E,zU:()=>D});var n=o(7343),s=o(3597),r=o(1778),i=o(6634),a=o(1579),l=o(2301);const[c,d]=(0,n.Bu)("msAbout","is"),[p,u]=(0,n.Bu)("mdOption"),[h,m]=(0,n.Bu)("msShowDialog"),[f,g]=(0,n.Bu)("msCloseDialog"),y=(0,n.Nv)((()=>({...c(!0),...p()}))),[x]=(0,n.iC)(y),v=t=>x(c(t)),b=(0,n.jo)(y,d),C=()=>v(!0),S=()=>v(!1),w=(t,e)=>{(0,i.h8)(t),(0,r.PL)(t),(0,a.rJ)(t,e)},A=(0,n.jo)(y,u),j=function(t,e){void 0===e&&(e={}),e.modalDialogType=t,x(p({...e}))},$=(0,n.Jr)(j,s.XB),T={},k=(0,n.jo)(y,m),_=(t,e,o)=>{(0,l.YA)(T,{type:t,browserType:e,dialogConfOr:o}).then((t=>{x(h(t))}))},E=(0,n.jo)(y,g),D=t=>{x(f({type:t.key,caption:t.props.caption}))}},6634:(t,e,o)=>{"use strict";o.d(e,{KG:()=>r,h8:()=>a,iu:()=>i});const n={chb:null},s=(t,e)=>{e?(t=>{const e=n.chb;e&&e.setUnchecked(),n.chb=t})(t):n.chb=null},r=()=>n.chb,i=(t,e,o,n)=>{o.chartType=t,o.browserType=e,s(o,n)},a=t=>{const e=n.chb;e&&e.chartType===t&&(e.setUnchecked(),n.chb=null)}},2301:(t,e,o)=>{"use strict";o.d(e,{YA:()=>i,dM:()=>r});var n=o(240),s=o(1579);const r=(t,e)=>{if(t&&t.dialogConf)return t;const o=e.split("_")[0];return(0,s.Mv)(o,e)},i=(t,e)=>{let{type:o,browserType:s,dialogConfOr:i}=e;return t[o]?Promise.resolve({key:o}):(0,n.So)(s,r(i,o)).then((e=>(t[o]=!0,{key:o,Comp:e})))}},2394:(t,e,o)=>{"use strict";o.d(e,{OR:()=>Vl,Y_:()=>_l,S3:()=>zl,YM:()=>Rl,X$:()=>Bl,Qt:()=>Ol,qr:()=>Zl,Fb:()=>Ul,Iq:()=>Kl,Te:()=>Jl,we:()=>jl,OZ:()=>Al});var n=o(3289),s=o(2823);const r=t=>{console.log("%c"+t,"color:rgb(237, 88, 19);")};var i=o(7159),a=o(7674),l=o(6634);const c=(t,e)=>{const o=(0,l.KG)(),n=t[o&&o.chartType||e],{configs:s=[]}=n||{};return{chartSlice:n,configs:s}},d=t=>e=>e.zhConfig.id!==t,p=t=>e=>e.zhConfig.id===t;var u=o(3597),h=o(4427),m=o(1778),f=o(3730),g=o(1852),y=o(3090),x=o(1315),v=o(7599),b=o(4558),C=o(9495),S=o(6736),w=o(6984);const A=()=>Object.create(null),j=()=>{const t=(0,w.A)(A),e=(0,x.hb)(((e,o)=>{t[(t=>"chart"+t)(e)]=o||null}),[]);return[t,e]};var $=o(391);const T=t=>(0,x.Kr)((()=>{const e=(t=>t&&t<=635)(t)?{width:t}:(0,$.$O)(635,365),o=e.width;return[e,o,o>470?470:365]}),[]);var k=o(2543);const _=[(0,k.z7)("p1","Items"),(0,k.z7)("p2","Sort By, ASC"),(0,k.z7)("p3","Resize")],E=(t,e)=>{let{onMinWidth:o,onInitWidth:n,onPlusWidth:s,onMinusWidth:r,onFit:i,onShowCaptions:a,onRemoveAll:l,onSortBy:c,onCompareTo:d}=e;const p=[(0,k.VD)("Remove All",l),(0,k.VD)("Show Caption",a,!1)];return t&&p.push((0,k.VD)("CompareTo",d)),(0,k.W1)(b.aw,170,2,{p0:_,p1:p,p2:[(0,k.VD)("Value",(0,x.Jr)(c,"_value")),(0,k.VD)("Percent",(0,x.Jr)(c,"_percentAbs")),(0,k.VD)("Delta",(0,x.Jr)(c,"_deltaAbs")),(0,k.VD)("Reverse",c)],p3:[(0,k.VD)("to MinWidth",o,!1),(0,k.VD)("to InitialWidth",n,!1),(0,k.VD)("+10px to Width",s,!1),(0,k.VD)("-10px to Width",r,!1),(0,k.VD)("Fit Items to Width",i,!1)]})},D=Object.keys,I=(t,e)=>D(t).reduce(((o,n)=>{const s=t[n];return s?(e(s),++o):o}),0),L=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),s=2;s{const o=(0,x.ZC)(t);o&&o[e](...n)}},N=t=>{(0,x.fp)(t.showCaption)&&t.showCaption()},O=(t,e,o,n,s,r,i)=>{const a=(0,x.li)(),l=(0,x.li)(),{onSortBy:c,onRemoveAll:d}=e,[p,u]=(0,x.Kr)((()=>[t=>{I(r,(t=>e=>{(0,x.fp)(e.reflowChart)&&e.reflowChart(t-36)})(t))},()=>{I(r,N)}]),[]),h=(0,x.Kr)((()=>()=>{const{width:t}=(0,x.hC)(a)||{};t&&p(parseInt(t,10))}),[]),m=(0,x.Kr)((()=>E(t,{onMinWidth:L(l,"toWidth",n,!0),onInitWidth:L(l,"toWidth",o,!0),onPlusWidth:L(l,"resizeBy",s),onMinusWidth:L(l,"resizeBy",-s),onFit:h,onShowCaptions:u,onSortBy:c,onRemoveAll:d,onCompareTo:i})),[t]);return[a,l,m,p]},M=(t,e,o)=>(0,x.Kr)((()=>[t=>{o(t,!0)},t=>{o(t,!1)}]),[]),F=(t,e)=>(0,x.hb)((o=>{const n=[],s=I(t,(t=>{(0,x.fp)(t.compareTo)&&n.push(t.compareTo(o))})),r=s-n.filter(Boolean).length;return s>0&&0===r&&e(n),r}),[]),W=(0,b.Dq)("item-container"),R=t=>[t?b.mL:b.JS,(0,b.PX)(W,[t,"show-cont"])];var P=o(2336),B=o(8203);const U=Number.isNaN,z=Object.assign,V=t=>{z(t,{id:null,deltaStep:1,countStep:0})};const J=class{constructor(t){let{elementRef:e,initWidth:o,minWidth:n,maxWidth:s,step:r=10,onResizeAfter:i}=t;this.elementRef=e,this.step=r,this.onResizeAfter=i,this.initWidth=o,this.minWidth=n,this.maxWidth=s,this.minDelta=n-o,this.maxDelta=s-o,this.delta=0,V(this),this.hStartResizeLeft=(0,x.Jr)(this._startResize,this._resizeLeft),this.hStartResizeRight=(0,x.Jr)(this._startResize,this._resizeRight)}_increaseDeltaStep=()=>{this.countStep+=1,this.countStep>30?this.deltaStep=3:this.countStep>15&&(this.deltaStep=2),(this.maxDelta-this.delta<20||this.delta-this.minDelta<20)&&(this.deltaStep=1)};_getStyle=()=>(0,x.hC)(this.elementRef)||{};_setWidth=t=>{this._getStyle().width=t+"px"};_getWidth=()=>parseInt(this._getStyle().width,10);_onResizeAfter=()=>{const{onResizeAfter:t}=this;(0,x.fp)(t)&&t(this._getWidth())};clearInterval=()=>{clearInterval(this.id)};toWidth=(t,e)=>{t>=this.minWidth&&t<=this.maxWidth&&(this.delta=t-this.initWidth,this._setWidth(t),e&&this._onResizeAfter())};resizeBy=t=>{t<0&&this.delta>this.minDelta||t>0&&this.delta{(0,S.P0)(t)&&(t.stopPropagation(),this.resizeBy(-this.step))};_resizeLeft=()=>{this.resizeBy(-this.deltaStep),this._increaseDeltaStep()};hKdRight=t=>{(0,S.P0)(t)&&(t.stopPropagation(),this.resizeBy(this.step))};_resizeRight=()=>{this.resizeBy(this.deltaStep),this._increaseDeltaStep()};_updateDelta=()=>{const t=this._getWidth();U(t)||(this.delta=t-this.initWidth)};_startResize=t=>{null!==this.id&&this._stopResize(),this._updateDelta(),this.id=setInterval(t,5)};_stopResize=()=>{this.clearInterval(),V(this)};hStopResize=()=>{this._stopResize(),this._onResizeAfter()}},K=t=>{let{refEl:e,...o}=t;const n=(0,w.A)((()=>new J(o)));return(0,x.Yn)(e,(()=>({toWidth:n.toWidth,resizeBy:n.resizeBy})),[]),(0,x.vJ)((()=>()=>n.clearInterval()),[]),[n.hStartResizeLeft,n.hStartResizeRight,n.hStopResize,n.hKdLeft,n.hKdRight]};var Z=o(540),q=o(4848);const Y=t=>{let{style:e,title:o,startResize:n,stopResize:s,onKeyDown:r}=t;return(0,q.jsx)("button",{type:"button",className:"bt-resize not-selected",style:e,title:o,onMouseDown:n,onMouseUp:s,onKeyDown:r,onTouchStart:n,onTouchEnd:s,children:(0,q.jsxs)(Z.A,{w:"12",strokeWidth:"2",strokeLinecap:"round",fill:"none",children:[(0,q.jsx)("path",{d:"M 1,6 L 11,6"}),(0,q.jsx)("path",{d:"M 6,2 L 1,6 6,10"})]})})},G={display:"inline-block"},H={marginLeft:10},Q={...H,transform:"rotate(180deg)"},X=t=>{const[e,o,n,s,r]=K(t);return t.isBts?(0,q.jsxs)("div",{style:{...G,...t.style},children:[(0,q.jsx)(Y,{style:H,title:"Resize container to left",startResize:e,stopResize:n,onKeyDown:s}),(0,q.jsx)(Y,{style:Q,title:"Resize container to right",startResize:o,stopResize:n,onKeyDown:r})]}):null};var tt=o(509),et=o(4407),ot=o(8678),nt=o(972),st=o(1327),rt=o(652),it=o(9195);const at={display:"flex",alignItems:"center",marginTop:8},lt={...it.le,width:120,marginLeft:8},ct={marginTop:6},dt=t=>{let{refEl:e,initialValue:o,msgErr:n,onTest:s,onEnter:r}=t;return(0,q.jsxs)("div",{children:[(0,q.jsxs)("label",{style:at,children:[(0,q.jsx)(st.t8,{children:"CompareTo:"}),(0,q.jsx)(rt.A,{refEl:e,style:lt,initialValue:o,placeholder:"DD-MM-YYYY",errorMsg:"DD-MM-YYYY",onTest:s,onEnter:r})]}),n&&(0,q.jsx)("div",{style:ct,children:(0,q.jsx)("span",{style:it.KV,children:n})})]})},pt={position:"absolute",top:38,left:6,zIndex:20,width:"auto",padding:"5px 10px 12px 10px",backgroundColor:"inherit",border:"2px solid #1b2836",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 5px",cursor:"auto"},ut=t=>{let{isShow:e,onCompareTo:o,onClose:n}=t;const s=(0,et.C)(e),[r,i]=(0,x.J0)(""),a=(0,x.hb)((t=>{if((0,ot.r$)(t)){const e=o(t);i(0!==e?`No ${e} data for ${t}`:"")}}),[o]);return(0,q.jsx)(nt.A,{isShow:e,style:pt,onClose:n,children:(0,q.jsx)(dt,{refEl:s,msgErr:r,onTest:ot.r$,onEnter:a})})};var ht=o(434),mt=o(6882),ft=o(4616);let gt;const yt=t=>{gt=t};var xt=o(7222),vt=o(8376),bt=o(4250),Ct=o(4867);const St=()=>{const t=(0,x.li)(),e=(0,x.hb)((e=>{const o=(0,x.ZC)(t);return o?o._updateDateTo(e):void 0}),[]);return[t,e]},wt=(t,e,o)=>(0,x.Kr)((()=>[n=>{n.chartType=e,o(!0,n,t())},n=>{n.chartType=e,o(!1,n,t())}]),[]),At=(t,e)=>{const[o,n]=(0,x.J0)(!0);return[o,...(0,x.Kr)((()=>[()=>{const o=t();o&&(o.zhShowCaption(),n(!0),e(!0))},()=>{const o=t();o&&(o.zhHideCaption(),n(!1),e(!1))}]),[])]},jt=()=>{const[t,e]=(0,x.J0)([]),[o,n]=(0,x.Kr)((()=>[(t,o)=>{e((e=>(e.push({config:t,id:o}),[...e])))},t=>{e((e=>e.filter((e=>e.id!==t))))}]),[]);return[t,o,n]},$t=()=>{const[t,e]=(0,x.J0)([]),o=(0,x.hb)((t=>{e((e=>((t,e)=>-1===t.indexOf(e)?[e,...t]:t.filter((t=>t!==e)))(e,t)))}),[]);return[t,o]},Tt=t=>(0,x.Kr)((()=>[e=>{const o=t();o&&o.zhAddDetailChart(e)},e=>{const o=t();o&&o.zhRemoveDetailChart(e)}]),[]),kt={position:"absolute",left:5,bottom:0,color:"#909090",fontSize:"11px"},_t=t=>{let{ds:e}=t;return(0,q.jsx)("div",{style:kt,children:e||""})},Et=t=>{const[e,o]=(0,x.J0)((()=>(0,q.jsx)(_t,{ds:t}))),n=(0,x.hb)((t=>{o((0,q.jsx)(_t,{ds:t}))}),[]);return[e,n]};var Dt=o(2357);const It=()=>{};class Lt extends x.uA{static defaultProps=(()=>({onError:It}))();state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,e){this.props.onError()}render(){const{FallbackComp:t,children:e}=this.props;return this.state.hasError?t:e}}const Nt=Lt,Ot=t=>["Error occured during rendering",t].filter(Boolean).join(" ")+".",Mt=t=>{let{isShow:e,style:o,msg:n}=t;return e?(0,q.jsx)("div",{className:"err-msg",style:o,children:Ot(n)}):null};var Ft=o(2908),Wt=o.n(Ft);const Rt={position:"relative",zIndex:1},Pt=t=>"function"==typeof t,Bt=t=>{let{isShowAbs:e=!0,absComp:o=null,config:n,onLoaded:s,onWillUnLoaded:r}=t;const i=(0,x.li)();return(0,x.Nf)((()=>{if(!n)throw new Error("Chart's config must be specified.");const t=new(Wt().Chart)(i.current,n);return t&&Pt(s)&&s(t),()=>{Pt(r)&&r(t),t&&t.destroy()}}),[]),(0,q.jsxs)("div",{style:Rt,children:[(0,q.jsx)("div",{ref:i}),e&&o]})},Ut=(t,e,o,n)=>(0,w.A)((()=>({onExport:()=>{(0,ft.Jg)({chart:t()})},onFullScreen:()=>t().fullscreen.open(),onPrint:()=>t().print(),onX2H:()=>t().zhToggle2H(),onMinMax:()=>t().zhToggleMinMaxLines(),onZoom:()=>{(0,x.fp)(e)&&e({chart:t()})},onCopy:()=>o(t()),onPasteTo:()=>n(t())})));var zt=o(4874);const Vt=t=>{let{is:e=!0,isMenu:o,className:n,style:s,caption:r,onClick:i}=t;return e?(0,q.jsxs)(zt.A,{className:(0,b.PX)("not-selected bt bt-tab",n),style:s,onClick:i,children:[r,o&&(0,q.jsx)("span",{className:"arrow-down"})]}):null},Jt={position:"absolute",zIndex:1010,top:30,left:-5,backgroundColor:"inherit",stroke:"inherit",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0 0 0 5px"},Kt=(0,b.zq)(),Zt=t=>{const{getChart:e,style:o,isShow:n,onClose:s}=t,r=(t=>{if(!(0,x.fp)(t))return!1;const e=t();if(!e||!(0,x.fp)(e.zhGetFromToDates))return!1;const{from:o,to:n}=e.zhGetFromToDates({format:ot.Ch});return!(o===n&&"01-01-1970"===n)})(e),i=(0,x.Kr)((()=>((t,e)=>{return(0,k.W1)(b.aw,125,2,{p0:[(0,k.z7)("p1","Chart"),(0,x.fp)(t.onAddToWatch)?(0,k.VD)("Add To",t.onAddToWatch):void 0,(o=t.config,((o.yAxis||{}).plotLines||[]).length>0?(0,k.VD)("MinMax",t.onMinMax,!1):void 0),e?(0,k.VD)("Zoom",t.onZoom):void 0,(0,k.VD)("Copy",t.onCopy),(0,k.VD)("PasteTo",t.onPasteTo)].filter(Boolean),p1:[(0,k.VD)("x2 Height",t.onX2H,!1),(0,k.VD)("Full Screen",t.onFullScreen),(0,k.VD)("Export As",t.onExport),(0,k.VD)("Print",t.onPrint)]});var o})(t,r)),[r]);return(0,q.jsx)(tt.A,{isShow:n,className:Kt,style:{...Jt,...o},model:i,onClose:s})};var qt=o(9901);const Yt="t1";var Gt=o(704),Ht=o(6517);const Qt=function(t,e){void 0===e&&(e=1);const[o,n]=(0,Ht.ar)(t),s=o.length,r=parseInt(e,10)-1,i=[];if(0===s||!(0,Ht.Et)(r)||r>s)return i;if(r<=0)return t;let a=(0,Gt.default)(0),l=0;for(;l=r&&(l!==r&&(a=a.minus(o[l-e])),i.push([n[l],parseFloat(a.div(e).toFixed(2))]));return i},Xt=t=>{const e=t[4],o=t[2]||e,n=t[3]||e,s=(0,Gt.default)(o).plus(n).plus(e).div(3),r=s.times(t[5]);return[s,r,!(!t[2]||!t[3])]},te=(t,e,o,n,s)=>({x:t,y:e,isNegative:o,tp:parseFloat(n.toFixed(4)),rmf:parseFloat(s.toFixed(4))}),ee=(t,e)=>{const o=[],n=parseFloat(e)+1;let s=(0,Gt.default)(0),r=(0,Gt.default)("0.0001"),i=!1,a=0,l=t.length,c=0;for(;c{const e=[],o=[],n=[];let s,r,i,a,l,c,d=1,p=t.length;for(;d0?"rgba(76, 175, 80, 0.75)":"rgba(244, 67, 54, 0.75)"}),c=(0,oe.W7)(s[4]-s[1],4),n.push({x:i,y:c});return{dataMom:e,dataAth:o,dataSum:n}},se=(t,e)=>{const o=(0,Gt.default)(10).pow(e);return[t.map((t=>(t.y=parseFloat((0,Gt.default)(t.y).times(o).toString()),t))),parseFloat(o.toString())]},re=t=>{const e=t.length;return e?parseFloat(t.reduce(((t,e)=>t.add(e)),(0,Gt.default)(0)).div(e).toFixed()):NaN},ie=(t,e,o)=>{let n,s=2/(e+1),r=[o||re(t.slice(0,e))],i=t.length;for(n=1;n{let o,n=[0],s=[1e-14],r=t.length;for(o=1;o=0?e:0),s.push(e<0?-e:0)}return function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;no.map((e=>e[t])),a=o[0].length;for(s=0;s100-100/(1+t/e)),ie(n,2*e-1),ie(s,2*e-1))},le=Array.isArray,ce=t=>(e,o,n)=>{let{rc:s,sc:r}=n;if(!le(e)||!le(o))return[];const i=(t=>{const e=Object.create(null),o=(t[0]||{}).c?"c":"category";return t.forEach((t=>{t.isNull||(e[t[o]]=t)})),e})(o);return e.map((e=>{const{category:o,color:n,status:a}=e;return{y:t(e,i[o]),id:o,c:o,color:n===r?s:n,status:a}}))};var de=o(3326);const pe=(t,e)=>parseFloat((0,Gt.default)(t).div(e).toFixed(2));var ue=o(1417);const he=ce(((t,e)=>e&&null!==e.y?(0,de.A)(t.y,e.y):0)),me=ce(((t,e)=>e&&null!==e.y&&0!==e.y?pe(t.y,e.y):0)),fe=ce(((t,e)=>(0,ue.A)((e||{}).y,t.y))),ge=Qt,ye=ee,xe=ne,ve=se;var be=o(9649),Ce=o(5248);const Se=(t,e)=>(o,n)=>{const{d1:s,d2:r,sc:i}=(t=>{const e=t.series,o=e[0];return{d1:o.data,d2:(e[1]||{}).data||[],sc:o.color}})(o);if(0!==r.length){const a=t(s,r,{rc:n,sc:i});return o.addSeries({name:e,data:a,color:n},!0,!0),(t=>{const e=t.yAxis[0],{dataMin:o,min:n}=e.getExtremes();o{const e=t.series;e[0].hide(),e[1].hide()})(o),!0}return!1},we=Se(me,"Rate S1/S2"),Ae=Se(he,"Diff S1-S2"),je=Se(fe,"ROC S1 from S2"),$e=(t,e,o)=>(n,s)=>{const{id:r,period:i}=s,a=n.series[0].data,l=e(a,i),c=`${t}(${i})`,d={zhValueText:r,lineWidth:2,data:l,name:c};return l.length>0?o?(n.zhAddSeriaToYAxis({name:t,data:l,...o},(0,Ce.wo)({name:c,zhValueText:r,lineWidth:2}))||{}).color:((t,e)=>{const o=(0,Ce.wo)(e);return(t.addSeries(o,!0,!0)||{}).color})(n,d):console.log("It seems, there are not enough data for "+c)},Te=$e("SMA",ge),ke=$e("RSI",((t,e)=>{const[o,n]=(0,Ht.ar)(t);return(0,Ht.dG)(n.slice(e),ae(o,e).slice(e))}),{min:0,max:100});var _e=o(1205),Ee=o(6409);const De=(0,b.hI)("circle"),Ie=(t,e)=>o=>(0,q.jsx)(zt.A,{...(0,v.o$)(o,e),className:De,style:o.style,onClick:o.onClick,children:(0,q.jsx)(Ee.A,{w:"20",strokeWidth:"2",strokeLinecap:"round",children:t})}),Le=Ie((0,q.jsx)("path",{d:"M 4,10 L 16,10"}),"Subtract"),Ne=Ie((0,q.jsx)("path",{d:"M 10,4 L 10,16 M 4,10 L 16,10"}),"Add"),Oe={marginLeft:-8,paddingBottom:4,lineHeight:"unset"},Me={display:"inline-block",width:"auto",height:32,paddingTop:4,paddingRight:8},Fe={display:"inline-block",fontWeight:"bold"},We={...Fe,width:48},Re={width:56,marginRight:12},Pe=t=>{let{refEl:e,isBtAdd:o=!0,style:n,captionStyle:s,caption:r,initValue:i,maxLength:a=3,onAdd:l}=t;return(0,q.jsxs)("div",{style:n,children:[(0,q.jsx)(st.W,{style:{...We,...s},children:r}),(0,q.jsx)(_e.A,{refEl:e,type:"number",style:Re,initValue:i,maxLength:a,onEnter:l}),o?(0,q.jsx)(Ne,{onClick:l}):null]})},Be={paddingTop:5},Ue=t=>({color:t,paddingLeft:8}),ze=t=>{let{configs:e,onRemove:o}=t;return e.map((t=>{let{id:e,color:n}=t;return(0,q.jsxs)("div",{style:Be,children:[(0,q.jsx)(Le,{onClick:()=>o(e)}),(0,q.jsx)("span",{style:Ue(n),children:e})]},e)}))},Ve=t=>{let{refEl:e,caption:o,initValue:n,configs:s,onAdd:r,onRemove:i}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Pe,{refEl:e,caption:o,initValue:n,onAdd:r}),(0,q.jsx)(ze,{configs:s,onRemove:i})]})},Je=t=>{let{caption:e,config:o,getChart:n,crInitialPeriod:s,addTaTo:r}=t;const i=(0,w.A)((()=>s(o))),a=(0,x.li)(),[l,c]=(0,x.J0)([]);return(0,q.jsx)(Ve,{refEl:a,caption:e,initValue:i,configs:l,onAdd:()=>{const t=(0,x.y5)(a),o=((t,e)=>`${t}(${e})`)(e,t);if(!((t,e)=>!!t.find((t=>t.id===e)))(l,o)){const e=n(),s=r(e,{id:o,period:t});s&&c([...l,{id:o,color:s}])}},onRemove:t=>{((t,e)=>{const o=t.series;for(const t of o)if(t.userOptions.zhValueText===e)return t.remove(!0),!0;return!1})(n(),t)&&c(l.filter((e=>e.id!==t)))}})},Ke=Array.isArray,Ze=(t,e,o)=>n=>{let{config:s,getChart:r}=n;return(0,q.jsx)(Je,{caption:t,config:s,getChart:r,crInitialPeriod:e,addTaTo:o})},qe=(t,e)=>o=>function(t,e,o,n){void 0===n&&(n=150);const s=(t=>(((t||{}).series||[])[0]||{}).data)(t);return Ke(s)?s.length>n?o:e:"0"}(o,t,e),Ye=Ze("RSI",qe("14","30"),ke),Ge=Ze("SMA",qe("12","50"),Te),He=t=>({id:t,color:"#90ed7d"}),Qe=t=>{let{getChart:e,onAddMfi:o,onRemoveMfi:n}=t;const s=(0,x.li)(),[r,i]=(0,x.J0)([]);return(0,q.jsx)(Ve,{refEl:s,caption:"MFI",initValue:30,configs:r,onAdd:()=>{const t=(0,x.y5)(s),n="MFI("+t+")";var a;if(a=n,!r.find((t=>t.id===a))){const s=((t,e,o)=>{const n=t.options.zhPoints,[s,r]=ye(n,e),i=0!==r?" Not Full Data HL:"+r:"";return(0,be.Ng)(o,o+i,s)})(e(),t,n);s&&(o(s,n),i([...r,He(n)]))}},onRemove:t=>{n(t),i(r.filter((e=>e.id!==t)))}})},Xe={...Fe,padding:"0 8px 6px 0"},to=t=>{let{is:e,styleCaption:o,caption:n,onMinus:s,onPlus:r}=t;return(0,q.jsxs)("div",{children:[(0,q.jsx)(st.W,{style:{...Xe,...o},children:n}),e?(0,q.jsx)(Le,{onClick:s}):(0,q.jsx)(Ne,{onClick:r})]})},eo="MOM_ATH",oo=(t,e,o)=>{const[n,s,r]=(0,C.o)(),[i,a]=(0,x.Kr)((()=>[()=>{const o=(t=>{const e=t.options.zhPoints;return(0,be.V9)(xe(e))})(t());o&&(e(o,eo),s())},()=>{o(eo),r()}]),[t,e,o]);return[n,i,a]},no=t=>{let{getChart:e,onAddMfi:o,onRemoveMfi:n}=t;const[s,r,i]=oo(e,o,n);return(0,q.jsx)(to,{is:s,caption:"MOM(1) & ATH",onPlus:r,onMinus:i})},so=t=>(0,x.Kr)((()=>{const e=!!t.zhIsMfi,{btTitle:o}=(t.zhMiniConfigs||[])[0]||{};return[(t.zhConfig||{}).isWithoutSma?"":[Ge,"sma",Yt],e?[Qe,"mfi","t2"]:"",t.zhIsMomAth?[no,"ath","t2"]:"",e||-1!==(o||"").indexOf("Volume")?[Ye,"rsi",Yt]:""].filter(Boolean)}),[t]),ro=t=>t&&(0,x.fp)(t.setVisible),io=(t,e)=>{const o=(0,x.li)(),[n,s,r]=(0,C.o)();return[n,(0,x.hb)((function(){for(var n=arguments.length,r=new Array(n),i=0;i{let{s:o}=e;const n=(0,x.Et)(o)?o-1:0;return t?.series.length>n?n:0})(m,a),e=p(m.series[t].data,l);(0,x.nl)(o,m.zhAddSeriaToYAxis({data:e,color:a.color||d,name:u},a))}s()}}),[e]),(0,x.hb)((()=>{const e=t[3],n=(0,x.ZC)(o);ro(n)&&(e?(n.yAxis.remove(),(0,x.nl)(o,null)):n.setVisible(!1),r())}),[])]},ao=t=>e=>{let{caption:o,configArr:n,getChart:s}=e;const[r,i,a]=io(n,s);return(0,q.jsx)(t,{is:r,caption:o,onPlus:i,onMinus:a})};var lo=o(5668),co=o(66),po=o(7144);const uo="#2b908f",ho={width:56,marginRight:12},mo={width:36},fo={paddingBottom:6},go={verticalAlign:"middle"},yo={paddingLeft:6},xo={paddingLeft:8},vo={paddingLeft:10},bo={...Fe,width:85,paddingLeft:5},Co=t=>({color:t,paddingLeft:8,fontWeight:"bold"}),So={...b.mL,...go,...vo},wo={...b.mL,...go,...vo},Ao=t=>{let{initValue:e,onChangePeriod:o,onPlus:n}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_e.A,{style:ho,type:"number",initValue:e,min:1,max:999,maxLength:3,onChange:o,onEnter:n}),(0,q.jsx)(Ne,{style:b.mL,onClick:n})]})},jo=t=>{let{color:e,period:o,onMinus:n}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Le,{style:b.mL,onClick:n}),(0,q.jsx)("span",{style:Co(e),children:o})]})},$o=(t,e)=>o=>(0,x.nl)(t,parseInt(o,10)||e),To=ao((t=>{let{is:e,caption:o,dfColor:n=uo,onMinus:s,onPlus:r}=t;const i=(0,x.li)(n),a=(0,x.li)(1),l=(0,x.li)("column"),c=(0,x.li)(1),d=(0,x.li)(!1),p=$o(a,1),u=$o(c,1),h=()=>r({s:(0,x.ZC)(c),color:(0,x.ZC)(i),type:(0,x.ZC)(l),zIndex:(0,x.ZC)(d)?void 0:-1},(0,x.ZC)(a));return(0,q.jsx)(po.A,{caption:o,className:b.Qd,style:Oe,ocStyle:Me,CompAfter:e?(0,q.jsx)(jo,{color:(0,x.ZC)(i),period:(0,x.ZC)(a),onMinus:s}):(0,q.jsx)(Ao,{initValue:(0,x.ZC)(a),onChangePeriod:p,onPlus:h}),children:(0,q.jsxs)("div",{style:xo,children:[(0,q.jsx)(lo.A.RowInputColor,{style:b.mL,initValue:uo,onEnter:t=>(0,x.nl)(i,t)}),(0,q.jsx)(co.A,{style:So,caption:"Column",captionStyle:yo,chbCn:b.w_,btCn:b.eT,initialValue:!0,onToggle:t=>(0,x.nl)(l,t?"column":"spline")}),(0,q.jsxs)("div",{style:fo,children:[(0,q.jsx)(lo.A.RowInputText,{rootStyle:b.mL,caption:"For Seria",captionCn:b.eT,captionStyle:bo,inputStyle:mo,type:"number",initValue:1,min:1,max:9,maxLength:1,onChange:u,onEnter:h}),(0,q.jsx)(co.A,{style:wo,caption:"OnTop",captionStyle:yo,chbCn:b.w_,btCn:b.eT,onToggle:t=>(0,x.nl)(d,t)})]})]})})})),ko=ao(to);var _o=o(3569);const Eo="#90ed7d",Do={width:265,margin:8},Io=["ROC",Eo,qt.YV,!0],Lo=["DIFF",Eo,qt.iv,!0],No=["NORM",Eo,qt.S8,!1],Oo=(0,q.jsxs)(q.Fragment,{children:["Normalize (100*y",(0,q.jsx)("sub",{children:"t"}),"/y",(0,q.jsx)("sub",{children:"0"}),")"]}),Mo=()=>{},Fo=t=>{let{isShow:e,style:o,config:n,getChart:s=Mo,onClose:r,onAddMfi:i,onRemoveMfi:a}=t;const l=so(n);return(0,q.jsx)(nt.A,{style:{...Jt,...o},isShow:e,onClose:r,children:(0,q.jsxs)("div",{style:Do,children:[(0,q.jsx)(To,{caption:"Changes Between",configArr:Lo,getChart:s}),(0,q.jsx)(To,{caption:"Growth Rate",configArr:Io,getChart:s}),(0,q.jsx)(ko,{caption:Oo,configArr:No,getChart:s}),l.map((t=>{let[e,o,r]=t;const l=r===Yt?{config:n}:{onAddMfi:i,onRemoveMfi:a};return(0,_o.createElement)(e,{...l,key:o,getChart:s})}))]})})},Wo="#2b908f",Ro={...Me,marginRight:6},Po={paddingLeft:10},Bo=t=>{let{caption:e,dfColor:o=Wo,mathFn:n,getChart:s}=t;const[r,i]=((t,e,o)=>{const[n,s]=(0,x.J0)(!1),[r,i]=(0,bt.A)(o);return[n?null:(0,q.jsx)(Ne,{onClick:()=>{s(t(e(),i()))}}),r]})(n,s,o);return(0,q.jsx)(po.A,{caption:e,className:b.Qd,style:Oe,ocStyle:Ro,CompAfter:r,children:(0,q.jsx)(lo.A.RowInputColor,{style:Po,initValue:o,onEnter:i})})},Uo={...Fe,width:120},zo={width:46,marginRight:12},Vo=t=>{let{refEl:e,caption:o,initValue:n,min:s,max:r,maxLength:i,onAdd:a}=t;const[l,c]=(0,x.J0)(!0),d=l?()=>{c(!a())}:void 0;return(0,q.jsxs)("div",{children:[(0,q.jsx)(st.W,{style:Uo,children:o}),(0,q.jsx)(_e.A,{refEl:e,type:"number",style:zo,initValue:n,maxLength:i,min:s,max:r,onEnter:d}),l&&(0,q.jsx)(Ne,{onClick:d})]})},Jo={margin:"4px 10px 8px 8px"},Ko=t=>{let{style:e,isShow:o,onClose:n,getChart:s,config:r}=t;const i=(0,w.A)((()=>(t=>!t?.plotOptions?.bar?.dataLabels?.enabled)(r))),a=(0,x.li)(0);return(0,q.jsx)(nt.A,{style:{...Jt,...e},isShow:o,onClose:n,children:(0,q.jsxs)("div",{style:Jo,children:[(0,q.jsx)(Bo,{caption:"Rate (S1/S2)",mathFn:we,getChart:s}),(0,q.jsx)(Bo,{caption:"Diff (S1-S2)",mathFn:Ae,getChart:s}),(0,q.jsx)(Bo,{caption:"ROC (S1 from S2)",mathFn:je,getChart:s}),i&&(0,q.jsx)(Vo,{refEl:a,caption:"S1*PowerOf 10",initValue:0,min:-9,max:9,maxLength:2,onAdd:()=>{const t=parseFloat((0,x.y5)(a));if((0,x.Et)(t))return((t,e)=>{const o=t.series[0],n=o.getName(),[s,r]=ve(o.data,e);o.update({data:s,name:`${n}*${r}`},!0)})(s(),t),!0}})]})})};var Zo=o(2089);const qo={margin:"6px 2px 8px 6px"},Yo={padding:0},Go={paddingTop:5,paddingLeft:5},Ho={width:void 0},Qo=t=>{let{style:e,isShow:o,onClose:n,getChart:s,config:r}=t;const i=(0,x.li)(),[a,l,c]=(0,x.Kr)((()=>[()=>{s().zhDataLabels(!0)},()=>{s().zhDataLabels(!1)},()=>{const t=parseFloat((0,x.y5)(i));t>0&&t<21&&s().zhSetPointWidth(t)}]),[]);return(0,q.jsx)(nt.A,{style:{...Jt,...e},isShow:o,onClose:n,children:(0,q.jsxs)("div",{style:qo,children:[(0,q.jsx)(Zo.A,{caption:"Data Labels",style:Yo,chbCn:b.w_,btCn:b.eT,onCheck:a,onUnCheck:l}),(0,q.jsx)(Pe,{refEl:i,caption:"Point Width",isBtAdd:!1,style:Go,captionStyle:Ho,initValue:4,maxLength:2,onAdd:c})]})})},Xo=(0,b.zq)(),tn=t=>{let{isShow:e,style:o,onClose:n,configs:s,onClickItem:r}=t;const i=(0,x.Kr)((()=>((t,e)=>(0,k.W1)(b.aw,160,1,{p0:(t||[]).map((t=>{let{btTitle:o}=t;return(0,k.VD)(o,(0,x.Jr)(e,o),!1)}))}))(s,r)),[s,r]);return(0,q.jsx)(tt.A,{isShow:e,className:Xo,style:{...Jt,...o},model:i,onClose:n})},en=Array.isArray,on=(0,$.WB)()?75:65,nn=t=>({top:on,left:t}),sn=t=>({left:t}),rn=sn(8),an=nn(5),ln=sn(95),cn=nn(75),dn=sn(115),pn=sn(230),un=sn(190),hn=nn(175),mn={left:350,width:68},fn=nn(290),gn=["area","spline","line"],yn=function(t){let{type:e,categories:o}=void 0===t?{}:t;return"category"===e&&en(o)},xn=(t,e,o,n,s,r,i,a,l,c,d)=>{const{zhConfig:p,info:u,zhMiniConfigs:h}=o||{},{isWithoutIndicator:m,itemConf:f,legend:g}=p||{},[y,x]=(0,Ct.A)(),[v,b]=(0,Ct.A)(),[C,S]=(0,Ct.A)(),[w,A]=(0,Ct.A)(),j=[],$=(0,q.jsx)(Vt,{is:!!u,caption:"Info",onClick:s});if(t)return[$];j.push((0,_o.createElement)(Zt,{...d,isShow:C,style:{...hn,...e(C,un)},config:o,getChart:n,onAddToWatch:f?i:void 0,onClose:S,key:"fn"}));const T=(0,q.jsx)(Vt,{is:!!g,style:dn,caption:"Legend",onClick:r});let k=null,_=null;if(((t,e)=>{let{series:o,xAxis:n}=t;return!e&&en(o)&&o[0]&&(-1!==gn.indexOf(o[0].type)||yn(n))})(o,m)){let t="Indicator";yn(o.xAxis)?(t="Math",j.push((0,q.jsx)(Ko,{isShow:y,style:an,config:o,getChart:n,onClose:x},"ind2")),j.push((0,q.jsx)(Qo,{isShow:v,style:cn,config:o,getChart:n,onClose:b},"appearance")),_=(0,q.jsx)(Vt,{style:ln,caption:"Appearance",isMenu:!0,onClick:b})):j.push((0,q.jsx)(Fo,{isShow:y,style:an,config:o,getChart:n,onAddMfi:a,onRemoveMfi:l,onClose:x},"ind")),k=(0,q.jsx)(Vt,{style:rn,caption:t,isMenu:!0,onClick:x})}let E=null;h&&h.length&&(E=(0,q.jsx)(Vt,{style:mn,caption:"Mini",isMenu:!0,onClick:A}),j.push((0,q.jsx)(tn,{isShow:w,style:{...fn,...e(w,fn)},configs:h,onClickItem:c,onClose:A},"mini")));return[$,k,_,T,(0,q.jsx)(Vt,{style:_?pn:un,caption:"Fn",isMenu:!0,onClick:S}),E,j]},vn="with-scroll-x",bn=(0,b.mg)(vn),Cn=`${vn}__bt-r`,Sn={left:440,width:36},wn=t=>{let{hasError:e,config:o,onMiniChart:n,getChart:s,onAddMfi:r,onRemoveMfi:i,onClickLegend:a,onAddToWatch:l,onCopy:c,onPasteTo:d,onZoom:p,onClickInfo:u}=t;const h=(0,x.li)(),m=Ut(s,p,c,d),[f,g]=(0,x.Kr)((()=>[(t,e)=>{if(!t)return;const o=(0,x.ZC)(h),{scrollLeft:n}=o||{};return(0,x.Et)(n)?{left:e.left-n}:void 0},()=>{((t,e)=>{const o=(0,x.ZC)(t);(t=>t&&t.scrollWidth>t.clientWidth)(o)&&((0,x.fp)(o.scroll)?o.scroll({left:e,behavior:"smooth"}):o.scrollLeft=e)})(h,0)}]),[]),[y,v,b,C,S,w,A]=xn(e,f,o,s,u,a,l,r,i,n,m);return e?(0,q.jsx)("div",{ref:h,className:bn,children:y}):(0,q.jsxs)(q.Fragment,{children:[A,(0,q.jsxs)("div",{ref:h,className:bn,children:[v,b,C,S,y,w,(0,q.jsx)(Vt,{is:!!w,className:Cn,style:Sn,caption:">",onClick:g})]})]})},An=(t,e,o)=>(0,k.W1)(b.aw,150,1,{p0:[(0,k.VD)("Move to Top",e),(0,k.VD)("Hide Caption",o),(0,k.VD)("Toggle Toolbar",t)]});var jn=o(9073),$n=o(9355),Tn=o(1853),kn=o(5709),_n=o(7441);const En="svg-move",Dn=`${En}__svg`,In=`${Dn} svg-equal`,Ln=`${Dn} svg-up`,Nn=(t,e)=>()=>(0,q.jsx)("span",{className:En,children:(0,q.jsx)(Z.A,{w:"12",className:t,children:e})}),On=Nn(`${Dn} svg-down`,(0,q.jsx)("path",{d:"M 0,0 L 6,4 11,0 6,12, 0,0"})),Mn=Nn(In,(0,q.jsx)("path",{d:"M 0,3 L 12,3 M 0,7 L 12,7"})),Fn=Nn(Ln,(0,q.jsx)("path",{d:"M 0,12 L 6,8 11,12 6,0 0,12"}));var Wn=o(3695);const Rn={position:"absolute",top:25,left:0,zIndex:20,width:"auto",backgroundColor:"inherit",padding:"5px 10px 10px 10px",border:"2px solid #1b2836",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 5px",cursor:"auto"},Pn={display:"flex",justifyContent:"space-between"},Bn={paddingLeft:16,whiteSpace:"nowrap"},Un=(t,e)=>((0,x.fp)(t)?t():!!(0,x.bj)(t)&&t)&&!e,zn=t=>{let{value:e,date:o}=t;return(0,q.jsxs)("div",{style:Pn,children:[(0,q.jsx)(st.M_,{children:(0,Wn.A)(e)}),(0,q.jsx)(st.Ll,{style:Bn,children:o})]})},Vn=t=>{const{isShow:e,updateDateTo:o,valueMoving:n,isAdminMode:s,onClose:r}=t,[i,a]=(0,x.J0)(""),l=(0,x.li)(),c=(0,x.hb)((t=>{(0,ot.r$)(t)&&a(o(t)?"":`No data for ${t}`)}),[]);(0,x.vJ)((()=>{e&&((0,x.ZI)(l),a(""))}),[t]);const{value:d,date:p,valueTo:u,dateTo:h,isDenyToChange:m}=n;return(0,q.jsxs)(nt.A,{isShow:e,style:Rn,onClose:r,children:[(0,q.jsx)(zn,{value:d,date:p}),(0,q.jsx)(zn,{value:u,date:h}),Un(s,m)&&(0,q.jsx)(dt,{refEl:l,initialValue:h,msgErr:i,onTest:ot.r$,onEnter:c})]})},Jn={position:"relative",display:"inline-block",marginLeft:10},Kn={marginLeft:5,fontWeight:"bold"},Zn={display:"inline-block",width:5},qn={padding:"4px 5px 2px 5px"},Yn={DF:[null],[_n.sW]:[(0,q.jsx)(On,{}),{color:"#f44336"}],[_n.dj]:[(0,q.jsx)(Fn,{}),{color:"#4caf50"}],[_n._l]:[(0,q.jsx)(Mn,{}),{color:"#2f7ed8"}]},Gn={value:0,delta:0,percent:0,direction:_n._l,date:""},Hn=t=>{let{refEl:e,isAdminMode:o,initialVm:n=Gn,crValueMoving:s}=t;const[r,i]=(0,x.J0)(n),[a,l,c]=(0,C.R)(),d=(0,x.Kr)((()=>(0,ot.sg)(n)),[n]),p=(0,x.Kr)((()=>t=>{const e=s(r,t);return e?(i(e),e):void 0}),[r]);(0,x.Yn)(e,(()=>({_updateDateTo:p})),[p]);const{value:u,delta:h,percent:m,direction:f}=r,[g,y]=(t=>Yn[t]||Yn.DF)(f),v={...Kn,...y};return(0,q.jsxs)("span",{style:Jn,children:[(0,q.jsx)(st.M_,{children:u}),g,(0,q.jsx)("span",{style:v,children:m}),(0,q.jsx)("span",{style:v,children:h}),(0,q.jsx)("span",{style:Zn}),(0,q.jsx)(zt.A,{className:"bt",onClick:l,children:(0,q.jsx)(st.Ll,{style:qn,children:d})}),g&&(0,q.jsx)(Vn,{isShow:a,isAdminMode:o,valueMoving:r,updateDateTo:p,onClose:c})]})},Qn={paddingLeft:16},Xn=t=>{let{value:e,strDate:o}=t;return(0,q.jsxs)(q.Fragment,{children:[e?(0,q.jsx)(st.M_,{style:Qn,children:e}):null,o?(0,q.jsx)(st.Ll,{style:Qn,children:(0,ot.R4)(o)}):null]})},ts="not-selected text-clip bt-left bt black",es="#777",os={stroke:es},ns=(0,b.Sf)("item-header"),ss=(0,b.zq)("popup-menu charts__menu-more"),rs={position:"relative",top:4,left:2},is={stroke:es,fill:es},as={position:"relative",top:2,margin:"0 6px 0 8px"},ls={width:125,padding:"4px 0 2px 4px"},cs={width:void 0,maxWidth:"calc(100% - 60px)"},ds=t=>{let{isMore:e,moreModel:o,onToggle:n}=t;const[s,r]=(0,et.ay)(n);return o?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(kn.A,{refEl:s,style:rs,svgStyle:is,onClick:n}),(0,q.jsx)(tt.A,{isShow:e,rootStyle:b.mL,className:ss,model:o,onClose:r})]}):null},ps=t=>{let{isOpen:e,onCheck:o,onUnCheck:n,itemCaption:s,itemValue:r,itemTime:i,onToggle:a,valueMoving:l,isAdminMode:c,crValueMoving:d,refVm:p,moreModel:u,onClose:h}=t;const m=(0,x.Bi)(),[f,g]=(0,Ct.A)(!1),y=(0,b.FG)(ls,!l&&cs),v=s.length>15?s:void 0;return(0,q.jsxs)("div",{className:ns,children:[(0,q.jsx)(ds,{isMore:f,moreModel:u,onToggle:g}),(0,q.jsx)(Tn.A,{style:as,color:jn.ui,labelId:m,onCheck:o,onUnCheck:n}),(0,q.jsx)(zt.A,{id:m,className:ts,style:y,title:v,onClick:a,children:s}),l?(0,q.jsx)(Hn,{refEl:p,isAdminMode:c,initialVm:l,crValueMoving:d}):(0,q.jsx)(Xn,{value:r,strDate:i}),(0,q.jsx)($n.P,{style:os,onClick:h})]})};var us=o(7071);const hs={display:"inline-block",padding:"0 6px"},ms={display:"inline-block",width:12,height:12,marginLeft:6,backgroundColor:"grey",border:"1px solid grey",borderRadius:"50%"},fs={borderWidth:2,fontWeight:"bold"},gs=t=>{let{item:e,onClickItem:o}=t;const{color:n,name:s,isVisible:r}=e??{},[i,a]=(0,Ct.A)(r),[l,c]=((t,e)=>{const[o,n]=t?[e,fs]:["grey"];return[{color:e,borderColor:o,...n},{backgroundColor:o,borderColor:o}]})(i,n);return(0,q.jsxs)(zt.A,{className:"bt-item",style:l,onClick:()=>{o(e),a()},children:[(0,q.jsx)("span",{style:{...ms,...c}}),(0,q.jsx)("span",{style:hs,children:s})]})},ys=(0,b.mg)(),xs={overflowY:"auto",height:250,paddingRight:4,marginLeft:-8,transform:"scaleX(-1)"},vs={height:"auto"},bs={transform:"scaleX(-1)"},Cs=(t,e)=>t?"Less: 12":"More: "+(e-12),Ss=t=>{let{isMore:e,legend:o,onClick:n}=t;const s=o.length;return s>12?(0,q.jsx)(zt.A,{className:"bt-ml",onClick:n,children:Cs(e,s)}):null},ws=(0,x.ph)((t=>{let{legend:e=[],onClickItem:o}=t;const[n,s]=(0,Ct.A)(!1),r=(0,x.hb)(((t,e)=>((t,e,o)=>(0,q.jsx)(gs,{item:t,onClickItem:o},t.name+e))(t,e,o)),[o]),i=n?e:e.slice(0,12),a=(0,b.FG)(xs,!n&&vs);return(0,q.jsx)("div",{className:ys,style:a,children:(0,q.jsxs)("div",{style:bs,children:[(0,q.jsx)(us.A,{items:i,crItem:r}),(0,q.jsx)(Ss,{isMore:n,legend:e,onClick:s})]})})})),As=ws,js=t=>{let{isShow:e,legend:o,onClickItem:n}=t;return o?(0,q.jsx)(Dt.A,{isShow:e,children:(0,q.jsx)(As,{legend:o,onClickItem:n})}):null},$s=Array.isArray,Ts=t=>{let{withoutAnimation:e,configs:o,idPropName:n="id",absComp:s,onLoaded:r,onWillUnLoaded:i}=t;return $s(a=o)&&a.length>0?(0,q.jsx)(q.Fragment,{children:o.map((t=>(0,q.jsx)(Dt.A,{isShow:!0,withoutAnimation:e,children:(0,q.jsx)(Bt,{config:t.config,absComp:s,onLoaded:r,onWillUnLoaded:i})},t[n])))}):null;var a};var ks=o(2019);const _s=t=>{let{item:e}=t;return(0,q.jsx)(ks.A,{...e})},Es="Nasdaq Data Link",Ds=t=>{let{linkId:e,caption:o=Es}=t;return e?(0,q.jsx)(ks.A,{href:`https://data.nasdaq.com/data/${e}`,caption:`${o} ${e}`}):null};var Is=o(9517);const Ls="https://fred.stlouisfed.org/",Ns=`${Ls}search?st=`,Os=`${Ls}series/`,Ms={display:"inline-block",width:32},Fs=()=>(0,q.jsx)("span",{style:Ms,children:" "}),Ws=t=>{let{item:e={}}=t;const{id:o="",article:n}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ks.A,{caption:"FRED Search",href:Ns+o}),(0,q.jsx)(Fs,{}),(0,q.jsx)(ks.A,{caption:"FRED Graph",href:Os+o}),(0,q.jsx)(Fs,{}),n&&(0,q.jsx)(ks.A,{caption:"FRED Article",href:n})]})},Rs={listStyle:"none"},Ps=(t,e)=>e,Bs=(0,x.ph)((t=>{let{items:e,crKey:o=Ps,crItem:n}=t;return(0,x.Ep)(e)?(0,q.jsx)("ul",{style:Rs,children:e.map(((t,e)=>(0,q.jsx)("li",{children:n(t)},o(t,e))))}):null})),Us=Bs,zs="Eurostat Data",Vs="https://ec.europa.eu/eurostat",Js=t=>`${Vs}/databrowser/view/${t}/default/table?lang=en`,Ks=t=>`${Vs}/data/database?node_code=${t}`,Zs=t=>{let{href:e,dataset:o}=t;const n=(t=>t?[{caption:`${zs} Browser`,href:Js(t)},{caption:`${zs}base Node`,href:Ks(t)}]:[])(o);return n.length>0?n:void 0},qs=t=>(0,q.jsx)(ks.A,{...t}),Ys=t=>{let{item:e}=t;return e?(0,q.jsx)(Us,{items:Zs(e),crItem:qs}):null},Gs={DF:_s,NDL:Ds,NASDAQ:Is.A,FRED:Ws,ES:Ys};var Hs=o(4246);const Qs={display:"inline-block"},Xs=t=>{let{style:e,caption:o,captionStyle:n,isHtml:s,text:r,textCn:i,textStyle:a}=t;return r?(0,q.jsxs)("div",{style:e,children:[o&&(0,q.jsx)("span",{style:n,children:o+":"}),s?(0,q.jsx)(Hs.A,{className:i,style:{...a,...Qs},str:r}):(0,q.jsx)("span",{className:i,style:a,children:r})]}):null},tr=`info__descr ${b.eT}`,er={position:"relative",padding:"34px 20px 0 8px"},or={left:286},nr={marginTop:4},sr={display:"inline-block",width:90,paddingRight:5,color:"#1b75bb",textAlign:"right",fontWeight:"bold"},rr={fontWeight:"bold",textTransform:"capitalize"},ir={lineHeight:1.6},ar={fontWeight:"bold"},lr=t=>{let{c:e,t:o,s:n}=t;return(0,q.jsx)(Xs,{style:n,caption:e,captionStyle:sr,textCn:b.eT,textStyle:rr,text:o})},cr=t=>{if(!t)return null;const e=Gs.NDL;return(0,q.jsx)(e,{linkId:t})},dr=(t,e)=>{const o=t?Gs[t]:void 0;return null!=o?(0,q.jsx)(o,{item:e}):null},pr=t=>{let{isShow:e,info:o,zhInfo:n,onClickChart:s}=t;const{name:r,toDate:i,fromDate:a,frequency:l,linkId:c,description:d}=o||{},{item:p,linkFn:u}=n||{},h=e?b.CQ:b.JS;return(0,q.jsxs)("div",{style:{...er,...h},children:[(0,q.jsx)(Vt,{style:or,caption:"Chart",onClick:s}),(0,q.jsx)(lr,{t:r}),(0,q.jsx)(lr,{c:"From Date",t:a}),(0,q.jsx)(lr,{c:"To Date",t:i,s:nr}),(0,q.jsx)(lr,{c:"Frequency",t:l}),cr(c),d&&(0,q.jsx)(po.A,{isClose:(m=d,!(m&&m.length<200)),caption:"Description",children:(0,q.jsx)(Xs,{style:ir,isHtml:!0,text:d,textCn:tr,textStyle:ar})}),dr(u,p)]});var m},ur=(t,e,o)=>{const n=(t||[]).reduce(((t,e)=>(t[e[o]]=e,t)),{});return e.reduce(((t,e)=>(t.push(n[e]),t)),[])},hr={marginLeft:8},mr={marginTop:6},fr=(0,$.WB)(),gr="btTitle",yr=(0,vt.A)((t=>{let{refEl:e,caption:o,config:n,onCloseItem:s,isAdminMode:r,onAddToWatch:i,onZoom:a,onCopy:l,onPasteTo:c,chartType:d,onSetActive:p,onShowConfigDialog:u,crValueMoving:h,onToTop:m}=t;const{zhConfig:f,valueMoving:g,info:y,zhMiniConfigs:v}=n||{},{dataSource:b,itemCaption:S,itemValue:w,itemTime:A,legend:j}=f||{},[$,T]=St(),[k,_]=(0,bt.A)(),[E,D]=(0,C.o)(),[I,L,N]=(0,C.o)(!0),O=!I,[M,F]=(0,Ct.A)(!0),[W,R]=(0,Ct.A)(),[P,B]=(0,Ct.A)(!0),[U]=(0,x.J0)((()=>S||o||"")),[z,V,J]=At(_,B),[K,Z]=wt(_,d,p),[Y,G]=Tt(_),[H]=Et(b),[Q,X,tt]=jt(),[et,ot]=$t(),nt=0===et.length,[st,rt,it,at]=(0,x.Kr)((()=>[t=>{_().zhToggleSeria(t.index)},()=>{N(),R(!1)},(t,e)=>h(_(),t,e),An(B,m,J)]),[]),lt=(0,x.Kr)((()=>ur(v,et,gr)),[v,et]);return(0,x.vJ)((()=>{const t=_();t&&t.zhUpdateSpacing(nt)}),[nt]),(0,x.Yn)(e,(()=>({compareTo:T,hideCaption:J,showCaption:V,reflowChart:t=>{const e=_();e&&e.zhReflowCharts(fr,t)}})),[]),(0,q.jsxs)("div",{className:"chart-item",children:[z&&(0,q.jsx)(ps,{isOpen:M,isAdminMode:r,itemCaption:U,itemValue:w,itemTime:A,valueMoving:g,moreModel:at,onCheck:K,onUnCheck:Z,onToggle:F,onClose:s,crValueMoving:it,refVm:$}),(0,q.jsxs)(Dt.A,{isShow:M,withoutAnimation:!0,style:hr,children:[I&&(0,q.jsx)(Dt.A,{isShow:P,withoutAnimation:!0,children:(0,q.jsx)(wn,{hasError:E,config:n,getChart:_,onMiniChart:ot,onAddMfi:X,onRemoveMfi:tt,onClickLegend:R,onAddToWatch:i,onClickInfo:rt,onCopy:l,onPasteTo:c,onZoom:a})}),(0,q.jsx)(Nt,{FallbackComp:(0,q.jsx)(Mt,{isShow:I,msg:"chart"}),onError:D,children:(0,q.jsx)(Dt.A,{isShow:I,withoutAnimation:!0,style:mr,children:(0,q.jsx)(Bt,{config:n,isShowAbs:nt,absComp:H,onLoaded:k})})}),(0,q.jsx)(pr,{isShow:O,info:y,zhInfo:f,onClickChart:L}),(0,q.jsx)(js,{isShow:W,legend:j,onClickItem:st}),(0,q.jsx)(Ts,{withoutAnimation:!0,configs:Q,absComp:H,onLoaded:Y,onWillUnLoaded:G}),(0,q.jsx)(Ts,{withoutAnimation:!0,configs:lt,idPropName:gr,absComp:H,onLoaded:Y,onWillUnLoaded:G})]})]})}));var xr=o(5338),vr=o(784),br=o(6106);const Cr=t=>{const[e,o]=(0,br.yy)(t);let n=[],s=[];for(let t=0;tvoid 0===t?null:t,wr=(t,e)=>{const o=(0,br.$w)(t),[n,s]=Cr(t),r=(0,br.S$)(t),i=(0,br.SW)(t),{index:a}=(0,br.qn)(r,n[0]),{index:l}=(0,br.qn)(r,s[0]),c=l[e];return(0,vr.Et)(c)?((t,e,o,n,s)=>{const r=[],i=[];let a;return(0,vr.Co)(o).forEach((l=>{a=n*o[l]+s,r.push(l),i.push({value:Sr(t[a]),status:Sr(e[a])})})),[r,i]})(o,i,a,s[1],c):[[],[]]},Ar=(t,e)=>{const o=(0,br.$w)(t),n=(0,br.S$)(t),{index:s}=(0,br.qn)(n,"geo"),r=s[e],i=(t=>Cr(t)[1][1])(t),{index:a}=(0,br.qn)(n,"time"),l=[];for(let t=i*r;t-1&&!(0,vr.Et)(l[d]);d--);return{data:l.slice(c,d+1),date:{id:(0,vr.Co)(a).slice(c,d+1)}}},jr=()=>!0,$r=function(t,e){let o=t;const n=e||jr;return function(t){if(void 0===t)return o;n(t)&&(o=t)}},Tr=function(t){this.location=$r(t),this.label=$r(),this.updateLabel=t=>{const e=t.map((t=>{return e=this.location(),o=t.location(),e.map(((t,e)=>Math.pow(t-o[e],2))).reduce(((t,e)=>t+e),0);var e,o}));this.label(e.reduce(((t,e,o)=>t[0]{const e=t.filter((t=>t.label()==this.label()));e.length>0&&this.location((t=>{const e=t[0].location().map((()=>0));return t.map((t=>t.location())).reduce(((t,e)=>((t,e)=>t.map(((t,o)=>t+e[o])))(t,e)),e).map((e=>e/t.length))})(e))}},_r=(t,e)=>t.centroid[0]-e.centroid[0],Er=(t,e)=>t[0]-e[0],Dr=t=>t%1==0&t>0,Ir={k:$r(void 0,Dr),iterations:$r(1e3,Dr),data:$r([],(t=>{const e=t[0].length;return t.map((t=>t.length==e)).reduce(((t,e)=>t&e),!0)})),clusters(){const t=function(t,e){const o=e.k||Math.round(Math.sqrt(t.length/2)),n=e.iterations,s=t.map((t=>new Tr(t))),r=[];let i,a;for(i=0;i{t.updateLabel(r)})),r.forEach((t=>{t.updateLocation(s)}));return{points:s,centroids:r}}(this.data(),{k:this.k(),iterations:this.iterations()}),e=t.points;return t.centroids.map((t=>({centroid:t.location(),points:e.reduce(((e,o)=>(o.label()==t.label()&&e.push(o.location()),e)),[])})))},unarySortedClusters(){return this.clusters().sort(_r).map((t=>(t.points.sort(Er),t)))},crUnarySortedCluster(t,e,o){return void 0===t&&(t=[]),void 0===e&&(e=6),void 0===o&&(o=100),this.k(e),this.iterations(o),this.data(t),this.unarySortedClusters()}};var Lr=o(5672),Nr=o(983);const{SparkView:Or,Line:Mr,Spot:Fr,MaxLabel:Wr,MinLabel:Rr}=Nr.A,Pr="#8bc34a",Br="#f44336",Ur={"-1":Br,0:"black",1:Pr},zr={position:"relative",padding:3,marginBottom:5,lineHeight:1.8,opacity:.7},Vr={position:"absolute",top:4,right:8,fontSize:"18px",fontWeight:"bold",cursor:"pointer"},Jr={padding:3,cursor:"pointer"},Kr={display:"inline-block",width:30},Zr={display:"inline-block",float:"right"},qr=t=>{let{color:e,from:o,to:n,onClick:s}=t;const r=(0,S.Ly)(s);return(0,q.jsxs)("p",{style:{...zr,background:e},children:[(0,q.jsxs)("span",{children:[o," – ",n]}),(0,q.jsx)("span",{tabIndex:"0",role:"button",style:Vr,onClick:s,onKeyDown:r,children:"*"})]})},Yr=t=>{let{title:e,value:o,status:n,onClick:s}=t;const r=(0,S.Ly)(s),i=n?`${o} (${n})`:o;return(0,q.jsxs)("div",{tabIndex:"0",role:"button",style:Jr,onClick:s,onKeyDown:r,children:[(0,q.jsx)("span",{style:Kr,children:e}),(0,q.jsx)("span",{style:Zr,children:i})]})},Gr=t=>{let{point:e,color:o,index:n,isShowRange:s}=t;const r=(0,x.li)(e.seria.data||[]),i=(0,x.li)(r.current.length-1),[a,l]=(0,Ct.A)(n<3);return(0,q.jsxs)("div",{children:[(0,q.jsx)(Yr,{title:e.id,value:e[0],status:e.status,onClick:l}),(0,q.jsx)(Dt.A,{isShow:a,children:(0,q.jsxs)(Or,{height:32,width:140,svgHeight:32,svgWidth:140,data:r.current,margin:3,children:[s?(0,q.jsx)(Wr,{color:Pr,fontSize:14}):(0,q.jsx)("span",{}),s?(0,q.jsx)(Rr,{color:Br,fontSize:14}):(0,q.jsx)("span",{}),(0,q.jsx)(Mr,{color:o}),(0,q.jsx)(Fr,{pointIndex:i.current,size:3,spotColors:Ur})]})})]})},Hr=t=>{let{cluster:e,color:o,isShowRange:n}=t;const s=e.points||[];return(0,q.jsx)("div",{children:s.map(((t,e)=>(0,q.jsx)(Gr,{point:t,color:o,index:e,isShowRange:n},t.id)))})},Qr=t=>{let{cluster:e,color:o,from:n,to:s}=t;const[r,i]=(0,Ct.A)(!1);return(0,q.jsxs)("div",{children:[(0,q.jsx)(qr,{color:o,from:n,to:s,onClick:i}),(0,q.jsx)(Hr,{cluster:e,color:o,isShowRange:r})]})},Xr=["#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b","#74c476"],ti=Array.isArray,ei=Object.assign,oi=t=>document.createElement(t),ni=t=>Promise.resolve(t),si=(t,e,o)=>{const n=[];let s=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;if(t.forEach(((t,i)=>{const a=((t,e)=>{if(ti(t))for(let o=0;ol&&(s=l),r({color:"green",fillColor:Xr[t.properties.cluster],weight:1,fillOpacity:.7,opacity:.65}),ii=function(t,e,o,n){void 0===e&&(e=""),void 0===o&&(o="");const s=oi(t);return s.className=e,s.style.cssText=o,n&&(s.id=n),s},ai=(t,e)=>ei(t.control(),{onAdd(t){return this.idEl=e+"_info-control",this.divEl=ii("div","control-info","",this.idEl),this.divEl},_getRootInfo(){var t;return this._rootInfo||(this._rootInfo=(0,xr.H)((t=this.idEl,document.getElementById(t)))),this._rootInfo},renderElement(t){this._getRootInfo().render(t)},update(t){t&&this.renderElement((t=>{let{label:e,value:o}=t;return(0,q.jsxs)("p",{children:[(0,q.jsxs)("span",{children:[e,": "]}),(0,q.jsx)("span",{children:o||"unknown"})]})})(t))},updateCluster(t,e,o,n){var s;t&&this.renderElement((s={cluster:t,color:e,from:o,to:n},(0,q.jsx)(Qr,{...s})))}}),li=(t,e,o,n,s)=>{const r=n.control({position:"bottomleft"});return r.onAdd=n=>{const r=ii("div","control-grade");let i,a;return i=(0,oe.Mg)(t),o.forEach(((t,n)=>{a=(0,oe.Mg)(((t,e,o)=>{if(t.length-1===e)return o;const n=t?.[e]?.points??[[0]],s=t?.[e+1].points??[[0]],r=n[n.length-1][0];return r+((s[0]?s[0][0]:r)-r)/2})(o,n,e)),r.appendChild(((t,e,o,n,s)=>{const r=n?.points?.length??0,i=ii("p","",`opacity: 0.7; background: ${t}; padding: 5px 6px; cursor: pointer;`);return i.addEventListener("click",(function(r){s.updateCluster(n,t,e,o)})),i.innerHTML=`${(0,vr.Ax)(e)}–${(0,vr.Ax)(o)}\n ${(0,vr.Ax)(r)}`,i})(Xr[n],i,a,t,s)),i=a})),r.appendChild((()=>{const t=ii("div");return t.innerHTML='

No Data

\n

Source: Eurostat

',t})()),r},r},ci=(t,e)=>{const o=e.target;t.update(o.feature.properties)},di=(t,e,o)=>{o.on({mouseover:ci.bind(null,t)})},pi=t=>{const{jsonCube:e,geoJson:o,map:n,L:s,mapId:r,time:i}=t,[a,l]=wr(e,i),{minValue:c,maxValue:d,points:p}=si(l,a,o),u=((t,e,o)=>t.map((t=>(t.seria=Ar(e,t.id),t))))(p,e),h=Ir.crUnarySortedCluster(u,6,100);((t,e,o)=>{t.features.forEach((t=>{const n=t.properties,s=n.id;if(s){const t=e[s];n.cluster=void 0===t?o:t}else n.cluster=o}))})(o,(t=>{const e={};return t.forEach(((t,o)=>{for(const n of t.points)e[n.id]=o})),e})(h),6);const m=ai(s,r);if(m.addTo(n),s.geoJSON(o,{style:ri,onEachFeature:di.bind(null,m)}).addTo(n),u.length>1){li(c,d,h,s,m).addTo(n)}return t},ui={hmUrlGeoJson:{},L:void 0,mapOption:{doubleClickZoom:!1,zoomSnap:.5,minZoom:1,maxZoom:4},getLeaflet(){return this.L?ni(this.L):o.e(334).then(o.t.bind(o,3481,23)).then((t=>this.L=t))},getGeoJson(t){const e=this.hmUrlGeoJson[t];return e?ni((t=>{const e=(0,Lr.A)(!0,{},t);return e.features.forEach((t=>{t.properties.value=null})),e})(e)):fetch(t).then((t=>t.json())).then((e=>this.hmUrlGeoJson[t]=e))},draw(t){return this._loadCss().then((()=>this._draw(t)))},_loadCss(){return this._isCss?ni():new Promise(((t,e)=>{const o=ei(oi("link"),{rel:"stylesheet",href:"css/leaflet.css",onload:()=>{this._isCss=!0,t()},onerror:()=>{o.remove(),e()}}),{head:n}=document,{childNodes:s}=n;n.insertBefore(o,s[s.length-1].nextSibling)}))},_draw(t){let{id:e,jsonCube:o,zhMapSlice:n,time:s}=t;return this.getLeaflet().then((t=>{const r=t.map(e,this.mapOption).setView([58,10],3);return t.tileLayer("",{id:e+"_tile"}).addTo(r),{jsonCube:o,zhMapSlice:n,time:s,L:t,map:r,mapId:e}})).then((t=>this.getGeoJson("data/geo/eu-stat.geo.json").then((e=>(t.geoJson=e,t))))).then((t=>ni(pi(t))))}};var hi=o(3375);const mi=(0,b.Sf)(),fi={position:"relative",height:"auto",width:"100%",padding:"6px 42px 6px 10px"},gi={width:"75%",padding:"4px 2px 2px 0"},yi=t=>{let{isOpen:e,style:o,captionStyle:n,caption:s="",title:r,children:i,onClick:a,onClose:l}=t;const c=((t,e)=>t||e.length>45?e:void 0)(r,s);return(0,q.jsxs)("div",{className:mi,style:{...fi,...o},children:[(0,q.jsx)(zt.A,{className:ts,style:{...gi,...n},title:c,onClick:a,children:s}),i,(0,q.jsx)($n.P,{style:os,onClick:l})]})},xi={position:"relative",margin:"0 12px 10px 0"},vi={display:"inline-block",color:"#fdb316",paddingLeft:16,fontWeight:"bold"},bi={position:"relative",height:30,backgroundColor:"transparent",zIndex:2},Ci={height:400},Si={margin:"64px auto 0"},wi={display:"block"},Ai={display:"none"},ji={paddingLeft:12},$i=()=>(0,q.jsx)("span",{className:"err-msg",style:ji,children:"Error during loading map."}),Ti=t=>{let{isShow:e,onClick:o}=t;return e?(0,q.jsx)("div",{style:bi,children:(0,q.jsx)(Vt,{caption:"Info",onClick:o})}):null},ki=t=>`map_${t}`,_i=t=>{let{caption:e,config:o,onCloseItem:n}=t;const[s,r]=(0,x.J0)({isLoading:!0,time:""}),{isLoading:i,time:a,isErr:l}=s,[c,d]=(0,Ct.A)(!0),[p,u,h]=(0,C.o)();(0,x.vJ)((()=>{const{json:t,zhMapSlice:n,zhDialog:s}=o,{time:i}=s||{};ui.draw({id:ki(e),jsonCube:t,zhMapSlice:n,time:i}).then((t=>{let{time:e}=t;r({isLoading:!1,time:e})})).catch((t=>{r({isLoading:!1,isErr:!0})}))}),[]);const m=ki(e),{zhDialog:f,info:g}=o,{itemCaption:y}=f||{},v=p?Ai:wi;return(0,q.jsxs)("div",{style:xi,children:[(0,q.jsx)(yi,{isOpen:c,caption:y,onClick:d,onClose:n,children:(0,q.jsx)("span",{style:vi,children:a})}),(0,q.jsxs)(Dt.A,{isShow:c,children:[(0,q.jsx)(Ti,{isShow:!p,onClick:u}),(0,q.jsxs)("div",{id:m,style:{...Ci,...v},children:[i&&(0,q.jsx)(hi.yX,{style:Si}),l&&(0,q.jsx)($i,{})]}),(0,q.jsx)(pr,{isShow:p,info:g,onClickChart:h})]})]})},Ei=Number.isNaN,Di=(t,e)=>Ei(t)?Ei(e)?0:1:Ei(e)?-1:2,Ii=(t,e)=>(o,n)=>{const s=o[e],r=n[e];return"number"==typeof s||s===t?((t,e)=>{const o=Di(t,e);return 2!==o?o:te?-1:0})(s,r):((t,e)=>te?-1:0)(s,r)},Li={position:"relative"},Ni={width:"100%",borderCollapse:"collapse",borderSpacing:0},Oi={lineHeight:1.8},Mi={borderTop:"3px solid transparent",borderBottom:"3px solid transparent",pointerEvents:"auto",userSelect:"none",cursor:"pointer"},Fi={position:"relative",top:-2},Wi={borderTop:"3px solid #f1d600"},Ri={borderBottom:"3px solid #f1d600"},Pi={position:"relative",top:2,marginRight:4},Bi={position:"absolute",top:36,left:0,zIndex:1010,backgroundColor:"inherit",padding:"4px 12px 6px",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0 0 0 5px"},Ui={padding:6,verticalAlign:"middle",lineHeight:1.4,whiteSpace:"nowrap",borderTop:0},zi={color:"#4caf50",fontWeight:"bold"},Vi={color:"#f44336",fontWeight:"bold"},Ji=t=>{const[e,o]=(0,x.J0)({_rows:t||[]}),n=(0,x.hb)((t=>{o((e=>{let{_rows:o,sortBy:n,sortTo:s}=e;const r=Ii("―",t);return t===n&&"UP"===s?(o=o.sort(((t,e)=>(o,n)=>{const s=Di(o[t],n[t]);return 2!==s?s:e(n,o)})(t,r)),s="DOWN"):(o=o.sort(r),s="UP"),{_rows:o,sortTo:s,sortBy:t}}))}),[]);return[e,n]};var Ki=o(6223);const Zi={paddingLeft:0,paddingBottom:4},qi={lineHeight:1.5},Yi=(t,e,o)=>(0,q.jsx)(Ki.A,{style:Zi,color:e,caption:t.name,value:!t.isHide,onToggle:o},t.name),Gi=t=>{let{item:e,color:o,onToggle:n}=t;return(0,q.jsx)(po.A,{className:b.Qd,childStyle:qi,caption:e.caption,children:(0,x.lZ)(e.items,(t=>Yi(t,o,(()=>n(t.id)))))})},Hi=t=>{let{headers:e,onToggle:o}=t;const[n,...s]=e,r=(0,b.Jq)();return(0,x.lZ)(s,((t,e)=>(0,x.Ep)(t.items)?(0,q.jsx)(Gi,{item:t,color:r,onToggle:o},t.caption):Yi(t,r,(()=>o(t.id||e+1)))))},Qi=t=>{let{isShow:e,isGridLine:o,style:n,headers:s,onToggleGrid:r,onToggle:i,onClose:a}=t;return(0,q.jsxs)(nt.A,{style:n,isShow:e,onClose:a,children:[(0,q.jsx)(Ki.A,{style:Zi,color:(0,b.Jq)(),caption:"withStripLines",value:o,onToggle:r}),(0,q.jsx)("hr",{style:{borderColor:(0,b.Jq)(),marginTop:2,marginBottom:2}}),(0,q.jsx)(Hi,{headers:s,onToggle:i})]})},Xi=t=>Number.isNaN(t)||null==t,ta=(t,e)=>`${t}: activate to sort column ${e}`,ea=t=>{let{v:e,isR:o}=t;return o?Xi(e)?{color:(0,b.Jq)(),fontWeight:"bold"}:e>0?zi:Vi:void 0},oa={UP:"UP",DOWN:"DOWN",ASC:"ascending",DESC:"descending"},na=t=>{let{name:e,onMenuMore:o}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(kn.A,{style:Pi,svgStyle:{fill:(0,b.Jq)(),stroke:(0,b.Jq)()},onClick:o}),(0,q.jsx)("span",{style:Fi,children:e})]})},sa=(t,e)=>{const{gridId:o,thMoreStyle:n,headers:s,sortBy:r,sortTo:i,onSort:a,onMenuMore:l}=t;return s.map(((t,s)=>{if(t.isHide)return null;const{name:c,pn:d}=t,{style:p,ariaSort:u,ariaLabel:h}=(t=>{let e,o,n,{C:s,pn:r,name:i,sortBy:a,sortTo:l}=t;return r===a?l===s.UP?(e=Wi,o=s.DESC,n=ta(i,s.ASC)):(e=Ri,o=s.ASC,n=ta(i,s.DESC)):n=ta(i,s.ASC),{style:e,ariaSort:o,ariaLabel:n}})({C:oa,pn:d,name:c,sortBy:r,sortTo:i}),m=0===s?(0,q.jsx)(na,{name:c,onMenuMore:l}):c,f=0===s?{...n,...p}:p;return(0,q.jsx)("th",{style:{...Mi,...f},rowSpan:"1",colSpan:"1",tabIndex:"0","arial-controls":o,"aria-label":h,"aria-sort":u,onClick:()=>a(d),onKeyDown:t=>e(t,d),children:m},t.name)})).filter(Boolean)},ra=t=>(0,q.jsx)("thead",{className:b.eT,style:Oi,children:(0,q.jsx)("tr",{children:sa(t,((e,o)=>{(0,S.P0)(e)&&t?.onSort(o)}))})}),ia=(t,e,o,n)=>{const{pn:s,isHref:r}=e,i=(t=>{let{h:e,v:o,fn:n}=t;return e.isR&&Xi(o)?"―":e.isF&&"function"==typeof n?n(o):o})({h:e,v:t[s],fn:e.fn||o});return r?((t,e,o)=>{const n=(0,x.fp)(o)?o(t,e):void 0;return(0,q.jsx)("a",{className:"native-link",href:(0,x.jd)(n),children:e})})(t.id,i,n):i},aa=t=>{const{headers:e,rows:o,tableFn:n}=t,{numberFormat:s,valueToHref:r}=n||{};return o.map((t=>{const o=t.id,n=e.map(((e,n)=>{if(e.isHide)return null;const i=`${o}_${n}`,a=((t,e)=>{const{pn:o,style:n,isR:s}=e,r=t[o];return{...n,...ea({v:r,isR:s}),...(t.style||{})[o]}})(t,e),l=ia(t,e,s,r);return(0,q.jsx)("td",{style:{...Ui,...a},children:l},i)})).filter(Boolean);return(0,q.jsx)("tr",{role:"row",children:n},o)}))},la=t=>(0,q.jsx)("tbody",{className:b.eT,children:aa(t)}),ca=t=>{let{className:e,gridId:o,thMoreStyle:n,rows:s,headers:r,flatHeaders:i,tableFn:a}=t;const[l,c]=(0,Ct.A)(!0),[d,p]=(()=>{const[t,e]=(0,x.J0)(!1);return[t,(0,x.hb)((t=>{t.stopPropagation(),e((t=>!t))}),[])]})(),[u,h]=(t=>{const[e,o]=(0,x.J0)(t||[]),n=(0,x.hb)((t=>{o((e=>(e[t].isHide=!e[t].isHide,[...e])))}),[]);return[e,n]})(i||r),[{_rows:m,sortBy:f,sortTo:g},y]=Ji(s),v=(0,b.PX)([l,"grid"],e);return(0,q.jsxs)("div",{style:Li,children:[(0,q.jsx)(Qi,{style:Bi,isShow:d,onClose:p,isGridLine:l,onToggleGrid:c,headers:r,onToggle:h}),(0,q.jsxs)("table",{role:"grid",id:o,className:v,style:Ni,children:[(0,q.jsx)(ra,{gridId:o,thMoreStyle:n,headers:u,sortBy:f,sortTo:g,onSort:y,onMenuMore:p}),(0,q.jsx)(la,{headers:u,rows:m,tableFn:a})]})]})},da={paddingBottom:8},pa={position:"sticky",top:-1,zIndex:1,willChange:"transform"},ua={width:"100%"},ha={padding:"8px 0"},ma={padding:"2px 0 0 12px",color:"#909090",fontSize:"11px"},fa=t=>{let{isInitialClose:e,thMoreStyle:o,config:n,onCloseItem:s}=t;const[r,i]=(0,Ct.A)(!e),{id:a,title:l,headers:c,flatHeaders:d,rows:p,tableFn:u,dataSource:h,dsStyle:m}=n,f=`tb_${a}`;return(0,q.jsxs)("div",{style:da,children:[(0,q.jsx)(yi,{isOpen:r,style:pa,caption:l,captionStyle:ua,onClick:i,onClose:s}),(0,q.jsxs)(Dt.A,{isShow:r,style:ha,children:[(0,q.jsx)(ca,{gridId:f,thMoreStyle:o,headers:c,flatHeaders:d,rows:p,tableFn:u}),h&&(0,q.jsx)("div",{style:{...ma,...m},children:h})]})]})},ga={paddingLeft:12,textAlign:"left"},ya=["m","g","l"],xa={display:"flex",flexFlow:"wrap",lineHeight:2},va={display:"inline-block",padding:"0 8px",fontWeight:600,whiteSpace:"nowrap"},ba=t=>(0,q.jsx)("span",{style:va,children:t},t),Ca=t=>{let{tokens:e}=t;return(0,q.jsx)("div",{style:xa,children:(0,q.jsx)(us.A,{items:e,crItem:ba})})},Sa=t=>{let{caption:e,tokens:o}=t;return e?(0,q.jsx)(po.A,{isClose:!1,caption:e,children:(0,q.jsx)(Ca,{tokens:o})}):(0,q.jsx)(Ca,{tokens:o})},wa=Array.isArray,Aa={marginBottom:10},ja={height:33},$a={width:"auto"},Ta={padding:"8px 8px 0 8px"},ka={padding:"0 4px",lineHeight:1.8},_a="Decription",Ea=t=>{let{href:e,caption:o}=t;return(0,q.jsx)(ks.A,{caption:(0,x.MZ)(": ",o,e),href:e})},Da=t=>{let{style:e,caption:o=_a,descr:n,links:s}=t;return n?(0,q.jsxs)(po.A,{caption:o,children:[(0,q.jsx)("div",{style:{...ka,...e},children:n}),(0,q.jsx)(Us,{items:s,crItem:Ea})]}):null},Ia=(t,e)=>{const o=t.caption||e;return wa(t.tokens)?(0,q.jsx)(Sa,{...t},o):(0,q.jsx)(Da,{...t},o)},La={marginBottom:8},Na={padding:"8px 10px 0 0"},Oa={paddingLeft:16},Ma={position:"relative",color:"gray",paddingLeft:16,lineHeight:1.8},Fa={color:"gray",paddingLeft:16},Wa={top:4},Ra=t=>{let{item:e}=t;const[o,n]=(0,Ct.A)(!0);if(!o)return null;const{user:s,date:r,link:i,text:a,retweet:l,like:c}=e;return(0,q.jsxs)("div",{className:"twit",children:[(0,q.jsxs)("div",{style:Ma,children:[(0,q.jsx)("span",{children:`${s} `}),(0,q.jsx)("span",{children:r}),(0,q.jsx)($n.P,{style:Wa,onClick:n})]}),(0,q.jsx)("a",{href:(0,x.jd)(i),children:(0,q.jsx)("div",{style:Oa,children:a})}),(0,q.jsxs)("div",{style:Fa,children:[(0,q.jsx)("span",{children:`Retweets ${l} `}),(0,q.jsx)("span",{children:`Likes ${c}`})]})]})},Pa=t=>(0,q.jsx)(Ra,{item:t},t.id),Ba=(t,e)=>{const{zhConfig:o}=t,{id:n,key:s}=o||{};return[n||`Id:${e}`,s||n||(0,mt.f7)()]},Ua=(t,e)=>()=>(0,ft.hM)({caption:t,config:e}),za=t=>e=>{let{config:o={},props:n}=e;return(0,q.jsx)(t,{config:o,...n},o.id)},Va=(0,ht.v)({[xt.uF]:t=>{let{config:e,index:o,chartType:n,props:s}=t;const[r,i]=Ba(e,o);return(0,q.jsx)(_i,{chartType:n,caption:r,config:e,...s},i)},[xt.y_]:za(fa),[xt.OD]:za((t=>{let{config:e,onCloseItem:o}=t;return ya.map((t=>(0,q.jsx)(fa,{isInitialClose:!0,thMoreStyle:ga,config:e[t],onCloseItem:o},t)))})),[xt.eB]:za((t=>{let{config:e,onCloseItem:o}=t;const[n,s]=(0,Ct.A)(!0),{caption:r,items:i}=e||{};return(0,q.jsxs)("div",{style:Aa,children:[(0,q.jsx)(yi,{style:ja,captionStyle:$a,isOpen:n,caption:r,onClick:s,onClose:o}),(0,q.jsx)(Dt.A,{style:Ta,isShow:n,children:(0,q.jsx)(us.A,{items:i,crItem:Ia})})]})})),[xt.sW]:za((t=>{let{config:e,onCloseItem:o}=t;const{title:n,items:s}=e,[r,i]=(0,Ct.A)(!0);return(0,q.jsxs)("div",{style:La,children:[(0,q.jsx)(yi,{isOpen:r,caption:n,onClick:i,onClose:o}),(0,q.jsx)(Dt.A,{isShow:r,style:Na,children:(0,q.jsx)(us.A,{items:s,crItem:Pa})})]})}))},(t=>{let{config:e,index:o,chartType:n,props:s}=t;const[r,i]=Ba(e,o);return(0,q.jsx)(yr,{chartType:n,caption:r,config:e,onSetActive:m.k5,onAddToWatch:Ua(r,e),...s,crValueMoving:mt.P0,onToTop:(0,x.Jr)(Ol,n,r),onCopy:yt,onPasteTo:t=>(0,ft.SZ)({toChart:t,fromChart:gt}),onZoom:ft.Lm},i)})),Ja=t=>{let{refChartFn:e,configs:o,chartType:n,browserType:s,isAdminMode:r,onCloseItem:i}=t;return(0,q.jsx)("div",{children:(0,x.lZ)(o,((t,o)=>{const{zhConfig:a,zhCompType:l}=t,{id:c}=a||{},d=l?void 0:(0,x.Jr)(e,c);return Va(((p={config:t,index:o,chartType:n,props:{isAdminMode:r,refEl:d,onCloseItem:()=>{i(n,s,c),d&&d()}}}).config||{}).zhCompType)(p);var p}))})},Ka=(0,b.nV)("scroll-items"),Za={paddingTop:2,paddingLeft:2},qa={position:"relative",top:-1},Ya={paddingTop:7},Ga={position:"relative",top:-3},Ha=(t,e,o)=>{const n=(0,x.hC)(t);return(n&&parseInt(n.width,10)||e)>10*o.length+155},Qa=()=>{},Xa=t=>{const{chartType:e,browserType:o,contWidth:n,caption:s,isAdminMode:r,onCloseContainer:i,onCloseItem:a,onSetActive:l=Qa,updateMovingValues:c}=t,d=r(),p=(0,x.li)(),[u,h]=(0,x.J0)((()=>({configs:_l(e)}))),{configs:m}=u,[f,g,y]=(0,C.o)(!0),b=(0,x.hb)((()=>{i(),y()}),[]),w=(0,S.iw)(b),[A,$,k]=(0,C.o)(),[_,E,D]=(0,C.o)(),[I,L,N]=T(n),[W,U]=j(),[z,V,J,K]=O(d,t,L,N,10,W,$),Z=F(W,c),[Y,G]=M(e,o,l);Al((t=>{t&&((t,e)=>t===e||t&&t.chartType===e)(t,e)&&(t.isShow?(((0,x.ZC)(p)||{}).scrollTop=0,h({configs:t.configs}),g()):b())}));const[H,Q]=R(f);return(0,q.jsxs)("div",{...(0,v.g3)(f),ref:z,className:Q,style:{...I,...H},onKeyDown:w,children:[(0,q.jsx)(tt.A,{isShow:_,className:"popup-menu charts__menu-more el-b",model:J,onClose:D}),d&&(0,q.jsx)(ut,{isShow:A,onClose:k,onCompareTo:Z}),(0,q.jsx)(P.A,{style:Za,onMore:E,onCheck:Y,onUnCheck:G,caption:s,captionStyle:Ya,svgMoreStyle:qa,onClose:b,children:(0,q.jsx)(X,{refEl:V,elementRef:z,isBts:Ha(z,L,s),style:Ga,initWidth:L,minWidth:N,maxWidth:1200,step:10,onResizeAfter:K})}),(0,q.jsx)(B.A,{refEl:p,className:Ka,children:(0,q.jsx)(Ja,{refChartFn:U,isAdminMode:r,configs:m,chartType:e,browserType:o,onCloseItem:a})})]})};var tl=o(9466);const el=(t,e)=>{let o=t.contFullCaption||y.A[e].contFullCaption;if(o)return o;const{contCaption:n,dialogCaption:r,menuTitle:i,dialogProps:a}=t,{ds:l,dataSource:c}=a||{};return o=(0,f.O8)(n)?n:r||i||"Item Container",(0,s.MZ)(": ",l||c,o)},ol=t=>{let{browserType:e,dialogConf:o}=t;const{type:n,chartContainerComp:s,contWidth:r}=o||{},i=n||y.A[e].chartContainerType,a=s||Xa;return(0,q.jsx)(a,{chartType:i,caption:el(o,e),browserType:e,contWidth:r,isAdminMode:tl.hf,onSetActive:(0,g.J)(l.iu,i,e),onCloseContainer:(0,g.J)(h.CM,i,e),onSortBy:(0,g.J)(Kl,i),updateMovingValues:(0,g.J)(Jl,i),onCloseItem:Vl,onRemoveAll:(0,g.J)(Zl,i,e)},i)};var nl=o(7343);const sl=String(Number.MIN_SAFE_INTEGER),rl=t=>(t||{}).valueMoving||{},il=(t,e)=>(0,Gt.default)(rl(t)[e]||sl),al=(t,e)=>{const o=il(t,e),{direction:n}=rl(t);return n===_n.sW?o.times(-1):o},ll=t=>{const e=-1!==t.indexOf("Abs")?al:il;return(o,n)=>{const s=e(o,t),r=e(n,t);return s.gt(r)?1:r.gt(s)?-1:0}},cl=(t,e,o)=>{t[e]||(t[e]={chartType:e,configs:o?[o]:[],isShow:!0})},dl=t=>{const e=(0,m.jE)();e&&((t,e)=>{let{seriaType:o}=e;return"DOT_SET"===o&&(0,nl.Ep)(t)&&"scatter"===t[0].type&&2===t.length})(e.series,t)&&(0,h.BK)(u.XT,{chart:e})},pl=t=>{const{alertItemId:e,value:o}=t;t.alertItemId=(0,nl.O8)(e)?e:(0,nl.O8)(o)?o:void 0};var ul=o(2301),hl=o(1579),ml=o(506);const fl=Object.assign,gl=t=>(t=>{let{apiKey:e,loadId:o,isKeyFeature:s,isPremium:r}=t;return e?"":(0,tl.l$)(o)?(0,n.oV)((0,tl.pU)(o)):s?n.u1:r?n.tS:""})(t)||(t=>{let{proxy:e,loadId:o}=t;return(0,tl.ef)(o)&&!e?(0,n.$d)((0,tl.pU)(o)):""})(t),yl=t=>{(t=>{const{chartType:e,browserType:o}=t,{dialogProps:n}=(0,hl.Mv)(o,e)||{},{dfProps:s}=n||{};fl(t,n,s,{subtitle:"Loaded from URL Query"})})(t),(t=>{const{fromDate:e,nInitFromDate:o}=t;e||(t.fromDate=o?(0,ot.vC)(o):(0,ot.vC)(2))})(t)},[xl,vl]=(0,nl.Bu)("msItemLoaded"),[bl,Cl]=(0,nl.Bu)("msItemInit"),Sl=(0,nl.Nv)((()=>({...xl(),...bl()}))),[wl]=(0,nl.iC)(Sl),Al=(0,nl.jo)(Sl,vl),jl=(0,nl.jo)(Sl,Cl),$l=t=>{wl(xl({...t}))},Tl=t=>{wl(bl({Comp:t}))},kl={},_l=t=>kl[t].configs,El=t=>{(t=>{const e=(0,l.KG)();e&&(t.chartType=e.chartType,t.browserType=e.browserType)})(t);const{chartType:e,key:o}=t;return((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e);if(!n)return!1;const r=s.length;let i=0;for(;i{Il=!1},Nl=t=>{(0,ml.Ix)(),Ll(),pl(t),(0,h.K$)(t),(t=>{let{alertCaption:e,alertItemId:o,alertDescr:n}=t;r((0,s.MZ)(": ",e,o)),r(n)})(t)},Ol=(t,e)=>{const o=((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e),r=s.find(p(o));if(r){const t=s.filter(d(o));n.configs=[r,...t]}return n})(kl,t,e);$l(o)},Ml=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});const o=(0,i.Q7)(e),{isLoadMeta:s}=e,r=s?(t=>t+"_Meta")(o):o,a=Il&&r===Dl,l=(0,m.i8)();((t,e,o)=>{const{loadId:n}=t;fl(t,e,o),(0,tl.xo)(t,n)})(e,t,{key:r,_isTs:l});const c=gl(e)||(s&&a?n.BH:a?n.f0:!l&&El(e)?n.j6:"");return!c||(((t,e)=>{if((0,n.SE)(t,e),e===n.j6)return pl(t),(0,h.K$)(t),Ol(t.chartType,t.key),void((0,nl.fp)(t.onFailed)&&t.onFailed());Nl(t),(0,nl.fp)(t.onCancel)&&t.onCancel()})(e,c),!1)},Fl=(t,e)=>{const{chartType:o,browserType:n,dialogConf:s,limitRemaining:r,key:i}=t;if(El(kl))return;const a=s||(0,ul.dM)(void 0,o),{chartSlice:l,Comp:d}=((t,e,o,n)=>{const{chartType:s,browserType:r}=o,{chartSlice:i,configs:a}=c(t,s);return i?(a.unshift(e),i.isShow=!0,{chartSlice:i}):(cl(t,s,e),{Comp:ol({browserType:r,dialogConf:n})})})(kl,e,t,a);(0,hl.g3)(o,n),l?$l(l):(Tl(d),(0,h.ql)()),(0,ml.eJ)(r),Ll()},Wl=function(t){void 0===t&&(t={}),(0,ml.eJ)(),Ll(),dl(t)},Rl=(t,e)=>{if(Ml(t,e)){const{key:t,loadId:o="Q"}=e;Il=!0,Dl=t,(0,ml.r1)(),(0,a.Z)(o).loadItem(e,Fl,Wl,Nl)}},Pl=()=>{},Bl=t=>{yl(t);const{loadId:e}=t;t.proxy=(0,tl.V_)(e);const o=(0,a.Z)(e);if(o){const{addPropsTo:e}=o;(0,nl.fp)(e)&&e(t),o.loadItem(t,Fl,Pl,Nl)}else t.alertDescr="Loader for this item hasn't found.",Nl(t)},Ul=(t,e,o)=>{(0,hl.fG)(t,e);const n=(0,ul.dM)(o,t),{chartSlice:s,Comp:r}=((t,e,o,n)=>{const{chartSlice:s}=c(t,e);return s?(s.isShow=!0,{chartSlice:s}):(cl(t,e),{Comp:ol({browserType:o,dialogConf:n})})})(kl,t,e,n);s?$l(s):(Tl(r),(0,h.ql)())},zl=t=>{$l({chartType:t})},Vl=(t,e,o)=>{const{chartSlice:n,isRemoved:s}=((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e);return n.configs=s.filter(d(o)),{chartSlice:n,isRemoved:s.length>n.configs.length}})(kl,t,o);s&&((0,m.Sf)(o),(0,hl.j3)(t,e),$l(n))},Jl=(t,e)=>{((t,e,o)=>{const{configs:n}=c(t,e);n.length===o.length&&o.forEach((t=>{const e=n.find(p(t._id));e&&(e.valueMoving=t)}))})(kl,t,e)},Kl=(t,e)=>{const o=((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e);return o?s.sort(ll(o)):s.reverse(),n})(kl,t,e);$l(o)},Zl=(t,e)=>{const o=((t,e)=>{const o=t[e]||{};return o.configs=[],o})(kl,t);(0,hl.ET)(t,e),(0,m.PL)(),$l(o)}},506:(t,e,o)=>{"use strict";o.d(e,{Ix:()=>h,M3:()=>c,bZ:()=>d,eJ:()=>u,r1:()=>p});var n=o(7343),s=o(6136);const r=(0,n.eU)(),i=r.setValue,a=(0,n.eU)(),l=t=>{a.setValue(null==t?void 0:t)},c=r.useAtomValue,d=a.useAtomValue,p=()=>i(s.lX),u=t=>{setTimeout((()=>{i(s.NR),l(t)}),450)},h=t=>{i(s.Jy),l(t)}},9466:(t,e,o)=>{"use strict";o.d(e,{T9:()=>R,V_:()=>I,ef:()=>g,hf:()=>O,i7:()=>b,l$:()=>f,pU:()=>y,xo:()=>N,ys:()=>$});var n=o(9479),s=o(5355),r=o(7343),i=o(2190);const a=()=>Object.create(null),l=Object.assign,c=[i.D7,i.Jm,i.vq,i.T2,i.pO,i.$8,i.zO,i.Kr,i.f_,i.Pj],d=[i._0,i.O2,i.fU,i.D7,i.v$,i.Me,i.Pj],p=[...d,i.bE,i.M_,i.Zh,i.ei,i.tI,i.oG,i.Z_],u="Alpha Vantage",h={DF:"",[i.Jm]:u,[i.vq]:u,[i.T2]:u,[i.Kr]:"BEA",[i.f_]:"EIA",[i.pO]:"FMP",[i.$8]:"Intrinio",[i.zO]:"Twelve Data",[i.Pj]:"WTO",[i.sd]:"CryptoCompare Information"},m=t=>e=>-1!==t.indexOf(e),f=m(c),g=m(d),y=t=>h[t]||h.DF,x=a(),v=t=>e=>{x[t]=e},b=t=>{switch(t){case i.Bs:return x[i.D7];case i.vq:case i.T2:return x[i.Jm];default:return x[t]}},C="cps",S="isAdm",w="isDrawDeltaExtrems",A="isNotZoomToMinMax",j="isAlg",$=[["View in Admin Mode",S],["Draw Axis Labels Grey",j],["Draw Deltas to Min-Max",w],["Not Zoom to Min-Max",A]],T=l(a(),{[C]:"",[S]:!1,[w]:!1,[A]:!1,[j]:!1}),k=t=>T[t],_=(t,e)=>o=>{if((0,r.XB)(o))return k(t);T[t]=!!o,(0,r.fp)(e)&&e(T[t])},E=t=>{if("http://127.0.0.1"===(""+t).slice(0,16)||""===t)return T[C]=t,!0},D=m(p),I=t=>D(t)?T[C]:"",L=(t,e)=>{(0,r.XB)(t[e])&&(t[e]=k(e))},N=(t,e)=>{l(t,{apiKey:b(e),proxy:I(e)}),L(t,w),L(t,A),L(t,j)},O=_(S),M=_(w),F=_(A),W=_(j,(t=>{t?(0,n.k)():(0,n.k)(s.Yq,s.L5)})),R=()=>({key1:v(i.D7),key2:v(i.Pj),key3:v(i.Kr),key4:v(i.N2),key5:v(i.f_),key6:v(i.Jm),key7:v(i.pO),key8:v(i.$8),key9:v(i.zO),setProxy:E,getProxy:I,[S]:O,[w]:M,[A]:F,[j]:W})},8801:(t,e,o)=>{"use strict";o.d(e,{sT:()=>G,HS:()=>z,CY:()=>K,Gw:()=>et,yN:()=>X,DX:()=>tt,xG:()=>J,C5:()=>q,_x:()=>H,QC:()=>R,rF:()=>P,pK:()=>V,sW:()=>Z,vk:()=>B,w9:()=>W,BB:()=>F});var n=o(6952),s=o.n(n);const r={groups:["Economic Metrics","Currencies","Commodities","Stocks","Indexes","Futures"].map((t=>({caption:t,lists:[{caption:"List1"},{caption:"List2"},{caption:"List3"}]})))};var i=o(3597),a=o(1990),l=o(2440),c=o(7343),d=o(4427),p=o(2823);const u=Array.isArray,h=(t,e)=>(o,n)=>o[t].find((t=>t[e]===n)),m="caption",f=t=>({isDone:!1,message:t}),g=(t,e)=>f((0,a.xu)(t,e)),y=t=>f((0,a.si)(t)),x=(t,e)=>f((0,a.Px)(t,e)),v=(t,e)=>({isDone:!1,alertItemId:t,...e}),b=(C=m,(t,e)=>t.filter((t=>t[C]!==e)));var C;const S=(t,e)=>u(t)?t.concat({...e}):[{...e}],w=(t=>(e,o,n)=>[...e.slice(0,o),{...e[o],[t]:n},...e.slice(o+1)])(m),A=(t,e,o)=>u(o)?[...o.slice(0,e),{...t},...o.slice(e)]:[{...t}],j=h("groups",m),$=h("lists",m),T=(0,p.Tg)("caption"),k=(0,p.is)(m),_="WATCH_LIST_ERC",E="Watch List:",D=(0,c.Nv)((()=>({isWatchEdited:!1,watchList:r,msEdit:{}}))),I=t=>t.watchList,L=t=>t.isWatchEdited,[N,O]=(0,c.iC)(D),M=()=>I(O()),F=(0,c.SV)(D,I),W=(0,c.jo)(D,(t=>t.msEdit)),R=((0,c.jo)(D,L),()=>(M()||{}).groups),P=t=>{const e=j(M(),t);return e?e.lists:[]},B=()=>{L(O())?s().setItem(_,M()).then((()=>{N({isWatchEdited:!1}),(0,d.BK)(i.$t,{caption:E,descr:a.CO})})).catch((t=>{console.log(t)})):(0,d.BK)(i.$t,{caption:E,descr:a.Iv})},U=(t,e)=>o=>{var n,s;n=t(M(),o),s=e,n.isDone?N({isWatchEdited:!0,watchList:{...M()},msEdit:{forActionType:s}}):N({msEdit:{messages:[n.message],forActionType:s}})},z=U(((t,e)=>{let{caption:o}=e;const n=t.groups;if(k(n,o))return y(o);const s=o?{caption:o}:{caption:"Default"};return t.groups=S(n,s),{isDone:!0}}),l.fM),V=U(((t,e)=>{let{captionFrom:o,captionTo:n}=e;const s=t.groups,r=T(s,o);return-1===r?g("group",o):k(s,n)?y(n):(t.groups=w(s,r,n),{isDone:!0})}),l.Wb),J=U(((t,e)=>{let{caption:o}=e;return t.groups=b(t.groups,o),{isDone:!0}}),l.dr),K=U(((t,e)=>{let{captionGroup:o,captionList:n}=e;const s=j(t,o);if(!s)return g("group",o);const r=s.lists;return k(r,n)?x(n,o):(s.lists=S(r,{caption:n}),{isDone:!0})}),l.$H),Z=U(((t,e)=>{let{captionGroup:o,captionListFrom:n,captionListTo:s}=e;const r=j(t,o);if(!r)return g("group",o);const i=r.lists,a=T(i,n);return-1===a?g("list",n):k(i,s)?x(s,o):(r.lists=w(i,a,s),{isDone:!0})}),l.Nt),q=U(((t,e)=>{let{captionGroup:o,captionList:n}=e;const s=j(t,o);return s?(s.lists=b(s.lists,n),{isDone:!0}):g("group",o)}),l.yq),Y=U(((t,e)=>{const{caption:o,groupCaption:n,listCaption:s,config:r}=e,{zhConfig:i}=r,{id:l,title:c,subtitle:d,itemConf:p={}}=i,u=j(t,n),h=$(u,s);if(k(h.items,o))return((t,e)=>f((0,a.Wq)(t,e)))(o,s);const m={id:l,title:c,subtitle:d,caption:o,itemConf:p};return h.items?h.items.push(m):h.items=[m],{isDone:!0}}),l.Xk),G=t=>{Y(t)},H=t=>{((t,e)=>{let{groupCaption:o,listCaption:n,caption:s}=e;const r=j(t,o),i=$(r,n);i.items=b(i.items,s)})(M(),t),N({isWatchEdited:!0,watchList:{...M()}})},Q=t=>e=>{var o;(o=t(M(),e)).isDone?N({isWatchEdited:!0,watchList:{...M()}}):(0,d.K$)(o)},X=Q(((t,e)=>{let{dragId:o,dropId:n}=e;const s=o.split(";"),r=j(t,s[0]),i=$(r,s[1]),l=T(i.items,s[2]),c=i.items[l],d=n.split(";"),p=j(t,d[0]),u=$(p,d[1]),h=d[2]?T(u.items,d[2]):0;return i.caption!==u.caption&&k(u.items,s[2])?((t,e)=>v(`${t}:${e}`,a.yJ))(d[1],s[2]):(i.items=b(i.items,s[2]),u.items=A(c,h,u.items),{isDone:!0})})),tt=Q(((t,e)=>{let{dragId:o,dropId:n}=e;const[s,r]=o.split(";"),i=j(t,s),l=$(i,r),[c,d]=n.split(";"),p=j(t,c),u=d?T(p.lists,d):0;return i.caption!==p.caption&&k(p.lists,r)?((t,e)=>v(`${t}:${e}`,a.xw))(c,r):(i.lists=b(i.lists,r),p.lists=A(l,u,p.lists),{isDone:!0})})),et=Q(((t,e)=>{let{dragId:o,dropId:n}=e;const[s]=o.split(";"),r=j(t,s),[i]=n.split(";"),a=i?T(t.groups,i):0;return t.groups=b(t.groups,s),t.groups=A(r,a,t.groups),{isDone:!0}}))},3186:(t,e,o)=>{"use strict";var n=o(5338),s=o(265),r=o.n(s),i=o(1315),a=o(4558),l=o(4616),c=o(55),d=o(8678);const p={crOptions:t=>{const e=(t=>{const e=Object.create(null);return t.forEach(((t,o)=>{e[o]=(0,c.A)(t)})),e})(t),{v:o,bT:n,cT:s,cN:r,fD:i,tD:a}=e;return{...e,title:o,key:o,value:o,browserType:n,chartType:s,columnName:r,fromDate:i,toDate:a||(0,d.Gd)()}}},{crOptions:u}=p,h=["UN","QE","FAO"],m=["USAE_BLS_1","BC_HD"],f=(t,e)=>-1!==t.indexOf(e),g=()=>{const t=window?.location?.search;if(!t||t.length>120)return;const e=u(new URLSearchParams(t));return(o=e)&&o.v&&f(m,o.cT)||f(h,o.bT)?e:void 0;var o};var y=o(9466),x=o(5952),v=o(2394),b=o(8358);const C=()=>{(0,i.vJ)((()=>b.SW?(document.addEventListener(b.n4,b.e3,!1),()=>{(0,b.Tp)(),document.removeEventListener(b.n4,b.e3,!1)}):void 0),[])};var S=o(4427);var w=o(4867),A=o(4407),j=o(6539),$=o(6409),T=o(4848);const k=t=>{let{style:e,color:o="currentColor",size:n="24",children:s}=t;return(0,T.jsx)($.A,{w:n,style:e,stroke:o,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s})},_=t=>{let{style:e}=t;return(0,T.jsxs)(k,{style:e,children:[(0,T.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,T.jsx)("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},E=t=>{let{style:e}=t;return(0,T.jsxs)(k,{style:e,children:[(0,T.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,T.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,T.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]})};var D=o(509),I=o(8376),L=o(506),N=o(6136),O=o(3986);const M="#2f7ed8",F=(t,e,o)=>({backgroundColor:t,width:e+"%",transition:o,opacity:1}),W=(t,e,o)=>(0,i.ZC)(t)?((0,i.nl)(t,!1),F(e,0)):F(e,((t,e)=>t<0?0:t>=100?((0,i.nl)(e,!0),100):t)(o,t),"width 350ms linear"),R=t=>{let{color:e=M,completed:o}=t;const n=(0,O.A)(),s=(0,i.li)(!1),r=(0,i.li)(null);(0,i.vJ)((()=>{(0,i.ZC)(s)&&(0,i.nl)(r,setTimeout(n,800))})),(0,i.vJ)((()=>()=>{clearTimeout((0,i.ZC)(r))}),[]);const a=W(s,e,o);return(0,T.jsx)("div",{className:"progress-line",style:a})},P="#2f7ed8",B=(0,I.A)((()=>{const t=(0,L.M3)(),[e,o]=t===N.lX?[35,P]:t===N.NR?[100,P]:t===N.Jy?[100,"#ed5813"]:[0,P];return(0,T.jsx)(R,{completed:e,color:o})})),U=t=>{let{className:e,caption:o,title:n}=t;return(0,T.jsx)("span",{className:e,title:n,children:o})},z=t=>{let{className:e,title:o}=t;return(0,T.jsx)("span",{className:e,title:o,children:(0,T.jsxs)($.A,{w:"32",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",strokeWidth:"2",children:[(0,T.jsx)("rect",{ry:"1.8825414",rx:"194.14471",y:"1.434558",x:"19.176462",height:"12.460618",width:"10.85316",fill:"#8ecc2d",stroke:"#8ecc2d"}),(0,T.jsx)("rect",{ry:"1.87537",rx:"204.478",y:"16.639841",x:"8.8410215",height:"13.752699",width:"18.307165",fill:"#232f3b",stroke:"#232f3b"}),(0,T.jsx)("rect",{ry:"1.87537",rx:"204.478",y:"3.4229634",x:"2.5897937",height:"10.894996",width:"10.001963",fill:"#a487d4",stroke:"#a487d4"})]})})},V=(t,e,o)=>{const[n,s]=(0,i.J0)(t);return e((t=>o(t,s))),[n,s]};var J=o(391),K=o(7071),Z=o(3569);const q="bt-hot",Y={display:"inline-block"},G=function(t,e){void 0===e&&(e="");const o=J.dY?"":String(t+1);return{hotKey:o||void 0,caption:o+e.slice(0,3),title:e}},H=(t,e,o)=>{let{onShowDialog:n}=o;return(0,Z.createElement)(j.A,{...G(e,t.caption),key:t.type,timeout:0,className:q,onClick:(0,i.Jr)(n,t.type)})},Q=(t=>{const e=(0,J.zK)()||601;return e>600?t:e>500?3:e>360?2:1})(5),X=(t,e)=>{t&&e((e=>{if(!((t,e)=>{for(let o=0;o{let{useMsCloseDialog:e,onShowDialog:o}=t;const[n,s]=V([],e,X),r=(0,i.hb)((()=>s([])),[]);return(0,T.jsxs)("div",{style:Y,children:[(0,T.jsx)(K.A,{items:n,crItem:H,onShowDialog:o}),0!==n.length&&(0,T.jsx)(j.A,{timeout:0,className:q,caption:"CL",title:"Clean Hot Bar",onClick:r},"BT_CLEAN")]})},et={display:"inline-block",color:"#2f7ed8",paddingRight:8,fontSize:"16px",fontWeight:"bold"},ot=()=>(0,T.jsx)("span",{style:et,children:(0,L.bZ)()});var nt=o(2040),st=o(2543);const rt=`${a.DH} item__`,it=`${rt}browser`,at=`${rt}org`,lt=`${rt}watch`,ct=(t,e)=>(0,st.z7)(t,e,it),dt=(t,e,o)=>(0,st.VD)(e,(()=>(0,x.Uv)(o)),!0,t),pt=t=>t.map((t=>{let[e,o,n]=t;return dt(e,o,n)})),ut=[[at,"Central Banks",nt.hc],[at,"DBnomics",nt.yO],[at,"Energy",nt.iy],[at,"U.S. Economics",nt.rv],[at,"Commodities",nt.dI],[at,"OECD",nt.VZ]],ht=[[at,"Overview",nt.Vv],[at,"Circular Economy",nt.JL],[at,"Euro Indicators / PEEIs",nt.FJ],[at,"EU Comext",nt.a],[at,"EU FIGARO",nt.x7],[at,"EU MIP",nt.kQ],[at,"EU SDG",nt.aw]],mt=[[at,"INSEE: Statistics France",nt.RD],[at,"ONS: Statistics UK",nt.GD],[at,"Statistics Norway",nt.D3],[at,"Statistics Norway (A)",nt.Os],[at,"Statistics Sweden",nt.zC],[at,"Statistics Sweden (A)",nt.V5],[at,"Statistics Finland",nt.R5],[at,"Statistics Denmark",nt.rJ],[at,"CSO: Statistics Ireland",nt.Wr],[at,"FSO: Statistics Swiss",nt.MM]],ft=[[at,"Stock Markets",nt.Y5],[at,"NYSE by Sectors",nt.vf],[at,"NASDAQ by Sectors",nt.G9]],gt=[[at,"FAOSTAT",nt.gH],[at,"UN Comtrade",nt.vj],[at,"World Bank",nt.HY],[at,"WTO",nt.Mt]],yt=()=>(0,st.W1)(it,215,2,{p0:[ct("p1","Economics"),ct("p2","Eurostat"),ct("p3","Statistics Agencies"),ct("p4","Stock Markets"),ct("p5","World Organizations"),dt(it,"Blockchains",nt.Q),dt(it,"Currencies",nt.Rx),dt(lt,"Watch List",nt.mU),(0,st.VD)("About",S.XJ,!0,it)],p1:pt(ut),p2:pt(ht),p3:pt(mt),p4:pt(ft),p5:pt(gt)}),xt="header",vt=(0,a.SX)(xt),bt=`${xt}__icon-erc`,Ct=`${xt}__app-label`,St=`${xt}__bts-right`,wt=`popup-menu ${xt}__panel-browser`,At={verticalAlign:"middle",margin:"0 8px 3px 8px"},jt=yt(),$t=t=>{let{showSettings:e}=t;const[o,n]=(0,w.A)(),[s,r]=(0,A.ay)(n);return(0,T.jsxs)("div",{className:vt,children:[(0,T.jsx)(B,{}),(0,T.jsx)(z,{className:bt,title:"Web app ERC (Economic RESTful Client)"}),(0,T.jsx)(U,{className:Ct,caption:"ERC v0.18.0"}),(0,T.jsx)(j.A,{refBt:s,isArrow:!0,timeout:0,caption:"Topics",title:"Topics Menu",hotKey:"T",onClick:r}),(0,T.jsx)(j.A,{className:"hbt-eurostat",caption:"Eurostat",title:"Eurostat Browser",hotKey:"U",onClick:x.xf}),(0,T.jsx)(j.A,{className:"hbt-ndl",caption:"DBN",title:"DBnomics Browser",hotKey:"B",onClick:x.oB}),(0,T.jsx)(j.A,{className:"hbt-watch",caption:"Watch",title:"Watch List Browser",hotKey:"W",onClick:x.LS}),(0,T.jsx)(tt,{useMsCloseDialog:S.uq,onShowDialog:S.ui}),(0,T.jsxs)("div",{className:St,children:[(0,T.jsx)(ot,{}),(0,T.jsx)(j.A,{isPrimary:!0,title:"User Settings Dialog",hotKey:"S",timeout:500,onClick:e,children:(0,T.jsx)(_,{style:At})}),(0,T.jsx)(j.A,{className:"hbt-about",title:"About Web Application ERC",hotKey:"A",timeout:0,onClick:S.XJ,children:(0,T.jsx)(E,{style:At})})]}),(0,T.jsx)(D.A,{isShow:o,className:wt,model:jt,onClose:r})]})};var Tt=o(6984);const kt=(t,e)=>{for(let o=0;o{const o=kt(t,e);return o>-1?[...t.slice(0,o),...t.slice(o+1),t[o]]:t},Et=(t,e)=>{t.splice(t.indexOf(e),1)},Dt={zIndex:1030,position:"absolute",top:70,left:10},It=t=>(e,o)=>{e&&o((n=>{const{key:s,Comp:r,data:i}=e,{elementDialogs:a}=n;return r&&kt(a,s)>-1?n:(((t,e,o,n)=>{const s=e.indexOf(o);s>-1&&e.splice(s,1),e.push(o),t[o]=!0,e.length>n&&(t[e[0]]=!1,e.splice(0,1))})(n.hmIs,n.visibleDialogs,s,t),r?a.push(r):n.elementDialogs=_t(a,s),n.elementProps[s]||(n.elementProps[s]={toTopLayer:()=>(t=>{o((e=>{const o=e.visibleDialogs;return o[o.length-1]!==t?(e.elementDialogs=_t(e.elementDialogs,t),Et(o,t),o.push(t),{...e}):e}))})(s),onClose:()=>(t=>{o((e=>{const{hmIs:o,elementDialogs:n}=e;if(o[t]){const e=kt(n,t);e>-1&&setTimeout((()=>(0,S.zU)(n[e])),200)}return o[t]=!o[t],o[t]||Et(e.visibleDialogs,t),{...e}}))})(s)}),n.hmData[s]=i,{...n})}))},Lt=t=>{let{maxDialog:e=3}=t;const o=(0,Tt.A)((()=>It(e))),{hmIs:n,hmData:s,elementProps:r,elementDialogs:a}=V((()=>({hmIs:(0,i.Kj)(),hmData:(0,i.Kj)(),elementProps:(0,i.Kj)(),elementDialogs:[],visibleDialogs:[]})),S.ts,o)[0];return(0,T.jsx)("div",{style:Dt,children:(0,i.lZ)(a,(t=>{const e=t.key;return(0,i.i6)(t,{isShow:n[e],optionData:s[e],...r[e]})}))})},Nt=(t,e)=>{const{elBrowser:o}=t||{};o&&e((t=>[o,...t]))},Ot=t=>{let{useMsInitBrowser:e}=t;const o=V([],e,Nt)[0];return(0,T.jsxs)("div",{className:a.d6,children:[o,(0,T.jsx)(Lt,{maxDialog:3})]})};var Mt=o(2291),Ft=o(2336),Wt=o(8203),Rt=o(7144),Pt=o(2357);const Bt="#faebd7",Ut={color:Bt,display:"inline-block",position:"relative",top:-7,height:28,padding:"1px 10px 1px 9px",borderRadius:4,outline:0,textDecoration:"none",userSelect:"none",cursor:"pointer"},zt={fill:Bt,stroke:Bt,display:"inline-block",position:"relative",top:4,width:18,height:18,marginRight:8},Vt="X formerly known as Twitter",Jt=t=>{let{style:e,iconStyle:o,account:n,title:s}=t;return n?(0,T.jsxs)("a",{className:"x-link",style:{...Ut,...e},target:"_blank",href:`https://x.com/${n}`,title:s,children:[(0,T.jsxs)("svg",{viewBox:"0 0 22 20",xmlns:"http://www.w3.org/2000/svg",style:{...zt,...o},"aria-label":Vt,children:[(0,T.jsx)("title",{children:Vt}),(0,T.jsx)("path",{d:"M16.99 0H20.298L13.071 8.26L21.573 19.5H14.916L9.702 12.683L3.736 19.5H0.426L8.156 10.665L0 0H6.826L11.539 6.231L16.99 0ZM15.829 17.52H17.662L5.83 1.876H3.863L15.829 17.52Z"})]}),(0,T.jsxs)("span",{children:["@",n]})]}):null};var Kt=o(9073);const Zt=t=>{let{className:e="link",style:o,title:n,href:s,children:r}=t;return(0,T.jsxs)("a",{target:"_blank",className:e,style:o,href:(0,i.jd)(s),children:[n,r]})},qt="data-provider-link",Yt={color:"#49d87c"},Gt=t=>`https://${t}`,Ht=[["OECD",Gt("oecd.org")],["BIS",Gt("bis.org")],["ECB","European Central Bank",Gt("ecb.europa.eu")],["BOC","Bank of Canada",Gt("www.bankofcanada.ca")],["SNB","Swiss National Bank",Gt("www.snb.ch/en/")],["Ndl","Nasdaq Data Link",Gt("data.nasdaq.com")],["DBnomics",Gt("db.nomics.world")],["EI","Energy Institute",Gt("www.energyinst.org")],["Ember",Gt("ember-climate.org")],["IRENA",Gt("www.irena.org")],["Fmp","Financial Modeling Prep",Gt("financialmodelingprep.com")],["Tw","Twelve Data",Gt("twelvedata.com")],["AlphaVantage","Alpha Vantage",Gt("www.alphavantage.co")],["Eurostat",Gt("ec.europa.eu/eurostat/")],["UnComtrade","UN Comtrade",Gt("comtrade.un.org")],["WorldBank","World Bank",Gt("data.worldbank.org")],["WTO",Gt("wto.org")],["FaoStat","FAOSTAT",Gt("www.fao.org/faostat/en/#data")],["Bea","U.S. Bureau of Economic Analysis",Gt("www.bea.gov")],["Bsl","U.S. Bureau of Labor Statistics",Gt("www.bls.gov/home.htm")],["Eia","U.S. EIA",Gt("www.eia.gov")],["Intrinio",Gt("intrinio.com")],["Insee","INSEE: Statistics France",Gt("www.insee.fr/en/accueil/")],["ONS","ONS: Statistics UK",Gt("www.ons.gov.uk")],["StatNorway","Statistics Norway",Gt("www.ssb.no/en/")],["StatSweden","Statistics Sweden",Gt("www.scb.se/en/")],["StatFinland","Statistics Finland",Gt("www.stat.fi/index_en.html")],["StatDenmark","Statistics Denmark",Gt("www.dst.dk/en/")],["StatIreland","CSO: Statistics Ireland",Gt("www.cso.ie/en/")],["FSO","FSO: Statistics Swiss",Gt("www.bfs.admin.ch/bfs/en/home.html")],["CoinCap",Gt("coincap.io")],["CoinGecko",Gt("www.coingecko.com/en/")],["CoinMetrics",Gt("coinmetrics.io")],["CoinLore",Gt("www.coinlore.com")],["Coinpaprika",Gt("coinpaprika.com")],["Binance",Gt("binance.com")],["Bitstamp",Gt("www.bitstamp.net")],["Coinbase",Gt("coinbase.com")],["Bitfinex",Gt("bitfinex.com")],["GateIo","Gate.io",Gt("gate.io")],["Kraken",Gt("www.kraken.com")],["KuCoin",Gt("www.kucoin.com")],["HTX",Gt("htx.com")],["OKX",Gt("okx.com")],["Bybit",Gt("www.bybit.com")],["CryptoCom","Crypto.com",Gt("crypto.com")]],Qt={CryptoCompare:()=>(0,T.jsx)(Zt,{className:qt,href:"https://www.cryptocompare.com",title:"Crypto",children:(0,T.jsx)("span",{style:Yt,children:"Compare"})})};Ht.forEach((t=>{Qt[t[0]]=()=>{const e=(0,i.O8)(t[2])?1:0;return(0,T.jsx)(Zt,{className:qt,title:t[e],href:t[e+1],style:t[e+2]})}}));const Xt=Qt;var te=o(1327);const ee="provider__note__br",oe=Kt.ui,ne={borderLeftStyle:"solid",borderLeftWidth:2,marginLeft:-5,paddingLeft:8},se={paddingTop:6,lineHeight:1.8},re={paddingLeft:4},ie={paddingTop:4},ae={display:"inline-block",padding:"0 8px"},le={paddingRight:4},ce={padding:"8px 4px 4px 6px",lineHeight:1.4},de={color:"#607d8b"},pe=Array.isArray,ue=[Xt.DBnomics,Xt.EI,Xt.Ember,Xt.IRENA,Xt.Eurostat,Xt.FaoStat,Xt.WorldBank,Xt.BOC,Xt.Insee,Xt.ONS,Xt.StatNorway,Xt.StatSweden,Xt.StatFinland,Xt.StatDenmark,Xt.StatIreland,Xt.FSO,Xt.OECD,[Xt.Bsl,"25"],Xt.CryptoCompare,Xt.CoinCap,Xt.CoinGecko,Xt.CoinMetrics,Xt.CoinLore,Xt.Coinpaprika,Xt.Binance,Xt.Bitstamp,Xt.Coinbase],he=[Xt.Ndl,Xt.AlphaVantage,Xt.Fmp,Xt.Tw,Xt.Intrinio,Xt.WTO,[Xt.Bsl,"500"],Xt.Eia,Xt.Bea],me=[Xt.Ndl,Xt.BIS,Xt.ECB,Xt.SNB,Xt.UnComtrade,Xt.WTO,Xt.Bitfinex,Xt.CryptoCom,Xt.GateIo,Xt.Kraken,Xt.KuCoin,Xt.OKX,Xt.Bybit,Xt.HTX],fe=t=>{let{Comp:e,per:o}=t;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(e,{}),(0,T.jsxs)(te.W,{children:[" (",o,")"]})]})},ge=t=>{let{list:e}=t;return e.map(((t,e)=>{const o=pe(t);return(0,T.jsx)("span",{style:(0,a.FG)(ae,o&&le),children:o?(0,T.jsx)(fe,{Comp:t[0],per:t[1]}):(0,T.jsx)(t,{})},e)}))},ye=(t,e)=>`(${t.length}) ${e}:`,xe=t=>{let{isClose:e}=t;return(0,T.jsx)(Rt.A,{isClose:e,caption:"Data Providers (All 47):",childStyle:ne,children:(0,T.jsxs)("div",{children:[(0,T.jsx)("p",{children:(0,T.jsx)(ge,{list:ue})}),(0,T.jsxs)(Rt.A,{caption:ye(he,"Required API Key"),style:se,openColor:oe,childStyle:re,children:[(0,T.jsx)("p",{style:ie,children:(0,T.jsx)(ge,{list:he})}),(0,T.jsx)("div",{style:ce,children:(0,T.jsxs)("p",{children:[(0,T.jsx)(te.W,{children:"Note: "}),"This product uses the Bureau of Economic Analysis (BEA) Data API but is not endorsed or certified by BEA. "]})}),(0,T.jsx)("div",{style:ce,children:(0,T.jsxs)("p",{children:[(0,T.jsx)(te.W,{children:"Note: "}),"User API key from data provider required for request. ",(0,T.jsx)("br",{className:ee}),"Can be set in ",(0,T.jsx)("span",{style:de,children:"SETTINGS [s]"}),"."]})})]}),(0,T.jsxs)(Rt.A,{caption:ye(me,"Required Local Http Proxy"),style:se,openColor:oe,childStyle:re,children:[(0,T.jsx)("p",{style:ie,children:(0,T.jsx)(ge,{list:me})}),(0,T.jsx)("div",{style:ce,children:(0,T.jsxs)("p",{children:[(0,T.jsx)(te.W,{children:"Note: "}),"Local Http Proxy is required for data APIs without CORS. ",(0,T.jsx)("br",{className:ee}),"Could be set in ",(0,T.jsx)("span",{style:de,children:"SETTINGS [s]"}),"."]})})]})]})})};var ve=o(8885),be=o(540);const Ce=t=>{let{id:e}=t;return(0,T.jsx)("use",{href:`css/sprite.svg#${e}Logo`})},Se=t=>{let{ariaLabel:e,className:o,href:n,id:s,svgProps:r}=t;return(0,T.jsx)("a",{"aria-label":e,className:(0,a.PX)("logo-item",o),href:(0,i.jd)(n),children:(0,T.jsx)(be.A,{...r,"aria-hidden":"true",children:(0,T.jsx)(Ce,{id:s})})})},we="logo-item data-provider-logo",Ae=t=>{let{className:e=we,href:o,caption:n,ariaLabel:s=n}=t;return(0,T.jsx)("a",{"aria-label":s,className:e,href:(0,i.jd)(o),children:n})},je={fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},$e=[["Nasdaq Data Link","logo-ndl","https://data.nasdaq.com","NDLSemi",{w:"215",h:"36"}],["GitHub Repository","logo-github","https://github.com/ZhnZhn/ZhnZhn.github.io","GitHub",{...je,w:"16"}],["React","logo-react","https://reactjs.org","React",{...je,w:"600"}],["Highcharts","logo-highcharts","https://www.highcharts.com","Highcharts",{...je,w:"425.197",h:"141.732"}]],Te=[["https://ec.europa.eu/eurostat","eurostat","Eurostat"],["https://comtrade.un.org","UN Comtrade"],["https://www.fao.org/faostat/en/#data","FAOSTAT"]],ke=t=>{let[e,o,n,s,r]=t;return(0,T.jsx)(Se,{ariaLabel:e,className:o,href:n,id:s,svgProps:r},s)},_e=t=>{let[e,o,n]=t;return(0,T.jsx)(Ae,{href:e,caption:o,ariaLabel:n},o)},Ee=()=>(0,T.jsxs)("div",{className:"logo-container",children:[(0,T.jsx)(K.A,{items:$e,crItem:ke}),(0,T.jsx)(K.A,{items:Te,crItem:_e})]}),De=(0,a.Dq)("about-container"),Ie=(0,a.nV)(),Le=(0,a.lp)("#80c040"),Ne={height:"94%"},Oe={paddingLeft:12,paddingRight:5,lineHeight:1.4,color:"gray",fontWeight:"bold"},Me={lineHeight:1.8},Fe={lineHeight:1.4},We={marginBottom:"0.8em"},Re={marginBottom:"0.6em"},Pe={marginBottom:4},Be={marginTop:4},Ue={marginLeft:12},ze={color:"#80c040"},Ve={color:"#f44336"},Je=["Please, choose a data source Browser from Topics [t]","Next, choose a dataset menu item in the the opended up Browser","Select params and enter query date in the opened up draggable Dialog","Click a button Load"],Ke=!(0,J.WB)(),Ze=()=>{const[t,e,o,n]=(0,Mt.A)(!0);return(0,S.HP)((t=>{t&&(t.is?e():o())})),(0,T.jsxs)(Pt.A,{isShow:t,className:De,animationClass:"show-cont",onKeyDown:n,children:[(0,T.jsx)(Ft.A,{caption:"About",onClose:o,children:(0,T.jsx)(Jt,{style:Ue,account:"webapperc",title:"X / Twitter page @webapperc with chart examples"})}),(0,T.jsx)(Wt.A,{className:Ie,style:Ne,children:(0,T.jsxs)("div",{style:Oe,children:[(0,T.jsxs)("p",{style:Pe,children:[(0,T.jsx)("span",{style:ze,children:"ERC (Economic RESTful Client) "}),(0,T.jsx)("span",{children:"is a web app that gives the ability to explore, visualize and compose economic and financial data mostly to charts from open and private data providers."})]}),(0,T.jsx)(xe,{isClose:Ke}),(0,T.jsx)(ve.A,{className:"black",stepStyle:Le,titles:Je}),(0,T.jsx)("p",{style:Be,children:"The result will be shown in a chart in a resizebale container."}),(0,T.jsx)("p",{style:We,children:"Also it's possible to export the chart to PNG, JPG, SVG or print to PDF."}),(0,T.jsxs)("p",{style:Re,children:[(0,T.jsx)("span",{style:Ve,children:"Attention: "}),(0,T.jsxs)("span",{children:["For one item from ",(0,T.jsx)(te.W,{children:"Dialog"})," can be only one ",(0,T.jsx)(te.W,{children:"Chart item"})," in a container. More information about a dataset can be found on a ",(0,T.jsx)(te.W,{children:"tab Info of Chart item."})]})]}),(0,T.jsxs)(Rt.A,{caption:"More...",style:Fe,ocStyle:Me,children:[(0,T.jsxs)("p",{style:We,children:["After clicking a ",(0,T.jsx)(te.W,{children:"button Show"})," in a Dialog will be an opened up ",(0,T.jsx)(te.W,{children:"Chart container"})," with charts or empty. After closing a ",(0,T.jsx)(te.W,{children:"Chart container"})," all charts remains. In one time max three ",(0,T.jsx)(te.W,{children:"Dialogs"})," can be opened."]}),(0,T.jsxs)("p",{style:We,children:["Some open and private data providers require user's ",(0,T.jsx)(te.W,{children:"API Key"}),"."]}),(0,T.jsxs)("p",{style:We,children:["Data providers API Keys can be set on the ",(0,T.jsx)(te.W,{children:"tab ApiKeys, dialog Settings [s]"}),"."]}),(0,T.jsxs)("p",{style:We,children:["Also for loading data from data providers with HTTP protocol required ",(0,T.jsx)(te.W,{children:"HTTPS proxy server"}),", by default settled in the ",(0,T.jsx)(te.W,{children:"tab Options, dialog Settings [s]"}),"."]}),(0,T.jsxs)("p",{style:We,children:["There is three UI theme in the web app ERC: ",(0,T.jsx)(te.W,{children:"Dark, Light, and Sand"})," can be set on ",(0,T.jsx)(te.W,{children:"tab Options, dialog Settings [s]"}),". All user's settings keep in browser's memory only for a current web session."]})]}),(0,T.jsx)(Ee,{}),(0,T.jsx)("p",{children:(0,T.jsx)(te.W,{children:"*Logos Fair Use."})})]})})]})},qe=(t,e)=>{t&&t.Comp&&e((e=>[t.Comp,...e]))},Ye=t=>{let{className:e=a.d6,useMsInit:o}=t;const n=V([],o,qe)[0];return(0,T.jsx)("div",{className:e,children:n})};var Ge=o(7599);const He="modal-root",Qe=`${He} show-modal`,Xe=t=>{let{isShow:e,onClose:o,children:n}=t;const[s,r]=e?[Qe,a.CQ]:[He,a.JS];return(0,T.jsx)("div",{...(0,Ge.g3)(e),className:s,style:r,onClick:o,children:n})};var to=o(4765);const eo=(t,e)=>{if(t){const o=t.modalDialogType;(0,to.q)(o).then((n=>e((e=>(n&&!e.inits[o]&&(e.dialogs.push({type:o,Comp:n}),e.inits[o]=!0),((t,e,o)=>(t.shows[e]=!0,t.data[e]=o,t.isShow=!0,t.currentDialog=e,{...t}))(e,o,t))))))}},oo=()=>{const[t,e]=V((()=>({isShow:!1,inits:(0,i.Kj)(),shows:(0,i.Kj)(),data:(0,i.Kj)(),dialogs:[],currentDialog:null})),S.i6,eo),{isShow:o,currentDialog:n,shows:s,data:r,dialogs:a}=t,l=(0,i.hb)((t=>{e((e=>(e.shows[t]=!1,e.isShow=!1,e.currentDialog=null,{...e})))}),[e]);return(0,T.jsx)(Xe,{isShow:o,onClose:(0,i.Jr)(l,n),children:a.map((t=>{let{type:e,Comp:o}=t;return(0,T.jsx)(o,{isShow:s[e],data:r[e],onClose:(0,i.Jr)(l,e)},e)}))})},no=(t,e)=>{window.fetch&&fetch("./data/build.json",{cache:"no-cache"}).then((t=>{if(t.ok)return t.json();throw new Error(`Check build: Response ${t.status}`)})).then((o=>{const{build:n=""}=o;n!==t&&-1===document.cookie.indexOf("erc")&&e({buildDate:t})})).catch((t=>{console.log(t.message)}))},so=(0,a.aM)("app-container"),ro=(0,i.Jr)(l.l0,(0,y.T9)()),io=()=>((0,i.vJ)((()=>{(()=>{const t=g();t&&(0,l.FW)({options:t})})(),no("19-12-2024",l.xI)}),[]),C(),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)($t,{showSettings:ro}),(0,T.jsxs)("div",{className:so,children:[(0,T.jsx)(Ot,{useMsInitBrowser:x.sS}),(0,T.jsx)(Ze,{}),(0,T.jsx)(Ye,{useMsInit:v.we})]}),(0,T.jsx)(oo,{})]}));var ao=o(7759);let lo=(console||{}).warn;const co=()=>{document.getElementById("preloader")&&document.body.removeChild(document.getElementById("preloader")),(0,n.H)(document.getElementById("app")).render((0,T.jsx)(io,{}))};window&&window.location&&window.location.href.indexOf("https://zhnzhn.github.io")>-1&&(r().config("https://f3e7d09d8d0748af80791d51e5bc83e3@sentry.io/138634",{whitelistUrls:["zhnzhn.github.io"]}).install(),lo&&(console.warn=function(){var t;"string"==typeof(t=arguments.length<=0?void 0:arguments[0])&&-1!==t.indexOf("Highcharts warning")||lo(...arguments)})),(0,ao.A)(),(()=>{const t=window.preloader;t&&"function"==typeof t.hiding?(t.hiding(),setTimeout(co,100)):co()})()},3326:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(704);const s=(t,e)=>parseFloat((0,n.default)(t).minus(e).toString())},6559:(t,e,o)=>{"use strict";o.d(e,{Mg:()=>m,Nh:()=>f,P0:()=>h,W7:()=>d,f7:()=>g,h$:()=>y,tM:()=>p});var n=o(704),s=o(3730),r=o(7441);const i=t=>t,a=function(t,e){void 0===t&&(t=0);const o=(0,n.default)(t.toString().replace(/\s/g,""));return(0,s.Et)(e)?o.round(e):o},l=t=>{if(t instanceof n.default)return t;try{return new n.default(t)}catch(t){return new n.default(0)}},c=t=>{const e=t.round(4);return e.gt(1e6)?t.toFixed(0):e},d=function(t,e){if(void 0===e&&(e=2),null==t)return null;const o=parseFloat(t);return o-o==0?parseFloat((0,n.default)(t).toFixed(e)):o},p=t=>{let{bValue:e=(0,n.default)(0),bTotal:o=(0,n.default)(0)}=t;return e=l(e),o=l(o),o.eq((0,n.default)(0))?(0,n.default)(0).toFixed(2):e.times(100).div(o).abs().toFixed(2)},u=t=>t.toString(),h=function(t){let{nowValue:e,prevValue:o,fnFormat:n=i,dfR:s}=void 0===t?{}:t;const l=a(e,s),d=a(o,s),h=d.minus(l),m=h.gt(0)?r.sW:h.lt(0)?r.dj:r._l,f=p({bValue:h,bTotal:d}),g=c(l),y=c(h.abs());return{value:u(n(g)),_value:u(g),delta:u(n(y)),_deltaAbs:u(y),percent:u(f)+"%",_percentAbs:u(f),direction:m}},m=t=>{const e=(0,n.default)(t);return e.gt("10")?parseInt(e.toFixed(0),10):parseFloat(e.toFixed(2))},f=t=>(0,s.Et)(t)?d(t,t<1e-4?8:t<10?4:t<1e4?2:0):t,g=t=>(t||"")+Date.now().toString(36)+Math.random().toString(36).slice(2,9),y=(t,e,o)=>t>e&&t{"use strict";o.d(e,{A:()=>r});var n=o(704);const s=t=>"number"==typeof t&&t-t==0,r=(t,e)=>s(t)&&s(e)?0===e?0===t?0:t>0?-100:100:0===t?null:parseFloat((0,n.default)(e).minus(t).div(Math.abs(t)).times(100).toFixed(2)):null},9901:(t,e,o)=>{"use strict";o.d(e,{iv:()=>h,XR:()=>y,D4:()=>g,DZ:()=>f,YV:()=>u,so:()=>x,i2:()=>v,JZ:()=>b,S8:()=>m});var n=o(704),s=o(6559),r=o(6517);const i=t=>function(e,o){void 0===o&&(o=1);const[n,s]=(0,r.bv)(e),i=parseInt(o,10);return n&&(0,r.Et)(i)&&i>0&&e.length>i?((t,e,o,n,s)=>{const r=[],i=t.length,a=e-1;let l,c=t[0],d=e;for(;do=>{const n=(0,r.bv)(o)[1];if(!n)return;const i=(t,o)=>{const s=n(t);return e(s,o)};let a=t,l=0;for(;l(0,r.Et)(t)&&(0,r.Et)(e)?(0,a.A)(e,t):null)),m=t=>{const[e,o]=(0,r.bv)(t);if(!e)return[];const s=o(t[0]);if(!(0,r.Et)(s)||0===s)return[];const i=[];let a=0;for(;a(0,r.Et)(t)&&t(0,r.Et)(t)&&t>e?t:e)),y=t=>{if(!c(t))return t;const e=(0,r.Ew)(t[0]);if(!e)return t;const o=(0,r.WM)(t,e);o&&t.splice(0,o);const n=(0,r.mU)(t,e);return n&&t.splice(n),t},x=t=>{if(!c(t))return!1;const e=(0,r.Ew)(t[0]);for(let o=0;o{const[e,o]=(0,r.bv)(t);if(!e)return[];let s,i=(0,n.default)(0),a=0,l=0;for(;l{const[e,o]=(0,r.bv)(t);if(!e)return[];const n=t.map(o).sort(((t,e)=>t-e)),s=t.length,i=s/2,a=i%2==0?Math.round((n[i-1]+n[i])/2):n[Math.round(i)-1];return[[e(t[0]),a],[e(t[s-1]),a]]}},6517:(t,e,o)=>{"use strict";o.d(e,{Et:()=>i,Ew:()=>l,WM:()=>c,ar:()=>p,bv:()=>a,dG:()=>u,mU:()=>d});var n=o(6559);const s=Array.isArray,r=t=>"number"==typeof t&&t-t==0,i=r,a=t=>{const e=(t=>{var e;if(s(t))for(let o=0;ot[0],t=>t[1]]:[t=>t.x,t=>t.y]:[]},l=t=>{if(t)return s(t)?t=>t[1]:r(t.y)?t=>t.y:void 0},c=(t,e)=>{let o=-1,n=0;for(;n{let o=0;for(let n=t.length-1;n>-1;n--){const s=e(t[n]);if(0!==s&&null!==s)break;o=n}return o},p=t=>{const e=[],o=[],[n,s]=a(t);let r;return n&&t.forEach((t=>{r=s(t),i(r)&&(e.push(r),o.push(n(t)))})),[e,o]},u=(t,e,o)=>t.reduce(((t,s,r)=>(t.push([s,(0,n.W7)(e[r],o)]),t)),[])},2823:(t,e,o)=>{"use strict";o.d(e,{Gu:()=>r,MZ:()=>l,Tg:()=>a,is:()=>i});const n=Array.isArray,s=(t,e,o)=>t.findIndex(((t,e)=>o=>o[t]===e)(e,o)),r=t=>e=>!!n(t)&&-1!==t.indexOf(e),i=t=>(e,o)=>!!n(e)&&-1!==s(e,t,o),a=t=>(e,o)=>n(e)?s(e,t,o):-1,l=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n{"use strict";o.d(e,{J:()=>s});const n=()=>{},s=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),s=1;s{"use strict";o.d(e,{j:()=>s,v:()=>r});var n=o(3730);const s=t=>Object.assign(Object.create(null),t),r=(t,e)=>{const o=s(t);return t=>(0,n.O8)(t)&&o[t]||e}},8678:(t,e,o)=>{"use strict";o.d(e,{A4:()=>S,CA:()=>k,Ch:()=>C,Cp:()=>x,Cw:()=>T,Gd:()=>y,KI:()=>w,L6:()=>I,O1:()=>b,R4:()=>R,bX:()=>m,cY:()=>$,hk:()=>v,m2:()=>E,nF:()=>f,r$:()=>A,s2:()=>D,sg:()=>F,vC:()=>g,wF:()=>j,zV:()=>_});var n=o(3730);let s;const r=t=>parseInt(t,10),i=t=>t<10?"0"+t:""+t,a=t=>r(t)-1,l=t=>(0,n.O8)(t)?t.split("-"):[],c=(t,e,o,s)=>(0,n.O8)(t)&&t.length!==e||((t,e,o)=>(0,n.yr)(t)||to)(r(t),o,s),d=function(t,e,o,n,s){void 0===n&&(n=1990),void 0===s&&(s=0);const r=(new Date).getFullYear();return!(c(t,4,n,r+s)||c(e,2,1,12)||c(o,2,1,31))},p=t=>`${i(t.getUTCHours())}:${i(t.getUTCMinutes())}`,u=(t,e)=>t.getUTCFullYear()-e+"-"+("0"+(t.getUTCMonth()+1)).slice(-2)+"-"+("0"+t.getUTCDate()).slice(-2),h={january:0,february:1,march:2,april:3,may:4,june:5,july:6,august:7,september:8,october:9,november:10,december:11},m=(t,e,o)=>{if(!(0,n.O8)(t))return!1;const s=t.trim();if(10!==s.length)return!1;const[r,i,a]=s.split("-");return d(r,i,a,o,e)},f=t=>""===t||m(t),g=function(t){void 0===t&&(t=2);const e=new Date;return u(e,t)},y=()=>g(0),x=t=>(0,n.O8)(t)?t.slice(0,4):"",v=()=>s||(s=x(g(0))),b=t=>{const e=t||new Date;return`${u(e,0)} ${p(e)} UTC`},C=t=>{if(!(0,n.Qv)(t)||!isFinite(t))return"";const e=new Date(t);return"Invalid Date"===e.toString()?"":("0"+e.getUTCDate()).slice(-2)+"-"+("0"+(e.getUTCMonth()+1)).slice(-2)+"-"+e.getUTCFullYear()},S=t=>{const[e,o,n]=l(t);return d(n,o,e)?Date.UTC(n,a(o),e):NaN},w=(t,e)=>S(t)<=S(e),A=(t,e)=>{const[o,n,s]=l(t);return d(s,n,o,e)},j=(t,e)=>new Date(t,e,0).getDate(),$=function(t,e){void 0===e&&(e={});const o=l(t),s=o.length,[i,c,d]=o;if(3===s)return Date.UTC(i,a(c),d);if(2===s&&""!==c){const t=r(c);if((0,n.yr)(t)){if(p=o[1],(0,n.O8)(p)&&"Q"===p[0].toUpperCase()){const t=r(o[1][1]);if((0,n.yr)(t))return t;const e=j(o[0],3*t);return Date.UTC(o[0],3*t-1,e)}return t}{const e=j(i,t);return Date.UTC(i,t-1,e)}}var p;if(1===s){const{y:t=0}=e,o=r(i)-t;return(0,n.yr)(o)?o:Date.UTC(o,11,31)}return(0,n.Qv)(t)?Date.UTC(t,11,31):Date.UTC(i,a(c),d)},T=(t,e)=>m(t)?(t=>{const e=C(t);if(e){const[t,o,n]=e.split("-");return`${n}-${o}-${t}`}return""})($(t)+864e5*e):"",k=function(t,e){void 0===e&&(e=" ");const[o,n=""]=(t||"").split(e),[s,r,i]=o.split("-"),[l="",c="",d=""]=n.split(":");return Date.UTC(s,a(r),i,l,c,d)},_=(t,e)=>{if(!A(t))return new Date(0);if(!(0,n.E6)(e))return new Date(S(t));const o=new Date(S(t));return new Date(o.setUTCMonth(o.getUTCMonth()+e))},E=t=>{const e=t.split("-")[2];return S(`01-01-${e}`)},D=t=>{const e=$(t);return Math.ceil(((new Date).getTime()-e)/864e5)},I=t=>{if(!(0,n.O8)(t))return-1;const e=h[String(t).toLowerCase()];return(0,n.XB)(e)?-1:e},L=t=>t||"",N=t=>L(t).split("-"),O=t=>"31-12"===L(t).slice(0,5),M=t=>"30"===t||"31"===t,F=t=>{let{date:e,dateTo:o}=t;return((t,e)=>O(t)&&O(e)?L(t).slice(6,10):"")(e,o)||((t,e)=>{const[o,n,s]=N(t),[i,a,l]=N(e),c=r(n),d=c-r(a),p=r(s)-r(l);return c%3==0&&M(o)&&M(i)&&(3===d&&0===p||-9===d&&1===p)?`Q${n/3} ${s}`:""})(e,o)||e},W=(t,e)=>t.slice(5)+e+t.slice(0,4),R=t=>{const e=L(t);return"Q"===e[5]?W(e," "):7===e.length&&"-"===e[4]?W(e,"-"):e}},55:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});const n=o(3823).default.sanitize,s=t=>n(t,{USE_PROFILES:{html:!0}})},124:(t,e,o)=>{"use strict";o.d(e,{Z:()=>m,x:()=>h});const n="Request Error",s={403:"403: Forbidden.",404:"404: Resource is not existed.",429:"429: Too many request in a given amount of time (rate limiting).",503:"503: Back-end server is at capacity."},r=t=>"function"==typeof t,i=Array.isArray,a=Object.assign,l=()=>{},c=function(t,e){return void 0===e&&(e=n),{errCaption:e,message:t}},d=(t,e,o)=>{if(s=e,!i(n=t)||-1===n.indexOf(s))throw c(o);var n,s},p=t=>{let{response:e,propName:o,status:n,getLimitRemaiming:s}=t;const i=e.headers,a=i&&r(i.get)&&r(s)?s(i):void 0;return Promise.all([Promise.resolve(a),e[o](),Promise.resolve(n)])},u=t=>function(e){let{uri:o,option:i={},optionFetch:u,getLimitRemaiming:h,onCheckResponse:m=l,onFetch:f,onCompleted:g,onFailed:y,onCatch:x}=e;o?fetch(o,u).then((e=>{const{status:o,statusText:n,ok:r}=e,{resErrStatus:a}=i;if(o>=200&&o<400||r)return p({response:e,propName:t,getLimitRemaiming:h});if(400===o)return d(a,o,"400: Bad request."),p({response:e,propName:t,status:o});if(s[o])throw c(s[o]);if(o>400&&o<500)return d(a,o,`${o}: ${n}`),p({response:e,propName:t,status:o});if(o>=500&&o<600)throw c(`${o}: ${n}`,"Response Error");return[void 0,{},o]})).then((t=>{let[e,o,n]=t;const s=m(o,i,n);i.limitRemaining=e,f({json:s||o,option:i,onCompleted:g})})).catch((t=>{r(x)?x({error:t,option:i,onFailed:y}):console.log(t)})):r(y)&&setTimeout((()=>y(a(i,{alertCaption:n,alertDescr:"Item url isn't specified by adapter."}))),0)},h=u("json"),m=u("text")},3695:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(2908),s=o.n(n),r=o(3730);const i=/\s/g,a=function(t,e){if(0===t)return"0";if(!t)return(0,r.O8)(e)?e:"0";if(t<1e3&&t>-1e3)return""+t;const o=(""+t).replace(i,""),n=(t=>{const e=t.split(".");return e[1]?e[1].length:0})(o);return s().numberFormat(o,n,"."," ")}},5856:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(2908),s=o.n(n);const r=(t,e,o)=>t>e&&t{const e=(""+t).split(".")[1];return e?e.length:0},a=(t,e)=>{if("number"!=typeof(o=t)||o-o!=0)return"0.00";var o;if(r(t,-.01,.01))return""+t;const n=e?i(t):(t=>{const e=i(t);return r(t,-1,1)?e<5?e:4:r(t,-1e5,1e5)?e<3?e:2:0})(t);return s().numberFormat(t,n,"."," ")}},2401:(t,e,o)=>{"use strict";o.d(e,{WO:()=>r,eW:()=>n,z:()=>s});const n=t=>{const{caption:e,c:o}=t??{};return""+(e??o??"")},s=function(t,e){let{isUpper:o,dfValue:n=""}=void 0===e?{}:e;const{value:s,v:r}=t??{},i=s??r,a="number"==typeof i?""+i:i??""+n;return o?a.toUpperCase():a},r=(t,e)=>[s(t,e),n(t)]},3243:(t,e,o)=>{"use strict";o.d(e,{Q:()=>n});const n=(t,e)=>-1!==(t||"").indexOf(e)},3730:(t,e,o)=>{"use strict";o.d(e,{E6:()=>l,Ep:()=>m,Et:()=>r,F5:()=>i,O8:()=>d,Qv:()=>s,XB:()=>p,bj:()=>c,fp:()=>u,sA:()=>h,uj:()=>f,yr:()=>a});const n=t=>e=>typeof e===t,s=n("number"),r=t=>s(t)&&t-t==0,i=t=>r(t)&&t>0,a=Number.isNaN,l=Number.isInteger,c=n("boolean"),d=n("string"),p=n("undefined"),u=n("function"),h=t=>"object"==typeof t&&null!==t,m=Array.isArray,f=t=>m(t)&&t.length>0},5672:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(2908);const s=o.n(n)().merge},9270:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;ne(t)),t)}},9009:(t,e,o)=>{"use strict";o.d(e,{O:()=>s});var n=o(3730);const s=t=>(0,n.O8)(t)&&t?t[0].toUpperCase()+t.slice(1):""},5338:(t,e,o)=>{"use strict";var n=o(6842);e.H=n.createRoot,n.hydrateRoot},1020:(t,e,o)=>{"use strict";var n=o(3569),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,o){var n,r={},c=null,d=null;for(n in void 0!==o&&(c=""+o),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(d=e.ref),e)i.call(e,n)&&!l.hasOwnProperty(n)&&(r[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===r[n]&&(r[n]=e[n]);return{$$typeof:s,type:t,key:c,ref:d,props:r,_owner:a.current}}e.Fragment=r,e.jsx=c,e.jsxs=c},4848:(t,e,o)=>{"use strict";t.exports=o(1020)},704:(t,e,o)=>{t.exports=o(2833)(192)},3940:(t,e,o)=>{t.exports=o(2833)(264)},3823:(t,e,o)=>{t.exports=o(2833)(418)},3569:(t,e,o)=>{t.exports=o(2833)(540)},265:(t,e,o)=>{t.exports=o(2833)(687)},2908:(t,e,o)=>{t.exports=o(2833)(783)},6952:(t,e,o)=>{t.exports=o(2833)(790)},3177:(t,e,o)=>{t.exports=o(2833)(834)},6842:(t,e,o)=>{t.exports=o(2833)(961)},2833:t=>{"use strict";t.exports=lib_vendor}},t=>{var e;e=3186,t(t.s=e)}]); \ No newline at end of file diff --git a/app/erc_d182f666990be07c8829.js b/app/erc_d182f666990be07c8829.js new file mode 100644 index 0000000000..844550ad10 --- /dev/null +++ b/app/erc_d182f666990be07c8829.js @@ -0,0 +1,2 @@ +/*! For license information please see erc_d182f666990be07c8829.js.LICENSE.txt */ +(self.webpackChunkweb_app_erc=self.webpackChunkweb_app_erc||[]).push([[677],{784:(t,e,o)=>{"use strict";o.d(e,{QN:()=>A,Cx:()=>j,oF:()=>st,fP:()=>ot,ZD:()=>tt,kp:()=>S,Jr:()=>i.J,as:()=>$,EE:()=>et,UE:()=>F,go:()=>W,vL:()=>c.v,jD:()=>c.j,hE:()=>U,P0:()=>z,Kk:()=>X,cZ:()=>G,Ax:()=>a.A,Ay:()=>nt,K_:()=>B,Tq:()=>H,DF:()=>q,XR:()=>x.XR,D4:()=>x.D4,DZ:()=>x.DZ,qS:()=>f,Ps:()=>E,Jq:()=>n.Jq,hk:()=>h.hk,s2:()=>h.s2,vC:()=>h.vC,Co:()=>w,_W:()=>D,a3:()=>I,Cp:()=>h.Cp,O1:()=>h.O1,Ep:()=>m.Ep,Gu:()=>d.Gu,h$:()=>y.h$,yr:()=>m.yr,uj:()=>m.uj,Et:()=>m.Et,q_:()=>C,sA:()=>m.sA,F5:()=>m.F5,C4:()=>rt,O8:()=>m.O8,QD:()=>l.Q,Qv:()=>m.Qv,XB:()=>m.XB,Ro:()=>N,MZ:()=>d.MZ,L6:()=>h.L6,jq:()=>L,W7:()=>y.W7,Yp:()=>Y,e:()=>_,tK:()=>R,Ob:()=>g.O,Y1:()=>Z,cY:()=>h.cY,CA:()=>h.CA});var n=o(4558),s=o(704),r=o(7603),i=o(1852),a=o(55),l=o(3243),c=o(434),d=o(2823),p=o(3695),u=o(2401),h=o(8678),m=o(3730);const f=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n(t||((0,m.O8)(e)?{}:[]))[e]),t)};var g=o(9009),y=o(6559),x=o(9901),v=o(7441),b=o(3160);const C=t=>(0,m.Et)(t)||null===t,S=Object.assign,w=t=>(0,m.sA)(t)&&!(0,m.Ep)(t)?Object.keys(t):[],A=t=>t,j=()=>{},$=t=>{let{_itemKey:e}=t;return e},T=t=>(0,s.default)((0,b.g)(t)),k=t=>(0,h.Ch)((0,b.z)(t)),_=t=>(0,m.Et)(t)?(0,r.e)(t):"",E=u.eW,D=u.z,I=u.WO,L=p.A,N=(O="y",t=>(0,m.Qv)(t[O])&&isFinite(t[O]));var O;M="";var M;const F=function(t,e){return void 0===t&&(t=""),{errCaption:t,message:(0,m.O8)(e)?e:"No data available for request."}},W=t=>F("",t),R=t=>(0,m.O8)(t)&&t?`${t.slice(11,19)} ${t.slice(8,10)}-${t.slice(5,7)}-${t.slice(0,4)}`:"",P=t=>(t||{}).data,B=function(t){return void 0===t&&(t=P),e=>{if(!(0,m.Ep)(t(e)))throw F()}},U=t=>{if(!(0,m.O8)(t))return"";const e=t.indexOf("("),o=t.indexOf(")",e);return-1!==e&&e{let{bNowValue:e=(0,s.default)("0.0"),bPrevValue:o=(0,s.default)("0.0"),dfR:n}=t;return(0,y.P0)({nowValue:e,prevValue:o,fnFormat:p.A,dfR:n})},V=(t,e,o)=>t.reduce(((t,n)=>{const s=n[n.length-e];return o===k(s)?t.plus(""+(0,b.g)(s)):t}),(0,s.default)("0")).toString(),J=t=>{const e=t.length,o=t[e-1]||["",0];return[o,t[e-2]||o]},K=(t,e)=>(0,s.default)((0,y.W7)(t,e)),Z=(t,e)=>{if(!(0,m.Ep)(t))return{date:t,direction:v.zy};const[o,n,s,r]=rt(t)?((t,e)=>{const[o,n]=J(t[0]||[]),s=k(o),r=k(n);return[K(V(t,1,s),e),K(V(t,2,r),e),s,r]})(t,e):(t=>{const[e,o]=J(t);return[T(e),T(o),k(e),k(o)]})(t);return{...z({bNowValue:o,bPrevValue:n,dfR:e}),valueTo:(0,p.A)(n),date:s,dateTo:r}},q=(t,e)=>{const o=t._rt;return(0,m.Et)(o)?t=>(0,y.W7)(t,o):e||(t=>t)},Y=t=>t>-1&&t<1?t:(0,y.W7)(t,2),G=(t,e)=>{let{_itemKey:o,itemCaption:n,dataSource:s}=t;return{...e,id:o,key:o,itemCaption:n,dataSource:s}},H=t=>{let e;return()=>void 0===e?e=t():e};let Q;const X=t=>(Q||(Q=new window.DOMParser),Q.parseFromString(t,"text/xml")),tt=(t,e)=>{t.info={name:(0,d.MZ)(", ",e.title,e.subtitle)}},et=(t,e)=>({linkFn:"DF",item:{caption:t,href:e}}),ot=(t,e,o)=>{S(t.zhConfig,et(e,o))},nt=(t,e)=>(o,n,s)=>(tt(o,s),ot(o,`${t} Data Portal`,e(s)),o),st=t=>(t._type="sd",t),rt=t=>"sd"===(t||{})._type},1280:(t,e,o)=>{"use strict";o.d(e,{IQ:()=>s,Ou:()=>a,eT:()=>r,kZ:()=>i,oq:()=>n});const n="pb-8",s="pr-8",r="black",i="dark-blue",a=`fs-18 ${r}`},6327:(t,e,o)=>{"use strict";o.d(e,{Ge:()=>g,R0:()=>m,WG:()=>d,bW:()=>y,eb:()=>b,hQ:()=>h,lM:()=>x,mm:()=>v,vD:()=>c,vs:()=>u,yI:()=>C});var n=o(2823),s=o(6460),r=o(784);const i=t=>(0,r.sA)(t)?t.seriaType:t,a=t=>e=>t(i(e)),l=[s.uT,s.nQ],c=a((0,n.Gu)(l)),d=t=>i(t)===s.ET,p=[s.BG,s.zM,s.Sx,s.cx],u=a((0,n.Gu)(p)),h=t=>u(t)||c(t),m=t=>-1!==(t||"").indexOf("CLUSTER"),f=(t,e)=>(t[e.c]=e,t),g=(t,e)=>{const o=(t.data||[]).reduce(f,{});return t.data=e.map((t=>o[t]||null)),t},y=t=>((t.xAxis||[])[0]||{}).categories,x=(t,e)=>(0,r.Ep)((t.xAxis||{}).categories)&&(0,r.Ep)(e),v=t=>t.map((t=>(0,r.Ax)(t.c))),b=(t,e)=>{const o=(0,r.Ax)(e);return{y:t,name:o,c:o}},C=t=>{const e=(0,r.Ax)(t);return(t,o)=>({value:t,label:(0,r.Ax)(o),title:e})}},6106:(t,e,o)=>{"use strict";o.d(e,{S$:()=>y,SW:()=>v,$w:()=>x,qn:()=>A,yy:()=>w,gp:()=>$,ox:()=>j,yD:()=>_,Ng:()=>T,f7:()=>b,wJ:()=>S,cn:()=>C});const n=Date.UTC,s=t=>(e,o)=>{const s=o.split(e),r=parseInt(s[1],10)*t-1,i=1===r?28:30;return n(s[0],r,i)},r=s(1),i=s(3),a=s(6),l=(t,e)=>e?n(t,0,1):n(t,11,31),c={JANUARY:"01",FEBRUARY:"02",MARCH:"03",APRIL:"04",MAY:"05",JUNE:"06",JULY:"07",AUGUST:"08",SEPTEMBER:"09",OCTOBER:"10",NOVEMBER:"11",DECEMBER:"12"},d=(t,e)=>{t=t.toUpperCase().trim();const[o,s]=t.split(" "),d=s&&c[s];if(d)return r("M",`${o}M${d}`);const p=(t=>e=>-1!==t.indexOf(e))(t);return p("M")?p("D")?(t=>{const e=t.split("M"),o=e[1].split("D"),s=parseInt(o[0],10)-1;return n(e[0],s,o[1])})(t):r("M",t):p("Q")?i("Q",t):p("K")?i("K",t):p("H")?a("H",t):p("/")?l(t.slice(0,4)):l(t,e)},p=t=>{const e=d(t),o=new Date(e);return o.getUTCFullYear()+"-"+("0"+(o.getUTCMonth()+1)).slice(-2)+"-"+("0"+o.getUTCDate()).slice(-2)};var u=o(784),h=o(6327);const m=(t,e)=>e.y-t.y,f=t=>"dataset"===t.class&&"2.0"===t.version,g=(t,e)=>o=>(t=>{const e=t||{};return f(e)?e:e.dataset||{}})(o)[t]||e,y=g("dimension",{}),x=g("value",{}),v=g("status",{}),b=g("label"),C=g("updated"),S=g("source"),w=t=>{const e=t||{},o=f(e)?e:y(e);return[o.id||[],o.size||[]]},A=(t,e)=>e&&(t[e]||{}).category||{},j=(t,e)=>{const o=y(e),n=x(e),s=v(e),[r,i]=w(e),{index:a,label:l}=((t,e,o)=>{const n=e.findIndex((t=>1!==t)),s=-1!==n?t[n]:"";return A(o,s)})(r,i,o),c={};let d;return(0,u.sA)(a)&&(0,u.sA)(l)?(0,u.Co)(l).reduce(((e,o)=>{if(d=a[o],null!=d){const r=n[d],i=l[o];(0,u.Et)(r)&&(0,u.O8)(i)&&e.push(t(r,((t,e)=>{const o=e[t];return o?(++e[t],`${t} (${o+1})`):(e[t]=1,t)})(i,c),s[d]))}return e}),[]):[]},$=t=>j(h.eb,t).sort(m),T=t=>(e,o)=>{const n=o.length-1,s="*"===o[n],r=s?o.slice(0,n):o,i=d(r,t);return s?[i,e,"p"]:[i,e]},k=(t,e)=>[p(e),t],_=t=>j(k,t).reverse()},1031:(t,e,o)=>{"use strict";o.d(e,{FE:()=>x,KM:()=>A,b9:()=>w,zY:()=>S});var n=o(5856),s=o(784),r=o(8849),i=o(2908),a=o.n(i),l=o(5355);const c=(t,e,o)=>a().Color(t).brighten(e).setOpacity(o).get();const d=-3/7,p=4/7,u=l.HF,h=l.ay,m=l.VV,f=function(t,e,o){return void 0===t&&(t=l.HF),void 0===e&&(e=0),void 0===o&&(o=.75),c(t,d+e,o)};var g=o(1280);const y=(t,e,o,n,s)=>{const r=t.length;if(e>=r)return[r,o];let i=r,a=e;for(;a=n){i=a;break}return i{let{data:e,total:o,propName:n="value",level1:s=60,level2:r=90}=t;const[i,a]=((t,e,o,n,s)=>{const r=e/100,i=r*o,a=r*n,[l,c]=y(t,0,0,i,s),[d]=y(t,l,c,a,s);return[l,d]})(e,o,s,r,n);((t,e,o)=>{const n=o-e,s=t.length-o;let r;t.forEach(((t,i)=>{i(e,o,n)=>(0,s.Ax)(`${e}
${t(o,n)}`),b=v(((t,e)=>`${(0,n.A)(e)} (${t}%)`)),C=v((t=>t>=1?`${t}%`:`.${(""+t).split(".")[1]}%`)),S=t=>(t=>t.length>8&&t[0].value>1e3)(t)?C:b,w=v((t=>(0,s.Et)(t)?`${t}%`:"")),A=(t,e)=>{if(0!==e){const o=e/100;t.forEach((t=>{t.percent=(0,s.W7)(t.value/o),t.name=w(t.label,t.percent>1?t.percent:"")})),(0,r.GY)(t),x({data:t,total:e})}}},4031:(t,e,o)=>{"use strict";o.d(e,{O9:()=>l,kV:()=>i,Ec:()=>d,e:()=>p});const n=t=>null==t||0===Object.keys(t).length;var s=o(784),r=o(8849);const i=t=>`function=${t}`,a=t=>e=>{const{apiKey:o}=e,n=t(e)(e);return e.apiKey=void 0,`https://www.alphavantage.co/query?${n}&apikey=${o}`},l="Request Error",c=t=>{if(n(t))throw(0,s.UE)();const e=t["Error Message"]||t.Information;if(e)throw(0,s.UE)(l,e)},d=t=>({getRequestUrl:a(t),checkResponse:c}),p=(t,e,o)=>n=>{const i="10"===o?t=>parseInt(t,10):"round"===o?s.W7:parseFloat;return(n||[]).reduce((function(o,n){void 0===n&&(n={});const r=i(n[t]);return(0,s.yr)(r)||o.push([(0,s.cY)(n[e]),r]),o}),[]).sort(r.vJ)}},8849:(t,e,o)=>{"use strict";o.d(e,{vJ:()=>l,j4:()=>c,GY:()=>p,_u:()=>d});const n=t=>(e,o)=>(e||{})[t]<(o||{})[t]?-1:(e||{})[t]===(o||{})[t]?0:1,s=(t,e)=>(o,n)=>o[t]n[t]?1:o[e]n[e]?1:0,r=n("value"),i=s("y","name"),a=t=>e=>e.sort(t).reverse(),l=n(0),c=s("value","id"),d=a(i),p=a(r)},3851:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(784),s=o(2947),r=o(6777);const i=t=>{let{subtitle:e,title:o}=t;return(0,n.MZ)(": ",e,o)},a=function(t,e){void 0===e&&(e=i);const o={toConfig:(o,n)=>{const r=t(o,n),i=(0,s.A)(n.subtitle,n.title,n.seriaType,n.seriaColor,r,n.isAlg),{_itemKey:a}=n;return i.zhConfig={id:a,key:a,itemCaption:e(n,o),itemTime:n.time,dataSource:n.dataSource},{config:i}}};return o.toSeries=(0,r.A)(o.toConfig),o}},3317:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(784),s=o(4668),r=o(704);const i=(t,e,o)=>({name:t,pn:e,toN:[],...(0,s.wQ)({color:o})}),a=(t,e,o)=>{let n=(0,r.default)(0),s=0;for(;s{try{const n=parseInt((0,r.default)(e).div(t).toFixed(0),10),[s,i]=(t=>t?["to left","#184416"]:["to right","#6c3632"])(o);return{background:`linear-gradient(${s}, ${i} ${n}%, transparent ${n}% ${100-n}%)`}}catch(t){return}},c=(t,e,o)=>({b_p:t[0],b_q:t[1],a_p:e[0],a_q:e[1],style:{b_q:o(t[1],!0),a_q:o(e[1])}}),d=(t,e,o)=>{const n=c(t,e,o);return n.b_n=t[2],n.a_n=e[2],n},p=(t,e)=>{const{bids:o,asks:r}=t,p=(0,n.Et)(r[0][2]),u=e||o.length,h=[],m=a(o,1,u),f=a(r,1,u),g=m.add(f).div(100),y=(0,n.Jr)(l,g),x=p?d:c;let v,b,C=0;for(;C{let{crTitle:e,crLimit:o=n.Cx,crOrderBook:r=n.QN}=t;return{toConfig(t,n){const{_itemKey:i,dataSource:a}=n,l=e(n,t),c=r(t),d=o(n),[u,h]=p(c,d);return{config:(0,s.gO)({id:i,title:l,headers:u,rows:h,dataSource:a})}}}}},9026:(t,e,o)=>{"use strict";o.d(e,{GT:()=>d,T9:()=>p,Vc:()=>c,C_:()=>a,s4:()=>l});var n=o(6327);const s=(0,o(3317).A)({crTitle:t=>{let{items:e}=t;return e[0].c}}),r=t=>"function"==typeof t,i=(t,e,o)=>(0,n.hQ)(o)?t:e,a=(t,e)=>o=>i(t,e,o),l=(t,e,o)=>s=>(0,n.vD)(s)?r(t)?t(s):t:i(e,o,s),c=(t,e,o,s)=>{const r=l(e,o,s);return e=>(0,n.WG)(e.seriaType)?t:r(e)},d=t=>{let{rAdapter:e,getRoute:o,isKey:n,crDfKey:s}=t;const i=o||(t=>e=>{const{_pn:o="dfSubId"}=t,n=e[o];return n&&t[n]||t.DF})(e),a=(t=>e=>{const o=t(e);return r(o)?o():o})(i);return{crKey:n||s?t=>{const e=a(t).crKey||s;return r(e)?e(t):void 0}:void 0,toConfig:(t,e)=>a(e).toConfig(t,e),isAdd:t=>r(a(t).toSeries),toSeries:(t,e,o)=>a(e).toSeries(t,e,o)}},p=(t,e)=>d({rAdapter:{DF:t,OB:e||s}})},9876:(t,e,o)=>{"use strict";o.d(e,{e$:()=>d,w9:()=>l,x5:()=>c});var n=o(3956),s=o(4999),r=o(784);const i=t=>{let{_itemKey:e,itemCaption:o,dataSource:n}=t;return{id:e,key:e,itemCaption:o,dataSource:n}},a=t=>({zhConfig:i(t)}),l=function(t,e){return void 0===e&&(e="EXR"),o=>(o.dfCase===e&&(o.itemCaption=((t,e)=>`${(0,r.hE)((0,r.Ps)(t.items[0]))}/${e}`)(o,t)),a(o))},c=(t,e)=>(o,n)=>{const s=e(n);return t(o).reduce(((t,e)=>{const o=(0,r.sA)(e)?s(e):void 0;return o&&(0,r.Et)(o[0])&&(0,r.Et)(o[1])&&t.push(o),t}),[])},d=t=>{let{crKey:e=r.as,crData:o,crConfOption:i=a,addConfOption:l=r.Cx,trOption:c=r.Cx,addToConfig:d=r.QN}=t;const p={crKey:e,toConfig(t,e){const s=o(t,e),a=(0,r.Ep)(s)?s:(s||{}).data,p=(0,r.kp)(i(e,t,s),l(e,t));return c(e,t),{config:d((0,n.A)({option:e,data:a,confOption:p}),t,e,s)}},toSeries:(t,e)=>(0,s.j7)({adapter:p,json:t,option:e,type:"spline"})};return p}},2947:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(9270),s=o(4999);const r=function(t,e,o){const n=[];let s=o,r=t.length;for(n[o]=t[r-1];s>0;)n[s-1]=t[e[r][s]-1],r=e[r][s]-1,s--;return n};const i=function(t,e){const o=[],n=[];let s,r,i=0;for(s=0;s=i+n[d][r-1]&&(o[s][r]=u,n[s][r]=i+n[d][r-1])}o[s][1]=1,n[s][1]=i}return{lowerClassLimits:o,varianceCombinations:n}};const a=function(t,e){if(e>t.length)return null;t=t.slice().sort(((t,e)=>t-e));const o=i(t,e).lowerClassLimits;return r(t,o,e)},l=["#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b","#74c476"],c=Array.isArray,d=function(t,e,o){if(void 0===e&&(e=l),void 0===o&&(o=6),!c(t))return[];const n=t.length,s=o>n?n:o,r=a(t.map((t=>t.y)),s);return c(r)&&t.forEach((t=>{t.color=e[((t,e)=>{const o=t.length-1;if(e===t[o])return o-1;for(let n=0;n=t[n]&&e(0,n.A)((0,s.mw)((o||"").split("_")[0],(0,p.mm)(i),r,a?void 0:r),(0,s.Kl)(t,e),(0,s.vt)(0,{color:r,data:(0,p.R0)(o)?d(i):i}),s.Qs,s.qP)},9550:(t,e,o)=>{"use strict";o.d(e,{B0:()=>p,GI:()=>l,TU:()=>u,f7:()=>i,z:()=>c});var n=o(6559),s=o(784),r=o(3160);const i=()=>(0,n.f7)().toUpperCase(),a=(t,e,o)=>`${(t=>t?`

`:"

")(o)}${t}

`,l=t=>(0,s.Jr)(a,t),c=(t,e)=>(0,s.Jr)(a,t,e),d=["url","loadId","title","subtitle","itemCaption","seriaType","items"],p=t=>d.reduce(((e,o)=>{const n=t[o];return null!=n&&(e[o]=(0,s.Ep)(n)?n.map((t=>({...t}))):n),e}),(0,s.jD)()),u=t=>{const e=t[t.length-1];return{x:(0,r.z)(e),y:(0,r.g)(e)}}},3029:(t,e,o)=>{"use strict";o.d(e,{$Q:()=>R,be:()=>P,ox:()=>I,Xz:()=>B,E1:()=>S,Yq:()=>U,cZ:()=>O,DZ:()=>n.DZ,Jd:()=>D,cL:()=>M,x1:()=>F,TX:()=>N});var n=o(784),s=o(4850),r=o(4999),i=o(5121),a=o(6106),l=o(8849),c=o(9550),d=o(3730),p=o(8678);const u=(t,e,o)=>{const n=t.split(e),s=parseInt(n[1],10)*o,r=(0,p.wF)(n[0],s);return Date.UTC(n[0],s-1,r)},h=t=>Date.UTC(t,11,31),m=t=>{const e=t&&t[5];if(o=e,(0,d.Et)(parseInt(o,10)))return u(t,"-",1);var o;if("Q"===e)return u(t,"-Q",3);if("S"===e){const e=t.split("-S");return"1"===e[1]?Date.UTC(e[0],5,30):h(e[0])}return h(parseInt(t,10)>1970?t:1970)},f=["Austria","Belgium","Bulgaria","Croatia","Cyprus","Czechia","Denmark","Estonia","Finland","France","Germany","Greece","Hungary","Ireland","Italy","Latvia","Lithuania","Luxembourg","Malta","Netherlands","Poland","Portugal","Romania","Slovakia","Slovenia","Spain","Sweden"],g=Object.assign,y=Array.isArray,x=(t,e)=>{const o="string"==typeof t?`Updated: ${t.replace("T"," ")}`:"",n=e||{},{id:s,subTitle:r}=n,i=r?`Metric: ${r}`:"";return`

${o}

${`Dataset: ${(s||"").toLowerCase()}`}

${n.description||""} ${i}

`},v="OBS_PERIOD_OVERALL_",b=`${v}OLDEST`,C=`${v}LATEST`,S=t=>{let{label:e,updated:o,extension:n}=t;const[s,r]=(t=>{const{annotation:e}=t||{};let o,n,s="",r="";if(y(e))for(n=0;ne=>-1!==t.indexOf(e.c),A=w(["EU","EU28","EU27_2020","G20","Group of Twenty"]),j=w(["EA","EA11","EA12","EA13","EA15","EA16","EA17","EA18","EA19","EA20","EUROZONE"]),$=t=>-1===f.indexOf(t.c),T=(t,e,o)=>{t.series[0].data.forEach((t=>{!t.color&&e(t)&&(t.color=o)}))},k=t=>t&&":"!==t&&1===t.length?t:void 0,_=(t,e,o)=>[m(e),t,k(o)],E=t=>{let{dfId:e,dfTable:o}=t;return e||o},D=t=>"geo"!==t&&"reporter"!==t,I=function(t,e){let{isFilterZero:o}=void 0===e?{}:e,s=(0,a.ox)(_,t).sort(l.vJ);return o&&(s=(0,n.XR)(s)),[s,(0,n.DZ)(s),(0,n.D4)(s)]},L=(t,e,o)=>[e.replace("M","-"),t,k(o)],N=t=>(0,a.ox)(L,t),O=t=>{const{key:e,itemCaption:o,url:n}=t,s=B(t);return{id:e,key:e,itemCaption:o,itemConf:n?{_itemKey:e,...(0,c.B0)(t),dataSource:s}:void 0,dataSource:s,...U(t)}},M=t=>{let{config:e,data:o,json:n,option:r}=t;const{title:i,subtitle:a}=r;(0,s.M4)(e,i,a),e.zhConfig=O(r),e.info=S(n),e.series[0].data=o},F=t=>{let{config:e,json:o,option:n}=t;e.info=S(o)},W=t=>{let{title:e="EU"}=t;return e},R=(t,e)=>{let{json:o,option:n,data:s,categories:i,min:a}=e;const[l,c]=n.isFilterZero?((t,e)=>{const o=[],n=[];return t.forEach((t=>{0!==t.y?o.push(t):n.push(t.c)})),[o,0!==n.length?e.filter((t=>-1===n.indexOf(t))):e]})(s,i):[s,i];M({data:l,config:t,json:o,option:n}),(t=>{let{config:e,categories:o,min:n,option:s}=t;const{time:i}=s;e.xAxis.categories=o,((t,e,o)=>{const n=t.yAxis;e?n.zhNotZoomToMinMax=!0:n.min=o})(e,s.isNotZoomToMinMax,n),e.series[0].name=i,g(e.zhConfig,{itemCaption:W(s),itemTime:i}),(0,r.Qs)(e)})({categories:c,config:t,min:a,option:n}),(t=>{T(t,A,"#001489"),T(t,j,"#ffdd00"),T(t,$,"#8085e9")})(t)},P=()=>(0,s.Gs)(i.Gr),B=t=>{const e=t.dataSource;return`${e&&-1!==e.indexOf("Eurostat")?e:"Eurostat"} (${E(t)||""})`},U=t=>({linkFn:"ES",item:{dataset:E(t)}})},8876:(t,e,o)=>{"use strict";o.d(e,{Jd:()=>s.Jd,Wz:()=>p,_W:()=>n._W,hQ:()=>u,jh:()=>h,lC:()=>m,sS:()=>d});var n=o(784),s=o(3029),r=o(6460);const i=[r.$g,r.Sx,r.zM,r.Fm,r.bR],a="https://ec.europa.eu/eurostat/api",l="dissemination/statistics/1.0/data",c=`${a}/comext/${l}`,d=`${a}/${l}`,p="",u=(0,n.Gu)(i),h=t=>t===r.$g,m=function(t,e,o,n){return void 0===n&&(n="&sinceTimePeriod=1999-01"),`${t?c:d}/${e}?${o}${n}`}},6777:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(6327);const s=t=>(e,o,s)=>{const r=t(e,o).config,i=r.series[0],a=(0,n.bW)(s);return(0,n.lM)(r,a)?(0,n.Ge)(i,a):i}},3160:(t,e,o)=>{"use strict";o.d(e,{g:()=>r,z:()=>s});var n=o(784);const s=t=>(0,n.Ep)(t)?t[0]:(t||{}).x,r=t=>(0,n.Ep)(t)?(0,n.Et)(t[1])?t[1]:"0.0":t&&(0,n.Et)(t.y)?t.y:"0.0"},7294:(t,e,o)=>{"use strict";o.d(e,{$:()=>i,f:()=>r});var n=o(5355);const s=function(t,e,o,n){return void 0===n&&(n=!1),{index:t,color:e,name:o,isVisible:n}},r=s,i=()=>[s(0,n.wN,"Close",!0),s(1,n.lb,"High"),s(2,n.LW,"Low"),s(3,n.xp,"Open")]},353:(t,e,o)=>{"use strict";o.d(e,{$:()=>a,_:()=>i});var n=o(704),s=o(5355);const r=Object.assign,i=t=>{let{date:e,open:o,close:n,volume:i,option:a}=t;const l=o&&n>o?s.KG:o&&n{let{date:e,close:o,open:r}=t;const i=r&&o?(0,n.default)(o).minus(r):(0,n.default)("0.0"),a=o?i.times(100).div(o).abs().toFixed(2):(0,n.default)("0.0"),l=i.gt(0)?s.oH:i.gte(0)?r?s.Cj:s.uL:s.KG;return{x:e,y:parseFloat(a),close:o,open:r||"Unknown",color:l}}},4668:(t,e,o)=>{"use strict";o.d(e,{Ju:()=>p,SO:()=>a,b5:()=>l,gO:()=>d,mG:()=>u,tJ:()=>s,wC:()=>c,wQ:()=>i,zS:()=>m});var n=o(784);const s=(t,e,o)=>{const[s,r]=(0,n.O8)(e)?[e,o]:[t.toLowerCase(),e];return{name:t,pn:s,isHide:r}},r=t=>({style:t}),i=t=>r({fontWeight:"bold",...t}),a=t=>r({textAlign:"center",...t}),l=t=>({toN:[t],isF:!0,...i()}),c=(t,e,o,s,r,i,a)=>({id:t,title:e,headers:o,flatHeaders:s,rows:r,dataSource:i,tableFn:{numberFormat:n.jq,...a}}),d=t=>{let{id:e,title:o,headers:n,flatHeaders:s,rows:r,dataSource:i,fns:a}=t;return{...c(e,o,n,s,r,i,a),zhCompType:"TABLE",zhConfig:{id:e,key:e}}},p=function(t,e,o){return void 0===t&&(t=[]),void 0===e&&(e=[]),void 0===o&&(o="id"),e.map(((e,s)=>(t.forEach((t=>{e[t.pn]=((t,e)=>{const{pn:o,toN:s}=e,r=!!s,i=r&&s[0],a=t[o];return r?(0,n.Qv)(i)?(0,n.W7)(a,i):(l=parseFloat(a),void 0===c&&(c=""),l-l==0?l:c):a;var l,c})(e,t)})),e.id=e[o]||`id${s}`,e)))},u=(t,e)=>({caption:t,items:e}),h=(t,e,o)=>(t.push(((t,e)=>(0!==t&&(e.id=t),e))(o,e)),o+1),m=t=>{const e=[];let o=0;for(const s of t)if((0,n.Ep)(s.items))for(const t of s.items)o=h(e,t,o);else o=h(e,s,o);return e}},783:(t,e,o)=>{"use strict";o.d(e,{Gz:()=>c,PT:()=>a,Pv:()=>d,Wc:()=>p,ai:()=>l,wY:()=>i,zp:()=>r});const n="tp__",s=`${n}header`,r=`${s} ${o(4558).WE}`,i=`${s}__caption text-clip`,a=`${s}__close`,l=`${n}row`,c=`${n}title`,d=`${n}value`,p="hc-gl"},4850:(t,e,o)=>{"use strict";o.d(e,{G8:()=>f,Gs:()=>C,Lb:()=>A,M4:()=>b,Nv:()=>$,RM:()=>v,Te:()=>w,fb:()=>T,gU:()=>g,gj:()=>j,hN:()=>S,n7:()=>x});var n=o(4558),s=o(3730),r=o(55),i=o(5672),a=o(5355),l=o(5121);const c={fontSize:"16px",fontWeight:"bold"},d={text:"",floating:!0,align:"left",x:0,style:{...c,stroke:"transparent",color:a.yj,fill:a.yj}},p={endOnTick:!1,maxPadding:.15,startOnTick:!1,minPadding:.15,title:{text:""}},u=t=>((0,s.sA)(t)&&(t.text=(0,r.A)(t.text)),t),h=t=>(0,s.O8)(t)?{text:(0,r.A)(t)}:u(t),m=function(t){return void 0===t&&(t=!0),t?{color:a.PG,width:1,zIndex:2}:void 0},f=(t,e)=>t&&(0,s.O8)(t)?t.toLowerCase():e||"spline",g=t=>(0,i.A)(!1,{enabled:!0,position:{align:"right",verticalAlign:"bottom",x:-10,y:-5}},t),y=t=>e=>(0,i.A)(!1,{...d,y:t},u(e)),x=y(-10),v=y(10),b=(t,e,o)=>{t.chart.spacingTop=25,t.title=x({text:e}),t.subtitle=v({text:o})},C=t=>({pointFormatter:t,headerFormat:""}),S=function(t){let{title:e="",seriaType:o,seriaColor:n,seriaWidth:s=1,spacingTop:r,isCrosshair:i}=void 0===t?{}:t;return{zhSeries:{count:0},chart:{marginRight:50,spacingTop:r},title:h(e),legend:{enabled:!1},xAxis:{type:"datetime",labels:{},crosshair:m(i)},yAxis:{...p,crosshair:m(i),opposite:!0,showEmpty:!0},series:[{turboThreshold:2e4,type:f(o,"area"),color:n,tooltip:C(l.kd),lineWidth:s,states:{hover:{lineWidth:s}}}]}},w=t=>({enabled:t,color:(0,n.Jq)(),crop:!1,overflow:"allow",style:{fontSize:"15px"}}),A=t=>({events:{mouseOver:t}}),j=(t,e)=>({color:t,id:e,dashStyle:"solid",width:1,zIndex:4,label:{text:e,verticalAlign:"top",style:{color:t,fontWeight:"bold",fontSize:"medium"}}}),$=t=>(0,i.A)(!1,{opposite:!0,tickLength:0,tickPosition:"inside",labels:{y:-5}},t),T=(t,e)=>({...p,id:t,lineColor:e,tickColor:e,gridLineWidth:0,lineWidth:2,labels:{style:{color:e,fontWeight:"bold",fontSize:"15px"}}}),k=(t,e)=>o=>(0,i.A)(!1,{lineColor:t,lineWidth:0,marker:{enabled:!1,lineWidth:1,lineColor:e},state:{hover:{lineWidth:2}}},o||{});k(a.Yn,a._v),k(a.dM,a.F)},5248:(t,e,o)=>{"use strict";o.d(e,{M$:()=>u,Xk:()=>p,hN:()=>m,wo:()=>h});var n=o(5672),s=o(5355),r=o(4850),i=o(6882),a=o(5121),l=o(1509);const c=Object.assign,d=["spline","line","area"],p=t=>{return e=((t.series||[])[0]||{}).type,-1!==d.indexOf(e);var e},u=(t,e,o,n,s)=>{t.series[o]={type:"area",lineWidth:1,name:n,data:e,...s,point:(0,r.Lb)(l.A)}},h=function(t){let{seriaType:e,seriaWidth:o,seriaColor:n,...s}=void 0===t?{}:t;return{type:(0,r.G8)(e),lineWidth:o??1,color:n,tooltip:(0,r.Gs)(a.kd),...s}},m=t=>{const e=(0,n.A)((0,r.hN)(t),{chart:{zoomType:"xy",xDeltaCrossLabel:4,yDeltaCrossLabel:20},zhDetailCharts:[]});return e.xAxis=c((0,r.Nv)(e.xAxis),{events:{afterSetExtremes:i.ih}}),e.yAxis=c(e.yAxis,{lineWidth:0,tickLength:0,offset:4,labels:{x:8,y:5},events:{afterSetExtremes:i.GI}}),e.yAxis.plotLines=[(0,r.gj)(s.bX,"max"),(0,r.gj)(s.VU,"min")],e}},6882:(t,e,o)=>{"use strict";o.d(e,{GI:()=>$,H$:()=>s.H$,H1:()=>D,Jq:()=>n.Jq,P0:()=>T,PW:()=>L,RG:()=>_,Uq:()=>s.Uq,Wj:()=>k,eh:()=>A,f7:()=>r.f7,gj:()=>I,ih:()=>j,sP:()=>N,tm:()=>E});var n=o(4558),s=o(7603),r=o(6559),i=o(704),a=o(5856),l=o(3695),c=o(2823),d=o(8678),p=o(4850);const u=t=>"number"==typeof t&&t-t==0,h=Array.isArray,m=Object.assign,f=(0,c.Tg)("x"),g=Number.NEGATIVE_INFINITY,y=Number.POSITIVE_INFINITY,x=(t,e)=>{let{hasSecondYAxis:o,series:n,chart:s}=t;const r=s?.yAxis?.[0];if(!o&&(i=r?.update,"function"==typeof i)){const[t,o]=((t,e)=>{const{minY:o,maxY:n}=t||{},s=e?.yAxis?.[0],{min:r,max:i}=s||{},a=r>o?o:r,l=i`  Δ ${t}%`,C=t=>parseFloat(t.round(4).toString(),10),S=(t,e,o)=>(0,r.tM)({bValue:t.minus(e),bTotal:o}),w=(t,e)=>t!==e?(0,i.default)(t):(0,i.default)(0),A=t=>{const{chart:e}=t,o=(t=>{const{options:e}=t;return e.zhSeries=m({count:0,titleEls:[]},e.zhSeries),e})(e),n=(t=>{let e,{chart:o,series:n,label:s,hasSecondYAxis:r}=t;if(r&&(e=(t=>2===t.yAxis.length?"#f7a35c":"#f45b5b")(o),o.addAxis((0,p.fb)(s,e)),n.yAxis=s,n.color=e),h(n)){const t=n.length-1;n.forEach(((e,n)=>{r&&(e.yAxis=s);const i=n===t?[!0,!0]:[!1,!1];o.addSeries(e,i)}))}else o.addSeries(n,!0,!0);return e})(t),s=((l=t.label)||"").length>14?l.substring(0,14):l,{x:r,y:i}=(t=>{const e=t.zhSeries.count,o=Math.floor(e/3);return{x:120+125*e-375*o,y:95+20*o}})(o),a=((t,e,o,n,s)=>t.renderer.text(e,o,n).css({color:s,"font-size":"16px","font-weight":800}).add())(e,s,r,i,t.color||n||(t=>{const{series:e}=t,o=(e||[]).length;return o>0?e[o-1].color:void 0})(e));var l;o.zhSeries.count+=1,o.zhSeries.titleEls.push(a),x(t,o)},j=function(t){const[e,o]=(t=>{let{userMin:e,userMax:o,min:n,max:s}=t;return[e||n,e?o:s]})(t);(this.chart.options.zhDetailCharts||[]).forEach((t=>{t.xAxis[0].setExtremes(e,o,!0,!0)}))},$=function(t){const{trigger:e,userMax:o,userMin:n}=t;"zoom"===e&&o&&this.setExtremes(n,o+.05*(o-n),!0,!0)},T=(t,e,o)=>{const n=(t.userOptions.zhConfig||{}).id,s=t.series[0].data,i=(0,d.A4)(o),a=u(i)?f(s,i):-1,c=-1===a?void 0:s[a].y;return u(c)?m({},e,(0,r.P0)({nowValue:e.value,prevValue:c,fnFormat:l.A}),{valueTo:c,dateTo:o,_id:n}):void 0},k=a.A,_=l.A,E=()=>(0,r.f7)("TP_"),D=t=>{let{plotLines:e,min:o,max:n}=t;n>g&&v(e[0],n),o{let{plotLines:e,min:o,max:n,value:s}=t;const r=w(n,g),i=w(o,y),a=w(s,null),l=S(r,a,a),c=S(a,i,a);v(e[0],C(r),b(l)),v(e[1],C(i),b(c))},L=(t,e)=>e>g&&t{null!=e&&t.forEach((t=>t.y=e))}},2096:(t,e,o)=>{"use strict";o.d(e,{e:()=>h,v:()=>p});var n=o(2908),s=o.n(n),r=o(1509),i=o(5355);const a=function(t,e){let o;for(void 0===t&&(t=[]),o=0;o<4;o++)t.push(s().Color(e).brighten((o-3)/7).get())},l="#909090";var c=o(783);const d=["#7cb5ec","#8abb5d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"],p=t=>d[t%d.length],u=(t,e)=>({style:{color:t,fontSize:e,fontWeight:"bold"}}),h={credits:{enabled:!0,position:{align:"right",x:-25,verticalAlign:"bottom",y:-5},style:{fontSize:"11px",color:l,fill:l,textDecoration:"underline"}},chart:{alignTicks:!1,height:300,spacingTop:5,spacingBottom:20,marginRight:50,plotBackgroundColor:"transparent",backgroundColor:"transparent",reflow:!1,panning:!0,panKey:"shift",zoomType:"x",style:{fontFamily:"Roboto, Arial, Lato, sans-serif",fontSize:"15px"},resetZoomButton:{position:{align:"right",verticalAlign:"top",x:-10,y:0},theme:{fill:i.fc,stroke:i.fc,r:4,style:{color:i.bg},states:{hover:{fill:i.fc,stroke:i.t_,"stroke-width":2,style:{color:i.t_}}}},relativeTo:"chart"},events:{load:function(){this.zhTooltip=new(s().Tooltip)(this,this.options.tooltip),this.credits.element.onclick=function(){window.open("https://highcharts.com","_blank")}}}},title:{style:{overflow:"hidden",textOverflow:"ellipsis"}},colors:d,labels:{items:[]},exporting:{fallbackToExportServer:!1,chartOptions:{chart:{plotBackgroundColor:i.qN,backgroundColor:i.zu},title:{x:0,y:5},subtitle:{x:0,y:22},plotOptions:{area:{fillColor:i.Ev}},xAxis:{lineWidth:2,lineColor:i.HA,gridLineColor:i.MR},yAxis:{lineWidth:2,lineColor:i.HA,gridLineColor:i.MR}}},navigation:{buttonOptions:{enabled:!1}},plotOptions:{area:{point:{events:{mouseOver:r.A}}},spline:{point:{events:{mouseOver:r.A}}},column:{borderWidth:0,groupPadding:.1,pointPlacement:0},series:{turboThreshold:0,marker:{radius:3,symbol:"circle",states:{hover:{lineColor:"transparent",lineWidth:0,radius:2,radiusPlus:0}}},states:{hover:{enabled:!1},inactive:{enabled:!1}},stickyTracking:!1,events:{click:function(t){const e=this.chart.zhTooltip;e.options.enabled=!0,e.hide(!1),e.refresh(t.point,t),e.options.enabled=!1}}},pie:{colors:function(t){let{base1:e=i.HF,base2:o=i.ay}=void 0===t?{}:t;const n=[];return a(n,e),a(n,o),n}()}},tooltip:{useHTML:!0,enabled:!1,hideDelay:100,followPointer:!1,shared:!1,backgroundColor:i.gN,borderWidth:2,borderRadius:10,headerFormat:`{point.key}
'`,pointFormat:`Value: {point.y}
`},xAxis:{lineColor:i.gW,lineWidth:3,tickColor:i.vN,tickWidth:0,gridLineColor:i.H2,gridLineDashStyle:"Dot",gridLineWidth:1,labels:u(i.Yq,"15px")},yAxis:{lineColor:i.N3,lineWidth:3,tickColor:i.gJ,tickWidth:0,gridLineColor:i.oX,gridLineDashStyle:"Dot",labels:u(i.L5,"15px")}}},9479:(t,e,o)=>{"use strict";o.d(e,{i:()=>i,k:()=>c});var n=o(2908),s=o.n(n),r=o(5355);const i=t=>{const e=t?r.fX:r.mz;s().setOptions(((t,e)=>({plotOptions:{area:{fillColor:{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,t],[1,e]]}}}}))(r.tb,e))},a=t=>({labels:{style:{color:t}}}),l="grey",c=function(t,e){void 0===t&&(t=l),void 0===e&&(e=l),s().setOptions({xAxis:a(t),yAxis:a(e)})}},5121:(t,e,o)=>{"use strict";o.d(e,{jc:()=>st,MZ:()=>tt,Gr:()=>X,Gf:()=>et,x_:()=>rt,xl:()=>ot,uz:()=>it,BA:()=>H,kd:()=>Q,b:()=>nt});var n=o(6882);let s;const r={get once(){return s=!0,!0}},i=()=>{if("boolean"==typeof s)return s;try{window.addEventListener("test",r,r),window.removeEventListener("test",r,r)}catch(t){s=!1}return s},a="#2f7ed8",l="#fdb316";var c=o(783);const d=function(t,e){return void 0===e&&(e=""),`style="color:${t};${e}"`},p=function(t,e,o){void 0===e&&(e="");let{color:n=a,status:s}=void 0===o?{}:o;const r=d(n,"padding-right:5px;"),i=t?`${t}: `:"",l=null!==e?e:"",p=s?`(${s})`:"";return`\n ${i}\n ${l}${p}`},u=(t,e)=>(t=>"NoData"===t||""===t||null==t)(e)?"":p(t,(0,n.RG)(e)),h=function(t,e,o){return void 0===t&&(t=""),void 0===e&&(e=""),`
${p(t,e,o)}
`},m=function(t,e,o){return void 0===t&&(t=" "),void 0===o&&(o=""),`
\n ${t}\n X\n
`},f=(t,e,o)=>{((t,e)=>{const o=document.getElementById(t);o&&o.addEventListener("click",e,!!i&&{once:!0})})(t,function(t,e){return void 0===t&&(t={}),()=>{t.series&&t.series.chart.zhTooltip.hide(),(t=>"function"==typeof t)(e)&&e(t)}}(e,o))},g={fnTemplate:t=>{let{date:e,id:o,color:n,valueText:s="Value",value:r,point:i}=t;const a=(t=>{const{index:e,series:o}=t,{userOptions:n}=o||{},{data:s}=n||{},r=((s||[])[e]||[])[2];return r&&":"!==r?r:void 0})(i);return`${m(e,o)}\n
\n ${h(s,r,{color:n,status:a})}\n
`},isWithColor:!0,isWithValueText:!0,isWithValue:!0},y=g,x={...g,fnDateFormat:n.H$},v={fnTemplate:t=>{let{id:e,point:o}=t;const{y:s,status:r,d:i,category:a,c:l,series:c}=o,{name:d,color:p}=c||{},u=a||l;return`${m(i?`${u}-${i}`:u,e)}\n
\n ${h("Value",(0,n.RG)(s),{status:r})}\n ${h("Seria",d,{color:p})}\n
`}},b={fnTemplate:t=>{let{id:e,point:o}=t;const{y:s,c:r,category:i,status:a}=o;return`${m(r||i,e)}\n
\n ${h("Value",(0,n.RG)(s),{status:a})}\n
\n Remove\n
\n
`},onAfterRender:(t,e)=>{setTimeout((()=>((t,e)=>{f(t,e),f(t+"_R",e,(t=>t.series.chart.zhRemoveCategory(e.category)))})(t,e)),1)}},C={fnTemplate:t=>{let{date:e,id:o,valueText:n,value:s,point:r}=t;const{exValue:i,price:a}=r;return`${m(e,o)}\n
\n ${h("Ex-Dividend",i,{color:"#90ed7d"})}\n ${h("Close",a)}\n
`}},S={fnTemplate:t=>{let{date:e,id:o,valueText:n,value:s,point:r}=t;const{splitRatio:i,price:a}=r;return`${m(e,o)}\n
\n ${h("Split Ratio",i,{color:"#ed5813"})}\n ${h("Close",a)}\n
`}},w={fnTemplate:t=>{let{date:e,id:o,point:n}=t;const{exValue:s}=n;return`${m(e,o)}\n
\n ${h("Value",s)}\n
`}},A="tp__body",j="tp__row",$={fnTemplate:t=>{let{date:e,id:o,value:n,point:s}=t;const{_open:r,_close:i,_low:a,_high:l}=s;return`${m(e,o)}\n
\n ${h("Volume",n)}\n
\n ${u("Open",r)}\n ${u("Close",i)}\n
\n
\n ${u("Low",a)}\n ${u("High",l)}\n
\n
`},fnDateFormat:n.H$,isWithValue:!0},T={fnTemplate:t=>{let{date:e,id:o,value:n,point:s}=t;const{color:r,y:i,close:a,open:l}=s;return`${m(e,o)}\n
\n ${h("ATH",i+"%",{color:r})}\n ${h("Prev Close",a)}\n ${h("Next Open",l)}\n
`}};var k=o(6842),_=o(9073),E=o(983),D=o(4848);const{SparkView:I,Line:L,Spots:N,Spot:O,ReferenceLine:M,Bars:F}=E.A,W={stroke:"red",strokeOpacity:.75,strokeDasharray:"5, 3"},R={stroke:"black",strokeWidth:"1",fill:_.fN,fillOpacity:"0.9"},P="sparklines",B="sparklines_bar",U=(t,e)=>{const o=54+10*t.length,n=50+10*e.length,s=o>n?o:n;return[s+116,s]},z=t=>{let{fullWidth:e,width:o,year:n,value:s,total:r,percent:i,id:a}=t;const c=`style="float:left;padding-right:10px;width:${o}px;"`;return`
\n
\n
\n ${h("Year",n,{color:l})}\n ${h("Value",s)}\n
\n
\n
\n
\n
\n
\n ${h("Total",r)}\n ${h("Percent",i)}\n
\n
\n
\n
`},V=function(t,e){setTimeout((function(){f(t,e);const{sparkLinesData:o,sparkBarsData:n,pointIndex:s}=(t=>{const{sparkvalues:e,sparkpercent:o}=t;let n,s=[],r=[];e?(s=e,r=o,n=0===e.length?0:e.length-1):(t.series.data.forEach((t=>{s.push(t.y),r.push(t.percentage)})),n=t.index);return{sparkLinesData:s,sparkBarsData:r,pointIndex:n}})(e),r=((t,e)=>(0,D.jsxs)(I,{height:45,width:100,svgHeight:45,svgWidth:100,data:t,children:[(0,D.jsx)(L,{color:_.fN}),(0,D.jsx)(M,{style:W,type:"avg"}),(0,D.jsx)(N,{}),(0,D.jsx)(O,{pointIndex:e})]}))(o,s),i=((t,e)=>(0,D.jsx)(I,{height:45,width:100,svgHeight:45,svgWidth:100,data:t,min:0,max:100,children:(0,D.jsx)(F,{style:R,pointIndex:e})}))(n,s);(0,k.render)(r,document.getElementById(`${t}_${P}`)),(0,k.render)(i,document.getElementById(`${t}_${B}`))}),1)},J={fnTemplate:t=>{let{id:e,value:o,point:s}=t;const{nameFull:r,category:i,percent:a="0.0",total:l=0}=s,c=(0,n.Wj)(l),[d,p]=U(o,c);return m(r,e)+z({id:e,fullWidth:d,width:p,value:o,percent:a,year:i,total:c})},onAfterRender:V,isWithValue:!0},K={fnTemplate:t=>{let{id:e,point:o}=t;const{nameFull:s,year:r,value:i="0.0",percent:a="0.0",total:l=0}=o,c=(0,n.Wj)(i),d=(0,n.Wj)(l),[p,u]=U(c,d);return m(s,e)+z({id:e,fullWidth:p,width:u,year:r,percent:a,value:c,total:d})},onAfterRender:V,isWithValue:!0},Z={fnTemplate:t=>{let{id:e,point:o}=t;const{title:s,label:r,value:i,percent:a=""}=o,c=a?`(${a}%)`:"",d=`${(0,n.RG)(i)} ${c}`;return`${m(s,e)}\n
\n ${h("",r)}\n ${h("",d,{color:l})}\n
\n `}},q={fnTemplate:t=>{let{id:e,value:o,point:n}=t;return`${m(n.nameFull,e)}\n
\n ${h("Value",o)}\n
`},isWithValue:!0},Y=(t,e)=>{setTimeout((()=>f(t,e)),1)},G=t=>function(){const{fnTemplate:e,onAfterRender:o=Y,fnDateFormat:s=n.Uq,isWithColor:r,isWithValueText:i,isWithValue:a}=t,l=this,{series:c}=l,{zhValueText:d,name:p="Value"}=c.userOptions,u=s(l.x),h=r?l.color||c.color:void 0,m=i?d||p:"Value",f=a?(0,n.Wj)(l.y):null,g=(0,n.tm)();return o(g,l),e({id:g,date:u,color:h,valueText:m,value:f,point:l})},H=G({...y}),Q=G({...x}),X=G({...v}),tt=G({...b}),et=G({...C}),ot=G({...S}),nt=(G({...w}),G({...$})),st=G({...T}),rt=(G({...q}),G({...J}),G({...K})),it=G({...Z})},4020:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n=function(t){let e=0;return t.yAxis.forEach((t=>{if(!t.opposite){const{max:o}=t.getExtremes(),n=o?(""+o).length:0,s=t.maxLabelLength;e=0!==n?e+(0===e?25:15)+Math.round(s):e}})),e}},4999:(t,e,o)=>{"use strict";o.d(e,{E0:()=>M,sD:()=>P,Fh:()=>K,hN:()=>J,H7:()=>V,mw:()=>G,yx:()=>Y,wo:()=>n.wo,j7:()=>z,hl:()=>et,vb:()=>tt,Qn:()=>Q,YT:()=>I,Kl:()=>D,o4:()=>F,vt:()=>R,$J:()=>O,PK:()=>L,XL:()=>W,Qs:()=>H,bK:()=>E,qP:()=>U});var n=o(5248),s=o(784),r=o(9270),i=o(9901),a=o(3730),l=o(6882),c=o(4850),d=o(5121);const p={type:"treemap",layoutAlgorithm:"squarified",borderColor:"grey",dataLabels:{align:"left",verticalAlign:"top",style:{fontSize:"15px",fontWeight:"bold",color:(0,l.Jq)(),textShadow:"none"}},states:{hover:{borderColor:"yellow",brightness:0}}};var u=o(2096);const h=Object.assign,m=t=>({pointWidth:t,color:"#8085e9",minPointLength:5,pointPadding:0,borderWidth:0,groupPadding:.2,shadow:!1}),f=(t,e,o)=>{const n={x:t,y:e};return o&&(n.style={color:o}),n},g=(t,e)=>({chart:{panKey:void 0,panning:!1,spacingTop:25},title:{text:""},subtitle:{text:""},tooltip:(0,c.Gs)(d.MZ),xAxis:{type:"category",categories:[],crosshair:!0,gridLineWidth:0},yAxis:{opposite:!0,lineWidth:0,tickLength:0,gridLineDashStyle:"Dot",labels:f(3,0,e),title:{text:""}},legend:{enabled:!1,align:"right",verticalAlign:"top",layout:"horizontal",x:0,y:-25},plotOptions:{},series:[{name:"Series 1"}]}),y=(t,e,o)=>({type:t,marginTop:e,marginBottom:o}),x=(t,e)=>{const o=g(0,e);return h(o.chart,y("column",60,100)),h(o.plotOptions,{column:m(6)}),o},v=(t,e)=>{const o=g(0,e);return h(o.chart,y("bar",50,35),{height:450}),h(o.yAxis,{opposite:!1,gridLineDashStyle:"ShortDot",labels:f(0,14,e)}),h(o.plotOptions,{bar:m(4)}),o},b=(t,e,o)=>("BAR"===t?v:x)(e,o),C=Array.isArray,S=Object.assign,w=(t,e,o)=>{t[e]=(0,a.sA)(o)&&!C(o)?S(t[e]||{},o):o},A=t=>(e,o)=>(0,a.Et)(e)?e:t(o),j=A(i.DZ),$=A(i.D4),T=(t,e,o)=>o&&t>0?0:(0,l.PW)(t,e),k=Array.isArray,_=Object.assign,E=(t,e)=>(t.zhConfig.dataSource=e,t),D=(t,e)=>o=>(o.title=(0,c.n7)({text:t||e}),t&&e&&(o.subtitle=(0,c.RM)({text:e})),o),I=(t,e)=>o=>{if((0,a.O8)(t))w(o,t,e);else if((0,a.sA)(t)){let e;for(e in t)w(o,e,t[e])}return o},L=t=>e=>(e.tooltip=(0,c.Gs)(t),e),N=t=>e=>(0,a.uj)(t)?I("zhConfig",{legend:t})(e):e,O=function(t,e){return void 0===e&&(e=!1),o=>{const n=k(o.series)?o.series:o.series=[];if(k(t)){const s=((t,e)=>{const o=[];return e.forEach(((e,n)=>{const{color:s,zhValueText:r,name:i,visible:a}=e;t.push(e),o.push((t=>{let{index:e,color:o,name:n="",is:s=!1}=t;return{index:e,color:o,name:n,isVisible:s}})({index:n,color:s,name:r||i,is:a}))})),o})(n,t);e||N(s)(o)}else(0,a.sA)(t)&&(n[0]=t);return o}},M=(t,e,o,n)=>{return t&&t.length>0?(s=o(e),t=>{const e=t.zhMiniConfigs;return k(e)?e.push(s):t.zhMiniConfigs=[s],t})(n):n;var s},F=(t,e)=>o=>{const{isNotZoomToMinMax:s,isDrawDeltaExtrems:r,isFilterZero:a,isLogarithmic:c,minY:d,maxY:p}=e,u=a?(0,i.XR)(t):t,h=j(d,u),m=$(p,u);return((t,e,o,n)=>{(0,l.H1)({plotLines:n.yAxis.plotLines,min:t,max:e}),I("yAxis",{min:T(t,e,o),maxPadding:.15,minPadding:.15,endOnTick:!1,startOnTick:!1})(n)})(h,m,s,o),((t,e,o,n,s)=>{if(n){const n=o.length-1;n>0&&(0,l.gj)({plotLines:s.yAxis.plotLines,min:t,max:e,value:(r=o[n],C(r)?r[1]:r&&r.y||0)})}var r})(h,m,u,r,o),((t,e,o)=>{if(t){if(!(0,n.Xk)(o)||(0,i.so)(e))return;const{yAxis:t}=o;t.type="logarithmic",t.min<=0&&(t.min=null)}})(c,u,o),o},W=function(t,e){return void 0===e&&(e="zhIsMfi"),o=>t?I({zhPoints:t,[e]:!0})(o):o},R=(t,e)=>o=>(o.series[t]?_(o.series[t],e):o.series.push(e),o),P=(t,e,o,n)=>s=>{const{data:r}=t;if(k(r)&&r.length>0){const{series:i,chart:a,zhConfig:c}=s;(0,l.sP)(r,(0,l.PW)(o,n)),t.visible=!1,i.push(t),a.spacingBottom=40,c.legend.push({index:i.length-1,color:t.color,name:e})}return s},B=t=>{var e;(e={config:t},e.config?.series?.[0].data||[]).length>3e3&&(t=>{I({chart:{animation:!1},plotOptions:{series:{animation:!1}},zhConfig:{withoutAnimation:!0}})(t)})(t)},U=t=>(B(t),t),z=t=>{let{adapter:e,json:o,option:n,type:s}=t;const{config:r}=e.toConfig(o,n),a=r.series[0];return a.minY=(0,i.DZ)(a.data),s&&(a.type=s),a},V=n.hN,J=t=>(0,n.hN)({spacingTop:25,...t}),K=(t,e)=>{const o=D(t,e)(J());return o.series=[],o},Z={type:"category",categories:[],opposite:!1,crosshair:void 0,tickColor:"grey",tickWidth:3,tickLength:7,tickPosition:"outside",gridLineWidth:0,labels:{y:18}},q={lineWidth:0,tickLength:0,startOnTick:!0,endOnTick:!0,minPadding:.05,maxPadding:.05,plotLines:null,labels:{x:3}},Y=(t,e,o)=>I({xAxis:{...Z,categories:t},yAxis:q})(K(e,o)),G=function(t,e,o,n){return void 0===e&&(e=[]),I("xAxis",{categories:e})(b(t,o,n))},H=t=>{const e=t.chart;if("bar"===e.type){const o=t.xAxis.categories.length;o<16&&(e.height=85+22*o)}return t},Q=t=>{const e={credits:(0,c.gU)(),chart:{type:"treemap",spacingTop:25,marginTop:50,marginRight:5,height:500},title:(0,c.n7)(),subtitle:(0,c.RM)(),tooltip:(0,c.Gs)(d.x_),zhSeries:{count:0},zhDetailCharts:[]},o=(t=>({...p,data:t}))(t);return o.tooltip=(0,c.Gs)(d.uz),O(o)(e)},X={visible:!0,marker:{symbol:"circle"}},tt=t=>{let{data:e,...o}=t;return(0,s.C4)(e)?e.map(((t,e)=>(0,n.wo)({...X,...o,data:t,color:t.color||(0,u.v)(e),name:t.seriaName,visible:e<8}))):(0,n.wo)({...X,...o,data:e})},et=(t,e)=>{const{seriaType:o,seriaColor:n,seriaWidth:s}=e;return(0,r.A)(K(e.title,e.subtitle),O(tt({seriaType:o,seriaColor:n,seriaWidth:s,data:t})),U)}},3956:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(9270),s=o(784),r=o(4999);const i=t=>{let{option:e,data:o,confOption:i}=t;const{_rt:a}=e;return((t,e)=>{(0,s.Et)(t)&&(0,s.Ep)(e[0])&&e.forEach((e=>{e[1]=(0,s.W7)(e[1],t)}))})(a,o),(0,n.A)((0,r.hl)(o,e),(0,r.o4)(o,e),(0,r.YT)({valueMoving:(0,s.Y1)(o,a)}),(0,r.YT)(i),r.qP)}},9649:(t,e,o)=>{"use strict";o.d(e,{mE:()=>A,RW:()=>$,Ng:()=>S,V9:()=>j,xh:()=>w});var n=o(9901),s=o(9270),r=o(55),i=o(4850),a=o(5121),l=o(5355);const c=Object.assign,d=t=>({text:(0,r.A)(t),style:{color:l._G,fontSize:"16px",fontWeight:"bold"},floating:!0,align:"left",verticalAlign:"top",x:8,y:15}),p=t=>"number"==typeof t?t:10*t.length+8,u=function(t){return void 0===t&&(t=84),{enabled:!0,align:"left",verticalAlign:"top",x:p(t),y:-8,floating:!0,symbolHeight:12,symbolWidth:12,symbolRadius:6,itemStyle:{color:l.yj,fontSize:"16px"},itemHoverStyle:{color:l.D},itemHiddenStyle:{color:l.h5}}},h=(t,e,o)=>({name:t,color:e,data:o,zhValueText:t,type:"line",lineWidth:2,visible:!1,marker:{enabled:!1}}),m=t=>e=>c(e,t),f=(t,e)=>o=>{const n=o[t];return n?c(n,e):o[t]=e,o},g=(t,e)=>o=>(o.series[t]=c({},o.series[t],e),o),y=t=>e=>{const{series:o}=e,n=(t=>c({type:"column",visible:!0,tooltip:(0,i.Gs)(a.BA)},t))(t);return o[0].data?o.push(n):c(o[0],n),e},x=function(t){let{title:e,chartOption:o}=void 0===t?{}:t;return(0,s.A)((0,i.hN)({title:e}),f("navigation",{buttonOptions:{y:20},menuStyle:{position:"relative",top:"-24px",left:"28px"}}),f("chart",{height:160,spacingTop:8,spacingBottom:10,...o}),f("xAxis",{labels:{y:16}}),f("yAxis",{startOnTick:!0,endOnTick:!0,tickPixelInterval:60,offset:4,lineWidth:0,labels:{x:8,y:5}}))};var v=o(1509);const b="#2d7474",C={xDeltaCrossLabel:4,yDeltaCrossLabel:-10},S=(t,e,o)=>(0,s.A)(x({title:d(e),chartOption:C}),g(0,{name:"MFI",type:"spline",color:"#90ed7d",zhValueText:t,data:o,point:(0,i.Lb)(v.A)})),w=t=>{let{btTitle:e="Volume",title:o,data:r,dColumn:l=[],tooltipColumn:c}=t;const p=o||e,f=0!==l.length,y=(0,s.A)(x({chartOption:C}),m({title:d(p),legend:u(p)}),g(0,{data:r,zhValueText:"Volume",visible:!f,name:"Spline",point:(0,i.Lb)(v.A)})),{series:b}=y;return f&&(b.push({zhValueText:"Volume",turboThreshold:2e4,type:"column",name:"Column",data:l,borderWidth:0,pointPlacement:"on",groupPadding:.1,states:{hover:{enabled:!0,brightness:.07}},tooltip:c||(0,i.Gs)(a.b)}),b.push(h("Median","darkcyan",(0,n.JZ)(r))),b.push(h("Mean","#f7a35c",(0,n.i2)(r)))),{btTitle:e,config:y}},A=t=>{let{btTitle:e="ATH",data:o}=t;return{btTitle:e,config:(0,s.A)(x({title:d("ATH")}),y({name:"ATH",borderWidth:0,pointPlacement:"on",minPointLength:4,groupPadding:.1,data:o,tooltip:(0,i.Gs)(a.jc)}))}},j=t=>{let{dataMom:e,dataAth:o,dataSum:n}=t;return(0,s.A)(x(),m({title:d(),legend:u(),plotOptions:{column:{grouping:!1,shadow:!1,borderWidth:0,pointPlacement:"on",pointPadding:0,groupPadding:0,turboThreshold:2e4,tooltip:(0,i.Gs)(a.BA)}}}),f("yAxis",{startOnTick:!1,endOnTick:!1,tickPixelInterval:20}),y({zhValueText:"MOM(1)",name:"MOM(1)",color:"#f7a35c",pointPadding:.3,data:e}),y({name:"ATH",data:o}),y({name:"Close-Open",color:"rgba(144, 237, 125, 0.75)",visible:!1,data:n}))},$=t=>{let{btTitle:e="Daily HighLow",data:o}=t;const[n,r]=(t=>{const e=[],o=[];let n;for(n=0;n{"use strict";o.d(e,{H$:()=>l,Uq:()=>i,Yq:()=>r,e:()=>c});var n=o(2908);const s=o.n(n)().dateFormat,r=s,i=s.bind(null,"%A, %b %d, %Y"),a=s.bind(null,"%H:%M, %A, %b %d, %Y"),l=t=>"00:00"===s("%H:%M",t)?i(t):a(t),c=s.bind(null,"%H:%M:%S %d-%m-%Y")},1509:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(5856),s=o(7603),r=o(4020),i=o(783);const a={zIndex:100},l=function(t,e,o){void 0===e&&(e=0),void 0===o&&(o=0);const{xDeltaCrossLabel:n=0,yDeltaCrossLabel:s=0}=t.options.chart;return{dX:n-e,dY:s-o}},c=(t,e)=>{const o=(0,s.Yq)("%d-%m-%Y",t.x);return{y:t.y,date:"01-01-1970"!==o?o:"",...l(e)}},d=(t,e)=>({y:(0,n.A)(t.y),date:t.x,...l(e,40,32)}),p=(t,e,o,n)=>t.renderer.text(e,o,n).attr(a).addClass(i.Wc).add(),u=function(t){const{plotX:e,plotY:o,series:n}=this,s=n.chart,{xCrossLabel:i,yCrossLabel:a}=s,{y:l,date:u,dX:h,dY:m}=((t=>!t.isCategory||t.c)(this)?c:d)(this,s),f=((t,e)=>{const o=(0,r.A)(t);return o?e+o+-10:e})(s,e),g=((t,e)=>t.plotTop-e+1)(s,m),y=((t,e)=>t.yAxis[0].width+t.plotLeft+e+-4)(s,h),x=((t,e)=>e+t.plotTop+-1)(s,o);i?(i.attr({x:f,text:u}),a.attr({x:y,y:x,text:l})):(s.xCrossLabel=p(s,u,f,g),s.yCrossLabel=p(s,l,y,x))}},7759:(t,e,o)=>{"use strict";o.d(e,{A:()=>at,H:()=>lt});var n=o(2908),s=o.n(n),r=o(3940),i=o.n(r),a=o(3177),l=o.n(a);const c=(t,e,o)=>({plotOptions:{[t.options.chart.type]:{[e]:o}}}),d=(t,e)=>{try{t.update(e)}catch(t){console.log(t)}},p=function(t){const e=this.userOptions,{xAxis:o,series:n}=e,s=o.categories;if(s){const e=s.filter((e=>e!==t));e.lengthe.c!==t&&e.name!==t&&e.id!==t))}]})}};var u=o(6882);const h={display:"inline"},m={display:"none"},f={chart:{spacingTop:0,marginTop:18},exporting:{enabled:!1},subtitle:{style:{display:"none"}},title:{style:{display:"none"}}},g={chart:{spacingTop:25,marginTop:70},exporting:{enabled:!0},subtitle:{style:{display:"inline-block"}},title:{style:{display:"inline-block"}}},y="zhElTitle",x="zhElSubtitle",v=(t,e,o,n,s)=>{const r=t[s];if(r&&r.css)return void r.css({...h});const{text:i}=e||{};i&&(t[s]=t.renderer.text(i,o,n).css({color:(0,u.Jq)(),"font-size":"16px","font-weight":800}).add())},b=(t,e)=>{const o=t[e];o&&o.css&&o.css({...m})},C=t=>{t.prototype.zhHideCaption=function(){try{const t=this.chartHeight-40;this.update(f,!1),this.setSize(null,t,!0);const e=this.options;v(this,e.title,40,70,y),v(this,e.subtitle,40,90,x)}catch(t){console.log(t.msg)}},t.prototype.zhShowCaption=function(){try{const t=this.chartHeight+40;this.update(g,!1),this.setSize(null,t,!0),b(this,y),b(this,x)}catch(t){console.log(t.msg)}}},S=Array.isArray,w=(t,e)=>{const o=t.length;let n=0;for(;n=e)return n;return n},A=t=>{let{data:e,userMin:o,userMax:n}=t;if(!(S(e)&&S(e[0])&&o&&n))return e;const s=w(e,o),r=w(e,n);return s<=r?e.slice(s,r+1):e};var j=o(6559);const $=t=>void 0===t,T=()=>(0,j.f7)().toUpperCase(),k=t=>{const{userOptions:e}=t||{},{id:o}=e||{};return o},_=t=>{const{yAxis:e}=t;return e||[]},E=(t,e)=>{const o=_(t);let n=0;for(;n{if($(e)){const e="string"==typeof(n=o)&&n?o:T();return[E(t,e),e]}var n,s;if(0===e)return[!1,void 0];if("number"==typeof(s=e)&&s-s==0){const o=_(t),n=k(o[e]),s=$(n);return[s,s?T():n]}return[!0,T()]};var I=o(5248);const L=Array.isArray,N=Object.assign,O=(t,e)=>(t=>{const e=(t=>t?.userOptions?.chart?.type??void 0)(t);return"bar"===e||"column"===e})(t)&&(t=>L(t)&&t[0]&&t[0].c)(e),M=(t,e)=>{const o=(t=>t?.userOptions?.xAxis?.categories??void 0)(t);if(!L(o))return e;const n=(t=>t.reduce(((t,e)=>(t[e.c]=e,t)),{}))(e);return s=n,o.reduce(((t,e)=>(t.push(s[e]||{c:e,y:null}),t)),[]);var s},F=(t,e)=>{const{data:o}=e;return O(t,o)?N(e,{data:M(t,o),type:void 0,point:{events:{mouseOver:null}}}):"columnrange"===e.type?e:(0,I.wo)(e)},W=(t,e)=>{const[o,n]=D(t,e.yIndex,e.name);return o&&t.addAxis(((t,e)=>{let{color:o,min:n,max:s}=e;return{id:t,min:n,max:s,lineColor:o,tickColor:o,tickWidth:3,tickLenght:5,opossite:!0,title:{text:""},gridLineWidth:0,labels:{style:{color:o}},showEmpty:!1}})(n,e),!1,!0),n},R=function(t,e){void 0===t&&(t={});try{const{name:o,color:n}=t,s=this.addSeries(F(this,{color:n,name:o,...e,data:A(t),yAxis:W(this,t)}),!1);return this.redraw(),s}catch(t){console.log(t.message)}},P=function(t){try{const e=this.series[t];e&&(e.visible?e.hide():e.show())}catch(t){console.log(t.message)}},B=t=>{t.prototype.zhTogglePlotLine=function(t){try{const e=(t=>"zhPlotLine"+t)(t);this[e]?(this.yAxis[0].addPlotLine(this[e]),this[e]=null):(this[e]=((t,e)=>t.options.yAxis[0].plotLines.find((t=>t.id===e)))(this,t),this.yAxis[0].removePlotLine(t))}catch(t){console.log(t.message)}},t.prototype.zhToggleMinMaxLines=function(){this.zhTogglePlotLine("max"),this.zhTogglePlotLine("min")}},U="zhIs2H",z=function(){try{const t=this[U]?this.chartHeight/2:2*this.chartHeight;this.setSize(void 0,t,this.zhIsAnimation()),this[U]=!this[U]}catch(t){console.log(t.message)}};var V=o(4850);const J=function(t){d(this,c(this,"dataLabels",(0,V.Te)(t)))},K=function(t){d(this,c(this,"pointWidth",t))},Z=t=>"number"==typeof t&&t-t==0,q=function(t){let{seriaIndex:e=0,from:o,to:n}=t;try{if(!Z(o)||!Z(n))return!1;const t=this.xAxis[e];return!!(t&&o<=n)&&(t.setExtremes(o,n),this.resetZoomButton||this.showResetZoom(),!0)}catch(t){return console.log(t),!1}},Y={zhIsAnimation(){return!((this.userOptions||{}).zhConfig||{}).withoutAnimation},zhIsDaily(t){void 0===t&&(t=0);const e=this.series?.[0].data??[],o=e.length-1;if(o<2)return!1;const n=e[o].x-e[o-1].x;return n<6048e5&&n>36e5}},G={zhGetId(){return((this.options||{}).zhConfig||{}).id},zhGetFromToDates(t){let{seriaIndex:e=0,format:o=t=>t}=void 0===t?{}:t;try{const t=this.series&&this.series[e]?.points||[],n=t.length;return Array.isArray(t)&&n>0?{from:o(t[0].x),to:o(t[n-1].x)}:{}}catch(t){return console.log(t),{}}}},H=Array.isArray,Q={zhGetDetailCharts(){return(this.options||{}).zhDetailCharts},zhAddDetailChart(t){const e=this.zhGetDetailCharts();H(e)&&e.push(t)},zhRemoveDetailChart(t){const e=this.zhGetDetailCharts();H(e)&&(this.options.zhDetailCharts=e.filter((e=>e!==t)))}};var X=o(4020);const tt=Array.isArray;const et=function(t,e){const o=t&&this.zhIsAnimation(),n=this.zhGetDetailCharts();if(this.setSize(e,void 0,o),tt(n)){const t=(0,X.A)(this);n.forEach((n=>{t&&n.update({chart:{spacingLeft:t}},!1),n.setSize(e,void 0,o)}))}},ot=(t,e)=>{const o=(t=>{const{series:e}=t;for(let t=0;t0)return!0}return!1})(t);return e?(n=o?40:(t=>{const{chart:e}=t.userOptions,{marginBottom:o}=e||{};return o||20})(t),{chart:{marginBottom:n},credits:{enabled:!0}}):(t=>({chart:{spacingBottom:0,marginBottom:t},credits:{enabled:!1}}))(o?24:0);var n};const nt=function(t){this.update(ot(this,t))},st=t=>{const{Chart:e}=t;C(e),B(e),Object.assign(e.prototype,{zhAddSeriaToYAxis:R,zhReflowCharts:et,zhUpdateSpacing:nt,zhDataLabels:J,zhSetPointWidth:K,zhToggleSeria:P,zhToggle2H:z,zhRemoveCategory:p,zhZoomX:q,...Y,...G,...Q})};var rt=o(3289),it=o(2096);const at=()=>{i()(s()),l()(s()),st(s()),s().setOptions(it.e)},lt=()=>o.e(195).then(o.t.bind(o,9048,23)).then((t=>t.default(s()))).catch((t=>console.log(rt.UU)))},5153:(t,e,o)=>{"use strict";o.d(e,{Jn:()=>g,Ux:()=>b,_5:()=>m,mG:()=>C,p3:()=>x});var n=o(9270),s=o(5355),r=o(9901),i=o(4850),a=o(5248),l=o(5121),c=o(9649),d=o(4999);const p=(t,e,o)=>({type:"scatter",color:t,data:o,tooltip:(0,i.Gs)(e)}),u=(t,e)=>o=>n=>(0,d.E0)(o[t],o,e,n),h=u("data",c.xh),m=t=>e=>(t.forEach((t=>h(t)(e))),e),f=u("data",c.mE),g=u("data",c.RW),y=(t,e)=>(o,n,s)=>r=>(0,d.sD)(t(o),e,n,s)(r),x=y((t=>p(s.U,l.Gf,t)),"Dividend"),v=(y((t=>p(s.hb,l.xl,t)),"Split Ratio"),(t,e)=>({type:"line",visible:!1,color:t,lineWidth:e,marker:{radius:3,symbol:"circle"}})),b=(t,e)=>{const{isNotZoomToMinMax:o,isDrawDeltaExtrems:r,seriaType:c,seriaWidth:p,dC:u,dH:m,dL:g,dO:y,minClose:x,maxClose:b,dVc:C,dV:S,dATH:w}=e;return(0,n.A)((0,d.hN)(),(0,d.PK)(l.kd),(0,d.o4)(u,{minY:x,maxY:b,isNotZoomToMinMax:o,isDrawDeltaExtrems:r}),h({id:t,data:S,dColumn:C}),f({id:t,data:w}),((t,e,o,n,r,l)=>c=>{const d=(0,i.G8)(t);return(0,a.M$)(c,o,0,"Close",{type:d,lineWidth:e}),(0,a.M$)(c,n,1,"High",v(s.lb,e)),(0,a.M$)(c,r,2,"Low",v(s.LW,e)),(0,a.M$)(c,l,3,"Open",v(s.xp,e)),c})(c,p,u,m,g,y))},C=(t,e)=>(0,a.wo)({data:e,minY:(0,r.DZ)(e),zhValueText:t})},7599:(t,e,o)=>{"use strict";o.d(e,{g3:()=>n,mw:()=>s,o$:()=>r});const n=t=>({role:"presentation",hidden:!t}),s=(t,e)=>({role:"dialog",tabIndex:"-1",hidden:!t,"aria-label":e}),r=(t,e)=>{let{ariaLabel:o}=t;return{ariaLabel:o||e}}},710:(t,e,o)=>{"use strict";o.d(e,{k:()=>n,o:()=>s});const n=(t,e)=>({"aria-expanded":t,"aria-controls":t?e:void 0}),s=t=>({role:"combobox","aria-autocomplete":"list","aria-labelledby":t})},9288:(t,e,o)=>{"use strict";o.d(e,{O:()=>G,y:()=>Q});var n=o(2823),s=o(434);const r=t=>{if(!t)return t;const e=t.length-1;return"y"===t[e]?t.slice(0,e)+"ies":t+"s"};var i=o(7222),a=o(6460),l=o(9410);const c=Array.isArray,d="Dim",p=[a.$g,a.Sx,a.cx,a.zM,a.BG,a.Fm,a.bR,a.uT,a.nQ,a.ET],u=["Spline",a.qv],h=["Line",a.Dn],m=["Area",a.mf],f=["Column",a.ly],g=["Yearly by Months",a.V],y=t=>{const e=[...t];return e[0]=`Default: ${t[0]}`,e},x=(t,e,o)=>{null!=o&&(t[e]=o)},v=t=>{const e={caption:t[0],value:t[1]};return x(e,"dim",t[2]),x(e,"compType",t[3]),x(e,"id",t[4]),x(e,"cId",t[5]),e},b=t=>t.filter(Boolean).map(v),C=t=>!t||"M"===t,S=t=>(e,o)=>`${t}: By ${e}${o?": Cluster":""}`,w=S("Bar"),A=S("Column"),j=S("TreeMap"),$=S("Bar+Labels"),T=S("Dots"),k=S("Map"),_=S("TreeMap (60, 90)"),E=(t,e,o)=>(n,s)=>v([t(n,o),e,n,void 0,s]),D=(t,e)=>b([y(u),h,C(e)&&g,m,f,[w(t),a.zM],[$(t),a.Fm],[A(t),a.Sx],[T(t),a.bR]]),I=(t,e)=>{const o=r(t[0])||d;return D(o,e).concat([v([k(o),a.$g,void 0,i.uF])])},L=()=>b([y(u),h,m]),N=()=>[...L(),v(f)],O=t=>C(t)&&v(g),M=(t,e)=>[...N(),O(e)],F=E(A,a.Sx),W=E(A,a.cx,!0),R=E(w,a.zM),P=E(w,a.BG,!0),B=t=>[F(t),R(t)],U=t=>[F(t),W(t),R(t),P(t)],z=t=>{let[e]=t;return[...N(),...U(e)]},V=t=>{let[e]=t;return[...N(),...B(e)]},J=E(j,a.uT),K=E(j,a.nQ,!0),Z=E(_,a.nQ),q=E(w,a.ET),Y=(0,s.v)({tes:(t,e,o)=>{const n=I(t,e),s=t[1]||d;return n.splice(7,0,v([w(r(s)),a.zM,s,void 0,void 0,(o[1]||{}).id])),n},tc:U,t1:L,t2:N,t2a:M,t2ae:(t,e)=>[...M(0,e),...U(d)],t3:z,t3a:t=>{let[e]=t;return[...z([e]),J(e),K(e)]},t3b:(t,e)=>{let[o]=t;return[...N(),O(e),...U(o)]},[l.o]:t=>{let[e,o]=t;return[...z([e]),J(o,l.o)]},t3ab2:t=>{let[e,o]=t;return[...z([e]),q(o,l.o),J(o,l.o)]},t3ac:t=>{let[e]=t;return[...z([e]),Z(e)]},t3c:V,t3c2:t=>{let[e,o]=t;return[...V([e]),...B(o)]},t3ca:()=>V([d]),df3:D},I),G=(t,e,o)=>((t,e,o,n)=>Y(t)(e,o,n).filter(Boolean))(e,(t=>c(t)?t.map((t=>t.caption||"")):["",""])(t),o,t),H=(0,n.Gu)(p),Q=t=>!!t&&H(t.value)},9410:(t,e,o)=>{"use strict";o.d(e,{o:()=>n});const n="t3ab"},3138:(t,e,o)=>{"use strict";o.d(e,{F:()=>n});const n={display:"inline-block",color:"#1b75bb",textAlign:"right",width:100,paddingRight:5,fontSize:16,fontWeight:"bold"}},5668:(t,e,o)=>{"use strict";o.d(e,{A:()=>Ee});var n=o(4558),s=o(972),r=o(1205),i=o(1327),a=o(66),l=o(8353),c=o(4848);const d={margin:"6px 0"},p={paddingRight:4,fontSize:"16px",fontWeight:"bold"},u=[["isNotZoomToMinMax","Not Zoom to Min-Max"],["isFilterZero","Filter-Trim Zeros"],["isLogarithmic","Logarithmic Scale"]],h=t=>{let{isShow:e,style:o,className:h=l.ND,dfRt:m,onRoundTo:f,toggleOption:g,onClose:y}=t;return(0,c.jsxs)(s.A,{isShow:e,style:{...l.lM,...o},className:h,onClose:y,children:[f&&(x=m,""===x||x>=0&&x<=3)&&(0,c.jsx)("div",{style:d,children:(0,c.jsxs)("label",{children:[(0,c.jsx)(i.W,{style:p,children:"Round Decimals to"}),(0,c.jsx)(r.A,{type:"number",initValue:m,min:0,max:3,step:1,maxLength:2,onChange:f,onEnter:y})]})}),u.map((t=>{let[e,o]=t;return(0,c.jsx)(a.A,{id:e,style:l.v$,chbCn:n.w_,btCn:n.eT,caption:o,onToggle:g},e)}))]});var x};var m=o(1315),f=o(7071),g=o(2089),y=o(6223);const x={...l.v$,display:"flex",justifyContent:"space-between"},v={maxWidth:150,textAlign:"left"},b={display:"inline-block",padding:void 0},C={display:"inline-block",padding:"0 0 0 40px"},S=(t,e,o)=>{let{onToggle:n,onCheckCaption:s,onUnCheckCaption:r}=o;return(0,c.jsxs)("div",{style:x,children:[(0,c.jsx)(a.A,{initialValue:(i=t.isRow,!(0,m.bj)(i)||i),style:b,color:l.Ic,caption:t.caption,captionStyle:v,onToggle:()=>n(t.id)}),(0,c.jsx)(g.A,{style:C,color:l.cP,initialValue:0===e,onCheck:()=>s(e),onUnCheck:()=>r(e)})]},t.id);var i},w={ModalOptions:h,ModalToggle:t=>{let{isShow:e,style:o,className:n=l.ND,selectProps:r,isFd:i,isShowFd:a,isCh:d,isShowChart:p,onToggle:u,onCheckCaption:h,onUnCheckCaption:m,onToggleFd:g,onToggleChart:x,onClose:v}=t;return(0,c.jsxs)(s.A,{isShow:e,style:{...l.lM,...o},className:n,onClose:v,children:[(0,c.jsx)(f.A,{items:r,crItem:S,onToggle:u,onCheckCaption:h,onUnCheckCaption:m}),i&&(0,c.jsx)(y.A,{style:l.v$,color:l.Ic,caption:"From Date",value:a,onToggle:g},"isShowFd"),d&&x&&(0,c.jsx)(y.A,{style:l.v$,color:l.Ic,caption:"Chart",value:p,onToggle:x},"isShowChart")]})}};var A=o(5317),j=o(2357);const $="zhn-search",T=`${$}__options`,k=`${$}__options__div`,_=`${$}__row`,E=`${$}__footer`,D={width:250},I={fontWeight:"bold"},L={color:"black",width:250,height:32,padding:"4px 0 4px 10px",fontWeight:"bold"},N=t=>{let{text:e=""}=t;return(0,c.jsx)("span",{style:I,children:e})},O=()=>(0,c.jsx)("span",{children:" - "}),M=t=>{let{text:e=""}=t;return(0,c.jsx)("span",{children:e})},F=t=>{let{item:e,onClick:o,onFocus:n}=t;const{value:s,name:r,type:i,region:a,currency:l}=e;return(0,c.jsxs)("button",{type:"button",className:_,onClick:o,onFocus:n,children:[(0,c.jsx)(N,{text:s}),(0,c.jsx)(O,{}),(0,c.jsx)(M,{text:r}),(0,c.jsx)(O,{}),(0,c.jsx)(N,{text:i}),(0,c.jsx)(O,{}),(0,c.jsx)(M,{text:a}),(0,c.jsx)(O,{}),(0,c.jsx)(N,{text:l})]})},W=(t,e,o)=>{let{onClick:n,onFocus:s}=o;return(0,c.jsx)(F,{item:t,onClick:(0,m.Jr)(n,t.value),onFocus:(0,m.Jr)(s,e+1)},t.value+e)},R=t=>{let{isShow:e,options:o,onClickItem:n}=t;const s=(0,m.li)(),[r,i]=(0,m.J0)("");(0,m.vJ)((()=>{(0,m.nl)(s,null),i("")}),[o]),(0,m.vJ)((()=>{e&&(0,m.ZI)(s)}),[e]);const a=o.length||"";return(0,c.jsxs)(j.A,{isShow:e,className:T,style:D,withoutAnimation:!0,children:[(0,c.jsx)("div",{className:k,style:D,children:(0,c.jsx)(f.A,{items:o,crItem:W,onClick:n,onFocus:(t,e)=>{(0,m.nl)(s,e.target),i(t)}})}),(0,c.jsxs)("div",{className:E,style:L,children:[(0,c.jsxs)("span",{children:[r,":"]}),(0,c.jsx)("span",{children:a})]})]})},P={top:0},B=t=>{let{arrowStyle:e,tabIndex:o="-1",onClick:s}=t;return(0,c.jsx)("button",{type:"button",tabIndex:o,className:"zhn-select__bt-arrow",style:P,onClick:s,children:(0,c.jsx)("span",{className:n.$N,style:e})})},U={borderColor:"#1b75bb transparent transparent"},z=(0,c.jsx)("span",{className:"zhn-search__spinner","data-loader":"circle"}),V=(0,c.jsx)("span",{style:{top:6},className:"zhn-select__spinner--failed","data-loader":"circle-failed"}),J=t=>{let{isLoading:e,isLoadingFailed:o,options:n,isOptions:s,toggleOptions:r}=t;return e?z:o?V:n&&n.length>0?(0,c.jsx)(B,{arrowStyle:s?U:null,onClick:r}):null},K={isLoadingFailed:!1,isLoading:!1,isOptions:!1,ticket:"",options:[]},Z="LOADING",q="LOADING_FAILED",Y="LOADED",G="SET_TICKET",H="SHOW_OPTIONS",Q="HIDE_OPTIONS",X="TOGGLE_OPTIONS",tt=(t,e)=>{switch(e.type){case Z:return{...t,isLoadingFailed:!1,isLoading:!0};case q:return{...t,isLoading:!1,isLoadingFailed:!0};case Y:return{...t,options:e.options,isOptions:!0,isLoading:!1};case G:return{...t,ticket:e.ticket,isOptions:!1};case H:return{...t,isOptions:!0};case Q:return{...t,isOptions:!1,isLoadingFailed:!1};case X:return{...t,isOptions:!t.isOptions};default:throw new TypeError("Not existed action: "+e.type)}},et=t=>({loading:()=>t({type:Z}),loadingFailed:()=>t({type:q}),loaded:e=>t({type:Y,options:e}),setTicket:e=>t({type:G,ticket:e}),showOptions:()=>t({type:H}),hideOptions:()=>t({type:Q}),toggleOptions:()=>t({type:X})}),ot=(t,e)=>{let o=null;return function n(){for(var s=arguments.length,r=new Array(s),i=0;i{t(...r),o=null}),e),n.cancel=function(){clearTimeout(o)}}},nt=t=>"function"==typeof t,st=(t,e,o)=>ot((o=>{if((t=>t&&t.length>1)(o)){t.loading();const n=(t=>!nt(t.crUrlOptions)||t.crUrlOptions())(e);n?(t=>{let{api:e,value:o,options:n,action:s}=t;fetch(e.crUrl(o,n)).then((t=>{const{status:e}=t;if(e>=200&&e<400)return t.json();throw new Error("Respond status: "+e)})).then((t=>{s.loaded(e.crOptions(t))})).catch((t=>{s.loadingFailed(),nt(e.onError)?e.onError(t.message):console.log(t)}))})({api:e,action:t,value:o,options:n}):t.loadingFailed()}}),o||5e3),rt={...n.xu,position:"relative",width:250,height:36,background:"none 0px 0px repeat scroll rgb(225, 225, 203)"},it={...n.xu,display:"block",width:"100%",height:30,paddingLeft:10,marginLeft:0,boxShadow:"none"},at=t=>{let{isSearch:e=!0,searchApi:o,crInputChange:n}=t;const s=(0,m.li)(),[i,a]=(0,m.J0)(0),[l,d]=(0,m.WO)(tt,K),{isLoading:p,isLoadingFailed:u,isOptions:h,options:f,ticket:g}=l,y=(0,m.Kr)((()=>et(d)),[]),x=(0,m.Kr)((()=>(n||st)(y,o)),[y,o,n]);(0,m.vJ)((()=>{(0,m.ZI)(s)}),[i]);const v=e?t=>{const{keyCode:e}=t;(t=>38===t||46===t||27===t)(e)?(y.hideOptions(),(0,m.ZI)(s)):((t,e)=>40===t&&e.length>0)(e,f)&&y.showOptions()}:null,b=e?x:null;return(0,c.jsxs)("div",{style:rt,tabIndex:"-1",role:"textbox",onKeyDown:v,children:[(0,c.jsx)(r.A,{refEl:s,style:it,initValue:g,onChange:b,onEnter:()=>{e&&x.cancel()}},i),(0,c.jsx)("hr",{className:"zhn-search__input__hr"}),e&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(J,{isLoading:p,isLoadingFailed:u,options:f,isOptions:h,toggleOptions:y.toggleOptions}),(0,c.jsx)(R,{isShow:h,options:f,onClickItem:t=>{y.setTicket(t),a((t=>t+1))}})]})]})};var lt=o(3608),ct=o(7927),dt=o(6912);const pt=t=>{const[e,o]=(0,lt.A)(t);return(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:(0,ct.A)(t),children:o}),(0,c.jsx)(at,{...e})]})};var ut=o(7591);const ht=t=>{let{refSeriaColor:e,chartType:o,isShowLabels:n,labelStyle:s,selectWidth:r,isShowChart:i,chartOptions:a,onSelectChart:l,isShowDate:d,noDate:p=!1,dateDefault:u,dateOptions:h,onSelectDate:m,isDim:f,dimOptions:g,onSelectDim:y}=t;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.A,{isShow:i,children:(0,c.jsx)(ut.A,{refSeriaColor:e,chartType:o,isShowLabels:n,labelStyle:s,selectWidth:r,options:a,onSelectChart:l})}),f&&g&&(0,c.jsx)(j.A,{isShow:d,children:(0,c.jsx)(A.A,{isShowLabels:n,caption:"Dim",options:g,onSelect:y})}),!p&&(0,c.jsx)(j.A,{isShow:d,children:(0,c.jsx)(A.A,{isShowLabels:n,caption:"For Date",placeholder:u,options:h,onSelect:m})})]})};var mt=o(9842),ft=o(6204);const gt={display:"flex",margin:"5px 5px 5px 10px",lineHeight:2},yt={maxWidth:200,height:32,verticalAlign:"middle",fontWeight:"bold"},xt=t=>{let{isShowLabels:e=!0,caption:o,text:s,style:r,captionStyle:a,textStyle:l}=t;return s?(0,c.jsxs)("div",{style:{...gt,...r},children:[(0,c.jsx)(i.D4,{style:(0,ct.A)({captionStyle:a,isShowLabels:e}),children:o}),(0,c.jsx)(ft.A,{className:n.eT,style:{...yt,...l},text:s})]}):null};var vt=o(652);const bt=t=>{const{innerRef:e,title:o="",initialValue:n,errorMsg:s,onTest:r}=t,a=(0,m.li)(null);return(0,m.Yn)(e,(()=>({getValue:()=>(0,m.y5)(a),isValid:()=>(0,m.F5)(a)})),[]),(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:(0,ct.A)(t),children:o}),(0,c.jsx)(vt.A,{refEl:a,initialValue:n,errorMsg:s,onTest:r})]})},Ct="YYYY-MM-DD format must be",St=(t,e)=>t<=e,wt=function(t){return void 0===t&&(t="Date"),`${t} is not in valid format`},At=t=>((0,m.y5)(t)||"").trim(),jt=t=>{let{refEl:e,isShowLabels:o=!0,placeholder:n,fromCaption:s="From Date",initFromDate:r,toCaption:a="To Date",initToDate:l,dateStyle:d,errMsg:p=Ct,isPeriodValid:u=St,msgOnNotValidFormat:h=wt,onTestDate:f,onEnter:g}=t;const y=(0,m.li)(),x=(0,m.li)(),v=(0,ct.A)({isShowLabels:o});return(0,m.Yn)(e,(()=>({getValues:()=>({fromDate:(0,m.y5)(y),toDate:(0,m.y5)(x)}),getValidation:()=>{const t=[];return(0,m.F5)(y)||t.push(h("From Date")),(0,m.F5)(x)||t.push(h("To Date")),0!==t.length||u(At(y),At(x))||t.push("From Date is near that To Date"),t.length>0?{isValid:!1,datesMsg:t}:{isValid:!0}},focusInput:()=>(0,m.ZI)(y),setFromTo:(t,e)=>{(0,m.nl)(y,t),(0,m.nl)(x,e)}})),[u,h]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:v,children:s}),(0,c.jsx)(vt.A,{refEl:y,style:d,placeholder:n,initialValue:r,errorMsg:p,onTest:f,onEnter:g})]}),(0,c.jsxs)(dt.st,{children:[(0,c.jsx)(i.D4,{style:v,children:a}),(0,c.jsx)(vt.A,{refEl:x,style:d,placeholder:n,initialValue:l,errorMsg:p,onTest:f,onEnter:g})]})]})};var $t=o(8248),Tt=o(4616);const kt=t=>null!=t,_t=t=>t.map((t=>{let{c:e,v:o,...n}=t;return{c:`${e} (${o})`,v:o,...n}})),Et=/\s/g,Dt=t=>t.map((t=>{let{c:e,v:o,id:n}=t;return{c:`${e} (${o})`,v:n||`${o}-${(e||"").replace(Et,"-")}`.toLowerCase()}})),It=t=>e=>e.map((e=>{const[o,n]=e.split("/");return{c:e,v:t(o,n)}})),Lt={vc:t=>t.map((t=>(0,m.sA)(t)?t:{c:t,v:t})),t1:It(((t,e)=>`${t}-${e}`)),t2:It(((t,e)=>`${t}${e}`)),t2l:It(((t,e)=>`${t}${e}`.toLowerCase())),t3:It(((t,e)=>`${t}_${e}`)),nbq:t=>{const e=[];return t.forEach((t=>{let{n:o,b:n,q:s}=t;(0,m.Ep)(s)&&s.forEach((t=>{const s=`${n}/${t}`;e.push({c:`${o} (${s})`,v:s})}))})),e}},Nt=(t,e)=>{const o=t[e||"items"],n=t.isCv?_t:t.isCp?Dt:Lt[t.type];return n?n(o):o[0]&&kt(o[0].s)?o.map((t=>{let{c:e,v:o,s:n}=t;return{c:`${e} (${n})`,v:o,s:n}})):(0,m.sA)(t.filters)?((t,e)=>t.map((t=>{const o=t.not;if((0,m.O8)(o)){const n=e[o];(0,m.Ep)(n)?(0,m.Ep)(t.nots)?(t.not=n.concat(t.nots),delete t.nots):t.not=n:delete t.not}return t})))(o,t.filters):o},Ot=(t,e)=>{if(!(0,m.sA)(t))return[];const o=((t,e)=>{const{prefix:o,suffix:n}=e;return(o||n)&&t.forEach((t=>{t.v=`${o||""}${t.v}${n||""}`})),t})(Nt(t,e),t);return[o,(n=o,(0,m.Ep)(n)&&0!==n.length&&kt(n[0].c)?"c":void 0)];var n},Mt=()=>({isLoading:!1,isLoadingFailed:!1}),Ft=t=>{const[e,o]=(0,m.J0)(Mt);return[e,(0,m.hb)((()=>{o({isLoading:!0,isLoadingFailed:!1})}),[]),(0,m.hb)(((t,e)=>{(t||e)&&(0,Tt.S7)({alertCaption:t,alertDescr:e}),o({isLoading:!1,isLoadingFailed:!0})}),[]),(0,m.hb)((e=>{const[n,s]=Ot(e||{},t);o({isLoading:!1,isLoadingFailed:!1,propCaption:s,options:n})}),[])]};var Wt=o(3289);const Rt="Client Error",Pt="Server Error",Bt=(t,e,o)=>t>=e&&t{const s=(0,m.li)(null),r=(0,m.li)(!1),i=(0,m.hb)((a=>{Ut>=3?o(Rt,"Too many requests"):(0,m.ZC)(r)||(Ut++,(0,m.nl)(r,!0),e(),fetch(t).then((t=>{const{status:e}=t;if(Bt(e,200,400))return t.json();throw o((t=>Bt(t,400,500)?Rt:Bt(t,500,600)?Pt:"")(e),((t,e)=>t+" "+e)(e,t.statusText)),e})).then(n).catch((t=>{if((0,m.nl)(r,!1),t instanceof SyntaxError)o(Pt,"Incorrect JSON");else if(!(0,m.Et)(t)){const e=a||{},{retryNetwork:n=0}=e;if(n<=0){const[e,n]=t instanceof TypeError?[Wt.j7.caption,Wt.j7.descr]:[];o(e,n)}else(0,m.nl)(s,setTimeout((()=>i({...e,retryNetwork:n-1})),2e3))}})).finally((()=>{Ut--})))}),[]);return[i,s]},Vt=(t,e,o)=>{const[n,s,r,i]=Ft(o),a=(0,$t.A)(t)&&!n.isLoading&&!(0,m.Ep)(n.options),[l,c]=zt(e,s,r,i);return(0,m.vJ)((()=>(a&&l(),()=>{clearTimeout(c.current)})),[a]),[n,l]},Jt=t=>`${t} is not selected`,Kt=()=>{},Zt=t=>(t||{}).caption||"",qt=t=>(t||{}).value||"",Yt=t=>{let{refEl:e,isShowLabels:o,isShow:n=!0,isHideTwo:s=!1,isAddTitle:r,oneOptionNames:i="Items",msgOnNotSelected:a=Jt,uri:l,oneJsonProp:d="items",oneCaption:p,twoCaption:u,propCaption:h,onSelectOne:f=Kt,onSelect:g=Kt}=t;const[y,x]=Vt(n,l,d),{isLoading:v,isLoadingFailed:b,options:C}=y,[S,w]=(0,m.J0)([]),$=(0,m.li)(null),T=(0,m.li)(null),k=(0,m.hb)((t=>{(0,m.nl)($,t),(0,m.nl)(T,null),w(t&&t.columns||[]),f(t)}),[]),_=(0,m.hb)((t=>{const e=r&&t?(o=(0,m.ZC)($),n=t,{caption:`${Zt(o)}: ${Zt(n)}`,value:qt(o)?`${qt(o)}${qt(n)}`:qt(n)}):t;var o,n;(0,m.nl)(T,e),g(e)}),[]);return(0,m.Yn)(e,(()=>({getValidation:()=>{const t=[];return(0,m.ZC)($)||t.push(a(p)),(0,m.ZC)(T)||t.push(a(u)),t.length>0?{isValid:!1,msg:t}:{isValid:!0}},getValues:()=>({one:(0,m.ZC)($),two:(0,m.ZC)(T)})})),[]),(0,c.jsxs)("div",{children:[(0,c.jsx)(A.A,{isShowLabels:o,caption:p,options:C,optionNames:i,propCaption:h,isLoading:v,isLoadingFailed:b,onLoadOption:x,onSelect:k}),(0,c.jsx)(j.A,{isShow:!s,children:(0,c.jsx)(A.A,{isShowLabels:o,caption:u,options:S,propCaption:h,onSelect:_})})]})},Gt={RowInputSelect:A.A,RowInputSearch:pt,RowChart:ut.A,RowChartDate:ht,InputPeriod:jt,SelectOneTwo:Yt,RowPattern:mt.A,RowDate:bt,RowCheckBox1:g.A,RowText:xt};var Ht=o(7599),Qt=o(6736),Xt=o(391);const te=Object.assign,[ee,oe,ne,se]=Xt.dY?["touchstart","touchmove","touchcancel","touchend"]:["mousedown","mousemove","mouseleave","mouseup"],re={passive:!0},ie={passive:!1},ae=t=>e=>parseInt(e[t],10),le=ae("top"),ce=ae("left"),de=(t,e,o)=>o-t>22&&e-o>22,pe=t=>"BUTTON"===t.tagName||t.dataset.scrollable,ue=(t,e,o,n)=>{const s=(t=>(0,m.fp)(t.composedPath)?t.composedPath():void 0)(t);if((0,m.Ep)(s))for(let t=0;t{(0,m.vJ)((()=>{let o,n,s=(0,m.ZC)(t),r=s.style,i=0,a=0;function l(){const t=le(r),e=ce(r),o=(l=e+i,c=window.innerWidth-s.clientWidth,l>0?l>c?c-16:l:8),n=(t=>{const e=window.innerHeight;return t<0?0:e-t<140?e-140:t})(t+a);var l,c;te(r,{top:`${n}px`,left:`${o}px`,webkitTransform:"",transform:""}),i=0,a=0}function c(t){t.cancelable&&(t.stopPropagation(),t.preventDefault()),0===i&&0===a&&(r.cursor="move"),i=(0,m.El)(t)-o,a=(0,m.xJ)(t)-n;const e=`translate(${i}px,${a}px)`;te(r,{webkitTransform:e,transform:e})}function d(){u(),l()}function p(t){e(t)||(o=(0,m.El)(t),n=(0,m.xJ)(t),ue(t,o,n,s)&&(s.addEventListener(oe,c,ie),s.addEventListener(ne,d,re),s.addEventListener(se,d,re)))}function u(){r.cursor="",s.removeEventListener(oe,c,ie),s.removeEventListener(ne,d,re),s.removeEventListener(se,d,re)}return s.addEventListener(ee,p,re),()=>{u(),s.removeEventListener(ee,p,re),r=null,s=null}}),[])};var me=o(7368),fe=o(6539),ge=o(6112),ye=o(694);const xe=(0,n.Z6)("draggable-dialog"),ve={...ye.z2,position:"absolute",top:30,left:50,zIndex:10},be=t=>{let{buttons:e,onLoad:o,onShow:n,onClose:s}=t;return(0,c.jsxs)(dt.t4,{children:[e,(0,m.fp)(o)&&(0,c.jsx)(fe.A,{style:ye.SF,caption:"Load",title:"Load item",onClick:o},"load"),(0,m.fp)(n)&&(0,c.jsx)(fe.A,{timeout:0,caption:"Show",title:"Show items",onClick:n},"show"),(0,c.jsx)(fe.A,{timeout:0,caption:"Close",title:"Close dialog",onClick:s},"close")]})},Ce=()=>{},Se=t=>((0,m.al)(t)[1]||{}).className===n.$N,we=t=>{let{isFocusBtMenu:e=!0,isShow:o,style:s,menuModel:r,caption:i,children:a,commandButtons:l,toTopLayer:d,onLoad:p,onShow:u,onClose:h=Ce}=t;const f=(0,m.li)(),g=(0,m.li)(),y=(0,Qt.iw)(h),[x,v]=(0,n.lS)(o,xe);return(0,me.A)(o,e?g:void 0),he(f,Se),(0,c.jsxs)("div",{...(0,Ht.mw)(o,i),ref:f,className:x,style:{...s,...ve,...v},onClick:d,onKeyDown:y,children:[(0,c.jsx)(ge.A,{refBtMenuMore:g,menuModel:r,caption:i,onClose:h}),a,(0,c.jsx)(be,{buttons:l,onLoad:p,onShow:u,onClose:h})]})};var Ae=o(9759),je=o(761);const $e=t=>{let{isShow:e,buttons:o}=t;return(0,c.jsx)(j.A,{isShow:e,withoutAnimation:!0,children:(0,c.jsx)(je.A,{buttons:o})})};var Te=o(4654),ke=o(6674);const _e=t=>{let{refEl:e,isShow:o=!0,jsonProp:n,uri:s,...r}=t;const[i,a]=Vt(o,s,n),{options:l}=i;return(0,m.Yn)(e,(()=>({getOptions:()=>l})),[l]),(0,c.jsx)(A.A,{isShow:o,...r,...i,onLoadOption:a})},Ee={DraggableDialog:we,ModalPopup:s.A,ShowHide:j.A,ValidationMessages:Ae.A,Toolbar:$e,RowInputText:Te.A,RowInputColor:ke.A,SelectWithLoad:_e,...Gt,...w}},4765:(t,e,o)=>{"use strict";o.d(e,{q:()=>uo,b:()=>ho});var n=o(434),s=o(2040),r=o(3597),i=o(1315),a=o(4575),l=o(6539),c=o(2400),d=o(9495),p=o(391),u=o(6559),h=o(4848);const m={position:"absolute",top:0,left:0,width:12,height:12,overflow:"visible"},f={position:"absolute",top:-12,left:-12,width:"300%",height:36,borderRadius:"50%",backgroundColor:"rgba(0, 188, 212, 0.16)"},g=t=>{let{is:e,circleStyle:o,emberStyle:n}=t;return(0,h.jsx)("div",{style:{...m,...o},children:e?(0,h.jsx)("div",{style:{...f,...n}}):null})},y={position:"relative",width:"100%",height:18,margin:"8px 0",userSelect:"none",cursor:"default"},x={position:"absolute",top:8,left:0,width:"100%",height:2},v={position:"absolute",left:0,width:"calc(15%)",height:"100%",marginRight:6,backgroundColor:"#00bcd4",transition:"margin 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},b={position:"absolute",right:0,width:"calc(85%)",height:"100%",marginLeft:6,backgroundColor:"#bdbdbd",transition:"margin 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},C={...b,backgroundColor:"#9e9e9e"},S={boxSizing:"border-box",zIndex:"1",position:"absolute",top:0,left:"15%",width:12,height:12,cursor:"pointer",pointerEvents:"inherit",margin:"1px 0px 0px",backgroundColor:"#00bcd4",backgroundClip:"padding-box",border:"0px solid transparent",borderRadius:"50%",transform:"translate(-50%, -50%)",overflow:"visible",outline:"none",transition:"background 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms"},w={width:20,height:20},A={top:-12,left:-12,width:"220%",height:44,border:"1px solid #4caf50"},j=Number.isNaN,$=()=>{},[T,k]=p.dY?["touchmove","touchend"]:["mousemove","mouseup"],_=t=>({width:`calc(${t}%)`}),E=t=>"number"==typeof t&&t-t==0,D=t=>t.current,I=t=>{let{initialValue:e=4,step:o=1,min:n=0,max:s=20,onChange:r=$}=t;const a=(0,i.li)(),[l,c,m]=(0,d.o)(!1),[f,I]=(0,i.J0)(e),L=t=>{const e=((t,e,o)=>o>e?e:o{const[e,o,n]=(0,d.o)(!1),s=(0,i.li)(!1),r=e=>{D(s)||(s.current=!0,requestAnimationFrame((()=>{s.current=!1,t(e)})))},a=()=>{document.removeEventListener(T,r),document.removeEventListener(k,a),n()};return[e,t=>{p.dY||t.preventDefault(),document.addEventListener(T,r),document.addEventListener(k,a),o()}]})((t=>{const e=D(a).clientWidth;let r=(t=>{const e=D(a).getBoundingClientRect().left;return E(e)?(0,i.El)(t)-e:NaN})(t);if(E(r)&&E(e)){let t;r<0?r=0:r>e&&(r=e),t=r/e*(s-n),t=Math.round(t/o)*o+n,t=(0,u.W7)(t,5),L(t)}})),[M,F]=p.dY?[{onTouchStart:O},void 0]:[{onMouseDown:O,onMouseEnter:c,onMouseLeave:m},{onFocus:c,onKeyDown:t=>{const{keyCode:e}=t,n=((t,e,o)=>(t=>39===t||38===t)(o)?t+e:(t=>37===t||40===t)(o)?t-e:void 0)(f,o,e);null!=n&&(t.preventDefault(),L(n))},onBlur:m}],W=l?C:b,[R,P]=N?[w,A]:[],B=((t,e,o)=>{const n=(t-e)/(o-e);return j(n)?0:100*n})(f,n,s),U=_(B),z=_(100-B),V={left:`${B}%`};return(0,h.jsx)("div",{style:y,...M,children:(0,h.jsxs)("div",{ref:a,style:x,children:[(0,h.jsx)("div",{style:{...v,...U}}),(0,h.jsx)("div",{style:{...W,...z}}),(0,h.jsx)("input",{type:"hidden",step:o,min:n,max:s,value:f,required:!0}),(0,h.jsx)("div",{role:"slider",tabIndex:0,"aria-valuenow":f,"aria-valuemin":n,"aria-valuemax":s,"aria-orientation":"horizontal","aria-labelledby":"discrete-slider-custom",style:{...S,...R,...V},...F,children:(0,h.jsx)(g,{is:l||N,circleStyle:R,emberStyle:P})})]})})},L={color:"grey",fontWeight:"bold"},N={paddingTop:4,textAlign:"center",fontSize:"22px"},O={color:"#4caf50"},M={color:"#f44336"},F=()=>(0,i.J0)((()=>{return void 0===(t=0)&&(t=0),void 0===(e=10)&&(e=10),t+Math.floor((e-t+1)*Math.random());var t,e}))[0],W=t=>{let{refEl:e,style:o}=t;const n=F(),s=F(),[{isOk:r,resultSum:a},l]=(0,i.J0)({isOk:!1,resultSum:""}),c=(0,i.hb)((t=>l({isOk:n+s===t,resultSum:t})),[]);(0,i.Yn)(e,(()=>({isOk:()=>r})),[r]);const d=r?O:M;return(0,h.jsxs)("div",{style:o,children:[(0,h.jsx)("p",{style:L,children:"Before loading, please, enter sum using slider"}),(0,h.jsxs)("p",{style:N,children:[(0,h.jsx)("span",{children:`${n} + ${s} = `}),(0,h.jsx)("span",{style:d,children:a})]}),(0,h.jsx)(I,{onChange:c})]})};var R=o(5952),P=o(2394);const B={position:"static",width:400,height:205,margin:"70px auto"},U={margin:5},z={color:"#a487d4",padding:"0 5px"},V={color:"gray",width:400,padding:"5px 0 0 10px",lineHeight:1.4,fontWeight:"bold",whiteSpace:"pre"},J={padding:"8px 8px 0 8px"},K={},Z=(0,a.A)((t=>{let{isShow:e,data:o=K,onClose:n}=t;const s=(0,i.li)(),r=(0,i.Kr)((()=>()=>{const t=(0,i.ZC)(s);if(t&&t.isOk()){const{options:t}=o;void 0===(e=t)&&(e={}),setTimeout((()=>{(0,R.Uv)(e)}),100),setTimeout((()=>{(0,P.X$)(e)}),800),n()}var e}),[o,n]),a=(0,i.Kr)((()=>[(0,h.jsx)(l.A,{caption:"Yes, Load",isPrimary:!0,onClick:r},"k1"),(0,h.jsx)(l.A,{caption:"No, Close",onClick:n},"k2")]),[r,n]),d=(t=>{const{options:e}=t,{name:o,title:n}=e||{};return o||n||""})(o);return(0,h.jsx)(c.A,{style:B,caption:"Confirm Load",isShow:e,commandButtons:a,withoutClose:!0,onClose:n,children:(0,h.jsxs)("div",{style:U,children:[(0,h.jsxs)("p",{style:V,children:["Would you like load item",(0,h.jsx)("span",{style:z,children:d}),"from url?"]}),(0,h.jsx)(W,{refEl:s,style:J})]})})})),q={position:"static",width:350,height:175,margin:"70px auto"},Y={color:"gray",padding:"8px 0 0 16px",lineHeight:1.7,fontWeight:"bold"},G={color:"#80c040"},H={color:"#232f3b"},Q=t=>{let{isShow:e,data:o,onClose:n}=t;const s=(0,i.hb)((()=>{document.cookie="erc=1",window.location.reload(!0)}),[]),r=(0,i.Kr)((()=>[(0,h.jsx)(l.A,{caption:"Yes, Reload",isPrimary:!0,onClick:s},"reload"),(0,h.jsx)(l.A,{style:H,caption:"No",onClick:n},"no")]),[n]),{buildDate:a=""}=o||{};return(0,h.jsx)(c.A,{style:q,caption:"Reload Web App",isShow:e,commandButtons:r,withoutClose:!0,onClose:n,children:(0,h.jsxs)("div",{style:Y,children:[(0,h.jsx)("p",{children:"Browser has loaded ERC from a cache."}),(0,h.jsx)("p",{children:"Reload web app ERC to the new build?"}),(0,h.jsx)("p",{style:G,children:`New build ${a} is available.`})]})})};var X=o(6912);const tt={color:"#a487d4",width:400,paddingLeft:10,lineHeight:2,fontSize:"18px",fontWeight:"bold"},et={color:"grey",width:400,paddingLeft:10,lineHeight:1.4,fontWeight:"bold",whiteSpace:"pre"},ot=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const{caption:s,descr:r}=o;return(0,h.jsxs)(c.A,{caption:"Information",isShow:e,onClose:n,children:[(0,h.jsx)(X.st,{children:(0,h.jsx)("p",{style:tt,children:s})}),(0,h.jsx)(X.st,{children:(0,h.jsx)("p",{style:et,children:r})})]})}));var nt=o(6204);const st={display:"flex",margin:5,lineHeight:2,fontSize:"18px",fontWeight:"bold"},rt={display:"inline-block",color:"#f44336",padding:"0 10px 0 8px"},it={display:"inline-block",color:"#a487d4",width:140},at={color:"grey",padding:"0 8px 0 12px",lineHeight:1.4,fontWeight:"bold",whiteSpace:"pre-line",wordWrap:"break-word"},lt=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const{alertCaption:s="Item",alertItemId:r="",alertDescr:i}=o,a=s+": ";return(0,h.jsxs)(c.A,{caption:"Alert",isShow:e,onClose:n,children:[(0,h.jsxs)("div",{style:st,children:[(0,h.jsx)("span",{style:rt,children:a}),(0,h.jsx)(nt.A,{style:it,text:r,title:r})]}),(0,h.jsx)("p",{style:at,children:i})]})})),ct=t=>{const e=(0,i.li)(t),o=(0,i.hb)((t=>e.current===t),[]),{current:n}=e;return e.current=t,[!(n===t),o]};var dt=o(124),pt=o(4246),ut=o(3375);const ht='

Description empty

',mt={top:54,left:20,width:"auto",maxWidth:"89%",marginLeft:0},ft={padding:16},gt=(t,e,o,n)=>({isLoading:t,isLoadFailed:e,errMsg:o,descrHtml:n}),yt=(0,a.A)((t=>{const{isShow:e,data:o,onClose:n}=t,{descrUrl:s}=o||{},[{isLoading:r,isLoadFailed:a,errMsg:l,descrHtml:d},p]=(0,i.J0)((()=>gt(!1,!1,"",""))),[u]=ct(t),[m,f]=ct(s),g=!r&&e&&s&&(""===d||m||u&&a);return(0,i.vJ)((()=>{g&&(p((t=>({...t,isLoading:!0}))),(0,dt.Z)({uri:s,onFetch:function(t){let{json:e}=void 0===t?{}:t;return f(s)&&p(gt(!1,!1,"",e||ht))},onCatch:function(t){let{error:e}=void 0===t?{}:t;return f(s)&&p(gt(!1,!0,e.message,ht))}}))}),[g,s,f]),(0,h.jsx)(c.A,{caption:"About Data Source",isShow:e,style:mt,onClose:n,children:r?(0,h.jsx)(ut.yX,{}):a?(0,h.jsx)(ut.n9,{errMsg:l}):(0,h.jsx)(pt.A,{style:ft,str:d})})}));var xt=o(6072),vt=o(8678),bt=o(5668);const Ct={paddingTop:8,paddingLeft:8},St={color:"#1b2836"},wt=t=>{let{onZoom1M:e,onZoom3M:o,onZoom6M:n,onZoomYTD:s,onZoom1Y:r}=t;return(0,h.jsxs)("div",{style:Ct,children:[(0,h.jsx)(l.A,{style:St,caption:"1M",onClick:e}),(0,h.jsx)(l.A,{style:St,caption:"3M",onClick:o}),(0,h.jsx)(l.A,{style:St,caption:"6M",onClick:n}),(0,h.jsx)(l.A,{style:St,caption:"YTD",onClick:s}),(0,h.jsx)(l.A,{style:St,caption:"1Y",onClick:r})]})},At={width:244,marginLeft:-122},jt={width:120},$t=t=>"function"==typeof t,Tt=t=>t.zhGetFromToDates?.({format:vt.Ch})??{},kt={},_t=(t,e,o)=>(0,i.hb)((()=>{const[n]=t();if($t(n.zhZoomX)){const{to:t}=Tt(n),s=o?(0,vt.zV)(t,o).getTime():(0,vt.m2)(t),r=(0,vt.A4)(t);n.zhZoomX({from:s,to:r})&&(0,i.ZC)(e).setFromTo((0,vt.Ch)(s),t)}}),[]),Et=(0,a.A)((t=>{let{isShow:e,data:o=kt,onClose:n}=t;const s=(0,i.li)(),r=(0,xt.A)((()=>{const{chart:t={}}=o;return[t,n]})),[a,d]=((t,e)=>{const o=(0,i.hb)((()=>{const[o,n]=t(),s=(0,i.ZC)(e);if($t(o.zhZoomX)&&s.getValidation().isValid){const{fromDate:t,toDate:e}=s.getValues();o.zhZoomX({from:(0,vt.A4)(t),to:(0,vt.A4)(e)})}n()}),[]),n=(0,i.Kr)((()=>[(0,h.jsx)(l.A,{caption:"Zoom",isPrimary:!0,onClick:o},"zoom")]),[]);return[o,n]})(r,s),p=_t(r,s,-1),u=_t(r,s,-3),m=_t(r,s,-6),f=_t(r,s,-12),g=_t(r,s),{chart:y={}}=o,{from:x,to:v}=Tt(y),[b,C]=(t=>{const e=t.split("-")[2];var o;return[t=>(0,vt.r$)(t,e),(o=e,`DD-MM-YYYY format must be, min 01-01-${o}`)]})(x),S=y.zhGetId?.(),w=y.zhIsDaily?.();return(0,h.jsxs)(c.A,{caption:"Zoom Chart",style:At,isShow:e,commandButtons:d,onClose:n,children:[(0,h.jsx)(bt.A.InputPeriod,{refEl:s,dateStyle:jt,placeholder:"DD-MM-YYYY",initFromDate:x,initToDate:v,errMsg:C,isPeriodValid:vt.KI,onTestDate:b,onEnter:a},S),w&&(0,h.jsx)(wt,{onZoom1M:p,onZoom3M:u,onZoom6M:m,onZoomYTD:g,onZoom1Y:f})]})}));var Dt=o(4558),It=o(4407),Lt=o(3986),Nt=o(4867),Ot=o(2543);const Mt=(0,p.WB)(),Ft=t=>{const[e,o]=(0,Nt.A)(Mt);return[e,(0,i.Kr)((()=>(0,Ot.W1)(t,190,1,{p0:[(0,Ot.VD)("Toggle Input Labels",o,!0,t)]})),[])]};var Wt=o(4218),Rt=o(701),Pt=o(2027);const Bt=(t,e,o)=>t&&"function"==typeof t[e]?t[e]:()=>o;var Ut=o(8203),zt=o(7144),Vt=o(7071),Jt=o(372);const Kt={...Dt.xu,display:"inline-block",width:275,backgroundColor:"#e1e1cb"},Zt={color:"green",width:"100%",height:30,paddingLeft:10,background:"transparent none repeat scroll 0 0",border:"medium none",outline:"medium none",fontSize:"16px",fontWeight:"bold"},qt=()=>{},Yt=t=>{let{refEl:e,name:o,placeholder:n,maxLength:s="32",onEnter:r=qt}=t;const a=(0,i.li)(),l=(0,i.li)((()=>"")),[c,d]=(0,i.J0)(""),p=(0,i.hb)((t=>{(0,i.CA)(t),d(t.target.value.trim())}),[]),u=(0,Jt.A)({onEnter:()=>l.current(),onDelete:()=>{r(""),d("")}},[r]);return l.current=()=>r(c),(0,i.Yn)(e,(()=>({getValue:()=>c,clear:()=>d("")})),[c]),(0,i.vJ)((()=>{setTimeout((()=>{const t=a.current;t&&t.hasAttribute("value")&&t.removeAttribute("value")}))})),(0,h.jsxs)("div",{style:Kt,children:[(0,h.jsx)("input",{hidden:!0,autoComplete:"username",value:o,readOnly:!0}),(0,h.jsx)("input",{ref:a,style:Zt,type:"password",autoComplete:"current-password",placeholder:n,maxLength:s,value:c,onChange:p,onKeyDown:u})]})};var Gt=o(1327);const Ht={display:"flex",margin:"5px 0"},Qt=t=>{let{refEl:e,isTitle:o,title:n,titleStyle:s,...r}=t;return(0,h.jsx)("form",{children:(0,h.jsxs)("label",{style:Ht,children:[o&&n&&(0,h.jsx)(Gt.D4,{style:s,children:n}),(0,h.jsx)(Yt,{refEl:e,...r})]})})},Xt={marginRight:0},te=t=>{let{style:e,children:o,setRefFocusLast:n,btStyle:s,onClose:r}=t;return(0,h.jsxs)(X.t4,{style:{...Xt,...e},children:[o,(0,h.jsx)(l.A,{refBt:n,style:s,caption:"Close",onClick:r})]})},ee={overflowY:"auto",maxHeight:360,paddingRight:10},oe={paddingLeft:8},ne={margLeft:0},se={margin:"0 2px"},re=[["AV","alpha-vantage","Alpha Vantage"],["FMP","fmp","Financial Modeling Prep","32"],["Intrinio","intrinio","Intrinio","32"],["Twelve","twelve","Twelve Data"]],ie=[["NDL","nasdaq-data-link","Nasdaq Data Link"],["WTO","wto","WTO","32"]],ae=[["BEA","bea","BEA","36"],["BLS","bls","BLS","32"],["EIA","eia","EIA","32"]],le=(t,e,o)=>{let{isShowLabels:n,titleStyle:s,i:r,comp:i}=o;const a=e+r;return(0,h.jsx)(Qt,{refEl:i["_ref"+a],isTitle:n,titleStyle:s,title:t[0],name:t[1],placeholder:`${t[2]} API Key`,maxLength:t[3],onEnter:i["_setKey"+a]},t[0])};class ce extends i.uA{constructor(t){super(t);const{data:e}=t;for(let t=1;t<10;t++)this["_setKey"+t]=Bt(e,"key"+t)}_hSetAll=()=>{for(let t=1;t<10;t++)this["_setKey"+t](this["iComp"+t].getValue())};_hClearAll=()=>{for(let t=1;t<10;t++)this["_setKey"+t](""),this["iComp"+t].clear()};_ref1=t=>this.iComp1=t;_ref2=t=>this.iComp2=t;_ref3=t=>this.iComp3=t;_ref4=t=>this.iComp4=t;_ref5=t=>this.iComp5=t;_ref6=t=>this.iComp6=t;_ref7=t=>this.iComp7=t;_ref8=t=>this.iComp8=t;_ref9=t=>this.iComp9=t;_ref10=t=>this.iComp10=t;render(){const{isVisible:t,isShowLabels:e,titleStyle:o,btStyle:n,onClose:s,setRefFocusLast:r}=this.props;return t?(0,h.jsxs)(Ut.A,{style:ee,children:[(0,h.jsx)(zt.A,{caption:"Economics",childStyle:oe,children:(0,h.jsx)(Vt.A,{items:ie,crItem:le,isShowLabels:e,titleStyle:o,i:1,comp:this})}),(0,h.jsx)(zt.A,{caption:"U.S. Economics",childStyle:oe,children:(0,h.jsx)(Vt.A,{items:ae,crItem:le,isShowLabels:e,titleStyle:o,i:3,comp:this})}),(0,h.jsx)(zt.A,{caption:"Stock Market",childStyle:oe,children:(0,h.jsx)(Vt.A,{items:re,crItem:le,isShowLabels:e,titleStyle:o,i:6,comp:this})}),(0,h.jsxs)(te,{style:ne,btStyle:n,onClose:s,setRefFocusLast:r,children:[(0,h.jsx)(l.A,{style:n,caption:"CLEAR ALL",onClick:this._hClearAll}),(0,h.jsx)(l.A,{style:{...n,...se},caption:"SET ALL",onClick:this._hSetAll})]})]}):null}}const de=ce;var pe=o(9466);const ue=(t,e)=>{const o=(0,i.li)(),n=Bt(t,e),s=t[e]();return[o,s,()=>{const t=(0,i.ZC)(o);t&&!n(t.getValue())&&t.showErrMsg()},()=>n("")]};var he=o(9842),me=o(5317),fe=o(2089);const ge=t=>{let{data:e,configs:o}=t;const n=(t,o)=>Bt(e,t)(o);return o.map((t=>{let[o,s]=t;return(0,h.jsx)(fe.A,{caption:o,initialValue:Bt(e,s,!1)(),chbCn:Dt.w_,btCn:Dt.eT,onCheck:(0,i.Jr)(n,s,!0),onUnCheck:(0,i.Jr)(n,s,!1)},o)}))},ye={marginRight:4},xe={marginRight:12},ve=t=>{let{isVisible:e,isShowLabels:o,titleStyle:n,btStyle:s,data:r,uiThemeOptions:i,onClose:a,setRefFocusLast:c,onChangeTheme:d}=t;const[p,u,m,f]=ue(r,"setProxy"),[g,y]=(t=>t?[]:[275,{width:275}])(o);return(0,h.jsxs)("div",{children:[(0,h.jsx)(he.A,{refEl:p,isShowLabels:o,style:y,captionStyle:n,caption:"Proxy",placeholder:"Local Http Proxy Server",initValue:u,onEnter:m,isClearBlank:!0,onClear:f,errorMsg:"Should start with http://127.0.0.1"}),(0,h.jsx)(me.A,{isShowLabels:o,width:g,caption:"UI Theme",captionStyle:n,propCaption:"c",options:i,onSelect:d}),(0,h.jsx)(ge,{data:r,configs:pe.ys}),(0,h.jsx)(te,{style:xe,btStyle:s,onClose:a,setRefFocusLast:e?c:void 0,children:(0,h.jsx)(l.A,{style:{...s,...ye},caption:"SET PROXY",onClick:m})})]})},be="User Settings",Ce={position:"static",width:380,maxHeight:446,margin:"70px auto 0px"},Se={width:295},we={width:82},Ae={width:100},je=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const[s,r]=(0,It.Ri)(),a=(0,Lt.A)(),l=(0,i.hb)((t=>{(0,Wt.Sr)(t),a()}),[]),[d,p]=Ft(Dt.aw),u=(0,Dt.FG)(Ce,!d&&Se);return(0,h.jsx)(c.A,{refFocusLast:s,style:u,caption:be,menuModel:p,isWithButton:!1,isShow:e,onClose:n,children:(0,h.jsxs)(Rt.A,{ariaLabel:be,id:"sd",isShow:e,setRefFocusLast:r,isShowLabels:d,data:o,onClose:n,children:[(0,h.jsx)(Pt.A,{title:"ApiKeys",children:(0,h.jsx)(de,{titleStyle:we})}),(0,h.jsx)(Pt.A,{title:"Options",children:(0,h.jsx)(ve,{titleStyle:Ae,uiThemeOptions:Wt.oP,onChangeTheme:l})})]})})}));var $e=o(8248),Te=o(4250),ke=o(2440),_e=o(8801),Ee=o(1990),De=o(9759);const Ie={width:300},Le={width:70},Ne=(0,a.A)((t=>{let{isShow:e,data:o,onClose:n}=t;const s=(0,$e.A)(e),[r,a]=(0,Te.A)(null),[d,p]=(0,Te.A)(null),[u,m]=(0,i.J0)([]),[f,g]=(0,i.J0)((()=>({groupOptions:(0,_e.QC)(),listOptions:[]}))),{groupOptions:y,listOptions:x}=f,v=(0,i.hb)((t=>{const{caption:e,lists:o}=t||{};e?(r(e),g((t=>({...t,listOptions:o||[]})))):r(null)}),[]),b=(0,i.hb)((t=>{const{caption:e}=t||{};d(e||null)}),[]),C=[(0,h.jsx)(l.A,{caption:"Add",title:"Add Item To Watch List",isPrimary:!0,onClick:()=>{const t=(()=>{const t=[];return a()||t.push((0,Ee.L2)("Group")),p()||t.push((0,Ee.L2)("List")),t})();if(0===t.length){const{caption:t,config:e}=o,n=a(),s=p();(0,_e.sT)({caption:t,groupCaption:n,listCaption:s,config:e}),m((t=>t.length>0?[]:t))}else m(t)}},"add")],S=(0,i.hb)((()=>{m((t=>t.length>0?[]:t)),n()}),[n]);(0,_e.w9)((t=>{t&&t.forActionType===ke.Xk&&(t.messages?m(t.messages):(m((t=>t.length>0?[]:t)),n()))})),(0,i.vJ)((()=>{if(s){const t=(0,_e.QC)(),e=a();t!==y?(r(null),d(null),g({groupOptions:t,listOptions:[]})):e&&g((t=>{const o=(0,_e.rF)(e);return x!==o?(d(null),{...t,listOptions:o}):t}))}}),[s]);const{caption:w}=o||{};return(0,h.jsxs)(c.A,{style:Ie,caption:"Add To Watch List",isShow:e,commandButtons:C,onClose:S,children:[(0,h.jsx)(bt.A.RowText,{captionStyle:Le,caption:"Item:",text:w}),(0,h.jsx)(bt.A.RowInputSelect,{caption:"Group",captionStyle:Le,width:"202",options:y,onSelect:v}),(0,h.jsx)(bt.A.RowInputSelect,{caption:"List",captionStyle:Le,width:"202",onSelect:b,options:x}),(0,h.jsx)(De.A,{validationMessages:u})]})})),Oe=(t,e)=>{const[o,n]=(0,Te.A)();o(t.toChart);const s=(0,i.li)(),r=(0,i.Kr)((()=>()=>{const t=n(),o=(0,i.ZC)(s);t&&o&&o.getValues().forEach((e=>{t.zhAddSeriaToYAxis(e)})),e()}),[]),a=(0,i.Kr)((()=>(0,h.jsx)(l.A,{caption:"Paste & Close",isPrimary:!0,onClick:r},"paste")),[r]);return[n(),s,a]},Me={paddingBottom:4,margin:"0 0 8px 16px",fontWeight:"bold",borderBottom:"2px solid black"},Fe={display:"inline-block",color:"#a487d4",width:200,verticalAlign:"bottom"},We=t=>{let{chartId:e}=t;return(0,h.jsxs)("div",{style:Me,children:[(0,h.jsx)(Gt.W,{children:"From Chart: "}),(0,h.jsx)(nt.A,{style:Fe,text:e})]})};var Re=o(6134),Pe=o(1569),Be=o(1853),Ue=o(7686),ze=o(2620);const Ve=t=>{let{className:e,model:o,color:n,setColor:s}=t;const[r,i,a]=(0,d.o)(!1);return(0,h.jsx)(Ue.A,{className:e,color:n,onClick:i,children:(0,h.jsx)(ze.A,{isShow:r,model:o,onClickCell:s,onClose:a})})};var Je=o(6476);const Ke=(0,Dt.PX)(Dt.eT,Dt.WE),Ze={padding:"0 0 16px 16px"},qe={verticalAlign:"middle"},Ye={...qe,display:"inline-block",width:100,padding:"0 16px 0 4px",textAlign:"right",fontSize:"16px",fontWeight:"bold"},Ge={...qe},He={...qe,marginLeft:24},Qe={minHeight:100},Xe=()=>{},to=t=>{const{seria:e,yAxisOptions:o,compIndex:n,onReg:s=Xe,onUnReg:r=Xe}=t,{color:a,name:l=""}=e,c=(0,i.li)(),d=(0,i.Bi)(),[p,u]=(0,Te.A)(),[m,f,g]=(0,Re.A)(!1),[y,x]=(0,i.J0)((()=>a||"#7cb5ec"));return(0,i.Yn)(c,(()=>({getValue:()=>{const{userOptions:t}=e,{data:o,name:n}=t||{};return{isChecked:(0,i.ZC)(m),color:y,yIndex:(u()||{}).value,data:o,name:n}}})),[y]),(0,i.vJ)((()=>(s(c,n),()=>r(n))),[]),(0,i.vJ)((()=>{p()}),[t]),(0,h.jsxs)("div",{style:Ze,children:[(0,h.jsx)(Be.A,{className:Dt.w_,style:Ge,labelId:d,onCheck:f,onUnCheck:g}),(0,h.jsx)(nt.A,{id:d,className:Ke,style:Ye,text:l}),(0,h.jsx)(Ve,{className:"p-r va-m",model:Pe.A.palette,color:y,setColor:x}),(0,h.jsx)(Je.A,{placeholder:"withYAxis",width:"135",style:He,optionsStyle:Qe,options:o,noFooterBts:!0,onSelect:p})]})},eo=t=>{let{chartId:e,series:o,options:n,onReg:s,onUnReg:r}=t;return(o||[]).filter((t=>t&&t.visible)).map(((t,o)=>(0,h.jsx)(to,{seria:t,compIndex:o,yAxisOptions:n,onReg:s,onUnReg:r},`${e}_${t.name||""}_${o}`)))},oo=(t,e)=>({caption:t,value:e}),no=t=>{let{refEl:e,style:o,toChart:n,fromChart:s}=t;const r=(0,i.li)([]),[a,l]=(0,i.Kr)((()=>[(t,e)=>{r.current[e]=t},t=>{r.current[t]=null}]),[]);(0,i.Yn)(e,(()=>({getValues:()=>{const[t,e]=(t=>{const{xAxis:e}=t||{},[o]=e||[],{dataMin:n,dataMax:s,userMin:r,userMax:i}=o&&o.getExtremes()||{};return[r||n,i||s]})(s);return(0,i.ZC)(r).map((t=>(0,i.y5)(t))).filter((t=>t&&t.isChecked)).map((o=>(o.userMin=t,o.userMax=e,o)))}})),[s]);const c=(t=>[oo("withYAxis")].concat((0,i.lZ)(t.yAxis,((t,e)=>oo(`toYAxis${e+1}`,e)))||[]))(n),{userOptions:d,series:p}=s||{},{zhConfig:u}=d||{},{id:m="id"}=u||{};return(0,h.jsxs)(Ut.A,{style:o,children:[(0,h.jsx)(We,{chartId:m}),(0,h.jsx)(eo,{chartId:m,series:p,options:c,onReg:a,onUnReg:l})]})},so={position:"static",width:365,height:340,margin:"70px auto 0px"},ro={overflowY:"auto",height:250,padding:"8px 10px 0 0"},io={},ao=(0,a.A)((t=>{let{isShow:e,data:o=io,onClose:n}=t;const[s,r,i]=Oe(o,n),{fromChart:a}=o;return(0,h.jsx)(c.A,{isShow:e,style:so,caption:"Paste Series To",commandButtons:i,onClose:n,children:(0,h.jsx)(no,{refEl:r,style:ro,fromChart:a,toChart:s})})})),lo="It seems you are offline",co=Promise.resolve.bind(Promise),po=(0,n.j)({[r.Ik]:Z,[r.mq]:Q,[r.$t]:ot,[r.XB]:lt,[r.jN]:yt,[r.qv]:Et,[r.gh]:je,[r.q0]:Ne,[r.oX]:ao,_loadMD(){return o.e(430).then(o.bind(o,299)).then((t=>this.MD=co(t.default))).catch((t=>console.log(lo)))},getMD(){return this.MD||this._loadMD()},get[r.Zf](){return this.getMD().then((t=>t.CeDialog))},get[r.lS](){return this.getMD().then((t=>t.SbsDialog))},get[r.XT](){return this.getMD().then((t=>t.CrDialog))},_loadWL(){return o.e(288).then(o.bind(o,6814)).then((t=>this.WL=co(t.default))).catch((t=>console.log(lo)))},getWL(){return this.WL||this._loadWL()},get[r.R0](){return this.getWL().then((t=>t.LoadItem))},get[r.VO](){return this.getWL().then((t=>t.EditGroup))},get[r.aF](){return this.getWL().then((t=>t.EditList))},loadDialogs(t){t===s.mU&&this._loadWL()}}),uo=t=>co(t?po[t]:void 0),ho=t=>{po.loadDialogs(t)}},6674:(t,e,o)=>{"use strict";o.d(e,{A:()=>f});var n=o(1315),s=o(1569),r=o(1205),i=o(7686),a=o(2620),l=o(1394),c=o(3138),d=o(4848);const p="#90ed7d",u={padding:"6px 6px 6px 0"},h={width:80,margin:"0 8px 2px 5px"},m=()=>{},f=t=>{let{style:e,captionStyle:o,inputStyle:f,caption:g,initValue:y=p,onEnter:x=m}=t;const v=(0,n.li)(),[b,C]=(0,n.J0)(y),[S,w]=(0,n.J0)(!1),A=(0,n.hb)((t=>{x(t),C(t)}),[x]),j=(0,n.hb)(((t,e)=>{e.target===v.current&&w((t=>!t))}),[]),$=(0,n.hb)((()=>{w(!1)}),[]);(0,n.vJ)((()=>C(y)),[y]);const T=(0,l.A)(g);return(0,d.jsxs)("div",{style:{...u,...e},children:[(0,d.jsxs)("label",{children:[T&&(0,d.jsx)("span",{style:{...c.F,...o},children:T}),(0,d.jsx)(r.A,{style:{...h,...f},initValue:b,maxLength:20,onEnter:A})]}),(0,d.jsx)(i.A,{refEl:v,className:"p-r va-b",color:b,onClick:j,children:(0,d.jsx)(a.A,{isShow:S,model:s.A.palette,onClickCell:A,onClose:$})})]})}},4654:(t,e,o)=>{"use strict";o.d(e,{A:()=>d});var n=o(1205),s=o(1394),r=o(3138),i=o(4848);const a={padding:"6px 0 6px 6px"},l={width:220},c=(t,e,o)=>t||{...e,...o},d=t=>{let{refEl:e,styleRoot:o,rootStyle:d,captionCn:p,captionStyle:u,styleCaption:h,caption:m,inputStyle:f,styleInput:g,...y}=t;return(0,i.jsx)("div",{style:c(d,a,o),children:(0,i.jsxs)("label",{children:[(0,i.jsx)("span",{className:p,style:c(u,r.F,h),children:(0,s.A)(m||"Input")}),(0,i.jsx)(n.A,{...y,refEl:e,style:c(f,l,g)})]})})}},1394:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n=t=>t&&-1===t.indexOf(":")?`${t}:`:t},4428:(t,e,o)=>{"use strict";o.d(e,{A:()=>g});var n=o(2190);const s=()=>new Date,r=t=>t.getUTCFullYear(),i=()=>r(s()),a=t=>t.getUTCMonth(),l=()=>a(s()),c=(t,e,o)=>{const n=[];for(let s=0;s"number"==typeof e&&(t[e]||{}).value||"",u=function(t,e){return void 0===t&&(t=[]),[t,p(t,e)]},h=function(t,e,o){void 0===e&&(e=1);const s=(0,n.o0)(t)?"-"+o:o,r=c(((t,e)=>{((t,e,o)=>{const n=l(),s=Math.floor((n+1)/3);let r=4===s?3:s;for(let n=0;n<4;n++)r<1&&(e-=1,r=4),t.push(d(`${e}${o}${r}`)),r-=1})(t,e,s)}),i(),8);return u(r,e)},m=function(t,e){void 0===e&&(e=1);const o=c(((t,e)=>{t.push(d(""+e))}),i()-1,12);return u(o,e-1)},f={M:function(t,e){void 0===e&&(e=2);const o=s(),i=(0,n.o0)(t)?"-":"M",p=c(((t,e)=>{((t,e,o)=>{let n,s,r=l();for(let i=0;i<12;i++)r-=1,r>-1?(n=r+1>9?r+1:"0"+(r+1),s=`${e}${o}${n}`):(r=11,s=`${e-=1}${o}12`),t.push(d(s))})(t,e,i)}),r(o),4);return(0,n.oS)(t)&&((t,e,o)=>{const n=a(e);e.setDate(e.getDate()+1);const s=a(e),i=s===n?void 0:d(`${r(e)}${o}${s}`);i&&t.unshift(i)})(p,o,i),u(p,e)},Q:h,K:h,S:function(t,e){void 0===e&&(e=3);const o=(0,n.oS)(t)?"-S":"S",s=c(((t,e)=>{t.push(d(`${e}${o}2`),d(`${e}${o}1`))}),i(),24);return u(s,e)},Y:m,EMPTY:u,DF:m},g=function(t,e,o){return void 0===t&&(t="M"),(f[t]||f.DF)(o,e,t)}},3057:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(4867),s=o(391),r=o(3941),i=o(2569),a=o(5286);const l=(0,s.WB)(),c=t=>{let{onAbout:e,onClose:o,...s}=t;const[c,d]=(0,n.A)(l),[p,u]=(0,r.A)(e);return[p,c,u,(0,i.A)({...s,toggleLabels:d,onAbout:e}),...(0,a.A)(o)]}},2783:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315),s=o(9495);const r=()=>{const t=(0,n.li)({}),[e,o,r]=(0,s.R)(),i=(0,n.Kr)((()=>(e,o)=>{t.current[o]=e}),[]);return[t,e,o,r,i]}},3941:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(4867),s=o(6984),r=o(4558),i=o(2543);const a=(t,e)=>(0,i.VD)(t,e,!0,r.aw),l=(t,e)=>(0,i.W1)(r.aw,185,1,{p0:[a("Toggle Toolbar",t),a("About Data Source",e)]}),c=t=>{const[e,o]=(0,n.A)(!0);return[e,(0,s.A)((()=>l(o,t)))]}},4066:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=()=>{const t=(0,n.li)([0]);return[t,...(0,n.Kr)((()=>[e=>{(0,n.ZC)(t).push(e)},e=>{t.current=(0,n.ZC)(t).filter((t=>t!==e))}]),[])]}},2569:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(6984);const s=(t,e,o)=>({caption:t,title:e,onClick:o}),r="Click to toggle",i=t=>{let{toggleLabels:e,toggleInputs:o,toggleOptions:i,toggleDate:a,onAbout:l}=t;return(0,n.A)((()=>[e?s("L",`${r} input labels`,e):void 0,o?s("T",`${r} inputs`,o):void 0,i?s("O",`${r} dialog options`,i):void 0,a?s("D",`${r} date input`,a):void 0,s("A","About data source",l)].filter(Boolean)))}},5286:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=Array.isArray,r=t=>{const[e,o]=(0,n.J0)([]),r=(0,n.hb)((t=>{s(t)&&o((e=>0===e.length&&0===t.length?e:t))}),[]),i=(0,n.hb)((()=>{t(),r([])}),[]);return[e,r,i]}},8353:(t,e,o)=>{"use strict";o.d(e,{Ic:()=>i,ND:()=>n,cP:()=>a,lM:()=>s,v$:()=>r});const n="popup-menu",s={left:5,zIndex:100,padding:"6px 14px 10px 12px"},r={padding:"3px 0 6px"},i="#1b75bb",a="#a487d4"},7591:(t,e,o)=>{"use strict";o.d(e,{A:()=>N});var n=o(4558),s=o(1327),r=o(7144),i=o(6476),a=o(3608),l=o(7927),c=o(6912),d=o(2505),p=o(4848);const u="#1b75bb",h=`${n.c5} ${s.sK}`,m={height:36,paddingTop:6,width:100},f={lineHeight:"unset"},g={color:u},y=t=>{let{children:e,...o}=t;const n=(0,d.A)(o),[s,y]=(0,a.A)(o),x={...m,...(0,l.A)(o),...o.labelStyle};return(0,p.jsx)(r.A,{labelId:n,caption:y,style:f,rowStyle:c.JK,className:h,ocStyle:x,captionStyle:g,openColor:u,CompAfter:(0,p.jsx)(i.A,{...s,labelId:n}),children:e})};var x=o(1315),v=o(7686),b=o(9073),C=o(1358);const S=t=>{let{refEl:e,isShow:o,style:n,title:s,initialValue:r=1,maxValue:i=4}=t;const[a,l]=(0,x.J0)(r),c=(0,x.hb)((()=>{l((t=>t({getValue:()=>a})),[a]),o?(0,p.jsx)(C.A,{style:n,title:s,caption:a,onClick:c}):null},w={marginRight:4},A=t=>{let{isLong:e,colors:o,onClick:n}=t;const s=e?o.length:5;return o.map(((t,e)=>e{let{refEl:e,isLong:o,chartType:s}=t;const r=(0,x.li)(),[i,a]=(0,x.J0)(b.fB),[l,c]=(0,x.Kr)((()=>[t=>{t&&a(t)},()=>{a(b.fB)}]),[]);(0,x.Yn)(e,(()=>({getValue:()=>({seriaColor:i!==b.fB?i:void 0,seriaWidth:I(s)?(0,x.y5)(r):void 0})})),[i,s]);const d=I(s),u=(0,n.FG)(k,!d&&_);return(0,p.jsxs)("div",{style:T,children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(v.A,{color:i,className:"va-b",style:D,onClick:c}),(0,p.jsx)(A,{isLong:o,colors:j,onClick:l})]}),(0,p.jsxs)("div",{style:u,children:[(0,p.jsx)(S,{refEl:r,isShow:d,style:E,title:"Line Width"}),(0,p.jsx)(A,{isLong:o,colors:$,onClick:l})]})]})},N=t=>{let{refSeriaColor:e,chartType:o,isShowLabels:n,labelStyle:s,placeholder:r,selectWidth:i,options:a,onSelectChart:l}=t;return(0,p.jsx)(y,{isShowLabels:n,labelStyle:s,caption:"Chart",placeholder:r||a[0].caption,width:i,options:a,onSelect:l,children:(0,p.jsx)(L,{refEl:e,isLong:n,chartType:o})})}},2089:(t,e,o)=>{"use strict";o.d(e,{A:()=>l});var n=o(1315),s=o(9495),r=o(1909),i=o(4848);const a=()=>{},l=t=>{let{initialValue:e,onCheck:o=a,onUnCheck:l=a,...c}=t;const[d,p,u]=(0,s.o)(e),h=(0,n.hb)((()=>{o(),p()}),[o,p]),m=(0,n.hb)((()=>{l(),u()}),[l,u]);return(0,i.jsx)(r.A,{...c,value:d,hCheck:h,hUnCheck:m})}},66:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315),s=o(2089),r=o(4848);const i=t=>{let{onToggle:e,id:o,...i}=t;const[a,l]=(0,n.Kr)((()=>[()=>e(!0,o),()=>e(!1,o)]),[e,o]);return(0,r.jsx)(s.A,{...i,onCheck:a,onUnCheck:l})}},6223:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315),s=o(1909),r=o(4848);const i=()=>{},a=t=>{let{onToggle:e=i,...o}=t;const[a,l]=(0,n.Kr)((()=>[()=>{e(!0)},()=>{e(!1)}]),[e]);return(0,r.jsx)(s.A,{...o,hCheck:a,hUnCheck:l})}},1909:(t,e,o)=>{"use strict";o.d(e,{A:()=>p});var n=o(1315),s=o(4558),r=o(4874),i=o(1853),a=o(4848);const l=(0,s.P5)("bt-chb"),c="#1b2836",d={padding:"6px 0 0 16px"},p=t=>{let{chbCn:e,btCn:o,style:p,value:u,caption:h,captionStyle:m,color:f=c,hCheck:g,hUnCheck:y}=t;const x=(0,n.Bi)(),v=(0,n.hb)((()=>{u?y():g()}),[u,g,y]),b=u?o:void 0,C=(0,s.FG)(m,!b&&u&&{color:f}),S=!!h;return(0,a.jsxs)("div",{style:{...d,...p},children:[(0,a.jsx)(i.A,{value:u,className:e,color:f,labelId:S?x:void 0,onCheck:g,onUnCheck:y}),S&&(0,a.jsx)(r.A,{id:x,tabIndex:"-1",className:(0,s.PX)(l,b),style:C,onClick:v,children:h})]})}},6912:(t,e,o)=>{"use strict";o.d(e,{JK:()=>i,st:()=>a,t4:()=>l});var n=o(4558),s=o(4848);const r=t=>e=>{let{style:o,children:r}=e;return(0,s.jsx)("div",{style:(0,n.FG)(t,o),children:r})},i={display:"flex",alignItems:"center",margin:5},a=r(i),l=r({display:"flex",justifyContent:"flex-end",flexWrap:"wrap",margin:"8px 4px 10px 0"})},5317:(t,e,o)=>{"use strict";o.d(e,{A:()=>d});var n=o(1327),s=o(6476),r=o(3608),i=o(7927),a=o(6912),l=o(2505),c=o(4848);const d=t=>{const e=(0,l.A)(t),[o,d]=(0,r.A)(t);return(0,c.jsxs)(a.st,{children:[(0,c.jsx)(n.D4,{id:e,style:(0,i.A)(t),children:d}),(0,c.jsx)(s.A,{...o,labelId:e})]})}},9842:(t,e,o)=>{"use strict";o.d(e,{A:()=>b});var n=o(1327),s=o(1315),r=o(372),i=o(9355),a=o(8862),l=o(9195),c=o(4848);const d={display:"flex"},p={...l.nd,width:"calc(100% - 50px)",paddingLeft:0,marginLeft:10,marginBottom:5},u={borderBottomStyle:"solid",borderBottomWidth:1},h={margin:"5px 8px 0 auto"},m=t=>({initValue:t,value:t,errorInput:void 0,isValid:!0}),f=()=>!0,g=()=>{},y=(t,e)=>{let{refEl:o,style:n,inputStyle:y,maxLength:x=64,initValue:v="",placeholder:b="Input Pattern",errorMsg:C,onTest:S=f,onEnter:w,isClearBlank:A=!1,onClear:j=g}=t;const $=(0,s.li)(),T=(0,s.li)(),k=(0,s.li)(),[_,E]=(0,s.J0)((()=>m(v))),{value:D,isValid:I,errorInput:L}=_,N=(0,s.hb)((t=>{const{value:e}=t.target;E((t=>({...t,value:e,errorInput:void 0,isValid:S(e)})))}),[S]),O=(0,r.A)({onEnter:w,onDelete:()=>E(m(v))},[v,w]),M=(0,s.hb)((()=>{j(),(0,s.ZI)($),E(m(A?"":v))}),[v,j,A]);(0,s.vJ)((()=>{_.initValue!==v&&E(m(v))}),[v]),T.current=()=>(D||"").trim(),k.current=()=>S(D),(0,s.Yn)(o,(()=>({getValue:()=>T.current(),isValid:()=>k.current(),focus:()=>(0,s.ZI)($),showErrMsg:()=>E((t=>({...t,isValid:!1,errorInput:C})))})),[C]);const F=(t=>({...u,borderBottomColor:(0,l.O3)(t)}))(I),W=(t=>({...h,stroke:(0,l.O3)(t)}))(I);return(0,c.jsxs)("div",{style:{...l.v$,...n},children:[(0,c.jsxs)("div",{style:d,children:[(0,c.jsx)("input",{type:"text",style:{...p,...y,...F},ref:$,name:"text-date",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,placeholder:b,value:D,maxLength:x,onChange:N,onKeyDown:O}),D||L?(0,c.jsx)(i.a,{style:W,onClick:M}):null]}),(0,c.jsx)(a.A,{msg:L})]})};var x=o(7927),v=o(6912);const b=t=>{let{refEl:e,isShowLabels:o,captionStyle:s,caption:r,...i}=t;return(0,c.jsxs)(v.st,{children:[(0,c.jsx)(n.D4,{style:(0,x.A)({isShowLabels:o,captionStyle:s}),children:r}),(0,c.jsx)(y,{refEl:e,...i})]})}},7927:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4558);const s=t=>{let{isShowLabels:e,captionStyle:o}=t;return e?o:n.JS}},3608:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});const n=(t,e,o)=>[t.slice(0,e)+o,t],s=t=>"string"!=typeof t?[]:(t=>t.length>11&&-1===t.indexOf(" "))(t)?n(t,11,"."):t.length>30?n(t,30,"..."):[t],r=t=>{let{isShowLabels:e,caption:o="",width:n=250,...r}=t;return[{width:n,...r,optionName:e?"":o},...s(o)]}},2505:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{let{isShowLabels:e}=t;const o=(0,n.Bi)();return e?o:void 0}},391:(t,e,o)=>{"use strict";o.d(e,{$O:()=>l,WB:()=>s,dY:()=>r,s:()=>a,zK:()=>n});const n=()=>window&&window.innerWidth,s=function(t){return void 0===t&&(t=700),(n()||t+1)>t},r=document&&"ontouchstart"in document.documentElement,i=s(),a=!r||i,l=(t,e)=>{if(s())return{width:t};const o=(t=>(n()||t+16)-16)(t);return{width:o>e?o:e}}},8376:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=()=>!0,r=function(t,e){return void 0===e&&(e=s),(0,n.ph)(t,e)}},4575:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=(t,e)=>t.isShow===e.isShow,r=t=>(0,n.ph)(t,s)},6736:(t,e,o)=>{"use strict";o.d(e,{Ly:()=>a,P0:()=>r,iw:()=>l});var n=o(1315),s=o(391);const r=t=>{let{keyCode:e}=t;return 13===e||32===e},i=t=>(e,o)=>(0,n.hb)((o=>{t(o)&&(o.preventDefault(),o.stopPropagation(),e(o))}),o||[]),a=i(r),l=s.s?i((t=>27===t.keyCode||"Escape"===t.key)):()=>{}},9495:(t,e,o)=>{"use strict";o.d(e,{R:()=>i,o:()=>r});var n=o(1315);const s=(t,e)=>t[0]!==e?[e,t[1],t[2]]:t,r=t=>{const[e,o]=(0,n.J0)((()=>[!!t,()=>o((t=>s(t,!0))),()=>o((t=>s(t,!1)))]));return e},i=t=>{const[e,o]=(0,n.J0)((()=>[!!t,()=>o((t=>s(t,!t[0]))),()=>o((t=>s(t,!1)))]));return e}},634:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(2291);const s=t=>{let{isInitShow:e,useMsBrowserShow:o,browserType:s}=t;const[r,i,a,l]=(0,n.A)(e);return o((t=>{t&&t.browserType===s&&i()})),[r,a,l]}},948:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=(t,e)=>{(0,n.ZC)(e)&&(document.removeEventListener("click",t,!0),(0,n.nl)(e,null))},r=(t,e)=>{const o=(0,n.li)(null),r=(0,n.li)(null),i=(0,n.hb)((t=>{const s=(0,n.ZC)(o);s&&s.contains&&!s.contains(t.target)&&(t.stopPropagation(),e(t))}),[]);return(0,n.vJ)((()=>{t&&!(0,n.ZC)(r)?(document.addEventListener("click",i,!0),(0,n.nl)(r,!0)):t||s(i,r)})),(0,n.vJ)((()=>()=>s(i,r)),[]),o}},6072:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{const e=(0,n.li)(null);return(0,n.Nf)((()=>{e.current=t})),(0,n.hb)((function(){return(0,e.current)(...arguments)}),[])}},4407:(t,e,o)=>{"use strict";o.d(e,{C:()=>i,Ri:()=>r,ay:()=>s,hT:()=>a});var n=o(1315);const s=t=>{const e=(0,n.li)();return[e,(0,n.hb)((()=>{t(),(0,n.ZI)(e)}),[])]},r=()=>{const t=(0,n.li)(),e=(0,n.hb)((e=>{(0,n.nl)(t,e)}),[]);return[t,e]},i=t=>{const e=(0,n.li)();return(0,n.vJ)((()=>{t&&(0,n.ZI)(e)}),[t]),e},a=(t,e,o)=>{(0,n.vJ)((()=>{t&&setTimeout((()=>(0,n.ZI)(e)),o||1e3)}),[t])}},8248:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=t=>{const e=(0,n.li)(),{current:o}=e;return e.current=t,o},r=t=>!s(t)&&t},4250:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=(t,e)=>{const o=(0,n.li)(t);return(0,n.Kr)((()=>[t=>{o.current=t},()=>o.current||e]),[])}},6134:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{const e=(0,n.li)(t),[o,s]=(0,n.Kr)((()=>[()=>e.current=!0,()=>e.current=!1]),[]);return[e,o,s]}},6984:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=t=>{const e=(0,n.li)(null);return null===e.current&&(e.current=t()),e.current}},3986:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315);const s=()=>({}),r=()=>(0,n.WO)(s)[1]},2291:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(9495),s=o(6736);const r=t=>{const[e,o,r]=(0,n.o)(t);return[e,o,r,(0,s.iw)(r)]}},5032:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315);const s=Date.now||(()=>new Date.getTime),r=function(t,e){void 0===e&&(e=800);let o=0;return function(){const n=s();if(n-o>e)return o=n,t(...arguments)}},i=(t,e,o)=>(0,n.hb)(r(t,o),e||[])},4867:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315);const s=t=>!!t,r=(t,e)=>(0,n.bj)(e)?e:!t,i=t=>(0,n.WO)(r,t,s)},330:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315);const s=Object.prototype.hasOwnProperty,r=t=>(0,n.fp)(t)?t():t,i=(t,e)=>(0,n.O8)(e)?{...t,[e]:!t[e]}:(0,n.sA)(e)&&((t,e)=>{let o;for(o in e)if(s.call(e,o)){if(!(0,n.bj)(e[o]))return;if(t[o]!==e[o])return!0}})(t,e)?{...t,...e}:t,a=t=>(0,n.WO)(i,t||{},r)},8358:(t,e,o)=>{"use strict";o.d(e,{SW:()=>s,Tp:()=>c,e3:()=>d,mz:()=>a,n4:()=>r,xp:()=>l});var n=o(1315);const s=!o(391).dY,r="keydown";let i=Object.create(null);const a=(t,e,o)=>i&&(i[t]=[e,o]),l=t=>i&&(i[t]=void 0),c=()=>{i=null},d=t=>{if((t=>(t.altKey||t.metaKey)&&t.key)(t)){const[e,o]=i[t.key.toUpperCase()]||[];"function"==typeof e&&(t.stopImmediatePropagation(),(0,n.ZI)(o),e(t))}}},2543:(t,e,o)=>{"use strict";o.d(e,{VD:()=>s,W1:()=>r,z7:()=>n});const n=(t,e,o)=>({type:"sub",id:t,name:e,cn:o}),s=function(t,e,o,n){return void 0===o&&(o=!0),{name:t,onClick:e,isClose:o,cn:n}},r=(t,e,o,n)=>({...n,titleCl:t,pageWidth:e,maxPages:o})},2019:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(1315),s=o(4848);const r={display:"inline-block",paddingTop:4},i=t=>{let{isHttp:e,className:o="native-link",style:i,href:a,caption:l}=t;const c=(0,n.jd)(a,e),d={...r,...i};return c&&l?(0,s.jsx)("a",{className:o,style:d,href:c,children:l}):null}},9517:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(2019),s=o(4848);const r="NASDAQ Link",i=t=>{let{item:e={},caption:o=r,style:i}=t;const{text:a="",value:l}=(d=e)&&"object"==typeof d?e:{value:e},c=(t=>"string"==typeof t)(l)?l.trim():a.split("-")[0].trim();var d;return(0,s.jsx)(n.A,{style:i,href:`https://www.nasdaq.com/symbol/${c}`,caption:`${o} ${c}`})}},4558:(t,e,o)=>{"use strict";o.d(e,{$N:()=>l,CQ:()=>E,DH:()=>S,Dq:()=>P,FG:()=>F,JS:()=>I,Jq:()=>s.Jq,KJ:()=>q,Ke:()=>N,P5:()=>f,PX:()=>i,Qd:()=>_,SX:()=>R,Sf:()=>Y,TY:()=>m,Th:()=>Z,WE:()=>u,Yo:()=>h,Z6:()=>z,_F:()=>Q,aM:()=>tt,ae:()=>k,aw:()=>A,c5:()=>T,d6:()=>et,eA:()=>j,eT:()=>d,fy:()=>c,hI:()=>X,lS:()=>M,lp:()=>O,mL:()=>D,mg:()=>g,nV:()=>B,tP:()=>y,vz:()=>G,w_:()=>p,x$:()=>H,xu:()=>L,zV:()=>C,zq:()=>V});var n=o(1315),s=o(4218);const r=t=>(0,n.Ep)(t)?t[0]?t[1]:"":t||"",i=(t,e)=>{const o=r(t),n=r(e);return o?n?`${o} ${n}`:o:n||void 0},a=t=>e=>i(e,t),l="toggle-arrow",c="show-popup",d="black",p="chb-bl",u="not-selected",h="text-ellipsis",m="w-100",f=a("bold-16"),g=a("with-scroll"),y=a(u),x=t=>e=>y(`${e} ${t}`),v=a("menuitem"),b=t=>y(f(v(t))),C=b("row__topic"),S=b("row__pane-topic"),w=x(d),A=w(S),j=w(b("row__type2-topic")),$="open-close",T=`${$} cfs-dark`,k=`${$}__exp`,_=`${$} cfs-black`,E={display:"block"},D={display:"inline-block"},I={display:"none"},L={borderRadius:2},N={marginLeft:8,paddingLeft:8,borderLeft:"solid 2px var(--btf-c)"},O=function(t,e){return void 0===e&&(e=26),{...D,color:t,width:e,height:e,textAlign:"center",border:`solid 2px ${t}`,borderRadius:"50%"}},M=(t,e,o,n)=>t?[i(e,[!o,n||c]),E]:[e,I],F=(t,e)=>e?{...t,...e}:t,W="c-bg",R=a(W),P=t=>R(i("bs-cont",t)),B=a("scroll-container-y"),U="el-b",z=a(`${W} ${U}`),V=a(U),J="el-bg",K="el-c",Z=a(`${K} ${J}`),q=a(J),Y=a(`${W} ${K} el-bb`),G=a("bt-circle-hf"),H=x("bt-circle"),Q=a("bold"),X=t=>`bt-svg-${t}`,tt=a("flex-row"),et=tt("hrz-container")},9073:(t,e,o)=>{"use strict";o.d(e,{fB:()=>r,fN:()=>n,ui:()=>s});const n="#f1d600",s="#80c040",r="rgba(0, 0, 0, 0)"},4218:(t,e,o)=>{"use strict";o.d(e,{oP:()=>$,Jq:()=>N,Sr:()=>R});const n="silver",s="#1b2836",r="grey",i="black",a="#8bc34a",l="#c0c0c0",c="b-bg",d="s-c2",p="c-bg",u="el-bg",h="btf-c",m="c-bl",f=[c,"s-c1",d,p,"bh-c","lb-bc",u,"el-c",h,m],g=["#5f5f5f",a,s,"#4d4d4d",l,s,s,n,s,i],y="#dce1e5",x=["#e1e1e1",a,y,"#f1f2f3",l,r,y,"#212020",r,i],v="#64473d",b=["#9e9e9e",a,v,"#e8e0cb","#5b5b5b",r,v,n,"#785133",i],C="GREY",S="BLACK",w="WHITE",A="SAND",j="SANDL_L",$=[{c:"Grey",v:C},{c:"White",v:w},{c:"Sand",v:A},{c:"Sand Light",v:j},{c:"Black",v:S}],T=C,k={[C]:g,[S]:g,[w]:x,[A]:b,[j]:b},_="#463222",E={[S]:{[c]:"#202328",[p]:i,[u]:"#292e37",[h]:"#009688",[m]:r},[A]:{[d]:_,[p]:"#e6d5a9",[u]:_}},D=t=>f.reduce(((e,o,n)=>(e[o]=t[n],e)),{}),I=Object.create(null);I[T]=D(k[T]);let L=I[T][m];const N=()=>L,O=t=>{const e=(t=>{if(!I[t]){const e=k[t];if(!e)return I[T];I[t]={...D(e),...E[t]||void 0}}return I[t]})(t),o=document.body.style,n=k[T];f.forEach(((t,s)=>{o.setProperty(`--${t}`,e[t]||n[s])})),L=e[m]};var M=o(9479);let F;const W=t=>{F=(t=>k[t]?t:T)(t),O(F),(0,M.i)(F!==T)};W(T);const R=t=>{const e=(t||{}).v;F!==e&&W(e)}},1315:(t,e,o)=>{"use strict";o.d(e,{$:()=>j,Bi:()=>i.useId,CA:()=>b,Ek:()=>$,El:()=>N,Ep:()=>a.Ep,Et:()=>a.Et,F5:()=>w,HV:()=>v,J0:()=>i.useState,Jr:()=>s.J,Kj:()=>c,Kr:()=>i.useMemo,MZ:()=>r.MZ,NT:()=>i.useContext,Nf:()=>i.useLayoutEffect,O8:()=>a.O8,QD:()=>n.Q,RZ:()=>i.lazy,UU:()=>T,WO:()=>i.useReducer,Yn:()=>i.useImperativeHandle,ZC:()=>h,ZI:()=>x,_3:()=>i.createRef,al:()=>S,bj:()=>a.bj,fp:()=>a.fp,hC:()=>f,hb:()=>i.useCallback,i6:()=>u,jd:()=>M,jw:()=>p,k8:()=>g,lZ:()=>d,li:()=>i.useRef,nl:()=>m,ph:()=>i.memo,q6:()=>i.createContext,rz:()=>i.useSyncExternalStore,sA:()=>a.sA,tY:()=>i.Suspense,uA:()=>i.Component,vJ:()=>i.useEffect,w7:()=>F,xJ:()=>O,xS:()=>C,y5:()=>A});var n=o(3243),s=o(1852),r=o(2823),i=o(3569),a=o(3730),l=o(4848);const c=()=>Object.create(null),d=(t,e)=>(0,a.Ep)(t)&&t.length>0?t.map(e):null,p=(t,e)=>!(0,a.Ep)(t)&&(0,a.sA)(t)?e(t,0):d(t,e),u=function(t,e,o){return void 0===o&&(o=t.key),(0,l.jsx)(t.type,{...t.props,...e},o)},h=t=>(t||{}).current,m=(t,e)=>{t&&(t.current=e)},f=t=>(h(t)||{}).style,g=t=>{t&&(0,a.fp)(t.focus)&&t.focus()},y=t=>(0,a.fp)(t)?t():h(t),x=(t,e)=>{g(y(t)||y(e))},v=t=>{g(document.getElementById(t))},b=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},C=t=>{t.stopPropagation(),t.preventDefault()},S=t=>(0,a.fp)(t.composedPath)?t.composedPath():t.path||[],w=t=>{const e=h(t);return!(!e||!(0,a.fp)(e.isValid))&&e.isValid()},A=t=>{const e=h(t);return e&&(0,a.fp)(e.getValue)?e.getValue():void 0},j=t=>{const e=h(t);e&&(0,a.fp)(e.setValue)&&e.setValue("")},$=(t,e)=>w(t)?A(t):e,T=t=>{const e=h(t);return e&&(0,a.fp)(e.getOptions)?e.getOptions():void 0},k="clientX",_="clientY",E=t=>e=>(t=>t&&t[0]||{})(e)[t],D=E(k),I=E(_),L=(t,e)=>o=>o[t]||e(o.targetTouches)||e(o.changedTouches)||0,N=L(k,D),O=L(_,I),M=(t,e)=>{const o=(t||"").split("://")[0];return"https"===o||e&&"http"===o?t:void 0},F=t=>{const e=h(t);if(e){const t=e.querySelectorAll('input[role="combobox"]');let o,n=0;for(;n{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(9495),r=o(4848);const i={color:"#2f7ed8"},a={color:"#1b2836"},l=()=>(0,r.jsx)("div",{style:i,children:"Loading..."}),c=t=>{let{retry:e}=t;return(0,r.jsx)("button",{type:"button",className:"bt",style:a,onClick:e,children:"Retry"})},d=function(t,e,o){void 0===e&&(e=l),void 0===o&&(o=c);return i=>{const[a,l,c]=(0,s.o)(!0),d=(0,n.Kr)((()=>(0,n.RZ)((()=>t().catch((()=>(c(),{default:()=>(0,r.jsx)(o,{retry:l})})))))),[a]);return(0,r.jsx)(n.tY,{fallback:(0,r.jsx)(e,{}),children:(0,r.jsx)(d,{...i})})}},p=t=>()=>{return o.e(27).then(o.bind(o,2105)).then((e=t,t=>({default:t.default[e]})));var e},u={SparkView:d(p("SparkView")),Line:d(p("Line")),Bars:d(p("Bars")),ReferenceLine:d(p("ReferenceLine")),Spot:d(p("Spot")),Spots:d(p("Spot")),MaxLabel:d(p("MaxLabel")),MinLabel:d(p("MinLabel"))}},6539:(t,e,o)=>{"use strict";o.d(e,{A:()=>y});var n=o(4558),s=o(1315);const r=()=>{},i=function(t,e){void 0===t&&(t=0),void 0===e&&(e=r);const o=(0,s.li)(null);return(0,s.hb)((n=>{if(0===t)return void e(n);const s=o.current,{timeStamp:r}=n;(null==s||r-s>t)&&(e(n),o.current=r)}),[t,e])};var a=o(8358);const l=(t,e,o)=>{const n=(0,s.li)(null);return(0,s.vJ)((()=>a.SW&&t?((0,a.mz)(t,e,o||n),()=>(0,a.xp)(t)):void 0),[]),[a.SW&&t?t:"",o||n]};var c=o(4848);const d={textDecoration:"underline"},p=(t,e)=>{const o=t?e.toUpperCase().indexOf(t):-1;if(-1===o)return e;const n=e.slice(0,o),s=e.slice(o,o+1),r=e.slice(o+1);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{children:n}),(0,c.jsx)("span",{style:d,children:s}),(0,c.jsx)("span",{children:r})]})},u=t=>{let{className:e,caption:o,hotKey:n,children:s}=t;return o?(0,c.jsxs)("span",{className:e,children:[p(n,o),s]}):null},h="bt-flat",m=(0,n.P5)(h),f=`${h}__caption`,g={color:"#607d8b"},y=t=>{let{refBt:e,isArrow:o,timeout:s=3e3,className:r,style:a,isPrimary:d,title:p="",caption:h,hotKey:y,children:x,onClick:v}=t;const b=i(s,v),C=(0,n.PX)(m,r),S=(0,n.FG)(a,d&&g),[w,A]=l(y,b,e),j=((t,e)=>e?`${t} [${e.toLowerCase()}]`:t)(p,w);return(0,c.jsxs)("button",{type:"button",ref:A,className:C,style:S,title:j,onClick:b,children:[(0,c.jsx)(u,{className:f,caption:h,hotKey:w,children:o&&(0,c.jsx)("span",{className:"arrow-down"})}),x]})}},509:(t,e,o)=>{"use strict";o.d(e,{A:()=>L});var n=o(1315);const s=(t,e)=>{const o=()=>({...t(e),_props:e}),[s,r]=(0,n.J0)(o);return e!==s._props&&r(o()),[s,r]};var r=o(5032),i=o(7438),a=o(2357);const l=Array.isArray,c=(t,e,o)=>{const s=(0,n.li)(),r=(0,n.li)(),i=e||s,a=o||r;return[(0,n.Kr)((()=>l(t)?e=>{const o=t.length-1;return((t,e,o,n)=>0===n?t:n===o?e:void 0)(i,a,o,e)}:void 0),[t,i,a]),a,i]},d=(t,e)=>(0,n.hb)((()=>(0,n.ZC)(t)||(0,n.ZC)(e)),[]);var p=o(4407),u=o(2054),h=o(6736),m=o(4848);const f=t=>{let{refEl:e,className:o,style:n,children:s,onClick:r}=t;const i=(0,h.Ly)(r);return(0,m.jsx)("div",{ref:e,className:o,style:n,role:"menuitem",tabIndex:"0",onClick:r,onKeyDown:i,children:s})},g={position:"relative"},y={position:"absolute",top:0,left:16},x={paddingLeft:22},v=t=>{let{refEl:e,titleCl:o,title:n,onClick:s}=t;return n?(0,m.jsxs)(f,{refEl:e,className:o,style:g,onClick:s,children:[(0,m.jsx)("span",{style:y,children:"<"}),(0,m.jsx)("span",{style:x,children:n})]}):null},b={position:"relative"},C={display:"inline-block",position:"absolute",top:0,right:4,color:"inherit",padding:"1px 16px 1px 0px",fontWeight:"bold"},S=t=>{let{type:e}=t;return"sub"===e?(0,m.jsx)("span",{style:C,children:">"}):null},w=t=>{let{getRefFocus:e,items:o,itemCl:s,pageNumber:r,onNextPage:i,onClose:a}=t;return(0,m.jsx)(m.Fragment,{children:(0,n.lZ)(o,((t,o)=>{const{cn:l,name:c,type:d,id:p,isClose:u,onClick:h}=t,g="sub"===d?(0,n.Jr)(i,p,c,r):(t=>{let{isClose:e,onClick:o,onClose:s}=t;return(0,n.fp)(o)?e?()=>{o(),s()}:o:void 0})({isClose:u,onClick:h,onClose:a});return(0,m.jsxs)(f,{refEl:e(o),className:l||s,style:b,onClick:g,children:[(0,m.jsx)("span",{children:c}),(0,m.jsx)(S,{type:d})]},c)}))})},A=[],j=t=>{let{isVisible:e,style:o,title:s,titleCl:r,itemCl:i,pageNumber:a,items:l=A,onNextPage:h,onPrevPage:f,onClose:g,children:y}=t;const x=(0,n.li)(),[b,C,S]=c(l),j=d(x,S),$=(0,n.hb)((()=>{f(a)}),[f,a]);return(0,p.hT)(e,j),(0,m.jsx)("div",{style:o,children:(0,m.jsxs)(u.A,{refFirst:j,refLast:C,children:[(0,m.jsx)(v,{refEl:x,titleCl:r,title:s,onClick:$}),(0,m.jsx)(w,{getRefFocus:b,items:l,itemCl:i||r,pageNumber:a,onNextPage:h,onClose:g}),y]})})},$=t=>{let{isShow:e,style:o,pages:s,pageCurrent:r,onNextPage:i,onPrevPage:a,onClose:l}=t;return(0,n.lZ)(s,((t,s)=>(0,n.i6)(t,{style:o,isVisible:e&&s+1===r,pageNumber:s+1,onNextPage:0===s?i:void 0,onPrevPage:0!==s?a:void 0,onClose:l})))},T={position:"absolute",overflow:"hidden"},k={pageWidth:100,maxPages:2,initId:"p0",p0:[]},_=t=>({width:t}),E=(t,e,o,n)=>{e.push((0,m.jsx)(j,{title:n,items:t[o],titleCl:t.titleCl,itemCl:t.itemCl},o))},D=t=>{const e=t.pageWidth,o=t.maxPages,s=t.initId||"p0";return{addPage:(0,n.Jr)(E,t),pageWidth:e,pagesStyle:_(o*e),pageStyle:_(e),pageCurrent:1,pages:[(0,m.jsx)(j,{items:t[s],titleCl:t.titleCl,itemCl:t.itemCl},s)]}},I=(t,e)=>({transform:`translateX(${-1*t*(e-1)+0}px)`}),L=t=>{let{model:e=k,isShow:o,className:n,rootStyle:l,style:c,onClose:d}=t;const[p,u]=s(D,e),{pageWidth:h,pagesStyle:f,pageStyle:g,pageCurrent:y,pages:x}=p,v=(0,r.A)((t=>{u((e=>(e.pageCurrent=t-1,{...e})))})),b=(0,r.A)(((t,e,o)=>{u((n=>{const{addPage:s,pages:r}=n;return r.length-1+1>o?r[o]&&r[o].key!==t&&(o>0?n.pages.splice(o):n.pages=[],s(n.pages,t,e)):s(r,t,e),n.pageCurrent=o+1,{...n}}))})),C={...c,...T,...g},S={...f,...I(h,y)};return(0,m.jsx)(i.A,{isShow:o,style:l,onClose:d,children:(0,m.jsx)(a.A,{className:n,style:C,isShow:o,children:(0,m.jsx)("div",{className:"slider-pages",style:S,children:(0,m.jsx)($,{isShow:o,style:g,pages:x,pageCurrent:y,onNextPage:b,onPrevPage:v,onClose:d})})})})}},7686:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(4558),s=o(6736),r=o(4848);const i=t=>{let{refEl:e,className:o,style:i,color:a,onClick:l,children:c}=t;const d=(0,n.PX)(o,"input-color"),p=a?{backgroundColor:a}:void 0,u=l?t=>l(a,t):void 0,h=(0,s.Ly)(u,[u]);return(0,r.jsx)("span",{ref:e,tabIndex:"0",role:"button",className:d,style:{...i,...p},onClick:u,onKeyDown:h,children:c})}},694:(t,e,o)=>{"use strict";o.d(e,{Qr:()=>i,RD:()=>s,SF:()=>r,z2:()=>n});const n={borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 6px"},s={position:"relative",padding:"5px 35px 5px 16px",textAlign:"center",fontSize:"18px",fontWeight:500},r={color:"#607d8b"},i={top:4}},6112:(t,e,o)=>{"use strict";o.d(e,{A:()=>m});var n=o(1315);const s=t=>{const[e,o]=(0,n.J0)(!1);return[e,(0,n.hb)((()=>{o((e=>(e&&(0,n.ZI)(t),!e)))}),[])]};var r=o(9355),i=o(5709),a=o(509),l=o(4848);const c={position:"absolute",top:1,left:2},d=t=>{let{refEl:e,isMore:o,menuModel:n,toggle:s}=t;return n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.A,{refEl:e,style:c,onClick:s}),(0,l.jsx)(a.A,{isShow:o,className:"popup-menu dialog__menu-more el-b",model:n,onClose:s})]}):null};var p=o(4558),u=o(694);const h=(0,p.Th)(),m=t=>{let{refBtMenuMore:e,menuModel:o,caption:n,onClose:i}=t;const[a,c]=s(e);return(0,l.jsxs)("div",{className:h,style:u.RD,children:[(0,l.jsx)(d,{refEl:e,isMore:a,menuModel:o,toggle:c}),(0,l.jsx)("span",{className:p.WE,children:n}),(0,l.jsx)(r.P,{style:u.Qr,onClick:i})]})}},7104:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(1315),s=o(4848);const r=t=>{let{is:e,children:o}=t;const r=(0,n.li)();return(0,n.vJ)((()=>{e&&setTimeout((()=>(0,n.k8)((0,n.w7)(r))),200)}),[e]),(0,s.jsx)("div",{ref:r,children:o})}},2054:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315),s=o(391),r=o(4848);const i=t=>{let{style:e,onFocus:o}=t;return(0,r.jsx)("div",{style:e,tabIndex:"0","aria-hidden":"true",onFocus:o})},a=t=>{let{refEl:e,refFirst:o,refLast:a,style:l,children:c}=t;return s.s?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i,{style:l,onFocus:()=>{(0,n.ZI)(a,e)}}),c,(0,r.jsx)(i,{style:l,onFocus:()=>{(0,n.ZI)(o,e)}})]}):c}},2400:(t,e,o)=>{"use strict";o.d(e,{A:()=>v});var n=o(1315),s=o(7599),r=o(4558),i=o(6736),a=o(7368),l=o(6912),c=o(6539),d=o(2054),p=o(6112),u=o(694),h=o(4848);const m=(0,r.Z6)("modal-dialog"),f={...u.z2,display:"block",position:"absolute",top:"20%",left:"50%",width:380,marginLeft:-190,zIndex:10},g=t=>{let{refBtClose:e,commandButtons:o,withoutClose:n,onClose:s}=t;return(0,h.jsxs)(l.t4,{children:[o,!n&&(0,h.jsx)(c.A,{refBt:e,caption:"Close",title:"Close Modal Dialog",timeout:0,onClick:s},"close")]})},y=()=>{},x=t=>{t.stopPropagation()},v=t=>{let{refFocusLast:e,isShow:o,style:l,menuModel:c,caption:u,styleCaption:v,commandButtons:b,withoutClose:C,isWithButton:S=!0,children:w,timeout:A=450,onClose:j=y}=t;const $=(0,n.li)(),T=(0,n.li)(),k=(0,n.li)(),_=(0,i.iw)(j),[E,D]=(0,r.lS)(o,m);return(0,a.A)(o,k,$),(0,h.jsx)(d.A,{refEl:$,refFirst:k,refLast:e||T,style:D,children:(0,h.jsxs)("div",{...(0,s.mw)(o,u),ref:$,className:E,style:{...f,...l,...D},onClick:x,onKeyDown:_,children:[(0,h.jsx)(p.A,{refBtMenuMore:k,menuModel:c,caption:u,onClose:j}),(0,h.jsx)("div",{children:w}),S&&(0,h.jsx)(g,{refBtClose:!C&&o?T:void 0,commandButtons:b,withoutClose:C,onClose:j})]})})}},2620:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(972),s=o(1315),r=o(7686),i=o(4848);const a={margin:10},l={width:120},c={margin:4},d=(0,s.ph)((t=>{let{model:e,onClickCell:o}=t;const{rows:n,cols:d,colors:p}=e,u=[];let h,m,f,g;for(h=0;h{let{isShow:e,model:o,onClickCell:s,onClose:r}=t;return(0,i.jsx)(n.A,{style:p,isShow:e,onClose:r,children:(0,i.jsx)(d,{model:o,onClickCell:s})})}},7438:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(7599),s=o(4558),r=o(948),i=o(6736),a=o(4848);const l=(0,s.SX)(),c=t=>{let{isShow:e,style:o,children:s,onClose:c}=t;const d=(0,r.A)(e,c),p=(0,i.iw)(c);return(0,a.jsx)("div",{...(0,n.g3)(e),ref:d,className:l,style:o,onKeyDown:e?p:void 0,children:s})}},972:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(4558),s=o(2357),r=o(7438),i=o(4848);const a=t=>{let{isShow:e,className:o,style:a,children:l,onClose:c}=t;return(0,i.jsx)(r.A,{isShow:e,onClose:c,children:(0,i.jsx)(s.A,{className:(0,n.zq)(o),style:a,isShow:e,children:l})})}},7368:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=(t,e,o)=>{const s=(0,n.li)(),r=(0,n.li)();(0,n.vJ)((()=>{const i=(0,n.ZC)(r);t&&!i?((0,n.nl)(s,document.activeElement),(0,n.ZI)(e,o)):!t&&i&&((0,n.ZI)(s),(0,n.nl)(s,null)),(0,n.nl)(r,t)}),[t])}},6872:(t,e,o)=>{"use strict";o.d(e,{$A:()=>f,Hc:()=>b,N5:()=>g,NZ:()=>d,Su:()=>u,U3:()=>y,WE:()=>n.WE,bc:()=>S,cp:()=>C,oD:()=>s,op:()=>h,pL:()=>x,u4:()=>v,xO:()=>p,z_:()=>m});var n=o(4558);const s=(0,n.PX)(n.Yo,n.TY),r="zhn-select",i=r+"__spinner",a=r+"__options",l=r+"__row",c=r+"__footer",d=r,p=r+"__input",u=i,h=i+"--failed",m=r+"__bt-arrow",f=a,g=a+"__div",y=l,x=l+"--active",v=c,b=c+"__index",C=c+"__bts",S=(0,n.vz)(c+"__bt")},6476:(t,e,o)=>{"use strict";o.d(e,{A:()=>z});var n=o(1315),s=o(710),r=o(4867),i=o(4558),a=o(9355),l=o(8910),c=o(6872),d=o(4848);const p={borderColor:"#1b75bb transparent transparent"},u=t=>{let{isShowOption:e,labelId:o,controlsId:n,onClick:r}=t;return(0,d.jsx)("button",{...(0,s.k)(e,n),"aria-labelledby":o,"aria-label":"Toggle suggestions","aria-haspopup":"true",type:"button",tabIndex:"-1",className:c.z_,onClick:r,children:(0,d.jsx)("span",{style:e?p:void 0})})},h={position:"absolute",top:5,right:8,stroke:"#1b75bb"},m=(t,e,o,s,r,i,p,m,f,g,y,x,v)=>{const b=r||s||"";let C,S=null;if(t||e)t?(C=(0,n.MZ)(" ","Loading",b,"..."),S=(0,d.jsx)("span",{className:c.Su,"data-loader":"circle"})):e&&(C=(0,n.MZ)(" ","Loading",b,"Failed"),S=(0,d.jsx)(l.A,{className:c.op,dataLoader:"circle-failed",onClick:i}));else if(p)S=(0,d.jsx)(a.a,{style:h,onClick:y});else{const t=(v||[]).length,e=t>1e3?`(${t})`:"";C=o||(0,n.MZ)(" ","Select",s,e,"..."),S=(0,d.jsx)(u,{isShowOption:m,labelId:f,controlsId:g,onClick:x})}return[S,C]},f="No items found",g=f,y=(t,e)=>t?{...e,width:t+((0,n.QD)(""+t,"%")?"":"px")}:null,x="From input:",v=[],b=Array.isArray,C=(t,e)=>{const o=b(e)?e:v;return o.forEach((e=>{e._c=e[t].toLowerCase()})),{value:"",initialOptions:o,options:o,nAll:o.length}},S=t=>e=>-1===t.indexOf(e.v),w=(t,e,o)=>{const n=((t,e,o)=>{const n=e.toLowerCase(),s=t=>-1!==t._c.indexOf(n),r=o?S(o):void 0,i=r?t=>s(t)&&r(t):s;return t.filter(i)})(t,e,o.filters);return 0===n.length&&n.push(((t,e)=>{let{propCaption:o,isWithInput:n,maxInput:s}=e;const r=t.slice(0,s),i=n?`${x} ${r}`:f;return{[o]:i,_c:i,value:g,inputValue:r}})(e,o)),n},A=t=>{const{stateFilters:e,initialOptions:o}=t;return e?o.filter(S(e)):o},j=(t,e)=>t&&e?t.offsetTop-e.scrollTop:void 0,$=(t,e,o)=>{t&&(t.classList.add(c.pL),e&&(e.textContent=o+1))},T=t=>{t&&t.classList.remove(c.pL)},k=t=>t>70,_=t=>t<70,E=(t,e,o,n,s)=>{$(e,o,n);const r=j(e,s);t(r)&&(s.scrollTop+=r-70)},D=t=>t.childNodes.length,I=t=>{let{item:e,propCaption:o}=t;return(0,d.jsx)("span",{children:e[o]})};var L=o(948),N=o(7071);const O=(t,e,o)=>{let{selectedIndex:n,className:s,onClick:r,propCaption:i,ItemComp:a}=o;return(0,d.jsx)("div",{role:"option","aria-selected":n===e,tabIndex:"-1",className:s,onClick:()=>r(t,e),children:(0,d.jsx)(a,{item:t,propCaption:i})},e)},M=t=>{let{options:e,...o}=t;return(0,d.jsx)(N.A,{items:e,crItem:O,...o})},F=t=>{let{refIndexNode:e,noFooterBts:o,indexActiveOption:n,nFiltered:s,nAll:r,onClear:i}=t;return(0,d.jsxs)("div",{className:`${c.u4} ${c.WE}`,children:[(0,d.jsxs)("span",{className:c.Hc,children:[(0,d.jsx)("span",{ref:e,children:n}),(0,d.jsxs)("span",{children:[": ",s,": ",r]})]}),!o&&(0,d.jsx)("span",{className:c.cp,children:(0,d.jsx)(l.A,{className:c.bc,caption:"CL",onClick:i})})]})},W=t=>{let{id:e,widthStyle:o,optionsStyle:s,propCaption:r,ItemOptionComp:i,noFooterBts:a,options:l,nAll:p,refOptionsComp:u,refIndexNode:h,indexActive:m,onClickItem:f,onClear:y,onClickOutside:x}=t;const v=(0,n.Kr)((()=>(0,d.jsx)(M,{options:l,className:c.U3,selectedIndex:m,propCaption:r,onClick:f,ItemComp:i})),[l]),b=(t=>{const e=t[0];return e&&e.value!==g?t.length:0})(l),C=(0,L.A)(!0,x);return(0,d.jsxs)("div",{ref:C,id:e,className:c.$A,style:o,"data-scrollable":!0,children:[(0,d.jsx)("div",{ref:u,className:c.N5,style:{...s,...o},children:v}),(0,d.jsx)(F,{refIndexNode:h,noFooterBts:a,indexActiveOption:m,nAll:p,nFiltered:b,onClear:y})]})};var R=o(391);const P=()=>{const t=(0,n.li)(),[e,o]=(0,n.J0)();return(0,n.vJ)((()=>()=>{clearTimeout((0,n.ZC)(t))}),[]),[e,(0,n.Kr)((()=>R.dY?{onFocus:()=>{clearTimeout((0,n.ZC)(t)),o(!0)},onBlur:()=>{(0,n.nl)(t,setTimeout((()=>o(!1)),800))}}:void 0),[])]},B=()=>{},U="caption",z=t=>{let{labelId:e,propCaption:o=U,ItemOptionComp:a=I,options:l,optionName:p="",isWithInput:u=!1,maxInput:h=10,regInput:f=/[A-Za-z0-9()^ ]/,style:v,width:b,optionsStyle:L,noFooterBts:N,isLoading:O,isLoadingFailed:M,placeholder:F,optionNames:R,filters:z,onSelect:V=B,onLoadOption:J=B}=t;const K=(0,n.Bi)(),Z=(0,n.li)(),q=(0,n.li)(),Y=(0,n.li)(),G=(0,n.li)(0),[H,Q]=P(),[X,tt]=(0,r.A)(),[et,ot]=(0,n.J0)((()=>C(o,l))),{value:nt,options:st,initialOptions:rt,nAll:it}=et,at=(0,n.Kr)((()=>t=>((t||{})[o]||"").replace(x,"").trim()),[o]),[lt,ct,dt,pt,ut]=(0,n.Kr)((()=>[()=>tt(!1),()=>{const t=(0,n.ZC)(q);return t?t.childNodes.item((0,n.ZC)(G)):void 0},()=>{$(ct(),(0,n.ZC)(Y),(0,n.ZC)(G))},t=>{(0,n.Et)(t)&&t>-1&&(T(ct()),(0,n.nl)(G,t))},t=>{if(t)if(t.value!==g){const e={...t};delete e._c,V(e)}else V(u?(t=>t?{[U]:t,value:t,isInput:!0}:void 0)(t.inputValue.trim()):void 0);else V()}]),[]),ht=(0,n.Kr)((()=>()=>{pt(0),ut(),tt(!1),ot((t=>({...t,options:A(t),value:""})))}),[]),mt=(0,n.Kr)((()=>(t,e)=>{pt(e),tt(!1),ot((e=>({...e,value:at(t)}))),ut(t)}),[at]),[ft,gt]=(0,n.Kr)((()=>[()=>{(0,n.ZI)(Z)},()=>{ht(),ft()}]),[]);(0,n.vJ)((()=>{pt(0),tt(!1),ot(C(o,l))}),[l]),(0,n.vJ)((()=>{X&&(dt(),((t,e,o)=>{if(t){if(0===e)return;const n=j(t,o);n>70&&(o.scrollTop+=n-70),n<0&&(o.scrollTop=0)}})(ct(),(0,n.ZC)(G),(0,n.ZC)(q)))}),[X]),((t,e,o,n,s,r)=>{t.stateFilters!==o&&e((t=>{const{initialOptions:e}=t,i=o&&0!==o.length?e.filter(S(o)):e;let a=t.value;if(a){const t=t=>t[n]===a,l=e.find(t).v;o&&-1!==o.indexOf(l)&&(a=""),a?r(i.findIndex(t)):(r(0),setTimeout(s,200))}return{...t,stateFilters:o,options:i,value:a}}))})(et,ot,z,o,V,pt);const yt=y(b,v),[xt,vt]=m(O,M,F,p,R,J,H&&nt,X,e,K,gt,tt,l),bt=y(b,X?i.CQ:i.JS);return(0,d.jsxs)("div",{className:c.NZ,style:yt,children:[(0,d.jsx)("input",{...Q,...(0,s.k)(X,K),...(0,s.o)(e),ref:Z,className:c.xO,type:"text",autoComplete:"off",autoCorrect:"off",spellCheck:!1,value:nt,placeholder:vt,onChange:t=>{const e=t.target.value,s=e.length,r=nt.length;if((!(u&&s>0)||f.test(e[s-1]))&&s!==r){pt(0),dt();const t=(0,n.ZC)(q);t&&(t.scrollTop=0),ot((t=>({...t,value:e,options:w(s>r?st:rt,e,{propCaption:o,isWithInput:u,maxInput:h,filters:z})}))),tt(!0)}},onKeyDown:t=>{switch(t.keyCode){case 13:{const t=st[(0,n.ZC)(G)],e=at(t);e&&(tt(!1),ot((t=>({...t,value:e}))),ut(t));break}case 27:case 46:t.preventDefault(),X?tt():ht();break;case 40:X?(t.preventDefault(),((t,e,o,s)=>{const r=t();r&&(T(r),(0,n.nl)(e,(0,n.ZC)(e)+1),(0,n.ZC)(e)>=D(s)&&((0,n.nl)(e,0),s.scrollTop=0),E(k,t(),o,(0,n.ZC)(e),s))})(ct,G,(0,n.ZC)(Y),(0,n.ZC)(q))):tt();break;case 38:X&&(t.preventDefault(),((t,e,o,s)=>{const r=t();if(r){if(T(r),(0,n.nl)(e,(0,n.ZC)(e)-1),(0,n.ZC)(e)<0){(0,n.nl)(e,D(s)-1);const o=t();s.scrollTop=o.offsetTop}E(_,t(),o,(0,n.ZC)(e),s)}})(ct,G,(0,n.ZC)(Y),(0,n.ZC)(q)));break;default:return}}}),xt,X&&(0,d.jsx)(W,{id:K,widthStyle:bt,optionsStyle:L,propCaption:o,ItemOptionComp:a,noFooterBts:N,options:st,nAll:it,refOptionsComp:q,refIndexNode:Y,indexActive:(0,n.ZC)(G),onClickItem:mt,onClear:gt,onClickOutside:lt})]})}},2027:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{className:e,tabId:o,tabPanelId:s,title:r,isSelected:i,onClick:a,onKeyDown:l}=t;return(0,n.jsx)("button",{type:"button",role:"tab",className:e,id:o,tabIndex:i?"0":"-1","aria-selected":i,"aria-controls":s,onClick:a,onKeyDown:l,children:r})}},701:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(4558);const r=t=>(0,s.PX)("tab",[t,"tab--selected"]),i=(t,e)=>`tab-${t}-${e}`,a=(t,e)=>`tabpanel-${t}-${e}`;var l=o(4848);const c={margin:"5px 5px 10px 24px"},d={width:"100%",height:"100%"},p={...s.CQ,...d},u=t=>{let{ariaLabel:e,id:o,isShow:u,width:h,height:m,children:f,...g}=t;const[y,x]=(0,n.J0)(0),v=t=>t===y,b=(t,e)=>{const{keyCode:s}=e,r=39===s?1:37===s?-1:0;r&&((0,n.xS)(e),(t=>{const e=((t,e)=>-1===t?e-1:t===e?0:t)(t,f.length);(0,n.HV)(i(o,e)),x(e)})(t+r))};return(0,l.jsxs)("div",{style:{width:h,height:m},children:[(0,l.jsx)("div",{role:"tablist","aria-label":e,"aria-orientation":"horizontal",style:c,children:(0,n.jw)(f,((t,e)=>{const s=v(e);return(0,n.i6)(t,{isSelected:s,tabId:i(o,e),tabPanelId:a(o,e),className:r(s),onClick:()=>x(e),onKeyDown:t=>b(e,t)},e)}))}),(0,l.jsx)("div",{style:d,children:(0,n.jw)(f,((t,e)=>{const r=v(e);return(0,l.jsx)("div",{style:r?p:s.JS,role:"tabpanel",id:a(o,e),"aria-labelledby":i(o,e),children:(0,n.i6)(t.props.children,{isVisible:(0,n.bj)(u)?u&&r:r,...g})},e)}))})]})}},6752:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(7599),s=o(4558),r=o(4848);const i=(0,s.Dq)("browser-container"),a=t=>{let{isShow:e,style:o,onKeyDown:a,children:l}=t;const[c,d]=(0,s.lS)(e,i);return(0,r.jsx)("div",{...(0,n.g3)(e),className:c,style:{...o,...d},onKeyDown:a,children:l})}},2336:(t,e,o)=>{"use strict";o.d(e,{A:()=>f});var n=o(1315),s=o(4558),r=o(9073),i=o(5709),a=o(1853),l=o(9355),c=o(4848);const d="text-clip",p=(0,s.Th)(`br-caption ${d} gap-right`),u=`not-selected ${d}`,h={paddingRight:8,fontSize:"18px",fontWeight:"500"},m={position:"relative",top:-3,margin:"0 10px 0 6px"},f=t=>{let{style:e,captionStyle:o,caption:s,svgMoreStyle:d,children:f,onMore:g,onCheck:y,onUnCheck:x,onClose:v}=t;const b=(0,n.Bi)();return(0,c.jsxs)("div",{className:p,style:e,children:[(0,n.fp)(g)&&(0,c.jsx)(i.A,{style:d,onClick:g}),(0,n.fp)(y)&&(0,n.fp)(x)&&(0,c.jsx)(a.A,{style:m,color:r.ui,labelId:b,onCheck:y,onUnCheck:x}),(0,c.jsx)("span",{id:b,className:u,style:{...h,...o},children:s}),f,(0,c.jsx)(l.P,{onClick:v})]})}},9355:(t,e,o)=>{"use strict";o.d(e,{a:()=>p,P:()=>u});var n=o(7599),s=o(4558),r=o(4874),i=o(540),a=o(4848);const l={padding:3},c=()=>(0,a.jsxs)(i.A,{w:"12",style:l,strokeWidth:"2",strokeLinecap:"round",children:[(0,a.jsx)("path",{d:"M 0,0 L 12,12"}),(0,a.jsx)("path",{d:"M 12,0 L 0,12"})]}),d=(t,e)=>o=>(0,a.jsx)(r.A,{...(0,n.o$)(o,e),tabIndex:"-1",className:t,style:o.style,onClick:o.onClick,children:(0,a.jsx)(c,{})}),p=d((0,s.hI)("clear"),"Clear input"),u=d((0,s.hI)("close"),"Close")},4874:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{ariaLabel:e,dataLoader:o,children:s,...r}=t;return(0,n.jsx)("button",{...r,"data-loader":o,"aria-label":e,type:"button",children:s})}},1358:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(4558),s=o(4874),r=o(4848);const i=(0,n.x$)((0,n.vz)("bt-c1")),a=t=>{let{className:e=i,caption:o,...n}=t;return(0,r.jsx)(s.A,{...n,className:e,children:o})}},8910:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(4558),s=o(1358),r=o(4848);const i=(0,n.x$)("bt-c2"),a=t=>{let{className:e,caption:o="",...a}=t;return(0,r.jsx)(s.A,{...a,caption:o,className:(0,n.PX)(i,e)})}},652:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(372),r=o(9195),i=o(4848);const a=t=>{let{isValid:e}=t;return(0,i.jsx)("hr",{style:{...r.jf,borderColor:(0,r.O3)(e)}})};var l=o(8862);const c=(t,e,o)=>[t,e,o],d=t=>c(t,null,!0),p=()=>!0,u=t=>{let{refEl:e,style:o,inputStyle:u,initialValue:h="",placeholder:m="YYYY-MM-DD",inputmode:f="numeric",name:g="text-date",maxLength:y=10,errorMsg:x=null,onTest:v=p,onEnter:b}=t;const C=(0,n.li)(null),[S,w]=(0,n.J0)((()=>d(h))),[A,j,$]=S,T=(0,s.A)({onEnter:b,onDelete:()=>w(d(h))},[h]);return(0,n.vJ)((()=>w(d(h))),[h]),(0,n.Yn)(e,(()=>({getValue:()=>A,setValue:t=>{v(t)&&w(d(t))},isValid:()=>$,focus:()=>(0,n.ZI)(C)})),[A,$,v]),(0,i.jsxs)("div",{style:{...r.v$,...o},children:[(0,i.jsx)("input",{ref:C,style:{...r.nd,...u},name:g,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,type:"text",placeholder:m,inputMode:f,value:A,maxLength:y,onChange:t=>{const{value:e}=t.target;w(v(e)?d(e):c(e,null,!1))},onBlur:()=>{w(A===h||v(A)?c(A,null,!0):c(A,x,!1))},onKeyDown:T}),(0,i.jsx)(a,{isValid:$}),(0,i.jsx)(l.A,{msg:j})]})}},6204:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(4558),s=o(4848);const r=t=>{let{id:e,className:o,style:r,text:i,title:a}=t;return(0,s.jsx)("div",{id:e,className:(0,n.PX)(n.Yo,o),style:r,title:a,children:i})}},4246:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(1315),s=o(55),r=o(4848);const i=(0,n.ph)((t=>{let{str:e,className:o,style:n}=t;const i=(0,s.A)(e);return i?(0,r.jsx)("div",{className:o,style:n,dangerouslySetInnerHTML:{__html:i}}):null}));i.isHtml=t=>Boolean((0,s.A)(t));const a=i},8862:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(9195),s=o(4848);const r=t=>{let{msg:e}=t;return e?(0,s.jsx)("div",{style:n.ms,children:e}):null}},9195:(t,e,o)=>{"use strict";o.d(e,{KV:()=>d,O3:()=>l,jf:()=>c,le:()=>r,ms:()=>p,nd:()=>s,v$:()=>n});const n={...o(4558).xu,position:"relative",display:"inline-block",width:250,backgroundColor:"#e1e1cb"},s={background:"transparent none repeat scroll 0 0",color:"green",width:"100%",height:30,paddingLeft:10,border:"medium none",outline:"medium none",fontSize:"16px",fontWeight:"bold"},r={boxShadow:"0 2px 2px 0 rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.1)"},i="#1b75bb",a="#f44336",l=t=>t?i:a,c={width:"auto",margin:"0 10px 5px 10px",borderWidth:"medium medium 1px",borderStyle:"none none solid",borderColor:i,borderImage:"none"},d={color:a,fontWeight:"bold"},p={...d,padding:"0 0 5px 10px",fontSize:"12px"}},1205:(t,e,o)=>{"use strict";o.d(e,{A:()=>u});var n=o(1315),s=o(372),r=o(4558),i=o(9195),a=o(4848);const l={...i.nd,...r.xu,...i.le,display:"inline",width:40,paddingLeft:5,marginLeft:5,marginRight:5,height:26,backgroundColor:"#e1e1cb"},c="text",d=()=>{},p=t=>null!=t?t:"",u=t=>{let{refEl:e,initValue:o,style:r,type:i,spellCheck:u,placeholder:h,maxLength:m=125,min:f,max:g,step:y,onChange:x=d,onEnter:v}=t;const[b,C]=(0,n.J0)((()=>p(o))),S=(0,n.li)(),w=(0,s.A)({onEnter:v,onDelete:()=>C("")},[v]);(0,n.vJ)((()=>C(p(o))),[o]),(0,n.Yn)(e,(()=>({getValue:()=>(""+b).trim(),setValue:C,focus:()=>(0,n.ZI)(S)})),[b]);const[A,j]=u?["on","true"]:["off","false"],$=((t,e,o)=>"number"===t&&(0,n.Et)(e)&&(0,n.Et)(o))(i,f,g)?"input-minmax-number":void 0;return(0,a.jsx)("input",{ref:S,className:$,style:{...l,...r},type:i||c,name:c,autoCapitalize:"off",autoComplete:"off",autoCorrect:A,spellCheck:j,translate:"false",value:b,placeholder:h,maxLength:m,min:f,max:g,step:y,onChange:t=>{const{value:e}=t.target;e.length<=m&&(C(e),x(e))},onKeyDown:w})}},7071:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=(0,n.ph)((t=>{let{items:e,crItem:o,...s}=t;return(0,n.lZ)(e,((t,e)=>o(t,e,s)))}))},7144:(t,e,o)=>{"use strict";o.d(e,{A:()=>m});var n=o(1315),s=o(710),r=o(4558),i=o(9073),a=o(4867),l=o(6736),c=o(6409),d=o(4848);const p={lineHeight:2},u={display:"inline-block",position:"relative",top:1},h={paddingLeft:4,fontWeight:"bold",fontSize:"16px",cursor:"pointer"},m=t=>{let{refItem:e,isClose:o=!0,role:m="button",labelId:f,className:g,style:y,rowStyle:x,ocStyle:v,caption:b,captionStyle:C,openColor:S,CompAfter:w,childStyle:A,dndHandlers:j,children:$}=t;const T=(0,n.Bi)(),[k,_]=(0,a.A)(!o),E=(0,l.Ly)(_),[D,I,L,N]=((t,e)=>t?["M 2,14 L 14,14 14,2 2,14",e,`${r.ae} ${r.fy}`,r.CQ]:["M 2,2 L 14,8 2,14 2,2",i.fB,r.ae,r.JS])(k,S);return(0,d.jsxs)("div",{style:{...p,...y},children:[(0,d.jsxs)("div",{className:r.WE,style:x,children:[(0,d.jsxs)("div",{...j,...(0,s.k)(k,T),role:m,tabIndex:"0",ref:e,className:g||r.c5,style:v,onClick:_,onKeyDown:E,children:[(0,d.jsx)(c.A,{w:"16",style:u,children:(0,d.jsx)("path",{fill:I,strokeWidth:"1",stroke:S,d:D})}),(0,d.jsx)("span",{id:f,style:{...h,...C},children:b})]}),w]}),(0,d.jsx)("div",{id:T,className:L,style:{...A,...N},children:$})]})}},8203:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(4558),s=o(4848);const r=(0,n.mg)(),i=t=>{let{refEl:e,className:o,style:i,children:a}=t;return(0,s.jsx)("div",{ref:e,className:(0,n.PX)(r,o),style:i,children:a})}},2357:(t,e,o)=>{"use strict";o.d(e,{A:()=>i});var n=o(7599),s=o(4558),r=o(4848);const i=t=>{let{isShow:e,className:o,style:i,withoutAnimation:a,animationClass:l,onKeyDown:c,children:d}=t;const[p,u]=(0,s.lS)(e,o,a,l);return(0,r.jsx)("div",{...(0,n.g3)(e),className:p,style:{...i,...u},onKeyDown:c,children:d})}},1327:(t,e,o)=>{"use strict";o.d(e,{D4:()=>p,Ll:()=>a,M_:()=>i,W:()=>u,sK:()=>d,t8:()=>c});var n=o(4558),s=o(4848);const r=t=>e=>{let{id:o,style:n,children:r}=e;return(0,s.jsx)("span",{id:o,className:t,style:n,children:r})},i=r((0,n._F)("sp-value")),a=r((0,n._F)("sp-date")),l=(0,n.tP)("sp-label"),c=r((0,n._F)(l)),d=`${l} sp-input`,p=r((0,n._F)(d)),u=r(n.eT)},3375:(t,e,o)=>{"use strict";o.d(e,{JF:()=>d,n9:()=>c,y$:()=>f,yX:()=>a});var n=o(1315),s=o(4848);const r=t=>{let{style:e}=t;return(0,s.jsx)("div",{style:e,"data-loader":"circle"})},i={position:"relative",width:32,height:32,margin:"32px auto 0"},a=t=>{let{style:e}=t;return(0,s.jsx)(r,{style:{...i,...e}})},l={padding:16},c=t=>{let{errMsg:e=""}=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"data-loader":"circle-failed",style:i}),(0,s.jsx)("p",{className:"err-msg",style:l,children:`${e}: Network error.`})]})},d=(t,e)=>t?"L":e?"F":void 0,p={transition:"opacity 800ms ease-out"},u={opacity:1},h={borderColor:"#f44336",animation:"none"},m={opacity:0},f=t=>{let{style:e,status:o}=t;const i=(t=>{const[e,o]=(0,n.J0)(!1);return(0,n.vJ)((()=>{t||setTimeout((()=>o(!0)),1e3)}),[t]),e})(o),a="L"===o?u:"F"===o?h:m;return i?null:(0,s.jsx)(r,{style:{...p,...e,...a}})}},8885:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(7071),s=o(4848),r=o(3569);const i={paddingBottom:4},a=t=>{let{step:e,stepStyle:o,title:n}=t;return(0,s.jsxs)("p",{style:i,children:[(0,s.jsx)("span",{style:o,children:e}),(0,s.jsxs)("span",{children:[" ",n,"."]})]})},l=(t,e,o)=>(0,r.createElement)(a,{...o,key:t,step:e+1,title:t}),c=t=>{let{className:e,style:o,stepStyle:r,titles:i}=t;return(0,s.jsx)("div",{className:e,style:o,children:(0,s.jsx)(n.A,{items:i,crItem:l,stepStyle:r})})}},1853:(t,e,o)=>{"use strict";o.d(e,{A:()=>g});var n=o(1315),s=o(4558),r=o(6984),i=o(6736),a=o(9073),l=o(540),c=o(4848);const d="chb-checked",p={display:"inline-block"},u="#777777",h=t=>{let{className:e}=t;return(0,c.jsx)("path",{className:e,d:"M 2,5 L 8,14 14,1",strokeWidth:"2",strokeLinecap:"round",fill:a.fB})},m=()=>{},f=t=>{let{labelId:e,ariaLabel:o}=t;return e?{"aria-labelledby":e}:{"aria-label":o||"Option"}},g=t=>{const{initialValue:e,value:o,className:g,style:y,color:x,cnChecked:v=d,onCheck:b=m,onUnCheck:C=m}=t,[S,w]=(0,n.J0)((()=>(0,n.bj)(o)?void 0:!!e)),A=(0,r.A)((()=>(0,n.bj)(S))),j=A?S:o,$=(0,n.Kr)((()=>({setUnchecked:()=>w(!1)})),[]),T=(0,n.hb)((t=>{t.preventDefault();(j?C:b)($),A&&w(!j)}),[j,b,C]),k=(0,i.Ly)(T,[T]),_=j?g:void 0,[E,D]=_?[]:j?[x||u,x||a.fB]:[u,a.fB];return(0,c.jsx)("div",{...f(t),role:"checkbox",tabIndex:"0","aria-checked":j,className:(0,s.PX)("chb",_),style:y,onClick:T,onKeyDown:k,children:(0,c.jsxs)(l.A,{w:"16",style:p,children:[(0,c.jsx)("rect",{x:"1",y:"1",height:"14",width:"14",strokeWidth:"2",rx:"3",stroke:E,fill:D}),j?(0,c.jsx)(h,{className:v}):null]})})}},5709:(t,e,o)=>{"use strict";o.d(e,{A:()=>r});var n=o(6409),s=o(4848);const r=t=>{let{refEl:e,style:o,svgStyle:r,onClick:i}=t;return(0,s.jsx)("button",{type:"button",ref:e,className:"bt-more",style:o,onClick:i,children:(0,s.jsxs)(n.A,{w:"6",h:"22",style:r,children:[(0,s.jsx)("circle",{cx:"3",cy:"4",r:"2"}),(0,s.jsx)("circle",{cx:"3",cy:"11",r:"2"}),(0,s.jsx)("circle",{cx:"3",cy:"18",r:"2"})]})})}},761:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(1358),s=o(7071),r=o(4848);const i={display:"flex",alignItems:"center",padding:"6px 5px"},a={marginLeft:20},l=(t,e)=>{let{caption:o,title:s,onClick:i}=t;return(0,r.jsx)(n.A,{style:a,caption:o,title:s,onClick:i},o+e)},c=t=>{let{buttons:e}=t;return(0,r.jsx)("div",{style:i,role:"toolbar",children:(0,r.jsx)(s.A,{items:e,crItem:l})})}},9759:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(4558),s=o(8885),r=o(4848);const i="#f44336",a={color:i,paddingLeft:10,paddingTop:4,fontWeight:"bold",lineHeight:1.4},l=(0,n.lp)(i),c=t=>{let{validationMessages:e}=t;return(0,r.jsx)(s.A,{style:a,stepStyle:l,titles:e})}},6409:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{w:e,h:o=e,children:s,...r}=t;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:`${e}px`,height:`${o}px`,viewBox:`0 0 ${e} ${o}`,...r,children:s})}},540:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(4848);const s=t=>{let{w:e,h:o=e,children:s,...r}=t;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:`0 0 ${e} ${o}`,preserveAspectRatio:"none",...r,children:s})}},372:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(1315);const s=function(t,e){let{onEnter:o,onDelete:s}=t;return void 0===e&&(e=[]),(0,n.hb)((t=>{(0,n.CA)(t);switch(t.code||t.keyCode){case"Delete":case 46:case"Escape":case 27:t.preventDefault(),s();break;case"Enter":case 13:"function"==typeof o&&o(t.target.value);break;default:return}}),e)}},3090:(t,e,o)=>{"use strict";o.d(e,{A:()=>c});var n=o(2040),s=o(3597);const r={maxWidth:275,lineHeight:1.3,paddingTop:6,paddingBottom:6},i={...r,whiteSpace:"unset"},a=t=>`./data/${t}/source-menu.json`,l=(t,e,o,n,s)=>({browserType:t,caption:e,sourceMenuUrl:a(o),itemStyle:n,topicStyle:s}),c={[n.Y5]:l(n.Y5,"Stock Markets","stock-markets"),[n.Vv]:l(n.Vv,"Eurostat Overview","eurostat"),[n.x7]:l(n.x7,"EU FIGARO","figaro"),[n.FJ]:l(n.FJ,"Euro Indicators / PEEIs","peeis"),[n.a]:l(n.a,"EU Comext","comext"),[n.aw]:l(n.aw,"EU SDG","eu-sdg",{...r},{...i}),[n.kQ]:l(n.kQ,"EU MIP","eu-mip",{...r},{...i}),[n.JL]:l(n.JL,"Circular economy indicators","eu-cei",{...r},{...i}),[n.vj]:l(n.vj,"UN Comtrade","uncomtrade"),[n.gH]:l(n.gH,"FAOSTAT","faostat"),[n.HY]:l(n.HY,"World Bank","world-bank"),[n.Mt]:l(n.Mt,"WTO","wto"),[n.yO]:l(n.yO,"DBnomics","db-nomics"),[n.iy]:l(n.iy,"Energy","energy"),[n.Q]:l(n.Q,"Blockchains","blockchain"),[n.dI]:l(n.dI,"Commodities","commodities"),[n.hc]:l(n.hc,"Central Banks","central-banks"),[n.Rx]:l(n.Rx,"Currencies","currency"),[n.VZ]:l(n.VZ,"OECD","oecd"),[n.RD]:l(n.RD,"INSEE: Statistics France","statistics-france"),[n.GD]:l(n.GD,"ONS: Statistics UK","statistics-uk"),[n.Os]:l(n.Os,"Statistics Norway (A)","statistics-norway"),[n.D3]:{browserType:n.D3,caption:"Statistics Norway",dfProps:{bT:n.D3,lT:"NST_2",sP:"Stat. Norway",dU:"./data/statistics-norway/statistics-norway.html",dS:"Statistics Norway",rootUrl:"https://data.ssb.no/api/v0/en/table"}},[n.V5]:l(n.V5,"Statistics Sweden (A)","statistics-sweden"),[n.zC]:{browserType:n.zC,caption:"Statistics Sweden",dfProps:{bT:n.zC,lT:"SWS",sP:"Stat. Sweden",dU:"./data/statistics-sweden/statistics-sweden.html",dS:"Statistics Sweden",rootUrl:"https://api.scb.se/OV0104/v1/doris/en/ssd"}},[n.MM]:l(n.MM,"FSO: Statistics Swiss","statistics-swiss"),[n.R5]:{browserType:n.R5,caption:"Statistics Finland",dfProps:{bT:n.R5,lT:"SFL",sP:"Stat. Finland",dU:"./data/statistics-finland/statistics-finland.html",dS:"Statistics Finland",noTime:!0,rootUrl:"https://statfin.stat.fi/PXWeb/api/v1/en/StatFin"}},[n.rJ]:{browserType:n.rJ,caption:"Statistics Denmark",dfProps:{bT:n.rJ,lT:"SDN",sP:"Stat. Denmark",dU:"./data/statistics-denmark/statistics-denmark.html",dS:"Statistics Denmark",rootUrl:"https://api.statbank.dk/v1/subjects",dfTi:"?lang=en&includeTables=true",rootDimUrl:"https://api.statbank.dk/v1/tableinfo",dfDimQuery:"?lang=en"}},[n.Wr]:{browserType:n.Wr,caption:"CSO: Statistics Ireland",dfProps:{bT:n.Wr,lT:"SIR",sP:"CSO Ireland",dU:"./data/statistics-ireland/statistics-ireland.html",dS:"CSO Ireland",rootUrl:"https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.PxAPIv1/en"}},[n.rv]:l(n.rv,"U.S. Economics","us-economics"),[n.vf]:{browserType:n.vf,caption:"NYSE by Sectors",sourceMenuUrl:"./data/nyse-stocks/source-menu.json",withoutItemCounter:!0,modalDialogType:s.lS,chartContainerType:n.vf+"_"+n.RM,contFullCaption:"NYSE by Sectors",itemOptionType:"ItemTopicOption",itemType:"ItemWithCap",descrUrl:"./data/nyse-stocks/nyse-stocks.html"},[n.G9]:{browserType:n.G9,caption:"NASDAQ by Sectors",sourceMenuUrl:"./data/nasdaq-stocks/source-menu.json",withoutItemCounter:!0,modalDialogType:s.lS,chartContainerType:n.G9+"_"+n.RM,contFullCaption:"NASDAQ by Sectors",itemOptionType:"ItemTopicOption",itemType:"ItemWithCap",descrUrl:"./data/nasdaq-stocks/nasdaq-stocks.html"},[n.mU]:{browserType:n.mU,withoutItemCounter:!0}}},2040:(t,e,o)=>{"use strict";o.d(e,{D3:()=>g,FJ:()=>k,G9:()=>j,GD:()=>m,HY:()=>p,JL:()=>l,MM:()=>S,Mt:()=>u,Os:()=>f,Q:()=>D,R5:()=>v,RD:()=>h,RM:()=>w,Rx:()=>N,V5:()=>y,VZ:()=>O,Vv:()=>s,Wr:()=>C,Y5:()=>n,a:()=>r,aw:()=>i,dI:()=>I,gH:()=>d,hc:()=>L,iy:()=>E,kQ:()=>a,mU:()=>M,rJ:()=>b,rv:()=>_,vf:()=>A,vj:()=>c,x7:()=>T,yO:()=>$,zC:()=>x});const n="SM",s="ES",r="CMX",i="SDG",a="MIP",l="CEI",c="UN",d="FAO",p="WB",u="WT",h="FS",m="UKS",f="NST",g="NST_ALL",y="SWS",x="SWS_ALL",v="SFL",b="SDN",C="SIR",S="FSO",w="STOCKS_BY_SECTORS",A="NS",j="NQS",$="DBN",T="FGR",k="PE",_="US",E="EN",D="BC",I="CM",L="CB",N="CR",O="OE",M="WL"},6460:(t,e,o)=>{"use strict";o.d(e,{$g:()=>x,BG:()=>d,Dn:()=>r,ET:()=>y,Fm:()=>u,QV:()=>c,Sx:()=>h,V:()=>b,bR:()=>v,cx:()=>m,ly:()=>i,mf:()=>n,nQ:()=>g,qv:()=>s,uT:()=>f,zM:()=>p});const n="AREA",s="SPLINE",r="LINE",i="COLUMN",a=t=>`${t}_CLUSTER`,l=t=>`${t}_SET`,c="BAR",d=a(c),p=l(c),u=`${c}_WITH_LABELS`,h=l(i),m=a(i),f="TREE_MAP",g=a(f),y=`BAR_${f}`,x="MAP",v="DOT_SET",b="AREA_YEARLY"},5355:(t,e,o)=>{"use strict";o.d(e,{Cj:()=>g,D:()=>Q,Ev:()=>C,F:()=>H,H2:()=>I,HA:()=>v,HF:()=>V,KG:()=>h,L5:()=>W,LW:()=>ot,MR:()=>b,N3:()=>O,PG:()=>Z,U:()=>U,VU:()=>B,VV:()=>K,Yn:()=>q,Yq:()=>N,_G:()=>E,_v:()=>Y,ay:()=>J,bX:()=>P,bg:()=>w,dM:()=>G,fX:()=>k,fc:()=>S,gJ:()=>F,gN:()=>R,gW:()=>D,h5:()=>X,hb:()=>z,lb:()=>et,mz:()=>T,oH:()=>m,oX:()=>M,qN:()=>x,t_:()=>A,tb:()=>$,uL:()=>f,ud:()=>j,vN:()=>L,wN:()=>nt,xp:()=>tt,yj:()=>_,zu:()=>y});const n="#4caf50",s="#f44336",r="#2f7ed8",i="#a487d4",a="#f1d600",l="grey",c="#4d4d4d",d="black",p="white",u="#fdb316",h="#80c040",m=s,f="white",g="#607d8b",y=p,x=p,v=d,b=l,C="transparent",S="#232f3b",w=i,A=a,j=c,$="rgba(69, 114, 167, 1)",T="rgba(2, 0, 0, 0)",k="rgba(254, 256, 256, 0)",_=d,E=i,D=l,I=l,L=u,N=u,O=l,M=l,F=r,W=r,R="rgba(0,0,0, 0.5)",P=n,B=s,U=n,z="#f7a35c",V="#7cb5ec",J="#90ed7d",K=i,Z=a,q=a,Y=i,G=a,H=i,Q=r,X=l,tt="#90ed7d",et=n,ot=s,nt="#7cb5ec"},7222:(t,e,o)=>{"use strict";o.d(e,{OD:()=>r,eB:()=>i,sW:()=>a,uF:()=>n,y_:()=>s});const n="EUROSTAT_MAP",s="TABLE",r="ALPHA_PERF",i="INFO_ITEM",a="TW_LIST"},7441:(t,e,o)=>{"use strict";o.d(e,{_l:()=>r,dj:()=>n,sW:()=>s,zy:()=>i});const n="up",s="down",r="equal",i="empty"},2190:(t,e,o)=>{"use strict";o.d(e,{$8:()=>M,Bs:()=>tt,D7:()=>n,G7:()=>c,Jm:()=>s,Kr:()=>L,M_:()=>J,Me:()=>Q,N2:()=>N,O2:()=>T,P:()=>D,PX:()=>C,Pj:()=>I,Pn:()=>B,QR:()=>E,T2:()=>i,TF:()=>S,Tq:()=>x,US:()=>A,WC:()=>R,Wl:()=>v,Wv:()=>d,XT:()=>m,YQ:()=>u,Z_:()=>H,Zh:()=>q,_0:()=>k,_D:()=>z,_M:()=>K,b$:()=>U,b2:()=>V,bE:()=>Z,bR:()=>b,cL:()=>p,ei:()=>Y,fU:()=>j,f_:()=>O,iN:()=>P,jd:()=>g,kw:()=>et,o0:()=>nt,oG:()=>X,oS:()=>ot,p1:()=>y,pO:()=>a,s1:()=>w,s5:()=>h,sd:()=>F,tI:()=>G,tz:()=>f,ur:()=>$,v$:()=>_,vq:()=>r,xv:()=>W,zO:()=>l});const n="Q",s="AV",r="AV_BLCH",i="AV_ECON",a="FMP",l="TW",c="DBN",d="OE",p="EI",u="EMB",h="IRE",m="EN",f="EU_STAT",g="FS",y="UKS",x="NST",v="NST_2",b="SWS",C="SFL",S="SDN",w="SIR",A="FSO",j="SNB",$="BOC",T="ECB",k="BIS",_="UN",E="FAO",D="WB",I="WT",L="BEA",N="BLS",O="EIA",M="INTR",F="CRC",W="CCI",R="CG",P="CM",B="CP",U="CL",z="BN",V="CB",J="BF",K="BT",Z="CR",q="KR",Y="KC",G="GT",H="KX",Q="BB",X="HT",tt="WL",et="WL_WATCH_LIST",ot=t=>t===f,nt=t=>ot(t)||t===u||t===O||t===T||t===k||t===d||t===n},3597:(t,e,o)=>{"use strict";o.d(e,{$t:()=>r,Ik:()=>n,R0:()=>u,VO:()=>m,XB:()=>i,XT:()=>d,Zf:()=>c,aF:()=>f,gh:()=>l,jN:()=>a,lS:()=>h,mq:()=>s,oX:()=>g,q0:()=>p,qv:()=>y});const n="ASK",s="RELOAD",r="info",i="alert",a="DESCRIPTION",l="settings",c="CUSTOMIZE_EXPORT",d="COLUMN_RANGE",p="addToWatch",u="loadItem",h="STOCKS_BY_SECTOR",m="editWatchGroup",f="editWatchList",g="pasteTo",y="zoom"},1569:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n={palette:{rows:3,cols:3,colors:["#7cb5ec","#8abb5d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}},3289:(t,e,o)=>{"use strict";o.d(e,{$d:()=>b,BH:()=>m,DC:()=>C,QW:()=>c,SE:()=>a,UU:()=>A,f0:()=>h,j6:()=>u,j7:()=>S,jo:()=>d,mA:()=>w,oV:()=>v,qq:()=>p,tS:()=>f,u1:()=>x});const n="Without Api Key",s=t=>["For this type of",t,"request"].filter(Boolean).join(" "),r="and then enter your API key in dialog SETTINGS [s].",i=(t,e)=>({caption:t,descr:e}),a=(t,e)=>{const{caption:o,descr:n}=e;t.alertCaption=o,t.alertDescr=n},l="Nasdaq Data Link",c=t=>`${t} is not selected`,d=t=>`${t} is not in valid format`,p="YYYY-MM-DD format must be OR Empty",u=i("Check Error","The chart for this code has already existed in a container. Please, close it and load again."),h=i("Loading In Progress Error","Loading the chart for this item-code in progress.\nIt seems several clicks on button Load repeatedly happend."),m=i("Double Load Meta Error","Meta data for this code already have been loaded."),f=i(n,`403 : Forbidden\n\nYou have attempted to view a premium database in anonymous mode, i.e., without providing a ${l} key. Please register for a free ${l} account, and then enter your API in dialog SETTINGS [s].`),g="API key is required",y="Please register for a free",x=i(n,`${s()} a ${l} ${g}. ${y} ${l} account, ${r}`),v=t=>i(n,`${s()} a ${t} ${g}. ${y} ${t} account, more top button A in dialog, ${r}`),b=t=>i("Without Proxy Server",`${s(t)} local HTTP proxy server is required. Could be set in dialog SETTINGS [s].`),C=i("Http Code 429","Too many request in a given amount of time (rate limiting)"),S=i("Network Error","Network error is encountered. Failed to fetch. Maybe you are offline or a DNS lookup failure or a data provider does not respond."),w={...i("Not Allowed to Add","This type of request isn't allowed to be added to selected chart. It can be loaded in his own chart or view item."),token:"ERR_10"},A="It seems you are offline"},1990:(t,e,o)=>{"use strict";o.d(e,{CO:()=>n,Iv:()=>s,L2:()=>p,N:()=>d,Px:()=>l,Wq:()=>c,si:()=>a,xu:()=>i,xw:()=>m,yJ:()=>h});const n="Watch List has been saved.",s="Watch List has not been edited\nfrom previous save.",r="is already existed.",i=(t,e)=>`The ${t} witn name ${e} not found.`,a=t=>`Group with name ${t} ${r}`,l=(t,e)=>`List with name ${t} in Group ${e} ${r}`,c=(t,e)=>`Item with name ${t} in List ${e} ${r}`,d=t=>`${t} name can not be empty.`,p=t=>`${t} is not selected.`,u=(t,e)=>({alertCaption:`Drag Drop ${t}`,alertDescr:`${e} ${r}`}),h=u("Item","Item in List"),m=u("List","List in Group")},4616:(t,e,o)=>{"use strict";o.d(e,{FW:()=>u,Jg:()=>h,Lm:()=>c,S7:()=>p,SZ:()=>l,hM:()=>m,l0:()=>a,qZ:()=>i,xI:()=>d});var n=o(7343),s=o(4427),r=o(3597);const i=(0,n.Jr)(s.BK,r.jN),a=(0,n.Jr)(s.BK,r.gh),l=(0,n.Jr)(s.BK,r.oX),c=(0,n.Jr)(s.BK,r.qv),d=(0,n.Jr)(s.BK,r.mq),p=(0,n.Jr)(s.BK,r.XB),u=(0,n.Jr)(s.BK,r.Ik),h=(0,n.Jr)(s.BK,r.Zf),m=(0,n.Jr)(s.BK,r.q0)},6136:(t,e,o)=>{"use strict";o.d(e,{Jy:()=>r,NR:()=>s,lX:()=>n});const n="LOADING",s="LOADING_COMPLETE",r="LOADING_FAILED"},2440:(t,e,o)=>{"use strict";o.d(e,{$H:()=>a,Nt:()=>l,Wb:()=>r,Xk:()=>n,dr:()=>i,fM:()=>s,yq:()=>c});const n="addItem",s="crGroup",r="renGroup",i="delGroup",a="crList",l="renList",c="delList"},240:(t,e,o)=>{"use strict";o.d(e,{is:()=>Rt,So:()=>Se});var n=o(3730),s=o(1852),r=o(2823),i=o(2040),a=o(4616),l=o(4427),c=o(2394),d=o(9466),p=o(5952),u=o(8801),h=o(434),m=o(6872),f=o(4848);const g=t=>{let{item:e,propCaption:o}=t;return(0,f.jsx)("div",{className:m.oD,children:(e||{})[o]})},y={color:"#a487d4"},x=t=>{const{item:e}=t;return(0,f.jsxs)("div",{children:[(0,f.jsx)(g,{...t}),(0,f.jsx)("div",{className:m.oD,style:y,children:e.topic})]})},v=(0,h.v)({DF:g,ItemOption:g,ItemTopicOption:x});var b=o(1315),C=o(6736),S=o(6204);const w={position:"relative",minWidth:350,padding:"5px 10px 5px 0",lineHeight:1.4},A={verticalAlign:"middle",width:"100%"},j=t=>{let{caption:e,className:o,item:n,onClickItem:s,children:r}=t;const i=(0,b.hb)((()=>s(n)),[]),a=(0,C.Ly)(i);return(0,f.jsxs)("div",{role:"menuitem",tabIndex:"0",className:o,style:w,onClick:i,onKeyDown:a,children:[(0,f.jsx)(S.A,{style:A,text:e}),r]})};var $=o(5856);let T;const k=t=>Intl&&Intl.NumberFormat?function(t){let{currency:e="USD",...o}=void 0===t?{}:t;return{_f:new Intl.NumberFormat(T||(T=Array.isArray(navigator.languages)?navigator.languages[0]:navigator.language||"en",T),{style:"currency",currency:e,...o}),format:function(t){return null==t?this._f.format(0):this._f.format(t)}}}(t):{format:$.A},_="n/a",E={paddingRight:8},D={display:"display-inline",color:"#2f7ed8",paddingRight:8,width:90,float:"right"},I={display:"display-inline",color:"#fdb316",width:70,float:"right"},L=k({minimumFractionDigits:0,maximumFractionDigits:0}),N=k(),O=t=>{let{cap:e,salePrice:o,ipo:n}=t;const s=0===e?_:L.format(e),r=e!==_&&0!==e?N.format(o):_;return(0,f.jsxs)("div",{children:[(0,f.jsx)("span",{style:E,children:s}),(0,f.jsx)("span",{style:I,children:`ipo ${n}`}),(0,f.jsx)("span",{style:D,children:r})]})},M=t=>{const{item:e}=t,{cap:o,salePrice:n,ipo:s}=e;return(0,f.jsx)(j,{...t,children:(0,f.jsx)(O,{cap:o,salePrice:n,ipo:s})})},F={paddingRight:8},W={display:"display-inline",color:"gray",width:35,float:"right"},R={display:"display-inline",color:"rgb(253, 179, 22)",width:85,float:"right"},P=k({currency:"GBP",minimumFractionDigits:3}),B=t=>{const{item:e}=t,{cap:o,c:n,date:s}=e||{},r=0===o?"n/a":P.format(o)+" ml";return(0,f.jsx)(j,{...t,children:(0,f.jsxs)("div",{children:[(0,f.jsx)("span",{style:F,children:r}),(0,f.jsx)("span",{style:R,children:s}),(0,f.jsx)("span",{style:W,children:n})]})})},U=(0,h.v)({Item:j,ItemWithCap:M,ItemLse:B});var z=o(7159),V=o(8376),J=o(4558),K=o(634),Z=o(4407),q=o(8248);const Y=(t,e,o,n)=>{const[s,r]=(0,b.J0)([]),[i,a]=s,l=(0,q.A)(t)&&!a&&!i;return o((t=>{if(t&&t.browserType===n){const{menuItems:e}=t;r(e?[!1,e]:[])}})),(0,b.vJ)((()=>{l&&(e(),r([!0]))}),[l]),s};var G=o(6752),H=o(2336),Q=o(8203),X=o(3375),tt=o(7144);const et={display:"inline-block",color:"#9e9e9e",margin:"0 16px",backgroundColor:"transparent"},ot=()=>(0,f.jsx)("span",{style:et,children:"New"});var nt=o(8910);const st=(0,J.KJ)("menu__badge"),rt={color:"#a487d4"},it=t=>{let{atomBadge:e,onOpen:o,onClose:n}=t;const{is:s,value:r}=e.useAtomValue(),i=(0,b.hb)((t=>{t.stopPropagation(),s?n():o()}),[s,o,n]);return 0===r?null:(0,f.jsx)(nt.A,{tabIndex:"-1",className:st,style:s?rt:void 0,caption:r,onClick:i})},at=t=>{let{refItem:e,isNew:o,style:n,title:s,atomBadge:r,onBadgeClick:i,onBadgeClose:a,onClick:l}=t;const c=(0,C.Ly)(l);return(0,f.jsxs)("div",{ref:e,tabIndex:"0",role:"menuitem",className:J.zV,style:n,onClick:l,onKeyDown:c,children:[s,null!=r&&(0,f.jsx)(it,{atomBadge:r,onOpen:i,onClose:a}),o?(0,f.jsx)(ot,{}):null]})};var lt=o(3569);const ct={paddingLeft:6},dt=t=>{let{items:e,itemStyle:o,topicStyle:n}=t;return(0,b.lZ)(e,((t,e)=>(0,b.Ep)(t.items)?(0,lt.createElement)(ht,{...t,key:e,style:ct,openColor:"#80c040",itemStyle:o,topicStyle:n}):(0,lt.createElement)(at,{...t,style:o,key:e})))},pt={paddingRight:12,whiteSpace:"nowrap"},ut={paddingLeft:4},ht=t=>{let{refFirstItem:e,style:o,openColor:n,itemStyle:s,topicStyle:r,caption:i,isInitOpen:a,items:l,...c}=t;return(0,b.Ep)(l)?(0,f.jsx)(tt.A,{refItem:e,role:"menuitem",isClose:!(!0===a),style:o,ocStyle:{...pt,...r},openColor:n,caption:i,children:(0,f.jsx)(dt,{items:l,itemStyle:s,topicStyle:r})}):(0,f.jsx)(at,{...c,style:{...ut,...s},refItem:e})},mt=t=>{let{refFirstItem:e,menu:o,itemStyle:n,topicStyle:s}=t;return(0,b.lZ)(o,((t,o)=>(0,f.jsx)(ht,{...t,itemStyle:n,topicStyle:s,refFirstItem:0===o?e:void 0},o)))},ft=(0,J.nV)("scroll-menu"),gt=t=>{const{caption:e,browserType:o,itemStyle:n,topicStyle:s,useMsBrowserLoad:r,onLoadMenu:i,children:a}=t,[l,c,d]=(0,K.A)(t),[p,u]=Y(l,i,r,o),h=(0,Z.C)(l&&u);return(0,f.jsxs)(G.A,{isShow:l,onKeyDown:d,children:[(0,f.jsx)(H.A,{caption:e,onClose:c}),(0,f.jsxs)(Q.A,{className:ft,children:[p&&(0,f.jsx)(X.yX,{}),(0,f.jsx)(mt,{refFirstItem:h,menu:u,itemStyle:n,topicStyle:s}),a]})]})},yt=(0,V.A)((t=>(0,f.jsx)(gt,{...t})));var xt=o(4867),vt=o(2357),bt=o(761);var Ct=o(6476);const St=(0,V.A)((t=>{let{style:e,placeholder:o="",data:n,ItemOptionComp:s,onSelect:r}=t;const i=(0,b.hb)((t=>{t&&r(t)}),[r]),{meta:a}=n||{},{caption:l}=a||{},c=(t=>{if(0===t.length)return[];const{meta:e}=t,{caption:o,level1:n,level2:s,level3:r}=e,i=[];let a,l,c,d,p,u;for(d=0;d{let{itemClassName:n,ItemComp:s,onClickItem:r}=o;return(0,b.lZ)(t,((t,o)=>(0,f.jsx)(s,{className:n,caption:t[e],item:t,onClickItem:r},o)))},jt=(t,e,o,n)=>(0,b.lZ)(t,((t,s)=>(0,f.jsx)(tt.A,{role:"menuitem",style:J.Ke,openColor:wt.ui,caption:t[e],children:At(t[o],e,n)},s))),$t=t=>{const{model:e}=t,{meta:o}=e,{caption:n,level1:s,level2:r,level3:i}=o||{},a=n||"caption",l=r||"lists",c=i||"items",d=e[s||"groups"];return(0,b.lZ)(d,((e,o)=>(0,f.jsx)(tt.A,{role:"menuitem",caption:e[a],children:jt(e[l],a,c,t)},o)))},Tt=(0,b.ph)((t=>(0,f.jsx)("div",{children:$t(t)})),((t,e)=>t.model===e.model)),kt="scroll-browser-by",_t=`${kt}--search`,Et={paddingBottom:4,minWidth:300},Dt={width:"100%",paddingBottom:8,paddingRight:24},It=(t,e,o)=>({caption:t,title:e,onClick:o}),Lt=t=>{const{browserType:e,useMsBrowserLoad:o,caption:n,onLoadMenu:s,descrUrl:r,onClickInfo:i,onShowLoadDialog:a,ItemOptionComp:l,ItemComp:c,children:d}=t,[p,u,h]=(0,K.A)(t),[m,g]=(0,xt.A)(),y=((t,e,o)=>(0,b.Kr)((()=>[It("S","Click to toggle input search",t),It("A","About Datasources",(()=>{e({descrUrl:o})}))]),[]))(g,i,r),[x,v]=Y(p,s,o,e),C=m?_t:kt;return(0,f.jsxs)(G.A,{isShow:p,style:Et,onKeyDown:h,children:[(0,f.jsx)(H.A,{caption:n,onClose:u}),(0,f.jsx)(bt.A,{buttons:y}),v&&(0,f.jsx)(vt.A,{isShow:m,children:(0,f.jsx)(St,{style:Dt,placeholder:"Search By Symbol Or Name",data:v,ItemOptionComp:l,onSelect:a})}),(0,f.jsxs)(Q.A,{className:C,children:[x&&(0,f.jsx)(X.yX,{}),v&&(0,f.jsx)(Tt,{model:v,ItemComp:c,itemClassName:J.eA,onClickItem:a}),d]})]})},Nt=(0,V.A)((t=>(0,f.jsx)(Lt,{...t}))),Ot=(0,z.vL)({[i.vf]:Nt,[i.G9]:Nt,get[i.mU](){return o.e(103).then(o.bind(o,6366)).then((t=>t.default))},get _BrowserSlider(){return o.e(577).then(o.bind(o,988)).then((t=>t.default))},get STAT_ALL(){return this._BrowserSlider}},yt),Mt=t=>(0,f.jsx)(t,{isInitShow:!0,browserType:i.mU,caption:"Watch List",useMsBrowserShow:p.J8,useWatchList:u.BB},i.mU),Ft=(t,e)=>{const{browserType:o,caption:r="Source Browser",itemStyle:i,topicStyle:u,sourceMenuUrl:h,chartContainerType:m,modalDialogType:g,itemOptionType:y,itemType:x,descrUrl:b,dfProps:C}=e,S=U(x);return(0,f.jsx)(t,{isInitShow:!0,dfProps:C,browserType:o,caption:r,descrUrl:b,itemStyle:i,topicStyle:u,ItemOptionComp:v(y),ItemComp:S,onClickInfo:(0,n.XB)(S)?void 0:a.qZ,useMsBrowserShow:p.J8,useMsBrowserLoad:p.GM,onLoadMenu:(0,s.J)(p.hJ,{browserType:o,caption:r,sourceMenuUrl:h}),onShowLoadDialog:m?t=>(0,l.BK)(g,{item:t,browserType:o,chartContainerType:m,onShow:(0,s.J)(c.Fb,m,o)}):void 0,getProxy:d.V_},o)},Wt=(0,r.Gu)([i.zC,i.D3,i.R5,i.rJ,i.Wr]),Rt=t=>{const e=t.browserType;return e===i.mU?Ot(i.mU).then(Mt):Wt(e)?Ot("STAT_ALL").then((e=>Ft(e,t))):Promise.resolve(Ft(Ot(e),t))};var Pt=o(8678),Bt=o(3289),Ut=o(2190),zt=o(391),Vt=o(2111),Jt=o(2401),Kt=o(9009);const Zt=Jt.eW,qt=Jt.z,Yt=t=>(0,Kt.O)(t&&t.sc||Zt(t)),Gt=Array.isArray,Ht=t=>t.filter(Boolean).join(": "),Qt=t=>(t||[]).map((t=>Yt(t))),Xt=function(t){const e=t.filter(Boolean).map((t=>qt(t)||Zt(t)||t)).join("_");for(var o=arguments.length,n=new Array(o>1?o-1:0),s=1;s{const o=((t,e)=>(Gt(e)&&0!==e.length||(e=[0]),e.map((e=>Yt(t[e]))).join(": ")))(t,e),n=t.filter(Zt),[s,r,i,a,...l]=n,c=Yt(s),d=Yt(r),p=Yt(i),u=Yt(a);let h,m=c;return u?(m=Ht([c,d]),h=Ht([p,u,...Qt(l)])):p?h=Ht([d,p]):d&&(h=d),[o,m||h,m?h:void 0,p]},ee=t=>{const e=parseInt(t,10);return e>-1&&e<4?e:void 0},oe=Object.assign,ne=(t,e)=>{const{loadId:o,linkFn:n,dataSource:s,dfProps:r}=t||{},{items:i=[],titles:a,dialogOptions:l,chartType:c,seriaColor:d,seriaWidth:p,fromDate:u,date:h,_rt:m}=e||{},[f,g,y,x]=te(i,a),{value:v,compType:b,cId:C}=c||{},S=Xt(i,v,h,u),w={...r};return((t,e)=>{const[o,n]=(t=>{let e,o,n;for(let s=0;s{const{loadId:o,dataSource:n,dfProps:s={}}=t||{},{isCategory:r,timeId:i,time:a,dfC:l,dfTitle:c,items:d=[],titles:p,dialogOptions:u,chartType:h,seriaColor:m,seriaWidth:f,selectOptions:g,_rt:y}=e||{},{value:x,compType:v}=h||{},[b,C,S]=te(d,p),w=((t,e)=>{let{dfId:o}=t;const n=[o];return e.forEach((function(t){let{slice:e,value:o}=void 0===t?{}:t;e?n.push(e[se(e)[0]]):o&&n.push(o)})),n})(s,d),A=Xt(w,x,a);return{dfC:l,dfTitle:c,...s,...u,_itemKey:A,_rt:ee(y),itemCaption:r&&c||b,loadId:o,title:C,subtitle:S,seriaType:x,seriaColor:m,seriaWidth:f,zhCompType:v,time:a,timeId:i,dataSource:n,items:d,selectOptions:g}},ie=(t,e,o)=>{const n=Zt(e),s=Zt(t)+": "+n,r=Zt(o);return r?`${s} ${i=n,-1!==i.indexOf("Export")?"to":"from"} ${r}`:s;var i},ae=t=>{const e=Zt(t);return e.length>60?e.substring(0,60)+"...":e},le=(t,e)=>{const{fnValue:o,loadId:n,dataSource:s}=t||{},{one:r,two:i,three:a,tradeFlow:l,tradePartner:c,freq:d,period:p,chart:u,chType:h,time:m,seriaColor:f,seriaWidth:g,tradePartners:y}=e||{},x=qt(r),v=qt(a)||qt(i);return{loadId:n,dataSource:s,value:"function"==typeof o?o(x,v):void 0,title:ie(r,l,c),subtitle:ae(a),oneC:Zt(r),one:x,two:v,...qt(l),tp:qt(c),freq:qt(d),period:qt(p),chart:qt(u),chType:h,time:m,seriaType:qt(u),seriaColor:f,seriaWidth:g,tradePartners:y}},ce=()=>{},de=(0,h.v)({DialogSelectN:ne,DialogQuery:ne,DialogStatN:re,UnDialog5:le,UnDialogAgg:le}),pe=(t,e)=>t?de(t)||ce:de(e)||ne,ue=(0,h.v)({ROne:t=>t,RTwo:(t,e)=>`${e}`,ROneTwo:(t,e)=>`${t}/${e}`,RPrefixOne:(t,e)=>`${t}/${e}`,RPrefixOneTwo:(t,e,o)=>`${t}/${e}_${o}`,RPrefixOneEmptyTwo:(t,e,o)=>`${t}/${o}`,RPrefixTwoOne:(t,e,o)=>`${t}/${o}_${e}`}),he=(0,zt.WB)(600),me=Object.assign,fe=(0,Pt.vC)(2),ge=(0,Pt.Gd)(),ye=(t,e)=>{const o=ue(t);return o?e?(0,s.J)(o,e):o:void 0},xe=t=>{let{isFdw:e,nInitFromDate:o}=t;return e&&!he?fe:(t=>t?"1y+1d"===t?(0,Pt.Cw)((0,Pt.vC)(1),1):(0,Pt.vC)(t):fe)(o)},ve=t=>{const e=t.isFd?{errNotYmdOrEmpty:Bt.qq,isYmdOrEmpty:Pt.nF}:void 0;return{initFromDate:xe(t),initToDate:ge,onTestDate:Pt.bX,...e}},be=function(t,e){void 0===e&&(e="Request Error"),(0,l.K$)({alertDescr:t,alertCaption:e})},Ce=t=>{let{rootUri:e,descr:o,descrUrl:n}=t;const r=o&&e?`${e}${o}.html`:n;return r?(0,s.J)(a.qZ,{descrUrl:r}):void 0},Se=(t,e)=>{const{type:o,dialogProps:r={},dialogType:i,dialogCaption:a,menuTitle:l}=e,{valueFn:p,valueFnPrefix:u,loadFnType:h,loadId:m,isGetKey:f}=r,g=((t,e)=>{let{selectProps:o,dims:s,dfProps:r}=e;return t||((0,n.Ep)(o)?"DialogSelectN":void 0)||((0,n.Ep)(s)||(r||{}).dfId?"DialogStatN":void 0)})(i,r);return((t,e)=>{if(e||(t.loadId=Ut.D7),e===Ut.tz){const{dfProps:e}=t,{mapFrequency:o}=e||{};t.dfProps=me({},e,{mapFrequency:o||"M"})}})(r,m),(0,Vt.r)(g).then((n=>(0,lt.createElement)(n,{...r,...ve(r),key:o,caption:a||l,msgOnNotSelected:Bt.QW,msgOnNotValidFormat:Bt.jo,fnValue:ye(p,u),getKey:f?d.i7:void 0,loadFn:pe(h,g),onAbout:Ce(r),onLoad:(0,s.J)(c.YM,{chartType:o,browserType:t,dialogConf:e}),onShow:(0,s.J)(c.Fb,o,t,e),onError:f?be:void 0})))}},7674:(t,e,o)=>{"use strict";o.d(e,{E:()=>up,Z:()=>hp});var n=o(2190),s=o(784),r=o(8876);const i=t=>Boolean(t)&&(0,r.Jd)(t.id),a=(t,e,o)=>{(0,r.hQ)(t)&&(o.zhMapSlice=((t,e)=>{let{dfTail:o}=e;const n={};var s;return t.forEach((t=>{n[t.id]=(0,r._W)(t)})),(s=o)&&"string"==typeof s&&((t,e)=>{e.split("&").forEach((e=>{const o=e.split("=");o[0]&&o[1]&&(t[o[0]]=o[1])}))})(n,o),n})(e,o))},l={crUrlN:t=>{const{seriaType:e,dfCmx:o,dfTable:n,dfId:s,dfTail:l}=t,c=n||s,d=(t=>{let{seriaType:e,dfC:o,dfCmx:n,items:s,time:a}=t;if((0,r.hQ)(e)){const t=o?t=>Boolean(t)&&t.id!==o:n?t=>t:i,l=s.filter(t);return(0,r.jh)(e)?l:l.concat([{id:"time",value:a}])}return s})(t),p=((t,e)=>{const o=t.map((t=>`${t.id}=${(0,r._W)(t)}`)).join("&");return e?`${o}&${e}`:o})(d,l);return a(e,d,t),(0,r.lC)(!!o,c,p,(0,r.hQ)(e)?r.Wz:void 0)}},c={getRequestUrl:t=>(t.resErrStatus=[400],t.url?t.url:t.url=l.crUrlN(t)),checkResponse(t,e,o){if(400===o)throw(0,s.UE)("","400: Bad request.\nDataset contains no data. One or more filtering elements (query parameters) are probably not valid.\nMaybe try to request this data set with older date or another country.");const{error:n}=t||{};if(n){const{label:t}=n,e=t?`${t}\n\nIf you use For Date input field in Dialog\ntry to use more late date.`:void 0;throw(0,s.UE)("",e)}}};var d=o(6460),p=o(3956),u=o(5248),h=o(3029);const m=function(t,e){return void 0===e&&(e="spline"),(t.seriaType||e).toLowerCase()},f=(t,e)=>{const[o,n,s]=(0,h.ox)(t,e);return e.seriaType=m(e),e.minY=n,e.maxY=s,(0,p.A)({option:e,data:o,confOption:{info:(0,h.E1)(t),zhConfig:(0,h.cZ)(e)}})},g=(t,e)=>{const[o,n]=(0,h.ox)(t),{itemCaption:s,seriaColor:r,seriaWidth:i}=e;return(0,u.wo)({name:s,seriaType:m(e),seriaColor:r,seriaWidth:i,data:o,minY:n})};var y=o(9270),x=o(4999),v=o(5121);const b=["01","02","03","04","05","06","07","08","09","10","11","12"],C="#008b8b",S={index:3,color:"#7cb5ec"},w={index:2,color:"#f45b5b"},A=t=>t.split("-")[0],j=t=>t.split("-")[1],$=(t,e)=>{let{type:o="spline",data:n,color:s,isVisible:r=!0}=e;return{type:o,name:t,data:n,color:s,visible:r}},T=t=>({c:j(t[0]),y:t[1],status:t[2]}),k=t=>t[1],_=t=>({v:t[1],y:A(t[0]),status:t[2]}),E=t=>{let e={v:Number.NEGATIVE_INFINITY,y:""},o={v:Number.POSITIVE_INFINITY,y:""};return t.forEach((t=>{t.v>e.v&&(e=t),t.v({c:t,...E(e)}),I=t=>{const e=t.reduce(((t,e)=>t+e),0);return 0!==t.length?(0,s.W7)(e/t.length,4):0},L=(t,e)=>({y:I(e),c:t}),N=function(t,e,o,n){void 0===n&&(n=T);const s=[],r=t.length;for(;eb.map((o=>e(o,t[o]))),M=function(t,e,o,n){void 0===n&&(n=k);const s=b.reduce(((t,e)=>(t[e]=[],t)),Object.create(null)),r=e.length;let i=!1;for(;t{const e=A(t[0][0]),o=parseFloat(e)-1,n=""+(parseFloat(e)-5),r=t.length,i=((t,e)=>{const o=t.length;let n=0;for(;n{const{value:e,itemCaption:o,dataSource:n,linkFn:s,item:r,key:i}=t,a=i||e+"_YEARLY";return{id:a,key:a,itemCaption:o,isWithoutIndicator:!0,dataSource:n,linkFn:s,item:r}},R=(t,e)=>{const{data:o=[],name:n}=t,{y:s,c:r}=o[e];return{value:s,date:`${r}-${n}`}},P=(t,e)=>{const{data:o=[]}=t,n=o.length-1,{value:r,date:i}=R(t,n),{value:a,date:l}=R(e,n);return{...(0,s.P0)({bNowValue:r,bPrevValue:a}),date:i,dateTo:l,valueTo:(0,s.jq)(a),isDenyToChange:!0}},B=(t,e)=>{(t=>{const e=t?.length;if(e<=12)throw{errCaption:"Data Error",message:`Not enough data for chart (${e})`}})(t);const{title:o,subtitle:n,seriaColor:s}=e,[r,i]=((t,e)=>{const o=t[0][0],n=A(o),{i:s,arr:r}=N(t,0,n),i=t[s][0],a=A(i),{arr:l}=N(t,s,a);return[$(n,{color:e,...S,data:r}),$(a,{...w,data:l})]})(t,s),[a,l]=(t=>{const e=parseFloat(A(t[0][0])),o=""+(e-5),{hm:n,isBreaked:s}=M(0,t,o,_),r=t.length,i=`${s?o:A(t[r-1][0])}:${e}`,a=O(n,D),l=[],c=[];return a.forEach((t=>{let{c:e,high:o,yHigh:n,low:s,yLow:r}=t;l.push({c:e,y:s,d:r}),c.push({c:e,y:o,d:n})})),[(0,x.vb)({name:`Min ${i}`,data:l,color:C,seriaWidth:2,tooltip:v.Gr}),$(`Max ${i}`,{data:c,color:C})]})(t);return(0,y.A)((0,x.yx)(b,o,n),(0,x.$J)([a,l,i,r,F(t)]),(0,x.PK)(v.Gr),(0,x.YT)({chart:{marginTop:45,marginBottom:38},zhConfig:W(e),valueMoving:P(r,i)}))};var U=o(6106),z=o(2947),V=o(9550);const J=t=>`Statisctics ${t}: All Items`,K=J("Norway"),Z=J("Sweden"),q=t=>`Statistics ${t} Search`,Y=["https://www.ssb.no/en/sok?sok=",q("Norway")],G=["https://www.scb.se/en/finding-statistics/search/?query=",q("Sweden")],H=["https://statfin.stat.fi/PXWeb/pxweb/en/StatFin/","Statistics Finland's PX-Web"],Q=["https://www.statbank.dk/statbank5a/default.asp",q("Denmark")],X=["https://data.cso.ie/","CSO Ireland Web PxStat"],tt=function(t,e){let[o,n]=t;return void 0===e&&(e=""),`${n}`},et=(t,e)=>{const o=((0,U.cn)(e)||"").replace("T"," ").replace("Z",""),{dfId:n}=t,s=((t,e)=>{const o=(t=>(t||"").toString().split(",")[0]||"")(t);switch(e.loadId){case"NST":case"NST_2":return tt(Y,o);case"SWS":return tt(G,o);case"SFL":return tt(H,(t=>{let{dfId:e}=t;const o=(""+e).split("/"),n=o.pop(),s=o.join("__");return s&&n?`StatFin__${s}/${n}`:""})(e));case"SDN":return tt(Q);case"SIR":return tt(X);case"FSO":return tt((t=>{let{dfId:e}=t;return[`https://www.pxweb.bfs.admin.ch/pxweb/en/${e}/-/${e}.px/`,"Statistics Swiss Stat-Tab"]})(e));default:return""}})((0,U.f7)(e),t),r=(0,U.wJ)(e);return n&&r?`TableId: ${n}
${r}: ${o}
${s}`:s},ot=t=>{let{dataSource:e,dfId:o}=t;return o&&(""+o).length<9?`${e} (${o})`:e},nt=t=>{switch(t.browserType){case"NST":case"NST_ALL":return K;case"SWS":case"SWS_ALL":return Z;case"ES":return(0,s.MZ)(": ",t.title,t.subtitle);default:return""}},st=(t,e)=>({name:(0,U.f7)(e)||"",description:et(t,e)}),rt=t=>{const{_itemKey:e,url:o,optionFetch:n,items:s,dataSource:r,dfId:i,timeId:a}=t,l=e||(0,V.f7)(),c=t.itemCaption||(t=>{let{items:e,dfId:o}=t;return`${o||"id"}_${(e[0]||{}).caption||"All Items"}`})(t);return{id:l,key:l,itemCaption:c,itemConf:o?{_itemKey:l,...(0,V.B0)(t),optionFetch:n,items:s,dataSource:r,dfId:i,timeId:a}:void 0,dataSource:ot(t)}},it=(t,e)=>({info:st(t,e),zhConfig:rt(t)}),at=(t,e,o)=>({valueMoving:(0,s.Y1)(t),...it(e,o)}),lt=Object.assign,ct=(t,e)=>lt((0,z.A)(((t,e)=>t?`${t}: All Items`:nt(e))(e.dfTitle,e),((t,e)=>{const o=[];return(t||[]).forEach((t=>{const{slice:n,caption:r}=t||{};n&&!n[e]&&r&&o.push((0,s.Ob)(r))})),o.join(": ")})(e.items,e.dfC),e.seriaType,e.seriaColor,(0,U.gp)(t),e.isAlg),at(e.time,e,t)),dt=t=>(e,o)=>ct(e,{...o,seriaType:t}),pt={[d.Sx]:dt(d.ly),[d.cx]:dt(d.cx),[d.zM]:dt(d.QV),[d.BG]:dt(d.BG)};var ut=o(4850);const ht=Object.assign,mt={height:600,marginTop:75,marginBottom:20},ft={...mt,type:"bar"},gt={...mt,type:"scatter",inverted:!0},yt=function(t){return void 0===t&&(t=10),{y:t,x:0,enabled:!0,align:"right",verticalAlign:"top",layout:"horizontal"}},xt={minPointLength:5,pointPadding:0,borderWidth:0,groupPadding:.2,shadow:!1},vt=t=>{let{seriaColor:e}=t;return{column:{color:e,pointPlacement:0,pointWidth:6,...xt}}},bt=t=>{let{seriaColor:e}=t;return{bar:{color:e,pointWidth:4,...xt}}},Ct=t=>{const e=(0,y.A)((0,x.mw)("BAR"),(0,x.YT)({chart:{...ft},yAxis:{opposite:!0,labels:{x:3}},legend:yt(28),plotOptions:bt(t)}),x.qP);return t.seriaType===d.Fm&&(e.plotOptions.bar.dataLabels=(0,ut.Te)(!0)),e},St={[d.Sx]:t=>(0,y.A)((0,x.mw)(),(0,x.YT)({legend:yt(),plotOptions:vt(t)}),x.qP),[d.zM]:Ct,[d.Fm]:Ct,[d.bR]:t=>{const{seriaColor:e}=t,o=(0,y.A)((0,x.mw)(),(0,x.YT)({chart:{...gt},legend:yt(28)}),x.qP);return ht(o.series[0],{color:e,marker:{symbol:"circle",radius:5}}),o}},wt={createConfig:t=>{const{seriaType:e}=t||{},o=e&&St[e];return o?o(t):{}}},At=wt;var jt=o(8849);let $t={},Tt=!1;const kt=t=>$t[t]||t,_t=t=>{const e=[],o=[];let n=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;return t.forEach((t=>{const{id:r,value:i,status:a}=t,l=kt(r);e.push(l),o.push({y:i,c:l,id:l,status:a}),i>=n&&(n=i),i<=s&&(s=i)})),{categories:e,data:o,min:s,max:n}},Et=(t,e,o)=>({id:e,value:t,status:o}),Dt=t=>(Tt?Promise.resolve($t):fetch("./data/eurostat/id-country.json").then((t=>t.json())).then((t=>($t=t.hm,Tt=!0,$t))).catch((t=>$t))).then((()=>(0,y.A)((0,U.ox)(Et,t),(t=>t.sort(jt.j4)),_t))),It=(t,e)=>(0,y.A)((t=>{const e={};return t.forEach((t=>{const{value:o,id:n}=t;null!=o&&(e[kt(n)]=o)})),e})((0,U.ox)(Et,t)),(t=>((t,e)=>e.map((e=>({y:t[e]||null,c:e}))))(t,e))),Lt=(t,e)=>{const{isFilterZero:o}=e,n=(0,s.DF)(e,s.QN),r=t=>(0,s.Et)(t&&t.y)?(t.y=n(t.y),t):t,i=o?t=>t&&0!==t.y?r(t):null:r;return i===s.QN?t:t.map(i)},Nt=(t,e)=>{const{dfC:o}=e;if(o&&(0,h.Jd)(o)){const{seriaType:o}=e,n=pt[o];if(!n)throw new Error((t=>`Chart ${t} route isn't exist`)(o));return n(t,e)}return Dt(t).then((o=>{let{categories:n,data:s,min:r}=o;const i=At.createConfig(e);return(0,h.$Q)(i,{json:t,option:e,data:Lt(s,e),categories:n,min:r}),i}))},Ot=(t,e)=>"DOT_SET"===t?(t=>({type:"scatter",marker:{fillColor:t,radius:5,symbol:"circle"}}))(e):void 0,Mt=(t,e,o)=>{const n=o.options.xAxis[0].categories,{zhMapSlice:s,time:r,seriaColor:i,seriaType:a}=e,l=((t,e,o)=>{const n=It(t,o);return Lt(n,e)})(t,e,n);return{data:l,minY:(0,h.DZ)(l),name:s.time||r,color:i,tooltip:(0,h.be)(),...Ot(a,i)}},Ft=Object.assign,Wt=d.qv,Rt={[d.mf]:f,[d.qv]:f,[d.ly]:f,[d.V]:(t,e)=>{const o=(0,h.TX)(t).reverse(),{title:n,subtitle:s}=e,r=B(o,{title:n,subtitle:s,itemCaption:n+": "+s,value:n+"_"+s,dataSource:(0,h.Xz)(e),...(0,h.Yq)(e)});return(0,h.x1)({config:r,json:t,option:e}),r},[d.$g]:(t,e)=>{const o=(0,h.ox)(t)[0],n=(0,u.hN)();return(t=>{t.itemCaption=t.itemCaption||t.subtitle})(e),(0,h.cL)({config:n,data:o,json:t,option:e}),Ft(n,{zhDialog:e,json:t,zhMapSlice:e.zhMapSlice}),n},[d.Sx]:Nt,[d.zM]:Nt,[d.Fm]:Nt,[d.bR]:Nt},Pt={[d.mf]:g,[d.qv]:g,[d.ly]:g,[d.Sx]:Mt,[d.zM]:Mt,[d.Fm]:Mt,[d.bR]:Mt},Bt=function(t,e,o){void 0===o&&(o=Wt);const{seriaType:n}=e;n&&t[n]||(e.seriaType=o)},Ut={toConfig(t,e){Bt(Rt,e);const{seriaType:o,zhCompType:n}=e,s=Rt[o],r=s?s(t,e):{};return r.zhCompType=n,{config:r}},toSeries(t,e,o){Bt(Rt,e);const{seriaType:n}=e,s=Pt[n];return s?s(t,e,o):void 0}},zt={api:c,adapter:Ut};var Vt=o(6327);const Jt="Dataset is empty",Kt=function(t,e,o){void 0===o&&(o="");const n=o?` (Code: ${o})`:"";return e?`
${s=t+":",s?`${s}`:""} ${(t=>t?`${t}`:"")(e)}${n}
`:"";var s},Zt=(t,e,o)=>{const{data:n}=t,r=n[n.length-1]||{},i=n[0]||{},a=r.Year||"",l=i.Year||"",c=((t,e)=>{const o=-1!==e.indexOf("> (List)"),{Area:n="",Domain:r="",Item:i="",Element:a="",Unit:l}=t,c=o?"":Kt("Area",n,t["Area Code"]),d=(0,s.Ob)(l);return`
\n ${c}\n ${Kt("Domain",r,t["Domain Code"])}\n ${Kt("Item",i,t["Item Code"])}\n ${Kt("Element",a,t["Element Code"])}\n ${Kt("Unit",d)}\n
${t["Flag Description"]||Jt}
\n
`})(r,e);return{description:c,frequency:"Annual",name:e+": "+o,toDate:a,fromDate:l}},qt=t=>{const{data:e}=t,o=e[e.length-1]||{},n=void 0===o.Unit?Jt:o.Unit||" ";return(0,s.Ob)(n)},Yt=t=>{let{Year:e,Months:o,Value:n}=t;const r=o?(0,s.L6)(o)+1:0,i=0!==r?`-${r}`:"-12-31";return{x:(0,s.cY)(""+e+i),y:parseFloat(n)}},Gt=(t,e)=>t.reduce(((t,o)=>{const n=o[e];return t[n]||(t[n]=[],t[n].seriaName=n),t[n].push(Yt(o)),t}),Object.create(null)),Ht=(t,e)=>e.y-t.y,Qt=(t,e)=>{const o=Gt(t,e),n=((t,e)=>e.map((e=>t[e.listPn])))(o,(i=o,(0,s.Co)(i).map((t=>{const e=i[t];return{...e[e.length-1],listPn:t}})).filter(s.Ro).sort(Ht))),r=(t=>{for(let e=0;et.x-e.x,te=t=>-1!==(0,s._W)(t).indexOf(">"),ee=t=>{let{items:e}=t;return te(e[0])?"Area":te(e[1])?"Item":void 0},oe=t=>{let{itemCaption:e}=t;return{isWithoutSma:!0,dataSource:"FAOSTAT",itemCaption:e}},ne=ee,se=t=>{let{items:e}=t;return te(e[0])&&te(e[1])},re=(t,e)=>{const o=(e.data[0]||{}).Unit;return(0,s.MZ)(", ",t,(0,s.O8)(o)?o.length>2?o:o.toUpperCase():"")};let ie=Object.create(null);const ae=t=>ie[t]||(t=>{const e=(new Date).getUTCFullYear(),o=[];for(;t",ce={getRequestUrl(t){(t=>{if(t._isTs&&ne(t))throw new Error("ERR_10");if(se(t))throw new Error("Query lists for lists is not allowed.");const e=t.items[2]||{};if((0,Vt.vD)(t)&&!e.isTm)throw new Error(`TreeMap for ${(0,s.Ps)(e)} is not exist.`)})(t);const{items:e,dfElement:o,dfDomain:n="QC",dfItemName:r="item"}=t,i=(0,s._W)(e[0]),a=(0,s._W)(e[1]),l=(0,s._W)(e[2])||o,[c,d]=i===le?[ae(2004),5e3]:[ae(1980),100],p=`https://faostatservices.fao.org/api/v1/en/data/${n}?element=${l}&${r}=${a}`,u=(0,Vt.hQ)(t),h=u?(m=i,(0,s.QD)(m,">")?m:le):i;var m;return`${p}&${u?`area=${h}&year=${t.time}&page_size=300`:`area=${h}&year=${c}&page_size=${d}`}&area_cs=M49&item_cs=CPC&show_codes=true&show_unit=true&show_flags=true&show_notes=true&null_values=false&page_number=1&datasource=PRODUCTION_AWS&output_type=objects`},checkResponse:(0,s.K_)(),addPropsTo(t){const{qA:e,qI:o,qE:n,qT:r=""}=t,i=(t=>(0,s.QD)(t,"World")&&t.length<22)(r)?r:"";(0,s.kp)(t,{items:[{v:e},{v:o},{v:n}],itemCaption:"Item",title:i})}};var de=o(9026),pe=o(1031),ue=o(5856);const he=t=>"Coal"===t||"Natural gas"===t||"Oil"===t||"Gas"===t||"Other Fossil"===t,me=t=>he(t)?"#658fb9":"#6ea3d7",fe=(xe="_perc",(t,e)=>t+e[xe]),ge=(ye=fe,t=>t.reduce(ye,0));var ye,xe;const ve=(t,e)=>t>=10?e:t>=.01?2:t>=1e-4?4:6,be=(t,e,o,n,r)=>{const{title:i}=e,a=(0,pe.zY)(t),l=[];return(t=>{t._ps60=0,t._ps90=0})(e),t.forEach((t=>{const{_level:c,value:d,label:p}=t,u=((t,e)=>(0,s.W7)(t,ve(t,e)))(d,o),h=(0,s.W7)(d/n,r);((t,e,o)=>{1===e?t._ps60+=o:2===e&&(t._ps90||(t._ps90=t._ps60),t._ps90+=o)})(e,c,h),l.push({color:t.color,value:u,_value:d,_perc:h,_label:(0,s.Ax)(p),title:(0,s.Ax)(i),label:(0,s.Ax)(`${p} (${h}%)`),name:3===c&&h<1?void 0:a(p,h,u)})})),((t,e)=>{t._ps60=(0,s.W7)(t._ps60,e),t._ps90=(0,s.W7)(t._ps90,e)})(e,r),l},Ce=(t,e,o)=>`${t} ${(0,ue.A)(e,!0)} (${o}%)`,Se=(t,e)=>(0,s.Et)(e)?ve(t,e):0,we=t=>(0,s.Et)(t)?t:0,Ae=(t,e)=>0===e&&0!==t,je=(t,e,o,n)=>{const r=we(t),i=we(e),a=Se(r,n),l=Se(i,n),c=(0,s.W7)(r,a),d=(0,s.W7)(i,l);return c+d>o||Ae(r,c)||Ae(i,d)?[(0,s.W7)(r,a+1),(0,s.W7)(i,l+1)]:[c,d]},$e=(t,e,o,n,r)=>{const i=t.reduce(((t,e)=>{let{_label:o,_value:n}=e;return t[he(o)?0:1]+=n,t}),[0,0]),[a,l]=je(i[0],i[1],o,n),[c,d]=je(a/r,l/r,100),p=Ce("Fossil Fuels",a,c),u=Ce("Not Fossil Fuels",l,d);return[(0,s.MZ)(": ",e.title,e.dfTmTitle),i[0]>i[1]?`${p}, ${u}`:`${u}, ${p}`]},Te=function(t,e){return void 0===e&&(e=$e),()=>{const o={toConfig:(o,n)=>{const[r,i]=t(o,n),{_itemKey:a}=n,[l,c,d]=(t=>{const e=t/100>1?0:2,o=(0,s.W7)(t,e);return[o,e,o/100]})(i),p=function(){for(var t=arguments.length,e=new Array(t),o=0;o{let o=0;const n=[],{time:r}=e;return t.data.forEach((t=>{const e=parseFloat(t.Value);(0,s.F5)(e)&&t.Area&&(o+=e,n.push({value:e,label:t.Area,title:r}))})),(0,pe.KM)(n,o),e.subtitle=re(e.subtitle,t),[n,o]}),((t,e)=>[e.subtitle,`${e.title} (${e._ps60}%, ${e._ps90}%)`]));var _e=o(3851);const Ee=(0,_e.A)(((t,e)=>{e.subtitle=re(e.subtitle,t);const o=(0,s.DF)(e);return(0,jt._u)(t.data.reduce(((t,e)=>{const{Value:n,Area:r}=e||{},i=o(parseFloat(n));return(0,s.Et)(i)&&0!==i&&r&&t.push((0,Vt.eb)(i,r)),t}),[]))})),De=Ee;var Ie=o(9876);const Le=(0,Ie.e$)({crData:(t,e)=>{const o=ee(e),n=(0,s._W)(e.items[1]),r=t.data.filter((t=>{const e=(t["Item Code (FAO)"]||"").trim();return!e||e===n}));return o?Qt(r,o):(i=r,(0,s.Ep)(i)?i.map(Yt).filter((t=>(0,s.Et)(t.y))).sort(Xt):[]);var i},trOption:(t,e)=>{t.title=((t,e)=>{const{title:o,dfTitle:n,dfSubtitle:r,subtitle:i}=e;if(r)return`${i} ${qt(t)}: ${o}`;if(o)return(0,s.MZ)(": ",n,o);const{data:a}=t,l=a[a.length-1];return(0,s.sA)(l)?(0,s.MZ)(" ",l.Area,l.Item,l.Element):"More about data on tab Info in Description"})(e,t),t.subtitle=((t,e)=>e.dfSubtitle||`${e.subtitle}: ${qt(t)}`)(e,t)},addToConfig:(t,e,o)=>(t.info=Zt(e,o.title,o.subtitle),t.zhConfig={...oe(o),...t.zhConfig},(0,s.fP)(t,"FAOSTAT",`https://www.fao.org/faostat/en/#data/${o.dfDomain||""}`),t)}),Ne={api:ce,adapter:(0,de.GT)({getRoute:(0,de.s4)(ke,De,Le)})},Oe=t=>{let{title:e,subtitle:o}=t;return{name:`${e}: ${o}`}},Me="https://api.worldbank.org/v2",Fe=(t,e)=>`countries/${t}/indicators/${e}`,We={getRequestUrl(t){const[e,o]=(t=>{let{items:e=[]}=t;return[(0,s._W)(e[0]),(0,s._W)(e[1])]})(t),n=(0,Vt.hQ)(t),r=n?"1W":e;return(0,s.kp)(t,{linkItem:{caption:"World Bank",href:`https://data.worldbank.org/indicator/${o}?locations=${r}`}}),n?`${Me}/${Fe("all",o)}?date=${t.time}&format=json&per_page=305`:`${Me}/${Fe(e,o)}?date=1990:2023&format=json`},checkResponse(t){if(!(0,s.Ep)(t))throw(0,s.UE)()}},Re=/\d/,Pe=(0,s.Gu)(["ZH","ZI","XC","EU","XD","XE","ZB","XF","ZT","XG","XH","XI","XY","XJ","ZJ","XL","XM","XN","XO","ZQ","XP","XQ","XU","OE","ZF","ZG","XT"]),Be=(0,_e.A)(((t,e)=>{const o=(0,s.DF)(e),n=t[1];return(0,s.Ep)(n)?(0,jt._u)(n.reduce(((t,e)=>{const{country:n,value:r}=e||{},{id:i}=n||{};return i&&!Re.test(i)&&!Pe(i)&&(0,s.Et)(r)&&t.push((0,Vt.eb)(o(e.value),n.value)),t}),[])):[]})),Ue=Be,ze=(0,Ie.e$)({crData:t=>{let[e,o]=t;return(0,s.Ep)(o)?o.reduce(((t,e)=>(e&&null!=e.value&&e.date&&t.push([(0,s.cY)(e.date),e.value]),t)),[]).reverse():[]},crConfOption:t=>{const{_itemKey:e,title:o,linkItem:n,dataSource:s}=t;return{info:Oe(t),zhConfig:{key:e,id:e,itemCaption:o,linkFn:"DF",item:{...n},dataSource:s}}}}),Ve={api:We,adapter:(0,de.GT)({getRoute:(0,de.C_)(Ue,ze)})},Je=t=>(t||{}).Dataset,Ke={getRequestUrl(t){const{items:e,dfPc:o,dfT:n}=t,r=(0,s._W)(e[0]),i=e[1],a=(0,s._W)(i)||o||"TO",l=(t=>{let{proxy:e,dfInd:o,apiKey:n}=t;return`${e}https://api.wto.org/timeseries/v1/data?i=${o}&p=000&subscription-key=${n}`})(t);if((0,Vt.hQ)(t)){const e=(0,s.Ps)(i);e?(t.title=e,t.subtitle=n):t.title=n;return`${l}&pc=${a}&ps=${(t.time||"").replace("M","")||2023}`}return`${l}&r=${r}&pc=${a}&ps=2005-2024`},checkResponse:(0,s.K_)(Je)},Ze=Ke,qe=(t,e)=>-1!==t.indexOf(e),Ye=(0,_e.A)(((t,e)=>(0,jt._u)(Je(t).reduce(((t,e)=>{const{Value:o,ReportingEconomy:n}=e||{};var r;return(0,s.Et)(o)&&(0,s.O8)(n)&&t.push((0,Vt.eb)(e.Value,(r=e.ReportingEconomy,qe(r,"rkiye")?"Türkiye":qe(r,"Ivoire")?"Côte d'Ivoire":qe(r,"Principe")?"Sao Tomé and Principe":r))),t}),[])))),Ge=(0,Ie.x5)(Je,(()=>t=>{return[(0,s.cY)(t.Year+(e=t.PeriodCode,"A"===e?"":(0,s.O8)(e)?"-"+e.replace("M",""):"-NN")),t.Value];var e})),He=(0,Ie.e$)({crData:t=>Ge(t).sort(jt.vJ),trOption:(t,e)=>{(0,s.kp)(t,((t,e)=>{const{items:o,dfT:n}=t,r=(0,s.Ps)(o[0]),i=(0,s.Ps)(o[1]),a=Je(e)[0]||{};return{title:(0,s.MZ)(": ",r,n),subtitle:(0,s.MZ)(": ",i,a.Unit)}})(t,e))}}),Qe={api:Ze,adapter:(0,de.GT)({getRoute:(0,de.C_)(Ye,He)})};var Xe=o(124);const to=t=>`https://bdm.insee.fr/series/sdmx/data/SERIES_BDM/${t.value}?startPeriod=${t.fromDate}`,eo={getRequestUrl(t){const{items:e}=t;if((0,s.Ep)(e)){const o=(0,s._W)(e[0]);return t.value=o,t.itemCaption=o,to(t)}return`${to(t)}&endPeriod=${t.toDate}`}};var oo=o(1280);const no=(t,e,o)=>`\n ${t}: \n ${null==o?e[(t=>t[0].toLowerCase()+t.slice(1))(t)]:o}\n`,so=(t,e,o)=>({name:e?t+": "+e:t,description:o.reduce(((t,e)=>`${t}\n
${e.title}
\n
\n ${no("IDBANK",e,e.id)}\n ${no("Frequency",e)}\n ${no("UpdatedOn",e)}\n
\n
\n ${no("UnitMeasure",e)}\n ${no("UnitMult",e)}\n
\n \n
\n `),"")}),ro=t=>{const e=t.getAttribute("OBS_STATUS");return e&&1===e.length&&"A"!==e?e.toLowerCase():void 0},io=t=>{const e=(0,s.Kk)(t).getElementsByTagName("Series"),o=[],n=[];let r,i,a,l,c=0,d=(e||[]).length;for(;c{l=parseFloat(t.getAttribute("OBS_VALUE")),(0,s.yr)(l)||o.push([(0,s.cY)(t.getAttribute("TIME_PERIOD")),l,ro(t)])}));return[o.sort(jt.vJ),n]},ao=(t,e)=>{return{info:so(t.title,t.subtitle,e),zhConfig:(o=t._itemKey||t.value,n=t.value,{id:o,key:o,itemCaption:n,dataSource:"INSEE"})};var o,n},lo={toConfig(t,e){const[o,n]=io(t);return{config:(0,p.A)({option:e,data:o,confOption:ao(e,n)})}},toSeries(t,e){const{value:o,title:n,subtitle:r}=e,i=io(t)[0];return(0,x.wo)({data:i,minY:(0,s.DZ)(i),zhValueText:r||n||o})}},co={fnFetch:Xe.Z,api:eo,adapter:lo},po="&time=*",uo="&time=*&geography=K02000001",ho=function(t,e){return void 0===e&&(e=1),"https://api.beta.ons.gov.uk/v1/datasets/"+t+"/editions/time-series/versions/"+e+"/observations?"},mo={21:t=>{let{items:e}=t;const o=(0,s._W)(e[0]),n=(0,s._W)(e[1]),r=(0,s._W)(e[2]);return`${ho("trade")}countriesandterritories=${o}&standardindustrialtradeclassification=${n}&direction=${r}${uo}`},34:t=>{let{items:e}=t;const o=(0,s._W)(e[0]);return`${ho("cpih01")}aggregate=${o}${uo}`},20:t=>{let{items:e}=t;const o=(0,s._W)(e[0]),n=(0,s._W)(e[1]);return`${ho("index-private-housing-rental-prices")}geography=${o}&indexandyearchange=${n}${po}`},5:t=>{let{items:e}=t;const o=(0,s._W)(e[0]),n=(0,s._W)(e[1]),r=(0,s._W)(e[2]);return`${ho("regional-gdp-by-quarter")}geography=${o}&unofficialstandardindustrialclassification=${n}&growthrate=${r}&prices=cvm${po}`}},fo={getRequestUrl:t=>mo[t.dfV]?.(t),checkResponse(t){if(!t||!(0,s.Ep)(t.observations))throw(0,s.UE)()}},go=(0,V.GI)("ONS Dataset Metadata"),yo={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"},xo={q1:"03",q2:"06",q3:"09",q4:"12"},vo=t=>(t||{}).Time||{},bo=t=>{const e=t.split("-"),o=yo[e[0].trim()],n=e[1].trim(),r=n<"30"?"20":"19";return(0,s.cY)(`${r}${n}-${o}`)},Co=t=>{const[e,o=""]=t&&t.split("-")||[],n=xo[o.trim().toLowerCase()];return e&&n?(0,s.cY)(`${e}-${n}`):NaN},So=(t,e)=>{let{unit_of_measure:o}=t,{title:n,subtitle:r}=e;return(0,s.MZ)(": ",r,n,o)},wo=t=>{let{links:e}=t;const{href:o}=(e||{}).dataset_metadata||{};return o?go(o):""},Ao=(t,e)=>({name:So(t,e),description:wo(t)}),jo={api:fo,adapter:(0,Ie.e$)({crData:t=>{const{observations:e}=t,o=(t=>{const e=t[0]||{},{href:o}=vo(e.dimensions);return-1!==(o||"").indexOf("yyyy-qq")?Co:bo})(e);return e.reduce(((t,e)=>{const{dimensions:n,observation:r}=e,{id:i}=vo(n),a=o(i),l=parseFloat(r);return(0,s.Et)(a)&&(0,s.Et)(l)&&t.push([a,l]),t}),[]).sort(jt.vJ)},addConfOption:(t,e)=>({info:Ao(e,t)})})},$o={getRequestUrl(t){const{dfId:e}=t;return`https://data.ssb.no/api/v0/dataset/${e}.json?lang=en`},checkResponse(t){const{error:e}=t||{};if(e)throw(0,s.go)(e)}},To=(t,e)=>{return(0,jt.GY)((0,U.ox)((0,Vt.yI)(e.time),t).filter((o=e.cTotal,(t=>{const e=Object.create(null);t.forEach((t=>{e[t.caption]=t}))})(e.selectOptions[0]),t=>(!o||t.label!==o)&&2===t.label.split(" ")[0].length&&null!==t.y&&0!==t.y)));var o},ko=(t,e)=>{const{time:o}=e,n=nt(e),r=((t,e)=>`${((t||[])[1]||{}).caption||""}: ${e}`)(e.items,o),i=To(t,e),[a,l]=(t=>{const e=t.reduce(((t,e)=>t+e.value),0),o=e/100;return[t.map((t=>(t.percent=(0,s.W7)(t.value/o),t.name=(0,pe.b9)(t.label,t.percent),t))),e]})(i);return e.isCluster&&(0,pe.FE)({data:a,total:l}),(0,y.A)((0,x.Qn)(a),(0,x.Kl)(n,r),(0,x.YT)(at(o,e,t)),x.qP)},_o=function(t){return void 0===t&&(t={}),(e,o)=>ko(e,{...o,...t})},Eo={[d.uT]:_o(),[d.nQ]:_o({isCluster:!0})},Do=(t,e)=>(0,y.A)(B((0,U.yD)(t),e),(0,x.YT)("chart",{spacingTop:25}),(0,x.Kl)(e.title,e.subtitle),(0,x.YT)("info",st(e,t)),(0,x.YT)("zhConfig",rt(e)),x.qP),Io=t=>{return(t=>t.length>2&&t[0][0]>t[1][0])(e=(0,U.ox)((0,U.Ng)(-1!==((0,U.f7)(t)||"").indexOf("per 1 January")),t))?e.reverse():e;var e},Lo=(t,e)=>(0,p.A)({option:e,data:Io(t),confOption:it(e,t)}),No={DF:Lo,[d.mf]:Lo,[d.qv]:Lo,[d.ly]:Lo,[d.V]:Do},Oo={...pt,...Eo,...No},Mo={getCrConfig:t=>Oo[t]||Oo.DF};const Fo=(t,e)=>({config:Mo.getCrConfig((e||{}).seriaType)(t,e)}),Wo={toConfig:Fo,toSeries:(0,o(6777).A)(Fo)},Ro=(t,e,o)=>({code:t,selection:{filter:e,values:[o]}}),Po=t=>{const e=[];return t.forEach((t=>{const{slice:o}=t||{};for(const t in o)e.push(Ro(t,"item",o[t]))})),e},Bo=(t,e,o)=>{t&&o.push(Ro("Tid","top",e))},Uo=t=>{const{items:e=[],isTop12:o,isTop6:n}=t,s=Po(e),{dfC:r}=t;if(r&&(0,Vt.hQ)(t)){const{time:e,timeId:o="Tid"}=t,n=s.filter((t=>t.code!==r));return n.unshift(Ro(r,"all","*")),n.unshift(Ro(o,"item",e)),n}return Bo(o,"12",s),Bo(n,"6",s),s},zo=t=>{let{loadId:e}=t;return e===n.PX?"json-stat2":"json-stat"},Vo=(t,e)=>({code:t,values:[e]}),Jo=t=>t.filter(Boolean).map((t=>{let{slice:e}=t;const o=Object.keys(e)[0];return Vo(o,e[o])})),Ko=(t,e,o)=>{const n=(0,Vt.hQ)(t),s=[Vo("Tid",n?e:"*")];return n&&s.push(Vo(o,"*")),s},Zo=t=>{let{dfId:e,items:o,seriaType:n,time:s,dfC:r}=t;return{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({lang:"en",table:e,format:"JSONSTAT",valuePresentation:"Default",timeOrder:"Ascending",variables:[...Jo(o),...Ko(n,s,r)]})}},qo=t=>{(t=>{t.items=t.items.map((t=>{const{caption:e,slice:o}=t||{},n={caption:e,slice:{}};for(const t in o)n.slice[t.toUpperCase()]=o[t];return n}))})(t),(t=>{t.dfC&&(t.dfC=t.dfC.toUpperCase())})(t);const e=Uo(t);return{method:"POST",headers:{"Content-Type":"text/plain; charset=UTF-8"},body:JSON.stringify({query:e,response:{format:"json-stat2",pivot:null}})}},Yo={DF:t=>({method:"POST",body:JSON.stringify({query:Uo(t),response:{format:zo(t)}})}),[n.TF]:Zo,[n.s1]:qo},Go=t=>"/"+t.dfId,Ho=function(t,e){return void 0===e&&(e=Go),{getRequestUrl(o){if(o.resErrStatus=[400],o.url)return o.url;const n=e(o);return o.url=`${o.proxy||""}${t}${n}`},crOptionFetch(t){if(t.optionFetch)return t.optionFetch;const e=Yo[t.loadId]||Yo.DF;return t.optionFetch=e(t)},checkResponse(t){const{error:e}=t||{};if(e)throw(0,s.go)(e)}}},Qo=(t,e)=>{const o=Ho(t,e);return{api:o,optionFetch:o.crOptionFetch,adapter:Wo}},Xo={api:$o,adapter:Wo},tn=Qo("https://data.ssb.no/api/v0/en/table"),en=Qo("https://api.scb.se/OV0104/v1/doris/en/ssd"),on=Qo("https://statfin.stat.fi/PxWeb/api/v1/en/StatFin"),nn=Qo("https://api.statbank.dk/v1/data",(()=>"")),sn=Qo("https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset",(t=>{const{dfId:e}=t,o=e.split("/");return"/"+o[o.length-1]+"/JSON-stat/2.0/en"})),rn=Qo("https://www.pxweb.bfs.admin.ch/api/v1/en",(t=>{let{dfId:e}=t;return`/${e}/${e}.px`})),an=Object.assign,ln=(t,e)=>{const{itemCaption:o,dataSource:n,items:s,dfT:r,dfPn:i}=e;return{...(0,V.B0)(e),...(0,V.TU)(t),_itemKey:"FMP/"+o,dataSource:n,items:s,dfT:r,dfPn:i}},cn=(t,e)=>({...(0,s.cZ)(e),itemConf:ln(t,e)}),dn=t=>t.map(s.Ps).join(": "),pn=t=>{let{items:e,_itemUrl:o}=t;return{name:dn(e)}},un=t=>{let{items:e}=t;return{title:(0,s.Ps)(e[0]),subtitle:(0,s.MZ)(": ",(0,s.Ps)(e[1]),(0,s.Ps)(e[2]))}},hn="https://financialmodelingprep.com/api/v3",mn=Array.isArray,fn=t=>{let{dataSource:e,dialogConf:o}=t;return e||(o||{}).contFullCaption||""},gn=/\s/g,yn=(t,e)=>{const o=(0,s.Ps)(t);return"ratios"!==e?o:(n=o)[0].toLowerCase()+n.replace(gn,"").substring(1);var n},xn={DF:t=>{const{dfT:e,items:o=[]}=t,[n,r,i]=o,a=(0,s._W)(n,{isUpper:!0}),l=(0,s._W)(i),c=yn(r,e);an(t,{_symbol:a,_itemUrl:`${hn}/${e}/${a}?${l?`period=${l}`:""}`,_period:l,_propName:c,itemCaption:a+"_"+c,dataSource:fn(t)})},historical:t=>{const{dfT:e,items:o=[],fromDate:n}=t,r=n||(0,s.vC)(3),i=(0,s._W)(o[0],{isUpper:!0});an(t,{_symbol:i,_itemUrl:`${hn}/${e}/${i}?from=${r}`,_propName:"close",itemCaption:i,dataSource:fn(t)})},intraday:t=>{const{dfT:e,items:o=[]}=t,n=(0,s._W)(o[0],{isUpper:!0}),r=(0,s._W)(o[1]);an(t,{_symbol:n,_itemUrl:`${hn}/${e}/${r}/${n}`,_propName:"close",itemCaption:n,dataSource:fn(t)})}},vn={getRequestUrl(t){(xn[t.dfPn]||xn.DF)(t);const{apiKey:e}=t,o=-1===t._itemUrl.indexOf("?")?"?":"&";return`${t._itemUrl}${o}apikey=${e}`},checkResponse(t,e){const{dfPn:o,_symbol:n}=e,r=t||{};if(!o&&mn(t)&&r[0].symbol===n||"intraday"===o&&mn(r)||mn(r[o])&&r.symbol===n)return t;throw(0,s.UE)(n,r.Error)}},bn=(0,Ie.e$)({crData:(t,e)=>{const{dfPn:o,_propName:n}=e,r=o?t[o]:t,i=[];return r.forEach((t=>{const e=parseFloat(t[n]);(0,s.yr)(e)||i.push([(0,s.cY)(t.date),e])})),i.reverse().sort(jt.vJ)},addConfOption:t=>({info:pn(t)}),trOption:t=>an(t,un(t))});var Cn=o(5153),Sn=o(7294),wn=o(353);const An=t=>(0,s.uj)(t)?t:void 0,jn=t=>{let{isAth:e=!0,isVolume:o=!0,toDate:n=s.CA,arr:r,seriaOption:i,option:a}=t;const{isAllSeries:l=!0,pnDate:c="date"}=i||{},{isNotZoomToMinMax:d,isDrawDeltaExtrems:p,seriaType:u,seriaColor:h,seriaWidth:m}=a||{},f=[],g=[],y=[],x=[],v=[],b=[],C=[],S=[],w=e?(()=>{let t;return(e,o,n,r)=>{e.push((0,s.XB)(t)?(0,wn.$)({date:o,close:r,open:r}):(0,wn.$)({date:o,close:t,open:n})),t=r}})():s.Cx;let A=Number.POSITIVE_INFINITY,j=Number.NEGATIVE_INFINITY;return(r||[]).forEach((t=>{const{open:e,high:s,low:r,close:i,volume:a}=t,d=n(t[c]||"");f.push([d,i]),A>i&&(A=i),j{let{title:e,subtitle:o}=t;return{title:e,subtitle:o}},Tn=t=>{let{isAth:e,isVolume:o,seriaOption:n={},crCaption:r=$n,crId:i=s.as,getArr:a=s.QN,crAddConfig:l=s.Cx,toDate:c}=t;return{toConfig(t,d){const{title:p,subtitle:u}=r(d,t),h=i(d),m=jn({isAth:e,isVolume:o,arr:a(t,d),toDate:c,seriaOption:n,option:d}),{dC:f,dMfi:g}=m;return{config:(0,y.A)((0,Cn.Ux)(h,m),(0,x.Kl)(p,u),(0,x.YT)({valueMoving:(0,s.Y1)(f),...l({json:t,option:d,data:f,id:h,title:p,subtitle:u})}),(0,x.XL)(g),(0,x.YT)("zhConfig",{legend:(0,Sn.$)()}),x.qP)}},toSeries(t,e){const o=i(e),{data:s}=jn({arr:a(t,e),toDate:c,seriaOption:{...n,isAllSeries:!1},option:e});return(0,Cn.mG)(o,s)}}},kn=Tn({crCaption:un,getArr:(t,e)=>{let{dfPn:o}=e;return(t[o]||t).reverse()},crAddConfig:t=>{let{option:e,data:o}=t;return{info:pn(e),zhConfig:cn(o,e)}}}),_n={api:vn,adapter:(0,de.GT)({rAdapter:{_pn:"dfPn",DF:bn,historical:kn,intraday:kn}})},En=s.MZ.bind(null,": "),Dn=Array.isArray,In={api:{getRequestUrl(t){const{apiKey:e,items:o}=t,n=(0,s._W)(o[0],{isUpper:!0}),r=(0,s._W)(o[1]),i=(0,s._W)(o[2]);return t.itemCaption=n,`https://api.twelvedata.com/time_series?symbol=${n}&apikey=${e}&interval=${r}&outputsize=${i}&dp=2&order=ASC&timezone=UTC`},checkResponse(t,e){const{values:o,message:n}=t||{};if(!Dn(o))throw(0,s.UE)("",n)}},adapter:Tn({crCaption:(t,e)=>{let{meta:o}=e;const{exchange:n,symbol:s,type:r,currency:i}=o||{};return{title:En(n,s,r,i)}},getArr:t=>{let{values:e}=t;return e.map((t=>{let{datetime:e,volume:o,low:n,high:s,close:r,open:i}=t;return{date:e,volume:parseFloat(o),low:parseFloat(n),high:parseFloat(s),open:parseFloat(i),close:parseFloat(r)}}))},crAddConfig:t=>{let{option:e}=t;return{zhConfig:(0,s.cZ)(e)}}})},Ln="https://apps.bea.gov",Nn=`${Ln}/industry/factsheet/factsheet.html`,On=t=>-1===(0,s.Ps)(t,"").indexOf("(A,Q)")?"A":"Q",Mn=t=>(t||{}).BEAAPI||{},Fn=t=>Mn(t).Results,Wn=t=>(0,s.qS)(t,...(0,s.Ep)(t)?[0,"Data"]:["Data"]),Rn=t=>(t.Notes||[]).map((t=>{const{NoteRef:e="",NoteText:o=""}=t||{};return`

${e}: ${o}


`})).join(""),Pn=t=>{const e=(t=>(0,s.Ep)(t)?t[0]:t)(t)||{};return{name:(o=e,(0,s.MZ)(": ",o.Statistic,(o.UTCProductionTime||"").replace("T"," "))),description:Rn(e)};var o},Bn=(t,e)=>"Industry"===t&&"Q"===On(e)?(0,s.EE)(`BEA ${(0,s.Ps)(e)}`,`${Nn}#${(0,s._W)(e)}`):void 0,Un=t=>{let{ValueName:e,items:o,_itemKey:n,itemCaption:s,dataSource:r}=t;return{id:n,key:n,itemCaption:s,dataSource:r,...Bn(e,o[0])}},zn={DF:"-12-31",I:"-03-31",II:"-06-30",III:"-09-30"},Vn=`${Ln}/api/data/?Year=ALL&ResultFormat=JSON&method=GETDATA&UserID`,Jn={api:{getRequestUrl(t){const{TableID:e,DataSetName:o,apiKey:n,ValueName:r,items:i=[]}=t,a=(0,s._W)(i[0]),l=On(i[0]);return(t=>{const{title:e,subtitle:o,dfTitle:n}=t;(0,s.kp)(t,{itemCaption:e,title:n,subtitle:(0,s.MZ)(": ",e,o)})})(t),`${Vn}=${n}&TableID=${e}&DataSetName=${o}&Frequency=${l}&${r}=${a}`},checkResponse(t){const e=(t=>Mn(t).Error)(t);if(e)throw(0,s.UE)(e.APIErrorCode,(e.ErrorDetail||{}).Description||e.APIErrorDescription);const o=Fn(t);if(!o||o.Error||!(0,s.Ep)(Wn(o)))throw(0,s.UE)()}},adapter:(0,Ie.e$)({crData:(t,e)=>{const o=Fn(t),{dfFilterName:n,items:r}=e,i=(0,s._W)(r[1]),a=!!n;return(Wn(o)||[]).reduce(((t,e)=>{if((0,s.sA)(e)){const o=parseFloat(e.DataValue),r=(t=>{const e="Q"===t.Frequency&&zn[t.Quarter]||zn.DF;return(0,s.cY)(t.Year+e)})(e);!(0,s.Et)(r)||a&&e[n]!==i||t.push({x:r,y:(0,s.yr)(o)?null:o})}return t}),[])},crConfOption:(t,e)=>({zhConfig:Un(t),info:Pn(Fn(e))})})},Kn=t=>{let{_itemKey:e,itemCaption:o,dataSource:n,dfTitle:r,linkItem:i}=t;return{id:e,key:e,item:{...i},linkFn:"DF",itemCaption:o,dataSource:(0,s.MZ)(": ",n,r)}},Zn=t=>{let{itemCaption:e}=t;return{name:e}},qn=(0,Ie.e$)({crData:t=>t.Results.series[0].data.reduce(((t,e)=>{const{year:o,period:n="",value:r}=e,i=parseInt((""+n).replace("M",""),10);return(0,s.Qv)(i)&&i>0&&i<13&&t.push({x:(0,s.cY)(`${o}-${i}`),y:parseFloat(r)}),t}),[]).reverse(),crConfOption:t=>({zhConfig:Kn(t),info:Zn(t)})}),Yn=t=>e=>`${t}${e[2].v}R${e[1].v}${e[0].v}`,Gn={CU:Yn("CU"),CW:Yn("CW")},Hn=(0,s.vL)(Gn,(t=>t[0].v)),Qn=(t,e)=>({title:t,subtitle:e}),Xn=(t,e)=>Qn(`${t}, ${e[2].c}`,`${e[1].c}: ${e[0].c}`),ts={CU:Xn,CW:Xn},es=(0,s.vL)(ts,((t,e,o)=>Qn(t||o.subtitle,o.title))),os=t=>es(t.dfCode)(t.dfTitle,t.items,t),ns={adapter:qn,api:{getRequestUrl(t){const e=(t=>{let{items:e=[],dfCode:o}=t;return Hn(o)(e)})(t),o=(t=>{let{apiKey:e}=t;return e?`?registrationkey=${e}`:""})(t),n=o?"v2":"v1",r=((t,e)=>{let{fromDate:o}=e;if(!t)return"";const n=parseInt((0,s.Cp)(o),10),r=parseInt((0,s.hk)(),10);return(0,s.Et)(n)&&(0,s.Et)(r)&&r-n<21?`&startyear=${n}&endyear=${r}`:""})(o,t);return((t,e)=>{(0,s.kp)(t,{linkItem:{caption:"U.S. BLS Data Link",href:`https://data.bls.gov/timeseries/${e}`}})})(t,e),(t=>{const{title:e}=t;(0,s.kp)(t,{itemCaption:e,...os(t)})})(t),`https://api.bls.gov/publicAPI/${n}/timeseries/data/${e}${o}${r}`},checkResponse(t){const{Results:e,message:o=[]}=t||{},{series:n}=e||{},r=(n||[])[0];if(!r||!(0,s.Ep)(r.data))throw(0,s.UE)("",o[0])}}},ss=(t,e)=>{let{dataSource:o,key:n}=e;return{id:n,key:n,dataSource:o}},rs=(t,e)=>{let{response:o}=t;return{name:(0,s.MZ)(": ",e.title,e.subtitle),description:o.description||(o.data[0]||{})["series-description"]||""}},is=t=>{const e=parseFloat(t);return(0,s.Et)(e)?e:null},as=t=>((t||{}).response||{}).data,ls="sort[0][column]=period&sort[0][direction]=asc&offset=0&length=5000",cs=t=>"freq"===(t||{}).id,ds=t=>t.reduce(((t,e)=>(cs(e)||t.push(`facets[${e.id}][]=${e.v}`),t)),[]).join("&"),ps={getRequestUrl(t){const{dfRoute:e,dfSet:o,dfData:n,dfFreq:s,items:r,apiKey:i,time:a}=t,l=(r[0]||{}).dfSet||o,c=s||(t=>{const e=t.find(cs);return e?e.v:"monthly"})(r),d=`https://api.eia.gov/v2/${e}/${l}/data?frequency=${c}&data[0]=${n}&api_key=${i}`;return(0,Vt.hQ)(t)?`${d}&${ds(r.slice(1))}&start=${a}&end=${a}&${ls}`:`${d}&${ds(r)}&${ls}`},checkResponse:(0,s.K_)(as)},us=(0,_e.A)(((t,e)=>{const o=t.response.data;return(0,jt._u)(o.reduce(((t,e)=>{const{stateid:o,stateDescription:n}=e||{};return(t=>t&&2===t.length&&"US"!==t)(o)&&n&&t.push((0,Vt.eb)(parseFloat(e.price),`${n} (${o})`)),t}),[]))})),hs=Object.assign,ms=(0,Ie.e$)({crData:(t,e)=>{let{dfData:o}=e;return as(t).map((t=>[(0,s.cY)(t.period),is(t[o])]))},crConfOption:(t,e)=>({zhConfig:ss(0,t),info:rs(e,t)}),trOption:t=>hs(t,(t=>{let{items:e=[],dfTitle:o}=t;return{title:(0,s.MZ)(": ",(0,s.Ps)(e[0]),o),subtitle:(0,s.MZ)(": ",(0,s.Ps)(e[1]),(0,s.Ps)(e[2]))}})(t))}),fs={api:ps,adapter:(0,de.GT)({getRoute:(0,de.C_)(us,ms)})};var gs=o(8678);const ys=[401],xs=(0,gs.Gd)(),vs={crOptionFetch(t){const{apiKey:e}=t;return{headers:{"X-Authorization-Public-Key":e}}},getRequestUrl(t){const{fromDate:e,items:o}=t;t.one=(0,s._W)(o[0]),t.two=(0,s._W)(o[1]),t.three=(0,s._W)(o[0])||"QTR";const{one:n,two:r,three:i}=t;if(t.resErrStatus=ys,r)return`${((t,e)=>`https://api.intrinio.com/historical_data?identifier=${t}&start_date=${e}`)(n,e)}&item=${r}&end_date=${xs}&type=${i}`},checkResponse(t){const e=(t=>t&&(0,s.Ep)(t.errors)&&t.errors[0])(t);if(e)throw(0,s.UE)(e.human,e.message);if(!(0,s.Ep)(t.data))throw(0,s.UE)()}},bs=vs,Cs=t=>{const{title:e="",dataSource:o,linkFn:n}=t,s=(t=>{let{linkFn:e,one:o,dfArticle:n}=t;return"FRED"===e?{id:(o||"").replace("$",""),article:n}:o})(t),r=(t=>{let{one:e,two:o,three:n="",_itemKey:s}=t;return s||(o?`${e}_${o}_${n}`:e)})(t);return{id:r,key:r,itemCaption:e,linkFn:n,item:s,dataSource:o}},Ss=t=>{let{title:e=""}=t;return{name:e}},ws={toConfig(t,e){e.subtitle=(t=>{let{subtitle:e="",threeCaption:o}=t;return o?`${e}, ${o}`:e})(e);const o=(t=>t.data.reduce(((t,e)=>{const{date:o,value:n}=e;return(0,s.q_)(n)&&t.push({x:(0,s.cY)(o),y:n}),t}),[]).reverse())(t),n=(t=>({zhConfig:Cs(t),info:Ss(t)}))(e);return{config:(0,p.A)({option:e,data:o,confOption:n})}},toSeries:(t,e)=>(0,x.j7)({adapter:ws,json:t,option:e})},As=ws,js={optionFetch:bs.crOptionFetch,api:bs,adapter:As},$s=js,Ts=(0,s.vL)({s312:t=>{let{items:e,seriaType:o}=t;return(0,s.MZ)(".",(0,s._W)(e[2]),(0,Vt.hQ)(o)?"*":(0,s._W)(e[0]),(0,s._W)(e[1]))}},(t=>{let{dfPrefix:e,items:o,seriaType:n,dfSuffix:r}=t;return(0,s.MZ)(".",e,(0,Vt.hQ)(n)?"*":(0,s._W)(o[0]),(0,s._W)(o[1]),r)})),ks=t=>Ts(t.dfFn)(t),_s=t=>(0,s.Kk)(t).getElementsByTagName("Series")||[],Es=function(t,e){return void 0===e&&(e=s.QN),o=>o?e(o.getAttribute(t)):null},Ds=Es("OBS_VALUE",parseFloat),Is=Es("TIME_PERIOD",s.cY),Ls=Es("REF_AREA"),Ns={getRequestUrl(t){const e=(0,Vt.hQ)(t)?`c%5BTIME_PERIOD%5D=${t.time}`:`c%5BTIME_PERIOD%5D=ge%3A${t.fromDate}`;return`${t.proxy}https://stats.bis.org/api/v2/data/dataflow/BIS/${t.dfCase}/1.0/${ks(t)}?${e}`}},Os=Ns,Ms=(0,_e.A)(((t,e)=>{const o=_s(t),n=o.length,r=[],i=(0,s.DF)(e),a=(t=>{let{dfCategory:e}=t;return e?Es(e):Ls})(e);let l,c=0;for(;c{const o=_s(t)[0]||{},n=o.childElementCount,s=[];let r,i=0;for(;i`https://data.bis.org/topics/${t.dfTopic}/BIS,${t.dfCase},1.0/${ks(t)}`))}),Rs=Ws,Ps=(0,de.GT)({getRoute:(0,de.C_)(Fs,Rs)}),Bs=Ps,Us={fnFetch:Xe.Z,api:Os,adapter:Bs},zs=Us,Vs="ecb.europa.eu",Js=t=>(0,s.qS)(t,"dataSets",0,"series"),Ks=t=>{const e=Js(t);return(e[(0,s.Co)(e)[0]]||{}).observations},Zs=t=>(0,s.qS)(t,"structure","dimensions"),qs={s12:(t,e)=>`${(0,Vt.hQ)(e)?"":(0,s._W)(t[0])}.${(0,s._W)(t[1])}`,s312:t=>(0,s.MZ)(".",(0,s._W)(t[2]),(0,s._W)(t[0]),(0,s._W)(t[1]))},Ys=(0,s.vL)(qs,(t=>{const e=(0,s._W)(t[0]);return 2===t.length?`${(0,s._W)(t[1])}.${e}`:e})),Gs=t=>{const e=Ys(t.dfFnUrl);return(0,s.MZ)(".",t.dfPrefix,e(t.items,t.seriaType))},Hs=`https://data-api.${Vs}/service/data`,Qs={getRequestUrl(t){const e=(0,Vt.hQ)(t)?`startPeriod=${t.time}&endPeriod=${t.time}`:`startPeriod=${t.fromDate}`;return`${t.proxy}${Hs}/${t.dfR}/${Gs(t)}?format=jsondata&detail=dataonly&${e}`},checkResponse(t){if(!(0,s.sA)(Ks(t)))throw(0,s.UE)()}},Xs=Qs,tr=(0,_e.A)(((t,e)=>{const o=(0,s.qS)(Zs(t),"series",(t=>Gs(t).split(".").findIndex((t=>""===t)))(e),"values")||[],n=Js(t);return(0,jt._u)((0,s.Co)(n).reduce(((t,e,r)=>{const i=(0,s.qS)(n[e],"observations","0",0),a=(o[r]||{}).name;return null!==i&&(0,s.O8)(a)&&t.push((0,Vt.eb)(i,a)),t}),[]))})),er=tr,or=`https://data.${Vs}/data/datasets`,nr=(0,Ie.e$)({crData:(t,e)=>{const o=Ks(t),n=(t=>(0,s.qS)(Zs(t),"observation",0,"values"))(t);return(0,s.Co)(o).reduce(((t,e)=>{const r=(0,s.cY)((n[e]||{}).id),i=(o[e]||[])[0];return(0,s.Et)(r)&&(0,s.Et)(i)&&t.push([r,i]),t}),[]).sort(jt.vJ)},crConfOption:(0,Ie.w9)("EUR"),addToConfig:(0,s.Ay)("ECB",(t=>`${or}/${t.dfR}/${t.dfR}.${Gs(t)}`)),trOption:t=>{const{dfSubt:e}=t;e&&(t.subtitle=(0,s.MZ)(", ",t.subtitle,e))}}),sr=nr,rr=(0,de.GT)({getRoute:(0,de.C_)(er,sr)}),ir=rr,ar={api:Xs,adapter:ir},lr=ar,cr=t=>t.items[0].v,dr=(t,e)=>(t||{}).observations,pr={getRequestUrl:t=>`https://www.bankofcanada.ca/valet/observations/${cr(t)}/json?start_date=${t.fromDate}`,checkResponse:(0,s.K_)(dr)},ur=pr,hr=(0,Ie.x5)(dr,(t=>{const e=cr(t);return t=>[(0,s.cY)(t.d),parseFloat((t[e]||{}).v)]})),mr=(0,Ie.e$)({crData:hr,crConfOption:(0,Ie.w9)("CAD")}),fr=mr,gr={api:ur,adapter:fr},yr=gr,xr="https://data.snb.ch",vr=t=>(((t||{}).timeseries||[])[0]||{}).values,br=`${xr}/api/cube`,Cr=t=>{let{id:e,v:o}=t;return(t=>"D0"===t||"D1"===t)(e)?`${e}(${o})`:o},Sr={getRequestUrl:t=>`${t.proxy}${br}/${t.dfId}/data/json/en?dimSel=${(t=>t.items.map(Cr).sort().join(","))(t)}&fromDate=${t.fromDate}`,checkResponse:(0,s.K_)(vr)},wr=Sr,Ar=`${xr}/en/topics`,jr=(0,Ie.x5)(vr,(()=>t=>[(0,s.cY)(t.date),t.value])),$r=(0,Ie.e$)({crData:jr,trOption:t=>{t.subtitle=(0,s.MZ)(", ",t.subtitle,t.dfSubtitle)},addToConfig:(t,e,o)=>((0,s.ZD)(t,o),(0,s.fP)(t,"Swiss National Bank",`${Ar}/${o.dfSubId||"uvo"}/cube/${o.dfId}`),t),crConfOption:(0,Ie.w9)("CHF")}),Tr=$r,kr={api:wr,adapter:Tr},_r=kr,Er=(t,e)=>e?`${t}=${e}`:"",Dr=(t,e,o)=>`${t}=${(0,s._W)(o[0])}&${e}=${(0,s._W)(o[1])}`,Ir=(t,e)=>(0,Vt.hQ)(e)?Er("code",(0,s._W)(t[1])):Dr("country","code",t),Lr=(0,s.vL)({jo:t=>{let{items:e,seriaType:o}=t;return`energy=OIL&${Ir(e,o)}${(0,s._W)(e[2])}${(0,s._W)(e[3])}`},jg:t=>{let{items:e,seriaType:o}=t;return`energy=GAS&${Ir(e,o)}${(0,s._W)(e[2])}`},zl:t=>{let{items:e}=t;return`${Dr("indicator_id","region_id",e)}`}},(t=>{let{value:e}=t;return e})),Nr=t=>{const{proxy:e,dfTable:o}=t,n=Lr(t.dfIdFn)(t),r=Er("api_key",t.apiKey),i=(0,Vt.hQ)(t.seriaType)?Er("date",(t=>{const e=t.split("-");return`${t}-${(0,gs.wF)(e[0],e[1])}`})(t.time)):t.dfFromDate?Er("date.gte",t.fromDate):"";return t.apiKey=null,t.dataSource=(t=>{let{dataSource:e}=t;return(0,s.MZ)(" ","NDL",e)})(t),`${e}https://data.nasdaq.com/api/v3/datatables/${o}?${(0,s.MZ)("&",n,r,i)}`},Or={getRequestUrl:t=>Nr(t),getLimitRemaiming:t=>t.get("X-RateLimit-Remaining"),checkResponse(t){const{quandl_error:e,datatable:o}=t||{};if(e)throw(0,s.UE)("",e.message);if(!o)throw(0,s.UE)();(t=>{const{data:e,newest_available_date:o,oldest_available_date:n}=t;if(!(0,s.uj)(e))throw(0,s.UE)("",`Result dataset for request is empty:\n Newest Date: ${o||""}\n Oldest Date: ${n||""}`)})(o)}},Mr=Or,Fr=function(t,e){let{datatable:o}=t,{dfCi:n,seriaType:r}=void 0===e?{}:e;if(o){const[t,e]=(t=>{let e=0,o=1;const n=(0,s.Ep)(t)?t:[];for(let s=0;s[t[a],parseFloat(t[e])]))}var i;return[]},Wr=t=>{const{item:e,items:o,title:n,subtitle:r="",key:i,fromDate:a,dataSource:l}=t,c=(t=>{let{dfItemCaption:e,items:o,itemCaption:n}=t;return(0,s.Et)(e)&&(0,s.Ep)(o)&&o[e-1]&&o[e-1].caption||n})(t);return{item:(0,s.Ep)(o)?o[0]:e||{},title:n,subtitle:r,id:i,key:i,itemConf:{_itemKey:i,fromDate:a},itemCaption:c,dataSource:l}},Rr=(0,Ie.e$)({crData:(t,e)=>{const o=Fr(t).sort(jt.vJ),n=[];for(const t of o){const e=t[1];(0,s.Et)(e)&&n.push([(0,s.cY)(t[0]),e])}return n},crConfOption:t=>({zhConfig:Wr(t)})}),Pr={toConfig:(t,e)=>({config:B(Fr(t),e)}),isAdd:()=>!1},Br=(0,_e.A)(((t,e)=>{const o=[];return Fr(t,e).forEach((t=>{let[e,n]=t;n>0&&o.push((0,Vt.eb)(n,e))})),(0,jt._u)(o)})),Ur=(0,s.vL)({[d.V]:Pr},Rr),zr=(0,de.GT)({getRoute:t=>{let{seriaType:e}=t;return(0,Vt.hQ)(e)?Br:Ur(e)}}),Vr=zr,Jr={id:"Q",api:Mr,adapter:Vr},Kr=Jr,Zr=(t,e)=>Qr(t)[0][e]||"",qr=t=>e=>Zr(e,t),Yr=qr("dataset_name"),Gr=qr("series_name"),Hr=qr("indexed_at"),Qr=t=>((t||{}).series||{}).docs||{},Xr=(0,V.GI)("DBnomics Chart"),ti=(t,e)=>{const o=(t=>{let{dfProvider:e,dfCode:o,seriaId:n}=t;return(0,s.MZ)("/",e,o,n)})(e);return`

SeriaId: ${o}

\n ${(t=>{const e=Hr(t).split("T")[0];return e?`

Updated by DBnomics on ${e}

`:""})(t)}\n ${Xr("https://db.nomics.world/"+o)}`},ei=t=>{const{dataSource:e,_itemKey:o,dfProvider:n,dfCode:r,seriaId:i,title:a}=t;return{...(0,s.cZ)({itemCaption:a,_itemKey:o,dataSource:e}),itemConf:{_itemKey:o,...(0,V.B0)(t),dataSource:e,dfProvider:n,dfCode:r,seriaId:i}}},oi=(t,e)=>({name:Gr(t),description:ti(t,e)}),ni=t=>(0,s.QD)(t,"Q"),si=(t,e)=>[(0,s.cY)(t),e],ri=(t,e)=>ni(t)?si(t,e):[],ii=(t,e,o)=>`https://api.db.nomics.world/v22/series?series_ids=${t&&o?(0,s.MZ)("/",t,e,o):"ECB/EXR/A.USD.EUR.SP00.A"}&observations=1&format=json&metadata=false`,ai=(t,e)=>{const{dfProvider:o,dfCode:n}=e;return e.seriaId=t,ii(o,n,t)},li=t=>(t||"").trim(),ci=t=>e=>ai(((t,e)=>{let{dfPrefix:o,dfSufix:n}=t;return(0,s.MZ)(".",o,...e,n)})(e,t(e)),e),di=ci((t=>{let{items:e}=t;return[(0,s._W)(e[0])]})),pi=ci((t=>{let{items:e,df1Prefix:o,df2Prefix:n}=t;return[o,(0,s._W)(e[1]),n,(0,s._W)(e[0])]})),ui=t=>{let{items:e,df1Prefix:o,df2Prefix:n}=t;return[o,(0,s._W)(e[0]),n,(0,s._W)(e[1])]},hi=ci(ui),mi=t=>{let{items:e,df2Prefix:o}=t;return[(0,s._W)(e[0]),o,(0,s._W)(e[1]),(0,s._W)(e[2])]},fi=ci(mi),gi=ci((t=>{let{items:e}=t;return mi({items:e})})),yi=ci((t=>{let{items:e}=t;return[(0,s._W)(e[2]),(0,s._W)(e[0]),(0,s._W)(e[1])]})),xi=t=>{let{items:e}=t;return ui({items:e})},vi={DF:t=>(0,s.Ep)(t.items)?ai((0,s._W)(t.items[0]),t):ai("",t),id:t=>{const{items:e}=t,o=(0,s._W)(e[0]).split("/");return((t,e,o,n)=>((0,s.kp)(t,{seriaId:n,dfProvider:e,dfCode:o}),ii(e,o,n)))(t,li(o[0]),li(o[1]),li(o[2]))},s1:di,s12:hi,s21:pi,s123B:fi,s123:gi,s231:yi,s3S12:t=>{const{items:e,dfCode:o,subtitle:n}=t;return(0,s.kp)(t,{dfCode:`${o}:${(0,s._W)(e[2])}`,subtitle:(n||"").split(":")[0]||""}),ci(xi)(t)}},bi={getRequestUrl(t){if(t.url)return t.url;const{dfFnUrl:e}=t,o=e&&vi[e]||vi.DF;return t.url=o(t)},checkResponse(t){const{errors:e}=t||{};if((0,s.Ep)(e))throw(0,s.go)((e[0]||{}).message);const o=Qr(t),n=(0,s.Ep)(o)?o[0]:"";if(!n||!(0,s.Ep)(n.period)||!(0,s.Ep)(n.value))throw(0,s.go)()}},Ci={api:bi,adapter:(0,Ie.e$)({crData:(t,e)=>{const{fromDate:o}=e,n=o?(0,s.cY)(o):0,[r,i]=(t=>[Zr(t,"period"),Zr(t,"value")])(t),a=(t=>!ni(t[0])&&ni(t[1]))(r)?ri:si;let l;return r.reduce(((t,e,o)=>{var r;return l=a(e,i[o]),l[0]>n&&(0,s.Et)(l[1])&&l[0]!==(r=t,r[r.length-1]||[])[0]&&t.push(l),t}),[])},crConfOption:(t,e)=>({zhConfig:ei(t),info:oi(e,t)}),trOption:(t,e)=>{(0,s.kp)(t,((t,e)=>{let{title:o,subtitle:n}=t;const r=Gr(e);return{title:Yr(e),subtitle:r.length>60?(0,s.MZ)(": ",o,n):r}})(t,e))}})},Si=(t,e)=>t?"":(0,s._W)(e[0]),wi={mdf:(t,e)=>`${Si(t,e)}.Q......${(0,s._W)(e[1])}`,nvr:(t,e)=>`${Si(t,e)}.Q.....${(0,s._W)(e[1])}.`,mvt:(t,e)=>`${Si(t,e)}.Q......`,cpi:(t,e)=>`${Si(t,e)}.M.${(0,s._W)(e[1])}.CPI.IX._T.N._Z`,mtf:(t,e)=>`${Si(t,e)}..${(0,s._W)(e[1])}..${(0,s._W)(e[2])}.USD_EXC.N.N`,hhi:(t,e)=>`Q.${Si(t,e)}.${(0,s._W)(e[1])}`,gdpq:(t,e)=>`Q..${Si(t,e)}.S1..${(0,s._W)(e[1])}......${(0,s._W)(e[2])}.`,ep:(t,e)=>`${Si(t,e)}..${(0,s._W)(e[1])}._T`},Ai=(0,s.vL)(wi,((t,e)=>`${Si(t,e)}.Q.${(0,s._W)(e[1])}.IX`)),ji=t=>Ai(t.dfFn)((0,Vt.hQ)(t),t.items),$i=t=>(t||{}).data||{},Ti=t=>(0,s.qS)(t,"dataSets",0,"series")||{},ki=t=>(0,s.qS)(t,"structures",0,"dimensions"),_i={getRequestUrl(t){const{time:e}=t,o=(0,Vt.hQ)(t)?`startPeriod=${e}&endPeriod=${e}`:"startPeriod=2005";return`https://sdmx.oecd.org/public/rest/data/${t.dfDs}/${ji(t)}?${o}&format=jsondata`}},Ei=(0,_e.A)(((t,e)=>{const o=$i(t),n=Ti(o),r=ki(o),i=(t=>{const e=(t||{}).series||[];for(let t=0;t{const o=parseFloat(e.split(":")[i]),r=(0,s.qS)(n[e],"observations","0",0),c=(0,s.Et)(o)?(a[o]||{}).name:null;return(0,s.Et)(r)&&(0,s.O8)(c)&&t.push((0,Vt.eb)(l(r),c)),t}),[]);return(0,jt._u)(c)})),Di=Ei,Ii=(0,Ie.e$)({crData:(t,e)=>{const o=$i(t),n=(0,s.qS)(Ti(o),(t=>ji(t).split(".").reduce(((t,e)=>t+":0"),"").slice(1))(e),"observations")||{},r=(0,s.qS)(ki(o),"observation",0,"values")||[];return(0,s.Co)(n).reduce(((t,e)=>{const o=(0,s.cY)((r[e]||{}).id),i=parseFloat(n[e]);return(0,s.Et)(o)&&(0,s.Et)(i)&&t.push([o,i]),t}),[]).sort(jt.vJ)}}),Li={api:_i,adapter:(0,de.GT)({getRoute:(0,de.C_)(Di,Ii)})},Ni="./data/ei",Oi=t=>{const{items:e}=t,o=e[1].v;return`${Ni}/${o}`},Mi={getRequestUrl(t){const e=(0,Vt.vD)(t);return e||(0,Vt.WG)(t)?((t,e)=>{const{items:o,time:n,dfTmToken:r}=t,i=o[0].v;if(!(0,s.h$)(parseInt(n),2018,2024))throw{message:(e?"TreeMap":"Bar by metric")+" only available for 2019-2023"};return e||(t.subtitle=t.title,t.title=t.dfTmTitle),`${Ni}/${r}-tm/${i}-${n}.json`})(t,e):(0,Vt.hQ)(t)?(t=>{const{time:e}=t;return`${Oi(t)}/by-geo-${e}.json`})(t):(t=>{const{items:e}=t,o=e[0].v;return`${Oi(t)}/${o}.json`})(t)},checkResponse:(0,s.K_)()},Fi=()=>!0,Wi=(t,e)=>{const o=parseInt(t.fromYear,10),n=(0,s.cY)(e.fromDate),r=(0,s.Et)(n)?t=>t>n:Fi;return(0,s.Et)(o)?t.data.reduce(((t,e,n)=>{const i=(0,s.cY)(o+n);return r(i)&&t.push([i,e]),t}),[]):[]},Ri=(0,_e.A)(((t,e)=>{const o=(0,s.DF)(e);return t.data.map((t=>(0,Vt.eb)(o(t[1]),t[0])))})),Pi=Ri,Bi=Te((t=>t.data.reduce(((t,e)=>{const[o,n]=e||[];return(0,s.Et)(n)&&(t[0].push({label:o,value:n,color:me(o)}),t[1]+=n),t}),[[],0]))),Ui=(0,_e.A)(((t,e)=>(0,jt._u)(t.data.map((t=>{const e=(0,Vt.eb)(t[1],t[0]);return e.color=me(t[0]),e}))))),zi=(0,Ie.e$)({crData:Wi}),Vi={api:Mi,adapter:(0,de.GT)({getRoute:(0,de.Vc)(Ui,Bi,Pi,zi)})},Ji=t=>"EU"===t.dfId,Ki=t=>"US"===t.dfId,Zi=t=>t.country_code&&t.country_or_region||"",qi=t=>t.country&&"US Total"!==t.state&&t.state||"",Yi=t=>e=>o=>t((t=>t.items)(o)[e]),Gi=Yi(s.Ps),Hi=Yi(s._W),Qi=Gi(0),Xi=Hi(1),ta=Gi(2),ea=Hi(2),oa=t=>Ji(t)?"day_ahead_price_eur_per_mwh":ea(t),na=t=>"Total"===t,sa=t=>"Fossil"===t.variable||"Clean"===t.variable,ra=(t,e)=>e.reduce(t,Object.create(null)),ia=(t,e,o,n)=>{const r=n?(t,e)=>(0,s.Et)(t)&&n(e):s.Et;return t.reduce(((t,n)=>{const s=e(n);return r(s,n)&&t.push(o(s,n)),t}),[])},aa="https://ember-data-api-scg3n.ondigitalocean.app/ember",la="generation",ca="json",da=`yearly.${ca}`,pa=`monthly.${ca}`,ua=`${la}_${da}`,ha=`${la}_${pa}`,ma=`${la}_usa_${da}`,fa=`${la}_usa_${pa}`,ga=`${aa}/price_monthly.json`,ya="&_shape=array",xa="date",va=t=>(e,o)=>`${e}__${t}=${o}`,ba=va("exact"),Ca=va("gte"),Sa=t=>ba(t.pnDate,t.time),wa=t=>{const e=Xi(t);return na(e)?"":`&${ba("variable",e)}`},Aa=t=>(e,o)=>`${aa}/${e}?${ba(t,Qi(o))}${ya}`,ja=Aa("country_or_region"),$a=Aa("state"),Ta=(t,e)=>{const[o,n]=Ki(e)?[fa,ma]:[ha,ua];return t?o:n},ka=(t,e)=>{const o=Ta(t,e);return(Ki(e)?$a:ja)(o,e)},_a=(t,e)=>{const o=wa(e),n=`${Sa(e)}${ya}`,s=Ta(t,e);return Ji(e)?`${ga}?${n}`:`${aa}/${s}?${n}${o}`},Ea=(t,e)=>(e.dfTmTitle=ta(e),`${ka(t,e)}&${Sa(e)}`),Da=(t,e)=>{const o=t?`&${Ca(xa,e.fromDate)}`:"";return Ji(e)?`${ga}?${ba("country_or_region",Qi(e))}${o}${ya}`:`${ka(t,e)}${wa(e)}${o}`},Ia={getRequestUrl(t){const e="M"===t.dfRId,o=(0,Vt.vD)(t)?Ea:(0,Vt.hQ)(t)?_a:Da;return t.pnDate=e?xa:"year",e&&(t.time=t.time+"-01"),o(e,t)},checkResponse(t){if(!(0,s.Ep)(t))throw(0,s.UE)()}},La=Ia,Na=["Coal","Gas","Other Fossil","Nuclear","Other Renewables","Bioenergy","Hydro","Solar","Wind"],Oa=t=>{const e=oa(t);return Te((t=>t.reduce(((t,o)=>{const n=(t=>t.variable)(o),r=(t=>t[e])(o);return(t=>-1!==Na.indexOf(t))(n)&&(0,s.Et)(r)&&(o.label=n,o.value=r,o.color=me(n),t[0].push(o),t[1]+=r),t}),[[],0])))},Ma=Object.keys,Fa=t=>t,Wa=(t,e,o,n,s)=>ia(t,e,((t,e)=>(o,n)=>(0,Vt.eb)(t(o),e(n)))(n,o),s),Ra=(t,e,o)=>{const n=ra(((t,n)=>{const s=e(n);return s&&sa(n)&&(t[s]=(t[s]||0)+n[o]),t}),t);return Wa(Ma(n),(t=>n[t]),Fa,(t=>(0,s.W7)(t,2)))},Pa=(t,e,o)=>Wa(t,(t=>t[o]),e,Fa,(t=>!!e(t))),Ba=(0,_e.A)(((t,e)=>{const o=Xi(e),n=oa(e),s=Ki(e)?qi:Zi,r=na(o)?Ra:Pa;return(0,jt._u)(r(t,s,n))})),Ua=Ba,za=Object.keys,Va=(t,e,o,n)=>ia(t,e,(t=>(e,o)=>[(0,s.cY)(t(o)),e])(o),n),Ja=(t,e,o)=>{const n=ra(((t,n)=>{if(sa(n)){const s=""+n[o];t[s]=(t[s]||0)+n[e]}return t}),t);return Va(za(n),(t=>n[t]),(t=>t))},Ka=(t,e,o,n,s)=>Va(t,(t=>t[e]),(t=>t[o]),Ji(s)?void 0:t=>t.variable===n),Za=(0,Ie.e$)({crData:(t,e)=>{const o=Xi(e);return(na(o)?Ja:Ka)(t,oa(e),e.pnDate,o,e).sort(jt.vJ)}}),qa={api:La,adapter:(0,de.GT)({getRoute:(0,de.s4)(Oa,Ua,Za)})},Ya={getRequestUrl:t=>(t=>{const{items:e}=t;return`./data/environment/${(0,s._W)(e[0])}.json`})(t),checkResponse:(0,s.K_)()},Ga=(0,Ie.e$)({crData:Wi,addToConfig:(t,e)=>(0,x.bK)(t,e.source)}),Ha={api:Ya,adapter:(0,de.GT)({getRoute:()=>Ga})},Qa=t=>{const{items:e}=t;return`./data/irena/${e[1].v}/${e[2].v}`},Xa={getRequestUrl:t=>(0,Vt.hQ)(t)?(t=>{const{time:e}=t;return`${Qa(t)}/by-geo-${e}.json`})(t):(t=>{const{items:e}=t,o=e[0].v;return`${Qa(t)}/${o}.json`})(t),checkResponse:(0,s.K_)()},tl=(0,Ie.e$)({crData:Wi}),el={api:Xa,adapter:(0,de.GT)({getRoute:(0,de.C_)(Pi,tl)})};var ol=o(4031);const nl=t=>{const{items:e}=t,o=(0,s._W)(e[0]),n=(0,s._W)(e[1]);return(0,s.kp)(t,{itemCaption:`${o}/${n}`}),`${(0,ol.kV)("DIGITAL_CURRENCY_DAILY")}&symbol=${o}&market=${n}`},sl={api:(0,ol.Ec)((()=>nl)),adapter:(0,Ie.e$)({crData:(t,e)=>{const o=t["Time Series (Digital Currency Daily)"];return(0,s.Co)(o).map((t=>[(0,s.cY)(t),parseFloat(o[t]["4. close"])])).sort(jt.vJ)}})},rl=(0,s.Gu)(["daily","weekly"]),il=(0,s.Gu)(["quarterly","annual"]),al=(0,s.vL)({EC:t=>{const{items:e}=t,[o,n]=(0,s.a3)(e[0]);return(0,s.kp)(t,{itemCaption:n}),(0,ol.kV)(o)},CM:t=>{const{items:e}=t,[o,n]=e,[r,i,a]=((t,e)=>{const[o,n]=(0,s.a3)(t),[r,i]=(0,s.a3)(e);if(!t.dw&&rl(r)||t.dw&&il(r))throw(0,s.UE)(ol.O9,`Interval ${i} is absent for ${n}`);return[o,n,r]})(o,n);return(0,s.kp)(t,{itemCaption:i}),`${(0,ol.kV)(r)}&interval=${a}`}}),ll=(0,ol.Ec)((t=>al(t.dfFn))),cl=(0,ol.e)("value","date"),dl={api:ll,adapter:(0,Ie.e$)({crData:t=>{let{data:e}=t;return cl(e)},trOption:(t,e)=>{const{title:o}=t,{unit:n}=e;t.title=(0,s.MZ)(", ",o,n)}})},pl="cryptocompare.com",ul=`https://${pl}/coins`,hl="CryptoCompare Overview",ml=(t,e,o)=>{(0,s.Qv)(o)&&t.push([e,o])},fl=(t,e)=>`${t}: Values on ${"histoday"===(0,s._W)(e[2])?"00:00 GMT+0":"GMT+0"}`,gl=(t,e)=>{const{ConversionType:o}=t,{conversionSymbol:n,type:s=""}=o||{};return{tsym:n||e.tsym,type:s}},yl=(t,e)=>{const{value:o,exchange:n}=e,{tsym:s,type:r}=gl(t,e);return`${n}: ${o}/${s} ${r}`},xl=(t,e,o)=>({btTitle:`Volume ${t}`,dColumn:e,data:o}),vl=(0,Ie.e$)({crData:t=>{const e=[],o=[],n=[],r=[],i=[];return t.Data.forEach((t=>{if((0,s.Qv)(t.time)){const a=1e3*t.time;ml(e,a,t.close),ml(o,a,t.volumefrom),ml(r,a,t.volumeto),(t=>(0,s.Qv)(t.open)&&(0,s.Qv)(t.high)&&(0,s.Qv)(t.low)&&(0,s.Qv)(t.close))(t)&&(((t,e,o,n)=>{(0,s.Qv)(n)&&t.push((0,wn._)({date:e,open:o.open,close:o.close,volume:n,option:{_high:o.high,_low:o.low}}))})(n,a,t,t.volumefrom),((t,e,o)=>{t.push({x:e,high:(0,s.W7)(o.high-o.close,2),low:(0,s.W7)(o.low-o.close,2),open:o.open,dayHigh:o.high,dayLow:o.low,close:o.close})})(i,a,t))}})),{data:e,dVolume:o,dColumn:n,dToVolume:r,dHL:i}},crConfOption:t=>{return{zhConfig:(0,s.cZ)(t,(0,s.EE)(...(e=t.value,e&&(0,s.O8)(e)?[`${hl} (${e})`,`${ul}/${e.toLowerCase()}/overview`]:[hl,ul]))),info:{name:t.itemCaption}};var e},trOption:(t,e)=>{const{title:o,items:n}=t;(0,s.kp)(t,{itemCaption:o,title:fl(o,n),subtitle:yl(e,t)})},addToConfig:(t,e,o,n)=>{const s=((t,e)=>{const{tsym:o}=gl(t,e);return o})(e,o),{value:r}=o,{dVolume:i,dColumn:a,dToVolume:l,dHL:c}=n;return(0,Cn._5)([xl(r,a,i),xl(s,[],l)])(t),(0,Cn.Jn)({data:c})(t)}}),bl=(0,de.GT)({rAdapter:{DF:vl}}),Cl=`https://min-api.${pl}`,Sl=(t,e)=>o=>(0,s._W)(o[t],{dfValue:e}),wl=Sl(0,"BTC"),Al=Sl(1,"CCCAGG"),jl=Sl(2,"histoday"),$l=t=>{const{items:e=[]}=t,o=wl(e),n=Al(e),r=jl(e),i="Binance"===n?"USDT":"USD";return(0,s.kp)(t,{value:o,exchange:n,tsym:i}),`${Cl}/data/${r}?fsym=${o}&e=${n}&tsym=${i}&limit=600&extraParams=webapperc`},Tl={DF:$l,HD:$l},kl={api:{getRequestUrl(t){const{dfSubId:e}=t;return(Tl[e]||Tl.DF)(t)},checkResponse(t){if(!t||"Error"===t.Response)throw(0,s.UE)("",t&&t.Message)}},adapter:bl},_l={getRequestUrl(t){const{items:e}=t,o=(0,s._W)(e[0]),n=(0,s._W)(e[1]);return((t,e)=>{(0,s.kp)(t,{title:e})})(t,`By USD Market Cap Page: ${o} (${n})`),`https://api.coincap.io/v2/assets?limit=${n}&offset=${(parseInt(o)-1)*parseInt(n)}`},checkResponse(t){if(!(0,s.Ep)((t||{}).data))throw(0,s.UE)()}};var El=o(6559),Dl=o(4668);const Il=t=>(0,El.Nh)(parseFloat(t)),Ll=()=>({isF:!0,fn:Il,...(0,Dl.wQ)()}),Nl=()=>({toN:[0],isF:!0,...(0,Dl.wQ)()}),Ol=[{...(0,Dl.tJ)("Rank"),toN:[],style:{textAlign:"center"}},{...(0,Dl.tJ)("Sybmol","symbol"),...(0,Dl.wQ)()},(0,Dl.tJ)("Name",!0),{...(0,Dl.tJ)("Price","priceUsd"),...Ll()},{...(0,Dl.tJ)("Vwap 24h","vwap24Hr",!0),...Ll()},{...((t,e,o)=>({...(0,Dl.tJ)(t,e,o),toN:[2],isR:!0}))("% 24h","changePercent24Hr")},{...(0,Dl.tJ)("Supply",!0),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Max Supply","maxSupply",!0),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Market Cap","marketCapUsd",!0),...Nl()},{...(0,Dl.tJ)("Volume USD 24h","volumeUsd24Hr"),...Nl()}],Ml={api:_l,adapter:{toConfig(t,e){const{key:o,title:n}=e,r=(0,Dl.Ju)(Ol,t.data);return{config:(0,Dl.gO)({id:o,title:n,headers:Ol,rows:r,dataSource:`CoinCap ${(0,s.O1)()}`})}}}},Fl=t=>{const{items:e=[]}=t,o=(0,s._W)(e[0]),n=(0,s.h$)(o,0,11)?o:1,r=(0,s._W)(e[1]);return[n,(0,s.h$)(r,9,51)?r:10,(0,s._W)(e[2])||"USD"]},Wl="https://api.coingecko.com/api/v3",Rl=Wl+"/coins",Pl=Wl+"/exchanges",Bl=(t,e,o)=>(0,s.kp)(t,{title:e,_itemUrl:o}),Ul={DF:t=>{const[e,o]=t.items,{c:n,v:r,s:i}=e,{v:a}=o,l=`${i}/${a}`,c=Math.min(Math.max((0,s.s2)(t.fromDate),91),365);(0,s.kp)(t,{itemCaption:l,subtitle:"Values on 00:00 GMT",_currency:a,_nativeUrl:`https://www.coingecko.com/en/coins/${r}`}),Bl(t,n,`${Rl}/${r}/market_chart?vs_currency=${a}&days=${c}`)},MCL:t=>{const[e,o,n]=Fl(t);Bl(t,`By Market Cap Page: ${e} (${o})`,`${Rl}/markets?order=market_cap_desc&page=${e}&per_page=${o}&vs_currency=${n}&price_change_percentage=1h,7d,30d,1y`)},EL:t=>{const[e,o]=Fl(t);Bl(t,`By Exchages Page: ${e} (${o})`,`${Pl}?page=${e}&per_page=${o}`)},EV:t=>{const e=t.items;Bl(t,`${(0,s.Ps)(e[0])} historical trading volume in BTC`,`${Pl}/${(0,s._W)(e[0])}/volume_chart?days=${(0,s._W)(e[1])}`)}},zl={getRequestUrl:t=>((Ul[t.dfSubId]||Ul.DF)(t),t._itemUrl),checkResponse(t,e){const{dfSubId:o}=e;if(("MCL"===o||"EL"===o||"EV"===o)&&(0,s.Ep)(t)&&t.length>1)return t;if(t&&(0,s.Ep)(t.prices))return t;throw(0,s.UE)()}},Vl=(0,V.GI)("Coin Gecko"),Jl=t=>{let{title:e,_nativeUrl:o}=t;return{name:e,description:Vl(o)}},Kl=(t,e,o)=>({btTitle:t,title:`${t} ${e}`,data:o}),Zl=(0,Ie.e$)({crData:t=>{let{prices:e}=t;return e},addConfOption:t=>({info:Jl(t)}),addToConfig:(t,e,o)=>{const{total_volumes:n,market_caps:s}=e,{_currency:r}=o;return(0,Cn._5)([Kl("Volume",r,n),Kl("Market Cap",r,s)])(t)}}),ql=()=>({toN:[],...(0,Dl.SO)()}),Yl="trade_volume_24h_btc",Gl=`${Yl}_normalized`,Hl=[{...(0,Dl.tJ)("Trust Rank","trust_score_rank"),...ql()},(0,Dl.tJ)("Name"),{...(0,Dl.tJ)("24h BTC",Yl),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("24h BTC Norm.",Gl),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Trust Score","trust_score"),...ql()},{...(0,Dl.tJ)("Year Estb.","year_established",!0),...(0,Dl.SO)()},(0,Dl.tJ)("Country",!0),{...(0,Dl.tJ)("Link","url",!0),isHref:!0}],Ql={crKey:t=>(t.key=Fl(t).join("_"),t.key),toConfig(t,e){const{key:o,title:n}=e,r=(0,Dl.Ju)(Hl,t);return{config:(0,Dl.gO)({id:o,title:n,headers:Hl,rows:r,dataSource:`CoinGecko ${(0,s.O1)()}`,fns:{valueToHref:(t,e)=>e}})}}},Xl=(0,Ie.e$)({crData:t=>t.map((t=>[t[0],parseFloat(t[1])]))}),tc="change_percentage",ec={toN:[2],isR:!0},oc=(t,e,o)=>({...(0,Dl.tJ)(t,`price_${tc}_${e}`,o),...ec}),nc=(t,e)=>({...(0,Dl.tJ)(t,`${e}_${tc}`,!0),...ec}),sc=(t,e,o,n)=>({...(0,Dl.tJ)(t,e),...(0,Dl.b5)(n),isHide:!!o}),rc=t=>sc(t,`${t.split(" ")[0].toLowerCase()}_supply`,!0,0),ic=(t,e)=>({...(0,Dl.tJ)(t,e,!0),isF:!0,fn:s.tK}),ac=(0,s.Tq)((()=>{const t=[{...(0,Dl.SO)(),...(0,Dl.tJ)("Rank","market_cap_rank"),toN:[]},(0,Dl.tJ)("Name"),{...(0,Dl.tJ)("Symbol",!0),...(0,Dl.wQ)({textTransform:"uppercase"})},(0,Dl.mG)("Price Change %",[oc("1h %","1h_in_currency"),oc("24h %","24h"),oc("7d %","7d_in_currency"),oc("30d %","30d_in_currency",!0),oc("1y %","1y_in_currency",!0)]),(0,Dl.mG)("Price",[sc("High 24h","high_24h",!0),sc("Price","current_price"),sc("Low 24h","low_24h",!0)]),(0,Dl.mG)("ATH, ATL",[sc("ATH","ath",!0),nc("ATH %","ath"),ic("ATH Date UTC","ath_date"),sc("ATL","atl",!0),nc("ATL %","atl"),ic("ATL Date UTC","atl_date")]),(0,Dl.mG)("Supply",[rc("Circulating"),rc("Total Supply"),rc("Max Supply")]),sc("MarketCap","market_cap"),ic("Updated UTC","last_updated")];return[t,(0,Dl.zS)(t)]})),lc=t=>`CoinGecko ${(0,s.tK)((t[0]||{}).last_updated)} UTC`,cc={crKey:t=>(t.key=Fl(t).join("_"),t.key),toConfig(t,e){const[o,n]=ac(),s=(0,Dl.Ju)(n,t);return{config:(0,Dl.gO)({id:e.key,title:e.title,headers:o,flatHeaders:n,rows:s,dataSource:lc(s)})}}},dc={api:zl,adapter:(0,de.GT)({rAdapter:{DF:Zl,EL:Ql,EV:Xl,MCL:cc},isKey:!0})},pc=(t,e)=>{const{_itemKey:o,dataSource:n}=t,r=(0,s.cZ)(t);return r.itemConf={_itemKey:o,...(0,V.B0)(t),...(0,V.TU)(e),dataSource:n},r},uc=Array.isArray,hc={api:{getRequestUrl(t){const{items:e=[],fromDate:o}=t,{v:n}=e[0],{v:r}=e[1],[i,a]=o?[`&start_time=${o}`,(0,s.s2)(o)]:["",360];return t.metric=r,`https://community-api.coinmetrics.io/v4/timeseries/asset-metrics/?assets=${n.toLowerCase()}&metrics=${r}&frequency=1d&page_size=${a}${i}`},checkResponse(t){const{data:e}=t||{};if(!uc(e))throw(0,s.UE)("Server Response")}},adapter:(0,Ie.e$)({crData:(t,e)=>{let{metric:o}=e;return t.data.map((function(t){return void 0===t&&(t={}),[(0,s.CA)((t.time||"").replace("Z",""),"T"),parseFloat(t[o])]}))},crConfOption:(t,e,o)=>({zhConfig:pc(t,o)})})},mc=(0,V.GI)("Coinpaprika"),fc=t=>{let{items:e=[]}=t;return(0,s._W)(e[0],{dfValue:"btc-bitcoin"})},gc=t=>`https://coinpaprika.com/coin/${fc(t)}/`,yc=t=>({name:t.title||"",description:mc(gc(t))}),xc=fc,vc="https://api.coinpaprika.com/v1",bc=Array.isArray,Cc={DF:t=>{const{fromDate:e}=t,o=xc(t);return`${vc}/tickers/${o}/historical?start=${e}&interval=1d`},TW:t=>{const e=xc(t);return`${vc}/coins/${e}/twitter`},CI:t=>{const e=xc(t);return`${vc}/coins/${e}`}},Sc={getRequestUrl(t){const{dfSubId:e}=t,o=Cc[e]||Cc.DF;return t._itemUrl=o(t)},checkResponse(t,e){const{dfSubId:o}=e;if(bc(t)||"CI"===o&&t)return t;throw(0,s.UE)()}},wc=Sc,Ac=(t,e,o)=>({btTitle:t,title:`${t} USD`,data:e,dColumn:o}),jc=(0,Ie.e$)({crData:t=>{const e=[],o=[],n=[];return t.forEach((t=>{const{timestamp:r,price:i,volume_24h:a,market_cap:l}=t,c=r?(0,s.cY)(r.split("T")[0]):0;c&&(e.push([c,i]),o.push([c,a]),n.push([c,l]))})),{data:e,dVolume:o,dMarketCap:n}},addConfOption:t=>({info:yc(t)}),addToConfig:(t,e,o,n)=>{const{dVolume:s,dColumn:r,dMarketCap:i}=n;return(0,Cn._5)([Ac("Volume",s,r),Ac("Market Cap",i)])(t)}}),$c=t=>{const e=[];let o;for(o=0;o{let{name:e="",symbol:o="",rank:n=""}=t;return`${e} (${o}) (${n})`},_c=(t,e)=>e?`${t}: ${e}`:"",Ec=t=>{let{started_at:e,development_status:o,hardware_wallet:n,org_structure:s,hash_algorithm:r,proof_type:i,platform:a}=t;return[_c("Started At",(l=e,l?(""+l).split("T")[0]:"")),_c("Dev Status",o),_c("Org",s),_c("Hardware Wallet",n),_c("Hash Alg.",r),_c("Proof Type",i),_c("Platform",a)].filter(Boolean);var l},Dc=t=>{let{type:e,open_source:o,is_active:n}=t;return(0,s.MZ)(" ",(0,s.Ob)(e),o?"OpenSource":"not OpenSource",(t=>t?"Active":"not Active")(n))},Ic=t=>t.description||"",Lc=t=>{let{links:e,links_extended:o}=t;const{website:n}=e||{},s=(n||[])[0],r=s?[{href:s,caption:"Website"}]:[],i=(t=>(t||[]).filter((t=>"blog"===t.type)).map((t=>({href:t.url,caption:"Blog"}))))(o),a=r.concat(i);return a.length>0?a:void 0},Nc={crKey(t){const{items:e=[]}=t;return t._itemKey=(0,s._W)(e[0])},toConfig(t,e){const{_itemKey:o}=e;return{config:{zhCompType:"INFO_ITEM",id:o,caption:kc(t),items:[{caption:Dc(t),tokens:Ec(t)},{style:{fontWeight:"bold"},descr:Ic(t),links:Lc(t)}],zhConfig:{id:o,key:o}}}}},Oc={api:wc,adapter:(0,de.GT)({rAdapter:{DF:jc,TW:Tc,CI:Nc},isKey:!0})},Mc={getRequestUrl(t){const{items:e=[]}=t,{v:o}=e[0];return`https://api.coinlore.net/api/exchange/?id=${o}`},checkResponse(t,e){const{pairs:o}=t||{};if(!(0,s.Ep)(o))throw(0,s.UE)()}},Fc="turnover",Wc=[{...(0,Dl.tJ)("Rank","id"),...(0,Dl.SO)()},(0,Dl.tJ)("Base"),(0,Dl.tJ)("Quote"),{...(0,Dl.tJ)("Volume"),...(0,Dl.b5)(0)},{...(0,Dl.tJ)("Price"),...(0,Dl.b5)()},{...(0,Dl.tJ)("Price USD","price_usd",!0),...(0,Dl.b5)()},{...(0,Dl.tJ)("V*P USD",Fc,!0),...(0,Dl.b5)(0)},(0,Dl.tJ)("Time",!0),(0,Dl.tJ)("Date",!0)],Rc=t=>(0,s.e)(1e3*t).split(" "),Pc=t=>{let{base:e,quote:o,volume:n}=t;return e&&o&&0!==n},Bc=(t,e,o,n)=>{let{items:r}=e;const i=(t[0]||{}).name||r[0].c,a=((t,e)=>{const o=(0,s.e)(1e3*t),n=(0,s.e)(1e3*e),r=o.split(" "),i=n.split(" "),a=r[1]===i[1]?r[1]:void 0;return a?`${r[0]} - ${i[0]} ${a}`:`${o} ${n}`})(o,n);return`${i} ${a}`},Uc={api:Mc,adapter:{toConfig(t,e){const{_itemKey:o,dataSource:n}=e,{rows:r,tMin:i,tMax:a}=(t=>{const{pairs:e}=t,o=[],n=e.length;let r,i=NaN,a=NaN,l=0,c=1;for(;lt?a:t,c++}return{rows:(0,Dl.Ju)(Wc,o),tMin:i,tMax:a}})(t),l=Bc(t,e,i,a);return{config:(0,Dl.gO)({id:o,title:l,headers:Wc,rows:r,dataSource:n})}}}},zc=function(t){return void 0===t&&(t=s.Cx),e=>{let{option:o}=e;return{...t(o),zhConfig:(0,s.cZ)(o)}}},Vc=(t,e)=>t.date-e.date,Jc=t=>{let{d:e=0,o=1,h:n=3,l:r=4,c:i=2,v:a=5,crDate:l=s.QN,crValue:c=s.QN,crVolume:d=s.QN}=t;return(t,p)=>{try{return t.reduce(((t,p)=>{const u=l(p[e]);return(0,s.Qv)(u)&&t.push({date:u,open:c(p[o]),high:c(p[n]),low:c(p[r]),close:c(p[i]),volume:d(p[a])}),t}),[]).sort(Vc)}catch(t){throw(0,s.UE)()}}},Kc=parseFloat,Zc=function(t){void 0===t&&(t=!0);const e=t?1e3:1;return{crDate:t=>Kc(t)*e,crValue:t=>(0,s.Yp)(Kc(t)),crVolume:t=>Kc(t)}},qc=t=>Tn({isAth:!1,isVolume:!t.isNotVolume,getArr:t.getArr||Jc(t),toDate:s.QN,crAddConfig:zc(t.crAddConfig)}),Yc=(0,V.GI)("Binance Research"),Gc=(0,V.GI)("Binance Trade Chart"),Hc=t=>{let{_researchLink:e,_tradeLink:o}=t;return Yc(e,oo.oq)+Gc(o)},Qc=t=>({name:t.title,description:Hc(t)}),Xc=t=>parseFloat(t),td=qc({d:6,o:1,h:2,l:3,c:4,crValue:Xc,crVolume:Xc,crAddConfig:t=>({info:Qc(t)})});var ed=o(3317);const od=(0,ed.A)({crTitle:t=>{let{items:e}=t;return e[0].v}}),nd=(0,s.Gu)([n._D,n._M,n.b2]),sd=(t,e)=>{let{proxy:o,loadId:n}=e;return nd(n)?t:o?`${o}${t}`:`https://api.allorigins.win/get?url=${encodeURIComponent(t)}`},rd=t=>e=>{const{items:o=[]}=e,n=(0,s._W)(o[1]);return e.timeframe=n,sd(t((0,s._W)(o[0]),n,(0,s._W)(o[2]),e,o),e)},id=t=>e=>{const{items:o=[]}=e;return sd(t((0,s._W)(o[0]),(0,s._W)(o[1])),e)},ad=t=>(e,o)=>{try{const n=function(t,e,o){return void 0===o&&(o=s.QN),o(t&&(0,s.O8)(t.contents)?JSON.parse(t.contents):t,e)}(e,o,t);if((0,s.Ep)(n)||n&&(0,s.Ep)(n.asks)&&(0,s.Ep)(n.bids))return n;throw(0,s.UE)()}catch(t){throw(0,s.UE)()}},ld=t=>e=>{const{dfSubId:o}=e;return(o&&t[o]||t.DF)(e)},cd=(t,e,o)=>((t,e)=>({getRequestUrl:ld(t),checkResponse:ad(e)}))({DF:rd(t),OB:e?id(e):void 0},o),dd="https://",pd="binance.com",ud=`${dd}api.${pd}/api/v3`,hd=`${dd}research.${pd}/en/projects`,md=`${dd}${pd}/en/trade`,fd=/\s/g,gd=t=>(t||"").replace("/",""),yd={api:cd(((t,e,o,n,s)=>(function(t,e,o){void 0===e&&(e=""),void 0===o&&(o="");const n=e.indexOf("("),s=e.slice(0,n).trim().toLowerCase().replace(fd,"-"),r=o.replace("/","_");t._researchLink=`${hd}/${s}`,t._tradeLink=`${md}/${r}`}(n,s[0].c,t),`${ud}/klines?symbol=${gd(t)}&interval=${e}&limit=${o}`)),((t,e)=>`${ud}/depth?symbol=${gd(t)}&limit=${e}`)),adapter:(0,de.T9)(td,od)},xd=qc({o:3,h:2,l:1,c:4,crDate:t=>1e3*t}),vd={api:cd(((t,e)=>`https://api.exchange.coinbase.com/products/${t}/candles?granularity=${e}`)),adapter:(0,de.T9)(xd)},bd=qc({...Zc(),d:"timestamp",o:"open",h:"high",l:"low",c:"close",v:"volume"}),Cd=(0,ed.A)({crTitle:(t,e)=>{let{items:o}=t,{timestamp:n}=e;const r=(0,s.e)(1e3*parseInt(n,10));return`${o[0].c} ${r}`},crLimit:t=>{let{items:e}=t;return parseInt(e[1].v,10)}}),Sd="https://www.bitstamp.net/api/v2",wd={api:cd(((t,e,o)=>`${Sd}/ohlc/${t}?step=${e}&limit=${o}`),(t=>`${Sd}/order_book/${t}?order=0`),((t,e)=>{const{data:o,bids:n,asks:r}=t||{},{ohlc:i,pair:a}=o||{},{items:l=[]}=e,{c}=l[0];return c===a&&(0,s.Ep)(i)?i:(0,s.Ep)(n)&&(0,s.Ep)(r)?t:void 0})),adapter:(0,de.T9)(bd,Cd)},Ad=qc({crValue:t=>(0,s.Yp)(t)}),jd=(t,e)=>t[0]-e[0],$d=(0,ed.A)({crTitle:t=>{let{items:e}=t;return e[0].c+" P0"},crOrderBook:t=>{const e=[],o=[];return t.forEach((t=>{(0,s.Qv)(t[0])&&(t[2]>0?o.push([t[0],t[2],t[1]]):e.push([t[0],-1*t[2],t[1]]))})),{asks:e.sort(jd),bids:o.sort(jd).reverse()}}}),Td="https://api-pub.bitfinex.com/v2",kd={api:cd(((t,e,o)=>`${Td}/candles/trade:${e}:t${t}/hist?limit=${o}`),((t,e)=>`${Td}/book/t${t}/P0?len=${e}`)),adapter:(0,de.T9)(Ad,$d)},_d=qc({...Zc(!1),d:"t",o:"o",h:"h",l:"l",c:"c",v:"v"}),Ed="https://api.crypto.com/exchange/v1/public",Dd={api:cd(((t,e,o)=>`${Ed}/get-candlestick?instrument_name=${t}-PERP&timeframe=${e}&count=${o}`),((t,e)=>`${Ed}/get-book?instrument_name=${t}-PERP&depth=${e}`),(t=>{const{data:e}=(t||{}).result||{},o=(e||[])[0],{asks:n,bids:r}=o||{};return(0,s.Ep)(n)&&(0,s.Ep)(r)?{asks:n,bids:r}:(0,s.Ep)(e)?e:void 0})),adapter:(0,de.T9)(_d)},Id=qc({...Zc(),o:1,h:2,l:3,c:4,v:6}),Ld="https://api.kraken.com/0/public",Nd={api:cd(((t,e)=>`${Ld}/OHLC?pair=${t}&interval=${e}`),((t,e)=>`${Ld}/Depth?pair=${t}&count=${e}`),(t=>{const{result:e}=t||{};if(!(0,s.sA)(e))return;let o,n;for(o in e)if(n=e[o],(0,s.Ep)(n)||(0,s.sA)(n)&&(0,s.Ep)(n.asks)&&(0,s.Ep)(n.bids))return n})),adapter:(0,de.T9)(Id)},Od=qc(Zc()),Md="https://api.kucoin.com/api/v1/market",Fd={api:cd(((t,e)=>`${Md}/candles?symbol=${t}&type=${e}`),(t=>`${Md}/orderbook/level2_20?symbol=${t}`),(t=>(t||{}).data)),adapter:(0,de.T9)(Od)},Wd=qc({...Zc(),o:5,h:3,l:4,c:2,v:6}),Rd="https://api.gateio.ws/api/v4/spot",Pd={api:cd(((t,e,o)=>`${Rd}/candlesticks?currency_pair=${t}&interval=${e}&limit=${o}`),((t,e)=>`${Rd}/order_book?currency_pair=${t}&limit=${e}`)),adapter:(0,de.T9)(Wd)},Bd=qc({...Zc(),d:"id",o:"open",h:"high",l:"low",c:"close",v:"amount"}),Ud={api:cd(((t,e,o)=>`https://api.huobi.pro/market/history/kline?symbol=${t}&period=${e}&size=${o}`),(()=>{}),(t=>t&&(0,s.Ep)(t.data)?t.data:void 0)),adapter:(0,de.T9)(Bd)},zd=qc({...Zc(!1),isNotVolume:!0,h:2,l:3,c:4}),Vd={api:cd(((t,e,o)=>`https://www.okx.com/api/v5/market/mark-price-candles?instId=${t}&bar=${e}&limit=${o}`),void 0,(t=>(t||{}).data)),adapter:(0,de.T9)(zd)},Jd=qc({...Zc(!1),h:2,l:3,c:4}),Kd="https://api.bybit.com/v5/market",Zd="category=spot&symbol",qd={api:cd(((t,e,o)=>`${Kd}/kline?${Zd}=${t}&interval=${e}&limit=${o}`),((t,e)=>`${Kd}/orderbook?${Zd}=${t}&limit=${e}`),(t=>{const{list:e,a:o,b:n}=(t||{}).result||{};return(0,s.Ep)(e)?e:(0,s.Ep)(o)&&(0,s.Ep)(n)?{asks:o,bids:n}:void 0})),adapter:(0,de.T9)(Jd)},Yd={[n.Wv]:Li,[n._0]:zs,[n.O2]:lr,[n.ur]:yr,[n.fU]:_r,[n.D7]:Kr,[n.G7]:Ci,[n.cL]:Vi,[n.YQ]:qa,[n.s5]:el,[n.XT]:Ha,[n.QR]:Ne,[n.P]:Ve,[n.Pj]:Qe,[n.tz]:zt,[n.jd]:co,[n.p1]:jo,[n.Tq]:Xo,[n.Wl]:tn,[n.bR]:en,[n.PX]:on,[n.TF]:nn,[n.s1]:sn,[n.US]:rn,[n.pO]:_n,[n.zO]:In,[n.Kr]:Jn,[n.N2]:ns,[n.f_]:fs,[n.$8]:$s,[n.vq]:sl,[n.T2]:dl,[n.sd]:kl,[n.xv]:Ml,[n.WC]:dc,[n.iN]:hc,[n.Pn]:Oc,[n.b$]:Uc,[n._D]:yd,[n.b2]:vd,[n._M]:wd,[n.bE]:Dd,[n.M_]:kd,[n.Zh]:Nd,[n.ei]:Fd,[n.tI]:Pd,[n.oG]:Ud,[n.Z_]:Vd,[n.Me]:qd,[n.kw]:Kr,[n.Bs]:Kr};var Gd=o(3730),Hd=o(1852),Qd=o(7759),Xd=o(1778),tp=o(6882),ep=o(9288),op=o(2061);const np={alertCaption:"Series Error",alertDescr:"Adding category seria to not category isn't allowed."},sp=(t,e)=>{let{optionFetch:o}=t;return(0,Gd.fp)(o)?o(e):o},rp=(t,e)=>{let{json:o,option:n,onCompleted:s}=e;const{adapter:r}=t,{config:i}=r.toConfig(o,n),a=()=>{(0,Gd.fp)(i.then)?i.then((t=>{s(n,t)})):s(n,i)};(0,Vt.vD)(n)?(0,Qd.H)().then(a):a()},ip=(t,e,o)=>{try{return t.getRequestUrl(e)}catch(t){(0,op.A)({error:t,option:e,onFailed:o})}},ap=(t,e)=>{let{json:o,option:n,onCompleted:s}=e;const{adapter:r}=t,{itemCaption:i,value:a,hasSecondYAxis:l}=n,c=(0,Xd.jE)(),d=r.toSeries(o,n,c),{itemCaption:p,color:u,zhColor:h}=d||{};(0,tp.eh)({chart:c,series:d,label:p||i||a,color:u||h,hasSecondYAxis:!!l}),s(n)},lp=function(t,e){void 0===e&&(e=500),setTimeout(t,e)},cp=(t,e,o,n,s)=>{const r=(0,Xd.i8)();r?((t,e)=>{let{toSeries:o,isAdd:n}=t;return!(0,Gd.fp)(o)||(0,Gd.fp)(n)&&!n(e)})(t.adapter,e)?lp((()=>{(0,op.A)({error:new Error("ERR_10"),option:e,onFailed:s})})):(t=>{let{seriaType:e}=t;const o=(0,Xd.jE)();return e&&(0,ep.y)({value:e})&&o&&(0,Gd.Ep)(o.xAxis)&&!(0,Gd.Ep)(o.xAxis[0].categories)})(e)?lp((()=>s(np))):(e.parentId=r,((t,e,o,n)=>{const{fnFetch:s,api:r}=t,{getLimitRemaiming:i}=r||{},a=sp(t,e);s({uri:ip(r,e,n),option:e,optionFetch:a,getLimitRemaiming:i,onCheckResponse:r.checkResponse,onFetch:(0,Hd.J)(ap,t),onCompleted:o,onCatch:op.A,onFailed:n})})(t,e,n,s)):((t,e,o,n)=>{const{fnFetch:s,api:r}=t,{getLimitRemaiming:i}=r||{},a=sp(t,e);s({uri:ip(r,e,n),option:e,optionFetch:a,getLimitRemaiming:i,onCheckResponse:r.checkResponse,onFetch:(0,Hd.J)(rp,t),onCompleted:o,onCatch:op.A,onFailed:n})})(t,e,o,s)},dp=t=>{const{fnFetch:e=Xe.x,api:o,adapter:n}=t;return t.fnFetch=e,{loadItem:(0,Hd.J)(cp,t),addPropsTo:o.addPropsTo,crKey:n.crKey}},pp=Object.create(null),up=(t,e)=>{pp[t]||(pp[t]=dp(e))},hp=t=>pp[t];(()=>{for(let t in Yd)up(t,Yd[t])})()},7159:(t,e,o)=>{"use strict";o.d(e,{Q7:()=>a,jD:()=>n.j,vL:()=>n.v});var n=o(434),s=o(3730),r=o(2190),i=o(7674);const a=t=>{const{_itemKey:e}=t;switch(t.loadId){case r.D7:return e||(t=>{let{loadId:e,isLoadMeta:o,value:n,dataColumn:s,seriaType:r,viewKey:i}=t;return i||n})(t);case r.tz:case r.f_:case r.Bs:return e||t.id;default:return(t=>{const{loadId:e,value:o,_itemKey:n}=t,r=(0,i.Z)(e)||{},{crKey:a}=r;return(0,s.fp)(a)?a(t):n||o||"key"})(t)}}},2111:(t,e,o)=>{"use strict";o.d(e,{r:()=>P,A:()=>B});var n=o(7674),s=o(7159),r=o(2040),i=o(2190),a=o(3289),l=o(1315),c=o(4575),d=o(4867),p=o(9495),u=o(4250),h=o(6072),m=o(330);const f=t=>`is${t}Select`,g=t=>{const[e,o]=(0,m.A)((()=>(t=>t.reduce(((t,e)=>(t[f(e.id)]=!0,t)),Object.create(null)))(t)));return[(0,l.hb)((t=>o(f(t))),[o]),(0,l.hb)((t=>e[f(t)]),[e])]};var y=o(9288);const x=()=>{const[t,e]=(0,d.A)(),[o,n]=(0,l.J0)(),s=(0,l.hb)((t=>{n(t),(0,y.y)(t)&&e(!1)}),[]);return[t,e,o,s]};var v=o(4428);const b="EMPTY",C=(t,e,o,n,s)=>{const{mapFrequency:r=b,mapDateDf:i}=n||{},[a,c]=(0,l.J0)({_mapFrequency:r,_mapDateDf:i}),{_mapFrequency:d,_mapDateDf:p}=a;return[...(0,l.Kr)((()=>[(0,y.O)(t,e,d),...(0,v.A)(d,p,o)]),[d,p,t,e,o]),(0,l.Kr)((()=>t=>{if((t=>"table"===t.id||"Freq."===t.id&&t.mapFrequency)(t)){const[e,o]=((t,e,o)=>[t.mapFrequency||e,t.mapDateDf||o])(t,r,i);c((t=>((t,e,o)=>t._mapFrequency!==e||t._mapDateDf!==o)(t,e,o)?(s(),{_mapFrequency:e,_mapDateDf:o}):t))}}),[])]};var S=o(3057),w=o(2783),A=o(4066);const j=(t,e)=>t===e[0]&&(0,l.Ep)(e[1]),$=t=>{const e=(0,l.li)([]),[o,n]=(0,l.J0)([]),s=(0,l.hb)(((o,s,r)=>{(0,l.ZC)(e)[s]=r,r?(r.id=o,t(r),n((t=>(0,l.Ep)(r.not)?[o,r.not]:j(o,t)?[]:t))):n((t=>j(o,t)?[]:t))}),[t]);return[e,s,o]};var T=o(7104),k=o(5668),_=o(4848);const E=t=>{let{isShow:e,isShowLabels:o,selectProps:n,isShowById:s,hSelect:r,tupleFilter:i}=t;const[a,c]=i||[];return(0,l.lZ)(n,((t,n)=>{let{type:i,id:l,...d}=t;const p=i?"two"===i?k.A.SelectOneTwo:null:k.A.SelectWithLoad;return(0,_.jsx)(k.A.ShowHide,{isShow:s(l),children:p&&(0,_.jsx)(p,{...d,isShow:e,isShowLabels:o,onSelect:t=>r(l,n,t),filters:l===a?void 0:c})},l)}))};var D=o(9410);const I=()=>!0,L=(t,e)=>(t=>t&&t.id===D.o)(t)?t=>1!==t:(0,y.y)(t)?((t,e)=>{const o=t=>0!==t,{dim:n}=t;if(n){const t=e.findIndex((t=>t.caption===n));return-1!==t?e=>e!==t:o}return o})(t,e):void 0,N=(t,e,o,n)=>function(t,e,o,n){return void 0===n&&(n=I),e.reduce(((s,r,i)=>(n(i)&&!t[i]&&s.push(o(((t,e)=>t[e].caption)(e,i))),s)),[])}(e,o,n,L(t,o)),O=[],M=(0,c.A)((t=>{const{isCh:e=!0,isShow:o,isOpt:n,isFd:s,selectProps:r=O,dfProps:i,chartsType:a,msgOnNotSelected:c,caption:m,noDate:f,initFromDate:v,errNotYmdOrEmpty:b,isYmdOrEmpty:j,loadId:D,toTopLayer:I,onAbout:L,loadFn:M,onLoad:F,onShow:W,onClose:R}=t,{dfRt:P}=i||{},[B,U]=(0,d.A)(!0),[z,V]=g(r),[J,K,Z,q]=x(),[Y,G]=(0,u.A)(P),H=(0,l.li)(),Q=(0,l.li)(),[X,tt]=(0,u.A)(),et=(0,l.hb)((()=>{X(),q()}),[]),[ot,nt,st,rt]=C(r,a,D,i,et),[it,at,lt]=(0,p.R)(),[ct,dt,pt,ut,ht]=(0,w.A)(),[mt,ft,gt,yt,xt,vt,bt]=(0,S.A)({onAbout:L,onClose:R,toggleInputs:s||r.length>1?at:void 0,toggleOptions:n||e?pt:void 0}),[Ct,St,wt]=(0,A.A)(),[At,jt,$t]=$(rt),Tt=(0,h.A)((()=>{const e=N(Z,(0,l.ZC)(At),r,c);var o;0===e.length&&F(M(t,{...(0,l.y5)(Q),chartType:Z,isCategory:(0,y.y)(Z),items:[...(0,l.ZC)(At)],titles:(0,l.ZC)(Ct),dialogOptions:(0,l.ZC)(ct),fromDate:(0,l.Ek)(H,""),date:(o=tt(),(o||{}).value||st),_rt:G()})),vt(e)})),kt=(0,y.y)(Z),_t=s&&!kt,Et=_t&&J,Dt=s?v||"2010-01-01":void 0,It=B&&kt;return(0,_.jsxs)(k.A.DraggableDialog,{isFocusBtMenu:!1,isShow:o,caption:m,menuModel:gt,toTopLayer:I,onLoad:Tt,onShow:W,onClose:bt,children:[(0,_.jsx)(k.A.Toolbar,{isShow:mt,buttons:yt}),(0,_.jsx)(k.A.ModalOptions,{isShow:dt,dfRt:P,onRoundTo:Y,toggleOption:ht,onClose:ut}),(0,_.jsx)(k.A.ModalToggle,{isShow:it,selectProps:r,isFd:_t,isShowFd:J,isCh:e,isShowChart:B,onToggle:z,onCheckCaption:St,onUnCheckCaption:wt,onToggleFd:K,onToggleChart:U,onClose:lt}),(0,_.jsx)(T.A,{is:o,children:(0,_.jsx)(E,{isShow:o,isShowLabels:ft,selectProps:r,isShowById:V,hSelect:jt,tupleFilter:$t})}),(0,_.jsx)(k.A.ShowHide,{isShow:Et,children:(0,_.jsx)(k.A.RowDate,{innerRef:H,isShowLabels:ft,title:"From Date",initialValue:Dt,errorMsg:b,onTest:j})}),e&&(0,_.jsx)(k.A.RowChartDate,{refSeriaColor:Q,chartType:Z,isShowLabels:ft,isShowChart:B,chartOptions:ot,onSelectChart:q,noDate:f,isShowDate:It,dateDefault:st,dateOptions:nt,onSelectDate:X}),(0,_.jsx)(k.A.ValidationMessages,{validationMessages:xt})]})})),F=Promise.resolve.bind(Promise),W=(t,e,o)=>((0,n.E)(e,t._a),o[e]=F(t)),R=(0,s.jD)({DF:M,DialogSelectN:M,_loadD(){return o.e(890).then(o.bind(o,9060)).then((t=>this.D=F(t.default))).catch((t=>console.log(a.UU)))},getD(){return this.D||this._loadD()},get DialogQuery(){return this.getD().then((t=>t.Query))},_loadUN(){return o.e(538).then(o.bind(o,3442)).then((t=>{let{default:e}=t;return W(e,i.v$,this)})).catch((t=>console.log(a.UU)))},getUN(){return this[i.v$]||this._loadUN()},get UnDialog5(){return this.getUN().then((t=>t.UnDialog5))},get UnDialogAgg(){return this.getUN().then((t=>t.UnDialogAgg))},_loadSM(){return o.e(78).then(o.bind(o,7864)).then((t=>{let{default:e}=t;return W(e,i.Jm,this)})).catch((t=>console.log(a.UU)))},getSM(){return this[i.Jm]||this._loadSM()},get AlphaIndicatorDialog(){return this.getSM().then((t=>t.Indicator))},get AlphaTopDialog(){return this.getSM().then((t=>t.Top))},get AlphaSearchDialog(){return this.getSM().then((t=>t.Search))},_loadSD(){return o.e(301).then(o.bind(o,4965)).then((t=>this.SD=F(t.default))).catch((t=>console.log(a.UU)))},getSD(){return this.SD||this._loadSD()},get DialogStatN(){return this.getSD().then((t=>t.StatN))},_loadUS(){return o.e(378).then(o.bind(o,6815)).then((t=>this.US=F(t.default))).catch((t=>console.log(a.UU)))},getUS(){return this.US||this._loadUS()},get ZillowDialog(){return this.getUS().then((t=>t.Zillow))},loadDialogs(t){switch(t){case r.Y5:this._loadSM();break;case r.Os:case r.V5:this._loadSD();break;case r.vj:this._loadUN();break;default:return}}}),P=t=>F(t&&R[t]||R.DF),B=t=>{R.loadDialogs(t)}},2061:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(3289);const s=Object.assign,r=(t,e)=>-1!==t.message.indexOf(e),i=t=>{if(t instanceof TypeError){if(r(t,"429"))return n.DC;if(r(t,"fetch"))return n.j7}return(t=>{const{errCaption:e,message:o=""}=t||{},s=e||"ERROR";return-1!==o.indexOf(n.mA.token)?n.mA:{caption:s,descr:o}})(t)},a=function(t){let{error:e,option:o,onFailed:n}=t;((t,e)=>{const{caption:o,descr:n}=e;s(t,{alertCaption:o,alertDescr:n})})(o,i(e)),"function"==typeof n&&n(o)}},7343:(t,e,o)=>{"use strict";o.d(e,{eU:()=>x,Jr:()=>n.J,Nv:()=>h,Bu:()=>f,jo:()=>g,SV:()=>y,iC:()=>m,Ep:()=>s.Ep,fp:()=>s.fp,Et:()=>s.Et,O8:()=>s.O8,XB:()=>s.XB});var n=o(1852),s=o(3730),r=o(1315),i=o(6984);const a=(t,e,o)=>{(0,r.rz)(...(0,i.A)((()=>[()=>t.subscribe(e,o),()=>e(t.getState())])))},l=(t,e)=>(0,r.rz)(...(0,i.A)((()=>[o=>t.subscribe(e,o),()=>e(t.getState())])));var c=o(3986);const d=Object.is,p=Object.assign,u=t=>{let e;const o=new Set,n=(t,n)=>{const s="function"==typeof t?t(e):t;if(!d(s,e)){const t=e;e=(null!=n?n:"object"!=typeof s||null===s)?s:p({},e,s),o.forEach((o=>o(e,t)))}},s=()=>e,r={getState:s,setState:n,subscribe:t=>(o.add(t),()=>o.delete(t))};return e=t(n,s,r),r},h=t=>{return o=t,(e=(t,e,n)=>{const s=n.subscribe;return n.subscribe=(t,e,o)=>{let r=t;if(e){const s=(null==o?void 0:o.equalityFn)||d;let i=t(n.getState());r=o=>{const n=t(o);if(!s(i,n)){const t=i;e(i=n,t)}},null!=o&&o.fireImmediately&&e(i,i)}return s(r)},o(t,e,n)})?u(e):u;var e,o},m=t=>[t.setState,t.getState],f=(t,e)=>[o=>({[t]:e?{[e]:o}:o}),e=>e[t]],g=(t,e)=>(0,n.J)(a,t,e),y=(t,e)=>(0,n.J)(l,t,e),x=t=>{const e=Object.create(null);return e.value=t,{useAtomValue:()=>(e.rerender=(0,c.A)(),e.value),setValue:t=>{const o=e.value,n=e.rerender;e.value=((t,e)=>(0,s.fp)(e)?e(t):e)(o,t),o!==e.value&&(0,s.fp)(n)&&n()}}}},1579:(t,e,o)=>{"use strict";o.d(e,{g3:()=>$,az:()=>S,Mv:()=>D,j3:()=>T,ET:()=>k,_H:()=>w,rJ:()=>j,fG:()=>A,cG:()=>E});var n=o(7343),s=o(3090),r=o(2040);const i={WL_WATCH_LIST:{type:"WL_WATCH_LIST",menuTitle:"Watch List",dialogCaption:"Watch List"}};var a=o(2481);const l=(t,e)=>{if((0,n.Ep)(t.items)){for(const o of t.items)if(o.id===e)return o}else if(t.id===e)return t};let c,d,p;const u=(t,e)=>(t===p&&e===d||(p=t,d=e,c=((((t,e)=>{if((0,n.Ep)(t))for(const o of t){const t=o.items;if((0,n.Ep)(t))for(const o of t){const t=l(o,e);if(t)return t}else{const t=l(o,e);if(t)return t}}})(t,e)||{}).atomBadge||{}).setValue),c),h=t=>(e,o,n,s)=>{const r=((t,e,o)=>(0,a.A)(e)?u(t[e],o):void 0)(o,n,s);r&&t(r,e)},m=h(((t,e)=>{t((t=>({...t,is:e})))})),f=h(((t,e)=>{t((t=>({value:t.value+e,is:!0})))})),g=h(((t,e)=>{t((t=>({...t,value:e})))})).bind(null,0),y={},x=(0,n.Jr)(m,!0),v=(0,n.Jr)(m,!1),b=(0,n.Jr)(f,1),C=(0,n.Jr)(f,-1),S=t=>y[t],w=(t,e)=>{y[t]=e},A=(t,e)=>{x(y,e,t)},j=(t,e)=>{v(y,e,t)},$=(t,e)=>{b(y,e,t)},T=(t,e)=>{C(y,e,t)},k=(t,e)=>{g(y,e,t)},_={WL:i},E=(t,e)=>{_[t]=e},D=(t,e)=>{if(e.indexOf(r.RM)>0)return s.A[t];const o=(t=>_[t])(t);return o?o[e]:void 0}},5952:(t,e,o)=>{"use strict";o.d(e,{hJ:()=>J,Uv:()=>G,oB:()=>Q,xf:()=>H,LS:()=>X,GM:()=>B,J8:()=>K,sS:()=>Z});var n=o(124),s=o(2061),r=o(7343),i=o(4427),a=o(2481),l=o(2394);const c=t=>"boolean"==typeof t?t:void 0,d=(t,e,o)=>{let{id:n,isNew:s=!1}=t;return{id:n,title:e[n].menuTitle,isNew:s,atomBadge:(0,r.eU)({is:!1,value:0}),...(a=n,c=o,{onClick:(0,r.Jr)(i.ui,a,c),onBadgeClick:(0,r.Jr)(l.Fb,a,c),onBadgeClose:(0,r.Jr)(l.S3,a)})};var a,c},p=function(t,e,o){return void 0===t&&(t=[]),t.map((t=>t.id?d(t,e,o):{isInitOpen:c(t.isInitOpen),caption:t.caption,items:p(t.items,e,o)}))},u=function(t,e,o){return void 0===t&&(t=[]),t.map((t=>(0,r.Ep)(t.items)?{caption:t.caption,isInitOpen:c(t.isInitOpen),items:p(t.items,e,o)}:d(t,e,o)))},h=Object.assign,m=function(t){let{selectProps:e}=void 0===t?{}:t;return(0,r.Ep)(e)?e:[]},f=function(t){let{dialogProps:e}=void 0===t?{}:t;return e},g=(t,e,o)=>{const n=f(e),s=f(o),r=[...m(t),...m(s),...m(n)];return h(t,s,n),r.length>0&&(t.selectProps=r),t},y=(t,e)=>{const o=t[e],n=o.extends,s=(0,r.O8)(n)?((t,e)=>{const o=e.extends,n=(0,r.O8)(o)?t[o]:void 0;return g({},e,n)})(t,t[n]):{};return[o.dialogType,g(s,o)]},x=t=>(0,r.O8)(t)?t:void 0,v=(t,e,o,n)=>({id:t,caption:e,uri:`${o}${n}.json`}),b=(t,e)=>({...v(t[0],t[1],e,t[2]),jsonProp:x(t[3])}),C={df:b,id:(t,e)=>({...v(t[0],t[0],e,t[1]),jsonProp:x(t[2]),isWithInput:Boolean(t[3])}),id3:(t,e)=>({...v(t[2],t[0],e,t[1])}),s2:(t,e)=>3===t.length?b(t,e):{...v(t[0],t[2],e,t[3]),type:"two",oneCaption:t[1],twoCaption:t[2],isAddTitle:t[4]}},S=(t,e)=>{const{selectProps:o,rootUri:n,spT:s}=t||{},i=(0,r.Ep)(o)?((t,e)=>{const o=[...t];return(e.selectProps||[]).forEach((t=>{const e=t[t.length-1];(0,r.Et)(e)?o.splice(e-1,0,t):o.push(t)})),o.length>0?o:void 0})(o,e):e.selectProps,a=e.rootUri||n,l=e.spT||s;return((t,e,o)=>(0,r.Ep)(t)?{selectProps:t.reduce(((t,n)=>(t.push((0,r.Ep)(n)&&e?o(n,e):n),t)),[])}:void 0)(i,a,l&&C[l]||C.df)},w=Array.isArray,A=Object.keys,j=(t,e)=>{const{dfAddProps:o,tuples:n}=e||{};((t,e)=>{w(e)&&e.forEach((e=>{t[e[0]]={type:e[0],menuTitle:e[1],dfId:e[2]}}))})(t,n),A(t).forEach((e=>{const n=t[e],s=n.addProps||o;if(s&&n.type){const e=(t=>((t=>{const{dfId:e,mapDateDf:o,mapFrequency:n}=t;if(e){const s=o?{mapDateDf:o}:{};n&&(s.mapFrequency=n),t.dialogProps={dfProps:{...s,dfId:e}}}})(t),t.dialogProps))(n),[o,r]=y(t,s),i=S(r,e);n.dialogType=n.dialogType||o,n.dialogProps={...r,...e,...i},n.dialogProps.dfProps={...r.dfProps,...e.dfProps}}}))},$=(t,e,o)=>{const{json:n,browserType:s}=o,{menu:r,items:i,df:a}=n;j(i,a),e(s,i);const l=u(r,i,s);return t(s,l),l};var T=o(1579),k=o(240),_=o(3090),E=o(2040),D=o(4765),I=o(2111);const[L,N]=(0,r.Bu)("msBrowserLoad"),[O,M]=(0,r.Bu)("msBrowserShow"),[F,W]=(0,r.Bu)("msInitBrowser"),R=(0,r.Nv)((()=>({...L(),...O(),...F()}))),[P]=(0,r.iC)(R),B=(0,r.jo)(R,N),U=t=>{let{json:e,option:o,onCompleted:n}=t;const{browserType:s}=o;n({json:e,browserType:s})},z=t=>{const{json:e,browserType:o}=t;((t,e)=>{P(L({browserType:t,menuItems:e}))})(o,(0,a.A)(o)?$(T._H,T.cG,t):e)},V=t=>{const{alertItemId:e,caption:o,browserType:n}=t;t.alertItemId=e||o,(0,i.K$)(t),(t=>{P(L({browserType:t}))})(n)},J=t=>{(0,n.x)({option:t,uri:t.sourceMenuUrl,onFetch:U,onCompleted:z,onFailed:V,onCatch:s.A})},K=(0,r.jo)(R,M),Z=(0,r.jo)(R,W),q=(t,e)=>({alertDescr:t,alertItemId:e}),Y=t=>{(0,i.K$)(t)},G=function(t){void 0===t&&(t={});const e="string"==typeof t?{browserType:t}:t,{browserType:o}=e,n=_.A[o];o&&n?(0,T.az)(o)?P(O({browserType:e.browserType})):Promise.all([(0,D.b)(o),(0,I.A)(o)]).then((()=>(0,k.is)(n))).then((t=>{((t,e)=>{const{browserType:o}=e;(0,T.az)(o)||((0,T._H)(o,[]),P(F({elBrowser:t})))})(t,n)})).catch((()=>{Y({...e,...q("Failed to load browser.",n.caption)})})):Y({...e,...q("Browser hasn't found.","Browser")})},H=(0,r.Jr)(G,E.Vv),Q=(0,r.Jr)(G,E.yO),X=(0,r.Jr)(G,E.mU)},2481:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(3090);const s=t=>{const e=n.A[t];return void 0!==e&&!e.withoutItemCounter}},1778:(t,e,o)=>{"use strict";o.d(e,{PL:()=>a,Sf:()=>l,i8:()=>s,jE:()=>r,k5:()=>i});const n={chb:null,chart:null},s=()=>!!n.chart&&n.chart.options.zhConfig.id,r=()=>n.chart,i=(t,e,o)=>{if(t){const t=n.chb;t&&t!==e&&t.setUnchecked(),n.chb=e,n.chart=o}else n.chb=null,n.chart=null},a=t=>{const e=n.chb;!e||t&&e.chartType!==t||(e.setUnchecked(),n.chb=null,n.chart=null)},l=t=>{const e=s();e&&e==t&&(n.chart=null)}},4427:(t,e,o)=>{"use strict";o.d(e,{BK:()=>j,CM:()=>w,HP:()=>b,K$:()=>$,XJ:()=>C,i6:()=>A,ql:()=>S,ts:()=>k,ui:()=>_,uq:()=>E,zU:()=>D});var n=o(7343),s=o(3597),r=o(1778),i=o(6634),a=o(1579),l=o(2301);const[c,d]=(0,n.Bu)("msAbout","is"),[p,u]=(0,n.Bu)("mdOption"),[h,m]=(0,n.Bu)("msShowDialog"),[f,g]=(0,n.Bu)("msCloseDialog"),y=(0,n.Nv)((()=>({...c(!0),...p()}))),[x]=(0,n.iC)(y),v=t=>x(c(t)),b=(0,n.jo)(y,d),C=()=>v(!0),S=()=>v(!1),w=(t,e)=>{(0,i.h8)(t),(0,r.PL)(t),(0,a.rJ)(t,e)},A=(0,n.jo)(y,u),j=function(t,e){void 0===e&&(e={}),e.modalDialogType=t,x(p({...e}))},$=(0,n.Jr)(j,s.XB),T={},k=(0,n.jo)(y,m),_=(t,e,o)=>{(0,l.YA)(T,{type:t,browserType:e,dialogConfOr:o}).then((t=>{x(h(t))}))},E=(0,n.jo)(y,g),D=t=>{x(f({type:t.key,caption:t.props.caption}))}},6634:(t,e,o)=>{"use strict";o.d(e,{KG:()=>r,h8:()=>a,iu:()=>i});const n={chb:null},s=(t,e)=>{e?(t=>{const e=n.chb;e&&e.setUnchecked(),n.chb=t})(t):n.chb=null},r=()=>n.chb,i=(t,e,o,n)=>{o.chartType=t,o.browserType=e,s(o,n)},a=t=>{const e=n.chb;e&&e.chartType===t&&(e.setUnchecked(),n.chb=null)}},2301:(t,e,o)=>{"use strict";o.d(e,{YA:()=>i,dM:()=>r});var n=o(240),s=o(1579);const r=(t,e)=>{if(t&&t.dialogConf)return t;const o=e.split("_")[0];return(0,s.Mv)(o,e)},i=(t,e)=>{let{type:o,browserType:s,dialogConfOr:i}=e;return t[o]?Promise.resolve({key:o}):(0,n.So)(s,r(i,o)).then((e=>(t[o]=!0,{key:o,Comp:e})))}},2394:(t,e,o)=>{"use strict";o.d(e,{OR:()=>Vl,Y_:()=>_l,S3:()=>zl,YM:()=>Rl,X$:()=>Bl,Qt:()=>Ol,qr:()=>Zl,Fb:()=>Ul,Iq:()=>Kl,Te:()=>Jl,we:()=>jl,OZ:()=>Al});var n=o(3289),s=o(2823);const r=t=>{console.log("%c"+t,"color:rgb(237, 88, 19);")};var i=o(7159),a=o(7674),l=o(6634);const c=(t,e)=>{const o=(0,l.KG)(),n=t[o&&o.chartType||e],{configs:s=[]}=n||{};return{chartSlice:n,configs:s}},d=t=>e=>e.zhConfig.id!==t,p=t=>e=>e.zhConfig.id===t;var u=o(3597),h=o(4427),m=o(1778),f=o(3730),g=o(1852),y=o(3090),x=o(1315),v=o(7599),b=o(4558),C=o(9495),S=o(6736),w=o(6984);const A=()=>Object.create(null),j=()=>{const t=(0,w.A)(A),e=(0,x.hb)(((e,o)=>{t[(t=>"chart"+t)(e)]=o||null}),[]);return[t,e]};var $=o(391);const T=t=>(0,x.Kr)((()=>{const e=(t=>t&&t<=635)(t)?{width:t}:(0,$.$O)(635,365),o=e.width;return[e,o,o>470?470:365]}),[]);var k=o(2543);const _=[(0,k.z7)("p1","Items"),(0,k.z7)("p2","Sort By, ASC"),(0,k.z7)("p3","Resize")],E=(t,e)=>{let{onMinWidth:o,onInitWidth:n,onPlusWidth:s,onMinusWidth:r,onFit:i,onShowCaptions:a,onRemoveAll:l,onSortBy:c,onCompareTo:d}=e;const p=[(0,k.VD)("Remove All",l),(0,k.VD)("Show Caption",a,!1)];return t&&p.push((0,k.VD)("CompareTo",d)),(0,k.W1)(b.aw,170,2,{p0:_,p1:p,p2:[(0,k.VD)("Value",(0,x.Jr)(c,"_value")),(0,k.VD)("Percent",(0,x.Jr)(c,"_percentAbs")),(0,k.VD)("Delta",(0,x.Jr)(c,"_deltaAbs")),(0,k.VD)("Reverse",c)],p3:[(0,k.VD)("to MinWidth",o,!1),(0,k.VD)("to InitialWidth",n,!1),(0,k.VD)("+10px to Width",s,!1),(0,k.VD)("-10px to Width",r,!1),(0,k.VD)("Fit Items to Width",i,!1)]})},D=Object.keys,I=(t,e)=>D(t).reduce(((o,n)=>{const s=t[n];return s?(e(s),++o):o}),0),L=function(t,e){for(var o=arguments.length,n=new Array(o>2?o-2:0),s=2;s{const o=(0,x.ZC)(t);o&&o[e](...n)}},N=t=>{(0,x.fp)(t.showCaption)&&t.showCaption()},O=(t,e,o,n,s,r,i)=>{const a=(0,x.li)(),l=(0,x.li)(),{onSortBy:c,onRemoveAll:d}=e,[p,u]=(0,x.Kr)((()=>[t=>{I(r,(t=>e=>{(0,x.fp)(e.reflowChart)&&e.reflowChart(t-36)})(t))},()=>{I(r,N)}]),[]),h=(0,x.Kr)((()=>()=>{const{width:t}=(0,x.hC)(a)||{};t&&p(parseInt(t,10))}),[]),m=(0,x.Kr)((()=>E(t,{onMinWidth:L(l,"toWidth",n,!0),onInitWidth:L(l,"toWidth",o,!0),onPlusWidth:L(l,"resizeBy",s),onMinusWidth:L(l,"resizeBy",-s),onFit:h,onShowCaptions:u,onSortBy:c,onRemoveAll:d,onCompareTo:i})),[t]);return[a,l,m,p]},M=(t,e,o)=>(0,x.Kr)((()=>[t=>{o(t,!0)},t=>{o(t,!1)}]),[]),F=(t,e)=>(0,x.hb)((o=>{const n=[],s=I(t,(t=>{(0,x.fp)(t.compareTo)&&n.push(t.compareTo(o))})),r=s-n.filter(Boolean).length;return s>0&&0===r&&e(n),r}),[]),W=(0,b.Dq)("item-container"),R=t=>[t?b.mL:b.JS,(0,b.PX)(W,[t,"show-cont"])];var P=o(2336),B=o(8203);const U=Number.isNaN,z=Object.assign,V=t=>{z(t,{id:null,deltaStep:1,countStep:0})};const J=class{constructor(t){let{elementRef:e,initWidth:o,minWidth:n,maxWidth:s,step:r=10,onResizeAfter:i}=t;this.elementRef=e,this.step=r,this.onResizeAfter=i,this.initWidth=o,this.minWidth=n,this.maxWidth=s,this.minDelta=n-o,this.maxDelta=s-o,this.delta=0,V(this),this.hStartResizeLeft=(0,x.Jr)(this._startResize,this._resizeLeft),this.hStartResizeRight=(0,x.Jr)(this._startResize,this._resizeRight)}_increaseDeltaStep=()=>{this.countStep+=1,this.countStep>30?this.deltaStep=3:this.countStep>15&&(this.deltaStep=2),(this.maxDelta-this.delta<20||this.delta-this.minDelta<20)&&(this.deltaStep=1)};_getStyle=()=>(0,x.hC)(this.elementRef)||{};_setWidth=t=>{this._getStyle().width=t+"px"};_getWidth=()=>parseInt(this._getStyle().width,10);_onResizeAfter=()=>{const{onResizeAfter:t}=this;(0,x.fp)(t)&&t(this._getWidth())};clearInterval=()=>{clearInterval(this.id)};toWidth=(t,e)=>{t>=this.minWidth&&t<=this.maxWidth&&(this.delta=t-this.initWidth,this._setWidth(t),e&&this._onResizeAfter())};resizeBy=t=>{t<0&&this.delta>this.minDelta||t>0&&this.delta{(0,S.P0)(t)&&(t.stopPropagation(),this.resizeBy(-this.step))};_resizeLeft=()=>{this.resizeBy(-this.deltaStep),this._increaseDeltaStep()};hKdRight=t=>{(0,S.P0)(t)&&(t.stopPropagation(),this.resizeBy(this.step))};_resizeRight=()=>{this.resizeBy(this.deltaStep),this._increaseDeltaStep()};_updateDelta=()=>{const t=this._getWidth();U(t)||(this.delta=t-this.initWidth)};_startResize=t=>{null!==this.id&&this._stopResize(),this._updateDelta(),this.id=setInterval(t,5)};_stopResize=()=>{this.clearInterval(),V(this)};hStopResize=()=>{this._stopResize(),this._onResizeAfter()}},K=t=>{let{refEl:e,...o}=t;const n=(0,w.A)((()=>new J(o)));return(0,x.Yn)(e,(()=>({toWidth:n.toWidth,resizeBy:n.resizeBy})),[]),(0,x.vJ)((()=>()=>n.clearInterval()),[]),[n.hStartResizeLeft,n.hStartResizeRight,n.hStopResize,n.hKdLeft,n.hKdRight]};var Z=o(540),q=o(4848);const Y=t=>{let{style:e,title:o,startResize:n,stopResize:s,onKeyDown:r}=t;return(0,q.jsx)("button",{type:"button",className:"bt-resize not-selected",style:e,title:o,onMouseDown:n,onMouseUp:s,onKeyDown:r,onTouchStart:n,onTouchEnd:s,children:(0,q.jsxs)(Z.A,{w:"12",strokeWidth:"2",strokeLinecap:"round",fill:"none",children:[(0,q.jsx)("path",{d:"M 1,6 L 11,6"}),(0,q.jsx)("path",{d:"M 6,2 L 1,6 6,10"})]})})},G={display:"inline-block"},H={marginLeft:10},Q={...H,transform:"rotate(180deg)"},X=t=>{const[e,o,n,s,r]=K(t);return t.isBts?(0,q.jsxs)("div",{style:{...G,...t.style},children:[(0,q.jsx)(Y,{style:H,title:"Resize container to left",startResize:e,stopResize:n,onKeyDown:s}),(0,q.jsx)(Y,{style:Q,title:"Resize container to right",startResize:o,stopResize:n,onKeyDown:r})]}):null};var tt=o(509),et=o(4407),ot=o(8678),nt=o(972),st=o(1327),rt=o(652),it=o(9195);const at={display:"flex",alignItems:"center",marginTop:8},lt={...it.le,width:120,marginLeft:8},ct={marginTop:6},dt=t=>{let{refEl:e,initialValue:o,msgErr:n,onTest:s,onEnter:r}=t;return(0,q.jsxs)("div",{children:[(0,q.jsxs)("label",{style:at,children:[(0,q.jsx)(st.t8,{children:"CompareTo:"}),(0,q.jsx)(rt.A,{refEl:e,style:lt,initialValue:o,placeholder:"DD-MM-YYYY",errorMsg:"DD-MM-YYYY",onTest:s,onEnter:r})]}),n&&(0,q.jsx)("div",{style:ct,children:(0,q.jsx)("span",{style:it.KV,children:n})})]})},pt={position:"absolute",top:38,left:6,zIndex:20,width:"auto",padding:"5px 10px 12px 10px",backgroundColor:"inherit",border:"2px solid #1b2836",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 5px",cursor:"auto"},ut=t=>{let{isShow:e,onCompareTo:o,onClose:n}=t;const s=(0,et.C)(e),[r,i]=(0,x.J0)(""),a=(0,x.hb)((t=>{if((0,ot.r$)(t)){const e=o(t);i(0!==e?`No ${e} data for ${t}`:"")}}),[o]);return(0,q.jsx)(nt.A,{isShow:e,style:pt,onClose:n,children:(0,q.jsx)(dt,{refEl:s,msgErr:r,onTest:ot.r$,onEnter:a})})};var ht=o(434),mt=o(6882),ft=o(4616);let gt;const yt=t=>{gt=t};var xt=o(7222),vt=o(8376),bt=o(4250),Ct=o(4867);const St=()=>{const t=(0,x.li)(),e=(0,x.hb)((e=>{const o=(0,x.ZC)(t);return o?o._updateDateTo(e):void 0}),[]);return[t,e]},wt=(t,e,o)=>(0,x.Kr)((()=>[n=>{n.chartType=e,o(!0,n,t())},n=>{n.chartType=e,o(!1,n,t())}]),[]),At=(t,e)=>{const[o,n]=(0,x.J0)(!0);return[o,...(0,x.Kr)((()=>[()=>{const o=t();o&&(o.zhShowCaption(),n(!0),e(!0))},()=>{const o=t();o&&(o.zhHideCaption(),n(!1),e(!1))}]),[])]},jt=()=>{const[t,e]=(0,x.J0)([]),[o,n]=(0,x.Kr)((()=>[(t,o)=>{e((e=>(e.push({config:t,id:o}),[...e])))},t=>{e((e=>e.filter((e=>e.id!==t))))}]),[]);return[t,o,n]},$t=()=>{const[t,e]=(0,x.J0)([]),o=(0,x.hb)((t=>{e((e=>((t,e)=>-1===t.indexOf(e)?[e,...t]:t.filter((t=>t!==e)))(e,t)))}),[]);return[t,o]},Tt=t=>(0,x.Kr)((()=>[e=>{const o=t();o&&o.zhAddDetailChart(e)},e=>{const o=t();o&&o.zhRemoveDetailChart(e)}]),[]),kt={position:"absolute",left:5,bottom:0,color:"#909090",fontSize:"11px"},_t=t=>{let{ds:e}=t;return(0,q.jsx)("div",{style:kt,children:e||""})},Et=t=>{const[e,o]=(0,x.J0)((()=>(0,q.jsx)(_t,{ds:t}))),n=(0,x.hb)((t=>{o((0,q.jsx)(_t,{ds:t}))}),[]);return[e,n]};var Dt=o(2357);const It=()=>{};class Lt extends x.uA{static defaultProps=(()=>({onError:It}))();state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,e){this.props.onError()}render(){const{FallbackComp:t,children:e}=this.props;return this.state.hasError?t:e}}const Nt=Lt,Ot=t=>["Error occured during rendering",t].filter(Boolean).join(" ")+".",Mt=t=>{let{isShow:e,style:o,msg:n}=t;return e?(0,q.jsx)("div",{className:"err-msg",style:o,children:Ot(n)}):null};var Ft=o(2908),Wt=o.n(Ft);const Rt={position:"relative",zIndex:1},Pt=t=>"function"==typeof t,Bt=t=>{let{isShowAbs:e=!0,absComp:o=null,config:n,onLoaded:s,onWillUnLoaded:r}=t;const i=(0,x.li)();return(0,x.Nf)((()=>{if(!n)throw new Error("Chart's config must be specified.");const t=new(Wt().Chart)(i.current,n);return t&&Pt(s)&&s(t),()=>{Pt(r)&&r(t),t&&t.destroy()}}),[]),(0,q.jsxs)("div",{style:Rt,children:[(0,q.jsx)("div",{ref:i}),e&&o]})},Ut=(t,e,o,n)=>(0,w.A)((()=>({onExport:()=>{(0,ft.Jg)({chart:t()})},onFullScreen:()=>t().fullscreen.open(),onPrint:()=>t().print(),onX2H:()=>t().zhToggle2H(),onMinMax:()=>t().zhToggleMinMaxLines(),onZoom:()=>{(0,x.fp)(e)&&e({chart:t()})},onCopy:()=>o(t()),onPasteTo:()=>n(t())})));var zt=o(4874);const Vt=t=>{let{is:e=!0,isMenu:o,className:n,style:s,caption:r,onClick:i}=t;return e?(0,q.jsxs)(zt.A,{className:(0,b.PX)("not-selected bt bt-tab",n),style:s,onClick:i,children:[r,o&&(0,q.jsx)("span",{className:"arrow-down"})]}):null},Jt={position:"absolute",zIndex:1010,top:30,left:-5,backgroundColor:"inherit",stroke:"inherit",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0 0 0 5px"},Kt=(0,b.zq)(),Zt=t=>{const{getChart:e,style:o,isShow:n,onClose:s}=t,r=(t=>{if(!(0,x.fp)(t))return!1;const e=t();if(!e||!(0,x.fp)(e.zhGetFromToDates))return!1;const{from:o,to:n}=e.zhGetFromToDates({format:ot.Ch});return!(o===n&&"01-01-1970"===n)})(e),i=(0,x.Kr)((()=>((t,e)=>{return(0,k.W1)(b.aw,125,2,{p0:[(0,k.z7)("p1","Chart"),(0,x.fp)(t.onAddToWatch)?(0,k.VD)("Add To",t.onAddToWatch):void 0,(o=t.config,((o.yAxis||{}).plotLines||[]).length>0?(0,k.VD)("MinMax",t.onMinMax,!1):void 0),e?(0,k.VD)("Zoom",t.onZoom):void 0,(0,k.VD)("Copy",t.onCopy),(0,k.VD)("PasteTo",t.onPasteTo)].filter(Boolean),p1:[(0,k.VD)("x2 Height",t.onX2H,!1),(0,k.VD)("Full Screen",t.onFullScreen),(0,k.VD)("Export As",t.onExport),(0,k.VD)("Print",t.onPrint)]});var o})(t,r)),[r]);return(0,q.jsx)(tt.A,{isShow:n,className:Kt,style:{...Jt,...o},model:i,onClose:s})};var qt=o(9901);const Yt="t1";var Gt=o(704),Ht=o(6517);const Qt=function(t,e){void 0===e&&(e=1);const[o,n]=(0,Ht.ar)(t),s=o.length,r=parseInt(e,10)-1,i=[];if(0===s||!(0,Ht.Et)(r)||r>s)return i;if(r<=0)return t;let a=(0,Gt.default)(0),l=0;for(;l=r&&(l!==r&&(a=a.minus(o[l-e])),i.push([n[l],parseFloat(a.div(e).toFixed(2))]));return i},Xt=t=>{const e=t[4],o=t[2]||e,n=t[3]||e,s=(0,Gt.default)(o).plus(n).plus(e).div(3),r=s.times(t[5]);return[s,r,!(!t[2]||!t[3])]},te=(t,e,o,n,s)=>({x:t,y:e,isNegative:o,tp:parseFloat(n.toFixed(4)),rmf:parseFloat(s.toFixed(4))}),ee=(t,e)=>{const o=[],n=parseFloat(e)+1;let s=(0,Gt.default)(0),r=(0,Gt.default)("0.0001"),i=!1,a=0,l=t.length,c=0;for(;c{const e=[],o=[],n=[];let s,r,i,a,l,c,d=1,p=t.length;for(;d0?"rgba(76, 175, 80, 0.75)":"rgba(244, 67, 54, 0.75)"}),c=(0,oe.W7)(s[4]-s[1],4),n.push({x:i,y:c});return{dataMom:e,dataAth:o,dataSum:n}},se=(t,e)=>{const o=(0,Gt.default)(10).pow(e);return[t.map((t=>(t.y=parseFloat((0,Gt.default)(t.y).times(o).toString()),t))),parseFloat(o.toString())]},re=t=>{const e=t.length;return e?parseFloat(t.reduce(((t,e)=>t.add(e)),(0,Gt.default)(0)).div(e).toFixed()):NaN},ie=(t,e,o)=>{let n,s=2/(e+1),r=[o||re(t.slice(0,e))],i=t.length;for(n=1;n{let o,n=[0],s=[1e-14],r=t.length;for(o=1;o=0?e:0),s.push(e<0?-e:0)}return function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;no.map((e=>e[t])),a=o[0].length;for(s=0;s100-100/(1+t/e)),ie(n,2*e-1),ie(s,2*e-1))},le=Array.isArray,ce=t=>(e,o,n)=>{let{rc:s,sc:r}=n;if(!le(e)||!le(o))return[];const i=(t=>{const e=Object.create(null),o=(t[0]||{}).c?"c":"category";return t.forEach((t=>{t.isNull||(e[t[o]]=t)})),e})(o);return e.map((e=>{const{category:o,color:n,status:a}=e;return{y:t(e,i[o]),id:o,c:o,color:n===r?s:n,status:a}}))};var de=o(3326);const pe=(t,e)=>parseFloat((0,Gt.default)(t).div(e).toFixed(2));var ue=o(1417);const he=ce(((t,e)=>e&&null!==e.y?(0,de.A)(t.y,e.y):0)),me=ce(((t,e)=>e&&null!==e.y&&0!==e.y?pe(t.y,e.y):0)),fe=ce(((t,e)=>(0,ue.A)((e||{}).y,t.y))),ge=Qt,ye=ee,xe=ne,ve=se;var be=o(9649),Ce=o(5248);const Se=(t,e)=>(o,n)=>{const{d1:s,d2:r,sc:i}=(t=>{const e=t.series,o=e[0];return{d1:o.data,d2:(e[1]||{}).data||[],sc:o.color}})(o);if(0!==r.length){const a=t(s,r,{rc:n,sc:i});return o.addSeries({name:e,data:a,color:n},!0,!0),(t=>{const e=t.yAxis[0],{dataMin:o,min:n}=e.getExtremes();o{const e=t.series;e[0].hide(),e[1].hide()})(o),!0}return!1},we=Se(me,"Rate S1/S2"),Ae=Se(he,"Diff S1-S2"),je=Se(fe,"ROC S1 from S2"),$e=(t,e,o)=>(n,s)=>{const{id:r,period:i}=s,a=n.series[0].data,l=e(a,i),c=`${t}(${i})`,d={zhValueText:r,lineWidth:2,data:l,name:c};return l.length>0?o?(n.zhAddSeriaToYAxis({name:t,data:l,...o},(0,Ce.wo)({name:c,zhValueText:r,lineWidth:2}))||{}).color:((t,e)=>{const o=(0,Ce.wo)(e);return(t.addSeries(o,!0,!0)||{}).color})(n,d):console.log("It seems, there are not enough data for "+c)},Te=$e("SMA",ge),ke=$e("RSI",((t,e)=>{const[o,n]=(0,Ht.ar)(t);return(0,Ht.dG)(n.slice(e),ae(o,e).slice(e))}),{min:0,max:100});var _e=o(1205),Ee=o(6409);const De=(0,b.hI)("circle"),Ie=(t,e)=>o=>(0,q.jsx)(zt.A,{...(0,v.o$)(o,e),className:De,style:o.style,onClick:o.onClick,children:(0,q.jsx)(Ee.A,{w:"20",strokeWidth:"2",strokeLinecap:"round",children:t})}),Le=Ie((0,q.jsx)("path",{d:"M 4,10 L 16,10"}),"Subtract"),Ne=Ie((0,q.jsx)("path",{d:"M 10,4 L 10,16 M 4,10 L 16,10"}),"Add"),Oe={marginLeft:-8,paddingBottom:4,lineHeight:"unset"},Me={display:"inline-block",width:"auto",height:32,paddingTop:4,paddingRight:8},Fe={display:"inline-block",fontWeight:"bold"},We={...Fe,width:48},Re={width:56,marginRight:12},Pe=t=>{let{refEl:e,isBtAdd:o=!0,style:n,captionStyle:s,caption:r,initValue:i,maxLength:a=3,onAdd:l}=t;return(0,q.jsxs)("div",{style:n,children:[(0,q.jsx)(st.W,{style:{...We,...s},children:r}),(0,q.jsx)(_e.A,{refEl:e,type:"number",style:Re,initValue:i,maxLength:a,onEnter:l}),o?(0,q.jsx)(Ne,{onClick:l}):null]})},Be={paddingTop:5},Ue=t=>({color:t,paddingLeft:8}),ze=t=>{let{configs:e,onRemove:o}=t;return e.map((t=>{let{id:e,color:n}=t;return(0,q.jsxs)("div",{style:Be,children:[(0,q.jsx)(Le,{onClick:()=>o(e)}),(0,q.jsx)("span",{style:Ue(n),children:e})]},e)}))},Ve=t=>{let{refEl:e,caption:o,initValue:n,configs:s,onAdd:r,onRemove:i}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Pe,{refEl:e,caption:o,initValue:n,onAdd:r}),(0,q.jsx)(ze,{configs:s,onRemove:i})]})},Je=t=>{let{caption:e,config:o,getChart:n,crInitialPeriod:s,addTaTo:r}=t;const i=(0,w.A)((()=>s(o))),a=(0,x.li)(),[l,c]=(0,x.J0)([]);return(0,q.jsx)(Ve,{refEl:a,caption:e,initValue:i,configs:l,onAdd:()=>{const t=(0,x.y5)(a),o=((t,e)=>`${t}(${e})`)(e,t);if(!((t,e)=>!!t.find((t=>t.id===e)))(l,o)){const e=n(),s=r(e,{id:o,period:t});s&&c([...l,{id:o,color:s}])}},onRemove:t=>{((t,e)=>{const o=t.series;for(const t of o)if(t.userOptions.zhValueText===e)return t.remove(!0),!0;return!1})(n(),t)&&c(l.filter((e=>e.id!==t)))}})},Ke=Array.isArray,Ze=(t,e,o)=>n=>{let{config:s,getChart:r}=n;return(0,q.jsx)(Je,{caption:t,config:s,getChart:r,crInitialPeriod:e,addTaTo:o})},qe=(t,e)=>o=>function(t,e,o,n){void 0===n&&(n=150);const s=(t=>(((t||{}).series||[])[0]||{}).data)(t);return Ke(s)?s.length>n?o:e:"0"}(o,t,e),Ye=Ze("RSI",qe("14","30"),ke),Ge=Ze("SMA",qe("12","50"),Te),He=t=>({id:t,color:"#90ed7d"}),Qe=t=>{let{getChart:e,onAddMfi:o,onRemoveMfi:n}=t;const s=(0,x.li)(),[r,i]=(0,x.J0)([]);return(0,q.jsx)(Ve,{refEl:s,caption:"MFI",initValue:30,configs:r,onAdd:()=>{const t=(0,x.y5)(s),n="MFI("+t+")";var a;if(a=n,!r.find((t=>t.id===a))){const s=((t,e,o)=>{const n=t.options.zhPoints,[s,r]=ye(n,e),i=0!==r?" Not Full Data HL:"+r:"";return(0,be.Ng)(o,o+i,s)})(e(),t,n);s&&(o(s,n),i([...r,He(n)]))}},onRemove:t=>{n(t),i(r.filter((e=>e.id!==t)))}})},Xe={...Fe,padding:"0 8px 6px 0"},to=t=>{let{is:e,styleCaption:o,caption:n,onMinus:s,onPlus:r}=t;return(0,q.jsxs)("div",{children:[(0,q.jsx)(st.W,{style:{...Xe,...o},children:n}),e?(0,q.jsx)(Le,{onClick:s}):(0,q.jsx)(Ne,{onClick:r})]})},eo="MOM_ATH",oo=(t,e,o)=>{const[n,s,r]=(0,C.o)(),[i,a]=(0,x.Kr)((()=>[()=>{const o=(t=>{const e=t.options.zhPoints;return(0,be.V9)(xe(e))})(t());o&&(e(o,eo),s())},()=>{o(eo),r()}]),[t,e,o]);return[n,i,a]},no=t=>{let{getChart:e,onAddMfi:o,onRemoveMfi:n}=t;const[s,r,i]=oo(e,o,n);return(0,q.jsx)(to,{is:s,caption:"MOM(1) & ATH",onPlus:r,onMinus:i})},so=t=>(0,x.Kr)((()=>{const e=!!t.zhIsMfi,{btTitle:o}=(t.zhMiniConfigs||[])[0]||{};return[(t.zhConfig||{}).isWithoutSma?"":[Ge,"sma",Yt],e?[Qe,"mfi","t2"]:"",t.zhIsMomAth?[no,"ath","t2"]:"",e||-1!==(o||"").indexOf("Volume")?[Ye,"rsi",Yt]:""].filter(Boolean)}),[t]),ro=t=>t&&(0,x.fp)(t.setVisible),io=(t,e)=>{const o=(0,x.li)(),[n,s,r]=(0,C.o)();return[n,(0,x.hb)((function(){for(var n=arguments.length,r=new Array(n),i=0;i{let{s:o}=e;const n=(0,x.Et)(o)?o-1:0;return t?.series.length>n?n:0})(m,a),e=p(m.series[t].data,l);(0,x.nl)(o,m.zhAddSeriaToYAxis({data:e,color:a.color||d,name:u},a))}s()}}),[e]),(0,x.hb)((()=>{const e=t[3],n=(0,x.ZC)(o);ro(n)&&(e?(n.yAxis.remove(),(0,x.nl)(o,null)):n.setVisible(!1),r())}),[])]},ao=t=>e=>{let{caption:o,configArr:n,getChart:s}=e;const[r,i,a]=io(n,s);return(0,q.jsx)(t,{is:r,caption:o,onPlus:i,onMinus:a})};var lo=o(5668),co=o(66),po=o(7144);const uo="#2b908f",ho={width:56,marginRight:12},mo={width:36},fo={paddingBottom:6},go={verticalAlign:"middle"},yo={paddingLeft:6},xo={paddingLeft:8},vo={paddingLeft:10},bo={...Fe,width:85,paddingLeft:5},Co=t=>({color:t,paddingLeft:8,fontWeight:"bold"}),So={...b.mL,...go,...vo},wo={...b.mL,...go,...vo},Ao=t=>{let{initValue:e,onChangePeriod:o,onPlus:n}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_e.A,{style:ho,type:"number",initValue:e,min:1,max:999,maxLength:3,onChange:o,onEnter:n}),(0,q.jsx)(Ne,{style:b.mL,onClick:n})]})},jo=t=>{let{color:e,period:o,onMinus:n}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Le,{style:b.mL,onClick:n}),(0,q.jsx)("span",{style:Co(e),children:o})]})},$o=(t,e)=>o=>(0,x.nl)(t,parseInt(o,10)||e),To=ao((t=>{let{is:e,caption:o,dfColor:n=uo,onMinus:s,onPlus:r}=t;const i=(0,x.li)(n),a=(0,x.li)(1),l=(0,x.li)("column"),c=(0,x.li)(1),d=(0,x.li)(!1),p=$o(a,1),u=$o(c,1),h=()=>r({s:(0,x.ZC)(c),color:(0,x.ZC)(i),type:(0,x.ZC)(l),zIndex:(0,x.ZC)(d)?void 0:-1},(0,x.ZC)(a));return(0,q.jsx)(po.A,{caption:o,className:b.Qd,style:Oe,ocStyle:Me,CompAfter:e?(0,q.jsx)(jo,{color:(0,x.ZC)(i),period:(0,x.ZC)(a),onMinus:s}):(0,q.jsx)(Ao,{initValue:(0,x.ZC)(a),onChangePeriod:p,onPlus:h}),children:(0,q.jsxs)("div",{style:xo,children:[(0,q.jsx)(lo.A.RowInputColor,{style:b.mL,initValue:uo,onEnter:t=>(0,x.nl)(i,t)}),(0,q.jsx)(co.A,{style:So,caption:"Column",captionStyle:yo,chbCn:b.w_,btCn:b.eT,initialValue:!0,onToggle:t=>(0,x.nl)(l,t?"column":"spline")}),(0,q.jsxs)("div",{style:fo,children:[(0,q.jsx)(lo.A.RowInputText,{rootStyle:b.mL,caption:"For Seria",captionCn:b.eT,captionStyle:bo,inputStyle:mo,type:"number",initValue:1,min:1,max:9,maxLength:1,onChange:u,onEnter:h}),(0,q.jsx)(co.A,{style:wo,caption:"OnTop",captionStyle:yo,chbCn:b.w_,btCn:b.eT,onToggle:t=>(0,x.nl)(d,t)})]})]})})})),ko=ao(to);var _o=o(3569);const Eo="#90ed7d",Do={width:265,margin:8},Io=["ROC",Eo,qt.YV,!0],Lo=["DIFF",Eo,qt.iv,!0],No=["NORM",Eo,qt.S8,!1],Oo=(0,q.jsxs)(q.Fragment,{children:["Normalize (100*y",(0,q.jsx)("sub",{children:"t"}),"/y",(0,q.jsx)("sub",{children:"0"}),")"]}),Mo=()=>{},Fo=t=>{let{isShow:e,style:o,config:n,getChart:s=Mo,onClose:r,onAddMfi:i,onRemoveMfi:a}=t;const l=so(n);return(0,q.jsx)(nt.A,{style:{...Jt,...o},isShow:e,onClose:r,children:(0,q.jsxs)("div",{style:Do,children:[(0,q.jsx)(To,{caption:"Changes Between",configArr:Lo,getChart:s}),(0,q.jsx)(To,{caption:"Growth Rate",configArr:Io,getChart:s}),(0,q.jsx)(ko,{caption:Oo,configArr:No,getChart:s}),l.map((t=>{let[e,o,r]=t;const l=r===Yt?{config:n}:{onAddMfi:i,onRemoveMfi:a};return(0,_o.createElement)(e,{...l,key:o,getChart:s})}))]})})},Wo="#2b908f",Ro={...Me,marginRight:6},Po={paddingLeft:10},Bo=t=>{let{caption:e,dfColor:o=Wo,mathFn:n,getChart:s}=t;const[r,i]=((t,e,o)=>{const[n,s]=(0,x.J0)(!1),[r,i]=(0,bt.A)(o);return[n?null:(0,q.jsx)(Ne,{onClick:()=>{s(t(e(),i()))}}),r]})(n,s,o);return(0,q.jsx)(po.A,{caption:e,className:b.Qd,style:Oe,ocStyle:Ro,CompAfter:r,children:(0,q.jsx)(lo.A.RowInputColor,{style:Po,initValue:o,onEnter:i})})},Uo={...Fe,width:120},zo={width:46,marginRight:12},Vo=t=>{let{refEl:e,caption:o,initValue:n,min:s,max:r,maxLength:i,onAdd:a}=t;const[l,c]=(0,x.J0)(!0),d=l?()=>{c(!a())}:void 0;return(0,q.jsxs)("div",{children:[(0,q.jsx)(st.W,{style:Uo,children:o}),(0,q.jsx)(_e.A,{refEl:e,type:"number",style:zo,initValue:n,maxLength:i,min:s,max:r,onEnter:d}),l&&(0,q.jsx)(Ne,{onClick:d})]})},Jo={margin:"4px 10px 8px 8px"},Ko=t=>{let{style:e,isShow:o,onClose:n,getChart:s,config:r}=t;const i=(0,w.A)((()=>(t=>!t?.plotOptions?.bar?.dataLabels?.enabled)(r))),a=(0,x.li)(0);return(0,q.jsx)(nt.A,{style:{...Jt,...e},isShow:o,onClose:n,children:(0,q.jsxs)("div",{style:Jo,children:[(0,q.jsx)(Bo,{caption:"Rate (S1/S2)",mathFn:we,getChart:s}),(0,q.jsx)(Bo,{caption:"Diff (S1-S2)",mathFn:Ae,getChart:s}),(0,q.jsx)(Bo,{caption:"ROC (S1 from S2)",mathFn:je,getChart:s}),i&&(0,q.jsx)(Vo,{refEl:a,caption:"S1*PowerOf 10",initValue:0,min:-9,max:9,maxLength:2,onAdd:()=>{const t=parseFloat((0,x.y5)(a));if((0,x.Et)(t))return((t,e)=>{const o=t.series[0],n=o.getName(),[s,r]=ve(o.data,e);o.update({data:s,name:`${n}*${r}`},!0)})(s(),t),!0}})]})})};var Zo=o(2089);const qo={margin:"6px 2px 8px 6px"},Yo={padding:0},Go={paddingTop:5,paddingLeft:5},Ho={width:void 0},Qo=t=>{let{style:e,isShow:o,onClose:n,getChart:s,config:r}=t;const i=(0,x.li)(),[a,l,c]=(0,x.Kr)((()=>[()=>{s().zhDataLabels(!0)},()=>{s().zhDataLabels(!1)},()=>{const t=parseFloat((0,x.y5)(i));t>0&&t<21&&s().zhSetPointWidth(t)}]),[]);return(0,q.jsx)(nt.A,{style:{...Jt,...e},isShow:o,onClose:n,children:(0,q.jsxs)("div",{style:qo,children:[(0,q.jsx)(Zo.A,{caption:"Data Labels",style:Yo,chbCn:b.w_,btCn:b.eT,onCheck:a,onUnCheck:l}),(0,q.jsx)(Pe,{refEl:i,caption:"Point Width",isBtAdd:!1,style:Go,captionStyle:Ho,initValue:4,maxLength:2,onAdd:c})]})})},Xo=(0,b.zq)(),tn=t=>{let{isShow:e,style:o,onClose:n,configs:s,onClickItem:r}=t;const i=(0,x.Kr)((()=>((t,e)=>(0,k.W1)(b.aw,160,1,{p0:(t||[]).map((t=>{let{btTitle:o}=t;return(0,k.VD)(o,(0,x.Jr)(e,o),!1)}))}))(s,r)),[s,r]);return(0,q.jsx)(tt.A,{isShow:e,className:Xo,style:{...Jt,...o},model:i,onClose:n})},en=Array.isArray,on=(0,$.WB)()?75:65,nn=t=>({top:on,left:t}),sn=t=>({left:t}),rn=sn(8),an=nn(5),ln=sn(95),cn=nn(75),dn=sn(115),pn=sn(230),un=sn(190),hn=nn(175),mn={left:350,width:68},fn=nn(290),gn=["area","spline","line"],yn=function(t){let{type:e,categories:o}=void 0===t?{}:t;return"category"===e&&en(o)},xn=(t,e,o,n,s,r,i,a,l,c,d)=>{const{zhConfig:p,info:u,zhMiniConfigs:h}=o||{},{isWithoutIndicator:m,itemConf:f,legend:g}=p||{},[y,x]=(0,Ct.A)(),[v,b]=(0,Ct.A)(),[C,S]=(0,Ct.A)(),[w,A]=(0,Ct.A)(),j=[],$=(0,q.jsx)(Vt,{is:!!u,caption:"Info",onClick:s});if(t)return[$];j.push((0,_o.createElement)(Zt,{...d,isShow:C,style:{...hn,...e(C,un)},config:o,getChart:n,onAddToWatch:f?i:void 0,onClose:S,key:"fn"}));const T=(0,q.jsx)(Vt,{is:!!g,style:dn,caption:"Legend",onClick:r});let k=null,_=null;if(((t,e)=>{let{series:o,xAxis:n}=t;return!e&&en(o)&&o[0]&&(-1!==gn.indexOf(o[0].type)||yn(n))})(o,m)){let t="Indicator";yn(o.xAxis)?(t="Math",j.push((0,q.jsx)(Ko,{isShow:y,style:an,config:o,getChart:n,onClose:x},"ind2")),j.push((0,q.jsx)(Qo,{isShow:v,style:cn,config:o,getChart:n,onClose:b},"appearance")),_=(0,q.jsx)(Vt,{style:ln,caption:"Appearance",isMenu:!0,onClick:b})):j.push((0,q.jsx)(Fo,{isShow:y,style:an,config:o,getChart:n,onAddMfi:a,onRemoveMfi:l,onClose:x},"ind")),k=(0,q.jsx)(Vt,{style:rn,caption:t,isMenu:!0,onClick:x})}let E=null;h&&h.length&&(E=(0,q.jsx)(Vt,{style:mn,caption:"Mini",isMenu:!0,onClick:A}),j.push((0,q.jsx)(tn,{isShow:w,style:{...fn,...e(w,fn)},configs:h,onClickItem:c,onClose:A},"mini")));return[$,k,_,T,(0,q.jsx)(Vt,{style:_?pn:un,caption:"Fn",isMenu:!0,onClick:S}),E,j]},vn="with-scroll-x",bn=(0,b.mg)(vn),Cn=`${vn}__bt-r`,Sn={left:440,width:36},wn=t=>{let{hasError:e,config:o,onMiniChart:n,getChart:s,onAddMfi:r,onRemoveMfi:i,onClickLegend:a,onAddToWatch:l,onCopy:c,onPasteTo:d,onZoom:p,onClickInfo:u}=t;const h=(0,x.li)(),m=Ut(s,p,c,d),[f,g]=(0,x.Kr)((()=>[(t,e)=>{if(!t)return;const o=(0,x.ZC)(h),{scrollLeft:n}=o||{};return(0,x.Et)(n)?{left:e.left-n}:void 0},()=>{((t,e)=>{const o=(0,x.ZC)(t);(t=>t&&t.scrollWidth>t.clientWidth)(o)&&((0,x.fp)(o.scroll)?o.scroll({left:e,behavior:"smooth"}):o.scrollLeft=e)})(h,0)}]),[]),[y,v,b,C,S,w,A]=xn(e,f,o,s,u,a,l,r,i,n,m);return e?(0,q.jsx)("div",{ref:h,className:bn,children:y}):(0,q.jsxs)(q.Fragment,{children:[A,(0,q.jsxs)("div",{ref:h,className:bn,children:[v,b,C,S,y,w,(0,q.jsx)(Vt,{is:!!w,className:Cn,style:Sn,caption:">",onClick:g})]})]})},An=(t,e,o)=>(0,k.W1)(b.aw,150,1,{p0:[(0,k.VD)("Move to Top",e),(0,k.VD)("Hide Caption",o),(0,k.VD)("Toggle Toolbar",t)]});var jn=o(9073),$n=o(9355),Tn=o(1853),kn=o(5709),_n=o(7441);const En="svg-move",Dn=`${En}__svg`,In=`${Dn} svg-equal`,Ln=`${Dn} svg-up`,Nn=(t,e)=>()=>(0,q.jsx)("span",{className:En,children:(0,q.jsx)(Z.A,{w:"12",className:t,children:e})}),On=Nn(`${Dn} svg-down`,(0,q.jsx)("path",{d:"M 0,0 L 6,4 11,0 6,12, 0,0"})),Mn=Nn(In,(0,q.jsx)("path",{d:"M 0,3 L 12,3 M 0,7 L 12,7"})),Fn=Nn(Ln,(0,q.jsx)("path",{d:"M 0,12 L 6,8 11,12 6,0 0,12"}));var Wn=o(3695);const Rn={position:"absolute",top:25,left:0,zIndex:20,width:"auto",backgroundColor:"inherit",padding:"5px 10px 10px 10px",border:"2px solid #1b2836",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0px 0px 0px 5px",cursor:"auto"},Pn={display:"flex",justifyContent:"space-between"},Bn={paddingLeft:16,whiteSpace:"nowrap"},Un=(t,e)=>((0,x.fp)(t)?t():!!(0,x.bj)(t)&&t)&&!e,zn=t=>{let{value:e,date:o}=t;return(0,q.jsxs)("div",{style:Pn,children:[(0,q.jsx)(st.M_,{children:(0,Wn.A)(e)}),(0,q.jsx)(st.Ll,{style:Bn,children:o})]})},Vn=t=>{const{isShow:e,updateDateTo:o,valueMoving:n,isAdminMode:s,onClose:r}=t,[i,a]=(0,x.J0)(""),l=(0,x.li)(),c=(0,x.hb)((t=>{(0,ot.r$)(t)&&a(o(t)?"":`No data for ${t}`)}),[]);(0,x.vJ)((()=>{e&&((0,x.ZI)(l),a(""))}),[t]);const{value:d,date:p,valueTo:u,dateTo:h,isDenyToChange:m}=n;return(0,q.jsxs)(nt.A,{isShow:e,style:Rn,onClose:r,children:[(0,q.jsx)(zn,{value:d,date:p}),(0,q.jsx)(zn,{value:u,date:h}),Un(s,m)&&(0,q.jsx)(dt,{refEl:l,initialValue:h,msgErr:i,onTest:ot.r$,onEnter:c})]})},Jn={position:"relative",display:"inline-block",marginLeft:10},Kn={marginLeft:5,fontWeight:"bold"},Zn={display:"inline-block",width:5},qn={padding:"4px 5px 2px 5px"},Yn={DF:[null],[_n.sW]:[(0,q.jsx)(On,{}),{color:"#f44336"}],[_n.dj]:[(0,q.jsx)(Fn,{}),{color:"#4caf50"}],[_n._l]:[(0,q.jsx)(Mn,{}),{color:"#2f7ed8"}]},Gn={value:0,delta:0,percent:0,direction:_n._l,date:""},Hn=t=>{let{refEl:e,isAdminMode:o,initialVm:n=Gn,crValueMoving:s}=t;const[r,i]=(0,x.J0)(n),[a,l,c]=(0,C.R)(),d=(0,x.Kr)((()=>(0,ot.sg)(n)),[n]),p=(0,x.Kr)((()=>t=>{const e=s(r,t);return e?(i(e),e):void 0}),[r]);(0,x.Yn)(e,(()=>({_updateDateTo:p})),[p]);const{value:u,delta:h,percent:m,direction:f}=r,[g,y]=(t=>Yn[t]||Yn.DF)(f),v={...Kn,...y};return(0,q.jsxs)("span",{style:Jn,children:[(0,q.jsx)(st.M_,{children:u}),g,(0,q.jsx)("span",{style:v,children:m}),(0,q.jsx)("span",{style:v,children:h}),(0,q.jsx)("span",{style:Zn}),(0,q.jsx)(zt.A,{className:"bt",onClick:l,children:(0,q.jsx)(st.Ll,{style:qn,children:d})}),g&&(0,q.jsx)(Vn,{isShow:a,isAdminMode:o,valueMoving:r,updateDateTo:p,onClose:c})]})},Qn={paddingLeft:16},Xn=t=>{let{value:e,strDate:o}=t;return(0,q.jsxs)(q.Fragment,{children:[e?(0,q.jsx)(st.M_,{style:Qn,children:e}):null,o?(0,q.jsx)(st.Ll,{style:Qn,children:(0,ot.R4)(o)}):null]})},ts="not-selected text-clip bt-left bt black",es="#777",os={stroke:es},ns=(0,b.Sf)("item-header"),ss=(0,b.zq)("popup-menu charts__menu-more"),rs={position:"relative",top:4,left:2},is={stroke:es,fill:es},as={position:"relative",top:2,margin:"0 6px 0 8px"},ls={width:125,padding:"4px 0 2px 4px"},cs={width:void 0,maxWidth:"calc(100% - 60px)"},ds=t=>{let{isMore:e,moreModel:o,onToggle:n}=t;const[s,r]=(0,et.ay)(n);return o?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(kn.A,{refEl:s,style:rs,svgStyle:is,onClick:n}),(0,q.jsx)(tt.A,{isShow:e,rootStyle:b.mL,className:ss,model:o,onClose:r})]}):null},ps=t=>{let{isOpen:e,onCheck:o,onUnCheck:n,itemCaption:s,itemValue:r,itemTime:i,onToggle:a,valueMoving:l,isAdminMode:c,crValueMoving:d,refVm:p,moreModel:u,onClose:h}=t;const m=(0,x.Bi)(),[f,g]=(0,Ct.A)(!1),y=(0,b.FG)(ls,!l&&cs),v=s.length>15?s:void 0;return(0,q.jsxs)("div",{className:ns,children:[(0,q.jsx)(ds,{isMore:f,moreModel:u,onToggle:g}),(0,q.jsx)(Tn.A,{style:as,color:jn.ui,labelId:m,onCheck:o,onUnCheck:n}),(0,q.jsx)(zt.A,{id:m,className:ts,style:y,title:v,onClick:a,children:s}),l?(0,q.jsx)(Hn,{refEl:p,isAdminMode:c,initialVm:l,crValueMoving:d}):(0,q.jsx)(Xn,{value:r,strDate:i}),(0,q.jsx)($n.P,{style:os,onClick:h})]})};var us=o(7071);const hs={display:"inline-block",padding:"0 6px"},ms={display:"inline-block",width:12,height:12,marginLeft:6,backgroundColor:"grey",border:"1px solid grey",borderRadius:"50%"},fs={borderWidth:2,fontWeight:"bold"},gs=t=>{let{item:e,onClickItem:o}=t;const{color:n,name:s,isVisible:r}=e??{},[i,a]=(0,Ct.A)(r),[l,c]=((t,e)=>{const[o,n]=t?[e,fs]:["grey"];return[{color:e,borderColor:o,...n},{backgroundColor:o,borderColor:o}]})(i,n);return(0,q.jsxs)(zt.A,{className:"bt-item",style:l,onClick:()=>{o(e),a()},children:[(0,q.jsx)("span",{style:{...ms,...c}}),(0,q.jsx)("span",{style:hs,children:s})]})},ys=(0,b.mg)(),xs={overflowY:"auto",height:250,paddingRight:4,marginLeft:-8,transform:"scaleX(-1)"},vs={height:"auto"},bs={transform:"scaleX(-1)"},Cs=(t,e)=>t?"Less: 12":"More: "+(e-12),Ss=t=>{let{isMore:e,legend:o,onClick:n}=t;const s=o.length;return s>12?(0,q.jsx)(zt.A,{className:"bt-ml",onClick:n,children:Cs(e,s)}):null},ws=(0,x.ph)((t=>{let{legend:e=[],onClickItem:o}=t;const[n,s]=(0,Ct.A)(!1),r=(0,x.hb)(((t,e)=>((t,e,o)=>(0,q.jsx)(gs,{item:t,onClickItem:o},t.name+e))(t,e,o)),[o]),i=n?e:e.slice(0,12),a=(0,b.FG)(xs,!n&&vs);return(0,q.jsx)("div",{className:ys,style:a,children:(0,q.jsxs)("div",{style:bs,children:[(0,q.jsx)(us.A,{items:i,crItem:r}),(0,q.jsx)(Ss,{isMore:n,legend:e,onClick:s})]})})})),As=ws,js=t=>{let{isShow:e,legend:o,onClickItem:n}=t;return o?(0,q.jsx)(Dt.A,{isShow:e,children:(0,q.jsx)(As,{legend:o,onClickItem:n})}):null},$s=Array.isArray,Ts=t=>{let{withoutAnimation:e,configs:o,idPropName:n="id",absComp:s,onLoaded:r,onWillUnLoaded:i}=t;return $s(a=o)&&a.length>0?(0,q.jsx)(q.Fragment,{children:o.map((t=>(0,q.jsx)(Dt.A,{isShow:!0,withoutAnimation:e,children:(0,q.jsx)(Bt,{config:t.config,absComp:s,onLoaded:r,onWillUnLoaded:i})},t[n])))}):null;var a};var ks=o(2019);const _s=t=>{let{item:e}=t;return(0,q.jsx)(ks.A,{...e})},Es="Nasdaq Data Link",Ds=t=>{let{linkId:e,caption:o=Es}=t;return e?(0,q.jsx)(ks.A,{href:`https://data.nasdaq.com/data/${e}`,caption:`${o} ${e}`}):null};var Is=o(9517);const Ls="https://fred.stlouisfed.org/",Ns=`${Ls}search?st=`,Os=`${Ls}series/`,Ms={display:"inline-block",width:32},Fs=()=>(0,q.jsx)("span",{style:Ms,children:" "}),Ws=t=>{let{item:e={}}=t;const{id:o="",article:n}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(ks.A,{caption:"FRED Search",href:Ns+o}),(0,q.jsx)(Fs,{}),(0,q.jsx)(ks.A,{caption:"FRED Graph",href:Os+o}),(0,q.jsx)(Fs,{}),n&&(0,q.jsx)(ks.A,{caption:"FRED Article",href:n})]})},Rs={listStyle:"none"},Ps=(t,e)=>e,Bs=(0,x.ph)((t=>{let{items:e,crKey:o=Ps,crItem:n}=t;return(0,x.Ep)(e)?(0,q.jsx)("ul",{style:Rs,children:e.map(((t,e)=>(0,q.jsx)("li",{children:n(t)},o(t,e))))}):null})),Us=Bs,zs="Eurostat Data",Vs="https://ec.europa.eu/eurostat",Js=t=>`${Vs}/databrowser/view/${t}/default/table?lang=en`,Ks=t=>`${Vs}/data/database?node_code=${t}`,Zs=t=>{let{href:e,dataset:o}=t;const n=(t=>t?[{caption:`${zs} Browser`,href:Js(t)},{caption:`${zs}base Node`,href:Ks(t)}]:[])(o);return n.length>0?n:void 0},qs=t=>(0,q.jsx)(ks.A,{...t}),Ys=t=>{let{item:e}=t;return e?(0,q.jsx)(Us,{items:Zs(e),crItem:qs}):null},Gs={DF:_s,NDL:Ds,NASDAQ:Is.A,FRED:Ws,ES:Ys};var Hs=o(4246);const Qs={display:"inline-block"},Xs=t=>{let{style:e,caption:o,captionStyle:n,isHtml:s,text:r,textCn:i,textStyle:a}=t;return r?(0,q.jsxs)("div",{style:e,children:[o&&(0,q.jsx)("span",{style:n,children:o+":"}),s?(0,q.jsx)(Hs.A,{className:i,style:{...a,...Qs},str:r}):(0,q.jsx)("span",{className:i,style:a,children:r})]}):null},tr=`info__descr ${b.eT}`,er={position:"relative",padding:"34px 20px 0 8px"},or={left:286},nr={marginTop:4},sr={display:"inline-block",width:90,paddingRight:5,color:"#1b75bb",textAlign:"right",fontWeight:"bold"},rr={fontWeight:"bold",textTransform:"capitalize"},ir={lineHeight:1.6},ar={fontWeight:"bold"},lr=t=>{let{c:e,t:o,s:n}=t;return(0,q.jsx)(Xs,{style:n,caption:e,captionStyle:sr,textCn:b.eT,textStyle:rr,text:o})},cr=t=>{if(!t)return null;const e=Gs.NDL;return(0,q.jsx)(e,{linkId:t})},dr=(t,e)=>{const o=t?Gs[t]:void 0;return null!=o?(0,q.jsx)(o,{item:e}):null},pr=t=>{let{isShow:e,info:o,zhInfo:n,onClickChart:s}=t;const{name:r,toDate:i,fromDate:a,frequency:l,linkId:c,description:d}=o||{},{item:p,linkFn:u}=n||{},h=e?b.CQ:b.JS;return(0,q.jsxs)("div",{style:{...er,...h},children:[(0,q.jsx)(Vt,{style:or,caption:"Chart",onClick:s}),(0,q.jsx)(lr,{t:r}),(0,q.jsx)(lr,{c:"From Date",t:a}),(0,q.jsx)(lr,{c:"To Date",t:i,s:nr}),(0,q.jsx)(lr,{c:"Frequency",t:l}),cr(c),d&&(0,q.jsx)(po.A,{isClose:(m=d,!(m&&m.length<200)),caption:"Description",children:(0,q.jsx)(Xs,{style:ir,isHtml:!0,text:d,textCn:tr,textStyle:ar})}),dr(u,p)]});var m},ur=(t,e,o)=>{const n=(t||[]).reduce(((t,e)=>(t[e[o]]=e,t)),{});return e.reduce(((t,e)=>(t.push(n[e]),t)),[])},hr={marginLeft:8},mr={marginTop:6},fr=(0,$.WB)(),gr="btTitle",yr=(0,vt.A)((t=>{let{refEl:e,caption:o,config:n,onCloseItem:s,isAdminMode:r,onAddToWatch:i,onZoom:a,onCopy:l,onPasteTo:c,chartType:d,onSetActive:p,onShowConfigDialog:u,crValueMoving:h,onToTop:m}=t;const{zhConfig:f,valueMoving:g,info:y,zhMiniConfigs:v}=n||{},{dataSource:b,itemCaption:S,itemValue:w,itemTime:A,legend:j}=f||{},[$,T]=St(),[k,_]=(0,bt.A)(),[E,D]=(0,C.o)(),[I,L,N]=(0,C.o)(!0),O=!I,[M,F]=(0,Ct.A)(!0),[W,R]=(0,Ct.A)(),[P,B]=(0,Ct.A)(!0),[U]=(0,x.J0)((()=>S||o||"")),[z,V,J]=At(_,B),[K,Z]=wt(_,d,p),[Y,G]=Tt(_),[H]=Et(b),[Q,X,tt]=jt(),[et,ot]=$t(),nt=0===et.length,[st,rt,it,at]=(0,x.Kr)((()=>[t=>{_().zhToggleSeria(t.index)},()=>{N(),R(!1)},(t,e)=>h(_(),t,e),An(B,m,J)]),[]),lt=(0,x.Kr)((()=>ur(v,et,gr)),[v,et]);return(0,x.vJ)((()=>{const t=_();t&&t.zhUpdateSpacing(nt)}),[nt]),(0,x.Yn)(e,(()=>({compareTo:T,hideCaption:J,showCaption:V,reflowChart:t=>{const e=_();e&&e.zhReflowCharts(fr,t)}})),[]),(0,q.jsxs)("div",{className:"chart-item",children:[z&&(0,q.jsx)(ps,{isOpen:M,isAdminMode:r,itemCaption:U,itemValue:w,itemTime:A,valueMoving:g,moreModel:at,onCheck:K,onUnCheck:Z,onToggle:F,onClose:s,crValueMoving:it,refVm:$}),(0,q.jsxs)(Dt.A,{isShow:M,withoutAnimation:!0,style:hr,children:[I&&(0,q.jsx)(Dt.A,{isShow:P,withoutAnimation:!0,children:(0,q.jsx)(wn,{hasError:E,config:n,getChart:_,onMiniChart:ot,onAddMfi:X,onRemoveMfi:tt,onClickLegend:R,onAddToWatch:i,onClickInfo:rt,onCopy:l,onPasteTo:c,onZoom:a})}),(0,q.jsx)(Nt,{FallbackComp:(0,q.jsx)(Mt,{isShow:I,msg:"chart"}),onError:D,children:(0,q.jsx)(Dt.A,{isShow:I,withoutAnimation:!0,style:mr,children:(0,q.jsx)(Bt,{config:n,isShowAbs:nt,absComp:H,onLoaded:k})})}),(0,q.jsx)(pr,{isShow:O,info:y,zhInfo:f,onClickChart:L}),(0,q.jsx)(js,{isShow:W,legend:j,onClickItem:st}),(0,q.jsx)(Ts,{withoutAnimation:!0,configs:Q,absComp:H,onLoaded:Y,onWillUnLoaded:G}),(0,q.jsx)(Ts,{withoutAnimation:!0,configs:lt,idPropName:gr,absComp:H,onLoaded:Y,onWillUnLoaded:G})]})]})}));var xr=o(5338),vr=o(784),br=o(6106);const Cr=t=>{const[e,o]=(0,br.yy)(t);let n=[],s=[];for(let t=0;tvoid 0===t?null:t,wr=(t,e)=>{const o=(0,br.$w)(t),[n,s]=Cr(t),r=(0,br.S$)(t),i=(0,br.SW)(t),{index:a}=(0,br.qn)(r,n[0]),{index:l}=(0,br.qn)(r,s[0]),c=l[e];return(0,vr.Et)(c)?((t,e,o,n,s)=>{const r=[],i=[];let a;return(0,vr.Co)(o).forEach((l=>{a=n*o[l]+s,r.push(l),i.push({value:Sr(t[a]),status:Sr(e[a])})})),[r,i]})(o,i,a,s[1],c):[[],[]]},Ar=(t,e)=>{const o=(0,br.$w)(t),n=(0,br.S$)(t),{index:s}=(0,br.qn)(n,"geo"),r=s[e],i=(t=>Cr(t)[1][1])(t),{index:a}=(0,br.qn)(n,"time"),l=[];for(let t=i*r;t-1&&!(0,vr.Et)(l[d]);d--);return{data:l.slice(c,d+1),date:{id:(0,vr.Co)(a).slice(c,d+1)}}},jr=()=>!0,$r=function(t,e){let o=t;const n=e||jr;return function(t){if(void 0===t)return o;n(t)&&(o=t)}},Tr=function(t){this.location=$r(t),this.label=$r(),this.updateLabel=t=>{const e=t.map((t=>{return e=this.location(),o=t.location(),e.map(((t,e)=>Math.pow(t-o[e],2))).reduce(((t,e)=>t+e),0);var e,o}));this.label(e.reduce(((t,e,o)=>t[0]{const e=t.filter((t=>t.label()==this.label()));e.length>0&&this.location((t=>{const e=t[0].location().map((()=>0));return t.map((t=>t.location())).reduce(((t,e)=>((t,e)=>t.map(((t,o)=>t+e[o])))(t,e)),e).map((e=>e/t.length))})(e))}},_r=(t,e)=>t.centroid[0]-e.centroid[0],Er=(t,e)=>t[0]-e[0],Dr=t=>t%1==0&t>0,Ir={k:$r(void 0,Dr),iterations:$r(1e3,Dr),data:$r([],(t=>{const e=t[0].length;return t.map((t=>t.length==e)).reduce(((t,e)=>t&e),!0)})),clusters(){const t=function(t,e){const o=e.k||Math.round(Math.sqrt(t.length/2)),n=e.iterations,s=t.map((t=>new Tr(t))),r=[];let i,a;for(i=0;i{t.updateLabel(r)})),r.forEach((t=>{t.updateLocation(s)}));return{points:s,centroids:r}}(this.data(),{k:this.k(),iterations:this.iterations()}),e=t.points;return t.centroids.map((t=>({centroid:t.location(),points:e.reduce(((e,o)=>(o.label()==t.label()&&e.push(o.location()),e)),[])})))},unarySortedClusters(){return this.clusters().sort(_r).map((t=>(t.points.sort(Er),t)))},crUnarySortedCluster(t,e,o){return void 0===t&&(t=[]),void 0===e&&(e=6),void 0===o&&(o=100),this.k(e),this.iterations(o),this.data(t),this.unarySortedClusters()}};var Lr=o(5672),Nr=o(983);const{SparkView:Or,Line:Mr,Spot:Fr,MaxLabel:Wr,MinLabel:Rr}=Nr.A,Pr="#8bc34a",Br="#f44336",Ur={"-1":Br,0:"black",1:Pr},zr={position:"relative",padding:3,marginBottom:5,lineHeight:1.8,opacity:.7},Vr={position:"absolute",top:4,right:8,fontSize:"18px",fontWeight:"bold",cursor:"pointer"},Jr={padding:3,cursor:"pointer"},Kr={display:"inline-block",width:30},Zr={display:"inline-block",float:"right"},qr=t=>{let{color:e,from:o,to:n,onClick:s}=t;const r=(0,S.Ly)(s);return(0,q.jsxs)("p",{style:{...zr,background:e},children:[(0,q.jsxs)("span",{children:[o," – ",n]}),(0,q.jsx)("span",{tabIndex:"0",role:"button",style:Vr,onClick:s,onKeyDown:r,children:"*"})]})},Yr=t=>{let{title:e,value:o,status:n,onClick:s}=t;const r=(0,S.Ly)(s),i=n?`${o} (${n})`:o;return(0,q.jsxs)("div",{tabIndex:"0",role:"button",style:Jr,onClick:s,onKeyDown:r,children:[(0,q.jsx)("span",{style:Kr,children:e}),(0,q.jsx)("span",{style:Zr,children:i})]})},Gr=t=>{let{point:e,color:o,index:n,isShowRange:s}=t;const r=(0,x.li)(e.seria.data||[]),i=(0,x.li)(r.current.length-1),[a,l]=(0,Ct.A)(n<3);return(0,q.jsxs)("div",{children:[(0,q.jsx)(Yr,{title:e.id,value:e[0],status:e.status,onClick:l}),(0,q.jsx)(Dt.A,{isShow:a,children:(0,q.jsxs)(Or,{height:32,width:140,svgHeight:32,svgWidth:140,data:r.current,margin:3,children:[s?(0,q.jsx)(Wr,{color:Pr,fontSize:14}):(0,q.jsx)("span",{}),s?(0,q.jsx)(Rr,{color:Br,fontSize:14}):(0,q.jsx)("span",{}),(0,q.jsx)(Mr,{color:o}),(0,q.jsx)(Fr,{pointIndex:i.current,size:3,spotColors:Ur})]})})]})},Hr=t=>{let{cluster:e,color:o,isShowRange:n}=t;const s=e.points||[];return(0,q.jsx)("div",{children:s.map(((t,e)=>(0,q.jsx)(Gr,{point:t,color:o,index:e,isShowRange:n},t.id)))})},Qr=t=>{let{cluster:e,color:o,from:n,to:s}=t;const[r,i]=(0,Ct.A)(!1);return(0,q.jsxs)("div",{children:[(0,q.jsx)(qr,{color:o,from:n,to:s,onClick:i}),(0,q.jsx)(Hr,{cluster:e,color:o,isShowRange:r})]})},Xr=["#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b","#74c476"],ti=Array.isArray,ei=Object.assign,oi=t=>document.createElement(t),ni=t=>Promise.resolve(t),si=(t,e,o)=>{const n=[];let s=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;if(t.forEach(((t,i)=>{const a=((t,e)=>{if(ti(t))for(let o=0;ol&&(s=l),r({color:"green",fillColor:Xr[t.properties.cluster],weight:1,fillOpacity:.7,opacity:.65}),ii=function(t,e,o,n){void 0===e&&(e=""),void 0===o&&(o="");const s=oi(t);return s.className=e,s.style.cssText=o,n&&(s.id=n),s},ai=(t,e)=>ei(t.control(),{onAdd(t){return this.idEl=e+"_info-control",this.divEl=ii("div","control-info","",this.idEl),this.divEl},_getRootInfo(){var t;return this._rootInfo||(this._rootInfo=(0,xr.H)((t=this.idEl,document.getElementById(t)))),this._rootInfo},renderElement(t){this._getRootInfo().render(t)},update(t){t&&this.renderElement((t=>{let{label:e,value:o}=t;return(0,q.jsxs)("p",{children:[(0,q.jsxs)("span",{children:[e,": "]}),(0,q.jsx)("span",{children:o||"unknown"})]})})(t))},updateCluster(t,e,o,n){var s;t&&this.renderElement((s={cluster:t,color:e,from:o,to:n},(0,q.jsx)(Qr,{...s})))}}),li=(t,e,o,n,s)=>{const r=n.control({position:"bottomleft"});return r.onAdd=n=>{const r=ii("div","control-grade");let i,a;return i=(0,oe.Mg)(t),o.forEach(((t,n)=>{a=(0,oe.Mg)(((t,e,o)=>{if(t.length-1===e)return o;const n=t?.[e]?.points??[[0]],s=t?.[e+1].points??[[0]],r=n[n.length-1][0];return r+((s[0]?s[0][0]:r)-r)/2})(o,n,e)),r.appendChild(((t,e,o,n,s)=>{const r=n?.points?.length??0,i=ii("p","",`opacity: 0.7; background: ${t}; padding: 5px 6px; cursor: pointer;`);return i.addEventListener("click",(function(r){s.updateCluster(n,t,e,o)})),i.innerHTML=`${(0,vr.Ax)(e)}–${(0,vr.Ax)(o)}\n ${(0,vr.Ax)(r)}`,i})(Xr[n],i,a,t,s)),i=a})),r.appendChild((()=>{const t=ii("div");return t.innerHTML='

No Data

\n

Source: Eurostat

',t})()),r},r},ci=(t,e)=>{const o=e.target;t.update(o.feature.properties)},di=(t,e,o)=>{o.on({mouseover:ci.bind(null,t)})},pi=t=>{const{jsonCube:e,geoJson:o,map:n,L:s,mapId:r,time:i}=t,[a,l]=wr(e,i),{minValue:c,maxValue:d,points:p}=si(l,a,o),u=((t,e)=>t.map((t=>(t.seria=Ar(e,t.id),t))))(p,e),h=Ir.crUnarySortedCluster(u,6,100);((t,e,o)=>{t.features.forEach((t=>{const n=t.properties,s=n.id;if(s){const t=e[s];n.cluster=void 0===t?o:t}else n.cluster=o}))})(o,(t=>{const e={};return t.forEach(((t,o)=>{for(const n of t.points)e[n.id]=o})),e})(h),6);const m=ai(s,r);if(m.addTo(n),s.geoJSON(o,{style:ri,onEachFeature:di.bind(null,m)}).addTo(n),u.length>1){li(c,d,h,s,m).addTo(n)}return t},ui={hmUrlGeoJson:{},L:void 0,mapOption:{doubleClickZoom:!1,zoomSnap:.5,minZoom:1,maxZoom:4},getLeaflet(){return this.L?ni(this.L):o.e(334).then(o.t.bind(o,3481,23)).then((t=>this.L=t))},getGeoJson(t){const e=this.hmUrlGeoJson[t];return e?ni((t=>{const e=(0,Lr.A)(!0,{},t);return e.features.forEach((t=>{t.properties.value=null})),e})(e)):fetch(t).then((t=>t.json())).then((e=>this.hmUrlGeoJson[t]=e))},draw(t){return this._loadCss().then((()=>this._draw(t)))},_loadCss(){return this._isCss?ni():new Promise(((t,e)=>{const o=ei(oi("link"),{rel:"stylesheet",href:"css/leaflet.css",onload:()=>{this._isCss=!0,t()},onerror:()=>{o.remove(),e()}}),{head:n}=document,{childNodes:s}=n;n.insertBefore(o,s[s.length-1].nextSibling)}))},_draw(t){let{id:e,jsonCube:o,zhMapSlice:n,time:s}=t;return this.getLeaflet().then((t=>{const r=t.map(e,this.mapOption).setView([58,10],3);return t.tileLayer("",{id:e+"_tile"}).addTo(r),{jsonCube:o,zhMapSlice:n,time:s,L:t,map:r,mapId:e}})).then((t=>this.getGeoJson("data/geo/eu-stat.geo.json").then((e=>(t.geoJson=e,t))))).then((t=>ni(pi(t))))}};var hi=o(3375);const mi=(0,b.Sf)(),fi={position:"relative",height:"auto",width:"100%",padding:"6px 42px 6px 10px"},gi={width:"75%",padding:"4px 2px 2px 0"},yi=t=>{let{isOpen:e,style:o,captionStyle:n,caption:s="",title:r,children:i,onClick:a,onClose:l}=t;const c=((t,e)=>t||e.length>45?e:void 0)(r,s);return(0,q.jsxs)("div",{className:mi,style:{...fi,...o},children:[(0,q.jsx)(zt.A,{className:ts,style:{...gi,...n},title:c,onClick:a,children:s}),i,(0,q.jsx)($n.P,{style:os,onClick:l})]})},xi={position:"relative",margin:"0 12px 10px 0"},vi={display:"inline-block",color:"#fdb316",paddingLeft:16,fontWeight:"bold"},bi={position:"relative",height:30,backgroundColor:"transparent",zIndex:2},Ci={height:400},Si={margin:"64px auto 0"},wi={display:"block"},Ai={display:"none"},ji={paddingLeft:12},$i=()=>(0,q.jsx)("span",{className:"err-msg",style:ji,children:"Error during loading map."}),Ti=t=>{let{isShow:e,onClick:o}=t;return e?(0,q.jsx)("div",{style:bi,children:(0,q.jsx)(Vt,{caption:"Info",onClick:o})}):null},ki=t=>`map_${t}`,_i=t=>{let{caption:e,config:o,onCloseItem:n}=t;const[s,r]=(0,x.J0)({isLoading:!0,time:""}),{isLoading:i,time:a,isErr:l}=s,[c,d]=(0,Ct.A)(!0),[p,u,h]=(0,C.o)();(0,x.vJ)((()=>{const{json:t,zhMapSlice:n,zhDialog:s}=o,{time:i}=s||{};ui.draw({id:ki(e),jsonCube:t,zhMapSlice:n,time:i}).then((t=>{let{time:e}=t;r({isLoading:!1,time:e})})).catch((t=>{r({isLoading:!1,isErr:!0})}))}),[]);const m=ki(e),{zhDialog:f,info:g}=o,{itemCaption:y}=f||{},v=p?Ai:wi;return(0,q.jsxs)("div",{style:xi,children:[(0,q.jsx)(yi,{isOpen:c,caption:y,onClick:d,onClose:n,children:(0,q.jsx)("span",{style:vi,children:a})}),(0,q.jsxs)(Dt.A,{isShow:c,children:[(0,q.jsx)(Ti,{isShow:!p,onClick:u}),(0,q.jsxs)("div",{id:m,style:{...Ci,...v},children:[i&&(0,q.jsx)(hi.yX,{style:Si}),l&&(0,q.jsx)($i,{})]}),(0,q.jsx)(pr,{isShow:p,info:g,onClickChart:h})]})]})},Ei=Number.isNaN,Di=(t,e)=>Ei(t)?Ei(e)?0:1:Ei(e)?-1:2,Ii=(t,e)=>(o,n)=>{const s=o[e],r=n[e];return"number"==typeof s||s===t?((t,e)=>{const o=Di(t,e);return 2!==o?o:te?-1:0})(s,r):((t,e)=>te?-1:0)(s,r)},Li={position:"relative"},Ni={width:"100%",borderCollapse:"collapse",borderSpacing:0},Oi={lineHeight:1.8},Mi={borderTop:"3px solid transparent",borderBottom:"3px solid transparent",pointerEvents:"auto",userSelect:"none",cursor:"pointer"},Fi={position:"relative",top:-2},Wi={borderTop:"3px solid #f1d600"},Ri={borderBottom:"3px solid #f1d600"},Pi={position:"relative",top:2,marginRight:4},Bi={position:"absolute",top:36,left:0,zIndex:1010,backgroundColor:"inherit",padding:"4px 12px 6px",borderRadius:5,boxShadow:"rgba(0, 0, 0, 0.2) 0 0 0 5px"},Ui={padding:6,verticalAlign:"middle",lineHeight:1.4,whiteSpace:"nowrap",borderTop:0},zi={color:"#4caf50",fontWeight:"bold"},Vi={color:"#f44336",fontWeight:"bold"},Ji=t=>{const[e,o]=(0,x.J0)({_rows:t||[]}),n=(0,x.hb)((t=>{o((e=>{let{_rows:o,sortBy:n,sortTo:s}=e;const r=Ii("―",t);return t===n&&"UP"===s?(o=o.sort(((t,e)=>(o,n)=>{const s=Di(o[t],n[t]);return 2!==s?s:e(n,o)})(t,r)),s="DOWN"):(o=o.sort(r),s="UP"),{_rows:o,sortTo:s,sortBy:t}}))}),[]);return[e,n]};var Ki=o(6223);const Zi={paddingLeft:0,paddingBottom:4},qi={lineHeight:1.5},Yi=(t,e,o)=>(0,q.jsx)(Ki.A,{style:Zi,color:e,caption:t.name,value:!t.isHide,onToggle:o},t.name),Gi=t=>{let{item:e,color:o,onToggle:n}=t;return(0,q.jsx)(po.A,{className:b.Qd,childStyle:qi,caption:e.caption,children:(0,x.lZ)(e.items,(t=>Yi(t,o,(()=>n(t.id)))))})},Hi=t=>{let{headers:e,onToggle:o}=t;const[n,...s]=e,r=(0,b.Jq)();return(0,x.lZ)(s,((t,e)=>(0,x.Ep)(t.items)?(0,q.jsx)(Gi,{item:t,color:r,onToggle:o},t.caption):Yi(t,r,(()=>o(t.id||e+1)))))},Qi=t=>{let{isShow:e,isGridLine:o,style:n,headers:s,onToggleGrid:r,onToggle:i,onClose:a}=t;return(0,q.jsxs)(nt.A,{style:n,isShow:e,onClose:a,children:[(0,q.jsx)(Ki.A,{style:Zi,color:(0,b.Jq)(),caption:"withStripLines",value:o,onToggle:r}),(0,q.jsx)("hr",{style:{borderColor:(0,b.Jq)(),marginTop:2,marginBottom:2}}),(0,q.jsx)(Hi,{headers:s,onToggle:i})]})},Xi=t=>Number.isNaN(t)||null==t,ta=(t,e)=>`${t}: activate to sort column ${e}`,ea=t=>{let{v:e,isR:o}=t;return o?Xi(e)?{color:(0,b.Jq)(),fontWeight:"bold"}:e>0?zi:Vi:void 0},oa={UP:"UP",DOWN:"DOWN",ASC:"ascending",DESC:"descending"},na=t=>{let{name:e,onMenuMore:o}=t;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(kn.A,{style:Pi,svgStyle:{fill:(0,b.Jq)(),stroke:(0,b.Jq)()},onClick:o}),(0,q.jsx)("span",{style:Fi,children:e})]})},sa=(t,e)=>{const{gridId:o,thMoreStyle:n,headers:s,sortBy:r,sortTo:i,onSort:a,onMenuMore:l}=t;return s.map(((t,s)=>{if(t.isHide)return null;const{name:c,pn:d}=t,{style:p,ariaSort:u,ariaLabel:h}=(t=>{let e,o,n,{C:s,pn:r,name:i,sortBy:a,sortTo:l}=t;return r===a?l===s.UP?(e=Wi,o=s.DESC,n=ta(i,s.ASC)):(e=Ri,o=s.ASC,n=ta(i,s.DESC)):n=ta(i,s.ASC),{style:e,ariaSort:o,ariaLabel:n}})({C:oa,pn:d,name:c,sortBy:r,sortTo:i}),m=0===s?(0,q.jsx)(na,{name:c,onMenuMore:l}):c,f=0===s?{...n,...p}:p;return(0,q.jsx)("th",{style:{...Mi,...f},rowSpan:"1",colSpan:"1",tabIndex:"0","arial-controls":o,"aria-label":h,"aria-sort":u,onClick:()=>a(d),onKeyDown:t=>e(t,d),children:m},t.name)})).filter(Boolean)},ra=t=>(0,q.jsx)("thead",{className:b.eT,style:Oi,children:(0,q.jsx)("tr",{children:sa(t,((e,o)=>{(0,S.P0)(e)&&t?.onSort(o)}))})}),ia=(t,e,o,n)=>{const{pn:s,isHref:r}=e,i=(t=>{let{h:e,v:o,fn:n}=t;return e.isR&&Xi(o)?"―":e.isF&&"function"==typeof n?n(o):o})({h:e,v:t[s],fn:e.fn||o});return r?((t,e,o)=>{const n=(0,x.fp)(o)?o(t,e):void 0;return(0,q.jsx)("a",{className:"native-link",href:(0,x.jd)(n),children:e})})(t.id,i,n):i},aa=t=>{const{headers:e,rows:o,tableFn:n}=t,{numberFormat:s,valueToHref:r}=n||{};return o.map((t=>{const o=t.id,n=e.map(((e,n)=>{if(e.isHide)return null;const i=`${o}_${n}`,a=((t,e)=>{const{pn:o,style:n,isR:s}=e,r=t[o];return{...n,...ea({v:r,isR:s}),...(t.style||{})[o]}})(t,e),l=ia(t,e,s,r);return(0,q.jsx)("td",{style:{...Ui,...a},children:l},i)})).filter(Boolean);return(0,q.jsx)("tr",{role:"row",children:n},o)}))},la=t=>(0,q.jsx)("tbody",{className:b.eT,children:aa(t)}),ca=t=>{let{className:e,gridId:o,thMoreStyle:n,rows:s,headers:r,flatHeaders:i,tableFn:a}=t;const[l,c]=(0,Ct.A)(!0),[d,p]=(()=>{const[t,e]=(0,x.J0)(!1);return[t,(0,x.hb)((t=>{t.stopPropagation(),e((t=>!t))}),[])]})(),[u,h]=(t=>{const[e,o]=(0,x.J0)(t||[]),n=(0,x.hb)((t=>{o((e=>(e[t].isHide=!e[t].isHide,[...e])))}),[]);return[e,n]})(i||r),[{_rows:m,sortBy:f,sortTo:g},y]=Ji(s),v=(0,b.PX)([l,"grid"],e);return(0,q.jsxs)("div",{style:Li,children:[(0,q.jsx)(Qi,{style:Bi,isShow:d,onClose:p,isGridLine:l,onToggleGrid:c,headers:r,onToggle:h}),(0,q.jsxs)("table",{role:"grid",id:o,className:v,style:Ni,children:[(0,q.jsx)(ra,{gridId:o,thMoreStyle:n,headers:u,sortBy:f,sortTo:g,onSort:y,onMenuMore:p}),(0,q.jsx)(la,{headers:u,rows:m,tableFn:a})]})]})},da={paddingBottom:8},pa={position:"sticky",top:-1,zIndex:1,willChange:"transform"},ua={width:"100%"},ha={padding:"8px 0"},ma={padding:"2px 0 0 12px",color:"#909090",fontSize:"11px"},fa=t=>{let{isInitialClose:e,thMoreStyle:o,config:n,onCloseItem:s}=t;const[r,i]=(0,Ct.A)(!e),{id:a,title:l,headers:c,flatHeaders:d,rows:p,tableFn:u,dataSource:h,dsStyle:m}=n,f=`tb_${a}`;return(0,q.jsxs)("div",{style:da,children:[(0,q.jsx)(yi,{isOpen:r,style:pa,caption:l,captionStyle:ua,onClick:i,onClose:s}),(0,q.jsxs)(Dt.A,{isShow:r,style:ha,children:[(0,q.jsx)(ca,{gridId:f,thMoreStyle:o,headers:c,flatHeaders:d,rows:p,tableFn:u}),h&&(0,q.jsx)("div",{style:{...ma,...m},children:h})]})]})},ga={paddingLeft:12,textAlign:"left"},ya=["m","g","l"],xa={display:"flex",flexFlow:"wrap",lineHeight:2},va={display:"inline-block",padding:"0 8px",fontWeight:600,whiteSpace:"nowrap"},ba=t=>(0,q.jsx)("span",{style:va,children:t},t),Ca=t=>{let{tokens:e}=t;return(0,q.jsx)("div",{style:xa,children:(0,q.jsx)(us.A,{items:e,crItem:ba})})},Sa=t=>{let{caption:e,tokens:o}=t;return e?(0,q.jsx)(po.A,{isClose:!1,caption:e,children:(0,q.jsx)(Ca,{tokens:o})}):(0,q.jsx)(Ca,{tokens:o})},wa=Array.isArray,Aa={marginBottom:10},ja={height:33},$a={width:"auto"},Ta={padding:"8px 8px 0 8px"},ka={padding:"0 4px",lineHeight:1.8},_a="Decription",Ea=t=>{let{href:e,caption:o}=t;return(0,q.jsx)(ks.A,{caption:(0,x.MZ)(": ",o,e),href:e})},Da=t=>{let{style:e,caption:o=_a,descr:n,links:s}=t;return n?(0,q.jsxs)(po.A,{caption:o,children:[(0,q.jsx)("div",{style:{...ka,...e},children:n}),(0,q.jsx)(Us,{items:s,crItem:Ea})]}):null},Ia=(t,e)=>{const o=t.caption||e;return wa(t.tokens)?(0,q.jsx)(Sa,{...t},o):(0,q.jsx)(Da,{...t},o)},La={marginBottom:8},Na={padding:"8px 10px 0 0"},Oa={paddingLeft:16},Ma={position:"relative",color:"gray",paddingLeft:16,lineHeight:1.8},Fa={color:"gray",paddingLeft:16},Wa={top:4},Ra=t=>{let{item:e}=t;const[o,n]=(0,Ct.A)(!0);if(!o)return null;const{user:s,date:r,link:i,text:a,retweet:l,like:c}=e;return(0,q.jsxs)("div",{className:"twit",children:[(0,q.jsxs)("div",{style:Ma,children:[(0,q.jsx)("span",{children:`${s} `}),(0,q.jsx)("span",{children:r}),(0,q.jsx)($n.P,{style:Wa,onClick:n})]}),(0,q.jsx)("a",{href:(0,x.jd)(i),children:(0,q.jsx)("div",{style:Oa,children:a})}),(0,q.jsxs)("div",{style:Fa,children:[(0,q.jsx)("span",{children:`Retweets ${l} `}),(0,q.jsx)("span",{children:`Likes ${c}`})]})]})},Pa=t=>(0,q.jsx)(Ra,{item:t},t.id),Ba=(t,e)=>{const{zhConfig:o}=t,{id:n,key:s}=o||{};return[n||`Id:${e}`,s||n||(0,mt.f7)()]},Ua=(t,e)=>()=>(0,ft.hM)({caption:t,config:e}),za=t=>e=>{let{config:o={},props:n}=e;return(0,q.jsx)(t,{config:o,...n},o.id)},Va=(0,ht.v)({[xt.uF]:t=>{let{config:e,index:o,chartType:n,props:s}=t;const[r,i]=Ba(e,o);return(0,q.jsx)(_i,{chartType:n,caption:r,config:e,...s},i)},[xt.y_]:za(fa),[xt.OD]:za((t=>{let{config:e,onCloseItem:o}=t;return ya.map((t=>(0,q.jsx)(fa,{isInitialClose:!0,thMoreStyle:ga,config:e[t],onCloseItem:o},t)))})),[xt.eB]:za((t=>{let{config:e,onCloseItem:o}=t;const[n,s]=(0,Ct.A)(!0),{caption:r,items:i}=e||{};return(0,q.jsxs)("div",{style:Aa,children:[(0,q.jsx)(yi,{style:ja,captionStyle:$a,isOpen:n,caption:r,onClick:s,onClose:o}),(0,q.jsx)(Dt.A,{style:Ta,isShow:n,children:(0,q.jsx)(us.A,{items:i,crItem:Ia})})]})})),[xt.sW]:za((t=>{let{config:e,onCloseItem:o}=t;const{title:n,items:s}=e,[r,i]=(0,Ct.A)(!0);return(0,q.jsxs)("div",{style:La,children:[(0,q.jsx)(yi,{isOpen:r,caption:n,onClick:i,onClose:o}),(0,q.jsx)(Dt.A,{isShow:r,style:Na,children:(0,q.jsx)(us.A,{items:s,crItem:Pa})})]})}))},(t=>{let{config:e,index:o,chartType:n,props:s}=t;const[r,i]=Ba(e,o);return(0,q.jsx)(yr,{chartType:n,caption:r,config:e,onSetActive:m.k5,onAddToWatch:Ua(r,e),...s,crValueMoving:mt.P0,onToTop:(0,x.Jr)(Ol,n,r),onCopy:yt,onPasteTo:t=>(0,ft.SZ)({toChart:t,fromChart:gt}),onZoom:ft.Lm},i)})),Ja=t=>{let{refChartFn:e,configs:o,chartType:n,browserType:s,isAdminMode:r,onCloseItem:i}=t;return(0,q.jsx)("div",{children:(0,x.lZ)(o,((t,o)=>{const{zhConfig:a,zhCompType:l}=t,{id:c}=a||{},d=l?void 0:(0,x.Jr)(e,c);return Va(((p={config:t,index:o,chartType:n,props:{isAdminMode:r,refEl:d,onCloseItem:()=>{i(n,s,c),d&&d()}}}).config||{}).zhCompType)(p);var p}))})},Ka=(0,b.nV)("scroll-items"),Za={paddingTop:2,paddingLeft:2},qa={position:"relative",top:-1},Ya={paddingTop:7},Ga={position:"relative",top:-3},Ha=(t,e,o)=>{const n=(0,x.hC)(t);return(n&&parseInt(n.width,10)||e)>10*o.length+155},Qa=()=>{},Xa=t=>{const{chartType:e,browserType:o,contWidth:n,caption:s,isAdminMode:r,onCloseContainer:i,onCloseItem:a,onSetActive:l=Qa,updateMovingValues:c}=t,d=r(),p=(0,x.li)(),[u,h]=(0,x.J0)((()=>({configs:_l(e)}))),{configs:m}=u,[f,g,y]=(0,C.o)(!0),b=(0,x.hb)((()=>{i(),y()}),[]),w=(0,S.iw)(b),[A,$,k]=(0,C.o)(),[_,E,D]=(0,C.o)(),[I,L,N]=T(n),[W,U]=j(),[z,V,J,K]=O(d,t,L,N,10,W,$),Z=F(W,c),[Y,G]=M(e,o,l);Al((t=>{t&&((t,e)=>t===e||t&&t.chartType===e)(t,e)&&(t.isShow?(((0,x.ZC)(p)||{}).scrollTop=0,h({configs:t.configs}),g()):b())}));const[H,Q]=R(f);return(0,q.jsxs)("div",{...(0,v.g3)(f),ref:z,className:Q,style:{...I,...H},onKeyDown:w,children:[(0,q.jsx)(tt.A,{isShow:_,className:"popup-menu charts__menu-more el-b",model:J,onClose:D}),d&&(0,q.jsx)(ut,{isShow:A,onClose:k,onCompareTo:Z}),(0,q.jsx)(P.A,{style:Za,onMore:E,onCheck:Y,onUnCheck:G,caption:s,captionStyle:Ya,svgMoreStyle:qa,onClose:b,children:(0,q.jsx)(X,{refEl:V,elementRef:z,isBts:Ha(z,L,s),style:Ga,initWidth:L,minWidth:N,maxWidth:1200,step:10,onResizeAfter:K})}),(0,q.jsx)(B.A,{refEl:p,className:Ka,children:(0,q.jsx)(Ja,{refChartFn:U,isAdminMode:r,configs:m,chartType:e,browserType:o,onCloseItem:a})})]})};var tl=o(9466);const el=(t,e)=>{let o=t.contFullCaption||y.A[e].contFullCaption;if(o)return o;const{contCaption:n,dialogCaption:r,menuTitle:i,dialogProps:a}=t,{ds:l,dataSource:c}=a||{};return o=(0,f.O8)(n)?n:r||i||"Item Container",(0,s.MZ)(": ",l||c,o)},ol=t=>{let{browserType:e,dialogConf:o}=t;const{type:n,chartContainerComp:s,contWidth:r}=o||{},i=n||y.A[e].chartContainerType,a=s||Xa;return(0,q.jsx)(a,{chartType:i,caption:el(o,e),browserType:e,contWidth:r,isAdminMode:tl.hf,onSetActive:(0,g.J)(l.iu,i,e),onCloseContainer:(0,g.J)(h.CM,i,e),onSortBy:(0,g.J)(Kl,i),updateMovingValues:(0,g.J)(Jl,i),onCloseItem:Vl,onRemoveAll:(0,g.J)(Zl,i,e)},i)};var nl=o(7343);const sl=String(Number.MIN_SAFE_INTEGER),rl=t=>(t||{}).valueMoving||{},il=(t,e)=>(0,Gt.default)(rl(t)[e]||sl),al=(t,e)=>{const o=il(t,e),{direction:n}=rl(t);return n===_n.sW?o.times(-1):o},ll=t=>{const e=-1!==t.indexOf("Abs")?al:il;return(o,n)=>{const s=e(o,t),r=e(n,t);return s.gt(r)?1:r.gt(s)?-1:0}},cl=(t,e,o)=>{t[e]||(t[e]={chartType:e,configs:o?[o]:[],isShow:!0})},dl=t=>{const e=(0,m.jE)();e&&((t,e)=>{let{seriaType:o}=e;return"DOT_SET"===o&&(0,nl.Ep)(t)&&"scatter"===t[0].type&&2===t.length})(e.series,t)&&(0,h.BK)(u.XT,{chart:e})},pl=t=>{const{alertItemId:e,value:o}=t;t.alertItemId=(0,nl.O8)(e)?e:(0,nl.O8)(o)?o:void 0};var ul=o(2301),hl=o(1579),ml=o(506);const fl=Object.assign,gl=t=>(t=>{let{apiKey:e,loadId:o,isKeyFeature:s,isPremium:r}=t;return e?"":(0,tl.l$)(o)?(0,n.oV)((0,tl.pU)(o)):s?n.u1:r?n.tS:""})(t)||(t=>{let{proxy:e,loadId:o}=t;return(0,tl.ef)(o)&&!e?(0,n.$d)((0,tl.pU)(o)):""})(t),yl=t=>{(t=>{const{chartType:e,browserType:o}=t,{dialogProps:n}=(0,hl.Mv)(o,e)||{},{dfProps:s}=n||{};fl(t,n,s,{subtitle:"Loaded from URL Query"})})(t),(t=>{const{fromDate:e,nInitFromDate:o}=t;e||(t.fromDate=o?(0,ot.vC)(o):(0,ot.vC)(2))})(t)},[xl,vl]=(0,nl.Bu)("msItemLoaded"),[bl,Cl]=(0,nl.Bu)("msItemInit"),Sl=(0,nl.Nv)((()=>({...xl(),...bl()}))),[wl]=(0,nl.iC)(Sl),Al=(0,nl.jo)(Sl,vl),jl=(0,nl.jo)(Sl,Cl),$l=t=>{wl(xl({...t}))},Tl=t=>{wl(bl({Comp:t}))},kl={},_l=t=>kl[t].configs,El=t=>{(t=>{const e=(0,l.KG)();e&&(t.chartType=e.chartType,t.browserType=e.browserType)})(t);const{chartType:e,key:o}=t;return((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e);if(!n)return!1;const r=s.length;let i=0;for(;i{Il=!1},Nl=t=>{(0,ml.Ix)(),Ll(),pl(t),(0,h.K$)(t),(t=>{let{alertCaption:e,alertItemId:o,alertDescr:n}=t;r((0,s.MZ)(": ",e,o)),r(n)})(t)},Ol=(t,e)=>{const o=((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e),r=s.find(p(o));if(r){const t=s.filter(d(o));n.configs=[r,...t]}return n})(kl,t,e);$l(o)},Ml=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});const o=(0,i.Q7)(e),{isLoadMeta:s}=e,r=s?(t=>t+"_Meta")(o):o,a=Il&&r===Dl,l=(0,m.i8)();((t,e,o)=>{const{loadId:n}=t;fl(t,e,o),(0,tl.xo)(t,n)})(e,t,{key:r,_isTs:l});const c=gl(e)||(s&&a?n.BH:a?n.f0:!l&&El(e)?n.j6:"");return!c||(((t,e)=>{if((0,n.SE)(t,e),e===n.j6)return pl(t),(0,h.K$)(t),Ol(t.chartType,t.key),void((0,nl.fp)(t.onFailed)&&t.onFailed());Nl(t),(0,nl.fp)(t.onCancel)&&t.onCancel()})(e,c),!1)},Fl=(t,e)=>{const{chartType:o,browserType:n,dialogConf:s,limitRemaining:r,key:i}=t;if(El(kl))return;const a=s||(0,ul.dM)(void 0,o),{chartSlice:l,Comp:d}=((t,e,o,n)=>{const{chartType:s,browserType:r}=o,{chartSlice:i,configs:a}=c(t,s);return i?(a.unshift(e),i.isShow=!0,{chartSlice:i}):(cl(t,s,e),{Comp:ol({browserType:r,dialogConf:n})})})(kl,e,t,a);(0,hl.g3)(o,n),l?$l(l):(Tl(d),(0,h.ql)()),(0,ml.eJ)(r),Ll()},Wl=function(t){void 0===t&&(t={}),(0,ml.eJ)(),Ll(),dl(t)},Rl=(t,e)=>{if(Ml(t,e)){const{key:t,loadId:o="Q"}=e;Il=!0,Dl=t,(0,ml.r1)(),(0,a.Z)(o).loadItem(e,Fl,Wl,Nl)}},Pl=()=>{},Bl=t=>{yl(t);const{loadId:e}=t;t.proxy=(0,tl.V_)(e);const o=(0,a.Z)(e);if(o){const{addPropsTo:e}=o;(0,nl.fp)(e)&&e(t),o.loadItem(t,Fl,Pl,Nl)}else t.alertDescr="Loader for this item hasn't found.",Nl(t)},Ul=(t,e,o)=>{(0,hl.fG)(t,e);const n=(0,ul.dM)(o,t),{chartSlice:s,Comp:r}=((t,e,o,n)=>{const{chartSlice:s}=c(t,e);return s?(s.isShow=!0,{chartSlice:s}):(cl(t,e),{Comp:ol({browserType:o,dialogConf:n})})})(kl,t,e,n);s?$l(s):(Tl(r),(0,h.ql)())},zl=t=>{$l({chartType:t})},Vl=(t,e,o)=>{const{chartSlice:n,isRemoved:s}=((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e);return n.configs=s.filter(d(o)),{chartSlice:n,isRemoved:s.length>n.configs.length}})(kl,t,o);s&&((0,m.Sf)(o),(0,hl.j3)(t,e),$l(n))},Jl=(t,e)=>{((t,e,o)=>{const{configs:n}=c(t,e);n.length===o.length&&o.forEach((t=>{const e=n.find(p(t._id));e&&(e.valueMoving=t)}))})(kl,t,e)},Kl=(t,e)=>{const o=((t,e,o)=>{const{chartSlice:n,configs:s}=c(t,e);return o?s.sort(ll(o)):s.reverse(),n})(kl,t,e);$l(o)},Zl=(t,e)=>{const o=((t,e)=>{const o=t[e]||{};return o.configs=[],o})(kl,t);(0,hl.ET)(t,e),(0,m.PL)(),$l(o)}},506:(t,e,o)=>{"use strict";o.d(e,{Ix:()=>h,M3:()=>c,bZ:()=>d,eJ:()=>u,r1:()=>p});var n=o(7343),s=o(6136);const r=(0,n.eU)(),i=r.setValue,a=(0,n.eU)(),l=t=>{a.setValue(null==t?void 0:t)},c=r.useAtomValue,d=a.useAtomValue,p=()=>i(s.lX),u=t=>{setTimeout((()=>{i(s.NR),l(t)}),450)},h=t=>{i(s.Jy),l(t)}},9466:(t,e,o)=>{"use strict";o.d(e,{T9:()=>R,V_:()=>I,ef:()=>g,hf:()=>O,i7:()=>b,l$:()=>f,pU:()=>y,xo:()=>N,ys:()=>$});var n=o(9479),s=o(5355),r=o(7343),i=o(2190);const a=()=>Object.create(null),l=Object.assign,c=[i.D7,i.Jm,i.vq,i.T2,i.pO,i.$8,i.zO,i.Kr,i.f_,i.Pj],d=[i._0,i.O2,i.fU,i.D7,i.v$,i.Me,i.Pj],p=[...d,i.bE,i.M_,i.Zh,i.ei,i.tI,i.oG,i.Z_],u="Alpha Vantage",h={DF:"",[i.Jm]:u,[i.vq]:u,[i.T2]:u,[i.Kr]:"BEA",[i.f_]:"EIA",[i.pO]:"FMP",[i.$8]:"Intrinio",[i.zO]:"Twelve Data",[i.Pj]:"WTO",[i.sd]:"CryptoCompare Information"},m=t=>e=>-1!==t.indexOf(e),f=m(c),g=m(d),y=t=>h[t]||h.DF,x=a(),v=t=>e=>{x[t]=e},b=t=>{switch(t){case i.Bs:return x[i.D7];case i.vq:case i.T2:return x[i.Jm];default:return x[t]}},C="cps",S="isAdm",w="isDrawDeltaExtrems",A="isNotZoomToMinMax",j="isAlg",$=[["View in Admin Mode",S],["Draw Axis Labels Grey",j],["Draw Deltas to Min-Max",w],["Not Zoom to Min-Max",A]],T=l(a(),{[C]:"",[S]:!1,[w]:!1,[A]:!1,[j]:!1}),k=t=>T[t],_=(t,e)=>o=>{if((0,r.XB)(o))return k(t);T[t]=!!o,(0,r.fp)(e)&&e(T[t])},E=t=>{if("http://127.0.0.1"===(""+t).slice(0,16)||""===t)return T[C]=t,!0},D=m(p),I=t=>D(t)?T[C]:"",L=(t,e)=>{(0,r.XB)(t[e])&&(t[e]=k(e))},N=(t,e)=>{l(t,{apiKey:b(e),proxy:I(e)}),L(t,w),L(t,A),L(t,j)},O=_(S),M=_(w),F=_(A),W=_(j,(t=>{t?(0,n.k)():(0,n.k)(s.Yq,s.L5)})),R=()=>({key1:v(i.D7),key2:v(i.Pj),key3:v(i.Kr),key4:v(i.N2),key5:v(i.f_),key6:v(i.Jm),key7:v(i.pO),key8:v(i.$8),key9:v(i.zO),setProxy:E,getProxy:I,[S]:O,[w]:M,[A]:F,[j]:W})},8801:(t,e,o)=>{"use strict";o.d(e,{sT:()=>G,HS:()=>z,CY:()=>K,Gw:()=>et,yN:()=>X,DX:()=>tt,xG:()=>J,C5:()=>q,_x:()=>H,QC:()=>R,rF:()=>P,pK:()=>V,sW:()=>Z,vk:()=>B,w9:()=>W,BB:()=>F});var n=o(6952),s=o.n(n);const r={groups:["Economic Metrics","Currencies","Commodities","Stocks","Indexes","Futures"].map((t=>({caption:t,lists:[{caption:"List1"},{caption:"List2"},{caption:"List3"}]})))};var i=o(3597),a=o(1990),l=o(2440),c=o(7343),d=o(4427),p=o(2823);const u=Array.isArray,h=(t,e)=>(o,n)=>o[t].find((t=>t[e]===n)),m="caption",f=t=>({isDone:!1,message:t}),g=(t,e)=>f((0,a.xu)(t,e)),y=t=>f((0,a.si)(t)),x=(t,e)=>f((0,a.Px)(t,e)),v=(t,e)=>({isDone:!1,alertItemId:t,...e}),b=(C=m,(t,e)=>t.filter((t=>t[C]!==e)));var C;const S=(t,e)=>u(t)?t.concat({...e}):[{...e}],w=(t=>(e,o,n)=>[...e.slice(0,o),{...e[o],[t]:n},...e.slice(o+1)])(m),A=(t,e,o)=>u(o)?[...o.slice(0,e),{...t},...o.slice(e)]:[{...t}],j=h("groups",m),$=h("lists",m),T=(0,p.Tg)("caption"),k=(0,p.is)(m),_="WATCH_LIST_ERC",E="Watch List:",D=(0,c.Nv)((()=>({isWatchEdited:!1,watchList:r,msEdit:{}}))),I=t=>t.watchList,L=t=>t.isWatchEdited,[N,O]=(0,c.iC)(D),M=()=>I(O()),F=(0,c.SV)(D,I),W=(0,c.jo)(D,(t=>t.msEdit)),R=((0,c.jo)(D,L),()=>(M()||{}).groups),P=t=>{const e=j(M(),t);return e?e.lists:[]},B=()=>{L(O())?s().setItem(_,M()).then((()=>{N({isWatchEdited:!1}),(0,d.BK)(i.$t,{caption:E,descr:a.CO})})).catch((t=>{console.log(t)})):(0,d.BK)(i.$t,{caption:E,descr:a.Iv})},U=(t,e)=>o=>{var n,s;n=t(M(),o),s=e,n.isDone?N({isWatchEdited:!0,watchList:{...M()},msEdit:{forActionType:s}}):N({msEdit:{messages:[n.message],forActionType:s}})},z=U(((t,e)=>{let{caption:o}=e;const n=t.groups;if(k(n,o))return y(o);const s=o?{caption:o}:{caption:"Default"};return t.groups=S(n,s),{isDone:!0}}),l.fM),V=U(((t,e)=>{let{captionFrom:o,captionTo:n}=e;const s=t.groups,r=T(s,o);return-1===r?g("group",o):k(s,n)?y(n):(t.groups=w(s,r,n),{isDone:!0})}),l.Wb),J=U(((t,e)=>{let{caption:o}=e;return t.groups=b(t.groups,o),{isDone:!0}}),l.dr),K=U(((t,e)=>{let{captionGroup:o,captionList:n}=e;const s=j(t,o);if(!s)return g("group",o);const r=s.lists;return k(r,n)?x(n,o):(s.lists=S(r,{caption:n}),{isDone:!0})}),l.$H),Z=U(((t,e)=>{let{captionGroup:o,captionListFrom:n,captionListTo:s}=e;const r=j(t,o);if(!r)return g("group",o);const i=r.lists,a=T(i,n);return-1===a?g("list",n):k(i,s)?x(s,o):(r.lists=w(i,a,s),{isDone:!0})}),l.Nt),q=U(((t,e)=>{let{captionGroup:o,captionList:n}=e;const s=j(t,o);return s?(s.lists=b(s.lists,n),{isDone:!0}):g("group",o)}),l.yq),Y=U(((t,e)=>{const{caption:o,groupCaption:n,listCaption:s,config:r}=e,{zhConfig:i}=r,{id:l,title:c,subtitle:d,itemConf:p={}}=i,u=j(t,n),h=$(u,s);if(k(h.items,o))return((t,e)=>f((0,a.Wq)(t,e)))(o,s);const m={id:l,title:c,subtitle:d,caption:o,itemConf:p};return h.items?h.items.push(m):h.items=[m],{isDone:!0}}),l.Xk),G=t=>{Y(t)},H=t=>{((t,e)=>{let{groupCaption:o,listCaption:n,caption:s}=e;const r=j(t,o),i=$(r,n);i.items=b(i.items,s)})(M(),t),N({isWatchEdited:!0,watchList:{...M()}})},Q=t=>e=>{var o;(o=t(M(),e)).isDone?N({isWatchEdited:!0,watchList:{...M()}}):(0,d.K$)(o)},X=Q(((t,e)=>{let{dragId:o,dropId:n}=e;const s=o.split(";"),r=j(t,s[0]),i=$(r,s[1]),l=T(i.items,s[2]),c=i.items[l],d=n.split(";"),p=j(t,d[0]),u=$(p,d[1]),h=d[2]?T(u.items,d[2]):0;return i.caption!==u.caption&&k(u.items,s[2])?((t,e)=>v(`${t}:${e}`,a.yJ))(d[1],s[2]):(i.items=b(i.items,s[2]),u.items=A(c,h,u.items),{isDone:!0})})),tt=Q(((t,e)=>{let{dragId:o,dropId:n}=e;const[s,r]=o.split(";"),i=j(t,s),l=$(i,r),[c,d]=n.split(";"),p=j(t,c),u=d?T(p.lists,d):0;return i.caption!==p.caption&&k(p.lists,r)?((t,e)=>v(`${t}:${e}`,a.xw))(c,r):(i.lists=b(i.lists,r),p.lists=A(l,u,p.lists),{isDone:!0})})),et=Q(((t,e)=>{let{dragId:o,dropId:n}=e;const[s]=o.split(";"),r=j(t,s),[i]=n.split(";"),a=i?T(t.groups,i):0;return t.groups=b(t.groups,s),t.groups=A(r,a,t.groups),{isDone:!0}}))},3186:(t,e,o)=>{"use strict";var n=o(5338),s=o(265),r=o.n(s),i=o(1315),a=o(4558),l=o(4616),c=o(55),d=o(8678);const p={crOptions:t=>{const e=(t=>{const e=Object.create(null);return t.forEach(((t,o)=>{e[o]=(0,c.A)(t)})),e})(t),{v:o,bT:n,cT:s,cN:r,fD:i,tD:a}=e;return{...e,title:o,key:o,value:o,browserType:n,chartType:s,columnName:r,fromDate:i,toDate:a||(0,d.Gd)()}}},{crOptions:u}=p,h=["UN","QE","FAO"],m=["USAE_BLS_1","BC_HD"],f=(t,e)=>-1!==t.indexOf(e),g=()=>{const t=window?.location?.search;if(!t||t.length>120)return;const e=u(new URLSearchParams(t));return(o=e)&&o.v&&f(m,o.cT)||f(h,o.bT)?e:void 0;var o};var y=o(9466),x=o(5952),v=o(2394),b=o(8358);const C=()=>{(0,i.vJ)((()=>b.SW?(document.addEventListener(b.n4,b.e3,!1),()=>{(0,b.Tp)(),document.removeEventListener(b.n4,b.e3,!1)}):void 0),[])};var S=o(4427);var w=o(4867),A=o(4407),j=o(6539),$=o(6409),T=o(4848);const k=t=>{let{style:e,color:o="currentColor",size:n="24",children:s}=t;return(0,T.jsx)($.A,{w:n,style:e,stroke:o,fill:"none",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:s})},_=t=>{let{style:e}=t;return(0,T.jsxs)(k,{style:e,children:[(0,T.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,T.jsx)("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"})]})},E=t=>{let{style:e}=t;return(0,T.jsxs)(k,{style:e,children:[(0,T.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,T.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,T.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"8"})]})};var D=o(509),I=o(8376),L=o(506),N=o(6136),O=o(3986);const M="#2f7ed8",F=(t,e,o)=>({backgroundColor:t,width:e+"%",transition:o,opacity:1}),W=(t,e,o)=>(0,i.ZC)(t)?((0,i.nl)(t,!1),F(e,0)):F(e,((t,e)=>t<0?0:t>=100?((0,i.nl)(e,!0),100):t)(o,t),"width 350ms linear"),R=t=>{let{color:e=M,completed:o}=t;const n=(0,O.A)(),s=(0,i.li)(!1),r=(0,i.li)(null);(0,i.vJ)((()=>{(0,i.ZC)(s)&&(0,i.nl)(r,setTimeout(n,800))})),(0,i.vJ)((()=>()=>{clearTimeout((0,i.ZC)(r))}),[]);const a=W(s,e,o);return(0,T.jsx)("div",{className:"progress-line",style:a})},P="#2f7ed8",B=(0,I.A)((()=>{const t=(0,L.M3)(),[e,o]=t===N.lX?[35,P]:t===N.NR?[100,P]:t===N.Jy?[100,"#ed5813"]:[0,P];return(0,T.jsx)(R,{completed:e,color:o})})),U=t=>{let{className:e,caption:o,title:n}=t;return(0,T.jsx)("span",{className:e,title:n,children:o})},z=t=>{let{className:e,title:o}=t;return(0,T.jsx)("span",{className:e,title:o,children:(0,T.jsxs)($.A,{w:"32",fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2",strokeWidth:"2",children:[(0,T.jsx)("rect",{ry:"1.8825414",rx:"194.14471",y:"1.434558",x:"19.176462",height:"12.460618",width:"10.85316",fill:"#8ecc2d",stroke:"#8ecc2d"}),(0,T.jsx)("rect",{ry:"1.87537",rx:"204.478",y:"16.639841",x:"8.8410215",height:"13.752699",width:"18.307165",fill:"#232f3b",stroke:"#232f3b"}),(0,T.jsx)("rect",{ry:"1.87537",rx:"204.478",y:"3.4229634",x:"2.5897937",height:"10.894996",width:"10.001963",fill:"#a487d4",stroke:"#a487d4"})]})})},V=(t,e,o)=>{const[n,s]=(0,i.J0)(t);return e((t=>o(t,s))),[n,s]};var J=o(391),K=o(7071),Z=o(3569);const q="bt-hot",Y={display:"inline-block"},G=function(t,e){void 0===e&&(e="");const o=J.dY?"":String(t+1);return{hotKey:o||void 0,caption:o+e.slice(0,3),title:e}},H=(t,e,o)=>{let{onShowDialog:n}=o;return(0,Z.createElement)(j.A,{...G(e,t.caption),key:t.type,timeout:0,className:q,onClick:(0,i.Jr)(n,t.type)})},Q=(t=>{const e=(0,J.zK)()||601;return e>600?t:e>500?3:e>360?2:1})(5),X=(t,e)=>{t&&e((e=>{if(!((t,e)=>{for(let o=0;o{let{useMsCloseDialog:e,onShowDialog:o}=t;const[n,s]=V([],e,X),r=(0,i.hb)((()=>s([])),[]);return(0,T.jsxs)("div",{style:Y,children:[(0,T.jsx)(K.A,{items:n,crItem:H,onShowDialog:o}),0!==n.length&&(0,T.jsx)(j.A,{timeout:0,className:q,caption:"CL",title:"Clean Hot Bar",onClick:r},"BT_CLEAN")]})},et={display:"inline-block",color:"#2f7ed8",paddingRight:8,fontSize:"16px",fontWeight:"bold"},ot=()=>(0,T.jsx)("span",{style:et,children:(0,L.bZ)()});var nt=o(2040),st=o(2543);const rt=`${a.DH} item__`,it=`${rt}browser`,at=`${rt}org`,lt=`${rt}watch`,ct=(t,e)=>(0,st.z7)(t,e,it),dt=(t,e,o)=>(0,st.VD)(e,(()=>(0,x.Uv)(o)),!0,t),pt=t=>t.map((t=>{let[e,o,n]=t;return dt(e,o,n)})),ut=[[at,"Central Banks",nt.hc],[at,"DBnomics",nt.yO],[at,"Energy",nt.iy],[at,"U.S. Economics",nt.rv],[at,"Commodities",nt.dI],[at,"OECD",nt.VZ]],ht=[[at,"Overview",nt.Vv],[at,"Circular Economy",nt.JL],[at,"Euro Indicators / PEEIs",nt.FJ],[at,"EU Comext",nt.a],[at,"EU FIGARO",nt.x7],[at,"EU MIP",nt.kQ],[at,"EU SDG",nt.aw]],mt=[[at,"INSEE: Statistics France",nt.RD],[at,"ONS: Statistics UK",nt.GD],[at,"Statistics Norway",nt.D3],[at,"Statistics Norway (A)",nt.Os],[at,"Statistics Sweden",nt.zC],[at,"Statistics Sweden (A)",nt.V5],[at,"Statistics Finland",nt.R5],[at,"Statistics Denmark",nt.rJ],[at,"CSO: Statistics Ireland",nt.Wr],[at,"FSO: Statistics Swiss",nt.MM]],ft=[[at,"Stock Markets",nt.Y5],[at,"NYSE by Sectors",nt.vf],[at,"NASDAQ by Sectors",nt.G9]],gt=[[at,"FAOSTAT",nt.gH],[at,"UN Comtrade",nt.vj],[at,"World Bank",nt.HY],[at,"WTO",nt.Mt]],yt=()=>(0,st.W1)(it,215,2,{p0:[ct("p1","Economics"),ct("p2","Eurostat"),ct("p3","Statistics Agencies"),ct("p4","Stock Markets"),ct("p5","World Organizations"),dt(it,"Blockchains",nt.Q),dt(it,"Currencies",nt.Rx),dt(lt,"Watch List",nt.mU),(0,st.VD)("About",S.XJ,!0,it)],p1:pt(ut),p2:pt(ht),p3:pt(mt),p4:pt(ft),p5:pt(gt)}),xt="header",vt=(0,a.SX)(xt),bt=`${xt}__icon-erc`,Ct=`${xt}__app-label`,St=`${xt}__bts-right`,wt=`popup-menu ${xt}__panel-browser`,At={verticalAlign:"middle",margin:"0 8px 3px 8px"},jt=yt(),$t=t=>{let{showSettings:e}=t;const[o,n]=(0,w.A)(),[s,r]=(0,A.ay)(n);return(0,T.jsxs)("div",{className:vt,children:[(0,T.jsx)(B,{}),(0,T.jsx)(z,{className:bt,title:"Web app ERC (Economic RESTful Client)"}),(0,T.jsx)(U,{className:Ct,caption:"ERC v0.18.0"}),(0,T.jsx)(j.A,{refBt:s,isArrow:!0,timeout:0,caption:"Topics",title:"Topics Menu",hotKey:"T",onClick:r}),(0,T.jsx)(j.A,{className:"hbt-eurostat",caption:"Eurostat",title:"Eurostat Browser",hotKey:"U",onClick:x.xf}),(0,T.jsx)(j.A,{className:"hbt-ndl",caption:"DBN",title:"DBnomics Browser",hotKey:"B",onClick:x.oB}),(0,T.jsx)(j.A,{className:"hbt-watch",caption:"Watch",title:"Watch List Browser",hotKey:"W",onClick:x.LS}),(0,T.jsx)(tt,{useMsCloseDialog:S.uq,onShowDialog:S.ui}),(0,T.jsxs)("div",{className:St,children:[(0,T.jsx)(ot,{}),(0,T.jsx)(j.A,{isPrimary:!0,title:"User Settings Dialog",hotKey:"S",timeout:500,onClick:e,children:(0,T.jsx)(_,{style:At})}),(0,T.jsx)(j.A,{className:"hbt-about",title:"About Web Application ERC",hotKey:"A",timeout:0,onClick:S.XJ,children:(0,T.jsx)(E,{style:At})})]}),(0,T.jsx)(D.A,{isShow:o,className:wt,model:jt,onClose:r})]})};var Tt=o(6984);const kt=(t,e)=>{for(let o=0;o{const o=kt(t,e);return o>-1?[...t.slice(0,o),...t.slice(o+1),t[o]]:t},Et=(t,e)=>{t.splice(t.indexOf(e),1)},Dt={zIndex:1030,position:"absolute",top:70,left:10},It=t=>(e,o)=>{e&&o((n=>{const{key:s,Comp:r,data:i}=e,{elementDialogs:a}=n;return r&&kt(a,s)>-1?n:(((t,e,o,n)=>{const s=e.indexOf(o);s>-1&&e.splice(s,1),e.push(o),t[o]=!0,e.length>n&&(t[e[0]]=!1,e.splice(0,1))})(n.hmIs,n.visibleDialogs,s,t),r?a.push(r):n.elementDialogs=_t(a,s),n.elementProps[s]||(n.elementProps[s]={toTopLayer:()=>(t=>{o((e=>{const o=e.visibleDialogs;return o[o.length-1]!==t?(e.elementDialogs=_t(e.elementDialogs,t),Et(o,t),o.push(t),{...e}):e}))})(s),onClose:()=>(t=>{o((e=>{const{hmIs:o,elementDialogs:n}=e;if(o[t]){const e=kt(n,t);e>-1&&setTimeout((()=>(0,S.zU)(n[e])),200)}return o[t]=!o[t],o[t]||Et(e.visibleDialogs,t),{...e}}))})(s)}),n.hmData[s]=i,{...n})}))},Lt=t=>{let{maxDialog:e=3}=t;const o=(0,Tt.A)((()=>It(e))),{hmIs:n,hmData:s,elementProps:r,elementDialogs:a}=V((()=>({hmIs:(0,i.Kj)(),hmData:(0,i.Kj)(),elementProps:(0,i.Kj)(),elementDialogs:[],visibleDialogs:[]})),S.ts,o)[0];return(0,T.jsx)("div",{style:Dt,children:(0,i.lZ)(a,(t=>{const e=t.key;return(0,i.i6)(t,{isShow:n[e],optionData:s[e],...r[e]})}))})},Nt=(t,e)=>{const{elBrowser:o}=t||{};o&&e((t=>[o,...t]))},Ot=t=>{let{useMsInitBrowser:e}=t;const o=V([],e,Nt)[0];return(0,T.jsxs)("div",{className:a.d6,children:[o,(0,T.jsx)(Lt,{maxDialog:3})]})};var Mt=o(2291),Ft=o(2336),Wt=o(8203),Rt=o(7144),Pt=o(2357);const Bt="#faebd7",Ut={color:Bt,display:"inline-block",position:"relative",top:-7,height:28,padding:"1px 10px 1px 9px",borderRadius:4,outline:0,textDecoration:"none",userSelect:"none",cursor:"pointer"},zt={fill:Bt,stroke:Bt,display:"inline-block",position:"relative",top:4,width:18,height:18,marginRight:8},Vt="X formerly known as Twitter",Jt=t=>{let{style:e,iconStyle:o,account:n,title:s}=t;return n?(0,T.jsxs)("a",{className:"x-link",style:{...Ut,...e},target:"_blank",href:`https://x.com/${n}`,title:s,children:[(0,T.jsxs)("svg",{viewBox:"0 0 22 20",xmlns:"http://www.w3.org/2000/svg",style:{...zt,...o},"aria-label":Vt,children:[(0,T.jsx)("title",{children:Vt}),(0,T.jsx)("path",{d:"M16.99 0H20.298L13.071 8.26L21.573 19.5H14.916L9.702 12.683L3.736 19.5H0.426L8.156 10.665L0 0H6.826L11.539 6.231L16.99 0ZM15.829 17.52H17.662L5.83 1.876H3.863L15.829 17.52Z"})]}),(0,T.jsxs)("span",{children:["@",n]})]}):null};var Kt=o(9073);const Zt=t=>{let{className:e="link",style:o,title:n,href:s,children:r}=t;return(0,T.jsxs)("a",{target:"_blank",className:e,style:o,href:(0,i.jd)(s),children:[n,r]})},qt="data-provider-link",Yt={color:"#49d87c"},Gt=t=>`https://${t}`,Ht=[["OECD",Gt("oecd.org")],["BIS",Gt("bis.org")],["ECB","European Central Bank",Gt("ecb.europa.eu")],["BOC","Bank of Canada",Gt("www.bankofcanada.ca")],["SNB","Swiss National Bank",Gt("www.snb.ch/en/")],["Ndl","Nasdaq Data Link",Gt("data.nasdaq.com")],["DBnomics",Gt("db.nomics.world")],["EI","Energy Institute",Gt("www.energyinst.org")],["Ember",Gt("ember-climate.org")],["IRENA",Gt("www.irena.org")],["Fmp","Financial Modeling Prep",Gt("financialmodelingprep.com")],["Tw","Twelve Data",Gt("twelvedata.com")],["AlphaVantage","Alpha Vantage",Gt("www.alphavantage.co")],["Eurostat",Gt("ec.europa.eu/eurostat/")],["UnComtrade","UN Comtrade",Gt("comtrade.un.org")],["WorldBank","World Bank",Gt("data.worldbank.org")],["WTO",Gt("wto.org")],["FaoStat","FAOSTAT",Gt("www.fao.org/faostat/en/#data")],["Bea","U.S. Bureau of Economic Analysis",Gt("www.bea.gov")],["Bsl","U.S. Bureau of Labor Statistics",Gt("www.bls.gov/home.htm")],["Eia","U.S. EIA",Gt("www.eia.gov")],["Intrinio",Gt("intrinio.com")],["Insee","INSEE: Statistics France",Gt("www.insee.fr/en/accueil/")],["ONS","ONS: Statistics UK",Gt("www.ons.gov.uk")],["StatNorway","Statistics Norway",Gt("www.ssb.no/en/")],["StatSweden","Statistics Sweden",Gt("www.scb.se/en/")],["StatFinland","Statistics Finland",Gt("www.stat.fi/index_en.html")],["StatDenmark","Statistics Denmark",Gt("www.dst.dk/en/")],["StatIreland","CSO: Statistics Ireland",Gt("www.cso.ie/en/")],["FSO","FSO: Statistics Swiss",Gt("www.bfs.admin.ch/bfs/en/home.html")],["CoinCap",Gt("coincap.io")],["CoinGecko",Gt("www.coingecko.com/en/")],["CoinMetrics",Gt("coinmetrics.io")],["CoinLore",Gt("www.coinlore.com")],["Coinpaprika",Gt("coinpaprika.com")],["Binance",Gt("binance.com")],["Bitstamp",Gt("www.bitstamp.net")],["Coinbase",Gt("coinbase.com")],["Bitfinex",Gt("bitfinex.com")],["GateIo","Gate.io",Gt("gate.io")],["Kraken",Gt("www.kraken.com")],["KuCoin",Gt("www.kucoin.com")],["HTX",Gt("htx.com")],["OKX",Gt("okx.com")],["Bybit",Gt("www.bybit.com")],["CryptoCom","Crypto.com",Gt("crypto.com")]],Qt={CryptoCompare:()=>(0,T.jsx)(Zt,{className:qt,href:"https://www.cryptocompare.com",title:"Crypto",children:(0,T.jsx)("span",{style:Yt,children:"Compare"})})};Ht.forEach((t=>{Qt[t[0]]=()=>{const e=(0,i.O8)(t[2])?1:0;return(0,T.jsx)(Zt,{className:qt,title:t[e],href:t[e+1],style:t[e+2]})}}));const Xt=Qt;var te=o(1327);const ee="provider__note__br",oe=Kt.ui,ne={borderLeftStyle:"solid",borderLeftWidth:2,marginLeft:-5,paddingLeft:8},se={paddingTop:6,lineHeight:1.8},re={paddingLeft:4},ie={paddingTop:4},ae={display:"inline-block",padding:"0 8px"},le={paddingRight:4},ce={padding:"8px 4px 4px 6px",lineHeight:1.4},de={color:"#607d8b"},pe=Array.isArray,ue=[Xt.DBnomics,Xt.EI,Xt.Ember,Xt.IRENA,Xt.Eurostat,Xt.FaoStat,Xt.WorldBank,Xt.BOC,Xt.Insee,Xt.ONS,Xt.StatNorway,Xt.StatSweden,Xt.StatFinland,Xt.StatDenmark,Xt.StatIreland,Xt.FSO,Xt.OECD,[Xt.Bsl,"25"],Xt.CryptoCompare,Xt.CoinCap,Xt.CoinGecko,Xt.CoinMetrics,Xt.CoinLore,Xt.Coinpaprika,Xt.Binance,Xt.Bitstamp,Xt.Coinbase],he=[Xt.Ndl,Xt.AlphaVantage,Xt.Fmp,Xt.Tw,Xt.Intrinio,Xt.WTO,[Xt.Bsl,"500"],Xt.Eia,Xt.Bea],me=[Xt.Ndl,Xt.BIS,Xt.ECB,Xt.SNB,Xt.UnComtrade,Xt.WTO,Xt.Bitfinex,Xt.CryptoCom,Xt.GateIo,Xt.Kraken,Xt.KuCoin,Xt.OKX,Xt.Bybit,Xt.HTX],fe=t=>{let{Comp:e,per:o}=t;return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(e,{}),(0,T.jsxs)(te.W,{children:[" (",o,")"]})]})},ge=t=>{let{list:e}=t;return e.map(((t,e)=>{const o=pe(t);return(0,T.jsx)("span",{style:(0,a.FG)(ae,o&&le),children:o?(0,T.jsx)(fe,{Comp:t[0],per:t[1]}):(0,T.jsx)(t,{})},e)}))},ye=(t,e)=>`(${t.length}) ${e}:`,xe=t=>{let{isClose:e}=t;return(0,T.jsx)(Rt.A,{isClose:e,caption:"Data Providers (All 47):",childStyle:ne,children:(0,T.jsxs)("div",{children:[(0,T.jsx)("p",{children:(0,T.jsx)(ge,{list:ue})}),(0,T.jsxs)(Rt.A,{caption:ye(he,"Required API Key"),style:se,openColor:oe,childStyle:re,children:[(0,T.jsx)("p",{style:ie,children:(0,T.jsx)(ge,{list:he})}),(0,T.jsx)("div",{style:ce,children:(0,T.jsxs)("p",{children:[(0,T.jsx)(te.W,{children:"Note: "}),"This product uses the Bureau of Economic Analysis (BEA) Data API but is not endorsed or certified by BEA. "]})}),(0,T.jsx)("div",{style:ce,children:(0,T.jsxs)("p",{children:[(0,T.jsx)(te.W,{children:"Note: "}),"User API key from data provider required for request. ",(0,T.jsx)("br",{className:ee}),"Can be set in ",(0,T.jsx)("span",{style:de,children:"SETTINGS [s]"}),"."]})})]}),(0,T.jsxs)(Rt.A,{caption:ye(me,"Required Local Http Proxy"),style:se,openColor:oe,childStyle:re,children:[(0,T.jsx)("p",{style:ie,children:(0,T.jsx)(ge,{list:me})}),(0,T.jsx)("div",{style:ce,children:(0,T.jsxs)("p",{children:[(0,T.jsx)(te.W,{children:"Note: "}),"Local Http Proxy is required for data APIs without CORS. ",(0,T.jsx)("br",{className:ee}),"Could be set in ",(0,T.jsx)("span",{style:de,children:"SETTINGS [s]"}),"."]})})]})]})})};var ve=o(8885),be=o(540);const Ce=t=>{let{id:e}=t;return(0,T.jsx)("use",{href:`css/sprite.svg#${e}Logo`})},Se=t=>{let{ariaLabel:e,className:o,href:n,id:s,svgProps:r}=t;return(0,T.jsx)("a",{"aria-label":e,className:(0,a.PX)("logo-item",o),href:(0,i.jd)(n),children:(0,T.jsx)(be.A,{...r,"aria-hidden":"true",children:(0,T.jsx)(Ce,{id:s})})})},we="logo-item data-provider-logo",Ae=t=>{let{className:e=we,href:o,caption:n,ariaLabel:s=n}=t;return(0,T.jsx)("a",{"aria-label":s,className:e,href:(0,i.jd)(o),children:n})},je={fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"1.414"},$e=[["Nasdaq Data Link","logo-ndl","https://data.nasdaq.com","NDLSemi",{w:"215",h:"36"}],["GitHub Repository","logo-github","https://github.com/ZhnZhn/ZhnZhn.github.io","GitHub",{...je,w:"16"}],["React","logo-react","https://reactjs.org","React",{...je,w:"600"}],["Highcharts","logo-highcharts","https://www.highcharts.com","Highcharts",{...je,w:"425.197",h:"141.732"}]],Te=[["https://ec.europa.eu/eurostat","eurostat","Eurostat"],["https://comtrade.un.org","UN Comtrade"],["https://www.fao.org/faostat/en/#data","FAOSTAT"]],ke=t=>{let[e,o,n,s,r]=t;return(0,T.jsx)(Se,{ariaLabel:e,className:o,href:n,id:s,svgProps:r},s)},_e=t=>{let[e,o,n]=t;return(0,T.jsx)(Ae,{href:e,caption:o,ariaLabel:n},o)},Ee=()=>(0,T.jsxs)("div",{className:"logo-container",children:[(0,T.jsx)(K.A,{items:$e,crItem:ke}),(0,T.jsx)(K.A,{items:Te,crItem:_e})]}),De=(0,a.Dq)("about-container"),Ie=(0,a.nV)(),Le=(0,a.lp)("#80c040"),Ne={height:"94%"},Oe={paddingLeft:12,paddingRight:5,lineHeight:1.4,color:"gray",fontWeight:"bold"},Me={lineHeight:1.8},Fe={lineHeight:1.4},We={marginBottom:"0.8em"},Re={marginBottom:"0.6em"},Pe={marginBottom:4},Be={marginTop:4},Ue={marginLeft:12},ze={color:"#80c040"},Ve={color:"#f44336"},Je=["Please, choose a data source Browser from Topics [t]","Next, choose a dataset menu item in the the opended up Browser","Select params and enter query date in the opened up draggable Dialog","Click a button Load"],Ke=!(0,J.WB)(),Ze=()=>{const[t,e,o,n]=(0,Mt.A)(!0);return(0,S.HP)((t=>{t&&(t.is?e():o())})),(0,T.jsxs)(Pt.A,{isShow:t,className:De,animationClass:"show-cont",onKeyDown:n,children:[(0,T.jsx)(Ft.A,{caption:"About",onClose:o,children:(0,T.jsx)(Jt,{style:Ue,account:"webapperc",title:"X / Twitter page @webapperc with chart examples"})}),(0,T.jsx)(Wt.A,{className:Ie,style:Ne,children:(0,T.jsxs)("div",{style:Oe,children:[(0,T.jsxs)("p",{style:Pe,children:[(0,T.jsx)("span",{style:ze,children:"ERC (Economic RESTful Client) "}),(0,T.jsx)("span",{children:"is a web app that gives the ability to explore, visualize and compose economic and financial data mostly to charts from open and private data providers."})]}),(0,T.jsx)(xe,{isClose:Ke}),(0,T.jsx)(ve.A,{className:"black",stepStyle:Le,titles:Je}),(0,T.jsx)("p",{style:Be,children:"The result will be shown in a chart in a resizebale container."}),(0,T.jsx)("p",{style:We,children:"Also it's possible to export the chart to PNG, JPG, SVG or print to PDF."}),(0,T.jsxs)("p",{style:Re,children:[(0,T.jsx)("span",{style:Ve,children:"Attention: "}),(0,T.jsxs)("span",{children:["For one item from ",(0,T.jsx)(te.W,{children:"Dialog"})," can be only one ",(0,T.jsx)(te.W,{children:"Chart item"})," in a container. More information about a dataset can be found on a ",(0,T.jsx)(te.W,{children:"tab Info of Chart item."})]})]}),(0,T.jsxs)(Rt.A,{caption:"More...",style:Fe,ocStyle:Me,children:[(0,T.jsxs)("p",{style:We,children:["After clicking a ",(0,T.jsx)(te.W,{children:"button Show"})," in a Dialog will be an opened up ",(0,T.jsx)(te.W,{children:"Chart container"})," with charts or empty. After closing a ",(0,T.jsx)(te.W,{children:"Chart container"})," all charts remains. In one time max three ",(0,T.jsx)(te.W,{children:"Dialogs"})," can be opened."]}),(0,T.jsxs)("p",{style:We,children:["Some open and private data providers require user's ",(0,T.jsx)(te.W,{children:"API Key"}),"."]}),(0,T.jsxs)("p",{style:We,children:["Data providers API Keys can be set on the ",(0,T.jsx)(te.W,{children:"tab ApiKeys, dialog Settings [s]"}),"."]}),(0,T.jsxs)("p",{style:We,children:["Also for loading data from data providers with HTTP protocol required ",(0,T.jsx)(te.W,{children:"HTTPS proxy server"}),", by default settled in the ",(0,T.jsx)(te.W,{children:"tab Options, dialog Settings [s]"}),"."]}),(0,T.jsxs)("p",{style:We,children:["There is three UI theme in the web app ERC: ",(0,T.jsx)(te.W,{children:"Dark, Light, and Sand"})," can be set on ",(0,T.jsx)(te.W,{children:"tab Options, dialog Settings [s]"}),". All user's settings keep in browser's memory only for a current web session."]})]}),(0,T.jsx)(Ee,{}),(0,T.jsx)("p",{children:(0,T.jsx)(te.W,{children:"*Logos Fair Use."})})]})})]})},qe=(t,e)=>{t&&t.Comp&&e((e=>[t.Comp,...e]))},Ye=t=>{let{className:e=a.d6,useMsInit:o}=t;const n=V([],o,qe)[0];return(0,T.jsx)("div",{className:e,children:n})};var Ge=o(7599);const He="modal-root",Qe=`${He} show-modal`,Xe=t=>{let{isShow:e,onClose:o,children:n}=t;const[s,r]=e?[Qe,a.CQ]:[He,a.JS];return(0,T.jsx)("div",{...(0,Ge.g3)(e),className:s,style:r,onClick:o,children:n})};var to=o(4765);const eo=(t,e)=>{if(t){const o=t.modalDialogType;(0,to.q)(o).then((n=>e((e=>(n&&!e.inits[o]&&(e.dialogs.push({type:o,Comp:n}),e.inits[o]=!0),((t,e,o)=>(t.shows[e]=!0,t.data[e]=o,t.isShow=!0,t.currentDialog=e,{...t}))(e,o,t))))))}},oo=()=>{const[t,e]=V((()=>({isShow:!1,inits:(0,i.Kj)(),shows:(0,i.Kj)(),data:(0,i.Kj)(),dialogs:[],currentDialog:null})),S.i6,eo),{isShow:o,currentDialog:n,shows:s,data:r,dialogs:a}=t,l=(0,i.hb)((t=>{e((e=>(e.shows[t]=!1,e.isShow=!1,e.currentDialog=null,{...e})))}),[e]);return(0,T.jsx)(Xe,{isShow:o,onClose:(0,i.Jr)(l,n),children:a.map((t=>{let{type:e,Comp:o}=t;return(0,T.jsx)(o,{isShow:s[e],data:r[e],onClose:(0,i.Jr)(l,e)},e)}))})},no=(t,e)=>{window.fetch&&fetch("./data/build.json",{cache:"no-cache"}).then((t=>{if(t.ok)return t.json();throw new Error(`Check build: Response ${t.status}`)})).then((o=>{const{build:n=""}=o;n!==t&&-1===document.cookie.indexOf("erc")&&e({buildDate:t})})).catch((t=>{console.log(t.message)}))},so=(0,a.aM)("app-container"),ro=(0,i.Jr)(l.l0,(0,y.T9)()),io=()=>((0,i.vJ)((()=>{(()=>{const t=g();t&&(0,l.FW)({options:t})})(),no("26-12-2024",l.xI)}),[]),C(),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)($t,{showSettings:ro}),(0,T.jsxs)("div",{className:so,children:[(0,T.jsx)(Ot,{useMsInitBrowser:x.sS}),(0,T.jsx)(Ze,{}),(0,T.jsx)(Ye,{useMsInit:v.we})]}),(0,T.jsx)(oo,{})]}));var ao=o(7759);let lo=(console||{}).warn;const co=()=>{document.getElementById("preloader")&&document.body.removeChild(document.getElementById("preloader")),(0,n.H)(document.getElementById("app")).render((0,T.jsx)(io,{}))};window&&window.location&&window.location.href.indexOf("https://zhnzhn.github.io")>-1&&(r().config("https://f3e7d09d8d0748af80791d51e5bc83e3@sentry.io/138634",{whitelistUrls:["zhnzhn.github.io"]}).install(),lo&&(console.warn=function(){var t;"string"==typeof(t=arguments.length<=0?void 0:arguments[0])&&-1!==t.indexOf("Highcharts warning")||lo(...arguments)})),(0,ao.A)(),(()=>{const t=window.preloader;t&&"function"==typeof t.hiding?(t.hiding(),setTimeout(co,100)):co()})()},3326:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(704);const s=(t,e)=>parseFloat((0,n.default)(t).minus(e).toString())},6559:(t,e,o)=>{"use strict";o.d(e,{Mg:()=>m,Nh:()=>f,P0:()=>h,W7:()=>d,f7:()=>g,h$:()=>y,tM:()=>p});var n=o(704),s=o(3730),r=o(7441);const i=t=>t,a=function(t,e){void 0===t&&(t=0);const o=(0,n.default)(t.toString().replace(/\s/g,""));return(0,s.Et)(e)?o.round(e):o},l=t=>{if(t instanceof n.default)return t;try{return new n.default(t)}catch(t){return new n.default(0)}},c=t=>{const e=t.round(4);return e.gt(1e6)?t.toFixed(0):e},d=function(t,e){if(void 0===e&&(e=2),null==t)return null;const o=parseFloat(t);return o-o==0?parseFloat((0,n.default)(t).toFixed(e)):o},p=t=>{let{bValue:e=(0,n.default)(0),bTotal:o=(0,n.default)(0)}=t;return e=l(e),o=l(o),o.eq((0,n.default)(0))?(0,n.default)(0).toFixed(2):e.times(100).div(o).abs().toFixed(2)},u=t=>t.toString(),h=function(t){let{nowValue:e,prevValue:o,fnFormat:n=i,dfR:s}=void 0===t?{}:t;const l=a(e,s),d=a(o,s),h=d.minus(l),m=h.gt(0)?r.sW:h.lt(0)?r.dj:r._l,f=p({bValue:h,bTotal:d}),g=c(l),y=c(h.abs());return{value:u(n(g)),_value:u(g),delta:u(n(y)),_deltaAbs:u(y),percent:u(f)+"%",_percentAbs:u(f),direction:m}},m=t=>{const e=(0,n.default)(t);return e.gt("10")?parseInt(e.toFixed(0),10):parseFloat(e.toFixed(2))},f=t=>(0,s.Et)(t)?d(t,t<1e-4?8:t<10?4:t<1e4?2:0):t,g=t=>(t||"")+Date.now().toString(36)+Math.random().toString(36).slice(2,9),y=(t,e,o)=>t>e&&t{"use strict";o.d(e,{A:()=>r});var n=o(704);const s=t=>"number"==typeof t&&t-t==0,r=(t,e)=>s(t)&&s(e)?0===e?0===t?0:t>0?-100:100:0===t?null:parseFloat((0,n.default)(e).minus(t).div(Math.abs(t)).times(100).toFixed(2)):null},9901:(t,e,o)=>{"use strict";o.d(e,{iv:()=>h,XR:()=>y,D4:()=>g,DZ:()=>f,YV:()=>u,so:()=>x,i2:()=>v,JZ:()=>b,S8:()=>m});var n=o(704),s=o(6559),r=o(6517);const i=t=>function(e,o){void 0===o&&(o=1);const[n,s]=(0,r.bv)(e),i=parseInt(o,10);return n&&(0,r.Et)(i)&&i>0&&e.length>i?((t,e,o,n,s)=>{const r=[],i=t.length,a=e-1;let l,c=t[0],d=e;for(;do=>{const n=(0,r.bv)(o)[1];if(!n)return;const i=(t,o)=>{const s=n(t);return e(s,o)};let a=t,l=0;for(;l(0,r.Et)(t)&&(0,r.Et)(e)?(0,a.A)(e,t):null)),m=t=>{const[e,o]=(0,r.bv)(t);if(!e)return[];const s=o(t[0]);if(!(0,r.Et)(s)||0===s)return[];const i=[];let a=0;for(;a(0,r.Et)(t)&&t(0,r.Et)(t)&&t>e?t:e)),y=t=>{if(!c(t))return t;const e=(0,r.Ew)(t[0]);if(!e)return t;const o=(0,r.WM)(t,e);o&&t.splice(0,o);const n=(0,r.mU)(t,e);return n&&t.splice(n),t},x=t=>{if(!c(t))return!1;const e=(0,r.Ew)(t[0]);for(let o=0;o{const[e,o]=(0,r.bv)(t);if(!e)return[];let s,i=(0,n.default)(0),a=0,l=0;for(;l{const[e,o]=(0,r.bv)(t);if(!e)return[];const n=t.map(o).sort(((t,e)=>t-e)),s=t.length,i=s/2,a=i%2==0?Math.round((n[i-1]+n[i])/2):n[Math.round(i)-1];return[[e(t[0]),a],[e(t[s-1]),a]]}},6517:(t,e,o)=>{"use strict";o.d(e,{Et:()=>i,Ew:()=>l,WM:()=>c,ar:()=>p,bv:()=>a,dG:()=>u,mU:()=>d});var n=o(6559);const s=Array.isArray,r=t=>"number"==typeof t&&t-t==0,i=r,a=t=>{const e=(t=>{var e;if(s(t))for(let o=0;ot[0],t=>t[1]]:[t=>t.x,t=>t.y]:[]},l=t=>{if(t)return s(t)?t=>t[1]:r(t.y)?t=>t.y:void 0},c=(t,e)=>{let o=-1,n=0;for(;n{let o=0;for(let n=t.length-1;n>-1;n--){const s=e(t[n]);if(0!==s&&null!==s)break;o=n}return o},p=t=>{const e=[],o=[],[n,s]=a(t);let r;return n&&t.forEach((t=>{r=s(t),i(r)&&(e.push(r),o.push(n(t)))})),[e,o]},u=(t,e,o)=>t.reduce(((t,s,r)=>(t.push([s,(0,n.W7)(e[r],o)]),t)),[])},2823:(t,e,o)=>{"use strict";o.d(e,{Gu:()=>r,MZ:()=>l,Tg:()=>a,is:()=>i});const n=Array.isArray,s=(t,e,o)=>t.findIndex(((t,e)=>o=>o[t]===e)(e,o)),r=t=>e=>!!n(t)&&-1!==t.indexOf(e),i=t=>(e,o)=>!!n(e)&&-1!==s(e,t,o),a=t=>(e,o)=>n(e)?s(e,t,o):-1,l=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;n{"use strict";o.d(e,{J:()=>s});const n=()=>{},s=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),s=1;s{"use strict";o.d(e,{j:()=>s,v:()=>r});var n=o(3730);const s=t=>Object.assign(Object.create(null),t),r=(t,e)=>{const o=s(t);return t=>(0,n.O8)(t)&&o[t]||e}},8678:(t,e,o)=>{"use strict";o.d(e,{A4:()=>S,CA:()=>k,Ch:()=>C,Cp:()=>x,Cw:()=>T,Gd:()=>y,KI:()=>w,L6:()=>I,O1:()=>b,R4:()=>R,bX:()=>m,cY:()=>$,hk:()=>v,m2:()=>E,nF:()=>f,r$:()=>A,s2:()=>D,sg:()=>F,vC:()=>g,wF:()=>j,zV:()=>_});var n=o(3730);let s;const r=t=>parseInt(t,10),i=t=>t<10?"0"+t:""+t,a=t=>r(t)-1,l=t=>(0,n.O8)(t)?t.split("-"):[],c=(t,e,o,s)=>(0,n.O8)(t)&&t.length!==e||((t,e,o)=>(0,n.yr)(t)||to)(r(t),o,s),d=function(t,e,o,n,s){void 0===n&&(n=1990),void 0===s&&(s=0);const r=(new Date).getFullYear();return!(c(t,4,n,r+s)||c(e,2,1,12)||c(o,2,1,31))},p=t=>`${i(t.getUTCHours())}:${i(t.getUTCMinutes())}`,u=(t,e)=>t.getUTCFullYear()-e+"-"+("0"+(t.getUTCMonth()+1)).slice(-2)+"-"+("0"+t.getUTCDate()).slice(-2),h={january:0,february:1,march:2,april:3,may:4,june:5,july:6,august:7,september:8,october:9,november:10,december:11},m=(t,e,o)=>{if(!(0,n.O8)(t))return!1;const s=t.trim();if(10!==s.length)return!1;const[r,i,a]=s.split("-");return d(r,i,a,o,e)},f=t=>""===t||m(t),g=function(t){void 0===t&&(t=2);const e=new Date;return u(e,t)},y=()=>g(0),x=t=>(0,n.O8)(t)?t.slice(0,4):"",v=()=>s||(s=x(g(0))),b=t=>{const e=t||new Date;return`${u(e,0)} ${p(e)} UTC`},C=t=>{if(!(0,n.Qv)(t)||!isFinite(t))return"";const e=new Date(t);return"Invalid Date"===e.toString()?"":("0"+e.getUTCDate()).slice(-2)+"-"+("0"+(e.getUTCMonth()+1)).slice(-2)+"-"+e.getUTCFullYear()},S=t=>{const[e,o,n]=l(t);return d(n,o,e)?Date.UTC(n,a(o),e):NaN},w=(t,e)=>S(t)<=S(e),A=(t,e)=>{const[o,n,s]=l(t);return d(s,n,o,e)},j=(t,e)=>new Date(t,e,0).getDate(),$=function(t,e){void 0===e&&(e={});const o=l(t),s=o.length,[i,c,d]=o;if(3===s)return Date.UTC(i,a(c),d);if(2===s&&""!==c){const t=r(c);if((0,n.yr)(t)){if(p=o[1],(0,n.O8)(p)&&"Q"===p[0].toUpperCase()){const t=r(o[1][1]);if((0,n.yr)(t))return t;const e=j(o[0],3*t);return Date.UTC(o[0],3*t-1,e)}return t}{const e=j(i,t);return Date.UTC(i,t-1,e)}}var p;if(1===s){const{y:t=0}=e,o=r(i)-t;return(0,n.yr)(o)?o:Date.UTC(o,11,31)}return(0,n.Qv)(t)?Date.UTC(t,11,31):Date.UTC(i,a(c),d)},T=(t,e)=>m(t)?(t=>{const e=C(t);if(e){const[t,o,n]=e.split("-");return`${n}-${o}-${t}`}return""})($(t)+864e5*e):"",k=function(t,e){void 0===e&&(e=" ");const[o,n=""]=(t||"").split(e),[s,r,i]=o.split("-"),[l="",c="",d=""]=n.split(":");return Date.UTC(s,a(r),i,l,c,d)},_=(t,e)=>{if(!A(t))return new Date(0);if(!(0,n.E6)(e))return new Date(S(t));const o=new Date(S(t));return new Date(o.setUTCMonth(o.getUTCMonth()+e))},E=t=>{const e=t.split("-")[2];return S(`01-01-${e}`)},D=t=>{const e=$(t);return Math.ceil(((new Date).getTime()-e)/864e5)},I=t=>{if(!(0,n.O8)(t))return-1;const e=h[String(t).toLowerCase()];return(0,n.XB)(e)?-1:e},L=t=>t||"",N=t=>L(t).split("-"),O=t=>"31-12"===L(t).slice(0,5),M=t=>"30"===t||"31"===t,F=t=>{let{date:e,dateTo:o}=t;return((t,e)=>O(t)&&O(e)?L(t).slice(6,10):"")(e,o)||((t,e)=>{const[o,n,s]=N(t),[i,a,l]=N(e),c=r(n),d=c-r(a),p=r(s)-r(l);return c%3==0&&M(o)&&M(i)&&(3===d&&0===p||-9===d&&1===p)?`Q${n/3} ${s}`:""})(e,o)||e},W=(t,e)=>t.slice(5)+e+t.slice(0,4),R=t=>{const e=L(t);return"Q"===e[5]?W(e," "):7===e.length&&"-"===e[4]?W(e,"-"):e}},55:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});const n=o(3823).default.sanitize,s=t=>n(t,{USE_PROFILES:{html:!0}})},124:(t,e,o)=>{"use strict";o.d(e,{Z:()=>m,x:()=>h});const n="Request Error",s={403:"403: Forbidden.",404:"404: Resource is not existed.",429:"429: Too many request in a given amount of time (rate limiting).",503:"503: Back-end server is at capacity."},r=t=>"function"==typeof t,i=Array.isArray,a=Object.assign,l=()=>{},c=function(t,e){return void 0===e&&(e=n),{errCaption:e,message:t}},d=(t,e,o)=>{if(s=e,!i(n=t)||-1===n.indexOf(s))throw c(o);var n,s},p=t=>{let{response:e,propName:o,status:n,getLimitRemaiming:s}=t;const i=e.headers,a=i&&r(i.get)&&r(s)?s(i):void 0;return Promise.all([Promise.resolve(a),e[o](),Promise.resolve(n)])},u=t=>function(e){let{uri:o,option:i={},optionFetch:u,getLimitRemaiming:h,onCheckResponse:m=l,onFetch:f,onCompleted:g,onFailed:y,onCatch:x}=e;o?fetch(o,u).then((e=>{const{status:o,statusText:n,ok:r}=e,{resErrStatus:a}=i;if(o>=200&&o<400||r)return p({response:e,propName:t,getLimitRemaiming:h});if(400===o)return d(a,o,"400: Bad request."),p({response:e,propName:t,status:o});if(s[o])throw c(s[o]);if(o>400&&o<500)return d(a,o,`${o}: ${n}`),p({response:e,propName:t,status:o});if(o>=500&&o<600)throw c(`${o}: ${n}`,"Response Error");return[void 0,{},o]})).then((t=>{let[e,o,n]=t;const s=m(o,i,n);i.limitRemaining=e,f({json:s||o,option:i,onCompleted:g})})).catch((t=>{r(x)?x({error:t,option:i,onFailed:y}):console.log(t)})):r(y)&&setTimeout((()=>y(a(i,{alertCaption:n,alertDescr:"Item url isn't specified by adapter."}))),0)},h=u("json"),m=u("text")},3695:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(2908),s=o.n(n),r=o(3730);const i=/\s/g,a=function(t,e){if(0===t)return"0";if(!t)return(0,r.O8)(e)?e:"0";if(t<1e3&&t>-1e3)return""+t;const o=(""+t).replace(i,""),n=(t=>{const e=t.split(".");return e[1]?e[1].length:0})(o);return s().numberFormat(o,n,"."," ")}},5856:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(2908),s=o.n(n);const r=(t,e,o)=>t>e&&t{const e=(""+t).split(".")[1];return e?e.length:0},a=(t,e)=>{if("number"!=typeof(o=t)||o-o!=0)return"0.00";var o;if(r(t,-.01,.01))return""+t;const n=e?i(t):(t=>{const e=i(t);return r(t,-1,1)?e<5?e:4:r(t,-1e5,1e5)?e<3?e:2:0})(t);return s().numberFormat(t,n,"."," ")}},2401:(t,e,o)=>{"use strict";o.d(e,{WO:()=>r,eW:()=>n,z:()=>s});const n=t=>{const{caption:e,c:o}=t??{};return""+(e??o??"")},s=function(t,e){let{isUpper:o,dfValue:n=""}=void 0===e?{}:e;const{value:s,v:r}=t??{},i=s??r,a="number"==typeof i?""+i:i??""+n;return o?a.toUpperCase():a},r=(t,e)=>[s(t,e),n(t)]},3243:(t,e,o)=>{"use strict";o.d(e,{Q:()=>n});const n=(t,e)=>-1!==(t||"").indexOf(e)},3730:(t,e,o)=>{"use strict";o.d(e,{E6:()=>l,Ep:()=>m,Et:()=>r,F5:()=>i,O8:()=>d,Qv:()=>s,XB:()=>p,bj:()=>c,fp:()=>u,sA:()=>h,uj:()=>f,yr:()=>a});const n=t=>e=>typeof e===t,s=n("number"),r=t=>s(t)&&t-t==0,i=t=>r(t)&&t>0,a=Number.isNaN,l=Number.isInteger,c=n("boolean"),d=n("string"),p=n("undefined"),u=n("function"),h=t=>"object"==typeof t&&null!==t,m=Array.isArray,f=t=>m(t)&&t.length>0},5672:(t,e,o)=>{"use strict";o.d(e,{A:()=>s});var n=o(2908);const s=o.n(n)().merge},9270:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});const n=function(t){for(var e=arguments.length,o=new Array(e>1?e-1:0),n=1;ne(t)),t)}},9009:(t,e,o)=>{"use strict";o.d(e,{O:()=>s});var n=o(3730);const s=t=>(0,n.O8)(t)&&t?t[0].toUpperCase()+t.slice(1):""},5338:(t,e,o)=>{"use strict";var n=o(6842);e.H=n.createRoot,n.hydrateRoot},1020:(t,e,o)=>{"use strict";var n=o(3569),s=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(t,e,o){var n,r={},c=null,d=null;for(n in void 0!==o&&(c=""+o),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(d=e.ref),e)i.call(e,n)&&!l.hasOwnProperty(n)&&(r[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===r[n]&&(r[n]=e[n]);return{$$typeof:s,type:t,key:c,ref:d,props:r,_owner:a.current}}e.Fragment=r,e.jsx=c,e.jsxs=c},4848:(t,e,o)=>{"use strict";t.exports=o(1020)},704:(t,e,o)=>{t.exports=o(2833)(192)},3940:(t,e,o)=>{t.exports=o(2833)(264)},3823:(t,e,o)=>{t.exports=o(2833)(418)},3569:(t,e,o)=>{t.exports=o(2833)(540)},265:(t,e,o)=>{t.exports=o(2833)(687)},2908:(t,e,o)=>{t.exports=o(2833)(783)},6952:(t,e,o)=>{t.exports=o(2833)(790)},3177:(t,e,o)=>{t.exports=o(2833)(834)},6842:(t,e,o)=>{t.exports=o(2833)(961)},2833:t=>{"use strict";t.exports=lib_vendor}},t=>{var e;e=3186,t(t.s=e)}]); \ No newline at end of file diff --git a/app/erc_4f3e407bbeaed81d8bab.js.LICENSE.txt b/app/erc_d182f666990be07c8829.js.LICENSE.txt similarity index 100% rename from app/erc_4f3e407bbeaed81d8bab.js.LICENSE.txt rename to app/erc_d182f666990be07c8829.js.LICENSE.txt diff --git a/app/modal-dialogs_eca4ff64baba074fce5f.js b/app/modal-dialogs_eca4ff64baba074fce5f.js new file mode 100644 index 0000000000..72182cf55f --- /dev/null +++ b/app/modal-dialogs_eca4ff64baba074fce5f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkweb_app_erc=self.webpackChunkweb_app_erc||[]).push([[430],{299:(t,e,i)=>{i.r(e),i.d(e,{default:()=>yt});var o=i(5672),s=i(6559),n=i(1315),l=i(4575),a=i(4867),r=i(6984),h=i(6072);const c={style:{color:"black"}},d={xAxis:{labels:c},yAxis:{tickColor:"black",labels:c}},p={title:c},u={plotOptions:{area:{color:"black"},spline:{color:"black"},line:{color:"black"}}},x=(t,e)=>({caption:t,value:e});var y=i(6912),m=i(2400),A=i(761),g=i(2357),C=i(1205),b=i(6539),f=i(6476),_=i(4848);const j={display:"inline-block",color:"#1b75bb",fontSize:"16px",fontWeight:"bold"},S={marginTop:10},w={...j,width:100,paddingRight:5,textAlign:"right"},k={...j,padding:"0 5px 0 10px"},v={width:60,height:30,marginLeft:0},W={width:250,height:30,marginLeft:0},E=function(t,e,i){return void 0===e&&(e=-70),void 0===i&&(i="9px"),{html:t,style:{left:0,top:e,color:"#909090","font-size":i}}},R={},D=[{caption:"PNG image",value:void 0},{caption:"JPEG image",value:{type:"image/jpeg"}},{caption:"SVG vector image",value:{type:"image/svg+xml"}}],I=D[0],L=(t,e)=>t&&t.value||e,T=t=>({text:(0,n.y5)(t)}),B=(0,l.A)((t=>{let{isShow:e,data:i=R,onClose:l}=t;const[c,j]=(0,a.A)(!0),[B,z]=(0,a.A)(!0),[V,$]=(0,a.A)(!0),P=(0,n.li)({}),N=(0,n.li)(null),O=(0,n.li)([{caption:"D",onClick:j},{caption:"T",onClick:z},{caption:"S",onClick:$}]),Y=(0,r.A)((()=>[x("Default",{}),x("Default + Black Axis",(0,o.A)(!1,{},d)),x("Default + Black Axis + Black Title",(0,o.A)(!1,{},d,p)),x("All Black",(0,o.A)(!1,{},d,p,u))])),Z=(0,n.li)(),H=(0,n.li)(),M=(0,n.li)(),G=(0,n.li)(),[J,K]=(0,n.Kr)((()=>[t=>(0,n.nl)(P,L(t,{})),t=>(0,n.nl)(N,L(t,null))]),[]),{chart:q}=i,F=(0,h.A)((()=>{const[t,e]=((t,e,i)=>{let{chartWidth:o,chartHeight:n}=t;return[(0,s.h$)(e,351,2001)?e:o,(0,s.h$)(i,251,1001)?i:n]})(q,(0,n.y5)(Z),(0,n.y5)(H)),i=(0,o.A)(!0,{chart:{width:t,height:e},title:T(M),subtitle:T(G),labels:{items:[E("Web app ERC https://zhnzhn.github.io"),E(`DataSource: ${q.userOptions.zhConfig?.dataSource??""}`,e-90,"10px")]}},(0,n.ZC)(P));q.exportChartLocal((0,n.ZC)(N),i),l()})),Q=(0,n.li)([(0,_.jsx)(b.A,{caption:"Export",isPrimary:!0,onClick:F},"export")]),{chartWidth:U,chartHeight:X,options:tt}=q,et=tt.title.text,it=tt.subtitle.text;return(0,_.jsxs)(m.A,{caption:"Customize Export Chart",isShow:e,commandButtons:(0,n.ZC)(Q),onClose:l,children:[(0,_.jsx)(A.A,{buttons:(0,n.ZC)(O)}),(0,_.jsx)(g.A,{isShow:c,children:(0,_.jsxs)(y.st,{children:[(0,_.jsx)("span",{style:w,children:"Dimension:"}),(0,_.jsx)("span",{style:k,children:"Width"}),(0,_.jsx)(C.A,{refEl:Z,type:"number",placeholder:U,initValue:U,style:v,min:351,max:2001}),(0,_.jsx)("span",{style:k,children:"Height"}),(0,_.jsx)(C.A,{refEl:H,type:"number",placeholder:X,initValue:X,style:v,min:251,max:1001})]})}),(0,_.jsxs)(g.A,{isShow:B,children:[(0,_.jsxs)(y.st,{style:S,children:[(0,_.jsx)("span",{style:w,children:"Title"}),(0,_.jsx)(C.A,{refEl:M,initValue:et,style:W})]}),(0,_.jsxs)(y.st,{children:[(0,_.jsx)("span",{style:w,children:"Subtitle"}),(0,_.jsx)(C.A,{refEl:G,initValue:it,style:W})]})]}),(0,_.jsx)(g.A,{isShow:V,children:(0,_.jsxs)(y.st,{style:S,children:[(0,_.jsx)("span",{style:w,children:"Style"}),(0,_.jsx)(f.A,{width:"250",options:Y,placeholder:"Default",onSelect:J})]})}),(0,_.jsxs)(y.st,{style:S,children:[(0,_.jsx)("span",{style:w,children:"Export As"}),(0,_.jsx)(f.A,{width:"250",options:D,placeholder:I.caption,onSelect:K})]})]})}));var z=i(2190),V=i(4250),$=i(2394),P=i(8632),N=i(5317),O=i(7591),Y=i(9288),Z=i(9517);const H={width:280},M={display:"inline-block",maxWidth:295},G={marginBottom:10},J={display:"flex",alignItems:"center",margin:"8px 5px 0 5px",lineHeight:1.5,fontWeight:"bold"},K={color:"#1b75bb",display:"inline-block",width:100,paddingRight:5,textAlign:"right",fontSize:"16px"},q={paddingTop:0},F={marginLeft:8},Q=t=>`TIME_SERIES_${t}_ADJUSTED`,U=[...[{c:"Daily Adjusted (100)",r:`${Q("DAILY")}&outputsize=compact`},{c:"Weekly Adjusted",r:Q("WEEKLY")},{c:"Monthly Adjusted",r:Q("MONTHLY")}].map((t=>{let{c:e,r:i}=t;return{caption:`Alpha Vantage: ${e}`,value:z.Jm,route:i,dfProps:{dfFn:"EOD",dfSubId:"I"}}}))],X=U[0],tt=(0,Y.O)(void 0,"t1"),et=(0,l.A)((t=>{let{isShow:e,data:i,onClose:o}=t;const s=(0,n.li)(),[l,r]=(0,a.A)(!0),[c,d]=(0,a.A)(),p=(0,n.li)([{caption:"L",title:"Click to toggle labels",onClick:r},{caption:"O",title:"Click to toggle options",onClick:d}]),[u,x]=(0,V.A)(),[y,C]=(0,V.A)(),b=(0,h.A)((()=>{i&&(0,n.fp)(i.onShow)&&i.onShow()})),f=(0,h.A)((()=>{const{item:t,browserType:e,chartContainerType:l,dialogProps:a}=i||{},{id:r,text:h}=t||{},{caption:c,value:d,route:p,dfProps:u}=x()||X;if(r){const i=C();(0,$.YM)({chartType:l,browserType:e},{id:r,item:t,items:[{c:h,v:r},{c,v:p}],title:h,value:r,loadId:d,_itemKey:`${r}_${d}`,linkFn:"NASDAQ",dataSource:c,...a,...u,...(0,n.y5)(s),seriaType:i?i.value:void 0})}o()})),j=(0,n.li)([(0,_.jsx)(P.N,{onClick:f},"load"),(0,_.jsx)(P.q,{onClick:b},"show")]),{item:S}=i||{},{text:w}=S||{},k=l?null:H,v=l?q:{...q,...F};return(0,_.jsxs)(m.A,{caption:w,style:k,styleCaption:M,isShow:e,commandButtons:(0,n.ZC)(j),onClose:o,children:[(0,_.jsx)(A.A,{buttons:(0,n.ZC)(p)}),(0,_.jsx)(N.A,{isShowLabels:l,caption:"Source",placeholder:X.caption,options:U,onSelect:u}),(0,_.jsx)(O.A,{refSeriaColor:s,isShowLabels:l,options:tt,onSelectChart:y}),(0,_.jsx)(g.A,{isShow:c,style:G,children:(0,_.jsxs)("div",{style:J,children:[l&&(0,_.jsx)("span",{style:K,children:"Link:"}),(0,_.jsx)(Z.A,{style:v,item:S,caption:"NASDAQ"})]})})]})}));var it=i(4654),ot=i(6674);const st={padding:"16px 0 0 16px",fontWeight:600},nt={paddingLeft:8},lt={display:"inline-block"},at={width:60},rt={width:100},ht={width:40},ct={name:"Range",type:"columnrange",borderWidth:0,pointWidth:1},dt=(t,e)=>t[e].color,pt=(t,e)=>{const{options:i}=e;i.marker.radius=t,e.update(i,!1)},ut=(t,e,i)=>function(o){const s=parseInt(o,10);s>e&&s{const{_fromIndex:t,_toIndex:e,_color:i,props:o}=this,{data:s,onClose:l}=o,{chart:a}=s,r=a.series,h=r[t],c=r[e],d=((t,e)=>{const i=[];return t.forEach(((t,o)=>{const s=e[o];Boolean(t.y)&&Boolean(s.y)&&i.push({name:t.category,low:t.y<=s.y?t.y:s.y,high:t.y>=s.y?t.y:s.y})})),i})(h.data,c.data);var p;this._heWidth((0,n.y5)(this._refW)),this._heRadius1((0,n.y5)(this._refR1)),this._heRadius2((0,n.y5)(this._refR2)),pt(this._r1,h),pt(this._r2,c),a.zhAddSeriaToYAxis({data:d,color:i,yIndex:0},(p=this._pointWidth,{...ct,pointWidth:p})),a.zhDataLabels(!0),l()};_heColor=t=>{this._color=t};render(){const{isShow:t,data:e,onClose:i}=this.props,{chart:o}=e,{series:s}=o,[n,l,a,r]=(t=>{const e=t[0].name,i=t[1].name;return e<=i?[e,i,0,1]:[i,e,1,0]})(s),h=dt(s,a),c=dt(s,r);return this._fromIndex=a,this._toIndex=r,this._color=h,(0,_.jsxs)(m.A,{caption:"Add ColumnRange",isShow:t,commandButtons:this._commandButtons,onClose:i,children:[(0,_.jsx)("div",{style:st,children:"Connect dots series by column range?"}),(0,_.jsxs)("div",{style:nt,children:[(0,_.jsx)(ot.A,{style:lt,captionStyle:at,caption:"Color",initValue:h,onEnter:this._heColor}),(0,_.jsx)(it.A,{refEl:this._refW,styleRoot:lt,styleCaption:at,styleInput:ht,caption:"Width",initValue:1,maxLength:2,type:"number",min:0,max:6,step:1})]}),(0,_.jsxs)("div",{style:nt,children:[(0,_.jsx)(it.A,{refEl:this._refR1,styleRoot:lt,styleCaption:{...rt,color:h},styleInput:ht,caption:`R ${n}`,initValue:4,type:"number",maxLength:2}),(0,_.jsx)(it.A,{refEl:this._refR2,styleRoot:lt,styleCaption:{...rt,color:c},styleInput:ht,caption:`R ${l}`,initValue:0,type:"number",maxLength:2})]})]})}}const yt={CeDialog:B,SbsDialog:et,CrDialog:xt}},8632:(t,e,i)=>{i.d(e,{N:()=>l,q:()=>a});var o=i(6539),s=i(4848);const n=(t,e,i)=>n=>{let{onClick:l}=n;return(0,s.jsx)(o.A,{style:t,caption:e,title:i,onClick:l})},l=n({color:"#607d8b"},"Load","Load Item to Container"),a=n({color:"#232f3b"},"Show","Show Item Container")}}]); \ No newline at end of file diff --git a/app/runtime_74b54385db326f9fffa3.js b/app/runtime_74b54385db326f9fffa3.js deleted file mode 100644 index d0a0dcd17b..0000000000 --- a/app/runtime_74b54385db326f9fffa3.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,r,t,a,o,n={},i={};function l(e){var r=i[e];if(void 0!==r)return r.exports;var t=i[e]={exports:{}};return n[e].call(t.exports,t,t.exports,l),t.exports}l.m=n,e=[],l.O=(r,t,a,o)=>{if(!t){var n=1/0;for(c=0;c=o)&&Object.keys(l.O).every((e=>l.O[e](t[d])))?t.splice(d--,1):(i=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]},l.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return l.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,l.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var o=Object.create(null);l.r(o);var n={};r=r||[null,t({}),t([]),t(t)];for(var i=2&a&&e;"object"==typeof i&&!~r.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach((r=>n[r]=()=>e[r]));return n.default=()=>e,l.d(o,n),o},l.d=(e,r)=>{for(var t in r)l.o(r,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((r,t)=>(l.f[t](e,r),r)),[])),l.u=e=>({27:"sparklines",78:"av-dialogs",103:"watch-browser",195:"treemap",288:"watch-dialogs",301:"stat-dialogs",334:"leaflet",378:"us-economics-dialogs",430:"modal-dialogs",538:"un-dialogs",577:"browser-slider",890:"dialogs"}[e]+"_"+{27:"c181bd0119d27092dc25",78:"ad98df760ed5efc537e0",103:"83157a759bab423cd389",195:"ba17688f0ae3766f705d",288:"402aafd777aaa87c8af0",301:"1f900cca25843959e95d",334:"2f54d33fe87098258123",378:"c84f3457b554bdcd8284",430:"d2a90d7f23b59afd294c",538:"84b51c3e7a99e2a2505f",577:"4b90e21969e64d2a7beb",890:"865c6db3ff11bbfa1732"}[e]+".js"),l.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a={},o="web-app-erc:",l.l=(e,r,t,n)=>{if(a[e])a[e].push(r);else{var i,d;if(void 0!==t)for(var f=document.getElementsByTagName("script"),c=0;c{i.onerror=i.onload=null,clearTimeout(p);var o=a[e];if(delete a[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(t))),r)return r(t)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=u.bind(null,i.onerror),i.onload=u.bind(null,i.onload),d&&document.head.appendChild(i)}},l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="app/",(()=>{var e={121:0};l.f.j=(r,t)=>{var a=l.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(121!=r){var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var n=l.p+l.u(r),i=new Error;l.l(n,(t=>{if(l.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+n+")",i.name="ChunkLoadError",i.type=o,i.request=n,a[1](i)}}),"chunk-"+r,r)}else e[r]=0},l.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,[n,i,d]=t,f=0;if(n.some((r=>0!==e[r]))){for(a in i)l.o(i,a)&&(l.m[a]=i[a]);if(d)var c=d(l)}for(r&&r(t);f{"use strict";var e,r,t,a,o,n={},d={};function i(e){var r=d[e];if(void 0!==r)return r.exports;var t=d[e]={exports:{}};return n[e].call(t.exports,t,t.exports,i),t.exports}i.m=n,e=[],i.O=(r,t,a,o)=>{if(!t){var n=1/0;for(f=0;f=o)&&Object.keys(i.O).every((e=>i.O[e](t[c])))?t.splice(c--,1):(d=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[t,a,o]},i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,a){if(1&a&&(e=this(e)),8&a)return e;if("object"==typeof e&&e){if(4&a&&e.__esModule)return e;if(16&a&&"function"==typeof e.then)return e}var o=Object.create(null);i.r(o);var n={};r=r||[null,t({}),t([]),t(t)];for(var d=2&a&&e;"object"==typeof d&&!~r.indexOf(d);d=t(d))Object.getOwnPropertyNames(d).forEach((r=>n[r]=()=>e[r]));return n.default=()=>e,i.d(o,n),o},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>({27:"sparklines",78:"av-dialogs",103:"watch-browser",195:"treemap",288:"watch-dialogs",301:"stat-dialogs",334:"leaflet",378:"us-economics-dialogs",430:"modal-dialogs",538:"un-dialogs",577:"browser-slider",890:"dialogs"}[e]+"_"+{27:"c181bd0119d27092dc25",78:"60dc809321826d8b81ee",103:"83157a759bab423cd389",195:"ba17688f0ae3766f705d",288:"402aafd777aaa87c8af0",301:"1f900cca25843959e95d",334:"2f54d33fe87098258123",378:"c84f3457b554bdcd8284",430:"eca4ff64baba074fce5f",538:"63faf85441ac911c8aa7",577:"4b90e21969e64d2a7beb",890:"865c6db3ff11bbfa1732"}[e]+".js"),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),a={},o="web-app-erc:",i.l=(e,r,t,n)=>{if(a[e])a[e].push(r);else{var d,c;if(void 0!==t)for(var l=document.getElementsByTagName("script"),f=0;f{d.onerror=d.onload=null,clearTimeout(p);var o=a[e];if(delete a[e],d.parentNode&&d.parentNode.removeChild(d),o&&o.forEach((e=>e(t))),r)return r(t)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:d}),12e4);d.onerror=u.bind(null,d.onerror),d.onload=u.bind(null,d.onload),c&&document.head.appendChild(d)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="app/",(()=>{var e={121:0};i.f.j=(r,t)=>{var a=i.o(e,r)?e[r]:void 0;if(0!==a)if(a)t.push(a[2]);else if(121!=r){var o=new Promise(((t,o)=>a=e[r]=[t,o]));t.push(a[2]=o);var n=i.p+i.u(r),d=new Error;i.l(n,(t=>{if(i.o(e,r)&&(0!==(a=e[r])&&(e[r]=void 0),a)){var o=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;d.message="Loading chunk "+r+" failed.\n("+o+": "+n+")",d.name="ChunkLoadError",d.type=o,d.request=n,a[1](d)}}),"chunk-"+r,r)}else e[r]=0},i.O.j=r=>0===e[r];var r=(r,t)=>{var a,o,[n,d,c]=t,l=0;if(n.some((r=>0!==e[r]))){for(a in d)i.o(d,a)&&(i.m[a]=d[a]);if(c)var f=c(i)}for(r&&r(t);l{o.r(t),o.d(t,{default:()=>Qt});var r=o(784),n=o(6327),a=o(8849),i=o(5856),s=o(9550);const l="World",c=`${l} (0)`,p="all",u="netWgt",d="qty",h="avgPerWeight",g="avgPerQuantity",m={spacingTop:24,marginTop:42,marginBottom:38},v={type:"spline"},A={type:"spline",visible:!1},w={type:"category",opposite:!1,labels:{y:18},crosshair:null,tickColor:"gray",tickWidth:3,tickLength:7,tickPosition:"outside",gridLineWidth:0},S={lineWidth:0,tickLength:0,startOnTick:!0,endOnTick:!0,minPadding:.05,maxPadding:.05,plotLines:null,labels:{x:3}},f=(0,s.z)("Website UN Comtrade Data","https://comtradeplus.un.org/TradeFlow/"),y=(e,t)=>t.period?t.subtitle+f():""+f(),C=()=>Object.create(null),b=e=>"AG2"===e,x=e=>"TOTAL"===e.two,T=e=>x(e)&&(!e.tp||"0"===e.tp)&&"SPLINE"!==e.chart,j=e=>{let{chType:t}=e;return t&&(0,n.vs)(t.value)},L=e=>Math.round((e||{}).primaryValue||0)||0,P=e=>{const{cmdCode:t}=e||{};return(t||"").length<4?t:(0,r.Ax)(t)},$=e=>(0,r.Ax)((e||{}).cmdDescE),E=e=>t=>{return o=(t||{})[e],(0,r.Et)(o)?""+o:(0,r.Ax)(o);var o},M=E("partnerCode"),I=E("reporterCode"),W=E("period"),V=e=>e&&(e.partnerCode===e.partner2Code||0===e.partner2Code);let R;const O=e=>R||((0,r.Ep)(e)?(R=e.reduce(((e,t)=>(t&&t.v&&t.v.length<4&&t.c&&(e[t.v]=(0,r.Ax)(t.c)),e)),C()),R):C()),k=(e,t)=>{const o=M(t);return e[o]||o},D=(e,t)=>{const o=I(t);return e[o]||o},U=(e,t)=>"0"===e||"t1"===t,q=(e,t,o)=>{const n=[],a=O(t.tradePartners),i=((e,t)=>{const o=U(e.one,e.tfType)?D:k;return(e,r,n)=>t(e,o(r,n),n)})(t,o);let s=0,l=0;return e.data.forEach((e=>{const o=L(e),c=M(e);"0"!==t.one&&"0"===c&&V(e)?s=o:(0,r.F5)(o)&&V(e)&&(l+=o,n.push(i(o,a,e)))})),[n,s||l]},F=e=>{let{title:t,period:o}=e;return(0,r.MZ)(" ",t,"in",o)},H=e=>{let{value:t,rg:o=2,measure:n,tp:a,freq:i,period:s,chart:l,time:c}=e;return(0,r.MZ)("_",t,o,n,a,i,s,l,c)},Q=(e,t)=>({frequency:t.period||("M"===t.freq?"Monthly":"Annual"),description:y(0,t)}),_=function(e,t){let{itemValue:o,isLegend:r,isWi:n=!0}=void 0===t?{}:t;const{oneC:a,period:s,dataSource:l}=e,c=H(e);return{id:c,key:c,itemCaption:a,itemValue:o&&(0,i.A)(o),itemTime:s,legend:r?[]:void 0,isWithoutIndicator:n,dataSource:l}},N="https://comtradeapi.un.org/public/v1/preview/C",z="all",K="X",G="primaryValue",Y="motCode=0&customsCode=C00",B="period=2023,2022,2021",X=`${B},2020,2019,2018,2017,2016`,J=(e,t,o,r,n,a)=>{const i=`${e}${N}/A/HS?${Y}&cmdCode=${o}&flowCode=${r}&period=${n}&partner2Code=0`;return U(t,a)?`${i}&partnerCode=${t}`:`${i}&reporterCode=${t}`},Z=(e,t,o,r)=>`${e}${N}/${t}/HS?${Y}&cmdCode=${o}&flowCode=${r}`,ee={getRequestUrl(e){(e=>{if(e._isTs)throw new Error("ERR_10")})(e);const{one:t=z,two:o,rg:r=K,tfType:n,tp:a,freq:i,period:s,proxy:l}=e;if(T(e))return J(l,t,o,r,s,n);if(b(o))return J(l,t,o,r,s,n)+(U(t,n)?"":`&partnerCode=${a||0}`);if(t===z){const t=a===z?"0":a||"0",n=j(e)?`period=${e.time}`:B;return`${Z(l,i,o,r)}&partnerCode=${t}&partner2Code=${t}&${n}`}const c=`reporterCode=${t}${(e=>{const t=e===z?"":e||"0";return t?`&partnerCode=${t}&partner2Code=${t}`:""})(a)}`,p=(e=>e===z?B:X)(a);return`${Z(l,i,o,r)}&${c}&${p}`},checkResponse(e){if(e&&(0,r.Ep)(e.data))return e;const{error:t,message:o,statusCode:n}=e||{};if((0,r.O8)(t))throw(0,r.UE)("",t);if((0,r.O8)(o))throw(0,r.UE)("",429===n?`${n}: ${o.replace("in 1 seconds","in 1 minutes")}`:o);throw(0,r.UE)()},addPropsTo(e){const{one:t,v:o,rg:n=K,measure:a=G}=e;if(!t){const t=o.slice(3).split("_");(0,r.kp)(e,{one:t[0],two:t[1]})}(0,r.kp)(e,{rg:n,measure:a})}};var te=o(9270),oe=o(4999),re=o(1031);const ne=(e,t,o)=>({value:e,label:t,title:W(o)}),ae=(e,t)=>{const[o,n]=x(t)?((e,t)=>{const[o,r]=q(e,t,ne);return(0,re.KM)(o,r),[o,r]})(e,t):(e=>{const t=[];let o=0;return e.data.forEach((e=>{const n=L(e);(0,r.F5)(n)&&(o+=n,t.push({value:n,label:P(e)+" "+$(e),title:W(e)}))})),(0,re.KM)(t,o),[t,o]})(e);return(0,te.A)((0,oe.Qn)(o),(0,oe.Kl)(F(t),t.subtitle),(0,oe.YT)({info:Q(0,t),zhConfig:_(t,{itemValue:n})}),oe.qP)},ie=(e,t,o,r,n)=>{const a=F(t);return(0,te.A)((0,oe.mw)("BAR",r),(0,oe.Kl)(a,t.subtitle),(0,oe.YT)({info:Q(0,t),zhConfig:_(t,{itemValue:n,isWi:!1})}),(0,oe.vt)(0,{data:o,name:a}),oe.qP)};let se;const le=(e,t)=>((0,a._u)(e),(0,re.FE)({data:e,total:t,propName:"y"}),e.map((e=>e.c))),ce=e=>(se?Promise.resolve(se):fetch("./data/uncomtrade/hs-chapters.json").then((e=>{if(!e.ok)throw new Error("Network response was not OK");return e.json()})).then((e=>se=(e||{}).hm)).catch((()=>{}))).then((t=>((e,t)=>{const o=!!t,n=[];let a=0;e.data.forEach((e=>{const i=L(e);if((0,r.F5)(i)){const r=P(e),s=o&&t[r];a+=i,n.push({c:s?r+" "+s:r,y:i})}}));const i=le(n,a);return[n,i,a]})(e,t))),pe=(e,t)=>({y:e,c:t}),ue=(e,t)=>x(t)?((e,t)=>{const[o,r]=q(e,t,pe),n=le(o,r);return ie(0,t,o,n,r)})(e,t):ce(e).then((e=>{let[o,r,n]=e;return ie(0,t,o,r,n)}));var de=o(4850),he=o(5121),ge=o(2096),me=o(5248),ve=o(7294);const Ae=Object.keys,we=()=>Object.create(null),Se="primaryValue",fe=(e,t)=>({y:e,forSort:void 0!==t?t:e}),ye=(e,t)=>{const o=t[e],r=0!==o?o:t.TradeValue?void 0:0;return fe(r)},Ce=ye.bind(null,u),be=ye.bind(null,d),xe=(e,t)=>{const o=L(t),n=t[e],a=n&&null!=o?(0,r.W7)(o/n,2):void 0;return fe(a,n)},Te=xe.bind(null,u),je=xe.bind(null,d),Le={fDf:e=>e===Se?e=>fe(L(e)):t=>fe(t[e]),[u]:Ce,[d]:be,[h]:Te,[g]:je},Pe=e=>{const t=e&&e.length;return t&&t>0?e[t-1].forSort:void 0},$e=function(e,t,o){void 0===t&&(t="partnerCode"),void 0===o&&(o=Se);const r=we(),n=we(),a=(e=>{const t=Le[e]||Le.fDf(e);return e=>({name:e.period,c:e.period,...t(e)})})(o);let i;return e.forEach((e=>{if(i=a(e),null!=i.y){const o=e[t];void 0===r[o]&&(r[o]=[]),r[o].push(i);const a=e.period;void 0===n[a]&&(n[a]=a)}})),[r,(s=n,Ae(s).map((e=>s[e])).sort())];var s},Ee=(e,t)=>o=>{const{name:n}=o,a=e[n],i=a[a.length-1],s=i?(0,r.W7)(i.y/t*100,1)+"%":"";return{...o,name:s+" "+n}},Me=(e,t)=>-1===e.indexOf(t),Ie=e=>{let t,o=0;for(t in e)if(Me(t,", nes")&&Me(t,l)){const r=e[t];o+=r[r.length-1].y}return o},We=Object.assign,Ve=Object.keys,Re=e=>({fillColor:e,lineColor:e,lineWidth:1,radius:4,symbol:"circle"}),Oe=e=>{let{config:t,hm:o,name:r,i:n,color:a,seriaOption:i,isShow:s=!1}=e;const{legend:l}=t.zhConfig,c=a||(0,ge.v)(n),p={color:c,marker:Re(c)},u=null!==i?s?{...v,...p}:{...A,...p}:null;(0,me.M$)(t,o[r],n,r,u),l.push((0,ve.f)(n,c,r,s))},ke=e=>{let{config:t,hm:o,fromIndex:r}=e,n=r;(e=>(0,a.GY)(Ae(e).map((t=>({value:Pe(e[t]),name:t})))))(o).forEach(((e,r)=>{if(r>=n){const r=e.name;Oe({config:t,hm:o,name:r,i:n,isShow:n<6}),n++}}))},De=(e,t)=>(e||{}).period-(t||{}).period,Ue=(e,t,o)=>{const{data:r}=t,{one:n,measure:a}=o,i=n===p?"reporterCode":"partnerCode",[s,u]=$e(r.sort(De),i,a),d=O(o.tradePartners),m=(A=d,Ve(v=s).reduce(((e,t)=>(e[A[t]||t]=v[t],e)),C()));var v,A;m[c]&&n!==p?(Oe({config:e,hm:m,i:0,name:c,color:"#7cb5ec",seriaOption:null,isShow:!0}),ke({config:e,hm:m,fromIndex:1})):ke({config:e,hm:m,fromIndex:0});const{legend:w}=e.zhConfig;e.zhConfig.legend=n===p?((e,t,o)=>{const r=Ie(t),n=Ee(t,r);return 0!==r&&o!==h&&o!==g?e.map(n):e})(w,m,a):((e,t)=>{const o=t[l],r=o?o[o.length-1].y:Ie(t),n=Ee(t,r);return 0!==r&&null!=r?e.map(n):e})(w,m),We(e.xAxis,{categories:u})},qe=e=>{const t=""+e,o=4===t.length?t:t.substring(0,4)+"-"+t.substring(4);return(0,r.cY)(o)},Fe=(e,t)=>{const o=((e,t)=>{const{title:o,subtitle:r}=t;return(0,te.A)((0,oe.H7)(),(0,oe.YT)({chart:m,xAxis:w,yAxis:S}),(0,oe.Kl)(o,r),(0,oe.PK)(he.Gr),(0,oe.YT)({info:Q(0,t),zhConfig:_(t,{isLegend:!0})}),oe.qP)})(0,t);return Ue(o,e,t),1===(o.series||[]).length&&(e=>{const{series:t}=e,{data:o}=t[0],n=(o||[]).map((e=>[qe(e.c),e.y]));t[0].data=n,t[0].type="spline",e.xAxis.categories=void 0,e.xAxis.type="datetime",e.tooltip=(0,de.Gs)(he.BA),e.valueMoving=(0,r.Y1)(n),e.zhConfig.isWithoutIndicator=!1})(o),o};var He=o(3851);const Qe=Math.round,_e=(0,He.A)(((e,t)=>{const o=O(t.tradePartners),i=t.measure;let s;return t._itemKey=t.key,(0,a._u)(e.data.reduce(((e,t)=>{s=Qe(parseFloat(t[i]));const{reporterCode:a}=t||{};return s&&(0,r.Et)(a)&&e.push((0,n.eb)(s,o[a]||a)),e}),[]))}),(e=>{let{subtitle:t}=e;return(t||"").split("-")[0]||"id"})),Ne=e=>(t,o)=>({config:e(t,o)}),ze=e=>{if(j(e))return e.seriaType=e.chType.value,_e;const t=b(e.two)||T(e)?"BAR"===e.chart?ue:ae:Fe;return{toConfig:Ne(t)}};const Ke={api:ee,adapter:(0,o(9026).GT)({getRoute:ze,crDfKey:H})};var Ge=o(1315),Ye=o(6460),Be=o(4575),Xe=o(4867),Je=o(4250),Ze=o(3057);const et=()=>{const[e,t]=(0,Xe.A)(!1),o=(0,Ge.hb)((()=>{t(!1)}),[t]);return[e,t,o]};var tt=o(5668),ot=o(9288),rt=o(4428),nt=o(972),at=o(6223),it=o(8353),st=o(4848);const lt=e=>{let{isShow:t,configs:o,onClose:r}=e;return(0,st.jsx)(nt.A,{isShow:t,className:it.ND,style:it.lM,onClose:r,children:(o||[]).map((e=>(0,st.jsx)(at.A,{style:it.v$,color:it.Ic,caption:e[0],value:e[1],onToggle:e[2]},e[0])))})},ct=function(e,t){void 0===t&&(t=0);const o=e[t];return[o,(r=o,`Default: ${r.c}`)];var r},pt=[{c:"Export Value",v:{rg:"X",measure:"primaryValue"}},{c:"Export Weight",v:{rg:"X",measure:"netWgt"}},{c:"Export Quantity",v:{rg:"X",measure:"qty"}},{c:"Export Average Value Per Weight",v:{rg:"X",measure:"avgPerWeight"}},{c:"Export Average Value Per Quantity",v:{rg:"X",measure:"avgPerQuantity"}},{c:"Import Value",v:{rg:"M",measure:"primaryValue"}},{c:"Import Weight",v:{rg:"M",measure:"netWgt"}},{c:"Import Quantity",v:{rg:"M",measure:"qty"}},{c:"Import Average Value Per Weight",v:{rg:"M",measure:"avgPerWeight"}},{c:"Import Average Value Per Quantity",v:{rg:"M",measure:"avgPerQuantity"}}],[ut,dt]=ct(pt),[ht={c:"All",v:"all"},gt]=ct([{c:"All",v:"all"}]),mt=[{c:"Annual",v:"A"},{c:"Monthly",v:"M"}],[vt,At]=ct(mt),wt=(e,t)=>({caption:e,value:t}),St=[wt("Spline",Ye.qv),wt("Bar by Reporter",Ye.zM)],[ft,yt]=(0,rt.A)("Y",1),Ct=wt(yt,yt),bt=(0,Be.A)((e=>{const{isShow:t,caption:o,oneURI:r,twoURI:n,tpURI:a,msgOnNotSelected:i,toTopLayer:s,onAbout:l,loadFn:c,onLoad:p,onShow:u,onClose:d}=e,[h,g]=(0,Ge.J0)(),[m,v,A]=et(),[w,S,f,y,C,b,x]=(0,Ze.A)({onAbout:l,onClose:d,toggleInputs:v}),[T,j]=(0,Xe.A)(!0),[L,P]=(0,Xe.A)(!1),[$,E]=(0,Xe.A)(!0),[M,I]=(0,Xe.A)(!1),W=(0,Ge.li)(),V=(0,Ge.li)(),R=(0,Ge.li)(),[O,k]=(0,Je.A)(),[D,U]=(0,Je.A)(),[q,F]=(0,Je.A)(),[H,Q]=(0,Je.A)(Ct),[_,N]=(0,Je.A)(),z=(0,Ge.hb)((()=>{const t=(0,Ge.ZC)(V),{msg:o=[]}=t.getValidation(),r=k()||ht,n=r.v,a=F(),i=a&&a.v,s=N()||vt;if("all"===n&&"all"===i&&o.push("Query All to All is too complex"),"all"===n&&"M"===s.v&&o.push("Query All Monthly is too complex"),0===o.length){const{one:o,two:n}=t.getValues();p(c(e,{...(0,Ge.y5)(R),one:r,two:o,three:n,tradeFlow:U()||ut,tradePartner:a,freq:s,chType:h,time:Q().value,tradePartners:(0,Ge.UU)(W)}))}b(o)}),[h]),K=M&&(0,ot.y)(h);return(0,st.jsxs)(tt.A.DraggableDialog,{isShow:t,caption:o,menuModel:f,toTopLayer:s,onLoad:z,onShow:u,onClose:x,children:[(0,st.jsx)(tt.A.Toolbar,{isShow:w,buttons:y}),(0,st.jsx)(lt,{isShow:m,configs:[["Partner",L,P],["Heading",T,j],["Trade Flow",$,E],["Chart",M,I]],onClose:A}),(0,st.jsx)(tt.A.SelectWithLoad,{isShow:t,isShowLabels:S,uri:r,caption:"Reporter",placeholder:gt,onSelect:O}),(0,st.jsx)(tt.A.ShowHide,{isShow:L,children:(0,st.jsx)(tt.A.SelectWithLoad,{refEl:W,isShowLabels:S,uri:a,caption:"Partner",placeholder:"Default: World",onSelect:q})}),(0,st.jsx)(tt.A.ShowHide,{isShow:T,children:(0,st.jsx)(tt.A.SelectOneTwo,{refEl:V,isShow:t,isShowLabels:S,uri:n,oneCaption:"Heading",twoCaption:"Subheading",msgOnNotSelected:i})}),(0,st.jsx)(tt.A.ShowHide,{isShow:$,children:(0,st.jsx)(tt.A.RowInputSelect,{isShowLabels:S,caption:"Trade Flow",placeholder:dt,propCaption:"c",options:pt,onSelect:D})}),(0,st.jsx)(tt.A.ShowHide,{isShow:!1,children:(0,st.jsx)(tt.A.RowInputSelect,{isShowLabels:S,caption:"Frequency",placeholder:At,propCaption:"c",options:mt})}),(0,st.jsx)(tt.A.RowChartDate,{isShowChart:M,isShowDate:K,refSeriaColor:R,chartType:h,isShowLabels:S,chartOptions:St,onSelectChart:g,dateDefault:yt,dateOptions:ft,onSelectDate:H}),(0,st.jsx)(tt.A.ValidationMessages,{validationMessages:C})]})})),xt=[{c:"TreeMap (60, 90)",v:"TREE_MAP"},{c:"Bar (60, 90)",v:"BAR"}],Tt=[...xt,{c:"Spline",v:"SPLINE"}],[jt,Lt]=ct(xt),Pt=(e,t)=>"0"===e.v&&"TOTAL"===t.v?Tt:xt,$t=(e,t)=>{const[o,r]=(0,Je.A)(jt,jt),[n,a]=(0,Ge.J0)(!0),i=(0,Ge.hb)((e=>{o(e),a((()=>(e=>!(e&&"SPLINE"===e.v))(e)))}),[]),[s,l]=(0,Ge.J0)(!0),[c,p]=(0,Ge.J0)((()=>Pt(e(),t()))),u=(0,Ge.hb)((()=>{const r=e(),n=t();var i;l((i=n,!("0"!==r.v&&"TOTAL"===i.v))),p((e=>{const t=Pt(r,n);return t!==e&&(o(jt),a(!0)),t}))}),[]);return[Lt,s,n,u,i,r,c]},Et=[{c:"Total of trade partner",v:"TOTAL"},{c:"All 2-digit HS commodities",v:"AG2"}],[Mt,It]=ct(Et),Wt=(()=>{const e=[];for(let t=0;t<23;t++){const o=""+(2023-t);e.push({c:o,v:o})}return e})(),[Vt,Rt]=ct(Wt,1),Ot=[{c:"Export Value",v:{rg:"X",measure:"primaryValue"}},{c:"Calculated Export Value by Reporter Imports",v:{rg:"M",measure:"primaryValue",tfType:"t1"}},{c:"Import Value",v:{rg:"M",measure:"primaryValue"}},{c:"Calculated Import Value by Reporter Exports",v:{rg:"M",measure:"primaryValue",tfType:"t1"}}],[kt,Dt]=ct(Ot),[Ut={c:"World",v:"0"},qt]=ct([{c:"World",v:"0"}]),Ft={c:"Annual",v:"A"},Ht=(0,Be.A)((e=>{const{isShow:t,caption:o,oneURI:r,tpURI:n,msgOnNotSelected:a,toTopLayer:i,onAbout:s,loadFn:l,onLoad:c,onShow:p,onClose:u}=e,d=(0,Ge.li)(),[h,g,m]=et(),[v,A,w,S,f,y,C]=(0,Ze.A)({onAbout:s,onClose:u,toggleInputs:g}),[b,x]=(0,Xe.A)(!0),[T,j]=(0,Xe.A)(),[L,P]=(0,Je.A)(),[$,E]=(0,Je.A)(Ut,Ut),[M,I]=(0,Je.A)(Mt,Mt),[W,V,R,O,k,D,U]=$t(E,I),[q,F]=(0,Je.A)(kt,kt),[H,Q]=(0,Je.A)(Vt,Vt),_=(0,Ge.hb)((e=>{$(e),O()}),[]),N=(0,Ge.hb)((e=>{M(e),O()}),[]),z=(0,Ge.hb)((()=>{const t=P(),o=E(),r=F(),n=I(),i=D(),s=[];var p;t||s.push(a("Reporter")),(t&&"all"===t.v||(p=n,"all"===o.v&&"total"!==p.v))&&s.push("Query All is too complex"),t&&"0"===t.v&&"AG2"===n.v&&s.push("Query World by AG2 is too complex"),"t1"!==r.v.tfType||"0"===o.v&&"SPLINE"!==i.v||s.push("Query trade flow calculated values is only for category charts of trade partner World"),0===s.length&&c(l(e,{one:t,three:n,tradeFlow:r,tradePartner:o,period:Q(),chart:i,freq:Ft,tradePartners:(0,Ge.UU)(d)})),y(s)}),[]);return(0,st.jsxs)(tt.A.DraggableDialog,{isShow:t,caption:o,menuModel:w,toTopLayer:i,onLoad:z,onShow:p,onClose:C,children:[(0,st.jsx)(tt.A.Toolbar,{isShow:v,buttons:S}),(0,st.jsx)(lt,{isShow:h,configs:[["Trade Flow",b,x],["Partner",T,j]],onClose:m}),(0,st.jsx)(tt.A.SelectWithLoad,{isShow:t,isShowLabels:A,uri:r,caption:"Reporter",onSelect:L}),(0,st.jsx)(tt.A.ShowHide,{isShow:b,children:(0,st.jsx)(tt.A.RowInputSelect,{isShowLabels:A,caption:"Trade Flow",placeholder:Dt,propCaption:"c",options:Ot,onSelect:q})}),(0,st.jsx)(tt.A.ShowHide,{isShow:T,children:(0,st.jsx)(tt.A.SelectWithLoad,{refEl:d,isShowLabels:A,uri:n,caption:"Partner",placeholder:qt,onSelect:_})}),(0,st.jsxs)(tt.A.ShowHide,{isShow:!0,children:[(0,st.jsx)(tt.A.RowInputSelect,{isShowLabels:A,caption:"Aggregation",placeholder:It,propCaption:"c",options:Et,onSelect:N}),(0,st.jsxs)(tt.A.ShowHide,{isShow:V,children:[(0,st.jsx)(tt.A.RowInputSelect,{isShowLabels:A,caption:"Chart",placeholder:W,propCaption:"c",options:U,onSelect:k}),(0,st.jsx)(tt.A.ShowHide,{isShow:R,children:(0,st.jsx)(tt.A.RowInputSelect,{isShowLabels:A,caption:"Period",placeholder:Rt,propCaption:"c",options:Wt,onSelect:H})})]})]}),(0,st.jsx)(tt.A.ValidationMessages,{validationMessages:f})]})})),Qt={_a:Ke,UnDialog5:bt,UnDialogAgg:Ht}}}]); \ No newline at end of file diff --git a/data/build.json b/data/build.json index 888d8a8088..6583394659 100644 --- a/data/build.json +++ b/data/build.json @@ -1,3 +1,3 @@ { - "build": "19-12-2024" + "build": "26-12-2024" } diff --git a/data/stock-markets/source-menu.json b/data/stock-markets/source-menu.json index a9ba5462d0..8e68195137 100644 --- a/data/stock-markets/source-menu.json +++ b/data/stock-markets/source-menu.json @@ -1 +1 @@ -{"menu":[{"caption":"Alpha Vantage","items":[{"caption":"EOD","items":[{"id":"SM_A_SP"},{"id":"SM_A_SPTSX"},{"id":"SM_A_TSXV"},{"id":"SM_A_FTSE"},{"id":"SM_A_AEX"},{"id":"SM_A_BEL"},{"id":"SM_A_CAC"},{"id":"SM_A_DAX"},{"id":"SM_A_SSE"},{"id":"SM_A_SZSE"},{"id":"SM_A_BSE"}]},{"caption":"EOD ETF","items":[{"id":"SM_A_CEETF"},{"id":"SM_A_BETF"},{"id":"SM_A_ETF"}]},{"caption":"Historical Prices","items":[{"id":"SM_A_INTRADAY"},{"id":"SM_A_EOD"},{"id":"SM_A_INDICATOR"},{"id":"SM_A_TOP_GL"}]},{"caption":"Company Fundamentals","items":[{"id":"SM_A_OVERVIEW"},{"id":"SM_A_INCOME"},{"id":"SM_A_BS"},{"id":"SM_A_CF"},{"id":"SM_A_EAR"}]},{"id":"SM_A_ECONOMICS"},{"id":"SM_A_SEARCH"}]},{"caption":"Twelve Data","items":[{"id":"SM_TW_TS"}]},{"caption":"Financial Modeling Prep","items":[{"caption":"Intraday Prices","items":[{"id":"SM_FMP_HCEN"},{"id":"SM_FMP_HCNN"},{"id":"SM_FMP_HCTS"}]},{"caption":"Daily Prices","items":[{"id":"SM_FMP_EN"},{"id":"SM_FMP_NN"},{"id":"SM_FMP_TS"}]},{"caption":"Company Valuation","items":[{"id":"SM_FMP_FS"},{"id":"SM_FMP_FR"},{"id":"SM_FMP_EV"},{"id":"SM_FMP_METRICS"},{"id":"SM_FMP_FGR"}]}]},{"caption":"Intrinio: U.S. PC Financials","items":[{"id":"SM_INTR_CALC"},{"id":"SM_INTR_INCOME"},{"id":"SM_INTR_BALANCE"},{"id":"SM_INTR_CASH"}]},{"caption":"Nasdaq Data Link","items":[{"id":"SM_SP500"},{"id":"SM_EURONEXT"},{"id":"SM_TOKYO"},{"id":"SM_WIKI"}]}],"items":{"SM_NDL":{"dialogProps":{"rootUri":"./data/ndl/","isFd":true,"nInitFromDate":8,"noDate":true,"loadId":"Q","spT":"id","chartsType":"t2"}},"SM_INTR":{"dialogProps":{"rootUri":"./data/stock-markets/","descr":"intrinio","spT":"id","selectProps":[["Stock","wiki"]],"isFd":true,"nInitFromDate":6,"chartsType":"t2","linkFn":"NASDAQ","loadId":"INTR"}},"SM_FMP":{"dialogProps":{"loadId":"FMP","descrUrl":"./data/stock-markets/fmp.html","rootUri":"./data/stock-markets/","spT":"id","chartsType":"t2"}},"SM_FMP_HP":{"extends":"SM_FMP","dialogProps":{"isFd":true,"chartsType":"t1a","nInitFromDate":2,"dfProps":{"dfT":"historical-price-full","dfPn":"historical"}}},"SM_FMP_HC":{"extends":"SM_FMP","dialogProps":{"dfProps":{"dfT":"historical-chart","dfPn":"intraday"}}},"SM_TW":{"dialogProps":{"loadId":"TW","descrUrl":"./data/stock-markets/twelve-data.html","rootUri":"./data/stock-markets/","spT":"id","chartsType":"t1a","dataSource":"Twelve Data"}},"SM_AV":{"dialogProps":{"loadId":"AV","dataSource":"Alpha Vantage","rootUri":"./data/stock-markets/","descr":"alpha-vantage"}},"SM_AVI":{"extends":"SM_AV","dialogProps":{"spT":"id","chartsType":"t1a","dfProps":{"dfFn":"EOD","dfSubId":"I"}}},"SM_AV_ST":{"extends":"SM_AV","dialogProps":{"selectProps":[["Stock","wiki","items",true]],"spT":"id","chartsType":"t2"}},"SM_AV_EI":{"extends":"SM_AV","dialogProps":{"spT":"id","chartsType":"t2"}},"SM_SP500":{"type":"SM_SP500","menuTitle":"S&P 500 Ratios","contFullCaption":"NDL: S&P 500 Ratios","addProps":"SM_NDL","dialogProps":{"descr":"sp500-ratios","selectProps":[["S&P 500","sp500-ratios"]],"nInitFromDate":22,"dataSource":"(Code: MULTPL)","dfProps":{"dfDbId":"MULTPL"}}},"SM_EURONEXT":{"type":"SM_EURONEXT","menuTitle":"Euronext (06-2021)","dialogCaption":"Euronext Stock Prices","contFullCaption":"NDL: Euronext Stock Prices","addProps":"SM_NDL","dialogProps":{"rootUri":"./data/stock-markets/","descr":"euronext","selectProps":[["Item","euronext"]],"dataSource":"(Code: EURONEXT)","dfProps":{"dfDbId":"EURONEXT","columnName":"Last","seriaColumnNames":["Open","High","Low","Volume"]}}},"SM_TOKYO":{"type":"SM_TOKYO","menuTitle":"Tokyo (12-2017)","dialogCaption":"Tokyo Stock Prices","contFullCaption":"NDL: Tokyo Stock Prices","addProps":"SM_NDL","dialogProps":{"rootUri":"./data/stock-markets/","descr":"tokyo","selectProps":[["Item","tokyo"]],"dataSource":"(Code: TSE)","dfProps":{"dfDbId":"TSE","columnName":"Close","seriaColumnNames":["Open","High","Low","Volume"]}}},"SM_WIKI":{"type":"SM_WIKI","menuTitle":"Wiki EOD (03-2018)","dialogCaption":"Wiki EOD","contFullCaption":"NDL: Wiki EOD","addProps":"SM_NDL","dialogProps":{"rootUri":"./data/stock-markets/","descr":"wiki","selectProps":[["Item","wiki"]],"linkFn":"NASDAQ","dataSource":"(Code: WIKI)","dfProps":{"dfDbId":"WIKI","columnName":"Close","seriaColumnNames":["Open","High","Low","Volume","Adj. Close"]}}},"SM_A_INDICATOR":{"type":"SM_A_INDICATOR","menuTitle":"Technical Indicators","dialogCaption":"AV: Technical Indicators","contFullCaption":"Alpha Vantage: Technical Indicators","dialogType":"AlphaIndicatorDialog","dialogProps":{"descrUrl":"./data/stock-markets/alpha-vantage.html","oneURI":"./data/stock-markets/alpha-indicators.json","oneJsonProp":"indicators","oneCaption":"Indicators","valueFn":"ROne","loadId":"AL","columnName":"Close","dataSource":"Alpha Vantage: Indicators"}},"SM_A_TOP_GL":{"type":"SM_A_TOP_GL","menuTitle":"Top Gainers & Losers","dialogCaption":"Top Gainers & Losers","contFullCaption":"Alpha Vantage: US Top","dialogType":"AlphaTopDialog","addProps":"SM_AV","dialogProps":{"dfSubId":"GL"}},"SM_A_INTRADAY":{"type":"SM_A_INTRADAY","menuTitle":"Intraday","dialogCaption":"Alpha Vantage: Intraday","contFullCaption":"Alpha Vantage: Intraday Prices","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Interval","av-interval"]],"chartsType":"t1a","dfProps":{"dfSubId":"I","dfFn":"TIME_SERIES_INTRADAY"}}},"SM_A_EOD":{"type":"SM_A_EOD","menuTitle":"End-of-Day","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Interval","av-eod-interval"]],"chartsType":"t1a","dfProps":{"dfFn":"EOD","dfSubId":"I"}}},"SM_A_SP":{"type":"SM_A_SP","menuTitle":"S&P 500, USD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","sp-500","items",true],["Interval","av-eod-interval"]]}},"SM_A_SPTSX":{"type":"SM_A_SPTSX","menuTitle":"S&P/TSX 60, CAD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","sp-tsx-60","items",true],["Interval","av-eod-interval"]]}},"SM_A_TSXV":{"type":"SM_A_TSXV","menuTitle":"TSX Venture 50, CAD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","tsx-venture-50","items",true],["Interval","av-eod-interval"]]}},"SM_A_FTSE":{"type":"SM_A_FTSE","menuTitle":"FTSE 100, GBX","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","ftse-100","items",true],["Interval","av-eod-interval"]]}},"SM_A_AEX":{"type":"SM_A_AEX","menuTitle":"AEX Index, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","aex-index","items",true],["Interval","av-eod-interval"]]}},"SM_A_BEL":{"type":"SM_A_BEL","menuTitle":"BEL 20, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","bel-20","items",true],["Interval","av-eod-interval"]]}},"SM_A_DAX":{"type":"SM_A_DAX","menuTitle":"DAX 40, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","dax-40","items",true],["Interval","av-eod-interval"]]}},"SM_A_CAC":{"type":"SM_A_CAC","menuTitle":"CAC 40, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","cac-40","items",true],["Interval","av-eod-interval"]]}},"SM_A_SZSE":{"type":"SM_A_SZSE","menuTitle":"SZSE 100, CNY","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","szse-100","items",true],["Interval","av-eod-interval"]]}},"SM_A_SSE":{"type":"SM_A_SSE","menuTitle":"SSE 50, CNY","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","sse-50","items",true],["Interval","av-eod-interval"]]}},"SM_A_BSE":{"type":"SM_A_BSE","menuTitle":"BSE SENSEX 30, INR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","bse-sensex-30","items",true],["Interval","av-eod-interval"]]}},"SM_A_CEETF":{"type":"SM_A_CEETF","menuTitle":"Clean Energy ETFs, USD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","clean-energy-etf","items",true],["Interval","av-eod-interval"]]}},"SM_A_BETF":{"type":"SM_A_BETF","menuTitle":"BTC ETFs, USD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","btc-etf","items",true],["Interval","av-eod-interval"]]}},"SM_A_ETF":{"type":"SM_A_ETF","menuTitle":"ETF Profile & Holdings","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","clean-energy-etf","items",true]],"chartsType":"tc","noDate":true,"dfProps":{"dfSubId":"EP","dfFn":"ETF_PROFILE"}}},"SM_A_OVERVIEW":{"type":"SM_A_OVERVIEW","menuTitle":"Overview","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","wiki","items",true]],"isCh":false,"isFd":false,"dfProps":{"dfSubId":"OV","dfFn":"OVERVIEW"}}},"SM_A_INCOME":{"type":"SM_A_INCOME","menuTitle":"Income Statement","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Statement","av-income-statement"],["Period","av-periods"]],"dfProps":{"dfSubId":"F","dfFn":"INCOME_STATEMENT"}}},"SM_A_BS":{"type":"SM_A_BS","menuTitle":"Balance Sheet","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Statement","av-balance-sheet"],["Period","av-periods"]],"dfProps":{"dfSubId":"F","dfFn":"BALANCE_SHEET"}}},"SM_A_CF":{"type":"SM_A_CF","menuTitle":"Cash Flow","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Statement","av-cash-flow"],["Period","av-periods"]],"dfProps":{"dfSubId":"F","dfFn":"CASH_FLOW"}}},"SM_A_EAR":{"type":"SM_A_EAR","menuTitle":"Earnings (EPS)","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Period","av-periods"]],"dfProps":{"dfSubId":"E","dfFn":"EARNINGS"}}},"SM_A_ECONOMICS":{"type":"SM_A_ECONOMICS","menuTitle":"Economic Indicators","addProps":"SM_AV_EI","dialogProps":{"selectProps":[["Indicator","av-economics"]],"dfProps":{"dfSubId":"EI","dfFn":"ECONOMICS"}}},"SM_A_SEARCH":{"type":"SM_A_SEARCH","menuTitle":"Search Symbols or Companies","dialogCaption":"Alpha Vantage: Search","dialogType":"AlphaSearchDialog","addProps":"SM_AV","dialogProps":{"valueFn":"ROne","dfSubId":"I","dfT":"SEARCH","isGetKey":true}},"SM_FMP_HCEN":{"type":"SM_FMP_HCEN","menuTitle":"Euronext","contFullCaption":"FMP: Euronext","addProps":"SM_FMP_HC","dialogProps":{"selectProps":[["Equity","fmp-euronext","items",true],["Interval","fmp-interval"]]}},"SM_FMP_HCNN":{"type":"SM_FMP_HCNN","menuTitle":"NYSE, NASDAQ","contFullCaption":"FMP: NYSE, NASDAQ","addProps":"SM_FMP_HC","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Interval","fmp-interval"]]}},"SM_FMP_HCTS":{"type":"SM_FMP_HCTS","menuTitle":"TSX","contFullCaption":"FMP: TSX","addProps":"SM_FMP_HC","dialogProps":{"selectProps":[["Stock","fmp-tsx","items",true],["Interval","fmp-interval"]]}},"SM_FMP_NN":{"type":"SM_FMP_NN","menuTitle":"NYSE, NASDAQ","contFullCaption":"FMP: NYSE, NASDAQ","addProps":"SM_FMP_HP","dialogProps":{"selectProps":[["Stock","wiki","items",true]]}},"SM_FMP_EN":{"type":"SM_FMP_EN","menuTitle":"Euronext","contFullCaption":"FMP: Euronext","addProps":"SM_FMP_HP","dialogProps":{"selectProps":[["Equity","fmp-euronext","items",true]]}},"SM_FMP_TS":{"type":"SM_FMP_TS","menuTitle":"TSX","contFullCaption":"FMP: TSX","addProps":"SM_FMP_HP","dialogProps":{"selectProps":[["Stock","fmp-tsx","items",true]]}},"SM_FMP_FS":{"type":"SM_FMP_FS","menuTitle":"Financial Statements","contFullCaption":"FMP: Financials Statements","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Statement","fmp-financial-statements"],["Period","fmp-periods"]],"dfProps":{"dfT":"financials/income-statement","dfPn":"financials"}}},"SM_FMP_FR":{"type":"SM_FMP_FR","menuTitle":"Financial Ratios","contFullCaption":"FMP: Financials Ratios","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Ratio","fmp-financial-ratio"],["Period","fmp-periods"]],"dfProps":{"dfT":"ratios"}}},"SM_FMP_EV":{"type":"SM_FMP_EV","menuTitle":"Enterprise Value","contFullCaption":"FMP: Enterprise Value","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Statement","fmp-enterprise-values"],["Period","fmp-periods"]],"dfProps":{"dfT":"enterprise-value","dfPn":"enterpriseValues"}}},"SM_FMP_METRICS":{"type":"SM_FMP_METRICS","menuTitle":"Key Metrics","contFullCaption":"FMP: Key Metrics","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Metric","fmp-metrics"],["Period","fmp-periods"]],"dfProps":{"dfT":"company-key-metrics","dfPn":"metrics"}}},"SM_FMP_FGR":{"type":"SM_FMP_FGR","menuTitle":"Financial Growth","contFullCaption":"FMP: Financials Growth","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Growth","fmp-financial-growth"],["Period","fmp-periods"]],"dfProps":{"dfT":"financial-statement-growth","dfPn":"growth"}}},"SM_TW_TS":{"type":"SM_TW_TS","menuTitle":"NYSE, NASDAQ","addProps":"SM_TW","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Interval","tw-interval"],["Limit","tw-limit"]]}},"SM_INTR_CALC":{"type":"SM_INTR_CALC","menuTitle":"Calculation & Metric","contFullCaption":"Intrinio: Calculation & Metric","addProps":"SM_INTR","dialogProps":{"selectProps":[["Calc","intrinio-calc"],["Period","intrinio-period-type"]],"dataSource":"Intrinio: US PC Financials: Calculation & Metric"}},"SM_INTR_INCOME":{"type":"SM_INTR_INCOME","menuTitle":"Income Statement","contFullCaption":"Intrinio: Income Statement","addProps":"SM_INTR","dialogProps":{"selectProps":[["Income","intrinio-income"],["Period","intrinio-period-type"]],"dataSource":"Intrinio: US PC Financials: Income Statement"}},"SM_INTR_BALANCE":{"type":"SM_INTR_BALANCE","menuTitle":"Balance Sheet","contFullCaption":"Intrinio: Balance Sheet","addProps":"SM_INTR","dialogProps":{"selectProps":[["Balance","intrinio-balance"]],"dataSource":"Intrinio: US PC Financials: Balance Sheet"}},"SM_INTR_CASH":{"type":"SM_INTR_CASH","menuTitle":"Cash Flow Statement","contFullCaption":"Intrinio: Cash Flow Statement","addProps":"SM_INTR","dialogProps":{"selectProps":[["Cash","intrinio-cash"],["Period","intrinio-period-type"]],"dataSource":"Intrinio: US PC Financials: Cash Flow Statement"}}}} \ No newline at end of file +{"menu":[{"caption":"Alpha Vantage","items":[{"caption":"EOD","items":[{"id":"SM_A_SP"},{"id":"SM_A_SPTSX"},{"id":"SM_A_TSXV"},{"id":"SM_A_FTSE"},{"id":"SM_A_AEX"},{"id":"SM_A_BEL"},{"id":"SM_A_CAC"},{"id":"SM_A_DAX"},{"id":"SM_A_SSE"},{"id":"SM_A_SZSE"},{"id":"SM_A_BSE"}]},{"caption":"EOD ETF","items":[{"id":"SM_A_CEETF"},{"id":"SM_A_BETF"},{"id":"SM_A_ETF"}]},{"caption":"Historical Prices","items":[{"id":"SM_A_INTRADAY"},{"id":"SM_A_EOD"},{"id":"SM_A_INDICATOR"},{"id":"SM_A_TOP_GL"}]},{"caption":"Company Fundamentals","items":[{"id":"SM_A_OVERVIEW"},{"id":"SM_A_INCOME"},{"id":"SM_A_BS"},{"id":"SM_A_CF"},{"id":"SM_A_EAR"}]},{"id":"SM_A_ECONOMICS"},{"id":"SM_A_SEARCH"}]},{"caption":"Twelve Data","items":[{"id":"SM_TW_TS"}]},{"caption":"Financial Modeling Prep","items":[{"caption":"Intraday Prices","items":[{"id":"SM_FMP_HCEN"},{"id":"SM_FMP_HCNN"},{"id":"SM_FMP_HCTS"}]},{"caption":"Daily Prices","items":[{"id":"SM_FMP_EN"},{"id":"SM_FMP_NN"},{"id":"SM_FMP_TS"}]},{"caption":"Company Valuation","items":[{"id":"SM_FMP_FS"},{"id":"SM_FMP_FR"},{"id":"SM_FMP_EV"},{"id":"SM_FMP_METRICS"},{"id":"SM_FMP_FGR"}]}]},{"caption":"Intrinio: U.S. PC Financials","items":[{"id":"SM_INTR_CALC"},{"id":"SM_INTR_INCOME"},{"id":"SM_INTR_BALANCE"},{"id":"SM_INTR_CASH"}]},{"caption":"Nasdaq Data Link","items":[{"id":"SM_SP500"},{"id":"SM_EURONEXT"},{"id":"SM_TOKYO"},{"id":"SM_WIKI"}]}],"items":{"SM_NDL":{"dialogProps":{"rootUri":"./data/ndl/","isFd":true,"nInitFromDate":8,"noDate":true,"loadId":"Q","spT":"id","chartsType":"t2"}},"SM_INTR":{"dialogProps":{"rootUri":"./data/stock-markets/","descr":"intrinio","spT":"id","selectProps":[["Stock","wiki"]],"isFd":true,"nInitFromDate":6,"chartsType":"t2","linkFn":"NASDAQ","loadId":"INTR"}},"SM_FMP":{"dialogProps":{"loadId":"FMP","descrUrl":"./data/stock-markets/fmp.html","rootUri":"./data/stock-markets/","spT":"id","chartsType":"t2"}},"SM_FMP_HP":{"extends":"SM_FMP","dialogProps":{"isFd":true,"chartsType":"t1","nInitFromDate":2,"dfProps":{"dfT":"historical-price-full","dfPn":"historical"}}},"SM_FMP_HC":{"extends":"SM_FMP","dialogProps":{"dfProps":{"dfT":"historical-chart","dfPn":"intraday"}}},"SM_TW":{"dialogProps":{"loadId":"TW","descrUrl":"./data/stock-markets/twelve-data.html","rootUri":"./data/stock-markets/","spT":"id","chartsType":"t1","dataSource":"Twelve Data"}},"SM_AV":{"dialogProps":{"loadId":"AV","dataSource":"Alpha Vantage","rootUri":"./data/stock-markets/","descr":"alpha-vantage"}},"SM_AVI":{"extends":"SM_AV","dialogProps":{"spT":"id","chartsType":"t1","dfProps":{"dfFn":"EOD","dfSubId":"I"}}},"SM_AV_ST":{"extends":"SM_AV","dialogProps":{"selectProps":[["Stock","wiki","items",true]],"spT":"id","chartsType":"t2"}},"SM_AV_EI":{"extends":"SM_AV","dialogProps":{"spT":"id","chartsType":"t2"}},"SM_SP500":{"type":"SM_SP500","menuTitle":"S&P 500 Ratios","contFullCaption":"NDL: S&P 500 Ratios","addProps":"SM_NDL","dialogProps":{"descr":"sp500-ratios","selectProps":[["S&P 500","sp500-ratios"]],"nInitFromDate":22,"dataSource":"(Code: MULTPL)","dfProps":{"dfDbId":"MULTPL"}}},"SM_EURONEXT":{"type":"SM_EURONEXT","menuTitle":"Euronext (06-2021)","dialogCaption":"Euronext Stock Prices","contFullCaption":"NDL: Euronext Stock Prices","addProps":"SM_NDL","dialogProps":{"rootUri":"./data/stock-markets/","descr":"euronext","selectProps":[["Item","euronext"]],"dataSource":"(Code: EURONEXT)","dfProps":{"dfDbId":"EURONEXT","columnName":"Last","seriaColumnNames":["Open","High","Low","Volume"]}}},"SM_TOKYO":{"type":"SM_TOKYO","menuTitle":"Tokyo (12-2017)","dialogCaption":"Tokyo Stock Prices","contFullCaption":"NDL: Tokyo Stock Prices","addProps":"SM_NDL","dialogProps":{"rootUri":"./data/stock-markets/","descr":"tokyo","selectProps":[["Item","tokyo"]],"dataSource":"(Code: TSE)","dfProps":{"dfDbId":"TSE","columnName":"Close","seriaColumnNames":["Open","High","Low","Volume"]}}},"SM_WIKI":{"type":"SM_WIKI","menuTitle":"Wiki EOD (03-2018)","dialogCaption":"Wiki EOD","contFullCaption":"NDL: Wiki EOD","addProps":"SM_NDL","dialogProps":{"rootUri":"./data/stock-markets/","descr":"wiki","selectProps":[["Item","wiki"]],"linkFn":"NASDAQ","dataSource":"(Code: WIKI)","dfProps":{"dfDbId":"WIKI","columnName":"Close","seriaColumnNames":["Open","High","Low","Volume","Adj. Close"]}}},"SM_A_INDICATOR":{"type":"SM_A_INDICATOR","menuTitle":"Technical Indicators","dialogCaption":"AV: Technical Indicators","contFullCaption":"Alpha Vantage: Technical Indicators","dialogType":"AlphaIndicatorDialog","dialogProps":{"descrUrl":"./data/stock-markets/alpha-vantage.html","oneURI":"./data/stock-markets/alpha-indicators.json","oneJsonProp":"indicators","oneCaption":"Indicators","valueFn":"ROne","loadId":"AL","columnName":"Close","dataSource":"Alpha Vantage: Indicators"}},"SM_A_TOP_GL":{"type":"SM_A_TOP_GL","menuTitle":"Top Gainers & Losers","dialogCaption":"Top Gainers & Losers","contFullCaption":"Alpha Vantage: US Top","dialogType":"AlphaTopDialog","addProps":"SM_AV","dialogProps":{"dfSubId":"GL"}},"SM_A_INTRADAY":{"type":"SM_A_INTRADAY","menuTitle":"Intraday","dialogCaption":"Alpha Vantage: Intraday","contFullCaption":"Alpha Vantage: Intraday Prices","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Interval","av-interval"]],"chartsType":"t1","dfProps":{"dfSubId":"I","dfFn":"TIME_SERIES_INTRADAY"}}},"SM_A_EOD":{"type":"SM_A_EOD","menuTitle":"End-of-Day","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Interval","av-eod-interval"]],"chartsType":"t1","dfProps":{"dfFn":"EOD","dfSubId":"I"}}},"SM_A_SP":{"type":"SM_A_SP","menuTitle":"S&P 500, USD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","sp-500","items",true],["Interval","av-eod-interval"]]}},"SM_A_SPTSX":{"type":"SM_A_SPTSX","menuTitle":"S&P/TSX 60, CAD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","sp-tsx-60","items",true],["Interval","av-eod-interval"]]}},"SM_A_TSXV":{"type":"SM_A_TSXV","menuTitle":"TSX Venture 50, CAD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","tsx-venture-50","items",true],["Interval","av-eod-interval"]]}},"SM_A_FTSE":{"type":"SM_A_FTSE","menuTitle":"FTSE 100, GBX","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","ftse-100","items",true],["Interval","av-eod-interval"]]}},"SM_A_AEX":{"type":"SM_A_AEX","menuTitle":"AEX Index, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","aex-index","items",true],["Interval","av-eod-interval"]]}},"SM_A_BEL":{"type":"SM_A_BEL","menuTitle":"BEL 20, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","bel-20","items",true],["Interval","av-eod-interval"]]}},"SM_A_DAX":{"type":"SM_A_DAX","menuTitle":"DAX 40, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","dax-40","items",true],["Interval","av-eod-interval"]]}},"SM_A_CAC":{"type":"SM_A_CAC","menuTitle":"CAC 40, EUR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","cac-40","items",true],["Interval","av-eod-interval"]]}},"SM_A_SZSE":{"type":"SM_A_SZSE","menuTitle":"SZSE 100, CNY","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","szse-100","items",true],["Interval","av-eod-interval"]]}},"SM_A_SSE":{"type":"SM_A_SSE","menuTitle":"SSE 50, CNY","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","sse-50","items",true],["Interval","av-eod-interval"]]}},"SM_A_BSE":{"type":"SM_A_BSE","menuTitle":"BSE SENSEX 30, INR","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","bse-sensex-30","items",true],["Interval","av-eod-interval"]]}},"SM_A_CEETF":{"type":"SM_A_CEETF","menuTitle":"Clean Energy ETFs, USD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","clean-energy-etf","items",true],["Interval","av-eod-interval"]]}},"SM_A_BETF":{"type":"SM_A_BETF","menuTitle":"BTC ETFs, USD","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","btc-etf","items",true],["Interval","av-eod-interval"]]}},"SM_A_ETF":{"type":"SM_A_ETF","menuTitle":"ETF Profile & Holdings","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","clean-energy-etf","items",true]],"chartsType":"tc","noDate":true,"dfProps":{"dfSubId":"EP","dfFn":"ETF_PROFILE"}}},"SM_A_OVERVIEW":{"type":"SM_A_OVERVIEW","menuTitle":"Overview","addProps":"SM_AVI","dialogProps":{"selectProps":[["Ticker","wiki","items",true]],"isCh":false,"isFd":false,"dfProps":{"dfSubId":"OV","dfFn":"OVERVIEW"}}},"SM_A_INCOME":{"type":"SM_A_INCOME","menuTitle":"Income Statement","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Statement","av-income-statement"],["Period","av-periods"]],"dfProps":{"dfSubId":"F","dfFn":"INCOME_STATEMENT"}}},"SM_A_BS":{"type":"SM_A_BS","menuTitle":"Balance Sheet","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Statement","av-balance-sheet"],["Period","av-periods"]],"dfProps":{"dfSubId":"F","dfFn":"BALANCE_SHEET"}}},"SM_A_CF":{"type":"SM_A_CF","menuTitle":"Cash Flow","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Statement","av-cash-flow"],["Period","av-periods"]],"dfProps":{"dfSubId":"F","dfFn":"CASH_FLOW"}}},"SM_A_EAR":{"type":"SM_A_EAR","menuTitle":"Earnings (EPS)","addProps":"SM_AV_ST","dialogProps":{"selectProps":[["Period","av-periods"]],"dfProps":{"dfSubId":"E","dfFn":"EARNINGS"}}},"SM_A_ECONOMICS":{"type":"SM_A_ECONOMICS","menuTitle":"Economic Indicators","addProps":"SM_AV_EI","dialogProps":{"selectProps":[["Indicator","av-economics"]],"dfProps":{"dfSubId":"EI","dfFn":"ECONOMICS"}}},"SM_A_SEARCH":{"type":"SM_A_SEARCH","menuTitle":"Search Symbols or Companies","dialogCaption":"Alpha Vantage: Search","dialogType":"AlphaSearchDialog","addProps":"SM_AV","dialogProps":{"valueFn":"ROne","dfSubId":"I","dfT":"SEARCH","isGetKey":true}},"SM_FMP_HCEN":{"type":"SM_FMP_HCEN","menuTitle":"Euronext","contFullCaption":"FMP: Euronext","addProps":"SM_FMP_HC","dialogProps":{"selectProps":[["Equity","fmp-euronext","items",true],["Interval","fmp-interval"]]}},"SM_FMP_HCNN":{"type":"SM_FMP_HCNN","menuTitle":"NYSE, NASDAQ","contFullCaption":"FMP: NYSE, NASDAQ","addProps":"SM_FMP_HC","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Interval","fmp-interval"]]}},"SM_FMP_HCTS":{"type":"SM_FMP_HCTS","menuTitle":"TSX","contFullCaption":"FMP: TSX","addProps":"SM_FMP_HC","dialogProps":{"selectProps":[["Stock","fmp-tsx","items",true],["Interval","fmp-interval"]]}},"SM_FMP_NN":{"type":"SM_FMP_NN","menuTitle":"NYSE, NASDAQ","contFullCaption":"FMP: NYSE, NASDAQ","addProps":"SM_FMP_HP","dialogProps":{"selectProps":[["Stock","wiki","items",true]]}},"SM_FMP_EN":{"type":"SM_FMP_EN","menuTitle":"Euronext","contFullCaption":"FMP: Euronext","addProps":"SM_FMP_HP","dialogProps":{"selectProps":[["Equity","fmp-euronext","items",true]]}},"SM_FMP_TS":{"type":"SM_FMP_TS","menuTitle":"TSX","contFullCaption":"FMP: TSX","addProps":"SM_FMP_HP","dialogProps":{"selectProps":[["Stock","fmp-tsx","items",true]]}},"SM_FMP_FS":{"type":"SM_FMP_FS","menuTitle":"Financial Statements","contFullCaption":"FMP: Financials Statements","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Statement","fmp-financial-statements"],["Period","fmp-periods"]],"dfProps":{"dfT":"financials/income-statement","dfPn":"financials"}}},"SM_FMP_FR":{"type":"SM_FMP_FR","menuTitle":"Financial Ratios","contFullCaption":"FMP: Financials Ratios","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Ratio","fmp-financial-ratio"],["Period","fmp-periods"]],"dfProps":{"dfT":"ratios"}}},"SM_FMP_EV":{"type":"SM_FMP_EV","menuTitle":"Enterprise Value","contFullCaption":"FMP: Enterprise Value","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Statement","fmp-enterprise-values"],["Period","fmp-periods"]],"dfProps":{"dfT":"enterprise-value","dfPn":"enterpriseValues"}}},"SM_FMP_METRICS":{"type":"SM_FMP_METRICS","menuTitle":"Key Metrics","contFullCaption":"FMP: Key Metrics","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Metric","fmp-metrics"],["Period","fmp-periods"]],"dfProps":{"dfT":"company-key-metrics","dfPn":"metrics"}}},"SM_FMP_FGR":{"type":"SM_FMP_FGR","menuTitle":"Financial Growth","contFullCaption":"FMP: Financials Growth","addProps":"SM_FMP","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Growth","fmp-financial-growth"],["Period","fmp-periods"]],"dfProps":{"dfT":"financial-statement-growth","dfPn":"growth"}}},"SM_TW_TS":{"type":"SM_TW_TS","menuTitle":"NYSE, NASDAQ","addProps":"SM_TW","dialogProps":{"selectProps":[["Stock","wiki","items",true],["Interval","tw-interval"],["Limit","tw-limit"]]}},"SM_INTR_CALC":{"type":"SM_INTR_CALC","menuTitle":"Calculation & Metric","contFullCaption":"Intrinio: Calculation & Metric","addProps":"SM_INTR","dialogProps":{"selectProps":[["Calc","intrinio-calc"],["Period","intrinio-period-type"]],"dataSource":"Intrinio: US PC Financials: Calculation & Metric"}},"SM_INTR_INCOME":{"type":"SM_INTR_INCOME","menuTitle":"Income Statement","contFullCaption":"Intrinio: Income Statement","addProps":"SM_INTR","dialogProps":{"selectProps":[["Income","intrinio-income"],["Period","intrinio-period-type"]],"dataSource":"Intrinio: US PC Financials: Income Statement"}},"SM_INTR_BALANCE":{"type":"SM_INTR_BALANCE","menuTitle":"Balance Sheet","contFullCaption":"Intrinio: Balance Sheet","addProps":"SM_INTR","dialogProps":{"selectProps":[["Balance","intrinio-balance"]],"dataSource":"Intrinio: US PC Financials: Balance Sheet"}},"SM_INTR_CASH":{"type":"SM_INTR_CASH","menuTitle":"Cash Flow Statement","contFullCaption":"Intrinio: Cash Flow Statement","addProps":"SM_INTR","dialogProps":{"selectProps":[["Cash","intrinio-cash"],["Period","intrinio-period-type"]],"dataSource":"Intrinio: US PC Financials: Cash Flow Statement"}}}} \ No newline at end of file diff --git a/index.html b/index.html index 415a25ea61..abfc3b6f05 100644 --- a/index.html +++ b/index.html @@ -115,9 +115,9 @@

Web app ERC (Economic RESTful Client)

- + - + diff --git a/js/components/AppErc.js b/js/components/AppErc.js index 61f1f1260d..a437e4c399 100644 --- a/js/components/AppErc.js +++ b/js/components/AppErc.js @@ -18,7 +18,7 @@ var _CompContainer = _interopRequireDefault(require("./zhn-containers/CompContai var _DialogContainer = _interopRequireDefault(require("./dialogs/DialogContainer")); var _checkBuild = _interopRequireDefault(require("./checkBuild")); var _jsxRuntime = require("react/jsx-runtime"); -const BUILD_DATE = "19-12-2024", +const BUILD_DATE = "26-12-2024", CL_COMP_CONTAINER = (0, _styleFn.crFlexRowCn)("app-container"); const _showSettings = (0, _uiApi.bindTo)(_ComponentActions.showSettings, (0, _settingStore.exportSettingFn)()); const AppErc = () => { diff --git a/src/components/AppErc.jsx b/src/components/AppErc.jsx index e4681002aa..333556b9cf 100644 --- a/src/components/AppErc.jsx +++ b/src/components/AppErc.jsx @@ -29,7 +29,7 @@ import DialogContainer from "./dialogs/DialogContainer"; import checkBuild from "./checkBuild"; -const BUILD_DATE = "19-12-2024" +const BUILD_DATE = "26-12-2024" , CL_COMP_CONTAINER = crFlexRowCn("app-container"); const _showSettings = bindTo(