"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./html2canvas.esm-BA_v9SIU.cjs");function s({domElement:n,fileName:o,format:a="png",options:r={}}){if(n)return new Promise((c,i)=>{const e=document.createElement("a");l.default(n,{...r}).then(t=>{e.href=t.toDataURL(`image/${a}`),e.download=`${o}.${a}`,e.click(),e&&e.remove(),c()}).catch(t=>{console.error("Error generating image:",t),i(t)})})}exports.default=s;
