docker_pack/ariang/AriaNg/js/plugins-b3cb190423.min.js

49 lines
121 KiB
JavaScript
Raw Permalink Normal View History

2024-09-12 07:18:10 +08:00
/*! AdminLTE app.js
* ================
* Main JS application file for AdminLTE v2. This file
* should be included in all pages. It controls some layout
* options and implements exclusive AdminLTE plugins.
*
* @author Colorlib
* @support <https://github.com/ColorlibHQ/AdminLTE/issues>
* @version v2.4.18
* @repository git://github.com/ColorlibHQ/AdminLTE.git
* @license MIT <http://opensource.org/licenses/MIT>
*/
if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");!function(o){"use strict";var i="lte.boxrefresh",a={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>',onLoadStart:function(){},onLoadDone:function(e){return e}},e='[data-widget="box-refresh"]',s=function(e,t){if(this.element=e,this.options=t,this.$overlay=o(t.overlayTemplate),""===t.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};function t(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new s(e,n))}if("string"==typeof t){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}s.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(o(this)),o.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&o(this.element).find(this.options.content).html(e),this.options.onLoadDone.call(o(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},s.prototype._setUpListeners=function(){o(this.element).on("click",this.options.trigger,function(e){e&&e.preventDefault(),this.load()}.bind(this))},s.prototype._addOverlay=function(){o(this.element).append(this.$overlay)},s.prototype._removeOverlay=function(){o(this.$overlay).remove()};var n=o.fn.boxRefresh;o.fn.boxRefresh=t,o.fn.boxRefresh.Constructor=s,o.fn.boxRefresh.noConflict=function(){return o.fn.boxRefresh=n,this},o(window).on("load",function(){o(e).each(function(){t.call(o(this))})})}(jQuery),function(o){"use strict";var i="lte.boxwidget",a={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},e=".box",t=".collapsed-box",s=".box-header",l=".box-body",u=".box-footer",c=".box-tools",d="collapsed-box",f="collapsing.boxwidget",p="collapsed.boxwidget",h="expanding.boxwidget",g="expanded.boxwidget",n="removing.boxwidget",r="removed.boxwidget",m=function(e,t){this.element=e,this.options=t,this._setUpListeners()};function v(r){return this.each(function(){var e=o(this),t=e.data(i);if(!t){var n=o.extend({},a,e.data(),"object"==typeof r&&r);e.data(i,t=new m(e,n))}if("string"==typeof r){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}m.prototype.toggle=function(){!o(this.element).is(t)?this.collapse():this.expand()},m.prototype.expand=function(){var e=o.Event(g),t=o.Event(h),n=this.options.collapseIcon,r=this.options.expandIcon;o(this.element).removeClass(d),o(this.element).children(s+", "+l+", "+u).children(c).find("."+r).removeClass(r).addClass(n),o(this.element).children(l+", "+u).slideDown(this.options.animationSpeed,function(){o(this.element).trigger(e)}.bind(this)).trigger(t)},m.prototype.collapse=function(){var e=o.Event(p),t=o.Event(f),n=this.options.collapseIcon,r=this.options.expandIcon;o(this.element).children(s+", "+l+", "+u).children(c).find("."+n).removeClass(n).addClass(r),o(this.element).children(l+", "+u).slideUp(this.options.animationSpeed,function(){o(this.element).addClass(d),o(this.element).trigger(e)}.bind(this)).trigger(t)},m.prototype.remove=function(){var e=o.Event(r),t=o.Event(n);o(this.element).slideUp(this.options.animationSpeed,function(){o(this.element).trigger(e),o(this.element).remove()}.bind(this)).trigger(t)},m.prototype._setUpListeners=function(){var t=this;o(this.element).on("click",this.options.collapseTrigger,function(e){return e&&e.preventDefault(),t.toggle(o(this)),!1}),o(this.element).on("click",this.options.removeTrigger,function(e){return e&&e.preventDefault(),t.remove(o(this)),!1})};var y=o.fn.boxWidget;o.fn.boxWidget=v,o.fn.boxWidget.Constructor=m,o.fn.boxWidget.noConflict=function(){return o.fn.boxWidget=y,this},o(window).on("load",function(){o(e).each(function(){v.call(o(this))})})}(jQuery),function(o){"use strict";var i="lte.controlsidebar
/*! Copyright (c) 2011 Piotr Rochala (http://rocha.la)
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 1.3.8
*
*/
function(S){S.fn.extend({slimScroll:function(w){var C=S.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},w);return this.each(function(){function e(e){if(a){var t=0;(e=e||window.event).wheelDelta&&(t=-e.wheelDelta/120),e.detail&&(t=e.detail/3),S(e.target||e.srcTarget||e.srcElement).closest("."+C.wrapperClass).is(g.parent())&&r(t,!0),e.preventDefault&&!h&&e.preventDefault(),h||(e.returnValue=!1)}}function r(e,t,n){h=!1;var r=g.outerHeight()-v.outerHeight();t&&(t=parseInt(v.css("top"))+e*parseInt(C.wheelStep)/100*v.outerHeight(),t=Math.min(Math.max(t,0),r),t=0<e?Math.ceil(t):Math.floor(t),v.css({top:t+"px"})),t=(f=parseInt(v.css("top"))/(g.outerHeight()-v.outerHeight()))*(g[0].scrollHeight-g.outerHeight()),n&&(e=(t=e)/g[0].scrollHeight*g.outerHeight(),e=Math.min(Math.max(e,0),r),v.css({top:e+"px"})),g.scrollTop(t),g.trigger("slimscrolling",~~t),o(),i()}function n(){d=Math.max(g.outerHeight()/g[0].scrollHeight*g.outerHeight(),30),v.css({height:d+"px"});var e=d==g.outerHeight()?"none":"block";v.css({display:e})}function o(){n(),clearTimeout(u),f==~~f?(h=C.allowPageScroll,p!=f&&g.trigger("slimscroll",0==~~f?"top":"bottom")):h=!1,p=f,d>=g.outerHeight()?h=!0:(v.stop(!0,!0).fadeIn("fast"),C.railVisible&&y.stop(!0,!0).fadeIn("fast"))}function i(){C.alwaysVisible||(u=setTimeout(function(){C.disableFadeOut&&a||s||l||(v.fadeOut("slow"),y.fadeOut("slow"))},1e3))}var a,s,l,u,c,d,f,p,h=!1,g=S(this);if(g.parent().hasClass(C.wrapperClass)){var m=g.scrollTop(),v=g.siblings("."+C.barClass),y=g.siblings("."+C.railClass);if(n(),S.isPlainObject(w)){if("height"in w&&"auto"==w.height){g.parent().css("height","auto"),g.css("height","auto");var b=g.parent().parent().height();g.parent().css("height",b),g.css("height",b)}else"height"in w&&(b=w.height,g.parent().css("height",b),g.css("height",b));if("scrollTo"in w)m=parseInt(C.scrollTo);else if("scrollBy"in w)m+=parseInt(C.scrollBy);else if("destroy"in w)return v.remove(),y.remove(),void g.unwrap();r(m,!1,!0)}}else if(!(S.isPlainObject(w)&&"destroy"in w)){C.height="auto"==C.height?g.parent().height():C.height,m=S("<div></div>").addClass(C.wrapperClass).css({position:"relative",overflow:"hidden",width:C.width,height:C.height}),g.css({overflow:"hidden",width:C.width,height:C.height});y=S("<div></div>").addClass(C.railClass).css({width:C.size,height:"100%",position:"absolute",top:0,display:C.alwaysVisible&&C.railVisible?"block":"none","border-radius":C.railBorderRadius,background:C.railColor,opacity:C.railOpacity,zIndex:90}),v=S("<div></div>").addClass(C.barClass).css({background:C.color,width:C.size,position:"absolute",top:0,opacity:C.opacity,display:C.alwaysVisible?"block":"none","border-radius":C.borderRadius,BorderRadius:C.borderRadius,MozBorderRadius:C.borderRadius,WebkitBorderRadius:C.borderRadius,zIndex:99}),b="right"==C.position?{right:C.distance}:{left:C.distance};y.css(b),v.css(b),g.wrap(m),g.parent().append(v),g.parent().append(y),C.railDraggable&&v.bind("mousedown",function(e){var n=S(document);return l=!0,t=parseFloat(v.css("top")),pageY=e.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,v.css("top",currTop),r(0,v.position().top,!1)}),n.bind("mouseup.slimscroll",function(e){l=!1,i(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(e){return e.stopPropagation(),e.preventDefault(),!1}),y.hover(function(){o()},function(){i()}),v.hover(function(){s=!0},function(){s=!1}),g.hover(function(){a=!0,o(),i()},function(){a=!1,i()}),g.bind("touchstart",function(e,t){e.originalEvent.touches.length&&(c=e.originalEvent.touches[0].pageY)}),g.bind("touchmove",function(e){h||e.originalEvent.preventDefault(),e.originalEvent.touches.length&&(r((c-e.originalEvent.touches[0].pageY)/C.touchScrollStep,!0),c=e.originalEvent.touches[0].pa
/*
* @version 1.4.0
* @date 2015-10-26
* @stability 3 - Stable
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
* @license MIT License
*/
var naturalCompare=function(e,t){var r,n,o=1,i=0,a=0,s=String.alphabet;function l(e,t,n){if(n){for(r=t;(n=l(e,r))<76&&65<n;)++r;return+e.slice(t-1,r)}return-1<(n=s&&s.indexOf(e.charAt(t)))?n+76:(n=e.charCodeAt(t)||0)<45||127<n?n:n<46?65:n<48?n-1:n<58?n+18:n<65?n-11:n<91?n+11:n<97?n-37:n<123?n+5:n-63}if((e+="")!=(t+=""))for(;o;)if(n=l(e,i++),o=l(t,a++),n<76&&o<76&&66<n&&66<o&&(n=l(e,i,i),o=l(t,a,i=r),a=r),n!=o)return n<o?-1:1;return 0};try{module.exports=naturalCompare}catch(e){String.naturalCompare=naturalCompare}
/*!
* angular-translate - v2.19.0 - 2021-09-02
*
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
*/function Base64(){var u,e;angular.module("utf8-base64",[]).constant("base64",(u={alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lookup:null,ie:/MSIE /.test(navigator.userAgent),ieo:/MSIE [67]/.test(navigator.userAgent),encode:function(e){var t,n,r,o,i=u.toUtf8(e),a=-1,s=i.length,l=[,,,];if(u.ie){for(t=[];++a<s;)n=i[a],r=i[++a],l[0]=n>>2,l[1]=(3&n)<<4|r>>4,isNaN(r)?l[2]=l[3]=64:(o=i[++a],l[2]=(15&r)<<2|o>>6,l[3]=isNaN(o)?64:63&o),t.push(u.alphabet.charAt(l[0]),u.alphabet.charAt(l[1]),u.alphabet.charAt(l[2]),u.alphabet.charAt(l[3]));return t.join("")}for(t="";++a<s;)n=i[a],r=i[++a],l[0]=n>>2,l[1]=(3&n)<<4|r>>4,isNaN(r)?l[2]=l[3]=64:(o=i[++a],l[2]=(15&r)<<2|o>>6,l[3]=isNaN(o)?64:63&o),t+=u.alphabet[l[0]]+u.alphabet[l[1]]+u.alphabet[l[2]]+u.alphabet[l[3]];return t},decode:function(e){if((e=e.replace(/\s/g,"")).length%4)throw new Error("InvalidLengthError: decode failed: The string to be decoded is not the correct length for a base64 encoded string.");if(/[^A-Za-z0-9+\/=\s]/g.test(e))throw new Error("InvalidCharacterError: decode failed: The string contains characters invalid in a base64 encoded string.");var t,n=u.fromUtf8(e),r=0,o=n.length;if(u.ieo){for(t=[];r<o;)n[r]<128?t.push(String.fromCharCode(n[r++])):191<n[r]&&n[r]<224?t.push(String.fromCharCode((31&n[r++])<<6|63&n[r++])):t.push(String.fromCharCode((15&n[r++])<<12|(63&n[r++])<<6|63&n[r++]));return t.join("")}for(t="";r<o;)n[r]<128?t+=String.fromCharCode(n[r++]):191<n[r]&&n[r]<224?t+=String.fromCharCode((31&n[r++])<<6|63&n[r++]):t+=String.fromCharCode((15&n[r++])<<12|(63&n[r++])<<6|63&n[r++]);return t},toUtf8:function(e){var t,n=-1,r=e.length,o=[];if(/^[\x00-\x7f]*$/.test(e))for(;++n<r;)o.push(e.charCodeAt(n));else for(;++n<r;)(t=e.charCodeAt(n))<128?o.push(t):t<2048?o.push(t>>6|192,63&t|128):o.push(t>>12|224,t>>6&63|128,63&t|128);return o},fromUtf8:function(e){var t,n=-1,r=[],o=[,,,];if(!u.lookup){for(t=u.alphabet.length,u.lookup={};++n<t;)u.lookup[u.alphabet.charAt(n)]=n;n=-1}for(t=e.length;++n<t&&(o[0]=u.lookup[e.charAt(n)],o[1]=u.lookup[e.charAt(++n)],r.push(o[0]<<2|o[1]>>4),o[2]=u.lookup[e.charAt(++n)],64!==o[2])&&(r.push((15&o[1])<<4|o[2]>>2),o[3]=u.lookup[e.charAt(++n)],64!==o[3]);)r.push((3&o[2])<<6|o[3]);return r}},e={decode:function(e){var t=(e=e.replace(/-/g,"+").replace(/_/g,"/")).length%4;if(t){if(1===t)throw new Error("InvalidLengthError: Input base64url string is the wrong length to determine padding");e+=new Array(5-t).join("=")}return u.decode(e)},encode:function(e){return u.encode(e).replace(/\+/g,"-").replace(/\//g,"_").split("=",1)[0]}},{decode:u.decode,encode:u.encode,urldecode:e.decode,urlencode:e.encode}))}!function(e,t){"function"==typeof define&&define.amd?define([],function(){return t()}):"object"==typeof module&&module.exports?module.exports=t():t()}(0,function(){function e(t){"use strict";var n=t.storageKey(),r=t.storage(),e=function(){var e=t.preferredLanguage();angular.isString(e)?t.use(e):r.put(n,t.use())};e.displayName="fallbackFromIncorrectStorageValue",r?r.get(n)?t.use(r.get(n)).catch(e):e():angular.isString(t.preferredLanguage())&&t.use(t.preferredLanguage())}function t(e,o,t,i){"use strict";var L,c,M,P,N,D,_,n,j,R,z,F,U,q,V,H,W={},X=[],G=e,K=[],Y="translate-cloak",Q=!1,Z=!1,J=!0,ee=".",te=!1,ne=!1,re=0,oe=!0,r="default",a={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return 1<n.length?n[0].toLowerCase()+"_"+n[1].toUpperCase():t},bcp47:function(e){var t=(e||"").split("_").join("-"),n=t.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return t}return n.join("-")},"iso639-1":function(e){return(e||"").split("_").join("-").split("-")[0].toLowerCase()}},s=function(){if(angular.isFunction(i.getLocale))return i.getLocale();var e,t,n=o.$get().navigato
/**
* An Angular module that gives you access to the browsers local storage
* @version v0.7.1 - 2017-06-21
* @link https://github.com/grevory/angular-local-storage
* @author grevory <greg@gregpike.ca>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/,function(e,t){var E=t.isDefined,A=t.isUndefined,O=t.isNumber,I=t.isObject,B=t.isArray,L=t.isString,M=t.extend,P=t.toJson;t.module("LocalStorageModule",[]).provider("localStorageService",function(){this.prefix="ls",this.storageType="localStorage",this.cookie={expiry:30,path:"/",secure:!1},this.defaultToCookie=!0,this.notify={setItem:!0,removeItem:!1},this.setPrefix=function(e){return this.prefix=e,this},this.setStorageType=function(e){return this.storageType=e,this},this.setDefaultToCookie=function(e){return this.defaultToCookie=!!e,this},this.setStorageCookie=function(e,t,n){return this.cookie.expiry=e,this.cookie.path=t,this.cookie.secure=n,this},this.setStorageCookieDomain=function(e){return this.cookie.domain=e,this},this.setNotify=function(e,t){return this.notify={setItem:e,removeItem:t},this},this.$get=["$rootScope","$window","$document","$parse","$timeout",function(l,i,u,a,n){function e(e){if(e||(e=i.event),o.setItem&&L(e.key)&&g(e.key)){var t=r(e.key);n(function(){l.$broadcast("LocalStorageModule.notification.changed",{key:t,newvalue:e.newValue,storageType:c.storageType})})}}var s,c=this,d=c.prefix,f=c.cookie,o=c.notify,p=c.storageType;u?u[0]&&(u=u[0]):u=document,"."!==d.substr(-1)&&(d=d?d+".":"");var h=function(e){return d+e},r=function(e){return e.replace(new RegExp("^"+d,"g"),"")},g=function(e){return 0===e.indexOf(d)},t=function(){try{var e=p in i&&null!==i[p],t=h("__"+Math.round(1e7*Math.random()));return e&&((s=i[p]).setItem(t,""),s.removeItem(t)),e}catch(e){return c.defaultToCookie&&(p="cookie"),l.$broadcast("LocalStorageModule.notification.error",e.message),!1}},m=t(),v=function(t,n,e){var r=k();try{if($(e),n=A(n)?null:P(n),!m&&c.defaultToCookie||"cookie"===c.storageType)return m||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),o.setItem&&l.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:"cookie"}),C(t,n);try{s&&s.setItem(h(t),n),o.setItem&&l.$broadcast("LocalStorageModule.notification.setitem",{key:t,newvalue:n,storageType:c.storageType})}catch(e){return l.$broadcast("LocalStorageModule.notification.error",e.message),C(t,n)}return!0}finally{$(r)}},y=function(e,t){var n=k();try{if($(t),!m&&c.defaultToCookie||"cookie"===c.storageType)return m||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),S(e);var r=s?s.getItem(h(e)):null;if(!r||"null"===r)return null;try{return JSON.parse(r)}catch(e){return r}}finally{$(n)}},b=function(){var e=k();try{var t,n,r=0;for(1<=arguments.length&&("localStorage"===arguments[arguments.length-1]||"sessionStorage"===arguments[arguments.length-1])&&(r=1,$(arguments[arguments.length-1])),t=0;t<arguments.length-r;t++)if(n=arguments[t],!m&&c.defaultToCookie||"cookie"===c.storageType)m||l.$broadcast("LocalStorageModule.notification.warning","LOCAL_STORAGE_NOT_SUPPORTED"),o.removeItem&&l.$broadcast("LocalStorageModule.notification.removeitem",{key:n,storageType:"cookie"}),x(n);else try{s.removeItem(h(n)),o.removeItem&&l.$broadcast("LocalStorageModule.notification.removeitem",{key:n,storageType:c.storageType})}catch(e){l.$broadcast("LocalStorageModule.notification.error",e.message),x(n)}}finally{$(e)}},w=function(){try{return i.navigator.cookieEnabled||"cookie"in u&&(0<u.cookie.length||-1<(u.cookie="test").indexOf.call(u.cookie,"test"))}catch(e){return l.$broadcast("LocalStorageModule.notification.error",e.message),!1}}(),C=function(e,t,n,r){if(A(t))return!1;if((B(t)||I(t))&&(t=P(t)),!w)return l.$broadcast("LocalStorageModule.notification.error","COOKIES_NOT_SUPPORTED"),!1;try{var o="",i=new Date,a="";if(null===t?(i.setTime(i.getTime()+-864e5),o="; expires="+i.toGMTString(),t=""):O(n)&&0!==n?(i.setTime(i.getTime()+24*n*60*60*1e3),o="; expires="+i.toGMTString()):0!==f.expiry&&(i.setTime(i.getTime()+24*f.expiry*60*60*1e3),o="; expires="+i.toGMTString()),e){var s="; path="+f.path;f.domain&&(a="; domain="+f.domain),"boolean"==typeof r?!0===r&&(a+="; secure"):!0===f.secure&&(a+="; secure"),u.cookie=h(e)+"="+encodeURIComponent(t)+o+s+a}}catch(e){return l.$broadcast("LocalStorageMod
/**
* angular-ui-notification - Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
* @author Alex_Crack
* @version v0.3.6
* @link https://github.com/alexcrack/angular-ui-notification
* @license MIT
*/
angular.module("ui-notification",[]),angular.module("ui-notification").provider("Notification",function(){this.options={delay:5e3,startTop:10,startRight:10,verticalSpacing:10,horizontalSpacing:10,positionX:"right",positionY:"top",replaceMessage:!1,templateUrl:"angular-ui-notification.html",onClose:void 0,closeOnClick:!0,maxCount:0,container:"body",priority:10},this.setOptions=function(e){if(!angular.isObject(e))throw new Error("Options should be an object!");this.options=angular.extend({},this.options,e)},this.$get=["$timeout","$http","$compile","$templateCache","$rootScope","$injector","$sce","$q","$window",function(u,r,c,o,i,e,h,a,g){var m=this.options,v=m.startTop,y=m.startRight,b=m.verticalSpacing,w=m.horizontalSpacing,s=m.delay,C=[],S=!1,t=function(p,e){function t(e){function t(t){["-webkit-transition","-o-transition","transition"].forEach(function(e){o.css(e,t)})}var n=p.scope.$new();n.message=h.trustAsHtml(p.message),n.title=h.trustAsHtml(p.title),n.t=p.type.substr(0,1),n.delay=p.delay,n.onClose=p.onClose;var d=function(e,t){return e._priority-t._priority},f=function(e,t){return t._priority-e._priority},r=function(){var e=0,t=0,n=y,r=[];"top"===p.positionY?C.sort(d):"bottom"===p.positionY&&C.sort(f);for(var o=C.length-1;0<=o;o--){var i=C[o];if(p.replaceMessage&&o<C.length-1)i.addClass("killed");else{var a=parseInt(i[0].offsetHeight),s=parseInt(i[0].offsetWidth),l=r[i._positionY+i._positionX];u+a>window.innerHeight&&(l=v,t++,e=0);var u=l?0===e?l:l+b:v,c=n+t*(w+s);i.css(i._positionY,u+"px"),"center"==i._positionX?i.css("left",parseInt(window.innerWidth/2-s/2)+"px"):i.css(i._positionX,c+"px"),r[i._positionY+i._positionX]=u+a,0<m.maxCount&&C.length>m.maxCount&&0===o&&i.scope().kill(!0),e++}}},o=c(e)(n);o._positionY=p.positionY,o._positionX=p.positionX,o._priority=p.priority,o.addClass(p.type);var i=function(e){("click"===(e=e.originalEvent||e).type||"opacity"===e.propertyName&&1<=e.elapsedTime)&&(n.onClose&&n.$apply(n.onClose(o)),o.remove(),C.splice(C.indexOf(o),1),n.$destroy(),r())};p.closeOnClick&&(o.addClass("clickable"),o.bind("click",i)),o.bind("webkitTransitionEnd oTransitionEnd otransitionend transitionend msTransitionEnd",i),angular.isNumber(p.delay)&&u(function(){o.addClass("killed")},p.delay),t("none"),angular.element(document.querySelector(p.container)).append(o);var a=-(parseInt(o[0].offsetHeight)+50);if(o.css(o._positionY,a+"px"),C.push(o),"center"==p.positionX){var s=parseInt(o[0].offsetWidth);o.css("left",parseInt(window.innerWidth/2-s/2)+"px")}u(function(){t("")}),n._templateElement=o,n.kill=function(e){e?(n.onClose&&n.$apply(n.onClose(n._templateElement)),C.splice(C.indexOf(n._templateElement),1),n._templateElement.remove(),n.$destroy(),u(r)):n._templateElement.addClass("killed")},u(r),S||(angular.element(g).bind("resize",function(e){u(r)}),S=!0),l.resolve(n)}var l=a.defer();"object"==typeof p&&null!==p||(p={message:p}),p.scope=p.scope?p.scope:i,p.template=p.templateUrl?p.templateUrl:m.templateUrl,p.delay=angular.isUndefined(p.delay)?s:p.delay,p.type=e||p.type||m.type||"",p.positionY=p.positionY?p.positionY:m.positionY,p.positionX=p.positionX?p.positionX:m.positionX,p.replaceMessage=p.replaceMessage?p.replaceMessage:m.replaceMessage,p.onClose=p.onClose?p.onClose:m.onClose,p.closeOnClick=null!==p.closeOnClick&&void 0!==p.closeOnClick?p.closeOnClick:m.closeOnClick,p.container=p.container?p.container:m.container,p.priority=p.priority?p.priority:m.priority;var n=o.get(p.template);return n?t(n):r.get(p.template,{cache:!0}).then(function(e){t(e.data)}).catch(function(e){throw new Error("Template ("+p.template+") could not be loaded. "+e)}),l.promise};return t.primary=function(e){return this(e,"primary")},t.error=function(e){return this(e,"error")},t.success=function(e){return this(e,"success")},t.info=function(e){return this(e,"info")},t.warning=function(e){return this(e,"warning")},t.clearAll=function(){angular.forEach(C,function(e){e.addClass("killed")})},t}]}),angular.module("ui-notification").run(["$templateCache",function(e){e.put("angular-ui-notification.html",'<div class="ui-notification"><h3 ng-sho