!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),i(t),t}:i(jQuery)}(function(a){a.jGrowl=function(e,t){0===a("#jGrowl").length&&a('
').addClass((t&&t.position?t:a.jGrowl.defaults).position).appendTo((t&&t.appendTo?t:a.jGrowl.defaults).appendTo),a("#jGrowl").jGrowl(e,t)},a.fn.jGrowl=function(e,t){var i;if(void 0===t&&a.isPlainObject(e)&&(e=(t=e).message),a.isFunction(this.each))return i=arguments,this.each(function(){void 0===a(this).data("jGrowl.instance")&&(a(this).data("jGrowl.instance",a.extend(new a.fn.jGrowl,{notifications:[],element:null,interval:null})),a(this).data("jGrowl.instance").startup(this)),a.isFunction(a(this).data("jGrowl.instance")[e])?a(this).data("jGrowl.instance")[e].apply(a(this).data("jGrowl.instance"),a.makeArray(i).slice(1)):a(this).data("jGrowl.instance").create(e,t)})},a.extend(a.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:!1,position:"top-right",appendTo:"body",glue:"after",theme:"default",themeState:"highlight",corners:"10px",check:250,life:3e3,closeDuration:"normal",openDuration:"normal",easing:"swing",closer:!0,closeTemplate:"×",closerTemplate:"
[ close all ]
",log:function(){},beforeOpen:function(){},afterOpen:function(){},open:function(){},beforeClose:function(){},close:function(){},click:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(e,t){t=a.extend({},this.defaults,t);void 0!==t.speed&&(t.openDuration=t.speed,t.closeDuration=t.speed),this.notifications.push({message:e,options:t}),t.log.apply(this.element,[this.element,e,t])},render:function(e){var t=this,i=e.message,n=e.options,o=(n.themeState=""===n.themeState?"":"ui-state-"+n.themeState,a("
").addClass("jGrowl-notification alert "+n.themeState+" ui-corner-all"+(void 0!==n.group&&""!==n.group?" "+n.group:"")).append(a("