!function(x,w,D,I){"use strict";x.isFunction=x.isFunction||function(e){return"function"==typeofe&&"number"!=typeofe.nodeType},w=void0!==w&&w.Math==Math?w:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")(),x.fn.nag=function(d){varp,e=x(this),m=e.selector||"",f=(newDate).getTime(),h=[],b=d,v="string"==typeofb,y=[].slice.call(arguments,1);returne.each(function(){varo,s,i=x.isPlainObject(d)?x.extend(!0,{},x.fn.nag.settings,d):x.extend({},x.fn.nag.settings),e=i.selector,c=i.error,n=i.namespace,t="."+n,a=n+"-module",r=x(this),l=i.context?x(i.context):x("body"),u=this,g=r.data(a);s={initialize:function(){s.verbose("Initializing element"),o=s.get.storage(),r.on("click"+t,e.close,s.dismiss).data(a,s),i.detachable&&r.parent()[0]!==l[0]&&r.detach().prependTo(l),0<i.displayTime&&setTimeout(s.hide,i.displayTime),s.show()},destroy:function(){s.verbose("Destroying instance"),r.removeData(a).off(t)},show:function(){if(s.should.show()&&!r.is(":visible")){if(!1===i.onShow.call(u))returns.debug("onShow callback returned false, cancelling nag animation"),!1;s.debug("Showing nag",i.animation.show),"fade"===i.animation.show?r.fadeIn(i.duration,i.easing,i.onVisible):r.slideDown(i.duration,i.easing,i.onVisible)}},hide:function(){if(!1===i.onHide.call(u))returns.debug("onHide callback returned false, cancelling nag animation"),!1;s.debug("Hiding nag",i.animation.hide),"fade"===i.animation.hide?r.fadeOut(i.duration,i.easing,i.onHidden):r.slideUp(i.duration,i.easing,i.onHidden)},dismiss:function(e){!1!==s.hide()&&i.storageMethod&&(s.debug("Dismissing nag",i.storageMethod,i.key,i.value,i.expires),s.storage.set(i.key,i.value)),e.stopImmediatePropagation(),e.preventDefault()},should:{show:function(){returni.persist?(s.debug("Persistent nag is set, can show nag"),!0):s.storage.get(i.key)!=i.value.toString()?(s.debug("Stored value is not set, can show nag",s.storage.get(i.key)),!0):(s.debug("Stored value is set, cannot show nag",s.storage.get(i.key)),!1)}},get:{expirationDate:function(e){if("number"==typeofe&&(e=newDate(Date.now()+864e5*e)),einstanceofDate&&e.getTime())returne.toUTCString();s.error(c.expiresFormat)},storage:function(){return"localstorage"===i.storageMethod&&w.localStorage!==I?(s.debug("Using local storage"),w.localStorage):"sessionstorage"===i.storageMethod&&w.sessionStorage!==I?(s.debug("Using session storage"),w.sessionStorage):"cookie"inD?(s.debug("Using cookie"),{setItem:function(e,n,t){e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),n=encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);varo="";for(variint)t.hasOwnProperty(i)&&(o+="; "+i,"string"==typeoft[i]&&(o+="="+t[i].split(";")[0]));D.cookie=e+"="+n+o},getItem:function(e){for(varn=D.cookie.split("; "),t=0,o=n.length;t<o;t++){vari=n[t].split("=");if(e===i[0].replace(/(%[\dA-F]{2})+/gi,decodeURIComponent))returni[1]||""}},removeItem:function(e,n){o.setItem(e,"",n)}}):voids.error(c.noStorage)},storageOptions:function(){vare={};returni.expires&&(e.expires=s.get.expirationDate(i.expires)),i.domain&&(e.domain=i.domain),i.path&&(e.path=i.path),i.secure&&(e.secure=i.secure),i.samesite&&(e.samesite=i.samesite),e}},clear:function(){s.storage.remove(i.key)},storage:{set:function(e,n){vart=s.get.storageOptions();o===w.localStorage&&t.expires&&(s.debug("Storing expiration value in localStorage",e,t.expires),o.setItem(e+i.expirationKey,t.expires)),s.debug("Value stored",e,n);try{o.setItem(e,n,t)}catch(e){s.error(c.setItem,e)}},get:function(e){varn;if(n=o.getItem(e),o===w.localStorage){vart=o.getItem(e+i.expirationKey);null!==t&&t!==I&&newDate(t)<newDate&&(s.debug("Value in localStorage has expired. Deleting key",e),s.storage.remove(e),n=null)}return"undefined"!=n&&"null"!=n&&n!==I&&null!==n||(n=I),n},remove:function(e){varn=s.get.storageOptions();n.expires=s.get.expirationDate(-1),o===w.localStorage&&o.removeItem(e+i.expirationKey),o.removeItem(e,n)}},setting:function(e,n){if(s.debug("Changing setting",e,n),x.isPlainObject(e))x.extend(!0,i,e);e