// In the course of research, it was found that the tag img is very harmful when zooming and creates white canvases. This hack allows you to almost never think about this problem, it has no effect on webui.
// Toggle the zIndex of the target element between two values, allowing it to overlap or be overlapped by other elements
functionapplyZoomAndPan(targetElement,elemId){
functiontoggleOverlap(forced=""){
targetElement.style.transformOrigin="0 0";
constzIndex1="0";
let[zoomLevel,panX,panY]=[1,0,0];
constzIndex2="998";
letfullScreenMode=false;
targetElement.style.zIndex=
// In the course of research, it was found that the tag img is very harmful when zooming and creates white canvases. This hack allows you to almost never think about this problem, it has no effect on webui.