(e=>{let n=(()=>{let o=new WeakMap;function n(){o.set(this,{$container:null,id:0}),this._init()}return n.prototype={_init:function(){this._buildDOM()},_buildDOM:function(){var n=o.get(this);n.$container=e("<div>").addClass("ninjadraw-notify-container"),e("body").append(n.$container)},_animationEvent:function(){var n,i=document.createElement("fakeelement"),a={animation:"animationend",MSAnimationEnd:"msAnimationEnd",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(n in a)if(void 0!==i.style[n])return a[n];return null},_getNotify:function(n){n=o.get(this).$container.find(`.ninjadraw-notify[data-id='${n}']`);return n.length?n:null},_showNotify:function(n,i,a){setTimeout(this.close.bind(this,i),a||5e3)},_removeNotify:function(n){n.remove()},show:function(n,i,a){var t=o.get(this),i=e("<div>").addClass("ninjadraw-notify").addClass(i).attr({"data-id":++t.id}),n=e("<div>").addClass("ninjadraw-title").html(n);return i.append(n),t.$container.append(i),i.removeClass("ninjadraw-fx-show ninjadraw-fx-hide"),i.addClass("ninjadraw-fx-show"),i.one(this._animationEvent(),this._showNotify.bind(this,i,t.id,a)),t.id},close:function(n){n=this._getNotify(n);n&&(n.removeClass("ninjadraw-fx-show ninjadraw-fx-hide"),n.addClass("ninjadraw-fx-hide"),n.one(this._animationEvent(),this._removeNotify.bind(this,n)))}},n})();window.Yalogica=window.Yalogica||{},window.Yalogica.NinjaDraw=window.Yalogica.NinjaDraw||{},window.Yalogica.NinjaDraw.Plugins=window.Yalogica.NinjaDraw.Plugins||{},window.Yalogica.NinjaDraw.Plugins.Notify=function(){return new n}})(jQuery);