/*! 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 * @version v2.4.18 * @repository git://github.com/ColorlibHQ/AdminLTE.git * @license 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:'
',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",a={controlsidebarSlide:!0},t=".control-sidebar",e='[data-toggle="control-sidebar"]',n=".control-sidebar-open",r=".control-sidebar-bg",s=".wrapper",l=".layout-boxed",u="control-sidebar-open",c="control-sidebar-hold-transition",d="collapsed.controlsidebar",f="expanded.controlsidebar",p=function(e,t){this.element=e,this.options=t,this.hasBindedResize=!1,this.init()};function h(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 p(e,n))}"string"==typeof r&&t.toggle()})}p.prototype.init=function(){o(this.element).is(e)||o(this).on("click",this.toggle),this.fix(),o(window).resize(function(){this.fix()}.bind(this))},p.prototype.toggle=function(e){e&&e.preventDefault(),this.fix(),o(t).is(n)||o("body").is(n)?this.collapse():this.expand()},p.prototype.expand=function(){o(t).show(),this.options.controlsidebarSlide?o(t).addClass(u):o("body").addClass(c).addClass(u).delay(50).queue(function(){o("body").removeClass(c),o(this).dequeue()}),o(this.element).trigger(o.Event(f))},p.prototype.collapse=function(){this.options.controlsidebarSlide?o(t).removeClass(u):o("body").addClass(c).removeClass(u).delay(50).queue(function(){o("body").removeClass(c),o(this).dequeue()}),o(t).fadeOut(),o(this.element).trigger(o.Event(d))},p.prototype.fix=function(){o("body").is(l)&&this._fixForBoxed(o(r))},p.prototype._fixForBoxed=function(e){e.css({position:"absolute",height:o(s).height()})};var g=o.fn.controlSidebar;o.fn.controlSidebar=h,o.fn.controlSidebar.Constructor=p,o.fn.controlSidebar.noConflict=function(){return o.fn.controlSidebar=g,this},o(document).on("click",e,function(e){e&&e.preventDefault(),h.call(o(this),"toggle")})}(jQuery),function(r){"use strict";var o="lte.directchat",e='[data-widget="chat-pane-toggle"]',t=".direct-chat",n="direct-chat-contacts-open",i=function(e){this.element=e};function a(n){return this.each(function(){var e=r(this),t=e.data(o);t||e.data(o,t=new i(e)),"string"==typeof n&&t.toggle(e)})}i.prototype.toggle=function(e){e.parents(t).first().toggleClass(n)};var s=r.fn.directChat;r.fn.directChat=a,r.fn.directChat.Constructor=i,r.fn.directChat.noConflict=function(){return r.fn.directChat=s,this},r(document).on("click",e,function(e){e&&e.preventDefault(),a.call(r(this),"toggle")})}(jQuery),function(o){"use strict";var i="lte.pushmenu",a={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},e=".sidebar-collapse",t=".main-sidebar",n=".content-wrapper",r=".sidebar-form .form-control",s='[data-toggle="push-menu"]',l=".sidebar-mini",u=".sidebar-expanded-on-hover",c=".fixed",d="sidebar-collapse",f="sidebar-open",p="sidebar-expanded-on-hover",h="sidebar-mini-expand-feature",g="expanded.pushMenu",m="collapsed.pushMenu",v=function(e){this.options=e,this.init()};function y(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 v(n))}"toggle"===r&&t.toggle()})}v.prototype.init=function(){(this.options.expandOnHover||o("body").is(l+c))&&(this.expandOnHover(),o("body").addClass(h)),o(n).click(function(){o(window).width()<=this.options.collapseScreenSize&&o("body").hasClass(f)&&this.close()}.bind(this)),o(r).click(function(e){e.stopPropagation()})},v.prototype.toggle=function(){var e=o(window).width(),t=!o("body").hasClass(d);e<=this.options.collapseScreenSize&&(t=o("body").hasClass(f)),t?this.close():this.open()},v.prototype.open=function(){o(window).width()>this.options.collapseScreenSize?o("body").removeClass(d).trigger(o.Event(g)):o("body").addClass(f).trigger(o.Event(g))},v.prototype.close=function(){o(window).width()>this.options.collapseScreenSize?o("body").addClass(d).trigger(o.Event(m)):o("body").removeClass(f+" "+d).trigger(o.Event(m))},v.prototype.expandOnHover=function(){o(t).hover(function(){o("body").is(l+e)&&o(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){o("body").is(u)&&this.collapse()}.bind(this))},v.prototype.expand=function(){setTimeout(function(){o("body").removeClass(d).addClass(p)},this.options.expandTransitionDelay)},v.prototype.collapse=function(){setTimeout(function(){o("body").removeClass(p).addClass(d)},this.options.expandTransitionDelay)};var b=o.fn.pushMenu;o.fn.pushMenu=y,o.fn.pushMenu.Constructor=v,o.fn.pushMenu.noConflict=function(){return o.fn.pushMenu=b,this},o(document).on("click",s,function(e){e.preventDefault(),y.call(o(this),"toggle")}),o(window).on("load",function(){y.call(o(s))})}(jQuery),function(o){"use strict";var i="lte.todolist",a={onCheck:function(e){return e},onUnCheck:function(e){return e}},t={data:'[data-widget="todo-list"]'},n="done",s=function(e,t){this.element=e,this.options=t,this._setUpListeners()};function e(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.toggle=function(e){e.parents(t.li).first().toggleClass(n),e.prop("checked")?this.check(e):this.unCheck(e)},s.prototype.check=function(e){this.options.onCheck.call(e)},s.prototype.unCheck=function(e){this.options.onUnCheck.call(e)},s.prototype._setUpListeners=function(){var e=this;o(this.element).on("change ifChanged","input:checkbox",function(){e.toggle(o(this))})};var r=o.fn.todoList;o.fn.todoList=e,o.fn.todoList.Constructor=s,o.fn.todoList.noConflict=function(){return o.fn.todoList=r,this},o(window).on("load",function(){o(t.data).each(function(){e.call(o(this))})})}(jQuery),function(i){"use strict";var r="lte.tree",o={animationSpeed:500,accordion:!0,followLink:!1,trigger:".treeview a"},a=".treeview",s=".treeview-menu",l=".menu-open, .active",e='[data-widget="tree"]',n=".active",u="menu-open",c="tree",d="collapsed.tree",f="expanded.tree",p=function(e,t){this.element=e,this.options=t,i(this.element).addClass(c),i(a+n,this.element).addClass(u),this._setUpListeners()};function t(n){return this.each(function(){var e=i(this);if(!e.data(r)){var t=i.extend({},o,e.data(),"object"==typeof n&&n);e.data(r,new p(e,t))}})}p.prototype.toggle=function(e,t){var n=e.next(s),r=e.parent(),o=r.hasClass(u);r.is(a)&&(this.options.followLink&&"#"!==e.attr("href")||t.preventDefault(),o?this.collapse(n,r):this.expand(n,r))},p.prototype.expand=function(e,t){var n=i.Event(f);if(this.options.accordion){var r=t.siblings(l),o=r.children(s);this.collapse(o,r)}t.addClass(u),e.stop().slideDown(this.options.animationSpeed,function(){i(this.element).trigger(n),t.height("auto")}.bind(this))},p.prototype.collapse=function(e,t){var n=i.Event(d);t.removeClass(u),e.stop().slideUp(this.options.animationSpeed,function(){i(this.element).trigger(n),t.find(a).removeClass(u).find(s).hide()}.bind(this))},p.prototype._setUpListeners=function(){var t=this;i(this.element).on("click",this.options.trigger,function(e){t.toggle(i(this),e)})};var h=i.fn.tree;i.fn.tree=t,i.fn.tree.Constructor=p,i.fn.tree.noConflict=function(){return i.fn.tree=h,this},i(window).on("load",function(){i(e).each(function(){t.call(i(this))})})}(jQuery),function(s){"use strict";var o="lte.layout",i={slimscroll:!0,resetHeight:!0},l=".wrapper",u=".content-wrapper",c=".layout-boxed",d=".main-footer",f=".main-header",e=".main-sidebar",t="slimScrollDiv",p=".sidebar",h=".control-sidebar",n=".sidebar-menu",r=".main-header .logo",g="fixed",a="hold-transition",m=function(e){this.options=e,this.bindedResize=!1,this.activate()};function v(r){return this.each(function(){var e=s(this),t=e.data(o);if(!t){var n=s.extend({},i,e.data(),"object"==typeof r&&r);e.data(o,t=new m(n))}if("string"==typeof r){if(void 0===t[r])throw new Error("No method named "+r);t[r]()}})}m.prototype.activate=function(){this.fix(),this.fixSidebar(),s("body").removeClass(a),this.options.resetHeight&&s("body, html, "+l).css({height:"auto","min-height":"100%"}),this.bindedResize||(s(window).resize(function(){this.fix(),this.fixSidebar(),s(r+", "+p).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),s(n).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),s(n).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},m.prototype.fix=function(){s(c+" > "+l).css("overflow","hidden");var e=s(d).outerHeight()||0,t=s(f).outerHeight()||0,n=t+e,r=s(window).height(),o=s(p).outerHeight()||0;if(s("body").hasClass(g))s(u).css("min-height",r-e);else{var i;i=o+t<=r?(s(u).css("min-height",r-n),r-n):(s(u).css("min-height",o),o);var a=s(h);void 0!==a&&a.height()>i&&s(u).css("min-height",a.height())}},m.prototype.fixSidebar=function(){s("body").hasClass(g)?this.options.slimscroll&&void 0!==s.fn.slimScroll&&0===s(e).find(t).length&&s(p).slimScroll({height:s(window).height()-s(f).height()+"px"}):void 0!==s.fn.slimScroll&&s(p).slimScroll({destroy:!0}).height("auto")};var y=s.fn.layout;s.fn.layout=v,s.fn.layout.Constuctor=m,s.fn.layout.noConflict=function(){return s.fn.layout=y,this},s(window).on("load",function(){v.call(s("body"))})}(jQuery), /*! 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=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("
").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("
").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("
").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].pageY)}),n(),"bottom"===C.start?(v.css({top:g.outerHeight()-v.outerHeight()}),r(0,!0)):"top"!==C.start&&(r(S(C.start).position().top,null,!0),C.alwaysVisible||v.hide()),window.addEventListener?(this.addEventListener("DOMMouseScroll",e,!1),this.addEventListener("mousewheel",e,!1)):document.attachEvent("onmousewheel",e)}}),this}}),S.fn.extend({slimscroll:S.fn.slimScroll})}(jQuery),function(C,S,x){"use strict";!function i(a,s,l){function u(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var o=s[n]={exports:{}};a[n][0].call(o.exports,function(e){var t=a[n][1][e];return u(t||e)},o,o.exports,i,a,s,l)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e
\n \n \n \n \n
\n \n \n
\n \n \n\n
\n
\n

Title

\n

Text

\n
\n \n
\n
\n
!
\n

Not valid!

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
',t.exports=n.default},{}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var g=e("./utils"),m=e("./handle-swal-dom"),v=e("./handle-dom"),y=["error","warning","info","success","input","prompt"];n.default=function(o){var i=m.getModal(),e=i.querySelector("h2"),t=i.querySelector("p"),n=i.querySelector("button.cancel"),r=i.querySelector("button.confirm");if(e.innerHTML=o.html?o.title:v.escapeHtml(o.title).split("\n").join("
"),t.innerHTML=o.html?o.text:v.escapeHtml(o.text||"").split("\n").join("
"),o.text&&v.show(t),o.customClass)v.addClass(i,o.customClass),i.setAttribute("data-custom-class",o.customClass);else{var a=i.getAttribute("data-custom-class");v.removeClass(i,a),i.setAttribute("data-custom-class","")}if(v.hide(i.querySelectorAll(".sa-icon")),o.type&&!g.isIE8()){var s=function(){for(var e=!1,t=0;t>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>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>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>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=".",ee=!1,te=!1,ne=0,re=!0,r="default",a={default:function(e){return(e||"").split("-").join("_")},java:function(e){var t=(e||"").split("-").join("_"),n=t.split("_");return 1");return t.text(e),t.html()},i=function(e){if(!n)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");return n(e)},a=function(e){if(!r)throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");return r.trustAsHtml(e)},s=function(e,n,r){if(angular.isDate(e))return e;if(angular.isObject(e)){var o=angular.isArray(e)?[]:{};if(r){if(-1>>0,n=Number(arguments[1])||0;for((n=n<0?Math.ceil(n):Math.floor(n))<0&&(n+=t);n * @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;twindow.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,0m.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",'

')}]),angular.module("angularBittorrentPeerid",[]),angular.module("angularBittorrentPeerid").run(function(){"function"!=typeof String.prototype.endsWith&&(String.prototype.endsWith=function(e){return this.slice(-e.length)===e}),"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(e,t){return t=t||0,this.slice(t,t+e.length)===e})}),angular.module("angularBittorrentPeerid").factory("peeridUtils",function(){function i(e){var t=e.charCodeAt(0);return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)}function a(e){var t=e.toLowerCase().charCodeAt(0);return t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)}function s(e,t){t=t||0;for(var n=""+(255&e);n.length>6,128|63&n):r.push(224|n>>12,128|63&n>>6,128|63&n);return r},isAzStyle:function(e){return"-"===e.charAt(0)&&("-"===e.charAt(7)||("FG"===e.substring(1,3)||("LH"===e.substring(1,3)||("NE"===e.substring(1,3)||("KT"===e.substring(1,3)||"SP"===e.substring(1,3))))))},isShadowStyle:function(e){var t,n,r,o;if("-"!==e.charAt(5))return!1;if(!a(e.charAt(0)))return!1;if(!i(e.charAt(1))&&"-"!==e.charAt(1))return!1;for(t=4;0')(s),r.append(i)}var t='
'+e.data+"
";o=d(t)(s),angular.element(o.children()[0]).css("position","absolute").css("top",0).css("left",0).css("right",0).css("bottom",0),r.append(o)},function(e){throw new Error("Template specified for cgBusy ("+n.templateUrl+") could not be loaded. "+e)}))},!0)}}}]),angular.module("cgBusy").run(["$templateCache",function(e){"use strict";e.put("angular-busy.html",'
\n\n
\n\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n\n
{{$message}}
\n\n
\n\n
')}]),angular.module("angularPromiseButtons",[]),angular.module("angularPromiseButtons").directive("promiseBtn",["angularPromiseButtons","$parse","$timeout","$compile",function(m,v,y,b){"use strict";return{restrict:"EA",priority:m.config.priority,scope:{promiseBtn:"=",promiseBtnOptions:"=?",ngDisabled:"=?"},link:function(i,a,n){function r(e){h.btnLoadingClass&&!h.addClassToCurrentBtnOnly&&e.addClass(h.btnLoadingClass),h.disableBtn&&!h.disableCurrentBtnOnly&&e.attr("disabled","disabled")}function o(e){h.minDuration&&!f||!p||(h.btnLoadingClass&&e.removeClass(h.btnLoadingClass),h.disableBtn&&!i.ngDisabled&&e.removeAttr("disabled"))}function s(e,t){i.$watch(e,function(e){p=f=!1,h.minDuration&&(d=y(function(){f=!0,o(t)},h.minDuration)),e&&e.then?(r(t),e.finally?e.finally(function(){p=!0,o(t)}):e.then(function(){p=!0,o(t)}).catch(function(){p=!0,o(t)})):e&&e.$promise&&(r(t),e.$promise.finally(function(){p=!0,o(t)}))})}function e(e){e.append(b(h.spinnerTpl)(i))}function t(e){h.addClassToCurrentBtnOnly&&e.on(h.CLICK_EVENT,function(){e.addClass(h.btnLoadingClass)}),h.disableCurrentBtnOnly&&e.on(h.CLICK_EVENT,function(){e.attr("disabled","disabled")})}function l(e,t,r){var o=n[t].split(";").map(function(e){return v(e)});a.off(e),a.on(e,function(n){i.$apply(function(){o.forEach(function(e){var t=e(i.$parent,{$event:n});c||(c=s(function(){return t},r))})})})}function u(e,t,n){0',priority:10,disableBtn:!0,btnLoadingClass:"is-loading",addClassToCurrentBtnOnly:!1,disableCurrentBtnOnly:!1,minDuration:!1,CLICK_EVENT:"click",CLICK_ATTR:"ngClick",SUBMIT_EVENT:"submit",SUBMIT_ATTR:"ngSubmit",BTN_SELECTOR:"button"};return{extendConfig:function(e){t=angular.extend(t,e)},$get:function(){return{config:t}}}}),function(e,t){"function"==typeof define&&define.amd?define(["angular"],t):"object"==typeof module&&module.exports?module.exports=t(require("angular")):e.angularClipboard=t(e.angular)}(this,function(o){return o.module("angular-clipboard",[]).factory("clipboard",["$document","$window",function(l,u){return{copyText:function(e,t){var n,r,o=u.pageXOffset||l[0].documentElement.scrollLeft,i=u.pageYOffset||l[0].documentElement.scrollTop,a=t&&t.container||l[0].body,s=(n=e,(r=l[0].createElement("textarea")).style.position="absolute",r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.left="-10000px",r.style.top=(u.pageYOffset||l[0].documentElement.scrollTop)+"px",r.textContent=n,r);a.appendChild(s),function(e){try{l[0].body.style.webkitUserSelect="initial";var t=l[0].getSelection();t.removeAllRanges();var n=document.createRange();n.selectNodeContents(e),t.addRange(n),e.select(),e.setSelectionRange(0,999999);try{if(!l[0].execCommand("copy"))throw"failure copy"}finally{t.removeAllRanges()}}finally{l[0].body.style.webkitUserSelect=""}}(s),u.scrollTo(o,i),a.removeChild(s)},supported:"queryCommandSupported"in l[0]&&l[0].queryCommandSupported("copy")}}]).directive("clipboard",["clipboard",function(r){return{restrict:"A",scope:{onCopied:"&",onError:"&",text:"=",supported:"=?"},link:function(t,n){t.supported=r.supported,n.on("click",function(e){try{r.copyText(t.text,n[0]),o.isFunction(t.onCopied)&&t.$evalAsync(t.onCopied())}catch(e){o.isFunction(t.onError)&&t.$evalAsync(t.onError({err:e}))}})}}}])}),angular.module("inputDropdown",[]).directive("inputDropdown",[function(){return{restrict:"E",scope:{defaultDropdownItems:"=",selectedItem:"=",allowCustomInput:"=",inputRequired:"=",disabled:"=",inputName:"@",inputClassName:"@",inputPlaceholder:"@",onlyShowNonEmptyDropdown:"@",filterListMethod:"&",valueChangedMethod:"&",itemSelectedMethod:"&"},template:'
  • {{item.readableName}}{{item}}
',controller:["$scope",function(e){this.getSelectedItem=function(){return e.selectedItem},this.isRequired=function(){return e.inputRequired},this.customInputAllowed=function(){return e.allowCustomInput},this.getInput=function(){return e.inputValue}}],link:function(n,e){var t=!1,r=e.find("input").isolateScope();n.activeItemIndex=0,n.inputValue="",n.dropdownVisible=!1,n.dropdownItems=n.defaultDropdownItems||[],n.$watch("dropdownItems",function(e,t){angular.equals(e,t)||(n.allowCustomInput?n.setInputActive():n.setActive(0))}),n.$watch("selectedItem",function(e,t){r.updateInputValidity(),angular.equals(e,t)||e&&(n.inputValue="string"==typeof e?e:e.readableName)}),n.setInputActive=function(){n.setActive(-1)},n.setActive=function(e){n.activeItemIndex=e},n.inputChange=function(){if(n.selectedItem=null,o(),u(n.inputValue,"input"),n.inputValue){if(n.allowCustomInput&&r.updateInputValidity(),n.filterListMethod){var e=n.filterListMethod({userInput:n.inputValue});e&&e.then(function(e){n.dropdownItems=e})}}else n.dropdownItems=n.defaultDropdownItems||[]},n.inputFocus=function(){n.allowCustomInput?n.setInputActive():n.setActive(0),o()},n.inputBlur=function(e){t?t=!1:i()},n.dropdownPressed=function(){t=!0},n.selectItem=function(e){n.selectedItem=e,i(),n.dropdownItems=[e],u(e,"select"),n.itemSelectedMethod&&n.itemSelectedMethod({item:e})};var o=function(){(!n.onlyShowNonEmptyDropdown||n.dropdownItems&&n.dropdownItems.length)&&(n.dropdownVisible=!0)},i=function(){n.dropdownVisible=!1},a=function(){var e=n.activeItemIndex-1;0<=e?n.setActive(e):n.allowCustomInput&&n.setInputActive()},s=function(){var e=n.activeItemIndex+1;et.left+V(t)/2:a>t.top+H(t)/2)?G(e):e):function(){var e,t,n,r=o.children.length;for(e=0;ei)return t;if(!s&&n.top+n.height/2>a)return t}return null}()}1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var x,T,k,$,E,A,O,I,B,L,M,P,N=null,D=t||{};void 0===D.moves&&(D.moves=q),void 0===D.accepts&&(D.accepts=q),void 0===D.invalid&&(D.invalid=function(){return!1}),void 0===D.containers&&(D.containers=e||[]),void 0===D.isContainer&&(D.isContainer=U),void 0===D.copy&&(D.copy=!1),void 0===D.copySortSource&&(D.copySortSource=!1),void 0===D.revertOnSpill&&(D.revertOnSpill=!1),void 0===D.removeOnSpill&&(D.removeOnSpill=!1),void 0===D.direction&&(D.direction="vertical"),void 0===D.ignoreInputTextSelection&&(D.ignoreInputTextSelection=!0),void 0===D.mirrorContainer&&(D.mirrorContainer=J.body);var _=Y({containers:D.containers,start:function(e){var t=u(e);t&&c(t)},end:d,cancel:m,remove:g,destroy:function(){n(!0),p({})},canMove:function(e){return!!u(e)},dragging:!1});return!0===D.removeOnSpill&&_.on("over",function(e){Z.rm(e,"gu-hide")}).on("out",function(e){_.dragging&&Z.add(e,"gu-hide")}),n(),_}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./classes":9,"contra/emitter":5,crossvent:6}],11:[function(e,t,n){var r;r="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},t.exports=r},{}],12:[function(e,t,n){"use strict";var i=e("atoa"),a=["cancel","cloned","drag","dragend","drop","out","over","remove","shadow","drop-model","remove-model"];t.exports=function(t,n,r){function o(e){return t.isElement(e)?t.element(e):e}a.forEach(function(t){n.drake.on(t,function(){var e=i(arguments).map(o);e.unshift(n.name+"."+t),r.$emit.apply(r,e)})})}},{atoa:3}],13:[function(e,t,n){"use strict";var s=e("dragula"),l="$$dragula",u=e("./replicate-events");t.exports=function(f){return[function(){function o(n,a){var s,l,u,c;a.registered||(a.on("remove",function(e,t){a.models&&(c=a.models[a.containers.indexOf(t)],n.$applyAsync(function(){c.splice(l,1),a.emit("remove-model",e,t)}))}),a.on("drag",function(e,t){l=d(s=e,t)}),a.on("drop",function(r,o,i){a.models&&(u=d(r,o),n.$applyAsync(function(){if(c=a.models[a.containers.indexOf(i)],o===i)c.splice(u,0,c.splice(l,1)[0]);else{var e=s===r,t=a.models[a.containers.indexOf(o)],n=e?c[l]:f.copy(c[l]);e&&c.splice(l,1),t.splice(u,0,n),o.removeChild(r)}a.emit("drop-model",r,o,i)}))}),a.registered=!0)}function i(e){var t=e[l];return t||(t=e[l]={bags:[]}),t}function d(e,t){return Array.prototype.indexOf.call(f.element(t).children(),e)}function r(e,t,n){var r=a(e,t);if(r)throw new Error('Bag named: "'+t+'" already exists in same angular scope.');return r={name:t,drake:n},i(e).bags.push(r),u(f,r,e),n.models&&o(e,n),r}function a(e,t){for(var n=i(e).bags,r=0;r