/*! For license information please see toastify.js.LICENSE.txt */(()=>{vart={8588:function(t){varo,e;o=this,e=function(t){varo=function(t){returnnewo.lib.init(t)};functione(t,o){returno.offset[t]?isNaN(o.offset[t])?o.offset[t]:o.offset[t]+"px":"0px"}functioni(t,o){return!(!t||"string"!=typeofo||!(t.className&&t.className.trim().split(/\s+/gi).indexOf(o)>-1))}returno.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void0,duration:3e3,selector:void0,callback:function(){},destination:void0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,style:{background:""}},o.lib=o.prototype={toastify:"1.11.0",constructor:o,init:function(t){returnt||(t={}),this.options={},this.toastElement=null,this.options.text=t.text||o.defaults.text,this.options.node=t.node||o.defaults.node,this.options.duration=0===t.duration?0:t.duration||o.defaults.duration,this.options.selector=t.selector||o.defaults.selector,this.options.callback=t.callback||o.defaults.callback,this.options.destination=t.destination||o.defaults.destination,this.options.newWindow=t.newWindow||o.defaults.newWindow,this.options.close=t.close||o.defaults.close,this.options.gravity="bottom"===t.gravity?"toastify-bottom":o.defaults.gravity,this.options.positionLeft=t.positionLeft||o.defaults.positionLeft,this.options.position=t.position||o.defaults.position,this.options.backgroundColor=t.backgroundColor||o.defaults.backgroundColor,this.options.avatar=t.avatar||o.defaults.avatar,this.options.className=t.className||o.defaults.className,this.options.stopOnFocus=void0===t.stopOnFocus?o.defaults.stopOnFocus:t.stopOnFocus,this.options.onClick=t.onClick||o.defaults.onClick,this.options.offset=t.offset||o.defaults.offset,this.options.escapeMarkup=void0!==t.escapeMarkup?t.escapeMarkup:o.defaults.escapeMarkup,this.options.style=t.style||o.defaults.style,this.options.style.background=o.defaults.backgroundColor||t.backgroundColor,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";vart=document.createElement("div");t.className="toastify on "+this.options.className,this.options.position?t.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(t.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):t.className+=" toastify-right",t.className+=""+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(constointhis.options.style)t.style[o]=this.options.style[o];if(this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)t.appendChild(this.options.node);elseif(this.options.escapeMarkup?t.innerText=this.options.text:t.innerHTML=this.options.text,""!==this.options.avatar){varo=document.createElement("img");o.src=this.options.avatar,o.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?t.appendChild(o):t.insertAdjacentElement("afterbegin",o)}if(!0===this.options.close){vari=document.createElement("span");i.innerHTML="✖",i.className="toast-close",i.addEventListener("click",function(t){t.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));vars=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&s>360?t.insertAdjacentElement("afterbegin",i):t.appendChild(i)}if(this.options.stopOnFocus&&this.options.duration>0){varn=this;t.addEventListener("mouseover",(function(o){window.clearTimeout(t.timeOutValue)})),t.addEventListener("mouseleave",(function(){t.timeOutValue=window.setTimeout((function(){n.removeElement(t)}),n.options.duration)}))}if(void0!==this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeofthis.options.onClick&&void0===this.options.destination&&t.addEventListener("click",function(t){t.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeofthis.options.offset){vara=e("x",this.options),r=e("y",this.options),l="left"==this.options.position?a:"-"+a,d="toastify-top"==this.options.gravity?r:"-"+r;t.style.transform="translate("+l+","+d+")"}returnt},showToast:function(){vart;if(this.toastElement=this.buildToast(),!(t="string"==typeofthis.options.selector?document.getElementById(this.options.selector):this.options.selectorinstanceofHTMLElement||this.options.selectorinstanceofShadowRoot?this.options.selector:document.body))throw"Root element is not defined";vare=o.defaults.oldestFirst?t.firstChild:t.lastChild;returnt.insertBefore(this.toastElement,e),o.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(t){t.className=t.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),t.parentNode&&t.parentNode.removeChild(t),this.options.callback.call(t),o.reposition()}.bind(this),400)}},o.reposition=function(){for(vart,o={top:15,bottom:15},e={top:15,bottom:15},s={top:15,bottom:15},n=document.getElementsByClassName("toastify"),a=0;a<n.length;a++){t=!0===i(n[a],"toastify-top")?"toastify-top":"toastify-bottom";varr=n[a].offsetHeight;t=t.substr(9,t.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(n[a].style[t]=s[t]+"px",s[t]+=r+15):!0===i(n[a],"toastify-left")?(n[a].style[t]=o[t]+"px",o[t]+=r+15):(n[a].style[t]=e[t]+"px",e[t]+=r+15)}returnthis},o.lib.init.prototype=o.lib,o},t.exports?t.exports=e():o.Toastify=e()}},o={};functione(i){vars=o[i];if(void0!==s)returns.exports;varn=o[i]={exports:{}};returnt[i].call(n.exports,n,n.exports,e),n.exports}e.n=t=>{varo=t&&t.__esModule?()=>t.default:()=>t;returne.d(o,{a:o}),o},e.d=(t,o)=>{for(variino)e.o(o,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:o[i]})},e.o=(t,o)=>Object.prototype.hasOwnProperty.call(t,o),(()=>{"use strict";vart=e(8588),o=e.n(t);document.getElementById("basic").addEventListener("click",(function(){o()({text:"This is a toast",duration:3e3}).showToast()})),document.getElementById("background").addEventListener("click",(function(){o()({text:"This is a toast",duration:3e3,backgroundColor:"linear-gradient(to right, #00b09b, #96c93d)"}).showToast()})),document.getElementById("close").addEventListener("click",(function(){o()({text:"Click close button",duration:3e3,close:!0,backgroundColor:"#4fbe87"}).showToast()})),document.getElementById("top-left").addEventListener("click",(function(){o()({text:"This is toast in top left",duration:3e3,close:!0,gravity:"top",position:"left",backgroundColor:"#4fbe87"}).showToast()})),document.getElementById("top-center").addEventListener("click",(function(){o()({text:"This is toast in top center",duration:3e3,close:!0,gravity:"top",position:"center",backgroundColor:"#4fbe87"}).showToast()})),document.getElementById("top-right").addEventListener("click",(function(){o()({text:"This is toast in top right",duration:3e3,close:!0,gravity:"top",position:"right",backgroundColor:"#4fbe87"}).showToast()})),document.getElementById("bottom-right").addEventListener("click",(function(){o()({text:"This is toast in bottom right",duration:3e3,close:!0,gravity:"bottom",position:"right",backgroundColor:"#4fbe87"}).showToast()})),document.getElementById("bottom-center").addEventListener("click",(function(){o()({text:"This is toast in bottom center",duration:3e3,close:!0,gravity:"bottom",position:"center",backgroundColor:"#4fbe87"}).showToast()})),document.getElementById("bottom-left").addEventListener("click",(function(){o()({text:"This is toast in bottom left",duration:3e3,close:!0,gravity:"bottom",position:"left",backgroundColor:"#4fbe87"}).showToast()}))})()})();