"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[7044],{37230:function(t,e){e["Z"]={id:1,testUrl:"http://192.168.1.5:10086",zIndex:2,setColor:(t,e,n)=>new Promise((a=>{var i=void 0==n?.min?5:n.min,o=void 0==n?.max?5:n.max,c=new Image;c.src=e;c.onload=()=>{const e=c.width,n=c.height,r=document.createElement("canvas");r.width=e,r.height=n;var l=r.getContext("2d");l.drawImage(c,0,0);var g=l.getImageData(0,0,e,n),f=[];for(let a=0;a<t.length;a++){var s=0;for(let e=0;e<g.data.length;e+=4){var d=g.data[e],h=g.data[e+1],u=g.data[e+2];g.data[e+3];d-i<t[a][0]&&d+o>t[a][0]&&h-i<t[a][1]&&h+o>t[a][1]&&u-i<t[a][2]&&u+o>t[a][2]&&s++}let r={rgb:t[a],ratio:parseInt(String((s/(e*n)*100).toFixed(6)))};f.push(r),c.remove()}a({width:e,height:n,ratio:f})}}))}},16888:function(t,e,n){n.d(e,{y:function(){return a}});const a=(t,e,n)=>{if(t.stopPropagation(),e){const e=t.changedTouches[0];event={offsetX:e.clientX-t.target.getBoundingClientRect().left,offsetY:e.clientY-t.target.getBoundingClientRect().top,clientX:e.clientX,clientY:e.clientY,target:t.target},n&&(event.offsetX=e.clientX-n.getBoundingClientRect().left,event.offsetY=e.clientY-n.getBoundingClientRect().top)}else event={offsetX:t.offsetX,offsetY:t.offsetY,clientX:t.clientX,clientY:t.clientY,target:t.target};return event}}}]);