Files
pathfinder/public/js/v2.2.4/app/pnotify.loader.js
Sam 5efad1da50 2.2.4 (#216)
* changes for eve-scout API

* updates composer for new pathfinder-esi version

* updates public files

* updates signature and jump info

* adds public files

* typo fix: Turnur, not Turner

Signed-off-by: Tyr Heimdal <tyr.heimdal@warning.no>

---------

Signed-off-by: Tyr Heimdal <tyr.heimdal@warning.no>
Co-authored-by: Tyr Heimdal <tyr.heimdal@warning.no>
2024-04-01 15:38:01 +13:00

3 lines
63 KiB
JavaScript

var _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define("PNotify",e):t.PNotify=e()}(this,function(){"use strict";var t=void 0,e=void 0,n=function(){t.defaultStack.context=document.body,window.addEventListener("resize",function(){e&&clearTimeout(e),e=setTimeout(function(){t.positionAll()},10)})},i=function(t){t.overlay.parentNode&&t.overlay.parentNode.removeChild(t.overlay)},o=function(t,e){return"object"!==(void 0===t?"undefined":_typeof(t))&&(t={text:t}),e&&(t.type=e),{target:document.body,data:t}};var s={runModules:function(e){if("init"===e){for(var n in t.modules)if(t.modules.hasOwnProperty(n)&&"function"==typeof t.modules[n].init){var i=t.modules[n].init(this);this.initModule(i)}}else{var o=this.get()._modules;for(var s in o)if(o.hasOwnProperty(s)){var r=_extends({_notice:this,_options:this.get()},this.get().modules[s]);o[s].set(r),"function"==typeof o[s][e]&&o[s][e]()}}},initModule:function(t){var e=this.get().modules;e.hasOwnProperty(t.constructor.key)||(e[t.constructor.key]={});var n=_extends({_notice:this,_options:this.get()},e[t.constructor.key]);t.initModule(n),this.get()._modules[t.constructor.key]=t},update:function(t){var e=this.get().hide,n=this.get().icon;this.set(t),this.runModules("update"),this.get().hide?e||this.queueClose():this.cancelClose(),this.queuePosition();var i=this.get().icon;return i!==n&&(!0===i&&"fontawesome5"===this.get().icons||"string"==typeof i&&i.match(/(^| )fa[srlb]($| )/))&&(this.set({icon:!1}),this.set({icon:i})),this},open:function(){var e=this,n=this.get(),i=n._state,o=n.hide;if("opening"!==i){if("open"!==i){this.set({_state:"opening",_animatingClass:"ui-pnotify-initial-hidden"}),this.runModules("beforeOpen");var s=this.get().stack;if(!this.refs.elem.parentNode||s&&s.context&&s.context!==this.refs.elem.parentNode)if(s&&s.context)s.context.appendChild(this.refs.elem);else{if(!document.body)throw new Error("No context to open this notice in.");document.body.appendChild(this.refs.elem)}return setTimeout(function(){s&&(s.animation=!1,t.positionAll(),s.animation=!0),e.animateIn(function(){e.get().hide&&e.queueClose(),e.set({_state:"open"}),e.runModules("afterOpen")})},0),this}o&&this.queueClose()}},remove:function(t){return this.close(t)},close:function(e){var n=this,i=this.get()._state;if("closing"!==i&&"closed"!==i){this.set({_state:"closing",_timerHide:!!e}),this.runModules("beforeClose");var o=this.get()._timer;return o&&clearTimeout&&(clearTimeout(o),this.set({_timer:null})),this.animateOut(function(){if(n.set({_state:"closed"}),n.runModules("afterClose"),n.queuePosition(),n.get().remove&&n.refs.elem.parentNode.removeChild(n.refs.elem),n.runModules("beforeDestroy"),n.get().destroy&&null!==t.notices){var e=t.notices.indexOf(n);-1!==e&&t.notices.splice(e,1)}n.runModules("afterDestroy")}),this}},animateIn:function(t){var e=this;this.set({_animating:"in"});var n=function n(){e.refs.elem.removeEventListener("transitionend",n);var i=e.get(),o=i._animTimer,s=i._animating,r=i._moduleIsNoticeOpen;if(o&&clearTimeout(o),"in"===s){var a=r;if(!a){var c=e.refs.elem.getBoundingClientRect();for(var l in c)if(c[l]>0){a=!0;break}}a?(t&&t.call(),e.set({_animating:!1})):e.set({_animTimer:setTimeout(n,40)})}};"fade"===this.get().animation?(this.refs.elem.addEventListener("transitionend",n),this.set({_animatingClass:"ui-pnotify-in"}),this.refs.elem.style.opacity,this.set({_animatingClass:"ui-pnotify-in ui-pnotify-fade-in"}),this.set({_animTimer:setTimeout(n,650)})):(this.set({_animatingClass:"ui-pnotify-in"}),n())},animateOut:function(e){var n=this;this.set({_animating:"out"});var o=function o(){n.refs.elem.removeEventListener("transitionend",o);var s=n.get(),r=s._animTimer,a=s._animating,c=s._moduleIsNoticeOpen;if(r&&clearTimeout(r),"out"===a){var l=c;if(!l){var u=n.refs.elem.getBoundingClientRect();for(var f in u)if(u[f]>0){l=!0;break}}if(n.refs.elem.style.opacity&&"0"!==n.refs.elem.style.opacity&&l)n.set({_animTimer:setTimeout(o,40)});else{n.set({_animatingClass:""});var d=n.get().stack;if(d&&d.overlay){for(var p=!1,h=0;h<t.notices.length;h++){var m=t.notices[h];if(m!==n&&m.get().stack===d&&"closed"!==m.get()._state){p=!0;break}}p||i(d)}e&&e.call(),n.set({_animating:!1})}}};"fade"===this.get().animation?(this.refs.elem.addEventListener("transitionend",o),this.set({_animatingClass:"ui-pnotify-in"}),this.set({_animTimer:setTimeout(o,650)})):(this.set({_animatingClass:""}),o())},position:function(){var e=this.get().stack,n=this.refs.elem;if(e){if(e.context||(e.context=document.body),"number"!=typeof e.nextpos1&&(e.nextpos1=e.firstpos1),"number"!=typeof e.nextpos2&&(e.nextpos2=e.firstpos2),"number"!=typeof e.addpos2&&(e.addpos2=0),!n.classList.contains("ui-pnotify-in")&&!n.classList.contains("ui-pnotify-initial-hidden"))return this;e.modal&&(e.overlay||function(e){var n=document.createElement("div");n.classList.add("ui-pnotify-modal-overlay"),e.context!==document.body&&(n.style.height=e.context.scrollHeight+"px",n.style.width=e.context.scrollWidth+"px"),n.addEventListener("click",function(){e.overlayClose&&t.closeStack(e)}),e.overlay=n}(e),function(t){t.overlay.parentNode!==t.context&&(t.overlay=t.context.insertBefore(t.overlay,t.context.firstChild))}(e)),n.getBoundingClientRect(),e.animation&&this.set({_moveClass:"ui-pnotify-move"});var i=e.context===document.body?window.innerHeight:e.context.scrollHeight,o=e.context===document.body?window.innerWidth:e.context.scrollWidth,s=void 0;if(e.dir1){s={down:"top",up:"bottom",left:"right",right:"left"}[e.dir1];var r=void 0;switch(e.dir1){case"down":r=n.offsetTop;break;case"up":r=i-n.scrollHeight-n.offsetTop;break;case"left":r=o-n.scrollWidth-n.offsetLeft;break;case"right":r=n.offsetLeft}void 0===e.firstpos1&&(e.firstpos1=r,e.nextpos1=e.firstpos1)}if(e.dir1&&e.dir2){var a={down:"top",up:"bottom",left:"right",right:"left"}[e.dir2],c=void 0;switch(e.dir2){case"down":c=n.offsetTop;break;case"up":c=i-n.scrollHeight-n.offsetTop;break;case"left":c=o-n.scrollWidth-n.offsetLeft;break;case"right":c=n.offsetLeft}void 0===e.firstpos2&&(e.firstpos2=c,e.nextpos2=e.firstpos2);var l=e.nextpos1+n.offsetHeight+(void 0===e.spacing1?25:e.spacing1),u=e.nextpos1+n.offsetWidth+(void 0===e.spacing1?25:e.spacing1);switch((("down"===e.dir1||"up"===e.dir1)&&l>i||("left"===e.dir1||"right"===e.dir1)&&u>o)&&(e.nextpos1=e.firstpos1,e.nextpos2+=e.addpos2+(void 0===e.spacing2?25:e.spacing2),e.addpos2=0),"number"==typeof e.nextpos2&&(n.style[a]=e.nextpos2+"px",e.animation||n.style[a]),e.dir2){case"down":case"up":n.offsetHeight+(parseFloat(n.style.marginTop,10)||0)+(parseFloat(n.style.marginBottom,10)||0)>e.addpos2&&(e.addpos2=n.offsetHeight);break;case"left":case"right":n.offsetWidth+(parseFloat(n.style.marginLeft,10)||0)+(parseFloat(n.style.marginRight,10)||0)>e.addpos2&&(e.addpos2=n.offsetWidth)}}else if(e.dir1){var f=void 0,d=void 0;switch(e.dir1){case"down":case"up":d=["left","right"],f=e.context.scrollWidth/2-n.offsetWidth/2;break;case"left":case"right":d=["top","bottom"],f=i/2-n.offsetHeight/2}n.style[d[0]]=f+"px",n.style[d[1]]="auto",e.animation||n.style[d[0]]}if(e.dir1)switch("number"==typeof e.nextpos1&&(n.style[s]=e.nextpos1+"px",e.animation||n.style[s]),e.dir1){case"down":case"up":e.nextpos1+=n.offsetHeight+(void 0===e.spacing1?25:e.spacing1);break;case"left":case"right":e.nextpos1+=n.offsetWidth+(void 0===e.spacing1?25:e.spacing1)}else{var p=o/2-n.offsetWidth/2,h=i/2-n.offsetHeight/2;n.style.left=p+"px",n.style.top=h+"px",e.animation||n.style.left}return this}},queuePosition:function(n){return e&&clearTimeout(e),n||(n=10),e=setTimeout(function(){t.positionAll()},n),this},cancelRemove:function(){return this.cancelClose()},cancelClose:function(){var t=this.get(),e=t._timer,n=t._animTimer,i=t._state,o=t.animation;return e&&clearTimeout(e),n&&clearTimeout(n),"closing"===i&&this.set({_state:"open",_animating:!1,_animatingClass:"fade"===o?"ui-pnotify-in ui-pnotify-fade-in":"ui-pnotify-in"}),this},queueRemove:function(){return this.queueClose()},queueClose:function(){var t=this;return this.cancelClose(),this.set({_timer:setTimeout(function(){return t.close(!0)},isNaN(this.get().delay)?0:this.get().delay)}),this},addModuleClass:function(){for(var t=this.get()._moduleClasses,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0;o<n.length;o++){var s=n[o];-1===t.indexOf(s)&&t.push(s)}this.set({_moduleClasses:t})},removeModuleClass:function(){for(var t=this.get()._moduleClasses,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0;o<n.length;o++){var s=n[o],r=t.indexOf(s);-1!==r&&t.splice(r,1)}this.set({_moduleClasses:t})},hasModuleClass:function(){for(var t=this.get()._moduleClasses,e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0;o<n.length;o++){var s=n[o];if(-1===t.indexOf(s))return!1}return!0}};function r(t,e,n){var i=Object.create(t);return i.module=e[n],i}function a(t,e,n){var i=Object.create(t);return i.module=e[n],i}function c(t,e,n){var i,o,s=n.module;function r(e){return{root:t.root,store:t.store}}if(s)var a=new s(r());function c(e){t.initModule(e.module)}return a&&a.on("init",c),{key:e,first:null,c:function(){i=S(),a&&a._fragment.c(),o=S(),this.first=i},m:function(t,e){x(t,i,e),a&&a._mount(t,e),x(t,o,e)},p:function(t,e){s!==(s=e.module)&&(a&&a.destroy(),s?((a=new s(r()))._fragment.c(),a._mount(o.parentNode,o),a.on("init",c)):a=null)},d:function(t){t&&(T(i),T(o)),a&&a.destroy(t)}}}function l(t,e){var n,i,o,s;return{c:function(){n=v("div"),(i=v("span")).className=o=!0===e.icon?e._icons[e.type]?e._icons[e.type]:"":e.icon,n.className=s="ui-pnotify-icon "+(e._styles.icon?e._styles.icon:"")},m:function(e,o){x(e,n,o),_(n,i),t.refs.iconContainer=n},p:function(t,e){(t.icon||t._icons||t.type)&&o!==(o=!0===e.icon?e._icons[e.type]?e._icons[e.type]:"":e.icon)&&(i.className=o),t._styles&&s!==(s="ui-pnotify-icon "+(e._styles.icon?e._styles.icon:""))&&(n.className=s)},d:function(e){e&&T(n),t.refs.iconContainer===n&&(t.refs.iconContainer=null)}}}function u(t,e){var n,i;function o(t){return t.titleTrusted?d:f}var s=o(e),r=s(t,e);return{c:function(){n=v("h4"),r.c(),n.className=i="ui-pnotify-title "+(e._styles.title?e._styles.title:"")},m:function(e,i){x(e,n,i),r.m(n,null),t.refs.titleContainer=n},p:function(e,a){s===(s=o(a))&&r?r.p(e,a):(r.d(1),(r=s(t,a)).c(),r.m(n,null)),e._styles&&i!==(i="ui-pnotify-title "+(a._styles.title?a._styles.title:""))&&(n.className=i)},d:function(e){e&&T(n),r.d(),t.refs.titleContainer===n&&(t.refs.titleContainer=null)}}}function f(t,e){var n;return{c:function(){n=k(e.title)},m:function(t,e){x(t,n,e)},p:function(t,e){t.title&&L(n,e.title)},d:function(t){t&&T(n)}}}function d(t,e){var n,i;return{c:function(){n=v("noscript"),i=v("noscript")},m:function(t,o){x(t,n,o),n.insertAdjacentHTML("afterend",e.title),x(t,i,o)},p:function(t,e){t.title&&(B(n,i),n.insertAdjacentHTML("afterend",e.title))},d:function(t){t&&(B(n,i),T(n),T(i))}}}function p(t,e){var n,i;function o(t){return t.textTrusted?m:h}var s=o(e),r=s(t,e);return{c:function(){n=v("div"),r.c(),n.className=i="ui-pnotify-text "+(e._styles.text?e._styles.text:""),A(n,"role","alert")},m:function(e,i){x(e,n,i),r.m(n,null),t.refs.textContainer=n},p:function(e,a){s===(s=o(a))&&r?r.p(e,a):(r.d(1),(r=s(t,a)).c(),r.m(n,null)),e._styles&&i!==(i="ui-pnotify-text "+(a._styles.text?a._styles.text:""))&&(n.className=i)},d:function(e){e&&T(n),r.d(),t.refs.textContainer===n&&(t.refs.textContainer=null)}}}function h(t,e){var n;return{c:function(){n=k(e.text)},m:function(t,e){x(t,n,e)},p:function(t,e){t.text&&L(n,e.text)},d:function(t){t&&T(n)}}}function m(t,e){var n,i;return{c:function(){n=v("noscript"),i=v("noscript")},m:function(t,o){x(t,n,o),n.insertAdjacentHTML("afterend",e.text),x(t,i,o)},p:function(t,e){t.text&&(B(n,i),n.insertAdjacentHTML("afterend",e.text))},d:function(t){t&&(B(n,i),T(n),T(i))}}}function g(t,e,n){var i,o,s=n.module;function r(e){return{root:t.root,store:t.store}}if(s)var a=new s(r());function c(e){t.initModule(e.module)}return a&&a.on("init",c),{key:e,first:null,c:function(){i=S(),a&&a._fragment.c(),o=S(),this.first=i},m:function(t,e){x(t,i,e),a&&a._mount(t,e),x(t,o,e)},p:function(t,e){s!==(s=e.module)&&(a&&a.destroy(),s?((a=new s(r()))._fragment.c(),a._mount(o.parentNode,o),a.on("init",c)):a=null)},d:function(t){t&&(T(i),T(o)),a&&a.destroy(t)}}}function y(e){var n,i=this;!function(t,e){t._handlers=b(),t._slots=b(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,e),this.refs={},this._state=P(function(){var e=_extends({_state:"initializing",_timer:null,_animTimer:null,_animating:!1,_animatingClass:"",_moveClass:"",_timerHide:!1,_moduleClasses:[],_moduleIsNoticeOpen:!1,_modules:{},_modulesPrependContainer:t.modulesPrependContainer,_modulesAppendContainer:t.modulesAppendContainer},t.defaults);return e.modules=_extends({},t.defaults.modules),e}(),e.data),this._recompute({styling:1,icons:1,width:1,minHeight:1},this._state),this._intro=!0,document.getElementById("svelte-1eldsjg-style")||((n=v("style")).id="svelte-1eldsjg-style",n.textContent='body > .ui-pnotify{position:fixed;z-index:100040}body > .ui-pnotify.ui-pnotify-modal{z-index:100042}.ui-pnotify{position:absolute;height:auto;z-index:1;display:none}.ui-pnotify.ui-pnotify-modal{z-index:3}.ui-pnotify.ui-pnotify-in{display:block}.ui-pnotify.ui-pnotify-initial-hidden{display:block;visibility:hidden}.ui-pnotify.ui-pnotify-move{transition:left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-slow{transition:opacity .4s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-slow.ui-pnotify.ui-pnotify-move{transition:opacity .4s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-normal{transition:opacity .25s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-normal.ui-pnotify.ui-pnotify-move{transition:opacity .25s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-fast{transition:opacity .1s linear;opacity:0}.ui-pnotify.ui-pnotify-fade-fast.ui-pnotify.ui-pnotify-move{transition:opacity .1s linear, left .5s ease, top .5s ease, right .5s ease, bottom .5s ease}.ui-pnotify.ui-pnotify-fade-in{opacity:1}.ui-pnotify .ui-pnotify-shadow{-webkit-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);-moz-box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1);box-shadow:0px 6px 28px 0px rgba(0,0,0,0.1)}.ui-pnotify-container{background-position:0 0;padding:.8em;height:100%;margin:0}.ui-pnotify-container:after{content:" ";visibility:hidden;display:block;height:0;clear:both}.ui-pnotify-container.ui-pnotify-sharp{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ui-pnotify-title{display:block;white-space:pre-line;margin-bottom:.4em;margin-top:0}.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,.ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-left:24px}[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-title,[dir=rtl] .ui-pnotify.ui-pnotify-with-icon .ui-pnotify-text{margin-right:24px;margin-left:0}.ui-pnotify-title-bs4{font-size:1.2rem}.ui-pnotify-text{display:block;white-space:pre-line}.ui-pnotify-icon,.ui-pnotify-icon span{display:block;float:left}[dir=rtl] .ui-pnotify-icon,[dir=rtl] .ui-pnotify-icon span{float:right}.ui-pnotify-icon-bs3 > span{position:relative;top:2px}.ui-pnotify-icon-bs4 > span{position:relative;top:4px}.ui-pnotify-modal-overlay{background-color:rgba(0, 0, 0, .4);top:0;left:0;position:absolute;height:100%;width:100%;z-index:2}body > .ui-pnotify-modal-overlay{position:fixed;z-index:100041}',_(document.head,n)),this._fragment=function(t,e){for(var n,i,o,s,f,d,h,m,y,S=[],L=b(),B=[],P=b(),O=e._modulesPrependContainer,M=function(t){return t.module.key},j=0;j<O.length;j+=1){var I=a(e,O,j),R=M(I);S[j]=L[R]=c(t,R,I)}var H=!1!==e.icon&&l(t,e),U=!1!==e.title&&u(t,e),z=!1!==e.text&&p(t,e),D=e._modulesAppendContainer,F=function(t){return t.module.key};for(j=0;j<D.length;j+=1){var X=r(e,D,j),J=F(X);B[j]=P[J]=g(t,J,X)}function q(e){t.fire("mouseover",e)}function Q(e){t.fire("mouseout",e)}function W(e){t.fire("mouseenter",e)}function Y(e){t.fire("mouseleave",e)}function K(e){t.fire("mousemove",e)}function V(e){t.fire("mousedown",e)}function G(e){t.fire("mouseup",e)}function Z(e){t.fire("click",e)}function $(e){t.fire("dblclick",e)}function tt(e){t.fire("focus",e)}function et(e){t.fire("blur",e)}function nt(e){t.fire("touchstart",e)}function it(e){t.fire("touchmove",e)}function ot(e){t.fire("touchend",e)}function st(e){t.fire("touchcancel",e)}return{c:function(){for(n=v("div"),i=v("div"),j=0;j<S.length;j+=1)S[j].c();for(o=k("\n "),H&&H.c(),s=k("\n "),U&&U.c(),f=k("\n "),z&&z.c(),d=k("\n "),j=0;j<B.length;j+=1)B[j].c();i.className=h="\n ui-pnotify-container\n "+(e._styles.container?e._styles.container:"")+"\n "+(e._styles[e.type]?e._styles[e.type]:"")+"\n "+e.cornerClass+"\n "+(e.shadow?"ui-pnotify-shadow":"")+"\n ",i.style.cssText=m=e._widthStyle+" "+e._minHeightStyle,A(i,"role","alert"),w(n,"mouseover",q),w(n,"mouseout",Q),w(n,"mouseenter",W),w(n,"mouseleave",Y),w(n,"mousemove",K),w(n,"mousedown",V),w(n,"mouseup",G),w(n,"click",Z),w(n,"dblclick",$),w(n,"focus",tt),w(n,"blur",et),w(n,"touchstart",nt),w(n,"touchmove",it),w(n,"touchend",ot),w(n,"touchcancel",st),n.className=y="\n ui-pnotify\n "+(!1!==e.icon?"ui-pnotify-with-icon":"")+"\n "+(e._styles.element?e._styles.element:"")+"\n "+e.addClass+"\n "+e._animatingClass+"\n "+e._moveClass+"\n "+("fade"===e.animation?"ui-pnotify-fade-"+e.animateSpeed:"")+"\n "+(e.stack&&e.stack.modal?"ui-pnotify-modal":"")+"\n "+e._moduleClasses.join(" ")+"\n ",A(n,"aria-live","assertive"),A(n,"role","alertdialog"),A(n,"ui-pnotify",!0)},m:function(e,r){for(x(e,n,r),_(n,i),j=0;j<S.length;j+=1)S[j].m(i,null);for(_(i,o),H&&H.m(i,null),_(i,s),U&&U.m(i,null),_(i,f),z&&z.m(i,null),_(i,d),j=0;j<B.length;j+=1)B[j].m(i,null);t.refs.container=i,t.refs.elem=n},p:function(e,v){var _=v._modulesPrependContainer;S=C(S,t,e,M,1,v,_,L,i,E,c,"m",o,a),!1!==v.icon?H?H.p(e,v):((H=l(t,v)).c(),H.m(i,s)):H&&(H.d(1),H=null),!1!==v.title?U?U.p(e,v):((U=u(t,v)).c(),U.m(i,f)):U&&(U.d(1),U=null),!1!==v.text?z?z.p(e,v):((z=p(t,v)).c(),z.m(i,d)):z&&(z.d(1),z=null);var b=v._modulesAppendContainer;B=C(B,t,e,F,1,v,b,P,i,E,g,"m",null,r),(e._styles||e.type||e.cornerClass||e.shadow)&&h!==(h="\n ui-pnotify-container\n "+(v._styles.container?v._styles.container:"")+"\n "+(v._styles[v.type]?v._styles[v.type]:"")+"\n "+v.cornerClass+"\n "+(v.shadow?"ui-pnotify-shadow":"")+"\n ")&&(i.className=h),(e._widthStyle||e._minHeightStyle)&&m!==(m=v._widthStyle+" "+v._minHeightStyle)&&(i.style.cssText=m),(e.icon||e._styles||e.addClass||e._animatingClass||e._moveClass||e.animation||e.animateSpeed||e.stack||e._moduleClasses)&&y!==(y="\n ui-pnotify\n "+(!1!==v.icon?"ui-pnotify-with-icon":"")+"\n "+(v._styles.element?v._styles.element:"")+"\n "+v.addClass+"\n "+v._animatingClass+"\n "+v._moveClass+"\n "+("fade"===v.animation?"ui-pnotify-fade-"+v.animateSpeed:"")+"\n "+(v.stack&&v.stack.modal?"ui-pnotify-modal":"")+"\n "+v._moduleClasses.join(" ")+"\n ")&&(n.className=y)},d:function(e){for(e&&T(n),j=0;j<S.length;j+=1)S[j].d();for(H&&H.d(),U&&U.d(),z&&z.d(),j=0;j<B.length;j+=1)B[j].d();t.refs.container===i&&(t.refs.container=null),N(n,"mouseover",q),N(n,"mouseout",Q),N(n,"mouseenter",W),N(n,"mouseleave",Y),N(n,"mousemove",K),N(n,"mousedown",V),N(n,"mouseup",G),N(n,"click",Z),N(n,"dblclick",$),N(n,"focus",tt),N(n,"blur",et),N(n,"touchstart",nt),N(n,"touchmove",it),N(n,"touchend",ot),N(n,"touchcancel",st),t.refs.elem===n&&(t.refs.elem=null)}}}(this,this._state),this.root._oncreate.push(function(){(function(){var e=this;this.on("mouseenter",function(t){if(e.get().mouseReset&&"out"===e.get()._animating){if(!e.get()._timerHide)return;e.cancelClose()}e.get().hide&&e.get().mouseReset&&e.cancelClose()}),this.on("mouseleave",function(n){e.get().hide&&e.get().mouseReset&&"out"!==e.get()._animating&&e.queueClose(),t.positionAll()});var n=this.get().stack;n&&"top"===n.push?t.notices.splice(0,0,this):t.notices.push(this),this.runModules("init"),this.set({_state:"closed"}),this.get().autoDisplay&&this.open()}).call(i),i.fire("update",{changed:function(t,e){for(var n in e)t[n]=1;return t}({},i._state),current:i._state})}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor),O(this))}function v(t){return document.createElement(t)}function _(t,e){t.appendChild(e)}function b(){return Object.create(null)}function k(t){return document.createTextNode(t)}function A(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function w(t,e,n,i){t.addEventListener(e,n,i)}function x(t,e,n){t.insertBefore(e,n)}function C(t,e,n,i,o,s,r,a,c,l,u,f,d,p){for(var h=t.length,m=r.length,g=h,y={};g--;)y[t[g].key]=g;var v=[],_={},b={};for(g=m;g--;){var k=p(s,r,g),A=i(k),w=a[A];w?o&&w.p(n,k):(w=u(e,A,k)).c(),v[g]=_[A]=w,A in y&&(b[A]=Math.abs(g-y[A]))}var x={},C={};function E(t){t[f](c,d),a[t.key]=t,d=t.first,m--}for(;h&&m;){var T=v[m-1],N=t[h-1],S=T.key,L=N.key;T===N?(d=T.first,h--,m--):_[L]?!a[S]||x[S]?E(T):C[L]?h--:b[S]>b[L]?(C[S]=!0,E(T)):(x[L]=!0,h--):(l(N,a),h--)}for(;h--;){_[(N=t[h]).key]||l(N,a)}for(;m;)E(v[m-1]);return v}function E(t,e){t.d(1),e[t.key]=null}function T(t){t.parentNode.removeChild(t)}function N(t,e,n,i){t.removeEventListener(e,n,i)}function S(){return document.createComment("")}function L(t,e){t.data=""+e}function B(t,e){for(;t.nextSibling&&t.nextSibling!==e;)t.parentNode.removeChild(t.nextSibling)}function P(t,e){for(var n in e)t[n]=e[n];return t}function O(t){t._lock=!0,M(t._beforecreate),M(t._oncreate),M(t._aftercreate),t._lock=!1}function M(t){for(;t&&t.length;)t.shift()()}function j(){}return P(y.prototype,{destroy:function(t){this.destroy=j,this.fire("destroy"),this.set=j,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var i=0;i<n.length;i+=1){var o=n[i];if(!o.__calling)try{o.__calling=!0,o.call(this,e)}finally{o.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(P({},t)),this.root._lock)return;O(this.root)},_set:function(t){var e=this._state,n={},i=!1;for(var o in t=P(this._staged,t),this._staged={},t)this._differs(t[o],e[o])&&(n[o]=i=!0);if(!i)return;this._state=P(P({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){P(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),P(y.prototype,s),y.prototype._recompute=function(e,n){var i,o,s,r;e.styling&&this._differs(n._styles,n._styles="object"===(void 0===(i=n.styling)?"undefined":_typeof(i))?i:t.styling[i])&&(e._styles=!0),e.icons&&this._differs(n._icons,n._icons="object"===(void 0===(o=n.icons)?"undefined":_typeof(o))?o:t.icons[o])&&(e._icons=!0),e.width&&this._differs(n._widthStyle,n._widthStyle="string"==typeof(s=n.width)?"width: "+s+";":"")&&(e._widthStyle=!0),e.minHeight&&this._differs(n._minHeightStyle,n._minHeightStyle="string"==typeof(r=n.minHeight)?"min-height: "+r+";":"")&&(e._minHeightStyle=!0)},(t=y).VERSION="4.0.0",t.defaultStack={dir1:"down",dir2:"left",firstpos1:25,firstpos2:25,spacing1:36,spacing2:36,push:"bottom",context:window&&document.body},t.defaults={title:!1,titleTrusted:!1,text:!1,textTrusted:!1,styling:"brighttheme",icons:"brighttheme",addClass:"",cornerClass:"",autoDisplay:!0,width:"360px",minHeight:"16px",type:"notice",icon:!0,animation:"fade",animateSpeed:"normal",shadow:!0,hide:!0,delay:8e3,mouseReset:!0,remove:!0,destroy:!0,stack:t.defaultStack,modules:{}},t.notices=[],t.modules={},t.modulesPrependContainer=[],t.modulesAppendContainer=[],t.alert=function(e){return new t(o(e))},t.notice=function(e){return new t(o(e,"notice"))},t.info=function(e){return new t(o(e,"info"))},t.success=function(e){return new t(o(e,"success"))},t.error=function(e){return new t(o(e,"error"))},t.removeAll=function(){t.closeAll()},t.closeAll=function(){for(var e=0;e<t.notices.length;e++)t.notices[e].close&&t.notices[e].close(!1)},t.removeStack=function(e){t.closeStack(e)},t.closeStack=function(e){if(!1!==e)for(var n=0;n<t.notices.length;n++)t.notices[n].close&&t.notices[n].get().stack===e&&t.notices[n].close(!1)},t.positionAll=function(){if(e&&clearTimeout(e),e=null,t.notices.length>0){for(var n=0;n<t.notices.length;n++){var o=t.notices[n].get().stack;o&&(o.overlay&&i(o),o.nextpos1=o.firstpos1,o.nextpos2=o.firstpos2,o.addpos2=0)}for(var s=0;s<t.notices.length;s++)t.notices[s].position()}else delete t.defaultStack.nextpos1,delete t.defaultStack.nextpos2},t.styling={brighttheme:{container:"brighttheme",notice:"brighttheme-notice",info:"brighttheme-info",success:"brighttheme-success",error:"brighttheme-error"},bootstrap3:{container:"alert",notice:"alert-warning",info:"alert-info",success:"alert-success",error:"alert-danger",icon:"ui-pnotify-icon-bs3"},bootstrap4:{container:"alert",notice:"alert-warning",info:"alert-info",success:"alert-success",error:"alert-danger",icon:"ui-pnotify-icon-bs4",title:"ui-pnotify-title-bs4"}},t.icons={brighttheme:{notice:"brighttheme-icon-notice",info:"brighttheme-icon-info",success:"brighttheme-icon-success",error:"brighttheme-icon-error"},bootstrap3:{notice:"glyphicon glyphicon-exclamation-sign",info:"glyphicon glyphicon-info-sign",success:"glyphicon glyphicon-ok-sign",error:"glyphicon glyphicon-warning-sign"},fontawesome4:{notice:"fa fa-exclamation-circle",info:"fa fa-info-circle",success:"fa fa-check-circle",error:"fa fa-exclamation-triangle"},fontawesome5:{notice:"fas fa-exclamation-circle",info:"fas fa-info-circle",success:"fas fa-check-circle",error:"fas fa-exclamation-triangle"}},window&&document.body?n():document.addEventListener("DOMContentLoaded",n),y});_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e(require("./PNotify")):"function"==typeof define&&define.amd?define("PNotifyButtons",["./PNotify"],e):t.PNotifyButtons=e(PNotify)}(this,function(t){"use strict";t=t&&t.__esModule?t.default:t;var e;function n(t,e){var n,s,r=e._showCloser&&i(t,e),a=e._showSticker&&o(t,e);return{c:function(){var t;r&&r.c(),t="\n",n=document.createTextNode(t),a&&a.c(),s=document.createComment("")},m:function(t,e){r&&r.m(t,e),c(t,n,e),a&&a.m(t,e),c(t,s,e)},p:function(e,c){c._showCloser?r?r.p(e,c):((r=i(t,c)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null),c._showSticker?a?a.p(e,c):((a=o(t,c)).c(),a.m(s.parentNode,s)):a&&(a.d(1),a=null)},d:function(t){r&&r.d(t),t&&l(n),a&&a.d(t),t&&l(s)}}}function i(t,e){var n,i,o,s;function p(e){t.handleCloserClick()}return{c:function(){n=r("div"),(i=r("span")).className=e._closerClass+" svelte-1yjle82",u(n,"click",p),n.className=o="ui-pnotify-closer "+(!e.closerHover||e._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82",f(n,"role","button"),n.tabIndex="0",n.title=s=e.labels.close},m:function(t,e){c(t,n,e),a(n,i)},p:function(t,e){t._closerClass&&(i.className=e._closerClass+" svelte-1yjle82"),(t.closerHover||t._mouseIsIn)&&o!==(o="ui-pnotify-closer "+(!e.closerHover||e._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82")&&(n.className=o),t.labels&&s!==(s=e.labels.close)&&(n.title=s)},d:function(t){t&&l(n),d(n,"click",p)}}}function o(t,e){var n,i,o,s,p,h;function m(e){t.handleStickerClick()}return{c:function(){n=r("div"),(i=r("span")).className=o=(e._options.hide?e._pinUpClass:e._pinDownClass)+" svelte-1yjle82",u(n,"click",m),n.className=s="ui-pnotify-sticker "+(!e.stickerHover||e._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82",f(n,"role","button"),f(n,"aria-pressed",p=e._options.hide),n.tabIndex="0",n.title=h=e._options.hide?e.labels.stick:e.labels.unstick},m:function(t,e){c(t,n,e),a(n,i)},p:function(t,e){(t._options||t._pinUpClass||t._pinDownClass)&&o!==(o=(e._options.hide?e._pinUpClass:e._pinDownClass)+" svelte-1yjle82")&&(i.className=o),(t.stickerHover||t._mouseIsIn)&&s!==(s="ui-pnotify-sticker "+(!e.stickerHover||e._mouseIsIn?"":"ui-pnotify-buttons-hidden")+" svelte-1yjle82")&&(n.className=s),t._options&&p!==(p=e._options.hide)&&f(n,"aria-pressed",p),(t._options||t.labels)&&h!==(h=e._options.hide?e.labels.stick:e.labels.unstick)&&(n.title=h)},d:function(t){t&&l(n),d(n,"click",m)}}}function s(e){var i,o=this;!function(t,e){t._handlers=m(),t._slots=m(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,e),this._state=p(_extends({_notice:null,_options:{},_mouseIsIn:!1},t.modules.Buttons.defaults),e.data),this._recompute({sticker:1,_notice:1,closer:1,classes:1},this._state),this._intro=!0,document.getElementById("svelte-1yjle82-style")||((i=r("style")).id="svelte-1yjle82-style",i.textContent=".ui-pnotify-closer.svelte-1yjle82,.ui-pnotify-sticker.svelte-1yjle82{float:right;margin-left:.5em;cursor:pointer}[dir=rtl] .ui-pnotify-closer.svelte-1yjle82,[dir=rtl] .ui-pnotify-sticker.svelte-1yjle82{float:left;margin-right:.5em;margin-left:0}.ui-pnotify-buttons-hidden.svelte-1yjle82{visibility:hidden}",a(document.head,i)),this._fragment=n(this,this._state),this.root._oncreate.push(function(){(function(){this.fire("init",{module:this})}).call(o),o.fire("update",{changed:function(t,e){for(var n in e)t[n]=1;return t}({},o._state),current:o._state})}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor),h(this))}function r(t){return document.createElement(t)}function a(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n)}function l(t){t.parentNode.removeChild(t)}function u(t,e,n,i){t.addEventListener(e,n,i)}function f(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function d(t,e,n,i){t.removeEventListener(e,n,i)}function p(t,e){for(var n in e)t[n]=e[n];return t}function h(t){t._lock=!0,g(t._beforecreate),g(t._oncreate),g(t._aftercreate),t._lock=!1}function m(){return Object.create(null)}function g(t){for(;t&&t.length;)t.shift()()}function y(){}return p(s.prototype,{destroy:function(t){this.destroy=y,this.fire("destroy"),this.set=y,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var i=0;i<n.length;i+=1){var o=n[i];if(!o.__calling)try{o.__calling=!0,o.call(this,e)}finally{o.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(p({},t)),this.root._lock)return;h(this.root)},_set:function(t){var e=this._state,n={},i=!1;for(var o in t=p(this._staged,t),this._staged={},t)this._differs(t[o],e[o])&&(n[o]=i=!0);if(!i)return;this._state=p(p({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){p(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),p(s.prototype,{initModule:function(t){var e=this;this.set(t);var n=this.get()._notice;n.on("mouseenter",function(){return e.set({_mouseIsIn:!0})}),n.on("mouseleave",function(){return e.set({_mouseIsIn:!1})}),n.on("state",function(t){var n=t.changed,i=t.current;if(n.hide&&e.get().sticker){var o=i.hide?e.get().classes.pinUp:e.get().classes.pinDown;("fontawesome5"===e.get()._notice.get().icons||"string"==typeof o&&o.match(/(^| )fa[srlb]($| )/))&&(e.set({sticker:!1}),e.set({sticker:!0}))}})},handleStickerClick:function(){var t=this.get()._notice;t.update({hide:!t.get().hide})},handleCloserClick:function(){this.get()._notice.close(!1),this.set({_mouseIsIn:!1})}}),s.prototype._recompute=function(t,e){var n,i,o;(t.sticker||t._notice)&&this._differs(e._showSticker,e._showSticker=(i=(n=e).sticker,o=n._notice,i&&!(o&&o.refs.elem.classList.contains("nonblock"))))&&(t._showSticker=!0),(t.closer||t._notice)&&this._differs(e._showCloser,e._showCloser=function(t){var e=t.closer,n=t._notice;return e&&!(n&&n.refs.elem.classList.contains("nonblock"))}(e))&&(t._showCloser=!0),(t.classes||t._notice)&&(this._differs(e._pinUpClass,e._pinUpClass=function(t){var e=t.classes,n=t._notice;return n?null===e.pinUp?n.get()._icons.pinUp:e.pinUp:""}(e))&&(t._pinUpClass=!0),this._differs(e._pinDownClass,e._pinDownClass=function(t){var e=t.classes,n=t._notice;return n?null===e.pinDown?n.get()._icons.pinDown:e.pinDown:""}(e))&&(t._pinDownClass=!0),this._differs(e._closerClass,e._closerClass=function(t){var e=t.classes,n=t._notice;return n?null===e.closer?n.get()._icons.closer:e.closer:""}(e))&&(t._closerClass=!0))},(e=s).key="Buttons",e.defaults={closer:!0,closerHover:!0,sticker:!0,stickerHover:!0,labels:{close:"Close",stick:"Stick",unstick:"Unstick"},classes:{closer:null,pinUp:null,pinDown:null}},t.modules.Buttons=e,t.modulesPrependContainer.push(e),_extends(t.icons.brighttheme,{closer:"brighttheme-icon-closer",pinUp:"brighttheme-icon-sticker",pinDown:"brighttheme-icon-sticker brighttheme-icon-stuck"}),_extends(t.icons.bootstrap3,{closer:"glyphicon glyphicon-remove",pinUp:"glyphicon glyphicon-pause",pinDown:"glyphicon glyphicon-play"}),_extends(t.icons.fontawesome4,{closer:"fa fa-times",pinUp:"fa fa-pause",pinDown:"fa fa-play"}),_extends(t.icons.fontawesome5,{closer:"fas fa-times",pinUp:"fas fa-pause",pinDown:"fas fa-play"}),s});_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e(require("./PNotify")):"function"==typeof define&&define.amd?define("PNotifyCallbacks",["./PNotify"],e):t.PNotifyCallbacks=e(PNotify)}(this,function(t){"use strict";var e=(t=t&&t.__esModule?t.default:t).prototype.open,n=t.prototype.close,i=function(t,e,n){var i=t?t.get().modules:e.modules,o=i&&i.Callbacks?i.Callbacks:{};return o[n]?o[n]:function(){return!0}};function o(t){!function(t,e){t._handlers=a(),t._slots=a(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,t),this._state=r({},t.data),this._intro=!0,this._fragment=(this._state,{c:s,m:s,p:s,d:s}),t.target&&(this._fragment.c(),this._mount(t.target,t.anchor))}function s(){}function r(t,e){for(var n in e)t[n]=e[n];return t}function a(){return Object.create(null)}function c(t){for(;t&&t.length;)t.shift()()}return t.prototype.open=function(){if(!1!==i(this,null,"beforeOpen")(this)){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];e.apply(this,n),i(this,null,"afterOpen")(this)}},t.prototype.close=function(t){if(!1!==i(this,null,"beforeClose")(this,t)){for(var e=arguments.length,o=Array(e>1?e-1:0),s=1;s<e;s++)o[s-1]=arguments[s];n.apply(this,[t].concat(o)),i(this,null,"afterClose")(this,t)}},r(o.prototype,{destroy:function(t){this.destroy=s,this.fire("destroy"),this.set=s,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var i=0;i<n.length;i+=1){var o=n[i];if(!o.__calling)try{o.__calling=!0,o.call(this,e)}finally{o.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(r({},t)),this.root._lock)return;e=this.root,e._lock=!0,c(e._beforecreate),c(e._oncreate),c(e._aftercreate),e._lock=!1;var e},_set:function(t){var e=this._state,n={},i=!1;for(var o in t=r(this._staged,t),this._staged={},t)this._differs(t[o],e[o])&&(n[o]=i=!0);if(!i)return;this._state=r(r({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){r(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),o.prototype._recompute=s,function(e){e.key="Callbacks",e.getCallbacks=i;var n=t.alert,o=t.notice,s=t.info,r=t.success,a=t.error,c=function(t,e){i(null,e,"beforeInit")(e);var n=t(e);return i(n,null,"afterInit")(n),n};t.alert=function(t){return c(n,t)},t.notice=function(t){return c(o,t)},t.info=function(t){return c(s,t)},t.success=function(t){return c(r,t)},t.error=function(t){return c(a,t)},t.modules.Callbacks=e}(o),o});_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e(require("./PNotify")):"function"==typeof define&&define.amd?define("PNotifyDesktop",["./PNotify"],e):t.PNotifyDesktop=e(PNotify)}(this,function(t){"use strict";t=t&&t.__esModule?t.default:t;var e=void 0,n=window.Notification,i=function(t,e,o,s){return(i="Notification"in window?function(t,e,i,o){var s=new n(t,e);return"NotificationEvent"in window?(s.addEventListener("notificationclick",i),s.addEventListener("close",o)):"addEventListener"in s?(s.addEventListener("click",i),s.addEventListener("close",o)):(s.onclick=i,s.onclose=o),s}:"mozNotification"in navigator?function(t,e,n,i){var o=navigator.mozNotification.createNotification(t,e.body,e.icon).show();return o.onclick=n,o.onclose=i,o}:"webkitNotifications"in window?function(t,e,n,i){var o=window.webkitNotifications.createNotification(e.icon,t,e.body);return o.onclick=n,o.onclose=i,o}:function(t,e,n,i){return null})(t,e,o,s)};var o,s={initModule:function(n){var i=this;this.set(n);var o=this.get()._notice;this.set({_oldAnimation:o.get().animation}),o.on("state",function(t){var n=t.changed,s=t.current,r=t.previous;n.animation&&(void 0===r.animation||"none"!==s.animation||"none"===r.animation&&s.animation!==i.get()._oldAnimation)&&i.set({_oldAnimation:s.animation}),n._animatingClass&&(""===s._animatingClass||0!==e&&i.get().fallback||!i.get().desktop||o.set({_animatingClass:""}))}),this.get().desktop&&(0===(e=t.modules.Desktop.checkPermission())?(o.set({animation:"none"}),o.addModuleClass("ui-pnotify-desktop-hide"),this.genNotice()):this.get().fallback||o.set({autoDisplay:!1}))},update:function(){var t=this.get()._notice;if(0!==e&&this.get().fallback||!this.get().desktop)return t.set({animation:this.get()._oldAnimation}),void t.removeModuleClass("ui-pnotify-desktop-hide");t.set({animation:"none"}),t.addModuleClass("ui-pnotify-desktop-hide"),this.genNotice()},beforeOpen:function(){if(this.get().desktop&&0!==e&&t.modules.Desktop.permission(),(0===e||!this.get().fallback)&&this.get().desktop){var n=this.get()._desktop;n&&"show"in n&&(this.get()._notice.set({_moduleIsNoticeOpen:!0}),n.show())}},beforeClose:function(){if((0===e||!this.get().fallback)&&this.get().desktop){var t=this.get()._desktop;t&&"close"in t&&(t.close(),this.get()._notice.set({_moduleIsNoticeOpen:!1}))}},genNotice:function(){var t=this.get(),e=t._notice,n=t.icon;if(null===n)switch(e.get().type){case"error":this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQg7e6HvQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABr0lEQVRYw8WXu0oDQRSGv7hRSFYrLTTWKihaqUgUJO+gphBLL1jYpPSCVcAggpWthYhC7Ows9An0IbSPkMRCw8ZmFuI6yczs9cAPuzNz5v92brtrESxGARtokkCcAg2hk7jNl4G2R/m4zFPAiwTgWdRFHnmJuaulOAAaPQDqUZvv9DB3tR0lwIcGwHtU5uca5q4qYZvngJbHpAZ8CtU8dS1gLEyAisegBGTFKWiL65KnzVlY5uOSId6VtNuTtMupOu/TAHiQlNmSskHNXCOAGWBeUp7VhFoApoMAXAOWJoCszBJ9+ALY6vL0JiPgjsKmKUAaOOoBZwIAcNxlJLsCrAOTIQJMAWu62y4LOIqT7lGS96TIcYCMDkBZ46h1gB+PHI28ssq8X/G6DaqG8Piz2DrjVjGXbtSBy46F5QAHwJAizwZugKKscs7gSaqS/KpB/qxsFxwafhf6Odb/eblJi8BGwJdW26BtURxQpMU83hmaDQsNiPtvYMSwj3tgAqDgYzU7wJdHjo9+CgBvEW47lV5Tgj5DMtG0xIfESkIAF+522gdWxTzGEX3i9+6KpOMXF5UBt0NKJCAAAAAASUVORK5CYII="});break;case"success":this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQPRj+65AAAAdBJREFUWMPtlzsvRFEQx3+7HmEjoiYKolVJJDRqnS8ggvVIVEQhCIUsEYJGCEH2E4h4FPREaLTbEo1IEJXHrmY2GTf33nPuY7ud5OTenTMz//89Z86ZWShLWf5LB3AOfACFiOMF2AkC3qOc88BXxFEAxlX8ftGdaNCEen8H6oFHYBR4FocwkpTngzzHgF01fwL0aYcp9fVtMW/rsMcWXWijK1Hexgye9smRT6CxaHgjytMYwccNSXqoja9FeVbiZS+OVaeDiUBLAPAJA/i2m5MXgRSQk7llC/DBMOBeBGqAe0eAjQhfvurH3EmgQk6EW6CVEHt+ZFo6J4EU8OoTcF35jhnAl2wSx20LFgyB1yyOWtY2c72ScMAAkPeZy6g4zUBdGAIAcyEq4Z7y7xbdTFgCACMBwPVJqVDHeNqvaplkH5i0sNuUwmaNkQxww20ZSOy7gFvX7SAk0i76jPQQlJoAwAEwq35ngfmwVatSdUMArZZ+K9JQ1Bp6iGqgSt7f/AIOqSzujLEn6AV+JG6zm4HuCZ+AJuAbWAQu5aIJu7JDck0ngDugC/j1c2qPqR13jpxuvWyS8liY/kQcean/lX6ACQ99DdAQYe+Lf0zylMUgf7qDKgzv284QAAAAAElFTkSuQmCC"});break;case"info":this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATQ09zRTwAAAAdxJREFUWMPtl88rRFEUxz8zBolRCgsrpOym8TMSO2WplLKwUrKi/B0W7JSFmhVLNlhSlLKx8CtRGpEsJpofpZk3Nkc9b968e++8mdlw6vTeu/edc773nl/3wl+ngOH/zUAf0AN0AmEgB7wCD8AtcFMJoM3ADpAHLHk62RIwL8B0uQwHgXVRnDfkS2DSj/EW4K0Ew05eLMV4O/CuUJwEUvJUgdgwMd4IpBUKl13kVG6aL+ZjJ20DDQqQXy5jKYVMDBhVrb5f069LLrKfGnInqh040HRTvsTAHgei9oGQ7X0YaNNUNCdFKChgQvKtQ1vAkNvEahlSToez9oXad2BCA30ceHZxRxMQMShuvZLmv+hOA32/h+KUwS7MugVhqwb6Go+5nEEwht0ABDUEzyXdFsrQYwqMJjTbdxio9Qkg6QbgvkpnkLw0uQIAZ1UCYNkXawdw4qPCmVBcuADAMZCpAoCVYr3AKtYyHZSWauakjMx50TWwrzJw6lFARjQOt3se8jM6W9TloSCqIb9bRHbN5Fg+KkEZcow/Ak+KFBsD6h3jR8CUabAMlqn7xfxEbAdwWKLhhO3sGPCbOsNSvSyF0Z/5TaCuEleziLhmAOiWG1NWrmZXwIVU1A/+SZO+AcgLC4wt0zD3AAAAAElFTkSuQmCC"});break;case"notice":default:this.set({_icon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gQJATM4scOJLAAAAcxJREFUWMPtljtLA0EQx3+J0QRfnYqCiCA+MERBrIwgFtoFbMTOR61i5QcQBdEihZWNoEWwsNAvkMJeBLHRQtHC0iIP4utOmw2cx97d7l2SRgcGbufmv/Pf2dmdhb8uIR+YJqAPaBff30AeeAHuxLgqMgRkgS/AAEybGuLfEdBcycCTwKVYmY5mgO6gwdd8BLaqAST9Bs8EDG7VTd3gex4TbgEjwKjQOHDugZlRDb7sMZEJpCS4bYVMJOygsG1cB+wqHN0Gib1RYXFpLwL74nx7Sb3EFlXATQNjTgRagA3FbZIRiCliT5wITGgUaRACA0CPjMC4xtUcDUAgDAzLCCQ0MhALQCAE9MoIdGkQCJIBgE4ZgWiNMvDL10qgUMMMFGQEnjQmkLXbVg38s8y4qtFcTCAnHiJ5oKiJnSoHjVgIXAmHkGIl5yy+YcWruIy9dvqpupIDCfZWEXvh1gsWFVfxIbG9a3RbRwJnYiuqJYfAqxsBgBWFiQyJzfTAlIB1uzEicbwBFoBTl8lSwINoSuXKjrv4F4FBh61zlKUKvgn7/e5ZEngMEDgLdFSieHaAT42LpgTMVbqC24B54Bi4twV9E6cnDcw6PFj+RSo/l6rlSlldhx4AAAAASUVORK5CYII="})}else!1===n?this.set({_icon:null}):this.set({_icon:n});var o=this.get().tag;this.get()._tag&&null===o||this.set({_tag:null===o?"PNotify-"+Math.round(1e6*Math.random()):o});var s={body:this.get().text||e.get().text,tag:this.get()._tag};e.get().hide||(s.requireInteraction=!0),null!==this.get()._icon&&(s.icon=this.get()._icon),Object.apply(s,this.get().options);var r=i(this.get().title||e.get().title,s,function(){e.fire("click",{target:r})},function(){e.close()});e.set({_moduleIsNoticeOpen:!0}),this.set({_desktop:r}),!("close"in r)&&"cancel"in r&&(r.close=function(){r.cancel()})}};function r(){var t,e,n,i=(t="style",document.createElement(t));i.id="svelte-xbgnx4-style",i.textContent="[ui-pnotify].ui-pnotify-desktop-hide.ui-pnotify{left:-10000px !important;display:none !important}",e=document.head,n=i,e.appendChild(n)}function a(e){!function(t,e){t._handlers=u(),t._slots=u(),t._bind=e._bind,t._staged={},t.options=e,t.root=e.root||t,t.store=e.store||t.root.store,e.root||(t._beforecreate=[],t._oncreate=[],t._aftercreate=[])}(this,e),this._state=l(_extends({_notice:null,_options:{}},t.modules.Desktop.defaults),e.data),this._intro=!0,document.getElementById("svelte-xbgnx4-style")||r(),this._fragment=(this._state,{c,m:c,p:c,d:c}),e.target&&(this._fragment.c(),this._mount(e.target,e.anchor))}function c(){}function l(t,e){for(var n in e)t[n]=e[n];return t}function u(){return Object.create(null)}function f(t){for(;t&&t.length;)t.shift()()}return l(a.prototype,{destroy:function(t){this.destroy=c,this.fire("destroy"),this.set=c,this._fragment.d(!1!==t),this._fragment=null,this._state={}},get:function(){return this._state},fire:function(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(!n)return;for(var i=0;i<n.length;i+=1){var o=n[i];if(!o.__calling)try{o.__calling=!0,o.call(this,e)}finally{o.__calling=!1}}},on:function(t,e){var n=this._handlers[t]||(this._handlers[t]=[]);return n.push(e),{cancel:function(){var t=n.indexOf(e);~t&&n.splice(t,1)}}},set:function(t){if(this._set(l({},t)),this.root._lock)return;e=this.root,e._lock=!0,f(e._beforecreate),f(e._oncreate),f(e._aftercreate),e._lock=!1;var e},_set:function(t){var e=this._state,n={},i=!1;for(var o in t=l(this._staged,t),this._staged={},t)this._differs(t[o],e[o])&&(n[o]=i=!0);if(!i)return;this._state=l(l({},e),t),this._recompute(n,this._state),this._bind&&this._bind(n,this._state);this._fragment&&(this.fire("state",{changed:n,current:this._state,previous:e}),this._fragment.p(n,this._state),this.fire("update",{changed:n,current:this._state,previous:e}))},_stage:function(t){l(this._staged,t)},_mount:function(t,e){this._fragment[this._fragment.i?"i":"m"](t,e||null)},_differs:function(t,e){return t!=t?e==e:t!==e||t&&"object"===(void 0===t?"undefined":_typeof(t))||"function"==typeof t}}),l(a.prototype,s),a.prototype._recompute=c,(o=a).key="Desktop",o.defaults={desktop:!1,fallback:!0,icon:null,tag:null,title:null,text:null,options:{}},o.init=function(t){return new o({target:document.body})},o.permission=function(){void 0!==n&&"requestPermission"in n?n.requestPermission():"webkitNotifications"in window&&window.webkitNotifications.requestPermission()},o.checkPermission=function(){return void 0!==n&&"permission"in n?"granted"===n.permission?0:1:"webkitNotifications"in window&&0==window.webkitNotifications.checkPermission()?0:1},e=o.checkPermission(),t.modules.Desktop=o,a}),(t=>{window.NonBlockJs={NonBlock:t},document.body?window.NonBlockJs.nonBlock=new t(document.body):document.addEventListener("DOMContentLoaded",()=>{window.NonBlockJs.nonBlock=new t(document.body)})})((()=>{return class NonBlock{constructor(t,e){this.root=t;const n=window.getComputedStyle(document.body);this.pointerEventsSupport=n.pointerEvents&&"auto"===n.pointerEvents,this.regexOn=/^on/,this.regexMouseEvents=/^(dbl)?click$|^mouse(move|down|up|over|out|enter|leave)$|^contextmenu$/,this.regexUiEvents=/^(focus|blur|select|change|reset)$|^key(press|down|up)$/,this.regexHtmlEvents=/^(scroll|resize|(un)?load|abort|error)$/,this.useEventConstructors=!0;try{new MouseEvent("click")}catch(t){this.useEventConstructors=!1}this.mode=void 0===e?this.pointerEventsSupport?"PointerEvents":"EventForwarding":e,this["init"+this.mode]&&this["init"+this.mode]()}initPointerEvents(){this.addCSS(".nonblock{transition:opacity .1s ease; pointer-events: none;}.nonblock:hover,.nonblock-hover{opacity:.1 !important;}"),this.onmousemove=(t=>{const e=document.querySelectorAll(".nonblock");for(let n of e){const e=n.getBoundingClientRect();t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom?n.classList.contains("nonblock-hover")?this.isSimulateMouse(n)&&t.isTrusted&&this.domEvent(n,"onmousemove",t,!0):(n.classList.add("nonblock-hover"),this.isSimulateMouse(n)&&t.isTrusted&&(this.domEvent(n,"onmouseenter",t,!1),this.domEvent(n,"onmouseover",t,!0))):n.classList.contains("nonblock-hover")&&(this.isSimulateMouse(n)&&t.isTrusted&&(this.domEvent(n,"onmouseout",t,!0),this.domEvent(n,"onmouseleave",t,!1)),n.classList.remove("nonblock-hover"))}}),this.root.addEventListener("mousemove",this.onmousemove)}initEventForwarding(){this.addCSS(".nonblock{transition:opacity .1s ease;}\n.nonblock:hover{opacity:.1 !important;}\n.nonblock-hide{position:absolute !important;left:-10000000px !important;right:10000000px !important;}\n.nonblock-cursor-auto{cursor:auto !important;}\n.nonblock-cursor-default{cursor:default !important;}\n.nonblock-cursor-none{cursor:none !important;}\n.nonblock-cursor-context-menu{cursor:context-menu !important;}\n.nonblock-cursor-help{cursor:help !important;}\n.nonblock-cursor-pointer{cursor:pointer !important;}\n.nonblock-cursor-progress{cursor:progress !important;}\n.nonblock-cursor-wait{cursor:wait !important;}\n.nonblock-cursor-cell{cursor:cell !important;}\n.nonblock-cursor-crosshair{cursor:crosshair !important;}\n.nonblock-cursor-text{cursor:text !important;}\n.nonblock-cursor-vertical-text{cursor:vertical-text !important;}\n.nonblock-cursor-alias{cursor:alias !important;}\n.nonblock-cursor-copy{cursor:copy !important;}\n.nonblock-cursor-move{cursor:move !important;}\n.nonblock-cursor-no-drop{cursor:no-drop !important;}\n.nonblock-cursor-not-allowed{cursor:not-allowed !important;}\n.nonblock-cursor-all-scroll{cursor:all-scroll !important;}\n.nonblock-cursor-col-resize{cursor:col-resize !important;}\n.nonblock-cursor-row-resize{cursor:row-resize !important;}\n.nonblock-cursor-n-resize{cursor:n-resize !important;}\n.nonblock-cursor-e-resize{cursor:e-resize !important;}\n.nonblock-cursor-s-resize{cursor:s-resize !important;}\n.nonblock-cursor-w-resize{cursor:w-resize !important;}\n.nonblock-cursor-ne-resize{cursor:ne-resize !important;}\n.nonblock-cursor-nw-resize{cursor:nw-resize !important;}\n.nonblock-cursor-se-resize{cursor:se-resize !important;}\n.nonblock-cursor-sw-resize{cursor:sw-resize !important;}\n.nonblock-cursor-ew-resize{cursor:ew-resize !important;}\n.nonblock-cursor-ns-resize{cursor:ns-resize !important;}\n.nonblock-cursor-nesw-resize{cursor:nesw-resize !important;}\n.nonblock-cursor-nwse-resize{cursor:nwse-resize !important;}\n.nonblock-cursor-zoom-in{cursor:zoom-in !important;}\n.nonblock-cursor-zoom-out{cursor:zoom-out !important;}\n.nonblock-cursor-grab{cursor:grab !important;}\n.nonblock-cursor-grabbing{cursor:grabbing !important;}"),this.nonBlockLastElem=null,this.isOverTextNode=!1,this.selectingText=!1,this.onmouseenter=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.nonBlockLastElem=!1,this.isPropagating(e)||t.stopPropagation())}),this.onmouseleave=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.remCursor(e),this.nonBlockLastElem=null,this.selectingText=!1,this.isPropagating(e)||t.stopPropagation())}),this.onmouseover=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&!this.isPropagating(e)&&t.stopPropagation()}),this.onmouseout=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&!this.isPropagating(e)&&t.stopPropagation()}),this.onmousemove=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.nonblockPass(e,t,"onmousemove"),null===this.selectingText?(window.getSelection().removeAllRanges(),this.selectingText=!0):this.selectingText&&t.preventDefault(),this.isPropagating(e)||t.stopPropagation())}),this.onmousedown=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.nonblockPass(e,t,"onmousedown"),this.selectingText=null,this.isFocusable(e)||t.preventDefault(),this.isPropagating(e)&&this.isActionPropagating(e)||t.stopPropagation())}),this.onmouseup=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.nonblockPass(e,t,"onmouseup"),null===this.selectingText&&window.getSelection().removeAllRanges(),this.selectingText=!1,this.isPropagating(e)&&this.isActionPropagating(e)||t.stopPropagation())}),this.onclick=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.nonblockPass(e,t,"onclick"),this.isPropagating(e)&&this.isActionPropagating(e)||t.stopPropagation())}),this.ondblclick=(t=>{let e;t.isTrusted&&(e=this.getNonBlocking(t.target))&&(this.nonblockPass(e,t,"ondblclick"),this.isPropagating(e)&&this.isActionPropagating(e)||t.stopPropagation())}),this.root.addEventListener("mouseenter",this.onmouseenter,!0),this.root.addEventListener("mouseleave",this.onmouseleave,!0),this.root.addEventListener("mouseover",this.onmouseover,!0),this.root.addEventListener("mouseout",this.onmouseout,!0),this.root.addEventListener("mousemove",this.onmousemove,!0),this.root.addEventListener("mousedown",this.onmousedown,!0),this.root.addEventListener("mouseup",this.onmouseup,!0),this.root.addEventListener("click",this.onclick,!0),this.root.addEventListener("dblclick",this.ondblclick,!0)}destroy(){for(let t of["mouseenter","mouseleave","mouseover","mouseout","mousemove","mousedown","mouseup","click","dblclick"])this["on"+t]&&(this.root.removeEventListener(t,this["on"+t],!0),delete this["on"+t]);this.styling.parentNode.removeChild(this.styling),delete this.styling}addCSS(t){this.styling=document.createElement("style"),this.styling.setAttribute("type","text/css"),this.styling.styleSheet?this.styling.styleSheet.cssText=t:this.styling.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(this.styling)}domEvent(t,e,n,i){let o;if(e=e.toLowerCase(),this.useEventConstructors){if((e=e.replace(this.regexOn,"")).match(this.regexMouseEvents)?o=new MouseEvent(e,{screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey,metaKey:n.metaKey,button:n.button,buttons:n.buttons,relatedTarget:n.relatedTarget,region:n.region,detail:n.detail,view:n.view,bubbles:void 0===i?n.bubbles:i,cancelable:n.cancelable,composed:n.composed}):e.match(this.regexUiEvents)?o=new UIEvent(e,{detail:n.detail,view:n.view,bubbles:void 0===i?n.bubbles:i,cancelable:n.cancelable,composed:n.composed}):e.match(this.regexHtmlEvents)&&(o=new Event(e,{bubbles:void 0===i?n.bubbles:i,cancelable:n.cancelable,composed:n.composed})),!o)return;t.dispatchEvent(o)}else if(document.createEvent&&t.dispatchEvent){if((e=e.replace(this.regexOn,"")).match(this.regexMouseEvents)?(t.getBoundingClientRect(),(o=document.createEvent("MouseEvents")).initMouseEvent(e,void 0===i?n.bubbles:i,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget)):e.match(this.regexUiEvents)?(o=document.createEvent("UIEvents")).initUIEvent(e,void 0===i?n.bubbles:i,n.cancelable,n.view,n.detail):e.match(this.regexHtmlEvents)&&(o=document.createEvent("HTMLEvents")).initEvent(e,void 0===i?n.bubbles:i,n.cancelable),!o)return;t.dispatchEvent(o)}else e.match(this.regexOn)||(e="on"+e),o=document.createEventObject(n),t.fireEvent(e,o)}nonblockPass(t,e,n){t.classList.add("nonblock-hide");const i=document.elementFromPoint(e.clientX,e.clientY);let o,s,r,a,c;!1===this.nonBlockLastElem&&(this.nonBlockLastElem=i),document.caretPositionFromPoint?(s=(o=document.caretPositionFromPoint(e.clientX,e.clientY))?o.offsetNode:null,c=o?o.offset:null):document.caretRangeFromPoint&&(s=(o=document.caretRangeFromPoint(e.clientX,e.clientY))?o.endContainer:null,c=o?o.endOffset:null),o&&(r=o.startContainer.textContent.match(/^[\s\n]*/)[0],a=o.startContainer.textContent.replace(/[\s\n]+$/g,"")),t.classList.remove("nonblock-hide");let l=this.getCursor(i);if(this.isOverTextNode=!1,"auto"===l&&"A"===i.tagName?l="pointer":o&&(!r.length||c>r.length)&&c<a.length&&("auto"===l&&(l="text"),this.isOverTextNode=!0),o&&this.selectingText&&c>0){const t=window.getSelection();let e;0===t.rangeCount?(this.selectingText={originContainer:o.startContainer?o.startContainer:s,originOffset:c-1},e=document.createRange(),t.addRange(e)):e=t.getRangeAt(0),s===this.selectingText.originContainer&&c<this.selectingText.originOffset||s.compareDocumentPosition(this.selectingText.originContainer)&Node.DOCUMENT_POSITION_FOLLOWING?(e.setEnd(this.selectingText.originContainer,this.selectingText.originOffset),e.setStart(s,c)):(e.setStart(this.selectingText.originContainer,this.selectingText.originOffset),e.setEnd(s,c))}if(this.setCursor(t,"auto"!==l?l:"default"),!this.nonBlockLastElem||this.nonBlockLastElem!==i){if(this.nonBlockLastElem){const t=this.nonBlockLastElem;t.contains(i)||this.domEvent(t,"mouseleave",e,!1),this.domEvent(t,"mouseout",e,!0),i.contains(t)||this.domEvent(i,"mouseenter",e,!1)}else i.contains(t)||this.domEvent(i,"mouseenter",e,!1);this.domEvent(i,"mouseover",e,!0)}"onmousedown"===n&&(document.activeElement&&document.activeElement.blur(),i.focus({preventScroll:!0})),this.domEvent(i,n,e),this.nonBlockLastElem=i}getNonBlocking(t){let e=t;for(;e;){if(e.classList&&e.classList.contains("nonblock"))return e;e=e.parentNode}return!1}isPropagating(t){return!t.classList.contains("nonblock-stop-propagation")}isActionPropagating(t){return t.classList.contains("nonblock-allow-action-propagation")}isFocusable(t){return t.classList.contains("nonblock-allow-focus")}isSimulateMouse(t){return!t.classList.contains("nonblock-stop-mouse-simulation")}getCursor(t){return window.getComputedStyle(t).getPropertyValue("cursor")}setCursor(t,e){t.classList.contains("nonblock-cursor-"+e)||(this.remCursor(t),t.classList.add("nonblock-cursor-"+e))}remCursor(t){[...Object.keys(t.classList).map(e=>t.classList[e])].forEach(e=>{0===e.indexOf("nonblock-cursor-")&&t.classList.remove(e)})}}})()),define("NonBlock",function(){}),define("pnotify.loader",["PNotify","PNotifyButtons","PNotifyCallbacks","PNotifyDesktop","NonBlock"],t=>{"use strict";let e={bottomRight:{stack:{dir1:"up",dir2:"left",firstpos1:32,firstpos2:10,spacing1:5,spacing2:5,push:"bottom",context:document.body}},barBottom:{stack:{dir1:"up",firstpos1:32,spacing1:0,context:document.querySelector(".pf-site")},addclass:"stack-bar-bottom"}};return t.defaults.styling="bootstrap3",t.defaults.icons="fontawesome5",t.defaults.addClass="nonblock",t.defaults.delay=5e3,t.defaults.width="250px",t.defaults.animateSpeed="fast",t.defaults.stack=e.bottomRight.stack,t.modules.Desktop.defaults.icon="/public/img/notifications/logo.png",{showNotify:(n={},i={})=>{switch(i.desktop&&(n.modules={Desktop:Object.assign({},{desktop:!0},i.desktop)}),n.type){case"info":n.icon="fas fa-info fa-fw fa-lg";break;case"success":n.icon="fas fa-check fa-fw fa-lg";break;case"notice":case"warning":n.icon="fas fa-exclamation-triangle fa-fw fa-lg",n.type="notice";break;case"error":n.icon="fas fa-times fa-fw fa-lg";break;case"lock":n.icon="fas fa-lock fa-fw fa-lg",n.type="success";break;case"unlock":n.icon="fas fa-unlock fa-fw fa-lg",n.type="info";break;default:n.icon=!1}i.stack&&(n.stack=e[i.stack].stack,n.addClass=e[i.stack].addclass);let o=t.alert(n);"function"==typeof i.click&&(o.refs.elem.style.cursor="pointer",o.on("click",i.click))}}}),define("text",["module"],function(t){"use strict";var e,n,i,o,s,r=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],a=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,c=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,l="undefined"!=typeof location&&location.href,u=l&&location.protocol&&location.protocol.replace(/\:/,""),f=l&&location.hostname,d=l&&(location.port||void 0),p={},h=t.config&&t.config()||{};return e={version:"2.0.12",strip:function(t){if(t){var e=(t=t.replace(a,"")).match(c);e&&(t=e[1])}else t="";return t},jsEscape:function(t){return t.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:h.createXhr||function(){var t,e,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(e=0;e<3;e+=1){n=r[e];try{t=new ActiveXObject(n)}catch(t){}if(t){r=[n];break}}return t},parseName:function(t){var e,n,i,o=!1,s=t.indexOf("."),r=0===t.indexOf("./")||0===t.indexOf("../");return-1!==s&&(!r||s>1)?(e=t.substring(0,s),n=t.substring(s+1,t.length)):e=t,-1!==(s=(i=n||e).indexOf("!"))&&(o="strip"===i.substring(s+1),i=i.substring(0,s),n?n=i:e=i),{moduleName:e,ext:n,strip:o}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(t,n,i,o){var s,r,a,c=e.xdRegExp.exec(t);return!c||(s=c[2],a=(r=(r=c[3]).split(":"))[1],r=r[0],!(s&&s!==n||r&&r.toLowerCase()!==i.toLowerCase()||(a||r)&&a!==o))},finishLoad:function(t,n,i,o){i=n?e.strip(i):i,h.isBuild&&(p[t]=i),o(i)},load:function(t,n,i,o){if(o&&o.isBuild&&!o.inlineText)i();else{h.isBuild=o&&o.isBuild;var s=e.parseName(t),r=s.moduleName+(s.ext?"."+s.ext:""),a=n.toUrl(r),c=h.useXhr||e.useXhr;0!==a.indexOf("empty:")?!l||c(a,u,f,d)?e.get(a,function(n){e.finishLoad(t,s.strip,n,i)},function(t){i.error&&i.error(t)}):n([r],function(t){e.finishLoad(s.moduleName+"."+s.ext,s.strip,t,i)}):i()}},write:function(t,n,i,o){if(p.hasOwnProperty(n)){var s=e.jsEscape(p[n]);i.asModule(t+"!"+n,"define(function () { return '"+s+"';});\n")}},writeFile:function(t,n,i,o,s){var r=e.parseName(n),a=r.ext?"."+r.ext:"",c=r.moduleName+a,l=i.toUrl(r.moduleName+a)+".js";e.load(c,i,function(n){var i=function(t){return o(l,t)};i.asModule=function(t,e){return o.asModule(t,l,e)},e.write(t,c,i,s)},s)}},"node"===h.env||!h.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]?(n=require.nodeRequire("fs"),e.get=function(t,e,i){try{var o=n.readFileSync(t,"utf8");0===o.indexOf("\ufeff")&&(o=o.substring(1)),e(o)}catch(t){i&&i(t)}}):"xhr"===h.env||!h.env&&e.createXhr()?e.get=function(t,n,i,o){var s,r=e.createXhr();if(r.open("GET",t,!0),o)for(s in o)o.hasOwnProperty(s)&&r.setRequestHeader(s.toLowerCase(),o[s]);h.onXhr&&h.onXhr(r,t),r.onreadystatechange=function(e){var o,s;4===r.readyState&&((o=r.status||0)>399&&o<600?((s=new Error(t+" HTTP status: "+o)).xhr=r,i&&i(s)):n(r.responseText),h.onXhrComplete&&h.onXhrComplete(r,t))},r.send(null)}:"rhino"===h.env||!h.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?e.get=function(t,e){var n,i,o=new java.io.File(t),s=java.lang.System.getProperty("line.separator"),r=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),"utf-8")),a="";try{for(n=new java.lang.StringBuffer,(i=r.readLine())&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&n.append(i);null!==(i=r.readLine());)n.append(s),n.append(i);a=String(n.toString())}finally{r.close()}e(a)}:("xpconnect"===h.env||!h.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(i=Components.classes,o=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),s="@mozilla.org/windows-registry-key;1"in i,e.get=function(t,e){var n,r,a,c={};s&&(t=t.replace(/\//g,"\\")),a=new FileUtils.File(t);try{(n=i["@mozilla.org/network/file-input-stream;1"].createInstance(o.nsIFileInputStream)).init(a,1,0,!1),(r=i["@mozilla.org/intl/converter-input-stream;1"].createInstance(o.nsIConverterInputStream)).init(n,"utf-8",n.available(),o.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),r.readString(n.available(),c),r.close(),n.close(),e(c.value)}catch(t){throw new Error((a&&a.path||"")+": "+t)}}),e});
//# sourceMappingURL=pnotify.loader.js.map