function generateData(a,e){let t=0;for(var r=[];t<a;){var m=(t+1).toString(),n=Math.floor(Math.random()*(e.max-e.min+1))+e.min;r.push({x:m,y:n}),t++}return r}new CustomApexChart({selector:"#basic-heatmap",options:()=>({chart:{height:350,type:"heatmap",toolbar:{show:!1}},dataLabels:{enabled:!1},colors:[theme("chart-primary")],series:[{name:"Metric 1",data:generateData(10,{min:0,max:90})},{name:"Metric 2",data:generateData(10,{min:0,max:90})},{name:"Metric 3",data:generateData(10,{min:0,max:90})},{name:"Metric 4",data:generateData(10,{min:0,max:90})},{name:"Metric 5",data:generateData(10,{min:0,max:90})},{name:"Metric  6",data:generateData(10,{min:0,max:90})},{name:"Metric 7",data:generateData(10,{min:0,max:90})},{name:"Metric 8",data:generateData(10,{min:0,max:90})},{name:"Metric 9",data:generateData(10,{min:0,max:90})}],xaxis:{type:"category"},grid:{borderColor:[theme("chart-order-color")],padding:{top:-25,right:5,bottom:-15,left:15}}})}),new CustomApexChart({selector:"#multiple-series-heatmap",options:()=>({chart:{height:350,type:"heatmap",toolbar:{show:!1}},dataLabels:{enabled:!1},colors:[theme("chart-primary"),theme("chart-secondary"),theme("chart-delta"),theme("chart-alpha"),theme("chart-zeta"),theme("chart-beta"),theme("chart-dark"),theme("chart-gamma")],series:[{name:"Metric 1",data:generateData(15,{min:0,max:90})},{name:"Metric 2",data:generateData(15,{min:0,max:90})},{name:"Metric 3",data:generateData(15,{min:0,max:90})},{name:"Metric 4",data:generateData(15,{min:0,max:90})},{name:"Metric 5",data:generateData(15,{min:0,max:90})},{name:"Metric 6",data:generateData(15,{min:0,max:90})},{name:"Metric 7",data:generateData(15,{min:0,max:90})},{name:"Metric 8",data:generateData(15,{min:0,max:90})},{name:"Metric 9",data:generateData(15,{min:0,max:90})}],xaxis:{type:"category"},grid:{borderColor:[theme("chart-order-color")],padding:{top:-25,right:5,bottom:-15,left:15}}})}),new CustomApexChart({selector:"#color-range-heatmap",options:()=>({chart:{height:350,type:"heatmap",toolbar:{show:!1}},plotOptions:{heatmap:{shadeIntensity:.5,colorScale:{ranges:[{from:-30,to:5,name:"Low",color:theme("chart-alpha")},{from:6,to:20,name:"Medium",color:theme("chart-delta")},{from:21,to:45,name:"High",color:theme("chart-beta")},{from:46,to:55,name:"Extreme",color:theme("chart-alpha")}]}}},dataLabels:{enabled:!1},legend:{offsetY:-7},series:[{name:"Jan",data:generateData(20,{min:-30,max:55})},{name:"Feb",data:generateData(20,{min:-30,max:55})},{name:"Mar",data:generateData(20,{min:-30,max:55})},{name:"Apr",data:generateData(20,{min:-30,max:55})},{name:"May",data:generateData(20,{min:-30,max:55})},{name:"Jun",data:generateData(20,{min:-30,max:55})},{name:"Jul",data:generateData(20,{min:-30,max:55})},{name:"Aug",data:generateData(20,{min:-30,max:55})},{name:"Sep",data:generateData(20,{min:-30,max:55})}],grid:{borderColor:[theme("chart-order-color")],padding:{top:-25,right:5,bottom:-15,left:15}}})}),new CustomApexChart({selector:"#rounded-heatmap",options:()=>({chart:{height:350,type:"heatmap",toolbar:{show:!1}},stroke:{width:0},plotOptions:{heatmap:{radius:30,enableShades:!1,colorScale:{ranges:[{from:0,to:50,color:theme("chart-delta")},{from:51,to:100,color:theme("chart-alpha")}]}}},legend:{offsetY:-7},dataLabels:{enabled:!0,style:{colors:["#fff"]}},series:[{name:"iPhone 11",data:generateData(20,{min:0,max:90})},{name:"iPhone 12",data:generateData(20,{min:0,max:90})},{name:"iPhone 13",data:generateData(20,{min:0,max:90})},{name:"iPhone 14",data:generateData(20,{min:0,max:90})},{name:"iPhone 15",data:generateData(20,{min:0,max:90})},{name:"iPhone 15 Pro",data:generateData(20,{min:0,max:90})},{name:"iPhone 16",data:generateData(20,{min:0,max:90})},{name:"iPhone 16 Pro",data:generateData(20,{min:0,max:90})},{name:"iPhone 16 Pro Max",data:generateData(20,{min:0,max:90})}],xaxis:{type:"category"},grid:{borderColor:[theme("chart-order-color")]}})});