/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/apprise@1.0.0/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var emitter=require("emitter-component"),once=require("once");function apprise(t){var e=[],o=document.body.appendChild(document.createElement("div")),r=!!(t=t||{}).top,i=!!t.left;return t.right&&(i=!1),t.bottom&&(r=!1),!1===t.right&&(i=!0),!1===t.bottom&&(r=!0),o.style.position="fixed",o.style[i?"left":"right"]="0px",o.style[r?"top":"bottom"]="0px",n=emitter(n);function n(t){var r=document.createElement("div"),l=once((function(){var t=e.indexOf(r);-1!==t&&e.splice(t,1),n.emit("exit",r),p()}));return t&&setTimeout(l,t||1e3),r.style.position="absolute",r.style[i?"left":"right"]="0px",e.push(r),n.emit("enter",r,l),o.appendChild(r),p(),r}function p(){for(var t=r?"top":"bottom",o=0,i=0;i<e.length;i++){var n=e[i],p=n.getBoundingClientRect(),l=getComputedStyle(n),a=parseFloat(l.getPropertyValue("margin-top")),m=parseFloat(l.getPropertyValue("margin-bottom"));n.style[t]=o+"px",o+=p.height,o+=m,o+=a}}}module.exports=apprise;
//# sourceMappingURL=/sm/3c23ff9537cdf479694441b2a3f95324b33063296ecb828eb6fc005837c350f2.map