async function getSnapshotData(doc){let base64=doc.querySelector("meta[name=snapshot]")?.content;if(base64==null)return null;const img=new Image();img.src=base64;let load=false;img.onload=()=>{load=true};while(load!=true){await sl(1)}const canvas=document.createElement('canvas');canvas.width=img.width;canvas.height=img.height;const context=canvas.getContext('2d');context.drawImage(img,0,0);const imageData=context.getImageData(0,0,img.width,img.height);const pixels=imageData.data;let plist=[];for(let x=0;x>4<<(4*2))+(green>>4<<(4*1))+(blue>>4<<(4*0))).toString(16).padStart(7,"0");plist.push(p)}}}return plist.join(',')} const css_b = "margin:0px;display:flex;justify-content:center;align-items:center;height:100vh;background: #000";