let sparklineConfig=(e,t)=>({chart:{type:"area",height:60,sparkline:{enabled:!0}},stroke:{curve:"smooth",width:2},series:[{data:e}],colors:[t],tooltip:{enabled:!1}}),dummyNewUsers=[50*Math.sin(0)+500,60*Math.sin(1)+500,70*Math.sin(2)+500,80*Math.sin(3)+500,90*Math.sin(4)+500,100*Math.sin(5)+500,110*Math.sin(6)+500],dummyActiveUsers=[89e3+500*Math.sin(0),89200+600*Math.sin(1),89700+700*Math.sin(2),90500+800*Math.sin(3),91e3+900*Math.sin(4),91300+1e3*Math.sin(5),92e3+1100*Math.sin(6)],dummyBlockedUsers=[2600+10*Math.sin(0),2605+12*Math.sin(1),2610+15*Math.sin(2),2608+18*Math.sin(3),2612+20*Math.sin(4)],dummyTables=[7e3+150*Math.sin(0),7100+160*Math.sin(1),7200+170*Math.sin(2),7400+180*Math.sin(3),7850+200*Math.sin(4)],clipboardElements=(new CustomApexChart({selector:"#chart-api-calls",options:()=>sparklineConfig(dummyNewUsers,theme("chart-secondary"))}),new CustomApexChart({selector:"#chart-successful-conversions",options:()=>sparklineConfig(dummyActiveUsers,theme("chart-beta"))}),new CustomApexChart({selector:"#chart-failed-requests",options:()=>sparklineConfig(dummyBlockedUsers,theme("chart-delta"))}),new CustomApexChart({selector:"#chart-active-endpoints",options:()=>sparklineConfig(dummyTables,theme("chart-alpha"))}),document.querySelectorAll("[data-clipboard-target]"));function generateApiKey(t=27){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(let e=0;e<t;e++)n+=a.charAt(Math.floor(Math.random()*a.length));return n}clipboardElements&&new ClipboardJS("[data-clipboard-target]");let inputElement=document.getElementById("apiKeyInput"),generateApiKeyBtn=document.getElementById("generateApiKey");inputElement&&generateApiKeyBtn&&generateApiKeyBtn.addEventListener("click",e=>{e.preventDefault(),inputElement.value=generateApiKey()});